浏览代码

Don't quote symbol which is declared to be obsolete as a function

Quoting the obsolete function using `function' inside the form that
declares that it is an obsolete function, is considered by the byte
compiler to be the first obsolete use of that function.

Just quote the symbol using ' instead of #', otherwise the byte
compiler would issue a warning.
Jonas Bernoulli 10 年之前
父节点
当前提交
d68d1016bc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ido-ubiquitous.el

+ 1 - 1
ido-ubiquitous.el

@@ -586,7 +586,7 @@ completion for them."
       (ido-ubiquitous-fallback
        (ido-ubiquitous--explain-fallback sig)
        (apply ido-cr+-fallback-function orig-args)))))
-(define-obsolete-function-alias #'completing-read-ido #'completing-read-ido-ubiquitous
+(define-obsolete-function-alias 'completing-read-ido #'completing-read-ido-ubiquitous
   "ido-ubiquitous 3.0")
 
 ;;; Old-style default support