From unknown Tue Jun 17 20:21:37 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#36523 <36523@debbugs.gnu.org> To: bug#36523 <36523@debbugs.gnu.org> Subject: Status: 26.1; Image files are sometimes not found Reply-To: bug#36523 <36523@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:21:37 +0000 retitle 36523 26.1; Image files are sometimes not found reassign 36523 emacs submitter 36523 Markus Triska severity 36523 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 06 08:16:26 2019 Received: (at submit) by debbugs.gnu.org; 6 Jul 2019 12:16:26 +0000 Received: from localhost ([127.0.0.1]:54336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hjjc9-00043Z-3M for submit@debbugs.gnu.org; Sat, 06 Jul 2019 08:16:25 -0400 Received: from lists.gnu.org ([209.51.188.17]:57306) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hjjc5-00040G-3k for submit@debbugs.gnu.org; Sat, 06 Jul 2019 08:16:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36348) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hjjc4-0005oP-5i for bug-gnu-emacs@gnu.org; Sat, 06 Jul 2019 08:16:21 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hjjc3-0000me-78 for bug-gnu-emacs@gnu.org; Sat, 06 Jul 2019 08:16:20 -0400 Received: from metalevel.at ([78.46.218.83]:34864) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hjjc3-0000ci-0Z for bug-gnu-emacs@gnu.org; Sat, 06 Jul 2019 08:16:19 -0400 Received: from mt-mbpro.localdomain (localhost.localdomain [127.0.0.1]) by metalevel.at (Postfix) with ESMTP id 62F68A01FB for ; Sat, 6 Jul 2019 14:16:03 +0200 (CEST) Received: by mt-mbpro.local (Postfix, from userid 501) id 1CC04F5925A; Sat, 6 Jul 2019 14:16:03 +0200 (CEST) From: Markus Triska To: bug-gnu-emacs@gnu.org Subject: 26.1; Image files are sometimes not found Date: Sat, 06 Jul 2019 14:16:03 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 78.46.218.83 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit 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 (---) When I start Emacs with "$ emacs -Q", the description of the variable data-directory reads: data-directory is a variable defined in =E2=80=98C source code=E2=80=99. Its value is "/opt/local/share/emacs/26.1/etc/" In addition, I see that there is a file right.xpm with path: /opt/local/share/emacs/26.1/etc/images/custom/right.xpm Also, the info manual states in 39.17.2 Image Descriptors: =E2=80=98:file FILE=E2=80=99 This says to load the image from file FILE. If FILE is not an absolute file name, it is expanded in =E2=80=98data-directory=E2=80= =99. 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? Thank you and all the best, Markus In GNU Emacs 26.1 (build 1, x86_64-apple-darwin15.3.0, X toolkit, Xaw scrol= l bars) of 2018-09-22 built on laptop Windowing system distributor 'The X.Org Foundation', version 11.0.11502000 Configured features: XPM JPEG TIFF GIF PNG GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 MODULES THREADS LCMS2 From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 06 08:33:54 2019 Received: (at 36523-done) by debbugs.gnu.org; 6 Jul 2019 12:33:54 +0000 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 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 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 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 Date: Sat, 06 Jul 2019 15:33:38 +0300 Message-Id: <83ftnj8hr1.fsf@gnu.org> From: Eli Zaretskii To: Markus Triska In-reply-to: (message from Markus Triska on Sat, 06 Jul 2019 14:16:03 +0200) Subject: Re: bug#36523: 26.1; Image files are sometimes not found References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36523-done Cc: 36523-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 (---) > 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. From unknown Tue Jun 17 20:21:37 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 04 Aug 2019 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator