Improve previous changes (in particular, use of @uref).
[bpt/emacs.git] / src / ChangeLog
CommitLineData
4b1b4443
JD
12003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2
3 * gtkutil.c (create_dialog, make_widget_for_menu_item)
4 (make_menu_item, create_menus, xg_update_menu_item): Don't call
5 ..._with_mnemonic functions for menu items.
6
32c06229
SM
72003-04-30 Stefan Monnier <monnier@cs.yale.edu>
8
9 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
10
11 * lisp.h (CHECK): Wrap args in parenthesis.
12 (specbind): Fix doc: symbol = Qnil is not supported any more.
13
14 * bytecode.c (Fbyte_code) <unwind-protect>:
15 Use Fprogn rather than 0 and Qnil.
16
17 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
18 `double', and `triple' modifiers as well.
19
ed3c3314
RS
202003-04-30 Richard M. Stallman <rms@gnu.org>
21
22 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
23
24 * alloc.c (abort_on_gc): New variable.
25 (Fgarbage_collect): Abort if abort_on_gc is set.
26
27 * lisp.h (abort_on_gc): Add decl.
28
29 * eval.c (Fsignal): Clear abort_on_gc.
30
31 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 32 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
33
34 * xdisp.c (move_it_vertically_backward): Do the final big else
35 even if nlines is 0.
36
37 * xdisp.c (redisplay_internal): Finish the per-frame loop
38 even if redisplay is suspended by input.
39
0b325c12
AC
402003-04-24 Andrew Choi <akochoi@shaw.ca>
41
42 * macterm.c (x_list_fonts): Return all fonts that match if
43 maxnames = -1.
44
4e837cd0
KH
452003-04-25 Kenichi Handa <handa@m17n.org>
46
47 * syntax.c (skip_chars): Fix previous change.
48
9af7511a
KH
492003-04-24 Kenichi Handa <handa@m17n.org>
50
51 * syntax.c (skip_chars): Make the code faster by using the common
52 technique of *p, *stop, and *endp.
53
e3b2c21f
JD
542003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
55
56 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 57 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
58 being updated.
59
32c06229
SM
602003-04-19 Stefan Monnier <monnier@cs.yale.edu>
61
62 * eval.c (Fapply): Undo last change and add a comment about why.
63
c6464167
MB
642003-04-18 Miles Bader <miles@gnu.org>
65
66 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
67 pickier PARSE_MULTIBYTE_SEQ.
68
e509f168
SM
692003-04-17 Stefan Monnier <monnier@cs.yale.edu>
70
71 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
72 Use XCDR, XCAR, CONSP.
73 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
74 (Fapply): Remove unnecessary GCPRO.
75
76 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
77
78 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
79
80 * buffer.h: Don't hardcode BEG==1.
81
82 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
83
5ceea398
RS
842003-04-16 Richard M. Stallman <rms@gnu.org>
85
86 * xdisp.c (try_window, try_window_reusing_current_matrix):
87 When at end of window, set window_end_pos to Z-ZV.
88
89 * buffer.c (Foverlay_recenter): Doc fix.
90
e509f168
SM
912003-04-14 Stefan Monnier <monnier@cs.yale.edu>
92
93 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
94
d243e605
AC
952003-04-14 Andrew Choi <akochoi@shaw.ca>
96
97 * macterm.c (mac_check_for_quit_char): Don't check more often than
98 once a second.
99
6901b111
SM
1002003-04-11 Stefan Monnier <monnier@cs.yale.edu>
101
102 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
103 specially, so that they can't hide an implicit switch-frame event.
104 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
105 (head_table): Use switch-frame as event_kind for select-window.
106 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
107
108 * editfns.c (Fformat): Lisp_Object/int mixup.
109 (format2): Remove unused var numargs.
110
e301806f 1112003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 112
6901b111 113 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
114 (Qafter_insert_file_set_coding): New variable.
115 (syms_of_fileio): Initialize and staticpro it. Delete declaration
116 for after-insert-file-adjust-coding-function.
117 (Finsert_file_contents): Call Qafter_insert_file_set_coding
118 instead of Vafter_insert_file_adjust_coding_function.
119
38914424
KH
1202003-04-11 Kenichi Handa <handa@m17n.org>
121
122 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
123
124 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
125 string. Callers changed.
126
1272003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 128
6901b111 129 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 130 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
131 (Finsert_file_contents):
132 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
133 decode-format.
134
f979dc05
JD
1352003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
136
137 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
138 get GtkAdjustment as widget now is a GtkRange.
139
140 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
141 GtkRange to avoid memory leak.
142
f8c6b4c2 1432003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 144
50ebc53d
KH
145 * xfaces.c (Vface_font_rescale_alist): New variable.
146 (struct font_name): New member rescale_ratio.
147 (font_rescale_ratio): New function.
6901b111 148 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
149 (better_font_p): On comparing point sized, pay attention to
150 recale_ratio member of fonts.
151 (build_scalable_font_name): Reflect font->rescale_ratio in the
152 font name.
6901b111 153 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 154
cb98871c
KH
155 * lread.c (read1): Before calling index, check if the 2nd
156 arguemnt is in ASCII range.
157
4773b8ca
RS
1582003-04-08 Richard M. Stallman <rms@gnu.org>
159
b0ada147
RS
160 * fileio.c (Ffile_symlink_p): Doc fix.
161
162 * editfns.c (Fformat): Translate positions of text properties
163 in the format string to apply them to the result.
164
4773b8ca
RS
165 * fileio.c (Finsert_file_contents): Doc fix.
166 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
167
1682003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 169
4773b8ca
RS
170 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
171
e8f25745 1722003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 173
e8f25745
ST
174 * mac.c (init_mac_osx_environment): Switch libexec and bin so
175 that self-contained application finds libexec files.
176
f8c6b4c2 1772003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 178
6901b111
SM
179 * coding.c (code_convert_region_unwind):
180 Set Vlast_coding_system_used to the argument.
2310d84c
KH
181 (code_convert_region): If post-read-conversion function changed
182 the value of last-coding-sytem, keep the new value in
183 coding->symbol so that it won't be overridden.
184 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
185 (coding_system_accept_latin_extra_p): New function.
186 (find_safe_codings): Pay attention to characters registered in
187 latin-extra-code-table.
2310d84c 188
39c9a034
TTN
1892003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
190
191 * Makefile.in (md5.o): Add missing dependency info.
192
eb67c5d6
RS
1932003-04-06 Richard M. Stallman <rms@gnu.org>
194
195 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
196
197 * marker.c (verify_bytepos): New function.
198
199 * intervals.c (set_intervals_multibyte_1): When becoming
200 multibyte, adjust right and left child sizes to a whole set of
201 characters. If an interval gets zero total-length, delete it.
202 If an interval consists of just its children, delete one of them.
203
204 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
205 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 206
eb67c5d6
RS
207 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
208 All calls deleted.
209 (lisp_malloc): Do the work here directly.
210
b1f81fc5
JB
2112003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
212
213 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
214 char tables.
215
2162003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
217
218 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
219 destructively change "%S" to "%s".
220
774666fb
MB
2212003-04-03 Miles Bader <miles@gnu.org>
222
223 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
224 always set.
225
19c37f01
DL
2262003-04-01 Dave Love <fx@gnu.org>
227
228 * xfns.c (xpm_lookup_color): Grok "opaque".
229
2f4b24c3
AC
2302003-03-31 Andrew Choi <akochoi@shaw.ca>
231
232 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
233 parent window ID.
234
235 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
236
237 * macterm.h (struct mac_output): Define x_pixels_diff and
238 y_pixels_diff.
b1f81fc5 239
9443fcf6
JB
2402003-03-31 Juanma Barranquero <lektu@terra.es>
241
242 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
243 blockinput.h and files included from it.
244
e072891b
KS
2452003-03-31 Kim F. Storm <storm@cua.dk>
246
247 The following changes consolidates the common code related to
248 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
249 files into frame.c.
9443fcf6 250
e072891b
KS
251 * frame.c: Include blockinput.h.
252 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
253 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
254 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
255 related vars here.
256 (struct frame_parm_table, frame_parms): New table for describing
257 frame parameters and their associated Q-variable.
258 The order of the parameters corresponds to the sequence of the
259 frame_parm_handlers table in redisplay_interface.
260 (x_fullscreen_move, x_set_frame_parameters)
261 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
262 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
263 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
264 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
265 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
266 Generic functions for processing of frame parameters.
267 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
268 (display_x_get_resource, x_get_resource_string): Functions for
269 generic access to X resources.
270 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
271 (x_default_parameter, Fx_parse_geometry): Functions for generic
272 access to frame parameters.
6901b111
SM
273 (x_figure_window_size): Generic calculation of frame size.
274 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
275 (syms_of_frame): Intern and staticpro frame parameter variables.
276 Defvar_lisp Vx_resource_class and Vx_resource_name here.
277 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 278
e072891b
KS
279 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
280 parameter related vars defined in frame.c.
281 (EMACS_CLASS): Define here.
282 (enum FULLSCREEN_*): Define here.
283 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
284 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
285 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
286 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
287 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
288 (x_set_visibility, x_set_autoraise, x_set_autolower)
289 (x_set_unsplittable, x_set_vertical_scroll_bars)
290 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
291 (x_figure_window_size): Add prototypes.
292
293 * dispextern.h (frame_parm_handler): New typedef.
294 (struct redisplay_interface): New member frame_parm_handlers.
295 (enum resource_types): Move declaration here.
296 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
297 (x_default_parameter): Add prototypes.
298
299 * window.c: Remove extern decl for frame parameter vars.
300 (change_window_heights): New generic function;
301 replaces x_change_window_heights. All users changed.
302
303 * window.h (change_window_heights): Add prototype.
304
305 * xfaces.c: Remove extern decl for frame parameter vars.
306
307 * xterm.h (EMACS_CLASS): Remove. Use generic define.
308 (struct w32_display_info): Fix type of xrdb member.
309 (enum FULLSCREEN_*): Remove.
310 Remove prototypes for generic functions (in frame.h).
311
312 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
313 parameters now defined in frame.h and frame.c.
314 (Vx_resource_name): Remove. Use generic var.
315 (enum x_frame_parms): Remove (bogus, unused enum).
316 (check_x_display_info): Make non-static (for frame.c).
317 (struct x_frame_parm_table, x_frame_parms): Remove.
318 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
319 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
320 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
321 (x_change_window_heights, x_set_autoraise, x_set_autolower)
322 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
323 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
324 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
325 Remove. Use generic functions instead.
326 (enum resource_types): Remove.
327 (x_set_scroll_bar_default_width): New global function (for frame.c).
328 (Fx_create_frame): Depend on x_figure_window_size to add space for
329 toolbar and setup size_hint_flags.
330 (x_frame_parm_handlers): New table for redisplay_interface.
331 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 332
e072891b
KS
333 * xterm.c: Remove unnecessary extern declarations.
334 (x_fullscreen_adjust): Remove. Use generic instead.
335 (x_redisplay_interface): Add x_frame_parm_handlers member.
336
337 * w32gui.h (XrmDatabase): New (dummy) typedef.
338
339 * w32term.h (EMACS_CLASS): Remove. Use generic define.
340 (struct w32_display_info): Fix type of xrdb member.
341 (enum FULLSCREEN_*): Remove.
342 (x_fullscreen_adjust): Remove prototype.
343
344 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
345 parameters now defined in frame.h and frame.c.
346 (Vx_resource_name): Remove. Use generic var.
347 (enum x_frame_parms): Remove (bogus, unused enum).
348 (check_x_display_info): Make non-static (for frame.c).
349 (struct x_frame_parm_table, x_frame_parms): Remove.
350 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
351 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
352 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
353 (x_change_window_heights, x_set_autoraise, x_set_autolower)
354 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
355 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
356 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
357 Remove. Use generic functions instead.
358 (enum resource_types): Remove.
359 (x_set_scroll_bar_default_width): New global function (for frame.c).
360 (Fx_create_frame): Depend on x_figure_window_size to add space for
361 toolbar and setup size_hint_flags.
362 (w32_frame_parm_handlers): New table for redisplay_interface.
363 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 364
e072891b
KS
365 * w32term.c: Remove unnecessary extern declarations.
366 (x_fullscreen_adjust): Remove. Use generic instead.
367 (x_redisplay_interface): Add w32_frame_parm_handlers member.
368
369 * w32reg.c (x_get_string_resource): Use XrmDatabase.
370
371 * macgui.h (XrmDatabase): New (dummy) typedef.
372
373 * macterm.h (EMACS_CLASS): Remove.
374 (struct mac_display_info): Add xrdb member.
375 (struct mac_output): Add want_fullscreen member.
376
377 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
378 parameters now defined in frame.h and frame.c.
379 (Vx_resource_name): Remove. Use generic var.
380 (check_x_display_info): Make non-static (for frame.c).
381 (struct x_frame_parm_table, x_frame_parms): Remove.
382 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
383 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
384 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
385 (x_change_window_heights, x_set_autoraise, x_set_autolower)
386 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
387 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
388 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
389 Remove. Use generic functions instead.
390 (enum resource_types): Remove.
391 (x_set_scroll_bar_default_width): New global function (for frame.c).
392 (mac_frame_parm_handlers): New table for redisplay_interface.
393 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 394
e072891b
KS
395 * macterm.c: Remove unnecessary extern declarations.
396 (x_redisplay_interface): Add mac_frame_parm_handlers member.
397
3e6a560b
KS
398 * Makefile.in (frame.o): Add dependency on blockinput.h and files
399 included from it (atimer.h and systime.h).
400
7b7b454e
AS
4012003-03-30 Andreas Schwab <schwab@suse.de>
402
403 * xdisp.c (x_insert_glyphs): Fix swapped width and height
404 parameters for shift_glyphs_for_insert.
405
406 * macterm.c (x_redisplay_interface): Add missing entry for
407 draw_vertical_window_border.
408
beb402de
KG
4092003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
410
411 * fileio.c (Fexpand_file_name): In the no-handler case, after
412 expanding, look again for a handler and invoke it. This is needed
413 for filenames like "/foo/../user@host:/bar/../baz" -- the first
414 expansion produces "/user@host:/bar/../baz" which needs to be
415 expanded again for the finame result "/user@host:/baz".
416
b676f356
JD
4172003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
418
419 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
420 of area to be redrawn for better performance.
421
3c671a56
SM
4222003-03-28 Stefan Monnier <monnier@cs.yale.edu>
423
424 * xterm.c (take_vertical_position_into_account): Remove.
425 (xt_action_hook): Call set_vertical_scroll_bar if needed.
426 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
427 (xm_scroll_callback, x_create_toolkit_scroll_bar)
428 (x_set_toolkit_scroll_bar_thumb): Simplify.
429 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
430 (XTread_socket): Remove unused var.
431 (x_make_frame_invisible): Replace goto with else.
432
433 * xdisp.c (set_vertical_scroll_bar): New fun.
434 (redisplay_window): Use it.
435
84f2e615
RS
4362003-03-26 Richard M. Stallman <rms@gnu.org>
437
438 * xdisp.c (update_tool_bar): Recompute tool bar if
439 update_mode_lines is set. Set w->update_mode_line
440 only if the tool bar contents actually change.
441 (update_menu_bar): Undo previous change.
442
70b6104c
JD
4432003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
444
5fd6f727
JD
445 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
446 (xg_frame_set_char_size): Calculate scroll bar width before frame
447 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
448 (xg_separator_p): Check for all documented separator types.
449 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
450 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
451
70b6104c
JD
452 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
453 so tool bar gets updated.
454
d9b36d19
SM
4552003-03-26 Stefan Monnier <monnier@cs.yale.edu>
456
457 * data.c (store_symval_forwarding): Re-instate part of the code
458 that was deleted with too much enthusiasm.
459
4602003-03-25 Stefan Monnier <monnier@cs.yale.edu>
461
462 * data.c (store_symval_forwarding): Delete special read-only
463 hack for type == -1, since we now use ->constant instead.
464 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
465
466 * buffer.c (overlays_in): Declare static.
467 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
468 `constant' field rather than the variable's `type' field.
469
365fa1b3
AC
4702003-03-24 Andrew Choi <akochoi@shaw.ca>
471
472 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
473
474 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
475
476 * fns.c [MAC_OSX]: Do not redefine vector.
477
478 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
479
480 * macgui.h: Remove definition of No_Cursor.
481
d9b36d19 482 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
483
484 * xdisp.c: Define No_Cursor.
485 (x_write_glyphs, notice_overwritten_cursor)
486 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
487 (note_mouse_highlight): Remove Mac-specific code.
488 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 489
c0bcce6f
JPW
4902003-03-24 John Paul Wallington <jpw@gnu.org>
491
492 * xdisp.c (redisplay_window): If mini window's buffer is not
493 empty, then redisplay it like other windows.
494
a526b96c
KS
4952003-03-23 Kim F. Storm <storm@cua.dk>
496
497 * w32term.c (w32_draw_window_cursor): Fix last change.
498
37ab321e
KH
4992003-03-23 Kenichi Handa <handa@m17n.org>
500
a526b96c
KS
501 * alloc.c (make_string_from_bytes, make_specified_string):
502 Add `const' for the arg CONTENTS.
37ab321e
KH
503
504 * lisp.h (make_string_from_bytes, make_specified_string):
505 Prototypes adjusted.
506
7863d625
JD
5072003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
508
a526b96c 509 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 510
7863d625
JD
511 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
512 (XG_SB_RANGE): New define.
513
514 * gtkutil.c (xg_fixed_handle_expose): New function.
515 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
516 expose events.
517 (xg_update_scrollbar_pos): Take two more arguments, left and width
518 of scroll bar including borders.
519 Clear left and right part outside scroll bar separately as some
520 themes have bars that are not an even number of pixels.
d9b36d19 521 Don't set reallocate_redraws, don't call
7863d625
JD
522 gdk_window_process_all_updates.
523 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
524 so no need to change it. Calculate size and value with XG_SB_RANGE.
525
d9b36d19
SM
526 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
527 Pass left and width of scroll bar including borders to
7863d625
JD
528 xg_update_scrollbar_pos.
529
af0ad939
TTN
5302003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
531
532 * Makefile.in: Make sure space precedes end-of-line backslashes.
533
b22139fd
KS
5342003-03-22 Kim F. Storm <storm@cua.dk>
535
536 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
537 Add generic versions here. Remove system specific versions
538 defined elsewhere.
539
540 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
541 Add prototypes.
542
6e6410cf
KS
543 * xterm.h (STORE_NATIVE_RECT): New macro.
544
5c9cc435
KS
5452003-03-21 Kim F. Storm <storm@cua.dk>
546
00c64fab
SM
547 * xdisp.c (get_glyph_string_clip_rect):
548 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
549
550 * dispextern.h (struct redisplay_interface): Add active_p
551 argument to draw_window_cursor member. All uses changed.
552
acd37560
KS
5532003-03-21 Kim F. Storm <storm@cua.dk>
554
555 The following changes consolidate code related to writing and
556 inserting glyphs, exposing frame, the tool bar, the mouse face,
557 the output cursor, and help echo from xterm.c, w32term.c and
558 macterm.c into xdisp.c. It also generalizes the use of the
559 window_part enum instead of using numeric values throughout.
af0ad939 560
acd37560
KS
561 * xdisp.c: Consolidate gui-independent code here.
562 Include keymap.h.
563 (Qhelp_echo): Import.
564 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
565 (help_echo_string, help_echo_window, help_echo_object)
566 (previous_help_echo_string, help_echo_pos): Declare here.
567 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
568 (estimate_mode_line_height): Define here. Handle windowing
569 systems directly (without using estimate_mode_line_height_hook).
570 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
571 (update_window_cursor, update_cursor_in_window_tree)
572 (fast_find_position, fast_find_string_pos)
573 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
574 (expose_area, expose_line, expose_overlaps, expose_window)
575 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
576 declared static as they are only used locally in xdisp.c.
577 (draw_glyphs): Rename from x_draw_glyphs and make static.
578 (tool_bar_item_info, notice_overwritten_cursor): Make static.
579 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
580 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 581 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
582 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
583 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
584 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
585 (note_mouse_highlight, x_clear_window_mouse_face)
586 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
587 (x_intersect_rectangles): New generic functions for use by xdisp.c
588 and GUI front-ends.
589 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
590 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
591
592 * dispextern.h (Display_Info): Generic typedef for *_display_info.
593 (NativeRectangle): Generic typedef for rectangle type.
594 (enum window_part): Move here from window.c.
595 (struct redisplay_interface): New members flush_display_optional,
596 define_frame_cursor, clear_frame_area, draw_window_cursor,
597 draw_vertical_window_border, shift_glyphs_for_insert.
598 Rename member clear_mouse_face to clear_window_mouse_face.
599 (estimate_mode_line_height_hook): Remove hook.
600 (auto_raise_tool_bar_buttons_p): Don't declare extern.
601 (tool_bar_item_info): Remove prototype.
602 (help_echo_string, help_echo_window, help_echo_object)
603 (previous_help_echo_string, help_echo_pos)
604 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
605 (x_stretch_cursor_p, output_cursor): Declare extern.
606 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
607 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
608 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
609 (display_and_set_cursor, set_output_cursor, x_cursor_to)
610 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
611 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
612 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
613 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
614 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
615 Add prototypes.
616 (mode_line_string, marginal_area_string): Fix prototypes.
617
618 * window.c (enum window_part): Move to dispextern.h.
619 (coordinates_in_window): Use enum window_part member names
620 instead of numbers to describe return value.
621 (struct check_window_data): Change part member to window_part.
622 (check_window_containing): Return window_part unaltered.
623 (window_from_coordinates): Change part arg from int to enum
624 window_part. Allow part arg to be null. All users changed.
625
626 * window.h (window_from_coordinates): Fix prototype.
627
628 * term.c (estimate_mode_line_height): Move to xdisp.c.
629
630 * keyboard.c (make_lispy_event): Use enum window_part.
631
632 * dispnew.c (mode_line_string, marginal_area_string): Use enum
633 window_part instead of int in arg list. Users changed.
634
635 * xterm.h (No_Cursor): Declare as None for X.
636 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 637
acd37560
KS
638 * xterm.c: Remove consolidated defines and code.
639 (BETWEEN): Remove unused macro.
640 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
641 (x_define_frame_cursor, x_clear_frame_area)
642 (x_draw_window_cursor): New X-specific functions for RIF.
643 (x_redisplay_interface): Add new members.
644
645 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
646
647 * w32term.h (struct w32_output): Remove cross_cursor member.
648
649 * w32term.c: Remove consolidated defines and code.
650 (BETWEEN): Remove unused macro.
651 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
652 (w32_define_frame_cursor, w32_clear_frame_area)
653 (w32_draw_window_cursor): New W32-specific functions for RIF.
654 (w32_redisplay_interface): Add new members.
655
656 * w32gui.h (No_Cursor): Define as 0 for W32.
657 (XRectangle): Add X compatible rectangle type.
658 (NativeRectangle): Declare as RECT for W32.
659 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
660
661 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
662
663 * w32console.c: Remove consolidated defines and code.
af0ad939 664
acd37560
KS
665 * msdos.h (Display_Info): Add generic typedef.
666
667 * msdos.c: Remove consolidated defines and code.
668 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
669
670 * macterm.h (struct mac_output): Replace member cross_cursor by
671 hand_cursor.
672 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
673
674 * macterm.c: Remove consolidated defines and code.
675 (BETWEEN): Remove unused macro.
676 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
677 (mac_define_frame_cursor, mac_clear_frame_area)
678 (mac_draw_window_cursor): New Mac-specific functions for RIF.
679 (x_redisplay_interface): Add new members.
680
681 * macgui.h (No_Cursor): Define as 0 for Mac.
682 (XRectangle): Add X compatible rectangle type.
683 (NativeRectangle): Declare as Rect for Mac.
684 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
685
204ccab1
KS
686 * macfns.c (x_set_mouse_color): Setup hand_cursor.
687 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 688
9443fcf6 689 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
690 included from it. Add dependency on keymap.h.
691
692 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
693
8ba01a70 6942003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
695
696 * fileio.c (Fexpand_file_name): Fix previous change.
697
8ba01a70 6982003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
699
700 * fileio.c (Ffile_name_directory): Reconstruct file name by
701 make_specified_string.
702 (Ffile_name_nondirectory, Ffile_name_as_directory)
703 (Fdirectory_file_name, Fexpand_file_name)
704 (Fsubstitute_in_file_name): Likewise.
705 (Fread_file_name): Compare decoded homedir with DIR and
706 DEFAULT_FILENAME.
707
708 * alloc.c (make_specified_string): If NCHARS is negative, count
709 the number of characters.
710
19536747
JD
7112003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
712
de38ae5a
JD
713 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
714 all widgets.
715
19536747
JD
716 * gtkutil.h: Removed xg_ignore_next_thumb.
717
37ab321e 7182003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
719
720 * coding.c (Vchar_coding_system_table): Remove this variable.
721 (Vcoding_system_safe_chars): New variable.
722 (intersection): Remove this function.
723 (find_safe_codings): Don't use Vchar_coding_system_table, but try
724 all codings in SAFE_CODINGS.
00c64fab 725 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
726 find_safe_codings. Get generic coding systems from
727 Vcoding_system_safe_chars.
728 (Fdefine_coding_system_internal): New function.
729 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
730 Initialize and staticpro Vcoding_system_safe_chars.
731
17097258
JD
7322003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
733
2a2071c3
JD
734 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
735 equal old values before updating.
736
17097258
JD
737 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
738
739 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
740
7412003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
742
743 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
744 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
745 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
746 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
747 (xg_create_scroll_bar): Pass bar to button event callback.
748 (xg_find_top_left_in_fixed): New function.
749 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
750 whole scroll bar area. Get old position with
751 xg_find_top_left_in_fixed, calculate and only clear needed areas.
752 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
753 dragging is in progress. Calculate whole as for Motif.
754 Remove code that saved last values. Call gtk_range functions to
755 set scroll bar sizes.
756
757 * gtkutil.h: Removed xg_ignore_next_thumb.
758
8cb9dfbf
JB
7592003-03-17 Juanma Barranquero <lektu@terra.es>
760
761 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
762 and files included from it.
763
00c64fab
SM
7642003-03-18 Stefan Monnier <monnier@cs.yale.edu>
765
766 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
767 multiple occurrences of the same keymap under different prefixes.
768 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
769
c45bb3b2
JR
7702003-03-16 Jason Rumney <jasonr@gnu.org>
771
772 * w32gui.h: Use HDC for Display.
773
774 * w32term.c (w32_encode_char): Prevent double-byte chars from
775 crashing Emacs.
776
777 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
778 as binary.
779
2a6d0874
JB
7802003-03-16 Juanma Barranquero <lektu@terra.es>
781
782 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
783
03eb5fab
KS
7842003-03-16 Kim F. Storm <storm@cua.dk>
785
786 The following changes consolidate some of the gui-independent
787 parts of the processing and drawing of "glyph strings" from
788 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 789
03eb5fab
KS
790 * dispextern.h (struct glyph): Reduce face_id member from 22 to
791 21 bits (this reduces number of faces from 4M to 2M).
792 Replace W32 specific w32_font_type member (2 bits) by generic
793 font_type member (3 bits) for portability.
794 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
795 (enum draw_glyphs_face): Define here.
796 (struct glyph_string): Define here. Merge W32 and X versions.
797 (struct redisplay_interface): New members per_char_metric,
798 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
799 (VCENTER_BASELINE_OFFSET): Define here.
800 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
801 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
802
803 * xdisp.c: Consolidate gui-independent "glyph string" code here.
804 (dump_glyph_string): Moved here.
805 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
806 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
807 (fill_composite_glyph_string, fill_glyph_string)
808 (fill_image_glyph_string, fill_stretch_glyph_string)
809 (left_overwritten, left_overwriting, right_overwritten)
810 (right_overwriting, get_char_face_and_encoding)
811 (set_glyph_string_background_width, compute_overhangs_and_x)
812 (append_glyph, append_composite_glyph, produce_image_glyph)
813 (take_vertical_position_into_account, append_stretch_glyph)
814 (produce_stretch_glyph): New generic functions (based on X version).
815 Call platform specific functions through rif.
816 (INIT_GLYPH_STRING): New macro, hides W32 details.
817 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
818 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
819 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
820 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
821 (notice_overwritten_cursor):
822 Generic functions exported to platform modules. Users changed.
823
824 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
825 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
826 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 827 New macros for consolidated code.
2a6d0874 828
03eb5fab
KS
829 * xterm.c: Remove consolidated defines and code.
830 (x_per_char_metric, x_encode_char)
831 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
832 (x_redisplay_interface): Add new members.
833
834 * w32gui.h (Display): Add dummy typedef for consolidation.
835 (XChar2b): Define alias for wchar_t for consolidation.
836 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
837
838 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 839 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
840 New macros for consolidation.
841
fad49844 842 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
843 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
844 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
845 (w32_per_char_metric): Change font_type arg to int for RIF.
846 (w32_encode_char): Return int according to RIF requirements.
847 (w32_compute_glyph_string_overhangs): Adapt to RIF.
848 (w32_get_glyph_overhangs): New function for RIF. Uses generic
849 x_get_glyph_overhangs.
850 (w32_redisplay_interface): Add new members.
851
852 * macgui.h (XChar2b): Move typedef here for consolidation.
853 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
854
855 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
856 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
857 consolidation.
858
859 * macterm.c: Remove consolidated defines and code.
860 (mac_per_char_metric): New function for RIF.
00c64fab 861 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
862 (mac_compute_glyph_string_overhangs): Adapt for RIF.
863 (x_redisplay_interface): Add new members.
864
00c64fab
SM
8652003-03-15 Stefan Monnier <monnier@cs.yale.edu>
866
867 * keymap.c (Vmenu_events): New var.
868 (syms_of_keymap): Initialize it.
869 (where_is_internal): Check more carefully what is a menu event.
870
225c7a07
RS
8712003-03-14 Richard M. Stallman <rms@gnu.org>
872
873 * lread.c (read1): After #!, exit loop on eof.
874
cea9be54
JD
8752003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
876
9ea0e54d
JD
877 * gtkutil.h: Add declaration for xg_frame_cleared.
878
0cb35f4e
JD
879 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
880
cea9be54
JD
881 * gtkutil.c (struct xg_last_sb_pos): New structure.
882 (handle_fixed_child): New function.
883 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
884 and force a redraw on them.
885 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
886 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
887 so we can avoid unneeded redraws.
888 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
889 and force a redraw on the scroll bar.
890 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
891 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 892 (xg_frame_cleared): New function.
cea9be54 893
20b853f3
KH
8942003-03-13 Kenichi Handa <handa@m17n.org>
895
896 * coding.c (Fdetect_coding_region): Fix docstring.
897 (Fdetect_coding_string): Fix docstring.
898
7a555aff
AS
8992003-03-13 Andreas Schwab <schwab@suse.de>
900
25cc0080
AS
901 * gtkutil.c: Add prototype for create_menus.
902
30225431
AS
903 * data.c (long_to_cons): Fix type of top.
904
905 * xselect.c (selection_data_to_lisp_data): Use int instead of
906 long for an integer of size 4.
907
7a555aff 908 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 909 (xg_tool_bar_help_callback): Likewise.
7a555aff 910
a3e4741f
AS
9112003-03-12 Andreas Schwab <schwab@suse.de>
912
913 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
914
9668be7c
KS
9152003-03-12 Kim F. Storm <storm@cua.dk>
916
03eb5fab 917 The following changes consolidate the fringe handling from
9668be7c 918 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 919
9668be7c
KS
920 * xdisp.c: Consolidate fringe handling code here.
921 (left_bits, right_bits, continued_bits, continuation_bits)
922 (ov_bits, zv_bits): Define fringe bitmaps.
923 (fringe_bitmaps): New array holding fringe bitmaps.
924 (draw_fringe_bitmap): Draw a specific bitmap; call display
925 specific drawing routine via rif->draw_fringe_bitmap.
926 (draw_row_fringe_bitmaps): Generic replacement for
927 x_draw_row_fringe_bitmaps; all callers changed.
928 (compute_fringe_widths): Generic replacement for
929 x_compute_fringe_widths; all callers changed.
930
931 * dispextern.h (enum fringe_bitmap_type): Define here.
932 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
933 (fringe_bitmaps): Declare extern.
934 (struct redisplay_interface): New member draw_fringe_bitmap.
935 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
936
937 * xterm.c: Remove generic fringe code.
938 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
939 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
940
941 * w32term.c: Remove generic fringe code.
942 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
943 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 944
9668be7c
KS
945 * macterm.c: Remove generic fringe code.
946 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
947 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
948
00a88f32
SM
9492003-03-11 Stefan Monnier <monnier@cs.yale.edu>
950
951 * print.c (Fprin1_to_string): Return unibyte string if possible.
952
1d1de695
DK
9532003-03-09 David Kastrup <dak@gnu.org>
954
955 * process.c (read_process_output): We have allocated enough space
956 for readmax and carryover, so actually use the alloted space.
957
257f40f2
JD
9582003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
959
960 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
961 toolkit scrollbar click.
962
963 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
964 for USE_GTK.
965 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
966 also.
967 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
968 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 969
257f40f2
JD
970 * gtkutil.h: Declare xg_get_scroll_id_for_window.
971
972 * gtkutil.c (xg_get_scroll_id_for_window): New function.
973 (xg_tool_bar_item_expose_callback): New function.
974 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
975 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
976 on the tool bar widget.
977 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
978 to expose on the tool bar item widgets.
979
15213141
JD
9802003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
981
26b74a0b 982 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 983 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
984 deleted from the image cache).
985
15213141
JD
986 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
987 the event isn't for a frame (i.e. for dialogs).
988
20b853f3 9892003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
990
991 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
992 composition components reaches the limit, terminate composing.
993 (COMPOSITION_OK): New macro.
00a88f32 994 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
995 composition is found.
996 (coding_restore_composition): Adjust the number of composition
997 components if it is not sane.
998
c9029fe5
JB
9992003-03-06 Juanma Barranquero <lektu@terra.es>
1000
1001 * w32term.h (struct w32_display_info): Add xrdb member to support
1002 passing resources via -xrm on Windows.
1003
1004 * w32term.c (w32_make_rdb): New function.
1005 (w32_term_init): Use it to initialize xrdb member of w32_display_info
1006 struct. Delete leftover code.
1007
1008 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
1009 for resources passed on the command line.
1010
1011 * w32reg.c (w32_get_rdb_resource): New function.
1012 (x_get_string_resource): Use it, so resources passed with -xrm
1013 supercede the ones in the registry.
1014
9d00001f
JD
10152003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1016
1017 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
1018 instead of x_top_window_to_frame.
1019
ca2417b9
JD
10202003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1021
1022 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
1023 when restarting Emacs.
1024
5b20caf0
RS
10252003-03-03 Richard M. Stallman <rms@gnu.org>
1026
1027 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
1028 to run kill-buffer-query-functions.
1029 (Qkill_buffer_query_functions): New var.
1030 (syms_of_buffer): Init and staticpro it.
1031
58e91b77
JD
10322003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1033
1034 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
1035
932357b4
KS
10362003-02-25 Kim F. Storm <storm@cua.dk>
1037
1038 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
1039 If centering point failed to make whole line visible and vscroll
1040 is non-zero, disable vscroll and try centering point again.
1041
1042 * lread.c (read1): Accept `single space' syntax like (? x).
1043
bb8db7e1
JD
10442003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1045
1046 * keyboard.c (cancel_hourglass_unwind): Surround with
1047 #ifdef HAVE_X_WINDOWS
1048
47d77aab
KH
10492003-02-25 Kenichi Handa <handa@m17n.org>
1050
1051 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
1052 process only when "subprocesses" is defined.
1053
6a097c0c
SM
10542003-02-24 Stefan Monnier <monnier@cs.yale.edu>
1055
1056 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
1057
0b063c27
JB
10582003-02-24 Juanma Barranquero <lektu@terra.es>
1059
d1135afc
JB
1060 * callint.c (fix_command): Declare as static void and move before
1061 Fcall_interactively.
1062
0b063c27
JB
1063 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
1064 (syms_of_xdisp): Don't initialize Qwhen.
1065
0af912f0
JD
10662003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1067
1068 * keyboard.c (cancel_hourglass_unwind): New function.
1069 (command_loop_1): Cancel hourglass with unwind-protect.
1070
120d0a23
RS
10712003-02-23 Richard M. Stallman <rms@gnu.org>
1072
1073 * callint.c (fix_command): New subroutine, from Fcall_interactively.
1074 Detect (when ... (region-beginning)) etc.
1075 (Fcall_interactively): Call fix_command.
1076 (Qif, Qwhen): New variables.
1077 (syms_of_callint): Init and staticpro them.
0b063c27 1078
120d0a23
RS
1079 * regex.c (print_partial_compiled_pattern): Output to stderr.
1080
4ece81a6
KG
10812003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
1082
1083 * dired.c (directory_files_internal): Don't expand directory.
1084 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
1085 instead. From Lars Hansen <larsh@math.ku.dk>.
1086
e52bd6b7
SM
10872003-02-22 Stefan Monnier <monnier@cs.yale.edu>
1088
1089 * fns.c (string_to_multibyte): Remove unused var i.
1090 (Flanginfo): Fix int/Lisp_Object mixup.
1091 (void_call2): New fun.
1092 (Fmap_char_table): Use it in place of call2.
1093
1094 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
1095
1096 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
1097
1098 * keymap.c (copy_keymap_1): Make it static.
1099
1100 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
1101
c33ef7c4
JB
11022003-02-22 David Ponce <david@dponce.com>
1103
1104 * lread.c (Fload): Don't check STRING_MULTIBYTE.
1105
16782258
JD
11062003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1107
1108 * process.h: Removed subtty field from struct Lisp_Process.
1109
1110 * process.c (create_process): Remove setting of subtty.
1111 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
1112 (Fprocess_running_child_p, process_send_signal):
1113 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
1114 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
1115
3abeca61
KG
11162003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
1117
1118 * keymap.c (Fdefine_key): Doc fix.
1119
92a8ce63
JB
11202003-02-21 Juanma Barranquero <lektu@terra.es>
1121
1122 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
1123
1124 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
1125 POLLING_PROBLEM_IN_SELECT.
1126
1127 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
1128 Delete #undef of POLLING_PROBLEM_IN_SELECT.
1129
1130 * s/hpux10-20.h: New file.
1131
e52bd6b7
SM
1132 * process.c (wait_reading_process_input):
1133 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 1134
20f1ef2e
KH
11352003-02-20 Kenichi Handa <handa@m17n.org>
1136
32d0a9dc
KH
1137 * fontset.c (check_fontset_name): If NAME is nil, return the
1138 default fontset.
1139 (override_font_info): New function.
e52bd6b7 1140 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
1141 (Ffontset_info): If FONTSET is not the default fontset, merge
1142 FONTSET onto the copy of the default fontset, and work on that
1143 copy. Document that NAME nil means the default fontset.
1144 (Ffontset_font): Document that NAME nil means the default fontset.
1145
20f1ef2e
KH
1146 * process.c (setup_process_coding_systems): If the process's
1147 in/out descriptor is -1, do nothing.
1148
77d1daf2
AS
11492003-02-19 Andreas Schwab <schwab@suse.de>
1150
e52bd6b7
SM
1151 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
1152 Add prototypes.
77d1daf2 1153
f9a45bb3
KH
11542003-02-19 Kenichi Handa <handa@m17n.org>
1155
1156 * xfaces.c (try_alternative_families): Try all scalable fonts if
1157 Vscalable_fonts_allowed is not Qt.
1158
72ecb43c
JD
11592003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1160
1161 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
1162
ee5be7c3
JD
11632003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1164
1165 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
1166 names.
1167
1168 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 1169 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
1170 x_face_list_fonts.
1171 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
1172 (Fx_list_fonts): Set maxnames to -1 to get all font names.
1173
4cd519a7
KS
11742003-02-18 Kim F. Storm <storm@cua.dk>
1175
068f9882
KS
1176 * lread.c (read1): Fix last change.
1177 "`" is not always special. Allow "?" after a character constant.
4cd519a7 1178
7290a344
AC
11792003-02-18 Andrew Choi <akochoi@shaw.ca>
1180
1181 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
1182
1f7fa69b
AS
11832003-02-18 Andreas Schwab <schwab@suse.de>
1184
1185 * window.c (window_scroll_pixel_based): Move outside a
1186 multi-glyph character before setting new window start.
1187
1188 * xdisp.c (in_display_vector_p): New function.
1189 * dispextern.h (in_display_vector_p): Declare.
1190
23e21195
KS
11912003-02-18 Kim F. Storm <storm@cua.dk>
1192
1193 * lread.c (read1): Fix and relax read syntax.
1194 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
1195 Only recognize "," after dotted-pair dot if inside backquote.
1196 Never include "`" or "," (inside backquote) in a symbol.
1197 Allow dotted-pair dot after a character constant.
1198 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 1199
f098b121
JD
12002003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1201
1202 * gtkutil.c (xg_tool_bar_expose_callback): New function.
1203 (xg_create_tool_bar): Force style of tool bar to be horizontal with
1204 icons. Set name of tool bar to emacs-toolbar.
1205 (update_frame_tool_bar): Connect expose event to
1206 xg_tool_bar_expose_callback.
1207
63020c46
RS
12082003-02-17 Richard M. Stallman <rms@gnu.org>
1209
1210 * keyboard.c (this_command_key_count_reset): New variable.
1211 Initiatize to 0 where this_command_key_count is set.
1212 (read_char): Save and restore this_command_key_count_reset
1213 around input method code.
1214 (read_char): If this_command_key_count_reset, echo reread commands.
1215 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
1216
fb4452cc
KH
12172003-02-17 Kenichi Handa <handa@m17n.org>
1218
1219 * fns.c (string_to_multibyte): Always return a multibyte string.
1220
bd11cc09
JR
12212003-02-16 Jason Rumney <jasonr@gnu.org>
1222
e52bd6b7
SM
1223 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
1224 Negative max_fonts parameter means list all.
bd11cc09 1225
4cdf4bde
DL
12262003-02-14 Dave Love <fx@gnu.org>
1227
1228 * fns.c (Flanginfo): Doc fix.
1229
023b93f6
KS
12302003-02-13 Kim F. Storm <storm@cua.dk>
1231
37cd4238
KS
1232 * lread.c (read_escape): Interpret \s as a SPACE character, except
1233 for \s-X in a character constant which still is the super modifier.
1234 (read1): Signal an `invalid read syntax' error if a character
1235 constant is immediately followed by a digit or symbol character.
1236
140a6b7e
KS
1237 * search.c (Fmatch_data): Doc fix. Explicitly state that
1238 match-data is undefined if last search failed.
1239
023b93f6
KS
1240 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
1241 All uses changed.
1242
7d5c86e5
JB
12432003-02-12 Juanma Barranquero <lektu@terra.es>
1244
1245 * eval.c (Fdefmacro): Fix typo.
1246
295fff2c
KS
12472003-02-12 Kim F. Storm <storm@cua.dk>
1248
1249 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
1250 macro is a string, convert meta modifiers in string when copying
1251 the string into a vector.
1252
60f3202d
KS
12532003-02-11 Kim F. Storm <storm@cua.dk>
1254
1255 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
1256
61cb0b53
KH
12572003-02-11 Kenichi Handa <handa@m17n.org>
1258
1259 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
1260
7392e23c
KS
12612003-02-10 Kim F. Storm <storm@cua.dk>
1262
1263 * process.c: Doc fixes.
1264 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
1265
ce4254bd
KH
12662003-02-10 Kenichi Handa <handa@m17n.org>
1267
9c7a329a
KH
1268 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
1269
ce4254bd
KH
1270 * process.c (QCfilter_multibyte): New variable.
1271 (setup_process_coding_systems): New function.
e52bd6b7
SM
1272 (Fset_process_buffer, Fset_process_filter):
1273 Call setup_process_coding_systems.
ce4254bd
KH
1274 (Fstart_process): Initialize the member `filter_multibyte' of
1275 struct Lisp_Process.
1276 (create_process): Call setup_process_coding_systems.
1277 (Fmake_network_process): New keyward `:filter-multibyte'.
1278 Initialize the member `filter_multibyte' of struct Lisp_Process.
1279 Call setup_process_coding_systems.
1280 (server_accept_connection): Call setup_process_coding_systems.
1281 (read_process_output): If the process has a filter, decide the
1282 multibyteness of a string to given to the filter by
1283 `filter_multibyte' member of the process. If the process doesn't
1284 have a filter and the result of conversion is unibyte, use
1285 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
1286 multibyte form.
1287 (Fset_process_coding_system): Call setup_process_coding_systems.
1288 (Fset_process_filter_multibyte): New function.
1289 (Fprocess_filter_multibyte_p): New function.
1290 (syms_of_process): Intern and staticpro QCfilter_multibyte.
1291 Defsubr Sset_process_filter_multibyte and
1292 Sprocess_filter_multibyte_p.
1293
1294 * process.h (struct Lisp_Process): New member filter_multibyte.
1295
1296 * lisp.h (setup_process_coding_systems): Add prototype.
1297
1298 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
1299 process, update coding systems for the process.
1300
b08d5f59
KH
13012003-02-09 Kenichi Handa <handa@m17n.org>
1302
1303 * fns.c (string_to_multibyte): New function.
1304 (Fstring_to_multibyte): New function.
1305 (syms_of_fns): Defsubr it.
1306
0dfd93c0
AS
13072003-02-08 Andreas Schwab <schwab@suse.de>
1308
1309 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
1310 instead of the substitution.
1311
7b76ca1c
JD
13122003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1313
1314 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
1315
1316 * xmenu.c (menu_position_func): Adjust menu popup position so that
1317 the menu is fully visible.
7b76ca1c 1318
2436a4e4
JD
13192003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1320
1321 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
1322 (x_make_frame_invisible, x_wm_set_icon_position):
1323 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
1324
1325 * xfns.c (x_set_name, x_set_title): Ditto.
1326
37d1e680
RS
13272003-02-04 Richard M. Stallman <rms@gnu.org>
1328
1329 * keyboard.c (echo_now): Update before_command_echo_length.
1330 (Freset_this_command_lengths): Reset this_command_key_count etc.
1331 immediately rather than arranging to do it later.
1332 (before_command_key_count_1, before_command_echo_length_1)
1333 (before_command_restore_flag): Vars deleted.
1334 (add_command_key): Don't handle before_command_restore_flag.
1335 (read_char, record_menu_key): Don't update before_command_key_count or
1336 before_command_echo_length.
1337 (read_char): Don't handle before_command_restore_flag.
1338
1339 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
1340 in direct-output clauses if it wouldn't be called in the ordinary case.
1341
578846a3
KS
13422003-02-04 Kim F. Storm <storm@cua.dk>
1343
1344 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
1345
49853a4d
JD
13462003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1347
1348 * gtkutil.c (remove_from_container): Copying list is not needed.
1349 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
1350 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
1351 on list returned from gtk_container_get_children to avoid memory leak.
1352
8b53dc06
JR
13532003-02-01 Jason Rumney <jasonr@gnu.org>
1354
5d54d177
JR
1355 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
1356 local malloc.
1357 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
1358 definitions in xpm.h.
1359 (init_xpm_functions): New function.
1360 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
1361 (init_external_image_libraries): Try to load libXpm.dll.
1362
8b53dc06
JR
1363 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
1364 timestamp.
1365
b222e415
DL
13662003-01-31 Dave Love <fx@gnu.org>
1367
1368 * syntax.c (Fskip_chars_forward)
1369 (open-paren-in-column-0-is-defun-start): Doc fix.
1370
c60ee5e7
JB
13712003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
1372
1373 * fileio.c: Support // at start of name for Cygwin (just added proper
1374 preprocessor tests).
1375
1376 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
1377
1378 * Makefile.in: Use @EXEEXT@ for Cygwin.
1379
1380 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
1381
1382 * s/cygwin.h: Added for Cygwin port.
1383
53b37591
JB
13842003-01-31 Juanma Barranquero <lektu@terra.es>
1385
1386 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
1387 when including gif_lib.h.
fe929957
JB
1388 (init_gif_functions, init_tiff_functions): New functions.
1389 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
1390 Windows. Disable color table lookups. Call library functions
53b37591 1391 through pointers determined at runtime.
fe929957
JB
1392 (init_external_image_libraries): Try to load libungif.dll and
1393 libtiff.dll.
53b37591 1394
45415a8f
KH
13952003-01-31 Kenichi Handa <handa@m17n.org>
1396
1397 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 1398 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 1399
a97e4138
JD
14002003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1401
e52bd6b7 1402 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 1403
6eed9bed
DL
14042003-01-30 Dave Love <fx@gnu.org>
1405
1406 * alloc.c (Vgc_elapsed, gcs_done): New variables.
1407 (Fgarbage_collect): Use them.
1408 (init_alloc, syms_of_alloc): Set them up.
1409
100dcd40
JB
14102003-01-30 Juanma Barranquero <lektu@terra.es>
1411
1412 * w32fns.c (init_external_image_libraries): Add missing operator.
1413
fbd852af
JR
14142003-01-29 Jason Rumney <jasonr@gnu.org>
1415
1416 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
1417 an alternative name for jpeg.dll.
1418
8a2d8020
KH
14192003-01-29 Kenichi Handa <handa@m17n.org>
1420
1421 * xdisp.c (set_cursor_from_row): Pay attention to string display
1422 properties.
1423
058c18c7
AC
14242003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
1425
1426 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
1427 <escape>.
1428 (keycode_to_xkeysym_table): Reformat and add more comments.
1429 (XTread_socket): Drop special case for backspace.
1430
385f11cf
AC
14312003-01-28 Andrew Choi <akochoi@shaw.ca>
1432
1433 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
1434 values in old-style RGB specs.
1435
c922a224
JB
14362003-01-27 Juanma Barranquero <lektu@terra.es>
1437
1438 * w32fns.c (init_external_image_libraries): Try alternate names for the
1439 jpeg dll.
1440
0a1d6de0
JD
14412003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1442
1443 * gtkutil.c (create_dialog, xg_separator_p)
1444 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
1445 before calling strcmp or strlen.
1446
a97e4138 14472003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
1448
1449 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
1450 and handle image load failure.
1451
28908312
JR
14522003-01-26 Jason Rumney <jasonr@gnu.org>
1453
1454 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
1455 New functions.
1456 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
1457 Disable color table lookups. Call jpeg library functions
1458 through pointers determined at runtime.
1459 (init_external_image_libraries): Try to load jpeg.dll.
1460
84e47416
RS
14612003-01-25 Richard M. Stallman <rms@gnu.org>
1462
1463 * lisp.h: Declare format2 instead of format1.
1464
1465 * fileio.c (barf_or_query_if_file_exists):
1466 Call format2 instead of format1.
1467
1468 * editfns.c (format2): New function, replaces format1
1469 but takes exactly two Lisp Objects as format args.
1470
1471 * buffer.c (Fkill_buffer): Call format2 instead of format1.
1472
a97e4138 14732003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
1474
1475 * xterm.h: Change to return value of x_dispatch_event to int.
1476
1477 * xterm.c (x_filter_event): New function.
1478 (event_handler_gdk, XTread_socket): Call x_filter_event.
1479 (x_dispatch_event): Change to return value of finish.
1480 (event_handler_gdk): Use return value from x_dispatch_event.
1481
1482 * xfns.c (x_window): Call create_frame_xic for GTK version to
1483 initialize input methods.
1484
1485 * gtkutil.h: Add (void) prototypes.
1486
1487 * gtkutil.c (create_menus): Remove code that puts the help menu to
1488 the right.
1489
54eefef1
JR
14902003-01-25 Jason Rumney <jasonr@gnu.org>
1491
1492 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
1493 [HAVE_PNG]: Sync with xfns.c version.
1494 (png_load): Adjust colors for Windows. Use Windows
1495 bitmaps. Disable color table lookups.
c262430d
JR
1496 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
1497 (init_png_functions): New function.
1498 (png_read_from_memory, png_load): Call png library functions
1499 through pointers determined at runtime.
1500 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
1501 (init_external_image_libraries): New function.
1502 (init_xfns): Call it.
54eefef1 1503
1a9e275b
AS
15042003-01-24 Andreas Schwab <schwab@suse.de>
1505
1506 * minibuf.c (Fminibuffer_message): Verify type of parameter.
1507
a97e4138 15082003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
1509
1510 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
1511 of static initializer.
1512
422eec7e
DL
15132003-01-24 Dave Love <fx@gnu.org>
1514
1515 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
1516 architectures.
1517
1518 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
1519 Use __alignof__.
1520
2a026b04
KH
15212003-01-24 Kenichi Handa <handa@m17n.org>
1522
1523 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 1524 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
1525 (command_loop_1): Call adjust_point_for_property with proper
1526 second arg.
1527
a18bb28d
JR
15282003-01-22 Jason Rumney <jasonr@gnu.org>
1529
1530 Sync changes with xterm.c and xfns.c.
1531
1532 * w32term.c (x_draw_glyph_string_foreground)
1533 (x_draw_composite_glyph_string_foreground): Implement overstriking.
1534
1535 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
1536 phys_cursor's hpos is overwritten. This is still not completely
1537 correct, as it doesn't really make sense to use hpos at all to
1538 get the cursor glyph (as that is relative to the width of the
1539 characters on the line, which may have changed during the update).
1540
1541 * w32term.c (notice_overwritten_cursor): Handle the special case
1542 of the cursor being in the first blank non-text line at the
1543 end of a window.
1544
1545 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
1546 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
1547 Compute from the x position returned by x_draw_glyphs.
1548
1549 (x_display_and_set_cursor): Don't set phys_cursor_width here,
1550 except for NO_CURSOR and system caret, to make phys_cursor_width
1551 contain what its name suggests.
1552 (notice_overwritten_cursor): Consider the cursor image erased if
1553 the output area intersects the cursor image in y-direction.
1554
6a097c0c
SM
1555 * w32term.c (note_mode_line_or_margin_highlight): Rename from
1556 note_mode_line_highlight and extend.
a18bb28d
JR
1557
1558 * w32term.c (last_window): New variable.
1559 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
1560 (note_mouse_movement): Remove reimplemented code in #if 0.
1561
1562 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
1563 not update_mode_lines, and always set it to 1.
1564
ac6e47ef
JR
15652003-01-21 Jason Rumney <jasonr@gnu.org>
1566
1567 * w32fns.c (IDC_HAND): Define it if system headers don't.
1568
15692003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
1570
1571 * w32term.h (struct w32_output): New member hand_cursor.
1572 (WM_EMACS_SETCURSOR): New message definition.
1573
1574 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
1575 function w32_define_cursor.
1576 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
1577 position, change member name output_data.x to output_data.w32 and
1578 add function w32_define_cursor.
1579 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
1580 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
1581 (w32_initialize_display_info):
1582 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
1583
1584 * w32fns.c (Vx_hand_shape): New variable.
1585 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
1586 WM_EMACS_SETCURSOR.
1587 (x-create-frame): Setup Cursor types.
1588
ceb39a17
JB
15892003-01-21 David Ponce <david@dponce.com>
1590
ac6e47ef
JR
1591 * w32term.c (w32_encode_char): For DIM=1 charset, set
1592 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
1593 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 1594 2002-09-30.)
ac6e47ef
JR
1595 (w32_draw_relief_rect): Declare all args.
1596 (w32_define_cursor): New.
1597
1598 * w32fns.c (w32_load_cursor): New function.
1599 (w32_init_class): Use it.
1600 (x_put_x_image): Declare all args.
1601
46cf0bed
JB
16022003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
1603
1604 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
1605
a97e4138 16062003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
1607
1608 * gtkutil.c: Must include stdio.h before termhooks.h
1609
83fc9c63
DL
16102003-01-21 Dave Love <fx@gnu.org>
1611
1612 * alloc.c (Fgc_status): Print zombie list.
1613 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
1614 Fix assignment of zombies.
1615 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
1616 Don't take car of non-cons.
1617
1618 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
1619
1620 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
1621
fe04b8c8
JR
16222003-01-20 David Ponce <david@dponce.com>
1623
1624 * w32menu.c (digest_single_submenu): Declare all args.
1625
1626 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
1627 changes in xmenu.c:
1628
1629 (parse_single_submenu): Use individual keymap's prompt
1630 string as pane name, if there is one.
1631 (set_frame_menubar): Save menu_items_n_panes from each call to
1632 parse_single_submenu and use it when calling digest_single_submenu.
1633
539e69a9
ST
16342003-01-20 Steven Tamm <steventamm@mac.com>
1635
1636 * macterm.c (XTread_socket): Checks for valid, visible window
1637 before sending a scroll-wheel event.
1638
675d000f
RS
16392003-01-20 Richard M. Stallman <rms@gnu.org>
1640
1641 * xdisp.c (redisplay_window): If mini window's buffer is not
1642 a minibuffer, then redisplay it like other windows.
1643
a97e4138 16442003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
1645
1646 * gtkutil.c (xg_create_frame_widgets): Check if there is an
1647 external tool bar before setting tool bar height.
1648
048addec
JD
16492003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1650
1651 * xterm.c (handle_one_xevent): Surround popup_activated
1652 with #ifdef:s for non-toolkit version.
1653
1654 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
1655 (gtkutil.o): New file.
1656 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
1657 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
1658
1659 * gtkutil.c: New file for GTK version.
1660
1661 * gtkutil.h: New file for GTK version.
1662
1663 * xterm.h: Add xt_or_gtk_widget.
1664 Include gtk files for USE_GTK.
1665 (struct x_output): Add toolbar_height.
1666 (struct x_output): Add GTK widgets and Gdk size_hints.
1667 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
1668 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
1669 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
1670
1671 * xterm.c: Include gtkutil.h for USE_GTK.
1672 Declare extern void free_frame_menubar for USE_GTK.
1673 (note_mouse_highlight): Check popup_activated for USE_GTK.
1674 (xt_action_hook): Don't compile if USE_GTK.
1675 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
1676 (xg_scroll_callback): New function.
1677 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
1678 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
1679 for USE_GTK.
1680 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
1681 xg_show_scroll_bar for USE_GTK.
1682 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
1683 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
1684 (event_handler_gdk): New function for USE_GTK.
1685 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
1686 (handle_one_xevent): Make sure widget is mapped before
1687 calling x_real_positions for USE_GTK.
1688 (XTread_socket): Add GTK event loop for USE_GTK.
1689 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
1690 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
1691 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
1692 (x_iconify_frame): Add code for USE_GTK.
1693 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
1694 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
1695 is in gtkutil.c.
1696 (x_term_init): Add initialization for GTK.
1697 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
1698
1699 * xmenu.c: Include gtkutil.h for USE_GTK.
1700 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
1701 (single_menu_item, single_menu_item, Fx_popup_dialog):
1702 Check for USE_GTK.
048addec
JD
1703 (popup_widget_loop): New function for USE_GTK.
1704 (x_activate_menubar): Add code for USE_GTK.
1705 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
1706 (menu_highlight_callback, menubar_selection_callback):
1707 Add USE_GTK versions.
048addec
JD
1708 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
1709 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
1710 (free_frame_menubar): Only compile if not USE_GTK. GTK version
1711 is in gtkutil.c.
1712 (popup_selection_callback): New version for USE_GTK.
1713 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 1714 one USE_X_TOOLKIT version.
048addec
JD
1715 (xmenu_show): Call create_and_show_popup_menu.
1716 (dialog_selection_callback): New version for USE_GTK.
1717 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 1718 one USE_X_TOOLKIT version.
048addec
JD
1719 (xdialog_show): Call create_and_show_dialog.
1720
1721 * xfns.c: Include gtkutil for USE_GTK.
1722 (x_window_to_frame, x_any_window_to_frame)
1723 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
1724 (x_top_window_to_frame): Add code for USE_GTK.
1725 (x_set_background_color): Call xg_set_background_color for GTK.
1726 (x_set_menu_bar_lines): Check for USE_GTK.
1727 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
1728 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
1729 (x_window): Call xg_create_frame_widgets for USE_GTK.
1730 (Fx_create_frame): Check for USE_GTK
1731 (Fx_file_dialog): New implementation for USE_GTK.
1732
1733 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
1734 (update_menu_bar): Add check for USE_GTK.
1735 (update_tool_bar): Add check for USE_GTK and external tool bar.
1736 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
1737 (redisplay_internal): Add check for USE_GTK and popup_activated.
1738 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
1739 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
1740 (display_menu_bar): Add check for USE_GTK
1741
1742 * lisp.h: Declare Vx_resource_name extern.
1743
1744 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
1745 for USE_GTK.
1746 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
1747
1748 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
1749 (FRAME_EXTERNAL_TOOL_BAR): New macro.
1750 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
1751
1752 * fileio.c (Fread_file_name): Add check for USE_GTK.
1753
6bdb309a
SM
1754 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
1755 Add check for USE_GTK.
048addec
JD
1756
1757 * config.in: Added HAVE_GTK
1758
1759 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
1760
17612003-01-18 Stefan Monnier <monnier@cs.yale.edu>
1762
1763 * charset.h (Funibyte_char_to_multibyte): Export.
1764
17652003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1766
1767 * xmenu.c (mouse_position_for_popup): New function.
1768 (Fx_popup_menu): Call mouse_position_for_popup for X and
1769 mouse_position_hook for others.
1770
17712003-01-17 Kim F. Storm <storm@cua.dk>
1772
1773 * editfns.c (Finsert): Mention `string-make-multibyte' and
1774 `string-as-multibyte' in doc string.
1775
17762003-01-17 Kenichi Handa <handa@m17n.org>
1777
1778 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 1779
048addec
JD
1780 * editfns.c (Fformat): Convert an unibyte char argument that is
1781 formatted by "%c" to multibyte if the total result must be a
1782 multibyte string.
cd7df9c0 1783
048addec 17842003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 1785
048addec
JD
1786 * process.c (set-process-filter): Document unibyte/multibyte-ness
1787 of string argument.
56210ecd 1788
048addec 17892003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 1790
048addec 1791 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 1792
048addec
JD
1793 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
1794 (re_search_2): Likewise.
6df8b9fe 1795
048addec 17962003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 1797
048addec
JD
1798 * xdisp.c (message_dolog): Fix bug of the case that *Message*
1799 buffer is unibyte.
292ddc31 1800
048addec 18012003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 1802
048addec 1803 * fns.c (Fsubstring): Clarify doc string.
292ddc31 1804
048addec
JD
1805 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
1806 (Fprevious_char_property_change)
1807 (Fnext_single_char_property_change)
1808 (Fprevious_single_char_property_change, Fnext_property_change)
1809 (Fnext_single_property_change, Fprevious_property_change)
1810 (Fprevious_single_property_change, Fadd_text_properties)
1811 (Fput_text_property, Fset_text_properties)
1812 (Fremove_text_properties, Fremove_list_of_text_properties)
1813 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 1814
048addec 18152003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 1816
048addec
JD
1817 * process.h (struct Lisp_Process): New member plist replaces old
1818 member private_vars. All uses changed.
63e4e4c6 1819
048addec 1820 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 1821 (QCplist): Rename from QCvars. Change all uses.
048addec 1822 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 1823 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 1824 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 1825 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 1826
048addec 18272003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 1828
6bdb309a 1829 * m/delta.h: Remove (obsolete).
e833850f 1830
048addec 18312003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 1832
048addec
JD
1833 * fileio.c (Fdelete_directory, Fdelete_file): Document the
1834 behaviour in front of symlinks.
1835 (Fdelete_file): Raise an error on directories.
817cb127 1836
048addec 18372003-01-13 Dave Love <fx@gnu.org>
817cb127 1838
048addec 1839 * fns.c (Freverse): Use QUIT.
3e8cf2ea 1840
048addec 18412003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 1842
048addec
JD
1843 * minibuf.c (minibuffer_completion_contents):
1844 Error if point is inside prompt.
3e8cf2ea 1845
048addec
JD
1846 * keyboard.c (command_loop_1): Don't redisplay directly
1847 if there's a post-command-hook.
3e8cf2ea 1848
048addec
JD
1849 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
1850 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 1851
048addec 18522003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 1853
048addec 1854 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 1855
048addec
JD
1856 * process.c (QCvars): New variable.
1857 (syms_of_process): Intern and staticpro it.
1858 (Fset_process_contact): Removed function.
1859 (Fprocess_variable, Fset_process_variable): New functions.
1860 (syms_of_process): Defsubr them.
1861 (Fstart_process): Initialize private_vars plist to nil.
1862 (Fmake_network_process): New arg :vars to setup the private
1863 variables for new network process.
1864 (server_accept_connection): Copy server's private variables to
1865 client process.
2c10f029 1866
048addec
JD
1867 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
1868 crashes). Code rewritten and simplified. Now directly aligns the
1869 pointer and recalculates pure_bytes_used, rather than aligning the
1870 size and adjusting the pointer.
b8a76c6c 1871
048addec 18722003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 1873
048addec
JD
1874 * process.c (Fset_process_contact): New function.
1875 (syms_of_process): defsubr it.
1876 (make-network-process): Update doc.
3a8d0899 1877
048addec 18782003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 1879
048addec
JD
1880 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
1881 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 1882
048addec 18832003-01-10 Dave Love <fx@gnu.org>
4abc7470 1884
048addec 1885 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 1886
048addec 18872003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 1888
048addec
JD
1889 * process.c (Fmake_network_process): Convert new port number
1890 to host byte order for `:service t' case. From Mario Lang.
bf338245 1891
048addec 18922003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 1893
048addec
JD
1894 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
1895 instead of XtAppProcessEvent.
bf338245 1896
048addec
JD
1897 * xterm.c (handle_one_xevent): New function.
1898 (x_dispatch_event): New function.
1899 (XTread_socket): Call handle_one_xevent.
bf338245 1900
048addec 1901 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 1902
048addec
JD
1903 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
1904 call XQueryPointer to get coordinates.
1905 (popup_get_selection): Do not set popup_activated_flag to zero,
1906 let popup_deactivate_callback do that. Needed for Motif.
1907 Call x_dispatch_event instead of XtDispatchEvent.
1908 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 1909
048addec 19102003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 1911
6bdb309a 1912 * process.c (server_accept_connection): Fix recording of new
048addec
JD
1913 connection's local address in :local property of contact info.
1914 (Fmake_network_process): Record local network address for new
1915 client processes in :local property of contact info.
6bdb309a 1916 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 1917
048addec 19182003-01-07 Dave Love <fx@gnu.org>
00e3ab56 1919
048addec 1920 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 1921
048addec 19222003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 1923
048addec 1924 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 1925
048addec
JD
1926 * eval.c (Fuser_variable_p): Doc change. For custom variables,
1927 use the same test as for custom-variable-p.
8c6d74c6 1928
048addec 19292003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 1930
048addec
JD
1931 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
1932 Count LAST_LINE_MISFIT in scroll margin for end of window.
1933 Move label too_near_end before setting SCROLL_MARGIN_POS.
1934 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 1935
048addec
JD
1936 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
1937 scroll_conservatively case. If scrolling that much doesn't change
1938 STARTP, move it down one line.
e833850f 1939
048addec
JD
1940 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
1941 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 1942
048addec
JD
1943 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
1944 selected frame.
8c6d74c6 1945
048addec
JD
1946 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
1947 (syms_of_keymap): staticpro them.
1948 (Fapropos_internal): Initialize them and clear them out.
1949 Don't GCPRO them.
8c6d74c6 1950
048addec
JD
1951 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
1952 Doc fixes.
8c6d74c6 1953
048addec
JD
1954 * lisp.h: New misc type Lisp_Save_Value.
1955 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
1956 (XSAVE_VALUE): New macro.
1957 (struct Lisp_Save_Value): New data type.
1958 (union Lisp_Misc): Add u_save_value alternative.
1959 (make_save_value): Declared.
8c6d74c6 1960
048addec 1961 * alloc.c (make_save_value): New function.
8c6d74c6 1962
048addec
JD
1963 * xterm.c (x_catch_errors): Save dpy using make_save_value.
1964 (x_catch_errors_unwind): Call XSync.
8c6d74c6 1965
048addec 19662003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 1967
048addec 1968 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 1969
048addec
JD
1970 * keyboard.c (command_loop_1): Call adjust_point_for_property
1971 in direct action cases for Qforward_char and Qbackward_char.
1972 Set already_adjusted so it won't be done twice.
8c6d74c6 1973
048addec 19742002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
8c6d74c6 1975
048addec
JD
1976 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
1977 type definition of size_t.
8c609cff 1978
048addec 19792003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 1980
048addec
JD
1981 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
1982 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 1983
048addec 19842002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 1985
048addec
JD
1986 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
1987 to default to t.
fa634a5e 1988
048addec 19892002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 1990
048addec 1991 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 1992
048addec 19932002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 1994
048addec
JD
1995 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
1996 allow building in a different directory than source. Uses some
1997 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 1998
048addec 19992002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 2000
048addec
JD
2001 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
2002 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
2003 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
2004 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 2005
048addec 20062002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 2007
048addec
JD
2008 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
2009 <scroll-down-aggressively>: Doc fix.
2155ecf3 2010
048addec
JD
2011 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
2012 string as pane name, if there is one.
2013 (set_frame_menubar): Save menu_items_n_panes from each call to
2014 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 2015
048addec
JD
2016 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
2017 Don't try to make last line fully visible if it is past end of window.
61f1d295 2018
048addec 20192002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 2020
048addec
JD
2021 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
2022 (mac_menu_show): Add support for hierarchical popup menus.
2023 (add_menu_item): Remove indentation support.
2024 (fill_submenu, fill_menu): Create hierarchical menus
2025 instead of using indentation.
0b17a217 2026
048addec 20272002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 2028
048addec
JD
2029 * xdisp.c (try_cursor_movement): Don't call try_window here.
2030 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 2031
048addec 2032 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 2033
048addec 20342002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 2035
048addec
JD
2036 * macterm.c (XTread_socket): Call KeyTranslate for control and
2037 meta to deal correctly shifted non-alpha characters, like C-S-5
2038 being treated like C-%. Does not look for shift key to deal
2039 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 2040
048addec 20412002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 2042
048addec
JD
2043 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
2044 If it is non-nil, run timers. Use an unwind-protect to requeue
2045 the events that were read ahead.
2046 (popup_get_selection_unwind): New subroutine.
2047 (popup_get_selection_queue): File-scope variable now holds that queue.
2048 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
2049 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
2050 Use an unwind-protect to pop down the dialog box.
2051 (xdialog_show_unwind): New subroutine implements that.
f02cac82 2052
048addec
JD
2053 * xdisp.c (row_containing_pos): Change exit test using last_y.
2054 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 2055
048addec
JD
2056 * lread.c (load_error_handler): New function.
2057 (Fload): Handle errors in Fsubstitute_in_file_name.
2058 Don't expect Fsignal to return.
f02cac82 2059
048addec
JD
2060 * eval.c: Errors and throws work right with interrupt blocking.
2061 (struct catchtag): New elt interrupt_input_blocked.
2062 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
2063 (internal_catch, Fcondition_case, internal_condition_case)
2064 (internal_condition_case_1, internal_condition_case_2): Save it.
2065 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 2066
048addec 2067 * editfns.c (Fformat): Add parens.
f02cac82 2068
048addec
JD
2069 * dired.c (file_name_completion): Fix that change.
2070 Delete special quit-handling code; just use QUIT.
f02cac82 2071
048addec 20722002-12-21 Tak Ota <Takaaki.Ota@am.sony.com> (tiny change)
f02cac82 2073
048addec
JD
2074 * dired.c (file_name_completion): Close directory on error
2075 just as in directory_files_internal.
1a590729 2076
048addec 20772002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 2078
048addec
JD
2079 * window.c (Fset_window_configuration): Set old_point to correct
2080 value when new_current_buffer == current_buffer.
f02cac82 2081
048addec 20822002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 2083
048addec
JD
2084 Revisited my earlier fix for the following entry in etc/PROBLEMS:
2085 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
2086 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 2087
048addec
JD
2088 These changes were in part based upon suggestions made by Peter
2089 'Luna' Runestig [peter@runestig.com].
9785d95b 2090
048addec
JD
2091 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
2092 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 2093 g_b_init_get_sid_identifier_authority ): Add several static
048addec 2094 global variables.
9785d95b 2095
048addec
JD
2096 * w32.c (globals_of_w32): New function. Used to initialize those
2097 global variables that must always be initialized on startup even
2098 when the global variable initialized is non zero. Its primary
2099 purpose at this time is to set the global variables
2100 g_b_init_is_windows_9x, g_b_init_open_process_token,
2101 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
2102 g_b_init_get_sid_identifier_authority to 0 on startup.
2103 Called from main.
9785d95b 2104
048addec
JD
2105 * w32.c (is_windows_9x): Perform initialization only if
2106 g_b_init_is_windows_9x is equal to 0. On initialization set
2107 g_b_init_is_windows_9x equal to 1.
2308af15 2108
048addec
JD
2109 * w32.c (open_process_token): Perform initialization only if
2110 g_b_init_open_process_token is equal to 0. On initialization set
2111 g_b_init_open_process_token equal to 1.
2308af15 2112
048addec
JD
2113 * w32.c (get_token_information): Perform initialization only if
2114 g_b_init_get_token_information is equal to 0. On initialization
2115 set g_b_init_get_token_information equal to 1.
9785d95b 2116
048addec
JD
2117 * w32.c (lookup_account_sid): Perform initialization only if
2118 g_b_init_lookup_account_sid is equal to 0. On initialization
2119 set g_b_init_lookup_account_sid equal to 1.
9785d95b 2120
048addec
JD
2121 * w32.c (get_sid_identifier_authority): Perform initialization
2122 only if g_b_init_get_sid_identifier_authority is equal to 0.
2123 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 2124
048addec
JD
2125 * w32fns.c (globals_of_w32fns): New function. Used to initialize
2126 those global variables that must always be initialized on startup
2127 even when the global variable initialized is non zero.
2128 Its primary purpose at this time is to initialize the global variable
2129 track_mouse_event_fn.
9785d95b 2130
048addec
JD
2131 * w32fns.c (w32_wnd_proc): Remove initialization of
2132 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 2133
048addec 2134 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 2135
048addec
JD
2136 * w32menu.c (globals_of_w32menu): New function. Used to
2137 initialize those global variables that must always be initialized
2138 on startup even when the global variable initialized is non zero.
2139 Its primary purpose at this time is to initialize the global
2140 variables get_menu_item_info and set_menu_item_info.
9785d95b 2141
048addec
JD
2142 * w32menu.c (initialize_frame_menubar): Remove initialization of
2143 get_menu_item_info and set_menu_item_info.
9785d95b 2144
048addec 2145 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 2146
048addec
JD
2147 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
2148 Declare them.
9785d95b 2149
048addec
JD
2150 * emacs.c (main): Call globals_of_w32 prior to calling
2151 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
2152 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
2153 is defined.
9785d95b 2154
048addec
JD
2155 * w32term.c (x_update_window_begin): Fix Windows API error
2156 detected by BoundsChecker. Test to determine if
2157 w32_system_caret_hwnd is NULL prior to attempting to use
2158 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 2159
048addec
JD
2160 * w32term.c (x_update_window_end): Fix Windows API error
2161 detected by BoundsChecker. Test to determine if
2162 w32_system_caret_hwnd is NULL prior to attempting to use
2163 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 2164
048addec 21652002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 2166
048addec
JD
2167 * coding.c (coding_system_require_warning): New variable.
2168 (syms_of_coding): DEFVAR it.
b6da19ef 2169
048addec 2170 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 2171
048addec
JD
2172 * fileio.c (choose_write_coding_system): Even if
2173 Vcoding_system_for_write is non-nil, if
2174 coding_system_require_warning is nonzero, call
2175 Vselect_safe_coding_system_function.
bfcf6dbe 2176
048addec 21772002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 2178
048addec
JD
2179 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
2180 (lisp): Add font-core.
2c568af5 2181
048addec 21822002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 2183
048addec
JD
2184 * textprop.c (text_read_only): New arg `propval'.
2185 (get_char_property_and_overlay): Remove unused var `next_overlay'.
2186 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 2187
048addec 21882002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 2189
048addec 2190 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 2191
048addec 21922002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 2193
048addec
JD
2194 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
2195 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
2196 Be more careful about when help_events are generated.
96720f09 2197
048addec 21982002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 2199
048addec
JD
2200 * macterm.c (mac_check_for_quit_char): Correctly set the
2201 modifiers of the event to 0.
2202 * mac.c (sys_select): Duplicate rfds before calling select to
2203 ensure that rfds survive the while loop.
e5ae1c49 2204
048addec 22052002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 2206
048addec
JD
2207 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
2208 row_containing_pos returned NULL.
2eb46b2d 2209
048addec 22102002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 2211
6bdb309a 2212 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 2213 non-blocking.
6bdb309a 2214 (sys_select): Fix sys_select to not use a timeout larger than
048addec 2215 the one given.
b11f1d8a 2216
048addec 22172002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 2218
048addec 2219 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 2220
048addec 22212002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 2222
048addec
JD
2223 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
2224 as the last thing.
a4ac5b17 2225
048addec 22262002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 2227
048addec 2228 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 2229
048addec 22302002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 2231
048addec
JD
2232 * editfns.c (Fformat): Handle precision in string conversion
2233 specifiers like libc functions do (ie, print at most that many
2234 characters).
85cce843 2235
048addec 22362002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 2237
048addec
JD
2238 * xdisp.c (row_containing_pos): Check more carefully
2239 whether charpos is really in the row before returning it.
0d4d26a7 2240
048addec 22412002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 2242
048addec 2243 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 2244
048addec
JD
2245 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
2246 each stack frame. This may change as it could be time consuming.
0d4d26a7 2247
048addec
JD
2248 * macterm.c (mac_check_for_quit_char, quit_char_comp)
2249 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 2250 (mac_initialize): Add code to check for pressing of quit_char
048addec 2251 in the OS event queue.
b11f1d8a 2252
048addec
JD
2253 * mac.c (sys_select): Call mac_check_for_quit_char every second
2254 while blocking on select.
0d4d26a7 2255
048addec
JD
2256 * mac.c (sys_read): Use sys_select to test for input first
2257 before calling read, to allow C-g to break.
9252f7bc 2258
048addec 22592002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 2260
048addec 2261 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 2262
048addec 2263 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 2264
048addec 2265 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 2266
048addec
JD
2267 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
2268 autoload.
9252f7bc 2269
048addec 2270 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 2271
048addec 2272 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 2273
048addec 22742002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 2275
048addec 2276 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 2277
048addec 22782002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 2279
048addec 2280 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 2281
048addec 2282 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 2283
048addec 2284 * alloca.c: Don't use #error.
02d588e2 2285
048addec 22862002-12-03 Dave Love <fx@gnu.org>
02d588e2 2287
048addec
JD
2288 * buffer.c (Qucs_set_table_for_input): New.
2289 (Fget_buffer_create): Use it.
2290 (Qset_buffer_major_mode_hook): Deleted.
2291 (Fset_buffer_major_mode): Revert previous change.
2292 (init_buffer_once): Intern ucs-set-table-for-input.
2293 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
2294 Add &Qucs_set_table_for_input.
451e2697 2295
048addec 22962002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 2297
048addec
JD
2298 * callint.c (Fcall_interactively): Use next_event only if less
2299 than key_count.
72742a99 2300
048addec 23012002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 2302
048addec
JD
2303 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
2304 names to 255 characters.
72742a99 2305
048addec
JD
2306 * macterm.c (XTread_socket): If all frames have been collapsed,
2307 expand the first one before handling drag-and-drop events.
72742a99 2308
048addec
JD
2309 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
2310 which is detected by autoconf.
40e6ff95 2311
048addec 23122002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 2313
048addec
JD
2314 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
2315 offset in two hints table to allow prebinding to be redone and
2316 allow the executable to be stripped.
c02138c6 2317
048addec 23182002-11-29 Dave Love <fx@gnu.org>
c02138c6 2319
048addec
JD
2320 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
2321 already provided.
0e47bbf7 2322
048addec 23232002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 2324
048addec
JD
2325 * xdisp.c (start_display): Check more intelligently for
2326 whether the line is continued.
2327 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 2328
048addec 23292002-11-28 Dave Love <fx@gnu.org>
44129dcb 2330
048addec
JD
2331 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
2332 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 2333
048addec 23342002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 2335
048addec
JD
2336 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
2337 more descriptive error output from lread.c:Fload upon most require
2338 cycles during boostrapping.
1637fd2c 2339
048addec 23402002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 2341
048addec
JD
2342 * fileio.c (Finsert_file_contents): Give a more appropriate error
2343 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 2344
048addec
JD
2345 * dired.c (Ffile_attributes): Don't return negative file sizes for
2346 files bigger than 2Gb when off_t is 32 bit.
540c2788 2347
048addec 23482002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 2349
048addec 2350 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 2351
048addec
JD
2352 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
2353 Test GETPGRP_VOID instead.
2354 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 2355
048addec
JD
2356 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
2357 Don't define.
2358 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 2359
048addec 2360 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 2361
048addec 23622002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 2363
048addec
JD
2364 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
2365 supported.
4042a81a 2366
048addec 23672002-11-25 Dave Love <fx@gnu.org>
4042a81a 2368
048addec 2369 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 2370
048addec 2371 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 2372
048addec 23732002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 2374
048addec 2375 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 2376
048addec 23772002-11-24 Steven Tamm <steventamm@mac.com>
82122254 2378
048addec
JD
2379 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
2380 determine the size of pointers alloced in unexed space instead
2381 of using possibly invalid emacs_zone pointers. This fixes the
2382 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 2383
048addec 23842002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 2385
048addec 2386 * search.c (Fstring_match): Doc fix.
c1ee53bc 2387
048addec
JD
2388 * callint.c (Fcall_interactively): If a command fails because
2389 `*' detects a read-only buffer, but RECORD_FLAG is set,
2390 record it anyway if the args don't actually do tty input.
5598c32e 2391
048addec 23922002-11-22 Dave Love <fx@gnu.org>
5598c32e 2393
048addec 2394 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 2395
048addec
JD
2396 * keyboard.c (interrupt_signal): Provide forward declaration.
2397 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 2398
048addec 2399 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 2400
048addec 24012002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 2402
048addec
JD
2403 * eval.c (interactive_p): Skip any number of bytecode
2404 and special form frames, in any order.
516eea8e 2405
048addec 24062002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 2407
048addec
JD
2408 * w32fns.c (convert_mono_to_color_image): New function.
2409 (xbm_load, xbm_load_image): Use it when foreground or background
2410 is explicitly set.
04dbfa08 2411
048addec 24122002-11-19 Dave Love <fx@gnu.org>
04dbfa08 2413
048addec 2414 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 2415
048addec 24162002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 2417
048addec
JD
2418 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
2419 (XPutPixel): Swap blue and red.
2420 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
2421 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
2422 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
2423 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 2424
048addec 24252002-11-18 Dave Love <fx@gnu.org>
d824beee 2426
048addec 2427 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 2428
048addec 2429 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 2430
048addec 2431 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 2432
048addec
JD
2433 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
2434 malloc, realloc, calloc.
d824beee 2435
048addec
JD
2436 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
2437 (bcmp): Don't define.
d824beee 2438
048addec 2439 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 2440
048addec 2441 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 2442
048addec 2443 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 2444
048addec 2445 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 2446
048addec
JD
2447 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
2448 Don't include alloca.h.
d824beee 2449
048addec 2450 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 2451
048addec 2452 * regex.c (_GNU_SOURCE): Don't define.
1998560a 2453
048addec 2454 * process.c (_GNU_SOURCE): Don't define.
1998560a 2455
048addec 2456 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 2457
048addec 24582002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 2459
048addec 2460 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 2461
048addec 24622002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 2463
048addec
JD
2464 * dispextern.h (struct face): Add `overstrike' field.
2465 * xterm.c (x_draw_glyph_string_foreground)
2466 (x_draw_composite_glyph_string_foreground): Implement overstriking.
2467 * xfaces.c (load_face_font): Set `face->overstrike' based on
2468 result from choose_face_font.
2469 (best_matching_font, choose_face_font): Add `needs_overstrike'
2470 argument, and use it to return whether overstriking is desirable
2471 for this face/font combo.
2472 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 2473
048addec 24742002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 2475
048addec
JD
2476 This change is my fix for the following entry in etc/PROBLEMS:
2477 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
2478 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 2479
048addec
JD
2480 * w32.c: Added wrapper functions around the win32 API functions
2481 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
2482 GetSidIdentifierAuthority. These wrapper functions serve two
2483 purposes:
2484 1. They ensure that the wrapped function can never be called
2485 when Emacs is running on an operating system on which they are
2486 not supported (Microsoft Windows 95 / 98 / ME).
2487 2. They call the wrapped functions via function pointers rather
2488 than calling them directly. This avoids taking advantage of the
2489 undocumented fact that although these functions are not supported
2490 in the 9x branch of Microsoft Windows, the functions do exist in
2491 the version of advapi32.dll that is found in the 9x branch of
2492 Microsoft Windows.
f60ae425 2493
6bdb309a 2494 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
2495 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
2496 and GetSidIdentifierAuthority with calls to the newly added
2497 wrapper functions.
f60ae425 2498
048addec
JD
2499 * w32.h: Added extern declarations for the following functions:
2500 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
2501 syms_of_w32menu, and void syms_of_fontset.
f60ae425 2502
6bdb309a 2503 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
2504 function pointer track_mouse_event_fn in the handler for the
2505 WM_SETFOCUS message.
3582b6a3 2506
6bdb309a 2507 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
2508 reinitialize the function pointers set_menu_item_info and
2509 get_menu_item_info.
f60ae425 2510
048addec 25112002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 2512
048addec
JD
2513 * sound.c: Added a partial implementation of play-sound-internal
2514 for Microsoft Windows. Added various #ifdef / #else / #endif
2515 code blocks to separate the code that will compile under
2516 Microsoft Windows from the code that is specific to Gnu/Linux.
2517 Moved several blocks of code around to make this separation of code
2518 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 2519
048addec 2520 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 2521
048addec
JD
2522 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
2523 added support for play-sound-internal under Windows would be
2524 included in the build of Emacs.
517f42a0 2525
048addec 25262002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 2527
048addec 2528 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 2529
048addec 2530 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 2531
048addec 25322002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 2533
048addec
JD
2534 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
2535 (adjust_point_for_property): Move out of display and invisible even if
2536 we were already inside before (in case a property was added while
2537 we weren't looking). Be more careful when handling invisible props.
2538 Skip invisible text as if it really wasn't there at all.
aab83f91 2539
048addec 25402002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 2541
048addec
JD
2542 * w32term.c (x_draw_image_foreground)
2543 (w32_draw_image_foreground_1): Use standard copy and invert
2544 operations to draw images.
aab83f91 2545
048addec
JD
2546 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
2547 depth of 1.
2548 (xbm_read_bitmap_data): Invert bits as xbm is read in.
2549 (XPutPixel): Don't invert bits here.
a4478a76 2550
048addec 25512002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 2552
048addec
JD
2553 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
2554 (w32_draw_image_foreground_1): Handle image masks.
2555 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 2556
048addec
JD
2557 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
2558 (x_from_xcolors): Adjust RGB values for W32.
2559 (image_background, image_background_transparent)
2560 (postprocess_image, x_to_xcolors, x_disable_image)
2561 (x_build_heuristic_mask): Adapt for W32 and enable.
2562 (x_create_x_image_and_pixmap): Mark images with palettes as such.
2563 (xbm_load): Remove unused variable.
03670a65 2564
048addec 25652002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 2566
048addec 2567 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 2568
048addec 25692002-11-14 Dave Love <fx@gnu.org>
59daa29a 2570
048addec 2571 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 2572
048addec
JD
2573 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
2574 * xmenu.c (unuse_menu_items, digest_single_submenu):
2575 * xfns.c (x_put_x_image):
2576 * xdisp.c (message2_nolog, set_message):
2577 * undo.c (record_point):
2578 * terminfo.c (tparam):
2579 * syntax.c (scan_sexps_forward):
2580 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
2581 * composite.c (update_compositions):
2582 * cm.c (calccost, cmgoto):
2583 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 2584
048addec 2585 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 2586
048addec
JD
2587 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
2588 Don't declare.
59daa29a 2589
048addec 2590 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 2591
048addec
JD
2592 * fns.c (Fcopy_sequence): Doc fix.
2593 (Fmap_char_table): Cast `call2'.
3947677c 2594
048addec
JD
25952002-11-14 Francesco Potorti` <pot@gnu.org>
2596
2597 * s/sol2-8.h: New file.
2598
25992002-11-14 Kim F. Storm <storm@cua.dk>
2600
2601 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
2602 dependency on `risky-local-variable' and the :propertize form.
2603
26042002-11-12 Stefan Monnier <monnier@cs.yale.edu>
2605
2606 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
2607
2608 * syntax.c (scan_sexps_forward): Undo last patch.
2609 Use a more obvious fix: check eob before updating the syntax table.
2610
26112002-11-09 Stefan Monnier <monnier@cs.yale.edu>
2612
2613 * syntax.c (scan_sexps_forward): Update syntax table before reading
2614 a char rather than after so we don't update the table past eob.
2615
26162002-11-09 Dave Love <fx@gnu.org>
2617
2618 * buffer.c (Fset_buffer_major_mode): Fix last change.
2619
2620 * regex.c (regexec): Fix pmatch declaration.
2621
2622 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
2623
2624 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
2625 to self-inserting characters.
2626 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
2627
2628 * coding.c (Vtranslation_table_for_input): New.
2629 (syms_of_coding): DEFVAR it.
2630
26312002-11-08 Juanma Barranquero <lektu@terra.es>
2632
2633 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
2634 window.
2635
26362002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2637
6bdb309a 2638 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
2639 cp, and i.
2640
26412002-11-06 Dave Love <fx@gnu.org>
2642
2643 * buffer.c (Qset_buffer_major_mode_hook): New.
2644 (Fset_buffer_major_mode): Use it.
2645
26462002-11-06 Richard M. Stallman <rms@gnu.org>
2647
2648 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
2649 and stop_polling.
2650
2651 * process.c (wait_reading_process_input):
2652 Test POLLING_PROBLEM_IN_SELECT, not hpux.
2653 Avoid initialization for auto Lisp_Object var.
2654
2655 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
2656
2657 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
2658
26592002-11-05 Richard M. Stallman <rms@gnu.org>
2660
2661 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
2662
2663 * callint.c (Fcall_interactively): New local filter_specs.
2664 (Fcall_interactively): Check for progn as well as let.
2665 Add a gcpro.
2666 (Qprogn): New variable.
2667 (syms_of_callint): Staticpro and init Qprogn.
2668
26692002-11-04 John Paul Wallington <jpw@shootybangbang.com>
2670
2671 * lread.c (Feval_buffer): Doc fix.
2672
26732002-11-04 Dave Love <fx@gnu.org>
2674
2675 * keyboard.c (read_char): Always translate iff
2676 Vkeyboard_translate_table is a char table and c is valid.
2677
2678 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
2679 and fix C types.
2680
26812002-11-03 Stefan Monnier <monnier@cs.yale.edu>
2682
2683 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
2684
2685 * editfns.c (get_pos_property): Don't hardcode Qfield.
2686
2687 * keyboard.c (adjust_point_for_property): Handle `display' prop on
2688 overlays. Also handle `invisible' prop.
2689
26902002-11-02 Stefan Monnier <monnier@cs.yale.edu>
2691
2692 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
2693 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
2694
26952002-11-01 Andreas Schwab <schwab@suse.de>
2696
2697 * editfns.c (Fmessage): Revert last change to properly handle %%.
2698
26992002-11-01 Stefan Monnier <monnier@cs.yale.edu>
2700
2701 * xmenu.c (unuse_menu_items): New fun.
2702 (menu_items_inuse): New var.
2703 (syms_of_xmenu): Initialize it.
2704 (init_menu_items): Use it to detect re-entrance.
2705 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
2706 (Fx_popup_menu): Remove spurious XSETFRAME.
2707
2708 * editfns.c (find_field): Make an exception for nil fields.
2709
27102002-11-01 Dave Love <fx@gnu.org>
2711
2712 * m/gec63.h: Deleted.
2713
27142002-10-31 Dave Love <fx@gnu.org>
2715
2716 * xterm.c (XTread_socket): Fix last change.
2717 (xaw_scroll_callback): Cast call_data to long to avoid warning.
2718
27192002-10-31 Stefan Monnier <monnier@cs.yale.edu>
2720
2721 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
2722
27232002-10-30 Stefan Monnier <monnier@cs.yale.edu>
2724
2725 * editfns.c (overlays_around, get_pos_property): New funs.
2726 (find_field): Use them.
2727 Also be careful not to modify POS before its last use.
2728 (Fmessage): Don't Fformat if there's nothing to format.
2729
27302002-10-30 Dave Love <fx@gnu.org>
2731
2732 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
2733 [HAVE_PTY_H]; Include pty.h.
2734
2735 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
2736
2737 * xterm.c (Qeql): Declare.
2738 (Vx_keysym_table): New.
2739 (syms_of_xterm): Initialize it.
2740 (XTread_socket): Use it. Deal with ASCII keysyms.
2741 (XSetIMValues) [HAVE_X11R6]: Prototype.
2742
2743 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
2744 (lispy_kana_keys): Comment out.
2745 (make_lispy_event) [XK_kana_A]: Comment out.
2746 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
2747 Fix sprintf call.
2748
2749 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
2750 regexp.h change).
2751 (TERMINFO, LIBS_TERMCAP): Define.
2752
2753 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
2754 (bcmp): Define conditional on HAVE_BCMP.
2755 (NO_SIOCTL_H): Don't define.
2756 (TIOCSIGSEND): Don't make conditional on IRIX6.
2757
2758 * s/sol2-5.h: Don't include strings.h.
2759 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
2760
2761 * s/irix6-0.h (IRIX6): Don't define.
2762 (bcopy, bcmp, bzero): Don't undef.
2763
2764 * s/irix6-5.h: Don't include strings.h.
2765 (IRIX6): Don't define.
2766 (bcopy, bcmp, bzero): Don't undef.
2767
2768 * syntax.c (Fforward_comment): Doc fix.
2769
27702002-10-29 Kim F. Storm <storm@cua.dk>
2771
2772 * process.c (Fsignal_process): Allow PROCESS to be specified by
2773 name in addition to pid (as integer or string).
2774
27752002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
2776
2777 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
2778 environments.
2779
27802002-10-27 Kim F. Storm <storm@cua.dk>
2781
2782 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
2783
2784 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
2785
2786 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
2787
2788 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
2789
27902002-10-26 Richard M. Stallman <rms@gnu.org>
2791
2792 * editfns.c (Fformat): Detect invalid format letters for floats.
2793
27942002-10-25 Kenichi Handa <handa@m17n.org>
2795
2796 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
2797 (x_set_title): Likewise.
2798
27992002-10-25 Juanma Barranquero <lektu@terra.es>
2800
2801 * macgui.h:
2802 * w32gui.h: Remove definition of XColor.
2803
2804 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
2805
28062002-10-24 Kim F. Storm <storm@cua.dk>
2807
2808 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
2809 Callers changed (supply dummy arg).
2810
2811 * lisp.h (get_window_cursor_type): Update prototype.
2812
2813 * w32term.c (x_display_and_set_cursor): Get active_cursor from
2814 get_window_cursor_type to track system caret.
2815
28162002-10-24 Kim F. Storm <storm@cua.dk>
2817
2818 * process.c (Fformat_network_address): New function.
2819 (syms_of_process): Defsubr it.
2820 (list_processes_1): Use it to format :local/:remote address if
2821 service/host is not set; before emacs would crash in that case.
2822 (Fmake_network_process): Don't use Ffind_operation_coding_system
2823 to setup coding system if host or service is not set.
2824
28252002-10-23 Juanma Barranquero <lektu@terra.es>
2826
2827 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
2828
2829 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
2830 COLORREF.
2831
2832 * macgui.h:
2833 * w32gui.h: Add definition of XColor.
2834
2835 * macfns.c:
2836 * w32fns.c:
2837 * xfaces.c: Remove definition of XColor.
2838
28392002-10-22 Stefan Monnier <monnier@cs.yale.edu>
2840
2841 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
2842
2843 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
2844 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
2845 window if it is dedicated.
2846 (Fshrink_window): Add preserve_before as was done for enlarge_window.
2847 (Vspecial_display_function): Update docstring.
2848
2849 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
2850 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
2851 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
2852
28532002-10-21 Stefan Monnier <monnier@cs.yale.edu>
2854
2855 * casefiddle.c (casify_region): Don't treat a prefix char as part
2856 of a word when at the beginning.
2857
28582002-10-17 Juanma Barranquero <lektu@terra.es>
2859
2860 * lread.c (syms_of_lread): Fix typos.
2861
28622002-10-17 Dave Love <fx@gnu.org>
2863
2864 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
2865
28662002-10-16 Richard M. Stallman <rms@gnu.org>
2867
2868 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
2869
28702002-10-14 Juanma Barranquero <lektu@terra.es>
2871
2872 * w16select.c (syms_of_win16select): Fix docstring for
2873 `selection-coding-system'.
2874
2875 * w32select.c (syms_of_w32select): Likewise.
2876
28772002-10-14 Stefan Monnier <monnier@cs.yale.edu>
2878
2879 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
2880 a backslash-quoted char.
2881 (scan_lists, scan_sexps_forward): Pacify the compiler.
2882
28832002-10-13 Richard M. Stallman <rms@gnu.org>
2884
2885 * window.c (window_scroll): Set immediate_quit.
2886
2887 * print.c (print): When backquote form is the car of a list,
2888 output in old style. Use old_backquote_output to output all
2889 comma forms inside it in old style too.
2890
2891 * buffer.h (struct buffer): Move `undo_list' down below `name'.
2892
28932002-10-11 Markus Rost <rost@math.ohio-state.edu>
2894
2895 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
2896 batch mode).
2897
2898 * lread.c (Fload): Doc fix (load-suffixes).
2899
29002002-10-10 Steven Tamm <steventamm@mac.com>
2901
2902 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
2903 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
2904 Also switch the default to Qnil from Qt.
2905
29062002-10-08 Kenichi Handa <handa@m17n.org>
2907
2908 * coding.c (code_convert_region): When we need more GAP for
2909 conversion, pay attention to the case that coding->produced is not
2910 greater than coding->consumed.
2911
29122002-10-07 Richard M. Stallman <rms@gnu.org>
2913
2914 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
2915
29162002-10-06 Andrew Choi <akochoi@shaw.ca>
2917
2918 * macmenu.c (mac_menu_show): Add j to count menu items; match
2919 menu_item_selection to it to find selected item.
2920
29212002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2922
2923 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
2924 cases. The correct fix is to pass ReparentNotify to Xt.
2925 The shell widget interprets ConfigureNotify differently depending
2926 on if it has been reparented or not.
2927
29282002-10-05 Markus Rost <rost@math.ohio-state.edu>
2929
2930 * editfns.c (Fformat_time_string): Doc fix.
2931
29322002-10-05 John Paul Wallington <jpw@shootybangbang.com>
2933
2934 * fns.c (Flength): Doc fix.
2935
29362002-10-04 Stefan Monnier <monnier@cs.yale.edu>
2937
2938 * keyboard.c (keyremap): New struct.
2939 (read_key_sequence): Use it: globally replace keytran_foo with
2940 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
2941 keytran_next and fkey_next to just `next'.
2942
29432002-10-04 Steven Tamm <steventamm@mac.com>
2944
2945 * macterm.c (keycode_to_xkeysym_table): Change return to be
2946 treated like an X keysym.
2947
29482002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2949
2950 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
2951 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
2952 This is to also handle x/y changes that occur because of a resize.
2953
29542002-10-02 John Paul Wallington <jpw@shootybangbang.com>
2955
2956 * frame.c (Vdelete_frame_functions): New variable.
2957 (syms_of_frame): Initialize and defvar it.
2958 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
2959 it when frame's `tooltip' parameter is non-nil.
2960
2961 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
2962
2963 * w32fns.c (x_create_tip_frame): Likewise.
2964
2965 * macfns.c (x_create_tip_frame): Likewise.
2966
29672002-09-30 Kenichi Handa <handa@m17n.org>
2968
2969 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
2970 -1 before calling ccl_driver.
2971
2972 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
2973 Only when it is non-nil, handle composition sequence.
2974 (setup_coding_system) <0>: Don't force composition handling.
2975
2976 * Makefile.in (lisp, shortlisp): Add utf-16.elc
2977
29782002-09-29 Richard M. Stallman <rms@gnu.org>
2979
2980 * search.c (Freplace_match): Adjust match data for the substitution
2981 just made in the buffer.
2982
2983 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
2984 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
2985
29862002-09-27 Richard M. Stallman <rms@gnu.org>
2987
2988 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
2989 (read_char): Use them. Do all exits thru the end of the function.
2990
29912002-09-27 Kenichi Handa <handa@etl.go.jp>
2992
2993 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
2994 is nil.
2995
29962002-09-26 Richard M. Stallman <rms@gnu.org>
2997
2998 * regex.h (__restrict_arr): Don't define if already defined.
2999
3000 * coding.c (run_pre_post_conversion_on_str):
3001 Save and restore Vdeactivate_mark.
3002
30032002-09-26 John Paul Wallington <jpw@shootybangbang.com>
3004
3005 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
3006
30072002-09-26 Kenichi Handa <handa@etl.go.jp>
3008
3009 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
3010 nonzero, try face's family at first. Otherwise try FAMILY at first.
3011 (choose_face_font): If C is a single byte char or latin-1, call
3012 try_font_list with PREFER_FACE_FAMILY 1.
3013
30142002-09-21 Richard M. Stallman <rms@gnu.org>
3015
3016 * window.c (select_window_1): Don't select frame.
3017 Set frame's selected window only when frame itself is selected.
3018 (Fselect_window): Doc fix.
3019
30202002-09-18 Kim F. Storm <storm@cua.dk>
3021
3022 * process.c (make-network-process): Doc fix (there is no
3023 network-server-log-function hook).
3024
30252002-09-18 Richard M. Stallman <rms@gnu.org>
3026
3027 * print.c (print): Clear out the unused parts of Vprint_number_table.
3028 (syms_of_print): Doc fix for `print-number-table'.
3029
3030 * unexelf.c (unexec): Undo previous change.
3031
30322002-09-17 Andreas Schwab <schwab@suse.de>
3033
3034 * m/alpha.h [LINUX]: Don't define DATA_START.
3035
30362002-09-16 Dave Love <fx@gnu.org>
3037
3038 * unexelf.c (unexec): Deal with .got, reinstating change from
3039 25-08-1999.
3040
30412002-09-13 Richard M. Stallman <rms@gnu.org>
3042
3043 * s/sol2-6.h (UNEXEC): Comment out definition.
3044
3045 * unexsol.c (unexec): Don't downcase first letter of error msg.
3046
3047 * xfaces.c (Fcolor_supported_p): Just one arg is required.
3048
30492002-09-12 Markus Rost <rost@math.ohio-state.edu>
3050
3051 * unexsol.c: Include buffer.h, charset.h, coding.h.
3052
30532002-09-11 Richard M. Stallman <rms@gnu.org>
3054
3055 * unexsol.c: Don't use report_file_error; do it by hand
3056 using dlerror.
3057
3058 * process.c (wait_reading_process_input, both versions):
3059 Before calling turn_on_atimers, call stop_polling.
3060
3061 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
3062
3063 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
3064 we go to too_near_end, call clear_glyph_matrix.
3065 (redisplay_window): After make_cursor_line_fully_visible,
3066 call clear_glyph_matrix and bypass `goto done'.
3067
3068 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
3069 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
3070
30712002-09-10 Richard M. Stallman <rms@gnu.org>
3072
3073 * fileio.c (Fdo_auto_save): Catch error making directory.
3074 Only call push_message if we need to.
3075 At the same time, make an unwind-protect to pop it.
3076 Rename local message_p to old_message_p.
3077 (do_auto_save_make_dir, do_auto_save_eh): New functions.
3078 (do_auto_save_unwind): Don't call pop_message.
3079
3080 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
3081
3082 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
3083
3084 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
3085
3086 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
3087
30882002-09-10 Stefan Monnier <monnier@cs.yale.edu>
3089
3090 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
3091 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
3092 (re_match_2_internal): Be more careful with infinite loops.
3093
30942002-09-10 Kim F. Storm <storm@cua.dk>
3095
3096 * macros.c (end_kbd_macro): New function.
3097 (Fend_kbd_macro): Use it.
3098
3099 * macros.h (end_kbd_macro): Declare extern.
3100
3101 * keyboard.c (Fdiscard_input): If defining keyboard macro,
3102 end and save it instead of discarding it.
3103
31042002-09-09 Markus Rost <rost@math.ohio-state.edu>
3105
3106 * s/sol2-6.h: Fix typo. Add comment.
3107
31082002-09-09 Richard M. Stallman <rms@gnu.org>
3109
3110 * regex.c (regnum_t): Use signed int, not unsigned int.
3111
3112 * s/sol2-6.h: New file.
3113
3114 * s/sol2-5.h (UNEXEC): Definition deleted.
3115
31162002-09-08 Kim F. Storm <storm@cua.dk>
3117
3118 * macros.c (executing_macro_index): Change type to EMACS_INT.
3119 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
3120
3121 * macros.h (executing_macro_index): Change type to EMACS_INT.
3122
31232002-09-06 Richard M. Stallman <rms@gnu.org>
3124
3125 * casetab.c (set_case_table): Make canon table point to eqv table.
3126
31272002-09-06 Juanma Barranquero <lektu@terra.es>
3128
3129 * coding.c (syms_of_coding): Fix spacing.
3130
3131 * composite.c (Fcompose_region_internal)
3132 (Fcompose_string_internal): Likewise.
3133
3134 * data.c (Flsh): Likewise.
3135
3136 * fontset.c (Fset_fontset_font): Likewise.
3137
3138 * macfns.c (Fx_server_max_request_size): Likewise.
3139
3140 * w16select.c (syms_of_win16select): Likewise.
3141
3142 * w32select.c (syms_of_w32select): Likewise.
3143
3144 * xselect.c (syms_of_xselect): Likewise.
3145
31462002-09-05 Richard M. Stallman <rms@gnu.org>
3147
3148 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
3149 call EXTEND_RANGE_TABLE and return a proper value.
3150 (set_image_of_range): Don't call set_image_of_range_1
3151 if no TRANSLATE or if range includes all of Latin-1.
3152 Only call it for the Latin-1 part of the range.
3153 For other cases, make two separate ranges,
3154 one for the original specified characters and one for
3155 their case-conversions.
3156
31572002-09-04 Richard M. Stallman <rms@gnu.org>
3158
3159 * s/sol2-5.h (UNEXEC): Use unexsol.o.
3160
3161 * window.c (displayed_window_lines): Correct for one-off bug
3162 in HEIGHT on non-window displays.
3163
3164 * regex.c (set_image_of_range_1): New function.
3165 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
3166 Return a value to indicate running out of memory.
3167 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
3168 (extend_range_table_work_area): New subroutine.
3169 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
3170 Different calling conventions, and used from set_image_of_range{,_1}.
3171 (IMMEDIATE_QUIT_CHECK): Definitions moved.
3172
31732002-09-04 Juanma Barranquero <lektu@terra.es>
3174
3175 * makefile.w32-in: All dependencies updated.
3176
31772002-09-01 Richard M. Stallman <rms@gnu.org>
3178
3179 * unexsol.c: New file.
3180
3181 * xfns.c (Qbox): Declare external, don't define.
3182
3183 * xdisp.c (redisplay_window) <force-start case>:
3184 If point is on semi-visible last line, reposition
3185 it at previous line.
3186
3187 * alloc.c (display_malloc_warning): Use display-warning.
3188 (malloc_warning_1): Function deleted.
3189
3190 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
3191
3192 * lread.c (read1): Handle #! by skipping the line.
3193
31942002-08-31 Richard M. Stallman <rms@gnu.org>
3195
3196 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
3197 Don't include LDFLAGS.
3198 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
3199
32002002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
3201
3202 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
3203 member of x_display_info unless we compile for some window system.
3204
32052002-08-31 Kim F. Storm <storm@cua.dk>
3206
3207 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
3208 (get_window_cursor_type): Don't use them.
3209 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
3210
32112002-08-30 Kenichi Handa <handa@etl.go.jp>
3212
3213 * xdisp.c (get_next_display_element): Fix previous change.
3214
32152002-08-30 Andrew Choi <akochoi@shaw.ca>
3216
3217 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
3218 (expose_window): Use it to fix the display of overlapping
3219 rows (merge code from xterm.c).
3220
3221 * macfns.c (Qbox): Add extern declaration.
3222
32232002-08-30 Juanma Barranquero <lektu@terra.es>
3224
3225 * w32fns.c (Qbox): Make extern.
3226 (syms_of_w32fns): Remove initialization of Qbox.
3227
32282002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
3229
3230 * xfns.c (Fx_open_connection): Fix error message.
3231
32322002-08-30 Kim F. Storm <storm@cua.dk>
3233
3234 The following changes consolidates the handling of the cursor
3235 type in xdisp.c, moving duplicate code and functionality from
3236 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
3237
3238 * frame.h (enum text_cursor_kinds): Consolidated here.
3239 Added DEFAULT_CURSOR value.
3240 (struct frame) <desired_cursor, cursor_width>
3241 <blink_off_cursor, blink_off_cursor_width>: New fields.
3242 Consolidated from output_x, output_w32 and output_mac structs.
3243 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
3244 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
3245
3246 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
3247 Variables consolidated here.
3248 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
3249 (Vcursor_in_non_selected_windows): Renamed from
3250 cursor_in_non_selected_windows and changed to Lisp_Object.
3251 (syms_of_xdisp): Define and staticpro new and moved variables.
3252 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
3253 consolidated here. Recognize Qhollow setting.
3254 (set_frame_cursor_types): New function to set frame cursor types
3255 based on the frame parameters.
3256 (get_window_cursor_type): New function to calculate new cursor
3257 type and width for the specified window. Based on duplicated
3258 code consolidated here.
3259 Enhancements: cursor-in-non-selected-windows may be a cursor type,
3260 check buffer-local alternate-cursor-type and blink-cursor-alist
3261 before using built-in blink off methods.
3262
3263 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
3264
3265 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
3266 (get_specified_cursor_type, get_window_cursor_type)
3267 (set_frame_cursor_types): Added prototypes.
3268
3269 * macfns.c (x_specified_cursor_type): Removed.
3270 (x_set_cursor_type): Use set_frame_cursor_types.
3271 (Qbar, Qbox): Removed.
3272 (syms_of_macfns): Don't intern or staticpro them.
3273
3274 * macterm.c (x_specified_cursor_type): Remove prototype.
3275 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
3276 (x_display_and_set_cursor): Use get_window_cursor_type.
3277 Remove unused local variables cursor_non_selected, active_cursor.
3278 Redraw cursor if hbar cursor width changes.
3279 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
3280
3281 * macterm.h (enum text_cursor_kinds): Removed.
3282 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
3283 <blink_off_cursor, blink_off_cursor_width>: Members removed.
3284 (FRAME_DESIRED_CURSOR): Macro removed.
3285
3286 * w32fns.c (Vblink_cursor_alist): Removed.
3287 (Qbar, Qhbar, Qbox, Qhollow): Removed.
3288 (syms_of_w32fns): Don't intern, staticpro, or define them.
3289 (x_specified_cursor_type): Removed.
3290 (x_set_cursor_type): Use set_frame_cursor_types.
3291
3292 * w32term.c (x_specified_cursor_type): Remove prototype.
3293 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
3294 (x_display_and_set_cursor): Use get_window_cursor_type.
3295 Remove unused local variables cursor_off_state.
3296 Redraw cursor if hbar cursor width changes.
3297 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
3298
3299 * w32term.h (enum text_cursor_kinds): Removed.
3300 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
3301 <blink_off_cursor, blink_off_cursor_width>: Members removed.
3302 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
3303 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
3304 (struct w32_display_info) <x_highlight_frame>: Renamed member from
3305 w32_highlight_frame.
3306
3307 * xfns.c (Vblink_cursor_alist): Removed.
3308 (Qbar, Qhbar, Qbox, Qhollow): Removed.
3309 (syms_of_xfns): Don't intern, staticpro, or define them.
3310 (x_specified_cursor_type): Removed.
3311 (x_set_cursor_type): Use set_frame_cursor_types.
3312
3313 * xterm.c (x_specified_cursor_type): Remove prototype.
3314 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
3315 (x_display_and_set_cursor): Use get_window_cursor_type.
3316 Remove unused local variables cursor_off_state.
3317 Redraw cursor if hbar cursor width changes.
3318
3319 * xterm.h (enum text_cursor_kinds): Removed.
3320 (struct output_x) <current_cursor, desired_cursor, cursor_width>
3321 <blink_off_cursor, blink_off_cursor_width>: Members removed.
3322 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
3323 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
3324 (x_specified_cursor_type): Remove prototype.
3325
33262002-08-28 Richard M. Stallman <rms@gnu.org>
3327
3328 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
3329 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
3330 (Vblink_cursor_alist): New variable.
3331 (syms_of_w32fns): Initialize and defvar it.
3332 (x_specified_cursor_type): Recognize Qbox for filled box.
3333 Exceptions are hollow boxes.
3334 (Qbox, Qhollow): New variables.
3335 (syms_of_w32fns): Initialize and staticpro them.
3336
3337 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
3338 New macros.
3339 (struct w32_output): New fields blink_off_cursor,
3340 blink_off_cursor_width.
3341 (FRAME_CURSOR_WIDTH): New macro.
3342
3343 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
3344 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
3345
3346 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
3347 for bar cursor.
3348
3349 * w32term.c (expose_overlaps): New function.
3350 (expose_window): Use it to fix the display of overlapping rows.
3351
33522002-08-28 Simon Josefsson <jas@extundo.com>
3353
3354 * xfns.c (Fx_open_connection): Improve help when X connection
3355 fails, xhost is insecure and xauth is better.
3356
33572002-08-28 Juanma Barranquero <lektu@terra.es>
3358
3359 * makefile.w32-in: Add missing dependencies on w32term.h and
3360 composite.h.
3361
3362 * emacs.c (USAGE1): Add missing newline.
3363
33642002-08-27 Andrew Choi <akochoi@shaw.ca>
3365
3366 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
3367
33682002-08-27 Richard M. Stallman <rms@gnu.org>
3369
3370 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
3371 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
3372 (Vblink_cursor_alist): New variable.
3373 (syms_of_xfns): Initialize and defvar it.
3374 (x_specified_cursor_type): Recognize Qbox for filled box.
3375 Exceptions are hollow boxes.
3376 (Qbox, Qhollow): New variables.
3377 (syms_of_xfns): Initialize and staticpro them.
3378
3379 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
3380 New macros.
3381 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
3382
3383 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
3384 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
3385
3386 * emacs.c (main): Handle --script.
3387 (USAGE1): Mention --script.
3388 (standard_args): Define sort order for --script.
3389
33902002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
3391
3392 * xdisp.c (redisplay_updating_p): Variable removed.
3393 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
3394 New variables.
3395 (init_iterator): Don't free realized faces if
3396 inhibit_free_realized_faces is set.
3397 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
3398 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
3399 initialize Qinhibit_free_realized_faces.
3400
3401 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
3402 when iterator is adding glyphs to a glyph matrix.
3403
34042002-08-27 Kenichi Handa <handa@etl.go.jp>
3405
3406 * xdisp.c (get_next_display_element): In unibyte case, don't use
3407 octal form for such eight-bit characters that can be converted to
3408 multibyte char.
3409
34102002-08-26 Kim F. Storm <storm@cua.dk>
3411
3412 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize foreground
3413 and background colors. From Joe Buehler (tiny change).
3414
34152002-08-26 Miles Bader <miles@gnu.org>
3416
3417 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
3418
34192002-08-25 Andrew Choi <akochoi@shaw.ca>
3420
3421 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
3422 defined instead of MAC_OSX.
3423
3424 * s/darwin.h (select): Define select to sys_select only if
3425 HAVE_CARBON is defined.
3426 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
3427 (DONT_REOPEN_PTY): #def it.
3428
3429 * macterm.c (XTread_socket): Remove code to call
3430 SendEventToEventTarget for keys with command modifiers when
3431 mac_command_key_is_meta is nil.
3432
34332002-08-24 Andreas Schwab <schwab@suse.de>
3434
3435 * eval.c (Fdefvar): Fix last change.
3436
34372002-08-23 Richard M. Stallman <rms@gnu.org>
3438
3439 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
3440 Record variables in load history as (defvar . VAR).
3441 (Fdefvar): Don't record in load history if no initial value.
3442 (Qdefvar): New variable.
3443 (syms_of_eval): Init and staticpro it.
3444
3445 * lread.c (syms_of_lread): Doc fix.
3446 (build_load_history): Use Fmember to see if a definition
3447 is already in the Vload_history element.
3448
3449 * process.c (Fstart_process): Remove /: from program name.
3450
3451 * emacs.c (decode_env_path): Don't add /: if file name handler
3452 has a `safe-magic' property.
3453
3454 * callproc.c (Fcall_process): Remove /: from program name.
3455
34562002-08-23 Stefan Monnier <monnier@cs.yale.edu>
3457
3458 * regex.c (PATFETCH): Remove the translating fetch.
3459 (PATFETCH_RAW): Rename to PATFETCH.
3460 (set_image_of_range): New fun.
3461 (SET_RANGE_TABLE_WORK_AREA): Use it.
3462 (regex_compile): Don't translate the pattern chars so eagerly.
3463 Only do it when inserting an `exactn' bytecode or when handling
3464 a char-range.
3465 (mutually_exclusive_p): Avoid empty statement.
3466
34672002-08-22 Kim F. Storm <storm@cua.dk>
3468
3469 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
3470 end up on a partially visible line; this reverts a specific part
3471 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
3472 display error which has been reported several times now.
3473 However it introduces the problem that changes was supposed to fix.
3474 See my comments in the source if you want to debug this further.
3475
34762002-08-20 Kenichi Handa <handa@etl.go.jp>
3477
3478 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
3479
34802002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
3481
3482 * msdos.c (croak): Add `void' to definition.
3483
3484 * sysdep.c [MSDOS] (request_sigio, unrequest_sigio):
3485 Don't define them, they are defined in msdos.c.
3486
3487 * mem-limits.h [MSDOS]: Declare etext.
3488
3489 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
3490 `const' since CORRECT_DIR_SEPS modifies its target.
3491
34922002-08-19 Kim F. Storm <storm@cua.dk>
3493
3494 * keyboard.c (Fclear_this_command_keys): Added optional arg
3495 KEEP-RECORD to avoid clearing lossage when we just want to clear
3496 the current key sequence (kmacro needs this).
3497
34982002-08-19 Kenichi Handa <handa@localhost>
3499
3500 * composite.c (run_composition_function): Call FUNC if it is fboundp.
3501
3502 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
3503 cons, return Qnil.
3504
35052002-08-17 Richard M. Stallman <rms@gnu.org>
3506
3507 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
3508
3509 * sysdep.c [!VMS]: Include sys/files.h.
3510
3511 * editfns.c (save_restriction_restore): Defend from unchained marker.
3512
3513 * buffer.c (overlays_at): Handle extending vec uniformly.
3514 (overlays_in): Handle extending vec from length 0 as in overlays_at.
3515
35162002-08-15 Andrew Choi <akochoi@shaw.ca>
3517
3518 * mac.c (init_mac_osx_environment): New function.
3519
3520 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
3521
35222002-08-14 Kim F. Storm <storm@cua.dk>
3523
3524 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
3525 executing macro before appending to it (when used from Lisp).
3526 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
3527 which is called prior to each iteration of macro (for kmacro.el).
3528 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
3529
3530 * lisp.h (Fexecute_kbd_macro): Update prototype.
3531
3532 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
3533
35342002-08-14 Kenichi Handa <handa@etl.go.jp>
3535
3536 * xselect.c (QUTF8_STRING): New variable.
3537 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
3538 (x_atom_to_symbol): Likewise.
3539 (x_get_local_selection): New argument local_request. If it is
3540 nonzero, call handler_fn with the second arg nil.
3541 (x_handle_selection_request): Call x_get_local_selection with
3542 local_request 0.
3543 (lisp_data_to_selection_data): Don't encode the string here.
3544 (Fx_get_selection_internal): Call x_get_local_selection with
3545 local_request 1.
3546 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
3547
3548 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
3549
3550 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
3551
35522002-08-13 Richard M. Stallman <rms@gnu.org>
3553
3554 * minibuf.c (Fminibufferp): New function.
3555 (syms_of_minibuf): Defsubr it.
3556 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
3557
35582002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
3559
3560 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
3561
35622002-08-12 Richard M. Stallman <rms@gnu.org>
3563
3564 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
3565 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
3566 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
3567 already.
3568
3569 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
3570
35712002-08-11 Andrew Choi <akochoi@shaw.ca>
3572
3573 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
3574 (Vmac_pass_command_to_system): New variable.
3575 (Vmac_pass_control_to_system): New variable.
3576 (do_mouse_moved): Check wp with is_emacs_window.
3577 (XTread_socket): Check window_ptr with is_emacs_window.
3578 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
3579 events back to Mac Toolbox for processing, depending on values of
3580 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
3581 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
3582 Vmac_pass_control_to_system.
3583
35842002-08-10 Kenichi Handa <handa@etl.go.jp>
3585
3586 * coding.c (unencodable_char_position): New function.
3587 (Funencodable_char_position): New function.
3588 (syms_of_coding): Defsubr Funencodable_char_position.
3589
35902002-08-10 Andrew Choi <akochoi@shaw.ca>
3591
3592 * mac.c (sys_select) [MAC_OSX]: New function.
3593
3594 * macterm.c (MakeMeTheFrontProcess): New function.
3595 (mac_initialize): Call MakeMeTheFrontProcess.
3596
3597 * s/darwin.h: Define select to sys_select.
3598
35992002-08-09 Richard M. Stallman <rms@gnu.org>
3600
3601 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
3602
36032002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
3604
3605 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
3606 end of the buffer.
3607
36082002-08-08 Ken Raeburn <raeburn@mit.edu>
3609
3610 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
3611
3612 * puresize.h (BASE_PURESIZE): Increase to 910000.
3613
36142002-08-08 Kenichi Handa <handa@etl.go.jp>
3615
3616 * coding.c (Ffind_operation_coding_system): For write-region, if
3617 VISIT is a filename, make it the target.
3618
36192002-08-07 Richard M. Stallman <rms@gnu.org>
3620
3621 * alloc.c (mark_object): Detect long lists for debugging.
3622 (mark_object_loop_halt): New variable.
3623
3624 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
3625
3626 * data.c (Fmake_variable_frame_local): Doc fix.
3627
36282002-08-01 David Ponce <david@dponce.com>
3629
3630 * w32menu.c (local_heap, local_alloc, local_free): New macros.
3631 (malloc_widget_value, free_widget_value)
3632 (w32_free_submenu_strings): Use them.
3633
3634 (push_submenu_start, push_submenu_end, push_left_right_boundary)
3635 (push_menu_pane, push_menu_item, single_keymap_panes)
3636 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
3637 (single_submenu, set_frame_menubar)
3638 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
3639
3640 (Fx_popup_menu): Don't show pop up menu until preceding one is
3641 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
3642
3643 * w32menu.c: Changes adapted from xmenu.c
3644 (set_frame_menubar): First parse all submenus,
3645 then make widget_value trees from them.
3646 Don't allocate any widget_value objects
3647 until we are done with the parsing.
3648 (parse_single_submenu): New function.
3649 (digest_single_submenu): New function.
3650 (single_submenu): Function deleted, replaced by those two.
3651
36522002-08-04 Andrew Choi <akochoi@shaw.ca>
3653
3654 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
3655 returns a valid window pointer before proceeding for keyDown and
3656 autoKey events.
3657
36582002-08-03 Andrew Choi <akochoi@shaw.ca>
3659
3660 * macterm.c (USE_CARBON_EVENTS): New macro.
3661 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
3662 (x_iconify_frame): Call CollapseWindow.
3663 (Vmac_reverse_ctrl_meta): New variable.
3664 (Vmac_wheel_button_is_mouse_2): New variable.
3665 (init_mac_drag_n_drop): New function.
3666 (mac_do_receive_drag): New function.
3667 (mac_handle_service_event): New function.
3668 (init_service_handler): New function.
3669 (mac_to_emacs_modifiers): New function.
3670 (mac_event_to_emacs_modifiers): New function.
3671 (mac_get_mouse_btn): New function.
3672 (mac_convert_event_ref): New function.
3673 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
3674 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
3675 mac_get_mouse_btn.
3676 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
3677
3678 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
3679 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
3680 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
3681 TOOL_BAR_EVENT for MAC_OS as well.
3682 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
3683 as for WINDOWS_NT.
3684 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
3685
3686 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
3687
36882002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
3689
3690 * xdisp.c (forward_to_next_line_start): Fix a condition that
3691 lead to a newline being skipped.
3692
36932002-08-02 Andrew Choi <akochoi@shaw.ca>
3694
3695 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
3696
36972002-08-01 Richard M. Stallman <rms@gnu.org>
3698
3699 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
3700
37012002-07-31 Andrew Choi <akochoi@shaw.ca>
3702
3703 * macfns.c: #undef init_process before #define-ing it.
3704
3705 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
3706 HAVE_CARBON is defined.
3707
37082002-07-31 Richard M. Stallman <rms@gnu.org>
3709
3710 * xmenu.c (set_frame_menubar): First parse all submenus,
3711 then make widget_value trees from them.
3712 Don't allocate any widget_value objects
3713 until we are done with the parsing.
3714 (parse_single_submenu): New function.
3715 (digest_single_submenu): New function.
3716 (single_submenu): Function deleted, replaced by those two.
3717
37182002-07-30 Juanma Barranquero <lektu@terra.es>
3719
3720 * w32proc.c (syms_of_ntproc): Fix docstring of
3721 `w32-get-true-file-attributes'.
3722
37232002-07-28 Richard M. Stallman <rms@gnu.org>
3724
3725 * s/hpux8.h (HPUX8): Define this before including hpux.h.
3726 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
3727
3728 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
3729
3730 * keyboard.c (make_lispy_event):
3731 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
3732 Explicitly clear up_modifier in event->modifiers.
3733
37342002-07-27 Richard M. Stallman <rms@gnu.org>
3735
3736 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
3737
3738 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
3739 for bar cursor.
3740
37412002-07-26 Kenichi Handa <handa@etl.go.jp>
3742
3743 * coding.c (detect_coding_iso2022): While checking a byte sequence
3744 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
3745 it in the normal loop.
3746
37472002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
3748
3749 * xterm.c (expose_overlaps): New function.
3750 (expose_window): Use it to fix the display of overlapping rows.
3751
3752 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
3753
37542002-07-23 Ken Raeburn <raeburn@gnu.org>
3755
3756 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
3757 since it only depends on XUINT.
3758
3759 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
3760 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
3761 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
3762 Macros deleted.
3947677c 3763
77d1daf2
AS
3764 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
3765 its value over other approaches.
3766 * sysdep.c (start_of_data): Don't define the function if a macro
3767 form has been defined.
8a8e19a3 3768
048addec
JD
37692002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
3770
3771 * xdisp.c (redisplay_updating_p): New variable.
3772 (init_iterator): Don't free realized faces when
3773 redisplay_updating_p is set.
3774 (redisplay_internal): Set redisplay_updating_p while updating
3775 the display.
3776
37772002-07-23 Richard M. Stallman <rms@gnu.org>
3778
3779 * editfns.c (Fmessage): Treat "" like nil.
3780
37812002-07-23 Kenichi Handa <handa@etl.go.jp>
3782
3783 * xdisp.c (face_before_or_after_it_pos):
3784 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
3785
37862002-07-22 Juanma Barranquero <lektu@terra.es>
3787
3788 * callproc.c (init_callproc) [DOS_NT]:
3789 Initialize Vshared_game_score_directory to nil.
3790 (syms_of_callproc) [DOS_NT]: Likewise.
3791
37922002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
3793
3794 * xdisp.c (display_line): Replace an abort with xassert.
3795
37962002-07-21 Richard M. Stallman <rms@gnu.org>
3797
3798 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
3799 and END_UNCHANGED when setting buffer_unchanged_p.
3800 Use current_matrix_up_to_date_p to decide whether to use
3801 try_cursor_movement.
3802
3803 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
3804
3805 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
3806
3807 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
3808 Set to nil if dir does not exist.
3809 (syms_of_callproc): Init unconditionally and simply.
3810
3811 * buffer.c (Fbuffer_list): Doc fix.
3812
38132002-07-21 Ken Raeburn <raeburn@gnu.org>
3814
3815 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
3816
3817 * buffer.c (mmap_realloc): When shrinking, make sure number of
3818 pages to unmap is rounded towards zero.
3819
3820 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
3821 (XSETINT): Deleted.
3822
3823 * m/att3b.h (XINT): Don't define.
3824 (VALBITS, VALMASK, XTYPE): Deleted.
3825 (DATA_SEG_BITS): Define.
3826 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
3827 ARRAY_MARK_FLAG): Deleted.
3828 (DATA_SEG_BITS): Define.
3829 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
3830 (DATA_SEG_BITS): Define.
3831
38322002-07-20 Richard M. Stallman <rms@gnu.org>
3833
3834 * print.c (print_error_message): New args CONTEXT and CALLER.
3835 Calls changed.
3836
3837 * lisp.h (print_error_message): Declare new args.
3838
3839 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
3840 and CONTEXT to print_error_message, don't print them here.
3841 For a Quit, don't use Vsignaling_function.
3842 Call message_log_maybe_newline.
3843
3844 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
3845
38462002-07-20 Kim F. Storm <storm@cua.dk>
3847
3848 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
3849
38502002-07-19 Ken Raeburn <raeburn@gnu.org>
3851
3852 * bytecode.c (struct byte_stack): Pointers into byte string now
3853 point to const.
3854 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
3855 const.
3856 * charset.h (BCOPY_SHORT): Source pointer now points to const.
3857 * coding.c (encode_eol, detect_coding, detect_eol):
3858 (decode_coding, encode_coding, detect_coding_system):
3859 Source strings now treated as const.
3860 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
3861 modify Lisp string contents.
3862 * coding.h (decode_coding, encode_coding, detect_coding,
3863 detect_eol): Declarations updated.
3864 * composite.c (compose_chars_in_text): Treat Lisp string contents
3865 as const.
3866 * dispnew.c (safe_bcopy): Source pointer now points to const.
3867 * lisp.h (STRING_COPYIN): New macro.
3868 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
3869 (internal_with_output_to_temp_buffer): Declarations updated.
3870 * print.c (temp_output_buffer_setup):
3871 (internal_with_output_to_temp_buffer): Buffer name argument is now
3872 pointer to const.
3873 * sound.c (struct sound_device): Function pointer field "write"
3874 buffer argument now points to const.
3875 (vox_write): Buffer argument points to const.
3876 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
3877 contents as const.
3878 * sysdep.c (emacs_write): Buffer pointer now const.
3879 * term.c (encode_terminal_code): Buffer pointer now const.
3880 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
3881 (x_face_list_fonts, x_update_menu_appearance):
3882 (hash_string_case_insensitive): Treat Lisp string contents as const.
3883
38842002-07-19 Juanma Barranquero <lektu@terra.es>
3885
3886 * fileio.c (Ffile_name_as_directory): Fix argument name in docstring.
3887 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
3888
3889 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
3890
3891 * fileio.c (syms_of_fileio): Likewise.
3892
38932002-07-18 Richard M. Stallman <rms@gnu.org>
3894
3895 * data.c (Fdefalias): Doc fix.
3896
38972002-07-17 Dave Love <fx@gnu.org>
3898
3899 * intervals.h (text_property_stickiness): Use P_.
3900
3901 * ccl.c: Remove `emacs' conditionals.
3902 (ccl_backtrace_table): Fix size spec.
3903 (ccl_driver): Fix type errors.
3904
39052002-07-16 Ken Raeburn <raeburn@gnu.org>
3906
3907 * alloc.c (xstrdup, make_string, make_unibyte_string)
3908 (make_multibyte_string, build_string): String pointer args now
3909 point to const.
3910 * charset.c (find_charset_in_text, c_string_width):
3911 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
3912 * fileio.c (report_file_error):
3913 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
3914 (count_combining_before, count_combining_after, insert_1_both):
3915 (insert, insert_and_inherit, insert_string):
3916 (insert_before_markers, insert_before_markers_and_inherit):
3917 * lread.c (intern, oblookup, hash_string):
3918 * minibuf.c (temp_echo_area_glyphs):
3919 * search.c (fast_c_string_match_ignore_case):
3920 * sysdep.c (emacs_open, set_file_times):
3921 * xfaces.c (xstricmp):
3922 * xdisp.c (store_frame_title, string_char_and_length):
3923 (message_dolog, message2, message2_nolog, set_message): Likewise.
3924 (set_message_1): Cast message string argument to const pointer.
3925 * editfns.c (general_insert_function): Insertion function now
3926 takes pointer to const for input data.
3927 * charset.h (find_charset_in_text, c_string_width):
3928 (parse_str_as_multibyte): Declarations updated.
3929 * dispextern.h (xstricmp): Declaration updated.
3930 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
3931 (count_size_as_multibyte, count_combining_before):
3932 (count_combining_after, insert_1, insert_1_both, message_dolog):
3933 (insert, insert_and_inherit, insert_before_markers)
3934 (insert_before_markers_and_inherit, set_message, message2):
3935 (message2_dolog, build_string, make_string, make_unibyte_string):
3936 (make_multibyte_string, intern, oblookup, report_file_error):
3937 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
3938 (emacs_open, xstrdup): Declarations updated.
3939 * systime.h (set_file_times): Declaration updated.
3940
3941 * charset.c (find_charset_in_text, lisp_string_width): Use const
3942 for pointer to lisp string data.
3943 * charset.h (FETCH_STRING_CHAR_ADVANCE):
3944 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
3945 * coding.c (Ffind_coding_systems_region_interval):
3946 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
3947 (Fmake_directory_internal, Fdelete_directory):
3948 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
3949 * fontset.c (font_family_registry, fs_query_fontset):
3950 (list_fontsets):
3951 * frame.c (Fframe_parameter):
3952 * keyboard.c (cmd_error_internal):
3953 * keymap.c (Fdescribe_buffer_bindings):
3954 * lread.c (complete_filename_p, openp):
3955 * minibuf.c (Fminibuffer_complete_word):
3956 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
3957 (face_before_or_after_it_pos, next_element_from_string):
3958 (get_overlay_arrow_glyph_row, display_mode_element):
3959 (decode_mode_spec_coding):
3960 * xterm.c (same_x_server): Likewise.
3961
3962 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
3963 settings of non-existent fields.
3964
3965 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
3966 copy a lisp value.
3967
3968 * lread.c (Fintern_soft): Use string macros instead of
3969 Lisp_String fields.
3970 * keyboard.c (echo_char, parse_modifiers_uncached):
3971 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
3972 * textprop.c (validate_interval_range, interval_of): Likewise.
3973
3974 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
3975
3976 * charset.h (FETCH_STRING_CHAR_ADVANCE)
3977 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
3978 XSTRING()->size_byte.
3979
3980 * lisp.h (SDATA, SREF): Produce rvalue.
3981 (SSET): New macro.
3982 * alloc.c (make_event_array): Use SSET for storing into a string.
3983 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
3984 a string.
3985 * casefiddle.c (casify_object): Use SSET.
3986 * charset.h (FETCH_STRING_CHAR_ADVANCE)
3987 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
3988 address of string contents.
3989 * data.c (Faref): Use SDATA.
3990 (Faset): Use SDATA, SSET.
3991 * dired.c (directory_files_internal): Use SSET.
3992 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
3993 (Fread_file_name): Use SREF, SSET.
3994 * fns.c (concat): Use SSET.
3995 (concat, Fdelete): Use SDATA.
3996 * insdel.c (insert_from_string_1): Use SDATA.
3997 * keyboard.c (Fevent_convert_list): Use SREF.
3998 * lread.c (Fload): Use SDATA, SSET.
3999 * macfns.c (validate_x_resource_name): Use SSET.
4000 * process.c (status_message): Use SSET.
4001 * search.c (wordify): Use SDATA.
4002 (Freplace_match): Use SREF.
4003 * w32fns.c (validate_x_resource_name): Use SSET.
4004 * xfns.c (validate_x_resource_name): Use SSET.
4005 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
4006
40072002-07-16 Richard M. Stallman <rms@gnu.org>
4008
4009 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
4010
4011 * xdisp.c (reconsider_clip_changes):
4012 Don't test prevent_redisplay_optimizations_p.
4013 (redisplay_internal): Test prevent_redisplay_optimizations_p
4014 along with clip_changed in some cases.
4015 (try_window_id): Likewise.
4016 (redisplay_window): New local var buffer_unchanged_p.
4017
4018 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
4019
4020 * process.c (create_process): Test USG_SUBTTY_WORKS.
4021 (process_send_signal): Clean up handling of GID.
4022 Detect errors in ioctls meant to set GID.
4023
4024 * window.c (temp_output_buffer_show):
4025 Don't set prevent_redisplay_optimizations_p.
4026
40272002-07-15 Juanma Barranquero <lektu@terra.es>
4028
4029 * eval.c (Fdefvaralias): Add docstring argument.
4030
40312002-07-15 Ken Raeburn <raeburn@gnu.org>
4032
4033 * lisp.h (STRING_INTERVALS): Produce rvalue.
4034 (STRING_SET_INTERVALS): New macro.
4035 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
4036 * fns.c (Fstring_as_multibyte): Likewise.
4037 * intervals.c (balance_possible_root_interval, delete_interval)
4038 (create_root_interval, copy_intervals_to_string): Likewise.
4039 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
4040 instead of 0.
4041
40422002-07-14 Ken Raeburn <raeburn@gnu.org>
4043
4044 * lisp.h (STRING_SET_CHARS): New macro.
4045 (SCHARS, SBYTES): Produce rvalues.
4046 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
4047 * fns.c (concat): Likewise.
4048 * lread.c (read_vector): Likewise.
4049
4050 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
4051 (STRING_SET_UNIBYTE): New macro.
4052 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
4053 length of -1) changed to use STRING_SET_UNIBYTE.
4054 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
4055 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
4056 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
4057 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
4058 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
4059 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
4060 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
4061 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
4062 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
4063 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
4064 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
4065 STRING_BYTES or indirection changed to SCHARS, SBYTES,
4066 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
4067 unchanged for now.
4068
40692002-07-13 Kim F. Storm <storm@cua.dk>
4070
4071 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
4072
40732002-07-12 Richard M. Stallman <rms@gnu.org>
4074
4075 * fileio.c (Fwrite_region): Doc fix.
4076
4077 * print.c (print_error_message): Don't handle Vsignaling_function here.
4078
4079 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
4080 (command_loop_1): Avoid certain actions after memory-full error.
4081
4082 * eval.c (Fsignal): Don't call cancel_hourglass.
4083 For a memory-full error, don't call Vsignal_hook_function
4084 and don't set Vsignaling_function.
4085
4086 * process.c (process_send_signal): Add abort call.
4087
40882002-07-11 Markus Rost <rost@math.ohio-state.edu>
4089
4090 * keymap.c (Fkey_binding): Fix typo.
4091
40922002-07-11 Richard M. Stallman <rms@gnu.org>
4093
4094 * alloc.c (Vmemory_full): New variable.
4095 (Vmemory_signal_data): Renamed from memory_signal_data.
4096 Uses changed.
4097 (syms_of_alloc): Defvar them.
4098 (memory_full, buffer_memory_full): Set Vmemory_full.
4099
4100 * lisp.h (Vmemory_full): Add declaration.
4101 (current_column, indented_beyond_p): Change declaration.
4102
4103 * indent.c (last_known_column): Declare as double, not float.
4104 (current_column, current_column_1, string_display_width)
4105 (position_indentation): Return `double'.
4106 (indented_beyond_p): Arg `column' is `double'. Callers changed.
4107
4108 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
4109 (back_to_previous_visible_line_start)
4110 (reseat_at_next_visible_line_start, next_element_from_buffer):
4111 Use `double', not `float', when calling indented_beyond_p.
4112
4113 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
4114
4115 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
4116
41172002-07-11 Juanma Barranquero <lektu@terra.es>
4118
4119 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
4120 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
4121 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
4122 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
4123 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
4124 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
4125
41262002-07-10 Juanma Barranquero <lektu@terra.es>
4127
4128 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE. All callers
4129 changed.
4130
41312002-07-09 Stefan Monnier <monnier@cs.yale.edu>
4132
4133 * data.c (Fdefalias): Add an optional `docstring' argument.
4134 (set_internal, Fsetq_default): Use XCAR/XCDR.
4135
4136 * composite.c (HASH_VALUE, HASH_KEY):
4137 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
4138
41392002-07-09 Kenichi Handa <handa@etl.go.jp>
4140
4141 * callproc.c (Fcall_process): Fix previous change.
4142
41432002-07-07 Stefan Monnier <monnier@cs.yale.edu>
4144
4145 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
4146 Add support for hash-tables.
4147 (Ftry_completion): Return t even if the string appears multiple times.
4148
4149 * fns.c (Fnconc): Use XCDR.
4150 (Fprovide): Use CONSP and XCDR.
4151 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
4152 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
4153 (Fmake_hash_table): Accept `:size nil'.
4154 (Fmakehash): Delete: moved to subr.el.
4155 (syms_of_fns): Don't defsubr makehash.
4156
4157 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
4158 (HASH_TABLE_SIZE): Move from fns.c.
4159
41602002-07-07 Richard M. Stallman <rms@gnu.org>
4161
4162 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
4163 Instead just return 0 when there is something to be done.
4164 (try_scrolling): If make_cursor_line_fully_visible returns 0,
4165 retry scrolling as if cursor were off the bottom.
4166 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
4167 return CURSOR_MOVEMENT_MUST_SCROLL.
4168 (redisplay_window): If make_cursor_line_fully_visible returns 0,
4169 go to try_to_scroll.
4170
4171 * buffer.c (Fbuffer_local_value): Store current value into its binding
4172 so we get the up-to-date value for the binding that is loaded.
4173
4174 * eval.c (Fdefmacro): Doc fix.
4175
41762002-07-05 Dave Love <fx@gnu.org>
4177
4178 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
4179 correctly.
4180
4181 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
4182 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
4183 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
4184 CCL_LookupCharConstTbl.
4185 (syms_of_ccl): Defvar translation-hash-table-vector.
4186
41872002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4188
4189 * xdisp.c: Remove unused variable `face'.
4190
41912002-07-04 Juanma Barranquero <lektu@terra.es>
4192
4193 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
4194 obsolescence information.
4195
41962002-07-03 Andrew Choi <akochoi@shaw.ca>
4197
4198 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
4199 pattern. Search cache first.
4200 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
4201 for Japanese font.
4202 (XLoadQueryFont): Use it.
4203
42042002-07-02 Richard M. Stallman <rms@gnu.org>
4205
4206 * keymap.c (Fdefine_key): Doc fix.
4207
4208 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
4209
42102002-07-02 Juanma Barranquero <lektu@terra.es>
4211
4212 * keymap.c (syms_of_keymap): Fix typo.
4213
42142002-07-01 Andrew Choi <akochoi@shaw.ca>
4215
4216 * s/darwin.h: Define POSIX_SIGNALS.
4217
4218 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
4219 and FSRefMakePath to convert FSSpec returned with Apple Event to
4220 Posix pathname.
4221 (mac_initialize) [TARGET_API_MAC_CARBON]:
4222 Call init_required_apple_events and disable the `Quit' menu item
4223 provided automatically by the Carbon Toolbox.
4224
42252002-07-01 Dave Love <fx@gnu.org>
4226
4227 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
4228 for K&R.
4229
4230 * xterm.c: Fix prototype for K&R.
4231
4232 * term.c (costs_set): Declare static, non-initialized for pcc.
4233
42342002-07-01 Richard M. Stallman <rms@gnu.org>
4235
4236 * keyboard.c (timer_last_idleness_start_time): New variable.
4237 (timer_start_idle): Set that.
4238 (read_key_sequence): Use that to reset timer_idleness_start_time
4239 to previous value.
4240
4241 * window.c (Frecenter): With arg, set optional_new_start.
4242
4243 * xdisp.c (redisplay_internal): Make optional_new_start really work.
4244
4245 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
4246 buffer for completion.
4247
42482002-06-29 Ken Raeburn <raeburn@gnu.org>
4249
4250 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
4251
42522002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4253
4254 * keyboard.c (readable_filtered_events): New function that filters
4255 FOCUS_IN_EVENT depending on parameter.
4256 (readable_events): Calls readable_filtered_events, not filtering
4257 FOCUS_IN_EVENT.
4258 (get_filtered_input_pending): New function, filtering parameter passed
4259 to readable_filtered_events.
4260 (get_input_pending): Calls get_filtered_input_pending, not filtering
4261 FOCUS_IN_EVENT.
4262 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
4263 FOCUS_IN_EVENT.
4264
4265 * xterm.h (struct x_output): Add focus_state.
4266
4267 * xterm.c (x_focus_changed): New function.
4268 (x_detect_focus_change): New function.
4269 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
4270 EnterNotify and LeaveNotify to track X focus changes.
4271
42722002-06-28 Andreas Schwab <schwab@suse.de>
4273
4274 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
4275
42762002-06-27 Kim F. Storm <storm@cua.dk>
4277
4278 * xdisp.c: (mode_line_string_list, mode_line_string_face)
4279 (mode_line_string_face_prop): New variables.
4280 (store_mode_line_string): New function.
4281 (display_mode_element): Use store_mode_line_string to
4282 add mode-line string elements to mode_line_string_list
4283 when mode_line_string_list is non-nil.
4284 (Fformat_mode_line): Now returns propertized string by
4285 default. New arg NO-PROPS to ignore properties.
4286 (decode_mode_spec): Only add two dashes for %- in propertized
4287 mode-line string.
4288 (syms_of_xdisp): Init and staticpro mode_line_string_list.
4289
42902002-06-27 Stefan Monnier <monnier@cs.yale.edu>
4291
4292 * minibuf.c (minibuffer_completion_contents): Add return type.
4293
42942002-06-27 Juanma Barranquero <lektu@terra.es>
4295
4296 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
4297
42982002-06-26 Juanma Barranquero <lektu@terra.es>
4299
4300 * fileio.c (read_file_name_cleanup): Add missing return.
4301
43022002-06-26 Richard M. Stallman <rms@gnu.org>
4303
4304 * window.c (Frecenter): Don't set force_start flag.
4305
4306 * minibuf.c (do_completion, Fminibuffer_complete_word)
4307 (Fminibuffer_completion_help): Complete just the text before point.
4308 (minibuffer_completion_contents): New function.
4309
4310 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
4311
4312 * frame.c (frames_bury_buffer): Function deleted.
4313
43142002-06-25 Miles Bader <miles@gnu.org>
4315
4316 * callint.c (Fcall_interactively): When checking to see if doprnt hit
4317 the end of callint_message, allow for a terminating '\0'.
4318
43192002-06-24 Juanma Barranquero <lektu@terra.es>
4320
4321 * w32select.c: Include composite.h
4322
4323 * w16select.c: Likewise.
4324
43252002-06-24 Kenichi Handa <handa@etl.go.jp>
4326
4327 * callproc.c (Fcall_process): If code detection is necessary,
4328 call detect_coding directly here.
4329
4330 * coding.c (detect_eol): Preserve coding->cmp_data.
4331
4332 * w16select.c (Fw16_get_clipboard_data):
4333 * w32fns.c (w32_to_x_font):
4334 * w32select.c (Fw32_get_clipboard_data):
4335 * xselect.c (selection_data_to_lisp_data):
4336 * xterm.c (XTread_socket): Disable composition handling.
4337
43382002-06-24 Stefan Monnier <monnier@cs.yale.edu>
4339
4340 * print.c (temp_output_buffer_setup): Kill all local variables.
4341
43422002-06-22 Stefan Monnier <monnier@cs.yale.edu>
4343
4344 * lread.c (Fread): Remove redundant and imprecise declaration.
4345
4346 * xfns.c (check_x_display_info): Use check_x_frame.
4347
4348 * .gdbinit (xprintsym): Use the new `xname' field.
4349 (xsymbol): Use it.
4350
43512002-06-22 Jason Rumney <jasonr@gnu.org>
4352
4353 * w32fns.c (file_dialog_callback): New function.
4354 (Fx_file_dialog): Allow selecting directories as well as files.
4355
43562002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4357
4358 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
4359 OpenBSD. Add support for mipseb-*-netbsd* machines.
4360
43612002-06-17 Andrew Choi <akochoi@shaw.ca>
4362
4363 * macterm.c (mac_scroll_area): Set foreground and backcolor to
4364 black and white before scrolling. Restore frame background and
4365 foreground color after scrolling.
4366 (do_window_update): Call XClearWindow before calling expose_frame.
4367 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
4368 FRAME_FOREGROUND_PIXEL of frame.
4369
4370 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
4371 test Mac command key as <ALT> key.
4372
43732002-06-17 Stefan Monnier <monnier@cs.yale.edu>
4374
4375 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
4376
4377 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
4378 Lookup keys in function-key-map immediately so that key-translation-map
4379 can be applied earlier.
4380 Remove function_key_possible and key_translation_possible, replaced
4381 by checking `keytran_start < t'.
4382
4383 * .gdbinit (xsymbol): Use the new `xname' field.
4384
43852002-06-17 Andrew Choi <akochoi@shaw.ca>
4386
4387 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
4388 test Mac command key as <ALT> key.
4389
4390 * mac.c (do_applescript): Call initialize_applescript if necessary
4391 when first called. Dispose of result_desc only when there is no error.
4392 (Fdo_applescript): Use %d format specifier instead of %ld.
4393
43942002-06-16 Andrew Choi <akochoi@shaw.ca>
4395
4396 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
4397 of FrontWindow for cases keyDown and autoKey.
4398
4399 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
4400 Vdefault_fontset to Monaco with mac-roman coding.
4401
4402 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
4403 init_process before and after inclusion of Carbon/Carbon.h, resp.
4404
4405 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
4406 cursor_gc.
4407 (add_font_name_table_entry): New function.
4408 (init_font_name_table): Use add_font_name_table_entry; add italic,
4409 bold, and bold-italic entries for truetype fonts.
4410
4411 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
4412 for Mac too.
4413 (try_font_list) [MAC_OS]: If no font matches given registry, try
4414 fonts with any registry matching face_family.
4415 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
4416
4417 * s/darwin.h: If autoconf detects the Ncurses library, define
4418 LIBS_TERMCAP to -lncurses to use it.
4419
44202002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
4421
4422 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
4423
44242002-06-15 Richard M. Stallman <rms@gnu.org>
4425
4426 * window.c (Fset_window_configuration): Explicitly preserve
4427 the point value that new_current_buffer had at the start.
4428
44292002-06-14 Juanma Barranquero <lektu@terra.es>
4430
4431 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
4432 Fix typos.
4433
44342002-06-14 Kim F. Storm <storm@cua.dk>
4435
4436 * insdel.c (insert_1_both, insert_from_string_1)
4437 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
4438 insert happened in the end_unchanged region. Otherwise, the
4439 redisplay may be confused and duplicate the last line in the
4440 buffer [seen after save-buffer when require-final-newline==t].
4441
44422002-06-13 Jason Rumney <jasonr@gnu.org>
4443
4444 * w32.c (init_environment): Remove EMACSLOCKDIR.
4445 (stat): Swap _S_IFDIR and _S_IFREG.
4446
44472002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4448
4449 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
4450 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
4451 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
4452 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
4453 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
4454 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
4455 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
4456 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
4457 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
4458 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
4459 SELECTION_REQUEST_EVENT, selection_clear_event to
4460 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
4461 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
4462 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
4463 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
4464 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
4465 no_event to NO_EVENT.
4466
44672002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4468
4469 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
4470
44712002-06-12 Stefan Monnier <monnier@cs.yale.edu>
4472
4473 * intervals.c (textget): Don't forget to `return'.
4474 (lookup_char_property): Use XCAR/XCDR.
4475
44762002-06-12 Juanma Barranquero <lektu@terra.es>
4477
4478 * xdisp.c (Fformat_mode_line): Fix typo.
4479
44802002-06-12 Kim F. Storm <storm@cua.dk>
4481
4482 * xdisp.c (Fformat_mode_line): New function.
4483 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
4484 (store_frame_title_char, store_frame_title): Use unconditionally.
4485 (init_xdisp): Defsubr Fformat_mode_line.
4486 Initialize frame_title_buf etc. unconditionally.
4487
44882002-06-11 Stefan Monnier <monnier@cs.yale.edu>
4489
4490 * keyboard.c (read_key_sequence):
4491 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
4492 things through those maps after downcasing events.
4493 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
4494 applies after function-key-map.
4495 Make sure that keytran can be done in the middle in the sequence.
4496 Be careful not to throw away events past the one we downcase.
4497
4498 * lread.c (read_integer): Remove unused var `tem'.
4499 (read1): Fix int/Lisp_Object mixup.
4500
4501 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
4502
45032002-06-11 Richard M. Stallman <rms@gnu.org>
4504
4505 * keyboard.c (readable_events): Ignore any number of
4506 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
4507
45082002-06-09 Miles Bader <miles@gnu.org>
4509
4510 * xfaces.c (Ftty_supports_face_attributes_p): New function.
4511 (parse_rgb_list, tty_lookup_color): New functions.
4512 (tty_defined_color): Use `tty_lookup_color' to do all the work.
4513 (color_distance, Fcolor_distance): New functions.
4514 (TTY_SAME_COLOR_THRESHOLD): New macro.
4515 (Qtty_color_standard_values): New variable.
4516 (syms_of_xfaces): Initialize new vars & functions.
4517
45182002-06-08 Colin Walters <walters@verbum.org>
4519
4520 * textprop.c (Vchar_property_alias_alist): New variable.
4521 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
4522
4523 * intervals.c (lookup_char_property): New function for looking up
4524 overlay and text properties, created from textget.
4525 (textget): Use it.
4526
4527 * intervals.h (lookup_char_property): Declare.
4528 (Vchar_property_alias_alist): Declare.
4529
4530 * buffer.c (Foverlay_get): Use lookup_char_property.
4531
45322002-06-07 Sam Steingold <sds@gnu.org>
4533
4534 * xselect.c (lisp_data_to_selection_data): Fix last change:
4535 *data_ret is not a Lisp string, while unibyte_string is.
4536
45372002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
4538
4539 * xselect.c (lisp_data_to_selection_data): Fix last change:
4540 set size_ret.
4541
45422002-06-07 Andreas Schwab <schwab@suse.de>
4543
4544 * m/amdx86-64.h: New file.
4545
45462002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
4547
4548 * fns.c (Fstring_make_unibyte): Doc fix.
4549
4550 * xselect.c (lisp_data_to_selection_data): If the requested type
4551 is STRING, call string_make_unibyte to encode the selected text
4552 as a string.
4553
4554 * window.c (Fset_window_hscroll): Doc fix.
4555
45562002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4557
4558 * fileio.c (choose_write_coding_system):
4559 Call select-safe-coding-system properly.
4560
45612002-06-03 Richard M. Stallman <rms@gnu.org>
4562
4563 * xdisp.c (message_with_string): Error if STRING is not a string.
4564
4565 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
4566
4567 * fileio.c (choose_write_coding_system): Pass FILE arg to
4568 Vselect_safe_coding_system_function.
4569
45702002-06-03 Ken Raeburn <raeburn@gnu.org>
4571
4572 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
4573
45742002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
4575
4576 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
4577 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
4578 * keymap.c (describe_command): Likewise.
4579 * minibuf.c (read_minibuf): Likewise.
4580
4581 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
4582 Cast `current_column' return value to int.
4583 (back_to_previous_visible_line_start)
4584 (reseat_at_next_visible_line_start, next_element_from_buffer):
4585 Cast `indented_beyond_p' 3rd arg to float.
4586
4587 * indent.c (last_known_column): Now a float.
4588 (current_column_1, position_indentation, current_column)
4589 (string_display_width): Return float.
4590 (Fcurrent_column): Cast `current_column' return value to int.
4591 (Fcurrent_indentation): Cast `position_indentation' retval to int.
4592 (indented_beyond_p): Third arg now a float.
4593 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
4594
4595 * lisp.h (current_column): Now returns float.
4596 (indented_beyond_p): 3rd arg now a float.
4597
45982002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
4599
4600 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
4601 is Qcompound_text_with_extensions.
4602
4603 * xselect.c (lisp_data_to_selection_data): Always set selection
4604 type as string if x_encode_text returns streingp non-NULL.
4605
4606 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
4607
46082002-05-30 Richard M. Stallman <rms@gnu.org>
4609
4610 * window.c (Fset_window_configuration): Correct the handling
4611 of point in current buffer, to work with multiple windows.
4612
46132002-05-29 Colin Walters <walters@verbum.org>
4614
4615 * lread.c (Fread_from_string): Don't depend on order of evaluation
4616 for C function parameters.
4617
46182002-05-28 Richard M. Stallman <rms@gnu.org>
4619
4620 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
4621 way for blinked-off state and for a nonselected window.
4622
4623 * window.c (window_scroll_pixel_based): Don't call Fbolp;
4624 instead, see if the new start pos is at beginning of line.
4625
4626 * fileio.c (Fwrite_region): If START is a string, don't
4627 make any annotations.
4628
4629 * eval.c (syms_of_eval): Doc fix.
4630
46312002-05-28 Colin Walters <walters@debian.org>
4632
4633 * emacs.c (USAGE1): Add --no-splash.
4634 (standard_args): Ditto.
4635
46362002-05-28 Colin Walters <walters@gnu.org>
4637
4638 * lread.c (readchar_count): New variable.
4639 (readchar): Increment it.
4640 (unreadchar): Decrement it.
4641 (read_multibyte): Decrement it.
4642 (Vread_with_symbol_positions): New variable.
4643 (Vread_symbol_positions_list): New variable.
4644 (read_internal_start): New function, created from Fread and
4645 Fread_from_string. Handle Vread_symbol_positions_list and
4646 Vread_with_symbol_positions.
4647 (readevalloop, Fread, Fread_from_string): Use it.
4648 (read1): Use readchar_count to add symbol positions to
4649 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
4650 (syms_of_lread): DEFVAR_LISP and initialize them.
4651
4652 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
4653 (substitute_object_recurse, substitute_object_in_subtree)
4654 (substitute_in_interval): Prototype.
4655 (read_multibyte): Return c if it's less than zero.
4656
46572002-05-28 Kim F. Storm <storm@cua.dk>
4658
4659 * fileio.c (Fread_file_name_internal): Added brute-force
4660 speed up for using predicate file-directory-p.
4661
46622002-05-28 Kim F. Storm <storm@cua.dk>
4663
4664 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
4665 New variables.
4666 (syms_of_fileio): DEFVAR_LISP them.
4667 (read_file_name_cleanup): New unwind function.
4668 (Fread_file_name_internal): Only return completions satifying
4669 Vread_file_name_predicate. Temporarily unwind protect and rebind
4670 default-directory while checking completions against the predicate.
4671 (Fread_file_name): Added PREDICATE argument. Specbind it to
4672 Vread_file_name_predicate during completion.
4673 Call Vread_file_name_function to read the file name if non-nil.
4674
4675 * lisp.h (Fread_file_name): Now has 6 args.
4676
4677 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
4678 predicate for Fread_file_name when reading directory name.
4679 Supply Qnil for predicate in other calls to Fread_file_name.
4680
46812002-05-26 Miles Bader <miles@gnu.org>
4682
4683 * term.c (tty_capable_p): New function.
4684 * dispextern.h (tty_capable_p): New function declaration.
4685 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
4686 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
4687
46882002-05-23 Stefan Monnier <monnier@cs.yale.edu>
4689
4690 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
4691 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
4692 (Vwrite_region_annotate_functions): Docstring fix.
4693
46942002-05-23 Kim F. Storm <storm@cua.dk>
4695
4696 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
4697 phys_cursor's hpos is overwritten. This is still not completely
4698 correct, as it doesn't really make sense to use hpos at all to
4699 get the cursor glyph (as that is relative to the width of the
4700 characters on the line, which may have changed during the update).
4701
47022002-05-22 Jason Rumney <jasonr@gnu.org>
4703
4704 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
4705 Lisp_Object.
4706 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
4707 Use modified enumfont_t struct.
4708
4709 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
4710
4711 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
4712 Handle the `hbar' cursor type.
4713 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
4714
4715 * w32fns.c (Qhbar): New variable.
4716 (x_specified_cursor_type): Use it.
4717
47182002-05-21 Ken Raeburn <raeburn@gnu.org>
4719
4720 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
4721 now, when the address is needed.
4722
47232002-05-21 Colin Walters <walters@gnu.org>
4724
4725 * Makefile.in (shortlisp): Add font-core.el.
4726
47272002-05-20 Richard M. Stallman <rms@gnu.org>
4728
4729 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
4730
4731 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
4732 equivalent key bindings here.
4733
47342002-05-20 Ken Raeburn <raeburn@gnu.org>
4735
4736 Change symbol structure to contain a lisp object for the symbol
4737 name:
4738 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
4739 object field named "xname".
4740 (SYMBOL_NAME): New macro.
4741 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
4742 name field.
4743 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
4744 (mark_object, gc_sweep): Use symbol xname field and XSTRING
4745 instead of name field.
4746 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
4747 SYMBOL_NAME instead of XSYMBOL and name field.
4748 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
4749 instead of XSYMBOL and name field.
4750 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
4751 and SYMBOL_NAME instead of XSYMBOL and name field.
4752 * coding.c (Fread_coding_system, code_convert_region1)
4753 (code_convert_string1, code_convert_string_norecord)
4754 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
4755 XSYMBOL and name field.
4756 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
4757 (Fmake_variable_buffer_local, Fmake_local_variable)
4758 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
4759 of XSYMBOL and name field.
4760 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
4761 XSYMBOL and name field.
4762 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
4763 instead of XSYMBOL and name field.
4764 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
4765 XSYMBOL and name field.
4766 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
4767 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
4768 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
4769 instead of XSYMBOL and name field.
4770 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
4771 (parse_modifiers, apply_modifiers, Fevent_convert_list)
4772 (parse_solitary_modifier, Fexecute_extended_command):
4773 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
4774 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
4775 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
4776 of XSYMBOL and name field.
4777 (describe_command, describe_translation): Use SYMBOL_NAME and
4778 assignment instead of XSYMBOL and name field and XSETSTRING.
4779 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
4780 instead of XSYMBOL and name field.
4781 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
4782 name field and XSETSTRING.
4783 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
4784 of XSYMBOL and name field.
4785 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
4786 assignment instead of XSYMBOL and name field and XSETSTRING.
4787 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
4788 XSTRING instead of XSYMBOL and name field.
4789 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
4790 and XSTRING instead of XSYMBOL and name field.
4791 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
4792 and XSTRING instead of XSYMBOL and name field.
4793 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
4794 XSTRING instead of XSYMBOL and name field.
4795 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
4796 of XSYMBOL and name field.
4797 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
4798 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
4799
48002002-05-19 Ken Raeburn <raeburn@gnu.org>
4801
4802 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
4803 and XCDR real rvalues in most configurations.
4804
4805 * buffer.c (fix_overlays_in_range, fix_overlays_before):
4806 Don't take the address of the cdr part of a cons cell; instead, track
4807 the parent cell and call XSETCDR, or set the variable for the head
4808 of the list if we haven't started down the list yet.
4809
48102002-05-19 Richard M. Stallman <rms@gnu.org>
4811
4812 * doc.c (reread_doc_file): Don't ask for confirmation.
4813
48142002-05-18 Jason Rumney <jasonr@gnu.org>
4815
4816 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
4817 (xbm_load_image): Use it.
4818 (xbm_load): Ditto.
4819 (xbm_read_bitmap_data): Reverted to xfns.c version.
4820 From David Ponce <david@dponce.com>.
4821
48222002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
4823
4824 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
4825 2.02 and later.
4826
48272002-05-16 Juanma Barranquero <lektu@terra.es>
4828
4829 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
4830
48312002-05-15 Stefan Monnier <monnier@cs.yale.edu>
4832
4833 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
4834 meaningful test.
4835 (read_char_minibuf_menu_prompt): Fix typo.
4836
48372002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
4838
4839 * eval.c (Fcommandp): Doc fix.
4840
48412002-05-13 Stefan Monnier <monnier@cs.yale.edu>
4842
4843 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
4844 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
4845 (Fset_keymap_parent): Gcpro a bit more.
4846 (access_keymap): Gcpro around meta_map call and around the main loop.
4847 (get_keyelt): Gcpro when following indirect references.
4848 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
4849 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
4850 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
4851 Remove useless ad-hoc remap code.
4852
48532002-05-13 Richard M. Stallman <rms@gnu.org>
4854
4855 * search.c (search_buffer): Give up boyer moore search if inverse
4856 translation change charset_base.
4857
48582002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
4859
4860 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
4861 characters is carried over from the previous block of text, adjust
4862 coding->produced to account for the extra character.
4863
48642002-05-11 Andreas Schwab <schwab@suse.de>
4865
4866 * coding.c (intersection): Keep the elements of the returned list
4867 in the same order as in the first list.
4868
48692002-05-11 Kim F. Storm <storm@cua.dk>
4870
4871 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
4872 only update cmm_size if realloc actually succeeds.
4873 Testing with initial size of 2 elements revealed that using
4874 realloc on GNU/Linux would cause a random trap in xmalloc
4875 later on, so I rewrote the code to use malloc/bcopy/free instead
4876 of realloc.
4877
48782002-05-10 Jason Rumney <jasonr@gnu.org>
4879
4880 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
4881
48822002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
4883
4884 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
4885 parens, to ensure correct evaluation order.
4886
48872002-05-10 Kim F. Storm <storm@cua.dk>
4888
4889 * keymap.c (Vemulation_mode_map_alists): New variable.
4890 (syms_of_keymap): DEFVAR_LISP it.
4891 (current_minor_maps): Process keymap alists in that list before
4892 minor-mode-overriding-map-alist and minor-mode-map-alist.
4893
48942002-05-09 Richard M. Stallman <rms@gnu.org>
4895
4896 * search.c (Freplace_match): Doc fix.
4897
48982002-05-09 Kim F. Storm <storm@cua.dk>
4899
4900 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
4901 Enlarge cursor rectangle drawn around image with non-zero relief.
4902
4903 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
4904 Enlarge cursor rectangle drawn around image with non-zero relief.
4905
4906 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
4907 Enlarge cursor rectangle drawn around image with non-zero relief.
4908
49092002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
4910
4911 * xselect.c (lisp_data_to_selection_data): Don't set selection
4912 type if comes from the Lisp object's car. If the selection
4913 contains a pure ASCII text, always return QSTRING as its type.
4914
49152002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4916
4917 * mac.c (mac-cut-function): Doc fix.
4918
49192002-05-05 Richard M. Stallman <rms@gnu.org>
4920
4921 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
4922
49232002-05-04 Jason Rumney <jasonr@gnu.org>
4924
4925 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
4926 for event-click-count.
4927
4928 * process.c (init_process): Only add server subfeature if we can
4929 use non-blocking I/O.
4930
49312002-05-04 Andrew Choi <akochoi@shaw.ca>
4932
4933 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
4934 repeatedly.
4935
49362002-05-03 Jason Rumney <jasonr@gnu.org>
4937
4938 * process.c (Fmake_network_process): Only support server sockets
4939 when we can make them non-blocking.
4940
4941 * s/ms-w32.h (HAVE_SELECT): Define.
4942
4943 * w32.h (FILE_NDELAY): New flag.
4944
4945 * w32.c (sys_getpeername, fcntl): New functions.
4946 (_sys_read_ahead): Temporarily block on non-blocking sockets.
4947
4948 * w32proc.c: include sys/file.h.
4949
49502002-05-03 Colin Walters <walters@verbum.org>
4951
4952 * callproc.c (Vgame_score_directory): Renamed to
4953 Vshared_game_score_directory.
4954
49552002-04-30 Richard M. Stallman <rms@gnu.org>
4956
4957 * s/gnu.h [emacs]: Include stdio.h.
4958 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
4959
4960 * eval.c (do_autoload): Error if called while preparing to dump.
4961
4962 * fns.c (Frequire): Error if need to load while preparing to dump.
4963
49642002-04-28 Colin Walters <walters@verbum.org>
4965
4966 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
4967 Default to "~/.emacs.d/games".
4968
49692002-04-29 Stefan Monnier <monnier@cs.yale.edu>
4970
4971 * lread.c (openp): Change arg exec_only to predicate.
4972 (build_load_history): Use XCAR/XCDR.
4973 (Flocate_file_internal): New fun.
4974 (syms_of_lread): Defsubr it.
4975 (Fload): Update call to openp.
4976
4977 * lisp.h (openp): Update prototype.
4978
4979 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
4980 * w32proc.c (sys_spawnve):
4981 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
4982 * w32.c (check_windows_init_file):
4983 * sound.c (Fplay_sound_internal):
4984 * process.c (Fstart_process):
4985 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
4986 * mac.c (run_mac_command):
4987 * emacs.c (init_cmdargs):
4988 * callproc.c (Fcall_process): Update call to openp.
4989
4990 * textprop.c (remove_properties): Don't use XCAR without CONSP.
4991
4992 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
4993
49942002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4995
4996 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
4997 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
4998
49992002-04-28 Richard M. Stallman <rms@gnu.org>
5000
5001 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
5002
5003 * eval.c (Fcommandp): New arg for_call_interactively.
5004 * lisp.h (Fcommandp): Declare new arg.
5005
50062002-04-28 Jason Rumney <jasonr@gnu.org>
5007
5008 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
5009
5010 * w32.c (stat, fstat): Use file index information to generate
5011 inodes for directories where available.
5012
50132002-04-26 Andrew Choi <akochoi@shaw.ca>
5014
5015 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
5016 [HAVE_CARBON]: Include Mac object files.
5017
5018 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
5019 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
5020 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
5021 MAC_OSX, and MAC_OS instead of macintosh.
5022
5023 * editfns.c [MAC_OS8]: Include stdio.h.
5024
5025 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
5026
5027 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
5028 Apple Monaco.
5029
5030 * process.c: Declare QCfamily and QCfilter as extern.
5031 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
5032 calling select.
5033
5034 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
5035
5036 * tparam.c [MAC_OSX]: Don't define BC and UP.
5037
5038 * config.in [HAVE_CARBON]: Add.
5039
5040 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
5041 Move here from mac/src and mac/inc.
5042
5043 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
5044
50452002-04-26 Gerd Moellmann <gerd@gnu.org>
5046
5047 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
5048 Compute phys_cursor_width from the x position returned
5049 by x_draw_glyhs, which is cheaper.
5050 (x_display_and_set_cursor): Compute the buffer-local value
5051 of `cursor-in-non-selected-windows' only when needed.
5052
50532002-04-25 Gerd Moellmann <gerd@gnu.org>
5054
5055 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
5056 cursor on a stretch glyph has a width that depends on
5057 x_stretch_cursor_p.
5058
50592002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5060
5061 * abbrev.c (abbrev-start-location): Doc fix.
5062
5063 * indent.c (Fvertical_motion): Fix last change.
5064
50652002-04-25 Gerd Moellmann <gerd@gnu.org>
5066
5067 * indent.c (Fvertical_motion): Move to the start of the line
5068 containing PT before moving up or down.
5069
50702002-04-24 Gerd Moellmann <gerd@gnu.org>
5071
5072 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
5073 case of writing a whole row, more or less analogous to the case of
5074 writing only parts of a row.
5075
5076 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
5077 0 for NO_CURSOR.
5078
5079 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
5080
50812002-04-23 Colin Walters <walters@verbum.org>
5082
5083 * buffer.c (syms_of_buffer): Doc fix.
5084
50852002-04-23 Gerd Moellmann <gerd@gnu.org>
5086
5087 * xterm.c (notice_overwritten_cursor): Handle the special case
5088 of the cursor being in the first blank non-text line at the
5089 end of a window.
5090
5091 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
5092 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
5093 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
5094 bar cursors only, to make phys_cursor_width contain what its name
5095 suggests.
5096 (notice_overwritten_cursor): Consider the cursor image erased if
5097 the output area intersects the cursor image in y-direction.
5098
50992002-04-23 Simon Marshall <simon@gnu.org>
5100
5101 * xfns.c (x_set_mouse_color): Change default for cross_cursor
5102 to XC_hand2.
5103
51042002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5105
5106 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
5107
51082002-04-22 Kim F. Storm <storm@cua.dk>
5109
5110 * textprop.c (remove_properties): Fixed trap for malformed plist.
5111
51122002-04-22 Richard M. Stallman <rms@gnu.org>
5113
5114 * cmds.c (Fend_of_line): Handle intangible text in mid line.
5115
5116 * window.c (make_window): Initialize height_fixed_p,
5117 last_cursor_off_p, and p->cursor_off_p slots.
5118
51192002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5120
5121 * fns.c (use-dialog-box): Doc fix.
5122
51232002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5124
5125 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
5126 variables `row', `i' and `area'.
5127 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
5128 toolkit library.
5129
51302002-04-19 Stefan Monnier <monnier@cs.yale.edu>
5131
5132 * xfaces.c (clear_font_table): Don't free the default font of
5133 a frame even if it's on another display.
5134 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
5135 that could be Qt.
5136
51372002-04-19 Juanma Barranquero <lektu@terra.es>
5138
5139 * indent.c (Fmove_to_column): Remove unused local variable
5140 `next_boundary_byte'.
5141 (current_column_1): Likewise.
5142
51432002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
5144
5145 * msdos.c (Qhbar): New variable.
5146 (syms_of_msdos): Intern and staticpro it.
5147 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
5148 cursor type.
5149
51502002-04-19 Dave Lambert <dlambert@acm.org>
5151
5152 Theses change implement an underscore-like (`hbar') cursor.
5153
5154 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
5155
5156 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
5157 Handle the `hbar' cursor type.
5158 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
5159
5160 * xfns.c (Qhbar): New variable.
5161 (syms_of_xfns): Intern and staticpro it.
5162 (x_specified_cursor_type): Handle `hbar' cursor.
5163
5164 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
5165 not defined.
5166
51672002-04-18 Richard M. Stallman <rms@gnu.org>
5168
5169 * textprop.c (remove_properties): New arg LIST allows scanning
5170 either a list or a plist.
5171 (interval_has_some_properties_list): New function, like
5172 interval_has_some_properties using list instead of plist.
5173 All callers changed.
5174 (Fremove_list_of_text_properties): New function.
5175 (syms_of_textprop): Defsubr it.
5176
51772002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
5178
5179 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
5180
51812002-04-17 Juanma Barranquero <lektu@terra.es>
5182
5183 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
5184
51852002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
5186
5187 * window.c (coordinates_in_window): Don't report on margin area
5188 if its width is zero.
5189
51902002-04-16 Jason Rumney <jasonr@gnu.org>
5191
5192 * w32fns.c (Fx_file_dialog): Decode file name before using.
5193
5194 * w32term.c (construct_drag_n_drop): Likewise.
5195
51962002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
5197
5198 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
5199 store load-history in pure space.
5200
5201 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
5202
52032002-04-16 Stefan Monnier <monnier@cs.yale.edu>
5204
5205 * xterm.c (Qlatin_1, Qutf_8): New vars.
5206 (syms_of_xterm): Initialize them.
5207 (XTread_socket): Eliminate incorrect optimization that tried to avoid
5208 decoding the output of X*LookupString.
5209 Always use latin-1 to decode the output of XLookupString.
5210 Try Xutf8LookupString if XmbLookupString failed.
5211
5212 * region-cache.c (new_region_cache): Use BEG.
5213
52142002-04-16 Gerd Moellmann <gerd@gnu.org>
5215
5216 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
5217 configuration files.
5218 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
5219 returns 0.
5220
52212002-04-15 Andreas Schwab <schwab@suse.de>
5222
5223 * config.in: Regenerated using autoheader.
5224
5225 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
5226 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
5227 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
5228 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
5229 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
5230 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
5231 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
5232 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
5233 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
5234 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
5235 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
5236 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
5237 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
5238 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
5239 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
5240 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
5241 STACK_DIRECTION, now set by autoconf.
5242
52432002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5244
5245 * dispnew.c (marginal_area_string): Sort arguments.
5246
5247 * dispextern.h (marginal_area_string): Add prototype.
5248
52492002-04-13 Richard M. Stallman <rms@gnu.org>
5250
5251 * fileio.c (Finsert_file_contents):
5252 Don't call temp_output_buffer_setup--do just part, by hand.
5253
5254 * coding.c (run_pre_post_conversion_on_str):
5255 Don't call temp_output_buffer_setup--do just part, by hand.
5256
5257 * keyboard.c (command_loop_1): Don't call start_hourglass
5258 or cancel_hourglass when executing a macro.
5259
5260 * marker.c (count_markers): New function.
5261
5262 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
5263 grow without limit. Move recently used elements to the front.
5264
52652002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
5266
5267 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
5268
52692002-04-12 Gerd Moellmann <gerd@gnu.org>
5270
5271 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
5272 rows marginal areas.
5273 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
5274 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
5275
5276 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
5277
52782002-04-12 Dave Love <fx@gnu.org>
5279
5280 * dispnew.c (marginal_area_string): New.
5281
5282 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
5283 (Qleft_margin, Qright_margin): Declare.
5284 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
5285
5286 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
5287 note_mode_line_highlight and extended.
5288
5289 * keyboard.c (Qleft_margin, Qright_margin): Declare.
5290 (make_lispy_event): Deal with mouse events in margins.
5291
52922002-04-12 Stefan Monnier <monnier@cs.yale.edu>
5293
5294 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
5295
5296 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
5297 than deactivating the mark if tmm is set to `lambda'.
5298 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
5299 Use a single event for HELP_EVENT.
5300 (Fexecute_extended_command): Save last_point_position.
5301
53022002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5303
5304 * lisp.h (Fpropertize): Add prototype.
5305
5306 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
5307
53082002-04-10 Colin Walters <walters@verbum.org>
5309
5310 * config.in: Add HAVE_SHARED_GAME_DIR.
5311
5312 * callproc.c: (Vgame_score_directory): New variable.
5313 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
5314
53152002-04-10 Richard M. Stallman <rms@gnu.org>
5316
5317 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
5318
53192002-04-09 Stefan Monnier <monnier@cs.yale.edu>
5320
5321 * minibuf.c (read_minibuf): Use empty_string.
5322 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
5323 Short-circuit the search as soon as it "failed".
5324 (Fall_completions): Allow lambda forms and lists of strings for alist.
5325 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
5326 when require_match is nil.
5327 (Ftest_completion): Rename from `test_completion' and export to elisp.
5328 Call the predicate also when alist is a list.
5329 Obey Vcompletion_regexp_list.
5330 (do_completion, Fminibuffer_complete_and_exit): Use it.
5331 (Fassoc_string): Rename from `assoc_for_completion'.
5332 Allow list of strings as well and export to elisp.
5333
53342002-04-08 Stefan Monnier <monnier@cs.yale.edu>
5335
5336 * puresize.h (BASE_PURESIZE): Increase to 900KB.
5337
53382002-04-08 Juanma Barranquero <lektu@terra.es>
5339
5340 * w32.c (sys_accept): Don't hide variable `s'.
5341
53422002-04-05 Gerd Moellmann <gerd@gnu.org>
5343
5344 * callint.c (Fcall_interactively): Use INTEGERP instead of
5345 NUMBERP for checking Vhistory_length.
5346
53472002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5348
5349 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
5350 Doc fix to reflect it.
5351
53522002-04-04 Richard M. Stallman <rms@gnu.org>
5353
5354 * xdisp.c (display_mode_element): New arg RISKY.
5355 Disregard text props found or specified within a variable
5356 that isn't marked risky-local-variable.
5357 (Qrisky_local_variable): New variable.
5358 (syms_of_xdisp): Init and staticpro it.
5359
53602002-04-04 Stefan Monnier <monnier@cs.yale.edu>
5361
5362 * undo.c (record_point): New fun.
5363 (record_delete, record_insert): Use it.
5364
53652002-04-03 Juanma Barranquero <lektu@terra.es>
5366
5367 * doc.c (Fdocumentation): Add missing parentheses.
5368 (Fdocumentation_property): Likewise.
5369
53702002-04-03 Stefan Monnier <monnier@cs.yale.edu>
5371
5372 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
5373 data is 0, just return nil.
5374
53752002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
5376
5377 * msdos.c (syms_of_msdos): Fix last change with
5378 mouse_autoselect_window.
5379
53802002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5381
5382 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
5383 mouse_autoselect_window.
5384
53852002-04-02 Stefan Monnier <monnier@cs.yale.edu>
5386
5387 * keyboard.c (make_lispy_event): Handle unknown keysyms together
5388 with system-specific keysyms. Use it also for unknown function keys.
5389
5390 * doc.c (reread_doc_file): Return whether reload was attempted.
5391 (Fdocumentation, Fdocumentation_property): Don't try to reload
5392 if the doc is 0 and only ask once.
5393
5394 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
5395
53962002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
5397
5398 * keyboard.c (read_char): If the event was Qselect_window,
5399 restore timer_idleness_start_time to its previous value.
5400
5401 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
5402
54032002-04-01 Stefan Monnier <monnier@cs.yale.edu>
5404
5405 * region-cache.c (new_region_cache): Use BEG.
5406
5407 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
5408 Use BEG and BEG_BYTE.
5409
5410 * doc.c (get_doc_string): Return nil if the location is wrong.
5411 (reread_doc_file): New fun.
5412 (Fdocumentation, Fdocumentation_property):
5413 Call it if get_doc_string fails.
5414 (Fsnarf_documentation): Make it work for a dumped Emacs.
5415
5416 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
5417 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
5418
5419 * charset.c (Fstring): Allow 0 arguments.
5420
5421 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
5422
5423 * process.c (DATAGRAM_CONN_P, list_processes_1)
5424 (Fprocess_datagram_address, Fset_process_datagram_address)
5425 (Fset_network_process_options, server_accept_connection):
5426 Fix some int/Lisp_Object confusions (thank you union types).
5427
54282002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5429
5430 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
5431
5432 * w32term.c: Likewise.
5433 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
5434
5435 * keyboard.c (Qselect_window): New symbol.
5436 (head_table): Use it.
5437 (keys_of_keyboard): Bound select-window event to handle-select-window.
5438 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
5439
5440 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
5441 (last_window): New variable.
5442 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
5443 (note_mouse_movement): Remove reimplemented code in #if 0.
5444 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
5445 Emacs windows.
5446
5447 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
5448
54492002-03-31 Gerd Moellmann <gerd@gnu.org>
5450
5451 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
5452 Callers changed.
5453
54542002-03-30 Richard M. Stallman <rms@gnu.org>
5455
5456 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
5457 loop whenever it stops making progress.
5458
5459 * widget.c (set_frame_size): Don't call change_frame_size.
5460
54612002-03-30 Gerd Moellmann <gerd@gnu.org>
5462
5463 * dispnew.c (direct_output_for_insert):
5464 Call mark_window_display_accurate.
5465
54662002-03-29 Jason Rumney <jasonr@gnu.org>
5467
5468 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
5469
54702002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
5471
5472 * Makefile.in (lread.o): Depend on coding.h.
5473
5474 * lread.c (openp, Fload): Encode the file name before passing it
5475 to `stat', `access', and `emacs_open'.
5476 (openp): GCPRO the encoded file name. Don't recompute Lisp
5477 strings unnecessarily.
5478
54792002-03-29 Kim F. Storm <storm@cua.dk>
5480
5481 * fns.c (Flax_plist_put): Doc fix.
5482
54832002-03-28 Miles Bader <miles@gnu.org>
5484
5485 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
5486
54872002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5488
5489 * process.c (set-network-process-options): Add usage.
5490 (make-network-process): Doc fix.
5491
54922002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
5493
5494 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
5495
54962002-03-26 Richard M. Stallman <rms@gnu.org>
5497
5498 * fns.c (Fsubstring_no_properties): New function.
5499 (Flax_plist_get, Flax_plist_put): New functions.
5500 (syms_of_fns): defsubr them.
5501
5502 * xdisp.c (update_menu_bar): Test only update_mode_lines;
5503 don't test or alter w->update_mode_line.
5504
5505 * window.c (Fdisplay_buffer): Doc fix.
5506
55072002-03-24 Richard M. Stallman <rms@gnu.org>
5508
5509 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
5510
55112002-03-24 Gerd Moellmann <gerd@gnu.org>
5512
5513 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
5514 (Fdefmacro): Handle `(declare ...)'.
5515 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
5516 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
5517
55182002-03-24 Jason Rumney <jasonr@gnu.org>
5519
5520 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
5521 (xbm_file_p): Add prototypes.
5522 (xbm_format, xbm_image_p): Sync with xfns.c.
5523 (reflect_byte): New function.
5524 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
5525 (xbm_load_image): Create bitmaps with a depth of 1.
5526 (init_xfns): Enable XBM images.
5527
55282002-03-23 Jason Rumney <jasonr@gnu.org>
5529
5530 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
5531 correctly. Do not pass up_modifier to keyboard buffer.
5532
5533 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
5534
55352002-03-22 Stefan Monnier <monnier@cs.yale.edu>
5536
5537 * Makefile.in (bootstrapclean): New target.
5538 (bootstrap-temacs, bootstrap-doc): Remove.
5539 (bootstrap-emacs): Use a bog-standard `temacs'.
5540 Don't bother to build a DOC file.
5541
5542 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
5543
5544 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
5545 in temacs even if !CANNOT_DUMP.
5546 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
5547
5548 * alloc.c (check_pure_size): Only output a warning.
5549
55502002-03-22 Jason Rumney <jasonr@gnu.org>
5551
5552 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
5553 supported.
5554
5555 * w32term.c (zv_bits): Declare as short, for word alignment.
5556 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
5557 (syms_of_w32term): Define x-use-underline-position-properties.
5558
5559 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
5560 (clear_image_cache): Block input, fix logic, clear matrices in
5561 all frames that share this cache.
5562
55632002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
5564
5565 * emacs.c (main): Update the Copyright year in the blurb printed
5566 by "emacs --version".
5567
5568 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
5569
5570 * xterm.c (XTread_socket): If XK_ISO_Lock and
5571 XK_ISO_Last_Group_Lock are defined, handle keysyms between
5572 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
5573
55742002-03-21 Kim F. Storm <storm@cua.dk>
5575
5576 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
5577 menu-bar bindings in keymap and local-map properties _are_ used.
5578 But try keymap property first in accordance with 2002-01-03 patch.
5579 Added comment describing why this is not always reliable.
5580 (tool_bar_items): Ditto for tool-bar.
5581
55822002-03-21 Jason Rumney <jasonr@gnu.org>
5583
5584 * w32fns.c (x_clear_image_1): Disable color table code.
5585
55862002-03-21 Kim F. Storm <storm@cua.dk>
5587
5588 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
5589 removed the wrong version of the DEFUN macro; fixed it.
5590
5591 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
5592 Fmember rather than Fmemq).
5593 (Fprovide): Check that subfeatures is a list.
5594
5595 * process.c (QCfeature, QCdatagram): Removed variables.
5596 (QCtype, Qdatagram): New variables.
5597 (network_process_featurep): Removed function.
5598 (Fmake_network_process): Removed :feature check.
5599 Use :type 'datagram instead of :datagram t to create a datagram
5600 socket. This allows us to add other connection types (e.g. raw
5601 sockets) later in a consistent manner.
5602 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
5603 supported subfeatures for feature make-network-process.
5604 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
5605 Intern and staticpro QCtype and Qdatagram.
5606 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
5607
5608 * xfns.c: (QCtype): Remove duplicate declaration and
5609 initialization (is now declared in process.c).
5610
5611 * w32fns.c: (QCtype): Remove duplicate declaration and
5612 initialization (is now declared in process.c).
5613
56142002-03-21 Richard M. Stallman <rms@gnu.org>
5615
5616 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
5617 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
5618 when jumping to `fail' to avoid undoing reg changes in the
5619 last iteration of the loop.
5620 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
5621
5622 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
5623 Depend on process.h.
5624
56252002-03-20 Jason Rumney <jasonr@gnu.org>
5626
5627 Most of the following changes are still conditional on HAVE_IMAGES
5628 which is not set by default on Windows.
5629
5630 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
5631
5632 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
5633 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
5634 (four_corners_best, x_clear_image_1, x_clear_image)
5635 (x_alloc_image_color, postprocess_image)
5636 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
5637 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
5638 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
5639
5640 * w32gui.h (struct XImage): Define.
5641
5642 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
5643 extract mouse co-ordinates.
5644
56452002-03-20 Jason Rumney <jasonr@gnu.org>
5646
5647 * w32.c (init_winsock): Dynamically load new server and UDP
5648 socket functions.
5649 (socket_to_fd): New function.
5650 (sys_socket): Use it.
5651 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
5652 (sys_recvfrom, sys_sendto): New wrapper functions.
5653
5654 * process.c (QCfamily, QCfilter): Remove duplicate declaration
5655 and initialization.
5656
5657 * makefile.w32-in (LIBS): Remove $(WSOCK32).
5658
56592002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
5660
5661 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
5662 Don't use "sun" as a variable, it's a predefined constant on Sun
5663 machines.
5664
56652002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5666
5667 * bytecode.c (Fbyte_code): Revert last change.
5668
56692002-03-19 Kim F. Storm <storm@cua.dk>
5670
5671 * makefile.w32-in (LIBS): Add $(WSOCK32).
5672 From David Ponce <dponce@voila.fr>.
5673
56742002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5675
5676 * process.c (wait_reading_process_input): Move variables `pname'
5677 and `pnamelen' down where they are used.
5678
5679 * bytecode.c (Fbyte_code): Discard unused computed value to
5680 prevent gcc warning.
5681
5682 * lisp.h (Fplist_member): Add prototype.
5683
56842002-03-18 Kim F. Storm <storm@cua.dk>
5685
5686 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
5687 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
5688
5689 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
5690 Remove explicit GNU_LINUX settings for datagram support.
5691
56922002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5693
5694 * process.c (Fmake_network_process): Remove unused variable `sa'.
5695 Doc fix. Add usage:.
5696 (set_socket_options): Remove unused variables `optnum' and `opttype'.
5697
56982002-03-17 Richard M. Stallman <rms@gnu.org>
5699
5700 * xdisp.c (cursor_type_changed): New variable.
5701 (redisplay_internal): Redisplay all windows if cursor_type_changed.
5702 Clear it when clearing windows_or_buffers_changed.
5703 (try_cursor_movement, redisplay_window, try_window_id)
5704 (try_window_reusing_current_matrix): Test cursor_type_changed
5705 along with windows_or_buffers_changed.
5706
5707 * window.h (cursor_type_changed): New variable.
5708
5709 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
5710 not update_mode_lines, and always set it to 1.
5711
5712 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
5713 if no frames needed redrawing.
5714
57152002-03-17 Kim F. Storm <storm@cua.dk>
5716
5717 The following changes add support for network server processes,
5718 datagram connections, and local (unix) sockets.
5719
5720 * process.h (struct Lisp_Process): New member log.
5721 Doc fix: Member command used to indicate stopped network process.
5722 Doc fix: Member childp contains plist for network process.
5723 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
5724
5725 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
5726 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
5727 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
5728 New variables.
5729 (NETCONN1_P): New macro.
5730 (DATAGRAM_SOCKETS): New conditional symbol.
5731 (datagram_address): New array.
5732 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
5733 (status_message): Use concat3.
5734 (Fprocess_status): Add `listen' status to doc string. Return `stop'
5735 for a stopped network process.
5736 (Fset_process_buffer): Update contact plist for network process.
5737 (Fset_process_filter): Ditto. Don't enable input for stopped
5738 network processes. Server must listen, even if filter is t.
5739 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
5740 New functions.
5741 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
5742 (Fprocess_contact): Added KEY argument. Handle datagrams.
5743 (list_processes_1): Optionally show only processes with the query
5744 on exit flag set. Dynamically adjust column widths. Omit tty
5745 column if not needed. Report stopped network processes.
5746 Identify server and datagram network processes.
5747 (Flist_processes): New optional arg `query-only'.
5748 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
5749 (conv_lisp_to_sockaddr, set_socket_options)
5750 (network_process_featurep, unwind_request_sigio): New helper functions.
5751 (Fprocess_datagram_address, Fset_process_datagram_address):
5752 (Fset_network_process_options): New lisp functions.
5753 (Fopen_network_stream): Removed. Now defined in simple.el.
5754 (Fmake_network_process): New lisp function. Code is based on previous
5755 Fopen_network_stream, but heavily reworked with new property list based
5756 argument list, support for datagrams, server processes, and local
5757 sockets in addition to old client-only functionality.
5758 (server_accept_connection): New function.
5759 (wait_reading_process_input): Use it to handle incoming connects.
5760 Do not enable input on a new connection if process is stopped.
5761 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
5762 (send_process): Handle datagram sockets.
5763 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
5764 network process is indicated by setting command field to t .
5765 (Fprocess_send_eof): No-op if datagram connection.
5766 (Fstatus_notify): Don't read input for a stream server socket or a
5767 stopped network process.
5768 (init_process): Initialize datagram_address array.
5769 (syms_of_process): Intern and staticpro new variables, defsubr new
5770 functions.
5771
57722002-03-16 Jason Rumney <jasonr@gnu.org>
5773
5774 * w32fns.c (w32_to_all_x_charsets): Return correct type in
5775 startup case.
5776
57772002-03-16 Richard M. Stallman <rms@gnu.org>
5778
5779 * xdisp.c (redisplay_internal, redisplay_windows):
5780 Use list_of_error to call internal_condition_case_1.
5781 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
5782 so as to catch all errors with no possibility of debugger redisplay.
5783 (list_of_error): New variable.
5784 (syms_of_xdisp): Init and staticpro it.
5785
5786 * print.c (print_object): Delete `\ ' from printed rep of frame.
5787
57882002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
5789
5790 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
5791 until its implementation is fixed.
5792
57932002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5794
5795 * xfns.c (png_load): Remove unused variable `gamma_str'.
5796
57972002-03-14 Richard M. Stallman <rms@gnu.org>
5798
5799 * xfns.c (x_real_positions): Handle failure in XQueryTree.
5800
58012002-03-14 Miles Bader <miles@gnu.org>
5802
5803 * intervals.c (adjust_for_invis_intang): New function.
5804 (set_point_both): Use `adjust_for_invis_intang' to do most of the
5805 work for dealing with invisible+intangible regions. Do so before
5806 and after both forward and backward movements, to handle both
5807 front-sticky and rear-sticky cases.
5808 * textprop.c (text_property_stickiness): Function moved here from
5809 `editfns.c'.
5810 * intervals.h (text_property_stickiness): New declaration.
5811 * editfns.c (char_property_eq): Function removed.
5812 (text_property_stickiness): Function moved to `textprop.c'.
5813
58142002-03-13 Jason Rumney <jasonr@gnu.org>
5815
5816 * config.in: Add STRFTIME_NO_POSIX2.
5817
5818 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
5819 and %OX when underlying strftime does not.
5820
58212002-03-13 Stefan Monnier <monnier@cs.yale.edu>
5822
5823 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
5824 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
5825 line) to avoid annoying flicker.
5826 (xm_scroll_callback): Get rid of the now unnecessary kludge.
5827 (XTread_socket): Mark it static.
5828
5829 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
5830
58312002-03-13 Kim F. Storm <storm@cua.dk>
5832
5833 * puresize.h (BASE_PURESIZE): Increase to 775000.
5834
58352002-03-12 Juanma Barranquero <lektu@terra.es>
5836
5837 * editfns.c (syms_of_editfns): Fix typo.
5838
58392002-03-12 Gerd Moellmann <gerd@gnu.org>
5840
5841 * xsmfns.c: Include stdio.h because termhooks.h needs it.
5842 Include termopt.h for interrupt_input.
5843
58442002-03-11 Andreas Schwab <schwab@suse.de>
5845
5846 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
5847
58482002-03-11 Gerd Moellmann <gerd@gnu.org>
5849
5850 * xterm.c (note_mouse_movement): Put code for
5851 x_autoselect_window_p in #if 0.
5852
5853 * lread.c (Fload): Don't assume that message_with_string uses the
5854 string it is given like a C string.
5855
58562002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5857
5858 * xterm.h (x_session_check_input, x_session_initialize): Declared.
5859
5860 * xterm.c: (XTread_socket): Add call to x_session_check_input and
5861 x_session_have_connection.
5862 (x_initialize): Add call to x_session_initialize.
5863
5864 * termhooks.h (enum event_kind): Add save_session_event.
5865
5866 * keyboard.c: Add Emacs event save_session_event.
5867
5868 * emacs.c (main): Add call to syms_of_xsmfns.
5869
5870 * lisp.h: Declare syms_of_xsmfns as extern.
5871
5872 * config.in: Add HAVE_X_SM.
5873
5874 * Makefile.in (LIBXT): Add -lSM -lICE
5875 if HAVE_X_SM and not USE_X_TOOLKIT.
5876 (XOBJ): New file xsmfns.c added.
5877
5878 * xsmfns.c: New file for X session management.
5879
58802002-03-09 Jason Rumney <jasonr@gnu.org>
5881
5882 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
5883 read-only when setting modified time.
5884
58852002-03-08 Gerd Moellmann <gerd@gnu.org>
5886
5887 * xdisp.c (move_it_vertically_backward): At the end of the function,
5888 when moving forward by lines, treat terminal frames specially.
5889
5890 * keyboard.c (echo_char): Make sure to add a separator between
5891 keys even if echo_dash hasn't been called.
5892
5893 * xdisp.c: Use new string macros.
5894 (update_echo_area): Pass number of bytes to message3 instead of
5895 number of chars.
5896 (set_message_1): Don't access a string's size_byte directly.
5897 (decode_mode_spec_coding): Use number of bytes of eoltype string
5898 instead number of chars.
5899
5900 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
5901
59022002-03-08 Juanma Barranquero <lektu@terra.es>
5903
5904 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
5905 24-bit.
5906
59072002-03-06 Jason Rumney <jasonr@gnu.org>
5908
5909 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
5910
59112002-03-06 Gerd Moellmann <gerd@gnu.org>
5912
5913 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
5914 (cancel_echoing, echo_length, echo_truncate): Changed to
5915 work with new kboard definition.
5916 (echo_now): Use message3_nolog instead of message2_nolog.
5917
5918 * alloc.c (mark_kboards): Mark echo_string.
5919
5920 * keyboard.h (ECHOBUFSIZE): Removed.
5921 (struct kboard): Member echoptr removed, member echobuf renamed
5922 to echo_string.
5923
5924 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
5925 message3 instead of message2 to display the message using STRING's
5926 text properties.
5927
59282002-03-05 Andreas Schwab <schwab@suse.de>
5929
5930 * xdisp.c (hscroll_margin): Change to EMACS_INT.
5931
59322002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
5933
5934 * frame.c (default-frame-alist): Explain that setting it doesn't
5935 affect existing frames.
5936
59372002-03-05 Stefan Monnier <monnier@cs.yale.edu>
5938
5939 * indent.c (skip_invisible): Fix my brain fart.
5940
5941 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
5942
59432002-03-04 Stefan Monnier <monnier@cs.yale.edu>
5944
5945 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
5946 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
5947 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
5948 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
5949 and variables to use EMACS_INT instead of just int.
5950
5951 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
5952
59532002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
5954
5955 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
5956 environment, pass it down with corrected value.
5957
59582002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5959
5960 * lread.c (read_filtered_event): Do not call start_hourglass
5961 before returning.
5962
59632002-03-04 Juanma Barranquero <lektu@terra.es>
5964
5965 * w32term.c (x_display_and_set_cursor): Fix typo.
5966
59672002-03-03 Richard M. Stallman <rms@gnu.org>
5968
5969 * fileio.c (Fmake_temp_name): Doc fix.
5970
59712002-03-03 Gary Wong <gtw@gnu.org>
5972
5973 * termcap.c [!emacs]: Replace ospeed for building standalone
5974 libtermcap, for binary compatibility.
5975
5976 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
5977
59782002-03-03 Richard M. Stallman <rms@gnu.org>
5979
5980 * xrdb.c (file_p): Rename arg `path' to `filename'.
5981
5982 * abbrev.c (Fexpand_abbrev): Increment plist as use count
5983 only if it is an integer.
5984
5985 * xfns.c (png_load): Set screen_gamma based on f->gamma.
5986 If png_get_sRGB gives an answer, call png_set_gamma
5987 using the default image gamma value.
5988
5989 * lread.c (read1): When reading from a file, default string to
5990 multibyte only if it has some multibyte characters.
5991
5992 * print.c (print_object): Output multibyte chars 128...255
5993 using \x even if ! print_escape_multibyte.
5994
5995 * xdisp.c (display_mode_element): Move the places where
5996 bytepos, charpos, this, and lisp_string are set.
5997 Use lisp_string to set bytepos.
5998
5999 * xdisp.c (redisplay_internal):
6000 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
6001
6002 * xdisp.c (display_mode_element): Merge properties specified with
6003 :propertize onto those that come with the string.
6004
60052002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
6006
6007 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
6008 automatic-hscrolling. Users changed.
6009 <hscroll-margin>: Renamed from automatic-hscroll-margin.
6010 Users changed.
6011 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
6012
60132002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
6014
6015 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
6016
60172002-03-02 Kim F. Storm <storm@cua.dk>
6018
6019 * window.c (Fminibuffer_selected_window): New function.
6020 (syms_of_window): Defsubr it.
6021
60222002-03-01 Kim F. Storm <storm@cua.dk>
6023
6024 * window.h (struct window): New member phys_cursor_width.
6025
6026 * window.c (make_window, replace_window): Init phys_cursor_width.
6027
6028 * xterm.c (x_display_and_set_cursor): Blink box cursor using
6029 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
6030
6031 * w32term.c (x_display_and_set_cursor): Blink box cursor using
6032 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
6033
6034 * lisp.h (GCPRO6): New macro.
6035
6036 * process.c (Fopen_network_stream): Use GCPRO6.
6037
60382002-03-01 Kim F. Storm <storm@cua.dk>
6039
6040 * process.c (Qconnect, Qfailed): New variables.
6041 (syms_of_process): Intern and staticpro them.
6042 (Fprocess_status): Document connect and failed return values.
6043 [NON_BLOCKING_CONNECT]: New conditional.
6044 (connect_wait_mask, num_pending_connects): New variables.
6045 (status_message): Convert Qfailed status.
6046 (Fopen_network_stream): Added support for non-blocking connect.
6047 New optional args: filter, sentinel, non_blocking. Doc updated.
6048 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
6049 (deactivate_process): Handle pending non-blocking connect.
6050 (wait_reading_process_input): Poll for status of non-blocking
6051 connects. Exec sentinel directly when connect succeeds.
6052 (status_notify): Don't read process output if not yet connected.
6053
60542002-02-28 Kim F. Storm <storm@cua.dk>
6055
6056 * window.c: (minibuf_selected_window): Renamed from
6057 Vminibuf_selected_window. Users changed.
6058 (syms_of_window): Staticpro it.
6059
60602002-02-26 Kim F. Storm <storm@cua.dk>
6061
6062 The following changes add a new Vminibuf_selected_window variable
6063 which is similar to Vminibuf_scroll_window, but which is only set
6064 on entry to the minibuffer (from a non-minibuffer window):
6065
6066 * window.c: (Vminibuf_selected_window): New variable.
6067 (struct save_window_data): New member minibuf_selected_window.
6068 (Fset_window_configuration): Restore Vminibuf_selected_window.
6069 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
6070 Set minibuf_scroll_window member to nil if minibuf_level is 0.
6071 (compare_window_configurations): Compare minibuf_selected_window.
6072
6073 * window.h: (Vminibuf_selected_window): Declare extern.
6074
6075 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
6076 entry to minibuffer or on entry from a non-minibuffer window.
6077
6078 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
6079 Vminibuf_selected_window instead of Vminibuf_scroll_window.
6080
6081 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
6082 instead of Vminibuf_scroll_window when deciding in which window
6083 the region should be highlighted. Consequently, the region remains
6084 highlighteded even when a completion buffer is also displayed.
6085
60862002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
6087
6088 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
6089
6090 * xselect.c (Qcompound_text_with_extensions): Renamed from
6091 Qcompound_text_no_extensions.
6092 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
6093
60942002-02-26 Juanma Barranquero <lektu@terra.es>
6095
6096 * w32proc.c (syms_of_ntproc): Doc fix.
6097
60982002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6099
6100 * intervals.h: Include "dispextern.h" unconditionally.
6101
61022002-02-24 Jason Rumney <jasonr@gnu.org>
6103
6104 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
6105 and disp-table.elc.
6106 (lisp): Add emacs-lisp/backquote.elc.
6107
61082002-02-24 Kim F. Storm <storm@cua.dk>
6109
6110 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
6111 The validation of the event type was too strict as it didn't
6112 allow string events; buffer names are used in bindings for
6113 menu-bar-select-buffer (see `menu-bar-update-buffers').
6114
61152002-02-23 Kim F. Storm <storm@cua.dk>
6116
6117 The following changes rework my patch of 2002-02-06 which
6118 added command remapping by entering the commands directly into
6119 the keymaps. Now, command remapping uses an explicit `remap'
6120 prefix in the keymaps, i.e. [remap COMMAND].
6121
6122 * keymap.c (Qremap, remap_command_vector): New variables.
6123 (is_command_symbol): Removed function.
6124 (Fdefine_key): No longer accept a symbol for KEY.
6125 Added validation of [remap COMMAND] argument for KEY.
6126 The DEF is no longer required to be a symbol when remapping a command.
6127 (Fremap_command): New function to remap command through keymaps.
6128 (Flookup_key): Perform command remapping initiated by
6129 Fremap_command directly for speed.
6130 (Fkey_binding): Use Fremap_command for command remapping.
6131 (where_is_internal): Handle new command remapping representation.
6132 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
6133 staticpro them. Defsubr Fremap_command.
6134
6135 * keymap.h (Fremap_command): Declare extern.
6136 (is_command_symbol): Remove extern.
6137
6138 * keyboard.c (command_loop_1): Use Fremap_command for command
6139 remapping; now try command remapping for all symbols.
6140
61412002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
6142
6143 * coding.h (run_pre_post_conversion_on_str): Add prototype.
6144
61452002-02-23 Jason Rumney <jasonr@gnu.org>
6146
6147 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
6148 on the string before encoding it.
6149 (Fw32_get_clipboard_data): Run post-read-conversion on the string
6150 after decoding it.
6151
6152 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
6153
61542002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6155
6156 * w32term.c (enter_timestamp): Remove unused static variable to
6157 prevent warning.
6158
6159 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
6160
61612002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
6162
6163 * w16select.c (Fw16_get_clipboard_data): Fix last change.
6164
6165 * xselect.c (selection_data_to_lisp_data): Fix last change.
6166
61672002-02-22 Jason Rumney <jasonr@gnu.org>
6168
6169 * w32term.h (struct w32_output): New member menu_command_in_progress.
6170
6171 * w32menu.c (menubar_selection_callback): Free the menu and
6172 clear the menu_command_in_progress flag.
6173
6174 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
6175 (menu_free_timer): New variable.
6176 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
6177 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
6178 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
6179 menu command is in progress.
6180 <WM_COMMAND>: Set the menu_command_in_progress flag.
6181 Kill any menu_free_timer that is running.
6182
6183 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
6184 Call ExtTextOutA rather than ExtTextOut.
6185
61862002-02-22 Eli Zaretskii <eliz@gnu.org>
6187
6188 * puresize.h (BASE_PURESIZE): Increase to 755000.
6189
61902002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
6191
6192 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
6193 on the string before encoding it.
6194 (Fw16_get_clipboard_data): Run post-read-conversion on the string
6195 after decoding it.
6196
61972002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
6198
6199 Support for ICCCM Extended Segments in X selections:
6200
6201 * xselect.c <Qcompound_text_no_extensions>: New variable.
6202 (syms_of_xselect): Intern and staticpro it.
6203 (selection_data_to_lisp_data): Run post-read-conversion on decoded
6204 selection text.
6205 (lisp_data_to_selection_data): If next-selection-coding-system is
6206 compound-text-no-extensions, set the type of selection to be
6207 compound-text.
6208
6209 * xterm.h (x_encode_text): Update prototype.
6210
6211 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
6212 callers changed. If SELECTIONP is non-zero, run the
6213 pre-write-conversion function before encoding the selection text.
6214
62152002-02-21 Kim F. Storm <storm@cua.dk>
6216
6217 * frame.c (syms_of_frame): Change mouse-highlight default to t.
6218
6219 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
6220 Correct composing of language-change event.
6221
62222002-02-20 Kim F. Storm <storm@cua.dk>
6223
6224 * keyboard.c (menu_bar_items): Don't include keymap or local-map
6225 bindings at PT when building menu (the menu is not updated often
6226 enough for this to work reliable).
6227 (tool_bar_items): Likewise.
6228 (current_active_maps): Removed unused (and buggy) function.
6229
62302002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6231
6232 * xfns.c (gif_load): Use correct width and height for GIF images.
6233
62342002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
6235
6236 * floatfns.c (Fatan): Accept an optional second arg and call
6237 atan2 if passed 2 args.
6238
62392002-02-18 Jason Rumney <jasonr@gnu.org>
6240
6241 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
6242
62432002-02-17 Jason Rumney <jasonr@gnu.org>
6244
6245 * w32term.c (x_autoselect_window_p): New variable.
6246 (syms_of_w32term): DEFVAR_BOOL and initialize it.
6247 (note_mouse_movement): Use it.
6248
6249 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
6250
6251 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
6252
6253 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
6254 New variables.
6255 (syms_of_w32fns): Intern and staticpro them.
6256 (x_frame_parms) <"fullscreen">: New parameter.
6257 (x_fullscreen_move, x_set_fullscreen): New functions.
6258 (x_set_frame_parameters): Support Qfullscreen.
6259 (x_real_positions): Save x/y_pixels_diff frame params.
6260 (x_figure_window_size): Support full-screen frames.
6261 (Fx_create_frame): Default the fullscreen parameter.
6262
6263 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
6264 (x_fullscreen_adjust): New functions.
6265 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
6266 fullscreen. Call x_check_fullscreen_move, and set the
6267 want_fullscreen member of output_data.w32
6268 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
6269
6270 * w32term.h: New enum for FULLSCREEN_* constants.
6271 (struct w32_output): New members want_fullscreen, x_pixels_diff,
6272 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
6273 (x-fullscreen-adjust): New prototype.
6274
62752002-02-17 Kim F. Storm <storm@cua.dk>
6276
6277 * frame.c: (Vmouse_highlight): New variable.
6278 (syms_of_frame): DEFVAR_LISP it.
6279
6280 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 6281
048addec 6282 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 6283
048addec
JD
6284 * xterm.c (disable_mouse_highlight): Removed variable.
6285 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
6286 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
6287 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
6288 and on after keyboard input.
6289 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 6290
048addec 6291 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 6292
048addec
JD
6293 * msdos.c (disable_mouse_highlight): Removed variable.
6294 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
6295 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
6296 (internal_terminal_init): Initialize mouse_face_hidden.
6297 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
6298 and on after keyboard input.
4f1b1854 6299
048addec 6300 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 6301
048addec
JD
6302 * w32term.c (disable_mouse_highlight): Removed variable.
6303 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
6304 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
6305 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
6306 and on after keyboard input.
6307 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 6308
048addec 63092002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 6310
048addec
JD
6311 * msdos.c (last_mouse_window): New variable.
6312 (dos_rawgetc): Fix last change--if the mouse is in the same window
6313 as recorded in last_mouse_window, don't select this window.
5cb6905d 6314
048addec 6315 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 6316
048addec
JD
6317 * msdos.c (x_autoselect_window_p): New variable.
6318 (syms_of_msdos): Defvar it.
6319 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
6320 which the last mouse movement occured, unless it is already selected.
437dfb9f 6321
048addec
JD
6322 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
6323 New variables.
6324 (syms_of_xdisp): DEVFAR them.
6325 (hscroll_window_tree): Use automatic_hscroll_margin and
6326 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 6327
048addec 63282002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 6329
048addec
JD
6330 * xterm.c (x-autoselect-window): New variable.
6331 (note_mouse_movement): Use it.
9f696a00 6332
048addec 6333 * keyboard.c: Do not include "systime.h" twice.
d57966d7 6334
048addec 63352002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 6336
048addec 6337 * puresize.h (BASE_PURESIZE): Increase to 9/5.
d57966d7 6338
048addec 6339 * alloc.c (NSTATICS): Increase to 1280.
74779f52 6340
048addec 63412002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 6342
048addec 6343 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 6344
048addec
JD
6345 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
6346 (Vx_super_keysym): New variables.
6347 (syms_of_xterm): DEFVAR_LISP them.
6348 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
6349 variables to determine which keys to use for the various modifiers.
a474d59c 6350
048addec 63512002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 6352
048addec
JD
6353 * window.c: (Vmode_line_in_non_selected_windows): Removed.
6354 (mode_line_in_non_selected_windows): New variable.
6355 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 6356
048addec
JD
6357 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
6358 Use mode_line_in_non_selected_windows.
6359 (mode_line_in_non_selected_windows): Declare extern.
6360 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 6361
048addec 63622002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 6363
048addec
JD
6364 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
6365 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
6366 (Fclear_this_command_keys): Doc fixes.
2d10309f 6367
048addec
JD
6368 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
6369 (update_face_from_frame_parameter): Increment face_change_count
6370 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 6371
048addec
JD
6372 * xdisp.c (QCpropertize): New variable.
6373 (mode_line_proptrans_alist): New variable.
6374 (display_mode_element): New arg PROPS; all calls changed.
6375 Implement this, for strings.
6376 Handle literal output of strings by sharing the
6377 main-line code for strings, using local var `literal'.
6378 Handle :propertize feature.
6379 (syms_of_xdisp): Initialze and staticpro QCpropertize and
6380 mode_line_proptrans_alist.
0b1e6b54 6381
048addec 63822002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 6383
048addec
JD
6384 * window.c: (Vmode_line_in_non_selected_windows): New variable.
6385 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 6386
048addec
JD
6387 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
6388 (CURRENT_MODE_LINE_FACE_ID): Use it.
6389 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 6390
048addec
JD
6391 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
6392 to get mode line face.
e17144de 6393
048addec 63942002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 6395
048addec
JD
6396 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
6397 variables; cus-start.el doesn't need them anymore.
44368f8f 6398
048addec 63992002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 6400
048addec
JD
6401 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
6402 reduction. This fixes a display problem where stray newlines were
6403 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 6404
048addec 64052002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 6406
048addec 6407 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 6408
048addec 6409 * xdisp.c (display_mode_lines): Fix last change.
453c5510 6410
048addec 64112002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 6412
048addec
JD
6413 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
6414 match each other.
6415 (w32_load_system_font): Prevent Cleartype fonts from loading.
6416 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 6417
048addec 64182002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 6419
048addec
JD
6420 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
6421 (CURRENT_MODE_LINE_HEIGHT): Use it.
6422 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 6423
048addec
JD
6424 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
6425 (pos_visible_p, handle_face_prop): Likewise.
6426 (display_mode_lines): Likewise, but for the real selected window.
6427 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 6428
048addec
JD
6429 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
6430 in non-selected windows.
6431 (realize_basic_faces): Realize it.
6432 (syms_of_term): Intern and staticpro it.
308dd672 6433
048addec 64342002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 6435
048addec
JD
6436 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
6437 Changed mail addresses to emacs-devel@gnu.org.
308dd672 6438
048addec 64392002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 6440
048addec
JD
6441 * fileio.c (Fsubstitute_in_file_name): If the file name includes
6442 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 6443
048addec 6444 * floatfns.c (Fround): Doc fix.
3c1e6b46 6445
048addec 64462002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 6447
048addec 6448 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 6449
048addec 64502002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 6451
048addec 6452 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 6453
048addec 64542002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 6455
048addec
JD
6456 * keymap.c (where_is_internal): Only check whether definition is
6457 remapped if it fulfills is_command_symbol.
0065bb74 6458
048addec 64592002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 6460
048addec 6461 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 6462
048addec 6463 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 6464
048addec 64652002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 6466
048addec
JD
6467 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
6468 defining command remapping. Doc updated.
6469 (Flookup_key): Remap command through keymap if KEY is a symbol.
6470 (is_command_symbol): New function.
6471 (Fkey_binding): Use it. New optional argument NO-REMAP.
6472 Doc updated. Callers changed. Perform command remapping via
6473 recursive call unless that arg is non-nil.
6474 (where_is_internal): New argument no_remap. Callers changed.
6475 Call recursively to find original key bindings for a remapped
6476 comand unless that arg is non-nil.
6477 (Fwhere_is_internal): New optional argument NO-REMAP.
6478 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 6479
048addec
JD
6480 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
6481 (is_command_symbol): Added prototype.
0d8466cc 6482
048addec
JD
6483 * keyboard.c (Vthis_original_command): New variable.
6484 (syms_of_keyboard): DEFVAR_LISP it.
6485 (command_loop_1): Set it, and perform command remapping.
15fff01d 6486
048addec 64872002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 6488
048addec 6489 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 6490
048addec 64912002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 6492
048addec 6493 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 6494
048addec 64952002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 6496
048addec 6497 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 6498
048addec 64992002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 6500
048addec 6501 * filelock.c (S_ISLNK): Define if not defined.
3a232704 6502
048addec 65032002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 6504
048addec 6505 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 6506
048addec
JD
6507 * lread.c (read1): Redesign strategy for force_multibyte and
6508 force_singlebyte. Now is_multibyte records whether read_buffer
6509 is multibyte. Encountering any multibyte character makes it so.
4e02881b 6510
048addec 65112002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 6512
048addec
JD
6513 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
6514 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 6515
048addec 65162002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 6517
048addec
JD
6518 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
6519 latter never being defined on GNU/Linux.
749f499f 6520
048addec 65212002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 6522
048addec
JD
6523 * xfaces.c (realize_default_face): Don't set the weight and slant of
6524 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 6525
048addec 65262002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 6527
048addec
JD
6528 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
6529 Call cancel_hourglass unconditionally.
d0fd26dd 6530
048addec
JD
6531 * eval.c (Fsignal): Remove duplicated declaration of
6532 the variable `display_hourglass_p'.
b4c45162 6533
048addec 65342002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 6535
048addec 6536 * editfns.c (region_limit): Nicer error message.
c95eaa61 6537
048addec
JD
6538 * coding.c (decode_composition_emacs_mule):
6539 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 6540
048addec
JD
6541 * callint.c (check_mark): New arg to specify clearer error message.
6542 Callers changed.
c95eaa61 6543
048addec 65442002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 6545
048addec 6546 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 6547
048addec 65482002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 6549
048addec
JD
6550 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
6551 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
6552 Fix doc-strings.
c95eaa61 6553
048addec 65542002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 6555
048addec 6556 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 6557
048addec
JD
6558 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
6559 and scroll_up_aggressively.
c95eaa61 6560
048addec 65612002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 6562
048addec 6563 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 6564
048addec 65652002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 6566
048addec
JD
6567 * textprop.c (Fnext_property_change, Fnext_single_property_change)
6568 (Fprevious_property_change, Fprevious_single_property_change):
6569 Stay within the narrowed-buffer boundaries.
e2c3786a 6570
048addec 65712002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 6572
048addec
JD
6573 * term.c (Ftty_display_color_cells): New function.
6574 (syms_of_term): Defsubr it.
6575 (Ftty_display_color_cells, Ftty_display_color_p): Change the
6576 argument name to DISPLAY. Doc fix.
bf794306 6577
048addec
JD
6578 * dispextern.h: Add prototype for set_tty_color_mode and
6579 tty_setup_colors.
bf794306 6580
048addec 65812002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 6582
048addec
JD
6583 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
6584 If region left to draw is not what was expected, mark the frame as
6585 garbaged.
62582985 6586
048addec
JD
6587 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
6588 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 6589
048addec 65902002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 6591
048addec
JD
6592 * w32term.c (x_update_window_begin): Only hide caret if
6593 w32_use_visible_system_caret is set.
6594 (x_update_window_end): Only show caret if
6595 w32_use_visible_system_caret is set.
6596 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 6597
048addec 6598 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 6599
048addec 66002002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 6601
048addec
JD
6602 * unexelf.c (unexec): Define n so as to cause compilation error
6603 for the code where people have often written n instead of nn.
1e9a6186 6604
048addec 6605 * .gdbinit (hookpost-run): Defined.
1e9a6186 6606
048addec 66072002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 6608
048addec 6609 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 6610
048addec 66112002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 6612
048addec
JD
6613 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
6614 if fullscreen is being set.
7c75be36 6615
048addec 66162002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 6617
048addec
JD
6618 * minibuf.c (Fminibuffer_contents)
6619 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
6620 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 6621
048addec 66222002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 6623
048addec 6624 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 6625
048addec 66262002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 6627
048addec
JD
6628 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
6629 height before comparison.
6630 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 6631
048addec 66322002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 6633
048addec
JD
6634 * w32term.c (w32_system_caret_width): Remove.
6635 (w32_use_visible_system_caret): New user flag.
6636 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
6637 Windows reports a screen reader running.
6638 (x_update_window_begin): Hide the system caret.
6639 (x_update_window_end): Show the system caret.
6640 (x_display_and_set_cursor): Don't draw a cursor when
6641 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 6642
048addec
JD
6643 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
6644 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
6645 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
6646 the user requests it. Use system default width when creating.
6647 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 6648
048addec
JD
6649 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
6650 New window messages.
905cc05a 6651
048addec 66522002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 6653
048addec 6654 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 6655
048addec 66562002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 6657
048addec 6658 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 6659
048addec 66602002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 6661
048addec 6662 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 6663
048addec 66642002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 6665
048addec
JD
6666 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
6667 that Windows returns. If a double check fails, try to guess how
6668 ExtTextOut is going to act.
4d0fa4f3 6669
048addec
JD
6670 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
6671 in place of stricmp.
6672 (w32_list_synthesized_fonts): Removed.
6673 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
6674 (struct enumfont_t): New element; list.
6675 (enum_font_cb2): List all style and charset variations of a font.
6676 (Fw32_select_font): New optional argument; include_proportional.
6677 Exclude vertical fonts. Exclude proportional fonts unless
6678 include_proportional is non-nil.
6679 (w32_enable_synthesized_fonts): Change to a boolean.
6680 (Fw32_send_sys_command): Doc fix.
493faf20 6681
048addec 66822002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 6683
048addec
JD
6684 * dispnew.c (update_frame): Move the variable `tem' to the block
6685 where it is used.
4971e491 6686
048addec 66872002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 6688
048addec
JD
6689 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
6690 call to face-set-after-frame-default.
4971e491 6691
048addec 66922002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 6693
048addec
JD
6694 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
6695 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 6696
048addec 66972002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 6698
048addec
JD
6699 * window.c (enlarge_window): When exceeding size of parent,
6700 directly delete all the siblings instead of trying to resize it.
201c831a 6701
048addec 67022002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 6703
048addec 6704 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 6705
048addec 67062002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 6707
048addec 6708 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 6709
048addec 67102002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 6711
048addec
JD
6712 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
6713 is invisible. This can happen if cursor is on top line of a
6714 window, and we switch to a buffer with a header line.
d77fbc16 6715
048addec 6716 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 6717
048addec 67182002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 6719
048addec
JD
6720 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
6721 `dont_resize' only when used.
61e3b944 6722
048addec 6723 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 6724
048addec 67252002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 6726
048addec
JD
6727 * xdisp.c (display_mode_element): When computing charpos, depend
6728 on multibyteness of elt, not the text in field.
8af01033 6729
048addec 67302002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 6731
048addec
JD
6732 * buffer.c (Fkill_all_local_variables):
6733 Increment `update_mode_lines' only once.
7363986a 6734
048addec 67352002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 6736
048addec
JD
6737 * lisp.h (adjust_after_replace_noundo)
6738 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 6739
048addec 6740 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 6741
048addec 67422002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 6743
048addec
JD
6744 Support for the --color command-line argument and tty-color-mode
6745 frame parameter:
f1a85b89 6746
048addec
JD
6747 * term.c (tty_default_color_capabilities, tty_setup_colors)
6748 (set_tty_color_mode): New functions.
6749 (term_init): Call tty_default_color_capabilities.
6750 (Qtty_color_mode_alist): New variable.
6751 (syms_of_term): Intern and staticpro it.
f1a85b89 6752
048addec
JD
6753 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
6754 frames.
6755 (do_switch_frame): For termcap frames, switch the tty
6756 color mode as specified by the frame's parameters.
6757 (Qtty_color_mode): New variable.
6758 (syms_of_frame): Intern and staticpro it.
3a62677f 6759
048addec
JD
6760 * emacs.c (USAGE2): Add the --color option.
6761 (standard_args): Ditto.
72244db2 6762
048addec
JD
67632002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6764
6765 * xterm.h (struct x_output): New members want_fullscreen,
6766 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
6767 y_pixels_outer_diff.
6768 New enum for FULLSCREEN_* constants.
6769 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
6770 is NULL.
6771 (x_fullscreen_adjust): Add prototype.
3a62677f 6772
048addec
JD
6773 * emacs.c (USAGE2): Add the new full-screen arguments.
6774 (standard_args): Ditto.
3a62677f 6775
048addec
JD
6776 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
6777 New variables.
6778 (syms_of_xfns): Intern and staticpro them.
6779 (x_frame_parms) <"fullscreen">: New parameter.
6780 (x_fullscreen_move, x_set_fullscreen): New functions.
6781 (x_set_frame_parameters): Support for Qfullscreen.
6782 (x_real_positions): More accurate computation of the frame position.
6783 (x_figure_window_size): Support full-screen frames.
6784 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 6785
048addec
JD
6786 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
6787 (XTread_socket) <Expose>: Call x_check_fullscreen.
6788 <ConfigureNotify>: Don't resize to fullscreen.
6789 Call x_check_fullscreen_move, and set the want_fullscreen member of
6790 output_data.x.
3a62677f 6791
048addec 67922002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 6793
048addec
JD
6794 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
6795 for mice with more than 3 buttons.
b8523839 6796
048addec
JD
6797 * w32term.c (parse_button): New parameter xbutton. Callers changed.
6798 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 6799
048addec
JD
6800 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
6801 (syms_of_w32fns): DEFVAR_BOOL it.
6802 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 6803
048addec 68042002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 6805
048addec 6806 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 6807
048addec 68082002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 6809
048addec 6810 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 6811
048addec 68122002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 6813
048addec
JD
6814 * .gdbinit (xbuffer): Remove address operator since data is now a
6815 pointer.
c93674bb 6816
048addec 68172002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 6818
048addec 6819 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 6820
048addec 6821 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 6822
048addec 68232002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 6824
048addec
JD
6825 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
6826 when checking for multiple frames.
91175673 6827
048addec 68282002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 6829
048addec
JD
6830 * window.c (delete_window): Rewrite the code for changing the
6831 selected window to handle the case where WINDOW is not a leaf.
91175673 6832
048addec 68332002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 6834
048addec
JD
6835 * process.c (send_process): Set src_multibyte to 1 after the call
6836 top setup_coding_system, not before the call.
e0fead5d 6837
048addec 68382002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 6839
048addec
JD
6840 * xmenu.c (set_frame_menubar, xmenu_show):
6841 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 6842
048addec
JD
6843 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
6844 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 6845
048addec 68462002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 6847
048addec 6848 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 6849
048addec 6850 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 6851
048addec 6852 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 6853
048addec 68542002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 6855
048addec
JD
6856 * insdel.c (make_gap_larger): Make sure buffer size does not
6857 overflow range of int.
62854fe2 6858
048addec 68592002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 6860
048addec
JD
6861 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
6862 OVERLAPS_P.
656f46bb 6863
048addec 6864 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 6865
048addec
JD
6866 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
6867 to the left or to the right of the pointer, put it against
6868 the left screen edge.
6869 (x_frame_parms): Add missing braces around initializer.
036e218d 6870
048addec
JD
6871 * w32term.c (x_setup_relief_colors): Don't compute an image's
6872 background color if it doesn't have a Pixmap.
6873 (notice_overwritten_cursor): Don't depend on
6874 output_cursor and updated_area. Compare pixel coordinates with
6875 window's cursor pixel coordinates.
6876 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
6877 Call notice_overwritten_cursor with new arg list.
6878 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
6879 unconditionally.
6880 (x_draw_image_relief): Use predefined macro instead of
6881 constant when the value of `tool_bar_button_relief' is negative.
036e218d 6882
048addec 6883 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 6884
048addec 68852002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 6886
048addec 6887 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 6888
048addec 68892002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 6890
048addec
JD
6891 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
6892 (Fkey_binding): Try the `keymap' property map first.
6893 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
6894 minor mode bindings.
90647b07 6895
048addec 68962002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 6897
048addec 6898 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 6899
048addec 69002002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 6901
048addec
JD
6902 * keyboard.c (read_key_sequence): Handle the keymap property
6903 before minor mode maps.
9fbc32aa 6904
048addec
JD
6905 * editfns.c (Fformat): Update thissize from field_width
6906 based on the actual width, in the string case.
036e218d 6907
048addec 69082002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 6909
048addec
JD
6910 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
6911 when used as truth value to prevent gcc warnings.
9fbc32aa 6912
048addec
JD
6913 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
6914 * w32proc.c: Include <config.h>.
9fbc32aa 6915
048addec 69162002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 6917
048addec
JD
6918 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
6919 not EMACS_INT, to make them compatible with DEFVAR_INT.
6920 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 6921
048addec 69222002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 6923
048addec
JD
6924 * print.c (print_object): Test print_escape_nonascii only for
6925 unibyte strings.
6926 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
6927 when outputting to a multibyte buffer.
9fbc32aa 6928
048addec 69292001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 6930
048addec
JD
6931 * print.c (print_object): In multibyte string, use hex escapes.
6932 Use octal only for unibyte strings.
6933 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 6934
048addec
JD
6935 * lread.c (read_escape): New arg BYTEREP for reporting whether
6936 escape forces unibyte or multibyte.
6937 (read1): When reading a string, take note of that info.
0142178a 6938
048addec 69392001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 6940
048addec
JD
6941 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
6942 comparison to test lisp value returned by Fget.
d4824a5d 6943
048addec 69442001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 6945
048addec 6946 * lisp.h (max_specpdl_size): Add declaration.
b1356234 6947
048addec 6948 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 6949
048addec
JD
6950 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
6951 Handle modifier bits. Correct typo in error message.
99e380ee 6952
048addec 69532001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 6954
048addec
JD
6955 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
6956 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
6957 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
6958 Update calls to Fdefine_abbrev.
6959 (write_abbrev): Update for changed data format.
6960 Don't list "system" abbrevs.
6961 (Fexpand_abbrev): Update use count with new data format.
6962 (describe_abbrev): Update for changed data format.
6963 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 6964
048addec 6965 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 6966
048addec 6967 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 6968
048addec
JD
6969 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
6970 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 6971
048addec
JD
6972 * keymap.c (Flookup_key): Error message if key has wrong data type.
6973 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
6974 (exclude_key): New variable.
59a86c99 6975
048addec 69762001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 6977
048addec
JD
6978 * xterm.c (x_setup_relief_colors): Don't compute an image's
6979 background color if it doesn't have a Pixmap.
eb77a5f4 6980
048addec
JD
6981 * xterm.c (notice_overwritten_cursor): Don't depend on
6982 output_cursor and updated_area. Compare pixel coordinates with
6983 window's cursor pixel coordinates.
6984 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
6985 Call notice_overwritten_cursor with new arg list.
6986 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
6987 unconditionally.
eb77a5f4 6988
048addec
JD
6989 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
6990 height of the cursor line to the amount to scroll.
eb77a5f4 6991
048addec 69922001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 6993
048addec
JD
6994 * intervals.c (set_point_both): The position after an invisible,
6995 intangible character is not an acceptable stopping point.
bb313871 6996
048addec 69972001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 6998
048addec
JD
6999 * window.c (enlarge_window): In new preserve_before code, convert
7000 CURBEG from lisp object to integer before doing arithmetic.
6052529b 7001
048addec 70022001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 7003
048addec 7004 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 7005
048addec 70062001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 7007
048addec
JD
7008 * keyboard.c (record_char): Ignore duplicate help-echo events only
7009 separated by mouse-movement. When tracking mouse, only record
7010 first and last mouse-movement event in same window.
7011 Don't record mouse-movement events in keyboard macros.
3ce081f5 7012
048addec 70132001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 7014
048addec
JD
7015 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
7016 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 7017
048addec
JD
7018 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
7019 instead of Fstring_as_unibyte.
9fabb2f5 7020
048addec 70212001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 7022
048addec 7023 The following changes remove mocklisp support:
9fabb2f5 7024
048addec 7025 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 7026
048addec
JD
7027 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
7028 `Qmocklisp' and `Qmocklisp_arguments'.
7029 Remove prototype of syms_of_mocklisp.
2fa0eedf 7030
048addec 7031 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 7032
048addec
JD
7033 * callint.c: Do not include mocklisp.h.
7034 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 7035
048addec
JD
7036 * eval.c: Remove variables `Qmocklisp_arguments',
7037 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
7038 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
7039 Do not test for mocklisp case.
7040 (Fwhile): Remove unused variable `tem'.
7041 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 7042
048addec 7043 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 7044
048addec 7045 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 7046
048addec 7047 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 7048
048addec 70492001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 7050
048addec
JD
7051 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
7052 to the left or to the right of the pointer, put it against
7053 the left screen edge.
6108b49c 7054
048addec 70552001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 7056
048addec
JD
7057 * Makefile.in (distclean): Remove .gdbinit if we are building
7058 outside the source tree.
5eea19a4 7059
048addec 70602001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 7061
048addec 7062 * w32.c (emacs_root_dir): New function.
5eea19a4 7063
048addec 7064 * msdos.c (emacs_root_dir): New function.
5eea19a4 7065
048addec
JD
7066 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
7067 of the current drive as the fallback for default_directory.
438e57dd 7068
048addec
JD
7069 * dired.c (file_name_completion): Run the elements of
7070 completion-ignored-extensions through ENCODE_FILE.
438e57dd 7071
048addec
JD
7072 * lisp.h (scmp): Remove prototype, since it's now a static
7073 function private to dired.c.
c88e5347 7074
048addec 70752001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 7076
048addec
JD
7077 * dired.c (scmp): Function moved from minibuf.c.
7078 Delete multibyte handling--used only on encoded strings.
59ce1461 7079
048addec 7080 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 7081
048addec 7082 * fns.c (merge): Add QUIT call.
59ce1461 7083
048addec 70842001-12-18 Dave Love <fx@gnu.org>
8727d588 7085
048addec
JD
7086 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
7087 language/georgian.el.
8727d588 7088
048addec 70892001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 7090
048addec
JD
7091 * Makefile.in (lisp, shortlisp): Synchronize with changes to
7092 lisp/Makefile.in:DONTCOMPILE.
cc63037e 7093
048addec 70942001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 7095
048addec
JD
7096 * xdisp.c (window_box_height): Do not return negative values.
7097 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 7098
048addec 7099 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 7100
048addec 7101 * term.c (keys): Likewise.
deece6f5 7102
048addec 7103 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 7104
048addec 71052001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 7106
048addec
JD
7107 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
7108 patch (COMPOSING_P, not COMPOSING).
28ff4293 7109
048addec 71102001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 7111
048addec 7112 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 7113
048addec
JD
7114 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
7115 before calling decode_coding.
9b46de40 7116
048addec 7117 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 7118
048addec
JD
7119 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
7120 instead of only for COMPOSITION_DISABLED.
9b46de40 7121
048addec 71222001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 7123
048addec 7124 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 7125
048addec 7126 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 7127
048addec
JD
7128 * buffer.h (struct buffer): New field `display_error_modiff'.
7129 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 7130
048addec 7131 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 7132
048addec
JD
7133 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
7134 Call redisplay_window, but not if display_error_modiff field says no.
7135 (redisplay_window_error): New function.
7136 (displayed_buffer): New variable.
7137 (redisplay_internal, redisplay_windows): Call the new functions
7138 instead of redisplay_window directly.
2cd23960 7139
048addec 71402001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 7141
048addec 7142 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 7143
048addec 71442001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 7145
048addec
JD
7146 * makefile.w32-in (EMACSLOADPATH): Define.
7147 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
7148 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 7149
048addec 71502001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 7151
048addec
JD
7152 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
7153 parameter have a numeric value all the time.
f6fa0866 7154
048addec 7155 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 7156
048addec 71572001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 7158
048addec 7159 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 7160
048addec
JD
7161 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
7162 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 7163
048addec 71642001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 7165
048addec
JD
7166 * xdisp.c (move_it_vertically_backward): Change heuristic
7167 for the case that we didn't move far enough initially.
91c153e2 7168
048addec
JD
7169 * window.c (Frecenter): Simplify computation in the case of window
7170 system frames and ARG < 0; use window_box_height.
65b7d3e7 7171
048addec 71722001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 7173
048addec
JD
7174 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
7175 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 7176
048addec 71772001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 7178
048addec
JD
7179 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
7180 arg is negative.
be676094 7181
048addec 71822001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 7183
048addec
JD
7184 * m/hp800.h: Split the __hpux conditional into the parts
7185 that are right for GNU/Linux too and the parts that are not.
7186 Use the former if GNU_LINUX.
7187 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 7188
048addec 7189 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 7190
048addec 71912001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 7192
048addec
JD
7193 * macros.c, msdos.c, w16select.c: Change doc-string comments to
7194 `new style' [w/`doc:' keyword].
032a857d 7195
048addec 71962001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 7197
048addec
JD
7198 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
7199 before using.
b6270150 7200
048addec 72012001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 7202
048addec
JD
7203 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
7204 keyword].
98cbb9fa 7205
048addec 72062001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 7207
048addec 7208 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 7209
048addec 7210 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 7211
048addec 72122001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 7213
048addec
JD
7214 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
7215 Add comment to explain where the struct came from.
7216 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
7217 (add_menu_item): Process pop-up menus first to avoid memory leak.
7218 (add_menu_item, w32_menu_display_help): Use `help' field as
7219 Lisp_Object.
7220 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 7221
048addec 72222001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 7223
048addec 7224 * COPYING: Moved back.
fa336b91 7225
048addec
JD
7226 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
7227 Add parentheses around && within ||.
077907d4 7228
048addec 7229 * indent.c (compute_motion): Likewise.
aa2af83a 7230
048addec 7231 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 7232
048addec
JD
7233 * coding.c (setup_coding_system, shrink_encoding_region)
7234 (Fdecode_sjis_char): Likewise.
60a653f1 7235
048addec 72362001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 7237
048addec
JD
7238 * xdisp.c (display_mode_element): Don't read past end of string if
7239 it ends with '%'.
60a653f1 7240
048addec
JD
7241 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
7242 can hold.
60a653f1 7243
048addec
JD
7244 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
7245 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
7246 type changed to Lisp_Object.
7247 (syms_of_data): DEFVAR_LISP them.
60a653f1 7248
048addec 72492001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 7250
048addec
JD
7251 * callproc.c (init_callproc): Set Vdata_directory based on the source
7252 location whenever Emacs was run uninstalled.
60a653f1 7253
048addec 72542001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 7255
048addec
JD
7256 * config.in (HAVE_WORKING_VFORK): New #undefs.
7257 * process.c (create_process):
7258 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
7259 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
7260 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
7261 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
7262 * m/intel386.h (HAVE_VFORK): Likewise.
7263 * m/mips-siemens.h (HAVE_VFORK): Likewise.
7264 * m/mips.h (HAVE_VFORK): Likewise.
7265 * s/freebsd.h (vfork): Remove #define.
7266 * s/lynxos.h (HAVE_VFORK): Remove #undef.
7267 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 7268
048addec 72692001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 7270
048addec
JD
7271 * s/hpux10.h (random): Add undef.
7272 (HAVE_RANDOM): Define it just once.
60a653f1 7273
048addec 72742001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7275
048addec 7276 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 7277
048addec 72782001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 7279
048addec
JD
7280 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
7281 scroll bars of the frame before deleting the frame itself. If the
7282 frame has a widget, delete the frame with XtDestroyWidget, and do
7283 not call XDestroyWindow before that.
60a653f1 7284
048addec 72852001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 7286
048addec 7287 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 7288
048addec 7289 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 7290
048addec 72912001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 7292
048addec
JD
7293 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
7294 excessively large.
60a653f1 7295
048addec
JD
7296 * insdel.c (make_gap_larger): New function.
7297 (make_gap_smaller): New function.
7298 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
7299 Call make_gap_smaller if arg is negative.
60a653f1 7300
048addec 73012001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7302
048addec
JD
7303 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
7304 Pass a dummy argument when calling interrupt_signal.
7305 (parse_menu_item): Mark disabled items before checking for empty def.
7306 (read_char_minibuf_menu_prompt): Make safety more visible.
7307 (read_key_sequence): Add a `first_unbound' variable.
7308 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
7309 unbound prefix as soon as we can detect it.
60a653f1 7310
048addec
JD
7311 * doc.c (Fsnarf_documentation): Add prototype.
7312 (get_doc_string): Handle negative arguments.
7313 (Fdocumentation): Use AREF and ASIZE.
7314 Move the calls to get_doc_string to a single place.
7315 Don't confuse an interactive-spec for a docstring reference.
7316 (Fdocumentation_property): Take advantage of the fact that
7317 get_doc_string now ignores the sign of the docstring position.
60a653f1 7318
048addec 7319 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 7320
048addec 73212001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 7322
048addec 7323 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
60a653f1 7324
048addec 73252001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 7326
048addec
JD
7327 * xterm.c (x_draw_image_relief): Use predefined macro instead of
7328 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 7329
048addec 73302001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 7331
048addec
JD
7332 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
7333 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 7334
048addec 7335 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 7336
048addec 73372001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7338
048addec 7339 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 7340
048addec 73412001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 7342
048addec 7343 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 7344
048addec 73452001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 7346
048addec 7347 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 7348
048addec
JD
7349 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
7350 [!WM_MOUSELEAVE]: Define.
60a653f1 7351
048addec
JD
7352 * w32menu.c (current_popup_menu, get_menu_item_info):
7353 (set_menu_item_info): New vars.
7354 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
7355 (w32_menu_show): Set current_popup_menu.
7356 (add_menu_item): Allocate new strings for owner-drawn menu items
7357 and help strings.
7358 Use owner-draw for disabled menu items again.
7359 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
7360 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 7361
048addec
JD
7362 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
7363 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
7364 <WM_EXITMENULOOP>: Free menu strings.
7365 <WM_MOUSELEAVE>: Stop tracking mouse.
7366 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 7367
048addec
JD
7368 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
7369 and mouse face.
60a653f1 7370
048addec 73712001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 7372
048addec
JD
7373 The following changes add left-fringe and right-fringe
7374 frame parameters to adjust fringe widths, or remove one or
7375 both fringes.
60a653f1 7376
048addec
JD
7377 * frame.h (struct frame): Remove trunc_area_pixel_width and
7378 trunc_area_cols fields.
7379 (Qleft_fringe, Qright_fringe): Declare.
7380 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 7381
048addec
JD
7382 * frame.c (Qleft_fringe, Qright_fringe): New vars.
7383 (syms_of_frame): Initialize them.
60a653f1 7384
048addec
JD
7385 * window.c (coordinates_in_window): Handle separate left and right
7386 fringe widths.
60a653f1 7387
048addec
JD
7388 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
7389 and fringe_cols fields.
7390 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
7391 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
7392 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
7393 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
7394 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
7395 (x_compute_fringe_widths): Add prototype.
60a653f1 7396
048addec
JD
7397 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
7398 fill fringe evenly with small dashes.
7399 (x_draw_fringe_bitmap): Clear background if necessary. Align and
7400 clip the new ZV bitmap to avoid jitter between rows.
7401 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
7402 background. Don't draw fringe bitmaps if fringe width is zero.
7403 (x_compute_fringe_widths): New function.
7404 (x_new_font, x_set_window_size_1): Use it.
60a653f1 7405
048addec
JD
7406 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
7407 (x_set_frame_parameters): Process `font' parameter before other
7408 parameters as fringe widths depend on it.
7409 (x_set_fringe_width): New function.
7410 (x_figure_window_size): Use x_compute_fringe_widths.
7411 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
7412 parameters.
60a653f1 7413
048addec
JD
7414 * widget.c (set_frame_size): Use x_compute_fringe_widths.
7415 (EmacsFrameSetCharSize): Ditto.
60a653f1 7416
048addec
JD
7417 * w32term.h: Merged changes from xterm.h.
7418 * w32term.c: Merged changes from xterm.c.
7419 * w32fns.c: Merged changes from xfns.c.
60a653f1 7420
048addec 74212001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 7422
048addec 7423 * COPYING: Removed.
60a653f1 7424
048addec 74252001-11-29 Dave Love <fx@gnu.org>
60a653f1 7426
048addec
JD
7427 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
7428 extra extra slot.
7429 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 7430
048addec 74312001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 7432
048addec
JD
7433 * fileio.c (file-name-coding-system)
7434 (default-file-name-coding-system): Doc fix (links to referenced
7435 variables added).
60a653f1 7436
048addec 74372001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7438
048addec
JD
7439 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
7440 Add dummy uses of gcproN variables.
60a653f1 7441
048addec
JD
7442 * category.c (describe_category, describe_category_1)
7443 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
7444 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 7445
048addec 74462001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 7447
048addec 7448 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 7449
048addec
JD
7450 * Makefile.in (lispdir): New variable, referring to build dir.
7451 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 7452
048addec 74532001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 7454
048addec
JD
7455 * w32menu.c (w32_menu_display_help): Actually add the new argument
7456 OWNER.
60a653f1 7457
048addec 74582001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 7459
048addec
JD
7460 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
7461 menu items. From David Ponce <dponce@wanadoo.fr>.
7462 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
7463 conditionally.
7464 (w32_menu_display_help): New argument OWNER. Rewritten to store a
7465 help event in the owner frame's keyboard buffer.
60a653f1 7466
048addec
JD
7467 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
7468 (Fx_show_tip): Don't subtract last width from row width.
7469
7470 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
7471 (w32_read_socket): Use EQ to compare frames.
60a653f1 7472
048addec 74732001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 7474
048addec
JD
7475 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
7476 OVERLAPS_P.
60a653f1 7477
048addec 74782001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 7479
048addec
JD
7480 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
7481 `gcpro3' and `gcpro4'.
60a653f1 7482
048addec 7483 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 7484
048addec 74852001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7486
048addec 7487 * ccl.c: Use AREF and ASIZE.
60a653f1 7488
048addec 74892001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7490
048addec
JD
7491 * lisp.h (run_hook_list_with_args): Remove.
7492 (LIST_END_P): Fix call to wrong_type_argument.
7493 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 7494
048addec 74952001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7496
048addec
JD
7497 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
7498 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 7499
048addec
JD
7500 * eval.c: Use AREF and ASIZE.
7501 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 7502
048addec
JD
7503 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
7504 which match the end of the file-name.
7505 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
7506 is not a valid env var, but leave it as is instead.
60a653f1 7507
048addec
JD
7508 * keymap.c (access_keymap): Handle t bindings like nil bindings.
7509 Make nil bindings in char-tables transparent.
7510 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 7511
048addec 75122001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 7513
048addec
JD
7514 * textprop.c (set_text_properties_1): Allow START, END in either order.
7515 Do nothing if range is empty.
60a653f1 7516
048addec 7517 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 7518
048addec
JD
7519 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
7520 (clean): Not here.
60a653f1 7521
048addec 75222001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7523
048addec
JD
7524 * textprop.c (set_text_properties_1): Clearly mark that the
7525 interval should not be empty.
60a653f1 7526
048addec
JD
7527 * intervals.c (graft_intervals_into_buffer):
7528 Don't call set_text_properties_1 on an empty interval.
60a653f1 7529
048addec 75302001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 7531
048addec 7532 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 7533
048addec
JD
7534 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
7535 don't lose the data in it.
60a653f1 7536
048addec 75372001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 7538
048addec 7539 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 7540
048addec 7541 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
60a653f1 7542
048addec 7543 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
60a653f1 7544
048addec 75452001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7546
048addec 7547 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 7548
048addec 75492001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 7550
048addec
JD
7551 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
7552 Niemitalo <kon@iki.fi>.
60a653f1 7553
048addec 75542001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 7555
048addec 7556 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 7557
048addec
JD
7558 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
7559 (Fx_show_tip): Block input during frame creation.
7560 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 7561
048addec 75622001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 7563
048addec
JD
7564 * lread.c (Fload): Detect recursive load error for more than 3
7565 nestings of the same file.
7566 (Vrecursive_load_depth_limit): Variable deleted.
7567 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 7568
048addec 75692001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 7570
048addec
JD
7571 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
7572 mouse position if either left or top is not specified.
60a653f1 7573
048addec
JD
7574 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
7575 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
7576 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
7577 (my_create_tip_window): Assign tip_window.
7578 (x_create_tip_frame): Use same defaults as X.
7579 (compute_tip_xy): Remove unused variable. Use full screen width.
7580 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 7581
048addec
JD
7582 * w32term.c (x_after_update_window_line): Doc fix.
7583 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
7584 frames.
7585 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 7586
048addec
JD
7587 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
7588 for all Windowed systems.
60a653f1 7589
048addec 75902001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 7591
048addec
JD
7592 * msdos.c (IT_clear_screen): If the frame's faces are not yet
7593 realized, use the initial screen colors to clear the screen.
60a653f1 7594
048addec 75952001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 7596
048addec
JD
7597 * textprop.c (Fset_text_properties): Remove unused variables
7598 `unchanged', `prev_changed', `s' and `len'.
60a653f1 7599
048addec
JD
7600 * search.c (Freplace_match): Remove unused variable `inslen'.
7601
7602 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
7603
76042001-11-22 Jason Rumney <jasonr@gnu.org>
7605
7606 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
7607 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
7608 (my_create_tip_window): New function.
7609 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
7610 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
7611
76122001-11-20 Jason Rumney <jasonr@gnu.org>
7613
7614 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
7615 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
7616
7617 * w32fns.c (Vw32_system_coding_system): Remove.
7618 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
7619
76202001-11-19 Stefan Monnier <monnier@cs.yale.edu>
7621
7622 * fileio.c (Fwrite_region): Move choose_write_coding_system to
7623 after build_annotations.
7624
7625 * syntax.c (describe_syntax): Add dummy arg.
7626 (describe_syntax_1): Update call to describe_vector.
7627
7628 * category.c (describe_category): Add dummy arg.
7629 (describe_category_1): Update call to describe_vector.
7630
7631 * keymap.c (Fdescribe_vector): Add `describer' parameter.
7632 (describe_command, describe_translation): Add dummy second param.
7633 (describe_map): Call elt_describer with two arguments.
7634 (describe_vector_princ): Add `fun' parameter.
7635 Call it instead of the hardcoded `princ'.
7636 (describe_vector): Add arg `args'.
7637 Pass it as a new second argument to elt_describer.
60a653f1 7638
048addec 7639 * keymap.h (describe_vector): Update prototype.
60a653f1 7640
048addec
JD
7641 * frame.c: Don't include keymap.h any more.
7642 (keys_of_frame): Remove.
60a653f1 7643
048addec 7644 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 7645
048addec 7646 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 7647
048addec 76482001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 7649
048addec
JD
7650 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
7651 if defined, 0 otherwise.
7652 (MAP_FAILED): Define if not defined and use it to test mmap failure.
7653 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 7654
048addec 76552001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 7656
048addec 7657 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 7658
048addec 76592001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 7660
048addec
JD
7661 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
7662 (x_draw_bar_cursor): If the background color of the glyph under
7663 the cursor equals the frame's cursor color, use the glyph's
7664 foreground color for drawing the bar cursor.
7665 (x_after_update_window_line): Clear internal border in different
7666 circumstances.
7667 (w32_set_vertical_scroll_bar): Check for width and height > 0.
7668 (w32_draw_relief_rect): Correct relief by 1 pixel.
7669 (x_set_glyph_string_background_width):
7670 Set extends_to_end_of_line_p if the row's fill_line_p is set and
7671 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
7672 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
7673 if cursor_in_non_selected_windows is false.
7674 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
7675 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
7676 Notice if cursor gets overwritten.
7677 (notice_overwritten_cursor): Renamed from
7678 note_overwritten_text_cursor. Rewritten to take glyph widths
7679 into account, and to take X positions as parameters.
7680 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
7681 around call to x_draw_glyphs.
7682 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
7683 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
7684 color to use for image glyph reliefs.
7685 (x_draw_image_relief): Accept zero tool_bar_button_relief.
7686 (glyph_rect): Remove unused variable `area'.
60a653f1 7687
048addec
JD
7688 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
7689 some items.
7690 (x_set_internal_border_width): Set frame garbaged when window
7691 doesn't exist yet.
7692 (Fx_create_frame): Accept zero tool_bar_button_relief.
7693 (x_clear_image_1, four_corners_best, image_background)
7694 (image_background_transparent): New functions.
7695 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
7696 (gs_format): Add `:background' entry.
7697 (lookup_image): Set IMG's background color if specified.
7698 (pbm_load, xbm_load_image, png_load): Set IMG's background field
7699 when appropriate.
7700 (x_clear_image_1): Reset `background_valid' and
7701 `background_transparent_valid' fields.
7702 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
7703 calculating it here. Set IMG's background_transparent field.
7704 (enum xpm_keyword_index): Add XPM_BACKGROUND.
7705 (enum png_keyword_index): Add PNG_BACKGROUND.
7706 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
7707 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
7708 (enum gif_keyword_index): Add GIF_BACKGROUND.
7709 (enum gs_keyword_index): Add GS_BACKGROUND.
7710 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
7711 Pre-calculate image background color where necessary.
7712 (x_create_x_image_and_pixmap, xbm_load, gs_load):
7713 Use display info's n_cbits entry for screen depth.
7714 (Fx_show_tip): Remove unused variables `buffer', `top',
7715 `left', `max_width' and `max_height'.
60a653f1 7716
048addec 7717 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 7718
048addec 77192001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 7720
048addec 7721 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 7722
048addec 77232001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 7724
048addec 7725 * frame.c (Fframe_live_p): Doc fix.
60a653f1 7726
048addec 77272001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 7728
048addec
JD
7729 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
7730 (message_dolog_marker3): New static variables hold three markers.
7731 (syms_of_xdisp): Initialize and staticpro them.
7732 (message_dolog): Use message_dolog_marker1..3 instead of
7733 allocating markers each time. Unchain them when done.
60a653f1 7734
048addec 77352001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 7736
048addec 7737 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 7738
048addec 77392001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 7740
048addec 7741 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 7742
048addec 77432001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 7744
048addec 7745 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 7746
048addec 77472001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 7748
048addec 7749 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 7750
048addec 77512001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 7752
048addec
JD
7753 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
7754 with invalid position.
60a653f1 7755
048addec 77562001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 7757
048addec 7758 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 7759
048addec
JD
7760 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
7761 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
7762 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 7763
048addec 7764 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 7765
048addec 77662001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7767
048addec
JD
7768 * fileio.c (build_annotations): Split off the tail.
7769 (build_annotations_2): New fun. Extracted from build_annotations.
7770 (Fwrite_region): Split the call to build_annotations into two
7771 calls to build_annotations and build_annotations_2.
077907d4 7772
048addec 77732001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 7774
048addec
JD
7775 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
7776 clear_waiting_for_input with argument.
1756e2fb 7777
048addec 7778 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 7779
048addec 7780 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 7781
048addec 7782 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 7783
048addec 7784 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 7785
048addec 77862001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 7787
048addec
JD
7788 * fileio.c (choose_write_coding_system): New fun, extracted
7789 from Fwrite_region.
7790 (Fwrite_region): Use it.
fa336b91 7791
048addec
JD
7792 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
7793 (funcall_lambda, run_hook_with_args): Make static and add prototype.
7794 (ml_apply, find_handler_clause): Add prototype.
fa336b91 7795
048addec 77962001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 7797
048addec 7798 * config.in: Add #undef HAVE_COFF_H.
fa336b91 7799
048addec
JD
7800 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
7801 Required for ISC 4.1.
fa336b91 7802
048addec 78032001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 7804
048addec
JD
7805 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
7806 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 7807
048addec 78082001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 7809
048addec
JD
7810 The following changes are made to clean up the various internal
7811 references to the fringes to actually use the term `fringe' for
7812 them. Previously, they were called `flags areas', `bitmap areas',
7813 `left/right side of windows', or implicitly as `flags' or
7814 `bitmaps':
fa336b91 7815
048addec
JD
7816 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
7817 Comments fixed. Use renamed symbols.
06e8f738 7818
048addec 7819 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 7820
048addec
JD
7821 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
7822 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
7823 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 7824
048addec 7825 * msdos.c: Comment fix.
9ce647f4 7826
048addec 7827 * w32fns.c: Use renamed symbols.
9b784ab8 7828
048addec
JD
7829 * w32term.c: Comment fixes. Use renamed symbols.
7830 (fringe_bitmap_type): Renamed from bitmap_type.
7831 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
7832 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
7833 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 7834
048addec
JD
7835 * w32term.h: Comment fixes. Use renamed symbols.
7836 (fringes_extra): Renamed from flags_areas_extra.
7837 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
7838 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
7839 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
7840 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
7841 (FRAME_X_LEFT_FRINGE_WIDTH):
7842 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
7843 (FRAME_X_RIGHT_FRINGE_WIDTH):
7844 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 7845
048addec 7846 * widget.c: Use renamed symbols.
9f7e52b4 7847
048addec
JD
7848 * window.c: Comment fixes. Use renamed symbols.
7849 (coordinates-in-window-p): Doc fix.
fa336b91 7850
048addec 7851 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 7852
048addec 7853 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 7854
048addec 7855 * xfns.c: Use renamed symbols.
89512fcd 7856
048addec
JD
7857 * xterm.c: Comment fixes. Use renamed symbols.
7858 (fringe_bitmap_type): Renamed from bitmap_type.
7859 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
7860 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
7861 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 7862
048addec
JD
7863 * xterm.h: Comment fixes. Use renamed symbols.
7864 (fringes_extra): Renamed from flags_areas_extra.
7865 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
7866 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
7867 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
7868 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
7869 (FRAME_X_LEFT_FRINGE_WIDTH):
7870 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
7871 (FRAME_X_RIGHT_FRINGE_WIDTH):
7872 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
7873
78742001-11-15 Jason Rumney <jasonr@gnu.org>
7875
7876 * w32menu.c (add-menu-item): Make help_echo and radio buttons
7877 work for most menu items. From David Ponce
7878 <david.ponce@wanadoo.fr>.
7879
78802001-11-15 Gerd Moellmann <gerd@gnu.org>
7881
7882 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
7883 Some x_set_* function expect to be called even if old and new
7884 value are equal.
7885
7886 * xdisp.c (build_desired_tool_bar_string): Accept zero
7887 tool_bar_button_relief.
7888
7889 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
7890
7891 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
7892
7893 * xterm.c (x_draw_bar_cursor): If the background color of the
7894 glyph under the cursor equals the frame's cursor color, use
7895 the glyph's foreground color for drawing the bar cursor.
7896
7897 * dispnew.c (direct_output_forward_char): Fix character/byte
7898 position comparison.
7d18891d 7899
048addec 79002001-11-15 Miles Bader <miles@gnu.org>
d2936d21 7901
048addec
JD
7902 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
7903 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
7904 Update arguments to find_field.
7905 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
7906 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
7907 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
7908 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 7909
048addec 79102001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 7911
048addec 7912 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 7913
048addec
JD
7914 * dispextern.h (image_background, image_background_transparent):
7915 Conditionalize on HAVE_X_WINDOWS.
7d18891d 7916
048addec 79172001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 7918
048addec 7919 * print.c (Fprin1_to_string): Doc fix.
7d18891d 7920
048addec 7921 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 7922
048addec 7923 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 7924
048addec 7925 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 7926
048addec 7927 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 7928
048addec 7929 * eval.c (syms_of_eval): Doc fix.
7d18891d 7930
048addec 7931 * coding.c (syms_of_coding): Doc fix.
7d18891d 7932
048addec 7933 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 7934
048addec 7935 * dispnew.c (syms_of_display): Doc fix.
9474c847 7936
048addec 7937 * category.c (Fget_unused_category): Doc fix.
9474c847 7938
048addec 7939 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 7940
048addec 79412001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 7942
048addec 7943 * print.c (prin1, print): Doc fix.
e3059a5d 7944
048addec 79452001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 7946
048addec
JD
7947 * fontset.h: Remove declarations of variables
7948 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 7949
048addec
JD
7950 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
7951 `Vclip_large_size_font'.
eae936e2 7952
048addec 79532001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 7954
048addec 7955 * w32fns.c: Doc fix.
ddb67bdc 7956
048addec 79572001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 7958
048addec 7959 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 7960
048addec 7961 * fns.c: Doc fix.
6e1b91d7 7962
048addec 7963 * emacs.c: Doc fix.
1c1d3d69 7964
048addec 7965 * coding.c: Doc fix.
1c1d3d69 7966
048addec
JD
7967 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
7968 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
7969 `new style' [w/`doc:' keyword].
b6f4c7ba 7970
048addec 79712001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 7972
048addec
JD
7973 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
7974 LeaveNotify events. Only FocusIn and FocusOut do that now.
7975 (x_display_and_set_cursor): Do display hollow cursors in active
7976 minibuffer windows when they are not selected.
b6f4c7ba 7977
048addec 79782001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 7979
048addec
JD
7980 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
7981 * w32term.c: Change doc-string comments to `new style'.
7982 [w/`doc:' keyword]. Doc fixes.
a89f435d 7983
048addec
JD
7984 * w32fns.c: Don't define max.
7985 (Fx_open_connection): Only execute once.
a4cd0cd7 7986
048addec 79872001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 7988
048addec
JD
7989 * ccl.c: Change macros to use do-while block instead of if-else.
7990 Use braces to follow GNU Coding Standards.
eafb659a 7991
048addec 79922001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 7993
048addec 7994 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 7995
048addec 7996 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 7997
048addec
JD
7998 * insdel.c (replace_range): Use adjust_markers_for_replace
7999 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 8000
048addec 8001 * intervals.h: Declare set_text_properties and set_text_properties_1.
a4cd0cd7 8002
048addec
JD
8003 * textprop.c (set_text_properties_1): New subroutine
8004 broken out of set_text_properties.
8005 (set_text_properties): Use set_text_properties_1.
91823618 8006
048addec
JD
8007 * intervals.c (graft_intervals_into_buffer):
8008 Use set_text_properties_1 to clear out properties.
91823618 8009
048addec
JD
8010 * search.c (Freplace_match): Use replace_range to insert
8011 and delete. Don't request property inheritance from
8012 surrounding text.
86928dfb 8013
048addec 80142001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 8015
048addec
JD
8016 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
8017 vertical fonts. Allow them if face name is explicitly specified.
8018 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 8019
048addec 80202001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 8021
048addec
JD
8022 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
8023 instead of malloc/free.
a78e0303 8024
048addec 80252001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 8026
048addec
JD
8027 * xfaces.c (merge_face_vectors): Use braces to follow GNU
8028 Coding Standards.
8029 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 8030
048addec 8031 * buffer.c (Fbury_buffer): Likewise.
0c99b139 8032
048addec 8033 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 8034
048addec
JD
8035 * coding.c (encode_coding): Use precomputed value of `src'.
8036 (encode_coding): Remove unused variable `src_end'.
8037 (code_convert_region): Remove unused variables `count'.
830ddd77 8038
048addec 80392001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 8040
048addec
JD
8041 * w32term.c (x_display_and_set_cursor): Do not move system caret
8042 if cursor_glyph is NULL.
55c6d645 8043
048addec 80442001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 8045
048addec 8046 * keymap.c (access_keymap): Fix compilation error.
5de38842 8047
048addec 80482001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 8049
048addec 8050 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 8051
048addec 80522001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 8053
048addec
JD
8054 * intervals.c (graft_intervals_into_buffer):
8055 Remove #ifdef'd-out code.
8056 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 8057
048addec
JD
8058 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
8059 code (eval-current-buffer).
8060 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 8061
048addec 80622001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 8063
048addec 8064 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 8065
048addec 80662001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 8067
048addec 8068 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 8069
048addec
JD
8070 * keyboard.c (make_lispy_event): Check integerness and fix
8071 Lisp_Object/int mixup.
17893c65 8072
048addec 80732001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 8074
048addec 8075 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 8076
048addec
JD
8077 * fontset.c (fontset_font_pattern): Remove unused variable
8078 `family_registry'.
d5360cc7 8079
048addec 8080 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 8081
048addec 80822001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 8083
048addec 8084 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 8085
048addec
JD
8086 * buffer.c (Fkill_buffer): Don't delete auto save file
8087 if buffer is modified.
d9d54213 8088
048addec 80892001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 8090
048addec
JD
8091 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
8092 CHECK_NUMBER_CDR.
b116830b 8093
048addec 80942001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 8095
048addec 8096 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 8097
048addec 80982001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 8099
048addec 8100 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 8101
048addec 81022001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 8103
048addec 8104 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 8105
048addec 81062001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 8107
048addec
JD
8108 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
8109 the program image directly.
982f6c7e 8110
048addec 81112001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 8112
048addec 8113 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 8114
048addec 81152001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 8116
048addec
JD
8117 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
8118 and CHECK_BUFFER.
d31053f9 8119
048addec
JD
8120 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
8121 (record_char): Likewise.
d31053f9 8122
048addec
JD
8123 * keyboard.c (make_lispy_event): Don't insist a drag event must
8124 move to a different buffer position. Instead, check for moving at
8125 least double_click_fuzz.
982f6c7e 8126
048addec 8127 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 8128
048addec 8129 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 8130
048addec
JD
8131 * indent.c (current_column_1, Fmove_to_column): Separate the code
8132 for display-table glyphs from the code for buffer text, to fix
8133 bugs in the former.
830047fd 8134
048addec 81352001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 8136
048addec
JD
8137 * buffer.c (Fbuffer_local_value): New function.
8138 (syms_of_buffer): Defsubr it.
2df5238c 8139
048addec
JD
8140 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
8141 value of `cursor-in-non-selected-windows'.
4e397688 8142
048addec
JD
8143 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
8144 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
8145 (syms_of_xdisp): Initialize it.
48b0f3ae 8146
048addec 81472001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 8148
048addec 8149 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 8150
048addec
JD
8151 * coding.c: Change doc-string comments to `new style' [w/`doc:'
8152 keyword].
3ecaf7e5 8153
048addec
JD
8154 * eval.c (top_level_value, top_level_set): Remove commented and
8155 #ifdef'd-out code.
8156 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 8157
048addec 81582001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 8159
048addec 8160 * xfns.c: Include unistd.h, if it exists.
8db2e33b 8161
048addec 8162 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 8163
048addec 8164 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 8165
048addec 81662001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 8167
048addec
JD
8168 * lisp.h (CHECK_STRING_CAR): New macro.
8169 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
8170 treating XCAR and XCDR as lvalues.
8171 (openp): Use CHECK_STRING_CAR.
8172 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 8173
048addec 81742001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 8175
048addec
JD
8176 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
8177 (SIGMASKTYPE): Define.
1b1acc13 8178
048addec 8179 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 8180
048addec 81812001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 8182
048addec
JD
8183 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
8184 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
8185 Fix typos in comments.
6cb16f95 8186
048addec
JD
8187 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
8188 and #ifdef'd-out code.
8189 Fix and reindent comments.
6cb16f95 8190
048addec 8191 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 8192
048addec
JD
8193 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
8194 argument `i' in macros.
6cb16f95 8195
048addec
JD
8196 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
8197 `i' in macros.
7e9d3c2f 8198
048addec
JD
8199 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
8200 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
8201 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
8202 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
8203 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
8204 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
8205 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
8206 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
8207 in macros.
7e9d3c2f 8208
048addec
JD
8209 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
8210 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
8211 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
8212 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
8213 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
8214 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
8215 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
8216 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
8217 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
8218 (remove unused second argument).
7e9d3c2f 8219
048addec 82202001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 8221
048addec
JD
8222 * syntax.c (describe_syntax): New wrapper.
8223 (Finternal_describe_syntax_value): Rename from describe_syntax.
8224 Don't insert space at front and \n at the end.
8225 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 8226
048addec
JD
8227 * regex.c (re_wctype): Try to fix some warnings.
8228 (regcomp, regexec): Don't forget the __restrict.
9ba48103 8229
048addec 82302001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 8231
048addec 8232 * textprop.c (Fget_char_property): Doc fix.
9ba48103 8233
048addec 82342001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 8235
048addec 8236 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 8237
048addec 8238 * data.c (Fsetq_default): Ditto.
c22e59e1 8239
048addec 8240 * callint.c (Finteractive): Ditto.
9271ed2c 8241
048addec 82422001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 8243
048addec
JD
8244 * macros.c: Don't include keymap.h any more.
8245
82462001-11-01 Richard M. Stallman <rms@gnu.org>
8247
8248 * data.c (Fmake_local_variable): Doc fix.
8249
8250 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
8251 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 8252
048addec 8253 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
8254 bindings along with or instead of the buffer local map.
8255 Make the overriding maps override what they should.
8256
f00691a3 82572001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
8258
8259 * window.c (grow_mini_window): Fix typo in comment.
8260
27188d11
GM
82612001-11-01 Gerd Moellmann <gerd@gnu.org>
8262
7b49b9d2
GM
8263 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
8264 (XTset_vertical_scroll_bar): Likewise.
8265
43f7c3ea
GM
8266 * xfns.c (x_build_heuristic_mask): Use four_corners_best
8267 instead of IMAGE_BACKGROUND.
c22e59e1 8268
b350c2e5
GM
8269 * xfns.c (four_corners_best): Reindent.
8270
c22e59e1 8271 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
8272 Handle :box so that it is possible to specify sexprs.
8273
bf00d461
EZ
82742001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
8275
8276 * s/hpux11.h: New file.
8277
f00691a3 82782001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 8279
2b209b97
PJ
8280 * emacs.c (USAGE1): Show command line option --no-window-system
8281 instead of --no-windows in usage.
8282 (standard_args): Rename --no-windows to --no-window-system.
8283 (bug_reporting_address): Follow Emacs coding conventions.
8284
9dbc9081
PJ
8285 * eval.c (Fcommandp): Doc fix.
8286 Change doc-string comments to `new style' [w/`doc:' keyword].
8287
4e10df59
PJ
8288 * frame.c (Fframe_live_p): Doc fix.
8289
8290 * buffer.c (selective-display-ellipses): Doc fix.
8291
dd387b25
GM
82922001-10-31 Gerd Moellmann <gerd@gnu.org>
8293
fe957e65
GM
8294 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
8295
dd387b25
GM
8296 * xfaces.c (realize_x_face): If C is not a single-byte character,
8297 set the face's colors_copied_bitwise_p instead of the defaulted_p
8298 members which have a different meaning.
8299 (free_face_colors): Do nothing for a face whose colors have been
8300 copied bitwise.
8301
c22e59e1 8302 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 8303
f00691a3 83042001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 8305
687784e8
PJ
8306 * marker.c, mocklisp.c: Change doc-string comments to `new style'
8307 [w/`doc:' keyword].
2e1280f8 8308
b9d9a9b9
GM
83092001-10-31 Gerd Moellmann <gerd@gnu.org>
8310
8311 * fns.c (require_unwind): Return Lisp_Object.
8312
f00691a3 83132001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 8314
fa1361cb
PJ
8315 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
8316 (last-input-char): Revert doc-string to be the same as the
8317 doc-string of `last-input-event'.
8318
6c465a15 8319 * xdisp.c: Fix typos in comments.
48400103 8320
eafa3196
GM
83212001-10-31 Gerd Moellmann <gerd@gnu.org>
8322
8323 * window.c (grow_mini_window): Handle case that the root
8324 window is already smaller than the nominal mininum height.
8325
747d3f2a
SM
83262001-10-30 Stefan Monnier <monnier@cs.yale.edu>
8327
bf9bb76f
SM
8328 * emacs.c (main): Don't call keys_of_macros any more.
8329
8330 * lisp.h (keys_of_macros): Remove.
8331
8332 * macros.c (keys_of_macros): Remove.
8333
747d3f2a
SM
8334 * xfaces.c (Fface_attribute_relative_p): Declare args.
8335
5e905a57
JR
83362001-10-30 Jason Rumney <jasonr@gnu.org>
8337
8338 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
8339 (enum_font_cb2): Ignore fonts with vertical orientation.
8340
3a426197
RS
83412001-10-30 Richard M. Stallman <rms@gnu.org>
8342
8343 * keyboard.c (Finput_pending_p): Doc fix.
8344
a742d646
GM
83452001-10-30 Gerd Moellmann <gerd@gnu.org>
8346
259cf6bc
GM
8347 * xterm.c (x_after_update_window_line): Don't run the code
8348 clearing in borders for rows whose visible height is 0.
8349
3f99f948
GM
8350 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
8351 resized_p flag is set. If not set, use the much less flickering
8352 method previously used.
8353
8354 * dispnew.c (change_frame_size_1): Set frame's resized_p.
8355
8356 * frame.h (struct frame) <resized_p>: New member.
8357
b4a3be43
GM
8358 * lread.c (to_multibyte): Ensure read_buffer is at least twice
8359 as large as the number of bytes to convert.
747d3f2a 8360
a742d646
GM
8361 * lread.c (to_multibyte): New function.
8362 (read1): Use it.
8363
cacbb9e9
EZ
83642001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
8365
8366 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
8367
99cb6b2f
GM
83682001-10-30 Gerd Moellmann <gerd@gnu.org>
8369
327f42ee 8370 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
8371 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
8372 if the row's fill_line_p is set and drawing the last glyph with
8373 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 8374
99cb6b2f
GM
8375 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
8376
8e8223e2
SM
83772001-10-29 Stefan Monnier <monnier@cs.yale.edu>
8378
8379 * xmenu.c: Include coding.h and charset.h.
8380 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
8381 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
8382 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
8383 Explicitly set wv->help. Use `TRUE' rather than `True'.
8384 (menu_help_callback): Use empty_string.
8385
8386 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
8387 (Fx_popup_dialog): Explicitly init f.
8388 (w32_menu_display_help): Use empty_string.
8389
4d083a8f
RS
83902001-10-29 Richard M. Stallman <rms@gnu.org>
8391
b2304472
RS
8392 * fns.c (Frequire): Detect recursive try to require the same
8393 feature 3 or more levels deep, and get error.
8394 (require_unwind): New subroutine.
8395 (require_nesting_list): New variable.
8396 (syms_of_fns): Init and staticpro it.
8397
4d083a8f
RS
8398 * print.c (print_object): Clarify indication of insertion type.
8399
2fe41216
EZ
84002001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
8401
90480000
EZ
8402 * coding.c (syms_of_coding): Document that locale-coding-system is
8403 used for decoding input on X.
8404
2fe41216
EZ
8405 * window.c (Fscroll_left, Fscroll_right): Doc fix.
8406
f00691a3 84072001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
8408
8409 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
8410 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
8411
60ebcfe8
GM
84122001-10-29 Gerd Moellmann <gerd@gnu.org>
8413
9a7bdceb
GM
8414 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
8415 use NO_CURSOR if cursor_in_non_selected_windows is false.
8416
3f08fcd2
GM
8417 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
8418 the slant attribute if FRAME is t.
8419
0ccfdad2
GM
8420 * xfns.c (x_set_internal_border_width): Set frame garbaged
8421 when X window doesn't exist yet.
8422
ef253080
GM
8423 * xterm.c (x_after_update_window_line): Clear internal border
8424 in different circumstances.
b116830b 8425
60ebcfe8
GM
8426 * xterm.c (XTread_socket) <KeyPress>: Don't use
8427 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
8428 <handa@etl.go.jp>.
8429
73d25f9c
EZ
84302001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
8431
8432 * m/ibms390.h: New file. From Adam Thornton
8433 <athornton@sinenomine.net>.
8434
cac1daf0
GM
84352001-10-28 Gerd Moellmann <gerd@gnu.org>
8436
053b3256 8437 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 8438
cac1daf0
GM
8439 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
8440 a loop counter.
8441
f00691a3 84422001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 8443
186486eb
PJ
8444 * emacs.c: Use argv[0] instead of emacs when -t was specified.
8445
4707d2d0
PJ
8446 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
8447 keyword].
8448 Fix typos in comments.
b116830b 8449
d883731c
PJ
8450 * emacs.c (bug_reporting_address): New function.
8451 Use it when displaying usage message.
8452
04012254
PJ
8453 * minibuf.c (read_minibuf): Remove unused external declaration of
8454 variable `Qread_only'.
8455
13b1a09c
PJ
8456 * keymap.c (access_keymap): Remove unused variable `charset'.
8457
5bbf4378
MB
84582001-10-28 Miles Bader <miles@gnu.org>
8459
8460 * xfaces.c (merge_face_heights): Handle TO being relative as well.
8461 Remove #ifdef'd-out code.
8462 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
8463 (syms_of_xfaces): Initialize them.
8464
1ce1e4ee
JR
84652001-10-27 Jason Rumney <jasonr@gnu.org>
8466
8467 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
8468 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
8469 position using the system caret.
8470
8471 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
8472 (w32_system_caret_height, w32_system_caret_x)
8473 (w32_system_caret_y): New variables for tracking system caret.
8474 (w32_initialize): Initialize them.
c2d53558 8475 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 8476
c2d53558
SM
8477 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
8478 New messages types.
1ce1e4ee
JR
8479
8480 * w32term.c (note_mouse_highlight): Clear old help_echo.
8481
f00691a3 84822001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 8483
bb4600a4
PJ
8484 * xterm.c: Fix typo in a comment.
8485
7db35a48
PJ
8486 * emacs.c: Fix typos in comments.
8487 Remove unnecessary spaces.
8488 Change doc-string comments to `new style' [w/`doc:' keyword].
8489 (USAGE2): Fix typos in usage string.
8490
a7248e4f
PJ
8491 * xterm.c: Fix typo in a comment.
8492
4e30ce42
PJ
8493 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
8494 emacs.c.
8495
62725a92
GM
84962001-10-27 Gerd Moellmann <gerd@gnu.org>
8497
798dbe1f 8498 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 8499 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
8500 farther backward when target_y was not reached.
8501
62725a92
GM
8502 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
8503 Display errno only if non-zero.
8504 (sound_warning): New function.
8505 (vox_configure): Don't treat failing to set sample rate as error.
8506 (various places): Improve error messages.
8507
d4e34d24
EZ
85082001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
8509
944e6f60
EZ
8510 * fileio.c (Faccess_file): Run the argument filename through
8511 Fexpand_file_name, before using it.
8512
d4e34d24
EZ
8513 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
8514 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
8515
38d2af0c
GM
85162001-10-26 Gerd Moellmann <gerd@gnu.org>
8517
da80a8d5
GM
8518 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
8519
38d2af0c
GM
8520 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
8521 Fix clearing in the case of scroll bars on the right.
c2d53558 8522
45de4a6f 85232001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
8524
8525 * w32gui.h (XImage): Add a dummy typedef.
8526
fbd5ceb2
GM
85272001-10-26 Gerd Moellmann <gerd@gnu.org>
8528
c2d53558 8529 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 8530
b23236fb
EZ
85312001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
8532
8533 * frame.c (Fframe_parameter): Fix last change.
8534
5d991fc4
EZ
8535 * fileio.c: Revert last change (which removed old commented-out
8536 version of expand-file-name). Add a comment that explains why
8537 this old version should not be removed.
8538
879eadc3
GM
85392001-10-25 Gerd Moellmann <gerd@gnu.org>
8540
75700ff2
GM
8541 * frame.c (Fframe_parameter): Fix a bug whereby some
8542 ``artificial'' frame parameters, like `minibuffer' were not
8543 obtained by calling Fframe_parameters.
8544
dfe92a6a
GM
8545 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
8546 cursor differently.
8547
879eadc3
GM
8548 * xdisp.c (move_it_vertically_backward): Compute line height
8549 differently. Add heuristic to try to be more compatible to 20.x.
8550
e1010ebe
SM
85512001-10-25 Stefan Monnier <monnier@cs.yale.edu>
8552
d73a471b
SM
8553 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
8554
d6da5a06
GM
8555 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
8556 boolean.
e1010ebe 8557
f66bd220
MB
85582001-10-25 Miles Bader <miles@gnu.org>
8559
8560 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
8561 BG is a pointer to a structure, not a structure.
8562 (gif_format, png_format): Add missing commas.
8563
d436d538
RS
85642001-10-24 Richard M. Stallman <rms@gnu.org>
8565
8566 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 8567 (syms_of_xfaces): Defsubr it.
d436d538 8568
f00691a3 85692001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
8570
8571 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
8572 variable `area'.
8573
f00691a3 85742001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 8575
c2d53558 8576 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 8577
e2a57b34
MB
85782001-10-25 Miles Bader <miles@gnu.org>
8579
8580 * dispextern.h (struct image): Add `background',
8581 `background_valid', and `background_transparent' fields.
8582 (image_background, image_background_transparent): New declarations.
8583 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
8584 * xfns.c (image_background, image_background_transparent)
8585 (four_corners_best): New functions.
c2d53558 8586 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
8587 (gs_format): Add `:background' entry.
8588 (lookup_image): Set IMG's background color if specified.
8589 (pbm_load, xbm_load_image, png_load): Set IMG's background field
8590 when appropriate.
8591 (x_clear_image_1): Reset `background_valid' and
8592 `background_transparent_valid' fields.
8593 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
8594 calculating it here. Set IMG's background_transparent field.
8595 (enum xpm_keyword_index): Add XPM_BACKGROUND.
8596 (enum png_keyword_index): Add PNG_BACKGROUND.
8597 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
8598 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
8599 (enum gif_keyword_index): Add GIF_BACKGROUND.
8600 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 8601 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
8602 Pre-calculate image background color where necessary.
8603 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
8604 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
8605 color to use for image glyph reliefs.
8606
b547b6e8
GM
86072001-10-24 Gerd Moellmann <gerd@gnu.org>
8608
d9e3b8c6
GM
8609 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
8610 in full-width rows.
c2d53558 8611
b547b6e8
GM
8612 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
8613 Fix clearing of area not covered by scroll bar.
8614
f00691a3 86152001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
8616
8617 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
8618 and `real_start'.
c2d53558 8619 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
8620 (glyph_rect): Remove unused variable `area'.
8621
76cb5e06
GM
86222001-10-24 Gerd Moellmann <gerd@gnu.org>
8623
bdbdebff 8624 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
8625
8626 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
8627 (row_containing_pos): Take additional argument DY.
8628 Treat rows ending in middle of char differently.
62e33982
GM
8629 (display_line): Handle tabs on window systems differently.
8630
8631 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
8632 with additional argument.
8633
8634 * dispextern.h (row_containing_pos): Adjust prototype.
8635
76cb5e06
GM
8636 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
8637 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
8638 (try_window_id, try_window_reusing_current_matrix)
8639 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 8640 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 8641
f00691a3 86422001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 8643
c9e60620
PJ
8644 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
8645 gnuemacs).
8646 (HAVE_BOXES): Fix typo in comment.
8647 (push_menu_pane): Fix typo in comment.
8648
3b552d56
PJ
8649 * xdisp.c: (display_prop_string_p): Remove unused local declaration
8650 of `Qwhen'.
8651 (single_display_prop_string_p): Remove unused local declarations
8652 of `Qwhen' and `Qmargin'.
8653 (string_buffer_position): Remove unused variable `around'.
8654 (store_frame_title): Remove unused variable `width'.
8655
15c565ac
PJ
8656 * window.c: Don't define max.
8657 (coordinates_in_window): Remove unused variable `uy'.
8658
a8818eb9
PJ
8659 * widget.c: Don't define max.
8660
996fee11
PJ
8661 * process.c: Don't define max.
8662 (create_process): Remove unused variable `buffer'.
8663
496e1a5b
GM
86642001-10-23 Gerd Moellmann <gerd@gnu.org>
8665
c2d53558 8666 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 8667
5905ae8b
EZ
86682001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
8669
8670 * xfaces.c (Finternal_set_lisp_face_attribute)
8671 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
8672 frame is on a windowed display.
8673
24db49fb
GM
86742001-10-23 Gerd Moellmann <gerd@gnu.org>
8675
c2d53558
SM
8676 * dispnew.c (sync_window_with_frame_matrix_rows):
8677 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
8678 of marginal areas.
8679
c2d53558 8680 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 8681
f0487f05
EZ
86822001-10-23 Andreas Schwab <schwab@suse.de>
8683
8684 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
8685 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
8686
f0a48a01
GM
86872001-10-23 Gerd Moellmann <gerd@gnu.org>
8688
c2d53558 8689 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
8690 REAL_END. Notice if cursor gets overwritten.
8691 (notice_overwritten_cursor): Take X positions as parameters.
8692 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
8693 around call to x_draw_glyphs.
8694
f00691a3 86952001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 8696
fc11dff0
PJ
8697 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
8698 instead of C) and usage.
a50a10a0 8699
fc11dff0
PJ
8700 * editfns.c (char-to-string): Fix argument names (use CHAR instead
8701 of C) and usage.
a50a10a0
PJ
8702
8703 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
8704 `left', `max_width' and `max_height'.
8705
8738febd
GM
87062001-10-23 Gerd Moellmann <gerd@gnu.org>
8707
8708 * xdisp.c (display_line): For a tab continued to the next line,
8709 set row's ends_in_middle_of_char_p.
8710
653c329b
GM
87112001-10-22 Gerd Moellmann <gerd@gnu.org>
8712
8713 * xdisp.c (display_line): Fix computation of continuation lines
8714 width for TABs.
8715
f00691a3 87162001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 8717
7ba51063
PJ
8718 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
8719 `Qlaplace'.
8720
f958c5ac
PJ
8721 * fileio.c: Remove unused code.
8722
eb360291
MB
87232001-10-22 Miles Bader <miles@gnu.org>
8724
8725 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
8726 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
8727 Remove `DOC_STRINGS_IN_COMMENTS' cases.
8728
98515cf0
JR
87292001-10-21 Jason Rumney <jasonr@gnu.org>
8730
8731 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
8732
93026d88
EZ
87332001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
8734
8735 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
8736 (Finsert_string): Avoid the multi-line string literals warning.
8737
c9a95b79
MB
87382001-10-22 Miles Bader <miles@gnu.org>
8739
8740 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
8741 (Fdocumentation): Don't use it.
8742 (syms_of_doc): Don't initialize it.
8743
8744 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
8745 * print.c (Fwith_output_to_temp_buffer): Likewise.
8746 * window.c (Fsave_window_excursion): Likewise.
c2d53558 8747 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 8748 (Fsave_restriction): Likewise.
c2d53558
SM
8749 * eval.c (Frun_hooks, Frun_hook_with_args)
8750 (Frun_hook_with_args_until_failure)
8751 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
8752 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
8753 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
8754 (Funwind_protect, Fcondition_case): Likewise.
8755 * coding.c (Ffind_operation_coding_system): Likewise.
8756 * keyboard.c (Ftrack_mouse): Likewise.
8757
a3b10252
MB
87582001-10-21 Miles Bader <miles@gnu.org>
8759
c2d53558 8760 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
8761 (Fmake_hash_table): Add usage: string to doc string.
8762 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 8763 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
8764 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
8765 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
8766 (Fml_prefix_argument_loop): Likewise.
8767
f00691a3 87682001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 8769
c2d53558 8770 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 8771
c6f73eec
PJ
8772 * sysdep.c (init_sys_modes): Change doc-string comments to `new
8773 style' [w/`doc:' keyword].
8774
8775 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
8776 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
8777 comments to `new style' [w/`doc:' keyword].
8778
3cf3436e
JR
87792001-10-21 Jason Rumney <jasonr@gnu.org>
8780
8781 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
8782
c169b8f1
JR
8783 * w32term.c (remember_mouse_glyph): New function.
8784 (w32_mouse_position): Use it.
8785 (note_mouse_movement): If the mouse moved off the glyph, remember
8786 its new position.
c2d53558 8787
4fdd691b
JR
8788 * w32term.h (struct w32_output): Correct spelling of x_compatible.
8789 (w32_display_info): Add mouse_face_overlay.
8790
c169b8f1
JR
8791 * w32term.c (notice_overwritten_cursor): Renamed from
8792 note_overwritten_text_cursor. Rewritten to take glyph widths into
8793 account.
8794 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
8795 (fast_find_string_pos): New function.
8796 (fast_find_position): Return the correct vpos. Add parameter
8797 STOP. In the final row, stop before glyphs having STOP as object.
8798 Don't consider glyphs that are not from a buffer.
8799 (fast_find_position) [0]: Add a presumably more correct version
8800 for after 21.1.
8801 (expose_window_tree, expose_frame): Don't compute intersections here.
8802 (expose_window): Do it here instead.
8803 (expose_window_tree, expose_window, expose_line): Return 1 when
8804 overwriting mouse-face.
8805 (expose_window): If W is the window currently being updated, mark
8806 the frame garbaged.
8807 (expose_frame): If mouse-face was overwritten, redo it.
8808 (x_use_underline_position_properties): New variable.
8809 (syms_of_xterm): DEFVAR_BOOL it.
8810 (x_draw_glyph_string): Add comment to use it in future.
8811 (x_draw_glyph_string): Restore clipping after drawing box.
8812 Fix a computation of the underline position.
8813 (w32_get_glyph_string_clip_rect): Minor cleanup.
8814 (x_fill_stretch_glyph_string): Remove an assertion.
8815 (x_produce_glyphs): Don't convert multibyte characters
8816 to unibyte characters in unibyte buffers.
8817 (cursor_in_mouse_face_p): New function.
8818 (x_draw_stretch_glyph_string): Use it to choose a different GC
8819 when drawing a cursor within highlighted text. Don't draw
8820 background again if it has already been drawn.
8821 (x_draw_glyph_string_box): Don't draw a full-width
8822 box just because the glyph row's full_width_p flag is set.
8823 (x_draw_glyphs): Fix computation of rightmost x for
8824 full-width rows.
8825 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
8826 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
8827 change bottom shadow accordingly. Some cleanup.
8828 (x_update_window_end): Handle overwritten mouse face
8829 also for tool bar windows.
8830 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
8831 DRAW is DRAW_IMAGE_RAISED.
8832 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
8833 actually redrawn. Make the function static.
8834 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
8835 optimize away highlighting if we pass over that same overlay again.
8836 (note_mouse_highlight): Call mouse_face_overlay_overlaps
8837 to detect a case where we have to highlight a different region
8838 despite not having left the currently highlighted region.
8839 Set mouse_face_overlay in the x_display_info. Avoid changing the
8840 mouse pointer shape when show_mouse_face has already done it, or
8841 there is no need. Handle mouse-face and help-echo in strings.
8842 (glyph_rect): New function.
8843 (w32_mouse_position): Use it to raise the threshold for mouse
8844 movement event generation.
8845 (w32_initialize_display_info): Initialize the x_display_info's
8846 mouse_face_overlay.
8847 (w32_set_vertical_scroll_bar): Don't clear a zero height
8848 or width area.
8849 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
8850 a widget to zero height.
8851
3cf3436e 8852 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 8853 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
8854 equivalents in menu_items.
8855 (w32_menu_show): Don't overwrite an item's name with its key
8856 description in case the description is a multibyte string.
8857 (single_submenu): Some cleanup.
8858
8859 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
8860 (postprocess_image): New function.
8861 (lookup_image): Call it for all image types except PostScript.
8862 (x_kill_gs_process): Call postprocess_image.
8863 (tiff_error_handler, tiff_warning_handler): New functions.
8864 (tiff_load): Install them as handlers.
8865 (x_kill_gs_process): Recognize if someone has cleared the image
8866 cache under us.
8867 (valid_image_p): Protect better against invalid image
8868 specifications. Previous code could signal an error.
8869 (Fx_hide_tip, Fshow_tip): Doc fix.
8870 (Fv_max_tooltip_size): New variable.
8871 (syns_of_xfns): DEFVAR_LISP it.
8872 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
8873 window buffer to *tip* right after creating the frame. Set frame's
8874 window_width. Use a maximum tooltip size specified by
8875 Vx_max_tooltip_size, if that has valid contents.
8876 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
8877 Make sure the tooltip is completely visible.
8878 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
8879 (Fx_create_frame): Adjust the frame's height for presence
8880 of the tool bar before calling x_figure_window_size.
8881 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
8882 when the window gets smaller.
8883 (x_set_foreground_color): Set frame's cursor_pixel.
8884 (x_set_foreground_color, x_set_background_color): Cleaned up.
8885 (x_set_font): Handle case of x_new_fontset returning the same name
8886 as before, although there was a change in fontsets.
8887
386ca361
MB
88882001-10-21 Miles Bader <miles@gnu.org>
8889
c2d53558 8890 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
8891 (Flogxor): Add usage: string to doc string.
8892 * charset.c (Fstring): Likewise.
8893 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
8894 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
8895
f00691a3 88962001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 8897
03be2694
PJ
8898 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
8899
8900 * alloc.c: Reindent DEFUNs with doc: keywords.
8901
8902 * abbrev.c (Finsert_abbrev_table_description): Reindent.
8903
14ff1ee0
PJ
8904 * frame.c: Change doc-string comments to `new style' [w/`doc:'
8905 keyword].
8906
2f147815 8907See ChangeLog.9 for earlier changes.
6922b018
KH
8908
8909;; Local Variables:
49b3bd82 8910;; coding: iso-2022-7bit
6922b018 8911;; End:
2a34a036 8912
2f147815 8913 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
8914 Copying and distribution of this file, with or without modification,
8915 are permitted provided the copyright notice and this notice are preserved.