projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1143906
)
(compose-mail): Give a better error message for `mail-user-agent'
author
Lars Ingebrigtsen
<larsi@gnus.org>
Sun, 15 Apr 2018 18:06:27 +0000
(20:06 +0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Sun, 15 Apr 2018 18:06:27 +0000
(20:06 +0200)
* lisp/simple.el (compose-mail): Give a better error message for
invalid values for `mail-user-agent' (bug#17979).
lisp/simple.el
patch
|
blob
|
history
diff --git
a/lisp/simple.el
b/lisp/simple.el
index dada65d4ee387d42441f9da912c5e7de93390b47..7d94b64913f2e304a5c9266df7f1d2f141f3a8da 100644
(file)
--- a/
lisp/simple.el
+++ b/
lisp/simple.el
@@
-7895,6
+7895,8
@@
To disable this warning, set `compose-mail-user-agent-warnings' to nil."
warn-vars " "))))))
(let ((function (get mail-user-agent 'composefunc)))
+ (unless function
+ (error "Invalid value for `mail-user-agent'"))
(funcall function to subject other-headers continue switch-function
yank-action send-actions return-action)))