summaryrefslogtreecommitdiff
path: root/lisp/progmodes/compile.el
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1993-08-03 21:38:31 +0000
committerRoland McGrath <roland@gnu.org>1993-08-03 21:38:31 +0000
commitd6bd8dca5d45ed3afdf1b172f1af559a85e7d750 (patch)
tree6ec8172208b5ac9b562f59f7b22055423cff5d27 /lisp/progmodes/compile.el
parentcac0b95d130d719a50ea951e368b07d6b2d88077 (diff)
downloademacs-d6bd8dca5d45ed3afdf1b172f1af559a85e7d750.tar.gz
(compilation-minor-mode): Make variable buffer-local.
(compilation-minor-mode): Autoload this function.
Diffstat (limited to 'lisp/progmodes/compile.el')
-rw-r--r--lisp/progmodes/compile.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 867c06c600e..1eef0ed2605 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -391,6 +391,7 @@ Runs `compilation-mode-hook' with `run-hooks' (which see)."
"Non-nil when in compilation-minor-mode.
In this minor mode, all the error-parsing commands of the
Compilation major mode are available.")
+(make-variable-buffer-local 'compilation-minor-mode)
(or (assq 'compilation-minor-mode minor-mode-alist)
(setq minor-mode-alist (cons '(compilation-minor-mode " Compilation")
@@ -400,6 +401,7 @@ Compilation major mode are available.")
compilation-minor-mode-map)
minor-mode-map-alist)))
+;;;###autoload
(defun compilation-minor-mode (&optional arg)
"Toggle compilation minor mode.
With arg, turn compilation mode on if and only if arg is positive.