all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.