From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#36523: 26.1; Image files are sometimes not found Date: Sat, 06 Jul 2019 15:33:38 +0300 Message-ID: <83ftnj8hr1.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="50771"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36523-done@debbugs.gnu.org To: Markus Triska Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 06 14:49:27 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hjk85-000D1Z-5N for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Jul 2019 14:49:25 +0200 Original-Received: from localhost ([::1]:59470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hjjuZ-0000IN-3Q for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Jul 2019 08:35:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39720) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hjjtS-0000Hm-3v for bug-gnu-emacs@gnu.org; Sat, 06 Jul 2019 08:34:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hjjtI-00019G-4S for bug-gnu-emacs@gnu.org; Sat, 06 Jul 2019 08:34:11 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45535) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hjjtC-000176-7b for bug-gnu-emacs@gnu.org; Sat, 06 Jul 2019 08:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hjjtC-0005TA-4E for bug-gnu-emacs@gnu.org; Sat, 06 Jul 2019 08:34:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Jul 2019 12:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 36523 X-GNU-PR-Package: emacs Mail-Followup-To: 36523@debbugs.gnu.org, eliz@gnu.org, triska@metalevel.at Original-Received: via spool by 36523-done@debbugs.gnu.org id=D36523.156241643421005 (code D ref 36523); Sat, 06 Jul 2019 12:34:01 +0000 Original-Received: (at 36523-done) by debbugs.gnu.org; 6 Jul 2019 12:33:54 +0000 Original-Received: from localhost ([127.0.0.1]:54355 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hjjt3-0005Sj-RN for submit@debbugs.gnu.org; Sat, 06 Jul 2019 08:33:54 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hjjt1-0005SV-Vb for 36523-done@debbugs.gnu.org; Sat, 06 Jul 2019 08:33:52 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53906) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hjjsv-0000uU-Go; Sat, 06 Jul 2019 08:33:45 -0400 Original-Received: from [176.228.60.248] (port=3314 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hjjsu-0005Xj-Id; Sat, 06 Jul 2019 08:33:45 -0400 In-reply-to: (message from Markus Triska on Sat, 06 Jul 2019 14:16:03 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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: 209.51.188.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:162211 Archived-At: > From: Markus Triska > Date: Sat, 06 Jul 2019 14:16:03 +0200 > > > Also, the info manual states in 39.17.2 Image Descriptors: > > ‘:file FILE’ > This says to load the image from file FILE. If FILE is not an > absolute file name, it is expanded in ‘data-directory’. > > Hence, I expect the following form to insert right.xpm, which is located > in images/custom/right.xpm relative to data-directory: > > (insert-image '(image :type xpm > :file "images/custom/right.xpm" > :ascent center)) > > However, when I evaluate the form with C-x C-e, I see a blank rectangle > at the end of the form instead of the intended image. > > In contrast, changing the form to: > > (insert-image '(image :type xpm > :file "custom/right.xpm" > :ascent center)) > > inserts the intended image. Please note that "images/" had to be dropped > from the path, even though it belongs to the path of the file. > > Could you please consider changing the documentation or implementation > to match the observed behaviour? Fixed, thanks.