changeset 92320:701bcde65619

(longlines-unload-function): New function.
author Juanma Barranquero <lekktu@gmail.com>
date Thu, 28 Feb 2008 23:41:52 +0000
parents ecc950616ed9
children 01ce588fc626
files lisp/longlines.el
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/longlines.el	Thu Feb 28 23:32:11 2008 +0000
+++ b/lisp/longlines.el	Thu Feb 28 23:41:52 2008 +0000
@@ -482,6 +482,17 @@
  (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