From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David De La Harpe Golden Newsgroups: gmane.emacs.devel Subject: Re: Add function to make frame topmost? Date: Sun, 02 May 2010 02:17:34 +0100 Message-ID: <4BDCD2AE.6090609@harpegolden.net> References: <4BDB5A6E.5060803@harpegolden.net> <4BDB8886.4050202@harpegolden.net> <4BDC6CE7.8060400@harpegolden.net> 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 1272763070 30268 80.91.229.12 (2 May 2010 01:17:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 2 May 2010 01:17:50 +0000 (UTC) Cc: =?ISO-8859-1?Q?Jan_Dj=E4rv?= , Lennart Borgman , Emacs-Devel devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 02 03:17:49 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 1O8Noa-0002MY-Jc for ged-emacs-devel@m.gmane.org; Sun, 02 May 2010 03:17:48 +0200 Original-Received: from localhost ([127.0.0.1]:55447 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8NoZ-0004d5-SG for ged-emacs-devel@m.gmane.org; Sat, 01 May 2010 21:17:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O8NoV-0004cH-4O for emacs-devel@gnu.org; Sat, 01 May 2010 21:17:43 -0400 Original-Received: from [140.186.70.92] (port=39482 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8NoU-0004b0-2o for emacs-devel@gnu.org; Sat, 01 May 2010 21:17:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O8NoS-0006LK-F4 for emacs-devel@gnu.org; Sat, 01 May 2010 21:17:41 -0400 Original-Received: from harpegolden.net ([65.99.215.13]:55817) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8NoS-0006LD-Bx for emacs-devel@gnu.org; Sat, 01 May 2010 21:17:40 -0400 Original-Received: from [87.198.54.194] (87-198-54-194.ptr.magnet.ie [87.198.54.194]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "David De La Harpe Golden", Issuer "David De La Harpe Golden Personal CA rev 3" (verified OK)) by harpegolden.net (Postfix) with ESMTP id 8E07196FD; Sun, 2 May 2010 02:17:36 +0100 (IST) User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109) In-Reply-To: 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:124406 Archived-At: Stefan Monnier wrote: > SM> An alternative is to use the poor-man's OO system already in place and > SM> just add a set_frame_topmost_hook to the terminal object. >>> Check src/termhooks.h where "struct terminal" is defined. >> I'm wasn't sure why you say terminal rather than frame, though either >> way it's a poor-man's OO system dealie. Futzing with _NET_WM_STATE_ABOVE is >> closely analogous to futzing with _NET_WM_STATE_STICKY from within emacs, so >> adding it to frame_parm_table makes most sense to me. > > frame_parm_table does not seem relevant since it doesn't dispatch on the > display type. Sorry, frame_parm_table itself just lists possible frame parameters. xfns.c, w32fns.c and nsfns.m then setup their [x|w32|ns]_frame_parm_handlers supplying their implementations for some or all of the frame parameters, used as the value of the FRAME_RIF(frame)->frame_parm_handlers Anyhow, it's how other several similar parameters are already handled, the patch was little more than a copy-paste of existing frame parameters.