Variable: bug-reference-setup-from-mail-alist

bug-reference-setup-from-mail-alist is a variable defined in bug-reference.el.gz.

Value

(("\\<\\(auctex\\|emacs\\|gnus\\|orgmode\\|tramp\\)\\>"
  "\\(?:\\(?:-devel@gnu\\|@debbugs\\.gnu\\|ding\\.gnus\\)\\.org\\)"
  "\\(\\b[Bb]ug ?#?\\([0-9]+\\(?:#[0-9]+\\)?\\)\\)"
  "https://debbugs.gnu.org/%s"))

Documentation

An alist for setting up bug-reference-mode(var)/bug-reference-mode(fun) in mail modes.

This takes action if bug-reference-mode(var)/bug-reference-mode(fun) is enabled in group and message buffers of Emacs mail clients. Currently, Gnus and Rmail are supported.

Each element has the form

  (GROUP-REGEXP HEADER-REGEXP BUG-REGEXP URL-FORMAT)

GROUP-REGEXP is a regexp matched against the current mail folder or newsgroup name. HEADER-REGEXP is a regexp matched against the From, To, Cc, Newsgroup, and List-ID header values of the current mail or newsgroup message. If any of those matches, BUG-REGEXP is set as bug-reference-bug-regexp and URL-FORMAT is set as bug-reference-url-format.

Note: In Gnus, if a summary buffer has been set up based on GROUP-REGEXP, all article buffers opened from there will get the same bug-reference-url-format and bug-reference-url-format.

View in manual

Probably introduced at or before Emacs version 28.1.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/bug-reference.el.gz
(defvar bug-reference-setup-from-mail-alist
  `((,(regexp-opt '("emacs" "auctex" "gnus" "tramp" "orgmode") 'words)
     ,(regexp-opt '("@debbugs.gnu.org" "-devel@gnu.org"
                    ;; List-Id of Gnus devel mailing list.
                    "ding.gnus.org"))
     "\\(\\b[Bb]ug ?#?\\([0-9]+\\(?:#[0-9]+\\)?\\)\\)"
     "https://debbugs.gnu.org/%s"))
  "An alist for setting up `bug-reference-mode' in mail modes.

This takes action if `bug-reference-mode' is enabled in group and
message buffers of Emacs mail clients.  Currently, Gnus and Rmail
are supported.

Each element has the form

  (GROUP-REGEXP HEADER-REGEXP BUG-REGEXP URL-FORMAT)

GROUP-REGEXP is a regexp matched against the current mail folder
or newsgroup name.  HEADER-REGEXP is a regexp matched against the
From, To, Cc, Newsgroup, and List-ID header values of the current
mail or newsgroup message.  If any of those matches, BUG-REGEXP
is set as `bug-reference-bug-regexp' and URL-FORMAT is set as
`bug-reference-url-format'.

Note: In Gnus, if a summary buffer has been set up based on
GROUP-REGEXP, all article buffers opened from there will get the
same `bug-reference-url-format' and `bug-reference-url-format'.")