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 07:14:13 +0200 Message-ID: <83eh329v8a.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> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1392614114 24571 80.91.229.3 (17 Feb 2014 05:15:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Feb 2014 05:15:14 +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 06:15:22 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 1WFGY2-0005Tv-2N for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Feb 2014 06:15:18 +0100 Original-Received: from localhost ([::1]:37916 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFGY1-0007KN-Cf for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Feb 2014 00:15:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52481) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFGXs-0007Jl-UB for bug-gnu-emacs@gnu.org; Mon, 17 Feb 2014 00:15:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WFGXn-0005ab-57 for bug-gnu-emacs@gnu.org; Mon, 17 Feb 2014 00:15:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54369) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFGXn-0005a8-1n for bug-gnu-emacs@gnu.org; Mon, 17 Feb 2014 00:15:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WFGXl-0004kB-VI for bug-gnu-emacs@gnu.org; Mon, 17 Feb 2014 00:15: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 05:15:01 +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.139261405718161 (code B ref 16736); Mon, 17 Feb 2014 05:15:01 +0000 Original-Received: (at 16736) by debbugs.gnu.org; 17 Feb 2014 05:14:17 +0000 Original-Received: from localhost ([127.0.0.1]:55551 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFGX3-0004ir-6q for submit@debbugs.gnu.org; Mon, 17 Feb 2014 00:14:17 -0500 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:42198) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFGX0-0004id-WE for 16736@debbugs.gnu.org; Mon, 17 Feb 2014 00:14:15 -0500 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0N1400E00JHBF500@a-mtaout23.012.net.il> for 16736@debbugs.gnu.org; Mon, 17 Feb 2014 07:14:08 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N1400ESLJVKEB30@a-mtaout23.012.net.il>; Mon, 17 Feb 2014 07:14:08 +0200 (IST) In-reply-to: <0ssirio8re.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:85711 Archived-At: > From: Glenn Morris > Cc: 16736@debbugs.gnu.org, rudalics@gmx.at > Date: Sun, 16 Feb 2014 19:58:13 -0500 > > Eli Zaretskii wrote: > > > Can you put a breakpoint in change_frame_size_1, on line 5564: > > > > SET_FRAME_COLS (f, new_cols); <<<<<<<<<<<<<<<< > > FRAME_LINES (f) = new_lines; > > FRAME_TEXT_WIDTH (f) = new_text_width; > > > > and see if that breakpoint breaks when you type "C-x 2" in *scratch*? > > Yes, it does. > > > new_text_width > > FRAME_TEXT_WIDTH (f) > > new_root_width > > old_root_width > > FRAME_TEXT_TO_PIXEL_WIDTH (f, new_text_width) > > FRAME_INTERNAL_BORDER_WIDTH (f) > > 640 > 640 > 672 > 672 > 674 > 1 OK, then that's the root cause, right there: this function continues to do this: adjust_frame_glyphs (f); calculate_costs (f); SET_FRAME_GARBAGED (f); f->resized_p = 1; which marks the frame "garbaged" and requires its complete redisplay, that starts with clearing it (as you have demonstrated in your backtrace a few messages ago), and continues by redrawing the tool bar. Martin, any ideas why this happens in a toolkit build? I don't understand how come this condition: 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; fails to cause the function to return. The reason must be in the 2 last conditions, which you added in revision 115971. Glenn, can you show the values of FRAME_PIXEL_HEIGHT (f) and FRAME_PIXEL_WIDTH (f) in this scenario?