From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#16736: Compiling a Lisp file causes display to flash off and on Date: Mon, 17 Feb 2014 17:42:45 +0200 Message-ID: <83wqgt924q.fsf@gnu.org> References: <96vbwj696i.fsf@fencepost.gnu.org> <83lhxecftk.fsf@gnu.org> <2smwhurv74.fsf@fencepost.gnu.org> <83iosgbx6b.fsf@gnu.org> <83y51b9gdt.fsf@gnu.org> <0ssirio8re.fsf@fencepost.gnu.org> <83eh329v8a.fsf@gnu.org> <0nlhxa18t7.fsf@fencepost.gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1392651790 24825 80.91.229.3 (17 Feb 2014 15:43:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Feb 2014 15:43:10 +0000 (UTC) Cc: 16736@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 17 16:43:18 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WFQLk-0000Gn-Mr for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Feb 2014 16:43:16 +0100 Original-Received: from localhost ([::1]:41829 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFQLk-0002rF-BP for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Feb 2014 10:43:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33097) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFQLc-0002oU-5D for bug-gnu-emacs@gnu.org; Mon, 17 Feb 2014 10:43:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WFQLX-0008KH-1w for bug-gnu-emacs@gnu.org; Mon, 17 Feb 2014 10:43:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55490) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFQLW-0008K8-UF for bug-gnu-emacs@gnu.org; Mon, 17 Feb 2014 10:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WFQLW-0000mj-6i for bug-gnu-emacs@gnu.org; Mon, 17 Feb 2014 10:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Feb 2014 15:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16736 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16736-submit@debbugs.gnu.org id=B16736.13926517692994 (code B ref 16736); Mon, 17 Feb 2014 15:43:02 +0000 Original-Received: (at 16736) by debbugs.gnu.org; 17 Feb 2014 15:42:49 +0000 Original-Received: from localhost ([127.0.0.1]:56672 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFQLJ-0000mE-1P for submit@debbugs.gnu.org; Mon, 17 Feb 2014 10:42:49 -0500 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:59054) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFQLF-0000ly-NU for 16736@debbugs.gnu.org; Mon, 17 Feb 2014 10:42:47 -0500 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0N1500K00CN4D400@mtaout26.012.net.il> for 16736@debbugs.gnu.org; Mon, 17 Feb 2014 17:41:03 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N1500E6BCWFU070@mtaout26.012.net.il>; Mon, 17 Feb 2014 17:41:03 +0200 (IST) In-reply-to: <0nlhxa18t7.fsf@fencepost.gnu.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:85740 Archived-At: > From: Glenn Morris > Cc: 16736@debbugs.gnu.org, rudalics@gmx.at > Date: Mon, 17 Feb 2014 02:45:40 -0500 > > Eli Zaretskii wrote: > > > if (new_text_height == FRAME_TEXT_HEIGHT (f) > > && new_text_width == FRAME_TEXT_WIDTH (f) > > && new_root_width == old_root_width > > && (FRAME_PIXEL_HEIGHT (f) == > > FRAME_TEXT_TO_PIXEL_HEIGHT (f, new_text_height)) > > && (FRAME_PIXEL_WIDTH (f) == > > FRAME_TEXT_TO_PIXEL_WIDTH (f, new_text_width))) > > return; > > new_text_height = 570 = FRAME_TEXT_HEIGHT (f) > new_text_width = 640 = FRAME_TEXT_WIDTH (f) > new_root_width = 672 = old_root_width > > FRAME_PIXEL_HEIGHT (f) = 605 > FRAME_TEXT_TO_PIXEL_HEIGHT (f, new_text_height) = 572 > new_text_height = 570 Looks like FRAME_PIXEL_HEIGHT includes the tool bar, and is thus 33 pixels larger than we expect. (What is f->tool_bar_height?) But I cannot find the place where we assign any value to FRAME_PIXEL_HEIGHT, except in this very function, so I'm unsure where do those extra 33 pixels come from. Glenn, if you put a breakpoint in change_frame_size_1 and then just "run -Q", can you show all the calls you see until Emacs starts up, including the arguments we pass to that function? Here's what I see on Windows: (gdb) break change_frame_size_1 Breakpoint 3 at 0x100d809: file dispnew.c, line 5467. (gdb) r -Q Starting program: D:\gnu\bzr\emacs\trunk\src\emacs.exe -Q [New Thread 2272.0x13c0] [New Thread 2272.0x1790] [New Thread 2272.0x324] Breakpoint 3, change_frame_size_1 (f=0x394a9d8, new_width=80, new_height=160, pretend=true, delay=false, safe=false, pixelwise=true) at dispnew.c:5467 5467 int old_root_width = WINDOW_PIXEL_WIDTH (XWINDOW (FRAME_ROOT_WINDOW (f))); (gdb) c Continuing. Breakpoint 3, change_frame_size_1 (f=0x394a9d8, new_width=640, new_height=608, pretend=false, delay=true, safe=false, pixelwise=true) at dispnew.c:5467 5467 int old_root_width = WINDOW_PIXEL_WIDTH (XWINDOW (FRAME_ROOT_WINDOW (f))); (gdb) Continuing. Breakpoint 3, change_frame_size_1 (f=0x394a9d8, new_width=640, new_height=608, pretend=false, delay=true, safe=false, pixelwise=true) at dispnew.c:5467 5467 int old_root_width = WINDOW_PIXEL_WIDTH (XWINDOW (FRAME_ROOT_WINDOW (f))); (gdb) Continuing. Breakpoint 3, change_frame_size_1 (f=0x394a9d8, new_width=640, new_height=608, pretend=false, delay=false, safe=false, pixelwise=true) at dispnew.c:5467 5467 int old_root_width = WINDOW_PIXEL_WIDTH (XWINDOW (FRAME_ROOT_WINDOW (f))); (gdb) Continuing. Breakpoint 3, change_frame_size_1 (f=0x394a9d8, new_width=0, new_height=0, pretend=false, delay=false, safe=false, pixelwise=true) at dispnew.c:5467 5467 int old_root_width = WINDOW_PIXEL_WIDTH (XWINDOW (FRAME_ROOT_WINDOW (f))); (gdb) Continuing. Breakpoint 3, change_frame_size_1 (f=0x394a9d8, new_width=640, new_height=608, pretend=true, delay=false, safe=false, pixelwise=true) at dispnew.c:5467 5467 int old_root_width = WINDOW_PIXEL_WIDTH (XWINDOW (FRAME_ROOT_WINDOW (f))); (gdb) Continuing. (The 640x608 size corresponds to the 80x35 text size I get (35 includes the mode line and the echo area), plus the equivalent of 3 text lines used for the tool bar.)