Re: emacs-31 f561bc6c370: ; * etc/NEWS: Use a non-commercial example.
Michael Heerdegen via "Emacs development discussions." <[email protected]> Mon, 10 Aug 2026 02:25:06 +0200
| Newsgroups | gmane.emacs.devel |
|---|---|
| Message-ID | <[email protected]> |
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". Michael.