aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/bug-reference.el
diff options
context:
space:
mode:
authorSam Steingold2010-04-27 11:13:42 -0400
committerSam Steingold2010-04-27 11:13:42 -0400
commit2a6f654ef1656603fa9f3d925efe3e1a5cbe0ecc (patch)
tree49949dbcc8df946d165f0660044e41517128d66d /lisp/progmodes/bug-reference.el
parentcecaa6745f10332a30f4ba42c0e41278072b92e3 (diff)
downloademacs-2a6f654ef1656603fa9f3d925efe3e1a5cbe0ecc.tar.gz
emacs-2a6f654ef1656603fa9f3d925efe3e1a5cbe0ecc.zip
(bug-reference-url-format): Mark as `safe-local-variable' if the value
is a string or a function, as documented and implemented on 2010-04-02.
Diffstat (limited to 'lisp/progmodes/bug-reference.el')
-rw-r--r--lisp/progmodes/bug-reference.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/bug-reference.el b/lisp/progmodes/bug-reference.el
index 462f978ab78..1ddfddf89c1 100644
--- a/lisp/progmodes/bug-reference.el
+++ b/lisp/progmodes/bug-reference.el
@@ -51,7 +51,8 @@ It can use `match-string' to get parts matched against
51There is no default setting for this, it must be set per file.") 51There is no default setting for this, it must be set per file.")
52 52
53;;;###autoload 53;;;###autoload
54(put 'bug-reference-url-format 'safe-local-variable 'stringp) 54(put 'bug-reference-url-format 'safe-local-variable
55 (lambda (s) (or (stringp s) (functionp s))))
55 56
56(defconst bug-reference-bug-regexp 57(defconst bug-reference-bug-regexp
57 "\\([Bb]ug ?#\\|[Pp]atch ?#\\|RFE ?#\\|PR [a-z-+]+/\\)\\([0-9]+\\)" 58 "\\([Bb]ug ?#\\|[Pp]atch ?#\\|RFE ?#\\|PR [a-z-+]+/\\)\\([0-9]+\\)"