[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 63a33c3057: Fix unloading the hl-line library
From: |
Po Lu |
Subject: |
master 63a33c3057: Fix unloading the hl-line library |
Date: |
Mon, 21 Mar 2022 20:23:26 -0400 (EDT) |
branch: master
commit 63a33c3057321a4d2fddbbfe34e11e87ef99b6ad
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Fix unloading the hl-line library
* lisp/hl-line.el (hl-line-unload-function): Restore function.
---
lisp/hl-line.el | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/lisp/hl-line.el b/lisp/hl-line.el
index 47d5b0f247..70ba0fcfc2 100644
--- a/lisp/hl-line.el
+++ b/lisp/hl-line.el
@@ -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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 63a33c3057: Fix unloading the hl-line library,
Po Lu <=