* comint.el (comint-previous-matching-input): Do not flood the
authorLeo Liu <sdl.web@gmail.com>
Sat, 25 May 2013 02:40:33 +0000 (10:40 +0800)
committerLeo Liu <sdl.web@gmail.com>
Sat, 25 May 2013 02:40:33 +0000 (10:40 +0800)
*Messages* buffer with trivial messages.

lisp/ChangeLog
lisp/comint.el

index 0fa162b..055a552 100644 (file)
@@ -1,3 +1,8 @@
+2013-05-25  Leo Liu  <sdl.web@gmail.com>
+
+       * comint.el (comint-previous-matching-input): Do not flood the
+       *Messages* buffer with trivial messages.
+
 2013-05-25  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * progmodes/flymake.el (flymake-nop): Don't return a string.
index 5680b9a..592f63f 100644 (file)
@@ -1190,7 +1190,8 @@ If N is negative, find the next or Nth next match."
                (funcall comint-get-old-input)))
       (setq comint-input-ring-index pos)
       (unless isearch-mode
-       (message "History item: %d" (1+ pos)))
+       (let ((message-log-max nil))    ; Do not write to *Messages*.
+         (message "History item: %d" (1+ pos))))
       (comint-delete-input)
       (insert (ring-ref comint-input-ring pos)))))