From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Add function to make frame topmost? Date: Sun, 2 May 2010 00:44:21 +0200 Message-ID: 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=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1272753893 9455 80.91.229.12 (1 May 2010 22:44:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 1 May 2010 22:44:53 +0000 (UTC) Cc: =?UTF-8?Q?Jan_Dj=C3=A4rv?= , Stefan Monnier , Emacs-Devel devel To: David De La Harpe Golden Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 02 00:44:51 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 1O8LQZ-0000el-F6 for ged-emacs-devel@m.gmane.org; Sun, 02 May 2010 00:44:51 +0200 Original-Received: from localhost ([127.0.0.1]:41705 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8LQY-0004zz-UF for ged-emacs-devel@m.gmane.org; Sat, 01 May 2010 18:44:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O8LQU-0004zt-8W for emacs-devel@gnu.org; Sat, 01 May 2010 18:44:46 -0400 Original-Received: from [140.186.70.92] (port=51624 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8LQS-0004zc-2I for emacs-devel@gnu.org; Sat, 01 May 2010 18:44:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O8LQQ-0007Xc-DY for emacs-devel@gnu.org; Sat, 01 May 2010 18:44:43 -0400 Original-Received: from mail-fx0-f41.google.com ([209.85.161.41]:44109) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8LQQ-0007XS-7u for emacs-devel@gnu.org; Sat, 01 May 2010 18:44:42 -0400 Original-Received: by fxm1 with SMTP id 1so1195536fxm.0 for ; Sat, 01 May 2010 15:44:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=6R1d3gVQ6tvi2IsoJvcR7EC7uQ0lyNSrichGHpTMLwk=; b=mQOICyOq8tPUtyZWCLie37pzTaOuq2aFdnU8CIMLS15BCIPZGt5POy0NZ+CjTqmD6G siKThCFCBfBBbnBQwks+QXSNZqRq45jkd2tZ8a7WIPLpDF1SRMLjlTzzdMOGgWWoPyXI kluIuBCRPE1xIfWeeA4lD/j5PMbqSrDlceiKE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=r68TD+Dk2+ruZmliIewRaMKp16QvbXM97r9u8lAUXYgG/ctNrNu8XCPGckifi4mNB/ 5qqLehUBul/e98IsJV5+P7fZ55x+LKaWWoTH3ZNEpCKKnjdcx324Lu2vvyJKnaiWQpH4 /kgDO95Fj8WAWjfpIQf2zi3RcOexRW7kyrczI= Original-Received: by 10.239.180.19 with SMTP id f19mr1234769hbg.91.1272753881136; Sat, 01 May 2010 15:44:41 -0700 (PDT) Original-Received: by 10.239.164.81 with HTTP; Sat, 1 May 2010 15:44:21 -0700 (PDT) In-Reply-To: <4BDC6CE7.8060400@harpegolden.net> 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:124402 Archived-At: On Sat, May 1, 2010 at 8:03 PM, David De La Harpe Golden wrote: > Stefan Monnier wrote: >> >> SM> An alternative is to use the poor-man's OO system already in place a= nd >> SM> just add a set_frame_topmost_hook to the terminal object. >> >> Check src/termhooks.h where "struct terminal" is defined. >> >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0Stefan "who though it would be obvious" >> > > I'm wasn't sure why you say terminal rather than frame, though either > way it's a poor-man's OO system dealie. =C2=A0Futzing 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. > > I guess there is a danger that if it is added it might be abused, but FWI= W, > a patch that adds 'stacking-layer (and 'shaded, which I just thought I'd = do > while I was there) frame parameters for X11 by analogy with 'sticky is > straightforward and attached, it might be independently vaguely useful fo= r > some users? =C2=A0But don't expect me to argue strongly for its inclusion= . > > Implementation of a w32 x_set_stacking_layer toggling TOPMOST > should be straightforward (though I don't see a BOTTOMMOST, so I guess th= ey > have a layer less than us). =C2=A0I have found that there are add-ons for= windows > that do use TOPMOST to produce an "Always on top" setting very much akin = to > a typical X11 window manager: > http://www.ghacks.net/2008/09/12/window-always-on-top-with-power-menu/ > so perhaps it's about as valid a thing to add on w32 as the x11 > stacking-layer support is on x11. Thanks. Yes, it looks easy to add the w32 part. (And there is no BOTTOMMOST= .) I think this is useful for reminders/appointments, log tail buffers etc.