all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefankangas@gmail.com>
To: Thierry Volpiatto <thierry.volpiatto@gmail.com>
Cc: 18632@debbugs.gnu.org
Subject: bug#18632: 24.3.94; image-dired fail when `image-dired-dir' doesn't exist
Date: Thu, 15 Sep 2022 17:39:33 -0700	[thread overview]
Message-ID: <CADwFkm=HJbihoDyNK0ZrPRWp4vkpExXBkUdk+hC7J2f7RXa34Q@mail.gmail.com> (raw)
In-Reply-To: <CADwFkm=9aQNqiuZ_oT2GoP7k7DU45j+cvjBAgRDyE-4YVhrHnA@mail.gmail.com> (Stefan Kangas's message of "Fri, 30 Aug 2019 00:32:52 +0200")

close 18632 29.1
thanks

Stefan Kangas <stefan@marxist.se> writes:

> Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
>
>>> If `image-dired-dir' doesn't exists, image-dired fail with
>>> something like "could not resize image" with no indications on what is happening.
>>> IOW image-dired should create its directory when this one doesn't
>>> exists, or at least send a helpful message to notify user he have first
>>> to create manually this directory.
>>
>> diff --git a/lisp/image-dired.el b/lisp/image-dired.el
>> index 114deab..01f88c2 100644
>> --- a/lisp/image-dired.el
>> +++ b/lisp/image-dired.el
>> @@ -1800,7 +1800,8 @@ should feel snappy enough.
>>
>>  If optional argument ORIGINAL-SIZE is non-nil, display image in its
>>  original size."
>> -  (let ((new-file (expand-file-name image-dired-temp-image-file))
>> +  (let ((new-file (expand-file-name image-dired-temp-image-file
>> +                                    (image-dired-dir)))
>>          width height command ret
>>          (image-type 'jpeg))
>>      (setq file (expand-file-name file))
>
> I can reproduce this on current master.  The problem happens when the
> user removes the image-dired-dir directory (normally
> ~/.emacs.d/image-dired).

I can no longer reproduce this on current master.  I think this was
fixed when we rewrote `image-dired-display-image-mode' to be based on
`image-mode' instead of using external programs to convert the picture.

If you are still seeing this issue, please reply to this email (use
"Reply to all" in your email client) and we can reopen the bug report.





      parent reply	other threads:[~2022-09-16  0:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-05 13:31 bug#18632: 24.3.94; image-dired fail when `image-dired-dir' doesn't exist Thierry Volpiatto
2014-10-05 14:12 ` Thierry Volpiatto
2019-08-29 22:32 ` Stefan Kangas
2019-08-30  5:34   ` Thierry Volpiatto
2019-08-30 10:39     ` Stefan Kangas
2019-08-30  6:31   ` Eli Zaretskii
2019-08-30 10:41     ` Stefan Kangas
2019-09-26 16:37       ` Lars Ingebrigtsen
2022-09-16  0:39   ` Stefan Kangas [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADwFkm=HJbihoDyNK0ZrPRWp4vkpExXBkUdk+hC7J2f7RXa34Q@mail.gmail.com' \
    --to=stefankangas@gmail.com \
    --cc=18632@debbugs.gnu.org \
    --cc=thierry.volpiatto@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.