(rmail-convert-to-babyl-format): Detect
[bpt/emacs.git] / src / ChangeLog
CommitLineData
85478bc6
KH
12003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
2
3 * coding.c (decode_coding_iso2022): Initialized local variable c2.
4 (decode_coding_sjis_big5): Likewise.
5
07ce82d3
JR
62003-08-27 Jason Rumney <jasonr@gnu.org>
7
d3703de3
JR
8 * w32.c (sys_pipe): Protect against file descriptor overflow.
9
ee4a01d1
JR
10 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
11
07ce82d3
JR
12 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
13
72d19c66
LK
142003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
15
16 * xfns.c (Vgtk_version_string): New variable.
17 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
18
5459e42a
EZ
192003-08-24 Eli Zaretskii <eliz@elta.co.il>
20
3d8714e7
EZ
21 * term.c (term_init): Remove `const' from buffer_size's
22 declaration.
23
5459e42a
EZ
24 * Makefile.in (msdos.o): Depend on intervals.h.
25
26 * msdos.c: Include intervals.h, since STRING_INTERVALS requires
27 that.
28
231d6cfb
JD
292003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
30
31 * xterm.h (struct x_display_info): New fields: client_leader_window
32 and Xatom_wm_client_leader.
33
34 * xterm.c (x_initialize): Move call to x_session_initialize to ...
35 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
36
37 * xsmfns.c (create_client_leader_window): New function.
38 (x_session_initialize): Call create_client_leader_window, take
39 dpyinfo as argument.
40
41 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
42
43 * Makefile.in (xsmfns.o): Add more depenedencies.
44
afa88464
DL
452003-08-21 Dave Love <fx@gnu.org>
46
47 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
48
f730033e
KH
492003-08-21 Kenichi Handa <handa@m17n.org>
50
51 * term.c (term_init): Fix previous change; don't rely on the
52 length of `buffer' if TERMINFO is defined.
53
6dca786c
DL
542003-08-20 Dave Love <fx@gnu.org>
55
56 * atimer.h: Include lisp.h.
57
58 * lisp.h (EMACS_LISP_H): New.
59 (popup_activated_flag): Don't declare.
60
61 * alloca.c: Some merging with gnulib. Change logic and doc
62 concerning (x)malloc/(x)free -- no longer Emacs-specific.
63 [DO_BLOCK_INPUT]: Don't include lisp.h.
64 (xmalloc, xfree): Declare.
65 (malloc): Don't declare.
66
67 * Makefile.in (LWLIB_OPTIONS): Removed (unused).
68 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
69 atimer.h, blockinput.h.
70
71 * alloc.c (lisp_align_malloc): Change type of `aligned'.
72
73 * alloca.s: Removed.
74
3a06a6d9
RS
752003-08-19 Gerd Moellmann <gerd@gnu.org>
76
77 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
78 use -lncurses.
79
80 * term.c (term_init): Use a buffer of size 4096 for tgetent since
81 FreeBSD returns something longer than 2044. Abort if the end of
82 the buffer is overwritten.
83
27eeee55
MB
842003-08-19 Miles Bader <miles@gnu.org>
85
86 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
87
2f297815
GM
882003-08-19 Gerd Moellmann <gerd@gnu.org>
89
f4446bbf
GM
90 * alloc.c (lisp_align_malloc): Check for memory full when
91 allocating ablocks, which also avoids freeing a pointer into an
92 ablocks structure.
93
94 * puresize.h (BASE_PURESIZE): Increase to 1100000.
95
2f297815
GM
96 * buffer.c (Fmove_overlay): Set overlay's next pointer
97 unconditionally.
98
0e7d7aae
RS
992003-08-16 Richard M. Stallman <rms@gnu.org>
100
101 * editfns.c (Fencode_time): Doc fix.
102
1032003-08-16 David Ponce <david@dponce.com>
104
105 * fileio.c (Fwrite_region): Fix conditional expression to issue
106 the right message.
107
1082003-08-16 Juri Linkov <juri@jurta.org> (tiny change)
109
110 * syntax.c (Fforward_word): Argument changed to optional.
111 Set default value to 1.
112
5d551295
KH
1132003-08-15 Kenichi Handa <handa@m17n.org>
114
115 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
116 what autoscaled.
117 (best_matching_font): Once we find a better scalable font, set
118 non_scalable_has_exact_height_p to 1.
119 (try_font_list): Call try_alternative_families to try any family
120 with the given registry.
121
1661e56b
AS
1222003-08-09 Andreas Schwab <schwab@suse.de>
123
f29181dc
AS
124 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
125
1661e56b
AS
126 * print.c (print_string): Fix printing of multibyte string with
127 nontrivial printcharfun.
128
465aa50a
JD
1292003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
130
131 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
132
133 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
134
e430e5ba
KH
1352003-07-31 Kenichi Handa <handa@m17n.org>
136
137 * process.c (read_process_output): Return the actually read bytes
138 instead of the result of decoding.
139
97e7188e
KH
1402003-07-31 Kenichi Handa <handa@m17n.org>
141
142 * xterm.h (struct x_bitmap_record): New member have_mask.
143
144 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
145 to 0.
146 (x_create_bitmap_from_file): Likewise.
147 (x_destroy_bitmap): Check have_mask member before freeing a mask.
148 (x_destroy_all_bitmaps): Likewise.
149 (x_create_bitmap_mask): Set have_mask member to 1.
150
b53094d6
RS
1512003-07-30 Richard M. Stallman <rms@gnu.org>
152
153 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
154
631f2082
JD
1552003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
156
157 * gtkutil.c (xg_mark_data): Update calls to mark_object.
158
c855f2ca
RS
1592003-07-29 Richard M. Stallman <rms@gnu.org>
160
161 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
162 Conditionalize XIM code on HAVE_XIM.
163
164 * fns.c (Fclear_string): New function.
165 (syms_of_fns): defsubr it.
166
17e6d491
KH
1672003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
168
169 * xfns.c (xic_set_preeditarea): Add the left fringe width to
170 spot.x.
171
29ea8ae9
SM
1722003-07-22 Stefan Monnier <monnier@cs.yale.edu>
173
174 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
175
176 * buffer.c (delete_all_overlays): New function.
177 * buffer.h (delete_all_overlays): Declare.
178 * coding.c (run_pre_post_conversion_on_str):
179 * print.c (temp_output_buffer_setup):
180 * fileio.c (Finsert_file_contents):
181 * minibuf.c (get_minibuffer): Use it.
182
1dd7ccf2
AC
1832003-07-22 Andrew Choi <akochoi@shaw.ca>
184
185 * unexmacosx.c (unexec_regions_sort_compare):
186 (unexec_regions_merge): New functions. Sort and merge unexec
187 regions before dumping them.
188
f57bd967
DL
1892003-07-22 Dave Love <fx@gnu.org>
190
191 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
192
7cdee936
SM
1932003-07-21 Stefan Monnier <monnier@cs.yale.edu>
194
195 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
196 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
197 MARKBIT as the gcmarkbit for strings.
198
e50886d3
RS
1992003-07-21 Richard M. Stallman <rms@gnu.org>
200
201 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
202
29ea8ae9 203 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
204 (syms_of_fns): Corresponding change.
205
206 * alloc.c (syms_of_alloc): Doc fixes.
207
2082003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
209
210 * s/netbsd.h: Use -Wl syntax.
211
fdc39b59
RS
2122003-07-17 Richard M. Stallman <rms@gnu.org>
213
214 * xterm.c (xim_initialize): Redo 6/24 change.
215
9c53385f
SM
2162003-07-15 Stefan Monnier <monnier@cs.yale.edu>
217
218 * buffer.c (copy_overlays): Use EMACS_INT for positions.
219 (Fswitch_to_buffer): Don't signal an error when switching to the same
220 buffer in a dedicated window.
221
222 * alloc.c: Use bitmaps for cons, as was done for floats.
223 (init_float, init_cons): Let the normal code allocate the first block.
224 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
225 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
226 New macros.
227 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
228 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
229 (live_cons_p): Check the pointer is not past the `conses' array.
230 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
231 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
232 (survives_gc_p): Use CONS_MARKED_P and simplify.
233 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
234
dde13196
PE
2352003-07-13 Paul Eggert <eggert@twinsun.com>
236
237 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
238 puts it into BSS instead, at least on Solaris 8 and 9.
239 This is a valid optimization, and it may occur on other platforms,
240 so Emacs should not assume that initializing a static variable to
241 zero puts it into data.
242 * alloc.c (pure, staticvec):
243 Initialize these arrays to nonzero, so that they're not
244 put into BSS by that optimization.
245
a801bc34
SM
2462003-07-13 Stefan Monnier <monnier@cs.yale.edu>
247
248 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
249 (lisp_align_malloc): Use posix_memalign is available.
250 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
251 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
252 for consistency. Update users.
253
0c8b2afa
RS
2542003-07-13 Richard M. Stallman <rms@gnu.org>
255
256 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
257
668c2ab0
JB
2582003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
259
260 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
261 and use the Gtk+ function gtk_window_icon_from_file if available.
262
263 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
264 handle mask of bitmaps.
265 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
266 mask property.
267 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
268
269 * xterm.h (xg_set_icon): New function.
270
800bebe3
RS
2712003-07-12 Paul Eggert <eggert@twinsun.com>
272
273 * unexelf.c (unexec): Consider a section to precede the .bss
274 section if its addresses overlap that of .bss.
275
69e38995
RS
2762003-07-12 Richard M. Stallman <rms@gnu.org>
277
278 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
279
280 * config.in (HAVE_CRTIN): Add #undef.
281 (INLINE): Really inline only if OPTIMIZE is defined.
282
283 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
284 END_FILES_1.
285 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 286 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
287
288 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
289 (TERMINFO): Define.
290 (LIBS_TERMCAP): Define.
291 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
292
293 * xfns.c: Include libpng/png.h instead of png.h.
294
f1d0c238
AS
2952003-07-11 Andreas Schwab <schwab@suse.de>
296
297 * buffer.c (modify_overlay): Update prototype.
298 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
299 Likewise.
300
5f6bf5fe
SM
3012003-07-09 Stefan Monnier <monnier@cs.yale.edu>
302
303 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
304 (struct interval): Move to intervals.h.
305 (struct Lisp_Marker): Use EMACS_INT for position info.
306 (forward_point): Remove prototype of defunct function.
307 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
308 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
309 (syms_of_textprop, set_text_properties): Remove prototypes that are
310 already in intervals.h.
311
312 * intervals.h (struct interval): Move from lisp.h.
313 Use EMACS_INT for position and size info.
314
315 * coding.c: Include intervals.h for Fset_text_properties.
316
317 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
318 position and length information.
319
2765b457
SM
3202003-07-09 Stefan Monnier <monnier@cs.yale.edu>
321
322 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
323 position and length information.
324
2410d73a
SM
3252003-07-09 Stefan Monnier <monnier@cs.yale.edu>
326
327 Change overlays_after and overlays_before so the overlays themselves
328 are linked into lists, rather than using cons cells. After all each
329 Lisp_Misc already occupies 5 words, so we can add a `next' field to
330 Lisp_Overlay for free and save up one cons cell per overlay (not
331 to mention one indirection when traversing the list of overlay).
332
333 * lisp.h (struct Lisp_Overlay): New field `next'.
334
335 * buffer.h (struct buffer): Change overlays_before and overlays_after
336 from Lisp lists of overlays to pointers to overlays.
337
338 * buffer.c (overlay_strings, recenter_overlay_lists):
339 Fix typo in eassert in last commit.
340 (unchain_overlay): New function.
341 (add_overlay_mod_hooklist): Use AREF.
342 (copy_overlays, reset_buffer, overlays_at, overlays_in)
343 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
344 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
345 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
346 (report_overlay_modification, evaporate_overlays, init_buffer_once):
347 Adjust to new type of overlays_(before|after).
348
349 * alloc.c (mark_object): Mark the new `next' field of overlays.
350 (mark_buffer): Manually mark the overlays_(after|before) fields.
351
352 * coding.c (run_pre_post_conversion_on_str):
353 * editfns.c (overlays_around):
354 * xdisp.c (load_overlay_strings):
355 * fileio.c (Finsert_file_contents):
356 * indent.c (current_column):
357 * insdel.c (signal_before_change, signal_after_change):
358 * intervals.c (set_point_both):
359 * print.c (temp_output_buffer_setup): Use new type for
360 overlays_(before|after).
361
04812929
SM
3622003-07-08 Stefan Monnier <monnier@cs.yale.edu>
363
364 * buffer.c (report_overlay_modification): Don't run hooks while
365 traversing the list of overlays.
366
367 * buffer.h (struct buffer): Use an int for overlay_center.
368 (overlays_at, evaporate_overlays, recenter_overlay_lists)
369 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
370
371 * buffer.c (reset_buffer, recenter_overlay_lists)
372 (adjust_overlays_for_insert, adjust_overlays_for_delete)
373 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
374 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
375 (overlays_at, evaporate_overlays, recenter_overlay_lists)
376 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
377
378 * xdisp.c (fast_find_position): Remove unused var.
379
380 * cmds.c (Qexpand_abbrev): New sym.
381 (syms_of_cmds): Initialize it.
382 (internal_self_insert): Use it to call expand-abbrev.
383
2e7ecf15
KS
3842003-07-09 Kim F. Storm <storm@cua.dk>
385
386 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if emacs
387 was configured with --without-xim.
42f81f64 388 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 389
c6de56a0
RS
3902003-07-07 Richard M. Stallman <rms@gnu.org>
391
392 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
393
394 * alloc.c (Fgarbage_collect): Doc fix.
395
b93fb365
KH
3962003-07-07 Nozomu Ando <nand@mac.com> (tiny change)
397
398 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
399
bfe1a3f7
SM
4002003-07-06 Stefan Monnier <monnier@cs.yale.edu>
401
04812929
SM
402 * minibuf.c (read_minibuf): UNGCPRO before returning.
403 (Ftry_completion, Fall_completions): Doc fix.
404
bfe1a3f7
SM
405 * alloc.c (live_float_p): Check that p is not past the `floats' array,
406 now that `floats' is not the last element of the struct any more.
407
ee79d1aa
JR
4082003-07-06 Jason Rumney <jasonr@gnu.org>
409
410 * w32term.h (ClipboardSequence_Proc): New type.
411
412 * w32fns.c (clipboard_sequence_fn): New variable.
413 (globals_of_w32fns): Initialize it.
414
415 * w32select.c (last_clipboard_sequence_number): New variable.
416 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
417 number if possible.
418
49723c04
SM
4192003-07-06 Stefan Monnier <monnier@cs.yale.edu>
420
4698665f
SM
421 * m/amdx86-64.h (MARKBIT):
422 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
423 MARKBIT and ARRAY_MARK_FLAG any more.
424
425 * m/hp800.h (XSETMARKBIT):
426 * m/sr2k.h (XSETMARKBIT):
427 * lisp.h (XSETMARKBIT): Remove unused macro.
428
49723c04
SM
429 * lisp.h (mark_object): Change prototype.
430
431 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
432 (last_marked): Change accordingly.
433 (mark_interval, mark_maybe_object, mark_maybe_pointer)
434 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
435 (mark_buffer): Update calls to mark_object.
436
437 * bytecode.c (mark_byte_stack):
438 * fns.c (sweep_weak_table):
439 * keyboard.c (mark_kboards): Update calls to mark_object.
440
1d660eca
JR
4412003-07-06 Jason Rumney <jasonr@gnu.org>
442
443 * alloc.c (struct ablock): Only include padding when there is some.
444
618b5ae4
SM
4452003-07-04 Stefan Monnier <monnier@cs.yale.edu>
446
447 * alloc.c (ALIGN): Add casts to simplify usage.
448 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
449 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
450 (struct ablock, struct ablocks): New types.
451 (free_ablock): New global var.
452 (lisp_align_malloc, lisp_align_free): New functions.
453 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
454 (struct float_block): Reorder and add gcmarkbits.
455 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
456 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
457 (init_float, make_float): Use lisp_align_malloc.
458 (free_float, live_float_p): Don't use `type' any more.
459 (make_float): Use FLOAT_UNMARK to access to mark bit.
460 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
461 Use FLOAT_MARKED_P to access the mark bit.
462 (pure_alloc): Simplify use of ALIGN.
463 (mark_object): Use FLOAT_MARK to access the mark bit.
464 (gc_sweep): Use new macros to access the float's mark bit.
465 (init_alloc_once): Init free_ablock.
466
467 * lisp.h (struct Lisp_Float): Remove unused field `type'.
468
3ef06d12
SM
4692003-06-27 Stefan Monnier <monnier@cs.yale.edu>
470
471 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
472 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
473 (allocate_buffer): Move.
474 (string_bytes): Don't mask markbit of `size_byte'.
475 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
476 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
477 Use the `size' field of buffers (rather than the `name' field) for
478 the mark bit, as is done for all other vectorlike objects.
479 Use the new macros to access the mark bit of vectorlike objects.
480
e81043aa
RS
4812003-06-26 Richard M. Stallman <rms@gnu.org>
482
483 * puresize.h (BASE_PURESIZE): Increment base size.
484
485 * xdisp.c (fast_find_position): Enable Gerd's new definition.
486
487 * xterm.c (xim_initialize): Undo previous change.
488
2d0834cc
SM
4892003-06-26 Stefan Monnier <monnier@cs.yale.edu>
490
491 * alloc.c (survives_gc_p): Simplify.
492
493 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
494
495 * window.c (Fset_window_dedicated_p): Simplify.
496 (display_buffer_1): Don't raise the win from which minibuf was entered.
497 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
498 (Fminibuffer_selected_window): Simplify.
499
500 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
501
502 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
503 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
504
505 * insdel.c (check_markers, adjust_markers_for_delete)
506 (adjust_markers_for_insert, adjust_markers_for_replace)
507 (prepare_to_modify_buffer, RESTORE_VALUE):
508 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
509 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
510 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
511 * alloc.c (Fmake_marker, free_marker, gc_sweep):
512 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
513 * editfns.c (save_excursion_restore, transpose_markers):
514 * window.c (delete_window):
515 * xdisp.c (message_dolog): Update for new types.
516
d54ae3d8
JD
5172003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
518
a5f696ac
JD
519 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
520 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 521 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
522
523 * frame.c (make_frame): Initialize default_face_done_p.
524
525 * frame.h (struct frame): Add default_face_done_p.
526
d54ae3d8
JD
527 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
528 will be defined.
529
2336fe58
SM
5302003-06-25 Stefan Monnier <monnier@cs.yale.edu>
531
532 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
533 Initialize the new field `gcmarkbit'.
534 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
535 (mark_interval_tree): Don't mark the tree separately from the nodes.
536 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
537 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
538 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
539
540 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
541 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
542 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
543 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
544 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
545
bcea31c2
DL
5462003-06-24 Dave Love <fx@gnu.org>
547
548 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
549
550 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
551 from gnulib.
552
2601f59e
RS
5532003-06-21 Richard M. Stallman <rms@gnu.org>
554
555 * fileio.c (Fwrite_region): Alternate messages
556 for append and partial write.
557
558 * keyboard.c (read_key_sequence): When converting upcase fn key to
559 downcase, update fkey and keytran so `backspace' gets translated.
560
561 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
562
563 * process.c (wait_reading_process_input): Don't signal SIGIO
564 in batch mode.
565
b5d2c621
KH
5662003-06-17 Kenichi Handa <handa@m17n.org>
567
568 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
569 composite.h.
570
571 * xselect.c: Don't include charset.h, coding.h, composite.h.
572 (Qforeign_selection): New variable.
573 (syms_of_xselect): Intern and static it.
574 (selection_data_to_lisp_data): Return a unibyte string made from
575 data with `foreign-selection' text property.
576
6793bc63
SM
5772003-06-15 Stefan Monnier <monnier@cs.yale.edu>
578
579 * termhooks.h (EVENT_INIT): New macro.
580
581 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
582
583 * alloc.c (mark_kboards): Move to keyboard.c.
584
585 * keyboard.c (record_asynch_buffer_change, read_avail_input):
586 * xterm.c (x_dispatch_event):
587 * xmenu.c (find_and_call_menu_selection):
588 * xdisp.c (handle_tool_bar_click):
589 * w32menu.c (menubar_selection_callback):
590 * sysdep.c (kbd_input_ast, read_input_waiting):
591 * msdos.c (dos_rawgetc):
592 * macterm.c (mac_check_for_quit_char):
593 * macmenu.c (menubar_selection_callback):
594 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
595 data to kbd_buffer_store_event.
596
b3ea810c
KS
5972003-06-15 Kim F. Storm <storm@cua.dk>
598
599 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 600 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 601
b8f75eda
KG
6022003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
603
604 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
605
ba92ce48
KH
6062003-06-12 Kenichi Handa <handa@m17n.org>
607
608 * fileio.c (Fwrite_region): Save and restore restriction.
609
b80263be
DL
6102003-06-12 Dave Love <fx@gnu.org>
611
612 * alloca.c (alloca): Declare arg as size_t.
613
6793bc63
SM
614 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
615 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 616
b23c0a83
DL
6172003-06-11 Dave Love <fx@gnu.org>
618
619 * search.c (shrink_regexp_cache): Use xrealloc.
620 (syms_of_search): Use xmalloc.
621
700e47c2
KS
6222003-06-10 Kim F. Storm <storm@cua.dk>
623
624 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
625 Adjust phys_cursor.x to be relative to window box, rather than
626 text area before checking -- to ensure cursor is redrawn when
627 exposing window.
628 Note: This also fixes a similar (older) bug if display margins
629 are present.
630
f11aa0b2
KH
6312003-06-06 Kenichi Handa <handa@m17n.org>
632
633 * coding.c (encoding_buffer_size): If coding->type is
634 coding_type_ccl, double magnification on CRLF encoding.
635
3d143690
JR
6362003-06-06 Jason Rumney <jasonr@gnu.org>
637
638 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
639 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
640
641 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
642 Mac too.
643
f16205ca
DL
6442003-06-05 Dave Love <fx@gnu.org>
645
b23c0a83
DL
646 * strftime.c: Merge changes from gnulib.
647
f16205ca
DL
648 * mktime.c (__mktime_internal): Merge changes from gnulib
649 involving year 69 and dst2.
650
651 Changes to merge with gnulib version and be consistent with the
652 autoconf test:
653
6793bc63
SM
654 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
655 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
656 [HAVE_LOCALE_H]: Include locale.h.
657 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
658
9b87a0bc
KS
6592003-06-05 Kim F. Storm <storm@cua.dk>
660
661 * window.c (coordinates_in_window): Convert X and Y to window
662 relative coordinates inside mode-line and header-line parts.
663 Convert X and Y to margin area relative coordinates inside left
664 and right display margin parts.
665
5a8a15ec
JR
6662003-06-05 Jason Rumney <jasonr@gnu.org>
667
668 * w32fns.c (add_system_logical_colors_to_map): New function.
669 (Fx_open_connection): Use it.
670
01ed8ff1
SM
6712003-06-04 Stefan Monnier <monnier@cs.yale.edu>
672
673 * process.c (allocate_pty): Revert part of the previous patch.
674 (Faccept_process_output): Simplify.
675
b427b65d
JR
6762003-06-04 Jason Rumney <jasonr@gnu.org>
677
678 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
679
680 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
681 (lispy_mouse_wheel_names): Remove.
682 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
683 Always define drag_and_drop_syms.
684
685 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
686 WHEEL_EVENT events.
687
914a8c47
SM
6882003-06-03 Stefan Monnier <monnier@cs.yale.edu>
689
01ed8ff1
SM
690 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
691
914a8c47
SM
692 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
693
adcb132c
JD
6942003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
695
696 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
697 menu item label.
698
be781fa7
RS
6992003-06-03 Richard M. Stallman <rms@gnu.org>
700
701 * window.c (Fwindow_edges): Doc fix.
702 (Fwindow_pixel_edges, Fwindow_inside_edges)
703 (Fwindow_inside_pixel_edges): New functions.
704 (syms_of_window): defsubr them.
705
706 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
707 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
708
914a8c47
SM
7092003-06-02 Stefan Monnier <monnier@cs.yale.edu>
710
711 * dispnew.c (Fsit_for): Don't lie about the number of args.
712
5b07197a
DL
7132003-06-02 Dave Love <fx@gnu.org>
714
715 * callproc.c: Use HAVE_FCNTL_H, not USG5.
716 (syms_of_callproc) <process-environment>: Doc fix.
717
718 * doc.c: Use HAVE_FCNTL_H, not USG5.
719
720 * xfaces.c (font_rescale_ratio): Fix for K&R.
721
722 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
723
724 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
725
726 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
727
728 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
729 (xg_create_frame_widgets): Use ENCODE_UTF_8.
730
731 * xterm.c (Qutf_8): Moved to coding.c
732
733 * xmenu.c (ENCODE_MENU_STRING): New.
734 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
735 Use it.
736
737 * coding.h (ENCODE_UTF_8): New.
738 (Qutf_8): Declare.
739
740 * coding.c (Qutf_8): New.
741 (syms_of_coding): Intern it.
742
743 * fns.c: Doc fixes.
744
7335b336
KH
7452003-06-02 Kenichi Handa <handa@m17n.org>
746
747 * buffer.c (Fset_buffer_multibyte): Fix previous change.
748
914a8c47
SM
7492003-06-01 Stefan Monnier <monnier@cs.yale.edu>
750
751 * lread.c (openp): Make sure STR is a string.
752
9862c135
JR
7532003-06-01 David Ponce <david@dponce.com>
754
755 * termhooks.h (enum event_kind): Added new WHEEL_EVENT event.
756 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
757
758 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
759 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
760 (discard_mouse_events): Discard WHEEL_EVENT events too.
761 (lispy_wheel_names, wheel_syms): New.
762 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
763 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX
764 defined.
914a8c47 765 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
766
767 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
768 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
769 WHEEL_EVENT events.
770
f984e73e
JPW
7712003-05-31 John Paul Wallington <jpw@gnu.org>
772
773 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
774 timer are in lisp/emacs-lisp.
775
1efcd78f
KH
7762003-05-31 Kenichi Handa <handa@m17n.org>
777
458c8af4
KH
778 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
779 region when a buffer is changed to unibyte.
780
1efcd78f
KH
781 * charset.h (VALID_LEADING_CODE_P): New macro.
782 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
783
778e2804
KH
784 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
785 is nonzero, accept multibyte form of eight-bit-control chars.
786 (decode_composition_emacs_mule): Likewise.
787 (decode_coding_emacs_mule): Likewise.
788 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
789 multibyte form of eight-bit-control chars.
790
791 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
792 (Finsert_file_contents): If coding-system-for-read is bound to
793 Qauto_save_coding, use the coding system emacs-mule with special
794 setting for recovering a file.
795 (choose_write_coding_system): On auto saving, use the coding
796 system emacs-mule with special setting for auto saving.
797 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
798
034060e4
KH
7992003-05-30 Kenichi Handa <handa@m17n.org>
800
801 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
802 properly before calling ccl_driver.
803
778e2804 804 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4
KH
805
806 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is
807 nonzero.
808 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
809 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
810
595f5aa5
GM
8112003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
812
813 * xfaces.c (realize_default_face): Do not abort if lface is
814 non-existent - reverts change from 2003-05-19.
815
103e0180
KH
8162003-05-29 Kenichi Handa <handa@m17n.org>
817
818 * coding.c (decode_coding_iso2022): Pay attention to the byte
819 sequence of CTEXT extended segment, and retain those bytes as is.
820
8212003-05-28 Kenichi Handa <handa@m17n.org>
822
823 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjusted for the name change
824 of CODING_REPLACEMENT_CHARACTER.
825 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
826 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
827 check this flag on encoding.
828 (encode_coding_sjis_big5): Check
829 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
830 (Fset_terminal_coding_system_internal): Set
831 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
832 instead of setting CODING_FLAG_ISO_SAFE flag in
833 terminal_coding.flags.
834
835 * coding.h (CODING_REPLACEMENT_CHARACTER): Renamed from
836 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
837 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
838
ff6a3bfb 8392003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 840
ff6a3bfb
RS
841 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
842
843 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 844
1963c428
KS
8452003-05-28 Kim F. Storm <storm@cua.dk>
846
847 * xdisp.c (expose_window): Fix error in calculation of
848 window relative coordinates of area to redisplay.
849
2b5d4601
JR
8502003-05-27 Jason Rumney <jasonr@gnu.org>
851
852 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
853
1c64a4a2
JB
8542003-05-27 David Ponce <david@dponce.com>
855
856 Handle W32 mouse wheel events as mouse click events, like in X.
857
858 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
859 MOUSE_WHEEL_EVENT anymore.
860
861 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
862 Scrolling down/up the mouse wheel is respectively mapped to mouse
863 button 4 and 5.
864 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
865 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
866 WM_MOUSEWHEEL events.
867
2d031b89
AS
8682003-05-27 Andreas Schwab <schwab@suse.de>
869
20464fdf
AS
870 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
871
2d031b89
AS
872 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
873 partially visible line.
874
875 * alloc.c (Fgarbage_collect): Fix last change.
876
97bc76d4
JPW
8772003-05-26 John Paul Wallington <jpw@gnu.org>
878
879 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
880
56613f06
SM
8812003-05-25 Stefan Monnier <monnier@cs.yale.edu>
882
883 * window.c (Fset_window_buffer): Add type of `keep_margins'.
884 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
885
886 * window.h (window_box_text_cols): Declare.
887
888 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
889 (x_draw_vertical_border): Remove unused var `f'.
890
891 * xfaces.c (build_scalable_font_name): Remove `unused var
892 pixel_size' warning.
893
894 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
895
896 * unexelf.c (unexec): Remove `unused var n' warning.
897
898 * strftime.c (my_strftime_localtime_r): Remove `defined but
899 unused' warning.
900
901 * process.c (allocate_pty): Remove `unused var stb' and
902 `cp might be used uninitialized' warnings.
903
904 * dispnew.c (mode_line_string): Remove unused var `f'.
905
906 * coding.c (find_safe_codings): Remove unused var `i'.
907
908 * bytecode.c (Fbyte_code): Remove `unused val' warning.
909
910 * buffer.c (Fkill_buffer): Remove unused var `list'.
911
912 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
913
93421a1f
JD
9142003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
915
916 * frame.c (make_frame): Condition want_fullscreen with
917 HAVE_WINDOW_SYSTEM.
918
c4b8aebc
JB
9192003-05-25 Juanma Barranquero <lektu@terra.es>
920
921 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
922 (Fwindow_scroll_bars): Fix typo in docstring.
923
0416870b
KS
9242003-05-24 Kim F. Storm <storm@cua.dk>
925
926 The following changes serve several purposes:
927
928 1) Swap the position of fringes and display margins in windows, i.e.
929 the fringes are now displayed between the margins and the text area
930 (by default).
931
932 2) Allow fringe and scroll bar parameters to be set per-buffer and
933 per-window (like display margins). Such settings are now stored
934 in window configurations, preserved when frames are resized, and
9018a88e 935 copied when windows are split vertically or horizontally.
0416870b
KS
936 Several bugs related to display margins have been fixed.
937
938 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 939
0416870b
KS
940 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
941 rather than FRAME_WIDTH (FRAME_FONT (f)).
942
943 5) Introduce a consistent naming of variables, members and macros
944 depending on whether their value is measured in pixels or in
945 canonical columns/lines. Pixel dimensions are named *_width and
946 *_height, while canonical columns/lines are named *_cols and
947 *_lines. Pixel positions are named *_x and *_y, while column/line
948 positions are named *_col and *_line.
949
950 6) Consolidate more of the X, W32, and MAC gui code by moving
951 common data into struct frame, and generalize it for the non-gui
952 case by using suitable defaults.
953
954 7) Cleanup and consolidate the macros controlling frame and window
955 layout into frame.h and window.h, and generalize the use of the
956 various window_box_* functions (enhanced to handle the new fringe
957 position and the per-window fringe and scroll bar settings).
958
959 * frame.h (struct frame): Rename members height to text_lines,
960 width to text_cols, window_height to total_lines, window_width to
961 total_cols, new_height to new_text_lines, new_width to
962 new_text_cols. All uses changed.
963 (struct frame): New members which consolidate common members of
964 x_output, w32_output, and mac_output structures: left_pos,
965 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
966 win_gravity, size_hint_flags, border_width, internal_border_width,
967 line_height, fringe_cols, left_fringe_width, right_fringe_width,
968 want_fullscreen. All uses changed.
969 (struct frame): New member column_width contaning the canonical
970 column width, analogue to line_height. All uses changed.
971 (struct frame): Rename members scroll_bar_pixel_width to
972 config_scroll_bar_width, and scroll_bar_cols to
973 config_scroll_bar_cols. All uses changed.
974 (struct frame): New member scroll_bar_actual_width which
975 consolidates and renames the vertical_scroll_bar_extra member of
976 x_output, w32_output, and mac_output structures. All uses changed.
977 (FRAME_PIXEL_HEIGHT): Renamed from PIXEL_HEIGHT and moved
978 from x/w32/macterm.h files. All uses changed. Also change code
979 which referred to f->output_data...->pixel_height.
980 (FRAME_PIXEL_WIDTH): Renamed from PIXEL_WIDTH and moved
981 from x/w32/macterm.h files. All uses changed. Also change code
982 which referred to f->output_data...->pixel_width.
983 (FRAME_LINES): Renamed from FRAME_HEIGHT. All uses changed.
984 Also change code which referred to f->height.
985 (FRAME_COLS): Renamed from FRAME_WIDTH. All uses changed.
986 Also change code which referred to f->width.
987 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
988 to update new_text_lines and new_text_cols members directly.
989 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Renamed from
990 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
991 (FRAME_CONFIG_SCROLL_BAR_COLS): Renamed from
992 FRAME_SCROLL_BAR_COLS. All uses changed.
993 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
994 Renamed from FRAME_LEFT_SCROLL_BAR_WIDTH and
995 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
996 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
997 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
998 (FRAME_TOTAL_COLS): Renamed from FRAME_WINDOW_WIDTH.
999 (SET_FRAME_COLS): Renamed from SET_FRAME_WIDTH.
1000 (FRAME_TOTAL_COLS_ARG): Renamed from FRAME_WINDOW_WIDTH_ARG.
1001 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
1002 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
1003 (FRAME_LINE_HEIGHT): Renamed from CANON_Y_UNIT. Unconditionally
1004 return line_height member (it now has proper value also for
1005 non-window frames).
1006 (FRAME_COLUMN_WIDTH): Renamed from CANON_X_UNIT. Unconditionally
1007 return new column_width member (rather than the default font width).
1008 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
1009 (FRAME_RIGHT_FRINGE_WIDTH): Renamed from FRAME_X_... and moved
1010 from x/w32/macterm.h files. Unconditionally return corresponding
1011 member of frame structure (they now have proper values also for
1012 non-window frames).
1013 (FRAME_TOTAL_FRINGE_WIDTH): Renamed from FRAME_FRINGE_WIDTH.
1014 Calculate return value from left and right widths.
1015 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
1016 internal_border_width member (has proper value for non-window frame).
1017 (FRAME_PIXEL_X_FROM_CANON_X): Renamed from PIXEL_X_FROM_CANON_X.
1018 (FRAME_PIXEL_Y_FROM_CANON_Y): Renamed from PIXEL_Y_FROM_CANON_Y.
1019 (FRAME_CANON_X_FROM_PIXEL_X): Renamed from CANON_X_FROM_PIXEL_X.
1020 (FRAME_CANON_Y_FROM_PIXEL_Y): Renamed from CANON_Y_FROM_PIXEL_Y.
1021 (FRAME_LINE_TO_PIXEL_Y): Renamed from CHAR_TO_PIXEL_ROW,
1022 consolidated from xterm.h, macterm.h, and w32term.h.
1023 (FRAME_COL_TO_PIXEL_X): Renamed from CHAR_TO_PIXEL_COL,
1024 consolidated from xterm.h, macterm.h, and w32term.h.
1025 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Renamed from
1026 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
1027 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Renamed from
1028 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
1029 (FRAME_PIXEL_Y_TO_LINE): Renamed from PIXEL_TO_CHAR_ROW
1030 consolidated from x/mac/w32term.h.
1031 (FRAME_PIXEL_X_TO_COL): Renamed from PIXEL_TO_CHAR_COL
1032 consolidated from x/mac/w32term.h.
1033 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Renamed from
1034 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
1035 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Renamed from
1036 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
1037
1038 * window.h (struct window): Rename members left to left_col,
1039 top to top_line, height to total_lines, width to total_cols,
1040 left_margin_width to left_margin_cols, right_margin_width to
1041 right_margin_cols, orig_height to orig_total_lines, orig_top to
1042 orig_top_line. All uses changed.
1043 (struct window): New members left_fringe_width, right_fringe_width,
1044 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
1045 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
1046 New macros primarily used to simplify other macros.
1047 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
1048 referred to XINT (w->width).
1049 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
1050 referred to XINT (w->height).
1051 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
1052 referred to XINT (w->width) * canon_x_unit.
1053 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
1054 referred to XINT (w->height) * canon_y_unit.
1055 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
1056 referred to XINT (w->left).
1057 (WINDOW_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_EDGE. Change
1058 all uses and code that referred to XINT (w->left) + XINT (w->width).
1059 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
1060 referred to XINT (w->top).
1061 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
1062 referred to XINT (w->top) + XINT (w->height).
1063 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
1064 referred to XINT (w->left) * canon_x_unit.
1065 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
1066 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
1067 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
1068 referred to XINT (w->top) * canon_y_unit.
1069 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
1070 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
1071 (WINDOW_LEFTMOST_P): New macro.
1072 (WINDOW_BOX_LEFT_EDGE_COL): Renamed from WINDOW_LEFT_MARGIN.
1073 All uses changed.
1074 (WINDOW_BOX_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_MARGIN.
1075 All uses changed.
1076 (WINDOW_BOX_LEFT_EDGE_X): Renamed from
1077 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
1078 Do not exclude left fringe width.
1079 (WINDOW_BOX_RIGHT_EDGE_X): Renamed from
1080 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
1081 Do not exclude fringe widths.
1082 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
1083 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
1084 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
1085 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
1086 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
1087 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
1088 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
1089 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
1090 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
1091 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
1092 New macros. Change code which referenced corresponding
1093 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
1094 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
1095 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
1096 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
1097 allow per-window scroll-bar settings.
1098 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
1099 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
1100 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
1101 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
1102 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
1103 FRAME_SCROLL_BAR_WIDTH.
1104 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 1105 (WINDOW_SCROLL_BAR_AREA_X): New macros.
0416870b
KS
1106 (WINDOW_HEADER_LINE_HEIGHT): Renamed from
1107 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
1108 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Renamed from
1109 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
1110 (WINDOW_BOX_TEXT_HEIGHT): Renamed from
1111 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
1112 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
1113 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
1114 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Moved here from dispextern.h.
1115 (WINDOW_LEFT_MARGIN_WIDTH): Renamed from
1116 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
1117 (WINDOW_RIGHT_MARGIN_WIDTH): Renamed from
1118 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
1119 (window_from_coordinates): Update prototype.
1120 (Fset_window_buffer): Update EXFUN.
1121 (set_window_buffer): Update prototype.
9018a88e 1122
0416870b 1123 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 1124 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
1125 changed.
1126 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
1127 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
1128 internal_border_width is now set to 0 for non-window frames.
1129 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
1130 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
1131 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
1132 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
1133 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
1134 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
1135 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
1136 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
1137 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 1138 Move to window.h and renamed [see window.h changes].
0416870b
KS
1139 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
1140 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
1141 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
1142 Use WINDOW_TOTAL_LINES.
0416870b
KS
1143 (frame_update_line_height): Remove prototype.
1144
1145 * buffer.h (struct buffer): Rename members measured in columns:
1146 left_margin_width to left_margin_cols, right_margin_width to
1147 right_margin_cols. All uses changed.
1148 New members left_fringe_width, right_fringe_width,
1149 fringes_outside_margins for per-buffer fringe settings.
1150 New members scroll_bar_width and vertical_scroll_bar_type for
1151 per-buffer scroll bar settings.
1152
1153 * buffer.c (init_buffer_once): Set buffer_defaults and
1154 buffer_local_flags for new buffer-local variables
1155 left_fringe_width, right_fringe_width, fringes_outside_margins,
1156 scroll_bar_width, and vertical_scroll_bar_type.
1157 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
1158 default-* variables for them.
1159
1160 * dispnew.c: Make (many) trivial substitutions for renamed and
1161 new macros in dispextern.h, frame.h and window.h.
1162 (mode_line_string): No need to adjust width for mode lines, as it
1163 is already adjusted by the caller.
1164 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 1165
0416870b
KS
1166 * frame.c: Make (many) trivial substitutions for renamed and
1167 new macros in dispextern.h, frame.h and window.h.
1168 (make_frame): Initialize left_fringe_width, right_fringe_width,
1169 fringe_cols, scroll_bar_actual_width, border_width,
1170 internal_border_width, column_width, line_height, x_pixels_diff,
1171 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
1172 members with values suitable for a non-window frames.
1173
1174 * gtkutil.c: Make (many) trivial substitutions for renamed and
1175 new macros in dispextern.h, frame.h and window.h.
9018a88e 1176
0416870b
KS
1177 * indent.c: Make (few) trivial substitutions for renamed and
1178 new macros in dispextern.h, frame.h and window.h.
1179
1180 * keyboard.c: Make (many) trivial substitutions for renamed and
1181 new macros in dispextern.h, frame.h and window.h.
1182 (make_lispy_event): Use window positions returned from
1183 window_from_coordinates when constructing the lisp event for
1184 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
1185 (incorrect) values locally.
1186 (make_lispy_movement): Use window positions returned from
1187 window_from_coordinates when constructing the lisp event, rather
1188 than calculating (incorrect) values locally.
1189
1190 * scroll.c: Make (some) trivial substitutions for renamed and
1191 new macros in dispextern.h, frame.h and window.h.
1192
1193 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
1194 scroll-bars.
1195
1196 * sysdep.c: Make (few) trivial substitutions for renamed and
1197 new macros in dispextern.h, frame.h and window.h.
1198
1199 * term.c: Make (some) trivial substitutions for renamed and
1200 new macros in dispextern.h, frame.h and window.h.
1201
1202 * widget.c: Make (few) trivial substitutions for renamed and
1203 new macros in dispextern.h, frame.h and window.h.
1204
1205 * window.c: Make (many) trivial substitutions for renamed and
1206 new macros in dispextern.h, frame.h and window.h.
1207 (make_window): Initialize new members
1208 left_margin_cols, right_margin_cols, left_fringe_width,
1209 right_fringe_width, fringes_outside_margins, scroll_bar_width,
1210 and vertical_scroll_bar_type.
1211 (coordinates_in_window): Adapted to new fringe/margin positions
9018a88e 1212 and per-window fringes and scroll-bars.
0416870b 1213 Fix bug related to incorrectly adjusting coordinates by
9018a88e 1214 frame's internal_border_width (the effect normally negible since
0416870b
KS
1215 the internal_border_width is typically 0 or 1 pixel, but very
1216 noticeable for an internal_border_width of e.g. 25 pixels).
1217 Upon successful return (other than ON_NOTHING), the coordinates
1218 are now always properly converted to window relative for the
1219 given display element.
1220 (window_from_coordinates): Add new parameters wx and wy to
1221 return the window relative x and y position in the returned
1222 window and part. A null arg means, don't return the position.
1223 All callers changed.
1224 (adjust_window_margins): New function which may reduce the width
1225 of the display margins if a window's text area is too small after
1226 resizing or splitting windows.
1227 (size_window): Fix bug that did not account for display margin
1228 widths when checking the minimum width of a window; use
1229 adjust_window_margins.
1230 (set_window_buffer): Call Fset_window_fringes and
1231 Fset_window_scroll_bars to setup per-window elements.
1232 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
1233 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
1234 (e.g. after splitting a window or resizing the frame).
1235 All callers changed.
0416870b
KS
1236 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
1237 (Fsplit_window): Duplicate original window's display margin,
1238 fringe, and scroll-bar settings; then call Fset_window_buffer with
1239 KEEP_MARGINS non-nil. This fixes a bug which caused a split
1240 window to only preserve the display margins in one of the windows.
c4b8aebc 1241 When splitting horizontally, call adjust_window_margins on both
0416870b
KS
1242 windows to ensure that the text area of the new windows is non too
1243 narrow. This fixes a bug which could cause emacs to trap if the
1244 width of the split window was less than the width of the display
1245 margins.
9018a88e
SM
1246 (window_box_text_cols): Renamed from window_internal_width.
1247 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
1248 Fix bug that caused vertical separator to be subtracted also on
1249 window frames. Fix another bug that did not reduce the returned
1250 value by the columns used for display margins.
1251 (window_scroll_line_based): Fix bug related to scrolling too much
1252 when display margins are present (implicitly fixed by the fix to
1253 window_box_text_cols).
1254 (scroll_left, scroll_right): Fix bug related to scrolling too far
1255 by default when display margins are present (implicitly fixed by
1256 the fix to window_box_text_cols).
1257 (struct saved_window): Rename members left to left_col, top to
1258 top_line, width to total_cols, height to total_lines, orig_top to
1259 orig_top_line, orig_height to orig_total_lines. All uses changed.
1260 New members left_margin_cols, right_margin_cols,
1261 left_fringe_width, right_fringe_width, fringes_outside_margins,
1262 scroll_bar_width, and vertical_scroll_bar_type for saving
1263 per-window display elements.
1264 (Fset_window_configuration): Restore display margins, fringes,
1265 and scroll bar settings. This fixes a bug which caused display
1266 margins to be discarded when saving and restoring a window
1267 configuration.
1268 (save_window_save): Save display margins, fringes, and scroll bar
1269 settings. This fixes a bug which caused display margins to be
1270 discarded when saving and restoring a window configuration.
1271 (Fset_window_margins): Do nothing if display margins are not
1272 really changed. Otherwise, call adjust_window_margins to ensure
1273 the text area doesn't get too narrow. This fixes a bug which
1274 could cause emacs to trap if setting display margins wider than
1275 the width of the window.
1276 (Fset_window_fringes): New defun to allow user to specifically set
1277 this window's fringe widths and position vs. display margins.
1278 (Fwindow_fringes): New defun to return window's actual fringe
1279 settings.
1280 (Fset_window_scroll_bars): New defun to allow user to specifically
1281 set this window's scroll bar width and position.
1282 (Fwindow_scroll_bars): New defun to return window's actual scroll
1283 bar settings.
1284 (compare_window_configurations): Also compare display margins,
1285 fringes, and scroll bar settings.
1286 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
1287
1288 * xdisp.c: Make (many) trivial substitutions for renamed and
1289 new macros in dispextern.h, frame.h and window.h.
1290 (window_box_width): Adapt to per-window fringes and scroll bars,
1291 and new fringe vs. display margin position. Note that returned
1292 value is no longer guaranteed to be a whole multiple of the frame
1293 column width, since per-window fringes may now be any width.
1294 (window_box_left_offset): New function like window_box_left, but
1295 value is relative to left border of window (rather than frame).
1296 (window_box_right_offset): New function like window_box_right,
1297 but value is relative to left border of window.
1298 (window_box_left): Adapt to per-window fringes and scroll bars,
1299 and new fringe vs. display margin position. Simplify by using
1300 WINDOW_LEFT_EDGE_X and window_box_left_offset.
1301 (window_box): Allow null args for unnecessary return values;
1302 change/simplify relevant callers.
1303 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
1304 and new fringe vs. display margin position.
1305 Use window_box_left_offset and window_box_right_offset
0416870b 1306 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
1307 scroll bars, and new fringe vs. display margin position.
1308 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
1309 (draw_fringe_bitmap): Rework to handle per-window fringes and new
1310 fringe vs. display margin position.
1311 (hscroll_window_tree): Use window_box_width instead of window_box.
1312 (redisplay_window): Adapt to per-window scroll bars.
1313 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
1314 bars, and new fringe vs. display margin position.
1315 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
0416870b
KS
1316 (x_clear_end_of_line): Adapt to per-window fringes and scroll
1317 bars, and new fringe vs. display margin position. Fix bug which
1318 increased total width of full_width rows by width of scroll bars
1319 although window's total width already includes that.
1320 (x_fix_overlapping_area): Simplify using window_box_left_offset.
1321 (expose_area): Simplify using window_box_left_offset.
1322 (x_draw_vertical_border): Handle per-window scroll bar settings,
1323 mixing windows with left, right and no scroll bars.
1324
1325 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
1326 where it's used in x_list_fonts (for clarity).
1327 (frame_update_line_height): Remove unused function; functionality
1328 is now done directly when setting the default font in x_set_font.
1329
1330 * xfns.c: Make (many) trivial substitutions for renamed and
1331 new macros in dispextern.h, frame.h and window.h.
1332
1333 * xmenu.c: Make (some) trivial substitutions for renamed and
1334 new macros in dispextern.h, frame.h and window.h.
1335
1336 * xterm.h (struct x_output): Move members left_pos, top_pos,
1337 border_width, pixel_height, pixel_width, line_height,
1338 internal_border_width, vertical_scroll_bar_extra,
1339 left_fringe_width, right_fringe_width, fringe_cols,
1340 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
1341 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
1342 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
1343 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
1344 (PIXEL_WIDTH, PIXEL_HEIGHT)
1345 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
1346 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
1347 frame.h and renamed [see frame.h changes].
1348 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
1349 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
1350 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
1351 and renamed [see frame.h changes].
9018a88e 1352
0416870b
KS
1353 * xterm.c: Make (several) trivial substitutions for renamed and
1354 new macros in dispextern.h, frame.h and window.h.
1355 (x_draw_glyph_string_box): Adapt to per-window fringes and
1356 scroll-bars.
1357 (scroll_run): Adapt to new fringe position.
1358 (glyph_rect): Use window coordinates returned from
1359 window_from_coordinates rather than frame_to_window_pixel_xy.
1360 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
1361 scroll-bars.
1362 (handle_one_xevent): Simplify a USE_GTK conditional.
1363 (x_clip_to_row): Remove superfluous whole_line_p arg and code
1364 (fringes are now inside margins, i.e. always in the clipping area).
1365 All callers changed.
1366 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
1367 directly, then call compute_fringe_widths. Don't call
1368 frame_update_line_height.
1369
1370 * w32term.h (struct w32_output): Move members left_pos, top_pos,
1371 border_width, pixel_height, pixel_width, line_height,
1372 internal_border_width, vertical_scroll_bar_extra,
1373 left_fringe_width, right_fringe_width, fringe_cols,
1374 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
1375 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
1376 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
1377 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
1378 (PIXEL_WIDTH, PIXEL_HEIGHT)
1379 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
1380 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
1381 frame.h and renamed [see frame.h changes].
1382 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
1383 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
1384 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
1385 and renamed [see frame.h changes].
9018a88e 1386
0416870b
KS
1387 * w32term.c: Make (several) trivial substitutions for renamed and
1388 new macros in dispextern.h, frame.h and window.h.
1389 (x_draw_glyph_string_box): Adapt to per-window fringes and
1390 scroll-bars.
1391 (glyph_rect): Use window coordinates returned from
1392 window_from_coordinates rather than frame_to_window_pixel_xy.
1393 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
1394 scroll-bars.
1395 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
1396 (fringes are now inside margins, i.e. always in the clipping area).
1397 All callers changed.
1398 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
1399 directly, then call compute_fringe_widths. Don't call
1400 frame_update_line_height.
1401
1402 * w32console.c: Make (few) trivial substitutions for renamed and
1403 new macros in dispextern.h, frame.h and window.h.
1404
1405 * w32fns.c: Make (many) trivial substitutions for renamed and
1406 new macros in dispextern.h, frame.h and window.h.
1407
1408 * w32menu.c: Make (few) trivial substitutions for renamed and
1409 new macros in dispextern.h, frame.h and window.h.
1410
1411 * macterm.h (struct mac_output): Move members left_pos, top_pos,
1412 border_width, pixel_height, pixel_width, line_height,
1413 internal_border_width, vertical_scroll_bar_extra,
1414 left_fringe_width, right_fringe_width, fringe_cols,
1415 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
1416 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
1417 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
1418 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
1419 (PIXEL_WIDTH, PIXEL_HEIGHT)
1420 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
1421 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
1422 frame.h and renamed [see frame.h changes].
1423 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
1424 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
1425 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
1426 and renamed [see frame.h changes].
9018a88e 1427
0416870b
KS
1428 * macterm.c: Make (several) trivial substitutions for renamed and
1429 new macros in dispextern.h, frame.h and window.h.
1430 (x_draw_glyph_string_box): Adapt to per-window fringes and
1431 scroll-bars.
1432 (glyph_rect): Use window coordinates returned from
1433 window_from_coordinates rather than frame_to_window_pixel_xy.
1434 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
1435 scroll-bars.
1436 (x_clip_to_row): Remove superfluous whole_line_p arg and code
1437 (fringes are now inside margins, i.e. always in the clipping area).
1438 All callers changed.
1439 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
1440 directly, then call compute_fringe_widths. Don't call
1441 frame_update_line_height.
1442
1443 * macfns.c: Make (several) trivial substitutions for renamed and
1444 new macros in dispextern.h, frame.h and window.h.
9018a88e 1445 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
1446
1447 * macmenu.c: Make (few) trivial substitutions for renamed and
1448 new macros in dispextern.h, frame.h and window.h.
1449
1450 * msdos.h (struct x_output): Remove members left_pos, top_pos,
1451 and line_height, and use corresponding new members in struct
1452 frame. All uses changed.
1453 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
1454 superseeded by corresponding macros in frame.h.
1455
1456 * msdos.c: Make (several) trivial substitutions for renamed and
1457 new macros in dispextern.h, frame.h and window.h.
1458 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 1459 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
1460 (internal_terminal_init): No need to initialize line_height here;
1461 it now defaults to 1.
1462
9018a88e
SM
14632003-05-24 Stefan Monnier <monnier@cs.yale.edu>
1464
1465 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
1466 dropping `down' events.
1467
016bd3c0
AS
14682003-05-24 Andreas Schwab <schwab@suse.de>
1469
1470 * coding.c (find_safe_codings): Fix last change.
1471
4dacadcc
TTN
14722003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
1473
1474 * xfns.c (x_window): Fix typo from 2003-05-21 change.
1475
319830ce
SM
14762003-05-23 Stefan Monnier <monnier@cs.yale.edu>
1477
9018a88e
SM
1478 * xdisp.c (display_mode_element): Increase max depth.
1479 Simplify the error handling code. Use a different error string
1480 for the case where we hit the depth limit.
1481
319830ce
SM
1482 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
1483
1484 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
1485
14862003-05-21 Stefan Monnier <monnier@cs.yale.edu>
1487
1488 * intervals.c (get_local_map): Don't get char-property of previous
1489 point any more: get_pos_property already does it and better.
1490
c67de8ba
DL
14912003-05-21 Dave Love <fx@gnu.org>
1492
1493 [Merged from unicode branch.]
1494
1495 * xfns.c (x_window, x_window): Use use_xim.
1496
1497 * xterm.c (use_xim): Initialize.
1498 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
1499 (x_term_init): Maybe set use_xim.
1500
1501 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
1502
edd3ff1d
JR
15032003-05-21 Jason Rumney <jasonr@gnu.org>
1504
1505 * unexw32.c (_start): Remove _fmode initialization.
1506
1507 * emacs.c (main) [WINDOWSNT]: Move it here.
1508
463f55ee
DL
15092003-05-20 Dave Love <fx@gnu.org>
1510
1511 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
1512
af253914
RS
15132003-05-19 Richard M. Stallman <rms@gnu.org>
1514
1515 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
1516 as value for QCfont attribute.
1517 (realize_default_face): lface should already exist; crash if not.
1518 Specify 0 for FORCE_P when calling set_lface_from_font_name.
1519
1520 * frame.c (Fignore_event): Doc fix.
1521
1d211019
KH
15222003-05-19 Kenichi Handa <handa@m17n.org>
1523
1524 * coding.c (decode_coding_string): Handle post-read-conversion
1525 even if the coding doesn't require decoding.
1526
4dd68254
RS
15272003-05-18 Richard M. Stallman <rms@gnu.org>
1528
1529 * callproc.c (Fcall_process_region): Doc fix.
1530
14d87dc9
SM
15312003-05-17 Stefan Monnier <monnier@cs.yale.edu>
1532
deca5d96
SM
1533 * lread.c (Fload): Print a message if package is obsolete.
1534
14d87dc9
SM
1535 * window.c (Fselect_window): Add optional `norecord' arg.
1536 (select_window_1): Fold into Fselect_window.
1537 (select_window_norecord): New function.
1538 (temp_output_buffer_show): Use it. Preserve current buffer.
1539
1540 * window.h (Fselect_window): Update declaration.
1541
1542 * window.c (delete_window, Fother_window, Fset_window_configuration):
1543 * minibuf.c (read_minibuf):
1544 * macterm.c (x_new_focus_frame):
1545 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
1546 * callint.c (Fcall_interactively):
1547 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
1548
1549 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
1550
78f52183
DK
15512003-05-17 David Kastrup <dak@gnu.org>
1552
1553 * process.c (read_process_output): Back out change from 2003-03-09.
1554
14d87dc9
SM
15552003-05-17 Stefan Monnier <monnier@cs.yale.edu>
1556
1557 * editfns.c (get_pos_property): Don't assume that `object' = nil.
1558
1559 * textprop.c (text_property_stickiness): New arg `buffer'.
1560
1561 * intervals.h (text_property_stickiness): New arg `buffer'.
1562 (get_pos_property): Declare.
1563
1564 * intervals.c (get_local_map): Use get_pos_property, to obey
1565 stickiness and empty overlays.
1566 (create_root_interval, graft_intervals_into_buffer): Use BEG.
1567 (merge_properties, intervals_equal, merge_properties_sticky):
1568 Use XCAR, XCDR.
1569 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
1570
1fd1cc2f
RS
15712003-05-17 Richard M. Stallman <rms@gnu.org>
1572
4f9f637a
RS
1573 * minibuf.c (read_minibuf): If buffer is empty, record the default
1574 in the history.
1575 (Fminibuffer_complete_word): When deleting the overlap, take account
1576 of its real position.
1577
1578 * fns.c (map_char_table): Fix previous change.
1579
1fd1cc2f
RS
1580 * syntax.c (find_defun_start):
1581 When open_paren_in_column_0_is_defun_start,
1582 return beginning of buffer.
1583
1584 * lisp.h (map_char_table): Declare added arg.
1585
1586 * fns.c (map_char_table): New arg TABLE gets the master table.
1587 All calls changed.
1588 Process default and inheritance, resorting to Faref if necessary.
1589
1590 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
1591 (Faccessible_keymaps): Pass new arg to map_char_table.
1592
1593 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
1594
1595 * casetab.c (set_case_table): Pass new arg to map_char_table.
1596
1597 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
1598
1599 * lisp.h (specbinding_func): New typedef.
1600 (struct specbinding): Use specbinding_func, to put the `volatile'
1601 in the right place.
1602
1603 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
1604 to avoid GCC warning.
14d87dc9 1605
b4bd27c5
RS
16062003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org> (tiny change)
1607
14d87dc9 1608 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 1609
35fb885d
SM
16102003-05-15 Stefan Monnier <monnier@cs.yale.edu>
1611
1612 * keyboard.c (apply_modifiers): Don't fill the other cache.
1613
9a274fbd
SM
16142003-05-14 Stefan Monnier <monnier@cs.yale.edu>
1615
c55b5fad
SM
1616 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
1617
9a274fbd
SM
1618 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
1619 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
1620 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
1621 (Fset_window_configuration, Fcurrent_window_configuration)
1622 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
1623 (Fpos_visible_in_window_p, mark_window_cursors_off)
1624 (window_internal_height, window_internal_width, Frecenter)
1625 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
1626 (replace_buffer_in_all_windows, init_window_once, init_window)
1627 (syms_of_window, keys_of_window): Move from lisp.h.
1628 * lisp.h: Move window.c declarations to window.h.
1629
1630 * bytecode.c: Include window.h.
1631 * emacs.c: Include window.h.
1632
14d87dc9 1633 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
1634 (keyremap): Add `parent' field.
1635 (keyremap_step): Use it. Remove `parent' argument.
1636 (read_key_sequence): Setup and use the new `parent' field.
1637
fd93e331
SM
16382003-05-11 Stefan Monnier <monnier@cs.yale.edu>
1639
1640 * keyboard.c (adjust_point_for_property): Ensure termination.
1641
1c4001a1
SM
16422003-05-10 Stefan Monnier <monnier@cs.yale.edu>
1643
1644 * keyboard.c (follow_key): Remove dead variable `did_meta'.
1645 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
1646 duplicated handling of function-key-map and key-translation-map
1647 in read_key_sequence.
1648 (read_key_sequence): Use them.
1649
1650 * keyboard.c (adjust_point_for_property): Try harder to move point
1651 to the non-sticky end of an invisible property.
1652
1653 * xdisp.c (single_display_prop_intangible_p): Make `space' display
1654 property intangible as well.
1655
780379b1
AS
16562003-05-10 Andreas Schwab <schwab@suse.de>
1657
1658 * xmenu.c (single_menu_item): Change last parameter to void* to
1659 avoid warning.
1660
ca2de342
RS
16612003-05-09 Richard M. Stallman <rms@gnu.org>
1662
1663 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
1664 Bind Qinhibit_modification_hooks to t so there will be no GC.
1665 Rename local `tem' to `save_deactivate_mark'.
1666
1667 * eval.c (specpdl_ptr): Declare volatile.
1668 (unbind_to): Copy the whole binding and decrement specpdl_ptr
1669 before doing the work of unbinding it.
1670
1671 * lisp.h (struct specbinding): Declare elements volatile.
1672 (specpdl_ptr): Declare volatile.
1673
1674 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
1675
1676 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
1677 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
1678
347003be
DL
16792003-05-08 Dave Love <fx@gnu.org>
1680
1681 * coding.c (Vlast_coding_system_used): Doc fix.
1682
5adcec23
JR
16832003-05-07 Jason Rumney <jasonr@gnu.org>
1684
1685 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
1686 when system does not support them.
1687
5fe3b8a4
SM
16882003-05-05 Stefan Monnier <monnier@cs.yale.edu>
1689
1690 * fileio.c (Qwrite_region_annotate_functions): New var.
1691 (build_annotations): Use it to process the global part of the hook.
1692 (syms_of_fileio): Init and staticpro it.
1693
1694 * keyboard.c (safe_run_hooks_error): Display a message instead of
1695 silently ignoring the error.
1696
16972003-05-03 Stefan Monnier <monnier@cs.yale.edu>
1698
1699 * keyboard.c (input_available_signal): Mark static.
1700 (menu_bar_items): Use map_keymap.
1701 (menu_bar_one_keymap): Remove.
1702 (menu_bar_item): Adjust arglist (for use in map_keymap).
1703 Properly hide a second binding when not both are keymaps.
1704
1705 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
1706 (single_keymap_panes): Use it and map_keymap.
1707 (single_menu_item): Use skp as well.
1708
1709 * keymap.h (map_keymap_function_t): New type.
1710 (map_keymap): Declare.
1711
1712 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
1713 (map_keymap_call, Fmap_keymap): New functions.
1714 (syms_of_keymap): Defsubr map-keymap.
1715
4b1b4443
JD
17162003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1717
1718 * gtkutil.c (create_dialog, make_widget_for_menu_item)
1719 (make_menu_item, create_menus, xg_update_menu_item): Don't call
1720 ..._with_mnemonic functions for menu items.
1721
1f816871
KH
17222003-05-01 Kenichi Handa <handa@m17n.org>
1723
1724 * coding.c (coding_system_accept_latin_extra_p): Delete this
1725 function.
1726 (find_safe_codings): Pay attention to
1727 the property tranlsation-table-for-encode of each codings.
1728 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
1729
5ed6ba5b
SM
17302003-05-01 Stefan Monnier <monnier@cs.yale.edu>
1731
1732 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
1733
32c06229
SM
17342003-04-30 Stefan Monnier <monnier@cs.yale.edu>
1735
1736 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
1737
1738 * lisp.h (CHECK): Wrap args in parenthesis.
1739 (specbind): Fix doc: symbol = Qnil is not supported any more.
1740
1741 * bytecode.c (Fbyte_code) <unwind-protect>:
1742 Use Fprogn rather than 0 and Qnil.
1743
1744 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
1745 `double', and `triple' modifiers as well.
1746
ed3c3314
RS
17472003-04-30 Richard M. Stallman <rms@gnu.org>
1748
1749 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
1750
1751 * alloc.c (abort_on_gc): New variable.
1752 (Fgarbage_collect): Abort if abort_on_gc is set.
1753
1754 * lisp.h (abort_on_gc): Add decl.
1755
1756 * eval.c (Fsignal): Clear abort_on_gc.
1757
1758 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 1759 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
1760
1761 * xdisp.c (move_it_vertically_backward): Do the final big else
1762 even if nlines is 0.
1763
1764 * xdisp.c (redisplay_internal): Finish the per-frame loop
1765 even if redisplay is suspended by input.
1766
0b325c12
AC
17672003-04-24 Andrew Choi <akochoi@shaw.ca>
1768
1769 * macterm.c (x_list_fonts): Return all fonts that match if
1770 maxnames = -1.
1771
4e837cd0
KH
17722003-04-25 Kenichi Handa <handa@m17n.org>
1773
1774 * syntax.c (skip_chars): Fix previous change.
1775
9af7511a
KH
17762003-04-24 Kenichi Handa <handa@m17n.org>
1777
1778 * syntax.c (skip_chars): Make the code faster by using the common
1779 technique of *p, *stop, and *endp.
1780
e3b2c21f
JD
17812003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1782
1783 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 1784 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
1785 being updated.
1786
32c06229
SM
17872003-04-19 Stefan Monnier <monnier@cs.yale.edu>
1788
1789 * eval.c (Fapply): Undo last change and add a comment about why.
1790
c6464167
MB
17912003-04-18 Miles Bader <miles@gnu.org>
1792
1793 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
1794 pickier PARSE_MULTIBYTE_SEQ.
1795
e509f168
SM
17962003-04-17 Stefan Monnier <monnier@cs.yale.edu>
1797
1798 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
1799 Use XCDR, XCAR, CONSP.
1800 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
1801 (Fapply): Remove unnecessary GCPRO.
1802
1803 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
1804
1805 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
1806
1807 * buffer.h: Don't hardcode BEG==1.
1808
1809 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
1810
5ceea398
RS
18112003-04-16 Richard M. Stallman <rms@gnu.org>
1812
1813 * xdisp.c (try_window, try_window_reusing_current_matrix):
1814 When at end of window, set window_end_pos to Z-ZV.
1815
1816 * buffer.c (Foverlay_recenter): Doc fix.
1817
e509f168
SM
18182003-04-14 Stefan Monnier <monnier@cs.yale.edu>
1819
1820 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
1821
d243e605
AC
18222003-04-14 Andrew Choi <akochoi@shaw.ca>
1823
1824 * macterm.c (mac_check_for_quit_char): Don't check more often than
1825 once a second.
1826
6901b111
SM
18272003-04-11 Stefan Monnier <monnier@cs.yale.edu>
1828
1829 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
1830 specially, so that they can't hide an implicit switch-frame event.
1831 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
1832 (head_table): Use switch-frame as event_kind for select-window.
1833 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
1834
1835 * editfns.c (Fformat): Lisp_Object/int mixup.
1836 (format2): Remove unused var numargs.
1837
e301806f 18382003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 1839
6901b111 1840 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
1841 (Qafter_insert_file_set_coding): New variable.
1842 (syms_of_fileio): Initialize and staticpro it. Delete declaration
1843 for after-insert-file-adjust-coding-function.
1844 (Finsert_file_contents): Call Qafter_insert_file_set_coding
1845 instead of Vafter_insert_file_adjust_coding_function.
1846
38914424
KH
18472003-04-11 Kenichi Handa <handa@m17n.org>
1848
1849 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
1850
1851 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
1852 string. Callers changed.
1853
18542003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 1855
6901b111 1856 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 1857 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
1858 (Finsert_file_contents):
1859 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
1860 decode-format.
1861
f979dc05
JD
18622003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1863
1864 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
1865 get GtkAdjustment as widget now is a GtkRange.
1866
1867 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
1868 GtkRange to avoid memory leak.
1869
f8c6b4c2 18702003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 1871
50ebc53d
KH
1872 * xfaces.c (Vface_font_rescale_alist): New variable.
1873 (struct font_name): New member rescale_ratio.
1874 (font_rescale_ratio): New function.
6901b111 1875 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
1876 (better_font_p): On comparing point sized, pay attention to
1877 recale_ratio member of fonts.
1878 (build_scalable_font_name): Reflect font->rescale_ratio in the
1879 font name.
6901b111 1880 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 1881
cb98871c
KH
1882 * lread.c (read1): Before calling index, check if the 2nd
1883 arguemnt is in ASCII range.
1884
4773b8ca
RS
18852003-04-08 Richard M. Stallman <rms@gnu.org>
1886
b0ada147
RS
1887 * fileio.c (Ffile_symlink_p): Doc fix.
1888
1889 * editfns.c (Fformat): Translate positions of text properties
1890 in the format string to apply them to the result.
1891
4773b8ca
RS
1892 * fileio.c (Finsert_file_contents): Doc fix.
1893 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
1894
18952003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 1896
4773b8ca
RS
1897 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
1898
e8f25745 18992003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 1900
e8f25745
ST
1901 * mac.c (init_mac_osx_environment): Switch libexec and bin so
1902 that self-contained application finds libexec files.
1903
f8c6b4c2 19042003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 1905
6901b111
SM
1906 * coding.c (code_convert_region_unwind):
1907 Set Vlast_coding_system_used to the argument.
2310d84c
KH
1908 (code_convert_region): If post-read-conversion function changed
1909 the value of last-coding-sytem, keep the new value in
1910 coding->symbol so that it won't be overridden.
1911 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
1912 (coding_system_accept_latin_extra_p): New function.
1913 (find_safe_codings): Pay attention to characters registered in
1914 latin-extra-code-table.
2310d84c 1915
39c9a034
TTN
19162003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
1917
1918 * Makefile.in (md5.o): Add missing dependency info.
1919
eb67c5d6
RS
19202003-04-06 Richard M. Stallman <rms@gnu.org>
1921
1922 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
1923
1924 * marker.c (verify_bytepos): New function.
1925
1926 * intervals.c (set_intervals_multibyte_1): When becoming
1927 multibyte, adjust right and left child sizes to a whole set of
1928 characters. If an interval gets zero total-length, delete it.
1929 If an interval consists of just its children, delete one of them.
1930
1931 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
1932 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 1933
eb67c5d6
RS
1934 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
1935 All calls deleted.
1936 (lisp_malloc): Do the work here directly.
1937
b1f81fc5
JB
19382003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
1939
1940 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
1941 char tables.
1942
19432003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
1944
1945 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
1946 destructively change "%S" to "%s".
1947
774666fb
MB
19482003-04-03 Miles Bader <miles@gnu.org>
1949
1950 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
1951 always set.
1952
19c37f01
DL
19532003-04-01 Dave Love <fx@gnu.org>
1954
1955 * xfns.c (xpm_lookup_color): Grok "opaque".
1956
2f4b24c3
AC
19572003-03-31 Andrew Choi <akochoi@shaw.ca>
1958
1959 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
1960 parent window ID.
1961
1962 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
1963
1964 * macterm.h (struct mac_output): Define x_pixels_diff and
1965 y_pixels_diff.
b1f81fc5 1966
9443fcf6
JB
19672003-03-31 Juanma Barranquero <lektu@terra.es>
1968
1969 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
1970 blockinput.h and files included from it.
1971
e072891b
KS
19722003-03-31 Kim F. Storm <storm@cua.dk>
1973
1974 The following changes consolidates the common code related to
1975 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
1976 files into frame.c.
9443fcf6 1977
e072891b
KS
1978 * frame.c: Include blockinput.h.
1979 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
1980 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
1981 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
1982 related vars here.
1983 (struct frame_parm_table, frame_parms): New table for describing
1984 frame parameters and their associated Q-variable.
1985 The order of the parameters corresponds to the sequence of the
1986 frame_parm_handlers table in redisplay_interface.
1987 (x_fullscreen_move, x_set_frame_parameters)
1988 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
1989 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
1990 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
1991 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
1992 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
1993 Generic functions for processing of frame parameters.
1994 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
1995 (display_x_get_resource, x_get_resource_string): Functions for
1996 generic access to X resources.
1997 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1998 (x_default_parameter, Fx_parse_geometry): Functions for generic
1999 access to frame parameters.
6901b111
SM
2000 (x_figure_window_size): Generic calculation of frame size.
2001 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
2002 (syms_of_frame): Intern and staticpro frame parameter variables.
2003 Defvar_lisp Vx_resource_class and Vx_resource_name here.
2004 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 2005
e072891b
KS
2006 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
2007 parameter related vars defined in frame.c.
2008 (EMACS_CLASS): Define here.
2009 (enum FULLSCREEN_*): Define here.
2010 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
2011 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
2012 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
2013 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
2014 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
2015 (x_set_visibility, x_set_autoraise, x_set_autolower)
2016 (x_set_unsplittable, x_set_vertical_scroll_bars)
2017 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
2018 (x_figure_window_size): Add prototypes.
2019
2020 * dispextern.h (frame_parm_handler): New typedef.
2021 (struct redisplay_interface): New member frame_parm_handlers.
2022 (enum resource_types): Move declaration here.
2023 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2024 (x_default_parameter): Add prototypes.
2025
2026 * window.c: Remove extern decl for frame parameter vars.
2027 (change_window_heights): New generic function;
2028 replaces x_change_window_heights. All users changed.
2029
2030 * window.h (change_window_heights): Add prototype.
2031
2032 * xfaces.c: Remove extern decl for frame parameter vars.
2033
2034 * xterm.h (EMACS_CLASS): Remove. Use generic define.
2035 (struct w32_display_info): Fix type of xrdb member.
2036 (enum FULLSCREEN_*): Remove.
2037 Remove prototypes for generic functions (in frame.h).
2038
2039 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
2040 parameters now defined in frame.h and frame.c.
2041 (Vx_resource_name): Remove. Use generic var.
2042 (enum x_frame_parms): Remove (bogus, unused enum).
2043 (check_x_display_info): Make non-static (for frame.c).
2044 (struct x_frame_parm_table, x_frame_parms): Remove.
2045 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
2046 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
2047 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
2048 (x_change_window_heights, x_set_autoraise, x_set_autolower)
2049 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
2050 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
2051 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
2052 Remove. Use generic functions instead.
2053 (enum resource_types): Remove.
2054 (x_set_scroll_bar_default_width): New global function (for frame.c).
2055 (Fx_create_frame): Depend on x_figure_window_size to add space for
2056 toolbar and setup size_hint_flags.
2057 (x_frame_parm_handlers): New table for redisplay_interface.
2058 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 2059
e072891b
KS
2060 * xterm.c: Remove unnecessary extern declarations.
2061 (x_fullscreen_adjust): Remove. Use generic instead.
2062 (x_redisplay_interface): Add x_frame_parm_handlers member.
2063
2064 * w32gui.h (XrmDatabase): New (dummy) typedef.
2065
2066 * w32term.h (EMACS_CLASS): Remove. Use generic define.
2067 (struct w32_display_info): Fix type of xrdb member.
2068 (enum FULLSCREEN_*): Remove.
2069 (x_fullscreen_adjust): Remove prototype.
2070
2071 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
2072 parameters now defined in frame.h and frame.c.
2073 (Vx_resource_name): Remove. Use generic var.
2074 (enum x_frame_parms): Remove (bogus, unused enum).
2075 (check_x_display_info): Make non-static (for frame.c).
2076 (struct x_frame_parm_table, x_frame_parms): Remove.
2077 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
2078 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
2079 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
2080 (x_change_window_heights, x_set_autoraise, x_set_autolower)
2081 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
2082 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
2083 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
2084 Remove. Use generic functions instead.
2085 (enum resource_types): Remove.
2086 (x_set_scroll_bar_default_width): New global function (for frame.c).
2087 (Fx_create_frame): Depend on x_figure_window_size to add space for
2088 toolbar and setup size_hint_flags.
2089 (w32_frame_parm_handlers): New table for redisplay_interface.
2090 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 2091
e072891b
KS
2092 * w32term.c: Remove unnecessary extern declarations.
2093 (x_fullscreen_adjust): Remove. Use generic instead.
2094 (x_redisplay_interface): Add w32_frame_parm_handlers member.
2095
2096 * w32reg.c (x_get_string_resource): Use XrmDatabase.
2097
2098 * macgui.h (XrmDatabase): New (dummy) typedef.
2099
2100 * macterm.h (EMACS_CLASS): Remove.
2101 (struct mac_display_info): Add xrdb member.
2102 (struct mac_output): Add want_fullscreen member.
2103
2104 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
2105 parameters now defined in frame.h and frame.c.
2106 (Vx_resource_name): Remove. Use generic var.
2107 (check_x_display_info): Make non-static (for frame.c).
2108 (struct x_frame_parm_table, x_frame_parms): Remove.
2109 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
2110 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
2111 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
2112 (x_change_window_heights, x_set_autoraise, x_set_autolower)
2113 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
2114 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
2115 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
2116 Remove. Use generic functions instead.
2117 (enum resource_types): Remove.
2118 (x_set_scroll_bar_default_width): New global function (for frame.c).
2119 (mac_frame_parm_handlers): New table for redisplay_interface.
2120 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 2121
e072891b
KS
2122 * macterm.c: Remove unnecessary extern declarations.
2123 (x_redisplay_interface): Add mac_frame_parm_handlers member.
2124
3e6a560b
KS
2125 * Makefile.in (frame.o): Add dependency on blockinput.h and files
2126 included from it (atimer.h and systime.h).
2127
7b7b454e
AS
21282003-03-30 Andreas Schwab <schwab@suse.de>
2129
2130 * xdisp.c (x_insert_glyphs): Fix swapped width and height
2131 parameters for shift_glyphs_for_insert.
2132
2133 * macterm.c (x_redisplay_interface): Add missing entry for
2134 draw_vertical_window_border.
2135
beb402de
KG
21362003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
2137
2138 * fileio.c (Fexpand_file_name): In the no-handler case, after
2139 expanding, look again for a handler and invoke it. This is needed
2140 for filenames like "/foo/../user@host:/bar/../baz" -- the first
2141 expansion produces "/user@host:/bar/../baz" which needs to be
2142 expanded again for the finame result "/user@host:/baz".
2143
b676f356
JD
21442003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2145
2146 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
2147 of area to be redrawn for better performance.
2148
3c671a56
SM
21492003-03-28 Stefan Monnier <monnier@cs.yale.edu>
2150
2151 * xterm.c (take_vertical_position_into_account): Remove.
2152 (xt_action_hook): Call set_vertical_scroll_bar if needed.
2153 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
2154 (xm_scroll_callback, x_create_toolkit_scroll_bar)
2155 (x_set_toolkit_scroll_bar_thumb): Simplify.
2156 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
2157 (XTread_socket): Remove unused var.
2158 (x_make_frame_invisible): Replace goto with else.
2159
2160 * xdisp.c (set_vertical_scroll_bar): New fun.
2161 (redisplay_window): Use it.
2162
84f2e615
RS
21632003-03-26 Richard M. Stallman <rms@gnu.org>
2164
2165 * xdisp.c (update_tool_bar): Recompute tool bar if
2166 update_mode_lines is set. Set w->update_mode_line
2167 only if the tool bar contents actually change.
2168 (update_menu_bar): Undo previous change.
2169
70b6104c
JD
21702003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2171
5fd6f727
JD
2172 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
2173 (xg_frame_set_char_size): Calculate scroll bar width before frame
2174 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
2175 (xg_separator_p): Check for all documented separator types.
2176 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
2177 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
2178
70b6104c
JD
2179 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
2180 so tool bar gets updated.
2181
d9b36d19
SM
21822003-03-26 Stefan Monnier <monnier@cs.yale.edu>
2183
2184 * data.c (store_symval_forwarding): Re-instate part of the code
2185 that was deleted with too much enthusiasm.
2186
21872003-03-25 Stefan Monnier <monnier@cs.yale.edu>
2188
2189 * data.c (store_symval_forwarding): Delete special read-only
2190 hack for type == -1, since we now use ->constant instead.
2191 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
2192
2193 * buffer.c (overlays_in): Declare static.
2194 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
2195 `constant' field rather than the variable's `type' field.
2196
365fa1b3
AC
21972003-03-24 Andrew Choi <akochoi@shaw.ca>
2198
2199 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
2200
2201 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
2202
2203 * fns.c [MAC_OSX]: Do not redefine vector.
2204
2205 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
2206
2207 * macgui.h: Remove definition of No_Cursor.
2208
d9b36d19 2209 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
2210
2211 * xdisp.c: Define No_Cursor.
2212 (x_write_glyphs, notice_overwritten_cursor)
2213 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
2214 (note_mouse_highlight): Remove Mac-specific code.
2215 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 2216
c0bcce6f
JPW
22172003-03-24 John Paul Wallington <jpw@gnu.org>
2218
2219 * xdisp.c (redisplay_window): If mini window's buffer is not
2220 empty, then redisplay it like other windows.
2221
a526b96c
KS
22222003-03-23 Kim F. Storm <storm@cua.dk>
2223
2224 * w32term.c (w32_draw_window_cursor): Fix last change.
2225
37ab321e
KH
22262003-03-23 Kenichi Handa <handa@m17n.org>
2227
a526b96c
KS
2228 * alloc.c (make_string_from_bytes, make_specified_string):
2229 Add `const' for the arg CONTENTS.
37ab321e
KH
2230
2231 * lisp.h (make_string_from_bytes, make_specified_string):
2232 Prototypes adjusted.
2233
7863d625
JD
22342003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2235
a526b96c 2236 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 2237
7863d625
JD
2238 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
2239 (XG_SB_RANGE): New define.
2240
2241 * gtkutil.c (xg_fixed_handle_expose): New function.
2242 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
2243 expose events.
2244 (xg_update_scrollbar_pos): Take two more arguments, left and width
2245 of scroll bar including borders.
2246 Clear left and right part outside scroll bar separately as some
2247 themes have bars that are not an even number of pixels.
d9b36d19 2248 Don't set reallocate_redraws, don't call
7863d625
JD
2249 gdk_window_process_all_updates.
2250 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
2251 so no need to change it. Calculate size and value with XG_SB_RANGE.
2252
d9b36d19
SM
2253 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
2254 Pass left and width of scroll bar including borders to
7863d625
JD
2255 xg_update_scrollbar_pos.
2256
af0ad939
TTN
22572003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
2258
2259 * Makefile.in: Make sure space precedes end-of-line backslashes.
2260
b22139fd
KS
22612003-03-22 Kim F. Storm <storm@cua.dk>
2262
2263 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
2264 Add generic versions here. Remove system specific versions
2265 defined elsewhere.
2266
2267 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
2268 Add prototypes.
2269
6e6410cf
KS
2270 * xterm.h (STORE_NATIVE_RECT): New macro.
2271
5c9cc435
KS
22722003-03-21 Kim F. Storm <storm@cua.dk>
2273
00c64fab
SM
2274 * xdisp.c (get_glyph_string_clip_rect):
2275 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
2276
2277 * dispextern.h (struct redisplay_interface): Add active_p
2278 argument to draw_window_cursor member. All uses changed.
2279
acd37560
KS
22802003-03-21 Kim F. Storm <storm@cua.dk>
2281
2282 The following changes consolidate code related to writing and
2283 inserting glyphs, exposing frame, the tool bar, the mouse face,
2284 the output cursor, and help echo from xterm.c, w32term.c and
2285 macterm.c into xdisp.c. It also generalizes the use of the
2286 window_part enum instead of using numeric values throughout.
af0ad939 2287
acd37560
KS
2288 * xdisp.c: Consolidate gui-independent code here.
2289 Include keymap.h.
2290 (Qhelp_echo): Import.
2291 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
2292 (help_echo_string, help_echo_window, help_echo_object)
2293 (previous_help_echo_string, help_echo_pos): Declare here.
2294 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
2295 (estimate_mode_line_height): Define here. Handle windowing
2296 systems directly (without using estimate_mode_line_height_hook).
2297 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
2298 (update_window_cursor, update_cursor_in_window_tree)
2299 (fast_find_position, fast_find_string_pos)
2300 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
2301 (expose_area, expose_line, expose_overlaps, expose_window)
2302 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
2303 declared static as they are only used locally in xdisp.c.
2304 (draw_glyphs): Rename from x_draw_glyphs and make static.
2305 (tool_bar_item_info, notice_overwritten_cursor): Make static.
2306 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
2307 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 2308 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
2309 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
2310 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
2311 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
2312 (note_mouse_highlight, x_clear_window_mouse_face)
2313 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
2314 (x_intersect_rectangles): New generic functions for use by xdisp.c
2315 and GUI front-ends.
2316 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
2317 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
2318
2319 * dispextern.h (Display_Info): Generic typedef for *_display_info.
2320 (NativeRectangle): Generic typedef for rectangle type.
2321 (enum window_part): Move here from window.c.
2322 (struct redisplay_interface): New members flush_display_optional,
2323 define_frame_cursor, clear_frame_area, draw_window_cursor,
2324 draw_vertical_window_border, shift_glyphs_for_insert.
2325 Rename member clear_mouse_face to clear_window_mouse_face.
2326 (estimate_mode_line_height_hook): Remove hook.
2327 (auto_raise_tool_bar_buttons_p): Don't declare extern.
2328 (tool_bar_item_info): Remove prototype.
2329 (help_echo_string, help_echo_window, help_echo_object)
2330 (previous_help_echo_string, help_echo_pos)
2331 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
2332 (x_stretch_cursor_p, output_cursor): Declare extern.
2333 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
2334 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
2335 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
2336 (display_and_set_cursor, set_output_cursor, x_cursor_to)
2337 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
2338 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
2339 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
2340 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
2341 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
2342 Add prototypes.
2343 (mode_line_string, marginal_area_string): Fix prototypes.
2344
2345 * window.c (enum window_part): Move to dispextern.h.
2346 (coordinates_in_window): Use enum window_part member names
2347 instead of numbers to describe return value.
2348 (struct check_window_data): Change part member to window_part.
2349 (check_window_containing): Return window_part unaltered.
2350 (window_from_coordinates): Change part arg from int to enum
2351 window_part. Allow part arg to be null. All users changed.
2352
2353 * window.h (window_from_coordinates): Fix prototype.
2354
2355 * term.c (estimate_mode_line_height): Move to xdisp.c.
2356
2357 * keyboard.c (make_lispy_event): Use enum window_part.
2358
2359 * dispnew.c (mode_line_string, marginal_area_string): Use enum
2360 window_part instead of int in arg list. Users changed.
2361
2362 * xterm.h (No_Cursor): Declare as None for X.
2363 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 2364
acd37560
KS
2365 * xterm.c: Remove consolidated defines and code.
2366 (BETWEEN): Remove unused macro.
2367 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
2368 (x_define_frame_cursor, x_clear_frame_area)
2369 (x_draw_window_cursor): New X-specific functions for RIF.
2370 (x_redisplay_interface): Add new members.
2371
2372 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
2373
2374 * w32term.h (struct w32_output): Remove cross_cursor member.
2375
2376 * w32term.c: Remove consolidated defines and code.
2377 (BETWEEN): Remove unused macro.
2378 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
2379 (w32_define_frame_cursor, w32_clear_frame_area)
2380 (w32_draw_window_cursor): New W32-specific functions for RIF.
2381 (w32_redisplay_interface): Add new members.
2382
2383 * w32gui.h (No_Cursor): Define as 0 for W32.
2384 (XRectangle): Add X compatible rectangle type.
2385 (NativeRectangle): Declare as RECT for W32.
2386 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
2387
2388 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
2389
2390 * w32console.c: Remove consolidated defines and code.
af0ad939 2391
acd37560
KS
2392 * msdos.h (Display_Info): Add generic typedef.
2393
2394 * msdos.c: Remove consolidated defines and code.
2395 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
2396
2397 * macterm.h (struct mac_output): Replace member cross_cursor by
2398 hand_cursor.
2399 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
2400
2401 * macterm.c: Remove consolidated defines and code.
2402 (BETWEEN): Remove unused macro.
2403 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
2404 (mac_define_frame_cursor, mac_clear_frame_area)
2405 (mac_draw_window_cursor): New Mac-specific functions for RIF.
2406 (x_redisplay_interface): Add new members.
2407
2408 * macgui.h (No_Cursor): Define as 0 for Mac.
2409 (XRectangle): Add X compatible rectangle type.
2410 (NativeRectangle): Declare as Rect for Mac.
2411 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
2412
204ccab1
KS
2413 * macfns.c (x_set_mouse_color): Setup hand_cursor.
2414 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 2415
9443fcf6 2416 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
2417 included from it. Add dependency on keymap.h.
2418
2419 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
2420
8ba01a70 24212003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
2422
2423 * fileio.c (Fexpand_file_name): Fix previous change.
2424
8ba01a70 24252003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
2426
2427 * fileio.c (Ffile_name_directory): Reconstruct file name by
2428 make_specified_string.
2429 (Ffile_name_nondirectory, Ffile_name_as_directory)
2430 (Fdirectory_file_name, Fexpand_file_name)
2431 (Fsubstitute_in_file_name): Likewise.
2432 (Fread_file_name): Compare decoded homedir with DIR and
2433 DEFAULT_FILENAME.
2434
2435 * alloc.c (make_specified_string): If NCHARS is negative, count
2436 the number of characters.
2437
19536747
JD
24382003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2439
de38ae5a
JD
2440 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
2441 all widgets.
2442
19536747
JD
2443 * gtkutil.h: Removed xg_ignore_next_thumb.
2444
37ab321e 24452003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
2446
2447 * coding.c (Vchar_coding_system_table): Remove this variable.
2448 (Vcoding_system_safe_chars): New variable.
2449 (intersection): Remove this function.
2450 (find_safe_codings): Don't use Vchar_coding_system_table, but try
2451 all codings in SAFE_CODINGS.
00c64fab 2452 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
2453 find_safe_codings. Get generic coding systems from
2454 Vcoding_system_safe_chars.
2455 (Fdefine_coding_system_internal): New function.
2456 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
2457 Initialize and staticpro Vcoding_system_safe_chars.
2458
17097258
JD
24592003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2460
2a2071c3
JD
2461 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
2462 equal old values before updating.
2463
17097258
JD
2464 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
2465
2466 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
2467
24682003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2469
2470 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
2471 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
2472 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
2473 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
2474 (xg_create_scroll_bar): Pass bar to button event callback.
2475 (xg_find_top_left_in_fixed): New function.
2476 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
2477 whole scroll bar area. Get old position with
2478 xg_find_top_left_in_fixed, calculate and only clear needed areas.
2479 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
2480 dragging is in progress. Calculate whole as for Motif.
2481 Remove code that saved last values. Call gtk_range functions to
2482 set scroll bar sizes.
2483
2484 * gtkutil.h: Removed xg_ignore_next_thumb.
2485
8cb9dfbf
JB
24862003-03-17 Juanma Barranquero <lektu@terra.es>
2487
2488 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
2489 and files included from it.
2490
00c64fab
SM
24912003-03-18 Stefan Monnier <monnier@cs.yale.edu>
2492
2493 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
2494 multiple occurrences of the same keymap under different prefixes.
2495 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
2496
c45bb3b2
JR
24972003-03-16 Jason Rumney <jasonr@gnu.org>
2498
2499 * w32gui.h: Use HDC for Display.
2500
2501 * w32term.c (w32_encode_char): Prevent double-byte chars from
2502 crashing Emacs.
2503
2504 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
2505 as binary.
2506
2a6d0874
JB
25072003-03-16 Juanma Barranquero <lektu@terra.es>
2508
2509 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
2510
03eb5fab
KS
25112003-03-16 Kim F. Storm <storm@cua.dk>
2512
2513 The following changes consolidate some of the gui-independent
2514 parts of the processing and drawing of "glyph strings" from
2515 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 2516
03eb5fab
KS
2517 * dispextern.h (struct glyph): Reduce face_id member from 22 to
2518 21 bits (this reduces number of faces from 4M to 2M).
2519 Replace W32 specific w32_font_type member (2 bits) by generic
2520 font_type member (3 bits) for portability.
2521 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
2522 (enum draw_glyphs_face): Define here.
2523 (struct glyph_string): Define here. Merge W32 and X versions.
2524 (struct redisplay_interface): New members per_char_metric,
2525 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
2526 (VCENTER_BASELINE_OFFSET): Define here.
2527 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
2528 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
2529
2530 * xdisp.c: Consolidate gui-independent "glyph string" code here.
2531 (dump_glyph_string): Moved here.
2532 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
2533 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
2534 (fill_composite_glyph_string, fill_glyph_string)
2535 (fill_image_glyph_string, fill_stretch_glyph_string)
2536 (left_overwritten, left_overwriting, right_overwritten)
2537 (right_overwriting, get_char_face_and_encoding)
2538 (set_glyph_string_background_width, compute_overhangs_and_x)
2539 (append_glyph, append_composite_glyph, produce_image_glyph)
2540 (take_vertical_position_into_account, append_stretch_glyph)
2541 (produce_stretch_glyph): New generic functions (based on X version).
2542 Call platform specific functions through rif.
2543 (INIT_GLYPH_STRING): New macro, hides W32 details.
2544 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
2545 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
2546 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
2547 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
2548 (notice_overwritten_cursor):
2549 Generic functions exported to platform modules. Users changed.
2550
2551 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
2552 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
2553 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 2554 New macros for consolidated code.
2a6d0874 2555
03eb5fab
KS
2556 * xterm.c: Remove consolidated defines and code.
2557 (x_per_char_metric, x_encode_char)
2558 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
2559 (x_redisplay_interface): Add new members.
2560
2561 * w32gui.h (Display): Add dummy typedef for consolidation.
2562 (XChar2b): Define alias for wchar_t for consolidation.
2563 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
2564
2565 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 2566 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
2567 New macros for consolidation.
2568
fad49844 2569 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
2570 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
2571 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
2572 (w32_per_char_metric): Change font_type arg to int for RIF.
2573 (w32_encode_char): Return int according to RIF requirements.
2574 (w32_compute_glyph_string_overhangs): Adapt to RIF.
2575 (w32_get_glyph_overhangs): New function for RIF. Uses generic
2576 x_get_glyph_overhangs.
2577 (w32_redisplay_interface): Add new members.
2578
2579 * macgui.h (XChar2b): Move typedef here for consolidation.
2580 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
2581
2582 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
2583 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
2584 consolidation.
2585
2586 * macterm.c: Remove consolidated defines and code.
2587 (mac_per_char_metric): New function for RIF.
00c64fab 2588 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
2589 (mac_compute_glyph_string_overhangs): Adapt for RIF.
2590 (x_redisplay_interface): Add new members.
2591
00c64fab
SM
25922003-03-15 Stefan Monnier <monnier@cs.yale.edu>
2593
2594 * keymap.c (Vmenu_events): New var.
2595 (syms_of_keymap): Initialize it.
2596 (where_is_internal): Check more carefully what is a menu event.
2597
225c7a07
RS
25982003-03-14 Richard M. Stallman <rms@gnu.org>
2599
2600 * lread.c (read1): After #!, exit loop on eof.
2601
cea9be54
JD
26022003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2603
9ea0e54d
JD
2604 * gtkutil.h: Add declaration for xg_frame_cleared.
2605
0cb35f4e
JD
2606 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
2607
cea9be54
JD
2608 * gtkutil.c (struct xg_last_sb_pos): New structure.
2609 (handle_fixed_child): New function.
2610 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
2611 and force a redraw on them.
2612 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
2613 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
2614 so we can avoid unneeded redraws.
2615 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
2616 and force a redraw on the scroll bar.
2617 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
2618 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 2619 (xg_frame_cleared): New function.
cea9be54 2620
20b853f3
KH
26212003-03-13 Kenichi Handa <handa@m17n.org>
2622
2623 * coding.c (Fdetect_coding_region): Fix docstring.
2624 (Fdetect_coding_string): Fix docstring.
2625
7a555aff
AS
26262003-03-13 Andreas Schwab <schwab@suse.de>
2627
25cc0080
AS
2628 * gtkutil.c: Add prototype for create_menus.
2629
30225431
AS
2630 * data.c (long_to_cons): Fix type of top.
2631
2632 * xselect.c (selection_data_to_lisp_data): Use int instead of
2633 long for an integer of size 4.
2634
7a555aff 2635 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 2636 (xg_tool_bar_help_callback): Likewise.
7a555aff 2637
a3e4741f
AS
26382003-03-12 Andreas Schwab <schwab@suse.de>
2639
2640 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
2641
9668be7c
KS
26422003-03-12 Kim F. Storm <storm@cua.dk>
2643
03eb5fab 2644 The following changes consolidate the fringe handling from
9668be7c 2645 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 2646
9668be7c
KS
2647 * xdisp.c: Consolidate fringe handling code here.
2648 (left_bits, right_bits, continued_bits, continuation_bits)
2649 (ov_bits, zv_bits): Define fringe bitmaps.
2650 (fringe_bitmaps): New array holding fringe bitmaps.
2651 (draw_fringe_bitmap): Draw a specific bitmap; call display
2652 specific drawing routine via rif->draw_fringe_bitmap.
2653 (draw_row_fringe_bitmaps): Generic replacement for
2654 x_draw_row_fringe_bitmaps; all callers changed.
2655 (compute_fringe_widths): Generic replacement for
2656 x_compute_fringe_widths; all callers changed.
2657
2658 * dispextern.h (enum fringe_bitmap_type): Define here.
2659 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
2660 (fringe_bitmaps): Declare extern.
2661 (struct redisplay_interface): New member draw_fringe_bitmap.
2662 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
2663
2664 * xterm.c: Remove generic fringe code.
2665 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
2666 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
2667
2668 * w32term.c: Remove generic fringe code.
2669 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
2670 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 2671
9668be7c
KS
2672 * macterm.c: Remove generic fringe code.
2673 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
2674 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
2675
00a88f32
SM
26762003-03-11 Stefan Monnier <monnier@cs.yale.edu>
2677
2678 * print.c (Fprin1_to_string): Return unibyte string if possible.
2679
1d1de695
DK
26802003-03-09 David Kastrup <dak@gnu.org>
2681
2682 * process.c (read_process_output): We have allocated enough space
2683 for readmax and carryover, so actually use the alloted space.
2684
257f40f2
JD
26852003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2686
2687 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
2688 toolkit scrollbar click.
2689
2690 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
2691 for USE_GTK.
2692 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
2693 also.
2694 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
2695 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 2696
257f40f2
JD
2697 * gtkutil.h: Declare xg_get_scroll_id_for_window.
2698
2699 * gtkutil.c (xg_get_scroll_id_for_window): New function.
2700 (xg_tool_bar_item_expose_callback): New function.
2701 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
2702 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
2703 on the tool bar widget.
2704 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
2705 to expose on the tool bar item widgets.
2706
15213141
JD
27072003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2708
26b74a0b 2709 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 2710 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
2711 deleted from the image cache).
2712
15213141
JD
2713 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
2714 the event isn't for a frame (i.e. for dialogs).
2715
20b853f3 27162003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
2717
2718 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
2719 composition components reaches the limit, terminate composing.
2720 (COMPOSITION_OK): New macro.
00a88f32 2721 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
2722 composition is found.
2723 (coding_restore_composition): Adjust the number of composition
2724 components if it is not sane.
2725
c9029fe5
JB
27262003-03-06 Juanma Barranquero <lektu@terra.es>
2727
2728 * w32term.h (struct w32_display_info): Add xrdb member to support
2729 passing resources via -xrm on Windows.
2730
2731 * w32term.c (w32_make_rdb): New function.
2732 (w32_term_init): Use it to initialize xrdb member of w32_display_info
2733 struct. Delete leftover code.
2734
2735 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
2736 for resources passed on the command line.
2737
2738 * w32reg.c (w32_get_rdb_resource): New function.
2739 (x_get_string_resource): Use it, so resources passed with -xrm
2740 supercede the ones in the registry.
2741
9d00001f
JD
27422003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2743
2744 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
2745 instead of x_top_window_to_frame.
2746
ca2417b9
JD
27472003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2748
2749 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
2750 when restarting Emacs.
2751
5b20caf0
RS
27522003-03-03 Richard M. Stallman <rms@gnu.org>
2753
2754 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
2755 to run kill-buffer-query-functions.
2756 (Qkill_buffer_query_functions): New var.
2757 (syms_of_buffer): Init and staticpro it.
2758
58e91b77
JD
27592003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2760
2761 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
2762
932357b4
KS
27632003-02-25 Kim F. Storm <storm@cua.dk>
2764
2765 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
2766 If centering point failed to make whole line visible and vscroll
2767 is non-zero, disable vscroll and try centering point again.
2768
2769 * lread.c (read1): Accept `single space' syntax like (? x).
2770
bb8db7e1
JD
27712003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2772
2773 * keyboard.c (cancel_hourglass_unwind): Surround with
2774 #ifdef HAVE_X_WINDOWS
2775
47d77aab
KH
27762003-02-25 Kenichi Handa <handa@m17n.org>
2777
2778 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
2779 process only when "subprocesses" is defined.
2780
6a097c0c
SM
27812003-02-24 Stefan Monnier <monnier@cs.yale.edu>
2782
2783 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
2784
0b063c27
JB
27852003-02-24 Juanma Barranquero <lektu@terra.es>
2786
d1135afc
JB
2787 * callint.c (fix_command): Declare as static void and move before
2788 Fcall_interactively.
2789
0b063c27
JB
2790 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
2791 (syms_of_xdisp): Don't initialize Qwhen.
2792
0af912f0
JD
27932003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2794
2795 * keyboard.c (cancel_hourglass_unwind): New function.
2796 (command_loop_1): Cancel hourglass with unwind-protect.
2797
120d0a23
RS
27982003-02-23 Richard M. Stallman <rms@gnu.org>
2799
2800 * callint.c (fix_command): New subroutine, from Fcall_interactively.
2801 Detect (when ... (region-beginning)) etc.
2802 (Fcall_interactively): Call fix_command.
2803 (Qif, Qwhen): New variables.
2804 (syms_of_callint): Init and staticpro them.
0b063c27 2805
120d0a23
RS
2806 * regex.c (print_partial_compiled_pattern): Output to stderr.
2807
4ece81a6
KG
28082003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
2809
2810 * dired.c (directory_files_internal): Don't expand directory.
2811 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
2812 instead. From Lars Hansen <larsh@math.ku.dk>.
2813
e52bd6b7
SM
28142003-02-22 Stefan Monnier <monnier@cs.yale.edu>
2815
2816 * fns.c (string_to_multibyte): Remove unused var i.
2817 (Flanginfo): Fix int/Lisp_Object mixup.
2818 (void_call2): New fun.
2819 (Fmap_char_table): Use it in place of call2.
2820
2821 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
2822
2823 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
2824
2825 * keymap.c (copy_keymap_1): Make it static.
2826
2827 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
2828
c33ef7c4
JB
28292003-02-22 David Ponce <david@dponce.com>
2830
2831 * lread.c (Fload): Don't check STRING_MULTIBYTE.
2832
16782258
JD
28332003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2834
2835 * process.h: Removed subtty field from struct Lisp_Process.
2836
2837 * process.c (create_process): Remove setting of subtty.
2838 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
2839 (Fprocess_running_child_p, process_send_signal):
2840 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
2841 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
2842
3abeca61
KG
28432003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
2844
2845 * keymap.c (Fdefine_key): Doc fix.
2846
92a8ce63
JB
28472003-02-21 Juanma Barranquero <lektu@terra.es>
2848
2849 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
2850
2851 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
2852 POLLING_PROBLEM_IN_SELECT.
2853
2854 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
2855 Delete #undef of POLLING_PROBLEM_IN_SELECT.
2856
2857 * s/hpux10-20.h: New file.
2858
e52bd6b7
SM
2859 * process.c (wait_reading_process_input):
2860 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 2861
20f1ef2e
KH
28622003-02-20 Kenichi Handa <handa@m17n.org>
2863
32d0a9dc
KH
2864 * fontset.c (check_fontset_name): If NAME is nil, return the
2865 default fontset.
2866 (override_font_info): New function.
e52bd6b7 2867 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
2868 (Ffontset_info): If FONTSET is not the default fontset, merge
2869 FONTSET onto the copy of the default fontset, and work on that
2870 copy. Document that NAME nil means the default fontset.
2871 (Ffontset_font): Document that NAME nil means the default fontset.
2872
20f1ef2e
KH
2873 * process.c (setup_process_coding_systems): If the process's
2874 in/out descriptor is -1, do nothing.
2875
77d1daf2
AS
28762003-02-19 Andreas Schwab <schwab@suse.de>
2877
e52bd6b7
SM
2878 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
2879 Add prototypes.
77d1daf2 2880
f9a45bb3
KH
28812003-02-19 Kenichi Handa <handa@m17n.org>
2882
2883 * xfaces.c (try_alternative_families): Try all scalable fonts if
2884 Vscalable_fonts_allowed is not Qt.
2885
72ecb43c
JD
28862003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2887
2888 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
2889
ee5be7c3
JD
28902003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2891
2892 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
2893 names.
2894
2895 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 2896 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
2897 x_face_list_fonts.
2898 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
2899 (Fx_list_fonts): Set maxnames to -1 to get all font names.
2900
4cd519a7
KS
29012003-02-18 Kim F. Storm <storm@cua.dk>
2902
068f9882
KS
2903 * lread.c (read1): Fix last change.
2904 "`" is not always special. Allow "?" after a character constant.
4cd519a7 2905
7290a344
AC
29062003-02-18 Andrew Choi <akochoi@shaw.ca>
2907
2908 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
2909
1f7fa69b
AS
29102003-02-18 Andreas Schwab <schwab@suse.de>
2911
2912 * window.c (window_scroll_pixel_based): Move outside a
2913 multi-glyph character before setting new window start.
2914
2915 * xdisp.c (in_display_vector_p): New function.
2916 * dispextern.h (in_display_vector_p): Declare.
2917
23e21195
KS
29182003-02-18 Kim F. Storm <storm@cua.dk>
2919
2920 * lread.c (read1): Fix and relax read syntax.
2921 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
2922 Only recognize "," after dotted-pair dot if inside backquote.
2923 Never include "`" or "," (inside backquote) in a symbol.
2924 Allow dotted-pair dot after a character constant.
2925 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 2926
f098b121
JD
29272003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2928
2929 * gtkutil.c (xg_tool_bar_expose_callback): New function.
2930 (xg_create_tool_bar): Force style of tool bar to be horizontal with
2931 icons. Set name of tool bar to emacs-toolbar.
2932 (update_frame_tool_bar): Connect expose event to
2933 xg_tool_bar_expose_callback.
2934
63020c46
RS
29352003-02-17 Richard M. Stallman <rms@gnu.org>
2936
2937 * keyboard.c (this_command_key_count_reset): New variable.
2938 Initiatize to 0 where this_command_key_count is set.
2939 (read_char): Save and restore this_command_key_count_reset
2940 around input method code.
2941 (read_char): If this_command_key_count_reset, echo reread commands.
2942 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
2943
fb4452cc
KH
29442003-02-17 Kenichi Handa <handa@m17n.org>
2945
2946 * fns.c (string_to_multibyte): Always return a multibyte string.
2947
bd11cc09
JR
29482003-02-16 Jason Rumney <jasonr@gnu.org>
2949
e52bd6b7
SM
2950 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
2951 Negative max_fonts parameter means list all.
bd11cc09 2952
4cdf4bde
DL
29532003-02-14 Dave Love <fx@gnu.org>
2954
2955 * fns.c (Flanginfo): Doc fix.
2956
023b93f6
KS
29572003-02-13 Kim F. Storm <storm@cua.dk>
2958
37cd4238
KS
2959 * lread.c (read_escape): Interpret \s as a SPACE character, except
2960 for \s-X in a character constant which still is the super modifier.
2961 (read1): Signal an `invalid read syntax' error if a character
2962 constant is immediately followed by a digit or symbol character.
2963
140a6b7e
KS
2964 * search.c (Fmatch_data): Doc fix. Explicitly state that
2965 match-data is undefined if last search failed.
2966
023b93f6
KS
2967 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
2968 All uses changed.
2969
7d5c86e5
JB
29702003-02-12 Juanma Barranquero <lektu@terra.es>
2971
2972 * eval.c (Fdefmacro): Fix typo.
2973
295fff2c
KS
29742003-02-12 Kim F. Storm <storm@cua.dk>
2975
2976 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
2977 macro is a string, convert meta modifiers in string when copying
2978 the string into a vector.
2979
60f3202d
KS
29802003-02-11 Kim F. Storm <storm@cua.dk>
2981
2982 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
2983
61cb0b53
KH
29842003-02-11 Kenichi Handa <handa@m17n.org>
2985
2986 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
2987
7392e23c
KS
29882003-02-10 Kim F. Storm <storm@cua.dk>
2989
2990 * process.c: Doc fixes.
2991 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
2992
ce4254bd
KH
29932003-02-10 Kenichi Handa <handa@m17n.org>
2994
9c7a329a
KH
2995 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
2996
ce4254bd
KH
2997 * process.c (QCfilter_multibyte): New variable.
2998 (setup_process_coding_systems): New function.
e52bd6b7
SM
2999 (Fset_process_buffer, Fset_process_filter):
3000 Call setup_process_coding_systems.
ce4254bd
KH
3001 (Fstart_process): Initialize the member `filter_multibyte' of
3002 struct Lisp_Process.
3003 (create_process): Call setup_process_coding_systems.
3004 (Fmake_network_process): New keyward `:filter-multibyte'.
3005 Initialize the member `filter_multibyte' of struct Lisp_Process.
3006 Call setup_process_coding_systems.
3007 (server_accept_connection): Call setup_process_coding_systems.
3008 (read_process_output): If the process has a filter, decide the
3009 multibyteness of a string to given to the filter by
3010 `filter_multibyte' member of the process. If the process doesn't
3011 have a filter and the result of conversion is unibyte, use
3012 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
3013 multibyte form.
3014 (Fset_process_coding_system): Call setup_process_coding_systems.
3015 (Fset_process_filter_multibyte): New function.
3016 (Fprocess_filter_multibyte_p): New function.
3017 (syms_of_process): Intern and staticpro QCfilter_multibyte.
3018 Defsubr Sset_process_filter_multibyte and
3019 Sprocess_filter_multibyte_p.
3020
3021 * process.h (struct Lisp_Process): New member filter_multibyte.
3022
3023 * lisp.h (setup_process_coding_systems): Add prototype.
3024
3025 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
3026 process, update coding systems for the process.
3027
b08d5f59
KH
30282003-02-09 Kenichi Handa <handa@m17n.org>
3029
3030 * fns.c (string_to_multibyte): New function.
3031 (Fstring_to_multibyte): New function.
3032 (syms_of_fns): Defsubr it.
3033
0dfd93c0
AS
30342003-02-08 Andreas Schwab <schwab@suse.de>
3035
3036 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
3037 instead of the substitution.
3038
7b76ca1c
JD
30392003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3040
3041 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
3042
3043 * xmenu.c (menu_position_func): Adjust menu popup position so that
3044 the menu is fully visible.
7b76ca1c 3045
2436a4e4
JD
30462003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3047
3048 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
3049 (x_make_frame_invisible, x_wm_set_icon_position):
3050 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
3051
3052 * xfns.c (x_set_name, x_set_title): Ditto.
3053
37d1e680
RS
30542003-02-04 Richard M. Stallman <rms@gnu.org>
3055
3056 * keyboard.c (echo_now): Update before_command_echo_length.
3057 (Freset_this_command_lengths): Reset this_command_key_count etc.
3058 immediately rather than arranging to do it later.
3059 (before_command_key_count_1, before_command_echo_length_1)
3060 (before_command_restore_flag): Vars deleted.
3061 (add_command_key): Don't handle before_command_restore_flag.
3062 (read_char, record_menu_key): Don't update before_command_key_count or
3063 before_command_echo_length.
3064 (read_char): Don't handle before_command_restore_flag.
3065
3066 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
3067 in direct-output clauses if it wouldn't be called in the ordinary case.
3068
578846a3
KS
30692003-02-04 Kim F. Storm <storm@cua.dk>
3070
3071 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
3072
49853a4d
JD
30732003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3074
3075 * gtkutil.c (remove_from_container): Copying list is not needed.
3076 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
3077 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
3078 on list returned from gtk_container_get_children to avoid memory leak.
3079
8b53dc06
JR
30802003-02-01 Jason Rumney <jasonr@gnu.org>
3081
5d54d177
JR
3082 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
3083 local malloc.
3084 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
3085 definitions in xpm.h.
3086 (init_xpm_functions): New function.
3087 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
3088 (init_external_image_libraries): Try to load libXpm.dll.
3089
8b53dc06
JR
3090 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
3091 timestamp.
3092
b222e415
DL
30932003-01-31 Dave Love <fx@gnu.org>
3094
3095 * syntax.c (Fskip_chars_forward)
3096 (open-paren-in-column-0-is-defun-start): Doc fix.
3097
c60ee5e7
JB
30982003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
3099
3100 * fileio.c: Support // at start of name for Cygwin (just added proper
3101 preprocessor tests).
3102
3103 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
3104
3105 * Makefile.in: Use @EXEEXT@ for Cygwin.
3106
3107 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
3108
3109 * s/cygwin.h: Added for Cygwin port.
3110
53b37591
JB
31112003-01-31 Juanma Barranquero <lektu@terra.es>
3112
3113 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
3114 when including gif_lib.h.
fe929957
JB
3115 (init_gif_functions, init_tiff_functions): New functions.
3116 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
3117 Windows. Disable color table lookups. Call library functions
53b37591 3118 through pointers determined at runtime.
fe929957
JB
3119 (init_external_image_libraries): Try to load libungif.dll and
3120 libtiff.dll.
53b37591 3121
45415a8f
KH
31222003-01-31 Kenichi Handa <handa@m17n.org>
3123
3124 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 3125 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 3126
a97e4138
JD
31272003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3128
e52bd6b7 3129 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 3130
6eed9bed
DL
31312003-01-30 Dave Love <fx@gnu.org>
3132
3133 * alloc.c (Vgc_elapsed, gcs_done): New variables.
3134 (Fgarbage_collect): Use them.
3135 (init_alloc, syms_of_alloc): Set them up.
3136
100dcd40
JB
31372003-01-30 Juanma Barranquero <lektu@terra.es>
3138
3139 * w32fns.c (init_external_image_libraries): Add missing operator.
3140
fbd852af
JR
31412003-01-29 Jason Rumney <jasonr@gnu.org>
3142
3143 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
3144 an alternative name for jpeg.dll.
3145
8a2d8020
KH
31462003-01-29 Kenichi Handa <handa@m17n.org>
3147
3148 * xdisp.c (set_cursor_from_row): Pay attention to string display
3149 properties.
3150
058c18c7
AC
31512003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
3152
3153 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
3154 <escape>.
3155 (keycode_to_xkeysym_table): Reformat and add more comments.
3156 (XTread_socket): Drop special case for backspace.
3157
385f11cf
AC
31582003-01-28 Andrew Choi <akochoi@shaw.ca>
3159
3160 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
3161 values in old-style RGB specs.
3162
c922a224
JB
31632003-01-27 Juanma Barranquero <lektu@terra.es>
3164
3165 * w32fns.c (init_external_image_libraries): Try alternate names for the
3166 jpeg dll.
3167
0a1d6de0
JD
31682003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3169
3170 * gtkutil.c (create_dialog, xg_separator_p)
3171 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
3172 before calling strcmp or strlen.
3173
a97e4138 31742003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
3175
3176 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
3177 and handle image load failure.
3178
28908312
JR
31792003-01-26 Jason Rumney <jasonr@gnu.org>
3180
3181 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
3182 New functions.
3183 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
3184 Disable color table lookups. Call jpeg library functions
3185 through pointers determined at runtime.
3186 (init_external_image_libraries): Try to load jpeg.dll.
3187
84e47416
RS
31882003-01-25 Richard M. Stallman <rms@gnu.org>
3189
3190 * lisp.h: Declare format2 instead of format1.
3191
3192 * fileio.c (barf_or_query_if_file_exists):
3193 Call format2 instead of format1.
3194
3195 * editfns.c (format2): New function, replaces format1
3196 but takes exactly two Lisp Objects as format args.
3197
3198 * buffer.c (Fkill_buffer): Call format2 instead of format1.
3199
a97e4138 32002003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
3201
3202 * xterm.h: Change to return value of x_dispatch_event to int.
3203
3204 * xterm.c (x_filter_event): New function.
3205 (event_handler_gdk, XTread_socket): Call x_filter_event.
3206 (x_dispatch_event): Change to return value of finish.
3207 (event_handler_gdk): Use return value from x_dispatch_event.
3208
3209 * xfns.c (x_window): Call create_frame_xic for GTK version to
3210 initialize input methods.
3211
3212 * gtkutil.h: Add (void) prototypes.
3213
3214 * gtkutil.c (create_menus): Remove code that puts the help menu to
3215 the right.
3216
54eefef1
JR
32172003-01-25 Jason Rumney <jasonr@gnu.org>
3218
3219 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
3220 [HAVE_PNG]: Sync with xfns.c version.
3221 (png_load): Adjust colors for Windows. Use Windows
3222 bitmaps. Disable color table lookups.
c262430d
JR
3223 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
3224 (init_png_functions): New function.
3225 (png_read_from_memory, png_load): Call png library functions
3226 through pointers determined at runtime.
3227 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
3228 (init_external_image_libraries): New function.
3229 (init_xfns): Call it.
54eefef1 3230
1a9e275b
AS
32312003-01-24 Andreas Schwab <schwab@suse.de>
3232
3233 * minibuf.c (Fminibuffer_message): Verify type of parameter.
3234
a97e4138 32352003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
3236
3237 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
3238 of static initializer.
3239
422eec7e
DL
32402003-01-24 Dave Love <fx@gnu.org>
3241
3242 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
3243 architectures.
3244
3245 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
3246 Use __alignof__.
3247
2a026b04
KH
32482003-01-24 Kenichi Handa <handa@m17n.org>
3249
3250 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 3251 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
3252 (command_loop_1): Call adjust_point_for_property with proper
3253 second arg.
3254
a18bb28d
JR
32552003-01-22 Jason Rumney <jasonr@gnu.org>
3256
3257 Sync changes with xterm.c and xfns.c.
3258
3259 * w32term.c (x_draw_glyph_string_foreground)
3260 (x_draw_composite_glyph_string_foreground): Implement overstriking.
3261
3262 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
3263 phys_cursor's hpos is overwritten. This is still not completely
3264 correct, as it doesn't really make sense to use hpos at all to
3265 get the cursor glyph (as that is relative to the width of the
3266 characters on the line, which may have changed during the update).
3267
3268 * w32term.c (notice_overwritten_cursor): Handle the special case
3269 of the cursor being in the first blank non-text line at the
3270 end of a window.
3271
3272 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
3273 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
3274 Compute from the x position returned by x_draw_glyphs.
3275
3276 (x_display_and_set_cursor): Don't set phys_cursor_width here,
3277 except for NO_CURSOR and system caret, to make phys_cursor_width
3278 contain what its name suggests.
3279 (notice_overwritten_cursor): Consider the cursor image erased if
3280 the output area intersects the cursor image in y-direction.
3281
6a097c0c
SM
3282 * w32term.c (note_mode_line_or_margin_highlight): Rename from
3283 note_mode_line_highlight and extend.
a18bb28d
JR
3284
3285 * w32term.c (last_window): New variable.
3286 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
3287 (note_mouse_movement): Remove reimplemented code in #if 0.
3288
3289 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
3290 not update_mode_lines, and always set it to 1.
3291
ac6e47ef
JR
32922003-01-21 Jason Rumney <jasonr@gnu.org>
3293
3294 * w32fns.c (IDC_HAND): Define it if system headers don't.
3295
32962003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
3297
3298 * w32term.h (struct w32_output): New member hand_cursor.
3299 (WM_EMACS_SETCURSOR): New message definition.
3300
3301 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
3302 function w32_define_cursor.
3303 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
3304 position, change member name output_data.x to output_data.w32 and
3305 add function w32_define_cursor.
3306 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
3307 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
3308 (w32_initialize_display_info):
3309 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
3310
3311 * w32fns.c (Vx_hand_shape): New variable.
3312 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
3313 WM_EMACS_SETCURSOR.
3314 (x-create-frame): Setup Cursor types.
3315
ceb39a17
JB
33162003-01-21 David Ponce <david@dponce.com>
3317
ac6e47ef
JR
3318 * w32term.c (w32_encode_char): For DIM=1 charset, set
3319 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
3320 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 3321 2002-09-30.)
ac6e47ef
JR
3322 (w32_draw_relief_rect): Declare all args.
3323 (w32_define_cursor): New.
3324
3325 * w32fns.c (w32_load_cursor): New function.
3326 (w32_init_class): Use it.
3327 (x_put_x_image): Declare all args.
3328
46cf0bed
JB
33292003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
3330
3331 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
3332
a97e4138 33332003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
3334
3335 * gtkutil.c: Must include stdio.h before termhooks.h
3336
83fc9c63
DL
33372003-01-21 Dave Love <fx@gnu.org>
3338
3339 * alloc.c (Fgc_status): Print zombie list.
3340 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
3341 Fix assignment of zombies.
3342 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
3343 Don't take car of non-cons.
3344
3345 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
3346
3347 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
3348
fe04b8c8
JR
33492003-01-20 David Ponce <david@dponce.com>
3350
3351 * w32menu.c (digest_single_submenu): Declare all args.
3352
3353 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
3354 changes in xmenu.c:
3355
3356 (parse_single_submenu): Use individual keymap's prompt
3357 string as pane name, if there is one.
3358 (set_frame_menubar): Save menu_items_n_panes from each call to
3359 parse_single_submenu and use it when calling digest_single_submenu.
3360
539e69a9
ST
33612003-01-20 Steven Tamm <steventamm@mac.com>
3362
3363 * macterm.c (XTread_socket): Checks for valid, visible window
3364 before sending a scroll-wheel event.
3365
675d000f
RS
33662003-01-20 Richard M. Stallman <rms@gnu.org>
3367
3368 * xdisp.c (redisplay_window): If mini window's buffer is not
3369 a minibuffer, then redisplay it like other windows.
3370
a97e4138 33712003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
3372
3373 * gtkutil.c (xg_create_frame_widgets): Check if there is an
3374 external tool bar before setting tool bar height.
3375
048addec
JD
33762003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3377
3378 * xterm.c (handle_one_xevent): Surround popup_activated
3379 with #ifdef:s for non-toolkit version.
3380
3381 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
3382 (gtkutil.o): New file.
3383 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
3384 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
3385
3386 * gtkutil.c: New file for GTK version.
3387
3388 * gtkutil.h: New file for GTK version.
3389
3390 * xterm.h: Add xt_or_gtk_widget.
3391 Include gtk files for USE_GTK.
3392 (struct x_output): Add toolbar_height.
3393 (struct x_output): Add GTK widgets and Gdk size_hints.
3394 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
3395 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
3396 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
3397
3398 * xterm.c: Include gtkutil.h for USE_GTK.
3399 Declare extern void free_frame_menubar for USE_GTK.
3400 (note_mouse_highlight): Check popup_activated for USE_GTK.
3401 (xt_action_hook): Don't compile if USE_GTK.
3402 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
3403 (xg_scroll_callback): New function.
3404 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
3405 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
3406 for USE_GTK.
3407 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
3408 xg_show_scroll_bar for USE_GTK.
3409 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
3410 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
3411 (event_handler_gdk): New function for USE_GTK.
3412 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
3413 (handle_one_xevent): Make sure widget is mapped before
3414 calling x_real_positions for USE_GTK.
3415 (XTread_socket): Add GTK event loop for USE_GTK.
3416 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
3417 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
3418 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
3419 (x_iconify_frame): Add code for USE_GTK.
3420 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
3421 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
3422 is in gtkutil.c.
3423 (x_term_init): Add initialization for GTK.
3424 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
3425
3426 * xmenu.c: Include gtkutil.h for USE_GTK.
3427 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
3428 (single_menu_item, single_menu_item, Fx_popup_dialog):
3429 Check for USE_GTK.
048addec
JD
3430 (popup_widget_loop): New function for USE_GTK.
3431 (x_activate_menubar): Add code for USE_GTK.
3432 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
3433 (menu_highlight_callback, menubar_selection_callback):
3434 Add USE_GTK versions.
048addec
JD
3435 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
3436 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
3437 (free_frame_menubar): Only compile if not USE_GTK. GTK version
3438 is in gtkutil.c.
3439 (popup_selection_callback): New version for USE_GTK.
3440 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 3441 one USE_X_TOOLKIT version.
048addec
JD
3442 (xmenu_show): Call create_and_show_popup_menu.
3443 (dialog_selection_callback): New version for USE_GTK.
3444 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 3445 one USE_X_TOOLKIT version.
048addec
JD
3446 (xdialog_show): Call create_and_show_dialog.
3447
3448 * xfns.c: Include gtkutil for USE_GTK.
3449 (x_window_to_frame, x_any_window_to_frame)
3450 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
3451 (x_top_window_to_frame): Add code for USE_GTK.
3452 (x_set_background_color): Call xg_set_background_color for GTK.
3453 (x_set_menu_bar_lines): Check for USE_GTK.
3454 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
3455 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
3456 (x_window): Call xg_create_frame_widgets for USE_GTK.
3457 (Fx_create_frame): Check for USE_GTK
3458 (Fx_file_dialog): New implementation for USE_GTK.
3459
3460 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
3461 (update_menu_bar): Add check for USE_GTK.
3462 (update_tool_bar): Add check for USE_GTK and external tool bar.
3463 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
3464 (redisplay_internal): Add check for USE_GTK and popup_activated.
3465 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
3466 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
3467 (display_menu_bar): Add check for USE_GTK
3468
3469 * lisp.h: Declare Vx_resource_name extern.
3470
3471 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
3472 for USE_GTK.
3473 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
3474
3475 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
3476 (FRAME_EXTERNAL_TOOL_BAR): New macro.
3477 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
3478
3479 * fileio.c (Fread_file_name): Add check for USE_GTK.
3480
6bdb309a
SM
3481 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
3482 Add check for USE_GTK.
048addec
JD
3483
3484 * config.in: Added HAVE_GTK
3485
3486 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
3487
34882003-01-18 Stefan Monnier <monnier@cs.yale.edu>
3489
3490 * charset.h (Funibyte_char_to_multibyte): Export.
3491
34922003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3493
3494 * xmenu.c (mouse_position_for_popup): New function.
3495 (Fx_popup_menu): Call mouse_position_for_popup for X and
3496 mouse_position_hook for others.
3497
34982003-01-17 Kim F. Storm <storm@cua.dk>
3499
3500 * editfns.c (Finsert): Mention `string-make-multibyte' and
3501 `string-as-multibyte' in doc string.
3502
35032003-01-17 Kenichi Handa <handa@m17n.org>
3504
3505 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 3506
048addec
JD
3507 * editfns.c (Fformat): Convert an unibyte char argument that is
3508 formatted by "%c" to multibyte if the total result must be a
3509 multibyte string.
cd7df9c0 3510
048addec 35112003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 3512
048addec
JD
3513 * process.c (set-process-filter): Document unibyte/multibyte-ness
3514 of string argument.
56210ecd 3515
048addec 35162003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 3517
048addec 3518 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 3519
048addec
JD
3520 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
3521 (re_search_2): Likewise.
6df8b9fe 3522
048addec 35232003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 3524
048addec
JD
3525 * xdisp.c (message_dolog): Fix bug of the case that *Message*
3526 buffer is unibyte.
292ddc31 3527
048addec 35282003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 3529
048addec 3530 * fns.c (Fsubstring): Clarify doc string.
292ddc31 3531
048addec
JD
3532 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
3533 (Fprevious_char_property_change)
3534 (Fnext_single_char_property_change)
3535 (Fprevious_single_char_property_change, Fnext_property_change)
3536 (Fnext_single_property_change, Fprevious_property_change)
3537 (Fprevious_single_property_change, Fadd_text_properties)
3538 (Fput_text_property, Fset_text_properties)
3539 (Fremove_text_properties, Fremove_list_of_text_properties)
3540 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 3541
048addec 35422003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 3543
048addec
JD
3544 * process.h (struct Lisp_Process): New member plist replaces old
3545 member private_vars. All uses changed.
63e4e4c6 3546
048addec 3547 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 3548 (QCplist): Rename from QCvars. Change all uses.
048addec 3549 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 3550 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 3551 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 3552 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 3553
048addec 35542003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 3555
6bdb309a 3556 * m/delta.h: Remove (obsolete).
e833850f 3557
048addec 35582003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 3559
048addec
JD
3560 * fileio.c (Fdelete_directory, Fdelete_file): Document the
3561 behaviour in front of symlinks.
3562 (Fdelete_file): Raise an error on directories.
817cb127 3563
048addec 35642003-01-13 Dave Love <fx@gnu.org>
817cb127 3565
048addec 3566 * fns.c (Freverse): Use QUIT.
3e8cf2ea 3567
048addec 35682003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 3569
048addec
JD
3570 * minibuf.c (minibuffer_completion_contents):
3571 Error if point is inside prompt.
3e8cf2ea 3572
048addec
JD
3573 * keyboard.c (command_loop_1): Don't redisplay directly
3574 if there's a post-command-hook.
3e8cf2ea 3575
048addec
JD
3576 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
3577 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 3578
048addec 35792003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 3580
048addec 3581 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 3582
048addec
JD
3583 * process.c (QCvars): New variable.
3584 (syms_of_process): Intern and staticpro it.
3585 (Fset_process_contact): Removed function.
3586 (Fprocess_variable, Fset_process_variable): New functions.
3587 (syms_of_process): Defsubr them.
3588 (Fstart_process): Initialize private_vars plist to nil.
3589 (Fmake_network_process): New arg :vars to setup the private
3590 variables for new network process.
3591 (server_accept_connection): Copy server's private variables to
3592 client process.
2c10f029 3593
048addec
JD
3594 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
3595 crashes). Code rewritten and simplified. Now directly aligns the
3596 pointer and recalculates pure_bytes_used, rather than aligning the
3597 size and adjusting the pointer.
b8a76c6c 3598
048addec 35992003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 3600
048addec
JD
3601 * process.c (Fset_process_contact): New function.
3602 (syms_of_process): defsubr it.
3603 (make-network-process): Update doc.
3a8d0899 3604
048addec 36052003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 3606
048addec
JD
3607 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
3608 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 3609
048addec 36102003-01-10 Dave Love <fx@gnu.org>
4abc7470 3611
048addec 3612 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 3613
048addec 36142003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 3615
048addec
JD
3616 * process.c (Fmake_network_process): Convert new port number
3617 to host byte order for `:service t' case. From Mario Lang.
bf338245 3618
048addec 36192003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 3620
048addec
JD
3621 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
3622 instead of XtAppProcessEvent.
bf338245 3623
048addec
JD
3624 * xterm.c (handle_one_xevent): New function.
3625 (x_dispatch_event): New function.
3626 (XTread_socket): Call handle_one_xevent.
bf338245 3627
048addec 3628 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 3629
048addec
JD
3630 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
3631 call XQueryPointer to get coordinates.
3632 (popup_get_selection): Do not set popup_activated_flag to zero,
3633 let popup_deactivate_callback do that. Needed for Motif.
3634 Call x_dispatch_event instead of XtDispatchEvent.
3635 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 3636
048addec 36372003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 3638
6bdb309a 3639 * process.c (server_accept_connection): Fix recording of new
048addec
JD
3640 connection's local address in :local property of contact info.
3641 (Fmake_network_process): Record local network address for new
3642 client processes in :local property of contact info.
6bdb309a 3643 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 3644
048addec 36452003-01-07 Dave Love <fx@gnu.org>
00e3ab56 3646
048addec 3647 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 3648
048addec 36492003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 3650
048addec 3651 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 3652
048addec
JD
3653 * eval.c (Fuser_variable_p): Doc change. For custom variables,
3654 use the same test as for custom-variable-p.
8c6d74c6 3655
048addec 36562003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 3657
048addec
JD
3658 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
3659 Count LAST_LINE_MISFIT in scroll margin for end of window.
3660 Move label too_near_end before setting SCROLL_MARGIN_POS.
3661 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 3662
048addec
JD
3663 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
3664 scroll_conservatively case. If scrolling that much doesn't change
3665 STARTP, move it down one line.
e833850f 3666
048addec
JD
3667 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
3668 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 3669
048addec
JD
3670 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
3671 selected frame.
8c6d74c6 3672
048addec
JD
3673 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
3674 (syms_of_keymap): staticpro them.
3675 (Fapropos_internal): Initialize them and clear them out.
3676 Don't GCPRO them.
8c6d74c6 3677
048addec
JD
3678 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
3679 Doc fixes.
8c6d74c6 3680
048addec
JD
3681 * lisp.h: New misc type Lisp_Save_Value.
3682 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
3683 (XSAVE_VALUE): New macro.
3684 (struct Lisp_Save_Value): New data type.
3685 (union Lisp_Misc): Add u_save_value alternative.
3686 (make_save_value): Declared.
8c6d74c6 3687
048addec 3688 * alloc.c (make_save_value): New function.
8c6d74c6 3689
048addec
JD
3690 * xterm.c (x_catch_errors): Save dpy using make_save_value.
3691 (x_catch_errors_unwind): Call XSync.
8c6d74c6 3692
048addec 36932003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 3694
048addec 3695 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 3696
048addec
JD
3697 * keyboard.c (command_loop_1): Call adjust_point_for_property
3698 in direct action cases for Qforward_char and Qbackward_char.
3699 Set already_adjusted so it won't be done twice.
8c6d74c6 3700
048addec 37012002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
8c6d74c6 3702
048addec
JD
3703 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
3704 type definition of size_t.
8c609cff 3705
048addec 37062003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 3707
048addec
JD
3708 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
3709 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 3710
048addec 37112002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 3712
048addec
JD
3713 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
3714 to default to t.
fa634a5e 3715
048addec 37162002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 3717
048addec 3718 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 3719
048addec 37202002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 3721
048addec
JD
3722 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
3723 allow building in a different directory than source. Uses some
3724 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 3725
048addec 37262002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 3727
048addec
JD
3728 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
3729 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
3730 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
3731 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 3732
048addec 37332002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 3734
048addec
JD
3735 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
3736 <scroll-down-aggressively>: Doc fix.
2155ecf3 3737
048addec
JD
3738 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
3739 string as pane name, if there is one.
3740 (set_frame_menubar): Save menu_items_n_panes from each call to
3741 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 3742
048addec
JD
3743 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
3744 Don't try to make last line fully visible if it is past end of window.
61f1d295 3745
048addec 37462002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 3747
048addec
JD
3748 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
3749 (mac_menu_show): Add support for hierarchical popup menus.
3750 (add_menu_item): Remove indentation support.
3751 (fill_submenu, fill_menu): Create hierarchical menus
3752 instead of using indentation.
0b17a217 3753
048addec 37542002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 3755
048addec
JD
3756 * xdisp.c (try_cursor_movement): Don't call try_window here.
3757 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 3758
048addec 3759 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 3760
048addec 37612002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 3762
048addec
JD
3763 * macterm.c (XTread_socket): Call KeyTranslate for control and
3764 meta to deal correctly shifted non-alpha characters, like C-S-5
3765 being treated like C-%. Does not look for shift key to deal
3766 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 3767
048addec 37682002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 3769
048addec
JD
3770 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
3771 If it is non-nil, run timers. Use an unwind-protect to requeue
3772 the events that were read ahead.
3773 (popup_get_selection_unwind): New subroutine.
3774 (popup_get_selection_queue): File-scope variable now holds that queue.
3775 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
3776 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
3777 Use an unwind-protect to pop down the dialog box.
3778 (xdialog_show_unwind): New subroutine implements that.
f02cac82 3779
048addec
JD
3780 * xdisp.c (row_containing_pos): Change exit test using last_y.
3781 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 3782
048addec
JD
3783 * lread.c (load_error_handler): New function.
3784 (Fload): Handle errors in Fsubstitute_in_file_name.
3785 Don't expect Fsignal to return.
f02cac82 3786
048addec
JD
3787 * eval.c: Errors and throws work right with interrupt blocking.
3788 (struct catchtag): New elt interrupt_input_blocked.
3789 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
3790 (internal_catch, Fcondition_case, internal_condition_case)
3791 (internal_condition_case_1, internal_condition_case_2): Save it.
3792 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 3793
048addec 3794 * editfns.c (Fformat): Add parens.
f02cac82 3795
048addec
JD
3796 * dired.c (file_name_completion): Fix that change.
3797 Delete special quit-handling code; just use QUIT.
f02cac82 3798
048addec 37992002-12-21 Tak Ota <Takaaki.Ota@am.sony.com> (tiny change)
f02cac82 3800
048addec
JD
3801 * dired.c (file_name_completion): Close directory on error
3802 just as in directory_files_internal.
1a590729 3803
048addec 38042002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 3805
048addec
JD
3806 * window.c (Fset_window_configuration): Set old_point to correct
3807 value when new_current_buffer == current_buffer.
f02cac82 3808
048addec 38092002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 3810
048addec
JD
3811 Revisited my earlier fix for the following entry in etc/PROBLEMS:
3812 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
3813 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 3814
048addec
JD
3815 These changes were in part based upon suggestions made by Peter
3816 'Luna' Runestig [peter@runestig.com].
9785d95b 3817
048addec
JD
3818 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
3819 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 3820 g_b_init_get_sid_identifier_authority ): Add several static
048addec 3821 global variables.
9785d95b 3822
048addec
JD
3823 * w32.c (globals_of_w32): New function. Used to initialize those
3824 global variables that must always be initialized on startup even
3825 when the global variable initialized is non zero. Its primary
3826 purpose at this time is to set the global variables
3827 g_b_init_is_windows_9x, g_b_init_open_process_token,
3828 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
3829 g_b_init_get_sid_identifier_authority to 0 on startup.
3830 Called from main.
9785d95b 3831
048addec
JD
3832 * w32.c (is_windows_9x): Perform initialization only if
3833 g_b_init_is_windows_9x is equal to 0. On initialization set
3834 g_b_init_is_windows_9x equal to 1.
2308af15 3835
048addec
JD
3836 * w32.c (open_process_token): Perform initialization only if
3837 g_b_init_open_process_token is equal to 0. On initialization set
3838 g_b_init_open_process_token equal to 1.
2308af15 3839
048addec
JD
3840 * w32.c (get_token_information): Perform initialization only if
3841 g_b_init_get_token_information is equal to 0. On initialization
3842 set g_b_init_get_token_information equal to 1.
9785d95b 3843
048addec
JD
3844 * w32.c (lookup_account_sid): Perform initialization only if
3845 g_b_init_lookup_account_sid is equal to 0. On initialization
3846 set g_b_init_lookup_account_sid equal to 1.
9785d95b 3847
048addec
JD
3848 * w32.c (get_sid_identifier_authority): Perform initialization
3849 only if g_b_init_get_sid_identifier_authority is equal to 0.
3850 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 3851
048addec
JD
3852 * w32fns.c (globals_of_w32fns): New function. Used to initialize
3853 those global variables that must always be initialized on startup
3854 even when the global variable initialized is non zero.
3855 Its primary purpose at this time is to initialize the global variable
3856 track_mouse_event_fn.
9785d95b 3857
048addec
JD
3858 * w32fns.c (w32_wnd_proc): Remove initialization of
3859 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 3860
048addec 3861 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 3862
048addec
JD
3863 * w32menu.c (globals_of_w32menu): New function. Used to
3864 initialize those global variables that must always be initialized
3865 on startup even when the global variable initialized is non zero.
3866 Its primary purpose at this time is to initialize the global
3867 variables get_menu_item_info and set_menu_item_info.
9785d95b 3868
048addec
JD
3869 * w32menu.c (initialize_frame_menubar): Remove initialization of
3870 get_menu_item_info and set_menu_item_info.
9785d95b 3871
048addec 3872 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 3873
048addec
JD
3874 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
3875 Declare them.
9785d95b 3876
048addec
JD
3877 * emacs.c (main): Call globals_of_w32 prior to calling
3878 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
3879 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
3880 is defined.
9785d95b 3881
048addec
JD
3882 * w32term.c (x_update_window_begin): Fix Windows API error
3883 detected by BoundsChecker. Test to determine if
3884 w32_system_caret_hwnd is NULL prior to attempting to use
3885 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 3886
048addec
JD
3887 * w32term.c (x_update_window_end): Fix Windows API error
3888 detected by BoundsChecker. Test to determine if
3889 w32_system_caret_hwnd is NULL prior to attempting to use
3890 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 3891
048addec 38922002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 3893
048addec
JD
3894 * coding.c (coding_system_require_warning): New variable.
3895 (syms_of_coding): DEFVAR it.
b6da19ef 3896
048addec 3897 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 3898
048addec
JD
3899 * fileio.c (choose_write_coding_system): Even if
3900 Vcoding_system_for_write is non-nil, if
3901 coding_system_require_warning is nonzero, call
3902 Vselect_safe_coding_system_function.
bfcf6dbe 3903
048addec 39042002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 3905
048addec
JD
3906 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
3907 (lisp): Add font-core.
2c568af5 3908
048addec 39092002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 3910
048addec
JD
3911 * textprop.c (text_read_only): New arg `propval'.
3912 (get_char_property_and_overlay): Remove unused var `next_overlay'.
3913 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 3914
048addec 39152002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 3916
048addec 3917 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 3918
048addec 39192002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 3920
048addec
JD
3921 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
3922 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
3923 Be more careful about when help_events are generated.
96720f09 3924
048addec 39252002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 3926
048addec
JD
3927 * macterm.c (mac_check_for_quit_char): Correctly set the
3928 modifiers of the event to 0.
3929 * mac.c (sys_select): Duplicate rfds before calling select to
3930 ensure that rfds survive the while loop.
e5ae1c49 3931
048addec 39322002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 3933
048addec
JD
3934 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
3935 row_containing_pos returned NULL.
2eb46b2d 3936
048addec 39372002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 3938
6bdb309a 3939 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 3940 non-blocking.
6bdb309a 3941 (sys_select): Fix sys_select to not use a timeout larger than
048addec 3942 the one given.
b11f1d8a 3943
048addec 39442002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 3945
048addec 3946 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 3947
048addec 39482002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 3949
048addec
JD
3950 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
3951 as the last thing.
a4ac5b17 3952
048addec 39532002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 3954
048addec 3955 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 3956
048addec 39572002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 3958
048addec
JD
3959 * editfns.c (Fformat): Handle precision in string conversion
3960 specifiers like libc functions do (ie, print at most that many
3961 characters).
85cce843 3962
048addec 39632002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 3964
048addec
JD
3965 * xdisp.c (row_containing_pos): Check more carefully
3966 whether charpos is really in the row before returning it.
0d4d26a7 3967
048addec 39682002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 3969
048addec 3970 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 3971
048addec
JD
3972 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
3973 each stack frame. This may change as it could be time consuming.
0d4d26a7 3974
048addec
JD
3975 * macterm.c (mac_check_for_quit_char, quit_char_comp)
3976 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 3977 (mac_initialize): Add code to check for pressing of quit_char
048addec 3978 in the OS event queue.
b11f1d8a 3979
048addec
JD
3980 * mac.c (sys_select): Call mac_check_for_quit_char every second
3981 while blocking on select.
0d4d26a7 3982
048addec
JD
3983 * mac.c (sys_read): Use sys_select to test for input first
3984 before calling read, to allow C-g to break.
9252f7bc 3985
048addec 39862002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 3987
048addec 3988 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 3989
048addec 3990 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 3991
048addec 3992 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 3993
048addec
JD
3994 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
3995 autoload.
9252f7bc 3996
048addec 3997 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 3998
048addec 3999 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 4000
048addec 40012002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 4002
048addec 4003 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 4004
048addec 40052002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 4006
048addec 4007 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 4008
048addec 4009 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 4010
048addec 4011 * alloca.c: Don't use #error.
02d588e2 4012
048addec 40132002-12-03 Dave Love <fx@gnu.org>
02d588e2 4014
048addec
JD
4015 * buffer.c (Qucs_set_table_for_input): New.
4016 (Fget_buffer_create): Use it.
4017 (Qset_buffer_major_mode_hook): Deleted.
4018 (Fset_buffer_major_mode): Revert previous change.
4019 (init_buffer_once): Intern ucs-set-table-for-input.
4020 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
4021 Add &Qucs_set_table_for_input.
451e2697 4022
048addec 40232002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 4024
048addec
JD
4025 * callint.c (Fcall_interactively): Use next_event only if less
4026 than key_count.
72742a99 4027
048addec 40282002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 4029
048addec
JD
4030 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
4031 names to 255 characters.
72742a99 4032
048addec
JD
4033 * macterm.c (XTread_socket): If all frames have been collapsed,
4034 expand the first one before handling drag-and-drop events.
72742a99 4035
048addec
JD
4036 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
4037 which is detected by autoconf.
40e6ff95 4038
048addec 40392002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 4040
048addec
JD
4041 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
4042 offset in two hints table to allow prebinding to be redone and
4043 allow the executable to be stripped.
c02138c6 4044
048addec 40452002-11-29 Dave Love <fx@gnu.org>
c02138c6 4046
048addec
JD
4047 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
4048 already provided.
0e47bbf7 4049
048addec 40502002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 4051
048addec
JD
4052 * xdisp.c (start_display): Check more intelligently for
4053 whether the line is continued.
4054 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 4055
048addec 40562002-11-28 Dave Love <fx@gnu.org>
44129dcb 4057
048addec
JD
4058 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
4059 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 4060
048addec 40612002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 4062
048addec
JD
4063 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
4064 more descriptive error output from lread.c:Fload upon most require
4065 cycles during boostrapping.
1637fd2c 4066
048addec 40672002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 4068
048addec
JD
4069 * fileio.c (Finsert_file_contents): Give a more appropriate error
4070 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 4071
048addec
JD
4072 * dired.c (Ffile_attributes): Don't return negative file sizes for
4073 files bigger than 2Gb when off_t is 32 bit.
540c2788 4074
048addec 40752002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 4076
048addec 4077 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 4078
048addec
JD
4079 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
4080 Test GETPGRP_VOID instead.
4081 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 4082
048addec
JD
4083 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
4084 Don't define.
4085 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 4086
048addec 4087 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 4088
048addec 40892002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 4090
048addec
JD
4091 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
4092 supported.
4042a81a 4093
048addec 40942002-11-25 Dave Love <fx@gnu.org>
4042a81a 4095
048addec 4096 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 4097
048addec 4098 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 4099
048addec 41002002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 4101
048addec 4102 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 4103
048addec 41042002-11-24 Steven Tamm <steventamm@mac.com>
82122254 4105
048addec
JD
4106 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
4107 determine the size of pointers alloced in unexed space instead
4108 of using possibly invalid emacs_zone pointers. This fixes the
4109 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 4110
048addec 41112002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 4112
048addec 4113 * search.c (Fstring_match): Doc fix.
c1ee53bc 4114
048addec
JD
4115 * callint.c (Fcall_interactively): If a command fails because
4116 `*' detects a read-only buffer, but RECORD_FLAG is set,
4117 record it anyway if the args don't actually do tty input.
5598c32e 4118
048addec 41192002-11-22 Dave Love <fx@gnu.org>
5598c32e 4120
048addec 4121 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 4122
048addec
JD
4123 * keyboard.c (interrupt_signal): Provide forward declaration.
4124 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 4125
048addec 4126 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 4127
048addec 41282002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 4129
048addec
JD
4130 * eval.c (interactive_p): Skip any number of bytecode
4131 and special form frames, in any order.
516eea8e 4132
048addec 41332002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 4134
048addec
JD
4135 * w32fns.c (convert_mono_to_color_image): New function.
4136 (xbm_load, xbm_load_image): Use it when foreground or background
4137 is explicitly set.
04dbfa08 4138
048addec 41392002-11-19 Dave Love <fx@gnu.org>
04dbfa08 4140
048addec 4141 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 4142
048addec 41432002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 4144
048addec
JD
4145 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
4146 (XPutPixel): Swap blue and red.
4147 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
4148 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
4149 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
4150 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 4151
048addec 41522002-11-18 Dave Love <fx@gnu.org>
d824beee 4153
048addec 4154 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 4155
048addec 4156 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 4157
048addec 4158 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 4159
048addec
JD
4160 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
4161 malloc, realloc, calloc.
d824beee 4162
048addec
JD
4163 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
4164 (bcmp): Don't define.
d824beee 4165
048addec 4166 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 4167
048addec 4168 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 4169
048addec 4170 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 4171
048addec 4172 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 4173
048addec
JD
4174 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
4175 Don't include alloca.h.
d824beee 4176
048addec 4177 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 4178
048addec 4179 * regex.c (_GNU_SOURCE): Don't define.
1998560a 4180
048addec 4181 * process.c (_GNU_SOURCE): Don't define.
1998560a 4182
048addec 4183 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 4184
048addec 41852002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 4186
048addec 4187 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 4188
048addec 41892002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 4190
048addec
JD
4191 * dispextern.h (struct face): Add `overstrike' field.
4192 * xterm.c (x_draw_glyph_string_foreground)
4193 (x_draw_composite_glyph_string_foreground): Implement overstriking.
4194 * xfaces.c (load_face_font): Set `face->overstrike' based on
4195 result from choose_face_font.
4196 (best_matching_font, choose_face_font): Add `needs_overstrike'
4197 argument, and use it to return whether overstriking is desirable
4198 for this face/font combo.
4199 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 4200
048addec 42012002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 4202
048addec
JD
4203 This change is my fix for the following entry in etc/PROBLEMS:
4204 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
4205 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 4206
048addec
JD
4207 * w32.c: Added wrapper functions around the win32 API functions
4208 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
4209 GetSidIdentifierAuthority. These wrapper functions serve two
4210 purposes:
4211 1. They ensure that the wrapped function can never be called
4212 when Emacs is running on an operating system on which they are
4213 not supported (Microsoft Windows 95 / 98 / ME).
4214 2. They call the wrapped functions via function pointers rather
4215 than calling them directly. This avoids taking advantage of the
4216 undocumented fact that although these functions are not supported
4217 in the 9x branch of Microsoft Windows, the functions do exist in
4218 the version of advapi32.dll that is found in the 9x branch of
4219 Microsoft Windows.
f60ae425 4220
6bdb309a 4221 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
4222 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
4223 and GetSidIdentifierAuthority with calls to the newly added
4224 wrapper functions.
f60ae425 4225
048addec
JD
4226 * w32.h: Added extern declarations for the following functions:
4227 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
4228 syms_of_w32menu, and void syms_of_fontset.
f60ae425 4229
6bdb309a 4230 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
4231 function pointer track_mouse_event_fn in the handler for the
4232 WM_SETFOCUS message.
3582b6a3 4233
6bdb309a 4234 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
4235 reinitialize the function pointers set_menu_item_info and
4236 get_menu_item_info.
f60ae425 4237
048addec 42382002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 4239
048addec
JD
4240 * sound.c: Added a partial implementation of play-sound-internal
4241 for Microsoft Windows. Added various #ifdef / #else / #endif
4242 code blocks to separate the code that will compile under
4243 Microsoft Windows from the code that is specific to Gnu/Linux.
4244 Moved several blocks of code around to make this separation of code
4245 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 4246
048addec 4247 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 4248
048addec
JD
4249 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
4250 added support for play-sound-internal under Windows would be
4251 included in the build of Emacs.
517f42a0 4252
048addec 42532002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 4254
048addec 4255 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 4256
048addec 4257 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 4258
048addec 42592002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 4260
048addec
JD
4261 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
4262 (adjust_point_for_property): Move out of display and invisible even if
4263 we were already inside before (in case a property was added while
4264 we weren't looking). Be more careful when handling invisible props.
4265 Skip invisible text as if it really wasn't there at all.
aab83f91 4266
048addec 42672002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 4268
048addec
JD
4269 * w32term.c (x_draw_image_foreground)
4270 (w32_draw_image_foreground_1): Use standard copy and invert
4271 operations to draw images.
aab83f91 4272
048addec
JD
4273 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
4274 depth of 1.
4275 (xbm_read_bitmap_data): Invert bits as xbm is read in.
4276 (XPutPixel): Don't invert bits here.
a4478a76 4277
048addec 42782002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 4279
048addec
JD
4280 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
4281 (w32_draw_image_foreground_1): Handle image masks.
4282 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 4283
048addec
JD
4284 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
4285 (x_from_xcolors): Adjust RGB values for W32.
4286 (image_background, image_background_transparent)
4287 (postprocess_image, x_to_xcolors, x_disable_image)
4288 (x_build_heuristic_mask): Adapt for W32 and enable.
4289 (x_create_x_image_and_pixmap): Mark images with palettes as such.
4290 (xbm_load): Remove unused variable.
03670a65 4291
048addec 42922002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 4293
048addec 4294 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 4295
048addec 42962002-11-14 Dave Love <fx@gnu.org>
59daa29a 4297
048addec 4298 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 4299
048addec
JD
4300 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
4301 * xmenu.c (unuse_menu_items, digest_single_submenu):
4302 * xfns.c (x_put_x_image):
4303 * xdisp.c (message2_nolog, set_message):
4304 * undo.c (record_point):
4305 * terminfo.c (tparam):
4306 * syntax.c (scan_sexps_forward):
4307 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
4308 * composite.c (update_compositions):
4309 * cm.c (calccost, cmgoto):
4310 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 4311
048addec 4312 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 4313
048addec
JD
4314 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
4315 Don't declare.
59daa29a 4316
048addec 4317 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 4318
048addec
JD
4319 * fns.c (Fcopy_sequence): Doc fix.
4320 (Fmap_char_table): Cast `call2'.
3947677c 4321
048addec
JD
43222002-11-14 Francesco Potorti` <pot@gnu.org>
4323
4324 * s/sol2-8.h: New file.
4325
43262002-11-14 Kim F. Storm <storm@cua.dk>
4327
4328 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
4329 dependency on `risky-local-variable' and the :propertize form.
4330
43312002-11-12 Stefan Monnier <monnier@cs.yale.edu>
4332
4333 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
4334
4335 * syntax.c (scan_sexps_forward): Undo last patch.
4336 Use a more obvious fix: check eob before updating the syntax table.
4337
43382002-11-09 Stefan Monnier <monnier@cs.yale.edu>
4339
4340 * syntax.c (scan_sexps_forward): Update syntax table before reading
4341 a char rather than after so we don't update the table past eob.
4342
43432002-11-09 Dave Love <fx@gnu.org>
4344
4345 * buffer.c (Fset_buffer_major_mode): Fix last change.
4346
4347 * regex.c (regexec): Fix pmatch declaration.
4348
4349 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
4350
4351 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
4352 to self-inserting characters.
4353 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
4354
4355 * coding.c (Vtranslation_table_for_input): New.
4356 (syms_of_coding): DEFVAR it.
4357
43582002-11-08 Juanma Barranquero <lektu@terra.es>
4359
4360 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
4361 window.
4362
43632002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4364
6bdb309a 4365 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
4366 cp, and i.
4367
43682002-11-06 Dave Love <fx@gnu.org>
4369
4370 * buffer.c (Qset_buffer_major_mode_hook): New.
4371 (Fset_buffer_major_mode): Use it.
4372
43732002-11-06 Richard M. Stallman <rms@gnu.org>
4374
4375 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
4376 and stop_polling.
4377
4378 * process.c (wait_reading_process_input):
4379 Test POLLING_PROBLEM_IN_SELECT, not hpux.
4380 Avoid initialization for auto Lisp_Object var.
4381
4382 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
4383
4384 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
4385
43862002-11-05 Richard M. Stallman <rms@gnu.org>
4387
4388 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
4389
4390 * callint.c (Fcall_interactively): New local filter_specs.
4391 (Fcall_interactively): Check for progn as well as let.
4392 Add a gcpro.
4393 (Qprogn): New variable.
4394 (syms_of_callint): Staticpro and init Qprogn.
4395
43962002-11-04 John Paul Wallington <jpw@shootybangbang.com>
4397
4398 * lread.c (Feval_buffer): Doc fix.
4399
44002002-11-04 Dave Love <fx@gnu.org>
4401
4402 * keyboard.c (read_char): Always translate iff
4403 Vkeyboard_translate_table is a char table and c is valid.
4404
4405 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
4406 and fix C types.
4407
44082002-11-03 Stefan Monnier <monnier@cs.yale.edu>
4409
4410 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
4411
4412 * editfns.c (get_pos_property): Don't hardcode Qfield.
4413
4414 * keyboard.c (adjust_point_for_property): Handle `display' prop on
4415 overlays. Also handle `invisible' prop.
4416
44172002-11-02 Stefan Monnier <monnier@cs.yale.edu>
4418
4419 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
4420 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
4421
44222002-11-01 Andreas Schwab <schwab@suse.de>
4423
4424 * editfns.c (Fmessage): Revert last change to properly handle %%.
4425
44262002-11-01 Stefan Monnier <monnier@cs.yale.edu>
4427
4428 * xmenu.c (unuse_menu_items): New fun.
4429 (menu_items_inuse): New var.
4430 (syms_of_xmenu): Initialize it.
4431 (init_menu_items): Use it to detect re-entrance.
4432 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
4433 (Fx_popup_menu): Remove spurious XSETFRAME.
4434
4435 * editfns.c (find_field): Make an exception for nil fields.
4436
44372002-11-01 Dave Love <fx@gnu.org>
4438
4439 * m/gec63.h: Deleted.
4440
44412002-10-31 Dave Love <fx@gnu.org>
4442
4443 * xterm.c (XTread_socket): Fix last change.
4444 (xaw_scroll_callback): Cast call_data to long to avoid warning.
4445
44462002-10-31 Stefan Monnier <monnier@cs.yale.edu>
4447
4448 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
4449
44502002-10-30 Stefan Monnier <monnier@cs.yale.edu>
4451
4452 * editfns.c (overlays_around, get_pos_property): New funs.
4453 (find_field): Use them.
4454 Also be careful not to modify POS before its last use.
4455 (Fmessage): Don't Fformat if there's nothing to format.
4456
44572002-10-30 Dave Love <fx@gnu.org>
4458
4459 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
4460 [HAVE_PTY_H]; Include pty.h.
4461
4462 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
4463
4464 * xterm.c (Qeql): Declare.
4465 (Vx_keysym_table): New.
4466 (syms_of_xterm): Initialize it.
4467 (XTread_socket): Use it. Deal with ASCII keysyms.
4468 (XSetIMValues) [HAVE_X11R6]: Prototype.
4469
4470 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
4471 (lispy_kana_keys): Comment out.
4472 (make_lispy_event) [XK_kana_A]: Comment out.
4473 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
4474 Fix sprintf call.
4475
4476 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
4477 regexp.h change).
4478 (TERMINFO, LIBS_TERMCAP): Define.
4479
4480 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
4481 (bcmp): Define conditional on HAVE_BCMP.
4482 (NO_SIOCTL_H): Don't define.
4483 (TIOCSIGSEND): Don't make conditional on IRIX6.
4484
4485 * s/sol2-5.h: Don't include strings.h.
4486 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
4487
4488 * s/irix6-0.h (IRIX6): Don't define.
4489 (bcopy, bcmp, bzero): Don't undef.
4490
4491 * s/irix6-5.h: Don't include strings.h.
4492 (IRIX6): Don't define.
4493 (bcopy, bcmp, bzero): Don't undef.
4494
4495 * syntax.c (Fforward_comment): Doc fix.
4496
44972002-10-29 Kim F. Storm <storm@cua.dk>
4498
4499 * process.c (Fsignal_process): Allow PROCESS to be specified by
4500 name in addition to pid (as integer or string).
4501
45022002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
4503
4504 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
4505 environments.
4506
45072002-10-27 Kim F. Storm <storm@cua.dk>
4508
4509 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
4510
4511 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
4512
4513 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
4514
4515 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
4516
45172002-10-26 Richard M. Stallman <rms@gnu.org>
4518
4519 * editfns.c (Fformat): Detect invalid format letters for floats.
4520
45212002-10-25 Kenichi Handa <handa@m17n.org>
4522
4523 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
4524 (x_set_title): Likewise.
4525
45262002-10-25 Juanma Barranquero <lektu@terra.es>
4527
4528 * macgui.h:
4529 * w32gui.h: Remove definition of XColor.
4530
4531 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
4532
45332002-10-24 Kim F. Storm <storm@cua.dk>
4534
4535 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
4536 Callers changed (supply dummy arg).
4537
4538 * lisp.h (get_window_cursor_type): Update prototype.
4539
4540 * w32term.c (x_display_and_set_cursor): Get active_cursor from
4541 get_window_cursor_type to track system caret.
4542
45432002-10-24 Kim F. Storm <storm@cua.dk>
4544
4545 * process.c (Fformat_network_address): New function.
4546 (syms_of_process): Defsubr it.
4547 (list_processes_1): Use it to format :local/:remote address if
4548 service/host is not set; before emacs would crash in that case.
4549 (Fmake_network_process): Don't use Ffind_operation_coding_system
4550 to setup coding system if host or service is not set.
4551
45522002-10-23 Juanma Barranquero <lektu@terra.es>
4553
4554 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
4555
4556 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
4557 COLORREF.
4558
4559 * macgui.h:
4560 * w32gui.h: Add definition of XColor.
4561
4562 * macfns.c:
4563 * w32fns.c:
4564 * xfaces.c: Remove definition of XColor.
4565
45662002-10-22 Stefan Monnier <monnier@cs.yale.edu>
4567
4568 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
4569
4570 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
4571 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
4572 window if it is dedicated.
4573 (Fshrink_window): Add preserve_before as was done for enlarge_window.
4574 (Vspecial_display_function): Update docstring.
4575
4576 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
4577 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
4578 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
4579
45802002-10-21 Stefan Monnier <monnier@cs.yale.edu>
4581
4582 * casefiddle.c (casify_region): Don't treat a prefix char as part
4583 of a word when at the beginning.
4584
45852002-10-17 Juanma Barranquero <lektu@terra.es>
4586
4587 * lread.c (syms_of_lread): Fix typos.
4588
45892002-10-17 Dave Love <fx@gnu.org>
4590
4591 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
4592
45932002-10-16 Richard M. Stallman <rms@gnu.org>
4594
4595 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
4596
45972002-10-14 Juanma Barranquero <lektu@terra.es>
4598
4599 * w16select.c (syms_of_win16select): Fix docstring for
4600 `selection-coding-system'.
4601
4602 * w32select.c (syms_of_w32select): Likewise.
4603
46042002-10-14 Stefan Monnier <monnier@cs.yale.edu>
4605
4606 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
4607 a backslash-quoted char.
4608 (scan_lists, scan_sexps_forward): Pacify the compiler.
4609
46102002-10-13 Richard M. Stallman <rms@gnu.org>
4611
4612 * window.c (window_scroll): Set immediate_quit.
4613
4614 * print.c (print): When backquote form is the car of a list,
4615 output in old style. Use old_backquote_output to output all
4616 comma forms inside it in old style too.
4617
4618 * buffer.h (struct buffer): Move `undo_list' down below `name'.
4619
46202002-10-11 Markus Rost <rost@math.ohio-state.edu>
4621
4622 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
4623 batch mode).
4624
4625 * lread.c (Fload): Doc fix (load-suffixes).
4626
46272002-10-10 Steven Tamm <steventamm@mac.com>
4628
4629 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
4630 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
4631 Also switch the default to Qnil from Qt.
4632
46332002-10-08 Kenichi Handa <handa@m17n.org>
4634
4635 * coding.c (code_convert_region): When we need more GAP for
4636 conversion, pay attention to the case that coding->produced is not
4637 greater than coding->consumed.
4638
46392002-10-07 Richard M. Stallman <rms@gnu.org>
4640
4641 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
4642
46432002-10-06 Andrew Choi <akochoi@shaw.ca>
4644
4645 * macmenu.c (mac_menu_show): Add j to count menu items; match
4646 menu_item_selection to it to find selected item.
4647
46482002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4649
4650 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
4651 cases. The correct fix is to pass ReparentNotify to Xt.
4652 The shell widget interprets ConfigureNotify differently depending
4653 on if it has been reparented or not.
4654
46552002-10-05 Markus Rost <rost@math.ohio-state.edu>
4656
4657 * editfns.c (Fformat_time_string): Doc fix.
4658
46592002-10-05 John Paul Wallington <jpw@shootybangbang.com>
4660
4661 * fns.c (Flength): Doc fix.
4662
46632002-10-04 Stefan Monnier <monnier@cs.yale.edu>
4664
4665 * keyboard.c (keyremap): New struct.
4666 (read_key_sequence): Use it: globally replace keytran_foo with
4667 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
4668 keytran_next and fkey_next to just `next'.
4669
46702002-10-04 Steven Tamm <steventamm@mac.com>
4671
4672 * macterm.c (keycode_to_xkeysym_table): Change return to be
4673 treated like an X keysym.
4674
46752002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4676
4677 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
4678 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
4679 This is to also handle x/y changes that occur because of a resize.
4680
46812002-10-02 John Paul Wallington <jpw@shootybangbang.com>
4682
4683 * frame.c (Vdelete_frame_functions): New variable.
4684 (syms_of_frame): Initialize and defvar it.
4685 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
4686 it when frame's `tooltip' parameter is non-nil.
4687
4688 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
4689
4690 * w32fns.c (x_create_tip_frame): Likewise.
4691
4692 * macfns.c (x_create_tip_frame): Likewise.
4693
46942002-09-30 Kenichi Handa <handa@m17n.org>
4695
4696 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
4697 -1 before calling ccl_driver.
4698
4699 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
4700 Only when it is non-nil, handle composition sequence.
4701 (setup_coding_system) <0>: Don't force composition handling.
4702
4703 * Makefile.in (lisp, shortlisp): Add utf-16.elc
4704
47052002-09-29 Richard M. Stallman <rms@gnu.org>
4706
4707 * search.c (Freplace_match): Adjust match data for the substitution
4708 just made in the buffer.
4709
4710 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
4711 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
4712
47132002-09-27 Richard M. Stallman <rms@gnu.org>
4714
4715 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
4716 (read_char): Use them. Do all exits thru the end of the function.
4717
47182002-09-27 Kenichi Handa <handa@etl.go.jp>
4719
4720 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
4721 is nil.
4722
47232002-09-26 Richard M. Stallman <rms@gnu.org>
4724
4725 * regex.h (__restrict_arr): Don't define if already defined.
4726
4727 * coding.c (run_pre_post_conversion_on_str):
4728 Save and restore Vdeactivate_mark.
4729
47302002-09-26 John Paul Wallington <jpw@shootybangbang.com>
4731
4732 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
4733
47342002-09-26 Kenichi Handa <handa@etl.go.jp>
4735
4736 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
4737 nonzero, try face's family at first. Otherwise try FAMILY at first.
4738 (choose_face_font): If C is a single byte char or latin-1, call
4739 try_font_list with PREFER_FACE_FAMILY 1.
4740
47412002-09-21 Richard M. Stallman <rms@gnu.org>
4742
4743 * window.c (select_window_1): Don't select frame.
4744 Set frame's selected window only when frame itself is selected.
4745 (Fselect_window): Doc fix.
4746
47472002-09-18 Kim F. Storm <storm@cua.dk>
4748
4749 * process.c (make-network-process): Doc fix (there is no
4750 network-server-log-function hook).
4751
47522002-09-18 Richard M. Stallman <rms@gnu.org>
4753
4754 * print.c (print): Clear out the unused parts of Vprint_number_table.
4755 (syms_of_print): Doc fix for `print-number-table'.
4756
4757 * unexelf.c (unexec): Undo previous change.
4758
47592002-09-17 Andreas Schwab <schwab@suse.de>
4760
4761 * m/alpha.h [LINUX]: Don't define DATA_START.
4762
47632002-09-16 Dave Love <fx@gnu.org>
4764
4765 * unexelf.c (unexec): Deal with .got, reinstating change from
4766 25-08-1999.
4767
47682002-09-13 Richard M. Stallman <rms@gnu.org>
4769
4770 * s/sol2-6.h (UNEXEC): Comment out definition.
4771
4772 * unexsol.c (unexec): Don't downcase first letter of error msg.
4773
4774 * xfaces.c (Fcolor_supported_p): Just one arg is required.
4775
47762002-09-12 Markus Rost <rost@math.ohio-state.edu>
4777
4778 * unexsol.c: Include buffer.h, charset.h, coding.h.
4779
47802002-09-11 Richard M. Stallman <rms@gnu.org>
4781
4782 * unexsol.c: Don't use report_file_error; do it by hand
4783 using dlerror.
4784
4785 * process.c (wait_reading_process_input, both versions):
4786 Before calling turn_on_atimers, call stop_polling.
4787
4788 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
4789
4790 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
4791 we go to too_near_end, call clear_glyph_matrix.
4792 (redisplay_window): After make_cursor_line_fully_visible,
4793 call clear_glyph_matrix and bypass `goto done'.
4794
4795 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
4796 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
4797
47982002-09-10 Richard M. Stallman <rms@gnu.org>
4799
4800 * fileio.c (Fdo_auto_save): Catch error making directory.
4801 Only call push_message if we need to.
4802 At the same time, make an unwind-protect to pop it.
4803 Rename local message_p to old_message_p.
4804 (do_auto_save_make_dir, do_auto_save_eh): New functions.
4805 (do_auto_save_unwind): Don't call pop_message.
4806
4807 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
4808
4809 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
4810
4811 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
4812
4813 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
4814
48152002-09-10 Stefan Monnier <monnier@cs.yale.edu>
4816
4817 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
4818 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
4819 (re_match_2_internal): Be more careful with infinite loops.
4820
48212002-09-10 Kim F. Storm <storm@cua.dk>
4822
4823 * macros.c (end_kbd_macro): New function.
4824 (Fend_kbd_macro): Use it.
4825
4826 * macros.h (end_kbd_macro): Declare extern.
4827
4828 * keyboard.c (Fdiscard_input): If defining keyboard macro,
4829 end and save it instead of discarding it.
4830
48312002-09-09 Markus Rost <rost@math.ohio-state.edu>
4832
4833 * s/sol2-6.h: Fix typo. Add comment.
4834
48352002-09-09 Richard M. Stallman <rms@gnu.org>
4836
4837 * regex.c (regnum_t): Use signed int, not unsigned int.
4838
4839 * s/sol2-6.h: New file.
4840
4841 * s/sol2-5.h (UNEXEC): Definition deleted.
4842
48432002-09-08 Kim F. Storm <storm@cua.dk>
4844
4845 * macros.c (executing_macro_index): Change type to EMACS_INT.
4846 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
4847
4848 * macros.h (executing_macro_index): Change type to EMACS_INT.
4849
48502002-09-06 Richard M. Stallman <rms@gnu.org>
4851
4852 * casetab.c (set_case_table): Make canon table point to eqv table.
4853
48542002-09-06 Juanma Barranquero <lektu@terra.es>
4855
4856 * coding.c (syms_of_coding): Fix spacing.
4857
4858 * composite.c (Fcompose_region_internal)
4859 (Fcompose_string_internal): Likewise.
4860
4861 * data.c (Flsh): Likewise.
4862
4863 * fontset.c (Fset_fontset_font): Likewise.
4864
4865 * macfns.c (Fx_server_max_request_size): Likewise.
4866
4867 * w16select.c (syms_of_win16select): Likewise.
4868
4869 * w32select.c (syms_of_w32select): Likewise.
4870
4871 * xselect.c (syms_of_xselect): Likewise.
4872
48732002-09-05 Richard M. Stallman <rms@gnu.org>
4874
4875 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
4876 call EXTEND_RANGE_TABLE and return a proper value.
4877 (set_image_of_range): Don't call set_image_of_range_1
4878 if no TRANSLATE or if range includes all of Latin-1.
4879 Only call it for the Latin-1 part of the range.
4880 For other cases, make two separate ranges,
4881 one for the original specified characters and one for
4882 their case-conversions.
4883
48842002-09-04 Richard M. Stallman <rms@gnu.org>
4885
4886 * s/sol2-5.h (UNEXEC): Use unexsol.o.
4887
4888 * window.c (displayed_window_lines): Correct for one-off bug
4889 in HEIGHT on non-window displays.
4890
4891 * regex.c (set_image_of_range_1): New function.
4892 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
4893 Return a value to indicate running out of memory.
4894 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
4895 (extend_range_table_work_area): New subroutine.
4896 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
4897 Different calling conventions, and used from set_image_of_range{,_1}.
4898 (IMMEDIATE_QUIT_CHECK): Definitions moved.
4899
49002002-09-04 Juanma Barranquero <lektu@terra.es>
4901
4902 * makefile.w32-in: All dependencies updated.
4903
49042002-09-01 Richard M. Stallman <rms@gnu.org>
4905
4906 * unexsol.c: New file.
4907
4908 * xfns.c (Qbox): Declare external, don't define.
4909
4910 * xdisp.c (redisplay_window) <force-start case>:
4911 If point is on semi-visible last line, reposition
4912 it at previous line.
4913
4914 * alloc.c (display_malloc_warning): Use display-warning.
4915 (malloc_warning_1): Function deleted.
4916
4917 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
4918
4919 * lread.c (read1): Handle #! by skipping the line.
4920
49212002-08-31 Richard M. Stallman <rms@gnu.org>
4922
4923 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
4924 Don't include LDFLAGS.
4925 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
4926
49272002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
4928
4929 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
4930 member of x_display_info unless we compile for some window system.
4931
49322002-08-31 Kim F. Storm <storm@cua.dk>
4933
4934 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
4935 (get_window_cursor_type): Don't use them.
4936 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
4937
49382002-08-30 Kenichi Handa <handa@etl.go.jp>
4939
4940 * xdisp.c (get_next_display_element): Fix previous change.
4941
49422002-08-30 Andrew Choi <akochoi@shaw.ca>
4943
4944 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
4945 (expose_window): Use it to fix the display of overlapping
4946 rows (merge code from xterm.c).
4947
4948 * macfns.c (Qbox): Add extern declaration.
4949
49502002-08-30 Juanma Barranquero <lektu@terra.es>
4951
4952 * w32fns.c (Qbox): Make extern.
4953 (syms_of_w32fns): Remove initialization of Qbox.
4954
49552002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
4956
4957 * xfns.c (Fx_open_connection): Fix error message.
4958
49592002-08-30 Kim F. Storm <storm@cua.dk>
4960
4961 The following changes consolidates the handling of the cursor
4962 type in xdisp.c, moving duplicate code and functionality from
4963 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
4964
4965 * frame.h (enum text_cursor_kinds): Consolidated here.
4966 Added DEFAULT_CURSOR value.
4967 (struct frame) <desired_cursor, cursor_width>
4968 <blink_off_cursor, blink_off_cursor_width>: New fields.
4969 Consolidated from output_x, output_w32 and output_mac structs.
4970 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
4971 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
4972
4973 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
4974 Variables consolidated here.
4975 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
4976 (Vcursor_in_non_selected_windows): Renamed from
4977 cursor_in_non_selected_windows and changed to Lisp_Object.
4978 (syms_of_xdisp): Define and staticpro new and moved variables.
4979 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
4980 consolidated here. Recognize Qhollow setting.
4981 (set_frame_cursor_types): New function to set frame cursor types
4982 based on the frame parameters.
4983 (get_window_cursor_type): New function to calculate new cursor
4984 type and width for the specified window. Based on duplicated
4985 code consolidated here.
4986 Enhancements: cursor-in-non-selected-windows may be a cursor type,
4987 check buffer-local alternate-cursor-type and blink-cursor-alist
4988 before using built-in blink off methods.
4989
4990 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
4991
4992 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
4993 (get_specified_cursor_type, get_window_cursor_type)
4994 (set_frame_cursor_types): Added prototypes.
4995
4996 * macfns.c (x_specified_cursor_type): Removed.
4997 (x_set_cursor_type): Use set_frame_cursor_types.
4998 (Qbar, Qbox): Removed.
4999 (syms_of_macfns): Don't intern or staticpro them.
5000
5001 * macterm.c (x_specified_cursor_type): Remove prototype.
5002 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
5003 (x_display_and_set_cursor): Use get_window_cursor_type.
5004 Remove unused local variables cursor_non_selected, active_cursor.
5005 Redraw cursor if hbar cursor width changes.
5006 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
5007
5008 * macterm.h (enum text_cursor_kinds): Removed.
5009 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
5010 <blink_off_cursor, blink_off_cursor_width>: Members removed.
5011 (FRAME_DESIRED_CURSOR): Macro removed.
5012
5013 * w32fns.c (Vblink_cursor_alist): Removed.
5014 (Qbar, Qhbar, Qbox, Qhollow): Removed.
5015 (syms_of_w32fns): Don't intern, staticpro, or define them.
5016 (x_specified_cursor_type): Removed.
5017 (x_set_cursor_type): Use set_frame_cursor_types.
5018
5019 * w32term.c (x_specified_cursor_type): Remove prototype.
5020 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
5021 (x_display_and_set_cursor): Use get_window_cursor_type.
5022 Remove unused local variables cursor_off_state.
5023 Redraw cursor if hbar cursor width changes.
5024 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
5025
5026 * w32term.h (enum text_cursor_kinds): Removed.
5027 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
5028 <blink_off_cursor, blink_off_cursor_width>: Members removed.
5029 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
5030 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
5031 (struct w32_display_info) <x_highlight_frame>: Renamed member from
5032 w32_highlight_frame.
5033
5034 * xfns.c (Vblink_cursor_alist): Removed.
5035 (Qbar, Qhbar, Qbox, Qhollow): Removed.
5036 (syms_of_xfns): Don't intern, staticpro, or define them.
5037 (x_specified_cursor_type): Removed.
5038 (x_set_cursor_type): Use set_frame_cursor_types.
5039
5040 * xterm.c (x_specified_cursor_type): Remove prototype.
5041 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
5042 (x_display_and_set_cursor): Use get_window_cursor_type.
5043 Remove unused local variables cursor_off_state.
5044 Redraw cursor if hbar cursor width changes.
5045
5046 * xterm.h (enum text_cursor_kinds): Removed.
5047 (struct output_x) <current_cursor, desired_cursor, cursor_width>
5048 <blink_off_cursor, blink_off_cursor_width>: Members removed.
5049 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
5050 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
5051 (x_specified_cursor_type): Remove prototype.
5052
50532002-08-28 Richard M. Stallman <rms@gnu.org>
5054
5055 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
5056 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
5057 (Vblink_cursor_alist): New variable.
5058 (syms_of_w32fns): Initialize and defvar it.
5059 (x_specified_cursor_type): Recognize Qbox for filled box.
5060 Exceptions are hollow boxes.
5061 (Qbox, Qhollow): New variables.
5062 (syms_of_w32fns): Initialize and staticpro them.
5063
5064 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
5065 New macros.
5066 (struct w32_output): New fields blink_off_cursor,
5067 blink_off_cursor_width.
5068 (FRAME_CURSOR_WIDTH): New macro.
5069
5070 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
5071 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
5072
5073 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
5074 for bar cursor.
5075
5076 * w32term.c (expose_overlaps): New function.
5077 (expose_window): Use it to fix the display of overlapping rows.
5078
50792002-08-28 Simon Josefsson <jas@extundo.com>
5080
5081 * xfns.c (Fx_open_connection): Improve help when X connection
5082 fails, xhost is insecure and xauth is better.
5083
50842002-08-28 Juanma Barranquero <lektu@terra.es>
5085
5086 * makefile.w32-in: Add missing dependencies on w32term.h and
5087 composite.h.
5088
5089 * emacs.c (USAGE1): Add missing newline.
5090
50912002-08-27 Andrew Choi <akochoi@shaw.ca>
5092
5093 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
5094
50952002-08-27 Richard M. Stallman <rms@gnu.org>
5096
5097 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
5098 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
5099 (Vblink_cursor_alist): New variable.
5100 (syms_of_xfns): Initialize and defvar it.
5101 (x_specified_cursor_type): Recognize Qbox for filled box.
5102 Exceptions are hollow boxes.
5103 (Qbox, Qhollow): New variables.
5104 (syms_of_xfns): Initialize and staticpro them.
5105
5106 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
5107 New macros.
5108 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
5109
5110 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
5111 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
5112
5113 * emacs.c (main): Handle --script.
5114 (USAGE1): Mention --script.
5115 (standard_args): Define sort order for --script.
5116
51172002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
5118
5119 * xdisp.c (redisplay_updating_p): Variable removed.
5120 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
5121 New variables.
5122 (init_iterator): Don't free realized faces if
5123 inhibit_free_realized_faces is set.
5124 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
5125 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
5126 initialize Qinhibit_free_realized_faces.
5127
5128 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
5129 when iterator is adding glyphs to a glyph matrix.
5130
51312002-08-27 Kenichi Handa <handa@etl.go.jp>
5132
5133 * xdisp.c (get_next_display_element): In unibyte case, don't use
5134 octal form for such eight-bit characters that can be converted to
5135 multibyte char.
5136
51372002-08-26 Kim F. Storm <storm@cua.dk>
5138
5139 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize foreground
5140 and background colors. From Joe Buehler (tiny change).
5141
51422002-08-26 Miles Bader <miles@gnu.org>
5143
5144 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
5145
51462002-08-25 Andrew Choi <akochoi@shaw.ca>
5147
5148 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
5149 defined instead of MAC_OSX.
5150
5151 * s/darwin.h (select): Define select to sys_select only if
5152 HAVE_CARBON is defined.
5153 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
5154 (DONT_REOPEN_PTY): #def it.
5155
5156 * macterm.c (XTread_socket): Remove code to call
5157 SendEventToEventTarget for keys with command modifiers when
5158 mac_command_key_is_meta is nil.
5159
51602002-08-24 Andreas Schwab <schwab@suse.de>
5161
5162 * eval.c (Fdefvar): Fix last change.
5163
51642002-08-23 Richard M. Stallman <rms@gnu.org>
5165
5166 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
5167 Record variables in load history as (defvar . VAR).
5168 (Fdefvar): Don't record in load history if no initial value.
5169 (Qdefvar): New variable.
5170 (syms_of_eval): Init and staticpro it.
5171
5172 * lread.c (syms_of_lread): Doc fix.
5173 (build_load_history): Use Fmember to see if a definition
5174 is already in the Vload_history element.
5175
5176 * process.c (Fstart_process): Remove /: from program name.
5177
5178 * emacs.c (decode_env_path): Don't add /: if file name handler
5179 has a `safe-magic' property.
5180
5181 * callproc.c (Fcall_process): Remove /: from program name.
5182
51832002-08-23 Stefan Monnier <monnier@cs.yale.edu>
5184
5185 * regex.c (PATFETCH): Remove the translating fetch.
5186 (PATFETCH_RAW): Rename to PATFETCH.
5187 (set_image_of_range): New fun.
5188 (SET_RANGE_TABLE_WORK_AREA): Use it.
5189 (regex_compile): Don't translate the pattern chars so eagerly.
5190 Only do it when inserting an `exactn' bytecode or when handling
5191 a char-range.
5192 (mutually_exclusive_p): Avoid empty statement.
5193
51942002-08-22 Kim F. Storm <storm@cua.dk>
5195
5196 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
5197 end up on a partially visible line; this reverts a specific part
5198 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
5199 display error which has been reported several times now.
5200 However it introduces the problem that changes was supposed to fix.
5201 See my comments in the source if you want to debug this further.
5202
52032002-08-20 Kenichi Handa <handa@etl.go.jp>
5204
5205 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
5206
52072002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
5208
5209 * msdos.c (croak): Add `void' to definition.
5210
5211 * sysdep.c [MSDOS] (request_sigio, unrequest_sigio):
5212 Don't define them, they are defined in msdos.c.
5213
5214 * mem-limits.h [MSDOS]: Declare etext.
5215
5216 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
5217 `const' since CORRECT_DIR_SEPS modifies its target.
5218
52192002-08-19 Kim F. Storm <storm@cua.dk>
5220
5221 * keyboard.c (Fclear_this_command_keys): Added optional arg
5222 KEEP-RECORD to avoid clearing lossage when we just want to clear
5223 the current key sequence (kmacro needs this).
5224
52252002-08-19 Kenichi Handa <handa@localhost>
5226
5227 * composite.c (run_composition_function): Call FUNC if it is fboundp.
5228
5229 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
5230 cons, return Qnil.
5231
52322002-08-17 Richard M. Stallman <rms@gnu.org>
5233
5234 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
5235
5236 * sysdep.c [!VMS]: Include sys/files.h.
5237
5238 * editfns.c (save_restriction_restore): Defend from unchained marker.
5239
5240 * buffer.c (overlays_at): Handle extending vec uniformly.
5241 (overlays_in): Handle extending vec from length 0 as in overlays_at.
5242
52432002-08-15 Andrew Choi <akochoi@shaw.ca>
5244
5245 * mac.c (init_mac_osx_environment): New function.
5246
5247 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
5248
52492002-08-14 Kim F. Storm <storm@cua.dk>
5250
5251 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
5252 executing macro before appending to it (when used from Lisp).
5253 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
5254 which is called prior to each iteration of macro (for kmacro.el).
5255 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
5256
5257 * lisp.h (Fexecute_kbd_macro): Update prototype.
5258
5259 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
5260
52612002-08-14 Kenichi Handa <handa@etl.go.jp>
5262
5263 * xselect.c (QUTF8_STRING): New variable.
5264 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
5265 (x_atom_to_symbol): Likewise.
5266 (x_get_local_selection): New argument local_request. If it is
5267 nonzero, call handler_fn with the second arg nil.
5268 (x_handle_selection_request): Call x_get_local_selection with
5269 local_request 0.
5270 (lisp_data_to_selection_data): Don't encode the string here.
5271 (Fx_get_selection_internal): Call x_get_local_selection with
5272 local_request 1.
5273 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
5274
5275 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
5276
5277 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
5278
52792002-08-13 Richard M. Stallman <rms@gnu.org>
5280
5281 * minibuf.c (Fminibufferp): New function.
5282 (syms_of_minibuf): Defsubr it.
5283 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
5284
52852002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
5286
5287 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
5288
52892002-08-12 Richard M. Stallman <rms@gnu.org>
5290
5291 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
5292 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
5293 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
5294 already.
5295
5296 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
5297
52982002-08-11 Andrew Choi <akochoi@shaw.ca>
5299
5300 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
5301 (Vmac_pass_command_to_system): New variable.
5302 (Vmac_pass_control_to_system): New variable.
5303 (do_mouse_moved): Check wp with is_emacs_window.
5304 (XTread_socket): Check window_ptr with is_emacs_window.
5305 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
5306 events back to Mac Toolbox for processing, depending on values of
5307 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
5308 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
5309 Vmac_pass_control_to_system.
5310
53112002-08-10 Kenichi Handa <handa@etl.go.jp>
5312
5313 * coding.c (unencodable_char_position): New function.
5314 (Funencodable_char_position): New function.
5315 (syms_of_coding): Defsubr Funencodable_char_position.
5316
53172002-08-10 Andrew Choi <akochoi@shaw.ca>
5318
5319 * mac.c (sys_select) [MAC_OSX]: New function.
5320
5321 * macterm.c (MakeMeTheFrontProcess): New function.
5322 (mac_initialize): Call MakeMeTheFrontProcess.
5323
5324 * s/darwin.h: Define select to sys_select.
5325
53262002-08-09 Richard M. Stallman <rms@gnu.org>
5327
5328 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
5329
53302002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
5331
5332 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
5333 end of the buffer.
5334
53352002-08-08 Ken Raeburn <raeburn@mit.edu>
5336
5337 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
5338
5339 * puresize.h (BASE_PURESIZE): Increase to 910000.
5340
53412002-08-08 Kenichi Handa <handa@etl.go.jp>
5342
5343 * coding.c (Ffind_operation_coding_system): For write-region, if
5344 VISIT is a filename, make it the target.
5345
53462002-08-07 Richard M. Stallman <rms@gnu.org>
5347
5348 * alloc.c (mark_object): Detect long lists for debugging.
5349 (mark_object_loop_halt): New variable.
5350
5351 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
5352
5353 * data.c (Fmake_variable_frame_local): Doc fix.
5354
53552002-08-01 David Ponce <david@dponce.com>
5356
5357 * w32menu.c (local_heap, local_alloc, local_free): New macros.
5358 (malloc_widget_value, free_widget_value)
5359 (w32_free_submenu_strings): Use them.
5360
5361 (push_submenu_start, push_submenu_end, push_left_right_boundary)
5362 (push_menu_pane, push_menu_item, single_keymap_panes)
5363 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
5364 (single_submenu, set_frame_menubar)
5365 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
5366
5367 (Fx_popup_menu): Don't show pop up menu until preceding one is
5368 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
5369
5370 * w32menu.c: Changes adapted from xmenu.c
5371 (set_frame_menubar): First parse all submenus,
5372 then make widget_value trees from them.
5373 Don't allocate any widget_value objects
5374 until we are done with the parsing.
5375 (parse_single_submenu): New function.
5376 (digest_single_submenu): New function.
5377 (single_submenu): Function deleted, replaced by those two.
5378
53792002-08-04 Andrew Choi <akochoi@shaw.ca>
5380
5381 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
5382 returns a valid window pointer before proceeding for keyDown and
5383 autoKey events.
5384
53852002-08-03 Andrew Choi <akochoi@shaw.ca>
5386
5387 * macterm.c (USE_CARBON_EVENTS): New macro.
5388 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
5389 (x_iconify_frame): Call CollapseWindow.
5390 (Vmac_reverse_ctrl_meta): New variable.
5391 (Vmac_wheel_button_is_mouse_2): New variable.
5392 (init_mac_drag_n_drop): New function.
5393 (mac_do_receive_drag): New function.
5394 (mac_handle_service_event): New function.
5395 (init_service_handler): New function.
5396 (mac_to_emacs_modifiers): New function.
5397 (mac_event_to_emacs_modifiers): New function.
5398 (mac_get_mouse_btn): New function.
5399 (mac_convert_event_ref): New function.
5400 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
5401 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
5402 mac_get_mouse_btn.
5403 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
5404
5405 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
5406 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
5407 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
5408 TOOL_BAR_EVENT for MAC_OS as well.
5409 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
5410 as for WINDOWS_NT.
5411 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
5412
5413 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
5414
54152002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
5416
5417 * xdisp.c (forward_to_next_line_start): Fix a condition that
5418 lead to a newline being skipped.
5419
54202002-08-02 Andrew Choi <akochoi@shaw.ca>
5421
5422 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
5423
54242002-08-01 Richard M. Stallman <rms@gnu.org>
5425
5426 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
5427
54282002-07-31 Andrew Choi <akochoi@shaw.ca>
5429
5430 * macfns.c: #undef init_process before #define-ing it.
5431
5432 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
5433 HAVE_CARBON is defined.
5434
54352002-07-31 Richard M. Stallman <rms@gnu.org>
5436
5437 * xmenu.c (set_frame_menubar): First parse all submenus,
5438 then make widget_value trees from them.
5439 Don't allocate any widget_value objects
5440 until we are done with the parsing.
5441 (parse_single_submenu): New function.
5442 (digest_single_submenu): New function.
5443 (single_submenu): Function deleted, replaced by those two.
5444
54452002-07-30 Juanma Barranquero <lektu@terra.es>
5446
5447 * w32proc.c (syms_of_ntproc): Fix docstring of
5448 `w32-get-true-file-attributes'.
5449
54502002-07-28 Richard M. Stallman <rms@gnu.org>
5451
5452 * s/hpux8.h (HPUX8): Define this before including hpux.h.
5453 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
5454
5455 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
5456
5457 * keyboard.c (make_lispy_event):
5458 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
5459 Explicitly clear up_modifier in event->modifiers.
5460
54612002-07-27 Richard M. Stallman <rms@gnu.org>
5462
5463 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
5464
5465 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
5466 for bar cursor.
5467
54682002-07-26 Kenichi Handa <handa@etl.go.jp>
5469
5470 * coding.c (detect_coding_iso2022): While checking a byte sequence
5471 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
5472 it in the normal loop.
5473
54742002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
5475
5476 * xterm.c (expose_overlaps): New function.
5477 (expose_window): Use it to fix the display of overlapping rows.
5478
5479 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
5480
54812002-07-23 Ken Raeburn <raeburn@gnu.org>
5482
5483 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
5484 since it only depends on XUINT.
5485
5486 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
5487 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
5488 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
5489 Macros deleted.
3947677c 5490
77d1daf2
AS
5491 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
5492 its value over other approaches.
5493 * sysdep.c (start_of_data): Don't define the function if a macro
5494 form has been defined.
8a8e19a3 5495
048addec
JD
54962002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
5497
5498 * xdisp.c (redisplay_updating_p): New variable.
5499 (init_iterator): Don't free realized faces when
5500 redisplay_updating_p is set.
5501 (redisplay_internal): Set redisplay_updating_p while updating
5502 the display.
5503
55042002-07-23 Richard M. Stallman <rms@gnu.org>
5505
5506 * editfns.c (Fmessage): Treat "" like nil.
5507
55082002-07-23 Kenichi Handa <handa@etl.go.jp>
5509
5510 * xdisp.c (face_before_or_after_it_pos):
5511 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
5512
55132002-07-22 Juanma Barranquero <lektu@terra.es>
5514
5515 * callproc.c (init_callproc) [DOS_NT]:
5516 Initialize Vshared_game_score_directory to nil.
5517 (syms_of_callproc) [DOS_NT]: Likewise.
5518
55192002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
5520
5521 * xdisp.c (display_line): Replace an abort with xassert.
5522
55232002-07-21 Richard M. Stallman <rms@gnu.org>
5524
5525 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
5526 and END_UNCHANGED when setting buffer_unchanged_p.
5527 Use current_matrix_up_to_date_p to decide whether to use
5528 try_cursor_movement.
5529
5530 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
5531
5532 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
5533
5534 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
5535 Set to nil if dir does not exist.
5536 (syms_of_callproc): Init unconditionally and simply.
5537
5538 * buffer.c (Fbuffer_list): Doc fix.
5539
55402002-07-21 Ken Raeburn <raeburn@gnu.org>
5541
5542 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
5543
5544 * buffer.c (mmap_realloc): When shrinking, make sure number of
5545 pages to unmap is rounded towards zero.
5546
5547 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
5548 (XSETINT): Deleted.
5549
5550 * m/att3b.h (XINT): Don't define.
5551 (VALBITS, VALMASK, XTYPE): Deleted.
5552 (DATA_SEG_BITS): Define.
5553 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
5554 ARRAY_MARK_FLAG): Deleted.
5555 (DATA_SEG_BITS): Define.
5556 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
5557 (DATA_SEG_BITS): Define.
5558
55592002-07-20 Richard M. Stallman <rms@gnu.org>
5560
5561 * print.c (print_error_message): New args CONTEXT and CALLER.
5562 Calls changed.
5563
5564 * lisp.h (print_error_message): Declare new args.
5565
5566 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
5567 and CONTEXT to print_error_message, don't print them here.
5568 For a Quit, don't use Vsignaling_function.
5569 Call message_log_maybe_newline.
5570
5571 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
5572
55732002-07-20 Kim F. Storm <storm@cua.dk>
5574
5575 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
5576
55772002-07-19 Ken Raeburn <raeburn@gnu.org>
5578
5579 * bytecode.c (struct byte_stack): Pointers into byte string now
5580 point to const.
5581 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
5582 const.
5583 * charset.h (BCOPY_SHORT): Source pointer now points to const.
5584 * coding.c (encode_eol, detect_coding, detect_eol):
5585 (decode_coding, encode_coding, detect_coding_system):
5586 Source strings now treated as const.
5587 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
5588 modify Lisp string contents.
5589 * coding.h (decode_coding, encode_coding, detect_coding,
5590 detect_eol): Declarations updated.
5591 * composite.c (compose_chars_in_text): Treat Lisp string contents
5592 as const.
5593 * dispnew.c (safe_bcopy): Source pointer now points to const.
5594 * lisp.h (STRING_COPYIN): New macro.
5595 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
5596 (internal_with_output_to_temp_buffer): Declarations updated.
5597 * print.c (temp_output_buffer_setup):
5598 (internal_with_output_to_temp_buffer): Buffer name argument is now
5599 pointer to const.
5600 * sound.c (struct sound_device): Function pointer field "write"
5601 buffer argument now points to const.
5602 (vox_write): Buffer argument points to const.
5603 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
5604 contents as const.
5605 * sysdep.c (emacs_write): Buffer pointer now const.
5606 * term.c (encode_terminal_code): Buffer pointer now const.
5607 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
5608 (x_face_list_fonts, x_update_menu_appearance):
5609 (hash_string_case_insensitive): Treat Lisp string contents as const.
5610
56112002-07-19 Juanma Barranquero <lektu@terra.es>
5612
5613 * fileio.c (Ffile_name_as_directory): Fix argument name in docstring.
5614 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
5615
5616 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
5617
5618 * fileio.c (syms_of_fileio): Likewise.
5619
56202002-07-18 Richard M. Stallman <rms@gnu.org>
5621
5622 * data.c (Fdefalias): Doc fix.
5623
56242002-07-17 Dave Love <fx@gnu.org>
5625
5626 * intervals.h (text_property_stickiness): Use P_.
5627
5628 * ccl.c: Remove `emacs' conditionals.
5629 (ccl_backtrace_table): Fix size spec.
5630 (ccl_driver): Fix type errors.
5631
56322002-07-16 Ken Raeburn <raeburn@gnu.org>
5633
5634 * alloc.c (xstrdup, make_string, make_unibyte_string)
5635 (make_multibyte_string, build_string): String pointer args now
5636 point to const.
5637 * charset.c (find_charset_in_text, c_string_width):
5638 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
5639 * fileio.c (report_file_error):
5640 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
5641 (count_combining_before, count_combining_after, insert_1_both):
5642 (insert, insert_and_inherit, insert_string):
5643 (insert_before_markers, insert_before_markers_and_inherit):
5644 * lread.c (intern, oblookup, hash_string):
5645 * minibuf.c (temp_echo_area_glyphs):
5646 * search.c (fast_c_string_match_ignore_case):
5647 * sysdep.c (emacs_open, set_file_times):
5648 * xfaces.c (xstricmp):
5649 * xdisp.c (store_frame_title, string_char_and_length):
5650 (message_dolog, message2, message2_nolog, set_message): Likewise.
5651 (set_message_1): Cast message string argument to const pointer.
5652 * editfns.c (general_insert_function): Insertion function now
5653 takes pointer to const for input data.
5654 * charset.h (find_charset_in_text, c_string_width):
5655 (parse_str_as_multibyte): Declarations updated.
5656 * dispextern.h (xstricmp): Declaration updated.
5657 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
5658 (count_size_as_multibyte, count_combining_before):
5659 (count_combining_after, insert_1, insert_1_both, message_dolog):
5660 (insert, insert_and_inherit, insert_before_markers)
5661 (insert_before_markers_and_inherit, set_message, message2):
5662 (message2_dolog, build_string, make_string, make_unibyte_string):
5663 (make_multibyte_string, intern, oblookup, report_file_error):
5664 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
5665 (emacs_open, xstrdup): Declarations updated.
5666 * systime.h (set_file_times): Declaration updated.
5667
5668 * charset.c (find_charset_in_text, lisp_string_width): Use const
5669 for pointer to lisp string data.
5670 * charset.h (FETCH_STRING_CHAR_ADVANCE):
5671 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
5672 * coding.c (Ffind_coding_systems_region_interval):
5673 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
5674 (Fmake_directory_internal, Fdelete_directory):
5675 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
5676 * fontset.c (font_family_registry, fs_query_fontset):
5677 (list_fontsets):
5678 * frame.c (Fframe_parameter):
5679 * keyboard.c (cmd_error_internal):
5680 * keymap.c (Fdescribe_buffer_bindings):
5681 * lread.c (complete_filename_p, openp):
5682 * minibuf.c (Fminibuffer_complete_word):
5683 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
5684 (face_before_or_after_it_pos, next_element_from_string):
5685 (get_overlay_arrow_glyph_row, display_mode_element):
5686 (decode_mode_spec_coding):
5687 * xterm.c (same_x_server): Likewise.
5688
5689 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
5690 settings of non-existent fields.
5691
5692 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
5693 copy a lisp value.
5694
5695 * lread.c (Fintern_soft): Use string macros instead of
5696 Lisp_String fields.
5697 * keyboard.c (echo_char, parse_modifiers_uncached):
5698 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
5699 * textprop.c (validate_interval_range, interval_of): Likewise.
5700
5701 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
5702
5703 * charset.h (FETCH_STRING_CHAR_ADVANCE)
5704 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
5705 XSTRING()->size_byte.
5706
5707 * lisp.h (SDATA, SREF): Produce rvalue.
5708 (SSET): New macro.
5709 * alloc.c (make_event_array): Use SSET for storing into a string.
5710 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
5711 a string.
5712 * casefiddle.c (casify_object): Use SSET.
5713 * charset.h (FETCH_STRING_CHAR_ADVANCE)
5714 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
5715 address of string contents.
5716 * data.c (Faref): Use SDATA.
5717 (Faset): Use SDATA, SSET.
5718 * dired.c (directory_files_internal): Use SSET.
5719 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
5720 (Fread_file_name): Use SREF, SSET.
5721 * fns.c (concat): Use SSET.
5722 (concat, Fdelete): Use SDATA.
5723 * insdel.c (insert_from_string_1): Use SDATA.
5724 * keyboard.c (Fevent_convert_list): Use SREF.
5725 * lread.c (Fload): Use SDATA, SSET.
5726 * macfns.c (validate_x_resource_name): Use SSET.
5727 * process.c (status_message): Use SSET.
5728 * search.c (wordify): Use SDATA.
5729 (Freplace_match): Use SREF.
5730 * w32fns.c (validate_x_resource_name): Use SSET.
5731 * xfns.c (validate_x_resource_name): Use SSET.
5732 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
5733
57342002-07-16 Richard M. Stallman <rms@gnu.org>
5735
5736 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
5737
5738 * xdisp.c (reconsider_clip_changes):
5739 Don't test prevent_redisplay_optimizations_p.
5740 (redisplay_internal): Test prevent_redisplay_optimizations_p
5741 along with clip_changed in some cases.
5742 (try_window_id): Likewise.
5743 (redisplay_window): New local var buffer_unchanged_p.
5744
5745 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
5746
5747 * process.c (create_process): Test USG_SUBTTY_WORKS.
5748 (process_send_signal): Clean up handling of GID.
5749 Detect errors in ioctls meant to set GID.
5750
5751 * window.c (temp_output_buffer_show):
5752 Don't set prevent_redisplay_optimizations_p.
5753
57542002-07-15 Juanma Barranquero <lektu@terra.es>
5755
5756 * eval.c (Fdefvaralias): Add docstring argument.
5757
57582002-07-15 Ken Raeburn <raeburn@gnu.org>
5759
5760 * lisp.h (STRING_INTERVALS): Produce rvalue.
5761 (STRING_SET_INTERVALS): New macro.
5762 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
5763 * fns.c (Fstring_as_multibyte): Likewise.
5764 * intervals.c (balance_possible_root_interval, delete_interval)
5765 (create_root_interval, copy_intervals_to_string): Likewise.
5766 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
5767 instead of 0.
5768
57692002-07-14 Ken Raeburn <raeburn@gnu.org>
5770
5771 * lisp.h (STRING_SET_CHARS): New macro.
5772 (SCHARS, SBYTES): Produce rvalues.
5773 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
5774 * fns.c (concat): Likewise.
5775 * lread.c (read_vector): Likewise.
5776
5777 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
5778 (STRING_SET_UNIBYTE): New macro.
5779 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
5780 length of -1) changed to use STRING_SET_UNIBYTE.
5781 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
5782 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
5783 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
5784 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
5785 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
5786 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
5787 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
5788 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
5789 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
5790 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
5791 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
5792 STRING_BYTES or indirection changed to SCHARS, SBYTES,
5793 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
5794 unchanged for now.
5795
57962002-07-13 Kim F. Storm <storm@cua.dk>
5797
5798 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
5799
58002002-07-12 Richard M. Stallman <rms@gnu.org>
5801
5802 * fileio.c (Fwrite_region): Doc fix.
5803
5804 * print.c (print_error_message): Don't handle Vsignaling_function here.
5805
5806 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
5807 (command_loop_1): Avoid certain actions after memory-full error.
5808
5809 * eval.c (Fsignal): Don't call cancel_hourglass.
5810 For a memory-full error, don't call Vsignal_hook_function
5811 and don't set Vsignaling_function.
5812
5813 * process.c (process_send_signal): Add abort call.
5814
58152002-07-11 Markus Rost <rost@math.ohio-state.edu>
5816
5817 * keymap.c (Fkey_binding): Fix typo.
5818
58192002-07-11 Richard M. Stallman <rms@gnu.org>
5820
5821 * alloc.c (Vmemory_full): New variable.
5822 (Vmemory_signal_data): Renamed from memory_signal_data.
5823 Uses changed.
5824 (syms_of_alloc): Defvar them.
5825 (memory_full, buffer_memory_full): Set Vmemory_full.
5826
5827 * lisp.h (Vmemory_full): Add declaration.
5828 (current_column, indented_beyond_p): Change declaration.
5829
5830 * indent.c (last_known_column): Declare as double, not float.
5831 (current_column, current_column_1, string_display_width)
5832 (position_indentation): Return `double'.
5833 (indented_beyond_p): Arg `column' is `double'. Callers changed.
5834
5835 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
5836 (back_to_previous_visible_line_start)
5837 (reseat_at_next_visible_line_start, next_element_from_buffer):
5838 Use `double', not `float', when calling indented_beyond_p.
5839
5840 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
5841
5842 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
5843
58442002-07-11 Juanma Barranquero <lektu@terra.es>
5845
5846 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
5847 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
5848 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
5849 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
5850 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
5851 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
5852
58532002-07-10 Juanma Barranquero <lektu@terra.es>
5854
5855 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE. All callers
5856 changed.
5857
58582002-07-09 Stefan Monnier <monnier@cs.yale.edu>
5859
5860 * data.c (Fdefalias): Add an optional `docstring' argument.
5861 (set_internal, Fsetq_default): Use XCAR/XCDR.
5862
5863 * composite.c (HASH_VALUE, HASH_KEY):
5864 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
5865
58662002-07-09 Kenichi Handa <handa@etl.go.jp>
5867
5868 * callproc.c (Fcall_process): Fix previous change.
5869
58702002-07-07 Stefan Monnier <monnier@cs.yale.edu>
5871
5872 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
5873 Add support for hash-tables.
5874 (Ftry_completion): Return t even if the string appears multiple times.
5875
5876 * fns.c (Fnconc): Use XCDR.
5877 (Fprovide): Use CONSP and XCDR.
5878 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
5879 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
5880 (Fmake_hash_table): Accept `:size nil'.
5881 (Fmakehash): Delete: moved to subr.el.
5882 (syms_of_fns): Don't defsubr makehash.
5883
5884 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
5885 (HASH_TABLE_SIZE): Move from fns.c.
5886
58872002-07-07 Richard M. Stallman <rms@gnu.org>
5888
5889 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
5890 Instead just return 0 when there is something to be done.
5891 (try_scrolling): If make_cursor_line_fully_visible returns 0,
5892 retry scrolling as if cursor were off the bottom.
5893 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
5894 return CURSOR_MOVEMENT_MUST_SCROLL.
5895 (redisplay_window): If make_cursor_line_fully_visible returns 0,
5896 go to try_to_scroll.
5897
5898 * buffer.c (Fbuffer_local_value): Store current value into its binding
5899 so we get the up-to-date value for the binding that is loaded.
5900
5901 * eval.c (Fdefmacro): Doc fix.
5902
59032002-07-05 Dave Love <fx@gnu.org>
5904
5905 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
5906 correctly.
5907
5908 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
5909 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
5910 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
5911 CCL_LookupCharConstTbl.
5912 (syms_of_ccl): Defvar translation-hash-table-vector.
5913
59142002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5915
5916 * xdisp.c: Remove unused variable `face'.
5917
59182002-07-04 Juanma Barranquero <lektu@terra.es>
5919
5920 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
5921 obsolescence information.
5922
59232002-07-03 Andrew Choi <akochoi@shaw.ca>
5924
5925 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
5926 pattern. Search cache first.
5927 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
5928 for Japanese font.
5929 (XLoadQueryFont): Use it.
5930
59312002-07-02 Richard M. Stallman <rms@gnu.org>
5932
5933 * keymap.c (Fdefine_key): Doc fix.
5934
5935 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
5936
59372002-07-02 Juanma Barranquero <lektu@terra.es>
5938
5939 * keymap.c (syms_of_keymap): Fix typo.
5940
59412002-07-01 Andrew Choi <akochoi@shaw.ca>
5942
5943 * s/darwin.h: Define POSIX_SIGNALS.
5944
5945 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
5946 and FSRefMakePath to convert FSSpec returned with Apple Event to
5947 Posix pathname.
5948 (mac_initialize) [TARGET_API_MAC_CARBON]:
5949 Call init_required_apple_events and disable the `Quit' menu item
5950 provided automatically by the Carbon Toolbox.
5951
59522002-07-01 Dave Love <fx@gnu.org>
5953
5954 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
5955 for K&R.
5956
5957 * xterm.c: Fix prototype for K&R.
5958
5959 * term.c (costs_set): Declare static, non-initialized for pcc.
5960
59612002-07-01 Richard M. Stallman <rms@gnu.org>
5962
5963 * keyboard.c (timer_last_idleness_start_time): New variable.
5964 (timer_start_idle): Set that.
5965 (read_key_sequence): Use that to reset timer_idleness_start_time
5966 to previous value.
5967
5968 * window.c (Frecenter): With arg, set optional_new_start.
5969
5970 * xdisp.c (redisplay_internal): Make optional_new_start really work.
5971
5972 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
5973 buffer for completion.
5974
59752002-06-29 Ken Raeburn <raeburn@gnu.org>
5976
5977 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
5978
59792002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5980
5981 * keyboard.c (readable_filtered_events): New function that filters
5982 FOCUS_IN_EVENT depending on parameter.
5983 (readable_events): Calls readable_filtered_events, not filtering
5984 FOCUS_IN_EVENT.
5985 (get_filtered_input_pending): New function, filtering parameter passed
5986 to readable_filtered_events.
5987 (get_input_pending): Calls get_filtered_input_pending, not filtering
5988 FOCUS_IN_EVENT.
5989 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
5990 FOCUS_IN_EVENT.
5991
5992 * xterm.h (struct x_output): Add focus_state.
5993
5994 * xterm.c (x_focus_changed): New function.
5995 (x_detect_focus_change): New function.
5996 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
5997 EnterNotify and LeaveNotify to track X focus changes.
5998
59992002-06-28 Andreas Schwab <schwab@suse.de>
6000
6001 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
6002
60032002-06-27 Kim F. Storm <storm@cua.dk>
6004
6005 * xdisp.c: (mode_line_string_list, mode_line_string_face)
6006 (mode_line_string_face_prop): New variables.
6007 (store_mode_line_string): New function.
6008 (display_mode_element): Use store_mode_line_string to
6009 add mode-line string elements to mode_line_string_list
6010 when mode_line_string_list is non-nil.
6011 (Fformat_mode_line): Now returns propertized string by
6012 default. New arg NO-PROPS to ignore properties.
6013 (decode_mode_spec): Only add two dashes for %- in propertized
6014 mode-line string.
6015 (syms_of_xdisp): Init and staticpro mode_line_string_list.
6016
60172002-06-27 Stefan Monnier <monnier@cs.yale.edu>
6018
6019 * minibuf.c (minibuffer_completion_contents): Add return type.
6020
60212002-06-27 Juanma Barranquero <lektu@terra.es>
6022
6023 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
6024
60252002-06-26 Juanma Barranquero <lektu@terra.es>
6026
6027 * fileio.c (read_file_name_cleanup): Add missing return.
6028
60292002-06-26 Richard M. Stallman <rms@gnu.org>
6030
6031 * window.c (Frecenter): Don't set force_start flag.
6032
6033 * minibuf.c (do_completion, Fminibuffer_complete_word)
6034 (Fminibuffer_completion_help): Complete just the text before point.
6035 (minibuffer_completion_contents): New function.
6036
6037 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
6038
6039 * frame.c (frames_bury_buffer): Function deleted.
6040
60412002-06-25 Miles Bader <miles@gnu.org>
6042
6043 * callint.c (Fcall_interactively): When checking to see if doprnt hit
6044 the end of callint_message, allow for a terminating '\0'.
6045
60462002-06-24 Juanma Barranquero <lektu@terra.es>
6047
6048 * w32select.c: Include composite.h
6049
6050 * w16select.c: Likewise.
6051
60522002-06-24 Kenichi Handa <handa@etl.go.jp>
6053
6054 * callproc.c (Fcall_process): If code detection is necessary,
6055 call detect_coding directly here.
6056
6057 * coding.c (detect_eol): Preserve coding->cmp_data.
6058
6059 * w16select.c (Fw16_get_clipboard_data):
6060 * w32fns.c (w32_to_x_font):
6061 * w32select.c (Fw32_get_clipboard_data):
6062 * xselect.c (selection_data_to_lisp_data):
6063 * xterm.c (XTread_socket): Disable composition handling.
6064
60652002-06-24 Stefan Monnier <monnier@cs.yale.edu>
6066
6067 * print.c (temp_output_buffer_setup): Kill all local variables.
6068
60692002-06-22 Stefan Monnier <monnier@cs.yale.edu>
6070
6071 * lread.c (Fread): Remove redundant and imprecise declaration.
6072
6073 * xfns.c (check_x_display_info): Use check_x_frame.
6074
6075 * .gdbinit (xprintsym): Use the new `xname' field.
6076 (xsymbol): Use it.
6077
60782002-06-22 Jason Rumney <jasonr@gnu.org>
6079
6080 * w32fns.c (file_dialog_callback): New function.
6081 (Fx_file_dialog): Allow selecting directories as well as files.
6082
60832002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6084
6085 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
6086 OpenBSD. Add support for mipseb-*-netbsd* machines.
6087
60882002-06-17 Andrew Choi <akochoi@shaw.ca>
6089
6090 * macterm.c (mac_scroll_area): Set foreground and backcolor to
6091 black and white before scrolling. Restore frame background and
6092 foreground color after scrolling.
6093 (do_window_update): Call XClearWindow before calling expose_frame.
6094 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
6095 FRAME_FOREGROUND_PIXEL of frame.
6096
6097 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
6098 test Mac command key as <ALT> key.
6099
61002002-06-17 Stefan Monnier <monnier@cs.yale.edu>
6101
6102 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
6103
6104 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
6105 Lookup keys in function-key-map immediately so that key-translation-map
6106 can be applied earlier.
6107 Remove function_key_possible and key_translation_possible, replaced
6108 by checking `keytran_start < t'.
6109
6110 * .gdbinit (xsymbol): Use the new `xname' field.
6111
61122002-06-17 Andrew Choi <akochoi@shaw.ca>
6113
6114 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
6115 test Mac command key as <ALT> key.
6116
6117 * mac.c (do_applescript): Call initialize_applescript if necessary
6118 when first called. Dispose of result_desc only when there is no error.
6119 (Fdo_applescript): Use %d format specifier instead of %ld.
6120
61212002-06-16 Andrew Choi <akochoi@shaw.ca>
6122
6123 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
6124 of FrontWindow for cases keyDown and autoKey.
6125
6126 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
6127 Vdefault_fontset to Monaco with mac-roman coding.
6128
6129 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
6130 init_process before and after inclusion of Carbon/Carbon.h, resp.
6131
6132 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
6133 cursor_gc.
6134 (add_font_name_table_entry): New function.
6135 (init_font_name_table): Use add_font_name_table_entry; add italic,
6136 bold, and bold-italic entries for truetype fonts.
6137
6138 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
6139 for Mac too.
6140 (try_font_list) [MAC_OS]: If no font matches given registry, try
6141 fonts with any registry matching face_family.
6142 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
6143
6144 * s/darwin.h: If autoconf detects the Ncurses library, define
6145 LIBS_TERMCAP to -lncurses to use it.
6146
61472002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
6148
6149 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
6150
61512002-06-15 Richard M. Stallman <rms@gnu.org>
6152
6153 * window.c (Fset_window_configuration): Explicitly preserve
6154 the point value that new_current_buffer had at the start.
6155
61562002-06-14 Juanma Barranquero <lektu@terra.es>
6157
6158 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
6159 Fix typos.
6160
61612002-06-14 Kim F. Storm <storm@cua.dk>
6162
6163 * insdel.c (insert_1_both, insert_from_string_1)
6164 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
6165 insert happened in the end_unchanged region. Otherwise, the
6166 redisplay may be confused and duplicate the last line in the
6167 buffer [seen after save-buffer when require-final-newline==t].
6168
61692002-06-13 Jason Rumney <jasonr@gnu.org>
6170
6171 * w32.c (init_environment): Remove EMACSLOCKDIR.
6172 (stat): Swap _S_IFDIR and _S_IFREG.
6173
61742002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6175
6176 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
6177 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
6178 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
6179 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
6180 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
6181 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
6182 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
6183 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
6184 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
6185 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
6186 SELECTION_REQUEST_EVENT, selection_clear_event to
6187 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
6188 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
6189 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
6190 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
6191 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
6192 no_event to NO_EVENT.
6193
61942002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6195
6196 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
6197
61982002-06-12 Stefan Monnier <monnier@cs.yale.edu>
6199
6200 * intervals.c (textget): Don't forget to `return'.
6201 (lookup_char_property): Use XCAR/XCDR.
6202
62032002-06-12 Juanma Barranquero <lektu@terra.es>
6204
6205 * xdisp.c (Fformat_mode_line): Fix typo.
6206
62072002-06-12 Kim F. Storm <storm@cua.dk>
6208
6209 * xdisp.c (Fformat_mode_line): New function.
6210 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
6211 (store_frame_title_char, store_frame_title): Use unconditionally.
6212 (init_xdisp): Defsubr Fformat_mode_line.
6213 Initialize frame_title_buf etc. unconditionally.
6214
62152002-06-11 Stefan Monnier <monnier@cs.yale.edu>
6216
6217 * keyboard.c (read_key_sequence):
6218 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
6219 things through those maps after downcasing events.
6220 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
6221 applies after function-key-map.
6222 Make sure that keytran can be done in the middle in the sequence.
6223 Be careful not to throw away events past the one we downcase.
6224
6225 * lread.c (read_integer): Remove unused var `tem'.
6226 (read1): Fix int/Lisp_Object mixup.
6227
6228 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
6229
62302002-06-11 Richard M. Stallman <rms@gnu.org>
6231
6232 * keyboard.c (readable_events): Ignore any number of
6233 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
6234
62352002-06-09 Miles Bader <miles@gnu.org>
6236
6237 * xfaces.c (Ftty_supports_face_attributes_p): New function.
6238 (parse_rgb_list, tty_lookup_color): New functions.
6239 (tty_defined_color): Use `tty_lookup_color' to do all the work.
6240 (color_distance, Fcolor_distance): New functions.
6241 (TTY_SAME_COLOR_THRESHOLD): New macro.
6242 (Qtty_color_standard_values): New variable.
6243 (syms_of_xfaces): Initialize new vars & functions.
6244
62452002-06-08 Colin Walters <walters@verbum.org>
6246
6247 * textprop.c (Vchar_property_alias_alist): New variable.
6248 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
6249
6250 * intervals.c (lookup_char_property): New function for looking up
6251 overlay and text properties, created from textget.
6252 (textget): Use it.
6253
6254 * intervals.h (lookup_char_property): Declare.
6255 (Vchar_property_alias_alist): Declare.
6256
6257 * buffer.c (Foverlay_get): Use lookup_char_property.
6258
62592002-06-07 Sam Steingold <sds@gnu.org>
6260
6261 * xselect.c (lisp_data_to_selection_data): Fix last change:
6262 *data_ret is not a Lisp string, while unibyte_string is.
6263
62642002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
6265
6266 * xselect.c (lisp_data_to_selection_data): Fix last change:
6267 set size_ret.
6268
62692002-06-07 Andreas Schwab <schwab@suse.de>
6270
6271 * m/amdx86-64.h: New file.
6272
62732002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
6274
6275 * fns.c (Fstring_make_unibyte): Doc fix.
6276
6277 * xselect.c (lisp_data_to_selection_data): If the requested type
6278 is STRING, call string_make_unibyte to encode the selected text
6279 as a string.
6280
6281 * window.c (Fset_window_hscroll): Doc fix.
6282
62832002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6284
6285 * fileio.c (choose_write_coding_system):
6286 Call select-safe-coding-system properly.
6287
62882002-06-03 Richard M. Stallman <rms@gnu.org>
6289
6290 * xdisp.c (message_with_string): Error if STRING is not a string.
6291
6292 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
6293
6294 * fileio.c (choose_write_coding_system): Pass FILE arg to
6295 Vselect_safe_coding_system_function.
6296
62972002-06-03 Ken Raeburn <raeburn@gnu.org>
6298
6299 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
6300
63012002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
6302
6303 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
6304 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
6305 * keymap.c (describe_command): Likewise.
6306 * minibuf.c (read_minibuf): Likewise.
6307
6308 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
6309 Cast `current_column' return value to int.
6310 (back_to_previous_visible_line_start)
6311 (reseat_at_next_visible_line_start, next_element_from_buffer):
6312 Cast `indented_beyond_p' 3rd arg to float.
6313
6314 * indent.c (last_known_column): Now a float.
6315 (current_column_1, position_indentation, current_column)
6316 (string_display_width): Return float.
6317 (Fcurrent_column): Cast `current_column' return value to int.
6318 (Fcurrent_indentation): Cast `position_indentation' retval to int.
6319 (indented_beyond_p): Third arg now a float.
6320 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
6321
6322 * lisp.h (current_column): Now returns float.
6323 (indented_beyond_p): 3rd arg now a float.
6324
63252002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
6326
6327 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
6328 is Qcompound_text_with_extensions.
6329
6330 * xselect.c (lisp_data_to_selection_data): Always set selection
6331 type as string if x_encode_text returns streingp non-NULL.
6332
6333 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
6334
63352002-05-30 Richard M. Stallman <rms@gnu.org>
6336
6337 * window.c (Fset_window_configuration): Correct the handling
6338 of point in current buffer, to work with multiple windows.
6339
63402002-05-29 Colin Walters <walters@verbum.org>
6341
6342 * lread.c (Fread_from_string): Don't depend on order of evaluation
6343 for C function parameters.
6344
63452002-05-28 Richard M. Stallman <rms@gnu.org>
6346
6347 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
6348 way for blinked-off state and for a nonselected window.
6349
6350 * window.c (window_scroll_pixel_based): Don't call Fbolp;
6351 instead, see if the new start pos is at beginning of line.
6352
6353 * fileio.c (Fwrite_region): If START is a string, don't
6354 make any annotations.
6355
6356 * eval.c (syms_of_eval): Doc fix.
6357
63582002-05-28 Colin Walters <walters@debian.org>
6359
6360 * emacs.c (USAGE1): Add --no-splash.
6361 (standard_args): Ditto.
6362
63632002-05-28 Colin Walters <walters@gnu.org>
6364
6365 * lread.c (readchar_count): New variable.
6366 (readchar): Increment it.
6367 (unreadchar): Decrement it.
6368 (read_multibyte): Decrement it.
6369 (Vread_with_symbol_positions): New variable.
6370 (Vread_symbol_positions_list): New variable.
6371 (read_internal_start): New function, created from Fread and
6372 Fread_from_string. Handle Vread_symbol_positions_list and
6373 Vread_with_symbol_positions.
6374 (readevalloop, Fread, Fread_from_string): Use it.
6375 (read1): Use readchar_count to add symbol positions to
6376 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
6377 (syms_of_lread): DEFVAR_LISP and initialize them.
6378
6379 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
6380 (substitute_object_recurse, substitute_object_in_subtree)
6381 (substitute_in_interval): Prototype.
6382 (read_multibyte): Return c if it's less than zero.
6383
63842002-05-28 Kim F. Storm <storm@cua.dk>
6385
6386 * fileio.c (Fread_file_name_internal): Added brute-force
6387 speed up for using predicate file-directory-p.
6388
63892002-05-28 Kim F. Storm <storm@cua.dk>
6390
6391 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
6392 New variables.
6393 (syms_of_fileio): DEFVAR_LISP them.
6394 (read_file_name_cleanup): New unwind function.
6395 (Fread_file_name_internal): Only return completions satifying
6396 Vread_file_name_predicate. Temporarily unwind protect and rebind
6397 default-directory while checking completions against the predicate.
6398 (Fread_file_name): Added PREDICATE argument. Specbind it to
6399 Vread_file_name_predicate during completion.
6400 Call Vread_file_name_function to read the file name if non-nil.
6401
6402 * lisp.h (Fread_file_name): Now has 6 args.
6403
6404 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
6405 predicate for Fread_file_name when reading directory name.
6406 Supply Qnil for predicate in other calls to Fread_file_name.
6407
64082002-05-26 Miles Bader <miles@gnu.org>
6409
6410 * term.c (tty_capable_p): New function.
6411 * dispextern.h (tty_capable_p): New function declaration.
6412 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
6413 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
6414
64152002-05-23 Stefan Monnier <monnier@cs.yale.edu>
6416
6417 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
6418 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
6419 (Vwrite_region_annotate_functions): Docstring fix.
6420
64212002-05-23 Kim F. Storm <storm@cua.dk>
6422
6423 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
6424 phys_cursor's hpos is overwritten. This is still not completely
6425 correct, as it doesn't really make sense to use hpos at all to
6426 get the cursor glyph (as that is relative to the width of the
6427 characters on the line, which may have changed during the update).
6428
64292002-05-22 Jason Rumney <jasonr@gnu.org>
6430
6431 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
6432 Lisp_Object.
6433 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
6434 Use modified enumfont_t struct.
6435
6436 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
6437
6438 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
6439 Handle the `hbar' cursor type.
6440 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
6441
6442 * w32fns.c (Qhbar): New variable.
6443 (x_specified_cursor_type): Use it.
6444
64452002-05-21 Ken Raeburn <raeburn@gnu.org>
6446
6447 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
6448 now, when the address is needed.
6449
64502002-05-21 Colin Walters <walters@gnu.org>
6451
6452 * Makefile.in (shortlisp): Add font-core.el.
6453
64542002-05-20 Richard M. Stallman <rms@gnu.org>
6455
6456 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
6457
6458 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
6459 equivalent key bindings here.
6460
64612002-05-20 Ken Raeburn <raeburn@gnu.org>
6462
6463 Change symbol structure to contain a lisp object for the symbol
6464 name:
6465 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
6466 object field named "xname".
6467 (SYMBOL_NAME): New macro.
6468 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
6469 name field.
6470 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
6471 (mark_object, gc_sweep): Use symbol xname field and XSTRING
6472 instead of name field.
6473 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
6474 SYMBOL_NAME instead of XSYMBOL and name field.
6475 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
6476 instead of XSYMBOL and name field.
6477 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
6478 and SYMBOL_NAME instead of XSYMBOL and name field.
6479 * coding.c (Fread_coding_system, code_convert_region1)
6480 (code_convert_string1, code_convert_string_norecord)
6481 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
6482 XSYMBOL and name field.
6483 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
6484 (Fmake_variable_buffer_local, Fmake_local_variable)
6485 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
6486 of XSYMBOL and name field.
6487 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
6488 XSYMBOL and name field.
6489 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
6490 instead of XSYMBOL and name field.
6491 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
6492 XSYMBOL and name field.
6493 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
6494 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
6495 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
6496 instead of XSYMBOL and name field.
6497 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
6498 (parse_modifiers, apply_modifiers, Fevent_convert_list)
6499 (parse_solitary_modifier, Fexecute_extended_command):
6500 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
6501 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
6502 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
6503 of XSYMBOL and name field.
6504 (describe_command, describe_translation): Use SYMBOL_NAME and
6505 assignment instead of XSYMBOL and name field and XSETSTRING.
6506 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
6507 instead of XSYMBOL and name field.
6508 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
6509 name field and XSETSTRING.
6510 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
6511 of XSYMBOL and name field.
6512 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
6513 assignment instead of XSYMBOL and name field and XSETSTRING.
6514 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
6515 XSTRING instead of XSYMBOL and name field.
6516 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
6517 and XSTRING instead of XSYMBOL and name field.
6518 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
6519 and XSTRING instead of XSYMBOL and name field.
6520 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
6521 XSTRING instead of XSYMBOL and name field.
6522 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
6523 of XSYMBOL and name field.
6524 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
6525 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
6526
65272002-05-19 Ken Raeburn <raeburn@gnu.org>
6528
6529 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
6530 and XCDR real rvalues in most configurations.
6531
6532 * buffer.c (fix_overlays_in_range, fix_overlays_before):
6533 Don't take the address of the cdr part of a cons cell; instead, track
6534 the parent cell and call XSETCDR, or set the variable for the head
6535 of the list if we haven't started down the list yet.
6536
65372002-05-19 Richard M. Stallman <rms@gnu.org>
6538
6539 * doc.c (reread_doc_file): Don't ask for confirmation.
6540
65412002-05-18 Jason Rumney <jasonr@gnu.org>
6542
6543 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
6544 (xbm_load_image): Use it.
6545 (xbm_load): Ditto.
6546 (xbm_read_bitmap_data): Reverted to xfns.c version.
6547 From David Ponce <david@dponce.com>.
6548
65492002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
6550
6551 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
6552 2.02 and later.
6553
65542002-05-16 Juanma Barranquero <lektu@terra.es>
6555
6556 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
6557
65582002-05-15 Stefan Monnier <monnier@cs.yale.edu>
6559
6560 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
6561 meaningful test.
6562 (read_char_minibuf_menu_prompt): Fix typo.
6563
65642002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
6565
6566 * eval.c (Fcommandp): Doc fix.
6567
65682002-05-13 Stefan Monnier <monnier@cs.yale.edu>
6569
6570 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
6571 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
6572 (Fset_keymap_parent): Gcpro a bit more.
6573 (access_keymap): Gcpro around meta_map call and around the main loop.
6574 (get_keyelt): Gcpro when following indirect references.
6575 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
6576 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
6577 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
6578 Remove useless ad-hoc remap code.
6579
65802002-05-13 Richard M. Stallman <rms@gnu.org>
6581
6582 * search.c (search_buffer): Give up boyer moore search if inverse
6583 translation change charset_base.
6584
65852002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
6586
6587 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
6588 characters is carried over from the previous block of text, adjust
6589 coding->produced to account for the extra character.
6590
65912002-05-11 Andreas Schwab <schwab@suse.de>
6592
6593 * coding.c (intersection): Keep the elements of the returned list
6594 in the same order as in the first list.
6595
65962002-05-11 Kim F. Storm <storm@cua.dk>
6597
6598 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
6599 only update cmm_size if realloc actually succeeds.
6600 Testing with initial size of 2 elements revealed that using
6601 realloc on GNU/Linux would cause a random trap in xmalloc
6602 later on, so I rewrote the code to use malloc/bcopy/free instead
6603 of realloc.
6604
66052002-05-10 Jason Rumney <jasonr@gnu.org>
6606
6607 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
6608
66092002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
6610
6611 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
6612 parens, to ensure correct evaluation order.
6613
66142002-05-10 Kim F. Storm <storm@cua.dk>
6615
6616 * keymap.c (Vemulation_mode_map_alists): New variable.
6617 (syms_of_keymap): DEFVAR_LISP it.
6618 (current_minor_maps): Process keymap alists in that list before
6619 minor-mode-overriding-map-alist and minor-mode-map-alist.
6620
66212002-05-09 Richard M. Stallman <rms@gnu.org>
6622
6623 * search.c (Freplace_match): Doc fix.
6624
66252002-05-09 Kim F. Storm <storm@cua.dk>
6626
6627 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
6628 Enlarge cursor rectangle drawn around image with non-zero relief.
6629
6630 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
6631 Enlarge cursor rectangle drawn around image with non-zero relief.
6632
6633 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
6634 Enlarge cursor rectangle drawn around image with non-zero relief.
6635
66362002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
6637
6638 * xselect.c (lisp_data_to_selection_data): Don't set selection
6639 type if comes from the Lisp object's car. If the selection
6640 contains a pure ASCII text, always return QSTRING as its type.
6641
66422002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6643
6644 * mac.c (mac-cut-function): Doc fix.
6645
66462002-05-05 Richard M. Stallman <rms@gnu.org>
6647
6648 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
6649
66502002-05-04 Jason Rumney <jasonr@gnu.org>
6651
6652 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
6653 for event-click-count.
6654
6655 * process.c (init_process): Only add server subfeature if we can
6656 use non-blocking I/O.
6657
66582002-05-04 Andrew Choi <akochoi@shaw.ca>
6659
6660 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
6661 repeatedly.
6662
66632002-05-03 Jason Rumney <jasonr@gnu.org>
6664
6665 * process.c (Fmake_network_process): Only support server sockets
6666 when we can make them non-blocking.
6667
6668 * s/ms-w32.h (HAVE_SELECT): Define.
6669
6670 * w32.h (FILE_NDELAY): New flag.
6671
6672 * w32.c (sys_getpeername, fcntl): New functions.
6673 (_sys_read_ahead): Temporarily block on non-blocking sockets.
6674
6675 * w32proc.c: include sys/file.h.
6676
66772002-05-03 Colin Walters <walters@verbum.org>
6678
6679 * callproc.c (Vgame_score_directory): Renamed to
6680 Vshared_game_score_directory.
6681
66822002-04-30 Richard M. Stallman <rms@gnu.org>
6683
6684 * s/gnu.h [emacs]: Include stdio.h.
6685 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
6686
6687 * eval.c (do_autoload): Error if called while preparing to dump.
6688
6689 * fns.c (Frequire): Error if need to load while preparing to dump.
6690
66912002-04-28 Colin Walters <walters@verbum.org>
6692
6693 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
6694 Default to "~/.emacs.d/games".
6695
66962002-04-29 Stefan Monnier <monnier@cs.yale.edu>
6697
6698 * lread.c (openp): Change arg exec_only to predicate.
6699 (build_load_history): Use XCAR/XCDR.
6700 (Flocate_file_internal): New fun.
6701 (syms_of_lread): Defsubr it.
6702 (Fload): Update call to openp.
6703
6704 * lisp.h (openp): Update prototype.
6705
6706 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
6707 * w32proc.c (sys_spawnve):
6708 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
6709 * w32.c (check_windows_init_file):
6710 * sound.c (Fplay_sound_internal):
6711 * process.c (Fstart_process):
6712 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
6713 * mac.c (run_mac_command):
6714 * emacs.c (init_cmdargs):
6715 * callproc.c (Fcall_process): Update call to openp.
6716
6717 * textprop.c (remove_properties): Don't use XCAR without CONSP.
6718
6719 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
6720
67212002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6722
6723 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
6724 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
6725
67262002-04-28 Richard M. Stallman <rms@gnu.org>
6727
6728 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
6729
6730 * eval.c (Fcommandp): New arg for_call_interactively.
6731 * lisp.h (Fcommandp): Declare new arg.
6732
67332002-04-28 Jason Rumney <jasonr@gnu.org>
6734
6735 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
6736
6737 * w32.c (stat, fstat): Use file index information to generate
6738 inodes for directories where available.
6739
67402002-04-26 Andrew Choi <akochoi@shaw.ca>
6741
6742 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
6743 [HAVE_CARBON]: Include Mac object files.
6744
6745 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
6746 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
6747 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
6748 MAC_OSX, and MAC_OS instead of macintosh.
6749
6750 * editfns.c [MAC_OS8]: Include stdio.h.
6751
6752 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
6753
6754 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
6755 Apple Monaco.
6756
6757 * process.c: Declare QCfamily and QCfilter as extern.
6758 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
6759 calling select.
6760
6761 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
6762
6763 * tparam.c [MAC_OSX]: Don't define BC and UP.
6764
6765 * config.in [HAVE_CARBON]: Add.
6766
6767 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
6768 Move here from mac/src and mac/inc.
6769
6770 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
6771
67722002-04-26 Gerd Moellmann <gerd@gnu.org>
6773
6774 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
6775 Compute phys_cursor_width from the x position returned
6776 by x_draw_glyhs, which is cheaper.
6777 (x_display_and_set_cursor): Compute the buffer-local value
6778 of `cursor-in-non-selected-windows' only when needed.
6779
67802002-04-25 Gerd Moellmann <gerd@gnu.org>
6781
6782 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
6783 cursor on a stretch glyph has a width that depends on
6784 x_stretch_cursor_p.
6785
67862002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6787
6788 * abbrev.c (abbrev-start-location): Doc fix.
6789
6790 * indent.c (Fvertical_motion): Fix last change.
6791
67922002-04-25 Gerd Moellmann <gerd@gnu.org>
6793
6794 * indent.c (Fvertical_motion): Move to the start of the line
6795 containing PT before moving up or down.
6796
67972002-04-24 Gerd Moellmann <gerd@gnu.org>
6798
6799 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
6800 case of writing a whole row, more or less analogous to the case of
6801 writing only parts of a row.
6802
6803 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
6804 0 for NO_CURSOR.
6805
6806 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
6807
68082002-04-23 Colin Walters <walters@verbum.org>
6809
6810 * buffer.c (syms_of_buffer): Doc fix.
6811
68122002-04-23 Gerd Moellmann <gerd@gnu.org>
6813
6814 * xterm.c (notice_overwritten_cursor): Handle the special case
6815 of the cursor being in the first blank non-text line at the
6816 end of a window.
6817
6818 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
6819 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
6820 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
6821 bar cursors only, to make phys_cursor_width contain what its name
6822 suggests.
6823 (notice_overwritten_cursor): Consider the cursor image erased if
6824 the output area intersects the cursor image in y-direction.
6825
68262002-04-23 Simon Marshall <simon@gnu.org>
6827
6828 * xfns.c (x_set_mouse_color): Change default for cross_cursor
6829 to XC_hand2.
6830
68312002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6832
6833 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
6834
68352002-04-22 Kim F. Storm <storm@cua.dk>
6836
6837 * textprop.c (remove_properties): Fixed trap for malformed plist.
6838
68392002-04-22 Richard M. Stallman <rms@gnu.org>
6840
6841 * cmds.c (Fend_of_line): Handle intangible text in mid line.
6842
6843 * window.c (make_window): Initialize height_fixed_p,
6844 last_cursor_off_p, and p->cursor_off_p slots.
6845
68462002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6847
6848 * fns.c (use-dialog-box): Doc fix.
6849
68502002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6851
6852 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
6853 variables `row', `i' and `area'.
6854 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
6855 toolkit library.
6856
68572002-04-19 Stefan Monnier <monnier@cs.yale.edu>
6858
6859 * xfaces.c (clear_font_table): Don't free the default font of
6860 a frame even if it's on another display.
6861 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
6862 that could be Qt.
6863
68642002-04-19 Juanma Barranquero <lektu@terra.es>
6865
6866 * indent.c (Fmove_to_column): Remove unused local variable
6867 `next_boundary_byte'.
6868 (current_column_1): Likewise.
6869
68702002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6871
6872 * msdos.c (Qhbar): New variable.
6873 (syms_of_msdos): Intern and staticpro it.
6874 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
6875 cursor type.
6876
68772002-04-19 Dave Lambert <dlambert@acm.org>
6878
6879 Theses change implement an underscore-like (`hbar') cursor.
6880
6881 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
6882
6883 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
6884 Handle the `hbar' cursor type.
6885 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
6886
6887 * xfns.c (Qhbar): New variable.
6888 (syms_of_xfns): Intern and staticpro it.
6889 (x_specified_cursor_type): Handle `hbar' cursor.
6890
6891 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
6892 not defined.
6893
68942002-04-18 Richard M. Stallman <rms@gnu.org>
6895
6896 * textprop.c (remove_properties): New arg LIST allows scanning
6897 either a list or a plist.
6898 (interval_has_some_properties_list): New function, like
6899 interval_has_some_properties using list instead of plist.
6900 All callers changed.
6901 (Fremove_list_of_text_properties): New function.
6902 (syms_of_textprop): Defsubr it.
6903
69042002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
6905
6906 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
6907
69082002-04-17 Juanma Barranquero <lektu@terra.es>
6909
6910 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
6911
69122002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
6913
6914 * window.c (coordinates_in_window): Don't report on margin area
6915 if its width is zero.
6916
69172002-04-16 Jason Rumney <jasonr@gnu.org>
6918
6919 * w32fns.c (Fx_file_dialog): Decode file name before using.
6920
6921 * w32term.c (construct_drag_n_drop): Likewise.
6922
69232002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
6924
6925 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
6926 store load-history in pure space.
6927
6928 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
6929
69302002-04-16 Stefan Monnier <monnier@cs.yale.edu>
6931
6932 * xterm.c (Qlatin_1, Qutf_8): New vars.
6933 (syms_of_xterm): Initialize them.
6934 (XTread_socket): Eliminate incorrect optimization that tried to avoid
6935 decoding the output of X*LookupString.
6936 Always use latin-1 to decode the output of XLookupString.
6937 Try Xutf8LookupString if XmbLookupString failed.
6938
6939 * region-cache.c (new_region_cache): Use BEG.
6940
69412002-04-16 Gerd Moellmann <gerd@gnu.org>
6942
6943 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
6944 configuration files.
6945 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
6946 returns 0.
6947
69482002-04-15 Andreas Schwab <schwab@suse.de>
6949
6950 * config.in: Regenerated using autoheader.
6951
6952 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
6953 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
6954 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
6955 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
6956 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
6957 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
6958 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
6959 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
6960 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
6961 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
6962 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
6963 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
6964 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
6965 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
6966 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
6967 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
6968 STACK_DIRECTION, now set by autoconf.
6969
69702002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6971
6972 * dispnew.c (marginal_area_string): Sort arguments.
6973
6974 * dispextern.h (marginal_area_string): Add prototype.
6975
69762002-04-13 Richard M. Stallman <rms@gnu.org>
6977
6978 * fileio.c (Finsert_file_contents):
6979 Don't call temp_output_buffer_setup--do just part, by hand.
6980
6981 * coding.c (run_pre_post_conversion_on_str):
6982 Don't call temp_output_buffer_setup--do just part, by hand.
6983
6984 * keyboard.c (command_loop_1): Don't call start_hourglass
6985 or cancel_hourglass when executing a macro.
6986
6987 * marker.c (count_markers): New function.
6988
6989 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
6990 grow without limit. Move recently used elements to the front.
6991
69922002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
6993
6994 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
6995
69962002-04-12 Gerd Moellmann <gerd@gnu.org>
6997
6998 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
6999 rows marginal areas.
7000 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
7001 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
7002
7003 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
7004
70052002-04-12 Dave Love <fx@gnu.org>
7006
7007 * dispnew.c (marginal_area_string): New.
7008
7009 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
7010 (Qleft_margin, Qright_margin): Declare.
7011 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
7012
7013 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
7014 note_mode_line_highlight and extended.
7015
7016 * keyboard.c (Qleft_margin, Qright_margin): Declare.
7017 (make_lispy_event): Deal with mouse events in margins.
7018
70192002-04-12 Stefan Monnier <monnier@cs.yale.edu>
7020
7021 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
7022
7023 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
7024 than deactivating the mark if tmm is set to `lambda'.
7025 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
7026 Use a single event for HELP_EVENT.
7027 (Fexecute_extended_command): Save last_point_position.
7028
70292002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7030
7031 * lisp.h (Fpropertize): Add prototype.
7032
7033 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
7034
70352002-04-10 Colin Walters <walters@verbum.org>
7036
7037 * config.in: Add HAVE_SHARED_GAME_DIR.
7038
7039 * callproc.c: (Vgame_score_directory): New variable.
7040 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
7041
70422002-04-10 Richard M. Stallman <rms@gnu.org>
7043
7044 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
7045
70462002-04-09 Stefan Monnier <monnier@cs.yale.edu>
7047
7048 * minibuf.c (read_minibuf): Use empty_string.
7049 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
7050 Short-circuit the search as soon as it "failed".
7051 (Fall_completions): Allow lambda forms and lists of strings for alist.
7052 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
7053 when require_match is nil.
7054 (Ftest_completion): Rename from `test_completion' and export to elisp.
7055 Call the predicate also when alist is a list.
7056 Obey Vcompletion_regexp_list.
7057 (do_completion, Fminibuffer_complete_and_exit): Use it.
7058 (Fassoc_string): Rename from `assoc_for_completion'.
7059 Allow list of strings as well and export to elisp.
7060
70612002-04-08 Stefan Monnier <monnier@cs.yale.edu>
7062
7063 * puresize.h (BASE_PURESIZE): Increase to 900KB.
7064
70652002-04-08 Juanma Barranquero <lektu@terra.es>
7066
7067 * w32.c (sys_accept): Don't hide variable `s'.
7068
70692002-04-05 Gerd Moellmann <gerd@gnu.org>
7070
7071 * callint.c (Fcall_interactively): Use INTEGERP instead of
7072 NUMBERP for checking Vhistory_length.
7073
70742002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7075
7076 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
7077 Doc fix to reflect it.
7078
70792002-04-04 Richard M. Stallman <rms@gnu.org>
7080
7081 * xdisp.c (display_mode_element): New arg RISKY.
7082 Disregard text props found or specified within a variable
7083 that isn't marked risky-local-variable.
7084 (Qrisky_local_variable): New variable.
7085 (syms_of_xdisp): Init and staticpro it.
7086
70872002-04-04 Stefan Monnier <monnier@cs.yale.edu>
7088
7089 * undo.c (record_point): New fun.
7090 (record_delete, record_insert): Use it.
7091
70922002-04-03 Juanma Barranquero <lektu@terra.es>
7093
7094 * doc.c (Fdocumentation): Add missing parentheses.
7095 (Fdocumentation_property): Likewise.
7096
70972002-04-03 Stefan Monnier <monnier@cs.yale.edu>
7098
7099 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
7100 data is 0, just return nil.
7101
71022002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
7103
7104 * msdos.c (syms_of_msdos): Fix last change with
7105 mouse_autoselect_window.
7106
71072002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7108
7109 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
7110 mouse_autoselect_window.
7111
71122002-04-02 Stefan Monnier <monnier@cs.yale.edu>
7113
7114 * keyboard.c (make_lispy_event): Handle unknown keysyms together
7115 with system-specific keysyms. Use it also for unknown function keys.
7116
7117 * doc.c (reread_doc_file): Return whether reload was attempted.
7118 (Fdocumentation, Fdocumentation_property): Don't try to reload
7119 if the doc is 0 and only ask once.
7120
7121 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
7122
71232002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
7124
7125 * keyboard.c (read_char): If the event was Qselect_window,
7126 restore timer_idleness_start_time to its previous value.
7127
7128 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
7129
71302002-04-01 Stefan Monnier <monnier@cs.yale.edu>
7131
7132 * region-cache.c (new_region_cache): Use BEG.
7133
7134 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
7135 Use BEG and BEG_BYTE.
7136
7137 * doc.c (get_doc_string): Return nil if the location is wrong.
7138 (reread_doc_file): New fun.
7139 (Fdocumentation, Fdocumentation_property):
7140 Call it if get_doc_string fails.
7141 (Fsnarf_documentation): Make it work for a dumped Emacs.
7142
7143 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
7144 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
7145
7146 * charset.c (Fstring): Allow 0 arguments.
7147
7148 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
7149
7150 * process.c (DATAGRAM_CONN_P, list_processes_1)
7151 (Fprocess_datagram_address, Fset_process_datagram_address)
7152 (Fset_network_process_options, server_accept_connection):
7153 Fix some int/Lisp_Object confusions (thank you union types).
7154
71552002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7156
7157 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
7158
7159 * w32term.c: Likewise.
7160 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
7161
7162 * keyboard.c (Qselect_window): New symbol.
7163 (head_table): Use it.
7164 (keys_of_keyboard): Bound select-window event to handle-select-window.
7165 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
7166
7167 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
7168 (last_window): New variable.
7169 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
7170 (note_mouse_movement): Remove reimplemented code in #if 0.
7171 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
7172 Emacs windows.
7173
7174 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
7175
71762002-03-31 Gerd Moellmann <gerd@gnu.org>
7177
7178 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
7179 Callers changed.
7180
71812002-03-30 Richard M. Stallman <rms@gnu.org>
7182
7183 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
7184 loop whenever it stops making progress.
7185
7186 * widget.c (set_frame_size): Don't call change_frame_size.
7187
71882002-03-30 Gerd Moellmann <gerd@gnu.org>
7189
7190 * dispnew.c (direct_output_for_insert):
7191 Call mark_window_display_accurate.
7192
71932002-03-29 Jason Rumney <jasonr@gnu.org>
7194
7195 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
7196
71972002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
7198
7199 * Makefile.in (lread.o): Depend on coding.h.
7200
7201 * lread.c (openp, Fload): Encode the file name before passing it
7202 to `stat', `access', and `emacs_open'.
7203 (openp): GCPRO the encoded file name. Don't recompute Lisp
7204 strings unnecessarily.
7205
72062002-03-29 Kim F. Storm <storm@cua.dk>
7207
7208 * fns.c (Flax_plist_put): Doc fix.
7209
72102002-03-28 Miles Bader <miles@gnu.org>
7211
7212 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
7213
72142002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7215
7216 * process.c (set-network-process-options): Add usage.
7217 (make-network-process): Doc fix.
7218
72192002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
7220
7221 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
7222
72232002-03-26 Richard M. Stallman <rms@gnu.org>
7224
7225 * fns.c (Fsubstring_no_properties): New function.
7226 (Flax_plist_get, Flax_plist_put): New functions.
7227 (syms_of_fns): defsubr them.
7228
7229 * xdisp.c (update_menu_bar): Test only update_mode_lines;
7230 don't test or alter w->update_mode_line.
7231
7232 * window.c (Fdisplay_buffer): Doc fix.
7233
72342002-03-24 Richard M. Stallman <rms@gnu.org>
7235
7236 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
7237
72382002-03-24 Gerd Moellmann <gerd@gnu.org>
7239
7240 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
7241 (Fdefmacro): Handle `(declare ...)'.
7242 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
7243 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
7244
72452002-03-24 Jason Rumney <jasonr@gnu.org>
7246
7247 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
7248 (xbm_file_p): Add prototypes.
7249 (xbm_format, xbm_image_p): Sync with xfns.c.
7250 (reflect_byte): New function.
7251 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
7252 (xbm_load_image): Create bitmaps with a depth of 1.
7253 (init_xfns): Enable XBM images.
7254
72552002-03-23 Jason Rumney <jasonr@gnu.org>
7256
7257 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
7258 correctly. Do not pass up_modifier to keyboard buffer.
7259
7260 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
7261
72622002-03-22 Stefan Monnier <monnier@cs.yale.edu>
7263
7264 * Makefile.in (bootstrapclean): New target.
7265 (bootstrap-temacs, bootstrap-doc): Remove.
7266 (bootstrap-emacs): Use a bog-standard `temacs'.
7267 Don't bother to build a DOC file.
7268
7269 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
7270
7271 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
7272 in temacs even if !CANNOT_DUMP.
7273 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
7274
7275 * alloc.c (check_pure_size): Only output a warning.
7276
72772002-03-22 Jason Rumney <jasonr@gnu.org>
7278
7279 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
7280 supported.
7281
7282 * w32term.c (zv_bits): Declare as short, for word alignment.
7283 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
7284 (syms_of_w32term): Define x-use-underline-position-properties.
7285
7286 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
7287 (clear_image_cache): Block input, fix logic, clear matrices in
7288 all frames that share this cache.
7289
72902002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
7291
7292 * emacs.c (main): Update the Copyright year in the blurb printed
7293 by "emacs --version".
7294
7295 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
7296
7297 * xterm.c (XTread_socket): If XK_ISO_Lock and
7298 XK_ISO_Last_Group_Lock are defined, handle keysyms between
7299 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
7300
73012002-03-21 Kim F. Storm <storm@cua.dk>
7302
7303 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
7304 menu-bar bindings in keymap and local-map properties _are_ used.
7305 But try keymap property first in accordance with 2002-01-03 patch.
7306 Added comment describing why this is not always reliable.
7307 (tool_bar_items): Ditto for tool-bar.
7308
73092002-03-21 Jason Rumney <jasonr@gnu.org>
7310
7311 * w32fns.c (x_clear_image_1): Disable color table code.
7312
73132002-03-21 Kim F. Storm <storm@cua.dk>
7314
7315 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
7316 removed the wrong version of the DEFUN macro; fixed it.
7317
7318 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
7319 Fmember rather than Fmemq).
7320 (Fprovide): Check that subfeatures is a list.
7321
7322 * process.c (QCfeature, QCdatagram): Removed variables.
7323 (QCtype, Qdatagram): New variables.
7324 (network_process_featurep): Removed function.
7325 (Fmake_network_process): Removed :feature check.
7326 Use :type 'datagram instead of :datagram t to create a datagram
7327 socket. This allows us to add other connection types (e.g. raw
7328 sockets) later in a consistent manner.
7329 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
7330 supported subfeatures for feature make-network-process.
7331 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
7332 Intern and staticpro QCtype and Qdatagram.
7333 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
7334
7335 * xfns.c: (QCtype): Remove duplicate declaration and
7336 initialization (is now declared in process.c).
7337
7338 * w32fns.c: (QCtype): Remove duplicate declaration and
7339 initialization (is now declared in process.c).
7340
73412002-03-21 Richard M. Stallman <rms@gnu.org>
7342
7343 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
7344 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
7345 when jumping to `fail' to avoid undoing reg changes in the
7346 last iteration of the loop.
7347 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
7348
7349 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
7350 Depend on process.h.
7351
73522002-03-20 Jason Rumney <jasonr@gnu.org>
7353
7354 Most of the following changes are still conditional on HAVE_IMAGES
7355 which is not set by default on Windows.
7356
7357 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
7358
7359 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
7360 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
7361 (four_corners_best, x_clear_image_1, x_clear_image)
7362 (x_alloc_image_color, postprocess_image)
7363 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
7364 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
7365 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
7366
7367 * w32gui.h (struct XImage): Define.
7368
7369 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
7370 extract mouse co-ordinates.
7371
73722002-03-20 Jason Rumney <jasonr@gnu.org>
7373
7374 * w32.c (init_winsock): Dynamically load new server and UDP
7375 socket functions.
7376 (socket_to_fd): New function.
7377 (sys_socket): Use it.
7378 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
7379 (sys_recvfrom, sys_sendto): New wrapper functions.
7380
7381 * process.c (QCfamily, QCfilter): Remove duplicate declaration
7382 and initialization.
7383
7384 * makefile.w32-in (LIBS): Remove $(WSOCK32).
7385
73862002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
7387
7388 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
7389 Don't use "sun" as a variable, it's a predefined constant on Sun
7390 machines.
7391
73922002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7393
7394 * bytecode.c (Fbyte_code): Revert last change.
7395
73962002-03-19 Kim F. Storm <storm@cua.dk>
7397
7398 * makefile.w32-in (LIBS): Add $(WSOCK32).
7399 From David Ponce <dponce@voila.fr>.
7400
74012002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7402
7403 * process.c (wait_reading_process_input): Move variables `pname'
7404 and `pnamelen' down where they are used.
7405
7406 * bytecode.c (Fbyte_code): Discard unused computed value to
7407 prevent gcc warning.
7408
7409 * lisp.h (Fplist_member): Add prototype.
7410
74112002-03-18 Kim F. Storm <storm@cua.dk>
7412
7413 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
7414 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
7415
7416 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
7417 Remove explicit GNU_LINUX settings for datagram support.
7418
74192002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7420
7421 * process.c (Fmake_network_process): Remove unused variable `sa'.
7422 Doc fix. Add usage:.
7423 (set_socket_options): Remove unused variables `optnum' and `opttype'.
7424
74252002-03-17 Richard M. Stallman <rms@gnu.org>
7426
7427 * xdisp.c (cursor_type_changed): New variable.
7428 (redisplay_internal): Redisplay all windows if cursor_type_changed.
7429 Clear it when clearing windows_or_buffers_changed.
7430 (try_cursor_movement, redisplay_window, try_window_id)
7431 (try_window_reusing_current_matrix): Test cursor_type_changed
7432 along with windows_or_buffers_changed.
7433
7434 * window.h (cursor_type_changed): New variable.
7435
7436 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
7437 not update_mode_lines, and always set it to 1.
7438
7439 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
7440 if no frames needed redrawing.
7441
74422002-03-17 Kim F. Storm <storm@cua.dk>
7443
7444 The following changes add support for network server processes,
7445 datagram connections, and local (unix) sockets.
7446
7447 * process.h (struct Lisp_Process): New member log.
7448 Doc fix: Member command used to indicate stopped network process.
7449 Doc fix: Member childp contains plist for network process.
7450 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
7451
7452 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
7453 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
7454 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
7455 New variables.
7456 (NETCONN1_P): New macro.
7457 (DATAGRAM_SOCKETS): New conditional symbol.
7458 (datagram_address): New array.
7459 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
7460 (status_message): Use concat3.
7461 (Fprocess_status): Add `listen' status to doc string. Return `stop'
7462 for a stopped network process.
7463 (Fset_process_buffer): Update contact plist for network process.
7464 (Fset_process_filter): Ditto. Don't enable input for stopped
7465 network processes. Server must listen, even if filter is t.
7466 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
7467 New functions.
7468 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
7469 (Fprocess_contact): Added KEY argument. Handle datagrams.
7470 (list_processes_1): Optionally show only processes with the query
7471 on exit flag set. Dynamically adjust column widths. Omit tty
7472 column if not needed. Report stopped network processes.
7473 Identify server and datagram network processes.
7474 (Flist_processes): New optional arg `query-only'.
7475 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
7476 (conv_lisp_to_sockaddr, set_socket_options)
7477 (network_process_featurep, unwind_request_sigio): New helper functions.
7478 (Fprocess_datagram_address, Fset_process_datagram_address):
7479 (Fset_network_process_options): New lisp functions.
7480 (Fopen_network_stream): Removed. Now defined in simple.el.
7481 (Fmake_network_process): New lisp function. Code is based on previous
7482 Fopen_network_stream, but heavily reworked with new property list based
7483 argument list, support for datagrams, server processes, and local
7484 sockets in addition to old client-only functionality.
7485 (server_accept_connection): New function.
7486 (wait_reading_process_input): Use it to handle incoming connects.
7487 Do not enable input on a new connection if process is stopped.
7488 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
7489 (send_process): Handle datagram sockets.
7490 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
7491 network process is indicated by setting command field to t .
7492 (Fprocess_send_eof): No-op if datagram connection.
7493 (Fstatus_notify): Don't read input for a stream server socket or a
7494 stopped network process.
7495 (init_process): Initialize datagram_address array.
7496 (syms_of_process): Intern and staticpro new variables, defsubr new
7497 functions.
7498
74992002-03-16 Jason Rumney <jasonr@gnu.org>
7500
7501 * w32fns.c (w32_to_all_x_charsets): Return correct type in
7502 startup case.
7503
75042002-03-16 Richard M. Stallman <rms@gnu.org>
7505
7506 * xdisp.c (redisplay_internal, redisplay_windows):
7507 Use list_of_error to call internal_condition_case_1.
7508 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
7509 so as to catch all errors with no possibility of debugger redisplay.
7510 (list_of_error): New variable.
7511 (syms_of_xdisp): Init and staticpro it.
7512
7513 * print.c (print_object): Delete `\ ' from printed rep of frame.
7514
75152002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
7516
7517 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
7518 until its implementation is fixed.
7519
75202002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7521
7522 * xfns.c (png_load): Remove unused variable `gamma_str'.
7523
75242002-03-14 Richard M. Stallman <rms@gnu.org>
7525
7526 * xfns.c (x_real_positions): Handle failure in XQueryTree.
7527
75282002-03-14 Miles Bader <miles@gnu.org>
7529
7530 * intervals.c (adjust_for_invis_intang): New function.
7531 (set_point_both): Use `adjust_for_invis_intang' to do most of the
7532 work for dealing with invisible+intangible regions. Do so before
7533 and after both forward and backward movements, to handle both
7534 front-sticky and rear-sticky cases.
7535 * textprop.c (text_property_stickiness): Function moved here from
7536 `editfns.c'.
7537 * intervals.h (text_property_stickiness): New declaration.
7538 * editfns.c (char_property_eq): Function removed.
7539 (text_property_stickiness): Function moved to `textprop.c'.
7540
75412002-03-13 Jason Rumney <jasonr@gnu.org>
7542
7543 * config.in: Add STRFTIME_NO_POSIX2.
7544
7545 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
7546 and %OX when underlying strftime does not.
7547
75482002-03-13 Stefan Monnier <monnier@cs.yale.edu>
7549
7550 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
7551 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
7552 line) to avoid annoying flicker.
7553 (xm_scroll_callback): Get rid of the now unnecessary kludge.
7554 (XTread_socket): Mark it static.
7555
7556 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
7557
75582002-03-13 Kim F. Storm <storm@cua.dk>
7559
7560 * puresize.h (BASE_PURESIZE): Increase to 775000.
7561
75622002-03-12 Juanma Barranquero <lektu@terra.es>
7563
7564 * editfns.c (syms_of_editfns): Fix typo.
7565
75662002-03-12 Gerd Moellmann <gerd@gnu.org>
7567
7568 * xsmfns.c: Include stdio.h because termhooks.h needs it.
7569 Include termopt.h for interrupt_input.
7570
75712002-03-11 Andreas Schwab <schwab@suse.de>
7572
7573 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
7574
75752002-03-11 Gerd Moellmann <gerd@gnu.org>
7576
7577 * xterm.c (note_mouse_movement): Put code for
7578 x_autoselect_window_p in #if 0.
7579
7580 * lread.c (Fload): Don't assume that message_with_string uses the
7581 string it is given like a C string.
7582
75832002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7584
7585 * xterm.h (x_session_check_input, x_session_initialize): Declared.
7586
7587 * xterm.c: (XTread_socket): Add call to x_session_check_input and
7588 x_session_have_connection.
7589 (x_initialize): Add call to x_session_initialize.
7590
7591 * termhooks.h (enum event_kind): Add save_session_event.
7592
7593 * keyboard.c: Add Emacs event save_session_event.
7594
7595 * emacs.c (main): Add call to syms_of_xsmfns.
7596
7597 * lisp.h: Declare syms_of_xsmfns as extern.
7598
7599 * config.in: Add HAVE_X_SM.
7600
7601 * Makefile.in (LIBXT): Add -lSM -lICE
7602 if HAVE_X_SM and not USE_X_TOOLKIT.
7603 (XOBJ): New file xsmfns.c added.
7604
7605 * xsmfns.c: New file for X session management.
7606
76072002-03-09 Jason Rumney <jasonr@gnu.org>
7608
7609 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
7610 read-only when setting modified time.
7611
76122002-03-08 Gerd Moellmann <gerd@gnu.org>
7613
7614 * xdisp.c (move_it_vertically_backward): At the end of the function,
7615 when moving forward by lines, treat terminal frames specially.
7616
7617 * keyboard.c (echo_char): Make sure to add a separator between
7618 keys even if echo_dash hasn't been called.
7619
7620 * xdisp.c: Use new string macros.
7621 (update_echo_area): Pass number of bytes to message3 instead of
7622 number of chars.
7623 (set_message_1): Don't access a string's size_byte directly.
7624 (decode_mode_spec_coding): Use number of bytes of eoltype string
7625 instead number of chars.
7626
7627 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
7628
76292002-03-08 Juanma Barranquero <lektu@terra.es>
7630
7631 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
7632 24-bit.
7633
76342002-03-06 Jason Rumney <jasonr@gnu.org>
7635
7636 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
7637
76382002-03-06 Gerd Moellmann <gerd@gnu.org>
7639
7640 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
7641 (cancel_echoing, echo_length, echo_truncate): Changed to
7642 work with new kboard definition.
7643 (echo_now): Use message3_nolog instead of message2_nolog.
7644
7645 * alloc.c (mark_kboards): Mark echo_string.
7646
7647 * keyboard.h (ECHOBUFSIZE): Removed.
7648 (struct kboard): Member echoptr removed, member echobuf renamed
7649 to echo_string.
7650
7651 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
7652 message3 instead of message2 to display the message using STRING's
7653 text properties.
7654
76552002-03-05 Andreas Schwab <schwab@suse.de>
7656
7657 * xdisp.c (hscroll_margin): Change to EMACS_INT.
7658
76592002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
7660
7661 * frame.c (default-frame-alist): Explain that setting it doesn't
7662 affect existing frames.
7663
76642002-03-05 Stefan Monnier <monnier@cs.yale.edu>
7665
7666 * indent.c (skip_invisible): Fix my brain fart.
7667
7668 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
7669
76702002-03-04 Stefan Monnier <monnier@cs.yale.edu>
7671
7672 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
7673 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
7674 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
7675 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
7676 and variables to use EMACS_INT instead of just int.
7677
7678 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
7679
76802002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
7681
7682 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
7683 environment, pass it down with corrected value.
7684
76852002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7686
7687 * lread.c (read_filtered_event): Do not call start_hourglass
7688 before returning.
7689
76902002-03-04 Juanma Barranquero <lektu@terra.es>
7691
7692 * w32term.c (x_display_and_set_cursor): Fix typo.
7693
76942002-03-03 Richard M. Stallman <rms@gnu.org>
7695
7696 * fileio.c (Fmake_temp_name): Doc fix.
7697
76982002-03-03 Gary Wong <gtw@gnu.org>
7699
7700 * termcap.c [!emacs]: Replace ospeed for building standalone
7701 libtermcap, for binary compatibility.
7702
7703 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
7704
77052002-03-03 Richard M. Stallman <rms@gnu.org>
7706
7707 * xrdb.c (file_p): Rename arg `path' to `filename'.
7708
7709 * abbrev.c (Fexpand_abbrev): Increment plist as use count
7710 only if it is an integer.
7711
7712 * xfns.c (png_load): Set screen_gamma based on f->gamma.
7713 If png_get_sRGB gives an answer, call png_set_gamma
7714 using the default image gamma value.
7715
7716 * lread.c (read1): When reading from a file, default string to
7717 multibyte only if it has some multibyte characters.
7718
7719 * print.c (print_object): Output multibyte chars 128...255
7720 using \x even if ! print_escape_multibyte.
7721
7722 * xdisp.c (display_mode_element): Move the places where
7723 bytepos, charpos, this, and lisp_string are set.
7724 Use lisp_string to set bytepos.
7725
7726 * xdisp.c (redisplay_internal):
7727 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
7728
7729 * xdisp.c (display_mode_element): Merge properties specified with
7730 :propertize onto those that come with the string.
7731
77322002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
7733
7734 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
7735 automatic-hscrolling. Users changed.
7736 <hscroll-margin>: Renamed from automatic-hscroll-margin.
7737 Users changed.
7738 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
7739
77402002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
7741
7742 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
7743
77442002-03-02 Kim F. Storm <storm@cua.dk>
7745
7746 * window.c (Fminibuffer_selected_window): New function.
7747 (syms_of_window): Defsubr it.
7748
77492002-03-01 Kim F. Storm <storm@cua.dk>
7750
7751 * window.h (struct window): New member phys_cursor_width.
7752
7753 * window.c (make_window, replace_window): Init phys_cursor_width.
7754
7755 * xterm.c (x_display_and_set_cursor): Blink box cursor using
7756 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
7757
7758 * w32term.c (x_display_and_set_cursor): Blink box cursor using
7759 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
7760
7761 * lisp.h (GCPRO6): New macro.
7762
7763 * process.c (Fopen_network_stream): Use GCPRO6.
7764
77652002-03-01 Kim F. Storm <storm@cua.dk>
7766
7767 * process.c (Qconnect, Qfailed): New variables.
7768 (syms_of_process): Intern and staticpro them.
7769 (Fprocess_status): Document connect and failed return values.
7770 [NON_BLOCKING_CONNECT]: New conditional.
7771 (connect_wait_mask, num_pending_connects): New variables.
7772 (status_message): Convert Qfailed status.
7773 (Fopen_network_stream): Added support for non-blocking connect.
7774 New optional args: filter, sentinel, non_blocking. Doc updated.
7775 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
7776 (deactivate_process): Handle pending non-blocking connect.
7777 (wait_reading_process_input): Poll for status of non-blocking
7778 connects. Exec sentinel directly when connect succeeds.
7779 (status_notify): Don't read process output if not yet connected.
7780
77812002-02-28 Kim F. Storm <storm@cua.dk>
7782
7783 * window.c: (minibuf_selected_window): Renamed from
7784 Vminibuf_selected_window. Users changed.
7785 (syms_of_window): Staticpro it.
7786
77872002-02-26 Kim F. Storm <storm@cua.dk>
7788
7789 The following changes add a new Vminibuf_selected_window variable
7790 which is similar to Vminibuf_scroll_window, but which is only set
7791 on entry to the minibuffer (from a non-minibuffer window):
7792
7793 * window.c: (Vminibuf_selected_window): New variable.
7794 (struct save_window_data): New member minibuf_selected_window.
7795 (Fset_window_configuration): Restore Vminibuf_selected_window.
7796 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
7797 Set minibuf_scroll_window member to nil if minibuf_level is 0.
7798 (compare_window_configurations): Compare minibuf_selected_window.
7799
7800 * window.h: (Vminibuf_selected_window): Declare extern.
7801
7802 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
7803 entry to minibuffer or on entry from a non-minibuffer window.
7804
7805 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
7806 Vminibuf_selected_window instead of Vminibuf_scroll_window.
7807
7808 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
7809 instead of Vminibuf_scroll_window when deciding in which window
7810 the region should be highlighted. Consequently, the region remains
7811 highlighteded even when a completion buffer is also displayed.
7812
78132002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
7814
7815 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
7816
7817 * xselect.c (Qcompound_text_with_extensions): Renamed from
7818 Qcompound_text_no_extensions.
7819 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
7820
78212002-02-26 Juanma Barranquero <lektu@terra.es>
7822
7823 * w32proc.c (syms_of_ntproc): Doc fix.
7824
78252002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7826
7827 * intervals.h: Include "dispextern.h" unconditionally.
7828
78292002-02-24 Jason Rumney <jasonr@gnu.org>
7830
7831 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
7832 and disp-table.elc.
7833 (lisp): Add emacs-lisp/backquote.elc.
7834
78352002-02-24 Kim F. Storm <storm@cua.dk>
7836
7837 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
7838 The validation of the event type was too strict as it didn't
7839 allow string events; buffer names are used in bindings for
7840 menu-bar-select-buffer (see `menu-bar-update-buffers').
7841
78422002-02-23 Kim F. Storm <storm@cua.dk>
7843
7844 The following changes rework my patch of 2002-02-06 which
7845 added command remapping by entering the commands directly into
7846 the keymaps. Now, command remapping uses an explicit `remap'
7847 prefix in the keymaps, i.e. [remap COMMAND].
7848
7849 * keymap.c (Qremap, remap_command_vector): New variables.
7850 (is_command_symbol): Removed function.
7851 (Fdefine_key): No longer accept a symbol for KEY.
7852 Added validation of [remap COMMAND] argument for KEY.
7853 The DEF is no longer required to be a symbol when remapping a command.
7854 (Fremap_command): New function to remap command through keymaps.
7855 (Flookup_key): Perform command remapping initiated by
7856 Fremap_command directly for speed.
7857 (Fkey_binding): Use Fremap_command for command remapping.
7858 (where_is_internal): Handle new command remapping representation.
7859 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
7860 staticpro them. Defsubr Fremap_command.
7861
7862 * keymap.h (Fremap_command): Declare extern.
7863 (is_command_symbol): Remove extern.
7864
7865 * keyboard.c (command_loop_1): Use Fremap_command for command
7866 remapping; now try command remapping for all symbols.
7867
78682002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
7869
7870 * coding.h (run_pre_post_conversion_on_str): Add prototype.
7871
78722002-02-23 Jason Rumney <jasonr@gnu.org>
7873
7874 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
7875 on the string before encoding it.
7876 (Fw32_get_clipboard_data): Run post-read-conversion on the string
7877 after decoding it.
7878
7879 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
7880
78812002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7882
7883 * w32term.c (enter_timestamp): Remove unused static variable to
7884 prevent warning.
7885
7886 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
7887
78882002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
7889
7890 * w16select.c (Fw16_get_clipboard_data): Fix last change.
7891
7892 * xselect.c (selection_data_to_lisp_data): Fix last change.
7893
78942002-02-22 Jason Rumney <jasonr@gnu.org>
7895
7896 * w32term.h (struct w32_output): New member menu_command_in_progress.
7897
7898 * w32menu.c (menubar_selection_callback): Free the menu and
7899 clear the menu_command_in_progress flag.
7900
7901 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
7902 (menu_free_timer): New variable.
7903 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
7904 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
7905 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
7906 menu command is in progress.
7907 <WM_COMMAND>: Set the menu_command_in_progress flag.
7908 Kill any menu_free_timer that is running.
7909
7910 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
7911 Call ExtTextOutA rather than ExtTextOut.
7912
79132002-02-22 Eli Zaretskii <eliz@gnu.org>
7914
7915 * puresize.h (BASE_PURESIZE): Increase to 755000.
7916
79172002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
7918
7919 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
7920 on the string before encoding it.
7921 (Fw16_get_clipboard_data): Run post-read-conversion on the string
7922 after decoding it.
7923
79242002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
7925
7926 Support for ICCCM Extended Segments in X selections:
7927
7928 * xselect.c <Qcompound_text_no_extensions>: New variable.
7929 (syms_of_xselect): Intern and staticpro it.
7930 (selection_data_to_lisp_data): Run post-read-conversion on decoded
7931 selection text.
7932 (lisp_data_to_selection_data): If next-selection-coding-system is
7933 compound-text-no-extensions, set the type of selection to be
7934 compound-text.
7935
7936 * xterm.h (x_encode_text): Update prototype.
7937
7938 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
7939 callers changed. If SELECTIONP is non-zero, run the
7940 pre-write-conversion function before encoding the selection text.
7941
79422002-02-21 Kim F. Storm <storm@cua.dk>
7943
7944 * frame.c (syms_of_frame): Change mouse-highlight default to t.
7945
7946 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
7947 Correct composing of language-change event.
7948
79492002-02-20 Kim F. Storm <storm@cua.dk>
7950
7951 * keyboard.c (menu_bar_items): Don't include keymap or local-map
7952 bindings at PT when building menu (the menu is not updated often
7953 enough for this to work reliable).
7954 (tool_bar_items): Likewise.
7955 (current_active_maps): Removed unused (and buggy) function.
7956
79572002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7958
7959 * xfns.c (gif_load): Use correct width and height for GIF images.
7960
79612002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
7962
7963 * floatfns.c (Fatan): Accept an optional second arg and call
7964 atan2 if passed 2 args.
7965
79662002-02-18 Jason Rumney <jasonr@gnu.org>
7967
7968 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
7969
79702002-02-17 Jason Rumney <jasonr@gnu.org>
7971
7972 * w32term.c (x_autoselect_window_p): New variable.
7973 (syms_of_w32term): DEFVAR_BOOL and initialize it.
7974 (note_mouse_movement): Use it.
7975
7976 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
7977
7978 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
7979
7980 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
7981 New variables.
7982 (syms_of_w32fns): Intern and staticpro them.
7983 (x_frame_parms) <"fullscreen">: New parameter.
7984 (x_fullscreen_move, x_set_fullscreen): New functions.
7985 (x_set_frame_parameters): Support Qfullscreen.
7986 (x_real_positions): Save x/y_pixels_diff frame params.
7987 (x_figure_window_size): Support full-screen frames.
7988 (Fx_create_frame): Default the fullscreen parameter.
7989
7990 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
7991 (x_fullscreen_adjust): New functions.
7992 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
7993 fullscreen. Call x_check_fullscreen_move, and set the
7994 want_fullscreen member of output_data.w32
7995 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
7996
7997 * w32term.h: New enum for FULLSCREEN_* constants.
7998 (struct w32_output): New members want_fullscreen, x_pixels_diff,
7999 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
8000 (x-fullscreen-adjust): New prototype.
8001
80022002-02-17 Kim F. Storm <storm@cua.dk>
8003
8004 * frame.c: (Vmouse_highlight): New variable.
8005 (syms_of_frame): DEFVAR_LISP it.
8006
8007 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 8008
048addec 8009 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 8010
048addec
JD
8011 * xterm.c (disable_mouse_highlight): Removed variable.
8012 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
8013 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
8014 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
8015 and on after keyboard input.
8016 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 8017
048addec 8018 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 8019
048addec
JD
8020 * msdos.c (disable_mouse_highlight): Removed variable.
8021 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
8022 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
8023 (internal_terminal_init): Initialize mouse_face_hidden.
8024 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
8025 and on after keyboard input.
4f1b1854 8026
048addec 8027 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 8028
048addec
JD
8029 * w32term.c (disable_mouse_highlight): Removed variable.
8030 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
8031 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
8032 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
8033 and on after keyboard input.
8034 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 8035
048addec 80362002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 8037
048addec
JD
8038 * msdos.c (last_mouse_window): New variable.
8039 (dos_rawgetc): Fix last change--if the mouse is in the same window
8040 as recorded in last_mouse_window, don't select this window.
5cb6905d 8041
048addec 8042 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 8043
048addec
JD
8044 * msdos.c (x_autoselect_window_p): New variable.
8045 (syms_of_msdos): Defvar it.
8046 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
8047 which the last mouse movement occured, unless it is already selected.
437dfb9f 8048
048addec
JD
8049 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
8050 New variables.
8051 (syms_of_xdisp): DEVFAR them.
8052 (hscroll_window_tree): Use automatic_hscroll_margin and
8053 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 8054
048addec 80552002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 8056
048addec
JD
8057 * xterm.c (x-autoselect-window): New variable.
8058 (note_mouse_movement): Use it.
9f696a00 8059
048addec 8060 * keyboard.c: Do not include "systime.h" twice.
d57966d7 8061
048addec 80622002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 8063
048addec 8064 * puresize.h (BASE_PURESIZE): Increase to 9/5.
d57966d7 8065
048addec 8066 * alloc.c (NSTATICS): Increase to 1280.
74779f52 8067
048addec 80682002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 8069
048addec 8070 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 8071
048addec
JD
8072 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
8073 (Vx_super_keysym): New variables.
8074 (syms_of_xterm): DEFVAR_LISP them.
8075 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
8076 variables to determine which keys to use for the various modifiers.
a474d59c 8077
048addec 80782002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 8079
048addec
JD
8080 * window.c: (Vmode_line_in_non_selected_windows): Removed.
8081 (mode_line_in_non_selected_windows): New variable.
8082 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 8083
048addec
JD
8084 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
8085 Use mode_line_in_non_selected_windows.
8086 (mode_line_in_non_selected_windows): Declare extern.
8087 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 8088
048addec 80892002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 8090
048addec
JD
8091 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
8092 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
8093 (Fclear_this_command_keys): Doc fixes.
2d10309f 8094
048addec
JD
8095 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
8096 (update_face_from_frame_parameter): Increment face_change_count
8097 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 8098
048addec
JD
8099 * xdisp.c (QCpropertize): New variable.
8100 (mode_line_proptrans_alist): New variable.
8101 (display_mode_element): New arg PROPS; all calls changed.
8102 Implement this, for strings.
8103 Handle literal output of strings by sharing the
8104 main-line code for strings, using local var `literal'.
8105 Handle :propertize feature.
8106 (syms_of_xdisp): Initialze and staticpro QCpropertize and
8107 mode_line_proptrans_alist.
0b1e6b54 8108
048addec 81092002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 8110
048addec
JD
8111 * window.c: (Vmode_line_in_non_selected_windows): New variable.
8112 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 8113
048addec
JD
8114 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
8115 (CURRENT_MODE_LINE_FACE_ID): Use it.
8116 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 8117
048addec
JD
8118 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
8119 to get mode line face.
e17144de 8120
048addec 81212002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 8122
048addec
JD
8123 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
8124 variables; cus-start.el doesn't need them anymore.
44368f8f 8125
048addec 81262002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 8127
048addec
JD
8128 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
8129 reduction. This fixes a display problem where stray newlines were
8130 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 8131
048addec 81322002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 8133
048addec 8134 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 8135
048addec 8136 * xdisp.c (display_mode_lines): Fix last change.
453c5510 8137
048addec 81382002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 8139
048addec
JD
8140 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
8141 match each other.
8142 (w32_load_system_font): Prevent Cleartype fonts from loading.
8143 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 8144
048addec 81452002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 8146
048addec
JD
8147 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
8148 (CURRENT_MODE_LINE_HEIGHT): Use it.
8149 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 8150
048addec
JD
8151 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
8152 (pos_visible_p, handle_face_prop): Likewise.
8153 (display_mode_lines): Likewise, but for the real selected window.
8154 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 8155
048addec
JD
8156 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
8157 in non-selected windows.
8158 (realize_basic_faces): Realize it.
8159 (syms_of_term): Intern and staticpro it.
308dd672 8160
048addec 81612002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 8162
048addec
JD
8163 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
8164 Changed mail addresses to emacs-devel@gnu.org.
308dd672 8165
048addec 81662002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 8167
048addec
JD
8168 * fileio.c (Fsubstitute_in_file_name): If the file name includes
8169 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 8170
048addec 8171 * floatfns.c (Fround): Doc fix.
3c1e6b46 8172
048addec 81732002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 8174
048addec 8175 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 8176
048addec 81772002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 8178
048addec 8179 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 8180
048addec 81812002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 8182
048addec
JD
8183 * keymap.c (where_is_internal): Only check whether definition is
8184 remapped if it fulfills is_command_symbol.
0065bb74 8185
048addec 81862002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 8187
048addec 8188 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 8189
048addec 8190 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 8191
048addec 81922002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 8193
048addec
JD
8194 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
8195 defining command remapping. Doc updated.
8196 (Flookup_key): Remap command through keymap if KEY is a symbol.
8197 (is_command_symbol): New function.
8198 (Fkey_binding): Use it. New optional argument NO-REMAP.
8199 Doc updated. Callers changed. Perform command remapping via
8200 recursive call unless that arg is non-nil.
8201 (where_is_internal): New argument no_remap. Callers changed.
8202 Call recursively to find original key bindings for a remapped
8203 comand unless that arg is non-nil.
8204 (Fwhere_is_internal): New optional argument NO-REMAP.
8205 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 8206
048addec
JD
8207 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
8208 (is_command_symbol): Added prototype.
0d8466cc 8209
048addec
JD
8210 * keyboard.c (Vthis_original_command): New variable.
8211 (syms_of_keyboard): DEFVAR_LISP it.
8212 (command_loop_1): Set it, and perform command remapping.
15fff01d 8213
048addec 82142002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 8215
048addec 8216 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 8217
048addec 82182002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 8219
048addec 8220 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 8221
048addec 82222002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 8223
048addec 8224 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 8225
048addec 82262002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 8227
048addec 8228 * filelock.c (S_ISLNK): Define if not defined.
3a232704 8229
048addec 82302002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 8231
048addec 8232 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 8233
048addec
JD
8234 * lread.c (read1): Redesign strategy for force_multibyte and
8235 force_singlebyte. Now is_multibyte records whether read_buffer
8236 is multibyte. Encountering any multibyte character makes it so.
4e02881b 8237
048addec 82382002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 8239
048addec
JD
8240 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
8241 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 8242
048addec 82432002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 8244
048addec
JD
8245 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
8246 latter never being defined on GNU/Linux.
749f499f 8247
048addec 82482002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 8249
048addec
JD
8250 * xfaces.c (realize_default_face): Don't set the weight and slant of
8251 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 8252
048addec 82532002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 8254
048addec
JD
8255 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
8256 Call cancel_hourglass unconditionally.
d0fd26dd 8257
048addec
JD
8258 * eval.c (Fsignal): Remove duplicated declaration of
8259 the variable `display_hourglass_p'.
b4c45162 8260
048addec 82612002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 8262
048addec 8263 * editfns.c (region_limit): Nicer error message.
c95eaa61 8264
048addec
JD
8265 * coding.c (decode_composition_emacs_mule):
8266 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 8267
048addec
JD
8268 * callint.c (check_mark): New arg to specify clearer error message.
8269 Callers changed.
c95eaa61 8270
048addec 82712002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 8272
048addec 8273 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 8274
048addec 82752002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 8276
048addec
JD
8277 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
8278 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
8279 Fix doc-strings.
c95eaa61 8280
048addec 82812002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 8282
048addec 8283 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 8284
048addec
JD
8285 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
8286 and scroll_up_aggressively.
c95eaa61 8287
048addec 82882002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 8289
048addec 8290 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 8291
048addec 82922002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 8293
048addec
JD
8294 * textprop.c (Fnext_property_change, Fnext_single_property_change)
8295 (Fprevious_property_change, Fprevious_single_property_change):
8296 Stay within the narrowed-buffer boundaries.
e2c3786a 8297
048addec 82982002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 8299
048addec
JD
8300 * term.c (Ftty_display_color_cells): New function.
8301 (syms_of_term): Defsubr it.
8302 (Ftty_display_color_cells, Ftty_display_color_p): Change the
8303 argument name to DISPLAY. Doc fix.
bf794306 8304
048addec
JD
8305 * dispextern.h: Add prototype for set_tty_color_mode and
8306 tty_setup_colors.
bf794306 8307
048addec 83082002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 8309
048addec
JD
8310 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
8311 If region left to draw is not what was expected, mark the frame as
8312 garbaged.
62582985 8313
048addec
JD
8314 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
8315 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 8316
048addec 83172002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 8318
048addec
JD
8319 * w32term.c (x_update_window_begin): Only hide caret if
8320 w32_use_visible_system_caret is set.
8321 (x_update_window_end): Only show caret if
8322 w32_use_visible_system_caret is set.
8323 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 8324
048addec 8325 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 8326
048addec 83272002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 8328
048addec
JD
8329 * unexelf.c (unexec): Define n so as to cause compilation error
8330 for the code where people have often written n instead of nn.
1e9a6186 8331
048addec 8332 * .gdbinit (hookpost-run): Defined.
1e9a6186 8333
048addec 83342002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 8335
048addec 8336 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 8337
048addec 83382002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 8339
048addec
JD
8340 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
8341 if fullscreen is being set.
7c75be36 8342
048addec 83432002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 8344
048addec
JD
8345 * minibuf.c (Fminibuffer_contents)
8346 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
8347 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 8348
048addec 83492002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 8350
048addec 8351 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 8352
048addec 83532002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 8354
048addec
JD
8355 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
8356 height before comparison.
8357 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 8358
048addec 83592002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 8360
048addec
JD
8361 * w32term.c (w32_system_caret_width): Remove.
8362 (w32_use_visible_system_caret): New user flag.
8363 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
8364 Windows reports a screen reader running.
8365 (x_update_window_begin): Hide the system caret.
8366 (x_update_window_end): Show the system caret.
8367 (x_display_and_set_cursor): Don't draw a cursor when
8368 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 8369
048addec
JD
8370 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
8371 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
8372 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
8373 the user requests it. Use system default width when creating.
8374 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 8375
048addec
JD
8376 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
8377 New window messages.
905cc05a 8378
048addec 83792002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 8380
048addec 8381 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 8382
048addec 83832002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 8384
048addec 8385 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 8386
048addec 83872002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 8388
048addec 8389 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 8390
048addec 83912002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 8392
048addec
JD
8393 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
8394 that Windows returns. If a double check fails, try to guess how
8395 ExtTextOut is going to act.
4d0fa4f3 8396
048addec
JD
8397 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
8398 in place of stricmp.
8399 (w32_list_synthesized_fonts): Removed.
8400 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
8401 (struct enumfont_t): New element; list.
8402 (enum_font_cb2): List all style and charset variations of a font.
8403 (Fw32_select_font): New optional argument; include_proportional.
8404 Exclude vertical fonts. Exclude proportional fonts unless
8405 include_proportional is non-nil.
8406 (w32_enable_synthesized_fonts): Change to a boolean.
8407 (Fw32_send_sys_command): Doc fix.
493faf20 8408
048addec 84092002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 8410
048addec
JD
8411 * dispnew.c (update_frame): Move the variable `tem' to the block
8412 where it is used.
4971e491 8413
048addec 84142002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 8415
048addec
JD
8416 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
8417 call to face-set-after-frame-default.
4971e491 8418
048addec 84192002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 8420
048addec
JD
8421 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
8422 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 8423
048addec 84242002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 8425
048addec
JD
8426 * window.c (enlarge_window): When exceeding size of parent,
8427 directly delete all the siblings instead of trying to resize it.
201c831a 8428
048addec 84292002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 8430
048addec 8431 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 8432
048addec 84332002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 8434
048addec 8435 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 8436
048addec 84372002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 8438
048addec
JD
8439 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
8440 is invisible. This can happen if cursor is on top line of a
8441 window, and we switch to a buffer with a header line.
d77fbc16 8442
048addec 8443 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 8444
048addec 84452002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 8446
048addec
JD
8447 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
8448 `dont_resize' only when used.
61e3b944 8449
048addec 8450 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 8451
048addec 84522002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 8453
048addec
JD
8454 * xdisp.c (display_mode_element): When computing charpos, depend
8455 on multibyteness of elt, not the text in field.
8af01033 8456
048addec 84572002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 8458
048addec
JD
8459 * buffer.c (Fkill_all_local_variables):
8460 Increment `update_mode_lines' only once.
7363986a 8461
048addec 84622002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 8463
048addec
JD
8464 * lisp.h (adjust_after_replace_noundo)
8465 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 8466
048addec 8467 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 8468
048addec 84692002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 8470
048addec
JD
8471 Support for the --color command-line argument and tty-color-mode
8472 frame parameter:
f1a85b89 8473
048addec
JD
8474 * term.c (tty_default_color_capabilities, tty_setup_colors)
8475 (set_tty_color_mode): New functions.
8476 (term_init): Call tty_default_color_capabilities.
8477 (Qtty_color_mode_alist): New variable.
8478 (syms_of_term): Intern and staticpro it.
f1a85b89 8479
048addec
JD
8480 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
8481 frames.
8482 (do_switch_frame): For termcap frames, switch the tty
8483 color mode as specified by the frame's parameters.
8484 (Qtty_color_mode): New variable.
8485 (syms_of_frame): Intern and staticpro it.
3a62677f 8486
048addec
JD
8487 * emacs.c (USAGE2): Add the --color option.
8488 (standard_args): Ditto.
72244db2 8489
048addec
JD
84902002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8491
8492 * xterm.h (struct x_output): New members want_fullscreen,
8493 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
8494 y_pixels_outer_diff.
8495 New enum for FULLSCREEN_* constants.
8496 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
8497 is NULL.
8498 (x_fullscreen_adjust): Add prototype.
3a62677f 8499
048addec
JD
8500 * emacs.c (USAGE2): Add the new full-screen arguments.
8501 (standard_args): Ditto.
3a62677f 8502
048addec
JD
8503 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
8504 New variables.
8505 (syms_of_xfns): Intern and staticpro them.
8506 (x_frame_parms) <"fullscreen">: New parameter.
8507 (x_fullscreen_move, x_set_fullscreen): New functions.
8508 (x_set_frame_parameters): Support for Qfullscreen.
8509 (x_real_positions): More accurate computation of the frame position.
8510 (x_figure_window_size): Support full-screen frames.
8511 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 8512
048addec
JD
8513 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
8514 (XTread_socket) <Expose>: Call x_check_fullscreen.
8515 <ConfigureNotify>: Don't resize to fullscreen.
8516 Call x_check_fullscreen_move, and set the want_fullscreen member of
8517 output_data.x.
3a62677f 8518
048addec 85192002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 8520
048addec
JD
8521 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
8522 for mice with more than 3 buttons.
b8523839 8523
048addec
JD
8524 * w32term.c (parse_button): New parameter xbutton. Callers changed.
8525 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 8526
048addec
JD
8527 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
8528 (syms_of_w32fns): DEFVAR_BOOL it.
8529 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 8530
048addec 85312002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 8532
048addec 8533 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 8534
048addec 85352002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 8536
048addec 8537 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 8538
048addec 85392002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 8540
048addec
JD
8541 * .gdbinit (xbuffer): Remove address operator since data is now a
8542 pointer.
c93674bb 8543
048addec 85442002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 8545
048addec 8546 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 8547
048addec 8548 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 8549
048addec 85502002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 8551
048addec
JD
8552 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
8553 when checking for multiple frames.
91175673 8554
048addec 85552002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 8556
048addec
JD
8557 * window.c (delete_window): Rewrite the code for changing the
8558 selected window to handle the case where WINDOW is not a leaf.
91175673 8559
048addec 85602002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 8561
048addec
JD
8562 * process.c (send_process): Set src_multibyte to 1 after the call
8563 top setup_coding_system, not before the call.
e0fead5d 8564
048addec 85652002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 8566
048addec
JD
8567 * xmenu.c (set_frame_menubar, xmenu_show):
8568 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 8569
048addec
JD
8570 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
8571 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 8572
048addec 85732002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 8574
048addec 8575 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 8576
048addec 8577 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 8578
048addec 8579 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 8580
048addec 85812002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 8582
048addec
JD
8583 * insdel.c (make_gap_larger): Make sure buffer size does not
8584 overflow range of int.
62854fe2 8585
048addec 85862002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 8587
048addec
JD
8588 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
8589 OVERLAPS_P.
656f46bb 8590
048addec 8591 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 8592
048addec
JD
8593 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
8594 to the left or to the right of the pointer, put it against
8595 the left screen edge.
8596 (x_frame_parms): Add missing braces around initializer.
036e218d 8597
048addec
JD
8598 * w32term.c (x_setup_relief_colors): Don't compute an image's
8599 background color if it doesn't have a Pixmap.
8600 (notice_overwritten_cursor): Don't depend on
8601 output_cursor and updated_area. Compare pixel coordinates with
8602 window's cursor pixel coordinates.
8603 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
8604 Call notice_overwritten_cursor with new arg list.
8605 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
8606 unconditionally.
8607 (x_draw_image_relief): Use predefined macro instead of
8608 constant when the value of `tool_bar_button_relief' is negative.
036e218d 8609
048addec 8610 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 8611
048addec 86122002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 8613
048addec 8614 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 8615
048addec 86162002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 8617
048addec
JD
8618 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
8619 (Fkey_binding): Try the `keymap' property map first.
8620 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
8621 minor mode bindings.
90647b07 8622
048addec 86232002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 8624
048addec 8625 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 8626
048addec 86272002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 8628
048addec
JD
8629 * keyboard.c (read_key_sequence): Handle the keymap property
8630 before minor mode maps.
9fbc32aa 8631
048addec
JD
8632 * editfns.c (Fformat): Update thissize from field_width
8633 based on the actual width, in the string case.
036e218d 8634
048addec 86352002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 8636
048addec
JD
8637 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
8638 when used as truth value to prevent gcc warnings.
9fbc32aa 8639
048addec
JD
8640 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
8641 * w32proc.c: Include <config.h>.
9fbc32aa 8642
048addec 86432002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 8644
048addec
JD
8645 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
8646 not EMACS_INT, to make them compatible with DEFVAR_INT.
8647 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 8648
048addec 86492002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 8650
048addec
JD
8651 * print.c (print_object): Test print_escape_nonascii only for
8652 unibyte strings.
8653 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
8654 when outputting to a multibyte buffer.
9fbc32aa 8655
048addec 86562001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 8657
048addec
JD
8658 * print.c (print_object): In multibyte string, use hex escapes.
8659 Use octal only for unibyte strings.
8660 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 8661
048addec
JD
8662 * lread.c (read_escape): New arg BYTEREP for reporting whether
8663 escape forces unibyte or multibyte.
8664 (read1): When reading a string, take note of that info.
0142178a 8665
048addec 86662001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 8667
048addec
JD
8668 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
8669 comparison to test lisp value returned by Fget.
d4824a5d 8670
048addec 86712001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 8672
048addec 8673 * lisp.h (max_specpdl_size): Add declaration.
b1356234 8674
048addec 8675 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 8676
048addec
JD
8677 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
8678 Handle modifier bits. Correct typo in error message.
99e380ee 8679
048addec 86802001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 8681
048addec
JD
8682 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
8683 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
8684 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
8685 Update calls to Fdefine_abbrev.
8686 (write_abbrev): Update for changed data format.
8687 Don't list "system" abbrevs.
8688 (Fexpand_abbrev): Update use count with new data format.
8689 (describe_abbrev): Update for changed data format.
8690 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 8691
048addec 8692 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 8693
048addec 8694 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 8695
048addec
JD
8696 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
8697 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 8698
048addec
JD
8699 * keymap.c (Flookup_key): Error message if key has wrong data type.
8700 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
8701 (exclude_key): New variable.
59a86c99 8702
048addec 87032001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 8704
048addec
JD
8705 * xterm.c (x_setup_relief_colors): Don't compute an image's
8706 background color if it doesn't have a Pixmap.
eb77a5f4 8707
048addec
JD
8708 * xterm.c (notice_overwritten_cursor): Don't depend on
8709 output_cursor and updated_area. Compare pixel coordinates with
8710 window's cursor pixel coordinates.
8711 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
8712 Call notice_overwritten_cursor with new arg list.
8713 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
8714 unconditionally.
eb77a5f4 8715
048addec
JD
8716 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
8717 height of the cursor line to the amount to scroll.
eb77a5f4 8718
048addec 87192001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 8720
048addec
JD
8721 * intervals.c (set_point_both): The position after an invisible,
8722 intangible character is not an acceptable stopping point.
bb313871 8723
048addec 87242001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 8725
048addec
JD
8726 * window.c (enlarge_window): In new preserve_before code, convert
8727 CURBEG from lisp object to integer before doing arithmetic.
6052529b 8728
048addec 87292001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 8730
048addec 8731 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 8732
048addec 87332001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 8734
048addec
JD
8735 * keyboard.c (record_char): Ignore duplicate help-echo events only
8736 separated by mouse-movement. When tracking mouse, only record
8737 first and last mouse-movement event in same window.
8738 Don't record mouse-movement events in keyboard macros.
3ce081f5 8739
048addec 87402001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 8741
048addec
JD
8742 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
8743 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 8744
048addec
JD
8745 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
8746 instead of Fstring_as_unibyte.
9fabb2f5 8747
048addec 87482001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 8749
048addec 8750 The following changes remove mocklisp support:
9fabb2f5 8751
048addec 8752 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 8753
048addec
JD
8754 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
8755 `Qmocklisp' and `Qmocklisp_arguments'.
8756 Remove prototype of syms_of_mocklisp.
2fa0eedf 8757
048addec 8758 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 8759
048addec
JD
8760 * callint.c: Do not include mocklisp.h.
8761 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 8762
048addec
JD
8763 * eval.c: Remove variables `Qmocklisp_arguments',
8764 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
8765 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
8766 Do not test for mocklisp case.
8767 (Fwhile): Remove unused variable `tem'.
8768 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 8769
048addec 8770 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 8771
048addec 8772 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 8773
048addec 8774 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 8775
048addec 87762001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 8777
048addec
JD
8778 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
8779 to the left or to the right of the pointer, put it against
8780 the left screen edge.
6108b49c 8781
048addec 87822001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 8783
048addec
JD
8784 * Makefile.in (distclean): Remove .gdbinit if we are building
8785 outside the source tree.
5eea19a4 8786
048addec 87872001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 8788
048addec 8789 * w32.c (emacs_root_dir): New function.
5eea19a4 8790
048addec 8791 * msdos.c (emacs_root_dir): New function.
5eea19a4 8792
048addec
JD
8793 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
8794 of the current drive as the fallback for default_directory.
438e57dd 8795
048addec
JD
8796 * dired.c (file_name_completion): Run the elements of
8797 completion-ignored-extensions through ENCODE_FILE.
438e57dd 8798
048addec
JD
8799 * lisp.h (scmp): Remove prototype, since it's now a static
8800 function private to dired.c.
c88e5347 8801
048addec 88022001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 8803
048addec
JD
8804 * dired.c (scmp): Function moved from minibuf.c.
8805 Delete multibyte handling--used only on encoded strings.
59ce1461 8806
048addec 8807 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 8808
048addec 8809 * fns.c (merge): Add QUIT call.
59ce1461 8810
048addec 88112001-12-18 Dave Love <fx@gnu.org>
8727d588 8812
048addec
JD
8813 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
8814 language/georgian.el.
8727d588 8815
048addec 88162001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 8817
048addec
JD
8818 * Makefile.in (lisp, shortlisp): Synchronize with changes to
8819 lisp/Makefile.in:DONTCOMPILE.
cc63037e 8820
048addec 88212001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 8822
048addec
JD
8823 * xdisp.c (window_box_height): Do not return negative values.
8824 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 8825
048addec 8826 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 8827
048addec 8828 * term.c (keys): Likewise.
deece6f5 8829
048addec 8830 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 8831
048addec 88322001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 8833
048addec
JD
8834 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
8835 patch (COMPOSING_P, not COMPOSING).
28ff4293 8836
048addec 88372001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 8838
048addec 8839 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 8840
048addec
JD
8841 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
8842 before calling decode_coding.
9b46de40 8843
048addec 8844 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 8845
048addec
JD
8846 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
8847 instead of only for COMPOSITION_DISABLED.
9b46de40 8848
048addec 88492001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 8850
048addec 8851 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 8852
048addec 8853 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 8854
048addec
JD
8855 * buffer.h (struct buffer): New field `display_error_modiff'.
8856 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 8857
048addec 8858 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 8859
048addec
JD
8860 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
8861 Call redisplay_window, but not if display_error_modiff field says no.
8862 (redisplay_window_error): New function.
8863 (displayed_buffer): New variable.
8864 (redisplay_internal, redisplay_windows): Call the new functions
8865 instead of redisplay_window directly.
2cd23960 8866
048addec 88672001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 8868
048addec 8869 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 8870
048addec 88712001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 8872
048addec
JD
8873 * makefile.w32-in (EMACSLOADPATH): Define.
8874 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
8875 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 8876
048addec 88772001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 8878
048addec
JD
8879 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
8880 parameter have a numeric value all the time.
f6fa0866 8881
048addec 8882 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 8883
048addec 88842001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 8885
048addec 8886 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 8887
048addec
JD
8888 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
8889 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 8890
048addec 88912001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 8892
048addec
JD
8893 * xdisp.c (move_it_vertically_backward): Change heuristic
8894 for the case that we didn't move far enough initially.
91c153e2 8895
048addec
JD
8896 * window.c (Frecenter): Simplify computation in the case of window
8897 system frames and ARG < 0; use window_box_height.
65b7d3e7 8898
048addec 88992001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 8900
048addec
JD
8901 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
8902 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 8903
048addec 89042001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 8905
048addec
JD
8906 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
8907 arg is negative.
be676094 8908
048addec 89092001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 8910
048addec
JD
8911 * m/hp800.h: Split the __hpux conditional into the parts
8912 that are right for GNU/Linux too and the parts that are not.
8913 Use the former if GNU_LINUX.
8914 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 8915
048addec 8916 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 8917
048addec 89182001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 8919
048addec
JD
8920 * macros.c, msdos.c, w16select.c: Change doc-string comments to
8921 `new style' [w/`doc:' keyword].
032a857d 8922
048addec 89232001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 8924
048addec
JD
8925 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
8926 before using.
b6270150 8927
048addec 89282001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 8929
048addec
JD
8930 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
8931 keyword].
98cbb9fa 8932
048addec 89332001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 8934
048addec 8935 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 8936
048addec 8937 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 8938
048addec 89392001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 8940
048addec
JD
8941 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
8942 Add comment to explain where the struct came from.
8943 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
8944 (add_menu_item): Process pop-up menus first to avoid memory leak.
8945 (add_menu_item, w32_menu_display_help): Use `help' field as
8946 Lisp_Object.
8947 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 8948
048addec 89492001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 8950
048addec 8951 * COPYING: Moved back.
fa336b91 8952
048addec
JD
8953 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
8954 Add parentheses around && within ||.
077907d4 8955
048addec 8956 * indent.c (compute_motion): Likewise.
aa2af83a 8957
048addec 8958 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 8959
048addec
JD
8960 * coding.c (setup_coding_system, shrink_encoding_region)
8961 (Fdecode_sjis_char): Likewise.
60a653f1 8962
048addec 89632001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 8964
048addec
JD
8965 * xdisp.c (display_mode_element): Don't read past end of string if
8966 it ends with '%'.
60a653f1 8967
048addec
JD
8968 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
8969 can hold.
60a653f1 8970
048addec
JD
8971 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
8972 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
8973 type changed to Lisp_Object.
8974 (syms_of_data): DEFVAR_LISP them.
60a653f1 8975
048addec 89762001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 8977
048addec
JD
8978 * callproc.c (init_callproc): Set Vdata_directory based on the source
8979 location whenever Emacs was run uninstalled.
60a653f1 8980
048addec 89812001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 8982
048addec
JD
8983 * config.in (HAVE_WORKING_VFORK): New #undefs.
8984 * process.c (create_process):
8985 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
8986 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
8987 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
8988 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
8989 * m/intel386.h (HAVE_VFORK): Likewise.
8990 * m/mips-siemens.h (HAVE_VFORK): Likewise.
8991 * m/mips.h (HAVE_VFORK): Likewise.
8992 * s/freebsd.h (vfork): Remove #define.
8993 * s/lynxos.h (HAVE_VFORK): Remove #undef.
8994 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 8995
048addec 89962001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 8997
048addec
JD
8998 * s/hpux10.h (random): Add undef.
8999 (HAVE_RANDOM): Define it just once.
60a653f1 9000
048addec 90012001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 9002
048addec 9003 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 9004
048addec 90052001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 9006
048addec
JD
9007 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
9008 scroll bars of the frame before deleting the frame itself. If the
9009 frame has a widget, delete the frame with XtDestroyWidget, and do
9010 not call XDestroyWindow before that.
60a653f1 9011
048addec 90122001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 9013
048addec 9014 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 9015
048addec 9016 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 9017
048addec 90182001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 9019
048addec
JD
9020 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
9021 excessively large.
60a653f1 9022
048addec
JD
9023 * insdel.c (make_gap_larger): New function.
9024 (make_gap_smaller): New function.
9025 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
9026 Call make_gap_smaller if arg is negative.
60a653f1 9027
048addec 90282001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 9029
048addec
JD
9030 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
9031 Pass a dummy argument when calling interrupt_signal.
9032 (parse_menu_item): Mark disabled items before checking for empty def.
9033 (read_char_minibuf_menu_prompt): Make safety more visible.
9034 (read_key_sequence): Add a `first_unbound' variable.
9035 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
9036 unbound prefix as soon as we can detect it.
60a653f1 9037
048addec
JD
9038 * doc.c (Fsnarf_documentation): Add prototype.
9039 (get_doc_string): Handle negative arguments.
9040 (Fdocumentation): Use AREF and ASIZE.
9041 Move the calls to get_doc_string to a single place.
9042 Don't confuse an interactive-spec for a docstring reference.
9043 (Fdocumentation_property): Take advantage of the fact that
9044 get_doc_string now ignores the sign of the docstring position.
60a653f1 9045
048addec 9046 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 9047
048addec 90482001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 9049
048addec 9050 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
60a653f1 9051
048addec 90522001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 9053
048addec
JD
9054 * xterm.c (x_draw_image_relief): Use predefined macro instead of
9055 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 9056
048addec 90572001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 9058
048addec
JD
9059 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
9060 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 9061
048addec 9062 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 9063
048addec 90642001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 9065
048addec 9066 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 9067
048addec 90682001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 9069
048addec 9070 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 9071
048addec 90722001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 9073
048addec 9074 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 9075
048addec
JD
9076 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
9077 [!WM_MOUSELEAVE]: Define.
60a653f1 9078
048addec
JD
9079 * w32menu.c (current_popup_menu, get_menu_item_info):
9080 (set_menu_item_info): New vars.
9081 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
9082 (w32_menu_show): Set current_popup_menu.
9083 (add_menu_item): Allocate new strings for owner-drawn menu items
9084 and help strings.
9085 Use owner-draw for disabled menu items again.
9086 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
9087 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 9088
048addec
JD
9089 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
9090 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
9091 <WM_EXITMENULOOP>: Free menu strings.
9092 <WM_MOUSELEAVE>: Stop tracking mouse.
9093 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 9094
048addec
JD
9095 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
9096 and mouse face.
60a653f1 9097
048addec 90982001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 9099
048addec
JD
9100 The following changes add left-fringe and right-fringe
9101 frame parameters to adjust fringe widths, or remove one or
9102 both fringes.
60a653f1 9103
048addec
JD
9104 * frame.h (struct frame): Remove trunc_area_pixel_width and
9105 trunc_area_cols fields.
9106 (Qleft_fringe, Qright_fringe): Declare.
9107 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 9108
048addec
JD
9109 * frame.c (Qleft_fringe, Qright_fringe): New vars.
9110 (syms_of_frame): Initialize them.
60a653f1 9111
048addec
JD
9112 * window.c (coordinates_in_window): Handle separate left and right
9113 fringe widths.
60a653f1 9114
048addec
JD
9115 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
9116 and fringe_cols fields.
9117 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
9118 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
9119 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
9120 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
9121 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
9122 (x_compute_fringe_widths): Add prototype.
60a653f1 9123
048addec
JD
9124 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
9125 fill fringe evenly with small dashes.
9126 (x_draw_fringe_bitmap): Clear background if necessary. Align and
9127 clip the new ZV bitmap to avoid jitter between rows.
9128 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
9129 background. Don't draw fringe bitmaps if fringe width is zero.
9130 (x_compute_fringe_widths): New function.
9131 (x_new_font, x_set_window_size_1): Use it.
60a653f1 9132
048addec
JD
9133 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
9134 (x_set_frame_parameters): Process `font' parameter before other
9135 parameters as fringe widths depend on it.
9136 (x_set_fringe_width): New function.
9137 (x_figure_window_size): Use x_compute_fringe_widths.
9138 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
9139 parameters.
60a653f1 9140
048addec
JD
9141 * widget.c (set_frame_size): Use x_compute_fringe_widths.
9142 (EmacsFrameSetCharSize): Ditto.
60a653f1 9143
048addec
JD
9144 * w32term.h: Merged changes from xterm.h.
9145 * w32term.c: Merged changes from xterm.c.
9146 * w32fns.c: Merged changes from xfns.c.
60a653f1 9147
048addec 91482001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 9149
048addec 9150 * COPYING: Removed.
60a653f1 9151
048addec 91522001-11-29 Dave Love <fx@gnu.org>
60a653f1 9153
048addec
JD
9154 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
9155 extra extra slot.
9156 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 9157
048addec 91582001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 9159
048addec
JD
9160 * fileio.c (file-name-coding-system)
9161 (default-file-name-coding-system): Doc fix (links to referenced
9162 variables added).
60a653f1 9163
048addec 91642001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 9165
048addec
JD
9166 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
9167 Add dummy uses of gcproN variables.
60a653f1 9168
048addec
JD
9169 * category.c (describe_category, describe_category_1)
9170 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
9171 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 9172
048addec 91732001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 9174
048addec 9175 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 9176
048addec
JD
9177 * Makefile.in (lispdir): New variable, referring to build dir.
9178 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 9179
048addec 91802001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 9181
048addec
JD
9182 * w32menu.c (w32_menu_display_help): Actually add the new argument
9183 OWNER.
60a653f1 9184
048addec 91852001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 9186
048addec
JD
9187 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
9188 menu items. From David Ponce <dponce@wanadoo.fr>.
9189 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
9190 conditionally.
9191 (w32_menu_display_help): New argument OWNER. Rewritten to store a
9192 help event in the owner frame's keyboard buffer.
60a653f1 9193
048addec
JD
9194 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
9195 (Fx_show_tip): Don't subtract last width from row width.
9196
9197 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
9198 (w32_read_socket): Use EQ to compare frames.
60a653f1 9199
048addec 92002001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 9201
048addec
JD
9202 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
9203 OVERLAPS_P.
60a653f1 9204
048addec 92052001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 9206
048addec
JD
9207 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
9208 `gcpro3' and `gcpro4'.
60a653f1 9209
048addec 9210 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 9211
048addec 92122001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 9213
048addec 9214 * ccl.c: Use AREF and ASIZE.
60a653f1 9215
048addec 92162001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 9217
048addec
JD
9218 * lisp.h (run_hook_list_with_args): Remove.
9219 (LIST_END_P): Fix call to wrong_type_argument.
9220 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 9221
048addec 92222001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 9223
048addec
JD
9224 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
9225 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 9226
048addec
JD
9227 * eval.c: Use AREF and ASIZE.
9228 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 9229
048addec
JD
9230 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
9231 which match the end of the file-name.
9232 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
9233 is not a valid env var, but leave it as is instead.
60a653f1 9234
048addec
JD
9235 * keymap.c (access_keymap): Handle t bindings like nil bindings.
9236 Make nil bindings in char-tables transparent.
9237 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 9238
048addec 92392001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 9240
048addec
JD
9241 * textprop.c (set_text_properties_1): Allow START, END in either order.
9242 Do nothing if range is empty.
60a653f1 9243
048addec 9244 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 9245
048addec
JD
9246 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
9247 (clean): Not here.
60a653f1 9248
048addec 92492001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 9250
048addec
JD
9251 * textprop.c (set_text_properties_1): Clearly mark that the
9252 interval should not be empty.
60a653f1 9253
048addec
JD
9254 * intervals.c (graft_intervals_into_buffer):
9255 Don't call set_text_properties_1 on an empty interval.
60a653f1 9256
048addec 92572001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 9258
048addec 9259 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 9260
048addec
JD
9261 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
9262 don't lose the data in it.
60a653f1 9263
048addec 92642001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 9265
048addec 9266 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 9267
048addec 9268 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
60a653f1 9269
048addec 9270 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
60a653f1 9271
048addec 92722001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 9273
048addec 9274 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 9275
048addec 92762001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 9277
048addec
JD
9278 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
9279 Niemitalo <kon@iki.fi>.
60a653f1 9280
048addec 92812001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 9282
048addec 9283 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 9284
048addec
JD
9285 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
9286 (Fx_show_tip): Block input during frame creation.
9287 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 9288
048addec 92892001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 9290
048addec
JD
9291 * lread.c (Fload): Detect recursive load error for more than 3
9292 nestings of the same file.
9293 (Vrecursive_load_depth_limit): Variable deleted.
9294 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 9295
048addec 92962001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 9297
048addec
JD
9298 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
9299 mouse position if either left or top is not specified.
60a653f1 9300
048addec
JD
9301 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
9302 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
9303 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
9304 (my_create_tip_window): Assign tip_window.
9305 (x_create_tip_frame): Use same defaults as X.
9306 (compute_tip_xy): Remove unused variable. Use full screen width.
9307 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 9308
048addec
JD
9309 * w32term.c (x_after_update_window_line): Doc fix.
9310 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
9311 frames.
9312 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 9313
048addec
JD
9314 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
9315 for all Windowed systems.
60a653f1 9316
048addec 93172001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 9318
048addec
JD
9319 * msdos.c (IT_clear_screen): If the frame's faces are not yet
9320 realized, use the initial screen colors to clear the screen.
60a653f1 9321
048addec 93222001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 9323
048addec
JD
9324 * textprop.c (Fset_text_properties): Remove unused variables
9325 `unchanged', `prev_changed', `s' and `len'.
60a653f1 9326
048addec
JD
9327 * search.c (Freplace_match): Remove unused variable `inslen'.
9328
9329 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
9330
93312001-11-22 Jason Rumney <jasonr@gnu.org>
9332
9333 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
9334 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
9335 (my_create_tip_window): New function.
9336 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
9337 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
9338
93392001-11-20 Jason Rumney <jasonr@gnu.org>
9340
9341 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
9342 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
9343
9344 * w32fns.c (Vw32_system_coding_system): Remove.
9345 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
9346
93472001-11-19 Stefan Monnier <monnier@cs.yale.edu>
9348
9349 * fileio.c (Fwrite_region): Move choose_write_coding_system to
9350 after build_annotations.
9351
9352 * syntax.c (describe_syntax): Add dummy arg.
9353 (describe_syntax_1): Update call to describe_vector.
9354
9355 * category.c (describe_category): Add dummy arg.
9356 (describe_category_1): Update call to describe_vector.
9357
9358 * keymap.c (Fdescribe_vector): Add `describer' parameter.
9359 (describe_command, describe_translation): Add dummy second param.
9360 (describe_map): Call elt_describer with two arguments.
9361 (describe_vector_princ): Add `fun' parameter.
9362 Call it instead of the hardcoded `princ'.
9363 (describe_vector): Add arg `args'.
9364 Pass it as a new second argument to elt_describer.
60a653f1 9365
048addec 9366 * keymap.h (describe_vector): Update prototype.
60a653f1 9367
048addec
JD
9368 * frame.c: Don't include keymap.h any more.
9369 (keys_of_frame): Remove.
60a653f1 9370
048addec 9371 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 9372
048addec 9373 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 9374
048addec 93752001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 9376
048addec
JD
9377 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
9378 if defined, 0 otherwise.
9379 (MAP_FAILED): Define if not defined and use it to test mmap failure.
9380 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 9381
048addec 93822001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 9383
048addec 9384 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 9385
048addec 93862001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 9387
048addec
JD
9388 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
9389 (x_draw_bar_cursor): If the background color of the glyph under
9390 the cursor equals the frame's cursor color, use the glyph's
9391 foreground color for drawing the bar cursor.
9392 (x_after_update_window_line): Clear internal border in different
9393 circumstances.
9394 (w32_set_vertical_scroll_bar): Check for width and height > 0.
9395 (w32_draw_relief_rect): Correct relief by 1 pixel.
9396 (x_set_glyph_string_background_width):
9397 Set extends_to_end_of_line_p if the row's fill_line_p is set and
9398 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
9399 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
9400 if cursor_in_non_selected_windows is false.
9401 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
9402 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
9403 Notice if cursor gets overwritten.
9404 (notice_overwritten_cursor): Renamed from
9405 note_overwritten_text_cursor. Rewritten to take glyph widths
9406 into account, and to take X positions as parameters.
9407 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
9408 around call to x_draw_glyphs.
9409 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
9410 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
9411 color to use for image glyph reliefs.
9412 (x_draw_image_relief): Accept zero tool_bar_button_relief.
9413 (glyph_rect): Remove unused variable `area'.
60a653f1 9414
048addec
JD
9415 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
9416 some items.
9417 (x_set_internal_border_width): Set frame garbaged when window
9418 doesn't exist yet.
9419 (Fx_create_frame): Accept zero tool_bar_button_relief.
9420 (x_clear_image_1, four_corners_best, image_background)
9421 (image_background_transparent): New functions.
9422 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
9423 (gs_format): Add `:background' entry.
9424 (lookup_image): Set IMG's background color if specified.
9425 (pbm_load, xbm_load_image, png_load): Set IMG's background field
9426 when appropriate.
9427 (x_clear_image_1): Reset `background_valid' and
9428 `background_transparent_valid' fields.
9429 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
9430 calculating it here. Set IMG's background_transparent field.
9431 (enum xpm_keyword_index): Add XPM_BACKGROUND.
9432 (enum png_keyword_index): Add PNG_BACKGROUND.
9433 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
9434 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
9435 (enum gif_keyword_index): Add GIF_BACKGROUND.
9436 (enum gs_keyword_index): Add GS_BACKGROUND.
9437 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
9438 Pre-calculate image background color where necessary.
9439 (x_create_x_image_and_pixmap, xbm_load, gs_load):
9440 Use display info's n_cbits entry for screen depth.
9441 (Fx_show_tip): Remove unused variables `buffer', `top',
9442 `left', `max_width' and `max_height'.
60a653f1 9443
048addec 9444 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 9445
048addec 94462001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 9447
048addec 9448 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 9449
048addec 94502001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 9451
048addec 9452 * frame.c (Fframe_live_p): Doc fix.
60a653f1 9453
048addec 94542001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 9455
048addec
JD
9456 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
9457 (message_dolog_marker3): New static variables hold three markers.
9458 (syms_of_xdisp): Initialize and staticpro them.
9459 (message_dolog): Use message_dolog_marker1..3 instead of
9460 allocating markers each time. Unchain them when done.
60a653f1 9461
048addec 94622001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 9463
048addec 9464 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 9465
048addec 94662001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 9467
048addec 9468 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 9469
048addec 94702001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 9471
048addec 9472 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 9473
048addec 94742001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 9475
048addec 9476 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 9477
048addec 94782001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 9479
048addec
JD
9480 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
9481 with invalid position.
60a653f1 9482
048addec 94832001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 9484
048addec 9485 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 9486
048addec
JD
9487 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
9488 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
9489 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 9490
048addec 9491 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 9492
048addec 94932001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 9494
048addec
JD
9495 * fileio.c (build_annotations): Split off the tail.
9496 (build_annotations_2): New fun. Extracted from build_annotations.
9497 (Fwrite_region): Split the call to build_annotations into two
9498 calls to build_annotations and build_annotations_2.
077907d4 9499
048addec 95002001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 9501
048addec
JD
9502 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
9503 clear_waiting_for_input with argument.
1756e2fb 9504
048addec 9505 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 9506
048addec 9507 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 9508
048addec 9509 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 9510
048addec 9511 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 9512
048addec 95132001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 9514
048addec
JD
9515 * fileio.c (choose_write_coding_system): New fun, extracted
9516 from Fwrite_region.
9517 (Fwrite_region): Use it.
fa336b91 9518
048addec
JD
9519 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
9520 (funcall_lambda, run_hook_with_args): Make static and add prototype.
9521 (ml_apply, find_handler_clause): Add prototype.
fa336b91 9522
048addec 95232001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 9524
048addec 9525 * config.in: Add #undef HAVE_COFF_H.
fa336b91 9526
048addec
JD
9527 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
9528 Required for ISC 4.1.
fa336b91 9529
048addec 95302001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 9531
048addec
JD
9532 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
9533 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 9534
048addec 95352001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 9536
048addec
JD
9537 The following changes are made to clean up the various internal
9538 references to the fringes to actually use the term `fringe' for
9539 them. Previously, they were called `flags areas', `bitmap areas',
9540 `left/right side of windows', or implicitly as `flags' or
9541 `bitmaps':
fa336b91 9542
048addec
JD
9543 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
9544 Comments fixed. Use renamed symbols.
06e8f738 9545
048addec 9546 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 9547
048addec
JD
9548 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
9549 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
9550 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 9551
048addec 9552 * msdos.c: Comment fix.
9ce647f4 9553
048addec 9554 * w32fns.c: Use renamed symbols.
9b784ab8 9555
048addec
JD
9556 * w32term.c: Comment fixes. Use renamed symbols.
9557 (fringe_bitmap_type): Renamed from bitmap_type.
9558 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
9559 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
9560 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 9561
048addec
JD
9562 * w32term.h: Comment fixes. Use renamed symbols.
9563 (fringes_extra): Renamed from flags_areas_extra.
9564 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
9565 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
9566 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
9567 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
9568 (FRAME_X_LEFT_FRINGE_WIDTH):
9569 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
9570 (FRAME_X_RIGHT_FRINGE_WIDTH):
9571 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 9572
048addec 9573 * widget.c: Use renamed symbols.
9f7e52b4 9574
048addec
JD
9575 * window.c: Comment fixes. Use renamed symbols.
9576 (coordinates-in-window-p): Doc fix.
fa336b91 9577
048addec 9578 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 9579
048addec 9580 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 9581
048addec 9582 * xfns.c: Use renamed symbols.
89512fcd 9583
048addec
JD
9584 * xterm.c: Comment fixes. Use renamed symbols.
9585 (fringe_bitmap_type): Renamed from bitmap_type.
9586 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
9587 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
9588 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 9589
048addec
JD
9590 * xterm.h: Comment fixes. Use renamed symbols.
9591 (fringes_extra): Renamed from flags_areas_extra.
9592 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
9593 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
9594 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
9595 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
9596 (FRAME_X_LEFT_FRINGE_WIDTH):
9597 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
9598 (FRAME_X_RIGHT_FRINGE_WIDTH):
9599 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9600
96012001-11-15 Jason Rumney <jasonr@gnu.org>
9602
9603 * w32menu.c (add-menu-item): Make help_echo and radio buttons
9604 work for most menu items. From David Ponce
9605 <david.ponce@wanadoo.fr>.
9606
96072001-11-15 Gerd Moellmann <gerd@gnu.org>
9608
9609 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
9610 Some x_set_* function expect to be called even if old and new
9611 value are equal.
9612
9613 * xdisp.c (build_desired_tool_bar_string): Accept zero
9614 tool_bar_button_relief.
9615
9616 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
9617
9618 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
9619
9620 * xterm.c (x_draw_bar_cursor): If the background color of the
9621 glyph under the cursor equals the frame's cursor color, use
9622 the glyph's foreground color for drawing the bar cursor.
9623
9624 * dispnew.c (direct_output_forward_char): Fix character/byte
9625 position comparison.
7d18891d 9626
048addec 96272001-11-15 Miles Bader <miles@gnu.org>
d2936d21 9628
048addec
JD
9629 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
9630 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
9631 Update arguments to find_field.
9632 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
9633 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
9634 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
9635 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 9636
048addec 96372001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 9638
048addec 9639 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 9640
048addec
JD
9641 * dispextern.h (image_background, image_background_transparent):
9642 Conditionalize on HAVE_X_WINDOWS.
7d18891d 9643
048addec 96442001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 9645
048addec 9646 * print.c (Fprin1_to_string): Doc fix.
7d18891d 9647
048addec 9648 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 9649
048addec 9650 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 9651
048addec 9652 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 9653
048addec 9654 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 9655
048addec 9656 * eval.c (syms_of_eval): Doc fix.
7d18891d 9657
048addec 9658 * coding.c (syms_of_coding): Doc fix.
7d18891d 9659
048addec 9660 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 9661
048addec 9662 * dispnew.c (syms_of_display): Doc fix.
9474c847 9663
048addec 9664 * category.c (Fget_unused_category): Doc fix.
9474c847 9665
048addec 9666 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 9667
048addec 96682001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 9669
048addec 9670 * print.c (prin1, print): Doc fix.
e3059a5d 9671
048addec 96722001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 9673
048addec
JD
9674 * fontset.h: Remove declarations of variables
9675 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 9676
048addec
JD
9677 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
9678 `Vclip_large_size_font'.
eae936e2 9679
048addec 96802001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 9681
048addec 9682 * w32fns.c: Doc fix.
ddb67bdc 9683
048addec 96842001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 9685
048addec 9686 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 9687
048addec 9688 * fns.c: Doc fix.
6e1b91d7 9689
048addec 9690 * emacs.c: Doc fix.
1c1d3d69 9691
048addec 9692 * coding.c: Doc fix.
1c1d3d69 9693
048addec
JD
9694 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
9695 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
9696 `new style' [w/`doc:' keyword].
b6f4c7ba 9697
048addec 96982001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 9699
048addec
JD
9700 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
9701 LeaveNotify events. Only FocusIn and FocusOut do that now.
9702 (x_display_and_set_cursor): Do display hollow cursors in active
9703 minibuffer windows when they are not selected.
b6f4c7ba 9704
048addec 97052001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 9706
048addec
JD
9707 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
9708 * w32term.c: Change doc-string comments to `new style'.
9709 [w/`doc:' keyword]. Doc fixes.
a89f435d 9710
048addec
JD
9711 * w32fns.c: Don't define max.
9712 (Fx_open_connection): Only execute once.
a4cd0cd7 9713
048addec 97142001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 9715
048addec
JD
9716 * ccl.c: Change macros to use do-while block instead of if-else.
9717 Use braces to follow GNU Coding Standards.
eafb659a 9718
048addec 97192001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 9720
048addec 9721 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 9722
048addec 9723 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 9724
048addec
JD
9725 * insdel.c (replace_range): Use adjust_markers_for_replace
9726 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 9727
048addec 9728 * intervals.h: Declare set_text_properties and set_text_properties_1.
a4cd0cd7 9729
048addec
JD
9730 * textprop.c (set_text_properties_1): New subroutine
9731 broken out of set_text_properties.
9732 (set_text_properties): Use set_text_properties_1.
91823618 9733
048addec
JD
9734 * intervals.c (graft_intervals_into_buffer):
9735 Use set_text_properties_1 to clear out properties.
91823618 9736
048addec
JD
9737 * search.c (Freplace_match): Use replace_range to insert
9738 and delete. Don't request property inheritance from
9739 surrounding text.
86928dfb 9740
048addec 97412001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 9742
048addec
JD
9743 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
9744 vertical fonts. Allow them if face name is explicitly specified.
9745 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 9746
048addec 97472001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 9748
048addec
JD
9749 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
9750 instead of malloc/free.
a78e0303 9751
048addec 97522001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 9753
048addec
JD
9754 * xfaces.c (merge_face_vectors): Use braces to follow GNU
9755 Coding Standards.
9756 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 9757
048addec 9758 * buffer.c (Fbury_buffer): Likewise.
0c99b139 9759
048addec 9760 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 9761
048addec
JD
9762 * coding.c (encode_coding): Use precomputed value of `src'.
9763 (encode_coding): Remove unused variable `src_end'.
9764 (code_convert_region): Remove unused variables `count'.
830ddd77 9765
048addec 97662001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 9767
048addec
JD
9768 * w32term.c (x_display_and_set_cursor): Do not move system caret
9769 if cursor_glyph is NULL.
55c6d645 9770
048addec 97712001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 9772
048addec 9773 * keymap.c (access_keymap): Fix compilation error.
5de38842 9774
048addec 97752001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 9776
048addec 9777 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 9778
048addec 97792001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 9780
048addec
JD
9781 * intervals.c (graft_intervals_into_buffer):
9782 Remove #ifdef'd-out code.
9783 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 9784
048addec
JD
9785 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
9786 code (eval-current-buffer).
9787 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 9788
048addec 97892001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 9790
048addec 9791 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 9792
048addec 97932001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 9794
048addec 9795 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 9796
048addec
JD
9797 * keyboard.c (make_lispy_event): Check integerness and fix
9798 Lisp_Object/int mixup.
17893c65 9799
048addec 98002001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 9801
048addec 9802 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 9803
048addec
JD
9804 * fontset.c (fontset_font_pattern): Remove unused variable
9805 `family_registry'.
d5360cc7 9806
048addec 9807 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 9808
048addec 98092001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 9810
048addec 9811 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 9812
048addec
JD
9813 * buffer.c (Fkill_buffer): Don't delete auto save file
9814 if buffer is modified.
d9d54213 9815
048addec 98162001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 9817
048addec
JD
9818 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
9819 CHECK_NUMBER_CDR.
b116830b 9820
048addec 98212001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 9822
048addec 9823 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 9824
048addec 98252001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 9826
048addec 9827 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 9828
048addec 98292001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 9830
048addec 9831 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 9832
048addec 98332001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 9834
048addec
JD
9835 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
9836 the program image directly.
982f6c7e 9837
048addec 98382001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 9839
048addec 9840 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 9841
048addec 98422001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 9843
048addec
JD
9844 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
9845 and CHECK_BUFFER.
d31053f9 9846
048addec
JD
9847 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
9848 (record_char): Likewise.
d31053f9 9849
048addec
JD
9850 * keyboard.c (make_lispy_event): Don't insist a drag event must
9851 move to a different buffer position. Instead, check for moving at
9852 least double_click_fuzz.
982f6c7e 9853
048addec 9854 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 9855
048addec 9856 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 9857
048addec
JD
9858 * indent.c (current_column_1, Fmove_to_column): Separate the code
9859 for display-table glyphs from the code for buffer text, to fix
9860 bugs in the former.
830047fd 9861
048addec 98622001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 9863
048addec
JD
9864 * buffer.c (Fbuffer_local_value): New function.
9865 (syms_of_buffer): Defsubr it.
2df5238c 9866
048addec
JD
9867 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
9868 value of `cursor-in-non-selected-windows'.
4e397688 9869
048addec
JD
9870 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
9871 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
9872 (syms_of_xdisp): Initialize it.
48b0f3ae 9873
048addec 98742001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 9875
048addec 9876 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 9877
048addec
JD
9878 * coding.c: Change doc-string comments to `new style' [w/`doc:'
9879 keyword].
3ecaf7e5 9880
048addec
JD
9881 * eval.c (top_level_value, top_level_set): Remove commented and
9882 #ifdef'd-out code.
9883 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 9884
048addec 98852001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 9886
048addec 9887 * xfns.c: Include unistd.h, if it exists.
8db2e33b 9888
048addec 9889 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 9890
048addec 9891 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 9892
048addec 98932001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 9894
048addec
JD
9895 * lisp.h (CHECK_STRING_CAR): New macro.
9896 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
9897 treating XCAR and XCDR as lvalues.
9898 (openp): Use CHECK_STRING_CAR.
9899 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 9900
048addec 99012001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 9902
048addec
JD
9903 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
9904 (SIGMASKTYPE): Define.
1b1acc13 9905
048addec 9906 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 9907
048addec 99082001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 9909
048addec
JD
9910 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
9911 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
9912 Fix typos in comments.
6cb16f95 9913
048addec
JD
9914 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
9915 and #ifdef'd-out code.
9916 Fix and reindent comments.
6cb16f95 9917
048addec 9918 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 9919
048addec
JD
9920 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
9921 argument `i' in macros.
6cb16f95 9922
048addec
JD
9923 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
9924 `i' in macros.
7e9d3c2f 9925
048addec
JD
9926 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
9927 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
9928 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
9929 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
9930 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
9931 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
9932 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
9933 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
9934 in macros.
7e9d3c2f 9935
048addec
JD
9936 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
9937 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
9938 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
9939 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
9940 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
9941 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
9942 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
9943 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
9944 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
9945 (remove unused second argument).
7e9d3c2f 9946
048addec 99472001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 9948
048addec
JD
9949 * syntax.c (describe_syntax): New wrapper.
9950 (Finternal_describe_syntax_value): Rename from describe_syntax.
9951 Don't insert space at front and \n at the end.
9952 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 9953
048addec
JD
9954 * regex.c (re_wctype): Try to fix some warnings.
9955 (regcomp, regexec): Don't forget the __restrict.
9ba48103 9956
048addec 99572001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 9958
048addec 9959 * textprop.c (Fget_char_property): Doc fix.
9ba48103 9960
048addec 99612001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 9962
048addec 9963 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 9964
048addec 9965 * data.c (Fsetq_default): Ditto.
c22e59e1 9966
048addec 9967 * callint.c (Finteractive): Ditto.
9271ed2c 9968
048addec 99692001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 9970
048addec
JD
9971 * macros.c: Don't include keymap.h any more.
9972
99732001-11-01 Richard M. Stallman <rms@gnu.org>
9974
9975 * data.c (Fmake_local_variable): Doc fix.
9976
9977 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
9978 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 9979
048addec 9980 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
9981 bindings along with or instead of the buffer local map.
9982 Make the overriding maps override what they should.
9983
f00691a3 99842001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
9985
9986 * window.c (grow_mini_window): Fix typo in comment.
9987
27188d11
GM
99882001-11-01 Gerd Moellmann <gerd@gnu.org>
9989
7b49b9d2
GM
9990 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
9991 (XTset_vertical_scroll_bar): Likewise.
9992
43f7c3ea
GM
9993 * xfns.c (x_build_heuristic_mask): Use four_corners_best
9994 instead of IMAGE_BACKGROUND.
c22e59e1 9995
b350c2e5
GM
9996 * xfns.c (four_corners_best): Reindent.
9997
c22e59e1 9998 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
9999 Handle :box so that it is possible to specify sexprs.
10000
bf00d461
EZ
100012001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
10002
10003 * s/hpux11.h: New file.
10004
f00691a3 100052001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 10006
2b209b97
PJ
10007 * emacs.c (USAGE1): Show command line option --no-window-system
10008 instead of --no-windows in usage.
10009 (standard_args): Rename --no-windows to --no-window-system.
10010 (bug_reporting_address): Follow Emacs coding conventions.
10011
9dbc9081
PJ
10012 * eval.c (Fcommandp): Doc fix.
10013 Change doc-string comments to `new style' [w/`doc:' keyword].
10014
4e10df59
PJ
10015 * frame.c (Fframe_live_p): Doc fix.
10016
10017 * buffer.c (selective-display-ellipses): Doc fix.
10018
dd387b25
GM
100192001-10-31 Gerd Moellmann <gerd@gnu.org>
10020
fe957e65
GM
10021 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
10022
dd387b25
GM
10023 * xfaces.c (realize_x_face): If C is not a single-byte character,
10024 set the face's colors_copied_bitwise_p instead of the defaulted_p
10025 members which have a different meaning.
10026 (free_face_colors): Do nothing for a face whose colors have been
10027 copied bitwise.
10028
c22e59e1 10029 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 10030
f00691a3 100312001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 10032
687784e8
PJ
10033 * marker.c, mocklisp.c: Change doc-string comments to `new style'
10034 [w/`doc:' keyword].
2e1280f8 10035
b9d9a9b9
GM
100362001-10-31 Gerd Moellmann <gerd@gnu.org>
10037
10038 * fns.c (require_unwind): Return Lisp_Object.
10039
f00691a3 100402001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 10041
fa1361cb
PJ
10042 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
10043 (last-input-char): Revert doc-string to be the same as the
10044 doc-string of `last-input-event'.
10045
6c465a15 10046 * xdisp.c: Fix typos in comments.
48400103 10047
eafa3196
GM
100482001-10-31 Gerd Moellmann <gerd@gnu.org>
10049
10050 * window.c (grow_mini_window): Handle case that the root
10051 window is already smaller than the nominal mininum height.
10052
747d3f2a
SM
100532001-10-30 Stefan Monnier <monnier@cs.yale.edu>
10054
bf9bb76f
SM
10055 * emacs.c (main): Don't call keys_of_macros any more.
10056
10057 * lisp.h (keys_of_macros): Remove.
10058
10059 * macros.c (keys_of_macros): Remove.
10060
747d3f2a
SM
10061 * xfaces.c (Fface_attribute_relative_p): Declare args.
10062
5e905a57
JR
100632001-10-30 Jason Rumney <jasonr@gnu.org>
10064
10065 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
10066 (enum_font_cb2): Ignore fonts with vertical orientation.
10067
3a426197
RS
100682001-10-30 Richard M. Stallman <rms@gnu.org>
10069
10070 * keyboard.c (Finput_pending_p): Doc fix.
10071
a742d646
GM
100722001-10-30 Gerd Moellmann <gerd@gnu.org>
10073
259cf6bc
GM
10074 * xterm.c (x_after_update_window_line): Don't run the code
10075 clearing in borders for rows whose visible height is 0.
10076
3f99f948
GM
10077 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
10078 resized_p flag is set. If not set, use the much less flickering
10079 method previously used.
10080
10081 * dispnew.c (change_frame_size_1): Set frame's resized_p.
10082
10083 * frame.h (struct frame) <resized_p>: New member.
10084
b4a3be43
GM
10085 * lread.c (to_multibyte): Ensure read_buffer is at least twice
10086 as large as the number of bytes to convert.
747d3f2a 10087
a742d646
GM
10088 * lread.c (to_multibyte): New function.
10089 (read1): Use it.
10090
cacbb9e9
EZ
100912001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
10092
10093 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
10094
99cb6b2f
GM
100952001-10-30 Gerd Moellmann <gerd@gnu.org>
10096
327f42ee 10097 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
10098 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
10099 if the row's fill_line_p is set and drawing the last glyph with
10100 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 10101
99cb6b2f
GM
10102 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
10103
8e8223e2
SM
101042001-10-29 Stefan Monnier <monnier@cs.yale.edu>
10105
10106 * xmenu.c: Include coding.h and charset.h.
10107 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
10108 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
10109 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
10110 Explicitly set wv->help. Use `TRUE' rather than `True'.
10111 (menu_help_callback): Use empty_string.
10112
10113 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
10114 (Fx_popup_dialog): Explicitly init f.
10115 (w32_menu_display_help): Use empty_string.
10116
4d083a8f
RS
101172001-10-29 Richard M. Stallman <rms@gnu.org>
10118
b2304472
RS
10119 * fns.c (Frequire): Detect recursive try to require the same
10120 feature 3 or more levels deep, and get error.
10121 (require_unwind): New subroutine.
10122 (require_nesting_list): New variable.
10123 (syms_of_fns): Init and staticpro it.
10124
4d083a8f
RS
10125 * print.c (print_object): Clarify indication of insertion type.
10126
2fe41216
EZ
101272001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
10128
90480000
EZ
10129 * coding.c (syms_of_coding): Document that locale-coding-system is
10130 used for decoding input on X.
10131
2fe41216
EZ
10132 * window.c (Fscroll_left, Fscroll_right): Doc fix.
10133
f00691a3 101342001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
10135
10136 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
10137 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
10138
60ebcfe8
GM
101392001-10-29 Gerd Moellmann <gerd@gnu.org>
10140
9a7bdceb
GM
10141 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
10142 use NO_CURSOR if cursor_in_non_selected_windows is false.
10143
3f08fcd2
GM
10144 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
10145 the slant attribute if FRAME is t.
10146
0ccfdad2
GM
10147 * xfns.c (x_set_internal_border_width): Set frame garbaged
10148 when X window doesn't exist yet.
10149
ef253080
GM
10150 * xterm.c (x_after_update_window_line): Clear internal border
10151 in different circumstances.
b116830b 10152
60ebcfe8
GM
10153 * xterm.c (XTread_socket) <KeyPress>: Don't use
10154 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
10155 <handa@etl.go.jp>.
10156
73d25f9c
EZ
101572001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
10158
10159 * m/ibms390.h: New file. From Adam Thornton
10160 <athornton@sinenomine.net>.
10161
cac1daf0
GM
101622001-10-28 Gerd Moellmann <gerd@gnu.org>
10163
053b3256 10164 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 10165
cac1daf0
GM
10166 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
10167 a loop counter.
10168
f00691a3 101692001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 10170
186486eb
PJ
10171 * emacs.c: Use argv[0] instead of emacs when -t was specified.
10172
4707d2d0
PJ
10173 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
10174 keyword].
10175 Fix typos in comments.
b116830b 10176
d883731c
PJ
10177 * emacs.c (bug_reporting_address): New function.
10178 Use it when displaying usage message.
10179
04012254
PJ
10180 * minibuf.c (read_minibuf): Remove unused external declaration of
10181 variable `Qread_only'.
10182
13b1a09c
PJ
10183 * keymap.c (access_keymap): Remove unused variable `charset'.
10184
5bbf4378
MB
101852001-10-28 Miles Bader <miles@gnu.org>
10186
10187 * xfaces.c (merge_face_heights): Handle TO being relative as well.
10188 Remove #ifdef'd-out code.
10189 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
10190 (syms_of_xfaces): Initialize them.
10191
1ce1e4ee
JR
101922001-10-27 Jason Rumney <jasonr@gnu.org>
10193
10194 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
10195 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
10196 position using the system caret.
10197
10198 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
10199 (w32_system_caret_height, w32_system_caret_x)
10200 (w32_system_caret_y): New variables for tracking system caret.
10201 (w32_initialize): Initialize them.
c2d53558 10202 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 10203
c2d53558
SM
10204 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
10205 New messages types.
1ce1e4ee
JR
10206
10207 * w32term.c (note_mouse_highlight): Clear old help_echo.
10208
f00691a3 102092001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 10210
bb4600a4
PJ
10211 * xterm.c: Fix typo in a comment.
10212
7db35a48
PJ
10213 * emacs.c: Fix typos in comments.
10214 Remove unnecessary spaces.
10215 Change doc-string comments to `new style' [w/`doc:' keyword].
10216 (USAGE2): Fix typos in usage string.
10217
a7248e4f
PJ
10218 * xterm.c: Fix typo in a comment.
10219
4e30ce42
PJ
10220 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
10221 emacs.c.
10222
62725a92
GM
102232001-10-27 Gerd Moellmann <gerd@gnu.org>
10224
798dbe1f 10225 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 10226 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
10227 farther backward when target_y was not reached.
10228
62725a92
GM
10229 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
10230 Display errno only if non-zero.
10231 (sound_warning): New function.
10232 (vox_configure): Don't treat failing to set sample rate as error.
10233 (various places): Improve error messages.
10234
d4e34d24
EZ
102352001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
10236
944e6f60
EZ
10237 * fileio.c (Faccess_file): Run the argument filename through
10238 Fexpand_file_name, before using it.
10239
d4e34d24
EZ
10240 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
10241 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
10242
38d2af0c
GM
102432001-10-26 Gerd Moellmann <gerd@gnu.org>
10244
da80a8d5
GM
10245 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
10246
38d2af0c
GM
10247 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
10248 Fix clearing in the case of scroll bars on the right.
c2d53558 10249
45de4a6f 102502001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
10251
10252 * w32gui.h (XImage): Add a dummy typedef.
10253
fbd5ceb2
GM
102542001-10-26 Gerd Moellmann <gerd@gnu.org>
10255
c2d53558 10256 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 10257
b23236fb
EZ
102582001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
10259
10260 * frame.c (Fframe_parameter): Fix last change.
10261
5d991fc4
EZ
10262 * fileio.c: Revert last change (which removed old commented-out
10263 version of expand-file-name). Add a comment that explains why
10264 this old version should not be removed.
10265
879eadc3
GM
102662001-10-25 Gerd Moellmann <gerd@gnu.org>
10267
75700ff2
GM
10268 * frame.c (Fframe_parameter): Fix a bug whereby some
10269 ``artificial'' frame parameters, like `minibuffer' were not
10270 obtained by calling Fframe_parameters.
10271
dfe92a6a
GM
10272 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
10273 cursor differently.
10274
879eadc3
GM
10275 * xdisp.c (move_it_vertically_backward): Compute line height
10276 differently. Add heuristic to try to be more compatible to 20.x.
10277
e1010ebe
SM
102782001-10-25 Stefan Monnier <monnier@cs.yale.edu>
10279
d73a471b
SM
10280 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
10281
d6da5a06
GM
10282 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
10283 boolean.
e1010ebe 10284
f66bd220
MB
102852001-10-25 Miles Bader <miles@gnu.org>
10286
10287 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
10288 BG is a pointer to a structure, not a structure.
10289 (gif_format, png_format): Add missing commas.
10290
d436d538
RS
102912001-10-24 Richard M. Stallman <rms@gnu.org>
10292
10293 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 10294 (syms_of_xfaces): Defsubr it.
d436d538 10295
f00691a3 102962001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
10297
10298 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
10299 variable `area'.
10300
f00691a3 103012001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 10302
c2d53558 10303 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 10304
e2a57b34
MB
103052001-10-25 Miles Bader <miles@gnu.org>
10306
10307 * dispextern.h (struct image): Add `background',
10308 `background_valid', and `background_transparent' fields.
10309 (image_background, image_background_transparent): New declarations.
10310 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
10311 * xfns.c (image_background, image_background_transparent)
10312 (four_corners_best): New functions.
c2d53558 10313 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
10314 (gs_format): Add `:background' entry.
10315 (lookup_image): Set IMG's background color if specified.
10316 (pbm_load, xbm_load_image, png_load): Set IMG's background field
10317 when appropriate.
10318 (x_clear_image_1): Reset `background_valid' and
10319 `background_transparent_valid' fields.
10320 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
10321 calculating it here. Set IMG's background_transparent field.
10322 (enum xpm_keyword_index): Add XPM_BACKGROUND.
10323 (enum png_keyword_index): Add PNG_BACKGROUND.
10324 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
10325 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
10326 (enum gif_keyword_index): Add GIF_BACKGROUND.
10327 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 10328 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
10329 Pre-calculate image background color where necessary.
10330 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
10331 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
10332 color to use for image glyph reliefs.
10333
b547b6e8
GM
103342001-10-24 Gerd Moellmann <gerd@gnu.org>
10335
d9e3b8c6
GM
10336 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
10337 in full-width rows.
c2d53558 10338
b547b6e8
GM
10339 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
10340 Fix clearing of area not covered by scroll bar.
10341
f00691a3 103422001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
10343
10344 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
10345 and `real_start'.
c2d53558 10346 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
10347 (glyph_rect): Remove unused variable `area'.
10348
76cb5e06
GM
103492001-10-24 Gerd Moellmann <gerd@gnu.org>
10350
bdbdebff 10351 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
10352
10353 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
10354 (row_containing_pos): Take additional argument DY.
10355 Treat rows ending in middle of char differently.
62e33982
GM
10356 (display_line): Handle tabs on window systems differently.
10357
10358 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
10359 with additional argument.
10360
10361 * dispextern.h (row_containing_pos): Adjust prototype.
10362
76cb5e06
GM
10363 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
10364 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
10365 (try_window_id, try_window_reusing_current_matrix)
10366 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 10367 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 10368
f00691a3 103692001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 10370
c9e60620
PJ
10371 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
10372 gnuemacs).
10373 (HAVE_BOXES): Fix typo in comment.
10374 (push_menu_pane): Fix typo in comment.
10375
3b552d56
PJ
10376 * xdisp.c: (display_prop_string_p): Remove unused local declaration
10377 of `Qwhen'.
10378 (single_display_prop_string_p): Remove unused local declarations
10379 of `Qwhen' and `Qmargin'.
10380 (string_buffer_position): Remove unused variable `around'.
10381 (store_frame_title): Remove unused variable `width'.
10382
15c565ac
PJ
10383 * window.c: Don't define max.
10384 (coordinates_in_window): Remove unused variable `uy'.
10385
a8818eb9
PJ
10386 * widget.c: Don't define max.
10387
996fee11
PJ
10388 * process.c: Don't define max.
10389 (create_process): Remove unused variable `buffer'.
10390
496e1a5b
GM
103912001-10-23 Gerd Moellmann <gerd@gnu.org>
10392
c2d53558 10393 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 10394
5905ae8b
EZ
103952001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
10396
10397 * xfaces.c (Finternal_set_lisp_face_attribute)
10398 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
10399 frame is on a windowed display.
10400
24db49fb
GM
104012001-10-23 Gerd Moellmann <gerd@gnu.org>
10402
c2d53558
SM
10403 * dispnew.c (sync_window_with_frame_matrix_rows):
10404 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
10405 of marginal areas.
10406
c2d53558 10407 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 10408
f0487f05
EZ
104092001-10-23 Andreas Schwab <schwab@suse.de>
10410
10411 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
10412 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
10413
f0a48a01
GM
104142001-10-23 Gerd Moellmann <gerd@gnu.org>
10415
c2d53558 10416 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
10417 REAL_END. Notice if cursor gets overwritten.
10418 (notice_overwritten_cursor): Take X positions as parameters.
10419 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
10420 around call to x_draw_glyphs.
10421
f00691a3 104222001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 10423
fc11dff0
PJ
10424 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
10425 instead of C) and usage.
a50a10a0 10426
fc11dff0
PJ
10427 * editfns.c (char-to-string): Fix argument names (use CHAR instead
10428 of C) and usage.
a50a10a0
PJ
10429
10430 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
10431 `left', `max_width' and `max_height'.
10432
8738febd
GM
104332001-10-23 Gerd Moellmann <gerd@gnu.org>
10434
10435 * xdisp.c (display_line): For a tab continued to the next line,
10436 set row's ends_in_middle_of_char_p.
10437
653c329b
GM
104382001-10-22 Gerd Moellmann <gerd@gnu.org>
10439
10440 * xdisp.c (display_line): Fix computation of continuation lines
10441 width for TABs.
10442
f00691a3 104432001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 10444
7ba51063
PJ
10445 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
10446 `Qlaplace'.
10447
f958c5ac
PJ
10448 * fileio.c: Remove unused code.
10449
eb360291
MB
104502001-10-22 Miles Bader <miles@gnu.org>
10451
10452 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
10453 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
10454 Remove `DOC_STRINGS_IN_COMMENTS' cases.
10455
98515cf0
JR
104562001-10-21 Jason Rumney <jasonr@gnu.org>
10457
10458 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
10459
93026d88
EZ
104602001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
10461
10462 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
10463 (Finsert_string): Avoid the multi-line string literals warning.
10464
c9a95b79
MB
104652001-10-22 Miles Bader <miles@gnu.org>
10466
10467 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
10468 (Fdocumentation): Don't use it.
10469 (syms_of_doc): Don't initialize it.
10470
10471 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
10472 * print.c (Fwith_output_to_temp_buffer): Likewise.
10473 * window.c (Fsave_window_excursion): Likewise.
c2d53558 10474 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 10475 (Fsave_restriction): Likewise.
c2d53558
SM
10476 * eval.c (Frun_hooks, Frun_hook_with_args)
10477 (Frun_hook_with_args_until_failure)
10478 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
10479 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
10480 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
10481 (Funwind_protect, Fcondition_case): Likewise.
10482 * coding.c (Ffind_operation_coding_system): Likewise.
10483 * keyboard.c (Ftrack_mouse): Likewise.
10484
a3b10252
MB
104852001-10-21 Miles Bader <miles@gnu.org>
10486
c2d53558 10487 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
10488 (Fmake_hash_table): Add usage: string to doc string.
10489 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 10490 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
10491 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
10492 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
10493 (Fml_prefix_argument_loop): Likewise.
10494
f00691a3 104952001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 10496
c2d53558 10497 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 10498
c6f73eec
PJ
10499 * sysdep.c (init_sys_modes): Change doc-string comments to `new
10500 style' [w/`doc:' keyword].
10501
10502 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
10503 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
10504 comments to `new style' [w/`doc:' keyword].
10505
3cf3436e
JR
105062001-10-21 Jason Rumney <jasonr@gnu.org>
10507
10508 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
10509
c169b8f1
JR
10510 * w32term.c (remember_mouse_glyph): New function.
10511 (w32_mouse_position): Use it.
10512 (note_mouse_movement): If the mouse moved off the glyph, remember
10513 its new position.
c2d53558 10514
4fdd691b
JR
10515 * w32term.h (struct w32_output): Correct spelling of x_compatible.
10516 (w32_display_info): Add mouse_face_overlay.
10517
c169b8f1
JR
10518 * w32term.c (notice_overwritten_cursor): Renamed from
10519 note_overwritten_text_cursor. Rewritten to take glyph widths into
10520 account.
10521 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
10522 (fast_find_string_pos): New function.
10523 (fast_find_position): Return the correct vpos. Add parameter
10524 STOP. In the final row, stop before glyphs having STOP as object.
10525 Don't consider glyphs that are not from a buffer.
10526 (fast_find_position) [0]: Add a presumably more correct version
10527 for after 21.1.
10528 (expose_window_tree, expose_frame): Don't compute intersections here.
10529 (expose_window): Do it here instead.
10530 (expose_window_tree, expose_window, expose_line): Return 1 when
10531 overwriting mouse-face.
10532 (expose_window): If W is the window currently being updated, mark
10533 the frame garbaged.
10534 (expose_frame): If mouse-face was overwritten, redo it.
10535 (x_use_underline_position_properties): New variable.
10536 (syms_of_xterm): DEFVAR_BOOL it.
10537 (x_draw_glyph_string): Add comment to use it in future.
10538 (x_draw_glyph_string): Restore clipping after drawing box.
10539 Fix a computation of the underline position.
10540 (w32_get_glyph_string_clip_rect): Minor cleanup.
10541 (x_fill_stretch_glyph_string): Remove an assertion.
10542 (x_produce_glyphs): Don't convert multibyte characters
10543 to unibyte characters in unibyte buffers.
10544 (cursor_in_mouse_face_p): New function.
10545 (x_draw_stretch_glyph_string): Use it to choose a different GC
10546 when drawing a cursor within highlighted text. Don't draw
10547 background again if it has already been drawn.
10548 (x_draw_glyph_string_box): Don't draw a full-width
10549 box just because the glyph row's full_width_p flag is set.
10550 (x_draw_glyphs): Fix computation of rightmost x for
10551 full-width rows.
10552 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
10553 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
10554 change bottom shadow accordingly. Some cleanup.
10555 (x_update_window_end): Handle overwritten mouse face
10556 also for tool bar windows.
10557 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
10558 DRAW is DRAW_IMAGE_RAISED.
10559 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
10560 actually redrawn. Make the function static.
10561 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
10562 optimize away highlighting if we pass over that same overlay again.
10563 (note_mouse_highlight): Call mouse_face_overlay_overlaps
10564 to detect a case where we have to highlight a different region
10565 despite not having left the currently highlighted region.
10566 Set mouse_face_overlay in the x_display_info. Avoid changing the
10567 mouse pointer shape when show_mouse_face has already done it, or
10568 there is no need. Handle mouse-face and help-echo in strings.
10569 (glyph_rect): New function.
10570 (w32_mouse_position): Use it to raise the threshold for mouse
10571 movement event generation.
10572 (w32_initialize_display_info): Initialize the x_display_info's
10573 mouse_face_overlay.
10574 (w32_set_vertical_scroll_bar): Don't clear a zero height
10575 or width area.
10576 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
10577 a widget to zero height.
10578
3cf3436e 10579 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 10580 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
10581 equivalents in menu_items.
10582 (w32_menu_show): Don't overwrite an item's name with its key
10583 description in case the description is a multibyte string.
10584 (single_submenu): Some cleanup.
10585
10586 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
10587 (postprocess_image): New function.
10588 (lookup_image): Call it for all image types except PostScript.
10589 (x_kill_gs_process): Call postprocess_image.
10590 (tiff_error_handler, tiff_warning_handler): New functions.
10591 (tiff_load): Install them as handlers.
10592 (x_kill_gs_process): Recognize if someone has cleared the image
10593 cache under us.
10594 (valid_image_p): Protect better against invalid image
10595 specifications. Previous code could signal an error.
10596 (Fx_hide_tip, Fshow_tip): Doc fix.
10597 (Fv_max_tooltip_size): New variable.
10598 (syns_of_xfns): DEFVAR_LISP it.
10599 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
10600 window buffer to *tip* right after creating the frame. Set frame's
10601 window_width. Use a maximum tooltip size specified by
10602 Vx_max_tooltip_size, if that has valid contents.
10603 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
10604 Make sure the tooltip is completely visible.
10605 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
10606 (Fx_create_frame): Adjust the frame's height for presence
10607 of the tool bar before calling x_figure_window_size.
10608 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
10609 when the window gets smaller.
10610 (x_set_foreground_color): Set frame's cursor_pixel.
10611 (x_set_foreground_color, x_set_background_color): Cleaned up.
10612 (x_set_font): Handle case of x_new_fontset returning the same name
10613 as before, although there was a change in fontsets.
10614
386ca361
MB
106152001-10-21 Miles Bader <miles@gnu.org>
10616
c2d53558 10617 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
10618 (Flogxor): Add usage: string to doc string.
10619 * charset.c (Fstring): Likewise.
10620 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
10621 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
10622
f00691a3 106232001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 10624
03be2694
PJ
10625 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
10626
10627 * alloc.c: Reindent DEFUNs with doc: keywords.
10628
10629 * abbrev.c (Finsert_abbrev_table_description): Reindent.
10630
14ff1ee0
PJ
10631 * frame.c: Change doc-string comments to `new style' [w/`doc:'
10632 keyword].
10633
2f147815 10634See ChangeLog.9 for earlier changes.
6922b018
KH
10635
10636;; Local Variables:
49b3bd82 10637;; coding: iso-2022-7bit
6922b018 10638;; End:
2a34a036 10639
2f147815 10640 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
10641 Copying and distribution of this file, with or without modification,
10642 are permitted provided the copyright notice and this notice are preserved.