From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Spiers Subject: Re: hotkeys for org in gnome Date: Mon, 24 Dec 2007 12:32:58 +0000 Message-ID: <20071224123258.GC5797@atlantic.linksys.moosehall> References: <20071217152035.GH13112@atlantic.linksys.moosehall> <18278.39083.265689.69826@gargle.gargle.HOWL> <87ejde7mmf.fsf@bzg.ath.cx> <20071224010216.GB5797@atlantic.linksys.moosehall> Reply-To: Adam Spiers Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J6mUT-00022x-SK for emacs-orgmode@gnu.org; Mon, 24 Dec 2007 07:33:05 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J6mUS-00021Q-BF for emacs-orgmode@gnu.org; Mon, 24 Dec 2007 07:33:05 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J6mUS-00021N-6M for emacs-orgmode@gnu.org; Mon, 24 Dec 2007 07:33:04 -0500 Received: from mail.beimborn.com ([70.84.38.100]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J6mUR-00058L-VR for emacs-orgmode@gnu.org; Mon, 24 Dec 2007 07:33:04 -0500 Received: from mail.beimborn.com (localhost.localdomain [127.0.0.1]) by mail.beimborn.com (8.12.11.20060308/8.12.8) with ESMTP id lBOCX2fi023303 for ; Mon, 24 Dec 2007 06:33:02 -0600 Received: from localhost (localhost [[UNIX: localhost]]) by mail.beimborn.com (8.12.11.20060308/8.12.11/Submit) id lBOCX2m6023296 for emacs-orgmode@gnu.org; Mon, 24 Dec 2007 12:33:02 GMT Content-Disposition: inline In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Rustom Mody (rustompmody@gmail.com) wrote: > On Dec 24, 2007 6:32 AM, Adam Spiers wrote: > > On Sat, Dec 22, 2007 at 11:30:52PM +0530, Rustom Mody wrote: > > > If anyone finds a way of streamlining this please post it! > > > > If it's the -c you don't like, you can always dump the commands in a > > script. That's nice because it gives you more breathing space to do > > things like error checking on the exit code of the wmctrl. > > > What I dont like is having to use a shell call for some functionality that > is almost certainly available under elisp. Why not? The operation you're talking about (find an emacs, and ensure it is visible and focused) is more related to the window manager and X11 environment, so to me it makes much more sense to use wmctrl than look for some elisp. Plus, wmctrl is easy and already works, so why look for an alternative? I certainly wouldn't class this solution as an ugly hack; the only slightly ugly thing is embedding sh -c somewhere, but as I already pointed out, that is easily surmountable.