GNU bug report logs - #9401
24.0.50; Crash during fontification

Previous Next

Package: emacs;

Reported by: Chong Yidong <cyd <at> stupidchicken.com>

Date: Mon, 29 Aug 2011 16:14:02 UTC

Severity: normal

Found in version 24.0.50

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: 9401 <at> debbugs.gnu.org
Subject: bug#9401: 24.0.50; Crash during fontification
Date: Wed, 31 Aug 2011 08:42:00 -0400
> I've found the bug, and committed a fix.  It was a problem with
> find_defun_start not updating its cache variables consistently.  (Is
> that optimization really necessary?  I guess we can re-examine it some
> other time.)

IIRC this optimization is sometimes important, but it's re-implemented
(in a more sophisticated way) in syntax.el for syntax-ppss, so it would
be good to make the C code somehow use the syntax.el cache.  Maybe the
best way is to change back_comment so that in `lossage' it just calls
a Lisp function (that we'd put in syntax.el), so we can throw away
find_defun_start (and even open_paren_in_column_0_is_defun_start).


        Stefan




This bug report was last modified 13 years and 326 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.