changeset 2934:7c4226d1ea65

(outline-minor-mode): Make var permanent local in all buffers. Give the command a doc string.
author Richard M. Stallman <rms@gnu.org>
date Fri, 21 May 1993 17:25:50 +0000
parents 420dfaaacfc5
children 653e14f61220
files lisp/textmodes/ooutline.el
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/ooutline.el	Fri May 21 16:37:35 1993 +0000
+++ b/lisp/textmodes/ooutline.el	Fri May 21 17:25:50 1993 +0000
@@ -59,6 +59,8 @@
 
 (defvar outline-minor-mode nil
   "Non-nil if using Outline mode as a minor mode of some other mode.")
+(make-variable-buffer-local 'outline-minor-mode)
+(put 'outline-minor-mode 'permanent-local t)
 (setq minor-mode-alist (append minor-mode-alist
 			       (list '(outline-minor-mode " Outl"))))
 
@@ -135,6 +137,9 @@
 		minor-mode-map-alist)))
 
 (defun outline-minor-mode (&optional arg)
+  "Toggle Outline minor mode.
+With arg, turn Outline minor mode on if arg is positive, off otherwise.
+See the command `outline-mode' for more information on this mode."
   (interactive "P")
   (setq outline-minor-mode
 	(if (null arg) (not outline-minor-mode)