From: Stefan Monnier Date: Sat, 29 Apr 2006 13:55:42 +0000 (+0000) Subject: (reftex-guess-label-type): Tighten the safety predicate. X-Git-Tag: emacs-pretest-22.0.90~2913 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a55b741ef27db4b7e5c5b67acf92069cb039a0f8;p=emacs.git (reftex-guess-label-type): Tighten the safety predicate. --- diff --git a/lisp/textmodes/reftex-vars.el b/lisp/textmodes/reftex-vars.el index 026336c301e..f4334fbbd70 100644 --- a/lisp/textmodes/reftex-vars.el +++ b/lisp/textmodes/reftex-vars.el @@ -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 'symbolp) +;;;###autoload(put 'reftex-guess-label-type 'safe-local-variable (lambda (x) (memq x '(nil t)))) (defcustom reftex-format-ref-function nil "Function which produces the string to insert as a reference.