[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 53d457c 18/78: Add misc punctuation to subword commands
From: |
Oleh Krehel |
Subject: |
[elpa] master 53d457c 18/78: Add misc punctuation to subword commands |
Date: |
Sat, 23 Jan 2016 13:59:44 +0000 |
branch: master
commit 53d457cfe48956a1cbffb7f0f6d735af322fd093
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
Add misc punctuation to subword commands
* avy.el (avy-goto-subword-0): Temporarily bind
`subword-backward-regexp' to allow chars like ! or @ to count as
subword parts.
Fixes #93
---
avy.el | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/avy.el b/avy.el
index f2e9520..4c3bb79 100644
--- a/avy.el
+++ b/avy.el
@@ -857,6 +857,7 @@ The window scope is determined by `avy-all-windows' (ARG
negates it)."
(avy--generic-jump regex arg avy-style))))
(declare-function subword-backward "subword")
+(defvar subword-bacward-regexp)
;;;###autoload
(defun avy-goto-subword-0 (&optional arg predicate)
@@ -870,6 +871,8 @@ should return true."
(require 'subword)
(avy-with avy-goto-subword-0
(let ((case-fold-search nil)
+ (subword-backward-regexp
+
"\\(\\(\\W\\|[[:lower:][:digit:]]\\)\\([!-/:@`~[:upper:]]+\\W*\\)\\|\\W\\w+\\)")
candidates)
(avy-dowindows arg
(let ((ws (window-start))
- [elpa] master d22493c 12/78: Autload avy-goto-word-or-subword-1, (continued)
- [elpa] master d22493c 12/78: Autload avy-goto-word-or-subword-1, Oleh Krehel, 2016/01/23
- [elpa] master 1d1e4b6 06/78: Allow to switch action midway from goto to kill/mark/copy, Oleh Krehel, 2016/01/23
- [elpa] master 30067dd 14/78: avy.el (avy-action-goto): Don't push mark when region is active, Oleh Krehel, 2016/01/23
- [elpa] master a6db8a3 08/78: Rename avy--with-avy-keys to avy-with, Oleh Krehel, 2016/01/23
- [elpa] master 1e578a1 15/78: Considers letter case only if given Upcase letter, Oleh Krehel, 2016/01/23
- [elpa] master e8cebf1 13/78: Make arg optional in avy-goto-subword-1, Oleh Krehel, 2016/01/23
- [elpa] master 36b296c 20/78: avy.el (subword-backward-regexp): Fix declaration, Oleh Krehel, 2016/01/23
- [elpa] master dbd2d20 17/78: avy.el (avy-pop-mark): Handle multiple frames, Oleh Krehel, 2016/01/23
- [elpa] master a86bdee6 16/78: avy.el (avy-pop-mark): use own history for points and windows, Oleh Krehel, 2016/01/23
- [elpa] master ed120ea 19/78: avy.el (avy-goto-line): Allow numeric prefix arg, Oleh Krehel, 2016/01/23
- [elpa] master 53d457c 18/78: Add misc punctuation to subword commands,
Oleh Krehel <=
- [elpa] master 2c74d01 21/78: avy.el (avy--generic-jump): Add beg and end optional args, Oleh Krehel, 2016/01/23
- [elpa] master 009c0bc 22/78: avy.el (avy--line): Work for visual-line-mode, Oleh Krehel, 2016/01/23
- [elpa] master 53decea 24/78: avy.el (avy--line): Don't error on end of buffer, Oleh Krehel, 2016/01/23
- [elpa] master a6cfeda 23/78: avy.el (avy-goto-subword-0): Don't offer invisible chars, Oleh Krehel, 2016/01/23
- [elpa] master 72afecb 25/78: avy.el (avy-push-mark): Bring back push-mark, Oleh Krehel, 2016/01/23
- [elpa] master b1ef1f8 26/78: avy.el (avy--line): Obey avy-background, Oleh Krehel, 2016/01/23
- [elpa] master 48aa2cd 28/78: Improve avy-goto-char-timer so that it may read 1 or many chars, Oleh Krehel, 2016/01/23
- [elpa] master ac16227 27/78: Add padding for wide-width character, Oleh Krehel, 2016/01/23
- [elpa] master 67662ef 29/78: Fix indentation of defface, Oleh Krehel, 2016/01/23
- [elpa] master f9d7a76 31/78: Improve avy-goto-char-timer., Oleh Krehel, 2016/01/23