diff options
| author | Stefan Monnier | 2006-04-26 05:30:29 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2006-04-26 05:30:29 +0000 |
| commit | 0a206828d8892e97523c3eff5df41b8ea647d2a2 (patch) | |
| tree | 5b5a09ef9a7ab531e6269f6621a93e04ec3126fe /lisp/textmodes | |
| parent | 49011d46973dde1c699484fbd3607df10ee78145 (diff) | |
| download | emacs-0a206828d8892e97523c3eff5df41b8ea647d2a2.tar.gz emacs-0a206828d8892e97523c3eff5df41b8ea647d2a2.zip | |
(reftex-vref-is-default, reftex-fref-is-default, reftex-guess-label-type):
Tighten up a bit the safety predicate.
Diffstat (limited to 'lisp/textmodes')
| -rw-r--r-- | lisp/textmodes/reftex-vars.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/textmodes/reftex-vars.el b/lisp/textmodes/reftex-vars.el index 07b5d1ca178..026336c301e 100644 --- a/lisp/textmodes/reftex-vars.el +++ b/lisp/textmodes/reftex-vars.el | |||
| @@ -948,7 +948,7 @@ Instead of nil or t, this may also be a string of type letters indicating | |||
| 948 | the label types for which it should be true." | 948 | the label types for which it should be true." |
| 949 | :group 'reftex-referencing-labels | 949 | :group 'reftex-referencing-labels |
| 950 | :type `(choice :tag "\\vref is default macro" ,@reftex-tmp)) | 950 | :type `(choice :tag "\\vref is default macro" ,@reftex-tmp)) |
| 951 | ;;;###autoload(put 'reftex-vref-is-default 'safe-local-variable t) | 951 | ;;;###autoload(put 'reftex-vref-is-default 'safe-local-variable (lambda (x) (or (stringp x) (symbolp x)))) |
| 952 | 952 | ||
| 953 | (defcustom reftex-fref-is-default nil | 953 | (defcustom reftex-fref-is-default nil |
| 954 | "*Non-nil means, the fancyref macro \\fref is used as default. | 954 | "*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 | |||
| 959 | the label types for which it should be true." | 959 | the label types for which it should be true." |
| 960 | :group 'reftex-referencing-labels | 960 | :group 'reftex-referencing-labels |
| 961 | :type `(choice :tag "\\fref is default macro" ,@reftex-tmp)) | 961 | :type `(choice :tag "\\fref is default macro" ,@reftex-tmp)) |
| 962 | ;;;###autoload(put 'reftex-fref-is-default 'safe-local-variable t) | 962 | ;;;###autoload(put 'reftex-fref-is-default 'safe-local-variable (lambda (x) (or (stringp x) (symbolp x)))) |
| 963 | 963 | ||
| 964 | (defcustom reftex-level-indent 2 | 964 | (defcustom reftex-level-indent 2 |
| 965 | "*Number of spaces to be used for indentation per section level." | 965 | "*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 | |||
| 975 | a label type. If you set this variable to nil, RefTeX will always prompt." | 975 | a label type. If you set this variable to nil, RefTeX will always prompt." |
| 976 | :group 'reftex-referencing-labels | 976 | :group 'reftex-referencing-labels |
| 977 | :type 'boolean) | 977 | :type 'boolean) |
| 978 | ;;;###autoload(put 'reftex-guess-label-type 'safe-local-variable t) | 978 | ;;;###autoload(put 'reftex-guess-label-type 'safe-local-variable 'symbolp) |
| 979 | 979 | ||
| 980 | (defcustom reftex-format-ref-function nil | 980 | (defcustom reftex-format-ref-function nil |
| 981 | "Function which produces the string to insert as a reference. | 981 | "Function which produces the string to insert as a reference. |