diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/window.el | 28 |
2 files changed, 22 insertions, 13 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 55490e502a1..579acdb90c5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2014-03-05 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * window.el (window-min-height, window-min-width): Rewrite | ||
| 4 | doc-strings. | ||
| 5 | (window-body-size): Add PIXELWISE argument to make it consistent | ||
| 6 | with its callees. | ||
| 7 | |||
| 1 | 2014-03-05 Juanma Barranquero <lekktu@gmail.com> | 8 | 2014-03-05 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 9 | ||
| 3 | * finder.el (finder-mode-map, finder-mode-syntax-table): | 10 | * finder.el (finder-mode-map, finder-mode-syntax-table): |
diff --git a/lisp/window.el b/lisp/window.el index 0c42a7906be..6df3776da56 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -319,10 +319,11 @@ Anything less might crash Emacs.") | |||
| 319 | (frame-char-size (window-normalize-window window)))) | 319 | (frame-char-size (window-normalize-window window)))) |
| 320 | 320 | ||
| 321 | (defcustom window-min-height 4 | 321 | (defcustom window-min-height 4 |
| 322 | "The minimum number of lines of any window. | 322 | "The minimum total height, in lines, of any window. |
| 323 | The value has to accommodate a mode- or header-line if present. | 323 | The value has to accommodate one text line, a mode and header |
| 324 | A value less than `window-safe-min-height' is ignored. The value | 324 | line, and a bottom divider, if present. A value less than |
| 325 | of this variable is honored when windows are resized or split. | 325 | `window-safe-min-height' is ignored. The value of this variable |
| 326 | is honored when windows are resized or split. | ||
| 326 | 327 | ||
| 327 | Applications should never rebind this variable. To resize a | 328 | Applications should never rebind this variable. To resize a |
| 328 | window to a height less than the one specified here, an | 329 | window to a height less than the one specified here, an |
| @@ -349,11 +350,11 @@ Anything less might crash Emacs.") | |||
| 349 | (frame-char-size (window-normalize-window window) t))) | 350 | (frame-char-size (window-normalize-window window) t))) |
| 350 | 351 | ||
| 351 | (defcustom window-min-width 10 | 352 | (defcustom window-min-width 10 |
| 352 | "The minimum number of columns of any window. | 353 | "The minimum total width, in columns, of any window. |
| 353 | The value has to accommodate margins, fringes, or scrollbars if | 354 | The value has to accommodate two text columns as well as margins, |
| 354 | present. A value less than `window-safe-min-width' is ignored. | 355 | fringes, a scroll bar and a right divider, if present. A value |
| 355 | The value of this variable is honored when windows are resized or | 356 | less than `window-safe-min-width' is ignored. The value of this |
| 356 | split. | 357 | variable is honored when windows are resized or split. |
| 357 | 358 | ||
| 358 | Applications should never rebind this variable. To resize a | 359 | Applications should never rebind this variable. To resize a |
| 359 | window to a width less than the one specified here, an | 360 | window to a width less than the one specified here, an |
| @@ -1671,16 +1672,17 @@ WINDOW must be a valid window and defaults to the selected one." | |||
| 1671 | (= (window-pixel-width window) | 1672 | (= (window-pixel-width window) |
| 1672 | (window-pixel-width (frame-root-window window)))) | 1673 | (window-pixel-width (frame-root-window window)))) |
| 1673 | 1674 | ||
| 1674 | (defun window-body-size (&optional window horizontal) | 1675 | (defun window-body-size (&optional window horizontal pixelwise) |
| 1675 | "Return the height or width of WINDOW's text area. | 1676 | "Return the height or width of WINDOW's text area. |
| 1676 | WINDOW must be a live window and defaults to the selected one. | 1677 | WINDOW must be a live window and defaults to the selected one. |
| 1677 | 1678 | ||
| 1678 | If HORIZONTAL is omitted or nil, return the height of the text | 1679 | If HORIZONTAL is omitted or nil, return the height of the text |
| 1679 | area, like `window-body-height'. Otherwise, return the width of | 1680 | area, like `window-body-height'. Otherwise, return the width of |
| 1680 | the text area, like `window-body-width'." | 1681 | the text area, like `window-body-width'. In either case, the |
| 1682 | optional argument PIXELWISE is passed to the functions." | ||
| 1681 | (if horizontal | 1683 | (if horizontal |
| 1682 | (window-body-width window) | 1684 | (window-body-width window pixelwise) |
| 1683 | (window-body-height window))) | 1685 | (window-body-height window pixelwise))) |
| 1684 | 1686 | ||
| 1685 | (defun window-current-scroll-bars (&optional window) | 1687 | (defun window-current-scroll-bars (&optional window) |
| 1686 | "Return the current scroll bar settings for WINDOW. | 1688 | "Return the current scroll bar settings for WINDOW. |