unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* xbindkeys and emacsclient
@ 2008-01-29 21:00 Joel J. Adamson
  2008-01-29 22:14 ` Thierry Volpiatto
  0 siblings, 1 reply; 9+ messages in thread
From: Joel J. Adamson @ 2008-01-29 21:00 UTC (permalink / raw)
  To: help-gnu-emacs

Howdy There,
Has anyone had success running Emacs commands through xbindkeys?

For example:

/home/joel: Zshell> emacsclient -e "(emms-pause)"

works, but from my .xbindkeysrc:
"emacsclient -e \"(emms-pause)\""
    Mod4 + l

doesn't work.  Any suggestions?

I'm using Slackware Linux 12.0 and Fvwm 2.5.23.

Joel
-- 
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA  02114
(617) 643-1432
(303) 880-3109

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: xbindkeys and emacsclient
  2008-01-29 21:00 xbindkeys and emacsclient Joel J. Adamson
@ 2008-01-29 22:14 ` Thierry Volpiatto
  2008-01-30 14:50   ` Joel J. Adamson
  0 siblings, 1 reply; 9+ messages in thread
From: Thierry Volpiatto @ 2008-01-29 22:14 UTC (permalink / raw)
  To: Joel J. Adamson; +Cc: help-gnu-emacs

jadamson@partners.org (Joel J. Adamson) writes:

> Howdy There,
> Has anyone had success running Emacs commands through xbindkeys?
>
> For example:
>
> /home/joel: Zshell> emacsclient -e "(emms-pause)"
>
> works, but from my .xbindkeysrc:
> "emacsclient -e \"(emms-pause)\""
>     Mod4 + l
>
> doesn't work.  Any suggestions?
>
> I'm using Slackware Linux 12.0 and Fvwm 2.5.23.
>
> Joel

Did you check your keys with xev ?
On fluxbox i set Mod4 l (no +)
-- 
A + Thierry
Pub key: http://pgp.mit.edu

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: xbindkeys and emacsclient
  2008-01-29 22:14 ` Thierry Volpiatto
@ 2008-01-30 14:50   ` Joel J. Adamson
  2008-01-30 17:06     ` Thierry Volpiatto
  0 siblings, 1 reply; 9+ messages in thread
From: Joel J. Adamson @ 2008-01-30 14:50 UTC (permalink / raw)
  To: Thierry Volpiatto; +Cc: help-gnu-emacs

Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:

> jadamson@partners.org (Joel J. Adamson) writes:
>
>> Howdy There,
>> Has anyone had success running Emacs commands through xbindkeys?
>>
>> For example:
>>
>> /home/joel: Zshell> emacsclient -e "(emms-pause)"
>>
>> works, but from my .xbindkeysrc:
>> "emacsclient -e \"(emms-pause)\""
>>     Mod4 + l
>>
>> doesn't work.  Any suggestions?
>>
>> I'm using Slackware Linux 12.0 and Fvwm 2.5.23.
>>
>> Joel
>
> Did you check your keys with xev ?
> On fluxbox i set Mod4 l (no +)

Good question: I just tried xev and the key didn't register (the Window
key). However, those same bindings worked with audacious, only the
command is different.

Joel

-- 
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA  02114
(617) 643-1432
(303) 880-3109

The information transmitted in this electronic communication is intended only
for the person or entity to whom it is addressed and may contain confidential
and/or privileged material. Any review, retransmission, dissemination or other
use of or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you received this
information in error, please contact the Compliance HelpLine at 800-856-1983 and
properly dispose of this information.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: xbindkeys and emacsclient
  2008-01-30 14:50   ` Joel J. Adamson
@ 2008-01-30 17:06     ` Thierry Volpiatto
  2008-01-30 18:15       ` Joel J. Adamson
  0 siblings, 1 reply; 9+ messages in thread
From: Thierry Volpiatto @ 2008-01-30 17:06 UTC (permalink / raw)
  To: Joel J. Adamson; +Cc: help-gnu-emacs

jadamson@partners.org (Joel J. Adamson) writes:

> Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
>
>> jadamson@partners.org (Joel J. Adamson) writes:
>>
>>> Howdy There,
>>> Has anyone had success running Emacs commands through xbindkeys?
>>>
>>> For example:
>>>
>>> /home/joel: Zshell> emacsclient -e "(emms-pause)"
>>>
>>> works, but from my .xbindkeysrc:
>>> "emacsclient -e \"(emms-pause)\""
>>>     Mod4 + l
>>>
>>> doesn't work.  Any suggestions?
>>>
>>> I'm using Slackware Linux 12.0 and Fvwm 2.5.23.
>>>
>>> Joel
>>
>> Did you check your keys with xev ?
>> On fluxbox i set Mod4 l (no +)
>
> Good question: I just tried xev and the key didn't register (the Window
> key). However, those same bindings worked with audacious, only the
> command is different.

You can use also xbindkeys -k (may be better than xev)
On ubuntu i have Mod4 == Mod4 + Super_L
So Mod4 + l is ==> Mod4 + Super_L + l
But i tried the same command than you and it didn't work.
I tried also with a script launching that command and it fail.
The command or the script work in a terminal.
I tried also with "xterm -e \"emacsclient -e \"(emms-pause)\"&"
And it fail also.
-- 
A + Thierry
Pub key: http://pgp.mit.edu

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: xbindkeys and emacsclient
  2008-01-30 17:06     ` Thierry Volpiatto
@ 2008-01-30 18:15       ` Joel J. Adamson
  2008-01-30 18:56         ` Thierry Volpiatto
  0 siblings, 1 reply; 9+ messages in thread
From: Joel J. Adamson @ 2008-01-30 18:15 UTC (permalink / raw)
  To: Thierry Volpiatto; +Cc: help-gnu-emacs

Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:

> jadamson@partners.org (Joel J. Adamson) writes:
>

> You can use also xbindkeys -k (may be better than xev)

Good suggestion, I did that and the keysyms are correct.  I think the
form of the command may be the problem; I may try it in scheme.

Hold the phone!

This command works:
"emacsclient -e '(emms-pause)'"
             Mod4 + l

Note the single/double quote alternation             
             
Talk to you soon,
Joel

-- 
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA  02114
(617) 643-1432
(303) 880-3109

The information transmitted in this electronic communication is intended only
for the person or entity to whom it is addressed and may contain confidential
and/or privileged material. Any review, retransmission, dissemination or other
use of or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you received this
information in error, please contact the Compliance HelpLine at 800-856-1983 and
properly dispose of this information.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: xbindkeys and emacsclient
  2008-01-30 18:15       ` Joel J. Adamson
@ 2008-01-30 18:56         ` Thierry Volpiatto
  2008-01-30 19:00           ` Joel J. Adamson
  0 siblings, 1 reply; 9+ messages in thread
From: Thierry Volpiatto @ 2008-01-30 18:56 UTC (permalink / raw)
  To: Joel J. Adamson; +Cc: help-gnu-emacs

jadamson@partners.org (Joel J. Adamson) writes:

> Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
>
>> jadamson@partners.org (Joel J. Adamson) writes:
>>
>
>> You can use also xbindkeys -k (may be better than xev)
>
> Good suggestion, I did that and the keysyms are correct.  I think the
> form of the command may be the problem; I may try it in scheme.
>
> Hold the phone!
>
> This command works:
> "emacsclient -e '(emms-pause)'"
>              Mod4 + l
>
> Note the single/double quote alternation             
>              
> Talk to you soon,
> Joel

I will try it on my laptop as soon as possible :)
Thanks.

-- 
A + Thierry
Pub key: http://pgp.mit.edu

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: xbindkeys and emacsclient
  2008-01-30 18:56         ` Thierry Volpiatto
@ 2008-01-30 19:00           ` Joel J. Adamson
  2008-01-30 20:11             ` Thierry Volpiatto
  0 siblings, 1 reply; 9+ messages in thread
From: Joel J. Adamson @ 2008-01-30 19:00 UTC (permalink / raw)
  To: Thierry Volpiatto; +Cc: help-gnu-emacs

Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:

> jadamson@partners.org (Joel J. Adamson) writes:
>
>> Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
>>
>>> jadamson@partners.org (Joel J. Adamson) writes:
>>>
>>
>>> You can use also xbindkeys -k (may be better than xev)
>>
>> Good suggestion, I did that and the keysyms are correct.  I think the
>> form of the command may be the problem; I may try it in scheme.
>>
>> Hold the phone!
>>
>> This command works:
>> "emacsclient -e '(emms-pause)'"
>>              Mod4 + l
>>
>> Note the single/double quote alternation             
>>              
>> Talk to you soon,
>> Joel
>
> I will try it on my laptop as soon as possible :)
> Thanks.

Do you know the best way to get a notification to show if an xbindkeys
command has failed?  My usual Unix ingenuity is failing me on this
one...

Talk to you soon,
Joel

-- 
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA  02114
(617) 643-1432
(303) 880-3109

The information transmitted in this electronic communication is intended only
for the person or entity to whom it is addressed and may contain confidential
and/or privileged material. Any review, retransmission, dissemination or other
use of or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you received this
information in error, please contact the Compliance HelpLine at 800-856-1983 and
properly dispose of this information.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: xbindkeys and emacsclient
  2008-01-30 19:00           ` Joel J. Adamson
@ 2008-01-30 20:11             ` Thierry Volpiatto
  2008-01-30 20:49               ` Joel J. Adamson
  0 siblings, 1 reply; 9+ messages in thread
From: Thierry Volpiatto @ 2008-01-30 20:11 UTC (permalink / raw)
  To: Joel J. Adamson; +Cc: help-gnu-emacs

jadamson@partners.org (Joel J. Adamson) writes:

> Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
>
>> jadamson@partners.org (Joel J. Adamson) writes:
>>
>>> Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
>>>
>>>> jadamson@partners.org (Joel J. Adamson) writes:
>>>>
>>>
>>>> You can use also xbindkeys -k (may be better than xev)
>>>
>>> Good suggestion, I did that and the keysyms are correct.  I think the
>>> form of the command may be the problem; I may try it in scheme.
>>>
>>> Hold the phone!
>>>
>>> This command works:
>>> "emacsclient -e '(emms-pause)'"
>>>              Mod4 + l
>>>
>>> Note the single/double quote alternation             
>>>              
>>> Talk to you soon,
>>> Joel
>>
>> I will try it on my laptop as soon as possible :)
>> Thanks.
>
> Do you know the best way to get a notification to show if an xbindkeys
> command has failed?  My usual Unix ingenuity is failing me on this
> one...
No, except xbindkeys -v , i found nothing .
The only output i have is if i have a wrong key, but not a wrong command.
-- 
A + Thierry
Pub key: http://pgp.mit.edu

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: xbindkeys and emacsclient
  2008-01-30 20:11             ` Thierry Volpiatto
@ 2008-01-30 20:49               ` Joel J. Adamson
  0 siblings, 0 replies; 9+ messages in thread
From: Joel J. Adamson @ 2008-01-30 20:49 UTC (permalink / raw)
  To: Thierry Volpiatto; +Cc: help-gnu-emacs

Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:

> jadamson@partners.org (Joel J. Adamson) writes:

[...]

>>
>> Do you know the best way to get a notification to show if an xbindkeys
>> command has failed?  My usual Unix ingenuity is failing me on this
>> one...
> No, except xbindkeys -v , i found nothing .
> The only output i have is if i have a wrong key, but not a wrong command.

I may write an FvwmScript for this one.

Joel

-- 
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA  02114
(617) 643-1432
(303) 880-3109

The information transmitted in this electronic communication is intended only
for the person or entity to whom it is addressed and may contain confidential
and/or privileged material. Any review, retransmission, dissemination or other
use of or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you received this
information in error, please contact the Compliance HelpLine at 800-856-1983 and
properly dispose of this information.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-01-30 20:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-29 21:00 xbindkeys and emacsclient Joel J. Adamson
2008-01-29 22:14 ` Thierry Volpiatto
2008-01-30 14:50   ` Joel J. Adamson
2008-01-30 17:06     ` Thierry Volpiatto
2008-01-30 18:15       ` Joel J. Adamson
2008-01-30 18:56         ` Thierry Volpiatto
2008-01-30 19:00           ` Joel J. Adamson
2008-01-30 20:11             ` Thierry Volpiatto
2008-01-30 20:49               ` Joel J. Adamson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).