[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master b2112e0 13/17: avy-jump.el (avy-goto-word-1): Fix for "."
From: |
Oleh Krehel |
Subject: |
[elpa] master b2112e0 13/17: avy-jump.el (avy-goto-word-1): Fix for "." |
Date: |
Fri, 08 May 2015 13:42:13 +0000 |
branch: master
commit b2112e0fe9000a0df6eb1837e4f00aa704c155d9
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
avy-jump.el (avy-goto-word-1): Fix for "."
Fixes #7
---
avy-jump.el | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/avy-jump.el b/avy-jump.el
index 6c7d961..520011a 100644
--- a/avy-jump.el
+++ b/avy-jump.el
@@ -315,12 +315,15 @@ The window scope is determined by `avy-all-windows' (ARG
negates it)."
The window scope is determined by `avy-all-windows' (ARG negates it)."
(interactive "P")
(let* ((str (string (read-char "char: ")))
- (regex (if (and avy-word-punc-regexp
- (string-match avy-word-punc-regexp str))
- str
- (concat
- "\\b"
- str))))
+ (regex (cond ((string= str ".")
+ "\\.")
+ ((and avy-word-punc-regexp
+ (string-match avy-word-punc-regexp str))
+ str)
+ (t
+ (concat
+ "\\b"
+ str)))))
(avy--generic-jump regex arg avy-goto-word-style)))
(declare-function subword-backward "subword")
- [elpa] master 18cf1ef 07/17: README.md: add, (continued)
- [elpa] master 18cf1ef 07/17: README.md: add, Oleh Krehel, 2015/05/08
- [elpa] master 6c1f2f6 02/17: Move from "avi-" to "avy-", leave old stuff obsolete, Oleh Krehel, 2015/05/08
- [elpa] master 974e55b 09/17: avy-jump.el (avy--line): Avoid image-mode and doc-view-mode, Oleh Krehel, 2015/05/08
- [elpa] master 5d2979b 01/17: Initial import, Oleh Krehel, 2015/05/08
- [elpa] master e9d2e60 08/17: Customize the leading char style for chars and words, Oleh Krehel, 2015/05/08
- [elpa] master 903e172 12/17: Special-case char RET to allow for jumping to end-of-lines., Oleh Krehel, 2015/05/08
- [elpa] master 487d5ea 11/17: Abstract windows and rely on subword, Oleh Krehel, 2015/05/08
- [elpa] master ca1ca04 14/17: Add avy-goto-subword-1, Oleh Krehel, 2015/05/08
- [elpa] master e4f493e 10/17: README.md: Add command descriptions, Oleh Krehel, 2015/05/08
- [elpa] master 3200351 16/17: avy-jump.el (avy-setup-default): Setup some bindings, Oleh Krehel, 2015/05/08
- [elpa] master b2112e0 13/17: avy-jump.el (avy-goto-word-1): Fix for ".",
Oleh Krehel <=
- [elpa] master f2290f2 15/17: avy.el: Update commentary, Oleh Krehel, 2015/05/08
- [elpa] master 876d210 17/17: Add 'packages/avy/' from commit '32003515c8efa2cf38b62c45499dae30bc7cacb8', Oleh Krehel, 2015/05/08