mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-04 11:40:22 +00:00
(eshell-smart-redisplay): Added some safety code to work around a
redisplay problem I've been having.
This commit is contained in:
parent
3dc630b9e1
commit
157975e356
@ -1,3 +1,8 @@
|
||||
2001-04-23 John Wiegley <johnw@gnu.org>
|
||||
|
||||
* eshell/em-smart.el (eshell-smart-redisplay): Added some safety
|
||||
code to work around a redisplay problem I've been having.
|
||||
|
||||
2001-04-23 John Wiegley <johnw@gnu.org>
|
||||
|
||||
* calendar/timeclock.el (timeclock-day-required): If the time
|
||||
|
@ -262,7 +262,11 @@ and the end of the buffer are still visible."
|
||||
(defun eshell-smart-redisplay ()
|
||||
"Display as much output as possible, smartly."
|
||||
(if (eobp)
|
||||
(recenter -1)
|
||||
(save-excursion
|
||||
(recenter -1)
|
||||
;; trigger the redisplay now, so that we catch any attempted
|
||||
;; point motion; this is to cover for a redisplay bug
|
||||
(eshell-redisplay))
|
||||
(let ((top-point (point)))
|
||||
(and (memq 'eshell-smart-display-move pre-command-hook)
|
||||
(>= (point) eshell-last-input-start)
|
||||
|
Loading…
Reference in New Issue
Block a user