Remove region highlighting when use replacing fns
This commit is contained in:
@@ -186,26 +186,6 @@
|
|||||||
(end (if region (region-end) end)))
|
(end (if region (region-end) end)))
|
||||||
(pulse-momentary-highlight-region beg end 'region))))
|
(pulse-momentary-highlight-region beg end 'region))))
|
||||||
|
|
||||||
(define-advice perform-replace (:around (original-fun
|
|
||||||
from-string replacements
|
|
||||||
query-flag regexp-flag
|
|
||||||
delimited-flag
|
|
||||||
&optional repeat-count
|
|
||||||
map start end
|
|
||||||
backward
|
|
||||||
region-noncontiguous-p)
|
|
||||||
activate-region)
|
|
||||||
(let ((beg (region-beginning))
|
|
||||||
(end (region-end)))
|
|
||||||
(pulse-momentary-highlight-region beg end 'region)
|
|
||||||
(apply original-fun from-string replacements
|
|
||||||
query-flag regexp-flag
|
|
||||||
delimited-flag
|
|
||||||
repeat-count
|
|
||||||
map beg end
|
|
||||||
backward
|
|
||||||
region-noncontiguous-p)))
|
|
||||||
|
|
||||||
(use-package quelpa
|
(use-package quelpa
|
||||||
:demand t
|
:demand t
|
||||||
:custom (quelpa-update-melpa-p nil))
|
:custom (quelpa-update-melpa-p nil))
|
||||||
|
|||||||
Reference in New Issue
Block a user