Ver código fonte

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 anos atrás
pai
commit
b882c45758
1 arquivos alterados com 1 adições e 1 exclusões
  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