Re: emacs-31 f561bc6c370: ; * etc/NEWS: Use a non-commercial example.

Sean Whitton <[email protected]>
Newsgroups gmane.emacs.devel
Message-ID <[email protected]>
Michael Heerdegen via "Emacs development discussions." [10/Aug  2:25am +02] wrote:
> Andreas Schwab <[email protected]> writes:
>
>> On Aug 09 2026, Stefan Monnier wrote:
>>
>> >>      (add-to-list 'browse-url-transform-alist
>> >> -                 '("www.google.com" . "www.duckduckgo.com"))
>> >> +                 '("vim\\.org/.*" . "gnu\\.org/software/emacs/"))
>> >                               ^^
>> >
>> > Is this \\ really correct?
>>
>> Note that the doc string of browse-url-transform-alist is wrong: the
>> replacement text is passed to replace-match (not string-match) with
>> LITERAL = t, so that back references are _not_ possible (and hence the
>> backslash is not special).
>
> And it seems that the docstring and the implementation were
> contradictory since they were both introduced in the same commit in
> 2024.  Seems it's too late to change this and we should fix that
> docstring.
>
> @Sean in case it is unclear (because the "^^" seems to appear at the
> wrong place): we mean the "\\" in "gnus\\.org".

Thanks all, I think I've fixed both issues.

-- 
Sean Whitton
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.