emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Add function eshell/clear to clear current eshell buffer


From: Eli Zaretskii
Subject: Re: Add function eshell/clear to clear current eshell buffer
Date: Mon, 09 Mar 2015 17:59:34 +0200

> Date: Mon, 9 Mar 2015 11:11:26 +0100
> From: Gregor Zattler <address@hidden>
> 
> Hi Vibhav,
> * address@hidden <address@hidden> [09. Mar. 2015]:
> > +(defun eshell/clear ()
> > +  "Clear the eshell-buffer"
> 
> Now this command does not clear the eshell buffer any more, but the
> eshell window.  I think the doc string should say so because this has
> security implications: The user may think some info is gone but actually
> it’s only no longer visible.

The same happens with a few terminal emulators, so users should
already be expecting that possibility

> "Scroll contents out of the eshell window by inserting newlines."

The last part describes the implementation, which is not a good thing,
IMO.  So I suggest just

  Scroll contents of eshell window out of sight, leaving a blank window.

Thanks.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]