aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/syntax.c11
2 files changed, 12 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 8ca95025019..b3744eb8b6e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12014-08-28 Eli Zaretskii <eliz@gnu.org>
2
3 * syntax.c (scan_lists): Don't examine positions before BEGV.
4 (Bug#18339)
5
12014-08-25 Eli Zaretskii <eliz@gnu.org> 62014-08-25 Eli Zaretskii <eliz@gnu.org>
2 7
3 * conf_post.h (_GL_EXECINFO_INLINE) [MSDOS]: Don't define. 8 * conf_post.h (_GL_EXECINFO_INLINE) [MSDOS]: Don't define.
diff --git a/src/syntax.c b/src/syntax.c
index 0ee48bb3725..5e697d350ff 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -2859,10 +2859,13 @@ scan_lists (EMACS_INT from, EMACS_INT count, EMACS_INT depth, bool sexpflag)
2859 case Smath: 2859 case Smath:
2860 if (!sexpflag) 2860 if (!sexpflag)
2861 break; 2861 break;
2862 temp_pos = dec_bytepos (from_byte); 2862 if (from > BEGV)
2863 UPDATE_SYNTAX_TABLE_BACKWARD (from - 1); 2863 {
2864 if (from != stop && c == FETCH_CHAR_AS_MULTIBYTE (temp_pos)) 2864 temp_pos = dec_bytepos (from_byte);
2865 DEC_BOTH (from, from_byte); 2865 UPDATE_SYNTAX_TABLE_BACKWARD (from - 1);
2866 if (from != stop && c == FETCH_CHAR_AS_MULTIBYTE (temp_pos))
2867 DEC_BOTH (from, from_byte);
2868 }
2866 if (mathexit) 2869 if (mathexit)
2867 { 2870 {
2868 mathexit = 0; 2871 mathexit = 0;