From 3b8fc502b9afa8f40aadbc129e4f646084e8dd9b Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 15 May 2016 13:53:14 -0400 Subject: [PATCH] org-compat: Check for w32-focus-frame * lisp/org-compat.el (org-select-frame-set-input-focus): Check for w32-focus-frame to quiet byte compiler. Don't use declare-function because this function was marked obsolete in Emacs 23.1 (44fe0f6). --- lisp/org-compat.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/org-compat.el b/lisp/org-compat.el index 208d209e4..13302e017 100644 --- a/lisp/org-compat.el +++ b/lisp/org-compat.el @@ -392,7 +392,8 @@ Pass BUFFER to the XEmacs version of `move-to-column'." (select-frame frame) (cond ((memq window-system '(x ns mac)) (x-focus-frame frame)) - ((eq window-system 'w32) + ((and (eq window-system 'w32) + (fboundp 'w32-focus-frame)) (w32-focus-frame frame))) (when focus-follows-mouse (set-mouse-position frame (1- (frame-width frame)) 0)))))