aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Rudalics2014-02-21 12:04:27 +0100
committerMartin Rudalics2014-02-21 12:04:27 +0100
commit2ed94e04988f8b85e43d150955d712bd6324b392 (patch)
tree1f7398b438b16913a799317ab84047f36f43d866
parentc6e08d12a9c9c2e56a90e1194988cd801ccd4553 (diff)
downloademacs-2ed94e04988f8b85e43d150955d712bd6324b392.tar.gz
emacs-2ed94e04988f8b85e43d150955d712bd6324b392.zip
In with-temp-buffer-window don't evaluate BODY within with-current-buffer (Bug#16816).
* window.el (with-temp-buffer-window): Don't evaluate BODY within with-current-buffer (Bug#16816).
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/window.el2
2 files changed, 4 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 51c52be172f..73b27f22ae6 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -15,6 +15,9 @@
15 (adjust-window-trailing-edge): Call window--resizable with 15 (adjust-window-trailing-edge): Call window--resizable with
16 correct TRAIL argument. 16 correct TRAIL argument.
17 17
18 (with-temp-buffer-window): Don't evaluate BODY within
19 with-current-buffer (Bug#16816).
20
182014-02-21 Michael Albinus <michael.albinus@gmx.de> 212014-02-21 Michael Albinus <michael.albinus@gmx.de>
19 22
20 * net/tramp.el (tramp-check-cached-permissions): 23 * net/tramp.el (tramp-check-cached-permissions):
diff --git a/lisp/window.el b/lisp/window.el
index 357d49d02a2..72b3138fd73 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -189,8 +189,8 @@ argument replaces this)."
189 `(let* ((,buffer (temp-buffer-window-setup ,buffer-or-name)) 189 `(let* ((,buffer (temp-buffer-window-setup ,buffer-or-name))
190 (standard-output ,buffer) 190 (standard-output ,buffer)
191 ,window ,value) 191 ,window ,value)
192 (setq ,value (progn ,@body))
192 (with-current-buffer ,buffer 193 (with-current-buffer ,buffer
193 (setq ,value (progn ,@body))
194 (setq ,window (temp-buffer-window-show ,buffer ,action))) 194 (setq ,window (temp-buffer-window-show ,buffer ,action)))
195 195
196 (if (functionp ,quit-function) 196 (if (functionp ,quit-function)