From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#37630: 27.0.50; image-mode-fit-frame doesn't Date: Wed, 23 Mar 2022 16:29:25 +0200 Message-ID: <83a6dgeo8q.fsf@gnu.org> References: <83v9t34kxv.fsf@gnu.org> <877e5hb3yo.fsf@gnus.org> <01C6CC54-E926-470A-9736-41498FC7A25F@gnu.org> <871rvp86ks.fsf@gnus.org> <83sgo4zfnf.fsf@gnu.org> <0d475083-0f51-ed60-95f4-970fa67df241@gmx.at> <871rvn2q8v.fsf@gnus.org> <831rvnxm1s.fsf@gnu.org> <87d0f71aiv.fsf@gnus.org> <83y2xvw5i1.fsf@gnu.org> <87v9sx68id.fsf@gnus.org> <871qysajss.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15822"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 37630@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 23 15:53:23 2022 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 1nX2MV-0003yp-9M for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Mar 2022 15:53:23 +0100 Original-Received: from localhost ([::1]:48534 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nX2MT-0004IY-OM for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Mar 2022 10:53:21 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41826) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nX2FO-0001Iv-0n for bug-gnu-emacs@gnu.org; Wed, 23 Mar 2022 10:46:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51549) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nX1zu-0003Yi-OR for bug-gnu-emacs@gnu.org; Wed, 23 Mar 2022 10:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nX1zu-00022t-Ie for bug-gnu-emacs@gnu.org; Wed, 23 Mar 2022 10:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Mar 2022 14:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37630 X-GNU-PR-Package: emacs Original-Received: via spool by 37630-submit@debbugs.gnu.org id=B37630.16480457827814 (code B ref 37630); Wed, 23 Mar 2022 14:30:02 +0000 Original-Received: (at 37630) by debbugs.gnu.org; 23 Mar 2022 14:29:42 +0000 Original-Received: from localhost ([127.0.0.1]:45446 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nX1za-00021y-JJ for submit@debbugs.gnu.org; Wed, 23 Mar 2022 10:29:42 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33314) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nX1zZ-00021k-Lg for 37630@debbugs.gnu.org; Wed, 23 Mar 2022 10:29:42 -0400 Original-Received: from [2001:470:142:3::e] (port=37486 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nX1zU-0003Ve-DK; Wed, 23 Mar 2022 10:29:36 -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=0iuA0i5InDZ+wFyu3HxAc/ghSrwpWWSU8ECJEh4ycv4=; b=Y8InIFkSvGXE tHqeQgm0Vdr8LySiRygA2O4hZKosmjcMpjgiw5R979kKzWQ9AkOGR3dPcOAQow8m3KBG15fjpiMEd 13wX2CC8a5aFq3sXphdkbAZ0kK8jgIsHPX5DUOdUHD0uob+EOiZiuSDNJZQTwOw5DcoOrh6V9pFsb 47R4wjBvbb0lQY/orJpEftnmpdeEKBqIaKnT04Qm9Khr/pVWM30s6mwGRdzEGYlDjv8D9weeQqYUr AjC4f+RXYn2A+4K1o3FAy7GS7uKgte67qLRj04HeG8sqIdSxkd9RASWOGeUqOW6jKJ2iHV/vh/9sL FiVbOtFCaGVYZTYMDZL1ZQ==; Original-Received: from [87.69.77.57] (port=1273 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nX1zT-0007e2-QH; Wed, 23 Mar 2022 10:29:36 -0400 In-Reply-To: <871qysajss.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 23 Mar 2022 14:18:59 +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:228819 Archived-At: > From: Lars Ingebrigtsen > Cc: rudalics@gmx.at, 37630@debbugs.gnu.org > Date: Wed, 23 Mar 2022 14:18:59 +0100 > > Lars Ingebrigtsen writes: > > > Yes, we could compute based on pixels, and then resize based on how many > > lines that would be. But I wonder whether the mapping from pixels to > > lines would run into the same problems as just counting lines does. > > I've now rewritten the command to use pixels, and that seems to fix the > issue on a couple of configurations here, at least. Thanks, it's much better now. Although the second image-mode-fit-frame doesn't restore the original dimensions: I get a frame that is 2 lines too high wrt the original one.