From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: jeff.rancier@softechnics.com (Jeffery B. Rancier) Newsgroups: gmane.emacs.help Subject: Re: Changing "open file" buffer handling Date: Wed, 05 Mar 2003 10:48:13 -0500 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <1159.130.237.161.117.1046862928.squirrel@www.dsv.su.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1046879469 9343 80.91.224.249 (5 Mar 2003 15:51:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 5 Mar 2003 15:51:09 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 05 16:51:03 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18qbAd-0002Py-00 for ; Wed, 05 Mar 2003 16:51:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18qbA0-0004d8-0A for gnu-help-gnu-emacs@m.gmane.org; Wed, 05 Mar 2003 10:50:24 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18qb9b-0004Mk-00 for help-gnu-emacs@gnu.org; Wed, 05 Mar 2003 10:49:59 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18qb9Z-0004Ib-00 for help-gnu-emacs@gnu.org; Wed, 05 Mar 2003 10:49:58 -0500 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18qb90-0003jU-00 for help-gnu-emacs@gnu.org; Wed, 05 Mar 2003 10:49:22 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18qb7Y-0002Bw-00 for ; Wed, 05 Mar 2003 16:47:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18qb7Q-0002B2-00 for ; Wed, 05 Mar 2003 16:47:44 +0100 Original-Lines: 30 Original-X-Complaints-To: usenet@main.gmane.org User-Agent: Gnus/5.090013 (Oort Gnus v0.13) Emacs/21.2 (i386-msvc-nt5.1.2600) Cancel-Lock: sha1:PPWDemncUFFZIwZ5xrQn8k1L9Sk= X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7352 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7352 Niclas Blomqvist 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