From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#38818: Dired: mention deleting buffers, not just windows Date: Wed, 01 Jan 2020 10:14:04 +0800 Message-ID: <87h81f3our.5.fsf@jidanni.org> References: <87imlxlrrv.5.fsf@jidanni.org> <87mub85ri0.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="118622"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38818@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 01 03:15:15 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1imTXW-000UhG-Tw for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Jan 2020 03:15:15 +0100 Original-Received: from localhost ([::1]:47674 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1imTXV-0002KZ-LS for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Dec 2019 21:15:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54201) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1imTXL-0002KF-SN for bug-gnu-emacs@gnu.org; Tue, 31 Dec 2019 21:15:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1imTXK-0005EV-P3 for bug-gnu-emacs@gnu.org; Tue, 31 Dec 2019 21:15:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57623) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1imTXK-0005Ca-G6 for bug-gnu-emacs@gnu.org; Tue, 31 Dec 2019 21:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1imTXK-0004CW-Ad for bug-gnu-emacs@gnu.org; Tue, 31 Dec 2019 21:15:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87imlxlrrv.5.fsf@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Jan 2020 02:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38818 X-GNU-PR-Package: emacs Original-Received: via spool by 38818-submit@debbugs.gnu.org id=B38818.157784485816085 (code B ref 38818); Wed, 01 Jan 2020 02:15:02 +0000 Original-Received: (at 38818) by debbugs.gnu.org; 1 Jan 2020 02:14:18 +0000 Original-Received: from localhost ([127.0.0.1]:35363 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imTWc-0004BM-0Z for submit@debbugs.gnu.org; Tue, 31 Dec 2019 21:14:18 -0500 Original-Received: from brown.elm.relay.mailchannels.net ([23.83.212.23]:2199) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imTWZ-0004BD-HU for 38818@debbugs.gnu.org; Tue, 31 Dec 2019 21:14:16 -0500 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 3B73A141B63; Wed, 1 Jan 2020 02:14:14 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a50.g.dreamhost.com (100-96-92-234.trex.outbound.svc.cluster.local [100.96.92.234]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 7B028140FE0; Wed, 1 Jan 2020 02:14:13 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from pdx1-sub0-mail-a50.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Wed, 01 Jan 2020 02:14:14 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Thread-Bitter: 417a081156edab85_1577844853916_889984490 X-MC-Loop-Signature: 1577844853916:157459120 X-MC-Ingress-Time: 1577844853916 Original-Received: from pdx1-sub0-mail-a50.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a50.g.dreamhost.com (Postfix) with ESMTP id F41D7804EA; Tue, 31 Dec 2019 18:14:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=eTA96AEM8WETRf7OjvD4918gRow=; b=DhCvivGQGBqc/ ESUadcFHNzF9UVULcGt2rHNgzuli0zGDmiit8xzbPLJ2Gj+6dGzHTzjimpozPeji f9D3lHvWOh6NOxGKs41R8/73Tl32J6s2dASMp4+uiwUS6VT2zrwBWBa0kcLrNYA5 k3jHBs7+kps/q++btFpyRgLEGBFJjs= Original-Received: from jidanni.org (220-140-4-189.dynamic-ip.hinet.net [220.140.4.189]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a50.g.dreamhost.com (Postfix) with ESMTPSA id 79A44803AA; Tue, 31 Dec 2019 18:14:09 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a50 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedufedrvdefkedggeegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhffffkgggtsehttdertddttdejnecuhfhrohhmpejnnjjnucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqeenucfkphepvddvtddrudegtddrgedrudekleenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepjhhiuggrnhhnihdrohhrghdpihhnvghtpedvvddtrddugedtrdegrddukeelpdhrvghtuhhrnhdqphgrthhhpeeprehuthhfqdekreeureehiehmpfehnfhiheehsgevkeerpecuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqpdhmrghilhhfrhhomhepjhhiuggrnhhnihesjhhiuggrnhhnihdrohhrghdpnhhrtghpthhtoheprhhuuggrlhhitghssehgmhigrdgrthenucevlhhushhtvghrufhiiigvpedt X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:173998 Archived-At: >>>>> "MH" == Michael Heerdegen writes: MH> doesn't `kill-buffer-and-window' (C-x 4 0) already do what you want? Actually C-x k runs the command kill-buffer is good enough perhaps. Anyway the user, in dired, uses lots of v's and q's, to browse a tree. The v's go in, and the q's go out. After the day is finished, the files are all gone from the buffer list, but the directories all remain. So q when in a directory should do the same as q in (file) view mode, which is View-quit. So the q runs the command quit-window (found in dired-mode-map) in dired-mode-map is the culprit. So quit-window doesn't need to be changed at all. Instead q in dired-mode-map needs a new binding. OK, in dired, M-x View-quit does nothing. Makes sense, we are not in view-mode. So dired's q should be mapped to kill-buffer instead... (Except kill-buffer asks the user which buffer. So a new function is needed, with no asking.) Anyway this all could be controlled by a new variable: dired-keep-directorys-around-upon-quitting-it t: current behaviour (bury buffer) nil: kill buffer ask: ask upon each q what to do.