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

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

[elpa] master 1b9f061 055/110: avy.el (avy-action-kill-stay): Adjust for


From: Oleh Krehel
Subject: [elpa] master 1b9f061 055/110: avy.el (avy-action-kill-stay): Adjust for avy-goto-line
Date: Sat, 11 May 2019 10:15:43 -0400 (EDT)

branch: master
commit 1b9f061d270abf3dfd76446e0eaf020521c79e0c
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    avy.el (avy-action-kill-stay): Adjust for avy-goto-line
    
    Re #191
---
 avy.el | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/avy.el b/avy.el
index dbacdca..88bfc3d 100644
--- a/avy.el
+++ b/avy.el
@@ -669,11 +669,12 @@ Set `avy-style' according to COMMMAND as well."
 (defun avy-action-kill-stay (pt)
   "Kill sexp at PT."
   (save-excursion
-   (goto-char pt)
-   (forward-sexp)
-   (kill-region pt (point))
-   (just-one-space))
-  (message "Killed: %s" (current-kill 0)))
+    (goto-char pt)
+    (avy-forward-item)
+    (kill-region pt (point))
+    (just-one-space))
+  (message "Killed: %s" (current-kill 0))
+  t)
 
 (defun avy-action-teleport (pt)
   "Kill sexp starting on PT and yank into the current location."



reply via email to

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