mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
* 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.
This commit is contained in:
parent
e6b93245fe
commit
6d8b6e67da
1 changed files with 3 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue