From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Amos Bird Newsgroups: gmane.emacs.help Subject: Re: how can I get back to the dired buffer after closing the file buffer opened by dired? Date: Mon, 30 Oct 2017 09:41:23 +0800 Message-ID: <87bmkp8la4.fsf@gmail.com> References: <87efpn8daj.fsf@gmail.com> <20171029213712.5laqiflnkfsefr4s@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: blaine.gmane.org 1509327724 13935 195.159.176.226 (30 Oct 2017 01:42:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 30 Oct 2017 01:42:04 +0000 (UTC) User-Agent: mu4e 0.9.19; emacs 25.3.1 Cc: "help-gnu-emacs@gnu.org" To: Anast Gramm Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 30 02:41:59 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8z5M-0002CQ-7Z for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Oct 2017 02:41:52 +0100 Original-Received: from localhost ([::1]:38317 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8z5R-0002JM-V4 for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Oct 2017 21:41:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49504) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8z51-0002JE-57 for help-gnu-emacs@gnu.org; Sun, 29 Oct 2017 21:41:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e8z4z-0002wy-Af for help-gnu-emacs@gnu.org; Sun, 29 Oct 2017 21:41:31 -0400 Original-Received: from mail-pf0-x22a.google.com ([2607:f8b0:400e:c00::22a]:44497) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e8z4z-0002vS-3X for help-gnu-emacs@gnu.org; Sun, 29 Oct 2017 21:41:29 -0400 Original-Received: by mail-pf0-x22a.google.com with SMTP id x7so9648914pfa.1 for ; Sun, 29 Oct 2017 18:41:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=i/gVu0DY9wCNVJwwnRUdoDNxNTyVusOLWKPRZjn2EF0=; b=hd+6j1dW+p41b403besEhHw0qQTTPujP0Ge5R1MLFXugMg7ElX7VzYnqBNdZycBsbv +g0qssqJcRR7hxDE2zrdlGDXrlYrF010CpBAjQqzjWLwIruWkIhj/Dv/DSsFO8YNNZxf 1ZahfoNAPZtcYJr/trYLi1OL+N9+VveubFUGieIpblPpH+emCxftvFy2qOSU/ycRo+FP fjUw0pve2RZxjtqX42BsX2Ns/pFDSNG7zU+ZsfLkUZXRTfwX8k8F/04Hu9gqFwkLluar CiZvQ5lRCCUe0hFgL70YNZ5s6zlUaXOJoZFQG48vNIAs7LtzXarr+hLqX168jwVgLk7F XGAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=i/gVu0DY9wCNVJwwnRUdoDNxNTyVusOLWKPRZjn2EF0=; b=D2FXP8Zs1pSTBy5+n1C+sC3pZ2o+u4bU0TC9MKDol07ozC+CIw/4yyO8X64CTmzXvE bPTyz3c+o6Zfqf9cHJwWixdawNh64+Z5qx5GmxZVIXwfSYFSXlV5xKrjJojV9Js1oz6+ rjH4TGGwCBTKlevHn8Aw+Ye48f5/OUfiAwdghyBhQ1moj3ZWQ1hzlu2Msk8+O5BSGhYF 4OTpD7Q6Ib0kiovu/SPZHAfQsFNJqH3rI1f4L1eTFhwSyJiYWiFBOWQ5HqkpBVU8Q0LH fKIE/l3TJOh/4CKKoRyK6aFjvf7zqQM0fYrfHSVroVXjLzAQtNAjPFDnsv4OjntMNpyK qs2A== X-Gm-Message-State: AMCzsaXfojVew0nVXS2fYZoITQtnhW3DfLjx55LIAv8R2NtA8d87k42r TypCej4vSHoQ/jB7dbB9aD4= X-Google-Smtp-Source: ABhQp+Srjzo1NgAmMEvUywvOpagBsHNgVSxuVxUp64/ccdV1LmFjRN0zU0aFSqCpW0uw6OkjQhaOXQ== X-Received: by 10.101.68.69 with SMTP id e5mr6299061pgq.282.1509327686520; Sun, 29 Oct 2017 18:41:26 -0700 (PDT) Original-Received: from localhost ([2604:180:3:28::c542]) by smtp.gmail.com with ESMTPSA id p71sm26225537pfl.56.2017.10.29.18.41.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 29 Oct 2017 18:41:25 -0700 (PDT) In-reply-to: <20171029213712.5laqiflnkfsefr4s@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::22a X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:114695 Archived-At: Hi Anast, I tried opening my files via `a` which runs dired-find-alternate-file. However it still doesn't bring back the dired buffer when closing. regards, Anast Gramm writes: > On 171029 00:09:24, Amos Bird wrote: >> >> Hi, >> >> When opening a file in dired via RET and close, emacs ends up >> in a buffer >> other than previous dired >> buffer. How can I get back to the dired buffer after closing >> the file buffer >> opened by dired? > > Hey, > > When you open something using RET it replaces the current dired > buffer you are on. > Try opening the file up with 'a' (the default). > This opens a new buffer with your selection. > > So: > RET replaces current dired buffer with selection > a opens a new buffer with selection -- Amos Bird amosbird@gmail.com