aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2013-12-01 14:33:13 -0800
committerPaul Eggert2013-12-01 14:33:13 -0800
commitf224e5002292f7b9b9347147d4b5af913fed516a (patch)
treed48239f853e7eedcda8a8f86a044b2a8004fcd1d /src
parent75b09539a4b4e62818d65cb0773587d8a2ac615f (diff)
downloademacs-f224e5002292f7b9b9347147d4b5af913fed516a.tar.gz
emacs-f224e5002292f7b9b9347147d4b5af913fed516a.zip
Spelling and punctuation fixes.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog.122
-rw-r--r--src/alloc.c2
-rw-r--r--src/blockinput.h2
-rw-r--r--src/buffer.h2
-rw-r--r--src/charset.h2
-rw-r--r--src/chartab.c2
-rw-r--r--src/dispextern.h8
-rw-r--r--src/frame.h6
-rw-r--r--src/lread.c2
-rw-r--r--src/nsterm.m4
-rw-r--r--src/print.c2
-rw-r--r--src/regex.c2
-rw-r--r--src/w32fns.c2
-rw-r--r--src/window.c12
-rw-r--r--src/xdisp.c19
-rw-r--r--src/xrdb.c2
16 files changed, 35 insertions, 36 deletions
diff --git a/src/ChangeLog.12 b/src/ChangeLog.12
index b14ce20ede3..02940840eaa 100644
--- a/src/ChangeLog.12
+++ b/src/ChangeLog.12
@@ -2840,7 +2840,7 @@
28402012-11-19 Daniel Colascione <dancol@dancol.org> 28402012-11-19 Daniel Colascione <dancol@dancol.org>
2841 2841
2842 * w32fns.c (Fx_file_dialog): 2842 * w32fns.c (Fx_file_dialog):
2843 (Fx_file_dialog): Accomodate rename of cygwin_convert_path* to 2843 (Fx_file_dialog): Accommodate rename of cygwin_convert_path* to
2844 cygwin_convert_file_name*. 2844 cygwin_convert_file_name*.
2845 2845
2846 * cygw32.c (Fcygwin_convert_path_to_windows, syms_of_cygw32): 2846 * cygw32.c (Fcygwin_convert_path_to_windows, syms_of_cygw32):
diff --git a/src/alloc.c b/src/alloc.c
index 7024b47fc7d..f076075a94f 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -4317,7 +4317,7 @@ live_buffer_p (struct mem_node *m, void *p)
4317void dump_zombies (void) EXTERNALLY_VISIBLE; 4317void dump_zombies (void) EXTERNALLY_VISIBLE;
4318 4318
4319/* Array of objects that are kept alive because the C stack contains 4319/* Array of objects that are kept alive because the C stack contains
4320 a pattern that looks like a reference to them . */ 4320 a pattern that looks like a reference to them. */
4321 4321
4322#define MAX_ZOMBIES 10 4322#define MAX_ZOMBIES 10
4323static Lisp_Object zombies[MAX_ZOMBIES]; 4323static Lisp_Object zombies[MAX_ZOMBIES];
diff --git a/src/blockinput.h b/src/blockinput.h
index 8f1b1e18985..6c69b01d3dd 100644
--- a/src/blockinput.h
+++ b/src/blockinput.h
@@ -59,7 +59,7 @@ extern void unblock_input (void);
59extern void totally_unblock_input (void); 59extern void totally_unblock_input (void);
60extern void unblock_input_to (int); 60extern void unblock_input_to (int);
61 61
62/* In critical section ? */ 62/* In critical section? */
63 63
64INLINE bool 64INLINE bool
65input_blocked_p (void) 65input_blocked_p (void)
diff --git a/src/buffer.h b/src/buffer.h
index 586090fbe88..10d5fdc23e0 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -741,7 +741,7 @@ struct buffer
741 Lisp_Object INTERNAL_FIELD (cursor_in_non_selected_windows); 741 Lisp_Object INTERNAL_FIELD (cursor_in_non_selected_windows);
742 742
743 /* No more Lisp_Object beyond this point. Except undo_list, 743 /* No more Lisp_Object beyond this point. Except undo_list,
744 which is handled specially in Fgarbage_collect . */ 744 which is handled specially in Fgarbage_collect. */
745 745
746 /* This structure holds the coordinates of the buffer contents 746 /* This structure holds the coordinates of the buffer contents
747 in ordinary buffers. In indirect buffers, this is not used. */ 747 in ordinary buffers. In indirect buffers, this is not used. */
diff --git a/src/charset.h b/src/charset.h
index 6e6a8891b4a..d5c41ec6f49 100644
--- a/src/charset.h
+++ b/src/charset.h
@@ -208,7 +208,7 @@ struct charset
208 unsigned min_code, max_code; 208 unsigned min_code, max_code;
209 209
210 /* Offset value used by macros CODE_POINT_TO_INDEX and 210 /* Offset value used by macros CODE_POINT_TO_INDEX and
211 INDEX_TO_CODE_POINT. . */ 211 INDEX_TO_CODE_POINT. */
212 unsigned char_index_offset; 212 unsigned char_index_offset;
213 213
214 /* Minimum and Maximum character codes of the charset. If the 214 /* Minimum and Maximum character codes of the charset. If the
diff --git a/src/chartab.c b/src/chartab.c
index 16dd85c12c0..2a8bbc6983a 100644
--- a/src/chartab.c
+++ b/src/chartab.c
@@ -1272,7 +1272,7 @@ uniprop_encode_value_run_length (Lisp_Object table, Lisp_Object value)
1272 1272
1273 1273
1274/* Encode VALUE as an element of char-table TABLE which adopts RUN-LENGTH 1274/* Encode VALUE as an element of char-table TABLE which adopts RUN-LENGTH
1275 compression and contains numbers as elements . */ 1275 compression and contains numbers as elements. */
1276 1276
1277static Lisp_Object 1277static Lisp_Object
1278uniprop_encode_value_numeric (Lisp_Object table, Lisp_Object value) 1278uniprop_encode_value_numeric (Lisp_Object table, Lisp_Object value)
diff --git a/src/dispextern.h b/src/dispextern.h
index 977e2f8c66c..2ce0a8f4c99 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -1471,8 +1471,8 @@ struct glyph_string
1471 So maybe these checks should be removed and any clipping left to the 1471 So maybe these checks should be removed and any clipping left to the
1472 window manager. */ 1472 window manager. */
1473 1473
1474/* Value is non-zero if window W wants a mode line and is large enough 1474/* Value is true if window W wants a mode line and is large enough
1475 to accomodate it. */ 1475 to accommodate it. */
1476#define WINDOW_WANTS_MODELINE_P(W) \ 1476#define WINDOW_WANTS_MODELINE_P(W) \
1477 (BUFFERP ((W)->contents) \ 1477 (BUFFERP ((W)->contents) \
1478 ? (!MINI_WINDOW_P (W) \ 1478 ? (!MINI_WINDOW_P (W) \
@@ -1482,8 +1482,8 @@ struct glyph_string
1482 && WINDOW_PIXEL_HEIGHT (W) > WINDOW_FRAME_LINE_HEIGHT (W)) \ 1482 && WINDOW_PIXEL_HEIGHT (W) > WINDOW_FRAME_LINE_HEIGHT (W)) \
1483 : 0) 1483 : 0)
1484 1484
1485/* Value is non-zero if window W wants a header line and is large enough 1485/* Value is true if window W wants a header line and is large enough
1486 to accomodate it. */ 1486 to accommodate it. */
1487#define WINDOW_WANTS_HEADER_LINE_P(W) \ 1487#define WINDOW_WANTS_HEADER_LINE_P(W) \
1488 (BUFFERP ((W)->contents) \ 1488 (BUFFERP ((W)->contents) \
1489 ? (!MINI_WINDOW_P (W) \ 1489 ? (!MINI_WINDOW_P (W) \
diff --git a/src/frame.h b/src/frame.h
index 4a0ff461f6d..8369cf6b17e 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -254,7 +254,7 @@ struct frame
254 int text_width, text_height; 254 int text_width, text_height;
255 255
256 /* New text height and width for pending size change. 0 if no change 256 /* New text height and width for pending size change. 0 if no change
257 pending. These value represent pixels or canoncial character units 257 pending. These values represent pixels or canonical character units
258 according to the value of new_pixelwise and correlate to the the 258 according to the value of new_pixelwise and correlate to the the
259 text width/height of the frame. */ 259 text width/height of the frame. */
260 int new_width, new_height; 260 int new_width, new_height;
@@ -1170,7 +1170,7 @@ extern Lisp_Object Vframe_list;
1170 - FRAME_INTERNAL_BORDER_WIDTH (f)))) 1170 - FRAME_INTERNAL_BORDER_WIDTH (f))))
1171 1171
1172/* Return the pixel width/height of frame F with a text size of 1172/* Return the pixel width/height of frame F with a text size of
1173 width/heigh. */ 1173 width/height. */
1174 1174
1175#define FRAME_TEXT_TO_PIXEL_WIDTH(f, width) \ 1175#define FRAME_TEXT_TO_PIXEL_WIDTH(f, width) \
1176 ((width) \ 1176 ((width) \
@@ -1182,7 +1182,7 @@ extern Lisp_Object Vframe_list;
1182 ((height) + 2 * FRAME_INTERNAL_BORDER_WIDTH (f)) 1182 ((height) + 2 * FRAME_INTERNAL_BORDER_WIDTH (f))
1183 1183
1184/* Return the text width/height of frame F with a pixel size of 1184/* Return the text width/height of frame F with a pixel size of
1185 width/heigh. */ 1185 width/height. */
1186 1186
1187#define FRAME_PIXEL_TO_TEXT_WIDTH(f, width) \ 1187#define FRAME_PIXEL_TO_TEXT_WIDTH(f, width) \
1188 ((width) \ 1188 ((width) \
diff --git a/src/lread.c b/src/lread.c
index 679cbb78375..a64f083a5ac 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -3537,7 +3537,7 @@ read_vector (Lisp_Object readcharfun, bool bytecodeflag)
3537 return vector; 3537 return vector;
3538} 3538}
3539 3539
3540/* FLAG means check for ] to terminate rather than ) and . */ 3540/* FLAG means check for ']' to terminate rather than ')' and '.'. */
3541 3541
3542static Lisp_Object 3542static Lisp_Object
3543read_list (bool flag, Lisp_Object readcharfun) 3543read_list (bool flag, Lisp_Object readcharfun)
diff --git a/src/nsterm.m b/src/nsterm.m
index 7121366527b..e58ac9b9277 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -1390,7 +1390,7 @@ ns_index_color (NSColor *color, struct frame *f)
1390 color_table->empty_indices = [[NSMutableSet alloc] init]; 1390 color_table->empty_indices = [[NSMutableSet alloc] init];
1391 } 1391 }
1392 1392
1393 /* do we already have this color ? */ 1393 /* Do we already have this color? */
1394 for (i = 1; i < color_table->avail; i++) 1394 for (i = 1; i < color_table->avail; i++)
1395 if (color_table->colors[i] && [color_table->colors[i] isEqual: color]) 1395 if (color_table->colors[i] && [color_table->colors[i] isEqual: color])
1396 return i; 1396 return i;
@@ -7585,5 +7585,5 @@ baseline level. The default value is nil. */);
7585#else 7585#else
7586 Fprovide (Qgnustep, Qnil); 7586 Fprovide (Qgnustep, Qnil);
7587#endif 7587#endif
7588 7588
7589} 7589}
diff --git a/src/print.c b/src/print.c
index 80e010ee0f5..6e8aec37ba5 100644
--- a/src/print.c
+++ b/src/print.c
@@ -1119,7 +1119,7 @@ print (Lisp_Object obj, Lisp_Object printcharfun, bool escapeflag)
1119 string (its text properties will be traced), or a symbol that has 1119 string (its text properties will be traced), or a symbol that has
1120 no obarray (this is for the print-gensym feature). 1120 no obarray (this is for the print-gensym feature).
1121 The status fields of Vprint_number_table mean whether each object appears 1121 The status fields of Vprint_number_table mean whether each object appears
1122 more than once in OBJ: Qnil at the first time, and Qt after that . */ 1122 more than once in OBJ: Qnil at the first time, and Qt after that. */
1123static void 1123static void
1124print_preprocess (Lisp_Object obj) 1124print_preprocess (Lisp_Object obj)
1125{ 1125{
diff --git a/src/regex.c b/src/regex.c
index 615fb3fdf34..b45dbcaada7 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -5907,7 +5907,7 @@ re_match_2_internal (struct re_pattern_buffer *bufp, const_re_char *string1,
5907 EXTRACT_NUMBER_AND_INCR (mcnt, p); 5907 EXTRACT_NUMBER_AND_INCR (mcnt, p);
5908 /* Here, we discard `const', making re_match non-reentrant. */ 5908 /* Here, we discard `const', making re_match non-reentrant. */
5909 p2 = (unsigned char*) p + mcnt; 5909 p2 = (unsigned char*) p + mcnt;
5910 /* Signedness doesn't matter since we only copy MCNT's bits . */ 5910 /* Signedness doesn't matter since we only copy MCNT's bits. */
5911 EXTRACT_NUMBER_AND_INCR (mcnt, p); 5911 EXTRACT_NUMBER_AND_INCR (mcnt, p);
5912 DEBUG_PRINT (" Setting %p to %d.\n", p2, mcnt); 5912 DEBUG_PRINT (" Setting %p to %d.\n", p2, mcnt);
5913 PUSH_NUMBER (p2, mcnt); 5913 PUSH_NUMBER (p2, mcnt);
diff --git a/src/w32fns.c b/src/w32fns.c
index 975d3f95e67..f574a86b1e1 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -6153,7 +6153,7 @@ Text larger than the specified size is clipped. */)
6153 { 6153 {
6154 /* PXW: Why do we do the pixel-to-cols conversion only if 6154 /* PXW: Why do we do the pixel-to-cols conversion only if
6155 seen_reversed_p holds? Don't we have to set other fields of 6155 seen_reversed_p holds? Don't we have to set other fields of
6156 the window/frame stucture ? 6156 the window/frame structure?
6157 6157
6158 w->total_cols and FRAME_TOTAL_COLS want the width in columns, 6158 w->total_cols and FRAME_TOTAL_COLS want the width in columns,
6159 not in pixels. */ 6159 not in pixels. */
diff --git a/src/window.c b/src/window.c
index e62fdad6827..a28449ba1db 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1212,7 +1212,7 @@ coordinates_in_window (register struct window *w, int x, int y)
1212 return ON_NOTHING; 1212 return ON_NOTHING;
1213 1213
1214 /* On vertical window divider (which prevails horizontal 1214 /* On vertical window divider (which prevails horizontal
1215 dividers) ? */ 1215 dividers)? */
1216 if (!WINDOW_RIGHTMOST_P (w) 1216 if (!WINDOW_RIGHTMOST_P (w)
1217 && WINDOW_RIGHT_DIVIDER_WIDTH (w) 1217 && WINDOW_RIGHT_DIVIDER_WIDTH (w)
1218 && x >= right_x - WINDOW_RIGHT_DIVIDER_WIDTH (w) 1218 && x >= right_x - WINDOW_RIGHT_DIVIDER_WIDTH (w)
@@ -1285,8 +1285,8 @@ coordinates_in_window (register struct window *w, int x, int y)
1285 terminals, the vertical line's x coordinate is right_x. */ 1285 terminals, the vertical line's x coordinate is right_x. */
1286 else if (!w->pseudo_window_p 1286 else if (!w->pseudo_window_p
1287 && !WINDOW_RIGHTMOST_P (w) 1287 && !WINDOW_RIGHTMOST_P (w)
1288 /* Why check ux if we are not the rightmost window ? Also 1288 /* Why check ux if we are not the rightmost window? Also
1289 shouldn't a pseudo window always be rightmost ? */ 1289 shouldn't a pseudo window always be rightmost? */
1290 && x > right_x - ux) 1290 && x > right_x - ux)
1291 return ON_VERTICAL_BORDER; 1291 return ON_VERTICAL_BORDER;
1292 1292
@@ -5844,12 +5844,12 @@ struct save_window_data
5844 From `frame-cols' down, the fields are ignored by the GC. */ 5844 From `frame-cols' down, the fields are ignored by the GC. */
5845 /* We should be able to do without the following two. */ 5845 /* We should be able to do without the following two. */
5846 int frame_cols, frame_lines; 5846 int frame_cols, frame_lines;
5847 /* These two should get eventually replaced by their pixelized 5847 /* These two should get eventually replaced by their pixel
5848 counterparts. */ 5848 counterparts. */
5849 int frame_menu_bar_lines, frame_tool_bar_lines; 5849 int frame_menu_bar_lines, frame_tool_bar_lines;
5850 int frame_text_width, frame_text_height; 5850 int frame_text_width, frame_text_height;
5851 /* These are currently unused. We need them as soon as we pixelize 5851 /* These are currently unused. We need them as soon as we convert
5852 them. */ 5852 to pixels. */
5853 int frame_menu_bar_height, frame_tool_bar_height; 5853 int frame_menu_bar_height, frame_tool_bar_height;
5854 }; 5854 };
5855 5855
diff --git a/src/xdisp.c b/src/xdisp.c
index e192ed3fd6b..b52c89a7556 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -1907,8 +1907,7 @@ pixel_to_glyph_coords (struct frame *f, register int pix_x, register int pix_y,
1907 FRAME_COLUMN_WIDTH (f) - 1, 1907 FRAME_COLUMN_WIDTH (f) - 1,
1908 FRAME_LINE_HEIGHT (f) - 1); 1908 FRAME_LINE_HEIGHT (f) - 1);
1909 1909
1910 /* PXW: Should we clip pixelized before converting to 1910 /* PXW: Should we clip pixels before converting to columns/lines? */
1911 columns/lines ? */
1912 if (!noclip) 1911 if (!noclip)
1913 { 1912 {
1914 if (pix_x < 0) 1913 if (pix_x < 0)
@@ -2814,7 +2813,7 @@ init_iterator (struct it *it, struct window *w,
2814 && ((!NILP (Vtruncate_partial_width_windows) 2813 && ((!NILP (Vtruncate_partial_width_windows)
2815 && !INTEGERP (Vtruncate_partial_width_windows)) 2814 && !INTEGERP (Vtruncate_partial_width_windows))
2816 || (INTEGERP (Vtruncate_partial_width_windows) 2815 || (INTEGERP (Vtruncate_partial_width_windows)
2817 /* PXW: Shall we do something about this ? */ 2816 /* PXW: Shall we do something about this? */
2818 && (WINDOW_TOTAL_COLS (it->w) 2817 && (WINDOW_TOTAL_COLS (it->w)
2819 < XINT (Vtruncate_partial_width_windows)))))) 2818 < XINT (Vtruncate_partial_width_windows))))))
2820 it->line_wrap = TRUNCATE; 2819 it->line_wrap = TRUNCATE;
@@ -12072,7 +12071,7 @@ tool_bar_height (struct frame *f, int *n_rows, bool pixelwise)
12072 F->desired_tool_bar_string in the tool-bar window of frame F. */ 12071 F->desired_tool_bar_string in the tool-bar window of frame F. */
12073 init_iterator (&it, w, -1, -1, temp_row, TOOL_BAR_FACE_ID); 12072 init_iterator (&it, w, -1, -1, temp_row, TOOL_BAR_FACE_ID);
12074 it.first_visible_x = 0; 12073 it.first_visible_x = 0;
12075 /* PXW: Use FRAME_PIXEL_WIDTH (f) here ? */ 12074 /* PXW: Use FRAME_PIXEL_WIDTH (f) here? */
12076 it.last_visible_x = FRAME_TOTAL_COLS (f) * FRAME_COLUMN_WIDTH (f); 12075 it.last_visible_x = FRAME_TOTAL_COLS (f) * FRAME_COLUMN_WIDTH (f);
12077 reseat_to_string (&it, NULL, f->desired_tool_bar_string, 0, 0, 0, -1); 12076 reseat_to_string (&it, NULL, f->desired_tool_bar_string, 0, 0, 0, -1);
12078 it.paragraph_embedding = L2R; 12077 it.paragraph_embedding = L2R;
@@ -13494,7 +13493,7 @@ redisplay_internal (void)
13494 /* Make sure the cursor was last displayed 13493 /* Make sure the cursor was last displayed
13495 in this window. Otherwise we have to reposition it. */ 13494 in this window. Otherwise we have to reposition it. */
13496 13495
13497 /* PXW: Must be pixelized, probably. */ 13496 /* PXW: Must be converted to pixels, probably. */
13498 && 0 <= w->cursor.vpos 13497 && 0 <= w->cursor.vpos
13499 && w->cursor.vpos < WINDOW_TOTAL_LINES (w)) 13498 && w->cursor.vpos < WINDOW_TOTAL_LINES (w))
13500 { 13499 {
@@ -13588,7 +13587,7 @@ redisplay_internal (void)
13588 if (FRAME_WINDOW_P (f) || FRAME_TERMCAP_P (f) || f == sf) 13587 if (FRAME_WINDOW_P (f) || FRAME_TERMCAP_P (f) || f == sf)
13589 { 13588 {
13590 bool gcscrollbars 13589 bool gcscrollbars
13591 /* Only GC scollbars when we redisplay the whole frame. */ 13590 /* Only GC scrollbars when we redisplay the whole frame. */
13592 = f->redisplay || !REDISPLAY_SOME_P (); 13591 = f->redisplay || !REDISPLAY_SOME_P ();
13593 /* Mark all the scroll bars to be removed; we'll redeem 13592 /* Mark all the scroll bars to be removed; we'll redeem
13594 the ones we want when we redisplay their windows. */ 13593 the ones we want when we redisplay their windows. */
@@ -15046,7 +15045,7 @@ try_scrolling (Lisp_Object window, int just_this_one_p,
15046 if (! cursor_row_fully_visible_p (w, extra_scroll_margin_lines <= 1, 0) 15045 if (! cursor_row_fully_visible_p (w, extra_scroll_margin_lines <= 1, 0)
15047 /* It's possible that the cursor is on the first line of the 15046 /* It's possible that the cursor is on the first line of the
15048 buffer, which is partially obscured due to a vscroll 15047 buffer, which is partially obscured due to a vscroll
15049 (Bug#7537). In that case, avoid looping forever . */ 15048 (Bug#7537). In that case, avoid looping forever. */
15050 && extra_scroll_margin_lines < w->desired_matrix->nrows - 1) 15049 && extra_scroll_margin_lines < w->desired_matrix->nrows - 1)
15051 { 15050 {
15052 clear_glyph_matrix (w->desired_matrix); 15051 clear_glyph_matrix (w->desired_matrix);
@@ -15101,7 +15100,7 @@ compute_window_start_on_continuation_line (struct window *w)
15101 /* If the line start is "too far" away from the window start, 15100 /* If the line start is "too far" away from the window start,
15102 say it takes too much time to compute a new window start. */ 15101 say it takes too much time to compute a new window start. */
15103 if (CHARPOS (start_pos) - IT_CHARPOS (it) 15102 if (CHARPOS (start_pos) - IT_CHARPOS (it)
15104 /* PXW: Do we need upper bounds here ? */ 15103 /* PXW: Do we need upper bounds here? */
15105 < WINDOW_TOTAL_LINES (w) * WINDOW_TOTAL_COLS (w)) 15104 < WINDOW_TOTAL_LINES (w) * WINDOW_TOTAL_COLS (w))
15106 { 15105 {
15107 int min_distance, distance; 15106 int min_distance, distance;
@@ -20728,7 +20727,7 @@ display_menu_bar (struct window *w)
20728 eassert (!FRAME_WINDOW_P (f)); 20727 eassert (!FRAME_WINDOW_P (f));
20729 init_iterator (&it, w, -1, -1, f->desired_matrix->rows, MENU_FACE_ID); 20728 init_iterator (&it, w, -1, -1, f->desired_matrix->rows, MENU_FACE_ID);
20730 it.first_visible_x = 0; 20729 it.first_visible_x = 0;
20731 /* PXW: Use FRAME_PIXEL_WIDTH (f) here ? */ 20730 /* PXW: Use FRAME_PIXEL_WIDTH (f) here? */
20732 it.last_visible_x = FRAME_TOTAL_COLS (f) * FRAME_COLUMN_WIDTH (f); 20731 it.last_visible_x = FRAME_TOTAL_COLS (f) * FRAME_COLUMN_WIDTH (f);
20733#elif defined (HAVE_X_WINDOWS) /* X without toolkit. */ 20732#elif defined (HAVE_X_WINDOWS) /* X without toolkit. */
20734 if (FRAME_WINDOW_P (f)) 20733 if (FRAME_WINDOW_P (f))
@@ -20740,7 +20739,7 @@ display_menu_bar (struct window *w)
20740 init_iterator (&it, menu_w, -1, -1, menu_w->desired_matrix->rows, 20739 init_iterator (&it, menu_w, -1, -1, menu_w->desired_matrix->rows,
20741 MENU_FACE_ID); 20740 MENU_FACE_ID);
20742 it.first_visible_x = 0; 20741 it.first_visible_x = 0;
20743 /* PXW: Use FRAME_PIXEL_WIDTH (f) here ? */ 20742 /* PXW: Use FRAME_PIXEL_WIDTH (f) here? */
20744 it.last_visible_x = FRAME_TOTAL_COLS (f) * FRAME_COLUMN_WIDTH (f); 20743 it.last_visible_x = FRAME_TOTAL_COLS (f) * FRAME_COLUMN_WIDTH (f);
20745 } 20744 }
20746 else 20745 else
diff --git a/src/xrdb.c b/src/xrdb.c
index ea823b2b313..7220915e631 100644
--- a/src/xrdb.c
+++ b/src/xrdb.c
@@ -179,7 +179,7 @@ magic_db (const char *string, ptrdiff_t string_len, const char *class,
179 else 179 else
180 next = p, next_len = 1; 180 next = p, next_len = 1;
181 181
182 /* Do we have room for this component followed by a '\0' ? */ 182 /* Do we have room for this component followed by a '\0'? */
183 if (path_size - path_len <= next_len) 183 if (path_size - path_len <= next_len)
184 { 184 {
185 if (min (PTRDIFF_MAX, SIZE_MAX) / 2 - 1 - path_len < next_len) 185 if (min (PTRDIFF_MAX, SIZE_MAX) / 2 - 1 - path_len < next_len)