diff options
| author | Po Lu | 2022-09-19 09:39:21 +0800 |
|---|---|---|
| committer | Po Lu | 2022-09-19 09:39:21 +0800 |
| commit | 202c416e2e829cfdfde83bc82705be4b7ad6799e (patch) | |
| tree | 7c2a485b3bbc933ce6a9b702e77f9e3dc27ef27c /src | |
| parent | a5405e56449e90203db909ea4ed1b19500e5044b (diff) | |
| download | emacs-202c416e2e829cfdfde83bc82705be4b7ad6799e.tar.gz emacs-202c416e2e829cfdfde83bc82705be4b7ad6799e.zip | |
Get rid of intern calls to static strings in xterm.c
* src/xterm.c (x_cr_export_frames): Use Qconcat instead of
interning concat.
(syms_of_xterm): New defsym Qconcat.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c index 245306c67c8..59cde718d09 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -6131,7 +6131,7 @@ x_cr_export_frames (Lisp_Object frames, cairo_surface_type_t surface_type) | |||
| 6131 | 6131 | ||
| 6132 | unbind_to (count, Qnil); | 6132 | unbind_to (count, Qnil); |
| 6133 | 6133 | ||
| 6134 | return CALLN (Fapply, intern ("concat"), Fnreverse (acc)); | 6134 | return CALLN (Fapply, Qconcat, Fnreverse (acc)); |
| 6135 | } | 6135 | } |
| 6136 | 6136 | ||
| 6137 | #endif /* USE_CAIRO */ | 6137 | #endif /* USE_CAIRO */ |
| @@ -29834,6 +29834,9 @@ syms_of_xterm (void) | |||
| 29834 | x_dnd_unsupported_drop_data = Qnil; | 29834 | x_dnd_unsupported_drop_data = Qnil; |
| 29835 | staticpro (&x_dnd_unsupported_drop_data); | 29835 | staticpro (&x_dnd_unsupported_drop_data); |
| 29836 | 29836 | ||
| 29837 | /* Used by x_cr_export_frames. */ | ||
| 29838 | DEFSYM (Qconcat, "concat"); | ||
| 29839 | |||
| 29837 | DEFSYM (Qvendor_specific_keysyms, "vendor-specific-keysyms"); | 29840 | DEFSYM (Qvendor_specific_keysyms, "vendor-specific-keysyms"); |
| 29838 | DEFSYM (Qlatin_1, "latin-1"); | 29841 | DEFSYM (Qlatin_1, "latin-1"); |
| 29839 | DEFSYM (Qnow, "now"); | 29842 | DEFSYM (Qnow, "now"); |