diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 36 | ||||
| -rw-r--r-- | src/cm.c | 5 | ||||
| -rw-r--r-- | src/config.in | 68 | ||||
| -rw-r--r-- | src/frame.c | 5 | ||||
| -rw-r--r-- | src/keyboard.c | 1 | ||||
| -rw-r--r-- | src/regex.c | 10 | ||||
| -rw-r--r-- | src/syntax.c | 15 | ||||
| -rw-r--r-- | src/syntax.h | 14 | ||||
| -rw-r--r-- | src/term.c | 5 | ||||
| -rw-r--r-- | src/xfns.c | 2 |
10 files changed, 90 insertions, 71 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index ce4fe1cd7b4..37a4cdb1b10 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,39 @@ | |||
| 1 | 2010-03-12 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * xfns.c (Fx_create_frame): Set default to Qright. | ||
| 4 | |||
| 5 | * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for | ||
| 6 | all window systems. | ||
| 7 | |||
| 8 | 2010-03-12 Eli Zaretskii <eliz@gnu.org> | ||
| 9 | |||
| 10 | These changes remove termcap.c from the build on Posix platforms. | ||
| 11 | * Makefilie.in (termcapobj): Move termcap.o from here... | ||
| 12 | (MSDOS_OBJ): ...to here. | ||
| 13 | (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is | ||
| 14 | now identical to when LIBS_TERMCAP is defined. | ||
| 15 | |||
| 16 | * term.c: Remove (ifdef'ed away) inclusion of termcap.h. | ||
| 17 | |||
| 18 | * cm.c: Remove (ifdef'ed away) inclusion of termcap.h. | ||
| 19 | |||
| 20 | * config.in: Regenerated. (See top-level ChangeLog.) | ||
| 21 | |||
| 22 | 2010-03-10 Chong Yidong <cyd@stupidchicken.com> | ||
| 23 | |||
| 24 | * Branch for 23.2. | ||
| 25 | |||
| 26 | 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 27 | |||
| 28 | Cleanup setup of gl_state in various parts of the code. | ||
| 29 | * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro. | ||
| 30 | (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): | ||
| 31 | * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren) | ||
| 32 | (skip_chars): | ||
| 33 | * regex.c (regex_compile): Use it. | ||
| 34 | (re_compile_pattern): Don't set gl_state.current_syntax_table since | ||
| 35 | it's now set in regex_compile when/if we need it. | ||
| 36 | |||
| 1 | 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca> | 37 | 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 38 | ||
| 3 | Make it possible to C-g in a tight bytecode loop again (bug#5680). | 39 | Make it possible to C-g in a tight bytecode loop again (bug#5680). |
| @@ -33,13 +33,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 33 | /* For now, don't try to include termcap.h. On some systems, | 33 | /* For now, don't try to include termcap.h. On some systems, |
| 34 | configure finds a non-standard termcap.h that the main build | 34 | configure finds a non-standard termcap.h that the main build |
| 35 | won't find. */ | 35 | won't find. */ |
| 36 | |||
| 37 | #if defined HAVE_TERMCAP_H && 0 | ||
| 38 | #include <termcap.h> | ||
| 39 | #else | ||
| 40 | extern void tputs P_ ((const char *, int, int (*)(int))); | 36 | extern void tputs P_ ((const char *, int, int (*)(int))); |
| 41 | extern char *tgoto P_ ((const char *, int, int)); | 37 | extern char *tgoto P_ ((const char *, int, int)); |
| 42 | #endif | ||
| 43 | 38 | ||
| 44 | #define BIG 9999 /* 9999 good on VAXen. For 16 bit machines | 39 | #define BIG 9999 /* 9999 good on VAXen. For 16 bit machines |
| 45 | use about 2000.... */ | 40 | use about 2000.... */ |
diff --git a/src/config.in b/src/config.in index b321c586a4a..3a3ae09a084 100644 --- a/src/config.in +++ b/src/config.in | |||
| @@ -319,10 +319,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 319 | /* Define to 1 if you have the <kerberos/krb.h> header file. */ | 319 | /* Define to 1 if you have the <kerberos/krb.h> header file. */ |
| 320 | #undef HAVE_KERBEROS_KRB_H | 320 | #undef HAVE_KERBEROS_KRB_H |
| 321 | 321 | ||
| 322 | /* Define to 1 if `e_text' is member of `krb5_error'. */ | 322 | /* Define to 1 if `krb5_error' is a member of `e_text'. */ |
| 323 | #undef HAVE_KRB5_ERROR_E_TEXT | 323 | #undef HAVE_KRB5_ERROR_E_TEXT |
| 324 | 324 | ||
| 325 | /* Define to 1 if `text' is member of `krb5_error'. */ | 325 | /* Define to 1 if `krb5_error' is a member of `text'. */ |
| 326 | #undef HAVE_KRB5_ERROR_TEXT | 326 | #undef HAVE_KRB5_ERROR_TEXT |
| 327 | 327 | ||
| 328 | /* Define to 1 if you have the <krb5.h> header file. */ | 328 | /* Define to 1 if you have the <krb5.h> header file. */ |
| @@ -616,25 +616,25 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 616 | /* Define to 1 if you have the `strsignal' function. */ | 616 | /* Define to 1 if you have the `strsignal' function. */ |
| 617 | #undef HAVE_STRSIGNAL | 617 | #undef HAVE_STRSIGNAL |
| 618 | 618 | ||
| 619 | /* Define to 1 if `ifr_addr' is member of `struct ifreq'. */ | 619 | /* Define to 1 if `struct ifreq' is a member of `ifr_addr'. */ |
| 620 | #undef HAVE_STRUCT_IFREQ_IFR_ADDR | 620 | #undef HAVE_STRUCT_IFREQ_IFR_ADDR |
| 621 | 621 | ||
| 622 | /* Define to 1 if `ifr_broadaddr' is member of `struct ifreq'. */ | 622 | /* Define to 1 if `struct ifreq' is a member of `ifr_broadaddr'. */ |
| 623 | #undef HAVE_STRUCT_IFREQ_IFR_BROADADDR | 623 | #undef HAVE_STRUCT_IFREQ_IFR_BROADADDR |
| 624 | 624 | ||
| 625 | /* Define to 1 if `ifr_flags' is member of `struct ifreq'. */ | 625 | /* Define to 1 if `struct ifreq' is a member of `ifr_flags'. */ |
| 626 | #undef HAVE_STRUCT_IFREQ_IFR_FLAGS | 626 | #undef HAVE_STRUCT_IFREQ_IFR_FLAGS |
| 627 | 627 | ||
| 628 | /* Define to 1 if `ifr_hwaddr' is member of `struct ifreq'. */ | 628 | /* Define to 1 if `struct ifreq' is a member of `ifr_hwaddr'. */ |
| 629 | #undef HAVE_STRUCT_IFREQ_IFR_HWADDR | 629 | #undef HAVE_STRUCT_IFREQ_IFR_HWADDR |
| 630 | 630 | ||
| 631 | /* Define to 1 if `ifr_netmask' is member of `struct ifreq'. */ | 631 | /* Define to 1 if `struct ifreq' is a member of `ifr_netmask'. */ |
| 632 | #undef HAVE_STRUCT_IFREQ_IFR_NETMASK | 632 | #undef HAVE_STRUCT_IFREQ_IFR_NETMASK |
| 633 | 633 | ||
| 634 | /* Define to 1 if `n_un.n_name' is member of `struct nlist'. */ | 634 | /* Define to 1 if `struct nlist' is a member of `n_un.n_name'. */ |
| 635 | #undef HAVE_STRUCT_NLIST_N_UN_N_NAME | 635 | #undef HAVE_STRUCT_NLIST_N_UN_N_NAME |
| 636 | 636 | ||
| 637 | /* Define to 1 if `tm_zone' is member of `struct tm'. */ | 637 | /* Define to 1 if `struct tm' is a member of `tm_zone'. */ |
| 638 | #undef HAVE_STRUCT_TM_TM_ZONE | 638 | #undef HAVE_STRUCT_TM_TM_ZONE |
| 639 | 639 | ||
| 640 | /* Define to 1 if `struct utimbuf' is declared by <utime.h>. */ | 640 | /* Define to 1 if `struct utimbuf' is declared by <utime.h>. */ |
| @@ -697,9 +697,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 697 | /* Define to 1 if you have the <sys/_mbstate_t.h> header file. */ | 697 | /* Define to 1 if you have the <sys/_mbstate_t.h> header file. */ |
| 698 | #undef HAVE_SYS__MBSTATE_T_H | 698 | #undef HAVE_SYS__MBSTATE_T_H |
| 699 | 699 | ||
| 700 | /* Define to 1 if you have the <termcap.h> header file. */ | ||
| 701 | #undef HAVE_TERMCAP_H | ||
| 702 | |||
| 703 | /* Define to 1 if you have the <termios.h> header file. */ | 700 | /* Define to 1 if you have the <termios.h> header file. */ |
| 704 | #undef HAVE_TERMIOS_H | 701 | #undef HAVE_TERMIOS_H |
| 705 | 702 | ||
| @@ -858,6 +855,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 858 | /* Define to the one symbol short name of this package. */ | 855 | /* Define to the one symbol short name of this package. */ |
| 859 | #undef PACKAGE_TARNAME | 856 | #undef PACKAGE_TARNAME |
| 860 | 857 | ||
| 858 | /* Define to the home page for this package. */ | ||
| 859 | #undef PACKAGE_URL | ||
| 860 | |||
| 861 | /* Define to the version of this package. */ | 861 | /* Define to the version of this package. */ |
| 862 | #undef PACKAGE_VERSION | 862 | #undef PACKAGE_VERSION |
| 863 | 863 | ||
| @@ -917,6 +917,28 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 917 | /* Define to 1 if using the Motif X toolkit. */ | 917 | /* Define to 1 if using the Motif X toolkit. */ |
| 918 | #undef USE_MOTIF | 918 | #undef USE_MOTIF |
| 919 | 919 | ||
| 920 | /* Enable extensions on AIX 3, Interix. */ | ||
| 921 | #ifndef _ALL_SOURCE | ||
| 922 | # undef _ALL_SOURCE | ||
| 923 | #endif | ||
| 924 | /* Enable GNU extensions on systems that have them. */ | ||
| 925 | #ifndef _GNU_SOURCE | ||
| 926 | # undef _GNU_SOURCE | ||
| 927 | #endif | ||
| 928 | /* Enable threading extensions on Solaris. */ | ||
| 929 | #ifndef _POSIX_PTHREAD_SEMANTICS | ||
| 930 | # undef _POSIX_PTHREAD_SEMANTICS | ||
| 931 | #endif | ||
| 932 | /* Enable extensions on HP NonStop. */ | ||
| 933 | #ifndef _TANDEM_SOURCE | ||
| 934 | # undef _TANDEM_SOURCE | ||
| 935 | #endif | ||
| 936 | /* Enable general extensions on Solaris. */ | ||
| 937 | #ifndef __EXTENSIONS__ | ||
| 938 | # undef __EXTENSIONS__ | ||
| 939 | #endif | ||
| 940 | |||
| 941 | |||
| 920 | /* Define to 1 if we should use toolkit scroll bars. */ | 942 | /* Define to 1 if we should use toolkit scroll bars. */ |
| 921 | #undef USE_TOOLKIT_SCROLL_BARS | 943 | #undef USE_TOOLKIT_SCROLL_BARS |
| 922 | 944 | ||
| @@ -952,28 +974,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 952 | /* Define to 1 if you need to in order for `stat' and other things to work. */ | 974 | /* Define to 1 if you need to in order for `stat' and other things to work. */ |
| 953 | #undef _POSIX_SOURCE | 975 | #undef _POSIX_SOURCE |
| 954 | 976 | ||
| 955 | /* Enable extensions on AIX 3, Interix. */ | ||
| 956 | #ifndef _ALL_SOURCE | ||
| 957 | # undef _ALL_SOURCE | ||
| 958 | #endif | ||
| 959 | /* Enable GNU extensions on systems that have them. */ | ||
| 960 | #ifndef _GNU_SOURCE | ||
| 961 | # undef _GNU_SOURCE | ||
| 962 | #endif | ||
| 963 | /* Enable threading extensions on Solaris. */ | ||
| 964 | #ifndef _POSIX_PTHREAD_SEMANTICS | ||
| 965 | # undef _POSIX_PTHREAD_SEMANTICS | ||
| 966 | #endif | ||
| 967 | /* Enable extensions on HP NonStop. */ | ||
| 968 | #ifndef _TANDEM_SOURCE | ||
| 969 | # undef _TANDEM_SOURCE | ||
| 970 | #endif | ||
| 971 | /* Enable general extensions on Solaris. */ | ||
| 972 | #ifndef __EXTENSIONS__ | ||
| 973 | # undef __EXTENSIONS__ | ||
| 974 | #endif | ||
| 975 | |||
| 976 | |||
| 977 | /* Define to rpl_ if the getopt replacement functions and variables should be | 977 | /* Define to rpl_ if the getopt replacement functions and variables should be |
| 978 | used. */ | 978 | used. */ |
| 979 | #undef __GETOPT_PREFIX | 979 | #undef __GETOPT_PREFIX |
diff --git a/src/frame.c b/src/frame.c index f05f9f751da..c779f1c5b65 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -4584,13 +4584,8 @@ Setting this variable does not affect existing frames, only new ones. */); | |||
| 4584 | DEFVAR_LISP ("default-frame-scroll-bars", &Vdefault_frame_scroll_bars, | 4584 | DEFVAR_LISP ("default-frame-scroll-bars", &Vdefault_frame_scroll_bars, |
| 4585 | doc: /* Default position of scroll bars on this window-system. */); | 4585 | doc: /* Default position of scroll bars on this window-system. */); |
| 4586 | #ifdef HAVE_WINDOW_SYSTEM | 4586 | #ifdef HAVE_WINDOW_SYSTEM |
| 4587 | #if defined(HAVE_NTGUI) || defined(NS_IMPL_COCOA) | ||
| 4588 | /* MS-Windows and Mac OS X have scroll bars on the right by default. */ | ||
| 4589 | Vdefault_frame_scroll_bars = Qright; | 4587 | Vdefault_frame_scroll_bars = Qright; |
| 4590 | #else | 4588 | #else |
| 4591 | Vdefault_frame_scroll_bars = Qleft; | ||
| 4592 | #endif | ||
| 4593 | #else | ||
| 4594 | Vdefault_frame_scroll_bars = Qnil; | 4589 | Vdefault_frame_scroll_bars = Qnil; |
| 4595 | #endif | 4590 | #endif |
| 4596 | 4591 | ||
diff --git a/src/keyboard.c b/src/keyboard.c index 1e331d078ce..48d39235e3f 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -11235,6 +11235,7 @@ handle_interrupt () | |||
| 11235 | GCPRO4 (saved.object, saved.global_code, | 11235 | GCPRO4 (saved.object, saved.global_code, |
| 11236 | saved.current_syntax_table, saved.old_prop); | 11236 | saved.current_syntax_table, saved.old_prop); |
| 11237 | Fsignal (Qquit, Qnil); | 11237 | Fsignal (Qquit, Qnil); |
| 11238 | /* FIXME: AFAIK, `quit' can never return, so this code is dead! */ | ||
| 11238 | gl_state = saved; | 11239 | gl_state = saved; |
| 11239 | UNGCPRO; | 11240 | UNGCPRO; |
| 11240 | } | 11241 | } |
diff --git a/src/regex.c b/src/regex.c index f242446796d..e59c48aad74 100644 --- a/src/regex.c +++ b/src/regex.c | |||
| @@ -3070,7 +3070,7 @@ regex_compile (pattern, size, syntax, bufp) | |||
| 3070 | syntax-table for ASCII chars, while the other chars | 3070 | syntax-table for ASCII chars, while the other chars |
| 3071 | will obey syntax-table properties. It's not ideal, | 3071 | will obey syntax-table properties. It's not ideal, |
| 3072 | but it's the way it's been done until now. */ | 3072 | but it's the way it's been done until now. */ |
| 3073 | SETUP_SYNTAX_TABLE (BEGV, 0); | 3073 | SETUP_BUFFER_SYNTAX_TABLE (); |
| 3074 | 3074 | ||
| 3075 | for (ch = 0; ch < 256; ++ch) | 3075 | for (ch = 0; ch < 256; ++ch) |
| 3076 | { | 3076 | { |
| @@ -4496,7 +4496,7 @@ re_search_2 (bufp, str1, size1, str2, size2, startpos, range, regs, stop) | |||
| 4496 | anchored_start = (bufp->buffer[0] == begline); | 4496 | anchored_start = (bufp->buffer[0] == begline); |
| 4497 | 4497 | ||
| 4498 | #ifdef emacs | 4498 | #ifdef emacs |
| 4499 | gl_state.object = re_match_object; | 4499 | gl_state.object = re_match_object; /* Used by SYNTAX_TABLE_BYTE_TO_CHAR. */ |
| 4500 | { | 4500 | { |
| 4501 | int charpos = SYNTAX_TABLE_BYTE_TO_CHAR (POS_AS_IN_BUFFER (startpos)); | 4501 | int charpos = SYNTAX_TABLE_BYTE_TO_CHAR (POS_AS_IN_BUFFER (startpos)); |
| 4502 | 4502 | ||
| @@ -5099,7 +5099,7 @@ re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop) | |||
| 5099 | 5099 | ||
| 5100 | #ifdef emacs | 5100 | #ifdef emacs |
| 5101 | int charpos; | 5101 | int charpos; |
| 5102 | gl_state.object = re_match_object; | 5102 | gl_state.object = re_match_object; /* Used by SYNTAX_TABLE_BYTE_TO_CHAR. */ |
| 5103 | charpos = SYNTAX_TABLE_BYTE_TO_CHAR (POS_AS_IN_BUFFER (pos)); | 5103 | charpos = SYNTAX_TABLE_BYTE_TO_CHAR (POS_AS_IN_BUFFER (pos)); |
| 5104 | SETUP_SYNTAX_TABLE_FOR_OBJECT (re_match_object, charpos, 1); | 5104 | SETUP_SYNTAX_TABLE_FOR_OBJECT (re_match_object, charpos, 1); |
| 5105 | #endif | 5105 | #endif |
| @@ -6504,10 +6504,6 @@ re_compile_pattern (pattern, length, bufp) | |||
| 6504 | { | 6504 | { |
| 6505 | reg_errcode_t ret; | 6505 | reg_errcode_t ret; |
| 6506 | 6506 | ||
| 6507 | #ifdef emacs | ||
| 6508 | gl_state.current_syntax_table = current_buffer->syntax_table; | ||
| 6509 | #endif | ||
| 6510 | |||
| 6511 | /* GNU code is written to assume at least RE_NREGS registers will be set | 6507 | /* GNU code is written to assume at least RE_NREGS registers will be set |
| 6512 | (and at least one extra will be -1). */ | 6508 | (and at least one extra will be -1). */ |
| 6513 | bufp->regs_allocated = REGS_UNALLOCATED; | 6509 | bufp->regs_allocated = REGS_UNALLOCATED; |
diff --git a/src/syntax.c b/src/syntax.c index 47b4caf5ade..a80f047e43c 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -385,8 +385,7 @@ find_defun_start (pos, pos_byte) | |||
| 385 | /* We optimize syntax-table lookup for rare updates. Thus we accept | 385 | /* We optimize syntax-table lookup for rare updates. Thus we accept |
| 386 | only those `^\s(' which are good in global _and_ text-property | 386 | only those `^\s(' which are good in global _and_ text-property |
| 387 | syntax-tables. */ | 387 | syntax-tables. */ |
| 388 | gl_state.current_syntax_table = current_buffer->syntax_table; | 388 | SETUP_BUFFER_SYNTAX_TABLE (); |
| 389 | gl_state.use_global = 0; | ||
| 390 | while (PT > BEGV) | 389 | while (PT > BEGV) |
| 391 | { | 390 | { |
| 392 | int c; | 391 | int c; |
| @@ -401,8 +400,7 @@ find_defun_start (pos, pos_byte) | |||
| 401 | if (SYNTAX (c) == Sopen) | 400 | if (SYNTAX (c) == Sopen) |
| 402 | break; | 401 | break; |
| 403 | /* Now fallback to the default value. */ | 402 | /* Now fallback to the default value. */ |
| 404 | gl_state.current_syntax_table = current_buffer->syntax_table; | 403 | SETUP_BUFFER_SYNTAX_TABLE (); |
| 405 | gl_state.use_global = 0; | ||
| 406 | } | 404 | } |
| 407 | /* Move to beg of previous line. */ | 405 | /* Move to beg of previous line. */ |
| 408 | scan_newline (PT, PT_BYTE, BEGV, BEGV_BYTE, -2, 1); | 406 | scan_newline (PT, PT_BYTE, BEGV, BEGV_BYTE, -2, 1); |
| @@ -860,11 +858,9 @@ are listed in the documentation of `modify-syntax-entry'. */) | |||
| 860 | Lisp_Object character; | 858 | Lisp_Object character; |
| 861 | { | 859 | { |
| 862 | int char_int; | 860 | int char_int; |
| 863 | gl_state.current_syntax_table = current_buffer->syntax_table; | ||
| 864 | |||
| 865 | gl_state.use_global = 0; | ||
| 866 | CHECK_NUMBER (character); | 861 | CHECK_NUMBER (character); |
| 867 | char_int = XINT (character); | 862 | char_int = XINT (character); |
| 863 | SETUP_BUFFER_SYNTAX_TABLE (); | ||
| 868 | return make_number (syntax_code_spec[(int) SYNTAX (char_int)]); | 864 | return make_number (syntax_code_spec[(int) SYNTAX (char_int)]); |
| 869 | } | 865 | } |
| 870 | 866 | ||
| @@ -874,10 +870,9 @@ DEFUN ("matching-paren", Fmatching_paren, Smatching_paren, 1, 1, 0, | |||
| 874 | Lisp_Object character; | 870 | Lisp_Object character; |
| 875 | { | 871 | { |
| 876 | int char_int, code; | 872 | int char_int, code; |
| 877 | gl_state.current_syntax_table = current_buffer->syntax_table; | ||
| 878 | gl_state.use_global = 0; | ||
| 879 | CHECK_NUMBER (character); | 873 | CHECK_NUMBER (character); |
| 880 | char_int = XINT (character); | 874 | char_int = XINT (character); |
| 875 | SETUP_BUFFER_SYNTAX_TABLE (); | ||
| 881 | code = SYNTAX (char_int); | 876 | code = SYNTAX (char_int); |
| 882 | if (code == Sopen || code == Sclose) | 877 | if (code == Sopen || code == Sclose) |
| 883 | return SYNTAX_MATCH (char_int); | 878 | return SYNTAX_MATCH (char_int); |
| @@ -1752,7 +1747,7 @@ skip_chars (forwardp, string, lim, handle_iso_classes) | |||
| 1752 | let's initialize it manually. | 1747 | let's initialize it manually. |
| 1753 | We ignore syntax-table text-properties for now, since that's | 1748 | We ignore syntax-table text-properties for now, since that's |
| 1754 | what we've done in the past. */ | 1749 | what we've done in the past. */ |
| 1755 | SETUP_SYNTAX_TABLE (BEGV, 0); | 1750 | SETUP_BUFFER_SYNTAX_TABLE (); |
| 1756 | if (forwardp) | 1751 | if (forwardp) |
| 1757 | { | 1752 | { |
| 1758 | if (multibyte) | 1753 | if (multibyte) |
diff --git a/src/syntax.h b/src/syntax.h index c36b1eb28f6..ec8fab0166c 100644 --- a/src/syntax.h +++ b/src/syntax.h | |||
| @@ -245,6 +245,14 @@ extern char syntax_code_spec[16]; | |||
| 245 | 1) \ | 245 | 1) \ |
| 246 | : 0)) | 246 | : 0)) |
| 247 | 247 | ||
| 248 | /* This macro sets up the buffer-global syntax table. */ | ||
| 249 | #define SETUP_BUFFER_SYNTAX_TABLE() \ | ||
| 250 | do \ | ||
| 251 | { \ | ||
| 252 | gl_state.use_global = 0; \ | ||
| 253 | gl_state.current_syntax_table = current_buffer->syntax_table; \ | ||
| 254 | } while (0) | ||
| 255 | |||
| 248 | /* This macro should be called with FROM at the start of forward | 256 | /* This macro should be called with FROM at the start of forward |
| 249 | search, or after the last position of the backward search. It | 257 | search, or after the last position of the backward search. It |
| 250 | makes sure that the first char is picked up with correct table, so | 258 | makes sure that the first char is picked up with correct table, so |
| @@ -256,12 +264,11 @@ extern char syntax_code_spec[16]; | |||
| 256 | #define SETUP_SYNTAX_TABLE(FROM, COUNT) \ | 264 | #define SETUP_SYNTAX_TABLE(FROM, COUNT) \ |
| 257 | do \ | 265 | do \ |
| 258 | { \ | 266 | { \ |
| 267 | SETUP_BUFFER_SYNTAX_TABLE (); \ | ||
| 259 | gl_state.b_property = BEGV; \ | 268 | gl_state.b_property = BEGV; \ |
| 260 | gl_state.e_property = ZV + 1; \ | 269 | gl_state.e_property = ZV + 1; \ |
| 261 | gl_state.object = Qnil; \ | 270 | gl_state.object = Qnil; \ |
| 262 | gl_state.use_global = 0; \ | ||
| 263 | gl_state.offset = 0; \ | 271 | gl_state.offset = 0; \ |
| 264 | gl_state.current_syntax_table = current_buffer->syntax_table; \ | ||
| 265 | if (parse_sexp_lookup_properties) \ | 272 | if (parse_sexp_lookup_properties) \ |
| 266 | if ((COUNT) > 0 || (FROM) > BEGV) \ | 273 | if ((COUNT) > 0 || (FROM) > BEGV) \ |
| 267 | update_syntax_table ((COUNT) > 0 ? (FROM) : (FROM) - 1, (COUNT),\ | 274 | update_syntax_table ((COUNT) > 0 ? (FROM) : (FROM) - 1, (COUNT),\ |
| @@ -279,6 +286,7 @@ while (0) | |||
| 279 | #define SETUP_SYNTAX_TABLE_FOR_OBJECT(OBJECT, FROM, COUNT) \ | 286 | #define SETUP_SYNTAX_TABLE_FOR_OBJECT(OBJECT, FROM, COUNT) \ |
| 280 | do \ | 287 | do \ |
| 281 | { \ | 288 | { \ |
| 289 | SETUP_BUFFER_SYNTAX_TABLE (); \ | ||
| 282 | gl_state.object = (OBJECT); \ | 290 | gl_state.object = (OBJECT); \ |
| 283 | if (BUFFERP (gl_state.object)) \ | 291 | if (BUFFERP (gl_state.object)) \ |
| 284 | { \ | 292 | { \ |
| @@ -305,8 +313,6 @@ do \ | |||
| 305 | gl_state.e_property = 1 + SCHARS (gl_state.object); \ | 313 | gl_state.e_property = 1 + SCHARS (gl_state.object); \ |
| 306 | gl_state.offset = 0; \ | 314 | gl_state.offset = 0; \ |
| 307 | } \ | 315 | } \ |
| 308 | gl_state.use_global = 0; \ | ||
| 309 | gl_state.current_syntax_table = current_buffer->syntax_table; \ | ||
| 310 | if (parse_sexp_lookup_properties) \ | 316 | if (parse_sexp_lookup_properties) \ |
| 311 | update_syntax_table (((FROM) + gl_state.offset \ | 317 | update_syntax_table (((FROM) + gl_state.offset \ |
| 312 | + (COUNT > 0 ? 0 : -1)), \ | 318 | + (COUNT > 0 ? 0 : -1)), \ |
diff --git a/src/term.c b/src/term.c index dbfdf80d905..718a20d4164 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -66,15 +66,10 @@ static int been_here = -1; | |||
| 66 | /* For now, don't try to include termcap.h. On some systems, | 66 | /* For now, don't try to include termcap.h. On some systems, |
| 67 | configure finds a non-standard termcap.h that the main build | 67 | configure finds a non-standard termcap.h that the main build |
| 68 | won't find. */ | 68 | won't find. */ |
| 69 | |||
| 70 | #if defined HAVE_TERMCAP_H && 0 | ||
| 71 | #include <termcap.h> | ||
| 72 | #else | ||
| 73 | extern void tputs P_ ((const char *, int, int (*)(int))); | 69 | extern void tputs P_ ((const char *, int, int (*)(int))); |
| 74 | extern int tgetent P_ ((char *, const char *)); | 70 | extern int tgetent P_ ((char *, const char *)); |
| 75 | extern int tgetflag P_ ((char *id)); | 71 | extern int tgetflag P_ ((char *id)); |
| 76 | extern int tgetnum P_ ((char *id)); | 72 | extern int tgetnum P_ ((char *id)); |
| 77 | #endif | ||
| 78 | 73 | ||
| 79 | #include "cm.h" | 74 | #include "cm.h" |
| 80 | #ifdef HAVE_X_WINDOWS | 75 | #ifdef HAVE_X_WINDOWS |
diff --git a/src/xfns.c b/src/xfns.c index 96fb090e327..84d0d622200 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -3376,7 +3376,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 3376 | #endif | 3376 | #endif |
| 3377 | "internalBorderWidth", "internalBorderWidth", | 3377 | "internalBorderWidth", "internalBorderWidth", |
| 3378 | RES_TYPE_NUMBER); | 3378 | RES_TYPE_NUMBER); |
| 3379 | x_default_parameter (f, parms, Qvertical_scroll_bars, Qleft, | 3379 | x_default_parameter (f, parms, Qvertical_scroll_bars, Qright, |
| 3380 | "verticalScrollBars", "ScrollBars", | 3380 | "verticalScrollBars", "ScrollBars", |
| 3381 | RES_TYPE_SYMBOL); | 3381 | RES_TYPE_SYMBOL); |
| 3382 | 3382 | ||