mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Fix unloading the hl-line library
* lisp/hl-line.el (hl-line-unload-function): Restore function.
This commit is contained in:
parent
f36d929ee7
commit
63a33c3057
1 changed files with 10 additions and 0 deletions
|
|
@ -127,6 +127,16 @@ Currently used in calendar/todo-mode."
|
|||
(let (inhibit-quit)
|
||||
(hl-line-mode 1))))
|
||||
|
||||
(defun hl-line-unload-function ()
|
||||
"Unload the Hl-Line library."
|
||||
(global-hl-line-mode -1)
|
||||
(save-current-buffer
|
||||
(dolist (buffer (buffer-list))
|
||||
(set-buffer buffer)
|
||||
(when hl-line-mode (hl-line-mode -1))))
|
||||
;; continue standard unloading
|
||||
nil)
|
||||
|
||||
;;;###autoload
|
||||
(define-globalized-minor-mode global-hl-line-mode
|
||||
hl-line-mode hl-line-turn-on
|
||||
|
|
|
|||
Loading…
Reference in a new issue