From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?windows-1252?Q?=D3scar_Fuentes?= Newsgroups: gmane.emacs.devel Subject: Re: Breakpoint ignored. Date: Sun, 18 Oct 2009 20:46:16 +0200 Message-ID: <87ljj8y1zb.fsf@telefonica.net> References: <877hutz9zb.fsf@telefonica.net> <83hbtxgwqz.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1255891623 12601 80.91.229.12 (18 Oct 2009 18:47:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 Oct 2009 18:47:03 +0000 (UTC) Cc: 3681@emacsbugs.donarmstrong.com To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 18 20:46:54 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MzamL-0004Fi-FG for ged-emacs-devel@m.gmane.org; Sun, 18 Oct 2009 20:46:53 +0200 Original-Received: from localhost ([127.0.0.1]:45435 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzamK-0005B4-Lr for ged-emacs-devel@m.gmane.org; Sun, 18 Oct 2009 14:46:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MzamE-0005Aq-Hq for emacs-devel@gnu.org; Sun, 18 Oct 2009 14:46:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MzamB-0005AW-0A for emacs-devel@gnu.org; Sun, 18 Oct 2009 14:46:46 -0400 Original-Received: from [199.232.76.173] (port=49101 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzamA-0005AT-P8 for emacs-devel@gnu.org; Sun, 18 Oct 2009 14:46:42 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:47227) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MzamA-0003DK-50 for emacs-devel@gnu.org; Sun, 18 Oct 2009 14:46:42 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1Mzam1-00049I-2e for emacs-devel@gnu.org; Sun, 18 Oct 2009 20:46:33 +0200 Original-Received: from 194.red-83-38-72.dynamicip.rima-tde.net ([83.38.72.194]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 18 Oct 2009 20:46:33 +0200 Original-Received: from ofv by 194.red-83-38-72.dynamicip.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 18 Oct 2009 20:46:33 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 194.red-83-38-72.dynamicip.rima-tde.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:OgR6b7p/VOwBdiueF2utxQKVaMM= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:116227 Archived-At: Stefan Monnier 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