emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r115071: * xterm.c (syms_of_xterm): staticpro Qalt,


From: Paul Eggert
Subject: [Emacs-diffs] trunk r115071: * xterm.c (syms_of_xterm): staticpro Qalt, Qhyper, Qmeta, and Qsuper.
Date: Tue, 12 Nov 2013 06:07:42 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 115071
revision-id: address@hidden
parent: address@hidden
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Mon 2013-11-11 22:07:37 -0800
message:
  * xterm.c (syms_of_xterm): staticpro Qalt, Qhyper, Qmeta, and Qsuper.
  
  This is safer, and it's what w32fns.c does.
modified:
  src/ChangeLog                  changelog-20091113204419-o5vbwnq5f7feedwu-1438
  src/xterm.c                    xterm.c-20091113204419-o5vbwnq5f7feedwu-244
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2013-11-12 03:09:48 +0000
+++ b/src/ChangeLog     2013-11-12 06:07:37 +0000
@@ -1,6 +1,7 @@
 2013-11-12  Paul Eggert  <address@hidden>
 
-       * 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.

=== modified file 'src/xterm.c'
--- a/src/xterm.c       2013-11-12 03:09:48 +0000
+++ b/src/xterm.c       2013-11-12 06:07:37 +0000
@@ -10588,13 +10588,13 @@
 #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,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]