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

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

[elpa] externals/ace-window d7bdb53 70/92: Make aw-make-frame disable-ab


From: Stefan Monnier
Subject: [elpa] externals/ace-window d7bdb53 70/92: Make aw-make-frame disable-able
Date: Wed, 17 Mar 2021 18:39:24 -0400 (EDT)

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

    Make aw-make-frame disable-able
    
    There are times when I don't want a new frame made under any
    circumstances. If that's the case, I don't want to accidentally
    trigger aw-make-frame by hitting the wrong key at the dispatch.
    Setting aw-make-frame-char to nil takes it off the key list, but this
    requires a slight change to the dispatch check.
---
 ace-window.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ace-window.el b/ace-window.el
index b89daf6..e7c78b4 100644
--- a/ace-window.el
+++ b/ace-window.el
@@ -431,7 +431,7 @@ The new frame is set to the same size as the previous 
frame, offset by
               (avy-mouse-event-window char)))
         ((= char (aref (kbd "C-g") 0))
          (throw 'done 'exit))
-        ((= char aw-make-frame-char)
+        ((and aw-make-frame-char (= char aw-make-frame-char))
          ;; Make a new frame and perform any action on its window.
          (let ((start-win (selected-window))
                (end-win (frame-selected-window (aw-make-frame))))



reply via email to

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