aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/simple.el13
1 files changed, 5 insertions, 8 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index e3e6a7cebe1..a0ae2f3eeaa 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -630,9 +630,6 @@ then call `undo-more' one or more times to undo them."
630 (error "No further undo information")) 630 (error "No further undo information"))
631 (setq pending-undo-list (primitive-undo count pending-undo-list))) 631 (setq pending-undo-list (primitive-undo count pending-undo-list)))
632 632
633(defvar last-shell-command "")
634(defvar last-shell-command-on-region "")
635
636(defvar shell-command-history nil 633(defvar shell-command-history nil
637 "History list for some commands that read shell commands.") 634 "History list for some commands that read shell commands.")
638 635
@@ -643,8 +640,9 @@ If COMMAND ends in ampersand, execute it asynchronously.
643Optional second arg non-nil (prefix arg, if interactive) 640Optional second arg non-nil (prefix arg, if interactive)
644means insert output in current buffer after point (leave mark after it). 641means insert output in current buffer after point (leave mark after it).
645This cannot be done asynchronously." 642This cannot be done asynchronously."
646 (interactive (list (read-string "Shell command: " last-shell-command) 643 (interactive (list (read-from-minibuffer "Shell command: "
647 current-prefix-arg nil nil 'shell-command-history)) 644 nil nil nil 'shell-command-history)
645 current-prefix-arg))
648 (if flag 646 (if flag
649 (progn (barf-if-buffer-read-only) 647 (progn (barf-if-buffer-read-only)
650 (push-mark) 648 (push-mark)
@@ -738,9 +736,8 @@ even though that buffer is not automatically displayed. If there is no output
738or output is inserted in the current buffer then `*Shell Command Output*' is 736or output is inserted in the current buffer then `*Shell Command Output*' is
739deleted." 737deleted."
740 (interactive (list (region-beginning) (region-end) 738 (interactive (list (region-beginning) (region-end)
741 (read-string "Shell command on region: " 739 (read-from-minibuffer "Shell command on region: "
742 last-shell-command-on-region 740 nil nil nil 'shell-command-history)
743 nil nil 'shell-command-history)
744 current-prefix-arg 741 current-prefix-arg
745 (prefix-numeric-value current-prefix-arg))) 742 (prefix-numeric-value current-prefix-arg)))
746 (if flag 743 (if flag