GNU bug report logs -
#2932
call-interactively wrongly calls mouse-leave-buffer-hook
Previous Next
Reported by: Alan Mackenzie <acm <at> muc.de>
Date: Wed, 8 Apr 2009 21:25:05 UTC
Severity: normal
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 2932 <at> debbugs.gnu.org (full text, mbox):
On Wed, Apr 8, 2009 at 23:15, Alan Mackenzie <acm <at> muc.de> wrote:
> In call-interactively (callint.c L~449), whilst processing `@' ("switch
> to the window the mouse was clicked in") in an interactive string, the
> code runs the hook `mouse-leave-buffer-hook'.
>
> The code HASN'T CHECKED that this new window is different from the
> current window, and even if it is, whether the new window is displaying
> a different buffer. Hence the hook is wrongly invoked when the mouse is
> clicked in the current window.
The trunk still behaves as you describe.
As a first pass, we should fix the docstring of
`mouse-leave-buffer-hook'. It seems wrong for the docstring of a hook
with "leave-buffer" in its name to talk about windows and not say a
word about buffers...
Juanma
This bug report was last modified 3 years and 303 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.