From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Colin S. Miller" Newsgroups: gmane.emacs.help Subject: Re: basic question: going back to dired Date: Sat, 26 Jul 2008 14:06:26 +0100 Organization: SunSITE.dk - Supporting Open source Message-ID: <488b214c$0$90274$14726298@news.sunsite.dk> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1217079768 7935 80.91.229.12 (26 Jul 2008 13:42:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 26 Jul 2008 13:42:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 26 15:43:35 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KMk3V-0008K6-UP for geh-help-gnu-emacs@m.gmane.org; Sat, 26 Jul 2008 15:43:30 +0200 Original-Received: from localhost ([127.0.0.1]:45294 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KMk2c-0005BI-7o for geh-help-gnu-emacs@m.gmane.org; Sat, 26 Jul 2008 09:42:34 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!goblin1!goblin.stu.neva.ru!uio.no!news.banetele.no!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail User-Agent: Icedove 1.5.0.14eol (X11/20080509) Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 41 Original-NNTP-Posting-Host: 62.56.76.120 Original-X-Trace: news.sunsite.dk DXC=R4haoM9bSF?@@_Mk5OIoD3YSB=nbEKnk; jL0kO3l6od>G1[Bg<0aH50\VT\m5_SIb6U_42Df:PaK8TcL2h5ahoT?kF_>m>CYcV?E5`7UlP312?N`5_bifi 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:55965 Archived-At: Ben Aurel wrote: > hi > This is my first post here, so I hope this is the right place for asking > beginner questions. > > My question is simple: When I list some files in dired mode I select one > file to edit. Now how can I close this file and go back to dired without > closing emacs? > > thanks > > ben > > > Ben, C-x k RET will close the current file C-x C-j will open the dired on the directory containing the current file. If dired is already open but not visible for that directory, then the dired buffer is made visible. This will make emacs swap to dired, but the current file will remain open. Pressing C-x b will allow you to swap to it. In dired 'g' will force dired to reread the directory if it has changed. Emacs allows you to have multiple files open at once. Unlike most editors Emacs does not allocate a frame (child window in other editors' terminology). Instead you create the frames you require and then display the buffers (files) you wish to view at present in them. The undisplayed buffers will keep their contents until you explicitly kill (close) them. HTH, Colin S. Miller -- Replace the obvious in my email address with the first three letters of the hostname to reply.