From 72afecbc291746fe2d576a9d6e420a89cd37104c Mon Sep 17 00:00:00 2001 From: Oleh Krehel Date: Fri, 21 Aug 2015 20:46:03 +0200 Subject: [PATCH] avy.el (avy-push-mark): Bring back push-mark Fixes abo-abo/ace-window#41 --- avy.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'."