unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#42707: Mention antidote to accidental k in dired
@ 2020-08-04 12:56 積丹尼 Dan Jacobson
  2020-08-05  9:28 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: 積丹尼 Dan Jacobson @ 2020-08-04 12:56 UTC (permalink / raw)
  To: 42707

   k runs the command dired-do-kill-lines (found in dired-mode-map),
   which is an interactive autoloaded compiled Lisp function in
   ‘dired-aux.el’.

   It is bound to k.

   (dired-do-kill-lines &optional ARG FMT)

   Kill all marked lines (not the files).
   With a prefix argument, kill that many lines starting with the current line.
   (A negative argument kills backward.)
   If you use this command with a prefix argument to kill the line
   for a file that is a directory, which you have inserted in the
   Dired buffer as a subdirectory, then it deletes that subdirectory
   from the buffer as well.
   To kill an entire subdirectory (without killing its line in the
   parent directory), go to its directory header line and use this
   command with a prefix argument (the value does not matter).

That's great. Except many users will be reading this after accidentally
hitting k, and wondering what happened. So at the bottom mention the antidote.

"If you accidentally hit k, then do ... (Undo? Yank?) to recover."





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#42707: Mention antidote to accidental k in dired
  2020-08-04 12:56 bug#42707: Mention antidote to accidental k in dired 積丹尼 Dan Jacobson
@ 2020-08-05  9:28 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2020-08-05  9:28 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 42707

積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:

> That's great. Except many users will be reading this after accidentally
> hitting k, and wondering what happened. So at the bottom mention the antidote.
>
> "If you accidentally hit k, then do ... (Undo? Yank?) to recover."

I've now mentioned undo in the doc string in Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-05  9:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-04 12:56 bug#42707: Mention antidote to accidental k in dired 積丹尼 Dan Jacobson
2020-08-05  9:28 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).