[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 08370cd 069/110: Add option to limit avy-goto-subword-0 sc
From: |
Oleh Krehel |
Subject: |
[elpa] master 08370cd 069/110: Add option to limit avy-goto-subword-0 scope |
Date: |
Sat, 11 May 2019 10:15:46 -0400 (EDT) |
branch: master
commit 08370cdbc35ff41646461a02d6d9758dfce30c20
Author: walseb <address@hidden>
Commit: Oleh Krehel <address@hidden>
Add option to limit avy-goto-subword-0 scope
Fixes #235
---
avy.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/avy.el b/avy.el
index bf82845..3fc645e 100644
--- a/avy.el
+++ b/avy.el
@@ -1341,10 +1341,11 @@ This variable is used by `avy-goto-subword-0' and
`avy-goto-subword-1'."
:type '(repeat character))
;;;###autoload
-(defun avy-goto-subword-0 (&optional arg predicate)
+(defun avy-goto-subword-0 (&optional arg predicate beg end)
"Jump to a word or subword start.
The window scope is determined by `avy-all-windows' (ARG negates it).
+BEG and END narrow the scope where candidates are searched.
When PREDICATE is non-nil it's a function of zero parameters that
should return true."
@@ -1360,10 +1361,10 @@ should return true."
(dolist (char avy-subword-extra-word-chars)
(modify-syntax-entry char "w" syn-tbl))
(with-syntax-table syn-tbl
- (let ((ws (window-start))
+ (let ((ws (or beg (window-start)))
window-cands)
(save-excursion
- (goto-char (window-end (selected-window) t))
+ (goto-char (or end (window-end (selected-window) t)))
(subword-backward)
(while (> (point) ws)
(when (or (null predicate)
- [elpa] master 93d4bd2 066/110: avy.el: Fix indentation, (continued)
- [elpa] master 93d4bd2 066/110: avy.el: Fix indentation, Oleh Krehel, 2019/05/11
- [elpa] master 157486a 079/110: avy.el: Fix compiler warning, Oleh Krehel, 2019/05/11
- [elpa] master abe150c 082/110: Introduce single candidate jump customization, Oleh Krehel, 2019/05/11
- [elpa] master a29558d 080/110: Add C-h/DEL/RET info to README for avy-goto-char-timer, Oleh Krehel, 2019/05/11
- [elpa] master 7c40f5e 075/110: avy.el (avy--process): Fix the candidates list being modified when restarting, Oleh Krehel, 2019/05/11
- [elpa] master 58e8636 070/110: avy.el (avy-action-zap-to-char): More convenient use-cases, Oleh Krehel, 2019/05/11
- [elpa] master 34d3531 067/110: avy.el (avy-action-goto): Remove lag, Oleh Krehel, 2019/05/11
- [elpa] master 6459f7f 065/110: README.md: Mention avy-resume, Oleh Krehel, 2019/05/11
- [elpa] master d4aa876 063/110: Note that change to store full avy path is for external packages, Oleh Krehel, 2019/05/11
- [elpa] master 793a5e2 061/110: avy.el (avy-action-teleport): Add save-excursion, Oleh Krehel, 2019/05/11
- [elpa] master 08370cd 069/110: Add option to limit avy-goto-subword-0 scope,
Oleh Krehel <=
- [elpa] master 2d613eb 068/110: avy.el (avy-action-zap-to-char): Add and bind to "z", Oleh Krehel, 2019/05/11
- [elpa] master 869261a 064/110: Display actual character that triggered an error, Oleh Krehel, 2019/05/11
- [elpa] master 78392e6 058/110: avy.el (avy-action-teleport): Adjust for avy-goto-line, Oleh Krehel, 2019/05/11
- [elpa] master 7f83bbc 059/110: avy.el (avy-action-ispell): Adjust for avy-goto-line, Oleh Krehel, 2019/05/11
- [elpa] master a25b255 057/110: avy.el (avy-action-yank): Adjust for avy-goto-line, Oleh Krehel, 2019/05/11
- [elpa] master 631214d 060/110: Correct spelling mistake, Oleh Krehel, 2019/05/11
- [elpa] master ddf3c58 052/110: avy.el (avy-handler-default): Fix typo, Oleh Krehel, 2019/05/11
- [elpa] master a0ce6a7 050/110: Add avy-mouse-event-window and fix typo, Oleh Krehel, 2019/05/11
- [elpa] master 9489ca9 062/110: Add window selection via mouse button press and fix typo, Oleh Krehel, 2019/05/11
- [elpa] master 1b9f061 055/110: avy.el (avy-action-kill-stay): Adjust for avy-goto-line, Oleh Krehel, 2019/05/11