diff options
| author | Martin Rudalics | 2012-10-27 10:58:30 +0200 |
|---|---|---|
| committer | Martin Rudalics | 2012-10-27 10:58:30 +0200 |
| commit | df171c230cc8a5da73684740ff5cfa364fa8c1c4 (patch) | |
| tree | 855aa18e00b00d43ec267e7dfbeccf64a0a8ad58 | |
| parent | 05b621a6b22cb1c856a9f223d79203cb3ceaf29a (diff) | |
| download | emacs-df171c230cc8a5da73684740ff5cfa364fa8c1c4.tar.gz emacs-df171c230cc8a5da73684740ff5cfa364fa8c1c4.zip | |
In display-time-world restore fit-window-to-buffer behavior.
* window.el (display-buffer): In doc-string describe
window-height and window-width alist entries.
* time.el (display-time-world): Restore fit-window-to-buffer
behavior.
| -rw-r--r-- | lisp/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/time.el | 3 | ||||
| -rw-r--r-- | lisp/window.el | 16 |
3 files changed, 27 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d3462315fae..defa35f09ee 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2012-10-27 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * window.el (display-buffer): In doc-string describe | ||
| 4 | window-height and window-width alist entries. | ||
| 5 | |||
| 6 | * time.el (display-time-world): Restore fit-window-to-buffer | ||
| 7 | behavior. | ||
| 8 | |||
| 1 | 2012-10-27 Chong Yidong <cyd@gnu.org> | 9 | 2012-10-27 Chong Yidong <cyd@gnu.org> |
| 2 | 10 | ||
| 3 | * subr.el (insert-buffer-substring-as-yank): Doc fix. | 11 | * subr.el (insert-buffer-substring-as-yank): Doc fix. |
| @@ -253,7 +261,7 @@ | |||
| 253 | Recover input meta mode when the new coding system doesn not use 8-bit. | 261 | Recover input meta mode when the new coding system doesn not use 8-bit. |
| 254 | Supply TERMINAL arg to set-input-meta-mode. | 262 | Supply TERMINAL arg to set-input-meta-mode. |
| 255 | 263 | ||
| 256 | 2012-10-17 Michael Heerdegen <michael_heerdegen@web.de> (tiny change) | 264 | 2012-10-17 Michael Heerdegen <michael_heerdegen@web.de> |
| 257 | 265 | ||
| 258 | * wdired.el (wdired-old-marks): New variable. | 266 | * wdired.el (wdired-old-marks): New variable. |
| 259 | (wdired-change-to-wdired-mode): Locally set wdired-old-marks. | 267 | (wdired-change-to-wdired-mode): Locally set wdired-old-marks. |
diff --git a/lisp/time.el b/lisp/time.el index 7473994ffa5..a3bbee0c893 100644 --- a/lisp/time.el +++ b/lisp/time.el | |||
| @@ -557,7 +557,8 @@ To turn off the world time display, go to that window and type `q'." | |||
| 557 | (run-at-time t display-time-world-timer-second 'display-time-world-timer)) | 557 | (run-at-time t display-time-world-timer-second 'display-time-world-timer)) |
| 558 | (with-current-buffer (get-buffer-create display-time-world-buffer-name) | 558 | (with-current-buffer (get-buffer-create display-time-world-buffer-name) |
| 559 | (display-time-world-display display-time-world-list) | 559 | (display-time-world-display display-time-world-list) |
| 560 | (display-buffer display-time-world-buffer-name) | 560 | (display-buffer display-time-world-buffer-name |
| 561 | (cons nil '((window-height . fit-window-to-buffer)))) | ||
| 561 | (display-time-world-mode))) | 562 | (display-time-world-mode))) |
| 562 | 563 | ||
| 563 | (defun display-time-world-timer () | 564 | (defun display-time-world-timer () |
diff --git a/lisp/window.el b/lisp/window.el index fa7b08375ce..bd043390d90 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -5414,6 +5414,22 @@ Recognized alist entries include: | |||
| 5414 | parameters to give a new frame, if | 5414 | parameters to give a new frame, if |
| 5415 | one is created. | 5415 | one is created. |
| 5416 | 5416 | ||
| 5417 | `window-height' -- Value specifies either an integer (the number | ||
| 5418 | of lines of a new window), a floating point number (the | ||
| 5419 | fraction of a new window with respect to the height of the | ||
| 5420 | frame's root window) or a function to be called with one | ||
| 5421 | argument - a new window. The function is supposed to adjust | ||
| 5422 | the height of the window; its return value is ignored. | ||
| 5423 | Suitable functions are `shrink-window-if-larger-than-buffer' | ||
| 5424 | and `fit-window-to-buffer'. | ||
| 5425 | |||
| 5426 | `window-width' -- Value specifies either an integer (the number | ||
| 5427 | of columns of a new window), a floating point number (the | ||
| 5428 | fraction of a new window with respect to the width of the | ||
| 5429 | frame's root window) or a function to be called with one | ||
| 5430 | argument - a new window. The function is supposed to adjust | ||
| 5431 | the width of the window; its return value is ignored. | ||
| 5432 | |||
| 5417 | The ACTION argument to `display-buffer' can also have a non-nil | 5433 | The ACTION argument to `display-buffer' can also have a non-nil |
| 5418 | and non-list value. This means to display the buffer in a window | 5434 | and non-list value. This means to display the buffer in a window |
| 5419 | other than the selected one, even if it is already displayed in | 5435 | other than the selected one, even if it is already displayed in |