From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Ehud Karni" Newsgroups: gmane.emacs.help Subject: Re: Changing open file buffer handling Date: Wed, 5 Mar 2003 18:34:44 +0200 Organization: Mivtach-Simon Insurance agencies Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <200303051634.h25GYiR6004487@beta.mvs.co.il> References: <1159.130.237.161.117.1046862928.squirrel@www.dsv.su.se> Reply-To: ehud@unix.mvs.co.il NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-8 Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1046882663 25220 80.91.224.249 (5 Mar 2003 16:44:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 5 Mar 2003 16:44:23 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 05 17:44:22 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 18qc0D-0006Yb-00 for ; Wed, 05 Mar 2003 17:44:22 +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 18qbyg-0003dy-08 for gnu-help-gnu-emacs@m.gmane.org; Wed, 05 Mar 2003 11:42:46 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18qbyN-0003cd-00 for help-gnu-emacs@gnu.org; Wed, 05 Mar 2003 11:42:27 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18qbul-00029q-00 for help-gnu-emacs@gnu.org; Wed, 05 Mar 2003 11:38:43 -0500 Original-Received: from unix.simonwiesel.co.il ([192.114.178.12] helo=unix.mvs.co.il) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18qbrL-00012M-00 for help-gnu-emacs@gnu.org; Wed, 05 Mar 2003 11:35:11 -0500 Original-Received: from beta.mvs.co.il (beta [10.253.0.3]) by unix.mvs.co.il (8.11.6/8.11.6) with ESMTP id h25GYkd19972; Wed, 5 Mar 2003 18:34:46 +0200 Original-Received: from beta.mvs.co.il (localhost [127.0.0.1]) by beta.mvs.co.il (8.12.5/8.12.5) with ESMTP id h25GYken004504; Wed, 5 Mar 2003 18:34:46 +0200 Original-Received: (from ehud@localhost) by beta.mvs.co.il (8.12.5/8.12.5/Submit) id h25GYiR6004487; Wed, 5 Mar 2003 18:34:44 +0200 X-Authentication-Warning: beta.mvs.co.il: ehud set sender to ehud@unix.mvs.co.il using -f Original-To: "Niclas Blomqvist" , " Jeffery B. Rancier" In-reply-to: <1159.130.237.161.117.1046862928.squirrel@www.dsv.su.se> (message from Niclas Blomqvist on Wed, 5 Mar 2003 12:15:28 +0100 (MET)) X-Mailer: Emacs 21.2.91.3 rmail (send-msg 1.108) 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:7358 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7358 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 5 Mar 2003 12:15:28 +0100 (MET), Niclas Blomqvist wrote: > > 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? You can press `i' to add the subdirectory in the current buffer as was suggested by Jeffery B. Rancier , or you can write few elisp lines and have a "real" subdirectory replacement. Add this to your .emacs: (defun dired-find-alternate-file "In dired, visit this file or directory instead of dired buffer." (interactive "P") (find-alternate-file (dired-get-filename))) (eval-after-load "dired" '(define-key dired-mode-map "a" 'dired-find-alternate-file)) Now, when you press `a' you'll edit the file or brows the subdirectory instead of the parent directory. Ehud. - -- Ehud Karni Tel: +972-3-7966-561 /"\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ mailto:ehud@unix.mvs.co.il Better Safe Than Sorry -----BEGIN PGP SIGNATURE----- Comment: use http://www.keyserver.net/ to get my key (and others) iD8DBQE+ZickLFvTvpjqOY0RAhgCAJ4/2vSbzCdQGt0w0oEEEZoR4QE2ogCfdAcV Wty33ABAte7FgMQZtU4oa3c= =QPO5 -----END PGP SIGNATURE-----