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

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

[elpa] master 6acbeb6 05/20: Use `avy-keys' for `avy-goto-subword-1'


From: Oleh Krehel
Subject: [elpa] master 6acbeb6 05/20: Use `avy-keys' for `avy-goto-subword-1'
Date: Sat, 09 May 2015 11:57:49 +0000

branch: master
commit 6acbeb6d263bb7b57fba99be2af7ca98c7796261
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    Use `avy-keys' for `avy-goto-subword-1'
    
    * avy-jump.el (avy-goto-subword-0): Update.
    
    Fixes #15
---
 avy-jump.el |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/avy-jump.el b/avy-jump.el
index eca101e..539b21b 100644
--- a/avy-jump.el
+++ b/avy-jump.el
@@ -338,7 +338,9 @@ When PREDICATE is non-nil it's a function of zero 
parameters that
 should return true."
   (interactive "P")
   (require 'subword)
-  (let ((avy-keys (number-sequence ?a ?z))
+  (let ((avy-keys (if predicate
+                      avy-keys
+                    (number-sequence ?a ?z)))
         (case-fold-search nil)
         candidates)
     (avy-dowindows arg



reply via email to

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