unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* eshell -- how to erase entire buffer?
@ 2002-10-06  0:07 Kin Cho
  2002-10-06 15:58 ` Barman Brakjoller
  2002-10-07  4:24 ` maierh
  0 siblings, 2 replies; 3+ messages in thread
From: Kin Cho @ 2002-10-06  0:07 UTC (permalink / raw)


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.

-kin

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: eshell -- how to erase entire buffer?
  2002-10-06  0:07 eshell -- how to erase entire buffer? Kin Cho
@ 2002-10-06 15:58 ` Barman Brakjoller
  2002-10-07  4:24 ` maierh
  1 sibling, 0 replies; 3+ messages in thread
From: Barman Brakjoller @ 2002-10-06 15:58 UTC (permalink / raw)


> Is there a easy way to erase an entire eshell buffer?  Outputs
> and prompts and all.

I think this package will help you:

http://www.northbound-train.com/emacs/em-joc.el

I found info about that on http://emacswiki.org, a good place for
finding emacs stuff.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: eshell -- how to erase entire buffer?
  2002-10-06  0:07 eshell -- how to erase entire buffer? Kin Cho
  2002-10-06 15:58 ` Barman Brakjoller
@ 2002-10-07  4:24 ` maierh
  1 sibling, 0 replies; 3+ messages in thread
From: maierh @ 2002-10-07  4:24 UTC (permalink / raw)



Kin Cho <kin@neoscale.com> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-10-07  4:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-06  0:07 eshell -- how to erase entire buffer? Kin Cho
2002-10-06 15:58 ` Barman Brakjoller
2002-10-07  4:24 ` maierh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).