* list-directory's current directory different than that it displays
@ 2002-06-19 1:12 Dan Jacobson
2002-06-19 17:30 ` Kevin Rodgers
0 siblings, 1 reply; 2+ messages in thread
From: Dan Jacobson @ 2002-06-19 1:12 UTC (permalink / raw)
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?
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.
--
http://jidanni.org/ Taiwan(04)25854780
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: list-directory's current directory different than that it displays
2002-06-19 1:12 list-directory's current directory different than that it displays Dan Jacobson
@ 2002-06-19 17:30 ` Kevin Rodgers
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2002-06-19 17:30 UTC (permalink / raw)
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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-06-19 17:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-19 1:12 list-directory's current directory different than that it displays Dan Jacobson
2002-06-19 17:30 ` Kevin Rodgers
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).