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

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

bug#52558: Option for easier typing of regexps


From: Juri Linkov
Subject: bug#52558: Option for easier typing of regexps
Date: Tue, 28 Dec 2021 21:15:32 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)

>>>> Such option already exists, and it allows using custom regexp syntax
>>>> both for isearch and query-replace:
>>>
>>> Interesting, though its help mentions only isearch, so if I start
>>> M-x query-replace-regexp directly, it doesn't seem affected.
>>
>> If you want to use M-x query-replace directly,
>> then simpler would be add replace-regexp-function
>> that you can use with:
>>
>> (setq replace-regexp-function
>
> And additional change is needed for correct highlighting:
>
> @@ -2690,7 +2693,8 @@ replace-highlight
> +         (isearch-regexp-function (or replace-regexp-function

This is pushed to master, so now it's possible to provide a custom
regexp converter for search and replace using isearch-regexp-function
and replace-regexp-function.





reply via email to

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