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)))))