From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rustom Mody" Subject: Re: hotkeys for org in gnome Date: Mon, 24 Dec 2007 09:35:21 +0530 Message-ID: References: <20071217152035.GH13112@atlantic.linksys.moosehall> <18278.39083.265689.69826@gargle.gargle.HOWL> <87ejde7mmf.fsf@bzg.ath.cx> <20071224010216.GB5797@atlantic.linksys.moosehall> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0027225042==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J6eZI-0000VS-63 for emacs-orgmode@gnu.org; Sun, 23 Dec 2007 23:05:32 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J6eZE-0000Ub-Cr for emacs-orgmode@gnu.org; Sun, 23 Dec 2007 23:05:30 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J6eZE-0000UW-8V for emacs-orgmode@gnu.org; Sun, 23 Dec 2007 23:05:28 -0500 Received: from rv-out-0910.google.com ([209.85.198.184]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J6eZD-0002tN-LK for emacs-orgmode@gnu.org; Sun, 23 Dec 2007 23:05:27 -0500 Received: by rv-out-0910.google.com with SMTP id c27so1888547rvf.6 for ; Sun, 23 Dec 2007 20:05:21 -0800 (PST) In-Reply-To: <20071224010216.GB5797@atlantic.linksys.moosehall> 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 --===============0027225042== Content-Type: multipart/alternative; boundary="----=_Part_5329_13445030.1198469121821" ------=_Part_5329_13445030.1198469121821 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Dec 24, 2007 6:32 AM, Adam Spiers wrote: > On Sat, Dec 22, 2007 at 11:30:52PM +0530, Rustom Mody wrote: > > Note that this is not quite satisfactory to me because the raise-frame > > and the make-frame-visible are both redundant and insufficient. > > You lost me there. .emacs is only run at startup, after which the > window manager can do anything it wants with the positioning and > visibility of the frames - or was that your point? > > > Which is why I need the wmctrl. Which is why I need the bash -c. > > Right. I'm using -c as well. > The requirement is this: I should be able to -- with a single keystroke -- to get from any application into emacs into org mode. However make-frame-visible and raise-frame dont quite work: If emacs is iconized it gets de-iconized but if it is already one of the open windows below some other -- firefox, shell, whatever -- it *remains under that with the emacs tab blinking.* As a consequence Ive got to use the mouse (or shuffle through Alt-Tab). wmctrl does the job. But using it makes for two calls -- wmctrl and emacsclient -- and that makes for a packaging under a (inline) shell-script. > 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. ------=_Part_5329_13445030.1198469121821 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Dec 24, 2007 6:32 AM, Adam Spiers <orgmode@adamspiers.org> wrote:
On Sat, Dec 22, 2007 at 11:30:52PM +0530, Rustom Mody wrote:
> Note that this is not quite satisfactory to me because the raise-frame
> and the make-frame-visible are both redundant and insufficient.

You lost me there.  .emacs is only run at startup, after which the
window manager can do anything it wants with the positioning and
visibility of the frames - or was that your point?

> Which is why I need the wmctrl. Which is why I need the bash -c.

Right.  I'm using -c as well.

The requirement is this: I should be able to -- with a single keystroke -- to get from any application into emacs into org mode.  However make-frame-visible and raise-frame dont quite work: If emacs is iconized it gets de-iconized but if it is already one of the open windows below some other -- firefox, shell, whatever -- it remains under that with the emacs tab blinking. As a consequence Ive got to use the mouse (or shuffle through Alt-Tab).

wmctrl does the job. But using it makes for two calls -- wmctrl and emacsclient -- and that makes for a packaging under a (inline) shell-script.


> 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.

------=_Part_5329_13445030.1198469121821-- --===============0027225042== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0027225042==--