aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-03-08 23:17:17 -0800
committerPaul Eggert2011-03-08 23:17:17 -0800
commit38d0b34afe4dedd8c80a25af2cd84d488733b6aa (patch)
tree1b92ed234e0dfee0498370658840c2362a9578f1 /src
parented7bf3a5ee1e31dafbb2d285b39c8fe07fc06f7c (diff)
downloademacs-38d0b34afe4dedd8c80a25af2cd84d488733b6aa.tar.gz
emacs-38d0b34afe4dedd8c80a25af2cd84d488733b6aa.zip
* xterm.c (XEMBED_VERSION, xembed_set_info): Don't define unless needed.
(x_fatal_error_signal): Remove; not used.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/xterm.c22
2 files changed, 9 insertions, 15 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0a14f36dbe7..cdabea5fcd2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -10,6 +10,8 @@
10 Don't declare local "event" unless it's used. 10 Don't declare local "event" unless it's used.
11 (x_iconify_frame, x_free_frame_resources): Don't declare locals 11 (x_iconify_frame, x_free_frame_resources): Don't declare locals
12 unless they are used. 12 unless they are used.
13 (XEMBED_VERSION, xembed_set_info): Don't define unless needed.
14 (x_fatal_error_signal): Remove; not used.
13 15
14 * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font): Rename 16 * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font): Rename
15 or move locals to avoid shadowing. 17 or move locals to avoid shadowing.
diff --git a/src/xterm.c b/src/xterm.c
index 9220d84815c..e64ab270929 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -279,10 +279,6 @@ Lisp_Object Qx_gtk_map_stock;
279/* Some functions take this as char *, not const char *. */ 279/* Some functions take this as char *, not const char *. */
280static char emacs_class[] = EMACS_CLASS; 280static char emacs_class[] = EMACS_CLASS;
281 281
282/* XEmbed implementation. */
283
284#define XEMBED_VERSION 0
285
286enum xembed_info 282enum xembed_info
287 { 283 {
288 XEMBED_MAPPED = 1 << 0 284 XEMBED_MAPPED = 1 << 0
@@ -7647,17 +7643,6 @@ x_connection_signal (int signalnum) /* If we don't have an argument, */
7647 7643
7648static char *error_msg; 7644static char *error_msg;
7649 7645
7650/* Function installed as fatal_error_signal_hook in
7651 x_connection_closed. Print the X error message, and exit normally,
7652 instead of dumping core when XtCloseDisplay fails. */
7653
7654static void
7655x_fatal_error_signal (void)
7656{
7657 fprintf (stderr, "%s\n", error_msg);
7658 exit (70);
7659}
7660
7661/* Handle the loss of connection to display DPY. ERROR_MESSAGE is 7646/* Handle the loss of connection to display DPY. ERROR_MESSAGE is
7662 the text of an error message that lead to the connection loss. */ 7647 the text of an error message that lead to the connection loss. */
7663 7648
@@ -8901,6 +8886,12 @@ XTframe_raise_lower (FRAME_PTR f, int raise_flag)
8901 8886
8902/* XEmbed implementation. */ 8887/* XEmbed implementation. */
8903 8888
8889#if defined USE_X_TOOLKIT || ! defined USE_GTK
8890
8891/* XEmbed implementation. */
8892
8893#define XEMBED_VERSION 0
8894
8904static void 8895static void
8905xembed_set_info (struct frame *f, enum xembed_info flags) 8896xembed_set_info (struct frame *f, enum xembed_info flags)
8906{ 8897{
@@ -8914,6 +8905,7 @@ xembed_set_info (struct frame *f, enum xembed_info flags)
8914 dpyinfo->Xatom_XEMBED_INFO, dpyinfo->Xatom_XEMBED_INFO, 8905 dpyinfo->Xatom_XEMBED_INFO, dpyinfo->Xatom_XEMBED_INFO,
8915 32, PropModeReplace, (unsigned char *) data, 2); 8906 32, PropModeReplace, (unsigned char *) data, 2);
8916} 8907}
8908#endif /* defined USE_X_TOOLKIT || ! defined USE_GTK */
8917 8909
8918static void 8910static void
8919xembed_send_message (struct frame *f, Time time, enum xembed_message message, long int detail, long int data1, long int data2) 8911xembed_send_message (struct frame *f, Time time, enum xembed_message message, long int detail, long int data1, long int data2)