* list-directory's current directory different than that it displays
@ 2002-06-19 1:12 Dan Jacobson
2002-06-19 17:30 ` Kevin Rodgers
2002-06-20 14:35 ` Richard Stallman
0 siblings, 2 replies; 3+ 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] 3+ 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
2002-06-20 14:35 ` Richard Stallman
1 sibling, 0 replies; 3+ 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] 3+ 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
@ 2002-06-20 14:35 ` Richard Stallman
1 sibling, 0 replies; 3+ messages in thread
From: Richard Stallman @ 2002-06-20 14:35 UTC (permalink / raw)
Cc: emacs-devel
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.
In the latest CVS sources, it does. I changed it in March.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-06-20 14:35 UTC | newest]
Thread overview: 3+ 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
2002-06-20 14:35 ` Richard Stallman
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.