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: Sun, 13 Jun 2010 22:42:40 -0400 Message-ID: <1F24A2FE-EF86-4E03-84CF-69748A482C64@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> <4DF4317D-522E-4948-9C19-ED1252BF36B2@gmail.com> <4C133EDF.8070407@gmx.at> <77C00490-801D-47B9-83BC-32D786F1F684@gmail.com> 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 1276483374 29785 80.91.229.12 (14 Jun 2010 02:42:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Jun 2010 02:42:54 +0000 (UTC) Cc: martin rudalics , Emacs-Devel devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 14 04:42:53 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 1ONzdU-0001ZY-JN for ged-emacs-devel@m.gmane.org; Mon, 14 Jun 2010 04:42:52 +0200 Original-Received: from localhost ([127.0.0.1]:51960 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONzdT-00031b-VN for ged-emacs-devel@m.gmane.org; Sun, 13 Jun 2010 22:42:51 -0400 Original-Received: from [140.186.70.92] (port=35829 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONzdM-00031V-GX for emacs-devel@gnu.org; Sun, 13 Jun 2010 22:42:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ONzdL-0006tq-HN for emacs-devel@gnu.org; Sun, 13 Jun 2010 22:42:44 -0400 Original-Received: from mail-vw0-f41.google.com ([209.85.212.41]:33323) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONzdL-0006tj-EQ for emacs-devel@gnu.org; Sun, 13 Jun 2010 22:42:43 -0400 Original-Received: by vws5 with SMTP id 5so873319vws.0 for ; Sun, 13 Jun 2010 19:42:42 -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=QOgqxiRzOKKjYrN1hpfQFmzQZEjCvXXInsvQWG6ETtg=; b=eJ03KnR1IjAjCo93gWiIfwR1LwjuOUAblUZcaFD10olwCYgnzijd8oB/rH8B44Kmmh GG1hAss9Epk+HJyQxg3QdnKGS8yAjJQJOb/cNxA3zs0GkigbeQq8W2guruSNrZnV6BFa d938prnOhtRemUaevHfgd9r5Rw+tpiqdiyi9c= 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=a7gc4U0B6cBmp6nP5N13MN7J7NFJ11H4IztmoH8bYKNJo5G7OjDmVdbSDUyIenGqzJ Q4Eip9l9ev2KDCarp0LTq79Sa9os0i3ekiXXs1PKcTUtvQZtWTmFvHAbNN3gbYcX9K8v z3GSwZdflY0JUjCKlsP1GQGrwLYA8qXbYIwQU= Original-Received: by 10.224.72.72 with SMTP id l8mr1810664qaj.165.1276483362533; Sun, 13 Jun 2010 19:42: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 i10sm11762425qcb.41.2010.06.13.19.42.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 13 Jun 2010 19:42:41 -0700 (PDT) In-Reply-To: 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:125887 Archived-At: On Jun 13, 2010, at 8:30 PM, Stefan Monnier wrote: >> Should Vframe_list not be updated in the event loop? >=20 > Why not update it in Fselect_frame, and obey the `norecord' argument? Tried that - doesn't catch clicks into the frame by the user. However, I got the code below to work at the end of do_switch_frame. =20= I think this would be a substantial, and good change to the way frames = are ordered. Are you OK with this? *** ../../em24.git/src/frame.c 2010-04-30 18:30:17.000000000 -0400 --- frame.c 2010-06-13 22:33:19.000000000 -0400 *************** *** 881,886 **** --- 881,893 ---- the one you're actually typing in. */ internal_last_event_frame =3D Qnil; =20 + if (NILP (norecord)) + { + BLOCK_INPUT; + Vframe_list =3D Fcons (frame, Fdelq (frame, Vframe_list)); + UNBLOCK_INPUT; + } +=20 return frame; } =20