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: Fri, 11 Jun 2010 15:20:30 +0200 Message-ID: <4C12381E.4030205@gmx.at> References: <4BB4CF6B.2000007@alice.it> <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> <4C0CF6EB.8010705@gmx.at> <4C0E4068.1000604@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 1276263989 16707 80.91.229.12 (11 Jun 2010 13:46:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 Jun 2010 13:46:29 +0000 (UTC) Cc: Juri Linkov , Emacs To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 11 15:46:27 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 1ON4Yw-00061B-Pd for ged-emacs-devel@m.gmane.org; Fri, 11 Jun 2010 15:46:26 +0200 Original-Received: from localhost ([127.0.0.1]:59095 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ON4AP-0005UJ-JO for ged-emacs-devel@m.gmane.org; Fri, 11 Jun 2010 09:21:01 -0400 Original-Received: from [140.186.70.92] (port=40729 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ON4A8-0005TA-Qz for emacs-devel@gnu.org; Fri, 11 Jun 2010 09:20:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ON4A6-0007a1-EQ for emacs-devel@gnu.org; Fri, 11 Jun 2010 09:20:44 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:50742) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1ON4A6-0007Vw-1p for emacs-devel@gnu.org; Fri, 11 Jun 2010 09:20:42 -0400 Original-Received: (qmail invoked by alias); 11 Jun 2010 13:20:32 -0000 Original-Received: from 62-47-33-63.adsl.highway.telekom.at (EHLO [62.47.33.63]) [62.47.33.63] by mail.gmx.net (mp065) with SMTP; 11 Jun 2010 15:20:32 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+9YLUZf1a9OLHkZSUiYPFiJT8v2eDM76SY5G2/sO vAKt0ON25a/FPD 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:125733 Archived-At: > Because when a window is selected, the window-point is actually stored > in the buffer's point. So when we deselect it we have to copy the > buffer's point back into the window-point. Thanks. No way to get around this. So I'd rather skip this part when the selected window does not change. Initially, I wanted to store a pointer to a window's buffer list in a window configuration but that apparently breaks things when restoring the configuration. IIUC I'd have to copy window buffer lists when saving a configuration since otherwise they can get messed up by an intermittent `delq'. Copying buffer lists is 100% not worth the trouble. Hence any change to a window's buffer list that happens inside a window excursion will get recorded (including selections that happen inside a window that is deleted when the configuration is restored). martin