mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(rmail-toggle-header): Avoid possibly slow call to
rmail-count-screen-lines starting from (point-min).
This commit is contained in:
parent
4103b3373e
commit
9d43f6f103
1 changed files with 1 additions and 6 deletions
|
|
@ -2058,12 +2058,7 @@ otherwise, show it in full."
|
|||
(recenter old-screen-line)
|
||||
(if (and all-headers-visible
|
||||
(not (= (window-start) (point-min))))
|
||||
(let ((lines-offscreen (rmail-count-screen-lines
|
||||
(point-min)
|
||||
(window-start window))))
|
||||
(recenter (min (+ old-screen-line lines-offscreen)
|
||||
;; last line of window
|
||||
(- (window-height) 2))))))))))
|
||||
(recenter (- (window-height) 2))))))))
|
||||
(rmail-highlight-headers))))
|
||||
|
||||
(defun rmail-narrow-to-non-pruned-header ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue