From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anders Lindgren Newsgroups: gmane.emacs.bugs Subject: bug#23320: 25.0.92; Window width not updated after frame resize (Win32 and GTK) Date: Wed, 20 Apr 2016 11:16:44 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c09daf07171500530e70d06 X-Trace: ger.gmane.org 1461143856 30192 80.91.229.3 (20 Apr 2016 09:17:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Apr 2016 09:17:36 +0000 (UTC) To: 23320@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 20 11:17:21 2016 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 1asoG8-00041o-Fr for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Apr 2016 11:17:20 +0200 Original-Received: from localhost ([::1]:45749 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asoG2-0004qP-Of for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Apr 2016 05:17:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asoFw-0004jj-QS for bug-gnu-emacs@gnu.org; Wed, 20 Apr 2016 05:17:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1asoFq-000400-Or for bug-gnu-emacs@gnu.org; Wed, 20 Apr 2016 05:17:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56899) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asoFq-0003zw-Kx for bug-gnu-emacs@gnu.org; Wed, 20 Apr 2016 05:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1asoFq-0005SE-Ew for bug-gnu-emacs@gnu.org; Wed, 20 Apr 2016 05:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Anders Lindgren Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Apr 2016 09:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23320 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.146114381620947 (code B ref -1); Wed, 20 Apr 2016 09:17:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Apr 2016 09:16:56 +0000 Original-Received: from localhost ([127.0.0.1]:41003 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1asoFk-0005Rn-F2 for submit@debbugs.gnu.org; Wed, 20 Apr 2016 05:16:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34337) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1asoFi-0005Rb-Mg for submit@debbugs.gnu.org; Wed, 20 Apr 2016 05:16:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1asoFc-0003ma-8U for submit@debbugs.gnu.org; Wed, 20 Apr 2016 05:16:49 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:38825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asoFc-0003mM-5b for submit@debbugs.gnu.org; Wed, 20 Apr 2016 05:16:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53529) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asoFa-00046r-P7 for bug-gnu-emacs@gnu.org; Wed, 20 Apr 2016 05:16:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1asoFZ-0003kV-Hb for bug-gnu-emacs@gnu.org; Wed, 20 Apr 2016 05:16:46 -0400 Original-Received: from mail-vk0-x22b.google.com ([2607:f8b0:400c:c05::22b]:34050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asoFZ-0003kR-7u for bug-gnu-emacs@gnu.org; Wed, 20 Apr 2016 05:16:45 -0400 Original-Received: by mail-vk0-x22b.google.com with SMTP id e185so51523409vkb.1 for ; Wed, 20 Apr 2016 02:16:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=i/Zek06iG7egj/p6Fq1aQ4nqDPcVLqn1pADMlqUttL0=; b=ou6Myz9VBQXaYi+QaotcxDtRMj+Fy4rAOh1x+AbpWcQpTAgHoUaXkZCNPLNtlSnHdY lQrdL7h20fpaOOdeT14ahQtonDoUjYczvqTg+gH4ei6wgXuVt3aZU+xmqqh4UAa37VjL xqLT7AGm2Iiol53if4lJ2Wk5s/41qrVy84WsNnY/Xs0AEdpUVNwGuc4TWTzqoMWC/Efn Xoz71NTn8/ADrqMuF70qAIpBTb8ilX01XktzlJomNcURGYd47Ai7k7nCvD1jM2ZRNdoB Ouf1UmqCxoTP+GS0X3qV+mKm1YiBledUhAzdBJsNtZ91SgWOZM7hrV5PFHMCTVXf9Q8Z MotQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=i/Zek06iG7egj/p6Fq1aQ4nqDPcVLqn1pADMlqUttL0=; b=IsFEf71Hs76KX2EzLYfzpzL2tj1k0j24VIFcWinV972Rw2kxPrUSBgPyqtVDrADWcx EDfbfI5jwKDmK0nvWti06wsI0qaFPx4wSEOVWbl77yzVTnwJ2uKAguj6sLOD1bpTGggk ee8nAfoiCpzdfd9I9qZUYWk62A1rgK/ZEPf4/R3HQtsHqgtGGsHfypYbWf9NuBIGgXGJ 7w9XAPiDPu4rs3fi3wO1M5UH01v1a2so/TEEZVPIaGBqbJfHT3yyIjbXaMKlABTHn+ef WVcMMiKBfZl+6Sefw/iRRFLU3v8TS9FCa7SmPZdCiSKkum+w+enPe1geXueJdIGVv7ar XQWQ== X-Gm-Message-State: AOPr4FVXIRb/ZCUfQ0Blcvcd9i8PxLjcIH7UUVZA+y9eOLN9ttvF7z8W5EfBaBDrFKC8Jcz2I4AEButqhxKHpw== X-Received: by 10.176.3.176 with SMTP id 45mr472722uau.60.1461143804664; Wed, 20 Apr 2016 02:16:44 -0700 (PDT) Original-Received: by 10.31.214.131 with HTTP; Wed, 20 Apr 2016 02:16:44 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:116625 Archived-At: --94eb2c09daf07171500530e70d06 Content-Type: text/plain; charset=UTF-8 Hi! I noticed a regression on 25.0.92 compared to 24.5 where the following code behaves differently on the w32 port. (On a recent GTK build it also misbehaves, but not under the NS port.) (progn (set-frame-size (selected-frame) 1000 400 t) (window-width nil t)) On 24.5, this evaluates to "1000". However, on 25.0.92 `window-width' returns the width prior to the frame resize. (Evaluating it a second time returns 1000, though.) Adding `(sit-for 0)' before the call to `window-width' make is return 1000 the first time, but it doesn't feel like a robust solution. Is this the expected behavior? If it is, is adding `(sit-for 0)' the recommended way to get the correct window width after a frame resize? -- Anders Lindgren In GNU Emacs 25.0.92.1 (i686-w64-mingw32) of 2016-03-21 built on LAPHROAIG Windowing system distributor 'Microsoft Corp.', version 6.1.7601 Configured using: 'configure --host=i686-w64-mingw32 --without-dbus --without-compress-install CFLAGS=-static' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS Important settings: value of $LANG: SVE locale-coding-system: cp1252 Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-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 messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr mail-utils time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded 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 w32notify w32 multi-tty make-network-process emacs) Memory information: ((conses 8 89463 5796) (symbols 32 19588 0) (miscs 32 44 151) (strings 16 15873 4098) (string-bytes 1 434746) (vectors 8 12347) (vector-slots 4 429150 3960) (floats 8 165 156) (intervals 28 259 49) (buffers 520 12)) --94eb2c09daf07171500530e70d06 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi!

I noticed a regression on 25.0.92 compared to 24.5 where the follow= ing code behaves differently on the w32 port. (On a recent GTK build it als= o misbehaves, but not under the NS port.)

=C2=A0 =C2=A0 (progn
=C2=A0 =C2=A0 =C2=A0 (set-frame-size (selected-frame) 1000 400 t)
=C2=A0 =C2=A0 =C2=A0 (window-width nil t))

On 24.5, this = evaluates to "1000". However, on 25.0.92 `window-width' retur= ns the width prior to the frame resize. (Evaluating it a second time return= s 1000, though.)

Adding `(sit-for 0)' before the call to `window-w= idth' make is return 1000 the first time, but it doesn't feel like = a robust solution.

Is this the expected behavior? If it is, is adding `= (sit-for 0)' the recommended way to get the correct window width after = a frame resize?

=C2=A0 =C2=A0 -- Anders Lind= gren


In GNU Emacs 25.0.92.1 (i686-w= 64-mingw32)
=C2=A0of 2016-03-21 built on LAPHROAIG
Wind= owing system distributor 'Microsoft Corp.', version 6.1.7601
<= div>Configured using:
=C2=A0'configure --host=3Di686-w64-ming= w32 --without-dbus
=C2=A0--without-compress-install CFLAGS=3D-sta= tic'

Configured features:
XPM JPEG T= IFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB
TOOLKIT_SCR= OLL_BARS

Important settings:
=C2=A0 valu= e of $LANG: SVE
=C2=A0 locale-coding-system: cp1252
Major mode: Lisp Interaction

Minor mod= es in effect:
=C2=A0 tooltip-mode: t
=C2=A0 global-eldo= c-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-w= heel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mo= de: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-fon= t-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cu= rsor-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 aut= o-encryption-mode: t
=C2=A0 auto-compression-mode: t
= =C2=A0 line-number-mode: t
=C2=A0 transient-mark-mode: t

Recent messages:
For information about GNU Emacs= and the GNU system, type C-h C-a.

Load-path shado= ws:
None found.

Features:
(sha= dow sort mail-extr emacsbug message dired format-spec rfc822 mml
= mml-sec epg epg-config gnus-util mm-decode mm-bodies mm-encode
ma= il-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util help-fns help-mode easymenu cl-loaddefs pcase
cl-lib mail-prsvr mail-utils time-date mule-util tooltip eldoc ele= ctric
uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32= ls-lisp
disp-table w32-win w32-vars term/common-win tool-bar dnd= fontset image
regexp-opt fringe tabulated-list newcomment elisp-= mode lisp-mode
prog-mode register page menu-bar rfn-eshadow timer= select scroll-bar
mouse jit-lock font-lock syntax facemenu font-= core frame cl-generic cham
georgian utf-8-lang misc-lang vietname= se tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 heb= rew greek romanian slovak czech
european ethiopic indian cyrillic= chinese charscript case-table epa-hook
jka-cmpr-hook help simple= abbrev minibuffer cl-preloaded nadvice
loaddefs button faces cus= -face macroexp files text-properties overlay
sha1 md5 base64 form= at env code-pages mule custom widget
hashtable-print-readable bac= kquote w32notify w32 multi-tty
make-network-process emacs)
<= div>
Memory information:
((conses 8 89463 5796)
=C2=A0(symbols 32 19588 0)
=C2=A0(miscs 32 44 151)
=C2=A0(strings 16 15873 4098)
=C2=A0(string-bytes 1 434746)
=C2=A0(vectors 8 12347)
=C2=A0(vector-slots 4 429150 3960= )
=C2=A0(floats 8 165 156)
=C2=A0(intervals 28 259 49)<= /div>
=C2=A0(buffers 520 12))

--94eb2c09daf07171500530e70d06--