From: Sean Whitton Date: Sun, 8 May 2022 20:45:35 +0000 (-0700) Subject: remember-notes: Use pop-to-buffer-same-window not switch-to-buffer X-Git-Tag: emacs-29.0.90~1910^2~893 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8d788a195f68bf7451635f7d4dfe86a6dc2bbda5;p=emacs.git remember-notes: Use pop-to-buffer-same-window not switch-to-buffer * lisp/textmodes/remember.el (remember-notes): Use pop-to-buffer-same-window rather than switch-to-buffer, to allow customization via display-buffer-alist. --- diff --git a/lisp/textmodes/remember.el b/lisp/textmodes/remember.el index d65aea62862..e72f86f7db6 100644 --- a/lisp/textmodes/remember.el +++ b/lisp/textmodes/remember.el @@ -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 ()