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