]> git.eshelyaron.com Git - emacs.git/commitdiff
remember-notes: Use pop-to-buffer-same-window not switch-to-buffer
authorSean Whitton <spwhitton@spwhitton.name>
Sun, 8 May 2022 20:45:35 +0000 (13:45 -0700)
committerSean Whitton <spwhitton@spwhitton.name>
Sun, 8 May 2022 20:45:35 +0000 (13:45 -0700)
* lisp/textmodes/remember.el (remember-notes): Use
pop-to-buffer-same-window rather than switch-to-buffer, to allow
customization via display-buffer-alist.

lisp/textmodes/remember.el

index d65aea62862eeffd8cb3551066477189e28938d5..e72f86f7db616e4ed9a9698f87801b142e89b2a4 100644 (file)
@@ -653,7 +653,7 @@ to turn the *scratch* buffer into your notes buffer."
                    (remember-notes-mode 1)
                    (current-buffer)))))
     (when switch-to
-      (switch-to-buffer buf))
+      (pop-to-buffer-same-window buf))
     buf))
 
 (defun remember-notes--kill-buffer-query ()