[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 22:51:09 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) |
>> >> +(defvar replace-regexp-function nil
>> >> + "Function to convert a search string to a regexp to replace.
>> >> +It's bound to `isearch-regexp-function' when searching
>> >> +for a string to replace.")
>> >
>> > The first sentence is unclear: what do you mean by "convert a search
>> > string to a regexp to replace"? What "search string" is being
>> > converted to regexp, and how does "replace" enter this picture?
>>
>> It has a reference to `isearch-regexp-function' that has
>> a complete explanation to avoid duplication of the docstring.
>
> I don't think this is enough. First, the first sentence of the above
> doc string doesn't have any such reference, so Apropos commands, which
> show only the first sentence, will not have that reference.
But "isearch-regexp-function" is too long for the first sentence.
> And second, the doc string of isearch-regexp-function says nothing
> about replacements.
It should say nothing about replacements. This is explained
in the second sentence:
`isearch-regexp-function' is bound to it when searching
for a string to replace.
- bug#52558: Option for easier typing of regexps, (continued)
- bug#52558: Option for easier typing of regexps, Juri Linkov, 2021/12/19
- bug#52558: Option for easier typing of regexps, ndame, 2021/12/19
- bug#52558: Option for easier typing of regexps, Juri Linkov, 2021/12/19
- bug#52558: Option for easier typing of regexps, Juri Linkov, 2021/12/19
- bug#52558: Option for easier typing of regexps, Juri Linkov, 2021/12/28
- bug#52558: Option for easier typing of regexps, Eli Zaretskii, 2021/12/28
- bug#52558: Option for easier typing of regexps, Juri Linkov, 2021/12/28
- bug#52558: Option for easier typing of regexps, Eli Zaretskii, 2021/12/28
- bug#52558: Option for easier typing of regexps,
Juri Linkov <=
- bug#52558: Option for easier typing of regexps, Eli Zaretskii, 2021/12/29
- bug#52558: Option for easier typing of regexps, Juri Linkov, 2021/12/29
- bug#52558: Option for easier typing of regexps, Eli Zaretskii, 2021/12/29