From 043675e4522634a2e10e58f8ffdc710518154813 Mon Sep 17 00:00:00 2001 From: Artur Malabarba Date: Thu, 26 Mar 2015 20:00:24 +0000 Subject: Change a failed sx-open-link from message to error. This way sx-button-follow-link can catch it. --- sx-button.el | 2 +- sx-interaction.el | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/sx-button.el b/sx-button.el index d32314d..2292ac9 100644 --- a/sx-button.el +++ b/sx-button.el @@ -105,7 +105,7 @@ usually part of a code-block." ;; whatever we thought it was. (condition-case nil (sx-open-link url) ;; When it errors, don't blame the user, just visit externally. - (error (sx-visit-externally url))))) + (error (browse-url url))))) ;;; Help-echo definitions diff --git a/sx-interaction.el b/sx-interaction.el index 43b1efc..8754c54 100644 --- a/sx-interaction.el +++ b/sx-interaction.el @@ -167,9 +167,8 @@ Element can be a question, answer, or comment." (question (sx-display-question (sx-question-get-question .site_par .id) 'focus)) - (t (sx-message - "Don't know how to open this link, please file a bug report: %s" - link) + (t (error "Don't know how to open this link, please file a bug report: %s" + link) nil)))))) -- cgit v1.2.3