]> git.eshelyaron.com Git - emacs.git/commitdiff
(lgrep, rgrep): Use add-to-history.
authorKim F. Storm <storm@cua.dk>
Fri, 5 May 2006 23:38:18 +0000 (23:38 +0000)
committerKim F. Storm <storm@cua.dk>
Fri, 5 May 2006 23:38:18 +0000 (23:38 +0000)
lisp/progmodes/grep.el

index c695272e92b542878f7e1fefd6f8b15ace11c578..403ea40c83920c31f5b45e5909584852f557b6e5 100644 (file)
@@ -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))))))