GNU bug report logs - #36523
26.1; Image files are sometimes not found

Previous Next

Package: emacs;

Reported by: Markus Triska <triska <at> metalevel.at>

Date: Sat, 6 Jul 2019 12:17:02 UTC

Severity: normal

Found in version 26.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 36523 in the body.
You can then email your comments to 36523 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#36523; Package emacs. (Sat, 06 Jul 2019 12:17:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Markus Triska <triska <at> metalevel.at>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 06 Jul 2019 12:17:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Markus Triska <triska <at> metalevel.at>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.1; Image files are sometimes not found
Date: Sat, 06 Jul 2019 14:16:03 +0200
When I start Emacs with "$ emacs -Q", the description of the variable
data-directory reads:

    data-directory is a variable defined in ‘C source code’.
    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:

   ‘: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?

Thank you and all the best,
Markus


In GNU Emacs 26.1 (build 1, x86_64-apple-darwin15.3.0, X toolkit, Xaw scroll 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





Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 06 Jul 2019 12:34:01 GMT) Full text and rfc822 format available.

Notification sent to Markus Triska <triska <at> metalevel.at>:
bug acknowledged by developer. (Sat, 06 Jul 2019 12:34:02 GMT) Full text and rfc822 format available.

Message #10 received at 36523-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Markus Triska <triska <at> metalevel.at>
Cc: 36523-done <at> debbugs.gnu.org
Subject: Re: bug#36523: 26.1; Image files are sometimes not found
Date: Sat, 06 Jul 2019 15:33:38 +0300
> From: Markus Triska <triska <at> metalevel.at>
> 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.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 04 Aug 2019 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 259 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.