[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 9489ca9 062/110: Add window selection via mouse button pre
From: |
Oleh Krehel |
Subject: |
[elpa] master 9489ca9 062/110: Add window selection via mouse button press and fix typo |
Date: |
Sat, 11 May 2019 10:15:45 -0400 (EDT) |
branch: master
commit 9489ca906481e1584cc4c53e9e607f98c3a14378
Author: Bob Weiner <address@hidden>
Commit: Oleh Krehel <address@hidden>
Add window selection via mouse button press and fix typo
---
avy.el | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/avy.el b/avy.el
index 4fcbf96..6d427ef 100644
--- a/avy.el
+++ b/avy.el
@@ -465,15 +465,19 @@ multiple DISPLAY-FN invocations."
(dolist (x avy--leafs)
(funcall display-fn (car x) (cdr x))))
(let ((char (funcall avy-translate-char-function (read-key)))
+ window
branch)
(funcall cleanup-fn)
- (if (setq branch (assoc char tree))
- (progn
- (setq avy-current-path
- (concat avy-current-path (string (avy--key-to-char char))))
- (when (eq (car (setq tree (cdr branch))) 'leaf)
- (throw 'done (cdr tree))))
- (funcall avy-handler-function char))))))
+ (if (setq window (avy-mouse-event-window char))
+ (throw 'done (cons char window))
+ ;; Ensure avy-current-path stores the full path given before
+ ;; exit for testing when an invalid path character is given.
+ (setq avy-current-path
+ (concat avy-current-path (string (avy--key-to-char char))))
+ (if (setq branch (assoc char tree))
+ (if (eq (car (setq tree (cdr branch))) 'leaf)
+ (throw 'done (cdr tree)))
+ (funcall avy-handler-function char)))))))
(defun avy-read-de-bruijn (lst keys)
"Select from LST dispatching on KEYS."
- [elpa] master 793a5e2 061/110: avy.el (avy-action-teleport): Add save-excursion, (continued)
- [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, 2019/05/11
- [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 <=
- [elpa] master 1b9f061 055/110: avy.el (avy-action-kill-stay): Adjust for avy-goto-line, Oleh Krehel, 2019/05/11
- [elpa] master dee0284 056/110: avy.el (avy-action-kill-move): Adjust for avy-goto-line, Oleh Krehel, 2019/05/11
- [elpa] master 56f6590 054/110: avy.el (avy-action-copy): Adjust for avy-goto-line, Oleh Krehel, 2019/05/11
- [elpa] master c08fc7c 049/110: Add option to match newline in avy-goto-char-timer, Oleh Krehel, 2019/05/11
- [elpa] master 245b5d6 046/110: avy.el: Fix compile warnings, Oleh Krehel, 2019/05/11
- [elpa] master 0ed6408 043/110: avy.el: Fix checkdoc warnings, Oleh Krehel, 2019/05/11
- [elpa] master 36f768d 047/110: avy.el (avy-words): Specify custom type, Oleh Krehel, 2019/05/11
- [elpa] master 9103291 048/110: Update description to be easier to understand., Oleh Krehel, 2019/05/11
- [elpa] master f4c45d3 044/110: avy.el: Add org-mode commands for jumping to and refiling headings, Oleh Krehel, 2019/05/11
- [elpa] master 4af1993 053/110: avy.el (avy-read): Update avy-current-path before returning, Oleh Krehel, 2019/05/11