From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Add function eshell/clear to clear current eshell buffer Date: Mon, 09 Mar 2015 17:59:34 +0200 Message-ID: <83twxu5fh5.fsf@gnu.org> References: <874mpwhxml.fsf@gmail.com> <83lhj7lcgn.fsf@gnu.org> <87y4n7e1bn.fsf@gmail.com> <831tkz6yh1.fsf@gnu.org> <87oao23dbb.fsf@gmail.com> <20150309101126.GA11863@boo.workgroup> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1425916826 30158 80.91.229.3 (9 Mar 2015 16:00:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Mar 2015 16:00:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: Gregor Zattler Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 09 17:00:14 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YV06H-0000G3-Oq for ged-emacs-devel@m.gmane.org; Mon, 09 Mar 2015 17:00:13 +0100 Original-Received: from localhost ([::1]:43956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YV06G-0005B3-So for ged-emacs-devel@m.gmane.org; Mon, 09 Mar 2015 12:00:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39703) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YV05y-0005Ay-Bo for emacs-devel@gnu.org; Mon, 09 Mar 2015 11:59:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YV05t-00088D-C6 for emacs-devel@gnu.org; Mon, 09 Mar 2015 11:59:54 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:35292) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YV05t-00087v-4E for emacs-devel@gnu.org; Mon, 09 Mar 2015 11:59:49 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NKY00C00BZQX400@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Mon, 09 Mar 2015 17:59:47 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NKY00C4ICFNZR10@a-mtaout22.012.net.il>; Mon, 09 Mar 2015 17:59:47 +0200 (IST) In-reply-to: <20150309101126.GA11863@boo.workgroup> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:183744 Archived-At: > Date: Mon, 9 Mar 2015 11:11:26 +0100 > From: Gregor Zattler >=20 > Hi Vibhav, > * vibhavp@gmail.com [09. Mar. 2015]: > > +(defun eshell/clear () > > + "Clear the eshell-buffer" >=20 > 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 h= as > security implications: The user may think some info is gone but act= ually > it=E2=80=99s 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 wind= ow. Thanks.