Commit 6e20a0d4 authored by Chong Yidong's avatar Chong Yidong

Fix syntax scanning bug causing fontification crashes.

* src/syntax.c (find_defun_start): Update all cache variables if
exiting early.

Fixes: debbugs:9401
parent 1f403cb9
2011-08-30 Chong Yidong <cyd@stupidchicken.com>
* syntax.c (find_defun_start): Update all cache variables if
exiting early (Bug#9401).
2011-08-19 Andreas Schwab <schwab@linux-m68k.org>
* keyboard.c: Include "process.h"
......
......@@ -364,7 +364,12 @@ find_defun_start (pos, pos_byte)
if (!open_paren_in_column_0_is_defun_start)
{
find_start_value = BEGV;
find_start_value_byte = BEGV_BYTE;
find_start_buffer = current_buffer;
find_start_modiff = MODIFF;
find_start_begv = BEGV;
find_start_pos = pos;
return BEGV;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment