summaryrefslogtreecommitdiff
path: root/lisp/register.el
diff options
context:
space:
mode:
authorMartin Rudalics <rudalics@gmx.at>2014-03-16 10:26:58 +0100
committerMartin Rudalics <rudalics@gmx.at>2014-03-16 10:26:58 +0100
commitb92631bf71bb029af7a5b4bcf3acd6b4484a4afa (patch)
tree3c9770441c520b285461935751643fcc8aa5e43c /lisp/register.el
parentd939cbea79c40740333cf779296d94ee265eceb5 (diff)
downloademacs-b92631bf71bb029af7a5b4bcf3acd6b4484a4afa.tar.gz
Fix behavior of with-temp-buffer-window (Bug#16816, Bug#17007).
* window.el (with-temp-buffer-window): Don't make BUFFER-OR-NAME current (Bug#16816, Bug#17007). (with-current-buffer-window): New macro doing the same as `with-temp-buffer-window' but with BUFFER-OR-NAME current. * help.el (help-print-return-message): Warn in doc-string to not use this in `with-help-window'. (describe-bindings-internal): Call `describe-buffer-bindings' from within help buffer. See Juanma's scenario in (Bug#16816). (with-help-window): Update doc-string. * dired.el (dired-mark-pop-up): * files.el (save-buffers-kill-emacs): * register.el (register-preview): Use `with-current-buffer-window' instead of `with-temp-buffer-window'. * display.texi (Temporary Displays): Rewrite descriptions of `with-output-to-temp-buffer' and `with-temp-buffer-window'. * help.texi (Help Functions): Rewrite description of `with-help-window'.
Diffstat (limited to 'lisp/register.el')
-rw-r--r--lisp/register.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/register.el b/lisp/register.el
index bfe3e35223f..1c64a9a8e64 100644
--- a/lisp/register.el
+++ b/lisp/register.el
@@ -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)))