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

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

[elpa] master ca92a08 09/17: avy-jump.el (avi-goto-word-1): Count some s


From: Oleh Krehel
Subject: [elpa] master ca92a08 09/17: avy-jump.el (avi-goto-word-1): Count some syms as words
Date: Fri, 08 May 2015 13:43:41 +0000

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

    avy-jump.el (avi-goto-word-1): Count some syms as words
    
    * avy-jump.el (avi-goto-word-1): Update.
    
    Fixes #38
---
 avy-jump.el |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/avy-jump.el b/avy-jump.el
index 9a39880..c1c03ab 100644
--- a/avy-jump.el
+++ b/avy-jump.el
@@ -247,10 +247,13 @@ When ARG is non-nil, flip the window scope."
   "Jump to a word start in current window.
 Read one char with which the word should start."
   (interactive)
-  (let ((candidates (avi--regex-candidates
-                     (concat
-                      "\\b"
-                      (string (read-char "char: "))))))
+  (let* ((str (string (read-char "char: ")))
+         (candidates (avi--regex-candidates
+                      (if (string-match "[,.+-*/=]" str)
+                          str
+                        (concat
+                         "\\b"
+                         str)))))
     (avi--goto
      (avi--process candidates #'avi--overlay-pre))))
 



reply via email to

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