diff options
| author | Miles Bader | 2000-11-13 02:25:33 +0000 |
|---|---|---|
| committer | Miles Bader | 2000-11-13 02:25:33 +0000 |
| commit | b85fa13c9bc42ee480b60c26c5de47269741fb65 (patch) | |
| tree | c03f049782ca3266cf7c5651326aa287720aad29 | |
| parent | f8c0f31e17b41cd9b4d6a8da534e08ad352bced8 (diff) | |
| download | emacs-b85fa13c9bc42ee480b60c26c5de47269741fb65.tar.gz emacs-b85fa13c9bc42ee480b60c26c5de47269741fb65.zip | |
(generate-calendar-window): Use `fit-window-to-buffer'.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/calendar/calendar.el | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ac62970ebfb..f0d261a720f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2000-11-13 Miles Bader <miles@lsi.nec.co.jp> | ||
| 2 | |||
| 3 | * calendar/calendar.el (generate-calendar-window): Use | ||
| 4 | `fit-window-to-buffer'. | ||
| 5 | |||
| 1 | 2000-11-12 Miles Bader <miles@gnu.org> | 6 | 2000-11-12 Miles Bader <miles@gnu.org> |
| 2 | 7 | ||
| 3 | * textmodes/flyspell.el (flyspell-mode-on): Only output welcome | 8 | * textmodes/flyspell.el (flyspell-mode-on): Only output welcome |
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el index 8773cc8746b..33e3e0a98dd 100644 --- a/lisp/calendar/calendar.el +++ b/lisp/calendar/calendar.el | |||
| @@ -1798,9 +1798,9 @@ Or, for optional MON, YR." | |||
| 1798 | (calendar-cursor-to-visible-date | 1798 | (calendar-cursor-to-visible-date |
| 1799 | (if today-visible today (list displayed-month 1 displayed-year))) | 1799 | (if today-visible today (list displayed-month 1 displayed-year))) |
| 1800 | (set-buffer-modified-p nil) | 1800 | (set-buffer-modified-p nil) |
| 1801 | (or (one-window-p t) | 1801 | (unless (or (one-window-p t) |
| 1802 | (/= (frame-width) (window-width)) | 1802 | (/= (frame-width) (window-width))) |
| 1803 | (shrink-window (- (window-height) 9))) | 1803 | (fit-window-to-buffer)) |
| 1804 | (sit-for 0) | 1804 | (sit-for 0) |
| 1805 | (and mark-holidays-in-calendar | 1805 | (and mark-holidays-in-calendar |
| 1806 | (mark-calendar-holidays) | 1806 | (mark-calendar-holidays) |