[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 85b5d57 104/110: avy.el (avy-jump): Add predicate argument
From: |
Oleh Krehel |
Subject: |
[elpa] master 85b5d57 104/110: avy.el (avy-jump): Add predicate argument |
Date: |
Sat, 11 May 2019 10:15:54 -0400 (EDT) |
branch: master
commit 85b5d574cdc4755b17ca549314774e15565f3e86
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
avy.el (avy-jump): Add predicate argument
Fixes #267
---
avy.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/avy.el b/avy.el
index c8af0b9..4bd16c1 100644
--- a/avy.el
+++ b/avy.el
@@ -1223,19 +1223,20 @@ exist."
(ignore #'ignore)
(t (error "Unexpected style %S" style))))
-(cl-defun avy-jump (regex &key window-flip beg end action)
+(cl-defun avy-jump (regex &key window-flip beg end action pred)
"Jump to REGEX.
The window scope is determined by `avy-all-windows'.
When WINDOW-FLIP is non-nil, do the opposite of `avy-all-windows'.
BEG and END narrow the scope where candidates are searched.
-ACTION is a function that takes point position as an argument."
+ACTION is a function that takes point position as an argument.
+When PRED is non-nil, it's a filter for matching point positions."
(setq avy-action (or action avy-action))
(let ((avy-all-windows
(if window-flip
(not avy-all-windows)
avy-all-windows)))
(avy-process
- (avy--regex-candidates regex beg end))))
+ (avy--regex-candidates regex beg end pred))))
(defun avy--generic-jump (regex window-flip &optional beg end)
"Jump to REGEX.
- [elpa] master updated (1744d5a -> 4acafa6), Oleh Krehel, 2019/05/11
- [elpa] master 4acafa6 110/110: Merge commit '0e59474430cbfbe7caf2a41cf7935fc613648c49' from avy, Oleh Krehel, 2019/05/11
- [elpa] master b408f76 108/110: doc/Changelog.org: quote issues, Oleh Krehel, 2019/05/11
- [elpa] master f2cf43b 107/110: doc/Changelog.org: Release 0.5.0, Oleh Krehel, 2019/05/11
- [elpa] master 0e59474 109/110: avy.el (avy--read-candidates): Fix docstring, Oleh Krehel, 2019/05/11
- [elpa] master 85b5d57 104/110: avy.el (avy-jump): Add predicate argument,
Oleh Krehel <=
- [elpa] master 152b07f 102/110: avy.el (avy-process): Return res, Oleh Krehel, 2019/05/11
- [elpa] master a723090 106/110: avy.el (avy--overlay-at-full): More consistent face order, Oleh Krehel, 2019/05/11
- [elpa] master 5b3676f 095/110: avy.el (avy-next): New command to go to the next candidate after avy-read, Oleh Krehel, 2019/05/11
- [elpa] master 4d52b5c 105/110: avy.el (avy--line-cands): Allow "invisible" 'org-link, Oleh Krehel, 2019/05/11
- [elpa] master e9f4d85 092/110: avy.el (avy-goto-char-timer): Obey avy-background for initial search, Oleh Krehel, 2019/05/11
- [elpa] master 9124022 097/110: avy.el (avy--generic-jump): Update docstring about removed arg, Oleh Krehel, 2019/05/11
- [elpa] master b19a23a 096/110: avy.el (avy--visible-p): buffer-invisibility-spec can be t, Oleh Krehel, 2019/05/11
- [elpa] master 118a3d6 093/110: Update readme.md: add melpa badges, Oleh Krehel, 2019/05/11
- [elpa] master 9a15d1f 103/110: avy.el (avy-show-dispatch-help): Add and bind to "?", Oleh Krehel, 2019/05/11
- [elpa] master 74501e1 094/110: avy.el: More fixes to org-toggle-link-display, Oleh Krehel, 2019/05/11