From c3e9438b5fde71d0464c1bd55919468880256651 Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Fri, 5 May 2006 23:38:18 +0000 Subject: [PATCH] (lgrep, rgrep): Use add-to-history. --- lisp/progmodes/grep.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index c695272e92b..403ea40c839 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)))))) -- 2.39.2