benma / visual-regexp.el

A regexp/replace command for Emacs with interactive visual feedback
392 stars 28 forks source link

vr/default-replace-preview not respected by query-replace #55

Open driessen opened 4 years ago

driessen commented 4 years ago

Setting default replace preview to t in config only affects construction of the regexp. When actual replacement is done with vr/query-replace you still get the "original -> replacement" feedback and not the desired "replacement" feedback.

It seems to be hardcoded to this in line 929: ;; default for new occurrence: no preview (setq vr--replace-preview nil)

Is there a reason nil and not vr/default-replace-preview is used here?