HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00fbbec
)
(eshell-previous-matching-input): Don't display "History item" if the
author
John Wiegley
<johnw@newartisans.com>
Wed, 11 Apr 2001 15:49:31 +0000
(15:49 +0000)
committer
John Wiegley
<johnw@newartisans.com>
Wed, 11 Apr 2001 15:49:31 +0000
(15:49 +0000)
the minibuffer is active.
lisp/eshell/em-hist.el
patch
|
blob
|
blame
|
history
diff --git
a/lisp/eshell/em-hist.el
b/lisp/eshell/em-hist.el
index
985e3e1
..
72dfd44
100644
(file)
--- 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)))))