- (setq ido-cr+-max-items nil
- ido-ubiquitous-command-overrides
- (append ido-ubiquitous-command-overrides
- `((enable-old regexp ,(concat "\\`"
- "gtags-find-"
- "\\(" "tag"
- "\\|file"
- "\\|rtag"
- "\\|symbol"
- "\\)"
- "\\(" "\\|-other-window"
- "\\)"
- "\\'")))))
+ (setq ido-cr+-max-items nil)
+ (let ((excludes `(,(concat "\\`"
+ "gtags-find-"
+ "\\(" "tag"
+ "\\|file"
+ "\\|rtag"
+ "\\|symbol"
+ "\\)"
+ "\\(" "\\|-other-window"
+ "\\)"
+ "\\'"))))
+ (if (boundp 'ido-ubiquitous-command-overrides)
+ (setq ido-ubiquitous-command-overrides
+ (append ido-ubiquitous-command-overrides
+ (mapcar (lambda (exclude)
+ (if (symbolp exclude)
+ `(enable-old exact
+ ,(symbol-name exclude))
+ `(enable-old regexp ,exclude)))
+ excludes)))
+ (setq ido-cr+-function-blacklist
+ (append ido-cr+-function-blacklist excludes))))