diff options
| author | Katsumi Yamaoka | 2013-09-17 09:24:02 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2013-09-17 09:24:02 +0000 |
| commit | 4a8bb694aabeb4dc4d14ff417508e182bc1f9148 (patch) | |
| tree | b4db7fbb2517b137de603c5838a2a461e4407545 | |
| parent | baed360360debdbe4926f69be41108890f394540 (diff) | |
| download | emacs-4a8bb694aabeb4dc4d14ff417508e182bc1f9148.tar.gz emacs-4a8bb694aabeb4dc4d14ff417508e182bc1f9148.zip | |
message.el (message-display-completion-list): Abolish
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 14 |
2 files changed, 6 insertions, 13 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index ab969d3d5fb..99c2f85ee6c 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-09-17 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * message.el (message-display-completion-list): Abolish. | ||
| 4 | (message-completion-in-region): Use display-completion-list. | ||
| 5 | |||
| 1 | 2013-09-17 Glenn Morris <rgm@gnu.org> | 6 | 2013-09-17 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * gnus-util.el (gnus-message-with-timestamp-1): | 8 | * gnus-util.el (gnus-message-with-timestamp-1): |
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index ba4593fad45..a458b3fc25b 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -7947,17 +7947,6 @@ those headers." | |||
| 7947 | ;; falling back to message-tab-body-function. | 7947 | ;; falling back to message-tab-body-function. |
| 7948 | (lambda () (funcall fun) 'completion-attempted))))) | 7948 | (lambda () (funcall fun) 'completion-attempted))))) |
| 7949 | 7949 | ||
| 7950 | (eval-and-compile | ||
| 7951 | (condition-case nil | ||
| 7952 | (with-temp-buffer | ||
| 7953 | (let ((standard-output (current-buffer))) | ||
| 7954 | (eval '(display-completion-list nil ""))) | ||
| 7955 | (defalias 'message-display-completion-list 'display-completion-list)) | ||
| 7956 | (error ;; Don't use `wrong-number-of-arguments' here because of XEmacs. | ||
| 7957 | (defun message-display-completion-list (completions &optional ignore) | ||
| 7958 | "Display the list of completions, COMPLETIONS, using `standard-output'." | ||
| 7959 | (display-completion-list completions))))) | ||
| 7960 | |||
| 7961 | (defun message-expand-group () | 7950 | (defun message-expand-group () |
| 7962 | "Expand the group name under point." | 7951 | "Expand the group name under point." |
| 7963 | (let ((b (save-excursion | 7952 | (let ((b (save-excursion |
| @@ -8012,8 +8001,7 @@ those headers." | |||
| 8012 | (let ((buffer-read-only nil)) | 8001 | (let ((buffer-read-only nil)) |
| 8013 | (erase-buffer) | 8002 | (erase-buffer) |
| 8014 | (let ((standard-output (current-buffer))) | 8003 | (let ((standard-output (current-buffer))) |
| 8015 | (message-display-completion-list (sort completions 'string<) | 8004 | (display-completion-list (sort completions 'string<))) |
| 8016 | string)) | ||
| 8017 | (setq buffer-read-only nil) | 8005 | (setq buffer-read-only nil) |
| 8018 | (goto-char (point-min)) | 8006 | (goto-char (point-min)) |
| 8019 | (delete-region (point) | 8007 | (delete-region (point) |