]> code.delx.au - gnu-emacs/commitdiff
(reftex-vref-is-default, reftex-fref-is-default, reftex-guess-label-type):
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 26 Apr 2006 05:30:29 +0000 (05:30 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 26 Apr 2006 05:30:29 +0000 (05:30 +0000)
Tighten up a bit the safety predicate.

lisp/ChangeLog
lisp/textmodes/reftex-vars.el

index 823c4831a72e19b6f21f6b773503fe771ced5850..fd46d8b60f495d0109b0665e929de4a87a37295e 100644 (file)
@@ -1,5 +1,9 @@
 2006-04-26  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * textmodes/reftex-vars.el (reftex-vref-is-default)
+       (reftex-fref-is-default, reftex-guess-label-type):
+       Tighten up a bit the safety predicate.
+
        * textmodes/paragraphs.el (sentence-end-double-space)
        (sentence-end-without-period, sentence-end-without-space)
        (page-delimiter, paragraph-ignore-fill-prefix):
index 07b5d1ca1781e281188076957817ff1fbb5af1b6..026336c301e701efbcd1a800042daae821161b09 100644 (file)
@@ -948,7 +948,7 @@ Instead of nil or t, this may also be a string of type letters indicating
 the label types for which it should be true."
   :group  'reftex-referencing-labels
   :type `(choice :tag "\\vref is default macro" ,@reftex-tmp))
-;;;###autoload(put 'reftex-vref-is-default 'safe-local-variable t)
+;;;###autoload(put 'reftex-vref-is-default 'safe-local-variable (lambda (x) (or (stringp x) (symbolp x))))
 
 (defcustom reftex-fref-is-default nil
   "*Non-nil means, the fancyref macro \\fref is used as default.
@@ -959,7 +959,7 @@ Instead of nil or t, this may also be a string of type letters indicating
 the label types for which it should be true."
   :group  'reftex-referencing-labels
   :type `(choice :tag "\\fref is default macro" ,@reftex-tmp))
-;;;###autoload(put 'reftex-fref-is-default 'safe-local-variable t)
+;;;###autoload(put 'reftex-fref-is-default 'safe-local-variable (lambda (x) (or (stringp x) (symbolp x))))
 
 (defcustom reftex-level-indent 2
   "*Number of spaces to be used for indentation per section level."
@@ -975,7 +975,7 @@ immediately offer the correct label menu - otherwise it will prompt you for
 a label type.  If you set this variable to nil, RefTeX will always prompt."
   :group 'reftex-referencing-labels
   :type 'boolean)
-;;;###autoload(put 'reftex-guess-label-type 'safe-local-variable t)
+;;;###autoload(put 'reftex-guess-label-type 'safe-local-variable 'symbolp)
 
 (defcustom reftex-format-ref-function nil
   "Function which produces the string to insert as a reference.