Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-483
[bpt/emacs.git] / src / ChangeLog
1 2004-08-08 Luc Teirlinck <teirllm@auburn.edu>
2
3 * keyboard.c: Declare Qdisabled_command_function instead of
4 Qdisabled_command_hook.
5 (Fcommand_execute): Use Qdisabled_command_function instead of
6 Qdisabled_command_hook.
7 (syms_of_keyboard): Ditto.
8
9 2004-08-07 Luc Teirlinck <teirllm@auburn.edu>
10
11 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
12 (syms_of_keymap) <key-translation-map>: Doc fixes.
13
14 2004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
15
16 * window.c (window_list_1): YAILOM.
17
18 * fileio.c (make_temp_name): Handle multibyte prefixes.
19
20 2004-08-06 Luc Teirlinck <teirllm@auburn.edu>
21
22 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
23 Doc fix.
24
25 2004-08-03 Kenichi Handa <handa@m17n.org>
26
27 * coding.c (decode_coding_string): Adjust coding->consumed, and
28 etc. with shrinked_bytes.
29
30 2004-08-03 Kim F. Storm <storm@cua.dk>
31
32 * indent.c (compute_motion): Fix check for full width window
33 in non-window case. Do not count left truncation glyph on
34 window systems.
35
36 2004-08-02 Luc Teirlinck <teirllm@auburn.edu>
37
38 * data.c (Finteractive_form): Doc fix.
39
40 2004-08-02 Kim F. Storm <storm@cua.dk>
41
42 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
43 properly accounting for continuation glyph on non-window systems.
44 (Fcompute_motion): Use actual window width if WIDTH is nil, and
45 actual window width/height if TOPOS is nil, properly accounting for
46 continuation glyphs on non-window systems, and optional header lines.
47 (vmotion): Let compute_motion calculate actual window width.
48
49 * window.c (window_scroll_line_based): Let compute_motion
50 calculate actual window width.
51
52 2004-08-02 Kim F. Storm <storm@cua.dk>
53
54 * process.c (read_process_output): Use whole read buffer.
55 Don't trigger adaptive read buffering on errors.
56
57 2004-07-31 Luc Teirlinck <teirllm@auburn.edu>
58
59 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
60
61 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
62
63 * callint.c (Fcall_interactively): Doc fix.
64
65 2004-07-30 Kim F. Storm <storm@cua.dk>
66
67 * editfns.c (Fformat): Allocate extra (dummy) element in info.
68
69 2004-07-28 Luc Teirlinck <teirllm@auburn.edu>
70
71 * eval.c (Fdefvar, Fdefconst): Doc fixes.
72
73 2004-07-27 Kim F. Storm <storm@cua.dk>
74
75 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
76 we have ensured that the glyph fits on the current line (or returned
77 MOVE_LINE_CONTINUED otherwise).
78
79 2004-07-26 Kim F. Storm <storm@cua.dk>
80
81 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
82 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
83 if target position is at end of display line but char is not a newline.
84
85 2004-07-25 Richard M. Stallman <rms@gnu.org>
86
87 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
88 instead of ON_VERTICAL_BORDER, when on scroll bar.
89 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
90
91 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
92
93 * window.c (Fcoordinates_in_window_p):
94 Take account of FRAME_INTERNAL_BORDER_WIDTH.
95
96 * alloc.c (check_cons_list): New function (contents commented out).
97
98 2004-07-24 Luc Teirlinck <teirllm@auburn.edu>
99
100 * xfaces.c (Fcolor_supported_p): Doc fix.
101
102 * frame.c (Fselect_frame, Fset_frame_selected_window)
103 (Fframe_visible_p, Fraise_frame): Doc fixes.
104
105 2004-07-24 Richard M. Stallman <rms@gnu.org>
106
107 * keyboard.h (not_single_kboard_state): Declared.
108
109 * fileio.c (Fwrite_region): Doc fix.
110
111 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
112
113 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
114 only when a real abbrev is present.
115
116 * xfns.c (x_icon_verify): New function.
117 (Fx_create_frame): Use it.
118
119 2004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
120
121 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
122
123 2004-07-21 Kim F. Storm <storm@cua.dk>
124
125 * window.h (struct glyph_matrix): New members nrows_scale_factor
126 and ncols_scale_factor.
127
128 * window.c (make_window): Initialize nrows_scale_factor and
129 ncols_scale_factor members.
130
131 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
132 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
133 (required_matrix_height): Apply nrows_scale_factor.
134 (required_matrix_width): Apply ncols_scale_factor.
135
136 * xdisp.c (display_line): Increment nrows_scale_factor and set
137 fonts_changed_p if past last allocated row.
138 (append_glyph, append_composite_glyph, produce_image_glyph)
139 (append_stretch_glyph): Increment ncols_scale_factor and set
140 fonts_changed_p if current area is full.
141
142 2004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
143
144 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
145
146 2004-07-19 Luc Teirlinck <teirllm@auburn.edu>
147
148 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
149 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
150 (Fset_window_start, Fscroll_up, Fscroll_down)
151 (Fother_window_for_scrolling, Fscroll_other_window)
152 (Fsave_window_excursion, Fset_window_vscroll)
153 (syms_of_window) <window-size-fixed>: Doc fixes.
154
155 2004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
156
157 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
158 ENCODE_SYSTEM for filenames.
159
160 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
161
162 * mac.c (sys_select): Block input around call to
163 ReceiveNextEvent to prevent breakage. Correctly handle
164 blocking on event queue only by calling ReceiveNextEvent
165 instead of select (since GUI events aren't on an fd).
166 (sys_read): Remove function
167 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
168
169 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
170
171 * mac.c (sys_select): Redo sys_select to use alarm-based
172 polling instead of 1 sec timeouts (like solaris).
173
174 * macterm.c (x_make_frame_visible): Comment in polling on
175 frame creation.
176
177 * keyboard.c: Undef SIGIO on Carbon
178
179 * atimer.c (alarm_signal_handler): Call alarm handlers after
180 scheduling.
181
182 * eval.c (Feval): Remove quit_char test
183
184 * process.c (wait_reading_process_input): Remove clearing
185 stdin for select call on process input.
186
187 2004-07-18 Luc Teirlinck <teirllm@auburn.edu>
188
189 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
190 capitalization error in docstring.
191
192 2004-07-17 Juanma Barranquero <lektu@terra.es>
193
194 * keyboard.c (not_single_kboard_state): Do nothing unless
195 MULTI_KBOARD is defined.
196
197 2004-07-17 Richard M. Stallman <rms@gnu.org>
198
199 * window.c (coordinates_in_window): Inside the window but outside
200 its box to the L or R, return ON_VERTICAL_BORDER.
201 (window_list_1): Rotate the list to start with WINDOW.
202
203 * print.c (print_preprocess): Test for print_depth at limit
204 before entering in being_printed.
205
206 * keyboard.c (not_single_kboard_state): New function.
207 (stuff_buffered_input): Now no-op only if no SIGTSTP.
208
209 * frame.c (Fdelete_frame): If we're in single_bboard_state on
210 this kboard, and we delete its last frame, go to any_kboard_state.
211
212 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
213
214 2004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
215
216 * w32fns.c (Fx_file_dialog): Encode strings in system coding
217 system before passing them to OS functions for display.
218
219 2004-07-15 David Kastrup <dak@gnu.org>
220
221 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
222 Apparently fixes an abort condition.
223
224 2004-07-14 Luc Teirlinck <teirllm@auburn.edu>
225
226 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
227 instead of a cons.
228
229 2004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
230
231 * keyboard.c (echo_dash): Do nothing if there already is a dash
232 at the end of the echo string.
233
234 2004-07-12 Kim F. Storm <storm@cua.dk>
235
236 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
237 if GC_MARK_STACK.
238
239 2004-07-10 Luc Teirlinck <teirllm@auburn.edu>
240
241 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
242
243 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
244 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
245 (Freplace_buffer_in_windows, Fset_window_buffer)
246 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
247 (syms_of_window): Expand docstring of `display-buffer-function'.
248
249 2004-07-09 Luc Teirlinck <teirllm@auburn.edu>
250
251 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
252 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
253 that time values of the type (HIGH . LOW) are considered obsolete.
254
255 2004-07-06 Luc Teirlinck <teirllm@auburn.edu>
256
257 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
258 docstring.
259
260 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
261
262 2004-07-06 John Paul Wallington <jpw@gnu.org>
263
264 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
265
266 * fns.c (Fclear_string): Signal an error if STRING is not a string.
267
268 2004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
269
270 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
271 instead of CGMainDisplayID (only in OSX 10.2 and later).
272
273 2004-07-04 John Paul Wallington <jpw@gnu.org>
274
275 * fileio.c (read_file_name_completion_ignore_case): New variable.
276 (syms_of_fileio): Declare and initialise it.
277 (Fread_file_name): Bind `completion-ignore-case' to respect it.
278
279 2004-07-03 Eli Zaretskii <eliz@gnu.org>
280
281 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
282 for event.x and event.y.
283
284 2004-07-01 Kenichi Handa <handa@m17n.org>
285
286 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
287 after getting a new string by pre-write-conversion.
288
289 2004-06-30 Stefan <monnier@iro.umontreal.ca>
290
291 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
292 (x_calc_absolute_position): Remove unused var `child'.
293
294 * xfaces.c (x_supports_face_attributes_p)
295 (Fdisplay_supports_face_attributes_p): YAILOM.
296 (tty_supports_face_attributes_p): Remove unused var `i'.
297
298 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
299 back_unibyte_ok.
300
301 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
302
303 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
304
305 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
306
307 2004-06-30 Andreas Schwab <schwab@suse.de>
308
309 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
310 (Finit_image_library): Pass LIBRARIES through to
311 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
312 (lookup_image_type): Pass Qnil as second argument to
313 Finit_image_library.
314
315 * lisp.h: Declare Finit_image_library.
316
317 2004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
318
319 * macterm.c (do_window_activate, do_window_deactivate): Remove.
320 (XTread_socket): Send mouse button events to the toolbox
321 dispatcher even when the mouse is grabbed. Don't process window
322 activate events for non-Emacs windows. Replace function calls to
323 do_window_activate and do_window_deactivate with their contents.
324 Reset mouse grabbing status when a window is deactivated.
325
326 2004-06-29 Steven Tamm <steventamm@mac.com>
327
328 * macterm.c (mac_get_emulated_btn)
329 (mac_event_to_emacs_modifiers): Fix emulated mouse button
330 support to correctly mask out modifiers.
331
332 2004-06-29 David Kastrup <dak@gnu.org>
333
334 * search.c (Fset_match_data): Allow buffer before end of list
335 which can happen if set-match-data is using a pre-consed list.
336
337 2004-06-28 Steven Tamm <steventamm@mac.com>
338
339 * macterm.c (XTread_socket): Correctly set the frame position
340 after the window is moved.
341
342 2004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
343
344 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
345 gpix and gmask just before return to avoid memory leak.
346 (xg_get_image_for_pixmap): Add workaround for monochrome displays
347 so insensitive and activated icons look ok.
348
349 2004-06-27 Jason Rumney <jasonr@gnu.org>
350
351 * w32fns.c (file_dialog_callback): Disable edit control if set
352 to directories only on CDN_INITDONE message.
353 (Fx_file_dialog): Default to directories only when prompt starts
354 with "Dired".
355
356 2004-06-25 Kim F. Storm <storm@cua.dk>
357
358 * alloc.c (allocate_misc): Update total_free_markers.
359 (free_misc): New function.
360 (safe_alloca_unwind, free_marker): Use it.
361
362 * lisp.h (free_misc): Add prototype.
363
364 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
365
366 2004-06-24 Richard M. Stallman <rms@gnu.org>
367
368 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
369 (syms_of_emacs): Lisp variables deleted.
370
371 2004-06-23 David Kastrup <dak@gnu.org>
372
373 * search.c (Freplace_match): Adjust the match-data more thoroughly
374 when replacing strings in the buffer.
375 (Fmatch_data): When INTEGERS is non-nil and the last match was in
376 a buffer, add the buffer as last element to the match data.
377 (Fset_match_data): If an additional element of the match-data is a
378 buffer, restore it to last_thing_searched.
379 (save_search_regs): Save last_thing_searched as part of the match data.
380 (restore_match_data): Restore it again.
381
382 2004-06-23 Luc Teirlinck <teirllm@auburn.edu>
383
384 * keymap.c (Ftext_char_description): Doc fix.
385 * doc.c (Fsnarf_documentation): Doc fix.
386
387 2004-06-22 Kim F. Storm <storm@cua.dk>
388
389 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
390
391 * lisp.h (struct Lisp_Save_Value): New member dogc.
392 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
393 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
394 (SAFE_FREE_LISP): New macro.
395
396 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
397 (make_save_value): Init new dogc member.
398 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
399
400 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
401 SAFE_FREE_LISP macros.
402
403 2004-06-22 Kim F. Storm <storm@cua.dk>
404
405 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
406 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
407 in that memory area are unknown to GC. Add comments.
408
409 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
410
411 2004-06-21 Kim F. Storm <storm@cua.dk>
412
413 * lisp.h (MAX_ALLOCA): Define here.
414 (safe_alloca_unwind): Add prototype.
415 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
416
417 * alloc.c (safe_alloca_unwind): New function.
418
419 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
420
421 * charset.c (Fstring): Use SAFE_ALLOCA.
422
423 * coding.c (MAX_ALLOCA): Remove define.
424
425 * data.c (MAX_ALLOCA): Remove define.
426 (Faset): Use SAFE_ALLOCA.
427
428 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
429
430 * fns.c (string_make_multibyte, string_to_multibyte)
431 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
432 (MAX_ALLOCA): Remove define.
433 (Fbase64_encode_region, Fbase64_encode_string)
434 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
435 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
436 memory leak if encoding fails.
437
438 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
439
440 2004-06-21 Eli Zaretskii <eliz@gnu.org>
441
442 * print.c (Fwith_output_to_temp_buffer): Doc fix.
443
444 2004-06-20 Richard M. Stallman <rms@gnu.org>
445
446 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
447
448 * search.c (match_limit): Cleaner err msg when no match data available.
449
450 * window.c (syms_of_window): Doc fix.
451
452 * keyboard.c (command_loop_1): Handle values `only' and `identity'
453 for Vtransient_mark_mode.
454
455 * buffer.c (syms_of_buffer): Doc fix.
456
457 2004-06-21 David Kastrup <dak@gnu.org>
458
459 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
460 and unbinding of `case-fold-search' according to
461 `completion-ignore-case' around calls of string-match and
462 predicates, respectively. Should give satisfactory performance
463 in all relevant cases.
464
465 2004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
466
467 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
468 clip_x/y_origin.
469
470 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
471
472 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
473
474 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
475 on Mac OSX.
476
477 2004-06-16 Luc Teirlinck <teirllm@auburn.edu>
478
479 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
480
481 2004-06-16 Kim F. Storm <storm@cua.dk>
482
483 * dispextern.h (Vimage_types): Remove extern.
484
485 2004-06-16 Miles Bader <miles@gnu.org>
486
487 * image.c (lookup_image_type): Initialize image type if necessary.
488
489 2004-06-15 Kim F. Storm <storm@cua.dk>
490
491 * xdisp.c (try_cursor_movement): Exclude header line from scroll
492 margin at top of window.
493 (try_window_reusing_current_matrix): Calculate proper cursor position
494 after scrolling up with non-zero scroll margin, as the old cursor
495 position corresponds to value of PT before executing this command.
496 (try_window_id): Consider scroll margin at bottom of window too;
497 otherwise we fail to scroll when hl-line-mode is enabled.
498
499 * syntax.c (skip_chars): Only recognize [:class:] when it has the
500 proper format and class is a lower-case word.
501
502 2004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
503
504 * gtkutil.c (xg_get_image_for_pixmap): New function.
505 (xg_get_gdk_pixmap_and_mask): Remove.
506 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
507 xg_get_gdk_pixmap_and_mask.
508
509 * xterm.h (struct x_display_info): Typo in comment fixed.
510
511 2004-06-14 Juanma Barranquero <lektu@terra.es>
512
513 * dispextern.h (Vimage_types): Make it conditional on
514 HAVE_WINDOW_SYSTEM.
515
516 * image.c (Vimage_types): Move from xdisp.c.
517 (Vimage_type_cache): New variable.
518 (define_image_type): New argument indicating whether an image
519 library was loaded; cache loaded status and return t on success,
520 nil otherwise.
521 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
522 (w32_delayed_load): New function to load an image library from a
523 list of possible filenames.
524 (init_xpm_functions, init_png_functions, init_jpeg_functions)
525 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
526 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
527 (Finit_image_library): New function, extracted from `init_image'.
528 Try to initialize an image library on demand and cache whether we
529 were successful or not.
530 (syms_of_image): Initialize `Vimage_types' and
531 `Vimage_type_cache'. Add recognized image types to Vimage_types.
532 Export `init-image-library'.
533 (init_image): Remove initialization of all image types, except xbm
534 and pbm.
535
536 * xdisp.c (Vimage_types): Delete (moved to image.c).
537
538 2004-06-14 Andreas Schwab <schwab@suse.de>
539
540 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
541 Avoid calling specbind when completion-regexp-list is empty.
542
543 2004-06-13 Richard M. Stallman <rms@gnu.org>
544
545 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
546 (re_wctype, re_iswctype, re_wctype_to_bit):
547 Non-function definitions moved here from regex.c.
548
549 * regex.c (re_wctype, re_iswctype): Function defs longer static.
550 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
551 (re_wctype, re_iswctype, re_wctype_to_bit):
552 Non-function definitions moved to regex.h.
553
554 * window.c (Fselect_window): Doc fix.
555
556 * syntax.c: Include regex.h.
557 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
558 If requested, make a list of classes, then check the scanned
559 chars for membership in them.
560 (in_classes): New function.
561 Doc fix.
562
563 * keyboard.c (cmd_error): Don't call any_kboard_state
564 if inside a recursive edit level.
565
566 2004-06-13 Lorentey K\e,Aa\e(Broly <lorentey@elte.hu>
567
568 * keyboard.c (command_loop): Call any_kboard_state before
569 command_loop_2 when at top level.
570
571 2004-06-13 Andreas Schwab <schwab@suse.de>
572
573 * print.c (print_object): Always use %ld for printing EMACS_INT.
574
575 * keyboard.c (cancel_hourglass_unwind): Return a value.
576 (modify_event_symbol): Always use %ld for printing EMACS_INT.
577 (Fexecute_extended_command): Likewise.
578
579 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
580 avoid clashes.
581 (SYNTAX): Likewise.
582 (SYNTAX_WITH_FLAGS): Likewise.
583 (SYNTAX_MATCH): Likewise.
584
585 * syntax.c (char_quoted): Avoid warning about undefined operation.
586 (find_defun_start): Likewise.
587 (scan_lists): Likewise.
588 (INC_FROM): Likewise.
589 (scan_sexps_forward): Likewise.
590
591 * image.c: Include <ctype.h>.
592
593 * xfaces.c (face_attr_equal_p): Declare parameters.
594
595 2004-06-13 Kenichi Handa <handa@m17n.org>
596
597 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
598
599 2004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
600
601 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
602
603 2004-06-12 Kenichi Handa <handa@m17n.org>
604
605 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
606 ccl_prog_stack_struct and update it.
607 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
608 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
609 ccl->eof_ic on EOF.
610 (ccl_debug_hook): New function.
611 (struct ccl_prog_stack): New member eof_ic.
612 (ccl_driver): Handle EOF in subrountine call correctly.
613
614 2004-06-11 Kenichi Handa <handa@m17n.org>
615
616 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
617
618 2004-06-11 Kim F. Storm <storm@cua.dk>
619
620 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
621
622 2004-06-11 Juanma Barranquero <lektu@terra.es>
623
624 * keyboard.c (Fposn_at_point): Doc fix.
625
626 2004-06-11 David Kastrup <dak@gnu.org>
627
628 * search.c (match_limit): Don't flag an error if match-data
629 exceeding the allocated search_regs.num_regs gets requested, just
630 return Qnil.
631
632 2004-06-08 Miles Bader <miles@gnu.org>
633
634 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
635
636 2004-06-07 Juanma Barranquero <lektu@terra.es>
637
638 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
639 (Fcurrent_time_string, Fcurrent_time_zone)
640 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
641
642 2004-06-07 Miles Bader <miles@gnu.org>
643
644 * xfaces.c (struct named_merge_point): New type.
645 (push_named_merge_point): New function.
646 (merge_named_face): New function.
647 (merge_face_ref, face_at_buffer_position, face_at_string_position):
648 Use `merge_named_face'.
649 (merge_face_inheritance): Function removed.
650 (merge_face_ref): Rename from `merge_face_vector_with_property'.
651 Add new `err_msgs' and `named_merge_points' args. Return error
652 status. Only print error messages if ERR_MSGS is true. Don't try to
653 do :inherit attribute validation.
654 (merge_face_heights): Handle `unspecified' in both directions.
655 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
656 Call `merge_face_ref' instead of `merge_face_inheritance'.
657 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
658 (compute_char_face, face_at_buffer_position)
659 (face_at_string_position): Call `merge_face_ref' instead of
660 `merge_face_vector_with_property'.
661
662 2004-06-07 Kenichi Handa <handa@m17n.org>
663
664 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
665 the necessary places.
666
667 2004-06-07 Kim F. Storm <storm@cua.dk>
668
669 * process.c (Fdelete_process): Undo 2004-05-28 change.
670 Instead, call status_notify also for network process.
671 (status_message): Use process instead of status as arg.
672 Give messages "deleted" or "connection broken by remote peer" for
673 an exited network process.
674 (status_notify): Change call to status_message.
675 (read_process_output): Increase readmax to 4096. Do not increase
676 buffer size for datagram channels (default is now large enough).
677
678 2004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
679
680 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
681 problem due to newly defined variable.
682
683 2004-06-06 Miles Bader <miles@gnu.org>
684
685 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
686 immediately if non-interactive or not initialized.
687
688 2004-06-05 Richard M. Stallman <rms@gnu.org>
689
690 * minibuf.c (Fcompleting_read): Doc fix.
691
692 2004-06-05 Andreas Schwab <schwab@suse.de>
693
694 * macfns.c (x_create_tip_frame): Fix declaration after statement.
695
696 2004-06-05 Juanma Barranquero <lektu@terra.es>
697
698 * keymap.c (Fdescribe_vector): Fix docstring.
699 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
700
701 2004-06-05 Miles Bader <miles@gnu.org>
702
703 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
704 attributes have different values than the default face.
705
706 2004-06-04 Eli Zaretskii <eliz@gnu.org>
707
708 * xfaces.c (x_supports_face_attributes_p): Make this function
709 conditional on HAVE_WINDOW_SYSTEM.
710 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
711 Don't call x_supports_face_attributes_p if it was not compiled in.
712
713 2004-06-04 Miles Bader <miles@gnu.org>
714
715 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
716 from Ftty_supports_face_attributes_p.
717 (x_supports_face_attributes_p): New function.
718 (Ftty_supports_face_attributes_p): Function deleted.
719 (Fdisplay_supports_face_attributes_p): New function.
720 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
721 (face_attr_equal_p): New function.
722 (lface_equal_p): Use it.
723
724 2004-06-03 Juanma Barranquero <lektu@terra.es>
725
726 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
727 (Vw32_color_map): Fix typo in docstring.
728 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
729 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
730 Make argument names match their use in docstring.
731
732 2004-06-02 Juanma Barranquero <lektu@terra.es>
733
734 Work around bugs/problems with MinGW builds of graphics libraries
735 called from MSVC builds of Emacs.
736
737 * image.c (lookup_image): Make pointer to img static.
738 (png_read_from_memory): Disable "global" optimization.
739
740 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
741
742 * eval.c (Fcondition_case): Fix usage. Simplify.
743
744 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
745
746 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
747
748 * macfns.c: Don't include ccl.h.
749 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
750 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
751 TextUtils.h.
752 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
753 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
754 display height/width.
755 (compute_tip_xy, Vx_max_tooltip_size): Declare.
756 (unwind_create_tip_frame, compute_tip_xy): New functions.
757 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
758 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
759 and last_show_tip_args.
760
761 * macgui.h [!MAC_OSX]: Include Gestalt.h.
762 (Cursor, No_Cursor): New defines.
763 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
764 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
765
766 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
767
768 * macterm.c: Don't include Gestalt.h.
769 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
770 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
771 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
772 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
773 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
774 (construct_mouse_click, XTmouse_position)
775 (x_scroll_bar_report_motion, x_calc_absolute_position)
776 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
777 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
778 (note_mouse_movement): Clear the mouse face and reset the pointer
779 shape when the pointer goes outside the frame without grabbing.
780 (mac_front_window): New function.
781 (mac_window_to_frame): New macro.
782 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
783 (do_window_activate, do_window_deactivate, do_app_resume)
784 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
785 (do_zoom_window, mac_do_receive_drag, XTread_socket)
786 (mac_check_for_quit_char): Use mac_front_window and/or
787 mac_window_to_frame.
788 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
789 scroll-bar click event.
790 (mac_define_frame_cursor): Change the pointer shape.
791 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
792 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
793 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
794 (do_window_update): Don't do anything if the updated window is the
795 tooltip window.
796 (do_mouse_moved): Handle mouse movement events here (previously in
797 XTread_socket). Clear the mouse face if
798 dpyinfo->mouse_face_hidden is set.
799 (do_os_event, do_events): Remove (now in XTread_socket).
800 (XTread_socket): Immediately return if interrupt_input_blocked.
801 Loop until all the events in the queue are processed.
802 Rearrange codes for mouse grabbing. Add tooltip support. Include the
803 contents of do_os_event and do_events. Remove mouse movement
804 handling (now in do_mouse_moved). Add the case where
805 Vmouse_highlight has an integer value.
806 (NewMacWindow): Remove.
807 (make_mac_frame): Do what NewMacWindow previously did. Don't do
808 excess initializations.
809 (make_mac_terminal_frame): Previous initializations in
810 make_mac_frame are moved here.
811 (mac_initialize_display_info):
812 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
813
814 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
815 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
816
817 2004-05-29 Richard M. Stallman <rms@gnu.org>
818
819 * lisp.h (truncate_undo_list): Update decl.
820
821 * alloc.c (undo_outer_limit): New variable.
822 (syms_of_alloc): Defvar it.
823 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
824
825 * undo.c (truncate_undo_list): New arg LIMITSIZE.
826
827 * alloc.c (lisp_align_malloc): Check for base == 0
828 regardless of HAVE_POSIX_MEMALIGN.
829 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
830
831 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
832
833 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
834 (marker_blocks_pending_free): Remove.
835 (Fgarbage_collect): Sweep after cleaning up undo-lists.
836 Mark the undo lists after claning them up.
837 Don't free block in marker_blocks_pending_free.
838 (mark_buffer): Don't mark undo_list.
839 (gc_sweep): Sweep hash-tables and strings first.
840 Do free marker blocks that are empty.
841
842 2004-05-28 Jim Blandy <jimb@redhat.com>
843
844 * regex.c (print_partial_compiled_pattern): Add missing 'break'
845 after 'case wordend'. For symbeg and symend, print to stderr,
846 like the other cases.
847
848 2004-05-28 Noah Friedman <friedman@splode.com>
849
850 * process.c (Fdelete_process): Do not call remove_process.
851
852 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
853
854 * alloc.c (struct backtrace): Remove.
855 (Fgarbage_collect): Use the new mark_backtrace.
856
857 * eval.c (mark_backtrace): New function.
858
859 * minibuf.c (run_exit_minibuf_hook): New function.
860 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
861 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
862
863 2004-05-27 Kim F. Storm <storm@cua.dk>
864
865 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
866 over display properties, e.g. images, that replace buffer text.
867
868 2004-05-25 Kim F. Storm <storm@cua.dk>
869
870 * alloc.c (marker_blocks_pending_free): New var.
871 (gc_sweep): Store free marker blocks on that list.
872 (Fgarbage_collect): Free them after undo-list cleanup.
873
874 * process.c (wait_reading_process_input): Check connect_wait_mask
875 before actually accepting connection in case it has already been
876 accepted due to recursion.
877
878 2004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu> (tiny change)
879
880 * coding.c (Fset_safe_terminal_coding_system_internal):
881 Set suppress_error in safe_terminal_coding, not terminal_coding.
882
883 2004-05-22 Richard M. Stallman <rms@gnu.org>
884
885 * alloc.c (Fmake_string): Doc fix.
886
887 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
888 and the alist pairs too.
889
890 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
891
892 * emacs.c (main): Update copyright year.
893
894 * fileio.c (Fread_file_name): Expand DIR if not absolute.
895
896 * insdel.c (del_range_2, replace_range): Don't write an anchor
897 if the gap is empty.
898
899 * xdisp.c (try_scrolling): If scroll-up-aggressively or
900 scroll-down-aggressively is small but positive, put point
901 near the screen edge.
902
903 2004-05-22 Juanma Barranquero <lektu@terra.es>
904
905 * keymap.c (Fdefine_key): Doc fix.
906
907 2004-05-22 Kim F. Storm <storm@cua.dk>
908
909 * alloc.c (struct backtrace): Add debug_on_exit member.
910 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
911 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
912 the removed cons cells.
913 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
914 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
915 any cons cells pointing to unallocated stings.
916 Do not lisp_free any marker blocks, as there may still be pointers
917 to them from buffer undo lists at this stage of GC.
918
919 * keyboard.c (struct backtrace): Add debug_on_exit member.
920 (Fcommand_execute): Clear it.
921
922 2004-05-20 Luc Teirlinck <teirllm@auburn.edu>
923
924 * intervals.c (lookup_char_property): Do not prematurely return nil.
925
926 2004-05-19 Jim Blandy <jimb@redhat.com>
927
928 Add support for new '\_<' and '\_>' regexp operators, matching the
929 beginning and end of symbols.
930
931 * regex.c (enum syntaxcode): Add Ssymbol.
932 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
933 (re_opcode_t): New opcodes `symbeg' and `symend'.
934 (print_partial_compiled_pattern): Print the new opcodes properly.
935 (regex_compile): Parse the new operators.
936 (analyse_first): Skip sym(beg|end) (they match only the empty string).
937 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
938 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
939 (re_match_2_internal): Match symbeg and symend.
940
941 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
942
943 2004-05-19 Kim F. Storm <storm@cua.dk>
944
945 * .gdbinit (xsymbol): Fix last change.
946
947 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
948
949 * .gdbinit (xprintstr): New fun.
950 (xstring, xprintsym): Use it.
951
952 * w32proc.c (create_child): Use INTMASK.
953
954 * alloc.c (Fgarbage_collect): Do all the marking before flushing
955 unmarked elements of the undo list.
956
957 2004-05-18 David Ponce <david@dponce.com>
958
959 * print.c (print): Reset print_depth before to call print_object.
960
961 2004-05-18 Jason Rumney <jasonr@gnu.org>
962
963 * w32console.c: Prefix RIF functions with w32con_ to avoid
964 namespace clash with functions in term.c and w32term.c.
965
966 * w32menu.c (add_menu_item, w32_menu_display_help)
967 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
968
969 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
970
971 2004-05-18 Eli Zaretskii <eliz@gnu.org>
972
973 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
974
975 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
976 with make_number.
977 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
978 with XINT.
979
980 2004-05-18 Kim F. Storm <storm@cua.dk>
981
982 * blockinput.h (INPUT_BLOCKED_P): New macros.
983
984 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
985 (Ftop_level): Unblock input if blocked.
986
987 * buffer.h (GET_OVERLAYS_AT): New macro.
988 * msdos.c (IT_note_mouse_highlight): Use it.
989 * textprop.c (get_char_property_and_overlay): Use it.
990 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
991 * xfaces.c (face_at_buffer_position): Use it.
992
993 * print.c (print_object): Increase buf size.
994
995 2004-05-17 Jason Rumney <jasonr@gnu.org>
996
997 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
998 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
999 Lisp_Object using i member.
1000 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
1001 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
1002 consistently.
1003
1004 * w32proc.c (create_child): Use make_number instead of masking pid.
1005
1006 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
1007 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
1008 Use EQ to compare Lisp_Objects.
1009 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
1010
1011 * w32term.c (w32_num_mouse_buttons): Rename from
1012 Vw32_num_mouse_buttons and make it an int.
1013
1014 * w32.c (init_environment): Use it.
1015
1016 * w32fns.c (w32_wnd_proc): Likewise.
1017
1018 * w32proc.c (w32_pipe_read_delay): Rename from
1019 Vw32_pipe_read_delay and make it an int.
1020
1021 * w32.c (_sys_read_ahead): Use it.
1022
1023 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
1024
1025 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
1026
1027 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
1028 (key_event): Don't mix Lisp_Object and int.
1029
1030 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
1031
1032 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
1033 modifiers in language change event.
1034
1035 2004-05-17 Kim F. Storm <storm@cua.dk>
1036
1037 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
1038 Such objects may be freed markers which still exist on an undo list.
1039
1040 2004-05-16 Juanma Barranquero <lektu@terra.es>
1041
1042 * data.c (Fset_default): Make argument names match their use in
1043 docstring.
1044
1045 2004-05-15 Andreas Schwab <schwab@suse.de>
1046
1047 * emacs.c (gdb_array_mark_flag): Define.
1048 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
1049
1050 2004-05-15 Eli Zaretskii <eliz@gnu.org>
1051
1052 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
1053 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
1054 defined for the MS-DOS build.
1055
1056 2004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1057
1058 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
1059
1060 2004-05-14 Kenichi Handa <handa@m17n.org>
1061
1062 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
1063
1064 2004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1065
1066 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
1067 section to frame.c section.
1068 (Fxw_display_color_p, Fx_file_dialog): Declare if
1069 HAVE_WINDOW_SYSTEM defined.
1070
1071 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
1072
1073 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
1074
1075 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
1076 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
1077 (XTread_socket): Fix int/Lisp_Object mixup.
1078 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
1079
1080 * macterm.h (struct frame, struct face, struct image)
1081 (display_x_get_resource, Fx_display_color_p)
1082 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
1083 Add prototypes.
1084
1085 2004-05-14 Kim F. Storm <storm@cua.dk>
1086
1087 * process.c (wait_reading_process_input): Make reentrant.
1088 Make Available and Connecting non-static. Save and restore value
1089 of waiting_for_user_input_p.
1090
1091 2004-05-13 Kim F. Storm <storm@cua.dk>
1092
1093 * keyboard.c (mark_kboards): Don't mark x and y members
1094 that are overloaded in selection request events.
1095
1096 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
1097
1098 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
1099
1100 2004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
1101
1102 * window.c (Fdisplay_buffer, Fsplit_window)
1103 (split-height-threshold): Doc fix.
1104
1105 2004-05-13 Juanma Barranquero <lektu@terra.es>
1106
1107 * xfaces.c (Ftty_supports_face_attributes_p)
1108 (Finternal_copy_lisp_face): Fix typo in docstring.
1109 (Finternal_get_lisp_face_attribute): Fix docstring.
1110
1111 2004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1112
1113 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
1114
1115 2004-05-11 Steven Tamm <steventamm@mac.com>
1116
1117 * macfns.c (Fx_create_frame): Default to using tool-bar by
1118 setting tool-bar-lines to 1 in default-frame-alist.
1119
1120 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1121
1122 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
1123 (xpm_get_color_table_v, xpm_make_color_table_h)
1124 (xpm_put_color_table_h, xpm_get_color_table_h)
1125 (xpm_str_to_color_key, xpm_load_image, xpm_load)
1126 (syms_of_image): Support XPM on Carbon Emacs. Does not
1127 depend on libXpm, but only supports XPM version 3 without extensions.
1128
1129 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1130
1131 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
1132 instead of FRAME_X_P
1133
1134 2004-05-11 Kim F. Storm <storm@cua.dk>
1135
1136 * process.c (read_process_output): Grow decoding_buf when needed;
1137 this could cause a crash in allocate_string and compact_small_strings.
1138
1139 2004-04-29 Jim Blandy <jimb@redhat.com>
1140
1141 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
1142 against proper opcode.
1143
1144 2004-05-10 Juanma Barranquero <lektu@terra.es>
1145
1146 * process.c (Fstart_process): Fix docstring.
1147
1148 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
1149 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
1150 (Fsplit_char, Fchar_charset): Make argument names match their use
1151 in docstring.
1152
1153 2004-05-10 Richard M. Stallman <rms@gnu.org>
1154
1155 * print.c (print_preprocess): Use being_printed, loop_count and
1156 halftail to detect overdeep nesting and cyclic cdr chains.
1157
1158 2004-05-10 Andreas Schwab <schwab@suse.de>
1159
1160 * lisp.h: Declare Fmake_symbolic_link.
1161
1162 * fileio.c (Frename_file): Remove extra argument in call to
1163 Fmake_symbolic_link.
1164
1165 2004-05-10 Kim F. Storm <storm@cua.dk>
1166
1167 * xdisp.c (calc_line_height_property): Use string position when
1168 object is a string.
1169
1170 2004-05-10 Kenichi Handa <handa@m17n.org>
1171
1172 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
1173 inhibit-modification-hooks to t temporarily before calling
1174 Ferase_buffer.
1175
1176 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
1177 inhibit-modification-hooks to t temporarily before calling
1178 Ferase_buffer.
1179
1180 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
1181 inhibit-modification-hooks to t temporarily before calling
1182 Ferase_buffer.
1183
1184 * fns.c (count_combining): Delete it.
1185 (concat): Don't check combining bytes.
1186
1187 2004-05-09 Jason Rumney <jasonr@gnu.org>
1188
1189 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
1190 (globals_of_w32fns): Set it.
1191
1192 2004-05-09 Piet van Oostrum <piet@cs.uu.nl> (tiny change)
1193
1194 * data.c (Fquo): Simplify.
1195
1196 2004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
1197
1198 * data.c (Fquo): If any argument is float, do the computation in
1199 floating point.
1200
1201 2004-05-08 Juanma Barranquero <lektu@terra.es>
1202
1203 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
1204 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
1205 Fix spelling of Emacs on docstring.
1206 (Fset_process_coding_system, Fprocess_coding_system)
1207 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
1208 Make argument names match their use in docstring.
1209 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
1210 Fix docstring.
1211
1212 * editfns.c (Finsert_buffer_substring): Make argument names match their
1213 use in docstring.
1214
1215 * syntax.c (Fmodify_syntax_entry): Fix docstring.
1216
1217 2004-05-07 Steven Tamm <steventamm@mac.com>
1218
1219 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
1220 around call to ReceiveEvent to avoid certain crashes.
1221
1222 2004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1223
1224 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
1225 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
1226 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
1227 Save/restore the current graphics port and device handle when
1228 drawing into an offscreen graphics world.
1229
1230 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
1231 (gif_load): Likewise.
1232
1233 2004-05-07 Juanma Barranquero <lektu@terra.es>
1234
1235 * window.c (Fset_window_buffer): Fix docstring.
1236
1237 2004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
1238
1239 * emacs.c (main) [VMS]: Fix var ref.
1240
1241 2004-05-06 Romain Francoise <romain@orebokech.com> (tiny change)
1242
1243 * data.c (Fsetq_default): Fix docstring.
1244
1245 2004-05-06 Jason Rumney <jasonr@gnu.org>
1246
1247 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
1248 to avoid name clash.
1249
1250 2004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1251
1252 * fileio.c (barf_or_query_if_file_exists): Use lstat.
1253 (Frename_file): Handle renaming of symlinks across file systems.
1254 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
1255
1256 2004-05-04 Kim F. Storm <storm@cua.dk>
1257
1258 * xdisp.c (Qtotal): New var.
1259 (syms_of_xdisp): Intern and staticpro it.
1260 (calc_line_height_property): New arg total. Set it if
1261 line-spacing property has format (total . VALUE).
1262 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
1263 Handle total line-spacing property.
1264
1265 2004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1266
1267 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
1268 "under" scroll bar when size/position changes.
1269
1270 2004-05-03 Jason Rumney <jasonr@gnu.org>
1271
1272 * makefile.nt: Remove.
1273
1274 2004-05-02 Eli Zaretskii <eliz@gnu.org>
1275
1276 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
1277 Avoid compiler warnings.
1278
1279 * Makefile.in (region-cache.o): Depend on config.h.
1280
1281 2004-05-02 Romain Francoise <romain@orebokech.com> (tiny change)
1282
1283 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
1284 with continuation lines, too.
1285
1286 2004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
1287
1288 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
1289
1290 2004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
1291
1292 * xdisp.c (calc_line_height_property): YAILOM (yet another
1293 int/Lisp_Object mixup).
1294
1295 2004-05-01 Eli Zaretskii <eliz@gnu.org>
1296
1297 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
1298 undo bad effect of pack(4) in some versions of system headers.
1299
1300 2004-05-01 Jason Rumney <jasonr@gnu.org>
1301
1302 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
1303
1304 2004-04-30 Kim F. Storm <storm@cua.dk>
1305
1306 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
1307 (syms_of_buffer) <cursor-type>: Doc fix.
1308
1309 * dispextern.h (struct it): Remove member use_default_face.
1310 Add members override_ascent, override_descent, override_boff.
1311
1312 * xdisp.c (init_iterator): Handle line-spacing float value.
1313 Initialize override_ascent member.
1314 (append_space_for_newline): Reset override_ascent.
1315 Remove use_default_face.
1316 (calc_line_height_property): New function to calculate value of
1317 line-height and line-spacing properties. Look at overlays, too.
1318 Set override_ascent, override_descent, override_boff members when
1319 using another face than the current face. Float values are now
1320 relative to the frame default font, by default; accept a cons
1321 of ratio and face name to specify value relative to a specific face.
1322 (x_produce_glyphs): Use calc_line_height_property.
1323 Use override_ascent etc. when set to handle different face heights.
1324 A negative line-spacing property value is interpreted as a total
1325 line height, rather than inter-line spacing.
1326 (note_mouse_highlight): Allocate room for 40 overlays initially.
1327
1328 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
1329
1330 * data.c (Fsubr_name): New fun.
1331 (syms_of_data): Defsubr it.
1332
1333 2004-04-29 Kim F. Storm <storm@cua.dk>
1334
1335 * xdisp.c (null_glyph_slice): New var.
1336 (append_glyph, append_composite_glyph, append_stretch_glyph):
1337 Use it to initialize glyph slice.
1338
1339 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
1340
1341 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
1342 (on_hot_spot_p): Make sure we always return a value.
1343 (Flookup_image_map): Remove unused var ix and iy.
1344 (note_mode_line_or_margin_highlight): Remove unused var `image'.
1345
1346 2004-04-27 Eli Zaretskii <eliz@gnu.org>
1347
1348 * msdos.c (init_environment): If one of the TMP... environment
1349 variables is set to a drive letter without a trailing slash,
1350 append a slash.
1351
1352 2004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
1353
1354 * editfns.c (lisp_time_argument): Provide externally.
1355
1356 * fileio.c (Fset_file_times): New function.
1357 (syms_of_fileio): Intern and staticpro it.
1358
1359 2004-04-27 Kim F. Storm <storm@cua.dk>
1360
1361 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
1362 header line strings.
1363
1364 * dispextern.h (struct it): New member use_default_face.
1365
1366 * xdisp.c (Qline_height): New variable.
1367 (syms_of_xdisp): Intern and staticpro it.
1368 (append_space_for_newline): Partially undo 2004-04-25 change;
1369 add default_face_p arg, and restore callers.
1370 Clear it->use_default_face after use.
1371 (x_produce_glyphs): Set default font for ascii char if
1372 it->use_default_font is set. Change line-spacing property to set
1373 just extra line spacing. Handle new line-height property.
1374
1375 2004-04-26 Andreas Schwab <schwab@suse.de>
1376
1377 * print.c (print_object): Print non-ascii characters in bool
1378 vector representation as octal escapes.
1379
1380 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
1381 * print.c (print_object): Use it instead of BITS_PER_CHAR for
1382 bool vectors.
1383 * lread.c (read1): Likewise.
1384 * alloc.c (Fmake_bool_vector): Likewise.
1385 * data.c (Faref, Faset): Likewise.
1386 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
1387 (mapcar1): Likewise.
1388
1389 2004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
1390
1391 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
1392
1393 2004-04-26 Miles Bader <miles@gnu.org>
1394
1395 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
1396
1397 2004-04-26 Juanma Barranquero <lektu@terra.es>
1398
1399 * buffer.c (Fpop_to_buffer): Fix docstring.
1400
1401 2004-04-26 Steven Tamm <steventamm@mac.com>
1402
1403 * lread.c (init_lread): Don't display missing lisp directory
1404 warnings with Carbon Emacs because self-contained bundled Emacs
1405 may be built without correct installation path.
1406
1407 2004-04-25 Kim F. Storm <storm@cua.dk>
1408
1409 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
1410
1411 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
1412
1413 * xdisp.c (append_space_for_newline): Rename from append_space.
1414 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
1415 (x_produce_glyphs): Handle line-spacing property on newline char.
1416 If value is t, adjust ascent and descent to fit current row height.
1417 If value is an integer or float, set extra_line_spacing to integer
1418 value, or to float value x current line height.
1419
1420 2004-04-23 Kenichi Handa <handa@m17n.org>
1421
1422 * fontset.c (Finternal_char_font): If POSITION is nil, return
1423 font for displaying CH with the default face.
1424
1425 2004-04-23 Juanma Barranquero <lektu@terra.es>
1426
1427 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
1428
1429 2004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
1430
1431 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
1432 Don't make assumptions about the relative place of i and val.
1433 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
1434
1435 2004-04-21 Kim F. Storm <storm@cua.dk>
1436
1437 * dispextern.h (struct glyph_slice): New struct.
1438 (struct glyph): New member slice.
1439 (GLYPH_SLICE_EQUAL_P): New macro.
1440 (GLYPH_EQUAL_P): Use it.
1441 (struct glyph_string): New member slice.
1442 (struct it_slice): New struct.
1443 (struct it): New member slice, add member to stack too.
1444 New member constrain_row_ascent_descent_p.
1445 (image_ascent): Add prototype.
1446
1447 * dispnew.c (buffer_posn_from_coords): Return full image width
1448 and height even for image slices (posn is relative to full image).
1449 (marginal_area_string): Adjust x0,y0 for image slice.
1450
1451 * image.c (image_ascent): Add slice arg; calculate ascent for
1452 image slice (or full image).
1453
1454 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
1455 (syms_of_keyboard): Defsubr them.
1456
1457 * lisp.h (pos_visible_p): Fix prototype.
1458
1459 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
1460 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
1461 (x_draw_image_foreground, x_draw_image_relief)
1462 (x_draw_image_foreground_1, x_draw_image_glyph_string):
1463 Draw sliced images.
1464
1465 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
1466 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
1467 (x_draw_image_foreground, x_draw_image_relief)
1468 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
1469 Draw sliced images.
1470
1471 * w32term.h (image_ascent): Remove prototype.
1472
1473 * window.c (Fpos_visible_in_window_p): Return pixel position if
1474 PARTIALLY arg is non-nil. Simplify. Doc fix.
1475 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
1476 to return/set vscroll in pixels.
1477
1478 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
1479
1480 * xdisp.c (Qslice): New variable.
1481 (syms_of_xdisp): Intern and staticpro it.
1482 (pos_visible_p): Return pixel position in new x and y args.
1483 (init_iterator): Reset it->slice info.
1484 (handle_display_prop): Parse (slice ...) property.
1485 (push_it, pop_it): Save/restore slice info.
1486 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
1487 force repositioning of tall row if window is vscrolled, as that
1488 would reset vscroll.
1489 (append_space): Set it->constrain_row_ascent_descent_p to avoid
1490 increasing row height if row is non-empty.
1491 (fill_image_glyph_string): Copy slice info.
1492 (take_vertical_position_into_account): Simplify.
1493 (produce_image_glyph): Handle iterator slice info, setup glyph
1494 slice info. Do not force minimum line height.
1495 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
1496 do not increase height (ascent/descent) of non-empty row when
1497 adding normal character glyph; instead reduce glyph ascent/descent
1498 appropriately; if row is higher than current glyph, adjust glyph
1499 descent/ascent to reposition glyph within the existing row.
1500 Likewise, when char is newline, only set ascent/descent if row is
1501 currently empty.
1502 (note_mouse_highlight): Handle hotspots with sliced image.
1503
1504 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
1505 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
1506 (x_draw_image_foreground, x_draw_image_relief)
1507 (x_draw_image_foreground_1, x_draw_image_glyph_string):
1508 Draw sliced images.
1509
1510 * xterm.h (image_ascent): Remove prototype.
1511
1512 2004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1513
1514 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
1515
1516 2004-04-20 John Paul Wallington <jpw@gnu.org>
1517
1518 * fns.c (Fassoc, Feql): Fix indentation.
1519
1520 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
1521
1522 2004-04-19 John Paul Wallington <jpw@gnu.org>
1523
1524 * fns.c (Feql): New function.
1525 (syms_of_fns): Defsubr it.
1526
1527 2004-04-18 Jason Rumney <jasonr@gnu.org>
1528
1529 * w32select.c (Fw32_set_clipboard_data): Get sequence number
1530 after closing the clipboard.
1531
1532 2004-04-16 Luc Teirlinck <teirllm@auburn.edu>
1533
1534 * buffer.c (Fbuffer_base_buffer): Doc fix.
1535
1536 2004-04-17 Kim F. Storm <storm@cua.dk>
1537
1538 * keymap.c (Fkey_description): Add optional PREFIX arg.
1539 Combine prefix with KEYS to make up the full key sequence to describe.
1540 Correlate meta_prefix_char and following (simple) key to describe
1541 as meta modifier. All callers changed.
1542 (describe_map): Rename arg `keys' to `prefix'. Remove local
1543 `elt_prefix' var. Use Fkey_description with prefix instead of
1544 elt_prefix combined with Fsingle_key_description.
1545 (describe_vector): Declare static. Replace arg `elt_prefix' with
1546 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
1547 if !KEYMAP_P. Use Fkey_description with prefix instead of
1548 Fsingle_key_description.
1549
1550 * keymap.h (Fkey_description): Fix prototype.
1551 (describe_vector): Remove prototype.
1552
1553 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
1554
1555 * image.c (PNG_BG_COLOR_SHIFT): Remove.
1556 (png_load): Fix calculation of transparent background color on X
1557 and W32 platforms.
1558
1559 2004-04-16 Juanma Barranquero <lektu@terra.es>
1560
1561 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
1562 not too large before computing how much to scroll.
1563
1564 2004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
1565
1566 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
1567
1568 2004-04-14 Luc Teirlinck <teirllm@auburn.edu>
1569
1570 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
1571 Add hyperlink to Elisp manual to the docstring.
1572
1573 2004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
1574
1575 * callint.c (fix_command): Use XDCR.
1576
1577 2004-04-14 Nick Roberts <nick@nick.uklinux.net>
1578
1579 * window.c (Fget_lru_window): Doc fix.
1580
1581 2004-04-14 Kim F. Storm <storm@cua.dk>
1582
1583 * editfns.c (Fformat): Fix allocation size of precision array.
1584
1585 * dispnew.c (update_window): Only set changed_p if
1586 scrolling_window actually did scroll.
1587 (scrolling_window): Only return 1 if we actually did scroll.
1588
1589 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
1590 height to glyph height when cursor row is not fully visible.
1591 (make_cursor_line_fully_visible): Add FORCE_P arg to return
1592 failure in case row is higher than window. Callers changed.
1593 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
1594 Try to scroll partially visible, higher-than-window cursor row.
1595 (redisplay_window): Always try to scroll partially visible,
1596 higher-than-window cursor row - both initially and again with
1597 centering_position = 0.
1598 Clear desired matrix before retrying with centering_position = 0.
1599
1600 2004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1601
1602 * syntax.c (scan_lists): Simplify backward string scan.
1603 Fix off-by-one boundary check for string and comment fences.
1604
1605 2004-04-13 Joe Buehler <jbuehler@hekimian.com>
1606
1607 * sheap.c, unexcw.c: New files.
1608
1609 2004-04-12 Luc Teirlinck <teirllm@auburn.edu>
1610
1611 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
1612 base buffer has been killed. Correct the error message if the
1613 base buffer does not exist.
1614
1615 2004-04-12 Joe Buehler <jbuehler@hekimian.com>
1616
1617 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
1618 Cygwin itself. Add support for Xaw3d scrollbars.
1619
1620 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
1621
1622 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
1623
1624 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
1625 before Cygwin unexec.
1626
1627 * Makefile.in: Link changes for Cygwin unexec() support.
1628
1629 2004-04-12 Andreas Schwab <schwab@suse.de>
1630
1631 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
1632
1633 2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
1634
1635 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
1636 IGNORE argument equals NAME. Doc fix.
1637
1638 2004-04-11 Masatake YAMATO <jet@gyve.org>
1639
1640 * buffer.c (fix_start_end_in_overlays): Make overlays
1641 empty if they are backwards.
1642
1643 2004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
1644
1645 * xfaces.c (face_color_supported_p): Fix compilation without X11.
1646
1647 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
1648
1649 * doc.c (Fsnarf_documentation): Ignore new file name entries.
1650
1651 2004-04-06 Kim F. Storm <storm@cua.dk>
1652
1653 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
1654 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
1655
1656 * w32term.c (w32_read_socket): Set mouse_face_hidden after
1657 clearing highlight.
1658
1659 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
1660
1661 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
1662 clearing highlight.
1663
1664 * indent.c (vmotion): Do not reserve one column for continuation
1665 marks on window frames.
1666
1667 2004-04-04 Eli Zaretskii <eliz@gnu.org>
1668
1669 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
1670 from GCC.
1671
1672 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
1673
1674 * .gdbinit-union: Remove.
1675
1676 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
1677 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
1678 ($nonvalbits): Remove.
1679 ($valmask): Set it by calling xreload to avoid redundancy.
1680
1681 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
1682 (gdb_emacs_intbits): Remove.
1683
1684 2004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1685
1686 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
1687
1688 2004-03-30 Kenichi Handa <handa@m17n.org>
1689
1690 * editfns.c (Fformat): Fix initialization of the array info.
1691
1692 2004-03-30 Kim F. Storm <storm@cua.dk>
1693
1694 * xterm.c (x_mouse_click_focus_ignore_position): New var.
1695 (syms_of_xterm): DEFVAR_BOOL it.
1696 (ignore_next_mouse_click_timeout): New var.
1697 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
1698 Use it to filter mouse clicks following focus event.
1699
1700 2004-03-29 David Ponce <david@dponce.com>
1701
1702 * callint.c (Fcall_interactively): Fix last change.
1703
1704 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
1705
1706 * eval.c (Fcommandp): Simplify.
1707
1708 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
1709 Extend to handle all kinds of functions.
1710
1711 * lisp.h (Finteractive_form): Declare.
1712
1713 * callint.c (Fcall_interactively): Use it.
1714
1715 2004-03-26 Kim F. Storm <storm@cua.dk>
1716
1717 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
1718 to catch errors in calc_pixel_width_or_height during redisplay.
1719
1720 2004-03-26 Masatake YAMATO <jet@gyve.org>
1721
1722 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
1723
1724 * lisp.h (fix_start_end_in_overlays): Likewise.
1725
1726 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
1727
1728 * editfns.c (Ftranspose_regions): Likewise.
1729
1730 2004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1731
1732 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
1733
1734 2004-03-19 Richard M. Stallman <rms@gnu.org>
1735
1736 * s/sol2-6.h: Delete previous change.
1737
1738 2004-03-19 Kim F. Storm <storm@cua.dk>
1739
1740 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
1741 to_charpos corresponds to newline in right fringe. Use local
1742 BUFFER_POS_REACHED_P macro.
1743
1744 2004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1745
1746 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
1747 to compile on non-window system.
1748
1749 2004-03-19 Kim F. Storm <storm@cua.dk>
1750
1751 * dispextern.h (calc_pixel_width_or_height): Add prototype.
1752
1753 * image.c (Qcenter): Move to xdisp.c.
1754
1755 * xdisp.c (Qcenter): Declare here.
1756 (syms_of_xdisp): Intern and staticpro it.
1757 (handle_single_display_prop): Allow space display property on all
1758 platforms.
1759 (display_mode_line): Set mode_line_p before displaying line.
1760 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
1761 handling. Remove complex cases for fringes and scroll-bars.
1762 Add left, right, and center alignment positions. Add text (area)
1763 width/height. Return width or height for image specs.
1764 (produce_stretch_glyph): Improve handling of :align-to. Is now
1765 relative to left of text area by default, but other base offsets
1766 can be specified -- also for text lines.
1767
1768 * term.c (produce_glyphs): Handle IT_STRETCH.
1769 (produce_stretch_glyph): New function to handle space width and
1770 align-to display properties on non-window systems.
1771
1772 2004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
1773
1774 * fileio.c (Fread_file_name): Set completion-ignore-case for
1775 case-insensitive systems.
1776
1777 2004-03-14 Masatake YAMATO <jet@gyve.org>
1778
1779 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
1780 when keymap and cursor are setup.
1781
1782 2004-03-14 Steven Tamm <steventamm@mac.com>
1783
1784 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
1785
1786 2004-03-14 Kim F. Storm <storm@cua.dk>
1787
1788 * dispextern.h (x_find_image_file): Add prototype.
1789
1790 * image.c (x_find_image_file): Make extern.
1791
1792 * xfns.c (x_find_image_file): Remove prototype.
1793
1794 2004-03-13 Eli Zaretskii <eliz@gnu.org>
1795
1796 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
1797
1798 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
1799
1800 2004-03-12 Richard M. Stallman <rms@gnu.org>
1801
1802 * fns.c (internal_equal): New arg PROPS controls comparing
1803 text properties. All callers changed.
1804 (Fequal_including_properties): New function.
1805 (syms_of_fns): defsubr it.
1806
1807 2004-03-12 Kim F. Storm <storm@cua.dk>
1808
1809 Fix image support on MAC. From YAMAMOTO Mitsuharu.
1810
1811 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
1812 (image_background, image_background_transparent): Fix prototypes.
1813
1814 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
1815
1816 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
1817 (x_query_font, x_find_ccl_program, x_set_window_size)
1818 (x_make_frame_visible, mac_initialize, XCreatePixmap)
1819 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
1820 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
1821
1822 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
1823 (x_query_font, x_find_ccl_program, x_set_window_size)
1824 (x_make_frame_visible, mac_initialize, XCreatePixmap)
1825 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
1826 (mac_draw_line_to_pixmap): Add prototypes.
1827
1828 2004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1829
1830 * macterm.c (XTread_socket): Fix mouse click on tool bar.
1831
1832 2004-03-11 Kim F. Storm <storm@cua.dk>
1833
1834 * dispextern.h: Move image related prototypes from xfns.c section
1835 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
1836 HAVE_X_WINDOWS.
1837
1838 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
1839 Move gtkutil.o to new GTK_OBJ list.
1840 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
1841 (GTK_OBJ) [USE_GTK]: New declaration.
1842 (obj): Add $(GTK_OBJ) to list.
1843
1844 2004-03-11 Steven Tamm <steventamm@mac.com>
1845
1846 * image.c [MAC_OSX]: Include sys/stat.h
1847
1848 * macfns.c (syms_of_macfns): Remove definitions of things now
1849 defined in image.c
1850
1851 2004-03-11 Kim F. Storm <storm@cua.dk>
1852
1853 The following changes consolidates the identical/similar image
1854 support code previously found in xfns.c, w32fns.c, and macfns.c
1855 into a new file image.c.
1856
1857 * makefile.w32-in (OBJ1): Add image.o.
1858 ($(BLD)/image.$(O)): Add dependencies.
1859
1860 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
1861 (image.o): Add dependencies.
1862
1863 * image.c: New file with consolidated image support code.
1864 (COLOR_TABLE_SUPPORT): New define to control whether
1865 color table support is available (X only).
1866 (Bitmap_Record): Common name for x_bitmap_record,
1867 w32_bitmap_record, and mac_bitmap_record.
1868 (XImagePtr): Common name for pointer to XImage or equivalent.
1869 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
1870 to XImagePtr on X+MAC, and to HDC on W32.
1871 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
1872 (NO_PIXMAP): Common name for "None" or equivalent.
1873 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
1874 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
1875 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
1876 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
1877 Define with suitable equivalents on W32 and MAC for code sharing.
1878 (XDrawLine): Define on MAC for code sharing.
1879 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
1880 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
1881 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
1882 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1883 (x_reference_bitmap, x_create_bitmap_from_data)
1884 (x_create_bitmap_from_file, x_destroy_bitmap)
1885 (x_destroy_all_bitmaps, x_create_bitmap_mask)
1886 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
1887 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
1888 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1889 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
1890 (define_image_type, lookup_image_type, valid_image_p)
1891 (image_error, enum image_value_type, struct image_keyword)
1892 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
1893 (make_image, free_image, prepare_image_for_display, image_ascent)
1894 (four_corners_best, image_background, image_background_transparent)
1895 (x_clear_image_1, x_clear_image, x_alloc_image_color)
1896 (make_image_cache, free_image_cache, clear_image_cache)
1897 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
1898 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
1899 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
1900 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
1901 (init_image_func_pointer, image_load_quartz2d)
1902 (struct ct_color, init_color_table, free_color_table)
1903 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
1904 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
1905 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
1906 (x_disable_image, x_build_heuristic_mask)
1907 (XBM support, XPM support, PBM support, PNG support, JPEG support)
1908 (TIFF support, GIF support, Ghostscript support): Consolidate image
1909 code from xfns.c, w32fns.c, and macfns.c.
1910 (syms_of_image): Consolidate image related symbol setup here.
1911 (init_image): Consolidate image related initializations here.
1912
1913 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
1914 and init_image. Remove call to init_xfns.
1915
1916 * macterm.h (struct mac_bitmap_record): Add file member.
1917 Not currently used, but simplifies code sharing.
1918
1919 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
1920 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1921 (x_reference_bitmap, x_create_bitmap_from_data)
1922 (x_create_bitmap_from_file, x_destroy_bitmap)
1923 (x_destroy_all_bitmaps, x_create_bitmap_mask)
1924 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
1925 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
1926 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1927 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
1928 (define_image_type, lookup_image_type, valid_image_p)
1929 (image_error, enum image_value_type, struct image_keyword)
1930 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
1931 (make_image, free_image, prepare_image_for_display, image_ascent)
1932 (four_corners_best, image_background, image_background_transparent)
1933 (x_clear_image_1, x_clear_image, x_alloc_image_color)
1934 (make_image_cache, free_image_cache, clear_image_cache)
1935 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
1936 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
1937 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
1938 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
1939 (init_image_func_pointer, image_load_quartz2d)
1940 (struct ct_color, init_color_table, free_color_table)
1941 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
1942 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
1943 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
1944 (x_disable_image, x_build_heuristic_mask)
1945 (XBM support, XPM support, PBM support, PNG support, JPEG support)
1946 (TIFF support, GIF support, Ghostscript support): Merge with image
1947 code from xfns.c and macfns.c into image.c.
1948 (syms_of_xfns): Move image related symbols to image.c.
1949 (init_external_image_libraries, init_xfns): Remove; initialization
1950 moved to init_image in image.c.
1951
1952 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
1953 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1954 (x_reference_bitmap, x_create_bitmap_from_data)
1955 (x_create_bitmap_from_file, x_destroy_bitmap)
1956 (x_destroy_all_bitmaps, x_create_bitmap_mask)
1957 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
1958 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1959 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
1960 (define_image_type, lookup_image_type, valid_image_p)
1961 (image_error, enum image_value_type, struct image_keyword)
1962 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
1963 (make_image, free_image, prepare_image_for_display, image_ascent)
1964 (four_corners_best, image_background, image_background_transparent)
1965 (x_clear_image_1, x_clear_image, x_alloc_image_color)
1966 (make_image_cache, free_image_cache, clear_image_cache)
1967 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
1968 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
1969 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
1970 (struct ct_color, init_color_table, free_color_table)
1971 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
1972 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
1973 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
1974 (x_disable_image, x_build_heuristic_mask)
1975 (XBM support, XPM support, PBM support, PNG support, JPEG support)
1976 (TIFF support, GIF support, Ghostscript support): Merge with image
1977 code from xfns.c and macfns.c into image.c.
1978 (syms_of_xfns): Move image related symbols to image.c.
1979 (init_external_image_libraries, init_xfns): Remove; initialization
1980 moved to init_image in image.c.
1981
1982 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
1983 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1984 (x_reference_bitmap, x_create_bitmap_from_data)
1985 (x_create_bitmap_from_file, x_destroy_bitmap)
1986 (x_destroy_all_bitmaps, x_create_bitmap_mask)
1987 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
1988 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1989 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
1990 (define_image_type, lookup_image_type, valid_image_p)
1991 (image_error, enum image_value_type, struct image_keyword)
1992 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
1993 (make_image, free_image, prepare_image_for_display, image_ascent)
1994 (four_corners_best, image_background, image_background_transparent)
1995 (x_clear_image_1, x_clear_image, x_alloc_image_color)
1996 (make_image_cache, free_image_cache, clear_image_cache)
1997 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
1998 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
1999 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
2000 (struct ct_color, init_color_table, free_color_table)
2001 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
2002 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
2003 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
2004 (x_disable_image, x_build_heuristic_mask)
2005 (XBM support, XPM support, PBM support, PNG support, JPEG support)
2006 (TIFF support, GIF support, Ghostscript support): Merge with
2007 w32fns.c and macfns.c image code into image.c.
2008 (syms_of_xfns): Move image related symbols to image.c.
2009 (init_xfns): Remove; initialization moved to init_image in image.c.
2010
2011 * lisp.h (syms_of_image, init_image): Add protoypes.
2012 (init_xfns): Remove prototype.
2013
2014 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2015 (x_reference_bitmap, x_create_bitmap_from_data)
2016 (x_create_bitmap_from_file, x_destroy_bitmap)
2017 (x_create_bitmap_mask): Move prototypes from dispextern.h.
2018 (gamma_correct) [MAC_OS]: Add prototype.
2019
2020 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2021 (x_reference_bitmap, x_create_bitmap_from_data)
2022 (x_create_bitmap_from_file, x_destroy_bitmap)
2023 (x_create_bitmap_mask): Move prototypes to dispextern.h.
2024
2025 2004-03-09 Kenichi Handa <handa@etlken2>
2026
2027 * coding.c (decode_coding_emacs_mule): Handle insufficent source
2028 correctly.
2029
2030 2004-03-04 Richard M. Stallman <rms@gnu.org>
2031
2032 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
2033
2034 * window.c (Fdisplay_buffer): Doc fix.
2035
2036 * buffer.c (Fpop_to_buffer): Doc fix.
2037
2038 2004-03-03 Kim F. Storm <storm@cua.dk>
2039
2040 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
2041
2042 2004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
2043
2044 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
2045
2046 2004-03-02 Richard M. Stallman <rms@gnu.org>
2047
2048 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
2049
2050 2004-03-02 Kenichi Handa <handa@m17n.org>
2051
2052 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
2053
2054 2004-03-02 Kim F. Storm <storm@cua.dk>
2055
2056 * window.h (struct window): New member overlay_arrow_bitmap.
2057
2058 * window.c (make_window): Initialize overlay_arrow_bitmap.
2059
2060 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
2061 implement and integrate multiple overlay arrows with redisplay.
2062 (syms_of_xdisp): DEFVAR_LISP and initialize it.
2063 (last_arrow_position, last_arrow_string): Replace by properties.
2064 (Qlast_arrow_position, Qlast_arrow_string)
2065 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
2066 (syms_of_xdisp): Intern and staticpro them.
2067 (overlay_arrow_string_or_property, update_overlay_arrows)
2068 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
2069 (overlay_arrow_at_row): New functions for multiple overlay arrows.
2070 (redisplay_internal): Use them instead of directly accessing
2071 Voverlay_arrow_position etc. for multiple overlay arrows.
2072 (mark_window_display_accurate): Use update_overlay_arrows.
2073 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
2074 (try_window_id): Use overlay_arrows_changed_p.
2075 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
2076 (display_line): Use overlay_arrow_at_row to check multiple
2077 overlay arrows, and get relevant overlay-arrow-string and
2078 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
2079 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
2080 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
2081
2082 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
2083 (update_window_fringes): Remove unused code.
2084
2085 2004-03-01 Jason Rumney <jasonr@gnu.org>
2086
2087 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
2088
2089 2004-03-01 Juanma Barranquero <lektu@terra.es>
2090
2091 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
2092
2093 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
2094
2095 2004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2096
2097 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
2098 how many colors can be displayed.
2099
2100 2004-03-01 Kenichi Handa <handa@m17n.org>
2101
2102 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
2103 correctly.
2104
2105 2004-02-28 Kim F. Storm <storm@cua.dk>
2106
2107 * dispnew.c (update_window): Update header line also if there are
2108 no other changes in window (move code after set_cursor label).
2109
2110 * lisp.h (mark_window_display_accurate): Remove prototype.
2111
2112 * window.c (window_loop, Fforce_window_update): Force mode line
2113 updates by setting prevent_redisplay_optimizations_p and
2114 update_mode_lines.
2115
2116 2004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2117
2118 * xfns.c (x_window): Fix indentation.
2119
2120 * xterm.c (x_calc_absolute_position): Call x_real_positions
2121 to get WM window sizes and use those to calculate position.
2122 (x_set_offset): Remove code commented out.
2123
2124 2004-02-28 Miles Bader <miles@gnu.org>
2125
2126 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
2127
2128 2004-02-28 Kim F. Storm <storm@cua.dk>
2129
2130 * keyboard.c (kbd_buffer_store_event_hold): New function to store
2131 an event into kbd fifo, but with special handling of quit event;
2132 a quit event is saved for later, and further events are discarded
2133 until the saved quit event has been processed.
2134 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
2135 (gen_help_event): Store help event in kbd fifo.
2136 (NREAD_INPUT_EVENTS): Remove.
2137 (read_avail_input): Adapt to new read_socket_hook interface.
2138 Remove allocation and initialization of local input_event buffer,
2139 as read_socket_hook stores events directly in fifo. Allocate and
2140 initialize local hold_quit event to handle postponed quit event
2141 (and store it if set by kbd_buffer_store_event_hold).
2142
2143 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
2144 (gen_help_event): Fix prototype.
2145
2146 * macterm.c (XTread_socket): Remove bufp_r and
2147 numcharsp args. Add hold_quit arg.
2148 Rework to use just one, local, inev input_event. Store inev
2149 directly in fifo using kbd_buffer_store_event_hold.
2150
2151 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
2152 (read_input_waiting): Adapt to new read_socket_hook interface.
2153 Remove allocation and initialization of local input_event buffer,
2154 as read_socket_hook stores events directly in fifo. Allocate and
2155 initialize local hold_quit event to handle postponed quit event
2156 (and store it if set by kbd_buffer_store_event_hold).
2157
2158 * term.c (read_socket_hook): Fix arg list.
2159
2160 * termhooks.h (read_socket_hook): Fix prototype.
2161
2162 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
2163 numcharsp args. Add hold_quit arg.
2164 Rework to use just one, local, inev input_event. Store inev
2165 directly in fifo using kbd_buffer_store_event_hold.
2166
2167 * w32inevt.h (w32_console_mouse_position): Fix prototype.
2168
2169 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
2170 Add hold_quit arg. Rework to use just one, local, inev
2171 input_event. Store inev directly in fifo using
2172 kbd_buffer_store_event_hold. Update count in one place.
2173 Postpone call to gen_help_event until inev is stored; use new
2174 local do_help for this.
2175 Remove local emacs_event in handing of ButtonPress event; just use
2176 inev instead (so no reason to copy it later).
2177
2178 * xsmfns.c (x_session_check_input): Remove numchars arg.
2179
2180 * xterm.c (x_focus_changed, x_detect_focus_change):
2181 Remove numchars arg. Always store event into bufp arg.
2182 Return nothing. Callers changed accordingly.
2183 (glyph_rect): Simplify.
2184 (STORE_KEYSYM_FOR_DEBUG): New macro.
2185 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
2186 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
2187 (current_hold_quit) [USE_GTK]: Add.
2188 (event_handler_gdk): Adapt to new handle_one_xevent.
2189 (handle_one_xevent): Remove bufp_r and numcharsp args.
2190 Add hold_quit arg. Rework to use just one, local, inev
2191 input_event. Store inev directly in fifo using
2192 kbd_buffer_store_event_hold. Update count in one place.
2193 Postpone call to gen_help_event until inev is stored; use new
2194 local do_help for this.
2195 Simplify handling of keysyms (consolidate common code). Fix bug
2196 where count was updated with nchars instead of nbytes.
2197 Remove local emacs_event in handing of ButtonPress event; just use
2198 inev instead (so no reason to copy it later).
2199 Remove `out' label. Rename label `ret' to `done'; add various
2200 `goto done' to clarify code flow in deeply nested blocks.
2201 (x_dispatch_event): Simplify as handle_one_xevent now calls
2202 kbd_buffer_store_event itself.
2203 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
2204 arg. Call handle_one_xevent with new arglist. Store event from
2205 x_session_check_input in fifo.
2206 [USE_GTK]: Setup current_hold_quit.
2207 Decrement handling_signal before unblocking input.
2208 (x_initialize) [USE_GTK]: Initialize current_count.
2209
2210 * xterm.h (x_session_check_input): Fix prototype.
2211
2212 2004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2213
2214 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
2215
2216 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
2217 macgui.h).
2218
2219 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
2220
2221 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
2222 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
2223 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
2224 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
2225 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
2226 (Bitmap): Remove typedef.
2227 (Pixmap): Change int to GWorldPtr.
2228
2229 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
2230
2231 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
2232 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
2233 New #define to extract 16-bit depth color components from unsigned
2234 long representation.
2235 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
2236 colors used for masks.
2237 (struct mac_display_info): Add color_p. Remove n_cbits.
2238
2239 * macfns.c: Include sys/types.h and sys/stat.h.
2240 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
2241 Include QuickTime/QuickTime.h.
2242 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
2243 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
2244 functions defined in macterm.c.
2245 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
2246 (ZPixmap): New #define for compatibility with xfns.c.
2247 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
2248 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
2249 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
2250 New functions.
2251 (four_corners_best, x_create_x_image_and_pixmap)
2252 (x_destroy_x_image, unwind_create_frame, x_disable_image)
2253 (x_edge_detection, init_color_table, colors_in_color_table)
2254 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
2255 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
2256 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
2257 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
2258 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
2259 long mixup.
2260 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
2261 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
2262 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
2263 (x_set_cursor_type, Fxw_color_values, valid_image_p)
2264 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
2265 (x_alloc_image_color, clear_image_cache, lookup_image)
2266 (x_find_image_file, xbm_read_bitmap_file_data)
2267 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
2268 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
2269 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
2270 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
2271 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
2272 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
2273 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
2274 #if 0.
2275 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
2276 #if 0. Free white_relief.gc and black_relief.gc.
2277 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
2278 New functions (from xfns.c).
2279 (Fx_create_frame): Record unwind_create_frame.
2280 (Fxw_display_color_p): Use dpyinfo->color_p.
2281 (Fx_display_grayscale_p, Fx_display_planes): Don't use
2282 dpyinfo->n_cbits.
2283 (Fx_display_color_cells): Use dpyinfo->n_planes;
2284 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
2285 (Qheuristic, cross_disabled_images, emboss_matrix)
2286 (laplace_matrix): New variables (from xfns.c).
2287 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
2288 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
2289 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
2290 (image_background_transparent): New function (from xfns.c).
2291 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
2292 (image_load_quicktime): Add declaration.
2293 [MAC_OSX] (image_load_quartz2d): Likewise.
2294 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
2295 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
2296 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
2297 (xbm_load_image_from_file, x_laplace_read_row)
2298 (x_laplace_write_row, pbm_read_file): Remove functions.
2299 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
2300 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
2301 (colors_in_color_table): Sync with xfns.c (although not used).
2302 (lookup_rgb_color): Don't lookup color table. Just do gamma
2303 correction.
2304 (COLOR_INTENSITY): New #define (from xfns.c).
2305 (x_disable_image): New function (from xfns.c).
2306 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
2307 (x_build_heuristic_mask): Sync with xfns.c.
2308 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
2309 (HAVE_PBM): Remove #ifdef.
2310 (pbm_load): Sync with xfns.c. Set img->width and img->height
2311 before IMAGE_BACKGROUND.
2312 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
2313 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
2314 Don't enclose with #if HAVE_PNG.
2315 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
2316 symbol _CGImageCreateWithPNGDataProvider is defined.
2317 Otherwise use image_load_quicktime.
2318 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
2319 [HAVE_PNG] (png_load): Sync with xfns.c.
2320 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
2321 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
2322 HAVE_JPEG.
2323 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
2324 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
2325 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
2326 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
2327 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
2328 (tiff_image_p, tiff_load): Don't enclose declarations with #if
2329 HAVE_TIFF.
2330 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
2331 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
2332 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
2333 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
2334 New functions (from xfns.c).
2335 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
2336 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
2337 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
2338 Don't enclose with #if HAVE_GIF.
2339 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
2340 animated gif. Otherwise use image_load_quicktime.
2341 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
2342 gif_DrawText to avoid conflict with QuickdrawText.h.
2343 [HAVE_GIF] (gif_load): Sync with xfns.c.
2344 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
2345 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
2346 Ghostscript is not supported yet).
2347 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
2348 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
2349 cross_disabled_images (from xfns.c). Remove #if 0 for supported
2350 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
2351 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
2352 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
2353 HAVE_PNG. Call EnterMovies to support animated gifs.
2354 Call init_image_func_pointer to bind a symbol
2355 _CGImageCreateWithPNGDataProvider if it is defined.
2356
2357 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
2358 (x_draw_bar_cursor): Sync declaration with xterm.c.
2359 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
2360 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
2361 graphics).
2362 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
2363 (mac_draw_line_to_pixmap, XCreatePixmap)
2364 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
2365 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
2366 New functions.
2367 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
2368 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
2369 Cast bits to char *.
2370 (reflect_byte): New function (from w32fns.c).
2371 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
2372 due to byte alignment.
2373 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
2374 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
2375 (XSetForeground): Remove static (now used in macfns.c).
2376 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
2377 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
2378 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
2379 (x_draw_glyph_string_box, x_draw_image_foreground)
2380 (x_draw_image_foreground_1, x_draw_image_glyph_string)
2381 (x_draw_stretch_glyph_string, x_draw_glyph_string)
2382 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
2383 Sync with xterm.c.
2384 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
2385 than the xterm.c version when a strictly horizontal or vertical
2386 line is drawn.
2387 (XTset_terminal_window): Add static.
2388 (x_make_frame_visible): Add UNBLOCK_INPUT.
2389 (x_free_frame_resources): New funcion (from xterm.c).
2390 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
2391 occurs in tool bar area.
2392 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
2393 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
2394 Initialize image cache.
2395 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
2396 Enclose unused functions with #if 0.
2397 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
2398 (decode_mac_font_name): New function to apply code conversions
2399 from a mac font name to an XLFD font name according to its script code.
2400 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
2401 font name to a mac font name according to REGISTRY and ENCODING fields.
2402 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
2403 whose name starts with `.'.
2404 (init_font_name_table): Use decode_mac_font_name. Add both
2405 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
2406 of a font is smJapanese.
2407 (mac_do_list_fonts): New function to list fonts that match a given
2408 pattern.
2409 (x_list_fonts, XLoadQueryFont): Use it.
2410 (XLoadQueryFont): Set rbearing field for each variable width
2411 character to avoid needless redraw.
2412 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
2413
2414 2004-02-26 Kim F. Storm <storm@cua.dk>
2415
2416 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
2417 as read_socket_hook handler on X aborts if buffer is too small
2418 and W32 handler doesn't always check buffer limit.
2419
2420 * xdisp.c (handle_single_display_prop): Handle left-fringe and
2421 right-fringe similar to a display margin image. Specifically,
2422 the characters having the fringe prop are no longer shown, and
2423 we use IT_IMAGE/next_element_from_image with image_id = -1 to
2424 do this. Set fringe bitmap face_id in it->face_id.
2425 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
2426 still realize it->face (i.e. the fringe bitmap face).
2427
2428 2004-02-25 Miles Bader <miles@gnu.org>
2429
2430 * xdisp.c (check_it): Check string/string_pos consistency.
2431 (init_iterator): Initialize string-related fields properly.
2432
2433 2004-02-11 Miles Bader <miles@gnu.org>
2434
2435 * xdisp.c (produce_image_glyph): Force negative descents to zero.
2436
2437 2004-02-10 Miles Bader <miles@gnu.org>
2438
2439 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
2440 BLOCK_INPUT can be nested, so it doesn't make much sense.
2441
2442 2004-02-24 Michael Mauger <mmaug@yahoo.com>
2443
2444 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
2445 (xbm_read_bitmap_data): Use unsigned char for image data.
2446
2447 2004-02-23 Luc Teirlinck <teirllm@auburn.edu>
2448
2449 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
2450
2451 2004-02-22 Jason Rumney <jasonr@gnu.org>
2452
2453 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
2454 correctly over other bitmaps.
2455
2456 2004-02-21 Eli Zaretskii <eliz@gnu.org>
2457
2458 * emacs.c (USAGE1): Split into two halves.
2459 (USAGE2): Second half of the old USAGE1.
2460 (USAGE3): Rename from USAGE2.
2461 (USAGE4): Rename from USAGE3.
2462
2463 2004-02-21 Juri Linkov <juri@jurta.org>
2464
2465 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
2466 Fix --multibyte. Move --help, --version to USAGE2. Add alias
2467 --file. Fix -f, -l. Sort options. Untabify.
2468 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
2469
2470 2004-02-19 Luc Teirlinck <teirllm@auburn.edu>
2471
2472 * category.c (Fdefine_category, Fcategory_docstring)
2473 (Fget_unused_category, Fset_category_table)
2474 (Fcategory_set_mnemonics): Doc fixes.
2475
2476 2004-02-20 Kim F. Storm <storm@cua.dk>
2477
2478 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
2479 The following changes are relative to the 2004-01-21 revision.
2480 (NREAD_INPUT_EVENTS): Define as max number of input events to read
2481 in one call to read_socket_hook. Value is 8.
2482 (read_avail_input): Separate and rework handling of read_socket_hook
2483 and non-read_socket_hook cases. Use smaller input_event buffer
2484 in read_socket_hook case, and repeat if full buffer is read.
2485 Use new local variable 'discard' to skip input after C-g.
2486 In non-read_socket_hook case, just use a single input_event, and
2487 call kbd_buffer_store_event on the fly for each character.
2488
2489 2004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
2490
2491 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
2492 Remove unused `gu' alternative.
2493
2494 2004-02-19 Andreas Schwab <schwab@suse.de>
2495
2496 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
2497 warning.
2498
2499 2004-02-18 Kim F. Storm <storm@cua.dk>
2500
2501 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
2502 Fix last change.
2503
2504 2004-02-17 Kim F. Storm <storm@cua.dk>
2505
2506 * xdisp.c (fast_find_position): Fix return value of new version;
2507 it was inverted compared to the 21.1 version.
2508 (get_window_cursor_type): Don't look at glyph if NULL.
2509 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
2510
2511 * keyboard.c: Rework previous change; it didn't consider that the
2512 buf array was allocated on the stack.
2513 (prev_read): Remove variable.
2514 (read_avail_input_buf): New static event buffer array.
2515 (in_read_avail_input): New static variable to handle re-entrancy.
2516 (read_avail_input): Change buf to pinter to read_avail_input_buf.
2517 Use in_read_avail_input to handle re-entrance; when re-entered,
2518 fully initialize and use tmp_buf array instead of read_avail_input_buf.
2519 Do not initialize read_avail_input_buf in full here; instead assume it
2520 is always cleared on entry. To ensure that, we clear (just) the
2521 entries that were used before we return.
2522 (init_keyboard): Initialize read_avail_input_buf here.
2523
2524 2004-02-16 Jesper Harder <harder@ifa.au.dk> (tiny change)
2525
2526 * cmds.c (Fend_of_line): Doc fix.
2527
2528 2004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
2529
2530 * keyboard.c (prev_read): New static variable.
2531 (read_avail_input): Use it to zero out only those slots in buf[]
2532 that were used last time we were called.
2533
2534 2004-02-16 Eli Zaretskii <eliz@gnu.org>
2535
2536 * Makefile.in (obj): Move fringe.o from here...
2537 (XOBJ, MAC_OBJ): ...to here.
2538
2539 2004-02-16 Stephen Eglen <stephen@gnu.org>
2540
2541 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
2542
2543 2004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
2544
2545 * data.c (Fbyteorder):
2546 * fringe.c (Fdefine_fringe_bitmap):
2547 * xdisp.c (handle_single_display_prop):
2548 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
2549
2550 2004-02-16 Jason Rumney <jasonr@gnu.org>
2551
2552 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
2553
2554 2004-02-15 Steven Tamm <steventamm@mac.com>
2555
2556 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
2557 controlling emulation of a three button mouse with option and
2558 command keys.
2559 (Qreverse, mac_get_enumlated_btn): Handle the emulation
2560 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
2561
2562 2004-02-15 Kim F. Storm <storm@cua.dk>
2563
2564 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
2565
2566 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
2567 Perform byte-swapping.
2568
2569 2004-02-14 Kim F. Storm <storm@cua.dk>
2570
2571 * dispextern.h (struct draw_fringe_bitmap_params): Change member
2572 bits from char to short to facilitate wider bitmaps.
2573 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
2574 member.
2575
2576 * fringe.c (struct fringe_bitmap): Change member bits from char to
2577 short to facilitate 16 bits wide bitmaps. Modify all standard
2578 bitmaps accordingly.
2579 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
2580 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
2581 (draw_fringe_bitmap): Ditto.
2582 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
2583 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
2584 handle up to 16 bits wide bitmaps.
2585 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
2586 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
2587
2588 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
2589 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
2590 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
2591
2592 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
2593 so it is no longer necessary to expand them here.
2594
2595 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
2596
2597 2004-02-12 Kim F. Storm <storm@cua.dk>
2598
2599 * window.c (Fwindow_fringes): Doc fix.
2600
2601 2004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2602
2603 * xselect.c (x_get_foreign_selection): Add new optional parameter
2604 time_stamp.
2605 (Fx_get_selection_internal): Ditto, pass time_stamp to
2606 x_get_foreign_selection.
2607
2608 * data.c (Fbyteorder): New function.
2609
2610 2004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2611
2612 * atimer.c: Move include stdio.h to same place as in other files.
2613
2614 * region-cache.c: Ditto.
2615
2616 * sysdep.c: Ditto.
2617
2618 * xfaces.c: Ditto.
2619
2620 2004-02-09 Sam Steingold <sds@gnu.org>
2621
2622 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
2623
2624 2004-02-09 Kim F. Storm <storm@cua.dk>
2625
2626 * fringe.c: New file. Move original fringe related declarations
2627 and code from dispextern.h and xdisp.c here.
2628 Rework code to support user defined fringe bitmaps, redefining
2629 standard bitmaps, ability to overlay user defined bitmap with
2630 overlay arrow bitmap, and add faces to bitmaps.
2631 (Voverflow_newline_into_fringe): Declare here.
2632 (enum fringe_bitmap_align): New enum.
2633 (..._bits): All bitmaps are now defined without bitswapping; that
2634 is now done in init_fringe_once (if necessary).
2635 (standard_bitmaps): New array with specifications for the
2636 standard fringe bitmaps.
2637 (fringe_faces): New array.
2638 (valid_fringe_bitmap_id_p): New function.
2639 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
2640 (draw_fringe_bitmap): New function which draws fringe bitmap,
2641 possibly overlaying bitmap with cursor in right fringe or the
2642 overlay arrow in the left fringe.
2643 (update_window_fringes): Do not handle overlay arrow here.
2644 Compare and copy fringe bitmap faces.
2645 (init_fringe_bitmap): New function.
2646 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
2647 define and destroy user defined fringe bitmaps.
2648 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
2649 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
2650 (syms_of_fringe): New function. Defsubr new DEFUNs.
2651 DEFVAR_LISP Voverflow_newline_into_fringe.
2652 (init_fringe_once, init_fringe): New functions.
2653 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
2654
2655 * Makefile.in (obj): Add fringe.o.
2656 (fringe.o): New dependencies.
2657
2658 * dispextern.h (FRINGE_ID_BITS): New definition for number of
2659 bits allocated to hold a fringe number. Increase number of bits
2660 from 4 to 8 to allow user defined fringe bitmaps.
2661 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
2662 left_user_fringe_face_id, right_user_fringe_bitmap,
2663 right_user_fringe_face_id.
2664 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
2665 Move to new file fringe.c.
2666 (MAX_FRINGE_BITMAPS): Define here.
2667 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
2668 and overlay_p. Change member which to int.
2669 (struct redisplay_interface): New members define_fringe_bitmap
2670 and destroy_fringe_bitmap.
2671 (valid_fringe_bitmap_id_p): Add prototype.
2672 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
2673
2674 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
2675 arrows.
2676 (update_frame): Do flush_display if force_flush_display_p to
2677 ensure display (specifically fringes) are updated in a timely
2678 manner when resizing the frame by dragging the mouse.
2679 (update_window_line): Update row if overlay arrow changed.
2680 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
2681 or overlay arrow changed.
2682
2683 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
2684 syms_of_fringe, and init_fringe.
2685
2686 * frame.h (struct frame): New member force_flush_display_p.
2687
2688 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
2689 Add prototypes.
2690
2691 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
2692 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
2693 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
2694 Use cursor color for displaying cursor in fringe.
2695 (x_redisplay_interface): Add null handlers for
2696 define_fringe_bitmap and destroy_fringe_bitmap functions.
2697
2698 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
2699 xterm.c to handle overlayed fringe bitmaps and to use cursor color
2700 for displaying cursor in fringe.
2701 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
2702 specific functions to define and destroy fringe bitmaps in fringe_bmp.
2703 (w32_redisplay_interface): Add them to redisplay_interface.
2704 (w32_term_init): Call w32_init_fringe instead of explicitly
2705 defining fringe bitmaps in fringe_bmp array.
2706 (x_delete_display): Call w32_reset_fringes instead of explicitly
2707 destroying fringe bitmaps in fringe_bmp array.
2708
2709 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
2710 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
2711 (continued_bits, continuation_bits, ov_bits, first_line_bits)
2712 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
2713 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
2714 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
2715 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
2716 Move fringe handling vars and code to new file fringe.c.
2717 (handle_display_prop): Handle left-fringe and right-fringe
2718 display properties; store user fringe bitmaps in iterator.
2719 (move_it_in_display_line_to): Handle cursor in fringe at eob.
2720 (clear_garbaged_frames): Set force_flush_display_p if resized.
2721 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
2722 (display_line): Handle cursor in fringe at eob.
2723 (display_line): Set row user fringe bitmaps from iterator.
2724
2725 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
2726 Use cursor color for displaying cursor in fringe.
2727 (x_redisplay_interface): Add null handlers for
2728 define_fringe_bitmap and destroy_fringe_bitmap functions.
2729
2730 2004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2731
2732 * macfns.c (Fx_change_window_property): Make doc string and
2733 parameters same as for X version.
2734
2735 * w32fns.c (Fx_change_window_property): Ditto.
2736
2737 2004-02-07 Kim F. Storm <storm@cua.dk>
2738
2739 * xdisp.c (hscroll_window_tree): Position cursor near to right
2740 margin in hscrolled window when jumping to end of line (rather
2741 than centering cursor).
2742
2743 * process.c (wait_reading_process_input): Don't do adaptive read
2744 buffering if waiting for a specific process.
2745
2746 2004-02-05 Luc Teirlinck <teirllm@auburn.edu>
2747
2748 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
2749 (Fread_minibuffer, Feval_minibuffer)
2750 (Fread_string, Fread_no_blanks_input)
2751 (Fcompleting_read): Doc fixes.
2752 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
2753 completion-regexp-list. Define Qcase_fold_search and staticpro it.
2754 (read_minibuf): Fix initial comment.
2755 (Ftry_completion, Fall_completions, Ftest_completion): Bind
2756 case-fold-search to the value of completion-ignore-case when
2757 checking completion-regexp-list.
2758 (Fdisplay_completion_list): Make it handle arguments that are
2759 symbols. Doc fix.
2760
2761 2004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2762
2763 * xterm.h: Add declaration of free_frame_menubar.
2764
2765 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
2766 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
2767 (Fx_change_window_property): Add declaration of parameters type and
2768 format. Remove unused variable cons.
2769
2770 * xselect.c: Include stdio,h.
2771
2772 2004-02-05 Kenichi Handa <handa@m17n.org>
2773
2774 * fns.c (Fset_char_table_range): Fix previous change.
2775
2776 * buffer.c (Fset_buffer_multibyte): Fix docstring.
2777
2778 2004-02-04 Luc Teirlinck <teirllm@auburn.edu>
2779
2780 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
2781
2782 2004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
2783
2784 * keymap.c (Vmouse_events): Rename from Vmenu_events.
2785 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
2786
2787 2004-02-04 Kenichi Handa <handa@m17n.org>
2788
2789 * fns.c (Fset_char_table_range): Handle charsets ascii,
2790 eight-bit-control, and eight-bit-graphic correctly.
2791
2792 2004-02-03 Jason Rumney <jasonr@gnu.org>
2793
2794 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
2795
2796 * w32fns.c (x_to_w32_font): Likewise.
2797
2798 2004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2799
2800 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
2801 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
2802
2803 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
2804 ClientMessages.
2805
2806 * xselect.c: Include termhooks.h and X11/Xproto.h
2807 (x_check_property_data, x_fill_property_data)
2808 (x_property_data_to_lisp, mouse_position_for_drop)
2809 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
2810 (Fx_send_client_event): Move here from xfns.c.
2811 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
2812
2813 * xfns.c (x-send-client-message): Move to xselect.c
2814 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
2815 OUTER_P.
2816 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
2817 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
2818 if vector_ret_p is true.
2819 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
2820
2821 2004-02-02 Eli Zaretskii <eliz@gnu.org>
2822
2823 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
2824 basename of FILE relative to it, not FILE itself.
2825
2826 2004-02-02 Kenichi Handa <handa@m17n.org>
2827
2828 * coding.c (coding_restore_composition): Check invalid
2829 composition data more rigidly.
2830
2831 2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
2832
2833 * fileio.c (Fread_file_name_internal): Correctly handle the case
2834 where insert-default-directory is nil.
2835 (Fread_file_name): Always return an empty string if the user exits
2836 with an empty minibuffer. Adapt the docstring accordingly.
2837 (syms_of_fileio): Adapt the docstring of insert-default-directory
2838 to the change in Fread_file_name.
2839
2840 2004-01-29 Eli Zaretskii <eliz@gnu.org>
2841
2842 * alloca.c [!alloca]: Fix the prototype for xfree.
2843
2844 2004-01-29 Kenichi Handa <handa@m17n.org>
2845
2846 * fns.c (string_char_to_byte): Optimize for ASCII only string.
2847 (string_byte_to_char): Likewise.
2848
2849 2004-01-28 Peter Runestig <peter@runestig.com>
2850
2851 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
2852
2853 2004-01-27 Steven Tamm <steventamm@mac.com>
2854
2855 * unexmacosx.c (unexec_copy): Do not copy more than was
2856 requested to prevent overwriting during unexec.
2857
2858 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2859
2860 * process.c (sigchld_handler): Add comment about not calling malloc.
2861
2862 * process.h: Add extern to synch_process_termsig.
2863
2864 2004-01-27 Steven Tamm <steventamm@mac.com>
2865
2866 * macterm.c (make_mac_frame, make_mac_terminal_frame):
2867 Move setting of scroll bars from make_mac_frame to
2868 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
2869
2870 2004-01-26 Richard M. Stallman <rms@gnu.org>
2871
2872 * search.c (Freplace_match): Handle nonexistent
2873 back-references properly.
2874
2875 2004-01-03 Richard M. Stallman <rms@gnu.org>
2876
2877 * window.c (decode_any_window): New function.
2878 (Fwindow_height, Fwindow_width, Fwindow_edges)
2879 (Fwindow_pixel_edges, Fwindow_inside_edges)
2880 (Fwindow_inside_pixel_edges): Use decode_any_window.
2881
2882 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2883
2884 * process.h: synch_process_termsig new variable.
2885
2886 * callproc.c: Define synch_process_termsig.
2887 (Fcall_process): Initiate synch_process_termsig to zero and
2888 check if non-zero and get signal name after subprocess has ended.
2889
2890 * process.c (sigchld_handler): Set synch_process_termsig
2891 if terminated by a signal. synch_process_death setting removed.
2892
2893 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
2894
2895 2004-01-26 Andreas Schwab <schwab@suse.de>
2896
2897 * print.c (print_preprocess): Declare size as EMACS_INT to not
2898 lose bits.
2899 (print_object): Likewise.
2900 * alloc.c (Fpurecopy): Likewise.
2901
2902 2004-01-25 Luc Teirlinck <teirllm@auburn.edu>
2903
2904 * window.c (Fwindow_minibuffer_p): Doc fix.
2905
2906 2004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
2907
2908 * editfns.c (Fformat): Make both passes accept the same set of flags.
2909
2910 2004-01-23 Kenichi Handa <handa@m17n.org>
2911
2912 * fns.c (Fmd5): If OBJECT is a buffer different from the current
2913 one, set buffer to OBJECT temporarily.
2914
2915 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
2916
2917 * keyboard.c (kbd_buffer_gcpro): Remove.
2918 (kbd_buffer_store_event, clear_event, Fdiscard_input)
2919 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
2920 Don't initialize and/or maintain the variable any more. It was made
2921 redundant by my commit of 2003-06-15.
2922
2923 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
2924
2925 2004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2926
2927 * lisp.h: Add undef DECL_ALIGN.
2928
2929 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
2930
2931 * process.c (wait_reading_process_input) [SYNC_INPUT]:
2932 Check interrupt_input_pending explicitly.
2933
2934 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
2935
2936 * keyboard.c (handle_async_input): New fun,
2937 extracted from input_available_signal.
2938 (input_available_signal, reinvoke_input_signal): Use it.
2939
2940 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
2941
2942 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
2943
2944 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
2945 manipulation macros for when tags are in the lower bits.
2946 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
2947 (DECL_ALIGN): New macro.
2948 (DEFUN): Use it.
2949
2950 * lisp.h [ENABLE_CHECKING]: Don't force union type.
2951
2952 * s/darwin.h (__attribute__): Remove outdated workaround.
2953
2954 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
2955
2956 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
2957 Don't check range of malloc address.
2958 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
2959
2960 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
2961
2962 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
2963
2964 2004-01-19 Kenichi Handa <handa@m17n.org>
2965
2966 * fontset.c (fontset_font_pattern): Fix previous change.
2967
2968 2004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
2969
2970 * xdisp.c (Voverflow_newline_into_fringe)
2971 (move_it_in_display_line_to, redisplay_internal)
2972 (update_window_fringes, redisplay_window, display_line, window):
2973 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
2974 that it compiles without a window-system.
2975 * dispnew.c (direct_output_for_insert, update_window): Likewise.
2976
2977 2004-01-16 Kim F. Storm <storm@cua.dk>
2978
2979 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
2980
2981 * buffer.c (init_buffer_once): Set buffer_defaults and
2982 buffer_local_flags for indicate_buffer_boundaries.
2983 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
2984 default- variable for it.
2985
2986 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
2987 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
2988 New members exact_window_width_line_p and cursor_in_fringe_p for
2989 overflowing newlines into right fringe.
2990 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
2991 and indicate_bottom_line_p for buffer boundaries and scrolling.
2992 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
2993 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
2994 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
2995 and HOLLOW_SQUARE_BITMAP.
2996 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
2997 Add prototypes.
2998
2999 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
3000 instead of related indicator fields.
3001 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
3002 (direct_output_for_insert): Handle exact width lines like
3003 contined lines. Call update_window_fringes.
3004 (update_window): Call update_window_fringes.
3005 (scrolling_window): Don't skip desired rows with changed bitmaps.
3006 Check if fringe bitmaps changes when assigning scrolled rows.
3007
3008 * xdisp.c (Voverflow_newline_into_fringe): New variable.
3009 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
3010 (move_it_in_display_line_to): Overflow newline into fringe for
3011 rows that are exactly as wide as the window.
3012 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
3013 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
3014 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
3015 (fringe_bitmaps): Add new bitmaps.
3016 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
3017 Select proper bitmap for cursor in fringe when appropriate.
3018 Handle alignment of bitmap to top or bottom of row.
3019 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
3020 done by update_window_fringes.
3021 (update_window_fringes, draw_window_fringes): New functions.
3022 (redisplay_internal): Call update_window_fringes in case only
3023 cursor row is updated.
3024 (redisplay_window): Call update_window_fringes.
3025 Explicitly call draw_window_fringes if redisplay was done using
3026 the current matrix or the overlay arrow is in the window.
3027 (try_window_reusing_current_matrix): Mark scrolled rows for
3028 fringe update (to update buffer-boundaries / scrolling icons).
3029 (find_last_unchanged_at_beg_row): Handle exact width lines line
3030 continued lines.
3031 (display_line): Overflow newline into fringe for rows that are
3032 exactly as wide as the window. Don't append space for newline
3033 in this case.
3034 (notice_overwritten_cursor): Explicitly clear cursor bitmap
3035 in fringe as if it had been overwritten.
3036 (erase_phys_cursor): Erase cursor bitmap in fringe.
3037 (syms_of_xdisp): Mark show-trailing-whitespace and
3038 void-text-area-pointer as user options.
3039 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
3040
3041 * xterm.c (x_update_window_end): Call draw_window_fringes.
3042 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
3043 in row instead of actually drawing fringe bitmaps.
3044 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
3045 (x_draw_window_cursor): Draw cursor in fringe.
3046
3047 * w32term.c (x_update_window_end): Call draw_window_fringes.
3048 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
3049 in row instead of actually drawing fringe bitmaps.
3050 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
3051 (w32_draw_window_cursor): Draw cursor in fringe.
3052
3053 * macterm.c (x_update_window_end): Call draw_window_fringes.
3054 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
3055 in row instead of actually drawing fringe bitmaps.
3056 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
3057 (mac_draw_window_cursor): Draw cursor in fringe.
3058
3059 2004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3060
3061 * xterm.c (handle_one_xevent): Don't handle characters that are part
3062 of an old style (XLookupString) compose sequence.
3063
3064 2004-01-15 Kenichi Handa <handa@m17n.org>
3065
3066 * search.c (Freplace_match): Use make_multibyte_string or
3067 make_unibyte_string according to the buffer multibyteness.
3068
3069 2004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
3070
3071 * alloc.c (struct interval_block, struct string_block)
3072 (struct symbol_block, struct marker_block, live_string_p)
3073 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
3074 Better preserve alignment for objects in blocks.
3075 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
3076
3077 * lread.c (defvar_per_buffer): Remove dead declaration.
3078
3079 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
3080 space size.
3081
3082 2004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3083
3084 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
3085 if a key press should pop down. Only pop down if a key is pressed
3086 outside the menu/dialog.
3087 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
3088 popup_get_selection.
3089 (create_and_show_dialog): Pass 1 for down_on_keypress to
3090 popup_get_selection.
3091
3092 2004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3093
3094 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
3095 BLOCK/UNBLOCK_INPUT.
3096
3097 2004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3098
3099 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
3100 specified.
3101
3102 2004-01-08 Kenichi Handa <handa@m17n.org>
3103
3104 * editfns.c (Fformat): Fix '&' to '&&'.
3105
3106 2004-01-08 Andreas Schwab <schwab@suse.de>
3107
3108 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
3109 size if PSEUDOVECTOR_FLAG is set.
3110
3111 2004-01-07 Kenichi Handa <handa@m17n.org>
3112
3113 * charset.c (Fdeclare_equiv_charset): Fix docstring.
3114
3115 * fontset.c (fontset_ref_via_base): Fix previous change.
3116
3117 2004-01-07 Kim F. Storm <storm@cua.dk>
3118
3119 * process.c (read_process_output): Only activate adaptive
3120 buffering if we read less than 256 bytes at a time.
3121
3122 2004-01-06 Kim F. Storm <storm@cua.dk>
3123
3124 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
3125 object and image object. Return glyph width and height.
3126 (mode_line_string, marginal_area_string): Ditto.
3127
3128 * dispextern.h (buffer_posn_from_coords, mode_line_string)
3129 (marginal_area_string): Fix prototypes.
3130
3131 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
3132 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
3133 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
3134
3135 * keyboard.c (make_lispy_position): Use modified mode_line_string,
3136 buffer_posn_from_coords, and marginal_area_string functions to
3137 include both string object and image object in the lispy position.
3138 Also add actual glyph width and height to position.
3139 (read_key_sequence): Use real buffer position from mouse
3140 event to find keymap property even when click is in marginal area.
3141
3142 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
3143 mode_line_string and marginal_area_string functions to handle
3144 both string object and image object properties.
3145
3146 2004-01-06 Andreas Schwab <schwab@suse.de>
3147
3148 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
3149 character.
3150
3151 2004-01-02 Andreas Schwab <schwab@suse.de>
3152
3153 * macterm.c (emacs_options, x_initialized, same_x_server):
3154 Remove unused (and duplicated) definitions.
3155
3156 2004-01-02 Kim F. Storm <storm@cua.dk>
3157
3158 * process.h (struct Lisp_Process): New members for adaptive read
3159 buffering: adaptive_read_buffering, read_output_delay, and
3160 read_output_skip.
3161
3162 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
3163 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
3164 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
3165 (process_output_delay_count, process_output_skip): New vars.
3166 (Vprocess_adaptive_read_buffering): New variable.
3167 (make_process): Initialize adaptive read buffering members.
3168 (Fstart_process): Set adaptive_read_buffering member.
3169 (deactivate_process): Cleanup adaptive read buffering.
3170 (wait_reading_process_input): Temporarily omit delayed
3171 subprocesses from the set of file descriptors to read from;
3172 adjust the select timeout if we skipped any subprocesses.
3173 (read_process_output): Increase adaptive read buffering delay if
3174 we read less than a full buffer; reduce delay when we read a
3175 full buffer.
3176 (send_process): Simplify using local Lisp_Process var.
3177 Reset adaptive read buffering delay after write.
3178 (init_process): Initialize process_output_delay_count and
3179 process_output_skip.
3180 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
3181
3182 2004-01-01 Jason Rumney <jasonr@gnu.org>
3183
3184 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
3185
3186 2003-12-30 Luc Teirlinck <teirllm@auburn.edu>
3187
3188 * print.c (Ferror_message_string): Add hyperlink in the docstring
3189 to the definition of `signal' in the Elisp manual.
3190 * eval.c (Fsignal): Ditto.
3191
3192 2003-12-29 James Clark <jjc@jclark.com> (tiny change)
3193
3194 * fns.c (internal_equal): Return t for two NaN arguments.
3195
3196 2003-12-29 Richard M. Stallman <rms@gnu.org>
3197
3198 * data.c (store_symval_forwarding): Handle setting
3199 default-fill-column, etc., by changing the value in
3200 buffers that use the default.
3201
3202 * minibuf.c (Fset_minibuffer_window): Doc fix.
3203
3204 * fileio.c (choose_write_coding_system): Ignore auto_saving
3205 if using the visited file for auto saves.
3206 (Fwrite_region): Don't update SAVE_MODIFF
3207 if auto-saving in visited file.
3208
3209 2003-12-29 Kenichi Handa <handa@m17n.org>
3210
3211 * dispextern.h (face_font_available_p): Extern it.
3212
3213 * fontset.c (Voverriding_fontspec_alist): New variable.
3214 (lookup_overriding_fontspec): New function.
3215 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3216 (fontset_font_pattern): Likewise.
3217 (regulalize_fontname): New function.
3218 (Fset_fontset_font): Call regulalize_fontname.
3219 (Fset_overriding_fontspec_internal): New function.
3220 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
3221 Defsubr Sset_overriding_fontspec_internal.
3222
3223 * xfaces.c (face_font_available_p): New function.
3224
3225 2003-12-28 Richard M. Stallman <rms@gnu.org>
3226
3227 * buffer.c (Fother_buffer): Don't crash if BUF is nil
3228 or if its name is nil.
3229
3230 * buffer.c (Fkill_buffer): Don't delete auto-save file
3231 if it's the same as the visited file.
3232
3233 2003-12-28 Luc Teirlinck <teirllm@auburn.edu>
3234
3235 * coding.c (Fcheck_coding_system): Doc fix.
3236
3237 2003-12-28 Kim F. Storm <storm@cua.dk>
3238
3239 * Makefile.in (eval.o): Depend on dispextern.h.
3240
3241 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
3242 image glyph using image's ascent.
3243 (mode_line_string): Return image glyph as object clicked on.
3244 Adjust y0 for image glyph using image's ascent.
3245
3246 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
3247 (struct glyph): New members, ascent and descent. Used to save
3248 this glyph's ascent and descent, instead of having.
3249 (struct glyph): Declare member face_id using FACE_ID_BITS.
3250 (find_hot_spot): Add prototype.
3251
3252 * keyboard.c (Qimage): Remove extern (now in lisp.h).
3253 (QCmap): Declare extern.
3254 (make_lispy_position): When position is inside image hot-spot,
3255 use hot-spot element's id as posn element.
3256
3257 * lisp.h (IMAGEP): New macro to test for image object type.
3258 (Qimage): Declare extern.
3259
3260 * macfns.c (Qimage): Remove extern (now in lisp.h).
3261 (valid_image_p, parse_image_spec): Use IMAGEP macro.
3262
3263 * macterm.c (Qface, Qmouse_face): Remove unused externs.
3264
3265 * w32fns.c (Qimage): Remove extern (now in lisp.h).
3266 (valid_image_p, parse_image_spec): Use IMAGEP macro.
3267
3268 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
3269
3270 * w32term.c (Qface, Qmouse_face): Remove unused externs.
3271
3272 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
3273 pointer types.
3274 (Qrelative_width, Qalign_to): Remove unused variables.
3275 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
3276 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
3277 image maps.
3278 (x_y_to_hpos_vpos): Return glyph relative coordinates through
3279 new dx and dy args.
3280 Remove buffer_only_p arg (always 0). Simplify code accordingly.
3281 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
3282 than row's ascent and height, to get sensible height on tall rows.
3283 (build_desired_tool_bar_string): Remove Qimage extern.
3284 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
3285 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
3286 image glyph is alone on the last line.
3287 (append_glyph, append_composite_glyph, produce_image_glyph)
3288 (append_stretch_glyph): Set glyph's ascent and descent.
3289 (on_hot_spot_p): New function to check if position is inside an
3290 rectangular, circular, or polygon-shaped image hot-spot,
3291 (find_hot_spot): New function to search for image hot-spot.
3292 (Flookup_image_map): New defun to search for image hot-spot.
3293 (define_frame_cursor1): New aux function to determine frame pointer.
3294 (note_mode_line_or_margin_highlight, note_mouse_highlight):
3295 Handle `pointer' text property and :pointer image property to
3296 control frame pointer shape. Detect image hot-spots for pointer
3297 and help_echo properties. Use define_frame_cursor1.
3298 (note_mouse_highlight): Use Vvoid_text_area_pointer.
3299 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
3300 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
3301
3302 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
3303
3304 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
3305 (Qimage): Remove extern (now in lisp.h).
3306 (valid_image_p, parse_image_spec): Use IMAGEP macro.
3307
3308 * xmenu.c (show_help_event): Remove unused code.
3309
3310 * xterm.c (Qface, Qmouse_face): Remove unused externs.
3311 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
3312 row's ascent and descent, to get a sensible height on tall rows.
3313
3314 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
3315
3316 * minibuf.c (Fcompleting_read): Undo previous change.
3317
3318 2003-12-25 Lars Hansen <larsh@math.ku.dk>
3319
3320 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
3321 Arguments GCPRO'ed in call to file name handler.
3322
3323 2003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
3324
3325 * termcap.c (tgetst1): Scan for "%pN"; if all
3326 N are continuous in [1,9], remove all "%pN".
3327
3328 2003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3329
3330 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
3331
3332 * xfaces.c (lface_fully_specified_p): Take into account that
3333 MAC OS always have unspecified stipple.
3334
3335 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
3336
3337 * tparam.c (tparam1): Add handling for `%pN', which
3338 means use param N for the next substitution.
3339
3340 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
3341
3342 * xfaces.c (Fcolor_gray_p): Fix omission bug:
3343 In case `frame' is nil, consult the selected frame.
3344 (Fcolor_supported_p): Likewise.
3345
3346 2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
3347
3348 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
3349 Doc fixes.
3350
3351 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
3352 and an integer. Adapt the introductory comment accordingly.
3353 (Fread_from_minibuffer): Delete code moved into read_minibuf.
3354 Doc fix.
3355 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
3356 read_minibuf.
3357 (Fcompleting_read): Delete code moved into read_minibuf.
3358 (Ftest_completion): Make it handle obarrays and hash tables correctly.
3359
3360 2003-12-03 Kenichi Handa <handa@m17n.org>
3361
3362 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
3363 encoding sequence.
3364
3365 2003-12-01 Kenichi Handa <handa@m17n.org>
3366
3367 * composite.c (syms_of_composite): Don't make the compostion hash
3368 table week.
3369
3370 2003-11-30 Luc Teirlinck <teirllm@auburn.edu>
3371
3372 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
3373 * textprop.c (Fget_char_property_and_overlay): New function.
3374 (syms_of_textprop): Defsubr it.
3375
3376 2003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3377
3378 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
3379 to compile on terminal configuration.
3380
3381 * fileio.c (Fread_file_name): Check use_file_dialog also before
3382 calling Fx_file_dialog.
3383
3384 * fns.c: use_file_dialog: New variable.
3385 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
3386
3387 2003-11-29 Kim F. Storm <storm@cua.dk>
3388
3389 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
3390 (syms_of_msdos): Don't intern and staticpro them.
3391
3392 2003-11-27 Kim F. Storm <storm@cua.dk>
3393
3394 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
3395 coordinates relative to glyph at posn. If glyph is an image,
3396 return that as object at posn. Callers changed.
3397 (mode_line_string, marginal_area_string): Calculate and return
3398 pixel coordinates relative to glyph. Callers changed.
3399
3400 * dispextern.h (buffer_posn_from_coords, mode_line_string)
3401 (marginal_area_string): Fix prototypes.
3402 (window_box_left_offset, window_box_right_offset): Add prototypes.
3403
3404 * frame.h (get_specified_cursor_type, get_window_cursor_type):
3405 Remove prototypes.
3406
3407 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
3408
3409 * keyboard.c (make_lispy_position): Add x and y coordinates
3410 relative to the current glyph as 7th element of position.
3411 If glyph is an image, return it in the object element.
3412 (read_key_sequence): Skip checks for keymap property in cases
3413 where POSN_STRING is not a string (e.g. an image).
3414
3415 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
3416 (Vshow_text_cursor_in_void): New variable.
3417 (glyph_to_pixel_coords): Don't use negative hpos.
3418 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
3419 (append_stretch_glyph): Change ascent arg to be actual value
3420 in pixels rather than ratio to height. Callers changed.
3421 (calc_pixel_width_or_height): New aux function, implementing
3422 pixel based artihmetic for glyph widths and heights.
3423 (produce_stretch_glyph): Use calc_pixel_width_or_height for
3424 :width, :height, :align-to, and :ascent, thus allowing these to
3425 be specified in pixels as well as multiples of characters.
3426 Don't produce stretch glyphs with zero width or height.
3427 (get_specified_cursor_type): Declare static.
3428 (get_window_cursor_type): Declare static. Add glyph arg to be
3429 able to know when cursor is on an image; always substitute
3430 hollow-box cursor for filled-box cursor on images, to avoid
3431 negative images and flicker when blinking the cursor.
3432 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
3433 (note_mode_line_or_margin_highlight): Use non-text cursor rather
3434 than vertical scroll-bar cursor in display margins.
3435 (note_mouse_highlight): Use non-text cursor rather than text
3436 cursor in fringes and over images in the text area.
3437 Use non-text cursor when mouse pointer is outside editable text,
3438 i.e. in the void after end-of-line or end-of-buffer; this was
3439 already done for W32, but is now standard for all systems --
3440 user can toggle show-text-cursor-in-void to get old behaviour.
3441 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
3442 Vdisplay_pixels_per_inch.
3443
3444 2003-11-25 Andreas Schwab <schwab@suse.de>
3445
3446 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
3447 EMACS_INT to not lose bits.
3448 (Ffillarray): Don't set bits beyond the size of a bool vector.
3449
3450 2003-11-25 Kim F. Storm <storm@cua.dk>
3451
3452 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
3453 define this defun on systems that cannot use stderr as lvalue.
3454
3455 2003-11-24 Gerd Moellmann <gerd@gnu.org>
3456
3457 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
3458 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
3459 ld's default is incompatible with unexec.
3460
3461 2003-11-23 Kim F. Storm <storm@cua.dk>
3462
3463 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
3464 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
3465 (Fforce_window_update): New defun.
3466 (syms_of_window): Defsubr it.
3467 (Fset_window_margins, Fset_window_fringes): Doc fix.
3468
3469 * print.c (Fredirect_debugging_output): New defun.
3470 (syms_of_print): Defsubr it.
3471
3472 2003-11-22 Luc Teirlinck <teirllm@auburn.edu>
3473
3474 * fns.c (Fset_char_table_parent): Doc fix.
3475
3476 2003-11-22 Kim F. Storm <storm@cua.dk>
3477
3478 * dispnew.c (buffer_posn_from_coords): Return actual row/column
3479 for glyph clicked on, rather than (unused) pixel positions.
3480 (mode_line_string, marginal_area_string): Change X and Y args to
3481 pointers for returning actual row/column for glyph clicked on.
3482 Simplify and optimize loops.
3483
3484 * dispextern.h (mode_line_string, marginal_area_string):
3485 Update prototypes.
3486
3487 * keyboard.c (make_lispy_position): New function for generating
3488 mouse click positions from frame and pixel coordinates.
3489 Enhanced to return buffer position and actual row/column for
3490 events outside the text area using updated mode_line_string and
3491 marginal_area_string functions.
3492 Return left-fringe and right-fringe clicks as such, rather than
3493 clicks in text area.
3494 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
3495 pixel_to_glyph_coords, as we never use the results.
3496 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
3497 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
3498 Eliminate unused code in WHEEL_EVENT handling.
3499 (make_lispy_movement): Use make_lispy_position.
3500
3501 * window.c (coordinates_in_window): Remove redundant tests.
3502 Fix returned X pixel value for left-margin.
3503
3504 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
3505 mode_line_string and marginal_area_string parameters.
3506
3507 2003-11-22 Lars Hansen <larsh@math.ku.dk>
3508
3509 * w32.c (struct the_group, getgrgid): Add.
3510 * mac.c (struct my_group, getgrgid): Add.
3511
3512 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
3513
3514 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
3515
3516 2003-11-21 Lars Hansen <larsh@math.ku.dk>
3517
3518 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
3519 include in call to file name handler. Optionally translate numeric
3520 UID and GID to strings. Update docstring.
3521 (directory_files_internal): Add parameter ID-FORMAT.
3522 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
3523 include in call to file name handler and call to
3524 directory_files_internal. Update Docstring.
3525 (Fdirectory_files): Add dummy parameter in call to
3526 directory_files_internal.
3527 * lisp.h (Qinteger): Add.
3528 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
3529 (Ffile_attributes): Add parameter.
3530 * data.c (Qinteger): Export.
3531
3532 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
3533
3534 * fns.c (Freverse, Fnreverse): Doc fixes.
3535
3536 2003-11-19 Kim F. Storm <storm@cua.dk>
3537
3538 * xdisp.c (init_iterator): Initialize it->start to position
3539 before reseating (in case start position is invisible).
3540 (init_to_row_start): Set it->start to row-start.
3541 (redisplay_window): Accept optional_new_start if start position
3542 is invisible (in which case IT_CHARPOS overshoots PT).
3543 (display_line): Setup row->start from it->start (rather than
3544 it->current which is wrong if first char on line is invisible).
3545 When done, reseat it->start to it->current (= start of next row).
3546 (expose_area): Fix exposure of text area when first char (e.g. TAB)
3547 is only partially visible.
3548
3549 * dispextern.h (struct it): New member start.
3550
3551 2003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3552
3553 * alloc.c (make_float, Fcons): Clear the markbit at init time.
3554 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
3555 of block_index outside of the macro call.
3556 (Fgarbage_collect): Remove null code.
3557
3558 * m/amdx86-64.h: Don't redefine XPNTR.
3559
3560 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
3561 of VALMASK.
3562
3563 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
3564 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
3565 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
3566
3567 * lisp.h (VALMASK): Only define for non-union type.
3568 (MARKBIT): Remove.
3569 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
3570 (XTYPE): Define unconditionally.
3571 (XSETTYPE): Remove one more remnant.
3572 (EQ): Define differently for the union and non-union cases.
3573 (INTMASK): New bit mask.
3574 (struct Lisp_Marker): Move down to prepare for upcoming patch.
3575 (GC_EQ): Delegate to EQ.
3576
3577 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
3578
3579 2003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3580
3581 * xterm.c (x_window_to_scroll_bar): Move check of display to
3582 where window_id is compared.
3583
3584 2003-11-17 Kim F. Storm <storm@cua.dk>
3585
3586 * dispextern.h (struct it): New member first_vpos.
3587
3588 * xdisp.c (start_display): Set it->first_vpos.
3589 (try_window_id): Use first_vpos to start display in first _text_
3590 line if no reusable lines at start of window with header line.
3591
3592 2003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3593
3594 * w32fns.c (XPutPixel):
3595 * w32bdf.c (w32_init_bdf_font):
3596 * sunfns.c (sel_read):
3597 * process.c (Fmake_network_process):
3598 * frame.c (store_frame_param):
3599 * fontset.c (Fset_fontset_font):
3600 * emacs.c (shut_down_emacs):
3601 * ccl.c (ccl_driver): Remove period at end of error message.
3602
3603 * config.in: Regenerate.
3604
3605 * xfns.c (x_window_to_frame, x_any_window_to_frame)
3606 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
3607 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
3608 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
3609 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
3610
3611 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
3612
3613 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
3614 (XTmouse_position, handle_one_xevent): Pass Display* to
3615 x_window_to_scroll_bar.
3616 (x_window_to_scroll_bar): Take a Display* argument.
3617 Check that display for frame is equal to Display* argument.
3618 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
3619 x_display_info_for_display instead. Use Display in xev instead
3620 of GDK_DISPLAY.
3621 (x_dispatch_event): Call x_display_info_for_display.
3622 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
3623 (x_connection_closed): Call xg_display_close for GTK.
3624 (x_term_init): Call xg_display_open for additional displays.
3625 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
3626 for GTK.
3627
3628 * xmenu.c (single_menu_item, mouse_position_for_popup)
3629 (x_activate_menubar): Formatting adjustments.
3630
3631 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
3632 adjustments.
3633
3634 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
3635 (xg_display_close, xg_create_default_cursor)
3636 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
3637 handling.
3638 (xg_left_ptr_cursor): Remove.
3639 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
3640 cursor here.
3641 (xg_win_to_widget): Take Display* argument, call
3642 gdk_xid_table_lookup_for_display.
3643 (xg_create_frame_widgets, xg_get_file_name, create_menus)
3644 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
3645 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
3646 in FRAME_X_DISPLAY_INFO.
3647 (xg_get_scroll_id_for_window): Take Display* argument.
3648 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
3649 (xg_initialize): Remove xg_left_ptr_cursor.
3650
3651 * gtkutil.h: xg_get_scroll_id_for_window, xg_win_to_widget takes
3652 Display* argument also. Declare xg_display_open,
3653 xg_display_close, xg_create_default_cursor.
3654
3655 2003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3656
3657 * xterm.c (x_detect_focus_change): Do not change focus frame for
3658 Enter/LeaveNotify if the current focus frame has explicit focus.
3659
3660 2003-11-14 Kim F. Storm <storm@cua.dk>
3661
3662 * dispnew.c (update_text_area): Fix redisplay error when hscroll
3663 is active and first glyph is only partially visible.
3664
3665 2003-11-13 Kenichi Handa <handa@m17n.org>
3666
3667 * xdisp.c (select_frame_for_redisplay): New function.
3668 (redisplay_internal): Record also selected_frame for
3669 unwind_redisplay. Call select_frame_for_redisplay before
3670 redrawing each frame.
3671 (unwind_redisplay): Argument changed to a cons.
3672
3673 2003-11-12 Luc Teirlinck <teirllm@auburn.edu>
3674
3675 * fns.c (Fstring_to_multibyte): Doc fix.
3676
3677 2003-11-11 Kenichi Handa <handa@m17n.org>
3678
3679 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
3680
3681 2003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3682
3683 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
3684 program specified positions.
3685
3686 2003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3687
3688 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
3689
3690 2003-11-08 Kenichi Handa <handa@m17n.org>
3691
3692 * Makefile.in (lisp): Add kannada.el.
3693 (shortlisp): Likewise.
3694
3695 2003-11-07 Kenichi Handa <handa@m17n.org>
3696
3697 * coding.c (coding_allocate_composition_data):
3698 Reset coding->composing to COMPOSITION_NO.
3699 (coding_restore_composition): Detect invalid composition data.
3700 Give Fstring and Fvector a Lispy integer, not C int.
3701
3702 2003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
3703
3704 * floatfns.c (Flogb): Don't use VALMASK.
3705
3706 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
3707 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
3708
3709 * lisp.h (XINT): Move the cast to clarify what is going on.
3710 (GCTYPEMASK, XSETTYPE): Remove.
3711 (XGCTYPE): Make it an alias of XTYPE.
3712
3713 2003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3714
3715 * xterm.c (x_term_init): Fix formatting.
3716
3717 2003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3718
3719 * gtkutil.h: Declare xg_have_tear_offs, remove xg_keep_popup
3720 and xg_did_tearoff.
3721
3722 * gtkutil.c: Remove variable xg_did_tearoff.
3723 (xg_have_tear_offs): New function.
3724 (tearoff_remove): Just decrease xg_detached_menus.
3725 (tearoff_activate): Increase xg_detached_menus and call
3726 tearoff_remove when tearoff is removed.
3727 (xg_keep_popup): Remove function.
3728 (create_menus): Give add_tearoff_p as argument to recursive
3729 call to create_menus.
3730 (xg_create_widget): Use variables instead of multiple
3731 strcmp. Tell create_menus to create tear off only for
3732 menu bar menus.
3733 (xg_update_menubar): Change title for a detached menu also.
3734 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
3735 of deep_p.
3736 (xg_initialize): Initialize xg_detached_menus, remove
3737 initialization of xg_did_tearoff.
3738
3739 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
3740 xg_have_tear_offs returns non-zero.
3741 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
3742 call to xg_keep_popup.
3743
3744 2003-11-01 Andrew Choi <akochoi@shaw.ca>
3745
3746 * macterm.c (XTread_socket): Handle menubar selection and grow
3747 window only for mouseDown events.
3748
3749 2003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3750
3751 * xterm.c (x_term_init): For GTK part, increase x_initialized
3752 to check for more than one display. Use error instead of return 0.
3753
3754 2003-10-31 Andrew Choi <akochoi@shaw.ca>
3755
3756 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
3757 (copy_dysymtab): Call it.
3758
3759 2003-10-31 Luc Teirlinck <teirllm@auburn.edu>
3760
3761 * eval.c (Fdefvaralias): Doc fix.
3762
3763 2003-10-26 Luc Teirlinck <teirllm@auburn.edu>
3764
3765 * data.c (Fsetplist): Doc fix.
3766
3767 2003-10-14 Lute Kamstra <lute@gnu.org>
3768
3769 * window.c (Fset_window_fringes): Clarify docstring.
3770
3771 2003-10-14 Kim F. Storm <storm@cua.dk>
3772
3773 * window.c (Fset_window_margins): Simplify arg checking.
3774
3775 2003-10-13 Richard M. Stallman <rms@gnu.org>
3776
3777 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
3778 (print_partial_compiled_pattern): Replace assert with a printout.
3779 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
3780
3781 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
3782
3783 * window.c (Fset_window_margins): Allow only integers as args.
3784 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
3785 Doc fixes.
3786
3787 2003-10-13 Lute Kamstra <lute@gnu.org>
3788
3789 * window.c (Fset_window_fringes): Elaborate docstring.
3790
3791 2003-10-12 Andrew Choi <akochoi@shaw.ca>
3792
3793 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
3794
3795 * s/darwin.h (GC_MARK_STACK): Define.
3796
3797 2003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3798
3799 * window.c (shrink_windows): New function.
3800 (size_window): Call shrink_windows to calculate window sizes when
3801 shrinking frame with more than one window.
3802
3803 2003-10-12 Kim F. Storm <storm@cua.dk>
3804
3805 * xdisp.c (compute_fringe_widths): Doc fix.
3806
3807 2003-10-08 Kenichi Handa <handa@m17n.org>
3808
3809 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
3810
3811 2003-10-07 Kenichi Handa <handa@m17n.org>
3812
3813 * coding.c (Qcoding_system_define_form): New variable.
3814 (syms_of_coding): Intern and staticpro it.
3815 (Fcheck_coding_system): Try to autoload the definition of
3816 CODING-SYSTEM.
3817
3818 2003-10-05 Luc Teirlinck <teirllm@auburn.edu>
3819
3820 * fns.c (Frequire): Doc fix.
3821
3822 2003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3823
3824 * xfns.c (Fx_send_client_event): New function as a base for
3825 manipulating extended window manager hints.
3826 (Fx_send_client_event): Remove unused variable s.
3827
3828 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
3829 that function is removed.
3830
3831 * xterm.c (x_set_offset): Use move_offset_left/top instead of
3832 x/y_pixels_outer_diff.
3833 (x_check_expected_move): Calculate move_offset_left/top.
3834
3835 * xterm.h (struct x_output): New members: move_offset_top/left.
3836
3837 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
3838 call x_set_offset directly.
3839
3840 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
3841
3842 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
3843
3844 * xterm.c (x_delete_display): Free font names and font_encoder
3845 in dpyinfo->font_table.
3846
3847 * xfns.c (Fx_close_connection): Only call XFreeFont here.
3848 Move xfree of font names to x_delete_display.
3849
3850 * xterm.h (struct x_display_info): New member, wm_type.
3851 (struct x_output): New members, expected_top/left and
3852 check_expected_move.
3853
3854 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
3855 is received.
3856 (handle_one_xevent): Rename x_check_expected_move from
3857 x_check_fullscreen_move.
3858 (x_set_offset): Only add WM decoration sizes to modified_top/left
3859 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
3860 (x_check_expected_move): Rename from x_check_fullscreen_move.
3861 Removed fullscreen specific code. Use check_expected_move,
3862 expected_left/top instead. Also, set wm_type.
3863 (x_term_init): Initialize wm_type to unknown.
3864
3865 * frame.c (x_fullscreen_move): Remove addition of WM decoration
3866 sizes to move_x/y.
3867
3868 2003-10-03 Kenichi Handa <handa@m17n.org>
3869
3870 * macterm.c (x_load_font): Clear all members of FONTP before start
3871 filling them.
3872
3873 2003-10-02 Kenichi Handa <handa@m17n.org>
3874
3875 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
3876 before calling find_ccl_program_func. Call find_ccl_program_func
3877 only when fontp->font_encoder is not NULL.
3878
3879 * xterm.c (x_load_font): Clear all members of FONTP before start
3880 filling them.
3881
3882 2003-10-03 John Paul Wallington <jpw@gnu.org>
3883
3884 * keymap.c (map_keymap): Don't abort when binding is a vector.
3885
3886 2003-10-02 Jason Rumney <jasonr@gnu.org>
3887
3888 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
3889 Sync dependencies with Makefile.in.
3890 (alloca.o): Remove.
3891
3892 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
3893 filling them.
3894
3895 * w32bdf.c (w32_load_bdf_font): Likewise.
3896
3897 2003-09-30 Richard M. Stallman <rms@gnu.org>
3898
3899 * term.c (set_tty_color_mode): Calculate current_mode_spec
3900 regardless of value of VAL.
3901
3902 * intervals.c (graft_intervals_into_buffer):
3903 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
3904 Handle over_used when splitting UNDER.
3905
3906 2003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3907
3908 * regex.c (regex_compile): Free the stack when returning from function.
3909
3910 2003-09-28 Kenichi Handa <handa@m17n.org>
3911
3912 * fontset.c (Finternal_char_font): Change return value to
3913 cons (FONT-NAME . GLYPH-CODE).
3914
3915 2003-09-28 Eli Zaretskii <eliz@gnu.org>
3916
3917 * term.c (tty_setup_colors): Treat any negative argument as -1.
3918
3919 2003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
3920
3921 * process.c (send_process): Delete unused temp_buf.
3922
3923 2003-09-26 Dave Love <fx@gnu.org>
3924
3925 * xterm.c (x_bitmap_mask): Declare.
3926
3927 2003-09-25 Dave Love <fx@gnu.org>
3928
3929 * Makefile.in (fns.o): Depend on md5.h.
3930
3931 2003-09-25 Kim F. Storm <storm@cua.dk>
3932
3933 * window.c (set_window_buffer): Fix redisplay problems when
3934 switching between buffers with different display margin widths.
3935
3936 2003-09-23 Kim F. Storm <storm@cua.dk>
3937
3938 * process.c (set_socket_option): Fix :bindtodevice option.
3939 (Fset_network_process_option): Update process contact list when
3940 setting option succeeds.
3941 (Fmake_network_process): Doc fix.
3942
3943 2003-09-23 Dave Love <fx@gnu.org>
3944
3945 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
3946
3947 2003-09-22 Eli Zaretskii <eliz@gnu.org>
3948
3949 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
3950 color mode is an integer number (it could be -1).
3951
3952 2003-09-22 Richard M. Stallman <rms@gnu.org>
3953
3954 * intervals.c (graft_intervals_into_buffer): Correct the main loop
3955 in the case where OVER is longer than UNDER.
3956
3957 2003-09-22 Masatake YAMATO <jet@gyve.org>
3958
3959 * window.c (Fset_window_scroll_bars): Validate the value of
3960 `vertical_type'.
3961
3962 2003-09-21 Kim F. Storm <storm@cua.dk>
3963
3964 * frame.c (Vdefault_frame_scroll_bars): New variable.
3965 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
3966 (syms_of_frame): DEFVAR_LISP it, and initialize according to
3967 window-system default scroll bar position.
3968
3969 * window.c (Fwindow_scroll_bars): Doc fix.
3970
3971 2003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3972
3973 * xterm.c (x_set_offset): Take window manager decorations into account.
3974
3975 2003-09-19 Richard M. Stallman <rms@gnu.org>
3976
3977 * atimer.h: Don't include lisp.h.
3978 (P_): Define it here (as well as elsewhere).
3979
3980 * print.c (Fprin1_to_string): Move the PRINTPREPARE
3981 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
3982
3983 * data.c (Fvariable_binding_locus): New function.
3984 (syms_of_data): defsubr it.
3985 (Flocal_variable_p): Delete duplicate call to indirect_variable.
3986
3987 2003-09-18 Dave Love <fx@gnu.org>
3988
3989 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
3990
3991 * process.c (Fnetwork_interface_info): Fix type error.
3992 (Fnetwork_interface_list): Doc fix.
3993 (read_process_output, read_process_output): Delete unused var.
3994
3995 2003-09-17 Kim F. Storm <storm@cua.dk>
3996
3997 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
3998 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
3999 (Fnetwork_interface_info): Check that ifreq struct has required
4000 fields before accessing them; this requires that those fields are
4001 defined as macros, which may be too restrictive on some platforms,
4002 but it is better than failing on other platforms.
4003 (syms_of_process): Only defsubr above fns when included.
4004
4005 2003-09-17 Dave Love <fx@gnu.org>
4006
4007 * unexalpha.c: Don't include varargs.h.
4008
4009 2003-09-17 Kim F. Storm <storm@cua.dk>
4010
4011 * process.c (Fset_process_sentinel): Add sentinel to childp plist
4012 for network process.
4013 (socket_options): Add `:' prefix to option names. Add optbit field.
4014 (set_socket_option): Remove no_error arg and special handling of s < 0.
4015 Return 1<<optbit for known option, 0 for unknown.
4016 Do not interpret 0 as false for boolean option (only nil).
4017 Pass failed option and value to report_file_error.
4018 (Fset_network_process_options): Replace by Fset_network_process_option.
4019 (Fset_network_process_option): New function to set just one option.
4020 (Fmake_network_process): Allow :coding arg to be a cons.
4021 Allow :server arg to be an integer specifying backlog size.
4022 Remove :options arg, and allow options to be specified directly
4023 as :KEY, VALUE pairs. Parse these options before binding socket.
4024 As before, :reuseaddr t is default for a server process, but this
4025 can now be disabled by specifying :reuseaddr nil.
4026 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
4027 (init_process): Availability of network options is now checked with
4028 simpler syntax (featurep 'make-network-process :OPTION); use loop to
4029 setup features.
4030 (syms_of_process): Fix defsubr's for the replaced functions.
4031
4032 2003-09-16 Dave Love <fx@gnu.org>
4033
4034 * Makefile.in: Depend on coding.h.
4035
4036 2003-09-14 Kim F. Storm <storm@cua.dk>
4037
4038 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
4039 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
4040 (syms_of_process): Defsubr them.
4041
4042 * config.in: Regenerate.
4043
4044 2003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4045
4046 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
4047 * m/news-r6.h (XUNMARK): Remove.
4048 * m/mips.h (XUNMARK): Remove.
4049 * m/mips-siemens.h (XUNMARK): Remove.
4050 * m/iris4d.h (XUNMARK): Remove.
4051 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
4052
4053 2003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4054
4055 * lisp.h (VALBITS): Don't remove 1 for the markbit.
4056 (union Lisp_Object): Use unsigned int for types. Remove markbit.
4057 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
4058 (XTYPE): Use unsigned right-shift.
4059 (XMARKBIT, XMARK, XUNMARK): Remove.
4060
4061 * alloc.c (init_intervals, init_symbol, init_marker):
4062 Don't preallocate anything.
4063 (Fgarbage_collect, mark_object): Ignore the markbit.
4064
4065 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
4066
4067 2003-09-08 Lute Kamstra <lute@gnu.org>
4068
4069 * xdisp.c (pint2hrstr): New function.
4070 (decode_mode_spec): Add `%i' and `%I' specs.
4071 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
4072 for `mode-line-format'.
4073
4074 2003-09-07 Andreas Schwab <schwab@suse.de>
4075
4076 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
4077 avoid warning.
4078
4079 2003-09-07 Eli Zaretskii <eliz@gnu.org>
4080
4081 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
4082
4083 2003-09-03 Kim F. Storm <storm@cua.dk>
4084
4085 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
4086 change (superseded by 2002-08-30 change); the default blink-off
4087 cursor is now again "no cursor".
4088
4089 2003-09-01 Jason Rumney <jasonr@gnu.org>
4090
4091 * makefile.w32-in (alloca.o): Remove.
4092 (coding.o): Depend on intervals.h
4093 (emacs.o, bytecode.o): Depend on window.h
4094
4095 2003-09-01 Dave Love <fx@gnu.org>
4096
4097 * Makefile.in (alloca.o): Remove commands.
4098 (coding.o): Depend on intervals.h composite.h window.h.
4099 (emacs.o): Depend on window.h keyboard.h keymap.h.
4100 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
4101 (bytecode.o): Depend on window.h.
4102
4103 2003-08-31 Jason Rumney <jasonr@gnu.org>
4104
4105 * w32term.c (w32_per_char_metric): Allow cached metrics to be
4106 returned even when font_type is unknown.
4107
4108 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
4109
4110 2003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4111
4112 * xterm.c (x_term_init): Initialize new fields in x_display_info.
4113
4114 * xterm.h (struct x_display_info): Add red/green/blue_bits and
4115 *_offset.
4116
4117 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
4118 calculate pixel value.
4119
4120 2003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
4121
4122 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
4123 Don't tell redisplay display is accurate when it's actually been
4124 paused for pending input.
4125
4126 2003-08-29 Richard M. Stallman <rms@gnu.org>
4127
4128 * dispnew.c (adjust_glyph_matrix): Call window_box
4129 whenever W is nonzero.
4130
4131 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
4132 (Fkill_local_variable, Fmake_variable_frame_local)
4133 (Flocal_variable_p, Flocal_variable_if_set_p):
4134 Use indirect_variable to trace thru variable aliases.
4135
4136 * config.in: Updated.
4137
4138 * callint.c (Fcall_interactively): Save and restore
4139 Vthis_command, Vthis_original_command, real_this_command,
4140 and current_kboard->Vlast_command.
4141
4142 * abbrev.c (Fexpand_abbrev): Insert before deleting.
4143
4144 2003-08-29 Gerd Moellmann <gerd@gnu.org>
4145
4146 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
4147
4148 2003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
4149
4150 * coding.c (decode_coding_iso2022): Initialize local variable c2.
4151 (decode_coding_sjis_big5): Likewise.
4152
4153 2003-08-27 Jason Rumney <jasonr@gnu.org>
4154
4155 * w32.c (sys_pipe): Protect against file descriptor overflow.
4156
4157 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
4158
4159 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
4160
4161 2003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
4162
4163 * xfns.c (Vgtk_version_string): New variable.
4164 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
4165
4166 2003-08-24 Eli Zaretskii <eliz@gnu.org>
4167
4168 * term.c (term_init): Remove `const' from buffer_size's declaration.
4169
4170 * Makefile.in (msdos.o): Depend on intervals.h.
4171
4172 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
4173
4174 2003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4175
4176 * xterm.h (struct x_display_info): New fields: client_leader_window
4177 and Xatom_wm_client_leader.
4178
4179 * xterm.c (x_initialize): Move call to x_session_initialize to ...
4180 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
4181
4182 * xsmfns.c (create_client_leader_window): New function.
4183 (x_session_initialize): Call create_client_leader_window, take
4184 dpyinfo as argument.
4185
4186 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
4187
4188 * Makefile.in (xsmfns.o): Add more depenedencies.
4189
4190 2003-08-21 Dave Love <fx@gnu.org>
4191
4192 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
4193
4194 2003-08-21 Kenichi Handa <handa@m17n.org>
4195
4196 * term.c (term_init): Fix previous change; don't rely on the
4197 length of `buffer' if TERMINFO is defined.
4198
4199 2003-08-20 Dave Love <fx@gnu.org>
4200
4201 * atimer.h: Include lisp.h.
4202
4203 * lisp.h (EMACS_LISP_H): New.
4204 (popup_activated_flag): Don't declare.
4205
4206 * alloca.c: Some merging with gnulib. Change logic and doc
4207 concerning (x)malloc/(x)free -- no longer Emacs-specific.
4208 [DO_BLOCK_INPUT]: Don't include lisp.h.
4209 (xmalloc, xfree): Declare.
4210 (malloc): Don't declare.
4211
4212 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
4213 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
4214 atimer.h, blockinput.h.
4215
4216 * alloc.c (lisp_align_malloc): Change type of `aligned'.
4217
4218 * alloca.s: Removed.
4219
4220 2003-08-19 Gerd Moellmann <gerd@gnu.org>
4221
4222 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
4223 use -lncurses.
4224
4225 * term.c (term_init): Use a buffer of size 4096 for tgetent since
4226 FreeBSD returns something longer than 2044. Abort if the end of
4227 the buffer is overwritten.
4228
4229 2003-08-19 Miles Bader <miles@gnu.org>
4230
4231 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
4232
4233 2003-08-19 Gerd Moellmann <gerd@gnu.org>
4234
4235 * alloc.c (lisp_align_malloc): Check for memory full when
4236 allocating ablocks, which also avoids freeing a pointer into an
4237 ablocks structure.
4238
4239 * puresize.h (BASE_PURESIZE): Increase to 1100000.
4240
4241 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
4242
4243 2003-08-16 Richard M. Stallman <rms@gnu.org>
4244
4245 * editfns.c (Fencode_time): Doc fix.
4246
4247 2003-08-16 David Ponce <david@dponce.com>
4248
4249 * fileio.c (Fwrite_region): Fix conditional expression to issue
4250 the right message.
4251
4252 2003-08-16 Juri Linkov <juri@jurta.org> (tiny change)
4253
4254 * syntax.c (Fforward_word): Argument changed to optional.
4255 Set default value to 1.
4256
4257 2003-08-15 Kenichi Handa <handa@m17n.org>
4258
4259 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
4260 what autoscaled.
4261 (best_matching_font): Once we find a better scalable font, set
4262 non_scalable_has_exact_height_p to 1.
4263 (try_font_list): Call try_alternative_families to try any family
4264 with the given registry.
4265
4266 2003-08-09 Andreas Schwab <schwab@suse.de>
4267
4268 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
4269
4270 * print.c (print_string): Fix printing of multibyte string with
4271 nontrivial printcharfun.
4272
4273 2003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4274
4275 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
4276
4277 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
4278
4279 2003-07-31 Kenichi Handa <handa@m17n.org>
4280
4281 * process.c (read_process_output): Return the actually read bytes
4282 instead of the result of decoding.
4283
4284 2003-07-31 Kenichi Handa <handa@m17n.org>
4285
4286 * xterm.h (struct x_bitmap_record): New member have_mask.
4287
4288 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
4289 to 0.
4290 (x_create_bitmap_from_file): Likewise.
4291 (x_destroy_bitmap): Check have_mask member before freeing a mask.
4292 (x_destroy_all_bitmaps): Likewise.
4293 (x_create_bitmap_mask): Set have_mask member to 1.
4294
4295 2003-07-30 Richard M. Stallman <rms@gnu.org>
4296
4297 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
4298
4299 2003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4300
4301 * gtkutil.c (xg_mark_data): Update calls to mark_object.
4302
4303 2003-07-29 Richard M. Stallman <rms@gnu.org>
4304
4305 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
4306 Conditionalize XIM code on HAVE_XIM.
4307
4308 * fns.c (Fclear_string): New function.
4309 (syms_of_fns): defsubr it.
4310
4311 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
4312
4313 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
4314
4315 2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
4316
4317 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
4318
4319 * buffer.c (delete_all_overlays): New function.
4320 * buffer.h (delete_all_overlays): Declare.
4321 * coding.c (run_pre_post_conversion_on_str):
4322 * print.c (temp_output_buffer_setup):
4323 * fileio.c (Finsert_file_contents):
4324 * minibuf.c (get_minibuffer): Use it.
4325
4326 2003-07-22 Andrew Choi <akochoi@shaw.ca>
4327
4328 * unexmacosx.c (unexec_regions_sort_compare):
4329 (unexec_regions_merge): New functions. Sort and merge unexec
4330 regions before dumping them.
4331
4332 2003-07-22 Dave Love <fx@gnu.org>
4333
4334 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
4335
4336 2003-07-21 Stefan Monnier <monnier@cs.yale.edu>
4337
4338 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
4339 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
4340 MARKBIT as the gcmarkbit for strings.
4341
4342 2003-07-21 Richard M. Stallman <rms@gnu.org>
4343
4344 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
4345
4346 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
4347 (syms_of_fns): Corresponding change.
4348
4349 * alloc.c (syms_of_alloc): Doc fixes.
4350
4351 2003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
4352
4353 * s/netbsd.h: Use -Wl syntax.
4354
4355 2003-07-17 Richard M. Stallman <rms@gnu.org>
4356
4357 * xterm.c (xim_initialize): Redo 6/24 change.
4358
4359 2003-07-15 Stefan Monnier <monnier@cs.yale.edu>
4360
4361 * buffer.c (copy_overlays): Use EMACS_INT for positions.
4362 (Fswitch_to_buffer): Don't signal an error when switching to the same
4363 buffer in a dedicated window.
4364
4365 * alloc.c: Use bitmaps for cons, as was done for floats.
4366 (init_float, init_cons): Let the normal code allocate the first block.
4367 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
4368 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
4369 New macros.
4370 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
4371 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
4372 (live_cons_p): Check the pointer is not past the `conses' array.
4373 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
4374 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
4375 (survives_gc_p): Use CONS_MARKED_P and simplify.
4376 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
4377
4378 2003-07-13 Paul Eggert <eggert@twinsun.com>
4379
4380 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
4381 puts it into BSS instead, at least on Solaris 8 and 9.
4382 This is a valid optimization, and it may occur on other platforms,
4383 so Emacs should not assume that initializing a static variable to
4384 zero puts it into data.
4385 * alloc.c (pure, staticvec):
4386 Initialize these arrays to nonzero, so that they're not
4387 put into BSS by that optimization.
4388
4389 2003-07-13 Stefan Monnier <monnier@cs.yale.edu>
4390
4391 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
4392 (lisp_align_malloc): Use posix_memalign is available.
4393 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
4394 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
4395 for consistency. Update users.
4396
4397 2003-07-13 Richard M. Stallman <rms@gnu.org>
4398
4399 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
4400
4401 2003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
4402
4403 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
4404 and use the Gtk+ function gtk_window_icon_from_file if available.
4405
4406 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
4407 handle mask of bitmaps.
4408 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
4409 mask property.
4410 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
4411
4412 * xterm.h (xg_set_icon): New function.
4413
4414 2003-07-12 Paul Eggert <eggert@twinsun.com>
4415
4416 * unexelf.c (unexec): Consider a section to precede the .bss
4417 section if its addresses overlap that of .bss.
4418
4419 2003-07-12 Richard M. Stallman <rms@gnu.org>
4420
4421 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
4422
4423 * config.in (HAVE_CRTIN): Add #undef.
4424 (INLINE): Really inline only if OPTIMIZE is defined.
4425
4426 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
4427 END_FILES_1.
4428 (START_FILES_1, END_FILES_1): New macros (conditional).
4429 (LD_SWITCH_SYSTEM_TEMACS): Define.
4430
4431 * s/openbsd.h: Don't include bsd4-3.h.
4432 (TERMINFO): Define.
4433 (LIBS_TERMCAP): Define.
4434 (LD_SWITCH_SYSTEM): Define (two definitions).
4435
4436 * xfns.c: Include libpng/png.h instead of png.h.
4437
4438 2003-07-11 Andreas Schwab <schwab@suse.de>
4439
4440 * buffer.c (modify_overlay): Update prototype.
4441 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
4442 Likewise.
4443
4444 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
4445
4446 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
4447 (struct interval): Move to intervals.h.
4448 (struct Lisp_Marker): Use EMACS_INT for position info.
4449 (forward_point): Remove prototype of defunct function.
4450 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
4451 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
4452 (syms_of_textprop, set_text_properties): Remove prototypes that are
4453 already in intervals.h.
4454
4455 * intervals.h (struct interval): Move from lisp.h.
4456 Use EMACS_INT for position and size info.
4457
4458 * coding.c: Include intervals.h for Fset_text_properties.
4459
4460 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
4461 position and length information.
4462
4463 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
4464
4465 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
4466 position and length information.
4467
4468 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
4469
4470 Change overlays_after and overlays_before so the overlays themselves
4471 are linked into lists, rather than using cons cells. After all each
4472 Lisp_Misc already occupies 5 words, so we can add a `next' field to
4473 Lisp_Overlay for free and save up one cons cell per overlay (not
4474 to mention one indirection when traversing the list of overlay).
4475
4476 * lisp.h (struct Lisp_Overlay): New field `next'.
4477
4478 * buffer.h (struct buffer): Change overlays_before and overlays_after
4479 from Lisp lists of overlays to pointers to overlays.
4480
4481 * buffer.c (overlay_strings, recenter_overlay_lists):
4482 Fix typo in eassert in last commit.
4483 (unchain_overlay): New function.
4484 (add_overlay_mod_hooklist): Use AREF.
4485 (copy_overlays, reset_buffer, overlays_at, overlays_in)
4486 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
4487 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
4488 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
4489 (report_overlay_modification, evaporate_overlays, init_buffer_once):
4490 Adjust to new type of overlays_(before|after).
4491
4492 * alloc.c (mark_object): Mark the new `next' field of overlays.
4493 (mark_buffer): Manually mark the overlays_(after|before) fields.
4494
4495 * coding.c (run_pre_post_conversion_on_str):
4496 * editfns.c (overlays_around):
4497 * xdisp.c (load_overlay_strings):
4498 * fileio.c (Finsert_file_contents):
4499 * indent.c (current_column):
4500 * insdel.c (signal_before_change, signal_after_change):
4501 * intervals.c (set_point_both):
4502 * print.c (temp_output_buffer_setup): Use new type for
4503 overlays_(before|after).
4504
4505 2003-07-08 Stefan Monnier <monnier@cs.yale.edu>
4506
4507 * buffer.c (report_overlay_modification): Don't run hooks while
4508 traversing the list of overlays.
4509
4510 * buffer.h (struct buffer): Use an int for overlay_center.
4511 (overlays_at, evaporate_overlays, recenter_overlay_lists)
4512 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
4513
4514 * buffer.c (reset_buffer, recenter_overlay_lists)
4515 (adjust_overlays_for_insert, adjust_overlays_for_delete)
4516 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
4517 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
4518 (overlays_at, evaporate_overlays, recenter_overlay_lists)
4519 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
4520
4521 * xdisp.c (fast_find_position): Remove unused var.
4522
4523 * cmds.c (Qexpand_abbrev): New sym.
4524 (syms_of_cmds): Initialize it.
4525 (internal_self_insert): Use it to call expand-abbrev.
4526
4527 2003-07-09 Kim F. Storm <storm@cua.dk>
4528
4529 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
4530 was configured with --without-xim.
4531 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
4532
4533 2003-07-07 Richard M. Stallman <rms@gnu.org>
4534
4535 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
4536
4537 * alloc.c (Fgarbage_collect): Doc fix.
4538
4539 2003-07-07 Nozomu Ando <nand@mac.com> (tiny change)
4540
4541 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
4542
4543 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
4544
4545 * minibuf.c (read_minibuf): UNGCPRO before returning.
4546 (Ftry_completion, Fall_completions): Doc fix.
4547
4548 * alloc.c (live_float_p): Check that p is not past the `floats' array,
4549 now that `floats' is not the last element of the struct any more.
4550
4551 2003-07-06 Jason Rumney <jasonr@gnu.org>
4552
4553 * w32term.h (ClipboardSequence_Proc): New type.
4554
4555 * w32fns.c (clipboard_sequence_fn): New variable.
4556 (globals_of_w32fns): Initialize it.
4557
4558 * w32select.c (last_clipboard_sequence_number): New variable.
4559 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
4560 number if possible.
4561
4562 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
4563
4564 * m/amdx86-64.h (MARKBIT):
4565 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
4566 MARKBIT and ARRAY_MARK_FLAG any more.
4567
4568 * m/hp800.h (XSETMARKBIT):
4569 * m/sr2k.h (XSETMARKBIT):
4570 * lisp.h (XSETMARKBIT): Remove unused macro.
4571
4572 * lisp.h (mark_object): Change prototype.
4573
4574 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
4575 (last_marked): Change accordingly.
4576 (mark_interval, mark_maybe_object, mark_maybe_pointer)
4577 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
4578 (mark_buffer): Update calls to mark_object.
4579
4580 * bytecode.c (mark_byte_stack):
4581 * fns.c (sweep_weak_table):
4582 * keyboard.c (mark_kboards): Update calls to mark_object.
4583
4584 2003-07-06 Jason Rumney <jasonr@gnu.org>
4585
4586 * alloc.c (struct ablock): Only include padding when there is some.
4587
4588 2003-07-04 Stefan Monnier <monnier@cs.yale.edu>
4589
4590 * alloc.c (ALIGN): Add casts to simplify usage.
4591 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
4592 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
4593 (struct ablock, struct ablocks): New types.
4594 (free_ablock): New global var.
4595 (lisp_align_malloc, lisp_align_free): New functions.
4596 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
4597 (struct float_block): Reorder and add gcmarkbits.
4598 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
4599 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
4600 (init_float, make_float): Use lisp_align_malloc.
4601 (free_float, live_float_p): Don't use `type' any more.
4602 (make_float): Use FLOAT_UNMARK to access to mark bit.
4603 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
4604 Use FLOAT_MARKED_P to access the mark bit.
4605 (pure_alloc): Simplify use of ALIGN.
4606 (mark_object): Use FLOAT_MARK to access the mark bit.
4607 (gc_sweep): Use new macros to access the float's mark bit.
4608 (init_alloc_once): Init free_ablock.
4609
4610 * lisp.h (struct Lisp_Float): Remove unused field `type'.
4611
4612 2003-06-27 Stefan Monnier <monnier@cs.yale.edu>
4613
4614 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
4615 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
4616 (allocate_buffer): Move.
4617 (string_bytes): Don't mask markbit of `size_byte'.
4618 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
4619 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
4620 Use the `size' field of buffers (rather than the `name' field) for
4621 the mark bit, as is done for all other vectorlike objects.
4622 Use the new macros to access the mark bit of vectorlike objects.
4623
4624 2003-06-26 Richard M. Stallman <rms@gnu.org>
4625
4626 * puresize.h (BASE_PURESIZE): Increment base size.
4627
4628 * xdisp.c (fast_find_position): Enable Gerd's new definition.
4629
4630 * xterm.c (xim_initialize): Undo previous change.
4631
4632 2003-06-26 Stefan Monnier <monnier@cs.yale.edu>
4633
4634 * alloc.c (survives_gc_p): Simplify.
4635
4636 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
4637
4638 * window.c (Fset_window_dedicated_p): Simplify.
4639 (display_buffer_1): Don't raise the win from which minibuf was entered.
4640 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
4641 (Fminibuffer_selected_window): Simplify.
4642
4643 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
4644
4645 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
4646 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
4647
4648 * insdel.c (check_markers, adjust_markers_for_delete)
4649 (adjust_markers_for_insert, adjust_markers_for_replace)
4650 (prepare_to_modify_buffer, RESTORE_VALUE):
4651 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
4652 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
4653 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
4654 * alloc.c (Fmake_marker, free_marker, gc_sweep):
4655 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
4656 * editfns.c (save_excursion_restore, transpose_markers):
4657 * window.c (delete_window):
4658 * xdisp.c (message_dolog): Update for new types.
4659
4660 2003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4661
4662 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
4663 (realize_default_face): Use default_face_done_p for the force_p
4664 argument to set_lface_from_font_name. Set default_face_done_p to one.
4665
4666 * frame.c (make_frame): Initialize default_face_done_p.
4667
4668 * frame.h (struct frame): Add default_face_done_p.
4669
4670 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
4671 will be defined.
4672
4673 2003-06-25 Stefan Monnier <monnier@cs.yale.edu>
4674
4675 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
4676 Initialize the new field `gcmarkbit'.
4677 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
4678 (mark_interval_tree): Don't mark the tree separately from the nodes.
4679 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
4680 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
4681 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
4682
4683 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
4684 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
4685 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
4686 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
4687 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
4688
4689 2003-06-24 Dave Love <fx@gnu.org>
4690
4691 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
4692
4693 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
4694 from gnulib.
4695
4696 2003-06-21 Richard M. Stallman <rms@gnu.org>
4697
4698 * fileio.c (Fwrite_region): Alternate messages
4699 for append and partial write.
4700
4701 * keyboard.c (read_key_sequence): When converting upcase fn key to
4702 downcase, update fkey and keytran so `backspace' gets translated.
4703
4704 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
4705
4706 * process.c (wait_reading_process_input): Don't signal SIGIO
4707 in batch mode.
4708
4709 2003-06-17 Kenichi Handa <handa@m17n.org>
4710
4711 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
4712 composite.h.
4713
4714 * xselect.c: Don't include charset.h, coding.h, composite.h.
4715 (Qforeign_selection): New variable.
4716 (syms_of_xselect): Intern and static it.
4717 (selection_data_to_lisp_data): Return a unibyte string made from
4718 data with `foreign-selection' text property.
4719
4720 2003-06-15 Stefan Monnier <monnier@cs.yale.edu>
4721
4722 * termhooks.h (EVENT_INIT): New macro.
4723
4724 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
4725
4726 * alloc.c (mark_kboards): Move to keyboard.c.
4727
4728 * keyboard.c (record_asynch_buffer_change, read_avail_input):
4729 * xterm.c (x_dispatch_event):
4730 * xmenu.c (find_and_call_menu_selection):
4731 * xdisp.c (handle_tool_bar_click):
4732 * w32menu.c (menubar_selection_callback):
4733 * sysdep.c (kbd_input_ast, read_input_waiting):
4734 * msdos.c (dos_rawgetc):
4735 * macterm.c (mac_check_for_quit_char):
4736 * macmenu.c (menubar_selection_callback):
4737 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
4738 data to kbd_buffer_store_event.
4739
4740 2003-06-15 Kim F. Storm <storm@cua.dk>
4741
4742 * xdisp.c (x_fix_overlapping_area): Always use area relative X
4743 to fix redisplay problem with tall characters (such as \e,AC\e(B).
4744
4745 2003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
4746
4747 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
4748
4749 2003-06-12 Kenichi Handa <handa@m17n.org>
4750
4751 * fileio.c (Fwrite_region): Save and restore restriction.
4752
4753 2003-06-12 Dave Love <fx@gnu.org>
4754
4755 * alloca.c (alloca): Declare arg as size_t.
4756
4757 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
4758 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
4759
4760 2003-06-11 Dave Love <fx@gnu.org>
4761
4762 * search.c (shrink_regexp_cache): Use xrealloc.
4763 (syms_of_search): Use xmalloc.
4764
4765 2003-06-10 Kim F. Storm <storm@cua.dk>
4766
4767 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
4768 Adjust phys_cursor.x to be relative to window box, rather than
4769 text area before checking -- to ensure cursor is redrawn when
4770 exposing window.
4771 Note: This also fixes a similar (older) bug if display margins
4772 are present.
4773
4774 2003-06-06 Kenichi Handa <handa@m17n.org>
4775
4776 * coding.c (encoding_buffer_size): If coding->type is
4777 coding_type_ccl, double magnification on CRLF encoding.
4778
4779 2003-06-06 Jason Rumney <jasonr@gnu.org>
4780
4781 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
4782 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
4783
4784 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
4785 Mac too.
4786
4787 2003-06-05 Dave Love <fx@gnu.org>
4788
4789 * strftime.c: Merge changes from gnulib.
4790
4791 * mktime.c (__mktime_internal): Merge changes from gnulib
4792 involving year 69 and dst2.
4793
4794 Changes to merge with gnulib version and be consistent with the
4795 autoconf test:
4796
4797 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
4798 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
4799 [HAVE_LOCALE_H]: Include locale.h.
4800 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
4801
4802 2003-06-05 Kim F. Storm <storm@cua.dk>
4803
4804 * window.c (coordinates_in_window): Convert X and Y to window
4805 relative coordinates inside mode-line and header-line parts.
4806 Convert X and Y to margin area relative coordinates inside left
4807 and right display margin parts.
4808
4809 2003-06-05 Jason Rumney <jasonr@gnu.org>
4810
4811 * w32fns.c (add_system_logical_colors_to_map): New function.
4812 (Fx_open_connection): Use it.
4813
4814 2003-06-04 Stefan Monnier <monnier@cs.yale.edu>
4815
4816 * process.c (allocate_pty): Revert part of the previous patch.
4817 (Faccept_process_output): Simplify.
4818
4819 2003-06-04 Jason Rumney <jasonr@gnu.org>
4820
4821 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
4822
4823 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
4824 (lispy_mouse_wheel_names): Remove.
4825 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
4826 Always define drag_and_drop_syms.
4827
4828 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
4829 WHEEL_EVENT events.
4830
4831 2003-06-03 Stefan Monnier <monnier@cs.yale.edu>
4832
4833 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
4834
4835 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
4836
4837 2003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4838
4839 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
4840 menu item label.
4841
4842 2003-06-03 Richard M. Stallman <rms@gnu.org>
4843
4844 * window.c (Fwindow_edges): Doc fix.
4845 (Fwindow_pixel_edges, Fwindow_inside_edges)
4846 (Fwindow_inside_pixel_edges): New functions.
4847 (syms_of_window): defsubr them.
4848
4849 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
4850 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
4851
4852 2003-06-02 Stefan Monnier <monnier@cs.yale.edu>
4853
4854 * dispnew.c (Fsit_for): Don't lie about the number of args.
4855
4856 2003-06-02 Dave Love <fx@gnu.org>
4857
4858 * callproc.c: Use HAVE_FCNTL_H, not USG5.
4859 (syms_of_callproc) <process-environment>: Doc fix.
4860
4861 * doc.c: Use HAVE_FCNTL_H, not USG5.
4862
4863 * xfaces.c (font_rescale_ratio): Fix for K&R.
4864
4865 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
4866
4867 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
4868
4869 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
4870
4871 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
4872 (xg_create_frame_widgets): Use ENCODE_UTF_8.
4873
4874 * xterm.c (Qutf_8): Move to coding.c
4875
4876 * xmenu.c (ENCODE_MENU_STRING): New.
4877 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
4878 Use it.
4879
4880 * coding.h (ENCODE_UTF_8): New.
4881 (Qutf_8): Declare.
4882
4883 * coding.c (Qutf_8): New.
4884 (syms_of_coding): Intern it.
4885
4886 * fns.c: Doc fixes.
4887
4888 2003-06-02 Kenichi Handa <handa@m17n.org>
4889
4890 * buffer.c (Fset_buffer_multibyte): Fix previous change.
4891
4892 2003-06-01 Stefan Monnier <monnier@cs.yale.edu>
4893
4894 * lread.c (openp): Make sure STR is a string.
4895
4896 2003-06-01 David Ponce <david@dponce.com>
4897
4898 * termhooks.h (enum event_kind): Added new WHEEL_EVENT event.
4899 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
4900
4901 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
4902 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
4903 (discard_mouse_events): Discard WHEEL_EVENT events too.
4904 (lispy_wheel_names, wheel_syms): New.
4905 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
4906 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX
4907 defined.
4908 (make_lispy_event): Add WHEEL_EVENT handler.
4909
4910 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
4911 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
4912 WHEEL_EVENT events.
4913
4914 2003-05-31 John Paul Wallington <jpw@gnu.org>
4915
4916 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
4917 timer are in lisp/emacs-lisp.
4918
4919 2003-05-31 Kenichi Handa <handa@m17n.org>
4920
4921 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
4922 region when a buffer is changed to unibyte.
4923
4924 * charset.h (VALID_LEADING_CODE_P): New macro.
4925 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
4926
4927 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
4928 is nonzero, accept multibyte form of eight-bit-control chars.
4929 (decode_composition_emacs_mule): Likewise.
4930 (decode_coding_emacs_mule): Likewise.
4931 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
4932 multibyte form of eight-bit-control chars.
4933
4934 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
4935 (Finsert_file_contents): If coding-system-for-read is bound to
4936 Qauto_save_coding, use the coding system emacs-mule with special
4937 setting for recovering a file.
4938 (choose_write_coding_system): On auto saving, use the coding
4939 system emacs-mule with special setting for auto saving.
4940 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
4941
4942 2003-05-30 Kenichi Handa <handa@m17n.org>
4943
4944 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
4945 properly before calling ccl_driver.
4946
4947 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
4948
4949 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is
4950 nonzero.
4951 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
4952 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
4953
4954 2003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
4955
4956 * xfaces.c (realize_default_face): Do not abort if lface is
4957 non-existent - reverts change from 2003-05-19.
4958
4959 2003-05-29 Kenichi Handa <handa@m17n.org>
4960
4961 * coding.c (decode_coding_iso2022): Pay attention to the byte
4962 sequence of CTEXT extended segment, and retain those bytes as is.
4963
4964 2003-05-28 Kenichi Handa <handa@m17n.org>
4965
4966 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjusted for the name change
4967 of CODING_REPLACEMENT_CHARACTER.
4968 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
4969 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
4970 check this flag on encoding.
4971 (encode_coding_sjis_big5): Check
4972 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
4973 (Fset_terminal_coding_system_internal): Set
4974 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
4975 instead of setting CODING_FLAG_ISO_SAFE flag in
4976 terminal_coding.flags.
4977
4978 * coding.h (CODING_REPLACEMENT_CHARACTER): Renamed from
4979 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
4980 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
4981
4982 2003-05-28 Richard M. Stallman <rms@gnu.org>
4983
4984 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
4985
4986 * eval.c (unbind_to): Move init of this_binding to separate statement.
4987
4988 2003-05-28 Kim F. Storm <storm@cua.dk>
4989
4990 * xdisp.c (expose_window): Fix error in calculation of
4991 window relative coordinates of area to redisplay.
4992
4993 2003-05-27 Jason Rumney <jasonr@gnu.org>
4994
4995 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
4996
4997 2003-05-27 David Ponce <david@dponce.com>
4998
4999 Handle W32 mouse wheel events as mouse click events, like in X.
5000
5001 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
5002 MOUSE_WHEEL_EVENT anymore.
5003
5004 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
5005 Scrolling down/up the mouse wheel is respectively mapped to mouse
5006 button 4 and 5.
5007 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
5008 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
5009 WM_MOUSEWHEEL events.
5010
5011 2003-05-27 Andreas Schwab <schwab@suse.de>
5012
5013 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
5014
5015 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
5016 partially visible line.
5017
5018 * alloc.c (Fgarbage_collect): Fix last change.
5019
5020 2003-05-26 John Paul Wallington <jpw@gnu.org>
5021
5022 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
5023
5024 2003-05-25 Stefan Monnier <monnier@cs.yale.edu>
5025
5026 * window.c (Fset_window_buffer): Add type of `keep_margins'.
5027 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
5028
5029 * window.h (window_box_text_cols): Declare.
5030
5031 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
5032 (x_draw_vertical_border): Remove unused var `f'.
5033
5034 * xfaces.c (build_scalable_font_name): Remove `unused var
5035 pixel_size' warning.
5036
5037 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
5038
5039 * unexelf.c (unexec): Remove `unused var n' warning.
5040
5041 * strftime.c (my_strftime_localtime_r): Remove `defined but
5042 unused' warning.
5043
5044 * process.c (allocate_pty): Remove `unused var stb' and
5045 `cp might be used uninitialized' warnings.
5046
5047 * dispnew.c (mode_line_string): Remove unused var `f'.
5048
5049 * coding.c (find_safe_codings): Remove unused var `i'.
5050
5051 * bytecode.c (Fbyte_code): Remove `unused val' warning.
5052
5053 * buffer.c (Fkill_buffer): Remove unused var `list'.
5054
5055 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
5056
5057 2003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5058
5059 * frame.c (make_frame): Condition want_fullscreen with
5060 HAVE_WINDOW_SYSTEM.
5061
5062 2003-05-25 Juanma Barranquero <lektu@terra.es>
5063
5064 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
5065 (Fwindow_scroll_bars): Fix typo in docstring.
5066
5067 2003-05-24 Kim F. Storm <storm@cua.dk>
5068
5069 The following changes serve several purposes:
5070
5071 1) Swap the position of fringes and display margins in windows, i.e.
5072 the fringes are now displayed between the margins and the text area
5073 (by default).
5074
5075 2) Allow fringe and scroll bar parameters to be set per-buffer and
5076 per-window (like display margins). Such settings are now stored
5077 in window configurations, preserved when frames are resized, and
5078 copied when windows are split vertically or horizontally.
5079 Several bugs related to display margins have been fixed.
5080
5081 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
5082
5083 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
5084 rather than FRAME_WIDTH (FRAME_FONT (f)).
5085
5086 5) Introduce a consistent naming of variables, members and macros
5087 depending on whether their value is measured in pixels or in
5088 canonical columns/lines. Pixel dimensions are named *_width and
5089 *_height, while canonical columns/lines are named *_cols and
5090 *_lines. Pixel positions are named *_x and *_y, while column/line
5091 positions are named *_col and *_line.
5092
5093 6) Consolidate more of the X, W32, and MAC gui code by moving
5094 common data into struct frame, and generalize it for the non-gui
5095 case by using suitable defaults.
5096
5097 7) Cleanup and consolidate the macros controlling frame and window
5098 layout into frame.h and window.h, and generalize the use of the
5099 various window_box_* functions (enhanced to handle the new fringe
5100 position and the per-window fringe and scroll bar settings).
5101
5102 * frame.h (struct frame): Rename members height to text_lines,
5103 width to text_cols, window_height to total_lines, window_width to
5104 total_cols, new_height to new_text_lines, new_width to
5105 new_text_cols. All uses changed.
5106 (struct frame): New members which consolidate common members of
5107 x_output, w32_output, and mac_output structures: left_pos,
5108 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
5109 win_gravity, size_hint_flags, border_width, internal_border_width,
5110 line_height, fringe_cols, left_fringe_width, right_fringe_width,
5111 want_fullscreen. All uses changed.
5112 (struct frame): New member column_width contaning the canonical
5113 column width, analogue to line_height. All uses changed.
5114 (struct frame): Rename members scroll_bar_pixel_width to
5115 config_scroll_bar_width, and scroll_bar_cols to
5116 config_scroll_bar_cols. All uses changed.
5117 (struct frame): New member scroll_bar_actual_width which
5118 consolidates and renames the vertical_scroll_bar_extra member of
5119 x_output, w32_output, and mac_output structures. All uses changed.
5120 (FRAME_PIXEL_HEIGHT): Renamed from PIXEL_HEIGHT and moved
5121 from x/w32/macterm.h files. All uses changed. Also change code
5122 which referred to f->output_data...->pixel_height.
5123 (FRAME_PIXEL_WIDTH): Renamed from PIXEL_WIDTH and moved
5124 from x/w32/macterm.h files. All uses changed. Also change code
5125 which referred to f->output_data...->pixel_width.
5126 (FRAME_LINES): Renamed from FRAME_HEIGHT. All uses changed.
5127 Also change code which referred to f->height.
5128 (FRAME_COLS): Renamed from FRAME_WIDTH. All uses changed.
5129 Also change code which referred to f->width.
5130 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
5131 to update new_text_lines and new_text_cols members directly.
5132 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Renamed from
5133 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
5134 (FRAME_CONFIG_SCROLL_BAR_COLS): Renamed from
5135 FRAME_SCROLL_BAR_COLS. All uses changed.
5136 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
5137 Renamed from FRAME_LEFT_SCROLL_BAR_WIDTH and
5138 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
5139 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
5140 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
5141 (FRAME_TOTAL_COLS): Renamed from FRAME_WINDOW_WIDTH.
5142 (SET_FRAME_COLS): Renamed from SET_FRAME_WIDTH.
5143 (FRAME_TOTAL_COLS_ARG): Renamed from FRAME_WINDOW_WIDTH_ARG.
5144 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
5145 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
5146 (FRAME_LINE_HEIGHT): Renamed from CANON_Y_UNIT. Unconditionally
5147 return line_height member (it now has proper value also for
5148 non-window frames).
5149 (FRAME_COLUMN_WIDTH): Renamed from CANON_X_UNIT. Unconditionally
5150 return new column_width member (rather than the default font width).
5151 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
5152 (FRAME_RIGHT_FRINGE_WIDTH): Renamed from FRAME_X_... and moved
5153 from x/w32/macterm.h files. Unconditionally return corresponding
5154 member of frame structure (they now have proper values also for
5155 non-window frames).
5156 (FRAME_TOTAL_FRINGE_WIDTH): Renamed from FRAME_FRINGE_WIDTH.
5157 Calculate return value from left and right widths.
5158 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
5159 internal_border_width member (has proper value for non-window frame).
5160 (FRAME_PIXEL_X_FROM_CANON_X): Renamed from PIXEL_X_FROM_CANON_X.
5161 (FRAME_PIXEL_Y_FROM_CANON_Y): Renamed from PIXEL_Y_FROM_CANON_Y.
5162 (FRAME_CANON_X_FROM_PIXEL_X): Renamed from CANON_X_FROM_PIXEL_X.
5163 (FRAME_CANON_Y_FROM_PIXEL_Y): Renamed from CANON_Y_FROM_PIXEL_Y.
5164 (FRAME_LINE_TO_PIXEL_Y): Renamed from CHAR_TO_PIXEL_ROW,
5165 consolidated from xterm.h, macterm.h, and w32term.h.
5166 (FRAME_COL_TO_PIXEL_X): Renamed from CHAR_TO_PIXEL_COL,
5167 consolidated from xterm.h, macterm.h, and w32term.h.
5168 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Renamed from
5169 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
5170 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Renamed from
5171 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
5172 (FRAME_PIXEL_Y_TO_LINE): Renamed from PIXEL_TO_CHAR_ROW
5173 consolidated from x/mac/w32term.h.
5174 (FRAME_PIXEL_X_TO_COL): Renamed from PIXEL_TO_CHAR_COL
5175 consolidated from x/mac/w32term.h.
5176 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Renamed from
5177 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
5178 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Renamed from
5179 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
5180
5181 * window.h (struct window): Rename members left to left_col,
5182 top to top_line, height to total_lines, width to total_cols,
5183 left_margin_width to left_margin_cols, right_margin_width to
5184 right_margin_cols, orig_height to orig_total_lines, orig_top to
5185 orig_top_line. All uses changed.
5186 (struct window): New members left_fringe_width, right_fringe_width,
5187 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
5188 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
5189 New macros primarily used to simplify other macros.
5190 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
5191 referred to XINT (w->width).
5192 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
5193 referred to XINT (w->height).
5194 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
5195 referred to XINT (w->width) * canon_x_unit.
5196 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
5197 referred to XINT (w->height) * canon_y_unit.
5198 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
5199 referred to XINT (w->left).
5200 (WINDOW_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_EDGE. Change
5201 all uses and code that referred to XINT (w->left) + XINT (w->width).
5202 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
5203 referred to XINT (w->top).
5204 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
5205 referred to XINT (w->top) + XINT (w->height).
5206 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
5207 referred to XINT (w->left) * canon_x_unit.
5208 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
5209 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
5210 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
5211 referred to XINT (w->top) * canon_y_unit.
5212 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
5213 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
5214 (WINDOW_LEFTMOST_P): New macro.
5215 (WINDOW_BOX_LEFT_EDGE_COL): Renamed from WINDOW_LEFT_MARGIN.
5216 All uses changed.
5217 (WINDOW_BOX_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_MARGIN.
5218 All uses changed.
5219 (WINDOW_BOX_LEFT_EDGE_X): Renamed from
5220 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
5221 Do not exclude left fringe width.
5222 (WINDOW_BOX_RIGHT_EDGE_X): Renamed from
5223 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
5224 Do not exclude fringe widths.
5225 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
5226 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
5227 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
5228 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
5229 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
5230 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
5231 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
5232 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
5233 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
5234 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
5235 New macros. Change code which referenced corresponding
5236 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
5237 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
5238 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
5239 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
5240 allow per-window scroll-bar settings.
5241 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
5242 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
5243 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
5244 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
5245 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
5246 FRAME_SCROLL_BAR_WIDTH.
5247 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
5248 (WINDOW_SCROLL_BAR_AREA_X): New macros.
5249 (WINDOW_HEADER_LINE_HEIGHT): Renamed from
5250 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
5251 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Renamed from
5252 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
5253 (WINDOW_BOX_TEXT_HEIGHT): Renamed from
5254 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
5255 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
5256 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
5257 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Moved here from dispextern.h.
5258 (WINDOW_LEFT_MARGIN_WIDTH): Renamed from
5259 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
5260 (WINDOW_RIGHT_MARGIN_WIDTH): Renamed from
5261 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
5262 (window_from_coordinates): Update prototype.
5263 (Fset_window_buffer): Update EXFUN.
5264 (set_window_buffer): Update prototype.
5265
5266 * dispextern.h (struct glyph_matrix): Rename members window_left_x
5267 to window_left_col, window_top_y to window_top_line. All uses
5268 changed.
5269 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
5270 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
5271 internal_border_width is now set to 0 for non-window frames.
5272 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
5273 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
5274 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
5275 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
5276 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
5277 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
5278 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
5279 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
5280 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
5281 Move to window.h and renamed [see window.h changes].
5282 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
5283 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
5284 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
5285 Use WINDOW_TOTAL_LINES.
5286 (frame_update_line_height): Remove prototype.
5287
5288 * buffer.h (struct buffer): Rename members measured in columns:
5289 left_margin_width to left_margin_cols, right_margin_width to
5290 right_margin_cols. All uses changed.
5291 New members left_fringe_width, right_fringe_width,
5292 fringes_outside_margins for per-buffer fringe settings.
5293 New members scroll_bar_width and vertical_scroll_bar_type for
5294 per-buffer scroll bar settings.
5295
5296 * buffer.c (init_buffer_once): Set buffer_defaults and
5297 buffer_local_flags for new buffer-local variables
5298 left_fringe_width, right_fringe_width, fringes_outside_margins,
5299 scroll_bar_width, and vertical_scroll_bar_type.
5300 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
5301 default-* variables for them.
5302
5303 * dispnew.c: Make (many) trivial substitutions for renamed and
5304 new macros in dispextern.h, frame.h and window.h.
5305 (mode_line_string): No need to adjust width for mode lines, as it
5306 is already adjusted by the caller.
5307 (marginal_area_string): Handle fringes inside/outside margins.
5308
5309 * frame.c: Make (many) trivial substitutions for renamed and
5310 new macros in dispextern.h, frame.h and window.h.
5311 (make_frame): Initialize left_fringe_width, right_fringe_width,
5312 fringe_cols, scroll_bar_actual_width, border_width,
5313 internal_border_width, column_width, line_height, x_pixels_diff,
5314 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
5315 members with values suitable for a non-window frames.
5316
5317 * gtkutil.c: Make (many) trivial substitutions for renamed and
5318 new macros in dispextern.h, frame.h and window.h.
5319
5320 * indent.c: Make (few) trivial substitutions for renamed and
5321 new macros in dispextern.h, frame.h and window.h.
5322
5323 * keyboard.c: Make (many) trivial substitutions for renamed and
5324 new macros in dispextern.h, frame.h and window.h.
5325 (make_lispy_event): Use window positions returned from
5326 window_from_coordinates when constructing the lisp event for
5327 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
5328 (incorrect) values locally.
5329 (make_lispy_movement): Use window positions returned from
5330 window_from_coordinates when constructing the lisp event, rather
5331 than calculating (incorrect) values locally.
5332
5333 * scroll.c: Make (some) trivial substitutions for renamed and
5334 new macros in dispextern.h, frame.h and window.h.
5335
5336 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
5337 scroll-bars.
5338
5339 * sysdep.c: Make (few) trivial substitutions for renamed and
5340 new macros in dispextern.h, frame.h and window.h.
5341
5342 * term.c: Make (some) trivial substitutions for renamed and
5343 new macros in dispextern.h, frame.h and window.h.
5344
5345 * widget.c: Make (few) trivial substitutions for renamed and
5346 new macros in dispextern.h, frame.h and window.h.
5347
5348 * window.c: Make (many) trivial substitutions for renamed and
5349 new macros in dispextern.h, frame.h and window.h.
5350 (make_window): Initialize new members
5351 left_margin_cols, right_margin_cols, left_fringe_width,
5352 right_fringe_width, fringes_outside_margins, scroll_bar_width,
5353 and vertical_scroll_bar_type.
5354 (coordinates_in_window): Adapted to new fringe/margin positions
5355 and per-window fringes and scroll-bars.
5356 Fix bug related to incorrectly adjusting coordinates by
5357 frame's internal_border_width (the effect normally negible since
5358 the internal_border_width is typically 0 or 1 pixel, but very
5359 noticeable for an internal_border_width of e.g. 25 pixels).
5360 Upon successful return (other than ON_NOTHING), the coordinates
5361 are now always properly converted to window relative for the
5362 given display element.
5363 (window_from_coordinates): Add new parameters wx and wy to
5364 return the window relative x and y position in the returned
5365 window and part. A null arg means, don't return the position.
5366 All callers changed.
5367 (adjust_window_margins): New function which may reduce the width
5368 of the display margins if a window's text area is too small after
5369 resizing or splitting windows.
5370 (size_window): Fix bug that did not account for display margin
5371 widths when checking the minimum width of a window; use
5372 adjust_window_margins.
5373 (set_window_buffer): Call Fset_window_fringes and
5374 Fset_window_scroll_bars to setup per-window elements.
5375 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
5376 existing display margin, fringe widths, and scroll bar settings
5377 (e.g. after splitting a window or resizing the frame).
5378 All callers changed.
5379 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
5380 (Fsplit_window): Duplicate original window's display margin,
5381 fringe, and scroll-bar settings; then call Fset_window_buffer with
5382 KEEP_MARGINS non-nil. This fixes a bug which caused a split
5383 window to only preserve the display margins in one of the windows.
5384 When splitting horizontally, call adjust_window_margins on both
5385 windows to ensure that the text area of the new windows is non too
5386 narrow. This fixes a bug which could cause Emacs to trap if the
5387 width of the split window was less than the width of the display
5388 margins.
5389 (window_box_text_cols): Renamed from window_internal_width.
5390 All uses changed. Adapt to per-window fringes and scroll bars.
5391 Fix bug that caused vertical separator to be subtracted also on
5392 window frames. Fix another bug that did not reduce the returned
5393 value by the columns used for display margins.
5394 (window_scroll_line_based): Fix bug related to scrolling too much
5395 when display margins are present (implicitly fixed by the fix to
5396 window_box_text_cols).
5397 (scroll_left, scroll_right): Fix bug related to scrolling too far
5398 by default when display margins are present (implicitly fixed by
5399 the fix to window_box_text_cols).
5400 (struct saved_window): Rename members left to left_col, top to
5401 top_line, width to total_cols, height to total_lines, orig_top to
5402 orig_top_line, orig_height to orig_total_lines. All uses changed.
5403 New members left_margin_cols, right_margin_cols,
5404 left_fringe_width, right_fringe_width, fringes_outside_margins,
5405 scroll_bar_width, and vertical_scroll_bar_type for saving
5406 per-window display elements.
5407 (Fset_window_configuration): Restore display margins, fringes,
5408 and scroll bar settings. This fixes a bug which caused display
5409 margins to be discarded when saving and restoring a window
5410 configuration.
5411 (save_window_save): Save display margins, fringes, and scroll bar
5412 settings. This fixes a bug which caused display margins to be
5413 discarded when saving and restoring a window configuration.
5414 (Fset_window_margins): Do nothing if display margins are not
5415 really changed. Otherwise, call adjust_window_margins to ensure
5416 the text area doesn't get too narrow. This fixes a bug which
5417 could cause Emacs to trap if setting display margins wider than
5418 the width of the window.
5419 (Fset_window_fringes): New defun to allow user to specifically set
5420 this window's fringe widths and position vs. display margins.
5421 (Fwindow_fringes): New defun to return window's actual fringe
5422 settings.
5423 (Fset_window_scroll_bars): New defun to allow user to specifically
5424 set this window's scroll bar width and position.
5425 (Fwindow_scroll_bars): New defun to return window's actual scroll
5426 bar settings.
5427 (compare_window_configurations): Also compare display margins,
5428 fringes, and scroll bar settings.
5429 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
5430
5431 * xdisp.c: Make (many) trivial substitutions for renamed and
5432 new macros in dispextern.h, frame.h and window.h.
5433 (window_box_width): Adapt to per-window fringes and scroll bars,
5434 and new fringe vs. display margin position. Note that returned
5435 value is no longer guaranteed to be a whole multiple of the frame
5436 column width, since per-window fringes may now be any width.
5437 (window_box_left_offset): New function like window_box_left, but
5438 value is relative to left border of window (rather than frame).
5439 (window_box_right_offset): New function like window_box_right,
5440 but value is relative to left border of window.
5441 (window_box_left): Adapt to per-window fringes and scroll bars,
5442 and new fringe vs. display margin position. Simplify by using
5443 WINDOW_LEFT_EDGE_X and window_box_left_offset.
5444 (window_box): Allow null args for unnecessary return values;
5445 change/simplify relevant callers.
5446 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
5447 and new fringe vs. display margin position.
5448 Use window_box_left_offset and window_box_right_offset
5449 (get_glyph_string_clip_rect): Adapt to per-window fringes and
5450 scroll bars, and new fringe vs. display margin position.
5451 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
5452 (draw_fringe_bitmap): Rework to handle per-window fringes and new
5453 fringe vs. display margin position.
5454 (hscroll_window_tree): Use window_box_width instead of window_box.
5455 (redisplay_window): Adapt to per-window scroll bars.
5456 (draw_glyphs): Rework to handle per-window fringes and scroll
5457 bars, and new fringe vs. display margin position.
5458 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
5459 (x_clear_end_of_line): Adapt to per-window fringes and scroll
5460 bars, and new fringe vs. display margin position. Fix bug which
5461 increased total width of full_width rows by width of scroll bars
5462 although window's total width already includes that.
5463 (x_fix_overlapping_area): Simplify using window_box_left_offset.
5464 (expose_area): Simplify using window_box_left_offset.
5465 (x_draw_vertical_border): Handle per-window scroll bar settings,
5466 mixing windows with left, right and no scroll bars.
5467
5468 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
5469 where it's used in x_list_fonts (for clarity).
5470 (frame_update_line_height): Remove unused function; functionality
5471 is now done directly when setting the default font in x_set_font.
5472
5473 * xfns.c: Make (many) trivial substitutions for renamed and
5474 new macros in dispextern.h, frame.h and window.h.
5475
5476 * xmenu.c: Make (some) trivial substitutions for renamed and
5477 new macros in dispextern.h, frame.h and window.h.
5478
5479 * xterm.h (struct x_output): Move members left_pos, top_pos,
5480 border_width, pixel_height, pixel_width, line_height,
5481 internal_border_width, vertical_scroll_bar_extra,
5482 left_fringe_width, right_fringe_width, fringe_cols,
5483 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
5484 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
5485 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
5486 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
5487 (PIXEL_WIDTH, PIXEL_HEIGHT)
5488 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
5489 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
5490 frame.h and renamed [see frame.h changes].
5491 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
5492 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
5493 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
5494 and renamed [see frame.h changes].
5495
5496 * xterm.c: Make (several) trivial substitutions for renamed and
5497 new macros in dispextern.h, frame.h and window.h.
5498 (x_draw_glyph_string_box): Adapt to per-window fringes and
5499 scroll-bars.
5500 (scroll_run): Adapt to new fringe position.
5501 (glyph_rect): Use window coordinates returned from
5502 window_from_coordinates rather than frame_to_window_pixel_xy.
5503 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
5504 scroll-bars.
5505 (handle_one_xevent): Simplify a USE_GTK conditional.
5506 (x_clip_to_row): Remove superfluous whole_line_p arg and code
5507 (fringes are now inside margins, i.e. always in the clipping area).
5508 All callers changed.
5509 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
5510 directly, then call compute_fringe_widths. Don't call
5511 frame_update_line_height.
5512
5513 * w32term.h (struct w32_output): Move members left_pos, top_pos,
5514 border_width, pixel_height, pixel_width, line_height,
5515 internal_border_width, vertical_scroll_bar_extra,
5516 left_fringe_width, right_fringe_width, fringe_cols,
5517 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
5518 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
5519 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
5520 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
5521 (PIXEL_WIDTH, PIXEL_HEIGHT)
5522 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
5523 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
5524 frame.h and renamed [see frame.h changes].
5525 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
5526 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
5527 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
5528 and renamed [see frame.h changes].
5529
5530 * w32term.c: Make (several) trivial substitutions for renamed and
5531 new macros in dispextern.h, frame.h and window.h.
5532 (x_draw_glyph_string_box): Adapt to per-window fringes and
5533 scroll-bars.
5534 (glyph_rect): Use window coordinates returned from
5535 window_from_coordinates rather than frame_to_window_pixel_xy.
5536 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
5537 scroll-bars.
5538 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
5539 (fringes are now inside margins, i.e. always in the clipping area).
5540 All callers changed.
5541 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
5542 directly, then call compute_fringe_widths. Don't call
5543 frame_update_line_height.
5544
5545 * w32console.c: Make (few) trivial substitutions for renamed and
5546 new macros in dispextern.h, frame.h and window.h.
5547
5548 * w32fns.c: Make (many) trivial substitutions for renamed and
5549 new macros in dispextern.h, frame.h and window.h.
5550
5551 * w32menu.c: Make (few) trivial substitutions for renamed and
5552 new macros in dispextern.h, frame.h and window.h.
5553
5554 * macterm.h (struct mac_output): Move members left_pos, top_pos,
5555 border_width, pixel_height, pixel_width, line_height,
5556 internal_border_width, vertical_scroll_bar_extra,
5557 left_fringe_width, right_fringe_width, fringe_cols,
5558 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
5559 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
5560 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
5561 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
5562 (PIXEL_WIDTH, PIXEL_HEIGHT)
5563 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
5564 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
5565 frame.h and renamed [see frame.h changes].
5566 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
5567 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
5568 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
5569 and renamed [see frame.h changes].
5570
5571 * macterm.c: Make (several) trivial substitutions for renamed and
5572 new macros in dispextern.h, frame.h and window.h.
5573 (x_draw_glyph_string_box): Adapt to per-window fringes and
5574 scroll-bars.
5575 (glyph_rect): Use window coordinates returned from
5576 window_from_coordinates rather than frame_to_window_pixel_xy.
5577 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
5578 scroll-bars.
5579 (x_clip_to_row): Remove superfluous whole_line_p arg and code
5580 (fringes are now inside margins, i.e. always in the clipping area).
5581 All callers changed.
5582 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
5583 directly, then call compute_fringe_widths. Don't call
5584 frame_update_line_height.
5585
5586 * macfns.c: Make (several) trivial substitutions for renamed and
5587 new macros in dispextern.h, frame.h and window.h.
5588 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
5589
5590 * macmenu.c: Make (few) trivial substitutions for renamed and
5591 new macros in dispextern.h, frame.h and window.h.
5592
5593 * msdos.h (struct x_output): Remove members left_pos, top_pos,
5594 and line_height, and use corresponding new members in struct
5595 frame. All uses changed.
5596 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
5597 superseeded by corresponding macros in frame.h.
5598
5599 * msdos.c: Make (several) trivial substitutions for renamed and
5600 new macros in dispextern.h, frame.h and window.h.
5601 (IT_note_mouse_highlight): Use updated window coordinates returned
5602 by window_from_coordinates, rather than adjusting them locally.
5603 (internal_terminal_init): No need to initialize line_height here;
5604 it now defaults to 1.
5605
5606 2003-05-24 Stefan Monnier <monnier@cs.yale.edu>
5607
5608 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
5609 dropping `down' events.
5610
5611 2003-05-24 Andreas Schwab <schwab@suse.de>
5612
5613 * coding.c (find_safe_codings): Fix last change.
5614
5615 2003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
5616
5617 * xfns.c (x_window): Fix typo from 2003-05-21 change.
5618
5619 2003-05-23 Stefan Monnier <monnier@cs.yale.edu>
5620
5621 * xdisp.c (display_mode_element): Increase max depth.
5622 Simplify the error handling code. Use a different error string
5623 for the case where we hit the depth limit.
5624
5625 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
5626
5627 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
5628
5629 2003-05-21 Stefan Monnier <monnier@cs.yale.edu>
5630
5631 * intervals.c (get_local_map): Don't get char-property of previous
5632 point any more: get_pos_property already does it and better.
5633
5634 2003-05-21 Dave Love <fx@gnu.org>
5635
5636 [Merged from unicode branch.]
5637
5638 * xfns.c (x_window, x_window): Use use_xim.
5639
5640 * xterm.c (use_xim): Initialize.
5641 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
5642 (x_term_init): Maybe set use_xim.
5643
5644 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
5645
5646 2003-05-21 Jason Rumney <jasonr@gnu.org>
5647
5648 * unexw32.c (_start): Remove _fmode initialization.
5649
5650 * emacs.c (main) [WINDOWSNT]: Move it here.
5651
5652 2003-05-20 Dave Love <fx@gnu.org>
5653
5654 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
5655
5656 2003-05-19 Richard M. Stallman <rms@gnu.org>
5657
5658 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
5659 as value for QCfont attribute.
5660 (realize_default_face): lface should already exist; crash if not.
5661 Specify 0 for FORCE_P when calling set_lface_from_font_name.
5662
5663 * frame.c (Fignore_event): Doc fix.
5664
5665 2003-05-19 Kenichi Handa <handa@m17n.org>
5666
5667 * coding.c (decode_coding_string): Handle post-read-conversion
5668 even if the coding doesn't require decoding.
5669
5670 2003-05-18 Richard M. Stallman <rms@gnu.org>
5671
5672 * callproc.c (Fcall_process_region): Doc fix.
5673
5674 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
5675
5676 * lread.c (Fload): Print a message if package is obsolete.
5677
5678 * window.c (Fselect_window): Add optional `norecord' arg.
5679 (select_window_1): Fold into Fselect_window.
5680 (select_window_norecord): New function.
5681 (temp_output_buffer_show): Use it. Preserve current buffer.
5682
5683 * window.h (Fselect_window): Update declaration.
5684
5685 * window.c (delete_window, Fother_window, Fset_window_configuration):
5686 * minibuf.c (read_minibuf):
5687 * macterm.c (x_new_focus_frame):
5688 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
5689 * callint.c (Fcall_interactively):
5690 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
5691
5692 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
5693
5694 2003-05-17 David Kastrup <dak@gnu.org>
5695
5696 * process.c (read_process_output): Back out change from 2003-03-09.
5697
5698 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
5699
5700 * editfns.c (get_pos_property): Don't assume that `object' = nil.
5701
5702 * textprop.c (text_property_stickiness): New arg `buffer'.
5703
5704 * intervals.h (text_property_stickiness): New arg `buffer'.
5705 (get_pos_property): Declare.
5706
5707 * intervals.c (get_local_map): Use get_pos_property, to obey
5708 stickiness and empty overlays.
5709 (create_root_interval, graft_intervals_into_buffer): Use BEG.
5710 (merge_properties, intervals_equal, merge_properties_sticky):
5711 Use XCAR, XCDR.
5712 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
5713
5714 2003-05-17 Richard M. Stallman <rms@gnu.org>
5715
5716 * minibuf.c (read_minibuf): If buffer is empty, record the default
5717 in the history.
5718 (Fminibuffer_complete_word): When deleting the overlap, take account
5719 of its real position.
5720
5721 * fns.c (map_char_table): Fix previous change.
5722
5723 * syntax.c (find_defun_start):
5724 When open_paren_in_column_0_is_defun_start,
5725 return beginning of buffer.
5726
5727 * lisp.h (map_char_table): Declare added arg.
5728
5729 * fns.c (map_char_table): New arg TABLE gets the master table.
5730 All calls changed.
5731 Process default and inheritance, resorting to Faref if necessary.
5732
5733 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
5734 (Faccessible_keymaps): Pass new arg to map_char_table.
5735
5736 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
5737
5738 * casetab.c (set_case_table): Pass new arg to map_char_table.
5739
5740 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
5741
5742 * lisp.h (specbinding_func): New typedef.
5743 (struct specbinding): Use specbinding_func, to put the `volatile'
5744 in the right place.
5745
5746 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
5747 to avoid GCC warning.
5748
5749 2003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org> (tiny change)
5750
5751 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
5752
5753 2003-05-15 Stefan Monnier <monnier@cs.yale.edu>
5754
5755 * keyboard.c (apply_modifiers): Don't fill the other cache.
5756
5757 2003-05-14 Stefan Monnier <monnier@cs.yale.edu>
5758
5759 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
5760
5761 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
5762 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
5763 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
5764 (Fset_window_configuration, Fcurrent_window_configuration)
5765 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
5766 (Fpos_visible_in_window_p, mark_window_cursors_off)
5767 (window_internal_height, window_internal_width, Frecenter)
5768 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
5769 (replace_buffer_in_all_windows, init_window_once, init_window)
5770 (syms_of_window, keys_of_window): Move from lisp.h.
5771 * lisp.h: Move window.c declarations to window.h.
5772
5773 * bytecode.c: Include window.h.
5774 * emacs.c: Include window.h.
5775
5776 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
5777 (keyremap): Add `parent' field.
5778 (keyremap_step): Use it. Remove `parent' argument.
5779 (read_key_sequence): Setup and use the new `parent' field.
5780
5781 2003-05-11 Stefan Monnier <monnier@cs.yale.edu>
5782
5783 * keyboard.c (adjust_point_for_property): Ensure termination.
5784
5785 2003-05-10 Stefan Monnier <monnier@cs.yale.edu>
5786
5787 * keyboard.c (follow_key): Remove dead variable `did_meta'.
5788 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
5789 duplicated handling of function-key-map and key-translation-map
5790 in read_key_sequence.
5791 (read_key_sequence): Use them.
5792
5793 * keyboard.c (adjust_point_for_property): Try harder to move point
5794 to the non-sticky end of an invisible property.
5795
5796 * xdisp.c (single_display_prop_intangible_p): Make `space' display
5797 property intangible as well.
5798
5799 2003-05-10 Andreas Schwab <schwab@suse.de>
5800
5801 * xmenu.c (single_menu_item): Change last parameter to void* to
5802 avoid warning.
5803
5804 2003-05-09 Richard M. Stallman <rms@gnu.org>
5805
5806 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
5807 Bind Qinhibit_modification_hooks to t so there will be no GC.
5808 Rename local `tem' to `save_deactivate_mark'.
5809
5810 * eval.c (specpdl_ptr): Declare volatile.
5811 (unbind_to): Copy the whole binding and decrement specpdl_ptr
5812 before doing the work of unbinding it.
5813
5814 * lisp.h (struct specbinding): Declare elements volatile.
5815 (specpdl_ptr): Declare volatile.
5816
5817 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
5818
5819 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
5820 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
5821
5822 2003-05-08 Dave Love <fx@gnu.org>
5823
5824 * coding.c (Vlast_coding_system_used): Doc fix.
5825
5826 2003-05-07 Jason Rumney <jasonr@gnu.org>
5827
5828 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
5829 when system does not support them.
5830
5831 2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
5832
5833 * fileio.c (Qwrite_region_annotate_functions): New var.
5834 (build_annotations): Use it to process the global part of the hook.
5835 (syms_of_fileio): Init and staticpro it.
5836
5837 * keyboard.c (safe_run_hooks_error): Display a message instead of
5838 silently ignoring the error.
5839
5840 2003-05-03 Stefan Monnier <monnier@cs.yale.edu>
5841
5842 * keyboard.c (input_available_signal): Mark static.
5843 (menu_bar_items): Use map_keymap.
5844 (menu_bar_one_keymap): Remove.
5845 (menu_bar_item): Adjust arglist (for use in map_keymap).
5846 Properly hide a second binding when not both are keymaps.
5847
5848 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
5849 (single_keymap_panes): Use it and map_keymap.
5850 (single_menu_item): Use skp as well.
5851
5852 * keymap.h (map_keymap_function_t): New type.
5853 (map_keymap): Declare.
5854
5855 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
5856 (map_keymap_call, Fmap_keymap): New functions.
5857 (syms_of_keymap): Defsubr map-keymap.
5858
5859 2003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5860
5861 * gtkutil.c (create_dialog, make_widget_for_menu_item)
5862 (make_menu_item, create_menus, xg_update_menu_item): Don't call
5863 ..._with_mnemonic functions for menu items.
5864
5865 2003-05-01 Kenichi Handa <handa@m17n.org>
5866
5867 * coding.c (coding_system_accept_latin_extra_p): Delete this
5868 function.
5869 (find_safe_codings): Pay attention to
5870 the property tranlsation-table-for-encode of each codings.
5871 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
5872
5873 2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
5874
5875 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
5876
5877 2003-04-30 Stefan Monnier <monnier@cs.yale.edu>
5878
5879 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
5880
5881 * lisp.h (CHECK): Wrap args in parenthesis.
5882 (specbind): Fix doc: symbol = Qnil is not supported any more.
5883
5884 * bytecode.c (Fbyte_code) <unwind-protect>:
5885 Use Fprogn rather than 0 and Qnil.
5886
5887 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
5888 `double', and `triple' modifiers as well.
5889
5890 2003-04-30 Richard M. Stallman <rms@gnu.org>
5891
5892 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
5893
5894 * alloc.c (abort_on_gc): New variable.
5895 (Fgarbage_collect): Abort if abort_on_gc is set.
5896
5897 * lisp.h (abort_on_gc): Add decl.
5898
5899 * eval.c (Fsignal): Clear abort_on_gc.
5900
5901 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
5902 Reinit FORMAT_START and END before second scan.
5903
5904 * xdisp.c (move_it_vertically_backward): Do the final big else
5905 even if nlines is 0.
5906
5907 * xdisp.c (redisplay_internal): Finish the per-frame loop
5908 even if redisplay is suspended by input.
5909
5910 2003-04-24 Andrew Choi <akochoi@shaw.ca>
5911
5912 * macterm.c (x_list_fonts): Return all fonts that match if
5913 maxnames = -1.
5914
5915 2003-04-25 Kenichi Handa <handa@m17n.org>
5916
5917 * syntax.c (skip_chars): Fix previous change.
5918
5919 2003-04-24 Kenichi Handa <handa@m17n.org>
5920
5921 * syntax.c (skip_chars): Make the code faster by using the common
5922 technique of *p, *stop, and *endp.
5923
5924 2003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5925
5926 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
5927 tool_bar_items so GTK tool bar expose callback does not access items
5928 being updated.
5929
5930 2003-04-19 Stefan Monnier <monnier@cs.yale.edu>
5931
5932 * eval.c (Fapply): Undo last change and add a comment about why.
5933
5934 2003-04-18 Miles Bader <miles@gnu.org>
5935
5936 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
5937 pickier PARSE_MULTIBYTE_SEQ.
5938
5939 2003-04-17 Stefan Monnier <monnier@cs.yale.edu>
5940
5941 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
5942 Use XCDR, XCAR, CONSP.
5943 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
5944 (Fapply): Remove unnecessary GCPRO.
5945
5946 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
5947
5948 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
5949
5950 * buffer.h: Don't hardcode BEG==1.
5951
5952 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
5953
5954 2003-04-16 Richard M. Stallman <rms@gnu.org>
5955
5956 * xdisp.c (try_window, try_window_reusing_current_matrix):
5957 When at end of window, set window_end_pos to Z-ZV.
5958
5959 * buffer.c (Foverlay_recenter): Doc fix.
5960
5961 2003-04-14 Stefan Monnier <monnier@cs.yale.edu>
5962
5963 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
5964
5965 2003-04-14 Andrew Choi <akochoi@shaw.ca>
5966
5967 * macterm.c (mac_check_for_quit_char): Don't check more often than
5968 once a second.
5969
5970 2003-04-11 Stefan Monnier <monnier@cs.yale.edu>
5971
5972 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
5973 specially, so that they can't hide an implicit switch-frame event.
5974 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
5975 (head_table): Use switch-frame as event_kind for select-window.
5976 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
5977
5978 * editfns.c (Fformat): Lisp_Object/int mixup.
5979 (format2): Remove unused var numargs.
5980
5981 2003-04-11 Kenichi Handa <handa@m17n.org>
5982
5983 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
5984 (Qafter_insert_file_set_coding): New variable.
5985 (syms_of_fileio): Initialize and staticpro it. Delete declaration
5986 for after-insert-file-adjust-coding-function.
5987 (Finsert_file_contents): Call Qafter_insert_file_set_coding
5988 instead of Vafter_insert_file_adjust_coding_function.
5989
5990 2003-04-11 Kenichi Handa <handa@m17n.org>
5991
5992 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
5993
5994 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
5995 string. Callers changed.
5996
5997 2003-04-10 Kenichi Handa <handa@m17n.org>
5998
5999 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
6000 (syms_of_fileio): Declare it as a lisp variable.
6001 (Finsert_file_contents):
6002 Call Vafter_insert_file_adjust_coding_function before calling
6003 decode-format.
6004
6005 2003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6006
6007 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
6008 get GtkAdjustment as widget now is a GtkRange.
6009
6010 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
6011 GtkRange to avoid memory leak.
6012
6013 2003-04-09 Kenichi Handa <handa@m17n.org>
6014
6015 * xfaces.c (Vface_font_rescale_alist): New variable.
6016 (struct font_name): New member rescale_ratio.
6017 (font_rescale_ratio): New function.
6018 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
6019 (better_font_p): On comparing point sized, pay attention to
6020 recale_ratio member of fonts.
6021 (build_scalable_font_name): Reflect font->rescale_ratio in the
6022 font name.
6023 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
6024
6025 * lread.c (read1): Before calling index, check if the 2nd
6026 arguemnt is in ASCII range.
6027
6028 2003-04-08 Richard M. Stallman <rms@gnu.org>
6029
6030 * fileio.c (Ffile_symlink_p): Doc fix.
6031
6032 * editfns.c (Fformat): Translate positions of text properties
6033 in the format string to apply them to the result.
6034
6035 * fileio.c (Finsert_file_contents): Doc fix.
6036 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
6037
6038 2003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6039
6040 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
6041
6042 2003-04-08 Steven Tamm <steventamm@mac.com>
6043
6044 * mac.c (init_mac_osx_environment): Switch libexec and bin so
6045 that self-contained application finds libexec files.
6046
6047 2003-04-08 Kenichi Handa <handa@m17n.org>
6048
6049 * coding.c (code_convert_region_unwind):
6050 Set Vlast_coding_system_used to the argument.
6051 (code_convert_region): If post-read-conversion function changed
6052 the value of last-coding-sytem, keep the new value in
6053 coding->symbol so that it won't be overridden.
6054 (run_pre_post_conversion_on_str): Likewise.
6055 (coding_system_accept_latin_extra_p): New function.
6056 (find_safe_codings): Pay attention to characters registered in
6057 latin-extra-code-table.
6058
6059 2003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
6060
6061 * Makefile.in (md5.o): Add missing dependency info.
6062
6063 2003-04-06 Richard M. Stallman <rms@gnu.org>
6064
6065 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
6066
6067 * marker.c (verify_bytepos): New function.
6068
6069 * intervals.c (set_intervals_multibyte_1): When becoming
6070 multibyte, adjust right and left child sizes to a whole set of
6071 characters. If an interval gets zero total-length, delete it.
6072 If an interval consists of just its children, delete one of them.
6073
6074 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
6075 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
6076
6077 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
6078 All calls deleted.
6079 (lisp_malloc): Do the work here directly.
6080
6081 2003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
6082
6083 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
6084 char tables.
6085
6086 2003-04-04 Kenichi Handa <handa@m17n.org>
6087
6088 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
6089 destructively change "%S" to "%s".
6090
6091 2003-04-03 Miles Bader <miles@gnu.org>
6092
6093 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
6094 always set.
6095
6096 2003-04-01 Dave Love <fx@gnu.org>
6097
6098 * xfns.c (xpm_lookup_color): Grok "opaque".
6099
6100 2003-03-31 Andrew Choi <akochoi@shaw.ca>
6101
6102 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
6103 parent window ID.
6104
6105 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
6106
6107 * macterm.h (struct mac_output): Define x_pixels_diff and
6108 y_pixels_diff.
6109
6110 2003-03-31 Juanma Barranquero <lektu@terra.es>
6111
6112 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
6113 blockinput.h and files included from it.
6114
6115 2003-03-31 Kim F. Storm <storm@cua.dk>
6116
6117 The following changes consolidates the common code related to
6118 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
6119 files into frame.c.
6120
6121 * frame.c: Include blockinput.h.
6122 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
6123 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
6124 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
6125 related vars here.
6126 (struct frame_parm_table, frame_parms): New table for describing
6127 frame parameters and their associated Q-variable.
6128 The order of the parameters corresponds to the sequence of the
6129 frame_parm_handlers table in redisplay_interface.
6130 (x_fullscreen_move, x_set_frame_parameters)
6131 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
6132 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
6133 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
6134 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
6135 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
6136 Generic functions for processing of frame parameters.
6137 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
6138 (display_x_get_resource, x_get_resource_string): Functions for
6139 generic access to X resources.
6140 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6141 (x_default_parameter, Fx_parse_geometry): Functions for generic
6142 access to frame parameters.
6143 (x_figure_window_size): Generic calculation of frame size.
6144 Fixed to add space needed for tool bar. Also setup size_hint_flags.
6145 (syms_of_frame): Intern and staticpro frame parameter variables.
6146 Defvar_lisp Vx_resource_class and Vx_resource_name here.
6147 Defsubr Sx_get_resource and Sx_parse_geometry.
6148
6149 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
6150 parameter related vars defined in frame.c.
6151 (EMACS_CLASS): Define here.
6152 (enum FULLSCREEN_*): Define here.
6153 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
6154 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
6155 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
6156 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
6157 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
6158 (x_set_visibility, x_set_autoraise, x_set_autolower)
6159 (x_set_unsplittable, x_set_vertical_scroll_bars)
6160 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
6161 (x_figure_window_size): Add prototypes.
6162
6163 * dispextern.h (frame_parm_handler): New typedef.
6164 (struct redisplay_interface): New member frame_parm_handlers.
6165 (enum resource_types): Move declaration here.
6166 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6167 (x_default_parameter): Add prototypes.
6168
6169 * window.c: Remove extern decl for frame parameter vars.
6170 (change_window_heights): New generic function;
6171 replaces x_change_window_heights. All users changed.
6172
6173 * window.h (change_window_heights): Add prototype.
6174
6175 * xfaces.c: Remove extern decl for frame parameter vars.
6176
6177 * xterm.h (EMACS_CLASS): Remove. Use generic define.
6178 (struct w32_display_info): Fix type of xrdb member.
6179 (enum FULLSCREEN_*): Remove.
6180 Remove prototypes for generic functions (in frame.h).
6181
6182 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
6183 parameters now defined in frame.h and frame.c.
6184 (Vx_resource_name): Remove. Use generic var.
6185 (enum x_frame_parms): Remove (bogus, unused enum).
6186 (check_x_display_info): Make non-static (for frame.c).
6187 (struct x_frame_parm_table, x_frame_parms): Remove.
6188 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
6189 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
6190 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
6191 (x_change_window_heights, x_set_autoraise, x_set_autolower)
6192 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
6193 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
6194 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
6195 Remove. Use generic functions instead.
6196 (enum resource_types): Remove.
6197 (x_set_scroll_bar_default_width): New global function (for frame.c).
6198 (Fx_create_frame): Depend on x_figure_window_size to add space for
6199 toolbar and setup size_hint_flags.
6200 (x_frame_parm_handlers): New table for redisplay_interface.
6201 (syms_of_xfns): Don't intern/staticpro removed vars.
6202
6203 * xterm.c: Remove unnecessary extern declarations.
6204 (x_fullscreen_adjust): Remove. Use generic instead.
6205 (x_redisplay_interface): Add x_frame_parm_handlers member.
6206
6207 * w32gui.h (XrmDatabase): New (dummy) typedef.
6208
6209 * w32term.h (EMACS_CLASS): Remove. Use generic define.
6210 (struct w32_display_info): Fix type of xrdb member.
6211 (enum FULLSCREEN_*): Remove.
6212 (x_fullscreen_adjust): Remove prototype.
6213
6214 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
6215 parameters now defined in frame.h and frame.c.
6216 (Vx_resource_name): Remove. Use generic var.
6217 (enum x_frame_parms): Remove (bogus, unused enum).
6218 (check_x_display_info): Make non-static (for frame.c).
6219 (struct x_frame_parm_table, x_frame_parms): Remove.
6220 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
6221 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
6222 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
6223 (x_change_window_heights, x_set_autoraise, x_set_autolower)
6224 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
6225 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
6226 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
6227 Remove. Use generic functions instead.
6228 (enum resource_types): Remove.
6229 (x_set_scroll_bar_default_width): New global function (for frame.c).
6230 (Fx_create_frame): Depend on x_figure_window_size to add space for
6231 toolbar and setup size_hint_flags.
6232 (w32_frame_parm_handlers): New table for redisplay_interface.
6233 (syms_of_w32fns): Don't intern/staticpro removed vars.
6234
6235 * w32term.c: Remove unnecessary extern declarations.
6236 (x_fullscreen_adjust): Remove. Use generic instead.
6237 (x_redisplay_interface): Add w32_frame_parm_handlers member.
6238
6239 * w32reg.c (x_get_string_resource): Use XrmDatabase.
6240
6241 * macgui.h (XrmDatabase): New (dummy) typedef.
6242
6243 * macterm.h (EMACS_CLASS): Remove.
6244 (struct mac_display_info): Add xrdb member.
6245 (struct mac_output): Add want_fullscreen member.
6246
6247 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
6248 parameters now defined in frame.h and frame.c.
6249 (Vx_resource_name): Remove. Use generic var.
6250 (check_x_display_info): Make non-static (for frame.c).
6251 (struct x_frame_parm_table, x_frame_parms): Remove.
6252 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
6253 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
6254 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
6255 (x_change_window_heights, x_set_autoraise, x_set_autolower)
6256 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
6257 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
6258 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
6259 Remove. Use generic functions instead.
6260 (enum resource_types): Remove.
6261 (x_set_scroll_bar_default_width): New global function (for frame.c).
6262 (mac_frame_parm_handlers): New table for redisplay_interface.
6263 (syms_of_macfns): Don't intern/staticpro removed vars.
6264
6265 * macterm.c: Remove unnecessary extern declarations.
6266 (x_redisplay_interface): Add mac_frame_parm_handlers member.
6267
6268 * Makefile.in (frame.o): Add dependency on blockinput.h and files
6269 included from it (atimer.h and systime.h).
6270
6271 2003-03-30 Andreas Schwab <schwab@suse.de>
6272
6273 * xdisp.c (x_insert_glyphs): Fix swapped width and height
6274 parameters for shift_glyphs_for_insert.
6275
6276 * macterm.c (x_redisplay_interface): Add missing entry for
6277 draw_vertical_window_border.
6278
6279 2003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
6280
6281 * fileio.c (Fexpand_file_name): In the no-handler case, after
6282 expanding, look again for a handler and invoke it. This is needed
6283 for filenames like "/foo/../user@host:/bar/../baz" -- the first
6284 expansion produces "/user@host:/bar/../baz" which needs to be
6285 expanded again for the finame result "/user@host:/baz".
6286
6287 2003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6288
6289 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
6290 of area to be redrawn for better performance.
6291
6292 2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
6293
6294 * xterm.c (take_vertical_position_into_account): Remove.
6295 (xt_action_hook): Call set_vertical_scroll_bar if needed.
6296 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
6297 (xm_scroll_callback, x_create_toolkit_scroll_bar)
6298 (x_set_toolkit_scroll_bar_thumb): Simplify.
6299 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
6300 (XTread_socket): Remove unused var.
6301 (x_make_frame_invisible): Replace goto with else.
6302
6303 * xdisp.c (set_vertical_scroll_bar): New fun.
6304 (redisplay_window): Use it.
6305
6306 2003-03-26 Richard M. Stallman <rms@gnu.org>
6307
6308 * xdisp.c (update_tool_bar): Recompute tool bar if
6309 update_mode_lines is set. Set w->update_mode_line
6310 only if the tool bar contents actually change.
6311 (update_menu_bar): Undo previous change.
6312
6313 2003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6314
6315 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
6316 (xg_frame_set_char_size): Calculate scroll bar width before frame
6317 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
6318 (xg_separator_p): Check for all documented separator types.
6319 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
6320 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
6321
6322 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
6323 so tool bar gets updated.
6324
6325 2003-03-26 Stefan Monnier <monnier@cs.yale.edu>
6326
6327 * data.c (store_symval_forwarding): Re-instate part of the code
6328 that was deleted with too much enthusiasm.
6329
6330 2003-03-25 Stefan Monnier <monnier@cs.yale.edu>
6331
6332 * data.c (store_symval_forwarding): Delete special read-only
6333 hack for type == -1, since we now use ->constant instead.
6334 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
6335
6336 * buffer.c (overlays_in): Declare static.
6337 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
6338 `constant' field rather than the variable's `type' field.
6339
6340 2003-03-24 Andrew Choi <akochoi@shaw.ca>
6341
6342 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
6343
6344 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
6345
6346 * fns.c [MAC_OSX]: Do not redefine vector.
6347
6348 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
6349
6350 * macgui.h: Remove definition of No_Cursor.
6351
6352 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
6353
6354 * xdisp.c: Define No_Cursor.
6355 (x_write_glyphs, notice_overwritten_cursor)
6356 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
6357 (note_mouse_highlight): Remove Mac-specific code.
6358 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
6359
6360 2003-03-24 John Paul Wallington <jpw@gnu.org>
6361
6362 * xdisp.c (redisplay_window): If mini window's buffer is not
6363 empty, then redisplay it like other windows.
6364
6365 2003-03-23 Kim F. Storm <storm@cua.dk>
6366
6367 * w32term.c (w32_draw_window_cursor): Fix last change.
6368
6369 2003-03-23 Kenichi Handa <handa@m17n.org>
6370
6371 * alloc.c (make_string_from_bytes, make_specified_string):
6372 Add `const' for the arg CONTENTS.
6373
6374 * lisp.h (make_string_from_bytes, make_specified_string):
6375 Prototypes adjusted.
6376
6377 2003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6378
6379 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
6380
6381 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
6382 (XG_SB_RANGE): New define.
6383
6384 * gtkutil.c (xg_fixed_handle_expose): New function.
6385 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
6386 expose events.
6387 (xg_update_scrollbar_pos): Take two more arguments, left and width
6388 of scroll bar including borders.
6389 Clear left and right part outside scroll bar separately as some
6390 themes have bars that are not an even number of pixels.
6391 Don't set reallocate_redraws, don't call
6392 gdk_window_process_all_updates.
6393 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
6394 so no need to change it. Calculate size and value with XG_SB_RANGE.
6395
6396 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
6397 Pass left and width of scroll bar including borders to
6398 xg_update_scrollbar_pos.
6399
6400 2003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
6401
6402 * Makefile.in: Make sure space precedes end-of-line backslashes.
6403
6404 2003-03-22 Kim F. Storm <storm@cua.dk>
6405
6406 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
6407 Add generic versions here. Remove system specific versions
6408 defined elsewhere.
6409
6410 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
6411 Add prototypes.
6412
6413 * xterm.h (STORE_NATIVE_RECT): New macro.
6414
6415 2003-03-21 Kim F. Storm <storm@cua.dk>
6416
6417 * xdisp.c (get_glyph_string_clip_rect):
6418 Use FRAME_INTERNAL_BORDER_WIDTH.
6419
6420 * dispextern.h (struct redisplay_interface): Add active_p
6421 argument to draw_window_cursor member. All uses changed.
6422
6423 2003-03-21 Kim F. Storm <storm@cua.dk>
6424
6425 The following changes consolidate code related to writing and
6426 inserting glyphs, exposing frame, the tool bar, the mouse face,
6427 the output cursor, and help echo from xterm.c, w32term.c and
6428 macterm.c into xdisp.c. It also generalizes the use of the
6429 window_part enum instead of using numeric values throughout.
6430
6431 * xdisp.c: Consolidate gui-independent code here.
6432 Include keymap.h.
6433 (Qhelp_echo): Import.
6434 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
6435 (help_echo_string, help_echo_window, help_echo_object)
6436 (previous_help_echo_string, help_echo_pos): Declare here.
6437 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
6438 (estimate_mode_line_height): Define here. Handle windowing
6439 systems directly (without using estimate_mode_line_height_hook).
6440 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
6441 (update_window_cursor, update_cursor_in_window_tree)
6442 (fast_find_position, fast_find_string_pos)
6443 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
6444 (expose_area, expose_line, expose_overlaps, expose_window)
6445 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
6446 declared static as they are only used locally in xdisp.c.
6447 (draw_glyphs): Rename from x_draw_glyphs and make static.
6448 (tool_bar_item_info, notice_overwritten_cursor): Make static.
6449 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
6450 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
6451 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
6452 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
6453 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
6454 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
6455 (note_mouse_highlight, x_clear_window_mouse_face)
6456 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
6457 (x_intersect_rectangles): New generic functions for use by xdisp.c
6458 and GUI front-ends.
6459 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
6460 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
6461
6462 * dispextern.h (Display_Info): Generic typedef for *_display_info.
6463 (NativeRectangle): Generic typedef for rectangle type.
6464 (enum window_part): Move here from window.c.
6465 (struct redisplay_interface): New members flush_display_optional,
6466 define_frame_cursor, clear_frame_area, draw_window_cursor,
6467 draw_vertical_window_border, shift_glyphs_for_insert.
6468 Rename member clear_mouse_face to clear_window_mouse_face.
6469 (estimate_mode_line_height_hook): Remove hook.
6470 (auto_raise_tool_bar_buttons_p): Don't declare extern.
6471 (tool_bar_item_info): Remove prototype.
6472 (help_echo_string, help_echo_window, help_echo_object)
6473 (previous_help_echo_string, help_echo_pos)
6474 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
6475 (x_stretch_cursor_p, output_cursor): Declare extern.
6476 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
6477 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
6478 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
6479 (display_and_set_cursor, set_output_cursor, x_cursor_to)
6480 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
6481 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
6482 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
6483 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
6484 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
6485 Add prototypes.
6486 (mode_line_string, marginal_area_string): Fix prototypes.
6487
6488 * window.c (enum window_part): Move to dispextern.h.
6489 (coordinates_in_window): Use enum window_part member names
6490 instead of numbers to describe return value.
6491 (struct check_window_data): Change part member to window_part.
6492 (check_window_containing): Return window_part unaltered.
6493 (window_from_coordinates): Change part arg from int to enum
6494 window_part. Allow part arg to be null. All users changed.
6495
6496 * window.h (window_from_coordinates): Fix prototype.
6497
6498 * term.c (estimate_mode_line_height): Move to xdisp.c.
6499
6500 * keyboard.c (make_lispy_event): Use enum window_part.
6501
6502 * dispnew.c (mode_line_string, marginal_area_string): Use enum
6503 window_part instead of int in arg list. Users changed.
6504
6505 * xterm.h (No_Cursor): Declare as None for X.
6506 (struct mac_output): Replace member cross_cursor by hand_cursor.
6507
6508 * xterm.c: Remove consolidated defines and code.
6509 (BETWEEN): Remove unused macro.
6510 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
6511 (x_define_frame_cursor, x_clear_frame_area)
6512 (x_draw_window_cursor): New X-specific functions for RIF.
6513 (x_redisplay_interface): Add new members.
6514
6515 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
6516
6517 * w32term.h (struct w32_output): Remove cross_cursor member.
6518
6519 * w32term.c: Remove consolidated defines and code.
6520 (BETWEEN): Remove unused macro.
6521 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
6522 (w32_define_frame_cursor, w32_clear_frame_area)
6523 (w32_draw_window_cursor): New W32-specific functions for RIF.
6524 (w32_redisplay_interface): Add new members.
6525
6526 * w32gui.h (No_Cursor): Define as 0 for W32.
6527 (XRectangle): Add X compatible rectangle type.
6528 (NativeRectangle): Declare as RECT for W32.
6529 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
6530
6531 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
6532
6533 * w32console.c: Remove consolidated defines and code.
6534
6535 * msdos.h (Display_Info): Add generic typedef.
6536
6537 * msdos.c: Remove consolidated defines and code.
6538 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
6539
6540 * macterm.h (struct mac_output): Replace member cross_cursor by
6541 hand_cursor.
6542 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
6543
6544 * macterm.c: Remove consolidated defines and code.
6545 (BETWEEN): Remove unused macro.
6546 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
6547 (mac_define_frame_cursor, mac_clear_frame_area)
6548 (mac_draw_window_cursor): New Mac-specific functions for RIF.
6549 (x_redisplay_interface): Add new members.
6550
6551 * macgui.h (No_Cursor): Define as 0 for Mac.
6552 (XRectangle): Add X compatible rectangle type.
6553 (NativeRectangle): Declare as Rect for Mac.
6554 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
6555
6556 * macfns.c (x_set_mouse_color): Setup hand_cursor.
6557 (x_set_cursor_color): Use x_display_and_set_cursor.
6558
6559 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
6560 included from it. Add dependency on keymap.h.
6561
6562 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
6563
6564 2003-03-21 Kenichi Handa <handa@m17n.org>
6565
6566 * fileio.c (Fexpand_file_name): Fix previous change.
6567
6568 2003-03-19 Kenichi Handa <handa@m17n.org>
6569
6570 * fileio.c (Ffile_name_directory): Reconstruct file name by
6571 make_specified_string.
6572 (Ffile_name_nondirectory, Ffile_name_as_directory)
6573 (Fdirectory_file_name, Fexpand_file_name)
6574 (Fsubstitute_in_file_name): Likewise.
6575 (Fread_file_name): Compare decoded homedir with DIR and
6576 DEFAULT_FILENAME.
6577
6578 * alloc.c (make_specified_string): If NCHARS is negative, count
6579 the number of characters.
6580
6581 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6582
6583 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
6584 all widgets.
6585
6586 * gtkutil.h: Removed xg_ignore_next_thumb.
6587
6588 2003-03-18 Kenichi Handa <handa@m17n.org>
6589
6590 * coding.c (Vchar_coding_system_table): Remove this variable.
6591 (Vcoding_system_safe_chars): New variable.
6592 (intersection): Remove this function.
6593 (find_safe_codings): Don't use Vchar_coding_system_table, but try
6594 all codings in SAFE_CODINGS.
6595 (Ffind_coding_systems_region_internal): Adjust for the change of
6596 find_safe_codings. Get generic coding systems from
6597 Vcoding_system_safe_chars.
6598 (Fdefine_coding_system_internal): New function.
6599 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
6600 Initialize and staticpro Vcoding_system_safe_chars.
6601
6602 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6603
6604 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
6605 equal old values before updating.
6606
6607 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
6608
6609 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
6610
6611 2003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6612
6613 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
6614 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
6615 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
6616 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
6617 (xg_create_scroll_bar): Pass bar to button event callback.
6618 (xg_find_top_left_in_fixed): New function.
6619 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
6620 whole scroll bar area. Get old position with
6621 xg_find_top_left_in_fixed, calculate and only clear needed areas.
6622 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
6623 dragging is in progress. Calculate whole as for Motif.
6624 Remove code that saved last values. Call gtk_range functions to
6625 set scroll bar sizes.
6626
6627 * gtkutil.h: Removed xg_ignore_next_thumb.
6628
6629 2003-03-17 Juanma Barranquero <lektu@terra.es>
6630
6631 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
6632 and files included from it.
6633
6634 2003-03-18 Stefan Monnier <monnier@cs.yale.edu>
6635
6636 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
6637 multiple occurrences of the same keymap under different prefixes.
6638 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
6639
6640 2003-03-16 Jason Rumney <jasonr@gnu.org>
6641
6642 * w32gui.h: Use HDC for Display.
6643
6644 * w32term.c (w32_encode_char): Prevent double-byte chars from
6645 crashing Emacs.
6646
6647 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
6648 as binary.
6649
6650 2003-03-16 Juanma Barranquero <lektu@terra.es>
6651
6652 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
6653
6654 2003-03-16 Kim F. Storm <storm@cua.dk>
6655
6656 The following changes consolidate some of the gui-independent
6657 parts of the processing and drawing of "glyph strings" from
6658 xterm.c, w32term.c, and macterm.c into xdisp.c.
6659
6660 * dispextern.h (struct glyph): Reduce face_id member from 22 to
6661 21 bits (this reduces number of faces from 4M to 2M).
6662 Replace W32 specific w32_font_type member (2 bits) by generic
6663 font_type member (3 bits) for portability.
6664 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
6665 (enum draw_glyphs_face): Define here.
6666 (struct glyph_string): Define here. Merge W32 and X versions.
6667 (struct redisplay_interface): New members per_char_metric,
6668 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
6669 (VCENTER_BASELINE_OFFSET): Define here.
6670 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
6671 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
6672
6673 * xdisp.c: Consolidate gui-independent "glyph string" code here.
6674 (dump_glyph_string): Moved here.
6675 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
6676 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
6677 (fill_composite_glyph_string, fill_glyph_string)
6678 (fill_image_glyph_string, fill_stretch_glyph_string)
6679 (left_overwritten, left_overwriting, right_overwritten)
6680 (right_overwriting, get_char_face_and_encoding)
6681 (set_glyph_string_background_width, compute_overhangs_and_x)
6682 (append_glyph, append_composite_glyph, produce_image_glyph)
6683 (take_vertical_position_into_account, append_stretch_glyph)
6684 (produce_stretch_glyph): New generic functions (based on X version).
6685 Call platform specific functions through rif.
6686 (INIT_GLYPH_STRING): New macro, hides W32 details.
6687 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
6688 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
6689 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
6690 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
6691 (notice_overwritten_cursor):
6692 Generic functions exported to platform modules. Users changed.
6693
6694 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
6695 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
6696 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
6697 New macros for consolidated code.
6698
6699 * xterm.c: Remove consolidated defines and code.
6700 (x_per_char_metric, x_encode_char)
6701 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
6702 (x_redisplay_interface): Add new members.
6703
6704 * w32gui.h (Display): Add dummy typedef for consolidation.
6705 (XChar2b): Define alias for wchar_t for consolidation.
6706 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
6707
6708 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
6709 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
6710 New macros for consolidation.
6711
6712 * w32term.c: Remove consolidated defines and code.
6713 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
6714 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
6715 (w32_per_char_metric): Change font_type arg to int for RIF.
6716 (w32_encode_char): Return int according to RIF requirements.
6717 (w32_compute_glyph_string_overhangs): Adapt to RIF.
6718 (w32_get_glyph_overhangs): New function for RIF. Uses generic
6719 x_get_glyph_overhangs.
6720 (w32_redisplay_interface): Add new members.
6721
6722 * macgui.h (XChar2b): Move typedef here for consolidation.
6723 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
6724
6725 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
6726 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
6727 consolidation.
6728
6729 * macterm.c: Remove consolidated defines and code.
6730 (mac_per_char_metric): New function for RIF.
6731 (mac_encode_char): Adapt to new RIF requirements.
6732 (mac_compute_glyph_string_overhangs): Adapt for RIF.
6733 (x_redisplay_interface): Add new members.
6734
6735 2003-03-15 Stefan Monnier <monnier@cs.yale.edu>
6736
6737 * keymap.c (Vmenu_events): New var.
6738 (syms_of_keymap): Initialize it.
6739 (where_is_internal): Check more carefully what is a menu event.
6740
6741 2003-03-14 Richard M. Stallman <rms@gnu.org>
6742
6743 * lread.c (read1): After #!, exit loop on eof.
6744
6745 2003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6746
6747 * gtkutil.h: Add declaration for xg_frame_cleared.
6748
6749 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
6750
6751 * gtkutil.c (struct xg_last_sb_pos): New structure.
6752 (handle_fixed_child): New function.
6753 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
6754 and force a redraw on them.
6755 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
6756 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
6757 so we can avoid unneeded redraws.
6758 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
6759 and force a redraw on the scroll bar.
6760 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
6761 if xg_last_sb_pos shows the positions are up to date.
6762 (xg_frame_cleared): New function.
6763
6764 2003-03-13 Kenichi Handa <handa@m17n.org>
6765
6766 * coding.c (Fdetect_coding_region): Fix docstring.
6767 (Fdetect_coding_string): Fix docstring.
6768
6769 2003-03-13 Andreas Schwab <schwab@suse.de>
6770
6771 * gtkutil.c: Add prototype for create_menus.
6772
6773 * data.c (long_to_cons): Fix type of top.
6774
6775 * xselect.c (selection_data_to_lisp_data): Use int instead of
6776 long for an integer of size 4.
6777
6778 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
6779 (xg_tool_bar_help_callback): Likewise.
6780
6781 2003-03-12 Andreas Schwab <schwab@suse.de>
6782
6783 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
6784
6785 2003-03-12 Kim F. Storm <storm@cua.dk>
6786
6787 The following changes consolidate the fringe handling from
6788 xterm.c, w32term.c, and macterm.c into xdisp.c.
6789
6790 * xdisp.c: Consolidate fringe handling code here.
6791 (left_bits, right_bits, continued_bits, continuation_bits)
6792 (ov_bits, zv_bits): Define fringe bitmaps.
6793 (fringe_bitmaps): New array holding fringe bitmaps.
6794 (draw_fringe_bitmap): Draw a specific bitmap; call display
6795 specific drawing routine via rif->draw_fringe_bitmap.
6796 (draw_row_fringe_bitmaps): Generic replacement for
6797 x_draw_row_fringe_bitmaps; all callers changed.
6798 (compute_fringe_widths): Generic replacement for
6799 x_compute_fringe_widths; all callers changed.
6800
6801 * dispextern.h (enum fringe_bitmap_type): Define here.
6802 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
6803 (fringe_bitmaps): Declare extern.
6804 (struct redisplay_interface): New member draw_fringe_bitmap.
6805 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
6806
6807 * xterm.c: Remove generic fringe code.
6808 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
6809 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
6810
6811 * w32term.c: Remove generic fringe code.
6812 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
6813 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
6814
6815 * macterm.c: Remove generic fringe code.
6816 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
6817 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
6818
6819 2003-03-11 Stefan Monnier <monnier@cs.yale.edu>
6820
6821 * print.c (Fprin1_to_string): Return unibyte string if possible.
6822
6823 2003-03-09 David Kastrup <dak@gnu.org>
6824
6825 * process.c (read_process_output): We have allocated enough space
6826 for readmax and carryover, so actually use the alloted space.
6827
6828 2003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6829
6830 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
6831 toolkit scrollbar click.
6832
6833 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
6834 for USE_GTK.
6835 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
6836 also.
6837 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
6838 scrollbar and control is pressed, call x_scroll_bar_handle_click.
6839
6840 * gtkutil.h: Declare xg_get_scroll_id_for_window.
6841
6842 * gtkutil.c (xg_get_scroll_id_for_window): New function.
6843 (xg_tool_bar_item_expose_callback): New function.
6844 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
6845 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
6846 on the tool bar widget.
6847 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
6848 to expose on the tool bar item widgets.
6849
6850 2003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6851
6852 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
6853 struct image* when deciding to update (struct image* may have been
6854 deleted from the image cache).
6855
6856 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
6857 the event isn't for a frame (i.e. for dialogs).
6858
6859 2003-03-07 Kenichi Handa <handa@m17n.org>
6860
6861 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
6862 composition components reaches the limit, terminate composing.
6863 (COMPOSITION_OK): New macro.
6864 (detect_coding_iso2022): Use it if an escape sequence for
6865 composition is found.
6866 (coding_restore_composition): Adjust the number of composition
6867 components if it is not sane.
6868
6869 2003-03-06 Juanma Barranquero <lektu@terra.es>
6870
6871 * w32term.h (struct w32_display_info): Add xrdb member to support
6872 passing resources via -xrm on Windows.
6873
6874 * w32term.c (w32_make_rdb): New function.
6875 (w32_term_init): Use it to initialize xrdb member of w32_display_info
6876 struct. Delete leftover code.
6877
6878 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
6879 for resources passed on the command line.
6880
6881 * w32reg.c (w32_get_rdb_resource): New function.
6882 (x_get_string_resource): Use it, so resources passed with -xrm
6883 supercede the ones in the registry.
6884
6885 2003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6886
6887 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
6888 instead of x_top_window_to_frame.
6889
6890 2003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6891
6892 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
6893 when restarting Emacs.
6894
6895 2003-03-03 Richard M. Stallman <rms@gnu.org>
6896
6897 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
6898 to run kill-buffer-query-functions.
6899 (Qkill_buffer_query_functions): New var.
6900 (syms_of_buffer): Init and staticpro it.
6901
6902 2003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6903
6904 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
6905
6906 2003-02-25 Kim F. Storm <storm@cua.dk>
6907
6908 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
6909 If centering point failed to make whole line visible and vscroll
6910 is non-zero, disable vscroll and try centering point again.
6911
6912 * lread.c (read1): Accept `single space' syntax like (? x).
6913
6914 2003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6915
6916 * keyboard.c (cancel_hourglass_unwind): Surround with
6917 #ifdef HAVE_X_WINDOWS
6918
6919 2003-02-25 Kenichi Handa <handa@m17n.org>
6920
6921 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
6922 process only when "subprocesses" is defined.
6923
6924 2003-02-24 Stefan Monnier <monnier@cs.yale.edu>
6925
6926 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
6927
6928 2003-02-24 Juanma Barranquero <lektu@terra.es>
6929
6930 * callint.c (fix_command): Declare as static void and move before
6931 Fcall_interactively.
6932
6933 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
6934 (syms_of_xdisp): Don't initialize Qwhen.
6935
6936 2003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6937
6938 * keyboard.c (cancel_hourglass_unwind): New function.
6939 (command_loop_1): Cancel hourglass with unwind-protect.
6940
6941 2003-02-23 Richard M. Stallman <rms@gnu.org>
6942
6943 * callint.c (fix_command): New subroutine, from Fcall_interactively.
6944 Detect (when ... (region-beginning)) etc.
6945 (Fcall_interactively): Call fix_command.
6946 (Qif, Qwhen): New variables.
6947 (syms_of_callint): Init and staticpro them.
6948
6949 * regex.c (print_partial_compiled_pattern): Output to stderr.
6950
6951 2003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
6952
6953 * dired.c (directory_files_internal): Don't expand directory.
6954 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
6955 instead. From Lars Hansen <larsh@math.ku.dk>.
6956
6957 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
6958
6959 * fns.c (string_to_multibyte): Remove unused var i.
6960 (Flanginfo): Fix int/Lisp_Object mixup.
6961 (void_call2): New fun.
6962 (Fmap_char_table): Use it in place of call2.
6963
6964 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
6965
6966 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
6967
6968 * keymap.c (copy_keymap_1): Make it static.
6969
6970 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
6971
6972 2003-02-22 David Ponce <david@dponce.com>
6973
6974 * lread.c (Fload): Don't check STRING_MULTIBYTE.
6975
6976 2003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6977
6978 * process.h: Removed subtty field from struct Lisp_Process.
6979
6980 * process.c (create_process): Remove setting of subtty.
6981 (emacs_get_tty_pgrp): New function.
6982 (Fprocess_running_child_p, process_send_signal):
6983 Call emacs_get_tty_pgrp instead of ioctl.
6984 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
6985
6986 2003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
6987
6988 * keymap.c (Fdefine_key): Doc fix.
6989
6990 2003-02-21 Juanma Barranquero <lektu@terra.es>
6991
6992 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
6993
6994 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
6995 POLLING_PROBLEM_IN_SELECT.
6996
6997 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
6998 Delete #undef of POLLING_PROBLEM_IN_SELECT.
6999
7000 * s/hpux10-20.h: New file.
7001
7002 * process.c (wait_reading_process_input):
7003 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
7004
7005 2003-02-20 Kenichi Handa <handa@m17n.org>
7006
7007 * fontset.c (check_fontset_name): If NAME is nil, return the
7008 default fontset.
7009 (override_font_info): New function.
7010 (Fset_fontset_font): Document that NAME nil means the default fontset.
7011 (Ffontset_info): If FONTSET is not the default fontset, merge
7012 FONTSET onto the copy of the default fontset, and work on that
7013 copy. Document that NAME nil means the default fontset.
7014 (Ffontset_font): Document that NAME nil means the default fontset.
7015
7016 * process.c (setup_process_coding_systems): If the process's
7017 in/out descriptor is -1, do nothing.
7018
7019 2003-02-19 Andreas Schwab <schwab@suse.de>
7020
7021 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
7022 Add prototypes.
7023
7024 2003-02-19 Kenichi Handa <handa@m17n.org>
7025
7026 * xfaces.c (try_alternative_families): Try all scalable fonts if
7027 Vscalable_fonts_allowed is not Qt.
7028
7029 2003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7030
7031 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
7032
7033 2003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7034
7035 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
7036 names.
7037
7038 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
7039 (sorted_font_list): Move allocation of struct font_name to
7040 x_face_list_fonts.
7041 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
7042 (Fx_list_fonts): Set maxnames to -1 to get all font names.
7043
7044 2003-02-18 Kim F. Storm <storm@cua.dk>
7045
7046 * lread.c (read1): Fix last change.
7047 "`" is not always special. Allow "?" after a character constant.
7048
7049 2003-02-18 Andrew Choi <akochoi@shaw.ca>
7050
7051 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
7052
7053 2003-02-18 Andreas Schwab <schwab@suse.de>
7054
7055 * window.c (window_scroll_pixel_based): Move outside a
7056 multi-glyph character before setting new window start.
7057
7058 * xdisp.c (in_display_vector_p): New function.
7059 * dispextern.h (in_display_vector_p): Declare.
7060
7061 2003-02-18 Kim F. Storm <storm@cua.dk>
7062
7063 * lread.c (read1): Fix and relax read syntax.
7064 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
7065 Only recognize "," after dotted-pair dot if inside backquote.
7066 Never include "`" or "," (inside backquote) in a symbol.
7067 Allow dotted-pair dot after a character constant.
7068 Allow "`" and "," (inside backquote) after a character constant.
7069
7070 2003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7071
7072 * gtkutil.c (xg_tool_bar_expose_callback): New function.
7073 (xg_create_tool_bar): Force style of tool bar to be horizontal with
7074 icons. Set name of tool bar to emacs-toolbar.
7075 (update_frame_tool_bar): Connect expose event to
7076 xg_tool_bar_expose_callback.
7077
7078 2003-02-17 Richard M. Stallman <rms@gnu.org>
7079
7080 * keyboard.c (this_command_key_count_reset): New variable.
7081 Initiatize to 0 where this_command_key_count is set.
7082 (read_char): Save and restore this_command_key_count_reset
7083 around input method code.
7084 (read_char): If this_command_key_count_reset, echo reread commands.
7085 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
7086
7087 2003-02-17 Kenichi Handa <handa@m17n.org>
7088
7089 * fns.c (string_to_multibyte): Always return a multibyte string.
7090
7091 2003-02-16 Jason Rumney <jasonr@gnu.org>
7092
7093 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
7094 Negative max_fonts parameter means list all.
7095
7096 2003-02-14 Dave Love <fx@gnu.org>
7097
7098 * fns.c (Flanginfo): Doc fix.
7099
7100 2003-02-13 Kim F. Storm <storm@cua.dk>
7101
7102 * lread.c (read_escape): Interpret \s as a SPACE character, except
7103 for \s-X in a character constant which still is the super modifier.
7104 (read1): Signal an `invalid read syntax' error if a character
7105 constant is immediately followed by a digit or symbol character.
7106
7107 * search.c (Fmatch_data): Doc fix. Explicitly state that
7108 match-data is undefined if last search failed.
7109
7110 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
7111 All uses changed.
7112
7113 2003-02-12 Juanma Barranquero <lektu@terra.es>
7114
7115 * eval.c (Fdefmacro): Fix typo.
7116
7117 2003-02-12 Kim F. Storm <storm@cua.dk>
7118
7119 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
7120 macro is a string, convert meta modifiers in string when copying
7121 the string into a vector.
7122
7123 2003-02-11 Kim F. Storm <storm@cua.dk>
7124
7125 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
7126
7127 2003-02-11 Kenichi Handa <handa@m17n.org>
7128
7129 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
7130
7131 2003-02-10 Kim F. Storm <storm@cua.dk>
7132
7133 * process.c: Doc fixes.
7134 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
7135
7136 2003-02-10 Kenichi Handa <handa@m17n.org>
7137
7138 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
7139
7140 * process.c (QCfilter_multibyte): New variable.
7141 (setup_process_coding_systems): New function.
7142 (Fset_process_buffer, Fset_process_filter):
7143 Call setup_process_coding_systems.
7144 (Fstart_process): Initialize the member `filter_multibyte' of
7145 struct Lisp_Process.
7146 (create_process): Call setup_process_coding_systems.
7147 (Fmake_network_process): New keyward `:filter-multibyte'.
7148 Initialize the member `filter_multibyte' of struct Lisp_Process.
7149 Call setup_process_coding_systems.
7150 (server_accept_connection): Call setup_process_coding_systems.
7151 (read_process_output): If the process has a filter, decide the
7152 multibyteness of a string to given to the filter by
7153 `filter_multibyte' member of the process. If the process doesn't
7154 have a filter and the result of conversion is unibyte, use
7155 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
7156 multibyte form.
7157 (Fset_process_coding_system): Call setup_process_coding_systems.
7158 (Fset_process_filter_multibyte): New function.
7159 (Fprocess_filter_multibyte_p): New function.
7160 (syms_of_process): Intern and staticpro QCfilter_multibyte.
7161 Defsubr Sset_process_filter_multibyte and
7162 Sprocess_filter_multibyte_p.
7163
7164 * process.h (struct Lisp_Process): New member filter_multibyte.
7165
7166 * lisp.h (setup_process_coding_systems): Add prototype.
7167
7168 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
7169 process, update coding systems for the process.
7170
7171 2003-02-09 Kenichi Handa <handa@m17n.org>
7172
7173 * fns.c (string_to_multibyte): New function.
7174 (Fstring_to_multibyte): New function.
7175 (syms_of_fns): Defsubr it.
7176
7177 2003-02-08 Andreas Schwab <schwab@suse.de>
7178
7179 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
7180 instead of the substitution.
7181
7182 2003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7183
7184 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
7185
7186 * xmenu.c (menu_position_func): Adjust menu popup position so that
7187 the menu is fully visible.
7188
7189 2003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7190
7191 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
7192 (x_make_frame_invisible, x_wm_set_icon_position):
7193 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
7194
7195 * xfns.c (x_set_name, x_set_title): Ditto.
7196
7197 2003-02-04 Richard M. Stallman <rms@gnu.org>
7198
7199 * keyboard.c (echo_now): Update before_command_echo_length.
7200 (Freset_this_command_lengths): Reset this_command_key_count etc.
7201 immediately rather than arranging to do it later.
7202 (before_command_key_count_1, before_command_echo_length_1)
7203 (before_command_restore_flag): Vars deleted.
7204 (add_command_key): Don't handle before_command_restore_flag.
7205 (read_char, record_menu_key): Don't update before_command_key_count or
7206 before_command_echo_length.
7207 (read_char): Don't handle before_command_restore_flag.
7208
7209 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
7210 in direct-output clauses if it wouldn't be called in the ordinary case.
7211
7212 2003-02-04 Kim F. Storm <storm@cua.dk>
7213
7214 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
7215
7216 2003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7217
7218 * gtkutil.c (remove_from_container): Copying list is not needed.
7219 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
7220 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
7221 on list returned from gtk_container_get_children to avoid memory leak.
7222
7223 2003-02-01 Jason Rumney <jasonr@gnu.org>
7224
7225 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
7226 local malloc.
7227 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
7228 definitions in xpm.h.
7229 (init_xpm_functions): New function.
7230 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
7231 (init_external_image_libraries): Try to load libXpm.dll.
7232
7233 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
7234 timestamp.
7235
7236 2003-01-31 Dave Love <fx@gnu.org>
7237
7238 * syntax.c (Fskip_chars_forward)
7239 (open-paren-in-column-0-is-defun-start): Doc fix.
7240
7241 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
7242
7243 * fileio.c: Support // at start of name for Cygwin (just added proper
7244 preprocessor tests).
7245
7246 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
7247
7248 * Makefile.in: Use @EXEEXT@ for Cygwin.
7249
7250 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
7251
7252 * s/cygwin.h: Added for Cygwin port.
7253
7254 2003-01-31 Juanma Barranquero <lektu@terra.es>
7255
7256 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
7257 when including gif_lib.h.
7258 (init_gif_functions, init_tiff_functions): New functions.
7259 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
7260 Windows. Disable color table lookups. Call library functions
7261 through pointers determined at runtime.
7262 (init_external_image_libraries): Try to load libungif.dll and
7263 libtiff.dll.
7264
7265 2003-01-31 Kenichi Handa <handa@m17n.org>
7266
7267 * xdisp.c (SKIP_GLYPHS): New macro.
7268 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
7269
7270 2003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7271
7272 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
7273
7274 2003-01-30 Dave Love <fx@gnu.org>
7275
7276 * alloc.c (Vgc_elapsed, gcs_done): New variables.
7277 (Fgarbage_collect): Use them.
7278 (init_alloc, syms_of_alloc): Set them up.
7279
7280 2003-01-30 Juanma Barranquero <lektu@terra.es>
7281
7282 * w32fns.c (init_external_image_libraries): Add missing operator.
7283
7284 2003-01-29 Jason Rumney <jasonr@gnu.org>
7285
7286 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
7287 an alternative name for jpeg.dll.
7288
7289 2003-01-29 Kenichi Handa <handa@m17n.org>
7290
7291 * xdisp.c (set_cursor_from_row): Pay attention to string display
7292 properties.
7293
7294 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
7295
7296 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
7297 <escape>.
7298 (keycode_to_xkeysym_table): Reformat and add more comments.
7299 (XTread_socket): Drop special case for backspace.
7300
7301 2003-01-28 Andrew Choi <akochoi@shaw.ca>
7302
7303 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
7304 values in old-style RGB specs.
7305
7306 2003-01-27 Juanma Barranquero <lektu@terra.es>
7307
7308 * w32fns.c (init_external_image_libraries): Try alternate names for the
7309 jpeg dll.
7310
7311 2003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7312
7313 * gtkutil.c (create_dialog, xg_separator_p)
7314 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
7315 before calling strcmp or strlen.
7316
7317 2003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7318
7319 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
7320 and handle image load failure.
7321
7322 2003-01-26 Jason Rumney <jasonr@gnu.org>
7323
7324 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
7325 New functions.
7326 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
7327 Disable color table lookups. Call jpeg library functions
7328 through pointers determined at runtime.
7329 (init_external_image_libraries): Try to load jpeg.dll.
7330
7331 2003-01-25 Richard M. Stallman <rms@gnu.org>
7332
7333 * lisp.h: Declare format2 instead of format1.
7334
7335 * fileio.c (barf_or_query_if_file_exists):
7336 Call format2 instead of format1.
7337
7338 * editfns.c (format2): New function, replaces format1
7339 but takes exactly two Lisp Objects as format args.
7340
7341 * buffer.c (Fkill_buffer): Call format2 instead of format1.
7342
7343 2003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7344
7345 * xterm.h: Change to return value of x_dispatch_event to int.
7346
7347 * xterm.c (x_filter_event): New function.
7348 (event_handler_gdk, XTread_socket): Call x_filter_event.
7349 (x_dispatch_event): Change to return value of finish.
7350 (event_handler_gdk): Use return value from x_dispatch_event.
7351
7352 * xfns.c (x_window): Call create_frame_xic for GTK version to
7353 initialize input methods.
7354
7355 * gtkutil.h: Add (void) prototypes.
7356
7357 * gtkutil.c (create_menus): Remove code that puts the help menu to
7358 the right.
7359
7360 2003-01-25 Jason Rumney <jasonr@gnu.org>
7361
7362 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
7363 [HAVE_PNG]: Sync with xfns.c version.
7364 (png_load): Adjust colors for Windows. Use Windows
7365 bitmaps. Disable color table lookups.
7366 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
7367 (init_png_functions): New function.
7368 (png_read_from_memory, png_load): Call png library functions
7369 through pointers determined at runtime.
7370 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
7371 (init_external_image_libraries): New function.
7372 (init_xfns): Call it.
7373
7374 2003-01-24 Andreas Schwab <schwab@suse.de>
7375
7376 * minibuf.c (Fminibuffer_message): Verify type of parameter.
7377
7378 2003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7379
7380 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
7381 of static initializer.
7382
7383 2003-01-24 Dave Love <fx@gnu.org>
7384
7385 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
7386 architectures.
7387
7388 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
7389 Use __alignof__.
7390
7391 2003-01-24 Kenichi Handa <handa@m17n.org>
7392
7393 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
7394 It it is nonzero, don't pretend that an invisible area doesn't exist.
7395 (command_loop_1): Call adjust_point_for_property with proper
7396 second arg.
7397
7398 2003-01-22 Jason Rumney <jasonr@gnu.org>
7399
7400 Sync changes with xterm.c and xfns.c.
7401
7402 * w32term.c (x_draw_glyph_string_foreground)
7403 (x_draw_composite_glyph_string_foreground): Implement overstriking.
7404
7405 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
7406 phys_cursor's hpos is overwritten. This is still not completely
7407 correct, as it doesn't really make sense to use hpos at all to
7408 get the cursor glyph (as that is relative to the width of the
7409 characters on the line, which may have changed during the update).
7410
7411 * w32term.c (notice_overwritten_cursor): Handle the special case
7412 of the cursor being in the first blank non-text line at the
7413 end of a window.
7414
7415 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
7416 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
7417 Compute from the x position returned by x_draw_glyphs.
7418
7419 (x_display_and_set_cursor): Don't set phys_cursor_width here,
7420 except for NO_CURSOR and system caret, to make phys_cursor_width
7421 contain what its name suggests.
7422 (notice_overwritten_cursor): Consider the cursor image erased if
7423 the output area intersects the cursor image in y-direction.
7424
7425 * w32term.c (note_mode_line_or_margin_highlight): Rename from
7426 note_mode_line_highlight and extend.
7427
7428 * w32term.c (last_window): New variable.
7429 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
7430 (note_mouse_movement): Remove reimplemented code in #if 0.
7431
7432 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
7433 not update_mode_lines, and always set it to 1.
7434
7435 2003-01-21 Jason Rumney <jasonr@gnu.org>
7436
7437 * w32fns.c (IDC_HAND): Define it if system headers don't.
7438
7439 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
7440
7441 * w32term.h (struct w32_output): New member hand_cursor.
7442 (WM_EMACS_SETCURSOR): New message definition.
7443
7444 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
7445 function w32_define_cursor.
7446 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
7447 position, change member name output_data.x to output_data.w32 and
7448 add function w32_define_cursor.
7449 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
7450 and change member name output_data.x to output_data.w32.
7451 (w32_initialize_display_info):
7452 Setup dpyinfo->vertical_scroll_bar_cursor.
7453
7454 * w32fns.c (Vx_hand_shape): New variable.
7455 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
7456 WM_EMACS_SETCURSOR.
7457 (x-create-frame): Setup Cursor types.
7458
7459 2003-01-21 David Ponce <david@dponce.com>
7460
7461 * w32term.c (w32_encode_char): For DIM=1 charset, set
7462 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
7463 x_encode_char change by Kenichi Handa <handa@m17n.org> on
7464 2002-09-30.)
7465 (w32_draw_relief_rect): Declare all args.
7466 (w32_define_cursor): New.
7467
7468 * w32fns.c (w32_load_cursor): New function.
7469 (w32_init_class): Use it.
7470 (x_put_x_image): Declare all args.
7471
7472 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
7473
7474 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
7475
7476 2003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7477
7478 * gtkutil.c: Must include stdio.h before termhooks.h
7479
7480 2003-01-21 Dave Love <fx@gnu.org>
7481
7482 * alloc.c (Fgc_status): Print zombie list.
7483 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
7484 Fix assignment of zombies.
7485 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
7486 Don't take car of non-cons.
7487
7488 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
7489
7490 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
7491
7492 2003-01-20 David Ponce <david@dponce.com>
7493
7494 * w32menu.c (digest_single_submenu): Declare all args.
7495
7496 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
7497 changes in xmenu.c:
7498
7499 (parse_single_submenu): Use individual keymap's prompt
7500 string as pane name, if there is one.
7501 (set_frame_menubar): Save menu_items_n_panes from each call to
7502 parse_single_submenu and use it when calling digest_single_submenu.
7503
7504 2003-01-20 Steven Tamm <steventamm@mac.com>
7505
7506 * macterm.c (XTread_socket): Checks for valid, visible window
7507 before sending a scroll-wheel event.
7508
7509 2003-01-20 Richard M. Stallman <rms@gnu.org>
7510
7511 * xdisp.c (redisplay_window): If mini window's buffer is not
7512 a minibuffer, then redisplay it like other windows.
7513
7514 2003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7515
7516 * gtkutil.c (xg_create_frame_widgets): Check if there is an
7517 external tool bar before setting tool bar height.
7518
7519 2003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7520
7521 * xterm.c (handle_one_xevent): Surround popup_activated
7522 with #ifdef:s for non-toolkit version.
7523
7524 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
7525 (gtkutil.o): New file.
7526 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
7527 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
7528
7529 * gtkutil.c: New file for GTK version.
7530
7531 * gtkutil.h: New file for GTK version.
7532
7533 * xterm.h: Add xt_or_gtk_widget.
7534 Include gtk files for USE_GTK.
7535 (struct x_output): Add toolbar_height.
7536 (struct x_output): Add GTK widgets and Gdk size_hints.
7537 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
7538 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
7539 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
7540
7541 * xterm.c: Include gtkutil.h for USE_GTK.
7542 Declare extern void free_frame_menubar for USE_GTK.
7543 (note_mouse_highlight): Check popup_activated for USE_GTK.
7544 (xt_action_hook): Don't compile if USE_GTK.
7545 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
7546 (xg_scroll_callback): New function.
7547 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
7548 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
7549 for USE_GTK.
7550 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
7551 xg_show_scroll_bar for USE_GTK.
7552 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
7553 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
7554 (event_handler_gdk): New function for USE_GTK.
7555 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
7556 (handle_one_xevent): Make sure widget is mapped before
7557 calling x_real_positions for USE_GTK.
7558 (XTread_socket): Add GTK event loop for USE_GTK.
7559 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
7560 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
7561 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
7562 (x_iconify_frame): Add code for USE_GTK.
7563 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
7564 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
7565 is in gtkutil.c.
7566 (x_term_init): Add initialization for GTK.
7567 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
7568
7569 * xmenu.c: Include gtkutil.h for USE_GTK.
7570 (Fx_popup_menu): Use current position if x and y is NIL.
7571 (single_menu_item, single_menu_item, Fx_popup_dialog):
7572 Check for USE_GTK.
7573 (popup_widget_loop): New function for USE_GTK.
7574 (x_activate_menubar): Add code for USE_GTK.
7575 (popup_activate_callback, popup_deactivate_callback)
7576 (menu_highlight_callback, menubar_selection_callback):
7577 Add USE_GTK versions.
7578 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
7579 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
7580 (free_frame_menubar): Only compile if not USE_GTK. GTK version
7581 is in gtkutil.c.
7582 (popup_selection_callback): New version for USE_GTK.
7583 (create_and_show_popup_menu): New fuction, one USE_GTK version and
7584 one USE_X_TOOLKIT version.
7585 (xmenu_show): Call create_and_show_popup_menu.
7586 (dialog_selection_callback): New version for USE_GTK.
7587 (create_and_show_dialog): New fuction, one USE_GTK version and
7588 one USE_X_TOOLKIT version.
7589 (xdialog_show): Call create_and_show_dialog.
7590
7591 * xfns.c: Include gtkutil for USE_GTK.
7592 (x_window_to_frame, x_any_window_to_frame)
7593 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
7594 (x_top_window_to_frame): Add code for USE_GTK.
7595 (x_set_background_color): Call xg_set_background_color for GTK.
7596 (x_set_menu_bar_lines): Check for USE_GTK.
7597 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
7598 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
7599 (x_window): Call xg_create_frame_widgets for USE_GTK.
7600 (Fx_create_frame): Check for USE_GTK
7601 (Fx_file_dialog): New implementation for USE_GTK.
7602
7603 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
7604 (update_menu_bar): Add check for USE_GTK.
7605 (update_tool_bar): Add check for USE_GTK and external tool bar.
7606 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
7607 (redisplay_internal): Add check for USE_GTK and popup_activated.
7608 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
7609 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
7610 (display_menu_bar): Add check for USE_GTK
7611
7612 * lisp.h: Declare Vx_resource_name extern.
7613
7614 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
7615 for USE_GTK.
7616 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
7617
7618 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
7619 (FRAME_EXTERNAL_TOOL_BAR): New macro.
7620 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
7621
7622 * fileio.c (Fread_file_name): Add check for USE_GTK.
7623
7624 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
7625 Add check for USE_GTK.
7626
7627 * config.in: Added HAVE_GTK
7628
7629 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
7630
7631 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
7632
7633 * charset.h (Funibyte_char_to_multibyte): Export.
7634
7635 2003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7636
7637 * xmenu.c (mouse_position_for_popup): New function.
7638 (Fx_popup_menu): Call mouse_position_for_popup for X and
7639 mouse_position_hook for others.
7640
7641 2003-01-17 Kim F. Storm <storm@cua.dk>
7642
7643 * editfns.c (Finsert): Mention `string-make-multibyte' and
7644 `string-as-multibyte' in doc string.
7645
7646 2003-01-17 Kenichi Handa <handa@m17n.org>
7647
7648 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
7649
7650 * editfns.c (Fformat): Convert an unibyte char argument that is
7651 formatted by "%c" to multibyte if the total result must be a
7652 multibyte string.
7653
7654 2003-01-16 Kim F. Storm <storm@cua.dk>
7655
7656 * process.c (set-process-filter): Document unibyte/multibyte-ness
7657 of string argument.
7658
7659 2003-01-16 Kenichi Handa <handa@m17n.org>
7660
7661 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
7662
7663 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
7664 (re_search_2): Likewise.
7665
7666 2003-01-15 Kenichi Handa <handa@m17n.org>
7667
7668 * xdisp.c (message_dolog): Fix bug of the case that *Message*
7669 buffer is unibyte.
7670
7671 2003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
7672
7673 * fns.c (Fsubstring): Clarify doc string.
7674
7675 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
7676 (Fprevious_char_property_change)
7677 (Fnext_single_char_property_change)
7678 (Fprevious_single_char_property_change, Fnext_property_change)
7679 (Fnext_single_property_change, Fprevious_property_change)
7680 (Fprevious_single_property_change, Fadd_text_properties)
7681 (Fput_text_property, Fset_text_properties)
7682 (Fremove_text_properties, Fremove_list_of_text_properties)
7683 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
7684
7685 2003-01-14 Kim F. Storm <storm@cua.dk>
7686
7687 * process.h (struct Lisp_Process): New member plist replaces old
7688 member private_vars. All uses changed.
7689
7690 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
7691 (QCplist): Rename from QCvars. Change all uses.
7692 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
7693 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
7694 (syms_of_process): Intern, staticpro, defsubr these.
7695 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7696
7697 2003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7698
7699 * m/delta.h: Remove (obsolete).
7700
7701 2003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
7702
7703 * fileio.c (Fdelete_directory, Fdelete_file): Document the
7704 behaviour in front of symlinks.
7705 (Fdelete_file): Raise an error on directories.
7706
7707 2003-01-13 Dave Love <fx@gnu.org>
7708
7709 * fns.c (Freverse): Use QUIT.
7710
7711 2003-01-13 Richard M. Stallman <rms@gnu.org>
7712
7713 * minibuf.c (minibuffer_completion_contents):
7714 Error if point is inside prompt.
7715
7716 * keyboard.c (command_loop_1): Don't redisplay directly
7717 if there's a post-command-hook.
7718
7719 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
7720 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
7721
7722 2003-01-12 Kim F. Storm <storm@cua.dk>
7723
7724 * process.h (struct Lisp_Process): New member private_vars.
7725
7726 * process.c (QCvars): New variable.
7727 (syms_of_process): Intern and staticpro it.
7728 (Fset_process_contact): Removed function.
7729 (Fprocess_variable, Fset_process_variable): New functions.
7730 (syms_of_process): Defsubr them.
7731 (Fstart_process): Initialize private_vars plist to nil.
7732 (Fmake_network_process): New arg :vars to setup the private
7733 variables for new network process.
7734 (server_accept_connection): Copy server's private variables to
7735 client process.
7736
7737 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
7738 crashes). Code rewritten and simplified. Now directly aligns the
7739 pointer and recalculates pure_bytes_used, rather than aligning the
7740 size and adjusting the pointer.
7741
7742 2003-01-11 Kim F. Storm <storm@cua.dk>
7743
7744 * process.c (Fset_process_contact): New function.
7745 (syms_of_process): defsubr it.
7746 (make-network-process): Update doc.
7747
7748 2003-01-10 Andreas Schwab <schwab@suse.de>
7749
7750 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
7751 Reported by Berthold Gunreben <b.gunreben@web.de>.
7752
7753 2003-01-10 Dave Love <fx@gnu.org>
7754
7755 * composite.c (syms_of_composite): Make composition_hash_table weak.
7756
7757 2003-01-09 Kim F. Storm <storm@cua.dk>
7758
7759 * process.c (Fmake_network_process): Convert new port number
7760 to host byte order for `:service t' case. From Mario Lang.
7761
7762 2003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7763
7764 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
7765 instead of XtAppProcessEvent.
7766
7767 * xterm.c (handle_one_xevent): New function.
7768 (x_dispatch_event): New function.
7769 (XTread_socket): Call handle_one_xevent.
7770
7771 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
7772
7773 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
7774 call XQueryPointer to get coordinates.
7775 (popup_get_selection): Do not set popup_activated_flag to zero,
7776 let popup_deactivate_callback do that. Needed for Motif.
7777 Call x_dispatch_event instead of XtDispatchEvent.
7778 (xmenu_show): Calculate root coordinate from frame top/left position.
7779
7780 2003-01-08 Kim F. Storm <storm@cua.dk>
7781
7782 * process.c (server_accept_connection): Fix recording of new
7783 connection's local address in :local property of contact info.
7784 (Fmake_network_process): Record local network address for new
7785 client processes in :local property of contact info.
7786 (format-network-address): Add arg OMIT-PORT. Change callers.
7787
7788 2003-01-07 Dave Love <fx@gnu.org>
7789
7790 * Makefile.in (fns.o): Depend on coding.h.
7791
7792 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
7793
7794 * minibuf.c (Fread_variable): Doc fix.
7795
7796 * eval.c (Fuser_variable_p): Doc change. For custom variables,
7797 use the same test as for custom-variable-p.
7798
7799 2003-01-05 Richard M. Stallman <rms@gnu.org>
7800
7801 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
7802 Count LAST_LINE_MISFIT in scroll margin for end of window.
7803 Move label too_near_end before setting SCROLL_MARGIN_POS.
7804 Set LAST_LINE_MISFIT before jumping there.
7805
7806 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
7807 scroll_conservatively case. If scrolling that much doesn't change
7808 STARTP, move it down one line.
7809
7810 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
7811 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
7812
7813 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
7814 selected frame.
7815
7816 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
7817 (syms_of_keymap): staticpro them.
7818 (Fapropos_internal): Initialize them and clear them out.
7819 Don't GCPRO them.
7820
7821 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
7822 Doc fixes.
7823
7824 * lisp.h: New misc type Lisp_Save_Value.
7825 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
7826 (XSAVE_VALUE): New macro.
7827 (struct Lisp_Save_Value): New data type.
7828 (union Lisp_Misc): Add u_save_value alternative.
7829 (make_save_value): Declared.
7830
7831 * alloc.c (make_save_value): New function.
7832
7833 * xterm.c (x_catch_errors): Save dpy using make_save_value.
7834 (x_catch_errors_unwind): Call XSync.
7835
7836 2003-01-01 Richard M. Stallman <rms@gnu.org>
7837
7838 * window.c (window_scroll_pixel_based): Partially undo last change.
7839
7840 * keyboard.c (command_loop_1): Call adjust_point_for_property
7841 in direct action cases for Qforward_char and Qbackward_char.
7842 Set already_adjusted so it won't be done twice.
7843
7844 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
7845
7846 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
7847 type definition of size_t.
7848
7849 2003-01-02 Steven Tamm <steventamm@mac.com>
7850
7851 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
7852 distinguish Carbon GUI builds from X11 builds on darwin.
7853
7854 2002-12-30 Steven Tamm <steventamm@mac.com>
7855
7856 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
7857 to default to t.
7858
7859 2002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
7860
7861 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
7862
7863 2002-12-28 Steven Tamm <steventamm@mac.com>
7864
7865 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
7866 allow building in a different directory than source. Uses some
7867 GNU Make extensions, but there is no other make on Mac OS X.
7868
7869 2002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
7870
7871 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
7872 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
7873 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
7874 (Fstring_to_number): Mention the returned value in the doc strings.
7875
7876 2002-12-23 Richard M. Stallman <rms@gnu.org>
7877
7878 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
7879 <scroll-down-aggressively>: Doc fix.
7880
7881 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
7882 string as pane name, if there is one.
7883 (set_frame_menubar): Save menu_items_n_panes from each call to
7884 parse_single_submenu and use it when calling digest_single_submenu.
7885
7886 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
7887 Don't try to make last line fully visible if it is past end of window.
7888
7889 2002-12-22 Steven Tamm <steventamm@mac.com>
7890
7891 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
7892 (mac_menu_show): Add support for hierarchical popup menus.
7893 (add_menu_item): Remove indentation support.
7894 (fill_submenu, fill_menu): Create hierarchical menus
7895 instead of using indentation.
7896
7897 2002-12-22 Richard M. Stallman <rms@gnu.org>
7898
7899 * xdisp.c (try_cursor_movement): Don't call try_window here.
7900 (redisplay_window): Never redisplay minibuffer when inactive.
7901
7902 * window.c (select_window_1): Undo 9/21 change.
7903
7904 2002-12-22 Steven Tamm <steventamm@mac.com>
7905
7906 * macterm.c (XTread_socket): Call KeyTranslate for control and
7907 meta to deal correctly shifted non-alpha characters, like C-S-5
7908 being treated like C-%. Does not look for shift key to deal
7909 with masking off control-key with mac-reverse-ctrl-meta.
7910
7911 2002-12-21 Richard M. Stallman <rms@gnu.org>
7912
7913 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
7914 If it is non-nil, run timers. Use an unwind-protect to requeue
7915 the events that were read ahead.
7916 (popup_get_selection_unwind): New subroutine.
7917 (popup_get_selection_queue): File-scope variable now holds that queue.
7918 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
7919 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
7920 Use an unwind-protect to pop down the dialog box.
7921 (xdialog_show_unwind): New subroutine implements that.
7922
7923 * xdisp.c (row_containing_pos): Change exit test using last_y.
7924 (try_window_id): Abort if row_containing_pos returns null.
7925
7926 * lread.c (load_error_handler): New function.
7927 (Fload): Handle errors in Fsubstitute_in_file_name.
7928 Don't expect Fsignal to return.
7929
7930 * eval.c: Errors and throws work right with interrupt blocking.
7931 (struct catchtag): New elt interrupt_input_blocked.
7932 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
7933 (internal_catch, Fcondition_case, internal_condition_case)
7934 (internal_condition_case_1, internal_condition_case_2): Save it.
7935 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
7936
7937 * editfns.c (Fformat): Add parens.
7938
7939 * dired.c (file_name_completion): Fix that change.
7940 Delete special quit-handling code; just use QUIT.
7941
7942 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com> (tiny change)
7943
7944 * dired.c (file_name_completion): Close directory on error
7945 just as in directory_files_internal.
7946
7947 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
7948
7949 * window.c (Fset_window_configuration): Set old_point to correct
7950 value when new_current_buffer == current_buffer.
7951
7952 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
7953
7954 Revisited my earlier fix for the following entry in etc/PROBLEMS:
7955 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
7956 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
7957
7958 These changes were in part based upon suggestions made by Peter
7959 'Luna' Runestig [peter@runestig.com].
7960
7961 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
7962 g_b_init_get_token_information, g_b_init_lookup_account_sid,
7963 g_b_init_get_sid_identifier_authority ): Add several static
7964 global variables.
7965
7966 * w32.c (globals_of_w32): New function. Used to initialize those
7967 global variables that must always be initialized on startup even
7968 when the global variable initialized is non zero. Its primary
7969 purpose at this time is to set the global variables
7970 g_b_init_is_windows_9x, g_b_init_open_process_token,
7971 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
7972 g_b_init_get_sid_identifier_authority to 0 on startup.
7973 Called from main.
7974
7975 * w32.c (is_windows_9x): Perform initialization only if
7976 g_b_init_is_windows_9x is equal to 0. On initialization set
7977 g_b_init_is_windows_9x equal to 1.
7978
7979 * w32.c (open_process_token): Perform initialization only if
7980 g_b_init_open_process_token is equal to 0. On initialization set
7981 g_b_init_open_process_token equal to 1.
7982
7983 * w32.c (get_token_information): Perform initialization only if
7984 g_b_init_get_token_information is equal to 0. On initialization
7985 set g_b_init_get_token_information equal to 1.
7986
7987 * w32.c (lookup_account_sid): Perform initialization only if
7988 g_b_init_lookup_account_sid is equal to 0. On initialization
7989 set g_b_init_lookup_account_sid equal to 1.
7990
7991 * w32.c (get_sid_identifier_authority): Perform initialization
7992 only if g_b_init_get_sid_identifier_authority is equal to 0.
7993 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
7994
7995 * w32fns.c (globals_of_w32fns): New function. Used to initialize
7996 those global variables that must always be initialized on startup
7997 even when the global variable initialized is non zero.
7998 Its primary purpose at this time is to initialize the global variable
7999 track_mouse_event_fn.
8000
8001 * w32fns.c (w32_wnd_proc): Remove initialization of
8002 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
8003
8004 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
8005
8006 * w32menu.c (globals_of_w32menu): New function. Used to
8007 initialize those global variables that must always be initialized
8008 on startup even when the global variable initialized is non zero.
8009 Its primary purpose at this time is to initialize the global
8010 variables get_menu_item_info and set_menu_item_info.
8011
8012 * w32menu.c (initialize_frame_menubar): Remove initialization of
8013 get_menu_item_info and set_menu_item_info.
8014
8015 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
8016
8017 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
8018 Declare them.
8019
8020 * emacs.c (main): Call globals_of_w32 prior to calling
8021 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
8022 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
8023 is defined.
8024
8025 * w32term.c (x_update_window_begin): Fix Windows API error
8026 detected by BoundsChecker. Test to determine if
8027 w32_system_caret_hwnd is NULL prior to attempting to use
8028 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
8029
8030 * w32term.c (x_update_window_end): Fix Windows API error
8031 detected by BoundsChecker. Test to determine if
8032 w32_system_caret_hwnd is NULL prior to attempting to use
8033 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
8034
8035 2002-12-17 Kenichi Handa <handa@m17n.org>
8036
8037 * coding.c (coding_system_require_warning): New variable.
8038 (syms_of_coding): DEFVAR it.
8039
8040 * coding.h (coding_system_require_warning): Extern it.
8041
8042 * fileio.c (choose_write_coding_system): Even if
8043 Vcoding_system_for_write is non-nil, if
8044 coding_system_require_warning is nonzero, call
8045 Vselect_safe_coding_system_function.
8046
8047 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
8048
8049 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
8050 (lisp): Add font-core.
8051
8052 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
8053
8054 * textprop.c (text_read_only): New arg `propval'.
8055 (get_char_property_and_overlay): Remove unused var `next_overlay'.
8056 (verify_interval_modification): Use text_read_only's new arg.
8057
8058 2002-12-13 Kenichi Handa <handa@m17n.org>
8059
8060 * coding.c (Funencodable_char_position): Set pend correctly.
8061
8062 2002-12-12 Jason Rumney <jasonr@gnu.org>
8063
8064 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
8065 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
8066 Be more careful about when help_events are generated.
8067
8068 2002-12-12 Steven Tamm <steventamm@mac.com>
8069
8070 * macterm.c (mac_check_for_quit_char): Correctly set the
8071 modifiers of the event to 0.
8072 * mac.c (sys_select): Duplicate rfds before calling select to
8073 ensure that rfds survive the while loop.
8074
8075 2002-12-11 Kim F. Storm <storm@cua.dk>
8076
8077 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
8078 row_containing_pos returned NULL.
8079
8080 2002-12-10 Steven Tamm <steventamm@mac.com>
8081
8082 * mac.c (sys_read): Fix sys_read to not call select if IO is
8083 non-blocking.
8084 (sys_select): Fix sys_select to not use a timeout larger than
8085 the one given.
8086
8087 2002-12-10 Juanma Barranquero <lektu@terra.es>
8088
8089 * editfns.c (Fformat): Use alloca, not _alloca.
8090
8091 2002-12-09 Richard M. Stallman <rms@gnu.org>
8092
8093 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
8094 as the last thing.
8095
8096 2002-12-09 Dave Love <fx@gnu.org>
8097
8098 * s/sol2-8.h: Removed. (Not necessary.)
8099
8100 2002-12-09 Matthew Swift <swift@alum.mit.edu>
8101
8102 * editfns.c (Fformat): Handle precision in string conversion
8103 specifiers like libc functions do (ie, print at most that many
8104 characters).
8105
8106 2002-12-08 Richard M. Stallman <rms@gnu.org>
8107
8108 * xdisp.c (row_containing_pos): Check more carefully
8109 whether charpos is really in the row before returning it.
8110
8111 2002-12-07 Steven Tamm <steventamm@mac.com>
8112
8113 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
8114
8115 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
8116 each stack frame. This may change as it could be time consuming.
8117
8118 * macterm.c (mac_check_for_quit_char, quit_char_comp)
8119 (init_quit_char_handler, mac_determine_quit_char_modifiers)
8120 (mac_initialize): Add code to check for pressing of quit_char
8121 in the OS event queue.
8122
8123 * mac.c (sys_select): Call mac_check_for_quit_char every second
8124 while blocking on select.
8125
8126 * mac.c (sys_read): Use sys_select to test for input first
8127 before calling read, to allow C-g to break.
8128
8129 2002-12-07 Richard M. Stallman <rms@gnu.org>
8130
8131 * minibuf.c (Fcompleting_read): Doc fix.
8132
8133 * lread.c (syms_of_lread) <load-history>: Doc fix.
8134
8135 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
8136
8137 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
8138 autoload.
8139
8140 * data.c (Fdefalias): Record in load-history redefining an autoload.
8141
8142 * alloca.c: Undo ifdef change accidentally made on 12-04.
8143
8144 2002-12-06 Francesco Potorti` <pot@gnu.org>
8145
8146 * xfns.c (png_load): Avoid double gamma correction for PNG images.
8147
8148 2002-12-04 Richard M. Stallman <rms@gnu.org>
8149
8150 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
8151
8152 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
8153
8154 * alloca.c: Don't use #error.
8155
8156 2002-12-03 Dave Love <fx@gnu.org>
8157
8158 * buffer.c (Qucs_set_table_for_input): New.
8159 (Fget_buffer_create): Use it.
8160 (Qset_buffer_major_mode_hook): Deleted.
8161 (Fset_buffer_major_mode): Revert previous change.
8162 (init_buffer_once): Intern ucs-set-table-for-input.
8163 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
8164 Add &Qucs_set_table_for_input.
8165
8166 2002-12-03 Andreas Schwab <schwab@suse.de>
8167
8168 * callint.c (Fcall_interactively): Use next_event only if less
8169 than key_count.
8170
8171 2002-12-02 Andrew Choi <akochoi@shaw.ca>
8172
8173 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
8174 names to 255 characters.
8175
8176 * macterm.c (XTread_socket): If all frames have been collapsed,
8177 expand the first one before handling drag-and-drop events.
8178
8179 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
8180 which is detected by autoconf.
8181
8182 2002-12-01 Steven Tamm <steventamm@mac.com>
8183
8184 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
8185 offset in two hints table to allow prebinding to be redone and
8186 allow the executable to be stripped.
8187
8188 2002-11-29 Dave Love <fx@gnu.org>
8189
8190 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
8191 already provided.
8192
8193 2002-11-29 Richard M. Stallman <rms@gnu.org>
8194
8195 * xdisp.c (start_display): Check more intelligently for
8196 whether the line is continued.
8197 (move_it_vertically_backward): Clear it->continuation_lines_width.
8198
8199 2002-11-28 Dave Love <fx@gnu.org>
8200
8201 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
8202 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
8203
8204 2002-11-27 Steven Tamm <steventamm@mac.com>
8205
8206 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
8207 more descriptive error output from lread.c:Fload upon most require
8208 cycles during boostrapping.
8209
8210 2002-11-27 Jason Rumney <jasonr@gnu.org>
8211
8212 * fileio.c (Finsert_file_contents): Give a more appropriate error
8213 for files bigger than 2Gb when off_t is 32 bit.
8214
8215 * dired.c (Ffile_attributes): Don't return negative file sizes for
8216 files bigger than 2Gb when off_t is 32 bit.
8217
8218 2002-11-27 Dave Love <fx@gnu.org>
8219
8220 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
8221
8222 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
8223 Test GETPGRP_VOID instead.
8224 [BSD_TERMIOS]: Remove definitions (never used).
8225
8226 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
8227 Don't define.
8228 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
8229
8230 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8231
8232 2002-11-25 Jason Rumney <jasonr@gnu.org>
8233
8234 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
8235 supported.
8236
8237 2002-11-25 Dave Love <fx@gnu.org>
8238
8239 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
8240
8241 * Makefile.in (TEMACS_LDFLAGS): Update last change.
8242
8243 2002-11-25 Andreas Schwab <schwab@suse.de>
8244
8245 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
8246
8247 2002-11-24 Steven Tamm <steventamm@mac.com>
8248
8249 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
8250 determine the size of pointers alloced in unexed space instead
8251 of using possibly invalid emacs_zone pointers. This fixes the
8252 binary incompatibility problems caused by updates to libSystem.B.
8253
8254 2002-11-24 Richard M. Stallman <rms@gnu.org>
8255
8256 * search.c (Fstring_match): Doc fix.
8257
8258 * callint.c (Fcall_interactively): If a command fails because
8259 `*' detects a read-only buffer, but RECORD_FLAG is set,
8260 record it anyway if the args don't actually do tty input.
8261
8262 2002-11-22 Dave Love <fx@gnu.org>
8263
8264 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
8265
8266 * keyboard.c (interrupt_signal): Provide forward declaration.
8267 (kbd_buffer_store_event): Don't declare interrupt_signal.
8268
8269 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
8270
8271 2002-11-21 Richard M. Stallman <rms@gnu.org>
8272
8273 * eval.c (interactive_p): Skip any number of bytecode
8274 and special form frames, in any order.
8275
8276 2002-11-20 Jason Rumney <jasonr@gnu.org>
8277
8278 * w32fns.c (convert_mono_to_color_image): New function.
8279 (xbm_load, xbm_load_image): Use it when foreground or background
8280 is explicitly set.
8281
8282 2002-11-19 Dave Love <fx@gnu.org>
8283
8284 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
8285
8286 2002-11-18 Jason Rumney <jasonr@gnu.org>
8287
8288 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
8289 (XPutPixel): Swap blue and red.
8290 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
8291 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
8292 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
8293 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
8294
8295 2002-11-18 Dave Love <fx@gnu.org>
8296
8297 * m/orion105.h (HAVE_ALLOCA): Don't define.
8298
8299 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
8300
8301 * m/intel386.h: Don't include alloca.h or define alloca.
8302
8303 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
8304 malloc, realloc, calloc.
8305
8306 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
8307 (bcmp): Don't define.
8308
8309 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
8310
8311 * m/amdahl.h: Don't define LIB_STANDARD.
8312
8313 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
8314
8315 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
8316
8317 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
8318 Don't include alloca.h.
8319
8320 * s/aix3-2.h (HAVE_FSYNC): Don't define.
8321
8322 * regex.c (_GNU_SOURCE): Don't define.
8323
8324 * process.c (_GNU_SOURCE): Don't define.
8325
8326 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8327
8328 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
8329
8330 * s/sol2-8.h: Include sol2-6.h.
8331
8332 2002-11-18 Miles Bader <miles@gnu.org>
8333
8334 * dispextern.h (struct face): Add `overstrike' field.
8335 * xterm.c (x_draw_glyph_string_foreground)
8336 (x_draw_composite_glyph_string_foreground): Implement overstriking.
8337 * xfaces.c (load_face_font): Set `face->overstrike' based on
8338 result from choose_face_font.
8339 (best_matching_font, choose_face_font): Add `needs_overstrike'
8340 argument, and use it to return whether overstriking is desirable
8341 for this face/font combo.
8342 (set_font_frame_param: Pass new argument to choose_face_font.
8343
8344 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
8345
8346 This change is my fix for the following entry in etc/PROBLEMS:
8347 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
8348 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
8349
8350 * w32.c: Added wrapper functions around the win32 API functions
8351 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
8352 GetSidIdentifierAuthority. These wrapper functions serve two
8353 purposes:
8354 1. They ensure that the wrapped function can never be called
8355 when Emacs is running on an operating system on which they are
8356 not supported (Microsoft Windows 95 / 98 / ME).
8357 2. They call the wrapped functions via function pointers rather
8358 than calling them directly. This avoids taking advantage of the
8359 undocumented fact that although these functions are not supported
8360 in the 9x branch of Microsoft Windows, the functions do exist in
8361 the version of advapi32.dll that is found in the 9x branch of
8362 Microsoft Windows.
8363
8364 * w32.c (init_user_info): Replace the calls to the win32 API
8365 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
8366 and GetSidIdentifierAuthority with calls to the newly added
8367 wrapper functions.
8368
8369 * w32.h: Added extern declarations for the following functions:
8370 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
8371 syms_of_w32menu, and void syms_of_fontset.
8372
8373 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
8374 function pointer track_mouse_event_fn in the handler for the
8375 WM_SETFOCUS message.
8376
8377 * w32menu.c (initialize_frame_menubar): Add code to
8378 reinitialize the function pointers set_menu_item_info and
8379 get_menu_item_info.
8380
8381 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
8382
8383 * sound.c: Added a partial implementation of play-sound-internal
8384 for Microsoft Windows. Added various #ifdef / #else / #endif
8385 code blocks to separate the code that will compile under
8386 Microsoft Windows from the code that is specific to Gnu/Linux.
8387 Moved several blocks of code around to make this separation of code
8388 into Windows compatible and Gnu/Linux compatible code blocks easier.
8389
8390 * makefile.w32-in: Include sound.c and link with WinMM.lib.
8391
8392 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
8393 added support for play-sound-internal under Windows would be
8394 included in the build of Emacs.
8395
8396 2002-11-16 Jason Rumney <jasonr@gnu.org>
8397
8398 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
8399
8400 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
8401
8402 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
8403
8404 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
8405 (adjust_point_for_property): Move out of display and invisible even if
8406 we were already inside before (in case a property was added while
8407 we weren't looking). Be more careful when handling invisible props.
8408 Skip invisible text as if it really wasn't there at all.
8409
8410 2002-11-15 Jason Rumney <jasonr@gnu.org>
8411
8412 * w32term.c (x_draw_image_foreground)
8413 (w32_draw_image_foreground_1): Use standard copy and invert
8414 operations to draw images.
8415
8416 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
8417 depth of 1.
8418 (xbm_read_bitmap_data): Invert bits as xbm is read in.
8419 (XPutPixel): Don't invert bits here.
8420
8421 2002-11-15 Jason Rumney <jasonr@gnu.org>
8422
8423 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
8424 (w32_draw_image_foreground_1): Handle image masks.
8425 (x_draw_image_glyph_string): Don't BitBlt transparently.
8426
8427 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
8428 (x_from_xcolors): Adjust RGB values for W32.
8429 (image_background, image_background_transparent)
8430 (postprocess_image, x_to_xcolors, x_disable_image)
8431 (x_build_heuristic_mask): Adapt for W32 and enable.
8432 (x_create_x_image_and_pixmap): Mark images with palettes as such.
8433 (xbm_load): Remove unused variable.
8434
8435 2002-11-14 Richard M. Stallman <rms@gnu.org>
8436
8437 * buffer.c (syms_of_buffer): Doc fix.
8438
8439 2002-11-14 Dave Love <fx@gnu.org>
8440
8441 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
8442
8443 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
8444 * xmenu.c (unuse_menu_items, digest_single_submenu):
8445 * xfns.c (x_put_x_image):
8446 * xdisp.c (message2_nolog, set_message):
8447 * undo.c (record_point):
8448 * terminfo.c (tparam):
8449 * syntax.c (scan_sexps_forward):
8450 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
8451 * composite.c (update_compositions):
8452 * cm.c (calccost, cmgoto):
8453 * charset.c (c_string_width): Declare all args (per C99).
8454
8455 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
8456
8457 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
8458 Don't declare.
8459
8460 * emacs.c (main) [!VMS]: Avoid third arg.
8461
8462 * fns.c (Fcopy_sequence): Doc fix.
8463 (Fmap_char_table): Cast `call2'.
8464
8465 2002-11-14 Francesco Potorti` <pot@gnu.org>
8466
8467 * s/sol2-8.h: New file.
8468
8469 2002-11-14 Kim F. Storm <storm@cua.dk>
8470
8471 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
8472 dependency on `risky-local-variable' and the :propertize form.
8473
8474 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
8475
8476 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
8477
8478 * syntax.c (scan_sexps_forward): Undo last patch.
8479 Use a more obvious fix: check eob before updating the syntax table.
8480
8481 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
8482
8483 * syntax.c (scan_sexps_forward): Update syntax table before reading
8484 a char rather than after so we don't update the table past eob.
8485
8486 2002-11-09 Dave Love <fx@gnu.org>
8487
8488 * buffer.c (Fset_buffer_major_mode): Fix last change.
8489
8490 * regex.c (regexec): Fix pmatch declaration.
8491
8492 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
8493
8494 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
8495 to self-inserting characters.
8496 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
8497
8498 * coding.c (Vtranslation_table_for_input): New.
8499 (syms_of_coding): DEFVAR it.
8500
8501 2002-11-08 Juanma Barranquero <lektu@terra.es>
8502
8503 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
8504 window.
8505
8506 2002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8507
8508 * process.c (Fformat_network_address): Remove unused locals p,
8509 cp, and i.
8510
8511 2002-11-06 Dave Love <fx@gnu.org>
8512
8513 * buffer.c (Qset_buffer_major_mode_hook): New.
8514 (Fset_buffer_major_mode): Use it.
8515
8516 2002-11-06 Richard M. Stallman <rms@gnu.org>
8517
8518 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
8519 and stop_polling.
8520
8521 * process.c (wait_reading_process_input):
8522 Test POLLING_PROBLEM_IN_SELECT, not hpux.
8523 Avoid initialization for auto Lisp_Object var.
8524
8525 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
8526
8527 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
8528
8529 2002-11-05 Richard M. Stallman <rms@gnu.org>
8530
8531 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
8532
8533 * callint.c (Fcall_interactively): New local filter_specs.
8534 (Fcall_interactively): Check for progn as well as let.
8535 Add a gcpro.
8536 (Qprogn): New variable.
8537 (syms_of_callint): Staticpro and init Qprogn.
8538
8539 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
8540
8541 * lread.c (Feval_buffer): Doc fix.
8542
8543 2002-11-04 Dave Love <fx@gnu.org>
8544
8545 * keyboard.c (read_char): Always translate iff
8546 Vkeyboard_translate_table is a char table and c is valid.
8547
8548 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
8549 and fix C types.
8550
8551 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
8552
8553 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
8554
8555 * editfns.c (get_pos_property): Don't hardcode Qfield.
8556
8557 * keyboard.c (adjust_point_for_property): Handle `display' prop on
8558 overlays. Also handle `invisible' prop.
8559
8560 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
8561
8562 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
8563 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
8564
8565 2002-11-01 Andreas Schwab <schwab@suse.de>
8566
8567 * editfns.c (Fmessage): Revert last change to properly handle %%.
8568
8569 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
8570
8571 * xmenu.c (unuse_menu_items): New fun.
8572 (menu_items_inuse): New var.
8573 (syms_of_xmenu): Initialize it.
8574 (init_menu_items): Use it to detect re-entrance.
8575 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
8576 (Fx_popup_menu): Remove spurious XSETFRAME.
8577
8578 * editfns.c (find_field): Make an exception for nil fields.
8579
8580 2002-11-01 Dave Love <fx@gnu.org>
8581
8582 * m/gec63.h: Deleted.
8583
8584 2002-10-31 Dave Love <fx@gnu.org>
8585
8586 * xterm.c (XTread_socket): Fix last change.
8587 (xaw_scroll_callback): Cast call_data to long to avoid warning.
8588
8589 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
8590
8591 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
8592
8593 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
8594
8595 * editfns.c (overlays_around, get_pos_property): New funs.
8596 (find_field): Use them.
8597 Also be careful not to modify POS before its last use.
8598 (Fmessage): Don't Fformat if there's nothing to format.
8599
8600 2002-10-30 Dave Love <fx@gnu.org>
8601
8602 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
8603 [HAVE_PTY_H]; Include pty.h.
8604
8605 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
8606
8607 * xterm.c (Qeql): Declare.
8608 (Vx_keysym_table): New.
8609 (syms_of_xterm): Initialize it.
8610 (XTread_socket): Use it. Deal with ASCII keysyms.
8611 (XSetIMValues) [HAVE_X11R6]: Prototype.
8612
8613 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
8614 (lispy_kana_keys): Comment out.
8615 (make_lispy_event) [XK_kana_A]: Comment out.
8616 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
8617 Fix sprintf call.
8618
8619 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
8620 regexp.h change).
8621 (TERMINFO, LIBS_TERMCAP): Define.
8622
8623 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
8624 (bcmp): Define conditional on HAVE_BCMP.
8625 (NO_SIOCTL_H): Don't define.
8626 (TIOCSIGSEND): Don't make conditional on IRIX6.
8627
8628 * s/sol2-5.h: Don't include strings.h.
8629 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
8630
8631 * s/irix6-0.h (IRIX6): Don't define.
8632 (bcopy, bcmp, bzero): Don't undef.
8633
8634 * s/irix6-5.h: Don't include strings.h.
8635 (IRIX6): Don't define.
8636 (bcopy, bcmp, bzero): Don't undef.
8637
8638 * syntax.c (Fforward_comment): Doc fix.
8639
8640 2002-10-29 Kim F. Storm <storm@cua.dk>
8641
8642 * process.c (Fsignal_process): Allow PROCESS to be specified by
8643 name in addition to pid (as integer or string).
8644
8645 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
8646
8647 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
8648 environments.
8649
8650 2002-10-27 Kim F. Storm <storm@cua.dk>
8651
8652 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
8653
8654 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
8655
8656 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
8657
8658 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
8659
8660 2002-10-26 Richard M. Stallman <rms@gnu.org>
8661
8662 * editfns.c (Fformat): Detect invalid format letters for floats.
8663
8664 2002-10-25 Kenichi Handa <handa@m17n.org>
8665
8666 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
8667 (x_set_title): Likewise.
8668
8669 2002-10-25 Juanma Barranquero <lektu@terra.es>
8670
8671 * macgui.h:
8672 * w32gui.h: Remove definition of XColor.
8673
8674 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
8675
8676 2002-10-24 Kim F. Storm <storm@cua.dk>
8677
8678 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
8679 Callers changed (supply dummy arg).
8680
8681 * lisp.h (get_window_cursor_type): Update prototype.
8682
8683 * w32term.c (x_display_and_set_cursor): Get active_cursor from
8684 get_window_cursor_type to track system caret.
8685
8686 2002-10-24 Kim F. Storm <storm@cua.dk>
8687
8688 * process.c (Fformat_network_address): New function.
8689 (syms_of_process): Defsubr it.
8690 (list_processes_1): Use it to format :local/:remote address if
8691 service/host is not set; before Emacs would crash in that case.
8692 (Fmake_network_process): Don't use Ffind_operation_coding_system
8693 to setup coding system if host or service is not set.
8694
8695 2002-10-23 Juanma Barranquero <lektu@terra.es>
8696
8697 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
8698
8699 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
8700 COLORREF.
8701
8702 * macgui.h:
8703 * w32gui.h: Add definition of XColor.
8704
8705 * macfns.c:
8706 * w32fns.c:
8707 * xfaces.c: Remove definition of XColor.
8708
8709 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
8710
8711 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
8712
8713 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
8714 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
8715 window if it is dedicated.
8716 (Fshrink_window): Add preserve_before as was done for enlarge_window.
8717 (Vspecial_display_function): Update docstring.
8718
8719 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
8720 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
8721 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
8722
8723 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
8724
8725 * casefiddle.c (casify_region): Don't treat a prefix char as part
8726 of a word when at the beginning.
8727
8728 2002-10-17 Juanma Barranquero <lektu@terra.es>
8729
8730 * lread.c (syms_of_lread): Fix typos.
8731
8732 2002-10-17 Dave Love <fx@gnu.org>
8733
8734 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
8735
8736 2002-10-16 Richard M. Stallman <rms@gnu.org>
8737
8738 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
8739
8740 2002-10-14 Juanma Barranquero <lektu@terra.es>
8741
8742 * w16select.c (syms_of_win16select): Fix docstring for
8743 `selection-coding-system'.
8744
8745 * w32select.c (syms_of_w32select): Likewise.
8746
8747 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
8748
8749 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
8750 a backslash-quoted char.
8751 (scan_lists, scan_sexps_forward): Pacify the compiler.
8752
8753 2002-10-13 Richard M. Stallman <rms@gnu.org>
8754
8755 * window.c (window_scroll): Set immediate_quit.
8756
8757 * print.c (print): When backquote form is the car of a list,
8758 output in old style. Use old_backquote_output to output all
8759 comma forms inside it in old style too.
8760
8761 * buffer.h (struct buffer): Move `undo_list' down below `name'.
8762
8763 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
8764
8765 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
8766 batch mode).
8767
8768 * lread.c (Fload): Doc fix (load-suffixes).
8769
8770 2002-10-10 Steven Tamm <steventamm@mac.com>
8771
8772 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
8773 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
8774 Also switch the default to Qnil from Qt.
8775
8776 2002-10-08 Kenichi Handa <handa@m17n.org>
8777
8778 * coding.c (code_convert_region): When we need more GAP for
8779 conversion, pay attention to the case that coding->produced is not
8780 greater than coding->consumed.
8781
8782 2002-10-07 Richard M. Stallman <rms@gnu.org>
8783
8784 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
8785
8786 2002-10-06 Andrew Choi <akochoi@shaw.ca>
8787
8788 * macmenu.c (mac_menu_show): Add j to count menu items; match
8789 menu_item_selection to it to find selected item.
8790
8791 2002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8792
8793 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
8794 cases. The correct fix is to pass ReparentNotify to Xt.
8795 The shell widget interprets ConfigureNotify differently depending
8796 on if it has been reparented or not.
8797
8798 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
8799
8800 * editfns.c (Fformat_time_string): Doc fix.
8801
8802 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
8803
8804 * fns.c (Flength): Doc fix.
8805
8806 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
8807
8808 * keyboard.c (keyremap): New struct.
8809 (read_key_sequence): Use it: globally replace keytran_foo with
8810 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
8811 keytran_next and fkey_next to just `next'.
8812
8813 2002-10-04 Steven Tamm <steventamm@mac.com>
8814
8815 * macterm.c (keycode_to_xkeysym_table): Change return to be
8816 treated like an X keysym.
8817
8818 2002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8819
8820 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
8821 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
8822 This is to also handle x/y changes that occur because of a resize.
8823
8824 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
8825
8826 * frame.c (Vdelete_frame_functions): New variable.
8827 (syms_of_frame): Initialize and defvar it.
8828 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
8829 it when frame's `tooltip' parameter is non-nil.
8830
8831 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
8832
8833 * w32fns.c (x_create_tip_frame): Likewise.
8834
8835 * macfns.c (x_create_tip_frame): Likewise.
8836
8837 2002-09-30 Kenichi Handa <handa@m17n.org>
8838
8839 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
8840 -1 before calling ccl_driver.
8841
8842 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
8843 Only when it is non-nil, handle composition sequence.
8844 (setup_coding_system) <0>: Don't force composition handling.
8845
8846 * Makefile.in (lisp, shortlisp): Add utf-16.elc
8847
8848 2002-09-29 Richard M. Stallman <rms@gnu.org>
8849
8850 * search.c (Freplace_match): Adjust match data for the substitution
8851 just made in the buffer.
8852
8853 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
8854 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
8855
8856 2002-09-27 Richard M. Stallman <rms@gnu.org>
8857
8858 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
8859 (read_char): Use them. Do all exits thru the end of the function.
8860
8861 2002-09-27 Kenichi Handa <handa@etl.go.jp>
8862
8863 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
8864 is nil.
8865
8866 2002-09-26 Richard M. Stallman <rms@gnu.org>
8867
8868 * regex.h (__restrict_arr): Don't define if already defined.
8869
8870 * coding.c (run_pre_post_conversion_on_str):
8871 Save and restore Vdeactivate_mark.
8872
8873 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
8874
8875 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
8876
8877 2002-09-26 Kenichi Handa <handa@etl.go.jp>
8878
8879 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
8880 nonzero, try face's family at first. Otherwise try FAMILY at first.
8881 (choose_face_font): If C is a single byte char or latin-1, call
8882 try_font_list with PREFER_FACE_FAMILY 1.
8883
8884 2002-09-21 Richard M. Stallman <rms@gnu.org>
8885
8886 * window.c (select_window_1): Don't select frame.
8887 Set frame's selected window only when frame itself is selected.
8888 (Fselect_window): Doc fix.
8889
8890 2002-09-18 Kim F. Storm <storm@cua.dk>
8891
8892 * process.c (make-network-process): Doc fix (there is no
8893 network-server-log-function hook).
8894
8895 2002-09-18 Richard M. Stallman <rms@gnu.org>
8896
8897 * print.c (print): Clear out the unused parts of Vprint_number_table.
8898 (syms_of_print): Doc fix for `print-number-table'.
8899
8900 * unexelf.c (unexec): Undo previous change.
8901
8902 2002-09-17 Andreas Schwab <schwab@suse.de>
8903
8904 * m/alpha.h [LINUX]: Don't define DATA_START.
8905
8906 2002-09-16 Dave Love <fx@gnu.org>
8907
8908 * unexelf.c (unexec): Deal with .got, reinstating change from
8909 25-08-1999.
8910
8911 2002-09-13 Richard M. Stallman <rms@gnu.org>
8912
8913 * s/sol2-6.h (UNEXEC): Comment out definition.
8914
8915 * unexsol.c (unexec): Don't downcase first letter of error msg.
8916
8917 * xfaces.c (Fcolor_supported_p): Just one arg is required.
8918
8919 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
8920
8921 * unexsol.c: Include buffer.h, charset.h, coding.h.
8922
8923 2002-09-11 Richard M. Stallman <rms@gnu.org>
8924
8925 * unexsol.c: Don't use report_file_error; do it by hand
8926 using dlerror.
8927
8928 * process.c (wait_reading_process_input, both versions):
8929 Before calling turn_on_atimers, call stop_polling.
8930
8931 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
8932
8933 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
8934 we go to too_near_end, call clear_glyph_matrix.
8935 (redisplay_window): After make_cursor_line_fully_visible,
8936 call clear_glyph_matrix and bypass `goto done'.
8937
8938 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
8939 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
8940
8941 2002-09-10 Richard M. Stallman <rms@gnu.org>
8942
8943 * fileio.c (Fdo_auto_save): Catch error making directory.
8944 Only call push_message if we need to.
8945 At the same time, make an unwind-protect to pop it.
8946 Rename local message_p to old_message_p.
8947 (do_auto_save_make_dir, do_auto_save_eh): New functions.
8948 (do_auto_save_unwind): Don't call pop_message.
8949
8950 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
8951
8952 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
8953
8954 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
8955
8956 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
8957
8958 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
8959
8960 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
8961 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
8962 (re_match_2_internal): Be more careful with infinite loops.
8963
8964 2002-09-10 Kim F. Storm <storm@cua.dk>
8965
8966 * macros.c (end_kbd_macro): New function.
8967 (Fend_kbd_macro): Use it.
8968
8969 * macros.h (end_kbd_macro): Declare extern.
8970
8971 * keyboard.c (Fdiscard_input): If defining keyboard macro,
8972 end and save it instead of discarding it.
8973
8974 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
8975
8976 * s/sol2-6.h: Fix typo. Add comment.
8977
8978 2002-09-09 Richard M. Stallman <rms@gnu.org>
8979
8980 * regex.c (regnum_t): Use signed int, not unsigned int.
8981
8982 * s/sol2-6.h: New file.
8983
8984 * s/sol2-5.h (UNEXEC): Definition deleted.
8985
8986 2002-09-08 Kim F. Storm <storm@cua.dk>
8987
8988 * macros.c (executing_macro_index): Change type to EMACS_INT.
8989 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
8990
8991 * macros.h (executing_macro_index): Change type to EMACS_INT.
8992
8993 2002-09-06 Richard M. Stallman <rms@gnu.org>
8994
8995 * casetab.c (set_case_table): Make canon table point to eqv table.
8996
8997 2002-09-06 Juanma Barranquero <lektu@terra.es>
8998
8999 * coding.c (syms_of_coding): Fix spacing.
9000
9001 * composite.c (Fcompose_region_internal)
9002 (Fcompose_string_internal): Likewise.
9003
9004 * data.c (Flsh): Likewise.
9005
9006 * fontset.c (Fset_fontset_font): Likewise.
9007
9008 * macfns.c (Fx_server_max_request_size): Likewise.
9009
9010 * w16select.c (syms_of_win16select): Likewise.
9011
9012 * w32select.c (syms_of_w32select): Likewise.
9013
9014 * xselect.c (syms_of_xselect): Likewise.
9015
9016 2002-09-05 Richard M. Stallman <rms@gnu.org>
9017
9018 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
9019 call EXTEND_RANGE_TABLE and return a proper value.
9020 (set_image_of_range): Don't call set_image_of_range_1
9021 if no TRANSLATE or if range includes all of Latin-1.
9022 Only call it for the Latin-1 part of the range.
9023 For other cases, make two separate ranges,
9024 one for the original specified characters and one for
9025 their case-conversions.
9026
9027 2002-09-04 Richard M. Stallman <rms@gnu.org>
9028
9029 * s/sol2-5.h (UNEXEC): Use unexsol.o.
9030
9031 * window.c (displayed_window_lines): Correct for one-off bug
9032 in HEIGHT on non-window displays.
9033
9034 * regex.c (set_image_of_range_1): New function.
9035 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
9036 Return a value to indicate running out of memory.
9037 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
9038 (extend_range_table_work_area): New subroutine.
9039 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
9040 Different calling conventions, and used from set_image_of_range{,_1}.
9041 (IMMEDIATE_QUIT_CHECK): Definitions moved.
9042
9043 2002-09-04 Juanma Barranquero <lektu@terra.es>
9044
9045 * makefile.w32-in: All dependencies updated.
9046
9047 2002-09-01 Richard M. Stallman <rms@gnu.org>
9048
9049 * unexsol.c: New file.
9050
9051 * xfns.c (Qbox): Declare external, don't define.
9052
9053 * xdisp.c (redisplay_window) <force-start case>:
9054 If point is on semi-visible last line, reposition
9055 it at previous line.
9056
9057 * alloc.c (display_malloc_warning): Use display-warning.
9058 (malloc_warning_1): Function deleted.
9059
9060 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
9061
9062 * lread.c (read1): Handle #! by skipping the line.
9063
9064 2002-08-31 Richard M. Stallman <rms@gnu.org>
9065
9066 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
9067 Don't include LDFLAGS.
9068 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
9069
9070 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
9071
9072 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
9073 member of x_display_info unless we compile for some window system.
9074
9075 2002-08-31 Kim F. Storm <storm@cua.dk>
9076
9077 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
9078 (get_window_cursor_type): Don't use them.
9079 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
9080
9081 2002-08-30 Kenichi Handa <handa@etl.go.jp>
9082
9083 * xdisp.c (get_next_display_element): Fix previous change.
9084
9085 2002-08-30 Andrew Choi <akochoi@shaw.ca>
9086
9087 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
9088 (expose_window): Use it to fix the display of overlapping
9089 rows (merge code from xterm.c).
9090
9091 * macfns.c (Qbox): Add extern declaration.
9092
9093 2002-08-30 Juanma Barranquero <lektu@terra.es>
9094
9095 * w32fns.c (Qbox): Make extern.
9096 (syms_of_w32fns): Remove initialization of Qbox.
9097
9098 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
9099
9100 * xfns.c (Fx_open_connection): Fix error message.
9101
9102 2002-08-30 Kim F. Storm <storm@cua.dk>
9103
9104 The following changes consolidates the handling of the cursor
9105 type in xdisp.c, moving duplicate code and functionality from
9106 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
9107
9108 * frame.h (enum text_cursor_kinds): Consolidated here.
9109 Added DEFAULT_CURSOR value.
9110 (struct frame) <desired_cursor, cursor_width>
9111 <blink_off_cursor, blink_off_cursor_width>: New fields.
9112 Consolidated from output_x, output_w32 and output_mac structs.
9113 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
9114 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
9115
9116 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
9117 Variables consolidated here.
9118 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
9119 (Vcursor_in_non_selected_windows): Renamed from
9120 cursor_in_non_selected_windows and changed to Lisp_Object.
9121 (syms_of_xdisp): Define and staticpro new and moved variables.
9122 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
9123 consolidated here. Recognize Qhollow setting.
9124 (set_frame_cursor_types): New function to set frame cursor types
9125 based on the frame parameters.
9126 (get_window_cursor_type): New function to calculate new cursor
9127 type and width for the specified window. Based on duplicated
9128 code consolidated here.
9129 Enhancements: cursor-in-non-selected-windows may be a cursor type,
9130 check buffer-local alternate-cursor-type and blink-cursor-alist
9131 before using built-in blink off methods.
9132
9133 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
9134
9135 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
9136 (get_specified_cursor_type, get_window_cursor_type)
9137 (set_frame_cursor_types): Added prototypes.
9138
9139 * macfns.c (x_specified_cursor_type): Removed.
9140 (x_set_cursor_type): Use set_frame_cursor_types.
9141 (Qbar, Qbox): Removed.
9142 (syms_of_macfns): Don't intern or staticpro them.
9143
9144 * macterm.c (x_specified_cursor_type): Remove prototype.
9145 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
9146 (x_display_and_set_cursor): Use get_window_cursor_type.
9147 Remove unused local variables cursor_non_selected, active_cursor.
9148 Redraw cursor if hbar cursor width changes.
9149 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
9150
9151 * macterm.h (enum text_cursor_kinds): Removed.
9152 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
9153 <blink_off_cursor, blink_off_cursor_width>: Members removed.
9154 (FRAME_DESIRED_CURSOR): Macro removed.
9155
9156 * w32fns.c (Vblink_cursor_alist): Removed.
9157 (Qbar, Qhbar, Qbox, Qhollow): Removed.
9158 (syms_of_w32fns): Don't intern, staticpro, or define them.
9159 (x_specified_cursor_type): Removed.
9160 (x_set_cursor_type): Use set_frame_cursor_types.
9161
9162 * w32term.c (x_specified_cursor_type): Remove prototype.
9163 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
9164 (x_display_and_set_cursor): Use get_window_cursor_type.
9165 Remove unused local variables cursor_off_state.
9166 Redraw cursor if hbar cursor width changes.
9167 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
9168
9169 * w32term.h (enum text_cursor_kinds): Removed.
9170 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
9171 <blink_off_cursor, blink_off_cursor_width>: Members removed.
9172 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
9173 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
9174 (struct w32_display_info) <x_highlight_frame>: Renamed member from
9175 w32_highlight_frame.
9176
9177 * xfns.c (Vblink_cursor_alist): Removed.
9178 (Qbar, Qhbar, Qbox, Qhollow): Removed.
9179 (syms_of_xfns): Don't intern, staticpro, or define them.
9180 (x_specified_cursor_type): Removed.
9181 (x_set_cursor_type): Use set_frame_cursor_types.
9182
9183 * xterm.c (x_specified_cursor_type): Remove prototype.
9184 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
9185 (x_display_and_set_cursor): Use get_window_cursor_type.
9186 Remove unused local variables cursor_off_state.
9187 Redraw cursor if hbar cursor width changes.
9188
9189 * xterm.h (enum text_cursor_kinds): Removed.
9190 (struct output_x) <current_cursor, desired_cursor, cursor_width>
9191 <blink_off_cursor, blink_off_cursor_width>: Members removed.
9192 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
9193 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
9194 (x_specified_cursor_type): Remove prototype.
9195
9196 2002-08-28 Richard M. Stallman <rms@gnu.org>
9197
9198 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
9199 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
9200 (Vblink_cursor_alist): New variable.
9201 (syms_of_w32fns): Initialize and defvar it.
9202 (x_specified_cursor_type): Recognize Qbox for filled box.
9203 Exceptions are hollow boxes.
9204 (Qbox, Qhollow): New variables.
9205 (syms_of_w32fns): Initialize and staticpro them.
9206
9207 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
9208 New macros.
9209 (struct w32_output): New fields blink_off_cursor,
9210 blink_off_cursor_width.
9211 (FRAME_CURSOR_WIDTH): New macro.
9212
9213 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
9214 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
9215
9216 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
9217 for bar cursor.
9218
9219 * w32term.c (expose_overlaps): New function.
9220 (expose_window): Use it to fix the display of overlapping rows.
9221
9222 2002-08-28 Simon Josefsson <jas@extundo.com>
9223
9224 * xfns.c (Fx_open_connection): Improve help when X connection
9225 fails, xhost is insecure and xauth is better.
9226
9227 2002-08-28 Juanma Barranquero <lektu@terra.es>
9228
9229 * makefile.w32-in: Add missing dependencies on w32term.h and
9230 composite.h.
9231
9232 * emacs.c (USAGE1): Add missing newline.
9233
9234 2002-08-27 Andrew Choi <akochoi@shaw.ca>
9235
9236 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
9237
9238 2002-08-27 Richard M. Stallman <rms@gnu.org>
9239
9240 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
9241 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
9242 (Vblink_cursor_alist): New variable.
9243 (syms_of_xfns): Initialize and defvar it.
9244 (x_specified_cursor_type): Recognize Qbox for filled box.
9245 Exceptions are hollow boxes.
9246 (Qbox, Qhollow): New variables.
9247 (syms_of_xfns): Initialize and staticpro them.
9248
9249 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
9250 New macros.
9251 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
9252
9253 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
9254 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
9255
9256 * emacs.c (main): Handle --script.
9257 (USAGE1): Mention --script.
9258 (standard_args): Define sort order for --script.
9259
9260 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
9261
9262 * xdisp.c (redisplay_updating_p): Variable removed.
9263 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
9264 New variables.
9265 (init_iterator): Don't free realized faces if
9266 inhibit_free_realized_faces is set.
9267 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
9268 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
9269 initialize Qinhibit_free_realized_faces.
9270
9271 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
9272 when iterator is adding glyphs to a glyph matrix.
9273
9274 2002-08-27 Kenichi Handa <handa@etl.go.jp>
9275
9276 * xdisp.c (get_next_display_element): In unibyte case, don't use
9277 octal form for such eight-bit characters that can be converted to
9278 multibyte char.
9279
9280 2002-08-26 Kim F. Storm <storm@cua.dk>
9281
9282 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize foreground
9283 and background colors. From Joe Buehler (tiny change).
9284
9285 2002-08-26 Miles Bader <miles@gnu.org>
9286
9287 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
9288
9289 2002-08-25 Andrew Choi <akochoi@shaw.ca>
9290
9291 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
9292 defined instead of MAC_OSX.
9293
9294 * s/darwin.h (select): Define select to sys_select only if
9295 HAVE_CARBON is defined.
9296 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
9297 (DONT_REOPEN_PTY): #def it.
9298
9299 * macterm.c (XTread_socket): Remove code to call
9300 SendEventToEventTarget for keys with command modifiers when
9301 mac_command_key_is_meta is nil.
9302
9303 2002-08-24 Andreas Schwab <schwab@suse.de>
9304
9305 * eval.c (Fdefvar): Fix last change.
9306
9307 2002-08-23 Richard M. Stallman <rms@gnu.org>
9308
9309 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
9310 Record variables in load history as (defvar . VAR).
9311 (Fdefvar): Don't record in load history if no initial value.
9312 (Qdefvar): New variable.
9313 (syms_of_eval): Init and staticpro it.
9314
9315 * lread.c (syms_of_lread): Doc fix.
9316 (build_load_history): Use Fmember to see if a definition
9317 is already in the Vload_history element.
9318
9319 * process.c (Fstart_process): Remove /: from program name.
9320
9321 * emacs.c (decode_env_path): Don't add /: if file name handler
9322 has a `safe-magic' property.
9323
9324 * callproc.c (Fcall_process): Remove /: from program name.
9325
9326 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
9327
9328 * regex.c (PATFETCH): Remove the translating fetch.
9329 (PATFETCH_RAW): Rename to PATFETCH.
9330 (set_image_of_range): New fun.
9331 (SET_RANGE_TABLE_WORK_AREA): Use it.
9332 (regex_compile): Don't translate the pattern chars so eagerly.
9333 Only do it when inserting an `exactn' bytecode or when handling
9334 a char-range.
9335 (mutually_exclusive_p): Avoid empty statement.
9336
9337 2002-08-22 Kim F. Storm <storm@cua.dk>
9338
9339 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
9340 end up on a partially visible line; this reverts a specific part
9341 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
9342 display error which has been reported several times now.
9343 However it introduces the problem that changes was supposed to fix.
9344 See my comments in the source if you want to debug this further.
9345
9346 2002-08-20 Kenichi Handa <handa@etl.go.jp>
9347
9348 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
9349
9350 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
9351
9352 * msdos.c (croak): Add `void' to definition.
9353
9354 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
9355 Don't define them, they are defined in msdos.c.
9356
9357 * mem-limits.h [MSDOS]: Declare etext.
9358
9359 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
9360 `const' since CORRECT_DIR_SEPS modifies its target.
9361
9362 2002-08-19 Kim F. Storm <storm@cua.dk>
9363
9364 * keyboard.c (Fclear_this_command_keys): Add optional arg
9365 KEEP-RECORD to avoid clearing lossage when we just want to clear
9366 the current key sequence (kmacro needs this).
9367
9368 2002-08-19 Kenichi Handa <handa@localhost>
9369
9370 * composite.c (run_composition_function): Call FUNC if it is fboundp.
9371
9372 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
9373 cons, return Qnil.
9374
9375 2002-08-17 Richard M. Stallman <rms@gnu.org>
9376
9377 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
9378
9379 * sysdep.c [!VMS]: Include sys/files.h.
9380
9381 * editfns.c (save_restriction_restore): Defend from unchained marker.
9382
9383 * buffer.c (overlays_at): Handle extending vec uniformly.
9384 (overlays_in): Handle extending vec from length 0 as in overlays_at.
9385
9386 2002-08-15 Andrew Choi <akochoi@shaw.ca>
9387
9388 * mac.c (init_mac_osx_environment): New function.
9389
9390 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
9391
9392 2002-08-14 Kim F. Storm <storm@cua.dk>
9393
9394 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
9395 executing macro before appending to it (when used from Lisp).
9396 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
9397 which is called prior to each iteration of macro (for kmacro.el).
9398 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
9399
9400 * lisp.h (Fexecute_kbd_macro): Update prototype.
9401
9402 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
9403
9404 2002-08-14 Kenichi Handa <handa@etl.go.jp>
9405
9406 * xselect.c (QUTF8_STRING): New variable.
9407 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
9408 (x_atom_to_symbol): Likewise.
9409 (x_get_local_selection): New argument local_request. If it is
9410 nonzero, call handler_fn with the second arg nil.
9411 (x_handle_selection_request): Call x_get_local_selection with
9412 local_request 0.
9413 (lisp_data_to_selection_data): Don't encode the string here.
9414 (Fx_get_selection_internal): Call x_get_local_selection with
9415 local_request 1.
9416 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
9417
9418 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
9419
9420 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
9421
9422 2002-08-13 Richard M. Stallman <rms@gnu.org>
9423
9424 * minibuf.c (Fminibufferp): New function.
9425 (syms_of_minibuf): Defsubr it.
9426 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
9427
9428 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
9429
9430 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
9431
9432 2002-08-12 Richard M. Stallman <rms@gnu.org>
9433
9434 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
9435 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
9436 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
9437 already.
9438
9439 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
9440
9441 2002-08-11 Andrew Choi <akochoi@shaw.ca>
9442
9443 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
9444 (Vmac_pass_command_to_system): New variable.
9445 (Vmac_pass_control_to_system): New variable.
9446 (do_mouse_moved): Check wp with is_emacs_window.
9447 (XTread_socket): Check window_ptr with is_emacs_window.
9448 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
9449 events back to Mac Toolbox for processing, depending on values of
9450 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
9451 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
9452 Vmac_pass_control_to_system.
9453
9454 2002-08-10 Kenichi Handa <handa@etl.go.jp>
9455
9456 * coding.c (unencodable_char_position): New function.
9457 (Funencodable_char_position): New function.
9458 (syms_of_coding): Defsubr Funencodable_char_position.
9459
9460 2002-08-10 Andrew Choi <akochoi@shaw.ca>
9461
9462 * mac.c (sys_select) [MAC_OSX]: New function.
9463
9464 * macterm.c (MakeMeTheFrontProcess): New function.
9465 (mac_initialize): Call MakeMeTheFrontProcess.
9466
9467 * s/darwin.h: Define select to sys_select.
9468
9469 2002-08-09 Richard M. Stallman <rms@gnu.org>
9470
9471 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
9472
9473 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
9474
9475 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
9476 end of the buffer.
9477
9478 2002-08-08 Ken Raeburn <raeburn@mit.edu>
9479
9480 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
9481
9482 * puresize.h (BASE_PURESIZE): Increase to 910000.
9483
9484 2002-08-08 Kenichi Handa <handa@etl.go.jp>
9485
9486 * coding.c (Ffind_operation_coding_system): For write-region, if
9487 VISIT is a filename, make it the target.
9488
9489 2002-08-07 Richard M. Stallman <rms@gnu.org>
9490
9491 * alloc.c (mark_object): Detect long lists for debugging.
9492 (mark_object_loop_halt): New variable.
9493
9494 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
9495
9496 * data.c (Fmake_variable_frame_local): Doc fix.
9497
9498 2002-08-01 David Ponce <david@dponce.com>
9499
9500 * w32menu.c (local_heap, local_alloc, local_free): New macros.
9501 (malloc_widget_value, free_widget_value)
9502 (w32_free_submenu_strings): Use them.
9503
9504 (push_submenu_start, push_submenu_end, push_left_right_boundary)
9505 (push_menu_pane, push_menu_item, single_keymap_panes)
9506 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
9507 (single_submenu, set_frame_menubar)
9508 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
9509
9510 (Fx_popup_menu): Don't show pop up menu until preceding one is
9511 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
9512
9513 * w32menu.c: Changes adapted from xmenu.c
9514 (set_frame_menubar): First parse all submenus,
9515 then make widget_value trees from them.
9516 Don't allocate any widget_value objects
9517 until we are done with the parsing.
9518 (parse_single_submenu): New function.
9519 (digest_single_submenu): New function.
9520 (single_submenu): Function deleted, replaced by those two.
9521
9522 2002-08-04 Andrew Choi <akochoi@shaw.ca>
9523
9524 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
9525 returns a valid window pointer before proceeding for keyDown and
9526 autoKey events.
9527
9528 2002-08-03 Andrew Choi <akochoi@shaw.ca>
9529
9530 * macterm.c (USE_CARBON_EVENTS): New macro.
9531 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
9532 (x_iconify_frame): Call CollapseWindow.
9533 (Vmac_reverse_ctrl_meta): New variable.
9534 (Vmac_wheel_button_is_mouse_2): New variable.
9535 (init_mac_drag_n_drop): New function.
9536 (mac_do_receive_drag): New function.
9537 (mac_handle_service_event): New function.
9538 (init_service_handler): New function.
9539 (mac_to_emacs_modifiers): New function.
9540 (mac_event_to_emacs_modifiers): New function.
9541 (mac_get_mouse_btn): New function.
9542 (mac_convert_event_ref): New function.
9543 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
9544 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
9545 mac_get_mouse_btn.
9546 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
9547
9548 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
9549 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
9550 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
9551 TOOL_BAR_EVENT for MAC_OS as well.
9552 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
9553 as for WINDOWS_NT.
9554 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
9555
9556 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
9557
9558 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
9559
9560 * xdisp.c (forward_to_next_line_start): Fix a condition that
9561 lead to a newline being skipped.
9562
9563 2002-08-02 Andrew Choi <akochoi@shaw.ca>
9564
9565 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
9566
9567 2002-08-01 Richard M. Stallman <rms@gnu.org>
9568
9569 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
9570
9571 2002-07-31 Andrew Choi <akochoi@shaw.ca>
9572
9573 * macfns.c: #undef init_process before #define-ing it.
9574
9575 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
9576 HAVE_CARBON is defined.
9577
9578 2002-07-31 Richard M. Stallman <rms@gnu.org>
9579
9580 * xmenu.c (set_frame_menubar): First parse all submenus,
9581 then make widget_value trees from them.
9582 Don't allocate any widget_value objects
9583 until we are done with the parsing.
9584 (parse_single_submenu): New function.
9585 (digest_single_submenu): New function.
9586 (single_submenu): Function deleted, replaced by those two.
9587
9588 2002-07-30 Juanma Barranquero <lektu@terra.es>
9589
9590 * w32proc.c (syms_of_ntproc): Fix docstring of
9591 `w32-get-true-file-attributes'.
9592
9593 2002-07-28 Richard M. Stallman <rms@gnu.org>
9594
9595 * s/hpux8.h (HPUX8): Define this before including hpux.h.
9596 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
9597
9598 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
9599
9600 * keyboard.c (make_lispy_event):
9601 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
9602 Explicitly clear up_modifier in event->modifiers.
9603
9604 2002-07-27 Richard M. Stallman <rms@gnu.org>
9605
9606 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
9607
9608 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
9609 for bar cursor.
9610
9611 2002-07-26 Kenichi Handa <handa@etl.go.jp>
9612
9613 * coding.c (detect_coding_iso2022): While checking a byte sequence
9614 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
9615 it in the normal loop.
9616
9617 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
9618
9619 * xterm.c (expose_overlaps): New function.
9620 (expose_window): Use it to fix the display of overlapping rows.
9621
9622 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
9623
9624 2002-07-23 Ken Raeburn <raeburn@gnu.org>
9625
9626 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
9627 since it only depends on XUINT.
9628
9629 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
9630 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
9631 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
9632 Macros deleted.
9633
9634 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
9635 its value over other approaches.
9636 * sysdep.c (start_of_data): Don't define the function if a macro
9637 form has been defined.
9638
9639 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
9640
9641 * xdisp.c (redisplay_updating_p): New variable.
9642 (init_iterator): Don't free realized faces when
9643 redisplay_updating_p is set.
9644 (redisplay_internal): Set redisplay_updating_p while updating
9645 the display.
9646
9647 2002-07-23 Richard M. Stallman <rms@gnu.org>
9648
9649 * editfns.c (Fmessage): Treat "" like nil.
9650
9651 2002-07-23 Kenichi Handa <handa@etl.go.jp>
9652
9653 * xdisp.c (face_before_or_after_it_pos):
9654 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
9655
9656 2002-07-22 Juanma Barranquero <lektu@terra.es>
9657
9658 * callproc.c (init_callproc) [DOS_NT]:
9659 Initialize Vshared_game_score_directory to nil.
9660 (syms_of_callproc) [DOS_NT]: Likewise.
9661
9662 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
9663
9664 * xdisp.c (display_line): Replace an abort with xassert.
9665
9666 2002-07-21 Richard M. Stallman <rms@gnu.org>
9667
9668 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
9669 and END_UNCHANGED when setting buffer_unchanged_p.
9670 Use current_matrix_up_to_date_p to decide whether to use
9671 try_cursor_movement.
9672
9673 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
9674
9675 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
9676
9677 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
9678 Set to nil if dir does not exist.
9679 (syms_of_callproc): Init unconditionally and simply.
9680
9681 * buffer.c (Fbuffer_list): Doc fix.
9682
9683 2002-07-21 Ken Raeburn <raeburn@gnu.org>
9684
9685 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
9686
9687 * buffer.c (mmap_realloc): When shrinking, make sure number of
9688 pages to unmap is rounded towards zero.
9689
9690 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
9691 (XSETINT): Deleted.
9692
9693 * m/att3b.h (XINT): Don't define.
9694 (VALBITS, VALMASK, XTYPE): Deleted.
9695 (DATA_SEG_BITS): Define.
9696 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
9697 ARRAY_MARK_FLAG): Deleted.
9698 (DATA_SEG_BITS): Define.
9699 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
9700 (DATA_SEG_BITS): Define.
9701
9702 2002-07-20 Richard M. Stallman <rms@gnu.org>
9703
9704 * print.c (print_error_message): New args CONTEXT and CALLER.
9705 Calls changed.
9706
9707 * lisp.h (print_error_message): Declare new args.
9708
9709 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
9710 and CONTEXT to print_error_message, don't print them here.
9711 For a Quit, don't use Vsignaling_function.
9712 Call message_log_maybe_newline.
9713
9714 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
9715
9716 2002-07-20 Kim F. Storm <storm@cua.dk>
9717
9718 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
9719
9720 2002-07-19 Ken Raeburn <raeburn@gnu.org>
9721
9722 * bytecode.c (struct byte_stack): Pointers into byte string now
9723 point to const.
9724 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
9725 const.
9726 * charset.h (BCOPY_SHORT): Source pointer now points to const.
9727 * coding.c (encode_eol, detect_coding, detect_eol):
9728 (decode_coding, encode_coding, detect_coding_system):
9729 Source strings now treated as const.
9730 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
9731 modify Lisp string contents.
9732 * coding.h (decode_coding, encode_coding, detect_coding,
9733 detect_eol): Declarations updated.
9734 * composite.c (compose_chars_in_text): Treat Lisp string contents
9735 as const.
9736 * dispnew.c (safe_bcopy): Source pointer now points to const.
9737 * lisp.h (STRING_COPYIN): New macro.
9738 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
9739 (internal_with_output_to_temp_buffer): Declarations updated.
9740 * print.c (temp_output_buffer_setup):
9741 (internal_with_output_to_temp_buffer): Buffer name argument is now
9742 pointer to const.
9743 * sound.c (struct sound_device): Function pointer field "write"
9744 buffer argument now points to const.
9745 (vox_write): Buffer argument points to const.
9746 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
9747 contents as const.
9748 * sysdep.c (emacs_write): Buffer pointer now const.
9749 * term.c (encode_terminal_code): Buffer pointer now const.
9750 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
9751 (x_face_list_fonts, x_update_menu_appearance):
9752 (hash_string_case_insensitive): Treat Lisp string contents as const.
9753
9754 2002-07-19 Juanma Barranquero <lektu@terra.es>
9755
9756 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
9757
9758 * fileio.c (syms_of_fileio): Likewise.
9759 (Ffile_name_as_directory): Fix argument name in docstring.
9760 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
9761
9762 2002-07-18 Richard M. Stallman <rms@gnu.org>
9763
9764 * data.c (Fdefalias): Doc fix.
9765
9766 2002-07-17 Dave Love <fx@gnu.org>
9767
9768 * intervals.h (text_property_stickiness): Use P_.
9769
9770 * ccl.c: Remove `emacs' conditionals.
9771 (ccl_backtrace_table): Fix size spec.
9772 (ccl_driver): Fix type errors.
9773
9774 2002-07-16 Ken Raeburn <raeburn@gnu.org>
9775
9776 * alloc.c (xstrdup, make_string, make_unibyte_string)
9777 (make_multibyte_string, build_string): String pointer args now
9778 point to const.
9779 * charset.c (find_charset_in_text, c_string_width):
9780 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
9781 * fileio.c (report_file_error):
9782 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
9783 (count_combining_before, count_combining_after, insert_1_both):
9784 (insert, insert_and_inherit, insert_string):
9785 (insert_before_markers, insert_before_markers_and_inherit):
9786 * lread.c (intern, oblookup, hash_string):
9787 * minibuf.c (temp_echo_area_glyphs):
9788 * search.c (fast_c_string_match_ignore_case):
9789 * sysdep.c (emacs_open, set_file_times):
9790 * xfaces.c (xstricmp):
9791 * xdisp.c (store_frame_title, string_char_and_length):
9792 (message_dolog, message2, message2_nolog, set_message): Likewise.
9793 (set_message_1): Cast message string argument to const pointer.
9794 * editfns.c (general_insert_function): Insertion function now
9795 takes pointer to const for input data.
9796 * charset.h (find_charset_in_text, c_string_width):
9797 (parse_str_as_multibyte): Declarations updated.
9798 * dispextern.h (xstricmp): Declaration updated.
9799 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
9800 (count_size_as_multibyte, count_combining_before):
9801 (count_combining_after, insert_1, insert_1_both, message_dolog):
9802 (insert, insert_and_inherit, insert_before_markers)
9803 (insert_before_markers_and_inherit, set_message, message2):
9804 (message2_dolog, build_string, make_string, make_unibyte_string):
9805 (make_multibyte_string, intern, oblookup, report_file_error):
9806 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
9807 (emacs_open, xstrdup): Declarations updated.
9808 * systime.h (set_file_times): Declaration updated.
9809
9810 * charset.c (find_charset_in_text, lisp_string_width): Use const
9811 for pointer to lisp string data.
9812 * charset.h (FETCH_STRING_CHAR_ADVANCE):
9813 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
9814 * coding.c (Ffind_coding_systems_region_interval):
9815 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
9816 (Fmake_directory_internal, Fdelete_directory):
9817 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
9818 * fontset.c (font_family_registry, fs_query_fontset):
9819 (list_fontsets):
9820 * frame.c (Fframe_parameter):
9821 * keyboard.c (cmd_error_internal):
9822 * keymap.c (Fdescribe_buffer_bindings):
9823 * lread.c (complete_filename_p, openp):
9824 * minibuf.c (Fminibuffer_complete_word):
9825 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
9826 (face_before_or_after_it_pos, next_element_from_string):
9827 (get_overlay_arrow_glyph_row, display_mode_element):
9828 (decode_mode_spec_coding):
9829 * xterm.c (same_x_server): Likewise.
9830
9831 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
9832 settings of non-existent fields.
9833
9834 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
9835 copy a lisp value.
9836
9837 * lread.c (Fintern_soft): Use string macros instead of
9838 Lisp_String fields.
9839 * keyboard.c (echo_char, parse_modifiers_uncached):
9840 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
9841 * textprop.c (validate_interval_range, interval_of): Likewise.
9842
9843 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
9844
9845 * charset.h (FETCH_STRING_CHAR_ADVANCE)
9846 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
9847 XSTRING()->size_byte.
9848
9849 * lisp.h (SDATA, SREF): Produce rvalue.
9850 (SSET): New macro.
9851 * alloc.c (make_event_array): Use SSET for storing into a string.
9852 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
9853 a string.
9854 * casefiddle.c (casify_object): Use SSET.
9855 * charset.h (FETCH_STRING_CHAR_ADVANCE)
9856 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
9857 address of string contents.
9858 * data.c (Faref): Use SDATA.
9859 (Faset): Use SDATA, SSET.
9860 * dired.c (directory_files_internal): Use SSET.
9861 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
9862 (Fread_file_name): Use SREF, SSET.
9863 * fns.c (concat): Use SSET.
9864 (concat, Fdelete): Use SDATA.
9865 * insdel.c (insert_from_string_1): Use SDATA.
9866 * keyboard.c (Fevent_convert_list): Use SREF.
9867 * lread.c (Fload): Use SDATA, SSET.
9868 * macfns.c (validate_x_resource_name): Use SSET.
9869 * process.c (status_message): Use SSET.
9870 * search.c (wordify): Use SDATA.
9871 (Freplace_match): Use SREF.
9872 * w32fns.c (validate_x_resource_name): Use SSET.
9873 * xfns.c (validate_x_resource_name): Use SSET.
9874 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
9875
9876 2002-07-16 Richard M. Stallman <rms@gnu.org>
9877
9878 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
9879
9880 * xdisp.c (reconsider_clip_changes):
9881 Don't test prevent_redisplay_optimizations_p.
9882 (redisplay_internal): Test prevent_redisplay_optimizations_p
9883 along with clip_changed in some cases.
9884 (try_window_id): Likewise.
9885 (redisplay_window): New local var buffer_unchanged_p.
9886
9887 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
9888
9889 * process.c (create_process): Test USG_SUBTTY_WORKS.
9890 (process_send_signal): Clean up handling of GID.
9891 Detect errors in ioctls meant to set GID.
9892
9893 * window.c (temp_output_buffer_show):
9894 Don't set prevent_redisplay_optimizations_p.
9895
9896 2002-07-15 Juanma Barranquero <lektu@terra.es>
9897
9898 * eval.c (Fdefvaralias): Add docstring argument.
9899
9900 2002-07-15 Ken Raeburn <raeburn@gnu.org>
9901
9902 * lisp.h (STRING_INTERVALS): Produce rvalue.
9903 (STRING_SET_INTERVALS): New macro.
9904 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
9905 * fns.c (Fstring_as_multibyte): Likewise.
9906 * intervals.c (balance_possible_root_interval, delete_interval)
9907 (create_root_interval, copy_intervals_to_string): Likewise.
9908 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
9909 instead of 0.
9910
9911 2002-07-14 Ken Raeburn <raeburn@gnu.org>
9912
9913 * lisp.h (STRING_SET_CHARS): New macro.
9914 (SCHARS, SBYTES): Produce rvalues.
9915 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
9916 * fns.c (concat): Likewise.
9917 * lread.c (read_vector): Likewise.
9918
9919 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
9920 (STRING_SET_UNIBYTE): New macro.
9921 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
9922 length of -1) changed to use STRING_SET_UNIBYTE.
9923 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
9924 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
9925 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
9926 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
9927 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
9928 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
9929 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
9930 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
9931 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
9932 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
9933 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
9934 STRING_BYTES or indirection changed to SCHARS, SBYTES,
9935 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
9936 unchanged for now.
9937
9938 2002-07-13 Kim F. Storm <storm@cua.dk>
9939
9940 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
9941
9942 2002-07-12 Richard M. Stallman <rms@gnu.org>
9943
9944 * fileio.c (Fwrite_region): Doc fix.
9945
9946 * print.c (print_error_message): Don't handle Vsignaling_function here.
9947
9948 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
9949 (command_loop_1): Avoid certain actions after memory-full error.
9950
9951 * eval.c (Fsignal): Don't call cancel_hourglass.
9952 For a memory-full error, don't call Vsignal_hook_function
9953 and don't set Vsignaling_function.
9954
9955 * process.c (process_send_signal): Add abort call.
9956
9957 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
9958
9959 * keymap.c (Fkey_binding): Fix typo.
9960
9961 2002-07-11 Richard M. Stallman <rms@gnu.org>
9962
9963 * alloc.c (Vmemory_full): New variable.
9964 (Vmemory_signal_data): Renamed from memory_signal_data.
9965 Uses changed.
9966 (syms_of_alloc): Defvar them.
9967 (memory_full, buffer_memory_full): Set Vmemory_full.
9968
9969 * lisp.h (Vmemory_full): Add declaration.
9970 (current_column, indented_beyond_p): Change declaration.
9971
9972 * indent.c (last_known_column): Declare as double, not float.
9973 (current_column, current_column_1, string_display_width)
9974 (position_indentation): Return `double'.
9975 (indented_beyond_p): Arg `column' is `double'. Callers changed.
9976
9977 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
9978 (back_to_previous_visible_line_start)
9979 (reseat_at_next_visible_line_start, next_element_from_buffer):
9980 Use `double', not `float', when calling indented_beyond_p.
9981
9982 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
9983
9984 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
9985
9986 2002-07-11 Juanma Barranquero <lektu@terra.es>
9987
9988 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
9989 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
9990 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
9991 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
9992 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
9993 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
9994
9995 2002-07-10 Juanma Barranquero <lektu@terra.es>
9996
9997 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
9998 All callers changed.
9999
10000 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
10001
10002 * data.c (Fdefalias): Add an optional `docstring' argument.
10003 (set_internal, Fsetq_default): Use XCAR/XCDR.
10004
10005 * composite.c (HASH_VALUE, HASH_KEY):
10006 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
10007
10008 2002-07-09 Kenichi Handa <handa@etl.go.jp>
10009
10010 * callproc.c (Fcall_process): Fix previous change.
10011
10012 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
10013
10014 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
10015 Add support for hash-tables.
10016 (Ftry_completion): Return t even if the string appears multiple times.
10017
10018 * fns.c (Fnconc): Use XCDR.
10019 (Fprovide): Use CONSP and XCDR.
10020 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
10021 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
10022 (Fmake_hash_table): Accept `:size nil'.
10023 (Fmakehash): Delete: moved to subr.el.
10024 (syms_of_fns): Don't defsubr makehash.
10025
10026 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
10027 (HASH_TABLE_SIZE): Move from fns.c.
10028
10029 2002-07-07 Richard M. Stallman <rms@gnu.org>
10030
10031 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
10032 Instead just return 0 when there is something to be done.
10033 (try_scrolling): If make_cursor_line_fully_visible returns 0,
10034 retry scrolling as if cursor were off the bottom.
10035 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
10036 return CURSOR_MOVEMENT_MUST_SCROLL.
10037 (redisplay_window): If make_cursor_line_fully_visible returns 0,
10038 go to try_to_scroll.
10039
10040 * buffer.c (Fbuffer_local_value): Store current value into its binding
10041 so we get the up-to-date value for the binding that is loaded.
10042
10043 * eval.c (Fdefmacro): Doc fix.
10044
10045 2002-07-05 Dave Love <fx@gnu.org>
10046
10047 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
10048 correctly.
10049
10050 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
10051 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
10052 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
10053 CCL_LookupCharConstTbl.
10054 (syms_of_ccl): Defvar translation-hash-table-vector.
10055
10056 2002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10057
10058 * xdisp.c: Remove unused variable `face'.
10059
10060 2002-07-04 Juanma Barranquero <lektu@terra.es>
10061
10062 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
10063 obsolescence information.
10064
10065 2002-07-03 Andrew Choi <akochoi@shaw.ca>
10066
10067 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
10068 pattern. Search cache first.
10069 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
10070 for Japanese font.
10071 (XLoadQueryFont): Use it.
10072
10073 2002-07-02 Richard M. Stallman <rms@gnu.org>
10074
10075 * keymap.c (Fdefine_key): Doc fix.
10076
10077 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
10078
10079 2002-07-02 Juanma Barranquero <lektu@terra.es>
10080
10081 * keymap.c (syms_of_keymap): Fix typo.
10082
10083 2002-07-01 Andrew Choi <akochoi@shaw.ca>
10084
10085 * s/darwin.h: Define POSIX_SIGNALS.
10086
10087 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
10088 and FSRefMakePath to convert FSSpec returned with Apple Event to
10089 Posix pathname.
10090 (mac_initialize) [TARGET_API_MAC_CARBON]:
10091 Call init_required_apple_events and disable the `Quit' menu item
10092 provided automatically by the Carbon Toolbox.
10093
10094 2002-07-01 Dave Love <fx@gnu.org>
10095
10096 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
10097 for K&R.
10098
10099 * xterm.c: Fix prototype for K&R.
10100
10101 * term.c (costs_set): Declare static, non-initialized for pcc.
10102
10103 2002-07-01 Richard M. Stallman <rms@gnu.org>
10104
10105 * keyboard.c (timer_last_idleness_start_time): New variable.
10106 (timer_start_idle): Set that.
10107 (read_key_sequence): Use that to reset timer_idleness_start_time
10108 to previous value.
10109
10110 * window.c (Frecenter): With arg, set optional_new_start.
10111
10112 * xdisp.c (redisplay_internal): Make optional_new_start really work.
10113
10114 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
10115 buffer for completion.
10116
10117 2002-06-29 Ken Raeburn <raeburn@gnu.org>
10118
10119 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
10120
10121 2002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10122
10123 * keyboard.c (readable_filtered_events): New function that filters
10124 FOCUS_IN_EVENT depending on parameter.
10125 (readable_events): Calls readable_filtered_events, not filtering
10126 FOCUS_IN_EVENT.
10127 (get_filtered_input_pending): New function, filtering parameter passed
10128 to readable_filtered_events.
10129 (get_input_pending): Calls get_filtered_input_pending, not filtering
10130 FOCUS_IN_EVENT.
10131 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
10132 FOCUS_IN_EVENT.
10133
10134 * xterm.h (struct x_output): Add focus_state.
10135
10136 * xterm.c (x_focus_changed): New function.
10137 (x_detect_focus_change): New function.
10138 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
10139 EnterNotify and LeaveNotify to track X focus changes.
10140
10141 2002-06-28 Andreas Schwab <schwab@suse.de>
10142
10143 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
10144
10145 2002-06-27 Kim F. Storm <storm@cua.dk>
10146
10147 * xdisp.c: (mode_line_string_list, mode_line_string_face)
10148 (mode_line_string_face_prop): New variables.
10149 (store_mode_line_string): New function.
10150 (display_mode_element): Use store_mode_line_string to
10151 add mode-line string elements to mode_line_string_list
10152 when mode_line_string_list is non-nil.
10153 (Fformat_mode_line): Now returns propertized string by
10154 default. New arg NO-PROPS to ignore properties.
10155 (decode_mode_spec): Only add two dashes for %- in propertized
10156 mode-line string.
10157 (syms_of_xdisp): Init and staticpro mode_line_string_list.
10158
10159 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
10160
10161 * minibuf.c (minibuffer_completion_contents): Add return type.
10162
10163 2002-06-27 Juanma Barranquero <lektu@terra.es>
10164
10165 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
10166
10167 2002-06-26 Juanma Barranquero <lektu@terra.es>
10168
10169 * fileio.c (read_file_name_cleanup): Add missing return.
10170
10171 2002-06-26 Richard M. Stallman <rms@gnu.org>
10172
10173 * window.c (Frecenter): Don't set force_start flag.
10174
10175 * minibuf.c (do_completion, Fminibuffer_complete_word)
10176 (Fminibuffer_completion_help): Complete just the text before point.
10177 (minibuffer_completion_contents): New function.
10178
10179 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
10180
10181 * frame.c (frames_bury_buffer): Function deleted.
10182
10183 2002-06-25 Miles Bader <miles@gnu.org>
10184
10185 * callint.c (Fcall_interactively): When checking to see if doprnt hit
10186 the end of callint_message, allow for a terminating '\0'.
10187
10188 2002-06-24 Juanma Barranquero <lektu@terra.es>
10189
10190 * w32select.c: Include composite.h
10191
10192 * w16select.c: Likewise.
10193
10194 2002-06-24 Kenichi Handa <handa@etl.go.jp>
10195
10196 * callproc.c (Fcall_process): If code detection is necessary,
10197 call detect_coding directly here.
10198
10199 * coding.c (detect_eol): Preserve coding->cmp_data.
10200
10201 * w16select.c (Fw16_get_clipboard_data):
10202 * w32fns.c (w32_to_x_font):
10203 * w32select.c (Fw32_get_clipboard_data):
10204 * xselect.c (selection_data_to_lisp_data):
10205 * xterm.c (XTread_socket): Disable composition handling.
10206
10207 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
10208
10209 * print.c (temp_output_buffer_setup): Kill all local variables.
10210
10211 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
10212
10213 * lread.c (Fread): Remove redundant and imprecise declaration.
10214
10215 * xfns.c (check_x_display_info): Use check_x_frame.
10216
10217 * .gdbinit (xprintsym): Use the new `xname' field.
10218 (xsymbol): Use it.
10219
10220 2002-06-22 Jason Rumney <jasonr@gnu.org>
10221
10222 * w32fns.c (file_dialog_callback): New function.
10223 (Fx_file_dialog): Allow selecting directories as well as files.
10224
10225 2002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10226
10227 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
10228 OpenBSD. Add support for mipseb-*-netbsd* machines.
10229
10230 2002-06-17 Andrew Choi <akochoi@shaw.ca>
10231
10232 * macterm.c (mac_scroll_area): Set foreground and backcolor to
10233 black and white before scrolling. Restore frame background and
10234 foreground color after scrolling.
10235 (do_window_update): Call XClearWindow before calling expose_frame.
10236 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
10237 FRAME_FOREGROUND_PIXEL of frame.
10238
10239 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
10240 test Mac command key as <ALT> key.
10241
10242 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
10243
10244 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
10245
10246 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
10247 Lookup keys in function-key-map immediately so that key-translation-map
10248 can be applied earlier.
10249 Remove function_key_possible and key_translation_possible, replaced
10250 by checking `keytran_start < t'.
10251
10252 * .gdbinit (xsymbol): Use the new `xname' field.
10253
10254 2002-06-17 Andrew Choi <akochoi@shaw.ca>
10255
10256 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
10257 test Mac command key as <ALT> key.
10258
10259 * mac.c (do_applescript): Call initialize_applescript if necessary
10260 when first called. Dispose of result_desc only when there is no error.
10261 (Fdo_applescript): Use %d format specifier instead of %ld.
10262
10263 2002-06-16 Andrew Choi <akochoi@shaw.ca>
10264
10265 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
10266 of FrontWindow for cases keyDown and autoKey.
10267
10268 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
10269 Vdefault_fontset to Monaco with mac-roman coding.
10270
10271 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
10272 init_process before and after inclusion of Carbon/Carbon.h, resp.
10273
10274 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
10275 cursor_gc.
10276 (add_font_name_table_entry): New function.
10277 (init_font_name_table): Use add_font_name_table_entry; add italic,
10278 bold, and bold-italic entries for truetype fonts.
10279
10280 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
10281 for Mac too.
10282 (try_font_list) [MAC_OS]: If no font matches given registry, try
10283 fonts with any registry matching face_family.
10284 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
10285
10286 * s/darwin.h: If autoconf detects the Ncurses library, define
10287 LIBS_TERMCAP to -lncurses to use it.
10288
10289 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
10290
10291 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
10292
10293 2002-06-15 Richard M. Stallman <rms@gnu.org>
10294
10295 * window.c (Fset_window_configuration): Explicitly preserve
10296 the point value that new_current_buffer had at the start.
10297
10298 2002-06-14 Juanma Barranquero <lektu@terra.es>
10299
10300 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
10301 Fix typos.
10302
10303 2002-06-14 Kim F. Storm <storm@cua.dk>
10304
10305 * insdel.c (insert_1_both, insert_from_string_1)
10306 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
10307 insert happened in the end_unchanged region. Otherwise, the
10308 redisplay may be confused and duplicate the last line in the
10309 buffer [seen after save-buffer when require-final-newline==t].
10310
10311 2002-06-13 Jason Rumney <jasonr@gnu.org>
10312
10313 * w32.c (init_environment): Remove EMACSLOCKDIR.
10314 (stat): Swap _S_IFDIR and _S_IFREG.
10315
10316 2002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10317
10318 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
10319 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
10320 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
10321 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
10322 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
10323 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
10324 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
10325 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
10326 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
10327 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
10328 SELECTION_REQUEST_EVENT, selection_clear_event to
10329 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
10330 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
10331 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
10332 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
10333 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
10334 no_event to NO_EVENT.
10335
10336 2002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10337
10338 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
10339
10340 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
10341
10342 * intervals.c (textget): Don't forget to `return'.
10343 (lookup_char_property): Use XCAR/XCDR.
10344
10345 2002-06-12 Juanma Barranquero <lektu@terra.es>
10346
10347 * xdisp.c (Fformat_mode_line): Fix typo.
10348
10349 2002-06-12 Kim F. Storm <storm@cua.dk>
10350
10351 * xdisp.c (Fformat_mode_line): New function.
10352 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
10353 (store_frame_title_char, store_frame_title): Use unconditionally.
10354 (init_xdisp): Defsubr Fformat_mode_line.
10355 Initialize frame_title_buf etc. unconditionally.
10356
10357 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
10358
10359 * keyboard.c (read_key_sequence):
10360 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
10361 things through those maps after downcasing events.
10362 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
10363 applies after function-key-map.
10364 Make sure that keytran can be done in the middle in the sequence.
10365 Be careful not to throw away events past the one we downcase.
10366
10367 * lread.c (read_integer): Remove unused var `tem'.
10368 (read1): Fix int/Lisp_Object mixup.
10369
10370 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
10371
10372 2002-06-11 Richard M. Stallman <rms@gnu.org>
10373
10374 * keyboard.c (readable_events): Ignore any number of
10375 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
10376
10377 2002-06-09 Miles Bader <miles@gnu.org>
10378
10379 * xfaces.c (Ftty_supports_face_attributes_p): New function.
10380 (parse_rgb_list, tty_lookup_color): New functions.
10381 (tty_defined_color): Use `tty_lookup_color' to do all the work.
10382 (color_distance, Fcolor_distance): New functions.
10383 (TTY_SAME_COLOR_THRESHOLD): New macro.
10384 (Qtty_color_standard_values): New variable.
10385 (syms_of_xfaces): Initialize new vars & functions.
10386
10387 2002-06-08 Colin Walters <walters@verbum.org>
10388
10389 * textprop.c (Vchar_property_alias_alist): New variable.
10390 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
10391
10392 * intervals.c (lookup_char_property): New function for looking up
10393 overlay and text properties, created from textget.
10394 (textget): Use it.
10395
10396 * intervals.h (lookup_char_property): Declare.
10397 (Vchar_property_alias_alist): Declare.
10398
10399 * buffer.c (Foverlay_get): Use lookup_char_property.
10400
10401 2002-06-07 Sam Steingold <sds@gnu.org>
10402
10403 * xselect.c (lisp_data_to_selection_data): Fix last change:
10404 *data_ret is not a Lisp string, while unibyte_string is.
10405
10406 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
10407
10408 * xselect.c (lisp_data_to_selection_data): Fix last change:
10409 set size_ret.
10410
10411 2002-06-07 Andreas Schwab <schwab@suse.de>
10412
10413 * m/amdx86-64.h: New file.
10414
10415 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
10416
10417 * fns.c (Fstring_make_unibyte): Doc fix.
10418
10419 * xselect.c (lisp_data_to_selection_data): If the requested type
10420 is STRING, call string_make_unibyte to encode the selected text
10421 as a string.
10422
10423 * window.c (Fset_window_hscroll): Doc fix.
10424
10425 2002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10426
10427 * fileio.c (choose_write_coding_system):
10428 Call select-safe-coding-system properly.
10429
10430 2002-06-03 Richard M. Stallman <rms@gnu.org>
10431
10432 * xdisp.c (message_with_string): Error if STRING is not a string.
10433
10434 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
10435
10436 * fileio.c (choose_write_coding_system): Pass FILE arg to
10437 Vselect_safe_coding_system_function.
10438
10439 2002-06-03 Ken Raeburn <raeburn@gnu.org>
10440
10441 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
10442
10443 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
10444
10445 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
10446 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
10447 * keymap.c (describe_command): Likewise.
10448 * minibuf.c (read_minibuf): Likewise.
10449
10450 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
10451 Cast `current_column' return value to int.
10452 (back_to_previous_visible_line_start)
10453 (reseat_at_next_visible_line_start, next_element_from_buffer):
10454 Cast `indented_beyond_p' 3rd arg to float.
10455
10456 * indent.c (last_known_column): Now a float.
10457 (current_column_1, position_indentation, current_column)
10458 (string_display_width): Return float.
10459 (Fcurrent_column): Cast `current_column' return value to int.
10460 (Fcurrent_indentation): Cast `position_indentation' retval to int.
10461 (indented_beyond_p): Third arg now a float.
10462 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
10463
10464 * lisp.h (current_column): Now returns float.
10465 (indented_beyond_p): 3rd arg now a float.
10466
10467 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
10468
10469 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
10470 is Qcompound_text_with_extensions.
10471
10472 * xselect.c (lisp_data_to_selection_data): Always set selection
10473 type as string if x_encode_text returns streingp non-NULL.
10474
10475 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
10476
10477 2002-05-30 Richard M. Stallman <rms@gnu.org>
10478
10479 * window.c (Fset_window_configuration): Correct the handling
10480 of point in current buffer, to work with multiple windows.
10481
10482 2002-05-29 Colin Walters <walters@verbum.org>
10483
10484 * lread.c (Fread_from_string): Don't depend on order of evaluation
10485 for C function parameters.
10486
10487 2002-05-28 Richard M. Stallman <rms@gnu.org>
10488
10489 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
10490 way for blinked-off state and for a nonselected window.
10491
10492 * window.c (window_scroll_pixel_based): Don't call Fbolp;
10493 instead, see if the new start pos is at beginning of line.
10494
10495 * fileio.c (Fwrite_region): If START is a string, don't
10496 make any annotations.
10497
10498 * eval.c (syms_of_eval): Doc fix.
10499
10500 2002-05-28 Colin Walters <walters@debian.org>
10501
10502 * emacs.c (USAGE1): Add --no-splash.
10503 (standard_args): Ditto.
10504
10505 2002-05-28 Colin Walters <walters@gnu.org>
10506
10507 * lread.c (readchar_count): New variable.
10508 (readchar): Increment it.
10509 (unreadchar): Decrement it.
10510 (read_multibyte): Decrement it.
10511 (Vread_with_symbol_positions): New variable.
10512 (Vread_symbol_positions_list): New variable.
10513 (read_internal_start): New function, created from Fread and
10514 Fread_from_string. Handle Vread_symbol_positions_list and
10515 Vread_with_symbol_positions.
10516 (readevalloop, Fread, Fread_from_string): Use it.
10517 (read1): Use readchar_count to add symbol positions to
10518 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
10519 (syms_of_lread): DEFVAR_LISP and initialize them.
10520
10521 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
10522 (substitute_object_recurse, substitute_object_in_subtree)
10523 (substitute_in_interval): Prototype.
10524 (read_multibyte): Return c if it's less than zero.
10525
10526 2002-05-28 Kim F. Storm <storm@cua.dk>
10527
10528 * fileio.c (Fread_file_name_internal): Added brute-force
10529 speed up for using predicate file-directory-p.
10530
10531 2002-05-28 Kim F. Storm <storm@cua.dk>
10532
10533 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
10534 New variables.
10535 (syms_of_fileio): DEFVAR_LISP them.
10536 (read_file_name_cleanup): New unwind function.
10537 (Fread_file_name_internal): Only return completions satifying
10538 Vread_file_name_predicate. Temporarily unwind protect and rebind
10539 default-directory while checking completions against the predicate.
10540 (Fread_file_name): Added PREDICATE argument. Specbind it to
10541 Vread_file_name_predicate during completion.
10542 Call Vread_file_name_function to read the file name if non-nil.
10543
10544 * lisp.h (Fread_file_name): Now has 6 args.
10545
10546 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
10547 predicate for Fread_file_name when reading directory name.
10548 Supply Qnil for predicate in other calls to Fread_file_name.
10549
10550 2002-05-26 Miles Bader <miles@gnu.org>
10551
10552 * term.c (tty_capable_p): New function.
10553 * dispextern.h (tty_capable_p): New function declaration.
10554 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
10555 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
10556
10557 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
10558
10559 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
10560 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
10561 (Vwrite_region_annotate_functions): Docstring fix.
10562
10563 2002-05-23 Kim F. Storm <storm@cua.dk>
10564
10565 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
10566 phys_cursor's hpos is overwritten. This is still not completely
10567 correct, as it doesn't really make sense to use hpos at all to
10568 get the cursor glyph (as that is relative to the width of the
10569 characters on the line, which may have changed during the update).
10570
10571 2002-05-22 Jason Rumney <jasonr@gnu.org>
10572
10573 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
10574 Lisp_Object.
10575 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
10576 Use modified enumfont_t struct.
10577
10578 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
10579
10580 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
10581 Handle the `hbar' cursor type.
10582 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
10583
10584 * w32fns.c (Qhbar): New variable.
10585 (x_specified_cursor_type): Use it.
10586
10587 2002-05-21 Ken Raeburn <raeburn@gnu.org>
10588
10589 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
10590 now, when the address is needed.
10591
10592 2002-05-21 Colin Walters <walters@gnu.org>
10593
10594 * Makefile.in (shortlisp): Add font-core.el.
10595
10596 2002-05-20 Richard M. Stallman <rms@gnu.org>
10597
10598 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
10599
10600 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
10601 equivalent key bindings here.
10602
10603 2002-05-20 Ken Raeburn <raeburn@gnu.org>
10604
10605 Change symbol structure to contain a lisp object for the symbol
10606 name:
10607 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
10608 object field named "xname".
10609 (SYMBOL_NAME): New macro.
10610 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
10611 name field.
10612 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
10613 (mark_object, gc_sweep): Use symbol xname field and XSTRING
10614 instead of name field.
10615 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
10616 SYMBOL_NAME instead of XSYMBOL and name field.
10617 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
10618 instead of XSYMBOL and name field.
10619 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
10620 and SYMBOL_NAME instead of XSYMBOL and name field.
10621 * coding.c (Fread_coding_system, code_convert_region1)
10622 (code_convert_string1, code_convert_string_norecord)
10623 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
10624 XSYMBOL and name field.
10625 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
10626 (Fmake_variable_buffer_local, Fmake_local_variable)
10627 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
10628 of XSYMBOL and name field.
10629 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
10630 XSYMBOL and name field.
10631 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
10632 instead of XSYMBOL and name field.
10633 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
10634 XSYMBOL and name field.
10635 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
10636 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
10637 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
10638 instead of XSYMBOL and name field.
10639 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
10640 (parse_modifiers, apply_modifiers, Fevent_convert_list)
10641 (parse_solitary_modifier, Fexecute_extended_command):
10642 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
10643 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
10644 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
10645 of XSYMBOL and name field.
10646 (describe_command, describe_translation): Use SYMBOL_NAME and
10647 assignment instead of XSYMBOL and name field and XSETSTRING.
10648 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
10649 instead of XSYMBOL and name field.
10650 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
10651 name field and XSETSTRING.
10652 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
10653 of XSYMBOL and name field.
10654 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
10655 assignment instead of XSYMBOL and name field and XSETSTRING.
10656 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
10657 XSTRING instead of XSYMBOL and name field.
10658 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
10659 and XSTRING instead of XSYMBOL and name field.
10660 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
10661 and XSTRING instead of XSYMBOL and name field.
10662 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
10663 XSTRING instead of XSYMBOL and name field.
10664 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
10665 of XSYMBOL and name field.
10666 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
10667 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
10668
10669 2002-05-19 Ken Raeburn <raeburn@gnu.org>
10670
10671 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
10672 and XCDR real rvalues in most configurations.
10673
10674 * buffer.c (fix_overlays_in_range, fix_overlays_before):
10675 Don't take the address of the cdr part of a cons cell; instead, track
10676 the parent cell and call XSETCDR, or set the variable for the head
10677 of the list if we haven't started down the list yet.
10678
10679 2002-05-19 Richard M. Stallman <rms@gnu.org>
10680
10681 * doc.c (reread_doc_file): Don't ask for confirmation.
10682
10683 2002-05-18 Jason Rumney <jasonr@gnu.org>
10684
10685 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
10686 (xbm_load_image): Use it.
10687 (xbm_load): Ditto.
10688 (xbm_read_bitmap_data): Reverted to xfns.c version.
10689 From David Ponce <david@dponce.com>.
10690
10691 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
10692
10693 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
10694 2.02 and later.
10695
10696 2002-05-16 Juanma Barranquero <lektu@terra.es>
10697
10698 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
10699
10700 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
10701
10702 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
10703 meaningful test.
10704 (read_char_minibuf_menu_prompt): Fix typo.
10705
10706 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
10707
10708 * eval.c (Fcommandp): Doc fix.
10709
10710 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
10711
10712 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
10713 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
10714 (Fset_keymap_parent): Gcpro a bit more.
10715 (access_keymap): Gcpro around meta_map call and around the main loop.
10716 (get_keyelt): Gcpro when following indirect references.
10717 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
10718 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
10719 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
10720 Remove useless ad-hoc remap code.
10721
10722 2002-05-13 Richard M. Stallman <rms@gnu.org>
10723
10724 * search.c (search_buffer): Give up boyer moore search if inverse
10725 translation change charset_base.
10726
10727 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
10728
10729 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
10730 characters is carried over from the previous block of text, adjust
10731 coding->produced to account for the extra character.
10732
10733 2002-05-11 Andreas Schwab <schwab@suse.de>
10734
10735 * coding.c (intersection): Keep the elements of the returned list
10736 in the same order as in the first list.
10737
10738 2002-05-11 Kim F. Storm <storm@cua.dk>
10739
10740 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
10741 only update cmm_size if realloc actually succeeds.
10742 Testing with initial size of 2 elements revealed that using
10743 realloc on GNU/Linux would cause a random trap in xmalloc
10744 later on, so I rewrote the code to use malloc/bcopy/free instead
10745 of realloc.
10746
10747 2002-05-10 Jason Rumney <jasonr@gnu.org>
10748
10749 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
10750
10751 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
10752
10753 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
10754 parens, to ensure correct evaluation order.
10755
10756 2002-05-10 Kim F. Storm <storm@cua.dk>
10757
10758 * keymap.c (Vemulation_mode_map_alists): New variable.
10759 (syms_of_keymap): DEFVAR_LISP it.
10760 (current_minor_maps): Process keymap alists in that list before
10761 minor-mode-overriding-map-alist and minor-mode-map-alist.
10762
10763 2002-05-09 Richard M. Stallman <rms@gnu.org>
10764
10765 * search.c (Freplace_match): Doc fix.
10766
10767 2002-05-09 Kim F. Storm <storm@cua.dk>
10768
10769 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
10770 Enlarge cursor rectangle drawn around image with non-zero relief.
10771
10772 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
10773 Enlarge cursor rectangle drawn around image with non-zero relief.
10774
10775 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
10776 Enlarge cursor rectangle drawn around image with non-zero relief.
10777
10778 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
10779
10780 * xselect.c (lisp_data_to_selection_data): Don't set selection
10781 type if comes from the Lisp object's car. If the selection
10782 contains a pure ASCII text, always return QSTRING as its type.
10783
10784 2002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10785
10786 * mac.c (mac-cut-function): Doc fix.
10787
10788 2002-05-05 Richard M. Stallman <rms@gnu.org>
10789
10790 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
10791
10792 2002-05-04 Jason Rumney <jasonr@gnu.org>
10793
10794 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
10795 for event-click-count.
10796
10797 * process.c (init_process): Only add server subfeature if we can
10798 use non-blocking I/O.
10799
10800 2002-05-04 Andrew Choi <akochoi@shaw.ca>
10801
10802 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
10803 repeatedly.
10804
10805 2002-05-03 Jason Rumney <jasonr@gnu.org>
10806
10807 * process.c (Fmake_network_process): Only support server sockets
10808 when we can make them non-blocking.
10809
10810 * s/ms-w32.h (HAVE_SELECT): Define.
10811
10812 * w32.h (FILE_NDELAY): New flag.
10813
10814 * w32.c (sys_getpeername, fcntl): New functions.
10815 (_sys_read_ahead): Temporarily block on non-blocking sockets.
10816
10817 * w32proc.c: include sys/file.h.
10818
10819 2002-05-03 Colin Walters <walters@verbum.org>
10820
10821 * callproc.c (Vgame_score_directory): Renamed to
10822 Vshared_game_score_directory.
10823
10824 2002-04-30 Richard M. Stallman <rms@gnu.org>
10825
10826 * s/gnu.h [emacs]: Include stdio.h.
10827 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
10828
10829 * eval.c (do_autoload): Error if called while preparing to dump.
10830
10831 * fns.c (Frequire): Error if need to load while preparing to dump.
10832
10833 2002-04-28 Colin Walters <walters@verbum.org>
10834
10835 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
10836 Default to "~/.emacs.d/games".
10837
10838 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
10839
10840 * lread.c (openp): Change arg exec_only to predicate.
10841 (build_load_history): Use XCAR/XCDR.
10842 (Flocate_file_internal): New fun.
10843 (syms_of_lread): Defsubr it.
10844 (Fload): Update call to openp.
10845
10846 * lisp.h (openp): Update prototype.
10847
10848 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
10849 * w32proc.c (sys_spawnve):
10850 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
10851 * w32.c (check_windows_init_file):
10852 * sound.c (Fplay_sound_internal):
10853 * process.c (Fstart_process):
10854 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
10855 * mac.c (run_mac_command):
10856 * emacs.c (init_cmdargs):
10857 * callproc.c (Fcall_process): Update call to openp.
10858
10859 * textprop.c (remove_properties): Don't use XCAR without CONSP.
10860
10861 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
10862
10863 2002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10864
10865 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
10866 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
10867
10868 2002-04-28 Richard M. Stallman <rms@gnu.org>
10869
10870 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
10871
10872 * eval.c (Fcommandp): New arg for_call_interactively.
10873 * lisp.h (Fcommandp): Declare new arg.
10874
10875 2002-04-28 Jason Rumney <jasonr@gnu.org>
10876
10877 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
10878
10879 * w32.c (stat, fstat): Use file index information to generate
10880 inodes for directories where available.
10881
10882 2002-04-26 Andrew Choi <akochoi@shaw.ca>
10883
10884 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
10885 [HAVE_CARBON]: Include Mac object files.
10886
10887 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
10888 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
10889 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
10890 MAC_OSX, and MAC_OS instead of macintosh.
10891
10892 * editfns.c [MAC_OS8]: Include stdio.h.
10893
10894 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
10895
10896 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
10897 Apple Monaco.
10898
10899 * process.c: Declare QCfamily and QCfilter as extern.
10900 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
10901 calling select.
10902
10903 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
10904
10905 * tparam.c [MAC_OSX]: Don't define BC and UP.
10906
10907 * config.in [HAVE_CARBON]: Add.
10908
10909 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
10910 Move here from mac/src and mac/inc.
10911
10912 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
10913
10914 2002-04-26 Gerd Moellmann <gerd@gnu.org>
10915
10916 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
10917 Compute phys_cursor_width from the x position returned
10918 by x_draw_glyhs, which is cheaper.
10919 (x_display_and_set_cursor): Compute the buffer-local value
10920 of `cursor-in-non-selected-windows' only when needed.
10921
10922 2002-04-25 Gerd Moellmann <gerd@gnu.org>
10923
10924 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
10925 cursor on a stretch glyph has a width that depends on
10926 x_stretch_cursor_p.
10927
10928 2002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10929
10930 * abbrev.c (abbrev-start-location): Doc fix.
10931
10932 * indent.c (Fvertical_motion): Fix last change.
10933
10934 2002-04-25 Gerd Moellmann <gerd@gnu.org>
10935
10936 * indent.c (Fvertical_motion): Move to the start of the line
10937 containing PT before moving up or down.
10938
10939 2002-04-24 Gerd Moellmann <gerd@gnu.org>
10940
10941 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
10942 case of writing a whole row, more or less analogous to the case of
10943 writing only parts of a row.
10944
10945 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
10946 0 for NO_CURSOR.
10947
10948 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
10949
10950 2002-04-23 Colin Walters <walters@verbum.org>
10951
10952 * buffer.c (syms_of_buffer): Doc fix.
10953
10954 2002-04-23 Gerd Moellmann <gerd@gnu.org>
10955
10956 * xterm.c (notice_overwritten_cursor): Handle the special case
10957 of the cursor being in the first blank non-text line at the
10958 end of a window.
10959
10960 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
10961 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
10962 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
10963 bar cursors only, to make phys_cursor_width contain what its name
10964 suggests.
10965 (notice_overwritten_cursor): Consider the cursor image erased if
10966 the output area intersects the cursor image in y-direction.
10967
10968 2002-04-23 Simon Marshall <simon@gnu.org>
10969
10970 * xfns.c (x_set_mouse_color): Change default for cross_cursor
10971 to XC_hand2.
10972
10973 2002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10974
10975 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
10976
10977 2002-04-22 Kim F. Storm <storm@cua.dk>
10978
10979 * textprop.c (remove_properties): Fixed trap for malformed plist.
10980
10981 2002-04-22 Richard M. Stallman <rms@gnu.org>
10982
10983 * cmds.c (Fend_of_line): Handle intangible text in mid line.
10984
10985 * window.c (make_window): Initialize height_fixed_p,
10986 last_cursor_off_p, and p->cursor_off_p slots.
10987
10988 2002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10989
10990 * fns.c (use-dialog-box): Doc fix.
10991
10992 2002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10993
10994 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
10995 variables `row', `i' and `area'.
10996 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
10997 toolkit library.
10998
10999 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
11000
11001 * xfaces.c (clear_font_table): Don't free the default font of
11002 a frame even if it's on another display.
11003 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
11004 that could be Qt.
11005
11006 2002-04-19 Juanma Barranquero <lektu@terra.es>
11007
11008 * indent.c (Fmove_to_column): Remove unused local variable
11009 `next_boundary_byte'.
11010 (current_column_1): Likewise.
11011
11012 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11013
11014 * msdos.c (Qhbar): New variable.
11015 (syms_of_msdos): Intern and staticpro it.
11016 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
11017 cursor type.
11018
11019 2002-04-19 Dave Lambert <dlambert@acm.org>
11020
11021 Theses change implement an underscore-like (`hbar') cursor.
11022
11023 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
11024
11025 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
11026 Handle the `hbar' cursor type.
11027 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
11028
11029 * xfns.c (Qhbar): New variable.
11030 (syms_of_xfns): Intern and staticpro it.
11031 (x_specified_cursor_type): Handle `hbar' cursor.
11032
11033 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
11034 not defined.
11035
11036 2002-04-18 Richard M. Stallman <rms@gnu.org>
11037
11038 * textprop.c (remove_properties): New arg LIST allows scanning
11039 either a list or a plist.
11040 (interval_has_some_properties_list): New function, like
11041 interval_has_some_properties using list instead of plist.
11042 All callers changed.
11043 (Fremove_list_of_text_properties): New function.
11044 (syms_of_textprop): Defsubr it.
11045
11046 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
11047
11048 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
11049
11050 2002-04-17 Juanma Barranquero <lektu@terra.es>
11051
11052 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
11053
11054 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
11055
11056 * window.c (coordinates_in_window): Don't report on margin area
11057 if its width is zero.
11058
11059 2002-04-16 Jason Rumney <jasonr@gnu.org>
11060
11061 * w32fns.c (Fx_file_dialog): Decode file name before using.
11062
11063 * w32term.c (construct_drag_n_drop): Likewise.
11064
11065 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
11066
11067 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
11068 store load-history in pure space.
11069
11070 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
11071
11072 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
11073
11074 * xterm.c (Qlatin_1, Qutf_8): New vars.
11075 (syms_of_xterm): Initialize them.
11076 (XTread_socket): Eliminate incorrect optimization that tried to avoid
11077 decoding the output of X*LookupString.
11078 Always use latin-1 to decode the output of XLookupString.
11079 Try Xutf8LookupString if XmbLookupString failed.
11080
11081 * region-cache.c (new_region_cache): Use BEG.
11082
11083 2002-04-16 Gerd Moellmann <gerd@gnu.org>
11084
11085 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
11086 configuration files.
11087 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
11088 returns 0.
11089
11090 2002-04-15 Andreas Schwab <schwab@suse.de>
11091
11092 * config.in: Regenerated using autoheader.
11093
11094 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
11095 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
11096 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
11097 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
11098 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
11099 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
11100 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
11101 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
11102 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
11103 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
11104 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
11105 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
11106 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
11107 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
11108 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
11109 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
11110 STACK_DIRECTION, now set by autoconf.
11111
11112 2002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11113
11114 * dispnew.c (marginal_area_string): Sort arguments.
11115
11116 * dispextern.h (marginal_area_string): Add prototype.
11117
11118 2002-04-13 Richard M. Stallman <rms@gnu.org>
11119
11120 * fileio.c (Finsert_file_contents):
11121 Don't call temp_output_buffer_setup--do just part, by hand.
11122
11123 * coding.c (run_pre_post_conversion_on_str):
11124 Don't call temp_output_buffer_setup--do just part, by hand.
11125
11126 * keyboard.c (command_loop_1): Don't call start_hourglass
11127 or cancel_hourglass when executing a macro.
11128
11129 * marker.c (count_markers): New function.
11130
11131 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
11132 grow without limit. Move recently used elements to the front.
11133
11134 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
11135
11136 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
11137
11138 2002-04-12 Gerd Moellmann <gerd@gnu.org>
11139
11140 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
11141 rows marginal areas.
11142 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
11143 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
11144
11145 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
11146
11147 2002-04-12 Dave Love <fx@gnu.org>
11148
11149 * dispnew.c (marginal_area_string): New.
11150
11151 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
11152 (Qleft_margin, Qright_margin): Declare.
11153 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
11154
11155 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
11156 note_mode_line_highlight and extended.
11157
11158 * keyboard.c (Qleft_margin, Qright_margin): Declare.
11159 (make_lispy_event): Deal with mouse events in margins.
11160
11161 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
11162
11163 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
11164
11165 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
11166 than deactivating the mark if tmm is set to `lambda'.
11167 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
11168 Use a single event for HELP_EVENT.
11169 (Fexecute_extended_command): Save last_point_position.
11170
11171 2002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11172
11173 * lisp.h (Fpropertize): Add prototype.
11174
11175 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
11176
11177 2002-04-10 Colin Walters <walters@verbum.org>
11178
11179 * config.in: Add HAVE_SHARED_GAME_DIR.
11180
11181 * callproc.c: (Vgame_score_directory): New variable.
11182 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
11183
11184 2002-04-10 Richard M. Stallman <rms@gnu.org>
11185
11186 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
11187
11188 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
11189
11190 * minibuf.c (read_minibuf): Use empty_string.
11191 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
11192 Short-circuit the search as soon as it "failed".
11193 (Fall_completions): Allow lambda forms and lists of strings for alist.
11194 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
11195 when require_match is nil.
11196 (Ftest_completion): Rename from `test_completion' and export to elisp.
11197 Call the predicate also when alist is a list.
11198 Obey Vcompletion_regexp_list.
11199 (do_completion, Fminibuffer_complete_and_exit): Use it.
11200 (Fassoc_string): Rename from `assoc_for_completion'.
11201 Allow list of strings as well and export to elisp.
11202
11203 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
11204
11205 * puresize.h (BASE_PURESIZE): Increase to 900KB.
11206
11207 2002-04-08 Juanma Barranquero <lektu@terra.es>
11208
11209 * w32.c (sys_accept): Don't hide variable `s'.
11210
11211 2002-04-05 Gerd Moellmann <gerd@gnu.org>
11212
11213 * callint.c (Fcall_interactively): Use INTEGERP instead of
11214 NUMBERP for checking Vhistory_length.
11215
11216 2002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11217
11218 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
11219 Doc fix to reflect it.
11220
11221 2002-04-04 Richard M. Stallman <rms@gnu.org>
11222
11223 * xdisp.c (display_mode_element): New arg RISKY.
11224 Disregard text props found or specified within a variable
11225 that isn't marked risky-local-variable.
11226 (Qrisky_local_variable): New variable.
11227 (syms_of_xdisp): Init and staticpro it.
11228
11229 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
11230
11231 * undo.c (record_point): New fun.
11232 (record_delete, record_insert): Use it.
11233
11234 2002-04-03 Juanma Barranquero <lektu@terra.es>
11235
11236 * doc.c (Fdocumentation): Add missing parentheses.
11237 (Fdocumentation_property): Likewise.
11238
11239 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
11240
11241 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
11242 data is 0, just return nil.
11243
11244 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
11245
11246 * msdos.c (syms_of_msdos): Fix last change with
11247 mouse_autoselect_window.
11248
11249 2002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11250
11251 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
11252 mouse_autoselect_window.
11253
11254 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
11255
11256 * keyboard.c (make_lispy_event): Handle unknown keysyms together
11257 with system-specific keysyms. Use it also for unknown function keys.
11258
11259 * doc.c (reread_doc_file): Return whether reload was attempted.
11260 (Fdocumentation, Fdocumentation_property): Don't try to reload
11261 if the doc is 0 and only ask once.
11262
11263 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
11264
11265 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
11266
11267 * keyboard.c (read_char): If the event was Qselect_window,
11268 restore timer_idleness_start_time to its previous value.
11269
11270 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
11271
11272 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
11273
11274 * region-cache.c (new_region_cache): Use BEG.
11275
11276 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
11277 Use BEG and BEG_BYTE.
11278
11279 * doc.c (get_doc_string): Return nil if the location is wrong.
11280 (reread_doc_file): New fun.
11281 (Fdocumentation, Fdocumentation_property):
11282 Call it if get_doc_string fails.
11283 (Fsnarf_documentation): Make it work for a dumped Emacs.
11284
11285 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
11286 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
11287
11288 * charset.c (Fstring): Allow 0 arguments.
11289
11290 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
11291
11292 * process.c (DATAGRAM_CONN_P, list_processes_1)
11293 (Fprocess_datagram_address, Fset_process_datagram_address)
11294 (Fset_network_process_options, server_accept_connection):
11295 Fix some int/Lisp_Object confusions (thank you union types).
11296
11297 2002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11298
11299 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
11300
11301 * w32term.c: Likewise.
11302 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
11303
11304 * keyboard.c (Qselect_window): New symbol.
11305 (head_table): Use it.
11306 (keys_of_keyboard): Bound select-window event to handle-select-window.
11307 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
11308
11309 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
11310 (last_window): New variable.
11311 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
11312 (note_mouse_movement): Remove reimplemented code in #if 0.
11313 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
11314 Emacs windows.
11315
11316 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
11317
11318 2002-03-31 Gerd Moellmann <gerd@gnu.org>
11319
11320 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
11321 Callers changed.
11322
11323 2002-03-30 Richard M. Stallman <rms@gnu.org>
11324
11325 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
11326 loop whenever it stops making progress.
11327
11328 * widget.c (set_frame_size): Don't call change_frame_size.
11329
11330 2002-03-30 Gerd Moellmann <gerd@gnu.org>
11331
11332 * dispnew.c (direct_output_for_insert):
11333 Call mark_window_display_accurate.
11334
11335 2002-03-29 Jason Rumney <jasonr@gnu.org>
11336
11337 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
11338
11339 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
11340
11341 * Makefile.in (lread.o): Depend on coding.h.
11342
11343 * lread.c (openp, Fload): Encode the file name before passing it
11344 to `stat', `access', and `emacs_open'.
11345 (openp): GCPRO the encoded file name. Don't recompute Lisp
11346 strings unnecessarily.
11347
11348 2002-03-29 Kim F. Storm <storm@cua.dk>
11349
11350 * fns.c (Flax_plist_put): Doc fix.
11351
11352 2002-03-28 Miles Bader <miles@gnu.org>
11353
11354 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
11355
11356 2002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11357
11358 * process.c (set-network-process-options): Add usage.
11359 (make-network-process): Doc fix.
11360
11361 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
11362
11363 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
11364
11365 2002-03-26 Richard M. Stallman <rms@gnu.org>
11366
11367 * fns.c (Fsubstring_no_properties): New function.
11368 (Flax_plist_get, Flax_plist_put): New functions.
11369 (syms_of_fns): defsubr them.
11370
11371 * xdisp.c (update_menu_bar): Test only update_mode_lines;
11372 don't test or alter w->update_mode_line.
11373
11374 * window.c (Fdisplay_buffer): Doc fix.
11375
11376 2002-03-24 Richard M. Stallman <rms@gnu.org>
11377
11378 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
11379
11380 2002-03-24 Gerd Moellmann <gerd@gnu.org>
11381
11382 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
11383 (Fdefmacro): Handle `(declare ...)'.
11384 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
11385 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
11386
11387 2002-03-24 Jason Rumney <jasonr@gnu.org>
11388
11389 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
11390 (xbm_file_p): Add prototypes.
11391 (xbm_format, xbm_image_p): Sync with xfns.c.
11392 (reflect_byte): New function.
11393 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
11394 (xbm_load_image): Create bitmaps with a depth of 1.
11395 (init_xfns): Enable XBM images.
11396
11397 2002-03-23 Jason Rumney <jasonr@gnu.org>
11398
11399 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
11400 correctly. Do not pass up_modifier to keyboard buffer.
11401
11402 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
11403
11404 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
11405
11406 * Makefile.in (bootstrapclean): New target.
11407 (bootstrap-temacs, bootstrap-doc): Remove.
11408 (bootstrap-emacs): Use a bog-standard `temacs'.
11409 Don't bother to build a DOC file.
11410
11411 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
11412
11413 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
11414 in temacs even if !CANNOT_DUMP.
11415 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
11416
11417 * alloc.c (check_pure_size): Only output a warning.
11418
11419 2002-03-22 Jason Rumney <jasonr@gnu.org>
11420
11421 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
11422 supported.
11423
11424 * w32term.c (zv_bits): Declare as short, for word alignment.
11425 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
11426 (syms_of_w32term): Define x-use-underline-position-properties.
11427
11428 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
11429 (clear_image_cache): Block input, fix logic, clear matrices in
11430 all frames that share this cache.
11431
11432 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
11433
11434 * emacs.c (main): Update the Copyright year in the blurb printed
11435 by "emacs --version".
11436
11437 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
11438
11439 * xterm.c (XTread_socket): If XK_ISO_Lock and
11440 XK_ISO_Last_Group_Lock are defined, handle keysyms between
11441 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
11442
11443 2002-03-21 Kim F. Storm <storm@cua.dk>
11444
11445 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
11446 menu-bar bindings in keymap and local-map properties _are_ used.
11447 But try keymap property first in accordance with 2002-01-03 patch.
11448 Added comment describing why this is not always reliable.
11449 (tool_bar_items): Ditto for tool-bar.
11450
11451 2002-03-21 Jason Rumney <jasonr@gnu.org>
11452
11453 * w32fns.c (x_clear_image_1): Disable color table code.
11454
11455 2002-03-21 Kim F. Storm <storm@cua.dk>
11456
11457 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
11458 removed the wrong version of the DEFUN macro; fixed it.
11459
11460 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
11461 Fmember rather than Fmemq).
11462 (Fprovide): Check that subfeatures is a list.
11463
11464 * process.c (QCfeature, QCdatagram): Removed variables.
11465 (QCtype, Qdatagram): New variables.
11466 (network_process_featurep): Removed function.
11467 (Fmake_network_process): Removed :feature check.
11468 Use :type 'datagram instead of :datagram t to create a datagram
11469 socket. This allows us to add other connection types (e.g. raw
11470 sockets) later in a consistent manner.
11471 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
11472 supported subfeatures for feature make-network-process.
11473 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
11474 Intern and staticpro QCtype and Qdatagram.
11475 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
11476
11477 * xfns.c: (QCtype): Remove duplicate declaration and
11478 initialization (is now declared in process.c).
11479
11480 * w32fns.c: (QCtype): Remove duplicate declaration and
11481 initialization (is now declared in process.c).
11482
11483 2002-03-21 Richard M. Stallman <rms@gnu.org>
11484
11485 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
11486 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
11487 when jumping to `fail' to avoid undoing reg changes in the
11488 last iteration of the loop.
11489 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
11490
11491 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
11492 Depend on process.h.
11493
11494 2002-03-20 Jason Rumney <jasonr@gnu.org>
11495
11496 Most of the following changes are still conditional on HAVE_IMAGES
11497 which is not set by default on Windows.
11498
11499 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
11500
11501 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
11502 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
11503 (four_corners_best, x_clear_image_1, x_clear_image)
11504 (x_alloc_image_color, postprocess_image)
11505 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
11506 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
11507 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
11508
11509 * w32gui.h (struct XImage): Define.
11510
11511 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
11512 extract mouse co-ordinates.
11513
11514 2002-03-20 Jason Rumney <jasonr@gnu.org>
11515
11516 * w32.c (init_winsock): Dynamically load new server and UDP
11517 socket functions.
11518 (socket_to_fd): New function.
11519 (sys_socket): Use it.
11520 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
11521 (sys_recvfrom, sys_sendto): New wrapper functions.
11522
11523 * process.c (QCfamily, QCfilter): Remove duplicate declaration
11524 and initialization.
11525
11526 * makefile.w32-in (LIBS): Remove $(WSOCK32).
11527
11528 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
11529
11530 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
11531 Don't use "sun" as a variable, it's a predefined constant on Sun
11532 machines.
11533
11534 2002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11535
11536 * bytecode.c (Fbyte_code): Revert last change.
11537
11538 2002-03-19 Kim F. Storm <storm@cua.dk>
11539
11540 * makefile.w32-in (LIBS): Add $(WSOCK32).
11541 From David Ponce <dponce@voila.fr>.
11542
11543 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11544
11545 * process.c (wait_reading_process_input): Move variables `pname'
11546 and `pnamelen' down where they are used.
11547
11548 * bytecode.c (Fbyte_code): Discard unused computed value to
11549 prevent gcc warning.
11550
11551 * lisp.h (Fplist_member): Add prototype.
11552
11553 2002-03-18 Kim F. Storm <storm@cua.dk>
11554
11555 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
11556 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
11557
11558 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
11559 Remove explicit GNU_LINUX settings for datagram support.
11560
11561 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11562
11563 * process.c (Fmake_network_process): Remove unused variable `sa'.
11564 Doc fix. Add usage:.
11565 (set_socket_options): Remove unused variables `optnum' and `opttype'.
11566
11567 2002-03-17 Richard M. Stallman <rms@gnu.org>
11568
11569 * xdisp.c (cursor_type_changed): New variable.
11570 (redisplay_internal): Redisplay all windows if cursor_type_changed.
11571 Clear it when clearing windows_or_buffers_changed.
11572 (try_cursor_movement, redisplay_window, try_window_id)
11573 (try_window_reusing_current_matrix): Test cursor_type_changed
11574 along with windows_or_buffers_changed.
11575
11576 * window.h (cursor_type_changed): New variable.
11577
11578 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
11579 not update_mode_lines, and always set it to 1.
11580
11581 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
11582 if no frames needed redrawing.
11583
11584 2002-03-17 Kim F. Storm <storm@cua.dk>
11585
11586 The following changes add support for network server processes,
11587 datagram connections, and local (unix) sockets.
11588
11589 * process.h (struct Lisp_Process): New member log.
11590 Doc fix: Member command used to indicate stopped network process.
11591 Doc fix: Member childp contains plist for network process.
11592 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
11593
11594 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
11595 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
11596 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
11597 New variables.
11598 (NETCONN1_P): New macro.
11599 (DATAGRAM_SOCKETS): New conditional symbol.
11600 (datagram_address): New array.
11601 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
11602 (status_message): Use concat3.
11603 (Fprocess_status): Add `listen' status to doc string. Return `stop'
11604 for a stopped network process.
11605 (Fset_process_buffer): Update contact plist for network process.
11606 (Fset_process_filter): Ditto. Don't enable input for stopped
11607 network processes. Server must listen, even if filter is t.
11608 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
11609 New functions.
11610 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
11611 (Fprocess_contact): Added KEY argument. Handle datagrams.
11612 (list_processes_1): Optionally show only processes with the query
11613 on exit flag set. Dynamically adjust column widths. Omit tty
11614 column if not needed. Report stopped network processes.
11615 Identify server and datagram network processes.
11616 (Flist_processes): New optional arg `query-only'.
11617 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
11618 (conv_lisp_to_sockaddr, set_socket_options)
11619 (network_process_featurep, unwind_request_sigio): New helper functions.
11620 (Fprocess_datagram_address, Fset_process_datagram_address):
11621 (Fset_network_process_options): New lisp functions.
11622 (Fopen_network_stream): Removed. Now defined in simple.el.
11623 (Fmake_network_process): New lisp function. Code is based on previous
11624 Fopen_network_stream, but heavily reworked with new property list based
11625 argument list, support for datagrams, server processes, and local
11626 sockets in addition to old client-only functionality.
11627 (server_accept_connection): New function.
11628 (wait_reading_process_input): Use it to handle incoming connects.
11629 Do not enable input on a new connection if process is stopped.
11630 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
11631 (send_process): Handle datagram sockets.
11632 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
11633 network process is indicated by setting command field to t .
11634 (Fprocess_send_eof): No-op if datagram connection.
11635 (Fstatus_notify): Don't read input for a stream server socket or a
11636 stopped network process.
11637 (init_process): Initialize datagram_address array.
11638 (syms_of_process): Intern and staticpro new variables, defsubr new
11639 functions.
11640
11641 2002-03-16 Jason Rumney <jasonr@gnu.org>
11642
11643 * w32fns.c (w32_to_all_x_charsets): Return correct type in
11644 startup case.
11645
11646 2002-03-16 Richard M. Stallman <rms@gnu.org>
11647
11648 * xdisp.c (redisplay_internal, redisplay_windows):
11649 Use list_of_error to call internal_condition_case_1.
11650 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
11651 so as to catch all errors with no possibility of debugger redisplay.
11652 (list_of_error): New variable.
11653 (syms_of_xdisp): Init and staticpro it.
11654
11655 * print.c (print_object): Delete `\ ' from printed rep of frame.
11656
11657 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
11658
11659 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
11660 until its implementation is fixed.
11661
11662 2002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11663
11664 * xfns.c (png_load): Remove unused variable `gamma_str'.
11665
11666 2002-03-14 Richard M. Stallman <rms@gnu.org>
11667
11668 * xfns.c (x_real_positions): Handle failure in XQueryTree.
11669
11670 2002-03-14 Miles Bader <miles@gnu.org>
11671
11672 * intervals.c (adjust_for_invis_intang): New function.
11673 (set_point_both): Use `adjust_for_invis_intang' to do most of the
11674 work for dealing with invisible+intangible regions. Do so before
11675 and after both forward and backward movements, to handle both
11676 front-sticky and rear-sticky cases.
11677 * textprop.c (text_property_stickiness): Function moved here from
11678 `editfns.c'.
11679 * intervals.h (text_property_stickiness): New declaration.
11680 * editfns.c (char_property_eq): Function removed.
11681 (text_property_stickiness): Function moved to `textprop.c'.
11682
11683 2002-03-13 Jason Rumney <jasonr@gnu.org>
11684
11685 * config.in: Add STRFTIME_NO_POSIX2.
11686
11687 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
11688 and %OX when underlying strftime does not.
11689
11690 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
11691
11692 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
11693 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
11694 line) to avoid annoying flicker.
11695 (xm_scroll_callback): Get rid of the now unnecessary kludge.
11696 (XTread_socket): Mark it static.
11697
11698 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
11699
11700 2002-03-13 Kim F. Storm <storm@cua.dk>
11701
11702 * puresize.h (BASE_PURESIZE): Increase to 775000.
11703
11704 2002-03-12 Juanma Barranquero <lektu@terra.es>
11705
11706 * editfns.c (syms_of_editfns): Fix typo.
11707
11708 2002-03-12 Gerd Moellmann <gerd@gnu.org>
11709
11710 * xsmfns.c: Include stdio.h because termhooks.h needs it.
11711 Include termopt.h for interrupt_input.
11712
11713 2002-03-11 Andreas Schwab <schwab@suse.de>
11714
11715 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
11716
11717 2002-03-11 Gerd Moellmann <gerd@gnu.org>
11718
11719 * xterm.c (note_mouse_movement): Put code for
11720 x_autoselect_window_p in #if 0.
11721
11722 * lread.c (Fload): Don't assume that message_with_string uses the
11723 string it is given like a C string.
11724
11725 2002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11726
11727 * xterm.h (x_session_check_input, x_session_initialize): Declared.
11728
11729 * xterm.c: (XTread_socket): Add call to x_session_check_input and
11730 x_session_have_connection.
11731 (x_initialize): Add call to x_session_initialize.
11732
11733 * termhooks.h (enum event_kind): Add save_session_event.
11734
11735 * keyboard.c: Add Emacs event save_session_event.
11736
11737 * emacs.c (main): Add call to syms_of_xsmfns.
11738
11739 * lisp.h: Declare syms_of_xsmfns as extern.
11740
11741 * config.in: Add HAVE_X_SM.
11742
11743 * Makefile.in (LIBXT): Add -lSM -lICE
11744 if HAVE_X_SM and not USE_X_TOOLKIT.
11745 (XOBJ): New file xsmfns.c added.
11746
11747 * xsmfns.c: New file for X session management.
11748
11749 2002-03-09 Jason Rumney <jasonr@gnu.org>
11750
11751 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
11752 read-only when setting modified time.
11753
11754 2002-03-08 Gerd Moellmann <gerd@gnu.org>
11755
11756 * xdisp.c (move_it_vertically_backward): At the end of the function,
11757 when moving forward by lines, treat terminal frames specially.
11758
11759 * keyboard.c (echo_char): Make sure to add a separator between
11760 keys even if echo_dash hasn't been called.
11761
11762 * xdisp.c: Use new string macros.
11763 (update_echo_area): Pass number of bytes to message3 instead of
11764 number of chars.
11765 (set_message_1): Don't access a string's size_byte directly.
11766 (decode_mode_spec_coding): Use number of bytes of eoltype string
11767 instead number of chars.
11768
11769 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
11770
11771 2002-03-08 Juanma Barranquero <lektu@terra.es>
11772
11773 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
11774 24-bit.
11775
11776 2002-03-06 Jason Rumney <jasonr@gnu.org>
11777
11778 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
11779
11780 2002-03-06 Gerd Moellmann <gerd@gnu.org>
11781
11782 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
11783 (cancel_echoing, echo_length, echo_truncate): Changed to
11784 work with new kboard definition.
11785 (echo_now): Use message3_nolog instead of message2_nolog.
11786
11787 * alloc.c (mark_kboards): Mark echo_string.
11788
11789 * keyboard.h (ECHOBUFSIZE): Removed.
11790 (struct kboard): Member echoptr removed, member echobuf renamed
11791 to echo_string.
11792
11793 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
11794 message3 instead of message2 to display the message using STRING's
11795 text properties.
11796
11797 2002-03-05 Andreas Schwab <schwab@suse.de>
11798
11799 * xdisp.c (hscroll_margin): Change to EMACS_INT.
11800
11801 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
11802
11803 * frame.c (default-frame-alist): Explain that setting it doesn't
11804 affect existing frames.
11805
11806 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
11807
11808 * indent.c (skip_invisible): Fix my brain fart.
11809
11810 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
11811
11812 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
11813
11814 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
11815 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
11816 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
11817 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
11818 and variables to use EMACS_INT instead of just int.
11819
11820 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
11821
11822 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
11823
11824 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
11825 environment, pass it down with corrected value.
11826
11827 2002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11828
11829 * lread.c (read_filtered_event): Do not call start_hourglass
11830 before returning.
11831
11832 2002-03-04 Juanma Barranquero <lektu@terra.es>
11833
11834 * w32term.c (x_display_and_set_cursor): Fix typo.
11835
11836 2002-03-03 Richard M. Stallman <rms@gnu.org>
11837
11838 * fileio.c (Fmake_temp_name): Doc fix.
11839
11840 2002-03-03 Gary Wong <gtw@gnu.org>
11841
11842 * termcap.c [!emacs]: Replace ospeed for building standalone
11843 libtermcap, for binary compatibility.
11844
11845 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
11846
11847 2002-03-03 Richard M. Stallman <rms@gnu.org>
11848
11849 * xrdb.c (file_p): Rename arg `path' to `filename'.
11850
11851 * abbrev.c (Fexpand_abbrev): Increment plist as use count
11852 only if it is an integer.
11853
11854 * xfns.c (png_load): Set screen_gamma based on f->gamma.
11855 If png_get_sRGB gives an answer, call png_set_gamma
11856 using the default image gamma value.
11857
11858 * lread.c (read1): When reading from a file, default string to
11859 multibyte only if it has some multibyte characters.
11860
11861 * print.c (print_object): Output multibyte chars 128...255
11862 using \x even if ! print_escape_multibyte.
11863
11864 * xdisp.c (display_mode_element): Move the places where
11865 bytepos, charpos, this, and lisp_string are set.
11866 Use lisp_string to set bytepos.
11867
11868 * xdisp.c (redisplay_internal):
11869 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
11870
11871 * xdisp.c (display_mode_element): Merge properties specified with
11872 :propertize onto those that come with the string.
11873
11874 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
11875
11876 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
11877 automatic-hscrolling. Users changed.
11878 <hscroll-margin>: Renamed from automatic-hscroll-margin.
11879 Users changed.
11880 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
11881
11882 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
11883
11884 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
11885
11886 2002-03-02 Kim F. Storm <storm@cua.dk>
11887
11888 * window.c (Fminibuffer_selected_window): New function.
11889 (syms_of_window): Defsubr it.
11890
11891 2002-03-01 Kim F. Storm <storm@cua.dk>
11892
11893 * window.h (struct window): New member phys_cursor_width.
11894
11895 * window.c (make_window, replace_window): Init phys_cursor_width.
11896
11897 * xterm.c (x_display_and_set_cursor): Blink box cursor using
11898 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
11899
11900 * w32term.c (x_display_and_set_cursor): Blink box cursor using
11901 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
11902
11903 * lisp.h (GCPRO6): New macro.
11904
11905 * process.c (Fopen_network_stream): Use GCPRO6.
11906
11907 2002-03-01 Kim F. Storm <storm@cua.dk>
11908
11909 * process.c (Qconnect, Qfailed): New variables.
11910 (syms_of_process): Intern and staticpro them.
11911 (Fprocess_status): Document connect and failed return values.
11912 [NON_BLOCKING_CONNECT]: New conditional.
11913 (connect_wait_mask, num_pending_connects): New variables.
11914 (status_message): Convert Qfailed status.
11915 (Fopen_network_stream): Added support for non-blocking connect.
11916 New optional args: filter, sentinel, non_blocking. Doc updated.
11917 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
11918 (deactivate_process): Handle pending non-blocking connect.
11919 (wait_reading_process_input): Poll for status of non-blocking
11920 connects. Exec sentinel directly when connect succeeds.
11921 (status_notify): Don't read process output if not yet connected.
11922
11923 2002-02-28 Kim F. Storm <storm@cua.dk>
11924
11925 * window.c: (minibuf_selected_window): Renamed from
11926 Vminibuf_selected_window. Users changed.
11927 (syms_of_window): Staticpro it.
11928
11929 2002-02-26 Kim F. Storm <storm@cua.dk>
11930
11931 The following changes add a new Vminibuf_selected_window variable
11932 which is similar to Vminibuf_scroll_window, but which is only set
11933 on entry to the minibuffer (from a non-minibuffer window):
11934
11935 * window.c: (Vminibuf_selected_window): New variable.
11936 (struct save_window_data): New member minibuf_selected_window.
11937 (Fset_window_configuration): Restore Vminibuf_selected_window.
11938 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
11939 Set minibuf_scroll_window member to nil if minibuf_level is 0.
11940 (compare_window_configurations): Compare minibuf_selected_window.
11941
11942 * window.h: (Vminibuf_selected_window): Declare extern.
11943
11944 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
11945 entry to minibuffer or on entry from a non-minibuffer window.
11946
11947 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
11948 Vminibuf_selected_window instead of Vminibuf_scroll_window.
11949
11950 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
11951 instead of Vminibuf_scroll_window when deciding in which window
11952 the region should be highlighted. Consequently, the region remains
11953 highlighteded even when a completion buffer is also displayed.
11954
11955 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
11956
11957 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
11958
11959 * xselect.c (Qcompound_text_with_extensions): Renamed from
11960 Qcompound_text_no_extensions.
11961 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
11962
11963 2002-02-26 Juanma Barranquero <lektu@terra.es>
11964
11965 * w32proc.c (syms_of_ntproc): Doc fix.
11966
11967 2002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11968
11969 * intervals.h: Include "dispextern.h" unconditionally.
11970
11971 2002-02-24 Jason Rumney <jasonr@gnu.org>
11972
11973 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
11974 and disp-table.elc.
11975 (lisp): Add emacs-lisp/backquote.elc.
11976
11977 2002-02-24 Kim F. Storm <storm@cua.dk>
11978
11979 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
11980 The validation of the event type was too strict as it didn't
11981 allow string events; buffer names are used in bindings for
11982 menu-bar-select-buffer (see `menu-bar-update-buffers').
11983
11984 2002-02-23 Kim F. Storm <storm@cua.dk>
11985
11986 The following changes rework my patch of 2002-02-06 which
11987 added command remapping by entering the commands directly into
11988 the keymaps. Now, command remapping uses an explicit `remap'
11989 prefix in the keymaps, i.e. [remap COMMAND].
11990
11991 * keymap.c (Qremap, remap_command_vector): New variables.
11992 (is_command_symbol): Removed function.
11993 (Fdefine_key): No longer accept a symbol for KEY.
11994 Added validation of [remap COMMAND] argument for KEY.
11995 The DEF is no longer required to be a symbol when remapping a command.
11996 (Fremap_command): New function to remap command through keymaps.
11997 (Flookup_key): Perform command remapping initiated by
11998 Fremap_command directly for speed.
11999 (Fkey_binding): Use Fremap_command for command remapping.
12000 (where_is_internal): Handle new command remapping representation.
12001 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
12002 staticpro them. Defsubr Fremap_command.
12003
12004 * keymap.h (Fremap_command): Declare extern.
12005 (is_command_symbol): Remove extern.
12006
12007 * keyboard.c (command_loop_1): Use Fremap_command for command
12008 remapping; now try command remapping for all symbols.
12009
12010 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
12011
12012 * coding.h (run_pre_post_conversion_on_str): Add prototype.
12013
12014 2002-02-23 Jason Rumney <jasonr@gnu.org>
12015
12016 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
12017 on the string before encoding it.
12018 (Fw32_get_clipboard_data): Run post-read-conversion on the string
12019 after decoding it.
12020
12021 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
12022
12023 2002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12024
12025 * w32term.c (enter_timestamp): Remove unused static variable to
12026 prevent warning.
12027
12028 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
12029
12030 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
12031
12032 * w16select.c (Fw16_get_clipboard_data): Fix last change.
12033
12034 * xselect.c (selection_data_to_lisp_data): Fix last change.
12035
12036 2002-02-22 Jason Rumney <jasonr@gnu.org>
12037
12038 * w32term.h (struct w32_output): New member menu_command_in_progress.
12039
12040 * w32menu.c (menubar_selection_callback): Free the menu and
12041 clear the menu_command_in_progress flag.
12042
12043 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
12044 (menu_free_timer): New variable.
12045 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
12046 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
12047 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
12048 menu command is in progress.
12049 <WM_COMMAND>: Set the menu_command_in_progress flag.
12050 Kill any menu_free_timer that is running.
12051
12052 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
12053 Call ExtTextOutA rather than ExtTextOut.
12054
12055 2002-02-22 Eli Zaretskii <eliz@gnu.org>
12056
12057 * puresize.h (BASE_PURESIZE): Increase to 755000.
12058
12059 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
12060
12061 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
12062 on the string before encoding it.
12063 (Fw16_get_clipboard_data): Run post-read-conversion on the string
12064 after decoding it.
12065
12066 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
12067
12068 Support for ICCCM Extended Segments in X selections:
12069
12070 * xselect.c <Qcompound_text_no_extensions>: New variable.
12071 (syms_of_xselect): Intern and staticpro it.
12072 (selection_data_to_lisp_data): Run post-read-conversion on decoded
12073 selection text.
12074 (lisp_data_to_selection_data): If next-selection-coding-system is
12075 compound-text-no-extensions, set the type of selection to be
12076 compound-text.
12077
12078 * xterm.h (x_encode_text): Update prototype.
12079
12080 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
12081 callers changed. If SELECTIONP is non-zero, run the
12082 pre-write-conversion function before encoding the selection text.
12083
12084 2002-02-21 Kim F. Storm <storm@cua.dk>
12085
12086 * frame.c (syms_of_frame): Change mouse-highlight default to t.
12087
12088 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
12089 Correct composing of language-change event.
12090
12091 2002-02-20 Kim F. Storm <storm@cua.dk>
12092
12093 * keyboard.c (menu_bar_items): Don't include keymap or local-map
12094 bindings at PT when building menu (the menu is not updated often
12095 enough for this to work reliable).
12096 (tool_bar_items): Likewise.
12097 (current_active_maps): Removed unused (and buggy) function.
12098
12099 2002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12100
12101 * xfns.c (gif_load): Use correct width and height for GIF images.
12102
12103 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
12104
12105 * floatfns.c (Fatan): Accept an optional second arg and call
12106 atan2 if passed 2 args.
12107
12108 2002-02-18 Jason Rumney <jasonr@gnu.org>
12109
12110 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
12111
12112 2002-02-17 Jason Rumney <jasonr@gnu.org>
12113
12114 * w32term.c (x_autoselect_window_p): New variable.
12115 (syms_of_w32term): DEFVAR_BOOL and initialize it.
12116 (note_mouse_movement): Use it.
12117
12118 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
12119
12120 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
12121
12122 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
12123 New variables.
12124 (syms_of_w32fns): Intern and staticpro them.
12125 (x_frame_parms) <"fullscreen">: New parameter.
12126 (x_fullscreen_move, x_set_fullscreen): New functions.
12127 (x_set_frame_parameters): Support Qfullscreen.
12128 (x_real_positions): Save x/y_pixels_diff frame params.
12129 (x_figure_window_size): Support full-screen frames.
12130 (Fx_create_frame): Default the fullscreen parameter.
12131
12132 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
12133 (x_fullscreen_adjust): New functions.
12134 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
12135 fullscreen. Call x_check_fullscreen_move, and set the
12136 want_fullscreen member of output_data.w32
12137 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
12138
12139 * w32term.h: New enum for FULLSCREEN_* constants.
12140 (struct w32_output): New members want_fullscreen, x_pixels_diff,
12141 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
12142 (x-fullscreen-adjust): New prototype.
12143
12144 2002-02-17 Kim F. Storm <storm@cua.dk>
12145
12146 * frame.c: (Vmouse_highlight): New variable.
12147 (syms_of_frame): DEFVAR_LISP it.
12148
12149 * frame.h: (Vmouse_highlight): Declare extern.
12150
12151 * xterm.h (struct x_display_info): Add mouse_face_hidden.
12152
12153 * xterm.c (disable_mouse_highlight): Removed variable.
12154 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
12155 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
12156 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
12157 and on after keyboard input.
12158 (x_term_init): Initialize mouse_face_hidden.
12159
12160 * msdos.h (struct display_info): Add mouse_face_hidden.
12161
12162 * msdos.c (disable_mouse_highlight): Removed variable.
12163 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
12164 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
12165 (internal_terminal_init): Initialize mouse_face_hidden.
12166 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
12167 and on after keyboard input.
12168
12169 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
12170
12171 * w32term.c (disable_mouse_highlight): Removed variable.
12172 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
12173 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
12174 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
12175 and on after keyboard input.
12176 (w32_initialize_display_info): Initialize mouse_face_hidden.
12177
12178 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
12179
12180 * msdos.c (last_mouse_window): New variable.
12181 (dos_rawgetc): Fix last change--if the mouse is in the same window
12182 as recorded in last_mouse_window, don't select this window.
12183
12184 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
12185
12186 * msdos.c (x_autoselect_window_p): New variable.
12187 (syms_of_msdos): Defvar it.
12188 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
12189 which the last mouse movement occured, unless it is already selected.
12190
12191 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
12192 New variables.
12193 (syms_of_xdisp): DEVFAR them.
12194 (hscroll_window_tree): Use automatic_hscroll_margin and
12195 Vautomatic_hscroll_step to compute the amount of window scrolling.
12196
12197 2002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12198
12199 * xterm.c (x-autoselect-window): New variable.
12200 (note_mouse_movement): Use it.
12201
12202 * keyboard.c: Do not include "systime.h" twice.
12203
12204 2002-02-15 Andreas Schwab <schwab@suse.de>
12205
12206 * puresize.h (BASE_PURESIZE): Increase to 9/5.
12207
12208 * alloc.c (NSTATICS): Increase to 1280.
12209
12210 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12211
12212 * alloc.c (NSTATICS): Bump to 1026.
12213
12214 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
12215 (Vx_super_keysym): New variables.
12216 (syms_of_xterm): DEFVAR_LISP them.
12217 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
12218 variables to determine which keys to use for the various modifiers.
12219
12220 2002-02-13 Kim F. Storm <storm@cua.dk>
12221
12222 * window.c: (Vmode_line_in_non_selected_windows): Removed.
12223 (mode_line_in_non_selected_windows): New variable.
12224 (syms_of_window): DEFVAR_BOOL it.
12225
12226 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
12227 Use mode_line_in_non_selected_windows.
12228 (mode_line_in_non_selected_windows): Declare extern.
12229 (Vmode_line_in_non_selected_windows): Removed extern.
12230
12231 2002-02-13 Richard M. Stallman <rms@gnu.org>
12232
12233 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
12234 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
12235 (Fclear_this_command_keys): Doc fixes.
12236
12237 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
12238 (update_face_from_frame_parameter): Increment face_change_count
12239 and windows_or_buffers_changed to force redisplay using changed faces.
12240
12241 * xdisp.c (QCpropertize): New variable.
12242 (mode_line_proptrans_alist): New variable.
12243 (display_mode_element): New arg PROPS; all calls changed.
12244 Implement this, for strings.
12245 Handle literal output of strings by sharing the
12246 main-line code for strings, using local var `literal'.
12247 Handle :propertize feature.
12248 (syms_of_xdisp): Initialze and staticpro QCpropertize and
12249 mode_line_proptrans_alist.
12250
12251 2002-02-11 Kim F. Storm <storm@cua.dk>
12252
12253 * window.c: (Vmode_line_in_non_selected_windows): New variable.
12254 (syms_of_window): DEFVAR_LISP it.
12255
12256 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
12257 (CURRENT_MODE_LINE_FACE_ID): Use it.
12258 (Vmode_line_in_non_selected_windows): Declare extern.
12259
12260 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
12261 to get mode line face.
12262
12263 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
12264
12265 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
12266 variables; cus-start.el doesn't need them anymore.
12267
12268 2002-02-09 Kim F. Storm <storm@cua.dk>
12269
12270 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
12271 reduction. This fixes a display problem where stray newlines were
12272 inserted in the window (corrected by C-l). Clarified code (IMHO).
12273
12274 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
12275
12276 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
12277
12278 * xdisp.c (display_mode_lines): Fix last change.
12279
12280 2002-02-09 Jason Rumney <jasonr@gnu.org>
12281
12282 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
12283 match each other.
12284 (w32_load_system_font): Prevent Cleartype fonts from loading.
12285 (Fx_show_tip): Ensure tip frames are above other topmost windows.
12286
12287 2002-02-09 Kim F. Storm <storm@cua.dk>
12288
12289 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
12290 (CURRENT_MODE_LINE_HEIGHT): Use it.
12291 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
12292
12293 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
12294 (pos_visible_p, handle_face_prop): Likewise.
12295 (display_mode_lines): Likewise, but for the real selected window.
12296 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
12297
12298 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
12299 in non-selected windows.
12300 (realize_basic_faces): Realize it.
12301 (syms_of_term): Intern and staticpro it.
12302
12303 2002-02-08 Kim F. Storm <storm@cua.dk>
12304
12305 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
12306 Changed mail addresses to emacs-devel@gnu.org.
12307
12308 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
12309
12310 * fileio.c (Fsubstitute_in_file_name): If the file name includes
12311 ~user, and there's no such user, don't discard everything before ~user.
12312
12313 * floatfns.c (Fround): Doc fix.
12314
12315 2002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12316
12317 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
12318
12319 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
12320
12321 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
12322
12323 2002-02-07 Kim F. Storm <storm@cua.dk>
12324
12325 * keymap.c (where_is_internal): Only check whether definition is
12326 remapped if it fulfills is_command_symbol.
12327
12328 2002-02-07 Andreas Schwab <schwab@suse.de>
12329
12330 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
12331
12332 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
12333
12334 2002-02-06 Kim F. Storm <storm@cua.dk>
12335
12336 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
12337 defining command remapping. Doc updated.
12338 (Flookup_key): Remap command through keymap if KEY is a symbol.
12339 (is_command_symbol): New function.
12340 (Fkey_binding): Use it. New optional argument NO-REMAP.
12341 Doc updated. Callers changed. Perform command remapping via
12342 recursive call unless that arg is non-nil.
12343 (where_is_internal): New argument no_remap. Callers changed.
12344 Call recursively to find original key bindings for a remapped
12345 comand unless that arg is non-nil.
12346 (Fwhere_is_internal): New optional argument NO-REMAP.
12347 Doc updated. Callers changed. Pass arg to where_is_internal.
12348
12349 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
12350 (is_command_symbol): Added prototype.
12351
12352 * keyboard.c (Vthis_original_command): New variable.
12353 (syms_of_keyboard): DEFVAR_LISP it.
12354 (command_loop_1): Set it, and perform command remapping.
12355
12356 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12357
12358 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
12359
12360 2002-02-06 Jason Rumney <jasonr@gnu.org>
12361
12362 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
12363
12364 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
12365
12366 * charset.c (get_charset_id): Use if-else instead of ?:.
12367
12368 2002-02-06 Richard M. Stallman <rms@gnu.org>
12369
12370 * filelock.c (S_ISLNK): Define if not defined.
12371
12372 2002-02-03 Richard M. Stallman <rms@gnu.org>
12373
12374 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
12375
12376 * lread.c (read1): Redesign strategy for force_multibyte and
12377 force_singlebyte. Now is_multibyte records whether read_buffer
12378 is multibyte. Encountering any multibyte character makes it so.
12379
12380 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
12381
12382 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
12383 with the same sequence, map that sequence to f10 rather than f0.
12384
12385 2002-02-03 Andreas Schwab <schwab@suse.de>
12386
12387 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
12388 latter never being defined on GNU/Linux.
12389
12390 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
12391
12392 * xfaces.c (realize_default_face): Don't set the weight and slant of
12393 the default face to Qnormal, unless these attributes are unspecified.
12394
12395 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12396
12397 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
12398 Call cancel_hourglass unconditionally.
12399
12400 * eval.c (Fsignal): Remove duplicated declaration of
12401 the variable `display_hourglass_p'.
12402
12403 2002-01-31 Richard M. Stallman <rms@gnu.org>
12404
12405 * editfns.c (region_limit): Nicer error message.
12406
12407 * coding.c (decode_composition_emacs_mule):
12408 Give up if NCOMPONENT gets too large to index `component'.
12409
12410 * callint.c (check_mark): New arg to specify clearer error message.
12411 Callers changed.
12412
12413 2002-01-27 Richard M. Stallman <rms@gnu.org>
12414
12415 * minibuf.c (Fcompleting_read): Doc fix.
12416
12417 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12418
12419 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
12420 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
12421 Fix doc-strings.
12422
12423 2002-01-26 Richard M. Stallman <rms@gnu.org>
12424
12425 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
12426
12427 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
12428 and scroll_up_aggressively.
12429
12430 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12431
12432 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
12433
12434 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
12435
12436 * textprop.c (Fnext_property_change, Fnext_single_property_change)
12437 (Fprevious_property_change, Fprevious_single_property_change):
12438 Stay within the narrowed-buffer boundaries.
12439
12440 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
12441
12442 * term.c (Ftty_display_color_cells): New function.
12443 (syms_of_term): Defsubr it.
12444 (Ftty_display_color_cells, Ftty_display_color_p): Change the
12445 argument name to DISPLAY. Doc fix.
12446
12447 * dispextern.h: Add prototype for set_tty_color_mode and
12448 tty_setup_colors.
12449
12450 2002-01-24 Jason Rumney <jasonr@gnu.org>
12451
12452 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
12453 If region left to draw is not what was expected, mark the frame as
12454 garbaged.
12455
12456 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
12457 Combine the regions returned by BeginPaint and GetUpdateRect.
12458
12459 2002-01-23 Jason Rumney <jasonr@gnu.org>
12460
12461 * w32term.c (x_update_window_begin): Only hide caret if
12462 w32_use_visible_system_caret is set.
12463 (x_update_window_end): Only show caret if
12464 w32_use_visible_system_caret is set.
12465 (syms_of_w32term): Handle SystemParametersInfo call failing.
12466
12467 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
12468
12469 2002-01-22 Richard M. Stallman <rms@gnu.org>
12470
12471 * unexelf.c (unexec): Define n so as to cause compilation error
12472 for the code where people have often written n instead of nn.
12473
12474 * .gdbinit (hookpost-run): Defined.
12475
12476 2002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12477
12478 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
12479
12480 2002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12481
12482 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
12483 if fullscreen is being set.
12484
12485 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12486
12487 * minibuf.c (Fminibuffer_contents)
12488 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
12489 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
12490
12491 2002-01-21 Richard M. Stallman <rms@gnu.org>
12492
12493 * window.c (check_frame_size): Fix minimum height calculation.
12494
12495 2002-01-20 Ken Raeburn <raeburn@gnu.org>
12496
12497 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
12498 height before comparison.
12499 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
12500
12501 2002-01-20 Jason Rumney <jasonr@gnu.org>
12502
12503 * w32term.c (w32_system_caret_width): Remove.
12504 (w32_use_visible_system_caret): New user flag.
12505 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
12506 Windows reports a screen reader running.
12507 (x_update_window_begin): Hide the system caret.
12508 (x_update_window_end): Show the system caret.
12509 (x_display_and_set_cursor): Don't draw a cursor when
12510 w32_use_visible_system_caret is set. Do not adjust width.
12511
12512 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
12513 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
12514 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
12515 the user requests it. Use system default width when creating.
12516 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
12517
12518 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
12519 New window messages.
12520
12521 2002-01-20 Richard M. Stallman <rms@gnu.org>
12522
12523 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
12524
12525 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12526
12527 * doprnt.c (doprnt1): Fix typos in error call.
12528
12529 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
12530
12531 * unexelf.c (unexec) [__sgi]: Support the .got sections.
12532
12533 2002-01-20 Jason Rumney <jasonr@gnu.org>
12534
12535 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
12536 that Windows returns. If a double check fails, try to guess how
12537 ExtTextOut is going to act.
12538
12539 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
12540 in place of stricmp.
12541 (w32_list_synthesized_fonts): Removed.
12542 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
12543 (struct enumfont_t): New element; list.
12544 (enum_font_cb2): List all style and charset variations of a font.
12545 (Fw32_select_font): New optional argument; include_proportional.
12546 Exclude vertical fonts. Exclude proportional fonts unless
12547 include_proportional is non-nil.
12548 (w32_enable_synthesized_fonts): Change to a boolean.
12549 (Fw32_send_sys_command): Doc fix.
12550
12551 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12552
12553 * dispnew.c (update_frame): Move the variable `tem' to the block
12554 where it is used.
12555
12556 2002-01-19 Jason Rumney <jasonr@gnu.org>
12557
12558 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
12559 call to face-set-after-frame-default.
12560
12561 2002-01-18 Richard M. Stallman <rms@gnu.org>
12562
12563 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
12564 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
12565
12566 2002-01-17 Richard M. Stallman <rms@gnu.org>
12567
12568 * window.c (enlarge_window): When exceeding size of parent,
12569 directly delete all the siblings instead of trying to resize it.
12570
12571 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12572
12573 * term.c (set_tty_color_mode): Remove unused variable `tem'.
12574
12575 2002-01-16 Henrik Enberg <henrik@enberg.org>
12576
12577 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
12578
12579 2002-01-16 Kim F. Storm <storm@cua.dk>
12580
12581 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
12582 is invisible. This can happen if cursor is on top line of a
12583 window, and we switch to a buffer with a header line.
12584
12585 * w32term.c (x_erase_phys_cursor): Ditto.
12586
12587 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12588
12589 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
12590 `dont_resize' only when used.
12591
12592 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
12593
12594 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
12595
12596 * xdisp.c (display_mode_element): When computing charpos, depend
12597 on multibyteness of elt, not the text in field.
12598
12599 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12600
12601 * buffer.c (Fkill_all_local_variables):
12602 Increment `update_mode_lines' only once.
12603
12604 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12605
12606 * lisp.h (adjust_after_replace_noundo)
12607 (Fupdate_coding_systems_internal): Add prototypes.
12608
12609 * sound.c (Fplay_sound): Initialize header_size also for :data case.
12610
12611 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
12612
12613 Support for the --color command-line argument and tty-color-mode
12614 frame parameter:
12615
12616 * term.c (tty_default_color_capabilities, tty_setup_colors)
12617 (set_tty_color_mode): New functions.
12618 (term_init): Call tty_default_color_capabilities.
12619 (Qtty_color_mode_alist): New variable.
12620 (syms_of_term): Intern and staticpro it.
12621
12622 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
12623 frames.
12624 (do_switch_frame): For termcap frames, switch the tty
12625 color mode as specified by the frame's parameters.
12626 (Qtty_color_mode): New variable.
12627 (syms_of_frame): Intern and staticpro it.
12628
12629 * emacs.c (USAGE2): Add the --color option.
12630 (standard_args): Ditto.
12631
12632 2002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12633
12634 * xterm.h (struct x_output): New members want_fullscreen,
12635 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
12636 y_pixels_outer_diff.
12637 New enum for FULLSCREEN_* constants.
12638 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
12639 is NULL.
12640 (x_fullscreen_adjust): Add prototype.
12641
12642 * emacs.c (USAGE2): Add the new full-screen arguments.
12643 (standard_args): Ditto.
12644
12645 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
12646 New variables.
12647 (syms_of_xfns): Intern and staticpro them.
12648 (x_frame_parms) <"fullscreen">: New parameter.
12649 (x_fullscreen_move, x_set_fullscreen): New functions.
12650 (x_set_frame_parameters): Support for Qfullscreen.
12651 (x_real_positions): More accurate computation of the frame position.
12652 (x_figure_window_size): Support full-screen frames.
12653 (Fx_create_frame): Default the fullscreen parameter.
12654
12655 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
12656 (XTread_socket) <Expose>: Call x_check_fullscreen.
12657 <ConfigureNotify>: Don't resize to fullscreen.
12658 Call x_check_fullscreen_move, and set the want_fullscreen member of
12659 output_data.x.
12660
12661 2002-01-13 Jason Rumney <jasonr@gnu.org>
12662
12663 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
12664 for mice with more than 3 buttons.
12665
12666 * w32term.c (parse_button): New parameter xbutton. Callers changed.
12667 (w32_read_socket): Handle new "XBUTTON" messages.
12668
12669 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
12670 (syms_of_w32fns): DEFVAR_BOOL it.
12671 (w32_wnd_proc): Handle new "XBUTTON" messages.
12672
12673 2002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12674
12675 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
12676
12677 2002-01-13 Andreas Schwab <schwab@suse.de>
12678
12679 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
12680
12681 2002-01-12 Andreas Schwab <schwab@suse.de>
12682
12683 * .gdbinit (xbuffer): Remove address operator since data is now a
12684 pointer.
12685
12686 2002-01-11 Richard M. Stallman <rms@gnu.org>
12687
12688 * insdel.c (adjust_after_replace_noundo): New function.
12689
12690 * coding.c (code_convert_region): Don't copy old text if undo disabled.
12691
12692 2002-01-09 Jason Rumney <jasonr@gnu.org>
12693
12694 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
12695 when checking for multiple frames.
12696
12697 2002-01-08 Richard M. Stallman <rms@gnu.org>
12698
12699 * window.c (delete_window): Rewrite the code for changing the
12700 selected window to handle the case where WINDOW is not a leaf.
12701
12702 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
12703
12704 * process.c (send_process): Set src_multibyte to 1 after the call
12705 top setup_coding_system, not before the call.
12706
12707 2002-01-07 Jason Rumney <jasonr@gnu.org>
12708
12709 * xmenu.c (set_frame_menubar, xmenu_show):
12710 (xdialog_show): Initialize wv->help to Qnil.
12711
12712 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
12713 (w32_dialog_show): Initialize wv->help to Qnil.
12714
12715 2002-01-06 Jason Rumney <jasonr@gnu.org>
12716
12717 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
12718
12719 * w32menu.c (w32_menu_display_help): Revert last change.
12720
12721 * xmenu.c (menu_highlight_callback): Revert last change.
12722
12723 2002-01-06 Andreas Schwab <schwab@suse.de>
12724
12725 * insdel.c (make_gap_larger): Make sure buffer size does not
12726 overflow range of int.
12727
12728 2002-01-05 Jason Rumney <jasonr@gnu.org>
12729
12730 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
12731 OVERLAPS_P.
12732
12733 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
12734
12735 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
12736 to the left or to the right of the pointer, put it against
12737 the left screen edge.
12738 (x_frame_parms): Add missing braces around initializer.
12739
12740 * w32term.c (x_setup_relief_colors): Don't compute an image's
12741 background color if it doesn't have a Pixmap.
12742 (notice_overwritten_cursor): Don't depend on
12743 output_cursor and updated_area. Compare pixel coordinates with
12744 window's cursor pixel coordinates.
12745 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
12746 Call notice_overwritten_cursor with new arg list.
12747 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
12748 unconditionally.
12749 (x_draw_image_relief): Use predefined macro instead of
12750 constant when the value of `tool_bar_button_relief' is negative.
12751
12752 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
12753
12754 2002-01-04 Richard M. Stallman <rms@gnu.org>
12755
12756 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
12757
12758 2002-01-03 Richard M. Stallman <rms@gnu.org>
12759
12760 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
12761 (Fkey_binding): Try the `keymap' property map first.
12762 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
12763 minor mode bindings.
12764
12765 2002-01-03 Kim F. Storm <storm@cua.dk>
12766
12767 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
12768
12769 2002-01-02 Richard M. Stallman <rms@gnu.org>
12770
12771 * keyboard.c (read_key_sequence): Handle the keymap property
12772 before minor mode maps.
12773
12774 * editfns.c (Fformat): Update thissize from field_width
12775 based on the actual width, in the string case.
12776
12777 2002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12778
12779 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
12780 when used as truth value to prevent gcc warnings.
12781
12782 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
12783 * w32proc.c: Include <config.h>.
12784
12785 2002-01-01 Andreas Schwab <schwab@suse.de>
12786
12787 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
12788 not EMACS_INT, to make them compatible with DEFVAR_INT.
12789 * lisp.h (max_specpdl_size): Adjust declaration.
12790
12791 2002-01-01 Richard M. Stallman <rms@gnu.org>
12792
12793 * print.c (print_object): Test print_escape_nonascii only for
12794 unibyte strings.
12795 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
12796 when outputting to a multibyte buffer.
12797
12798 2001-12-29 Richard M. Stallman <rms@gnu.org>
12799
12800 * print.c (print_object): In multibyte string, use hex escapes.
12801 Use octal only for unibyte strings.
12802 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
12803
12804 * lread.c (read_escape): New arg BYTEREP for reporting whether
12805 escape forces unibyte or multibyte.
12806 (read1): When reading a string, take note of that info.
12807
12808 2001-12-29 Ken Raeburn <raeburn@gnu.org>
12809
12810 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
12811 comparison to test lisp value returned by Fget.
12812
12813 2001-12-29 Richard M. Stallman <rms@gnu.org>
12814
12815 * lisp.h (max_specpdl_size): Add declaration.
12816
12817 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
12818
12819 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
12820 Handle modifier bits. Correct typo in error message.
12821
12822 2001-12-28 Richard M. Stallman <rms@gnu.org>
12823
12824 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
12825 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
12826 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
12827 Update calls to Fdefine_abbrev.
12828 (write_abbrev): Update for changed data format.
12829 Don't list "system" abbrevs.
12830 (Fexpand_abbrev): Update use count with new data format.
12831 (describe_abbrev): Update for changed data format.
12832 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
12833
12834 * config.in (HAVE_MBSINIT): Add #undef.
12835
12836 * strftime.c (mbsinit): Define as no-op if not available.
12837
12838 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
12839 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
12840
12841 * keymap.c (Flookup_key): Error message if key has wrong data type.
12842 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
12843 (exclude_key): New variable.
12844
12845 2001-12-28 Gerd Moellmann <gerd@gnu.org>
12846
12847 * xterm.c (x_setup_relief_colors): Don't compute an image's
12848 background color if it doesn't have a Pixmap.
12849
12850 * xterm.c (notice_overwritten_cursor): Don't depend on
12851 output_cursor and updated_area. Compare pixel coordinates with
12852 window's cursor pixel coordinates.
12853 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
12854 Call notice_overwritten_cursor with new arg list.
12855 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
12856 unconditionally.
12857
12858 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
12859 height of the cursor line to the amount to scroll.
12860
12861 2001-12-27 Richard M. Stallman <rms@gnu.org>
12862
12863 * intervals.c (set_point_both): The position after an invisible,
12864 intangible character is not an acceptable stopping point.
12865
12866 2001-12-27 Ken Raeburn <raeburn@gnu.org>
12867
12868 * window.c (enlarge_window): In new preserve_before code, convert
12869 CURBEG from lisp object to integer before doing arithmetic.
12870
12871 2001-12-27 Richard M. Stallman <rms@gnu.org>
12872
12873 * bytecode.c (Fbyte_code): Undo previous change.
12874
12875 2001-12-26 Kim F. Storm <storm@cua.dk>
12876
12877 * keyboard.c (record_char): Ignore duplicate help-echo events only
12878 separated by mouse-movement. When tracking mouse, only record
12879 first and last mouse-movement event in same window.
12880 Don't record mouse-movement events in keyboard macros.
12881
12882 2001-12-25 Richard M. Stallman <rms@gnu.org>
12883
12884 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
12885 (Fenlarge_window): New arg PRESERVE_BEFORE.
12886
12887 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
12888 instead of Fstring_as_unibyte.
12889
12890 2001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12891
12892 The following changes remove mocklisp support:
12893
12894 * mocklisp.h, mocklisp.c: Files removed.
12895
12896 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
12897 `Qmocklisp' and `Qmocklisp_arguments'.
12898 Remove prototype of syms_of_mocklisp.
12899
12900 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
12901
12902 * callint.c: Do not include mocklisp.h.
12903 (Fcall_interactively): Do not test for mocklisp case.
12904
12905 * eval.c: Remove variables `Qmocklisp_arguments',
12906 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
12907 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
12908 Do not test for mocklisp case.
12909 (Fwhile): Remove unused variable `tem'.
12910 (syms_of_eval): Remove variable `moclisp-arguments'.
12911
12912 * data.c (wrong_type_argument): Remove mocklisp case.
12913
12914 * doc.c (Fdocumentation): Remove mocklisp case.
12915
12916 * emacs.c (main): Do not call syms_of_mocklisp.
12917
12918 2001-12-21 Richard M. Stallman <rms@gnu.org>
12919
12920 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
12921 to the left or to the right of the pointer, put it against
12922 the left screen edge.
12923
12924 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
12925
12926 * Makefile.in (distclean): Remove .gdbinit if we are building
12927 outside the source tree.
12928
12929 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
12930
12931 * w32.c (emacs_root_dir): New function.
12932
12933 * msdos.c (emacs_root_dir): New function.
12934
12935 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
12936 of the current drive as the fallback for default_directory.
12937
12938 * dired.c (file_name_completion): Run the elements of
12939 completion-ignored-extensions through ENCODE_FILE.
12940
12941 * lisp.h (scmp): Remove prototype, since it's now a static
12942 function private to dired.c.
12943
12944 2001-12-18 Richard M. Stallman <rms@gnu.org>
12945
12946 * dired.c (scmp): Function moved from minibuf.c.
12947 Delete multibyte handling--used only on encoded strings.
12948
12949 * minibuf.c (scmp): Function moved to dired.c.
12950
12951 * fns.c (merge): Add QUIT call.
12952
12953 2001-12-18 Dave Love <fx@gnu.org>
12954
12955 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
12956 language/georgian.el.
12957
12958 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
12959
12960 * Makefile.in (lisp, shortlisp): Synchronize with changes to
12961 lisp/Makefile.in:DONTCOMPILE.
12962
12963 2001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12964
12965 * xdisp.c (window_box_height): Do not return negative values.
12966 From Gerd Moellmann <gerd@gnu.org>.
12967
12968 * keyboard.c (head_table): Add missing braces around initializer.
12969
12970 * term.c (keys): Likewise.
12971
12972 * xfns.c (x_frame_parms, visual_classes): Likewise.
12973
12974 2001-12-17 Sam Steingold <sds@gnu.org>
12975
12976 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
12977 patch (COMPOSING_P, not COMPOSING).
12978
12979 2001-12-17 Richard M. Stallman <rms@gnu.org>
12980
12981 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
12982
12983 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
12984 before calling decode_coding.
12985
12986 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
12987
12988 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
12989 instead of only for COMPOSITION_DISABLED.
12990
12991 2001-12-16 Richard M. Stallman <rms@gnu.org>
12992
12993 * alloc.c (pure_alloc): After overflow, allocate just a small block.
12994
12995 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
12996
12997 * buffer.h (struct buffer): New field `display_error_modiff'.
12998 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
12999
13000 * window.c (Frecenter): Clear display_error_modiff field.
13001
13002 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
13003 Call redisplay_window, but not if display_error_modiff field says no.
13004 (redisplay_window_error): New function.
13005 (displayed_buffer): New variable.
13006 (redisplay_internal, redisplay_windows): Call the new functions
13007 instead of redisplay_window directly.
13008
13009 2001-12-15 Richard M. Stallman <rms@gnu.org>
13010
13011 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
13012
13013 2001-12-14 Andrew Innes <andrewi@gnu.org>
13014
13015 * makefile.w32-in (EMACSLOADPATH): Define.
13016 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
13017 (bootstrap-temacs): Remove dependency on bootstrap-clean.
13018
13019 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
13020
13021 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
13022 parameter have a numeric value all the time.
13023
13024 * w32fns.c (x_report_frame_params): Likewise.
13025
13026 2001-12-12 Richard M. Stallman <rms@gnu.org>
13027
13028 * fileio.c (Fwrite_region): Doc fix.
13029
13030 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
13031 (redisplay_internal): Call clear_image_cache only for window terminals.
13032
13033 2001-12-12 Gerd Moellmann <gerd@gnu.org>
13034
13035 * xdisp.c (move_it_vertically_backward): Change heuristic
13036 for the case that we didn't move far enough initially.
13037
13038 * window.c (Frecenter): Simplify computation in the case of window
13039 system frames and ARG < 0; use window_box_height.
13040
13041 2001-12-11 Richard M. Stallman <rms@gnu.org>
13042
13043 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
13044 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
13045
13046 2001-12-11 Andrew Innes <andrewi@gnu.org>
13047
13048 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
13049 arg is negative.
13050
13051 2001-12-11 Richard M. Stallman <rms@gnu.org>
13052
13053 * m/hp800.h: Split the __hpux conditional into the parts
13054 that are right for GNU/Linux too and the parts that are not.
13055 Use the former if GNU_LINUX.
13056 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
13057
13058 * s/gnu-linux.h (GNU_LINUX): Defined.
13059
13060 2001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13061
13062 * macros.c, msdos.c, w16select.c: Change doc-string comments to
13063 `new style' [w/`doc:' keyword].
13064
13065 2001-12-10 Jason Rumney <jasonr@gnu.org>
13066
13067 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
13068 before using.
13069
13070 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13071
13072 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
13073 keyword].
13074
13075 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
13076
13077 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
13078
13079 * s/hpux10.h (srand48): Don't undefine.
13080
13081 2001-12-09 Jason Rumney <jasonr@gnu.org>
13082
13083 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
13084 Add comment to explain where the struct came from.
13085 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
13086 (add_menu_item): Process pop-up menus first to avoid memory leak.
13087 (add_menu_item, w32_menu_display_help): Use `help' field as
13088 Lisp_Object.
13089 (w32_free_submenu_strings): Only free owner-drawn strings.
13090
13091 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13092
13093 * COPYING: Moved back.
13094
13095 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
13096 Add parentheses around && within ||.
13097
13098 * indent.c (compute_motion): Likewise.
13099
13100 * intervals.c (merge_properties_sticky): Likewise.
13101
13102 * coding.c (setup_coding_system, shrink_encoding_region)
13103 (Fdecode_sjis_char): Likewise.
13104
13105 2001-12-07 Andreas Schwab <schwab@suse.de>
13106
13107 * xdisp.c (display_mode_element): Don't read past end of string if
13108 it ends with '%'.
13109
13110 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
13111 can hold.
13112
13113 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
13114 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
13115 type changed to Lisp_Object.
13116 (syms_of_data): DEFVAR_LISP them.
13117
13118 2001-12-07 Richard M. Stallman <rms@gnu.org>
13119
13120 * callproc.c (init_callproc): Set Vdata_directory based on the source
13121 location whenever Emacs was run uninstalled.
13122
13123 2001-12-06 Paul Eggert <eggert@twinsun.com>
13124
13125 * config.in (HAVE_WORKING_VFORK): New #undefs.
13126 * process.c (create_process):
13127 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
13128 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
13129 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
13130 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
13131 * m/intel386.h (HAVE_VFORK): Likewise.
13132 * m/mips-siemens.h (HAVE_VFORK): Likewise.
13133 * m/mips.h (HAVE_VFORK): Likewise.
13134 * s/freebsd.h (vfork): Remove #define.
13135 * s/lynxos.h (HAVE_VFORK): Remove #undef.
13136 * s/usg5-4-2.h: Fix comment about vfork.
13137
13138 2001-12-06 Richard M. Stallman <rms@gnu.org>
13139
13140 * s/hpux10.h (random): Add undef.
13141 (HAVE_RANDOM): Define it just once.
13142
13143 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
13144
13145 * eval.c: Undo last change: the standard syntax is not wanted.
13146
13147 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
13148
13149 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
13150 scroll bars of the frame before deleting the frame itself. If the
13151 frame has a widget, delete the frame with XtDestroyWidget, and do
13152 not call XDestroyWindow before that.
13153
13154 2001-12-06 Kim F. Storm <storm@cua.dk>
13155
13156 * xfns.c (x_report_frame_params): Return actual fringe widths.
13157
13158 * w32fns.c (x_report_frame_params): Return actual fringe widths.
13159
13160 2001-12-05 Andrew Innes <andrewi@gnu.org>
13161
13162 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
13163 excessively large.
13164
13165 * insdel.c (make_gap_larger): New function.
13166 (make_gap_smaller): New function.
13167 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
13168 Call make_gap_smaller if arg is negative.
13169
13170 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
13171
13172 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
13173 Pass a dummy argument when calling interrupt_signal.
13174 (parse_menu_item): Mark disabled items before checking for empty def.
13175 (read_char_minibuf_menu_prompt): Make safety more visible.
13176 (read_key_sequence): Add a `first_unbound' variable.
13177 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
13178 unbound prefix as soon as we can detect it.
13179
13180 * doc.c (Fsnarf_documentation): Add prototype.
13181 (get_doc_string): Handle negative arguments.
13182 (Fdocumentation): Use AREF and ASIZE.
13183 Move the calls to get_doc_string to a single place.
13184 Don't confuse an interactive-spec for a docstring reference.
13185 (Fdocumentation_property): Take advantage of the fact that
13186 get_doc_string now ignores the sign of the docstring position.
13187
13188 * eval.c: Use standard syntax for usage in docstrings.
13189
13190 2001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13191
13192 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
13193
13194 2001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13195
13196 * xterm.c (x_draw_image_relief): Use predefined macro instead of
13197 constant when the value of `tool_bar_button_relief' is negative.
13198
13199 2001-12-02 Richard M. Stallman <rms@gnu.org>
13200
13201 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
13202 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
13203
13204 * fileio.c (read_non_regular): Delete Fsignal call.
13205
13206 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
13207
13208 * lisp.h (run_hook_list_with_args): Undo last change.
13209
13210 2001-12-01 Gerd Moellmann <gerd@gnu.org>
13211
13212 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
13213
13214 2001-12-01 Jason Rumney <jasonr@gnu.org>
13215
13216 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
13217
13218 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
13219 [!WM_MOUSELEAVE]: Define.
13220
13221 * w32menu.c (current_popup_menu, get_menu_item_info):
13222 (set_menu_item_info): New vars.
13223 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
13224 (w32_menu_show): Set current_popup_menu.
13225 (add_menu_item): Allocate new strings for owner-drawn menu items
13226 and help strings.
13227 Use owner-draw for disabled menu items again.
13228 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
13229 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
13230
13231 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
13232 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
13233 <WM_EXITMENULOOP>: Free menu strings.
13234 <WM_MOUSELEAVE>: Stop tracking mouse.
13235 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
13236
13237 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
13238 and mouse face.
13239
13240 2001-12-01 Kim F. Storm <storm@cua.dk>
13241
13242 The following changes add left-fringe and right-fringe
13243 frame parameters to adjust fringe widths, or remove one or
13244 both fringes.
13245
13246 * frame.h (struct frame): Remove trunc_area_pixel_width and
13247 trunc_area_cols fields.
13248 (Qleft_fringe, Qright_fringe): Declare.
13249 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
13250
13251 * frame.c (Qleft_fringe, Qright_fringe): New vars.
13252 (syms_of_frame): Initialize them.
13253
13254 * window.c (coordinates_in_window): Handle separate left and right
13255 fringe widths.
13256
13257 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
13258 and fringe_cols fields.
13259 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
13260 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
13261 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
13262 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
13263 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
13264 (x_compute_fringe_widths): Add prototype.
13265
13266 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
13267 fill fringe evenly with small dashes.
13268 (x_draw_fringe_bitmap): Clear background if necessary. Align and
13269 clip the new ZV bitmap to avoid jitter between rows.
13270 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
13271 background. Don't draw fringe bitmaps if fringe width is zero.
13272 (x_compute_fringe_widths): New function.
13273 (x_new_font, x_set_window_size_1): Use it.
13274
13275 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
13276 (x_set_frame_parameters): Process `font' parameter before other
13277 parameters as fringe widths depend on it.
13278 (x_set_fringe_width): New function.
13279 (x_figure_window_size): Use x_compute_fringe_widths.
13280 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
13281 parameters.
13282
13283 * widget.c (set_frame_size): Use x_compute_fringe_widths.
13284 (EmacsFrameSetCharSize): Ditto.
13285
13286 * w32term.h: Merged changes from xterm.h.
13287 * w32term.c: Merged changes from xterm.c.
13288 * w32fns.c: Merged changes from xfns.c.
13289
13290 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13291
13292 * COPYING: Removed.
13293
13294 2001-11-29 Dave Love <fx@gnu.org>
13295
13296 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
13297 extra extra slot.
13298 (detect_coding_mask): Fix call of detect_coding_iso2022.
13299
13300 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13301
13302 * fileio.c (file-name-coding-system)
13303 (default-file-name-coding-system): Doc fix (links to referenced
13304 variables added).
13305
13306 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
13307
13308 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
13309 Add dummy uses of gcproN variables.
13310
13311 * category.c (describe_category, describe_category_1)
13312 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
13313 (syms_of_category): Don't defsubr Sdescribe_categories.
13314
13315 2001-11-28 Richard M. Stallman <rms@gnu.org>
13316
13317 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
13318
13319 * Makefile.in (lispdir): New variable, referring to build dir.
13320 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
13321
13322 2001-11-28 Andrew Innes <andrewi@gnu.org>
13323
13324 * w32menu.c (w32_menu_display_help): Actually add the new argument
13325 OWNER.
13326
13327 2001-11-28 Jason Rumney <jasonr@gnu.org>
13328
13329 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
13330 menu items. From David Ponce <dponce@wanadoo.fr>.
13331 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
13332 conditionally.
13333 (w32_menu_display_help): New argument OWNER. Rewritten to store a
13334 help event in the owner frame's keyboard buffer.
13335
13336 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
13337 (Fx_show_tip): Don't subtract last width from row width.
13338
13339 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
13340 (w32_read_socket): Use EQ to compare frames.
13341
13342 2001-11-28 Gerd Moellmann <gerd@gnu.org>
13343
13344 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
13345 OVERLAPS_P.
13346
13347 2001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13348
13349 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
13350 `gcpro3' and `gcpro4'.
13351
13352 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
13353
13354 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
13355
13356 * ccl.c: Use AREF and ASIZE.
13357
13358 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
13359
13360 * lisp.h (run_hook_list_with_args): Remove.
13361 (LIST_END_P): Fix call to wrong_type_argument.
13362 (make_fixnum_or_float): Use EMACS_INT rather than int.
13363
13364 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
13365
13366 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
13367 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
13368
13369 * eval.c: Use AREF and ASIZE.
13370 (Ffetch_bytecode): Add the file name to the error message.
13371
13372 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
13373 which match the end of the file-name.
13374 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
13375 is not a valid env var, but leave it as is instead.
13376
13377 * keymap.c (access_keymap): Handle t bindings like nil bindings.
13378 Make nil bindings in char-tables transparent.
13379 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
13380
13381 2001-11-26 Richard M. Stallman <rms@gnu.org>
13382
13383 * textprop.c (set_text_properties_1): Allow START, END in either order.
13384 Do nothing if range is empty.
13385
13386 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
13387
13388 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
13389 (clean): Not here.
13390
13391 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
13392
13393 * textprop.c (set_text_properties_1): Clearly mark that the
13394 interval should not be empty.
13395
13396 * intervals.c (graft_intervals_into_buffer):
13397 Don't call set_text_properties_1 on an empty interval.
13398
13399 2001-11-25 Richard M. Stallman <rms@gnu.org>
13400
13401 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
13402
13403 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
13404 don't lose the data in it.
13405
13406 2001-11-25 Juanma Barranquero <lektu@terra.es>
13407
13408 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
13409
13410 * buffer.c (Fkill_buffer): Likewise.
13411
13412 * print.c (temp_output_buffer_setup): Likewise.
13413
13414 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
13415
13416 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
13417
13418 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
13419
13420 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
13421 Niemitalo <kon@iki.fi>.
13422
13423 2001-11-25 Jason Rumney <jasonr@gnu.org>
13424
13425 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
13426
13427 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
13428 (Fx_show_tip): Block input during frame creation.
13429 (Fx_show_tip, Fx_hide_tip): Enable.
13430
13431 2001-11-24 Richard M. Stallman <rms@gnu.org>
13432
13433 * lread.c (Fload): Detect recursive load error for more than 3
13434 nestings of the same file.
13435 (Vrecursive_load_depth_limit): Variable deleted.
13436 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
13437
13438 2001-11-24 Jason Rumney <jasonr@gnu.org>
13439
13440 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
13441 mouse position if either left or top is not specified.
13442
13443 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
13444 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
13445 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
13446 (my_create_tip_window): Assign tip_window.
13447 (x_create_tip_frame): Use same defaults as X.
13448 (compute_tip_xy): Remove unused variable. Use full screen width.
13449 (Fx_show_tip): Do not double height. Call ShowWindow directly.
13450
13451 * w32term.c (x_after_update_window_line): Doc fix.
13452 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
13453 frames.
13454 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
13455
13456 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
13457 for all Windowed systems.
13458
13459 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
13460
13461 * msdos.c (IT_clear_screen): If the frame's faces are not yet
13462 realized, use the initial screen colors to clear the screen.
13463
13464 2001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13465
13466 * textprop.c (Fset_text_properties): Remove unused variables
13467 `unchanged', `prev_changed', `s' and `len'.
13468
13469 * search.c (Freplace_match): Remove unused variable `inslen'.
13470
13471 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
13472
13473 2001-11-22 Jason Rumney <jasonr@gnu.org>
13474
13475 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
13476 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
13477 (my_create_tip_window): New function.
13478 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
13479 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
13480
13481 2001-11-20 Jason Rumney <jasonr@gnu.org>
13482
13483 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
13484 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
13485
13486 * w32fns.c (Vw32_system_coding_system): Remove.
13487 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
13488
13489 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
13490
13491 * fileio.c (Fwrite_region): Move choose_write_coding_system to
13492 after build_annotations.
13493
13494 * syntax.c (describe_syntax): Add dummy arg.
13495 (describe_syntax_1): Update call to describe_vector.
13496
13497 * category.c (describe_category): Add dummy arg.
13498 (describe_category_1): Update call to describe_vector.
13499
13500 * keymap.c (Fdescribe_vector): Add `describer' parameter.
13501 (describe_command, describe_translation): Add dummy second param.
13502 (describe_map): Call elt_describer with two arguments.
13503 (describe_vector_princ): Add `fun' parameter.
13504 Call it instead of the hardcoded `princ'.
13505 (describe_vector): Add arg `args'.
13506 Pass it as a new second argument to elt_describer.
13507
13508 * keymap.h (describe_vector): Update prototype.
13509
13510 * frame.c: Don't include keymap.h any more.
13511 (keys_of_frame): Remove.
13512
13513 * lisp.h (keys_of_frame): Remove declaration.
13514
13515 * emacs.c (main): Don't call `keys_of_frame' any more.
13516
13517 2001-11-14 Andreas Schwab <schwab@suse.de>
13518
13519 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
13520 if defined, 0 otherwise.
13521 (MAP_FAILED): Define if not defined and use it to test mmap failure.
13522 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
13523
13524 2001-11-19 Richard M. Stallman <rms@gnu.org>
13525
13526 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
13527
13528 2001-11-18 Jason Rumney <jasonr@gnu.org>
13529
13530 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
13531 (x_draw_bar_cursor): If the background color of the glyph under
13532 the cursor equals the frame's cursor color, use the glyph's
13533 foreground color for drawing the bar cursor.
13534 (x_after_update_window_line): Clear internal border in different
13535 circumstances.
13536 (w32_set_vertical_scroll_bar): Check for width and height > 0.
13537 (w32_draw_relief_rect): Correct relief by 1 pixel.
13538 (x_set_glyph_string_background_width):
13539 Set extends_to_end_of_line_p if the row's fill_line_p is set and
13540 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
13541 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
13542 if cursor_in_non_selected_windows is false.
13543 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
13544 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
13545 Notice if cursor gets overwritten.
13546 (notice_overwritten_cursor): Renamed from
13547 note_overwritten_text_cursor. Rewritten to take glyph widths
13548 into account, and to take X positions as parameters.
13549 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
13550 around call to x_draw_glyphs.
13551 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
13552 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
13553 color to use for image glyph reliefs.
13554 (x_draw_image_relief): Accept zero tool_bar_button_relief.
13555 (glyph_rect): Remove unused variable `area'.
13556
13557 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
13558 some items.
13559 (x_set_internal_border_width): Set frame garbaged when window
13560 doesn't exist yet.
13561 (Fx_create_frame): Accept zero tool_bar_button_relief.
13562 (x_clear_image_1, four_corners_best, image_background)
13563 (image_background_transparent): New functions.
13564 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
13565 (gs_format): Add `:background' entry.
13566 (lookup_image): Set IMG's background color if specified.
13567 (pbm_load, xbm_load_image, png_load): Set IMG's background field
13568 when appropriate.
13569 (x_clear_image_1): Reset `background_valid' and
13570 `background_transparent_valid' fields.
13571 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
13572 calculating it here. Set IMG's background_transparent field.
13573 (enum xpm_keyword_index): Add XPM_BACKGROUND.
13574 (enum png_keyword_index): Add PNG_BACKGROUND.
13575 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
13576 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
13577 (enum gif_keyword_index): Add GIF_BACKGROUND.
13578 (enum gs_keyword_index): Add GS_BACKGROUND.
13579 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
13580 Pre-calculate image background color where necessary.
13581 (x_create_x_image_and_pixmap, xbm_load, gs_load):
13582 Use display info's n_cbits entry for screen depth.
13583 (Fx_show_tip): Remove unused variables `buffer', `top',
13584 `left', `max_width' and `max_height'.
13585
13586 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
13587
13588 2001-11-18 Gerd Moellmann <gerd@gnu.org>
13589
13590 * puresize.h (BASE_PURESIZE): Increase to 750000.
13591
13592 2001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13593
13594 * frame.c (Fframe_live_p): Doc fix.
13595
13596 2001-11-18 Richard M. Stallman <rms@gnu.org>
13597
13598 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
13599 (message_dolog_marker3): New static variables hold three markers.
13600 (syms_of_xdisp): Initialize and staticpro them.
13601 (message_dolog): Use message_dolog_marker1..3 instead of
13602 allocating markers each time. Unchain them when done.
13603
13604 2001-11-17 Richard M. Stallman <rms@gnu.org>
13605
13606 * doc.c (Fsnarf_documentation): Doc fix.
13607
13608 2001-11-17 Andreas Schwab <schwab@suse.de>
13609
13610 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
13611
13612 2001-11-17 Richard M. Stallman <rms@gnu.org>
13613
13614 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
13615
13616 2001-11-17 Jason Rumney <jasonr@gnu.org>
13617
13618 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
13619
13620 2001-11-17 Gerd Moellmann <gerd@gnu.org>
13621
13622 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
13623 with invalid position.
13624
13625 2001-11-16 Richard M. Stallman <rms@gnu.org>
13626
13627 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
13628
13629 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
13630 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
13631 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
13632
13633 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
13634
13635 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
13636
13637 * fileio.c (build_annotations): Split off the tail.
13638 (build_annotations_2): New fun. Extracted from build_annotations.
13639 (Fwrite_region): Split the call to build_annotations into two
13640 calls to build_annotations and build_annotations_2.
13641
13642 2001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13643
13644 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
13645 clear_waiting_for_input with argument.
13646
13647 * xterm.h (x_update_cursor): Remove duplicated prototype.
13648
13649 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
13650
13651 * xterm.c (waiting_for_input): Remove unnecessary declaration.
13652
13653 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
13654
13655 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
13656
13657 * fileio.c (choose_write_coding_system): New fun, extracted
13658 from Fwrite_region.
13659 (Fwrite_region): Use it.
13660
13661 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
13662 (funcall_lambda, run_hook_with_args): Make static and add prototype.
13663 (ml_apply, find_handler_clause): Add prototype.
13664
13665 2001-11-16 Eli Zaretskii <eliz@gnu.org>
13666
13667 * config.in: Add #undef HAVE_COFF_H.
13668
13669 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
13670 Required for ISC 4.1.
13671
13672 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
13673
13674 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
13675 Andrew Wiseman <a.wiseman@btclick.com>.
13676
13677 2001-11-16 Kim F. Storm <storm@cua.dk>
13678
13679 The following changes are made to clean up the various internal
13680 references to the fringes to actually use the term `fringe' for
13681 them. Previously, they were called `flags areas', `bitmap areas',
13682 `left/right side of windows', or implicitly as `flags' or
13683 `bitmaps':
13684
13685 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
13686 Comments fixed. Use renamed symbols.
13687
13688 * dispnew.c: Comment fix. Use renamed symbols.
13689
13690 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
13691 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
13692 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
13693
13694 * msdos.c: Comment fix.
13695
13696 * w32fns.c: Use renamed symbols.
13697
13698 * w32term.c: Comment fixes. Use renamed symbols.
13699 (fringe_bitmap_type): Renamed from bitmap_type.
13700 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
13701 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
13702 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
13703
13704 * w32term.h: Comment fixes. Use renamed symbols.
13705 (fringes_extra): Renamed from flags_areas_extra.
13706 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
13707 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
13708 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
13709 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
13710 (FRAME_X_LEFT_FRINGE_WIDTH):
13711 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
13712 (FRAME_X_RIGHT_FRINGE_WIDTH):
13713 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
13714
13715 * widget.c: Use renamed symbols.
13716
13717 * window.c: Comment fixes. Use renamed symbols.
13718 (coordinates-in-window-p): Doc fix.
13719
13720 * xdisp.c: Comment fixes. Use renamed symbols.
13721
13722 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
13723
13724 * xfns.c: Use renamed symbols.
13725
13726 * xterm.c: Comment fixes. Use renamed symbols.
13727 (fringe_bitmap_type): Renamed from bitmap_type.
13728 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
13729 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
13730 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
13731
13732 * xterm.h: Comment fixes. Use renamed symbols.
13733 (fringes_extra): Renamed from flags_areas_extra.
13734 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
13735 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
13736 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
13737 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
13738 (FRAME_X_LEFT_FRINGE_WIDTH):
13739 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
13740 (FRAME_X_RIGHT_FRINGE_WIDTH):
13741 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
13742
13743 2001-11-15 Jason Rumney <jasonr@gnu.org>
13744
13745 * w32menu.c (add-menu-item): Make help_echo and radio buttons
13746 work for most menu items. From David Ponce
13747 <david.ponce@wanadoo.fr>.
13748
13749 2001-11-15 Gerd Moellmann <gerd@gnu.org>
13750
13751 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
13752 Some x_set_* function expect to be called even if old and new
13753 value are equal.
13754
13755 * xdisp.c (build_desired_tool_bar_string): Accept zero
13756 tool_bar_button_relief.
13757
13758 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
13759
13760 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
13761
13762 * xterm.c (x_draw_bar_cursor): If the background color of the
13763 glyph under the cursor equals the frame's cursor color, use
13764 the glyph's foreground color for drawing the bar cursor.
13765
13766 * dispnew.c (direct_output_forward_char): Fix character/byte
13767 position comparison.
13768
13769 2001-11-15 Miles Bader <miles@gnu.org>
13770
13771 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
13772 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
13773 Update arguments to find_field.
13774 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
13775 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
13776 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
13777 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
13778
13779 2001-11-14 Richard M. Stallman <rms@gnu.org>
13780
13781 * editfns.c (Fpropertize): Allow call with 1 arg.
13782
13783 * dispextern.h (image_background, image_background_transparent):
13784 Conditionalize on HAVE_X_WINDOWS.
13785
13786 2001-11-13 Richard M. Stallman <rms@gnu.org>
13787
13788 * print.c (Fprin1_to_string): Doc fix.
13789
13790 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
13791
13792 * floatfns.c (Fceiling, Ffloor): Doc fixes.
13793
13794 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
13795
13796 * fileio.c (Ffile_accessible_directory_p): Doc fix.
13797
13798 * eval.c (syms_of_eval): Doc fix.
13799
13800 * coding.c (syms_of_coding): Doc fix.
13801
13802 * doc.c (Fsnarf_documentation): Doc fix.
13803
13804 * dispnew.c (syms_of_display): Doc fix.
13805
13806 * category.c (Fget_unused_category): Doc fix.
13807
13808 * buffer.c (syms_of_buffer): Doc fixes.
13809
13810 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
13811
13812 * print.c (prin1, print): Doc fix.
13813
13814 2001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13815
13816 * fontset.h: Remove declarations of variables
13817 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
13818
13819 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
13820 `Vclip_large_size_font'.
13821
13822 2001-11-13 Jason Rumney <jasonr@gnu.org>
13823
13824 * w32fns.c: Doc fix.
13825
13826 2001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13827
13828 * xfaces.c (Fface_attributes_as_vector): Doc fix.
13829
13830 * fns.c: Doc fix.
13831
13832 * emacs.c: Doc fix.
13833
13834 * coding.c: Doc fix.
13835
13836 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
13837 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
13838 `new style' [w/`doc:' keyword].
13839
13840 2001-11-12 Richard M. Stallman <rms@gnu.org>
13841
13842 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
13843 LeaveNotify events. Only FocusIn and FocusOut do that now.
13844 (x_display_and_set_cursor): Do display hollow cursors in active
13845 minibuffer windows when they are not selected.
13846
13847 2001-11-12 Jason Rumney <jasonr@gnu.org>
13848
13849 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
13850 * w32term.c: Change doc-string comments to `new style'
13851 [w/`doc:' keyword]. Doc fixes.
13852
13853 * w32fns.c: Don't define max.
13854 (Fx_open_connection): Only execute once.
13855
13856 2001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13857
13858 * ccl.c: Change macros to use do-while block instead of if-else.
13859 Use braces to follow GNU Coding Standards.
13860
13861 2001-11-11 Richard M. Stallman <rms@gnu.org>
13862
13863 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
13864
13865 * lread.c (read_escape): Use end_of_file_error for reporting eof.
13866
13867 * insdel.c (replace_range): Use adjust_markers_for_replace
13868 instead of adjust_markers_for_delete and adjust_markers_for_insert.
13869
13870 * intervals.h: Declare set_text_properties and set_text_properties_1.
13871
13872 * textprop.c (set_text_properties_1): New subroutine
13873 broken out of set_text_properties.
13874 (set_text_properties): Use set_text_properties_1.
13875
13876 * intervals.c (graft_intervals_into_buffer):
13877 Use set_text_properties_1 to clear out properties.
13878
13879 * search.c (Freplace_match): Use replace_range to insert
13880 and delete. Don't request property inheritance from
13881 surrounding text.
13882
13883 2001-11-10 Jason Rumney <jasonr@gnu.org>
13884
13885 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
13886 vertical fonts. Allow them if face name is explicitly specified.
13887 Do not give up if we find a font that cannot be converted to an xlfd.
13888
13889 2001-11-10 Gerd Moellmann <gerd@gnu.org>
13890
13891 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
13892 instead of malloc/free.
13893
13894 2001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13895
13896 * xfaces.c (merge_face_vectors): Use braces to follow GNU
13897 Coding Standards.
13898 (Finternal_set_lisp_face_attribute): Likewise.
13899
13900 * buffer.c (Fbury_buffer): Likewise.
13901
13902 * indent.c (current_column_1): Remove unused variable `prev_col'.
13903
13904 * coding.c (encode_coding): Use precomputed value of `src'.
13905 (encode_coding): Remove unused variable `src_end'.
13906 (code_convert_region): Remove unused variables `count'.
13907
13908 2001-11-07 Jason Rumney <jasonr@gnu.org>
13909
13910 * w32term.c (x_display_and_set_cursor): Do not move system caret
13911 if cursor_glyph is NULL.
13912
13913 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13914
13915 * keymap.c (access_keymap): Fix compilation error.
13916
13917 2001-11-07 Miles Bader <miles@gnu.org>
13918
13919 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
13920
13921 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13922
13923 * intervals.c (graft_intervals_into_buffer):
13924 Remove #ifdef'd-out code.
13925 (graft_intervals_into_buffer): Remove unused variable `middle'.
13926
13927 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
13928 code (eval-current-buffer).
13929 Change doc-string comments to `new style' [w/`doc:' keyword].
13930
13931 2001-11-06 Richard M. Stallman <rms@gnu.org>
13932
13933 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
13934
13935 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
13936
13937 * lread.c (read1): Fix behavior with nested backquoting.
13938
13939 * keyboard.c (make_lispy_event): Check integerness and fix
13940 Lisp_Object/int mixup.
13941
13942 2001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13943
13944 * fns.c (copy_hash_table): Remove unused variable `v'.
13945
13946 * fontset.c (fontset_font_pattern): Remove unused variable
13947 `family_registry'.
13948
13949 * indent.c (current_column_1): Remove unused variable `prev_col'.
13950
13951 2001-11-05 Richard M. Stallman <rms@gnu.org>
13952
13953 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
13954
13955 * buffer.c (Fkill_buffer): Don't delete auto save file
13956 if buffer is modified.
13957
13958 2001-11-05 Andrew Innes <andrewi@gnu.org>
13959
13960 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
13961 CHECK_NUMBER_CDR.
13962
13963 2001-11-05 Richard M. Stallman <rms@gnu.org>
13964
13965 * unexelf.c (unexec): Minor changes; clean up comments.
13966
13967 2001-11-05 Sam Steingold <sds@gnu.org>
13968
13969 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
13970
13971 2001-11-05 Andreas Schwab <schwab@suse.de>
13972
13973 * sound.c (sound_perror): Save errno from being clobbered.
13974
13975 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
13976
13977 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
13978 the program image directly.
13979
13980 2001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13981
13982 * buffer.h (Fbuffer_local_value): Add prototype.
13983
13984 2001-11-04 Richard M. Stallman <rms@gnu.org>
13985
13986 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
13987 and CHECK_BUFFER.
13988
13989 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
13990 (record_char): Likewise.
13991
13992 * keyboard.c (make_lispy_event): Don't insist a drag event must
13993 move to a different buffer position. Instead, check for moving at
13994 least double_click_fuzz.
13995
13996 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
13997
13998 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
13999
14000 * indent.c (current_column_1, Fmove_to_column): Separate the code
14001 for display-table glyphs from the code for buffer text, to fix
14002 bugs in the former.
14003
14004 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
14005
14006 * buffer.c (Fbuffer_local_value): New function.
14007 (syms_of_buffer): Defsubr it.
14008
14009 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
14010 value of `cursor-in-non-selected-windows'.
14011
14012 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
14013 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
14014 (syms_of_xdisp): Initialize it.
14015
14016 2001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14017
14018 * xfns.c (Fx_create_frame): Doc fix.
14019
14020 * coding.c: Change doc-string comments to `new style' [w/`doc:'
14021 keyword].
14022
14023 * eval.c (top_level_value, top_level_set): Remove commented and
14024 #ifdef'd-out code.
14025 (Fdefvar): Fix usage in doc-string.
14026
14027 2001-11-03 Richard M. Stallman <rms@gnu.org>
14028
14029 * xfns.c: Include unistd.h, if it exists.
14030
14031 * editfns.c: Move the include of ctype.h after unistd.h.
14032
14033 * gmalloc.c: Test BROKEN_PROTOTYPES.
14034
14035 2001-11-03 Ken Raeburn <raeburn@gnu.org>
14036
14037 * lisp.h (CHECK_STRING_CAR): New macro.
14038 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
14039 treating XCAR and XCDR as lvalues.
14040 (openp): Use CHECK_STRING_CAR.
14041 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
14042
14043 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
14044
14045 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
14046 (SIGMASKTYPE): Define.
14047
14048 * syssignal.h (sigunblock): Don't define if already defined.
14049
14050 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14051
14052 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
14053 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
14054 Fix typos in comments.
14055
14056 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
14057 and #ifdef'd-out code.
14058 Fix and reindent comments.
14059
14060 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
14061
14062 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
14063 argument `i' in macros.
14064
14065 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
14066 `i' in macros.
14067
14068 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
14069 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
14070 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
14071 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
14072 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
14073 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
14074 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
14075 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
14076 in macros.
14077
14078 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
14079 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
14080 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
14081 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
14082 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
14083 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
14084 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
14085 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
14086 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
14087 (remove unused second argument).
14088
14089 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
14090
14091 * syntax.c (describe_syntax): New wrapper.
14092 (Finternal_describe_syntax_value): Rename from describe_syntax.
14093 Don't insert space at front and \n at the end.
14094 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
14095
14096 * regex.c (re_wctype): Try to fix some warnings.
14097 (regcomp, regexec): Don't forget the __restrict.
14098
14099 2001-11-02 Richard M. Stallman <rms@gnu.org>
14100
14101 * textprop.c (Fget_char_property): Doc fix.
14102
14103 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14104
14105 * process.c (Fstart_process): Add usage to doc-string.
14106
14107 * data.c (Fsetq_default): Ditto.
14108
14109 * callint.c (Finteractive): Ditto.
14110
14111 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
14112
14113 * macros.c: Don't include keymap.h any more.
14114
14115 2001-11-01 Richard M. Stallman <rms@gnu.org>
14116
14117 * data.c (Fmake_local_variable): Doc fix.
14118
14119 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
14120 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
14121
14122 * keymap.c (Fdescribe_buffer_bindings): Print character property
14123 bindings along with or instead of the buffer local map.
14124 Make the overriding maps override what they should.
14125
14126 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14127
14128 * window.c (grow_mini_window): Fix typo in comment.
14129
14130 2001-11-01 Gerd Moellmann <gerd@gnu.org>
14131
14132 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
14133 (XTset_vertical_scroll_bar): Likewise.
14134
14135 * xfns.c (x_build_heuristic_mask): Use four_corners_best
14136 instead of IMAGE_BACKGROUND.
14137
14138 * xfns.c (four_corners_best): Reindent.
14139
14140 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
14141 Handle :box so that it is possible to specify sexprs.
14142
14143 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
14144
14145 * s/hpux11.h: New file.
14146
14147 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14148
14149 * emacs.c (USAGE1): Show command line option --no-window-system
14150 instead of --no-windows in usage.
14151 (standard_args): Rename --no-windows to --no-window-system.
14152 (bug_reporting_address): Follow Emacs coding conventions.
14153
14154 * eval.c (Fcommandp): Doc fix.
14155 Change doc-string comments to `new style' [w/`doc:' keyword].
14156
14157 * frame.c (Fframe_live_p): Doc fix.
14158
14159 * buffer.c (selective-display-ellipses): Doc fix.
14160
14161 2001-10-31 Gerd Moellmann <gerd@gnu.org>
14162
14163 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
14164
14165 * xfaces.c (realize_x_face): If C is not a single-byte character,
14166 set the face's colors_copied_bitwise_p instead of the defaulted_p
14167 members which have a different meaning.
14168 (free_face_colors): Do nothing for a face whose colors have been
14169 copied bitwise.
14170
14171 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
14172
14173 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14174
14175 * marker.c, mocklisp.c: Change doc-string comments to `new style'
14176 [w/`doc:' keyword].
14177
14178 2001-10-31 Gerd Moellmann <gerd@gnu.org>
14179
14180 * fns.c (require_unwind): Return Lisp_Object.
14181
14182 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14183
14184 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
14185 (last-input-char): Revert doc-string to be the same as the
14186 doc-string of `last-input-event'.
14187
14188 * xdisp.c: Fix typos in comments.
14189
14190 2001-10-31 Gerd Moellmann <gerd@gnu.org>
14191
14192 * window.c (grow_mini_window): Handle case that the root
14193 window is already smaller than the nominal mininum height.
14194
14195 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
14196
14197 * emacs.c (main): Don't call keys_of_macros any more.
14198
14199 * lisp.h (keys_of_macros): Remove.
14200
14201 * macros.c (keys_of_macros): Remove.
14202
14203 * xfaces.c (Fface_attribute_relative_p): Declare args.
14204
14205 2001-10-30 Jason Rumney <jasonr@gnu.org>
14206
14207 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
14208 (enum_font_cb2): Ignore fonts with vertical orientation.
14209
14210 2001-10-30 Richard M. Stallman <rms@gnu.org>
14211
14212 * keyboard.c (Finput_pending_p): Doc fix.
14213
14214 2001-10-30 Gerd Moellmann <gerd@gnu.org>
14215
14216 * xterm.c (x_after_update_window_line): Don't run the code
14217 clearing in borders for rows whose visible height is 0.
14218
14219 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
14220 resized_p flag is set. If not set, use the much less flickering
14221 method previously used.
14222
14223 * dispnew.c (change_frame_size_1): Set frame's resized_p.
14224
14225 * frame.h (struct frame) <resized_p>: New member.
14226
14227 * lread.c (to_multibyte): Ensure read_buffer is at least twice
14228 as large as the number of bytes to convert.
14229
14230 * lread.c (to_multibyte): New function.
14231 (read1): Use it.
14232
14233 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
14234
14235 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
14236
14237 2001-10-30 Gerd Moellmann <gerd@gnu.org>
14238
14239 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
14240 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
14241 if the row's fill_line_p is set and drawing the last glyph with
14242 DRAW_IMAGE_{RAISED,SUNKEN}.
14243
14244 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
14245
14246 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
14247
14248 * xmenu.c: Include coding.h and charset.h.
14249 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
14250 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
14251 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
14252 Explicitly set wv->help. Use `TRUE' rather than `True'.
14253 (menu_help_callback): Use empty_string.
14254
14255 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
14256 (Fx_popup_dialog): Explicitly init f.
14257 (w32_menu_display_help): Use empty_string.
14258
14259 2001-10-29 Richard M. Stallman <rms@gnu.org>
14260
14261 * fns.c (Frequire): Detect recursive try to require the same
14262 feature 3 or more levels deep, and get error.
14263 (require_unwind): New subroutine.
14264 (require_nesting_list): New variable.
14265 (syms_of_fns): Init and staticpro it.
14266
14267 * print.c (print_object): Clarify indication of insertion type.
14268
14269 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
14270
14271 * coding.c (syms_of_coding): Document that locale-coding-system is
14272 used for decoding input on X.
14273
14274 * window.c (Fscroll_left, Fscroll_right): Doc fix.
14275
14276 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14277
14278 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
14279 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
14280
14281 2001-10-29 Gerd Moellmann <gerd@gnu.org>
14282
14283 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
14284 use NO_CURSOR if cursor_in_non_selected_windows is false.
14285
14286 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
14287 the slant attribute if FRAME is t.
14288
14289 * xfns.c (x_set_internal_border_width): Set frame garbaged
14290 when X window doesn't exist yet.
14291
14292 * xterm.c (x_after_update_window_line): Clear internal border
14293 in different circumstances.
14294
14295 * xterm.c (XTread_socket) <KeyPress>: Don't use
14296 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
14297 <handa@etl.go.jp>.
14298
14299 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
14300
14301 * m/ibms390.h: New file. From Adam Thornton
14302 <athornton@sinenomine.net>.
14303
14304 2001-10-28 Gerd Moellmann <gerd@gnu.org>
14305
14306 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
14307
14308 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
14309 a loop counter.
14310
14311 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14312
14313 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
14314
14315 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
14316 keyword].
14317 Fix typos in comments.
14318
14319 * emacs.c (bug_reporting_address): New function.
14320 Use it when displaying usage message.
14321
14322 * minibuf.c (read_minibuf): Remove unused external declaration of
14323 variable `Qread_only'.
14324
14325 * keymap.c (access_keymap): Remove unused variable `charset'.
14326
14327 2001-10-28 Miles Bader <miles@gnu.org>
14328
14329 * xfaces.c (merge_face_heights): Handle TO being relative as well.
14330 Remove #ifdef'd-out code.
14331 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
14332 (syms_of_xfaces): Initialize them.
14333
14334 2001-10-27 Jason Rumney <jasonr@gnu.org>
14335
14336 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
14337 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
14338 position using the system caret.
14339
14340 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
14341 (w32_system_caret_height, w32_system_caret_x)
14342 (w32_system_caret_y): New variables for tracking system caret.
14343 (w32_initialize): Initialize them.
14344 (x_display_and_set_cursor): Make system caret follow the active cursor.
14345
14346 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
14347 New messages types.
14348
14349 * w32term.c (note_mouse_highlight): Clear old help_echo.
14350
14351 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14352
14353 * xterm.c: Fix typo in a comment.
14354
14355 * emacs.c: Fix typos in comments.
14356 Remove unnecessary spaces.
14357 Change doc-string comments to `new style' [w/`doc:' keyword].
14358 (USAGE2): Fix typos in usage string.
14359
14360 * xterm.c: Fix typo in a comment.
14361
14362 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
14363 emacs.c.
14364
14365 2001-10-27 Gerd Moellmann <gerd@gnu.org>
14366
14367 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
14368 instead of 1/2 line_height in the heuristic for skipping
14369 farther backward when target_y was not reached.
14370
14371 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
14372 Display errno only if non-zero.
14373 (sound_warning): New function.
14374 (vox_configure): Don't treat failing to set sample rate as error.
14375 (various places): Improve error messages.
14376
14377 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
14378
14379 * fileio.c (Faccess_file): Run the argument filename through
14380 Fexpand_file_name, before using it.
14381
14382 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
14383 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
14384
14385 2001-10-26 Gerd Moellmann <gerd@gnu.org>
14386
14387 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
14388
14389 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
14390 Fix clearing in the case of scroll bars on the right.
14391
14392 2001-10-26 Juanma Barranquero <lektu@terra.es>
14393
14394 * w32gui.h (XImage): Add a dummy typedef.
14395
14396 2001-10-26 Gerd Moellmann <gerd@gnu.org>
14397
14398 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
14399
14400 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
14401
14402 * frame.c (Fframe_parameter): Fix last change.
14403
14404 * fileio.c: Revert last change (which removed old commented-out
14405 version of expand-file-name). Add a comment that explains why
14406 this old version should not be removed.
14407
14408 2001-10-25 Gerd Moellmann <gerd@gnu.org>
14409
14410 * frame.c (Fframe_parameter): Fix a bug whereby some
14411 ``artificial'' frame parameters, like `minibuffer' were not
14412 obtained by calling Fframe_parameters.
14413
14414 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
14415 cursor differently.
14416
14417 * xdisp.c (move_it_vertically_backward): Compute line height
14418 differently. Add heuristic to try to be more compatible to 20.x.
14419
14420 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
14421
14422 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
14423
14424 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
14425 boolean.
14426
14427 2001-10-25 Miles Bader <miles@gnu.org>
14428
14429 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
14430 BG is a pointer to a structure, not a structure.
14431 (gif_format, png_format): Add missing commas.
14432
14433 2001-10-24 Richard M. Stallman <rms@gnu.org>
14434
14435 * xfaces.c (Fface_attributes_as_vector): New function.
14436 (syms_of_xfaces): Defsubr it.
14437
14438 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14439
14440 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
14441 variable `area'.
14442
14443 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14444
14445 * search.c (scan_newline): Remove unused variable `selective_display'.
14446
14447 2001-10-25 Miles Bader <miles@gnu.org>
14448
14449 * dispextern.h (struct image): Add `background',
14450 `background_valid', and `background_transparent' fields.
14451 (image_background, image_background_transparent): New declarations.
14452 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
14453 * xfns.c (image_background, image_background_transparent)
14454 (four_corners_best): New functions.
14455 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
14456 (gs_format): Add `:background' entry.
14457 (lookup_image): Set IMG's background color if specified.
14458 (pbm_load, xbm_load_image, png_load): Set IMG's background field
14459 when appropriate.
14460 (x_clear_image_1): Reset `background_valid' and
14461 `background_transparent_valid' fields.
14462 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
14463 calculating it here. Set IMG's background_transparent field.
14464 (enum xpm_keyword_index): Add XPM_BACKGROUND.
14465 (enum png_keyword_index): Add PNG_BACKGROUND.
14466 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
14467 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
14468 (enum gif_keyword_index): Add GIF_BACKGROUND.
14469 (enum gs_keyword_index): Add GS_BACKGROUND.
14470 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
14471 Pre-calculate image background color where necessary.
14472 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
14473 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
14474 color to use for image glyph reliefs.
14475
14476 2001-10-24 Gerd Moellmann <gerd@gnu.org>
14477
14478 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
14479 in full-width rows.
14480
14481 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
14482 Fix clearing of area not covered by scroll bar.
14483
14484 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14485
14486 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
14487 and `real_start'.
14488 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
14489 (glyph_rect): Remove unused variable `area'.
14490
14491 2001-10-24 Gerd Moellmann <gerd@gnu.org>
14492
14493 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
14494
14495 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
14496 (row_containing_pos): Take additional argument DY.
14497 Treat rows ending in middle of char differently.
14498 (display_line): Handle tabs on window systems differently.
14499
14500 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
14501 with additional argument.
14502
14503 * dispextern.h (row_containing_pos): Adjust prototype.
14504
14505 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
14506 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
14507 (try_window_id, try_window_reusing_current_matrix)
14508 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
14509 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
14510
14511 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14512
14513 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
14514 gnuemacs).
14515 (HAVE_BOXES): Fix typo in comment.
14516 (push_menu_pane): Fix typo in comment.
14517
14518 * xdisp.c: (display_prop_string_p): Remove unused local declaration
14519 of `Qwhen'.
14520 (single_display_prop_string_p): Remove unused local declarations
14521 of `Qwhen' and `Qmargin'.
14522 (string_buffer_position): Remove unused variable `around'.
14523 (store_frame_title): Remove unused variable `width'.
14524
14525 * window.c: Don't define max.
14526 (coordinates_in_window): Remove unused variable `uy'.
14527
14528 * widget.c: Don't define max.
14529
14530 * process.c: Don't define max.
14531 (create_process): Remove unused variable `buffer'.
14532
14533 2001-10-23 Gerd Moellmann <gerd@gnu.org>
14534
14535 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
14536
14537 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
14538
14539 * xfaces.c (Finternal_set_lisp_face_attribute)
14540 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
14541 frame is on a windowed display.
14542
14543 2001-10-23 Gerd Moellmann <gerd@gnu.org>
14544
14545 * dispnew.c (sync_window_with_frame_matrix_rows):
14546 Fix handling of windows which aren't full-width, fix handling
14547 of marginal areas.
14548
14549 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
14550
14551 2001-10-23 Andreas Schwab <schwab@suse.de>
14552
14553 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
14554 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
14555
14556 2001-10-23 Gerd Moellmann <gerd@gnu.org>
14557
14558 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
14559 REAL_END. Notice if cursor gets overwritten.
14560 (notice_overwritten_cursor): Take X positions as parameters.
14561 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
14562 around call to x_draw_glyphs.
14563
14564 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14565
14566 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
14567 instead of C) and usage.
14568
14569 * editfns.c (char-to-string): Fix argument names (use CHAR instead
14570 of C) and usage.
14571
14572 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
14573 `left', `max_width' and `max_height'.
14574
14575 2001-10-23 Gerd Moellmann <gerd@gnu.org>
14576
14577 * xdisp.c (display_line): For a tab continued to the next line,
14578 set row's ends_in_middle_of_char_p.
14579
14580 2001-10-22 Gerd Moellmann <gerd@gnu.org>
14581
14582 * xdisp.c (display_line): Fix computation of continuation lines
14583 width for TABs.
14584
14585 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14586
14587 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
14588 `Qlaplace'.
14589
14590 * fileio.c: Remove unused code.
14591
14592 2001-10-22 Miles Bader <miles@gnu.org>
14593
14594 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
14595 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
14596 Remove `DOC_STRINGS_IN_COMMENTS' cases.
14597
14598 2001-10-21 Jason Rumney <jasonr@gnu.org>
14599
14600 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
14601
14602 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
14603
14604 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
14605 (Finsert_string): Avoid the multi-line string literals warning.
14606
14607 2001-10-22 Miles Bader <miles@gnu.org>
14608
14609 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
14610 (Fdocumentation): Don't use it.
14611 (syms_of_doc): Don't initialize it.
14612
14613 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
14614 * print.c (Fwith_output_to_temp_buffer): Likewise.
14615 * window.c (Fsave_window_excursion): Likewise.
14616 * editfns.c (Fsave_excursion, Fsave_current_buffer)
14617 (Fsave_restriction): Likewise.
14618 * eval.c (Frun_hooks, Frun_hook_with_args)
14619 (Frun_hook_with_args_until_failure)
14620 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
14621 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
14622 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
14623 (Funwind_protect, Fcondition_case): Likewise.
14624 * coding.c (Ffind_operation_coding_system): Likewise.
14625 * keyboard.c (Ftrack_mouse): Likewise.
14626
14627 2001-10-21 Miles Bader <miles@gnu.org>
14628
14629 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
14630 (Fmake_hash_table): Add usage: string to doc string.
14631 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
14632 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
14633 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
14634 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
14635 (Fml_prefix_argument_loop): Likewise.
14636
14637 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14638
14639 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
14640
14641 * sysdep.c (init_sys_modes): Change doc-string comments to `new
14642 style' [w/`doc:' keyword].
14643
14644 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
14645 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
14646 comments to `new style' [w/`doc:' keyword].
14647
14648 2001-10-21 Jason Rumney <jasonr@gnu.org>
14649
14650 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
14651
14652 * w32term.c (remember_mouse_glyph): New function.
14653 (w32_mouse_position): Use it.
14654 (note_mouse_movement): If the mouse moved off the glyph, remember
14655 its new position.
14656
14657 * w32term.h (struct w32_output): Correct spelling of x_compatible.
14658 (w32_display_info): Add mouse_face_overlay.
14659
14660 * w32term.c (notice_overwritten_cursor): Renamed from
14661 note_overwritten_text_cursor. Rewritten to take glyph widths into
14662 account.
14663 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
14664 (fast_find_string_pos): New function.
14665 (fast_find_position): Return the correct vpos. Add parameter
14666 STOP. In the final row, stop before glyphs having STOP as object.
14667 Don't consider glyphs that are not from a buffer.
14668 (fast_find_position) [0]: Add a presumably more correct version
14669 for after 21.1.
14670 (expose_window_tree, expose_frame): Don't compute intersections here.
14671 (expose_window): Do it here instead.
14672 (expose_window_tree, expose_window, expose_line): Return 1 when
14673 overwriting mouse-face.
14674 (expose_window): If W is the window currently being updated, mark
14675 the frame garbaged.
14676 (expose_frame): If mouse-face was overwritten, redo it.
14677 (x_use_underline_position_properties): New variable.
14678 (syms_of_xterm): DEFVAR_BOOL it.
14679 (x_draw_glyph_string): Add comment to use it in future.
14680 (x_draw_glyph_string): Restore clipping after drawing box.
14681 Fix a computation of the underline position.
14682 (w32_get_glyph_string_clip_rect): Minor cleanup.
14683 (x_fill_stretch_glyph_string): Remove an assertion.
14684 (x_produce_glyphs): Don't convert multibyte characters
14685 to unibyte characters in unibyte buffers.
14686 (cursor_in_mouse_face_p): New function.
14687 (x_draw_stretch_glyph_string): Use it to choose a different GC
14688 when drawing a cursor within highlighted text. Don't draw
14689 background again if it has already been drawn.
14690 (x_draw_glyph_string_box): Don't draw a full-width
14691 box just because the glyph row's full_width_p flag is set.
14692 (x_draw_glyphs): Fix computation of rightmost x for
14693 full-width rows.
14694 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
14695 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
14696 change bottom shadow accordingly. Some cleanup.
14697 (x_update_window_end): Handle overwritten mouse face
14698 also for tool bar windows.
14699 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
14700 DRAW is DRAW_IMAGE_RAISED.
14701 (clear_mouse_face): Return 1 if text with mouse face was
14702 actually redrawn. Make the function static.
14703 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
14704 optimize away highlighting if we pass over that same overlay again.
14705 (note_mouse_highlight): Call mouse_face_overlay_overlaps
14706 to detect a case where we have to highlight a different region
14707 despite not having left the currently highlighted region.
14708 Set mouse_face_overlay in the x_display_info. Avoid changing the
14709 mouse pointer shape when show_mouse_face has already done it, or
14710 there is no need. Handle mouse-face and help-echo in strings.
14711 (glyph_rect): New function.
14712 (w32_mouse_position): Use it to raise the threshold for mouse
14713 movement event generation.
14714 (w32_initialize_display_info): Initialize the x_display_info's
14715 mouse_face_overlay.
14716 (w32_set_vertical_scroll_bar): Don't clear a zero height
14717 or width area.
14718 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
14719 a widget to zero height.
14720
14721 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
14722 Protect unibyte strings created by replacing their multibyte
14723 equivalents in menu_items.
14724 (w32_menu_show): Don't overwrite an item's name with its key
14725 description in case the description is a multibyte string.
14726 (single_submenu): Some cleanup.
14727
14728 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
14729 (postprocess_image): New function.
14730 (lookup_image): Call it for all image types except PostScript.
14731 (x_kill_gs_process): Call postprocess_image.
14732 (tiff_error_handler, tiff_warning_handler): New functions.
14733 (tiff_load): Install them as handlers.
14734 (x_kill_gs_process): Recognize if someone has cleared the image
14735 cache under us.
14736 (valid_image_p): Protect better against invalid image
14737 specifications. Previous code could signal an error.
14738 (Fx_hide_tip, Fshow_tip): Doc fix.
14739 (Fv_max_tooltip_size): New variable.
14740 (syns_of_xfns): DEFVAR_LISP it.
14741 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
14742 window buffer to *tip* right after creating the frame. Set frame's
14743 window_width. Use a maximum tooltip size specified by
14744 Vx_max_tooltip_size, if that has valid contents.
14745 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
14746 Make sure the tooltip is completely visible.
14747 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
14748 (Fx_create_frame): Adjust the frame's height for presence
14749 of the tool bar before calling x_figure_window_size.
14750 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
14751 when the window gets smaller.
14752 (x_set_foreground_color): Set frame's cursor_pixel.
14753 (x_set_foreground_color, x_set_background_color): Cleaned up.
14754 (x_set_font): Handle case of x_new_fontset returning the same name
14755 as before, although there was a change in fontsets.
14756
14757 2001-10-21 Miles Bader <miles@gnu.org>
14758
14759 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
14760 (Flogxor): Add usage: string to doc string.
14761 * charset.c (Fstring): Likewise.
14762 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
14763 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
14764
14765 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14766
14767 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
14768
14769 * alloc.c: Reindent DEFUNs with doc: keywords.
14770
14771 * abbrev.c (Finsert_abbrev_table_description): Reindent.
14772
14773 * frame.c: Change doc-string comments to `new style' [w/`doc:'
14774 keyword].
14775
14776 See ChangeLog.9 for earlier changes.
14777
14778 ;; Local Variables:
14779 ;; coding: iso-2022-7bit
14780 ;; End:
14781
14782 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
14783 Copying and distribution of this file, with or without modification,
14784 are permitted provided the copyright notice and this notice are preserved.
14785
14786 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4