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 13:11:15 +0800 Message-ID: <87v9pv2230.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="253492"; 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 06:12:14 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 1imWIl-0013nC-5g for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Jan 2020 06:12:11 +0100 Original-Received: from localhost ([::1]:48476 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1imWIj-0000hc-NR for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Jan 2020 00:12:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37406) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1imWId-0000hV-Jl for bug-gnu-emacs@gnu.org; Wed, 01 Jan 2020 00:12:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1imWIc-00019Y-J9 for bug-gnu-emacs@gnu.org; Wed, 01 Jan 2020 00:12:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57726) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1imWIc-00018j-9z for bug-gnu-emacs@gnu.org; Wed, 01 Jan 2020 00:12:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1imWIc-0000Vq-59 for bug-gnu-emacs@gnu.org; Wed, 01 Jan 2020 00:12: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 05:12: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.15778554881919 (code B ref 38818); Wed, 01 Jan 2020 05:12:02 +0000 Original-Received: (at 38818) by debbugs.gnu.org; 1 Jan 2020 05:11:28 +0000 Original-Received: from localhost ([127.0.0.1]:35466 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imWI4-0000Ut-EV for submit@debbugs.gnu.org; Wed, 01 Jan 2020 00:11:28 -0500 Original-Received: from dog.birch.relay.mailchannels.net ([23.83.209.48]:49087) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imWI3-0000Uk-1x for 38818@debbugs.gnu.org; Wed, 01 Jan 2020 00:11:28 -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 C6F98501480; Wed, 1 Jan 2020 05:11:25 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a11.g.dreamhost.com (100-96-15-236.trex.outbound.svc.cluster.local [100.96.15.236]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 2D5D850173C; Wed, 1 Jan 2020 05:11:25 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from pdx1-sub0-mail-a11.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 05:11:25 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Trouble-Snatch: 051573ec3322082c_1577855485595_1045002330 X-MC-Loop-Signature: 1577855485595:1447347136 X-MC-Ingress-Time: 1577855485595 Original-Received: from pdx1-sub0-mail-a11.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a11.g.dreamhost.com (Postfix) with ESMTP id AC24980815; Tue, 31 Dec 2019 21:11:19 -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=w31Jz1gqIGqOYNWtind4GIP+hoQ=; b=GtlzB3+B2jSO5 ggzOg3MJ8WGwAUUqtMbTZQgaicVznuigYvCWnnrFX4cGBfjJJvDt3yLAhwFUMGKG CnOq3l+BbCi00LfjAF0Ms+lYr3AUdKa/RpNOueAEstmi2mT4m0c+hG8h7Al2tOpr KNMp7hVkMwCxMsNrgPk1gcAfKtbIaI= 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-a11.g.dreamhost.com (Postfix) with ESMTPSA id 0FAFC80CC7; Tue, 31 Dec 2019 21:11:18 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a11 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedufedrvdefkedgkeduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhffffkgggtsehttdertddttdejnecuhfhrohhmpejnnjjnucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqeenucfkphepvddvtddrudegtddrgedrudekleenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepjhhiuggrnhhnihdrohhrghdpihhnvghtpedvvddtrddugedtrdegrddukeelpdhrvghtuhhrnhdqphgrthhhpeeprehuthhfqdekreeureehiehmpfehnfhiheehsgevkeerpecuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqpdhmrghilhhfrhhomhepjhhiuggrnhhnihesjhhiuggrnhhnihdrohhrghdpnhhrtghpthhtohepfeekkedukeesuggvsggsuhhgshdrghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt 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:174016 Archived-At: >> (add-hook >> 'dired-load-hook >> (function >> (lambda () >> (load "dired-x") >> (define-key dired-mode-map "q" 'kill-current-buffer) >> ))) >>>>> "MH" == Michael Heerdegen writes: MH> Slightly better version: MH> (add-hook MH> 'dired-load-hook MH> (defun my-dired-load-hook-fun () MH> (require 'dired-x) MH> (define-key dired-mode-map "q" #'kill-current-buffer))) MH> -- a named function can't accidentally be added multiple times to a MH> hook, lambda already self-quotes, and `require' doesn't unnecessarily MH> reload a file. OK! (info "(emacs) Hooks") just mentions the old fashioned way. Maybe someone should update it. OK maybe it is intentionally still full of those lambdas, for small jobs.