summaryrefslogtreecommitdiffstats
path: root/emacsconf-mail.el
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--emacsconf-mail.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/emacsconf-mail.el b/emacsconf-mail.el
index 23743e8..ee6fb88 100644
--- a/emacsconf-mail.el
+++ b/emacsconf-mail.el
@@ -253,7 +253,9 @@ insert into the current buffer instead of drafting e-mails."
(add-hook 'message-sent-hook
`(lambda ()
(save-window-excursion
- (emacsconf-add-to-talk-logbook ,(plist-get o :slug) ,message)))
+ (emacsconf-add-to-talk-logbook ,(plist-get o :slug) ,message))
+ (when (match-buffers "*unsent")
+ (switch-to-buffer (car (match-buffers "*unsent")))))
nil t))
(defun emacsconf-mail-group-by-email (&optional info)