From: Tom Tromey Date: Wed, 23 Dec 2015 00:02:59 +0000 (-0700) Subject: Fix bug #18588 by making bug-reference-bug-regexp more lenient X-Git-Tag: emacs-25.0.90~411 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=781770b4dcfe44b255e94e16479fd14633803640;p=emacs.git Fix bug #18588 by making bug-reference-bug-regexp more lenient * lisp/progmodes/bug-reference.el (bug-reference-bug-regexp): Accept "bug NNNN". (Bug #18588) --- diff --git a/lisp/progmodes/bug-reference.el b/lisp/progmodes/bug-reference.el index a78c57c2053..921a904191c 100644 --- a/lisp/progmodes/bug-reference.el +++ b/lisp/progmodes/bug-reference.el @@ -69,7 +69,7 @@ so that it is considered safe, see `enable-local-variables'.") (get s 'bug-reference-url-format))))) (defcustom bug-reference-bug-regexp - "\\([Bb]ug ?#\\|[Pp]atch ?#\\|RFE ?#\\|PR [a-z-+]+/\\)\\([0-9]+\\(?:#[0-9]+\\)?\\)" + "\\([Bb]ug ?#?\\|[Pp]atch ?#\\|RFE ?#\\|PR [a-z-+]+/\\)\\([0-9]+\\(?:#[0-9]+\\)?\\)" "Regular expression matching bug references. The second subexpression should match the bug reference (usually a number)." :type 'string