all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sacha Chua <sacha@sachachua.com>
To: Stefan Kangas <stefankangas@gmail.com>, emacs-devel@gnu.org
Subject: Re: [PATCH] image-dired-show-all-from-dir: reuse dired's default directory
Date: Thu, 02 Jan 2025 17:17:13 -0500	[thread overview]
Message-ID: <87v7uw97yu.fsf@sachachua.com> (raw)
In-Reply-To: <CADwFkmmC=_9b__6j+Fhm4D+o1QYPh93pBPYNf-Ua+ndjWROLBw@mail.gmail.com>

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.

>> -  (let ((files (dired-get-marked-files nil nil nil t)))
>> +  (let ((files (dired-get-marked-files nil nil nil t))
>> +        (dired-default-directory default-directory))

I'm on GNU Emacs 31.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version
3.24.41, cairo version 1.18.0) of 2025-01-02.

Sacha



  reply	other threads:[~2025-01-02 22:17 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 [this message]
2025-01-03  0:23     ` Stefan Kangas
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

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

  git send-email \
    --in-reply-to=87v7uw97yu.fsf@sachachua.com \
    --to=sacha@sachachua.com \
    --cc=emacs-devel@gnu.org \
    --cc=stefankangas@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.