From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Andrea Vettorello" Newsgroups: gmane.emacs.help Subject: Re: Emacs into focus Date: Thu, 7 Aug 2008 13:01:24 +0200 Message-ID: <7d5440240808070401j3516d9a4t7d425518d46c4801@mail.gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1218107175 12251 80.91.229.12 (7 Aug 2008 11:06:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Aug 2008 11:06:15 +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 13:07:06 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 1KR3KC-0002YV-2P for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Aug 2008 13:06:32 +0200 Original-Received: from localhost ([127.0.0.1]:49295 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KR3JG-0007Ia-3C for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Aug 2008 07:05:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KR3FI-00052C-Uh for help-gnu-emacs@gnu.org; Thu, 07 Aug 2008 07:01:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KR3FG-00050D-VX for help-gnu-emacs@gnu.org; Thu, 07 Aug 2008 07:01:27 -0400 Original-Received: from [199.232.76.173] (port=59230 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KR3FG-0004zx-QS for help-gnu-emacs@gnu.org; Thu, 07 Aug 2008 07:01:26 -0400 Original-Received: from fk-out-0910.google.com ([209.85.128.190]:53003) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KR3FG-0005Av-B8 for help-gnu-emacs@gnu.org; Thu, 07 Aug 2008 07:01:26 -0400 Original-Received: by fk-out-0910.google.com with SMTP id 18so345624fkq.10 for ; Thu, 07 Aug 2008 04:01:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=OfUtjheWklj44d0DW5774NUinAGW0seXI5l3Ib7KA3o=; b=XxjnQOPkKUe6GDJkbfNW6F3qVnB3BdTFkBpmpLSmgFtTpjynJLWArTgzqB9ttXBpz1 hJw4odJvlpGB418bSr7rsd17KueOq5F5q1wSA8TSQNRHkEoJw5s9X8f6DBaVoyPiEERO aQWC7lg3suLAGIv4gsB9yoa1SiMDntfOOO0C8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=rDvss/UchZ4X2/Cc+orbt0PcUVVvd3tcL6MmRWBcNHM6PPIpltaQhSBkIgDQdnUZ9P W5TGrrBBy518/2wx8BEA6sTDUhL4jYRs+XXLcomOer6KLi2Raf+Pb1CU/Wyh9ZxwtgVM BzPz4YrPIlx22eZ7b3vn4g7xs8gfaPYMbOH0M= Original-Received: by 10.187.210.10 with SMTP id m10mr130392faq.19.1218106884695; Thu, 07 Aug 2008 04:01:24 -0700 (PDT) Original-Received: by 10.187.179.16 with HTTP; Thu, 7 Aug 2008 04:01:24 -0700 (PDT) In-Reply-To: Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:56233 Archived-At: 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... -- Andrea