aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/window.el28
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 @@
12014-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
12014-03-05 Juanma Barranquero <lekktu@gmail.com> 82014-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.
323The value has to accommodate a mode- or header-line if present. 323The value has to accommodate one text line, a mode and header
324A value less than `window-safe-min-height' is ignored. The value 324line, and a bottom divider, if present. A value less than
325of this variable is honored when windows are resized or split. 325`window-safe-min-height' is ignored. The value of this variable
326is honored when windows are resized or split.
326 327
327Applications should never rebind this variable. To resize a 328Applications should never rebind this variable. To resize a
328window to a height less than the one specified here, an 329window 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.
353The value has to accommodate margins, fringes, or scrollbars if 354The value has to accommodate two text columns as well as margins,
354present. A value less than `window-safe-min-width' is ignored. 355fringes, a scroll bar and a right divider, if present. A value
355The value of this variable is honored when windows are resized or 356less than `window-safe-min-width' is ignored. The value of this
356split. 357variable is honored when windows are resized or split.
357 358
358Applications should never rebind this variable. To resize a 359Applications should never rebind this variable. To resize a
359window to a width less than the one specified here, an 360window 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.
1676WINDOW must be a live window and defaults to the selected one. 1677WINDOW must be a live window and defaults to the selected one.
1677 1678
1678If HORIZONTAL is omitted or nil, return the height of the text 1679If HORIZONTAL is omitted or nil, return the height of the text
1679area, like `window-body-height'. Otherwise, return the width of 1680area, like `window-body-height'. Otherwise, return the width of
1680the text area, like `window-body-width'." 1681the text area, like `window-body-width'. In either case, the
1682optional 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.