aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2007-05-22 12:04:59 +0000
committerKenichi Handa2007-05-22 12:04:59 +0000
commit662b4cfce34c677d0fee855709fd224f4864639f (patch)
treea4fec04548ee0b3a3dde444bf84ebf36d04c18c3 /src
parent4d55e513d9e8bbae1b3a85af9a41d37a7ee61298 (diff)
downloademacs-662b4cfce34c677d0fee855709fd224f4864639f.tar.gz
emacs-662b4cfce34c677d0fee855709fd224f4864639f.zip
(scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/syntax.c12
2 files changed, 10 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 5cadef9490b..952e9c6ae07 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12007-05-22 Martin Rudalics <rudalics@gmx.at>
2
3 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
4
12007-05-21 Chong Yidong <cyd@stupidchicken.com> 52007-05-21 Chong Yidong <cyd@stupidchicken.com>
2 6
3 * image.c (uncache_image): New function. 7 * image.c (uncache_image): New function.
diff --git a/src/syntax.c b/src/syntax.c
index acb5d37825c..9161512a15b 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -1276,19 +1276,19 @@ scan_words (from, count)
1276 position of it. */ 1276 position of it. */
1277 while (1) 1277 while (1)
1278 { 1278 {
1279 int temp_byte;
1280
1281 if (from == beg) 1279 if (from == beg)
1282 break; 1280 break;
1283 temp_byte = dec_bytepos (from_byte); 1281 DEC_BOTH (from, from_byte);
1284 UPDATE_SYNTAX_TABLE_BACKWARD (from); 1282 UPDATE_SYNTAX_TABLE_BACKWARD (from);
1285 ch0 = FETCH_CHAR (temp_byte); 1283 ch0 = FETCH_CHAR (from_byte);
1286 code = SYNTAX (ch0); 1284 code = SYNTAX (ch0);
1287 if (!(words_include_escapes 1285 if (!(words_include_escapes
1288 && (code == Sescape || code == Scharquote))) 1286 && (code == Sescape || code == Scharquote)))
1289 if (code != Sword || WORD_BOUNDARY_P (ch0, ch1)) 1287 if (code != Sword || WORD_BOUNDARY_P (ch0, ch1))
1290 break; 1288 {
1291 DEC_BOTH (from, from_byte); 1289 INC_BOTH (from, from_byte);
1290 break;
1291 }
1292 ch1 = ch0; 1292 ch1 = ch0;
1293 } 1293 }
1294 count++; 1294 count++;