[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Breakpoint ignored.
From: |
Óscar Fuentes |
Subject: |
Re: 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) |
Stefan Monnier <address@hidden> 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
- Breakpoint ignored., Óscar Fuentes, 2009/10/17
- Re: Breakpoint ignored., Eli Zaretskii, 2009/10/18
- Re: Breakpoint ignored., Stefan Monnier, 2009/10/18
- Re: Breakpoint ignored.,
Óscar Fuentes <=
- Re: Breakpoint ignored., Richard Stallman, 2009/10/18
- Re: Breakpoint ignored., Stefan Monnier, 2009/10/18
- Re: Breakpoint ignored., Miles Bader, 2009/10/19
- Re: Breakpoint ignored., Stefan Monnier, 2009/10/19
- Re: Breakpoint ignored., Richard Stallman, 2009/10/19
- Re: Breakpoint ignored., David Kastrup, 2009/10/19
- Re: Breakpoint ignored., Óscar Fuentes, 2009/10/19
- Re: Breakpoint ignored., Stefan Monnier, 2009/10/19
- Re: Breakpoint ignored., Richard Stallman, 2009/10/21
- Re: Breakpoint ignored., Daniel Colascione, 2009/10/18