diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-12-17 12:36:37 -0200 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-12-17 12:36:37 -0200 |
commit | d202e1ebeddf98d3109c8f7352fceb8dd5c07eb7 (patch) | |
tree | 2d708e907fa02756c1802811c4da182d102e4b8f /sx-interaction.el | |
parent | 6b370f8dfc9ffbef757230732f5d158707d7f6e0 (diff) |
Fix buffer not updating after posting answers/edits.
Diffstat (limited to 'sx-interaction.el')
-rw-r--r-- | sx-interaction.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sx-interaction.el b/sx-interaction.el index 1e14062..92f0a63 100644 --- a/sx-interaction.el +++ b/sx-interaction.el @@ -93,10 +93,11 @@ If it's not a question, or if it is read, return DATA." If BUFFER is not live, nothing is done." (setq buffer (or buffer (current-buffer))) (when (buffer-live-p buffer) - (cond ((derived-mode-p 'sx-question-list-mode) - (sx-question-list-refresh 'redisplay 'no-update)) - ((derived-mode-p 'sx-question-mode) - (sx-question-mode-refresh 'no-update))))) + (with-current-buffer buffer + (cond ((derived-mode-p 'sx-question-list-mode) + (sx-question-list-refresh 'redisplay 'no-update)) + ((derived-mode-p 'sx-question-mode) + (sx-question-mode-refresh 'no-update)))))) (defun sx--copy-data (from to) "Copy all fields of alist FORM onto TO. |