diff options
| author | Stefan Monnier | 2011-10-26 13:27:51 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2011-10-26 13:27:51 -0400 |
| commit | 6e724ca2c2e36dcd30803c314319b8faf8472e7d (patch) | |
| tree | 809d0edd77c3684719d1e9b399f129c479bd622e | |
| parent | a7ef684b4660596dc65eca2448b8dba334122e88 (diff) | |
| download | emacs-6e724ca2c2e36dcd30803c314319b8faf8472e7d.tar.gz emacs-6e724ca2c2e36dcd30803c314319b8faf8472e7d.zip | |
* lisp/gnus/message.el: Don't insert TAB in headers with completion.
(message-completion-function): Don't fallback on message-tab-body-function
when message-completion-alist fails to find a completion.
Fixes: debbugs:9158
| -rw-r--r-- | lisp/gnus/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 6 |
2 files changed, 12 insertions, 2 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 8b4e993149e..7519252f037 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-10-26 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * message.el (message-completion-function): Make sure | ||
| 4 | message-tab-body-function is not attempted if one of | ||
| 5 | message-completion-alist fails to find a completion (bug#9158). | ||
| 6 | |||
| 1 | 2011-10-26 Daiki Ueno <ueno@unixuser.org> | 7 | 2011-10-26 Daiki Ueno <ueno@unixuser.org> |
| 2 | 8 | ||
| 3 | * mml.el (mml-quote-region): Quote <#secure> tag. | 9 | * mml.el (mml-quote-region): Quote <#secure> tag. |
| @@ -7,7 +13,7 @@ | |||
| 7 | 13 | ||
| 8 | * gnus-cite.el (gnus-message-citation-mode): Doc fix (in Emacs 24, | 14 | * gnus-cite.el (gnus-message-citation-mode): Doc fix (in Emacs 24, |
| 9 | calling a minor mode from Lisp with nil arg enables it, so we have to | 15 | calling a minor mode from Lisp with nil arg enables it, so we have to |
| 10 | make the working a bit ambiguous here). | 16 | make the wording a bit ambiguous here). |
| 11 | 17 | ||
| 12 | 2011-10-18 Teodor Zlatanov <tzz@lifelogs.com> | 18 | 2011-10-18 Teodor Zlatanov <tzz@lifelogs.com> |
| 13 | 19 | ||
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 948892d1e13..723f8fb72b5 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -7888,7 +7888,11 @@ those headers." | |||
| 7888 | (let ((mail-abbrev-mode-regexp (caar alist))) | 7888 | (let ((mail-abbrev-mode-regexp (caar alist))) |
| 7889 | (not (mail-abbrev-in-expansion-header-p)))) | 7889 | (not (mail-abbrev-in-expansion-header-p)))) |
| 7890 | (setq alist (cdr alist))) | 7890 | (setq alist (cdr alist))) |
| 7891 | (cdar alist))) | 7891 | (when (cdar alist) |
| 7892 | (lexical-let ((fun (cdar alist))) | ||
| 7893 | ;; Even if completion fails, return a non-nil value, so as to avoid | ||
| 7894 | ;; falling back to message-tab-body-function. | ||
| 7895 | (lambda () (funcall fun) 'completion-attempted))))) | ||
| 7892 | 7896 | ||
| 7893 | (eval-and-compile | 7897 | (eval-and-compile |
| 7894 | (condition-case nil | 7898 | (condition-case nil |