]> git.eshelyaron.com Git - emacs.git/commitdiff
gnus-util.el (gnus-completing-read-function): Exclude gnus-icompleting-read and gnus...
authorKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 1 Oct 2010 06:56:38 +0000 (06:56 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 1 Oct 2010 06:56:38 +0000 (06:56 +0000)
Silence the byte compiler.

lisp/gnus/ChangeLog
lisp/gnus/gnus-util.el

index 9c5653cadb9b39e6d62a760bcbfc0f4a3934ce82..e612c626f9fb6a9dd945b443d73e1bb2f57d4604 100644 (file)
@@ -1,5 +1,12 @@
 2010-10-01  Katsumi Yamaoka  <yamaoka@jpl.org>
 
+       * gnus-util.el (gnus-completing-read-function): Exclude
+       gnus-icompleting-read and gnus-ido-completing-read from candidates for
+       XEmacs since iswitchb.el is very old and ido.el is unavailable in
+       XEmacs.
+       (iswitchb-mode, iswitchb-temp-buflist, iswitchb-read-buffer): Silence
+       the byte compiler.
+
        * gravatar.el: Don't load image.el that XEmacs doesn't provide.
        (gravatar-create-image): New function that's an alias to
        gnus-xmas-create-image, gnus-create-image, or create-image.
index 2f9bdd62e6e3605e2a5a4e6e127a1f5d8c716904..3451cde67308778c15c1cf654e1d9b90d26e1078 100644 (file)
   #'gnus-std-completing-read
   "Function to do a completing read."
   :group 'gnus-meta
-  :type '(radio (function-item
+  :type `(radio (function-item
                  :doc "Use Emacs' standard `completing-read' function."
                  gnus-std-completing-read)
-                (function-item :doc "Use iswitchb's completing-read function."
-                               gnus-icompleting-read)
-                (function-item :doc "Use ido's completing-read function."
-                               gnus-ido-completing-read)
+               ,@(unless (featurep 'xemacs)
+                   '((function-item
+                      :doc "Use iswitchb's completing-read function."
+                      gnus-icompleting-read)
+                     (function-item
+                      :doc "Use ido's completing-read function."
+                      gnus-ido-completing-read)))
                 (function)))
 
 (defcustom gnus-completion-styles
@@ -1595,6 +1598,11 @@ SPEC is a predicate specifier that contains stuff like `or', `and',
   (completing-read prompt collection nil require-match
                    initial-input history def))
 
+(defvar iswitchb-mode)
+(defvar iswitchb-temp-buflist)
+(declare-function iswitchb-read-buffer "iswitchb"
+                 (prompt &optional default require-match start matches-set))
+
 (defun gnus-icompleting-read (prompt collection &optional require-match
                                      initial-input history def)
   (require 'iswitchb)