]> git.eshelyaron.com Git - emacs.git/commitdiff
Get rid of intern calls to static strings in xterm.c
authorPo Lu <luangruo@yahoo.com>
Mon, 19 Sep 2022 01:39:21 +0000 (09:39 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 19 Sep 2022 01:39:21 +0000 (09:39 +0800)
* src/xterm.c (x_cr_export_frames): Use Qconcat instead of
interning concat.
(syms_of_xterm): New defsym Qconcat.

src/xterm.c

index 245306c67c8b425b2245edf06b6e9822585de376..59cde718d09009fc7b09bf64fc83bad371573aff 100644 (file)
@@ -6131,7 +6131,7 @@ x_cr_export_frames (Lisp_Object frames, cairo_surface_type_t surface_type)
 
   unbind_to (count, Qnil);
 
-  return CALLN (Fapply, intern ("concat"), Fnreverse (acc));
+  return CALLN (Fapply, Qconcat, Fnreverse (acc));
 }
 
 #endif /* USE_CAIRO */
@@ -29834,6 +29834,9 @@ syms_of_xterm (void)
   x_dnd_unsupported_drop_data = Qnil;
   staticpro (&x_dnd_unsupported_drop_data);
 
+  /* Used by x_cr_export_frames.  */
+  DEFSYM (Qconcat, "concat");
+
   DEFSYM (Qvendor_specific_keysyms, "vendor-specific-keysyms");
   DEFSYM (Qlatin_1, "latin-1");
   DEFSYM (Qnow, "now");