| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
(syms_of_syntax): Declare it as a Lisp variable.
(SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
(scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
nonzero, treat all multibyte characters as symbol.
(init_syntax_once): Give syntax `word' to all mutlbiyte
characters.
|
|
|
|
| |
depends on the previous behavior.
|
|
|
|
|
|
|
|
| |
of the relevant style and return -1 in case of a failure to find the
beginning of the comment.
(Fforward_comment): If back_comment fails, go back to the position just
after the comment-end.
(scan_lists): Add comment describing a very minor bug.
|
| |
|
|
|
|
| |
inhibit-field-text-motion is nil.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
an edge of the buffer. Return nil if affected by fields.
|
| |
|
|
|
|
|
|
| |
to Fconstrain_to_field.
(Fforward_word): Likewise.
Constrain to any field.
|
|
|
|
|
|
| |
describe_syntax, skip_chars): Remove unused variables.
(back_comment, forw_comment): Add braces to if-statement with
if-else as dependent statement.
|
| |
|
|
|
|
| |
of minibuffer_prompt_length.
|
|
|
|
| |
in both directions. Extend documentation.
|
|
|
|
|
|
| |
(Fforward_comment, scan_lists, scan_sexps_forward)
(Fparse_partial_sexp): Add support for nested comments.
(forw_comment): New subroutine used in them.
|
|
|
|
|
| |
backwards, stop in front of the prompt to prevent accidentially
moving into the read-only prompt.
|
| |
|
|
|
|
| |
non-nil.
|
|
|
|
|
| |
to set prev_from_syntax, above start of main loop.
At startinstring, check syntax when checking for a match.
|
| |
|
| |
|
|
|
|
| |
stuff before jumping into the loop.
|
|
|
|
| |
byte size of a string.
|
|
|
|
| |
(scan_lists): Use prev_char_comend_first, not ...comstart...
|
| |
|
|
|
|
|
| |
(scan_sexps_forward): Use 10th elt of STATE to set levelstarts.
(parse-partial-sexp): Add 10th elt to return value.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
contains multibyte characters.
|
|
|
|
| |
don't fail to set c_leading_code.
|
|
|
|
| |
outside of the switch statement.
|
| |
|
|
|
|
|
|
|
| |
(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.
|
| |
|
|
|
|
| |
(skip_chars): Fix loop termination condition.
|
|
|
|
|
|
|
|
| |
(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.
|
|
|
|
|
|
| |
out of the scan_sexps_forward call.
No need to call find_defun_start
if we found the defun start in the initial scan.
|
| |
|
|
|
|
|
| |
(back_comment): Don't allow quoting a comment-end.
(scan_lists): Likewise.
|
|
|
|
| |
for either kind of buffer. Scan string by bytes and chars.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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.
|
|
|
|
| |
whenever not inside a string or a comment.
|
| |
|
|
|
|
| |
when reaching the first of the pair.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
(Fmodify_syntax_entry): Use XINT to access c.
(describe_syntax): Use XINT to access first.
|
| |
|