summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2012-07-02 22:16:11 -0400
committerGlenn Morris <rgm@gnu.org>2012-07-02 22:16:11 -0400
commitb544fef2ac730e5fc8c072b33584d9b48d25f6fa (patch)
tree49bc28306a56d8924ece67edfb8bd21d6d318281
parent71f56da2684465d2dc05b2cc780184d95b291dc1 (diff)
downloademacs-b544fef2ac730e5fc8c072b33584d9b48d25f6fa.tar.gz
Tweak bug-reference-bug-regexp setting
* lisp/progmodes/bug-reference.el (bug-reference-bug-regexp): Allow linking to specific messages in debbugs reports (eg 123#5).
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/bug-reference.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index bab4085587e..58cb7e69688 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2012-07-03 Glenn Morris <rgm@gnu.org>
+
+ * progmodes/bug-reference.el (bug-reference-bug-regexp):
+ Allow linking to specific messages in debbugs reports (eg 123#5).
+
2012-07-02 Chong Yidong <cyd@gnu.org>
* xml.el: Fix entity and character reference expansion, allowing
diff --git a/lisp/progmodes/bug-reference.el b/lisp/progmodes/bug-reference.el
index 015b9a9ceaf..48ef5da12ae 100644
--- a/lisp/progmodes/bug-reference.el
+++ b/lisp/progmodes/bug-reference.el
@@ -62,7 +62,7 @@ so that it is considered safe, see `enable-local-variables'.")
(get s 'bug-reference-url-format)))))
(defconst bug-reference-bug-regexp
- "\\([Bb]ug ?#\\|[Pp]atch ?#\\|RFE ?#\\|PR [a-z-+]+/\\)\\([0-9]+\\)"
+ "\\([Bb]ug ?#\\|[Pp]atch ?#\\|RFE ?#\\|PR [a-z-+]+/\\)\\([0-9]+\\(?:#[0-9]+\\)?\\)"
"Regular expression which matches bug references.")
(defun bug-reference-set-overlay-properties ()