# HG changeset patch # User Richard M. Stallman # Date 744099044 0 # Node ID 1a64d641cea4cc33377480a1d4c1d354decee2ce # Parent 02a515f35abc6dc25a7c733aa31b626b1db614dc (shell-command-history): New variable. (shell-command, shell-command-on-region): Use it. diff -r 02a515f35abc -r 1a64d641cea4 lisp/simple.el --- a/lisp/simple.el Sat Jul 31 05:55:52 1993 +0000 +++ b/lisp/simple.el Sat Jul 31 06:10:44 1993 +0000 @@ -633,6 +633,9 @@ (defvar last-shell-command "") (defvar last-shell-command-on-region "") +(defvar shell-command-history nil + "History list for some commands that read shell commands.") + (defun shell-command (command &optional flag) "Execute string COMMAND in inferior shell; display output, if any. If COMMAND ends in ampersand, execute it asynchronously. @@ -641,7 +644,7 @@ means insert output in current buffer after point (leave mark after it). This cannot be done asynchronously." (interactive (list (read-string "Shell command: " last-shell-command) - current-prefix-arg)) + current-prefix-arg nil nil 'shell-command-history)) (if flag (progn (barf-if-buffer-read-only) (push-mark) @@ -736,7 +739,8 @@ deleted." (interactive (list (region-beginning) (region-end) (read-string "Shell command on region: " - last-shell-command-on-region) + last-shell-command-on-region + nil nil 'shell-command-history) current-prefix-arg (prefix-numeric-value current-prefix-arg))) (if flag