From ceea53d7b6cb982cded8335ef79a13cc2d0bd2b2 Mon Sep 17 00:00:00 2001 From: Oleh Krehel Date: Fri, 19 Jan 2018 21:26:56 +0100 Subject: [PATCH] ace-window.el (aw-dispatch-default): Add fboundp Fixes #124 --- ace-window.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ace-window.el b/ace-window.el index a1cd919..d329c8b 100644 --- a/ace-window.el +++ b/ace-window.el @@ -387,7 +387,8 @@ The new frame is set to the same size as the previous frame, offset by (defun aw-dispatch-default (char) "Perform an action depending on CHAR." - (cond ((avy-mouse-event-window char)) + (cond ((and (fboundp 'avy-mouse-event-window) + (avy-mouse-event-window char))) ((= char (aref (kbd "C-g") 0)) (throw 'done 'exit)) ((= char aw-make-frame-char)