From unknown Tue Jun 17 22:27:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#66141: 29.1; Window size properties not set immediately for window in new frame Resent-From: Mattias Nyrell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Sep 2023 16:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66141 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 66141@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16953131445791 (code B ref -1); Thu, 21 Sep 2023 16:20:02 +0000 Received: (at submit) by debbugs.gnu.org; 21 Sep 2023 16:19:04 +0000 Received: from localhost ([127.0.0.1]:34698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjMON-0001VK-R2 for submit@debbugs.gnu.org; Thu, 21 Sep 2023 12:19:04 -0400 Received: from lists.gnu.org ([2001:470:142::17]:60496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjMMg-0001SA-Al for submit@debbugs.gnu.org; Thu, 21 Sep 2023 12:17:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjMMN-0000rO-91 for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2023 12:17:01 -0400 Received: from dragonfly.birch.relay.mailchannels.net ([23.83.209.51]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjMMH-0000kG-CR for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2023 12:16:58 -0400 X-Sender-Id: stablehost|x-authuser|mattias@nyrell.se Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 73ED8901853 for ; Thu, 21 Sep 2023 16:16:08 +0000 (UTC) Received: from swe06.stablehost.com (unknown [127.0.0.6]) (Authenticated sender: stablehost) by relay.mailchannels.net (Postfix) with ESMTPA id 21D0390126C for ; Thu, 21 Sep 2023 16:16:04 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1695312965; a=rsa-sha256; cv=none; b=hONkiYeZdCij2N+T2nLd8BAkXf9HmFOWUNjF5JxZKNOHwxbd2gZdS1ghsf6e6djM3tUmDG oCNZNGjtz13INsi3HgnxbKuHYUSEbsyQiv4T7iurAAcc5jrjOknxr8x+zw62JbonM6hA2X QSnbXnZZF78Jb8y1Hg8+Dh9imC6foEMiLPNmPa6rjQt7PY6PQdiL8RSNbuC3Wl0SLLi8tY YLfD5bY9F+x8FUNAZGD/Jbe3RVeUV8yRUwoe4OGh9Iizk0al8PUpjiW2UGFV3e5fgG17YB LWlByV6R9Icrm/GUYU3byR6ZNALihYinI7ZkglGQXHwcQK4nN+QKNTC6sYAOEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1695312965; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:dkim-signature; bh=jYupvlQXXa0W5PpQY7lFeZXY9/jsAbc+EbJX7Nwa3UM=; b=bINgjoRacFtrC6z6DqRdIgA1FCYpmmYGGZ9viS7Ru7BeC/nzUPqvYvPYp0uia6oHL+1eB/ 8HZjukIqvcr6CmhCNecVqAbqaLb/4GrFy6HSu/Zjxk2qxenDmzAj1kevvTLwCGOAodS3lK A266/bgEIBc/rlhYoLEze3NvZs0ttnduhVFYJGaJL/m/TFse933TiJmyZbnsKYHTkwoRLK OeuG23fQ946PfZ749Q8EgXWCRBGg0xqREE2YzGh1sq7x+ZqZKzX8asSoOCd4RpQw740qQc U/L3tehsCw9KoCzElMCe5pFlD1elb6zhP4+/Y69I4MXRsP8uzH5iadE2pc1XrA== ARC-Authentication-Results: i=1; rspamd-7d5dc8fd68-47ncm; auth=pass smtp.auth=stablehost smtp.mailfrom=mattias@nyrell.se X-Sender-Id: stablehost|x-authuser|mattias@nyrell.se X-MC-Relay: Neutral X-MailChannels-SenderId: stablehost|x-authuser|mattias@nyrell.se X-MailChannels-Auth-Id: stablehost X-Soft-Rock: 4a5090575ab31717_1695312968009_3835512569 X-MC-Loop-Signature: 1695312968009:3592265658 X-MC-Ingress-Time: 1695312968008 Received: from swe06.stablehost.com (swe06.stablehost.com [185.215.199.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.97.244.81 (trex/6.9.1); Thu, 21 Sep 2023 16:16:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nyrell.se; s=default; h=Content-Transfer-Encoding:Content-Type:Subject:From:To: MIME-Version:Date:Message-ID:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=jYupvlQXXa0W5PpQY7lFeZXY9/jsAbc+EbJX7Nwa3UM=; b=ljF1ZeyBo/Ru/HiKatqTEmuKvv bGAw7iPy6tbd2SC3d2iHYSjMTq36CCYOf/Q7zN2hjkwTUFzXYaD6txql+dDnq0O5TIxJfxHb1ZJvN +TkjiiAIeF32bi4136RNK75Pm+WKqYqW332LdEBvIAXVTX/9XbRJ/f699Fe4hA1OlTK+N8DUqoyg1 FPIGwOUKyRJQFA5avB7Ne+ABvQKV/79aNGWS7PyZAPK0M8h+ZdoLnl3w6CioFme9AnrfTXV3ego/l 3Y3kbm8TgouE8tfE4EJ7TnLZ3r4koVRnHgm0pby4/kb0hb4LNdJ5Vc3q8vSdhQ+6XVl1/wOW3ywcE MhZVMbSw==; Received: from [88.131.68.202] (port=62377 helo=[10.15.122.134]) by swe06.stablehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1qjMLV-0005RF-2w for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2023 16:16:02 +0000 Message-ID: <999b2ee0-b9fe-c1a4-3696-442e8d53b212@nyrell.se> Date: Thu, 21 Sep 2023 18:16:01 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Content-Language: en-US From: Mattias Nyrell Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-AuthUser: mattias@nyrell.se Received-SPF: pass client-ip=23.83.209.51; envelope-from=mattias@nyrell.se; helo=dragonfly.birch.relay.mailchannels.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Thu, 21 Sep 2023 12:19:02 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Starting from emacs -Q, enter the following in *scratch*: (let ((f (make-frame '((fullscreen . maximized)))))   (select-frame-set-input-focus f)   (message "window-body-width=%s" (window-body-width))   (sleep-for 1)   (message "window-body-width=%s" (window-body-width)) ) Execute with C-x C-e Result: - A new frame is created. - The message "window-body-width=80" is printed - The message "window-body-width=190" is printed (exact value depending on screen size of course) Expected result: The first printed message should be the same as the second printed message. In GNU Emacs 29.1 (build 2, x86_64-w64-mingw32) of 2023-07-31 built on  AVALON Windowing system distributor 'Microsoft Corp.', version 10.0.22621 System Description: Microsoft Windows 10 Enterprise (v10.0.2009.22621.2134) Configured using:  'configure --with-modules --without-dbus --with-native-compilation=aot  --without-compress-install --with-tree-sitter CFLAGS=-O2' Configured features: ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XPM ZLIB (NATIVE_COMP present but libgccjit not available) 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   eldoc-mode: t   show-paren-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   line-number-mode: t   indent-tabs-mode: t   transient-mark-mode: t   auto-composition-mode: t   auto-encryption-mode: t   auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cl-extra shortdoc text-property-search help-fns radix-tree help-mode time-date subr-x cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine 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 composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 60177 5492)  (symbols 48 5492 0)  (strings 32 17131 1407)  (string-bytes 1 468887)  (vectors 16 11742)  (vector-slots 8 276217 11742)  (floats 8 81 21)  (intervals 56 303 0)  (buffers 984 12)) From unknown Tue Jun 17 22:27:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#66141: 29.1; Window size properties not set immediately for window in new frame Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Sep 2023 16:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66141 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Mattias Nyrell Cc: 66141@debbugs.gnu.org Received: via spool by 66141-submit@debbugs.gnu.org id=B66141.16953143617858 (code B ref 66141); Thu, 21 Sep 2023 16:40:02 +0000 Received: (at 66141) by debbugs.gnu.org; 21 Sep 2023 16:39:21 +0000 Received: from localhost ([127.0.0.1]:34727 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjMi0-00022g-Rc for submit@debbugs.gnu.org; Thu, 21 Sep 2023 12:39:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjMhy-00022S-TB for 66141@debbugs.gnu.org; Thu, 21 Sep 2023 12:39:19 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjMhj-0004vB-1X; Thu, 21 Sep 2023 12:39:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=1qQNKK07ueIQwaxkscSv9Sqxz3UMEMt7hmIBdL7ayP4=; b=nbGxIj3cnrvg0MKL5BsG ouqemYAzQUlYbVJcZlVvUaIQQmAKnklq0TwA29lZ7yKesQfipXyWpuRVHEGdbQU8Mzq8Fe2CZXNJi ZwBYc1Yl2n8+hQ0LvdyFV9XVw9ds883KaoQ4KyBvNp+7FT/mfvNkd8aIMyH1q7pdkYNUZSNr87B4z TJWkzO8n5NIRccojQbdeOMRPmVdisXt7jygkyi2xVubTRZNPJJbjIWe6yP/FfS7WTpGS7XuXnydAO 0XtBUdKXhXrNaYvdvXBdErF0GkIzmMwL3yxqb2rPuRiTsSryBBjcaYraoop/QJaCC+7RFJtObEbm7 EP/MfHNbd/NLgw==; Date: Thu, 21 Sep 2023 19:39:11 +0300 Message-Id: <83jzsj8or4.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <999b2ee0-b9fe-c1a4-3696-442e8d53b212@nyrell.se> (message from Mattias Nyrell on Thu, 21 Sep 2023 18:16:01 +0200) References: <999b2ee0-b9fe-c1a4-3696-442e8d53b212@nyrell.se> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Thu, 21 Sep 2023 18:16:01 +0200 > From: Mattias Nyrell > > Starting from emacs -Q, enter the following in *scratch*: > > (let ((f (make-frame '((fullscreen . maximized))))) >   (select-frame-set-input-focus f) >   (message "window-body-width=%s" (window-body-width)) >   (sleep-for 1) >   (message "window-body-width=%s" (window-body-width)) ) > > Execute with C-x C-e > > Result: > - A new frame is created. > - The message "window-body-width=80" is printed > - The message "window-body-width=190" is printed (exact value depending > on screen size of course) > > Expected result: > The first printed message should be the same as the second printed message. Isn't it because the actual resizing of the frame is done by the window-system, and we can only ask it to do so? IOW, I think your expectation is incorrect, as it assumes that frame move/resize operations are executed immediately. From unknown Tue Jun 17 22:27:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#66141: 29.1; Window size properties not set immediately for window in new frame Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Sep 2023 18:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66141 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Mattias Nyrell Cc: 66141@debbugs.gnu.org Received: via spool by 66141-submit@debbugs.gnu.org id=B66141.169532229622269 (code B ref 66141); Thu, 21 Sep 2023 18:52:02 +0000 Received: (at 66141) by debbugs.gnu.org; 21 Sep 2023 18:51:36 +0000 Received: from localhost ([127.0.0.1]:34816 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjOlz-0005n6-K9 for submit@debbugs.gnu.org; Thu, 21 Sep 2023 14:51:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjOly-0005mt-Iq for 66141@debbugs.gnu.org; Thu, 21 Sep 2023 14:51:35 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjOli-0005cB-ND; Thu, 21 Sep 2023 14:51:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=oH80r4WwzrOkrxEBePja8Brs3ie8nW3+QBUFMu6EY5o=; b=ZLJwCkGsqYQ1Bknboobe r2BEre8CuqYUW4q664X3wUJylnFVPxUBs/LHJPVfTnXXc4sSUqnEQEmGwrf/jHfKVw+F8a4QBBku0 OTOM5IStRQAke9AfVFuXrCeQyBfgf/xsJH4IYhQwbHtYft20SXWzZ7cMviDwqAsIkHFaBEtlvX6f8 IRos5q/xeb2Nllh6H5A+keKREm1L2zAncC4/L1zkv+7ebz4Taub9Cb9hiyMftIOkuHccF41Kfw38v P6hosZl3M1L5FCU6QijyhKPQL9tYhhVlxruQGi9MiOexUbScBwrYkNpSCUGbC34DrpHbdy9QOyFyK 0CAYHt6otA0nlA==; Date: Thu, 21 Sep 2023 21:51:27 +0300 Message-Id: <83bkdv8imo.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Mattias Nyrell on Thu, 21 Sep 2023 20:48:19 +0200) References: <999b2ee0-b9fe-c1a4-3696-442e8d53b212@nyrell.se> <83jzsj8or4.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [Please use Reply All to reply, to keep the bug tracer CC'ed.] > Date: Thu, 21 Sep 2023 20:48:19 +0200 > From: Mattias Nyrell > > > > On 2023-09-21 18:39, Eli Zaretskii wrote: > >> Date: Thu, 21 Sep 2023 18:16:01 +0200 > >> From: Mattias Nyrell > >> > >> Starting from emacs -Q, enter the following in *scratch*: > >> > >> (let ((f (make-frame '((fullscreen . maximized))))) > >>   (select-frame-set-input-focus f) > >>   (message "window-body-width=%s" (window-body-width)) > >>   (sleep-for 1) > >>   (message "window-body-width=%s" (window-body-width)) ) > >> > >> Execute with C-x C-e > >> > >> Result: > >> - A new frame is created. > >> - The message "window-body-width=80" is printed > >> - The message "window-body-width=190" is printed (exact value depending > >> on screen size of course) > >> > >> Expected result: > >> The first printed message should be the same as the second printed message. > > Isn't it because the actual resizing of the frame is done by the > > window-system, and we can only ask it to do so? > > > > IOW, I think your expectation is incorrect, as it assumes that frame > > move/resize operations are executed immediately. > I have no idea, but your explanation sounds very reasonable and it is > probably right! > > Is there a way to get notified when the resize operation has finished? > Or is sleeping for a short while a reasonable solution? Yes, calling sleep-for is one way. I would also suggest to try (sit-for 0) If that works, it is faster. From unknown Tue Jun 17 22:27:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#66141: 29.1; Window size properties not set immediately for window in new frame Resent-From: Mattias Nyrell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Sep 2023 22:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66141 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 66141@debbugs.gnu.org Received: via spool by 66141-submit@debbugs.gnu.org id=B66141.169533672114914 (code B ref 66141); Thu, 21 Sep 2023 22:52:02 +0000 Received: (at 66141) by debbugs.gnu.org; 21 Sep 2023 22:52:01 +0000 Received: from localhost ([127.0.0.1]:34959 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjSWc-0003sQ-FL for submit@debbugs.gnu.org; Thu, 21 Sep 2023 18:52:01 -0400 Received: from mail.lysator.liu.se ([2001:6b0:17:f0a0::3]:38649) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjOz5-00069H-7E for 66141@debbugs.gnu.org; Thu, 21 Sep 2023 15:05:08 -0400 Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id B42C78A7 for <66141@debbugs.gnu.org>; Thu, 21 Sep 2023 21:04:53 +0200 (CEST) Received: by mail.lysator.liu.se (Postfix, from userid 1004) id A8052B03; Thu, 21 Sep 2023 21:04:53 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on hermod.lysator.liu.se X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ALL_TRUSTED, AWL, NICE_REPLY_A autolearn=disabled version=3.4.6 X-Spam-Score: -2.4 Received: from [IPV6:2001:9b1:efb:a400:ccc:443c:16ca:2e25] (unknown [IPv6:2001:9b1:efb:a400:ccc:443c:16ca:2e25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id 57E5891A; Thu, 21 Sep 2023 21:04:53 +0200 (CEST) Message-ID: <79870529-9459-5ed9-3d90-18f449efc838@nyrell.se> Date: Thu, 21 Sep 2023 21:04:53 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Content-Language: en-US References: <999b2ee0-b9fe-c1a4-3696-442e8d53b212@nyrell.se> <83jzsj8or4.fsf@gnu.org> <83bkdv8imo.fsf@gnu.org> From: Mattias Nyrell In-Reply-To: <83bkdv8imo.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Score: -1.2 (-) X-Mailman-Approved-At: Thu, 21 Sep 2023 18:51:57 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.2 (--) On 2023-09-21 20:51, Eli Zaretskii wrote: > [Please use Reply All to reply, to keep the bug tracer CC'ed.] > >> Date: Thu, 21 Sep 2023 20:48:19 +0200 >> From: Mattias Nyrell >> >> >> >> On 2023-09-21 18:39, Eli Zaretskii wrote: >>>> Date: Thu, 21 Sep 2023 18:16:01 +0200 >>>> From: Mattias Nyrell >>>> >>>> Starting from emacs -Q, enter the following in *scratch*: >>>> >>>> (let ((f (make-frame '((fullscreen . maximized))))) >>>>   (select-frame-set-input-focus f) >>>>   (message "window-body-width=%s" (window-body-width)) >>>>   (sleep-for 1) >>>>   (message "window-body-width=%s" (window-body-width)) ) >>>> >>>> Execute with C-x C-e >>>> >>>> Result: >>>> - A new frame is created. >>>> - The message "window-body-width=80" is printed >>>> - The message "window-body-width=190" is printed (exact value depending >>>> on screen size of course) >>>> >>>> Expected result: >>>> The first printed message should be the same as the second printed message. >>> Isn't it because the actual resizing of the frame is done by the >>> window-system, and we can only ask it to do so? >>> >>> IOW, I think your expectation is incorrect, as it assumes that frame >>> move/resize operations are executed immediately. >> I have no idea, but your explanation sounds very reasonable and it is >> probably right! >> >> Is there a way to get notified when the resize operation has finished? >> Or is sleeping for a short while a reasonable solution? > Yes, calling sleep-for is one way. I would also suggest to try > > (sit-for 0) > > If that works, it is faster. Ok, thank you! /Mattias From unknown Tue Jun 17 22:27:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#66141: 29.1; Window size properties not set immediately for window in new frame Resent-From: Mattias Nyrell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Sep 2023 06:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66141 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 66141@debbugs.gnu.org Received: via spool by 66141-submit@debbugs.gnu.org id=B66141.169536524330331 (code B ref 66141); Fri, 22 Sep 2023 06:48:02 +0000 Received: (at 66141) by debbugs.gnu.org; 22 Sep 2023 06:47:23 +0000 Received: from localhost ([127.0.0.1]:35170 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjZwg-0007t8-Ry for submit@debbugs.gnu.org; Fri, 22 Sep 2023 02:47:23 -0400 Received: from hedgehog.birch.relay.mailchannels.net ([23.83.209.81]:4087) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjZwc-0007sw-8I for 66141@debbugs.gnu.org; Fri, 22 Sep 2023 02:47:20 -0400 X-Sender-Id: stablehost|x-authuser|mattias@nyrell.se Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 214F93608C8; Fri, 22 Sep 2023 06:47:06 +0000 (UTC) Received: from swe06.stablehost.com (unknown [127.0.0.6]) (Authenticated sender: stablehost) by relay.mailchannels.net (Postfix) with ESMTPA id F31B936050E; Fri, 22 Sep 2023 06:47:04 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1695365225; a=rsa-sha256; cv=none; b=qIwgCcQPF2pXrjkZAfFwt3KXMe5ngnM+FQlO4BsYguXXiCZBVcE8KPKIRg/71ybQbBOdAo WZ8VNu37/eGcWtkqUuugLIoE4ItIdoZsqUg+Sw7DONavp5nfUb5c6k8g/aPevwVRKvl/5X kxJFc5Is8vH8Sa/UaDmo++tCq9wcoRrChDdsD8hSc85iyO0UjF1ONkfS/Hj+eTuwh+nL7I fHGNuQRdc4FfB/gkD6yIDD5YZaVc5ZVYOTkbM4TWUCEuekKylcdw8AZmJNyA2lJ9MNonKJ IK9HSWfhh3GZxqhv24iRJ43aGGR1llCueWn6ucT177V2tOVWF9wjvtBX+xMk2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1695365225; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=GaxYSbytD2sy/gOihJCDCRwszY4fws55f/aOetxpxMg=; b=iEI+6gD9ixO4BtLYgo4sabA51h1he9xUL3agVpTGyoYXmazo+QnHufXr3Zk+qVAeZKazMW KXN6Avfhoak3ySg2NrWTpdy6pc0aC9++jS0ENBrkcrPkvtn9hmDm6HXMSDNd0xn2/Hrhe2 u8KpJdePMWrR1d/wA95cFaY1zIz91fYQEsu7bsnkeBx9Ak5Z9ckzpK1HQueAvtk34Lk4iB vP3jFr6JcKS+tfn9tEE/BhjnisgIByyLYL+3Xlj1SyC4axpK9kZaGSMF53KlcueNC43GoW U0s4L/OufJ+4jWzz7ZS9BSmSZereo6nYRJ1WIUFH8Vpm0T3VtOmq8lGL+tdypA== ARC-Authentication-Results: i=1; rspamd-7c449d4847-sc2sv; auth=pass smtp.auth=stablehost smtp.mailfrom=mattias@nyrell.se X-Sender-Id: stablehost|x-authuser|mattias@nyrell.se X-MC-Relay: Neutral X-MailChannels-SenderId: stablehost|x-authuser|mattias@nyrell.se X-MailChannels-Auth-Id: stablehost X-Squirrel-Obese: 5918d6d11caa4b48_1695365225921_1292329460 X-MC-Loop-Signature: 1695365225921:318453344 X-MC-Ingress-Time: 1695365225921 Received: from swe06.stablehost.com (swe06.stablehost.com [185.215.199.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.99.159.71 (trex/6.9.1); Fri, 22 Sep 2023 06:47:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nyrell.se; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Cc :To:From:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=GaxYSbytD2sy/gOihJCDCRwszY4fws55f/aOetxpxMg=; b=Woa5BKK8+EvijoMJBfyqwNw3ru 933Uy5UJpZtsLIpMqjYs1/qgIXUBnJO1xEoi8WBhqqti23+zrzzizaDCw987qSzfDzacI3fc7ZPUc S1OazrBZkpfb3gE5KRGB6yQsT71WizjQiCnfSpbrbSaBJHAkSMLWVhM9vLKDIjGxQYyix82ZwTLib DviR2rEVHmstbUHHxFDMFOMW89YHURjZCXxJy7yl++25IXDguoLfsKywgYj6k0OH6VTXjdl4OI2zf MRp8N/pssIwCYJw6YAw+WIq4GgWPbf/UKxaH6/xr3VLKC8C7/CCyKnSMwW3YqB/XE+JUl5Pr6nPLU xRJbWm0g==; Received: from [88.131.68.202] (port=55511 helo=[10.15.122.134]) by swe06.stablehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1qjZwQ-0008P5-03; Fri, 22 Sep 2023 06:47:02 +0000 Message-ID: <0ace9d7d-8a01-d0b8-f290-0e2ee2241246@nyrell.se> Date: Fri, 22 Sep 2023 08:47:02 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Content-Language: en-US From: Mattias Nyrell References: <999b2ee0-b9fe-c1a4-3696-442e8d53b212@nyrell.se> <83jzsj8or4.fsf@gnu.org> <83bkdv8imo.fsf@gnu.org> <79870529-9459-5ed9-3d90-18f449efc838@nyrell.se> In-Reply-To: <79870529-9459-5ed9-3d90-18f449efc838@nyrell.se> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-AuthUser: mattias@nyrell.se X-Spam-Score: -1.5 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.5 (--) On 2023-09-21 21:04, Mattias Nyrell wrote: > > > On 2023-09-21 20:51, Eli Zaretskii wrote: >> [Please use Reply All to reply, to keep the bug tracer CC'ed.] >> >>> Date: Thu, 21 Sep 2023 20:48:19 +0200 >>> From: Mattias Nyrell >>> >>> >>> >>> On 2023-09-21 18:39, Eli Zaretskii wrote: >>>>> Date: Thu, 21 Sep 2023 18:16:01 +0200 >>>>> From: Mattias Nyrell >>>>> >>>>> Starting from emacs -Q, enter the following in *scratch*: >>>>> >>>>> (let ((f (make-frame '((fullscreen . maximized))))) >>>>>      (select-frame-set-input-focus f) >>>>>      (message "window-body-width=%s" (window-body-width)) >>>>>      (sleep-for 1) >>>>>      (message "window-body-width=%s" (window-body-width)) ) >>>>> >>>>> Execute with C-x C-e >>>>> >>>>> Result: >>>>> - A new frame is created. >>>>> - The message "window-body-width=80" is printed >>>>> - The message "window-body-width=190" is printed (exact value >>>>> depending >>>>> on screen size of course) >>>>> >>>>> Expected result: >>>>> The first printed message should be the same as the second printed >>>>> message. >>>> Isn't it because the actual resizing of the frame is done by the >>>> window-system, and we can only ask it to do so? >>>> >>>> IOW, I think your expectation is incorrect, as it assumes that frame >>>> move/resize operations are executed immediately. >>> I have no idea, but your explanation sounds very reasonable and it is >>> probably right! >>> >>> Is there a way to get notified when the resize operation has finished? >>> Or is sleeping for a short while a reasonable solution? >> Yes, calling sleep-for is one way.  I would also suggest to try >> >>    (sit-for 0) >> >> If that works, it is faster. > Ok, thank you! > > /Mattias I tried (sit-for 0) and even (sit-for 5), but none of those worked. (sleep-for 0.1) or (sleep-for 0) worked for me. /Mattias From unknown Tue Jun 17 22:27:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#66141: 29.1; Window size properties not set immediately for window in new frame Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Sep 2023 06:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66141 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Mattias Nyrell Cc: 66141@debbugs.gnu.org Received: via spool by 66141-submit@debbugs.gnu.org id=B66141.169536592131628 (code B ref 66141); Fri, 22 Sep 2023 06:59:02 +0000 Received: (at 66141) by debbugs.gnu.org; 22 Sep 2023 06:58:41 +0000 Received: from localhost ([127.0.0.1]:35176 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qja7d-0008E4-6Y for submit@debbugs.gnu.org; Fri, 22 Sep 2023 02:58:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qja7a-0008Dq-SW for 66141@debbugs.gnu.org; Fri, 22 Sep 2023 02:58:40 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qja7K-0005S6-H0; Fri, 22 Sep 2023 02:58:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=C/FBoK/Ri8DD/RydP8cds79hkJHkVCYT00VpOduD8BY=; b=lock0dyH28s4wDrlGP9R JstX6PAlcgMyQlj18qISEkfhmd9iUwyTmRku9r8APLAORtOxoZm3ttoLcRXwZAURQAHVbviSswlsr qCs2PmVjpvGiFexd0hMSnnZPpLr7QuNwmguwPl2ctXeXNC3NtBEKoesvhSE2Qw0XCtCgS0PwruiCZ bV2Lk7ZklsYdefddNk1OvLnQ8efGvs/Wq05b5tKCxUCNcpIu20wVHPAyXPT+VEhq5z1EMKUYAT6ob F4yf5y0CxGcG4qD5sSc//2wHZJhABtMcJQoVuzghmlhiilbugNUnqGRxVLA9b7+XEenyrXyJqL/nI 9N1xzDNeB+LCOg==; Date: Fri, 22 Sep 2023 09:58:31 +0300 Message-Id: <834jjm8zjc.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <0ace9d7d-8a01-d0b8-f290-0e2ee2241246@nyrell.se> (message from Mattias Nyrell on Fri, 22 Sep 2023 08:47:02 +0200) References: <999b2ee0-b9fe-c1a4-3696-442e8d53b212@nyrell.se> <83jzsj8or4.fsf@gnu.org> <83bkdv8imo.fsf@gnu.org> <79870529-9459-5ed9-3d90-18f449efc838@nyrell.se> <0ace9d7d-8a01-d0b8-f290-0e2ee2241246@nyrell.se> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Fri, 22 Sep 2023 08:47:02 +0200 > From: Mattias Nyrell > Cc: 66141@debbugs.gnu.org > > >> Yes, calling sleep-for is one way.  I would also suggest to try > >> > >>    (sit-for 0) > >> > >> If that works, it is faster. > > Ok, thank you! > > > > /Mattias > > I tried (sit-for 0) and even (sit-for 5), but none of those worked. > > (sleep-for 0.1) or (sleep-for 0) worked for me. I guess this means that some input event from the window-system interrupts sit-for too early, so sleep-for is really required. I think we can now close this bug report, right? From unknown Tue Jun 17 22:27:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#66141: 29.1; Window size properties not set immediately for window in new frame Resent-From: Mattias Nyrell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Sep 2023 07:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66141 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 66141@debbugs.gnu.org Received: via spool by 66141-submit@debbugs.gnu.org id=B66141.16953674551675 (code B ref 66141); Fri, 22 Sep 2023 07:25:01 +0000 Received: (at 66141) by debbugs.gnu.org; 22 Sep 2023 07:24:15 +0000 Received: from localhost ([127.0.0.1]:35208 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjaWM-0000Qx-UL for submit@debbugs.gnu.org; Fri, 22 Sep 2023 03:24:15 -0400 Received: from seagreen.cherry.relay.mailchannels.net ([23.83.223.160]:33599) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjaWK-0000Qn-5O for 66141@debbugs.gnu.org; Fri, 22 Sep 2023 03:24:13 -0400 X-Sender-Id: stablehost|x-authuser|mattias@nyrell.se Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 41183C22E5; Fri, 22 Sep 2023 07:24:00 +0000 (UTC) Received: from swe06.stablehost.com (unknown [127.0.0.6]) (Authenticated sender: stablehost) by relay.mailchannels.net (Postfix) with ESMTPA id 4699CC2272; Fri, 22 Sep 2023 07:23:59 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1695367439; a=rsa-sha256; cv=none; b=Vpvh0X6jWJ/gay31kUKbrkaprqDh2q/N70Im1yyS+jq93R5ltn2C7MkyKtAqf1ZRx6IPH6 UXE91ABthP6yBSjJ5+zbcmAqnppsWF5/fUjgfc/UZAgtAoctzoO/jLYPUbVNlwze3HtbTt SEvVE+g4axIV0XDCDmcNOt/ehPccwGZhye1H8znS843tldMOONkwp8JPhaKB13kw2Nj1KR 2sJ4E4q4V8jXBEHlWblkFGLT512eLTgzW+OnkBHYiNnJmmXDp+agwnT7/6/vU9Z16gv8L5 i5zRLxPAJN78+tZwQ6Z+nk3wurTrgYjq9aMuSTnL3WL7nidYaxU5a60XjjTfoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1695367439; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=CADaf6Yf+7R3iFYxntUX0zAkYakPfE3WMZ0SMvAd6no=; b=nf8moqxeKa9CFG6ufjMC654HAdH40mYsJO3ezw/UWoACbgrzOxT2wZOomf5Vcxa6ZYbz+1 yJlr+nPCzqGD1xwkQkfbNzDfpc+P67wbK0EF7knNSKwJHgyl/nwcBrRg7HSVbSUtM41pKm L4sVZaEixVLr4Qr4hR3967u2MHFrqHRdwYs1ekBmaysTK9Dxy+yoztkbee9sg5JZ28i2yA csD5D26w9UIrURpaQL/Fg+X7fKisqW6QQrOt3YHXT50x+APxJIckLAOUew8yw69YWSbQRE c+oZUmJWSAMUzsHXoBkStB+bRoh5T0oQDKE44T6MdEY3PVBAIDjxffk8ORQJrw== ARC-Authentication-Results: i=1; rspamd-7d5dc8fd68-85z9h; auth=pass smtp.auth=stablehost smtp.mailfrom=mattias@nyrell.se X-Sender-Id: stablehost|x-authuser|mattias@nyrell.se X-MC-Relay: Neutral X-MailChannels-SenderId: stablehost|x-authuser|mattias@nyrell.se X-MailChannels-Auth-Id: stablehost X-Bottle-Spill: 294c37b1111292cb_1695367440049_2835443776 X-MC-Loop-Signature: 1695367440048:1452502468 X-MC-Ingress-Time: 1695367440048 Received: from swe06.stablehost.com (swe06.stablehost.com [185.215.199.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.114.198.215 (trex/6.9.1); Fri, 22 Sep 2023 07:24:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nyrell.se; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=CADaf6Yf+7R3iFYxntUX0zAkYakPfE3WMZ0SMvAd6no=; b=Sv+5mjBrxh2W2uynp1UDdb0WKd OepVZfKFcomlm9uL4peQZD0O5X71XkfLTy/L0bvYnss1uYCVUB/Zxuv1cpfQZ+0EixllqWoIAajb2 IxDZpCs3m88N6lcp+RYQQrpS4vP7SSwqgCHqduqS62D5M7aX/GimbF448WIKeecpj3846xtaPt2JG ZjireX9RDVZK/mJONmJ+7Q9HeprTUxHxc100VaWU32vJmhPoW+KbnqYSlZyMlEpcL3YI03CHZgnz8 7MNsk+VFaiPMvQI8LKeKdCXwnf/al0JbBzp3/QeatcfV/hyB9CrkWstYXr6HRXVExOmP7Ua+knLI2 JZn9nMFg==; Received: from [88.131.68.202] (port=52181 helo=[10.15.122.134]) by swe06.stablehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1qjaW8-0006Rw-0r; Fri, 22 Sep 2023 07:23:56 +0000 Message-ID: Date: Fri, 22 Sep 2023 09:23:56 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Content-Language: en-US References: <999b2ee0-b9fe-c1a4-3696-442e8d53b212@nyrell.se> <83jzsj8or4.fsf@gnu.org> <83bkdv8imo.fsf@gnu.org> <79870529-9459-5ed9-3d90-18f449efc838@nyrell.se> <0ace9d7d-8a01-d0b8-f290-0e2ee2241246@nyrell.se> <834jjm8zjc.fsf@gnu.org> From: Mattias Nyrell In-Reply-To: <834jjm8zjc.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-AuthUser: mattias@nyrell.se X-Spam-Score: -1.5 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.5 (--) On 2023-09-22 08:58, Eli Zaretskii wrote: >> Date: Fri, 22 Sep 2023 08:47:02 +0200 >> From: Mattias Nyrell >> Cc: 66141@debbugs.gnu.org >> >>>> Yes, calling sleep-for is one way.  I would also suggest to try >>>> >>>>    (sit-for 0) >>>> >>>> If that works, it is faster. >>> Ok, thank you! >>> >>> /Mattias >> I tried (sit-for 0) and even (sit-for 5), but none of those worked. >> >> (sleep-for 0.1) or (sleep-for 0) worked for me. > I guess this means that some input event from the window-system > interrupts sit-for too early, so sleep-for is really required. > > I think we can now close this bug report, right? Yes, thank you! From unknown Tue Jun 17 22:27:48 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Mattias Nyrell Subject: bug#66141: closed (Re: bug#66141: 29.1; Window size properties not set immediately for window in new frame) Message-ID: References: <83y1gy79g8.fsf@gnu.org> <999b2ee0-b9fe-c1a4-3696-442e8d53b212@nyrell.se> X-Gnu-PR-Message: they-closed 66141 X-Gnu-PR-Package: emacs Reply-To: 66141@debbugs.gnu.org Date: Fri, 22 Sep 2023 11:08:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1695380882-12568-1" This is a multi-part message in MIME format... ------------=_1695380882-12568-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #66141: 29.1; Window size properties not set immediately for window in new = frame which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 66141@debbugs.gnu.org. --=20 66141: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D66141 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1695380882-12568-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 66141-done) by debbugs.gnu.org; 22 Sep 2023 11:07:31 +0000 Received: from localhost ([127.0.0.1]:35382 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qje0R-0003G0-43 for submit@debbugs.gnu.org; Fri, 22 Sep 2023 07:07:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qje0M-0003Fl-HZ for 66141-done@debbugs.gnu.org; Fri, 22 Sep 2023 07:07:29 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qje06-0000KH-0u; Fri, 22 Sep 2023 07:07:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=te9JVyL2JOf+exFRH8CIbPue4TGLHAMnPd02lf6KFlU=; b=WYPOau576gSp hZZAZcsETPPjDopSeTO1PqgFjMN//iUuGpXZdWPcYK46ebmAuDJS9ZfOzfNgONWpX40IhGPLemqHL W87iKnpRVL4yPO7zwZxrhnDDFVU0zxX1wxe5sCDea0EYT8qwzph6Fl3k9vQn4YqpsrWn5Y19wK6j1 416KktcLS8cBWUQ3JCpvzk+SvIwG/WyAsd5nUEWYx5Rghvmwl7W1XRDOM+IOcvmpBvLp6mI1vgGIP 95jWeV4zMLYopgc5E6+9oZRs6qHS/NBtARED62MV0WsiNcn2Qfxg0/ahrDcB5o9zx4OJKU8kDf/bu DwNdmcfHAxm0P/m43pjOvQ==; Date: Fri, 22 Sep 2023 14:07:19 +0300 Message-Id: <83y1gy79g8.fsf@gnu.org> From: Eli Zaretskii To: Mattias Nyrell In-Reply-To: (message from Mattias Nyrell on Fri, 22 Sep 2023 09:23:56 +0200) Subject: Re: bug#66141: 29.1; Window size properties not set immediately for window in new frame References: <999b2ee0-b9fe-c1a4-3696-442e8d53b212@nyrell.se> <83jzsj8or4.fsf@gnu.org> <83bkdv8imo.fsf@gnu.org> <79870529-9459-5ed9-3d90-18f449efc838@nyrell.se> <0ace9d7d-8a01-d0b8-f290-0e2ee2241246@nyrell.se> <834jjm8zjc.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66141-done Cc: 66141-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Fri, 22 Sep 2023 09:23:56 +0200 > Cc: 66141@debbugs.gnu.org > From: Mattias Nyrell > > > I think we can now close this bug report, right? > > Yes, thank you! Done. ------------=_1695380882-12568-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 21 Sep 2023 16:19:04 +0000 Received: from localhost ([127.0.0.1]:34698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjMON-0001VK-R2 for submit@debbugs.gnu.org; Thu, 21 Sep 2023 12:19:04 -0400 Received: from lists.gnu.org ([2001:470:142::17]:60496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjMMg-0001SA-Al for submit@debbugs.gnu.org; Thu, 21 Sep 2023 12:17:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjMMN-0000rO-91 for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2023 12:17:01 -0400 Received: from dragonfly.birch.relay.mailchannels.net ([23.83.209.51]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjMMH-0000kG-CR for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2023 12:16:58 -0400 X-Sender-Id: stablehost|x-authuser|mattias@nyrell.se Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 73ED8901853 for ; Thu, 21 Sep 2023 16:16:08 +0000 (UTC) Received: from swe06.stablehost.com (unknown [127.0.0.6]) (Authenticated sender: stablehost) by relay.mailchannels.net (Postfix) with ESMTPA id 21D0390126C for ; Thu, 21 Sep 2023 16:16:04 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1695312965; a=rsa-sha256; cv=none; b=hONkiYeZdCij2N+T2nLd8BAkXf9HmFOWUNjF5JxZKNOHwxbd2gZdS1ghsf6e6djM3tUmDG oCNZNGjtz13INsi3HgnxbKuHYUSEbsyQiv4T7iurAAcc5jrjOknxr8x+zw62JbonM6hA2X QSnbXnZZF78Jb8y1Hg8+Dh9imC6foEMiLPNmPa6rjQt7PY6PQdiL8RSNbuC3Wl0SLLi8tY YLfD5bY9F+x8FUNAZGD/Jbe3RVeUV8yRUwoe4OGh9Iizk0al8PUpjiW2UGFV3e5fgG17YB LWlByV6R9Icrm/GUYU3byR6ZNALihYinI7ZkglGQXHwcQK4nN+QKNTC6sYAOEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1695312965; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:dkim-signature; bh=jYupvlQXXa0W5PpQY7lFeZXY9/jsAbc+EbJX7Nwa3UM=; b=bINgjoRacFtrC6z6DqRdIgA1FCYpmmYGGZ9viS7Ru7BeC/nzUPqvYvPYp0uia6oHL+1eB/ 8HZjukIqvcr6CmhCNecVqAbqaLb/4GrFy6HSu/Zjxk2qxenDmzAj1kevvTLwCGOAodS3lK A266/bgEIBc/rlhYoLEze3NvZs0ttnduhVFYJGaJL/m/TFse933TiJmyZbnsKYHTkwoRLK OeuG23fQ946PfZ749Q8EgXWCRBGg0xqREE2YzGh1sq7x+ZqZKzX8asSoOCd4RpQw740qQc U/L3tehsCw9KoCzElMCe5pFlD1elb6zhP4+/Y69I4MXRsP8uzH5iadE2pc1XrA== ARC-Authentication-Results: i=1; rspamd-7d5dc8fd68-47ncm; auth=pass smtp.auth=stablehost smtp.mailfrom=mattias@nyrell.se X-Sender-Id: stablehost|x-authuser|mattias@nyrell.se X-MC-Relay: Neutral X-MailChannels-SenderId: stablehost|x-authuser|mattias@nyrell.se X-MailChannels-Auth-Id: stablehost X-Soft-Rock: 4a5090575ab31717_1695312968009_3835512569 X-MC-Loop-Signature: 1695312968009:3592265658 X-MC-Ingress-Time: 1695312968008 Received: from swe06.stablehost.com (swe06.stablehost.com [185.215.199.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.97.244.81 (trex/6.9.1); Thu, 21 Sep 2023 16:16:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nyrell.se; s=default; h=Content-Transfer-Encoding:Content-Type:Subject:From:To: MIME-Version:Date:Message-ID:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=jYupvlQXXa0W5PpQY7lFeZXY9/jsAbc+EbJX7Nwa3UM=; b=ljF1ZeyBo/Ru/HiKatqTEmuKvv bGAw7iPy6tbd2SC3d2iHYSjMTq36CCYOf/Q7zN2hjkwTUFzXYaD6txql+dDnq0O5TIxJfxHb1ZJvN +TkjiiAIeF32bi4136RNK75Pm+WKqYqW332LdEBvIAXVTX/9XbRJ/f699Fe4hA1OlTK+N8DUqoyg1 FPIGwOUKyRJQFA5avB7Ne+ABvQKV/79aNGWS7PyZAPK0M8h+ZdoLnl3w6CioFme9AnrfTXV3ego/l 3Y3kbm8TgouE8tfE4EJ7TnLZ3r4koVRnHgm0pby4/kb0hb4LNdJ5Vc3q8vSdhQ+6XVl1/wOW3ywcE MhZVMbSw==; Received: from [88.131.68.202] (port=62377 helo=[10.15.122.134]) by swe06.stablehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1qjMLV-0005RF-2w for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2023 16:16:02 +0000 Message-ID: <999b2ee0-b9fe-c1a4-3696-442e8d53b212@nyrell.se> Date: Thu, 21 Sep 2023 18:16:01 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Content-Language: en-US To: bug-gnu-emacs@gnu.org From: Mattias Nyrell Subject: 29.1; Window size properties not set immediately for window in new frame Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-AuthUser: mattias@nyrell.se Received-SPF: pass client-ip=23.83.209.51; envelope-from=mattias@nyrell.se; helo=dragonfly.birch.relay.mailchannels.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 21 Sep 2023 12:19:02 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Starting from emacs -Q, enter the following in *scratch*: (let ((f (make-frame '((fullscreen . maximized)))))   (select-frame-set-input-focus f)   (message "window-body-width=%s" (window-body-width))   (sleep-for 1)   (message "window-body-width=%s" (window-body-width)) ) Execute with C-x C-e Result: - A new frame is created. - The message "window-body-width=80" is printed - The message "window-body-width=190" is printed (exact value depending on screen size of course) Expected result: The first printed message should be the same as the second printed message. In GNU Emacs 29.1 (build 2, x86_64-w64-mingw32) of 2023-07-31 built on  AVALON Windowing system distributor 'Microsoft Corp.', version 10.0.22621 System Description: Microsoft Windows 10 Enterprise (v10.0.2009.22621.2134) Configured using:  'configure --with-modules --without-dbus --with-native-compilation=aot  --without-compress-install --with-tree-sitter CFLAGS=-O2' Configured features: ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XPM ZLIB (NATIVE_COMP present but libgccjit not available) 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   eldoc-mode: t   show-paren-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   line-number-mode: t   indent-tabs-mode: t   transient-mark-mode: t   auto-composition-mode: t   auto-encryption-mode: t   auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cl-extra shortdoc text-property-search help-fns radix-tree help-mode time-date subr-x cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine 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 composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 60177 5492)  (symbols 48 5492 0)  (strings 32 17131 1407)  (string-bytes 1 468887)  (vectors 16 11742)  (vector-slots 8 276217 11742)  (floats 8 81 21)  (intervals 56 303 0)  (buffers 984 12)) ------------=_1695380882-12568-1--