emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Add function eshell/clear to clear current eshell buffer


From: vibhavp
Subject: Re: [PATCH] Add function eshell/clear to clear current eshell buffer
Date: Mon, 09 Mar 2015 00:58:12 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

> As someone who was more than once in a situation where I would give
> half of my kingdom for an opportunity to look again at the contents of
> the screen I just "clear"ed

Most shells do something list this, and moves the prompt the top of the
window. Elisp has something similar with (recenter-top-bottom), but
eshell overrides this by going to the window's bottom again.

> how about filling the window with blank
> lines instead, so that the old contents are out of sight, but still
> reachable?  Would that make sense?

Unfortunately, I don't know how to do that :(. Although, I think that
can be done with getting the number of lines between (point-max) and the
top of the window, and then inserting these many newlines.

-- 
Vibhav Pant
address@hidden



reply via email to

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