GNU bug report logs -
#23810
avoid.el: mouse-avoidance-ignore-p does not ignore file-notify events
Previous Next
Reported by: Jonathan Kotta <jpkotta <at> gmail.com>
Date: Mon, 20 Jun 2016 17:43:01 UTC
Severity: normal
Tags: unreproducible
Done: npostavs <at> users.sourceforge.net
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 23810 in the body.
You can then email your comments to 23810 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#23810
; Package
emacs
.
(Mon, 20 Jun 2016 17:43:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Jonathan Kotta <jpkotta <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 20 Jun 2016 17:43:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
I use mpd and ncmpcpp. mpd allows sending sound data to a fifo, and
ncmpcpp can read from that fifo and do sound visualizations with the data.
So when mpd is playing, it is constantly writing to the fifo and generating
file-notify events. I'm not entirely sure why Emacs is receiving these
events, but it is, and it causes mouse avoidance to kick in without
typing. I can't reproduce the the problem reliably, but it occurs
regularly. The attached patch fixes it for me, and it just makes sense for
mouse-avoidance-ignore-p to ignore file-notify events. I'm not sure if
there are additional types of events that it should also ignore; I couldn't
find an exhaustive list of all the event types.
diff --git a/lisp/avoid.el b/lisp/avoid.el
index 3d43539..e42e08a 100644
--- a/lisp/avoid.el
+++ b/lisp/avoid.el
@@ -335,7 +335,7 @@ redefine this function to suit your own tastes."
(let ((modifiers (event-modifiers (car last-input-event))))
(or (memq (car last-input-event)
'(mouse-movement scroll-bar-movement
- select-window focus-out))
+ select-window focus-out file-notify))
(memq 'click modifiers)
(memq 'double modifiers)
(memq 'triple modifiers)
--
Thanks,
Jonathan Kotta
Hofstadter's Law:
It always takes longer than you expect, even
when you take into account Hofstadter's Law.
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#23810
; Package
emacs
.
(Thu, 04 May 2017 16:55:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 23810 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On a whim, I reverted to the built in definition
of mouse-avoidance-ignore-p. Something must have been fixed elsewhere,
because I don't experience the problem any more, so this can probably be
closed.
On Mon, Jun 20, 2016 at 12:41 PM, Jonathan Kotta <jpkotta <at> gmail.com> wrote:
> I use mpd and ncmpcpp. mpd allows sending sound data to a fifo, and
> ncmpcpp can read from that fifo and do sound visualizations with the data.
> So when mpd is playing, it is constantly writing to the fifo and generating
> file-notify events. I'm not entirely sure why Emacs is receiving these
> events, but it is, and it causes mouse avoidance to kick in without
> typing. I can't reproduce the the problem reliably, but it occurs
> regularly. The attached patch fixes it for me, and it just makes sense for
> mouse-avoidance-ignore-p to ignore file-notify events. I'm not sure if
> there are additional types of events that it should also ignore; I couldn't
> find an exhaustive list of all the event types.
>
> diff --git a/lisp/avoid.el b/lisp/avoid.el
> index 3d43539..e42e08a 100644
> --- a/lisp/avoid.el
> +++ b/lisp/avoid.el
> @@ -335,7 +335,7 @@ redefine this function to suit your own tastes."
> (let ((modifiers (event-modifiers (car last-input-event))))
> (or (memq (car last-input-event)
> '(mouse-movement scroll-bar-movement
> - select-window focus-out))
> + select-window focus-out file-notify))
> (memq 'click modifiers)
> (memq 'double modifiers)
> (memq 'triple modifiers)
>
>
> --
> Thanks,
>
> Jonathan Kotta
>
> Hofstadter's Law:
> It always takes longer than you expect, even
> when you take into account Hofstadter's Law.
>
--
Thanks,
Jonathan Kotta
Hofstadter's Law:
It always takes longer than you expect, even
when you take into account Hofstadter's Law.
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#23810
; Package
emacs
.
(Fri, 05 May 2017 00:42:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 23810 <at> debbugs.gnu.org (full text, mbox):
tags 23810 unreproducible
close 23810
quit
Jonathan Kotta <jpkotta <at> gmail.com> writes:
> On a whim, I reverted to the built in definition of
> mouse-avoidance-ignore-p. Something must have been fixed elsewhere,
> because I don't experience the problem any more, so this can probably
> be closed.
I'll close as unreproducible then.
Added tag(s) unreproducible.
Request was from
npostavs <at> users.sourceforge.net
to
control <at> debbugs.gnu.org
.
(Fri, 05 May 2017 00:42:04 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
23810 <at> debbugs.gnu.org and Jonathan Kotta <jpkotta <at> gmail.com>
Request was from
npostavs <at> users.sourceforge.net
to
control <at> debbugs.gnu.org
.
(Fri, 05 May 2017 00:42:04 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 02 Jun 2017 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 22 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.