From 7e5d77dc2ca1d4064cba18955ab2c50766f62fa8 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Wed, 26 Apr 2006 05:36:12 +0000 Subject: [PATCH] (allout-layout, allout-passphrase-verifier-string) (allout-passphrase-hint-string): Tighten up a bit the safety predicate. --- lisp/ChangeLog | 3 +++ lisp/allout.el | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fd46d8b60f4..76881128585 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2006-04-26 Stefan Monnier + * allout.el (allout-layout, allout-passphrase-verifier-string) + (allout-passphrase-hint-string): Tighten up a bit the safety predicate. + * textmodes/reftex-vars.el (reftex-vref-is-default) (reftex-fref-is-default, reftex-guess-label-type): Tighten up a bit the safety predicate. diff --git a/lisp/allout.el b/lisp/allout.el index 66c4b8681db..cf7b922eea6 100644 --- a/lisp/allout.el +++ b/lisp/allout.el @@ -667,7 +667,7 @@ the layout used for the allout.el source file.) case the value of `allout-default-layout' is used.") (make-variable-buffer-local 'allout-layout) ;;;###autoload -(put 'allout-layout 'safe-local-variable t) +(put 'allout-layout 'safe-local-variable (lambda (x) (or (listp x) (symbolp x)))) ;;;_ : Topic header format ;;;_ = allout-regexp @@ -1053,7 +1053,7 @@ The verifier string is retained as an Emacs file variable, as well as in the emacs buffer state, if file variable adjustments are enabled. See `allout-enable-file-variable-adjustment' for details about that.") (make-variable-buffer-local 'allout-passphrase-verifier-string) -(put 'allout-passphrase-verifier-string 'safe-local-variable t) +(put 'allout-passphrase-verifier-string 'safe-local-variable 'stringp) ;;;_ = allout-passphrase-hint-string (defvar allout-passphrase-hint-string "" "Variable used to retain reminder string for file's encryption passphrase. @@ -1065,7 +1065,7 @@ The hint is retained as an Emacs file variable, as well as in the emacs buffer state, if file variable adjustments are enabled. See `allout-enable-file-variable-adjustment' for details about that.") (make-variable-buffer-local 'allout-passphrase-hint-string) -(put 'allout-passphrase-hint-string 'safe-local-variable t) +(put 'allout-passphrase-hint-string 'safe-local-variable 'stringp) (setq-default allout-passphrase-hint-string "") ;;;_ = allout-after-save-decrypt (defvar allout-after-save-decrypt nil -- 2.39.2