Function: shell-command--same-buffer-confirm

shell-command--same-buffer-confirm is a byte-compiled function defined in simple.el.gz.

Signature

(shell-command--same-buffer-confirm ACTION)

Source Code

;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defun shell-command--same-buffer-confirm (action)
  (let ((help-form
         (format
          "There's a command already running in the default buffer,
so we can't start a new one in the same one.

Answering \"yes\" will %s.

Answering \"no\" will exit without doing anything, and won't
start the new command.

Also see the `async-shell-command-buffer' variable."
          (downcase action))))
    (unless (yes-or-no-p
             (format "A command is running in the default buffer.  %s? "
                     action))
      (user-error "Shell command in progress"))))