diff options
author | Kim F. Storm <[email protected]> | 2006-05-05 23:38:18 +0000 |
---|---|---|
committer | Kim F. Storm <[email protected]> | 2006-05-05 23:38:18 +0000 |
commit | c3e9438b5fde71d0464c1bd55919468880256651 (patch) | |
tree | 03d33f6cbbc7b9d491576a5440cfb780c41776da /lisp/progmodes/grep.el | |
parent | c398358aee8359d7b63621a35cda5110bc99f81b (diff) |
(lgrep, rgrep): Use add-to-history.
Diffstat (limited to 'lisp/progmodes/grep.el')
-rw-r--r-- | lisp/progmodes/grep.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index c695272e92..403ea40c83 100644 --- a/lisp/progmodes/grep.el +++ b/lisp/progmodes/grep.el @@ -676,7 +676,7 @@ This command shares argument histories with \\[rgrep] and \\[grep]." (setq command (read-from-minibuffer "Confirm: " command nil nil 'grep-history)) - (push command grep-history)))) + (add-to-history 'grep-history command)))) (when command ;; Setting process-setup-function makes exit-message-function work ;; even when async processes aren't supported. @@ -742,7 +742,7 @@ This command shares argument histories with \\[lgrep] and \\[grep-find]." (setq command (read-from-minibuffer "Confirm: " command nil nil 'grep-find-history)) - (push command grep-find-history)) + (add-to-history 'grep-find-history command)) (compilation-start command 'grep-mode)))))) |