From unknown Sat Aug 09 18:40:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36523: 26.1; Image files are sometimes not found Resent-From: Markus Triska Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Jul 2019 12:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36523 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 36523@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.156241538615678 (code B ref -1); Sat, 06 Jul 2019 12:17:02 +0000 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 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-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 unknown Sat Aug 09 18:40:44 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Markus Triska Subject: bug#36523: closed (Re: bug#36523: 26.1; Image files are sometimes not found) Message-ID: References: <83ftnj8hr1.fsf@gnu.org> X-Gnu-PR-Message: they-closed 36523 X-Gnu-PR-Package: emacs Reply-To: 36523@debbugs.gnu.org Date: Sat, 06 Jul 2019 12:34:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1562416442-21022-1" This is a multi-part message in MIME format... ------------=_1562416442-21022-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #36523: 26.1; Image files are sometimes not found which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 36523@debbugs.gnu.org. --=20 36523: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D36523 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1562416442-21022-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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. ------------=_1562416442-21022-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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 ------------=_1562416442-21022-1--