[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 430d750 019/110: avy.el (avy--line-cands): Split away from
From: |
Oleh Krehel |
Subject: |
[elpa] master 430d750 019/110: avy.el (avy--line-cands): Split away from avy--line |
Date: |
Sat, 11 May 2019 10:15:35 -0400 (EDT) |
branch: master
commit 430d75085fed96c21ae2c7dde4f881de7a925bb3
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
avy.el (avy--line-cands): Split away from avy--line
* avy.el (avy--line): Update.
---
avy.el | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/avy.el b/avy.el
index da51488..74aba07 100644
--- a/avy.el
+++ b/avy.el
@@ -1137,10 +1137,7 @@ Which one depends on variable `subword-mode'."
(defvar visual-line-mode)
-(defun avy--line (&optional arg beg end)
- "Select a line.
-The window scope is determined by `avy-all-windows' (ARG negates it).
-Narrow the scope to BEG END."
+(defun avy--line-cands (&optional arg beg end)
(let (candidates)
(avy-dowindows arg
(let ((ws (or beg (window-start))))
@@ -1161,8 +1158,16 @@ Narrow the scope to BEG END."
(setq temporary-goal-column 0)
(line-move-visual 1 t))
(forward-line 1)))))))
- (let ((avy-action #'identity))
- (avy--process (nreverse candidates) (avy--style-fn avy-style)))))
+ (nreverse candidates)))
+
+(defun avy--line (&optional arg beg end)
+ "Select a line.
+The window scope is determined by `avy-all-windows' (ARG negates it).
+Narrow the scope to BEG END."
+ (let ((avy-action #'identity))
+ (avy--process
+ (avy--line-cands arg beg end)
+ (avy--style-fn avy-style))))
;;;###autoload
(defun avy-goto-line (&optional arg)
- [elpa] master dd112c8 027/110: avy.el (avy-goto-subword-1): Check char-after, (continued)
- [elpa] master dd112c8 027/110: avy.el (avy-goto-subword-1): Check char-after, Oleh Krehel, 2019/05/11
- [elpa] master 0c30cdb 034/110: avy.el (avy-action-yank): Add and bind to "y", Oleh Krehel, 2019/05/11
- [elpa] master c911850 031/110: avy.el (avy--overlay-at-full): Fix for visual-line-mode, Oleh Krehel, 2019/05/11
- [elpa] master 5515f28 021/110: Allow using symbols instead of words in word cmds, Oleh Krehel, 2019/05/11
- [elpa] master a911903 029/110: avy.el (avy-goto-word-1): Work for "^A"-"^Z", Oleh Krehel, 2019/05/11
- [elpa] master a5fb936 028/110: avy.el (avy-resume): Make it show up in M-x, Oleh Krehel, 2019/05/11
- [elpa] master 20ecb9b 024/110: Use flyspell if its minor mode is active, Oleh Krehel, 2019/05/11
- [elpa] master b522bfe 023/110: avy.el (avy-resume): Add, Oleh Krehel, 2019/05/11
- [elpa] master e460d7e 025/110: avy.el (flyspell-correct-word-before-point): Declare, Oleh Krehel, 2019/05/11
- [elpa] master 05a5003 022/110: avy.el: Fix linum-related compile warnings, Oleh Krehel, 2019/05/11
- [elpa] master 430d750 019/110: avy.el (avy--line-cands): Split away from avy--line,
Oleh Krehel <=
- [elpa] master 0f5e99b 030/110: avy.el: Use next-char-property-change, not next-overlay-change, Oleh Krehel, 2019/05/11
- [elpa] master 33af738 017/110: avy.el (avy-goto-word-1-above): Add, Oleh Krehel, 2019/05/11
- [elpa] master 105efc8 037/110: avy.el (avy-action-copy): Copy line for avy-goto-line, Oleh Krehel, 2019/05/11
- [elpa] master 4e4c488 020/110: Add avy-linum-mode, Oleh Krehel, 2019/05/11
- [elpa] master d644be1 016/110: avy.el (avy-goto-char-2-above): Simplify, Oleh Krehel, 2019/05/11
- [elpa] master 4dcf0a9 018/110: avy.el (avy-goto-char-2): Translate "RET" to "C-j", Oleh Krehel, 2019/05/11
- [elpa] master ba950a0 015/110: avy.el (avy-goto-char-2-above): Add, Oleh Krehel, 2019/05/11
- [elpa] master 58bc417 014/110: Escape regex metacharacters for standard isearch, Oleh Krehel, 2019/05/11
- [elpa] master 2e3c2f7 013/110: Add new command `avy-move-region', Oleh Krehel, 2019/05/11
- [elpa] master 85a384a 012/110: Add char at window start for avy-goto-subword-0, Oleh Krehel, 2019/05/11