diff options
| author | Joakim Verona | 2011-02-05 11:23:09 +0100 |
|---|---|---|
| committer | Joakim Verona | 2011-02-05 11:23:09 +0100 |
| commit | 4bd51ad5c3445b644dfb017d5b57b10a90aa325f (patch) | |
| tree | 894801e7308ce4ecc34933f959e28f4b9cff9533 /src/composite.c | |
| parent | 13cfe8df462ab8da9f0028e16cc84dcaceaca3d1 (diff) | |
| parent | 9bcaafce5351d270ac514e23cb69ff1a5fd35229 (diff) | |
| download | emacs-4bd51ad5c3445b644dfb017d5b57b10a90aa325f.tar.gz emacs-4bd51ad5c3445b644dfb017d5b57b10a90aa325f.zip | |
merge from upstream. currently seems to have bitroted and i get segfaults
Diffstat (limited to 'src/composite.c')
| -rw-r--r-- | src/composite.c | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/src/composite.c b/src/composite.c index be9aafbeacc..58bc68597cc 100644 --- a/src/composite.c +++ b/src/composite.c | |||
| @@ -1,7 +1,6 @@ | |||
| 1 | /* Composite sequence support. | 1 | /* Composite sequence support. |
| 2 | Copyright (C) 2001, 2002, 2003, 2004, 2005, | 2 | Copyright (C) 2001-2011 Free Software Foundation, Inc. |
| 3 | 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 3 | Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 |
| 4 | Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 | ||
| 5 | National Institute of Advanced Industrial Science and Technology (AIST) | 4 | National Institute of Advanced Industrial Science and Technology (AIST) |
| 6 | Registration Number H14PRO021 | 5 | Registration Number H14PRO021 |
| 7 | Copyright (C) 2003, 2006 | 6 | Copyright (C) 2003, 2006 |
| @@ -153,15 +152,8 @@ int n_compositions; | |||
| 153 | COMPOSITION-ID. */ | 152 | COMPOSITION-ID. */ |
| 154 | Lisp_Object composition_hash_table; | 153 | Lisp_Object composition_hash_table; |
| 155 | 154 | ||
| 156 | /* Function to call to adjust composition. */ | ||
| 157 | Lisp_Object Vcompose_chars_after_function; | ||
| 158 | |||
| 159 | Lisp_Object Qauto_composed; | 155 | Lisp_Object Qauto_composed; |
| 160 | Lisp_Object Vauto_composition_mode; | ||
| 161 | Lisp_Object Vauto_composition_function; | ||
| 162 | Lisp_Object Qauto_composition_function; | 156 | Lisp_Object Qauto_composition_function; |
| 163 | Lisp_Object Vcomposition_function_table; | ||
| 164 | |||
| 165 | /* Maximum number of characters to look back for | 157 | /* Maximum number of characters to look back for |
| 166 | auto-compositions. */ | 158 | auto-compositions. */ |
| 167 | #define MAX_AUTO_COMPOSITION_LOOKBACK 3 | 159 | #define MAX_AUTO_COMPOSITION_LOOKBACK 3 |
| @@ -1964,7 +1956,7 @@ syms_of_composite (void) | |||
| 1964 | Vtext_property_default_nonsticky | 1956 | Vtext_property_default_nonsticky |
| 1965 | = Fcons (Fcons (Qcomposition, Qt), Vtext_property_default_nonsticky); | 1957 | = Fcons (Fcons (Qcomposition, Qt), Vtext_property_default_nonsticky); |
| 1966 | 1958 | ||
| 1967 | DEFVAR_LISP ("compose-chars-after-function", &Vcompose_chars_after_function, | 1959 | DEFVAR_LISP ("compose-chars-after-function", Vcompose_chars_after_function, |
| 1968 | doc: /* Function to adjust composition of buffer text. | 1960 | doc: /* Function to adjust composition of buffer text. |
| 1969 | 1961 | ||
| 1970 | This function is called with three arguments: FROM, TO, and OBJECT. | 1962 | This function is called with three arguments: FROM, TO, and OBJECT. |
| @@ -1984,12 +1976,12 @@ The default value is the function `compose-chars-after'. */); | |||
| 1984 | Qauto_composition_function = intern_c_string ("auto-composition-function"); | 1976 | Qauto_composition_function = intern_c_string ("auto-composition-function"); |
| 1985 | staticpro (&Qauto_composition_function); | 1977 | staticpro (&Qauto_composition_function); |
| 1986 | 1978 | ||
| 1987 | DEFVAR_LISP ("auto-composition-mode", &Vauto_composition_mode, | 1979 | DEFVAR_LISP ("auto-composition-mode", Vauto_composition_mode, |
| 1988 | doc: /* Non-nil if Auto-Composition mode is enabled. | 1980 | doc: /* Non-nil if Auto-Composition mode is enabled. |
| 1989 | Use the command `auto-composition-mode' to change this variable. */); | 1981 | Use the command `auto-composition-mode' to change this variable. */); |
| 1990 | Vauto_composition_mode = Qt; | 1982 | Vauto_composition_mode = Qt; |
| 1991 | 1983 | ||
| 1992 | DEFVAR_LISP ("auto-composition-function", &Vauto_composition_function, | 1984 | DEFVAR_LISP ("auto-composition-function", Vauto_composition_function, |
| 1993 | doc: /* Function to call to compose characters automatically. | 1985 | doc: /* Function to call to compose characters automatically. |
| 1994 | This function is called from the display routine with four arguments: | 1986 | This function is called from the display routine with four arguments: |
| 1995 | FROM, TO, WINDOW, and STRING. | 1987 | FROM, TO, WINDOW, and STRING. |
| @@ -2002,7 +1994,7 @@ string. In this case, the function must compose characters in the | |||
| 2002 | string. */); | 1994 | string. */); |
| 2003 | Vauto_composition_function = Qnil; | 1995 | Vauto_composition_function = Qnil; |
| 2004 | 1996 | ||
| 2005 | DEFVAR_LISP ("composition-function-table", &Vcomposition_function_table, | 1997 | DEFVAR_LISP ("composition-function-table", Vcomposition_function_table, |
| 2006 | doc: /* Char-table of functions for automatic character composition. | 1998 | doc: /* Char-table of functions for automatic character composition. |
| 2007 | For each character that has to be composed automatically with | 1999 | For each character that has to be composed automatically with |
| 2008 | preceding and/or following characters, this char-table contains | 2000 | preceding and/or following characters, this char-table contains |
| @@ -2041,5 +2033,3 @@ See also the documentation of `auto-composition-mode'. */); | |||
| 2041 | defsubr (&Scomposition_get_gstring); | 2033 | defsubr (&Scomposition_get_gstring); |
| 2042 | } | 2034 | } |
| 2043 | 2035 | ||
| 2044 | /* arch-tag: 79cefaf8-ca48-4eed-97e5-d5afb290d272 | ||
| 2045 | (do not change this comment) */ | ||