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: emacsclient usage Date: Tue, 18 Dec 2007 10:58:58 +0100 Message-ID: <7d5440240712180158n567656cm23641e89695f8a93@mail.gmail.com> References: <6532e226-caed-43bb-923d-b2b26cc2031b@d21g2000prf.googlegroups.com> 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 1197971980 31013 80.91.229.12 (18 Dec 2007 09:59:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Dec 2007 09:59:40 +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 Dec 18 10:59:51 2007 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 1J4ZEs-0008WM-FC for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Dec 2007 10:59:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4ZEZ-0004ui-03 for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Dec 2007 04:59:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J4ZE9-0004su-3O for help-gnu-emacs@gnu.org; Tue, 18 Dec 2007 04:59:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J4ZE6-0004ri-6g for help-gnu-emacs@gnu.org; Tue, 18 Dec 2007 04:59:03 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4ZE5-0004rN-Mc for help-gnu-emacs@gnu.org; Tue, 18 Dec 2007 04:59:01 -0500 Original-Received: from rv-out-0910.google.com ([209.85.198.185]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J4ZE5-00080H-4s for help-gnu-emacs@gnu.org; Tue, 18 Dec 2007 04:59:01 -0500 Original-Received: by rv-out-0910.google.com with SMTP id c27so3830487rvf.6 for ; Tue, 18 Dec 2007 01:58:58 -0800 (PST) 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=llgfCd1YtNST2+NmZxpGVa+NW/E0wbV3ZM+s0LbyNV8=; b=diPYwPtKHIxnMKGOBMiZCFkNTCnn8BtIMwUVypyuYPr0dYT4DVAqn6P/k68ejxQMMoq+mPOmdhC0T5xWE4dXiNb6lGutcgCYuitXCAkmMSOT8gp3xJ4uX09UE9lUrBfdKKCGhnRuBbSrNw8tjpq3xA1JuUGnkpLpWxMQUWgRsqQ= 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=eanF0KpQcAvXZ9Rh8L7SyPso8pYubX+ivvxAGh955cj06G5Z2VcCUPHqPCCL3fJ8D/00s+iudoOuzyAI9GO6YtULQd8H/O8CpWW0Eblty75eV9tjE8y23JfzUADrxb1s6yfusJC3OgGH+rrPWKAcB6WhfdEvs+ARPF2Nscrh8vg= Original-Received: by 10.141.178.5 with SMTP id f5mr4750208rvp.191.1197971938088; Tue, 18 Dec 2007 01:58:58 -0800 (PST) Original-Received: by 10.141.77.4 with HTTP; Tue, 18 Dec 2007 01:58:58 -0800 (PST) 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:50173 Archived-At: On Dec 18, 2007 9:07 AM, rustom wrote: > > On Dec 17, 8:03 pm, Nikos Apostolakis wrote: > > rustom writes: [...] > > Thanks that was quite helpful. > Ive set gconf-editor->apps->metacity->keybinding-commands->command_1 > to the foll: > > bash -c "wmctrl -a emacs-snapshot-gtk; emacsclient.emacs-snapshot -e > '(remember)'" > > The wmctrl is required because the emacsclient on its own does not > activate the emacs window. > And because of that the bash -c is required. > Is there a neater way? I've mangled emacsclient.c to spawn an Emacs instance if none is found running, and IIRC changed the Gnome mime type to use emacsclient to edit text files... -- Andrea