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

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

[elpa] master 72afecb 25/78: avy.el (avy-push-mark): Bring back push-mar


From: Oleh Krehel
Subject: [elpa] master 72afecb 25/78: avy.el (avy-push-mark): Bring back push-mark
Date: Sat, 23 Jan 2016 13:59:49 +0000

branch: master
commit 72afecbc291746fe2d576a9d6e420a89cd37104c
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    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

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