From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Window configurations Date: Mon, 07 Jun 2010 15:40:59 +0200 Message-ID: <4C0CF6EB.8010705@gmx.at> References: <4BB4CF6B.2000007@alice.it> <87bpcv1wvt.fsf@mail.jurta.org> <4BE13828.2030609@gmx.at> <87vdb2qo82.fsf@mail.jurta.org> <4BE27C17.3030005@gmx.at> <87vdav4vx5.fsf@mail.jurta.org> <4BE900E7.3090402@gmx.at> <87r5liqv8f.fsf@mail.jurta.org> <4BEA74DC.2060103@gmx.at> <87y6fns8qo.fsf@mail.jurta.org> <4BECF4D6.9030707@gmx.at> <87632na2af.fsf@mail.jurta.org> <4C03F1B5.8040708@gmx.at> <4C04D1BF.9070902@gmx.at> <87zkzcse1j.fsf@mail.jurta.org> <4C08B53C.7040304@gmx.at> <877hmezpvu.fsf@mail.jurta.org> <4C0A47BF.7010202@gmx.at> <87d3w5nuki.fsf@mail.jurta.org> <4C0B7AA6.2090400@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1275918077 26023 80.91.229.12 (7 Jun 2010 13:41:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 Jun 2010 13:41:17 +0000 (UTC) Cc: Juri Linkov , Emacs To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 07 15:41:15 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1OLcZn-000144-Dl for ged-emacs-devel@m.gmane.org; Mon, 07 Jun 2010 15:41:15 +0200 Original-Received: from localhost ([127.0.0.1]:54149 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OLcZm-0001nr-BU for ged-emacs-devel@m.gmane.org; Mon, 07 Jun 2010 09:41:14 -0400 Original-Received: from [140.186.70.92] (port=46639 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OLcZe-0001mx-VC for emacs-devel@gnu.org; Mon, 07 Jun 2010 09:41:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OLcZd-0000Gz-Pp for emacs-devel@gnu.org; Mon, 07 Jun 2010 09:41:06 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:55371) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OLcZd-0000Gb-Cr for emacs-devel@gnu.org; Mon, 07 Jun 2010 09:41:05 -0400 Original-Received: (qmail invoked by alias); 07 Jun 2010 13:41:02 -0000 Original-Received: from 62-47-38-253.adsl.highway.telekom.at (EHLO [62.47.38.253]) [62.47.38.253] by mail.gmx.net (mp006) with SMTP; 07 Jun 2010 15:41:02 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+7U1FtJYa7g76XeWg1g7IEhu6fEK+wq5JbnE0DM6 3R5rv5XfFbMeMu User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.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:125577 Archived-At: >> One of my favorite mysteries is why, when WINDOW is already selected, >> `select-window' should not set the current buffer. > > I think the answer is simply "because it's not needed". In contrast, > when we do have to change the selected window, we have to pay attention > to the point/window-point correspondence which makes it necessary to set > the buffer. Of course, this necessity could be made just internal. > > IOW, it's mostly accidental. What I meant was that the current implementation gives very contrived semantics. The test in (with-current-buffer buffer (with-selected-window window (eq (current-buffer) buffer) succeeds unless `window' was not selected and did not display `buffer' at the time `with-selected-window' was entered. martin