From: Stefan Kangas <stefankangas@gmail.com>
To: Sacha Chua <sacha@sachachua.com>, emacs-devel@gnu.org
Subject: Re: [PATCH] image-dired-show-all-from-dir: reuse dired's default directory
Date: Thu, 2 Jan 2025 18:23:06 -0600 [thread overview]
Message-ID: <CADwFkm=U_HJ4ptHVtUJmEx_GrsE7rRucxmoCX=Z6wW4JaKyoTQ@mail.gmail.com> (raw)
In-Reply-To: <87v7uw97yu.fsf@sachachua.com>
Sacha Chua <sacha@sachachua.com> writes:
> Stefan Kangas <stefankangas@gmail.com> writes:
>
> Hello, Stefan!
>
>> Thanks for the patch, and interesting use case.
>> I can't find the variable `dired-default-directory`, but I do see that a
>> function of that name was removed in Emacs 27. Where did you find that
>> variable, and which version of Emacs are you running? Could it be that
>> this variable is from a third-party package?
>
> Oh! That's a coincidence, I hadn't known that was used before. We can
> call it temp-default-directory or something else if you prefer. I called it
> dired-default-directory because I just needed to temporarily store the
> default-directory from the dired buffer so that we could copy it to the
> image-dired-thumbnail-buffer, which is why it's a let-bound variable.
Ah, my bad. I got confused and thought it was supposed to be a special
variable.
I think your patch looks basically good, but let me take a proper look
before installing it.
next prev parent reply other threads:[~2025-01-03 0:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-02 20:00 [PATCH] image-dired-show-all-from-dir: reuse dired's default directory Sacha Chua
2025-01-02 20:22 ` Stefan Kangas
2025-01-02 22:17 ` Sacha Chua
2025-01-03 0:23 ` Stefan Kangas [this message]
2025-01-07 7:21 ` Stefan Kangas
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADwFkm=U_HJ4ptHVtUJmEx_GrsE7rRucxmoCX=Z6wW4JaKyoTQ@mail.gmail.com' \
--to=stefankangas@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=sacha@sachachua.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).