From fc1b05b512442db7bf5d7b8a2ee72d1f466a048f Mon Sep 17 00:00:00 2001 From: Artur Malabarba Date: Thu, 15 Jan 2015 16:26:58 -0200 Subject: Add support for opening comments in sx-open-link --- sx-interaction.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sx-interaction.el') diff --git a/sx-interaction.el b/sx-interaction.el index d6fdb7f..7c686b5 100644 --- a/sx-interaction.el +++ b/sx-interaction.el @@ -143,6 +143,10 @@ Element can be a question, answer, or comment." (let ((data (sx--link-to-data link))) (sx-assoc-let data (cl-case .type + (comment + (sx-display-question + (sx-question-get-from-comment .site_par .id) 'focus) + (sx--find-in-buffer 'comment .id)) (answer (sx-display-question (sx-question-get-from-answer .site_par .id) 'focus) -- cgit v1.2.3