[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: eshell -- how to erase entire buffer?

From: maierh
Subject: Re: eshell -- how to erase entire buffer?
Date: Mon, 07 Oct 2002 06:24:45 +0200
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2.90 (i386-mingw-nt5.0.2195)

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'.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]