瀏覽代碼

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 年之前
父節點
當前提交
b882c45758
共有 1 個文件被更改,包括 1 次插入1 次删除
  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."
   ;; Eval override
-  (setq override (eval override))
+  (setq override (ignore-errors (eval override)))
   `(let ((ido-ubiquitous-next-override ',override))
      ,@body))
 (put 'ido-ubiquitous-with-override 'lisp-indent-function