From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: more candidates for obsoletion Date: Tue, 04 Sep 2012 15:29:56 -0400 Message-ID: References: <87k40vptms.fsf@gnu.org> <87mx15oe0x.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1346787007 16179 80.91.229.3 (4 Sep 2012 19:30:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Sep 2012 19:30:07 +0000 (UTC) Cc: Juanma Barranquero , sds@gnu.org, emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 04 21:30:09 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T8yp5-0002H6-P6 for ged-emacs-devel@m.gmane.org; Tue, 04 Sep 2012 21:30:07 +0200 Original-Received: from localhost ([::1]:55933 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8yp1-0005zp-J7 for ged-emacs-devel@m.gmane.org; Tue, 04 Sep 2012 15:30:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41416) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8yoy-0005vY-4q for emacs-devel@gnu.org; Tue, 04 Sep 2012 15:30:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T8yox-00073O-7V for emacs-devel@gnu.org; Tue, 04 Sep 2012 15:30:00 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:7682) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8yox-00073H-2t; Tue, 04 Sep 2012 15:29:59 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu09FpYGP/2dsb2JhbABEtBGBCIIWAQVWIxALNBIUGA0kiCG6CZBEA6MzgViDBQ X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="197478621" Original-Received: from 69-165-129-143.dsl.teksavvy.com (HELO pastel.home) ([69.165.129.143]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 04 Sep 2012 15:29:57 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 6261B58B20; Tue, 4 Sep 2012 15:29:56 -0400 (EDT) In-Reply-To: <87mx15oe0x.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 04 Sep 2012 20:10:06 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:153014 Archived-At: >> - You might prefer to use fast_string_match. > Fixed and fixed. And then I don't have to save the match data either, I > guess? Indeed. >> - Is the recursive debugging a problem you've found to show up >> unavoidably all the time, or are you just being cautious? > It is a real problem. My first test case used a string that the > debugger used, too, so Emacs went into an infinite debugging loop... >> - You could turn your `debugging' into a Lisp var (call it >> "inhibit-debug-on-message"), or you could let-bind debug-on-message to >> nil around the call to the debugger. > Sounds good. I've had a peek around the sources, but I can't quite see > how to let-bind something from C. What should I be looking for as an > example? IIRC debug-on-error and debug-on-quit are let-bound to nil in the Elisp part of the code, so you should do that as well (see debug.el). Otherwise, `specbind' is the magic function to use from C. Stefan