1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-08 12:40:49 -08:00
Commit graph

109 commits

Author SHA1 Message Date
Paul Eggert
ca9c056758 * callproc.c (strerror): Remove decl.
* fileio.c (strerror): Likewise.
* process.c (strerror): Likewise.
* emacs.c (strerror): Likewise.
(Vsystem_messages_locale): Renamed from Vmessages_locale.
All uses changed.
(Vprevious_system_messages_locale): Likewise, from
Vprevious_messages_locale.
(Vsystem_time_locale): Likewise, from Vtime_locale.
(Vprevious_system_time_locale): Likewise, from Vprevious_time_locale.
(ABORT_RETURN_TYPE): New macro.
(abort): Return type is now ABORT_RETURN_TYPE.
(main): Always invoke init_signals, even if POSIX_SIGNALS is not
defined.
(syms_of_emacs): messages-locale -> system-messages-locale,
previous-messages-locale -> previous-system-messages-locale,
time-locale -> system-time-locale,
previous-time-locale -> previous-system-time-locale.

* gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined.
(const): Do not define; that's config.h's job.
(<limits.h>): Include if HAVE_LIMITS_H is defined.
(CHAR_BIT): Move test for definedness outside of limits.h condition.
(<stddef.h>): Include if STDC_HEADERS is defined.
(FREE_RETURN_TYPE): New macro.
(free): Return type is now FREE_RETURN_TYPE.

* lisp.h (synchronize_system_time_locale): Renamed from
synchronize_time_locale.  All uses changed.
(synchronize_system_messages_locale): Likewise, from
synchronize_messages_locale.

* process.c (sys_siglist): Remove.

* syntax.c (scan_sexps_forward): Use abort, not assert.

* sysdep.c (my_sys_siglist): New var.
(sys_siglist): New macro.  Remove old initialized vars of same name.
(init_signals): Initialize sys_siglist.

* xfns.c (abort): Remove decl; stdlib.h now does this.
1999-11-22 08:19:51 +00:00
Richard M. Stallman
2c6ea900ee (Fforward_word): Handle fields even if would have hit
an edge of the buffer.  Return nil if affected by fields.
1999-11-09 19:00:59 +00:00
Gerd Moellmann
e76f1c446d Remove whitespace after open or in front of closing parentheses. 1999-11-01 13:56:47 +00:00
Gerd Moellmann
b8855607a0 (Fforward_word): Supply new ESCAPE_FROM_EDGE parameter
to Fconstrain_to_field.
(Fforward_word): Likewise.
Constrain to any field.
1999-10-17 12:56:25 +00:00
Gerd Moellmann
4ffe723bfe (update_syntax_table, find_defun_start, back_comment,
describe_syntax, skip_chars): Remove unused variables.
(back_comment, forw_comment): Add braces to if-statement with
if-else as dependent statement.
1999-09-20 00:34:44 +00:00
Ken Raeburn
c1d497be70 Use XCAR and XCDR instead of explicit member access. 1999-09-13 03:35:33 +00:00
Gerd Moellmann
abf4a9f7e0 (Fforward_word): Use prompt_end_charpos instead
of minibuffer_prompt_length.
1999-09-12 20:21:56 +00:00
Gerd Moellmann
ce1dc5105e (Fforward_word): Stop at a mini-buffer prompt end
in both directions.  Extend documentation.
1999-09-02 20:35:55 +00:00
Richard M. Stallman
95ff8dfc3c (lisp_parse_state, back_comment, Fmodify_syntax_entry)
(Fforward_comment, scan_lists, scan_sexps_forward)
(Fparse_partial_sexp): Add support for nested comments.
(forw_comment): New subroutine used in them.
1999-08-29 21:32:52 +00:00
Gerd Moellmann
5878ee6fc4 (Fforward_word): If in a mini-buffer and moving
backwards, stop in front of the prompt to prevent accidentially
moving into the read-only prompt.
1999-08-25 21:12:36 +00:00
Karl Heuer
da71ab916b (Fforward_comment): Set comstyle for Scomment_fence. 1999-08-16 20:34:56 +00:00
Dave Love
0beaf54f1d (Fparse_partial_sexp): Correct test for element 8 to be
non-nil.
1999-05-14 09:51:02 +00:00
Karl Heuer
ccf89641df (scan_sexps_forward): Delete duplicate code
to set prev_from_syntax, above start of main loop.
At startinstring, check syntax when checking for a match.
1999-01-22 21:57:43 +00:00
Richard M. Stallman
f3be100fc2 (syms_of_syntax): Fix the setup of Qscan_error. 1998-10-20 20:56:18 +00:00
Richard M. Stallman
c3907a7e36 (scan_lists): Bring FROM back into range BEGV...ZV. 1998-10-08 10:47:51 +00:00
Richard M. Stallman
326b283b18 (scan_sexps_forward): Set up the syntax table scanning
stuff before jumping into the loop.
1998-08-10 21:19:03 +00:00
Kenichi Handa
7c19e8e146 (Fmodify_syntax_entry): Use macro STRING_BYTES to get
byte size of a string.
1998-06-23 00:29:51 +00:00
Richard M. Stallman
1674d9a28b (skip_chars): Don't examine STRING before verifying that it is a string.
(scan_lists): Use prev_char_comend_first, not ...comstart...
1998-06-14 19:04:01 +00:00
Richard M. Stallman
89c6809aa9 (Fforward_comment): Properly compute BYTEPOS arg to char_quoted. 1998-06-11 02:33:06 +00:00
Richard M. Stallman
1a102a5863 (struct lisp_parse_state): New field, levelstarts.
(scan_sexps_forward): Use 10th elt of STATE to set levelstarts.
(parse-partial-sexp): Add 10th elt to return value.
1998-06-08 04:29:46 +00:00
Richard M. Stallman
f902a00832 (scan_lists): Properly skip the comment-fence character
that ends a comment, when moving forward.
(Fbackward_prefix_chars): Return immediately if point is at BEGV.

(prev_char_comend_first): New function.
(back_comment): Use that.  Carefully update syntax table position
for each character that is fetched.
(Fforward_comment): Likewise.
(scan_lists): Likewise.
(prev_char_comstart_first): New function.
1998-06-06 20:20:13 +00:00
Kenichi Handa
130901129f (skip_chars): Fix previous change. 1998-05-18 04:53:37 +00:00
Kenichi Handa
06274af57f (skip_chars): Fix bug in handling a range which
contains multibyte characters.
1998-05-18 00:59:38 +00:00
Richard M. Stallman
74cf0beb86 (skip_chars): When fetching char after \,
don't fail to set c_leading_code.
1998-05-13 06:47:15 +00:00
Richard M. Stallman
7c7ca3d217 (scan_lists, scan_sexps_forward): Move complex expressions
outside of the switch statement.
1998-05-09 07:39:00 +00:00
Andreas Schwab
dfcf069d56 Fix -Wimplicit warnings. 1998-04-14 12:25:56 +00:00
Richard M. Stallman
1fd3172dd4 (Fbackward_prefix_chars): Set point properly while scanning.
(scan_sexps_forward): Make INC_FROM do UPDATE_SYNTAX_TABLE_FORWARD.
Delete the explicit calls to UPDATE_SYNTAX_TABLE_FORWARD.
Also set prev_from_syntax (new local var).  Test that in the loop,
instead of fetching syntax of the previous char.
1998-03-18 00:11:33 +00:00
Richard M. Stallman
d80f4cc71c (update_syntax_table): Properly update `position' field of used intervals. 1998-03-02 02:40:53 +00:00
Karl Heuer
ee0cdb4862 (update_syntax_table): Fix calculations using offset.
(skip_chars): Fix loop termination condition.
1998-02-22 01:04:11 +00:00
Richard M. Stallman
ef316cf013 (skip_chars): Use INC_POS instead of INC_BOTH.
(Fforward_comment): Always use both FROM and FROM_BYTE to set point.
Use dec_bytepos not DEC_POS.
(scan_lists): Handle unibyte buffers when decrementing temp_pos.
(INC_FROM): Use INC_BOTH.
(inc_bytepos, dec_bytepos): In unibyte mode, just increment bytepos.
1998-02-16 03:02:53 +00:00
Richard M. Stallman
eb35b62861 (back_comment): Move the find_defun_start call
out of the scan_sexps_forward call.
No need to call find_defun_start
if we found the defun start in the initial scan.
1998-01-25 01:55:51 +00:00
Richard M. Stallman
b29ff19427 (skip_chars): Use unibyte_char_to_multibyte, 1998-01-21 22:02:05 +00:00
Karl Heuer
9828a47734 (skip_chars): Fix test for end of string, looking for `-'.
(back_comment): Don't allow quoting a comment-end.
(scan_lists): Likewise.
1998-01-18 05:15:48 +00:00
Richard M. Stallman
4101e6fea4 (skip_chars): Handle multibyte and unibyte strings
for either kind of buffer.  Scan string by bytes and chars.
1998-01-09 23:17:52 +00:00
Richard M. Stallman
6a140a74ab (scan_sexps_forward): Additional arg FROM_BYTE. Calls changed.
(find_defun_start): Additional arg POS_BYTE.
Save final byte pos in find_start_value_byte.
(find_start_value_byte): New variable.

(Fforward_comment): Scan by bytes and chars.
(Fbackward_prefix_chars): Scan by bytes and chars.
(scan_words, scan_sexps_forward): Scan bytes as well as chars.
(skip_chars, scan_lists): Scan by bytes and chars.  Now static.

(char_quoted): Take charpos and bytepos as args.
(back_comment): Likewise.
(update_syntax_table): Arg renamed.
(inc_bytepos, dec_bytepos): New functions.
1998-01-01 06:31:54 +00:00
Richard M. Stallman
bff37d2a0c (Fparse_partial_sexp): Return nil for 9th element
whenever not inside a string or a comment.
1997-12-21 01:57:32 +00:00
Richard M. Stallman
644ea4df73 Comment and whitespace changes. 1997-12-21 01:34:37 +00:00
Karl Heuer
527a32d98e (back_comment): Handle 2-char comment starts
when reaching the first of the pair.
1997-11-23 02:18:34 +00:00
Karl Heuer
5df4982e74 (skip_chars): Check type of `string' before using it. 1997-11-20 22:03:42 +00:00
Richard M. Stallman
b9145dbb57 (Fforward_comment): When count1 is negative, return nil if FROM reaches STOP. 1997-07-24 07:40:26 +00:00
Richard M. Stallman
44d8a79389 (init_syntax_once): Convert Fmake_vector argument to Lisp_Integer. 1997-07-12 06:38:27 +00:00
Richard M. Stallman
2e34157cd9 Fix bugs with inappropriate mixing of Lisp_Object with int. 1997-07-04 20:44:52 +00:00
Richard M. Stallman
4c92063301 (scan_sexps_forward): Split up a complex if-test. 1997-06-29 00:33:39 +00:00
Richard M. Stallman
e704cb4bc6 (Fsyntax_table_p, check_syntax_table): Use EQ.
(Fmodify_syntax_entry): Use XINT to access c.
(describe_syntax): Use XINT to access first.
1997-06-02 02:21:48 +00:00
Richard M. Stallman
ae03af3444 (Fforward_comment): Handle unmatched two-character comment starters. 1997-05-31 18:30:56 +00:00
Richard M. Stallman
ea315ed6e4 (back_comment): Detect 2-char comment starts properly.
New arg COMSTYLE; callers changed.
1997-05-31 18:16:22 +00:00
Richard M. Stallman
e41819d480 (describe_syntax_1): Pass new args to describe_vector. 1997-05-13 19:36:15 +00:00
Richard M. Stallman
4c8535eb4d (skip_chars): Fix previous change in syntax/backward case. 1997-04-28 00:49:41 +00:00
Richard M. Stallman
7e68b0eaf3 (skip_chars): Merge mule changes back in. 1997-04-25 21:59:44 +00:00
Richard M. Stallman
b745025d2d Update copyright year. 1997-04-15 04:56:39 +00:00