diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-03-26 20:00:24 +0000 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-03-26 20:02:41 +0000 |
commit | 043675e4522634a2e10e58f8ffdc710518154813 (patch) | |
tree | 5c7b5a3cc75a77da152857851ca938c3575c2884 | |
parent | 6dc7c3c1ae61188e46fff00f9880a5ee27905df3 (diff) |
Change a failed sx-open-link from message to error.
This way sx-button-follow-link can catch it.
-rw-r--r-- | sx-button.el | 2 | ||||
-rw-r--r-- | 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)))))) |