Browse Source

Catch errors in ido-ubiquitous-with-override

The first argument to ido-ubiquitous-with-override is wrapped in a
call to "ignore-errors", so an error simply results in no override.
Ryan C. Thompson 11 years ago
parent
commit
b882c45758
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ido-ubiquitous.el

+ 1 - 1
ido-ubiquitous.el

@@ -319,7 +319,7 @@ literal symbol, it must be quoted.
 
 
 See `ido-ubiquitous-command-overrides' for valid override types."
 See `ido-ubiquitous-command-overrides' for valid override types."
   ;; Eval override
   ;; Eval override
-  (setq override (eval override))
+  (setq override (ignore-errors (eval override)))
   `(let ((ido-ubiquitous-next-override ',override))
   `(let ((ido-ubiquitous-next-override ',override))
      ,@body))
      ,@body))
 (put 'ido-ubiquitous-with-override 'lisp-indent-function
 (put 'ido-ubiquitous-with-override 'lisp-indent-function