aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/bug-reference.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/bug-reference.el')
-rw-r--r--lisp/progmodes/bug-reference.el13
1 files changed, 11 insertions, 2 deletions
diff --git a/lisp/progmodes/bug-reference.el b/lisp/progmodes/bug-reference.el
index 0a7d65c1fa4..97fcb6874dd 100644
--- a/lisp/progmodes/bug-reference.el
+++ b/lisp/progmodes/bug-reference.el
@@ -32,6 +32,11 @@
32 32
33;;; Code: 33;;; Code:
34 34
35(defgroup bug-reference nil
36 "Hyperlinking references to bug reports"
37 ;; Somewhat arbitrary, by analogy with eg goto-address.
38 :group 'comm)
39
35(defvar bug-reference-map 40(defvar bug-reference-map
36 (let ((map (make-sparse-keymap))) 41 (let ((map (make-sparse-keymap)))
37 (define-key map [mouse-2] 'bug-reference-push-button) 42 (define-key map [mouse-2] 'bug-reference-push-button)
@@ -63,9 +68,13 @@ so that it is considered safe, see `enable-local-variables'.")
63 (and (symbolp s) 68 (and (symbolp s)
64 (get s 'bug-reference-url-format))))) 69 (get s 'bug-reference-url-format)))))
65 70
66(defconst bug-reference-bug-regexp 71(defcustom bug-reference-bug-regexp
67 "\\([Bb]ug ?#\\|[Pp]atch ?#\\|RFE ?#\\|PR [a-z-+]+/\\)\\([0-9]+\\(?:#[0-9]+\\)?\\)" 72 "\\([Bb]ug ?#\\|[Pp]atch ?#\\|RFE ?#\\|PR [a-z-+]+/\\)\\([0-9]+\\(?:#[0-9]+\\)?\\)"
68 "Regular expression which matches bug references.") 73 "Regular expression matching bug references.
74The second subexpression should match the bug reference (usually a number)."
75 :type 'string
76 :safe 'stringp
77 :group 'bug-reference)
69 78
70(defun bug-reference-set-overlay-properties () 79(defun bug-reference-set-overlay-properties ()
71 "Set properties of bug reference overlays." 80 "Set properties of bug reference overlays."