bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#3681: Breakpoint ignored.


From: Óscar Fuentes
Subject: bug#3681: Breakpoint ignored.
Date: Sun, 18 Oct 2009 20:46:16 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

The following message is a courtesy copy of an article
that has been posted to gmane.emacs.devel as well.

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>>> C-h k á says `self-insert-command' is invoked, wich is a built-in
>>> function. So I follow the link to the source code to learn that the C
>>> function is Fself_insert_command, then invoke emacs and set a breakpoint
>>> on it, but gdb does not stop when a character is typed (and displayed),
>>> as if no breakpoint was active.
>>> 
>>> What I'm missing?
>
>> You are probably missing the fact that Emacs tries to optimize the
>> case of insertion of a single character.  See this part of keyboard.c:
>
> Note also that you can remove this whole `if' if you want.  It's only
> meant to be an optimization, so before trying to fix/debug the optimized
> code, try and see if the problem manifests itself in the
> non-optimized code.

Thanks. Already debugged the issue as far as my knowledge of emacs/X
goes.

command_loop_1 does not notice that á was typed until another character
comes. My guess is that emacs does not receive the notification until
something else comes from X (another character or an expired timer,
which is the case when blink-cursor-mode is on).

-- 
Óscar





reply via email to

[Prev in Thread] Current Thread [Next in Thread]