From b3671617075e5d7307255425c292c9f211606cd2 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 11 Nov 2013 22:07:37 -0800 Subject: [PATCH] * xterm.c (syms_of_xterm): staticpro Qalt, Qhyper, Qmeta, and Qsuper. This is safer, and it's what w32fns.c does. --- src/ChangeLog | 3 ++- src/xterm.c | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 7ea7fb84ec9..08bbe9e69d2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,6 +1,7 @@ 2013-11-12 Paul Eggert - * 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. diff --git a/src/xterm.c b/src/xterm.c index b803cc13258..446b2cf1e45 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -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, -- 2.39.2