summaryrefslogtreecommitdiff
path: root/lisp/longlines.el
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2008-02-28 23:41:52 +0000
committerJuanma Barranquero <lekktu@gmail.com>2008-02-28 23:41:52 +0000
commitc172e10123717a3d3a44bdccda587114d598c5d4 (patch)
tree4c37a1851077b1f4d86aeda220b4111e7e7a0006 /lisp/longlines.el
parent79b1c79cc2589c094d2af38e6d6625035c0e7dfe (diff)
downloademacs-c172e10123717a3d3a44bdccda587114d598c5d4.tar.gz
(longlines-unload-function): New function.
Diffstat (limited to 'lisp/longlines.el')
-rw-r--r--lisp/longlines.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/lisp/longlines.el b/lisp/longlines.el
index 77176a5db24..a163adbe52a 100644
--- a/lisp/longlines.el
+++ b/lisp/longlines.el
@@ -482,6 +482,17 @@ This is called by `window-configuration-change-hook'."
(list 'longlines "Automatically wrap long lines." nil nil
'longlines-encode-region t nil))
+;; Unloading
+
+(defun longlines-unload-function ()
+ "Unload the longlines library."
+ (save-current-buffer
+ (dolist (buffer (buffer-list))
+ (set-buffer buffer)
+ (longlines-mode-off)))
+ ;; continue standard unloading
+ nil)
+
(provide 'longlines)
;; arch-tag: 3489d225-5506-47b9-8659-d8807b77c624