From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.bugs Subject: bug#19972: 24.4; Font size change doesn't update (window-total-width) Date: Sun, 01 Mar 2015 18:06:11 +0100 Message-ID: <871tl8odfg.fsf@fastmail.fm> References: <874mq5o3di.fsf@fastmail.fm> <54F32CDE.9080308@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1425229643 21060 80.91.229.3 (1 Mar 2015 17:07:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Mar 2015 17:07:23 +0000 (UTC) Cc: 19972@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 01 18:07:09 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 1YS7Kf-0004iv-4o for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Mar 2015 18:07:09 +0100 Original-Received: from localhost ([::1]:53307 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YS7Ke-0001T7-Cf for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Mar 2015 12:07:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50460) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YS7Kb-0001Sc-CE for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2015 12:07:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YS7KY-0008KP-6E for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2015 12:07:05 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58135) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YS7KY-0008KJ-0K for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2015 12:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YS7KX-0007my-Jb for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2015 12:07:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Joost Kremers Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Mar 2015 17:07: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.142522957629881 (code B ref 19972); Sun, 01 Mar 2015 17:07:01 +0000 Original-Received: (at 19972) by debbugs.gnu.org; 1 Mar 2015 17:06:16 +0000 Original-Received: from localhost ([127.0.0.1]:33499 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YS7Jo-0007lq-27 for submit@debbugs.gnu.org; Sun, 01 Mar 2015 12:06:16 -0500 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:52626) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YS7Jm-0007li-Mh for 19972@debbugs.gnu.org; Sun, 01 Mar 2015 12:06:15 -0500 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 39CDE20780 for <19972@debbugs.gnu.org>; Sun, 1 Mar 2015 12:06:13 -0500 (EST) Original-Received: from frontend2 ([10.202.2.161]) by compute2.internal (MEProxy); Sun, 01 Mar 2015 12:06:14 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h= x-sasl-enc:references:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-type; s=mesmtp; bh=yEoEzl3vsu9I kTU6VoYXwaUOycU=; b=OUs+WERcMqMwOmHu37E520AiEkeHafUcTGdb+phV/15J +z1n063L9yQKlXChdXgeKlYBPaR42QZwIEvoduY0jKNiLBqu1ek0JX1yY8C11oRh unUpoKnaFmt+McQglJiCnq42UBKC8/U5FBFyWcQ2tL8X5rUwPT0UBCDJedf63LU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:references:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-type; s= smtpout; bh=yEoEzl3vsu9IkTU6VoYXwaUOycU=; b=EzixgW0UV9r6g/OSaQcx r5i6FLojS8DbGz0pzZckm67gUhYjPEBt/Ambl/boayMmaotEz2kCD+enU7gWLceV wHktIlixLoJWyYvJ06lJHReWfSK1dQWnLYcWvtEfXnCw8lPeglL8blaOP3O1bf21 f3eZbhIN2unfrXW2gvlGm7A= X-Sasl-enc: UZS8mvaPFoQEAAHRMbCsXsFnPjMkN14+nWKawYFolE9d 1425229573 Original-Received: from IdeaPad.messagingengine.com (unknown [95.119.111.0]) by mail.messagingengine.com (Postfix) with ESMTPA id 759D06800BB; Sun, 1 Mar 2015 12:06:13 -0500 (EST) In-reply-to: <54F32CDE.9080308@gmx.at> 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:99936 Archived-At: On Sun, Mar 01 2015, martin rudalics wrote: > > The second call to `window-total-width` returns 240, but it should have > > returned 192. > > I must admit that I don't have the faintest idea what `face-spec-recalc' > is supposed to do. I must admit, neither do I. The report results from an issue reported for a package of mine: https://github.com/joostkremers/visual-fill-column/issues/2 I took the calls to `custom-push-theme' and `face-spec-recalc' from the code of the `default-text-scale' package. > Anyway. Why do you think that `window-total-width' should return 192 in > the first call? In principle, face/font changes are supposed to keep > the number of columns/lines unchanged so returning 240 seems reasonable > to me. Well, the fact is that after the font size change, the number of characters that fit in the window changes as well. AFAIU the return value of `window-total-width' depends on that, at least in part. Unless I'm wrong in that assumption... > In any case, please evaluate (window--dump-frame) in IELM once > immediately before you invoke `face-spec-recalc', once immediately after > you invoked it, and once after you did C-x 1. You have to copy the > results from a buffer called *window-frame-dump* (three times, because > each dump overwrites the previous one). Please post the results here. > > > In GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.2) > > of 2014-10-22 on IdeaPad > > Could you try with current master/trunk? Lots of things changed in this > area recently. I'll try with the latest Emacs and provide the output of window--dump-frame ASAP. -- Joost Kremers Life has its moments