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#19972: 24.4; Font size change doesn't update (window-total-width) Date: Mon, 02 Mar 2015 19:35:03 +0200 Message-ID: <83twy3qp4o.fsf@gnu.org> References: <874mq5o3di.fsf@fastmail.fm> <54F32CDE.9080308@gmx.at> <83pp8sspn2.fsf@gnu.org> <87zj7wmysq.fsf@fastmail.fm> <83lhjgsj96.fsf@gnu.org> <87y4ngmoso.fsf@fastmail.fm> <83k2z0rs8o.fsf@gnu.org> <87d24srqw2.fsf@fastmail.fm> <834mq3sdf8.fsf@gnu.org> <54F4991D.6080600@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1425317789 30190 80.91.229.3 (2 Mar 2015 17:36:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Mar 2015 17:36:29 +0000 (UTC) Cc: joostkremers@fastmail.fm, 19972@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 02 18:36:16 2015 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 1YSUGL-0002lx-Gw for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Mar 2015 18:36:13 +0100 Original-Received: from localhost ([::1]:58496 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSUGK-0003dk-Tk for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Mar 2015 12:36:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58104) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSUGH-0003bU-3P for bug-gnu-emacs@gnu.org; Mon, 02 Mar 2015 12:36:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YSUGA-0004NP-4h for bug-gnu-emacs@gnu.org; Mon, 02 Mar 2015 12:36:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34495) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSUGA-0004NC-1G for bug-gnu-emacs@gnu.org; Mon, 02 Mar 2015 12:36:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YSUG9-0002z8-QN for bug-gnu-emacs@gnu.org; Mon, 02 Mar 2015 12:36: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, 02 Mar 2015 17:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19972 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19972-submit@debbugs.gnu.org id=B19972.142531772511431 (code B ref 19972); Mon, 02 Mar 2015 17:36:01 +0000 Original-Received: (at 19972) by debbugs.gnu.org; 2 Mar 2015 17:35:25 +0000 Original-Received: from localhost ([127.0.0.1]:33063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YSUFY-0002yI-FC for submit@debbugs.gnu.org; Mon, 02 Mar 2015 12:35:25 -0500 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:60991) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YSUFT-0002xz-J6 for 19972@debbugs.gnu.org; Mon, 02 Mar 2015 12:35:21 -0500 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NKL00500HY52J00@mtaout28.012.net.il> for 19972@debbugs.gnu.org; Mon, 02 Mar 2015 19:33:38 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NKL001KNI426F40@mtaout28.012.net.il>; Mon, 02 Mar 2015 19:33:38 +0200 (IST) In-reply-to: <54F4991D.6080600@gmx.at> 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:99977 Archived-At: > Date: Mon, 02 Mar 2015 18:08:45 +0100 > From: martin rudalics > CC: 19972@debbugs.gnu.org > > > Here's the backtrace from the code that resizes the frame as result of > > face-spec-recalc: > > > > 0x0109bc93 in resize_frame_windows (f=0x17d7a30 , > > size=833, horflag=true, pixelwise=true) at window.c:4192 > > 4192 r->pixel_width = new_pixel_size; > > (gdb) bt > > #0 0x0109bc93 in resize_frame_windows (f=0x17d7a30 , > > size=833, horflag=true, pixelwise=true) at window.c:4192 > > Here you see resize_frame_windows getting called which will eventually > call `window--pixel-to-total' to assign the new total sizes of windows. > For Joost this call doesn't happen because new_windows_width equals > old_windows_width. I don't understand why that would happen. It doesn't seem to happen for me, with the current emacs-24 branch. > > #1 0x01011f3e in adjust_frame_size (f=0x17d7a30 , > > new_width=800, new_height=700, inhibit=5, pretend=false, parameter=8064) > > at frame.c:524 > > #2 0x0100f0cc in change_frame_size_1 (f=0x17d7a30 , > > new_width=800, new_height=700, pretend=false, delay=false, safe=false, > > pixelwise=true) at dispnew.c:5501 > > #3 0x0100f12a in change_frame_size (f=0x17d7a30 , > > new_width=800, new_height=700, pretend=false, delay=false, safe=false, > > pixelwise=true) at dispnew.c:5533 > > #4 0x0100eeb8 in do_pending_window_change (safe=false) at dispnew.c:5459 > > #5 0x0123f29d in x_set_window_size (f=0x17d7a30 , > > change_gravity=false, width=800, height=700, pixelwise=true) > > at w32term.c:6194 > > #6 0x01011e7e in adjust_frame_size (f=0x17d7a30 , > > new_width=800, new_height=700, inhibit=3, pretend=false, parameter=14464) > > at frame.c:490 > > Note that x_new_font _always_ calls adjust_frame_size (even for the > `set-frame-font' KEEP-SIZE non-nil case) trying to adjust the frame > size. > > I sincerely hope your frame was not maximized here. Otherwise, > resize_frame_windows should not have been called ... It is called with maximized frames as well, see the backtrace below. #0 0x010913a4 in resize_frame_windows (f=0x3a7b5d0, size=2396, horflag=true, pixelwise=true) at window.c:4211 #1 0x0100ea3e in change_frame_size_1 (f=0x3a7b5d0, new_width=2360, new_height=1300, pretend=false, delay=false, safe=false, pixelwise=true) at dispnew.c:5610 #2 0x0100e719 in change_frame_size (f=0x3a7b5d0, new_width=2360, new_height=1300, pretend=false, delay=false, safe=false, pixelwise=true) at dispnew.c:5518 #3 0x0100e60c in do_pending_window_change (safe=false) at dispnew.c:5479 #4 0x010199eb in x_set_font (f=0x3a7b5d0, arg=62956977, oldval=58852321) at frame.c:3355 #5 0x01017c73 in x_set_frame_parameters (f=0x3a7b5d0, alist=58296354) at frame.c:2889 #6 0x01016c55 in Fmodify_frame_parameters (frame=61322709, alist=58675454) at frame.c:2350 #7 0x010e9f66 in set_font_frame_param (frame=61322709, lface=61590461) at xfaces.c:3418 #8 0x010e9975 in Finternal_set_lisp_face_attribute (face=58325890, attr=58296898, value=512, frame=61322709) at xfaces.c:3233 #9 0x01185d95 in Ffuncall (nargs=5, args=0x82e1a4) at eval.c:2822 #10 0x011c67a9 in exec_byte_code (bytestr=19629633, vector=19629653, maxdepth=28, args_template=58296354, nargs=0, args=0x0) at bytecode.c:916 #11 0x011868da in funcall_lambda (fun=19629597, nargs=4, arg_vector=0x12b8655 ) at eval.c:3044 #12 0x01185f42 in Ffuncall (nargs=5, args=0x82e4a0) at eval.c:2860 #13 0x01185268 in Fapply (nargs=4, args=0x82e5a8) at eval.c:2350 #14 0x01185bfb in Ffuncall (nargs=5, args=0x82e5a4) at eval.c:2792 #15 0x011c67a9 in exec_byte_code (bytestr=19638793, vector=19638813, maxdepth=24, args_template=58296354, nargs=0, args=0x0) at bytecode.c:916 #16 0x011868da in funcall_lambda (fun=19638757, nargs=3, arg_vector=0x12baa1d ) at eval.c:3044 #17 0x01185f42 in Ffuncall (nargs=4, args=0x82e8a4) at eval.c:2860 #18 0x011c67a9 in exec_byte_code (bytestr=19638649, vector=19638669, maxdepth=20, args_template=58296354, nargs=0, args=0x0) at bytecode.c:916 #19 0x011868da in funcall_lambda (fun=19638629, nargs=2, arg_vector=0x12ba98d ) at eval.c:3044 #20 0x01186216 in apply_lambda (fun=19638629, args=58677654, count=13) at eval.c:2919 #21 0x01184bcf in eval_sub (form=58677678) at eval.c:2226 #22 0x011841dd in Feval (form=58677678, lexical=58296354) at eval.c:1996 #23 0x01185d2e in Ffuncall (nargs=3, args=0x82ed4c) at eval.c:2814 #24 0x011c67a9 in exec_byte_code (bytestr=20150481, vector=20150501, maxdepth=20, args_template=1028, nargs=1, args=0x82f050) at bytecode.c:916 #25 0x01186516 in funcall_lambda (fun=20150461, nargs=1, arg_vector=0x82f04c) at eval.c:2978 #26 0x01185f42 in Ffuncall (nargs=2, args=0x82f048) at eval.c:2860 #27 0x011c67a9 in exec_byte_code (bytestr=20150857, vector=20150877, maxdepth=16, args_template=1028, nargs=1, args=0x82f398) at bytecode.c:916 #28 0x01186516 in funcall_lambda (fun=20150829, nargs=1, arg_vector=0x82f394) at eval.c:2978 #29 0x01185f42 in Ffuncall (nargs=2, args=0x82f390) at eval.c:2860 #30 0x0117f504 in Fcall_interactively (function=60483810, record_flag=58296354, keys=58317685) at callint.c:836 #31 0x01185d5d in Ffuncall (nargs=4, args=0x82f57c) at eval.c:2818 #32 0x011c67a9 in exec_byte_code (bytestr=19837345, vector=19837365, maxdepth=52, args_template=4100, nargs=1, args=0x82f890) at bytecode.c:916 #33 0x01186516 in funcall_lambda (fun=19837325, nargs=1, arg_vector=0x82f88c) at eval.c:2978 #34 0x01185f42 in Ffuncall (nargs=2, args=0x82f888) at eval.c:2860 #35 0x011857ec in call1 (fn=58342562, arg1=60483810) at eval.c:2610 #36 0x010f97bf in command_loop_1 () at keyboard.c:1560 #37 0x01182c4f in internal_condition_case (bfun=0x10f915e , handlers=58347874, hfun=0x10f89c3 ) at eval.c:1348 #38 0x010f8e13 in command_loop_2 (ignore=58296354) at keyboard.c:1178 #39 0x011821ff in internal_catch (tag=58343234, func=0x10f8def , arg=58296354) at eval.c:1112 #40 0x010f8dc9 in command_loop () at keyboard.c:1157 #41 0x010f8560 in recursive_edit_1 () at keyboard.c:778 #42 0x010f871c in Frecursive_edit () at keyboard.c:849 #43 0x010f6936 in main (argc=2, argv=0xa427e0) at emacs.c:1642 Lisp Backtrace: "internal-set-lisp-face-attribute" (0x82e1a8) "set-face-attribute" (0x82e4a4) "apply" (0x82e5a8) "face-spec-set-2" (0x82e8a8) "face-spec-recalc" (0x82eb30) "eval" (0x82ed50) "eval-last-sexp-1" (0x82f04c) "eval-last-sexp" (0x82f394) "call-interactively" (0x82f580) "command-execute" (0x82f88c)