diff options
| author | Katsumi Yamaoka | 2013-08-01 03:51:41 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2013-08-01 03:51:41 +0000 |
| commit | 23456a2c2e05a3ba44285fd4f16cb385c1868945 (patch) | |
| tree | 04607ee737f3314673b8cb018d0542d4118f6d3d | |
| parent | 7188b515f6ab2aab508b63395c051f7e67de6c9a (diff) | |
| download | emacs-23456a2c2e05a3ba44285fd4f16cb385c1868945.tar.gz emacs-23456a2c2e05a3ba44285fd4f16cb385c1868945.zip | |
gnus-util.el (gnus-emacs-completing-read): Isolate XEmacs stuff
| -rw-r--r-- | lisp/gnus/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/gnus/gnus-util.el | 15 |
2 files changed, 13 insertions, 6 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 226d97fdf37..afb8ee8f6e2 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2013-08-01 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * gnus-util.el (gnus-emacs-completing-read): Isolate XEmacs stuff. | ||
| 4 | |||
| 1 | 2013-07-30 Lars Magne Ingebrigtsen <larsi@gnus.org> | 5 | 2013-07-30 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 6 | ||
| 3 | * gnus-start.el (gnus-read-active-for-groups): Always mark the data as | 7 | * gnus-start.el (gnus-read-active-for-groups): Always mark the data as |
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index 0f0e9675c71..1d2ab2da248 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el | |||
| @@ -1558,12 +1558,15 @@ SPEC is a predicate specifier that contains stuff like `or', `and', | |||
| 1558 | "Call standard `completing-read-function'." | 1558 | "Call standard `completing-read-function'." |
| 1559 | (let ((completion-styles gnus-completion-styles)) | 1559 | (let ((completion-styles gnus-completion-styles)) |
| 1560 | (completing-read prompt | 1560 | (completing-read prompt |
| 1561 | ;; Old XEmacs (at least 21.4) expect an alist, | 1561 | (if (featurep 'xemacs) |
| 1562 | ;; in which the car of each element is a string, | 1562 | ;; Old XEmacs (at least 21.4) expect an alist, |
| 1563 | ;; for collection. | 1563 | ;; in which the car of each element is a string, |
| 1564 | (mapcar (lambda (elem) | 1564 | ;; for collection. |
| 1565 | (list (format "%s" (or (car-safe elem) elem)))) | 1565 | (mapcar |
| 1566 | collection) | 1566 | (lambda (elem) |
| 1567 | (list (format "%s" (or (car-safe elem) elem)))) | ||
| 1568 | collection) | ||
| 1569 | collection) | ||
| 1567 | nil require-match initial-input history def))) | 1570 | nil require-match initial-input history def))) |
| 1568 | 1571 | ||
| 1569 | (autoload 'ido-completing-read "ido") | 1572 | (autoload 'ido-completing-read "ido") |