emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/evil-iedit-state 2d252e199a 24/32: Override yank handlers


From: ELPA Syncer
Subject: [nongnu] elpa/evil-iedit-state 2d252e199a 24/32: Override yank handlers when pasting
Date: Mon, 12 Dec 2022 20:59:26 -0500 (EST)

branch: elpa/evil-iedit-state
commit 2d252e199ae72c9ce889b4cc176b9d118c8b5b00
Author: Miciah <miciah.masters@gmail.com>
Commit: Sylvain Benner <sylvain.benner@gmail.com>

    Override yank handlers when pasting
    
    The pasted text may specify a yank handler, e.g., evil-yank-line-handler,
    that inserts the text outside of the current overlay.  It is necessary to
    override any such yank handler in order to ensure that the text replaces
    the current overlay and gets propagated to the other overlays.
    
    * evil-iedit-state.el (evil-iedit-state/paste-replace): Specify
    insert-for-yank as the yank handler when calling evil-paste-before.
---
 evil-iedit-state.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/evil-iedit-state.el b/evil-iedit-state.el
index 9c16185dfe..8770063484 100644
--- a/evil-iedit-state.el
+++ b/evil-iedit-state.el
@@ -152,7 +152,7 @@ If INTERACTIVE is non-nil then COMMAND is called 
interactively."
   "Replace the selection with the yanked text."
   (interactive "P")
   (when kill-ring (iedit-delete-occurrences))
-  (evil-paste-before count))
+  (evil-paste-before count nil '(#'insert-as-yank)))
 
 ;; expand-region integration, add an "e" command
 ;;;###autoload



reply via email to

[Prev in Thread] Current Thread [Next in Thread]