From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bozhidar Batsov Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add function eshell/clear to clear current eshell buffer Date: Sun, 8 Mar 2015 09:25:15 +0200 Message-ID: References: <874mpwhxml.fsf@gmail.com> <87r3t03qid.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b10cb2da0f4ec0510c1d12b X-Trace: ger.gmane.org 1425799522 21268 80.91.229.3 (8 Mar 2015 07:25:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Mar 2015 07:25:22 +0000 (UTC) Cc: "emacs-devel@gnu.org" To: Vibhav Pant Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 08 08:25:22 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 1YUVaT-0007O4-2T for ged-emacs-devel@m.gmane.org; Sun, 08 Mar 2015 08:25:21 +0100 Original-Received: from localhost ([::1]:37680 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUVaS-00027B-A1 for ged-emacs-devel@m.gmane.org; Sun, 08 Mar 2015 03:25:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUVaO-00026y-SS for emacs-devel@gnu.org; Sun, 08 Mar 2015 03:25:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YUVaN-0000Wp-U5 for emacs-devel@gnu.org; Sun, 08 Mar 2015 03:25:16 -0400 Original-Received: from mail-ie0-x233.google.com ([2607:f8b0:4001:c03::233]:43577) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUVaN-0000Wj-OU for emacs-devel@gnu.org; Sun, 08 Mar 2015 03:25:15 -0400 Original-Received: by iecrp18 with SMTP id rp18so27713057iec.10 for ; Sat, 07 Mar 2015 23:25:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=sUXOWUP8gA6PNaAiLs2CisT9yqpyFzQDt7DCkmadfDg=; b=Tr28D6d6s7mtRjwl5O8e4Fqy8opq0eHG7DVxtTeuyD4mN+irUxbDmCCxmzF73sECay r5OxYlMg5AuHA0C40RtbkuF5fGC3LFhkLTB1yD8pLMDQzhpro9VCZ6tSsNPMq7em/dD3 7DZbvfXTxSv0mK+b8RVVQYkED8ie+BbGMyuA84MCSPKJoH4gwKyaLw4sBGX1qO2jT6Hn G2i0R07dS+hqxlSleQmcjgPKs2SQgBNNz/R3gb8P+4+ix1i/e9z5949x39fHk1zKRHGq 7V8ZMnn8OfN3beNr+1J7lJJdmNU7GFTVGbqjApoKw8rCBpsFgrBg4TkPBbD3ymO2bhOn Y5uw== X-Received: by 10.50.32.71 with SMTP id g7mr53875113igi.4.1425799515270; Sat, 07 Mar 2015 23:25:15 -0800 (PST) Original-Received: by 10.36.78.18 with HTTP; Sat, 7 Mar 2015 23:25:15 -0800 (PST) In-Reply-To: <87r3t03qid.fsf@gmail.com> X-Google-Sender-Auth: 3sdrpvETJ8JwmyS3FnEJxYpaIO8 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::233 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:183725 Archived-At: --047d7b10cb2da0f4ec0510c1d12b Content-Type: text/plain; charset=UTF-8 Yeah, this command seems pretty broken to me. Guess someone should have a look at it. On 8 March 2015 at 09:19, wrote: > Bozhidar Batsov writes: > > > Guess it should be bound to `C-c M-o` as the clear command for comint > > buffers. > > `C-c M-o` is bound to (eshell-mark-output), which does something similar > to clear, but instead of erasing the buffer, only moves the active > eshell prompt to the top of the window. However, once you enter a > newline at the prompt, the prompt goes back to its original position, > something which clear isn't supposed to do. > > The documentation suggests that the command is used to narrow the buffer > to the region containing the last command's output. > > -- > Vibhav Pant > vibhavp@gmail.com > --047d7b10cb2da0f4ec0510c1d12b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Yeah, this command seems pretty broken to me. Guess someon= e should have a look at it.

On 8 March 2015 at 09:19, <vibhavp@gmail.com> wrote:
Bozhidar Ba= tsov <bozhidar@batsov.com>= writes:

> Guess it should be bound to `C-c M-o` as the clear command for comint<= br> > buffers.

`C-c M-o` is bound to (eshell-mark-output), which does something sim= ilar
to clear, but instead of erasing the buffer, only moves the active
eshell prompt to the top of the window. However, once you enter a
newline at the prompt, the prompt goes back to its original position,
something which clear isn't supposed to do.

The documentation suggests that the command is used to narrow the buffer to the region containing the last command's output.

--
Vibhav Pant
vibhavp@gmail.com

--047d7b10cb2da0f4ec0510c1d12b--