* mouse-movement getting in the way
@ 2014-08-06 7:44 Sam Halliday
2014-08-06 21:44 ` Emanuel Berg
` (3 more replies)
0 siblings, 4 replies; 10+ messages in thread
From: Sam Halliday @ 2014-08-06 7:44 UTC (permalink / raw)
To: help-gnu-emacs
Hi all,
I am running Emacs 24.3.1 on GNU/Linux with xmonad as my window manager. I have 3 monitors.
I try to avoid using the mouse, but sometimes I need to use it in other applications. When I move the mouse from one of my other screens into the screen running emacs, the first command I type will always fail with a minibuffer error e.g.
C-c <mouse-movement> is undefined
This is rather frustrating. I was hoping that somebody on this list could help me to configure emacs to avoid taking the mouse-movement input as part of a key command.
My configuration is largely available here if it is relevant: https://github.com/fommil/unix
Best regards,
Sam
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: mouse-movement getting in the way
2014-08-06 7:44 mouse-movement getting in the way Sam Halliday
@ 2014-08-06 21:44 ` Emanuel Berg
2014-08-07 0:03 ` Robert Thorpe
` (2 subsequent siblings)
3 siblings, 0 replies; 10+ messages in thread
From: Emanuel Berg @ 2014-08-06 21:44 UTC (permalink / raw)
To: help-gnu-emacs
Sam Halliday <sam.halliday@gmail.com> writes:
> I am running Emacs 24.3.1 on GNU/Linux with xmonad as
> my window manager. I have 3 monitors.
>
> I try to avoid using the mouse
Good :)
(But remember the words of Master Yoda: "Do, or do not.
There is no try.")
> but sometimes I need to use it in other applications.
Perhaps you can setup a shortcut in Emacs that will
take you to that other window/application?
If that other application is in X, you can use
xbindkeys to get a shortcut to get back from X (or from
"non-Emacs X", if you use Emacs in X as well). That
will work for all applications running in X.
I don't know about xmonad but I know that with Openbox
you can use wmctrl, and you can find a couple of
examples here [1].
Check out the manpages for xbindkeys and wmctrl for
more.
> When I move the mouse from one of my other screens
> into the screen running emacs, the first command I
> type will always fail with a minibuffer error e.g.
>
> C-c <mouse-movement> is undefined
Will this happen for *any* command? That sounds like a
bug. You can report it with `report-emacs-bug'. If you
don't use Emacs for mails you can either start with
that, which will enhance your game considerably in an
instant, or if you don't want to do that I'm sure there
is another way to report bugs - either someone on this
list will tell you, or you could search the Emacs
homepage for what to do. Perhaps using the information
you get with report-emacs-bug and just yank (paste) it
into an email will do - only like I said, I wouldn't
recommend that but instead that you use Emacs (perhaps
you already do that, I don't know).
Good luck!
[1] http://user.it.uu.se/~embe8573/conf/.zsh/wm
--
underground experts united
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: mouse-movement getting in the way
2014-08-06 7:44 mouse-movement getting in the way Sam Halliday
2014-08-06 21:44 ` Emanuel Berg
@ 2014-08-07 0:03 ` Robert Thorpe
2014-08-07 10:43 ` Stefan Monnier
[not found] ` <mailman.6747.1407408334.1147.help-gnu-emacs@gnu.org>
2014-08-08 14:42 ` Hans BKK
[not found] ` <mailman.6726.1407369856.1147.help-gnu-emacs@gnu.org>
3 siblings, 2 replies; 10+ messages in thread
From: Robert Thorpe @ 2014-08-07 0:03 UTC (permalink / raw)
To: Sam Halliday; +Cc: help-gnu-emacs
Sam Halliday <sam.halliday@gmail.com> writes:
...
> C-c <mouse-movement> is undefined
>
> This is rather frustrating. I was hoping that somebody on this list could help me to configure emacs to avoid taking the mouse-movement input as part of a key command.
>
> My configuration is largely available here if it is relevant: https://github.com/fommil/unix
Does it happen with emacs -q ? If not then it's a configuration
problem. Try bisecting your init file.
BR,
Robert Thorpe
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: mouse-movement getting in the way
2014-08-06 7:44 mouse-movement getting in the way Sam Halliday
2014-08-06 21:44 ` Emanuel Berg
2014-08-07 0:03 ` Robert Thorpe
@ 2014-08-08 14:42 ` Hans BKK
2014-08-08 17:48 ` Emanuel Berg
[not found] ` <mailman.6726.1407369856.1147.help-gnu-emacs@gnu.org>
3 siblings, 1 reply; 10+ messages in thread
From: Hans BKK @ 2014-08-08 14:42 UTC (permalink / raw)
To: help-gnu-emacs
Why are you moving the mouse into that screen? Use your DE/wm's keyboard shortcuts to switch focus.
> Check out the manpages for xbindkeys and wmctrl for more.
Also xdotools and autohotkeys
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: mouse-movement getting in the way
2014-08-08 14:42 ` Hans BKK
@ 2014-08-08 17:48 ` Emanuel Berg
2014-08-19 3:12 ` Hans BKK
0 siblings, 1 reply; 10+ messages in thread
From: Emanuel Berg @ 2014-08-08 17:48 UTC (permalink / raw)
To: help-gnu-emacs
Hans BKK <hansbkk@gmail.com> writes:
>> Check out the manpages for xbindkeys and wmctrl for
>> more.
>
> Also xdotools and autohotkeys
What about xmacro?
wmctrl should be by far the easiest, if it plays with
xmonad, which I'd be very surprised if it didn't.
xdotools is good as well though.
There is no autohotkeys save for Windowz - probably you
mean autokey.
--
underground experts united
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: mouse-movement getting in the way
2014-08-08 17:48 ` Emanuel Berg
@ 2014-08-19 3:12 ` Hans BKK
2014-08-19 23:03 ` Emanuel Berg
0 siblings, 1 reply; 10+ messages in thread
From: Hans BKK @ 2014-08-19 3:12 UTC (permalink / raw)
To: help-gnu-emacs
On Friday, August 8, 2014 1:48:06 PM UTC-4, Emanuel Berg wrote:
> What about xmacro?
Thanks, hadn't come across that
> wmctrl should be by far the easiest, if it plays with xmonad, which I'd be very surprised if it didn't.
Have to recompile after adding XMonad.Hooks.EwmhDesktops to xmonad.hs
> There is no autohotkeys save for Windowz - probably you mean autokey.
Yes, had thought IronAHK'd come further along, apparently only under wine
^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <mailman.6726.1407369856.1147.help-gnu-emacs@gnu.org>]
end of thread, other threads:[~2014-08-19 23:03 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-06 7:44 mouse-movement getting in the way Sam Halliday
2014-08-06 21:44 ` Emanuel Berg
2014-08-07 0:03 ` Robert Thorpe
2014-08-07 10:43 ` Stefan Monnier
[not found] ` <mailman.6747.1407408334.1147.help-gnu-emacs@gnu.org>
2014-08-07 21:03 ` Emanuel Berg
2014-08-08 14:42 ` Hans BKK
2014-08-08 17:48 ` Emanuel Berg
2014-08-19 3:12 ` Hans BKK
2014-08-19 23:03 ` Emanuel Berg
[not found] ` <mailman.6726.1407369856.1147.help-gnu-emacs@gnu.org>
2014-08-08 16:44 ` Sam Halliday
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).