aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2022-12-01 15:08:31 +0800
committerPo Lu2022-12-01 15:08:31 +0800
commitff64a85b2db11b57dda8be0fa0b749870d353590 (patch)
tree20b3477cc40ad740e751147e28b2a73c3eb43e64 /src
parentf19ab1d36c5a39732bef31bc88766b67094b96e7 (diff)
downloademacs-ff64a85b2db11b57dda8be0fa0b749870d353590.tar.gz
emacs-ff64a85b2db11b57dda8be0fa0b749870d353590.zip
Finish up last change with more speedups
* src/xterm.c (x_atom_refs): * src/xterm.h (struct x_display_info): Add some new atoms to be interned at connection setup.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c14
-rw-r--r--src/xterm.h6
2 files changed, 20 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 18879669cd0..43dc7c18b9d 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -1052,6 +1052,20 @@ static const struct x_atom_ref x_atom_refs[] =
1052 /* Old OffiX (a.k.a. old KDE) drop protocol support. */ 1052 /* Old OffiX (a.k.a. old KDE) drop protocol support. */
1053 ATOM_REFS_INIT ("DndProtocol", Xatom_DndProtocol) 1053 ATOM_REFS_INIT ("DndProtocol", Xatom_DndProtocol)
1054 ATOM_REFS_INIT ("_DND_PROTOCOL", Xatom_DND_PROTOCOL) 1054 ATOM_REFS_INIT ("_DND_PROTOCOL", Xatom_DND_PROTOCOL)
1055 /* Here are some atoms that are not actually used from C, just
1056 defined to make replying to selection requests fast. */
1057 ATOM_REFS_INIT ("text/plain;charset=utf-8", Xatom_text_plain_charset_utf_8)
1058 ATOM_REFS_INIT ("LENGTH", Xatom_LENGTH)
1059 ATOM_REFS_INIT ("FILE_NAME", Xatom_FILE_NAME)
1060 ATOM_REFS_INIT ("CHARACTER_POSITION", Xatom_CHARACTER_POSITION)
1061 ATOM_REFS_INIT ("LINE_NUMBER", Xatom_LINE_NUMBER)
1062 ATOM_REFS_INIT ("COLUMN_NUMBER", Xatom_COLUMN_NUMBER)
1063 ATOM_REFS_INIT ("OWNER_OS", Xatom_OWNER_OS)
1064 ATOM_REFS_INIT ("HOST_NAME", Xatom_HOST_NAME)
1065 ATOM_REFS_INIT ("USER", Xatom_USER)
1066 ATOM_REFS_INIT ("CLASS", Xatom_CLASS)
1067 ATOM_REFS_INIT ("NAME", Xatom_NAME)
1068 ATOM_REFS_INIT ("SAVE_TARGETS", Xatom_SAVE_TARGETS)
1055 }; 1069 };
1056 1070
1057enum 1071enum
diff --git a/src/xterm.h b/src/xterm.h
index 6420457a88d..86763dc6e04 100644
--- a/src/xterm.h
+++ b/src/xterm.h
@@ -537,6 +537,12 @@ struct x_display_info
537 KDE" protocol in x-dnd.el). */ 537 KDE" protocol in x-dnd.el). */
538 Atom Xatom_DndProtocol, Xatom_DND_PROTOCOL; 538 Atom Xatom_DndProtocol, Xatom_DND_PROTOCOL;
539 539
540 /* Atoms to make x_intern_cached_atom fast. */
541 Atom Xatom_text_plain_charset_utf_8, Xatom_LENGTH, Xatom_FILE_NAME,
542 Xatom_CHARACTER_POSITION, Xatom_LINE_NUMBER, Xatom_COLUMN_NUMBER,
543 Xatom_OWNER_OS, Xatom_HOST_NAME, Xatom_USER, Xatom_CLASS,
544 Xatom_NAME, Xatom_SAVE_TARGETS;
545
540 /* The frame (if any) which has the X window that has keyboard focus. 546 /* The frame (if any) which has the X window that has keyboard focus.
541 Zero if none. This is examined by Ffocus_frame in xfns.c. Note 547 Zero if none. This is examined by Ffocus_frame in xfns.c. Note
542 that a mere EnterNotify event can set this; if you need to know the 548 that a mere EnterNotify event can set this; if you need to know the