diff options
| author | Martin Rudalics | 2014-03-05 14:50:48 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2014-03-05 14:50:48 +0100 |
| commit | e1a2cb1ce53d6c59e8c2d56bbdee8aac2e8151b1 (patch) | |
| tree | 3fd66c8e39dd35fd2d7cad9efe15130b1db7cd09 /src | |
| parent | 6bf67038d90f120d6039baa10ec30662339fe496 (diff) | |
| download | emacs-e1a2cb1ce53d6c59e8c2d56bbdee8aac2e8151b1.tar.gz emacs-e1a2cb1ce53d6c59e8c2d56bbdee8aac2e8151b1.zip | |
Various window code related fixes and documentation changes.
* dispnew.c (change_frame_size_1): Add new_lines instead of
new_height, the latter may be still zero if passed as such.
* window.c (Fwindow_pixel_height): Mention bottom divider in
doc-string.
* window.el (window-min-height, window-min-width): Rewrite
doc-strings.
(window-body-size): Add PIXELWISE argument to make it consistent
with its callees.
* display.texi (Window Dividers): New section.
* frames.texi (Layout Parameters): Add right-divider-width and
bottom-divider-width.
* windows.texi (Window Sizes): Redraw schematic and rewrite its
description. Rewrite descriptions of `window-total-height',
`window-total-width', `window-total-size', `window-body-height',
`window-body-width' and `window-size-fixed'. Add descriptions
for `window-pixel-height', `window-pixel-width',
`window-min-height' and `window-min-width'. Remove description
of `window-size-fixed-p' moving part of it to that of
`window-size-fixed'.
(Resizing Windows): Mention dividers when talking about minimum
sizes.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 10 | ||||
| -rw-r--r-- | src/dispnew.c | 2 | ||||
| -rw-r--r-- | src/window.c | 6 |
3 files changed, 13 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 22830f49fb8..29b6078b037 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,6 +1,14 @@ | |||
| 1 | 2014-03-05 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * dispnew.c (change_frame_size_1): Add new_lines instead of | ||
| 4 | new_height, the latter may be still zero if passed as such. | ||
| 5 | * window.c (Fwindow_pixel_height): Mention bottom divider in | ||
| 6 | doc-string. | ||
| 7 | |||
| 1 | 2014-03-05 Paul Eggert <eggert@cs.ucla.edu> | 8 | 2014-03-05 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 9 | ||
| 3 | Fix "resource temporarily unavailable" with xgselect (Bug#16925). | 10 | Fix "resource temporarily unavailable" with xgselect |
| 11 | (Bug#16925). | ||
| 4 | * xgselect.c: Include <stdbool.h>. | 12 | * xgselect.c: Include <stdbool.h>. |
| 5 | (xg_select) [!USE_GTK]: Don't lose track of errno. | 13 | (xg_select) [!USE_GTK]: Don't lose track of errno. |
| 6 | 14 | ||
diff --git a/src/dispnew.c b/src/dispnew.c index e11d143d0b5..7833f8e8af5 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -5539,7 +5539,7 @@ change_frame_size_1 (struct frame *f, int new_width, int new_height, | |||
| 5539 | /* MSDOS frames cannot PRETEND, as they change frame size by | 5539 | /* MSDOS frames cannot PRETEND, as they change frame size by |
| 5540 | manipulating video hardware. */ | 5540 | manipulating video hardware. */ |
| 5541 | if ((FRAME_TERMCAP_P (f) && !pretend) || FRAME_MSDOS_P (f)) | 5541 | if ((FRAME_TERMCAP_P (f) && !pretend) || FRAME_MSDOS_P (f)) |
| 5542 | FrameRows (FRAME_TTY (f)) = new_height; | 5542 | FrameRows (FRAME_TTY (f)) = new_lines; |
| 5543 | } | 5543 | } |
| 5544 | 5544 | ||
| 5545 | if (new_text_width != FRAME_TEXT_WIDTH (f) | 5545 | if (new_text_width != FRAME_TEXT_WIDTH (f) |
diff --git a/src/window.c b/src/window.c index 09280d206c3..b6cfacd9aad 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -699,9 +699,9 @@ DEFUN ("window-pixel-height", Fwindow_pixel_height, Swindow_pixel_height, 0, 1, | |||
| 699 | doc: /* Return the height of window WINDOW in pixels. | 699 | doc: /* Return the height of window WINDOW in pixels. |
| 700 | WINDOW must be a valid window and defaults to the selected one. | 700 | WINDOW must be a valid window and defaults to the selected one. |
| 701 | 701 | ||
| 702 | The return value includes the mode line and header line, if any. If | 702 | The return value includes the mode line and header line and the bottom |
| 703 | WINDOW is an internal window, its pixel height is the height of the | 703 | divider, if any. If WINDOW is an internal window, its pixel height is |
| 704 | screen areas spanned by its children. */) | 704 | the height of the screen areas spanned by its children. */) |
| 705 | (Lisp_Object window) | 705 | (Lisp_Object window) |
| 706 | { | 706 | { |
| 707 | return make_number (decode_valid_window (window)->pixel_height); | 707 | return make_number (decode_valid_window (window)->pixel_height); |