From 780c294f37fc0132aeab5d7ee6ecf4152ebb7215 Mon Sep 17 00:00:00 2001 From: Dmitry Antipov Date: Mon, 21 Jul 2014 20:58:12 +0400 Subject: * src/frame.c (Fframe_parameters): Always report frame height without menu and tool bar lines. * etc/TODO: remove frame height remark. --- etc/ChangeLog | 4 ++++ etc/TODO | 5 ----- src/ChangeLog | 5 +++++ src/frame.c | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/etc/ChangeLog b/etc/ChangeLog index 8ae48c277a8..fdaf1f0cabd 100644 --- a/etc/ChangeLog +++ b/etc/ChangeLog @@ -1,3 +1,7 @@ +2014-07-21 Dmitry Antipov + + * TODO: remove frame height remark. + 2014-07-11 Michael Albinus * NEWS: Passwords in batch mode are hidden. diff --git a/etc/TODO b/etc/TODO index cbf8336230e..11bbd356a88 100644 --- a/etc/TODO +++ b/etc/TODO @@ -144,11 +144,6 @@ for users to customize. http://lists.gnu.org/archive/html/emacs-pretest-bug/2005-12/msg00165.html, and the rest of that discussion. -** Height returned by frame-parameter ... and height given to - make-frame does not mean the same thing. The former includes menu and - tool bar lines, the latter don't. frame-parameter should return height - without menu and tool bar lines. - ** In Emacs Info, examples of using Customize should be clickable and they should create Custom buffers. diff --git a/src/ChangeLog b/src/ChangeLog index 25732ac9f5d..30a02475262 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2014-07-21 Dmitry Antipov + + * frame.c (Fframe_parameters): Always report frame height without + menu and tool bar lines. + 2014-07-21 Jan Djärv * nsterm.m (applicationDidFinishLaunching:): Call diff --git a/src/frame.c b/src/frame.c index 8d6f3567334..731a62705bd 100644 --- a/src/frame.c +++ b/src/frame.c @@ -2240,7 +2240,7 @@ If FRAME is omitted or nil, return information on the currently selected frame. ? (f->new_pixelwise ? (f->new_height / FRAME_LINE_HEIGHT (f)) : f->new_height) - : FRAME_LINES (f)); + : FRAME_LINES (f)) - FRAME_TOP_MARGIN (f); store_in_alist (&alist, Qheight, make_number (height)); width = (f->new_width ? (f->new_pixelwise -- cgit v1.2.1