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#52931: 27.1; image-size sometimes yields a wrong image size in pixels Date: Thu, 29 Sep 2022 16:28:57 +0300 Message-ID: <83mtaifgx2.fsf@gnu.org> References: <87mtak20cg.fsf@gnus.org> <877d1ntns2.fsf@metalevel.at> <877d1nxvbw.fsf@gnus.org> <87k05n2wxa.fsf@metalevel.at> <83zgejgx0m.fsf@gnu.org> <87o7uzfhti.fsf@metalevel.at> <83v8p7gvny.fsf@gnu.org> <87bkqzclcb.fsf@metalevel.at> <83tu4qhh09.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31303"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, triska@metalevel.at, 52931@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 29 17:23:34 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 1odvNt-0007va-4n for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Sep 2022 17:23:33 +0200 Original-Received: from localhost ([::1]:37486 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odvNr-0006oN-CK for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Sep 2022 11:23:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odtc3-00056y-SQ for bug-gnu-emacs@gnu.org; Thu, 29 Sep 2022 09:30:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37595) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1odtc3-0003qQ-JO for bug-gnu-emacs@gnu.org; Thu, 29 Sep 2022 09:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1odtc3-0004tn-8U for bug-gnu-emacs@gnu.org; Thu, 29 Sep 2022 09:30:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Sep 2022 13:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52931 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 52931-submit@debbugs.gnu.org id=B52931.166445815218745 (code B ref 52931); Thu, 29 Sep 2022 13:30:03 +0000 Original-Received: (at 52931) by debbugs.gnu.org; 29 Sep 2022 13:29:12 +0000 Original-Received: from localhost ([127.0.0.1]:36673 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odtbE-0004sG-0Y for submit@debbugs.gnu.org; Thu, 29 Sep 2022 09:29:12 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odtbB-0004s3-Q2 for 52931@debbugs.gnu.org; Thu, 29 Sep 2022 09:29:10 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35562) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odtb5-0003jo-GW; Thu, 29 Sep 2022 09:29: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=ztSO8XwHBBAmyQDjDU/T/so08Dr6CsI1i8mHX7tWjjk=; b=oXMkoMvyV05YAKLlONxz WIVTNf5WQ5yZbk+s2u5W2JucFRH5eqsjxaoAAT8jfXWBph0NMqCrZ4RQ9YOhZigm601VfNYXr5CMQ GPd+nSV8iS8EHKNSLLcNMXjr1JcNqzzgD9o/ZAxC4IJ+Wgn2pRyPzOVulGBh08wtgXwbmNJzxj8ak mHgMjS1F9pHLp/mh588vX3/Bm6MS2Abu+ONPKeNPOWBBDmXyRptYWMHDplvJSoaaBwLqTUXw0ddn/ hyfmk9HwMIjTl0WvGPzJ/VOZt7+7l/c/FSgeyvLpbhuV+JKooM8K2FqmS3nc/PtjjgwDFyJtynght +ECJbYGacgHQiA==; Original-Received: from [87.69.77.57] (port=4928 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 1odtb4-00062p-FX; Thu, 29 Sep 2022 09:29:03 -0400 In-Reply-To: (message from Stefan Kangas on Thu, 29 Sep 2022 06:15:01 -0700) 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:243907 Archived-At: > From: Stefan Kangas > Date: Thu, 29 Sep 2022 06:15:01 -0700 > Cc: larsi@gnus.org, 52931@debbugs.gnu.org > > Eli Zaretskii writes: > > > No, it doesn't do that. It looks up relative file names along > > image-load-path. The reason is that image files are many times > > displayed on the tool bar and the fringes, which are not specific to a > > buffer, and thus we cannot possibly ensure default-directory is always > > set to the right place when we display those. > > The `create-image' docstring says: > > Image file names that are not absolute are searched for in the > "images" sub-directory of ‘data-directory’ and > ‘x-bitmap-file-path’ (in that order). > > Does this need clarifying? I added a more accurate sentence there: "Create an image from FILE-OR-DATA. FILE-OR-DATA is an image file name or image data. If it is a relative file name, the function will look for it along `image-load-path'. But I failed to remove the one you mention, which is somewhat misleading. Now done.