From: John Wiegley Date: Wed, 11 Apr 2001 15:49:31 +0000 (+0000) Subject: (eshell-previous-matching-input): Don't display "History item" if the X-Git-Tag: emacs-pretest-21.0.103~229 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3f75af1b60a0ec9ba85a24eb59210b93967d28b4;p=emacs.git (eshell-previous-matching-input): Don't display "History item" if the the minibuffer is active. --- diff --git a/lisp/eshell/em-hist.el b/lisp/eshell/em-hist.el index 985e3e11cb0..72dfd449763 100644 --- a/lisp/eshell/em-hist.el +++ b/lisp/eshell/em-hist.el @@ -816,7 +816,8 @@ If N is negative, find the next or Nth next match." (if (null pos) (error "Not found") (setq eshell-history-index pos) - (message "History item: %d" (- (ring-length eshell-history-ring) pos)) + (unless (minibuffer-window-active-p (selected-window)) + (message "History item: %d" (- (ring-length eshell-history-ring) pos))) ;; Can't use kill-region as it sets this-command (delete-region (save-excursion (eshell-bol) (point)) (point)) (insert-and-inherit (eshell-get-history pos)))))