From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#17876: 24.3; Incorrect frame resize Date: Fri, 04 Dec 2020 12:46:37 +0100 Message-ID: <87blf9iyjm.fsf@gnus.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10800"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 17876@debbugs.gnu.org To: penthief Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 04 12:47:46 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kl9Yv-0002gi-Jc for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Dec 2020 12:47:45 +0100 Original-Received: from localhost ([::1]:45026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kl9Yu-00084P-KO for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Dec 2020 06:47:44 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46142) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kl9YE-0007jN-P9 for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2020 06:47:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59820) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kl9YE-00086d-Go for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2020 06:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kl9YE-0004us-Ch for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2020 06:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Dec 2020 11:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17876 X-GNU-PR-Package: emacs Original-Received: via spool by 17876-submit@debbugs.gnu.org id=B17876.160708241418482 (code B ref 17876); Fri, 04 Dec 2020 11:47:02 +0000 Original-Received: (at 17876) by debbugs.gnu.org; 4 Dec 2020 11:46:54 +0000 Original-Received: from localhost ([127.0.0.1]:43130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kl9Y6-0004nm-6u for submit@debbugs.gnu.org; Fri, 04 Dec 2020 06:46:54 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:58362) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kl9Y1-0004fN-1O for 17876@debbugs.gnu.org; Fri, 04 Dec 2020 06:46:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: 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=5ItQDwoAX3zTFL9/v40ES7M4YYvL025+G4iOqXDRWhg=; b=qhqp3ngTNl5j1qdenoP2n4SkIG SKYWumIJ6h9T0xO4Z3D31r9cEu+/vTc8qYuj+3B4aTcghHo0Rwzf14Zv7cHe6d9WCWghV3H+Klj4Z P7SPIuooEUWPIvRCXcz2qiHoVBZJfcwqqPKWWxfjksJeQhXFxx9Gon2aNcgNODR32Z1Q=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kl9Xq-0008B2-QS; Fri, 04 Dec 2020 12:46:42 +0100 X-Now-Playing: The Matthew Herbert Big Band's _The State Between Us (1)_: "Be Still" In-Reply-To: (penthief@sdf.org's message of "Sun, 29 Jun 2014 15:50:54 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:194982 Archived-At: penthief writes: > When setting the a font on a frame after a resize, there is an apparent > race condition that more often than not, causes the frame height > and/or width to be reset to an incorrect value. > > This behaviour also occurs on 24.3.92. > > 1. Create a file bug-frame-resize.el with the following contents > (assuming that Courier and Monaco are present on the system). > > (setq -last-used-font nil) > (setq -target-font-1 "Courier") > (setq -target-font-2 "Monaco") > (setq -target-height 5) > (setq -target-width 5) > > (defun bug-frame-resize () > (interactive) > (with-selected-frame (make-frame) > (set-frame-width (selected-frame) -target-width) > (set-frame-height (selected-frame) -target-height) > (let ((target-font (if (equal -last-used-font -target-font-1) > -target-font-2 > -target-font-1))) > (setq -last-used-font target-font) > (set-frame-font target-font)))) > > 2. Start emacs > > $ /usr/bin/emacs24-x -Q -l bug-frame-resize.el > > 3. Type "M-x bug-frame-resize" four or five times. > > The frames appear with the correct size briefly, but then resize after > a split second. On this machine this usually results one of the height > or width is incorrect on each of the created frames. (This bug report unfortunately got no response at the time.) I tried reproducing this in Emacs 28 on Debian/bullseye, but was unable to. All the Monaco frames have the exact same width/height, and so do all the Courier frames. Do you still see this issue in more recent Emacs versions? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no