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: Sat, 04 Jan 2020 07:31:22 +0800 Message-ID: <8736cwrub9.5.fsf@jidanni.org> References: <87imlxlrrv.5.fsf@jidanni.org> <87mub85ri0.fsf@web.de> <87h81f3our.5.fsf@jidanni.org> <87v9pv28qu.fsf@web.de> <87d0c33mdx.5.fsf@jidanni.org> <87o8vnq1ph.fsf@web.de> <875zhv3jyr.5.fsf@jidanni.org> <87eewjydyg.fsf@web.de> <87sgkw60fi.5.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="128392"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Michael Heerdegen , 38818@debbugs.gnu.org To: Pieter van Oostrum Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 04 00:32:10 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 1inWQL-000XF1-Qa for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Jan 2020 00:32:10 +0100 Original-Received: from localhost ([::1]:57892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inWQK-00073o-MG for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Jan 2020 18:32:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57638) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inWQF-00073h-A5 for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2020 18:32:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1inWQE-0001iY-8s for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2020 18:32:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36276) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1inWQD-0001iJ-UZ for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2020 18:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1inWQD-00028n-P2 for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2020 18:32:01 -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: Fri, 03 Jan 2020 23:32:01 +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.15780942978197 (code B ref 38818); Fri, 03 Jan 2020 23:32:01 +0000 Original-Received: (at 38818) by debbugs.gnu.org; 3 Jan 2020 23:31:37 +0000 Original-Received: from localhost ([127.0.0.1]:42249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inWPp-000289-97 for submit@debbugs.gnu.org; Fri, 03 Jan 2020 18:31:37 -0500 Original-Received: from butterfly.birch.relay.mailchannels.net ([23.83.209.27]:18702) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inWPn-000280-2n for 38818@debbugs.gnu.org; Fri, 03 Jan 2020 18:31:36 -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 BDDC82C1633; Fri, 3 Jan 2020 23:31:33 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a36.g.dreamhost.com (100-96-83-39.trex.outbound.svc.cluster.local [100.96.83.39]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 278C32C1D20; Fri, 3 Jan 2020 23:31:33 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from pdx1-sub0-mail-a36.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); Fri, 03 Jan 2020 23:31:33 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Keen-Exultant: 36cd38af562485a4_1578094293565_1409476597 X-MC-Loop-Signature: 1578094293565:998138297 X-MC-Ingress-Time: 1578094293564 Original-Received: from pdx1-sub0-mail-a36.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a36.g.dreamhost.com (Postfix) with ESMTP id 482DEA11B2; Fri, 3 Jan 2020 15:31:28 -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=IAIcCUlbTukwHMwvlb5FoOUuuNg=; b=ZsgTZ2/8vdIf5 U/5t4YPtohVg94uuiXzDuLbglTSiVvkwszf5kizQ3j6VC5WUIhHgKptR9wwUXcm3 rQTAO70wbx6e3JnrBXWlLHpNVgnS9UcbkoGIwR39Eq+K4WfLVUtxaPBQ9VkQ1yvk yelpnlTJKrICaPijEh7OR2e1kxT/kk= Original-Received: from jidanni.org (114-26-43-157.dynamic-ip.hinet.net [114.26.43.157]) (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-a36.g.dreamhost.com (Postfix) with ESMTPSA id 780A3A11B0; Fri, 3 Jan 2020 15:31:26 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a36 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:174137 Archived-At: >>>>> "PvO" == Pieter van Oostrum writes: PvO> Well, this is how I do it. PvO> (defun my-dired-load-hook-fun () PvO> (require 'dired-x) PvO> (define-key dired-mode-map "q" #'kill-current-buffer)) PvO> (add-hook 'dired-load-hook 'my-dired-load-hook-fun) OK, but this does not seem environmentally friendly, leaving a function (that I hereby promise not to use a second time,) lying around. Well I guess I could undefun it... But one never can find out how (Bug!: (info "(eintr) Change a defun") etc. Info pages never say how!) Plus seems a little bulky to do a defun ... undefun each time in a .emacs file.