mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Clean up some safe-local-variable predicates
* lisp/progmodes/project.el: Add comments with a reminder to simplify 'safe-local-variable' predicates when Emacs 28 support is dropped. (project-vc-ignores): Mark only a list of strings as safe-local. * lisp/textmodes/reftex-vars.el (reftex-guess-label-type): Use booleanp for 'safe-local-variable' predicate. (Bug#65608)
This commit is contained in:
parent
8650b3308d
commit
9647ddb299
2 changed files with 4 additions and 2 deletions
|
|
@ -410,7 +410,8 @@ the buffer's value of `default-directory'."
|
|||
(defcustom project-vc-ignores nil
|
||||
"List of patterns to add to `project-ignores'."
|
||||
:type '(repeat string))
|
||||
;;;###autoload(put 'project-vc-ignores 'safe-local-variable #'listp)
|
||||
;; Change to `list-of-strings-p' when support for Emacs 28 is dropped.
|
||||
;;;###autoload(put 'project-vc-ignores 'safe-local-variable (lambda (val) (and (listp val) (not (memq nil (mapcar #'stringp val))))))
|
||||
|
||||
(defcustom project-vc-merge-submodules t
|
||||
"Non-nil to consider submodules part of the parent project.
|
||||
|
|
@ -465,6 +466,7 @@ variables, such as `project-vc-ignores' or `project-vc-name'."
|
|||
:type '(repeat string)
|
||||
:version "29.1"
|
||||
:package-version '(project . "0.9.0"))
|
||||
;; Change to `list-of-strings-p' when support for Emacs 28 is dropped.
|
||||
;;;###autoload(put 'project-vc-extra-root-markers 'safe-local-variable (lambda (val) (and (listp val) (not (memq nil (mapcar #'stringp val))))))
|
||||
|
||||
;; FIXME: Using the current approach, major modes are supposed to set
|
||||
|
|
|
|||
|
|
@ -1156,7 +1156,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 (lambda (x) (memq x '(nil t))))
|
||||
;;;###autoload(put 'reftex-guess-label-type 'safe-local-variable #'booleanp)
|
||||
|
||||
(defcustom reftex-format-ref-function nil
|
||||
"Function which produces the string to insert as a reference.
|
||||
|
|
|
|||
Loading…
Reference in a new issue