* xterm.c (syms_of_xterm): staticpro Qalt, Qhyper, Qmeta, and Qsuper.

This is safer, and it's what w32fns.c does.
This commit is contained in:
Paul Eggert 2013-11-11 22:07:37 -08:00
parent e3ac17b675
commit b367161707
2 changed files with 6 additions and 5 deletions

View file

@ -1,6 +1,7 @@
2013-11-12 Paul Eggert <eggert@cs.ucla.edu>
* xterm.c (syms_of_xterm): staticpro Qmodifier_value.
* xterm.c (syms_of_xterm): staticpro Qmodifier_value, Qalt, Qhyper,
Qmeta, and Qsuper. This is safer, and it's what w32fns.c does.
* buffer.c (Fforce_mode_line_update): Don't fall off end of function
that requires a return value.

View file

@ -10588,13 +10588,13 @@ With MS Windows or Nextstep, the value is t. */);
#endif
DEFSYM (Qmodifier_value, "modifier-value");
Qalt = intern_c_string ("alt");
DEFSYM (Qalt, "alt");
Fput (Qalt, Qmodifier_value, make_number (alt_modifier));
Qhyper = intern_c_string ("hyper");
DEFSYM (Qhyper, "hyper");
Fput (Qhyper, Qmodifier_value, make_number (hyper_modifier));
Qmeta = intern_c_string ("meta");
DEFSYM (Qmeta, "meta");
Fput (Qmeta, Qmodifier_value, make_number (meta_modifier));
Qsuper = intern_c_string ("super");
DEFSYM (Qsuper, "super");
Fput (Qsuper, Qmodifier_value, make_number (super_modifier));
DEFVAR_LISP ("x-alt-keysym", Vx_alt_keysym,