From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard G Riley Newsgroups: gmane.emacs.help Subject: Re: Emacs into focus Date: Thu, 07 Aug 2008 16:33:27 +0200 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1218120115 27102 80.91.229.12 (7 Aug 2008 14:41:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Aug 2008 14:41:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 07 16:42:46 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KR6hE-0005xR-TQ for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Aug 2008 16:42:33 +0200 Original-Received: from localhost ([127.0.0.1]:57524 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KR6gJ-0007OX-Ed for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Aug 2008 10:41:35 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!newsfeed.straub-nv.de!news.motzarella.org!motzarella.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 43 Original-X-Trace: reader.motzarella.org U2FsdGVkX19Ke2zxJ8N6hNAsI9WCWlgqot/0GM2N9WgblK/gzuAdk1lQXrrjBlEtkxWhsHetv0wZ5jtgYRnfmjEl0cjo8d0IVEnec1AGR83Y1n1cbsNxqpkdf+9FX+QVXvCpWSgOlJCZZ+sxFbU9Mg== Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Thu, 7 Aug 2008 14:33:29 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1/SlW4QYUX2cfL4aDpoZCstUiEqrovS0SvGyjv2Ebg0Iw== Cancel-Lock: sha1:wQvywGFhBSEadwEV8uTGAg28BdA= User-Agent: Emacs 22.2.1/No Gnus v0.11 Original-Xref: news.stanford.edu gnu.emacs.help:160893 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:56237 Archived-At: "Andrea Vettorello" writes: > On Thu, Aug 7, 2008 at 7:36 AM, Richard G Riley wrote: >> >> Can someone recommend the best way to have emacs come to the foreground >> on a Linux desktop? I'm trying to get emacsclient wired up properly so I >> can handle mailto URLS from iceweasel (firefox) properly. I have tried: >> >> ,---- >> | /usr/bin/emacsclient -e "(progn (raise-frame)(message-mail (substring \"$1\" 7) \"Subject\" '((\"from\" \"Richard Riley\"))))" >> `---- >> >> But raise-frame does not seem to work on my Gnome desktop. >> >> Replacing raise-frame with (bring-on-top) >> >> where >> >> ,---- >> | (defun bring-on-top() >> | (interactive) >> | (x-send-client-message >> | nil 0 nil "_NET_WM_STATE" 32 '(2 "_NET_WM_STATE_FULLSCREEN" 1)) >> | ) >> `---- >> >> Does work but removes the WM border from the emacs frame. > > This won't help you a lot, but removing window decorations (and fill > screen) is the expected behaviour of _NET_WM_STATE_FULLSCREEN ( > http://standards.freedesktop.org/wm-spec/wm-spec-latest.html#id2551694 > ). > > Metacity, the default Gnome window manager, tries to "avoid focus > stealing" (I think this blog post explains its behaviour: > http://blogs.gnome.org/metacity/2007/12/24/stacking/ ), IIRC there > should be a gconf setting to tweak it but I'm not completely sure as I > don't use it... The thing is that other email clients come to the fg just fine via the mailto click. I'll dig around some more and maybe ask in the gtk+ irc channel.