aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero <[email protected]>2008-01-31 10:59:14 +0000
committerJuanma Barranquero <[email protected]>2008-01-31 10:59:14 +0000
commit08cf830bbd55a241619a6d0a4b53ad44c8d187c6 (patch)
tree490bed3e2041138e9e2d12013593ea5d8624aa14
parent868a6b71bd3bbddeb57ada174555172177b6e9e2 (diff)
(linum-unload-function): New function.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/linum.el6
2 files changed, 11 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 469ff08d65..22db4c3fe8 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
+2008-01-31 Juanma Barranquero <[email protected]>
+
+ * linum.el (linum-unload-function): New function.
+
2008-01-30 Juanma Barranquero <[email protected]>
* emacs-lisp/check-declare.el (check-declare-directory):
@@ -70,8 +74,7 @@
* image-mode.el (image-mode-current-vscroll)
(image-mode-current-hscroll): New variables.
- (image-set-window-hscroll, image-set-window-vscroll): New
- functions.
+ (image-set-window-hscroll, image-set-window-vscroll): New functions.
(image-forward-hscroll, image-next-line, image-bol, image-eol)
(image-bob, image-eob): Use them.
(image-reset-current-vhscroll): New function.
diff --git a/lisp/linum.el b/lisp/linum.el
index 078645c412..2aa79e0442 100644
--- a/lisp/linum.el
+++ b/lisp/linum.el
@@ -190,6 +190,12 @@ and you have to scroll or press \\[recenter-top-bottom] to update the numbers."
(defun linum-after-config ()
(walk-windows (lambda (w) (linum-update (window-buffer))) nil 'visible))
+(defun linum-unload-function ()
+ "Unload the Linum library."
+ (global-linum-mode -1)
+ ;; continue standard unloading
+ nil)
+
(provide 'linum)
;; arch-tag: dea45631-ed3c-4867-8b49-1c41c80aec6a