mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(compilation-shell-minor-mode): New function.
This commit is contained in:
parent
c700c260e6
commit
7052680be6
1 changed files with 14 additions and 0 deletions
|
|
@ -970,6 +970,20 @@ Compilation major mode are available.")
|
|||
compilation-minor-mode-map)
|
||||
minor-mode-map-alist)))
|
||||
|
||||
;;;###autoload
|
||||
(defun compilation-shell-minor-mode (&optional arg)
|
||||
"Toggle compilation shell minor mode.
|
||||
With arg, turn compilation mode on if and only if arg is positive.
|
||||
See `compilation-mode'.
|
||||
Turning the mode on runs the normal hook `compilation-shell-minor-mode-hook'."
|
||||
(interactive "P")
|
||||
(if (setq compilation-shell-minor-mode (if (null arg)
|
||||
(null compilation-shell-minor-mode)
|
||||
(> (prefix-numeric-value arg) 0)))
|
||||
(let ((mode-line-process))
|
||||
(compilation-setup)
|
||||
(run-hooks 'compilation-shell-minor-mode-hook))))
|
||||
|
||||
;;;###autoload
|
||||
(defun compilation-minor-mode (&optional arg)
|
||||
"Toggle compilation minor mode.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue