aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog20
-rw-r--r--src/dispextern.h2
-rw-r--r--src/doprnt.c4
-rw-r--r--src/indent.c2
-rw-r--r--src/w32term.c1
-rw-r--r--src/xdisp.c2
-rw-r--r--src/xselect.c8
-rw-r--r--src/xterm.c8
-rw-r--r--src/xterm.h1
9 files changed, 30 insertions, 18 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 9f8361153a1..3dbddc9b215 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,23 @@
12011-09-14 Paul Eggert <eggert@cs.ucla.edu>
2
3 Remove unused external symbols.
4 * dispextern.h (calc_pixel_width_or_height): Remove decl.
5 * xdisp.c (calc_pixel_width_or_height): Now static.
6 * doprnt.c (exprintf) [! (HAVE_X_WINDOWS && USE_X_TOOLKIT)]: Remove.
7 * indent.c (check_display_width):
8 * w32term.c: Fix comment to match code.
9 * xterm.c, xterm.h (x_catching_errors): Remove.
10
112011-09-14 Paul Eggert <eggert@cs.ucla.edu>
12
13 * xselect.c: Use signed conversions more consistently (Bug#9498).
14 (selection_data_to_lisp_data): Assume incoming selection data are
15 signed integers, not unsigned. This is to be consistent with
16 outgoing selection data, which was modified to use signed integers
17 in as part of the fix to Bug#9196 in response to Jan D.'s comment
18 in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9196#32> that X11
19 expects long, not unsigned long.
20
12011-09-14 Eli Zaretskii <eliz@gnu.org> 212011-09-14 Eli Zaretskii <eliz@gnu.org>
2 22
3 * xdisp.c (try_window_reusing_current_matrix): Fix incorrect 23 * xdisp.c (try_window_reusing_current_matrix): Fix incorrect
diff --git a/src/dispextern.h b/src/dispextern.h
index bc75dc5d2e6..8a1d8e7948e 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -3064,8 +3064,6 @@ extern struct frame *last_mouse_frame;
3064extern int last_tool_bar_item; 3064extern int last_tool_bar_item;
3065extern void reseat_at_previous_visible_line_start (struct it *); 3065extern void reseat_at_previous_visible_line_start (struct it *);
3066extern Lisp_Object lookup_glyphless_char_display (int, struct it *); 3066extern Lisp_Object lookup_glyphless_char_display (int, struct it *);
3067extern int calc_pixel_width_or_height (double *, struct it *, Lisp_Object,
3068 struct font *, int, int *);
3069extern EMACS_INT compute_display_string_pos (struct text_pos *, 3067extern EMACS_INT compute_display_string_pos (struct text_pos *,
3070 struct bidi_string_data *, 3068 struct bidi_string_data *,
3071 int, int *); 3069 int, int *);
diff --git a/src/doprnt.c b/src/doprnt.c
index 8db7c0f2ada..b4d13c59137 100644
--- a/src/doprnt.c
+++ b/src/doprnt.c
@@ -486,6 +486,8 @@ esprintf (char *buf, char const *format, ...)
486 return nbytes; 486 return nbytes;
487} 487}
488 488
489#if defined HAVE_X_WINDOWS && defined USE_X_TOOLKIT
490
489/* Format to buffer *BUF of positive size *BUFSIZE, reallocating *BUF 491/* Format to buffer *BUF of positive size *BUFSIZE, reallocating *BUF
490 and updating *BUFSIZE if the buffer is too small, and otherwise 492 and updating *BUFSIZE if the buffer is too small, and otherwise
491 behaving line esprintf. When reallocating, free *BUF unless it is 493 behaving line esprintf. When reallocating, free *BUF unless it is
@@ -505,6 +507,8 @@ exprintf (char **buf, ptrdiff_t *bufsize,
505 return nbytes; 507 return nbytes;
506} 508}
507 509
510#endif
511
508/* Act like exprintf, except take a va_list. */ 512/* Act like exprintf, except take a va_list. */
509ptrdiff_t 513ptrdiff_t
510evxprintf (char **buf, ptrdiff_t *bufsize, 514evxprintf (char **buf, ptrdiff_t *bufsize,
diff --git a/src/indent.c b/src/indent.c
index bae9ab1b46d..e00d2152577 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -471,7 +471,7 @@ check_display_width (EMACS_INT pos, EMACS_INT col, EMACS_INT *endpos)
471 if (CONSP (val = get_char_property_and_overlay 471 if (CONSP (val = get_char_property_and_overlay
472 (make_number (pos), Qdisplay, Qnil, &overlay)) 472 (make_number (pos), Qdisplay, Qnil, &overlay))
473 && EQ (Qspace, XCAR (val))) 473 && EQ (Qspace, XCAR (val)))
474 { /* FIXME: Use calc_pixel_width_or_height, as in term.c. */ 474 { /* FIXME: Use calc_pixel_width_or_height. */
475 Lisp_Object plist = XCDR (val), prop; 475 Lisp_Object plist = XCDR (val), prop;
476 int width = -1; 476 int width = -1;
477 477
diff --git a/src/w32term.c b/src/w32term.c
index 98c4a391953..8d9d8f72029 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -5197,7 +5197,6 @@ x_catch_errors (dpy)
5197x_catch_errors_unwind (old_val) 5197x_catch_errors_unwind (old_val)
5198x_check_errors (dpy, format) 5198x_check_errors (dpy, format)
5199x_fully_uncatch_errors () 5199x_fully_uncatch_errors ()
5200x_catching_errors ()
5201x_had_errors_p (dpy) 5200x_had_errors_p (dpy)
5202x_clear_errors (dpy) 5201x_clear_errors (dpy)
5203x_uncatch_errors (dpy, count) 5202x_uncatch_errors (dpy, count)
diff --git a/src/xdisp.c b/src/xdisp.c
index 241571cd9df..32007f52f4d 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -21398,7 +21398,7 @@ else if the text is replaced by an ellipsis. */)
21398 ? XFLOATINT (X) \ 21398 ? XFLOATINT (X) \
21399 : - 1) 21399 : - 1)
21400 21400
21401int 21401static int
21402calc_pixel_width_or_height (double *res, struct it *it, Lisp_Object prop, 21402calc_pixel_width_or_height (double *res, struct it *it, Lisp_Object prop,
21403 struct font *font, int width_p, int *align_to) 21403 struct font *font, int width_p, int *align_to)
21404{ 21404{
diff --git a/src/xselect.c b/src/xselect.c
index 241622e81b3..29e8552bb9c 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -1685,9 +1685,9 @@ selection_data_to_lisp_data (Display *display, const unsigned char *data,
1685 convert it to a cons of integers, 16 bits in each half. 1685 convert it to a cons of integers, 16 bits in each half.
1686 */ 1686 */
1687 else if (format == 32 && size == sizeof (int)) 1687 else if (format == 32 && size == sizeof (int))
1688 return INTEGER_TO_CONS (((unsigned int *) data) [0]); 1688 return INTEGER_TO_CONS (((int *) data) [0]);
1689 else if (format == 16 && size == sizeof (short)) 1689 else if (format == 16 && size == sizeof (short))
1690 return make_number (((unsigned short *) data) [0]); 1690 return make_number (((short *) data) [0]);
1691 1691
1692 /* Convert any other kind of data to a vector of numbers, represented 1692 /* Convert any other kind of data to a vector of numbers, represented
1693 as above (as an integer, or a cons of two 16 bit integers.) 1693 as above (as an integer, or a cons of two 16 bit integers.)
@@ -1699,7 +1699,7 @@ selection_data_to_lisp_data (Display *display, const unsigned char *data,
1699 v = Fmake_vector (make_number (size / 2), make_number (0)); 1699 v = Fmake_vector (make_number (size / 2), make_number (0));
1700 for (i = 0; i < size / 2; i++) 1700 for (i = 0; i < size / 2; i++)
1701 { 1701 {
1702 EMACS_INT j = ((unsigned short *) data) [i]; 1702 EMACS_INT j = ((short *) data) [i];
1703 Faset (v, make_number (i), make_number (j)); 1703 Faset (v, make_number (i), make_number (j));
1704 } 1704 }
1705 return v; 1705 return v;
@@ -1711,7 +1711,7 @@ selection_data_to_lisp_data (Display *display, const unsigned char *data,
1711 make_number (0)); 1711 make_number (0));
1712 for (i = 0; i < size / X_LONG_SIZE; i++) 1712 for (i = 0; i < size / X_LONG_SIZE; i++)
1713 { 1713 {
1714 unsigned int j = ((unsigned int *) data) [i]; 1714 int j = ((int *) data) [i];
1715 Faset (v, make_number (i), INTEGER_TO_CONS (j)); 1715 Faset (v, make_number (i), INTEGER_TO_CONS (j));
1716 } 1716 }
1717 return v; 1717 return v;
diff --git a/src/xterm.c b/src/xterm.c
index 29f1a85d2c6..0c096e8f729 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -7700,14 +7700,6 @@ x_fully_uncatch_errors (void)
7700} 7700}
7701#endif 7701#endif
7702 7702
7703/* Nonzero if x_catch_errors has been done and not yet canceled. */
7704
7705int
7706x_catching_errors (void)
7707{
7708 return x_error_message != 0;
7709}
7710
7711#if 0 7703#if 0
7712static unsigned int x_wire_count; 7704static unsigned int x_wire_count;
7713x_trace_wire (void) 7705x_trace_wire (void)
diff --git a/src/xterm.h b/src/xterm.h
index 5c9365c1269..11d5d50d952 100644
--- a/src/xterm.h
+++ b/src/xterm.h
@@ -958,7 +958,6 @@ extern void x_catch_errors (Display *);
958extern void x_check_errors (Display *, const char *) 958extern void x_check_errors (Display *, const char *)
959 ATTRIBUTE_FORMAT_PRINTF (2, 0); 959 ATTRIBUTE_FORMAT_PRINTF (2, 0);
960extern int x_had_errors_p (Display *); 960extern int x_had_errors_p (Display *);
961extern int x_catching_errors (void);
962extern void x_uncatch_errors (void); 961extern void x_uncatch_errors (void);
963extern void x_clear_errors (Display *); 962extern void x_clear_errors (Display *);
964extern void x_set_window_size (struct frame *, int, int, int); 963extern void x_set_window_size (struct frame *, int, int, int);