[gnus git] branch master updated: n0-17-296-gad9fa1e =1= message.el (message-read-from-minibuffer): Make abbrev expansion work.

Katsumi Yamaoka <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  ad9fa1e0fa62f0757171074c54c239880721d2ae (commit)
      from  486ef3e9988a8e858115f1653ff9109df82ee7fa (commit)


- Log -----------------------------------------------------------------
commit ad9fa1e0fa62f0757171074c54c239880721d2ae
Author: Katsumi Yamaoka <[email protected]>
Date:   Thu Sep 15 01:07:42 2011 +0000

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

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8b5f7e6..fd510f7 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
+2011-09-15  Katsumi Yamaoka  <[email protected]>
+
+	* message.el (message-read-from-minibuffer): Make abbrev expansion work.
+
 2011-09-12  Lars Magne Ingebrigtsen  <[email protected]>
 
 	* gnus.el (gnus-interactive-exit): Update defcustom spec.
diff --git a/lisp/message.el b/lisp/message.el
index 6f37f83..0183b87 100644
--- a/lisp/message.el
+++ b/lisp/message.el
@@ -8112,10 +8112,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))))

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog  |    4 ++++
 lisp/message.el |    6 +++---
 2 files changed, 7 insertions(+), 3 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.