           (anything-initialize-1 any-resume any-input)
           (anything-hooks 'setup)
           (if (eq any-resume t)
-              (anything-window-configuration 'set)
+              (condition-case x
+                  (anything-window-configuration 'set)
+                (error (anything-display-buffer anything-buffer)))
             (anything-display-buffer anything-buffer))
           (unwind-protect
               (anything-read-pattern-maybe any-prompt any-input any-preselect any-resume)

          (when (overlay-buffer overlay)
            (goto-char (overlay-start overlay))
            (anything-mark-current-line)
            (anything-exit-minibuffer))))))

(defun anything-exit-minibuffer ()
  "Select the current candidate by exiting the minibuffer."

;;;; anything.el --- open anything / QuickSilver-like candidate-selection framework
;; $Id: anything.el,v 1.240 2010/01/23 04:21:31 rubikitch Exp rubikitch $

;; Copyright (C) 2007        Tamas Patrovics
;;               2008, 2009  rubikitch <rubikitch@ruby-lang.org>
