aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorVibhav Pant2015-04-19 23:26:09 +0530
committerVibhav Pant2015-04-19 23:26:09 +0530
commitd7f1b8af02eaba2c432a0239f4252a408612fbe5 (patch)
tree30c2bcfa5e039db9bf3e336638fdf2e2e2debe13 /doc
parente5bd39b2b4542c0fa87acfe464ef344364540dd9 (diff)
downloademacs-d7f1b8af02eaba2c432a0239f4252a408612fbe5.tar.gz
emacs-d7f1b8af02eaba2c432a0239f4252a408612fbe5.zip
Add option to eshell/clear to clear scrollback.
* lisp/eshell/esh-mode.el (eshell/clear-scrollback): New function. (eshell/clear): Add an optional SCROLLBACK argument. If non-nil, scrollback contents are cleared. * etc/NEWS: Describe change. * doc/misc/eshell.texi: Add entry for `clear'.
Diffstat (limited to 'doc')
-rw-r--r--doc/misc/eshell.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/misc/eshell.texi b/doc/misc/eshell.texi
index beaa24a17db..b2fbd7ac267 100644
--- a/doc/misc/eshell.texi
+++ b/doc/misc/eshell.texi
@@ -298,6 +298,12 @@ with no arguments, prints the current paths in this variable.
298Define an alias (@pxref{Aliases}). This does not add it to the aliases 298Define an alias (@pxref{Aliases}). This does not add it to the aliases
299file. 299file.
300 300
301@item clear
302@cmindex clear
303Scrolls the contents of the eshell window out of sight, leaving a blank window.
304If provided with an optional non-nil argument, the scrollback contents are
305cleared instead.
306
301@item date 307@item date
302@cmindex date 308@cmindex date
303Similar to, but slightly different from, the GNU Coreutils 309Similar to, but slightly different from, the GNU Coreutils