From 7d806b1e6762e57ec5f2ff76b2a9451d6a92ba28 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Tue, 14 Aug 2012 12:37:00 +0800 Subject: [PATCH] * subr.el (internal--after-with-selected-window): Fix typo. Fixes: debbugs:12193 --- lisp/ChangeLog | 5 +++++ lisp/subr.el | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8dc342ce9b9..7ee7ee9d27f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2012-08-14 Daiki Ueno + + * subr.el (internal--after-with-selected-window): Fix typo + (Bug#12193). + 2012-08-14 Fabián Ezequiel Gallina Use `completion-table-dynamic' for completion functions. diff --git a/lisp/subr.el b/lisp/subr.el index 212632ff779..4f566a3e1d3 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -3048,8 +3048,8 @@ also `with-temp-buffer'." (not (eq (tty-top-frame) (nth 3 state))) (select-frame (nth 3 state) 'norecord))) ;; Then reset the actual selected-window. - (when (window-live-p (nth 2 state)) - (select-window (nth 2 state) 'norecord))) + (when (window-live-p (nth 1 state)) + (select-window (nth 1 state) 'norecord))) (defmacro with-selected-window (window &rest body) "Execute the forms in BODY with WINDOW as the selected window. -- 2.39.2