(code_convert_region_unwind): Set
[bpt/emacs.git] / src / ChangeLog
CommitLineData
39c9a034
TTN
12003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
2
3 * Makefile.in (md5.o): Add missing dependency info.
4
eb67c5d6
RS
52003-04-06 Richard M. Stallman <rms@gnu.org>
6
7 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
8
9 * marker.c (verify_bytepos): New function.
10
11 * intervals.c (set_intervals_multibyte_1): When becoming
12 multibyte, adjust right and left child sizes to a whole set of
13 characters. If an interval gets zero total-length, delete it.
14 If an interval consists of just its children, delete one of them.
15
16 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
17 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 18
eb67c5d6
RS
19 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
20 All calls deleted.
21 (lisp_malloc): Do the work here directly.
22
b1f81fc5
JB
232003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
24
25 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
26 char tables.
27
282003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
29
30 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
31 destructively change "%S" to "%s".
32
774666fb
MB
332003-04-03 Miles Bader <miles@gnu.org>
34
35 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
36 always set.
37
19c37f01
DL
382003-04-01 Dave Love <fx@gnu.org>
39
40 * xfns.c (xpm_lookup_color): Grok "opaque".
41
2f4b24c3
AC
422003-03-31 Andrew Choi <akochoi@shaw.ca>
43
44 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
45 parent window ID.
46
47 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
48
49 * macterm.h (struct mac_output): Define x_pixels_diff and
50 y_pixels_diff.
b1f81fc5 51
9443fcf6
JB
522003-03-31 Juanma Barranquero <lektu@terra.es>
53
54 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
55 blockinput.h and files included from it.
56
e072891b
KS
572003-03-31 Kim F. Storm <storm@cua.dk>
58
59 The following changes consolidates the common code related to
60 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
61 files into frame.c.
9443fcf6 62
e072891b
KS
63 * frame.c: Include blockinput.h.
64 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
65 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
66 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
67 related vars here.
68 (struct frame_parm_table, frame_parms): New table for describing
69 frame parameters and their associated Q-variable.
70 The order of the parameters corresponds to the sequence of the
71 frame_parm_handlers table in redisplay_interface.
72 (x_fullscreen_move, x_set_frame_parameters)
73 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
74 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
75 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
76 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
77 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
78 Generic functions for processing of frame parameters.
79 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
80 (display_x_get_resource, x_get_resource_string): Functions for
81 generic access to X resources.
82 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
83 (x_default_parameter, Fx_parse_geometry): Functions for generic
84 access to frame parameters.
85 (x_figure_window_size): Generic calculation of frame size. Fixed
86 to add space needed for tool bar. Also setup size_hint_flags.
87 (syms_of_frame): Intern and staticpro frame parameter variables.
88 Defvar_lisp Vx_resource_class and Vx_resource_name here.
89 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 90
e072891b
KS
91 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
92 parameter related vars defined in frame.c.
93 (EMACS_CLASS): Define here.
94 (enum FULLSCREEN_*): Define here.
95 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
96 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
97 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
98 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
99 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
100 (x_set_visibility, x_set_autoraise, x_set_autolower)
101 (x_set_unsplittable, x_set_vertical_scroll_bars)
102 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
103 (x_figure_window_size): Add prototypes.
104
105 * dispextern.h (frame_parm_handler): New typedef.
106 (struct redisplay_interface): New member frame_parm_handlers.
107 (enum resource_types): Move declaration here.
108 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
109 (x_default_parameter): Add prototypes.
110
111 * window.c: Remove extern decl for frame parameter vars.
112 (change_window_heights): New generic function;
113 replaces x_change_window_heights. All users changed.
114
115 * window.h (change_window_heights): Add prototype.
116
117 * xfaces.c: Remove extern decl for frame parameter vars.
118
119 * xterm.h (EMACS_CLASS): Remove. Use generic define.
120 (struct w32_display_info): Fix type of xrdb member.
121 (enum FULLSCREEN_*): Remove.
122 Remove prototypes for generic functions (in frame.h).
123
124 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
125 parameters now defined in frame.h and frame.c.
126 (Vx_resource_name): Remove. Use generic var.
127 (enum x_frame_parms): Remove (bogus, unused enum).
128 (check_x_display_info): Make non-static (for frame.c).
129 (struct x_frame_parm_table, x_frame_parms): Remove.
130 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
131 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
132 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
133 (x_change_window_heights, x_set_autoraise, x_set_autolower)
134 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
135 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
136 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
137 Remove. Use generic functions instead.
138 (enum resource_types): Remove.
139 (x_set_scroll_bar_default_width): New global function (for frame.c).
140 (Fx_create_frame): Depend on x_figure_window_size to add space for
141 toolbar and setup size_hint_flags.
142 (x_frame_parm_handlers): New table for redisplay_interface.
143 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 144
e072891b
KS
145 * xterm.c: Remove unnecessary extern declarations.
146 (x_fullscreen_adjust): Remove. Use generic instead.
147 (x_redisplay_interface): Add x_frame_parm_handlers member.
148
149 * w32gui.h (XrmDatabase): New (dummy) typedef.
150
151 * w32term.h (EMACS_CLASS): Remove. Use generic define.
152 (struct w32_display_info): Fix type of xrdb member.
153 (enum FULLSCREEN_*): Remove.
154 (x_fullscreen_adjust): Remove prototype.
155
156 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
157 parameters now defined in frame.h and frame.c.
158 (Vx_resource_name): Remove. Use generic var.
159 (enum x_frame_parms): Remove (bogus, unused enum).
160 (check_x_display_info): Make non-static (for frame.c).
161 (struct x_frame_parm_table, x_frame_parms): Remove.
162 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
163 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
164 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
165 (x_change_window_heights, x_set_autoraise, x_set_autolower)
166 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
167 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
168 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
169 Remove. Use generic functions instead.
170 (enum resource_types): Remove.
171 (x_set_scroll_bar_default_width): New global function (for frame.c).
172 (Fx_create_frame): Depend on x_figure_window_size to add space for
173 toolbar and setup size_hint_flags.
174 (w32_frame_parm_handlers): New table for redisplay_interface.
175 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 176
e072891b
KS
177 * w32term.c: Remove unnecessary extern declarations.
178 (x_fullscreen_adjust): Remove. Use generic instead.
179 (x_redisplay_interface): Add w32_frame_parm_handlers member.
180
181 * w32reg.c (x_get_string_resource): Use XrmDatabase.
182
183 * macgui.h (XrmDatabase): New (dummy) typedef.
184
185 * macterm.h (EMACS_CLASS): Remove.
186 (struct mac_display_info): Add xrdb member.
187 (struct mac_output): Add want_fullscreen member.
188
189 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
190 parameters now defined in frame.h and frame.c.
191 (Vx_resource_name): Remove. Use generic var.
192 (check_x_display_info): Make non-static (for frame.c).
193 (struct x_frame_parm_table, x_frame_parms): Remove.
194 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
195 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
196 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
197 (x_change_window_heights, x_set_autoraise, x_set_autolower)
198 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
199 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
200 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
201 Remove. Use generic functions instead.
202 (enum resource_types): Remove.
203 (x_set_scroll_bar_default_width): New global function (for frame.c).
204 (mac_frame_parm_handlers): New table for redisplay_interface.
205 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 206
e072891b
KS
207 * macterm.c: Remove unnecessary extern declarations.
208 (x_redisplay_interface): Add mac_frame_parm_handlers member.
209
3e6a560b
KS
210 * Makefile.in (frame.o): Add dependency on blockinput.h and files
211 included from it (atimer.h and systime.h).
212
7b7b454e
AS
2132003-03-30 Andreas Schwab <schwab@suse.de>
214
215 * xdisp.c (x_insert_glyphs): Fix swapped width and height
216 parameters for shift_glyphs_for_insert.
217
218 * macterm.c (x_redisplay_interface): Add missing entry for
219 draw_vertical_window_border.
220
beb402de
KG
2212003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
222
223 * fileio.c (Fexpand_file_name): In the no-handler case, after
224 expanding, look again for a handler and invoke it. This is needed
225 for filenames like "/foo/../user@host:/bar/../baz" -- the first
226 expansion produces "/user@host:/bar/../baz" which needs to be
227 expanded again for the finame result "/user@host:/baz".
228
b676f356
JD
2292003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
230
231 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
232 of area to be redrawn for better performance.
233
3c671a56
SM
2342003-03-28 Stefan Monnier <monnier@cs.yale.edu>
235
236 * xterm.c (take_vertical_position_into_account): Remove.
237 (xt_action_hook): Call set_vertical_scroll_bar if needed.
238 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
239 (xm_scroll_callback, x_create_toolkit_scroll_bar)
240 (x_set_toolkit_scroll_bar_thumb): Simplify.
241 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
242 (XTread_socket): Remove unused var.
243 (x_make_frame_invisible): Replace goto with else.
244
245 * xdisp.c (set_vertical_scroll_bar): New fun.
246 (redisplay_window): Use it.
247
84f2e615
RS
2482003-03-26 Richard M. Stallman <rms@gnu.org>
249
250 * xdisp.c (update_tool_bar): Recompute tool bar if
251 update_mode_lines is set. Set w->update_mode_line
252 only if the tool bar contents actually change.
253 (update_menu_bar): Undo previous change.
254
70b6104c
JD
2552003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
256
5fd6f727
JD
257 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
258 (xg_frame_set_char_size): Calculate scroll bar width before frame
259 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
260 (xg_separator_p): Check for all documented separator types.
261 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
262 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
263
70b6104c
JD
264 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
265 so tool bar gets updated.
266
d9b36d19
SM
2672003-03-26 Stefan Monnier <monnier@cs.yale.edu>
268
269 * data.c (store_symval_forwarding): Re-instate part of the code
270 that was deleted with too much enthusiasm.
271
2722003-03-25 Stefan Monnier <monnier@cs.yale.edu>
273
274 * data.c (store_symval_forwarding): Delete special read-only
275 hack for type == -1, since we now use ->constant instead.
276 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
277
278 * buffer.c (overlays_in): Declare static.
279 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
280 `constant' field rather than the variable's `type' field.
281
365fa1b3
AC
2822003-03-24 Andrew Choi <akochoi@shaw.ca>
283
284 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
285
286 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
287
288 * fns.c [MAC_OSX]: Do not redefine vector.
289
290 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
291
292 * macgui.h: Remove definition of No_Cursor.
293
d9b36d19 294 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
295
296 * xdisp.c: Define No_Cursor.
297 (x_write_glyphs, notice_overwritten_cursor)
298 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
299 (note_mouse_highlight): Remove Mac-specific code.
300 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 301
c0bcce6f
JPW
3022003-03-24 John Paul Wallington <jpw@gnu.org>
303
304 * xdisp.c (redisplay_window): If mini window's buffer is not
305 empty, then redisplay it like other windows.
306
a526b96c
KS
3072003-03-23 Kim F. Storm <storm@cua.dk>
308
309 * w32term.c (w32_draw_window_cursor): Fix last change.
310
37ab321e
KH
3112003-03-23 Kenichi Handa <handa@m17n.org>
312
a526b96c
KS
313 * alloc.c (make_string_from_bytes, make_specified_string):
314 Add `const' for the arg CONTENTS.
37ab321e
KH
315
316 * lisp.h (make_string_from_bytes, make_specified_string):
317 Prototypes adjusted.
318
7863d625
JD
3192003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
320
a526b96c 321 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 322
7863d625
JD
323 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
324 (XG_SB_RANGE): New define.
325
326 * gtkutil.c (xg_fixed_handle_expose): New function.
327 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
328 expose events.
329 (xg_update_scrollbar_pos): Take two more arguments, left and width
330 of scroll bar including borders.
331 Clear left and right part outside scroll bar separately as some
332 themes have bars that are not an even number of pixels.
d9b36d19 333 Don't set reallocate_redraws, don't call
7863d625
JD
334 gdk_window_process_all_updates.
335 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
336 so no need to change it. Calculate size and value with XG_SB_RANGE.
337
d9b36d19
SM
338 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
339 Pass left and width of scroll bar including borders to
7863d625
JD
340 xg_update_scrollbar_pos.
341
af0ad939
TTN
3422003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
343
344 * Makefile.in: Make sure space precedes end-of-line backslashes.
345
b22139fd
KS
3462003-03-22 Kim F. Storm <storm@cua.dk>
347
348 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
349 Add generic versions here. Remove system specific versions
350 defined elsewhere.
351
352 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
353 Add prototypes.
354
6e6410cf
KS
355 * xterm.h (STORE_NATIVE_RECT): New macro.
356
5c9cc435
KS
3572003-03-21 Kim F. Storm <storm@cua.dk>
358
00c64fab
SM
359 * xdisp.c (get_glyph_string_clip_rect):
360 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
361
362 * dispextern.h (struct redisplay_interface): Add active_p
363 argument to draw_window_cursor member. All uses changed.
364
acd37560
KS
3652003-03-21 Kim F. Storm <storm@cua.dk>
366
367 The following changes consolidate code related to writing and
368 inserting glyphs, exposing frame, the tool bar, the mouse face,
369 the output cursor, and help echo from xterm.c, w32term.c and
370 macterm.c into xdisp.c. It also generalizes the use of the
371 window_part enum instead of using numeric values throughout.
af0ad939 372
acd37560
KS
373 * xdisp.c: Consolidate gui-independent code here.
374 Include keymap.h.
375 (Qhelp_echo): Import.
376 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
377 (help_echo_string, help_echo_window, help_echo_object)
378 (previous_help_echo_string, help_echo_pos): Declare here.
379 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
380 (estimate_mode_line_height): Define here. Handle windowing
381 systems directly (without using estimate_mode_line_height_hook).
382 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
383 (update_window_cursor, update_cursor_in_window_tree)
384 (fast_find_position, fast_find_string_pos)
385 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
386 (expose_area, expose_line, expose_overlaps, expose_window)
387 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
388 declared static as they are only used locally in xdisp.c.
389 (draw_glyphs): Rename from x_draw_glyphs and make static.
390 (tool_bar_item_info, notice_overwritten_cursor): Make static.
391 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
392 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 393 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
394 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
395 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
396 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
397 (note_mouse_highlight, x_clear_window_mouse_face)
398 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
399 (x_intersect_rectangles): New generic functions for use by xdisp.c
400 and GUI front-ends.
401 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
402 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
403
404 * dispextern.h (Display_Info): Generic typedef for *_display_info.
405 (NativeRectangle): Generic typedef for rectangle type.
406 (enum window_part): Move here from window.c.
407 (struct redisplay_interface): New members flush_display_optional,
408 define_frame_cursor, clear_frame_area, draw_window_cursor,
409 draw_vertical_window_border, shift_glyphs_for_insert.
410 Rename member clear_mouse_face to clear_window_mouse_face.
411 (estimate_mode_line_height_hook): Remove hook.
412 (auto_raise_tool_bar_buttons_p): Don't declare extern.
413 (tool_bar_item_info): Remove prototype.
414 (help_echo_string, help_echo_window, help_echo_object)
415 (previous_help_echo_string, help_echo_pos)
416 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
417 (x_stretch_cursor_p, output_cursor): Declare extern.
418 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
419 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
420 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
421 (display_and_set_cursor, set_output_cursor, x_cursor_to)
422 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
423 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
424 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
425 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
426 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
427 Add prototypes.
428 (mode_line_string, marginal_area_string): Fix prototypes.
429
430 * window.c (enum window_part): Move to dispextern.h.
431 (coordinates_in_window): Use enum window_part member names
432 instead of numbers to describe return value.
433 (struct check_window_data): Change part member to window_part.
434 (check_window_containing): Return window_part unaltered.
435 (window_from_coordinates): Change part arg from int to enum
436 window_part. Allow part arg to be null. All users changed.
437
438 * window.h (window_from_coordinates): Fix prototype.
439
440 * term.c (estimate_mode_line_height): Move to xdisp.c.
441
442 * keyboard.c (make_lispy_event): Use enum window_part.
443
444 * dispnew.c (mode_line_string, marginal_area_string): Use enum
445 window_part instead of int in arg list. Users changed.
446
447 * xterm.h (No_Cursor): Declare as None for X.
448 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 449
acd37560
KS
450 * xterm.c: Remove consolidated defines and code.
451 (BETWEEN): Remove unused macro.
452 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
453 (x_define_frame_cursor, x_clear_frame_area)
454 (x_draw_window_cursor): New X-specific functions for RIF.
455 (x_redisplay_interface): Add new members.
456
457 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
458
459 * w32term.h (struct w32_output): Remove cross_cursor member.
460
461 * w32term.c: Remove consolidated defines and code.
462 (BETWEEN): Remove unused macro.
463 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
464 (w32_define_frame_cursor, w32_clear_frame_area)
465 (w32_draw_window_cursor): New W32-specific functions for RIF.
466 (w32_redisplay_interface): Add new members.
467
468 * w32gui.h (No_Cursor): Define as 0 for W32.
469 (XRectangle): Add X compatible rectangle type.
470 (NativeRectangle): Declare as RECT for W32.
471 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
472
473 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
474
475 * w32console.c: Remove consolidated defines and code.
af0ad939 476
acd37560
KS
477 * msdos.h (Display_Info): Add generic typedef.
478
479 * msdos.c: Remove consolidated defines and code.
480 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
481
482 * macterm.h (struct mac_output): Replace member cross_cursor by
483 hand_cursor.
484 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
485
486 * macterm.c: Remove consolidated defines and code.
487 (BETWEEN): Remove unused macro.
488 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
489 (mac_define_frame_cursor, mac_clear_frame_area)
490 (mac_draw_window_cursor): New Mac-specific functions for RIF.
491 (x_redisplay_interface): Add new members.
492
493 * macgui.h (No_Cursor): Define as 0 for Mac.
494 (XRectangle): Add X compatible rectangle type.
495 (NativeRectangle): Declare as Rect for Mac.
496 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
497
204ccab1
KS
498 * macfns.c (x_set_mouse_color): Setup hand_cursor.
499 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 500
9443fcf6 501 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
502 included from it. Add dependency on keymap.h.
503
504 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
505
8ba01a70 5062003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
507
508 * fileio.c (Fexpand_file_name): Fix previous change.
509
8ba01a70 5102003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
511
512 * fileio.c (Ffile_name_directory): Reconstruct file name by
513 make_specified_string.
514 (Ffile_name_nondirectory, Ffile_name_as_directory)
515 (Fdirectory_file_name, Fexpand_file_name)
516 (Fsubstitute_in_file_name): Likewise.
517 (Fread_file_name): Compare decoded homedir with DIR and
518 DEFAULT_FILENAME.
519
520 * alloc.c (make_specified_string): If NCHARS is negative, count
521 the number of characters.
522
19536747
JD
5232003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
524
de38ae5a
JD
525 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
526 all widgets.
527
19536747
JD
528 * gtkutil.h: Removed xg_ignore_next_thumb.
529
37ab321e 5302003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
531
532 * coding.c (Vchar_coding_system_table): Remove this variable.
533 (Vcoding_system_safe_chars): New variable.
534 (intersection): Remove this function.
535 (find_safe_codings): Don't use Vchar_coding_system_table, but try
536 all codings in SAFE_CODINGS.
00c64fab 537 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
538 find_safe_codings. Get generic coding systems from
539 Vcoding_system_safe_chars.
540 (Fdefine_coding_system_internal): New function.
541 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
542 Initialize and staticpro Vcoding_system_safe_chars.
543
17097258
JD
5442003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
545
2a2071c3
JD
546 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
547 equal old values before updating.
548
17097258
JD
549 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
550
551 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
552
5532003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
554
555 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
556 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
557 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
558 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
559 (xg_create_scroll_bar): Pass bar to button event callback.
560 (xg_find_top_left_in_fixed): New function.
561 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
562 whole scroll bar area. Get old position with
563 xg_find_top_left_in_fixed, calculate and only clear needed areas.
564 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
565 dragging is in progress. Calculate whole as for Motif.
566 Remove code that saved last values. Call gtk_range functions to
567 set scroll bar sizes.
568
569 * gtkutil.h: Removed xg_ignore_next_thumb.
570
8cb9dfbf
JB
5712003-03-17 Juanma Barranquero <lektu@terra.es>
572
573 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
574 and files included from it.
575
00c64fab
SM
5762003-03-18 Stefan Monnier <monnier@cs.yale.edu>
577
578 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
579 multiple occurrences of the same keymap under different prefixes.
580 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
581
c45bb3b2
JR
5822003-03-16 Jason Rumney <jasonr@gnu.org>
583
584 * w32gui.h: Use HDC for Display.
585
586 * w32term.c (w32_encode_char): Prevent double-byte chars from
587 crashing Emacs.
588
589 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
590 as binary.
591
2a6d0874
JB
5922003-03-16 Juanma Barranquero <lektu@terra.es>
593
594 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
595
03eb5fab
KS
5962003-03-16 Kim F. Storm <storm@cua.dk>
597
598 The following changes consolidate some of the gui-independent
599 parts of the processing and drawing of "glyph strings" from
600 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 601
03eb5fab
KS
602 * dispextern.h (struct glyph): Reduce face_id member from 22 to
603 21 bits (this reduces number of faces from 4M to 2M).
604 Replace W32 specific w32_font_type member (2 bits) by generic
605 font_type member (3 bits) for portability.
606 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
607 (enum draw_glyphs_face): Define here.
608 (struct glyph_string): Define here. Merge W32 and X versions.
609 (struct redisplay_interface): New members per_char_metric,
610 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
611 (VCENTER_BASELINE_OFFSET): Define here.
612 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
613 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
614
615 * xdisp.c: Consolidate gui-independent "glyph string" code here.
616 (dump_glyph_string): Moved here.
617 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
618 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
619 (fill_composite_glyph_string, fill_glyph_string)
620 (fill_image_glyph_string, fill_stretch_glyph_string)
621 (left_overwritten, left_overwriting, right_overwritten)
622 (right_overwriting, get_char_face_and_encoding)
623 (set_glyph_string_background_width, compute_overhangs_and_x)
624 (append_glyph, append_composite_glyph, produce_image_glyph)
625 (take_vertical_position_into_account, append_stretch_glyph)
626 (produce_stretch_glyph): New generic functions (based on X version).
627 Call platform specific functions through rif.
628 (INIT_GLYPH_STRING): New macro, hides W32 details.
629 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
630 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
631 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
632 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
633 (notice_overwritten_cursor):
634 Generic functions exported to platform modules. Users changed.
635
636 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
637 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
638 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 639 New macros for consolidated code.
2a6d0874 640
03eb5fab
KS
641 * xterm.c: Remove consolidated defines and code.
642 (x_per_char_metric, x_encode_char)
643 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
644 (x_redisplay_interface): Add new members.
645
646 * w32gui.h (Display): Add dummy typedef for consolidation.
647 (XChar2b): Define alias for wchar_t for consolidation.
648 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
649
650 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 651 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
652 New macros for consolidation.
653
fad49844 654 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
655 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
656 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
657 (w32_per_char_metric): Change font_type arg to int for RIF.
658 (w32_encode_char): Return int according to RIF requirements.
659 (w32_compute_glyph_string_overhangs): Adapt to RIF.
660 (w32_get_glyph_overhangs): New function for RIF. Uses generic
661 x_get_glyph_overhangs.
662 (w32_redisplay_interface): Add new members.
663
664 * macgui.h (XChar2b): Move typedef here for consolidation.
665 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
666
667 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
668 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
669 consolidation.
670
671 * macterm.c: Remove consolidated defines and code.
672 (mac_per_char_metric): New function for RIF.
00c64fab 673 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
674 (mac_compute_glyph_string_overhangs): Adapt for RIF.
675 (x_redisplay_interface): Add new members.
676
00c64fab
SM
6772003-03-15 Stefan Monnier <monnier@cs.yale.edu>
678
679 * keymap.c (Vmenu_events): New var.
680 (syms_of_keymap): Initialize it.
681 (where_is_internal): Check more carefully what is a menu event.
682
225c7a07
RS
6832003-03-14 Richard M. Stallman <rms@gnu.org>
684
685 * lread.c (read1): After #!, exit loop on eof.
686
cea9be54
JD
6872003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
688
9ea0e54d
JD
689 * gtkutil.h: Add declaration for xg_frame_cleared.
690
0cb35f4e
JD
691 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
692
cea9be54
JD
693 * gtkutil.c (struct xg_last_sb_pos): New structure.
694 (handle_fixed_child): New function.
695 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
696 and force a redraw on them.
697 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
698 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
699 so we can avoid unneeded redraws.
700 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
701 and force a redraw on the scroll bar.
702 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
703 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 704 (xg_frame_cleared): New function.
cea9be54 705
20b853f3
KH
7062003-03-13 Kenichi Handa <handa@m17n.org>
707
708 * coding.c (Fdetect_coding_region): Fix docstring.
709 (Fdetect_coding_string): Fix docstring.
710
7a555aff
AS
7112003-03-13 Andreas Schwab <schwab@suse.de>
712
25cc0080
AS
713 * gtkutil.c: Add prototype for create_menus.
714
30225431
AS
715 * data.c (long_to_cons): Fix type of top.
716
717 * xselect.c (selection_data_to_lisp_data): Use int instead of
718 long for an integer of size 4.
719
7a555aff 720 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 721 (xg_tool_bar_help_callback): Likewise.
7a555aff 722
a3e4741f
AS
7232003-03-12 Andreas Schwab <schwab@suse.de>
724
725 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
726
9668be7c
KS
7272003-03-12 Kim F. Storm <storm@cua.dk>
728
03eb5fab 729 The following changes consolidate the fringe handling from
9668be7c 730 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 731
9668be7c
KS
732 * xdisp.c: Consolidate fringe handling code here.
733 (left_bits, right_bits, continued_bits, continuation_bits)
734 (ov_bits, zv_bits): Define fringe bitmaps.
735 (fringe_bitmaps): New array holding fringe bitmaps.
736 (draw_fringe_bitmap): Draw a specific bitmap; call display
737 specific drawing routine via rif->draw_fringe_bitmap.
738 (draw_row_fringe_bitmaps): Generic replacement for
739 x_draw_row_fringe_bitmaps; all callers changed.
740 (compute_fringe_widths): Generic replacement for
741 x_compute_fringe_widths; all callers changed.
742
743 * dispextern.h (enum fringe_bitmap_type): Define here.
744 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
745 (fringe_bitmaps): Declare extern.
746 (struct redisplay_interface): New member draw_fringe_bitmap.
747 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
748
749 * xterm.c: Remove generic fringe code.
750 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
751 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
752
753 * w32term.c: Remove generic fringe code.
754 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
755 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 756
9668be7c
KS
757 * macterm.c: Remove generic fringe code.
758 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
759 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
760
00a88f32
SM
7612003-03-11 Stefan Monnier <monnier@cs.yale.edu>
762
763 * print.c (Fprin1_to_string): Return unibyte string if possible.
764
1d1de695
DK
7652003-03-09 David Kastrup <dak@gnu.org>
766
767 * process.c (read_process_output): We have allocated enough space
768 for readmax and carryover, so actually use the alloted space.
769
257f40f2
JD
7702003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
771
772 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
773 toolkit scrollbar click.
774
775 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
776 for USE_GTK.
777 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
778 also.
779 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
780 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 781
257f40f2
JD
782 * gtkutil.h: Declare xg_get_scroll_id_for_window.
783
784 * gtkutil.c (xg_get_scroll_id_for_window): New function.
785 (xg_tool_bar_item_expose_callback): New function.
786 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
787 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
788 on the tool bar widget.
789 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
790 to expose on the tool bar item widgets.
791
15213141
JD
7922003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
793
26b74a0b 794 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 795 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
796 deleted from the image cache).
797
15213141
JD
798 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
799 the event isn't for a frame (i.e. for dialogs).
800
20b853f3 8012003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
802
803 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
804 composition components reaches the limit, terminate composing.
805 (COMPOSITION_OK): New macro.
00a88f32 806 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
807 composition is found.
808 (coding_restore_composition): Adjust the number of composition
809 components if it is not sane.
810
c9029fe5
JB
8112003-03-06 Juanma Barranquero <lektu@terra.es>
812
813 * w32term.h (struct w32_display_info): Add xrdb member to support
814 passing resources via -xrm on Windows.
815
816 * w32term.c (w32_make_rdb): New function.
817 (w32_term_init): Use it to initialize xrdb member of w32_display_info
818 struct. Delete leftover code.
819
820 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
821 for resources passed on the command line.
822
823 * w32reg.c (w32_get_rdb_resource): New function.
824 (x_get_string_resource): Use it, so resources passed with -xrm
825 supercede the ones in the registry.
826
9d00001f
JD
8272003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
828
829 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
830 instead of x_top_window_to_frame.
831
ca2417b9
JD
8322003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
833
834 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
835 when restarting Emacs.
836
5b20caf0
RS
8372003-03-03 Richard M. Stallman <rms@gnu.org>
838
839 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
840 to run kill-buffer-query-functions.
841 (Qkill_buffer_query_functions): New var.
842 (syms_of_buffer): Init and staticpro it.
843
58e91b77
JD
8442003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
845
846 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
847
932357b4
KS
8482003-02-25 Kim F. Storm <storm@cua.dk>
849
850 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
851 If centering point failed to make whole line visible and vscroll
852 is non-zero, disable vscroll and try centering point again.
853
854 * lread.c (read1): Accept `single space' syntax like (? x).
855
bb8db7e1
JD
8562003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
857
858 * keyboard.c (cancel_hourglass_unwind): Surround with
859 #ifdef HAVE_X_WINDOWS
860
47d77aab
KH
8612003-02-25 Kenichi Handa <handa@m17n.org>
862
863 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
864 process only when "subprocesses" is defined.
865
6a097c0c
SM
8662003-02-24 Stefan Monnier <monnier@cs.yale.edu>
867
868 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
869
0b063c27
JB
8702003-02-24 Juanma Barranquero <lektu@terra.es>
871
d1135afc
JB
872 * callint.c (fix_command): Declare as static void and move before
873 Fcall_interactively.
874
0b063c27
JB
875 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
876 (syms_of_xdisp): Don't initialize Qwhen.
877
0af912f0
JD
8782003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
879
880 * keyboard.c (cancel_hourglass_unwind): New function.
881 (command_loop_1): Cancel hourglass with unwind-protect.
882
120d0a23
RS
8832003-02-23 Richard M. Stallman <rms@gnu.org>
884
885 * callint.c (fix_command): New subroutine, from Fcall_interactively.
886 Detect (when ... (region-beginning)) etc.
887 (Fcall_interactively): Call fix_command.
888 (Qif, Qwhen): New variables.
889 (syms_of_callint): Init and staticpro them.
0b063c27 890
120d0a23
RS
891 * regex.c (print_partial_compiled_pattern): Output to stderr.
892
4ece81a6
KG
8932003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
894
895 * dired.c (directory_files_internal): Don't expand directory.
896 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
897 instead. From Lars Hansen <larsh@math.ku.dk>.
898
e52bd6b7
SM
8992003-02-22 Stefan Monnier <monnier@cs.yale.edu>
900
901 * fns.c (string_to_multibyte): Remove unused var i.
902 (Flanginfo): Fix int/Lisp_Object mixup.
903 (void_call2): New fun.
904 (Fmap_char_table): Use it in place of call2.
905
906 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
907
908 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
909
910 * keymap.c (copy_keymap_1): Make it static.
911
912 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
913
c33ef7c4
JB
9142003-02-22 David Ponce <david@dponce.com>
915
916 * lread.c (Fload): Don't check STRING_MULTIBYTE.
917
16782258
JD
9182003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
919
920 * process.h: Removed subtty field from struct Lisp_Process.
921
922 * process.c (create_process): Remove setting of subtty.
923 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
924 (Fprocess_running_child_p, process_send_signal):
925 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
926 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
927
3abeca61
KG
9282003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
929
930 * keymap.c (Fdefine_key): Doc fix.
931
92a8ce63
JB
9322003-02-21 Juanma Barranquero <lektu@terra.es>
933
934 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
935
936 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
937 POLLING_PROBLEM_IN_SELECT.
938
939 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
940 Delete #undef of POLLING_PROBLEM_IN_SELECT.
941
942 * s/hpux10-20.h: New file.
943
e52bd6b7
SM
944 * process.c (wait_reading_process_input):
945 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 946
20f1ef2e
KH
9472003-02-20 Kenichi Handa <handa@m17n.org>
948
32d0a9dc
KH
949 * fontset.c (check_fontset_name): If NAME is nil, return the
950 default fontset.
951 (override_font_info): New function.
e52bd6b7 952 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
953 (Ffontset_info): If FONTSET is not the default fontset, merge
954 FONTSET onto the copy of the default fontset, and work on that
955 copy. Document that NAME nil means the default fontset.
956 (Ffontset_font): Document that NAME nil means the default fontset.
957
20f1ef2e
KH
958 * process.c (setup_process_coding_systems): If the process's
959 in/out descriptor is -1, do nothing.
960
77d1daf2
AS
9612003-02-19 Andreas Schwab <schwab@suse.de>
962
e52bd6b7
SM
963 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
964 Add prototypes.
77d1daf2 965
f9a45bb3
KH
9662003-02-19 Kenichi Handa <handa@m17n.org>
967
968 * xfaces.c (try_alternative_families): Try all scalable fonts if
969 Vscalable_fonts_allowed is not Qt.
970
72ecb43c
JD
9712003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
972
973 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
974
ee5be7c3
JD
9752003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
976
977 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
978 names.
979
980 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 981 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
982 x_face_list_fonts.
983 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
984 (Fx_list_fonts): Set maxnames to -1 to get all font names.
985
4cd519a7
KS
9862003-02-18 Kim F. Storm <storm@cua.dk>
987
068f9882
KS
988 * lread.c (read1): Fix last change.
989 "`" is not always special. Allow "?" after a character constant.
4cd519a7 990
7290a344
AC
9912003-02-18 Andrew Choi <akochoi@shaw.ca>
992
993 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
994
1f7fa69b
AS
9952003-02-18 Andreas Schwab <schwab@suse.de>
996
997 * window.c (window_scroll_pixel_based): Move outside a
998 multi-glyph character before setting new window start.
999
1000 * xdisp.c (in_display_vector_p): New function.
1001 * dispextern.h (in_display_vector_p): Declare.
1002
23e21195
KS
10032003-02-18 Kim F. Storm <storm@cua.dk>
1004
1005 * lread.c (read1): Fix and relax read syntax.
1006 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
1007 Only recognize "," after dotted-pair dot if inside backquote.
1008 Never include "`" or "," (inside backquote) in a symbol.
1009 Allow dotted-pair dot after a character constant.
1010 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 1011
f098b121
JD
10122003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1013
1014 * gtkutil.c (xg_tool_bar_expose_callback): New function.
1015 (xg_create_tool_bar): Force style of tool bar to be horizontal with
1016 icons. Set name of tool bar to emacs-toolbar.
1017 (update_frame_tool_bar): Connect expose event to
1018 xg_tool_bar_expose_callback.
1019
63020c46
RS
10202003-02-17 Richard M. Stallman <rms@gnu.org>
1021
1022 * keyboard.c (this_command_key_count_reset): New variable.
1023 Initiatize to 0 where this_command_key_count is set.
1024 (read_char): Save and restore this_command_key_count_reset
1025 around input method code.
1026 (read_char): If this_command_key_count_reset, echo reread commands.
1027 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
1028
fb4452cc
KH
10292003-02-17 Kenichi Handa <handa@m17n.org>
1030
1031 * fns.c (string_to_multibyte): Always return a multibyte string.
1032
bd11cc09
JR
10332003-02-16 Jason Rumney <jasonr@gnu.org>
1034
e52bd6b7
SM
1035 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
1036 Negative max_fonts parameter means list all.
bd11cc09 1037
4cdf4bde
DL
10382003-02-14 Dave Love <fx@gnu.org>
1039
1040 * fns.c (Flanginfo): Doc fix.
1041
023b93f6
KS
10422003-02-13 Kim F. Storm <storm@cua.dk>
1043
37cd4238
KS
1044 * lread.c (read_escape): Interpret \s as a SPACE character, except
1045 for \s-X in a character constant which still is the super modifier.
1046 (read1): Signal an `invalid read syntax' error if a character
1047 constant is immediately followed by a digit or symbol character.
1048
140a6b7e
KS
1049 * search.c (Fmatch_data): Doc fix. Explicitly state that
1050 match-data is undefined if last search failed.
1051
023b93f6
KS
1052 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
1053 All uses changed.
1054
7d5c86e5
JB
10552003-02-12 Juanma Barranquero <lektu@terra.es>
1056
1057 * eval.c (Fdefmacro): Fix typo.
1058
295fff2c
KS
10592003-02-12 Kim F. Storm <storm@cua.dk>
1060
1061 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
1062 macro is a string, convert meta modifiers in string when copying
1063 the string into a vector.
1064
60f3202d
KS
10652003-02-11 Kim F. Storm <storm@cua.dk>
1066
1067 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
1068
61cb0b53
KH
10692003-02-11 Kenichi Handa <handa@m17n.org>
1070
1071 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
1072
7392e23c
KS
10732003-02-10 Kim F. Storm <storm@cua.dk>
1074
1075 * process.c: Doc fixes.
1076 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
1077
ce4254bd
KH
10782003-02-10 Kenichi Handa <handa@m17n.org>
1079
9c7a329a
KH
1080 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
1081
ce4254bd
KH
1082 * process.c (QCfilter_multibyte): New variable.
1083 (setup_process_coding_systems): New function.
e52bd6b7
SM
1084 (Fset_process_buffer, Fset_process_filter):
1085 Call setup_process_coding_systems.
ce4254bd
KH
1086 (Fstart_process): Initialize the member `filter_multibyte' of
1087 struct Lisp_Process.
1088 (create_process): Call setup_process_coding_systems.
1089 (Fmake_network_process): New keyward `:filter-multibyte'.
1090 Initialize the member `filter_multibyte' of struct Lisp_Process.
1091 Call setup_process_coding_systems.
1092 (server_accept_connection): Call setup_process_coding_systems.
1093 (read_process_output): If the process has a filter, decide the
1094 multibyteness of a string to given to the filter by
1095 `filter_multibyte' member of the process. If the process doesn't
1096 have a filter and the result of conversion is unibyte, use
1097 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
1098 multibyte form.
1099 (Fset_process_coding_system): Call setup_process_coding_systems.
1100 (Fset_process_filter_multibyte): New function.
1101 (Fprocess_filter_multibyte_p): New function.
1102 (syms_of_process): Intern and staticpro QCfilter_multibyte.
1103 Defsubr Sset_process_filter_multibyte and
1104 Sprocess_filter_multibyte_p.
1105
1106 * process.h (struct Lisp_Process): New member filter_multibyte.
1107
1108 * lisp.h (setup_process_coding_systems): Add prototype.
1109
1110 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
1111 process, update coding systems for the process.
1112
b08d5f59
KH
11132003-02-09 Kenichi Handa <handa@m17n.org>
1114
1115 * fns.c (string_to_multibyte): New function.
1116 (Fstring_to_multibyte): New function.
1117 (syms_of_fns): Defsubr it.
1118
0dfd93c0
AS
11192003-02-08 Andreas Schwab <schwab@suse.de>
1120
1121 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
1122 instead of the substitution.
1123
7b76ca1c
JD
11242003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1125
1126 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
1127
1128 * xmenu.c (menu_position_func): Adjust menu popup position so that
1129 the menu is fully visible.
7b76ca1c 1130
2436a4e4
JD
11312003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1132
1133 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
1134 (x_make_frame_invisible, x_wm_set_icon_position):
1135 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
1136
1137 * xfns.c (x_set_name, x_set_title): Ditto.
1138
37d1e680
RS
11392003-02-04 Richard M. Stallman <rms@gnu.org>
1140
1141 * keyboard.c (echo_now): Update before_command_echo_length.
1142 (Freset_this_command_lengths): Reset this_command_key_count etc.
1143 immediately rather than arranging to do it later.
1144 (before_command_key_count_1, before_command_echo_length_1)
1145 (before_command_restore_flag): Vars deleted.
1146 (add_command_key): Don't handle before_command_restore_flag.
1147 (read_char, record_menu_key): Don't update before_command_key_count or
1148 before_command_echo_length.
1149 (read_char): Don't handle before_command_restore_flag.
1150
1151 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
1152 in direct-output clauses if it wouldn't be called in the ordinary case.
1153
578846a3
KS
11542003-02-04 Kim F. Storm <storm@cua.dk>
1155
1156 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
1157
49853a4d
JD
11582003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1159
1160 * gtkutil.c (remove_from_container): Copying list is not needed.
1161 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
1162 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
1163 on list returned from gtk_container_get_children to avoid memory leak.
1164
8b53dc06
JR
11652003-02-01 Jason Rumney <jasonr@gnu.org>
1166
5d54d177
JR
1167 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
1168 local malloc.
1169 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
1170 definitions in xpm.h.
1171 (init_xpm_functions): New function.
1172 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
1173 (init_external_image_libraries): Try to load libXpm.dll.
1174
8b53dc06
JR
1175 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
1176 timestamp.
1177
b222e415
DL
11782003-01-31 Dave Love <fx@gnu.org>
1179
1180 * syntax.c (Fskip_chars_forward)
1181 (open-paren-in-column-0-is-defun-start): Doc fix.
1182
c60ee5e7
JB
11832003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
1184
1185 * fileio.c: Support // at start of name for Cygwin (just added proper
1186 preprocessor tests).
1187
1188 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
1189
1190 * Makefile.in: Use @EXEEXT@ for Cygwin.
1191
1192 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
1193
1194 * s/cygwin.h: Added for Cygwin port.
1195
53b37591
JB
11962003-01-31 Juanma Barranquero <lektu@terra.es>
1197
1198 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
1199 when including gif_lib.h.
fe929957
JB
1200 (init_gif_functions, init_tiff_functions): New functions.
1201 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
1202 Windows. Disable color table lookups. Call library functions
53b37591 1203 through pointers determined at runtime.
fe929957
JB
1204 (init_external_image_libraries): Try to load libungif.dll and
1205 libtiff.dll.
53b37591 1206
45415a8f
KH
12072003-01-31 Kenichi Handa <handa@m17n.org>
1208
1209 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 1210 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 1211
a97e4138
JD
12122003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1213
e52bd6b7 1214 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 1215
6eed9bed
DL
12162003-01-30 Dave Love <fx@gnu.org>
1217
1218 * alloc.c (Vgc_elapsed, gcs_done): New variables.
1219 (Fgarbage_collect): Use them.
1220 (init_alloc, syms_of_alloc): Set them up.
1221
100dcd40
JB
12222003-01-30 Juanma Barranquero <lektu@terra.es>
1223
1224 * w32fns.c (init_external_image_libraries): Add missing operator.
1225
fbd852af
JR
12262003-01-29 Jason Rumney <jasonr@gnu.org>
1227
1228 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
1229 an alternative name for jpeg.dll.
1230
8a2d8020
KH
12312003-01-29 Kenichi Handa <handa@m17n.org>
1232
1233 * xdisp.c (set_cursor_from_row): Pay attention to string display
1234 properties.
1235
058c18c7
AC
12362003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
1237
1238 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
1239 <escape>.
1240 (keycode_to_xkeysym_table): Reformat and add more comments.
1241 (XTread_socket): Drop special case for backspace.
1242
385f11cf
AC
12432003-01-28 Andrew Choi <akochoi@shaw.ca>
1244
1245 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
1246 values in old-style RGB specs.
1247
c922a224
JB
12482003-01-27 Juanma Barranquero <lektu@terra.es>
1249
1250 * w32fns.c (init_external_image_libraries): Try alternate names for the
1251 jpeg dll.
1252
0a1d6de0
JD
12532003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1254
1255 * gtkutil.c (create_dialog, xg_separator_p)
1256 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
1257 before calling strcmp or strlen.
1258
a97e4138 12592003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
1260
1261 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
1262 and handle image load failure.
1263
28908312
JR
12642003-01-26 Jason Rumney <jasonr@gnu.org>
1265
1266 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
1267 New functions.
1268 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
1269 Disable color table lookups. Call jpeg library functions
1270 through pointers determined at runtime.
1271 (init_external_image_libraries): Try to load jpeg.dll.
1272
84e47416
RS
12732003-01-25 Richard M. Stallman <rms@gnu.org>
1274
1275 * lisp.h: Declare format2 instead of format1.
1276
1277 * fileio.c (barf_or_query_if_file_exists):
1278 Call format2 instead of format1.
1279
1280 * editfns.c (format2): New function, replaces format1
1281 but takes exactly two Lisp Objects as format args.
1282
1283 * buffer.c (Fkill_buffer): Call format2 instead of format1.
1284
a97e4138 12852003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
1286
1287 * xterm.h: Change to return value of x_dispatch_event to int.
1288
1289 * xterm.c (x_filter_event): New function.
1290 (event_handler_gdk, XTread_socket): Call x_filter_event.
1291 (x_dispatch_event): Change to return value of finish.
1292 (event_handler_gdk): Use return value from x_dispatch_event.
1293
1294 * xfns.c (x_window): Call create_frame_xic for GTK version to
1295 initialize input methods.
1296
1297 * gtkutil.h: Add (void) prototypes.
1298
1299 * gtkutil.c (create_menus): Remove code that puts the help menu to
1300 the right.
1301
54eefef1
JR
13022003-01-25 Jason Rumney <jasonr@gnu.org>
1303
1304 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
1305 [HAVE_PNG]: Sync with xfns.c version.
1306 (png_load): Adjust colors for Windows. Use Windows
1307 bitmaps. Disable color table lookups.
c262430d
JR
1308 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
1309 (init_png_functions): New function.
1310 (png_read_from_memory, png_load): Call png library functions
1311 through pointers determined at runtime.
1312 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
1313 (init_external_image_libraries): New function.
1314 (init_xfns): Call it.
54eefef1 1315
1a9e275b
AS
13162003-01-24 Andreas Schwab <schwab@suse.de>
1317
1318 * minibuf.c (Fminibuffer_message): Verify type of parameter.
1319
a97e4138 13202003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
1321
1322 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
1323 of static initializer.
1324
422eec7e
DL
13252003-01-24 Dave Love <fx@gnu.org>
1326
1327 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
1328 architectures.
1329
1330 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
1331 Use __alignof__.
1332
2a026b04
KH
13332003-01-24 Kenichi Handa <handa@m17n.org>
1334
1335 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 1336 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
1337 (command_loop_1): Call adjust_point_for_property with proper
1338 second arg.
1339
a18bb28d
JR
13402003-01-22 Jason Rumney <jasonr@gnu.org>
1341
1342 Sync changes with xterm.c and xfns.c.
1343
1344 * w32term.c (x_draw_glyph_string_foreground)
1345 (x_draw_composite_glyph_string_foreground): Implement overstriking.
1346
1347 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
1348 phys_cursor's hpos is overwritten. This is still not completely
1349 correct, as it doesn't really make sense to use hpos at all to
1350 get the cursor glyph (as that is relative to the width of the
1351 characters on the line, which may have changed during the update).
1352
1353 * w32term.c (notice_overwritten_cursor): Handle the special case
1354 of the cursor being in the first blank non-text line at the
1355 end of a window.
1356
1357 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
1358 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
1359 Compute from the x position returned by x_draw_glyphs.
1360
1361 (x_display_and_set_cursor): Don't set phys_cursor_width here,
1362 except for NO_CURSOR and system caret, to make phys_cursor_width
1363 contain what its name suggests.
1364 (notice_overwritten_cursor): Consider the cursor image erased if
1365 the output area intersects the cursor image in y-direction.
1366
6a097c0c
SM
1367 * w32term.c (note_mode_line_or_margin_highlight): Rename from
1368 note_mode_line_highlight and extend.
a18bb28d
JR
1369
1370 * w32term.c (last_window): New variable.
1371 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
1372 (note_mouse_movement): Remove reimplemented code in #if 0.
1373
1374 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
1375 not update_mode_lines, and always set it to 1.
1376
ac6e47ef
JR
13772003-01-21 Jason Rumney <jasonr@gnu.org>
1378
1379 * w32fns.c (IDC_HAND): Define it if system headers don't.
1380
13812003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
1382
1383 * w32term.h (struct w32_output): New member hand_cursor.
1384 (WM_EMACS_SETCURSOR): New message definition.
1385
1386 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
1387 function w32_define_cursor.
1388 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
1389 position, change member name output_data.x to output_data.w32 and
1390 add function w32_define_cursor.
1391 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
1392 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
1393 (w32_initialize_display_info):
1394 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
1395
1396 * w32fns.c (Vx_hand_shape): New variable.
1397 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
1398 WM_EMACS_SETCURSOR.
1399 (x-create-frame): Setup Cursor types.
1400
ceb39a17
JB
14012003-01-21 David Ponce <david@dponce.com>
1402
ac6e47ef
JR
1403 * w32term.c (w32_encode_char): For DIM=1 charset, set
1404 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
1405 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 1406 2002-09-30.)
ac6e47ef
JR
1407 (w32_draw_relief_rect): Declare all args.
1408 (w32_define_cursor): New.
1409
1410 * w32fns.c (w32_load_cursor): New function.
1411 (w32_init_class): Use it.
1412 (x_put_x_image): Declare all args.
1413
46cf0bed
JB
14142003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
1415
1416 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
1417
a97e4138 14182003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
1419
1420 * gtkutil.c: Must include stdio.h before termhooks.h
1421
83fc9c63
DL
14222003-01-21 Dave Love <fx@gnu.org>
1423
1424 * alloc.c (Fgc_status): Print zombie list.
1425 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
1426 Fix assignment of zombies.
1427 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
1428 Don't take car of non-cons.
1429
1430 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
1431
1432 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
1433
fe04b8c8
JR
14342003-01-20 David Ponce <david@dponce.com>
1435
1436 * w32menu.c (digest_single_submenu): Declare all args.
1437
1438 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
1439 changes in xmenu.c:
1440
1441 (parse_single_submenu): Use individual keymap's prompt
1442 string as pane name, if there is one.
1443 (set_frame_menubar): Save menu_items_n_panes from each call to
1444 parse_single_submenu and use it when calling digest_single_submenu.
1445
539e69a9
ST
14462003-01-20 Steven Tamm <steventamm@mac.com>
1447
1448 * macterm.c (XTread_socket): Checks for valid, visible window
1449 before sending a scroll-wheel event.
1450
675d000f
RS
14512003-01-20 Richard M. Stallman <rms@gnu.org>
1452
1453 * xdisp.c (redisplay_window): If mini window's buffer is not
1454 a minibuffer, then redisplay it like other windows.
1455
a97e4138 14562003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
1457
1458 * gtkutil.c (xg_create_frame_widgets): Check if there is an
1459 external tool bar before setting tool bar height.
1460
048addec
JD
14612003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1462
1463 * xterm.c (handle_one_xevent): Surround popup_activated
1464 with #ifdef:s for non-toolkit version.
1465
1466 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
1467 (gtkutil.o): New file.
1468 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
1469 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
1470
1471 * gtkutil.c: New file for GTK version.
1472
1473 * gtkutil.h: New file for GTK version.
1474
1475 * xterm.h: Add xt_or_gtk_widget.
1476 Include gtk files for USE_GTK.
1477 (struct x_output): Add toolbar_height.
1478 (struct x_output): Add GTK widgets and Gdk size_hints.
1479 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
1480 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
1481 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
1482
1483 * xterm.c: Include gtkutil.h for USE_GTK.
1484 Declare extern void free_frame_menubar for USE_GTK.
1485 (note_mouse_highlight): Check popup_activated for USE_GTK.
1486 (xt_action_hook): Don't compile if USE_GTK.
1487 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
1488 (xg_scroll_callback): New function.
1489 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
1490 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
1491 for USE_GTK.
1492 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
1493 xg_show_scroll_bar for USE_GTK.
1494 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
1495 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
1496 (event_handler_gdk): New function for USE_GTK.
1497 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
1498 (handle_one_xevent): Make sure widget is mapped before
1499 calling x_real_positions for USE_GTK.
1500 (XTread_socket): Add GTK event loop for USE_GTK.
1501 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
1502 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
1503 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
1504 (x_iconify_frame): Add code for USE_GTK.
1505 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
1506 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
1507 is in gtkutil.c.
1508 (x_term_init): Add initialization for GTK.
1509 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
1510
1511 * xmenu.c: Include gtkutil.h for USE_GTK.
1512 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
1513 (single_menu_item, single_menu_item, Fx_popup_dialog):
1514 Check for USE_GTK.
048addec
JD
1515 (popup_widget_loop): New function for USE_GTK.
1516 (x_activate_menubar): Add code for USE_GTK.
1517 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
1518 (menu_highlight_callback, menubar_selection_callback):
1519 Add USE_GTK versions.
048addec
JD
1520 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
1521 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
1522 (free_frame_menubar): Only compile if not USE_GTK. GTK version
1523 is in gtkutil.c.
1524 (popup_selection_callback): New version for USE_GTK.
1525 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 1526 one USE_X_TOOLKIT version.
048addec
JD
1527 (xmenu_show): Call create_and_show_popup_menu.
1528 (dialog_selection_callback): New version for USE_GTK.
1529 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 1530 one USE_X_TOOLKIT version.
048addec
JD
1531 (xdialog_show): Call create_and_show_dialog.
1532
1533 * xfns.c: Include gtkutil for USE_GTK.
1534 (x_window_to_frame, x_any_window_to_frame)
1535 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
1536 (x_top_window_to_frame): Add code for USE_GTK.
1537 (x_set_background_color): Call xg_set_background_color for GTK.
1538 (x_set_menu_bar_lines): Check for USE_GTK.
1539 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
1540 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
1541 (x_window): Call xg_create_frame_widgets for USE_GTK.
1542 (Fx_create_frame): Check for USE_GTK
1543 (Fx_file_dialog): New implementation for USE_GTK.
1544
1545 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
1546 (update_menu_bar): Add check for USE_GTK.
1547 (update_tool_bar): Add check for USE_GTK and external tool bar.
1548 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
1549 (redisplay_internal): Add check for USE_GTK and popup_activated.
1550 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
1551 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
1552 (display_menu_bar): Add check for USE_GTK
1553
1554 * lisp.h: Declare Vx_resource_name extern.
1555
1556 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
1557 for USE_GTK.
1558 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
1559
1560 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
1561 (FRAME_EXTERNAL_TOOL_BAR): New macro.
1562 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
1563
1564 * fileio.c (Fread_file_name): Add check for USE_GTK.
1565
6bdb309a
SM
1566 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
1567 Add check for USE_GTK.
048addec
JD
1568
1569 * config.in: Added HAVE_GTK
1570
1571 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
1572
15732003-01-18 Stefan Monnier <monnier@cs.yale.edu>
1574
1575 * charset.h (Funibyte_char_to_multibyte): Export.
1576
15772003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1578
1579 * xmenu.c (mouse_position_for_popup): New function.
1580 (Fx_popup_menu): Call mouse_position_for_popup for X and
1581 mouse_position_hook for others.
1582
15832003-01-17 Kim F. Storm <storm@cua.dk>
1584
1585 * editfns.c (Finsert): Mention `string-make-multibyte' and
1586 `string-as-multibyte' in doc string.
1587
15882003-01-17 Kenichi Handa <handa@m17n.org>
1589
1590 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 1591
048addec
JD
1592 * editfns.c (Fformat): Convert an unibyte char argument that is
1593 formatted by "%c" to multibyte if the total result must be a
1594 multibyte string.
cd7df9c0 1595
048addec 15962003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 1597
048addec
JD
1598 * process.c (set-process-filter): Document unibyte/multibyte-ness
1599 of string argument.
56210ecd 1600
048addec 16012003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 1602
048addec 1603 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 1604
048addec
JD
1605 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
1606 (re_search_2): Likewise.
6df8b9fe 1607
048addec 16082003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 1609
048addec
JD
1610 * xdisp.c (message_dolog): Fix bug of the case that *Message*
1611 buffer is unibyte.
292ddc31 1612
048addec 16132003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 1614
048addec 1615 * fns.c (Fsubstring): Clarify doc string.
292ddc31 1616
048addec
JD
1617 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
1618 (Fprevious_char_property_change)
1619 (Fnext_single_char_property_change)
1620 (Fprevious_single_char_property_change, Fnext_property_change)
1621 (Fnext_single_property_change, Fprevious_property_change)
1622 (Fprevious_single_property_change, Fadd_text_properties)
1623 (Fput_text_property, Fset_text_properties)
1624 (Fremove_text_properties, Fremove_list_of_text_properties)
1625 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 1626
048addec 16272003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 1628
048addec
JD
1629 * process.h (struct Lisp_Process): New member plist replaces old
1630 member private_vars. All uses changed.
63e4e4c6 1631
048addec 1632 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 1633 (QCplist): Rename from QCvars. Change all uses.
048addec 1634 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 1635 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 1636 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 1637 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 1638
048addec 16392003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 1640
6bdb309a 1641 * m/delta.h: Remove (obsolete).
e833850f 1642
048addec 16432003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 1644
048addec
JD
1645 * fileio.c (Fdelete_directory, Fdelete_file): Document the
1646 behaviour in front of symlinks.
1647 (Fdelete_file): Raise an error on directories.
817cb127 1648
048addec 16492003-01-13 Dave Love <fx@gnu.org>
817cb127 1650
048addec 1651 * fns.c (Freverse): Use QUIT.
3e8cf2ea 1652
048addec 16532003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 1654
048addec
JD
1655 * minibuf.c (minibuffer_completion_contents):
1656 Error if point is inside prompt.
3e8cf2ea 1657
048addec
JD
1658 * keyboard.c (command_loop_1): Don't redisplay directly
1659 if there's a post-command-hook.
3e8cf2ea 1660
048addec
JD
1661 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
1662 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 1663
048addec 16642003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 1665
048addec 1666 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 1667
048addec
JD
1668 * process.c (QCvars): New variable.
1669 (syms_of_process): Intern and staticpro it.
1670 (Fset_process_contact): Removed function.
1671 (Fprocess_variable, Fset_process_variable): New functions.
1672 (syms_of_process): Defsubr them.
1673 (Fstart_process): Initialize private_vars plist to nil.
1674 (Fmake_network_process): New arg :vars to setup the private
1675 variables for new network process.
1676 (server_accept_connection): Copy server's private variables to
1677 client process.
2c10f029 1678
048addec
JD
1679 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
1680 crashes). Code rewritten and simplified. Now directly aligns the
1681 pointer and recalculates pure_bytes_used, rather than aligning the
1682 size and adjusting the pointer.
b8a76c6c 1683
048addec 16842003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 1685
048addec
JD
1686 * process.c (Fset_process_contact): New function.
1687 (syms_of_process): defsubr it.
1688 (make-network-process): Update doc.
3a8d0899 1689
048addec 16902003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 1691
048addec
JD
1692 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
1693 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 1694
048addec 16952003-01-10 Dave Love <fx@gnu.org>
4abc7470 1696
048addec 1697 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 1698
048addec 16992003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 1700
048addec
JD
1701 * process.c (Fmake_network_process): Convert new port number
1702 to host byte order for `:service t' case. From Mario Lang.
bf338245 1703
048addec 17042003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 1705
048addec
JD
1706 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
1707 instead of XtAppProcessEvent.
bf338245 1708
048addec
JD
1709 * xterm.c (handle_one_xevent): New function.
1710 (x_dispatch_event): New function.
1711 (XTread_socket): Call handle_one_xevent.
bf338245 1712
048addec 1713 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 1714
048addec
JD
1715 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
1716 call XQueryPointer to get coordinates.
1717 (popup_get_selection): Do not set popup_activated_flag to zero,
1718 let popup_deactivate_callback do that. Needed for Motif.
1719 Call x_dispatch_event instead of XtDispatchEvent.
1720 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 1721
048addec 17222003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 1723
6bdb309a 1724 * process.c (server_accept_connection): Fix recording of new
048addec
JD
1725 connection's local address in :local property of contact info.
1726 (Fmake_network_process): Record local network address for new
1727 client processes in :local property of contact info.
6bdb309a 1728 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 1729
048addec 17302003-01-07 Dave Love <fx@gnu.org>
00e3ab56 1731
048addec 1732 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 1733
048addec 17342003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 1735
048addec 1736 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 1737
048addec
JD
1738 * eval.c (Fuser_variable_p): Doc change. For custom variables,
1739 use the same test as for custom-variable-p.
8c6d74c6 1740
048addec 17412003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 1742
048addec
JD
1743 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
1744 Count LAST_LINE_MISFIT in scroll margin for end of window.
1745 Move label too_near_end before setting SCROLL_MARGIN_POS.
1746 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 1747
048addec
JD
1748 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
1749 scroll_conservatively case. If scrolling that much doesn't change
1750 STARTP, move it down one line.
e833850f 1751
048addec
JD
1752 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
1753 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 1754
048addec
JD
1755 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
1756 selected frame.
8c6d74c6 1757
048addec
JD
1758 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
1759 (syms_of_keymap): staticpro them.
1760 (Fapropos_internal): Initialize them and clear them out.
1761 Don't GCPRO them.
8c6d74c6 1762
048addec
JD
1763 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
1764 Doc fixes.
8c6d74c6 1765
048addec
JD
1766 * lisp.h: New misc type Lisp_Save_Value.
1767 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
1768 (XSAVE_VALUE): New macro.
1769 (struct Lisp_Save_Value): New data type.
1770 (union Lisp_Misc): Add u_save_value alternative.
1771 (make_save_value): Declared.
8c6d74c6 1772
048addec 1773 * alloc.c (make_save_value): New function.
8c6d74c6 1774
048addec
JD
1775 * xterm.c (x_catch_errors): Save dpy using make_save_value.
1776 (x_catch_errors_unwind): Call XSync.
8c6d74c6 1777
048addec 17782003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 1779
048addec 1780 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 1781
048addec
JD
1782 * keyboard.c (command_loop_1): Call adjust_point_for_property
1783 in direct action cases for Qforward_char and Qbackward_char.
1784 Set already_adjusted so it won't be done twice.
8c6d74c6 1785
048addec 17862002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
8c6d74c6 1787
048addec
JD
1788 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
1789 type definition of size_t.
8c609cff 1790
048addec 17912003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 1792
048addec
JD
1793 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
1794 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 1795
048addec 17962002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 1797
048addec
JD
1798 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
1799 to default to t.
fa634a5e 1800
048addec 18012002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 1802
048addec 1803 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 1804
048addec 18052002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 1806
048addec
JD
1807 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
1808 allow building in a different directory than source. Uses some
1809 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 1810
048addec 18112002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 1812
048addec
JD
1813 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
1814 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
1815 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
1816 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 1817
048addec 18182002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 1819
048addec
JD
1820 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
1821 <scroll-down-aggressively>: Doc fix.
2155ecf3 1822
048addec
JD
1823 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
1824 string as pane name, if there is one.
1825 (set_frame_menubar): Save menu_items_n_panes from each call to
1826 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 1827
048addec
JD
1828 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
1829 Don't try to make last line fully visible if it is past end of window.
61f1d295 1830
048addec 18312002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 1832
048addec
JD
1833 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
1834 (mac_menu_show): Add support for hierarchical popup menus.
1835 (add_menu_item): Remove indentation support.
1836 (fill_submenu, fill_menu): Create hierarchical menus
1837 instead of using indentation.
0b17a217 1838
048addec 18392002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 1840
048addec
JD
1841 * xdisp.c (try_cursor_movement): Don't call try_window here.
1842 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 1843
048addec 1844 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 1845
048addec 18462002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 1847
048addec
JD
1848 * macterm.c (XTread_socket): Call KeyTranslate for control and
1849 meta to deal correctly shifted non-alpha characters, like C-S-5
1850 being treated like C-%. Does not look for shift key to deal
1851 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 1852
048addec 18532002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 1854
048addec
JD
1855 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
1856 If it is non-nil, run timers. Use an unwind-protect to requeue
1857 the events that were read ahead.
1858 (popup_get_selection_unwind): New subroutine.
1859 (popup_get_selection_queue): File-scope variable now holds that queue.
1860 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
1861 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
1862 Use an unwind-protect to pop down the dialog box.
1863 (xdialog_show_unwind): New subroutine implements that.
f02cac82 1864
048addec
JD
1865 * xdisp.c (row_containing_pos): Change exit test using last_y.
1866 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 1867
048addec
JD
1868 * lread.c (load_error_handler): New function.
1869 (Fload): Handle errors in Fsubstitute_in_file_name.
1870 Don't expect Fsignal to return.
f02cac82 1871
048addec
JD
1872 * eval.c: Errors and throws work right with interrupt blocking.
1873 (struct catchtag): New elt interrupt_input_blocked.
1874 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
1875 (internal_catch, Fcondition_case, internal_condition_case)
1876 (internal_condition_case_1, internal_condition_case_2): Save it.
1877 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 1878
048addec 1879 * editfns.c (Fformat): Add parens.
f02cac82 1880
048addec
JD
1881 * dired.c (file_name_completion): Fix that change.
1882 Delete special quit-handling code; just use QUIT.
f02cac82 1883
048addec 18842002-12-21 Tak Ota <Takaaki.Ota@am.sony.com> (tiny change)
f02cac82 1885
048addec
JD
1886 * dired.c (file_name_completion): Close directory on error
1887 just as in directory_files_internal.
1a590729 1888
048addec 18892002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 1890
048addec
JD
1891 * window.c (Fset_window_configuration): Set old_point to correct
1892 value when new_current_buffer == current_buffer.
f02cac82 1893
048addec 18942002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 1895
048addec
JD
1896 Revisited my earlier fix for the following entry in etc/PROBLEMS:
1897 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
1898 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 1899
048addec
JD
1900 These changes were in part based upon suggestions made by Peter
1901 'Luna' Runestig [peter@runestig.com].
9785d95b 1902
048addec
JD
1903 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
1904 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 1905 g_b_init_get_sid_identifier_authority ): Add several static
048addec 1906 global variables.
9785d95b 1907
048addec
JD
1908 * w32.c (globals_of_w32): New function. Used to initialize those
1909 global variables that must always be initialized on startup even
1910 when the global variable initialized is non zero. Its primary
1911 purpose at this time is to set the global variables
1912 g_b_init_is_windows_9x, g_b_init_open_process_token,
1913 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
1914 g_b_init_get_sid_identifier_authority to 0 on startup.
1915 Called from main.
9785d95b 1916
048addec
JD
1917 * w32.c (is_windows_9x): Perform initialization only if
1918 g_b_init_is_windows_9x is equal to 0. On initialization set
1919 g_b_init_is_windows_9x equal to 1.
2308af15 1920
048addec
JD
1921 * w32.c (open_process_token): Perform initialization only if
1922 g_b_init_open_process_token is equal to 0. On initialization set
1923 g_b_init_open_process_token equal to 1.
2308af15 1924
048addec
JD
1925 * w32.c (get_token_information): Perform initialization only if
1926 g_b_init_get_token_information is equal to 0. On initialization
1927 set g_b_init_get_token_information equal to 1.
9785d95b 1928
048addec
JD
1929 * w32.c (lookup_account_sid): Perform initialization only if
1930 g_b_init_lookup_account_sid is equal to 0. On initialization
1931 set g_b_init_lookup_account_sid equal to 1.
9785d95b 1932
048addec
JD
1933 * w32.c (get_sid_identifier_authority): Perform initialization
1934 only if g_b_init_get_sid_identifier_authority is equal to 0.
1935 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 1936
048addec
JD
1937 * w32fns.c (globals_of_w32fns): New function. Used to initialize
1938 those global variables that must always be initialized on startup
1939 even when the global variable initialized is non zero.
1940 Its primary purpose at this time is to initialize the global variable
1941 track_mouse_event_fn.
9785d95b 1942
048addec
JD
1943 * w32fns.c (w32_wnd_proc): Remove initialization of
1944 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 1945
048addec 1946 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 1947
048addec
JD
1948 * w32menu.c (globals_of_w32menu): New function. Used to
1949 initialize those global variables that must always be initialized
1950 on startup even when the global variable initialized is non zero.
1951 Its primary purpose at this time is to initialize the global
1952 variables get_menu_item_info and set_menu_item_info.
9785d95b 1953
048addec
JD
1954 * w32menu.c (initialize_frame_menubar): Remove initialization of
1955 get_menu_item_info and set_menu_item_info.
9785d95b 1956
048addec 1957 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 1958
048addec
JD
1959 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
1960 Declare them.
9785d95b 1961
048addec
JD
1962 * emacs.c (main): Call globals_of_w32 prior to calling
1963 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
1964 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
1965 is defined.
9785d95b 1966
048addec
JD
1967 * w32term.c (x_update_window_begin): Fix Windows API error
1968 detected by BoundsChecker. Test to determine if
1969 w32_system_caret_hwnd is NULL prior to attempting to use
1970 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 1971
048addec
JD
1972 * w32term.c (x_update_window_end): Fix Windows API error
1973 detected by BoundsChecker. Test to determine if
1974 w32_system_caret_hwnd is NULL prior to attempting to use
1975 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 1976
048addec 19772002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 1978
048addec
JD
1979 * coding.c (coding_system_require_warning): New variable.
1980 (syms_of_coding): DEFVAR it.
b6da19ef 1981
048addec 1982 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 1983
048addec
JD
1984 * fileio.c (choose_write_coding_system): Even if
1985 Vcoding_system_for_write is non-nil, if
1986 coding_system_require_warning is nonzero, call
1987 Vselect_safe_coding_system_function.
bfcf6dbe 1988
048addec 19892002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 1990
048addec
JD
1991 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
1992 (lisp): Add font-core.
2c568af5 1993
048addec 19942002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 1995
048addec
JD
1996 * textprop.c (text_read_only): New arg `propval'.
1997 (get_char_property_and_overlay): Remove unused var `next_overlay'.
1998 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 1999
048addec 20002002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 2001
048addec 2002 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 2003
048addec 20042002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 2005
048addec
JD
2006 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
2007 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
2008 Be more careful about when help_events are generated.
96720f09 2009
048addec 20102002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 2011
048addec
JD
2012 * macterm.c (mac_check_for_quit_char): Correctly set the
2013 modifiers of the event to 0.
2014 * mac.c (sys_select): Duplicate rfds before calling select to
2015 ensure that rfds survive the while loop.
e5ae1c49 2016
048addec 20172002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 2018
048addec
JD
2019 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
2020 row_containing_pos returned NULL.
2eb46b2d 2021
048addec 20222002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 2023
6bdb309a 2024 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 2025 non-blocking.
6bdb309a 2026 (sys_select): Fix sys_select to not use a timeout larger than
048addec 2027 the one given.
b11f1d8a 2028
048addec 20292002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 2030
048addec 2031 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 2032
048addec 20332002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 2034
048addec
JD
2035 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
2036 as the last thing.
a4ac5b17 2037
048addec 20382002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 2039
048addec 2040 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 2041
048addec 20422002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 2043
048addec
JD
2044 * editfns.c (Fformat): Handle precision in string conversion
2045 specifiers like libc functions do (ie, print at most that many
2046 characters).
85cce843 2047
048addec 20482002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 2049
048addec
JD
2050 * xdisp.c (row_containing_pos): Check more carefully
2051 whether charpos is really in the row before returning it.
0d4d26a7 2052
048addec 20532002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 2054
048addec 2055 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 2056
048addec
JD
2057 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
2058 each stack frame. This may change as it could be time consuming.
0d4d26a7 2059
048addec
JD
2060 * macterm.c (mac_check_for_quit_char, quit_char_comp)
2061 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 2062 (mac_initialize): Add code to check for pressing of quit_char
048addec 2063 in the OS event queue.
b11f1d8a 2064
048addec
JD
2065 * mac.c (sys_select): Call mac_check_for_quit_char every second
2066 while blocking on select.
0d4d26a7 2067
048addec
JD
2068 * mac.c (sys_read): Use sys_select to test for input first
2069 before calling read, to allow C-g to break.
9252f7bc 2070
048addec 20712002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 2072
048addec 2073 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 2074
048addec 2075 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 2076
048addec 2077 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 2078
048addec
JD
2079 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
2080 autoload.
9252f7bc 2081
048addec 2082 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 2083
048addec 2084 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 2085
048addec 20862002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 2087
048addec 2088 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 2089
048addec 20902002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 2091
048addec 2092 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 2093
048addec 2094 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 2095
048addec 2096 * alloca.c: Don't use #error.
02d588e2 2097
048addec 20982002-12-03 Dave Love <fx@gnu.org>
02d588e2 2099
048addec
JD
2100 * buffer.c (Qucs_set_table_for_input): New.
2101 (Fget_buffer_create): Use it.
2102 (Qset_buffer_major_mode_hook): Deleted.
2103 (Fset_buffer_major_mode): Revert previous change.
2104 (init_buffer_once): Intern ucs-set-table-for-input.
2105 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
2106 Add &Qucs_set_table_for_input.
451e2697 2107
048addec 21082002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 2109
048addec
JD
2110 * callint.c (Fcall_interactively): Use next_event only if less
2111 than key_count.
72742a99 2112
048addec 21132002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 2114
048addec
JD
2115 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
2116 names to 255 characters.
72742a99 2117
048addec
JD
2118 * macterm.c (XTread_socket): If all frames have been collapsed,
2119 expand the first one before handling drag-and-drop events.
72742a99 2120
048addec
JD
2121 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
2122 which is detected by autoconf.
40e6ff95 2123
048addec 21242002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 2125
048addec
JD
2126 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
2127 offset in two hints table to allow prebinding to be redone and
2128 allow the executable to be stripped.
c02138c6 2129
048addec 21302002-11-29 Dave Love <fx@gnu.org>
c02138c6 2131
048addec
JD
2132 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
2133 already provided.
0e47bbf7 2134
048addec 21352002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 2136
048addec
JD
2137 * xdisp.c (start_display): Check more intelligently for
2138 whether the line is continued.
2139 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 2140
048addec 21412002-11-28 Dave Love <fx@gnu.org>
44129dcb 2142
048addec
JD
2143 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
2144 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 2145
048addec 21462002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 2147
048addec
JD
2148 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
2149 more descriptive error output from lread.c:Fload upon most require
2150 cycles during boostrapping.
1637fd2c 2151
048addec 21522002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 2153
048addec
JD
2154 * fileio.c (Finsert_file_contents): Give a more appropriate error
2155 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 2156
048addec
JD
2157 * dired.c (Ffile_attributes): Don't return negative file sizes for
2158 files bigger than 2Gb when off_t is 32 bit.
540c2788 2159
048addec 21602002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 2161
048addec 2162 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 2163
048addec
JD
2164 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
2165 Test GETPGRP_VOID instead.
2166 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 2167
048addec
JD
2168 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
2169 Don't define.
2170 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 2171
048addec 2172 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 2173
048addec 21742002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 2175
048addec
JD
2176 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
2177 supported.
4042a81a 2178
048addec 21792002-11-25 Dave Love <fx@gnu.org>
4042a81a 2180
048addec 2181 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 2182
048addec 2183 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 2184
048addec 21852002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 2186
048addec 2187 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 2188
048addec 21892002-11-24 Steven Tamm <steventamm@mac.com>
82122254 2190
048addec
JD
2191 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
2192 determine the size of pointers alloced in unexed space instead
2193 of using possibly invalid emacs_zone pointers. This fixes the
2194 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 2195
048addec 21962002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 2197
048addec 2198 * search.c (Fstring_match): Doc fix.
c1ee53bc 2199
048addec
JD
2200 * callint.c (Fcall_interactively): If a command fails because
2201 `*' detects a read-only buffer, but RECORD_FLAG is set,
2202 record it anyway if the args don't actually do tty input.
5598c32e 2203
048addec 22042002-11-22 Dave Love <fx@gnu.org>
5598c32e 2205
048addec 2206 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 2207
048addec
JD
2208 * keyboard.c (interrupt_signal): Provide forward declaration.
2209 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 2210
048addec 2211 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 2212
048addec 22132002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 2214
048addec
JD
2215 * eval.c (interactive_p): Skip any number of bytecode
2216 and special form frames, in any order.
516eea8e 2217
048addec 22182002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 2219
048addec
JD
2220 * w32fns.c (convert_mono_to_color_image): New function.
2221 (xbm_load, xbm_load_image): Use it when foreground or background
2222 is explicitly set.
04dbfa08 2223
048addec 22242002-11-19 Dave Love <fx@gnu.org>
04dbfa08 2225
048addec 2226 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 2227
048addec 22282002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 2229
048addec
JD
2230 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
2231 (XPutPixel): Swap blue and red.
2232 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
2233 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
2234 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
2235 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 2236
048addec 22372002-11-18 Dave Love <fx@gnu.org>
d824beee 2238
048addec 2239 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 2240
048addec 2241 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 2242
048addec 2243 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 2244
048addec
JD
2245 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
2246 malloc, realloc, calloc.
d824beee 2247
048addec
JD
2248 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
2249 (bcmp): Don't define.
d824beee 2250
048addec 2251 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 2252
048addec 2253 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 2254
048addec 2255 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 2256
048addec 2257 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 2258
048addec
JD
2259 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
2260 Don't include alloca.h.
d824beee 2261
048addec 2262 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 2263
048addec 2264 * regex.c (_GNU_SOURCE): Don't define.
1998560a 2265
048addec 2266 * process.c (_GNU_SOURCE): Don't define.
1998560a 2267
048addec 2268 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 2269
048addec 22702002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 2271
048addec 2272 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 2273
048addec 22742002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 2275
048addec
JD
2276 * dispextern.h (struct face): Add `overstrike' field.
2277 * xterm.c (x_draw_glyph_string_foreground)
2278 (x_draw_composite_glyph_string_foreground): Implement overstriking.
2279 * xfaces.c (load_face_font): Set `face->overstrike' based on
2280 result from choose_face_font.
2281 (best_matching_font, choose_face_font): Add `needs_overstrike'
2282 argument, and use it to return whether overstriking is desirable
2283 for this face/font combo.
2284 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 2285
048addec 22862002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 2287
048addec
JD
2288 This change is my fix for the following entry in etc/PROBLEMS:
2289 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
2290 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 2291
048addec
JD
2292 * w32.c: Added wrapper functions around the win32 API functions
2293 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
2294 GetSidIdentifierAuthority. These wrapper functions serve two
2295 purposes:
2296 1. They ensure that the wrapped function can never be called
2297 when Emacs is running on an operating system on which they are
2298 not supported (Microsoft Windows 95 / 98 / ME).
2299 2. They call the wrapped functions via function pointers rather
2300 than calling them directly. This avoids taking advantage of the
2301 undocumented fact that although these functions are not supported
2302 in the 9x branch of Microsoft Windows, the functions do exist in
2303 the version of advapi32.dll that is found in the 9x branch of
2304 Microsoft Windows.
f60ae425 2305
6bdb309a 2306 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
2307 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
2308 and GetSidIdentifierAuthority with calls to the newly added
2309 wrapper functions.
f60ae425 2310
048addec
JD
2311 * w32.h: Added extern declarations for the following functions:
2312 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
2313 syms_of_w32menu, and void syms_of_fontset.
f60ae425 2314
6bdb309a 2315 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
2316 function pointer track_mouse_event_fn in the handler for the
2317 WM_SETFOCUS message.
3582b6a3 2318
6bdb309a 2319 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
2320 reinitialize the function pointers set_menu_item_info and
2321 get_menu_item_info.
f60ae425 2322
048addec 23232002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 2324
048addec
JD
2325 * sound.c: Added a partial implementation of play-sound-internal
2326 for Microsoft Windows. Added various #ifdef / #else / #endif
2327 code blocks to separate the code that will compile under
2328 Microsoft Windows from the code that is specific to Gnu/Linux.
2329 Moved several blocks of code around to make this separation of code
2330 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 2331
048addec 2332 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 2333
048addec
JD
2334 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
2335 added support for play-sound-internal under Windows would be
2336 included in the build of Emacs.
517f42a0 2337
048addec 23382002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 2339
048addec 2340 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 2341
048addec 2342 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 2343
048addec 23442002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 2345
048addec
JD
2346 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
2347 (adjust_point_for_property): Move out of display and invisible even if
2348 we were already inside before (in case a property was added while
2349 we weren't looking). Be more careful when handling invisible props.
2350 Skip invisible text as if it really wasn't there at all.
aab83f91 2351
048addec 23522002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 2353
048addec
JD
2354 * w32term.c (x_draw_image_foreground)
2355 (w32_draw_image_foreground_1): Use standard copy and invert
2356 operations to draw images.
aab83f91 2357
048addec
JD
2358 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
2359 depth of 1.
2360 (xbm_read_bitmap_data): Invert bits as xbm is read in.
2361 (XPutPixel): Don't invert bits here.
a4478a76 2362
048addec 23632002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 2364
048addec
JD
2365 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
2366 (w32_draw_image_foreground_1): Handle image masks.
2367 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 2368
048addec
JD
2369 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
2370 (x_from_xcolors): Adjust RGB values for W32.
2371 (image_background, image_background_transparent)
2372 (postprocess_image, x_to_xcolors, x_disable_image)
2373 (x_build_heuristic_mask): Adapt for W32 and enable.
2374 (x_create_x_image_and_pixmap): Mark images with palettes as such.
2375 (xbm_load): Remove unused variable.
03670a65 2376
048addec 23772002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 2378
048addec 2379 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 2380
048addec 23812002-11-14 Dave Love <fx@gnu.org>
59daa29a 2382
048addec 2383 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 2384
048addec
JD
2385 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
2386 * xmenu.c (unuse_menu_items, digest_single_submenu):
2387 * xfns.c (x_put_x_image):
2388 * xdisp.c (message2_nolog, set_message):
2389 * undo.c (record_point):
2390 * terminfo.c (tparam):
2391 * syntax.c (scan_sexps_forward):
2392 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
2393 * composite.c (update_compositions):
2394 * cm.c (calccost, cmgoto):
2395 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 2396
048addec 2397 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 2398
048addec
JD
2399 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
2400 Don't declare.
59daa29a 2401
048addec 2402 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 2403
048addec
JD
2404 * fns.c (Fcopy_sequence): Doc fix.
2405 (Fmap_char_table): Cast `call2'.
3947677c 2406
048addec
JD
24072002-11-14 Francesco Potorti` <pot@gnu.org>
2408
2409 * s/sol2-8.h: New file.
2410
24112002-11-14 Kim F. Storm <storm@cua.dk>
2412
2413 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
2414 dependency on `risky-local-variable' and the :propertize form.
2415
24162002-11-12 Stefan Monnier <monnier@cs.yale.edu>
2417
2418 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
2419
2420 * syntax.c (scan_sexps_forward): Undo last patch.
2421 Use a more obvious fix: check eob before updating the syntax table.
2422
24232002-11-09 Stefan Monnier <monnier@cs.yale.edu>
2424
2425 * syntax.c (scan_sexps_forward): Update syntax table before reading
2426 a char rather than after so we don't update the table past eob.
2427
24282002-11-09 Dave Love <fx@gnu.org>
2429
2430 * buffer.c (Fset_buffer_major_mode): Fix last change.
2431
2432 * regex.c (regexec): Fix pmatch declaration.
2433
2434 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
2435
2436 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
2437 to self-inserting characters.
2438 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
2439
2440 * coding.c (Vtranslation_table_for_input): New.
2441 (syms_of_coding): DEFVAR it.
2442
24432002-11-08 Juanma Barranquero <lektu@terra.es>
2444
2445 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
2446 window.
2447
24482002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2449
6bdb309a 2450 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
2451 cp, and i.
2452
24532002-11-06 Dave Love <fx@gnu.org>
2454
2455 * buffer.c (Qset_buffer_major_mode_hook): New.
2456 (Fset_buffer_major_mode): Use it.
2457
24582002-11-06 Richard M. Stallman <rms@gnu.org>
2459
2460 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
2461 and stop_polling.
2462
2463 * process.c (wait_reading_process_input):
2464 Test POLLING_PROBLEM_IN_SELECT, not hpux.
2465 Avoid initialization for auto Lisp_Object var.
2466
2467 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
2468
2469 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
2470
24712002-11-05 Richard M. Stallman <rms@gnu.org>
2472
2473 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
2474
2475 * callint.c (Fcall_interactively): New local filter_specs.
2476 (Fcall_interactively): Check for progn as well as let.
2477 Add a gcpro.
2478 (Qprogn): New variable.
2479 (syms_of_callint): Staticpro and init Qprogn.
2480
24812002-11-04 John Paul Wallington <jpw@shootybangbang.com>
2482
2483 * lread.c (Feval_buffer): Doc fix.
2484
24852002-11-04 Dave Love <fx@gnu.org>
2486
2487 * keyboard.c (read_char): Always translate iff
2488 Vkeyboard_translate_table is a char table and c is valid.
2489
2490 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
2491 and fix C types.
2492
24932002-11-03 Stefan Monnier <monnier@cs.yale.edu>
2494
2495 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
2496
2497 * editfns.c (get_pos_property): Don't hardcode Qfield.
2498
2499 * keyboard.c (adjust_point_for_property): Handle `display' prop on
2500 overlays. Also handle `invisible' prop.
2501
25022002-11-02 Stefan Monnier <monnier@cs.yale.edu>
2503
2504 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
2505 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
2506
25072002-11-01 Andreas Schwab <schwab@suse.de>
2508
2509 * editfns.c (Fmessage): Revert last change to properly handle %%.
2510
25112002-11-01 Stefan Monnier <monnier@cs.yale.edu>
2512
2513 * xmenu.c (unuse_menu_items): New fun.
2514 (menu_items_inuse): New var.
2515 (syms_of_xmenu): Initialize it.
2516 (init_menu_items): Use it to detect re-entrance.
2517 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
2518 (Fx_popup_menu): Remove spurious XSETFRAME.
2519
2520 * editfns.c (find_field): Make an exception for nil fields.
2521
25222002-11-01 Dave Love <fx@gnu.org>
2523
2524 * m/gec63.h: Deleted.
2525
25262002-10-31 Dave Love <fx@gnu.org>
2527
2528 * xterm.c (XTread_socket): Fix last change.
2529 (xaw_scroll_callback): Cast call_data to long to avoid warning.
2530
25312002-10-31 Stefan Monnier <monnier@cs.yale.edu>
2532
2533 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
2534
25352002-10-30 Stefan Monnier <monnier@cs.yale.edu>
2536
2537 * editfns.c (overlays_around, get_pos_property): New funs.
2538 (find_field): Use them.
2539 Also be careful not to modify POS before its last use.
2540 (Fmessage): Don't Fformat if there's nothing to format.
2541
25422002-10-30 Dave Love <fx@gnu.org>
2543
2544 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
2545 [HAVE_PTY_H]; Include pty.h.
2546
2547 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
2548
2549 * xterm.c (Qeql): Declare.
2550 (Vx_keysym_table): New.
2551 (syms_of_xterm): Initialize it.
2552 (XTread_socket): Use it. Deal with ASCII keysyms.
2553 (XSetIMValues) [HAVE_X11R6]: Prototype.
2554
2555 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
2556 (lispy_kana_keys): Comment out.
2557 (make_lispy_event) [XK_kana_A]: Comment out.
2558 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
2559 Fix sprintf call.
2560
2561 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
2562 regexp.h change).
2563 (TERMINFO, LIBS_TERMCAP): Define.
2564
2565 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
2566 (bcmp): Define conditional on HAVE_BCMP.
2567 (NO_SIOCTL_H): Don't define.
2568 (TIOCSIGSEND): Don't make conditional on IRIX6.
2569
2570 * s/sol2-5.h: Don't include strings.h.
2571 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
2572
2573 * s/irix6-0.h (IRIX6): Don't define.
2574 (bcopy, bcmp, bzero): Don't undef.
2575
2576 * s/irix6-5.h: Don't include strings.h.
2577 (IRIX6): Don't define.
2578 (bcopy, bcmp, bzero): Don't undef.
2579
2580 * syntax.c (Fforward_comment): Doc fix.
2581
25822002-10-29 Kim F. Storm <storm@cua.dk>
2583
2584 * process.c (Fsignal_process): Allow PROCESS to be specified by
2585 name in addition to pid (as integer or string).
2586
25872002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
2588
2589 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
2590 environments.
2591
25922002-10-27 Kim F. Storm <storm@cua.dk>
2593
2594 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
2595
2596 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
2597
2598 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
2599
2600 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
2601
26022002-10-26 Richard M. Stallman <rms@gnu.org>
2603
2604 * editfns.c (Fformat): Detect invalid format letters for floats.
2605
26062002-10-25 Kenichi Handa <handa@m17n.org>
2607
2608 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
2609 (x_set_title): Likewise.
2610
26112002-10-25 Juanma Barranquero <lektu@terra.es>
2612
2613 * macgui.h:
2614 * w32gui.h: Remove definition of XColor.
2615
2616 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
2617
26182002-10-24 Kim F. Storm <storm@cua.dk>
2619
2620 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
2621 Callers changed (supply dummy arg).
2622
2623 * lisp.h (get_window_cursor_type): Update prototype.
2624
2625 * w32term.c (x_display_and_set_cursor): Get active_cursor from
2626 get_window_cursor_type to track system caret.
2627
26282002-10-24 Kim F. Storm <storm@cua.dk>
2629
2630 * process.c (Fformat_network_address): New function.
2631 (syms_of_process): Defsubr it.
2632 (list_processes_1): Use it to format :local/:remote address if
2633 service/host is not set; before emacs would crash in that case.
2634 (Fmake_network_process): Don't use Ffind_operation_coding_system
2635 to setup coding system if host or service is not set.
2636
26372002-10-23 Juanma Barranquero <lektu@terra.es>
2638
2639 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
2640
2641 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
2642 COLORREF.
2643
2644 * macgui.h:
2645 * w32gui.h: Add definition of XColor.
2646
2647 * macfns.c:
2648 * w32fns.c:
2649 * xfaces.c: Remove definition of XColor.
2650
26512002-10-22 Stefan Monnier <monnier@cs.yale.edu>
2652
2653 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
2654
2655 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
2656 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
2657 window if it is dedicated.
2658 (Fshrink_window): Add preserve_before as was done for enlarge_window.
2659 (Vspecial_display_function): Update docstring.
2660
2661 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
2662 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
2663 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
2664
26652002-10-21 Stefan Monnier <monnier@cs.yale.edu>
2666
2667 * casefiddle.c (casify_region): Don't treat a prefix char as part
2668 of a word when at the beginning.
2669
26702002-10-17 Juanma Barranquero <lektu@terra.es>
2671
2672 * lread.c (syms_of_lread): Fix typos.
2673
26742002-10-17 Dave Love <fx@gnu.org>
2675
2676 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
2677
26782002-10-16 Richard M. Stallman <rms@gnu.org>
2679
2680 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
2681
26822002-10-14 Juanma Barranquero <lektu@terra.es>
2683
2684 * w16select.c (syms_of_win16select): Fix docstring for
2685 `selection-coding-system'.
2686
2687 * w32select.c (syms_of_w32select): Likewise.
2688
26892002-10-14 Stefan Monnier <monnier@cs.yale.edu>
2690
2691 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
2692 a backslash-quoted char.
2693 (scan_lists, scan_sexps_forward): Pacify the compiler.
2694
26952002-10-13 Richard M. Stallman <rms@gnu.org>
2696
2697 * window.c (window_scroll): Set immediate_quit.
2698
2699 * print.c (print): When backquote form is the car of a list,
2700 output in old style. Use old_backquote_output to output all
2701 comma forms inside it in old style too.
2702
2703 * buffer.h (struct buffer): Move `undo_list' down below `name'.
2704
27052002-10-11 Markus Rost <rost@math.ohio-state.edu>
2706
2707 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
2708 batch mode).
2709
2710 * lread.c (Fload): Doc fix (load-suffixes).
2711
27122002-10-10 Steven Tamm <steventamm@mac.com>
2713
2714 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
2715 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
2716 Also switch the default to Qnil from Qt.
2717
27182002-10-08 Kenichi Handa <handa@m17n.org>
2719
2720 * coding.c (code_convert_region): When we need more GAP for
2721 conversion, pay attention to the case that coding->produced is not
2722 greater than coding->consumed.
2723
27242002-10-07 Richard M. Stallman <rms@gnu.org>
2725
2726 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
2727
27282002-10-06 Andrew Choi <akochoi@shaw.ca>
2729
2730 * macmenu.c (mac_menu_show): Add j to count menu items; match
2731 menu_item_selection to it to find selected item.
2732
27332002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2734
2735 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
2736 cases. The correct fix is to pass ReparentNotify to Xt.
2737 The shell widget interprets ConfigureNotify differently depending
2738 on if it has been reparented or not.
2739
27402002-10-05 Markus Rost <rost@math.ohio-state.edu>
2741
2742 * editfns.c (Fformat_time_string): Doc fix.
2743
27442002-10-05 John Paul Wallington <jpw@shootybangbang.com>
2745
2746 * fns.c (Flength): Doc fix.
2747
27482002-10-04 Stefan Monnier <monnier@cs.yale.edu>
2749
2750 * keyboard.c (keyremap): New struct.
2751 (read_key_sequence): Use it: globally replace keytran_foo with
2752 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
2753 keytran_next and fkey_next to just `next'.
2754
27552002-10-04 Steven Tamm <steventamm@mac.com>
2756
2757 * macterm.c (keycode_to_xkeysym_table): Change return to be
2758 treated like an X keysym.
2759
27602002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2761
2762 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
2763 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
2764 This is to also handle x/y changes that occur because of a resize.
2765
27662002-10-02 John Paul Wallington <jpw@shootybangbang.com>
2767
2768 * frame.c (Vdelete_frame_functions): New variable.
2769 (syms_of_frame): Initialize and defvar it.
2770 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
2771 it when frame's `tooltip' parameter is non-nil.
2772
2773 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
2774
2775 * w32fns.c (x_create_tip_frame): Likewise.
2776
2777 * macfns.c (x_create_tip_frame): Likewise.
2778
27792002-09-30 Kenichi Handa <handa@m17n.org>
2780
2781 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
2782 -1 before calling ccl_driver.
2783
2784 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
2785 Only when it is non-nil, handle composition sequence.
2786 (setup_coding_system) <0>: Don't force composition handling.
2787
2788 * Makefile.in (lisp, shortlisp): Add utf-16.elc
2789
27902002-09-29 Richard M. Stallman <rms@gnu.org>
2791
2792 * search.c (Freplace_match): Adjust match data for the substitution
2793 just made in the buffer.
2794
2795 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
2796 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
2797
27982002-09-27 Richard M. Stallman <rms@gnu.org>
2799
2800 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
2801 (read_char): Use them. Do all exits thru the end of the function.
2802
28032002-09-27 Kenichi Handa <handa@etl.go.jp>
2804
2805 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
2806 is nil.
2807
28082002-09-26 Richard M. Stallman <rms@gnu.org>
2809
2810 * regex.h (__restrict_arr): Don't define if already defined.
2811
2812 * coding.c (run_pre_post_conversion_on_str):
2813 Save and restore Vdeactivate_mark.
2814
28152002-09-26 John Paul Wallington <jpw@shootybangbang.com>
2816
2817 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
2818
28192002-09-26 Kenichi Handa <handa@etl.go.jp>
2820
2821 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
2822 nonzero, try face's family at first. Otherwise try FAMILY at first.
2823 (choose_face_font): If C is a single byte char or latin-1, call
2824 try_font_list with PREFER_FACE_FAMILY 1.
2825
28262002-09-21 Richard M. Stallman <rms@gnu.org>
2827
2828 * window.c (select_window_1): Don't select frame.
2829 Set frame's selected window only when frame itself is selected.
2830 (Fselect_window): Doc fix.
2831
28322002-09-18 Kim F. Storm <storm@cua.dk>
2833
2834 * process.c (make-network-process): Doc fix (there is no
2835 network-server-log-function hook).
2836
28372002-09-18 Richard M. Stallman <rms@gnu.org>
2838
2839 * print.c (print): Clear out the unused parts of Vprint_number_table.
2840 (syms_of_print): Doc fix for `print-number-table'.
2841
2842 * unexelf.c (unexec): Undo previous change.
2843
28442002-09-17 Andreas Schwab <schwab@suse.de>
2845
2846 * m/alpha.h [LINUX]: Don't define DATA_START.
2847
28482002-09-16 Dave Love <fx@gnu.org>
2849
2850 * unexelf.c (unexec): Deal with .got, reinstating change from
2851 25-08-1999.
2852
28532002-09-13 Richard M. Stallman <rms@gnu.org>
2854
2855 * s/sol2-6.h (UNEXEC): Comment out definition.
2856
2857 * unexsol.c (unexec): Don't downcase first letter of error msg.
2858
2859 * xfaces.c (Fcolor_supported_p): Just one arg is required.
2860
28612002-09-12 Markus Rost <rost@math.ohio-state.edu>
2862
2863 * unexsol.c: Include buffer.h, charset.h, coding.h.
2864
28652002-09-11 Richard M. Stallman <rms@gnu.org>
2866
2867 * unexsol.c: Don't use report_file_error; do it by hand
2868 using dlerror.
2869
2870 * process.c (wait_reading_process_input, both versions):
2871 Before calling turn_on_atimers, call stop_polling.
2872
2873 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
2874
2875 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
2876 we go to too_near_end, call clear_glyph_matrix.
2877 (redisplay_window): After make_cursor_line_fully_visible,
2878 call clear_glyph_matrix and bypass `goto done'.
2879
2880 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
2881 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
2882
28832002-09-10 Richard M. Stallman <rms@gnu.org>
2884
2885 * fileio.c (Fdo_auto_save): Catch error making directory.
2886 Only call push_message if we need to.
2887 At the same time, make an unwind-protect to pop it.
2888 Rename local message_p to old_message_p.
2889 (do_auto_save_make_dir, do_auto_save_eh): New functions.
2890 (do_auto_save_unwind): Don't call pop_message.
2891
2892 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
2893
2894 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
2895
2896 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
2897
2898 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
2899
29002002-09-10 Stefan Monnier <monnier@cs.yale.edu>
2901
2902 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
2903 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
2904 (re_match_2_internal): Be more careful with infinite loops.
2905
29062002-09-10 Kim F. Storm <storm@cua.dk>
2907
2908 * macros.c (end_kbd_macro): New function.
2909 (Fend_kbd_macro): Use it.
2910
2911 * macros.h (end_kbd_macro): Declare extern.
2912
2913 * keyboard.c (Fdiscard_input): If defining keyboard macro,
2914 end and save it instead of discarding it.
2915
29162002-09-09 Markus Rost <rost@math.ohio-state.edu>
2917
2918 * s/sol2-6.h: Fix typo. Add comment.
2919
29202002-09-09 Richard M. Stallman <rms@gnu.org>
2921
2922 * regex.c (regnum_t): Use signed int, not unsigned int.
2923
2924 * s/sol2-6.h: New file.
2925
2926 * s/sol2-5.h (UNEXEC): Definition deleted.
2927
29282002-09-08 Kim F. Storm <storm@cua.dk>
2929
2930 * macros.c (executing_macro_index): Change type to EMACS_INT.
2931 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
2932
2933 * macros.h (executing_macro_index): Change type to EMACS_INT.
2934
29352002-09-06 Richard M. Stallman <rms@gnu.org>
2936
2937 * casetab.c (set_case_table): Make canon table point to eqv table.
2938
29392002-09-06 Juanma Barranquero <lektu@terra.es>
2940
2941 * coding.c (syms_of_coding): Fix spacing.
2942
2943 * composite.c (Fcompose_region_internal)
2944 (Fcompose_string_internal): Likewise.
2945
2946 * data.c (Flsh): Likewise.
2947
2948 * fontset.c (Fset_fontset_font): Likewise.
2949
2950 * macfns.c (Fx_server_max_request_size): Likewise.
2951
2952 * w16select.c (syms_of_win16select): Likewise.
2953
2954 * w32select.c (syms_of_w32select): Likewise.
2955
2956 * xselect.c (syms_of_xselect): Likewise.
2957
29582002-09-05 Richard M. Stallman <rms@gnu.org>
2959
2960 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
2961 call EXTEND_RANGE_TABLE and return a proper value.
2962 (set_image_of_range): Don't call set_image_of_range_1
2963 if no TRANSLATE or if range includes all of Latin-1.
2964 Only call it for the Latin-1 part of the range.
2965 For other cases, make two separate ranges,
2966 one for the original specified characters and one for
2967 their case-conversions.
2968
29692002-09-04 Richard M. Stallman <rms@gnu.org>
2970
2971 * s/sol2-5.h (UNEXEC): Use unexsol.o.
2972
2973 * window.c (displayed_window_lines): Correct for one-off bug
2974 in HEIGHT on non-window displays.
2975
2976 * regex.c (set_image_of_range_1): New function.
2977 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
2978 Return a value to indicate running out of memory.
2979 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
2980 (extend_range_table_work_area): New subroutine.
2981 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
2982 Different calling conventions, and used from set_image_of_range{,_1}.
2983 (IMMEDIATE_QUIT_CHECK): Definitions moved.
2984
29852002-09-04 Juanma Barranquero <lektu@terra.es>
2986
2987 * makefile.w32-in: All dependencies updated.
2988
29892002-09-01 Richard M. Stallman <rms@gnu.org>
2990
2991 * unexsol.c: New file.
2992
2993 * xfns.c (Qbox): Declare external, don't define.
2994
2995 * xdisp.c (redisplay_window) <force-start case>:
2996 If point is on semi-visible last line, reposition
2997 it at previous line.
2998
2999 * alloc.c (display_malloc_warning): Use display-warning.
3000 (malloc_warning_1): Function deleted.
3001
3002 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
3003
3004 * lread.c (read1): Handle #! by skipping the line.
3005
30062002-08-31 Richard M. Stallman <rms@gnu.org>
3007
3008 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
3009 Don't include LDFLAGS.
3010 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
3011
30122002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
3013
3014 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
3015 member of x_display_info unless we compile for some window system.
3016
30172002-08-31 Kim F. Storm <storm@cua.dk>
3018
3019 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
3020 (get_window_cursor_type): Don't use them.
3021 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
3022
30232002-08-30 Kenichi Handa <handa@etl.go.jp>
3024
3025 * xdisp.c (get_next_display_element): Fix previous change.
3026
30272002-08-30 Andrew Choi <akochoi@shaw.ca>
3028
3029 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
3030 (expose_window): Use it to fix the display of overlapping
3031 rows (merge code from xterm.c).
3032
3033 * macfns.c (Qbox): Add extern declaration.
3034
30352002-08-30 Juanma Barranquero <lektu@terra.es>
3036
3037 * w32fns.c (Qbox): Make extern.
3038 (syms_of_w32fns): Remove initialization of Qbox.
3039
30402002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
3041
3042 * xfns.c (Fx_open_connection): Fix error message.
3043
30442002-08-30 Kim F. Storm <storm@cua.dk>
3045
3046 The following changes consolidates the handling of the cursor
3047 type in xdisp.c, moving duplicate code and functionality from
3048 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
3049
3050 * frame.h (enum text_cursor_kinds): Consolidated here.
3051 Added DEFAULT_CURSOR value.
3052 (struct frame) <desired_cursor, cursor_width>
3053 <blink_off_cursor, blink_off_cursor_width>: New fields.
3054 Consolidated from output_x, output_w32 and output_mac structs.
3055 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
3056 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
3057
3058 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
3059 Variables consolidated here.
3060 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
3061 (Vcursor_in_non_selected_windows): Renamed from
3062 cursor_in_non_selected_windows and changed to Lisp_Object.
3063 (syms_of_xdisp): Define and staticpro new and moved variables.
3064 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
3065 consolidated here. Recognize Qhollow setting.
3066 (set_frame_cursor_types): New function to set frame cursor types
3067 based on the frame parameters.
3068 (get_window_cursor_type): New function to calculate new cursor
3069 type and width for the specified window. Based on duplicated
3070 code consolidated here.
3071 Enhancements: cursor-in-non-selected-windows may be a cursor type,
3072 check buffer-local alternate-cursor-type and blink-cursor-alist
3073 before using built-in blink off methods.
3074
3075 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
3076
3077 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
3078 (get_specified_cursor_type, get_window_cursor_type)
3079 (set_frame_cursor_types): Added prototypes.
3080
3081 * macfns.c (x_specified_cursor_type): Removed.
3082 (x_set_cursor_type): Use set_frame_cursor_types.
3083 (Qbar, Qbox): Removed.
3084 (syms_of_macfns): Don't intern or staticpro them.
3085
3086 * macterm.c (x_specified_cursor_type): Remove prototype.
3087 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
3088 (x_display_and_set_cursor): Use get_window_cursor_type.
3089 Remove unused local variables cursor_non_selected, active_cursor.
3090 Redraw cursor if hbar cursor width changes.
3091 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
3092
3093 * macterm.h (enum text_cursor_kinds): Removed.
3094 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
3095 <blink_off_cursor, blink_off_cursor_width>: Members removed.
3096 (FRAME_DESIRED_CURSOR): Macro removed.
3097
3098 * w32fns.c (Vblink_cursor_alist): Removed.
3099 (Qbar, Qhbar, Qbox, Qhollow): Removed.
3100 (syms_of_w32fns): Don't intern, staticpro, or define them.
3101 (x_specified_cursor_type): Removed.
3102 (x_set_cursor_type): Use set_frame_cursor_types.
3103
3104 * w32term.c (x_specified_cursor_type): Remove prototype.
3105 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
3106 (x_display_and_set_cursor): Use get_window_cursor_type.
3107 Remove unused local variables cursor_off_state.
3108 Redraw cursor if hbar cursor width changes.
3109 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
3110
3111 * w32term.h (enum text_cursor_kinds): Removed.
3112 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
3113 <blink_off_cursor, blink_off_cursor_width>: Members removed.
3114 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
3115 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
3116 (struct w32_display_info) <x_highlight_frame>: Renamed member from
3117 w32_highlight_frame.
3118
3119 * xfns.c (Vblink_cursor_alist): Removed.
3120 (Qbar, Qhbar, Qbox, Qhollow): Removed.
3121 (syms_of_xfns): Don't intern, staticpro, or define them.
3122 (x_specified_cursor_type): Removed.
3123 (x_set_cursor_type): Use set_frame_cursor_types.
3124
3125 * xterm.c (x_specified_cursor_type): Remove prototype.
3126 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
3127 (x_display_and_set_cursor): Use get_window_cursor_type.
3128 Remove unused local variables cursor_off_state.
3129 Redraw cursor if hbar cursor width changes.
3130
3131 * xterm.h (enum text_cursor_kinds): Removed.
3132 (struct output_x) <current_cursor, desired_cursor, cursor_width>
3133 <blink_off_cursor, blink_off_cursor_width>: Members removed.
3134 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
3135 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
3136 (x_specified_cursor_type): Remove prototype.
3137
31382002-08-28 Richard M. Stallman <rms@gnu.org>
3139
3140 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
3141 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
3142 (Vblink_cursor_alist): New variable.
3143 (syms_of_w32fns): Initialize and defvar it.
3144 (x_specified_cursor_type): Recognize Qbox for filled box.
3145 Exceptions are hollow boxes.
3146 (Qbox, Qhollow): New variables.
3147 (syms_of_w32fns): Initialize and staticpro them.
3148
3149 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
3150 New macros.
3151 (struct w32_output): New fields blink_off_cursor,
3152 blink_off_cursor_width.
3153 (FRAME_CURSOR_WIDTH): New macro.
3154
3155 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
3156 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
3157
3158 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
3159 for bar cursor.
3160
3161 * w32term.c (expose_overlaps): New function.
3162 (expose_window): Use it to fix the display of overlapping rows.
3163
31642002-08-28 Simon Josefsson <jas@extundo.com>
3165
3166 * xfns.c (Fx_open_connection): Improve help when X connection
3167 fails, xhost is insecure and xauth is better.
3168
31692002-08-28 Juanma Barranquero <lektu@terra.es>
3170
3171 * makefile.w32-in: Add missing dependencies on w32term.h and
3172 composite.h.
3173
3174 * emacs.c (USAGE1): Add missing newline.
3175
31762002-08-27 Andrew Choi <akochoi@shaw.ca>
3177
3178 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
3179
31802002-08-27 Richard M. Stallman <rms@gnu.org>
3181
3182 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
3183 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
3184 (Vblink_cursor_alist): New variable.
3185 (syms_of_xfns): Initialize and defvar it.
3186 (x_specified_cursor_type): Recognize Qbox for filled box.
3187 Exceptions are hollow boxes.
3188 (Qbox, Qhollow): New variables.
3189 (syms_of_xfns): Initialize and staticpro them.
3190
3191 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
3192 New macros.
3193 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
3194
3195 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
3196 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
3197
3198 * emacs.c (main): Handle --script.
3199 (USAGE1): Mention --script.
3200 (standard_args): Define sort order for --script.
3201
32022002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
3203
3204 * xdisp.c (redisplay_updating_p): Variable removed.
3205 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
3206 New variables.
3207 (init_iterator): Don't free realized faces if
3208 inhibit_free_realized_faces is set.
3209 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
3210 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
3211 initialize Qinhibit_free_realized_faces.
3212
3213 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
3214 when iterator is adding glyphs to a glyph matrix.
3215
32162002-08-27 Kenichi Handa <handa@etl.go.jp>
3217
3218 * xdisp.c (get_next_display_element): In unibyte case, don't use
3219 octal form for such eight-bit characters that can be converted to
3220 multibyte char.
3221
32222002-08-26 Kim F. Storm <storm@cua.dk>
3223
3224 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize foreground
3225 and background colors. From Joe Buehler (tiny change).
3226
32272002-08-26 Miles Bader <miles@gnu.org>
3228
3229 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
3230
32312002-08-25 Andrew Choi <akochoi@shaw.ca>
3232
3233 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
3234 defined instead of MAC_OSX.
3235
3236 * s/darwin.h (select): Define select to sys_select only if
3237 HAVE_CARBON is defined.
3238 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
3239 (DONT_REOPEN_PTY): #def it.
3240
3241 * macterm.c (XTread_socket): Remove code to call
3242 SendEventToEventTarget for keys with command modifiers when
3243 mac_command_key_is_meta is nil.
3244
32452002-08-24 Andreas Schwab <schwab@suse.de>
3246
3247 * eval.c (Fdefvar): Fix last change.
3248
32492002-08-23 Richard M. Stallman <rms@gnu.org>
3250
3251 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
3252 Record variables in load history as (defvar . VAR).
3253 (Fdefvar): Don't record in load history if no initial value.
3254 (Qdefvar): New variable.
3255 (syms_of_eval): Init and staticpro it.
3256
3257 * lread.c (syms_of_lread): Doc fix.
3258 (build_load_history): Use Fmember to see if a definition
3259 is already in the Vload_history element.
3260
3261 * process.c (Fstart_process): Remove /: from program name.
3262
3263 * emacs.c (decode_env_path): Don't add /: if file name handler
3264 has a `safe-magic' property.
3265
3266 * callproc.c (Fcall_process): Remove /: from program name.
3267
32682002-08-23 Stefan Monnier <monnier@cs.yale.edu>
3269
3270 * regex.c (PATFETCH): Remove the translating fetch.
3271 (PATFETCH_RAW): Rename to PATFETCH.
3272 (set_image_of_range): New fun.
3273 (SET_RANGE_TABLE_WORK_AREA): Use it.
3274 (regex_compile): Don't translate the pattern chars so eagerly.
3275 Only do it when inserting an `exactn' bytecode or when handling
3276 a char-range.
3277 (mutually_exclusive_p): Avoid empty statement.
3278
32792002-08-22 Kim F. Storm <storm@cua.dk>
3280
3281 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
3282 end up on a partially visible line; this reverts a specific part
3283 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
3284 display error which has been reported several times now.
3285 However it introduces the problem that changes was supposed to fix.
3286 See my comments in the source if you want to debug this further.
3287
32882002-08-20 Kenichi Handa <handa@etl.go.jp>
3289
3290 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
3291
32922002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
3293
3294 * msdos.c (croak): Add `void' to definition.
3295
3296 * sysdep.c [MSDOS] (request_sigio, unrequest_sigio):
3297 Don't define them, they are defined in msdos.c.
3298
3299 * mem-limits.h [MSDOS]: Declare etext.
3300
3301 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
3302 `const' since CORRECT_DIR_SEPS modifies its target.
3303
33042002-08-19 Kim F. Storm <storm@cua.dk>
3305
3306 * keyboard.c (Fclear_this_command_keys): Added optional arg
3307 KEEP-RECORD to avoid clearing lossage when we just want to clear
3308 the current key sequence (kmacro needs this).
3309
33102002-08-19 Kenichi Handa <handa@localhost>
3311
3312 * composite.c (run_composition_function): Call FUNC if it is fboundp.
3313
3314 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
3315 cons, return Qnil.
3316
33172002-08-17 Richard M. Stallman <rms@gnu.org>
3318
3319 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
3320
3321 * sysdep.c [!VMS]: Include sys/files.h.
3322
3323 * editfns.c (save_restriction_restore): Defend from unchained marker.
3324
3325 * buffer.c (overlays_at): Handle extending vec uniformly.
3326 (overlays_in): Handle extending vec from length 0 as in overlays_at.
3327
33282002-08-15 Andrew Choi <akochoi@shaw.ca>
3329
3330 * mac.c (init_mac_osx_environment): New function.
3331
3332 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
3333
33342002-08-14 Kim F. Storm <storm@cua.dk>
3335
3336 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
3337 executing macro before appending to it (when used from Lisp).
3338 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
3339 which is called prior to each iteration of macro (for kmacro.el).
3340 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
3341
3342 * lisp.h (Fexecute_kbd_macro): Update prototype.
3343
3344 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
3345
33462002-08-14 Kenichi Handa <handa@etl.go.jp>
3347
3348 * xselect.c (QUTF8_STRING): New variable.
3349 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
3350 (x_atom_to_symbol): Likewise.
3351 (x_get_local_selection): New argument local_request. If it is
3352 nonzero, call handler_fn with the second arg nil.
3353 (x_handle_selection_request): Call x_get_local_selection with
3354 local_request 0.
3355 (lisp_data_to_selection_data): Don't encode the string here.
3356 (Fx_get_selection_internal): Call x_get_local_selection with
3357 local_request 1.
3358 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
3359
3360 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
3361
3362 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
3363
33642002-08-13 Richard M. Stallman <rms@gnu.org>
3365
3366 * minibuf.c (Fminibufferp): New function.
3367 (syms_of_minibuf): Defsubr it.
3368 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
3369
33702002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
3371
3372 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
3373
33742002-08-12 Richard M. Stallman <rms@gnu.org>
3375
3376 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
3377 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
3378 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
3379 already.
3380
3381 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
3382
33832002-08-11 Andrew Choi <akochoi@shaw.ca>
3384
3385 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
3386 (Vmac_pass_command_to_system): New variable.
3387 (Vmac_pass_control_to_system): New variable.
3388 (do_mouse_moved): Check wp with is_emacs_window.
3389 (XTread_socket): Check window_ptr with is_emacs_window.
3390 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
3391 events back to Mac Toolbox for processing, depending on values of
3392 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
3393 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
3394 Vmac_pass_control_to_system.
3395
33962002-08-10 Kenichi Handa <handa@etl.go.jp>
3397
3398 * coding.c (unencodable_char_position): New function.
3399 (Funencodable_char_position): New function.
3400 (syms_of_coding): Defsubr Funencodable_char_position.
3401
34022002-08-10 Andrew Choi <akochoi@shaw.ca>
3403
3404 * mac.c (sys_select) [MAC_OSX]: New function.
3405
3406 * macterm.c (MakeMeTheFrontProcess): New function.
3407 (mac_initialize): Call MakeMeTheFrontProcess.
3408
3409 * s/darwin.h: Define select to sys_select.
3410
34112002-08-09 Richard M. Stallman <rms@gnu.org>
3412
3413 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
3414
34152002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
3416
3417 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
3418 end of the buffer.
3419
34202002-08-08 Ken Raeburn <raeburn@mit.edu>
3421
3422 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
3423
3424 * puresize.h (BASE_PURESIZE): Increase to 910000.
3425
34262002-08-08 Kenichi Handa <handa@etl.go.jp>
3427
3428 * coding.c (Ffind_operation_coding_system): For write-region, if
3429 VISIT is a filename, make it the target.
3430
34312002-08-07 Richard M. Stallman <rms@gnu.org>
3432
3433 * alloc.c (mark_object): Detect long lists for debugging.
3434 (mark_object_loop_halt): New variable.
3435
3436 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
3437
3438 * data.c (Fmake_variable_frame_local): Doc fix.
3439
34402002-08-01 David Ponce <david@dponce.com>
3441
3442 * w32menu.c (local_heap, local_alloc, local_free): New macros.
3443 (malloc_widget_value, free_widget_value)
3444 (w32_free_submenu_strings): Use them.
3445
3446 (push_submenu_start, push_submenu_end, push_left_right_boundary)
3447 (push_menu_pane, push_menu_item, single_keymap_panes)
3448 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
3449 (single_submenu, set_frame_menubar)
3450 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
3451
3452 (Fx_popup_menu): Don't show pop up menu until preceding one is
3453 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
3454
3455 * w32menu.c: Changes adapted from xmenu.c
3456 (set_frame_menubar): First parse all submenus,
3457 then make widget_value trees from them.
3458 Don't allocate any widget_value objects
3459 until we are done with the parsing.
3460 (parse_single_submenu): New function.
3461 (digest_single_submenu): New function.
3462 (single_submenu): Function deleted, replaced by those two.
3463
34642002-08-04 Andrew Choi <akochoi@shaw.ca>
3465
3466 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
3467 returns a valid window pointer before proceeding for keyDown and
3468 autoKey events.
3469
34702002-08-03 Andrew Choi <akochoi@shaw.ca>
3471
3472 * macterm.c (USE_CARBON_EVENTS): New macro.
3473 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
3474 (x_iconify_frame): Call CollapseWindow.
3475 (Vmac_reverse_ctrl_meta): New variable.
3476 (Vmac_wheel_button_is_mouse_2): New variable.
3477 (init_mac_drag_n_drop): New function.
3478 (mac_do_receive_drag): New function.
3479 (mac_handle_service_event): New function.
3480 (init_service_handler): New function.
3481 (mac_to_emacs_modifiers): New function.
3482 (mac_event_to_emacs_modifiers): New function.
3483 (mac_get_mouse_btn): New function.
3484 (mac_convert_event_ref): New function.
3485 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
3486 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
3487 mac_get_mouse_btn.
3488 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
3489
3490 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
3491 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
3492 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
3493 TOOL_BAR_EVENT for MAC_OS as well.
3494 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
3495 as for WINDOWS_NT.
3496 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
3497
3498 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
3499
35002002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
3501
3502 * xdisp.c (forward_to_next_line_start): Fix a condition that
3503 lead to a newline being skipped.
3504
35052002-08-02 Andrew Choi <akochoi@shaw.ca>
3506
3507 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
3508
35092002-08-01 Richard M. Stallman <rms@gnu.org>
3510
3511 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
3512
35132002-07-31 Andrew Choi <akochoi@shaw.ca>
3514
3515 * macfns.c: #undef init_process before #define-ing it.
3516
3517 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
3518 HAVE_CARBON is defined.
3519
35202002-07-31 Richard M. Stallman <rms@gnu.org>
3521
3522 * xmenu.c (set_frame_menubar): First parse all submenus,
3523 then make widget_value trees from them.
3524 Don't allocate any widget_value objects
3525 until we are done with the parsing.
3526 (parse_single_submenu): New function.
3527 (digest_single_submenu): New function.
3528 (single_submenu): Function deleted, replaced by those two.
3529
35302002-07-30 Juanma Barranquero <lektu@terra.es>
3531
3532 * w32proc.c (syms_of_ntproc): Fix docstring of
3533 `w32-get-true-file-attributes'.
3534
35352002-07-28 Richard M. Stallman <rms@gnu.org>
3536
3537 * s/hpux8.h (HPUX8): Define this before including hpux.h.
3538 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
3539
3540 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
3541
3542 * keyboard.c (make_lispy_event):
3543 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
3544 Explicitly clear up_modifier in event->modifiers.
3545
35462002-07-27 Richard M. Stallman <rms@gnu.org>
3547
3548 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
3549
3550 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
3551 for bar cursor.
3552
35532002-07-26 Kenichi Handa <handa@etl.go.jp>
3554
3555 * coding.c (detect_coding_iso2022): While checking a byte sequence
3556 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
3557 it in the normal loop.
3558
35592002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
3560
3561 * xterm.c (expose_overlaps): New function.
3562 (expose_window): Use it to fix the display of overlapping rows.
3563
3564 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
3565
35662002-07-23 Ken Raeburn <raeburn@gnu.org>
3567
3568 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
3569 since it only depends on XUINT.
3570
3571 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
3572 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
3573 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
3574 Macros deleted.
3947677c 3575
77d1daf2
AS
3576 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
3577 its value over other approaches.
3578 * sysdep.c (start_of_data): Don't define the function if a macro
3579 form has been defined.
8a8e19a3 3580
048addec
JD
35812002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
3582
3583 * xdisp.c (redisplay_updating_p): New variable.
3584 (init_iterator): Don't free realized faces when
3585 redisplay_updating_p is set.
3586 (redisplay_internal): Set redisplay_updating_p while updating
3587 the display.
3588
35892002-07-23 Richard M. Stallman <rms@gnu.org>
3590
3591 * editfns.c (Fmessage): Treat "" like nil.
3592
35932002-07-23 Kenichi Handa <handa@etl.go.jp>
3594
3595 * xdisp.c (face_before_or_after_it_pos):
3596 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
3597
35982002-07-22 Juanma Barranquero <lektu@terra.es>
3599
3600 * callproc.c (init_callproc) [DOS_NT]:
3601 Initialize Vshared_game_score_directory to nil.
3602 (syms_of_callproc) [DOS_NT]: Likewise.
3603
36042002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
3605
3606 * xdisp.c (display_line): Replace an abort with xassert.
3607
36082002-07-21 Richard M. Stallman <rms@gnu.org>
3609
3610 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
3611 and END_UNCHANGED when setting buffer_unchanged_p.
3612 Use current_matrix_up_to_date_p to decide whether to use
3613 try_cursor_movement.
3614
3615 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
3616
3617 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
3618
3619 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
3620 Set to nil if dir does not exist.
3621 (syms_of_callproc): Init unconditionally and simply.
3622
3623 * buffer.c (Fbuffer_list): Doc fix.
3624
36252002-07-21 Ken Raeburn <raeburn@gnu.org>
3626
3627 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
3628
3629 * buffer.c (mmap_realloc): When shrinking, make sure number of
3630 pages to unmap is rounded towards zero.
3631
3632 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
3633 (XSETINT): Deleted.
3634
3635 * m/att3b.h (XINT): Don't define.
3636 (VALBITS, VALMASK, XTYPE): Deleted.
3637 (DATA_SEG_BITS): Define.
3638 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
3639 ARRAY_MARK_FLAG): Deleted.
3640 (DATA_SEG_BITS): Define.
3641 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
3642 (DATA_SEG_BITS): Define.
3643
36442002-07-20 Richard M. Stallman <rms@gnu.org>
3645
3646 * print.c (print_error_message): New args CONTEXT and CALLER.
3647 Calls changed.
3648
3649 * lisp.h (print_error_message): Declare new args.
3650
3651 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
3652 and CONTEXT to print_error_message, don't print them here.
3653 For a Quit, don't use Vsignaling_function.
3654 Call message_log_maybe_newline.
3655
3656 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
3657
36582002-07-20 Kim F. Storm <storm@cua.dk>
3659
3660 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
3661
36622002-07-19 Ken Raeburn <raeburn@gnu.org>
3663
3664 * bytecode.c (struct byte_stack): Pointers into byte string now
3665 point to const.
3666 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
3667 const.
3668 * charset.h (BCOPY_SHORT): Source pointer now points to const.
3669 * coding.c (encode_eol, detect_coding, detect_eol):
3670 (decode_coding, encode_coding, detect_coding_system):
3671 Source strings now treated as const.
3672 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
3673 modify Lisp string contents.
3674 * coding.h (decode_coding, encode_coding, detect_coding,
3675 detect_eol): Declarations updated.
3676 * composite.c (compose_chars_in_text): Treat Lisp string contents
3677 as const.
3678 * dispnew.c (safe_bcopy): Source pointer now points to const.
3679 * lisp.h (STRING_COPYIN): New macro.
3680 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
3681 (internal_with_output_to_temp_buffer): Declarations updated.
3682 * print.c (temp_output_buffer_setup):
3683 (internal_with_output_to_temp_buffer): Buffer name argument is now
3684 pointer to const.
3685 * sound.c (struct sound_device): Function pointer field "write"
3686 buffer argument now points to const.
3687 (vox_write): Buffer argument points to const.
3688 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
3689 contents as const.
3690 * sysdep.c (emacs_write): Buffer pointer now const.
3691 * term.c (encode_terminal_code): Buffer pointer now const.
3692 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
3693 (x_face_list_fonts, x_update_menu_appearance):
3694 (hash_string_case_insensitive): Treat Lisp string contents as const.
3695
36962002-07-19 Juanma Barranquero <lektu@terra.es>
3697
3698 * fileio.c (Ffile_name_as_directory): Fix argument name in docstring.
3699 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
3700
3701 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
3702
3703 * fileio.c (syms_of_fileio): Likewise.
3704
37052002-07-18 Richard M. Stallman <rms@gnu.org>
3706
3707 * data.c (Fdefalias): Doc fix.
3708
37092002-07-17 Dave Love <fx@gnu.org>
3710
3711 * intervals.h (text_property_stickiness): Use P_.
3712
3713 * ccl.c: Remove `emacs' conditionals.
3714 (ccl_backtrace_table): Fix size spec.
3715 (ccl_driver): Fix type errors.
3716
37172002-07-16 Ken Raeburn <raeburn@gnu.org>
3718
3719 * alloc.c (xstrdup, make_string, make_unibyte_string)
3720 (make_multibyte_string, build_string): String pointer args now
3721 point to const.
3722 * charset.c (find_charset_in_text, c_string_width):
3723 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
3724 * fileio.c (report_file_error):
3725 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
3726 (count_combining_before, count_combining_after, insert_1_both):
3727 (insert, insert_and_inherit, insert_string):
3728 (insert_before_markers, insert_before_markers_and_inherit):
3729 * lread.c (intern, oblookup, hash_string):
3730 * minibuf.c (temp_echo_area_glyphs):
3731 * search.c (fast_c_string_match_ignore_case):
3732 * sysdep.c (emacs_open, set_file_times):
3733 * xfaces.c (xstricmp):
3734 * xdisp.c (store_frame_title, string_char_and_length):
3735 (message_dolog, message2, message2_nolog, set_message): Likewise.
3736 (set_message_1): Cast message string argument to const pointer.
3737 * editfns.c (general_insert_function): Insertion function now
3738 takes pointer to const for input data.
3739 * charset.h (find_charset_in_text, c_string_width):
3740 (parse_str_as_multibyte): Declarations updated.
3741 * dispextern.h (xstricmp): Declaration updated.
3742 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
3743 (count_size_as_multibyte, count_combining_before):
3744 (count_combining_after, insert_1, insert_1_both, message_dolog):
3745 (insert, insert_and_inherit, insert_before_markers)
3746 (insert_before_markers_and_inherit, set_message, message2):
3747 (message2_dolog, build_string, make_string, make_unibyte_string):
3748 (make_multibyte_string, intern, oblookup, report_file_error):
3749 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
3750 (emacs_open, xstrdup): Declarations updated.
3751 * systime.h (set_file_times): Declaration updated.
3752
3753 * charset.c (find_charset_in_text, lisp_string_width): Use const
3754 for pointer to lisp string data.
3755 * charset.h (FETCH_STRING_CHAR_ADVANCE):
3756 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
3757 * coding.c (Ffind_coding_systems_region_interval):
3758 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
3759 (Fmake_directory_internal, Fdelete_directory):
3760 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
3761 * fontset.c (font_family_registry, fs_query_fontset):
3762 (list_fontsets):
3763 * frame.c (Fframe_parameter):
3764 * keyboard.c (cmd_error_internal):
3765 * keymap.c (Fdescribe_buffer_bindings):
3766 * lread.c (complete_filename_p, openp):
3767 * minibuf.c (Fminibuffer_complete_word):
3768 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
3769 (face_before_or_after_it_pos, next_element_from_string):
3770 (get_overlay_arrow_glyph_row, display_mode_element):
3771 (decode_mode_spec_coding):
3772 * xterm.c (same_x_server): Likewise.
3773
3774 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
3775 settings of non-existent fields.
3776
3777 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
3778 copy a lisp value.
3779
3780 * lread.c (Fintern_soft): Use string macros instead of
3781 Lisp_String fields.
3782 * keyboard.c (echo_char, parse_modifiers_uncached):
3783 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
3784 * textprop.c (validate_interval_range, interval_of): Likewise.
3785
3786 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
3787
3788 * charset.h (FETCH_STRING_CHAR_ADVANCE)
3789 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
3790 XSTRING()->size_byte.
3791
3792 * lisp.h (SDATA, SREF): Produce rvalue.
3793 (SSET): New macro.
3794 * alloc.c (make_event_array): Use SSET for storing into a string.
3795 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
3796 a string.
3797 * casefiddle.c (casify_object): Use SSET.
3798 * charset.h (FETCH_STRING_CHAR_ADVANCE)
3799 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
3800 address of string contents.
3801 * data.c (Faref): Use SDATA.
3802 (Faset): Use SDATA, SSET.
3803 * dired.c (directory_files_internal): Use SSET.
3804 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
3805 (Fread_file_name): Use SREF, SSET.
3806 * fns.c (concat): Use SSET.
3807 (concat, Fdelete): Use SDATA.
3808 * insdel.c (insert_from_string_1): Use SDATA.
3809 * keyboard.c (Fevent_convert_list): Use SREF.
3810 * lread.c (Fload): Use SDATA, SSET.
3811 * macfns.c (validate_x_resource_name): Use SSET.
3812 * process.c (status_message): Use SSET.
3813 * search.c (wordify): Use SDATA.
3814 (Freplace_match): Use SREF.
3815 * w32fns.c (validate_x_resource_name): Use SSET.
3816 * xfns.c (validate_x_resource_name): Use SSET.
3817 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
3818
38192002-07-16 Richard M. Stallman <rms@gnu.org>
3820
3821 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
3822
3823 * xdisp.c (reconsider_clip_changes):
3824 Don't test prevent_redisplay_optimizations_p.
3825 (redisplay_internal): Test prevent_redisplay_optimizations_p
3826 along with clip_changed in some cases.
3827 (try_window_id): Likewise.
3828 (redisplay_window): New local var buffer_unchanged_p.
3829
3830 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
3831
3832 * process.c (create_process): Test USG_SUBTTY_WORKS.
3833 (process_send_signal): Clean up handling of GID.
3834 Detect errors in ioctls meant to set GID.
3835
3836 * window.c (temp_output_buffer_show):
3837 Don't set prevent_redisplay_optimizations_p.
3838
38392002-07-15 Juanma Barranquero <lektu@terra.es>
3840
3841 * eval.c (Fdefvaralias): Add docstring argument.
3842
38432002-07-15 Ken Raeburn <raeburn@gnu.org>
3844
3845 * lisp.h (STRING_INTERVALS): Produce rvalue.
3846 (STRING_SET_INTERVALS): New macro.
3847 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
3848 * fns.c (Fstring_as_multibyte): Likewise.
3849 * intervals.c (balance_possible_root_interval, delete_interval)
3850 (create_root_interval, copy_intervals_to_string): Likewise.
3851 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
3852 instead of 0.
3853
38542002-07-14 Ken Raeburn <raeburn@gnu.org>
3855
3856 * lisp.h (STRING_SET_CHARS): New macro.
3857 (SCHARS, SBYTES): Produce rvalues.
3858 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
3859 * fns.c (concat): Likewise.
3860 * lread.c (read_vector): Likewise.
3861
3862 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
3863 (STRING_SET_UNIBYTE): New macro.
3864 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
3865 length of -1) changed to use STRING_SET_UNIBYTE.
3866 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
3867 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
3868 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
3869 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
3870 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
3871 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
3872 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
3873 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
3874 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
3875 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
3876 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
3877 STRING_BYTES or indirection changed to SCHARS, SBYTES,
3878 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
3879 unchanged for now.
3880
38812002-07-13 Kim F. Storm <storm@cua.dk>
3882
3883 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
3884
38852002-07-12 Richard M. Stallman <rms@gnu.org>
3886
3887 * fileio.c (Fwrite_region): Doc fix.
3888
3889 * print.c (print_error_message): Don't handle Vsignaling_function here.
3890
3891 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
3892 (command_loop_1): Avoid certain actions after memory-full error.
3893
3894 * eval.c (Fsignal): Don't call cancel_hourglass.
3895 For a memory-full error, don't call Vsignal_hook_function
3896 and don't set Vsignaling_function.
3897
3898 * process.c (process_send_signal): Add abort call.
3899
39002002-07-11 Markus Rost <rost@math.ohio-state.edu>
3901
3902 * keymap.c (Fkey_binding): Fix typo.
3903
39042002-07-11 Richard M. Stallman <rms@gnu.org>
3905
3906 * alloc.c (Vmemory_full): New variable.
3907 (Vmemory_signal_data): Renamed from memory_signal_data.
3908 Uses changed.
3909 (syms_of_alloc): Defvar them.
3910 (memory_full, buffer_memory_full): Set Vmemory_full.
3911
3912 * lisp.h (Vmemory_full): Add declaration.
3913 (current_column, indented_beyond_p): Change declaration.
3914
3915 * indent.c (last_known_column): Declare as double, not float.
3916 (current_column, current_column_1, string_display_width)
3917 (position_indentation): Return `double'.
3918 (indented_beyond_p): Arg `column' is `double'. Callers changed.
3919
3920 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
3921 (back_to_previous_visible_line_start)
3922 (reseat_at_next_visible_line_start, next_element_from_buffer):
3923 Use `double', not `float', when calling indented_beyond_p.
3924
3925 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
3926
3927 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
3928
39292002-07-11 Juanma Barranquero <lektu@terra.es>
3930
3931 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
3932 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
3933 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
3934 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
3935 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
3936 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
3937
39382002-07-10 Juanma Barranquero <lektu@terra.es>
3939
3940 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE. All callers
3941 changed.
3942
39432002-07-09 Stefan Monnier <monnier@cs.yale.edu>
3944
3945 * data.c (Fdefalias): Add an optional `docstring' argument.
3946 (set_internal, Fsetq_default): Use XCAR/XCDR.
3947
3948 * composite.c (HASH_VALUE, HASH_KEY):
3949 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
3950
39512002-07-09 Kenichi Handa <handa@etl.go.jp>
3952
3953 * callproc.c (Fcall_process): Fix previous change.
3954
39552002-07-07 Stefan Monnier <monnier@cs.yale.edu>
3956
3957 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
3958 Add support for hash-tables.
3959 (Ftry_completion): Return t even if the string appears multiple times.
3960
3961 * fns.c (Fnconc): Use XCDR.
3962 (Fprovide): Use CONSP and XCDR.
3963 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
3964 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
3965 (Fmake_hash_table): Accept `:size nil'.
3966 (Fmakehash): Delete: moved to subr.el.
3967 (syms_of_fns): Don't defsubr makehash.
3968
3969 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
3970 (HASH_TABLE_SIZE): Move from fns.c.
3971
39722002-07-07 Richard M. Stallman <rms@gnu.org>
3973
3974 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
3975 Instead just return 0 when there is something to be done.
3976 (try_scrolling): If make_cursor_line_fully_visible returns 0,
3977 retry scrolling as if cursor were off the bottom.
3978 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
3979 return CURSOR_MOVEMENT_MUST_SCROLL.
3980 (redisplay_window): If make_cursor_line_fully_visible returns 0,
3981 go to try_to_scroll.
3982
3983 * buffer.c (Fbuffer_local_value): Store current value into its binding
3984 so we get the up-to-date value for the binding that is loaded.
3985
3986 * eval.c (Fdefmacro): Doc fix.
3987
39882002-07-05 Dave Love <fx@gnu.org>
3989
3990 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
3991 correctly.
3992
3993 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
3994 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
3995 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
3996 CCL_LookupCharConstTbl.
3997 (syms_of_ccl): Defvar translation-hash-table-vector.
3998
39992002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4000
4001 * xdisp.c: Remove unused variable `face'.
4002
40032002-07-04 Juanma Barranquero <lektu@terra.es>
4004
4005 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
4006 obsolescence information.
4007
40082002-07-03 Andrew Choi <akochoi@shaw.ca>
4009
4010 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
4011 pattern. Search cache first.
4012 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
4013 for Japanese font.
4014 (XLoadQueryFont): Use it.
4015
40162002-07-02 Richard M. Stallman <rms@gnu.org>
4017
4018 * keymap.c (Fdefine_key): Doc fix.
4019
4020 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
4021
40222002-07-02 Juanma Barranquero <lektu@terra.es>
4023
4024 * keymap.c (syms_of_keymap): Fix typo.
4025
40262002-07-01 Andrew Choi <akochoi@shaw.ca>
4027
4028 * s/darwin.h: Define POSIX_SIGNALS.
4029
4030 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
4031 and FSRefMakePath to convert FSSpec returned with Apple Event to
4032 Posix pathname.
4033 (mac_initialize) [TARGET_API_MAC_CARBON]:
4034 Call init_required_apple_events and disable the `Quit' menu item
4035 provided automatically by the Carbon Toolbox.
4036
40372002-07-01 Dave Love <fx@gnu.org>
4038
4039 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
4040 for K&R.
4041
4042 * xterm.c: Fix prototype for K&R.
4043
4044 * term.c (costs_set): Declare static, non-initialized for pcc.
4045
40462002-07-01 Richard M. Stallman <rms@gnu.org>
4047
4048 * keyboard.c (timer_last_idleness_start_time): New variable.
4049 (timer_start_idle): Set that.
4050 (read_key_sequence): Use that to reset timer_idleness_start_time
4051 to previous value.
4052
4053 * window.c (Frecenter): With arg, set optional_new_start.
4054
4055 * xdisp.c (redisplay_internal): Make optional_new_start really work.
4056
4057 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
4058 buffer for completion.
4059
40602002-06-29 Ken Raeburn <raeburn@gnu.org>
4061
4062 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
4063
40642002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4065
4066 * keyboard.c (readable_filtered_events): New function that filters
4067 FOCUS_IN_EVENT depending on parameter.
4068 (readable_events): Calls readable_filtered_events, not filtering
4069 FOCUS_IN_EVENT.
4070 (get_filtered_input_pending): New function, filtering parameter passed
4071 to readable_filtered_events.
4072 (get_input_pending): Calls get_filtered_input_pending, not filtering
4073 FOCUS_IN_EVENT.
4074 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
4075 FOCUS_IN_EVENT.
4076
4077 * xterm.h (struct x_output): Add focus_state.
4078
4079 * xterm.c (x_focus_changed): New function.
4080 (x_detect_focus_change): New function.
4081 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
4082 EnterNotify and LeaveNotify to track X focus changes.
4083
40842002-06-28 Andreas Schwab <schwab@suse.de>
4085
4086 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
4087
40882002-06-27 Kim F. Storm <storm@cua.dk>
4089
4090 * xdisp.c: (mode_line_string_list, mode_line_string_face)
4091 (mode_line_string_face_prop): New variables.
4092 (store_mode_line_string): New function.
4093 (display_mode_element): Use store_mode_line_string to
4094 add mode-line string elements to mode_line_string_list
4095 when mode_line_string_list is non-nil.
4096 (Fformat_mode_line): Now returns propertized string by
4097 default. New arg NO-PROPS to ignore properties.
4098 (decode_mode_spec): Only add two dashes for %- in propertized
4099 mode-line string.
4100 (syms_of_xdisp): Init and staticpro mode_line_string_list.
4101
41022002-06-27 Stefan Monnier <monnier@cs.yale.edu>
4103
4104 * minibuf.c (minibuffer_completion_contents): Add return type.
4105
41062002-06-27 Juanma Barranquero <lektu@terra.es>
4107
4108 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
4109
41102002-06-26 Juanma Barranquero <lektu@terra.es>
4111
4112 * fileio.c (read_file_name_cleanup): Add missing return.
4113
41142002-06-26 Richard M. Stallman <rms@gnu.org>
4115
4116 * window.c (Frecenter): Don't set force_start flag.
4117
4118 * minibuf.c (do_completion, Fminibuffer_complete_word)
4119 (Fminibuffer_completion_help): Complete just the text before point.
4120 (minibuffer_completion_contents): New function.
4121
4122 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
4123
4124 * frame.c (frames_bury_buffer): Function deleted.
4125
41262002-06-25 Miles Bader <miles@gnu.org>
4127
4128 * callint.c (Fcall_interactively): When checking to see if doprnt hit
4129 the end of callint_message, allow for a terminating '\0'.
4130
41312002-06-24 Juanma Barranquero <lektu@terra.es>
4132
4133 * w32select.c: Include composite.h
4134
4135 * w16select.c: Likewise.
4136
41372002-06-24 Kenichi Handa <handa@etl.go.jp>
4138
4139 * callproc.c (Fcall_process): If code detection is necessary,
4140 call detect_coding directly here.
4141
4142 * coding.c (detect_eol): Preserve coding->cmp_data.
4143
4144 * w16select.c (Fw16_get_clipboard_data):
4145 * w32fns.c (w32_to_x_font):
4146 * w32select.c (Fw32_get_clipboard_data):
4147 * xselect.c (selection_data_to_lisp_data):
4148 * xterm.c (XTread_socket): Disable composition handling.
4149
41502002-06-24 Stefan Monnier <monnier@cs.yale.edu>
4151
4152 * print.c (temp_output_buffer_setup): Kill all local variables.
4153
41542002-06-22 Stefan Monnier <monnier@cs.yale.edu>
4155
4156 * lread.c (Fread): Remove redundant and imprecise declaration.
4157
4158 * xfns.c (check_x_display_info): Use check_x_frame.
4159
4160 * .gdbinit (xprintsym): Use the new `xname' field.
4161 (xsymbol): Use it.
4162
41632002-06-22 Jason Rumney <jasonr@gnu.org>
4164
4165 * w32fns.c (file_dialog_callback): New function.
4166 (Fx_file_dialog): Allow selecting directories as well as files.
4167
41682002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4169
4170 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
4171 OpenBSD. Add support for mipseb-*-netbsd* machines.
4172
41732002-06-17 Andrew Choi <akochoi@shaw.ca>
4174
4175 * macterm.c (mac_scroll_area): Set foreground and backcolor to
4176 black and white before scrolling. Restore frame background and
4177 foreground color after scrolling.
4178 (do_window_update): Call XClearWindow before calling expose_frame.
4179 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
4180 FRAME_FOREGROUND_PIXEL of frame.
4181
4182 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
4183 test Mac command key as <ALT> key.
4184
41852002-06-17 Stefan Monnier <monnier@cs.yale.edu>
4186
4187 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
4188
4189 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
4190 Lookup keys in function-key-map immediately so that key-translation-map
4191 can be applied earlier.
4192 Remove function_key_possible and key_translation_possible, replaced
4193 by checking `keytran_start < t'.
4194
4195 * .gdbinit (xsymbol): Use the new `xname' field.
4196
41972002-06-17 Andrew Choi <akochoi@shaw.ca>
4198
4199 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
4200 test Mac command key as <ALT> key.
4201
4202 * mac.c (do_applescript): Call initialize_applescript if necessary
4203 when first called. Dispose of result_desc only when there is no error.
4204 (Fdo_applescript): Use %d format specifier instead of %ld.
4205
42062002-06-16 Andrew Choi <akochoi@shaw.ca>
4207
4208 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
4209 of FrontWindow for cases keyDown and autoKey.
4210
4211 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
4212 Vdefault_fontset to Monaco with mac-roman coding.
4213
4214 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
4215 init_process before and after inclusion of Carbon/Carbon.h, resp.
4216
4217 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
4218 cursor_gc.
4219 (add_font_name_table_entry): New function.
4220 (init_font_name_table): Use add_font_name_table_entry; add italic,
4221 bold, and bold-italic entries for truetype fonts.
4222
4223 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
4224 for Mac too.
4225 (try_font_list) [MAC_OS]: If no font matches given registry, try
4226 fonts with any registry matching face_family.
4227 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
4228
4229 * s/darwin.h: If autoconf detects the Ncurses library, define
4230 LIBS_TERMCAP to -lncurses to use it.
4231
42322002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
4233
4234 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
4235
42362002-06-15 Richard M. Stallman <rms@gnu.org>
4237
4238 * window.c (Fset_window_configuration): Explicitly preserve
4239 the point value that new_current_buffer had at the start.
4240
42412002-06-14 Juanma Barranquero <lektu@terra.es>
4242
4243 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
4244 Fix typos.
4245
42462002-06-14 Kim F. Storm <storm@cua.dk>
4247
4248 * insdel.c (insert_1_both, insert_from_string_1)
4249 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
4250 insert happened in the end_unchanged region. Otherwise, the
4251 redisplay may be confused and duplicate the last line in the
4252 buffer [seen after save-buffer when require-final-newline==t].
4253
42542002-06-13 Jason Rumney <jasonr@gnu.org>
4255
4256 * w32.c (init_environment): Remove EMACSLOCKDIR.
4257 (stat): Swap _S_IFDIR and _S_IFREG.
4258
42592002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4260
4261 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
4262 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
4263 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
4264 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
4265 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
4266 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
4267 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
4268 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
4269 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
4270 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
4271 SELECTION_REQUEST_EVENT, selection_clear_event to
4272 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
4273 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
4274 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
4275 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
4276 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
4277 no_event to NO_EVENT.
4278
42792002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4280
4281 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
4282
42832002-06-12 Stefan Monnier <monnier@cs.yale.edu>
4284
4285 * intervals.c (textget): Don't forget to `return'.
4286 (lookup_char_property): Use XCAR/XCDR.
4287
42882002-06-12 Juanma Barranquero <lektu@terra.es>
4289
4290 * xdisp.c (Fformat_mode_line): Fix typo.
4291
42922002-06-12 Kim F. Storm <storm@cua.dk>
4293
4294 * xdisp.c (Fformat_mode_line): New function.
4295 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
4296 (store_frame_title_char, store_frame_title): Use unconditionally.
4297 (init_xdisp): Defsubr Fformat_mode_line.
4298 Initialize frame_title_buf etc. unconditionally.
4299
43002002-06-11 Stefan Monnier <monnier@cs.yale.edu>
4301
4302 * keyboard.c (read_key_sequence):
4303 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
4304 things through those maps after downcasing events.
4305 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
4306 applies after function-key-map.
4307 Make sure that keytran can be done in the middle in the sequence.
4308 Be careful not to throw away events past the one we downcase.
4309
4310 * lread.c (read_integer): Remove unused var `tem'.
4311 (read1): Fix int/Lisp_Object mixup.
4312
4313 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
4314
43152002-06-11 Richard M. Stallman <rms@gnu.org>
4316
4317 * keyboard.c (readable_events): Ignore any number of
4318 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
4319
43202002-06-09 Miles Bader <miles@gnu.org>
4321
4322 * xfaces.c (Ftty_supports_face_attributes_p): New function.
4323 (parse_rgb_list, tty_lookup_color): New functions.
4324 (tty_defined_color): Use `tty_lookup_color' to do all the work.
4325 (color_distance, Fcolor_distance): New functions.
4326 (TTY_SAME_COLOR_THRESHOLD): New macro.
4327 (Qtty_color_standard_values): New variable.
4328 (syms_of_xfaces): Initialize new vars & functions.
4329
43302002-06-08 Colin Walters <walters@verbum.org>
4331
4332 * textprop.c (Vchar_property_alias_alist): New variable.
4333 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
4334
4335 * intervals.c (lookup_char_property): New function for looking up
4336 overlay and text properties, created from textget.
4337 (textget): Use it.
4338
4339 * intervals.h (lookup_char_property): Declare.
4340 (Vchar_property_alias_alist): Declare.
4341
4342 * buffer.c (Foverlay_get): Use lookup_char_property.
4343
43442002-06-07 Sam Steingold <sds@gnu.org>
4345
4346 * xselect.c (lisp_data_to_selection_data): Fix last change:
4347 *data_ret is not a Lisp string, while unibyte_string is.
4348
43492002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
4350
4351 * xselect.c (lisp_data_to_selection_data): Fix last change:
4352 set size_ret.
4353
43542002-06-07 Andreas Schwab <schwab@suse.de>
4355
4356 * m/amdx86-64.h: New file.
4357
43582002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
4359
4360 * fns.c (Fstring_make_unibyte): Doc fix.
4361
4362 * xselect.c (lisp_data_to_selection_data): If the requested type
4363 is STRING, call string_make_unibyte to encode the selected text
4364 as a string.
4365
4366 * window.c (Fset_window_hscroll): Doc fix.
4367
43682002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4369
4370 * fileio.c (choose_write_coding_system):
4371 Call select-safe-coding-system properly.
4372
43732002-06-03 Richard M. Stallman <rms@gnu.org>
4374
4375 * xdisp.c (message_with_string): Error if STRING is not a string.
4376
4377 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
4378
4379 * fileio.c (choose_write_coding_system): Pass FILE arg to
4380 Vselect_safe_coding_system_function.
4381
43822002-06-03 Ken Raeburn <raeburn@gnu.org>
4383
4384 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
4385
43862002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
4387
4388 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
4389 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
4390 * keymap.c (describe_command): Likewise.
4391 * minibuf.c (read_minibuf): Likewise.
4392
4393 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
4394 Cast `current_column' return value to int.
4395 (back_to_previous_visible_line_start)
4396 (reseat_at_next_visible_line_start, next_element_from_buffer):
4397 Cast `indented_beyond_p' 3rd arg to float.
4398
4399 * indent.c (last_known_column): Now a float.
4400 (current_column_1, position_indentation, current_column)
4401 (string_display_width): Return float.
4402 (Fcurrent_column): Cast `current_column' return value to int.
4403 (Fcurrent_indentation): Cast `position_indentation' retval to int.
4404 (indented_beyond_p): Third arg now a float.
4405 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
4406
4407 * lisp.h (current_column): Now returns float.
4408 (indented_beyond_p): 3rd arg now a float.
4409
44102002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
4411
4412 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
4413 is Qcompound_text_with_extensions.
4414
4415 * xselect.c (lisp_data_to_selection_data): Always set selection
4416 type as string if x_encode_text returns streingp non-NULL.
4417
4418 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
4419
44202002-05-30 Richard M. Stallman <rms@gnu.org>
4421
4422 * window.c (Fset_window_configuration): Correct the handling
4423 of point in current buffer, to work with multiple windows.
4424
44252002-05-29 Colin Walters <walters@verbum.org>
4426
4427 * lread.c (Fread_from_string): Don't depend on order of evaluation
4428 for C function parameters.
4429
44302002-05-28 Richard M. Stallman <rms@gnu.org>
4431
4432 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
4433 way for blinked-off state and for a nonselected window.
4434
4435 * window.c (window_scroll_pixel_based): Don't call Fbolp;
4436 instead, see if the new start pos is at beginning of line.
4437
4438 * fileio.c (Fwrite_region): If START is a string, don't
4439 make any annotations.
4440
4441 * eval.c (syms_of_eval): Doc fix.
4442
44432002-05-28 Colin Walters <walters@debian.org>
4444
4445 * emacs.c (USAGE1): Add --no-splash.
4446 (standard_args): Ditto.
4447
44482002-05-28 Colin Walters <walters@gnu.org>
4449
4450 * lread.c (readchar_count): New variable.
4451 (readchar): Increment it.
4452 (unreadchar): Decrement it.
4453 (read_multibyte): Decrement it.
4454 (Vread_with_symbol_positions): New variable.
4455 (Vread_symbol_positions_list): New variable.
4456 (read_internal_start): New function, created from Fread and
4457 Fread_from_string. Handle Vread_symbol_positions_list and
4458 Vread_with_symbol_positions.
4459 (readevalloop, Fread, Fread_from_string): Use it.
4460 (read1): Use readchar_count to add symbol positions to
4461 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
4462 (syms_of_lread): DEFVAR_LISP and initialize them.
4463
4464 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
4465 (substitute_object_recurse, substitute_object_in_subtree)
4466 (substitute_in_interval): Prototype.
4467 (read_multibyte): Return c if it's less than zero.
4468
44692002-05-28 Kim F. Storm <storm@cua.dk>
4470
4471 * fileio.c (Fread_file_name_internal): Added brute-force
4472 speed up for using predicate file-directory-p.
4473
44742002-05-28 Kim F. Storm <storm@cua.dk>
4475
4476 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
4477 New variables.
4478 (syms_of_fileio): DEFVAR_LISP them.
4479 (read_file_name_cleanup): New unwind function.
4480 (Fread_file_name_internal): Only return completions satifying
4481 Vread_file_name_predicate. Temporarily unwind protect and rebind
4482 default-directory while checking completions against the predicate.
4483 (Fread_file_name): Added PREDICATE argument. Specbind it to
4484 Vread_file_name_predicate during completion.
4485 Call Vread_file_name_function to read the file name if non-nil.
4486
4487 * lisp.h (Fread_file_name): Now has 6 args.
4488
4489 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
4490 predicate for Fread_file_name when reading directory name.
4491 Supply Qnil for predicate in other calls to Fread_file_name.
4492
44932002-05-26 Miles Bader <miles@gnu.org>
4494
4495 * term.c (tty_capable_p): New function.
4496 * dispextern.h (tty_capable_p): New function declaration.
4497 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
4498 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
4499
45002002-05-23 Stefan Monnier <monnier@cs.yale.edu>
4501
4502 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
4503 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
4504 (Vwrite_region_annotate_functions): Docstring fix.
4505
45062002-05-23 Kim F. Storm <storm@cua.dk>
4507
4508 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
4509 phys_cursor's hpos is overwritten. This is still not completely
4510 correct, as it doesn't really make sense to use hpos at all to
4511 get the cursor glyph (as that is relative to the width of the
4512 characters on the line, which may have changed during the update).
4513
45142002-05-22 Jason Rumney <jasonr@gnu.org>
4515
4516 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
4517 Lisp_Object.
4518 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
4519 Use modified enumfont_t struct.
4520
4521 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
4522
4523 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
4524 Handle the `hbar' cursor type.
4525 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
4526
4527 * w32fns.c (Qhbar): New variable.
4528 (x_specified_cursor_type): Use it.
4529
45302002-05-21 Ken Raeburn <raeburn@gnu.org>
4531
4532 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
4533 now, when the address is needed.
4534
45352002-05-21 Colin Walters <walters@gnu.org>
4536
4537 * Makefile.in (shortlisp): Add font-core.el.
4538
45392002-05-20 Richard M. Stallman <rms@gnu.org>
4540
4541 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
4542
4543 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
4544 equivalent key bindings here.
4545
45462002-05-20 Ken Raeburn <raeburn@gnu.org>
4547
4548 Change symbol structure to contain a lisp object for the symbol
4549 name:
4550 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
4551 object field named "xname".
4552 (SYMBOL_NAME): New macro.
4553 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
4554 name field.
4555 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
4556 (mark_object, gc_sweep): Use symbol xname field and XSTRING
4557 instead of name field.
4558 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
4559 SYMBOL_NAME instead of XSYMBOL and name field.
4560 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
4561 instead of XSYMBOL and name field.
4562 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
4563 and SYMBOL_NAME instead of XSYMBOL and name field.
4564 * coding.c (Fread_coding_system, code_convert_region1)
4565 (code_convert_string1, code_convert_string_norecord)
4566 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
4567 XSYMBOL and name field.
4568 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
4569 (Fmake_variable_buffer_local, Fmake_local_variable)
4570 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
4571 of XSYMBOL and name field.
4572 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
4573 XSYMBOL and name field.
4574 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
4575 instead of XSYMBOL and name field.
4576 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
4577 XSYMBOL and name field.
4578 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
4579 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
4580 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
4581 instead of XSYMBOL and name field.
4582 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
4583 (parse_modifiers, apply_modifiers, Fevent_convert_list)
4584 (parse_solitary_modifier, Fexecute_extended_command):
4585 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
4586 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
4587 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
4588 of XSYMBOL and name field.
4589 (describe_command, describe_translation): Use SYMBOL_NAME and
4590 assignment instead of XSYMBOL and name field and XSETSTRING.
4591 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
4592 instead of XSYMBOL and name field.
4593 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
4594 name field and XSETSTRING.
4595 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
4596 of XSYMBOL and name field.
4597 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
4598 assignment instead of XSYMBOL and name field and XSETSTRING.
4599 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
4600 XSTRING instead of XSYMBOL and name field.
4601 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
4602 and XSTRING instead of XSYMBOL and name field.
4603 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
4604 and XSTRING instead of XSYMBOL and name field.
4605 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
4606 XSTRING instead of XSYMBOL and name field.
4607 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
4608 of XSYMBOL and name field.
4609 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
4610 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
4611
46122002-05-19 Ken Raeburn <raeburn@gnu.org>
4613
4614 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
4615 and XCDR real rvalues in most configurations.
4616
4617 * buffer.c (fix_overlays_in_range, fix_overlays_before):
4618 Don't take the address of the cdr part of a cons cell; instead, track
4619 the parent cell and call XSETCDR, or set the variable for the head
4620 of the list if we haven't started down the list yet.
4621
46222002-05-19 Richard M. Stallman <rms@gnu.org>
4623
4624 * doc.c (reread_doc_file): Don't ask for confirmation.
4625
46262002-05-18 Jason Rumney <jasonr@gnu.org>
4627
4628 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
4629 (xbm_load_image): Use it.
4630 (xbm_load): Ditto.
4631 (xbm_read_bitmap_data): Reverted to xfns.c version.
4632 From David Ponce <david@dponce.com>.
4633
46342002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
4635
4636 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
4637 2.02 and later.
4638
46392002-05-16 Juanma Barranquero <lektu@terra.es>
4640
4641 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
4642
46432002-05-15 Stefan Monnier <monnier@cs.yale.edu>
4644
4645 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
4646 meaningful test.
4647 (read_char_minibuf_menu_prompt): Fix typo.
4648
46492002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
4650
4651 * eval.c (Fcommandp): Doc fix.
4652
46532002-05-13 Stefan Monnier <monnier@cs.yale.edu>
4654
4655 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
4656 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
4657 (Fset_keymap_parent): Gcpro a bit more.
4658 (access_keymap): Gcpro around meta_map call and around the main loop.
4659 (get_keyelt): Gcpro when following indirect references.
4660 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
4661 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
4662 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
4663 Remove useless ad-hoc remap code.
4664
46652002-05-13 Richard M. Stallman <rms@gnu.org>
4666
4667 * search.c (search_buffer): Give up boyer moore search if inverse
4668 translation change charset_base.
4669
46702002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
4671
4672 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
4673 characters is carried over from the previous block of text, adjust
4674 coding->produced to account for the extra character.
4675
46762002-05-11 Andreas Schwab <schwab@suse.de>
4677
4678 * coding.c (intersection): Keep the elements of the returned list
4679 in the same order as in the first list.
4680
46812002-05-11 Kim F. Storm <storm@cua.dk>
4682
4683 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
4684 only update cmm_size if realloc actually succeeds.
4685 Testing with initial size of 2 elements revealed that using
4686 realloc on GNU/Linux would cause a random trap in xmalloc
4687 later on, so I rewrote the code to use malloc/bcopy/free instead
4688 of realloc.
4689
46902002-05-10 Jason Rumney <jasonr@gnu.org>
4691
4692 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
4693
46942002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
4695
4696 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
4697 parens, to ensure correct evaluation order.
4698
46992002-05-10 Kim F. Storm <storm@cua.dk>
4700
4701 * keymap.c (Vemulation_mode_map_alists): New variable.
4702 (syms_of_keymap): DEFVAR_LISP it.
4703 (current_minor_maps): Process keymap alists in that list before
4704 minor-mode-overriding-map-alist and minor-mode-map-alist.
4705
47062002-05-09 Richard M. Stallman <rms@gnu.org>
4707
4708 * search.c (Freplace_match): Doc fix.
4709
47102002-05-09 Kim F. Storm <storm@cua.dk>
4711
4712 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
4713 Enlarge cursor rectangle drawn around image with non-zero relief.
4714
4715 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
4716 Enlarge cursor rectangle drawn around image with non-zero relief.
4717
4718 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
4719 Enlarge cursor rectangle drawn around image with non-zero relief.
4720
47212002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
4722
4723 * xselect.c (lisp_data_to_selection_data): Don't set selection
4724 type if comes from the Lisp object's car. If the selection
4725 contains a pure ASCII text, always return QSTRING as its type.
4726
47272002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4728
4729 * mac.c (mac-cut-function): Doc fix.
4730
47312002-05-05 Richard M. Stallman <rms@gnu.org>
4732
4733 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
4734
47352002-05-04 Jason Rumney <jasonr@gnu.org>
4736
4737 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
4738 for event-click-count.
4739
4740 * process.c (init_process): Only add server subfeature if we can
4741 use non-blocking I/O.
4742
47432002-05-04 Andrew Choi <akochoi@shaw.ca>
4744
4745 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
4746 repeatedly.
4747
47482002-05-03 Jason Rumney <jasonr@gnu.org>
4749
4750 * process.c (Fmake_network_process): Only support server sockets
4751 when we can make them non-blocking.
4752
4753 * s/ms-w32.h (HAVE_SELECT): Define.
4754
4755 * w32.h (FILE_NDELAY): New flag.
4756
4757 * w32.c (sys_getpeername, fcntl): New functions.
4758 (_sys_read_ahead): Temporarily block on non-blocking sockets.
4759
4760 * w32proc.c: include sys/file.h.
4761
47622002-05-03 Colin Walters <walters@verbum.org>
4763
4764 * callproc.c (Vgame_score_directory): Renamed to
4765 Vshared_game_score_directory.
4766
47672002-04-30 Richard M. Stallman <rms@gnu.org>
4768
4769 * s/gnu.h [emacs]: Include stdio.h.
4770 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
4771
4772 * eval.c (do_autoload): Error if called while preparing to dump.
4773
4774 * fns.c (Frequire): Error if need to load while preparing to dump.
4775
47762002-04-28 Colin Walters <walters@verbum.org>
4777
4778 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
4779 Default to "~/.emacs.d/games".
4780
47812002-04-29 Stefan Monnier <monnier@cs.yale.edu>
4782
4783 * lread.c (openp): Change arg exec_only to predicate.
4784 (build_load_history): Use XCAR/XCDR.
4785 (Flocate_file_internal): New fun.
4786 (syms_of_lread): Defsubr it.
4787 (Fload): Update call to openp.
4788
4789 * lisp.h (openp): Update prototype.
4790
4791 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
4792 * w32proc.c (sys_spawnve):
4793 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
4794 * w32.c (check_windows_init_file):
4795 * sound.c (Fplay_sound_internal):
4796 * process.c (Fstart_process):
4797 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
4798 * mac.c (run_mac_command):
4799 * emacs.c (init_cmdargs):
4800 * callproc.c (Fcall_process): Update call to openp.
4801
4802 * textprop.c (remove_properties): Don't use XCAR without CONSP.
4803
4804 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
4805
48062002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4807
4808 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
4809 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
4810
48112002-04-28 Richard M. Stallman <rms@gnu.org>
4812
4813 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
4814
4815 * eval.c (Fcommandp): New arg for_call_interactively.
4816 * lisp.h (Fcommandp): Declare new arg.
4817
48182002-04-28 Jason Rumney <jasonr@gnu.org>
4819
4820 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
4821
4822 * w32.c (stat, fstat): Use file index information to generate
4823 inodes for directories where available.
4824
48252002-04-26 Andrew Choi <akochoi@shaw.ca>
4826
4827 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
4828 [HAVE_CARBON]: Include Mac object files.
4829
4830 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
4831 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
4832 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
4833 MAC_OSX, and MAC_OS instead of macintosh.
4834
4835 * editfns.c [MAC_OS8]: Include stdio.h.
4836
4837 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
4838
4839 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
4840 Apple Monaco.
4841
4842 * process.c: Declare QCfamily and QCfilter as extern.
4843 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
4844 calling select.
4845
4846 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
4847
4848 * tparam.c [MAC_OSX]: Don't define BC and UP.
4849
4850 * config.in [HAVE_CARBON]: Add.
4851
4852 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
4853 Move here from mac/src and mac/inc.
4854
4855 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
4856
48572002-04-26 Gerd Moellmann <gerd@gnu.org>
4858
4859 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
4860 Compute phys_cursor_width from the x position returned
4861 by x_draw_glyhs, which is cheaper.
4862 (x_display_and_set_cursor): Compute the buffer-local value
4863 of `cursor-in-non-selected-windows' only when needed.
4864
48652002-04-25 Gerd Moellmann <gerd@gnu.org>
4866
4867 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
4868 cursor on a stretch glyph has a width that depends on
4869 x_stretch_cursor_p.
4870
48712002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4872
4873 * abbrev.c (abbrev-start-location): Doc fix.
4874
4875 * indent.c (Fvertical_motion): Fix last change.
4876
48772002-04-25 Gerd Moellmann <gerd@gnu.org>
4878
4879 * indent.c (Fvertical_motion): Move to the start of the line
4880 containing PT before moving up or down.
4881
48822002-04-24 Gerd Moellmann <gerd@gnu.org>
4883
4884 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
4885 case of writing a whole row, more or less analogous to the case of
4886 writing only parts of a row.
4887
4888 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
4889 0 for NO_CURSOR.
4890
4891 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
4892
48932002-04-23 Colin Walters <walters@verbum.org>
4894
4895 * buffer.c (syms_of_buffer): Doc fix.
4896
48972002-04-23 Gerd Moellmann <gerd@gnu.org>
4898
4899 * xterm.c (notice_overwritten_cursor): Handle the special case
4900 of the cursor being in the first blank non-text line at the
4901 end of a window.
4902
4903 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
4904 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
4905 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
4906 bar cursors only, to make phys_cursor_width contain what its name
4907 suggests.
4908 (notice_overwritten_cursor): Consider the cursor image erased if
4909 the output area intersects the cursor image in y-direction.
4910
49112002-04-23 Simon Marshall <simon@gnu.org>
4912
4913 * xfns.c (x_set_mouse_color): Change default for cross_cursor
4914 to XC_hand2.
4915
49162002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4917
4918 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
4919
49202002-04-22 Kim F. Storm <storm@cua.dk>
4921
4922 * textprop.c (remove_properties): Fixed trap for malformed plist.
4923
49242002-04-22 Richard M. Stallman <rms@gnu.org>
4925
4926 * cmds.c (Fend_of_line): Handle intangible text in mid line.
4927
4928 * window.c (make_window): Initialize height_fixed_p,
4929 last_cursor_off_p, and p->cursor_off_p slots.
4930
49312002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4932
4933 * fns.c (use-dialog-box): Doc fix.
4934
49352002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4936
4937 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
4938 variables `row', `i' and `area'.
4939 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
4940 toolkit library.
4941
49422002-04-19 Stefan Monnier <monnier@cs.yale.edu>
4943
4944 * xfaces.c (clear_font_table): Don't free the default font of
4945 a frame even if it's on another display.
4946 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
4947 that could be Qt.
4948
49492002-04-19 Juanma Barranquero <lektu@terra.es>
4950
4951 * indent.c (Fmove_to_column): Remove unused local variable
4952 `next_boundary_byte'.
4953 (current_column_1): Likewise.
4954
49552002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
4956
4957 * msdos.c (Qhbar): New variable.
4958 (syms_of_msdos): Intern and staticpro it.
4959 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
4960 cursor type.
4961
49622002-04-19 Dave Lambert <dlambert@acm.org>
4963
4964 Theses change implement an underscore-like (`hbar') cursor.
4965
4966 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
4967
4968 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
4969 Handle the `hbar' cursor type.
4970 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
4971
4972 * xfns.c (Qhbar): New variable.
4973 (syms_of_xfns): Intern and staticpro it.
4974 (x_specified_cursor_type): Handle `hbar' cursor.
4975
4976 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
4977 not defined.
4978
49792002-04-18 Richard M. Stallman <rms@gnu.org>
4980
4981 * textprop.c (remove_properties): New arg LIST allows scanning
4982 either a list or a plist.
4983 (interval_has_some_properties_list): New function, like
4984 interval_has_some_properties using list instead of plist.
4985 All callers changed.
4986 (Fremove_list_of_text_properties): New function.
4987 (syms_of_textprop): Defsubr it.
4988
49892002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
4990
4991 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
4992
49932002-04-17 Juanma Barranquero <lektu@terra.es>
4994
4995 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
4996
49972002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
4998
4999 * window.c (coordinates_in_window): Don't report on margin area
5000 if its width is zero.
5001
50022002-04-16 Jason Rumney <jasonr@gnu.org>
5003
5004 * w32fns.c (Fx_file_dialog): Decode file name before using.
5005
5006 * w32term.c (construct_drag_n_drop): Likewise.
5007
50082002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
5009
5010 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
5011 store load-history in pure space.
5012
5013 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
5014
50152002-04-16 Stefan Monnier <monnier@cs.yale.edu>
5016
5017 * xterm.c (Qlatin_1, Qutf_8): New vars.
5018 (syms_of_xterm): Initialize them.
5019 (XTread_socket): Eliminate incorrect optimization that tried to avoid
5020 decoding the output of X*LookupString.
5021 Always use latin-1 to decode the output of XLookupString.
5022 Try Xutf8LookupString if XmbLookupString failed.
5023
5024 * region-cache.c (new_region_cache): Use BEG.
5025
50262002-04-16 Gerd Moellmann <gerd@gnu.org>
5027
5028 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
5029 configuration files.
5030 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
5031 returns 0.
5032
50332002-04-15 Andreas Schwab <schwab@suse.de>
5034
5035 * config.in: Regenerated using autoheader.
5036
5037 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
5038 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
5039 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
5040 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
5041 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
5042 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
5043 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
5044 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
5045 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
5046 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
5047 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
5048 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
5049 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
5050 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
5051 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
5052 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
5053 STACK_DIRECTION, now set by autoconf.
5054
50552002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5056
5057 * dispnew.c (marginal_area_string): Sort arguments.
5058
5059 * dispextern.h (marginal_area_string): Add prototype.
5060
50612002-04-13 Richard M. Stallman <rms@gnu.org>
5062
5063 * fileio.c (Finsert_file_contents):
5064 Don't call temp_output_buffer_setup--do just part, by hand.
5065
5066 * coding.c (run_pre_post_conversion_on_str):
5067 Don't call temp_output_buffer_setup--do just part, by hand.
5068
5069 * keyboard.c (command_loop_1): Don't call start_hourglass
5070 or cancel_hourglass when executing a macro.
5071
5072 * marker.c (count_markers): New function.
5073
5074 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
5075 grow without limit. Move recently used elements to the front.
5076
50772002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
5078
5079 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
5080
50812002-04-12 Gerd Moellmann <gerd@gnu.org>
5082
5083 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
5084 rows marginal areas.
5085 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
5086 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
5087
5088 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
5089
50902002-04-12 Dave Love <fx@gnu.org>
5091
5092 * dispnew.c (marginal_area_string): New.
5093
5094 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
5095 (Qleft_margin, Qright_margin): Declare.
5096 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
5097
5098 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
5099 note_mode_line_highlight and extended.
5100
5101 * keyboard.c (Qleft_margin, Qright_margin): Declare.
5102 (make_lispy_event): Deal with mouse events in margins.
5103
51042002-04-12 Stefan Monnier <monnier@cs.yale.edu>
5105
5106 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
5107
5108 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
5109 than deactivating the mark if tmm is set to `lambda'.
5110 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
5111 Use a single event for HELP_EVENT.
5112 (Fexecute_extended_command): Save last_point_position.
5113
51142002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5115
5116 * lisp.h (Fpropertize): Add prototype.
5117
5118 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
5119
51202002-04-10 Colin Walters <walters@verbum.org>
5121
5122 * config.in: Add HAVE_SHARED_GAME_DIR.
5123
5124 * callproc.c: (Vgame_score_directory): New variable.
5125 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
5126
51272002-04-10 Richard M. Stallman <rms@gnu.org>
5128
5129 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
5130
51312002-04-09 Stefan Monnier <monnier@cs.yale.edu>
5132
5133 * minibuf.c (read_minibuf): Use empty_string.
5134 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
5135 Short-circuit the search as soon as it "failed".
5136 (Fall_completions): Allow lambda forms and lists of strings for alist.
5137 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
5138 when require_match is nil.
5139 (Ftest_completion): Rename from `test_completion' and export to elisp.
5140 Call the predicate also when alist is a list.
5141 Obey Vcompletion_regexp_list.
5142 (do_completion, Fminibuffer_complete_and_exit): Use it.
5143 (Fassoc_string): Rename from `assoc_for_completion'.
5144 Allow list of strings as well and export to elisp.
5145
51462002-04-08 Stefan Monnier <monnier@cs.yale.edu>
5147
5148 * puresize.h (BASE_PURESIZE): Increase to 900KB.
5149
51502002-04-08 Juanma Barranquero <lektu@terra.es>
5151
5152 * w32.c (sys_accept): Don't hide variable `s'.
5153
51542002-04-05 Gerd Moellmann <gerd@gnu.org>
5155
5156 * callint.c (Fcall_interactively): Use INTEGERP instead of
5157 NUMBERP for checking Vhistory_length.
5158
51592002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5160
5161 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
5162 Doc fix to reflect it.
5163
51642002-04-04 Richard M. Stallman <rms@gnu.org>
5165
5166 * xdisp.c (display_mode_element): New arg RISKY.
5167 Disregard text props found or specified within a variable
5168 that isn't marked risky-local-variable.
5169 (Qrisky_local_variable): New variable.
5170 (syms_of_xdisp): Init and staticpro it.
5171
51722002-04-04 Stefan Monnier <monnier@cs.yale.edu>
5173
5174 * undo.c (record_point): New fun.
5175 (record_delete, record_insert): Use it.
5176
51772002-04-03 Juanma Barranquero <lektu@terra.es>
5178
5179 * doc.c (Fdocumentation): Add missing parentheses.
5180 (Fdocumentation_property): Likewise.
5181
51822002-04-03 Stefan Monnier <monnier@cs.yale.edu>
5183
5184 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
5185 data is 0, just return nil.
5186
51872002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
5188
5189 * msdos.c (syms_of_msdos): Fix last change with
5190 mouse_autoselect_window.
5191
51922002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5193
5194 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
5195 mouse_autoselect_window.
5196
51972002-04-02 Stefan Monnier <monnier@cs.yale.edu>
5198
5199 * keyboard.c (make_lispy_event): Handle unknown keysyms together
5200 with system-specific keysyms. Use it also for unknown function keys.
5201
5202 * doc.c (reread_doc_file): Return whether reload was attempted.
5203 (Fdocumentation, Fdocumentation_property): Don't try to reload
5204 if the doc is 0 and only ask once.
5205
5206 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
5207
52082002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
5209
5210 * keyboard.c (read_char): If the event was Qselect_window,
5211 restore timer_idleness_start_time to its previous value.
5212
5213 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
5214
52152002-04-01 Stefan Monnier <monnier@cs.yale.edu>
5216
5217 * region-cache.c (new_region_cache): Use BEG.
5218
5219 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
5220 Use BEG and BEG_BYTE.
5221
5222 * doc.c (get_doc_string): Return nil if the location is wrong.
5223 (reread_doc_file): New fun.
5224 (Fdocumentation, Fdocumentation_property):
5225 Call it if get_doc_string fails.
5226 (Fsnarf_documentation): Make it work for a dumped Emacs.
5227
5228 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
5229 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
5230
5231 * charset.c (Fstring): Allow 0 arguments.
5232
5233 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
5234
5235 * process.c (DATAGRAM_CONN_P, list_processes_1)
5236 (Fprocess_datagram_address, Fset_process_datagram_address)
5237 (Fset_network_process_options, server_accept_connection):
5238 Fix some int/Lisp_Object confusions (thank you union types).
5239
52402002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5241
5242 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
5243
5244 * w32term.c: Likewise.
5245 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
5246
5247 * keyboard.c (Qselect_window): New symbol.
5248 (head_table): Use it.
5249 (keys_of_keyboard): Bound select-window event to handle-select-window.
5250 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
5251
5252 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
5253 (last_window): New variable.
5254 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
5255 (note_mouse_movement): Remove reimplemented code in #if 0.
5256 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
5257 Emacs windows.
5258
5259 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
5260
52612002-03-31 Gerd Moellmann <gerd@gnu.org>
5262
5263 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
5264 Callers changed.
5265
52662002-03-30 Richard M. Stallman <rms@gnu.org>
5267
5268 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
5269 loop whenever it stops making progress.
5270
5271 * widget.c (set_frame_size): Don't call change_frame_size.
5272
52732002-03-30 Gerd Moellmann <gerd@gnu.org>
5274
5275 * dispnew.c (direct_output_for_insert):
5276 Call mark_window_display_accurate.
5277
52782002-03-29 Jason Rumney <jasonr@gnu.org>
5279
5280 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
5281
52822002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
5283
5284 * Makefile.in (lread.o): Depend on coding.h.
5285
5286 * lread.c (openp, Fload): Encode the file name before passing it
5287 to `stat', `access', and `emacs_open'.
5288 (openp): GCPRO the encoded file name. Don't recompute Lisp
5289 strings unnecessarily.
5290
52912002-03-29 Kim F. Storm <storm@cua.dk>
5292
5293 * fns.c (Flax_plist_put): Doc fix.
5294
52952002-03-28 Miles Bader <miles@gnu.org>
5296
5297 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
5298
52992002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5300
5301 * process.c (set-network-process-options): Add usage.
5302 (make-network-process): Doc fix.
5303
53042002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
5305
5306 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
5307
53082002-03-26 Richard M. Stallman <rms@gnu.org>
5309
5310 * fns.c (Fsubstring_no_properties): New function.
5311 (Flax_plist_get, Flax_plist_put): New functions.
5312 (syms_of_fns): defsubr them.
5313
5314 * xdisp.c (update_menu_bar): Test only update_mode_lines;
5315 don't test or alter w->update_mode_line.
5316
5317 * window.c (Fdisplay_buffer): Doc fix.
5318
53192002-03-24 Richard M. Stallman <rms@gnu.org>
5320
5321 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
5322
53232002-03-24 Gerd Moellmann <gerd@gnu.org>
5324
5325 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
5326 (Fdefmacro): Handle `(declare ...)'.
5327 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
5328 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
5329
53302002-03-24 Jason Rumney <jasonr@gnu.org>
5331
5332 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
5333 (xbm_file_p): Add prototypes.
5334 (xbm_format, xbm_image_p): Sync with xfns.c.
5335 (reflect_byte): New function.
5336 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
5337 (xbm_load_image): Create bitmaps with a depth of 1.
5338 (init_xfns): Enable XBM images.
5339
53402002-03-23 Jason Rumney <jasonr@gnu.org>
5341
5342 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
5343 correctly. Do not pass up_modifier to keyboard buffer.
5344
5345 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
5346
53472002-03-22 Stefan Monnier <monnier@cs.yale.edu>
5348
5349 * Makefile.in (bootstrapclean): New target.
5350 (bootstrap-temacs, bootstrap-doc): Remove.
5351 (bootstrap-emacs): Use a bog-standard `temacs'.
5352 Don't bother to build a DOC file.
5353
5354 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
5355
5356 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
5357 in temacs even if !CANNOT_DUMP.
5358 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
5359
5360 * alloc.c (check_pure_size): Only output a warning.
5361
53622002-03-22 Jason Rumney <jasonr@gnu.org>
5363
5364 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
5365 supported.
5366
5367 * w32term.c (zv_bits): Declare as short, for word alignment.
5368 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
5369 (syms_of_w32term): Define x-use-underline-position-properties.
5370
5371 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
5372 (clear_image_cache): Block input, fix logic, clear matrices in
5373 all frames that share this cache.
5374
53752002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
5376
5377 * emacs.c (main): Update the Copyright year in the blurb printed
5378 by "emacs --version".
5379
5380 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
5381
5382 * xterm.c (XTread_socket): If XK_ISO_Lock and
5383 XK_ISO_Last_Group_Lock are defined, handle keysyms between
5384 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
5385
53862002-03-21 Kim F. Storm <storm@cua.dk>
5387
5388 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
5389 menu-bar bindings in keymap and local-map properties _are_ used.
5390 But try keymap property first in accordance with 2002-01-03 patch.
5391 Added comment describing why this is not always reliable.
5392 (tool_bar_items): Ditto for tool-bar.
5393
53942002-03-21 Jason Rumney <jasonr@gnu.org>
5395
5396 * w32fns.c (x_clear_image_1): Disable color table code.
5397
53982002-03-21 Kim F. Storm <storm@cua.dk>
5399
5400 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
5401 removed the wrong version of the DEFUN macro; fixed it.
5402
5403 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
5404 Fmember rather than Fmemq).
5405 (Fprovide): Check that subfeatures is a list.
5406
5407 * process.c (QCfeature, QCdatagram): Removed variables.
5408 (QCtype, Qdatagram): New variables.
5409 (network_process_featurep): Removed function.
5410 (Fmake_network_process): Removed :feature check.
5411 Use :type 'datagram instead of :datagram t to create a datagram
5412 socket. This allows us to add other connection types (e.g. raw
5413 sockets) later in a consistent manner.
5414 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
5415 supported subfeatures for feature make-network-process.
5416 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
5417 Intern and staticpro QCtype and Qdatagram.
5418 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
5419
5420 * xfns.c: (QCtype): Remove duplicate declaration and
5421 initialization (is now declared in process.c).
5422
5423 * w32fns.c: (QCtype): Remove duplicate declaration and
5424 initialization (is now declared in process.c).
5425
54262002-03-21 Richard M. Stallman <rms@gnu.org>
5427
5428 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
5429 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
5430 when jumping to `fail' to avoid undoing reg changes in the
5431 last iteration of the loop.
5432 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
5433
5434 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
5435 Depend on process.h.
5436
54372002-03-20 Jason Rumney <jasonr@gnu.org>
5438
5439 Most of the following changes are still conditional on HAVE_IMAGES
5440 which is not set by default on Windows.
5441
5442 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
5443
5444 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
5445 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
5446 (four_corners_best, x_clear_image_1, x_clear_image)
5447 (x_alloc_image_color, postprocess_image)
5448 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
5449 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
5450 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
5451
5452 * w32gui.h (struct XImage): Define.
5453
5454 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
5455 extract mouse co-ordinates.
5456
54572002-03-20 Jason Rumney <jasonr@gnu.org>
5458
5459 * w32.c (init_winsock): Dynamically load new server and UDP
5460 socket functions.
5461 (socket_to_fd): New function.
5462 (sys_socket): Use it.
5463 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
5464 (sys_recvfrom, sys_sendto): New wrapper functions.
5465
5466 * process.c (QCfamily, QCfilter): Remove duplicate declaration
5467 and initialization.
5468
5469 * makefile.w32-in (LIBS): Remove $(WSOCK32).
5470
54712002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
5472
5473 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
5474 Don't use "sun" as a variable, it's a predefined constant on Sun
5475 machines.
5476
54772002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5478
5479 * bytecode.c (Fbyte_code): Revert last change.
5480
54812002-03-19 Kim F. Storm <storm@cua.dk>
5482
5483 * makefile.w32-in (LIBS): Add $(WSOCK32).
5484 From David Ponce <dponce@voila.fr>.
5485
54862002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5487
5488 * process.c (wait_reading_process_input): Move variables `pname'
5489 and `pnamelen' down where they are used.
5490
5491 * bytecode.c (Fbyte_code): Discard unused computed value to
5492 prevent gcc warning.
5493
5494 * lisp.h (Fplist_member): Add prototype.
5495
54962002-03-18 Kim F. Storm <storm@cua.dk>
5497
5498 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
5499 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
5500
5501 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
5502 Remove explicit GNU_LINUX settings for datagram support.
5503
55042002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5505
5506 * process.c (Fmake_network_process): Remove unused variable `sa'.
5507 Doc fix. Add usage:.
5508 (set_socket_options): Remove unused variables `optnum' and `opttype'.
5509
55102002-03-17 Richard M. Stallman <rms@gnu.org>
5511
5512 * xdisp.c (cursor_type_changed): New variable.
5513 (redisplay_internal): Redisplay all windows if cursor_type_changed.
5514 Clear it when clearing windows_or_buffers_changed.
5515 (try_cursor_movement, redisplay_window, try_window_id)
5516 (try_window_reusing_current_matrix): Test cursor_type_changed
5517 along with windows_or_buffers_changed.
5518
5519 * window.h (cursor_type_changed): New variable.
5520
5521 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
5522 not update_mode_lines, and always set it to 1.
5523
5524 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
5525 if no frames needed redrawing.
5526
55272002-03-17 Kim F. Storm <storm@cua.dk>
5528
5529 The following changes add support for network server processes,
5530 datagram connections, and local (unix) sockets.
5531
5532 * process.h (struct Lisp_Process): New member log.
5533 Doc fix: Member command used to indicate stopped network process.
5534 Doc fix: Member childp contains plist for network process.
5535 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
5536
5537 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
5538 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
5539 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
5540 New variables.
5541 (NETCONN1_P): New macro.
5542 (DATAGRAM_SOCKETS): New conditional symbol.
5543 (datagram_address): New array.
5544 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
5545 (status_message): Use concat3.
5546 (Fprocess_status): Add `listen' status to doc string. Return `stop'
5547 for a stopped network process.
5548 (Fset_process_buffer): Update contact plist for network process.
5549 (Fset_process_filter): Ditto. Don't enable input for stopped
5550 network processes. Server must listen, even if filter is t.
5551 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
5552 New functions.
5553 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
5554 (Fprocess_contact): Added KEY argument. Handle datagrams.
5555 (list_processes_1): Optionally show only processes with the query
5556 on exit flag set. Dynamically adjust column widths. Omit tty
5557 column if not needed. Report stopped network processes.
5558 Identify server and datagram network processes.
5559 (Flist_processes): New optional arg `query-only'.
5560 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
5561 (conv_lisp_to_sockaddr, set_socket_options)
5562 (network_process_featurep, unwind_request_sigio): New helper functions.
5563 (Fprocess_datagram_address, Fset_process_datagram_address):
5564 (Fset_network_process_options): New lisp functions.
5565 (Fopen_network_stream): Removed. Now defined in simple.el.
5566 (Fmake_network_process): New lisp function. Code is based on previous
5567 Fopen_network_stream, but heavily reworked with new property list based
5568 argument list, support for datagrams, server processes, and local
5569 sockets in addition to old client-only functionality.
5570 (server_accept_connection): New function.
5571 (wait_reading_process_input): Use it to handle incoming connects.
5572 Do not enable input on a new connection if process is stopped.
5573 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
5574 (send_process): Handle datagram sockets.
5575 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
5576 network process is indicated by setting command field to t .
5577 (Fprocess_send_eof): No-op if datagram connection.
5578 (Fstatus_notify): Don't read input for a stream server socket or a
5579 stopped network process.
5580 (init_process): Initialize datagram_address array.
5581 (syms_of_process): Intern and staticpro new variables, defsubr new
5582 functions.
5583
55842002-03-16 Jason Rumney <jasonr@gnu.org>
5585
5586 * w32fns.c (w32_to_all_x_charsets): Return correct type in
5587 startup case.
5588
55892002-03-16 Richard M. Stallman <rms@gnu.org>
5590
5591 * xdisp.c (redisplay_internal, redisplay_windows):
5592 Use list_of_error to call internal_condition_case_1.
5593 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
5594 so as to catch all errors with no possibility of debugger redisplay.
5595 (list_of_error): New variable.
5596 (syms_of_xdisp): Init and staticpro it.
5597
5598 * print.c (print_object): Delete `\ ' from printed rep of frame.
5599
56002002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
5601
5602 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
5603 until its implementation is fixed.
5604
56052002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5606
5607 * xfns.c (png_load): Remove unused variable `gamma_str'.
5608
56092002-03-14 Richard M. Stallman <rms@gnu.org>
5610
5611 * xfns.c (x_real_positions): Handle failure in XQueryTree.
5612
56132002-03-14 Miles Bader <miles@gnu.org>
5614
5615 * intervals.c (adjust_for_invis_intang): New function.
5616 (set_point_both): Use `adjust_for_invis_intang' to do most of the
5617 work for dealing with invisible+intangible regions. Do so before
5618 and after both forward and backward movements, to handle both
5619 front-sticky and rear-sticky cases.
5620 * textprop.c (text_property_stickiness): Function moved here from
5621 `editfns.c'.
5622 * intervals.h (text_property_stickiness): New declaration.
5623 * editfns.c (char_property_eq): Function removed.
5624 (text_property_stickiness): Function moved to `textprop.c'.
5625
56262002-03-13 Jason Rumney <jasonr@gnu.org>
5627
5628 * config.in: Add STRFTIME_NO_POSIX2.
5629
5630 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
5631 and %OX when underlying strftime does not.
5632
56332002-03-13 Stefan Monnier <monnier@cs.yale.edu>
5634
5635 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
5636 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
5637 line) to avoid annoying flicker.
5638 (xm_scroll_callback): Get rid of the now unnecessary kludge.
5639 (XTread_socket): Mark it static.
5640
5641 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
5642
56432002-03-13 Kim F. Storm <storm@cua.dk>
5644
5645 * puresize.h (BASE_PURESIZE): Increase to 775000.
5646
56472002-03-12 Juanma Barranquero <lektu@terra.es>
5648
5649 * editfns.c (syms_of_editfns): Fix typo.
5650
56512002-03-12 Gerd Moellmann <gerd@gnu.org>
5652
5653 * xsmfns.c: Include stdio.h because termhooks.h needs it.
5654 Include termopt.h for interrupt_input.
5655
56562002-03-11 Andreas Schwab <schwab@suse.de>
5657
5658 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
5659
56602002-03-11 Gerd Moellmann <gerd@gnu.org>
5661
5662 * xterm.c (note_mouse_movement): Put code for
5663 x_autoselect_window_p in #if 0.
5664
5665 * lread.c (Fload): Don't assume that message_with_string uses the
5666 string it is given like a C string.
5667
56682002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5669
5670 * xterm.h (x_session_check_input, x_session_initialize): Declared.
5671
5672 * xterm.c: (XTread_socket): Add call to x_session_check_input and
5673 x_session_have_connection.
5674 (x_initialize): Add call to x_session_initialize.
5675
5676 * termhooks.h (enum event_kind): Add save_session_event.
5677
5678 * keyboard.c: Add Emacs event save_session_event.
5679
5680 * emacs.c (main): Add call to syms_of_xsmfns.
5681
5682 * lisp.h: Declare syms_of_xsmfns as extern.
5683
5684 * config.in: Add HAVE_X_SM.
5685
5686 * Makefile.in (LIBXT): Add -lSM -lICE
5687 if HAVE_X_SM and not USE_X_TOOLKIT.
5688 (XOBJ): New file xsmfns.c added.
5689
5690 * xsmfns.c: New file for X session management.
5691
56922002-03-09 Jason Rumney <jasonr@gnu.org>
5693
5694 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
5695 read-only when setting modified time.
5696
56972002-03-08 Gerd Moellmann <gerd@gnu.org>
5698
5699 * xdisp.c (move_it_vertically_backward): At the end of the function,
5700 when moving forward by lines, treat terminal frames specially.
5701
5702 * keyboard.c (echo_char): Make sure to add a separator between
5703 keys even if echo_dash hasn't been called.
5704
5705 * xdisp.c: Use new string macros.
5706 (update_echo_area): Pass number of bytes to message3 instead of
5707 number of chars.
5708 (set_message_1): Don't access a string's size_byte directly.
5709 (decode_mode_spec_coding): Use number of bytes of eoltype string
5710 instead number of chars.
5711
5712 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
5713
57142002-03-08 Juanma Barranquero <lektu@terra.es>
5715
5716 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
5717 24-bit.
5718
57192002-03-06 Jason Rumney <jasonr@gnu.org>
5720
5721 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
5722
57232002-03-06 Gerd Moellmann <gerd@gnu.org>
5724
5725 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
5726 (cancel_echoing, echo_length, echo_truncate): Changed to
5727 work with new kboard definition.
5728 (echo_now): Use message3_nolog instead of message2_nolog.
5729
5730 * alloc.c (mark_kboards): Mark echo_string.
5731
5732 * keyboard.h (ECHOBUFSIZE): Removed.
5733 (struct kboard): Member echoptr removed, member echobuf renamed
5734 to echo_string.
5735
5736 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
5737 message3 instead of message2 to display the message using STRING's
5738 text properties.
5739
57402002-03-05 Andreas Schwab <schwab@suse.de>
5741
5742 * xdisp.c (hscroll_margin): Change to EMACS_INT.
5743
57442002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
5745
5746 * frame.c (default-frame-alist): Explain that setting it doesn't
5747 affect existing frames.
5748
57492002-03-05 Stefan Monnier <monnier@cs.yale.edu>
5750
5751 * indent.c (skip_invisible): Fix my brain fart.
5752
5753 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
5754
57552002-03-04 Stefan Monnier <monnier@cs.yale.edu>
5756
5757 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
5758 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
5759 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
5760 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
5761 and variables to use EMACS_INT instead of just int.
5762
5763 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
5764
57652002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
5766
5767 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
5768 environment, pass it down with corrected value.
5769
57702002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5771
5772 * lread.c (read_filtered_event): Do not call start_hourglass
5773 before returning.
5774
57752002-03-04 Juanma Barranquero <lektu@terra.es>
5776
5777 * w32term.c (x_display_and_set_cursor): Fix typo.
5778
57792002-03-03 Richard M. Stallman <rms@gnu.org>
5780
5781 * fileio.c (Fmake_temp_name): Doc fix.
5782
57832002-03-03 Gary Wong <gtw@gnu.org>
5784
5785 * termcap.c [!emacs]: Replace ospeed for building standalone
5786 libtermcap, for binary compatibility.
5787
5788 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
5789
57902002-03-03 Richard M. Stallman <rms@gnu.org>
5791
5792 * xrdb.c (file_p): Rename arg `path' to `filename'.
5793
5794 * abbrev.c (Fexpand_abbrev): Increment plist as use count
5795 only if it is an integer.
5796
5797 * xfns.c (png_load): Set screen_gamma based on f->gamma.
5798 If png_get_sRGB gives an answer, call png_set_gamma
5799 using the default image gamma value.
5800
5801 * lread.c (read1): When reading from a file, default string to
5802 multibyte only if it has some multibyte characters.
5803
5804 * print.c (print_object): Output multibyte chars 128...255
5805 using \x even if ! print_escape_multibyte.
5806
5807 * xdisp.c (display_mode_element): Move the places where
5808 bytepos, charpos, this, and lisp_string are set.
5809 Use lisp_string to set bytepos.
5810
5811 * xdisp.c (redisplay_internal):
5812 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
5813
5814 * xdisp.c (display_mode_element): Merge properties specified with
5815 :propertize onto those that come with the string.
5816
58172002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
5818
5819 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
5820 automatic-hscrolling. Users changed.
5821 <hscroll-margin>: Renamed from automatic-hscroll-margin.
5822 Users changed.
5823 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
5824
58252002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
5826
5827 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
5828
58292002-03-02 Kim F. Storm <storm@cua.dk>
5830
5831 * window.c (Fminibuffer_selected_window): New function.
5832 (syms_of_window): Defsubr it.
5833
58342002-03-01 Kim F. Storm <storm@cua.dk>
5835
5836 * window.h (struct window): New member phys_cursor_width.
5837
5838 * window.c (make_window, replace_window): Init phys_cursor_width.
5839
5840 * xterm.c (x_display_and_set_cursor): Blink box cursor using
5841 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
5842
5843 * w32term.c (x_display_and_set_cursor): Blink box cursor using
5844 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
5845
5846 * lisp.h (GCPRO6): New macro.
5847
5848 * process.c (Fopen_network_stream): Use GCPRO6.
5849
58502002-03-01 Kim F. Storm <storm@cua.dk>
5851
5852 * process.c (Qconnect, Qfailed): New variables.
5853 (syms_of_process): Intern and staticpro them.
5854 (Fprocess_status): Document connect and failed return values.
5855 [NON_BLOCKING_CONNECT]: New conditional.
5856 (connect_wait_mask, num_pending_connects): New variables.
5857 (status_message): Convert Qfailed status.
5858 (Fopen_network_stream): Added support for non-blocking connect.
5859 New optional args: filter, sentinel, non_blocking. Doc updated.
5860 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
5861 (deactivate_process): Handle pending non-blocking connect.
5862 (wait_reading_process_input): Poll for status of non-blocking
5863 connects. Exec sentinel directly when connect succeeds.
5864 (status_notify): Don't read process output if not yet connected.
5865
58662002-02-28 Kim F. Storm <storm@cua.dk>
5867
5868 * window.c: (minibuf_selected_window): Renamed from
5869 Vminibuf_selected_window. Users changed.
5870 (syms_of_window): Staticpro it.
5871
58722002-02-26 Kim F. Storm <storm@cua.dk>
5873
5874 The following changes add a new Vminibuf_selected_window variable
5875 which is similar to Vminibuf_scroll_window, but which is only set
5876 on entry to the minibuffer (from a non-minibuffer window):
5877
5878 * window.c: (Vminibuf_selected_window): New variable.
5879 (struct save_window_data): New member minibuf_selected_window.
5880 (Fset_window_configuration): Restore Vminibuf_selected_window.
5881 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
5882 Set minibuf_scroll_window member to nil if minibuf_level is 0.
5883 (compare_window_configurations): Compare minibuf_selected_window.
5884
5885 * window.h: (Vminibuf_selected_window): Declare extern.
5886
5887 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
5888 entry to minibuffer or on entry from a non-minibuffer window.
5889
5890 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
5891 Vminibuf_selected_window instead of Vminibuf_scroll_window.
5892
5893 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
5894 instead of Vminibuf_scroll_window when deciding in which window
5895 the region should be highlighted. Consequently, the region remains
5896 highlighteded even when a completion buffer is also displayed.
5897
58982002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
5899
5900 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
5901
5902 * xselect.c (Qcompound_text_with_extensions): Renamed from
5903 Qcompound_text_no_extensions.
5904 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
5905
59062002-02-26 Juanma Barranquero <lektu@terra.es>
5907
5908 * w32proc.c (syms_of_ntproc): Doc fix.
5909
59102002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5911
5912 * intervals.h: Include "dispextern.h" unconditionally.
5913
59142002-02-24 Jason Rumney <jasonr@gnu.org>
5915
5916 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
5917 and disp-table.elc.
5918 (lisp): Add emacs-lisp/backquote.elc.
5919
59202002-02-24 Kim F. Storm <storm@cua.dk>
5921
5922 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
5923 The validation of the event type was too strict as it didn't
5924 allow string events; buffer names are used in bindings for
5925 menu-bar-select-buffer (see `menu-bar-update-buffers').
5926
59272002-02-23 Kim F. Storm <storm@cua.dk>
5928
5929 The following changes rework my patch of 2002-02-06 which
5930 added command remapping by entering the commands directly into
5931 the keymaps. Now, command remapping uses an explicit `remap'
5932 prefix in the keymaps, i.e. [remap COMMAND].
5933
5934 * keymap.c (Qremap, remap_command_vector): New variables.
5935 (is_command_symbol): Removed function.
5936 (Fdefine_key): No longer accept a symbol for KEY.
5937 Added validation of [remap COMMAND] argument for KEY.
5938 The DEF is no longer required to be a symbol when remapping a command.
5939 (Fremap_command): New function to remap command through keymaps.
5940 (Flookup_key): Perform command remapping initiated by
5941 Fremap_command directly for speed.
5942 (Fkey_binding): Use Fremap_command for command remapping.
5943 (where_is_internal): Handle new command remapping representation.
5944 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
5945 staticpro them. Defsubr Fremap_command.
5946
5947 * keymap.h (Fremap_command): Declare extern.
5948 (is_command_symbol): Remove extern.
5949
5950 * keyboard.c (command_loop_1): Use Fremap_command for command
5951 remapping; now try command remapping for all symbols.
5952
59532002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
5954
5955 * coding.h (run_pre_post_conversion_on_str): Add prototype.
5956
59572002-02-23 Jason Rumney <jasonr@gnu.org>
5958
5959 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
5960 on the string before encoding it.
5961 (Fw32_get_clipboard_data): Run post-read-conversion on the string
5962 after decoding it.
5963
5964 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
5965
59662002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5967
5968 * w32term.c (enter_timestamp): Remove unused static variable to
5969 prevent warning.
5970
5971 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
5972
59732002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
5974
5975 * w16select.c (Fw16_get_clipboard_data): Fix last change.
5976
5977 * xselect.c (selection_data_to_lisp_data): Fix last change.
5978
59792002-02-22 Jason Rumney <jasonr@gnu.org>
5980
5981 * w32term.h (struct w32_output): New member menu_command_in_progress.
5982
5983 * w32menu.c (menubar_selection_callback): Free the menu and
5984 clear the menu_command_in_progress flag.
5985
5986 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
5987 (menu_free_timer): New variable.
5988 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
5989 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
5990 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
5991 menu command is in progress.
5992 <WM_COMMAND>: Set the menu_command_in_progress flag.
5993 Kill any menu_free_timer that is running.
5994
5995 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
5996 Call ExtTextOutA rather than ExtTextOut.
5997
59982002-02-22 Eli Zaretskii <eliz@gnu.org>
5999
6000 * puresize.h (BASE_PURESIZE): Increase to 755000.
6001
60022002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
6003
6004 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
6005 on the string before encoding it.
6006 (Fw16_get_clipboard_data): Run post-read-conversion on the string
6007 after decoding it.
6008
60092002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
6010
6011 Support for ICCCM Extended Segments in X selections:
6012
6013 * xselect.c <Qcompound_text_no_extensions>: New variable.
6014 (syms_of_xselect): Intern and staticpro it.
6015 (selection_data_to_lisp_data): Run post-read-conversion on decoded
6016 selection text.
6017 (lisp_data_to_selection_data): If next-selection-coding-system is
6018 compound-text-no-extensions, set the type of selection to be
6019 compound-text.
6020
6021 * xterm.h (x_encode_text): Update prototype.
6022
6023 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
6024 callers changed. If SELECTIONP is non-zero, run the
6025 pre-write-conversion function before encoding the selection text.
6026
60272002-02-21 Kim F. Storm <storm@cua.dk>
6028
6029 * frame.c (syms_of_frame): Change mouse-highlight default to t.
6030
6031 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
6032 Correct composing of language-change event.
6033
60342002-02-20 Kim F. Storm <storm@cua.dk>
6035
6036 * keyboard.c (menu_bar_items): Don't include keymap or local-map
6037 bindings at PT when building menu (the menu is not updated often
6038 enough for this to work reliable).
6039 (tool_bar_items): Likewise.
6040 (current_active_maps): Removed unused (and buggy) function.
6041
60422002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6043
6044 * xfns.c (gif_load): Use correct width and height for GIF images.
6045
60462002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
6047
6048 * floatfns.c (Fatan): Accept an optional second arg and call
6049 atan2 if passed 2 args.
6050
60512002-02-18 Jason Rumney <jasonr@gnu.org>
6052
6053 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
6054
60552002-02-17 Jason Rumney <jasonr@gnu.org>
6056
6057 * w32term.c (x_autoselect_window_p): New variable.
6058 (syms_of_w32term): DEFVAR_BOOL and initialize it.
6059 (note_mouse_movement): Use it.
6060
6061 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
6062
6063 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
6064
6065 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
6066 New variables.
6067 (syms_of_w32fns): Intern and staticpro them.
6068 (x_frame_parms) <"fullscreen">: New parameter.
6069 (x_fullscreen_move, x_set_fullscreen): New functions.
6070 (x_set_frame_parameters): Support Qfullscreen.
6071 (x_real_positions): Save x/y_pixels_diff frame params.
6072 (x_figure_window_size): Support full-screen frames.
6073 (Fx_create_frame): Default the fullscreen parameter.
6074
6075 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
6076 (x_fullscreen_adjust): New functions.
6077 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
6078 fullscreen. Call x_check_fullscreen_move, and set the
6079 want_fullscreen member of output_data.w32
6080 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
6081
6082 * w32term.h: New enum for FULLSCREEN_* constants.
6083 (struct w32_output): New members want_fullscreen, x_pixels_diff,
6084 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
6085 (x-fullscreen-adjust): New prototype.
6086
60872002-02-17 Kim F. Storm <storm@cua.dk>
6088
6089 * frame.c: (Vmouse_highlight): New variable.
6090 (syms_of_frame): DEFVAR_LISP it.
6091
6092 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 6093
048addec 6094 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 6095
048addec
JD
6096 * xterm.c (disable_mouse_highlight): Removed variable.
6097 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
6098 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
6099 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
6100 and on after keyboard input.
6101 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 6102
048addec 6103 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 6104
048addec
JD
6105 * msdos.c (disable_mouse_highlight): Removed variable.
6106 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
6107 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
6108 (internal_terminal_init): Initialize mouse_face_hidden.
6109 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
6110 and on after keyboard input.
4f1b1854 6111
048addec 6112 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 6113
048addec
JD
6114 * w32term.c (disable_mouse_highlight): Removed variable.
6115 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
6116 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
6117 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
6118 and on after keyboard input.
6119 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 6120
048addec 61212002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 6122
048addec
JD
6123 * msdos.c (last_mouse_window): New variable.
6124 (dos_rawgetc): Fix last change--if the mouse is in the same window
6125 as recorded in last_mouse_window, don't select this window.
5cb6905d 6126
048addec 6127 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 6128
048addec
JD
6129 * msdos.c (x_autoselect_window_p): New variable.
6130 (syms_of_msdos): Defvar it.
6131 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
6132 which the last mouse movement occured, unless it is already selected.
437dfb9f 6133
048addec
JD
6134 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
6135 New variables.
6136 (syms_of_xdisp): DEVFAR them.
6137 (hscroll_window_tree): Use automatic_hscroll_margin and
6138 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 6139
048addec 61402002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 6141
048addec
JD
6142 * xterm.c (x-autoselect-window): New variable.
6143 (note_mouse_movement): Use it.
9f696a00 6144
048addec 6145 * keyboard.c: Do not include "systime.h" twice.
d57966d7 6146
048addec 61472002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 6148
048addec 6149 * puresize.h (BASE_PURESIZE): Increase to 9/5.
d57966d7 6150
048addec 6151 * alloc.c (NSTATICS): Increase to 1280.
74779f52 6152
048addec 61532002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 6154
048addec 6155 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 6156
048addec
JD
6157 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
6158 (Vx_super_keysym): New variables.
6159 (syms_of_xterm): DEFVAR_LISP them.
6160 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
6161 variables to determine which keys to use for the various modifiers.
a474d59c 6162
048addec 61632002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 6164
048addec
JD
6165 * window.c: (Vmode_line_in_non_selected_windows): Removed.
6166 (mode_line_in_non_selected_windows): New variable.
6167 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 6168
048addec
JD
6169 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
6170 Use mode_line_in_non_selected_windows.
6171 (mode_line_in_non_selected_windows): Declare extern.
6172 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 6173
048addec 61742002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 6175
048addec
JD
6176 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
6177 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
6178 (Fclear_this_command_keys): Doc fixes.
2d10309f 6179
048addec
JD
6180 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
6181 (update_face_from_frame_parameter): Increment face_change_count
6182 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 6183
048addec
JD
6184 * xdisp.c (QCpropertize): New variable.
6185 (mode_line_proptrans_alist): New variable.
6186 (display_mode_element): New arg PROPS; all calls changed.
6187 Implement this, for strings.
6188 Handle literal output of strings by sharing the
6189 main-line code for strings, using local var `literal'.
6190 Handle :propertize feature.
6191 (syms_of_xdisp): Initialze and staticpro QCpropertize and
6192 mode_line_proptrans_alist.
0b1e6b54 6193
048addec 61942002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 6195
048addec
JD
6196 * window.c: (Vmode_line_in_non_selected_windows): New variable.
6197 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 6198
048addec
JD
6199 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
6200 (CURRENT_MODE_LINE_FACE_ID): Use it.
6201 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 6202
048addec
JD
6203 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
6204 to get mode line face.
e17144de 6205
048addec 62062002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 6207
048addec
JD
6208 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
6209 variables; cus-start.el doesn't need them anymore.
44368f8f 6210
048addec 62112002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 6212
048addec
JD
6213 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
6214 reduction. This fixes a display problem where stray newlines were
6215 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 6216
048addec 62172002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 6218
048addec 6219 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 6220
048addec 6221 * xdisp.c (display_mode_lines): Fix last change.
453c5510 6222
048addec 62232002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 6224
048addec
JD
6225 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
6226 match each other.
6227 (w32_load_system_font): Prevent Cleartype fonts from loading.
6228 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 6229
048addec 62302002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 6231
048addec
JD
6232 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
6233 (CURRENT_MODE_LINE_HEIGHT): Use it.
6234 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 6235
048addec
JD
6236 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
6237 (pos_visible_p, handle_face_prop): Likewise.
6238 (display_mode_lines): Likewise, but for the real selected window.
6239 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 6240
048addec
JD
6241 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
6242 in non-selected windows.
6243 (realize_basic_faces): Realize it.
6244 (syms_of_term): Intern and staticpro it.
308dd672 6245
048addec 62462002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 6247
048addec
JD
6248 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
6249 Changed mail addresses to emacs-devel@gnu.org.
308dd672 6250
048addec 62512002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 6252
048addec
JD
6253 * fileio.c (Fsubstitute_in_file_name): If the file name includes
6254 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 6255
048addec 6256 * floatfns.c (Fround): Doc fix.
3c1e6b46 6257
048addec 62582002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 6259
048addec 6260 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 6261
048addec 62622002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 6263
048addec 6264 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 6265
048addec 62662002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 6267
048addec
JD
6268 * keymap.c (where_is_internal): Only check whether definition is
6269 remapped if it fulfills is_command_symbol.
0065bb74 6270
048addec 62712002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 6272
048addec 6273 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 6274
048addec 6275 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 6276
048addec 62772002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 6278
048addec
JD
6279 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
6280 defining command remapping. Doc updated.
6281 (Flookup_key): Remap command through keymap if KEY is a symbol.
6282 (is_command_symbol): New function.
6283 (Fkey_binding): Use it. New optional argument NO-REMAP.
6284 Doc updated. Callers changed. Perform command remapping via
6285 recursive call unless that arg is non-nil.
6286 (where_is_internal): New argument no_remap. Callers changed.
6287 Call recursively to find original key bindings for a remapped
6288 comand unless that arg is non-nil.
6289 (Fwhere_is_internal): New optional argument NO-REMAP.
6290 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 6291
048addec
JD
6292 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
6293 (is_command_symbol): Added prototype.
0d8466cc 6294
048addec
JD
6295 * keyboard.c (Vthis_original_command): New variable.
6296 (syms_of_keyboard): DEFVAR_LISP it.
6297 (command_loop_1): Set it, and perform command remapping.
15fff01d 6298
048addec 62992002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 6300
048addec 6301 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 6302
048addec 63032002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 6304
048addec 6305 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 6306
048addec 63072002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 6308
048addec 6309 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 6310
048addec 63112002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 6312
048addec 6313 * filelock.c (S_ISLNK): Define if not defined.
3a232704 6314
048addec 63152002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 6316
048addec 6317 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 6318
048addec
JD
6319 * lread.c (read1): Redesign strategy for force_multibyte and
6320 force_singlebyte. Now is_multibyte records whether read_buffer
6321 is multibyte. Encountering any multibyte character makes it so.
4e02881b 6322
048addec 63232002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 6324
048addec
JD
6325 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
6326 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 6327
048addec 63282002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 6329
048addec
JD
6330 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
6331 latter never being defined on GNU/Linux.
749f499f 6332
048addec 63332002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 6334
048addec
JD
6335 * xfaces.c (realize_default_face): Don't set the weight and slant of
6336 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 6337
048addec 63382002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 6339
048addec
JD
6340 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
6341 Call cancel_hourglass unconditionally.
d0fd26dd 6342
048addec
JD
6343 * eval.c (Fsignal): Remove duplicated declaration of
6344 the variable `display_hourglass_p'.
b4c45162 6345
048addec 63462002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 6347
048addec 6348 * editfns.c (region_limit): Nicer error message.
c95eaa61 6349
048addec
JD
6350 * coding.c (decode_composition_emacs_mule):
6351 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 6352
048addec
JD
6353 * callint.c (check_mark): New arg to specify clearer error message.
6354 Callers changed.
c95eaa61 6355
048addec 63562002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 6357
048addec 6358 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 6359
048addec 63602002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 6361
048addec
JD
6362 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
6363 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
6364 Fix doc-strings.
c95eaa61 6365
048addec 63662002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 6367
048addec 6368 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 6369
048addec
JD
6370 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
6371 and scroll_up_aggressively.
c95eaa61 6372
048addec 63732002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 6374
048addec 6375 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 6376
048addec 63772002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 6378
048addec
JD
6379 * textprop.c (Fnext_property_change, Fnext_single_property_change)
6380 (Fprevious_property_change, Fprevious_single_property_change):
6381 Stay within the narrowed-buffer boundaries.
e2c3786a 6382
048addec 63832002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 6384
048addec
JD
6385 * term.c (Ftty_display_color_cells): New function.
6386 (syms_of_term): Defsubr it.
6387 (Ftty_display_color_cells, Ftty_display_color_p): Change the
6388 argument name to DISPLAY. Doc fix.
bf794306 6389
048addec
JD
6390 * dispextern.h: Add prototype for set_tty_color_mode and
6391 tty_setup_colors.
bf794306 6392
048addec 63932002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 6394
048addec
JD
6395 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
6396 If region left to draw is not what was expected, mark the frame as
6397 garbaged.
62582985 6398
048addec
JD
6399 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
6400 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 6401
048addec 64022002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 6403
048addec
JD
6404 * w32term.c (x_update_window_begin): Only hide caret if
6405 w32_use_visible_system_caret is set.
6406 (x_update_window_end): Only show caret if
6407 w32_use_visible_system_caret is set.
6408 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 6409
048addec 6410 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 6411
048addec 64122002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 6413
048addec
JD
6414 * unexelf.c (unexec): Define n so as to cause compilation error
6415 for the code where people have often written n instead of nn.
1e9a6186 6416
048addec 6417 * .gdbinit (hookpost-run): Defined.
1e9a6186 6418
048addec 64192002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 6420
048addec 6421 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 6422
048addec 64232002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 6424
048addec
JD
6425 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
6426 if fullscreen is being set.
7c75be36 6427
048addec 64282002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 6429
048addec
JD
6430 * minibuf.c (Fminibuffer_contents)
6431 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
6432 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 6433
048addec 64342002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 6435
048addec 6436 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 6437
048addec 64382002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 6439
048addec
JD
6440 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
6441 height before comparison.
6442 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 6443
048addec 64442002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 6445
048addec
JD
6446 * w32term.c (w32_system_caret_width): Remove.
6447 (w32_use_visible_system_caret): New user flag.
6448 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
6449 Windows reports a screen reader running.
6450 (x_update_window_begin): Hide the system caret.
6451 (x_update_window_end): Show the system caret.
6452 (x_display_and_set_cursor): Don't draw a cursor when
6453 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 6454
048addec
JD
6455 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
6456 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
6457 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
6458 the user requests it. Use system default width when creating.
6459 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 6460
048addec
JD
6461 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
6462 New window messages.
905cc05a 6463
048addec 64642002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 6465
048addec 6466 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 6467
048addec 64682002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 6469
048addec 6470 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 6471
048addec 64722002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 6473
048addec 6474 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 6475
048addec 64762002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 6477
048addec
JD
6478 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
6479 that Windows returns. If a double check fails, try to guess how
6480 ExtTextOut is going to act.
4d0fa4f3 6481
048addec
JD
6482 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
6483 in place of stricmp.
6484 (w32_list_synthesized_fonts): Removed.
6485 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
6486 (struct enumfont_t): New element; list.
6487 (enum_font_cb2): List all style and charset variations of a font.
6488 (Fw32_select_font): New optional argument; include_proportional.
6489 Exclude vertical fonts. Exclude proportional fonts unless
6490 include_proportional is non-nil.
6491 (w32_enable_synthesized_fonts): Change to a boolean.
6492 (Fw32_send_sys_command): Doc fix.
493faf20 6493
048addec 64942002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 6495
048addec
JD
6496 * dispnew.c (update_frame): Move the variable `tem' to the block
6497 where it is used.
4971e491 6498
048addec 64992002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 6500
048addec
JD
6501 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
6502 call to face-set-after-frame-default.
4971e491 6503
048addec 65042002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 6505
048addec
JD
6506 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
6507 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 6508
048addec 65092002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 6510
048addec
JD
6511 * window.c (enlarge_window): When exceeding size of parent,
6512 directly delete all the siblings instead of trying to resize it.
201c831a 6513
048addec 65142002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 6515
048addec 6516 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 6517
048addec 65182002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 6519
048addec 6520 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 6521
048addec 65222002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 6523
048addec
JD
6524 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
6525 is invisible. This can happen if cursor is on top line of a
6526 window, and we switch to a buffer with a header line.
d77fbc16 6527
048addec 6528 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 6529
048addec 65302002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 6531
048addec
JD
6532 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
6533 `dont_resize' only when used.
61e3b944 6534
048addec 6535 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 6536
048addec 65372002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 6538
048addec
JD
6539 * xdisp.c (display_mode_element): When computing charpos, depend
6540 on multibyteness of elt, not the text in field.
8af01033 6541
048addec 65422002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 6543
048addec
JD
6544 * buffer.c (Fkill_all_local_variables):
6545 Increment `update_mode_lines' only once.
7363986a 6546
048addec 65472002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 6548
048addec
JD
6549 * lisp.h (adjust_after_replace_noundo)
6550 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 6551
048addec 6552 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 6553
048addec 65542002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 6555
048addec
JD
6556 Support for the --color command-line argument and tty-color-mode
6557 frame parameter:
f1a85b89 6558
048addec
JD
6559 * term.c (tty_default_color_capabilities, tty_setup_colors)
6560 (set_tty_color_mode): New functions.
6561 (term_init): Call tty_default_color_capabilities.
6562 (Qtty_color_mode_alist): New variable.
6563 (syms_of_term): Intern and staticpro it.
f1a85b89 6564
048addec
JD
6565 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
6566 frames.
6567 (do_switch_frame): For termcap frames, switch the tty
6568 color mode as specified by the frame's parameters.
6569 (Qtty_color_mode): New variable.
6570 (syms_of_frame): Intern and staticpro it.
3a62677f 6571
048addec
JD
6572 * emacs.c (USAGE2): Add the --color option.
6573 (standard_args): Ditto.
72244db2 6574
048addec
JD
65752002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6576
6577 * xterm.h (struct x_output): New members want_fullscreen,
6578 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
6579 y_pixels_outer_diff.
6580 New enum for FULLSCREEN_* constants.
6581 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
6582 is NULL.
6583 (x_fullscreen_adjust): Add prototype.
3a62677f 6584
048addec
JD
6585 * emacs.c (USAGE2): Add the new full-screen arguments.
6586 (standard_args): Ditto.
3a62677f 6587
048addec
JD
6588 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
6589 New variables.
6590 (syms_of_xfns): Intern and staticpro them.
6591 (x_frame_parms) <"fullscreen">: New parameter.
6592 (x_fullscreen_move, x_set_fullscreen): New functions.
6593 (x_set_frame_parameters): Support for Qfullscreen.
6594 (x_real_positions): More accurate computation of the frame position.
6595 (x_figure_window_size): Support full-screen frames.
6596 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 6597
048addec
JD
6598 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
6599 (XTread_socket) <Expose>: Call x_check_fullscreen.
6600 <ConfigureNotify>: Don't resize to fullscreen.
6601 Call x_check_fullscreen_move, and set the want_fullscreen member of
6602 output_data.x.
3a62677f 6603
048addec 66042002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 6605
048addec
JD
6606 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
6607 for mice with more than 3 buttons.
b8523839 6608
048addec
JD
6609 * w32term.c (parse_button): New parameter xbutton. Callers changed.
6610 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 6611
048addec
JD
6612 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
6613 (syms_of_w32fns): DEFVAR_BOOL it.
6614 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 6615
048addec 66162002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 6617
048addec 6618 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 6619
048addec 66202002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 6621
048addec 6622 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 6623
048addec 66242002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 6625
048addec
JD
6626 * .gdbinit (xbuffer): Remove address operator since data is now a
6627 pointer.
c93674bb 6628
048addec 66292002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 6630
048addec 6631 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 6632
048addec 6633 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 6634
048addec 66352002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 6636
048addec
JD
6637 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
6638 when checking for multiple frames.
91175673 6639
048addec 66402002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 6641
048addec
JD
6642 * window.c (delete_window): Rewrite the code for changing the
6643 selected window to handle the case where WINDOW is not a leaf.
91175673 6644
048addec 66452002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 6646
048addec
JD
6647 * process.c (send_process): Set src_multibyte to 1 after the call
6648 top setup_coding_system, not before the call.
e0fead5d 6649
048addec 66502002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 6651
048addec
JD
6652 * xmenu.c (set_frame_menubar, xmenu_show):
6653 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 6654
048addec
JD
6655 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
6656 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 6657
048addec 66582002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 6659
048addec 6660 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 6661
048addec 6662 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 6663
048addec 6664 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 6665
048addec 66662002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 6667
048addec
JD
6668 * insdel.c (make_gap_larger): Make sure buffer size does not
6669 overflow range of int.
62854fe2 6670
048addec 66712002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 6672
048addec
JD
6673 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
6674 OVERLAPS_P.
656f46bb 6675
048addec 6676 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 6677
048addec
JD
6678 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
6679 to the left or to the right of the pointer, put it against
6680 the left screen edge.
6681 (x_frame_parms): Add missing braces around initializer.
036e218d 6682
048addec
JD
6683 * w32term.c (x_setup_relief_colors): Don't compute an image's
6684 background color if it doesn't have a Pixmap.
6685 (notice_overwritten_cursor): Don't depend on
6686 output_cursor and updated_area. Compare pixel coordinates with
6687 window's cursor pixel coordinates.
6688 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
6689 Call notice_overwritten_cursor with new arg list.
6690 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
6691 unconditionally.
6692 (x_draw_image_relief): Use predefined macro instead of
6693 constant when the value of `tool_bar_button_relief' is negative.
036e218d 6694
048addec 6695 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 6696
048addec 66972002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 6698
048addec 6699 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 6700
048addec 67012002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 6702
048addec
JD
6703 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
6704 (Fkey_binding): Try the `keymap' property map first.
6705 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
6706 minor mode bindings.
90647b07 6707
048addec 67082002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 6709
048addec 6710 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 6711
048addec 67122002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 6713
048addec
JD
6714 * keyboard.c (read_key_sequence): Handle the keymap property
6715 before minor mode maps.
9fbc32aa 6716
048addec
JD
6717 * editfns.c (Fformat): Update thissize from field_width
6718 based on the actual width, in the string case.
036e218d 6719
048addec 67202002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 6721
048addec
JD
6722 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
6723 when used as truth value to prevent gcc warnings.
9fbc32aa 6724
048addec
JD
6725 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
6726 * w32proc.c: Include <config.h>.
9fbc32aa 6727
048addec 67282002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 6729
048addec
JD
6730 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
6731 not EMACS_INT, to make them compatible with DEFVAR_INT.
6732 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 6733
048addec 67342002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 6735
048addec
JD
6736 * print.c (print_object): Test print_escape_nonascii only for
6737 unibyte strings.
6738 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
6739 when outputting to a multibyte buffer.
9fbc32aa 6740
048addec 67412001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 6742
048addec
JD
6743 * print.c (print_object): In multibyte string, use hex escapes.
6744 Use octal only for unibyte strings.
6745 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 6746
048addec
JD
6747 * lread.c (read_escape): New arg BYTEREP for reporting whether
6748 escape forces unibyte or multibyte.
6749 (read1): When reading a string, take note of that info.
0142178a 6750
048addec 67512001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 6752
048addec
JD
6753 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
6754 comparison to test lisp value returned by Fget.
d4824a5d 6755
048addec 67562001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 6757
048addec 6758 * lisp.h (max_specpdl_size): Add declaration.
b1356234 6759
048addec 6760 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 6761
048addec
JD
6762 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
6763 Handle modifier bits. Correct typo in error message.
99e380ee 6764
048addec 67652001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 6766
048addec
JD
6767 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
6768 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
6769 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
6770 Update calls to Fdefine_abbrev.
6771 (write_abbrev): Update for changed data format.
6772 Don't list "system" abbrevs.
6773 (Fexpand_abbrev): Update use count with new data format.
6774 (describe_abbrev): Update for changed data format.
6775 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 6776
048addec 6777 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 6778
048addec 6779 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 6780
048addec
JD
6781 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
6782 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 6783
048addec
JD
6784 * keymap.c (Flookup_key): Error message if key has wrong data type.
6785 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
6786 (exclude_key): New variable.
59a86c99 6787
048addec 67882001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 6789
048addec
JD
6790 * xterm.c (x_setup_relief_colors): Don't compute an image's
6791 background color if it doesn't have a Pixmap.
eb77a5f4 6792
048addec
JD
6793 * xterm.c (notice_overwritten_cursor): Don't depend on
6794 output_cursor and updated_area. Compare pixel coordinates with
6795 window's cursor pixel coordinates.
6796 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
6797 Call notice_overwritten_cursor with new arg list.
6798 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
6799 unconditionally.
eb77a5f4 6800
048addec
JD
6801 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
6802 height of the cursor line to the amount to scroll.
eb77a5f4 6803
048addec 68042001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 6805
048addec
JD
6806 * intervals.c (set_point_both): The position after an invisible,
6807 intangible character is not an acceptable stopping point.
bb313871 6808
048addec 68092001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 6810
048addec
JD
6811 * window.c (enlarge_window): In new preserve_before code, convert
6812 CURBEG from lisp object to integer before doing arithmetic.
6052529b 6813
048addec 68142001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 6815
048addec 6816 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 6817
048addec 68182001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 6819
048addec
JD
6820 * keyboard.c (record_char): Ignore duplicate help-echo events only
6821 separated by mouse-movement. When tracking mouse, only record
6822 first and last mouse-movement event in same window.
6823 Don't record mouse-movement events in keyboard macros.
3ce081f5 6824
048addec 68252001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 6826
048addec
JD
6827 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
6828 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 6829
048addec
JD
6830 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
6831 instead of Fstring_as_unibyte.
9fabb2f5 6832
048addec 68332001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 6834
048addec 6835 The following changes remove mocklisp support:
9fabb2f5 6836
048addec 6837 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 6838
048addec
JD
6839 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
6840 `Qmocklisp' and `Qmocklisp_arguments'.
6841 Remove prototype of syms_of_mocklisp.
2fa0eedf 6842
048addec 6843 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 6844
048addec
JD
6845 * callint.c: Do not include mocklisp.h.
6846 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 6847
048addec
JD
6848 * eval.c: Remove variables `Qmocklisp_arguments',
6849 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
6850 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
6851 Do not test for mocklisp case.
6852 (Fwhile): Remove unused variable `tem'.
6853 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 6854
048addec 6855 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 6856
048addec 6857 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 6858
048addec 6859 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 6860
048addec 68612001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 6862
048addec
JD
6863 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
6864 to the left or to the right of the pointer, put it against
6865 the left screen edge.
6108b49c 6866
048addec 68672001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 6868
048addec
JD
6869 * Makefile.in (distclean): Remove .gdbinit if we are building
6870 outside the source tree.
5eea19a4 6871
048addec 68722001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 6873
048addec 6874 * w32.c (emacs_root_dir): New function.
5eea19a4 6875
048addec 6876 * msdos.c (emacs_root_dir): New function.
5eea19a4 6877
048addec
JD
6878 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
6879 of the current drive as the fallback for default_directory.
438e57dd 6880
048addec
JD
6881 * dired.c (file_name_completion): Run the elements of
6882 completion-ignored-extensions through ENCODE_FILE.
438e57dd 6883
048addec
JD
6884 * lisp.h (scmp): Remove prototype, since it's now a static
6885 function private to dired.c.
c88e5347 6886
048addec 68872001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 6888
048addec
JD
6889 * dired.c (scmp): Function moved from minibuf.c.
6890 Delete multibyte handling--used only on encoded strings.
59ce1461 6891
048addec 6892 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 6893
048addec 6894 * fns.c (merge): Add QUIT call.
59ce1461 6895
048addec 68962001-12-18 Dave Love <fx@gnu.org>
8727d588 6897
048addec
JD
6898 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
6899 language/georgian.el.
8727d588 6900
048addec 69012001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 6902
048addec
JD
6903 * Makefile.in (lisp, shortlisp): Synchronize with changes to
6904 lisp/Makefile.in:DONTCOMPILE.
cc63037e 6905
048addec 69062001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 6907
048addec
JD
6908 * xdisp.c (window_box_height): Do not return negative values.
6909 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 6910
048addec 6911 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 6912
048addec 6913 * term.c (keys): Likewise.
deece6f5 6914
048addec 6915 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 6916
048addec 69172001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 6918
048addec
JD
6919 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
6920 patch (COMPOSING_P, not COMPOSING).
28ff4293 6921
048addec 69222001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 6923
048addec 6924 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 6925
048addec
JD
6926 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
6927 before calling decode_coding.
9b46de40 6928
048addec 6929 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 6930
048addec
JD
6931 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
6932 instead of only for COMPOSITION_DISABLED.
9b46de40 6933
048addec 69342001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 6935
048addec 6936 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 6937
048addec 6938 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 6939
048addec
JD
6940 * buffer.h (struct buffer): New field `display_error_modiff'.
6941 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 6942
048addec 6943 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 6944
048addec
JD
6945 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
6946 Call redisplay_window, but not if display_error_modiff field says no.
6947 (redisplay_window_error): New function.
6948 (displayed_buffer): New variable.
6949 (redisplay_internal, redisplay_windows): Call the new functions
6950 instead of redisplay_window directly.
2cd23960 6951
048addec 69522001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 6953
048addec 6954 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 6955
048addec 69562001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 6957
048addec
JD
6958 * makefile.w32-in (EMACSLOADPATH): Define.
6959 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
6960 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 6961
048addec 69622001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 6963
048addec
JD
6964 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
6965 parameter have a numeric value all the time.
f6fa0866 6966
048addec 6967 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 6968
048addec 69692001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 6970
048addec 6971 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 6972
048addec
JD
6973 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
6974 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 6975
048addec 69762001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 6977
048addec
JD
6978 * xdisp.c (move_it_vertically_backward): Change heuristic
6979 for the case that we didn't move far enough initially.
91c153e2 6980
048addec
JD
6981 * window.c (Frecenter): Simplify computation in the case of window
6982 system frames and ARG < 0; use window_box_height.
65b7d3e7 6983
048addec 69842001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 6985
048addec
JD
6986 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
6987 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 6988
048addec 69892001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 6990
048addec
JD
6991 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
6992 arg is negative.
be676094 6993
048addec 69942001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 6995
048addec
JD
6996 * m/hp800.h: Split the __hpux conditional into the parts
6997 that are right for GNU/Linux too and the parts that are not.
6998 Use the former if GNU_LINUX.
6999 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 7000
048addec 7001 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 7002
048addec 70032001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 7004
048addec
JD
7005 * macros.c, msdos.c, w16select.c: Change doc-string comments to
7006 `new style' [w/`doc:' keyword].
032a857d 7007
048addec 70082001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 7009
048addec
JD
7010 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
7011 before using.
b6270150 7012
048addec 70132001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 7014
048addec
JD
7015 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
7016 keyword].
98cbb9fa 7017
048addec 70182001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 7019
048addec 7020 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 7021
048addec 7022 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 7023
048addec 70242001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 7025
048addec
JD
7026 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
7027 Add comment to explain where the struct came from.
7028 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
7029 (add_menu_item): Process pop-up menus first to avoid memory leak.
7030 (add_menu_item, w32_menu_display_help): Use `help' field as
7031 Lisp_Object.
7032 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 7033
048addec 70342001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 7035
048addec 7036 * COPYING: Moved back.
fa336b91 7037
048addec
JD
7038 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
7039 Add parentheses around && within ||.
077907d4 7040
048addec 7041 * indent.c (compute_motion): Likewise.
aa2af83a 7042
048addec 7043 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 7044
048addec
JD
7045 * coding.c (setup_coding_system, shrink_encoding_region)
7046 (Fdecode_sjis_char): Likewise.
60a653f1 7047
048addec 70482001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 7049
048addec
JD
7050 * xdisp.c (display_mode_element): Don't read past end of string if
7051 it ends with '%'.
60a653f1 7052
048addec
JD
7053 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
7054 can hold.
60a653f1 7055
048addec
JD
7056 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
7057 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
7058 type changed to Lisp_Object.
7059 (syms_of_data): DEFVAR_LISP them.
60a653f1 7060
048addec 70612001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 7062
048addec
JD
7063 * callproc.c (init_callproc): Set Vdata_directory based on the source
7064 location whenever Emacs was run uninstalled.
60a653f1 7065
048addec 70662001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 7067
048addec
JD
7068 * config.in (HAVE_WORKING_VFORK): New #undefs.
7069 * process.c (create_process):
7070 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
7071 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
7072 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
7073 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
7074 * m/intel386.h (HAVE_VFORK): Likewise.
7075 * m/mips-siemens.h (HAVE_VFORK): Likewise.
7076 * m/mips.h (HAVE_VFORK): Likewise.
7077 * s/freebsd.h (vfork): Remove #define.
7078 * s/lynxos.h (HAVE_VFORK): Remove #undef.
7079 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 7080
048addec 70812001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 7082
048addec
JD
7083 * s/hpux10.h (random): Add undef.
7084 (HAVE_RANDOM): Define it just once.
60a653f1 7085
048addec 70862001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7087
048addec 7088 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 7089
048addec 70902001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 7091
048addec
JD
7092 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
7093 scroll bars of the frame before deleting the frame itself. If the
7094 frame has a widget, delete the frame with XtDestroyWidget, and do
7095 not call XDestroyWindow before that.
60a653f1 7096
048addec 70972001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 7098
048addec 7099 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 7100
048addec 7101 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 7102
048addec 71032001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 7104
048addec
JD
7105 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
7106 excessively large.
60a653f1 7107
048addec
JD
7108 * insdel.c (make_gap_larger): New function.
7109 (make_gap_smaller): New function.
7110 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
7111 Call make_gap_smaller if arg is negative.
60a653f1 7112
048addec 71132001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7114
048addec
JD
7115 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
7116 Pass a dummy argument when calling interrupt_signal.
7117 (parse_menu_item): Mark disabled items before checking for empty def.
7118 (read_char_minibuf_menu_prompt): Make safety more visible.
7119 (read_key_sequence): Add a `first_unbound' variable.
7120 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
7121 unbound prefix as soon as we can detect it.
60a653f1 7122
048addec
JD
7123 * doc.c (Fsnarf_documentation): Add prototype.
7124 (get_doc_string): Handle negative arguments.
7125 (Fdocumentation): Use AREF and ASIZE.
7126 Move the calls to get_doc_string to a single place.
7127 Don't confuse an interactive-spec for a docstring reference.
7128 (Fdocumentation_property): Take advantage of the fact that
7129 get_doc_string now ignores the sign of the docstring position.
60a653f1 7130
048addec 7131 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 7132
048addec 71332001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 7134
048addec 7135 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
60a653f1 7136
048addec 71372001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 7138
048addec
JD
7139 * xterm.c (x_draw_image_relief): Use predefined macro instead of
7140 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 7141
048addec 71422001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 7143
048addec
JD
7144 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
7145 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 7146
048addec 7147 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 7148
048addec 71492001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7150
048addec 7151 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 7152
048addec 71532001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 7154
048addec 7155 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 7156
048addec 71572001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 7158
048addec 7159 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 7160
048addec
JD
7161 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
7162 [!WM_MOUSELEAVE]: Define.
60a653f1 7163
048addec
JD
7164 * w32menu.c (current_popup_menu, get_menu_item_info):
7165 (set_menu_item_info): New vars.
7166 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
7167 (w32_menu_show): Set current_popup_menu.
7168 (add_menu_item): Allocate new strings for owner-drawn menu items
7169 and help strings.
7170 Use owner-draw for disabled menu items again.
7171 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
7172 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 7173
048addec
JD
7174 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
7175 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
7176 <WM_EXITMENULOOP>: Free menu strings.
7177 <WM_MOUSELEAVE>: Stop tracking mouse.
7178 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 7179
048addec
JD
7180 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
7181 and mouse face.
60a653f1 7182
048addec 71832001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 7184
048addec
JD
7185 The following changes add left-fringe and right-fringe
7186 frame parameters to adjust fringe widths, or remove one or
7187 both fringes.
60a653f1 7188
048addec
JD
7189 * frame.h (struct frame): Remove trunc_area_pixel_width and
7190 trunc_area_cols fields.
7191 (Qleft_fringe, Qright_fringe): Declare.
7192 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 7193
048addec
JD
7194 * frame.c (Qleft_fringe, Qright_fringe): New vars.
7195 (syms_of_frame): Initialize them.
60a653f1 7196
048addec
JD
7197 * window.c (coordinates_in_window): Handle separate left and right
7198 fringe widths.
60a653f1 7199
048addec
JD
7200 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
7201 and fringe_cols fields.
7202 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
7203 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
7204 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
7205 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
7206 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
7207 (x_compute_fringe_widths): Add prototype.
60a653f1 7208
048addec
JD
7209 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
7210 fill fringe evenly with small dashes.
7211 (x_draw_fringe_bitmap): Clear background if necessary. Align and
7212 clip the new ZV bitmap to avoid jitter between rows.
7213 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
7214 background. Don't draw fringe bitmaps if fringe width is zero.
7215 (x_compute_fringe_widths): New function.
7216 (x_new_font, x_set_window_size_1): Use it.
60a653f1 7217
048addec
JD
7218 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
7219 (x_set_frame_parameters): Process `font' parameter before other
7220 parameters as fringe widths depend on it.
7221 (x_set_fringe_width): New function.
7222 (x_figure_window_size): Use x_compute_fringe_widths.
7223 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
7224 parameters.
60a653f1 7225
048addec
JD
7226 * widget.c (set_frame_size): Use x_compute_fringe_widths.
7227 (EmacsFrameSetCharSize): Ditto.
60a653f1 7228
048addec
JD
7229 * w32term.h: Merged changes from xterm.h.
7230 * w32term.c: Merged changes from xterm.c.
7231 * w32fns.c: Merged changes from xfns.c.
60a653f1 7232
048addec 72332001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 7234
048addec 7235 * COPYING: Removed.
60a653f1 7236
048addec 72372001-11-29 Dave Love <fx@gnu.org>
60a653f1 7238
048addec
JD
7239 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
7240 extra extra slot.
7241 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 7242
048addec 72432001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 7244
048addec
JD
7245 * fileio.c (file-name-coding-system)
7246 (default-file-name-coding-system): Doc fix (links to referenced
7247 variables added).
60a653f1 7248
048addec 72492001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7250
048addec
JD
7251 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
7252 Add dummy uses of gcproN variables.
60a653f1 7253
048addec
JD
7254 * category.c (describe_category, describe_category_1)
7255 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
7256 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 7257
048addec 72582001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 7259
048addec 7260 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 7261
048addec
JD
7262 * Makefile.in (lispdir): New variable, referring to build dir.
7263 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 7264
048addec 72652001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 7266
048addec
JD
7267 * w32menu.c (w32_menu_display_help): Actually add the new argument
7268 OWNER.
60a653f1 7269
048addec 72702001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 7271
048addec
JD
7272 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
7273 menu items. From David Ponce <dponce@wanadoo.fr>.
7274 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
7275 conditionally.
7276 (w32_menu_display_help): New argument OWNER. Rewritten to store a
7277 help event in the owner frame's keyboard buffer.
60a653f1 7278
048addec
JD
7279 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
7280 (Fx_show_tip): Don't subtract last width from row width.
7281
7282 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
7283 (w32_read_socket): Use EQ to compare frames.
60a653f1 7284
048addec 72852001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 7286
048addec
JD
7287 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
7288 OVERLAPS_P.
60a653f1 7289
048addec 72902001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 7291
048addec
JD
7292 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
7293 `gcpro3' and `gcpro4'.
60a653f1 7294
048addec 7295 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 7296
048addec 72972001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7298
048addec 7299 * ccl.c: Use AREF and ASIZE.
60a653f1 7300
048addec 73012001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7302
048addec
JD
7303 * lisp.h (run_hook_list_with_args): Remove.
7304 (LIST_END_P): Fix call to wrong_type_argument.
7305 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 7306
048addec 73072001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7308
048addec
JD
7309 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
7310 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 7311
048addec
JD
7312 * eval.c: Use AREF and ASIZE.
7313 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 7314
048addec
JD
7315 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
7316 which match the end of the file-name.
7317 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
7318 is not a valid env var, but leave it as is instead.
60a653f1 7319
048addec
JD
7320 * keymap.c (access_keymap): Handle t bindings like nil bindings.
7321 Make nil bindings in char-tables transparent.
7322 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 7323
048addec 73242001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 7325
048addec
JD
7326 * textprop.c (set_text_properties_1): Allow START, END in either order.
7327 Do nothing if range is empty.
60a653f1 7328
048addec 7329 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 7330
048addec
JD
7331 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
7332 (clean): Not here.
60a653f1 7333
048addec 73342001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7335
048addec
JD
7336 * textprop.c (set_text_properties_1): Clearly mark that the
7337 interval should not be empty.
60a653f1 7338
048addec
JD
7339 * intervals.c (graft_intervals_into_buffer):
7340 Don't call set_text_properties_1 on an empty interval.
60a653f1 7341
048addec 73422001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 7343
048addec 7344 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 7345
048addec
JD
7346 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
7347 don't lose the data in it.
60a653f1 7348
048addec 73492001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 7350
048addec 7351 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 7352
048addec 7353 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
60a653f1 7354
048addec 7355 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
60a653f1 7356
048addec 73572001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7358
048addec 7359 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 7360
048addec 73612001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 7362
048addec
JD
7363 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
7364 Niemitalo <kon@iki.fi>.
60a653f1 7365
048addec 73662001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 7367
048addec 7368 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 7369
048addec
JD
7370 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
7371 (Fx_show_tip): Block input during frame creation.
7372 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 7373
048addec 73742001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 7375
048addec
JD
7376 * lread.c (Fload): Detect recursive load error for more than 3
7377 nestings of the same file.
7378 (Vrecursive_load_depth_limit): Variable deleted.
7379 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 7380
048addec 73812001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 7382
048addec
JD
7383 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
7384 mouse position if either left or top is not specified.
60a653f1 7385
048addec
JD
7386 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
7387 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
7388 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
7389 (my_create_tip_window): Assign tip_window.
7390 (x_create_tip_frame): Use same defaults as X.
7391 (compute_tip_xy): Remove unused variable. Use full screen width.
7392 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 7393
048addec
JD
7394 * w32term.c (x_after_update_window_line): Doc fix.
7395 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
7396 frames.
7397 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 7398
048addec
JD
7399 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
7400 for all Windowed systems.
60a653f1 7401
048addec 74022001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 7403
048addec
JD
7404 * msdos.c (IT_clear_screen): If the frame's faces are not yet
7405 realized, use the initial screen colors to clear the screen.
60a653f1 7406
048addec 74072001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 7408
048addec
JD
7409 * textprop.c (Fset_text_properties): Remove unused variables
7410 `unchanged', `prev_changed', `s' and `len'.
60a653f1 7411
048addec
JD
7412 * search.c (Freplace_match): Remove unused variable `inslen'.
7413
7414 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
7415
74162001-11-22 Jason Rumney <jasonr@gnu.org>
7417
7418 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
7419 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
7420 (my_create_tip_window): New function.
7421 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
7422 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
7423
74242001-11-20 Jason Rumney <jasonr@gnu.org>
7425
7426 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
7427 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
7428
7429 * w32fns.c (Vw32_system_coding_system): Remove.
7430 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
7431
74322001-11-19 Stefan Monnier <monnier@cs.yale.edu>
7433
7434 * fileio.c (Fwrite_region): Move choose_write_coding_system to
7435 after build_annotations.
7436
7437 * syntax.c (describe_syntax): Add dummy arg.
7438 (describe_syntax_1): Update call to describe_vector.
7439
7440 * category.c (describe_category): Add dummy arg.
7441 (describe_category_1): Update call to describe_vector.
7442
7443 * keymap.c (Fdescribe_vector): Add `describer' parameter.
7444 (describe_command, describe_translation): Add dummy second param.
7445 (describe_map): Call elt_describer with two arguments.
7446 (describe_vector_princ): Add `fun' parameter.
7447 Call it instead of the hardcoded `princ'.
7448 (describe_vector): Add arg `args'.
7449 Pass it as a new second argument to elt_describer.
60a653f1 7450
048addec 7451 * keymap.h (describe_vector): Update prototype.
60a653f1 7452
048addec
JD
7453 * frame.c: Don't include keymap.h any more.
7454 (keys_of_frame): Remove.
60a653f1 7455
048addec 7456 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 7457
048addec 7458 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 7459
048addec 74602001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 7461
048addec
JD
7462 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
7463 if defined, 0 otherwise.
7464 (MAP_FAILED): Define if not defined and use it to test mmap failure.
7465 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 7466
048addec 74672001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 7468
048addec 7469 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 7470
048addec 74712001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 7472
048addec
JD
7473 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
7474 (x_draw_bar_cursor): If the background color of the glyph under
7475 the cursor equals the frame's cursor color, use the glyph's
7476 foreground color for drawing the bar cursor.
7477 (x_after_update_window_line): Clear internal border in different
7478 circumstances.
7479 (w32_set_vertical_scroll_bar): Check for width and height > 0.
7480 (w32_draw_relief_rect): Correct relief by 1 pixel.
7481 (x_set_glyph_string_background_width):
7482 Set extends_to_end_of_line_p if the row's fill_line_p is set and
7483 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
7484 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
7485 if cursor_in_non_selected_windows is false.
7486 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
7487 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
7488 Notice if cursor gets overwritten.
7489 (notice_overwritten_cursor): Renamed from
7490 note_overwritten_text_cursor. Rewritten to take glyph widths
7491 into account, and to take X positions as parameters.
7492 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
7493 around call to x_draw_glyphs.
7494 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
7495 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
7496 color to use for image glyph reliefs.
7497 (x_draw_image_relief): Accept zero tool_bar_button_relief.
7498 (glyph_rect): Remove unused variable `area'.
60a653f1 7499
048addec
JD
7500 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
7501 some items.
7502 (x_set_internal_border_width): Set frame garbaged when window
7503 doesn't exist yet.
7504 (Fx_create_frame): Accept zero tool_bar_button_relief.
7505 (x_clear_image_1, four_corners_best, image_background)
7506 (image_background_transparent): New functions.
7507 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
7508 (gs_format): Add `:background' entry.
7509 (lookup_image): Set IMG's background color if specified.
7510 (pbm_load, xbm_load_image, png_load): Set IMG's background field
7511 when appropriate.
7512 (x_clear_image_1): Reset `background_valid' and
7513 `background_transparent_valid' fields.
7514 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
7515 calculating it here. Set IMG's background_transparent field.
7516 (enum xpm_keyword_index): Add XPM_BACKGROUND.
7517 (enum png_keyword_index): Add PNG_BACKGROUND.
7518 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
7519 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
7520 (enum gif_keyword_index): Add GIF_BACKGROUND.
7521 (enum gs_keyword_index): Add GS_BACKGROUND.
7522 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
7523 Pre-calculate image background color where necessary.
7524 (x_create_x_image_and_pixmap, xbm_load, gs_load):
7525 Use display info's n_cbits entry for screen depth.
7526 (Fx_show_tip): Remove unused variables `buffer', `top',
7527 `left', `max_width' and `max_height'.
60a653f1 7528
048addec 7529 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 7530
048addec 75312001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 7532
048addec 7533 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 7534
048addec 75352001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 7536
048addec 7537 * frame.c (Fframe_live_p): Doc fix.
60a653f1 7538
048addec 75392001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 7540
048addec
JD
7541 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
7542 (message_dolog_marker3): New static variables hold three markers.
7543 (syms_of_xdisp): Initialize and staticpro them.
7544 (message_dolog): Use message_dolog_marker1..3 instead of
7545 allocating markers each time. Unchain them when done.
60a653f1 7546
048addec 75472001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 7548
048addec 7549 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 7550
048addec 75512001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 7552
048addec 7553 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 7554
048addec 75552001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 7556
048addec 7557 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 7558
048addec 75592001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 7560
048addec 7561 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 7562
048addec 75632001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 7564
048addec
JD
7565 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
7566 with invalid position.
60a653f1 7567
048addec 75682001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 7569
048addec 7570 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 7571
048addec
JD
7572 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
7573 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
7574 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 7575
048addec 7576 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 7577
048addec 75782001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7579
048addec
JD
7580 * fileio.c (build_annotations): Split off the tail.
7581 (build_annotations_2): New fun. Extracted from build_annotations.
7582 (Fwrite_region): Split the call to build_annotations into two
7583 calls to build_annotations and build_annotations_2.
077907d4 7584
048addec 75852001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 7586
048addec
JD
7587 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
7588 clear_waiting_for_input with argument.
1756e2fb 7589
048addec 7590 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 7591
048addec 7592 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 7593
048addec 7594 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 7595
048addec 7596 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 7597
048addec 75982001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 7599
048addec
JD
7600 * fileio.c (choose_write_coding_system): New fun, extracted
7601 from Fwrite_region.
7602 (Fwrite_region): Use it.
fa336b91 7603
048addec
JD
7604 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
7605 (funcall_lambda, run_hook_with_args): Make static and add prototype.
7606 (ml_apply, find_handler_clause): Add prototype.
fa336b91 7607
048addec 76082001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 7609
048addec 7610 * config.in: Add #undef HAVE_COFF_H.
fa336b91 7611
048addec
JD
7612 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
7613 Required for ISC 4.1.
fa336b91 7614
048addec 76152001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 7616
048addec
JD
7617 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
7618 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 7619
048addec 76202001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 7621
048addec
JD
7622 The following changes are made to clean up the various internal
7623 references to the fringes to actually use the term `fringe' for
7624 them. Previously, they were called `flags areas', `bitmap areas',
7625 `left/right side of windows', or implicitly as `flags' or
7626 `bitmaps':
fa336b91 7627
048addec
JD
7628 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
7629 Comments fixed. Use renamed symbols.
06e8f738 7630
048addec 7631 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 7632
048addec
JD
7633 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
7634 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
7635 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 7636
048addec 7637 * msdos.c: Comment fix.
9ce647f4 7638
048addec 7639 * w32fns.c: Use renamed symbols.
9b784ab8 7640
048addec
JD
7641 * w32term.c: Comment fixes. Use renamed symbols.
7642 (fringe_bitmap_type): Renamed from bitmap_type.
7643 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
7644 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
7645 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 7646
048addec
JD
7647 * w32term.h: Comment fixes. Use renamed symbols.
7648 (fringes_extra): Renamed from flags_areas_extra.
7649 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
7650 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
7651 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
7652 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
7653 (FRAME_X_LEFT_FRINGE_WIDTH):
7654 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
7655 (FRAME_X_RIGHT_FRINGE_WIDTH):
7656 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 7657
048addec 7658 * widget.c: Use renamed symbols.
9f7e52b4 7659
048addec
JD
7660 * window.c: Comment fixes. Use renamed symbols.
7661 (coordinates-in-window-p): Doc fix.
fa336b91 7662
048addec 7663 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 7664
048addec 7665 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 7666
048addec 7667 * xfns.c: Use renamed symbols.
89512fcd 7668
048addec
JD
7669 * xterm.c: Comment fixes. Use renamed symbols.
7670 (fringe_bitmap_type): Renamed from bitmap_type.
7671 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
7672 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
7673 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 7674
048addec
JD
7675 * xterm.h: Comment fixes. Use renamed symbols.
7676 (fringes_extra): Renamed from flags_areas_extra.
7677 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
7678 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
7679 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
7680 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
7681 (FRAME_X_LEFT_FRINGE_WIDTH):
7682 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
7683 (FRAME_X_RIGHT_FRINGE_WIDTH):
7684 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
7685
76862001-11-15 Jason Rumney <jasonr@gnu.org>
7687
7688 * w32menu.c (add-menu-item): Make help_echo and radio buttons
7689 work for most menu items. From David Ponce
7690 <david.ponce@wanadoo.fr>.
7691
76922001-11-15 Gerd Moellmann <gerd@gnu.org>
7693
7694 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
7695 Some x_set_* function expect to be called even if old and new
7696 value are equal.
7697
7698 * xdisp.c (build_desired_tool_bar_string): Accept zero
7699 tool_bar_button_relief.
7700
7701 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
7702
7703 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
7704
7705 * xterm.c (x_draw_bar_cursor): If the background color of the
7706 glyph under the cursor equals the frame's cursor color, use
7707 the glyph's foreground color for drawing the bar cursor.
7708
7709 * dispnew.c (direct_output_forward_char): Fix character/byte
7710 position comparison.
7d18891d 7711
048addec 77122001-11-15 Miles Bader <miles@gnu.org>
d2936d21 7713
048addec
JD
7714 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
7715 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
7716 Update arguments to find_field.
7717 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
7718 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
7719 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
7720 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 7721
048addec 77222001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 7723
048addec 7724 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 7725
048addec
JD
7726 * dispextern.h (image_background, image_background_transparent):
7727 Conditionalize on HAVE_X_WINDOWS.
7d18891d 7728
048addec 77292001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 7730
048addec 7731 * print.c (Fprin1_to_string): Doc fix.
7d18891d 7732
048addec 7733 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 7734
048addec 7735 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 7736
048addec 7737 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 7738
048addec 7739 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 7740
048addec 7741 * eval.c (syms_of_eval): Doc fix.
7d18891d 7742
048addec 7743 * coding.c (syms_of_coding): Doc fix.
7d18891d 7744
048addec 7745 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 7746
048addec 7747 * dispnew.c (syms_of_display): Doc fix.
9474c847 7748
048addec 7749 * category.c (Fget_unused_category): Doc fix.
9474c847 7750
048addec 7751 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 7752
048addec 77532001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 7754
048addec 7755 * print.c (prin1, print): Doc fix.
e3059a5d 7756
048addec 77572001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 7758
048addec
JD
7759 * fontset.h: Remove declarations of variables
7760 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 7761
048addec
JD
7762 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
7763 `Vclip_large_size_font'.
eae936e2 7764
048addec 77652001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 7766
048addec 7767 * w32fns.c: Doc fix.
ddb67bdc 7768
048addec 77692001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 7770
048addec 7771 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 7772
048addec 7773 * fns.c: Doc fix.
6e1b91d7 7774
048addec 7775 * emacs.c: Doc fix.
1c1d3d69 7776
048addec 7777 * coding.c: Doc fix.
1c1d3d69 7778
048addec
JD
7779 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
7780 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
7781 `new style' [w/`doc:' keyword].
b6f4c7ba 7782
048addec 77832001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 7784
048addec
JD
7785 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
7786 LeaveNotify events. Only FocusIn and FocusOut do that now.
7787 (x_display_and_set_cursor): Do display hollow cursors in active
7788 minibuffer windows when they are not selected.
b6f4c7ba 7789
048addec 77902001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 7791
048addec
JD
7792 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
7793 * w32term.c: Change doc-string comments to `new style'.
7794 [w/`doc:' keyword]. Doc fixes.
a89f435d 7795
048addec
JD
7796 * w32fns.c: Don't define max.
7797 (Fx_open_connection): Only execute once.
a4cd0cd7 7798
048addec 77992001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 7800
048addec
JD
7801 * ccl.c: Change macros to use do-while block instead of if-else.
7802 Use braces to follow GNU Coding Standards.
eafb659a 7803
048addec 78042001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 7805
048addec 7806 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 7807
048addec 7808 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 7809
048addec
JD
7810 * insdel.c (replace_range): Use adjust_markers_for_replace
7811 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 7812
048addec 7813 * intervals.h: Declare set_text_properties and set_text_properties_1.
a4cd0cd7 7814
048addec
JD
7815 * textprop.c (set_text_properties_1): New subroutine
7816 broken out of set_text_properties.
7817 (set_text_properties): Use set_text_properties_1.
91823618 7818
048addec
JD
7819 * intervals.c (graft_intervals_into_buffer):
7820 Use set_text_properties_1 to clear out properties.
91823618 7821
048addec
JD
7822 * search.c (Freplace_match): Use replace_range to insert
7823 and delete. Don't request property inheritance from
7824 surrounding text.
86928dfb 7825
048addec 78262001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 7827
048addec
JD
7828 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
7829 vertical fonts. Allow them if face name is explicitly specified.
7830 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 7831
048addec 78322001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 7833
048addec
JD
7834 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
7835 instead of malloc/free.
a78e0303 7836
048addec 78372001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 7838
048addec
JD
7839 * xfaces.c (merge_face_vectors): Use braces to follow GNU
7840 Coding Standards.
7841 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 7842
048addec 7843 * buffer.c (Fbury_buffer): Likewise.
0c99b139 7844
048addec 7845 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 7846
048addec
JD
7847 * coding.c (encode_coding): Use precomputed value of `src'.
7848 (encode_coding): Remove unused variable `src_end'.
7849 (code_convert_region): Remove unused variables `count'.
830ddd77 7850
048addec 78512001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 7852
048addec
JD
7853 * w32term.c (x_display_and_set_cursor): Do not move system caret
7854 if cursor_glyph is NULL.
55c6d645 7855
048addec 78562001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 7857
048addec 7858 * keymap.c (access_keymap): Fix compilation error.
5de38842 7859
048addec 78602001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 7861
048addec 7862 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 7863
048addec 78642001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 7865
048addec
JD
7866 * intervals.c (graft_intervals_into_buffer):
7867 Remove #ifdef'd-out code.
7868 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 7869
048addec
JD
7870 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
7871 code (eval-current-buffer).
7872 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 7873
048addec 78742001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 7875
048addec 7876 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 7877
048addec 78782001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 7879
048addec 7880 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 7881
048addec
JD
7882 * keyboard.c (make_lispy_event): Check integerness and fix
7883 Lisp_Object/int mixup.
17893c65 7884
048addec 78852001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 7886
048addec 7887 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 7888
048addec
JD
7889 * fontset.c (fontset_font_pattern): Remove unused variable
7890 `family_registry'.
d5360cc7 7891
048addec 7892 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 7893
048addec 78942001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 7895
048addec 7896 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 7897
048addec
JD
7898 * buffer.c (Fkill_buffer): Don't delete auto save file
7899 if buffer is modified.
d9d54213 7900
048addec 79012001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 7902
048addec
JD
7903 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
7904 CHECK_NUMBER_CDR.
b116830b 7905
048addec 79062001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 7907
048addec 7908 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 7909
048addec 79102001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 7911
048addec 7912 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 7913
048addec 79142001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 7915
048addec 7916 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 7917
048addec 79182001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 7919
048addec
JD
7920 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
7921 the program image directly.
982f6c7e 7922
048addec 79232001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 7924
048addec 7925 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 7926
048addec 79272001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 7928
048addec
JD
7929 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
7930 and CHECK_BUFFER.
d31053f9 7931
048addec
JD
7932 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
7933 (record_char): Likewise.
d31053f9 7934
048addec
JD
7935 * keyboard.c (make_lispy_event): Don't insist a drag event must
7936 move to a different buffer position. Instead, check for moving at
7937 least double_click_fuzz.
982f6c7e 7938
048addec 7939 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 7940
048addec 7941 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 7942
048addec
JD
7943 * indent.c (current_column_1, Fmove_to_column): Separate the code
7944 for display-table glyphs from the code for buffer text, to fix
7945 bugs in the former.
830047fd 7946
048addec 79472001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 7948
048addec
JD
7949 * buffer.c (Fbuffer_local_value): New function.
7950 (syms_of_buffer): Defsubr it.
2df5238c 7951
048addec
JD
7952 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
7953 value of `cursor-in-non-selected-windows'.
4e397688 7954
048addec
JD
7955 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
7956 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
7957 (syms_of_xdisp): Initialize it.
48b0f3ae 7958
048addec 79592001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 7960
048addec 7961 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 7962
048addec
JD
7963 * coding.c: Change doc-string comments to `new style' [w/`doc:'
7964 keyword].
3ecaf7e5 7965
048addec
JD
7966 * eval.c (top_level_value, top_level_set): Remove commented and
7967 #ifdef'd-out code.
7968 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 7969
048addec 79702001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 7971
048addec 7972 * xfns.c: Include unistd.h, if it exists.
8db2e33b 7973
048addec 7974 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 7975
048addec 7976 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 7977
048addec 79782001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 7979
048addec
JD
7980 * lisp.h (CHECK_STRING_CAR): New macro.
7981 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
7982 treating XCAR and XCDR as lvalues.
7983 (openp): Use CHECK_STRING_CAR.
7984 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 7985
048addec 79862001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 7987
048addec
JD
7988 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
7989 (SIGMASKTYPE): Define.
1b1acc13 7990
048addec 7991 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 7992
048addec 79932001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 7994
048addec
JD
7995 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
7996 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
7997 Fix typos in comments.
6cb16f95 7998
048addec
JD
7999 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
8000 and #ifdef'd-out code.
8001 Fix and reindent comments.
6cb16f95 8002
048addec 8003 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 8004
048addec
JD
8005 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
8006 argument `i' in macros.
6cb16f95 8007
048addec
JD
8008 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
8009 `i' in macros.
7e9d3c2f 8010
048addec
JD
8011 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
8012 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
8013 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
8014 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
8015 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
8016 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
8017 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
8018 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
8019 in macros.
7e9d3c2f 8020
048addec
JD
8021 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
8022 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
8023 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
8024 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
8025 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
8026 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
8027 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
8028 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
8029 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
8030 (remove unused second argument).
7e9d3c2f 8031
048addec 80322001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 8033
048addec
JD
8034 * syntax.c (describe_syntax): New wrapper.
8035 (Finternal_describe_syntax_value): Rename from describe_syntax.
8036 Don't insert space at front and \n at the end.
8037 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 8038
048addec
JD
8039 * regex.c (re_wctype): Try to fix some warnings.
8040 (regcomp, regexec): Don't forget the __restrict.
9ba48103 8041
048addec 80422001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 8043
048addec 8044 * textprop.c (Fget_char_property): Doc fix.
9ba48103 8045
048addec 80462001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 8047
048addec 8048 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 8049
048addec 8050 * data.c (Fsetq_default): Ditto.
c22e59e1 8051
048addec 8052 * callint.c (Finteractive): Ditto.
9271ed2c 8053
048addec 80542001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 8055
048addec
JD
8056 * macros.c: Don't include keymap.h any more.
8057
80582001-11-01 Richard M. Stallman <rms@gnu.org>
8059
8060 * data.c (Fmake_local_variable): Doc fix.
8061
8062 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
8063 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 8064
048addec 8065 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
8066 bindings along with or instead of the buffer local map.
8067 Make the overriding maps override what they should.
8068
f00691a3 80692001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
8070
8071 * window.c (grow_mini_window): Fix typo in comment.
8072
27188d11
GM
80732001-11-01 Gerd Moellmann <gerd@gnu.org>
8074
7b49b9d2
GM
8075 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
8076 (XTset_vertical_scroll_bar): Likewise.
8077
43f7c3ea
GM
8078 * xfns.c (x_build_heuristic_mask): Use four_corners_best
8079 instead of IMAGE_BACKGROUND.
c22e59e1 8080
b350c2e5
GM
8081 * xfns.c (four_corners_best): Reindent.
8082
c22e59e1 8083 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
8084 Handle :box so that it is possible to specify sexprs.
8085
bf00d461
EZ
80862001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
8087
8088 * s/hpux11.h: New file.
8089
f00691a3 80902001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 8091
2b209b97
PJ
8092 * emacs.c (USAGE1): Show command line option --no-window-system
8093 instead of --no-windows in usage.
8094 (standard_args): Rename --no-windows to --no-window-system.
8095 (bug_reporting_address): Follow Emacs coding conventions.
8096
9dbc9081
PJ
8097 * eval.c (Fcommandp): Doc fix.
8098 Change doc-string comments to `new style' [w/`doc:' keyword].
8099
4e10df59
PJ
8100 * frame.c (Fframe_live_p): Doc fix.
8101
8102 * buffer.c (selective-display-ellipses): Doc fix.
8103
dd387b25
GM
81042001-10-31 Gerd Moellmann <gerd@gnu.org>
8105
fe957e65
GM
8106 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
8107
dd387b25
GM
8108 * xfaces.c (realize_x_face): If C is not a single-byte character,
8109 set the face's colors_copied_bitwise_p instead of the defaulted_p
8110 members which have a different meaning.
8111 (free_face_colors): Do nothing for a face whose colors have been
8112 copied bitwise.
8113
c22e59e1 8114 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 8115
f00691a3 81162001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 8117
687784e8
PJ
8118 * marker.c, mocklisp.c: Change doc-string comments to `new style'
8119 [w/`doc:' keyword].
2e1280f8 8120
b9d9a9b9
GM
81212001-10-31 Gerd Moellmann <gerd@gnu.org>
8122
8123 * fns.c (require_unwind): Return Lisp_Object.
8124
f00691a3 81252001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 8126
fa1361cb
PJ
8127 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
8128 (last-input-char): Revert doc-string to be the same as the
8129 doc-string of `last-input-event'.
8130
6c465a15 8131 * xdisp.c: Fix typos in comments.
48400103 8132
eafa3196
GM
81332001-10-31 Gerd Moellmann <gerd@gnu.org>
8134
8135 * window.c (grow_mini_window): Handle case that the root
8136 window is already smaller than the nominal mininum height.
8137
747d3f2a
SM
81382001-10-30 Stefan Monnier <monnier@cs.yale.edu>
8139
bf9bb76f
SM
8140 * emacs.c (main): Don't call keys_of_macros any more.
8141
8142 * lisp.h (keys_of_macros): Remove.
8143
8144 * macros.c (keys_of_macros): Remove.
8145
747d3f2a
SM
8146 * xfaces.c (Fface_attribute_relative_p): Declare args.
8147
5e905a57
JR
81482001-10-30 Jason Rumney <jasonr@gnu.org>
8149
8150 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
8151 (enum_font_cb2): Ignore fonts with vertical orientation.
8152
3a426197
RS
81532001-10-30 Richard M. Stallman <rms@gnu.org>
8154
8155 * keyboard.c (Finput_pending_p): Doc fix.
8156
a742d646
GM
81572001-10-30 Gerd Moellmann <gerd@gnu.org>
8158
259cf6bc
GM
8159 * xterm.c (x_after_update_window_line): Don't run the code
8160 clearing in borders for rows whose visible height is 0.
8161
3f99f948
GM
8162 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
8163 resized_p flag is set. If not set, use the much less flickering
8164 method previously used.
8165
8166 * dispnew.c (change_frame_size_1): Set frame's resized_p.
8167
8168 * frame.h (struct frame) <resized_p>: New member.
8169
b4a3be43
GM
8170 * lread.c (to_multibyte): Ensure read_buffer is at least twice
8171 as large as the number of bytes to convert.
747d3f2a 8172
a742d646
GM
8173 * lread.c (to_multibyte): New function.
8174 (read1): Use it.
8175
cacbb9e9
EZ
81762001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
8177
8178 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
8179
99cb6b2f
GM
81802001-10-30 Gerd Moellmann <gerd@gnu.org>
8181
327f42ee 8182 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
8183 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
8184 if the row's fill_line_p is set and drawing the last glyph with
8185 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 8186
99cb6b2f
GM
8187 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
8188
8e8223e2
SM
81892001-10-29 Stefan Monnier <monnier@cs.yale.edu>
8190
8191 * xmenu.c: Include coding.h and charset.h.
8192 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
8193 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
8194 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
8195 Explicitly set wv->help. Use `TRUE' rather than `True'.
8196 (menu_help_callback): Use empty_string.
8197
8198 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
8199 (Fx_popup_dialog): Explicitly init f.
8200 (w32_menu_display_help): Use empty_string.
8201
4d083a8f
RS
82022001-10-29 Richard M. Stallman <rms@gnu.org>
8203
b2304472
RS
8204 * fns.c (Frequire): Detect recursive try to require the same
8205 feature 3 or more levels deep, and get error.
8206 (require_unwind): New subroutine.
8207 (require_nesting_list): New variable.
8208 (syms_of_fns): Init and staticpro it.
8209
4d083a8f
RS
8210 * print.c (print_object): Clarify indication of insertion type.
8211
2fe41216
EZ
82122001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
8213
90480000
EZ
8214 * coding.c (syms_of_coding): Document that locale-coding-system is
8215 used for decoding input on X.
8216
2fe41216
EZ
8217 * window.c (Fscroll_left, Fscroll_right): Doc fix.
8218
f00691a3 82192001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
8220
8221 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
8222 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
8223
60ebcfe8
GM
82242001-10-29 Gerd Moellmann <gerd@gnu.org>
8225
9a7bdceb
GM
8226 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
8227 use NO_CURSOR if cursor_in_non_selected_windows is false.
8228
3f08fcd2
GM
8229 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
8230 the slant attribute if FRAME is t.
8231
0ccfdad2
GM
8232 * xfns.c (x_set_internal_border_width): Set frame garbaged
8233 when X window doesn't exist yet.
8234
ef253080
GM
8235 * xterm.c (x_after_update_window_line): Clear internal border
8236 in different circumstances.
b116830b 8237
60ebcfe8
GM
8238 * xterm.c (XTread_socket) <KeyPress>: Don't use
8239 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
8240 <handa@etl.go.jp>.
8241
73d25f9c
EZ
82422001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
8243
8244 * m/ibms390.h: New file. From Adam Thornton
8245 <athornton@sinenomine.net>.
8246
cac1daf0
GM
82472001-10-28 Gerd Moellmann <gerd@gnu.org>
8248
053b3256 8249 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 8250
cac1daf0
GM
8251 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
8252 a loop counter.
8253
f00691a3 82542001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 8255
186486eb
PJ
8256 * emacs.c: Use argv[0] instead of emacs when -t was specified.
8257
4707d2d0
PJ
8258 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
8259 keyword].
8260 Fix typos in comments.
b116830b 8261
d883731c
PJ
8262 * emacs.c (bug_reporting_address): New function.
8263 Use it when displaying usage message.
8264
04012254
PJ
8265 * minibuf.c (read_minibuf): Remove unused external declaration of
8266 variable `Qread_only'.
8267
13b1a09c
PJ
8268 * keymap.c (access_keymap): Remove unused variable `charset'.
8269
5bbf4378
MB
82702001-10-28 Miles Bader <miles@gnu.org>
8271
8272 * xfaces.c (merge_face_heights): Handle TO being relative as well.
8273 Remove #ifdef'd-out code.
8274 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
8275 (syms_of_xfaces): Initialize them.
8276
1ce1e4ee
JR
82772001-10-27 Jason Rumney <jasonr@gnu.org>
8278
8279 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
8280 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
8281 position using the system caret.
8282
8283 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
8284 (w32_system_caret_height, w32_system_caret_x)
8285 (w32_system_caret_y): New variables for tracking system caret.
8286 (w32_initialize): Initialize them.
c2d53558 8287 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 8288
c2d53558
SM
8289 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
8290 New messages types.
1ce1e4ee
JR
8291
8292 * w32term.c (note_mouse_highlight): Clear old help_echo.
8293
f00691a3 82942001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 8295
bb4600a4
PJ
8296 * xterm.c: Fix typo in a comment.
8297
7db35a48
PJ
8298 * emacs.c: Fix typos in comments.
8299 Remove unnecessary spaces.
8300 Change doc-string comments to `new style' [w/`doc:' keyword].
8301 (USAGE2): Fix typos in usage string.
8302
a7248e4f
PJ
8303 * xterm.c: Fix typo in a comment.
8304
4e30ce42
PJ
8305 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
8306 emacs.c.
8307
62725a92
GM
83082001-10-27 Gerd Moellmann <gerd@gnu.org>
8309
798dbe1f 8310 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 8311 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
8312 farther backward when target_y was not reached.
8313
62725a92
GM
8314 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
8315 Display errno only if non-zero.
8316 (sound_warning): New function.
8317 (vox_configure): Don't treat failing to set sample rate as error.
8318 (various places): Improve error messages.
8319
d4e34d24
EZ
83202001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
8321
944e6f60
EZ
8322 * fileio.c (Faccess_file): Run the argument filename through
8323 Fexpand_file_name, before using it.
8324
d4e34d24
EZ
8325 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
8326 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
8327
38d2af0c
GM
83282001-10-26 Gerd Moellmann <gerd@gnu.org>
8329
da80a8d5
GM
8330 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
8331
38d2af0c
GM
8332 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
8333 Fix clearing in the case of scroll bars on the right.
c2d53558 8334
45de4a6f 83352001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
8336
8337 * w32gui.h (XImage): Add a dummy typedef.
8338
fbd5ceb2
GM
83392001-10-26 Gerd Moellmann <gerd@gnu.org>
8340
c2d53558 8341 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 8342
b23236fb
EZ
83432001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
8344
8345 * frame.c (Fframe_parameter): Fix last change.
8346
5d991fc4
EZ
8347 * fileio.c: Revert last change (which removed old commented-out
8348 version of expand-file-name). Add a comment that explains why
8349 this old version should not be removed.
8350
879eadc3
GM
83512001-10-25 Gerd Moellmann <gerd@gnu.org>
8352
75700ff2
GM
8353 * frame.c (Fframe_parameter): Fix a bug whereby some
8354 ``artificial'' frame parameters, like `minibuffer' were not
8355 obtained by calling Fframe_parameters.
8356
dfe92a6a
GM
8357 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
8358 cursor differently.
8359
879eadc3
GM
8360 * xdisp.c (move_it_vertically_backward): Compute line height
8361 differently. Add heuristic to try to be more compatible to 20.x.
8362
e1010ebe
SM
83632001-10-25 Stefan Monnier <monnier@cs.yale.edu>
8364
d73a471b
SM
8365 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
8366
d6da5a06
GM
8367 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
8368 boolean.
e1010ebe 8369
f66bd220
MB
83702001-10-25 Miles Bader <miles@gnu.org>
8371
8372 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
8373 BG is a pointer to a structure, not a structure.
8374 (gif_format, png_format): Add missing commas.
8375
d436d538
RS
83762001-10-24 Richard M. Stallman <rms@gnu.org>
8377
8378 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 8379 (syms_of_xfaces): Defsubr it.
d436d538 8380
f00691a3 83812001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
8382
8383 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
8384 variable `area'.
8385
f00691a3 83862001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 8387
c2d53558 8388 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 8389
e2a57b34
MB
83902001-10-25 Miles Bader <miles@gnu.org>
8391
8392 * dispextern.h (struct image): Add `background',
8393 `background_valid', and `background_transparent' fields.
8394 (image_background, image_background_transparent): New declarations.
8395 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
8396 * xfns.c (image_background, image_background_transparent)
8397 (four_corners_best): New functions.
c2d53558 8398 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
8399 (gs_format): Add `:background' entry.
8400 (lookup_image): Set IMG's background color if specified.
8401 (pbm_load, xbm_load_image, png_load): Set IMG's background field
8402 when appropriate.
8403 (x_clear_image_1): Reset `background_valid' and
8404 `background_transparent_valid' fields.
8405 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
8406 calculating it here. Set IMG's background_transparent field.
8407 (enum xpm_keyword_index): Add XPM_BACKGROUND.
8408 (enum png_keyword_index): Add PNG_BACKGROUND.
8409 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
8410 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
8411 (enum gif_keyword_index): Add GIF_BACKGROUND.
8412 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 8413 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
8414 Pre-calculate image background color where necessary.
8415 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
8416 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
8417 color to use for image glyph reliefs.
8418
b547b6e8
GM
84192001-10-24 Gerd Moellmann <gerd@gnu.org>
8420
d9e3b8c6
GM
8421 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
8422 in full-width rows.
c2d53558 8423
b547b6e8
GM
8424 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
8425 Fix clearing of area not covered by scroll bar.
8426
f00691a3 84272001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
8428
8429 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
8430 and `real_start'.
c2d53558 8431 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
8432 (glyph_rect): Remove unused variable `area'.
8433
76cb5e06
GM
84342001-10-24 Gerd Moellmann <gerd@gnu.org>
8435
bdbdebff 8436 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
8437
8438 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
8439 (row_containing_pos): Take additional argument DY.
8440 Treat rows ending in middle of char differently.
62e33982
GM
8441 (display_line): Handle tabs on window systems differently.
8442
8443 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
8444 with additional argument.
8445
8446 * dispextern.h (row_containing_pos): Adjust prototype.
8447
76cb5e06
GM
8448 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
8449 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
8450 (try_window_id, try_window_reusing_current_matrix)
8451 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 8452 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 8453
f00691a3 84542001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 8455
c9e60620
PJ
8456 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
8457 gnuemacs).
8458 (HAVE_BOXES): Fix typo in comment.
8459 (push_menu_pane): Fix typo in comment.
8460
3b552d56
PJ
8461 * xdisp.c: (display_prop_string_p): Remove unused local declaration
8462 of `Qwhen'.
8463 (single_display_prop_string_p): Remove unused local declarations
8464 of `Qwhen' and `Qmargin'.
8465 (string_buffer_position): Remove unused variable `around'.
8466 (store_frame_title): Remove unused variable `width'.
8467
15c565ac
PJ
8468 * window.c: Don't define max.
8469 (coordinates_in_window): Remove unused variable `uy'.
8470
a8818eb9
PJ
8471 * widget.c: Don't define max.
8472
996fee11
PJ
8473 * process.c: Don't define max.
8474 (create_process): Remove unused variable `buffer'.
8475
496e1a5b
GM
84762001-10-23 Gerd Moellmann <gerd@gnu.org>
8477
c2d53558 8478 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 8479
5905ae8b
EZ
84802001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
8481
8482 * xfaces.c (Finternal_set_lisp_face_attribute)
8483 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
8484 frame is on a windowed display.
8485
24db49fb
GM
84862001-10-23 Gerd Moellmann <gerd@gnu.org>
8487
c2d53558
SM
8488 * dispnew.c (sync_window_with_frame_matrix_rows):
8489 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
8490 of marginal areas.
8491
c2d53558 8492 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 8493
f0487f05
EZ
84942001-10-23 Andreas Schwab <schwab@suse.de>
8495
8496 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
8497 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
8498
f0a48a01
GM
84992001-10-23 Gerd Moellmann <gerd@gnu.org>
8500
c2d53558 8501 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
8502 REAL_END. Notice if cursor gets overwritten.
8503 (notice_overwritten_cursor): Take X positions as parameters.
8504 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
8505 around call to x_draw_glyphs.
8506
f00691a3 85072001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 8508
fc11dff0
PJ
8509 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
8510 instead of C) and usage.
a50a10a0 8511
fc11dff0
PJ
8512 * editfns.c (char-to-string): Fix argument names (use CHAR instead
8513 of C) and usage.
a50a10a0
PJ
8514
8515 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
8516 `left', `max_width' and `max_height'.
8517
8738febd
GM
85182001-10-23 Gerd Moellmann <gerd@gnu.org>
8519
8520 * xdisp.c (display_line): For a tab continued to the next line,
8521 set row's ends_in_middle_of_char_p.
8522
653c329b
GM
85232001-10-22 Gerd Moellmann <gerd@gnu.org>
8524
8525 * xdisp.c (display_line): Fix computation of continuation lines
8526 width for TABs.
8527
f00691a3 85282001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 8529
7ba51063
PJ
8530 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
8531 `Qlaplace'.
8532
f958c5ac
PJ
8533 * fileio.c: Remove unused code.
8534
eb360291
MB
85352001-10-22 Miles Bader <miles@gnu.org>
8536
8537 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
8538 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
8539 Remove `DOC_STRINGS_IN_COMMENTS' cases.
8540
98515cf0
JR
85412001-10-21 Jason Rumney <jasonr@gnu.org>
8542
8543 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
8544
93026d88
EZ
85452001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
8546
8547 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
8548 (Finsert_string): Avoid the multi-line string literals warning.
8549
c9a95b79
MB
85502001-10-22 Miles Bader <miles@gnu.org>
8551
8552 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
8553 (Fdocumentation): Don't use it.
8554 (syms_of_doc): Don't initialize it.
8555
8556 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
8557 * print.c (Fwith_output_to_temp_buffer): Likewise.
8558 * window.c (Fsave_window_excursion): Likewise.
c2d53558 8559 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 8560 (Fsave_restriction): Likewise.
c2d53558
SM
8561 * eval.c (Frun_hooks, Frun_hook_with_args)
8562 (Frun_hook_with_args_until_failure)
8563 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
8564 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
8565 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
8566 (Funwind_protect, Fcondition_case): Likewise.
8567 * coding.c (Ffind_operation_coding_system): Likewise.
8568 * keyboard.c (Ftrack_mouse): Likewise.
8569
a3b10252
MB
85702001-10-21 Miles Bader <miles@gnu.org>
8571
c2d53558 8572 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
8573 (Fmake_hash_table): Add usage: string to doc string.
8574 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 8575 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
8576 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
8577 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
8578 (Fml_prefix_argument_loop): Likewise.
8579
f00691a3 85802001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 8581
c2d53558 8582 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 8583
c6f73eec
PJ
8584 * sysdep.c (init_sys_modes): Change doc-string comments to `new
8585 style' [w/`doc:' keyword].
8586
8587 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
8588 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
8589 comments to `new style' [w/`doc:' keyword].
8590
3cf3436e
JR
85912001-10-21 Jason Rumney <jasonr@gnu.org>
8592
8593 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
8594
c169b8f1
JR
8595 * w32term.c (remember_mouse_glyph): New function.
8596 (w32_mouse_position): Use it.
8597 (note_mouse_movement): If the mouse moved off the glyph, remember
8598 its new position.
c2d53558 8599
4fdd691b
JR
8600 * w32term.h (struct w32_output): Correct spelling of x_compatible.
8601 (w32_display_info): Add mouse_face_overlay.
8602
c169b8f1
JR
8603 * w32term.c (notice_overwritten_cursor): Renamed from
8604 note_overwritten_text_cursor. Rewritten to take glyph widths into
8605 account.
8606 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
8607 (fast_find_string_pos): New function.
8608 (fast_find_position): Return the correct vpos. Add parameter
8609 STOP. In the final row, stop before glyphs having STOP as object.
8610 Don't consider glyphs that are not from a buffer.
8611 (fast_find_position) [0]: Add a presumably more correct version
8612 for after 21.1.
8613 (expose_window_tree, expose_frame): Don't compute intersections here.
8614 (expose_window): Do it here instead.
8615 (expose_window_tree, expose_window, expose_line): Return 1 when
8616 overwriting mouse-face.
8617 (expose_window): If W is the window currently being updated, mark
8618 the frame garbaged.
8619 (expose_frame): If mouse-face was overwritten, redo it.
8620 (x_use_underline_position_properties): New variable.
8621 (syms_of_xterm): DEFVAR_BOOL it.
8622 (x_draw_glyph_string): Add comment to use it in future.
8623 (x_draw_glyph_string): Restore clipping after drawing box.
8624 Fix a computation of the underline position.
8625 (w32_get_glyph_string_clip_rect): Minor cleanup.
8626 (x_fill_stretch_glyph_string): Remove an assertion.
8627 (x_produce_glyphs): Don't convert multibyte characters
8628 to unibyte characters in unibyte buffers.
8629 (cursor_in_mouse_face_p): New function.
8630 (x_draw_stretch_glyph_string): Use it to choose a different GC
8631 when drawing a cursor within highlighted text. Don't draw
8632 background again if it has already been drawn.
8633 (x_draw_glyph_string_box): Don't draw a full-width
8634 box just because the glyph row's full_width_p flag is set.
8635 (x_draw_glyphs): Fix computation of rightmost x for
8636 full-width rows.
8637 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
8638 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
8639 change bottom shadow accordingly. Some cleanup.
8640 (x_update_window_end): Handle overwritten mouse face
8641 also for tool bar windows.
8642 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
8643 DRAW is DRAW_IMAGE_RAISED.
8644 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
8645 actually redrawn. Make the function static.
8646 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
8647 optimize away highlighting if we pass over that same overlay again.
8648 (note_mouse_highlight): Call mouse_face_overlay_overlaps
8649 to detect a case where we have to highlight a different region
8650 despite not having left the currently highlighted region.
8651 Set mouse_face_overlay in the x_display_info. Avoid changing the
8652 mouse pointer shape when show_mouse_face has already done it, or
8653 there is no need. Handle mouse-face and help-echo in strings.
8654 (glyph_rect): New function.
8655 (w32_mouse_position): Use it to raise the threshold for mouse
8656 movement event generation.
8657 (w32_initialize_display_info): Initialize the x_display_info's
8658 mouse_face_overlay.
8659 (w32_set_vertical_scroll_bar): Don't clear a zero height
8660 or width area.
8661 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
8662 a widget to zero height.
8663
3cf3436e 8664 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 8665 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
8666 equivalents in menu_items.
8667 (w32_menu_show): Don't overwrite an item's name with its key
8668 description in case the description is a multibyte string.
8669 (single_submenu): Some cleanup.
8670
8671 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
8672 (postprocess_image): New function.
8673 (lookup_image): Call it for all image types except PostScript.
8674 (x_kill_gs_process): Call postprocess_image.
8675 (tiff_error_handler, tiff_warning_handler): New functions.
8676 (tiff_load): Install them as handlers.
8677 (x_kill_gs_process): Recognize if someone has cleared the image
8678 cache under us.
8679 (valid_image_p): Protect better against invalid image
8680 specifications. Previous code could signal an error.
8681 (Fx_hide_tip, Fshow_tip): Doc fix.
8682 (Fv_max_tooltip_size): New variable.
8683 (syns_of_xfns): DEFVAR_LISP it.
8684 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
8685 window buffer to *tip* right after creating the frame. Set frame's
8686 window_width. Use a maximum tooltip size specified by
8687 Vx_max_tooltip_size, if that has valid contents.
8688 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
8689 Make sure the tooltip is completely visible.
8690 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
8691 (Fx_create_frame): Adjust the frame's height for presence
8692 of the tool bar before calling x_figure_window_size.
8693 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
8694 when the window gets smaller.
8695 (x_set_foreground_color): Set frame's cursor_pixel.
8696 (x_set_foreground_color, x_set_background_color): Cleaned up.
8697 (x_set_font): Handle case of x_new_fontset returning the same name
8698 as before, although there was a change in fontsets.
8699
386ca361
MB
87002001-10-21 Miles Bader <miles@gnu.org>
8701
c2d53558 8702 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
8703 (Flogxor): Add usage: string to doc string.
8704 * charset.c (Fstring): Likewise.
8705 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
8706 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
8707
f00691a3 87082001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 8709
03be2694
PJ
8710 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
8711
8712 * alloc.c: Reindent DEFUNs with doc: keywords.
8713
8714 * abbrev.c (Finsert_abbrev_table_description): Reindent.
8715
14ff1ee0
PJ
8716 * frame.c: Change doc-string comments to `new style' [w/`doc:'
8717 keyword].
8718
2f147815 8719See ChangeLog.9 for earlier changes.
6922b018
KH
8720
8721;; Local Variables:
49b3bd82 8722;; coding: iso-2022-7bit
6922b018 8723;; End:
2a34a036 8724
2f147815 8725 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
8726 Copying and distribution of this file, with or without modification,
8727 are permitted provided the copyright notice and this notice are preserved.