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 03:31:05 +0100 Message-ID: <874mq5o3di.fsf@fastmail.fm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1425177145 2524 80.91.229.3 (1 Mar 2015 02:32:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Mar 2015 02:32:25 +0000 (UTC) To: 19972@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 01 03:32:13 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 1YRtfw-0007gt-Pl for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Mar 2015 03:32:13 +0100 Original-Received: from localhost ([::1]:43246 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRtfv-0008L2-Hj for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Feb 2015 21:32:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRtfr-0008HU-PM for bug-gnu-emacs@gnu.org; Sat, 28 Feb 2015 21:32:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRtfn-0004zb-NS for bug-gnu-emacs@gnu.org; Sat, 28 Feb 2015 21:32:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57421) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRtfn-0004zX-J0 for bug-gnu-emacs@gnu.org; Sat, 28 Feb 2015 21:32:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YRtfn-0002Dq-4z for bug-gnu-emacs@gnu.org; Sat, 28 Feb 2015 21:32:03 -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 02:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19972 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14251770938501 (code B ref -1); Sun, 01 Mar 2015 02:32:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Mar 2015 02:31:33 +0000 Original-Received: from localhost ([127.0.0.1]:32786 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YRtfH-0002D2-Qj for submit@debbugs.gnu.org; Sat, 28 Feb 2015 21:31:32 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:32991) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YRtfA-0002Bw-OH for submit@debbugs.gnu.org; Sat, 28 Feb 2015 21:31:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRtf3-0004sz-Su for submit@debbugs.gnu.org; Sat, 28 Feb 2015 21:31:19 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:57118) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRtf3-0004sv-Ps for submit@debbugs.gnu.org; Sat, 28 Feb 2015 21:31:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34713) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRtf2-0007Kk-66 for bug-gnu-emacs@gnu.org; Sat, 28 Feb 2015 21:31:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRtey-0004se-38 for bug-gnu-emacs@gnu.org; Sat, 28 Feb 2015 21:31:16 -0500 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:58000) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRtex-0004pd-Ti for bug-gnu-emacs@gnu.org; Sat, 28 Feb 2015 21:31:11 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 8E6AC2095F for ; Sat, 28 Feb 2015 21:31:07 -0500 (EST) Original-Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Sat, 28 Feb 2015 21:31:08 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h= x-sasl-enc:from:to:subject:date:message-id:mime-version :content-type:content-transfer-encoding; s=mesmtp; bh=w6TMYDfGVb 2lnZCiN+IhkI0deXE=; b=VAMEcuxQd8zVzRa74gNV+tdnUCgnWIaIs5n4Y12Lk8 l9jM1Y8Ynrmn7Pt1XX1+HsVMCIBuzamW2+DY3kaHVghVXPmIrFnOlkSPC6amAVd6 eB1q2OGaYntHgKVk/B0jfHzarJLvL7lIPFc6DrHm87mG3j4IYU6cD13XifitOgXQ o= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:from:to:subject:date :message-id:mime-version:content-type:content-transfer-encoding; s=smtpout; bh=w6TMYDfGVb2lnZCiN+IhkI0deXE=; b=jx59O5/nSl9dLpgos 7ncsdygZi0KhE1MZIxcxJJpIfflIP8JFrS6rUtwPWp7VltjL5QFjvHAn55uIUOGl loMqGGy2nxMPB6T7jUMB2gxOn7ltazVuXSGsycL4zXZXUBPEdeotoQNYrnKeChpX 39FQsFJTNBXJbFGVLaMAQkQKD0= X-Sasl-enc: V6+6T/IaLx4MjHpvYxVqiQ+w9CG2Rd+RFDgTJ+x+657w 1425177067 Original-Received: from IdeaPad.messagingengine.com (unknown [217.187.210.105]) by mail.messagingengine.com (Postfix) with ESMTPA id 8753F68011E for ; Sat, 28 Feb 2015 21:31:07 -0500 (EST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:99921 Archived-At: After changing the font size (with `custom-push-theme' and `face-spec-recalc'), the value returned by `window-total-width' is not updated. To reproduce, run `emacs -Q' and do: - (window-total-width) ; shows the initial value - (custom-push-theme 'theme-face 'default 'user 'set '((t (:height 128)))) ; use a :height value that's actually different from the default height. - (face-spec-recalc 'default (selected-frame)) - (window-total-width) ; still shows the initial value - C-x 3 ; split window horizontally - C-x 1 ; delete other window - (window-total-width) ; shows the new value The second call to `window-total-width' should already have returned the new value. The following IELM transcript (recorded directly after `emacs -Q') shows the problem: ELISP> (window-total-width) 240 (#o360, #xf0, ?ð) ELISP> (custom-push-theme 'theme-face 'default 'user 'set '((t (:height 128)))) ((theme-face default user ((t (:height 128))))) ELISP> (face-spec-recalc 'default (selected-frame)) nil ELISP> (window-total-width) 240 (#o360, #xf0, ?ð) ;; now press `C-x 3` followed by `C-x 1' ELISP> (window-total-width) 192 (#o300, #xc0, ?À) ELISP> The second call to `window-total-width` returns 240, but it should have returned 192. After splitting the window and deleting the other window again, the correct value is returned. Note that splitting the window vertically (`C-x 2`) does *not* fix the value returned by `window-total-width'. In GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.2) of 2014-10-22 on IdeaPad Windowing system distributor `The X.Org Foundation', version 11.0.11501000 System Description: elementary OS Luna Important settings: value of $LC_MONETARY: en_IE.UTF-8 value of $LC_NUMERIC: en_IE.UTF-8 value of $LC_TIME: en_IE.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: IELM Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x i e l m ( w i n d o w - w t o t a l - w i d t h ) C-y M-b M-b M-d M-d 1 2 8 M-b M-b M-b M-b M-f C-f C-d ' C-e ( f a c e - s p e c - r e c SPC ' d e f a u l t SPC ' ( s e l e t c t e d - f r a m e ) ) C-x 3 C-x 1 C-SPC C-t C-f C-SPC C-a C-a a C-/ M-w M-x r e p o r t - e m a c - s - b u g Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Mark set Making completion list... Mark set transpose-subr-1: Text is read-only Mark activated Undo! Mark set End of buffer Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils help-mode mule-util ielm easymenu pp comint ansi-color ring time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 76433 3869) (symbols 48 18021 0) (miscs 40 52 174) (strings 32 10420 4770) (string-bytes 1 294096) (vectors 16 9633) (vector-slots 8 392165 12847) (floats 8 66 361) (intervals 56 294 16) (buffers 960 13) (heap 1024 45822 783)) -- Joost Kremers Life has its moments