diff options
| author | Katsumi Yamaoka | 2010-10-05 06:36:32 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-10-05 06:36:32 +0000 |
| commit | 1225bc492980972db7a8c2c23fc4a65d35100e2f (patch) | |
| tree | fb1517f80a635317faaa9397a3209d11aa2e6245 | |
| parent | 7b0e3048f0359b6e1802cabf2c97299cdb2585fc (diff) | |
| download | emacs-1225bc492980972db7a8c2c23fc4a65d35100e2f.tar.gz emacs-1225bc492980972db7a8c2c23fc4a65d35100e2f.zip | |
Merge changes made ein Gnus trunk.
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.
gnus-registry.el (gnus-registry-install-nnregistry): Rewrite so as not to use `delete-dups' that is unavailable in XEmacs 21.4.
| -rw-r--r-- | lisp/gnus/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/gnus/gnus-registry.el | 17 | ||||
| -rw-r--r-- | lisp/gnus/gnus-util.el | 17 |
3 files changed, 28 insertions, 14 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 75f806c3a5c..f378310b2b9 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,5 +1,13 @@ | |||
| 1 | 2010-10-05 Katsumi Yamaoka <yamaoka@jpl.org> | 1 | 2010-10-05 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 | |||
| 8 | * gnus-registry.el (gnus-registry-install-nnregistry): Rewrite so as | ||
| 9 | not to use `delete-dups' that is unavailable in XEmacs 21.4. | ||
| 10 | |||
| 3 | * gnus-html.el: Don't require help-fns under XEmacs. | 11 | * gnus-html.el: Don't require help-fns under XEmacs. |
| 4 | (gnus-html-schedule-image-fetching): Work for XEmacs. | 12 | (gnus-html-schedule-image-fetching): Work for XEmacs. |
| 5 | 13 | ||
diff --git a/lisp/gnus/gnus-registry.el b/lisp/gnus/gnus-registry.el index cbea1e17ed8..45fa9561782 100644 --- a/lisp/gnus/gnus-registry.el +++ b/lisp/gnus/gnus-registry.el | |||
| @@ -1153,13 +1153,16 @@ Returns the first place where the trail finds a group name." | |||
| 1153 | (defun gnus-registry-install-nnregistry () | 1153 | (defun gnus-registry-install-nnregistry () |
| 1154 | "Install the nnregistry refer method in `gnus-refer-article-method'." | 1154 | "Install the nnregistry refer method in `gnus-refer-article-method'." |
| 1155 | (interactive) | 1155 | (interactive) |
| 1156 | (setq gnus-refer-article-method | 1156 | (cond ((eq 'nnregistry gnus-refer-article-method)) |
| 1157 | (delete-dups | 1157 | ((null gnus-refer-article-method) |
| 1158 | (append | 1158 | (setq gnus-refer-article-method 'nnregistry)) |
| 1159 | (if (listp gnus-refer-article-method) | 1159 | ((consp gnus-refer-article-method) |
| 1160 | gnus-refer-article-method | 1160 | (unless (memq 'nnregistry gnus-refer-article-method) |
| 1161 | (list gnus-refer-article-method)) | 1161 | (setq gnus-refer-article-method |
| 1162 | (list 'nnregistry))))) | 1162 | (append gnus-refer-article-method '(nnregistry))))) |
| 1163 | (t | ||
| 1164 | (setq gnus-refer-article-method | ||
| 1165 | (list gnus-refer-article-method 'nnregistry))))) | ||
| 1163 | 1166 | ||
| 1164 | (defun gnus-registry-unload-hook () | 1167 | (defun gnus-registry-unload-hook () |
| 1165 | "Uninstall the registry hooks." | 1168 | "Uninstall the registry hooks." |
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index e4b8f8f87da..414f1c45440 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el | |||
| @@ -48,15 +48,18 @@ | |||
| 48 | "Function use to do completing read." | 48 | "Function use to do completing read." |
| 49 | :version "24.1" | 49 | :version "24.1" |
| 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-emacs-completing-read) | 53 | gnus-emacs-completing-read) |
| 54 | (function-item | 54 | ;; iswitchb.el is very old and ido.el is unavailable |
| 55 | :doc "Use `ido-completing-read' function." | 55 | ;; in XEmacs, so we exclude those function items. |
| 56 | gnus-ido-completing-read) | 56 | ,@(unless (featurep 'xemacs) |
| 57 | (function-item | 57 | '((function-item |
| 58 | :doc "Use iswitchb based completing-read function." | 58 | :doc "Use `ido-completing-read' function." |
| 59 | gnus-iswitchb-completing-read))) | 59 | gnus-ido-completing-read) |
| 60 | (function-item | ||
| 61 | :doc "Use iswitchb based completing-read function." | ||
| 62 | gnus-iswitchb-completing-read))))) | ||
| 60 | 63 | ||
| 61 | (defcustom gnus-completion-styles | 64 | (defcustom gnus-completion-styles |
| 62 | (if (and (boundp 'completion-styles-alist) | 65 | (if (and (boundp 'completion-styles-alist) |