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: Frame ordering Date: Fri, 11 Jun 2010 19:13:09 +0200 Message-ID: <4C126EA5.1050509@gmx.at> References: <8F18E079-3351-4398-B76B-6CF9169ACE9E@gmail.com> <4C123889.5060801@gmx.at> <597D28BE-ABE3-4FFF-84B1-1FBF9931293C@gmail.com> 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 1276276406 31633 80.91.229.12 (11 Jun 2010 17:13:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 Jun 2010 17:13:26 +0000 (UTC) Cc: Emacs-Devel devel To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 11 19:13:25 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 1ON7nH-0005C4-VE for ged-emacs-devel@m.gmane.org; Fri, 11 Jun 2010 19:13:24 +0200 Original-Received: from localhost ([127.0.0.1]:35427 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ON7nH-0000pq-80 for ged-emacs-devel@m.gmane.org; Fri, 11 Jun 2010 13:13:23 -0400 Original-Received: from [140.186.70.92] (port=33258 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ON7n7-0000of-Ga for emacs-devel@gnu.org; Fri, 11 Jun 2010 13:13:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ON7n6-00024e-F8 for emacs-devel@gnu.org; Fri, 11 Jun 2010 13:13:13 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:36385) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1ON7n6-00024N-3X for emacs-devel@gnu.org; Fri, 11 Jun 2010 13:13:12 -0400 Original-Received: (qmail invoked by alias); 11 Jun 2010 17:13:10 -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 (mp069) with SMTP; 11 Jun 2010 19:13:10 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19cHDw/PUtcAPQdcAfuNzsDm7BN3PZSfdHLDSyLRt AQZCZ7Izyvu0oi User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <597D28BE-ABE3-4FFF-84B1-1FBF9931293C@gmail.com> 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:125751 Archived-At: >> Why do you want to do this in do_switch_frame? > > I thought that would be a good place where to record the selection of a different frame. I'd write a simple function to reorder frames, make it callable from Lisp, and test it from there first. > Ah sorry, I forgot to show this. Here's what I meant. > > if (XINT (Flength (Vframe_list)) > 1) > { > Vframe_list = Fdelete (frame, Vframe_list); I'd use Fdelq here. > Vframe_list = nconc2 (Vframe_list, Fcons (frame, Qnil)); > } > > and something equivalent like Fnreverse (Fcons (frame, Fnreverse (Vframe_list))) does the same and I'd like to understand why. martin