[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 5f6dd00 001/110: avy.el (avy-action-copy): Save window and
From: |
Oleh Krehel |
Subject: |
[elpa] master 5f6dd00 001/110: avy.el (avy-action-copy): Save window and frame |
Date: |
Sat, 11 May 2019 10:15:32 -0400 (EDT) |
branch: master
commit 5f6dd00f5df4cd6e7236b17ad4b34e86b22940ef
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
avy.el (avy-action-copy): Save window and frame
Fixes #133
---
avy.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/avy.el b/avy.el
index 45f2120..78332c7 100644
--- a/avy.el
+++ b/avy.el
@@ -480,7 +480,12 @@ Set `avy-style' according to COMMMAND as well."
(forward-sexp)
(setq str (buffer-substring pt (point)))
(kill-new str)
- (message "Copied: %s" str))))
+ (message "Copied: %s" str)))
+ (let ((dat (ring-ref avy-ring 0)))
+ (select-frame-set-input-focus
+ (window-frame (cdr dat)))
+ (select-window (cdr dat))
+ (goto-char (car dat))))
(defun avy-action-kill (pt)
"Kill sexp at PT."
- [elpa] master 2e3c2f7 013/110: Add new command `avy-move-region', (continued)
- [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
- [elpa] master a80f95c 007/110: Add "X" dispatch to kill a word without moving there, Oleh Krehel, 2019/05/11
- [elpa] master 9e61f78 006/110: avy.el: Improve defcustom :type, Oleh Krehel, 2019/05/11
- [elpa] master 5ba3602 009/110: Assign avy-action-ispell to "i", Oleh Krehel, 2019/05/11
- [elpa] master 53706d2 011/110: avy.el (avy-all-windows-alt): Change the default to nil, Oleh Krehel, 2019/05/11
- [elpa] master 4c072be 010/110: README.md (avy-goto-char-timer): Add entry, Oleh Krehel, 2019/05/11
- [elpa] master c0db364 008/110: Add avy-action-ispell to avy.el, Oleh Krehel, 2019/05/11
- [elpa] master 3b75d95 005/110: Make "C-g" and "ESC" fail silently when reading char, Oleh Krehel, 2019/05/11
- [elpa] master 5f76c9d 004/110: avy.el (avy-goto-word-0-regexp): New defcustom, Oleh Krehel, 2019/05/11
- [elpa] master 5f6dd00 001/110: avy.el (avy-action-copy): Save window and frame,
Oleh Krehel <=
- [elpa] master 16370f9 003/110: avy.el (avy--goto): Remove obsolete alias, Oleh Krehel, 2019/05/11
- [elpa] master 730581a 002/110: avy.el: Fix compilation warning, Oleh Krehel, 2019/05/11