# HG changeset patch # User Stefan Monnier # Date 1244126783 0 # Node ID ee8708a2ef167916d31cdf10e57954a2085aa027 # Parent e47b96db18de69c68473d6ba3b17d0c273781aa0 (delete-other-frames): Only delete frames on the same terminal (bug#3442). diff -r e47b96db18de -r ee8708a2ef16 lisp/ChangeLog --- a/lisp/ChangeLog Thu Jun 04 06:40:13 2009 +0000 +++ b/lisp/ChangeLog Thu Jun 04 14:46:23 2009 +0000 @@ -1,3 +1,8 @@ +2009-06-04 Stefan Monnier + + * frame.el (delete-other-frames): Only delete frames on the + same terminal (bug#3442). + 2009-06-04 Glenn Morris * calendar/solar.el (solar-n-hemi-seasons, solar-s-hemi-seasons): diff -r e47b96db18de -r ee8708a2ef16 lisp/frame.el --- a/lisp/frame.el Thu Jun 04 06:40:13 2009 +0000 +++ b/lisp/frame.el Thu Jun 04 14:46:23 2009 +0000 @@ -1485,6 +1485,10 @@ (setq frame (selected-frame))) (let* ((mini-frame (window-frame (minibuffer-window frame))) (frames (delq mini-frame (delq frame (frame-list))))) + ;; Only consider frames on the same terminal. + (dolist (frame (prog1 frames (setq frames nil))) + (if (eq (frame-terminal) (frame-terminal frame)) + (push frame frames))) ;; Delete mon-minibuffer-only frames first, because `delete-frame' ;; signals an error when trying to delete a mini-frame that's ;; still in use by another frame.