[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changing "open file" buffer handling
From: |
Jeffery B. Rancier |
Subject: |
Re: Changing "open file" buffer handling |
Date: |
Wed, 05 Mar 2003 10:48:13 -0500 |
User-agent: |
Gnus/5.090013 (Oort Gnus v0.13) Emacs/21.2 (i386-msvc-nt5.1.2600) |
Niclas Blomqvist <niclas-b@dsv.su.se> writes:
> When I use C-x C-f to open a directory buffer and then use Enter key to
> navigate through directories until I finally find the desired file, Emacs
> leaves me with a buffer list containing every directory buffer I have
> visited on the way. Is there a setting that can be changed so that walking
> through directories updates the current buffer until I reach my file
> instead of creating a new buffer for every new directory?
>
> Thx
> //Niclas Blomquist
--
I recently asked the same thing, the answer was to use the following:
,----[ C-h f dired-maybe-insert-subdir RET ]
| dired-maybe-insert-subdir is an interactive autoloaded Lisp function in
`dired-aux'.
| [Arg list not available until function definition is loaded.]
|
| Insert this subdirectory into the same dired buffer.
| If it is already present, just move to it (type M-x dired-do-redisplay to
refresh),
| else inserts it at its natural place (as `ls -lR' would have done).
| With a prefix arg, you may edit the ls switches used for this listing.
| You can add `R' to the switches to expand the whole tree starting at
| this subdirectory.
| This function takes some pains to conform to `ls -lR' output.
`----
Jeff