Function: kill-compilation

kill-compilation is an interactive and byte-compiled function defined in compile.el.gz.

Signature

(kill-compilation)

Documentation

Kill the process made by the M-x compile (compile) or M-x grep (grep) commands.

View in manual

Key Bindings

Aliases

kill-grep

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/compile.el.gz
(defun kill-compilation ()
  "Kill the process made by the \\[compile] or \\[grep] commands."
  (interactive)
  (let ((buffer (compilation-find-buffer)))
    (if (get-buffer-process buffer)
	(interrupt-process (get-buffer-process buffer))
      (error "The %s process is not running"
             (compilation--downcase-mode-name mode-name)))))