diff options
| author | Paul Eggert | 2011-03-08 23:17:17 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-03-08 23:17:17 -0800 |
| commit | 38d0b34afe4dedd8c80a25af2cd84d488733b6aa (patch) | |
| tree | 1b92ed234e0dfee0498370658840c2362a9578f1 | |
| parent | ed7bf3a5ee1e31dafbb2d285b39c8fe07fc06f7c (diff) | |
| download | emacs-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.
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/xterm.c | 22 |
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 *. */ |
| 280 | static char emacs_class[] = EMACS_CLASS; | 280 | static char emacs_class[] = EMACS_CLASS; |
| 281 | 281 | ||
| 282 | /* XEmbed implementation. */ | ||
| 283 | |||
| 284 | #define XEMBED_VERSION 0 | ||
| 285 | |||
| 286 | enum xembed_info | 282 | enum 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 | ||
| 7648 | static char *error_msg; | 7644 | static 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 | |||
| 7654 | static void | ||
| 7655 | x_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 | |||
| 8904 | static void | 8895 | static void |
| 8905 | xembed_set_info (struct frame *f, enum xembed_info flags) | 8896 | xembed_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 | ||
| 8918 | static void | 8910 | static void |
| 8919 | xembed_send_message (struct frame *f, Time time, enum xembed_message message, long int detail, long int data1, long int data2) | 8911 | xembed_send_message (struct frame *f, Time time, enum xembed_message message, long int detail, long int data1, long int data2) |