mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-02-08 20:58:58 +00:00
Fix setter for hl-line-sticky-flag when hl-line is not loaded
* lisp/hl-line.el (hl-line-sticky-flag): Wrap most of setter around (featurep 'hl-line). Reported by Michael Heerdegen <michael_heerdegen@web.de>.
This commit is contained in:
parent
97f9eeaaef
commit
72ab6c4f14
@ -105,12 +105,13 @@ For that, use `global-hl-line-sticky-flag'."
|
||||
:group 'hl-line
|
||||
:set (lambda (symbol value)
|
||||
(set-default symbol value)
|
||||
(unless value
|
||||
(let ((selected (window-buffer (selected-window))))
|
||||
(dolist (buffer (buffer-list))
|
||||
(unless (eq buffer selected)
|
||||
(with-current-buffer buffer
|
||||
(hl-line-unhighlight))))))))
|
||||
(when (featurep 'hl-line)
|
||||
(unless value
|
||||
(let ((selected (window-buffer (selected-window))))
|
||||
(dolist (buffer (buffer-list))
|
||||
(unless (eq buffer selected)
|
||||
(with-current-buffer buffer
|
||||
(hl-line-unhighlight)))))))))
|
||||
|
||||
(defcustom global-hl-line-sticky-flag nil
|
||||
"Non-nil means the Global HL-Line mode highlight appears in all windows.
|
||||
|
Loading…
x
Reference in New Issue
Block a user