diff options
| author | Martin Rudalics | 2014-02-21 12:04:27 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2014-02-21 12:04:27 +0100 |
| commit | 2ed94e04988f8b85e43d150955d712bd6324b392 (patch) | |
| tree | 1f7398b438b16913a799317ab84047f36f43d866 | |
| parent | c6e08d12a9c9c2e56a90e1194988cd801ccd4553 (diff) | |
| download | emacs-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/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/window.el | 2 |
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 | |||
| 18 | 2014-02-21 Michael Albinus <michael.albinus@gmx.de> | 21 | 2014-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) |