From 5f39cd0df9fa3d3c9740c505a1bd1c0e59804f20 Mon Sep 17 00:00:00 2001 From: Tianxiang Xiong Date: Thu, 7 Sep 2017 01:58:37 -0700 Subject: 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. --- nov.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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." -- cgit v1.2.3