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:
parent
65a046c491
commit
d5fdf93f87
2 changed files with 7 additions and 3 deletions
|
|
@ -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))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue