; Fix docs for browse-url-transform-alist.

See <https://lists.gnu.org/archive/html/emacs-devel/2026-08/msg00303.html>.
This commit is contained in:
Sean Whitton 2026-08-14 10:40:53 +01:00
parent 71df1ea6d0
commit f6e3b4232f
2 changed files with 2 additions and 6 deletions

View file

@ -1820,7 +1820,7 @@ This user option is an alist that allows transforming URLs before asking
a web browser to load them. For example, it could be used like this: a web browser to load them. For example, it could be used like this:
(add-to-list 'browse-url-transform-alist (add-to-list 'browse-url-transform-alist
'("vim\\.org/.*" . "gnu\\.org/software/emacs/")) '("vim\\.org/.*" . "gnu.org/software/emacs/"))
--- ---
*** New command 'browse-url-qutebrowser' for Qutebrowser. *** New command 'browse-url-qutebrowser' for Qutebrowser.

View file

@ -270,11 +270,7 @@ be used instead."
"Alist of transformations to apply to URLs before loading it. "Alist of transformations to apply to URLs before loading it.
Each element has the form (ORIG . REPLACEMENT), where ORIG is a regular Each element has the form (ORIG . REPLACEMENT), where ORIG is a regular
expression and REPLACEMENT is the replacement text. Every element will expression and REPLACEMENT is the replacement text. Every element will
be tested in turn, allowing more than one transformation to be made. be tested in turn, allowing more than one transformation to be made."
Note that ORIG and REPLACEMENT are passed as arguments to
`string-match', so you can, for example, use match groups in ORIG and
backreferences in REPLACEMENT."
:type '(choice :type '(choice
(const :tag "None" nil) (const :tag "None" nil)
(alist (alist