[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master a975c87: Clarify yank-pop doc string
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master a975c87: Clarify yank-pop doc string |
Date: |
Sat, 27 Jul 2019 07:15:17 -0400 (EDT) |
branch: master
commit a975c8783160255139ed7f17997e0926afc908ff
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Clarify yank-pop doc string
* lisp/simple.el (yank-pop): Mention `kill-ring' to make it more
clear what the command is doing (bug#25196).
---
lisp/simple.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/lisp/simple.el b/lisp/simple.el
index e33709e..742d6cb 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -4972,10 +4972,11 @@ Normally set from the UNDO element of a yank-handler;
see `insert-for-yank'.")
(defun yank-pop (&optional arg)
"Replace just-yanked stretch of killed text with a different stretch.
-This command is allowed only immediately after a `yank' or a `yank-pop'.
-At such a time, the region contains a stretch of reinserted
-previously-killed text. `yank-pop' deletes that text and inserts in its
-place a different stretch of killed text.
+This command is allowed only immediately after a `yank' or a
+`yank-pop'. At such a time, the region contains a stretch of
+reinserted previously-killed text. `yank-pop' deletes that text
+and inserts in its place a different stretch of killed text by
+traversing the value of the `kill-ring' variable.
With no argument, the previous kill is inserted.
With argument N, insert the Nth previous kill.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master a975c87: Clarify yank-pop doc string,
Lars Ingebrigtsen <=