From 420e68b2a635e5c72f8f5db3e1b69dc89d26d7dd Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Wed, 21 Feb 2024 12:45:16 +0200 Subject: gnosis-review-note: Use pop-to-buffer --- gnosis.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnosis.el b/gnosis.el index b15e42f..7f7fde4 100644 --- a/gnosis.el +++ b/gnosis.el @@ -1028,9 +1028,9 @@ Used to reveal all clozes left with `gnosis-face-cloze-unanswered' face." (func-name (intern (format "gnosis-review-%s" (downcase type))))) (if (fboundp func-name) (progn - (with-current-buffer (switch-to-buffer (get-buffer-create "*gnosis*")) - (gnosis-mode) - (funcall func-name id))) + (pop-to-buffer (get-buffer-create "*gnosis*")) + (gnosis-mode) + (funcall func-name id)) (error "Malformed note type: '%s'" type)))) -- cgit v1.2.3