From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?=C3=93scar?= Fuentes Newsgroups: gmane.emacs.bugs Subject: bug#3681: Breakpoint ignored. Date: Sun, 18 Oct 2009 20:46:16 +0200 Message-ID: <87ljj8y1zb.fsf__23669.0185186037$1255896456$gmane$org@telefonica.net> References: <877hutz9zb.fsf@telefonica.net> <83hbtxgwqz.fsf@gnu.org> Reply-To: =?UTF-8?Q?=C3=93scar?= Fuentes , 3681@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1255896456 26164 80.91.229.12 (18 Oct 2009 20:07:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 Oct 2009 20:07:36 +0000 (UTC) Cc: 3681@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 18 22:07:26 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mzc2G-0002Qf-VI for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Oct 2009 22:07:25 +0200 Original-Received: from localhost ([127.0.0.1]:59978 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mzc2G-0002hk-EQ for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Oct 2009 16:07:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mzc2C-0002g2-54 for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 16:07:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mzc27-0002Zh-8n for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 16:07:19 -0400 Original-Received: from [199.232.76.173] (port=51509 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mzc27-0002ZY-4L for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 16:07:15 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:53237) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mzc26-00068D-IP for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 16:07:14 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9IK7C4O015056; Sun, 18 Oct 2009 13:07:12 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9IK58lu014182; Sun, 18 Oct 2009 13:05:08 -0700 Resent-Date: Sun, 18 Oct 2009 13:05:08 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: =?UTF-8?Q?=C3=93scar?= Fuentes Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sun, 18 Oct 2009 20:05:07 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3681 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3681-submit@emacsbugs.donarmstrong.com id=B3681.125589568011782 (code B ref 3681); Sun, 18 Oct 2009 20:05:07 +0000 Original-Received: (at 3681) by emacsbugs.donarmstrong.com; 18 Oct 2009 19:54:40 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from IMPaqm4.telefonica.net (impaqm4.telefonica.net [213.4.138.4]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9IJsacw011775 for <3681@emacsbugs.donarmstrong.com>; Sun, 18 Oct 2009 12:54:38 -0700 Original-Received: from IMPmailhost2.adm.correo ([10.20.102.39]) by IMPaqm4.telefonica.net with bizsmtp id uE6d1c00m0r0BT63QJmJr4; Sun, 18 Oct 2009 20:46:18 +0200 Original-Received: from qcore ([83.38.72.194]) by IMPmailhost2.adm.correo with BIZ IMP id uJmH1c00H4BWJyT1iJmJoz; Sun, 18 Oct 2009 20:46:18 +0200 X-TE-authinfo: authemail="981711563$telefonica.net" |auth_email="981711563@telefonica.net" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitnetc01" Original-Newsgroups: gmane.emacs.devel User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:OgR6b7p/VOwBdiueF2utxQKVaMM= In-Reply-To: (Stefan Monnier's message of "Sun, 18 Oct 2009 10:39:35 -0400") Posted-To: gmane.emacs.devel X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sun, 18 Oct 2009 16:07:19 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:32072 Archived-At: The following message is a courtesy copy of an article that has been posted to gmane.emacs.devel as well. Stefan Monnier writes: >>> C-h k =E1 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. >>>=20 >>> 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 =E1 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). --=20 =D3scar