]> git.eshelyaron.com Git - emacs.git/commitdiff
* subr.el (internal--after-with-selected-window): Fix typo.
authorDaiki Ueno <ueno@unixuser.org>
Tue, 14 Aug 2012 04:37:00 +0000 (12:37 +0800)
committerChong Yidong <cyd@gnu.org>
Tue, 14 Aug 2012 04:37:00 +0000 (12:37 +0800)
Fixes: debbugs:12193
lisp/ChangeLog
lisp/subr.el

index 8dc342ce9b965884f7d79280543df55373258c2b..7ee7ee9d27fc701b48e1ba8809a5ad0f5d28106a 100644 (file)
@@ -1,3 +1,8 @@
+2012-08-14  Daiki Ueno  <ueno@unixuser.org>
+
+       * subr.el (internal--after-with-selected-window): Fix typo
+       (Bug#12193).
+
 2012-08-14  Fabián Ezequiel Gallina  <fgallina@cuca>
 
        Use `completion-table-dynamic' for completion functions.
index 212632ff779823962652a90fd76010577700db82..4f566a3e1d354d5817f0ccd6e73dce2daf6c01c0 100644 (file)
@@ -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.