Fix behavior of with-temp-buffer-window (Bug#16816, Bug#17007).
authorMartin Rudalics <rudalics@gmx.at>
Sun, 16 Mar 2014 09:26:58 +0000 (10:26 +0100)
committerMartin Rudalics <rudalics@gmx.at>
Sun, 16 Mar 2014 09:26:58 +0000 (10:26 +0100)
commitb92631bf71bb029af7a5b4bcf3acd6b4484a4afa
tree3c9770441c520b285461935751643fcc8aa5e43c
parentd939cbea79c40740333cf779296d94ee265eceb5
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'.
doc/lispref/ChangeLog
doc/lispref/display.texi
doc/lispref/help.texi
lisp/ChangeLog
lisp/dired.el
lisp/files.el
lisp/help.el
lisp/register.el
lisp/window.el