summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2020-04-14 08:38:00 +0300
committerEli Zaretskii <eliz@gnu.org>2020-04-14 08:38:00 +0300
commit5f36e21fe519fe98784d230dd65ca2af78444d14 (patch)
treebe57f0488214339124782b9d9ccba348a1dfafe2
parent13301d4266d26882f9fe7efe3046accd315d7c55 (diff)
downloademacs-5f36e21fe519fe98784d230dd65ca2af78444d14.tar.gz
Clarify the doc string of 'yank'
* lisp/simple.el (yank): Mention 'current-kill' in the doc string, so that people could find all the gory details of what is "the most recent kill" for this purpose. (Bug#40375)
-rw-r--r--lisp/simple.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index da9e04d16af..ea16d1400cc 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -5109,10 +5109,11 @@ property, in the way that `yank' does."
(defun yank (&optional arg)
"Reinsert (\"paste\") the last stretch of killed text.
-More precisely, reinsert the most recent kill, which is the
-stretch of killed text most recently killed OR yanked. Put point
-at the end, and set mark at the beginning without activating it.
-With just \\[universal-argument] as argument, put point at beginning, and mark at end.
+More precisely, reinsert the most recent kill, which is the stretch of
+text most recently killed OR yanked, as returned by `current-kill' (which
+see). Put point at the end, and set mark at the beginning without
+activating it. With just \\[universal-argument] as argument, put point
+at beginning, and mark at end.
With argument N, reinsert the Nth most recent kill.
This command honors the `yank-handled-properties' and