diff options
| author | Chong Yidong | 2010-01-11 09:54:52 -0500 |
|---|---|---|
| committer | Chong Yidong | 2010-01-11 09:54:52 -0500 |
| commit | 4d03ece09d1f9b8a5b4d1b180ad49016ef9c29b0 (patch) | |
| tree | 9f981d2e0aa00b72507f86dcbf85b014512393af /src | |
| parent | 6589a2f98dae1301980e85e01844b75079f48364 (diff) | |
| download | emacs-4d03ece09d1f9b8a5b4d1b180ad49016ef9c29b0.tar.gz emacs-4d03ece09d1f9b8a5b4d1b180ad49016ef9c29b0.zip | |
* nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
initializing the Lisp variables that depend on them.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/nsterm.m | 26 |
2 files changed, 18 insertions, 13 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index cac262b3b2f..4342d39052d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-01-11 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before | ||
| 4 | initializing the Lisp variables that depend on them. | ||
| 5 | |||
| 1 | 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 6 | 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
| 2 | 7 | ||
| 3 | * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]: | 8 | * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]: |
diff --git a/src/nsterm.m b/src/nsterm.m index 18c51d00938..4f6c1d8d924 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -6144,6 +6144,19 @@ syms_of_nsterm () | |||
| 6144 | 6144 | ||
| 6145 | ns_antialias_threshold = 10.0; | 6145 | ns_antialias_threshold = 10.0; |
| 6146 | 6146 | ||
| 6147 | /* from 23+ we need to tell emacs what modifiers there are.. */ | ||
| 6148 | Qmodifier_value = intern ("modifier-value"); | ||
| 6149 | Qalt = intern ("alt"); | ||
| 6150 | Fput (Qalt, Qmodifier_value, make_number (alt_modifier)); | ||
| 6151 | Qhyper = intern ("hyper"); | ||
| 6152 | Fput (Qhyper, Qmodifier_value, make_number (hyper_modifier)); | ||
| 6153 | Qmeta = intern ("meta"); | ||
| 6154 | Fput (Qmeta, Qmodifier_value, make_number (meta_modifier)); | ||
| 6155 | Qsuper = intern ("super"); | ||
| 6156 | Fput (Qsuper, Qmodifier_value, make_number (super_modifier)); | ||
| 6157 | Qcontrol = intern ("control"); | ||
| 6158 | Fput (Qcontrol, Qmodifier_value, make_number (ctrl_modifier)); | ||
| 6159 | |||
| 6147 | DEFVAR_LISP ("ns-input-file", &ns_input_file, | 6160 | DEFVAR_LISP ("ns-input-file", &ns_input_file, |
| 6148 | "The file specified in the last NS event."); | 6161 | "The file specified in the last NS event."); |
| 6149 | ns_input_file =Qnil; | 6162 | ns_input_file =Qnil; |
| @@ -6218,19 +6231,6 @@ allowing it to be used at a lower level for accented character entry."); | |||
| 6218 | staticpro (&last_mouse_motion_frame); | 6231 | staticpro (&last_mouse_motion_frame); |
| 6219 | last_mouse_motion_frame = Qnil; | 6232 | last_mouse_motion_frame = Qnil; |
| 6220 | 6233 | ||
| 6221 | /* from 23+ we need to tell emacs what modifiers there are.. */ | ||
| 6222 | Qmodifier_value = intern ("modifier-value"); | ||
| 6223 | Qalt = intern ("alt"); | ||
| 6224 | Fput (Qalt, Qmodifier_value, make_number (alt_modifier)); | ||
| 6225 | Qhyper = intern ("hyper"); | ||
| 6226 | Fput (Qhyper, Qmodifier_value, make_number (hyper_modifier)); | ||
| 6227 | Qmeta = intern ("meta"); | ||
| 6228 | Fput (Qmeta, Qmodifier_value, make_number (meta_modifier)); | ||
| 6229 | Qsuper = intern ("super"); | ||
| 6230 | Fput (Qsuper, Qmodifier_value, make_number (super_modifier)); | ||
| 6231 | Qcontrol = intern ("control"); | ||
| 6232 | Fput (Qcontrol, Qmodifier_value, make_number (ctrl_modifier)); | ||
| 6233 | |||
| 6234 | /* TODO: move to common code */ | 6234 | /* TODO: move to common code */ |
| 6235 | DEFVAR_LISP ("x-toolkit-scroll-bars", &Vx_toolkit_scroll_bars, | 6235 | DEFVAR_LISP ("x-toolkit-scroll-bars", &Vx_toolkit_scroll_bars, |
| 6236 | doc: /* If not nil, Emacs uses toolkit scroll bars. */); | 6236 | doc: /* If not nil, Emacs uses toolkit scroll bars. */); |