summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-02-21 12:45:16 +0200
committerThanos Apollo <[email protected]>2024-02-21 12:45:16 +0200
commit420e68b2a635e5c72f8f5db3e1b69dc89d26d7dd (patch)
tree89fee4c1096c8d16f54e336b4e2452eb405e3896 /gnosis.el
parentd0487b77d18d2280442eab217c5db97e27879a5d (diff)
gnosis-review-note: Use pop-to-buffer
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el6
1 files 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))))