(ido-mode): Remove unused NOBIND arg. Fix doc string accordingly.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
b22139fd
KS
12003-03-22 Kim F. Storm <storm@cua.dk>
2
3 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
4 Add generic versions here. Remove system specific versions
5 defined elsewhere.
6
7 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
8 Add prototypes.
9
6e6410cf
KS
10 * xterm.h (STORE_NATIVE_RECT): New macro.
11
5c9cc435
KS
122003-03-21 Kim F. Storm <storm@cua.dk>
13
14 * xdisp.c (get_glyph_string_clip_rect): Use
15 FRAME_INTERNAL_BORDER_WIDTH.
16
17 * dispextern.h (struct redisplay_interface): Add active_p
18 argument to draw_window_cursor member. All uses changed.
19
acd37560
KS
202003-03-21 Kim F. Storm <storm@cua.dk>
21
22 The following changes consolidate code related to writing and
23 inserting glyphs, exposing frame, the tool bar, the mouse face,
24 the output cursor, and help echo from xterm.c, w32term.c and
25 macterm.c into xdisp.c. It also generalizes the use of the
26 window_part enum instead of using numeric values throughout.
27
28 * xdisp.c: Consolidate gui-independent code here.
29 Include keymap.h.
30 (Qhelp_echo): Import.
31 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
32 (help_echo_string, help_echo_window, help_echo_object)
33 (previous_help_echo_string, help_echo_pos): Declare here.
34 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
35 (estimate_mode_line_height): Define here. Handle windowing
36 systems directly (without using estimate_mode_line_height_hook).
37 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
38 (update_window_cursor, update_cursor_in_window_tree)
39 (fast_find_position, fast_find_string_pos)
40 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
41 (expose_area, expose_line, expose_overlaps, expose_window)
42 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
43 declared static as they are only used locally in xdisp.c.
44 (draw_glyphs): Rename from x_draw_glyphs and make static.
45 (tool_bar_item_info, notice_overwritten_cursor): Make static.
46 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
47 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
48 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
49 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
50 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
51 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
52 (note_mouse_highlight, x_clear_window_mouse_face)
53 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
54 (x_intersect_rectangles): New generic functions for use by xdisp.c
55 and GUI front-ends.
56 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
57 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
58
59 * dispextern.h (Display_Info): Generic typedef for *_display_info.
60 (NativeRectangle): Generic typedef for rectangle type.
61 (enum window_part): Move here from window.c.
62 (struct redisplay_interface): New members flush_display_optional,
63 define_frame_cursor, clear_frame_area, draw_window_cursor,
64 draw_vertical_window_border, shift_glyphs_for_insert.
65 Rename member clear_mouse_face to clear_window_mouse_face.
66 (estimate_mode_line_height_hook): Remove hook.
67 (auto_raise_tool_bar_buttons_p): Don't declare extern.
68 (tool_bar_item_info): Remove prototype.
69 (help_echo_string, help_echo_window, help_echo_object)
70 (previous_help_echo_string, help_echo_pos)
71 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
72 (x_stretch_cursor_p, output_cursor): Declare extern.
73 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
74 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
75 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
76 (display_and_set_cursor, set_output_cursor, x_cursor_to)
77 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
78 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
79 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
80 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
81 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
82 Add prototypes.
83 (mode_line_string, marginal_area_string): Fix prototypes.
84
85 * window.c (enum window_part): Move to dispextern.h.
86 (coordinates_in_window): Use enum window_part member names
87 instead of numbers to describe return value.
88 (struct check_window_data): Change part member to window_part.
89 (check_window_containing): Return window_part unaltered.
90 (window_from_coordinates): Change part arg from int to enum
91 window_part. Allow part arg to be null. All users changed.
92
93 * window.h (window_from_coordinates): Fix prototype.
94
95 * term.c (estimate_mode_line_height): Move to xdisp.c.
96
97 * keyboard.c (make_lispy_event): Use enum window_part.
98
99 * dispnew.c (mode_line_string, marginal_area_string): Use enum
100 window_part instead of int in arg list. Users changed.
101
102 * xterm.h (No_Cursor): Declare as None for X.
103 (struct mac_output): Replace member cross_cursor by hand_cursor.
104
105 * xterm.c: Remove consolidated defines and code.
106 (BETWEEN): Remove unused macro.
107 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
108 (x_define_frame_cursor, x_clear_frame_area)
109 (x_draw_window_cursor): New X-specific functions for RIF.
110 (x_redisplay_interface): Add new members.
111
112 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
113
114 * w32term.h (struct w32_output): Remove cross_cursor member.
115
116 * w32term.c: Remove consolidated defines and code.
117 (BETWEEN): Remove unused macro.
118 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
119 (w32_define_frame_cursor, w32_clear_frame_area)
120 (w32_draw_window_cursor): New W32-specific functions for RIF.
121 (w32_redisplay_interface): Add new members.
122
123 * w32gui.h (No_Cursor): Define as 0 for W32.
124 (XRectangle): Add X compatible rectangle type.
125 (NativeRectangle): Declare as RECT for W32.
126 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
127
128 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
129
130 * w32console.c: Remove consolidated defines and code.
131
132 * msdos.h (Display_Info): Add generic typedef.
133
134 * msdos.c: Remove consolidated defines and code.
135 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
136
137 * macterm.h (struct mac_output): Replace member cross_cursor by
138 hand_cursor.
139 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
140
141 * macterm.c: Remove consolidated defines and code.
142 (BETWEEN): Remove unused macro.
143 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
144 (mac_define_frame_cursor, mac_clear_frame_area)
145 (mac_draw_window_cursor): New Mac-specific functions for RIF.
146 (x_redisplay_interface): Add new members.
147
148 * macgui.h (No_Cursor): Define as 0 for Mac.
149 (XRectangle): Add X compatible rectangle type.
150 (NativeRectangle): Declare as Rect for Mac.
151 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
152
153 * macfns.c (x_set_mouse_color): Setup hand_cursor instead of cross_cursor.
154 (x_set_cursor_color): Use x_display_and_set_cursor instead of x_display_cursor.
155
156 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
157 included from it. Add dependency on keymap.h.
158
159 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
160
8ba01a70 1612003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
162
163 * fileio.c (Fexpand_file_name): Fix previous change.
164
8ba01a70 1652003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
166
167 * fileio.c (Ffile_name_directory): Reconstruct file name by
168 make_specified_string.
169 (Ffile_name_nondirectory, Ffile_name_as_directory)
170 (Fdirectory_file_name, Fexpand_file_name)
171 (Fsubstitute_in_file_name): Likewise.
172 (Fread_file_name): Compare decoded homedir with DIR and
173 DEFAULT_FILENAME.
174
175 * alloc.c (make_specified_string): If NCHARS is negative, count
176 the number of characters.
177
19536747
JD
1782003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
179
de38ae5a
JD
180 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
181 all widgets.
182
19536747
JD
183 * gtkutil.h: Removed xg_ignore_next_thumb.
184
cb0d4562
KH
1852003-03-18 Kenichi Handa <handa@etlken2>
186
187 * coding.c (Vchar_coding_system_table): Remove this variable.
188 (Vcoding_system_safe_chars): New variable.
189 (intersection): Remove this function.
190 (find_safe_codings): Don't use Vchar_coding_system_table, but try
191 all codings in SAFE_CODINGS.
192 (Ffind_coding_systems_region_internal): Adjusted for the change of
193 find_safe_codings. Get generic coding systems from
194 Vcoding_system_safe_chars.
195 (Fdefine_coding_system_internal): New function.
196 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
197 Initialize and staticpro Vcoding_system_safe_chars.
198
17097258
JD
1992003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
200
2a2071c3
JD
201 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
202 equal old values before updating.
203
17097258
JD
204 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
205
206 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
207
2082003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
209
210 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
211 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
212 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
213 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
214 (xg_create_scroll_bar): Pass bar to button event callback.
215 (xg_find_top_left_in_fixed): New function.
216 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
217 whole scroll bar area. Get old position with
218 xg_find_top_left_in_fixed, calculate and only clear needed areas.
219 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
220 dragging is in progress. Calculate whole as for Motif.
221 Remove code that saved last values. Call gtk_range functions to
222 set scroll bar sizes.
223
224 * gtkutil.h: Removed xg_ignore_next_thumb.
225
8cb9dfbf
JB
2262003-03-17 Juanma Barranquero <lektu@terra.es>
227
228 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
229 and files included from it.
230
c45bb3b2
JR
2312003-03-16 Jason Rumney <jasonr@gnu.org>
232
233 * w32gui.h: Use HDC for Display.
234
235 * w32term.c (w32_encode_char): Prevent double-byte chars from
236 crashing Emacs.
237
238 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
239 as binary.
240
2a6d0874
JB
2412003-03-16 Juanma Barranquero <lektu@terra.es>
242
243 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
244
03eb5fab
KS
2452003-03-16 Kim F. Storm <storm@cua.dk>
246
247 The following changes consolidate some of the gui-independent
248 parts of the processing and drawing of "glyph strings" from
249 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 250
03eb5fab
KS
251 * dispextern.h (struct glyph): Reduce face_id member from 22 to
252 21 bits (this reduces number of faces from 4M to 2M).
253 Replace W32 specific w32_font_type member (2 bits) by generic
254 font_type member (3 bits) for portability.
255 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
256 (enum draw_glyphs_face): Define here.
257 (struct glyph_string): Define here. Merge W32 and X versions.
258 (struct redisplay_interface): New members per_char_metric,
259 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
260 (VCENTER_BASELINE_OFFSET): Define here.
261 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
262 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
263
264 * xdisp.c: Consolidate gui-independent "glyph string" code here.
265 (dump_glyph_string): Moved here.
266 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
267 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
268 (fill_composite_glyph_string, fill_glyph_string)
269 (fill_image_glyph_string, fill_stretch_glyph_string)
270 (left_overwritten, left_overwriting, right_overwritten)
271 (right_overwriting, get_char_face_and_encoding)
272 (set_glyph_string_background_width, compute_overhangs_and_x)
273 (append_glyph, append_composite_glyph, produce_image_glyph)
274 (take_vertical_position_into_account, append_stretch_glyph)
275 (produce_stretch_glyph): New generic functions (based on X version).
276 Call platform specific functions through rif.
277 (INIT_GLYPH_STRING): New macro, hides W32 details.
278 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
279 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
280 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
281 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
282 (notice_overwritten_cursor):
283 Generic functions exported to platform modules. Users changed.
284
285 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
286 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
287 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 288 New macros for consolidated code.
2a6d0874 289
03eb5fab
KS
290 * xterm.c: Remove consolidated defines and code.
291 (x_per_char_metric, x_encode_char)
292 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
293 (x_redisplay_interface): Add new members.
294
295 * w32gui.h (Display): Add dummy typedef for consolidation.
296 (XChar2b): Define alias for wchar_t for consolidation.
297 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
298
299 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 300 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
301 New macros for consolidation.
302
fad49844 303 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
304 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
305 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
306 (w32_per_char_metric): Change font_type arg to int for RIF.
307 (w32_encode_char): Return int according to RIF requirements.
308 (w32_compute_glyph_string_overhangs): Adapt to RIF.
309 (w32_get_glyph_overhangs): New function for RIF. Uses generic
310 x_get_glyph_overhangs.
311 (w32_redisplay_interface): Add new members.
312
313 * macgui.h (XChar2b): Move typedef here for consolidation.
314 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
315
316 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
317 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
318 consolidation.
319
320 * macterm.c: Remove consolidated defines and code.
321 (mac_per_char_metric): New function for RIF.
322 (mac_encode_char): Adapted to new RIF requirements.
323 (mac_compute_glyph_string_overhangs): Adapt for RIF.
324 (x_redisplay_interface): Add new members.
325
225c7a07
RS
3262003-03-14 Richard M. Stallman <rms@gnu.org>
327
328 * lread.c (read1): After #!, exit loop on eof.
329
cea9be54
JD
3302003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
331
9ea0e54d
JD
332 * gtkutil.h: Add declaration for xg_frame_cleared.
333
0cb35f4e
JD
334 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
335
cea9be54
JD
336 * gtkutil.c (struct xg_last_sb_pos): New structure.
337 (handle_fixed_child): New function.
338 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
339 and force a redraw on them.
340 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
341 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
342 so we can avoid unneeded redraws.
343 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
344 and force a redraw on the scroll bar.
345 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
346 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 347 (xg_frame_cleared): New function.
cea9be54 348
20b853f3
KH
3492003-03-13 Kenichi Handa <handa@m17n.org>
350
351 * coding.c (Fdetect_coding_region): Fix docstring.
352 (Fdetect_coding_string): Fix docstring.
353
7a555aff
AS
3542003-03-13 Andreas Schwab <schwab@suse.de>
355
25cc0080
AS
356 * gtkutil.c: Add prototype for create_menus.
357
30225431
AS
358 * data.c (long_to_cons): Fix type of top.
359
360 * xselect.c (selection_data_to_lisp_data): Use int instead of
361 long for an integer of size 4.
362
7a555aff 363 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 364 (xg_tool_bar_help_callback): Likewise.
7a555aff 365
a3e4741f
AS
3662003-03-12 Andreas Schwab <schwab@suse.de>
367
368 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
369
9668be7c
KS
3702003-03-12 Kim F. Storm <storm@cua.dk>
371
03eb5fab 372 The following changes consolidate the fringe handling from
9668be7c 373 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 374
9668be7c
KS
375 * xdisp.c: Consolidate fringe handling code here.
376 (left_bits, right_bits, continued_bits, continuation_bits)
377 (ov_bits, zv_bits): Define fringe bitmaps.
378 (fringe_bitmaps): New array holding fringe bitmaps.
379 (draw_fringe_bitmap): Draw a specific bitmap; call display
380 specific drawing routine via rif->draw_fringe_bitmap.
381 (draw_row_fringe_bitmaps): Generic replacement for
382 x_draw_row_fringe_bitmaps; all callers changed.
383 (compute_fringe_widths): Generic replacement for
384 x_compute_fringe_widths; all callers changed.
385
386 * dispextern.h (enum fringe_bitmap_type): Define here.
387 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
388 (fringe_bitmaps): Declare extern.
389 (struct redisplay_interface): New member draw_fringe_bitmap.
390 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
391
392 * xterm.c: Remove generic fringe code.
393 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
394 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
395
396 * w32term.c: Remove generic fringe code.
397 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
398 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 399
9668be7c
KS
400 * macterm.c: Remove generic fringe code.
401 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
402 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
403
00a88f32
SM
4042003-03-11 Stefan Monnier <monnier@cs.yale.edu>
405
406 * print.c (Fprin1_to_string): Return unibyte string if possible.
407
1d1de695
DK
4082003-03-09 David Kastrup <dak@gnu.org>
409
410 * process.c (read_process_output): We have allocated enough space
411 for readmax and carryover, so actually use the alloted space.
412
257f40f2
JD
4132003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
414
415 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
416 toolkit scrollbar click.
417
418 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
419 for USE_GTK.
420 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
421 also.
422 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
423 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 424
257f40f2
JD
425 * gtkutil.h: Declare xg_get_scroll_id_for_window.
426
427 * gtkutil.c (xg_get_scroll_id_for_window): New function.
428 (xg_tool_bar_item_expose_callback): New function.
429 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
430 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
431 on the tool bar widget.
432 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
433 to expose on the tool bar item widgets.
434
15213141
JD
4352003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
436
26b74a0b 437 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 438 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
439 deleted from the image cache).
440
15213141
JD
441 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
442 the event isn't for a frame (i.e. for dialogs).
443
20b853f3 4442003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
445
446 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
447 composition components reaches the limit, terminate composing.
448 (COMPOSITION_OK): New macro.
00a88f32 449 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
450 composition is found.
451 (coding_restore_composition): Adjust the number of composition
452 components if it is not sane.
453
c9029fe5
JB
4542003-03-06 Juanma Barranquero <lektu@terra.es>
455
456 * w32term.h (struct w32_display_info): Add xrdb member to support
457 passing resources via -xrm on Windows.
458
459 * w32term.c (w32_make_rdb): New function.
460 (w32_term_init): Use it to initialize xrdb member of w32_display_info
461 struct. Delete leftover code.
462
463 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
464 for resources passed on the command line.
465
466 * w32reg.c (w32_get_rdb_resource): New function.
467 (x_get_string_resource): Use it, so resources passed with -xrm
468 supercede the ones in the registry.
469
9d00001f
JD
4702003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
471
472 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
473 instead of x_top_window_to_frame.
474
ca2417b9
JD
4752003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
476
477 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
478 when restarting Emacs.
479
5b20caf0
RS
4802003-03-03 Richard M. Stallman <rms@gnu.org>
481
482 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
483 to run kill-buffer-query-functions.
484 (Qkill_buffer_query_functions): New var.
485 (syms_of_buffer): Init and staticpro it.
486
58e91b77
JD
4872003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
488
489 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
490
932357b4
KS
4912003-02-25 Kim F. Storm <storm@cua.dk>
492
493 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
494 If centering point failed to make whole line visible and vscroll
495 is non-zero, disable vscroll and try centering point again.
496
497 * lread.c (read1): Accept `single space' syntax like (? x).
498
bb8db7e1
JD
4992003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
500
501 * keyboard.c (cancel_hourglass_unwind): Surround with
502 #ifdef HAVE_X_WINDOWS
503
47d77aab
KH
5042003-02-25 Kenichi Handa <handa@m17n.org>
505
506 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
507 process only when "subprocesses" is defined.
508
6a097c0c
SM
5092003-02-24 Stefan Monnier <monnier@cs.yale.edu>
510
511 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
512
0b063c27
JB
5132003-02-24 Juanma Barranquero <lektu@terra.es>
514
d1135afc
JB
515 * callint.c (fix_command): Declare as static void and move before
516 Fcall_interactively.
517
0b063c27
JB
518 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
519 (syms_of_xdisp): Don't initialize Qwhen.
520
0af912f0
JD
5212003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
522
523 * keyboard.c (cancel_hourglass_unwind): New function.
524 (command_loop_1): Cancel hourglass with unwind-protect.
525
120d0a23
RS
5262003-02-23 Richard M. Stallman <rms@gnu.org>
527
528 * callint.c (fix_command): New subroutine, from Fcall_interactively.
529 Detect (when ... (region-beginning)) etc.
530 (Fcall_interactively): Call fix_command.
531 (Qif, Qwhen): New variables.
532 (syms_of_callint): Init and staticpro them.
0b063c27 533
120d0a23
RS
534 * regex.c (print_partial_compiled_pattern): Output to stderr.
535
4ece81a6
KG
5362003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
537
538 * dired.c (directory_files_internal): Don't expand directory.
539 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
540 instead. From Lars Hansen <larsh@math.ku.dk>.
541
e52bd6b7
SM
5422003-02-22 Stefan Monnier <monnier@cs.yale.edu>
543
544 * fns.c (string_to_multibyte): Remove unused var i.
545 (Flanginfo): Fix int/Lisp_Object mixup.
546 (void_call2): New fun.
547 (Fmap_char_table): Use it in place of call2.
548
549 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
550
551 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
552
553 * keymap.c (copy_keymap_1): Make it static.
554
555 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
556
c33ef7c4
JB
5572003-02-22 David Ponce <david@dponce.com>
558
559 * lread.c (Fload): Don't check STRING_MULTIBYTE.
560
16782258
JD
5612003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
562
563 * process.h: Removed subtty field from struct Lisp_Process.
564
565 * process.c (create_process): Remove setting of subtty.
566 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
567 (Fprocess_running_child_p, process_send_signal):
568 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
569 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
570
3abeca61
KG
5712003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
572
573 * keymap.c (Fdefine_key): Doc fix.
574
92a8ce63
JB
5752003-02-21 Juanma Barranquero <lektu@terra.es>
576
577 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
578
579 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
580 POLLING_PROBLEM_IN_SELECT.
581
582 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
583 Delete #undef of POLLING_PROBLEM_IN_SELECT.
584
585 * s/hpux10-20.h: New file.
586
e52bd6b7
SM
587 * process.c (wait_reading_process_input):
588 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 589
20f1ef2e
KH
5902003-02-20 Kenichi Handa <handa@m17n.org>
591
32d0a9dc
KH
592 * fontset.c (check_fontset_name): If NAME is nil, return the
593 default fontset.
594 (override_font_info): New function.
e52bd6b7 595 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
596 (Ffontset_info): If FONTSET is not the default fontset, merge
597 FONTSET onto the copy of the default fontset, and work on that
598 copy. Document that NAME nil means the default fontset.
599 (Ffontset_font): Document that NAME nil means the default fontset.
600
20f1ef2e
KH
601 * process.c (setup_process_coding_systems): If the process's
602 in/out descriptor is -1, do nothing.
603
77d1daf2
AS
6042003-02-19 Andreas Schwab <schwab@suse.de>
605
e52bd6b7
SM
606 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
607 Add prototypes.
77d1daf2 608
f9a45bb3
KH
6092003-02-19 Kenichi Handa <handa@m17n.org>
610
611 * xfaces.c (try_alternative_families): Try all scalable fonts if
612 Vscalable_fonts_allowed is not Qt.
613
72ecb43c
JD
6142003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
615
616 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
617
ee5be7c3
JD
6182003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
619
620 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
621 names.
622
623 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 624 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
625 x_face_list_fonts.
626 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
627 (Fx_list_fonts): Set maxnames to -1 to get all font names.
628
4cd519a7
KS
6292003-02-18 Kim F. Storm <storm@cua.dk>
630
068f9882
KS
631 * lread.c (read1): Fix last change.
632 "`" is not always special. Allow "?" after a character constant.
4cd519a7 633
7290a344
AC
6342003-02-18 Andrew Choi <akochoi@shaw.ca>
635
636 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
637
1f7fa69b
AS
6382003-02-18 Andreas Schwab <schwab@suse.de>
639
640 * window.c (window_scroll_pixel_based): Move outside a
641 multi-glyph character before setting new window start.
642
643 * xdisp.c (in_display_vector_p): New function.
644 * dispextern.h (in_display_vector_p): Declare.
645
23e21195
KS
6462003-02-18 Kim F. Storm <storm@cua.dk>
647
648 * lread.c (read1): Fix and relax read syntax.
649 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
650 Only recognize "," after dotted-pair dot if inside backquote.
651 Never include "`" or "," (inside backquote) in a symbol.
652 Allow dotted-pair dot after a character constant.
653 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 654
f098b121
JD
6552003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
656
657 * gtkutil.c (xg_tool_bar_expose_callback): New function.
658 (xg_create_tool_bar): Force style of tool bar to be horizontal with
659 icons. Set name of tool bar to emacs-toolbar.
660 (update_frame_tool_bar): Connect expose event to
661 xg_tool_bar_expose_callback.
662
63020c46
RS
6632003-02-17 Richard M. Stallman <rms@gnu.org>
664
665 * keyboard.c (this_command_key_count_reset): New variable.
666 Initiatize to 0 where this_command_key_count is set.
667 (read_char): Save and restore this_command_key_count_reset
668 around input method code.
669 (read_char): If this_command_key_count_reset, echo reread commands.
670 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
671
fb4452cc
KH
6722003-02-17 Kenichi Handa <handa@m17n.org>
673
674 * fns.c (string_to_multibyte): Always return a multibyte string.
675
bd11cc09
JR
6762003-02-16 Jason Rumney <jasonr@gnu.org>
677
e52bd6b7
SM
678 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
679 Negative max_fonts parameter means list all.
bd11cc09 680
4cdf4bde
DL
6812003-02-14 Dave Love <fx@gnu.org>
682
683 * fns.c (Flanginfo): Doc fix.
684
023b93f6
KS
6852003-02-13 Kim F. Storm <storm@cua.dk>
686
37cd4238
KS
687 * lread.c (read_escape): Interpret \s as a SPACE character, except
688 for \s-X in a character constant which still is the super modifier.
689 (read1): Signal an `invalid read syntax' error if a character
690 constant is immediately followed by a digit or symbol character.
691
140a6b7e
KS
692 * search.c (Fmatch_data): Doc fix. Explicitly state that
693 match-data is undefined if last search failed.
694
023b93f6
KS
695 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
696 All uses changed.
697
7d5c86e5
JB
6982003-02-12 Juanma Barranquero <lektu@terra.es>
699
700 * eval.c (Fdefmacro): Fix typo.
701
295fff2c
KS
7022003-02-12 Kim F. Storm <storm@cua.dk>
703
704 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
705 macro is a string, convert meta modifiers in string when copying
706 the string into a vector.
707
60f3202d
KS
7082003-02-11 Kim F. Storm <storm@cua.dk>
709
710 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
711
61cb0b53
KH
7122003-02-11 Kenichi Handa <handa@m17n.org>
713
714 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
715
7392e23c
KS
7162003-02-10 Kim F. Storm <storm@cua.dk>
717
718 * process.c: Doc fixes.
719 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
720
ce4254bd
KH
7212003-02-10 Kenichi Handa <handa@m17n.org>
722
9c7a329a
KH
723 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
724
ce4254bd
KH
725 * process.c (QCfilter_multibyte): New variable.
726 (setup_process_coding_systems): New function.
e52bd6b7
SM
727 (Fset_process_buffer, Fset_process_filter):
728 Call setup_process_coding_systems.
ce4254bd
KH
729 (Fstart_process): Initialize the member `filter_multibyte' of
730 struct Lisp_Process.
731 (create_process): Call setup_process_coding_systems.
732 (Fmake_network_process): New keyward `:filter-multibyte'.
733 Initialize the member `filter_multibyte' of struct Lisp_Process.
734 Call setup_process_coding_systems.
735 (server_accept_connection): Call setup_process_coding_systems.
736 (read_process_output): If the process has a filter, decide the
737 multibyteness of a string to given to the filter by
738 `filter_multibyte' member of the process. If the process doesn't
739 have a filter and the result of conversion is unibyte, use
740 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
741 multibyte form.
742 (Fset_process_coding_system): Call setup_process_coding_systems.
743 (Fset_process_filter_multibyte): New function.
744 (Fprocess_filter_multibyte_p): New function.
745 (syms_of_process): Intern and staticpro QCfilter_multibyte.
746 Defsubr Sset_process_filter_multibyte and
747 Sprocess_filter_multibyte_p.
748
749 * process.h (struct Lisp_Process): New member filter_multibyte.
750
751 * lisp.h (setup_process_coding_systems): Add prototype.
752
753 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
754 process, update coding systems for the process.
755
b08d5f59
KH
7562003-02-09 Kenichi Handa <handa@m17n.org>
757
758 * fns.c (string_to_multibyte): New function.
759 (Fstring_to_multibyte): New function.
760 (syms_of_fns): Defsubr it.
761
0dfd93c0
AS
7622003-02-08 Andreas Schwab <schwab@suse.de>
763
764 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
765 instead of the substitution.
766
7b76ca1c
JD
7672003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
768
769 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
770
771 * xmenu.c (menu_position_func): Adjust menu popup position so that
772 the menu is fully visible.
7b76ca1c 773
2436a4e4
JD
7742003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
775
776 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
777 (x_make_frame_invisible, x_wm_set_icon_position):
778 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
779
780 * xfns.c (x_set_name, x_set_title): Ditto.
781
37d1e680
RS
7822003-02-04 Richard M. Stallman <rms@gnu.org>
783
784 * keyboard.c (echo_now): Update before_command_echo_length.
785 (Freset_this_command_lengths): Reset this_command_key_count etc.
786 immediately rather than arranging to do it later.
787 (before_command_key_count_1, before_command_echo_length_1)
788 (before_command_restore_flag): Vars deleted.
789 (add_command_key): Don't handle before_command_restore_flag.
790 (read_char, record_menu_key): Don't update before_command_key_count or
791 before_command_echo_length.
792 (read_char): Don't handle before_command_restore_flag.
793
794 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
795 in direct-output clauses if it wouldn't be called in the ordinary case.
796
578846a3
KS
7972003-02-04 Kim F. Storm <storm@cua.dk>
798
799 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
800
49853a4d
JD
8012003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
802
803 * gtkutil.c (remove_from_container): Copying list is not needed.
804 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
805 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
806 on list returned from gtk_container_get_children to avoid memory leak.
807
8b53dc06
JR
8082003-02-01 Jason Rumney <jasonr@gnu.org>
809
5d54d177
JR
810 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
811 local malloc.
812 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
813 definitions in xpm.h.
814 (init_xpm_functions): New function.
815 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
816 (init_external_image_libraries): Try to load libXpm.dll.
817
8b53dc06
JR
818 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
819 timestamp.
820
b222e415
DL
8212003-01-31 Dave Love <fx@gnu.org>
822
823 * syntax.c (Fskip_chars_forward)
824 (open-paren-in-column-0-is-defun-start): Doc fix.
825
c60ee5e7
JB
8262003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
827
828 * fileio.c: Support // at start of name for Cygwin (just added proper
829 preprocessor tests).
830
831 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
832
833 * Makefile.in: Use @EXEEXT@ for Cygwin.
834
835 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
836
837 * s/cygwin.h: Added for Cygwin port.
838
53b37591
JB
8392003-01-31 Juanma Barranquero <lektu@terra.es>
840
841 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
842 when including gif_lib.h.
fe929957
JB
843 (init_gif_functions, init_tiff_functions): New functions.
844 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
845 Windows. Disable color table lookups. Call library functions
53b37591 846 through pointers determined at runtime.
fe929957
JB
847 (init_external_image_libraries): Try to load libungif.dll and
848 libtiff.dll.
53b37591 849
45415a8f
KH
8502003-01-31 Kenichi Handa <handa@m17n.org>
851
852 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 853 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 854
a97e4138
JD
8552003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
856
e52bd6b7 857 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 858
6eed9bed
DL
8592003-01-30 Dave Love <fx@gnu.org>
860
861 * alloc.c (Vgc_elapsed, gcs_done): New variables.
862 (Fgarbage_collect): Use them.
863 (init_alloc, syms_of_alloc): Set them up.
864
100dcd40
JB
8652003-01-30 Juanma Barranquero <lektu@terra.es>
866
867 * w32fns.c (init_external_image_libraries): Add missing operator.
868
fbd852af
JR
8692003-01-29 Jason Rumney <jasonr@gnu.org>
870
871 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
872 an alternative name for jpeg.dll.
873
8a2d8020
KH
8742003-01-29 Kenichi Handa <handa@m17n.org>
875
876 * xdisp.c (set_cursor_from_row): Pay attention to string display
877 properties.
878
058c18c7
AC
8792003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
880
881 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
882 <escape>.
883 (keycode_to_xkeysym_table): Reformat and add more comments.
884 (XTread_socket): Drop special case for backspace.
885
385f11cf
AC
8862003-01-28 Andrew Choi <akochoi@shaw.ca>
887
888 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
889 values in old-style RGB specs.
890
c922a224
JB
8912003-01-27 Juanma Barranquero <lektu@terra.es>
892
893 * w32fns.c (init_external_image_libraries): Try alternate names for the
894 jpeg dll.
895
0a1d6de0
JD
8962003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
897
898 * gtkutil.c (create_dialog, xg_separator_p)
899 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
900 before calling strcmp or strlen.
901
a97e4138 9022003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
903
904 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
905 and handle image load failure.
906
28908312
JR
9072003-01-26 Jason Rumney <jasonr@gnu.org>
908
909 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
910 New functions.
911 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
912 Disable color table lookups. Call jpeg library functions
913 through pointers determined at runtime.
914 (init_external_image_libraries): Try to load jpeg.dll.
915
84e47416
RS
9162003-01-25 Richard M. Stallman <rms@gnu.org>
917
918 * lisp.h: Declare format2 instead of format1.
919
920 * fileio.c (barf_or_query_if_file_exists):
921 Call format2 instead of format1.
922
923 * editfns.c (format2): New function, replaces format1
924 but takes exactly two Lisp Objects as format args.
925
926 * buffer.c (Fkill_buffer): Call format2 instead of format1.
927
a97e4138 9282003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
929
930 * xterm.h: Change to return value of x_dispatch_event to int.
931
932 * xterm.c (x_filter_event): New function.
933 (event_handler_gdk, XTread_socket): Call x_filter_event.
934 (x_dispatch_event): Change to return value of finish.
935 (event_handler_gdk): Use return value from x_dispatch_event.
936
937 * xfns.c (x_window): Call create_frame_xic for GTK version to
938 initialize input methods.
939
940 * gtkutil.h: Add (void) prototypes.
941
942 * gtkutil.c (create_menus): Remove code that puts the help menu to
943 the right.
944
54eefef1
JR
9452003-01-25 Jason Rumney <jasonr@gnu.org>
946
947 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
948 [HAVE_PNG]: Sync with xfns.c version.
949 (png_load): Adjust colors for Windows. Use Windows
950 bitmaps. Disable color table lookups.
c262430d
JR
951 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
952 (init_png_functions): New function.
953 (png_read_from_memory, png_load): Call png library functions
954 through pointers determined at runtime.
955 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
956 (init_external_image_libraries): New function.
957 (init_xfns): Call it.
54eefef1 958
1a9e275b
AS
9592003-01-24 Andreas Schwab <schwab@suse.de>
960
961 * minibuf.c (Fminibuffer_message): Verify type of parameter.
962
a97e4138 9632003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
964
965 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
966 of static initializer.
967
422eec7e
DL
9682003-01-24 Dave Love <fx@gnu.org>
969
970 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
971 architectures.
972
973 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
974 Use __alignof__.
975
2a026b04
KH
9762003-01-24 Kenichi Handa <handa@m17n.org>
977
978 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 979 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
980 (command_loop_1): Call adjust_point_for_property with proper
981 second arg.
982
a18bb28d
JR
9832003-01-22 Jason Rumney <jasonr@gnu.org>
984
985 Sync changes with xterm.c and xfns.c.
986
987 * w32term.c (x_draw_glyph_string_foreground)
988 (x_draw_composite_glyph_string_foreground): Implement overstriking.
989
990 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
991 phys_cursor's hpos is overwritten. This is still not completely
992 correct, as it doesn't really make sense to use hpos at all to
993 get the cursor glyph (as that is relative to the width of the
994 characters on the line, which may have changed during the update).
995
996 * w32term.c (notice_overwritten_cursor): Handle the special case
997 of the cursor being in the first blank non-text line at the
998 end of a window.
999
1000 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
1001 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
1002 Compute from the x position returned by x_draw_glyphs.
1003
1004 (x_display_and_set_cursor): Don't set phys_cursor_width here,
1005 except for NO_CURSOR and system caret, to make phys_cursor_width
1006 contain what its name suggests.
1007 (notice_overwritten_cursor): Consider the cursor image erased if
1008 the output area intersects the cursor image in y-direction.
1009
6a097c0c
SM
1010 * w32term.c (note_mode_line_or_margin_highlight): Rename from
1011 note_mode_line_highlight and extend.
a18bb28d
JR
1012
1013 * w32term.c (last_window): New variable.
1014 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
1015 (note_mouse_movement): Remove reimplemented code in #if 0.
1016
1017 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
1018 not update_mode_lines, and always set it to 1.
1019
ac6e47ef
JR
10202003-01-21 Jason Rumney <jasonr@gnu.org>
1021
1022 * w32fns.c (IDC_HAND): Define it if system headers don't.
1023
10242003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
1025
1026 * w32term.h (struct w32_output): New member hand_cursor.
1027 (WM_EMACS_SETCURSOR): New message definition.
1028
1029 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
1030 function w32_define_cursor.
1031 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
1032 position, change member name output_data.x to output_data.w32 and
1033 add function w32_define_cursor.
1034 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
1035 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
1036 (w32_initialize_display_info):
1037 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
1038
1039 * w32fns.c (Vx_hand_shape): New variable.
1040 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
1041 WM_EMACS_SETCURSOR.
1042 (x-create-frame): Setup Cursor types.
1043
ceb39a17
JB
10442003-01-21 David Ponce <david@dponce.com>
1045
ac6e47ef
JR
1046 * w32term.c (w32_encode_char): For DIM=1 charset, set
1047 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
1048 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 1049 2002-09-30.)
ac6e47ef
JR
1050 (w32_draw_relief_rect): Declare all args.
1051 (w32_define_cursor): New.
1052
1053 * w32fns.c (w32_load_cursor): New function.
1054 (w32_init_class): Use it.
1055 (x_put_x_image): Declare all args.
1056
46cf0bed
JB
10572003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
1058
1059 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
1060
a97e4138 10612003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
1062
1063 * gtkutil.c: Must include stdio.h before termhooks.h
1064
83fc9c63
DL
10652003-01-21 Dave Love <fx@gnu.org>
1066
1067 * alloc.c (Fgc_status): Print zombie list.
1068 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
1069 Fix assignment of zombies.
1070 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
1071 Don't take car of non-cons.
1072
1073 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
1074
1075 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
1076
fe04b8c8
JR
10772003-01-20 David Ponce <david@dponce.com>
1078
1079 * w32menu.c (digest_single_submenu): Declare all args.
1080
1081 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
1082 changes in xmenu.c:
1083
1084 (parse_single_submenu): Use individual keymap's prompt
1085 string as pane name, if there is one.
1086 (set_frame_menubar): Save menu_items_n_panes from each call to
1087 parse_single_submenu and use it when calling digest_single_submenu.
1088
539e69a9
ST
10892003-01-20 Steven Tamm <steventamm@mac.com>
1090
1091 * macterm.c (XTread_socket): Checks for valid, visible window
1092 before sending a scroll-wheel event.
1093
675d000f
RS
10942003-01-20 Richard M. Stallman <rms@gnu.org>
1095
1096 * xdisp.c (redisplay_window): If mini window's buffer is not
1097 a minibuffer, then redisplay it like other windows.
1098
a97e4138 10992003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
1100
1101 * gtkutil.c (xg_create_frame_widgets): Check if there is an
1102 external tool bar before setting tool bar height.
1103
048addec
JD
11042003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1105
1106 * xterm.c (handle_one_xevent): Surround popup_activated
1107 with #ifdef:s for non-toolkit version.
1108
1109 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
1110 (gtkutil.o): New file.
1111 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
1112 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
1113
1114 * gtkutil.c: New file for GTK version.
1115
1116 * gtkutil.h: New file for GTK version.
1117
1118 * xterm.h: Add xt_or_gtk_widget.
1119 Include gtk files for USE_GTK.
1120 (struct x_output): Add toolbar_height.
1121 (struct x_output): Add GTK widgets and Gdk size_hints.
1122 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
1123 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
1124 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
1125
1126 * xterm.c: Include gtkutil.h for USE_GTK.
1127 Declare extern void free_frame_menubar for USE_GTK.
1128 (note_mouse_highlight): Check popup_activated for USE_GTK.
1129 (xt_action_hook): Don't compile if USE_GTK.
1130 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
1131 (xg_scroll_callback): New function.
1132 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
1133 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
1134 for USE_GTK.
1135 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
1136 xg_show_scroll_bar for USE_GTK.
1137 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
1138 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
1139 (event_handler_gdk): New function for USE_GTK.
1140 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
1141 (handle_one_xevent): Make sure widget is mapped before
1142 calling x_real_positions for USE_GTK.
1143 (XTread_socket): Add GTK event loop for USE_GTK.
1144 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
1145 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
1146 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
1147 (x_iconify_frame): Add code for USE_GTK.
1148 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
1149 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
1150 is in gtkutil.c.
1151 (x_term_init): Add initialization for GTK.
1152 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
1153
1154 * xmenu.c: Include gtkutil.h for USE_GTK.
1155 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
1156 (single_menu_item, single_menu_item, Fx_popup_dialog):
1157 Check for USE_GTK.
048addec
JD
1158 (popup_widget_loop): New function for USE_GTK.
1159 (x_activate_menubar): Add code for USE_GTK.
1160 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
1161 (menu_highlight_callback, menubar_selection_callback):
1162 Add USE_GTK versions.
048addec
JD
1163 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
1164 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
1165 (free_frame_menubar): Only compile if not USE_GTK. GTK version
1166 is in gtkutil.c.
1167 (popup_selection_callback): New version for USE_GTK.
1168 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 1169 one USE_X_TOOLKIT version.
048addec
JD
1170 (xmenu_show): Call create_and_show_popup_menu.
1171 (dialog_selection_callback): New version for USE_GTK.
1172 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 1173 one USE_X_TOOLKIT version.
048addec
JD
1174 (xdialog_show): Call create_and_show_dialog.
1175
1176 * xfns.c: Include gtkutil for USE_GTK.
1177 (x_window_to_frame, x_any_window_to_frame)
1178 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
1179 (x_top_window_to_frame): Add code for USE_GTK.
1180 (x_set_background_color): Call xg_set_background_color for GTK.
1181 (x_set_menu_bar_lines): Check for USE_GTK.
1182 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
1183 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
1184 (x_window): Call xg_create_frame_widgets for USE_GTK.
1185 (Fx_create_frame): Check for USE_GTK
1186 (Fx_file_dialog): New implementation for USE_GTK.
1187
1188 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
1189 (update_menu_bar): Add check for USE_GTK.
1190 (update_tool_bar): Add check for USE_GTK and external tool bar.
1191 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
1192 (redisplay_internal): Add check for USE_GTK and popup_activated.
1193 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
1194 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
1195 (display_menu_bar): Add check for USE_GTK
1196
1197 * lisp.h: Declare Vx_resource_name extern.
1198
1199 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
1200 for USE_GTK.
1201 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
1202
1203 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
1204 (FRAME_EXTERNAL_TOOL_BAR): New macro.
1205 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
1206
1207 * fileio.c (Fread_file_name): Add check for USE_GTK.
1208
6bdb309a
SM
1209 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
1210 Add check for USE_GTK.
048addec
JD
1211
1212 * config.in: Added HAVE_GTK
1213
1214 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
1215
12162003-01-18 Stefan Monnier <monnier@cs.yale.edu>
1217
1218 * charset.h (Funibyte_char_to_multibyte): Export.
1219
12202003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1221
1222 * xmenu.c (mouse_position_for_popup): New function.
1223 (Fx_popup_menu): Call mouse_position_for_popup for X and
1224 mouse_position_hook for others.
1225
12262003-01-17 Kim F. Storm <storm@cua.dk>
1227
1228 * editfns.c (Finsert): Mention `string-make-multibyte' and
1229 `string-as-multibyte' in doc string.
1230
12312003-01-17 Kenichi Handa <handa@m17n.org>
1232
1233 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 1234
048addec
JD
1235 * editfns.c (Fformat): Convert an unibyte char argument that is
1236 formatted by "%c" to multibyte if the total result must be a
1237 multibyte string.
cd7df9c0 1238
048addec 12392003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 1240
048addec
JD
1241 * process.c (set-process-filter): Document unibyte/multibyte-ness
1242 of string argument.
56210ecd 1243
048addec 12442003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 1245
048addec 1246 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 1247
048addec
JD
1248 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
1249 (re_search_2): Likewise.
6df8b9fe 1250
048addec 12512003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 1252
048addec
JD
1253 * xdisp.c (message_dolog): Fix bug of the case that *Message*
1254 buffer is unibyte.
292ddc31 1255
048addec 12562003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 1257
048addec 1258 * fns.c (Fsubstring): Clarify doc string.
292ddc31 1259
048addec
JD
1260 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
1261 (Fprevious_char_property_change)
1262 (Fnext_single_char_property_change)
1263 (Fprevious_single_char_property_change, Fnext_property_change)
1264 (Fnext_single_property_change, Fprevious_property_change)
1265 (Fprevious_single_property_change, Fadd_text_properties)
1266 (Fput_text_property, Fset_text_properties)
1267 (Fremove_text_properties, Fremove_list_of_text_properties)
1268 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 1269
048addec 12702003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 1271
048addec
JD
1272 * process.h (struct Lisp_Process): New member plist replaces old
1273 member private_vars. All uses changed.
63e4e4c6 1274
048addec 1275 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 1276 (QCplist): Rename from QCvars. Change all uses.
048addec 1277 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 1278 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 1279 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 1280 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 1281
048addec 12822003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 1283
6bdb309a 1284 * m/delta.h: Remove (obsolete).
e833850f 1285
048addec 12862003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 1287
048addec
JD
1288 * fileio.c (Fdelete_directory, Fdelete_file): Document the
1289 behaviour in front of symlinks.
1290 (Fdelete_file): Raise an error on directories.
817cb127 1291
048addec 12922003-01-13 Dave Love <fx@gnu.org>
817cb127 1293
048addec 1294 * fns.c (Freverse): Use QUIT.
3e8cf2ea 1295
048addec 12962003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 1297
048addec
JD
1298 * minibuf.c (minibuffer_completion_contents):
1299 Error if point is inside prompt.
3e8cf2ea 1300
048addec
JD
1301 * keyboard.c (command_loop_1): Don't redisplay directly
1302 if there's a post-command-hook.
3e8cf2ea 1303
048addec
JD
1304 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
1305 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 1306
048addec 13072003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 1308
048addec 1309 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 1310
048addec
JD
1311 * process.c (QCvars): New variable.
1312 (syms_of_process): Intern and staticpro it.
1313 (Fset_process_contact): Removed function.
1314 (Fprocess_variable, Fset_process_variable): New functions.
1315 (syms_of_process): Defsubr them.
1316 (Fstart_process): Initialize private_vars plist to nil.
1317 (Fmake_network_process): New arg :vars to setup the private
1318 variables for new network process.
1319 (server_accept_connection): Copy server's private variables to
1320 client process.
2c10f029 1321
048addec
JD
1322 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
1323 crashes). Code rewritten and simplified. Now directly aligns the
1324 pointer and recalculates pure_bytes_used, rather than aligning the
1325 size and adjusting the pointer.
b8a76c6c 1326
048addec 13272003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 1328
048addec
JD
1329 * process.c (Fset_process_contact): New function.
1330 (syms_of_process): defsubr it.
1331 (make-network-process): Update doc.
3a8d0899 1332
048addec 13332003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 1334
048addec
JD
1335 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
1336 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 1337
048addec 13382003-01-10 Dave Love <fx@gnu.org>
4abc7470 1339
048addec 1340 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 1341
048addec 13422003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 1343
048addec
JD
1344 * process.c (Fmake_network_process): Convert new port number
1345 to host byte order for `:service t' case. From Mario Lang.
bf338245 1346
048addec 13472003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 1348
048addec
JD
1349 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
1350 instead of XtAppProcessEvent.
bf338245 1351
048addec
JD
1352 * xterm.c (handle_one_xevent): New function.
1353 (x_dispatch_event): New function.
1354 (XTread_socket): Call handle_one_xevent.
bf338245 1355
048addec 1356 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 1357
048addec
JD
1358 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
1359 call XQueryPointer to get coordinates.
1360 (popup_get_selection): Do not set popup_activated_flag to zero,
1361 let popup_deactivate_callback do that. Needed for Motif.
1362 Call x_dispatch_event instead of XtDispatchEvent.
1363 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 1364
048addec 13652003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 1366
6bdb309a 1367 * process.c (server_accept_connection): Fix recording of new
048addec
JD
1368 connection's local address in :local property of contact info.
1369 (Fmake_network_process): Record local network address for new
1370 client processes in :local property of contact info.
6bdb309a 1371 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 1372
048addec 13732003-01-07 Dave Love <fx@gnu.org>
00e3ab56 1374
048addec 1375 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 1376
048addec 13772003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 1378
048addec 1379 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 1380
048addec
JD
1381 * eval.c (Fuser_variable_p): Doc change. For custom variables,
1382 use the same test as for custom-variable-p.
8c6d74c6 1383
048addec 13842003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 1385
048addec
JD
1386 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
1387 Count LAST_LINE_MISFIT in scroll margin for end of window.
1388 Move label too_near_end before setting SCROLL_MARGIN_POS.
1389 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 1390
048addec
JD
1391 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
1392 scroll_conservatively case. If scrolling that much doesn't change
1393 STARTP, move it down one line.
e833850f 1394
048addec
JD
1395 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
1396 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 1397
048addec
JD
1398 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
1399 selected frame.
8c6d74c6 1400
048addec
JD
1401 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
1402 (syms_of_keymap): staticpro them.
1403 (Fapropos_internal): Initialize them and clear them out.
1404 Don't GCPRO them.
8c6d74c6 1405
048addec
JD
1406 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
1407 Doc fixes.
8c6d74c6 1408
048addec
JD
1409 * lisp.h: New misc type Lisp_Save_Value.
1410 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
1411 (XSAVE_VALUE): New macro.
1412 (struct Lisp_Save_Value): New data type.
1413 (union Lisp_Misc): Add u_save_value alternative.
1414 (make_save_value): Declared.
8c6d74c6 1415
048addec 1416 * alloc.c (make_save_value): New function.
8c6d74c6 1417
048addec
JD
1418 * xterm.c (x_catch_errors): Save dpy using make_save_value.
1419 (x_catch_errors_unwind): Call XSync.
8c6d74c6 1420
048addec 14212003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 1422
048addec 1423 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 1424
048addec
JD
1425 * keyboard.c (command_loop_1): Call adjust_point_for_property
1426 in direct action cases for Qforward_char and Qbackward_char.
1427 Set already_adjusted so it won't be done twice.
8c6d74c6 1428
048addec 14292002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
8c6d74c6 1430
048addec
JD
1431 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
1432 type definition of size_t.
8c609cff 1433
048addec 14342003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 1435
048addec
JD
1436 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
1437 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 1438
048addec 14392002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 1440
048addec
JD
1441 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
1442 to default to t.
fa634a5e 1443
048addec 14442002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 1445
048addec 1446 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 1447
048addec 14482002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 1449
048addec
JD
1450 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
1451 allow building in a different directory than source. Uses some
1452 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 1453
048addec 14542002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 1455
048addec
JD
1456 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
1457 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
1458 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
1459 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 1460
048addec 14612002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 1462
048addec
JD
1463 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
1464 <scroll-down-aggressively>: Doc fix.
2155ecf3 1465
048addec
JD
1466 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
1467 string as pane name, if there is one.
1468 (set_frame_menubar): Save menu_items_n_panes from each call to
1469 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 1470
048addec
JD
1471 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
1472 Don't try to make last line fully visible if it is past end of window.
61f1d295 1473
048addec 14742002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 1475
048addec
JD
1476 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
1477 (mac_menu_show): Add support for hierarchical popup menus.
1478 (add_menu_item): Remove indentation support.
1479 (fill_submenu, fill_menu): Create hierarchical menus
1480 instead of using indentation.
0b17a217 1481
048addec 14822002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 1483
048addec
JD
1484 * xdisp.c (try_cursor_movement): Don't call try_window here.
1485 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 1486
048addec 1487 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 1488
048addec 14892002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 1490
048addec
JD
1491 * macterm.c (XTread_socket): Call KeyTranslate for control and
1492 meta to deal correctly shifted non-alpha characters, like C-S-5
1493 being treated like C-%. Does not look for shift key to deal
1494 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 1495
048addec 14962002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 1497
048addec
JD
1498 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
1499 If it is non-nil, run timers. Use an unwind-protect to requeue
1500 the events that were read ahead.
1501 (popup_get_selection_unwind): New subroutine.
1502 (popup_get_selection_queue): File-scope variable now holds that queue.
1503 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
1504 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
1505 Use an unwind-protect to pop down the dialog box.
1506 (xdialog_show_unwind): New subroutine implements that.
f02cac82 1507
048addec
JD
1508 * xdisp.c (row_containing_pos): Change exit test using last_y.
1509 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 1510
048addec
JD
1511 * lread.c (load_error_handler): New function.
1512 (Fload): Handle errors in Fsubstitute_in_file_name.
1513 Don't expect Fsignal to return.
f02cac82 1514
048addec
JD
1515 * eval.c: Errors and throws work right with interrupt blocking.
1516 (struct catchtag): New elt interrupt_input_blocked.
1517 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
1518 (internal_catch, Fcondition_case, internal_condition_case)
1519 (internal_condition_case_1, internal_condition_case_2): Save it.
1520 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 1521
048addec 1522 * editfns.c (Fformat): Add parens.
f02cac82 1523
048addec
JD
1524 * dired.c (file_name_completion): Fix that change.
1525 Delete special quit-handling code; just use QUIT.
f02cac82 1526
048addec 15272002-12-21 Tak Ota <Takaaki.Ota@am.sony.com> (tiny change)
f02cac82 1528
048addec
JD
1529 * dired.c (file_name_completion): Close directory on error
1530 just as in directory_files_internal.
1a590729 1531
048addec 15322002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 1533
048addec
JD
1534 * window.c (Fset_window_configuration): Set old_point to correct
1535 value when new_current_buffer == current_buffer.
f02cac82 1536
048addec 15372002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 1538
048addec
JD
1539 Revisited my earlier fix for the following entry in etc/PROBLEMS:
1540 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
1541 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 1542
048addec
JD
1543 These changes were in part based upon suggestions made by Peter
1544 'Luna' Runestig [peter@runestig.com].
9785d95b 1545
048addec
JD
1546 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
1547 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 1548 g_b_init_get_sid_identifier_authority ): Add several static
048addec 1549 global variables.
9785d95b 1550
048addec
JD
1551 * w32.c (globals_of_w32): New function. Used to initialize those
1552 global variables that must always be initialized on startup even
1553 when the global variable initialized is non zero. Its primary
1554 purpose at this time is to set the global variables
1555 g_b_init_is_windows_9x, g_b_init_open_process_token,
1556 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
1557 g_b_init_get_sid_identifier_authority to 0 on startup.
1558 Called from main.
9785d95b 1559
048addec
JD
1560 * w32.c (is_windows_9x): Perform initialization only if
1561 g_b_init_is_windows_9x is equal to 0. On initialization set
1562 g_b_init_is_windows_9x equal to 1.
2308af15 1563
048addec
JD
1564 * w32.c (open_process_token): Perform initialization only if
1565 g_b_init_open_process_token is equal to 0. On initialization set
1566 g_b_init_open_process_token equal to 1.
2308af15 1567
048addec
JD
1568 * w32.c (get_token_information): Perform initialization only if
1569 g_b_init_get_token_information is equal to 0. On initialization
1570 set g_b_init_get_token_information equal to 1.
9785d95b 1571
048addec
JD
1572 * w32.c (lookup_account_sid): Perform initialization only if
1573 g_b_init_lookup_account_sid is equal to 0. On initialization
1574 set g_b_init_lookup_account_sid equal to 1.
9785d95b 1575
048addec
JD
1576 * w32.c (get_sid_identifier_authority): Perform initialization
1577 only if g_b_init_get_sid_identifier_authority is equal to 0.
1578 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 1579
048addec
JD
1580 * w32fns.c (globals_of_w32fns): New function. Used to initialize
1581 those global variables that must always be initialized on startup
1582 even when the global variable initialized is non zero.
1583 Its primary purpose at this time is to initialize the global variable
1584 track_mouse_event_fn.
9785d95b 1585
048addec
JD
1586 * w32fns.c (w32_wnd_proc): Remove initialization of
1587 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 1588
048addec 1589 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 1590
048addec
JD
1591 * w32menu.c (globals_of_w32menu): New function. Used to
1592 initialize those global variables that must always be initialized
1593 on startup even when the global variable initialized is non zero.
1594 Its primary purpose at this time is to initialize the global
1595 variables get_menu_item_info and set_menu_item_info.
9785d95b 1596
048addec
JD
1597 * w32menu.c (initialize_frame_menubar): Remove initialization of
1598 get_menu_item_info and set_menu_item_info.
9785d95b 1599
048addec 1600 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 1601
048addec
JD
1602 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
1603 Declare them.
9785d95b 1604
048addec
JD
1605 * emacs.c (main): Call globals_of_w32 prior to calling
1606 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
1607 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
1608 is defined.
9785d95b 1609
048addec
JD
1610 * w32term.c (x_update_window_begin): Fix Windows API error
1611 detected by BoundsChecker. Test to determine if
1612 w32_system_caret_hwnd is NULL prior to attempting to use
1613 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 1614
048addec
JD
1615 * w32term.c (x_update_window_end): Fix Windows API error
1616 detected by BoundsChecker. Test to determine if
1617 w32_system_caret_hwnd is NULL prior to attempting to use
1618 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 1619
048addec 16202002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 1621
048addec
JD
1622 * coding.c (coding_system_require_warning): New variable.
1623 (syms_of_coding): DEFVAR it.
b6da19ef 1624
048addec 1625 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 1626
048addec
JD
1627 * fileio.c (choose_write_coding_system): Even if
1628 Vcoding_system_for_write is non-nil, if
1629 coding_system_require_warning is nonzero, call
1630 Vselect_safe_coding_system_function.
bfcf6dbe 1631
048addec 16322002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 1633
048addec
JD
1634 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
1635 (lisp): Add font-core.
2c568af5 1636
048addec 16372002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 1638
048addec
JD
1639 * textprop.c (text_read_only): New arg `propval'.
1640 (get_char_property_and_overlay): Remove unused var `next_overlay'.
1641 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 1642
048addec 16432002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 1644
048addec 1645 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 1646
048addec 16472002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 1648
048addec
JD
1649 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
1650 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
1651 Be more careful about when help_events are generated.
96720f09 1652
048addec 16532002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 1654
048addec
JD
1655 * macterm.c (mac_check_for_quit_char): Correctly set the
1656 modifiers of the event to 0.
1657 * mac.c (sys_select): Duplicate rfds before calling select to
1658 ensure that rfds survive the while loop.
e5ae1c49 1659
048addec 16602002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 1661
048addec
JD
1662 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
1663 row_containing_pos returned NULL.
2eb46b2d 1664
048addec 16652002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 1666
6bdb309a 1667 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 1668 non-blocking.
6bdb309a 1669 (sys_select): Fix sys_select to not use a timeout larger than
048addec 1670 the one given.
b11f1d8a 1671
048addec 16722002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 1673
048addec 1674 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 1675
048addec 16762002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 1677
048addec
JD
1678 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
1679 as the last thing.
a4ac5b17 1680
048addec 16812002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 1682
048addec 1683 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 1684
048addec 16852002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 1686
048addec
JD
1687 * editfns.c (Fformat): Handle precision in string conversion
1688 specifiers like libc functions do (ie, print at most that many
1689 characters).
85cce843 1690
048addec 16912002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 1692
048addec
JD
1693 * xdisp.c (row_containing_pos): Check more carefully
1694 whether charpos is really in the row before returning it.
0d4d26a7 1695
048addec 16962002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 1697
048addec 1698 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 1699
048addec
JD
1700 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
1701 each stack frame. This may change as it could be time consuming.
0d4d26a7 1702
048addec
JD
1703 * macterm.c (mac_check_for_quit_char, quit_char_comp)
1704 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 1705 (mac_initialize): Add code to check for pressing of quit_char
048addec 1706 in the OS event queue.
b11f1d8a 1707
048addec
JD
1708 * mac.c (sys_select): Call mac_check_for_quit_char every second
1709 while blocking on select.
0d4d26a7 1710
048addec
JD
1711 * mac.c (sys_read): Use sys_select to test for input first
1712 before calling read, to allow C-g to break.
9252f7bc 1713
048addec 17142002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 1715
048addec 1716 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 1717
048addec 1718 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 1719
048addec 1720 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 1721
048addec
JD
1722 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
1723 autoload.
9252f7bc 1724
048addec 1725 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 1726
048addec 1727 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 1728
048addec 17292002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 1730
048addec 1731 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 1732
048addec 17332002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 1734
048addec 1735 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 1736
048addec 1737 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 1738
048addec 1739 * alloca.c: Don't use #error.
02d588e2 1740
048addec 17412002-12-03 Dave Love <fx@gnu.org>
02d588e2 1742
048addec
JD
1743 * buffer.c (Qucs_set_table_for_input): New.
1744 (Fget_buffer_create): Use it.
1745 (Qset_buffer_major_mode_hook): Deleted.
1746 (Fset_buffer_major_mode): Revert previous change.
1747 (init_buffer_once): Intern ucs-set-table-for-input.
1748 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
1749 Add &Qucs_set_table_for_input.
451e2697 1750
048addec 17512002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 1752
048addec
JD
1753 * callint.c (Fcall_interactively): Use next_event only if less
1754 than key_count.
72742a99 1755
048addec 17562002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 1757
048addec
JD
1758 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
1759 names to 255 characters.
72742a99 1760
048addec
JD
1761 * macterm.c (XTread_socket): If all frames have been collapsed,
1762 expand the first one before handling drag-and-drop events.
72742a99 1763
048addec
JD
1764 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
1765 which is detected by autoconf.
40e6ff95 1766
048addec 17672002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 1768
048addec
JD
1769 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
1770 offset in two hints table to allow prebinding to be redone and
1771 allow the executable to be stripped.
c02138c6 1772
048addec 17732002-11-29 Dave Love <fx@gnu.org>
c02138c6 1774
048addec
JD
1775 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
1776 already provided.
0e47bbf7 1777
048addec 17782002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 1779
048addec
JD
1780 * xdisp.c (start_display): Check more intelligently for
1781 whether the line is continued.
1782 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 1783
048addec 17842002-11-28 Dave Love <fx@gnu.org>
44129dcb 1785
048addec
JD
1786 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
1787 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 1788
048addec 17892002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 1790
048addec
JD
1791 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
1792 more descriptive error output from lread.c:Fload upon most require
1793 cycles during boostrapping.
1637fd2c 1794
048addec 17952002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 1796
048addec
JD
1797 * fileio.c (Finsert_file_contents): Give a more appropriate error
1798 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 1799
048addec
JD
1800 * dired.c (Ffile_attributes): Don't return negative file sizes for
1801 files bigger than 2Gb when off_t is 32 bit.
540c2788 1802
048addec 18032002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 1804
048addec 1805 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 1806
048addec
JD
1807 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
1808 Test GETPGRP_VOID instead.
1809 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 1810
048addec
JD
1811 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
1812 Don't define.
1813 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 1814
048addec 1815 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 1816
048addec 18172002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 1818
048addec
JD
1819 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
1820 supported.
4042a81a 1821
048addec 18222002-11-25 Dave Love <fx@gnu.org>
4042a81a 1823
048addec 1824 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 1825
048addec 1826 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 1827
048addec 18282002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 1829
048addec 1830 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 1831
048addec 18322002-11-24 Steven Tamm <steventamm@mac.com>
82122254 1833
048addec
JD
1834 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
1835 determine the size of pointers alloced in unexed space instead
1836 of using possibly invalid emacs_zone pointers. This fixes the
1837 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 1838
048addec 18392002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 1840
048addec 1841 * search.c (Fstring_match): Doc fix.
c1ee53bc 1842
048addec
JD
1843 * callint.c (Fcall_interactively): If a command fails because
1844 `*' detects a read-only buffer, but RECORD_FLAG is set,
1845 record it anyway if the args don't actually do tty input.
5598c32e 1846
048addec 18472002-11-22 Dave Love <fx@gnu.org>
5598c32e 1848
048addec 1849 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 1850
048addec
JD
1851 * keyboard.c (interrupt_signal): Provide forward declaration.
1852 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 1853
048addec 1854 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 1855
048addec 18562002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 1857
048addec
JD
1858 * eval.c (interactive_p): Skip any number of bytecode
1859 and special form frames, in any order.
516eea8e 1860
048addec 18612002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 1862
048addec
JD
1863 * w32fns.c (convert_mono_to_color_image): New function.
1864 (xbm_load, xbm_load_image): Use it when foreground or background
1865 is explicitly set.
04dbfa08 1866
048addec 18672002-11-19 Dave Love <fx@gnu.org>
04dbfa08 1868
048addec 1869 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 1870
048addec 18712002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 1872
048addec
JD
1873 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
1874 (XPutPixel): Swap blue and red.
1875 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
1876 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
1877 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
1878 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 1879
048addec 18802002-11-18 Dave Love <fx@gnu.org>
d824beee 1881
048addec 1882 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 1883
048addec 1884 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 1885
048addec 1886 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 1887
048addec
JD
1888 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
1889 malloc, realloc, calloc.
d824beee 1890
048addec
JD
1891 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
1892 (bcmp): Don't define.
d824beee 1893
048addec 1894 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 1895
048addec 1896 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 1897
048addec 1898 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 1899
048addec 1900 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 1901
048addec
JD
1902 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
1903 Don't include alloca.h.
d824beee 1904
048addec 1905 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 1906
048addec 1907 * regex.c (_GNU_SOURCE): Don't define.
1998560a 1908
048addec 1909 * process.c (_GNU_SOURCE): Don't define.
1998560a 1910
048addec 1911 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 1912
048addec 19132002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 1914
048addec 1915 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 1916
048addec 19172002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 1918
048addec
JD
1919 * dispextern.h (struct face): Add `overstrike' field.
1920 * xterm.c (x_draw_glyph_string_foreground)
1921 (x_draw_composite_glyph_string_foreground): Implement overstriking.
1922 * xfaces.c (load_face_font): Set `face->overstrike' based on
1923 result from choose_face_font.
1924 (best_matching_font, choose_face_font): Add `needs_overstrike'
1925 argument, and use it to return whether overstriking is desirable
1926 for this face/font combo.
1927 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 1928
048addec 19292002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 1930
048addec
JD
1931 This change is my fix for the following entry in etc/PROBLEMS:
1932 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
1933 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 1934
048addec
JD
1935 * w32.c: Added wrapper functions around the win32 API functions
1936 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
1937 GetSidIdentifierAuthority. These wrapper functions serve two
1938 purposes:
1939 1. They ensure that the wrapped function can never be called
1940 when Emacs is running on an operating system on which they are
1941 not supported (Microsoft Windows 95 / 98 / ME).
1942 2. They call the wrapped functions via function pointers rather
1943 than calling them directly. This avoids taking advantage of the
1944 undocumented fact that although these functions are not supported
1945 in the 9x branch of Microsoft Windows, the functions do exist in
1946 the version of advapi32.dll that is found in the 9x branch of
1947 Microsoft Windows.
f60ae425 1948
6bdb309a 1949 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
1950 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
1951 and GetSidIdentifierAuthority with calls to the newly added
1952 wrapper functions.
f60ae425 1953
048addec
JD
1954 * w32.h: Added extern declarations for the following functions:
1955 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
1956 syms_of_w32menu, and void syms_of_fontset.
f60ae425 1957
6bdb309a 1958 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
1959 function pointer track_mouse_event_fn in the handler for the
1960 WM_SETFOCUS message.
3582b6a3 1961
6bdb309a 1962 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
1963 reinitialize the function pointers set_menu_item_info and
1964 get_menu_item_info.
f60ae425 1965
048addec 19662002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 1967
048addec
JD
1968 * sound.c: Added a partial implementation of play-sound-internal
1969 for Microsoft Windows. Added various #ifdef / #else / #endif
1970 code blocks to separate the code that will compile under
1971 Microsoft Windows from the code that is specific to Gnu/Linux.
1972 Moved several blocks of code around to make this separation of code
1973 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 1974
048addec 1975 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 1976
048addec
JD
1977 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
1978 added support for play-sound-internal under Windows would be
1979 included in the build of Emacs.
517f42a0 1980
048addec 19812002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 1982
048addec 1983 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 1984
048addec 1985 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 1986
048addec 19872002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 1988
048addec
JD
1989 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
1990 (adjust_point_for_property): Move out of display and invisible even if
1991 we were already inside before (in case a property was added while
1992 we weren't looking). Be more careful when handling invisible props.
1993 Skip invisible text as if it really wasn't there at all.
aab83f91 1994
048addec 19952002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 1996
048addec
JD
1997 * w32term.c (x_draw_image_foreground)
1998 (w32_draw_image_foreground_1): Use standard copy and invert
1999 operations to draw images.
aab83f91 2000
048addec
JD
2001 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
2002 depth of 1.
2003 (xbm_read_bitmap_data): Invert bits as xbm is read in.
2004 (XPutPixel): Don't invert bits here.
a4478a76 2005
048addec 20062002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 2007
048addec
JD
2008 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
2009 (w32_draw_image_foreground_1): Handle image masks.
2010 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 2011
048addec
JD
2012 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
2013 (x_from_xcolors): Adjust RGB values for W32.
2014 (image_background, image_background_transparent)
2015 (postprocess_image, x_to_xcolors, x_disable_image)
2016 (x_build_heuristic_mask): Adapt for W32 and enable.
2017 (x_create_x_image_and_pixmap): Mark images with palettes as such.
2018 (xbm_load): Remove unused variable.
03670a65 2019
048addec 20202002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 2021
048addec 2022 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 2023
048addec 20242002-11-14 Dave Love <fx@gnu.org>
59daa29a 2025
048addec 2026 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 2027
048addec
JD
2028 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
2029 * xmenu.c (unuse_menu_items, digest_single_submenu):
2030 * xfns.c (x_put_x_image):
2031 * xdisp.c (message2_nolog, set_message):
2032 * undo.c (record_point):
2033 * terminfo.c (tparam):
2034 * syntax.c (scan_sexps_forward):
2035 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
2036 * composite.c (update_compositions):
2037 * cm.c (calccost, cmgoto):
2038 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 2039
048addec 2040 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 2041
048addec
JD
2042 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
2043 Don't declare.
59daa29a 2044
048addec 2045 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 2046
048addec
JD
2047 * fns.c (Fcopy_sequence): Doc fix.
2048 (Fmap_char_table): Cast `call2'.
3947677c 2049
048addec
JD
20502002-11-14 Francesco Potorti` <pot@gnu.org>
2051
2052 * s/sol2-8.h: New file.
2053
20542002-11-14 Kim F. Storm <storm@cua.dk>
2055
2056 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
2057 dependency on `risky-local-variable' and the :propertize form.
2058
20592002-11-12 Stefan Monnier <monnier@cs.yale.edu>
2060
2061 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
2062
2063 * syntax.c (scan_sexps_forward): Undo last patch.
2064 Use a more obvious fix: check eob before updating the syntax table.
2065
20662002-11-09 Stefan Monnier <monnier@cs.yale.edu>
2067
2068 * syntax.c (scan_sexps_forward): Update syntax table before reading
2069 a char rather than after so we don't update the table past eob.
2070
20712002-11-09 Dave Love <fx@gnu.org>
2072
2073 * buffer.c (Fset_buffer_major_mode): Fix last change.
2074
2075 * regex.c (regexec): Fix pmatch declaration.
2076
2077 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
2078
2079 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
2080 to self-inserting characters.
2081 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
2082
2083 * coding.c (Vtranslation_table_for_input): New.
2084 (syms_of_coding): DEFVAR it.
2085
20862002-11-08 Juanma Barranquero <lektu@terra.es>
2087
2088 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
2089 window.
2090
20912002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2092
6bdb309a 2093 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
2094 cp, and i.
2095
20962002-11-06 Dave Love <fx@gnu.org>
2097
2098 * buffer.c (Qset_buffer_major_mode_hook): New.
2099 (Fset_buffer_major_mode): Use it.
2100
21012002-11-06 Richard M. Stallman <rms@gnu.org>
2102
2103 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
2104 and stop_polling.
2105
2106 * process.c (wait_reading_process_input):
2107 Test POLLING_PROBLEM_IN_SELECT, not hpux.
2108 Avoid initialization for auto Lisp_Object var.
2109
2110 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
2111
2112 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
2113
21142002-11-05 Richard M. Stallman <rms@gnu.org>
2115
2116 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
2117
2118 * callint.c (Fcall_interactively): New local filter_specs.
2119 (Fcall_interactively): Check for progn as well as let.
2120 Add a gcpro.
2121 (Qprogn): New variable.
2122 (syms_of_callint): Staticpro and init Qprogn.
2123
21242002-11-04 John Paul Wallington <jpw@shootybangbang.com>
2125
2126 * lread.c (Feval_buffer): Doc fix.
2127
21282002-11-04 Dave Love <fx@gnu.org>
2129
2130 * keyboard.c (read_char): Always translate iff
2131 Vkeyboard_translate_table is a char table and c is valid.
2132
2133 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
2134 and fix C types.
2135
21362002-11-03 Stefan Monnier <monnier@cs.yale.edu>
2137
2138 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
2139
2140 * editfns.c (get_pos_property): Don't hardcode Qfield.
2141
2142 * keyboard.c (adjust_point_for_property): Handle `display' prop on
2143 overlays. Also handle `invisible' prop.
2144
21452002-11-02 Stefan Monnier <monnier@cs.yale.edu>
2146
2147 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
2148 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
2149
21502002-11-01 Andreas Schwab <schwab@suse.de>
2151
2152 * editfns.c (Fmessage): Revert last change to properly handle %%.
2153
21542002-11-01 Stefan Monnier <monnier@cs.yale.edu>
2155
2156 * xmenu.c (unuse_menu_items): New fun.
2157 (menu_items_inuse): New var.
2158 (syms_of_xmenu): Initialize it.
2159 (init_menu_items): Use it to detect re-entrance.
2160 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
2161 (Fx_popup_menu): Remove spurious XSETFRAME.
2162
2163 * editfns.c (find_field): Make an exception for nil fields.
2164
21652002-11-01 Dave Love <fx@gnu.org>
2166
2167 * m/gec63.h: Deleted.
2168
21692002-10-31 Dave Love <fx@gnu.org>
2170
2171 * xterm.c (XTread_socket): Fix last change.
2172 (xaw_scroll_callback): Cast call_data to long to avoid warning.
2173
21742002-10-31 Stefan Monnier <monnier@cs.yale.edu>
2175
2176 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
2177
21782002-10-30 Stefan Monnier <monnier@cs.yale.edu>
2179
2180 * editfns.c (overlays_around, get_pos_property): New funs.
2181 (find_field): Use them.
2182 Also be careful not to modify POS before its last use.
2183 (Fmessage): Don't Fformat if there's nothing to format.
2184
21852002-10-30 Dave Love <fx@gnu.org>
2186
2187 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
2188 [HAVE_PTY_H]; Include pty.h.
2189
2190 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
2191
2192 * xterm.c (Qeql): Declare.
2193 (Vx_keysym_table): New.
2194 (syms_of_xterm): Initialize it.
2195 (XTread_socket): Use it. Deal with ASCII keysyms.
2196 (XSetIMValues) [HAVE_X11R6]: Prototype.
2197
2198 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
2199 (lispy_kana_keys): Comment out.
2200 (make_lispy_event) [XK_kana_A]: Comment out.
2201 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
2202 Fix sprintf call.
2203
2204 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
2205 regexp.h change).
2206 (TERMINFO, LIBS_TERMCAP): Define.
2207
2208 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
2209 (bcmp): Define conditional on HAVE_BCMP.
2210 (NO_SIOCTL_H): Don't define.
2211 (TIOCSIGSEND): Don't make conditional on IRIX6.
2212
2213 * s/sol2-5.h: Don't include strings.h.
2214 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
2215
2216 * s/irix6-0.h (IRIX6): Don't define.
2217 (bcopy, bcmp, bzero): Don't undef.
2218
2219 * s/irix6-5.h: Don't include strings.h.
2220 (IRIX6): Don't define.
2221 (bcopy, bcmp, bzero): Don't undef.
2222
2223 * syntax.c (Fforward_comment): Doc fix.
2224
22252002-10-29 Kim F. Storm <storm@cua.dk>
2226
2227 * process.c (Fsignal_process): Allow PROCESS to be specified by
2228 name in addition to pid (as integer or string).
2229
22302002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
2231
2232 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
2233 environments.
2234
22352002-10-27 Kim F. Storm <storm@cua.dk>
2236
2237 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
2238
2239 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
2240
2241 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
2242
2243 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
2244
22452002-10-26 Richard M. Stallman <rms@gnu.org>
2246
2247 * editfns.c (Fformat): Detect invalid format letters for floats.
2248
22492002-10-25 Kenichi Handa <handa@m17n.org>
2250
2251 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
2252 (x_set_title): Likewise.
2253
22542002-10-25 Juanma Barranquero <lektu@terra.es>
2255
2256 * macgui.h:
2257 * w32gui.h: Remove definition of XColor.
2258
2259 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
2260
22612002-10-24 Kim F. Storm <storm@cua.dk>
2262
2263 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
2264 Callers changed (supply dummy arg).
2265
2266 * lisp.h (get_window_cursor_type): Update prototype.
2267
2268 * w32term.c (x_display_and_set_cursor): Get active_cursor from
2269 get_window_cursor_type to track system caret.
2270
22712002-10-24 Kim F. Storm <storm@cua.dk>
2272
2273 * process.c (Fformat_network_address): New function.
2274 (syms_of_process): Defsubr it.
2275 (list_processes_1): Use it to format :local/:remote address if
2276 service/host is not set; before emacs would crash in that case.
2277 (Fmake_network_process): Don't use Ffind_operation_coding_system
2278 to setup coding system if host or service is not set.
2279
22802002-10-23 Juanma Barranquero <lektu@terra.es>
2281
2282 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
2283
2284 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
2285 COLORREF.
2286
2287 * macgui.h:
2288 * w32gui.h: Add definition of XColor.
2289
2290 * macfns.c:
2291 * w32fns.c:
2292 * xfaces.c: Remove definition of XColor.
2293
22942002-10-22 Stefan Monnier <monnier@cs.yale.edu>
2295
2296 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
2297
2298 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
2299 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
2300 window if it is dedicated.
2301 (Fshrink_window): Add preserve_before as was done for enlarge_window.
2302 (Vspecial_display_function): Update docstring.
2303
2304 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
2305 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
2306 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
2307
23082002-10-21 Stefan Monnier <monnier@cs.yale.edu>
2309
2310 * casefiddle.c (casify_region): Don't treat a prefix char as part
2311 of a word when at the beginning.
2312
23132002-10-17 Juanma Barranquero <lektu@terra.es>
2314
2315 * lread.c (syms_of_lread): Fix typos.
2316
23172002-10-17 Dave Love <fx@gnu.org>
2318
2319 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
2320
23212002-10-16 Richard M. Stallman <rms@gnu.org>
2322
2323 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
2324
23252002-10-14 Juanma Barranquero <lektu@terra.es>
2326
2327 * w16select.c (syms_of_win16select): Fix docstring for
2328 `selection-coding-system'.
2329
2330 * w32select.c (syms_of_w32select): Likewise.
2331
23322002-10-14 Stefan Monnier <monnier@cs.yale.edu>
2333
2334 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
2335 a backslash-quoted char.
2336 (scan_lists, scan_sexps_forward): Pacify the compiler.
2337
23382002-10-13 Richard M. Stallman <rms@gnu.org>
2339
2340 * window.c (window_scroll): Set immediate_quit.
2341
2342 * print.c (print): When backquote form is the car of a list,
2343 output in old style. Use old_backquote_output to output all
2344 comma forms inside it in old style too.
2345
2346 * buffer.h (struct buffer): Move `undo_list' down below `name'.
2347
23482002-10-11 Markus Rost <rost@math.ohio-state.edu>
2349
2350 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
2351 batch mode).
2352
2353 * lread.c (Fload): Doc fix (load-suffixes).
2354
23552002-10-10 Steven Tamm <steventamm@mac.com>
2356
2357 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
2358 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
2359 Also switch the default to Qnil from Qt.
2360
23612002-10-08 Kenichi Handa <handa@m17n.org>
2362
2363 * coding.c (code_convert_region): When we need more GAP for
2364 conversion, pay attention to the case that coding->produced is not
2365 greater than coding->consumed.
2366
23672002-10-07 Richard M. Stallman <rms@gnu.org>
2368
2369 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
2370
23712002-10-06 Andrew Choi <akochoi@shaw.ca>
2372
2373 * macmenu.c (mac_menu_show): Add j to count menu items; match
2374 menu_item_selection to it to find selected item.
2375
23762002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2377
2378 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
2379 cases. The correct fix is to pass ReparentNotify to Xt.
2380 The shell widget interprets ConfigureNotify differently depending
2381 on if it has been reparented or not.
2382
23832002-10-05 Markus Rost <rost@math.ohio-state.edu>
2384
2385 * editfns.c (Fformat_time_string): Doc fix.
2386
23872002-10-05 John Paul Wallington <jpw@shootybangbang.com>
2388
2389 * fns.c (Flength): Doc fix.
2390
23912002-10-04 Stefan Monnier <monnier@cs.yale.edu>
2392
2393 * keyboard.c (keyremap): New struct.
2394 (read_key_sequence): Use it: globally replace keytran_foo with
2395 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
2396 keytran_next and fkey_next to just `next'.
2397
23982002-10-04 Steven Tamm <steventamm@mac.com>
2399
2400 * macterm.c (keycode_to_xkeysym_table): Change return to be
2401 treated like an X keysym.
2402
24032002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2404
2405 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
2406 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
2407 This is to also handle x/y changes that occur because of a resize.
2408
24092002-10-02 John Paul Wallington <jpw@shootybangbang.com>
2410
2411 * frame.c (Vdelete_frame_functions): New variable.
2412 (syms_of_frame): Initialize and defvar it.
2413 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
2414 it when frame's `tooltip' parameter is non-nil.
2415
2416 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
2417
2418 * w32fns.c (x_create_tip_frame): Likewise.
2419
2420 * macfns.c (x_create_tip_frame): Likewise.
2421
24222002-09-30 Kenichi Handa <handa@m17n.org>
2423
2424 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
2425 -1 before calling ccl_driver.
2426
2427 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
2428 Only when it is non-nil, handle composition sequence.
2429 (setup_coding_system) <0>: Don't force composition handling.
2430
2431 * Makefile.in (lisp, shortlisp): Add utf-16.elc
2432
24332002-09-29 Richard M. Stallman <rms@gnu.org>
2434
2435 * search.c (Freplace_match): Adjust match data for the substitution
2436 just made in the buffer.
2437
2438 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
2439 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
2440
24412002-09-27 Richard M. Stallman <rms@gnu.org>
2442
2443 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
2444 (read_char): Use them. Do all exits thru the end of the function.
2445
24462002-09-27 Kenichi Handa <handa@etl.go.jp>
2447
2448 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
2449 is nil.
2450
24512002-09-26 Richard M. Stallman <rms@gnu.org>
2452
2453 * regex.h (__restrict_arr): Don't define if already defined.
2454
2455 * coding.c (run_pre_post_conversion_on_str):
2456 Save and restore Vdeactivate_mark.
2457
24582002-09-26 John Paul Wallington <jpw@shootybangbang.com>
2459
2460 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
2461
24622002-09-26 Kenichi Handa <handa@etl.go.jp>
2463
2464 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
2465 nonzero, try face's family at first. Otherwise try FAMILY at first.
2466 (choose_face_font): If C is a single byte char or latin-1, call
2467 try_font_list with PREFER_FACE_FAMILY 1.
2468
24692002-09-21 Richard M. Stallman <rms@gnu.org>
2470
2471 * window.c (select_window_1): Don't select frame.
2472 Set frame's selected window only when frame itself is selected.
2473 (Fselect_window): Doc fix.
2474
24752002-09-18 Kim F. Storm <storm@cua.dk>
2476
2477 * process.c (make-network-process): Doc fix (there is no
2478 network-server-log-function hook).
2479
24802002-09-18 Richard M. Stallman <rms@gnu.org>
2481
2482 * print.c (print): Clear out the unused parts of Vprint_number_table.
2483 (syms_of_print): Doc fix for `print-number-table'.
2484
2485 * unexelf.c (unexec): Undo previous change.
2486
24872002-09-17 Andreas Schwab <schwab@suse.de>
2488
2489 * m/alpha.h [LINUX]: Don't define DATA_START.
2490
24912002-09-16 Dave Love <fx@gnu.org>
2492
2493 * unexelf.c (unexec): Deal with .got, reinstating change from
2494 25-08-1999.
2495
24962002-09-13 Richard M. Stallman <rms@gnu.org>
2497
2498 * s/sol2-6.h (UNEXEC): Comment out definition.
2499
2500 * unexsol.c (unexec): Don't downcase first letter of error msg.
2501
2502 * xfaces.c (Fcolor_supported_p): Just one arg is required.
2503
25042002-09-12 Markus Rost <rost@math.ohio-state.edu>
2505
2506 * unexsol.c: Include buffer.h, charset.h, coding.h.
2507
25082002-09-11 Richard M. Stallman <rms@gnu.org>
2509
2510 * unexsol.c: Don't use report_file_error; do it by hand
2511 using dlerror.
2512
2513 * process.c (wait_reading_process_input, both versions):
2514 Before calling turn_on_atimers, call stop_polling.
2515
2516 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
2517
2518 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
2519 we go to too_near_end, call clear_glyph_matrix.
2520 (redisplay_window): After make_cursor_line_fully_visible,
2521 call clear_glyph_matrix and bypass `goto done'.
2522
2523 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
2524 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
2525
25262002-09-10 Richard M. Stallman <rms@gnu.org>
2527
2528 * fileio.c (Fdo_auto_save): Catch error making directory.
2529 Only call push_message if we need to.
2530 At the same time, make an unwind-protect to pop it.
2531 Rename local message_p to old_message_p.
2532 (do_auto_save_make_dir, do_auto_save_eh): New functions.
2533 (do_auto_save_unwind): Don't call pop_message.
2534
2535 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
2536
2537 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
2538
2539 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
2540
2541 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
2542
25432002-09-10 Stefan Monnier <monnier@cs.yale.edu>
2544
2545 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
2546 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
2547 (re_match_2_internal): Be more careful with infinite loops.
2548
25492002-09-10 Kim F. Storm <storm@cua.dk>
2550
2551 * macros.c (end_kbd_macro): New function.
2552 (Fend_kbd_macro): Use it.
2553
2554 * macros.h (end_kbd_macro): Declare extern.
2555
2556 * keyboard.c (Fdiscard_input): If defining keyboard macro,
2557 end and save it instead of discarding it.
2558
25592002-09-09 Markus Rost <rost@math.ohio-state.edu>
2560
2561 * s/sol2-6.h: Fix typo. Add comment.
2562
25632002-09-09 Richard M. Stallman <rms@gnu.org>
2564
2565 * regex.c (regnum_t): Use signed int, not unsigned int.
2566
2567 * s/sol2-6.h: New file.
2568
2569 * s/sol2-5.h (UNEXEC): Definition deleted.
2570
25712002-09-08 Kim F. Storm <storm@cua.dk>
2572
2573 * macros.c (executing_macro_index): Change type to EMACS_INT.
2574 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
2575
2576 * macros.h (executing_macro_index): Change type to EMACS_INT.
2577
25782002-09-06 Richard M. Stallman <rms@gnu.org>
2579
2580 * casetab.c (set_case_table): Make canon table point to eqv table.
2581
25822002-09-06 Juanma Barranquero <lektu@terra.es>
2583
2584 * coding.c (syms_of_coding): Fix spacing.
2585
2586 * composite.c (Fcompose_region_internal)
2587 (Fcompose_string_internal): Likewise.
2588
2589 * data.c (Flsh): Likewise.
2590
2591 * fontset.c (Fset_fontset_font): Likewise.
2592
2593 * macfns.c (Fx_server_max_request_size): Likewise.
2594
2595 * w16select.c (syms_of_win16select): Likewise.
2596
2597 * w32select.c (syms_of_w32select): Likewise.
2598
2599 * xselect.c (syms_of_xselect): Likewise.
2600
26012002-09-05 Richard M. Stallman <rms@gnu.org>
2602
2603 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
2604 call EXTEND_RANGE_TABLE and return a proper value.
2605 (set_image_of_range): Don't call set_image_of_range_1
2606 if no TRANSLATE or if range includes all of Latin-1.
2607 Only call it for the Latin-1 part of the range.
2608 For other cases, make two separate ranges,
2609 one for the original specified characters and one for
2610 their case-conversions.
2611
26122002-09-04 Richard M. Stallman <rms@gnu.org>
2613
2614 * s/sol2-5.h (UNEXEC): Use unexsol.o.
2615
2616 * window.c (displayed_window_lines): Correct for one-off bug
2617 in HEIGHT on non-window displays.
2618
2619 * regex.c (set_image_of_range_1): New function.
2620 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
2621 Return a value to indicate running out of memory.
2622 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
2623 (extend_range_table_work_area): New subroutine.
2624 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
2625 Different calling conventions, and used from set_image_of_range{,_1}.
2626 (IMMEDIATE_QUIT_CHECK): Definitions moved.
2627
26282002-09-04 Juanma Barranquero <lektu@terra.es>
2629
2630 * makefile.w32-in: All dependencies updated.
2631
26322002-09-01 Richard M. Stallman <rms@gnu.org>
2633
2634 * unexsol.c: New file.
2635
2636 * xfns.c (Qbox): Declare external, don't define.
2637
2638 * xdisp.c (redisplay_window) <force-start case>:
2639 If point is on semi-visible last line, reposition
2640 it at previous line.
2641
2642 * alloc.c (display_malloc_warning): Use display-warning.
2643 (malloc_warning_1): Function deleted.
2644
2645 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
2646
2647 * lread.c (read1): Handle #! by skipping the line.
2648
26492002-08-31 Richard M. Stallman <rms@gnu.org>
2650
2651 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
2652 Don't include LDFLAGS.
2653 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
2654
26552002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
2656
2657 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
2658 member of x_display_info unless we compile for some window system.
2659
26602002-08-31 Kim F. Storm <storm@cua.dk>
2661
2662 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
2663 (get_window_cursor_type): Don't use them.
2664 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
2665
26662002-08-30 Kenichi Handa <handa@etl.go.jp>
2667
2668 * xdisp.c (get_next_display_element): Fix previous change.
2669
26702002-08-30 Andrew Choi <akochoi@shaw.ca>
2671
2672 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
2673 (expose_window): Use it to fix the display of overlapping
2674 rows (merge code from xterm.c).
2675
2676 * macfns.c (Qbox): Add extern declaration.
2677
26782002-08-30 Juanma Barranquero <lektu@terra.es>
2679
2680 * w32fns.c (Qbox): Make extern.
2681 (syms_of_w32fns): Remove initialization of Qbox.
2682
26832002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
2684
2685 * xfns.c (Fx_open_connection): Fix error message.
2686
26872002-08-30 Kim F. Storm <storm@cua.dk>
2688
2689 The following changes consolidates the handling of the cursor
2690 type in xdisp.c, moving duplicate code and functionality from
2691 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
2692
2693 * frame.h (enum text_cursor_kinds): Consolidated here.
2694 Added DEFAULT_CURSOR value.
2695 (struct frame) <desired_cursor, cursor_width>
2696 <blink_off_cursor, blink_off_cursor_width>: New fields.
2697 Consolidated from output_x, output_w32 and output_mac structs.
2698 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
2699 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
2700
2701 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
2702 Variables consolidated here.
2703 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
2704 (Vcursor_in_non_selected_windows): Renamed from
2705 cursor_in_non_selected_windows and changed to Lisp_Object.
2706 (syms_of_xdisp): Define and staticpro new and moved variables.
2707 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
2708 consolidated here. Recognize Qhollow setting.
2709 (set_frame_cursor_types): New function to set frame cursor types
2710 based on the frame parameters.
2711 (get_window_cursor_type): New function to calculate new cursor
2712 type and width for the specified window. Based on duplicated
2713 code consolidated here.
2714 Enhancements: cursor-in-non-selected-windows may be a cursor type,
2715 check buffer-local alternate-cursor-type and blink-cursor-alist
2716 before using built-in blink off methods.
2717
2718 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
2719
2720 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
2721 (get_specified_cursor_type, get_window_cursor_type)
2722 (set_frame_cursor_types): Added prototypes.
2723
2724 * macfns.c (x_specified_cursor_type): Removed.
2725 (x_set_cursor_type): Use set_frame_cursor_types.
2726 (Qbar, Qbox): Removed.
2727 (syms_of_macfns): Don't intern or staticpro them.
2728
2729 * macterm.c (x_specified_cursor_type): Remove prototype.
2730 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
2731 (x_display_and_set_cursor): Use get_window_cursor_type.
2732 Remove unused local variables cursor_non_selected, active_cursor.
2733 Redraw cursor if hbar cursor width changes.
2734 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
2735
2736 * macterm.h (enum text_cursor_kinds): Removed.
2737 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
2738 <blink_off_cursor, blink_off_cursor_width>: Members removed.
2739 (FRAME_DESIRED_CURSOR): Macro removed.
2740
2741 * w32fns.c (Vblink_cursor_alist): Removed.
2742 (Qbar, Qhbar, Qbox, Qhollow): Removed.
2743 (syms_of_w32fns): Don't intern, staticpro, or define them.
2744 (x_specified_cursor_type): Removed.
2745 (x_set_cursor_type): Use set_frame_cursor_types.
2746
2747 * w32term.c (x_specified_cursor_type): Remove prototype.
2748 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
2749 (x_display_and_set_cursor): Use get_window_cursor_type.
2750 Remove unused local variables cursor_off_state.
2751 Redraw cursor if hbar cursor width changes.
2752 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
2753
2754 * w32term.h (enum text_cursor_kinds): Removed.
2755 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
2756 <blink_off_cursor, blink_off_cursor_width>: Members removed.
2757 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
2758 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
2759 (struct w32_display_info) <x_highlight_frame>: Renamed member from
2760 w32_highlight_frame.
2761
2762 * xfns.c (Vblink_cursor_alist): Removed.
2763 (Qbar, Qhbar, Qbox, Qhollow): Removed.
2764 (syms_of_xfns): Don't intern, staticpro, or define them.
2765 (x_specified_cursor_type): Removed.
2766 (x_set_cursor_type): Use set_frame_cursor_types.
2767
2768 * xterm.c (x_specified_cursor_type): Remove prototype.
2769 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
2770 (x_display_and_set_cursor): Use get_window_cursor_type.
2771 Remove unused local variables cursor_off_state.
2772 Redraw cursor if hbar cursor width changes.
2773
2774 * xterm.h (enum text_cursor_kinds): Removed.
2775 (struct output_x) <current_cursor, desired_cursor, cursor_width>
2776 <blink_off_cursor, blink_off_cursor_width>: Members removed.
2777 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
2778 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
2779 (x_specified_cursor_type): Remove prototype.
2780
27812002-08-28 Richard M. Stallman <rms@gnu.org>
2782
2783 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
2784 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
2785 (Vblink_cursor_alist): New variable.
2786 (syms_of_w32fns): Initialize and defvar it.
2787 (x_specified_cursor_type): Recognize Qbox for filled box.
2788 Exceptions are hollow boxes.
2789 (Qbox, Qhollow): New variables.
2790 (syms_of_w32fns): Initialize and staticpro them.
2791
2792 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
2793 New macros.
2794 (struct w32_output): New fields blink_off_cursor,
2795 blink_off_cursor_width.
2796 (FRAME_CURSOR_WIDTH): New macro.
2797
2798 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
2799 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
2800
2801 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
2802 for bar cursor.
2803
2804 * w32term.c (expose_overlaps): New function.
2805 (expose_window): Use it to fix the display of overlapping rows.
2806
28072002-08-28 Simon Josefsson <jas@extundo.com>
2808
2809 * xfns.c (Fx_open_connection): Improve help when X connection
2810 fails, xhost is insecure and xauth is better.
2811
28122002-08-28 Juanma Barranquero <lektu@terra.es>
2813
2814 * makefile.w32-in: Add missing dependencies on w32term.h and
2815 composite.h.
2816
2817 * emacs.c (USAGE1): Add missing newline.
2818
28192002-08-27 Andrew Choi <akochoi@shaw.ca>
2820
2821 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
2822
28232002-08-27 Richard M. Stallman <rms@gnu.org>
2824
2825 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
2826 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
2827 (Vblink_cursor_alist): New variable.
2828 (syms_of_xfns): Initialize and defvar it.
2829 (x_specified_cursor_type): Recognize Qbox for filled box.
2830 Exceptions are hollow boxes.
2831 (Qbox, Qhollow): New variables.
2832 (syms_of_xfns): Initialize and staticpro them.
2833
2834 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
2835 New macros.
2836 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
2837
2838 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
2839 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
2840
2841 * emacs.c (main): Handle --script.
2842 (USAGE1): Mention --script.
2843 (standard_args): Define sort order for --script.
2844
28452002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
2846
2847 * xdisp.c (redisplay_updating_p): Variable removed.
2848 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
2849 New variables.
2850 (init_iterator): Don't free realized faces if
2851 inhibit_free_realized_faces is set.
2852 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
2853 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
2854 initialize Qinhibit_free_realized_faces.
2855
2856 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
2857 when iterator is adding glyphs to a glyph matrix.
2858
28592002-08-27 Kenichi Handa <handa@etl.go.jp>
2860
2861 * xdisp.c (get_next_display_element): In unibyte case, don't use
2862 octal form for such eight-bit characters that can be converted to
2863 multibyte char.
2864
28652002-08-26 Kim F. Storm <storm@cua.dk>
2866
2867 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize foreground
2868 and background colors. From Joe Buehler (tiny change).
2869
28702002-08-26 Miles Bader <miles@gnu.org>
2871
2872 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
2873
28742002-08-25 Andrew Choi <akochoi@shaw.ca>
2875
2876 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
2877 defined instead of MAC_OSX.
2878
2879 * s/darwin.h (select): Define select to sys_select only if
2880 HAVE_CARBON is defined.
2881 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
2882 (DONT_REOPEN_PTY): #def it.
2883
2884 * macterm.c (XTread_socket): Remove code to call
2885 SendEventToEventTarget for keys with command modifiers when
2886 mac_command_key_is_meta is nil.
2887
28882002-08-24 Andreas Schwab <schwab@suse.de>
2889
2890 * eval.c (Fdefvar): Fix last change.
2891
28922002-08-23 Richard M. Stallman <rms@gnu.org>
2893
2894 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
2895 Record variables in load history as (defvar . VAR).
2896 (Fdefvar): Don't record in load history if no initial value.
2897 (Qdefvar): New variable.
2898 (syms_of_eval): Init and staticpro it.
2899
2900 * lread.c (syms_of_lread): Doc fix.
2901 (build_load_history): Use Fmember to see if a definition
2902 is already in the Vload_history element.
2903
2904 * process.c (Fstart_process): Remove /: from program name.
2905
2906 * emacs.c (decode_env_path): Don't add /: if file name handler
2907 has a `safe-magic' property.
2908
2909 * callproc.c (Fcall_process): Remove /: from program name.
2910
29112002-08-23 Stefan Monnier <monnier@cs.yale.edu>
2912
2913 * regex.c (PATFETCH): Remove the translating fetch.
2914 (PATFETCH_RAW): Rename to PATFETCH.
2915 (set_image_of_range): New fun.
2916 (SET_RANGE_TABLE_WORK_AREA): Use it.
2917 (regex_compile): Don't translate the pattern chars so eagerly.
2918 Only do it when inserting an `exactn' bytecode or when handling
2919 a char-range.
2920 (mutually_exclusive_p): Avoid empty statement.
2921
29222002-08-22 Kim F. Storm <storm@cua.dk>
2923
2924 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
2925 end up on a partially visible line; this reverts a specific part
2926 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
2927 display error which has been reported several times now.
2928 However it introduces the problem that changes was supposed to fix.
2929 See my comments in the source if you want to debug this further.
2930
29312002-08-20 Kenichi Handa <handa@etl.go.jp>
2932
2933 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
2934
29352002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
2936
2937 * msdos.c (croak): Add `void' to definition.
2938
2939 * sysdep.c [MSDOS] (request_sigio, unrequest_sigio):
2940 Don't define them, they are defined in msdos.c.
2941
2942 * mem-limits.h [MSDOS]: Declare etext.
2943
2944 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
2945 `const' since CORRECT_DIR_SEPS modifies its target.
2946
29472002-08-19 Kim F. Storm <storm@cua.dk>
2948
2949 * keyboard.c (Fclear_this_command_keys): Added optional arg
2950 KEEP-RECORD to avoid clearing lossage when we just want to clear
2951 the current key sequence (kmacro needs this).
2952
29532002-08-19 Kenichi Handa <handa@localhost>
2954
2955 * composite.c (run_composition_function): Call FUNC if it is fboundp.
2956
2957 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
2958 cons, return Qnil.
2959
29602002-08-17 Richard M. Stallman <rms@gnu.org>
2961
2962 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
2963
2964 * sysdep.c [!VMS]: Include sys/files.h.
2965
2966 * editfns.c (save_restriction_restore): Defend from unchained marker.
2967
2968 * buffer.c (overlays_at): Handle extending vec uniformly.
2969 (overlays_in): Handle extending vec from length 0 as in overlays_at.
2970
29712002-08-15 Andrew Choi <akochoi@shaw.ca>
2972
2973 * mac.c (init_mac_osx_environment): New function.
2974
2975 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
2976
29772002-08-14 Kim F. Storm <storm@cua.dk>
2978
2979 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
2980 executing macro before appending to it (when used from Lisp).
2981 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
2982 which is called prior to each iteration of macro (for kmacro.el).
2983 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
2984
2985 * lisp.h (Fexecute_kbd_macro): Update prototype.
2986
2987 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
2988
29892002-08-14 Kenichi Handa <handa@etl.go.jp>
2990
2991 * xselect.c (QUTF8_STRING): New variable.
2992 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
2993 (x_atom_to_symbol): Likewise.
2994 (x_get_local_selection): New argument local_request. If it is
2995 nonzero, call handler_fn with the second arg nil.
2996 (x_handle_selection_request): Call x_get_local_selection with
2997 local_request 0.
2998 (lisp_data_to_selection_data): Don't encode the string here.
2999 (Fx_get_selection_internal): Call x_get_local_selection with
3000 local_request 1.
3001 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
3002
3003 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
3004
3005 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
3006
30072002-08-13 Richard M. Stallman <rms@gnu.org>
3008
3009 * minibuf.c (Fminibufferp): New function.
3010 (syms_of_minibuf): Defsubr it.
3011 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
3012
30132002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
3014
3015 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
3016
30172002-08-12 Richard M. Stallman <rms@gnu.org>
3018
3019 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
3020 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
3021 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
3022 already.
3023
3024 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
3025
30262002-08-11 Andrew Choi <akochoi@shaw.ca>
3027
3028 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
3029 (Vmac_pass_command_to_system): New variable.
3030 (Vmac_pass_control_to_system): New variable.
3031 (do_mouse_moved): Check wp with is_emacs_window.
3032 (XTread_socket): Check window_ptr with is_emacs_window.
3033 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
3034 events back to Mac Toolbox for processing, depending on values of
3035 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
3036 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
3037 Vmac_pass_control_to_system.
3038
30392002-08-10 Kenichi Handa <handa@etl.go.jp>
3040
3041 * coding.c (unencodable_char_position): New function.
3042 (Funencodable_char_position): New function.
3043 (syms_of_coding): Defsubr Funencodable_char_position.
3044
30452002-08-10 Andrew Choi <akochoi@shaw.ca>
3046
3047 * mac.c (sys_select) [MAC_OSX]: New function.
3048
3049 * macterm.c (MakeMeTheFrontProcess): New function.
3050 (mac_initialize): Call MakeMeTheFrontProcess.
3051
3052 * s/darwin.h: Define select to sys_select.
3053
30542002-08-09 Richard M. Stallman <rms@gnu.org>
3055
3056 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
3057
30582002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
3059
3060 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
3061 end of the buffer.
3062
30632002-08-08 Ken Raeburn <raeburn@mit.edu>
3064
3065 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
3066
3067 * puresize.h (BASE_PURESIZE): Increase to 910000.
3068
30692002-08-08 Kenichi Handa <handa@etl.go.jp>
3070
3071 * coding.c (Ffind_operation_coding_system): For write-region, if
3072 VISIT is a filename, make it the target.
3073
30742002-08-07 Richard M. Stallman <rms@gnu.org>
3075
3076 * alloc.c (mark_object): Detect long lists for debugging.
3077 (mark_object_loop_halt): New variable.
3078
3079 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
3080
3081 * data.c (Fmake_variable_frame_local): Doc fix.
3082
30832002-08-01 David Ponce <david@dponce.com>
3084
3085 * w32menu.c (local_heap, local_alloc, local_free): New macros.
3086 (malloc_widget_value, free_widget_value)
3087 (w32_free_submenu_strings): Use them.
3088
3089 (push_submenu_start, push_submenu_end, push_left_right_boundary)
3090 (push_menu_pane, push_menu_item, single_keymap_panes)
3091 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
3092 (single_submenu, set_frame_menubar)
3093 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
3094
3095 (Fx_popup_menu): Don't show pop up menu until preceding one is
3096 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
3097
3098 * w32menu.c: Changes adapted from xmenu.c
3099 (set_frame_menubar): First parse all submenus,
3100 then make widget_value trees from them.
3101 Don't allocate any widget_value objects
3102 until we are done with the parsing.
3103 (parse_single_submenu): New function.
3104 (digest_single_submenu): New function.
3105 (single_submenu): Function deleted, replaced by those two.
3106
31072002-08-04 Andrew Choi <akochoi@shaw.ca>
3108
3109 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
3110 returns a valid window pointer before proceeding for keyDown and
3111 autoKey events.
3112
31132002-08-03 Andrew Choi <akochoi@shaw.ca>
3114
3115 * macterm.c (USE_CARBON_EVENTS): New macro.
3116 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
3117 (x_iconify_frame): Call CollapseWindow.
3118 (Vmac_reverse_ctrl_meta): New variable.
3119 (Vmac_wheel_button_is_mouse_2): New variable.
3120 (init_mac_drag_n_drop): New function.
3121 (mac_do_receive_drag): New function.
3122 (mac_handle_service_event): New function.
3123 (init_service_handler): New function.
3124 (mac_to_emacs_modifiers): New function.
3125 (mac_event_to_emacs_modifiers): New function.
3126 (mac_get_mouse_btn): New function.
3127 (mac_convert_event_ref): New function.
3128 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
3129 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
3130 mac_get_mouse_btn.
3131 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
3132
3133 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
3134 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
3135 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
3136 TOOL_BAR_EVENT for MAC_OS as well.
3137 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
3138 as for WINDOWS_NT.
3139 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
3140
3141 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
3142
31432002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
3144
3145 * xdisp.c (forward_to_next_line_start): Fix a condition that
3146 lead to a newline being skipped.
3147
31482002-08-02 Andrew Choi <akochoi@shaw.ca>
3149
3150 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
3151
31522002-08-01 Richard M. Stallman <rms@gnu.org>
3153
3154 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
3155
31562002-07-31 Andrew Choi <akochoi@shaw.ca>
3157
3158 * macfns.c: #undef init_process before #define-ing it.
3159
3160 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
3161 HAVE_CARBON is defined.
3162
31632002-07-31 Richard M. Stallman <rms@gnu.org>
3164
3165 * xmenu.c (set_frame_menubar): First parse all submenus,
3166 then make widget_value trees from them.
3167 Don't allocate any widget_value objects
3168 until we are done with the parsing.
3169 (parse_single_submenu): New function.
3170 (digest_single_submenu): New function.
3171 (single_submenu): Function deleted, replaced by those two.
3172
31732002-07-30 Juanma Barranquero <lektu@terra.es>
3174
3175 * w32proc.c (syms_of_ntproc): Fix docstring of
3176 `w32-get-true-file-attributes'.
3177
31782002-07-28 Richard M. Stallman <rms@gnu.org>
3179
3180 * s/hpux8.h (HPUX8): Define this before including hpux.h.
3181 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
3182
3183 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
3184
3185 * keyboard.c (make_lispy_event):
3186 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
3187 Explicitly clear up_modifier in event->modifiers.
3188
31892002-07-27 Richard M. Stallman <rms@gnu.org>
3190
3191 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
3192
3193 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
3194 for bar cursor.
3195
31962002-07-26 Kenichi Handa <handa@etl.go.jp>
3197
3198 * coding.c (detect_coding_iso2022): While checking a byte sequence
3199 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
3200 it in the normal loop.
3201
32022002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
3203
3204 * xterm.c (expose_overlaps): New function.
3205 (expose_window): Use it to fix the display of overlapping rows.
3206
3207 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
3208
32092002-07-23 Ken Raeburn <raeburn@gnu.org>
3210
3211 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
3212 since it only depends on XUINT.
3213
3214 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
3215 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
3216 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
3217 Macros deleted.
3947677c 3218
77d1daf2
AS
3219 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
3220 its value over other approaches.
3221 * sysdep.c (start_of_data): Don't define the function if a macro
3222 form has been defined.
8a8e19a3 3223
048addec
JD
32242002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
3225
3226 * xdisp.c (redisplay_updating_p): New variable.
3227 (init_iterator): Don't free realized faces when
3228 redisplay_updating_p is set.
3229 (redisplay_internal): Set redisplay_updating_p while updating
3230 the display.
3231
32322002-07-23 Richard M. Stallman <rms@gnu.org>
3233
3234 * editfns.c (Fmessage): Treat "" like nil.
3235
32362002-07-23 Kenichi Handa <handa@etl.go.jp>
3237
3238 * xdisp.c (face_before_or_after_it_pos):
3239 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
3240
32412002-07-22 Juanma Barranquero <lektu@terra.es>
3242
3243 * callproc.c (init_callproc) [DOS_NT]:
3244 Initialize Vshared_game_score_directory to nil.
3245 (syms_of_callproc) [DOS_NT]: Likewise.
3246
32472002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
3248
3249 * xdisp.c (display_line): Replace an abort with xassert.
3250
32512002-07-21 Richard M. Stallman <rms@gnu.org>
3252
3253 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
3254 and END_UNCHANGED when setting buffer_unchanged_p.
3255 Use current_matrix_up_to_date_p to decide whether to use
3256 try_cursor_movement.
3257
3258 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
3259
3260 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
3261
3262 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
3263 Set to nil if dir does not exist.
3264 (syms_of_callproc): Init unconditionally and simply.
3265
3266 * buffer.c (Fbuffer_list): Doc fix.
3267
32682002-07-21 Ken Raeburn <raeburn@gnu.org>
3269
3270 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
3271
3272 * buffer.c (mmap_realloc): When shrinking, make sure number of
3273 pages to unmap is rounded towards zero.
3274
3275 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
3276 (XSETINT): Deleted.
3277
3278 * m/att3b.h (XINT): Don't define.
3279 (VALBITS, VALMASK, XTYPE): Deleted.
3280 (DATA_SEG_BITS): Define.
3281 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
3282 ARRAY_MARK_FLAG): Deleted.
3283 (DATA_SEG_BITS): Define.
3284 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
3285 (DATA_SEG_BITS): Define.
3286
32872002-07-20 Richard M. Stallman <rms@gnu.org>
3288
3289 * print.c (print_error_message): New args CONTEXT and CALLER.
3290 Calls changed.
3291
3292 * lisp.h (print_error_message): Declare new args.
3293
3294 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
3295 and CONTEXT to print_error_message, don't print them here.
3296 For a Quit, don't use Vsignaling_function.
3297 Call message_log_maybe_newline.
3298
3299 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
3300
33012002-07-20 Kim F. Storm <storm@cua.dk>
3302
3303 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
3304
33052002-07-19 Ken Raeburn <raeburn@gnu.org>
3306
3307 * bytecode.c (struct byte_stack): Pointers into byte string now
3308 point to const.
3309 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
3310 const.
3311 * charset.h (BCOPY_SHORT): Source pointer now points to const.
3312 * coding.c (encode_eol, detect_coding, detect_eol):
3313 (decode_coding, encode_coding, detect_coding_system):
3314 Source strings now treated as const.
3315 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
3316 modify Lisp string contents.
3317 * coding.h (decode_coding, encode_coding, detect_coding,
3318 detect_eol): Declarations updated.
3319 * composite.c (compose_chars_in_text): Treat Lisp string contents
3320 as const.
3321 * dispnew.c (safe_bcopy): Source pointer now points to const.
3322 * lisp.h (STRING_COPYIN): New macro.
3323 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
3324 (internal_with_output_to_temp_buffer): Declarations updated.
3325 * print.c (temp_output_buffer_setup):
3326 (internal_with_output_to_temp_buffer): Buffer name argument is now
3327 pointer to const.
3328 * sound.c (struct sound_device): Function pointer field "write"
3329 buffer argument now points to const.
3330 (vox_write): Buffer argument points to const.
3331 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
3332 contents as const.
3333 * sysdep.c (emacs_write): Buffer pointer now const.
3334 * term.c (encode_terminal_code): Buffer pointer now const.
3335 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
3336 (x_face_list_fonts, x_update_menu_appearance):
3337 (hash_string_case_insensitive): Treat Lisp string contents as const.
3338
33392002-07-19 Juanma Barranquero <lektu@terra.es>
3340
3341 * fileio.c (Ffile_name_as_directory): Fix argument name in docstring.
3342 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
3343
3344 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
3345
3346 * fileio.c (syms_of_fileio): Likewise.
3347
33482002-07-18 Richard M. Stallman <rms@gnu.org>
3349
3350 * data.c (Fdefalias): Doc fix.
3351
33522002-07-17 Dave Love <fx@gnu.org>
3353
3354 * intervals.h (text_property_stickiness): Use P_.
3355
3356 * ccl.c: Remove `emacs' conditionals.
3357 (ccl_backtrace_table): Fix size spec.
3358 (ccl_driver): Fix type errors.
3359
33602002-07-16 Ken Raeburn <raeburn@gnu.org>
3361
3362 * alloc.c (xstrdup, make_string, make_unibyte_string)
3363 (make_multibyte_string, build_string): String pointer args now
3364 point to const.
3365 * charset.c (find_charset_in_text, c_string_width):
3366 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
3367 * fileio.c (report_file_error):
3368 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
3369 (count_combining_before, count_combining_after, insert_1_both):
3370 (insert, insert_and_inherit, insert_string):
3371 (insert_before_markers, insert_before_markers_and_inherit):
3372 * lread.c (intern, oblookup, hash_string):
3373 * minibuf.c (temp_echo_area_glyphs):
3374 * search.c (fast_c_string_match_ignore_case):
3375 * sysdep.c (emacs_open, set_file_times):
3376 * xfaces.c (xstricmp):
3377 * xdisp.c (store_frame_title, string_char_and_length):
3378 (message_dolog, message2, message2_nolog, set_message): Likewise.
3379 (set_message_1): Cast message string argument to const pointer.
3380 * editfns.c (general_insert_function): Insertion function now
3381 takes pointer to const for input data.
3382 * charset.h (find_charset_in_text, c_string_width):
3383 (parse_str_as_multibyte): Declarations updated.
3384 * dispextern.h (xstricmp): Declaration updated.
3385 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
3386 (count_size_as_multibyte, count_combining_before):
3387 (count_combining_after, insert_1, insert_1_both, message_dolog):
3388 (insert, insert_and_inherit, insert_before_markers)
3389 (insert_before_markers_and_inherit, set_message, message2):
3390 (message2_dolog, build_string, make_string, make_unibyte_string):
3391 (make_multibyte_string, intern, oblookup, report_file_error):
3392 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
3393 (emacs_open, xstrdup): Declarations updated.
3394 * systime.h (set_file_times): Declaration updated.
3395
3396 * charset.c (find_charset_in_text, lisp_string_width): Use const
3397 for pointer to lisp string data.
3398 * charset.h (FETCH_STRING_CHAR_ADVANCE):
3399 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
3400 * coding.c (Ffind_coding_systems_region_interval):
3401 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
3402 (Fmake_directory_internal, Fdelete_directory):
3403 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
3404 * fontset.c (font_family_registry, fs_query_fontset):
3405 (list_fontsets):
3406 * frame.c (Fframe_parameter):
3407 * keyboard.c (cmd_error_internal):
3408 * keymap.c (Fdescribe_buffer_bindings):
3409 * lread.c (complete_filename_p, openp):
3410 * minibuf.c (Fminibuffer_complete_word):
3411 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
3412 (face_before_or_after_it_pos, next_element_from_string):
3413 (get_overlay_arrow_glyph_row, display_mode_element):
3414 (decode_mode_spec_coding):
3415 * xterm.c (same_x_server): Likewise.
3416
3417 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
3418 settings of non-existent fields.
3419
3420 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
3421 copy a lisp value.
3422
3423 * lread.c (Fintern_soft): Use string macros instead of
3424 Lisp_String fields.
3425 * keyboard.c (echo_char, parse_modifiers_uncached):
3426 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
3427 * textprop.c (validate_interval_range, interval_of): Likewise.
3428
3429 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
3430
3431 * charset.h (FETCH_STRING_CHAR_ADVANCE)
3432 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
3433 XSTRING()->size_byte.
3434
3435 * lisp.h (SDATA, SREF): Produce rvalue.
3436 (SSET): New macro.
3437 * alloc.c (make_event_array): Use SSET for storing into a string.
3438 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
3439 a string.
3440 * casefiddle.c (casify_object): Use SSET.
3441 * charset.h (FETCH_STRING_CHAR_ADVANCE)
3442 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
3443 address of string contents.
3444 * data.c (Faref): Use SDATA.
3445 (Faset): Use SDATA, SSET.
3446 * dired.c (directory_files_internal): Use SSET.
3447 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
3448 (Fread_file_name): Use SREF, SSET.
3449 * fns.c (concat): Use SSET.
3450 (concat, Fdelete): Use SDATA.
3451 * insdel.c (insert_from_string_1): Use SDATA.
3452 * keyboard.c (Fevent_convert_list): Use SREF.
3453 * lread.c (Fload): Use SDATA, SSET.
3454 * macfns.c (validate_x_resource_name): Use SSET.
3455 * process.c (status_message): Use SSET.
3456 * search.c (wordify): Use SDATA.
3457 (Freplace_match): Use SREF.
3458 * w32fns.c (validate_x_resource_name): Use SSET.
3459 * xfns.c (validate_x_resource_name): Use SSET.
3460 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
3461
34622002-07-16 Richard M. Stallman <rms@gnu.org>
3463
3464 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
3465
3466 * xdisp.c (reconsider_clip_changes):
3467 Don't test prevent_redisplay_optimizations_p.
3468 (redisplay_internal): Test prevent_redisplay_optimizations_p
3469 along with clip_changed in some cases.
3470 (try_window_id): Likewise.
3471 (redisplay_window): New local var buffer_unchanged_p.
3472
3473 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
3474
3475 * process.c (create_process): Test USG_SUBTTY_WORKS.
3476 (process_send_signal): Clean up handling of GID.
3477 Detect errors in ioctls meant to set GID.
3478
3479 * window.c (temp_output_buffer_show):
3480 Don't set prevent_redisplay_optimizations_p.
3481
34822002-07-15 Juanma Barranquero <lektu@terra.es>
3483
3484 * eval.c (Fdefvaralias): Add docstring argument.
3485
34862002-07-15 Ken Raeburn <raeburn@gnu.org>
3487
3488 * lisp.h (STRING_INTERVALS): Produce rvalue.
3489 (STRING_SET_INTERVALS): New macro.
3490 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
3491 * fns.c (Fstring_as_multibyte): Likewise.
3492 * intervals.c (balance_possible_root_interval, delete_interval)
3493 (create_root_interval, copy_intervals_to_string): Likewise.
3494 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
3495 instead of 0.
3496
34972002-07-14 Ken Raeburn <raeburn@gnu.org>
3498
3499 * lisp.h (STRING_SET_CHARS): New macro.
3500 (SCHARS, SBYTES): Produce rvalues.
3501 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
3502 * fns.c (concat): Likewise.
3503 * lread.c (read_vector): Likewise.
3504
3505 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
3506 (STRING_SET_UNIBYTE): New macro.
3507 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
3508 length of -1) changed to use STRING_SET_UNIBYTE.
3509 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
3510 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
3511 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
3512 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
3513 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
3514 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
3515 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
3516 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
3517 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
3518 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
3519 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
3520 STRING_BYTES or indirection changed to SCHARS, SBYTES,
3521 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
3522 unchanged for now.
3523
35242002-07-13 Kim F. Storm <storm@cua.dk>
3525
3526 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
3527
35282002-07-12 Richard M. Stallman <rms@gnu.org>
3529
3530 * fileio.c (Fwrite_region): Doc fix.
3531
3532 * print.c (print_error_message): Don't handle Vsignaling_function here.
3533
3534 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
3535 (command_loop_1): Avoid certain actions after memory-full error.
3536
3537 * eval.c (Fsignal): Don't call cancel_hourglass.
3538 For a memory-full error, don't call Vsignal_hook_function
3539 and don't set Vsignaling_function.
3540
3541 * process.c (process_send_signal): Add abort call.
3542
35432002-07-11 Markus Rost <rost@math.ohio-state.edu>
3544
3545 * keymap.c (Fkey_binding): Fix typo.
3546
35472002-07-11 Richard M. Stallman <rms@gnu.org>
3548
3549 * alloc.c (Vmemory_full): New variable.
3550 (Vmemory_signal_data): Renamed from memory_signal_data.
3551 Uses changed.
3552 (syms_of_alloc): Defvar them.
3553 (memory_full, buffer_memory_full): Set Vmemory_full.
3554
3555 * lisp.h (Vmemory_full): Add declaration.
3556 (current_column, indented_beyond_p): Change declaration.
3557
3558 * indent.c (last_known_column): Declare as double, not float.
3559 (current_column, current_column_1, string_display_width)
3560 (position_indentation): Return `double'.
3561 (indented_beyond_p): Arg `column' is `double'. Callers changed.
3562
3563 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
3564 (back_to_previous_visible_line_start)
3565 (reseat_at_next_visible_line_start, next_element_from_buffer):
3566 Use `double', not `float', when calling indented_beyond_p.
3567
3568 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
3569
3570 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
3571
35722002-07-11 Juanma Barranquero <lektu@terra.es>
3573
3574 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
3575 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
3576 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
3577 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
3578 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
3579 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
3580
35812002-07-10 Juanma Barranquero <lektu@terra.es>
3582
3583 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE. All callers
3584 changed.
3585
35862002-07-09 Stefan Monnier <monnier@cs.yale.edu>
3587
3588 * data.c (Fdefalias): Add an optional `docstring' argument.
3589 (set_internal, Fsetq_default): Use XCAR/XCDR.
3590
3591 * composite.c (HASH_VALUE, HASH_KEY):
3592 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
3593
35942002-07-09 Kenichi Handa <handa@etl.go.jp>
3595
3596 * callproc.c (Fcall_process): Fix previous change.
3597
35982002-07-07 Stefan Monnier <monnier@cs.yale.edu>
3599
3600 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
3601 Add support for hash-tables.
3602 (Ftry_completion): Return t even if the string appears multiple times.
3603
3604 * fns.c (Fnconc): Use XCDR.
3605 (Fprovide): Use CONSP and XCDR.
3606 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
3607 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
3608 (Fmake_hash_table): Accept `:size nil'.
3609 (Fmakehash): Delete: moved to subr.el.
3610 (syms_of_fns): Don't defsubr makehash.
3611
3612 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
3613 (HASH_TABLE_SIZE): Move from fns.c.
3614
36152002-07-07 Richard M. Stallman <rms@gnu.org>
3616
3617 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
3618 Instead just return 0 when there is something to be done.
3619 (try_scrolling): If make_cursor_line_fully_visible returns 0,
3620 retry scrolling as if cursor were off the bottom.
3621 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
3622 return CURSOR_MOVEMENT_MUST_SCROLL.
3623 (redisplay_window): If make_cursor_line_fully_visible returns 0,
3624 go to try_to_scroll.
3625
3626 * buffer.c (Fbuffer_local_value): Store current value into its binding
3627 so we get the up-to-date value for the binding that is loaded.
3628
3629 * eval.c (Fdefmacro): Doc fix.
3630
36312002-07-05 Dave Love <fx@gnu.org>
3632
3633 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
3634 correctly.
3635
3636 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
3637 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
3638 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
3639 CCL_LookupCharConstTbl.
3640 (syms_of_ccl): Defvar translation-hash-table-vector.
3641
36422002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3643
3644 * xdisp.c: Remove unused variable `face'.
3645
36462002-07-04 Juanma Barranquero <lektu@terra.es>
3647
3648 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
3649 obsolescence information.
3650
36512002-07-03 Andrew Choi <akochoi@shaw.ca>
3652
3653 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
3654 pattern. Search cache first.
3655 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
3656 for Japanese font.
3657 (XLoadQueryFont): Use it.
3658
36592002-07-02 Richard M. Stallman <rms@gnu.org>
3660
3661 * keymap.c (Fdefine_key): Doc fix.
3662
3663 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
3664
36652002-07-02 Juanma Barranquero <lektu@terra.es>
3666
3667 * keymap.c (syms_of_keymap): Fix typo.
3668
36692002-07-01 Andrew Choi <akochoi@shaw.ca>
3670
3671 * s/darwin.h: Define POSIX_SIGNALS.
3672
3673 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
3674 and FSRefMakePath to convert FSSpec returned with Apple Event to
3675 Posix pathname.
3676 (mac_initialize) [TARGET_API_MAC_CARBON]:
3677 Call init_required_apple_events and disable the `Quit' menu item
3678 provided automatically by the Carbon Toolbox.
3679
36802002-07-01 Dave Love <fx@gnu.org>
3681
3682 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
3683 for K&R.
3684
3685 * xterm.c: Fix prototype for K&R.
3686
3687 * term.c (costs_set): Declare static, non-initialized for pcc.
3688
36892002-07-01 Richard M. Stallman <rms@gnu.org>
3690
3691 * keyboard.c (timer_last_idleness_start_time): New variable.
3692 (timer_start_idle): Set that.
3693 (read_key_sequence): Use that to reset timer_idleness_start_time
3694 to previous value.
3695
3696 * window.c (Frecenter): With arg, set optional_new_start.
3697
3698 * xdisp.c (redisplay_internal): Make optional_new_start really work.
3699
3700 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
3701 buffer for completion.
3702
37032002-06-29 Ken Raeburn <raeburn@gnu.org>
3704
3705 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
3706
37072002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3708
3709 * keyboard.c (readable_filtered_events): New function that filters
3710 FOCUS_IN_EVENT depending on parameter.
3711 (readable_events): Calls readable_filtered_events, not filtering
3712 FOCUS_IN_EVENT.
3713 (get_filtered_input_pending): New function, filtering parameter passed
3714 to readable_filtered_events.
3715 (get_input_pending): Calls get_filtered_input_pending, not filtering
3716 FOCUS_IN_EVENT.
3717 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
3718 FOCUS_IN_EVENT.
3719
3720 * xterm.h (struct x_output): Add focus_state.
3721
3722 * xterm.c (x_focus_changed): New function.
3723 (x_detect_focus_change): New function.
3724 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
3725 EnterNotify and LeaveNotify to track X focus changes.
3726
37272002-06-28 Andreas Schwab <schwab@suse.de>
3728
3729 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
3730
37312002-06-27 Kim F. Storm <storm@cua.dk>
3732
3733 * xdisp.c: (mode_line_string_list, mode_line_string_face)
3734 (mode_line_string_face_prop): New variables.
3735 (store_mode_line_string): New function.
3736 (display_mode_element): Use store_mode_line_string to
3737 add mode-line string elements to mode_line_string_list
3738 when mode_line_string_list is non-nil.
3739 (Fformat_mode_line): Now returns propertized string by
3740 default. New arg NO-PROPS to ignore properties.
3741 (decode_mode_spec): Only add two dashes for %- in propertized
3742 mode-line string.
3743 (syms_of_xdisp): Init and staticpro mode_line_string_list.
3744
37452002-06-27 Stefan Monnier <monnier@cs.yale.edu>
3746
3747 * minibuf.c (minibuffer_completion_contents): Add return type.
3748
37492002-06-27 Juanma Barranquero <lektu@terra.es>
3750
3751 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
3752
37532002-06-26 Juanma Barranquero <lektu@terra.es>
3754
3755 * fileio.c (read_file_name_cleanup): Add missing return.
3756
37572002-06-26 Richard M. Stallman <rms@gnu.org>
3758
3759 * window.c (Frecenter): Don't set force_start flag.
3760
3761 * minibuf.c (do_completion, Fminibuffer_complete_word)
3762 (Fminibuffer_completion_help): Complete just the text before point.
3763 (minibuffer_completion_contents): New function.
3764
3765 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
3766
3767 * frame.c (frames_bury_buffer): Function deleted.
3768
37692002-06-25 Miles Bader <miles@gnu.org>
3770
3771 * callint.c (Fcall_interactively): When checking to see if doprnt hit
3772 the end of callint_message, allow for a terminating '\0'.
3773
37742002-06-24 Juanma Barranquero <lektu@terra.es>
3775
3776 * w32select.c: Include composite.h
3777
3778 * w16select.c: Likewise.
3779
37802002-06-24 Kenichi Handa <handa@etl.go.jp>
3781
3782 * callproc.c (Fcall_process): If code detection is necessary,
3783 call detect_coding directly here.
3784
3785 * coding.c (detect_eol): Preserve coding->cmp_data.
3786
3787 * w16select.c (Fw16_get_clipboard_data):
3788 * w32fns.c (w32_to_x_font):
3789 * w32select.c (Fw32_get_clipboard_data):
3790 * xselect.c (selection_data_to_lisp_data):
3791 * xterm.c (XTread_socket): Disable composition handling.
3792
37932002-06-24 Stefan Monnier <monnier@cs.yale.edu>
3794
3795 * print.c (temp_output_buffer_setup): Kill all local variables.
3796
37972002-06-22 Stefan Monnier <monnier@cs.yale.edu>
3798
3799 * lread.c (Fread): Remove redundant and imprecise declaration.
3800
3801 * xfns.c (check_x_display_info): Use check_x_frame.
3802
3803 * .gdbinit (xprintsym): Use the new `xname' field.
3804 (xsymbol): Use it.
3805
38062002-06-22 Jason Rumney <jasonr@gnu.org>
3807
3808 * w32fns.c (file_dialog_callback): New function.
3809 (Fx_file_dialog): Allow selecting directories as well as files.
3810
38112002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3812
3813 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
3814 OpenBSD. Add support for mipseb-*-netbsd* machines.
3815
38162002-06-17 Andrew Choi <akochoi@shaw.ca>
3817
3818 * macterm.c (mac_scroll_area): Set foreground and backcolor to
3819 black and white before scrolling. Restore frame background and
3820 foreground color after scrolling.
3821 (do_window_update): Call XClearWindow before calling expose_frame.
3822 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
3823 FRAME_FOREGROUND_PIXEL of frame.
3824
3825 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
3826 test Mac command key as <ALT> key.
3827
38282002-06-17 Stefan Monnier <monnier@cs.yale.edu>
3829
3830 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
3831
3832 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
3833 Lookup keys in function-key-map immediately so that key-translation-map
3834 can be applied earlier.
3835 Remove function_key_possible and key_translation_possible, replaced
3836 by checking `keytran_start < t'.
3837
3838 * .gdbinit (xsymbol): Use the new `xname' field.
3839
38402002-06-17 Andrew Choi <akochoi@shaw.ca>
3841
3842 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
3843 test Mac command key as <ALT> key.
3844
3845 * mac.c (do_applescript): Call initialize_applescript if necessary
3846 when first called. Dispose of result_desc only when there is no error.
3847 (Fdo_applescript): Use %d format specifier instead of %ld.
3848
38492002-06-16 Andrew Choi <akochoi@shaw.ca>
3850
3851 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
3852 of FrontWindow for cases keyDown and autoKey.
3853
3854 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
3855 Vdefault_fontset to Monaco with mac-roman coding.
3856
3857 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
3858 init_process before and after inclusion of Carbon/Carbon.h, resp.
3859
3860 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
3861 cursor_gc.
3862 (add_font_name_table_entry): New function.
3863 (init_font_name_table): Use add_font_name_table_entry; add italic,
3864 bold, and bold-italic entries for truetype fonts.
3865
3866 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
3867 for Mac too.
3868 (try_font_list) [MAC_OS]: If no font matches given registry, try
3869 fonts with any registry matching face_family.
3870 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
3871
3872 * s/darwin.h: If autoconf detects the Ncurses library, define
3873 LIBS_TERMCAP to -lncurses to use it.
3874
38752002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
3876
3877 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
3878
38792002-06-15 Richard M. Stallman <rms@gnu.org>
3880
3881 * window.c (Fset_window_configuration): Explicitly preserve
3882 the point value that new_current_buffer had at the start.
3883
38842002-06-14 Juanma Barranquero <lektu@terra.es>
3885
3886 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
3887 Fix typos.
3888
38892002-06-14 Kim F. Storm <storm@cua.dk>
3890
3891 * insdel.c (insert_1_both, insert_from_string_1)
3892 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
3893 insert happened in the end_unchanged region. Otherwise, the
3894 redisplay may be confused and duplicate the last line in the
3895 buffer [seen after save-buffer when require-final-newline==t].
3896
38972002-06-13 Jason Rumney <jasonr@gnu.org>
3898
3899 * w32.c (init_environment): Remove EMACSLOCKDIR.
3900 (stat): Swap _S_IFDIR and _S_IFREG.
3901
39022002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3903
3904 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
3905 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
3906 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
3907 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
3908 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
3909 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
3910 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
3911 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
3912 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
3913 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
3914 SELECTION_REQUEST_EVENT, selection_clear_event to
3915 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
3916 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
3917 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
3918 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
3919 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
3920 no_event to NO_EVENT.
3921
39222002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3923
3924 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
3925
39262002-06-12 Stefan Monnier <monnier@cs.yale.edu>
3927
3928 * intervals.c (textget): Don't forget to `return'.
3929 (lookup_char_property): Use XCAR/XCDR.
3930
39312002-06-12 Juanma Barranquero <lektu@terra.es>
3932
3933 * xdisp.c (Fformat_mode_line): Fix typo.
3934
39352002-06-12 Kim F. Storm <storm@cua.dk>
3936
3937 * xdisp.c (Fformat_mode_line): New function.
3938 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
3939 (store_frame_title_char, store_frame_title): Use unconditionally.
3940 (init_xdisp): Defsubr Fformat_mode_line.
3941 Initialize frame_title_buf etc. unconditionally.
3942
39432002-06-11 Stefan Monnier <monnier@cs.yale.edu>
3944
3945 * keyboard.c (read_key_sequence):
3946 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
3947 things through those maps after downcasing events.
3948 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
3949 applies after function-key-map.
3950 Make sure that keytran can be done in the middle in the sequence.
3951 Be careful not to throw away events past the one we downcase.
3952
3953 * lread.c (read_integer): Remove unused var `tem'.
3954 (read1): Fix int/Lisp_Object mixup.
3955
3956 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
3957
39582002-06-11 Richard M. Stallman <rms@gnu.org>
3959
3960 * keyboard.c (readable_events): Ignore any number of
3961 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
3962
39632002-06-09 Miles Bader <miles@gnu.org>
3964
3965 * xfaces.c (Ftty_supports_face_attributes_p): New function.
3966 (parse_rgb_list, tty_lookup_color): New functions.
3967 (tty_defined_color): Use `tty_lookup_color' to do all the work.
3968 (color_distance, Fcolor_distance): New functions.
3969 (TTY_SAME_COLOR_THRESHOLD): New macro.
3970 (Qtty_color_standard_values): New variable.
3971 (syms_of_xfaces): Initialize new vars & functions.
3972
39732002-06-08 Colin Walters <walters@verbum.org>
3974
3975 * textprop.c (Vchar_property_alias_alist): New variable.
3976 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
3977
3978 * intervals.c (lookup_char_property): New function for looking up
3979 overlay and text properties, created from textget.
3980 (textget): Use it.
3981
3982 * intervals.h (lookup_char_property): Declare.
3983 (Vchar_property_alias_alist): Declare.
3984
3985 * buffer.c (Foverlay_get): Use lookup_char_property.
3986
39872002-06-07 Sam Steingold <sds@gnu.org>
3988
3989 * xselect.c (lisp_data_to_selection_data): Fix last change:
3990 *data_ret is not a Lisp string, while unibyte_string is.
3991
39922002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
3993
3994 * xselect.c (lisp_data_to_selection_data): Fix last change:
3995 set size_ret.
3996
39972002-06-07 Andreas Schwab <schwab@suse.de>
3998
3999 * m/amdx86-64.h: New file.
4000
40012002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
4002
4003 * fns.c (Fstring_make_unibyte): Doc fix.
4004
4005 * xselect.c (lisp_data_to_selection_data): If the requested type
4006 is STRING, call string_make_unibyte to encode the selected text
4007 as a string.
4008
4009 * window.c (Fset_window_hscroll): Doc fix.
4010
40112002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4012
4013 * fileio.c (choose_write_coding_system):
4014 Call select-safe-coding-system properly.
4015
40162002-06-03 Richard M. Stallman <rms@gnu.org>
4017
4018 * xdisp.c (message_with_string): Error if STRING is not a string.
4019
4020 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
4021
4022 * fileio.c (choose_write_coding_system): Pass FILE arg to
4023 Vselect_safe_coding_system_function.
4024
40252002-06-03 Ken Raeburn <raeburn@gnu.org>
4026
4027 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
4028
40292002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
4030
4031 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
4032 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
4033 * keymap.c (describe_command): Likewise.
4034 * minibuf.c (read_minibuf): Likewise.
4035
4036 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
4037 Cast `current_column' return value to int.
4038 (back_to_previous_visible_line_start)
4039 (reseat_at_next_visible_line_start, next_element_from_buffer):
4040 Cast `indented_beyond_p' 3rd arg to float.
4041
4042 * indent.c (last_known_column): Now a float.
4043 (current_column_1, position_indentation, current_column)
4044 (string_display_width): Return float.
4045 (Fcurrent_column): Cast `current_column' return value to int.
4046 (Fcurrent_indentation): Cast `position_indentation' retval to int.
4047 (indented_beyond_p): Third arg now a float.
4048 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
4049
4050 * lisp.h (current_column): Now returns float.
4051 (indented_beyond_p): 3rd arg now a float.
4052
40532002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
4054
4055 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
4056 is Qcompound_text_with_extensions.
4057
4058 * xselect.c (lisp_data_to_selection_data): Always set selection
4059 type as string if x_encode_text returns streingp non-NULL.
4060
4061 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
4062
40632002-05-30 Richard M. Stallman <rms@gnu.org>
4064
4065 * window.c (Fset_window_configuration): Correct the handling
4066 of point in current buffer, to work with multiple windows.
4067
40682002-05-29 Colin Walters <walters@verbum.org>
4069
4070 * lread.c (Fread_from_string): Don't depend on order of evaluation
4071 for C function parameters.
4072
40732002-05-28 Richard M. Stallman <rms@gnu.org>
4074
4075 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
4076 way for blinked-off state and for a nonselected window.
4077
4078 * window.c (window_scroll_pixel_based): Don't call Fbolp;
4079 instead, see if the new start pos is at beginning of line.
4080
4081 * fileio.c (Fwrite_region): If START is a string, don't
4082 make any annotations.
4083
4084 * eval.c (syms_of_eval): Doc fix.
4085
40862002-05-28 Colin Walters <walters@debian.org>
4087
4088 * emacs.c (USAGE1): Add --no-splash.
4089 (standard_args): Ditto.
4090
40912002-05-28 Colin Walters <walters@gnu.org>
4092
4093 * lread.c (readchar_count): New variable.
4094 (readchar): Increment it.
4095 (unreadchar): Decrement it.
4096 (read_multibyte): Decrement it.
4097 (Vread_with_symbol_positions): New variable.
4098 (Vread_symbol_positions_list): New variable.
4099 (read_internal_start): New function, created from Fread and
4100 Fread_from_string. Handle Vread_symbol_positions_list and
4101 Vread_with_symbol_positions.
4102 (readevalloop, Fread, Fread_from_string): Use it.
4103 (read1): Use readchar_count to add symbol positions to
4104 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
4105 (syms_of_lread): DEFVAR_LISP and initialize them.
4106
4107 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
4108 (substitute_object_recurse, substitute_object_in_subtree)
4109 (substitute_in_interval): Prototype.
4110 (read_multibyte): Return c if it's less than zero.
4111
41122002-05-28 Kim F. Storm <storm@cua.dk>
4113
4114 * fileio.c (Fread_file_name_internal): Added brute-force
4115 speed up for using predicate file-directory-p.
4116
41172002-05-28 Kim F. Storm <storm@cua.dk>
4118
4119 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
4120 New variables.
4121 (syms_of_fileio): DEFVAR_LISP them.
4122 (read_file_name_cleanup): New unwind function.
4123 (Fread_file_name_internal): Only return completions satifying
4124 Vread_file_name_predicate. Temporarily unwind protect and rebind
4125 default-directory while checking completions against the predicate.
4126 (Fread_file_name): Added PREDICATE argument. Specbind it to
4127 Vread_file_name_predicate during completion.
4128 Call Vread_file_name_function to read the file name if non-nil.
4129
4130 * lisp.h (Fread_file_name): Now has 6 args.
4131
4132 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
4133 predicate for Fread_file_name when reading directory name.
4134 Supply Qnil for predicate in other calls to Fread_file_name.
4135
41362002-05-26 Miles Bader <miles@gnu.org>
4137
4138 * term.c (tty_capable_p): New function.
4139 * dispextern.h (tty_capable_p): New function declaration.
4140 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
4141 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
4142
41432002-05-23 Stefan Monnier <monnier@cs.yale.edu>
4144
4145 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
4146 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
4147 (Vwrite_region_annotate_functions): Docstring fix.
4148
41492002-05-23 Kim F. Storm <storm@cua.dk>
4150
4151 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
4152 phys_cursor's hpos is overwritten. This is still not completely
4153 correct, as it doesn't really make sense to use hpos at all to
4154 get the cursor glyph (as that is relative to the width of the
4155 characters on the line, which may have changed during the update).
4156
41572002-05-22 Jason Rumney <jasonr@gnu.org>
4158
4159 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
4160 Lisp_Object.
4161 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
4162 Use modified enumfont_t struct.
4163
4164 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
4165
4166 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
4167 Handle the `hbar' cursor type.
4168 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
4169
4170 * w32fns.c (Qhbar): New variable.
4171 (x_specified_cursor_type): Use it.
4172
41732002-05-21 Ken Raeburn <raeburn@gnu.org>
4174
4175 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
4176 now, when the address is needed.
4177
41782002-05-21 Colin Walters <walters@gnu.org>
4179
4180 * Makefile.in (shortlisp): Add font-core.el.
4181
41822002-05-20 Richard M. Stallman <rms@gnu.org>
4183
4184 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
4185
4186 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
4187 equivalent key bindings here.
4188
41892002-05-20 Ken Raeburn <raeburn@gnu.org>
4190
4191 Change symbol structure to contain a lisp object for the symbol
4192 name:
4193 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
4194 object field named "xname".
4195 (SYMBOL_NAME): New macro.
4196 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
4197 name field.
4198 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
4199 (mark_object, gc_sweep): Use symbol xname field and XSTRING
4200 instead of name field.
4201 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
4202 SYMBOL_NAME instead of XSYMBOL and name field.
4203 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
4204 instead of XSYMBOL and name field.
4205 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
4206 and SYMBOL_NAME instead of XSYMBOL and name field.
4207 * coding.c (Fread_coding_system, code_convert_region1)
4208 (code_convert_string1, code_convert_string_norecord)
4209 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
4210 XSYMBOL and name field.
4211 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
4212 (Fmake_variable_buffer_local, Fmake_local_variable)
4213 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
4214 of XSYMBOL and name field.
4215 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
4216 XSYMBOL and name field.
4217 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
4218 instead of XSYMBOL and name field.
4219 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
4220 XSYMBOL and name field.
4221 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
4222 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
4223 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
4224 instead of XSYMBOL and name field.
4225 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
4226 (parse_modifiers, apply_modifiers, Fevent_convert_list)
4227 (parse_solitary_modifier, Fexecute_extended_command):
4228 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
4229 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
4230 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
4231 of XSYMBOL and name field.
4232 (describe_command, describe_translation): Use SYMBOL_NAME and
4233 assignment instead of XSYMBOL and name field and XSETSTRING.
4234 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
4235 instead of XSYMBOL and name field.
4236 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
4237 name field and XSETSTRING.
4238 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
4239 of XSYMBOL and name field.
4240 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
4241 assignment instead of XSYMBOL and name field and XSETSTRING.
4242 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
4243 XSTRING instead of XSYMBOL and name field.
4244 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
4245 and XSTRING instead of XSYMBOL and name field.
4246 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
4247 and XSTRING instead of XSYMBOL and name field.
4248 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
4249 XSTRING instead of XSYMBOL and name field.
4250 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
4251 of XSYMBOL and name field.
4252 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
4253 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
4254
42552002-05-19 Ken Raeburn <raeburn@gnu.org>
4256
4257 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
4258 and XCDR real rvalues in most configurations.
4259
4260 * buffer.c (fix_overlays_in_range, fix_overlays_before):
4261 Don't take the address of the cdr part of a cons cell; instead, track
4262 the parent cell and call XSETCDR, or set the variable for the head
4263 of the list if we haven't started down the list yet.
4264
42652002-05-19 Richard M. Stallman <rms@gnu.org>
4266
4267 * doc.c (reread_doc_file): Don't ask for confirmation.
4268
42692002-05-18 Jason Rumney <jasonr@gnu.org>
4270
4271 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
4272 (xbm_load_image): Use it.
4273 (xbm_load): Ditto.
4274 (xbm_read_bitmap_data): Reverted to xfns.c version.
4275 From David Ponce <david@dponce.com>.
4276
42772002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
4278
4279 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
4280 2.02 and later.
4281
42822002-05-16 Juanma Barranquero <lektu@terra.es>
4283
4284 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
4285
42862002-05-15 Stefan Monnier <monnier@cs.yale.edu>
4287
4288 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
4289 meaningful test.
4290 (read_char_minibuf_menu_prompt): Fix typo.
4291
42922002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
4293
4294 * eval.c (Fcommandp): Doc fix.
4295
42962002-05-13 Stefan Monnier <monnier@cs.yale.edu>
4297
4298 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
4299 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
4300 (Fset_keymap_parent): Gcpro a bit more.
4301 (access_keymap): Gcpro around meta_map call and around the main loop.
4302 (get_keyelt): Gcpro when following indirect references.
4303 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
4304 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
4305 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
4306 Remove useless ad-hoc remap code.
4307
43082002-05-13 Richard M. Stallman <rms@gnu.org>
4309
4310 * search.c (search_buffer): Give up boyer moore search if inverse
4311 translation change charset_base.
4312
43132002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
4314
4315 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
4316 characters is carried over from the previous block of text, adjust
4317 coding->produced to account for the extra character.
4318
43192002-05-11 Andreas Schwab <schwab@suse.de>
4320
4321 * coding.c (intersection): Keep the elements of the returned list
4322 in the same order as in the first list.
4323
43242002-05-11 Kim F. Storm <storm@cua.dk>
4325
4326 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
4327 only update cmm_size if realloc actually succeeds.
4328 Testing with initial size of 2 elements revealed that using
4329 realloc on GNU/Linux would cause a random trap in xmalloc
4330 later on, so I rewrote the code to use malloc/bcopy/free instead
4331 of realloc.
4332
43332002-05-10 Jason Rumney <jasonr@gnu.org>
4334
4335 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
4336
43372002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
4338
4339 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
4340 parens, to ensure correct evaluation order.
4341
43422002-05-10 Kim F. Storm <storm@cua.dk>
4343
4344 * keymap.c (Vemulation_mode_map_alists): New variable.
4345 (syms_of_keymap): DEFVAR_LISP it.
4346 (current_minor_maps): Process keymap alists in that list before
4347 minor-mode-overriding-map-alist and minor-mode-map-alist.
4348
43492002-05-09 Richard M. Stallman <rms@gnu.org>
4350
4351 * search.c (Freplace_match): Doc fix.
4352
43532002-05-09 Kim F. Storm <storm@cua.dk>
4354
4355 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
4356 Enlarge cursor rectangle drawn around image with non-zero relief.
4357
4358 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
4359 Enlarge cursor rectangle drawn around image with non-zero relief.
4360
4361 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
4362 Enlarge cursor rectangle drawn around image with non-zero relief.
4363
43642002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
4365
4366 * xselect.c (lisp_data_to_selection_data): Don't set selection
4367 type if comes from the Lisp object's car. If the selection
4368 contains a pure ASCII text, always return QSTRING as its type.
4369
43702002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4371
4372 * mac.c (mac-cut-function): Doc fix.
4373
43742002-05-05 Richard M. Stallman <rms@gnu.org>
4375
4376 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
4377
43782002-05-04 Jason Rumney <jasonr@gnu.org>
4379
4380 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
4381 for event-click-count.
4382
4383 * process.c (init_process): Only add server subfeature if we can
4384 use non-blocking I/O.
4385
43862002-05-04 Andrew Choi <akochoi@shaw.ca>
4387
4388 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
4389 repeatedly.
4390
43912002-05-03 Jason Rumney <jasonr@gnu.org>
4392
4393 * process.c (Fmake_network_process): Only support server sockets
4394 when we can make them non-blocking.
4395
4396 * s/ms-w32.h (HAVE_SELECT): Define.
4397
4398 * w32.h (FILE_NDELAY): New flag.
4399
4400 * w32.c (sys_getpeername, fcntl): New functions.
4401 (_sys_read_ahead): Temporarily block on non-blocking sockets.
4402
4403 * w32proc.c: include sys/file.h.
4404
44052002-05-03 Colin Walters <walters@verbum.org>
4406
4407 * callproc.c (Vgame_score_directory): Renamed to
4408 Vshared_game_score_directory.
4409
44102002-04-30 Richard M. Stallman <rms@gnu.org>
4411
4412 * s/gnu.h [emacs]: Include stdio.h.
4413 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
4414
4415 * eval.c (do_autoload): Error if called while preparing to dump.
4416
4417 * fns.c (Frequire): Error if need to load while preparing to dump.
4418
44192002-04-28 Colin Walters <walters@verbum.org>
4420
4421 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
4422 Default to "~/.emacs.d/games".
4423
44242002-04-29 Stefan Monnier <monnier@cs.yale.edu>
4425
4426 * lread.c (openp): Change arg exec_only to predicate.
4427 (build_load_history): Use XCAR/XCDR.
4428 (Flocate_file_internal): New fun.
4429 (syms_of_lread): Defsubr it.
4430 (Fload): Update call to openp.
4431
4432 * lisp.h (openp): Update prototype.
4433
4434 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
4435 * w32proc.c (sys_spawnve):
4436 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
4437 * w32.c (check_windows_init_file):
4438 * sound.c (Fplay_sound_internal):
4439 * process.c (Fstart_process):
4440 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
4441 * mac.c (run_mac_command):
4442 * emacs.c (init_cmdargs):
4443 * callproc.c (Fcall_process): Update call to openp.
4444
4445 * textprop.c (remove_properties): Don't use XCAR without CONSP.
4446
4447 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
4448
44492002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4450
4451 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
4452 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
4453
44542002-04-28 Richard M. Stallman <rms@gnu.org>
4455
4456 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
4457
4458 * eval.c (Fcommandp): New arg for_call_interactively.
4459 * lisp.h (Fcommandp): Declare new arg.
4460
44612002-04-28 Jason Rumney <jasonr@gnu.org>
4462
4463 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
4464
4465 * w32.c (stat, fstat): Use file index information to generate
4466 inodes for directories where available.
4467
44682002-04-26 Andrew Choi <akochoi@shaw.ca>
4469
4470 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
4471 [HAVE_CARBON]: Include Mac object files.
4472
4473 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
4474 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
4475 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
4476 MAC_OSX, and MAC_OS instead of macintosh.
4477
4478 * editfns.c [MAC_OS8]: Include stdio.h.
4479
4480 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
4481
4482 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
4483 Apple Monaco.
4484
4485 * process.c: Declare QCfamily and QCfilter as extern.
4486 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
4487 calling select.
4488
4489 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
4490
4491 * tparam.c [MAC_OSX]: Don't define BC and UP.
4492
4493 * config.in [HAVE_CARBON]: Add.
4494
4495 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
4496 Move here from mac/src and mac/inc.
4497
4498 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
4499
45002002-04-26 Gerd Moellmann <gerd@gnu.org>
4501
4502 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
4503 Compute phys_cursor_width from the x position returned
4504 by x_draw_glyhs, which is cheaper.
4505 (x_display_and_set_cursor): Compute the buffer-local value
4506 of `cursor-in-non-selected-windows' only when needed.
4507
45082002-04-25 Gerd Moellmann <gerd@gnu.org>
4509
4510 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
4511 cursor on a stretch glyph has a width that depends on
4512 x_stretch_cursor_p.
4513
45142002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4515
4516 * abbrev.c (abbrev-start-location): Doc fix.
4517
4518 * indent.c (Fvertical_motion): Fix last change.
4519
45202002-04-25 Gerd Moellmann <gerd@gnu.org>
4521
4522 * indent.c (Fvertical_motion): Move to the start of the line
4523 containing PT before moving up or down.
4524
45252002-04-24 Gerd Moellmann <gerd@gnu.org>
4526
4527 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
4528 case of writing a whole row, more or less analogous to the case of
4529 writing only parts of a row.
4530
4531 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
4532 0 for NO_CURSOR.
4533
4534 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
4535
45362002-04-23 Colin Walters <walters@verbum.org>
4537
4538 * buffer.c (syms_of_buffer): Doc fix.
4539
45402002-04-23 Gerd Moellmann <gerd@gnu.org>
4541
4542 * xterm.c (notice_overwritten_cursor): Handle the special case
4543 of the cursor being in the first blank non-text line at the
4544 end of a window.
4545
4546 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
4547 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
4548 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
4549 bar cursors only, to make phys_cursor_width contain what its name
4550 suggests.
4551 (notice_overwritten_cursor): Consider the cursor image erased if
4552 the output area intersects the cursor image in y-direction.
4553
45542002-04-23 Simon Marshall <simon@gnu.org>
4555
4556 * xfns.c (x_set_mouse_color): Change default for cross_cursor
4557 to XC_hand2.
4558
45592002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4560
4561 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
4562
45632002-04-22 Kim F. Storm <storm@cua.dk>
4564
4565 * textprop.c (remove_properties): Fixed trap for malformed plist.
4566
45672002-04-22 Richard M. Stallman <rms@gnu.org>
4568
4569 * cmds.c (Fend_of_line): Handle intangible text in mid line.
4570
4571 * window.c (make_window): Initialize height_fixed_p,
4572 last_cursor_off_p, and p->cursor_off_p slots.
4573
45742002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4575
4576 * fns.c (use-dialog-box): Doc fix.
4577
45782002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4579
4580 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
4581 variables `row', `i' and `area'.
4582 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
4583 toolkit library.
4584
45852002-04-19 Stefan Monnier <monnier@cs.yale.edu>
4586
4587 * xfaces.c (clear_font_table): Don't free the default font of
4588 a frame even if it's on another display.
4589 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
4590 that could be Qt.
4591
45922002-04-19 Juanma Barranquero <lektu@terra.es>
4593
4594 * indent.c (Fmove_to_column): Remove unused local variable
4595 `next_boundary_byte'.
4596 (current_column_1): Likewise.
4597
45982002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
4599
4600 * msdos.c (Qhbar): New variable.
4601 (syms_of_msdos): Intern and staticpro it.
4602 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
4603 cursor type.
4604
46052002-04-19 Dave Lambert <dlambert@acm.org>
4606
4607 Theses change implement an underscore-like (`hbar') cursor.
4608
4609 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
4610
4611 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
4612 Handle the `hbar' cursor type.
4613 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
4614
4615 * xfns.c (Qhbar): New variable.
4616 (syms_of_xfns): Intern and staticpro it.
4617 (x_specified_cursor_type): Handle `hbar' cursor.
4618
4619 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
4620 not defined.
4621
46222002-04-18 Richard M. Stallman <rms@gnu.org>
4623
4624 * textprop.c (remove_properties): New arg LIST allows scanning
4625 either a list or a plist.
4626 (interval_has_some_properties_list): New function, like
4627 interval_has_some_properties using list instead of plist.
4628 All callers changed.
4629 (Fremove_list_of_text_properties): New function.
4630 (syms_of_textprop): Defsubr it.
4631
46322002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
4633
4634 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
4635
46362002-04-17 Juanma Barranquero <lektu@terra.es>
4637
4638 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
4639
46402002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
4641
4642 * window.c (coordinates_in_window): Don't report on margin area
4643 if its width is zero.
4644
46452002-04-16 Jason Rumney <jasonr@gnu.org>
4646
4647 * w32fns.c (Fx_file_dialog): Decode file name before using.
4648
4649 * w32term.c (construct_drag_n_drop): Likewise.
4650
46512002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
4652
4653 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
4654 store load-history in pure space.
4655
4656 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
4657
46582002-04-16 Stefan Monnier <monnier@cs.yale.edu>
4659
4660 * xterm.c (Qlatin_1, Qutf_8): New vars.
4661 (syms_of_xterm): Initialize them.
4662 (XTread_socket): Eliminate incorrect optimization that tried to avoid
4663 decoding the output of X*LookupString.
4664 Always use latin-1 to decode the output of XLookupString.
4665 Try Xutf8LookupString if XmbLookupString failed.
4666
4667 * region-cache.c (new_region_cache): Use BEG.
4668
46692002-04-16 Gerd Moellmann <gerd@gnu.org>
4670
4671 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
4672 configuration files.
4673 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
4674 returns 0.
4675
46762002-04-15 Andreas Schwab <schwab@suse.de>
4677
4678 * config.in: Regenerated using autoheader.
4679
4680 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
4681 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
4682 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
4683 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
4684 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
4685 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
4686 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
4687 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
4688 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
4689 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
4690 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
4691 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
4692 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
4693 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
4694 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
4695 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
4696 STACK_DIRECTION, now set by autoconf.
4697
46982002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4699
4700 * dispnew.c (marginal_area_string): Sort arguments.
4701
4702 * dispextern.h (marginal_area_string): Add prototype.
4703
47042002-04-13 Richard M. Stallman <rms@gnu.org>
4705
4706 * fileio.c (Finsert_file_contents):
4707 Don't call temp_output_buffer_setup--do just part, by hand.
4708
4709 * coding.c (run_pre_post_conversion_on_str):
4710 Don't call temp_output_buffer_setup--do just part, by hand.
4711
4712 * keyboard.c (command_loop_1): Don't call start_hourglass
4713 or cancel_hourglass when executing a macro.
4714
4715 * marker.c (count_markers): New function.
4716
4717 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
4718 grow without limit. Move recently used elements to the front.
4719
47202002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
4721
4722 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
4723
47242002-04-12 Gerd Moellmann <gerd@gnu.org>
4725
4726 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
4727 rows marginal areas.
4728 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
4729 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
4730
4731 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
4732
47332002-04-12 Dave Love <fx@gnu.org>
4734
4735 * dispnew.c (marginal_area_string): New.
4736
4737 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
4738 (Qleft_margin, Qright_margin): Declare.
4739 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
4740
4741 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
4742 note_mode_line_highlight and extended.
4743
4744 * keyboard.c (Qleft_margin, Qright_margin): Declare.
4745 (make_lispy_event): Deal with mouse events in margins.
4746
47472002-04-12 Stefan Monnier <monnier@cs.yale.edu>
4748
4749 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
4750
4751 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
4752 than deactivating the mark if tmm is set to `lambda'.
4753 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
4754 Use a single event for HELP_EVENT.
4755 (Fexecute_extended_command): Save last_point_position.
4756
47572002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4758
4759 * lisp.h (Fpropertize): Add prototype.
4760
4761 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
4762
47632002-04-10 Colin Walters <walters@verbum.org>
4764
4765 * config.in: Add HAVE_SHARED_GAME_DIR.
4766
4767 * callproc.c: (Vgame_score_directory): New variable.
4768 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
4769
47702002-04-10 Richard M. Stallman <rms@gnu.org>
4771
4772 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
4773
47742002-04-09 Stefan Monnier <monnier@cs.yale.edu>
4775
4776 * minibuf.c (read_minibuf): Use empty_string.
4777 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
4778 Short-circuit the search as soon as it "failed".
4779 (Fall_completions): Allow lambda forms and lists of strings for alist.
4780 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
4781 when require_match is nil.
4782 (Ftest_completion): Rename from `test_completion' and export to elisp.
4783 Call the predicate also when alist is a list.
4784 Obey Vcompletion_regexp_list.
4785 (do_completion, Fminibuffer_complete_and_exit): Use it.
4786 (Fassoc_string): Rename from `assoc_for_completion'.
4787 Allow list of strings as well and export to elisp.
4788
47892002-04-08 Stefan Monnier <monnier@cs.yale.edu>
4790
4791 * puresize.h (BASE_PURESIZE): Increase to 900KB.
4792
47932002-04-08 Juanma Barranquero <lektu@terra.es>
4794
4795 * w32.c (sys_accept): Don't hide variable `s'.
4796
47972002-04-05 Gerd Moellmann <gerd@gnu.org>
4798
4799 * callint.c (Fcall_interactively): Use INTEGERP instead of
4800 NUMBERP for checking Vhistory_length.
4801
48022002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4803
4804 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
4805 Doc fix to reflect it.
4806
48072002-04-04 Richard M. Stallman <rms@gnu.org>
4808
4809 * xdisp.c (display_mode_element): New arg RISKY.
4810 Disregard text props found or specified within a variable
4811 that isn't marked risky-local-variable.
4812 (Qrisky_local_variable): New variable.
4813 (syms_of_xdisp): Init and staticpro it.
4814
48152002-04-04 Stefan Monnier <monnier@cs.yale.edu>
4816
4817 * undo.c (record_point): New fun.
4818 (record_delete, record_insert): Use it.
4819
48202002-04-03 Juanma Barranquero <lektu@terra.es>
4821
4822 * doc.c (Fdocumentation): Add missing parentheses.
4823 (Fdocumentation_property): Likewise.
4824
48252002-04-03 Stefan Monnier <monnier@cs.yale.edu>
4826
4827 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
4828 data is 0, just return nil.
4829
48302002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
4831
4832 * msdos.c (syms_of_msdos): Fix last change with
4833 mouse_autoselect_window.
4834
48352002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4836
4837 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
4838 mouse_autoselect_window.
4839
48402002-04-02 Stefan Monnier <monnier@cs.yale.edu>
4841
4842 * keyboard.c (make_lispy_event): Handle unknown keysyms together
4843 with system-specific keysyms. Use it also for unknown function keys.
4844
4845 * doc.c (reread_doc_file): Return whether reload was attempted.
4846 (Fdocumentation, Fdocumentation_property): Don't try to reload
4847 if the doc is 0 and only ask once.
4848
4849 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
4850
48512002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
4852
4853 * keyboard.c (read_char): If the event was Qselect_window,
4854 restore timer_idleness_start_time to its previous value.
4855
4856 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
4857
48582002-04-01 Stefan Monnier <monnier@cs.yale.edu>
4859
4860 * region-cache.c (new_region_cache): Use BEG.
4861
4862 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
4863 Use BEG and BEG_BYTE.
4864
4865 * doc.c (get_doc_string): Return nil if the location is wrong.
4866 (reread_doc_file): New fun.
4867 (Fdocumentation, Fdocumentation_property):
4868 Call it if get_doc_string fails.
4869 (Fsnarf_documentation): Make it work for a dumped Emacs.
4870
4871 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
4872 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
4873
4874 * charset.c (Fstring): Allow 0 arguments.
4875
4876 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
4877
4878 * process.c (DATAGRAM_CONN_P, list_processes_1)
4879 (Fprocess_datagram_address, Fset_process_datagram_address)
4880 (Fset_network_process_options, server_accept_connection):
4881 Fix some int/Lisp_Object confusions (thank you union types).
4882
48832002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4884
4885 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
4886
4887 * w32term.c: Likewise.
4888 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
4889
4890 * keyboard.c (Qselect_window): New symbol.
4891 (head_table): Use it.
4892 (keys_of_keyboard): Bound select-window event to handle-select-window.
4893 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
4894
4895 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
4896 (last_window): New variable.
4897 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
4898 (note_mouse_movement): Remove reimplemented code in #if 0.
4899 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
4900 Emacs windows.
4901
4902 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
4903
49042002-03-31 Gerd Moellmann <gerd@gnu.org>
4905
4906 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
4907 Callers changed.
4908
49092002-03-30 Richard M. Stallman <rms@gnu.org>
4910
4911 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
4912 loop whenever it stops making progress.
4913
4914 * widget.c (set_frame_size): Don't call change_frame_size.
4915
49162002-03-30 Gerd Moellmann <gerd@gnu.org>
4917
4918 * dispnew.c (direct_output_for_insert):
4919 Call mark_window_display_accurate.
4920
49212002-03-29 Jason Rumney <jasonr@gnu.org>
4922
4923 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
4924
49252002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
4926
4927 * Makefile.in (lread.o): Depend on coding.h.
4928
4929 * lread.c (openp, Fload): Encode the file name before passing it
4930 to `stat', `access', and `emacs_open'.
4931 (openp): GCPRO the encoded file name. Don't recompute Lisp
4932 strings unnecessarily.
4933
49342002-03-29 Kim F. Storm <storm@cua.dk>
4935
4936 * fns.c (Flax_plist_put): Doc fix.
4937
49382002-03-28 Miles Bader <miles@gnu.org>
4939
4940 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
4941
49422002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4943
4944 * process.c (set-network-process-options): Add usage.
4945 (make-network-process): Doc fix.
4946
49472002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
4948
4949 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
4950
49512002-03-26 Richard M. Stallman <rms@gnu.org>
4952
4953 * fns.c (Fsubstring_no_properties): New function.
4954 (Flax_plist_get, Flax_plist_put): New functions.
4955 (syms_of_fns): defsubr them.
4956
4957 * xdisp.c (update_menu_bar): Test only update_mode_lines;
4958 don't test or alter w->update_mode_line.
4959
4960 * window.c (Fdisplay_buffer): Doc fix.
4961
49622002-03-24 Richard M. Stallman <rms@gnu.org>
4963
4964 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
4965
49662002-03-24 Gerd Moellmann <gerd@gnu.org>
4967
4968 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
4969 (Fdefmacro): Handle `(declare ...)'.
4970 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
4971 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
4972
49732002-03-24 Jason Rumney <jasonr@gnu.org>
4974
4975 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
4976 (xbm_file_p): Add prototypes.
4977 (xbm_format, xbm_image_p): Sync with xfns.c.
4978 (reflect_byte): New function.
4979 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
4980 (xbm_load_image): Create bitmaps with a depth of 1.
4981 (init_xfns): Enable XBM images.
4982
49832002-03-23 Jason Rumney <jasonr@gnu.org>
4984
4985 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
4986 correctly. Do not pass up_modifier to keyboard buffer.
4987
4988 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
4989
49902002-03-22 Stefan Monnier <monnier@cs.yale.edu>
4991
4992 * Makefile.in (bootstrapclean): New target.
4993 (bootstrap-temacs, bootstrap-doc): Remove.
4994 (bootstrap-emacs): Use a bog-standard `temacs'.
4995 Don't bother to build a DOC file.
4996
4997 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
4998
4999 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
5000 in temacs even if !CANNOT_DUMP.
5001 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
5002
5003 * alloc.c (check_pure_size): Only output a warning.
5004
50052002-03-22 Jason Rumney <jasonr@gnu.org>
5006
5007 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
5008 supported.
5009
5010 * w32term.c (zv_bits): Declare as short, for word alignment.
5011 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
5012 (syms_of_w32term): Define x-use-underline-position-properties.
5013
5014 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
5015 (clear_image_cache): Block input, fix logic, clear matrices in
5016 all frames that share this cache.
5017
50182002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
5019
5020 * emacs.c (main): Update the Copyright year in the blurb printed
5021 by "emacs --version".
5022
5023 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
5024
5025 * xterm.c (XTread_socket): If XK_ISO_Lock and
5026 XK_ISO_Last_Group_Lock are defined, handle keysyms between
5027 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
5028
50292002-03-21 Kim F. Storm <storm@cua.dk>
5030
5031 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
5032 menu-bar bindings in keymap and local-map properties _are_ used.
5033 But try keymap property first in accordance with 2002-01-03 patch.
5034 Added comment describing why this is not always reliable.
5035 (tool_bar_items): Ditto for tool-bar.
5036
50372002-03-21 Jason Rumney <jasonr@gnu.org>
5038
5039 * w32fns.c (x_clear_image_1): Disable color table code.
5040
50412002-03-21 Kim F. Storm <storm@cua.dk>
5042
5043 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
5044 removed the wrong version of the DEFUN macro; fixed it.
5045
5046 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
5047 Fmember rather than Fmemq).
5048 (Fprovide): Check that subfeatures is a list.
5049
5050 * process.c (QCfeature, QCdatagram): Removed variables.
5051 (QCtype, Qdatagram): New variables.
5052 (network_process_featurep): Removed function.
5053 (Fmake_network_process): Removed :feature check.
5054 Use :type 'datagram instead of :datagram t to create a datagram
5055 socket. This allows us to add other connection types (e.g. raw
5056 sockets) later in a consistent manner.
5057 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
5058 supported subfeatures for feature make-network-process.
5059 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
5060 Intern and staticpro QCtype and Qdatagram.
5061 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
5062
5063 * xfns.c: (QCtype): Remove duplicate declaration and
5064 initialization (is now declared in process.c).
5065
5066 * w32fns.c: (QCtype): Remove duplicate declaration and
5067 initialization (is now declared in process.c).
5068
50692002-03-21 Richard M. Stallman <rms@gnu.org>
5070
5071 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
5072 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
5073 when jumping to `fail' to avoid undoing reg changes in the
5074 last iteration of the loop.
5075 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
5076
5077 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
5078 Depend on process.h.
5079
50802002-03-20 Jason Rumney <jasonr@gnu.org>
5081
5082 Most of the following changes are still conditional on HAVE_IMAGES
5083 which is not set by default on Windows.
5084
5085 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
5086
5087 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
5088 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
5089 (four_corners_best, x_clear_image_1, x_clear_image)
5090 (x_alloc_image_color, postprocess_image)
5091 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
5092 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
5093 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
5094
5095 * w32gui.h (struct XImage): Define.
5096
5097 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
5098 extract mouse co-ordinates.
5099
51002002-03-20 Jason Rumney <jasonr@gnu.org>
5101
5102 * w32.c (init_winsock): Dynamically load new server and UDP
5103 socket functions.
5104 (socket_to_fd): New function.
5105 (sys_socket): Use it.
5106 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
5107 (sys_recvfrom, sys_sendto): New wrapper functions.
5108
5109 * process.c (QCfamily, QCfilter): Remove duplicate declaration
5110 and initialization.
5111
5112 * makefile.w32-in (LIBS): Remove $(WSOCK32).
5113
51142002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
5115
5116 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
5117 Don't use "sun" as a variable, it's a predefined constant on Sun
5118 machines.
5119
51202002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5121
5122 * bytecode.c (Fbyte_code): Revert last change.
5123
51242002-03-19 Kim F. Storm <storm@cua.dk>
5125
5126 * makefile.w32-in (LIBS): Add $(WSOCK32).
5127 From David Ponce <dponce@voila.fr>.
5128
51292002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5130
5131 * process.c (wait_reading_process_input): Move variables `pname'
5132 and `pnamelen' down where they are used.
5133
5134 * bytecode.c (Fbyte_code): Discard unused computed value to
5135 prevent gcc warning.
5136
5137 * lisp.h (Fplist_member): Add prototype.
5138
51392002-03-18 Kim F. Storm <storm@cua.dk>
5140
5141 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
5142 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
5143
5144 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
5145 Remove explicit GNU_LINUX settings for datagram support.
5146
51472002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5148
5149 * process.c (Fmake_network_process): Remove unused variable `sa'.
5150 Doc fix. Add usage:.
5151 (set_socket_options): Remove unused variables `optnum' and `opttype'.
5152
51532002-03-17 Richard M. Stallman <rms@gnu.org>
5154
5155 * xdisp.c (cursor_type_changed): New variable.
5156 (redisplay_internal): Redisplay all windows if cursor_type_changed.
5157 Clear it when clearing windows_or_buffers_changed.
5158 (try_cursor_movement, redisplay_window, try_window_id)
5159 (try_window_reusing_current_matrix): Test cursor_type_changed
5160 along with windows_or_buffers_changed.
5161
5162 * window.h (cursor_type_changed): New variable.
5163
5164 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
5165 not update_mode_lines, and always set it to 1.
5166
5167 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
5168 if no frames needed redrawing.
5169
51702002-03-17 Kim F. Storm <storm@cua.dk>
5171
5172 The following changes add support for network server processes,
5173 datagram connections, and local (unix) sockets.
5174
5175 * process.h (struct Lisp_Process): New member log.
5176 Doc fix: Member command used to indicate stopped network process.
5177 Doc fix: Member childp contains plist for network process.
5178 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
5179
5180 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
5181 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
5182 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
5183 New variables.
5184 (NETCONN1_P): New macro.
5185 (DATAGRAM_SOCKETS): New conditional symbol.
5186 (datagram_address): New array.
5187 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
5188 (status_message): Use concat3.
5189 (Fprocess_status): Add `listen' status to doc string. Return `stop'
5190 for a stopped network process.
5191 (Fset_process_buffer): Update contact plist for network process.
5192 (Fset_process_filter): Ditto. Don't enable input for stopped
5193 network processes. Server must listen, even if filter is t.
5194 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
5195 New functions.
5196 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
5197 (Fprocess_contact): Added KEY argument. Handle datagrams.
5198 (list_processes_1): Optionally show only processes with the query
5199 on exit flag set. Dynamically adjust column widths. Omit tty
5200 column if not needed. Report stopped network processes.
5201 Identify server and datagram network processes.
5202 (Flist_processes): New optional arg `query-only'.
5203 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
5204 (conv_lisp_to_sockaddr, set_socket_options)
5205 (network_process_featurep, unwind_request_sigio): New helper functions.
5206 (Fprocess_datagram_address, Fset_process_datagram_address):
5207 (Fset_network_process_options): New lisp functions.
5208 (Fopen_network_stream): Removed. Now defined in simple.el.
5209 (Fmake_network_process): New lisp function. Code is based on previous
5210 Fopen_network_stream, but heavily reworked with new property list based
5211 argument list, support for datagrams, server processes, and local
5212 sockets in addition to old client-only functionality.
5213 (server_accept_connection): New function.
5214 (wait_reading_process_input): Use it to handle incoming connects.
5215 Do not enable input on a new connection if process is stopped.
5216 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
5217 (send_process): Handle datagram sockets.
5218 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
5219 network process is indicated by setting command field to t .
5220 (Fprocess_send_eof): No-op if datagram connection.
5221 (Fstatus_notify): Don't read input for a stream server socket or a
5222 stopped network process.
5223 (init_process): Initialize datagram_address array.
5224 (syms_of_process): Intern and staticpro new variables, defsubr new
5225 functions.
5226
52272002-03-16 Jason Rumney <jasonr@gnu.org>
5228
5229 * w32fns.c (w32_to_all_x_charsets): Return correct type in
5230 startup case.
5231
52322002-03-16 Richard M. Stallman <rms@gnu.org>
5233
5234 * xdisp.c (redisplay_internal, redisplay_windows):
5235 Use list_of_error to call internal_condition_case_1.
5236 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
5237 so as to catch all errors with no possibility of debugger redisplay.
5238 (list_of_error): New variable.
5239 (syms_of_xdisp): Init and staticpro it.
5240
5241 * print.c (print_object): Delete `\ ' from printed rep of frame.
5242
52432002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
5244
5245 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
5246 until its implementation is fixed.
5247
52482002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5249
5250 * xfns.c (png_load): Remove unused variable `gamma_str'.
5251
52522002-03-14 Richard M. Stallman <rms@gnu.org>
5253
5254 * xfns.c (x_real_positions): Handle failure in XQueryTree.
5255
52562002-03-14 Miles Bader <miles@gnu.org>
5257
5258 * intervals.c (adjust_for_invis_intang): New function.
5259 (set_point_both): Use `adjust_for_invis_intang' to do most of the
5260 work for dealing with invisible+intangible regions. Do so before
5261 and after both forward and backward movements, to handle both
5262 front-sticky and rear-sticky cases.
5263 * textprop.c (text_property_stickiness): Function moved here from
5264 `editfns.c'.
5265 * intervals.h (text_property_stickiness): New declaration.
5266 * editfns.c (char_property_eq): Function removed.
5267 (text_property_stickiness): Function moved to `textprop.c'.
5268
52692002-03-13 Jason Rumney <jasonr@gnu.org>
5270
5271 * config.in: Add STRFTIME_NO_POSIX2.
5272
5273 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
5274 and %OX when underlying strftime does not.
5275
52762002-03-13 Stefan Monnier <monnier@cs.yale.edu>
5277
5278 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
5279 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
5280 line) to avoid annoying flicker.
5281 (xm_scroll_callback): Get rid of the now unnecessary kludge.
5282 (XTread_socket): Mark it static.
5283
5284 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
5285
52862002-03-13 Kim F. Storm <storm@cua.dk>
5287
5288 * puresize.h (BASE_PURESIZE): Increase to 775000.
5289
52902002-03-12 Juanma Barranquero <lektu@terra.es>
5291
5292 * editfns.c (syms_of_editfns): Fix typo.
5293
52942002-03-12 Gerd Moellmann <gerd@gnu.org>
5295
5296 * xsmfns.c: Include stdio.h because termhooks.h needs it.
5297 Include termopt.h for interrupt_input.
5298
52992002-03-11 Andreas Schwab <schwab@suse.de>
5300
5301 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
5302
53032002-03-11 Gerd Moellmann <gerd@gnu.org>
5304
5305 * xterm.c (note_mouse_movement): Put code for
5306 x_autoselect_window_p in #if 0.
5307
5308 * lread.c (Fload): Don't assume that message_with_string uses the
5309 string it is given like a C string.
5310
53112002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5312
5313 * xterm.h (x_session_check_input, x_session_initialize): Declared.
5314
5315 * xterm.c: (XTread_socket): Add call to x_session_check_input and
5316 x_session_have_connection.
5317 (x_initialize): Add call to x_session_initialize.
5318
5319 * termhooks.h (enum event_kind): Add save_session_event.
5320
5321 * keyboard.c: Add Emacs event save_session_event.
5322
5323 * emacs.c (main): Add call to syms_of_xsmfns.
5324
5325 * lisp.h: Declare syms_of_xsmfns as extern.
5326
5327 * config.in: Add HAVE_X_SM.
5328
5329 * Makefile.in (LIBXT): Add -lSM -lICE
5330 if HAVE_X_SM and not USE_X_TOOLKIT.
5331 (XOBJ): New file xsmfns.c added.
5332
5333 * xsmfns.c: New file for X session management.
5334
53352002-03-09 Jason Rumney <jasonr@gnu.org>
5336
5337 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
5338 read-only when setting modified time.
5339
53402002-03-08 Gerd Moellmann <gerd@gnu.org>
5341
5342 * xdisp.c (move_it_vertically_backward): At the end of the function,
5343 when moving forward by lines, treat terminal frames specially.
5344
5345 * keyboard.c (echo_char): Make sure to add a separator between
5346 keys even if echo_dash hasn't been called.
5347
5348 * xdisp.c: Use new string macros.
5349 (update_echo_area): Pass number of bytes to message3 instead of
5350 number of chars.
5351 (set_message_1): Don't access a string's size_byte directly.
5352 (decode_mode_spec_coding): Use number of bytes of eoltype string
5353 instead number of chars.
5354
5355 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
5356
53572002-03-08 Juanma Barranquero <lektu@terra.es>
5358
5359 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
5360 24-bit.
5361
53622002-03-06 Jason Rumney <jasonr@gnu.org>
5363
5364 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
5365
53662002-03-06 Gerd Moellmann <gerd@gnu.org>
5367
5368 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
5369 (cancel_echoing, echo_length, echo_truncate): Changed to
5370 work with new kboard definition.
5371 (echo_now): Use message3_nolog instead of message2_nolog.
5372
5373 * alloc.c (mark_kboards): Mark echo_string.
5374
5375 * keyboard.h (ECHOBUFSIZE): Removed.
5376 (struct kboard): Member echoptr removed, member echobuf renamed
5377 to echo_string.
5378
5379 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
5380 message3 instead of message2 to display the message using STRING's
5381 text properties.
5382
53832002-03-05 Andreas Schwab <schwab@suse.de>
5384
5385 * xdisp.c (hscroll_margin): Change to EMACS_INT.
5386
53872002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
5388
5389 * frame.c (default-frame-alist): Explain that setting it doesn't
5390 affect existing frames.
5391
53922002-03-05 Stefan Monnier <monnier@cs.yale.edu>
5393
5394 * indent.c (skip_invisible): Fix my brain fart.
5395
5396 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
5397
53982002-03-04 Stefan Monnier <monnier@cs.yale.edu>
5399
5400 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
5401 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
5402 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
5403 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
5404 and variables to use EMACS_INT instead of just int.
5405
5406 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
5407
54082002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
5409
5410 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
5411 environment, pass it down with corrected value.
5412
54132002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5414
5415 * lread.c (read_filtered_event): Do not call start_hourglass
5416 before returning.
5417
54182002-03-04 Juanma Barranquero <lektu@terra.es>
5419
5420 * w32term.c (x_display_and_set_cursor): Fix typo.
5421
54222002-03-03 Richard M. Stallman <rms@gnu.org>
5423
5424 * fileio.c (Fmake_temp_name): Doc fix.
5425
54262002-03-03 Gary Wong <gtw@gnu.org>
5427
5428 * termcap.c [!emacs]: Replace ospeed for building standalone
5429 libtermcap, for binary compatibility.
5430
5431 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
5432
54332002-03-03 Richard M. Stallman <rms@gnu.org>
5434
5435 * xrdb.c (file_p): Rename arg `path' to `filename'.
5436
5437 * abbrev.c (Fexpand_abbrev): Increment plist as use count
5438 only if it is an integer.
5439
5440 * xfns.c (png_load): Set screen_gamma based on f->gamma.
5441 If png_get_sRGB gives an answer, call png_set_gamma
5442 using the default image gamma value.
5443
5444 * lread.c (read1): When reading from a file, default string to
5445 multibyte only if it has some multibyte characters.
5446
5447 * print.c (print_object): Output multibyte chars 128...255
5448 using \x even if ! print_escape_multibyte.
5449
5450 * xdisp.c (display_mode_element): Move the places where
5451 bytepos, charpos, this, and lisp_string are set.
5452 Use lisp_string to set bytepos.
5453
5454 * xdisp.c (redisplay_internal):
5455 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
5456
5457 * xdisp.c (display_mode_element): Merge properties specified with
5458 :propertize onto those that come with the string.
5459
54602002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
5461
5462 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
5463 automatic-hscrolling. Users changed.
5464 <hscroll-margin>: Renamed from automatic-hscroll-margin.
5465 Users changed.
5466 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
5467
54682002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
5469
5470 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
5471
54722002-03-02 Kim F. Storm <storm@cua.dk>
5473
5474 * window.c (Fminibuffer_selected_window): New function.
5475 (syms_of_window): Defsubr it.
5476
54772002-03-01 Kim F. Storm <storm@cua.dk>
5478
5479 * window.h (struct window): New member phys_cursor_width.
5480
5481 * window.c (make_window, replace_window): Init phys_cursor_width.
5482
5483 * xterm.c (x_display_and_set_cursor): Blink box cursor using
5484 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
5485
5486 * w32term.c (x_display_and_set_cursor): Blink box cursor using
5487 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
5488
5489 * lisp.h (GCPRO6): New macro.
5490
5491 * process.c (Fopen_network_stream): Use GCPRO6.
5492
54932002-03-01 Kim F. Storm <storm@cua.dk>
5494
5495 * process.c (Qconnect, Qfailed): New variables.
5496 (syms_of_process): Intern and staticpro them.
5497 (Fprocess_status): Document connect and failed return values.
5498 [NON_BLOCKING_CONNECT]: New conditional.
5499 (connect_wait_mask, num_pending_connects): New variables.
5500 (status_message): Convert Qfailed status.
5501 (Fopen_network_stream): Added support for non-blocking connect.
5502 New optional args: filter, sentinel, non_blocking. Doc updated.
5503 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
5504 (deactivate_process): Handle pending non-blocking connect.
5505 (wait_reading_process_input): Poll for status of non-blocking
5506 connects. Exec sentinel directly when connect succeeds.
5507 (status_notify): Don't read process output if not yet connected.
5508
55092002-02-28 Kim F. Storm <storm@cua.dk>
5510
5511 * window.c: (minibuf_selected_window): Renamed from
5512 Vminibuf_selected_window. Users changed.
5513 (syms_of_window): Staticpro it.
5514
55152002-02-26 Kim F. Storm <storm@cua.dk>
5516
5517 The following changes add a new Vminibuf_selected_window variable
5518 which is similar to Vminibuf_scroll_window, but which is only set
5519 on entry to the minibuffer (from a non-minibuffer window):
5520
5521 * window.c: (Vminibuf_selected_window): New variable.
5522 (struct save_window_data): New member minibuf_selected_window.
5523 (Fset_window_configuration): Restore Vminibuf_selected_window.
5524 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
5525 Set minibuf_scroll_window member to nil if minibuf_level is 0.
5526 (compare_window_configurations): Compare minibuf_selected_window.
5527
5528 * window.h: (Vminibuf_selected_window): Declare extern.
5529
5530 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
5531 entry to minibuffer or on entry from a non-minibuffer window.
5532
5533 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
5534 Vminibuf_selected_window instead of Vminibuf_scroll_window.
5535
5536 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
5537 instead of Vminibuf_scroll_window when deciding in which window
5538 the region should be highlighted. Consequently, the region remains
5539 highlighteded even when a completion buffer is also displayed.
5540
55412002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
5542
5543 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
5544
5545 * xselect.c (Qcompound_text_with_extensions): Renamed from
5546 Qcompound_text_no_extensions.
5547 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
5548
55492002-02-26 Juanma Barranquero <lektu@terra.es>
5550
5551 * w32proc.c (syms_of_ntproc): Doc fix.
5552
55532002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5554
5555 * intervals.h: Include "dispextern.h" unconditionally.
5556
55572002-02-24 Jason Rumney <jasonr@gnu.org>
5558
5559 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
5560 and disp-table.elc.
5561 (lisp): Add emacs-lisp/backquote.elc.
5562
55632002-02-24 Kim F. Storm <storm@cua.dk>
5564
5565 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
5566 The validation of the event type was too strict as it didn't
5567 allow string events; buffer names are used in bindings for
5568 menu-bar-select-buffer (see `menu-bar-update-buffers').
5569
55702002-02-23 Kim F. Storm <storm@cua.dk>
5571
5572 The following changes rework my patch of 2002-02-06 which
5573 added command remapping by entering the commands directly into
5574 the keymaps. Now, command remapping uses an explicit `remap'
5575 prefix in the keymaps, i.e. [remap COMMAND].
5576
5577 * keymap.c (Qremap, remap_command_vector): New variables.
5578 (is_command_symbol): Removed function.
5579 (Fdefine_key): No longer accept a symbol for KEY.
5580 Added validation of [remap COMMAND] argument for KEY.
5581 The DEF is no longer required to be a symbol when remapping a command.
5582 (Fremap_command): New function to remap command through keymaps.
5583 (Flookup_key): Perform command remapping initiated by
5584 Fremap_command directly for speed.
5585 (Fkey_binding): Use Fremap_command for command remapping.
5586 (where_is_internal): Handle new command remapping representation.
5587 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
5588 staticpro them. Defsubr Fremap_command.
5589
5590 * keymap.h (Fremap_command): Declare extern.
5591 (is_command_symbol): Remove extern.
5592
5593 * keyboard.c (command_loop_1): Use Fremap_command for command
5594 remapping; now try command remapping for all symbols.
5595
55962002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
5597
5598 * coding.h (run_pre_post_conversion_on_str): Add prototype.
5599
56002002-02-23 Jason Rumney <jasonr@gnu.org>
5601
5602 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
5603 on the string before encoding it.
5604 (Fw32_get_clipboard_data): Run post-read-conversion on the string
5605 after decoding it.
5606
5607 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
5608
56092002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5610
5611 * w32term.c (enter_timestamp): Remove unused static variable to
5612 prevent warning.
5613
5614 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
5615
56162002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
5617
5618 * w16select.c (Fw16_get_clipboard_data): Fix last change.
5619
5620 * xselect.c (selection_data_to_lisp_data): Fix last change.
5621
56222002-02-22 Jason Rumney <jasonr@gnu.org>
5623
5624 * w32term.h (struct w32_output): New member menu_command_in_progress.
5625
5626 * w32menu.c (menubar_selection_callback): Free the menu and
5627 clear the menu_command_in_progress flag.
5628
5629 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
5630 (menu_free_timer): New variable.
5631 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
5632 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
5633 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
5634 menu command is in progress.
5635 <WM_COMMAND>: Set the menu_command_in_progress flag.
5636 Kill any menu_free_timer that is running.
5637
5638 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
5639 Call ExtTextOutA rather than ExtTextOut.
5640
56412002-02-22 Eli Zaretskii <eliz@gnu.org>
5642
5643 * puresize.h (BASE_PURESIZE): Increase to 755000.
5644
56452002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
5646
5647 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
5648 on the string before encoding it.
5649 (Fw16_get_clipboard_data): Run post-read-conversion on the string
5650 after decoding it.
5651
56522002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
5653
5654 Support for ICCCM Extended Segments in X selections:
5655
5656 * xselect.c <Qcompound_text_no_extensions>: New variable.
5657 (syms_of_xselect): Intern and staticpro it.
5658 (selection_data_to_lisp_data): Run post-read-conversion on decoded
5659 selection text.
5660 (lisp_data_to_selection_data): If next-selection-coding-system is
5661 compound-text-no-extensions, set the type of selection to be
5662 compound-text.
5663
5664 * xterm.h (x_encode_text): Update prototype.
5665
5666 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
5667 callers changed. If SELECTIONP is non-zero, run the
5668 pre-write-conversion function before encoding the selection text.
5669
56702002-02-21 Kim F. Storm <storm@cua.dk>
5671
5672 * frame.c (syms_of_frame): Change mouse-highlight default to t.
5673
5674 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
5675 Correct composing of language-change event.
5676
56772002-02-20 Kim F. Storm <storm@cua.dk>
5678
5679 * keyboard.c (menu_bar_items): Don't include keymap or local-map
5680 bindings at PT when building menu (the menu is not updated often
5681 enough for this to work reliable).
5682 (tool_bar_items): Likewise.
5683 (current_active_maps): Removed unused (and buggy) function.
5684
56852002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5686
5687 * xfns.c (gif_load): Use correct width and height for GIF images.
5688
56892002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
5690
5691 * floatfns.c (Fatan): Accept an optional second arg and call
5692 atan2 if passed 2 args.
5693
56942002-02-18 Jason Rumney <jasonr@gnu.org>
5695
5696 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
5697
56982002-02-17 Jason Rumney <jasonr@gnu.org>
5699
5700 * w32term.c (x_autoselect_window_p): New variable.
5701 (syms_of_w32term): DEFVAR_BOOL and initialize it.
5702 (note_mouse_movement): Use it.
5703
5704 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
5705
5706 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
5707
5708 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
5709 New variables.
5710 (syms_of_w32fns): Intern and staticpro them.
5711 (x_frame_parms) <"fullscreen">: New parameter.
5712 (x_fullscreen_move, x_set_fullscreen): New functions.
5713 (x_set_frame_parameters): Support Qfullscreen.
5714 (x_real_positions): Save x/y_pixels_diff frame params.
5715 (x_figure_window_size): Support full-screen frames.
5716 (Fx_create_frame): Default the fullscreen parameter.
5717
5718 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
5719 (x_fullscreen_adjust): New functions.
5720 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
5721 fullscreen. Call x_check_fullscreen_move, and set the
5722 want_fullscreen member of output_data.w32
5723 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
5724
5725 * w32term.h: New enum for FULLSCREEN_* constants.
5726 (struct w32_output): New members want_fullscreen, x_pixels_diff,
5727 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
5728 (x-fullscreen-adjust): New prototype.
5729
57302002-02-17 Kim F. Storm <storm@cua.dk>
5731
5732 * frame.c: (Vmouse_highlight): New variable.
5733 (syms_of_frame): DEFVAR_LISP it.
5734
5735 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 5736
048addec 5737 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 5738
048addec
JD
5739 * xterm.c (disable_mouse_highlight): Removed variable.
5740 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
5741 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
5742 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
5743 and on after keyboard input.
5744 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 5745
048addec 5746 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 5747
048addec
JD
5748 * msdos.c (disable_mouse_highlight): Removed variable.
5749 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
5750 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
5751 (internal_terminal_init): Initialize mouse_face_hidden.
5752 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
5753 and on after keyboard input.
4f1b1854 5754
048addec 5755 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 5756
048addec
JD
5757 * w32term.c (disable_mouse_highlight): Removed variable.
5758 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
5759 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
5760 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
5761 and on after keyboard input.
5762 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 5763
048addec 57642002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 5765
048addec
JD
5766 * msdos.c (last_mouse_window): New variable.
5767 (dos_rawgetc): Fix last change--if the mouse is in the same window
5768 as recorded in last_mouse_window, don't select this window.
5cb6905d 5769
048addec 5770 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 5771
048addec
JD
5772 * msdos.c (x_autoselect_window_p): New variable.
5773 (syms_of_msdos): Defvar it.
5774 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
5775 which the last mouse movement occured, unless it is already selected.
437dfb9f 5776
048addec
JD
5777 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
5778 New variables.
5779 (syms_of_xdisp): DEVFAR them.
5780 (hscroll_window_tree): Use automatic_hscroll_margin and
5781 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 5782
048addec 57832002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 5784
048addec
JD
5785 * xterm.c (x-autoselect-window): New variable.
5786 (note_mouse_movement): Use it.
9f696a00 5787
048addec 5788 * keyboard.c: Do not include "systime.h" twice.
d57966d7 5789
048addec 57902002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 5791
048addec 5792 * puresize.h (BASE_PURESIZE): Increase to 9/5.
d57966d7 5793
048addec 5794 * alloc.c (NSTATICS): Increase to 1280.
74779f52 5795
048addec 57962002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 5797
048addec 5798 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 5799
048addec
JD
5800 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
5801 (Vx_super_keysym): New variables.
5802 (syms_of_xterm): DEFVAR_LISP them.
5803 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
5804 variables to determine which keys to use for the various modifiers.
a474d59c 5805
048addec 58062002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 5807
048addec
JD
5808 * window.c: (Vmode_line_in_non_selected_windows): Removed.
5809 (mode_line_in_non_selected_windows): New variable.
5810 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 5811
048addec
JD
5812 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
5813 Use mode_line_in_non_selected_windows.
5814 (mode_line_in_non_selected_windows): Declare extern.
5815 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 5816
048addec 58172002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 5818
048addec
JD
5819 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
5820 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
5821 (Fclear_this_command_keys): Doc fixes.
2d10309f 5822
048addec
JD
5823 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
5824 (update_face_from_frame_parameter): Increment face_change_count
5825 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 5826
048addec
JD
5827 * xdisp.c (QCpropertize): New variable.
5828 (mode_line_proptrans_alist): New variable.
5829 (display_mode_element): New arg PROPS; all calls changed.
5830 Implement this, for strings.
5831 Handle literal output of strings by sharing the
5832 main-line code for strings, using local var `literal'.
5833 Handle :propertize feature.
5834 (syms_of_xdisp): Initialze and staticpro QCpropertize and
5835 mode_line_proptrans_alist.
0b1e6b54 5836
048addec 58372002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 5838
048addec
JD
5839 * window.c: (Vmode_line_in_non_selected_windows): New variable.
5840 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 5841
048addec
JD
5842 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
5843 (CURRENT_MODE_LINE_FACE_ID): Use it.
5844 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 5845
048addec
JD
5846 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
5847 to get mode line face.
e17144de 5848
048addec 58492002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 5850
048addec
JD
5851 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
5852 variables; cus-start.el doesn't need them anymore.
44368f8f 5853
048addec 58542002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 5855
048addec
JD
5856 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
5857 reduction. This fixes a display problem where stray newlines were
5858 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 5859
048addec 58602002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 5861
048addec 5862 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 5863
048addec 5864 * xdisp.c (display_mode_lines): Fix last change.
453c5510 5865
048addec 58662002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 5867
048addec
JD
5868 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
5869 match each other.
5870 (w32_load_system_font): Prevent Cleartype fonts from loading.
5871 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 5872
048addec 58732002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 5874
048addec
JD
5875 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
5876 (CURRENT_MODE_LINE_HEIGHT): Use it.
5877 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 5878
048addec
JD
5879 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
5880 (pos_visible_p, handle_face_prop): Likewise.
5881 (display_mode_lines): Likewise, but for the real selected window.
5882 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 5883
048addec
JD
5884 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
5885 in non-selected windows.
5886 (realize_basic_faces): Realize it.
5887 (syms_of_term): Intern and staticpro it.
308dd672 5888
048addec 58892002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 5890
048addec
JD
5891 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
5892 Changed mail addresses to emacs-devel@gnu.org.
308dd672 5893
048addec 58942002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 5895
048addec
JD
5896 * fileio.c (Fsubstitute_in_file_name): If the file name includes
5897 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 5898
048addec 5899 * floatfns.c (Fround): Doc fix.
3c1e6b46 5900
048addec 59012002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 5902
048addec 5903 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 5904
048addec 59052002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 5906
048addec 5907 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 5908
048addec 59092002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 5910
048addec
JD
5911 * keymap.c (where_is_internal): Only check whether definition is
5912 remapped if it fulfills is_command_symbol.
0065bb74 5913
048addec 59142002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 5915
048addec 5916 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 5917
048addec 5918 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 5919
048addec 59202002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 5921
048addec
JD
5922 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
5923 defining command remapping. Doc updated.
5924 (Flookup_key): Remap command through keymap if KEY is a symbol.
5925 (is_command_symbol): New function.
5926 (Fkey_binding): Use it. New optional argument NO-REMAP.
5927 Doc updated. Callers changed. Perform command remapping via
5928 recursive call unless that arg is non-nil.
5929 (where_is_internal): New argument no_remap. Callers changed.
5930 Call recursively to find original key bindings for a remapped
5931 comand unless that arg is non-nil.
5932 (Fwhere_is_internal): New optional argument NO-REMAP.
5933 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 5934
048addec
JD
5935 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
5936 (is_command_symbol): Added prototype.
0d8466cc 5937
048addec
JD
5938 * keyboard.c (Vthis_original_command): New variable.
5939 (syms_of_keyboard): DEFVAR_LISP it.
5940 (command_loop_1): Set it, and perform command remapping.
15fff01d 5941
048addec 59422002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 5943
048addec 5944 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 5945
048addec 59462002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 5947
048addec 5948 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 5949
048addec 59502002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 5951
048addec 5952 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 5953
048addec 59542002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 5955
048addec 5956 * filelock.c (S_ISLNK): Define if not defined.
3a232704 5957
048addec 59582002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 5959
048addec 5960 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 5961
048addec
JD
5962 * lread.c (read1): Redesign strategy for force_multibyte and
5963 force_singlebyte. Now is_multibyte records whether read_buffer
5964 is multibyte. Encountering any multibyte character makes it so.
4e02881b 5965
048addec 59662002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 5967
048addec
JD
5968 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
5969 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 5970
048addec 59712002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 5972
048addec
JD
5973 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
5974 latter never being defined on GNU/Linux.
749f499f 5975
048addec 59762002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 5977
048addec
JD
5978 * xfaces.c (realize_default_face): Don't set the weight and slant of
5979 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 5980
048addec 59812002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 5982
048addec
JD
5983 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
5984 Call cancel_hourglass unconditionally.
d0fd26dd 5985
048addec
JD
5986 * eval.c (Fsignal): Remove duplicated declaration of
5987 the variable `display_hourglass_p'.
b4c45162 5988
048addec 59892002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 5990
048addec 5991 * editfns.c (region_limit): Nicer error message.
c95eaa61 5992
048addec
JD
5993 * coding.c (decode_composition_emacs_mule):
5994 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 5995
048addec
JD
5996 * callint.c (check_mark): New arg to specify clearer error message.
5997 Callers changed.
c95eaa61 5998
048addec 59992002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 6000
048addec 6001 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 6002
048addec 60032002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 6004
048addec
JD
6005 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
6006 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
6007 Fix doc-strings.
c95eaa61 6008
048addec 60092002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 6010
048addec 6011 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 6012
048addec
JD
6013 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
6014 and scroll_up_aggressively.
c95eaa61 6015
048addec 60162002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 6017
048addec 6018 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 6019
048addec 60202002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 6021
048addec
JD
6022 * textprop.c (Fnext_property_change, Fnext_single_property_change)
6023 (Fprevious_property_change, Fprevious_single_property_change):
6024 Stay within the narrowed-buffer boundaries.
e2c3786a 6025
048addec 60262002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 6027
048addec
JD
6028 * term.c (Ftty_display_color_cells): New function.
6029 (syms_of_term): Defsubr it.
6030 (Ftty_display_color_cells, Ftty_display_color_p): Change the
6031 argument name to DISPLAY. Doc fix.
bf794306 6032
048addec
JD
6033 * dispextern.h: Add prototype for set_tty_color_mode and
6034 tty_setup_colors.
bf794306 6035
048addec 60362002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 6037
048addec
JD
6038 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
6039 If region left to draw is not what was expected, mark the frame as
6040 garbaged.
62582985 6041
048addec
JD
6042 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
6043 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 6044
048addec 60452002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 6046
048addec
JD
6047 * w32term.c (x_update_window_begin): Only hide caret if
6048 w32_use_visible_system_caret is set.
6049 (x_update_window_end): Only show caret if
6050 w32_use_visible_system_caret is set.
6051 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 6052
048addec 6053 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 6054
048addec 60552002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 6056
048addec
JD
6057 * unexelf.c (unexec): Define n so as to cause compilation error
6058 for the code where people have often written n instead of nn.
1e9a6186 6059
048addec 6060 * .gdbinit (hookpost-run): Defined.
1e9a6186 6061
048addec 60622002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 6063
048addec 6064 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 6065
048addec 60662002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 6067
048addec
JD
6068 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
6069 if fullscreen is being set.
7c75be36 6070
048addec 60712002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 6072
048addec
JD
6073 * minibuf.c (Fminibuffer_contents)
6074 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
6075 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 6076
048addec 60772002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 6078
048addec 6079 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 6080
048addec 60812002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 6082
048addec
JD
6083 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
6084 height before comparison.
6085 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 6086
048addec 60872002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 6088
048addec
JD
6089 * w32term.c (w32_system_caret_width): Remove.
6090 (w32_use_visible_system_caret): New user flag.
6091 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
6092 Windows reports a screen reader running.
6093 (x_update_window_begin): Hide the system caret.
6094 (x_update_window_end): Show the system caret.
6095 (x_display_and_set_cursor): Don't draw a cursor when
6096 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 6097
048addec
JD
6098 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
6099 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
6100 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
6101 the user requests it. Use system default width when creating.
6102 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 6103
048addec
JD
6104 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
6105 New window messages.
905cc05a 6106
048addec 61072002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 6108
048addec 6109 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 6110
048addec 61112002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 6112
048addec 6113 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 6114
048addec 61152002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 6116
048addec 6117 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 6118
048addec 61192002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 6120
048addec
JD
6121 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
6122 that Windows returns. If a double check fails, try to guess how
6123 ExtTextOut is going to act.
4d0fa4f3 6124
048addec
JD
6125 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
6126 in place of stricmp.
6127 (w32_list_synthesized_fonts): Removed.
6128 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
6129 (struct enumfont_t): New element; list.
6130 (enum_font_cb2): List all style and charset variations of a font.
6131 (Fw32_select_font): New optional argument; include_proportional.
6132 Exclude vertical fonts. Exclude proportional fonts unless
6133 include_proportional is non-nil.
6134 (w32_enable_synthesized_fonts): Change to a boolean.
6135 (Fw32_send_sys_command): Doc fix.
493faf20 6136
048addec 61372002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 6138
048addec
JD
6139 * dispnew.c (update_frame): Move the variable `tem' to the block
6140 where it is used.
4971e491 6141
048addec 61422002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 6143
048addec
JD
6144 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
6145 call to face-set-after-frame-default.
4971e491 6146
048addec 61472002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 6148
048addec
JD
6149 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
6150 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 6151
048addec 61522002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 6153
048addec
JD
6154 * window.c (enlarge_window): When exceeding size of parent,
6155 directly delete all the siblings instead of trying to resize it.
201c831a 6156
048addec 61572002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 6158
048addec 6159 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 6160
048addec 61612002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 6162
048addec 6163 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 6164
048addec 61652002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 6166
048addec
JD
6167 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
6168 is invisible. This can happen if cursor is on top line of a
6169 window, and we switch to a buffer with a header line.
d77fbc16 6170
048addec 6171 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 6172
048addec 61732002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 6174
048addec
JD
6175 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
6176 `dont_resize' only when used.
61e3b944 6177
048addec 6178 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 6179
048addec 61802002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 6181
048addec
JD
6182 * xdisp.c (display_mode_element): When computing charpos, depend
6183 on multibyteness of elt, not the text in field.
8af01033 6184
048addec 61852002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 6186
048addec
JD
6187 * buffer.c (Fkill_all_local_variables):
6188 Increment `update_mode_lines' only once.
7363986a 6189
048addec 61902002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 6191
048addec
JD
6192 * lisp.h (adjust_after_replace_noundo)
6193 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 6194
048addec 6195 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 6196
048addec 61972002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 6198
048addec
JD
6199 Support for the --color command-line argument and tty-color-mode
6200 frame parameter:
f1a85b89 6201
048addec
JD
6202 * term.c (tty_default_color_capabilities, tty_setup_colors)
6203 (set_tty_color_mode): New functions.
6204 (term_init): Call tty_default_color_capabilities.
6205 (Qtty_color_mode_alist): New variable.
6206 (syms_of_term): Intern and staticpro it.
f1a85b89 6207
048addec
JD
6208 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
6209 frames.
6210 (do_switch_frame): For termcap frames, switch the tty
6211 color mode as specified by the frame's parameters.
6212 (Qtty_color_mode): New variable.
6213 (syms_of_frame): Intern and staticpro it.
3a62677f 6214
048addec
JD
6215 * emacs.c (USAGE2): Add the --color option.
6216 (standard_args): Ditto.
72244db2 6217
048addec
JD
62182002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6219
6220 * xterm.h (struct x_output): New members want_fullscreen,
6221 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
6222 y_pixels_outer_diff.
6223 New enum for FULLSCREEN_* constants.
6224 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
6225 is NULL.
6226 (x_fullscreen_adjust): Add prototype.
3a62677f 6227
048addec
JD
6228 * emacs.c (USAGE2): Add the new full-screen arguments.
6229 (standard_args): Ditto.
3a62677f 6230
048addec
JD
6231 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
6232 New variables.
6233 (syms_of_xfns): Intern and staticpro them.
6234 (x_frame_parms) <"fullscreen">: New parameter.
6235 (x_fullscreen_move, x_set_fullscreen): New functions.
6236 (x_set_frame_parameters): Support for Qfullscreen.
6237 (x_real_positions): More accurate computation of the frame position.
6238 (x_figure_window_size): Support full-screen frames.
6239 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 6240
048addec
JD
6241 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
6242 (XTread_socket) <Expose>: Call x_check_fullscreen.
6243 <ConfigureNotify>: Don't resize to fullscreen.
6244 Call x_check_fullscreen_move, and set the want_fullscreen member of
6245 output_data.x.
3a62677f 6246
048addec 62472002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 6248
048addec
JD
6249 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
6250 for mice with more than 3 buttons.
b8523839 6251
048addec
JD
6252 * w32term.c (parse_button): New parameter xbutton. Callers changed.
6253 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 6254
048addec
JD
6255 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
6256 (syms_of_w32fns): DEFVAR_BOOL it.
6257 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 6258
048addec 62592002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 6260
048addec 6261 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 6262
048addec 62632002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 6264
048addec 6265 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 6266
048addec 62672002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 6268
048addec
JD
6269 * .gdbinit (xbuffer): Remove address operator since data is now a
6270 pointer.
c93674bb 6271
048addec 62722002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 6273
048addec 6274 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 6275
048addec 6276 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 6277
048addec 62782002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 6279
048addec
JD
6280 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
6281 when checking for multiple frames.
91175673 6282
048addec 62832002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 6284
048addec
JD
6285 * window.c (delete_window): Rewrite the code for changing the
6286 selected window to handle the case where WINDOW is not a leaf.
91175673 6287
048addec 62882002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 6289
048addec
JD
6290 * process.c (send_process): Set src_multibyte to 1 after the call
6291 top setup_coding_system, not before the call.
e0fead5d 6292
048addec 62932002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 6294
048addec
JD
6295 * xmenu.c (set_frame_menubar, xmenu_show):
6296 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 6297
048addec
JD
6298 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
6299 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 6300
048addec 63012002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 6302
048addec 6303 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 6304
048addec 6305 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 6306
048addec 6307 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 6308
048addec 63092002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 6310
048addec
JD
6311 * insdel.c (make_gap_larger): Make sure buffer size does not
6312 overflow range of int.
62854fe2 6313
048addec 63142002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 6315
048addec
JD
6316 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
6317 OVERLAPS_P.
656f46bb 6318
048addec 6319 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 6320
048addec
JD
6321 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
6322 to the left or to the right of the pointer, put it against
6323 the left screen edge.
6324 (x_frame_parms): Add missing braces around initializer.
036e218d 6325
048addec
JD
6326 * w32term.c (x_setup_relief_colors): Don't compute an image's
6327 background color if it doesn't have a Pixmap.
6328 (notice_overwritten_cursor): Don't depend on
6329 output_cursor and updated_area. Compare pixel coordinates with
6330 window's cursor pixel coordinates.
6331 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
6332 Call notice_overwritten_cursor with new arg list.
6333 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
6334 unconditionally.
6335 (x_draw_image_relief): Use predefined macro instead of
6336 constant when the value of `tool_bar_button_relief' is negative.
036e218d 6337
048addec 6338 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 6339
048addec 63402002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 6341
048addec 6342 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 6343
048addec 63442002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 6345
048addec
JD
6346 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
6347 (Fkey_binding): Try the `keymap' property map first.
6348 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
6349 minor mode bindings.
90647b07 6350
048addec 63512002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 6352
048addec 6353 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 6354
048addec 63552002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 6356
048addec
JD
6357 * keyboard.c (read_key_sequence): Handle the keymap property
6358 before minor mode maps.
9fbc32aa 6359
048addec
JD
6360 * editfns.c (Fformat): Update thissize from field_width
6361 based on the actual width, in the string case.
036e218d 6362
048addec 63632002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 6364
048addec
JD
6365 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
6366 when used as truth value to prevent gcc warnings.
9fbc32aa 6367
048addec
JD
6368 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
6369 * w32proc.c: Include <config.h>.
9fbc32aa 6370
048addec 63712002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 6372
048addec
JD
6373 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
6374 not EMACS_INT, to make them compatible with DEFVAR_INT.
6375 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 6376
048addec 63772002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 6378
048addec
JD
6379 * print.c (print_object): Test print_escape_nonascii only for
6380 unibyte strings.
6381 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
6382 when outputting to a multibyte buffer.
9fbc32aa 6383
048addec 63842001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 6385
048addec
JD
6386 * print.c (print_object): In multibyte string, use hex escapes.
6387 Use octal only for unibyte strings.
6388 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 6389
048addec
JD
6390 * lread.c (read_escape): New arg BYTEREP for reporting whether
6391 escape forces unibyte or multibyte.
6392 (read1): When reading a string, take note of that info.
0142178a 6393
048addec 63942001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 6395
048addec
JD
6396 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
6397 comparison to test lisp value returned by Fget.
d4824a5d 6398
048addec 63992001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 6400
048addec 6401 * lisp.h (max_specpdl_size): Add declaration.
b1356234 6402
048addec 6403 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 6404
048addec
JD
6405 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
6406 Handle modifier bits. Correct typo in error message.
99e380ee 6407
048addec 64082001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 6409
048addec
JD
6410 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
6411 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
6412 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
6413 Update calls to Fdefine_abbrev.
6414 (write_abbrev): Update for changed data format.
6415 Don't list "system" abbrevs.
6416 (Fexpand_abbrev): Update use count with new data format.
6417 (describe_abbrev): Update for changed data format.
6418 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 6419
048addec 6420 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 6421
048addec 6422 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 6423
048addec
JD
6424 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
6425 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 6426
048addec
JD
6427 * keymap.c (Flookup_key): Error message if key has wrong data type.
6428 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
6429 (exclude_key): New variable.
59a86c99 6430
048addec 64312001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 6432
048addec
JD
6433 * xterm.c (x_setup_relief_colors): Don't compute an image's
6434 background color if it doesn't have a Pixmap.
eb77a5f4 6435
048addec
JD
6436 * xterm.c (notice_overwritten_cursor): Don't depend on
6437 output_cursor and updated_area. Compare pixel coordinates with
6438 window's cursor pixel coordinates.
6439 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
6440 Call notice_overwritten_cursor with new arg list.
6441 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
6442 unconditionally.
eb77a5f4 6443
048addec
JD
6444 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
6445 height of the cursor line to the amount to scroll.
eb77a5f4 6446
048addec 64472001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 6448
048addec
JD
6449 * intervals.c (set_point_both): The position after an invisible,
6450 intangible character is not an acceptable stopping point.
bb313871 6451
048addec 64522001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 6453
048addec
JD
6454 * window.c (enlarge_window): In new preserve_before code, convert
6455 CURBEG from lisp object to integer before doing arithmetic.
6052529b 6456
048addec 64572001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 6458
048addec 6459 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 6460
048addec 64612001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 6462
048addec
JD
6463 * keyboard.c (record_char): Ignore duplicate help-echo events only
6464 separated by mouse-movement. When tracking mouse, only record
6465 first and last mouse-movement event in same window.
6466 Don't record mouse-movement events in keyboard macros.
3ce081f5 6467
048addec 64682001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 6469
048addec
JD
6470 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
6471 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 6472
048addec
JD
6473 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
6474 instead of Fstring_as_unibyte.
9fabb2f5 6475
048addec 64762001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 6477
048addec 6478 The following changes remove mocklisp support:
9fabb2f5 6479
048addec 6480 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 6481
048addec
JD
6482 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
6483 `Qmocklisp' and `Qmocklisp_arguments'.
6484 Remove prototype of syms_of_mocklisp.
2fa0eedf 6485
048addec 6486 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 6487
048addec
JD
6488 * callint.c: Do not include mocklisp.h.
6489 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 6490
048addec
JD
6491 * eval.c: Remove variables `Qmocklisp_arguments',
6492 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
6493 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
6494 Do not test for mocklisp case.
6495 (Fwhile): Remove unused variable `tem'.
6496 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 6497
048addec 6498 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 6499
048addec 6500 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 6501
048addec 6502 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 6503
048addec 65042001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 6505
048addec
JD
6506 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
6507 to the left or to the right of the pointer, put it against
6508 the left screen edge.
6108b49c 6509
048addec 65102001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 6511
048addec
JD
6512 * Makefile.in (distclean): Remove .gdbinit if we are building
6513 outside the source tree.
5eea19a4 6514
048addec 65152001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 6516
048addec 6517 * w32.c (emacs_root_dir): New function.
5eea19a4 6518
048addec 6519 * msdos.c (emacs_root_dir): New function.
5eea19a4 6520
048addec
JD
6521 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
6522 of the current drive as the fallback for default_directory.
438e57dd 6523
048addec
JD
6524 * dired.c (file_name_completion): Run the elements of
6525 completion-ignored-extensions through ENCODE_FILE.
438e57dd 6526
048addec
JD
6527 * lisp.h (scmp): Remove prototype, since it's now a static
6528 function private to dired.c.
c88e5347 6529
048addec 65302001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 6531
048addec
JD
6532 * dired.c (scmp): Function moved from minibuf.c.
6533 Delete multibyte handling--used only on encoded strings.
59ce1461 6534
048addec 6535 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 6536
048addec 6537 * fns.c (merge): Add QUIT call.
59ce1461 6538
048addec 65392001-12-18 Dave Love <fx@gnu.org>
8727d588 6540
048addec
JD
6541 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
6542 language/georgian.el.
8727d588 6543
048addec 65442001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 6545
048addec
JD
6546 * Makefile.in (lisp, shortlisp): Synchronize with changes to
6547 lisp/Makefile.in:DONTCOMPILE.
cc63037e 6548
048addec 65492001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 6550
048addec
JD
6551 * xdisp.c (window_box_height): Do not return negative values.
6552 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 6553
048addec 6554 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 6555
048addec 6556 * term.c (keys): Likewise.
deece6f5 6557
048addec 6558 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 6559
048addec 65602001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 6561
048addec
JD
6562 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
6563 patch (COMPOSING_P, not COMPOSING).
28ff4293 6564
048addec 65652001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 6566
048addec 6567 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 6568
048addec
JD
6569 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
6570 before calling decode_coding.
9b46de40 6571
048addec 6572 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 6573
048addec
JD
6574 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
6575 instead of only for COMPOSITION_DISABLED.
9b46de40 6576
048addec 65772001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 6578
048addec 6579 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 6580
048addec 6581 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 6582
048addec
JD
6583 * buffer.h (struct buffer): New field `display_error_modiff'.
6584 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 6585
048addec 6586 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 6587
048addec
JD
6588 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
6589 Call redisplay_window, but not if display_error_modiff field says no.
6590 (redisplay_window_error): New function.
6591 (displayed_buffer): New variable.
6592 (redisplay_internal, redisplay_windows): Call the new functions
6593 instead of redisplay_window directly.
2cd23960 6594
048addec 65952001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 6596
048addec 6597 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 6598
048addec 65992001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 6600
048addec
JD
6601 * makefile.w32-in (EMACSLOADPATH): Define.
6602 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
6603 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 6604
048addec 66052001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 6606
048addec
JD
6607 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
6608 parameter have a numeric value all the time.
f6fa0866 6609
048addec 6610 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 6611
048addec 66122001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 6613
048addec 6614 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 6615
048addec
JD
6616 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
6617 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 6618
048addec 66192001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 6620
048addec
JD
6621 * xdisp.c (move_it_vertically_backward): Change heuristic
6622 for the case that we didn't move far enough initially.
91c153e2 6623
048addec
JD
6624 * window.c (Frecenter): Simplify computation in the case of window
6625 system frames and ARG < 0; use window_box_height.
65b7d3e7 6626
048addec 66272001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 6628
048addec
JD
6629 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
6630 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 6631
048addec 66322001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 6633
048addec
JD
6634 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
6635 arg is negative.
be676094 6636
048addec 66372001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 6638
048addec
JD
6639 * m/hp800.h: Split the __hpux conditional into the parts
6640 that are right for GNU/Linux too and the parts that are not.
6641 Use the former if GNU_LINUX.
6642 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 6643
048addec 6644 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 6645
048addec 66462001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 6647
048addec
JD
6648 * macros.c, msdos.c, w16select.c: Change doc-string comments to
6649 `new style' [w/`doc:' keyword].
032a857d 6650
048addec 66512001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 6652
048addec
JD
6653 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
6654 before using.
b6270150 6655
048addec 66562001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 6657
048addec
JD
6658 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
6659 keyword].
98cbb9fa 6660
048addec 66612001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 6662
048addec 6663 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 6664
048addec 6665 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 6666
048addec 66672001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 6668
048addec
JD
6669 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
6670 Add comment to explain where the struct came from.
6671 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
6672 (add_menu_item): Process pop-up menus first to avoid memory leak.
6673 (add_menu_item, w32_menu_display_help): Use `help' field as
6674 Lisp_Object.
6675 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 6676
048addec 66772001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 6678
048addec 6679 * COPYING: Moved back.
fa336b91 6680
048addec
JD
6681 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
6682 Add parentheses around && within ||.
077907d4 6683
048addec 6684 * indent.c (compute_motion): Likewise.
aa2af83a 6685
048addec 6686 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 6687
048addec
JD
6688 * coding.c (setup_coding_system, shrink_encoding_region)
6689 (Fdecode_sjis_char): Likewise.
60a653f1 6690
048addec 66912001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 6692
048addec
JD
6693 * xdisp.c (display_mode_element): Don't read past end of string if
6694 it ends with '%'.
60a653f1 6695
048addec
JD
6696 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
6697 can hold.
60a653f1 6698
048addec
JD
6699 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
6700 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
6701 type changed to Lisp_Object.
6702 (syms_of_data): DEFVAR_LISP them.
60a653f1 6703
048addec 67042001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 6705
048addec
JD
6706 * callproc.c (init_callproc): Set Vdata_directory based on the source
6707 location whenever Emacs was run uninstalled.
60a653f1 6708
048addec 67092001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 6710
048addec
JD
6711 * config.in (HAVE_WORKING_VFORK): New #undefs.
6712 * process.c (create_process):
6713 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
6714 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
6715 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
6716 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
6717 * m/intel386.h (HAVE_VFORK): Likewise.
6718 * m/mips-siemens.h (HAVE_VFORK): Likewise.
6719 * m/mips.h (HAVE_VFORK): Likewise.
6720 * s/freebsd.h (vfork): Remove #define.
6721 * s/lynxos.h (HAVE_VFORK): Remove #undef.
6722 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 6723
048addec 67242001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 6725
048addec
JD
6726 * s/hpux10.h (random): Add undef.
6727 (HAVE_RANDOM): Define it just once.
60a653f1 6728
048addec 67292001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 6730
048addec 6731 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 6732
048addec 67332001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 6734
048addec
JD
6735 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
6736 scroll bars of the frame before deleting the frame itself. If the
6737 frame has a widget, delete the frame with XtDestroyWidget, and do
6738 not call XDestroyWindow before that.
60a653f1 6739
048addec 67402001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 6741
048addec 6742 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 6743
048addec 6744 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 6745
048addec 67462001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 6747
048addec
JD
6748 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
6749 excessively large.
60a653f1 6750
048addec
JD
6751 * insdel.c (make_gap_larger): New function.
6752 (make_gap_smaller): New function.
6753 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
6754 Call make_gap_smaller if arg is negative.
60a653f1 6755
048addec 67562001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 6757
048addec
JD
6758 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
6759 Pass a dummy argument when calling interrupt_signal.
6760 (parse_menu_item): Mark disabled items before checking for empty def.
6761 (read_char_minibuf_menu_prompt): Make safety more visible.
6762 (read_key_sequence): Add a `first_unbound' variable.
6763 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
6764 unbound prefix as soon as we can detect it.
60a653f1 6765
048addec
JD
6766 * doc.c (Fsnarf_documentation): Add prototype.
6767 (get_doc_string): Handle negative arguments.
6768 (Fdocumentation): Use AREF and ASIZE.
6769 Move the calls to get_doc_string to a single place.
6770 Don't confuse an interactive-spec for a docstring reference.
6771 (Fdocumentation_property): Take advantage of the fact that
6772 get_doc_string now ignores the sign of the docstring position.
60a653f1 6773
048addec 6774 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 6775
048addec 67762001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 6777
048addec 6778 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
60a653f1 6779
048addec 67802001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 6781
048addec
JD
6782 * xterm.c (x_draw_image_relief): Use predefined macro instead of
6783 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 6784
048addec 67852001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 6786
048addec
JD
6787 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
6788 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 6789
048addec 6790 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 6791
048addec 67922001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 6793
048addec 6794 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 6795
048addec 67962001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 6797
048addec 6798 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 6799
048addec 68002001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 6801
048addec 6802 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 6803
048addec
JD
6804 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
6805 [!WM_MOUSELEAVE]: Define.
60a653f1 6806
048addec
JD
6807 * w32menu.c (current_popup_menu, get_menu_item_info):
6808 (set_menu_item_info): New vars.
6809 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
6810 (w32_menu_show): Set current_popup_menu.
6811 (add_menu_item): Allocate new strings for owner-drawn menu items
6812 and help strings.
6813 Use owner-draw for disabled menu items again.
6814 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
6815 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 6816
048addec
JD
6817 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
6818 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
6819 <WM_EXITMENULOOP>: Free menu strings.
6820 <WM_MOUSELEAVE>: Stop tracking mouse.
6821 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 6822
048addec
JD
6823 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
6824 and mouse face.
60a653f1 6825
048addec 68262001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 6827
048addec
JD
6828 The following changes add left-fringe and right-fringe
6829 frame parameters to adjust fringe widths, or remove one or
6830 both fringes.
60a653f1 6831
048addec
JD
6832 * frame.h (struct frame): Remove trunc_area_pixel_width and
6833 trunc_area_cols fields.
6834 (Qleft_fringe, Qright_fringe): Declare.
6835 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 6836
048addec
JD
6837 * frame.c (Qleft_fringe, Qright_fringe): New vars.
6838 (syms_of_frame): Initialize them.
60a653f1 6839
048addec
JD
6840 * window.c (coordinates_in_window): Handle separate left and right
6841 fringe widths.
60a653f1 6842
048addec
JD
6843 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
6844 and fringe_cols fields.
6845 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
6846 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
6847 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
6848 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
6849 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
6850 (x_compute_fringe_widths): Add prototype.
60a653f1 6851
048addec
JD
6852 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
6853 fill fringe evenly with small dashes.
6854 (x_draw_fringe_bitmap): Clear background if necessary. Align and
6855 clip the new ZV bitmap to avoid jitter between rows.
6856 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
6857 background. Don't draw fringe bitmaps if fringe width is zero.
6858 (x_compute_fringe_widths): New function.
6859 (x_new_font, x_set_window_size_1): Use it.
60a653f1 6860
048addec
JD
6861 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
6862 (x_set_frame_parameters): Process `font' parameter before other
6863 parameters as fringe widths depend on it.
6864 (x_set_fringe_width): New function.
6865 (x_figure_window_size): Use x_compute_fringe_widths.
6866 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
6867 parameters.
60a653f1 6868
048addec
JD
6869 * widget.c (set_frame_size): Use x_compute_fringe_widths.
6870 (EmacsFrameSetCharSize): Ditto.
60a653f1 6871
048addec
JD
6872 * w32term.h: Merged changes from xterm.h.
6873 * w32term.c: Merged changes from xterm.c.
6874 * w32fns.c: Merged changes from xfns.c.
60a653f1 6875
048addec 68762001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 6877
048addec 6878 * COPYING: Removed.
60a653f1 6879
048addec 68802001-11-29 Dave Love <fx@gnu.org>
60a653f1 6881
048addec
JD
6882 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
6883 extra extra slot.
6884 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 6885
048addec 68862001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 6887
048addec
JD
6888 * fileio.c (file-name-coding-system)
6889 (default-file-name-coding-system): Doc fix (links to referenced
6890 variables added).
60a653f1 6891
048addec 68922001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 6893
048addec
JD
6894 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
6895 Add dummy uses of gcproN variables.
60a653f1 6896
048addec
JD
6897 * category.c (describe_category, describe_category_1)
6898 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
6899 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 6900
048addec 69012001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 6902
048addec 6903 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 6904
048addec
JD
6905 * Makefile.in (lispdir): New variable, referring to build dir.
6906 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 6907
048addec 69082001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 6909
048addec
JD
6910 * w32menu.c (w32_menu_display_help): Actually add the new argument
6911 OWNER.
60a653f1 6912
048addec 69132001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 6914
048addec
JD
6915 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
6916 menu items. From David Ponce <dponce@wanadoo.fr>.
6917 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
6918 conditionally.
6919 (w32_menu_display_help): New argument OWNER. Rewritten to store a
6920 help event in the owner frame's keyboard buffer.
60a653f1 6921
048addec
JD
6922 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
6923 (Fx_show_tip): Don't subtract last width from row width.
6924
6925 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
6926 (w32_read_socket): Use EQ to compare frames.
60a653f1 6927
048addec 69282001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 6929
048addec
JD
6930 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
6931 OVERLAPS_P.
60a653f1 6932
048addec 69332001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 6934
048addec
JD
6935 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
6936 `gcpro3' and `gcpro4'.
60a653f1 6937
048addec 6938 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 6939
048addec 69402001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 6941
048addec 6942 * ccl.c: Use AREF and ASIZE.
60a653f1 6943
048addec 69442001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 6945
048addec
JD
6946 * lisp.h (run_hook_list_with_args): Remove.
6947 (LIST_END_P): Fix call to wrong_type_argument.
6948 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 6949
048addec 69502001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 6951
048addec
JD
6952 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
6953 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 6954
048addec
JD
6955 * eval.c: Use AREF and ASIZE.
6956 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 6957
048addec
JD
6958 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
6959 which match the end of the file-name.
6960 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
6961 is not a valid env var, but leave it as is instead.
60a653f1 6962
048addec
JD
6963 * keymap.c (access_keymap): Handle t bindings like nil bindings.
6964 Make nil bindings in char-tables transparent.
6965 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 6966
048addec 69672001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 6968
048addec
JD
6969 * textprop.c (set_text_properties_1): Allow START, END in either order.
6970 Do nothing if range is empty.
60a653f1 6971
048addec 6972 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 6973
048addec
JD
6974 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
6975 (clean): Not here.
60a653f1 6976
048addec 69772001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 6978
048addec
JD
6979 * textprop.c (set_text_properties_1): Clearly mark that the
6980 interval should not be empty.
60a653f1 6981
048addec
JD
6982 * intervals.c (graft_intervals_into_buffer):
6983 Don't call set_text_properties_1 on an empty interval.
60a653f1 6984
048addec 69852001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 6986
048addec 6987 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 6988
048addec
JD
6989 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
6990 don't lose the data in it.
60a653f1 6991
048addec 69922001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 6993
048addec 6994 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 6995
048addec 6996 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
60a653f1 6997
048addec 6998 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
60a653f1 6999
048addec 70002001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7001
048addec 7002 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 7003
048addec 70042001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 7005
048addec
JD
7006 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
7007 Niemitalo <kon@iki.fi>.
60a653f1 7008
048addec 70092001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 7010
048addec 7011 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 7012
048addec
JD
7013 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
7014 (Fx_show_tip): Block input during frame creation.
7015 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 7016
048addec 70172001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 7018
048addec
JD
7019 * lread.c (Fload): Detect recursive load error for more than 3
7020 nestings of the same file.
7021 (Vrecursive_load_depth_limit): Variable deleted.
7022 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 7023
048addec 70242001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 7025
048addec
JD
7026 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
7027 mouse position if either left or top is not specified.
60a653f1 7028
048addec
JD
7029 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
7030 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
7031 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
7032 (my_create_tip_window): Assign tip_window.
7033 (x_create_tip_frame): Use same defaults as X.
7034 (compute_tip_xy): Remove unused variable. Use full screen width.
7035 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 7036
048addec
JD
7037 * w32term.c (x_after_update_window_line): Doc fix.
7038 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
7039 frames.
7040 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 7041
048addec
JD
7042 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
7043 for all Windowed systems.
60a653f1 7044
048addec 70452001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 7046
048addec
JD
7047 * msdos.c (IT_clear_screen): If the frame's faces are not yet
7048 realized, use the initial screen colors to clear the screen.
60a653f1 7049
048addec 70502001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 7051
048addec
JD
7052 * textprop.c (Fset_text_properties): Remove unused variables
7053 `unchanged', `prev_changed', `s' and `len'.
60a653f1 7054
048addec
JD
7055 * search.c (Freplace_match): Remove unused variable `inslen'.
7056
7057 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
7058
70592001-11-22 Jason Rumney <jasonr@gnu.org>
7060
7061 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
7062 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
7063 (my_create_tip_window): New function.
7064 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
7065 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
7066
70672001-11-20 Jason Rumney <jasonr@gnu.org>
7068
7069 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
7070 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
7071
7072 * w32fns.c (Vw32_system_coding_system): Remove.
7073 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
7074
70752001-11-19 Stefan Monnier <monnier@cs.yale.edu>
7076
7077 * fileio.c (Fwrite_region): Move choose_write_coding_system to
7078 after build_annotations.
7079
7080 * syntax.c (describe_syntax): Add dummy arg.
7081 (describe_syntax_1): Update call to describe_vector.
7082
7083 * category.c (describe_category): Add dummy arg.
7084 (describe_category_1): Update call to describe_vector.
7085
7086 * keymap.c (Fdescribe_vector): Add `describer' parameter.
7087 (describe_command, describe_translation): Add dummy second param.
7088 (describe_map): Call elt_describer with two arguments.
7089 (describe_vector_princ): Add `fun' parameter.
7090 Call it instead of the hardcoded `princ'.
7091 (describe_vector): Add arg `args'.
7092 Pass it as a new second argument to elt_describer.
60a653f1 7093
048addec 7094 * keymap.h (describe_vector): Update prototype.
60a653f1 7095
048addec
JD
7096 * frame.c: Don't include keymap.h any more.
7097 (keys_of_frame): Remove.
60a653f1 7098
048addec 7099 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 7100
048addec 7101 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 7102
048addec 71032001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 7104
048addec
JD
7105 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
7106 if defined, 0 otherwise.
7107 (MAP_FAILED): Define if not defined and use it to test mmap failure.
7108 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 7109
048addec 71102001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 7111
048addec 7112 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 7113
048addec 71142001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 7115
048addec
JD
7116 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
7117 (x_draw_bar_cursor): If the background color of the glyph under
7118 the cursor equals the frame's cursor color, use the glyph's
7119 foreground color for drawing the bar cursor.
7120 (x_after_update_window_line): Clear internal border in different
7121 circumstances.
7122 (w32_set_vertical_scroll_bar): Check for width and height > 0.
7123 (w32_draw_relief_rect): Correct relief by 1 pixel.
7124 (x_set_glyph_string_background_width):
7125 Set extends_to_end_of_line_p if the row's fill_line_p is set and
7126 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
7127 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
7128 if cursor_in_non_selected_windows is false.
7129 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
7130 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
7131 Notice if cursor gets overwritten.
7132 (notice_overwritten_cursor): Renamed from
7133 note_overwritten_text_cursor. Rewritten to take glyph widths
7134 into account, and to take X positions as parameters.
7135 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
7136 around call to x_draw_glyphs.
7137 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
7138 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
7139 color to use for image glyph reliefs.
7140 (x_draw_image_relief): Accept zero tool_bar_button_relief.
7141 (glyph_rect): Remove unused variable `area'.
60a653f1 7142
048addec
JD
7143 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
7144 some items.
7145 (x_set_internal_border_width): Set frame garbaged when window
7146 doesn't exist yet.
7147 (Fx_create_frame): Accept zero tool_bar_button_relief.
7148 (x_clear_image_1, four_corners_best, image_background)
7149 (image_background_transparent): New functions.
7150 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
7151 (gs_format): Add `:background' entry.
7152 (lookup_image): Set IMG's background color if specified.
7153 (pbm_load, xbm_load_image, png_load): Set IMG's background field
7154 when appropriate.
7155 (x_clear_image_1): Reset `background_valid' and
7156 `background_transparent_valid' fields.
7157 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
7158 calculating it here. Set IMG's background_transparent field.
7159 (enum xpm_keyword_index): Add XPM_BACKGROUND.
7160 (enum png_keyword_index): Add PNG_BACKGROUND.
7161 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
7162 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
7163 (enum gif_keyword_index): Add GIF_BACKGROUND.
7164 (enum gs_keyword_index): Add GS_BACKGROUND.
7165 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
7166 Pre-calculate image background color where necessary.
7167 (x_create_x_image_and_pixmap, xbm_load, gs_load):
7168 Use display info's n_cbits entry for screen depth.
7169 (Fx_show_tip): Remove unused variables `buffer', `top',
7170 `left', `max_width' and `max_height'.
60a653f1 7171
048addec 7172 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 7173
048addec 71742001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 7175
048addec 7176 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 7177
048addec 71782001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 7179
048addec 7180 * frame.c (Fframe_live_p): Doc fix.
60a653f1 7181
048addec 71822001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 7183
048addec
JD
7184 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
7185 (message_dolog_marker3): New static variables hold three markers.
7186 (syms_of_xdisp): Initialize and staticpro them.
7187 (message_dolog): Use message_dolog_marker1..3 instead of
7188 allocating markers each time. Unchain them when done.
60a653f1 7189
048addec 71902001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 7191
048addec 7192 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 7193
048addec 71942001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 7195
048addec 7196 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 7197
048addec 71982001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 7199
048addec 7200 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 7201
048addec 72022001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 7203
048addec 7204 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 7205
048addec 72062001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 7207
048addec
JD
7208 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
7209 with invalid position.
60a653f1 7210
048addec 72112001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 7212
048addec 7213 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 7214
048addec
JD
7215 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
7216 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
7217 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 7218
048addec 7219 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 7220
048addec 72212001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7222
048addec
JD
7223 * fileio.c (build_annotations): Split off the tail.
7224 (build_annotations_2): New fun. Extracted from build_annotations.
7225 (Fwrite_region): Split the call to build_annotations into two
7226 calls to build_annotations and build_annotations_2.
077907d4 7227
048addec 72282001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 7229
048addec
JD
7230 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
7231 clear_waiting_for_input with argument.
1756e2fb 7232
048addec 7233 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 7234
048addec 7235 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 7236
048addec 7237 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 7238
048addec 7239 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 7240
048addec 72412001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 7242
048addec
JD
7243 * fileio.c (choose_write_coding_system): New fun, extracted
7244 from Fwrite_region.
7245 (Fwrite_region): Use it.
fa336b91 7246
048addec
JD
7247 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
7248 (funcall_lambda, run_hook_with_args): Make static and add prototype.
7249 (ml_apply, find_handler_clause): Add prototype.
fa336b91 7250
048addec 72512001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 7252
048addec 7253 * config.in: Add #undef HAVE_COFF_H.
fa336b91 7254
048addec
JD
7255 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
7256 Required for ISC 4.1.
fa336b91 7257
048addec 72582001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 7259
048addec
JD
7260 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
7261 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 7262
048addec 72632001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 7264
048addec
JD
7265 The following changes are made to clean up the various internal
7266 references to the fringes to actually use the term `fringe' for
7267 them. Previously, they were called `flags areas', `bitmap areas',
7268 `left/right side of windows', or implicitly as `flags' or
7269 `bitmaps':
fa336b91 7270
048addec
JD
7271 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
7272 Comments fixed. Use renamed symbols.
06e8f738 7273
048addec 7274 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 7275
048addec
JD
7276 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
7277 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
7278 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 7279
048addec 7280 * msdos.c: Comment fix.
9ce647f4 7281
048addec 7282 * w32fns.c: Use renamed symbols.
9b784ab8 7283
048addec
JD
7284 * w32term.c: Comment fixes. Use renamed symbols.
7285 (fringe_bitmap_type): Renamed from bitmap_type.
7286 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
7287 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
7288 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 7289
048addec
JD
7290 * w32term.h: Comment fixes. Use renamed symbols.
7291 (fringes_extra): Renamed from flags_areas_extra.
7292 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
7293 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
7294 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
7295 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
7296 (FRAME_X_LEFT_FRINGE_WIDTH):
7297 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
7298 (FRAME_X_RIGHT_FRINGE_WIDTH):
7299 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 7300
048addec 7301 * widget.c: Use renamed symbols.
9f7e52b4 7302
048addec
JD
7303 * window.c: Comment fixes. Use renamed symbols.
7304 (coordinates-in-window-p): Doc fix.
fa336b91 7305
048addec 7306 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 7307
048addec 7308 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 7309
048addec 7310 * xfns.c: Use renamed symbols.
89512fcd 7311
048addec
JD
7312 * xterm.c: Comment fixes. Use renamed symbols.
7313 (fringe_bitmap_type): Renamed from bitmap_type.
7314 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
7315 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
7316 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 7317
048addec
JD
7318 * xterm.h: Comment fixes. Use renamed symbols.
7319 (fringes_extra): Renamed from flags_areas_extra.
7320 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
7321 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
7322 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
7323 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
7324 (FRAME_X_LEFT_FRINGE_WIDTH):
7325 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
7326 (FRAME_X_RIGHT_FRINGE_WIDTH):
7327 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
7328
73292001-11-15 Jason Rumney <jasonr@gnu.org>
7330
7331 * w32menu.c (add-menu-item): Make help_echo and radio buttons
7332 work for most menu items. From David Ponce
7333 <david.ponce@wanadoo.fr>.
7334
73352001-11-15 Gerd Moellmann <gerd@gnu.org>
7336
7337 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
7338 Some x_set_* function expect to be called even if old and new
7339 value are equal.
7340
7341 * xdisp.c (build_desired_tool_bar_string): Accept zero
7342 tool_bar_button_relief.
7343
7344 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
7345
7346 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
7347
7348 * xterm.c (x_draw_bar_cursor): If the background color of the
7349 glyph under the cursor equals the frame's cursor color, use
7350 the glyph's foreground color for drawing the bar cursor.
7351
7352 * dispnew.c (direct_output_forward_char): Fix character/byte
7353 position comparison.
7d18891d 7354
048addec 73552001-11-15 Miles Bader <miles@gnu.org>
d2936d21 7356
048addec
JD
7357 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
7358 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
7359 Update arguments to find_field.
7360 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
7361 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
7362 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
7363 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 7364
048addec 73652001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 7366
048addec 7367 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 7368
048addec
JD
7369 * dispextern.h (image_background, image_background_transparent):
7370 Conditionalize on HAVE_X_WINDOWS.
7d18891d 7371
048addec 73722001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 7373
048addec 7374 * print.c (Fprin1_to_string): Doc fix.
7d18891d 7375
048addec 7376 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 7377
048addec 7378 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 7379
048addec 7380 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 7381
048addec 7382 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 7383
048addec 7384 * eval.c (syms_of_eval): Doc fix.
7d18891d 7385
048addec 7386 * coding.c (syms_of_coding): Doc fix.
7d18891d 7387
048addec 7388 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 7389
048addec 7390 * dispnew.c (syms_of_display): Doc fix.
9474c847 7391
048addec 7392 * category.c (Fget_unused_category): Doc fix.
9474c847 7393
048addec 7394 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 7395
048addec 73962001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 7397
048addec 7398 * print.c (prin1, print): Doc fix.
e3059a5d 7399
048addec 74002001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 7401
048addec
JD
7402 * fontset.h: Remove declarations of variables
7403 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 7404
048addec
JD
7405 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
7406 `Vclip_large_size_font'.
eae936e2 7407
048addec 74082001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 7409
048addec 7410 * w32fns.c: Doc fix.
ddb67bdc 7411
048addec 74122001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 7413
048addec 7414 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 7415
048addec 7416 * fns.c: Doc fix.
6e1b91d7 7417
048addec 7418 * emacs.c: Doc fix.
1c1d3d69 7419
048addec 7420 * coding.c: Doc fix.
1c1d3d69 7421
048addec
JD
7422 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
7423 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
7424 `new style' [w/`doc:' keyword].
b6f4c7ba 7425
048addec 74262001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 7427
048addec
JD
7428 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
7429 LeaveNotify events. Only FocusIn and FocusOut do that now.
7430 (x_display_and_set_cursor): Do display hollow cursors in active
7431 minibuffer windows when they are not selected.
b6f4c7ba 7432
048addec 74332001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 7434
048addec
JD
7435 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
7436 * w32term.c: Change doc-string comments to `new style'.
7437 [w/`doc:' keyword]. Doc fixes.
a89f435d 7438
048addec
JD
7439 * w32fns.c: Don't define max.
7440 (Fx_open_connection): Only execute once.
a4cd0cd7 7441
048addec 74422001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 7443
048addec
JD
7444 * ccl.c: Change macros to use do-while block instead of if-else.
7445 Use braces to follow GNU Coding Standards.
eafb659a 7446
048addec 74472001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 7448
048addec 7449 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 7450
048addec 7451 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 7452
048addec
JD
7453 * insdel.c (replace_range): Use adjust_markers_for_replace
7454 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 7455
048addec 7456 * intervals.h: Declare set_text_properties and set_text_properties_1.
a4cd0cd7 7457
048addec
JD
7458 * textprop.c (set_text_properties_1): New subroutine
7459 broken out of set_text_properties.
7460 (set_text_properties): Use set_text_properties_1.
91823618 7461
048addec
JD
7462 * intervals.c (graft_intervals_into_buffer):
7463 Use set_text_properties_1 to clear out properties.
91823618 7464
048addec
JD
7465 * search.c (Freplace_match): Use replace_range to insert
7466 and delete. Don't request property inheritance from
7467 surrounding text.
86928dfb 7468
048addec 74692001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 7470
048addec
JD
7471 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
7472 vertical fonts. Allow them if face name is explicitly specified.
7473 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 7474
048addec 74752001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 7476
048addec
JD
7477 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
7478 instead of malloc/free.
a78e0303 7479
048addec 74802001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 7481
048addec
JD
7482 * xfaces.c (merge_face_vectors): Use braces to follow GNU
7483 Coding Standards.
7484 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 7485
048addec 7486 * buffer.c (Fbury_buffer): Likewise.
0c99b139 7487
048addec 7488 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 7489
048addec
JD
7490 * coding.c (encode_coding): Use precomputed value of `src'.
7491 (encode_coding): Remove unused variable `src_end'.
7492 (code_convert_region): Remove unused variables `count'.
830ddd77 7493
048addec 74942001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 7495
048addec
JD
7496 * w32term.c (x_display_and_set_cursor): Do not move system caret
7497 if cursor_glyph is NULL.
55c6d645 7498
048addec 74992001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 7500
048addec 7501 * keymap.c (access_keymap): Fix compilation error.
5de38842 7502
048addec 75032001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 7504
048addec 7505 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 7506
048addec 75072001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 7508
048addec
JD
7509 * intervals.c (graft_intervals_into_buffer):
7510 Remove #ifdef'd-out code.
7511 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 7512
048addec
JD
7513 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
7514 code (eval-current-buffer).
7515 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 7516
048addec 75172001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 7518
048addec 7519 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 7520
048addec 75212001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 7522
048addec 7523 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 7524
048addec
JD
7525 * keyboard.c (make_lispy_event): Check integerness and fix
7526 Lisp_Object/int mixup.
17893c65 7527
048addec 75282001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 7529
048addec 7530 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 7531
048addec
JD
7532 * fontset.c (fontset_font_pattern): Remove unused variable
7533 `family_registry'.
d5360cc7 7534
048addec 7535 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 7536
048addec 75372001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 7538
048addec 7539 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 7540
048addec
JD
7541 * buffer.c (Fkill_buffer): Don't delete auto save file
7542 if buffer is modified.
d9d54213 7543
048addec 75442001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 7545
048addec
JD
7546 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
7547 CHECK_NUMBER_CDR.
b116830b 7548
048addec 75492001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 7550
048addec 7551 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 7552
048addec 75532001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 7554
048addec 7555 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 7556
048addec 75572001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 7558
048addec 7559 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 7560
048addec 75612001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 7562
048addec
JD
7563 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
7564 the program image directly.
982f6c7e 7565
048addec 75662001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 7567
048addec 7568 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 7569
048addec 75702001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 7571
048addec
JD
7572 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
7573 and CHECK_BUFFER.
d31053f9 7574
048addec
JD
7575 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
7576 (record_char): Likewise.
d31053f9 7577
048addec
JD
7578 * keyboard.c (make_lispy_event): Don't insist a drag event must
7579 move to a different buffer position. Instead, check for moving at
7580 least double_click_fuzz.
982f6c7e 7581
048addec 7582 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 7583
048addec 7584 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 7585
048addec
JD
7586 * indent.c (current_column_1, Fmove_to_column): Separate the code
7587 for display-table glyphs from the code for buffer text, to fix
7588 bugs in the former.
830047fd 7589
048addec 75902001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 7591
048addec
JD
7592 * buffer.c (Fbuffer_local_value): New function.
7593 (syms_of_buffer): Defsubr it.
2df5238c 7594
048addec
JD
7595 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
7596 value of `cursor-in-non-selected-windows'.
4e397688 7597
048addec
JD
7598 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
7599 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
7600 (syms_of_xdisp): Initialize it.
48b0f3ae 7601
048addec 76022001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 7603
048addec 7604 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 7605
048addec
JD
7606 * coding.c: Change doc-string comments to `new style' [w/`doc:'
7607 keyword].
3ecaf7e5 7608
048addec
JD
7609 * eval.c (top_level_value, top_level_set): Remove commented and
7610 #ifdef'd-out code.
7611 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 7612
048addec 76132001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 7614
048addec 7615 * xfns.c: Include unistd.h, if it exists.
8db2e33b 7616
048addec 7617 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 7618
048addec 7619 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 7620
048addec 76212001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 7622
048addec
JD
7623 * lisp.h (CHECK_STRING_CAR): New macro.
7624 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
7625 treating XCAR and XCDR as lvalues.
7626 (openp): Use CHECK_STRING_CAR.
7627 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 7628
048addec 76292001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 7630
048addec
JD
7631 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
7632 (SIGMASKTYPE): Define.
1b1acc13 7633
048addec 7634 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 7635
048addec 76362001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 7637
048addec
JD
7638 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
7639 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
7640 Fix typos in comments.
6cb16f95 7641
048addec
JD
7642 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
7643 and #ifdef'd-out code.
7644 Fix and reindent comments.
6cb16f95 7645
048addec 7646 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 7647
048addec
JD
7648 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
7649 argument `i' in macros.
6cb16f95 7650
048addec
JD
7651 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
7652 `i' in macros.
7e9d3c2f 7653
048addec
JD
7654 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
7655 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
7656 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
7657 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
7658 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
7659 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
7660 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
7661 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
7662 in macros.
7e9d3c2f 7663
048addec
JD
7664 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
7665 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
7666 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
7667 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
7668 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
7669 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
7670 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
7671 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
7672 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
7673 (remove unused second argument).
7e9d3c2f 7674
048addec 76752001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 7676
048addec
JD
7677 * syntax.c (describe_syntax): New wrapper.
7678 (Finternal_describe_syntax_value): Rename from describe_syntax.
7679 Don't insert space at front and \n at the end.
7680 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 7681
048addec
JD
7682 * regex.c (re_wctype): Try to fix some warnings.
7683 (regcomp, regexec): Don't forget the __restrict.
9ba48103 7684
048addec 76852001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 7686
048addec 7687 * textprop.c (Fget_char_property): Doc fix.
9ba48103 7688
048addec 76892001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 7690
048addec 7691 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 7692
048addec 7693 * data.c (Fsetq_default): Ditto.
c22e59e1 7694
048addec 7695 * callint.c (Finteractive): Ditto.
9271ed2c 7696
048addec 76972001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 7698
048addec
JD
7699 * macros.c: Don't include keymap.h any more.
7700
77012001-11-01 Richard M. Stallman <rms@gnu.org>
7702
7703 * data.c (Fmake_local_variable): Doc fix.
7704
7705 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
7706 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 7707
048addec 7708 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
7709 bindings along with or instead of the buffer local map.
7710 Make the overriding maps override what they should.
7711
f00691a3 77122001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
7713
7714 * window.c (grow_mini_window): Fix typo in comment.
7715
27188d11
GM
77162001-11-01 Gerd Moellmann <gerd@gnu.org>
7717
7b49b9d2
GM
7718 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
7719 (XTset_vertical_scroll_bar): Likewise.
7720
43f7c3ea
GM
7721 * xfns.c (x_build_heuristic_mask): Use four_corners_best
7722 instead of IMAGE_BACKGROUND.
c22e59e1 7723
b350c2e5
GM
7724 * xfns.c (four_corners_best): Reindent.
7725
c22e59e1 7726 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
7727 Handle :box so that it is possible to specify sexprs.
7728
bf00d461
EZ
77292001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
7730
7731 * s/hpux11.h: New file.
7732
f00691a3 77332001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 7734
2b209b97
PJ
7735 * emacs.c (USAGE1): Show command line option --no-window-system
7736 instead of --no-windows in usage.
7737 (standard_args): Rename --no-windows to --no-window-system.
7738 (bug_reporting_address): Follow Emacs coding conventions.
7739
9dbc9081
PJ
7740 * eval.c (Fcommandp): Doc fix.
7741 Change doc-string comments to `new style' [w/`doc:' keyword].
7742
4e10df59
PJ
7743 * frame.c (Fframe_live_p): Doc fix.
7744
7745 * buffer.c (selective-display-ellipses): Doc fix.
7746
dd387b25
GM
77472001-10-31 Gerd Moellmann <gerd@gnu.org>
7748
fe957e65
GM
7749 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
7750
dd387b25
GM
7751 * xfaces.c (realize_x_face): If C is not a single-byte character,
7752 set the face's colors_copied_bitwise_p instead of the defaulted_p
7753 members which have a different meaning.
7754 (free_face_colors): Do nothing for a face whose colors have been
7755 copied bitwise.
7756
c22e59e1 7757 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 7758
f00691a3 77592001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 7760
687784e8
PJ
7761 * marker.c, mocklisp.c: Change doc-string comments to `new style'
7762 [w/`doc:' keyword].
2e1280f8 7763
b9d9a9b9
GM
77642001-10-31 Gerd Moellmann <gerd@gnu.org>
7765
7766 * fns.c (require_unwind): Return Lisp_Object.
7767
f00691a3 77682001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 7769
fa1361cb
PJ
7770 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
7771 (last-input-char): Revert doc-string to be the same as the
7772 doc-string of `last-input-event'.
7773
6c465a15 7774 * xdisp.c: Fix typos in comments.
48400103 7775
eafa3196
GM
77762001-10-31 Gerd Moellmann <gerd@gnu.org>
7777
7778 * window.c (grow_mini_window): Handle case that the root
7779 window is already smaller than the nominal mininum height.
7780
747d3f2a
SM
77812001-10-30 Stefan Monnier <monnier@cs.yale.edu>
7782
bf9bb76f
SM
7783 * emacs.c (main): Don't call keys_of_macros any more.
7784
7785 * lisp.h (keys_of_macros): Remove.
7786
7787 * macros.c (keys_of_macros): Remove.
7788
747d3f2a
SM
7789 * xfaces.c (Fface_attribute_relative_p): Declare args.
7790
5e905a57
JR
77912001-10-30 Jason Rumney <jasonr@gnu.org>
7792
7793 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
7794 (enum_font_cb2): Ignore fonts with vertical orientation.
7795
3a426197
RS
77962001-10-30 Richard M. Stallman <rms@gnu.org>
7797
7798 * keyboard.c (Finput_pending_p): Doc fix.
7799
a742d646
GM
78002001-10-30 Gerd Moellmann <gerd@gnu.org>
7801
259cf6bc
GM
7802 * xterm.c (x_after_update_window_line): Don't run the code
7803 clearing in borders for rows whose visible height is 0.
7804
3f99f948
GM
7805 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
7806 resized_p flag is set. If not set, use the much less flickering
7807 method previously used.
7808
7809 * dispnew.c (change_frame_size_1): Set frame's resized_p.
7810
7811 * frame.h (struct frame) <resized_p>: New member.
7812
b4a3be43
GM
7813 * lread.c (to_multibyte): Ensure read_buffer is at least twice
7814 as large as the number of bytes to convert.
747d3f2a 7815
a742d646
GM
7816 * lread.c (to_multibyte): New function.
7817 (read1): Use it.
7818
cacbb9e9
EZ
78192001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
7820
7821 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
7822
99cb6b2f
GM
78232001-10-30 Gerd Moellmann <gerd@gnu.org>
7824
327f42ee 7825 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
7826 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
7827 if the row's fill_line_p is set and drawing the last glyph with
7828 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 7829
99cb6b2f
GM
7830 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
7831
8e8223e2
SM
78322001-10-29 Stefan Monnier <monnier@cs.yale.edu>
7833
7834 * xmenu.c: Include coding.h and charset.h.
7835 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
7836 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
7837 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
7838 Explicitly set wv->help. Use `TRUE' rather than `True'.
7839 (menu_help_callback): Use empty_string.
7840
7841 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
7842 (Fx_popup_dialog): Explicitly init f.
7843 (w32_menu_display_help): Use empty_string.
7844
4d083a8f
RS
78452001-10-29 Richard M. Stallman <rms@gnu.org>
7846
b2304472
RS
7847 * fns.c (Frequire): Detect recursive try to require the same
7848 feature 3 or more levels deep, and get error.
7849 (require_unwind): New subroutine.
7850 (require_nesting_list): New variable.
7851 (syms_of_fns): Init and staticpro it.
7852
4d083a8f
RS
7853 * print.c (print_object): Clarify indication of insertion type.
7854
2fe41216
EZ
78552001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
7856
90480000
EZ
7857 * coding.c (syms_of_coding): Document that locale-coding-system is
7858 used for decoding input on X.
7859
2fe41216
EZ
7860 * window.c (Fscroll_left, Fscroll_right): Doc fix.
7861
f00691a3 78622001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
7863
7864 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
7865 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
7866
60ebcfe8
GM
78672001-10-29 Gerd Moellmann <gerd@gnu.org>
7868
9a7bdceb
GM
7869 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
7870 use NO_CURSOR if cursor_in_non_selected_windows is false.
7871
3f08fcd2
GM
7872 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
7873 the slant attribute if FRAME is t.
7874
0ccfdad2
GM
7875 * xfns.c (x_set_internal_border_width): Set frame garbaged
7876 when X window doesn't exist yet.
7877
ef253080
GM
7878 * xterm.c (x_after_update_window_line): Clear internal border
7879 in different circumstances.
b116830b 7880
60ebcfe8
GM
7881 * xterm.c (XTread_socket) <KeyPress>: Don't use
7882 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
7883 <handa@etl.go.jp>.
7884
73d25f9c
EZ
78852001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
7886
7887 * m/ibms390.h: New file. From Adam Thornton
7888 <athornton@sinenomine.net>.
7889
cac1daf0
GM
78902001-10-28 Gerd Moellmann <gerd@gnu.org>
7891
053b3256 7892 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 7893
cac1daf0
GM
7894 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
7895 a loop counter.
7896
f00691a3 78972001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 7898
186486eb
PJ
7899 * emacs.c: Use argv[0] instead of emacs when -t was specified.
7900
4707d2d0
PJ
7901 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
7902 keyword].
7903 Fix typos in comments.
b116830b 7904
d883731c
PJ
7905 * emacs.c (bug_reporting_address): New function.
7906 Use it when displaying usage message.
7907
04012254
PJ
7908 * minibuf.c (read_minibuf): Remove unused external declaration of
7909 variable `Qread_only'.
7910
13b1a09c
PJ
7911 * keymap.c (access_keymap): Remove unused variable `charset'.
7912
5bbf4378
MB
79132001-10-28 Miles Bader <miles@gnu.org>
7914
7915 * xfaces.c (merge_face_heights): Handle TO being relative as well.
7916 Remove #ifdef'd-out code.
7917 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
7918 (syms_of_xfaces): Initialize them.
7919
1ce1e4ee
JR
79202001-10-27 Jason Rumney <jasonr@gnu.org>
7921
7922 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
7923 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
7924 position using the system caret.
7925
7926 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
7927 (w32_system_caret_height, w32_system_caret_x)
7928 (w32_system_caret_y): New variables for tracking system caret.
7929 (w32_initialize): Initialize them.
c2d53558 7930 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 7931
c2d53558
SM
7932 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
7933 New messages types.
1ce1e4ee
JR
7934
7935 * w32term.c (note_mouse_highlight): Clear old help_echo.
7936
f00691a3 79372001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 7938
bb4600a4
PJ
7939 * xterm.c: Fix typo in a comment.
7940
7db35a48
PJ
7941 * emacs.c: Fix typos in comments.
7942 Remove unnecessary spaces.
7943 Change doc-string comments to `new style' [w/`doc:' keyword].
7944 (USAGE2): Fix typos in usage string.
7945
a7248e4f
PJ
7946 * xterm.c: Fix typo in a comment.
7947
4e30ce42
PJ
7948 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
7949 emacs.c.
7950
62725a92
GM
79512001-10-27 Gerd Moellmann <gerd@gnu.org>
7952
798dbe1f 7953 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 7954 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
7955 farther backward when target_y was not reached.
7956
62725a92
GM
7957 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
7958 Display errno only if non-zero.
7959 (sound_warning): New function.
7960 (vox_configure): Don't treat failing to set sample rate as error.
7961 (various places): Improve error messages.
7962
d4e34d24
EZ
79632001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
7964
944e6f60
EZ
7965 * fileio.c (Faccess_file): Run the argument filename through
7966 Fexpand_file_name, before using it.
7967
d4e34d24
EZ
7968 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
7969 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
7970
38d2af0c
GM
79712001-10-26 Gerd Moellmann <gerd@gnu.org>
7972
da80a8d5
GM
7973 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
7974
38d2af0c
GM
7975 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
7976 Fix clearing in the case of scroll bars on the right.
c2d53558 7977
45de4a6f 79782001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
7979
7980 * w32gui.h (XImage): Add a dummy typedef.
7981
fbd5ceb2
GM
79822001-10-26 Gerd Moellmann <gerd@gnu.org>
7983
c2d53558 7984 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 7985
b23236fb
EZ
79862001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
7987
7988 * frame.c (Fframe_parameter): Fix last change.
7989
5d991fc4
EZ
7990 * fileio.c: Revert last change (which removed old commented-out
7991 version of expand-file-name). Add a comment that explains why
7992 this old version should not be removed.
7993
879eadc3
GM
79942001-10-25 Gerd Moellmann <gerd@gnu.org>
7995
75700ff2
GM
7996 * frame.c (Fframe_parameter): Fix a bug whereby some
7997 ``artificial'' frame parameters, like `minibuffer' were not
7998 obtained by calling Fframe_parameters.
7999
dfe92a6a
GM
8000 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
8001 cursor differently.
8002
879eadc3
GM
8003 * xdisp.c (move_it_vertically_backward): Compute line height
8004 differently. Add heuristic to try to be more compatible to 20.x.
8005
e1010ebe
SM
80062001-10-25 Stefan Monnier <monnier@cs.yale.edu>
8007
d73a471b
SM
8008 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
8009
d6da5a06
GM
8010 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
8011 boolean.
e1010ebe 8012
f66bd220
MB
80132001-10-25 Miles Bader <miles@gnu.org>
8014
8015 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
8016 BG is a pointer to a structure, not a structure.
8017 (gif_format, png_format): Add missing commas.
8018
d436d538
RS
80192001-10-24 Richard M. Stallman <rms@gnu.org>
8020
8021 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 8022 (syms_of_xfaces): Defsubr it.
d436d538 8023
f00691a3 80242001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
8025
8026 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
8027 variable `area'.
8028
f00691a3 80292001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 8030
c2d53558 8031 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 8032
e2a57b34
MB
80332001-10-25 Miles Bader <miles@gnu.org>
8034
8035 * dispextern.h (struct image): Add `background',
8036 `background_valid', and `background_transparent' fields.
8037 (image_background, image_background_transparent): New declarations.
8038 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
8039 * xfns.c (image_background, image_background_transparent)
8040 (four_corners_best): New functions.
c2d53558 8041 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
8042 (gs_format): Add `:background' entry.
8043 (lookup_image): Set IMG's background color if specified.
8044 (pbm_load, xbm_load_image, png_load): Set IMG's background field
8045 when appropriate.
8046 (x_clear_image_1): Reset `background_valid' and
8047 `background_transparent_valid' fields.
8048 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
8049 calculating it here. Set IMG's background_transparent field.
8050 (enum xpm_keyword_index): Add XPM_BACKGROUND.
8051 (enum png_keyword_index): Add PNG_BACKGROUND.
8052 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
8053 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
8054 (enum gif_keyword_index): Add GIF_BACKGROUND.
8055 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 8056 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
8057 Pre-calculate image background color where necessary.
8058 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
8059 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
8060 color to use for image glyph reliefs.
8061
b547b6e8
GM
80622001-10-24 Gerd Moellmann <gerd@gnu.org>
8063
d9e3b8c6
GM
8064 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
8065 in full-width rows.
c2d53558 8066
b547b6e8
GM
8067 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
8068 Fix clearing of area not covered by scroll bar.
8069
f00691a3 80702001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
8071
8072 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
8073 and `real_start'.
c2d53558 8074 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
8075 (glyph_rect): Remove unused variable `area'.
8076
76cb5e06
GM
80772001-10-24 Gerd Moellmann <gerd@gnu.org>
8078
bdbdebff 8079 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
8080
8081 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
8082 (row_containing_pos): Take additional argument DY.
8083 Treat rows ending in middle of char differently.
62e33982
GM
8084 (display_line): Handle tabs on window systems differently.
8085
8086 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
8087 with additional argument.
8088
8089 * dispextern.h (row_containing_pos): Adjust prototype.
8090
76cb5e06
GM
8091 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
8092 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
8093 (try_window_id, try_window_reusing_current_matrix)
8094 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 8095 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 8096
f00691a3 80972001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 8098
c9e60620
PJ
8099 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
8100 gnuemacs).
8101 (HAVE_BOXES): Fix typo in comment.
8102 (push_menu_pane): Fix typo in comment.
8103
3b552d56
PJ
8104 * xdisp.c: (display_prop_string_p): Remove unused local declaration
8105 of `Qwhen'.
8106 (single_display_prop_string_p): Remove unused local declarations
8107 of `Qwhen' and `Qmargin'.
8108 (string_buffer_position): Remove unused variable `around'.
8109 (store_frame_title): Remove unused variable `width'.
8110
15c565ac
PJ
8111 * window.c: Don't define max.
8112 (coordinates_in_window): Remove unused variable `uy'.
8113
a8818eb9
PJ
8114 * widget.c: Don't define max.
8115
996fee11
PJ
8116 * process.c: Don't define max.
8117 (create_process): Remove unused variable `buffer'.
8118
496e1a5b
GM
81192001-10-23 Gerd Moellmann <gerd@gnu.org>
8120
c2d53558 8121 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 8122
5905ae8b
EZ
81232001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
8124
8125 * xfaces.c (Finternal_set_lisp_face_attribute)
8126 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
8127 frame is on a windowed display.
8128
24db49fb
GM
81292001-10-23 Gerd Moellmann <gerd@gnu.org>
8130
c2d53558
SM
8131 * dispnew.c (sync_window_with_frame_matrix_rows):
8132 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
8133 of marginal areas.
8134
c2d53558 8135 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 8136
f0487f05
EZ
81372001-10-23 Andreas Schwab <schwab@suse.de>
8138
8139 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
8140 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
8141
f0a48a01
GM
81422001-10-23 Gerd Moellmann <gerd@gnu.org>
8143
c2d53558 8144 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
8145 REAL_END. Notice if cursor gets overwritten.
8146 (notice_overwritten_cursor): Take X positions as parameters.
8147 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
8148 around call to x_draw_glyphs.
8149
f00691a3 81502001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 8151
fc11dff0
PJ
8152 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
8153 instead of C) and usage.
a50a10a0 8154
fc11dff0
PJ
8155 * editfns.c (char-to-string): Fix argument names (use CHAR instead
8156 of C) and usage.
a50a10a0
PJ
8157
8158 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
8159 `left', `max_width' and `max_height'.
8160
8738febd
GM
81612001-10-23 Gerd Moellmann <gerd@gnu.org>
8162
8163 * xdisp.c (display_line): For a tab continued to the next line,
8164 set row's ends_in_middle_of_char_p.
8165
653c329b
GM
81662001-10-22 Gerd Moellmann <gerd@gnu.org>
8167
8168 * xdisp.c (display_line): Fix computation of continuation lines
8169 width for TABs.
8170
f00691a3 81712001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 8172
7ba51063
PJ
8173 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
8174 `Qlaplace'.
8175
f958c5ac
PJ
8176 * fileio.c: Remove unused code.
8177
eb360291
MB
81782001-10-22 Miles Bader <miles@gnu.org>
8179
8180 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
8181 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
8182 Remove `DOC_STRINGS_IN_COMMENTS' cases.
8183
98515cf0
JR
81842001-10-21 Jason Rumney <jasonr@gnu.org>
8185
8186 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
8187
93026d88
EZ
81882001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
8189
8190 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
8191 (Finsert_string): Avoid the multi-line string literals warning.
8192
c9a95b79
MB
81932001-10-22 Miles Bader <miles@gnu.org>
8194
8195 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
8196 (Fdocumentation): Don't use it.
8197 (syms_of_doc): Don't initialize it.
8198
8199 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
8200 * print.c (Fwith_output_to_temp_buffer): Likewise.
8201 * window.c (Fsave_window_excursion): Likewise.
c2d53558 8202 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 8203 (Fsave_restriction): Likewise.
c2d53558
SM
8204 * eval.c (Frun_hooks, Frun_hook_with_args)
8205 (Frun_hook_with_args_until_failure)
8206 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
8207 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
8208 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
8209 (Funwind_protect, Fcondition_case): Likewise.
8210 * coding.c (Ffind_operation_coding_system): Likewise.
8211 * keyboard.c (Ftrack_mouse): Likewise.
8212
a3b10252
MB
82132001-10-21 Miles Bader <miles@gnu.org>
8214
c2d53558 8215 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
8216 (Fmake_hash_table): Add usage: string to doc string.
8217 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 8218 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
8219 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
8220 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
8221 (Fml_prefix_argument_loop): Likewise.
8222
f00691a3 82232001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 8224
c2d53558 8225 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 8226
c6f73eec
PJ
8227 * sysdep.c (init_sys_modes): Change doc-string comments to `new
8228 style' [w/`doc:' keyword].
8229
8230 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
8231 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
8232 comments to `new style' [w/`doc:' keyword].
8233
3cf3436e
JR
82342001-10-21 Jason Rumney <jasonr@gnu.org>
8235
8236 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
8237
c169b8f1
JR
8238 * w32term.c (remember_mouse_glyph): New function.
8239 (w32_mouse_position): Use it.
8240 (note_mouse_movement): If the mouse moved off the glyph, remember
8241 its new position.
c2d53558 8242
4fdd691b
JR
8243 * w32term.h (struct w32_output): Correct spelling of x_compatible.
8244 (w32_display_info): Add mouse_face_overlay.
8245
c169b8f1
JR
8246 * w32term.c (notice_overwritten_cursor): Renamed from
8247 note_overwritten_text_cursor. Rewritten to take glyph widths into
8248 account.
8249 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
8250 (fast_find_string_pos): New function.
8251 (fast_find_position): Return the correct vpos. Add parameter
8252 STOP. In the final row, stop before glyphs having STOP as object.
8253 Don't consider glyphs that are not from a buffer.
8254 (fast_find_position) [0]: Add a presumably more correct version
8255 for after 21.1.
8256 (expose_window_tree, expose_frame): Don't compute intersections here.
8257 (expose_window): Do it here instead.
8258 (expose_window_tree, expose_window, expose_line): Return 1 when
8259 overwriting mouse-face.
8260 (expose_window): If W is the window currently being updated, mark
8261 the frame garbaged.
8262 (expose_frame): If mouse-face was overwritten, redo it.
8263 (x_use_underline_position_properties): New variable.
8264 (syms_of_xterm): DEFVAR_BOOL it.
8265 (x_draw_glyph_string): Add comment to use it in future.
8266 (x_draw_glyph_string): Restore clipping after drawing box.
8267 Fix a computation of the underline position.
8268 (w32_get_glyph_string_clip_rect): Minor cleanup.
8269 (x_fill_stretch_glyph_string): Remove an assertion.
8270 (x_produce_glyphs): Don't convert multibyte characters
8271 to unibyte characters in unibyte buffers.
8272 (cursor_in_mouse_face_p): New function.
8273 (x_draw_stretch_glyph_string): Use it to choose a different GC
8274 when drawing a cursor within highlighted text. Don't draw
8275 background again if it has already been drawn.
8276 (x_draw_glyph_string_box): Don't draw a full-width
8277 box just because the glyph row's full_width_p flag is set.
8278 (x_draw_glyphs): Fix computation of rightmost x for
8279 full-width rows.
8280 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
8281 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
8282 change bottom shadow accordingly. Some cleanup.
8283 (x_update_window_end): Handle overwritten mouse face
8284 also for tool bar windows.
8285 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
8286 DRAW is DRAW_IMAGE_RAISED.
8287 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
8288 actually redrawn. Make the function static.
8289 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
8290 optimize away highlighting if we pass over that same overlay again.
8291 (note_mouse_highlight): Call mouse_face_overlay_overlaps
8292 to detect a case where we have to highlight a different region
8293 despite not having left the currently highlighted region.
8294 Set mouse_face_overlay in the x_display_info. Avoid changing the
8295 mouse pointer shape when show_mouse_face has already done it, or
8296 there is no need. Handle mouse-face and help-echo in strings.
8297 (glyph_rect): New function.
8298 (w32_mouse_position): Use it to raise the threshold for mouse
8299 movement event generation.
8300 (w32_initialize_display_info): Initialize the x_display_info's
8301 mouse_face_overlay.
8302 (w32_set_vertical_scroll_bar): Don't clear a zero height
8303 or width area.
8304 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
8305 a widget to zero height.
8306
3cf3436e 8307 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 8308 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
8309 equivalents in menu_items.
8310 (w32_menu_show): Don't overwrite an item's name with its key
8311 description in case the description is a multibyte string.
8312 (single_submenu): Some cleanup.
8313
8314 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
8315 (postprocess_image): New function.
8316 (lookup_image): Call it for all image types except PostScript.
8317 (x_kill_gs_process): Call postprocess_image.
8318 (tiff_error_handler, tiff_warning_handler): New functions.
8319 (tiff_load): Install them as handlers.
8320 (x_kill_gs_process): Recognize if someone has cleared the image
8321 cache under us.
8322 (valid_image_p): Protect better against invalid image
8323 specifications. Previous code could signal an error.
8324 (Fx_hide_tip, Fshow_tip): Doc fix.
8325 (Fv_max_tooltip_size): New variable.
8326 (syns_of_xfns): DEFVAR_LISP it.
8327 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
8328 window buffer to *tip* right after creating the frame. Set frame's
8329 window_width. Use a maximum tooltip size specified by
8330 Vx_max_tooltip_size, if that has valid contents.
8331 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
8332 Make sure the tooltip is completely visible.
8333 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
8334 (Fx_create_frame): Adjust the frame's height for presence
8335 of the tool bar before calling x_figure_window_size.
8336 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
8337 when the window gets smaller.
8338 (x_set_foreground_color): Set frame's cursor_pixel.
8339 (x_set_foreground_color, x_set_background_color): Cleaned up.
8340 (x_set_font): Handle case of x_new_fontset returning the same name
8341 as before, although there was a change in fontsets.
8342
386ca361
MB
83432001-10-21 Miles Bader <miles@gnu.org>
8344
c2d53558 8345 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
8346 (Flogxor): Add usage: string to doc string.
8347 * charset.c (Fstring): Likewise.
8348 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
8349 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
8350
f00691a3 83512001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 8352
03be2694
PJ
8353 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
8354
8355 * alloc.c: Reindent DEFUNs with doc: keywords.
8356
8357 * abbrev.c (Finsert_abbrev_table_description): Reindent.
8358
14ff1ee0
PJ
8359 * frame.c: Change doc-string comments to `new style' [w/`doc:'
8360 keyword].
8361
2f147815 8362See ChangeLog.9 for earlier changes.
6922b018
KH
8363
8364;; Local Variables:
49b3bd82 8365;; coding: iso-2022-7bit
6922b018 8366;; End:
2a34a036 8367
2f147815 8368 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
8369 Copying and distribution of this file, with or without modification,
8370 are permitted provided the copyright notice and this notice are preserved.