From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#38818: Dired: mention deleting buffers, not just windows Date: Sat, 04 Jan 2020 08:26:10 -0500 Message-ID: <871rsfcpzh.fsf@gmail.com> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="42829"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: Michael Heerdegen , 38818@debbugs.gnu.org To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 04 14:27: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 1injST-000B2v-N5 for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Jan 2020 14:27:13 +0100 Original-Received: from localhost ([::1]:33992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1injSS-0002N6-Jc for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Jan 2020 08:27:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49257) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1injSM-0002N0-KW for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2020 08:27:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1injSI-0006Tw-3E for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2020 08:27:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36571) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1injSH-0006TI-VO for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2020 08:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1injSH-0001WY-Rz for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2020 08:27:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2020 13:27: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.15781443795798 (code B ref 38818); Sat, 04 Jan 2020 13:27:01 +0000 Original-Received: (at 38818) by debbugs.gnu.org; 4 Jan 2020 13:26:19 +0000 Original-Received: from localhost ([127.0.0.1]:42544 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1injRb-0001VR-5D for submit@debbugs.gnu.org; Sat, 04 Jan 2020 08:26:19 -0500 Original-Received: from mail-qv1-f46.google.com ([209.85.219.46]:37936) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1injRZ-0001VC-6d for 38818@debbugs.gnu.org; Sat, 04 Jan 2020 08:26:17 -0500 Original-Received: by mail-qv1-f46.google.com with SMTP id t6so17322195qvs.5 for <38818@debbugs.gnu.org>; Sat, 04 Jan 2020 05:26:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=Y2LKsUH/SKKMRhmh8/ueuzAtFfzuI1HCeSWPqKHP0eI=; b=Yp+ZBxSSuNsDF+iwuwYTRU6P9fh1MqM2Z1TKSQvx9Dh2jfRK5YJ/E2QuPmCAACvceh GzNKQ50YrHYg+Rr/cMXZWLZb+T48kkeKydJFK7iZUruD9jS4KKEIC9CYD2cKzjShUVIs oTtaAGtQnpDA1BwHjGyZrnU/eG6poNrW2LqaBL1n5/51C9RNmBNlp0K6TKx11076xuld vg+ZAAwAnDmaBWIl3SMsR6igktM5hg2mua1GOICTig+lUV9fefAf1v3WjzqkNZathdN0 QIwbtEM/rQX6LpP3Vwah7pfIX4LvenzZWfKcqakPdahD4NEzf6zy6R0NfGo7HAC5Yb1y yfvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=Y2LKsUH/SKKMRhmh8/ueuzAtFfzuI1HCeSWPqKHP0eI=; b=VVXGPezejAGoh1s907LJ2xrriNIwtnDc8sV8F6sDz2bzoTvUkjZ3vX6p7fY1F0tLbA XrjMnZSOS8Rqibzh1DlmwIC0FX52qX+a/TWQKx//mFKhFYDAy/QEK4vxWMdvtLcjtCnZ 0bDzBBkf9pOXVyn6apdWiusJhOemSm4pNSfyLDkUeegCyj5m1MH4sD8fepP8giHq/Zo7 IHYxMQpI8j8zCjC5tJhqBb4NnAzfnkAbsKDAD+lbV6sWD/weSBk8QYo+rJlSHfsYYpkA h9egizGwhpXQGs8dsRrZzTLJ4dx5DIN5ETmnMf9Dga1aS0AsgQMa2+j6hhEcVM/ti/xw V83Q== X-Gm-Message-State: APjAAAW96sIRAKP8WLEu7HhVhI5plWY3rHmJwyiiH5PdDWPJVtAUcSuK TBC+oESpJnwhYQyKY/6ruQaKo5vH X-Google-Smtp-Source: APXvYqzmhbx7cnhIqdtY+H5V+Mv0LY9fgFhf9UAK4VSzWxKVReuI7l1c6u2aJpqki4/9i3S8ESdSwA== X-Received: by 2002:a0c:bf0b:: with SMTP id m11mr72732340qvi.63.1578144371589; Sat, 04 Jan 2020 05:26:11 -0800 (PST) Original-Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.gmail.com with ESMTPSA id b24sm11457026qtp.82.2020.01.04.05.26.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 04 Jan 2020 05:26:11 -0800 (PST) In-Reply-To: <875zhv3jyr.5.fsf@jidanni.org> ("=?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson"'s message of "Wed, 01 Jan 2020 11:59:40 +0800") 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:174158 Archived-At: =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson writes: > OK, I'll use > (add-hook > 'dired-load-hook > (function > (lambda () > (load "dired-x") > (define-key dired-mode-map "q" 'kill-current-buffer) > ))) > until something more fancy is invented. With regards to all the subsequent lambda vs defun stuff, you could also use with-eval-after-load instead of dired-load-hook: (with-eval-after-load 'dired (require 'dired-x) (define-key dired-mode-map "q" 'kill-current-buffer)) Actually, this does also use a lambda behind the scenes and has similar drawbacks, but for some reason it doesn't seem to bother people as much.