From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: How to jump to running emacs with emacsclient Date: Mon, 28 Jun 2010 03:42:27 +0200 Message-ID: References: <87vd948e4h.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1277689407 8588 80.91.229.12 (28 Jun 2010 01:43:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 28 Jun 2010 01:43:27 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Dan Davison To: Juanma Barranquero Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 28 03:43:22 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 1OT3NW-0003Es-HK for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Jun 2010 03:43:21 +0200 Original-Received: from localhost ([127.0.0.1]:44604 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OT3NU-0000qx-6T for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Jun 2010 21:43:16 -0400 Original-Received: from [140.186.70.92] (port=51691 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OT3N5-0000qs-0W for help-gnu-emacs@gnu.org; Sun, 27 Jun 2010 21:42:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OT3N3-0000jo-Rx for help-gnu-emacs@gnu.org; Sun, 27 Jun 2010 21:42:50 -0400 Original-Received: from mail-gw0-f41.google.com ([74.125.83.41]:57060) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OT3N3-0000jZ-OZ for help-gnu-emacs@gnu.org; Sun, 27 Jun 2010 21:42:49 -0400 Original-Received: by gwj18 with SMTP id 18so114539gwj.0 for ; Sun, 27 Jun 2010 18:42:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=ml8ILaTWmqg9Uuvh7qtUyZJe2QwzgI7vHj1kAxwUNQQ=; b=NEouWJknRZeoERhSF/fMXHbZ48jY5el+DfaCQcJ+QIqkDk2QQDumCGm4FoxzLoX1mM VBvZj1lHbmsHqqSNw8yu7FKXOHRO0HrKqWTmVhGxP2naJhgU1k285EesnKUvfuMVvZ62 BCJ4W+qEP9i47Delyk6K9IevK4t45iTTaLCEs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=w5a51hvUjrIHzHYgY8t1k8F0A1Lux7jn/SzQhOW1QkKtEFBXGuKeo5YvMVigSYLE9i qyOzeUXW58tPS5YNiIRAus+nR/9J+8W2OIHNVfnvw0s9+sjz8qYxuN7uGWkWjLGF8Mo0 bLIkNWYByxaBfpP4wlkZs0qKN+e1qjajgJXY0= Original-Received: by 10.100.8.1 with SMTP id 1mr17115anh.188.1277689368248; Sun, 27 Jun 2010 18:42:48 -0700 (PDT) Original-Received: by 10.100.225.8 with HTTP; Sun, 27 Jun 2010 18:42:27 -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:73989 Archived-At: On Mon, Jun 28, 2010 at 12:11 AM, Juanma Barranquero wro= te: > On Sun, Jun 27, 2010 at 21:33, Dan Davison wrote: >> Using gnome on ubuntu, a shell command like > >> 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? > > You could try perhaps > > =C2=A0 emacsclient -n --eval '(progn (raise-frame) > (select-frame-set-input-focus (selected-frame)))' Doesn't select-frame-set-input-focus do raise-frame?