unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Óscar Fuentes" <ofv@wanadoo.es>
To: emacs-devel@gnu.org
Cc: 3681@emacsbugs.donarmstrong.com
Subject: Re: Breakpoint ignored.
Date: Sun, 18 Oct 2009 20:46:16 +0200	[thread overview]
Message-ID: <87ljj8y1zb.fsf@telefonica.net> (raw)
In-Reply-To: jwvaazowyw2.fsf-monnier+emacs@gnu.org

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	other threads:[~2009-10-18 18:46 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-18  2:55 Breakpoint ignored Óscar Fuentes
2009-10-18  4:19 ` Eli Zaretskii
2009-10-18 14:39   ` Stefan Monnier
2009-10-18 18:46     ` Óscar Fuentes [this message]
2009-10-19  2:39   ` Richard Stallman
2009-10-19  3:18     ` Stefan Monnier
2009-10-19  6:22       ` Miles Bader
2009-10-19 13:19         ` Stefan Monnier
2009-10-19 22:53         ` Richard Stallman
2009-10-20  0:59           ` David Kastrup
2009-10-20  1:44             ` Óscar Fuentes
2009-10-20  2:03               ` Stefan Monnier
2009-10-21  4:58             ` Richard Stallman
2009-10-19  3:35     ` Daniel Colascione
2009-10-19  9:20     ` Andreas Schwab
2009-10-19 13:21       ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ljj8y1zb.fsf@telefonica.net \
    --to=ofv@wanadoo.es \
    --cc=3681@emacsbugs.donarmstrong.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).