diff options
| author | Katsumi Yamaoka | 2011-09-15 01:08:08 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2011-09-15 01:08:08 +0000 |
| commit | d5fdf93f872b2ced7e1e41cee44677c71cac8b26 (patch) | |
| tree | e7afd7d457a3d2bb21b242d98a3e028d77fe82a9 | |
| parent | 65a046c491c62a3cc535845b87fed5e645e874c8 (diff) | |
| download | emacs-d5fdf93f872b2ced7e1e41cee44677c71cac8b26.tar.gz emacs-d5fdf93f872b2ced7e1e41cee44677c71cac8b26.zip | |
message.el (message-read-from-minibuffer): Make abbrev expansion work.
| -rw-r--r-- | lisp/gnus/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index a89dc713dd8..39afcb0cef6 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-09-15 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * message.el (message-read-from-minibuffer): Make abbrev expansion work. | ||
| 4 | |||
| 1 | 2011-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org> | 5 | 2011-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 6 | ||
| 3 | * gnus.el (gnus-interactive-exit): Update defcustom spec. | 7 | * gnus.el (gnus-interactive-exit): Update defcustom spec. |
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index f78e2b0339d..8dac0fd7afe 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -8068,10 +8068,10 @@ regexp VARSTR." | |||
| 8068 | (defun message-read-from-minibuffer (prompt &optional initial-contents) | 8068 | (defun message-read-from-minibuffer (prompt &optional initial-contents) |
| 8069 | "Read from the minibuffer while providing abbrev expansion." | 8069 | "Read from the minibuffer while providing abbrev expansion." |
| 8070 | (if (fboundp 'mail-abbrevs-setup) | 8070 | (if (fboundp 'mail-abbrevs-setup) |
| 8071 | (let ((mail-abbrev-mode-regexp "") | 8071 | (let ((minibuffer-setup-hook 'mail-abbrevs-setup) |
| 8072 | (minibuffer-setup-hook 'mail-abbrevs-setup) | ||
| 8073 | (minibuffer-local-map message-minibuffer-local-map)) | 8072 | (minibuffer-local-map message-minibuffer-local-map)) |
| 8074 | (read-from-minibuffer prompt initial-contents)) | 8073 | (flet ((mail-abbrev-in-expansion-header-p nil t)) |
| 8074 | (read-from-minibuffer prompt initial-contents))) | ||
| 8075 | (let ((minibuffer-setup-hook 'mail-abbrev-minibuffer-setup-hook) | 8075 | (let ((minibuffer-setup-hook 'mail-abbrev-minibuffer-setup-hook) |
| 8076 | (minibuffer-local-map message-minibuffer-local-map)) | 8076 | (minibuffer-local-map message-minibuffer-local-map)) |
| 8077 | (read-string prompt initial-contents)))) | 8077 | (read-string prompt initial-contents)))) |