Variable: bug-reference-auto-setup-functions

bug-reference-auto-setup-functions is a variable defined in bug-reference.el.gz.

Value

(bug-reference-try-setup-from-erc
 bug-reference-try-setup-from-rcirc
 bug-reference-try-setup-from-rmail
 bug-reference-try-setup-from-gnus
 bug-reference-try-setup-from-vc)

Documentation

Functions trying to auto-setup bug-reference-mode(var)/bug-reference-mode(fun).

These functions are run after bug-reference-mode(var)/bug-reference-mode(fun) has been activated in a buffer and try to guess suitable values for bug-reference-bug-regexp and bug-reference-url-format. Their guesswork is based on these variables:

- bug-reference-setup-from-vc-alist for guessing based on
  version control, e.g., URL of repository.
- bug-reference-setup-from-mail-alist for guessing based on
  mail group names or mail header values.
- bug-reference-setup-from-irc-alist for guessing based on IRC
  channel or network names.

Note: This variable's purpose is to allow packages to provide bug-reference auto-setup support in buffers managed by this package. Therefore, such auto-setup function should check if the current buffer is "their" buffer and only act if that's the case, e.g., in terms of derived-mode-p.

The variable is not intended for users. Those are advised to set bug-reference-bug-regexp and bug-reference-url-format using other means such as file-local variable sections, a
.dir-locals.el file, or compute and set their values in
bug-reference-mode-hook or bug-reference-prog-mode-hook. If the bug regexp and URL format are already set after those hooks have been run, the auto-setup is inhibited.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/bug-reference.el.gz
(defvar bug-reference-auto-setup-functions nil
  "Functions trying to auto-setup `bug-reference-mode'.
These functions are run after `bug-reference-mode' has been
activated in a buffer and try to guess suitable values for
`bug-reference-bug-regexp' and `bug-reference-url-format'.  Their
guesswork is based on these variables:

- `bug-reference-setup-from-vc-alist' for guessing based on
  version control, e.g., URL of repository.
- `bug-reference-setup-from-mail-alist' for guessing based on
  mail group names or mail header values.
- `bug-reference-setup-from-irc-alist' for guessing based on IRC
  channel or network names.

Note: This variable's purpose is to allow packages to provide
bug-reference auto-setup support in buffers managed by this
package.  Therefore, such auto-setup function should check if the
current buffer is \"their\" buffer and only act if that's the
case, e.g., in terms of `derived-mode-p'.

The variable is not intended for users.  Those are advised to set
`bug-reference-bug-regexp' and `bug-reference-url-format' using
other means such as file-local variable sections, a
`.dir-locals.el' file, or compute and set their values in
`bug-reference-mode-hook' or `bug-reference-prog-mode-hook'.  If
the bug regexp and URL format are already set after those hooks
have been run, the auto-setup is inhibited.")