emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r109592: * subr.el (internal--after-w


From: Chong Yidong
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r109592: * subr.el (internal--after-with-selected-window): Fix typo.
Date: Tue, 14 Aug 2012 12:37:00 +0800
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 109592
fixes bug: http://debbugs.gnu.org/12193
author: Daiki Ueno  <address@hidden>
committer: Chong Yidong <address@hidden>
branch nick: trunk
timestamp: Tue 2012-08-14 12:37:00 +0800
message:
  * subr.el (internal--after-with-selected-window): Fix typo.
modified:
  lisp/ChangeLog
  lisp/subr.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2012-08-14 04:18:41 +0000
+++ b/lisp/ChangeLog    2012-08-14 04:37:00 +0000
@@ -1,3 +1,8 @@
+2012-08-14  Daiki Ueno  <address@hidden>
+
+       * subr.el (internal--after-with-selected-window): Fix typo
+       (Bug#12193).
+
 2012-08-14  Fabián Ezequiel Gallina  <address@hidden>
 
        Use `completion-table-dynamic' for completion functions.

=== modified file 'lisp/subr.el'
--- a/lisp/subr.el      2012-08-13 21:23:09 +0000
+++ b/lisp/subr.el      2012-08-14 04:37:00 +0000
@@ -3048,8 +3048,8 @@
          (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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]