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: Fri, 11 Jun 2010 17:04:23 -0400 Message-ID: <4DF4317D-522E-4948-9C19-ED1252BF36B2@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 1276316036 10570 80.91.229.12 (12 Jun 2010 04:13:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Jun 2010 04:13:56 +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:13:54 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 1ONI6S-0001Pr-Ee for ged-emacs-devel@m.gmane.org; Sat, 12 Jun 2010 06:13:52 +0200 Original-Received: from localhost ([127.0.0.1]:44053 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONI6R-0002HG-Rr for ged-emacs-devel@m.gmane.org; Sat, 12 Jun 2010 00:13:51 -0400 Original-Received: from [140.186.70.92] (port=34023 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONI6N-0002HB-9X for emacs-devel@gnu.org; Sat, 12 Jun 2010 00:13:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ONI6M-0000r8-94 for emacs-devel@gnu.org; Sat, 12 Jun 2010 00:13:47 -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 1ONI6M-0000qz-5Q for emacs-devel@gnu.org; Sat, 12 Jun 2010 00:13:46 -0400 Original-Received: by vws8 with SMTP id 8so2230390vws.0 for ; Fri, 11 Jun 2010 21:13:44 -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=77dpGHMsckpGP2ezH5IP/8fVaOWhyhS3AJCZnRvr06w=; b=j+1gQKZzDdWQ+Xcux8e4jaZdBHzbZ5ihHpcB+etWE73RjEiS+fQ/jFFwHKMHYuFboL T5e74vhYVM6iq1tzLBrRsXOrTga1Xr3UnlEpJxm5Eubgoiu7KO9CogwOxjO++I9x9HXZ A1EFhL94q1K6tY8aPmH7VX/fl55M/O7mBciyI= 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=IhFbQXVutNXz9dSfDh7/WLp8lj0v34/CR9BYphnjr/IO5mLA/IT5sSTfBenuG2GfpW Flunn4n1Lh4q7o/CHQkp3w6AAcPZ0AaMEEpFzfqHmJiSrLbYlyBbeM8ojhrhfncl0Zus Ml8wTR+N7ARYOfVIdP2Kb/fRNt1X1Ejfn9CG4= Original-Received: by 10.220.63.207 with SMTP id c15mr256852vci.85.1276316022998; Fri, 11 Jun 2010 21:13:42 -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.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 11 Jun 2010 21:13:41 -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:125779 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))) =20 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 */ }