From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: bug#3303: delete-frame raises old (invisible) frame Date: Tue, 19 May 2009 17:20:20 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <2C87549A-2553-4477-BF77-6258A1CC32BE@gmail.com> <6A510E91-6262-44CF-AA62-315DECB52EF6@gmail.com> <90E34251-C034-4169-91FE-22A28C94901F@gmail.com> <73A0DAB1-9D16-4E35-A9F7-E9E4CCEACC50@gmail.com> <5C67F4CF-F798-4972-90DE-0489B1E10706@gmail.com> Reply-To: YAMAMOTO Mitsuharu , 3303@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1242721944 17726 80.91.229.12 (19 May 2009 08:32:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 May 2009 08:32:24 +0000 (UTC) Cc: Adrian Robert To: David Reitter , 3303@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 19 10:32:17 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M6KkB-00046l-Rg for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 May 2009 10:32:16 +0200 Original-Received: from localhost ([127.0.0.1]:57645 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6KkA-00065h-TF for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 May 2009 04:32:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M6Kk5-00065X-5T for bug-gnu-emacs@gnu.org; Tue, 19 May 2009 04:32:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M6Kk0-00064u-Ds for bug-gnu-emacs@gnu.org; Tue, 19 May 2009 04:32:08 -0400 Original-Received: from [199.232.76.173] (port=35291 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6Kk0-00064j-1s for bug-gnu-emacs@gnu.org; Tue, 19 May 2009 04:32:04 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:51484) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M6Kjz-00024A-DA for bug-gnu-emacs@gnu.org; Tue, 19 May 2009 04:32:03 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4J8Vvba026624; Tue, 19 May 2009 01:31:57 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n4J8P4Lm023878; Tue, 19 May 2009 01:25:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: YAMAMOTO Mitsuharu Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 19 May 2009 08:25:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3303 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3303-submit@emacsbugs.donarmstrong.com id=B3303.124272122722964 (code B ref 3303); Tue, 19 May 2009 08:25:04 +0000 Original-Received: (at 3303) by emacsbugs.donarmstrong.com; 19 May 2009 08:20:27 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mathmail.math.s.chiba-u.ac.jp (ntp.math.s.chiba-u.ac.jp [133.82.132.2]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4J8KMFI022955 for <3303@emacsbugs.donarmstrong.com>; Tue, 19 May 2009 01:20:24 -0700 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 82EF82C44; Tue, 19 May 2009 17:20:20 +0900 (JST) In-Reply-To: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 =?UTF-8?Q?(Shij=C5=8D)?= APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 19 May 2009 04:32:08 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:28018 Archived-At: >>>>> On Mon, 18 May 2009 22:56:32 -0400, David Reitter said: >> I still don't understand the above code, for the reason already >> explained: you use `selected-frame' in a way that seems to imply >> that you expect make-frame to change the selected-frame, where its >> docstring says explicitly that it doesn't. > Ah, now I see why you don't understand. > The doc string says that the system may select it, and that's > exactly what happens here on Cocoa/OSX. That's due to the following NS-specific code in term/ns-win.el: ;; frame will be focused anyway, so select it ;; (if this is not done, modeline is dimmed until first interaction) (add-hook 'after-make-frame-functions 'select-frame) I would read this comment as "this is a workaround". TRT is to investigate why the modeline is dimmed until the first interaction and fix it, of course. Otherwise, the NS port will face hard-to-find incompatibilities in various elisp packages. The docstring says "The previously selected frame remains selected. However, the window system may select the new frame for its own reasons, for instance ...". In (non-NS) click-to-focus environments, the selection of the new frame does not happen immediately but does when the Lisp interpreter goes back to the command loop and reads events (cf. docstring of select-frame). YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp