>From 9250823257cf7c6c56b46da13fb03922525f2087 Mon Sep 17 00:00:00 2001 From: Pankaj Jangid Date: Fri, 11 Dec 2020 10:27:58 +0530 Subject: [PATCH] docstring: If FRAME is nil, it defaults to selected frame. Similar to "set-frame-parameter" docstring, added a line in the docstring of following three functions to specify that if FRAME is nil then it defaults to selected-frame. 1. set-frame-size 2. set-frame-width 3. set-frame-height --- src/frame.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/frame.c b/src/frame.c index 17ec455d2d..ecb9251c1a 100644 --- a/src/frame.c +++ b/src/frame.c @@ -3577,7 +3577,9 @@ DEFUN ("set-frame-height", Fset_frame_height, Sset_frame_height, 2, 4, multiple of the default frame font height. When called interactively, HEIGHT is the numeric prefix and the -currently selected frame will be set to this height. */) +currently selected frame will be set to this height. + +If FRAME is nil, it defaults to the selected frame. */) (Lisp_Object frame, Lisp_Object height, Lisp_Object pretend, Lisp_Object pixelwise) { struct frame *f = decode_live_frame (frame); @@ -3600,7 +3602,10 @@ DEFUN ("set-frame-width", Fset_frame_width, Sset_frame_width, 2, 4, multiple of the default frame font width. When called interactively, WIDTH is the numeric prefix and the -currently selected frame will be set to this width. */) +currently selected frame will be set to this width. + +If FRAME is nil, it defaults to the selected frame. + */) (Lisp_Object frame, Lisp_Object width, Lisp_Object pretend, Lisp_Object pixelwise) { struct frame *f = decode_live_frame (frame); @@ -3616,7 +3621,7 @@ DEFUN ("set-frame-size", Fset_frame_size, Sset_frame_size, 3, 4, 0, When `frame-resize-pixelwise' is nil, some window managers may refuse to honor a WIDTH that is not an integer multiple of the default frame font width or a HEIGHT that is not an integer multiple of the default frame -font height. */) +font height. If FRAME is nil, it defaults to the selected frame. */) (Lisp_Object frame, Lisp_Object width, Lisp_Object height, Lisp_Object pixelwise) { struct frame *f = decode_live_frame (frame); -- 2.29.2