summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorJuri Linkov <juri@linkov.net>2021-12-15 19:17:48 +0200
committerJuri Linkov <juri@linkov.net>2021-12-15 19:17:48 +0200
commit6d8b6e67da2ae29b0b8cc2c06348fb4031d0b099 (patch)
tree2a0f1caa21ec305df325ee170c719044893df284 /lisp
parente6b93245fe41731173854e48441614881478c9cf (diff)
downloademacs-6d8b6e67da2ae29b0b8cc2c06348fb4031d0b099.tar.gz
emacs-6d8b6e67da2ae29b0b8cc2c06348fb4031d0b099.tar.bz2
emacs-6d8b6e67da2ae29b0b8cc2c06348fb4031d0b099.zip
* lisp/outline.el (outline-minor-mode-use-buttons): Add :safe #'booleanp.
(outline-minor-mode-cycle, outline-minor-mode-highlight): Replace `put safe-local-variable' with :safe tag.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/outline.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/outline.el b/lisp/outline.el
index 2ede4e23eac..5e3d4e0e002 100644
--- a/lisp/outline.el
+++ b/lisp/outline.el
@@ -283,6 +283,7 @@ buffers (yet) -- that will be amended in a future version.
The `outline-minor-mode-buttons' variable specifies how the
buttons should look."
:type 'boolean
+ :safe #'booleanp
:version "29.1")
(defcustom outline-minor-mode-buttons
@@ -376,8 +377,8 @@ When point is on a heading line, then typing `TAB' cycles between `hide all',
a heading line cycles the whole buffer (`outline-cycle-buffer').
Typing these keys anywhere outside heading lines uses their default bindings."
:type 'boolean
+ :safe #'booleanp
:version "28.1")
-;;;###autoload(put 'outline-minor-mode-cycle 'safe-local-variable 'booleanp)
(defcustom outline-minor-mode-highlight nil
"Highlight headings in `outline-minor-mode' using font-lock keywords.
@@ -391,8 +392,8 @@ faces to major mode's faces."
(const :tag "Overwrite major mode faces" override)
(const :tag "Append outline faces to major mode faces" append)
(const :tag "Highlight separately from major mode faces" t))
+ :safe #'symbolp
:version "28.1")
-;;;###autoload(put 'outline-minor-mode-highlight 'safe-local-variable 'symbolp)
(defun outline-minor-mode-highlight-buffer ()
;; Fallback to overlays when font-lock is unsupported.