浏览代码

Add defvar for ido-context-switch-command

This eliminates a byte-compilation warning. The code uses
ido-context-switch-command under the assumption that it is dynamically
let-bound by ido.el.
Ryan C. Thompson 10 年之前
父节点
当前提交
47e308afe4
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      ido-completing-read+.el

+ 5 - 0
ido-completing-read+.el

@@ -240,6 +240,11 @@ advice completely replaces `ido-completing-read' with
     (setq ad-return-value (apply #'ido-completing-read+ (ad-get-args 0))))))
 
 ;; Fallback on magic C-f and C-b
+
+;; Need to defvar this to avoid bytecomp warnings. This makes sense
+;; since we are relying on ido dynamically let-binding it.
+(defvar ido-context-switch-command)
+
 (defadvice ido-magic-forward-char (before ido-cr+-fallback activate)
   "Allow falling back in ido-completing-read+."
   (when ido-cr+-enable-this-call