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

Andreas Schwab <[email protected]> Sun, 09 Aug 2026 17:41:23 +0200
Newsgroups gmane.emacs.devel
Message-ID <[email protected]>
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).

-- 
Andreas Schwab, [email protected]
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."