emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lisp/subr.el


From: Stefan Monnier
Subject: [Emacs-diffs] Changes to emacs/lisp/subr.el
Date: Fri, 28 May 2004 18:34:21 -0400

Index: emacs/lisp/subr.el
diff -c emacs/lisp/subr.el:1.392 emacs/lisp/subr.el:1.393
*** emacs/lisp/subr.el:1.392    Tue May 11 03:17:45 2004
--- emacs/lisp/subr.el  Fri May 28 22:33:35 2004
***************
*** 1796,1815 ****
  This does not alter the buffer list ordering.
  See also `with-temp-buffer'."
    (declare (indent 1) (debug t))
!   ;; Most of this code is a copy of save-selected-window.
!   `(let ((save-selected-window-window (selected-window))
!        (save-selected-window-alist
!         (mapcar (lambda (frame) (list frame (frame-selected-window frame)))
!                 (frame-list))))
       (unwind-protect
         (progn (select-window ,window 'norecord)
                ,@body)
-        (dolist (elt save-selected-window-alist)
-        (and (frame-live-p (car elt))
-             (window-live-p (cadr elt))
-             (set-frame-selected-window (car elt) (cadr elt))))
         (if (window-live-p save-selected-window-window)
-          ;; This is where the code differs from save-selected-window.
           (select-window save-selected-window-window 'norecord)))))
  
  (defmacro with-temp-file (file &rest body)
--- 1796,1806 ----
  This does not alter the buffer list ordering.
  See also `with-temp-buffer'."
    (declare (indent 1) (debug t))
!   `(let ((save-selected-window-window (selected-window)))
       (unwind-protect
         (progn (select-window ,window 'norecord)
                ,@body)
         (if (window-live-p save-selected-window-window)
           (select-window save-selected-window-window 'norecord)))))
  
  (defmacro with-temp-file (file &rest body)




reply via email to

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