Function: Electric-command-history-redo-expression

Electric-command-history-redo-expression is an autoloaded, interactive and byte-compiled function defined in echistory.el.gz.

Signature

(Electric-command-history-redo-expression &optional NOCONFIRM)

Documentation

Edit current history line in minibuffer and execute result.

With prefix arg NOCONFIRM, execute current line as-is without editing.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/echistory.el.gz
;;;###autoload
(defun Electric-command-history-redo-expression (&optional noconfirm)
  "Edit current history line in minibuffer and execute result.
With prefix arg NOCONFIRM, execute current line as-is without editing."
  (interactive "P")
  (let (todo)
    (with-current-buffer "*Command History*"
      (beginning-of-line)
      (setq todo (read (current-buffer)))
      (if (boundp 'electric-history-in-progress)
	  (if todo (throw 'electric-history-quit (list noconfirm todo)))))))