]> git.eshelyaron.com Git - emacs.git/commitdiff
(allout-unload-function): New function.
authorJuanma Barranquero <lekktu@gmail.com>
Fri, 25 Jan 2008 15:11:18 +0000 (15:11 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Fri, 25 Jan 2008 15:11:18 +0000 (15:11 +0000)
lisp/allout.el

index 43642e6ee26d927f612f02c3b4ab4b9a3c0b25e8..7782170e8346616fad505d638acee75397fa06f3 100644 (file)
@@ -2120,6 +2120,16 @@ OPEN:    A TOPIC that is not CLOSED, though its OFFSPRING or BODY may be."
 ;;;_  > allout-minor-mode
 (defalias 'allout-minor-mode 'allout-mode)
 
+;;;_  > allout-unload-function
+(defun allout-unload-function ()
+  "Unload the allout outline library."
+  (save-current-buffer
+    (dolist (buffer (buffer-list))
+      (set-buffer buffer)
+      (when allout-mode (allout-mode -1))))
+  ;; continue standard unloading
+  nil)
+
 ;;;_  - Position Assessment
 ;;;_   > allout-hidden-p (&optional pos)
 (defsubst allout-hidden-p (&optional pos)