From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: maierh@myself.com Newsgroups: gmane.emacs.help Subject: Re: eshell -- how to erase entire buffer? Date: Mon, 07 Oct 2002 06:24:45 +0200 Organization: T-Online Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: <7i65wgbfan.fsf@neoscale.com> Reply-To: Harald Maier NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1033964823 19082 127.0.0.1 (7 Oct 2002 04:27:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 7 Oct 2002 04:27:03 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17yPTw-0004xO-00 for ; Mon, 07 Oct 2002 06:27:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17yPT9-0008Ns-00; Mon, 07 Oct 2002 00:26:11 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!fr.usenet-edu.net!usenet-edu.net!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-X-Trace: news.t-online.com 1033964685 04 3074 SG4NbTwS4Yqkv 021007 04:24:45 Original-X-Complaints-To: abuse@t-online.com X-Sender: 320041125923-0001@t-dialin.net User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2.90 (i386-mingw-nt5.0.2195) Cancel-Lock: sha1:Df0LcPKIUZHzu/Bc7xHu5ztwd+E= Original-Xref: shelby.stanford.edu gnu.emacs.help:105771 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:2317 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2317 Kin Cho writes: > Is there a easy way to erase an entire eshell buffer? Outputs > and prompts and all. Looks like the prompt in a eshell buffer > has read-only attribute and is preventing from a simple > (erase-buffer) from working. I am using this: ,---- | (require 'comint) | (define-key comint-mode-map [?\C-c C-f4] 'erase-buffer) | (put 'erase-buffer 'disabled nil) `---- It's maybe a little bit rigorous but it works in all 'comint' derived modes such as 'sql-mode'. Harald