diff options
| author | Dmitry Antipov | 2013-07-31 16:09:16 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-07-31 16:09:16 +0400 |
| commit | 4c131798b5ab25557bfbc9a8b94c05fcdd195069 (patch) | |
| tree | ef31472528b6aea3178c23ece987efbe3cf34e22 /src | |
| parent | 8fd6e60a445dd7c83a99fb4cef9952c3d3e5f92a (diff) | |
| download | emacs-4c131798b5ab25557bfbc9a8b94c05fcdd195069.tar.gz emacs-4c131798b5ab25557bfbc9a8b94c05fcdd195069.zip | |
* frame.c (Fset_frame_height, Fset_frame_width): Mention nil frame in docstring.
(Fset_frame_size, Fset_frame_position): Use decode_live_frame and mention nil
frame in docstring.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/frame.c | 28 |
2 files changed, 17 insertions, 14 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 0e3e43c0cc3..1c4880e3356 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -2,6 +2,9 @@ | |||
| 2 | 2 | ||
| 3 | * frame.c (Fmake_terminal_frame): Use store_in_alist to setup | 3 | * frame.c (Fmake_terminal_frame): Use store_in_alist to setup |
| 4 | frame parameters and call to Fmodify_frame_parameters just once. | 4 | frame parameters and call to Fmodify_frame_parameters just once. |
| 5 | (Fset_frame_height, Fset_frame_width): Mention nil frame in docstring. | ||
| 6 | (Fset_frame_size, Fset_frame_position): Use decode_live_frame | ||
| 7 | and mention nil frame in docstring. | ||
| 5 | 8 | ||
| 6 | 2013-07-31 Dmitry Antipov <dmantipov@yandex.ru> | 9 | 2013-07-31 Dmitry Antipov <dmantipov@yandex.ru> |
| 7 | 10 | ||
diff --git a/src/frame.c b/src/frame.c index 9e156f3f0d6..271d99904c3 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -2403,8 +2403,9 @@ is used. */) | |||
| 2403 | 2403 | ||
| 2404 | DEFUN ("set-frame-height", Fset_frame_height, Sset_frame_height, 2, 3, 0, | 2404 | DEFUN ("set-frame-height", Fset_frame_height, Sset_frame_height, 2, 3, 0, |
| 2405 | doc: /* Specify that the frame FRAME has LINES lines. | 2405 | doc: /* Specify that the frame FRAME has LINES lines. |
| 2406 | Optional third arg non-nil means that redisplay should use LINES lines | 2406 | If FRAME is nil, the selected frame is used. Optional third arg |
| 2407 | but that the idea of the actual height of the frame should not be changed. */) | 2407 | non-nil means that redisplay should use LINES lines but that the |
| 2408 | idea of the actual height of the frame should not be changed. */) | ||
| 2408 | (Lisp_Object frame, Lisp_Object lines, Lisp_Object pretend) | 2409 | (Lisp_Object frame, Lisp_Object lines, Lisp_Object pretend) |
| 2409 | { | 2410 | { |
| 2410 | register struct frame *f = decode_live_frame (frame); | 2411 | register struct frame *f = decode_live_frame (frame); |
| @@ -2427,8 +2428,9 @@ but that the idea of the actual height of the frame should not be changed. */) | |||
| 2427 | 2428 | ||
| 2428 | DEFUN ("set-frame-width", Fset_frame_width, Sset_frame_width, 2, 3, 0, | 2429 | DEFUN ("set-frame-width", Fset_frame_width, Sset_frame_width, 2, 3, 0, |
| 2429 | doc: /* Specify that the frame FRAME has COLS columns. | 2430 | doc: /* Specify that the frame FRAME has COLS columns. |
| 2430 | Optional third arg non-nil means that redisplay should use COLS columns | 2431 | If FRAME is nil, the selected frame is used. Optional third arg |
| 2431 | but that the idea of the actual width of the frame should not be changed. */) | 2432 | non-nil means that redisplay should use COLS columns but that the |
| 2433 | idea of the actual width of the frame should not be changed. */) | ||
| 2432 | (Lisp_Object frame, Lisp_Object cols, Lisp_Object pretend) | 2434 | (Lisp_Object frame, Lisp_Object cols, Lisp_Object pretend) |
| 2433 | { | 2435 | { |
| 2434 | register struct frame *f = decode_live_frame (frame); | 2436 | register struct frame *f = decode_live_frame (frame); |
| @@ -2450,15 +2452,14 @@ but that the idea of the actual width of the frame should not be changed. */) | |||
| 2450 | } | 2452 | } |
| 2451 | 2453 | ||
| 2452 | DEFUN ("set-frame-size", Fset_frame_size, Sset_frame_size, 3, 3, 0, | 2454 | DEFUN ("set-frame-size", Fset_frame_size, Sset_frame_size, 3, 3, 0, |
| 2453 | doc: /* Sets size of FRAME to COLS by ROWS, measured in characters. */) | 2455 | doc: /* Sets size of FRAME to COLS by ROWS, measured in characters. |
| 2456 | If FRAME is nil, the selected frame is used. */) | ||
| 2454 | (Lisp_Object frame, Lisp_Object cols, Lisp_Object rows) | 2457 | (Lisp_Object frame, Lisp_Object cols, Lisp_Object rows) |
| 2455 | { | 2458 | { |
| 2456 | register struct frame *f; | 2459 | register struct frame *f = decode_live_frame (frame); |
| 2457 | 2460 | ||
| 2458 | CHECK_LIVE_FRAME (frame); | ||
| 2459 | CHECK_TYPE_RANGED_INTEGER (int, cols); | 2461 | CHECK_TYPE_RANGED_INTEGER (int, cols); |
| 2460 | CHECK_TYPE_RANGED_INTEGER (int, rows); | 2462 | CHECK_TYPE_RANGED_INTEGER (int, rows); |
| 2461 | f = XFRAME (frame); | ||
| 2462 | 2463 | ||
| 2463 | /* I think this should be done with a hook. */ | 2464 | /* I think this should be done with a hook. */ |
| 2464 | #ifdef HAVE_WINDOW_SYSTEM | 2465 | #ifdef HAVE_WINDOW_SYSTEM |
| @@ -2480,17 +2481,16 @@ DEFUN ("set-frame-size", Fset_frame_size, Sset_frame_size, 3, 3, 0, | |||
| 2480 | DEFUN ("set-frame-position", Fset_frame_position, | 2481 | DEFUN ("set-frame-position", Fset_frame_position, |
| 2481 | Sset_frame_position, 3, 3, 0, | 2482 | Sset_frame_position, 3, 3, 0, |
| 2482 | doc: /* Sets position of FRAME in pixels to XOFFSET by YOFFSET. | 2483 | doc: /* Sets position of FRAME in pixels to XOFFSET by YOFFSET. |
| 2483 | This is actually the position of the upper left corner of the frame. | 2484 | If FRAME is nil, the selected frame is used. XOFFSET and YOFFSET are |
| 2484 | Negative values for XOFFSET or YOFFSET are interpreted relative to | 2485 | actually the position of the upper left corner of the frame. Negative |
| 2485 | the rightmost or bottommost possible position (that stays within the screen). */) | 2486 | values for XOFFSET or YOFFSET are interpreted relative to the rightmost |
| 2487 | or bottommost possible position (that stays within the screen). */) | ||
| 2486 | (Lisp_Object frame, Lisp_Object xoffset, Lisp_Object yoffset) | 2488 | (Lisp_Object frame, Lisp_Object xoffset, Lisp_Object yoffset) |
| 2487 | { | 2489 | { |
| 2488 | register struct frame *f; | 2490 | register struct frame *f = decode_live_frame (frame); |
| 2489 | 2491 | ||
| 2490 | CHECK_LIVE_FRAME (frame); | ||
| 2491 | CHECK_TYPE_RANGED_INTEGER (int, xoffset); | 2492 | CHECK_TYPE_RANGED_INTEGER (int, xoffset); |
| 2492 | CHECK_TYPE_RANGED_INTEGER (int, yoffset); | 2493 | CHECK_TYPE_RANGED_INTEGER (int, yoffset); |
| 2493 | f = XFRAME (frame); | ||
| 2494 | 2494 | ||
| 2495 | /* I think this should be done with a hook. */ | 2495 | /* I think this should be done with a hook. */ |
| 2496 | #ifdef HAVE_WINDOW_SYSTEM | 2496 | #ifdef HAVE_WINDOW_SYSTEM |