From: Kevin Rodgers <kevinr@ihs.com>
Subject: Re: list-directory's current directory different than that it displays
Date: Wed, 19 Jun 2002 11:30:42 -0600 [thread overview]
Message-ID: <3D10BFC2.3060608@ihs.com> (raw)
In-Reply-To: 878z5cjcle.fsf@jidanni.org
Dan Jacobson wrote:
> I still don't get why the (little used, by me at least) list-directory
> command doesn't change the current directory of its buffer to the
> directory that it is displaying. I mean what more relevant current
> directory do you want for that buffer?
This has been in list-directory since at least 19.34:
(with-output-to-temp-buffer "*Directory*"
(buffer-disable-undo standard-output)
(princ "Directory ")
(princ dirname)
(terpri)
(save-excursion
(set-buffer "*Directory*")
(setq default-directory
(if (file-directory-p dirname)
(file-name-as-directory dirname)
(file-name-directory dirname)))
(let ((wildcard (not (file-directory-p dirname))))
(insert-directory dirname switches wildcard (not wildcard)))))
> At least then C-x C-d / t m p <return> C-x o C-x d <return>
> would get us where we wanted when we realize we typed C-x C-d instead
> of C-x d.
Works for me.
--
Kevin Rodgers <kevinr@ihs.com>
next prev parent reply other threads:[~2002-06-19 17:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-19 1:12 list-directory's current directory different than that it displays Dan Jacobson
2002-06-19 17:30 ` Kevin Rodgers [this message]
2002-06-20 14:35 ` Richard Stallman
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=3D10BFC2.3060608@ihs.com \
--to=kevinr@ihs.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.