diff options
| author | Katsumi Yamaoka | 2010-10-01 06:56:38 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-10-01 06:56:38 +0000 |
| commit | 6f76a31e7723329c32b5a0a8010acfb777c54b3f (patch) | |
| tree | dc0223f959f529af6dc2fd397b1a48607bc044f4 | |
| parent | 4b36c6d4debd2fe02b6ce77e5e90c78655b6f37f (diff) | |
| download | emacs-6f76a31e7723329c32b5a0a8010acfb777c54b3f.tar.gz emacs-6f76a31e7723329c32b5a0a8010acfb777c54b3f.zip | |
gnus-util.el (gnus-completing-read-function): Exclude gnus-icompleting-read and gnus-ido-completing-read from candidates for XEmacs.
Silence the byte compiler.
| -rw-r--r-- | lisp/gnus/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/gnus/gnus-util.el | 18 |
2 files changed, 20 insertions, 5 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 9c5653cadb9..e612c626f9f 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,5 +1,12 @@ | |||
| 1 | 2010-10-01 Katsumi Yamaoka <yamaoka@jpl.org> | 1 | 2010-10-01 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 2 | ||
| 3 | * gnus-util.el (gnus-completing-read-function): Exclude | ||
| 4 | gnus-icompleting-read and gnus-ido-completing-read from candidates for | ||
| 5 | XEmacs since iswitchb.el is very old and ido.el is unavailable in | ||
| 6 | XEmacs. | ||
| 7 | (iswitchb-mode, iswitchb-temp-buflist, iswitchb-read-buffer): Silence | ||
| 8 | the byte compiler. | ||
| 9 | |||
| 3 | * gravatar.el: Don't load image.el that XEmacs doesn't provide. | 10 | * gravatar.el: Don't load image.el that XEmacs doesn't provide. |
| 4 | (gravatar-create-image): New function that's an alias to | 11 | (gravatar-create-image): New function that's an alias to |
| 5 | gnus-xmas-create-image, gnus-create-image, or create-image. | 12 | gnus-xmas-create-image, gnus-create-image, or create-image. |
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index 2f9bdd62e6e..3451cde6730 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el | |||
| @@ -48,13 +48,16 @@ | |||
| 48 | #'gnus-std-completing-read | 48 | #'gnus-std-completing-read |
| 49 | "Function to do a completing read." | 49 | "Function to do a completing read." |
| 50 | :group 'gnus-meta | 50 | :group 'gnus-meta |
| 51 | :type '(radio (function-item | 51 | :type `(radio (function-item |
| 52 | :doc "Use Emacs' standard `completing-read' function." | 52 | :doc "Use Emacs' standard `completing-read' function." |
| 53 | gnus-std-completing-read) | 53 | gnus-std-completing-read) |
| 54 | (function-item :doc "Use iswitchb's completing-read function." | 54 | ,@(unless (featurep 'xemacs) |
| 55 | gnus-icompleting-read) | 55 | '((function-item |
| 56 | (function-item :doc "Use ido's completing-read function." | 56 | :doc "Use iswitchb's completing-read function." |
| 57 | gnus-ido-completing-read) | 57 | gnus-icompleting-read) |
| 58 | (function-item | ||
| 59 | :doc "Use ido's completing-read function." | ||
| 60 | gnus-ido-completing-read))) | ||
| 58 | (function))) | 61 | (function))) |
| 59 | 62 | ||
| 60 | (defcustom gnus-completion-styles | 63 | (defcustom gnus-completion-styles |
| @@ -1595,6 +1598,11 @@ SPEC is a predicate specifier that contains stuff like `or', `and', | |||
| 1595 | (completing-read prompt collection nil require-match | 1598 | (completing-read prompt collection nil require-match |
| 1596 | initial-input history def)) | 1599 | initial-input history def)) |
| 1597 | 1600 | ||
| 1601 | (defvar iswitchb-mode) | ||
| 1602 | (defvar iswitchb-temp-buflist) | ||
| 1603 | (declare-function iswitchb-read-buffer "iswitchb" | ||
| 1604 | (prompt &optional default require-match start matches-set)) | ||
| 1605 | |||
| 1598 | (defun gnus-icompleting-read (prompt collection &optional require-match | 1606 | (defun gnus-icompleting-read (prompt collection &optional require-match |
| 1599 | initial-input history def) | 1607 | initial-input history def) |
| 1600 | (require 'iswitchb) | 1608 | (require 'iswitchb) |