[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: more candidates for obsoletion
From: |
Stefan Monnier |
Subject: |
Re: more candidates for obsoletion |
Date: |
Tue, 04 Sep 2012 15:29:56 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) |
>> - 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