bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#10885: Replace expressions: enhance functionality when searching in


From: Juri Linkov
Subject: bug#10885: Replace expressions: enhance functionality when searching in filled paragraphs
Date: Sun, 02 Sep 2012 12:45:33 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (x86_64-pc-linux-gnu)

After installing
http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00008.html
this functionality is available to query-replace, but currently only
when it's started from isearch.

To use it in query-replace independently from isearch,
I see two ways to toggle whitespace matching in query-replace:

1. Add a new defcustom like `case-replace' with a name e.g.
`replace-lax-whitespace' and use it in `perform-replace'.
When non-nil, spaces will match any whitespace in replacement.

2. Add a new command like `query-replace-regexp' with a name e.g.
`query-replace-lax-whitespace', where to let-bind
`replace-lax-whitespace' to t and call `perform-replace'.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]