From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: Frame ordering Date: Sat, 12 Jun 2010 00:12:45 -0400 Message-ID: <5C8B465F-DEF1-4444-B6ED-A3772F2CFAB4@gmail.com> References: <8F18E079-3351-4398-B76B-6CF9169ACE9E@gmail.com> <4C123889.5060801@gmx.at> <597D28BE-ABE3-4FFF-84B1-1FBF9931293C@gmail.com> <4C126EA5.1050509@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1276316047 10596 80.91.229.12 (12 Jun 2010 04:14:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Jun 2010 04:14:07 +0000 (UTC) Cc: Emacs-Devel devel To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 12 06:14:06 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 1ONI6e-0001Sd-Oy for ged-emacs-devel@m.gmane.org; Sat, 12 Jun 2010 06:14:05 +0200 Original-Received: from localhost ([127.0.0.1]:44156 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONI6e-0002N4-4Y for ged-emacs-devel@m.gmane.org; Sat, 12 Jun 2010 00:14:04 -0400 Original-Received: from [140.186.70.92] (port=34046 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONI6W-0002Ko-3i for emacs-devel@gnu.org; Sat, 12 Jun 2010 00:13:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ONI6V-0000s4-3u for emacs-devel@gnu.org; Sat, 12 Jun 2010 00:13:55 -0400 Original-Received: from mail-vw0-f41.google.com ([209.85.212.41]:38847) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONI6U-0000qz-Uz for emacs-devel@gnu.org; Sat, 12 Jun 2010 00:13:55 -0400 Original-Received: by mail-vw0-f41.google.com with SMTP id 8so2230390vws.0 for ; Fri, 11 Jun 2010 21:13:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=uDC8lsjP5wrX1PNre9t3dkCSUpxIzM0UbWl956/0lOk=; b=Do5mK680JSRde/fbVHYsXs8O/82/RYGOeAEb4x1g1bSqFEEfGxNS3Dj8PaSrunYMpL BgJ40YxoMOGE05L8bPeMdmxfD+NsBPVMS+XWVI908/m+JR5A4Z/2LGF5fmUG6+9YQtBe aWu3japfD5S73Jn34yYtMW4duvcoMLii/cV8k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=NYOCR1lH2c5FrVRfkOpyZR8wUS45ShY6Pl0IXJmnqPAUukFVBehDm3XdNAGDvp9/vP DqCcyBqBXqgX13U1VJd/Y3dhZ13VSxzTzHxFPpLH+0MLFyST2qZ7CroQ1QVg08MFIVqt +1zrq9ukf8uefWj564xCofZIFWWiD6aLsTO0M= Original-Received: by 10.220.47.79 with SMTP id m15mr219326vcf.93.1276316034400; Fri, 11 Jun 2010 21:13:54 -0700 (PDT) Original-Received: from [192.168.1.17] (pool-96-235-7-98.pitbpa.east.verizon.net [96.235.7.98]) by mx.google.com with ESMTPS id h17sm444076vcr.27.2010.06.11.21.13.52 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 11 Jun 2010 21:13:53 -0700 (PDT) In-Reply-To: <4C126EA5.1050509@gmx.at> X-Mailer: Apple Mail (2.1078) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:125780 Archived-At: On Jun 11, 2010, at 1:13 PM, martin rudalics wrote: >=20 > I'd write a simple function to reorder frames, make it callable from > Lisp, and test it from there first. OK, that works.=20 What next? `handle-switch-frame' could be defined in Lisp anyway, calling the = current Fhandle_switch_frame primitive. That said, why did the same not work in do_switch_frame, and why did my = other variant (that I posted) lead to hangs and crashes? (global-set-key [switch-frame] 'my-handle-switch-frame) (defun my-handle-switch-frame ( event) (interactive "e") (handle-switch-frame event) (set-latest-frame (selected-frame))) DEFUN ("set-latest-frame", Fset_latest_frame, Sset_latest_frame, 1, 1, = 0, doc: /* Make FRAME the last frame in the frame list. */) (frame) Lisp_Object frame; { if (NILP (frame)) frame =3D selected_frame; if (!FRAMEP (frame)) return Qnil; Vframe_list =3D Fcons (frame, Fdelq (frame, Vframe_list)); return Qnil; /* don't return the new frame-list - see Fframe_list */ }