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

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

[elpa] master 30067dd 14/78: avy.el (avy-action-goto): Don't push mark w


From: Oleh Krehel
Subject: [elpa] master 30067dd 14/78: avy.el (avy-action-goto): Don't push mark when region is active
Date: Sat, 23 Jan 2016 13:59:42 +0000

branch: master
commit 30067ddc09eefddae4ece065f60cc52a55ed76d7
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    avy.el (avy-action-goto): Don't push mark when region is active
    
    * avy.el (avy-action-goto): When the region is active, the user probably
      doesn't want to move the mark.
    
    Fixes #84
---
 avy.el |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/avy.el b/avy.el
index b73e372..ae4c59b 100644
--- a/avy.el
+++ b/avy.el
@@ -452,7 +452,9 @@ Set `avy-style' according to COMMMAND as well."
 
 (defun avy-action-goto (pt)
   "Goto PT."
-  (unless (= pt (point)) (push-mark))
+  (unless (or (= pt (point))
+              (region-active-p))
+    (push-mark))
   (goto-char pt))
 
 (defun avy-action-mark (pt)



reply via email to

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