From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Add function to make frame topmost? Date: Sat, 01 May 2010 08:25:57 +0300 Message-ID: <83hbmsw5ui.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1272691571 18438 80.91.229.12 (1 May 2010 05:26:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 1 May 2010 05:26:11 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Lennart Borgman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 01 07:26:10 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 1O85DN-0003sA-E9 for ged-emacs-devel@m.gmane.org; Sat, 01 May 2010 07:26:09 +0200 Original-Received: from localhost ([127.0.0.1]:58742 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O85DM-0002sC-MM for ged-emacs-devel@m.gmane.org; Sat, 01 May 2010 01:26:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O85DF-0002rf-0f for emacs-devel@gnu.org; Sat, 01 May 2010 01:26:01 -0400 Original-Received: from [140.186.70.92] (port=45156 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O85DD-0002qw-Dh for emacs-devel@gnu.org; Sat, 01 May 2010 01:26:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O85DC-0005Vr-0J for emacs-devel@gnu.org; Sat, 01 May 2010 01:25:59 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:61934) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O85DB-0005Va-Q0 for emacs-devel@gnu.org; Sat, 01 May 2010 01:25:57 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0L1Q00D006B8EZ00@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Sat, 01 May 2010 08:25:56 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.126.59.39]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L1Q00CZ8736BT60@a-mtaout21.012.net.il>; Sat, 01 May 2010 08:25:55 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:124386 Archived-At: > From: Lennart Borgman > Date: Fri, 30 Apr 2010 15:26:56 +0200 > Cc: Emacs-Devel devel > > To tie this together I think something like > > (defun set-frame-topmost (frame top activate) > (cond > ((eq (display-type) 'x-windows) (x-set-frame-topmost frame top activate)) > ((eq (display-type) 'w32) (w32-set-frame-topmost frame top activate)))) > > is needed. The function `display-type' does not exist yet of course. I think it does, it's called window-system. In this case, you need to call it with `frame' as its argument (to cater to platforms that support several different frame types in the same session).