From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: save-frame-excursion? Date: Thu, 23 Jul 2009 23:16:10 -0400 Message-ID: References: <87ocrb8fy0.fsf@bzg.ath.cx> <4A691B47.1050102@sift.info> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1248405458 19352 80.91.229.12 (24 Jul 2009 03:17:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Jul 2009 03:17:38 +0000 (UTC) Cc: Bastien , emacs-devel@gnu.org To: Robert Goldman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 24 05:17:31 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MUBHm-00018w-GQ for ged-emacs-devel@m.gmane.org; Fri, 24 Jul 2009 05:17:30 +0200 Original-Received: from localhost ([127.0.0.1]:54681 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MUBHl-000751-Mw for ged-emacs-devel@m.gmane.org; Thu, 23 Jul 2009 23:17:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MUBGf-0006v3-Gc for emacs-devel@gnu.org; Thu, 23 Jul 2009 23:16:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MUBGa-0006qO-TG for emacs-devel@gnu.org; Thu, 23 Jul 2009 23:16:21 -0400 Original-Received: from [199.232.76.173] (port=35926 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MUBGa-0006q9-EM for emacs-devel@gnu.org; Thu, 23 Jul 2009 23:16:16 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:15863 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MUBGa-0005W2-44 for emacs-devel@gnu.org; Thu, 23 Jul 2009 23:16:16 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApIFAE/EaEpMCrRU/2dsb2JhbACBUc9OhA0Fhws X-IronPort-AV: E=Sophos;i="4.43,259,1246852800"; d="scan'208";a="42086877" Original-Received: from 76-10-180-84.dsl.teksavvy.com (HELO ceviche.home) ([76.10.180.84]) by ironport2-out.teksavvy.com with ESMTP; 23 Jul 2009 23:16:13 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 3E504B40C5; Thu, 23 Jul 2009 23:16:11 -0400 (EDT) In-Reply-To: <4A691B47.1050102@sift.info> (Robert Goldman's message of "Thu, 23 Jul 2009 21:24:07 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:113080 Archived-At: >> Do you know when/why it lost the focus? > The org frame lost focus because focus shifted to the frame that > contained the *Calendar* buffer. OK, so the next question is "why/when did focus shift to the *Calendar" buffer" (and just to be more clear by "why/when" I mean at the level of the Elisp code, which trail of calls causes it). > I am not that experienced in this area, but as far as I can tell > save-window-excursion covers similar ground, but only controls what > window is selected /within a given frame/. So this macro, on which I > based org-save-frame-excursion covers similar ground, but it does not > subsume this macro. I know neither subsumes the other (sadly). I just hope new ones can be made a bit more orthogonal (i.e. with less overlap). Stefan