Variable: browse-url-transform-alist

browse-url-transform-alist is a customizable variable defined in browse-url.el.gz.

Value

nil

Documentation

Alist of transformations to apply to URLs before loading it.

Each element has the form (ORIG . REPLACEMENT), where ORIG is a regular expression and REPLACEMENT is the replacement text. Every element will 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.

This variable was added, or its default value changed, in Emacs 31.1.

Probably introduced at or before Emacs version 31.1.

Source Code

;; Defined in /usr/src/emacs/lisp/net/browse-url.el.gz
(defcustom browse-url-transform-alist nil
  "Alist of transformations to apply to URLs before loading it.
Each element has the form (ORIG . REPLACEMENT), where ORIG is a regular
expression and REPLACEMENT is the replacement text.  Every element will
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
          (const :tag "None" nil)
          (alist
           :tag "Alist mapping from regexp to replacement"
           :key-type (regexp :tag "Regexp")
           :value-type (regexp :tag "Replacement")))
  :version "31.1")