From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris Newton Newsgroups: gmane.emacs.help Subject: Re: How to jump to running emacs with emacsclient Date: Tue, 29 Jun 2010 09:02:13 -0600 Message-ID: References: <87vd948e4h.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001636284314bb57c9048a2c85d8 X-Trace: dough.gmane.org 1277823791 14871 80.91.229.12 (29 Jun 2010 15:03:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 Jun 2010 15:03:11 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Dan Davison Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 29 17:03:08 2010 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.69) (envelope-from ) id 1OTcL4-0004ob-2O for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jun 2010 17:03:06 +0200 Original-Received: from localhost ([127.0.0.1]:52180 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTcL3-0008HQ-Bk for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jun 2010 11:03:05 -0400 Original-Received: from [140.186.70.92] (port=36131 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTcKK-0008Ed-BK for help-gnu-emacs@gnu.org; Tue, 29 Jun 2010 11:02:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OTcKF-0003kd-CJ for help-gnu-emacs@gnu.org; Tue, 29 Jun 2010 11:02:20 -0400 Original-Received: from mail-gw0-f41.google.com ([74.125.83.41]:34363) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTcKF-0003kQ-9y for help-gnu-emacs@gnu.org; Tue, 29 Jun 2010 11:02:15 -0400 Original-Received: by gwj18 with SMTP id 18so1082092gwj.0 for ; Tue, 29 Jun 2010 08:02:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:received :in-reply-to:references:date:message-id:subject:from:to:cc :content-type; bh=EdSK0ndGqK3cm8G2ZAF9uVGZzpHCTFFSpJFzlEhrwvE=; b=ghLGePLlSL3/vHoJjaKVXgx+ixyknPLXaBMawnBp91BH9wbD8P021OOrNMIfTlqEyE DYWVzycvu3d6R7v0yGjrN1m2355MITZFMEU81ZNwqkeRg5vzXdanl/Cmu/LtN4tD6AMg 9gTzaEGtgArQOSSrLiGAqQppnUolwopf4YciM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=QxgPMBsPJ0qwGM9+Z9LDp8sy6Q3b3oP1Ba5k/3fB1fF4VpYF1YzCaaQwx58fz2SLCX nptVcl1WW80jWYwt6iKGakb9PAbDWq7osoLVvCSCmD7mYpdCxX7R8SQteGHmWB0WAi9b ec3vKnzSAyD2eUXeNwW/+qxZNKjnO+sz6VlHs= Original-Received: by 10.229.183.8 with SMTP id ce8mr3932716qcb.276.1277823733683; Tue, 29 Jun 2010 08:02:13 -0700 (PDT) Original-Received: by 10.229.218.133 with HTTP; Tue, 29 Jun 2010 08:02:13 -0700 (PDT) Original-Received: by 10.229.218.133 with HTTP; Tue, 29 Jun 2010 08:02:13 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/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:74008 Archived-At: --001636284314bb57c9048a2c85d8 Content-Type: text/plain; charset=ISO-8859-1 Are you using metacity or compiz for your window manager? Metacity ignores raise requests in many versions. I noticed that raise finally works well in stock ubuntu 10.4 with gnome and compiz. Not sure about metacity though. On Jun 27, 2010 3:56 PM, "Dan Davison" wrote: Using gnome on ubuntu, a shell command like emacsclient /some/file switches window focus to the running emacs and visits the file. I'd like to do this without specifying a file to visit, so that I can (in gnome) bind a command to a key that will cause my window manager to simply jump to emacs and show the current buffer. How? Dan --001636284314bb57c9048a2c85d8 Content-Type: text/html; charset=ISO-8859-1

Are you using metacity or compiz for your window manager? Metacity ignores raise requests in many versions. I noticed that raise finally works well in stock ubuntu 10.4 with gnome and compiz. Not sure about metacity though.

On Jun 27, 2010 3:56 PM, "Dan Davison" <dandavison7@gmail.com> wrote:

Using gnome on ubuntu, a shell command like

emacsclient /some/file

switches window focus to the running emacs and visits the file.

I'd like to do this without specifying a file to visit, so that I can
(in gnome) bind a command to a key that will cause my window manager to
simply jump to emacs and show the current buffer. How?

Dan

--001636284314bb57c9048a2c85d8--