diff options
| author | Juanma Barranquero | 2008-06-04 21:24:29 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2008-06-04 21:24:29 +0000 |
| commit | 9d14503e34bd7b3e2ab8aa8e8acc999778aab3d1 (patch) | |
| tree | 5e6251ee6b6cee7b506a1293835ddacc90e0351d /src | |
| parent | e6841c3bc8523c54732046e6e86462f615a3b4ed (diff) | |
| download | emacs-9d14503e34bd7b3e2ab8aa8e8acc999778aab3d1.tar.gz emacs-9d14503e34bd7b3e2ab8aa8e8acc999778aab3d1.zip | |
(Fset_window_parameter): Doc fix.
(Fwindow_parameters, Fwindow_parameter): Remove redundant check.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/window.c | 13 |
2 files changed, 10 insertions, 8 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index c4efbf31bb1..97c9f355fe3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-06-04 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * window.c (Fset_window_parameter): Doc fix. | ||
| 4 | (Fwindow_parameters, Fwindow_parameter): Remove redundant check. | ||
| 5 | |||
| 1 | 2008-06-04 Joakim Verona <joakim@verona.se> | 6 | 2008-06-04 Joakim Verona <joakim@verona.se> |
| 2 | 7 | ||
| 3 | * window.h (struct window): Add new member window_parameters. | 8 | * window.h (struct window): Add new member window_parameters. |
diff --git a/src/window.c b/src/window.c index 8ab518d178f..d31e6c653f1 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -795,7 +795,7 @@ coordinates_in_window (w, x, y) | |||
| 795 | header_vertical_border_check: | 795 | header_vertical_border_check: |
| 796 | /* We're somewhere on the mode line. We consider the place | 796 | /* We're somewhere on the mode line. We consider the place |
| 797 | between mode lines of horizontally adjacent mode lines | 797 | between mode lines of horizontally adjacent mode lines |
| 798 | as the vertical border. If scroll bars on the left, | 798 | as the vertical border. If scroll bars on the left, |
| 799 | return the right window. */ | 799 | return the right window. */ |
| 800 | if (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT (w) | 800 | if (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT (w) |
| 801 | || WINDOW_RIGHTMOST_P (w)) | 801 | || WINDOW_RIGHTMOST_P (w)) |
| @@ -1334,8 +1334,6 @@ If WINDOW is omitted, return information on the currently selected window. */) | |||
| 1334 | (window) | 1334 | (window) |
| 1335 | Lisp_Object window; | 1335 | Lisp_Object window; |
| 1336 | { | 1336 | { |
| 1337 | if (NILP (window)) | ||
| 1338 | window = selected_window; | ||
| 1339 | return decode_window (window)->window_parameters; | 1337 | return decode_window (window)->window_parameters; |
| 1340 | } | 1338 | } |
| 1341 | 1339 | ||
| @@ -1346,8 +1344,6 @@ If WINDOW is nil, describe the currently selected window. */) | |||
| 1346 | (window, parameter) | 1344 | (window, parameter) |
| 1347 | Lisp_Object window, parameter; | 1345 | Lisp_Object window, parameter; |
| 1348 | { | 1346 | { |
| 1349 | if (NILP (window)) | ||
| 1350 | window = selected_window; | ||
| 1351 | return Fassq (parameter, decode_window (window)->window_parameters); | 1347 | return Fassq (parameter, decode_window (window)->window_parameters); |
| 1352 | } | 1348 | } |
| 1353 | 1349 | ||
| @@ -1355,6 +1351,7 @@ If WINDOW is nil, describe the currently selected window. */) | |||
| 1355 | DEFUN ("set-window-parameter", Fset_window_parameter, | 1351 | DEFUN ("set-window-parameter", Fset_window_parameter, |
| 1356 | Sset_window_parameter, 3, 3, 0, | 1352 | Sset_window_parameter, 3, 3, 0, |
| 1357 | doc: /* Set window parameter PARAMETER to VALUE on WINDOW. | 1353 | doc: /* Set window parameter PARAMETER to VALUE on WINDOW. |
| 1354 | If WINDOW is nil, use the currently selected window. | ||
| 1358 | Return the parameters-alist of WINDOW. */) | 1355 | Return the parameters-alist of WINDOW. */) |
| 1359 | (window, parameter, value) | 1356 | (window, parameter, value) |
| 1360 | Lisp_Object window, parameter, value; | 1357 | Lisp_Object window, parameter, value; |
| @@ -5107,7 +5104,7 @@ window_scroll_pixel_based (window, n, whole, noerror) | |||
| 5107 | struct window *w = XWINDOW (window); | 5104 | struct window *w = XWINDOW (window); |
| 5108 | struct text_pos start; | 5105 | struct text_pos start; |
| 5109 | int this_scroll_margin; | 5106 | int this_scroll_margin; |
| 5110 | /* True if we fiddled the window vscroll field without really scrolling. */ | 5107 | /* True if we fiddled the window vscroll field without really scrolling. */ |
| 5111 | int vscrolled = 0; | 5108 | int vscrolled = 0; |
| 5112 | int x, y, rtop, rbot, rowh, vpos; | 5109 | int x, y, rtop, rbot, rowh, vpos; |
| 5113 | 5110 | ||
| @@ -6344,7 +6341,7 @@ the return value is nil. Otherwise the value is t. */) | |||
| 6344 | /* Problem: Freeing all matrices and later allocating them again | 6341 | /* Problem: Freeing all matrices and later allocating them again |
| 6345 | is a serious redisplay flickering problem. What we would | 6342 | is a serious redisplay flickering problem. What we would |
| 6346 | really like to do is to free only those matrices not reused | 6343 | really like to do is to free only those matrices not reused |
| 6347 | below. */ | 6344 | below. */ |
| 6348 | root_window = XWINDOW (FRAME_ROOT_WINDOW (f)); | 6345 | root_window = XWINDOW (FRAME_ROOT_WINDOW (f)); |
| 6349 | leaf_windows | 6346 | leaf_windows |
| 6350 | = (struct window **) alloca (count_windows (root_window) | 6347 | = (struct window **) alloca (count_windows (root_window) |
| @@ -7257,7 +7254,7 @@ freeze_window_starts (f, freeze_p) | |||
| 7257 | ***********************************************************************/ | 7254 | ***********************************************************************/ |
| 7258 | 7255 | ||
| 7259 | /* Return 1 if window configurations C1 and C2 | 7256 | /* Return 1 if window configurations C1 and C2 |
| 7260 | describe the same state of affairs. This is used by Fequal. */ | 7257 | describe the same state of affairs. This is used by Fequal. */ |
| 7261 | 7258 | ||
| 7262 | int | 7259 | int |
| 7263 | compare_window_configurations (c1, c2, ignore_positions) | 7260 | compare_window_configurations (c1, c2, ignore_positions) |