comparison src/syntax.c @ 771:943eaba38521

[xemacs-hg @ 2002-03-13 08:51:24 by ben] The big ben-mule-21-5 check-in! Various files were added and deleted. See CHANGES-ben-mule. There are still some test suite failures. No crashes, though. Many of the failures have to do with problems in the test suite itself rather than in the actual code. I'll be addressing these in the next day or so -- none of the test suite failures are at all critical. Meanwhile I'll be trying to address the biggest issues -- i.e. build or run failures, which will almost certainly happen on various platforms. All comments should be sent to ben@xemacs.org -- use a Cc: if necessary when sending to mailing lists. There will be pre- and post- tags, something like pre-ben-mule-21-5-merge-in, and post-ben-mule-21-5-merge-in.
author ben
date Wed, 13 Mar 2002 08:54:06 +0000
parents fdefd0186b75
children 6728e641994e
comparison
equal deleted inserted replaced
770:336a418893b5 771:943eaba38521
1 /* XEmacs routines to deal with syntax tables; also word and list parsing. 1 /* XEmacs routines to deal with syntax tables; also word and list parsing.
2 Copyright (C) 1985-1994 Free Software Foundation, Inc. 2 Copyright (C) 1985-1994 Free Software Foundation, Inc.
3 Copyright (C) 1995 Sun Microsystems, Inc. 3 Copyright (C) 1995 Sun Microsystems, Inc.
4 Copyright (C) 2001 Ben Wing.
4 5
5 This file is part of XEmacs. 6 This file is part of XEmacs.
6 7
7 XEmacs is free software; you can redistribute it and/or modify it 8 XEmacs is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the 9 under the terms of the GNU General Public License as published by the
277 if (NILP (syntax_cache.object) || EQ (syntax_cache.object, Qt)) 278 if (NILP (syntax_cache.object) || EQ (syntax_cache.object, Qt))
278 { 279 {
279 int get_change_before = pos + 1; 280 int get_change_before = pos + 1;
280 281
281 tmp_table = Fget_char_property (make_int(pos), Qsyntax_table, 282 tmp_table = Fget_char_property (make_int(pos), Qsyntax_table,
282 make_buffer (syntax_cache.buffer), Qnil); 283 wrap_buffer (syntax_cache.buffer), Qnil);
283 syntax_cache.next_change = 284 syntax_cache.next_change =
284 XINT (Fnext_extent_change (make_int (pos > 0 ? pos : 1), 285 XINT (Fnext_extent_change (make_int (pos > 0 ? pos : 1),
285 make_buffer (syntax_cache.buffer))); 286 wrap_buffer (syntax_cache.buffer)));
286 287
287 if (get_change_before < 1) 288 if (get_change_before < 1)
288 get_change_before = 1; 289 get_change_before = 1;
289 else if (get_change_before > BUF_ZV (syntax_cache.buffer)) 290 else if (get_change_before > BUF_ZV (syntax_cache.buffer))
290 get_change_before = BUF_ZV (syntax_cache.buffer); 291 get_change_before = BUF_ZV (syntax_cache.buffer);
291 292
292 syntax_cache.prev_change = 293 syntax_cache.prev_change =
293 XINT (Fprevious_extent_change (make_int (get_change_before), 294 XINT (Fprevious_extent_change (make_int (get_change_before),
294 make_buffer (syntax_cache.buffer))); 295 wrap_buffer (syntax_cache.buffer)));
295 } 296 }
296 else 297 else
297 { 298 {
298 int get_change_before = pos + 1; 299 int get_change_before = pos + 1;
299 300