avy.el (avy-push-mark): Bring back push-mark

Fixes abo-abo/ace-window#41
This commit is contained in:
Oleh Krehel 2015-08-21 20:46:03 +02:00
parent 53decea669
commit 72afecbc29

4
avy.el
View File

@ -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'."