Parcourir la source

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 il y a 10 ans
Parent
commit
d68d1016bc
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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