diff options
| author | Christopher Schmidt | 2012-07-25 11:43:12 +0200 |
|---|---|---|
| committer | Martin Rudalics | 2012-07-25 11:43:12 +0200 |
| commit | f08088e354f5933e0df618c80ccbf2635bb45bef (patch) | |
| tree | ad26bd7d8e2d01abb29a3efacec78d15a4ee21da | |
| parent | 8137e7b3165ea5dffc66a0a49f34716df0c00c2d (diff) | |
| download | emacs-f08088e354f5933e0df618c80ccbf2635bb45bef.tar.gz emacs-f08088e354f5933e0df618c80ccbf2635bb45bef.zip | |
In pp-display-expression select old selected window only if it is still live (Bug#12034).
* emacs-lisp/pp.el (pp-display-expression): Select old selected
window only if it is still live (Bug#12034).
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/pp.el | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5dbd7fb4bf1..95f59c65fc7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-07-25 Christopher Schmidt <christopher@ch.ristopher.com> | ||
| 2 | |||
| 3 | * emacs-lisp/pp.el (pp-display-expression): Select old selected | ||
| 4 | window only if it is still live (Bug#12034). | ||
| 5 | |||
| 1 | 2012-07-25 Martin Rudalics <rudalics@gmx.at> | 6 | 2012-07-25 Martin Rudalics <rudalics@gmx.at> |
| 2 | 7 | ||
| 3 | * subr.el (redirect-frame-focus): Add advertised calling | 8 | * subr.el (redirect-frame-focus): Add advertised calling |
diff --git a/lisp/emacs-lisp/pp.el b/lisp/emacs-lisp/pp.el index 48e0d6d6a21..30c16b51b9e 100644 --- a/lisp/emacs-lisp/pp.el +++ b/lisp/emacs-lisp/pp.el | |||
| @@ -110,7 +110,8 @@ after OUT-BUFFER-NAME." | |||
| 110 | (progn | 110 | (progn |
| 111 | (select-window window) | 111 | (select-window window) |
| 112 | (run-hooks 'temp-buffer-show-hook)) | 112 | (run-hooks 'temp-buffer-show-hook)) |
| 113 | (select-window old-selected) | 113 | (when (window-live-p old-selected) |
| 114 | (select-window old-selected)) | ||
| 114 | (message "See buffer %s." out-buffer-name))) | 115 | (message "See buffer %s." out-buffer-name))) |
| 115 | (message "%s" (buffer-substring (point-min) (point))) | 116 | (message "%s" (buffer-substring (point-min) (point))) |
| 116 | )))))) | 117 | )))))) |