]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/simple.el (read-from-kill-ring): Call current-kill to prefill kill-ring
authorJuri Linkov <juri@linkov.net>
Sun, 29 Nov 2020 19:54:53 +0000 (21:54 +0200)
committerJuri Linkov <juri@linkov.net>
Sun, 29 Nov 2020 19:54:53 +0000 (21:54 +0200)
lisp/simple.el

index 93fda7de8a17b3ea557216151b72b7ab93363f2d..7d0c229cad060380ee83708e2ba920d3de2957a6 100644 (file)
@@ -5459,6 +5459,8 @@ With ARG, rotate that many kills forward (or backward, if negative)."
 (defvar read-from-kill-ring-history)
 (defun read-from-kill-ring ()
   "Read a string from `kill-ring' using completion and minibuffer history."
+  ;; `current-kill' updates `kill-ring' with a possible interprogram-paste
+  (current-kill 0)
   (let* ((history-add-new-input nil)
          (ellipsis (if (char-displayable-p ?…) "…" "..."))
          ;; Remove keymaps from text properties of copied string,