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: Sat, 18 Apr 2015 15:39:19 +0300 Message-ID: <83vbgt7gqw.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> <83twxu5fh5.fsf@gnu.org> <87y4lpofl5.fsf@lifelogs.com> 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 1429360789 9074 80.91.229.3 (18 Apr 2015 12:39:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Apr 2015 12:39:49 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 18 14:39:43 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 1YjS2A-0000IF-Sv for ged-emacs-devel@m.gmane.org; Sat, 18 Apr 2015 14:39:43 +0200 Original-Received: from localhost ([::1]:45584 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjS2A-0004xK-9u for ged-emacs-devel@m.gmane.org; Sat, 18 Apr 2015 08:39:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54243) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjS26-0004xF-Gq for emacs-devel@gnu.org; Sat, 18 Apr 2015 08:39:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YjS21-0000LI-HM for emacs-devel@gnu.org; Sat, 18 Apr 2015 08:39:38 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:47700) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjS21-0000L4-9K for emacs-devel@gnu.org; Sat, 18 Apr 2015 08:39:33 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NN000C005E6GS00@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Sat, 18 Apr 2015 15:39:31 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NN000CH45TVB050@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Sat, 18 Apr 2015 15:39:31 +0300 (IDT) In-reply-to: <87y4lpofl5.fsf@lifelogs.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 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:185572 Archived-At: > From: Ted Zlatanov > Date: Sat, 18 Apr 2015 07:12:22 -0400 >=20 > >> > +(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 thi= s has > >> security implications: The user may think some info is gone but = actually > >> it=E2=80=99s only no longer visible. >=20 > EZ> The same happens with a few terminal emulators, so users should > EZ> already be expecting that possibility >=20 > But eshell is not a terminal emulator. It's a shell. Emacs provid= es > the text UI around it. I don't see the significance of this observation for the issue at hand. Eshell is an implementation of a shell in Emacs Lisp, and as such, Emacs is part of it. Therefore, we should compare what Eshell'= s command do with what shells+emulators do. > I would rename `eshell/clear' to `eshell/clear-view' and also provi= de > `eshell/clear-buffer', if that's OK with Vibhav and everyone else? Eshell should have commands named like corresponding shell commands. Having commands with no namesakes in popular shells makes very little sense to me.