From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: vibhavp@gmail.com Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add function eshell/clear to clear current eshell buffer Date: Sun, 08 Mar 2015 12:49:38 +0530 Message-ID: <87r3t03qid.fsf@gmail.com> References: <874mpwhxml.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1425799184 16507 80.91.229.3 (8 Mar 2015 07:19:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Mar 2015 07:19:44 +0000 (UTC) Cc: "emacs-devel@gnu.org" To: Bozhidar Batsov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 08 08:19:39 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 1YUVUx-0001VL-AN for ged-emacs-devel@m.gmane.org; Sun, 08 Mar 2015 08:19:39 +0100 Original-Received: from localhost ([::1]:37667 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUVUw-0000Bd-Em for ged-emacs-devel@m.gmane.org; Sun, 08 Mar 2015 03:19:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33532) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUVUs-0000BV-Nx for emacs-devel@gnu.org; Sun, 08 Mar 2015 03:19:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YUVUn-0006nP-OG for emacs-devel@gnu.org; Sun, 08 Mar 2015 03:19:34 -0400 Original-Received: from mail-pd0-x234.google.com ([2607:f8b0:400e:c02::234]:36205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUVUn-0006nI-Fh for emacs-devel@gnu.org; Sun, 08 Mar 2015 03:19:29 -0400 Original-Received: by pdbnh10 with SMTP id nh10so63153578pdb.3 for ; Sat, 07 Mar 2015 23:19:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=v2BZVyfX6kDNLcr8jXEC828O0rgV/4yO+se4q/+5zY4=; b=ty/vqdK72Ti7JybM1csSx99VAxkR6ScoEfzxXbhZXXoILHeUCzEy1gJ3EV6uC1sttw xhx6AElU72HIK1m9rAWReuGMLx2cT6uNebdt4Y2CRLGe0/q0S3NyUmieXGs0Y8WEhCDq qQR6gJ2wSCZ42RYqKJNYdMPOYOkm8IK4xbpBT/tJBcwhEuvk0pVm7co6tTqOl4OHLCeq jpfMj8MJQgYh977J91HK7RMRegy78Ga+ELtARG+9m5K6q9rXvNBn7DUE6IPrzZrjLPY7 Kg6Qz+66jpUhRUcSP9Db64PMYRGnUn2q8U8UjwM2ytWytLPn6kh/xP9G6nMkMW7PaBFU wLig== X-Received: by 10.68.203.166 with SMTP id kr6mr40925645pbc.92.1425799168514; Sat, 07 Mar 2015 23:19:28 -0800 (PST) Original-Received: from lenovog410 ([59.89.17.241]) by mx.google.com with ESMTPSA id tr8sm2500509pab.4.2015.03.07.23.19.26 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 Mar 2015 23:19:28 -0800 (PST) In-Reply-To: (Bozhidar Batsov's message of "Sun, 8 Mar 2015 09:08:28 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c02::234 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:183724 Archived-At: 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