[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master fcc64ab 59/68: avy-jump.el (avi--regex-candidates): Add op
From: |
Oleh Krehel |
Subject: |
[elpa] master fcc64ab 59/68: avy-jump.el (avi--regex-candidates): Add optional bounds |
Date: |
Sat, 21 Mar 2015 19:07:09 +0000 |
branch: master
commit fcc64abf2e8c4e0420f07db9a26f7b353d7f607e
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
avy-jump.el (avi--regex-candidates): Add optional bounds
---
avy-jump.el | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/avy-jump.el b/avy-jump.el
index 5045160..672ffcb 100644
--- a/avy-jump.el
+++ b/avy-jump.el
@@ -75,16 +75,16 @@ POS is either a position or (BEG . END)."
#'aw--remove-leading-chars))))
(aw--done)))
-(defun avi--regex-candidates (regex &optional wnd)
+(defun avi--regex-candidates (regex &optional wnd beg end)
"Return all elements that match REGEX in WND.
Each element of the list is ((BEG . END) . WND)."
(setq wnd (or wnd (selected-window)))
- (let ((we (window-end (selected-window) t))
+ (let ((we (or end (window-end (selected-window) t)))
candidates)
(save-window-excursion
(select-window wnd)
(save-excursion
- (goto-char (window-start))
+ (goto-char (or beg (window-start)))
(while (re-search-forward regex we t)
(push (cons (cons (match-beginning 0)
(match-end 0))
- [elpa] master b351b51 48/68: Clean up code, (continued)
- [elpa] master b351b51 48/68: Clean up code, Oleh Krehel, 2015/03/21
- [elpa] master 4570578 46/68: ace-window.el (aw--doit): simplify, Oleh Krehel, 2015/03/21
- [elpa] master df86665 51/68: ace-window.el (aw-ignored-buffers): add "*LV*", Oleh Krehel, 2015/03/21
- [elpa] master fa7cb4d 47/68: `aw--doit' simply returns a window now, Oleh Krehel, 2015/03/21
- [elpa] master e1ae6ba 50/68: Try not to end in `aw-ignored-p' when ace method isn't invoked, Oleh Krehel, 2015/03/21
- [elpa] master 47bd115 52/68: Allow customizing the leading char face, Oleh Krehel, 2015/03/21
- [elpa] master c897759 55/68: Update avy interface, Oleh Krehel, 2015/03/21
- [elpa] master 574b3bd 57/68: Add `aw-leading-char-style' extra-awesome custom var, Oleh Krehel, 2015/03/21
- [elpa] master 8b5f10a 53/68: Update outlines, Oleh Krehel, 2015/03/21
- [elpa] master d7cafcb 56/68: avy-jump.el: add example commands using avy, Oleh Krehel, 2015/03/21
- [elpa] master fcc64ab 59/68: avy-jump.el (avi--regex-candidates): Add optional bounds,
Oleh Krehel <=
- [elpa] master d932090 60/68: avy-jump.el (avi--overlay): Fix bug, Oleh Krehel, 2015/03/21
- [elpa] master f0050fb 62/68: avy.el (avy-read): Give a more precise error, Oleh Krehel, 2015/03/21
- [elpa] master 4e5ca87 58/68: avy-jump.el: Major update, Oleh Krehel, 2015/03/21
- [elpa] master ee0fa60 64/68: Add show keys on mode line feature., Oleh Krehel, 2015/03/21
- [elpa] master 30abc92 61/68: avy-jump.el (avi-goto-word-0): Simplify, Oleh Krehel, 2015/03/21
- [elpa] master a3d4817 63/68: Allow switching to the previous window, Oleh Krehel, 2015/03/21
- [elpa] master b83b941 65/68: Add `ace-window-display-mode' minor mode, Oleh Krehel, 2015/03/21
- [elpa] master d81f079 54/68: Remove dependency on ace-jump-mode, Oleh Krehel, 2015/03/21
- [elpa] master 2580bf9 67/68: ace-window.el (aw-mode-line-face): Inherit from mode-line-buffer-id, Oleh Krehel, 2015/03/21
- [elpa] master 22a3145 66/68: Make sure not to extend `mode-line-format' twice, Oleh Krehel, 2015/03/21