Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
counsel.el (counsel-yank-pop): Liken to yank-pop
The command yank-pop does too much under the bonnet to ever hope to emulate, so use it directly. This respects and updates various internals, most noticeably kill-ring-yank-pointer, thus allowing consecutive calls to yank to work. See https://emacs.stackexchange.com/q/37351/15748. (counsel--yank-pop-position): New function. (counsel-yank-pop-action): Use yank-pop. (counsel-yank-pop): Do The Right Thing w.r.t. point and mark regardless of whether last-command was a yank. Adopt interactive-spec of yank-pop and preselect candidate accordingly. Abort on empty/blank kill-ring. Fixes #1190 Fixes #1356
- Loading branch information
1 parent
4ea65fc
commit 50aa561
Showing
1 changed file
with
32 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters