From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: Transferring focus to Emacs Date: Tue, 14 Jun 2011 19:10:29 +0200 Message-ID: <87r56wbapm.fsf@gmail.com> References: <20110614094543.5928a5a6@gauss> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1308074401 11618 80.91.229.12 (14 Jun 2011 18:00:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 14 Jun 2011 18:00:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 14 19:59:57 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QWXu8-0006X3-TS for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Jun 2011 19:59:57 +0200 Original-Received: from localhost ([::1]:40419 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWXu7-00013b-K4 for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Jun 2011 13:59:56 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58157) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWX8b-0006EQ-Cd for help-gnu-emacs@gnu.org; Tue, 14 Jun 2011 13:10:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWX8Z-0008Nz-TU for help-gnu-emacs@gnu.org; Tue, 14 Jun 2011 13:10:49 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:58092) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWX8Z-0008Ne-He for help-gnu-emacs@gnu.org; Tue, 14 Jun 2011 13:10:47 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QWX8X-0007iU-GG for help-gnu-emacs@gnu.org; Tue, 14 Jun 2011 19:10:45 +0200 Original-Received: from 142.211.85.79.rev.sfr.net ([79.85.211.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Jun 2011 19:10:45 +0200 Original-Received: from thierry.volpiatto by 142.211.85.79.rev.sfr.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Jun 2011 19:10:45 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 16 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 142.211.85.79.rev.sfr.net User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:80zyJSRoKjYAXyVbFq13v7mNfQo= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81347 Archived-At: Joe Riel writes: > I want a separate program to give the focus to Emacs, and put the > cursor in a particular (existing) buffer. Try wmctrl: wmctrl -xa emacs emacsclient do_what_you_have _to_do wmctrl -xa go_back_to_initial_window (optional e.g firefox) -- A+ Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997