Subject: bug#38818: Dired: mention deleting buffers, not just windows

From: 積丹尼 Dan Jacobson <[email-masked]>
Date: Sat, 04 Jan 2020 07:31:22 +0800

>>>>> "PvO" == Pieter van Oostrum <[email-masked]> 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.