From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jay Bingham" Newsgroups: gmane.emacs.help Subject: RE: dired in one buffer Date: Wed, 16 Aug 2006 16:19:50 GMT Message-ID: <20060816.092016.26494.579978@webmail51.nyc.untd.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1155745359 1272 80.91.229.2 (16 Aug 2006 16:22:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 16 Aug 2006 16:22:39 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 16 18:22:35 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GDO9X-00073X-Fr for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Aug 2006 18:22:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GDO9W-0001ZQ-JS for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Aug 2006 12:21:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GDO9K-0001Y2-Cw for help-gnu-emacs@gnu.org; Wed, 16 Aug 2006 12:21:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GDO9I-0001V0-9W for help-gnu-emacs@gnu.org; Wed, 16 Aug 2006 12:21:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GDO9H-0001Ug-Vp for help-gnu-emacs@gnu.org; Wed, 16 Aug 2006 12:21:44 -0400 Original-Received: from [64.136.20.164] (helo=outbound-mail.nyc.untd.com) by monty-python.gnu.org with smtp (Exim 4.52) id 1GDOFa-000563-A3 for help-gnu-emacs@gnu.org; Wed, 16 Aug 2006 12:28:14 -0400 Original-Received: from webmail51.nyc.untd.com (webmail51.nyc.untd.com [10.141.27.191]) by smtpout04.nyc.untd.com with SMTP id AABCQGTQ2A5X3J4S for (sender ); Wed, 16 Aug 2006 09:20:40 -0700 (PDT) X-UNTD-OriginStamp: 9wMZ3l1+FG1mkmIQefRR9m5aYb8QGUX9NBzq/0IihP6SMP7eCVRCQITNwImPHAMG Original-Received: (from b.jc-emacs@netzero.com) by webmail51.nyc.untd.com (jqueuemail) id LXWKLBP7; Wed, 16 Aug 2006 09:20:16 PDT Original-Received: from [15.235.153.107] by webmail51.nyc.untd.com with HTTP: Wed, 16 Aug 2006 16:19:50 GMT X-Originating-IP: [15.235.153.107] Original-To: help-gnu-emacs@gnu.org X-Mailer: Webmail Version 4.0 Content-Disposition: inline X-ContentStamp: 12:6:697245724 X-MAIL-INFO: 524530814da9354d2031a9b495b485044969541504740c290c742d152121151d1581b1 X-UNTD-Peer-Info: 10.141.27.191|webmail51.nyc.untd.com|webmail51.nyc.untd.com|b.jc-emacs@netzero.com X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:36719 Archived-At: On Wednesday, August 16, 2006 4:53 AM henning wrote: > I would like dired to stay in the same buffer, e.g. when I go up > one directory I would like the present buffer to just clear and > be replaced by the content in the parent folder instead of > opening a new buffer. If find it quite annoying to have a stack > of dired buffers open after looking around in the directory > tree... Does anyone know how to implement that? Or am I missing > something? Missing something. :-) The functionality is mostly already present in emacs. The function = dired-find-alternate-file (normally assigned to the 'a' key in dired- mode) replaces the current buffer (the dired buffer) with the = file/directory that the cursor is on. When the function exits the = dired buffer containing the original directory has been killed and = the active buffer contains the file/directory that was opened. = Going down in the directory tree is intuitive. Going up the = directory tree requires that the cursor be on the '..' entry in the = dired buffer. If you are used to using the '^' to navigate up the directory tree = then you will either need to retrain yourself or will need to do some = elisp programing to attach the functionality to the '^' key. I = looked at the function dired-up-directory (in dired.el) which is = associated with the '^' key, it does not look like it would be too = difficult to create your own function based on it and assign it to = the '^' key in dired mode. Good luck, __ J_) C_)ingham = _____________________________________________________________________ PrivatePhone - FREE telephone number & voicemail. A number so private, you can make it public. http://www.privatephone.com