branch: master
commit 72afecbc291746fe2d576a9d6e420a89cd37104c
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>

    avy.el (avy-push-mark): Bring back push-mark
    
    Fixes abo-abo/ace-window#41
---
 avy.el |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/avy.el b/avy.el
index 44cecbc..ea0cb8d 100644
--- a/avy.el
+++ b/avy.el
@@ -1053,7 +1053,9 @@ The window scope is determined by `avy-all-windows' (ARG 
negates it)."
 (defun avy-push-mark ()
   "Store the current point and window."
   (ring-insert avy-ring
-               (cons (point) (selected-window))))
+               (cons (point) (selected-window)))
+  (unless (region-active-p)
+    (push-mark)))
 
 (defun avy-pop-mark ()
   "Jump back to the last location of `avy-push-mark'."

Reply via email to