1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

message.el (message-read-from-minibuffer): Make abbrev expansion work.

This commit is contained in:
Katsumi Yamaoka 2011-09-15 01:08:08 +00:00
parent 65a046c491
commit d5fdf93f87
2 changed files with 7 additions and 3 deletions

View file

@ -8068,10 +8068,10 @@ regexp VARSTR."
(defun message-read-from-minibuffer (prompt &optional initial-contents)
"Read from the minibuffer while providing abbrev expansion."
(if (fboundp 'mail-abbrevs-setup)
(let ((mail-abbrev-mode-regexp "")
(minibuffer-setup-hook 'mail-abbrevs-setup)
(let ((minibuffer-setup-hook 'mail-abbrevs-setup)
(minibuffer-local-map message-minibuffer-local-map))
(read-from-minibuffer prompt initial-contents))
(flet ((mail-abbrev-in-expansion-header-p nil t))
(read-from-minibuffer prompt initial-contents)))
(let ((minibuffer-setup-hook 'mail-abbrev-minibuffer-setup-hook)
(minibuffer-local-map message-minibuffer-local-map))
(read-string prompt initial-contents))))