changeset 111219:88ac54c22b2b

* lisp/vc/log-edit.el (log-edit-rewrite-fixes): State its safety pred.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 28 Oct 2010 10:36:59 -0400
parents b6601148b588
children fc95f9fde9d3
files lisp/ChangeLog lisp/vc/log-edit.el
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Thu Oct 28 12:45:51 2010 +0000
+++ b/lisp/ChangeLog	Thu Oct 28 10:36:59 2010 -0400
@@ -1,3 +1,7 @@
+2010-10-28  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+	* vc/log-edit.el (log-edit-rewrite-fixes): State its safety pred.
+
 2010-10-28  Glenn Morris  <rgm@gnu.org>
 
 	* term/ns-win.el (global-map, menu-bar-final-items, menu-bar-help-menu):
--- a/lisp/vc/log-edit.el	Thu Oct 28 12:45:51 2010 +0000
+++ b/lisp/vc/log-edit.el	Thu Oct 28 10:36:59 2010 -0400
@@ -579,6 +579,8 @@
 where REGEXP should match the expression referring to a bug number
 in the text, and REPLACEMENT is an expression to pass to `replace-match'
 to build the Fixes: header.")
+(put 'log-edit-rewrite-fixes 'safe-local-variable
+     (lambda (v) (and (stringp (car-safe v)) (stringp (cdr v)))))
 
 (defun log-edit-insert-changelog (&optional use-first)
   "Insert a log message by looking at the ChangeLog.