mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-18 18:05:07 +00:00
* lisp/simple.el (read-from-kill-ring): Call current-kill to prefill kill-ring
This commit is contained in:
parent
6355fa5183
commit
367727b0f6
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user