GNU bug report logs -
#11746
feature request: `isearch-query-replace' should open invisible text
Previous Next
Reported by: michael_heerdegen <at> web.de
Date: Tue, 19 Jun 2012 17:59:01 UTC
Severity: wishlist
Merged with 14566
Found in version 24.3
Done: Juri Linkov <juri <at> jurta.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 11746 <at> debbugs.gnu.org (full text, mbox):
> Dunno if this would be easy to implement. `isearch-query-replace'
> uses just `perform-replace' from replace.el, which doesn't care about
> invisible text.
A quick try does exactly what is needed:
=== modified file 'lisp/replace.el'
--- lisp/replace.el 2012-05-01 02:48:41 +0000
+++ lisp/replace.el 2012-06-19 21:14:59 +0000
@@ -1840,7 +1840,9 @@ (defun perform-replace (from-string repl
limit t)
;; For speed, use only integers and
;; reuse the list used last time.
- (replace-match-data t real-match-data)))
+ (prog1 (replace-match-data t real-match-data)
+ (isearch-range-invisible
+ (match-beginning 0) (match-end 0)))))
((and (< (1+ (point)) (point-max))
(or (null limit)
(< (1+ (point)) limit)))
But it would be better to implement this the same way as for isearch
filters. Adding the same filters in replacements also will make the
variable `query-replace-skip-read-only' obsolete.
This bug report was last modified 11 years and 339 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.