aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1996-04-23 15:20:52 +0000
committerRichard M. Stallman1996-04-23 15:20:52 +0000
commitdd10ec4fd13cc11c5188fd76a3852e0eea294ee8 (patch)
treead88831467810a739ac0fec7b37a5e1a10277298 /src
parent477763cdf4dbbbb00946a633aa8fa42df75e3012 (diff)
downloademacs-dd10ec4fd13cc11c5188fd76a3852e0eea294ee8.tar.gz
emacs-dd10ec4fd13cc11c5188fd76a3852e0eea294ee8.zip
(Fframe_parameters, both definitions):
Get sizes from FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH if they are nonzero.
Diffstat (limited to 'src')
-rw-r--r--src/frame.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/frame.c b/src/frame.c
index d9656c37fad..6291147ae73 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -1699,6 +1699,7 @@ If FRAME is omitted, return information on the currently selected frame.")
1699{ 1699{
1700 Lisp_Object alist; 1700 Lisp_Object alist;
1701 FRAME_PTR f; 1701 FRAME_PTR f;
1702 int height, width;
1702 1703
1703 if (EQ (frame, Qnil)) 1704 if (EQ (frame, Qnil))
1704 f = selected_frame; 1705 f = selected_frame;
@@ -1713,8 +1714,10 @@ If FRAME is omitted, return information on the currently selected frame.")
1713 1714
1714 alist = Fcopy_alist (f->param_alist); 1715 alist = Fcopy_alist (f->param_alist);
1715 store_in_alist (&alist, Qname, f->name); 1716 store_in_alist (&alist, Qname, f->name);
1716 store_in_alist (&alist, Qheight, make_number (FRAME_HEIGHT (f))); 1717 height = (FRAME_NEW_HEIGHT (f) ? FRAME_NEW_HEIGHT (f) : FRAME_HEIGHT (f));
1717 store_in_alist (&alist, Qwidth, make_number (FRAME_WIDTH (f))); 1718 store_in_alist (&alist, Qheight, make_number (height));
1719 width = (FRAME_NEW_WIDTH (f) ? FRAME_NEW_WIDTH (f) : FRAME_WIDTH (f));
1720 store_in_alist (&alist, Qwidth, make_number (width));
1718 store_in_alist (&alist, Qmodeline, (FRAME_WANTS_MODELINE_P (f) ? Qt : Qnil)); 1721 store_in_alist (&alist, Qmodeline, (FRAME_WANTS_MODELINE_P (f) ? Qt : Qnil));
1719 store_in_alist (&alist, Qminibuffer, 1722 store_in_alist (&alist, Qminibuffer,
1720 (! FRAME_HAS_MINIBUF_P (f) ? Qnil 1723 (! FRAME_HAS_MINIBUF_P (f) ? Qnil
@@ -2339,6 +2342,7 @@ DEFUN ("frame-parameters", Fframe_parameters, Sframe_parameters, 0, 1, 0,
2339{ 2342{
2340 Lisp_Object alist; 2343 Lisp_Object alist;
2341 FRAME_PTR f; 2344 FRAME_PTR f;
2345 int height, width;
2342 2346
2343 if (EQ (frame, Qnil)) 2347 if (EQ (frame, Qnil))
2344 f = selected_frame; 2348 f = selected_frame;
@@ -2369,8 +2373,10 @@ DEFUN ("frame-parameters", Fframe_parameters, Sframe_parameters, 0, 1, 0,
2369#endif 2373#endif
2370 store_in_alist (&alist, intern ("font"), build_string ("default")); 2374 store_in_alist (&alist, intern ("font"), build_string ("default"));
2371 store_in_alist (&alist, Qname, build_string ("emacs")); 2375 store_in_alist (&alist, Qname, build_string ("emacs"));
2372 store_in_alist (&alist, Qheight, make_number (FRAME_HEIGHT (f))); 2376 height = (FRAME_NEW_HEIGHT (f) ? FRAME_NEW_HEIGHT (f) : FRAME_HEIGHT (f));
2373 store_in_alist (&alist, Qwidth, make_number (FRAME_WIDTH (f))); 2377 store_in_alist (&alist, Qheight, make_number (height));
2378 width = (FRAME_NEW_WIDTH (f) ? FRAME_NEW_WIDTH (f) : FRAME_WIDTH (f));
2379 store_in_alist (&alist, Qwidth, make_number (width));
2374 store_in_alist (&alist, Qmodeline, (FRAME_WANTS_MODELINE_P (f) ? Qt : Qnil)); 2380 store_in_alist (&alist, Qmodeline, (FRAME_WANTS_MODELINE_P (f) ? Qt : Qnil));
2375 store_in_alist (&alist, Qminibuffer, FRAME_MINIBUF_WINDOW (f)); 2381 store_in_alist (&alist, Qminibuffer, FRAME_MINIBUF_WINDOW (f));
2376 store_in_alist (&alist, Qunsplittable, (FRAME_NO_SPLIT_P (f) ? Qt : Qnil)); 2382 store_in_alist (&alist, Qunsplittable, (FRAME_NO_SPLIT_P (f) ? Qt : Qnil));