Просмотр исходного кода

Autoload var used by autoloaded code

Code that is autoloaded also needs any associated variable declarations
autoloaded as well, or else it (rightly) produces byte-compile warnings.

Fixes #84.
Ryan C. Thompson 10 лет назад
Родитель
Сommit
6c00081771
2 измененных файлов с 5 добавлено и 0 удалено
  1. 4 0
      ido-completing-read+.el
  2. 1 0
      ido-ubiquitous.el

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

@@ -62,8 +62,10 @@ not be updated until you restart Emacs.")
 
 ;;; Core code
 
+;;;###autoload
 (defvar ido-cr+-enable-next-call nil
   "If non-nil, then the next call to `ido-completing-read' is by `ido-completing-read+'.")
+;;;###autoload
 (defvar ido-cr+-enable-this-call nil
   "If non-nil, then the current call to `ido-completing-read' is by `ido-completing-read+'")
 
@@ -113,6 +115,7 @@ disable fallback based on collection size, set this to nil."
                         widget)))))
   :group 'ido-completing-read-plus)
 
+;;;###autoload
 (defcustom ido-cr+-replace-completely nil
   "If non-nil, replace `ido-completeing-read' completely with ido-cr+.
 
@@ -243,6 +246,7 @@ advice completely replaces `ido-completing-read' with
 
 ;; Need to defvar this to avoid bytecomp warnings. This makes sense
 ;; since we are relying on ido dynamically let-binding it.
+;;;###autoload
 (defvar ido-context-switch-command)
 
 (defadvice ido-magic-forward-char (before ido-cr+-fallback activate)

+ 1 - 0
ido-ubiquitous.el

@@ -970,6 +970,7 @@ This advice completely overrides the original definition."
 
 ;; This is defined at the end so it goes at the bottom of the
 ;; customization group
+;;;###autoload
 (define-minor-mode ido-ubiquitous-debug-mode
   "If non-nil, ido-ubiquitous will print debug info.