mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-02-01 20:06:00 +00:00
* lisp/calendar/calendar.el: Display buffer before executing body.
In each use of this macro, the modeline is derived from a window width calculation, which will be wrong if (display-buffer) splits the window horizontally.
This commit is contained in:
parent
29dfca2355
commit
4cbd071300
@ -1107,11 +1107,11 @@ with disabled undo. Leaves point at point-min, displays BUFFER."
|
||||
(setq buffer-read-only nil
|
||||
buffer-undo-list t)
|
||||
(erase-buffer)
|
||||
(display-buffer ,buffer)
|
||||
,@body
|
||||
(goto-char (point-min))
|
||||
(set-buffer-modified-p nil)
|
||||
(setq buffer-read-only t)
|
||||
(display-buffer ,buffer)))
|
||||
(setq buffer-read-only t)))
|
||||
|
||||
;; The following are in-line for speed; they can be called thousands of times
|
||||
;; when looking up holidays or processing the diary. Here, for example, are
|
||||
|
Loading…
x
Reference in New Issue
Block a user