aboutsummaryrefslogtreecommitdiff
path: root/sx-compose.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-02-03 13:13:19 -0200
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-02-03 13:13:19 -0200
commitd725f48f4acea6934c71fedfc7b35adc9f96a7b5 (patch)
tree6eb08e5735fec3eac090d4fa587d532ab24703d3 /sx-compose.el
parent148da420d9f464f3cc8046fed99a103af0fd7bed (diff)
parenta2d526c4b12ffa1cece78be7e6bfedf0b2b60576 (diff)
Merge branch 'master' into more-tests
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."