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: Emacs into focus Date: Thu, 07 Aug 2008 07:36:26 +0200 Organization: A noiseless patient Spider Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1218087848 21903 80.91.229.12 (7 Aug 2008 05:44:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Aug 2008 05:44:08 +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 07:44:59 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 1KQyJ0-0001rc-SD for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Aug 2008 07:44:59 +0200 Original-Received: from localhost ([127.0.0.1]:42148 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KQyI5-00032o-AC for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Aug 2008 01:44:01 -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: 33 Original-X-Trace: feeder.motzarella.org U2FsdGVkX1+4LlBkQsHkKsho6rvWTyFEo3/QeifUIc5RsrbcdEdBpw0cqOjYQA9Z00dpLchZEELsBJdMKKlWew2NpCmoB2peApRitgJ6pRlwptGHLSrpeh2pn4rvdLvSKRRt5VkY0+9C28dWSbZ2cw== Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Thu, 7 Aug 2008 05:36:32 +0000 (UTC) X-Auth-Sender: U2FsdGVkX19Ve/t2wK28HnWFMdGw6XV/VjRzNg8HXCc4SOPCGOFqPg== Cancel-Lock: sha1:tllIejNLqda1YW+dkJMbkLwZVWE= User-Agent: Emacs 22.2.1/No Gnus v0.11 Original-Xref: news.stanford.edu gnu.emacs.help:160884 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:56228 Archived-At: 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. Does anyone have a cleaner solution? regards r.