aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTianxiang Xiong <tianxiang.xiong@gmail.com>2017-09-07 01:58:37 -0700
committerTianxiang Xiong <tianxiang.xiong@gmail.com>2017-09-07 01:58:37 -0700
commit5f39cd0df9fa3d3c9740c505a1bd1c0e59804f20 (patch)
treed1eb4ead6d8e3bb4e6394966bc477c83bb955082
parent9e319417aff11004916436f1aa21f70c18f8c7c1 (diff)
Use `pop-to-buffer` instead of `display-buffer` for metadata
`pop-to-buffer` selects the buffer. With a single window, this allows the user to easily bury the metadata buffer and get back to reading the eBook in the single window.
-rw-r--r--nov.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/nov.el b/nov.el
index bd98752..06ab55c 100644
--- a/nov.el
+++ b/nov.el
@@ -478,7 +478,7 @@ the HTML is rendered with `shr-render-region'."
(insert (propertize "None" 'face 'italic)))
(insert "\n")))
(goto-char (point-min))))
- (display-buffer buffer)))
+ (pop-to-buffer buffer)))
(defun nov-next-chapter ()
"Go to the next chapter and render its document."