aboutsummaryrefslogtreecommitdiff
path: root/sx-compose.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-01-23 23:18:44 -0200
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-01-23 23:18:44 -0200
commitbf50c12f4697c6f1699cc35ef239e351c69d1e2a (patch)
tree0ea0dcdb13a88cbdeb58a4e71a17e7eb6624b826 /sx-compose.el
parent006c85d3a241e20b6b03ab4499dbc467f8431ddd (diff)
parentea97e9b5044156ac68d17b83ac603148940aec3e (diff)
Merge branch 'master' into tag-buttons
Diffstat (limited to 'sx-compose.el')
-rw-r--r--sx-compose.el13
1 files changed, 9 insertions, 4 deletions
diff --git a/sx-compose.el b/sx-compose.el
index 3047a97..eb5e2eb 100644
--- a/sx-compose.el
+++ b/sx-compose.el
@@ -140,10 +140,15 @@ contents to the API, then calls `sx-compose-after-send-functions'."
(interactive)
(when (run-hook-with-args-until-failure
'sx-compose-before-send-hook)
- (let ((result (funcall sx-compose--send-function)))
- (with-demoted-errors
- (run-hook-with-args 'sx-compose-after-send-functions
- (current-buffer) result)))))
+ (let ((result (funcall sx-compose--send-function))
+ (buf (current-buffer)))
+ (run-hook-wrapped
+ 'sx-compose-after-send-functions
+ (lambda (func)
+ (with-demoted-errors
+ "[sx] Error encountered AFTER sending post, but the post was sent successfully: %s"
+ (funcall func buf result))
+ nil)))))
(defun sx-compose-insert-tags ()
"Prompt for a tag list for this draft and insert them."