]> code.delx.au - gnu-emacs/blobdiff - lisp/register.el
Fix behavior of with-temp-buffer-window (Bug#16816, Bug#17007).
[gnu-emacs] / lisp / register.el
index bfe3e35223f27ab55b0cf5420e36c60487359635..1c64a9a8e6414d4ccc1eaf47e63c13827311dd4c 100644 (file)
@@ -134,7 +134,7 @@ Returns a string.")
 If SHOW-EMPTY is non-nil show the window even if no registers.
 Format of each entry is controlled by the variable `register-preview-function'."
   (when (or show-empty (consp register-alist))
-    (with-temp-buffer-window
+    (with-current-buffer-window
      buffer
      (cons 'display-buffer-below-selected
           '((window-height . fit-window-to-buffer)))