emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ace-window 66bfd42 27/92: Add switch-buffer-other-windo


From: Stefan Monnier
Subject: [elpa] externals/ace-window 66bfd42 27/92: Add switch-buffer-other-window
Date: Wed, 17 Mar 2021 18:39:15 -0400 (EDT)

branch: externals/ace-window
commit 66bfd421e87e9a29b37e4b718c68b5e8dd3abf29
Author: Nick Drozd <nicholasdrozd@gmail.com>
Commit: Nick Drozd <nicholasdrozd@gmail.com>

    Add switch-buffer-other-window
---
 ace-window.el | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/ace-window.el b/ace-window.el
index f6a3172..0e33852 100644
--- a/ace-window.el
+++ b/ace-window.el
@@ -273,6 +273,7 @@ LEAF is (PT . WND)."
     (?M aw-move-window "Move Window")
     (?j aw-switch-buffer-in-window "Select Buffer")
     (?n aw-flip-window)
+    (?u aw-switch-buffer-other-window "Switch Buffer Other Window")
     (?c aw-split-window-fair "Split Fair Window")
     (?v aw-split-window-vert "Split Vert Window")
     (?b aw-split-window-horz "Split Horz Window")
@@ -570,6 +571,12 @@ Modify `aw-fair-aspect-ratio' to tweak behavior."
         (aw-split-window-horz window)
       (aw-split-window-vert window))))
 
+(defun aw-switch-buffer-other-window (window)
+  "Switch buffer in WINDOW without selecting WINDOW."
+  (aw-switch-to-window window)
+  (aw--switch-buffer)
+  (aw-flip-window))
+
 (defun aw-offset (window)
   "Return point in WINDOW that's closest to top left corner.
 The point is writable, i.e. it's not part of space after newline."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]