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

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

[elpa] externals/counsel 7500296 1/2: Support counsel-yank-pop in delete


From: Basil L. Contovounesios
Subject: [elpa] externals/counsel 7500296 1/2: Support counsel-yank-pop in delete-selection-mode
Date: Sat, 13 Mar 2021 06:17:12 -0500 (EST)

branch: externals/counsel
commit 75002963859101003436c84d1d3a85f9ea5f89fc
Author: Trust me I am a doctor <pillule@riseup.net>
Commit: Basil L. Contovounesios <contovob@tcd.ie>

    Support counsel-yank-pop in delete-selection-mode
    
    As the name suggests, delete-selection-mode deletes the active
    region before some commands, notably yank commands.
    
    This commit makes it aware of counsel-yank-pop without any further
    action from the user (#2826).
    
    * counsel.el (counsel-yank-pop): Set delete-selection property.
    
    Copyright-paperwork-exempt: yes
---
 counsel.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/counsel.el b/counsel.el
index e0c3510..ef43c0b 100644
--- a/counsel.el
+++ b/counsel.el
@@ -4570,6 +4570,8 @@ Note: Duplicate elements of `kill-ring' are always 
deleted."
               :action #'counsel-yank-pop-action
               :caller 'counsel-yank-pop)))
 
+(put #'counsel-yank-pop 'delete-selection 'yank)
+
 (ivy-configure 'counsel-yank-pop
   :height 5
   :format-fn #'counsel--yank-pop-format-function)



reply via email to

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