From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.help Subject: Re: basic question: going back to dired Date: Tue, 22 Jul 2008 01:21:34 +0200 Message-ID: <874p6i258h.fsf@bzg.ath.cx> References: <4884DC7F.6060406@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1216682718 30678 80.91.229.12 (21 Jul 2008 23:25:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Jul 2008 23:25:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 22 01:26:06 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 1KL4lZ-0006Ep-Nj for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Jul 2008 01:26:06 +0200 Original-Received: from localhost ([127.0.0.1]:40047 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KL4kg-0000FY-HJ for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Jul 2008 19:25:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KL4hI-00072k-Te for help-gnu-emacs@gnu.org; Mon, 21 Jul 2008 19:21:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KL4hG-00071p-NF for help-gnu-emacs@gnu.org; Mon, 21 Jul 2008 19:21:40 -0400 Original-Received: from [199.232.76.173] (port=60735 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KL4hG-00071m-HL for help-gnu-emacs@gnu.org; Mon, 21 Jul 2008 19:21:38 -0400 Original-Received: from sp604003av.neufgp.fr ([84.96.92.124]:36135 helo=neuf-infra-smtp-out-sp604003av.neufgp.fr) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KL4hG-000309-98 for help-gnu-emacs@gnu.org; Mon, 21 Jul 2008 19:21:38 -0400 Original-Received: from neuf-infra-smtp-out-sp604001av.neufgp.fr ([10.110.56.120]) by neuf-infra-smtp-out-sp604003av.neufgp.fr with neuf telecom id sVGM1Z0052bdnoS03nMbnJ; Tue, 22 Jul 2008 01:21:35 +0200 Original-Received: from bzg.ath.cx ([79.94.49.81]) by neuf-infra-smtp-out-sp604001av.neufgp.fr with neuf telecom id snMa1Z0011l6S5301nMarT; Tue, 22 Jul 2008 01:21:34 +0200 In-Reply-To: <4884DC7F.6060406@gmail.com> (Ben Aurel's message of "Mon, 21 Jul 2008 20:59:11 +0200") User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:55777 Archived-At: Ben Aurel writes: > 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? Don't think in terms of "file". When editing a "file", you really edit a buffer* containing the content of the file. To "close" the file generally means to save the buffer and to kill the buffer. If you just want to "go back" to dired, you just need to switch back to the buffer containing the directory listing: C-x b RET If you want to "close the file", then first save the buffer with C-x C-s then kill the buffer with C-x k RET and you should be back to the buffer containing the directory listing. HTH, * Press `C-x C-e' after the closing parenthesis to jump to the info page describing the concept of "buffer" inside GNU Emacs: (info "(emacs)Buffers") -- Bastien