Don't record eshell/clear "command" in history (Bug#25838)
commit46765420620509f17dbd6a90f6829e6e2b26b0c6
authorNoam Postavsky <npostavs@gmail.com>
Thu, 23 Feb 2017 02:48:29 +0000 (22 21:48 -0500)
committerNoam Postavsky <npostavs@gmail.com>
Mon, 27 Feb 2017 01:39:11 +0000 (26 20:39 -0500)
tree93aa67234a37e854ca51ff1ecda3cecb8eb15e62
parentd83c75ec19b549a1700622157d0ee292ca59785e
Don't record eshell/clear "command" in history (Bug#25838)

`eshell/clear' is implemented by sending a series of blank lines,
which is not a useful thing to have in the history.

* lisp/eshell/em-hist.el (eshell-input-filter-default): Use
`string-blank-p' which does check for newlines (even though newlines
have comment-end syntax, not whitespace syntax class).
* lisp/eshell/esh-mode.el (eshell/clear): Remove
`eshell-add-to-history' from `eshell-input-filter-functions' while
sending the blank lines.  This change is needed to solve the bug if
the user customizes `eshell-input-filter' to something that doesn't
filter newlines.
lisp/eshell/em-hist.el
lisp/eshell/esh-mode.el