]> code.delx.au - gnu-emacs/blob - src/ChangeLog
*** empty log message ***
[gnu-emacs] / src / ChangeLog
1 2004-06-21 Kim F. Storm <storm@cua.dk>
2
3 * lisp.h (MAX_ALLOCA): Define here.
4 (safe_alloca_unwind): Add prototype.
5 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
6
7 * alloc.c (safe_alloca_unwind): New function.
8
9 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
10
11 * charset.c (Fstring): Use SAFE_ALLOCA.
12
13 * coding.c (MAX_ALLOCA): Remove define.
14
15 * data.c (MAX_ALLOCA): Remove define.
16 (Faset): Use SAFE_ALLOCA.
17
18 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
19
20 * fns.c (string_make_multibyte, string_to_multibyte)
21 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
22 (MAX_ALLOCA): Remove define.
23 (Fbase64_encode_region, Fbase64_encode_string)
24 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
25 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
26 memory leak if encoding fails.
27
28 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
29
30 2004-06-21 Eli Zaretskii <eliz@gnu.org>
31
32 * print.c (Fwith_output_to_temp_buffer): Doc fix.
33
34 2004-06-20 Richard M. Stallman <rms@gnu.org>
35
36 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
37
38 * search.c (match_limit): Cleaner err msg when no match data available.
39
40 * window.c (syms_of_window): Doc fix.
41
42 * keyboard.c (command_loop_1): Handle values `only' and `identity'
43 for Vtransient_mark_mode.
44
45 * buffer.c (syms_of_buffer): Doc fix.
46
47 2004-06-21 David Kastrup <dak@gnu.org>
48
49 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
50 and unbinding of `case-fold-search' according to
51 `completion-ignore-case' around calls of string-match and
52 predicates, respectively. Should give satisfactory performance
53 in all relevant cases.
54
55 2004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
56
57 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
58 clip_x/y_origin.
59
60 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
61
62 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
63
64 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
65 on Mac OSX.
66
67 2004-06-16 Luc Teirlinck <teirllm@auburn.edu>
68
69 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
70
71 2004-06-16 Kim F. Storm <storm@cua.dk>
72
73 * dispextern.h (Vimage_types): Remove extern.
74
75 2004-06-16 Miles Bader <miles@gnu.org>
76
77 * image.c (lookup_image_type): Initialize image type if necessary.
78
79 2004-06-15 Kim F. Storm <storm@cua.dk>
80
81 * xdisp.c (try_cursor_movement): Exclude header line from scroll
82 margin at top of window.
83 (try_window_reusing_current_matrix): Calculate proper cursor position
84 after scrolling up with non-zero scroll margin, as the old cursor
85 position corresponds to value of PT before executing this command.
86 (try_window_id): Consider scroll margin at bottom of window too;
87 otherwise we fail to scroll when hl-line-mode is enabled.
88
89 * syntax.c (skip_chars): Only recognize [:class:] when it has the
90 proper format and class is a lower-case word.
91
92 2004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
93
94 * gtkutil.c (xg_get_image_for_pixmap): New function.
95 (xg_get_gdk_pixmap_and_mask): Removed.
96 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
97 xg_get_gdk_pixmap_and_mask.
98
99 * xterm.h (struct x_display_info): Typo in comment fixed.
100
101 2004-06-14 Juanma Barranquero <lektu@terra.es>
102
103 * dispextern.h (Vimage_types): Make it conditional on
104 HAVE_WINDOW_SYSTEM.
105
106 * image.c (Vimage_types): Move from xdisp.c.
107 (Vimage_type_cache): New variable.
108 (define_image_type): New argument indicating whether an image
109 library was loaded; cache loaded status and return t on success,
110 nil otherwise.
111 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
112 (w32_delayed_load): New function to load an image library from a
113 list of possible filenames.
114 (init_xpm_functions, init_png_functions, init_jpeg_functions)
115 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
116 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new
117 argument.
118 (Finit_image_library): New function, extracted from `init_image'.
119 Try to initialize an image library on demand and cache whether we
120 were successful or not.
121 (syms_of_image): Initialize `Vimage_types' and
122 `Vimage_type_cache'. Add recognized image types to Vimage_types.
123 Export `init-image-library'.
124 (init_image): Remove initialization of all image types, except xbm
125 and pbm.
126
127 * xdisp.c (Vimage_types): Delete (moved to image.c).
128
129 2004-06-14 Andreas Schwab <schwab@suse.de>
130
131 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
132 Avoid calling specbind when completion-regexp-list is empty.
133
134 2004-06-13 Richard M. Stallman <rms@gnu.org>
135
136 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
137 (re_wctype, re_iswctype, re_wctype_to_bit):
138 Non-function definitions moved here from regex.c.
139
140 * regex.c (re_wctype, re_iswctype): Function defs longer static.
141 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
142 (re_wctype, re_iswctype, re_wctype_to_bit):
143 Non-function definitions moved to regex.h.
144
145 * window.c (Fselect_window): Doc fix.
146
147 * syntax.c: Include regex.h.
148 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
149 If requested, make a list of classes, then check the scanned
150 chars for membership in them.
151 (in_classes): New function.
152 Doc fix.
153
154 * keyboard.c (cmd_error): Don't call any_kboard_state
155 if inside a recursive edit level.
156
157 2004-06-13 Lorentey K\e,Aa\e(Broly <lorentey@elte.hu>
158
159 * keyboard.c (command_loop): Call any_kboard_state before
160 command_loop_2 when at top level.
161
162 2004-06-13 Andreas Schwab <schwab@suse.de>
163
164 * print.c (print_object): Always use %ld for printing EMACS_INT.
165
166 * keyboard.c (cancel_hourglass_unwind): Return a value.
167 (modify_event_symbol): Always use %ld for printing EMACS_INT.
168 (Fexecute_extended_command): Likewise.
169
170 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
171 avoid clashes.
172 (SYNTAX): Likewise.
173 (SYNTAX_WITH_FLAGS): Likewise.
174 (SYNTAX_MATCH): Likewise.
175
176 * syntax.c (char_quoted): Avoid warning about undefined operation.
177 (find_defun_start): Likewise.
178 (scan_lists): Likewise.
179 (INC_FROM): Likewise.
180 (scan_sexps_forward): Likewise.
181
182 * image.c: Include <ctype.h>.
183
184 * xfaces.c (face_attr_equal_p): Declare parameters.
185
186 2004-06-13 Kenichi Handa <handa@m17n.org>
187
188 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
189
190 2004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
191
192 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
193
194 2004-06-12 Kenichi Handa <handa@m17n.org>
195
196 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
197 ccl_prog_stack_struct and update it.
198 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
199 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
200 ccl->eof_ic on EOF.
201 (ccl_debug_hook): New function.
202 (struct ccl_prog_stack): New member eof_ic.
203 (ccl_driver): Handle EOF in subrountine call correctly.
204
205 2004-06-11 Kenichi Handa <handa@m17n.org>
206
207 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
208
209 2004-06-11 Kim F. Storm <storm@cua.dk>
210
211 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
212
213 2004-06-11 Juanma Barranquero <lektu@terra.es>
214
215 * keyboard.c (Fposn_at_point): Doc fix.
216
217 2004-06-11 David Kastrup <dak@gnu.org>
218
219 * search.c (match_limit): Don't flag an error if match-data
220 exceeding the allocated search_regs.num_regs gets requested, just
221 return Qnil.
222
223 2004-06-08 Miles Bader <miles@gnu.org>
224
225 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
226
227 2004-06-07 Juanma Barranquero <lektu@terra.es>
228
229 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
230 (Fcurrent_time_string, Fcurrent_time_zone)
231 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
232
233 2004-06-07 Miles Bader <miles@gnu.org>
234
235 * xfaces.c (struct named_merge_point): New type.
236 (push_named_merge_point): New function.
237 (merge_named_face): New function.
238 (merge_face_ref, face_at_buffer_position, face_at_string_position):
239 Use `merge_named_face'.
240 (merge_face_inheritance): Function removed.
241 (merge_face_ref): Renamed from `merge_face_vector_with_property'.
242 Add new `err_msgs' and `named_merge_points' args. Return error
243 status. Only print error messages if ERR_MSGS is true. Don't try to
244 do :inherit attribute validation.
245 (merge_face_heights): Handle `unspecified' in both directions.
246 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
247 Call `merge_face_ref' instead of `merge_face_inheritance'.
248 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
249 (compute_char_face, face_at_buffer_position)
250 (face_at_string_position): Call `merge_face_ref' instead of
251 `merge_face_vector_with_property'.
252
253 2004-06-07 Kenichi Handa <handa@m17n.org>
254
255 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
256 the necessary places.
257
258 2004-06-07 Kim F. Storm <storm@cua.dk>
259
260 * process.c (Fdelete_process): Undo 2004-05-28 change.
261 Instead, call status_notify also for network process.
262 (status_message): Use process instead of status as arg.
263 Give messages "deleted" or "connection broken by remote peer" for
264 an exited network process.
265 (status_notify): Change call to status_message.
266 (read_process_output): Increase readmax to 4096. Do not increase
267 buffer size for datagram channels (default is now large enough).
268
269 2004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
270
271 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
272 problem due to newly defined variable.
273
274 2004-06-06 Miles Bader <miles@gnu.org>
275
276 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
277 immediately if non-interactive or not initialized.
278
279 2004-06-05 Richard M. Stallman <rms@gnu.org>
280
281 * minibuf.c (Fcompleting_read): Doc fix.
282
283 2004-06-05 Andreas Schwab <schwab@suse.de>
284
285 * macfns.c (x_create_tip_frame): Fix declaration after statement.
286
287 2004-06-05 Juanma Barranquero <lektu@terra.es>
288
289 * keymap.c (Fdescribe_vector): Fix docstring.
290 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
291
292 2004-06-05 Miles Bader <miles@gnu.org>
293
294 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
295 attributes have different values than the default face.
296
297 2004-06-04 Eli Zaretskii <eliz@gnu.org>
298
299 * xfaces.c (x_supports_face_attributes_p): Make this function
300 conditional on HAVE_WINDOW_SYSTEM.
301 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]: Don't
302 call x_supports_face_attributes_p if it was not compiled in.
303
304 2004-06-04 Miles Bader <miles@gnu.org>
305
306 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
307 from Ftty_supports_face_attributes_p.
308 (x_supports_face_attributes_p): New function.
309 (Ftty_supports_face_attributes_p): Function deleted.
310 (Fdisplay_supports_face_attributes_p): New function.
311 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
312 (face_attr_equal_p): New function.
313 (lface_equal_p): Use it.
314
315 2004-06-03 Juanma Barranquero <lektu@terra.es>
316
317 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
318 (Vw32_color_map): Fix typo in docstring.
319 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
320 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
321 Make argument names match their use in docstring.
322
323 2004-06-02 Juanma Barranquero <lektu@terra.es>
324
325 Work around bugs/problems with MinGW builds of graphics libraries
326 called from MSVC builds of Emacs.
327
328 * image.c (lookup_image): Make pointer to img static.
329 (png_read_from_memory): Disable "global" optimization.
330
331 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
332
333 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
334
335 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
336
337 * macfns.c: Don't include ccl.h.
338 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
339 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
340 TextUtils.h.
341 (Fx_create_frame): Sync with xfns.c. Initialize cursor
342 descriptors.
343 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
344 display height/width.
345 (compute_tip_xy, Vx_max_tooltip_size): Declare.
346 (unwind_create_tip_frame, compute_tip_xy): New functions.
347 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
348 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
349 and last_show_tip_args.
350
351 * macgui.h [!MAC_OSX]: Include Gestalt.h.
352 (Cursor, No_Cursor): New defines.
353 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility
354 macro.
355 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
356
357 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
358
359 * macterm.c: Don't include Gestalt.h.
360 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
361 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
362 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
363 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
364 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
365 (construct_mouse_click, XTmouse_position)
366 (x_scroll_bar_report_motion, x_calc_absolute_position)
367 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
368 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
369 (note_mouse_movement): Clear the mouse face and reset the pointer
370 shape when the pointer goes outside the frame without grabbing.
371 (mac_front_window): New function.
372 (mac_window_to_frame): New macro.
373 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
374 (do_window_activate, do_window_deactivate, do_app_resume)
375 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
376 (do_zoom_window, mac_do_receive_drag, XTread_socket)
377 (mac_check_for_quit_char): Use mac_front_window and/or
378 mac_window_to_frame.
379 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
380 scroll-bar click event.
381 (mac_define_frame_cursor): Change the pointer shape.
382 (x_free_frame_resources): Reset tip_window to NULL when it is
383 disposed.
384 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
385 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize
386 arrow_cursor.
387 (do_window_update): Don't do anything if the updated window is the
388 tooltip window.
389 (do_mouse_moved): Handle mouse movement events here (previously in
390 XTread_socket). Clear the mouse face if
391 dpyinfo->mouse_face_hidden is set.
392 (do_os_event, do_events): Remove (now in XTread_socket).
393 (XTread_socket): Immediately return if interrupt_input_blocked.
394 Loop until all the events in the queue are processed. Rearrange
395 codes for mouse grabbing. Add tooltip support. Include the
396 contents of do_os_event and do_events. Remove mouse movement
397 handling (now in do_mouse_moved). Add the case where
398 Vmouse_highlight has an integer value.
399 (NewMacWindow): Remove.
400 (make_mac_frame): Do what NewMacWindow previously did. Don't do
401 excess initializations.
402 (make_mac_terminal_frame): Previous initializations in
403 make_mac_frame are moved here.
404 (mac_initialize_display_info): Initialize
405 dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
406
407 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
408 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
409
410 2004-05-29 Richard M. Stallman <rms@gnu.org>
411
412 * lisp.h (truncate_undo_list): Update decl.
413
414 * alloc.c (undo_outer_limit): New variable.
415 (syms_of_alloc): Defvar it.
416 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
417
418 * undo.c (truncate_undo_list): New arg LIMITSIZE.
419
420 * alloc.c (lisp_align_malloc): Check for base == 0
421 regardless of HAVE_POSIX_MEMALIGN.
422 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
423
424 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
425
426 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
427 (marker_blocks_pending_free): Remove.
428 (Fgarbage_collect): Sweep after cleaning up undo-lists.
429 Mark the undo lists after claning them up.
430 Don't free block in marker_blocks_pending_free.
431 (mark_buffer): Don't mark undo_list.
432 (gc_sweep): Sweep hash-tables and strings first.
433 Do free marker blocks that are empty.
434
435 2004-05-28 Jim Blandy <jimb@redhat.com>
436
437 * regex.c (print_partial_compiled_pattern): Add missing 'break'
438 after 'case wordend'. For symbeg and symend, print to stderr,
439 like the other cases.
440
441 2004-05-28 Noah Friedman <friedman@splode.com>
442
443 * process.c (Fdelete_process): Do not call remove_process.
444
445 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
446
447 * alloc.c (struct backtrace): Remove.
448 (Fgarbage_collect): Use the new mark_backtrace.
449
450 * eval.c (mark_backtrace): New function.
451
452 * minibuf.c (run_exit_minibuf_hook): New function.
453 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
454 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
455
456 2004-05-27 Kim F. Storm <storm@cua.dk>
457
458 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
459 over display properties, e.g. images, that replace buffer text.
460
461 2004-05-25 Kim F. Storm <storm@cua.dk>
462
463 * alloc.c (marker_blocks_pending_free): New var.
464 (gc_sweep): Store free marker blocks on that list.
465 (Fgarbage_collect): Free them after undo-list cleanup.
466
467 * process.c (wait_reading_process_input): Check connect_wait_mask
468 before actually accepting connection in case it has already been
469 accepted due to recursion.
470
471 2004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu> (tiny change)
472
473 * coding.c (Fset_safe_terminal_coding_system_internal):
474 Set suppress_error in safe_terminal_coding, not terminal_coding.
475
476 2004-05-22 Richard M. Stallman <rms@gnu.org>
477
478 * alloc.c (Fmake_string): Doc fix.
479
480 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
481 and the alist pairs too.
482
483 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
484
485 * emacs.c (main): Update copyright year.
486
487 * fileio.c (Fread_file_name): Expand DIR if not absolute.
488
489 * insdel.c (del_range_2, replace_range): Don't write an anchor
490 if the gap is empty.
491
492 * xdisp.c (try_scrolling): If scroll-up-aggressively or
493 scroll-down-aggressively is small but positive, put point
494 near the screen edge.
495
496 2004-05-22 Juanma Barranquero <lektu@terra.es>
497
498 * keymap.c (Fdefine_key): Doc fix.
499
500 2004-05-22 Kim F. Storm <storm@cua.dk>
501
502 * alloc.c (struct backtrace): Add debug_on_exit member.
503 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
504 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
505 the removed cons cells.
506 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
507 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
508 any cons cells pointing to unallocated stings.
509 Do not lisp_free any marker blocks, as there may still be pointers
510 to them from buffer undo lists at this stage of GC.
511
512 * keyboard.c (struct backtrace): Add debug_on_exit member.
513 (Fcommand_execute): Clear it.
514
515 2004-05-20 Luc Teirlinck <teirllm@auburn.edu>
516
517 * intervals.c (lookup_char_property): Do not prematurely return nil.
518
519 2004-05-19 Jim Blandy <jimb@redhat.com>
520
521 Add support for new '\_<' and '\_>' regexp operators, matching the
522 beginning and end of symbols.
523
524 * regex.c (enum syntaxcode): Add Ssymbol.
525 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
526 (re_opcode_t): New opcodes `symbeg' and `symend'.
527 (print_partial_compiled_pattern): Print the new opcodes properly.
528 (regex_compile): Parse the new operators.
529 (analyse_first): Skip sym(beg|end) (they match only the empty string).
530 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
531 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
532 (re_match_2_internal): Match symbeg and symend.
533
534 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
535
536 2004-05-19 Kim F. Storm <storm@cua.dk>
537
538 * .gdbinit (xsymbol): Fix last change.
539
540 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
541
542 * .gdbinit (xprintstr): New fun.
543 (xstring, xprintsym): Use it.
544
545 * w32proc.c (create_child): Use INTMASK.
546
547 * alloc.c (Fgarbage_collect): Do all the marking before flushing
548 unmarked elements of the undo list.
549
550 2004-05-18 David Ponce <david@dponce.com>
551
552 * print.c (print): Reset print_depth before to call print_object.
553
554 2004-05-18 Jason Rumney <jasonr@gnu.org>
555
556 * w32console.c: Prefix RIF functions with w32con_ to avoid
557 namespace clash with functions in term.c and w32term.c.
558
559 * w32menu.c (add_menu_item, w32_menu_display_help)
560 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
561
562 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
563
564 2004-05-18 Eli Zaretskii <eliz@gnu.org>
565
566 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
567
568 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
569 with make_number.
570 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
571 with XINT.
572
573 2004-05-18 Kim F. Storm <storm@cua.dk>
574
575 * blockinput.h (INPUT_BLOCKED_P): New macros.
576
577 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
578 (Ftop_level): Unblock input if blocked.
579
580 * buffer.h (GET_OVERLAYS_AT): New macro.
581 * msdos.c (IT_note_mouse_highlight): Use it.
582 * textprop.c (get_char_property_and_overlay): Use it.
583 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
584 * xfaces.c (face_at_buffer_position): Use it.
585
586 * print.c (print_object): Increase buf size.
587
588 2004-05-17 Jason Rumney <jasonr@gnu.org>
589
590 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
591 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
592 Lisp_Object using i member.
593 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
594 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
595 consistently.
596
597 * w32proc.c (create_child): Use make_number instead of masking pid.
598
599 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
600 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
601 Use EQ to compare Lisp_Objects.
602 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
603
604 * w32term.c (w32_num_mouse_buttons): Rename from
605 Vw32_num_mouse_buttons and make it an int.
606
607 * w32.c (init_environment): Use it.
608
609 * w32fns.c (w32_wnd_proc): Likewise.
610
611 * w32proc.c (w32_pipe_read_delay): Rename from
612 Vw32_pipe_read_delay and make it an int.
613
614 * w32.c (_sys_read_ahead): Use it.
615
616 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
617
618 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
619
620 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
621 (key_event): Don't mix Lisp_Object and int.
622
623 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
624
625 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
626 modifiers in language change event.
627
628 2004-05-17 Kim F. Storm <storm@cua.dk>
629
630 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
631 Such objects may be freed markers which still exist on an undo list.
632
633 2004-05-16 Juanma Barranquero <lektu@terra.es>
634
635 * data.c (Fset_default): Make argument names match their use in
636 docstring.
637
638 2004-05-15 Andreas Schwab <schwab@suse.de>
639
640 * emacs.c (gdb_array_mark_flag): Define.
641 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
642
643 2004-05-15 Eli Zaretskii <eliz@gnu.org>
644
645 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
646 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
647 defined for the MS-DOS build.
648
649 2004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
650
651 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
652
653 2004-05-14 Kenichi Handa <handa@m17n.org>
654
655 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
656
657 2004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658
659 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
660 section to frame.c section.
661 (Fxw_display_color_p, Fx_file_dialog): Declare if
662 HAVE_WINDOW_SYSTEM defined.
663
664 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
665
666 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
667
668 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
669 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
670 (XTread_socket): Fix int/Lisp_Object mixup.
671 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
672
673 * macterm.h (struct frame, struct face, struct image)
674 (display_x_get_resource, Fx_display_color_p)
675 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
676 Add prototypes.
677
678 2004-05-14 Kim F. Storm <storm@cua.dk>
679
680 * process.c (wait_reading_process_input): Make reentrant.
681 Make Available and Connecting non-static. Save and restore value
682 of waiting_for_user_input_p.
683
684 2004-05-13 Kim F. Storm <storm@cua.dk>
685
686 * keyboard.c (mark_kboards): Don't mark x and y members
687 that are overloaded in selection request events.
688
689 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
690
691 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
692
693 2004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
694
695 * window.c (Fdisplay_buffer, Fsplit_window)
696 (split-height-threshold): Doc fix.
697
698 2004-05-13 Juanma Barranquero <lektu@terra.es>
699
700 * xfaces.c (Ftty_supports_face_attributes_p)
701 (Finternal_copy_lisp_face): Fix typo in docstring.
702 (Finternal_get_lisp_face_attribute): Fix docstring.
703
704 2004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
705
706 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
707
708 2004-05-11 Steven Tamm <steventamm@mac.com>
709
710 * macfns.c (Fx_create_frame): Default to using tool-bar by
711 setting tool-bar-lines to 1 in default-frame-alist.
712
713 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
714
715 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
716 (xpm_get_color_table_v, xpm_make_color_table_h)
717 (xpm_put_color_table_h, xpm_get_color_table_h)
718 (xpm_str_to_color_key, xpm_load_image, xpm_load)
719 (syms_of_image): Support XPM on Carbon Emacs. Does not
720 depend on libXpm, but only supports XPM version 3 without extensions.
721
722 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
723
724 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
725 instead of FRAME_X_P
726
727 2004-05-11 Kim F. Storm <storm@cua.dk>
728
729 * process.c (read_process_output): Grow decoding_buf when needed;
730 this could cause a crash in allocate_string and compact_small_strings.
731
732 2004-04-29 Jim Blandy <jimb@redhat.com>
733
734 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
735 against proper opcode.
736
737 2004-05-10 Juanma Barranquero <lektu@terra.es>
738
739 * process.c (Fstart_process): Fix docstring.
740
741 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
742 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
743 (Fsplit_char, Fchar_charset): Make argument names match their use
744 in docstring.
745
746 2004-05-10 Richard M. Stallman <rms@gnu.org>
747
748 * print.c (print_preprocess): Use being_printed, loop_count and
749 halftail to detect overdeep nesting and cyclic cdr chains.
750
751 2004-05-10 Andreas Schwab <schwab@suse.de>
752
753 * lisp.h: Declare Fmake_symbolic_link.
754
755 * fileio.c (Frename_file): Remove extra argument in call to
756 Fmake_symbolic_link.
757
758 2004-05-10 Kim F. Storm <storm@cua.dk>
759
760 * xdisp.c (calc_line_height_property): Use string position when
761 object is a string.
762
763 2004-05-10 Kenichi Handa <handa@m17n.org>
764
765 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
766 inhibit-modification-hooks to t temporarily before calling
767 Ferase_buffer.
768
769 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
770 inhibit-modification-hooks to t temporarily before calling
771 Ferase_buffer.
772
773 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
774 inhibit-modification-hooks to t temporarily before calling
775 Ferase_buffer.
776
777 * fns.c (count_combining): Delete it.
778 (concat): Don't check combining bytes.
779
780 2004-05-09 Jason Rumney <jasonr@gnu.org>
781
782 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
783 (globals_of_w32fns): Set it.
784
785 2004-05-09 Piet van Oostrum <piet@cs.uu.nl> (tiny change)
786
787 * data.c (Fquo): Simplify.
788
789 2004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
790
791 * data.c (Fquo): If any argument is float, do the computation in
792 floating point.
793
794 2004-05-08 Juanma Barranquero <lektu@terra.es>
795
796 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
797 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
798 Fix spelling of Emacs on docstring.
799 (Fset_process_coding_system, Fprocess_coding_system)
800 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
801 Make argument names match their use in docstring.
802 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
803 Fix docstring.
804
805 * editfns.c (Finsert_buffer_substring): Make argument names match their
806 use in docstring.
807
808 * syntax.c (Fmodify_syntax_entry): Fix docstring.
809
810 2004-05-07 Steven Tamm <steventamm@mac.com>
811
812 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
813 around call to ReceiveEvent to avoid certain crashes.
814
815 2004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
816
817 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
818 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
819 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
820 Save/restore the current graphics port and device handle when
821 drawing into an offscreen graphics world.
822
823 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
824 (gif_load): Likewise.
825
826 2004-05-07 Juanma Barranquero <lektu@terra.es>
827
828 * window.c (Fset_window_buffer): Fix docstring.
829
830 2004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
831
832 * emacs.c (main) [VMS]: Fix var ref.
833
834 2004-05-06 Romain Francoise <romain@orebokech.com> (tiny change)
835
836 * data.c (Fsetq_default): Fix docstring.
837
838 2004-05-06 Jason Rumney <jasonr@gnu.org>
839
840 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
841 to avoid name clash.
842
843 2004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
844
845 * fileio.c (barf_or_query_if_file_exists): Use lstat.
846 (Frename_file): Handle renaming of symlinks across file systems.
847 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
848
849 2004-05-04 Kim F. Storm <storm@cua.dk>
850
851 * xdisp.c (Qtotal): New var.
852 (syms_of_xdisp): Intern and staticpro it.
853 (calc_line_height_property): New arg total. Set it if
854 line-spacing property has format (total . VALUE).
855 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
856 Handle total line-spacing property.
857
858 2004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
859
860 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
861 "under" scroll bar when size/position changes.
862
863 2004-05-03 Jason Rumney <jasonr@gnu.org>
864
865 * makefile.nt: Remove.
866
867 2004-05-02 Eli Zaretskii <eliz@gnu.org>
868
869 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
870 Avoid compiler warnings.
871
872 * Makefile.in (region-cache.o): Depend on config.h.
873
874 2004-05-02 Romain Francoise <romain@orebokech.com> (tiny change)
875
876 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
877 with continuation lines, too.
878
879 2004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
880
881 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
882
883 2004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
884
885 * xdisp.c (calc_line_height_property): YAILOM (yet another
886 int/Lisp_Object mixup).
887
888 2004-05-01 Eli Zaretskii <eliz@gnu.org>
889
890 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
891 undo bad effect of pack(4) in some versions of system headers.
892
893 2004-05-01 Jason Rumney <jasonr@gnu.org>
894
895 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
896
897 2004-04-30 Kim F. Storm <storm@cua.dk>
898
899 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
900 (syms_of_buffer) <cursor-type>: Doc fix.
901
902 * dispextern.h (struct it): Remove member use_default_face.
903 Add members override_ascent, override_descent, override_boff.
904
905 * xdisp.c (init_iterator): Handle line-spacing float value.
906 Initialize override_ascent member.
907 (append_space_for_newline): Reset override_ascent.
908 Remove use_default_face.
909 (calc_line_height_property): New function to calculate value of
910 line-height and line-spacing properties. Look at overlays, too.
911 Set override_ascent, override_descent, override_boff members when
912 using another face than the current face. Float values are now
913 relative to the frame default font, by default; accept a cons
914 of ratio and face name to specify value relative to a specific face.
915 (x_produce_glyphs): Use calc_line_height_property.
916 Use override_ascent etc. when set to handle different face heights.
917 A negative line-spacing property value is interpreted as a total
918 line height, rather than inter-line spacing.
919 (note_mouse_highlight): Allocate room for 40 overlays initially.
920
921 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
922
923 * data.c (Fsubr_name): New fun.
924 (syms_of_data): Defsubr it.
925
926 2004-04-29 Kim F. Storm <storm@cua.dk>
927
928 * xdisp.c (null_glyph_slice): New var.
929 (append_glyph, append_composite_glyph, append_stretch_glyph):
930 Use it to initialize glyph slice.
931
932 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
933
934 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
935 (on_hot_spot_p): Make sure we always return a value.
936 (Flookup_image_map): Remove unused var ix and iy.
937 (note_mode_line_or_margin_highlight): Remove unused var `image'.
938
939 2004-04-27 Eli Zaretskii <eliz@gnu.org>
940
941 * msdos.c (init_environment): If one of the TMP... environment
942 variables is set to a drive letter without a trailing slash,
943 append a slash.
944
945 2004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
946
947 * editfns.c (lisp_time_argument): Provide externally.
948
949 * fileio.c (Fset_file_times): New function.
950 (syms_of_fileio): Intern and staticpro it.
951
952 2004-04-27 Kim F. Storm <storm@cua.dk>
953
954 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
955 header line strings.
956
957 * dispextern.h (struct it): New member use_default_face.
958
959 * xdisp.c (Qline_height): New variable.
960 (syms_of_xdisp): Intern and staticpro it.
961 (append_space_for_newline): Partially undo 2004-04-25 change;
962 add default_face_p arg, and restore callers.
963 Clear it->use_default_face after use.
964 (x_produce_glyphs): Set default font for ascii char if
965 it->use_default_font is set. Change line-spacing property to set
966 just extra line spacing. Handle new line-height property.
967
968 2004-04-26 Andreas Schwab <schwab@suse.de>
969
970 * print.c (print_object): Print non-ascii characters in bool
971 vector representation as octal escapes.
972
973 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
974 * print.c (print_object): Use it instead of BITS_PER_CHAR for
975 bool vectors.
976 * lread.c (read1): Likewise.
977 * alloc.c (Fmake_bool_vector): Likewise.
978 * data.c (Faref, Faset): Likewise.
979 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
980 (mapcar1): Likewise.
981
982 2004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
983
984 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
985
986 2004-04-26 Miles Bader <miles@gnu.org>
987
988 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
989
990 2004-04-26 Juanma Barranquero <lektu@terra.es>
991
992 * buffer.c (Fpop_to_buffer): Fix docstring.
993
994 2004-04-26 Steven Tamm <steventamm@mac.com>
995
996 * lread.c (init_lread): Don't display missing lisp directory
997 warnings with Carbon Emacs because self-contained bundled Emacs
998 may be built without correct installation path.
999
1000 2004-04-25 Kim F. Storm <storm@cua.dk>
1001
1002 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
1003
1004 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
1005
1006 * xdisp.c (append_space_for_newline): Rename from append_space.
1007 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
1008 (x_produce_glyphs): Handle line-spacing property on newline char.
1009 If value is t, adjust ascent and descent to fit current row height.
1010 If value is an integer or float, set extra_line_spacing to integer
1011 value, or to float value x current line height.
1012
1013 2004-04-23 Kenichi Handa <handa@m17n.org>
1014
1015 * fontset.c (Finternal_char_font): If POSITION is nil, return
1016 font for displaying CH with the default face.
1017
1018 2004-04-23 Juanma Barranquero <lektu@terra.es>
1019
1020 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
1021
1022 2004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
1023
1024 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
1025 Don't make assumptions about the relative place of i and val.
1026 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
1027
1028 2004-04-21 Kim F. Storm <storm@cua.dk>
1029
1030 * dispextern.h (struct glyph_slice): New struct.
1031 (struct glyph): New member slice.
1032 (GLYPH_SLICE_EQUAL_P): New macro.
1033 (GLYPH_EQUAL_P): Use it.
1034 (struct glyph_string): New member slice.
1035 (struct it_slice): New struct.
1036 (struct it): New member slice, add member to stack too.
1037 New member constrain_row_ascent_descent_p.
1038 (image_ascent): Add prototype.
1039
1040 * dispnew.c (buffer_posn_from_coords): Return full image width
1041 and height even for image slices (posn is relative to full image).
1042 (marginal_area_string): Adjust x0,y0 for image slice.
1043
1044 * image.c (image_ascent): Add slice arg; calculate ascent for
1045 image slice (or full image).
1046
1047 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
1048 (syms_of_keyboard): Defsubr them.
1049
1050 * lisp.h (pos_visible_p): Fix prototype.
1051
1052 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
1053 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
1054 (x_draw_image_foreground, x_draw_image_relief)
1055 (x_draw_image_foreground_1, x_draw_image_glyph_string):
1056 Draw sliced images.
1057
1058 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
1059 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
1060 (x_draw_image_foreground, x_draw_image_relief)
1061 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
1062 Draw sliced images.
1063
1064 * w32term.h (image_ascent): Remove prototype.
1065
1066 * window.c (Fpos_visible_in_window_p): Return pixel position if
1067 PARTIALLY arg is non-nil. Simplify. Doc fix.
1068 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
1069 to return/set vscroll in pixels.
1070
1071 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
1072
1073 * xdisp.c (Qslice): New variable.
1074 (syms_of_xdisp): Intern and staticpro it.
1075 (pos_visible_p): Return pixel position in new x and y args.
1076 (init_iterator): Reset it->slice info.
1077 (handle_display_prop): Parse (slice ...) property.
1078 (push_it, pop_it): Save/restore slice info.
1079 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
1080 force repositioning of tall row if window is vscrolled, as that
1081 would reset vscroll.
1082 (append_space): Set it->constrain_row_ascent_descent_p to avoid
1083 increasing row height if row is non-empty.
1084 (fill_image_glyph_string): Copy slice info.
1085 (take_vertical_position_into_account): Simplify.
1086 (produce_image_glyph): Handle iterator slice info, setup glyph
1087 slice info. Do not force minimum line height.
1088 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
1089 do not increase height (ascent/descent) of non-empty row when
1090 adding normal character glyph; instead reduce glyph ascent/descent
1091 appropriately; if row is higher than current glyph, adjust glyph
1092 descent/ascent to reposition glyph within the existing row.
1093 Likewise, when char is newline, only set ascent/descent if row is
1094 currently empty.
1095 (note_mouse_highlight): Handle hotspots with sliced image.
1096
1097 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
1098 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
1099 (x_draw_image_foreground, x_draw_image_relief)
1100 (x_draw_image_foreground_1, x_draw_image_glyph_string):
1101 Draw sliced images.
1102
1103 * xterm.h (image_ascent): Remove prototype.
1104
1105 2004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1106
1107 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
1108
1109 2004-04-20 John Paul Wallington <jpw@gnu.org>
1110
1111 * fns.c (Fassoc, Feql): Fix indentation.
1112
1113 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
1114
1115 2004-04-19 John Paul Wallington <jpw@gnu.org>
1116
1117 * fns.c (Feql): New function.
1118 (syms_of_fns): Defsubr it.
1119
1120 2004-04-18 Jason Rumney <jasonr@gnu.org>
1121
1122 * w32select.c (Fw32_set_clipboard_data): Get sequence number
1123 after closing the clipboard.
1124
1125 2004-04-16 Luc Teirlinck <teirllm@auburn.edu>
1126
1127 * buffer.c (Fbuffer_base_buffer): Doc fix.
1128
1129 2004-04-17 Kim F. Storm <storm@cua.dk>
1130
1131 * keymap.c (Fkey_description): Add optional PREFIX arg.
1132 Combine prefix with KEYS to make up the full key sequence to describe.
1133 Correlate meta_prefix_char and following (simple) key to describe
1134 as meta modifier. All callers changed.
1135 (describe_map): Rename arg `keys' to `prefix'. Remove local
1136 `elt_prefix' var. Use Fkey_description with prefix instead of
1137 elt_prefix combined with Fsingle_key_description.
1138 (describe_vector): Declare static. Replace arg `elt_prefix' with
1139 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
1140 if !KEYMAP_P. Use Fkey_description with prefix instead of
1141 Fsingle_key_description.
1142
1143 * keymap.h (Fkey_description): Fix prototype.
1144 (describe_vector): Remove prototype.
1145
1146 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
1147
1148 * image.c (PNG_BG_COLOR_SHIFT): Remove.
1149 (png_load): Fix calculation of transparent background color on X
1150 and W32 platforms.
1151
1152 2004-04-16 Juanma Barranquero <lektu@terra.es>
1153
1154 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
1155 not too large before computing how much to scroll.
1156
1157 2004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
1158
1159 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
1160
1161 2004-04-14 Luc Teirlinck <teirllm@auburn.edu>
1162
1163 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
1164 Add hyperlink to Elisp manual to the docstring.
1165
1166 2004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
1167
1168 * callint.c (fix_command): Use XDCR.
1169
1170 2004-04-14 Nick Roberts <nick@nick.uklinux.net>
1171
1172 * window.c (Fget_lru_window): Doc fix.
1173
1174 2004-04-14 Kim F. Storm <storm@cua.dk>
1175
1176 * editfns.c (Fformat): Fix allocation size of precision array.
1177
1178 * dispnew.c (update_window): Only set changed_p if
1179 scrolling_window actually did scroll.
1180 (scrolling_window): Only return 1 if we actually did scroll.
1181
1182 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
1183 height to glyph height when cursor row is not fully visible.
1184 (make_cursor_line_fully_visible): Add FORCE_P arg to return
1185 failure in case row is higher than window. Callers changed.
1186 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
1187 Try to scroll partially visible, higher-than-window cursor row.
1188 (redisplay_window): Always try to scroll partially visible,
1189 higher-than-window cursor row - both initially and again with
1190 centering_position = 0.
1191 Clear desired matrix before retrying with centering_position = 0.
1192
1193 2004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1194
1195 * syntax.c (scan_lists): Simplify backward string scan.
1196 Fix off-by-one boundary check for string and comment fences.
1197
1198 2004-04-13 Joe Buehler <jbuehler@hekimian.com>
1199
1200 * sheap.c, unexcw.c: New files.
1201
1202 2004-04-12 Luc Teirlinck <teirllm@auburn.edu>
1203
1204 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
1205 base buffer has been killed. Correct the error message if the
1206 base buffer does not exist.
1207
1208 2004-04-12 Joe Buehler <jbuehler@hekimian.com>
1209
1210 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
1211 Cygwin itself. Add support for Xaw3d scrollbars.
1212
1213 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
1214
1215 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
1216
1217 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
1218 before Cygwin unexec.
1219
1220 * Makefile.in: Link changes for Cygwin unexec() support.
1221
1222 2004-04-12 Andreas Schwab <schwab@suse.de>
1223
1224 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
1225
1226 2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
1227
1228 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
1229 IGNORE argument equals NAME. Doc fix.
1230
1231 2004-04-11 Masatake YAMATO <jet@gyve.org>
1232
1233 * buffer.c (fix_start_end_in_overlays): Make overlays
1234 empty if they are backwards.
1235
1236 2004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
1237
1238 * xfaces.c (face_color_supported_p): Fix compilation without X11.
1239
1240 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
1241
1242 * doc.c (Fsnarf_documentation): Ignore new file name entries.
1243
1244 2004-04-06 Kim F. Storm <storm@cua.dk>
1245
1246 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
1247 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
1248
1249 * w32term.c (w32_read_socket): Set mouse_face_hidden after
1250 clearing highlight.
1251
1252 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
1253
1254 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
1255 clearing highlight.
1256
1257 * indent.c (vmotion): Do not reserve one column for continuation
1258 marks on window frames.
1259
1260 2004-04-04 Eli Zaretskii <eliz@gnu.org>
1261
1262 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
1263 from GCC.
1264
1265 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
1266
1267 * .gdbinit-union: Remove.
1268
1269 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
1270 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
1271 ($nonvalbits): Remove.
1272 ($valmask): Set it by calling xreload to avoid redundancy.
1273
1274 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
1275 (gdb_emacs_intbits): Remove.
1276
1277 2004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1278
1279 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
1280
1281 2004-03-30 Kenichi Handa <handa@m17n.org>
1282
1283 * editfns.c (Fformat): Fix initialization of the array info.
1284
1285 2004-03-30 Kim F. Storm <storm@cua.dk>
1286
1287 * xterm.c (x_mouse_click_focus_ignore_position): New var.
1288 (syms_of_xterm): DEFVAR_BOOL it.
1289 (ignore_next_mouse_click_timeout): New var.
1290 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
1291 Use it to filter mouse clicks following focus event.
1292
1293 2004-03-29 David Ponce <david@dponce.com>
1294
1295 * callint.c (Fcall_interactively): Fix last change.
1296
1297 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
1298
1299 * eval.c (Fcommandp): Simplify.
1300
1301 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
1302 Extend to handle all kinds of functions.
1303
1304 * lisp.h (Finteractive_form): Declare.
1305
1306 * callint.c (Fcall_interactively): Use it.
1307
1308 2004-03-26 Kim F. Storm <storm@cua.dk>
1309
1310 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
1311 to catch errors in calc_pixel_width_or_height during redisplay.
1312
1313 2004-03-26 Masatake YAMATO <jet@gyve.org>
1314
1315 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
1316
1317 * lisp.h (fix_start_end_in_overlays): Likewise.
1318
1319 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
1320
1321 * editfns.c (Ftranspose_regions): Likewise.
1322
1323 2004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1324
1325 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
1326
1327 2004-03-19 Richard M. Stallman <rms@gnu.org>
1328
1329 * s/sol2-6.h: Delete previous change.
1330
1331 2004-03-19 Kim F. Storm <storm@cua.dk>
1332
1333 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
1334 to_charpos corresponds to newline in right fringe. Use local
1335 BUFFER_POS_REACHED_P macro.
1336
1337 2004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1338
1339 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
1340 to compile on non-window system.
1341
1342 2004-03-19 Kim F. Storm <storm@cua.dk>
1343
1344 * dispextern.h (calc_pixel_width_or_height): Add prototype.
1345
1346 * image.c (Qcenter): Move to xdisp.c.
1347
1348 * xdisp.c (Qcenter): Declare here.
1349 (syms_of_xdisp): Intern and staticpro it.
1350 (handle_single_display_prop): Allow space display property on all
1351 platforms.
1352 (display_mode_line): Set mode_line_p before displaying line.
1353 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
1354 handling. Remove complex cases for fringes and scroll-bars.
1355 Add left, right, and center alignment positions. Add text (area)
1356 width/height. Return width or height for image specs.
1357 (produce_stretch_glyph): Improve handling of :align-to. Is now
1358 relative to left of text area by default, but other base offsets
1359 can be specified -- also for text lines.
1360
1361 * term.c (produce_glyphs): Handle IT_STRETCH.
1362 (produce_stretch_glyph): New function to handle space width and
1363 align-to display properties on non-window systems.
1364
1365 2004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
1366
1367 * fileio.c (Fread_file_name): Set completion-ignore-case for
1368 case-insensitive systems.
1369
1370 2004-03-14 Masatake YAMATO <jet@gyve.org>
1371
1372 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
1373 when keymap and cursor are setup.
1374
1375 2004-03-14 Steven Tamm <steventamm@mac.com>
1376
1377 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
1378
1379 2004-03-14 Kim F. Storm <storm@cua.dk>
1380
1381 * dispextern.h (x_find_image_file): Add prototype.
1382
1383 * image.c (x_find_image_file): Make extern.
1384
1385 * xfns.c (x_find_image_file): Remove prototype.
1386
1387 2004-03-13 Eli Zaretskii <eliz@gnu.org>
1388
1389 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
1390
1391 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
1392
1393 2004-03-12 Richard M. Stallman <rms@gnu.org>
1394
1395 * fns.c (internal_equal): New arg PROPS controls comparing
1396 text properties. All callers changed.
1397 (Fequal_including_properties): New function.
1398 (syms_of_fns): defsubr it.
1399
1400 2004-03-12 Kim F. Storm <storm@cua.dk>
1401
1402 Fix image support on MAC. From YAMAMOTO Mitsuharu.
1403
1404 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
1405 (image_background, image_background_transparent): Fix prototypes.
1406
1407 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
1408
1409 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
1410 (x_query_font, x_find_ccl_program, x_set_window_size)
1411 (x_make_frame_visible, mac_initialize, XCreatePixmap)
1412 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
1413 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
1414
1415 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
1416 (x_query_font, x_find_ccl_program, x_set_window_size)
1417 (x_make_frame_visible, mac_initialize, XCreatePixmap)
1418 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
1419 (mac_draw_line_to_pixmap): Add prototypes.
1420
1421 2004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1422
1423 * macterm.c (XTread_socket): Fix mouse click on tool bar.
1424
1425 2004-03-11 Kim F. Storm <storm@cua.dk>
1426
1427 * dispextern.h: Move image related prototypes from xfns.c section
1428 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
1429 HAVE_X_WINDOWS.
1430
1431 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
1432 Move gtkutil.o to new GTK_OBJ list.
1433 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
1434 (GTK_OBJ) [USE_GTK]: New declaration.
1435 (obj): Add $(GTK_OBJ) to list.
1436
1437 2004-03-11 Steven Tamm <steventamm@mac.com>
1438
1439 * image.c [MAC_OSX]: Include sys/stat.h
1440
1441 * macfns.c (syms_of_macfns): Remove definitions of things now
1442 defined in image.c
1443
1444 2004-03-11 Kim F. Storm <storm@cua.dk>
1445
1446 The following changes consolidates the identical/similar image
1447 support code previously found in xfns.c, w32fns.c, and macfns.c
1448 into a new file image.c.
1449
1450 * makefile.w32-in (OBJ1): Add image.o.
1451 ($(BLD)/image.$(O)): Add dependencies.
1452
1453 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
1454 (image.o): Add dependencies.
1455
1456 * image.c: New file with consolidated image support code.
1457 (COLOR_TABLE_SUPPORT): New define to control whether
1458 color table support is available (X only).
1459 (Bitmap_Record): Common name for x_bitmap_record,
1460 w32_bitmap_record, and mac_bitmap_record.
1461 (XImagePtr): Common name for pointer to XImage or equivalent.
1462 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
1463 to XImagePtr on X+MAC, and to HDC on W32.
1464 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
1465 (NO_PIXMAP): Common name for "None" or equivalent.
1466 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
1467 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
1468 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
1469 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
1470 Define with suitable equivalents on W32 and MAC for code sharing.
1471 (XDrawLine): Define on MAC for code sharing.
1472 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
1473 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
1474 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
1475 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1476 (x_reference_bitmap, x_create_bitmap_from_data)
1477 (x_create_bitmap_from_file, x_destroy_bitmap)
1478 (x_destroy_all_bitmaps, x_create_bitmap_mask)
1479 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
1480 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
1481 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1482 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
1483 (define_image_type, lookup_image_type, valid_image_p)
1484 (image_error, enum image_value_type, struct image_keyword)
1485 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
1486 (make_image, free_image, prepare_image_for_display, image_ascent)
1487 (four_corners_best, image_background, image_background_transparent)
1488 (x_clear_image_1, x_clear_image, x_alloc_image_color)
1489 (make_image_cache, free_image_cache, clear_image_cache)
1490 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
1491 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
1492 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
1493 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
1494 (init_image_func_pointer, image_load_quartz2d)
1495 (struct ct_color, init_color_table, free_color_table)
1496 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
1497 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
1498 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
1499 (x_disable_image, x_build_heuristic_mask)
1500 (XBM support, XPM support, PBM support, PNG support, JPEG support)
1501 (TIFF support, GIF support, Ghostscript support): Consolidate image
1502 code from xfns.c, w32fns.c, and macfns.c.
1503 (syms_of_image): Consolidate image related symbol setup here.
1504 (init_image): Consolidate image related initializations here.
1505
1506 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
1507 and init_image. Remove call to init_xfns.
1508
1509 * macterm.h (struct mac_bitmap_record): Add file member.
1510 Not currently used, but simplifies code sharing.
1511
1512 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
1513 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1514 (x_reference_bitmap, x_create_bitmap_from_data)
1515 (x_create_bitmap_from_file, x_destroy_bitmap)
1516 (x_destroy_all_bitmaps, x_create_bitmap_mask)
1517 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
1518 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
1519 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1520 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
1521 (define_image_type, lookup_image_type, valid_image_p)
1522 (image_error, enum image_value_type, struct image_keyword)
1523 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
1524 (make_image, free_image, prepare_image_for_display, image_ascent)
1525 (four_corners_best, image_background, image_background_transparent)
1526 (x_clear_image_1, x_clear_image, x_alloc_image_color)
1527 (make_image_cache, free_image_cache, clear_image_cache)
1528 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
1529 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
1530 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
1531 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
1532 (init_image_func_pointer, image_load_quartz2d)
1533 (struct ct_color, init_color_table, free_color_table)
1534 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
1535 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
1536 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
1537 (x_disable_image, x_build_heuristic_mask)
1538 (XBM support, XPM support, PBM support, PNG support, JPEG support)
1539 (TIFF support, GIF support, Ghostscript support): Merge with image
1540 code from xfns.c and macfns.c into image.c.
1541 (syms_of_xfns): Move image related symbols to image.c.
1542 (init_external_image_libraries, init_xfns): Remove; initialization
1543 moved to init_image in image.c.
1544
1545 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
1546 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1547 (x_reference_bitmap, x_create_bitmap_from_data)
1548 (x_create_bitmap_from_file, x_destroy_bitmap)
1549 (x_destroy_all_bitmaps, x_create_bitmap_mask)
1550 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
1551 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1552 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
1553 (define_image_type, lookup_image_type, valid_image_p)
1554 (image_error, enum image_value_type, struct image_keyword)
1555 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
1556 (make_image, free_image, prepare_image_for_display, image_ascent)
1557 (four_corners_best, image_background, image_background_transparent)
1558 (x_clear_image_1, x_clear_image, x_alloc_image_color)
1559 (make_image_cache, free_image_cache, clear_image_cache)
1560 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
1561 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
1562 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
1563 (struct ct_color, init_color_table, free_color_table)
1564 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
1565 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
1566 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
1567 (x_disable_image, x_build_heuristic_mask)
1568 (XBM support, XPM support, PBM support, PNG support, JPEG support)
1569 (TIFF support, GIF support, Ghostscript support): Merge with image
1570 code from xfns.c and macfns.c into image.c.
1571 (syms_of_xfns): Move image related symbols to image.c.
1572 (init_external_image_libraries, init_xfns): Remove; initialization
1573 moved to init_image in image.c.
1574
1575 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
1576 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1577 (x_reference_bitmap, x_create_bitmap_from_data)
1578 (x_create_bitmap_from_file, x_destroy_bitmap)
1579 (x_destroy_all_bitmaps, x_create_bitmap_mask)
1580 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
1581 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1582 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
1583 (define_image_type, lookup_image_type, valid_image_p)
1584 (image_error, enum image_value_type, struct image_keyword)
1585 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
1586 (make_image, free_image, prepare_image_for_display, image_ascent)
1587 (four_corners_best, image_background, image_background_transparent)
1588 (x_clear_image_1, x_clear_image, x_alloc_image_color)
1589 (make_image_cache, free_image_cache, clear_image_cache)
1590 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
1591 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
1592 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
1593 (struct ct_color, init_color_table, free_color_table)
1594 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
1595 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
1596 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
1597 (x_disable_image, x_build_heuristic_mask)
1598 (XBM support, XPM support, PBM support, PNG support, JPEG support)
1599 (TIFF support, GIF support, Ghostscript support): Merge with
1600 w32fns.c and macfns.c image code into image.c.
1601 (syms_of_xfns): Move image related symbols to image.c.
1602 (init_xfns): Remove; initialization moved to init_image in image.c.
1603
1604 * lisp.h (syms_of_image, init_image): Add protoypes.
1605 (init_xfns): Remove prototype.
1606
1607 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1608 (x_reference_bitmap, x_create_bitmap_from_data)
1609 (x_create_bitmap_from_file, x_destroy_bitmap)
1610 (x_create_bitmap_mask): Move prototypes from dispextern.h.
1611 (gamma_correct) [MAC_OS]: Add prototype.
1612
1613 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1614 (x_reference_bitmap, x_create_bitmap_from_data)
1615 (x_create_bitmap_from_file, x_destroy_bitmap)
1616 (x_create_bitmap_mask): Move prototypes to dispextern.h.
1617
1618 2004-03-09 Kenichi Handa <handa@etlken2>
1619
1620 * coding.c (decode_coding_emacs_mule): Handle insufficent source
1621 correctly.
1622
1623 2004-03-04 Richard M. Stallman <rms@gnu.org>
1624
1625 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
1626
1627 * window.c (Fdisplay_buffer): Doc fix.
1628
1629 * buffer.c (Fpop_to_buffer): Doc fix.
1630
1631 2004-03-03 Kim F. Storm <storm@cua.dk>
1632
1633 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
1634
1635 2004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
1636
1637 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
1638
1639 2004-03-02 Richard M. Stallman <rms@gnu.org>
1640
1641 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
1642
1643 2004-03-02 Kenichi Handa <handa@m17n.org>
1644
1645 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
1646
1647 2004-03-02 Kim F. Storm <storm@cua.dk>
1648
1649 * window.h (struct window): New member overlay_arrow_bitmap.
1650
1651 * window.c (make_window): Initialize overlay_arrow_bitmap.
1652
1653 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
1654 implement and integrate multiple overlay arrows with redisplay.
1655 (syms_of_xdisp): DEFVAR_LISP and initialize it.
1656 (last_arrow_position, last_arrow_string): Replace by properties.
1657 (Qlast_arrow_position, Qlast_arrow_string)
1658 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
1659 (syms_of_xdisp): Intern and staticpro them.
1660 (overlay_arrow_string_or_property, update_overlay_arrows)
1661 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
1662 (overlay_arrow_at_row): New functions for multiple overlay arrows.
1663 (redisplay_internal): Use them instead of directly accessing
1664 Voverlay_arrow_position etc. for multiple overlay arrows.
1665 (mark_window_display_accurate): Use update_overlay_arrows.
1666 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
1667 (try_window_id): Use overlay_arrows_changed_p.
1668 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
1669 (display_line): Use overlay_arrow_at_row to check multiple
1670 overlay arrows, and get relevant overlay-arrow-string and
1671 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
1672 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
1673 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
1674
1675 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
1676 (update_window_fringes): Remove unused code.
1677
1678 2004-03-01 Jason Rumney <jasonr@gnu.org>
1679
1680 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
1681
1682 2004-03-01 Juanma Barranquero <lektu@terra.es>
1683
1684 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
1685
1686 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
1687
1688 2004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1689
1690 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
1691 how many colors can be displayed.
1692
1693 2004-03-01 Kenichi Handa <handa@m17n.org>
1694
1695 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
1696 correctly.
1697
1698 2004-02-28 Kim F. Storm <storm@cua.dk>
1699
1700 * dispnew.c (update_window): Update header line also if there are
1701 no other changes in window (move code after set_cursor label).
1702
1703 * lisp.h (mark_window_display_accurate): Remove prototype.
1704
1705 * window.c (window_loop, Fforce_window_update): Force mode line
1706 updates by setting prevent_redisplay_optimizations_p and
1707 update_mode_lines.
1708
1709 2004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1710
1711 * xfns.c (x_window): Fix indentation.
1712
1713 * xterm.c (x_calc_absolute_position): Call x_real_positions
1714 to get WM window sizes and use those to calculate position.
1715 (x_set_offset): Remove code commented out.
1716
1717 2004-02-28 Miles Bader <miles@gnu.org>
1718
1719 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
1720
1721 2004-02-28 Kim F. Storm <storm@cua.dk>
1722
1723 * keyboard.c (kbd_buffer_store_event_hold): New function to store
1724 an event into kbd fifo, but with special handling of quit event;
1725 a quit event is saved for later, and further events are discarded
1726 until the saved quit event has been processed.
1727 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
1728 (gen_help_event): Store help event in kbd fifo.
1729 (NREAD_INPUT_EVENTS): Remove.
1730 (read_avail_input): Adapt to new read_socket_hook interface.
1731 Remove allocation and initialization of local input_event buffer,
1732 as read_socket_hook stores events directly in fifo. Allocate and
1733 initialize local hold_quit event to handle postponed quit event
1734 (and store it if set by kbd_buffer_store_event_hold).
1735
1736 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
1737 (gen_help_event): Fix prototype.
1738
1739 * macterm.c (XTread_socket): Remove bufp_r and
1740 numcharsp args. Add hold_quit arg.
1741 Rework to use just one, local, inev input_event. Store inev
1742 directly in fifo using kbd_buffer_store_event_hold.
1743
1744 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
1745 (read_input_waiting): Adapt to new read_socket_hook interface.
1746 Remove allocation and initialization of local input_event buffer,
1747 as read_socket_hook stores events directly in fifo. Allocate and
1748 initialize local hold_quit event to handle postponed quit event
1749 (and store it if set by kbd_buffer_store_event_hold).
1750
1751 * term.c (read_socket_hook): Fix arg list.
1752
1753 * termhooks.h (read_socket_hook): Fix prototype.
1754
1755 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
1756 numcharsp args. Add hold_quit arg.
1757 Rework to use just one, local, inev input_event. Store inev
1758 directly in fifo using kbd_buffer_store_event_hold.
1759
1760 * w32inevt.h (w32_console_mouse_position): Fix prototype.
1761
1762 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
1763 Add hold_quit arg. Rework to use just one, local, inev
1764 input_event. Store inev directly in fifo using
1765 kbd_buffer_store_event_hold. Update count in one place.
1766 Postpone call to gen_help_event until inev is stored; use new
1767 local do_help for this.
1768 Remove local emacs_event in handing of ButtonPress event; just use
1769 inev instead (so no reason to copy it later).
1770
1771 * xsmfns.c (x_session_check_input): Remove numchars arg.
1772
1773 * xterm.c (x_focus_changed, x_detect_focus_change):
1774 Remove numchars arg. Always store event into bufp arg.
1775 Return nothing. Callers changed accordingly.
1776 (glyph_rect): Simplify.
1777 (STORE_KEYSYM_FOR_DEBUG): New macro.
1778 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
1779 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
1780 (current_hold_quit) [USE_GTK]: Add.
1781 (event_handler_gdk): Adapt to new handle_one_xevent.
1782 (handle_one_xevent): Remove bufp_r and numcharsp args.
1783 Add hold_quit arg. Rework to use just one, local, inev
1784 input_event. Store inev directly in fifo using
1785 kbd_buffer_store_event_hold. Update count in one place.
1786 Postpone call to gen_help_event until inev is stored; use new
1787 local do_help for this.
1788 Simplify handling of keysyms (consolidate common code). Fix bug
1789 where count was updated with nchars instead of nbytes.
1790 Remove local emacs_event in handing of ButtonPress event; just use
1791 inev instead (so no reason to copy it later).
1792 Remove `out' label. Rename label `ret' to `done'; add various
1793 `goto done' to clarify code flow in deeply nested blocks.
1794 (x_dispatch_event): Simplify as handle_one_xevent now calls
1795 kbd_buffer_store_event itself.
1796 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
1797 arg. Call handle_one_xevent with new arglist. Store event from
1798 x_session_check_input in fifo.
1799 [USE_GTK]: Setup current_hold_quit.
1800 Decrement handling_signal before unblocking input.
1801 (x_initialize) [USE_GTK]: Initialize current_count.
1802
1803 * xterm.h (x_session_check_input): Fix prototype.
1804
1805 2004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1806
1807 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
1808
1809 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
1810 macgui.h).
1811
1812 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
1813
1814 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
1815 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
1816 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
1817 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
1818 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
1819 (Bitmap): Remove typedef.
1820 (Pixmap): Change int to GWorldPtr.
1821
1822 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
1823
1824 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
1825 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
1826 New #define to extract 16-bit depth color components from unsigned
1827 long representation.
1828 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
1829 colors used for masks.
1830 (struct mac_display_info): Add color_p. Remove n_cbits.
1831
1832 * macfns.c: Include sys/types.h and sys/stat.h.
1833 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
1834 Include QuickTime/QuickTime.h.
1835 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
1836 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
1837 functions defined in macterm.c.
1838 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
1839 (ZPixmap): New #define for compatibility with xfns.c.
1840 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
1841 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
1842 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
1843 New functions.
1844 (four_corners_best, x_create_x_image_and_pixmap)
1845 (x_destroy_x_image, unwind_create_frame, x_disable_image)
1846 (x_edge_detection, init_color_table, colors_in_color_table)
1847 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
1848 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
1849 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
1850 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
1851 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
1852 long mixup.
1853 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
1854 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
1855 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
1856 (x_set_cursor_type, Fxw_color_values, valid_image_p)
1857 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
1858 (x_alloc_image_color, clear_image_cache, lookup_image)
1859 (x_find_image_file, xbm_read_bitmap_file_data)
1860 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
1861 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
1862 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
1863 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
1864 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
1865 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
1866 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
1867 #if 0.
1868 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
1869 #if 0. Free white_relief.gc and black_relief.gc.
1870 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
1871 New functions (from xfns.c).
1872 (Fx_create_frame): Record unwind_create_frame.
1873 (Fxw_display_color_p): Use dpyinfo->color_p.
1874 (Fx_display_grayscale_p, Fx_display_planes): Don't use
1875 dpyinfo->n_cbits.
1876 (Fx_display_color_cells): Use dpyinfo->n_planes;
1877 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
1878 (Qheuristic, cross_disabled_images, emboss_matrix)
1879 (laplace_matrix): New variables (from xfns.c).
1880 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
1881 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
1882 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
1883 (image_background_transparent): New function (from xfns.c).
1884 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
1885 (image_load_quicktime): Add declaration.
1886 [MAC_OSX] (image_load_quartz2d): Likewise.
1887 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
1888 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
1889 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
1890 (xbm_load_image_from_file, x_laplace_read_row)
1891 (x_laplace_write_row, pbm_read_file): Remove functions.
1892 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
1893 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
1894 (colors_in_color_table): Sync with xfns.c (although not used).
1895 (lookup_rgb_color): Don't lookup color table. Just do gamma
1896 correction.
1897 (COLOR_INTENSITY): New #define (from xfns.c).
1898 (x_disable_image): New function (from xfns.c).
1899 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
1900 (x_build_heuristic_mask): Sync with xfns.c.
1901 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
1902 (HAVE_PBM): Remove #ifdef.
1903 (pbm_load): Sync with xfns.c. Set img->width and img->height
1904 before IMAGE_BACKGROUND.
1905 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
1906 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
1907 Don't enclose with #if HAVE_PNG.
1908 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
1909 symbol _CGImageCreateWithPNGDataProvider is defined.
1910 Otherwise use image_load_quicktime.
1911 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
1912 [HAVE_PNG] (png_load): Sync with xfns.c.
1913 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
1914 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
1915 HAVE_JPEG.
1916 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
1917 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
1918 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
1919 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
1920 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
1921 (tiff_image_p, tiff_load): Don't enclose declarations with #if
1922 HAVE_TIFF.
1923 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
1924 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
1925 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
1926 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
1927 New functions (from xfns.c).
1928 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
1929 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
1930 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
1931 Don't enclose with #if HAVE_GIF.
1932 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
1933 animated gif. Otherwise use image_load_quicktime.
1934 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
1935 gif_DrawText to avoid conflict with QuickdrawText.h.
1936 [HAVE_GIF] (gif_load): Sync with xfns.c.
1937 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
1938 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
1939 Ghostscript is not supported yet).
1940 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
1941 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
1942 cross_disabled_images (from xfns.c). Remove #if 0 for supported
1943 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
1944 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
1945 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
1946 HAVE_PNG. Call EnterMovies to support animated gifs.
1947 Call init_image_func_pointer to bind a symbol
1948 _CGImageCreateWithPNGDataProvider if it is defined.
1949
1950 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
1951 (x_draw_bar_cursor): Sync declaration with xterm.c.
1952 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
1953 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
1954 graphics).
1955 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
1956 (mac_draw_line_to_pixmap, XCreatePixmap)
1957 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
1958 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
1959 New functions.
1960 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
1961 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
1962 Cast bits to char *.
1963 (reflect_byte): New function (from w32fns.c).
1964 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
1965 due to byte alignment.
1966 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
1967 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
1968 (XSetForeground): Remove static (now used in macfns.c).
1969 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
1970 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
1971 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
1972 (x_draw_glyph_string_box, x_draw_image_foreground)
1973 (x_draw_image_foreground_1, x_draw_image_glyph_string)
1974 (x_draw_stretch_glyph_string, x_draw_glyph_string)
1975 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
1976 Sync with xterm.c.
1977 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
1978 than the xterm.c version when a strictly horizontal or vertical
1979 line is drawn.
1980 (XTset_terminal_window): Add static.
1981 (x_make_frame_visible): Add UNBLOCK_INPUT.
1982 (x_free_frame_resources): New funcion (from xterm.c).
1983 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
1984 occurs in tool bar area.
1985 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
1986 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
1987 Initialize image cache.
1988 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
1989 Enclose unused functions with #if 0.
1990 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
1991 (decode_mac_font_name): New function to apply code conversions
1992 from a mac font name to an XLFD font name according to its script code.
1993 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
1994 font name to a mac font name according to REGISTRY and ENCODING fields.
1995 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
1996 whose name starts with `.'.
1997 (init_font_name_table): Use decode_mac_font_name. Add both
1998 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
1999 of a font is smJapanese.
2000 (mac_do_list_fonts): New function to list fonts that match a given
2001 pattern.
2002 (x_list_fonts, XLoadQueryFont): Use it.
2003 (XLoadQueryFont): Set rbearing field for each variable width
2004 character to avoid needless redraw.
2005 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
2006
2007 2004-02-26 Kim F. Storm <storm@cua.dk>
2008
2009 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
2010 as read_socket_hook handler on X aborts if buffer is too small
2011 and W32 handler doesn't always check buffer limit.
2012
2013 * xdisp.c (handle_single_display_prop): Handle left-fringe and
2014 right-fringe similar to a display margin image. Specifically,
2015 the characters having the fringe prop are no longer shown, and
2016 we use IT_IMAGE/next_element_from_image with image_id = -1 to
2017 do this. Set fringe bitmap face_id in it->face_id.
2018 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
2019 still realize it->face (i.e. the fringe bitmap face).
2020
2021 2004-02-25 Miles Bader <miles@gnu.org>
2022
2023 * xdisp.c (check_it): Check string/string_pos consistency.
2024 (init_iterator): Initialize string-related fields properly.
2025
2026 2004-02-11 Miles Bader <miles@gnu.org>
2027
2028 * xdisp.c (produce_image_glyph): Force negative descents to zero.
2029
2030 2004-02-10 Miles Bader <miles@gnu.org>
2031
2032 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
2033 BLOCK_INPUT can be nested, so it doesn't make much sense.
2034
2035 2004-02-24 Michael Mauger <mmaug@yahoo.com>
2036
2037 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
2038 (xbm_read_bitmap_data): Use unsigned char for image data.
2039
2040 2004-02-23 Luc Teirlinck <teirllm@auburn.edu>
2041
2042 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
2043
2044 2004-02-22 Jason Rumney <jasonr@gnu.org>
2045
2046 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
2047 correctly over other bitmaps.
2048
2049 2004-02-21 Eli Zaretskii <eliz@gnu.org>
2050
2051 * emacs.c (USAGE1): Split into two halves.
2052 (USAGE2): Second half of the old USAGE1.
2053 (USAGE3): Rename from USAGE2.
2054 (USAGE4): Rename from USAGE3.
2055
2056 2004-02-21 Juri Linkov <juri@jurta.org>
2057
2058 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
2059 Fix --multibyte. Move --help, --version to USAGE2. Add alias
2060 --file. Fix -f, -l. Sort options. Untabify.
2061 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
2062
2063 2004-02-19 Luc Teirlinck <teirllm@auburn.edu>
2064
2065 * category.c (Fdefine_category, Fcategory_docstring)
2066 (Fget_unused_category, Fset_category_table)
2067 (Fcategory_set_mnemonics): Doc fixes.
2068
2069 2004-02-20 Kim F. Storm <storm@cua.dk>
2070
2071 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
2072 The following changes are relative to the 2004-01-21 revision.
2073 (NREAD_INPUT_EVENTS): Define as max number of input events to read
2074 in one call to read_socket_hook. Value is 8.
2075 (read_avail_input): Separate and rework handling of read_socket_hook
2076 and non-read_socket_hook cases. Use smaller input_event buffer
2077 in read_socket_hook case, and repeat if full buffer is read.
2078 Use new local variable 'discard' to skip input after C-g.
2079 In non-read_socket_hook case, just use a single input_event, and
2080 call kbd_buffer_store_event on the fly for each character.
2081
2082 2004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
2083
2084 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
2085 Remove unused `gu' alternative.
2086
2087 2004-02-19 Andreas Schwab <schwab@suse.de>
2088
2089 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
2090 warning.
2091
2092 2004-02-18 Kim F. Storm <storm@cua.dk>
2093
2094 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
2095 Fix last change.
2096
2097 2004-02-17 Kim F. Storm <storm@cua.dk>
2098
2099 * xdisp.c (fast_find_position): Fix return value of new version;
2100 it was inverted compared to the 21.1 version.
2101 (get_window_cursor_type): Don't look at glyph if NULL.
2102 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
2103
2104 * keyboard.c: Rework previous change; it didn't consider that the
2105 buf array was allocated on the stack.
2106 (prev_read): Remove variable.
2107 (read_avail_input_buf): New static event buffer array.
2108 (in_read_avail_input): New static variable to handle re-entrancy.
2109 (read_avail_input): Change buf to pinter to read_avail_input_buf.
2110 Use in_read_avail_input to handle re-entrance; when re-entered,
2111 fully initialize and use tmp_buf array instead of read_avail_input_buf.
2112 Do not initialize read_avail_input_buf in full here; instead assume it
2113 is always cleared on entry. To ensure that, we clear (just) the
2114 entries that were used before we return.
2115 (init_keyboard): Initialize read_avail_input_buf here.
2116
2117 2004-02-16 Jesper Harder <harder@ifa.au.dk> (tiny change)
2118
2119 * cmds.c (Fend_of_line): Doc fix.
2120
2121 2004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
2122
2123 * keyboard.c (prev_read): New static variable.
2124 (read_avail_input): Use it to zero out only those slots in buf[]
2125 that were used last time we were called.
2126
2127 2004-02-16 Eli Zaretskii <eliz@gnu.org>
2128
2129 * Makefile.in (obj): Move fringe.o from here...
2130 (XOBJ, MAC_OBJ): ...to here.
2131
2132 2004-02-16 Stephen Eglen <stephen@gnu.org>
2133
2134 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
2135
2136 2004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
2137
2138 * data.c (Fbyteorder):
2139 * fringe.c (Fdefine_fringe_bitmap):
2140 * xdisp.c (handle_single_display_prop):
2141 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
2142
2143 2004-02-16 Jason Rumney <jasonr@gnu.org>
2144
2145 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
2146
2147 2004-02-15 Steven Tamm <steventamm@mac.com>
2148
2149 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
2150 controlling emulation of a three button mouse with option and
2151 command keys.
2152 (Qreverse, mac_get_enumlated_btn): Handle the emulation
2153 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
2154
2155 2004-02-15 Kim F. Storm <storm@cua.dk>
2156
2157 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
2158
2159 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
2160 Perform byte-swapping.
2161
2162 2004-02-14 Kim F. Storm <storm@cua.dk>
2163
2164 * dispextern.h (struct draw_fringe_bitmap_params): Change member
2165 bits from char to short to facilitate wider bitmaps.
2166 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
2167 member.
2168
2169 * fringe.c (struct fringe_bitmap): Change member bits from char to
2170 short to facilitate 16 bits wide bitmaps. Modify all standard
2171 bitmaps accordingly.
2172 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
2173 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
2174 (draw_fringe_bitmap): Ditto.
2175 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
2176 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
2177 handle up to 16 bits wide bitmaps.
2178 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
2179 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
2180
2181 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
2182 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
2183 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
2184
2185 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
2186 so it is no longer necessary to expand them here.
2187
2188 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
2189
2190 2004-02-12 Kim F. Storm <storm@cua.dk>
2191
2192 * window.c (Fwindow_fringes): Doc fix.
2193
2194 2004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2195
2196 * xselect.c (x_get_foreign_selection): Add new optional parameter
2197 time_stamp.
2198 (Fx_get_selection_internal): Ditto, pass time_stamp to
2199 x_get_foreign_selection.
2200
2201 * data.c (Fbyteorder): New function.
2202
2203 2004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2204
2205 * atimer.c: Move include stdio.h to same place as in other files.
2206
2207 * region-cache.c: Ditto.
2208
2209 * sysdep.c: Ditto.
2210
2211 * xfaces.c: Ditto.
2212
2213 2004-02-09 Sam Steingold <sds@gnu.org>
2214
2215 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
2216
2217 2004-02-09 Kim F. Storm <storm@cua.dk>
2218
2219 * fringe.c: New file. Move original fringe related declarations
2220 and code from dispextern.h and xdisp.c here.
2221 Rework code to support user defined fringe bitmaps, redefining
2222 standard bitmaps, ability to overlay user defined bitmap with
2223 overlay arrow bitmap, and add faces to bitmaps.
2224 (Voverflow_newline_into_fringe): Declare here.
2225 (enum fringe_bitmap_align): New enum.
2226 (..._bits): All bitmaps are now defined without bitswapping; that
2227 is now done in init_fringe_once (if necessary).
2228 (standard_bitmaps): New array with specifications for the
2229 standard fringe bitmaps.
2230 (fringe_faces): New array.
2231 (valid_fringe_bitmap_id_p): New function.
2232 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
2233 (draw_fringe_bitmap): New function which draws fringe bitmap,
2234 possibly overlaying bitmap with cursor in right fringe or the
2235 overlay arrow in the left fringe.
2236 (update_window_fringes): Do not handle overlay arrow here.
2237 Compare and copy fringe bitmap faces.
2238 (init_fringe_bitmap): New function.
2239 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
2240 define and destroy user defined fringe bitmaps.
2241 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
2242 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
2243 (syms_of_fringe): New function. Defsubr new DEFUNs.
2244 DEFVAR_LISP Voverflow_newline_into_fringe.
2245 (init_fringe_once, init_fringe): New functions.
2246 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
2247
2248 * Makefile.in (obj): Add fringe.o.
2249 (fringe.o): New dependencies.
2250
2251 * dispextern.h (FRINGE_ID_BITS): New definition for number of
2252 bits allocated to hold a fringe number. Increase number of bits
2253 from 4 to 8 to allow user defined fringe bitmaps.
2254 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
2255 left_user_fringe_face_id, right_user_fringe_bitmap,
2256 right_user_fringe_face_id.
2257 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
2258 Move to new file fringe.c.
2259 (MAX_FRINGE_BITMAPS): Define here.
2260 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
2261 and overlay_p. Change member which to int.
2262 (struct redisplay_interface): New members define_fringe_bitmap
2263 and destroy_fringe_bitmap.
2264 (valid_fringe_bitmap_id_p): Add prototype.
2265 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
2266
2267 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
2268 arrows.
2269 (update_frame): Do flush_display if force_flush_display_p to
2270 ensure display (specifically fringes) are updated in a timely
2271 manner when resizing the frame by dragging the mouse.
2272 (update_window_line): Update row if overlay arrow changed.
2273 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
2274 or overlay arrow changed.
2275
2276 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
2277 syms_of_fringe, and init_fringe.
2278
2279 * frame.h (struct frame): New member force_flush_display_p.
2280
2281 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
2282 Add prototypes.
2283
2284 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
2285 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
2286 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
2287 Use cursor color for displaying cursor in fringe.
2288 (x_redisplay_interface): Add null handlers for
2289 define_fringe_bitmap and destroy_fringe_bitmap functions.
2290
2291 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
2292 xterm.c to handle overlayed fringe bitmaps and to use cursor color
2293 for displaying cursor in fringe.
2294 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
2295 specific functions to define and destroy fringe bitmaps in fringe_bmp.
2296 (w32_redisplay_interface): Add them to redisplay_interface.
2297 (w32_term_init): Call w32_init_fringe instead of explicitly
2298 defining fringe bitmaps in fringe_bmp array.
2299 (x_delete_display): Call w32_reset_fringes instead of explicitly
2300 destroying fringe bitmaps in fringe_bmp array.
2301
2302 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
2303 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
2304 (continued_bits, continuation_bits, ov_bits, first_line_bits)
2305 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
2306 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
2307 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
2308 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
2309 Move fringe handling vars and code to new file fringe.c.
2310 (handle_display_prop): Handle left-fringe and right-fringe
2311 display properties; store user fringe bitmaps in iterator.
2312 (move_it_in_display_line_to): Handle cursor in fringe at eob.
2313 (clear_garbaged_frames): Set force_flush_display_p if resized.
2314 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
2315 (display_line): Handle cursor in fringe at eob.
2316 (display_line): Set row user fringe bitmaps from iterator.
2317
2318 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
2319 Use cursor color for displaying cursor in fringe.
2320 (x_redisplay_interface): Add null handlers for
2321 define_fringe_bitmap and destroy_fringe_bitmap functions.
2322
2323 2004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2324
2325 * macfns.c (Fx_change_window_property): Make doc string and
2326 parameters same as for X version.
2327
2328 * w32fns.c (Fx_change_window_property): Ditto.
2329
2330 2004-02-07 Kim F. Storm <storm@cua.dk>
2331
2332 * xdisp.c (hscroll_window_tree): Position cursor near to right
2333 margin in hscrolled window when jumping to end of line (rather
2334 than centering cursor).
2335
2336 * process.c (wait_reading_process_input): Don't do adaptive read
2337 buffering if waiting for a specific process.
2338
2339 2004-02-05 Luc Teirlinck <teirllm@auburn.edu>
2340
2341 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
2342 (Fread_minibuffer, Feval_minibuffer)
2343 (Fread_string, Fread_no_blanks_input)
2344 (Fcompleting_read): Doc fixes.
2345 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
2346 completion-regexp-list. Define Qcase_fold_search and staticpro it.
2347 (read_minibuf): Fix initial comment.
2348 (Ftry_completion, Fall_completions, Ftest_completion): Bind
2349 case-fold-search to the value of completion-ignore-case when
2350 checking completion-regexp-list.
2351 (Fdisplay_completion_list): Make it handle arguments that are
2352 symbols. Doc fix.
2353
2354 2004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2355
2356 * xterm.h: Add declaration of free_frame_menubar.
2357
2358 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
2359 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
2360 (Fx_change_window_property): Add declaration of parameters type and
2361 format. Remove unused variable cons.
2362
2363 * xselect.c: Include stdio,h.
2364
2365 2004-02-05 Kenichi Handa <handa@m17n.org>
2366
2367 * fns.c (Fset_char_table_range): Fix previous change.
2368
2369 * buffer.c (Fset_buffer_multibyte): Fix docstring.
2370
2371 2004-02-04 Luc Teirlinck <teirllm@auburn.edu>
2372
2373 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
2374
2375 2004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
2376
2377 * keymap.c (Vmouse_events): Rename from Vmenu_events.
2378 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
2379
2380 2004-02-04 Kenichi Handa <handa@m17n.org>
2381
2382 * fns.c (Fset_char_table_range): Handle charsets ascii,
2383 eight-bit-control, and eight-bit-graphic correctly.
2384
2385 2004-02-03 Jason Rumney <jasonr@gnu.org>
2386
2387 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
2388
2389 * w32fns.c (x_to_w32_font): Likewise.
2390
2391 2004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2392
2393 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
2394 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
2395
2396 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
2397 ClientMessages.
2398
2399 * xselect.c: Include termhooks.h and X11/Xproto.h
2400 (x_check_property_data, x_fill_property_data)
2401 (x_property_data_to_lisp, mouse_position_for_drop)
2402 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
2403 (Fx_send_client_event): Move here from xfns.c.
2404 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
2405
2406 * xfns.c (x-send-client-message): Move to xselect.c
2407 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
2408 OUTER_P.
2409 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
2410 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
2411 if vector_ret_p is true.
2412 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
2413
2414 2004-02-02 Eli Zaretskii <eliz@gnu.org>
2415
2416 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
2417 basename of FILE relative to it, not FILE itself.
2418
2419 2004-02-02 Kenichi Handa <handa@m17n.org>
2420
2421 * coding.c (coding_restore_composition): Check invalid
2422 composition data more rigidly.
2423
2424 2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
2425
2426 * fileio.c (Fread_file_name_internal): Correctly handle the case
2427 where insert-default-directory is nil.
2428 (Fread_file_name): Always return an empty string if the user exits
2429 with an empty minibuffer. Adapt the docstring accordingly.
2430 (syms_of_fileio): Adapt the docstring of insert-default-directory
2431 to the change in Fread_file_name.
2432
2433 2004-01-29 Eli Zaretskii <eliz@gnu.org>
2434
2435 * alloca.c [!alloca]: Fix the prototype for xfree.
2436
2437 2004-01-29 Kenichi Handa <handa@m17n.org>
2438
2439 * fns.c (string_char_to_byte): Optimize for ASCII only string.
2440 (string_byte_to_char): Likewise.
2441
2442 2004-01-28 Peter Runestig <peter@runestig.com>
2443
2444 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
2445
2446 2004-01-27 Steven Tamm <steventamm@mac.com>
2447
2448 * unexmacosx.c (unexec_copy): Do not copy more than was
2449 requested to prevent overwriting during unexec.
2450
2451 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2452
2453 * process.c (sigchld_handler): Add comment about not calling malloc.
2454
2455 * process.h: Add extern to synch_process_termsig.
2456
2457 2004-01-27 Steven Tamm <steventamm@mac.com>
2458
2459 * macterm.c (make_mac_frame, make_mac_terminal_frame):
2460 Move setting of scroll bars from make_mac_frame to
2461 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
2462
2463 2004-01-26 Richard M. Stallman <rms@gnu.org>
2464
2465 * search.c (Freplace_match): Handle nonexistent
2466 back-references properly.
2467
2468 2004-01-03 Richard M. Stallman <rms@gnu.org>
2469
2470 * window.c (decode_any_window): New function.
2471 (Fwindow_height, Fwindow_width, Fwindow_edges)
2472 (Fwindow_pixel_edges, Fwindow_inside_edges)
2473 (Fwindow_inside_pixel_edges): Use decode_any_window.
2474
2475 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2476
2477 * process.h: synch_process_termsig new variable.
2478
2479 * callproc.c: Define synch_process_termsig.
2480 (Fcall_process): Initiate synch_process_termsig to zero and
2481 check if non-zero and get signal name after subprocess has ended.
2482
2483 * process.c (sigchld_handler): Set synch_process_termsig
2484 if terminated by a signal. synch_process_death setting removed.
2485
2486 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
2487
2488 2004-01-26 Andreas Schwab <schwab@suse.de>
2489
2490 * print.c (print_preprocess): Declare size as EMACS_INT to not
2491 lose bits.
2492 (print_object): Likewise.
2493 * alloc.c (Fpurecopy): Likewise.
2494
2495 2004-01-25 Luc Teirlinck <teirllm@auburn.edu>
2496
2497 * window.c (Fwindow_minibuffer_p): Doc fix.
2498
2499 2004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
2500
2501 * editfns.c (Fformat): Make both passes accept the same set of flags.
2502
2503 2004-01-23 Kenichi Handa <handa@m17n.org>
2504
2505 * fns.c (Fmd5): If OBJECT is a buffer different from the current
2506 one, set buffer to OBJECT temporarily.
2507
2508 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
2509
2510 * keyboard.c (kbd_buffer_gcpro): Remove.
2511 (kbd_buffer_store_event, clear_event, Fdiscard_input)
2512 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
2513 Don't initialize and/or maintain the variable any more. It was made
2514 redundant by my commit of 2003-06-15.
2515
2516 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
2517
2518 2004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2519
2520 * lisp.h: Add undef DECL_ALIGN.
2521
2522 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
2523
2524 * process.c (wait_reading_process_input) [SYNC_INPUT]:
2525 Check interrupt_input_pending explicitly.
2526
2527 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
2528
2529 * keyboard.c (handle_async_input): New fun,
2530 extracted from input_available_signal.
2531 (input_available_signal, reinvoke_input_signal): Use it.
2532
2533 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
2534
2535 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
2536
2537 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
2538 manipulation macros for when tags are in the lower bits.
2539 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
2540 (DECL_ALIGN): New macro.
2541 (DEFUN): Use it.
2542
2543 * lisp.h [ENABLE_CHECKING]: Don't force union type.
2544
2545 * s/darwin.h (__attribute__): Remove outdated workaround.
2546
2547 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
2548
2549 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
2550 Don't check range of malloc address.
2551 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
2552
2553 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
2554
2555 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
2556
2557 2004-01-19 Kenichi Handa <handa@m17n.org>
2558
2559 * fontset.c (fontset_font_pattern): Fix previous change.
2560
2561 2004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
2562
2563 * xdisp.c (Voverflow_newline_into_fringe)
2564 (move_it_in_display_line_to, redisplay_internal)
2565 (update_window_fringes, redisplay_window, display_line, window):
2566 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
2567 that it compiles without a window-system.
2568 * dispnew.c (direct_output_for_insert, update_window): Likewise.
2569
2570 2004-01-16 Kim F. Storm <storm@cua.dk>
2571
2572 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
2573
2574 * buffer.c (init_buffer_once): Set buffer_defaults and
2575 buffer_local_flags for indicate_buffer_boundaries.
2576 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
2577 default- variable for it.
2578
2579 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
2580 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
2581 New members exact_window_width_line_p and cursor_in_fringe_p for
2582 overflowing newlines into right fringe.
2583 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
2584 and indicate_bottom_line_p for buffer boundaries and scrolling.
2585 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
2586 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
2587 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
2588 and HOLLOW_SQUARE_BITMAP.
2589 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
2590 Add prototypes.
2591
2592 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
2593 instead of related indicator fields.
2594 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
2595 (direct_output_for_insert): Handle exact width lines like
2596 contined lines. Call update_window_fringes.
2597 (update_window): Call update_window_fringes.
2598 (scrolling_window): Don't skip desired rows with changed bitmaps.
2599 Check if fringe bitmaps changes when assigning scrolled rows.
2600
2601 * xdisp.c (Voverflow_newline_into_fringe): New variable.
2602 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
2603 (move_it_in_display_line_to): Overflow newline into fringe for
2604 rows that are exactly as wide as the window.
2605 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
2606 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
2607 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
2608 (fringe_bitmaps): Add new bitmaps.
2609 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
2610 Select proper bitmap for cursor in fringe when appropriate.
2611 Handle alignment of bitmap to top or bottom of row.
2612 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
2613 done by update_window_fringes.
2614 (update_window_fringes, draw_window_fringes): New functions.
2615 (redisplay_internal): Call update_window_fringes in case only
2616 cursor row is updated.
2617 (redisplay_window): Call update_window_fringes.
2618 Explicitly call draw_window_fringes if redisplay was done using
2619 the current matrix or the overlay arrow is in the window.
2620 (try_window_reusing_current_matrix): Mark scrolled rows for
2621 fringe update (to update buffer-boundaries / scrolling icons).
2622 (find_last_unchanged_at_beg_row): Handle exact width lines line
2623 continued lines.
2624 (display_line): Overflow newline into fringe for rows that are
2625 exactly as wide as the window. Don't append space for newline
2626 in this case.
2627 (notice_overwritten_cursor): Explicitly clear cursor bitmap
2628 in fringe as if it had been overwritten.
2629 (erase_phys_cursor): Erase cursor bitmap in fringe.
2630 (syms_of_xdisp): Mark show-trailing-whitespace and
2631 void-text-area-pointer as user options.
2632 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
2633
2634 * xterm.c (x_update_window_end): Call draw_window_fringes.
2635 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
2636 in row instead of actually drawing fringe bitmaps.
2637 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
2638 (x_draw_window_cursor): Draw cursor in fringe.
2639
2640 * w32term.c (x_update_window_end): Call draw_window_fringes.
2641 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
2642 in row instead of actually drawing fringe bitmaps.
2643 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
2644 (w32_draw_window_cursor): Draw cursor in fringe.
2645
2646 * macterm.c (x_update_window_end): Call draw_window_fringes.
2647 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
2648 in row instead of actually drawing fringe bitmaps.
2649 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
2650 (mac_draw_window_cursor): Draw cursor in fringe.
2651
2652 2004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2653
2654 * xterm.c (handle_one_xevent): Don't handle characters that are part
2655 of an old style (XLookupString) compose sequence.
2656
2657 2004-01-15 Kenichi Handa <handa@m17n.org>
2658
2659 * search.c (Freplace_match): Use make_multibyte_string or
2660 make_unibyte_string according to the buffer multibyteness.
2661
2662 2004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
2663
2664 * alloc.c (struct interval_block, struct string_block)
2665 (struct symbol_block, struct marker_block, live_string_p)
2666 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
2667 Better preserve alignment for objects in blocks.
2668 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
2669
2670 * lread.c (defvar_per_buffer): Remove dead declaration.
2671
2672 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
2673 space size.
2674
2675 2004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2676
2677 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
2678 if a key press should pop down. Only pop down if a key is pressed
2679 outside the menu/dialog.
2680 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
2681 popup_get_selection.
2682 (create_and_show_dialog): Pass 1 for down_on_keypress to
2683 popup_get_selection.
2684
2685 2004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2686
2687 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
2688 BLOCK/UNBLOCK_INPUT.
2689
2690 2004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2691
2692 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
2693 specified.
2694
2695 2004-01-08 Kenichi Handa <handa@m17n.org>
2696
2697 * editfns.c (Fformat): Fix '&' to '&&'.
2698
2699 2004-01-08 Andreas Schwab <schwab@suse.de>
2700
2701 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
2702 size if PSEUDOVECTOR_FLAG is set.
2703
2704 2004-01-07 Kenichi Handa <handa@m17n.org>
2705
2706 * charset.c (Fdeclare_equiv_charset): Fix docstring.
2707
2708 * fontset.c (fontset_ref_via_base): Fix previous change.
2709
2710 2004-01-07 Kim F. Storm <storm@cua.dk>
2711
2712 * process.c (read_process_output): Only activate adaptive
2713 buffering if we read less than 256 bytes at a time.
2714
2715 2004-01-06 Kim F. Storm <storm@cua.dk>
2716
2717 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
2718 object and image object. Return glyph width and height.
2719 (mode_line_string, marginal_area_string): Ditto.
2720
2721 * dispextern.h (buffer_posn_from_coords, mode_line_string)
2722 (marginal_area_string): Fix prototypes.
2723
2724 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
2725 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
2726 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
2727
2728 * keyboard.c (make_lispy_position): Use modified mode_line_string,
2729 buffer_posn_from_coords, and marginal_area_string functions to
2730 include both string object and image object in the lispy position.
2731 Also add actual glyph width and height to position.
2732 (read_key_sequence): Use real buffer position from mouse
2733 event to find keymap property even when click is in marginal area.
2734
2735 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
2736 mode_line_string and marginal_area_string functions to handle
2737 both string object and image object properties.
2738
2739 2004-01-06 Andreas Schwab <schwab@suse.de>
2740
2741 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
2742 character.
2743
2744 2004-01-02 Andreas Schwab <schwab@suse.de>
2745
2746 * macterm.c (emacs_options, x_initialized, same_x_server):
2747 Remove unused (and duplicated) definitions.
2748
2749 2004-01-02 Kim F. Storm <storm@cua.dk>
2750
2751 * process.h (struct Lisp_Process): New members for adaptive read
2752 buffering: adaptive_read_buffering, read_output_delay, and
2753 read_output_skip.
2754
2755 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
2756 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
2757 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
2758 (process_output_delay_count, process_output_skip): New vars.
2759 (Vprocess_adaptive_read_buffering): New variable.
2760 (make_process): Initialize adaptive read buffering members.
2761 (Fstart_process): Set adaptive_read_buffering member.
2762 (deactivate_process): Cleanup adaptive read buffering.
2763 (wait_reading_process_input): Temporarily omit delayed
2764 subprocesses from the set of file descriptors to read from;
2765 adjust the select timeout if we skipped any subprocesses.
2766 (read_process_output): Increase adaptive read buffering delay if
2767 we read less than a full buffer; reduce delay when we read a
2768 full buffer.
2769 (send_process): Simplify using local Lisp_Process var.
2770 Reset adaptive read buffering delay after write.
2771 (init_process): Initialize process_output_delay_count and
2772 process_output_skip.
2773 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
2774
2775 2004-01-01 Jason Rumney <jasonr@gnu.org>
2776
2777 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
2778
2779 2003-12-30 Luc Teirlinck <teirllm@auburn.edu>
2780
2781 * print.c (Ferror_message_string): Add hyperlink in the docstring
2782 to the definition of `signal' in the Elisp manual.
2783 * eval.c (Fsignal): Ditto.
2784
2785 2003-12-29 James Clark <jjc@jclark.com> (tiny change)
2786
2787 * fns.c (internal_equal): Return t for two NaN arguments.
2788
2789 2003-12-29 Richard M. Stallman <rms@gnu.org>
2790
2791 * data.c (store_symval_forwarding): Handle setting
2792 default-fill-column, etc., by changing the value in
2793 buffers that use the default.
2794
2795 * minibuf.c (Fset_minibuffer_window): Doc fix.
2796
2797 * fileio.c (choose_write_coding_system): Ignore auto_saving
2798 if using the visited file for auto saves.
2799 (Fwrite_region): Don't update SAVE_MODIFF
2800 if auto-saving in visited file.
2801
2802 2003-12-29 Kenichi Handa <handa@m17n.org>
2803
2804 * dispextern.h (face_font_available_p): Extern it.
2805
2806 * fontset.c (Voverriding_fontspec_alist): New variable.
2807 (lookup_overriding_fontspec): New function.
2808 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
2809 (fontset_font_pattern): Likewise.
2810 (regulalize_fontname): New function.
2811 (Fset_fontset_font): Call regulalize_fontname.
2812 (Fset_overriding_fontspec_internal): New function.
2813 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
2814 Defsubr Sset_overriding_fontspec_internal.
2815
2816 * xfaces.c (face_font_available_p): New function.
2817
2818 2003-12-28 Richard M. Stallman <rms@gnu.org>
2819
2820 * buffer.c (Fother_buffer): Don't crash if BUF is nil
2821 or if its name is nil.
2822
2823 * buffer.c (Fkill_buffer): Don't delete auto-save file
2824 if it's the same as the visited file.
2825
2826 2003-12-28 Luc Teirlinck <teirllm@auburn.edu>
2827
2828 * coding.c (Fcheck_coding_system): Doc fix.
2829
2830 2003-12-28 Kim F. Storm <storm@cua.dk>
2831
2832 * Makefile.in (eval.o): Depend on dispextern.h.
2833
2834 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
2835 image glyph using image's ascent.
2836 (mode_line_string): Return image glyph as object clicked on.
2837 Adjust y0 for image glyph using image's ascent.
2838
2839 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
2840 (struct glyph): New members, ascent and descent. Used to save
2841 this glyph's ascent and descent, instead of having.
2842 (struct glyph): Declare member face_id using FACE_ID_BITS.
2843 (find_hot_spot): Add prototype.
2844
2845 * keyboard.c (Qimage): Remove extern (now in lisp.h).
2846 (QCmap): Declare extern.
2847 (make_lispy_position): When position is inside image hot-spot,
2848 use hot-spot element's id as posn element.
2849
2850 * lisp.h (IMAGEP): New macro to test for image object type.
2851 (Qimage): Declare extern.
2852
2853 * macfns.c (Qimage): Remove extern (now in lisp.h).
2854 (valid_image_p, parse_image_spec): Use IMAGEP macro.
2855
2856 * macterm.c (Qface, Qmouse_face): Remove unused externs.
2857
2858 * w32fns.c (Qimage): Remove extern (now in lisp.h).
2859 (valid_image_p, parse_image_spec): Use IMAGEP macro.
2860
2861 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
2862
2863 * w32term.c (Qface, Qmouse_face): Remove unused externs.
2864
2865 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
2866 pointer types.
2867 (Qrelative_width, Qalign_to): Remove unused variables.
2868 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
2869 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
2870 image maps.
2871 (x_y_to_hpos_vpos): Return glyph relative coordinates through
2872 new dx and dy args.
2873 Remove buffer_only_p arg (always 0). Simplify code accordingly.
2874 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
2875 than row's ascent and height, to get sensible height on tall rows.
2876 (build_desired_tool_bar_string): Remove Qimage extern.
2877 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
2878 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
2879 image glyph is alone on the last line.
2880 (append_glyph, append_composite_glyph, produce_image_glyph)
2881 (append_stretch_glyph): Set glyph's ascent and descent.
2882 (on_hot_spot_p): New function to check if position is inside an
2883 rectangular, circular, or polygon-shaped image hot-spot,
2884 (find_hot_spot): New function to search for image hot-spot.
2885 (Flookup_image_map): New defun to search for image hot-spot.
2886 (define_frame_cursor1): New aux function to determine frame pointer.
2887 (note_mode_line_or_margin_highlight, note_mouse_highlight):
2888 Handle `pointer' text property and :pointer image property to
2889 control frame pointer shape. Detect image hot-spots for pointer
2890 and help_echo properties. Use define_frame_cursor1.
2891 (note_mouse_highlight): Use Vvoid_text_area_pointer.
2892 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
2893 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
2894
2895 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
2896
2897 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
2898 (Qimage): Remove extern (now in lisp.h).
2899 (valid_image_p, parse_image_spec): Use IMAGEP macro.
2900
2901 * xmenu.c (show_help_event): Remove unused code.
2902
2903 * xterm.c (Qface, Qmouse_face): Remove unused externs.
2904 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
2905 row's ascent and descent, to get a sensible height on tall rows.
2906
2907 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
2908
2909 * minibuf.c (Fcompleting_read): Undo previous change.
2910
2911 2003-12-25 Lars Hansen <larsh@math.ku.dk>
2912
2913 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
2914 Arguments GCPRO'ed in call to file name handler.
2915
2916 2003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
2917
2918 * termcap.c (tgetst1): Scan for "%pN"; if all
2919 N are continuous in [1,9], remove all "%pN".
2920
2921 2003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2922
2923 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
2924
2925 * xfaces.c (lface_fully_specified_p): Take into account that
2926 MAC OS always have unspecified stipple.
2927
2928 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
2929
2930 * tparam.c (tparam1): Add handling for `%pN', which
2931 means use param N for the next substitution.
2932
2933 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
2934
2935 * xfaces.c (Fcolor_gray_p): Fix omission bug:
2936 In case `frame' is nil, consult the selected frame.
2937 (Fcolor_supported_p): Likewise.
2938
2939 2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
2940
2941 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
2942 Doc fixes.
2943
2944 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
2945 and an integer. Adapt the introductory comment accordingly.
2946 (Fread_from_minibuffer): Delete code moved into read_minibuf.
2947 Doc fix.
2948 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
2949 read_minibuf.
2950 (Fcompleting_read): Delete code moved into read_minibuf.
2951 (Ftest_completion): Make it handle obarrays and hash tables correctly.
2952
2953 2003-12-03 Kenichi Handa <handa@m17n.org>
2954
2955 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
2956 encoding sequence.
2957
2958 2003-12-01 Kenichi Handa <handa@m17n.org>
2959
2960 * composite.c (syms_of_composite): Don't make the compostion hash
2961 table week.
2962
2963 2003-11-30 Luc Teirlinck <teirllm@auburn.edu>
2964
2965 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
2966 * textprop.c (Fget_char_property_and_overlay): New function.
2967 (syms_of_textprop): Defsubr it.
2968
2969 2003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2970
2971 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
2972 to compile on terminal configuration.
2973
2974 * fileio.c (Fread_file_name): Check use_file_dialog also before
2975 calling Fx_file_dialog.
2976
2977 * fns.c: use_file_dialog: New variable.
2978 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
2979
2980 2003-11-29 Kim F. Storm <storm@cua.dk>
2981
2982 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
2983 (syms_of_msdos): Don't intern and staticpro them.
2984
2985 2003-11-27 Kim F. Storm <storm@cua.dk>
2986
2987 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
2988 coordinates relative to glyph at posn. If glyph is an image,
2989 return that as object at posn. Callers changed.
2990 (mode_line_string, marginal_area_string): Calculate and return
2991 pixel coordinates relative to glyph. Callers changed.
2992
2993 * dispextern.h (buffer_posn_from_coords, mode_line_string)
2994 (marginal_area_string): Fix prototypes.
2995 (window_box_left_offset, window_box_right_offset): Add prototypes.
2996
2997 * frame.h (get_specified_cursor_type, get_window_cursor_type):
2998 Remove prototypes.
2999
3000 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
3001
3002 * keyboard.c (make_lispy_position): Add x and y coordinates
3003 relative to the current glyph as 7th element of position.
3004 If glyph is an image, return it in the object element.
3005 (read_key_sequence): Skip checks for keymap property in cases
3006 where POSN_STRING is not a string (e.g. an image).
3007
3008 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
3009 (Vshow_text_cursor_in_void): New variable.
3010 (glyph_to_pixel_coords): Don't use negative hpos.
3011 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
3012 (append_stretch_glyph): Change ascent arg to be actual value
3013 in pixels rather than ratio to height. Callers changed.
3014 (calc_pixel_width_or_height): New aux function, implementing
3015 pixel based artihmetic for glyph widths and heights.
3016 (produce_stretch_glyph): Use calc_pixel_width_or_height for
3017 :width, :height, :align-to, and :ascent, thus allowing these to
3018 be specified in pixels as well as multiples of characters.
3019 Don't produce stretch glyphs with zero width or height.
3020 (get_specified_cursor_type): Declare static.
3021 (get_window_cursor_type): Declare static. Add glyph arg to be
3022 able to know when cursor is on an image; always substitute
3023 hollow-box cursor for filled-box cursor on images, to avoid
3024 negative images and flicker when blinking the cursor.
3025 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
3026 (note_mode_line_or_margin_highlight): Use non-text cursor rather
3027 than vertical scroll-bar cursor in display margins.
3028 (note_mouse_highlight): Use non-text cursor rather than text
3029 cursor in fringes and over images in the text area.
3030 Use non-text cursor when mouse pointer is outside editable text,
3031 i.e. in the void after end-of-line or end-of-buffer; this was
3032 already done for W32, but is now standard for all systems --
3033 user can toggle show-text-cursor-in-void to get old behaviour.
3034 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
3035 Vdisplay_pixels_per_inch.
3036
3037 2003-11-25 Andreas Schwab <schwab@suse.de>
3038
3039 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
3040 EMACS_INT to not lose bits.
3041 (Ffillarray): Don't set bits beyond the size of a bool vector.
3042
3043 2003-11-25 Kim F. Storm <storm@cua.dk>
3044
3045 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
3046 define this defun on systems that cannot use stderr as lvalue.
3047
3048 2003-11-24 Gerd Moellmann <gerd@gnu.org>
3049
3050 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
3051 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
3052 ld's default is incompatible with unexec.
3053
3054 2003-11-23 Kim F. Storm <storm@cua.dk>
3055
3056 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
3057 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
3058 (Fforce_window_update): New defun.
3059 (syms_of_window): Defsubr it.
3060 (Fset_window_margins, Fset_window_fringes): Doc fix.
3061
3062 * print.c (Fredirect_debugging_output): New defun.
3063 (syms_of_print): Defsubr it.
3064
3065 2003-11-22 Luc Teirlinck <teirllm@auburn.edu>
3066
3067 * fns.c (Fset_char_table_parent): Doc fix.
3068
3069 2003-11-22 Kim F. Storm <storm@cua.dk>
3070
3071 * dispnew.c (buffer_posn_from_coords): Return actual row/column
3072 for glyph clicked on, rather than (unused) pixel positions.
3073 (mode_line_string, marginal_area_string): Change X and Y args to
3074 pointers for returning actual row/column for glyph clicked on.
3075 Simplify and optimize loops.
3076
3077 * dispextern.h (mode_line_string, marginal_area_string):
3078 Update prototypes.
3079
3080 * keyboard.c (make_lispy_position): New function for generating
3081 mouse click positions from frame and pixel coordinates.
3082 Enhanced to return buffer position and actual row/column for
3083 events outside the text area using updated mode_line_string and
3084 marginal_area_string functions.
3085 Return left-fringe and right-fringe clicks as such, rather than
3086 clicks in text area.
3087 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
3088 pixel_to_glyph_coords, as we never use the results.
3089 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
3090 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
3091 Eliminate unused code in WHEEL_EVENT handling.
3092 (make_lispy_movement): Use make_lispy_position.
3093
3094 * window.c (coordinates_in_window): Remove redundant tests.
3095 Fix returned X pixel value for left-margin.
3096
3097 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
3098 mode_line_string and marginal_area_string parameters.
3099
3100 2003-11-22 Lars Hansen <larsh@math.ku.dk>
3101
3102 * w32.c (struct the_group, getgrgid): Add.
3103 * mac.c (struct my_group, getgrgid): Add.
3104
3105 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
3106
3107 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
3108
3109 2003-11-21 Lars Hansen <larsh@math.ku.dk>
3110
3111 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
3112 include in call to file name handler. Optionally translate numeric
3113 UID and GID to strings. Update docstring.
3114 (directory_files_internal): Add parameter ID-FORMAT.
3115 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
3116 include in call to file name handler and call to
3117 directory_files_internal. Update Docstring.
3118 (Fdirectory_files): Add dummy parameter in call to
3119 directory_files_internal.
3120 * lisp.h (Qinteger): Add.
3121 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
3122 (Ffile_attributes): Add parameter.
3123 * data.c (Qinteger): Export.
3124
3125 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
3126
3127 * fns.c (Freverse, Fnreverse): Doc fixes.
3128
3129 2003-11-19 Kim F. Storm <storm@cua.dk>
3130
3131 * xdisp.c (init_iterator): Initialize it->start to position
3132 before reseating (in case start position is invisible).
3133 (init_to_row_start): Set it->start to row-start.
3134 (redisplay_window): Accept optional_new_start if start position
3135 is invisible (in which case IT_CHARPOS overshoots PT).
3136 (display_line): Setup row->start from it->start (rather than
3137 it->current which is wrong if first char on line is invisible).
3138 When done, reseat it->start to it->current (= start of next row).
3139 (expose_area): Fix exposure of text area when first char (e.g. TAB)
3140 is only partially visible.
3141
3142 * dispextern.h (struct it): New member start.
3143
3144 2003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3145
3146 * alloc.c (make_float, Fcons): Clear the markbit at init time.
3147 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
3148 of block_index outside of the macro call.
3149 (Fgarbage_collect): Remove null code.
3150
3151 * m/amdx86-64.h: Don't redefine XPNTR.
3152
3153 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
3154 of VALMASK.
3155
3156 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
3157 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
3158 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
3159
3160 * lisp.h (VALMASK): Only define for non-union type.
3161 (MARKBIT): Remove.
3162 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
3163 (XTYPE): Define unconditionally.
3164 (XSETTYPE): Remove one more remnant.
3165 (EQ): Define differently for the union and non-union cases.
3166 (INTMASK): New bit mask.
3167 (struct Lisp_Marker): Move down to prepare for upcoming patch.
3168 (GC_EQ): Delegate to EQ.
3169
3170 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
3171
3172 2003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3173
3174 * xterm.c (x_window_to_scroll_bar): Move check of display to
3175 where window_id is compared.
3176
3177 2003-11-17 Kim F. Storm <storm@cua.dk>
3178
3179 * dispextern.h (struct it): New member first_vpos.
3180
3181 * xdisp.c (start_display): Set it->first_vpos.
3182 (try_window_id): Use first_vpos to start display in first _text_
3183 line if no reusable lines at start of window with header line.
3184
3185 2003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3186
3187 * w32fns.c (XPutPixel):
3188 * w32bdf.c (w32_init_bdf_font):
3189 * sunfns.c (sel_read):
3190 * process.c (Fmake_network_process):
3191 * frame.c (store_frame_param):
3192 * fontset.c (Fset_fontset_font):
3193 * emacs.c (shut_down_emacs):
3194 * ccl.c (ccl_driver): Remove period at end of error message.
3195
3196 * config.in: Regenerate.
3197
3198 * xfns.c (x_window_to_frame, x_any_window_to_frame)
3199 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
3200 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
3201 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
3202 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
3203
3204 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
3205
3206 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
3207 (XTmouse_position, handle_one_xevent): Pass Display* to
3208 x_window_to_scroll_bar.
3209 (x_window_to_scroll_bar): Take a Display* argument.
3210 Check that display for frame is equal to Display* argument.
3211 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
3212 x_display_info_for_display instead. Use Display in xev instead
3213 of GDK_DISPLAY.
3214 (x_dispatch_event): Call x_display_info_for_display.
3215 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
3216 (x_connection_closed): Call xg_display_close for GTK.
3217 (x_term_init): Call xg_display_open for additional displays.
3218 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
3219 for GTK.
3220
3221 * xmenu.c (single_menu_item, mouse_position_for_popup)
3222 (x_activate_menubar): Formatting adjustments.
3223
3224 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
3225 adjustments.
3226
3227 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
3228 (xg_display_close, xg_create_default_cursor)
3229 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
3230 handling.
3231 (xg_left_ptr_cursor): Remove.
3232 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
3233 cursor here.
3234 (xg_win_to_widget): Take Display* argument, call
3235 gdk_xid_table_lookup_for_display.
3236 (xg_create_frame_widgets, xg_get_file_name, create_menus)
3237 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
3238 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
3239 in FRAME_X_DISPLAY_INFO.
3240 (xg_get_scroll_id_for_window): Take Display* argument.
3241 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
3242 (xg_initialize): Remove xg_left_ptr_cursor.
3243
3244 * gtkutil.h: xg_get_scroll_id_for_window, xg_win_to_widget takes
3245 Display* argument also. Declare xg_display_open,
3246 xg_display_close, xg_create_default_cursor.
3247
3248 2003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3249
3250 * xterm.c (x_detect_focus_change): Do not change focus frame for
3251 Enter/LeaveNotify if the current focus frame has explicit focus.
3252
3253 2003-11-14 Kim F. Storm <storm@cua.dk>
3254
3255 * dispnew.c (update_text_area): Fix redisplay error when hscroll
3256 is active and first glyph is only partially visible.
3257
3258 2003-11-13 Kenichi Handa <handa@m17n.org>
3259
3260 * xdisp.c (select_frame_for_redisplay): New function.
3261 (redisplay_internal): Record also selected_frame for
3262 unwind_redisplay. Call select_frame_for_redisplay before
3263 redrawing each frame.
3264 (unwind_redisplay): Argument changed to a cons.
3265
3266 2003-11-12 Luc Teirlinck <teirllm@auburn.edu>
3267
3268 * fns.c (Fstring_to_multibyte): Doc fix.
3269
3270 2003-11-11 Kenichi Handa <handa@m17n.org>
3271
3272 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
3273
3274 2003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3275
3276 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
3277 program specified positions.
3278
3279 2003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3280
3281 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
3282
3283 2003-11-08 Kenichi Handa <handa@m17n.org>
3284
3285 * Makefile.in (lisp): Add kannada.el.
3286 (shortlisp): Likewise.
3287
3288 2003-11-07 Kenichi Handa <handa@m17n.org>
3289
3290 * coding.c (coding_allocate_composition_data):
3291 Reset coding->composing to COMPOSITION_NO.
3292 (coding_restore_composition): Detect invalid composition data.
3293 Give Fstring and Fvector a Lispy integer, not C int.
3294
3295 2003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
3296
3297 * floatfns.c (Flogb): Don't use VALMASK.
3298
3299 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
3300 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
3301
3302 * lisp.h (XINT): Move the cast to clarify what is going on.
3303 (GCTYPEMASK, XSETTYPE): Remove.
3304 (XGCTYPE): Make it an alias of XTYPE.
3305
3306 2003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3307
3308 * xterm.c (x_term_init): Fix formatting.
3309
3310 2003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3311
3312 * gtkutil.h: Declare xg_have_tear_offs, remove xg_keep_popup
3313 and xg_did_tearoff.
3314
3315 * gtkutil.c: Remove variable xg_did_tearoff.
3316 (xg_have_tear_offs): New function.
3317 (tearoff_remove): Just decrease xg_detached_menus.
3318 (tearoff_activate): Increase xg_detached_menus and call
3319 tearoff_remove when tearoff is removed.
3320 (xg_keep_popup): Remove function.
3321 (create_menus): Give add_tearoff_p as argument to recursive
3322 call to create_menus.
3323 (xg_create_widget): Use variables instead of multiple
3324 strcmp. Tell create_menus to create tear off only for
3325 menu bar menus.
3326 (xg_update_menubar): Change title for a detached menu also.
3327 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
3328 of deep_p.
3329 (xg_initialize): Initialize xg_detached_menus, remove
3330 initialization of xg_did_tearoff.
3331
3332 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
3333 xg_have_tear_offs returns non-zero.
3334 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
3335 call to xg_keep_popup.
3336
3337 2003-11-01 Andrew Choi <akochoi@shaw.ca>
3338
3339 * macterm.c (XTread_socket): Handle menubar selection and grow
3340 window only for mouseDown events.
3341
3342 2003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3343
3344 * xterm.c (x_term_init): For GTK part, increase x_initialized
3345 to check for more than one display. Use error instead of return 0.
3346
3347 2003-10-31 Andrew Choi <akochoi@shaw.ca>
3348
3349 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
3350 (copy_dysymtab): Call it.
3351
3352 2003-10-31 Luc Teirlinck <teirllm@auburn.edu>
3353
3354 * eval.c (Fdefvaralias): Doc fix.
3355
3356 2003-10-26 Luc Teirlinck <teirllm@auburn.edu>
3357
3358 * data.c (Fsetplist): Doc fix.
3359
3360 2003-10-14 Lute Kamstra <lute@gnu.org>
3361
3362 * window.c (Fset_window_fringes): Clarify docstring.
3363
3364 2003-10-14 Kim F. Storm <storm@cua.dk>
3365
3366 * window.c (Fset_window_margins): Simplify arg checking.
3367
3368 2003-10-13 Richard M. Stallman <rms@gnu.org>
3369
3370 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
3371 (print_partial_compiled_pattern): Replace assert with a printout.
3372 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
3373
3374 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
3375
3376 * window.c (Fset_window_margins): Allow only integers as args.
3377 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
3378 Doc fixes.
3379
3380 2003-10-13 Lute Kamstra <lute@gnu.org>
3381
3382 * window.c (Fset_window_fringes): Elaborate docstring.
3383
3384 2003-10-12 Andrew Choi <akochoi@shaw.ca>
3385
3386 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
3387
3388 * s/darwin.h (GC_MARK_STACK): Define.
3389
3390 2003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3391
3392 * window.c (shrink_windows): New function.
3393 (size_window): Call shrink_windows to calculate window sizes when
3394 shrinking frame with more than one window.
3395
3396 2003-10-12 Kim F. Storm <storm@cua.dk>
3397
3398 * xdisp.c (compute_fringe_widths): Doc fix.
3399
3400 2003-10-08 Kenichi Handa <handa@m17n.org>
3401
3402 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
3403
3404 2003-10-07 Kenichi Handa <handa@m17n.org>
3405
3406 * coding.c (Qcoding_system_define_form): New variable.
3407 (syms_of_coding): Intern and staticpro it.
3408 (Fcheck_coding_system): Try to autoload the definition of
3409 CODING-SYSTEM.
3410
3411 2003-10-05 Luc Teirlinck <teirllm@auburn.edu>
3412
3413 * fns.c (Frequire): Doc fix.
3414
3415 2003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3416
3417 * xfns.c (Fx_send_client_event): New function as a base for
3418 manipulating extended window manager hints.
3419 (Fx_send_client_event): Remove unused variable s.
3420
3421 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
3422 that function is removed.
3423
3424 * xterm.c (x_set_offset): Use move_offset_left/top instead of
3425 x/y_pixels_outer_diff.
3426 (x_check_expected_move): Calculate move_offset_left/top.
3427
3428 * xterm.h (struct x_output): New members: move_offset_top/left.
3429
3430 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
3431 call x_set_offset directly.
3432
3433 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
3434
3435 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
3436
3437 * xterm.c (x_delete_display): Free font names and font_encoder
3438 in dpyinfo->font_table.
3439
3440 * xfns.c (Fx_close_connection): Only call XFreeFont here.
3441 Move xfree of font names to x_delete_display.
3442
3443 * xterm.h (struct x_display_info): New member, wm_type.
3444 (struct x_output): New members, expected_top/left and
3445 check_expected_move.
3446
3447 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
3448 is received.
3449 (handle_one_xevent): Rename x_check_expected_move from
3450 x_check_fullscreen_move.
3451 (x_set_offset): Only add WM decoration sizes to modified_top/left
3452 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
3453 (x_check_expected_move): Rename from x_check_fullscreen_move.
3454 Removed fullscreen specific code. Use check_expected_move,
3455 expected_left/top instead. Also, set wm_type.
3456 (x_term_init): Initialize wm_type to unknown.
3457
3458 * frame.c (x_fullscreen_move): Remove addition of WM decoration
3459 sizes to move_x/y.
3460
3461 2003-10-03 Kenichi Handa <handa@m17n.org>
3462
3463 * macterm.c (x_load_font): Clear all members of FONTP before start
3464 filling them.
3465
3466 2003-10-02 Kenichi Handa <handa@m17n.org>
3467
3468 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
3469 before calling find_ccl_program_func. Call find_ccl_program_func
3470 only when fontp->font_encoder is not NULL.
3471
3472 * xterm.c (x_load_font): Clear all members of FONTP before start
3473 filling them.
3474
3475 2003-10-03 John Paul Wallington <jpw@gnu.org>
3476
3477 * keymap.c (map_keymap): Don't abort when binding is a vector.
3478
3479 2003-10-02 Jason Rumney <jasonr@gnu.org>
3480
3481 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
3482 Sync dependencies with Makefile.in.
3483 (alloca.o): Remove.
3484
3485 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
3486 filling them.
3487
3488 * w32bdf.c (w32_load_bdf_font): Likewise.
3489
3490 2003-09-30 Richard M. Stallman <rms@gnu.org>
3491
3492 * term.c (set_tty_color_mode): Calculate current_mode_spec
3493 regardless of value of VAL.
3494
3495 * intervals.c (graft_intervals_into_buffer):
3496 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
3497 Handle over_used when splitting UNDER.
3498
3499 2003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3500
3501 * regex.c (regex_compile): Free the stack when returning from function.
3502
3503 2003-09-28 Kenichi Handa <handa@m17n.org>
3504
3505 * fontset.c (Finternal_char_font): Change return value to
3506 cons (FONT-NAME . GLYPH-CODE).
3507
3508 2003-09-28 Eli Zaretskii <eliz@gnu.org>
3509
3510 * term.c (tty_setup_colors): Treat any negative argument as -1.
3511
3512 2003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
3513
3514 * process.c (send_process): Delete unused temp_buf.
3515
3516 2003-09-26 Dave Love <fx@gnu.org>
3517
3518 * xterm.c (x_bitmap_mask): Declare.
3519
3520 2003-09-25 Dave Love <fx@gnu.org>
3521
3522 * Makefile.in (fns.o): Depend on md5.h.
3523
3524 2003-09-25 Kim F. Storm <storm@cua.dk>
3525
3526 * window.c (set_window_buffer): Fix redisplay problems when
3527 switching between buffers with different display margin widths.
3528
3529 2003-09-23 Kim F. Storm <storm@cua.dk>
3530
3531 * process.c (set_socket_option): Fix :bindtodevice option.
3532 (Fset_network_process_option): Update process contact list when
3533 setting option succeeds.
3534 (Fmake_network_process): Doc fix.
3535
3536 2003-09-23 Dave Love <fx@gnu.org>
3537
3538 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
3539
3540 2003-09-22 Eli Zaretskii <eliz@gnu.org>
3541
3542 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
3543 color mode is an integer number (it could be -1).
3544
3545 2003-09-22 Richard M. Stallman <rms@gnu.org>
3546
3547 * intervals.c (graft_intervals_into_buffer): Correct the main loop
3548 in the case where OVER is longer than UNDER.
3549
3550 2003-09-22 Masatake YAMATO <jet@gyve.org>
3551
3552 * window.c (Fset_window_scroll_bars): Validate the value of
3553 `vertical_type'.
3554
3555 2003-09-21 Kim F. Storm <storm@cua.dk>
3556
3557 * frame.c (Vdefault_frame_scroll_bars): New variable.
3558 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
3559 (syms_of_frame): DEFVAR_LISP it, and initialize according to
3560 window-system default scroll bar position.
3561
3562 * window.c (Fwindow_scroll_bars): Doc fix.
3563
3564 2003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3565
3566 * xterm.c (x_set_offset): Take window manager decorations into account.
3567
3568 2003-09-19 Richard M. Stallman <rms@gnu.org>
3569
3570 * atimer.h: Don't include lisp.h.
3571 (P_): Define it here (as well as elsewhere).
3572
3573 * print.c (Fprin1_to_string): Move the PRINTPREPARE
3574 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
3575
3576 * data.c (Fvariable_binding_locus): New function.
3577 (syms_of_data): defsubr it.
3578 (Flocal_variable_p): Delete duplicate call to indirect_variable.
3579
3580 2003-09-18 Dave Love <fx@gnu.org>
3581
3582 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
3583
3584 * process.c (Fnetwork_interface_info): Fix type error.
3585 (Fnetwork_interface_list): Doc fix.
3586 (read_process_output, read_process_output): Delete unused var.
3587
3588 2003-09-17 Kim F. Storm <storm@cua.dk>
3589
3590 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
3591 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
3592 (Fnetwork_interface_info): Check that ifreq struct has required
3593 fields before accessing them; this requires that those fields are
3594 defined as macros, which may be too restrictive on some platforms,
3595 but it is better than failing on other platforms.
3596 (syms_of_process): Only defsubr above fns when included.
3597
3598 2003-09-17 Dave Love <fx@gnu.org>
3599
3600 * unexalpha.c: Don't include varargs.h.
3601
3602 2003-09-17 Kim F. Storm <storm@cua.dk>
3603
3604 * process.c (Fset_process_sentinel): Add sentinel to childp plist
3605 for network process.
3606 (socket_options): Add `:' prefix to option names. Add optbit field.
3607 (set_socket_option): Remove no_error arg and special handling of s < 0.
3608 Return 1<<optbit for known option, 0 for unknown.
3609 Do not interpret 0 as false for boolean option (only nil).
3610 Pass failed option and value to report_file_error.
3611 (Fset_network_process_options): Replace by Fset_network_process_option.
3612 (Fset_network_process_option): New function to set just one option.
3613 (Fmake_network_process): Allow :coding arg to be a cons.
3614 Allow :server arg to be an integer specifying backlog size.
3615 Remove :options arg, and allow options to be specified directly
3616 as :KEY, VALUE pairs. Parse these options before binding socket.
3617 As before, :reuseaddr t is default for a server process, but this
3618 can now be disabled by specifying :reuseaddr nil.
3619 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
3620 (init_process): Availability of network options is now checked with
3621 simpler syntax (featurep 'make-network-process :OPTION); use loop to
3622 setup features.
3623 (syms_of_process): Fix defsubr's for the replaced functions.
3624
3625 2003-09-16 Dave Love <fx@gnu.org>
3626
3627 * Makefile.in: Depend on coding.h.
3628
3629 2003-09-14 Kim F. Storm <storm@cua.dk>
3630
3631 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
3632 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
3633 (syms_of_process): Defsubr them.
3634
3635 * config.in: Regenerate.
3636
3637 2003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3638
3639 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
3640 * m/news-r6.h (XUNMARK): Remove.
3641 * m/mips.h (XUNMARK): Remove.
3642 * m/mips-siemens.h (XUNMARK): Remove.
3643 * m/iris4d.h (XUNMARK): Remove.
3644 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
3645
3646 2003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3647
3648 * lisp.h (VALBITS): Don't remove 1 for the markbit.
3649 (union Lisp_Object): Use unsigned int for types. Remove markbit.
3650 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
3651 (XTYPE): Use unsigned right-shift.
3652 (XMARKBIT, XMARK, XUNMARK): Remove.
3653
3654 * alloc.c (init_intervals, init_symbol, init_marker):
3655 Don't preallocate anything.
3656 (Fgarbage_collect, mark_object): Ignore the markbit.
3657
3658 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
3659
3660 2003-09-08 Lute Kamstra <lute@gnu.org>
3661
3662 * xdisp.c (pint2hrstr): New function.
3663 (decode_mode_spec): Add `%i' and `%I' specs.
3664 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
3665 for `mode-line-format'.
3666
3667 2003-09-07 Andreas Schwab <schwab@suse.de>
3668
3669 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
3670 avoid warning.
3671
3672 2003-09-07 Eli Zaretskii <eliz@gnu.org>
3673
3674 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
3675
3676 2003-09-03 Kim F. Storm <storm@cua.dk>
3677
3678 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
3679 change (superseded by 2002-08-30 change); the default blink-off
3680 cursor is now again "no cursor".
3681
3682 2003-09-01 Jason Rumney <jasonr@gnu.org>
3683
3684 * makefile.w32-in (alloca.o): Remove.
3685 (coding.o): Depend on intervals.h
3686 (emacs.o, bytecode.o): Depend on window.h
3687
3688 2003-09-01 Dave Love <fx@gnu.org>
3689
3690 * Makefile.in (alloca.o): Remove commands.
3691 (coding.o): Depend on intervals.h composite.h window.h.
3692 (emacs.o): Depend on window.h keyboard.h keymap.h.
3693 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
3694 (bytecode.o): Depend on window.h.
3695
3696 2003-08-31 Jason Rumney <jasonr@gnu.org>
3697
3698 * w32term.c (w32_per_char_metric): Allow cached metrics to be
3699 returned even when font_type is unknown.
3700
3701 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
3702
3703 2003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3704
3705 * xterm.c (x_term_init): Initialize new fields in x_display_info.
3706
3707 * xterm.h (struct x_display_info): Add red/green/blue_bits and
3708 *_offset.
3709
3710 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
3711 calculate pixel value.
3712
3713 2003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
3714
3715 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
3716 Don't tell redisplay display is accurate when it's actually been
3717 paused for pending input.
3718
3719 2003-08-29 Richard M. Stallman <rms@gnu.org>
3720
3721 * dispnew.c (adjust_glyph_matrix): Call window_box
3722 whenever W is nonzero.
3723
3724 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
3725 (Fkill_local_variable, Fmake_variable_frame_local)
3726 (Flocal_variable_p, Flocal_variable_if_set_p):
3727 Use indirect_variable to trace thru variable aliases.
3728
3729 * config.in: Updated.
3730
3731 * callint.c (Fcall_interactively): Save and restore
3732 Vthis_command, Vthis_original_command, real_this_command,
3733 and current_kboard->Vlast_command.
3734
3735 * abbrev.c (Fexpand_abbrev): Insert before deleting.
3736
3737 2003-08-29 Gerd Moellmann <gerd@gnu.org>
3738
3739 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
3740
3741 2003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
3742
3743 * coding.c (decode_coding_iso2022): Initialize local variable c2.
3744 (decode_coding_sjis_big5): Likewise.
3745
3746 2003-08-27 Jason Rumney <jasonr@gnu.org>
3747
3748 * w32.c (sys_pipe): Protect against file descriptor overflow.
3749
3750 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
3751
3752 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
3753
3754 2003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
3755
3756 * xfns.c (Vgtk_version_string): New variable.
3757 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
3758
3759 2003-08-24 Eli Zaretskii <eliz@gnu.org>
3760
3761 * term.c (term_init): Remove `const' from buffer_size's declaration.
3762
3763 * Makefile.in (msdos.o): Depend on intervals.h.
3764
3765 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
3766
3767 2003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3768
3769 * xterm.h (struct x_display_info): New fields: client_leader_window
3770 and Xatom_wm_client_leader.
3771
3772 * xterm.c (x_initialize): Move call to x_session_initialize to ...
3773 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
3774
3775 * xsmfns.c (create_client_leader_window): New function.
3776 (x_session_initialize): Call create_client_leader_window, take
3777 dpyinfo as argument.
3778
3779 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
3780
3781 * Makefile.in (xsmfns.o): Add more depenedencies.
3782
3783 2003-08-21 Dave Love <fx@gnu.org>
3784
3785 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
3786
3787 2003-08-21 Kenichi Handa <handa@m17n.org>
3788
3789 * term.c (term_init): Fix previous change; don't rely on the
3790 length of `buffer' if TERMINFO is defined.
3791
3792 2003-08-20 Dave Love <fx@gnu.org>
3793
3794 * atimer.h: Include lisp.h.
3795
3796 * lisp.h (EMACS_LISP_H): New.
3797 (popup_activated_flag): Don't declare.
3798
3799 * alloca.c: Some merging with gnulib. Change logic and doc
3800 concerning (x)malloc/(x)free -- no longer Emacs-specific.
3801 [DO_BLOCK_INPUT]: Don't include lisp.h.
3802 (xmalloc, xfree): Declare.
3803 (malloc): Don't declare.
3804
3805 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
3806 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
3807 atimer.h, blockinput.h.
3808
3809 * alloc.c (lisp_align_malloc): Change type of `aligned'.
3810
3811 * alloca.s: Removed.
3812
3813 2003-08-19 Gerd Moellmann <gerd@gnu.org>
3814
3815 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
3816 use -lncurses.
3817
3818 * term.c (term_init): Use a buffer of size 4096 for tgetent since
3819 FreeBSD returns something longer than 2044. Abort if the end of
3820 the buffer is overwritten.
3821
3822 2003-08-19 Miles Bader <miles@gnu.org>
3823
3824 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
3825
3826 2003-08-19 Gerd Moellmann <gerd@gnu.org>
3827
3828 * alloc.c (lisp_align_malloc): Check for memory full when
3829 allocating ablocks, which also avoids freeing a pointer into an
3830 ablocks structure.
3831
3832 * puresize.h (BASE_PURESIZE): Increase to 1100000.
3833
3834 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
3835
3836 2003-08-16 Richard M. Stallman <rms@gnu.org>
3837
3838 * editfns.c (Fencode_time): Doc fix.
3839
3840 2003-08-16 David Ponce <david@dponce.com>
3841
3842 * fileio.c (Fwrite_region): Fix conditional expression to issue
3843 the right message.
3844
3845 2003-08-16 Juri Linkov <juri@jurta.org> (tiny change)
3846
3847 * syntax.c (Fforward_word): Argument changed to optional.
3848 Set default value to 1.
3849
3850 2003-08-15 Kenichi Handa <handa@m17n.org>
3851
3852 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
3853 what autoscaled.
3854 (best_matching_font): Once we find a better scalable font, set
3855 non_scalable_has_exact_height_p to 1.
3856 (try_font_list): Call try_alternative_families to try any family
3857 with the given registry.
3858
3859 2003-08-09 Andreas Schwab <schwab@suse.de>
3860
3861 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
3862
3863 * print.c (print_string): Fix printing of multibyte string with
3864 nontrivial printcharfun.
3865
3866 2003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3867
3868 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
3869
3870 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
3871
3872 2003-07-31 Kenichi Handa <handa@m17n.org>
3873
3874 * process.c (read_process_output): Return the actually read bytes
3875 instead of the result of decoding.
3876
3877 2003-07-31 Kenichi Handa <handa@m17n.org>
3878
3879 * xterm.h (struct x_bitmap_record): New member have_mask.
3880
3881 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
3882 to 0.
3883 (x_create_bitmap_from_file): Likewise.
3884 (x_destroy_bitmap): Check have_mask member before freeing a mask.
3885 (x_destroy_all_bitmaps): Likewise.
3886 (x_create_bitmap_mask): Set have_mask member to 1.
3887
3888 2003-07-30 Richard M. Stallman <rms@gnu.org>
3889
3890 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
3891
3892 2003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3893
3894 * gtkutil.c (xg_mark_data): Update calls to mark_object.
3895
3896 2003-07-29 Richard M. Stallman <rms@gnu.org>
3897
3898 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
3899 Conditionalize XIM code on HAVE_XIM.
3900
3901 * fns.c (Fclear_string): New function.
3902 (syms_of_fns): defsubr it.
3903
3904 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
3905
3906 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
3907
3908 2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
3909
3910 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
3911
3912 * buffer.c (delete_all_overlays): New function.
3913 * buffer.h (delete_all_overlays): Declare.
3914 * coding.c (run_pre_post_conversion_on_str):
3915 * print.c (temp_output_buffer_setup):
3916 * fileio.c (Finsert_file_contents):
3917 * minibuf.c (get_minibuffer): Use it.
3918
3919 2003-07-22 Andrew Choi <akochoi@shaw.ca>
3920
3921 * unexmacosx.c (unexec_regions_sort_compare):
3922 (unexec_regions_merge): New functions. Sort and merge unexec
3923 regions before dumping them.
3924
3925 2003-07-22 Dave Love <fx@gnu.org>
3926
3927 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
3928
3929 2003-07-21 Stefan Monnier <monnier@cs.yale.edu>
3930
3931 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
3932 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
3933 MARKBIT as the gcmarkbit for strings.
3934
3935 2003-07-21 Richard M. Stallman <rms@gnu.org>
3936
3937 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
3938
3939 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
3940 (syms_of_fns): Corresponding change.
3941
3942 * alloc.c (syms_of_alloc): Doc fixes.
3943
3944 2003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
3945
3946 * s/netbsd.h: Use -Wl syntax.
3947
3948 2003-07-17 Richard M. Stallman <rms@gnu.org>
3949
3950 * xterm.c (xim_initialize): Redo 6/24 change.
3951
3952 2003-07-15 Stefan Monnier <monnier@cs.yale.edu>
3953
3954 * buffer.c (copy_overlays): Use EMACS_INT for positions.
3955 (Fswitch_to_buffer): Don't signal an error when switching to the same
3956 buffer in a dedicated window.
3957
3958 * alloc.c: Use bitmaps for cons, as was done for floats.
3959 (init_float, init_cons): Let the normal code allocate the first block.
3960 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
3961 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
3962 New macros.
3963 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
3964 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
3965 (live_cons_p): Check the pointer is not past the `conses' array.
3966 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
3967 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
3968 (survives_gc_p): Use CONS_MARKED_P and simplify.
3969 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
3970
3971 2003-07-13 Paul Eggert <eggert@twinsun.com>
3972
3973 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
3974 puts it into BSS instead, at least on Solaris 8 and 9.
3975 This is a valid optimization, and it may occur on other platforms,
3976 so Emacs should not assume that initializing a static variable to
3977 zero puts it into data.
3978 * alloc.c (pure, staticvec):
3979 Initialize these arrays to nonzero, so that they're not
3980 put into BSS by that optimization.
3981
3982 2003-07-13 Stefan Monnier <monnier@cs.yale.edu>
3983
3984 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
3985 (lisp_align_malloc): Use posix_memalign is available.
3986 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
3987 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
3988 for consistency. Update users.
3989
3990 2003-07-13 Richard M. Stallman <rms@gnu.org>
3991
3992 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
3993
3994 2003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
3995
3996 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
3997 and use the Gtk+ function gtk_window_icon_from_file if available.
3998
3999 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
4000 handle mask of bitmaps.
4001 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
4002 mask property.
4003 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
4004
4005 * xterm.h (xg_set_icon): New function.
4006
4007 2003-07-12 Paul Eggert <eggert@twinsun.com>
4008
4009 * unexelf.c (unexec): Consider a section to precede the .bss
4010 section if its addresses overlap that of .bss.
4011
4012 2003-07-12 Richard M. Stallman <rms@gnu.org>
4013
4014 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
4015
4016 * config.in (HAVE_CRTIN): Add #undef.
4017 (INLINE): Really inline only if OPTIMIZE is defined.
4018
4019 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
4020 END_FILES_1.
4021 (START_FILES_1, END_FILES_1): New macros (conditional).
4022 (LD_SWITCH_SYSTEM_TEMACS): Define.
4023
4024 * s/openbsd.h: Don't include bsd4-3.h.
4025 (TERMINFO): Define.
4026 (LIBS_TERMCAP): Define.
4027 (LD_SWITCH_SYSTEM): Define (two definitions).
4028
4029 * xfns.c: Include libpng/png.h instead of png.h.
4030
4031 2003-07-11 Andreas Schwab <schwab@suse.de>
4032
4033 * buffer.c (modify_overlay): Update prototype.
4034 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
4035 Likewise.
4036
4037 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
4038
4039 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
4040 (struct interval): Move to intervals.h.
4041 (struct Lisp_Marker): Use EMACS_INT for position info.
4042 (forward_point): Remove prototype of defunct function.
4043 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
4044 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
4045 (syms_of_textprop, set_text_properties): Remove prototypes that are
4046 already in intervals.h.
4047
4048 * intervals.h (struct interval): Move from lisp.h.
4049 Use EMACS_INT for position and size info.
4050
4051 * coding.c: Include intervals.h for Fset_text_properties.
4052
4053 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
4054 position and length information.
4055
4056 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
4057
4058 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
4059 position and length information.
4060
4061 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
4062
4063 Change overlays_after and overlays_before so the overlays themselves
4064 are linked into lists, rather than using cons cells. After all each
4065 Lisp_Misc already occupies 5 words, so we can add a `next' field to
4066 Lisp_Overlay for free and save up one cons cell per overlay (not
4067 to mention one indirection when traversing the list of overlay).
4068
4069 * lisp.h (struct Lisp_Overlay): New field `next'.
4070
4071 * buffer.h (struct buffer): Change overlays_before and overlays_after
4072 from Lisp lists of overlays to pointers to overlays.
4073
4074 * buffer.c (overlay_strings, recenter_overlay_lists):
4075 Fix typo in eassert in last commit.
4076 (unchain_overlay): New function.
4077 (add_overlay_mod_hooklist): Use AREF.
4078 (copy_overlays, reset_buffer, overlays_at, overlays_in)
4079 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
4080 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
4081 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
4082 (report_overlay_modification, evaporate_overlays, init_buffer_once):
4083 Adjust to new type of overlays_(before|after).
4084
4085 * alloc.c (mark_object): Mark the new `next' field of overlays.
4086 (mark_buffer): Manually mark the overlays_(after|before) fields.
4087
4088 * coding.c (run_pre_post_conversion_on_str):
4089 * editfns.c (overlays_around):
4090 * xdisp.c (load_overlay_strings):
4091 * fileio.c (Finsert_file_contents):
4092 * indent.c (current_column):
4093 * insdel.c (signal_before_change, signal_after_change):
4094 * intervals.c (set_point_both):
4095 * print.c (temp_output_buffer_setup): Use new type for
4096 overlays_(before|after).
4097
4098 2003-07-08 Stefan Monnier <monnier@cs.yale.edu>
4099
4100 * buffer.c (report_overlay_modification): Don't run hooks while
4101 traversing the list of overlays.
4102
4103 * buffer.h (struct buffer): Use an int for overlay_center.
4104 (overlays_at, evaporate_overlays, recenter_overlay_lists)
4105 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
4106
4107 * buffer.c (reset_buffer, recenter_overlay_lists)
4108 (adjust_overlays_for_insert, adjust_overlays_for_delete)
4109 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
4110 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
4111 (overlays_at, evaporate_overlays, recenter_overlay_lists)
4112 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
4113
4114 * xdisp.c (fast_find_position): Remove unused var.
4115
4116 * cmds.c (Qexpand_abbrev): New sym.
4117 (syms_of_cmds): Initialize it.
4118 (internal_self_insert): Use it to call expand-abbrev.
4119
4120 2003-07-09 Kim F. Storm <storm@cua.dk>
4121
4122 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
4123 was configured with --without-xim.
4124 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
4125
4126 2003-07-07 Richard M. Stallman <rms@gnu.org>
4127
4128 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
4129
4130 * alloc.c (Fgarbage_collect): Doc fix.
4131
4132 2003-07-07 Nozomu Ando <nand@mac.com> (tiny change)
4133
4134 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
4135
4136 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
4137
4138 * minibuf.c (read_minibuf): UNGCPRO before returning.
4139 (Ftry_completion, Fall_completions): Doc fix.
4140
4141 * alloc.c (live_float_p): Check that p is not past the `floats' array,
4142 now that `floats' is not the last element of the struct any more.
4143
4144 2003-07-06 Jason Rumney <jasonr@gnu.org>
4145
4146 * w32term.h (ClipboardSequence_Proc): New type.
4147
4148 * w32fns.c (clipboard_sequence_fn): New variable.
4149 (globals_of_w32fns): Initialize it.
4150
4151 * w32select.c (last_clipboard_sequence_number): New variable.
4152 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
4153 number if possible.
4154
4155 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
4156
4157 * m/amdx86-64.h (MARKBIT):
4158 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
4159 MARKBIT and ARRAY_MARK_FLAG any more.
4160
4161 * m/hp800.h (XSETMARKBIT):
4162 * m/sr2k.h (XSETMARKBIT):
4163 * lisp.h (XSETMARKBIT): Remove unused macro.
4164
4165 * lisp.h (mark_object): Change prototype.
4166
4167 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
4168 (last_marked): Change accordingly.
4169 (mark_interval, mark_maybe_object, mark_maybe_pointer)
4170 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
4171 (mark_buffer): Update calls to mark_object.
4172
4173 * bytecode.c (mark_byte_stack):
4174 * fns.c (sweep_weak_table):
4175 * keyboard.c (mark_kboards): Update calls to mark_object.
4176
4177 2003-07-06 Jason Rumney <jasonr@gnu.org>
4178
4179 * alloc.c (struct ablock): Only include padding when there is some.
4180
4181 2003-07-04 Stefan Monnier <monnier@cs.yale.edu>
4182
4183 * alloc.c (ALIGN): Add casts to simplify usage.
4184 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
4185 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
4186 (struct ablock, struct ablocks): New types.
4187 (free_ablock): New global var.
4188 (lisp_align_malloc, lisp_align_free): New functions.
4189 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
4190 (struct float_block): Reorder and add gcmarkbits.
4191 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
4192 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
4193 (init_float, make_float): Use lisp_align_malloc.
4194 (free_float, live_float_p): Don't use `type' any more.
4195 (make_float): Use FLOAT_UNMARK to access to mark bit.
4196 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
4197 Use FLOAT_MARKED_P to access the mark bit.
4198 (pure_alloc): Simplify use of ALIGN.
4199 (mark_object): Use FLOAT_MARK to access the mark bit.
4200 (gc_sweep): Use new macros to access the float's mark bit.
4201 (init_alloc_once): Init free_ablock.
4202
4203 * lisp.h (struct Lisp_Float): Remove unused field `type'.
4204
4205 2003-06-27 Stefan Monnier <monnier@cs.yale.edu>
4206
4207 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
4208 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
4209 (allocate_buffer): Move.
4210 (string_bytes): Don't mask markbit of `size_byte'.
4211 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
4212 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
4213 Use the `size' field of buffers (rather than the `name' field) for
4214 the mark bit, as is done for all other vectorlike objects.
4215 Use the new macros to access the mark bit of vectorlike objects.
4216
4217 2003-06-26 Richard M. Stallman <rms@gnu.org>
4218
4219 * puresize.h (BASE_PURESIZE): Increment base size.
4220
4221 * xdisp.c (fast_find_position): Enable Gerd's new definition.
4222
4223 * xterm.c (xim_initialize): Undo previous change.
4224
4225 2003-06-26 Stefan Monnier <monnier@cs.yale.edu>
4226
4227 * alloc.c (survives_gc_p): Simplify.
4228
4229 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
4230
4231 * window.c (Fset_window_dedicated_p): Simplify.
4232 (display_buffer_1): Don't raise the win from which minibuf was entered.
4233 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
4234 (Fminibuffer_selected_window): Simplify.
4235
4236 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
4237
4238 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
4239 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
4240
4241 * insdel.c (check_markers, adjust_markers_for_delete)
4242 (adjust_markers_for_insert, adjust_markers_for_replace)
4243 (prepare_to_modify_buffer, RESTORE_VALUE):
4244 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
4245 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
4246 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
4247 * alloc.c (Fmake_marker, free_marker, gc_sweep):
4248 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
4249 * editfns.c (save_excursion_restore, transpose_markers):
4250 * window.c (delete_window):
4251 * xdisp.c (message_dolog): Update for new types.
4252
4253 2003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4254
4255 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
4256 (realize_default_face): Use default_face_done_p for the force_p
4257 argument to set_lface_from_font_name. Set default_face_done_p to one.
4258
4259 * frame.c (make_frame): Initialize default_face_done_p.
4260
4261 * frame.h (struct frame): Add default_face_done_p.
4262
4263 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
4264 will be defined.
4265
4266 2003-06-25 Stefan Monnier <monnier@cs.yale.edu>
4267
4268 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
4269 Initialize the new field `gcmarkbit'.
4270 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
4271 (mark_interval_tree): Don't mark the tree separately from the nodes.
4272 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
4273 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
4274 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
4275
4276 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
4277 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
4278 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
4279 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
4280 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
4281
4282 2003-06-24 Dave Love <fx@gnu.org>
4283
4284 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
4285
4286 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
4287 from gnulib.
4288
4289 2003-06-21 Richard M. Stallman <rms@gnu.org>
4290
4291 * fileio.c (Fwrite_region): Alternate messages
4292 for append and partial write.
4293
4294 * keyboard.c (read_key_sequence): When converting upcase fn key to
4295 downcase, update fkey and keytran so `backspace' gets translated.
4296
4297 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
4298
4299 * process.c (wait_reading_process_input): Don't signal SIGIO
4300 in batch mode.
4301
4302 2003-06-17 Kenichi Handa <handa@m17n.org>
4303
4304 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
4305 composite.h.
4306
4307 * xselect.c: Don't include charset.h, coding.h, composite.h.
4308 (Qforeign_selection): New variable.
4309 (syms_of_xselect): Intern and static it.
4310 (selection_data_to_lisp_data): Return a unibyte string made from
4311 data with `foreign-selection' text property.
4312
4313 2003-06-15 Stefan Monnier <monnier@cs.yale.edu>
4314
4315 * termhooks.h (EVENT_INIT): New macro.
4316
4317 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
4318
4319 * alloc.c (mark_kboards): Move to keyboard.c.
4320
4321 * keyboard.c (record_asynch_buffer_change, read_avail_input):
4322 * xterm.c (x_dispatch_event):
4323 * xmenu.c (find_and_call_menu_selection):
4324 * xdisp.c (handle_tool_bar_click):
4325 * w32menu.c (menubar_selection_callback):
4326 * sysdep.c (kbd_input_ast, read_input_waiting):
4327 * msdos.c (dos_rawgetc):
4328 * macterm.c (mac_check_for_quit_char):
4329 * macmenu.c (menubar_selection_callback):
4330 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
4331 data to kbd_buffer_store_event.
4332
4333 2003-06-15 Kim F. Storm <storm@cua.dk>
4334
4335 * xdisp.c (x_fix_overlapping_area): Always use area relative X
4336 to fix redisplay problem with tall characters (such as \e,AC\e(B).
4337
4338 2003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
4339
4340 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
4341
4342 2003-06-12 Kenichi Handa <handa@m17n.org>
4343
4344 * fileio.c (Fwrite_region): Save and restore restriction.
4345
4346 2003-06-12 Dave Love <fx@gnu.org>
4347
4348 * alloca.c (alloca): Declare arg as size_t.
4349
4350 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
4351 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
4352
4353 2003-06-11 Dave Love <fx@gnu.org>
4354
4355 * search.c (shrink_regexp_cache): Use xrealloc.
4356 (syms_of_search): Use xmalloc.
4357
4358 2003-06-10 Kim F. Storm <storm@cua.dk>
4359
4360 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
4361 Adjust phys_cursor.x to be relative to window box, rather than
4362 text area before checking -- to ensure cursor is redrawn when
4363 exposing window.
4364 Note: This also fixes a similar (older) bug if display margins
4365 are present.
4366
4367 2003-06-06 Kenichi Handa <handa@m17n.org>
4368
4369 * coding.c (encoding_buffer_size): If coding->type is
4370 coding_type_ccl, double magnification on CRLF encoding.
4371
4372 2003-06-06 Jason Rumney <jasonr@gnu.org>
4373
4374 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
4375 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
4376
4377 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
4378 Mac too.
4379
4380 2003-06-05 Dave Love <fx@gnu.org>
4381
4382 * strftime.c: Merge changes from gnulib.
4383
4384 * mktime.c (__mktime_internal): Merge changes from gnulib
4385 involving year 69 and dst2.
4386
4387 Changes to merge with gnulib version and be consistent with the
4388 autoconf test:
4389
4390 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
4391 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
4392 [HAVE_LOCALE_H]: Include locale.h.
4393 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
4394
4395 2003-06-05 Kim F. Storm <storm@cua.dk>
4396
4397 * window.c (coordinates_in_window): Convert X and Y to window
4398 relative coordinates inside mode-line and header-line parts.
4399 Convert X and Y to margin area relative coordinates inside left
4400 and right display margin parts.
4401
4402 2003-06-05 Jason Rumney <jasonr@gnu.org>
4403
4404 * w32fns.c (add_system_logical_colors_to_map): New function.
4405 (Fx_open_connection): Use it.
4406
4407 2003-06-04 Stefan Monnier <monnier@cs.yale.edu>
4408
4409 * process.c (allocate_pty): Revert part of the previous patch.
4410 (Faccept_process_output): Simplify.
4411
4412 2003-06-04 Jason Rumney <jasonr@gnu.org>
4413
4414 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
4415
4416 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
4417 (lispy_mouse_wheel_names): Remove.
4418 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
4419 Always define drag_and_drop_syms.
4420
4421 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
4422 WHEEL_EVENT events.
4423
4424 2003-06-03 Stefan Monnier <monnier@cs.yale.edu>
4425
4426 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
4427
4428 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
4429
4430 2003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4431
4432 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
4433 menu item label.
4434
4435 2003-06-03 Richard M. Stallman <rms@gnu.org>
4436
4437 * window.c (Fwindow_edges): Doc fix.
4438 (Fwindow_pixel_edges, Fwindow_inside_edges)
4439 (Fwindow_inside_pixel_edges): New functions.
4440 (syms_of_window): defsubr them.
4441
4442 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
4443 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
4444
4445 2003-06-02 Stefan Monnier <monnier@cs.yale.edu>
4446
4447 * dispnew.c (Fsit_for): Don't lie about the number of args.
4448
4449 2003-06-02 Dave Love <fx@gnu.org>
4450
4451 * callproc.c: Use HAVE_FCNTL_H, not USG5.
4452 (syms_of_callproc) <process-environment>: Doc fix.
4453
4454 * doc.c: Use HAVE_FCNTL_H, not USG5.
4455
4456 * xfaces.c (font_rescale_ratio): Fix for K&R.
4457
4458 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
4459
4460 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
4461
4462 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
4463
4464 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
4465 (xg_create_frame_widgets): Use ENCODE_UTF_8.
4466
4467 * xterm.c (Qutf_8): Move to coding.c
4468
4469 * xmenu.c (ENCODE_MENU_STRING): New.
4470 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
4471 Use it.
4472
4473 * coding.h (ENCODE_UTF_8): New.
4474 (Qutf_8): Declare.
4475
4476 * coding.c (Qutf_8): New.
4477 (syms_of_coding): Intern it.
4478
4479 * fns.c: Doc fixes.
4480
4481 2003-06-02 Kenichi Handa <handa@m17n.org>
4482
4483 * buffer.c (Fset_buffer_multibyte): Fix previous change.
4484
4485 2003-06-01 Stefan Monnier <monnier@cs.yale.edu>
4486
4487 * lread.c (openp): Make sure STR is a string.
4488
4489 2003-06-01 David Ponce <david@dponce.com>
4490
4491 * termhooks.h (enum event_kind): Added new WHEEL_EVENT event.
4492 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
4493
4494 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
4495 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
4496 (discard_mouse_events): Discard WHEEL_EVENT events too.
4497 (lispy_wheel_names, wheel_syms): New.
4498 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
4499 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX
4500 defined.
4501 (make_lispy_event): Add WHEEL_EVENT handler.
4502
4503 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
4504 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
4505 WHEEL_EVENT events.
4506
4507 2003-05-31 John Paul Wallington <jpw@gnu.org>
4508
4509 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
4510 timer are in lisp/emacs-lisp.
4511
4512 2003-05-31 Kenichi Handa <handa@m17n.org>
4513
4514 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
4515 region when a buffer is changed to unibyte.
4516
4517 * charset.h (VALID_LEADING_CODE_P): New macro.
4518 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
4519
4520 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
4521 is nonzero, accept multibyte form of eight-bit-control chars.
4522 (decode_composition_emacs_mule): Likewise.
4523 (decode_coding_emacs_mule): Likewise.
4524 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
4525 multibyte form of eight-bit-control chars.
4526
4527 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
4528 (Finsert_file_contents): If coding-system-for-read is bound to
4529 Qauto_save_coding, use the coding system emacs-mule with special
4530 setting for recovering a file.
4531 (choose_write_coding_system): On auto saving, use the coding
4532 system emacs-mule with special setting for auto saving.
4533 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
4534
4535 2003-05-30 Kenichi Handa <handa@m17n.org>
4536
4537 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
4538 properly before calling ccl_driver.
4539
4540 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
4541
4542 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is
4543 nonzero.
4544 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
4545 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
4546
4547 2003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
4548
4549 * xfaces.c (realize_default_face): Do not abort if lface is
4550 non-existent - reverts change from 2003-05-19.
4551
4552 2003-05-29 Kenichi Handa <handa@m17n.org>
4553
4554 * coding.c (decode_coding_iso2022): Pay attention to the byte
4555 sequence of CTEXT extended segment, and retain those bytes as is.
4556
4557 2003-05-28 Kenichi Handa <handa@m17n.org>
4558
4559 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjusted for the name change
4560 of CODING_REPLACEMENT_CHARACTER.
4561 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
4562 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
4563 check this flag on encoding.
4564 (encode_coding_sjis_big5): Check
4565 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
4566 (Fset_terminal_coding_system_internal): Set
4567 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
4568 instead of setting CODING_FLAG_ISO_SAFE flag in
4569 terminal_coding.flags.
4570
4571 * coding.h (CODING_REPLACEMENT_CHARACTER): Renamed from
4572 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
4573 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
4574
4575 2003-05-28 Richard M. Stallman <rms@gnu.org>
4576
4577 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
4578
4579 * eval.c (unbind_to): Move init of this_binding to separate statement.
4580
4581 2003-05-28 Kim F. Storm <storm@cua.dk>
4582
4583 * xdisp.c (expose_window): Fix error in calculation of
4584 window relative coordinates of area to redisplay.
4585
4586 2003-05-27 Jason Rumney <jasonr@gnu.org>
4587
4588 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
4589
4590 2003-05-27 David Ponce <david@dponce.com>
4591
4592 Handle W32 mouse wheel events as mouse click events, like in X.
4593
4594 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
4595 MOUSE_WHEEL_EVENT anymore.
4596
4597 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
4598 Scrolling down/up the mouse wheel is respectively mapped to mouse
4599 button 4 and 5.
4600 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
4601 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
4602 WM_MOUSEWHEEL events.
4603
4604 2003-05-27 Andreas Schwab <schwab@suse.de>
4605
4606 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
4607
4608 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
4609 partially visible line.
4610
4611 * alloc.c (Fgarbage_collect): Fix last change.
4612
4613 2003-05-26 John Paul Wallington <jpw@gnu.org>
4614
4615 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
4616
4617 2003-05-25 Stefan Monnier <monnier@cs.yale.edu>
4618
4619 * window.c (Fset_window_buffer): Add type of `keep_margins'.
4620 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
4621
4622 * window.h (window_box_text_cols): Declare.
4623
4624 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
4625 (x_draw_vertical_border): Remove unused var `f'.
4626
4627 * xfaces.c (build_scalable_font_name): Remove `unused var
4628 pixel_size' warning.
4629
4630 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
4631
4632 * unexelf.c (unexec): Remove `unused var n' warning.
4633
4634 * strftime.c (my_strftime_localtime_r): Remove `defined but
4635 unused' warning.
4636
4637 * process.c (allocate_pty): Remove `unused var stb' and
4638 `cp might be used uninitialized' warnings.
4639
4640 * dispnew.c (mode_line_string): Remove unused var `f'.
4641
4642 * coding.c (find_safe_codings): Remove unused var `i'.
4643
4644 * bytecode.c (Fbyte_code): Remove `unused val' warning.
4645
4646 * buffer.c (Fkill_buffer): Remove unused var `list'.
4647
4648 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
4649
4650 2003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4651
4652 * frame.c (make_frame): Condition want_fullscreen with
4653 HAVE_WINDOW_SYSTEM.
4654
4655 2003-05-25 Juanma Barranquero <lektu@terra.es>
4656
4657 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
4658 (Fwindow_scroll_bars): Fix typo in docstring.
4659
4660 2003-05-24 Kim F. Storm <storm@cua.dk>
4661
4662 The following changes serve several purposes:
4663
4664 1) Swap the position of fringes and display margins in windows, i.e.
4665 the fringes are now displayed between the margins and the text area
4666 (by default).
4667
4668 2) Allow fringe and scroll bar parameters to be set per-buffer and
4669 per-window (like display margins). Such settings are now stored
4670 in window configurations, preserved when frames are resized, and
4671 copied when windows are split vertically or horizontally.
4672 Several bugs related to display margins have been fixed.
4673
4674 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
4675
4676 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
4677 rather than FRAME_WIDTH (FRAME_FONT (f)).
4678
4679 5) Introduce a consistent naming of variables, members and macros
4680 depending on whether their value is measured in pixels or in
4681 canonical columns/lines. Pixel dimensions are named *_width and
4682 *_height, while canonical columns/lines are named *_cols and
4683 *_lines. Pixel positions are named *_x and *_y, while column/line
4684 positions are named *_col and *_line.
4685
4686 6) Consolidate more of the X, W32, and MAC gui code by moving
4687 common data into struct frame, and generalize it for the non-gui
4688 case by using suitable defaults.
4689
4690 7) Cleanup and consolidate the macros controlling frame and window
4691 layout into frame.h and window.h, and generalize the use of the
4692 various window_box_* functions (enhanced to handle the new fringe
4693 position and the per-window fringe and scroll bar settings).
4694
4695 * frame.h (struct frame): Rename members height to text_lines,
4696 width to text_cols, window_height to total_lines, window_width to
4697 total_cols, new_height to new_text_lines, new_width to
4698 new_text_cols. All uses changed.
4699 (struct frame): New members which consolidate common members of
4700 x_output, w32_output, and mac_output structures: left_pos,
4701 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
4702 win_gravity, size_hint_flags, border_width, internal_border_width,
4703 line_height, fringe_cols, left_fringe_width, right_fringe_width,
4704 want_fullscreen. All uses changed.
4705 (struct frame): New member column_width contaning the canonical
4706 column width, analogue to line_height. All uses changed.
4707 (struct frame): Rename members scroll_bar_pixel_width to
4708 config_scroll_bar_width, and scroll_bar_cols to
4709 config_scroll_bar_cols. All uses changed.
4710 (struct frame): New member scroll_bar_actual_width which
4711 consolidates and renames the vertical_scroll_bar_extra member of
4712 x_output, w32_output, and mac_output structures. All uses changed.
4713 (FRAME_PIXEL_HEIGHT): Renamed from PIXEL_HEIGHT and moved
4714 from x/w32/macterm.h files. All uses changed. Also change code
4715 which referred to f->output_data...->pixel_height.
4716 (FRAME_PIXEL_WIDTH): Renamed from PIXEL_WIDTH and moved
4717 from x/w32/macterm.h files. All uses changed. Also change code
4718 which referred to f->output_data...->pixel_width.
4719 (FRAME_LINES): Renamed from FRAME_HEIGHT. All uses changed.
4720 Also change code which referred to f->height.
4721 (FRAME_COLS): Renamed from FRAME_WIDTH. All uses changed.
4722 Also change code which referred to f->width.
4723 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
4724 to update new_text_lines and new_text_cols members directly.
4725 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Renamed from
4726 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
4727 (FRAME_CONFIG_SCROLL_BAR_COLS): Renamed from
4728 FRAME_SCROLL_BAR_COLS. All uses changed.
4729 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
4730 Renamed from FRAME_LEFT_SCROLL_BAR_WIDTH and
4731 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
4732 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
4733 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
4734 (FRAME_TOTAL_COLS): Renamed from FRAME_WINDOW_WIDTH.
4735 (SET_FRAME_COLS): Renamed from SET_FRAME_WIDTH.
4736 (FRAME_TOTAL_COLS_ARG): Renamed from FRAME_WINDOW_WIDTH_ARG.
4737 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
4738 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
4739 (FRAME_LINE_HEIGHT): Renamed from CANON_Y_UNIT. Unconditionally
4740 return line_height member (it now has proper value also for
4741 non-window frames).
4742 (FRAME_COLUMN_WIDTH): Renamed from CANON_X_UNIT. Unconditionally
4743 return new column_width member (rather than the default font width).
4744 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
4745 (FRAME_RIGHT_FRINGE_WIDTH): Renamed from FRAME_X_... and moved
4746 from x/w32/macterm.h files. Unconditionally return corresponding
4747 member of frame structure (they now have proper values also for
4748 non-window frames).
4749 (FRAME_TOTAL_FRINGE_WIDTH): Renamed from FRAME_FRINGE_WIDTH.
4750 Calculate return value from left and right widths.
4751 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
4752 internal_border_width member (has proper value for non-window frame).
4753 (FRAME_PIXEL_X_FROM_CANON_X): Renamed from PIXEL_X_FROM_CANON_X.
4754 (FRAME_PIXEL_Y_FROM_CANON_Y): Renamed from PIXEL_Y_FROM_CANON_Y.
4755 (FRAME_CANON_X_FROM_PIXEL_X): Renamed from CANON_X_FROM_PIXEL_X.
4756 (FRAME_CANON_Y_FROM_PIXEL_Y): Renamed from CANON_Y_FROM_PIXEL_Y.
4757 (FRAME_LINE_TO_PIXEL_Y): Renamed from CHAR_TO_PIXEL_ROW,
4758 consolidated from xterm.h, macterm.h, and w32term.h.
4759 (FRAME_COL_TO_PIXEL_X): Renamed from CHAR_TO_PIXEL_COL,
4760 consolidated from xterm.h, macterm.h, and w32term.h.
4761 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Renamed from
4762 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
4763 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Renamed from
4764 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
4765 (FRAME_PIXEL_Y_TO_LINE): Renamed from PIXEL_TO_CHAR_ROW
4766 consolidated from x/mac/w32term.h.
4767 (FRAME_PIXEL_X_TO_COL): Renamed from PIXEL_TO_CHAR_COL
4768 consolidated from x/mac/w32term.h.
4769 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Renamed from
4770 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
4771 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Renamed from
4772 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
4773
4774 * window.h (struct window): Rename members left to left_col,
4775 top to top_line, height to total_lines, width to total_cols,
4776 left_margin_width to left_margin_cols, right_margin_width to
4777 right_margin_cols, orig_height to orig_total_lines, orig_top to
4778 orig_top_line. All uses changed.
4779 (struct window): New members left_fringe_width, right_fringe_width,
4780 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
4781 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
4782 New macros primarily used to simplify other macros.
4783 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
4784 referred to XINT (w->width).
4785 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
4786 referred to XINT (w->height).
4787 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
4788 referred to XINT (w->width) * canon_x_unit.
4789 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
4790 referred to XINT (w->height) * canon_y_unit.
4791 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
4792 referred to XINT (w->left).
4793 (WINDOW_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_EDGE. Change
4794 all uses and code that referred to XINT (w->left) + XINT (w->width).
4795 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
4796 referred to XINT (w->top).
4797 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
4798 referred to XINT (w->top) + XINT (w->height).
4799 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
4800 referred to XINT (w->left) * canon_x_unit.
4801 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
4802 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
4803 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
4804 referred to XINT (w->top) * canon_y_unit.
4805 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
4806 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
4807 (WINDOW_LEFTMOST_P): New macro.
4808 (WINDOW_BOX_LEFT_EDGE_COL): Renamed from WINDOW_LEFT_MARGIN.
4809 All uses changed.
4810 (WINDOW_BOX_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_MARGIN.
4811 All uses changed.
4812 (WINDOW_BOX_LEFT_EDGE_X): Renamed from
4813 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
4814 Do not exclude left fringe width.
4815 (WINDOW_BOX_RIGHT_EDGE_X): Renamed from
4816 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
4817 Do not exclude fringe widths.
4818 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
4819 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
4820 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
4821 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
4822 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
4823 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
4824 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
4825 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
4826 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
4827 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
4828 New macros. Change code which referenced corresponding
4829 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
4830 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
4831 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
4832 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
4833 allow per-window scroll-bar settings.
4834 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
4835 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
4836 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
4837 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
4838 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
4839 FRAME_SCROLL_BAR_WIDTH.
4840 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
4841 (WINDOW_SCROLL_BAR_AREA_X): New macros.
4842 (WINDOW_HEADER_LINE_HEIGHT): Renamed from
4843 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
4844 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Renamed from
4845 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
4846 (WINDOW_BOX_TEXT_HEIGHT): Renamed from
4847 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
4848 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
4849 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
4850 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Moved here from dispextern.h.
4851 (WINDOW_LEFT_MARGIN_WIDTH): Renamed from
4852 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
4853 (WINDOW_RIGHT_MARGIN_WIDTH): Renamed from
4854 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
4855 (window_from_coordinates): Update prototype.
4856 (Fset_window_buffer): Update EXFUN.
4857 (set_window_buffer): Update prototype.
4858
4859 * dispextern.h (struct glyph_matrix): Rename members window_left_x
4860 to window_left_col, window_top_y to window_top_line. All uses
4861 changed.
4862 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
4863 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
4864 internal_border_width is now set to 0 for non-window frames.
4865 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
4866 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
4867 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
4868 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
4869 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
4870 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
4871 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
4872 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
4873 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
4874 Move to window.h and renamed [see window.h changes].
4875 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
4876 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
4877 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
4878 Use WINDOW_TOTAL_LINES.
4879 (frame_update_line_height): Remove prototype.
4880
4881 * buffer.h (struct buffer): Rename members measured in columns:
4882 left_margin_width to left_margin_cols, right_margin_width to
4883 right_margin_cols. All uses changed.
4884 New members left_fringe_width, right_fringe_width,
4885 fringes_outside_margins for per-buffer fringe settings.
4886 New members scroll_bar_width and vertical_scroll_bar_type for
4887 per-buffer scroll bar settings.
4888
4889 * buffer.c (init_buffer_once): Set buffer_defaults and
4890 buffer_local_flags for new buffer-local variables
4891 left_fringe_width, right_fringe_width, fringes_outside_margins,
4892 scroll_bar_width, and vertical_scroll_bar_type.
4893 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
4894 default-* variables for them.
4895
4896 * dispnew.c: Make (many) trivial substitutions for renamed and
4897 new macros in dispextern.h, frame.h and window.h.
4898 (mode_line_string): No need to adjust width for mode lines, as it
4899 is already adjusted by the caller.
4900 (marginal_area_string): Handle fringes inside/outside margins.
4901
4902 * frame.c: Make (many) trivial substitutions for renamed and
4903 new macros in dispextern.h, frame.h and window.h.
4904 (make_frame): Initialize left_fringe_width, right_fringe_width,
4905 fringe_cols, scroll_bar_actual_width, border_width,
4906 internal_border_width, column_width, line_height, x_pixels_diff,
4907 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
4908 members with values suitable for a non-window frames.
4909
4910 * gtkutil.c: Make (many) trivial substitutions for renamed and
4911 new macros in dispextern.h, frame.h and window.h.
4912
4913 * indent.c: Make (few) trivial substitutions for renamed and
4914 new macros in dispextern.h, frame.h and window.h.
4915
4916 * keyboard.c: Make (many) trivial substitutions for renamed and
4917 new macros in dispextern.h, frame.h and window.h.
4918 (make_lispy_event): Use window positions returned from
4919 window_from_coordinates when constructing the lisp event for
4920 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
4921 (incorrect) values locally.
4922 (make_lispy_movement): Use window positions returned from
4923 window_from_coordinates when constructing the lisp event, rather
4924 than calculating (incorrect) values locally.
4925
4926 * scroll.c: Make (some) trivial substitutions for renamed and
4927 new macros in dispextern.h, frame.h and window.h.
4928
4929 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
4930 scroll-bars.
4931
4932 * sysdep.c: Make (few) trivial substitutions for renamed and
4933 new macros in dispextern.h, frame.h and window.h.
4934
4935 * term.c: Make (some) trivial substitutions for renamed and
4936 new macros in dispextern.h, frame.h and window.h.
4937
4938 * widget.c: Make (few) trivial substitutions for renamed and
4939 new macros in dispextern.h, frame.h and window.h.
4940
4941 * window.c: Make (many) trivial substitutions for renamed and
4942 new macros in dispextern.h, frame.h and window.h.
4943 (make_window): Initialize new members
4944 left_margin_cols, right_margin_cols, left_fringe_width,
4945 right_fringe_width, fringes_outside_margins, scroll_bar_width,
4946 and vertical_scroll_bar_type.
4947 (coordinates_in_window): Adapted to new fringe/margin positions
4948 and per-window fringes and scroll-bars.
4949 Fix bug related to incorrectly adjusting coordinates by
4950 frame's internal_border_width (the effect normally negible since
4951 the internal_border_width is typically 0 or 1 pixel, but very
4952 noticeable for an internal_border_width of e.g. 25 pixels).
4953 Upon successful return (other than ON_NOTHING), the coordinates
4954 are now always properly converted to window relative for the
4955 given display element.
4956 (window_from_coordinates): Add new parameters wx and wy to
4957 return the window relative x and y position in the returned
4958 window and part. A null arg means, don't return the position.
4959 All callers changed.
4960 (adjust_window_margins): New function which may reduce the width
4961 of the display margins if a window's text area is too small after
4962 resizing or splitting windows.
4963 (size_window): Fix bug that did not account for display margin
4964 widths when checking the minimum width of a window; use
4965 adjust_window_margins.
4966 (set_window_buffer): Call Fset_window_fringes and
4967 Fset_window_scroll_bars to setup per-window elements.
4968 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
4969 existing display margin, fringe widths, and scroll bar settings
4970 (e.g. after splitting a window or resizing the frame).
4971 All callers changed.
4972 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
4973 (Fsplit_window): Duplicate original window's display margin,
4974 fringe, and scroll-bar settings; then call Fset_window_buffer with
4975 KEEP_MARGINS non-nil. This fixes a bug which caused a split
4976 window to only preserve the display margins in one of the windows.
4977 When splitting horizontally, call adjust_window_margins on both
4978 windows to ensure that the text area of the new windows is non too
4979 narrow. This fixes a bug which could cause Emacs to trap if the
4980 width of the split window was less than the width of the display
4981 margins.
4982 (window_box_text_cols): Renamed from window_internal_width.
4983 All uses changed. Adapt to per-window fringes and scroll bars.
4984 Fix bug that caused vertical separator to be subtracted also on
4985 window frames. Fix another bug that did not reduce the returned
4986 value by the columns used for display margins.
4987 (window_scroll_line_based): Fix bug related to scrolling too much
4988 when display margins are present (implicitly fixed by the fix to
4989 window_box_text_cols).
4990 (scroll_left, scroll_right): Fix bug related to scrolling too far
4991 by default when display margins are present (implicitly fixed by
4992 the fix to window_box_text_cols).
4993 (struct saved_window): Rename members left to left_col, top to
4994 top_line, width to total_cols, height to total_lines, orig_top to
4995 orig_top_line, orig_height to orig_total_lines. All uses changed.
4996 New members left_margin_cols, right_margin_cols,
4997 left_fringe_width, right_fringe_width, fringes_outside_margins,
4998 scroll_bar_width, and vertical_scroll_bar_type for saving
4999 per-window display elements.
5000 (Fset_window_configuration): Restore display margins, fringes,
5001 and scroll bar settings. This fixes a bug which caused display
5002 margins to be discarded when saving and restoring a window
5003 configuration.
5004 (save_window_save): Save display margins, fringes, and scroll bar
5005 settings. This fixes a bug which caused display margins to be
5006 discarded when saving and restoring a window configuration.
5007 (Fset_window_margins): Do nothing if display margins are not
5008 really changed. Otherwise, call adjust_window_margins to ensure
5009 the text area doesn't get too narrow. This fixes a bug which
5010 could cause Emacs to trap if setting display margins wider than
5011 the width of the window.
5012 (Fset_window_fringes): New defun to allow user to specifically set
5013 this window's fringe widths and position vs. display margins.
5014 (Fwindow_fringes): New defun to return window's actual fringe
5015 settings.
5016 (Fset_window_scroll_bars): New defun to allow user to specifically
5017 set this window's scroll bar width and position.
5018 (Fwindow_scroll_bars): New defun to return window's actual scroll
5019 bar settings.
5020 (compare_window_configurations): Also compare display margins,
5021 fringes, and scroll bar settings.
5022 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
5023
5024 * xdisp.c: Make (many) trivial substitutions for renamed and
5025 new macros in dispextern.h, frame.h and window.h.
5026 (window_box_width): Adapt to per-window fringes and scroll bars,
5027 and new fringe vs. display margin position. Note that returned
5028 value is no longer guaranteed to be a whole multiple of the frame
5029 column width, since per-window fringes may now be any width.
5030 (window_box_left_offset): New function like window_box_left, but
5031 value is relative to left border of window (rather than frame).
5032 (window_box_right_offset): New function like window_box_right,
5033 but value is relative to left border of window.
5034 (window_box_left): Adapt to per-window fringes and scroll bars,
5035 and new fringe vs. display margin position. Simplify by using
5036 WINDOW_LEFT_EDGE_X and window_box_left_offset.
5037 (window_box): Allow null args for unnecessary return values;
5038 change/simplify relevant callers.
5039 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
5040 and new fringe vs. display margin position.
5041 Use window_box_left_offset and window_box_right_offset
5042 (get_glyph_string_clip_rect): Adapt to per-window fringes and
5043 scroll bars, and new fringe vs. display margin position.
5044 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
5045 (draw_fringe_bitmap): Rework to handle per-window fringes and new
5046 fringe vs. display margin position.
5047 (hscroll_window_tree): Use window_box_width instead of window_box.
5048 (redisplay_window): Adapt to per-window scroll bars.
5049 (draw_glyphs): Rework to handle per-window fringes and scroll
5050 bars, and new fringe vs. display margin position.
5051 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
5052 (x_clear_end_of_line): Adapt to per-window fringes and scroll
5053 bars, and new fringe vs. display margin position. Fix bug which
5054 increased total width of full_width rows by width of scroll bars
5055 although window's total width already includes that.
5056 (x_fix_overlapping_area): Simplify using window_box_left_offset.
5057 (expose_area): Simplify using window_box_left_offset.
5058 (x_draw_vertical_border): Handle per-window scroll bar settings,
5059 mixing windows with left, right and no scroll bars.
5060
5061 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
5062 where it's used in x_list_fonts (for clarity).
5063 (frame_update_line_height): Remove unused function; functionality
5064 is now done directly when setting the default font in x_set_font.
5065
5066 * xfns.c: Make (many) trivial substitutions for renamed and
5067 new macros in dispextern.h, frame.h and window.h.
5068
5069 * xmenu.c: Make (some) trivial substitutions for renamed and
5070 new macros in dispextern.h, frame.h and window.h.
5071
5072 * xterm.h (struct x_output): Move members left_pos, top_pos,
5073 border_width, pixel_height, pixel_width, line_height,
5074 internal_border_width, vertical_scroll_bar_extra,
5075 left_fringe_width, right_fringe_width, fringe_cols,
5076 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
5077 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
5078 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
5079 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
5080 (PIXEL_WIDTH, PIXEL_HEIGHT)
5081 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
5082 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
5083 frame.h and renamed [see frame.h changes].
5084 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
5085 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
5086 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
5087 and renamed [see frame.h changes].
5088
5089 * xterm.c: Make (several) trivial substitutions for renamed and
5090 new macros in dispextern.h, frame.h and window.h.
5091 (x_draw_glyph_string_box): Adapt to per-window fringes and
5092 scroll-bars.
5093 (scroll_run): Adapt to new fringe position.
5094 (glyph_rect): Use window coordinates returned from
5095 window_from_coordinates rather than frame_to_window_pixel_xy.
5096 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
5097 scroll-bars.
5098 (handle_one_xevent): Simplify a USE_GTK conditional.
5099 (x_clip_to_row): Remove superfluous whole_line_p arg and code
5100 (fringes are now inside margins, i.e. always in the clipping area).
5101 All callers changed.
5102 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
5103 directly, then call compute_fringe_widths. Don't call
5104 frame_update_line_height.
5105
5106 * w32term.h (struct w32_output): Move members left_pos, top_pos,
5107 border_width, pixel_height, pixel_width, line_height,
5108 internal_border_width, vertical_scroll_bar_extra,
5109 left_fringe_width, right_fringe_width, fringe_cols,
5110 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
5111 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
5112 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
5113 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
5114 (PIXEL_WIDTH, PIXEL_HEIGHT)
5115 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
5116 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
5117 frame.h and renamed [see frame.h changes].
5118 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
5119 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
5120 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
5121 and renamed [see frame.h changes].
5122
5123 * w32term.c: Make (several) trivial substitutions for renamed and
5124 new macros in dispextern.h, frame.h and window.h.
5125 (x_draw_glyph_string_box): Adapt to per-window fringes and
5126 scroll-bars.
5127 (glyph_rect): Use window coordinates returned from
5128 window_from_coordinates rather than frame_to_window_pixel_xy.
5129 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
5130 scroll-bars.
5131 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
5132 (fringes are now inside margins, i.e. always in the clipping area).
5133 All callers changed.
5134 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
5135 directly, then call compute_fringe_widths. Don't call
5136 frame_update_line_height.
5137
5138 * w32console.c: Make (few) trivial substitutions for renamed and
5139 new macros in dispextern.h, frame.h and window.h.
5140
5141 * w32fns.c: Make (many) trivial substitutions for renamed and
5142 new macros in dispextern.h, frame.h and window.h.
5143
5144 * w32menu.c: Make (few) trivial substitutions for renamed and
5145 new macros in dispextern.h, frame.h and window.h.
5146
5147 * macterm.h (struct mac_output): Move members left_pos, top_pos,
5148 border_width, pixel_height, pixel_width, line_height,
5149 internal_border_width, vertical_scroll_bar_extra,
5150 left_fringe_width, right_fringe_width, fringe_cols,
5151 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
5152 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
5153 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
5154 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
5155 (PIXEL_WIDTH, PIXEL_HEIGHT)
5156 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
5157 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
5158 frame.h and renamed [see frame.h changes].
5159 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
5160 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
5161 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
5162 and renamed [see frame.h changes].
5163
5164 * macterm.c: Make (several) trivial substitutions for renamed and
5165 new macros in dispextern.h, frame.h and window.h.
5166 (x_draw_glyph_string_box): Adapt to per-window fringes and
5167 scroll-bars.
5168 (glyph_rect): Use window coordinates returned from
5169 window_from_coordinates rather than frame_to_window_pixel_xy.
5170 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
5171 scroll-bars.
5172 (x_clip_to_row): Remove superfluous whole_line_p arg and code
5173 (fringes are now inside margins, i.e. always in the clipping area).
5174 All callers changed.
5175 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
5176 directly, then call compute_fringe_widths. Don't call
5177 frame_update_line_height.
5178
5179 * macfns.c: Make (several) trivial substitutions for renamed and
5180 new macros in dispextern.h, frame.h and window.h.
5181 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
5182
5183 * macmenu.c: Make (few) trivial substitutions for renamed and
5184 new macros in dispextern.h, frame.h and window.h.
5185
5186 * msdos.h (struct x_output): Remove members left_pos, top_pos,
5187 and line_height, and use corresponding new members in struct
5188 frame. All uses changed.
5189 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
5190 superseeded by corresponding macros in frame.h.
5191
5192 * msdos.c: Make (several) trivial substitutions for renamed and
5193 new macros in dispextern.h, frame.h and window.h.
5194 (IT_note_mouse_highlight): Use updated window coordinates returned
5195 by window_from_coordinates, rather than adjusting them locally.
5196 (internal_terminal_init): No need to initialize line_height here;
5197 it now defaults to 1.
5198
5199 2003-05-24 Stefan Monnier <monnier@cs.yale.edu>
5200
5201 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
5202 dropping `down' events.
5203
5204 2003-05-24 Andreas Schwab <schwab@suse.de>
5205
5206 * coding.c (find_safe_codings): Fix last change.
5207
5208 2003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
5209
5210 * xfns.c (x_window): Fix typo from 2003-05-21 change.
5211
5212 2003-05-23 Stefan Monnier <monnier@cs.yale.edu>
5213
5214 * xdisp.c (display_mode_element): Increase max depth.
5215 Simplify the error handling code. Use a different error string
5216 for the case where we hit the depth limit.
5217
5218 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
5219
5220 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
5221
5222 2003-05-21 Stefan Monnier <monnier@cs.yale.edu>
5223
5224 * intervals.c (get_local_map): Don't get char-property of previous
5225 point any more: get_pos_property already does it and better.
5226
5227 2003-05-21 Dave Love <fx@gnu.org>
5228
5229 [Merged from unicode branch.]
5230
5231 * xfns.c (x_window, x_window): Use use_xim.
5232
5233 * xterm.c (use_xim): Initialize.
5234 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
5235 (x_term_init): Maybe set use_xim.
5236
5237 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
5238
5239 2003-05-21 Jason Rumney <jasonr@gnu.org>
5240
5241 * unexw32.c (_start): Remove _fmode initialization.
5242
5243 * emacs.c (main) [WINDOWSNT]: Move it here.
5244
5245 2003-05-20 Dave Love <fx@gnu.org>
5246
5247 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
5248
5249 2003-05-19 Richard M. Stallman <rms@gnu.org>
5250
5251 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
5252 as value for QCfont attribute.
5253 (realize_default_face): lface should already exist; crash if not.
5254 Specify 0 for FORCE_P when calling set_lface_from_font_name.
5255
5256 * frame.c (Fignore_event): Doc fix.
5257
5258 2003-05-19 Kenichi Handa <handa@m17n.org>
5259
5260 * coding.c (decode_coding_string): Handle post-read-conversion
5261 even if the coding doesn't require decoding.
5262
5263 2003-05-18 Richard M. Stallman <rms@gnu.org>
5264
5265 * callproc.c (Fcall_process_region): Doc fix.
5266
5267 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
5268
5269 * lread.c (Fload): Print a message if package is obsolete.
5270
5271 * window.c (Fselect_window): Add optional `norecord' arg.
5272 (select_window_1): Fold into Fselect_window.
5273 (select_window_norecord): New function.
5274 (temp_output_buffer_show): Use it. Preserve current buffer.
5275
5276 * window.h (Fselect_window): Update declaration.
5277
5278 * window.c (delete_window, Fother_window, Fset_window_configuration):
5279 * minibuf.c (read_minibuf):
5280 * macterm.c (x_new_focus_frame):
5281 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
5282 * callint.c (Fcall_interactively):
5283 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
5284
5285 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
5286
5287 2003-05-17 David Kastrup <dak@gnu.org>
5288
5289 * process.c (read_process_output): Back out change from 2003-03-09.
5290
5291 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
5292
5293 * editfns.c (get_pos_property): Don't assume that `object' = nil.
5294
5295 * textprop.c (text_property_stickiness): New arg `buffer'.
5296
5297 * intervals.h (text_property_stickiness): New arg `buffer'.
5298 (get_pos_property): Declare.
5299
5300 * intervals.c (get_local_map): Use get_pos_property, to obey
5301 stickiness and empty overlays.
5302 (create_root_interval, graft_intervals_into_buffer): Use BEG.
5303 (merge_properties, intervals_equal, merge_properties_sticky):
5304 Use XCAR, XCDR.
5305 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
5306
5307 2003-05-17 Richard M. Stallman <rms@gnu.org>
5308
5309 * minibuf.c (read_minibuf): If buffer is empty, record the default
5310 in the history.
5311 (Fminibuffer_complete_word): When deleting the overlap, take account
5312 of its real position.
5313
5314 * fns.c (map_char_table): Fix previous change.
5315
5316 * syntax.c (find_defun_start):
5317 When open_paren_in_column_0_is_defun_start,
5318 return beginning of buffer.
5319
5320 * lisp.h (map_char_table): Declare added arg.
5321
5322 * fns.c (map_char_table): New arg TABLE gets the master table.
5323 All calls changed.
5324 Process default and inheritance, resorting to Faref if necessary.
5325
5326 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
5327 (Faccessible_keymaps): Pass new arg to map_char_table.
5328
5329 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
5330
5331 * casetab.c (set_case_table): Pass new arg to map_char_table.
5332
5333 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
5334
5335 * lisp.h (specbinding_func): New typedef.
5336 (struct specbinding): Use specbinding_func, to put the `volatile'
5337 in the right place.
5338
5339 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
5340 to avoid GCC warning.
5341
5342 2003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org> (tiny change)
5343
5344 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
5345
5346 2003-05-15 Stefan Monnier <monnier@cs.yale.edu>
5347
5348 * keyboard.c (apply_modifiers): Don't fill the other cache.
5349
5350 2003-05-14 Stefan Monnier <monnier@cs.yale.edu>
5351
5352 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
5353
5354 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
5355 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
5356 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
5357 (Fset_window_configuration, Fcurrent_window_configuration)
5358 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
5359 (Fpos_visible_in_window_p, mark_window_cursors_off)
5360 (window_internal_height, window_internal_width, Frecenter)
5361 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
5362 (replace_buffer_in_all_windows, init_window_once, init_window)
5363 (syms_of_window, keys_of_window): Move from lisp.h.
5364 * lisp.h: Move window.c declarations to window.h.
5365
5366 * bytecode.c: Include window.h.
5367 * emacs.c: Include window.h.
5368
5369 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
5370 (keyremap): Add `parent' field.
5371 (keyremap_step): Use it. Remove `parent' argument.
5372 (read_key_sequence): Setup and use the new `parent' field.
5373
5374 2003-05-11 Stefan Monnier <monnier@cs.yale.edu>
5375
5376 * keyboard.c (adjust_point_for_property): Ensure termination.
5377
5378 2003-05-10 Stefan Monnier <monnier@cs.yale.edu>
5379
5380 * keyboard.c (follow_key): Remove dead variable `did_meta'.
5381 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
5382 duplicated handling of function-key-map and key-translation-map
5383 in read_key_sequence.
5384 (read_key_sequence): Use them.
5385
5386 * keyboard.c (adjust_point_for_property): Try harder to move point
5387 to the non-sticky end of an invisible property.
5388
5389 * xdisp.c (single_display_prop_intangible_p): Make `space' display
5390 property intangible as well.
5391
5392 2003-05-10 Andreas Schwab <schwab@suse.de>
5393
5394 * xmenu.c (single_menu_item): Change last parameter to void* to
5395 avoid warning.
5396
5397 2003-05-09 Richard M. Stallman <rms@gnu.org>
5398
5399 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
5400 Bind Qinhibit_modification_hooks to t so there will be no GC.
5401 Rename local `tem' to `save_deactivate_mark'.
5402
5403 * eval.c (specpdl_ptr): Declare volatile.
5404 (unbind_to): Copy the whole binding and decrement specpdl_ptr
5405 before doing the work of unbinding it.
5406
5407 * lisp.h (struct specbinding): Declare elements volatile.
5408 (specpdl_ptr): Declare volatile.
5409
5410 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
5411
5412 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
5413 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
5414
5415 2003-05-08 Dave Love <fx@gnu.org>
5416
5417 * coding.c (Vlast_coding_system_used): Doc fix.
5418
5419 2003-05-07 Jason Rumney <jasonr@gnu.org>
5420
5421 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
5422 when system does not support them.
5423
5424 2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
5425
5426 * fileio.c (Qwrite_region_annotate_functions): New var.
5427 (build_annotations): Use it to process the global part of the hook.
5428 (syms_of_fileio): Init and staticpro it.
5429
5430 * keyboard.c (safe_run_hooks_error): Display a message instead of
5431 silently ignoring the error.
5432
5433 2003-05-03 Stefan Monnier <monnier@cs.yale.edu>
5434
5435 * keyboard.c (input_available_signal): Mark static.
5436 (menu_bar_items): Use map_keymap.
5437 (menu_bar_one_keymap): Remove.
5438 (menu_bar_item): Adjust arglist (for use in map_keymap).
5439 Properly hide a second binding when not both are keymaps.
5440
5441 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
5442 (single_keymap_panes): Use it and map_keymap.
5443 (single_menu_item): Use skp as well.
5444
5445 * keymap.h (map_keymap_function_t): New type.
5446 (map_keymap): Declare.
5447
5448 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
5449 (map_keymap_call, Fmap_keymap): New functions.
5450 (syms_of_keymap): Defsubr map-keymap.
5451
5452 2003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5453
5454 * gtkutil.c (create_dialog, make_widget_for_menu_item)
5455 (make_menu_item, create_menus, xg_update_menu_item): Don't call
5456 ..._with_mnemonic functions for menu items.
5457
5458 2003-05-01 Kenichi Handa <handa@m17n.org>
5459
5460 * coding.c (coding_system_accept_latin_extra_p): Delete this
5461 function.
5462 (find_safe_codings): Pay attention to
5463 the property tranlsation-table-for-encode of each codings.
5464 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
5465
5466 2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
5467
5468 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
5469
5470 2003-04-30 Stefan Monnier <monnier@cs.yale.edu>
5471
5472 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
5473
5474 * lisp.h (CHECK): Wrap args in parenthesis.
5475 (specbind): Fix doc: symbol = Qnil is not supported any more.
5476
5477 * bytecode.c (Fbyte_code) <unwind-protect>:
5478 Use Fprogn rather than 0 and Qnil.
5479
5480 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
5481 `double', and `triple' modifiers as well.
5482
5483 2003-04-30 Richard M. Stallman <rms@gnu.org>
5484
5485 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
5486
5487 * alloc.c (abort_on_gc): New variable.
5488 (Fgarbage_collect): Abort if abort_on_gc is set.
5489
5490 * lisp.h (abort_on_gc): Add decl.
5491
5492 * eval.c (Fsignal): Clear abort_on_gc.
5493
5494 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
5495 Reinit FORMAT_START and END before second scan.
5496
5497 * xdisp.c (move_it_vertically_backward): Do the final big else
5498 even if nlines is 0.
5499
5500 * xdisp.c (redisplay_internal): Finish the per-frame loop
5501 even if redisplay is suspended by input.
5502
5503 2003-04-24 Andrew Choi <akochoi@shaw.ca>
5504
5505 * macterm.c (x_list_fonts): Return all fonts that match if
5506 maxnames = -1.
5507
5508 2003-04-25 Kenichi Handa <handa@m17n.org>
5509
5510 * syntax.c (skip_chars): Fix previous change.
5511
5512 2003-04-24 Kenichi Handa <handa@m17n.org>
5513
5514 * syntax.c (skip_chars): Make the code faster by using the common
5515 technique of *p, *stop, and *endp.
5516
5517 2003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5518
5519 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
5520 tool_bar_items so GTK tool bar expose callback does not access items
5521 being updated.
5522
5523 2003-04-19 Stefan Monnier <monnier@cs.yale.edu>
5524
5525 * eval.c (Fapply): Undo last change and add a comment about why.
5526
5527 2003-04-18 Miles Bader <miles@gnu.org>
5528
5529 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
5530 pickier PARSE_MULTIBYTE_SEQ.
5531
5532 2003-04-17 Stefan Monnier <monnier@cs.yale.edu>
5533
5534 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
5535 Use XCDR, XCAR, CONSP.
5536 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
5537 (Fapply): Remove unnecessary GCPRO.
5538
5539 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
5540
5541 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
5542
5543 * buffer.h: Don't hardcode BEG==1.
5544
5545 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
5546
5547 2003-04-16 Richard M. Stallman <rms@gnu.org>
5548
5549 * xdisp.c (try_window, try_window_reusing_current_matrix):
5550 When at end of window, set window_end_pos to Z-ZV.
5551
5552 * buffer.c (Foverlay_recenter): Doc fix.
5553
5554 2003-04-14 Stefan Monnier <monnier@cs.yale.edu>
5555
5556 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
5557
5558 2003-04-14 Andrew Choi <akochoi@shaw.ca>
5559
5560 * macterm.c (mac_check_for_quit_char): Don't check more often than
5561 once a second.
5562
5563 2003-04-11 Stefan Monnier <monnier@cs.yale.edu>
5564
5565 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
5566 specially, so that they can't hide an implicit switch-frame event.
5567 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
5568 (head_table): Use switch-frame as event_kind for select-window.
5569 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
5570
5571 * editfns.c (Fformat): Lisp_Object/int mixup.
5572 (format2): Remove unused var numargs.
5573
5574 2003-04-11 Kenichi Handa <handa@m17n.org>
5575
5576 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
5577 (Qafter_insert_file_set_coding): New variable.
5578 (syms_of_fileio): Initialize and staticpro it. Delete declaration
5579 for after-insert-file-adjust-coding-function.
5580 (Finsert_file_contents): Call Qafter_insert_file_set_coding
5581 instead of Vafter_insert_file_adjust_coding_function.
5582
5583 2003-04-11 Kenichi Handa <handa@m17n.org>
5584
5585 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
5586
5587 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
5588 string. Callers changed.
5589
5590 2003-04-10 Kenichi Handa <handa@m17n.org>
5591
5592 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
5593 (syms_of_fileio): Declare it as a lisp variable.
5594 (Finsert_file_contents):
5595 Call Vafter_insert_file_adjust_coding_function before calling
5596 decode-format.
5597
5598 2003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5599
5600 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
5601 get GtkAdjustment as widget now is a GtkRange.
5602
5603 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
5604 GtkRange to avoid memory leak.
5605
5606 2003-04-09 Kenichi Handa <handa@m17n.org>
5607
5608 * xfaces.c (Vface_font_rescale_alist): New variable.
5609 (struct font_name): New member rescale_ratio.
5610 (font_rescale_ratio): New function.
5611 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
5612 (better_font_p): On comparing point sized, pay attention to
5613 recale_ratio member of fonts.
5614 (build_scalable_font_name): Reflect font->rescale_ratio in the
5615 font name.
5616 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
5617
5618 * lread.c (read1): Before calling index, check if the 2nd
5619 arguemnt is in ASCII range.
5620
5621 2003-04-08 Richard M. Stallman <rms@gnu.org>
5622
5623 * fileio.c (Ffile_symlink_p): Doc fix.
5624
5625 * editfns.c (Fformat): Translate positions of text properties
5626 in the format string to apply them to the result.
5627
5628 * fileio.c (Finsert_file_contents): Doc fix.
5629 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
5630
5631 2003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
5632
5633 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
5634
5635 2003-04-08 Steven Tamm <steventamm@mac.com>
5636
5637 * mac.c (init_mac_osx_environment): Switch libexec and bin so
5638 that self-contained application finds libexec files.
5639
5640 2003-04-08 Kenichi Handa <handa@m17n.org>
5641
5642 * coding.c (code_convert_region_unwind):
5643 Set Vlast_coding_system_used to the argument.
5644 (code_convert_region): If post-read-conversion function changed
5645 the value of last-coding-sytem, keep the new value in
5646 coding->symbol so that it won't be overridden.
5647 (run_pre_post_conversion_on_str): Likewise.
5648 (coding_system_accept_latin_extra_p): New function.
5649 (find_safe_codings): Pay attention to characters registered in
5650 latin-extra-code-table.
5651
5652 2003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
5653
5654 * Makefile.in (md5.o): Add missing dependency info.
5655
5656 2003-04-06 Richard M. Stallman <rms@gnu.org>
5657
5658 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
5659
5660 * marker.c (verify_bytepos): New function.
5661
5662 * intervals.c (set_intervals_multibyte_1): When becoming
5663 multibyte, adjust right and left child sizes to a whole set of
5664 characters. If an interval gets zero total-length, delete it.
5665 If an interval consists of just its children, delete one of them.
5666
5667 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
5668 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
5669
5670 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
5671 All calls deleted.
5672 (lisp_malloc): Do the work here directly.
5673
5674 2003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
5675
5676 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
5677 char tables.
5678
5679 2003-04-04 Kenichi Handa <handa@m17n.org>
5680
5681 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
5682 destructively change "%S" to "%s".
5683
5684 2003-04-03 Miles Bader <miles@gnu.org>
5685
5686 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
5687 always set.
5688
5689 2003-04-01 Dave Love <fx@gnu.org>
5690
5691 * xfns.c (xpm_lookup_color): Grok "opaque".
5692
5693 2003-03-31 Andrew Choi <akochoi@shaw.ca>
5694
5695 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
5696 parent window ID.
5697
5698 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
5699
5700 * macterm.h (struct mac_output): Define x_pixels_diff and
5701 y_pixels_diff.
5702
5703 2003-03-31 Juanma Barranquero <lektu@terra.es>
5704
5705 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
5706 blockinput.h and files included from it.
5707
5708 2003-03-31 Kim F. Storm <storm@cua.dk>
5709
5710 The following changes consolidates the common code related to
5711 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
5712 files into frame.c.
5713
5714 * frame.c: Include blockinput.h.
5715 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
5716 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
5717 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
5718 related vars here.
5719 (struct frame_parm_table, frame_parms): New table for describing
5720 frame parameters and their associated Q-variable.
5721 The order of the parameters corresponds to the sequence of the
5722 frame_parm_handlers table in redisplay_interface.
5723 (x_fullscreen_move, x_set_frame_parameters)
5724 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
5725 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
5726 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
5727 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
5728 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
5729 Generic functions for processing of frame parameters.
5730 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
5731 (display_x_get_resource, x_get_resource_string): Functions for
5732 generic access to X resources.
5733 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
5734 (x_default_parameter, Fx_parse_geometry): Functions for generic
5735 access to frame parameters.
5736 (x_figure_window_size): Generic calculation of frame size.
5737 Fixed to add space needed for tool bar. Also setup size_hint_flags.
5738 (syms_of_frame): Intern and staticpro frame parameter variables.
5739 Defvar_lisp Vx_resource_class and Vx_resource_name here.
5740 Defsubr Sx_get_resource and Sx_parse_geometry.
5741
5742 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
5743 parameter related vars defined in frame.c.
5744 (EMACS_CLASS): Define here.
5745 (enum FULLSCREEN_*): Define here.
5746 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
5747 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
5748 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
5749 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
5750 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
5751 (x_set_visibility, x_set_autoraise, x_set_autolower)
5752 (x_set_unsplittable, x_set_vertical_scroll_bars)
5753 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
5754 (x_figure_window_size): Add prototypes.
5755
5756 * dispextern.h (frame_parm_handler): New typedef.
5757 (struct redisplay_interface): New member frame_parm_handlers.
5758 (enum resource_types): Move declaration here.
5759 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
5760 (x_default_parameter): Add prototypes.
5761
5762 * window.c: Remove extern decl for frame parameter vars.
5763 (change_window_heights): New generic function;
5764 replaces x_change_window_heights. All users changed.
5765
5766 * window.h (change_window_heights): Add prototype.
5767
5768 * xfaces.c: Remove extern decl for frame parameter vars.
5769
5770 * xterm.h (EMACS_CLASS): Remove. Use generic define.
5771 (struct w32_display_info): Fix type of xrdb member.
5772 (enum FULLSCREEN_*): Remove.
5773 Remove prototypes for generic functions (in frame.h).
5774
5775 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
5776 parameters now defined in frame.h and frame.c.
5777 (Vx_resource_name): Remove. Use generic var.
5778 (enum x_frame_parms): Remove (bogus, unused enum).
5779 (check_x_display_info): Make non-static (for frame.c).
5780 (struct x_frame_parm_table, x_frame_parms): Remove.
5781 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
5782 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
5783 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
5784 (x_change_window_heights, x_set_autoraise, x_set_autolower)
5785 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
5786 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
5787 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
5788 Remove. Use generic functions instead.
5789 (enum resource_types): Remove.
5790 (x_set_scroll_bar_default_width): New global function (for frame.c).
5791 (Fx_create_frame): Depend on x_figure_window_size to add space for
5792 toolbar and setup size_hint_flags.
5793 (x_frame_parm_handlers): New table for redisplay_interface.
5794 (syms_of_xfns): Don't intern/staticpro removed vars.
5795
5796 * xterm.c: Remove unnecessary extern declarations.
5797 (x_fullscreen_adjust): Remove. Use generic instead.
5798 (x_redisplay_interface): Add x_frame_parm_handlers member.
5799
5800 * w32gui.h (XrmDatabase): New (dummy) typedef.
5801
5802 * w32term.h (EMACS_CLASS): Remove. Use generic define.
5803 (struct w32_display_info): Fix type of xrdb member.
5804 (enum FULLSCREEN_*): Remove.
5805 (x_fullscreen_adjust): Remove prototype.
5806
5807 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
5808 parameters now defined in frame.h and frame.c.
5809 (Vx_resource_name): Remove. Use generic var.
5810 (enum x_frame_parms): Remove (bogus, unused enum).
5811 (check_x_display_info): Make non-static (for frame.c).
5812 (struct x_frame_parm_table, x_frame_parms): Remove.
5813 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
5814 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
5815 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
5816 (x_change_window_heights, x_set_autoraise, x_set_autolower)
5817 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
5818 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
5819 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
5820 Remove. Use generic functions instead.
5821 (enum resource_types): Remove.
5822 (x_set_scroll_bar_default_width): New global function (for frame.c).
5823 (Fx_create_frame): Depend on x_figure_window_size to add space for
5824 toolbar and setup size_hint_flags.
5825 (w32_frame_parm_handlers): New table for redisplay_interface.
5826 (syms_of_w32fns): Don't intern/staticpro removed vars.
5827
5828 * w32term.c: Remove unnecessary extern declarations.
5829 (x_fullscreen_adjust): Remove. Use generic instead.
5830 (x_redisplay_interface): Add w32_frame_parm_handlers member.
5831
5832 * w32reg.c (x_get_string_resource): Use XrmDatabase.
5833
5834 * macgui.h (XrmDatabase): New (dummy) typedef.
5835
5836 * macterm.h (EMACS_CLASS): Remove.
5837 (struct mac_display_info): Add xrdb member.
5838 (struct mac_output): Add want_fullscreen member.
5839
5840 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
5841 parameters now defined in frame.h and frame.c.
5842 (Vx_resource_name): Remove. Use generic var.
5843 (check_x_display_info): Make non-static (for frame.c).
5844 (struct x_frame_parm_table, x_frame_parms): Remove.
5845 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
5846 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
5847 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
5848 (x_change_window_heights, x_set_autoraise, x_set_autolower)
5849 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
5850 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
5851 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
5852 Remove. Use generic functions instead.
5853 (enum resource_types): Remove.
5854 (x_set_scroll_bar_default_width): New global function (for frame.c).
5855 (mac_frame_parm_handlers): New table for redisplay_interface.
5856 (syms_of_macfns): Don't intern/staticpro removed vars.
5857
5858 * macterm.c: Remove unnecessary extern declarations.
5859 (x_redisplay_interface): Add mac_frame_parm_handlers member.
5860
5861 * Makefile.in (frame.o): Add dependency on blockinput.h and files
5862 included from it (atimer.h and systime.h).
5863
5864 2003-03-30 Andreas Schwab <schwab@suse.de>
5865
5866 * xdisp.c (x_insert_glyphs): Fix swapped width and height
5867 parameters for shift_glyphs_for_insert.
5868
5869 * macterm.c (x_redisplay_interface): Add missing entry for
5870 draw_vertical_window_border.
5871
5872 2003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
5873
5874 * fileio.c (Fexpand_file_name): In the no-handler case, after
5875 expanding, look again for a handler and invoke it. This is needed
5876 for filenames like "/foo/../user@host:/bar/../baz" -- the first
5877 expansion produces "/user@host:/bar/../baz" which needs to be
5878 expanded again for the finame result "/user@host:/baz".
5879
5880 2003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5881
5882 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
5883 of area to be redrawn for better performance.
5884
5885 2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
5886
5887 * xterm.c (take_vertical_position_into_account): Remove.
5888 (xt_action_hook): Call set_vertical_scroll_bar if needed.
5889 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
5890 (xm_scroll_callback, x_create_toolkit_scroll_bar)
5891 (x_set_toolkit_scroll_bar_thumb): Simplify.
5892 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
5893 (XTread_socket): Remove unused var.
5894 (x_make_frame_invisible): Replace goto with else.
5895
5896 * xdisp.c (set_vertical_scroll_bar): New fun.
5897 (redisplay_window): Use it.
5898
5899 2003-03-26 Richard M. Stallman <rms@gnu.org>
5900
5901 * xdisp.c (update_tool_bar): Recompute tool bar if
5902 update_mode_lines is set. Set w->update_mode_line
5903 only if the tool bar contents actually change.
5904 (update_menu_bar): Undo previous change.
5905
5906 2003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5907
5908 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
5909 (xg_frame_set_char_size): Calculate scroll bar width before frame
5910 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
5911 (xg_separator_p): Check for all documented separator types.
5912 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
5913 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
5914
5915 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
5916 so tool bar gets updated.
5917
5918 2003-03-26 Stefan Monnier <monnier@cs.yale.edu>
5919
5920 * data.c (store_symval_forwarding): Re-instate part of the code
5921 that was deleted with too much enthusiasm.
5922
5923 2003-03-25 Stefan Monnier <monnier@cs.yale.edu>
5924
5925 * data.c (store_symval_forwarding): Delete special read-only
5926 hack for type == -1, since we now use ->constant instead.
5927 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
5928
5929 * buffer.c (overlays_in): Declare static.
5930 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
5931 `constant' field rather than the variable's `type' field.
5932
5933 2003-03-24 Andrew Choi <akochoi@shaw.ca>
5934
5935 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
5936
5937 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
5938
5939 * fns.c [MAC_OSX]: Do not redefine vector.
5940
5941 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
5942
5943 * macgui.h: Remove definition of No_Cursor.
5944
5945 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
5946
5947 * xdisp.c: Define No_Cursor.
5948 (x_write_glyphs, notice_overwritten_cursor)
5949 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
5950 (note_mouse_highlight): Remove Mac-specific code.
5951 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
5952
5953 2003-03-24 John Paul Wallington <jpw@gnu.org>
5954
5955 * xdisp.c (redisplay_window): If mini window's buffer is not
5956 empty, then redisplay it like other windows.
5957
5958 2003-03-23 Kim F. Storm <storm@cua.dk>
5959
5960 * w32term.c (w32_draw_window_cursor): Fix last change.
5961
5962 2003-03-23 Kenichi Handa <handa@m17n.org>
5963
5964 * alloc.c (make_string_from_bytes, make_specified_string):
5965 Add `const' for the arg CONTENTS.
5966
5967 * lisp.h (make_string_from_bytes, make_specified_string):
5968 Prototypes adjusted.
5969
5970 2003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5971
5972 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
5973
5974 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
5975 (XG_SB_RANGE): New define.
5976
5977 * gtkutil.c (xg_fixed_handle_expose): New function.
5978 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
5979 expose events.
5980 (xg_update_scrollbar_pos): Take two more arguments, left and width
5981 of scroll bar including borders.
5982 Clear left and right part outside scroll bar separately as some
5983 themes have bars that are not an even number of pixels.
5984 Don't set reallocate_redraws, don't call
5985 gdk_window_process_all_updates.
5986 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
5987 so no need to change it. Calculate size and value with XG_SB_RANGE.
5988
5989 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
5990 Pass left and width of scroll bar including borders to
5991 xg_update_scrollbar_pos.
5992
5993 2003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
5994
5995 * Makefile.in: Make sure space precedes end-of-line backslashes.
5996
5997 2003-03-22 Kim F. Storm <storm@cua.dk>
5998
5999 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
6000 Add generic versions here. Remove system specific versions
6001 defined elsewhere.
6002
6003 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
6004 Add prototypes.
6005
6006 * xterm.h (STORE_NATIVE_RECT): New macro.
6007
6008 2003-03-21 Kim F. Storm <storm@cua.dk>
6009
6010 * xdisp.c (get_glyph_string_clip_rect):
6011 Use FRAME_INTERNAL_BORDER_WIDTH.
6012
6013 * dispextern.h (struct redisplay_interface): Add active_p
6014 argument to draw_window_cursor member. All uses changed.
6015
6016 2003-03-21 Kim F. Storm <storm@cua.dk>
6017
6018 The following changes consolidate code related to writing and
6019 inserting glyphs, exposing frame, the tool bar, the mouse face,
6020 the output cursor, and help echo from xterm.c, w32term.c and
6021 macterm.c into xdisp.c. It also generalizes the use of the
6022 window_part enum instead of using numeric values throughout.
6023
6024 * xdisp.c: Consolidate gui-independent code here.
6025 Include keymap.h.
6026 (Qhelp_echo): Import.
6027 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
6028 (help_echo_string, help_echo_window, help_echo_object)
6029 (previous_help_echo_string, help_echo_pos): Declare here.
6030 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
6031 (estimate_mode_line_height): Define here. Handle windowing
6032 systems directly (without using estimate_mode_line_height_hook).
6033 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
6034 (update_window_cursor, update_cursor_in_window_tree)
6035 (fast_find_position, fast_find_string_pos)
6036 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
6037 (expose_area, expose_line, expose_overlaps, expose_window)
6038 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
6039 declared static as they are only used locally in xdisp.c.
6040 (draw_glyphs): Rename from x_draw_glyphs and make static.
6041 (tool_bar_item_info, notice_overwritten_cursor): Make static.
6042 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
6043 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
6044 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
6045 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
6046 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
6047 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
6048 (note_mouse_highlight, x_clear_window_mouse_face)
6049 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
6050 (x_intersect_rectangles): New generic functions for use by xdisp.c
6051 and GUI front-ends.
6052 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
6053 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
6054
6055 * dispextern.h (Display_Info): Generic typedef for *_display_info.
6056 (NativeRectangle): Generic typedef for rectangle type.
6057 (enum window_part): Move here from window.c.
6058 (struct redisplay_interface): New members flush_display_optional,
6059 define_frame_cursor, clear_frame_area, draw_window_cursor,
6060 draw_vertical_window_border, shift_glyphs_for_insert.
6061 Rename member clear_mouse_face to clear_window_mouse_face.
6062 (estimate_mode_line_height_hook): Remove hook.
6063 (auto_raise_tool_bar_buttons_p): Don't declare extern.
6064 (tool_bar_item_info): Remove prototype.
6065 (help_echo_string, help_echo_window, help_echo_object)
6066 (previous_help_echo_string, help_echo_pos)
6067 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
6068 (x_stretch_cursor_p, output_cursor): Declare extern.
6069 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
6070 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
6071 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
6072 (display_and_set_cursor, set_output_cursor, x_cursor_to)
6073 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
6074 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
6075 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
6076 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
6077 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
6078 Add prototypes.
6079 (mode_line_string, marginal_area_string): Fix prototypes.
6080
6081 * window.c (enum window_part): Move to dispextern.h.
6082 (coordinates_in_window): Use enum window_part member names
6083 instead of numbers to describe return value.
6084 (struct check_window_data): Change part member to window_part.
6085 (check_window_containing): Return window_part unaltered.
6086 (window_from_coordinates): Change part arg from int to enum
6087 window_part. Allow part arg to be null. All users changed.
6088
6089 * window.h (window_from_coordinates): Fix prototype.
6090
6091 * term.c (estimate_mode_line_height): Move to xdisp.c.
6092
6093 * keyboard.c (make_lispy_event): Use enum window_part.
6094
6095 * dispnew.c (mode_line_string, marginal_area_string): Use enum
6096 window_part instead of int in arg list. Users changed.
6097
6098 * xterm.h (No_Cursor): Declare as None for X.
6099 (struct mac_output): Replace member cross_cursor by hand_cursor.
6100
6101 * xterm.c: Remove consolidated defines and code.
6102 (BETWEEN): Remove unused macro.
6103 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
6104 (x_define_frame_cursor, x_clear_frame_area)
6105 (x_draw_window_cursor): New X-specific functions for RIF.
6106 (x_redisplay_interface): Add new members.
6107
6108 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
6109
6110 * w32term.h (struct w32_output): Remove cross_cursor member.
6111
6112 * w32term.c: Remove consolidated defines and code.
6113 (BETWEEN): Remove unused macro.
6114 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
6115 (w32_define_frame_cursor, w32_clear_frame_area)
6116 (w32_draw_window_cursor): New W32-specific functions for RIF.
6117 (w32_redisplay_interface): Add new members.
6118
6119 * w32gui.h (No_Cursor): Define as 0 for W32.
6120 (XRectangle): Add X compatible rectangle type.
6121 (NativeRectangle): Declare as RECT for W32.
6122 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
6123
6124 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
6125
6126 * w32console.c: Remove consolidated defines and code.
6127
6128 * msdos.h (Display_Info): Add generic typedef.
6129
6130 * msdos.c: Remove consolidated defines and code.
6131 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
6132
6133 * macterm.h (struct mac_output): Replace member cross_cursor by
6134 hand_cursor.
6135 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
6136
6137 * macterm.c: Remove consolidated defines and code.
6138 (BETWEEN): Remove unused macro.
6139 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
6140 (mac_define_frame_cursor, mac_clear_frame_area)
6141 (mac_draw_window_cursor): New Mac-specific functions for RIF.
6142 (x_redisplay_interface): Add new members.
6143
6144 * macgui.h (No_Cursor): Define as 0 for Mac.
6145 (XRectangle): Add X compatible rectangle type.
6146 (NativeRectangle): Declare as Rect for Mac.
6147 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
6148
6149 * macfns.c (x_set_mouse_color): Setup hand_cursor.
6150 (x_set_cursor_color): Use x_display_and_set_cursor.
6151
6152 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
6153 included from it. Add dependency on keymap.h.
6154
6155 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
6156
6157 2003-03-21 Kenichi Handa <handa@m17n.org>
6158
6159 * fileio.c (Fexpand_file_name): Fix previous change.
6160
6161 2003-03-19 Kenichi Handa <handa@m17n.org>
6162
6163 * fileio.c (Ffile_name_directory): Reconstruct file name by
6164 make_specified_string.
6165 (Ffile_name_nondirectory, Ffile_name_as_directory)
6166 (Fdirectory_file_name, Fexpand_file_name)
6167 (Fsubstitute_in_file_name): Likewise.
6168 (Fread_file_name): Compare decoded homedir with DIR and
6169 DEFAULT_FILENAME.
6170
6171 * alloc.c (make_specified_string): If NCHARS is negative, count
6172 the number of characters.
6173
6174 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6175
6176 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
6177 all widgets.
6178
6179 * gtkutil.h: Removed xg_ignore_next_thumb.
6180
6181 2003-03-18 Kenichi Handa <handa@m17n.org>
6182
6183 * coding.c (Vchar_coding_system_table): Remove this variable.
6184 (Vcoding_system_safe_chars): New variable.
6185 (intersection): Remove this function.
6186 (find_safe_codings): Don't use Vchar_coding_system_table, but try
6187 all codings in SAFE_CODINGS.
6188 (Ffind_coding_systems_region_internal): Adjust for the change of
6189 find_safe_codings. Get generic coding systems from
6190 Vcoding_system_safe_chars.
6191 (Fdefine_coding_system_internal): New function.
6192 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
6193 Initialize and staticpro Vcoding_system_safe_chars.
6194
6195 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6196
6197 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
6198 equal old values before updating.
6199
6200 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
6201
6202 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
6203
6204 2003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6205
6206 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
6207 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
6208 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
6209 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
6210 (xg_create_scroll_bar): Pass bar to button event callback.
6211 (xg_find_top_left_in_fixed): New function.
6212 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
6213 whole scroll bar area. Get old position with
6214 xg_find_top_left_in_fixed, calculate and only clear needed areas.
6215 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
6216 dragging is in progress. Calculate whole as for Motif.
6217 Remove code that saved last values. Call gtk_range functions to
6218 set scroll bar sizes.
6219
6220 * gtkutil.h: Removed xg_ignore_next_thumb.
6221
6222 2003-03-17 Juanma Barranquero <lektu@terra.es>
6223
6224 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
6225 and files included from it.
6226
6227 2003-03-18 Stefan Monnier <monnier@cs.yale.edu>
6228
6229 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
6230 multiple occurrences of the same keymap under different prefixes.
6231 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
6232
6233 2003-03-16 Jason Rumney <jasonr@gnu.org>
6234
6235 * w32gui.h: Use HDC for Display.
6236
6237 * w32term.c (w32_encode_char): Prevent double-byte chars from
6238 crashing Emacs.
6239
6240 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
6241 as binary.
6242
6243 2003-03-16 Juanma Barranquero <lektu@terra.es>
6244
6245 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
6246
6247 2003-03-16 Kim F. Storm <storm@cua.dk>
6248
6249 The following changes consolidate some of the gui-independent
6250 parts of the processing and drawing of "glyph strings" from
6251 xterm.c, w32term.c, and macterm.c into xdisp.c.
6252
6253 * dispextern.h (struct glyph): Reduce face_id member from 22 to
6254 21 bits (this reduces number of faces from 4M to 2M).
6255 Replace W32 specific w32_font_type member (2 bits) by generic
6256 font_type member (3 bits) for portability.
6257 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
6258 (enum draw_glyphs_face): Define here.
6259 (struct glyph_string): Define here. Merge W32 and X versions.
6260 (struct redisplay_interface): New members per_char_metric,
6261 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
6262 (VCENTER_BASELINE_OFFSET): Define here.
6263 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
6264 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
6265
6266 * xdisp.c: Consolidate gui-independent "glyph string" code here.
6267 (dump_glyph_string): Moved here.
6268 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
6269 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
6270 (fill_composite_glyph_string, fill_glyph_string)
6271 (fill_image_glyph_string, fill_stretch_glyph_string)
6272 (left_overwritten, left_overwriting, right_overwritten)
6273 (right_overwriting, get_char_face_and_encoding)
6274 (set_glyph_string_background_width, compute_overhangs_and_x)
6275 (append_glyph, append_composite_glyph, produce_image_glyph)
6276 (take_vertical_position_into_account, append_stretch_glyph)
6277 (produce_stretch_glyph): New generic functions (based on X version).
6278 Call platform specific functions through rif.
6279 (INIT_GLYPH_STRING): New macro, hides W32 details.
6280 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
6281 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
6282 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
6283 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
6284 (notice_overwritten_cursor):
6285 Generic functions exported to platform modules. Users changed.
6286
6287 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
6288 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
6289 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
6290 New macros for consolidated code.
6291
6292 * xterm.c: Remove consolidated defines and code.
6293 (x_per_char_metric, x_encode_char)
6294 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
6295 (x_redisplay_interface): Add new members.
6296
6297 * w32gui.h (Display): Add dummy typedef for consolidation.
6298 (XChar2b): Define alias for wchar_t for consolidation.
6299 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
6300
6301 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
6302 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
6303 New macros for consolidation.
6304
6305 * w32term.c: Remove consolidated defines and code.
6306 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
6307 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
6308 (w32_per_char_metric): Change font_type arg to int for RIF.
6309 (w32_encode_char): Return int according to RIF requirements.
6310 (w32_compute_glyph_string_overhangs): Adapt to RIF.
6311 (w32_get_glyph_overhangs): New function for RIF. Uses generic
6312 x_get_glyph_overhangs.
6313 (w32_redisplay_interface): Add new members.
6314
6315 * macgui.h (XChar2b): Move typedef here for consolidation.
6316 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
6317
6318 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
6319 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
6320 consolidation.
6321
6322 * macterm.c: Remove consolidated defines and code.
6323 (mac_per_char_metric): New function for RIF.
6324 (mac_encode_char): Adapt to new RIF requirements.
6325 (mac_compute_glyph_string_overhangs): Adapt for RIF.
6326 (x_redisplay_interface): Add new members.
6327
6328 2003-03-15 Stefan Monnier <monnier@cs.yale.edu>
6329
6330 * keymap.c (Vmenu_events): New var.
6331 (syms_of_keymap): Initialize it.
6332 (where_is_internal): Check more carefully what is a menu event.
6333
6334 2003-03-14 Richard M. Stallman <rms@gnu.org>
6335
6336 * lread.c (read1): After #!, exit loop on eof.
6337
6338 2003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6339
6340 * gtkutil.h: Add declaration for xg_frame_cleared.
6341
6342 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
6343
6344 * gtkutil.c (struct xg_last_sb_pos): New structure.
6345 (handle_fixed_child): New function.
6346 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
6347 and force a redraw on them.
6348 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
6349 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
6350 so we can avoid unneeded redraws.
6351 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
6352 and force a redraw on the scroll bar.
6353 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
6354 if xg_last_sb_pos shows the positions are up to date.
6355 (xg_frame_cleared): New function.
6356
6357 2003-03-13 Kenichi Handa <handa@m17n.org>
6358
6359 * coding.c (Fdetect_coding_region): Fix docstring.
6360 (Fdetect_coding_string): Fix docstring.
6361
6362 2003-03-13 Andreas Schwab <schwab@suse.de>
6363
6364 * gtkutil.c: Add prototype for create_menus.
6365
6366 * data.c (long_to_cons): Fix type of top.
6367
6368 * xselect.c (selection_data_to_lisp_data): Use int instead of
6369 long for an integer of size 4.
6370
6371 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
6372 (xg_tool_bar_help_callback): Likewise.
6373
6374 2003-03-12 Andreas Schwab <schwab@suse.de>
6375
6376 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
6377
6378 2003-03-12 Kim F. Storm <storm@cua.dk>
6379
6380 The following changes consolidate the fringe handling from
6381 xterm.c, w32term.c, and macterm.c into xdisp.c.
6382
6383 * xdisp.c: Consolidate fringe handling code here.
6384 (left_bits, right_bits, continued_bits, continuation_bits)
6385 (ov_bits, zv_bits): Define fringe bitmaps.
6386 (fringe_bitmaps): New array holding fringe bitmaps.
6387 (draw_fringe_bitmap): Draw a specific bitmap; call display
6388 specific drawing routine via rif->draw_fringe_bitmap.
6389 (draw_row_fringe_bitmaps): Generic replacement for
6390 x_draw_row_fringe_bitmaps; all callers changed.
6391 (compute_fringe_widths): Generic replacement for
6392 x_compute_fringe_widths; all callers changed.
6393
6394 * dispextern.h (enum fringe_bitmap_type): Define here.
6395 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
6396 (fringe_bitmaps): Declare extern.
6397 (struct redisplay_interface): New member draw_fringe_bitmap.
6398 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
6399
6400 * xterm.c: Remove generic fringe code.
6401 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
6402 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
6403
6404 * w32term.c: Remove generic fringe code.
6405 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
6406 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
6407
6408 * macterm.c: Remove generic fringe code.
6409 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
6410 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
6411
6412 2003-03-11 Stefan Monnier <monnier@cs.yale.edu>
6413
6414 * print.c (Fprin1_to_string): Return unibyte string if possible.
6415
6416 2003-03-09 David Kastrup <dak@gnu.org>
6417
6418 * process.c (read_process_output): We have allocated enough space
6419 for readmax and carryover, so actually use the alloted space.
6420
6421 2003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6422
6423 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
6424 toolkit scrollbar click.
6425
6426 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
6427 for USE_GTK.
6428 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
6429 also.
6430 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
6431 scrollbar and control is pressed, call x_scroll_bar_handle_click.
6432
6433 * gtkutil.h: Declare xg_get_scroll_id_for_window.
6434
6435 * gtkutil.c (xg_get_scroll_id_for_window): New function.
6436 (xg_tool_bar_item_expose_callback): New function.
6437 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
6438 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
6439 on the tool bar widget.
6440 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
6441 to expose on the tool bar item widgets.
6442
6443 2003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6444
6445 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
6446 struct image* when deciding to update (struct image* may have been
6447 deleted from the image cache).
6448
6449 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
6450 the event isn't for a frame (i.e. for dialogs).
6451
6452 2003-03-07 Kenichi Handa <handa@m17n.org>
6453
6454 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
6455 composition components reaches the limit, terminate composing.
6456 (COMPOSITION_OK): New macro.
6457 (detect_coding_iso2022): Use it if an escape sequence for
6458 composition is found.
6459 (coding_restore_composition): Adjust the number of composition
6460 components if it is not sane.
6461
6462 2003-03-06 Juanma Barranquero <lektu@terra.es>
6463
6464 * w32term.h (struct w32_display_info): Add xrdb member to support
6465 passing resources via -xrm on Windows.
6466
6467 * w32term.c (w32_make_rdb): New function.
6468 (w32_term_init): Use it to initialize xrdb member of w32_display_info
6469 struct. Delete leftover code.
6470
6471 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
6472 for resources passed on the command line.
6473
6474 * w32reg.c (w32_get_rdb_resource): New function.
6475 (x_get_string_resource): Use it, so resources passed with -xrm
6476 supercede the ones in the registry.
6477
6478 2003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6479
6480 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
6481 instead of x_top_window_to_frame.
6482
6483 2003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6484
6485 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
6486 when restarting Emacs.
6487
6488 2003-03-03 Richard M. Stallman <rms@gnu.org>
6489
6490 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
6491 to run kill-buffer-query-functions.
6492 (Qkill_buffer_query_functions): New var.
6493 (syms_of_buffer): Init and staticpro it.
6494
6495 2003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6496
6497 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
6498
6499 2003-02-25 Kim F. Storm <storm@cua.dk>
6500
6501 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
6502 If centering point failed to make whole line visible and vscroll
6503 is non-zero, disable vscroll and try centering point again.
6504
6505 * lread.c (read1): Accept `single space' syntax like (? x).
6506
6507 2003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6508
6509 * keyboard.c (cancel_hourglass_unwind): Surround with
6510 #ifdef HAVE_X_WINDOWS
6511
6512 2003-02-25 Kenichi Handa <handa@m17n.org>
6513
6514 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
6515 process only when "subprocesses" is defined.
6516
6517 2003-02-24 Stefan Monnier <monnier@cs.yale.edu>
6518
6519 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
6520
6521 2003-02-24 Juanma Barranquero <lektu@terra.es>
6522
6523 * callint.c (fix_command): Declare as static void and move before
6524 Fcall_interactively.
6525
6526 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
6527 (syms_of_xdisp): Don't initialize Qwhen.
6528
6529 2003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6530
6531 * keyboard.c (cancel_hourglass_unwind): New function.
6532 (command_loop_1): Cancel hourglass with unwind-protect.
6533
6534 2003-02-23 Richard M. Stallman <rms@gnu.org>
6535
6536 * callint.c (fix_command): New subroutine, from Fcall_interactively.
6537 Detect (when ... (region-beginning)) etc.
6538 (Fcall_interactively): Call fix_command.
6539 (Qif, Qwhen): New variables.
6540 (syms_of_callint): Init and staticpro them.
6541
6542 * regex.c (print_partial_compiled_pattern): Output to stderr.
6543
6544 2003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
6545
6546 * dired.c (directory_files_internal): Don't expand directory.
6547 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
6548 instead. From Lars Hansen <larsh@math.ku.dk>.
6549
6550 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
6551
6552 * fns.c (string_to_multibyte): Remove unused var i.
6553 (Flanginfo): Fix int/Lisp_Object mixup.
6554 (void_call2): New fun.
6555 (Fmap_char_table): Use it in place of call2.
6556
6557 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
6558
6559 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
6560
6561 * keymap.c (copy_keymap_1): Make it static.
6562
6563 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
6564
6565 2003-02-22 David Ponce <david@dponce.com>
6566
6567 * lread.c (Fload): Don't check STRING_MULTIBYTE.
6568
6569 2003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6570
6571 * process.h: Removed subtty field from struct Lisp_Process.
6572
6573 * process.c (create_process): Remove setting of subtty.
6574 (emacs_get_tty_pgrp): New function.
6575 (Fprocess_running_child_p, process_send_signal):
6576 Call emacs_get_tty_pgrp instead of ioctl.
6577 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
6578
6579 2003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
6580
6581 * keymap.c (Fdefine_key): Doc fix.
6582
6583 2003-02-21 Juanma Barranquero <lektu@terra.es>
6584
6585 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
6586
6587 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
6588 POLLING_PROBLEM_IN_SELECT.
6589
6590 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
6591 Delete #undef of POLLING_PROBLEM_IN_SELECT.
6592
6593 * s/hpux10-20.h: New file.
6594
6595 * process.c (wait_reading_process_input):
6596 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
6597
6598 2003-02-20 Kenichi Handa <handa@m17n.org>
6599
6600 * fontset.c (check_fontset_name): If NAME is nil, return the
6601 default fontset.
6602 (override_font_info): New function.
6603 (Fset_fontset_font): Document that NAME nil means the default fontset.
6604 (Ffontset_info): If FONTSET is not the default fontset, merge
6605 FONTSET onto the copy of the default fontset, and work on that
6606 copy. Document that NAME nil means the default fontset.
6607 (Ffontset_font): Document that NAME nil means the default fontset.
6608
6609 * process.c (setup_process_coding_systems): If the process's
6610 in/out descriptor is -1, do nothing.
6611
6612 2003-02-19 Andreas Schwab <schwab@suse.de>
6613
6614 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
6615 Add prototypes.
6616
6617 2003-02-19 Kenichi Handa <handa@m17n.org>
6618
6619 * xfaces.c (try_alternative_families): Try all scalable fonts if
6620 Vscalable_fonts_allowed is not Qt.
6621
6622 2003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6623
6624 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
6625
6626 2003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6627
6628 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
6629 names.
6630
6631 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
6632 (sorted_font_list): Move allocation of struct font_name to
6633 x_face_list_fonts.
6634 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
6635 (Fx_list_fonts): Set maxnames to -1 to get all font names.
6636
6637 2003-02-18 Kim F. Storm <storm@cua.dk>
6638
6639 * lread.c (read1): Fix last change.
6640 "`" is not always special. Allow "?" after a character constant.
6641
6642 2003-02-18 Andrew Choi <akochoi@shaw.ca>
6643
6644 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
6645
6646 2003-02-18 Andreas Schwab <schwab@suse.de>
6647
6648 * window.c (window_scroll_pixel_based): Move outside a
6649 multi-glyph character before setting new window start.
6650
6651 * xdisp.c (in_display_vector_p): New function.
6652 * dispextern.h (in_display_vector_p): Declare.
6653
6654 2003-02-18 Kim F. Storm <storm@cua.dk>
6655
6656 * lread.c (read1): Fix and relax read syntax.
6657 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
6658 Only recognize "," after dotted-pair dot if inside backquote.
6659 Never include "`" or "," (inside backquote) in a symbol.
6660 Allow dotted-pair dot after a character constant.
6661 Allow "`" and "," (inside backquote) after a character constant.
6662
6663 2003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6664
6665 * gtkutil.c (xg_tool_bar_expose_callback): New function.
6666 (xg_create_tool_bar): Force style of tool bar to be horizontal with
6667 icons. Set name of tool bar to emacs-toolbar.
6668 (update_frame_tool_bar): Connect expose event to
6669 xg_tool_bar_expose_callback.
6670
6671 2003-02-17 Richard M. Stallman <rms@gnu.org>
6672
6673 * keyboard.c (this_command_key_count_reset): New variable.
6674 Initiatize to 0 where this_command_key_count is set.
6675 (read_char): Save and restore this_command_key_count_reset
6676 around input method code.
6677 (read_char): If this_command_key_count_reset, echo reread commands.
6678 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
6679
6680 2003-02-17 Kenichi Handa <handa@m17n.org>
6681
6682 * fns.c (string_to_multibyte): Always return a multibyte string.
6683
6684 2003-02-16 Jason Rumney <jasonr@gnu.org>
6685
6686 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
6687 Negative max_fonts parameter means list all.
6688
6689 2003-02-14 Dave Love <fx@gnu.org>
6690
6691 * fns.c (Flanginfo): Doc fix.
6692
6693 2003-02-13 Kim F. Storm <storm@cua.dk>
6694
6695 * lread.c (read_escape): Interpret \s as a SPACE character, except
6696 for \s-X in a character constant which still is the super modifier.
6697 (read1): Signal an `invalid read syntax' error if a character
6698 constant is immediately followed by a digit or symbol character.
6699
6700 * search.c (Fmatch_data): Doc fix. Explicitly state that
6701 match-data is undefined if last search failed.
6702
6703 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
6704 All uses changed.
6705
6706 2003-02-12 Juanma Barranquero <lektu@terra.es>
6707
6708 * eval.c (Fdefmacro): Fix typo.
6709
6710 2003-02-12 Kim F. Storm <storm@cua.dk>
6711
6712 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
6713 macro is a string, convert meta modifiers in string when copying
6714 the string into a vector.
6715
6716 2003-02-11 Kim F. Storm <storm@cua.dk>
6717
6718 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
6719
6720 2003-02-11 Kenichi Handa <handa@m17n.org>
6721
6722 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
6723
6724 2003-02-10 Kim F. Storm <storm@cua.dk>
6725
6726 * process.c: Doc fixes.
6727 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
6728
6729 2003-02-10 Kenichi Handa <handa@m17n.org>
6730
6731 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
6732
6733 * process.c (QCfilter_multibyte): New variable.
6734 (setup_process_coding_systems): New function.
6735 (Fset_process_buffer, Fset_process_filter):
6736 Call setup_process_coding_systems.
6737 (Fstart_process): Initialize the member `filter_multibyte' of
6738 struct Lisp_Process.
6739 (create_process): Call setup_process_coding_systems.
6740 (Fmake_network_process): New keyward `:filter-multibyte'.
6741 Initialize the member `filter_multibyte' of struct Lisp_Process.
6742 Call setup_process_coding_systems.
6743 (server_accept_connection): Call setup_process_coding_systems.
6744 (read_process_output): If the process has a filter, decide the
6745 multibyteness of a string to given to the filter by
6746 `filter_multibyte' member of the process. If the process doesn't
6747 have a filter and the result of conversion is unibyte, use
6748 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
6749 multibyte form.
6750 (Fset_process_coding_system): Call setup_process_coding_systems.
6751 (Fset_process_filter_multibyte): New function.
6752 (Fprocess_filter_multibyte_p): New function.
6753 (syms_of_process): Intern and staticpro QCfilter_multibyte.
6754 Defsubr Sset_process_filter_multibyte and
6755 Sprocess_filter_multibyte_p.
6756
6757 * process.h (struct Lisp_Process): New member filter_multibyte.
6758
6759 * lisp.h (setup_process_coding_systems): Add prototype.
6760
6761 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
6762 process, update coding systems for the process.
6763
6764 2003-02-09 Kenichi Handa <handa@m17n.org>
6765
6766 * fns.c (string_to_multibyte): New function.
6767 (Fstring_to_multibyte): New function.
6768 (syms_of_fns): Defsubr it.
6769
6770 2003-02-08 Andreas Schwab <schwab@suse.de>
6771
6772 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
6773 instead of the substitution.
6774
6775 2003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6776
6777 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
6778
6779 * xmenu.c (menu_position_func): Adjust menu popup position so that
6780 the menu is fully visible.
6781
6782 2003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6783
6784 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
6785 (x_make_frame_invisible, x_wm_set_icon_position):
6786 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
6787
6788 * xfns.c (x_set_name, x_set_title): Ditto.
6789
6790 2003-02-04 Richard M. Stallman <rms@gnu.org>
6791
6792 * keyboard.c (echo_now): Update before_command_echo_length.
6793 (Freset_this_command_lengths): Reset this_command_key_count etc.
6794 immediately rather than arranging to do it later.
6795 (before_command_key_count_1, before_command_echo_length_1)
6796 (before_command_restore_flag): Vars deleted.
6797 (add_command_key): Don't handle before_command_restore_flag.
6798 (read_char, record_menu_key): Don't update before_command_key_count or
6799 before_command_echo_length.
6800 (read_char): Don't handle before_command_restore_flag.
6801
6802 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
6803 in direct-output clauses if it wouldn't be called in the ordinary case.
6804
6805 2003-02-04 Kim F. Storm <storm@cua.dk>
6806
6807 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
6808
6809 2003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6810
6811 * gtkutil.c (remove_from_container): Copying list is not needed.
6812 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
6813 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
6814 on list returned from gtk_container_get_children to avoid memory leak.
6815
6816 2003-02-01 Jason Rumney <jasonr@gnu.org>
6817
6818 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
6819 local malloc.
6820 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
6821 definitions in xpm.h.
6822 (init_xpm_functions): New function.
6823 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
6824 (init_external_image_libraries): Try to load libXpm.dll.
6825
6826 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
6827 timestamp.
6828
6829 2003-01-31 Dave Love <fx@gnu.org>
6830
6831 * syntax.c (Fskip_chars_forward)
6832 (open-paren-in-column-0-is-defun-start): Doc fix.
6833
6834 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
6835
6836 * fileio.c: Support // at start of name for Cygwin (just added proper
6837 preprocessor tests).
6838
6839 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
6840
6841 * Makefile.in: Use @EXEEXT@ for Cygwin.
6842
6843 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
6844
6845 * s/cygwin.h: Added for Cygwin port.
6846
6847 2003-01-31 Juanma Barranquero <lektu@terra.es>
6848
6849 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
6850 when including gif_lib.h.
6851 (init_gif_functions, init_tiff_functions): New functions.
6852 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
6853 Windows. Disable color table lookups. Call library functions
6854 through pointers determined at runtime.
6855 (init_external_image_libraries): Try to load libungif.dll and
6856 libtiff.dll.
6857
6858 2003-01-31 Kenichi Handa <handa@m17n.org>
6859
6860 * xdisp.c (SKIP_GLYPHS): New macro.
6861 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
6862
6863 2003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6864
6865 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
6866
6867 2003-01-30 Dave Love <fx@gnu.org>
6868
6869 * alloc.c (Vgc_elapsed, gcs_done): New variables.
6870 (Fgarbage_collect): Use them.
6871 (init_alloc, syms_of_alloc): Set them up.
6872
6873 2003-01-30 Juanma Barranquero <lektu@terra.es>
6874
6875 * w32fns.c (init_external_image_libraries): Add missing operator.
6876
6877 2003-01-29 Jason Rumney <jasonr@gnu.org>
6878
6879 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
6880 an alternative name for jpeg.dll.
6881
6882 2003-01-29 Kenichi Handa <handa@m17n.org>
6883
6884 * xdisp.c (set_cursor_from_row): Pay attention to string display
6885 properties.
6886
6887 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
6888
6889 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
6890 <escape>.
6891 (keycode_to_xkeysym_table): Reformat and add more comments.
6892 (XTread_socket): Drop special case for backspace.
6893
6894 2003-01-28 Andrew Choi <akochoi@shaw.ca>
6895
6896 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
6897 values in old-style RGB specs.
6898
6899 2003-01-27 Juanma Barranquero <lektu@terra.es>
6900
6901 * w32fns.c (init_external_image_libraries): Try alternate names for the
6902 jpeg dll.
6903
6904 2003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6905
6906 * gtkutil.c (create_dialog, xg_separator_p)
6907 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
6908 before calling strcmp or strlen.
6909
6910 2003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6911
6912 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
6913 and handle image load failure.
6914
6915 2003-01-26 Jason Rumney <jasonr@gnu.org>
6916
6917 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
6918 New functions.
6919 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
6920 Disable color table lookups. Call jpeg library functions
6921 through pointers determined at runtime.
6922 (init_external_image_libraries): Try to load jpeg.dll.
6923
6924 2003-01-25 Richard M. Stallman <rms@gnu.org>
6925
6926 * lisp.h: Declare format2 instead of format1.
6927
6928 * fileio.c (barf_or_query_if_file_exists):
6929 Call format2 instead of format1.
6930
6931 * editfns.c (format2): New function, replaces format1
6932 but takes exactly two Lisp Objects as format args.
6933
6934 * buffer.c (Fkill_buffer): Call format2 instead of format1.
6935
6936 2003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6937
6938 * xterm.h: Change to return value of x_dispatch_event to int.
6939
6940 * xterm.c (x_filter_event): New function.
6941 (event_handler_gdk, XTread_socket): Call x_filter_event.
6942 (x_dispatch_event): Change to return value of finish.
6943 (event_handler_gdk): Use return value from x_dispatch_event.
6944
6945 * xfns.c (x_window): Call create_frame_xic for GTK version to
6946 initialize input methods.
6947
6948 * gtkutil.h: Add (void) prototypes.
6949
6950 * gtkutil.c (create_menus): Remove code that puts the help menu to
6951 the right.
6952
6953 2003-01-25 Jason Rumney <jasonr@gnu.org>
6954
6955 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
6956 [HAVE_PNG]: Sync with xfns.c version.
6957 (png_load): Adjust colors for Windows. Use Windows
6958 bitmaps. Disable color table lookups.
6959 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
6960 (init_png_functions): New function.
6961 (png_read_from_memory, png_load): Call png library functions
6962 through pointers determined at runtime.
6963 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
6964 (init_external_image_libraries): New function.
6965 (init_xfns): Call it.
6966
6967 2003-01-24 Andreas Schwab <schwab@suse.de>
6968
6969 * minibuf.c (Fminibuffer_message): Verify type of parameter.
6970
6971 2003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6972
6973 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
6974 of static initializer.
6975
6976 2003-01-24 Dave Love <fx@gnu.org>
6977
6978 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
6979 architectures.
6980
6981 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
6982 Use __alignof__.
6983
6984 2003-01-24 Kenichi Handa <handa@m17n.org>
6985
6986 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
6987 It it is nonzero, don't pretend that an invisible area doesn't exist.
6988 (command_loop_1): Call adjust_point_for_property with proper
6989 second arg.
6990
6991 2003-01-22 Jason Rumney <jasonr@gnu.org>
6992
6993 Sync changes with xterm.c and xfns.c.
6994
6995 * w32term.c (x_draw_glyph_string_foreground)
6996 (x_draw_composite_glyph_string_foreground): Implement overstriking.
6997
6998 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
6999 phys_cursor's hpos is overwritten. This is still not completely
7000 correct, as it doesn't really make sense to use hpos at all to
7001 get the cursor glyph (as that is relative to the width of the
7002 characters on the line, which may have changed during the update).
7003
7004 * w32term.c (notice_overwritten_cursor): Handle the special case
7005 of the cursor being in the first blank non-text line at the
7006 end of a window.
7007
7008 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
7009 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
7010 Compute from the x position returned by x_draw_glyphs.
7011
7012 (x_display_and_set_cursor): Don't set phys_cursor_width here,
7013 except for NO_CURSOR and system caret, to make phys_cursor_width
7014 contain what its name suggests.
7015 (notice_overwritten_cursor): Consider the cursor image erased if
7016 the output area intersects the cursor image in y-direction.
7017
7018 * w32term.c (note_mode_line_or_margin_highlight): Rename from
7019 note_mode_line_highlight and extend.
7020
7021 * w32term.c (last_window): New variable.
7022 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
7023 (note_mouse_movement): Remove reimplemented code in #if 0.
7024
7025 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
7026 not update_mode_lines, and always set it to 1.
7027
7028 2003-01-21 Jason Rumney <jasonr@gnu.org>
7029
7030 * w32fns.c (IDC_HAND): Define it if system headers don't.
7031
7032 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
7033
7034 * w32term.h (struct w32_output): New member hand_cursor.
7035 (WM_EMACS_SETCURSOR): New message definition.
7036
7037 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
7038 function w32_define_cursor.
7039 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
7040 position, change member name output_data.x to output_data.w32 and
7041 add function w32_define_cursor.
7042 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
7043 and change member name output_data.x to output_data.w32.
7044 (w32_initialize_display_info):
7045 Setup dpyinfo->vertical_scroll_bar_cursor.
7046
7047 * w32fns.c (Vx_hand_shape): New variable.
7048 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
7049 WM_EMACS_SETCURSOR.
7050 (x-create-frame): Setup Cursor types.
7051
7052 2003-01-21 David Ponce <david@dponce.com>
7053
7054 * w32term.c (w32_encode_char): For DIM=1 charset, set
7055 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
7056 x_encode_char change by Kenichi Handa <handa@m17n.org> on
7057 2002-09-30.)
7058 (w32_draw_relief_rect): Declare all args.
7059 (w32_define_cursor): New.
7060
7061 * w32fns.c (w32_load_cursor): New function.
7062 (w32_init_class): Use it.
7063 (x_put_x_image): Declare all args.
7064
7065 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
7066
7067 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
7068
7069 2003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7070
7071 * gtkutil.c: Must include stdio.h before termhooks.h
7072
7073 2003-01-21 Dave Love <fx@gnu.org>
7074
7075 * alloc.c (Fgc_status): Print zombie list.
7076 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
7077 Fix assignment of zombies.
7078 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
7079 Don't take car of non-cons.
7080
7081 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
7082
7083 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
7084
7085 2003-01-20 David Ponce <david@dponce.com>
7086
7087 * w32menu.c (digest_single_submenu): Declare all args.
7088
7089 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
7090 changes in xmenu.c:
7091
7092 (parse_single_submenu): Use individual keymap's prompt
7093 string as pane name, if there is one.
7094 (set_frame_menubar): Save menu_items_n_panes from each call to
7095 parse_single_submenu and use it when calling digest_single_submenu.
7096
7097 2003-01-20 Steven Tamm <steventamm@mac.com>
7098
7099 * macterm.c (XTread_socket): Checks for valid, visible window
7100 before sending a scroll-wheel event.
7101
7102 2003-01-20 Richard M. Stallman <rms@gnu.org>
7103
7104 * xdisp.c (redisplay_window): If mini window's buffer is not
7105 a minibuffer, then redisplay it like other windows.
7106
7107 2003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7108
7109 * gtkutil.c (xg_create_frame_widgets): Check if there is an
7110 external tool bar before setting tool bar height.
7111
7112 2003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7113
7114 * xterm.c (handle_one_xevent): Surround popup_activated
7115 with #ifdef:s for non-toolkit version.
7116
7117 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
7118 (gtkutil.o): New file.
7119 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
7120 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
7121
7122 * gtkutil.c: New file for GTK version.
7123
7124 * gtkutil.h: New file for GTK version.
7125
7126 * xterm.h: Add xt_or_gtk_widget.
7127 Include gtk files for USE_GTK.
7128 (struct x_output): Add toolbar_height.
7129 (struct x_output): Add GTK widgets and Gdk size_hints.
7130 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
7131 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
7132 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
7133
7134 * xterm.c: Include gtkutil.h for USE_GTK.
7135 Declare extern void free_frame_menubar for USE_GTK.
7136 (note_mouse_highlight): Check popup_activated for USE_GTK.
7137 (xt_action_hook): Don't compile if USE_GTK.
7138 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
7139 (xg_scroll_callback): New function.
7140 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
7141 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
7142 for USE_GTK.
7143 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
7144 xg_show_scroll_bar for USE_GTK.
7145 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
7146 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
7147 (event_handler_gdk): New function for USE_GTK.
7148 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
7149 (handle_one_xevent): Make sure widget is mapped before
7150 calling x_real_positions for USE_GTK.
7151 (XTread_socket): Add GTK event loop for USE_GTK.
7152 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
7153 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
7154 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
7155 (x_iconify_frame): Add code for USE_GTK.
7156 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
7157 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
7158 is in gtkutil.c.
7159 (x_term_init): Add initialization for GTK.
7160 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
7161
7162 * xmenu.c: Include gtkutil.h for USE_GTK.
7163 (Fx_popup_menu): Use current position if x and y is NIL.
7164 (single_menu_item, single_menu_item, Fx_popup_dialog):
7165 Check for USE_GTK.
7166 (popup_widget_loop): New function for USE_GTK.
7167 (x_activate_menubar): Add code for USE_GTK.
7168 (popup_activate_callback, popup_deactivate_callback)
7169 (menu_highlight_callback, menubar_selection_callback):
7170 Add USE_GTK versions.
7171 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
7172 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
7173 (free_frame_menubar): Only compile if not USE_GTK. GTK version
7174 is in gtkutil.c.
7175 (popup_selection_callback): New version for USE_GTK.
7176 (create_and_show_popup_menu): New fuction, one USE_GTK version and
7177 one USE_X_TOOLKIT version.
7178 (xmenu_show): Call create_and_show_popup_menu.
7179 (dialog_selection_callback): New version for USE_GTK.
7180 (create_and_show_dialog): New fuction, one USE_GTK version and
7181 one USE_X_TOOLKIT version.
7182 (xdialog_show): Call create_and_show_dialog.
7183
7184 * xfns.c: Include gtkutil for USE_GTK.
7185 (x_window_to_frame, x_any_window_to_frame)
7186 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
7187 (x_top_window_to_frame): Add code for USE_GTK.
7188 (x_set_background_color): Call xg_set_background_color for GTK.
7189 (x_set_menu_bar_lines): Check for USE_GTK.
7190 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
7191 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
7192 (x_window): Call xg_create_frame_widgets for USE_GTK.
7193 (Fx_create_frame): Check for USE_GTK
7194 (Fx_file_dialog): New implementation for USE_GTK.
7195
7196 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
7197 (update_menu_bar): Add check for USE_GTK.
7198 (update_tool_bar): Add check for USE_GTK and external tool bar.
7199 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
7200 (redisplay_internal): Add check for USE_GTK and popup_activated.
7201 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
7202 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
7203 (display_menu_bar): Add check for USE_GTK
7204
7205 * lisp.h: Declare Vx_resource_name extern.
7206
7207 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
7208 for USE_GTK.
7209 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
7210
7211 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
7212 (FRAME_EXTERNAL_TOOL_BAR): New macro.
7213 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
7214
7215 * fileio.c (Fread_file_name): Add check for USE_GTK.
7216
7217 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
7218 Add check for USE_GTK.
7219
7220 * config.in: Added HAVE_GTK
7221
7222 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
7223
7224 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
7225
7226 * charset.h (Funibyte_char_to_multibyte): Export.
7227
7228 2003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7229
7230 * xmenu.c (mouse_position_for_popup): New function.
7231 (Fx_popup_menu): Call mouse_position_for_popup for X and
7232 mouse_position_hook for others.
7233
7234 2003-01-17 Kim F. Storm <storm@cua.dk>
7235
7236 * editfns.c (Finsert): Mention `string-make-multibyte' and
7237 `string-as-multibyte' in doc string.
7238
7239 2003-01-17 Kenichi Handa <handa@m17n.org>
7240
7241 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
7242
7243 * editfns.c (Fformat): Convert an unibyte char argument that is
7244 formatted by "%c" to multibyte if the total result must be a
7245 multibyte string.
7246
7247 2003-01-16 Kim F. Storm <storm@cua.dk>
7248
7249 * process.c (set-process-filter): Document unibyte/multibyte-ness
7250 of string argument.
7251
7252 2003-01-16 Kenichi Handa <handa@m17n.org>
7253
7254 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
7255
7256 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
7257 (re_search_2): Likewise.
7258
7259 2003-01-15 Kenichi Handa <handa@m17n.org>
7260
7261 * xdisp.c (message_dolog): Fix bug of the case that *Message*
7262 buffer is unibyte.
7263
7264 2003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
7265
7266 * fns.c (Fsubstring): Clarify doc string.
7267
7268 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
7269 (Fprevious_char_property_change)
7270 (Fnext_single_char_property_change)
7271 (Fprevious_single_char_property_change, Fnext_property_change)
7272 (Fnext_single_property_change, Fprevious_property_change)
7273 (Fprevious_single_property_change, Fadd_text_properties)
7274 (Fput_text_property, Fset_text_properties)
7275 (Fremove_text_properties, Fremove_list_of_text_properties)
7276 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
7277
7278 2003-01-14 Kim F. Storm <storm@cua.dk>
7279
7280 * process.h (struct Lisp_Process): New member plist replaces old
7281 member private_vars. All uses changed.
7282
7283 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
7284 (QCplist): Rename from QCvars. Change all uses.
7285 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
7286 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
7287 (syms_of_process): Intern, staticpro, defsubr these.
7288 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7289
7290 2003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7291
7292 * m/delta.h: Remove (obsolete).
7293
7294 2003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
7295
7296 * fileio.c (Fdelete_directory, Fdelete_file): Document the
7297 behaviour in front of symlinks.
7298 (Fdelete_file): Raise an error on directories.
7299
7300 2003-01-13 Dave Love <fx@gnu.org>
7301
7302 * fns.c (Freverse): Use QUIT.
7303
7304 2003-01-13 Richard M. Stallman <rms@gnu.org>
7305
7306 * minibuf.c (minibuffer_completion_contents):
7307 Error if point is inside prompt.
7308
7309 * keyboard.c (command_loop_1): Don't redisplay directly
7310 if there's a post-command-hook.
7311
7312 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
7313 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
7314
7315 2003-01-12 Kim F. Storm <storm@cua.dk>
7316
7317 * process.h (struct Lisp_Process): New member private_vars.
7318
7319 * process.c (QCvars): New variable.
7320 (syms_of_process): Intern and staticpro it.
7321 (Fset_process_contact): Removed function.
7322 (Fprocess_variable, Fset_process_variable): New functions.
7323 (syms_of_process): Defsubr them.
7324 (Fstart_process): Initialize private_vars plist to nil.
7325 (Fmake_network_process): New arg :vars to setup the private
7326 variables for new network process.
7327 (server_accept_connection): Copy server's private variables to
7328 client process.
7329
7330 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
7331 crashes). Code rewritten and simplified. Now directly aligns the
7332 pointer and recalculates pure_bytes_used, rather than aligning the
7333 size and adjusting the pointer.
7334
7335 2003-01-11 Kim F. Storm <storm@cua.dk>
7336
7337 * process.c (Fset_process_contact): New function.
7338 (syms_of_process): defsubr it.
7339 (make-network-process): Update doc.
7340
7341 2003-01-10 Andreas Schwab <schwab@suse.de>
7342
7343 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
7344 Reported by Berthold Gunreben <b.gunreben@web.de>.
7345
7346 2003-01-10 Dave Love <fx@gnu.org>
7347
7348 * composite.c (syms_of_composite): Make composition_hash_table weak.
7349
7350 2003-01-09 Kim F. Storm <storm@cua.dk>
7351
7352 * process.c (Fmake_network_process): Convert new port number
7353 to host byte order for `:service t' case. From Mario Lang.
7354
7355 2003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7356
7357 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
7358 instead of XtAppProcessEvent.
7359
7360 * xterm.c (handle_one_xevent): New function.
7361 (x_dispatch_event): New function.
7362 (XTread_socket): Call handle_one_xevent.
7363
7364 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
7365
7366 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
7367 call XQueryPointer to get coordinates.
7368 (popup_get_selection): Do not set popup_activated_flag to zero,
7369 let popup_deactivate_callback do that. Needed for Motif.
7370 Call x_dispatch_event instead of XtDispatchEvent.
7371 (xmenu_show): Calculate root coordinate from frame top/left position.
7372
7373 2003-01-08 Kim F. Storm <storm@cua.dk>
7374
7375 * process.c (server_accept_connection): Fix recording of new
7376 connection's local address in :local property of contact info.
7377 (Fmake_network_process): Record local network address for new
7378 client processes in :local property of contact info.
7379 (format-network-address): Add arg OMIT-PORT. Change callers.
7380
7381 2003-01-07 Dave Love <fx@gnu.org>
7382
7383 * Makefile.in (fns.o): Depend on coding.h.
7384
7385 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
7386
7387 * minibuf.c (Fread_variable): Doc fix.
7388
7389 * eval.c (Fuser_variable_p): Doc change. For custom variables,
7390 use the same test as for custom-variable-p.
7391
7392 2003-01-05 Richard M. Stallman <rms@gnu.org>
7393
7394 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
7395 Count LAST_LINE_MISFIT in scroll margin for end of window.
7396 Move label too_near_end before setting SCROLL_MARGIN_POS.
7397 Set LAST_LINE_MISFIT before jumping there.
7398
7399 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
7400 scroll_conservatively case. If scrolling that much doesn't change
7401 STARTP, move it down one line.
7402
7403 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
7404 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
7405
7406 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
7407 selected frame.
7408
7409 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
7410 (syms_of_keymap): staticpro them.
7411 (Fapropos_internal): Initialize them and clear them out.
7412 Don't GCPRO them.
7413
7414 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
7415 Doc fixes.
7416
7417 * lisp.h: New misc type Lisp_Save_Value.
7418 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
7419 (XSAVE_VALUE): New macro.
7420 (struct Lisp_Save_Value): New data type.
7421 (union Lisp_Misc): Add u_save_value alternative.
7422 (make_save_value): Declared.
7423
7424 * alloc.c (make_save_value): New function.
7425
7426 * xterm.c (x_catch_errors): Save dpy using make_save_value.
7427 (x_catch_errors_unwind): Call XSync.
7428
7429 2003-01-01 Richard M. Stallman <rms@gnu.org>
7430
7431 * window.c (window_scroll_pixel_based): Partially undo last change.
7432
7433 * keyboard.c (command_loop_1): Call adjust_point_for_property
7434 in direct action cases for Qforward_char and Qbackward_char.
7435 Set already_adjusted so it won't be done twice.
7436
7437 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
7438
7439 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
7440 type definition of size_t.
7441
7442 2003-01-02 Steven Tamm <steventamm@mac.com>
7443
7444 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
7445 distinguish Carbon GUI builds from X11 builds on darwin.
7446
7447 2002-12-30 Steven Tamm <steventamm@mac.com>
7448
7449 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
7450 to default to t.
7451
7452 2002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
7453
7454 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
7455
7456 2002-12-28 Steven Tamm <steventamm@mac.com>
7457
7458 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
7459 allow building in a different directory than source. Uses some
7460 GNU Make extensions, but there is no other make on Mac OS X.
7461
7462 2002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
7463
7464 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
7465 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
7466 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
7467 (Fstring_to_number): Mention the returned value in the doc strings.
7468
7469 2002-12-23 Richard M. Stallman <rms@gnu.org>
7470
7471 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
7472 <scroll-down-aggressively>: Doc fix.
7473
7474 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
7475 string as pane name, if there is one.
7476 (set_frame_menubar): Save menu_items_n_panes from each call to
7477 parse_single_submenu and use it when calling digest_single_submenu.
7478
7479 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
7480 Don't try to make last line fully visible if it is past end of window.
7481
7482 2002-12-22 Steven Tamm <steventamm@mac.com>
7483
7484 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
7485 (mac_menu_show): Add support for hierarchical popup menus.
7486 (add_menu_item): Remove indentation support.
7487 (fill_submenu, fill_menu): Create hierarchical menus
7488 instead of using indentation.
7489
7490 2002-12-22 Richard M. Stallman <rms@gnu.org>
7491
7492 * xdisp.c (try_cursor_movement): Don't call try_window here.
7493 (redisplay_window): Never redisplay minibuffer when inactive.
7494
7495 * window.c (select_window_1): Undo 9/21 change.
7496
7497 2002-12-22 Steven Tamm <steventamm@mac.com>
7498
7499 * macterm.c (XTread_socket): Call KeyTranslate for control and
7500 meta to deal correctly shifted non-alpha characters, like C-S-5
7501 being treated like C-%. Does not look for shift key to deal
7502 with masking off control-key with mac-reverse-ctrl-meta.
7503
7504 2002-12-21 Richard M. Stallman <rms@gnu.org>
7505
7506 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
7507 If it is non-nil, run timers. Use an unwind-protect to requeue
7508 the events that were read ahead.
7509 (popup_get_selection_unwind): New subroutine.
7510 (popup_get_selection_queue): File-scope variable now holds that queue.
7511 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
7512 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
7513 Use an unwind-protect to pop down the dialog box.
7514 (xdialog_show_unwind): New subroutine implements that.
7515
7516 * xdisp.c (row_containing_pos): Change exit test using last_y.
7517 (try_window_id): Abort if row_containing_pos returns null.
7518
7519 * lread.c (load_error_handler): New function.
7520 (Fload): Handle errors in Fsubstitute_in_file_name.
7521 Don't expect Fsignal to return.
7522
7523 * eval.c: Errors and throws work right with interrupt blocking.
7524 (struct catchtag): New elt interrupt_input_blocked.
7525 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
7526 (internal_catch, Fcondition_case, internal_condition_case)
7527 (internal_condition_case_1, internal_condition_case_2): Save it.
7528 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
7529
7530 * editfns.c (Fformat): Add parens.
7531
7532 * dired.c (file_name_completion): Fix that change.
7533 Delete special quit-handling code; just use QUIT.
7534
7535 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com> (tiny change)
7536
7537 * dired.c (file_name_completion): Close directory on error
7538 just as in directory_files_internal.
7539
7540 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
7541
7542 * window.c (Fset_window_configuration): Set old_point to correct
7543 value when new_current_buffer == current_buffer.
7544
7545 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
7546
7547 Revisited my earlier fix for the following entry in etc/PROBLEMS:
7548 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
7549 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
7550
7551 These changes were in part based upon suggestions made by Peter
7552 'Luna' Runestig [peter@runestig.com].
7553
7554 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
7555 g_b_init_get_token_information, g_b_init_lookup_account_sid,
7556 g_b_init_get_sid_identifier_authority ): Add several static
7557 global variables.
7558
7559 * w32.c (globals_of_w32): New function. Used to initialize those
7560 global variables that must always be initialized on startup even
7561 when the global variable initialized is non zero. Its primary
7562 purpose at this time is to set the global variables
7563 g_b_init_is_windows_9x, g_b_init_open_process_token,
7564 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
7565 g_b_init_get_sid_identifier_authority to 0 on startup.
7566 Called from main.
7567
7568 * w32.c (is_windows_9x): Perform initialization only if
7569 g_b_init_is_windows_9x is equal to 0. On initialization set
7570 g_b_init_is_windows_9x equal to 1.
7571
7572 * w32.c (open_process_token): Perform initialization only if
7573 g_b_init_open_process_token is equal to 0. On initialization set
7574 g_b_init_open_process_token equal to 1.
7575
7576 * w32.c (get_token_information): Perform initialization only if
7577 g_b_init_get_token_information is equal to 0. On initialization
7578 set g_b_init_get_token_information equal to 1.
7579
7580 * w32.c (lookup_account_sid): Perform initialization only if
7581 g_b_init_lookup_account_sid is equal to 0. On initialization
7582 set g_b_init_lookup_account_sid equal to 1.
7583
7584 * w32.c (get_sid_identifier_authority): Perform initialization
7585 only if g_b_init_get_sid_identifier_authority is equal to 0.
7586 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
7587
7588 * w32fns.c (globals_of_w32fns): New function. Used to initialize
7589 those global variables that must always be initialized on startup
7590 even when the global variable initialized is non zero.
7591 Its primary purpose at this time is to initialize the global variable
7592 track_mouse_event_fn.
7593
7594 * w32fns.c (w32_wnd_proc): Remove initialization of
7595 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
7596
7597 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
7598
7599 * w32menu.c (globals_of_w32menu): New function. Used to
7600 initialize those global variables that must always be initialized
7601 on startup even when the global variable initialized is non zero.
7602 Its primary purpose at this time is to initialize the global
7603 variables get_menu_item_info and set_menu_item_info.
7604
7605 * w32menu.c (initialize_frame_menubar): Remove initialization of
7606 get_menu_item_info and set_menu_item_info.
7607
7608 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
7609
7610 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
7611 Declare them.
7612
7613 * emacs.c (main): Call globals_of_w32 prior to calling
7614 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
7615 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
7616 is defined.
7617
7618 * w32term.c (x_update_window_begin): Fix Windows API error
7619 detected by BoundsChecker. Test to determine if
7620 w32_system_caret_hwnd is NULL prior to attempting to use
7621 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
7622
7623 * w32term.c (x_update_window_end): Fix Windows API error
7624 detected by BoundsChecker. Test to determine if
7625 w32_system_caret_hwnd is NULL prior to attempting to use
7626 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
7627
7628 2002-12-17 Kenichi Handa <handa@m17n.org>
7629
7630 * coding.c (coding_system_require_warning): New variable.
7631 (syms_of_coding): DEFVAR it.
7632
7633 * coding.h (coding_system_require_warning): Extern it.
7634
7635 * fileio.c (choose_write_coding_system): Even if
7636 Vcoding_system_for_write is non-nil, if
7637 coding_system_require_warning is nonzero, call
7638 Vselect_safe_coding_system_function.
7639
7640 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
7641
7642 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
7643 (lisp): Add font-core.
7644
7645 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
7646
7647 * textprop.c (text_read_only): New arg `propval'.
7648 (get_char_property_and_overlay): Remove unused var `next_overlay'.
7649 (verify_interval_modification): Use text_read_only's new arg.
7650
7651 2002-12-13 Kenichi Handa <handa@m17n.org>
7652
7653 * coding.c (Funencodable_char_position): Set pend correctly.
7654
7655 2002-12-12 Jason Rumney <jasonr@gnu.org>
7656
7657 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
7658 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
7659 Be more careful about when help_events are generated.
7660
7661 2002-12-12 Steven Tamm <steventamm@mac.com>
7662
7663 * macterm.c (mac_check_for_quit_char): Correctly set the
7664 modifiers of the event to 0.
7665 * mac.c (sys_select): Duplicate rfds before calling select to
7666 ensure that rfds survive the while loop.
7667
7668 2002-12-11 Kim F. Storm <storm@cua.dk>
7669
7670 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
7671 row_containing_pos returned NULL.
7672
7673 2002-12-10 Steven Tamm <steventamm@mac.com>
7674
7675 * mac.c (sys_read): Fix sys_read to not call select if IO is
7676 non-blocking.
7677 (sys_select): Fix sys_select to not use a timeout larger than
7678 the one given.
7679
7680 2002-12-10 Juanma Barranquero <lektu@terra.es>
7681
7682 * editfns.c (Fformat): Use alloca, not _alloca.
7683
7684 2002-12-09 Richard M. Stallman <rms@gnu.org>
7685
7686 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
7687 as the last thing.
7688
7689 2002-12-09 Dave Love <fx@gnu.org>
7690
7691 * s/sol2-8.h: Removed. (Not necessary.)
7692
7693 2002-12-09 Matthew Swift <swift@alum.mit.edu>
7694
7695 * editfns.c (Fformat): Handle precision in string conversion
7696 specifiers like libc functions do (ie, print at most that many
7697 characters).
7698
7699 2002-12-08 Richard M. Stallman <rms@gnu.org>
7700
7701 * xdisp.c (row_containing_pos): Check more carefully
7702 whether charpos is really in the row before returning it.
7703
7704 2002-12-07 Steven Tamm <steventamm@mac.com>
7705
7706 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
7707
7708 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
7709 each stack frame. This may change as it could be time consuming.
7710
7711 * macterm.c (mac_check_for_quit_char, quit_char_comp)
7712 (init_quit_char_handler, mac_determine_quit_char_modifiers)
7713 (mac_initialize): Add code to check for pressing of quit_char
7714 in the OS event queue.
7715
7716 * mac.c (sys_select): Call mac_check_for_quit_char every second
7717 while blocking on select.
7718
7719 * mac.c (sys_read): Use sys_select to test for input first
7720 before calling read, to allow C-g to break.
7721
7722 2002-12-07 Richard M. Stallman <rms@gnu.org>
7723
7724 * minibuf.c (Fcompleting_read): Doc fix.
7725
7726 * lread.c (syms_of_lread) <load-history>: Doc fix.
7727
7728 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
7729
7730 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
7731 autoload.
7732
7733 * data.c (Fdefalias): Record in load-history redefining an autoload.
7734
7735 * alloca.c: Undo ifdef change accidentally made on 12-04.
7736
7737 2002-12-06 Francesco Potorti` <pot@gnu.org>
7738
7739 * xfns.c (png_load): Avoid double gamma correction for PNG images.
7740
7741 2002-12-04 Richard M. Stallman <rms@gnu.org>
7742
7743 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
7744
7745 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
7746
7747 * alloca.c: Don't use #error.
7748
7749 2002-12-03 Dave Love <fx@gnu.org>
7750
7751 * buffer.c (Qucs_set_table_for_input): New.
7752 (Fget_buffer_create): Use it.
7753 (Qset_buffer_major_mode_hook): Deleted.
7754 (Fset_buffer_major_mode): Revert previous change.
7755 (init_buffer_once): Intern ucs-set-table-for-input.
7756 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
7757 Add &Qucs_set_table_for_input.
7758
7759 2002-12-03 Andreas Schwab <schwab@suse.de>
7760
7761 * callint.c (Fcall_interactively): Use next_event only if less
7762 than key_count.
7763
7764 2002-12-02 Andrew Choi <akochoi@shaw.ca>
7765
7766 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
7767 names to 255 characters.
7768
7769 * macterm.c (XTread_socket): If all frames have been collapsed,
7770 expand the first one before handling drag-and-drop events.
7771
7772 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
7773 which is detected by autoconf.
7774
7775 2002-12-01 Steven Tamm <steventamm@mac.com>
7776
7777 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
7778 offset in two hints table to allow prebinding to be redone and
7779 allow the executable to be stripped.
7780
7781 2002-11-29 Dave Love <fx@gnu.org>
7782
7783 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
7784 already provided.
7785
7786 2002-11-29 Richard M. Stallman <rms@gnu.org>
7787
7788 * xdisp.c (start_display): Check more intelligently for
7789 whether the line is continued.
7790 (move_it_vertically_backward): Clear it->continuation_lines_width.
7791
7792 2002-11-28 Dave Love <fx@gnu.org>
7793
7794 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
7795 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
7796
7797 2002-11-27 Steven Tamm <steventamm@mac.com>
7798
7799 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
7800 more descriptive error output from lread.c:Fload upon most require
7801 cycles during boostrapping.
7802
7803 2002-11-27 Jason Rumney <jasonr@gnu.org>
7804
7805 * fileio.c (Finsert_file_contents): Give a more appropriate error
7806 for files bigger than 2Gb when off_t is 32 bit.
7807
7808 * dired.c (Ffile_attributes): Don't return negative file sizes for
7809 files bigger than 2Gb when off_t is 32 bit.
7810
7811 2002-11-27 Dave Love <fx@gnu.org>
7812
7813 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
7814
7815 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
7816 Test GETPGRP_VOID instead.
7817 [BSD_TERMIOS]: Remove definitions (never used).
7818
7819 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
7820 Don't define.
7821 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
7822
7823 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
7824
7825 2002-11-25 Jason Rumney <jasonr@gnu.org>
7826
7827 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
7828 supported.
7829
7830 2002-11-25 Dave Love <fx@gnu.org>
7831
7832 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
7833
7834 * Makefile.in (TEMACS_LDFLAGS): Update last change.
7835
7836 2002-11-25 Andreas Schwab <schwab@suse.de>
7837
7838 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
7839
7840 2002-11-24 Steven Tamm <steventamm@mac.com>
7841
7842 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
7843 determine the size of pointers alloced in unexed space instead
7844 of using possibly invalid emacs_zone pointers. This fixes the
7845 binary incompatibility problems caused by updates to libSystem.B.
7846
7847 2002-11-24 Richard M. Stallman <rms@gnu.org>
7848
7849 * search.c (Fstring_match): Doc fix.
7850
7851 * callint.c (Fcall_interactively): If a command fails because
7852 `*' detects a read-only buffer, but RECORD_FLAG is set,
7853 record it anyway if the args don't actually do tty input.
7854
7855 2002-11-22 Dave Love <fx@gnu.org>
7856
7857 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
7858
7859 * keyboard.c (interrupt_signal): Provide forward declaration.
7860 (kbd_buffer_store_event): Don't declare interrupt_signal.
7861
7862 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
7863
7864 2002-11-21 Richard M. Stallman <rms@gnu.org>
7865
7866 * eval.c (interactive_p): Skip any number of bytecode
7867 and special form frames, in any order.
7868
7869 2002-11-20 Jason Rumney <jasonr@gnu.org>
7870
7871 * w32fns.c (convert_mono_to_color_image): New function.
7872 (xbm_load, xbm_load_image): Use it when foreground or background
7873 is explicitly set.
7874
7875 2002-11-19 Dave Love <fx@gnu.org>
7876
7877 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
7878
7879 2002-11-18 Jason Rumney <jasonr@gnu.org>
7880
7881 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
7882 (XPutPixel): Swap blue and red.
7883 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
7884 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
7885 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
7886 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
7887
7888 2002-11-18 Dave Love <fx@gnu.org>
7889
7890 * m/orion105.h (HAVE_ALLOCA): Don't define.
7891
7892 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
7893
7894 * m/intel386.h: Don't include alloca.h or define alloca.
7895
7896 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
7897 malloc, realloc, calloc.
7898
7899 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
7900 (bcmp): Don't define.
7901
7902 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
7903
7904 * m/amdahl.h: Don't define LIB_STANDARD.
7905
7906 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
7907
7908 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
7909
7910 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
7911 Don't include alloca.h.
7912
7913 * s/aix3-2.h (HAVE_FSYNC): Don't define.
7914
7915 * regex.c (_GNU_SOURCE): Don't define.
7916
7917 * process.c (_GNU_SOURCE): Don't define.
7918
7919 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
7920
7921 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
7922
7923 * s/sol2-8.h: Include sol2-6.h.
7924
7925 2002-11-18 Miles Bader <miles@gnu.org>
7926
7927 * dispextern.h (struct face): Add `overstrike' field.
7928 * xterm.c (x_draw_glyph_string_foreground)
7929 (x_draw_composite_glyph_string_foreground): Implement overstriking.
7930 * xfaces.c (load_face_font): Set `face->overstrike' based on
7931 result from choose_face_font.
7932 (best_matching_font, choose_face_font): Add `needs_overstrike'
7933 argument, and use it to return whether overstriking is desirable
7934 for this face/font combo.
7935 (set_font_frame_param: Pass new argument to choose_face_font.
7936
7937 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
7938
7939 This change is my fix for the following entry in etc/PROBLEMS:
7940 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
7941 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
7942
7943 * w32.c: Added wrapper functions around the win32 API functions
7944 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
7945 GetSidIdentifierAuthority. These wrapper functions serve two
7946 purposes:
7947 1. They ensure that the wrapped function can never be called
7948 when Emacs is running on an operating system on which they are
7949 not supported (Microsoft Windows 95 / 98 / ME).
7950 2. They call the wrapped functions via function pointers rather
7951 than calling them directly. This avoids taking advantage of the
7952 undocumented fact that although these functions are not supported
7953 in the 9x branch of Microsoft Windows, the functions do exist in
7954 the version of advapi32.dll that is found in the 9x branch of
7955 Microsoft Windows.
7956
7957 * w32.c (init_user_info): Replace the calls to the win32 API
7958 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
7959 and GetSidIdentifierAuthority with calls to the newly added
7960 wrapper functions.
7961
7962 * w32.h: Added extern declarations for the following functions:
7963 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
7964 syms_of_w32menu, and void syms_of_fontset.
7965
7966 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
7967 function pointer track_mouse_event_fn in the handler for the
7968 WM_SETFOCUS message.
7969
7970 * w32menu.c (initialize_frame_menubar): Add code to
7971 reinitialize the function pointers set_menu_item_info and
7972 get_menu_item_info.
7973
7974 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
7975
7976 * sound.c: Added a partial implementation of play-sound-internal
7977 for Microsoft Windows. Added various #ifdef / #else / #endif
7978 code blocks to separate the code that will compile under
7979 Microsoft Windows from the code that is specific to Gnu/Linux.
7980 Moved several blocks of code around to make this separation of code
7981 into Windows compatible and Gnu/Linux compatible code blocks easier.
7982
7983 * makefile.w32-in: Include sound.c and link with WinMM.lib.
7984
7985 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
7986 added support for play-sound-internal under Windows would be
7987 included in the build of Emacs.
7988
7989 2002-11-16 Jason Rumney <jasonr@gnu.org>
7990
7991 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
7992
7993 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
7994
7995 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
7996
7997 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
7998 (adjust_point_for_property): Move out of display and invisible even if
7999 we were already inside before (in case a property was added while
8000 we weren't looking). Be more careful when handling invisible props.
8001 Skip invisible text as if it really wasn't there at all.
8002
8003 2002-11-15 Jason Rumney <jasonr@gnu.org>
8004
8005 * w32term.c (x_draw_image_foreground)
8006 (w32_draw_image_foreground_1): Use standard copy and invert
8007 operations to draw images.
8008
8009 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
8010 depth of 1.
8011 (xbm_read_bitmap_data): Invert bits as xbm is read in.
8012 (XPutPixel): Don't invert bits here.
8013
8014 2002-11-15 Jason Rumney <jasonr@gnu.org>
8015
8016 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
8017 (w32_draw_image_foreground_1): Handle image masks.
8018 (x_draw_image_glyph_string): Don't BitBlt transparently.
8019
8020 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
8021 (x_from_xcolors): Adjust RGB values for W32.
8022 (image_background, image_background_transparent)
8023 (postprocess_image, x_to_xcolors, x_disable_image)
8024 (x_build_heuristic_mask): Adapt for W32 and enable.
8025 (x_create_x_image_and_pixmap): Mark images with palettes as such.
8026 (xbm_load): Remove unused variable.
8027
8028 2002-11-14 Richard M. Stallman <rms@gnu.org>
8029
8030 * buffer.c (syms_of_buffer): Doc fix.
8031
8032 2002-11-14 Dave Love <fx@gnu.org>
8033
8034 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
8035
8036 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
8037 * xmenu.c (unuse_menu_items, digest_single_submenu):
8038 * xfns.c (x_put_x_image):
8039 * xdisp.c (message2_nolog, set_message):
8040 * undo.c (record_point):
8041 * terminfo.c (tparam):
8042 * syntax.c (scan_sexps_forward):
8043 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
8044 * composite.c (update_compositions):
8045 * cm.c (calccost, cmgoto):
8046 * charset.c (c_string_width): Declare all args (per C99).
8047
8048 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
8049
8050 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
8051 Don't declare.
8052
8053 * emacs.c (main) [!VMS]: Avoid third arg.
8054
8055 * fns.c (Fcopy_sequence): Doc fix.
8056 (Fmap_char_table): Cast `call2'.
8057
8058 2002-11-14 Francesco Potorti` <pot@gnu.org>
8059
8060 * s/sol2-8.h: New file.
8061
8062 2002-11-14 Kim F. Storm <storm@cua.dk>
8063
8064 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
8065 dependency on `risky-local-variable' and the :propertize form.
8066
8067 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
8068
8069 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
8070
8071 * syntax.c (scan_sexps_forward): Undo last patch.
8072 Use a more obvious fix: check eob before updating the syntax table.
8073
8074 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
8075
8076 * syntax.c (scan_sexps_forward): Update syntax table before reading
8077 a char rather than after so we don't update the table past eob.
8078
8079 2002-11-09 Dave Love <fx@gnu.org>
8080
8081 * buffer.c (Fset_buffer_major_mode): Fix last change.
8082
8083 * regex.c (regexec): Fix pmatch declaration.
8084
8085 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
8086
8087 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
8088 to self-inserting characters.
8089 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
8090
8091 * coding.c (Vtranslation_table_for_input): New.
8092 (syms_of_coding): DEFVAR it.
8093
8094 2002-11-08 Juanma Barranquero <lektu@terra.es>
8095
8096 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
8097 window.
8098
8099 2002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8100
8101 * process.c (Fformat_network_address): Remove unused locals p,
8102 cp, and i.
8103
8104 2002-11-06 Dave Love <fx@gnu.org>
8105
8106 * buffer.c (Qset_buffer_major_mode_hook): New.
8107 (Fset_buffer_major_mode): Use it.
8108
8109 2002-11-06 Richard M. Stallman <rms@gnu.org>
8110
8111 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
8112 and stop_polling.
8113
8114 * process.c (wait_reading_process_input):
8115 Test POLLING_PROBLEM_IN_SELECT, not hpux.
8116 Avoid initialization for auto Lisp_Object var.
8117
8118 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
8119
8120 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
8121
8122 2002-11-05 Richard M. Stallman <rms@gnu.org>
8123
8124 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
8125
8126 * callint.c (Fcall_interactively): New local filter_specs.
8127 (Fcall_interactively): Check for progn as well as let.
8128 Add a gcpro.
8129 (Qprogn): New variable.
8130 (syms_of_callint): Staticpro and init Qprogn.
8131
8132 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
8133
8134 * lread.c (Feval_buffer): Doc fix.
8135
8136 2002-11-04 Dave Love <fx@gnu.org>
8137
8138 * keyboard.c (read_char): Always translate iff
8139 Vkeyboard_translate_table is a char table and c is valid.
8140
8141 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
8142 and fix C types.
8143
8144 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
8145
8146 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
8147
8148 * editfns.c (get_pos_property): Don't hardcode Qfield.
8149
8150 * keyboard.c (adjust_point_for_property): Handle `display' prop on
8151 overlays. Also handle `invisible' prop.
8152
8153 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
8154
8155 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
8156 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
8157
8158 2002-11-01 Andreas Schwab <schwab@suse.de>
8159
8160 * editfns.c (Fmessage): Revert last change to properly handle %%.
8161
8162 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
8163
8164 * xmenu.c (unuse_menu_items): New fun.
8165 (menu_items_inuse): New var.
8166 (syms_of_xmenu): Initialize it.
8167 (init_menu_items): Use it to detect re-entrance.
8168 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
8169 (Fx_popup_menu): Remove spurious XSETFRAME.
8170
8171 * editfns.c (find_field): Make an exception for nil fields.
8172
8173 2002-11-01 Dave Love <fx@gnu.org>
8174
8175 * m/gec63.h: Deleted.
8176
8177 2002-10-31 Dave Love <fx@gnu.org>
8178
8179 * xterm.c (XTread_socket): Fix last change.
8180 (xaw_scroll_callback): Cast call_data to long to avoid warning.
8181
8182 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
8183
8184 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
8185
8186 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
8187
8188 * editfns.c (overlays_around, get_pos_property): New funs.
8189 (find_field): Use them.
8190 Also be careful not to modify POS before its last use.
8191 (Fmessage): Don't Fformat if there's nothing to format.
8192
8193 2002-10-30 Dave Love <fx@gnu.org>
8194
8195 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
8196 [HAVE_PTY_H]; Include pty.h.
8197
8198 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
8199
8200 * xterm.c (Qeql): Declare.
8201 (Vx_keysym_table): New.
8202 (syms_of_xterm): Initialize it.
8203 (XTread_socket): Use it. Deal with ASCII keysyms.
8204 (XSetIMValues) [HAVE_X11R6]: Prototype.
8205
8206 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
8207 (lispy_kana_keys): Comment out.
8208 (make_lispy_event) [XK_kana_A]: Comment out.
8209 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
8210 Fix sprintf call.
8211
8212 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
8213 regexp.h change).
8214 (TERMINFO, LIBS_TERMCAP): Define.
8215
8216 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
8217 (bcmp): Define conditional on HAVE_BCMP.
8218 (NO_SIOCTL_H): Don't define.
8219 (TIOCSIGSEND): Don't make conditional on IRIX6.
8220
8221 * s/sol2-5.h: Don't include strings.h.
8222 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
8223
8224 * s/irix6-0.h (IRIX6): Don't define.
8225 (bcopy, bcmp, bzero): Don't undef.
8226
8227 * s/irix6-5.h: Don't include strings.h.
8228 (IRIX6): Don't define.
8229 (bcopy, bcmp, bzero): Don't undef.
8230
8231 * syntax.c (Fforward_comment): Doc fix.
8232
8233 2002-10-29 Kim F. Storm <storm@cua.dk>
8234
8235 * process.c (Fsignal_process): Allow PROCESS to be specified by
8236 name in addition to pid (as integer or string).
8237
8238 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
8239
8240 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
8241 environments.
8242
8243 2002-10-27 Kim F. Storm <storm@cua.dk>
8244
8245 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
8246
8247 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
8248
8249 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
8250
8251 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
8252
8253 2002-10-26 Richard M. Stallman <rms@gnu.org>
8254
8255 * editfns.c (Fformat): Detect invalid format letters for floats.
8256
8257 2002-10-25 Kenichi Handa <handa@m17n.org>
8258
8259 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
8260 (x_set_title): Likewise.
8261
8262 2002-10-25 Juanma Barranquero <lektu@terra.es>
8263
8264 * macgui.h:
8265 * w32gui.h: Remove definition of XColor.
8266
8267 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
8268
8269 2002-10-24 Kim F. Storm <storm@cua.dk>
8270
8271 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
8272 Callers changed (supply dummy arg).
8273
8274 * lisp.h (get_window_cursor_type): Update prototype.
8275
8276 * w32term.c (x_display_and_set_cursor): Get active_cursor from
8277 get_window_cursor_type to track system caret.
8278
8279 2002-10-24 Kim F. Storm <storm@cua.dk>
8280
8281 * process.c (Fformat_network_address): New function.
8282 (syms_of_process): Defsubr it.
8283 (list_processes_1): Use it to format :local/:remote address if
8284 service/host is not set; before Emacs would crash in that case.
8285 (Fmake_network_process): Don't use Ffind_operation_coding_system
8286 to setup coding system if host or service is not set.
8287
8288 2002-10-23 Juanma Barranquero <lektu@terra.es>
8289
8290 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
8291
8292 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
8293 COLORREF.
8294
8295 * macgui.h:
8296 * w32gui.h: Add definition of XColor.
8297
8298 * macfns.c:
8299 * w32fns.c:
8300 * xfaces.c: Remove definition of XColor.
8301
8302 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
8303
8304 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
8305
8306 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
8307 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
8308 window if it is dedicated.
8309 (Fshrink_window): Add preserve_before as was done for enlarge_window.
8310 (Vspecial_display_function): Update docstring.
8311
8312 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
8313 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
8314 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
8315
8316 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
8317
8318 * casefiddle.c (casify_region): Don't treat a prefix char as part
8319 of a word when at the beginning.
8320
8321 2002-10-17 Juanma Barranquero <lektu@terra.es>
8322
8323 * lread.c (syms_of_lread): Fix typos.
8324
8325 2002-10-17 Dave Love <fx@gnu.org>
8326
8327 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
8328
8329 2002-10-16 Richard M. Stallman <rms@gnu.org>
8330
8331 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
8332
8333 2002-10-14 Juanma Barranquero <lektu@terra.es>
8334
8335 * w16select.c (syms_of_win16select): Fix docstring for
8336 `selection-coding-system'.
8337
8338 * w32select.c (syms_of_w32select): Likewise.
8339
8340 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
8341
8342 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
8343 a backslash-quoted char.
8344 (scan_lists, scan_sexps_forward): Pacify the compiler.
8345
8346 2002-10-13 Richard M. Stallman <rms@gnu.org>
8347
8348 * window.c (window_scroll): Set immediate_quit.
8349
8350 * print.c (print): When backquote form is the car of a list,
8351 output in old style. Use old_backquote_output to output all
8352 comma forms inside it in old style too.
8353
8354 * buffer.h (struct buffer): Move `undo_list' down below `name'.
8355
8356 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
8357
8358 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
8359 batch mode).
8360
8361 * lread.c (Fload): Doc fix (load-suffixes).
8362
8363 2002-10-10 Steven Tamm <steventamm@mac.com>
8364
8365 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
8366 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
8367 Also switch the default to Qnil from Qt.
8368
8369 2002-10-08 Kenichi Handa <handa@m17n.org>
8370
8371 * coding.c (code_convert_region): When we need more GAP for
8372 conversion, pay attention to the case that coding->produced is not
8373 greater than coding->consumed.
8374
8375 2002-10-07 Richard M. Stallman <rms@gnu.org>
8376
8377 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
8378
8379 2002-10-06 Andrew Choi <akochoi@shaw.ca>
8380
8381 * macmenu.c (mac_menu_show): Add j to count menu items; match
8382 menu_item_selection to it to find selected item.
8383
8384 2002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8385
8386 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
8387 cases. The correct fix is to pass ReparentNotify to Xt.
8388 The shell widget interprets ConfigureNotify differently depending
8389 on if it has been reparented or not.
8390
8391 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
8392
8393 * editfns.c (Fformat_time_string): Doc fix.
8394
8395 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
8396
8397 * fns.c (Flength): Doc fix.
8398
8399 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
8400
8401 * keyboard.c (keyremap): New struct.
8402 (read_key_sequence): Use it: globally replace keytran_foo with
8403 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
8404 keytran_next and fkey_next to just `next'.
8405
8406 2002-10-04 Steven Tamm <steventamm@mac.com>
8407
8408 * macterm.c (keycode_to_xkeysym_table): Change return to be
8409 treated like an X keysym.
8410
8411 2002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8412
8413 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
8414 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
8415 This is to also handle x/y changes that occur because of a resize.
8416
8417 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
8418
8419 * frame.c (Vdelete_frame_functions): New variable.
8420 (syms_of_frame): Initialize and defvar it.
8421 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
8422 it when frame's `tooltip' parameter is non-nil.
8423
8424 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
8425
8426 * w32fns.c (x_create_tip_frame): Likewise.
8427
8428 * macfns.c (x_create_tip_frame): Likewise.
8429
8430 2002-09-30 Kenichi Handa <handa@m17n.org>
8431
8432 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
8433 -1 before calling ccl_driver.
8434
8435 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
8436 Only when it is non-nil, handle composition sequence.
8437 (setup_coding_system) <0>: Don't force composition handling.
8438
8439 * Makefile.in (lisp, shortlisp): Add utf-16.elc
8440
8441 2002-09-29 Richard M. Stallman <rms@gnu.org>
8442
8443 * search.c (Freplace_match): Adjust match data for the substitution
8444 just made in the buffer.
8445
8446 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
8447 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
8448
8449 2002-09-27 Richard M. Stallman <rms@gnu.org>
8450
8451 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
8452 (read_char): Use them. Do all exits thru the end of the function.
8453
8454 2002-09-27 Kenichi Handa <handa@etl.go.jp>
8455
8456 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
8457 is nil.
8458
8459 2002-09-26 Richard M. Stallman <rms@gnu.org>
8460
8461 * regex.h (__restrict_arr): Don't define if already defined.
8462
8463 * coding.c (run_pre_post_conversion_on_str):
8464 Save and restore Vdeactivate_mark.
8465
8466 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
8467
8468 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
8469
8470 2002-09-26 Kenichi Handa <handa@etl.go.jp>
8471
8472 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
8473 nonzero, try face's family at first. Otherwise try FAMILY at first.
8474 (choose_face_font): If C is a single byte char or latin-1, call
8475 try_font_list with PREFER_FACE_FAMILY 1.
8476
8477 2002-09-21 Richard M. Stallman <rms@gnu.org>
8478
8479 * window.c (select_window_1): Don't select frame.
8480 Set frame's selected window only when frame itself is selected.
8481 (Fselect_window): Doc fix.
8482
8483 2002-09-18 Kim F. Storm <storm@cua.dk>
8484
8485 * process.c (make-network-process): Doc fix (there is no
8486 network-server-log-function hook).
8487
8488 2002-09-18 Richard M. Stallman <rms@gnu.org>
8489
8490 * print.c (print): Clear out the unused parts of Vprint_number_table.
8491 (syms_of_print): Doc fix for `print-number-table'.
8492
8493 * unexelf.c (unexec): Undo previous change.
8494
8495 2002-09-17 Andreas Schwab <schwab@suse.de>
8496
8497 * m/alpha.h [LINUX]: Don't define DATA_START.
8498
8499 2002-09-16 Dave Love <fx@gnu.org>
8500
8501 * unexelf.c (unexec): Deal with .got, reinstating change from
8502 25-08-1999.
8503
8504 2002-09-13 Richard M. Stallman <rms@gnu.org>
8505
8506 * s/sol2-6.h (UNEXEC): Comment out definition.
8507
8508 * unexsol.c (unexec): Don't downcase first letter of error msg.
8509
8510 * xfaces.c (Fcolor_supported_p): Just one arg is required.
8511
8512 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
8513
8514 * unexsol.c: Include buffer.h, charset.h, coding.h.
8515
8516 2002-09-11 Richard M. Stallman <rms@gnu.org>
8517
8518 * unexsol.c: Don't use report_file_error; do it by hand
8519 using dlerror.
8520
8521 * process.c (wait_reading_process_input, both versions):
8522 Before calling turn_on_atimers, call stop_polling.
8523
8524 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
8525
8526 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
8527 we go to too_near_end, call clear_glyph_matrix.
8528 (redisplay_window): After make_cursor_line_fully_visible,
8529 call clear_glyph_matrix and bypass `goto done'.
8530
8531 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
8532 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
8533
8534 2002-09-10 Richard M. Stallman <rms@gnu.org>
8535
8536 * fileio.c (Fdo_auto_save): Catch error making directory.
8537 Only call push_message if we need to.
8538 At the same time, make an unwind-protect to pop it.
8539 Rename local message_p to old_message_p.
8540 (do_auto_save_make_dir, do_auto_save_eh): New functions.
8541 (do_auto_save_unwind): Don't call pop_message.
8542
8543 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
8544
8545 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
8546
8547 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
8548
8549 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
8550
8551 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
8552
8553 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
8554 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
8555 (re_match_2_internal): Be more careful with infinite loops.
8556
8557 2002-09-10 Kim F. Storm <storm@cua.dk>
8558
8559 * macros.c (end_kbd_macro): New function.
8560 (Fend_kbd_macro): Use it.
8561
8562 * macros.h (end_kbd_macro): Declare extern.
8563
8564 * keyboard.c (Fdiscard_input): If defining keyboard macro,
8565 end and save it instead of discarding it.
8566
8567 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
8568
8569 * s/sol2-6.h: Fix typo. Add comment.
8570
8571 2002-09-09 Richard M. Stallman <rms@gnu.org>
8572
8573 * regex.c (regnum_t): Use signed int, not unsigned int.
8574
8575 * s/sol2-6.h: New file.
8576
8577 * s/sol2-5.h (UNEXEC): Definition deleted.
8578
8579 2002-09-08 Kim F. Storm <storm@cua.dk>
8580
8581 * macros.c (executing_macro_index): Change type to EMACS_INT.
8582 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
8583
8584 * macros.h (executing_macro_index): Change type to EMACS_INT.
8585
8586 2002-09-06 Richard M. Stallman <rms@gnu.org>
8587
8588 * casetab.c (set_case_table): Make canon table point to eqv table.
8589
8590 2002-09-06 Juanma Barranquero <lektu@terra.es>
8591
8592 * coding.c (syms_of_coding): Fix spacing.
8593
8594 * composite.c (Fcompose_region_internal)
8595 (Fcompose_string_internal): Likewise.
8596
8597 * data.c (Flsh): Likewise.
8598
8599 * fontset.c (Fset_fontset_font): Likewise.
8600
8601 * macfns.c (Fx_server_max_request_size): Likewise.
8602
8603 * w16select.c (syms_of_win16select): Likewise.
8604
8605 * w32select.c (syms_of_w32select): Likewise.
8606
8607 * xselect.c (syms_of_xselect): Likewise.
8608
8609 2002-09-05 Richard M. Stallman <rms@gnu.org>
8610
8611 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
8612 call EXTEND_RANGE_TABLE and return a proper value.
8613 (set_image_of_range): Don't call set_image_of_range_1
8614 if no TRANSLATE or if range includes all of Latin-1.
8615 Only call it for the Latin-1 part of the range.
8616 For other cases, make two separate ranges,
8617 one for the original specified characters and one for
8618 their case-conversions.
8619
8620 2002-09-04 Richard M. Stallman <rms@gnu.org>
8621
8622 * s/sol2-5.h (UNEXEC): Use unexsol.o.
8623
8624 * window.c (displayed_window_lines): Correct for one-off bug
8625 in HEIGHT on non-window displays.
8626
8627 * regex.c (set_image_of_range_1): New function.
8628 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
8629 Return a value to indicate running out of memory.
8630 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
8631 (extend_range_table_work_area): New subroutine.
8632 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
8633 Different calling conventions, and used from set_image_of_range{,_1}.
8634 (IMMEDIATE_QUIT_CHECK): Definitions moved.
8635
8636 2002-09-04 Juanma Barranquero <lektu@terra.es>
8637
8638 * makefile.w32-in: All dependencies updated.
8639
8640 2002-09-01 Richard M. Stallman <rms@gnu.org>
8641
8642 * unexsol.c: New file.
8643
8644 * xfns.c (Qbox): Declare external, don't define.
8645
8646 * xdisp.c (redisplay_window) <force-start case>:
8647 If point is on semi-visible last line, reposition
8648 it at previous line.
8649
8650 * alloc.c (display_malloc_warning): Use display-warning.
8651 (malloc_warning_1): Function deleted.
8652
8653 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
8654
8655 * lread.c (read1): Handle #! by skipping the line.
8656
8657 2002-08-31 Richard M. Stallman <rms@gnu.org>
8658
8659 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
8660 Don't include LDFLAGS.
8661 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
8662
8663 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
8664
8665 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
8666 member of x_display_info unless we compile for some window system.
8667
8668 2002-08-31 Kim F. Storm <storm@cua.dk>
8669
8670 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
8671 (get_window_cursor_type): Don't use them.
8672 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
8673
8674 2002-08-30 Kenichi Handa <handa@etl.go.jp>
8675
8676 * xdisp.c (get_next_display_element): Fix previous change.
8677
8678 2002-08-30 Andrew Choi <akochoi@shaw.ca>
8679
8680 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
8681 (expose_window): Use it to fix the display of overlapping
8682 rows (merge code from xterm.c).
8683
8684 * macfns.c (Qbox): Add extern declaration.
8685
8686 2002-08-30 Juanma Barranquero <lektu@terra.es>
8687
8688 * w32fns.c (Qbox): Make extern.
8689 (syms_of_w32fns): Remove initialization of Qbox.
8690
8691 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
8692
8693 * xfns.c (Fx_open_connection): Fix error message.
8694
8695 2002-08-30 Kim F. Storm <storm@cua.dk>
8696
8697 The following changes consolidates the handling of the cursor
8698 type in xdisp.c, moving duplicate code and functionality from
8699 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
8700
8701 * frame.h (enum text_cursor_kinds): Consolidated here.
8702 Added DEFAULT_CURSOR value.
8703 (struct frame) <desired_cursor, cursor_width>
8704 <blink_off_cursor, blink_off_cursor_width>: New fields.
8705 Consolidated from output_x, output_w32 and output_mac structs.
8706 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
8707 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
8708
8709 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
8710 Variables consolidated here.
8711 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
8712 (Vcursor_in_non_selected_windows): Renamed from
8713 cursor_in_non_selected_windows and changed to Lisp_Object.
8714 (syms_of_xdisp): Define and staticpro new and moved variables.
8715 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
8716 consolidated here. Recognize Qhollow setting.
8717 (set_frame_cursor_types): New function to set frame cursor types
8718 based on the frame parameters.
8719 (get_window_cursor_type): New function to calculate new cursor
8720 type and width for the specified window. Based on duplicated
8721 code consolidated here.
8722 Enhancements: cursor-in-non-selected-windows may be a cursor type,
8723 check buffer-local alternate-cursor-type and blink-cursor-alist
8724 before using built-in blink off methods.
8725
8726 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
8727
8728 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
8729 (get_specified_cursor_type, get_window_cursor_type)
8730 (set_frame_cursor_types): Added prototypes.
8731
8732 * macfns.c (x_specified_cursor_type): Removed.
8733 (x_set_cursor_type): Use set_frame_cursor_types.
8734 (Qbar, Qbox): Removed.
8735 (syms_of_macfns): Don't intern or staticpro them.
8736
8737 * macterm.c (x_specified_cursor_type): Remove prototype.
8738 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
8739 (x_display_and_set_cursor): Use get_window_cursor_type.
8740 Remove unused local variables cursor_non_selected, active_cursor.
8741 Redraw cursor if hbar cursor width changes.
8742 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
8743
8744 * macterm.h (enum text_cursor_kinds): Removed.
8745 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
8746 <blink_off_cursor, blink_off_cursor_width>: Members removed.
8747 (FRAME_DESIRED_CURSOR): Macro removed.
8748
8749 * w32fns.c (Vblink_cursor_alist): Removed.
8750 (Qbar, Qhbar, Qbox, Qhollow): Removed.
8751 (syms_of_w32fns): Don't intern, staticpro, or define them.
8752 (x_specified_cursor_type): Removed.
8753 (x_set_cursor_type): Use set_frame_cursor_types.
8754
8755 * w32term.c (x_specified_cursor_type): Remove prototype.
8756 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
8757 (x_display_and_set_cursor): Use get_window_cursor_type.
8758 Remove unused local variables cursor_off_state.
8759 Redraw cursor if hbar cursor width changes.
8760 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
8761
8762 * w32term.h (enum text_cursor_kinds): Removed.
8763 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
8764 <blink_off_cursor, blink_off_cursor_width>: Members removed.
8765 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
8766 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
8767 (struct w32_display_info) <x_highlight_frame>: Renamed member from
8768 w32_highlight_frame.
8769
8770 * xfns.c (Vblink_cursor_alist): Removed.
8771 (Qbar, Qhbar, Qbox, Qhollow): Removed.
8772 (syms_of_xfns): Don't intern, staticpro, or define them.
8773 (x_specified_cursor_type): Removed.
8774 (x_set_cursor_type): Use set_frame_cursor_types.
8775
8776 * xterm.c (x_specified_cursor_type): Remove prototype.
8777 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
8778 (x_display_and_set_cursor): Use get_window_cursor_type.
8779 Remove unused local variables cursor_off_state.
8780 Redraw cursor if hbar cursor width changes.
8781
8782 * xterm.h (enum text_cursor_kinds): Removed.
8783 (struct output_x) <current_cursor, desired_cursor, cursor_width>
8784 <blink_off_cursor, blink_off_cursor_width>: Members removed.
8785 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
8786 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
8787 (x_specified_cursor_type): Remove prototype.
8788
8789 2002-08-28 Richard M. Stallman <rms@gnu.org>
8790
8791 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
8792 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
8793 (Vblink_cursor_alist): New variable.
8794 (syms_of_w32fns): Initialize and defvar it.
8795 (x_specified_cursor_type): Recognize Qbox for filled box.
8796 Exceptions are hollow boxes.
8797 (Qbox, Qhollow): New variables.
8798 (syms_of_w32fns): Initialize and staticpro them.
8799
8800 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
8801 New macros.
8802 (struct w32_output): New fields blink_off_cursor,
8803 blink_off_cursor_width.
8804 (FRAME_CURSOR_WIDTH): New macro.
8805
8806 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
8807 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
8808
8809 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
8810 for bar cursor.
8811
8812 * w32term.c (expose_overlaps): New function.
8813 (expose_window): Use it to fix the display of overlapping rows.
8814
8815 2002-08-28 Simon Josefsson <jas@extundo.com>
8816
8817 * xfns.c (Fx_open_connection): Improve help when X connection
8818 fails, xhost is insecure and xauth is better.
8819
8820 2002-08-28 Juanma Barranquero <lektu@terra.es>
8821
8822 * makefile.w32-in: Add missing dependencies on w32term.h and
8823 composite.h.
8824
8825 * emacs.c (USAGE1): Add missing newline.
8826
8827 2002-08-27 Andrew Choi <akochoi@shaw.ca>
8828
8829 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
8830
8831 2002-08-27 Richard M. Stallman <rms@gnu.org>
8832
8833 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
8834 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
8835 (Vblink_cursor_alist): New variable.
8836 (syms_of_xfns): Initialize and defvar it.
8837 (x_specified_cursor_type): Recognize Qbox for filled box.
8838 Exceptions are hollow boxes.
8839 (Qbox, Qhollow): New variables.
8840 (syms_of_xfns): Initialize and staticpro them.
8841
8842 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
8843 New macros.
8844 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
8845
8846 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
8847 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
8848
8849 * emacs.c (main): Handle --script.
8850 (USAGE1): Mention --script.
8851 (standard_args): Define sort order for --script.
8852
8853 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
8854
8855 * xdisp.c (redisplay_updating_p): Variable removed.
8856 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
8857 New variables.
8858 (init_iterator): Don't free realized faces if
8859 inhibit_free_realized_faces is set.
8860 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
8861 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
8862 initialize Qinhibit_free_realized_faces.
8863
8864 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
8865 when iterator is adding glyphs to a glyph matrix.
8866
8867 2002-08-27 Kenichi Handa <handa@etl.go.jp>
8868
8869 * xdisp.c (get_next_display_element): In unibyte case, don't use
8870 octal form for such eight-bit characters that can be converted to
8871 multibyte char.
8872
8873 2002-08-26 Kim F. Storm <storm@cua.dk>
8874
8875 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize foreground
8876 and background colors. From Joe Buehler (tiny change).
8877
8878 2002-08-26 Miles Bader <miles@gnu.org>
8879
8880 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
8881
8882 2002-08-25 Andrew Choi <akochoi@shaw.ca>
8883
8884 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
8885 defined instead of MAC_OSX.
8886
8887 * s/darwin.h (select): Define select to sys_select only if
8888 HAVE_CARBON is defined.
8889 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
8890 (DONT_REOPEN_PTY): #def it.
8891
8892 * macterm.c (XTread_socket): Remove code to call
8893 SendEventToEventTarget for keys with command modifiers when
8894 mac_command_key_is_meta is nil.
8895
8896 2002-08-24 Andreas Schwab <schwab@suse.de>
8897
8898 * eval.c (Fdefvar): Fix last change.
8899
8900 2002-08-23 Richard M. Stallman <rms@gnu.org>
8901
8902 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
8903 Record variables in load history as (defvar . VAR).
8904 (Fdefvar): Don't record in load history if no initial value.
8905 (Qdefvar): New variable.
8906 (syms_of_eval): Init and staticpro it.
8907
8908 * lread.c (syms_of_lread): Doc fix.
8909 (build_load_history): Use Fmember to see if a definition
8910 is already in the Vload_history element.
8911
8912 * process.c (Fstart_process): Remove /: from program name.
8913
8914 * emacs.c (decode_env_path): Don't add /: if file name handler
8915 has a `safe-magic' property.
8916
8917 * callproc.c (Fcall_process): Remove /: from program name.
8918
8919 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
8920
8921 * regex.c (PATFETCH): Remove the translating fetch.
8922 (PATFETCH_RAW): Rename to PATFETCH.
8923 (set_image_of_range): New fun.
8924 (SET_RANGE_TABLE_WORK_AREA): Use it.
8925 (regex_compile): Don't translate the pattern chars so eagerly.
8926 Only do it when inserting an `exactn' bytecode or when handling
8927 a char-range.
8928 (mutually_exclusive_p): Avoid empty statement.
8929
8930 2002-08-22 Kim F. Storm <storm@cua.dk>
8931
8932 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
8933 end up on a partially visible line; this reverts a specific part
8934 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
8935 display error which has been reported several times now.
8936 However it introduces the problem that changes was supposed to fix.
8937 See my comments in the source if you want to debug this further.
8938
8939 2002-08-20 Kenichi Handa <handa@etl.go.jp>
8940
8941 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
8942
8943 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
8944
8945 * msdos.c (croak): Add `void' to definition.
8946
8947 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
8948 Don't define them, they are defined in msdos.c.
8949
8950 * mem-limits.h [MSDOS]: Declare etext.
8951
8952 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
8953 `const' since CORRECT_DIR_SEPS modifies its target.
8954
8955 2002-08-19 Kim F. Storm <storm@cua.dk>
8956
8957 * keyboard.c (Fclear_this_command_keys): Add optional arg
8958 KEEP-RECORD to avoid clearing lossage when we just want to clear
8959 the current key sequence (kmacro needs this).
8960
8961 2002-08-19 Kenichi Handa <handa@localhost>
8962
8963 * composite.c (run_composition_function): Call FUNC if it is fboundp.
8964
8965 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
8966 cons, return Qnil.
8967
8968 2002-08-17 Richard M. Stallman <rms@gnu.org>
8969
8970 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
8971
8972 * sysdep.c [!VMS]: Include sys/files.h.
8973
8974 * editfns.c (save_restriction_restore): Defend from unchained marker.
8975
8976 * buffer.c (overlays_at): Handle extending vec uniformly.
8977 (overlays_in): Handle extending vec from length 0 as in overlays_at.
8978
8979 2002-08-15 Andrew Choi <akochoi@shaw.ca>
8980
8981 * mac.c (init_mac_osx_environment): New function.
8982
8983 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
8984
8985 2002-08-14 Kim F. Storm <storm@cua.dk>
8986
8987 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
8988 executing macro before appending to it (when used from Lisp).
8989 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
8990 which is called prior to each iteration of macro (for kmacro.el).
8991 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
8992
8993 * lisp.h (Fexecute_kbd_macro): Update prototype.
8994
8995 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
8996
8997 2002-08-14 Kenichi Handa <handa@etl.go.jp>
8998
8999 * xselect.c (QUTF8_STRING): New variable.
9000 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
9001 (x_atom_to_symbol): Likewise.
9002 (x_get_local_selection): New argument local_request. If it is
9003 nonzero, call handler_fn with the second arg nil.
9004 (x_handle_selection_request): Call x_get_local_selection with
9005 local_request 0.
9006 (lisp_data_to_selection_data): Don't encode the string here.
9007 (Fx_get_selection_internal): Call x_get_local_selection with
9008 local_request 1.
9009 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
9010
9011 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
9012
9013 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
9014
9015 2002-08-13 Richard M. Stallman <rms@gnu.org>
9016
9017 * minibuf.c (Fminibufferp): New function.
9018 (syms_of_minibuf): Defsubr it.
9019 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
9020
9021 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
9022
9023 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
9024
9025 2002-08-12 Richard M. Stallman <rms@gnu.org>
9026
9027 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
9028 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
9029 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
9030 already.
9031
9032 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
9033
9034 2002-08-11 Andrew Choi <akochoi@shaw.ca>
9035
9036 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
9037 (Vmac_pass_command_to_system): New variable.
9038 (Vmac_pass_control_to_system): New variable.
9039 (do_mouse_moved): Check wp with is_emacs_window.
9040 (XTread_socket): Check window_ptr with is_emacs_window.
9041 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
9042 events back to Mac Toolbox for processing, depending on values of
9043 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
9044 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
9045 Vmac_pass_control_to_system.
9046
9047 2002-08-10 Kenichi Handa <handa@etl.go.jp>
9048
9049 * coding.c (unencodable_char_position): New function.
9050 (Funencodable_char_position): New function.
9051 (syms_of_coding): Defsubr Funencodable_char_position.
9052
9053 2002-08-10 Andrew Choi <akochoi@shaw.ca>
9054
9055 * mac.c (sys_select) [MAC_OSX]: New function.
9056
9057 * macterm.c (MakeMeTheFrontProcess): New function.
9058 (mac_initialize): Call MakeMeTheFrontProcess.
9059
9060 * s/darwin.h: Define select to sys_select.
9061
9062 2002-08-09 Richard M. Stallman <rms@gnu.org>
9063
9064 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
9065
9066 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
9067
9068 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
9069 end of the buffer.
9070
9071 2002-08-08 Ken Raeburn <raeburn@mit.edu>
9072
9073 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
9074
9075 * puresize.h (BASE_PURESIZE): Increase to 910000.
9076
9077 2002-08-08 Kenichi Handa <handa@etl.go.jp>
9078
9079 * coding.c (Ffind_operation_coding_system): For write-region, if
9080 VISIT is a filename, make it the target.
9081
9082 2002-08-07 Richard M. Stallman <rms@gnu.org>
9083
9084 * alloc.c (mark_object): Detect long lists for debugging.
9085 (mark_object_loop_halt): New variable.
9086
9087 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
9088
9089 * data.c (Fmake_variable_frame_local): Doc fix.
9090
9091 2002-08-01 David Ponce <david@dponce.com>
9092
9093 * w32menu.c (local_heap, local_alloc, local_free): New macros.
9094 (malloc_widget_value, free_widget_value)
9095 (w32_free_submenu_strings): Use them.
9096
9097 (push_submenu_start, push_submenu_end, push_left_right_boundary)
9098 (push_menu_pane, push_menu_item, single_keymap_panes)
9099 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
9100 (single_submenu, set_frame_menubar)
9101 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
9102
9103 (Fx_popup_menu): Don't show pop up menu until preceding one is
9104 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
9105
9106 * w32menu.c: Changes adapted from xmenu.c
9107 (set_frame_menubar): First parse all submenus,
9108 then make widget_value trees from them.
9109 Don't allocate any widget_value objects
9110 until we are done with the parsing.
9111 (parse_single_submenu): New function.
9112 (digest_single_submenu): New function.
9113 (single_submenu): Function deleted, replaced by those two.
9114
9115 2002-08-04 Andrew Choi <akochoi@shaw.ca>
9116
9117 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
9118 returns a valid window pointer before proceeding for keyDown and
9119 autoKey events.
9120
9121 2002-08-03 Andrew Choi <akochoi@shaw.ca>
9122
9123 * macterm.c (USE_CARBON_EVENTS): New macro.
9124 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
9125 (x_iconify_frame): Call CollapseWindow.
9126 (Vmac_reverse_ctrl_meta): New variable.
9127 (Vmac_wheel_button_is_mouse_2): New variable.
9128 (init_mac_drag_n_drop): New function.
9129 (mac_do_receive_drag): New function.
9130 (mac_handle_service_event): New function.
9131 (init_service_handler): New function.
9132 (mac_to_emacs_modifiers): New function.
9133 (mac_event_to_emacs_modifiers): New function.
9134 (mac_get_mouse_btn): New function.
9135 (mac_convert_event_ref): New function.
9136 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
9137 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
9138 mac_get_mouse_btn.
9139 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
9140
9141 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
9142 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
9143 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
9144 TOOL_BAR_EVENT for MAC_OS as well.
9145 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
9146 as for WINDOWS_NT.
9147 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
9148
9149 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
9150
9151 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
9152
9153 * xdisp.c (forward_to_next_line_start): Fix a condition that
9154 lead to a newline being skipped.
9155
9156 2002-08-02 Andrew Choi <akochoi@shaw.ca>
9157
9158 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
9159
9160 2002-08-01 Richard M. Stallman <rms@gnu.org>
9161
9162 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
9163
9164 2002-07-31 Andrew Choi <akochoi@shaw.ca>
9165
9166 * macfns.c: #undef init_process before #define-ing it.
9167
9168 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
9169 HAVE_CARBON is defined.
9170
9171 2002-07-31 Richard M. Stallman <rms@gnu.org>
9172
9173 * xmenu.c (set_frame_menubar): First parse all submenus,
9174 then make widget_value trees from them.
9175 Don't allocate any widget_value objects
9176 until we are done with the parsing.
9177 (parse_single_submenu): New function.
9178 (digest_single_submenu): New function.
9179 (single_submenu): Function deleted, replaced by those two.
9180
9181 2002-07-30 Juanma Barranquero <lektu@terra.es>
9182
9183 * w32proc.c (syms_of_ntproc): Fix docstring of
9184 `w32-get-true-file-attributes'.
9185
9186 2002-07-28 Richard M. Stallman <rms@gnu.org>
9187
9188 * s/hpux8.h (HPUX8): Define this before including hpux.h.
9189 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
9190
9191 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
9192
9193 * keyboard.c (make_lispy_event):
9194 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
9195 Explicitly clear up_modifier in event->modifiers.
9196
9197 2002-07-27 Richard M. Stallman <rms@gnu.org>
9198
9199 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
9200
9201 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
9202 for bar cursor.
9203
9204 2002-07-26 Kenichi Handa <handa@etl.go.jp>
9205
9206 * coding.c (detect_coding_iso2022): While checking a byte sequence
9207 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
9208 it in the normal loop.
9209
9210 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
9211
9212 * xterm.c (expose_overlaps): New function.
9213 (expose_window): Use it to fix the display of overlapping rows.
9214
9215 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
9216
9217 2002-07-23 Ken Raeburn <raeburn@gnu.org>
9218
9219 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
9220 since it only depends on XUINT.
9221
9222 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
9223 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
9224 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
9225 Macros deleted.
9226
9227 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
9228 its value over other approaches.
9229 * sysdep.c (start_of_data): Don't define the function if a macro
9230 form has been defined.
9231
9232 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
9233
9234 * xdisp.c (redisplay_updating_p): New variable.
9235 (init_iterator): Don't free realized faces when
9236 redisplay_updating_p is set.
9237 (redisplay_internal): Set redisplay_updating_p while updating
9238 the display.
9239
9240 2002-07-23 Richard M. Stallman <rms@gnu.org>
9241
9242 * editfns.c (Fmessage): Treat "" like nil.
9243
9244 2002-07-23 Kenichi Handa <handa@etl.go.jp>
9245
9246 * xdisp.c (face_before_or_after_it_pos):
9247 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
9248
9249 2002-07-22 Juanma Barranquero <lektu@terra.es>
9250
9251 * callproc.c (init_callproc) [DOS_NT]:
9252 Initialize Vshared_game_score_directory to nil.
9253 (syms_of_callproc) [DOS_NT]: Likewise.
9254
9255 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
9256
9257 * xdisp.c (display_line): Replace an abort with xassert.
9258
9259 2002-07-21 Richard M. Stallman <rms@gnu.org>
9260
9261 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
9262 and END_UNCHANGED when setting buffer_unchanged_p.
9263 Use current_matrix_up_to_date_p to decide whether to use
9264 try_cursor_movement.
9265
9266 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
9267
9268 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
9269
9270 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
9271 Set to nil if dir does not exist.
9272 (syms_of_callproc): Init unconditionally and simply.
9273
9274 * buffer.c (Fbuffer_list): Doc fix.
9275
9276 2002-07-21 Ken Raeburn <raeburn@gnu.org>
9277
9278 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
9279
9280 * buffer.c (mmap_realloc): When shrinking, make sure number of
9281 pages to unmap is rounded towards zero.
9282
9283 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
9284 (XSETINT): Deleted.
9285
9286 * m/att3b.h (XINT): Don't define.
9287 (VALBITS, VALMASK, XTYPE): Deleted.
9288 (DATA_SEG_BITS): Define.
9289 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
9290 ARRAY_MARK_FLAG): Deleted.
9291 (DATA_SEG_BITS): Define.
9292 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
9293 (DATA_SEG_BITS): Define.
9294
9295 2002-07-20 Richard M. Stallman <rms@gnu.org>
9296
9297 * print.c (print_error_message): New args CONTEXT and CALLER.
9298 Calls changed.
9299
9300 * lisp.h (print_error_message): Declare new args.
9301
9302 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
9303 and CONTEXT to print_error_message, don't print them here.
9304 For a Quit, don't use Vsignaling_function.
9305 Call message_log_maybe_newline.
9306
9307 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
9308
9309 2002-07-20 Kim F. Storm <storm@cua.dk>
9310
9311 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
9312
9313 2002-07-19 Ken Raeburn <raeburn@gnu.org>
9314
9315 * bytecode.c (struct byte_stack): Pointers into byte string now
9316 point to const.
9317 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
9318 const.
9319 * charset.h (BCOPY_SHORT): Source pointer now points to const.
9320 * coding.c (encode_eol, detect_coding, detect_eol):
9321 (decode_coding, encode_coding, detect_coding_system):
9322 Source strings now treated as const.
9323 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
9324 modify Lisp string contents.
9325 * coding.h (decode_coding, encode_coding, detect_coding,
9326 detect_eol): Declarations updated.
9327 * composite.c (compose_chars_in_text): Treat Lisp string contents
9328 as const.
9329 * dispnew.c (safe_bcopy): Source pointer now points to const.
9330 * lisp.h (STRING_COPYIN): New macro.
9331 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
9332 (internal_with_output_to_temp_buffer): Declarations updated.
9333 * print.c (temp_output_buffer_setup):
9334 (internal_with_output_to_temp_buffer): Buffer name argument is now
9335 pointer to const.
9336 * sound.c (struct sound_device): Function pointer field "write"
9337 buffer argument now points to const.
9338 (vox_write): Buffer argument points to const.
9339 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
9340 contents as const.
9341 * sysdep.c (emacs_write): Buffer pointer now const.
9342 * term.c (encode_terminal_code): Buffer pointer now const.
9343 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
9344 (x_face_list_fonts, x_update_menu_appearance):
9345 (hash_string_case_insensitive): Treat Lisp string contents as const.
9346
9347 2002-07-19 Juanma Barranquero <lektu@terra.es>
9348
9349 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
9350
9351 * fileio.c (syms_of_fileio): Likewise.
9352 (Ffile_name_as_directory): Fix argument name in docstring.
9353 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
9354
9355 2002-07-18 Richard M. Stallman <rms@gnu.org>
9356
9357 * data.c (Fdefalias): Doc fix.
9358
9359 2002-07-17 Dave Love <fx@gnu.org>
9360
9361 * intervals.h (text_property_stickiness): Use P_.
9362
9363 * ccl.c: Remove `emacs' conditionals.
9364 (ccl_backtrace_table): Fix size spec.
9365 (ccl_driver): Fix type errors.
9366
9367 2002-07-16 Ken Raeburn <raeburn@gnu.org>
9368
9369 * alloc.c (xstrdup, make_string, make_unibyte_string)
9370 (make_multibyte_string, build_string): String pointer args now
9371 point to const.
9372 * charset.c (find_charset_in_text, c_string_width):
9373 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
9374 * fileio.c (report_file_error):
9375 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
9376 (count_combining_before, count_combining_after, insert_1_both):
9377 (insert, insert_and_inherit, insert_string):
9378 (insert_before_markers, insert_before_markers_and_inherit):
9379 * lread.c (intern, oblookup, hash_string):
9380 * minibuf.c (temp_echo_area_glyphs):
9381 * search.c (fast_c_string_match_ignore_case):
9382 * sysdep.c (emacs_open, set_file_times):
9383 * xfaces.c (xstricmp):
9384 * xdisp.c (store_frame_title, string_char_and_length):
9385 (message_dolog, message2, message2_nolog, set_message): Likewise.
9386 (set_message_1): Cast message string argument to const pointer.
9387 * editfns.c (general_insert_function): Insertion function now
9388 takes pointer to const for input data.
9389 * charset.h (find_charset_in_text, c_string_width):
9390 (parse_str_as_multibyte): Declarations updated.
9391 * dispextern.h (xstricmp): Declaration updated.
9392 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
9393 (count_size_as_multibyte, count_combining_before):
9394 (count_combining_after, insert_1, insert_1_both, message_dolog):
9395 (insert, insert_and_inherit, insert_before_markers)
9396 (insert_before_markers_and_inherit, set_message, message2):
9397 (message2_dolog, build_string, make_string, make_unibyte_string):
9398 (make_multibyte_string, intern, oblookup, report_file_error):
9399 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
9400 (emacs_open, xstrdup): Declarations updated.
9401 * systime.h (set_file_times): Declaration updated.
9402
9403 * charset.c (find_charset_in_text, lisp_string_width): Use const
9404 for pointer to lisp string data.
9405 * charset.h (FETCH_STRING_CHAR_ADVANCE):
9406 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
9407 * coding.c (Ffind_coding_systems_region_interval):
9408 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
9409 (Fmake_directory_internal, Fdelete_directory):
9410 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
9411 * fontset.c (font_family_registry, fs_query_fontset):
9412 (list_fontsets):
9413 * frame.c (Fframe_parameter):
9414 * keyboard.c (cmd_error_internal):
9415 * keymap.c (Fdescribe_buffer_bindings):
9416 * lread.c (complete_filename_p, openp):
9417 * minibuf.c (Fminibuffer_complete_word):
9418 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
9419 (face_before_or_after_it_pos, next_element_from_string):
9420 (get_overlay_arrow_glyph_row, display_mode_element):
9421 (decode_mode_spec_coding):
9422 * xterm.c (same_x_server): Likewise.
9423
9424 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
9425 settings of non-existent fields.
9426
9427 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
9428 copy a lisp value.
9429
9430 * lread.c (Fintern_soft): Use string macros instead of
9431 Lisp_String fields.
9432 * keyboard.c (echo_char, parse_modifiers_uncached):
9433 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
9434 * textprop.c (validate_interval_range, interval_of): Likewise.
9435
9436 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
9437
9438 * charset.h (FETCH_STRING_CHAR_ADVANCE)
9439 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
9440 XSTRING()->size_byte.
9441
9442 * lisp.h (SDATA, SREF): Produce rvalue.
9443 (SSET): New macro.
9444 * alloc.c (make_event_array): Use SSET for storing into a string.
9445 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
9446 a string.
9447 * casefiddle.c (casify_object): Use SSET.
9448 * charset.h (FETCH_STRING_CHAR_ADVANCE)
9449 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
9450 address of string contents.
9451 * data.c (Faref): Use SDATA.
9452 (Faset): Use SDATA, SSET.
9453 * dired.c (directory_files_internal): Use SSET.
9454 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
9455 (Fread_file_name): Use SREF, SSET.
9456 * fns.c (concat): Use SSET.
9457 (concat, Fdelete): Use SDATA.
9458 * insdel.c (insert_from_string_1): Use SDATA.
9459 * keyboard.c (Fevent_convert_list): Use SREF.
9460 * lread.c (Fload): Use SDATA, SSET.
9461 * macfns.c (validate_x_resource_name): Use SSET.
9462 * process.c (status_message): Use SSET.
9463 * search.c (wordify): Use SDATA.
9464 (Freplace_match): Use SREF.
9465 * w32fns.c (validate_x_resource_name): Use SSET.
9466 * xfns.c (validate_x_resource_name): Use SSET.
9467 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
9468
9469 2002-07-16 Richard M. Stallman <rms@gnu.org>
9470
9471 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
9472
9473 * xdisp.c (reconsider_clip_changes):
9474 Don't test prevent_redisplay_optimizations_p.
9475 (redisplay_internal): Test prevent_redisplay_optimizations_p
9476 along with clip_changed in some cases.
9477 (try_window_id): Likewise.
9478 (redisplay_window): New local var buffer_unchanged_p.
9479
9480 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
9481
9482 * process.c (create_process): Test USG_SUBTTY_WORKS.
9483 (process_send_signal): Clean up handling of GID.
9484 Detect errors in ioctls meant to set GID.
9485
9486 * window.c (temp_output_buffer_show):
9487 Don't set prevent_redisplay_optimizations_p.
9488
9489 2002-07-15 Juanma Barranquero <lektu@terra.es>
9490
9491 * eval.c (Fdefvaralias): Add docstring argument.
9492
9493 2002-07-15 Ken Raeburn <raeburn@gnu.org>
9494
9495 * lisp.h (STRING_INTERVALS): Produce rvalue.
9496 (STRING_SET_INTERVALS): New macro.
9497 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
9498 * fns.c (Fstring_as_multibyte): Likewise.
9499 * intervals.c (balance_possible_root_interval, delete_interval)
9500 (create_root_interval, copy_intervals_to_string): Likewise.
9501 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
9502 instead of 0.
9503
9504 2002-07-14 Ken Raeburn <raeburn@gnu.org>
9505
9506 * lisp.h (STRING_SET_CHARS): New macro.
9507 (SCHARS, SBYTES): Produce rvalues.
9508 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
9509 * fns.c (concat): Likewise.
9510 * lread.c (read_vector): Likewise.
9511
9512 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
9513 (STRING_SET_UNIBYTE): New macro.
9514 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
9515 length of -1) changed to use STRING_SET_UNIBYTE.
9516 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
9517 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
9518 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
9519 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
9520 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
9521 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
9522 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
9523 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
9524 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
9525 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
9526 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
9527 STRING_BYTES or indirection changed to SCHARS, SBYTES,
9528 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
9529 unchanged for now.
9530
9531 2002-07-13 Kim F. Storm <storm@cua.dk>
9532
9533 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
9534
9535 2002-07-12 Richard M. Stallman <rms@gnu.org>
9536
9537 * fileio.c (Fwrite_region): Doc fix.
9538
9539 * print.c (print_error_message): Don't handle Vsignaling_function here.
9540
9541 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
9542 (command_loop_1): Avoid certain actions after memory-full error.
9543
9544 * eval.c (Fsignal): Don't call cancel_hourglass.
9545 For a memory-full error, don't call Vsignal_hook_function
9546 and don't set Vsignaling_function.
9547
9548 * process.c (process_send_signal): Add abort call.
9549
9550 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
9551
9552 * keymap.c (Fkey_binding): Fix typo.
9553
9554 2002-07-11 Richard M. Stallman <rms@gnu.org>
9555
9556 * alloc.c (Vmemory_full): New variable.
9557 (Vmemory_signal_data): Renamed from memory_signal_data.
9558 Uses changed.
9559 (syms_of_alloc): Defvar them.
9560 (memory_full, buffer_memory_full): Set Vmemory_full.
9561
9562 * lisp.h (Vmemory_full): Add declaration.
9563 (current_column, indented_beyond_p): Change declaration.
9564
9565 * indent.c (last_known_column): Declare as double, not float.
9566 (current_column, current_column_1, string_display_width)
9567 (position_indentation): Return `double'.
9568 (indented_beyond_p): Arg `column' is `double'. Callers changed.
9569
9570 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
9571 (back_to_previous_visible_line_start)
9572 (reseat_at_next_visible_line_start, next_element_from_buffer):
9573 Use `double', not `float', when calling indented_beyond_p.
9574
9575 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
9576
9577 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
9578
9579 2002-07-11 Juanma Barranquero <lektu@terra.es>
9580
9581 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
9582 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
9583 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
9584 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
9585 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
9586 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
9587
9588 2002-07-10 Juanma Barranquero <lektu@terra.es>
9589
9590 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
9591 All callers changed.
9592
9593 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
9594
9595 * data.c (Fdefalias): Add an optional `docstring' argument.
9596 (set_internal, Fsetq_default): Use XCAR/XCDR.
9597
9598 * composite.c (HASH_VALUE, HASH_KEY):
9599 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
9600
9601 2002-07-09 Kenichi Handa <handa@etl.go.jp>
9602
9603 * callproc.c (Fcall_process): Fix previous change.
9604
9605 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
9606
9607 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
9608 Add support for hash-tables.
9609 (Ftry_completion): Return t even if the string appears multiple times.
9610
9611 * fns.c (Fnconc): Use XCDR.
9612 (Fprovide): Use CONSP and XCDR.
9613 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
9614 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
9615 (Fmake_hash_table): Accept `:size nil'.
9616 (Fmakehash): Delete: moved to subr.el.
9617 (syms_of_fns): Don't defsubr makehash.
9618
9619 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
9620 (HASH_TABLE_SIZE): Move from fns.c.
9621
9622 2002-07-07 Richard M. Stallman <rms@gnu.org>
9623
9624 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
9625 Instead just return 0 when there is something to be done.
9626 (try_scrolling): If make_cursor_line_fully_visible returns 0,
9627 retry scrolling as if cursor were off the bottom.
9628 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
9629 return CURSOR_MOVEMENT_MUST_SCROLL.
9630 (redisplay_window): If make_cursor_line_fully_visible returns 0,
9631 go to try_to_scroll.
9632
9633 * buffer.c (Fbuffer_local_value): Store current value into its binding
9634 so we get the up-to-date value for the binding that is loaded.
9635
9636 * eval.c (Fdefmacro): Doc fix.
9637
9638 2002-07-05 Dave Love <fx@gnu.org>
9639
9640 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
9641 correctly.
9642
9643 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
9644 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
9645 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
9646 CCL_LookupCharConstTbl.
9647 (syms_of_ccl): Defvar translation-hash-table-vector.
9648
9649 2002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9650
9651 * xdisp.c: Remove unused variable `face'.
9652
9653 2002-07-04 Juanma Barranquero <lektu@terra.es>
9654
9655 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
9656 obsolescence information.
9657
9658 2002-07-03 Andrew Choi <akochoi@shaw.ca>
9659
9660 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
9661 pattern. Search cache first.
9662 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
9663 for Japanese font.
9664 (XLoadQueryFont): Use it.
9665
9666 2002-07-02 Richard M. Stallman <rms@gnu.org>
9667
9668 * keymap.c (Fdefine_key): Doc fix.
9669
9670 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
9671
9672 2002-07-02 Juanma Barranquero <lektu@terra.es>
9673
9674 * keymap.c (syms_of_keymap): Fix typo.
9675
9676 2002-07-01 Andrew Choi <akochoi@shaw.ca>
9677
9678 * s/darwin.h: Define POSIX_SIGNALS.
9679
9680 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
9681 and FSRefMakePath to convert FSSpec returned with Apple Event to
9682 Posix pathname.
9683 (mac_initialize) [TARGET_API_MAC_CARBON]:
9684 Call init_required_apple_events and disable the `Quit' menu item
9685 provided automatically by the Carbon Toolbox.
9686
9687 2002-07-01 Dave Love <fx@gnu.org>
9688
9689 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
9690 for K&R.
9691
9692 * xterm.c: Fix prototype for K&R.
9693
9694 * term.c (costs_set): Declare static, non-initialized for pcc.
9695
9696 2002-07-01 Richard M. Stallman <rms@gnu.org>
9697
9698 * keyboard.c (timer_last_idleness_start_time): New variable.
9699 (timer_start_idle): Set that.
9700 (read_key_sequence): Use that to reset timer_idleness_start_time
9701 to previous value.
9702
9703 * window.c (Frecenter): With arg, set optional_new_start.
9704
9705 * xdisp.c (redisplay_internal): Make optional_new_start really work.
9706
9707 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
9708 buffer for completion.
9709
9710 2002-06-29 Ken Raeburn <raeburn@gnu.org>
9711
9712 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
9713
9714 2002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9715
9716 * keyboard.c (readable_filtered_events): New function that filters
9717 FOCUS_IN_EVENT depending on parameter.
9718 (readable_events): Calls readable_filtered_events, not filtering
9719 FOCUS_IN_EVENT.
9720 (get_filtered_input_pending): New function, filtering parameter passed
9721 to readable_filtered_events.
9722 (get_input_pending): Calls get_filtered_input_pending, not filtering
9723 FOCUS_IN_EVENT.
9724 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
9725 FOCUS_IN_EVENT.
9726
9727 * xterm.h (struct x_output): Add focus_state.
9728
9729 * xterm.c (x_focus_changed): New function.
9730 (x_detect_focus_change): New function.
9731 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
9732 EnterNotify and LeaveNotify to track X focus changes.
9733
9734 2002-06-28 Andreas Schwab <schwab@suse.de>
9735
9736 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
9737
9738 2002-06-27 Kim F. Storm <storm@cua.dk>
9739
9740 * xdisp.c: (mode_line_string_list, mode_line_string_face)
9741 (mode_line_string_face_prop): New variables.
9742 (store_mode_line_string): New function.
9743 (display_mode_element): Use store_mode_line_string to
9744 add mode-line string elements to mode_line_string_list
9745 when mode_line_string_list is non-nil.
9746 (Fformat_mode_line): Now returns propertized string by
9747 default. New arg NO-PROPS to ignore properties.
9748 (decode_mode_spec): Only add two dashes for %- in propertized
9749 mode-line string.
9750 (syms_of_xdisp): Init and staticpro mode_line_string_list.
9751
9752 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
9753
9754 * minibuf.c (minibuffer_completion_contents): Add return type.
9755
9756 2002-06-27 Juanma Barranquero <lektu@terra.es>
9757
9758 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
9759
9760 2002-06-26 Juanma Barranquero <lektu@terra.es>
9761
9762 * fileio.c (read_file_name_cleanup): Add missing return.
9763
9764 2002-06-26 Richard M. Stallman <rms@gnu.org>
9765
9766 * window.c (Frecenter): Don't set force_start flag.
9767
9768 * minibuf.c (do_completion, Fminibuffer_complete_word)
9769 (Fminibuffer_completion_help): Complete just the text before point.
9770 (minibuffer_completion_contents): New function.
9771
9772 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
9773
9774 * frame.c (frames_bury_buffer): Function deleted.
9775
9776 2002-06-25 Miles Bader <miles@gnu.org>
9777
9778 * callint.c (Fcall_interactively): When checking to see if doprnt hit
9779 the end of callint_message, allow for a terminating '\0'.
9780
9781 2002-06-24 Juanma Barranquero <lektu@terra.es>
9782
9783 * w32select.c: Include composite.h
9784
9785 * w16select.c: Likewise.
9786
9787 2002-06-24 Kenichi Handa <handa@etl.go.jp>
9788
9789 * callproc.c (Fcall_process): If code detection is necessary,
9790 call detect_coding directly here.
9791
9792 * coding.c (detect_eol): Preserve coding->cmp_data.
9793
9794 * w16select.c (Fw16_get_clipboard_data):
9795 * w32fns.c (w32_to_x_font):
9796 * w32select.c (Fw32_get_clipboard_data):
9797 * xselect.c (selection_data_to_lisp_data):
9798 * xterm.c (XTread_socket): Disable composition handling.
9799
9800 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
9801
9802 * print.c (temp_output_buffer_setup): Kill all local variables.
9803
9804 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
9805
9806 * lread.c (Fread): Remove redundant and imprecise declaration.
9807
9808 * xfns.c (check_x_display_info): Use check_x_frame.
9809
9810 * .gdbinit (xprintsym): Use the new `xname' field.
9811 (xsymbol): Use it.
9812
9813 2002-06-22 Jason Rumney <jasonr@gnu.org>
9814
9815 * w32fns.c (file_dialog_callback): New function.
9816 (Fx_file_dialog): Allow selecting directories as well as files.
9817
9818 2002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9819
9820 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
9821 OpenBSD. Add support for mipseb-*-netbsd* machines.
9822
9823 2002-06-17 Andrew Choi <akochoi@shaw.ca>
9824
9825 * macterm.c (mac_scroll_area): Set foreground and backcolor to
9826 black and white before scrolling. Restore frame background and
9827 foreground color after scrolling.
9828 (do_window_update): Call XClearWindow before calling expose_frame.
9829 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
9830 FRAME_FOREGROUND_PIXEL of frame.
9831
9832 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
9833 test Mac command key as <ALT> key.
9834
9835 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
9836
9837 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
9838
9839 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
9840 Lookup keys in function-key-map immediately so that key-translation-map
9841 can be applied earlier.
9842 Remove function_key_possible and key_translation_possible, replaced
9843 by checking `keytran_start < t'.
9844
9845 * .gdbinit (xsymbol): Use the new `xname' field.
9846
9847 2002-06-17 Andrew Choi <akochoi@shaw.ca>
9848
9849 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
9850 test Mac command key as <ALT> key.
9851
9852 * mac.c (do_applescript): Call initialize_applescript if necessary
9853 when first called. Dispose of result_desc only when there is no error.
9854 (Fdo_applescript): Use %d format specifier instead of %ld.
9855
9856 2002-06-16 Andrew Choi <akochoi@shaw.ca>
9857
9858 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
9859 of FrontWindow for cases keyDown and autoKey.
9860
9861 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
9862 Vdefault_fontset to Monaco with mac-roman coding.
9863
9864 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
9865 init_process before and after inclusion of Carbon/Carbon.h, resp.
9866
9867 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
9868 cursor_gc.
9869 (add_font_name_table_entry): New function.
9870 (init_font_name_table): Use add_font_name_table_entry; add italic,
9871 bold, and bold-italic entries for truetype fonts.
9872
9873 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
9874 for Mac too.
9875 (try_font_list) [MAC_OS]: If no font matches given registry, try
9876 fonts with any registry matching face_family.
9877 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
9878
9879 * s/darwin.h: If autoconf detects the Ncurses library, define
9880 LIBS_TERMCAP to -lncurses to use it.
9881
9882 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
9883
9884 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
9885
9886 2002-06-15 Richard M. Stallman <rms@gnu.org>
9887
9888 * window.c (Fset_window_configuration): Explicitly preserve
9889 the point value that new_current_buffer had at the start.
9890
9891 2002-06-14 Juanma Barranquero <lektu@terra.es>
9892
9893 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
9894 Fix typos.
9895
9896 2002-06-14 Kim F. Storm <storm@cua.dk>
9897
9898 * insdel.c (insert_1_both, insert_from_string_1)
9899 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
9900 insert happened in the end_unchanged region. Otherwise, the
9901 redisplay may be confused and duplicate the last line in the
9902 buffer [seen after save-buffer when require-final-newline==t].
9903
9904 2002-06-13 Jason Rumney <jasonr@gnu.org>
9905
9906 * w32.c (init_environment): Remove EMACSLOCKDIR.
9907 (stat): Swap _S_IFDIR and _S_IFREG.
9908
9909 2002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9910
9911 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
9912 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
9913 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
9914 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
9915 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
9916 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
9917 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
9918 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
9919 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
9920 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
9921 SELECTION_REQUEST_EVENT, selection_clear_event to
9922 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
9923 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
9924 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
9925 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
9926 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
9927 no_event to NO_EVENT.
9928
9929 2002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9930
9931 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
9932
9933 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
9934
9935 * intervals.c (textget): Don't forget to `return'.
9936 (lookup_char_property): Use XCAR/XCDR.
9937
9938 2002-06-12 Juanma Barranquero <lektu@terra.es>
9939
9940 * xdisp.c (Fformat_mode_line): Fix typo.
9941
9942 2002-06-12 Kim F. Storm <storm@cua.dk>
9943
9944 * xdisp.c (Fformat_mode_line): New function.
9945 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
9946 (store_frame_title_char, store_frame_title): Use unconditionally.
9947 (init_xdisp): Defsubr Fformat_mode_line.
9948 Initialize frame_title_buf etc. unconditionally.
9949
9950 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
9951
9952 * keyboard.c (read_key_sequence):
9953 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
9954 things through those maps after downcasing events.
9955 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
9956 applies after function-key-map.
9957 Make sure that keytran can be done in the middle in the sequence.
9958 Be careful not to throw away events past the one we downcase.
9959
9960 * lread.c (read_integer): Remove unused var `tem'.
9961 (read1): Fix int/Lisp_Object mixup.
9962
9963 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
9964
9965 2002-06-11 Richard M. Stallman <rms@gnu.org>
9966
9967 * keyboard.c (readable_events): Ignore any number of
9968 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
9969
9970 2002-06-09 Miles Bader <miles@gnu.org>
9971
9972 * xfaces.c (Ftty_supports_face_attributes_p): New function.
9973 (parse_rgb_list, tty_lookup_color): New functions.
9974 (tty_defined_color): Use `tty_lookup_color' to do all the work.
9975 (color_distance, Fcolor_distance): New functions.
9976 (TTY_SAME_COLOR_THRESHOLD): New macro.
9977 (Qtty_color_standard_values): New variable.
9978 (syms_of_xfaces): Initialize new vars & functions.
9979
9980 2002-06-08 Colin Walters <walters@verbum.org>
9981
9982 * textprop.c (Vchar_property_alias_alist): New variable.
9983 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
9984
9985 * intervals.c (lookup_char_property): New function for looking up
9986 overlay and text properties, created from textget.
9987 (textget): Use it.
9988
9989 * intervals.h (lookup_char_property): Declare.
9990 (Vchar_property_alias_alist): Declare.
9991
9992 * buffer.c (Foverlay_get): Use lookup_char_property.
9993
9994 2002-06-07 Sam Steingold <sds@gnu.org>
9995
9996 * xselect.c (lisp_data_to_selection_data): Fix last change:
9997 *data_ret is not a Lisp string, while unibyte_string is.
9998
9999 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
10000
10001 * xselect.c (lisp_data_to_selection_data): Fix last change:
10002 set size_ret.
10003
10004 2002-06-07 Andreas Schwab <schwab@suse.de>
10005
10006 * m/amdx86-64.h: New file.
10007
10008 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
10009
10010 * fns.c (Fstring_make_unibyte): Doc fix.
10011
10012 * xselect.c (lisp_data_to_selection_data): If the requested type
10013 is STRING, call string_make_unibyte to encode the selected text
10014 as a string.
10015
10016 * window.c (Fset_window_hscroll): Doc fix.
10017
10018 2002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10019
10020 * fileio.c (choose_write_coding_system):
10021 Call select-safe-coding-system properly.
10022
10023 2002-06-03 Richard M. Stallman <rms@gnu.org>
10024
10025 * xdisp.c (message_with_string): Error if STRING is not a string.
10026
10027 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
10028
10029 * fileio.c (choose_write_coding_system): Pass FILE arg to
10030 Vselect_safe_coding_system_function.
10031
10032 2002-06-03 Ken Raeburn <raeburn@gnu.org>
10033
10034 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
10035
10036 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
10037
10038 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
10039 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
10040 * keymap.c (describe_command): Likewise.
10041 * minibuf.c (read_minibuf): Likewise.
10042
10043 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
10044 Cast `current_column' return value to int.
10045 (back_to_previous_visible_line_start)
10046 (reseat_at_next_visible_line_start, next_element_from_buffer):
10047 Cast `indented_beyond_p' 3rd arg to float.
10048
10049 * indent.c (last_known_column): Now a float.
10050 (current_column_1, position_indentation, current_column)
10051 (string_display_width): Return float.
10052 (Fcurrent_column): Cast `current_column' return value to int.
10053 (Fcurrent_indentation): Cast `position_indentation' retval to int.
10054 (indented_beyond_p): Third arg now a float.
10055 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
10056
10057 * lisp.h (current_column): Now returns float.
10058 (indented_beyond_p): 3rd arg now a float.
10059
10060 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
10061
10062 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
10063 is Qcompound_text_with_extensions.
10064
10065 * xselect.c (lisp_data_to_selection_data): Always set selection
10066 type as string if x_encode_text returns streingp non-NULL.
10067
10068 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
10069
10070 2002-05-30 Richard M. Stallman <rms@gnu.org>
10071
10072 * window.c (Fset_window_configuration): Correct the handling
10073 of point in current buffer, to work with multiple windows.
10074
10075 2002-05-29 Colin Walters <walters@verbum.org>
10076
10077 * lread.c (Fread_from_string): Don't depend on order of evaluation
10078 for C function parameters.
10079
10080 2002-05-28 Richard M. Stallman <rms@gnu.org>
10081
10082 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
10083 way for blinked-off state and for a nonselected window.
10084
10085 * window.c (window_scroll_pixel_based): Don't call Fbolp;
10086 instead, see if the new start pos is at beginning of line.
10087
10088 * fileio.c (Fwrite_region): If START is a string, don't
10089 make any annotations.
10090
10091 * eval.c (syms_of_eval): Doc fix.
10092
10093 2002-05-28 Colin Walters <walters@debian.org>
10094
10095 * emacs.c (USAGE1): Add --no-splash.
10096 (standard_args): Ditto.
10097
10098 2002-05-28 Colin Walters <walters@gnu.org>
10099
10100 * lread.c (readchar_count): New variable.
10101 (readchar): Increment it.
10102 (unreadchar): Decrement it.
10103 (read_multibyte): Decrement it.
10104 (Vread_with_symbol_positions): New variable.
10105 (Vread_symbol_positions_list): New variable.
10106 (read_internal_start): New function, created from Fread and
10107 Fread_from_string. Handle Vread_symbol_positions_list and
10108 Vread_with_symbol_positions.
10109 (readevalloop, Fread, Fread_from_string): Use it.
10110 (read1): Use readchar_count to add symbol positions to
10111 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
10112 (syms_of_lread): DEFVAR_LISP and initialize them.
10113
10114 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
10115 (substitute_object_recurse, substitute_object_in_subtree)
10116 (substitute_in_interval): Prototype.
10117 (read_multibyte): Return c if it's less than zero.
10118
10119 2002-05-28 Kim F. Storm <storm@cua.dk>
10120
10121 * fileio.c (Fread_file_name_internal): Added brute-force
10122 speed up for using predicate file-directory-p.
10123
10124 2002-05-28 Kim F. Storm <storm@cua.dk>
10125
10126 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
10127 New variables.
10128 (syms_of_fileio): DEFVAR_LISP them.
10129 (read_file_name_cleanup): New unwind function.
10130 (Fread_file_name_internal): Only return completions satifying
10131 Vread_file_name_predicate. Temporarily unwind protect and rebind
10132 default-directory while checking completions against the predicate.
10133 (Fread_file_name): Added PREDICATE argument. Specbind it to
10134 Vread_file_name_predicate during completion.
10135 Call Vread_file_name_function to read the file name if non-nil.
10136
10137 * lisp.h (Fread_file_name): Now has 6 args.
10138
10139 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
10140 predicate for Fread_file_name when reading directory name.
10141 Supply Qnil for predicate in other calls to Fread_file_name.
10142
10143 2002-05-26 Miles Bader <miles@gnu.org>
10144
10145 * term.c (tty_capable_p): New function.
10146 * dispextern.h (tty_capable_p): New function declaration.
10147 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
10148 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
10149
10150 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
10151
10152 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
10153 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
10154 (Vwrite_region_annotate_functions): Docstring fix.
10155
10156 2002-05-23 Kim F. Storm <storm@cua.dk>
10157
10158 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
10159 phys_cursor's hpos is overwritten. This is still not completely
10160 correct, as it doesn't really make sense to use hpos at all to
10161 get the cursor glyph (as that is relative to the width of the
10162 characters on the line, which may have changed during the update).
10163
10164 2002-05-22 Jason Rumney <jasonr@gnu.org>
10165
10166 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
10167 Lisp_Object.
10168 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
10169 Use modified enumfont_t struct.
10170
10171 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
10172
10173 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
10174 Handle the `hbar' cursor type.
10175 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
10176
10177 * w32fns.c (Qhbar): New variable.
10178 (x_specified_cursor_type): Use it.
10179
10180 2002-05-21 Ken Raeburn <raeburn@gnu.org>
10181
10182 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
10183 now, when the address is needed.
10184
10185 2002-05-21 Colin Walters <walters@gnu.org>
10186
10187 * Makefile.in (shortlisp): Add font-core.el.
10188
10189 2002-05-20 Richard M. Stallman <rms@gnu.org>
10190
10191 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
10192
10193 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
10194 equivalent key bindings here.
10195
10196 2002-05-20 Ken Raeburn <raeburn@gnu.org>
10197
10198 Change symbol structure to contain a lisp object for the symbol
10199 name:
10200 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
10201 object field named "xname".
10202 (SYMBOL_NAME): New macro.
10203 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
10204 name field.
10205 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
10206 (mark_object, gc_sweep): Use symbol xname field and XSTRING
10207 instead of name field.
10208 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
10209 SYMBOL_NAME instead of XSYMBOL and name field.
10210 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
10211 instead of XSYMBOL and name field.
10212 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
10213 and SYMBOL_NAME instead of XSYMBOL and name field.
10214 * coding.c (Fread_coding_system, code_convert_region1)
10215 (code_convert_string1, code_convert_string_norecord)
10216 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
10217 XSYMBOL and name field.
10218 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
10219 (Fmake_variable_buffer_local, Fmake_local_variable)
10220 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
10221 of XSYMBOL and name field.
10222 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
10223 XSYMBOL and name field.
10224 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
10225 instead of XSYMBOL and name field.
10226 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
10227 XSYMBOL and name field.
10228 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
10229 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
10230 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
10231 instead of XSYMBOL and name field.
10232 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
10233 (parse_modifiers, apply_modifiers, Fevent_convert_list)
10234 (parse_solitary_modifier, Fexecute_extended_command):
10235 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
10236 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
10237 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
10238 of XSYMBOL and name field.
10239 (describe_command, describe_translation): Use SYMBOL_NAME and
10240 assignment instead of XSYMBOL and name field and XSETSTRING.
10241 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
10242 instead of XSYMBOL and name field.
10243 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
10244 name field and XSETSTRING.
10245 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
10246 of XSYMBOL and name field.
10247 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
10248 assignment instead of XSYMBOL and name field and XSETSTRING.
10249 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
10250 XSTRING instead of XSYMBOL and name field.
10251 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
10252 and XSTRING instead of XSYMBOL and name field.
10253 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
10254 and XSTRING instead of XSYMBOL and name field.
10255 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
10256 XSTRING instead of XSYMBOL and name field.
10257 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
10258 of XSYMBOL and name field.
10259 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
10260 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
10261
10262 2002-05-19 Ken Raeburn <raeburn@gnu.org>
10263
10264 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
10265 and XCDR real rvalues in most configurations.
10266
10267 * buffer.c (fix_overlays_in_range, fix_overlays_before):
10268 Don't take the address of the cdr part of a cons cell; instead, track
10269 the parent cell and call XSETCDR, or set the variable for the head
10270 of the list if we haven't started down the list yet.
10271
10272 2002-05-19 Richard M. Stallman <rms@gnu.org>
10273
10274 * doc.c (reread_doc_file): Don't ask for confirmation.
10275
10276 2002-05-18 Jason Rumney <jasonr@gnu.org>
10277
10278 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
10279 (xbm_load_image): Use it.
10280 (xbm_load): Ditto.
10281 (xbm_read_bitmap_data): Reverted to xfns.c version.
10282 From David Ponce <david@dponce.com>.
10283
10284 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
10285
10286 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
10287 2.02 and later.
10288
10289 2002-05-16 Juanma Barranquero <lektu@terra.es>
10290
10291 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
10292
10293 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
10294
10295 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
10296 meaningful test.
10297 (read_char_minibuf_menu_prompt): Fix typo.
10298
10299 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
10300
10301 * eval.c (Fcommandp): Doc fix.
10302
10303 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
10304
10305 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
10306 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
10307 (Fset_keymap_parent): Gcpro a bit more.
10308 (access_keymap): Gcpro around meta_map call and around the main loop.
10309 (get_keyelt): Gcpro when following indirect references.
10310 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
10311 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
10312 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
10313 Remove useless ad-hoc remap code.
10314
10315 2002-05-13 Richard M. Stallman <rms@gnu.org>
10316
10317 * search.c (search_buffer): Give up boyer moore search if inverse
10318 translation change charset_base.
10319
10320 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
10321
10322 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
10323 characters is carried over from the previous block of text, adjust
10324 coding->produced to account for the extra character.
10325
10326 2002-05-11 Andreas Schwab <schwab@suse.de>
10327
10328 * coding.c (intersection): Keep the elements of the returned list
10329 in the same order as in the first list.
10330
10331 2002-05-11 Kim F. Storm <storm@cua.dk>
10332
10333 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
10334 only update cmm_size if realloc actually succeeds.
10335 Testing with initial size of 2 elements revealed that using
10336 realloc on GNU/Linux would cause a random trap in xmalloc
10337 later on, so I rewrote the code to use malloc/bcopy/free instead
10338 of realloc.
10339
10340 2002-05-10 Jason Rumney <jasonr@gnu.org>
10341
10342 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
10343
10344 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
10345
10346 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
10347 parens, to ensure correct evaluation order.
10348
10349 2002-05-10 Kim F. Storm <storm@cua.dk>
10350
10351 * keymap.c (Vemulation_mode_map_alists): New variable.
10352 (syms_of_keymap): DEFVAR_LISP it.
10353 (current_minor_maps): Process keymap alists in that list before
10354 minor-mode-overriding-map-alist and minor-mode-map-alist.
10355
10356 2002-05-09 Richard M. Stallman <rms@gnu.org>
10357
10358 * search.c (Freplace_match): Doc fix.
10359
10360 2002-05-09 Kim F. Storm <storm@cua.dk>
10361
10362 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
10363 Enlarge cursor rectangle drawn around image with non-zero relief.
10364
10365 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
10366 Enlarge cursor rectangle drawn around image with non-zero relief.
10367
10368 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
10369 Enlarge cursor rectangle drawn around image with non-zero relief.
10370
10371 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
10372
10373 * xselect.c (lisp_data_to_selection_data): Don't set selection
10374 type if comes from the Lisp object's car. If the selection
10375 contains a pure ASCII text, always return QSTRING as its type.
10376
10377 2002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10378
10379 * mac.c (mac-cut-function): Doc fix.
10380
10381 2002-05-05 Richard M. Stallman <rms@gnu.org>
10382
10383 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
10384
10385 2002-05-04 Jason Rumney <jasonr@gnu.org>
10386
10387 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
10388 for event-click-count.
10389
10390 * process.c (init_process): Only add server subfeature if we can
10391 use non-blocking I/O.
10392
10393 2002-05-04 Andrew Choi <akochoi@shaw.ca>
10394
10395 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
10396 repeatedly.
10397
10398 2002-05-03 Jason Rumney <jasonr@gnu.org>
10399
10400 * process.c (Fmake_network_process): Only support server sockets
10401 when we can make them non-blocking.
10402
10403 * s/ms-w32.h (HAVE_SELECT): Define.
10404
10405 * w32.h (FILE_NDELAY): New flag.
10406
10407 * w32.c (sys_getpeername, fcntl): New functions.
10408 (_sys_read_ahead): Temporarily block on non-blocking sockets.
10409
10410 * w32proc.c: include sys/file.h.
10411
10412 2002-05-03 Colin Walters <walters@verbum.org>
10413
10414 * callproc.c (Vgame_score_directory): Renamed to
10415 Vshared_game_score_directory.
10416
10417 2002-04-30 Richard M. Stallman <rms@gnu.org>
10418
10419 * s/gnu.h [emacs]: Include stdio.h.
10420 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
10421
10422 * eval.c (do_autoload): Error if called while preparing to dump.
10423
10424 * fns.c (Frequire): Error if need to load while preparing to dump.
10425
10426 2002-04-28 Colin Walters <walters@verbum.org>
10427
10428 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
10429 Default to "~/.emacs.d/games".
10430
10431 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
10432
10433 * lread.c (openp): Change arg exec_only to predicate.
10434 (build_load_history): Use XCAR/XCDR.
10435 (Flocate_file_internal): New fun.
10436 (syms_of_lread): Defsubr it.
10437 (Fload): Update call to openp.
10438
10439 * lisp.h (openp): Update prototype.
10440
10441 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
10442 * w32proc.c (sys_spawnve):
10443 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
10444 * w32.c (check_windows_init_file):
10445 * sound.c (Fplay_sound_internal):
10446 * process.c (Fstart_process):
10447 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
10448 * mac.c (run_mac_command):
10449 * emacs.c (init_cmdargs):
10450 * callproc.c (Fcall_process): Update call to openp.
10451
10452 * textprop.c (remove_properties): Don't use XCAR without CONSP.
10453
10454 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
10455
10456 2002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10457
10458 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
10459 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
10460
10461 2002-04-28 Richard M. Stallman <rms@gnu.org>
10462
10463 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
10464
10465 * eval.c (Fcommandp): New arg for_call_interactively.
10466 * lisp.h (Fcommandp): Declare new arg.
10467
10468 2002-04-28 Jason Rumney <jasonr@gnu.org>
10469
10470 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
10471
10472 * w32.c (stat, fstat): Use file index information to generate
10473 inodes for directories where available.
10474
10475 2002-04-26 Andrew Choi <akochoi@shaw.ca>
10476
10477 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
10478 [HAVE_CARBON]: Include Mac object files.
10479
10480 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
10481 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
10482 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
10483 MAC_OSX, and MAC_OS instead of macintosh.
10484
10485 * editfns.c [MAC_OS8]: Include stdio.h.
10486
10487 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
10488
10489 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
10490 Apple Monaco.
10491
10492 * process.c: Declare QCfamily and QCfilter as extern.
10493 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
10494 calling select.
10495
10496 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
10497
10498 * tparam.c [MAC_OSX]: Don't define BC and UP.
10499
10500 * config.in [HAVE_CARBON]: Add.
10501
10502 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
10503 Move here from mac/src and mac/inc.
10504
10505 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
10506
10507 2002-04-26 Gerd Moellmann <gerd@gnu.org>
10508
10509 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
10510 Compute phys_cursor_width from the x position returned
10511 by x_draw_glyhs, which is cheaper.
10512 (x_display_and_set_cursor): Compute the buffer-local value
10513 of `cursor-in-non-selected-windows' only when needed.
10514
10515 2002-04-25 Gerd Moellmann <gerd@gnu.org>
10516
10517 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
10518 cursor on a stretch glyph has a width that depends on
10519 x_stretch_cursor_p.
10520
10521 2002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10522
10523 * abbrev.c (abbrev-start-location): Doc fix.
10524
10525 * indent.c (Fvertical_motion): Fix last change.
10526
10527 2002-04-25 Gerd Moellmann <gerd@gnu.org>
10528
10529 * indent.c (Fvertical_motion): Move to the start of the line
10530 containing PT before moving up or down.
10531
10532 2002-04-24 Gerd Moellmann <gerd@gnu.org>
10533
10534 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
10535 case of writing a whole row, more or less analogous to the case of
10536 writing only parts of a row.
10537
10538 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
10539 0 for NO_CURSOR.
10540
10541 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
10542
10543 2002-04-23 Colin Walters <walters@verbum.org>
10544
10545 * buffer.c (syms_of_buffer): Doc fix.
10546
10547 2002-04-23 Gerd Moellmann <gerd@gnu.org>
10548
10549 * xterm.c (notice_overwritten_cursor): Handle the special case
10550 of the cursor being in the first blank non-text line at the
10551 end of a window.
10552
10553 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
10554 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
10555 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
10556 bar cursors only, to make phys_cursor_width contain what its name
10557 suggests.
10558 (notice_overwritten_cursor): Consider the cursor image erased if
10559 the output area intersects the cursor image in y-direction.
10560
10561 2002-04-23 Simon Marshall <simon@gnu.org>
10562
10563 * xfns.c (x_set_mouse_color): Change default for cross_cursor
10564 to XC_hand2.
10565
10566 2002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10567
10568 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
10569
10570 2002-04-22 Kim F. Storm <storm@cua.dk>
10571
10572 * textprop.c (remove_properties): Fixed trap for malformed plist.
10573
10574 2002-04-22 Richard M. Stallman <rms@gnu.org>
10575
10576 * cmds.c (Fend_of_line): Handle intangible text in mid line.
10577
10578 * window.c (make_window): Initialize height_fixed_p,
10579 last_cursor_off_p, and p->cursor_off_p slots.
10580
10581 2002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10582
10583 * fns.c (use-dialog-box): Doc fix.
10584
10585 2002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10586
10587 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
10588 variables `row', `i' and `area'.
10589 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
10590 toolkit library.
10591
10592 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
10593
10594 * xfaces.c (clear_font_table): Don't free the default font of
10595 a frame even if it's on another display.
10596 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
10597 that could be Qt.
10598
10599 2002-04-19 Juanma Barranquero <lektu@terra.es>
10600
10601 * indent.c (Fmove_to_column): Remove unused local variable
10602 `next_boundary_byte'.
10603 (current_column_1): Likewise.
10604
10605 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10606
10607 * msdos.c (Qhbar): New variable.
10608 (syms_of_msdos): Intern and staticpro it.
10609 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
10610 cursor type.
10611
10612 2002-04-19 Dave Lambert <dlambert@acm.org>
10613
10614 Theses change implement an underscore-like (`hbar') cursor.
10615
10616 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
10617
10618 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
10619 Handle the `hbar' cursor type.
10620 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
10621
10622 * xfns.c (Qhbar): New variable.
10623 (syms_of_xfns): Intern and staticpro it.
10624 (x_specified_cursor_type): Handle `hbar' cursor.
10625
10626 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
10627 not defined.
10628
10629 2002-04-18 Richard M. Stallman <rms@gnu.org>
10630
10631 * textprop.c (remove_properties): New arg LIST allows scanning
10632 either a list or a plist.
10633 (interval_has_some_properties_list): New function, like
10634 interval_has_some_properties using list instead of plist.
10635 All callers changed.
10636 (Fremove_list_of_text_properties): New function.
10637 (syms_of_textprop): Defsubr it.
10638
10639 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
10640
10641 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
10642
10643 2002-04-17 Juanma Barranquero <lektu@terra.es>
10644
10645 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
10646
10647 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
10648
10649 * window.c (coordinates_in_window): Don't report on margin area
10650 if its width is zero.
10651
10652 2002-04-16 Jason Rumney <jasonr@gnu.org>
10653
10654 * w32fns.c (Fx_file_dialog): Decode file name before using.
10655
10656 * w32term.c (construct_drag_n_drop): Likewise.
10657
10658 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
10659
10660 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
10661 store load-history in pure space.
10662
10663 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
10664
10665 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
10666
10667 * xterm.c (Qlatin_1, Qutf_8): New vars.
10668 (syms_of_xterm): Initialize them.
10669 (XTread_socket): Eliminate incorrect optimization that tried to avoid
10670 decoding the output of X*LookupString.
10671 Always use latin-1 to decode the output of XLookupString.
10672 Try Xutf8LookupString if XmbLookupString failed.
10673
10674 * region-cache.c (new_region_cache): Use BEG.
10675
10676 2002-04-16 Gerd Moellmann <gerd@gnu.org>
10677
10678 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
10679 configuration files.
10680 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
10681 returns 0.
10682
10683 2002-04-15 Andreas Schwab <schwab@suse.de>
10684
10685 * config.in: Regenerated using autoheader.
10686
10687 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
10688 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
10689 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
10690 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
10691 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
10692 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
10693 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
10694 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
10695 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
10696 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
10697 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
10698 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
10699 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
10700 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
10701 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
10702 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
10703 STACK_DIRECTION, now set by autoconf.
10704
10705 2002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10706
10707 * dispnew.c (marginal_area_string): Sort arguments.
10708
10709 * dispextern.h (marginal_area_string): Add prototype.
10710
10711 2002-04-13 Richard M. Stallman <rms@gnu.org>
10712
10713 * fileio.c (Finsert_file_contents):
10714 Don't call temp_output_buffer_setup--do just part, by hand.
10715
10716 * coding.c (run_pre_post_conversion_on_str):
10717 Don't call temp_output_buffer_setup--do just part, by hand.
10718
10719 * keyboard.c (command_loop_1): Don't call start_hourglass
10720 or cancel_hourglass when executing a macro.
10721
10722 * marker.c (count_markers): New function.
10723
10724 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
10725 grow without limit. Move recently used elements to the front.
10726
10727 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
10728
10729 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
10730
10731 2002-04-12 Gerd Moellmann <gerd@gnu.org>
10732
10733 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
10734 rows marginal areas.
10735 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
10736 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
10737
10738 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
10739
10740 2002-04-12 Dave Love <fx@gnu.org>
10741
10742 * dispnew.c (marginal_area_string): New.
10743
10744 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
10745 (Qleft_margin, Qright_margin): Declare.
10746 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
10747
10748 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
10749 note_mode_line_highlight and extended.
10750
10751 * keyboard.c (Qleft_margin, Qright_margin): Declare.
10752 (make_lispy_event): Deal with mouse events in margins.
10753
10754 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
10755
10756 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
10757
10758 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
10759 than deactivating the mark if tmm is set to `lambda'.
10760 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
10761 Use a single event for HELP_EVENT.
10762 (Fexecute_extended_command): Save last_point_position.
10763
10764 2002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10765
10766 * lisp.h (Fpropertize): Add prototype.
10767
10768 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
10769
10770 2002-04-10 Colin Walters <walters@verbum.org>
10771
10772 * config.in: Add HAVE_SHARED_GAME_DIR.
10773
10774 * callproc.c: (Vgame_score_directory): New variable.
10775 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
10776
10777 2002-04-10 Richard M. Stallman <rms@gnu.org>
10778
10779 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
10780
10781 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
10782
10783 * minibuf.c (read_minibuf): Use empty_string.
10784 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
10785 Short-circuit the search as soon as it "failed".
10786 (Fall_completions): Allow lambda forms and lists of strings for alist.
10787 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
10788 when require_match is nil.
10789 (Ftest_completion): Rename from `test_completion' and export to elisp.
10790 Call the predicate also when alist is a list.
10791 Obey Vcompletion_regexp_list.
10792 (do_completion, Fminibuffer_complete_and_exit): Use it.
10793 (Fassoc_string): Rename from `assoc_for_completion'.
10794 Allow list of strings as well and export to elisp.
10795
10796 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
10797
10798 * puresize.h (BASE_PURESIZE): Increase to 900KB.
10799
10800 2002-04-08 Juanma Barranquero <lektu@terra.es>
10801
10802 * w32.c (sys_accept): Don't hide variable `s'.
10803
10804 2002-04-05 Gerd Moellmann <gerd@gnu.org>
10805
10806 * callint.c (Fcall_interactively): Use INTEGERP instead of
10807 NUMBERP for checking Vhistory_length.
10808
10809 2002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10810
10811 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
10812 Doc fix to reflect it.
10813
10814 2002-04-04 Richard M. Stallman <rms@gnu.org>
10815
10816 * xdisp.c (display_mode_element): New arg RISKY.
10817 Disregard text props found or specified within a variable
10818 that isn't marked risky-local-variable.
10819 (Qrisky_local_variable): New variable.
10820 (syms_of_xdisp): Init and staticpro it.
10821
10822 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
10823
10824 * undo.c (record_point): New fun.
10825 (record_delete, record_insert): Use it.
10826
10827 2002-04-03 Juanma Barranquero <lektu@terra.es>
10828
10829 * doc.c (Fdocumentation): Add missing parentheses.
10830 (Fdocumentation_property): Likewise.
10831
10832 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
10833
10834 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
10835 data is 0, just return nil.
10836
10837 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
10838
10839 * msdos.c (syms_of_msdos): Fix last change with
10840 mouse_autoselect_window.
10841
10842 2002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10843
10844 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
10845 mouse_autoselect_window.
10846
10847 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
10848
10849 * keyboard.c (make_lispy_event): Handle unknown keysyms together
10850 with system-specific keysyms. Use it also for unknown function keys.
10851
10852 * doc.c (reread_doc_file): Return whether reload was attempted.
10853 (Fdocumentation, Fdocumentation_property): Don't try to reload
10854 if the doc is 0 and only ask once.
10855
10856 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
10857
10858 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
10859
10860 * keyboard.c (read_char): If the event was Qselect_window,
10861 restore timer_idleness_start_time to its previous value.
10862
10863 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
10864
10865 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
10866
10867 * region-cache.c (new_region_cache): Use BEG.
10868
10869 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
10870 Use BEG and BEG_BYTE.
10871
10872 * doc.c (get_doc_string): Return nil if the location is wrong.
10873 (reread_doc_file): New fun.
10874 (Fdocumentation, Fdocumentation_property):
10875 Call it if get_doc_string fails.
10876 (Fsnarf_documentation): Make it work for a dumped Emacs.
10877
10878 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
10879 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
10880
10881 * charset.c (Fstring): Allow 0 arguments.
10882
10883 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
10884
10885 * process.c (DATAGRAM_CONN_P, list_processes_1)
10886 (Fprocess_datagram_address, Fset_process_datagram_address)
10887 (Fset_network_process_options, server_accept_connection):
10888 Fix some int/Lisp_Object confusions (thank you union types).
10889
10890 2002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10891
10892 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
10893
10894 * w32term.c: Likewise.
10895 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
10896
10897 * keyboard.c (Qselect_window): New symbol.
10898 (head_table): Use it.
10899 (keys_of_keyboard): Bound select-window event to handle-select-window.
10900 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
10901
10902 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
10903 (last_window): New variable.
10904 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
10905 (note_mouse_movement): Remove reimplemented code in #if 0.
10906 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
10907 Emacs windows.
10908
10909 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
10910
10911 2002-03-31 Gerd Moellmann <gerd@gnu.org>
10912
10913 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
10914 Callers changed.
10915
10916 2002-03-30 Richard M. Stallman <rms@gnu.org>
10917
10918 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
10919 loop whenever it stops making progress.
10920
10921 * widget.c (set_frame_size): Don't call change_frame_size.
10922
10923 2002-03-30 Gerd Moellmann <gerd@gnu.org>
10924
10925 * dispnew.c (direct_output_for_insert):
10926 Call mark_window_display_accurate.
10927
10928 2002-03-29 Jason Rumney <jasonr@gnu.org>
10929
10930 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
10931
10932 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
10933
10934 * Makefile.in (lread.o): Depend on coding.h.
10935
10936 * lread.c (openp, Fload): Encode the file name before passing it
10937 to `stat', `access', and `emacs_open'.
10938 (openp): GCPRO the encoded file name. Don't recompute Lisp
10939 strings unnecessarily.
10940
10941 2002-03-29 Kim F. Storm <storm@cua.dk>
10942
10943 * fns.c (Flax_plist_put): Doc fix.
10944
10945 2002-03-28 Miles Bader <miles@gnu.org>
10946
10947 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
10948
10949 2002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10950
10951 * process.c (set-network-process-options): Add usage.
10952 (make-network-process): Doc fix.
10953
10954 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
10955
10956 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
10957
10958 2002-03-26 Richard M. Stallman <rms@gnu.org>
10959
10960 * fns.c (Fsubstring_no_properties): New function.
10961 (Flax_plist_get, Flax_plist_put): New functions.
10962 (syms_of_fns): defsubr them.
10963
10964 * xdisp.c (update_menu_bar): Test only update_mode_lines;
10965 don't test or alter w->update_mode_line.
10966
10967 * window.c (Fdisplay_buffer): Doc fix.
10968
10969 2002-03-24 Richard M. Stallman <rms@gnu.org>
10970
10971 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
10972
10973 2002-03-24 Gerd Moellmann <gerd@gnu.org>
10974
10975 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
10976 (Fdefmacro): Handle `(declare ...)'.
10977 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
10978 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
10979
10980 2002-03-24 Jason Rumney <jasonr@gnu.org>
10981
10982 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
10983 (xbm_file_p): Add prototypes.
10984 (xbm_format, xbm_image_p): Sync with xfns.c.
10985 (reflect_byte): New function.
10986 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
10987 (xbm_load_image): Create bitmaps with a depth of 1.
10988 (init_xfns): Enable XBM images.
10989
10990 2002-03-23 Jason Rumney <jasonr@gnu.org>
10991
10992 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
10993 correctly. Do not pass up_modifier to keyboard buffer.
10994
10995 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
10996
10997 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
10998
10999 * Makefile.in (bootstrapclean): New target.
11000 (bootstrap-temacs, bootstrap-doc): Remove.
11001 (bootstrap-emacs): Use a bog-standard `temacs'.
11002 Don't bother to build a DOC file.
11003
11004 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
11005
11006 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
11007 in temacs even if !CANNOT_DUMP.
11008 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
11009
11010 * alloc.c (check_pure_size): Only output a warning.
11011
11012 2002-03-22 Jason Rumney <jasonr@gnu.org>
11013
11014 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
11015 supported.
11016
11017 * w32term.c (zv_bits): Declare as short, for word alignment.
11018 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
11019 (syms_of_w32term): Define x-use-underline-position-properties.
11020
11021 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
11022 (clear_image_cache): Block input, fix logic, clear matrices in
11023 all frames that share this cache.
11024
11025 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
11026
11027 * emacs.c (main): Update the Copyright year in the blurb printed
11028 by "emacs --version".
11029
11030 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
11031
11032 * xterm.c (XTread_socket): If XK_ISO_Lock and
11033 XK_ISO_Last_Group_Lock are defined, handle keysyms between
11034 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
11035
11036 2002-03-21 Kim F. Storm <storm@cua.dk>
11037
11038 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
11039 menu-bar bindings in keymap and local-map properties _are_ used.
11040 But try keymap property first in accordance with 2002-01-03 patch.
11041 Added comment describing why this is not always reliable.
11042 (tool_bar_items): Ditto for tool-bar.
11043
11044 2002-03-21 Jason Rumney <jasonr@gnu.org>
11045
11046 * w32fns.c (x_clear_image_1): Disable color table code.
11047
11048 2002-03-21 Kim F. Storm <storm@cua.dk>
11049
11050 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
11051 removed the wrong version of the DEFUN macro; fixed it.
11052
11053 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
11054 Fmember rather than Fmemq).
11055 (Fprovide): Check that subfeatures is a list.
11056
11057 * process.c (QCfeature, QCdatagram): Removed variables.
11058 (QCtype, Qdatagram): New variables.
11059 (network_process_featurep): Removed function.
11060 (Fmake_network_process): Removed :feature check.
11061 Use :type 'datagram instead of :datagram t to create a datagram
11062 socket. This allows us to add other connection types (e.g. raw
11063 sockets) later in a consistent manner.
11064 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
11065 supported subfeatures for feature make-network-process.
11066 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
11067 Intern and staticpro QCtype and Qdatagram.
11068 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
11069
11070 * xfns.c: (QCtype): Remove duplicate declaration and
11071 initialization (is now declared in process.c).
11072
11073 * w32fns.c: (QCtype): Remove duplicate declaration and
11074 initialization (is now declared in process.c).
11075
11076 2002-03-21 Richard M. Stallman <rms@gnu.org>
11077
11078 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
11079 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
11080 when jumping to `fail' to avoid undoing reg changes in the
11081 last iteration of the loop.
11082 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
11083
11084 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
11085 Depend on process.h.
11086
11087 2002-03-20 Jason Rumney <jasonr@gnu.org>
11088
11089 Most of the following changes are still conditional on HAVE_IMAGES
11090 which is not set by default on Windows.
11091
11092 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
11093
11094 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
11095 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
11096 (four_corners_best, x_clear_image_1, x_clear_image)
11097 (x_alloc_image_color, postprocess_image)
11098 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
11099 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
11100 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
11101
11102 * w32gui.h (struct XImage): Define.
11103
11104 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
11105 extract mouse co-ordinates.
11106
11107 2002-03-20 Jason Rumney <jasonr@gnu.org>
11108
11109 * w32.c (init_winsock): Dynamically load new server and UDP
11110 socket functions.
11111 (socket_to_fd): New function.
11112 (sys_socket): Use it.
11113 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
11114 (sys_recvfrom, sys_sendto): New wrapper functions.
11115
11116 * process.c (QCfamily, QCfilter): Remove duplicate declaration
11117 and initialization.
11118
11119 * makefile.w32-in (LIBS): Remove $(WSOCK32).
11120
11121 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
11122
11123 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
11124 Don't use "sun" as a variable, it's a predefined constant on Sun
11125 machines.
11126
11127 2002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11128
11129 * bytecode.c (Fbyte_code): Revert last change.
11130
11131 2002-03-19 Kim F. Storm <storm@cua.dk>
11132
11133 * makefile.w32-in (LIBS): Add $(WSOCK32).
11134 From David Ponce <dponce@voila.fr>.
11135
11136 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11137
11138 * process.c (wait_reading_process_input): Move variables `pname'
11139 and `pnamelen' down where they are used.
11140
11141 * bytecode.c (Fbyte_code): Discard unused computed value to
11142 prevent gcc warning.
11143
11144 * lisp.h (Fplist_member): Add prototype.
11145
11146 2002-03-18 Kim F. Storm <storm@cua.dk>
11147
11148 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
11149 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
11150
11151 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
11152 Remove explicit GNU_LINUX settings for datagram support.
11153
11154 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11155
11156 * process.c (Fmake_network_process): Remove unused variable `sa'.
11157 Doc fix. Add usage:.
11158 (set_socket_options): Remove unused variables `optnum' and `opttype'.
11159
11160 2002-03-17 Richard M. Stallman <rms@gnu.org>
11161
11162 * xdisp.c (cursor_type_changed): New variable.
11163 (redisplay_internal): Redisplay all windows if cursor_type_changed.
11164 Clear it when clearing windows_or_buffers_changed.
11165 (try_cursor_movement, redisplay_window, try_window_id)
11166 (try_window_reusing_current_matrix): Test cursor_type_changed
11167 along with windows_or_buffers_changed.
11168
11169 * window.h (cursor_type_changed): New variable.
11170
11171 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
11172 not update_mode_lines, and always set it to 1.
11173
11174 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
11175 if no frames needed redrawing.
11176
11177 2002-03-17 Kim F. Storm <storm@cua.dk>
11178
11179 The following changes add support for network server processes,
11180 datagram connections, and local (unix) sockets.
11181
11182 * process.h (struct Lisp_Process): New member log.
11183 Doc fix: Member command used to indicate stopped network process.
11184 Doc fix: Member childp contains plist for network process.
11185 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
11186
11187 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
11188 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
11189 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
11190 New variables.
11191 (NETCONN1_P): New macro.
11192 (DATAGRAM_SOCKETS): New conditional symbol.
11193 (datagram_address): New array.
11194 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
11195 (status_message): Use concat3.
11196 (Fprocess_status): Add `listen' status to doc string. Return `stop'
11197 for a stopped network process.
11198 (Fset_process_buffer): Update contact plist for network process.
11199 (Fset_process_filter): Ditto. Don't enable input for stopped
11200 network processes. Server must listen, even if filter is t.
11201 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
11202 New functions.
11203 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
11204 (Fprocess_contact): Added KEY argument. Handle datagrams.
11205 (list_processes_1): Optionally show only processes with the query
11206 on exit flag set. Dynamically adjust column widths. Omit tty
11207 column if not needed. Report stopped network processes.
11208 Identify server and datagram network processes.
11209 (Flist_processes): New optional arg `query-only'.
11210 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
11211 (conv_lisp_to_sockaddr, set_socket_options)
11212 (network_process_featurep, unwind_request_sigio): New helper functions.
11213 (Fprocess_datagram_address, Fset_process_datagram_address):
11214 (Fset_network_process_options): New lisp functions.
11215 (Fopen_network_stream): Removed. Now defined in simple.el.
11216 (Fmake_network_process): New lisp function. Code is based on previous
11217 Fopen_network_stream, but heavily reworked with new property list based
11218 argument list, support for datagrams, server processes, and local
11219 sockets in addition to old client-only functionality.
11220 (server_accept_connection): New function.
11221 (wait_reading_process_input): Use it to handle incoming connects.
11222 Do not enable input on a new connection if process is stopped.
11223 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
11224 (send_process): Handle datagram sockets.
11225 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
11226 network process is indicated by setting command field to t .
11227 (Fprocess_send_eof): No-op if datagram connection.
11228 (Fstatus_notify): Don't read input for a stream server socket or a
11229 stopped network process.
11230 (init_process): Initialize datagram_address array.
11231 (syms_of_process): Intern and staticpro new variables, defsubr new
11232 functions.
11233
11234 2002-03-16 Jason Rumney <jasonr@gnu.org>
11235
11236 * w32fns.c (w32_to_all_x_charsets): Return correct type in
11237 startup case.
11238
11239 2002-03-16 Richard M. Stallman <rms@gnu.org>
11240
11241 * xdisp.c (redisplay_internal, redisplay_windows):
11242 Use list_of_error to call internal_condition_case_1.
11243 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
11244 so as to catch all errors with no possibility of debugger redisplay.
11245 (list_of_error): New variable.
11246 (syms_of_xdisp): Init and staticpro it.
11247
11248 * print.c (print_object): Delete `\ ' from printed rep of frame.
11249
11250 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
11251
11252 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
11253 until its implementation is fixed.
11254
11255 2002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11256
11257 * xfns.c (png_load): Remove unused variable `gamma_str'.
11258
11259 2002-03-14 Richard M. Stallman <rms@gnu.org>
11260
11261 * xfns.c (x_real_positions): Handle failure in XQueryTree.
11262
11263 2002-03-14 Miles Bader <miles@gnu.org>
11264
11265 * intervals.c (adjust_for_invis_intang): New function.
11266 (set_point_both): Use `adjust_for_invis_intang' to do most of the
11267 work for dealing with invisible+intangible regions. Do so before
11268 and after both forward and backward movements, to handle both
11269 front-sticky and rear-sticky cases.
11270 * textprop.c (text_property_stickiness): Function moved here from
11271 `editfns.c'.
11272 * intervals.h (text_property_stickiness): New declaration.
11273 * editfns.c (char_property_eq): Function removed.
11274 (text_property_stickiness): Function moved to `textprop.c'.
11275
11276 2002-03-13 Jason Rumney <jasonr@gnu.org>
11277
11278 * config.in: Add STRFTIME_NO_POSIX2.
11279
11280 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
11281 and %OX when underlying strftime does not.
11282
11283 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
11284
11285 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
11286 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
11287 line) to avoid annoying flicker.
11288 (xm_scroll_callback): Get rid of the now unnecessary kludge.
11289 (XTread_socket): Mark it static.
11290
11291 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
11292
11293 2002-03-13 Kim F. Storm <storm@cua.dk>
11294
11295 * puresize.h (BASE_PURESIZE): Increase to 775000.
11296
11297 2002-03-12 Juanma Barranquero <lektu@terra.es>
11298
11299 * editfns.c (syms_of_editfns): Fix typo.
11300
11301 2002-03-12 Gerd Moellmann <gerd@gnu.org>
11302
11303 * xsmfns.c: Include stdio.h because termhooks.h needs it.
11304 Include termopt.h for interrupt_input.
11305
11306 2002-03-11 Andreas Schwab <schwab@suse.de>
11307
11308 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
11309
11310 2002-03-11 Gerd Moellmann <gerd@gnu.org>
11311
11312 * xterm.c (note_mouse_movement): Put code for
11313 x_autoselect_window_p in #if 0.
11314
11315 * lread.c (Fload): Don't assume that message_with_string uses the
11316 string it is given like a C string.
11317
11318 2002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11319
11320 * xterm.h (x_session_check_input, x_session_initialize): Declared.
11321
11322 * xterm.c: (XTread_socket): Add call to x_session_check_input and
11323 x_session_have_connection.
11324 (x_initialize): Add call to x_session_initialize.
11325
11326 * termhooks.h (enum event_kind): Add save_session_event.
11327
11328 * keyboard.c: Add Emacs event save_session_event.
11329
11330 * emacs.c (main): Add call to syms_of_xsmfns.
11331
11332 * lisp.h: Declare syms_of_xsmfns as extern.
11333
11334 * config.in: Add HAVE_X_SM.
11335
11336 * Makefile.in (LIBXT): Add -lSM -lICE
11337 if HAVE_X_SM and not USE_X_TOOLKIT.
11338 (XOBJ): New file xsmfns.c added.
11339
11340 * xsmfns.c: New file for X session management.
11341
11342 2002-03-09 Jason Rumney <jasonr@gnu.org>
11343
11344 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
11345 read-only when setting modified time.
11346
11347 2002-03-08 Gerd Moellmann <gerd@gnu.org>
11348
11349 * xdisp.c (move_it_vertically_backward): At the end of the function,
11350 when moving forward by lines, treat terminal frames specially.
11351
11352 * keyboard.c (echo_char): Make sure to add a separator between
11353 keys even if echo_dash hasn't been called.
11354
11355 * xdisp.c: Use new string macros.
11356 (update_echo_area): Pass number of bytes to message3 instead of
11357 number of chars.
11358 (set_message_1): Don't access a string's size_byte directly.
11359 (decode_mode_spec_coding): Use number of bytes of eoltype string
11360 instead number of chars.
11361
11362 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
11363
11364 2002-03-08 Juanma Barranquero <lektu@terra.es>
11365
11366 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
11367 24-bit.
11368
11369 2002-03-06 Jason Rumney <jasonr@gnu.org>
11370
11371 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
11372
11373 2002-03-06 Gerd Moellmann <gerd@gnu.org>
11374
11375 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
11376 (cancel_echoing, echo_length, echo_truncate): Changed to
11377 work with new kboard definition.
11378 (echo_now): Use message3_nolog instead of message2_nolog.
11379
11380 * alloc.c (mark_kboards): Mark echo_string.
11381
11382 * keyboard.h (ECHOBUFSIZE): Removed.
11383 (struct kboard): Member echoptr removed, member echobuf renamed
11384 to echo_string.
11385
11386 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
11387 message3 instead of message2 to display the message using STRING's
11388 text properties.
11389
11390 2002-03-05 Andreas Schwab <schwab@suse.de>
11391
11392 * xdisp.c (hscroll_margin): Change to EMACS_INT.
11393
11394 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
11395
11396 * frame.c (default-frame-alist): Explain that setting it doesn't
11397 affect existing frames.
11398
11399 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
11400
11401 * indent.c (skip_invisible): Fix my brain fart.
11402
11403 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
11404
11405 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
11406
11407 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
11408 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
11409 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
11410 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
11411 and variables to use EMACS_INT instead of just int.
11412
11413 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
11414
11415 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
11416
11417 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
11418 environment, pass it down with corrected value.
11419
11420 2002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11421
11422 * lread.c (read_filtered_event): Do not call start_hourglass
11423 before returning.
11424
11425 2002-03-04 Juanma Barranquero <lektu@terra.es>
11426
11427 * w32term.c (x_display_and_set_cursor): Fix typo.
11428
11429 2002-03-03 Richard M. Stallman <rms@gnu.org>
11430
11431 * fileio.c (Fmake_temp_name): Doc fix.
11432
11433 2002-03-03 Gary Wong <gtw@gnu.org>
11434
11435 * termcap.c [!emacs]: Replace ospeed for building standalone
11436 libtermcap, for binary compatibility.
11437
11438 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
11439
11440 2002-03-03 Richard M. Stallman <rms@gnu.org>
11441
11442 * xrdb.c (file_p): Rename arg `path' to `filename'.
11443
11444 * abbrev.c (Fexpand_abbrev): Increment plist as use count
11445 only if it is an integer.
11446
11447 * xfns.c (png_load): Set screen_gamma based on f->gamma.
11448 If png_get_sRGB gives an answer, call png_set_gamma
11449 using the default image gamma value.
11450
11451 * lread.c (read1): When reading from a file, default string to
11452 multibyte only if it has some multibyte characters.
11453
11454 * print.c (print_object): Output multibyte chars 128...255
11455 using \x even if ! print_escape_multibyte.
11456
11457 * xdisp.c (display_mode_element): Move the places where
11458 bytepos, charpos, this, and lisp_string are set.
11459 Use lisp_string to set bytepos.
11460
11461 * xdisp.c (redisplay_internal):
11462 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
11463
11464 * xdisp.c (display_mode_element): Merge properties specified with
11465 :propertize onto those that come with the string.
11466
11467 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
11468
11469 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
11470 automatic-hscrolling. Users changed.
11471 <hscroll-margin>: Renamed from automatic-hscroll-margin.
11472 Users changed.
11473 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
11474
11475 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
11476
11477 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
11478
11479 2002-03-02 Kim F. Storm <storm@cua.dk>
11480
11481 * window.c (Fminibuffer_selected_window): New function.
11482 (syms_of_window): Defsubr it.
11483
11484 2002-03-01 Kim F. Storm <storm@cua.dk>
11485
11486 * window.h (struct window): New member phys_cursor_width.
11487
11488 * window.c (make_window, replace_window): Init phys_cursor_width.
11489
11490 * xterm.c (x_display_and_set_cursor): Blink box cursor using
11491 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
11492
11493 * w32term.c (x_display_and_set_cursor): Blink box cursor using
11494 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
11495
11496 * lisp.h (GCPRO6): New macro.
11497
11498 * process.c (Fopen_network_stream): Use GCPRO6.
11499
11500 2002-03-01 Kim F. Storm <storm@cua.dk>
11501
11502 * process.c (Qconnect, Qfailed): New variables.
11503 (syms_of_process): Intern and staticpro them.
11504 (Fprocess_status): Document connect and failed return values.
11505 [NON_BLOCKING_CONNECT]: New conditional.
11506 (connect_wait_mask, num_pending_connects): New variables.
11507 (status_message): Convert Qfailed status.
11508 (Fopen_network_stream): Added support for non-blocking connect.
11509 New optional args: filter, sentinel, non_blocking. Doc updated.
11510 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
11511 (deactivate_process): Handle pending non-blocking connect.
11512 (wait_reading_process_input): Poll for status of non-blocking
11513 connects. Exec sentinel directly when connect succeeds.
11514 (status_notify): Don't read process output if not yet connected.
11515
11516 2002-02-28 Kim F. Storm <storm@cua.dk>
11517
11518 * window.c: (minibuf_selected_window): Renamed from
11519 Vminibuf_selected_window. Users changed.
11520 (syms_of_window): Staticpro it.
11521
11522 2002-02-26 Kim F. Storm <storm@cua.dk>
11523
11524 The following changes add a new Vminibuf_selected_window variable
11525 which is similar to Vminibuf_scroll_window, but which is only set
11526 on entry to the minibuffer (from a non-minibuffer window):
11527
11528 * window.c: (Vminibuf_selected_window): New variable.
11529 (struct save_window_data): New member minibuf_selected_window.
11530 (Fset_window_configuration): Restore Vminibuf_selected_window.
11531 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
11532 Set minibuf_scroll_window member to nil if minibuf_level is 0.
11533 (compare_window_configurations): Compare minibuf_selected_window.
11534
11535 * window.h: (Vminibuf_selected_window): Declare extern.
11536
11537 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
11538 entry to minibuffer or on entry from a non-minibuffer window.
11539
11540 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
11541 Vminibuf_selected_window instead of Vminibuf_scroll_window.
11542
11543 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
11544 instead of Vminibuf_scroll_window when deciding in which window
11545 the region should be highlighted. Consequently, the region remains
11546 highlighteded even when a completion buffer is also displayed.
11547
11548 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
11549
11550 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
11551
11552 * xselect.c (Qcompound_text_with_extensions): Renamed from
11553 Qcompound_text_no_extensions.
11554 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
11555
11556 2002-02-26 Juanma Barranquero <lektu@terra.es>
11557
11558 * w32proc.c (syms_of_ntproc): Doc fix.
11559
11560 2002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11561
11562 * intervals.h: Include "dispextern.h" unconditionally.
11563
11564 2002-02-24 Jason Rumney <jasonr@gnu.org>
11565
11566 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
11567 and disp-table.elc.
11568 (lisp): Add emacs-lisp/backquote.elc.
11569
11570 2002-02-24 Kim F. Storm <storm@cua.dk>
11571
11572 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
11573 The validation of the event type was too strict as it didn't
11574 allow string events; buffer names are used in bindings for
11575 menu-bar-select-buffer (see `menu-bar-update-buffers').
11576
11577 2002-02-23 Kim F. Storm <storm@cua.dk>
11578
11579 The following changes rework my patch of 2002-02-06 which
11580 added command remapping by entering the commands directly into
11581 the keymaps. Now, command remapping uses an explicit `remap'
11582 prefix in the keymaps, i.e. [remap COMMAND].
11583
11584 * keymap.c (Qremap, remap_command_vector): New variables.
11585 (is_command_symbol): Removed function.
11586 (Fdefine_key): No longer accept a symbol for KEY.
11587 Added validation of [remap COMMAND] argument for KEY.
11588 The DEF is no longer required to be a symbol when remapping a command.
11589 (Fremap_command): New function to remap command through keymaps.
11590 (Flookup_key): Perform command remapping initiated by
11591 Fremap_command directly for speed.
11592 (Fkey_binding): Use Fremap_command for command remapping.
11593 (where_is_internal): Handle new command remapping representation.
11594 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
11595 staticpro them. Defsubr Fremap_command.
11596
11597 * keymap.h (Fremap_command): Declare extern.
11598 (is_command_symbol): Remove extern.
11599
11600 * keyboard.c (command_loop_1): Use Fremap_command for command
11601 remapping; now try command remapping for all symbols.
11602
11603 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
11604
11605 * coding.h (run_pre_post_conversion_on_str): Add prototype.
11606
11607 2002-02-23 Jason Rumney <jasonr@gnu.org>
11608
11609 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
11610 on the string before encoding it.
11611 (Fw32_get_clipboard_data): Run post-read-conversion on the string
11612 after decoding it.
11613
11614 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
11615
11616 2002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11617
11618 * w32term.c (enter_timestamp): Remove unused static variable to
11619 prevent warning.
11620
11621 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
11622
11623 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
11624
11625 * w16select.c (Fw16_get_clipboard_data): Fix last change.
11626
11627 * xselect.c (selection_data_to_lisp_data): Fix last change.
11628
11629 2002-02-22 Jason Rumney <jasonr@gnu.org>
11630
11631 * w32term.h (struct w32_output): New member menu_command_in_progress.
11632
11633 * w32menu.c (menubar_selection_callback): Free the menu and
11634 clear the menu_command_in_progress flag.
11635
11636 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
11637 (menu_free_timer): New variable.
11638 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
11639 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
11640 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
11641 menu command is in progress.
11642 <WM_COMMAND>: Set the menu_command_in_progress flag.
11643 Kill any menu_free_timer that is running.
11644
11645 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
11646 Call ExtTextOutA rather than ExtTextOut.
11647
11648 2002-02-22 Eli Zaretskii <eliz@gnu.org>
11649
11650 * puresize.h (BASE_PURESIZE): Increase to 755000.
11651
11652 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
11653
11654 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
11655 on the string before encoding it.
11656 (Fw16_get_clipboard_data): Run post-read-conversion on the string
11657 after decoding it.
11658
11659 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
11660
11661 Support for ICCCM Extended Segments in X selections:
11662
11663 * xselect.c <Qcompound_text_no_extensions>: New variable.
11664 (syms_of_xselect): Intern and staticpro it.
11665 (selection_data_to_lisp_data): Run post-read-conversion on decoded
11666 selection text.
11667 (lisp_data_to_selection_data): If next-selection-coding-system is
11668 compound-text-no-extensions, set the type of selection to be
11669 compound-text.
11670
11671 * xterm.h (x_encode_text): Update prototype.
11672
11673 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
11674 callers changed. If SELECTIONP is non-zero, run the
11675 pre-write-conversion function before encoding the selection text.
11676
11677 2002-02-21 Kim F. Storm <storm@cua.dk>
11678
11679 * frame.c (syms_of_frame): Change mouse-highlight default to t.
11680
11681 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
11682 Correct composing of language-change event.
11683
11684 2002-02-20 Kim F. Storm <storm@cua.dk>
11685
11686 * keyboard.c (menu_bar_items): Don't include keymap or local-map
11687 bindings at PT when building menu (the menu is not updated often
11688 enough for this to work reliable).
11689 (tool_bar_items): Likewise.
11690 (current_active_maps): Removed unused (and buggy) function.
11691
11692 2002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11693
11694 * xfns.c (gif_load): Use correct width and height for GIF images.
11695
11696 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
11697
11698 * floatfns.c (Fatan): Accept an optional second arg and call
11699 atan2 if passed 2 args.
11700
11701 2002-02-18 Jason Rumney <jasonr@gnu.org>
11702
11703 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
11704
11705 2002-02-17 Jason Rumney <jasonr@gnu.org>
11706
11707 * w32term.c (x_autoselect_window_p): New variable.
11708 (syms_of_w32term): DEFVAR_BOOL and initialize it.
11709 (note_mouse_movement): Use it.
11710
11711 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
11712
11713 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
11714
11715 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
11716 New variables.
11717 (syms_of_w32fns): Intern and staticpro them.
11718 (x_frame_parms) <"fullscreen">: New parameter.
11719 (x_fullscreen_move, x_set_fullscreen): New functions.
11720 (x_set_frame_parameters): Support Qfullscreen.
11721 (x_real_positions): Save x/y_pixels_diff frame params.
11722 (x_figure_window_size): Support full-screen frames.
11723 (Fx_create_frame): Default the fullscreen parameter.
11724
11725 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
11726 (x_fullscreen_adjust): New functions.
11727 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
11728 fullscreen. Call x_check_fullscreen_move, and set the
11729 want_fullscreen member of output_data.w32
11730 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
11731
11732 * w32term.h: New enum for FULLSCREEN_* constants.
11733 (struct w32_output): New members want_fullscreen, x_pixels_diff,
11734 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
11735 (x-fullscreen-adjust): New prototype.
11736
11737 2002-02-17 Kim F. Storm <storm@cua.dk>
11738
11739 * frame.c: (Vmouse_highlight): New variable.
11740 (syms_of_frame): DEFVAR_LISP it.
11741
11742 * frame.h: (Vmouse_highlight): Declare extern.
11743
11744 * xterm.h (struct x_display_info): Add mouse_face_hidden.
11745
11746 * xterm.c (disable_mouse_highlight): Removed variable.
11747 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
11748 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
11749 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
11750 and on after keyboard input.
11751 (x_term_init): Initialize mouse_face_hidden.
11752
11753 * msdos.h (struct display_info): Add mouse_face_hidden.
11754
11755 * msdos.c (disable_mouse_highlight): Removed variable.
11756 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
11757 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
11758 (internal_terminal_init): Initialize mouse_face_hidden.
11759 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
11760 and on after keyboard input.
11761
11762 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
11763
11764 * w32term.c (disable_mouse_highlight): Removed variable.
11765 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
11766 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
11767 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
11768 and on after keyboard input.
11769 (w32_initialize_display_info): Initialize mouse_face_hidden.
11770
11771 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
11772
11773 * msdos.c (last_mouse_window): New variable.
11774 (dos_rawgetc): Fix last change--if the mouse is in the same window
11775 as recorded in last_mouse_window, don't select this window.
11776
11777 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
11778
11779 * msdos.c (x_autoselect_window_p): New variable.
11780 (syms_of_msdos): Defvar it.
11781 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
11782 which the last mouse movement occured, unless it is already selected.
11783
11784 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
11785 New variables.
11786 (syms_of_xdisp): DEVFAR them.
11787 (hscroll_window_tree): Use automatic_hscroll_margin and
11788 Vautomatic_hscroll_step to compute the amount of window scrolling.
11789
11790 2002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11791
11792 * xterm.c (x-autoselect-window): New variable.
11793 (note_mouse_movement): Use it.
11794
11795 * keyboard.c: Do not include "systime.h" twice.
11796
11797 2002-02-15 Andreas Schwab <schwab@suse.de>
11798
11799 * puresize.h (BASE_PURESIZE): Increase to 9/5.
11800
11801 * alloc.c (NSTATICS): Increase to 1280.
11802
11803 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11804
11805 * alloc.c (NSTATICS): Bump to 1026.
11806
11807 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
11808 (Vx_super_keysym): New variables.
11809 (syms_of_xterm): DEFVAR_LISP them.
11810 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
11811 variables to determine which keys to use for the various modifiers.
11812
11813 2002-02-13 Kim F. Storm <storm@cua.dk>
11814
11815 * window.c: (Vmode_line_in_non_selected_windows): Removed.
11816 (mode_line_in_non_selected_windows): New variable.
11817 (syms_of_window): DEFVAR_BOOL it.
11818
11819 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
11820 Use mode_line_in_non_selected_windows.
11821 (mode_line_in_non_selected_windows): Declare extern.
11822 (Vmode_line_in_non_selected_windows): Removed extern.
11823
11824 2002-02-13 Richard M. Stallman <rms@gnu.org>
11825
11826 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
11827 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
11828 (Fclear_this_command_keys): Doc fixes.
11829
11830 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
11831 (update_face_from_frame_parameter): Increment face_change_count
11832 and windows_or_buffers_changed to force redisplay using changed faces.
11833
11834 * xdisp.c (QCpropertize): New variable.
11835 (mode_line_proptrans_alist): New variable.
11836 (display_mode_element): New arg PROPS; all calls changed.
11837 Implement this, for strings.
11838 Handle literal output of strings by sharing the
11839 main-line code for strings, using local var `literal'.
11840 Handle :propertize feature.
11841 (syms_of_xdisp): Initialze and staticpro QCpropertize and
11842 mode_line_proptrans_alist.
11843
11844 2002-02-11 Kim F. Storm <storm@cua.dk>
11845
11846 * window.c: (Vmode_line_in_non_selected_windows): New variable.
11847 (syms_of_window): DEFVAR_LISP it.
11848
11849 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
11850 (CURRENT_MODE_LINE_FACE_ID): Use it.
11851 (Vmode_line_in_non_selected_windows): Declare extern.
11852
11853 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
11854 to get mode line face.
11855
11856 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
11857
11858 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
11859 variables; cus-start.el doesn't need them anymore.
11860
11861 2002-02-09 Kim F. Storm <storm@cua.dk>
11862
11863 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
11864 reduction. This fixes a display problem where stray newlines were
11865 inserted in the window (corrected by C-l). Clarified code (IMHO).
11866
11867 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
11868
11869 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
11870
11871 * xdisp.c (display_mode_lines): Fix last change.
11872
11873 2002-02-09 Jason Rumney <jasonr@gnu.org>
11874
11875 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
11876 match each other.
11877 (w32_load_system_font): Prevent Cleartype fonts from loading.
11878 (Fx_show_tip): Ensure tip frames are above other topmost windows.
11879
11880 2002-02-09 Kim F. Storm <storm@cua.dk>
11881
11882 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
11883 (CURRENT_MODE_LINE_HEIGHT): Use it.
11884 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
11885
11886 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
11887 (pos_visible_p, handle_face_prop): Likewise.
11888 (display_mode_lines): Likewise, but for the real selected window.
11889 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
11890
11891 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
11892 in non-selected windows.
11893 (realize_basic_faces): Realize it.
11894 (syms_of_term): Intern and staticpro it.
11895
11896 2002-02-08 Kim F. Storm <storm@cua.dk>
11897
11898 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
11899 Changed mail addresses to emacs-devel@gnu.org.
11900
11901 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
11902
11903 * fileio.c (Fsubstitute_in_file_name): If the file name includes
11904 ~user, and there's no such user, don't discard everything before ~user.
11905
11906 * floatfns.c (Fround): Doc fix.
11907
11908 2002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11909
11910 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
11911
11912 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
11913
11914 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
11915
11916 2002-02-07 Kim F. Storm <storm@cua.dk>
11917
11918 * keymap.c (where_is_internal): Only check whether definition is
11919 remapped if it fulfills is_command_symbol.
11920
11921 2002-02-07 Andreas Schwab <schwab@suse.de>
11922
11923 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
11924
11925 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
11926
11927 2002-02-06 Kim F. Storm <storm@cua.dk>
11928
11929 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
11930 defining command remapping. Doc updated.
11931 (Flookup_key): Remap command through keymap if KEY is a symbol.
11932 (is_command_symbol): New function.
11933 (Fkey_binding): Use it. New optional argument NO-REMAP.
11934 Doc updated. Callers changed. Perform command remapping via
11935 recursive call unless that arg is non-nil.
11936 (where_is_internal): New argument no_remap. Callers changed.
11937 Call recursively to find original key bindings for a remapped
11938 comand unless that arg is non-nil.
11939 (Fwhere_is_internal): New optional argument NO-REMAP.
11940 Doc updated. Callers changed. Pass arg to where_is_internal.
11941
11942 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
11943 (is_command_symbol): Added prototype.
11944
11945 * keyboard.c (Vthis_original_command): New variable.
11946 (syms_of_keyboard): DEFVAR_LISP it.
11947 (command_loop_1): Set it, and perform command remapping.
11948
11949 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11950
11951 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
11952
11953 2002-02-06 Jason Rumney <jasonr@gnu.org>
11954
11955 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
11956
11957 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
11958
11959 * charset.c (get_charset_id): Use if-else instead of ?:.
11960
11961 2002-02-06 Richard M. Stallman <rms@gnu.org>
11962
11963 * filelock.c (S_ISLNK): Define if not defined.
11964
11965 2002-02-03 Richard M. Stallman <rms@gnu.org>
11966
11967 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
11968
11969 * lread.c (read1): Redesign strategy for force_multibyte and
11970 force_singlebyte. Now is_multibyte records whether read_buffer
11971 is multibyte. Encountering any multibyte character makes it so.
11972
11973 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
11974
11975 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
11976 with the same sequence, map that sequence to f10 rather than f0.
11977
11978 2002-02-03 Andreas Schwab <schwab@suse.de>
11979
11980 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
11981 latter never being defined on GNU/Linux.
11982
11983 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
11984
11985 * xfaces.c (realize_default_face): Don't set the weight and slant of
11986 the default face to Qnormal, unless these attributes are unspecified.
11987
11988 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11989
11990 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
11991 Call cancel_hourglass unconditionally.
11992
11993 * eval.c (Fsignal): Remove duplicated declaration of
11994 the variable `display_hourglass_p'.
11995
11996 2002-01-31 Richard M. Stallman <rms@gnu.org>
11997
11998 * editfns.c (region_limit): Nicer error message.
11999
12000 * coding.c (decode_composition_emacs_mule):
12001 Give up if NCOMPONENT gets too large to index `component'.
12002
12003 * callint.c (check_mark): New arg to specify clearer error message.
12004 Callers changed.
12005
12006 2002-01-27 Richard M. Stallman <rms@gnu.org>
12007
12008 * minibuf.c (Fcompleting_read): Doc fix.
12009
12010 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12011
12012 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
12013 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
12014 Fix doc-strings.
12015
12016 2002-01-26 Richard M. Stallman <rms@gnu.org>
12017
12018 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
12019
12020 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
12021 and scroll_up_aggressively.
12022
12023 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12024
12025 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
12026
12027 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
12028
12029 * textprop.c (Fnext_property_change, Fnext_single_property_change)
12030 (Fprevious_property_change, Fprevious_single_property_change):
12031 Stay within the narrowed-buffer boundaries.
12032
12033 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
12034
12035 * term.c (Ftty_display_color_cells): New function.
12036 (syms_of_term): Defsubr it.
12037 (Ftty_display_color_cells, Ftty_display_color_p): Change the
12038 argument name to DISPLAY. Doc fix.
12039
12040 * dispextern.h: Add prototype for set_tty_color_mode and
12041 tty_setup_colors.
12042
12043 2002-01-24 Jason Rumney <jasonr@gnu.org>
12044
12045 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
12046 If region left to draw is not what was expected, mark the frame as
12047 garbaged.
12048
12049 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
12050 Combine the regions returned by BeginPaint and GetUpdateRect.
12051
12052 2002-01-23 Jason Rumney <jasonr@gnu.org>
12053
12054 * w32term.c (x_update_window_begin): Only hide caret if
12055 w32_use_visible_system_caret is set.
12056 (x_update_window_end): Only show caret if
12057 w32_use_visible_system_caret is set.
12058 (syms_of_w32term): Handle SystemParametersInfo call failing.
12059
12060 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
12061
12062 2002-01-22 Richard M. Stallman <rms@gnu.org>
12063
12064 * unexelf.c (unexec): Define n so as to cause compilation error
12065 for the code where people have often written n instead of nn.
12066
12067 * .gdbinit (hookpost-run): Defined.
12068
12069 2002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12070
12071 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
12072
12073 2002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12074
12075 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
12076 if fullscreen is being set.
12077
12078 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12079
12080 * minibuf.c (Fminibuffer_contents)
12081 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
12082 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
12083
12084 2002-01-21 Richard M. Stallman <rms@gnu.org>
12085
12086 * window.c (check_frame_size): Fix minimum height calculation.
12087
12088 2002-01-20 Ken Raeburn <raeburn@gnu.org>
12089
12090 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
12091 height before comparison.
12092 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
12093
12094 2002-01-20 Jason Rumney <jasonr@gnu.org>
12095
12096 * w32term.c (w32_system_caret_width): Remove.
12097 (w32_use_visible_system_caret): New user flag.
12098 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
12099 Windows reports a screen reader running.
12100 (x_update_window_begin): Hide the system caret.
12101 (x_update_window_end): Show the system caret.
12102 (x_display_and_set_cursor): Don't draw a cursor when
12103 w32_use_visible_system_caret is set. Do not adjust width.
12104
12105 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
12106 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
12107 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
12108 the user requests it. Use system default width when creating.
12109 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
12110
12111 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
12112 New window messages.
12113
12114 2002-01-20 Richard M. Stallman <rms@gnu.org>
12115
12116 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
12117
12118 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12119
12120 * doprnt.c (doprnt1): Fix typos in error call.
12121
12122 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
12123
12124 * unexelf.c (unexec) [__sgi]: Support the .got sections.
12125
12126 2002-01-20 Jason Rumney <jasonr@gnu.org>
12127
12128 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
12129 that Windows returns. If a double check fails, try to guess how
12130 ExtTextOut is going to act.
12131
12132 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
12133 in place of stricmp.
12134 (w32_list_synthesized_fonts): Removed.
12135 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
12136 (struct enumfont_t): New element; list.
12137 (enum_font_cb2): List all style and charset variations of a font.
12138 (Fw32_select_font): New optional argument; include_proportional.
12139 Exclude vertical fonts. Exclude proportional fonts unless
12140 include_proportional is non-nil.
12141 (w32_enable_synthesized_fonts): Change to a boolean.
12142 (Fw32_send_sys_command): Doc fix.
12143
12144 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12145
12146 * dispnew.c (update_frame): Move the variable `tem' to the block
12147 where it is used.
12148
12149 2002-01-19 Jason Rumney <jasonr@gnu.org>
12150
12151 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
12152 call to face-set-after-frame-default.
12153
12154 2002-01-18 Richard M. Stallman <rms@gnu.org>
12155
12156 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
12157 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
12158
12159 2002-01-17 Richard M. Stallman <rms@gnu.org>
12160
12161 * window.c (enlarge_window): When exceeding size of parent,
12162 directly delete all the siblings instead of trying to resize it.
12163
12164 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12165
12166 * term.c (set_tty_color_mode): Remove unused variable `tem'.
12167
12168 2002-01-16 Henrik Enberg <henrik@enberg.org>
12169
12170 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
12171
12172 2002-01-16 Kim F. Storm <storm@cua.dk>
12173
12174 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
12175 is invisible. This can happen if cursor is on top line of a
12176 window, and we switch to a buffer with a header line.
12177
12178 * w32term.c (x_erase_phys_cursor): Ditto.
12179
12180 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12181
12182 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
12183 `dont_resize' only when used.
12184
12185 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
12186
12187 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
12188
12189 * xdisp.c (display_mode_element): When computing charpos, depend
12190 on multibyteness of elt, not the text in field.
12191
12192 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12193
12194 * buffer.c (Fkill_all_local_variables):
12195 Increment `update_mode_lines' only once.
12196
12197 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12198
12199 * lisp.h (adjust_after_replace_noundo)
12200 (Fupdate_coding_systems_internal): Add prototypes.
12201
12202 * sound.c (Fplay_sound): Initialize header_size also for :data case.
12203
12204 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
12205
12206 Support for the --color command-line argument and tty-color-mode
12207 frame parameter:
12208
12209 * term.c (tty_default_color_capabilities, tty_setup_colors)
12210 (set_tty_color_mode): New functions.
12211 (term_init): Call tty_default_color_capabilities.
12212 (Qtty_color_mode_alist): New variable.
12213 (syms_of_term): Intern and staticpro it.
12214
12215 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
12216 frames.
12217 (do_switch_frame): For termcap frames, switch the tty
12218 color mode as specified by the frame's parameters.
12219 (Qtty_color_mode): New variable.
12220 (syms_of_frame): Intern and staticpro it.
12221
12222 * emacs.c (USAGE2): Add the --color option.
12223 (standard_args): Ditto.
12224
12225 2002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12226
12227 * xterm.h (struct x_output): New members want_fullscreen,
12228 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
12229 y_pixels_outer_diff.
12230 New enum for FULLSCREEN_* constants.
12231 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
12232 is NULL.
12233 (x_fullscreen_adjust): Add prototype.
12234
12235 * emacs.c (USAGE2): Add the new full-screen arguments.
12236 (standard_args): Ditto.
12237
12238 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
12239 New variables.
12240 (syms_of_xfns): Intern and staticpro them.
12241 (x_frame_parms) <"fullscreen">: New parameter.
12242 (x_fullscreen_move, x_set_fullscreen): New functions.
12243 (x_set_frame_parameters): Support for Qfullscreen.
12244 (x_real_positions): More accurate computation of the frame position.
12245 (x_figure_window_size): Support full-screen frames.
12246 (Fx_create_frame): Default the fullscreen parameter.
12247
12248 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
12249 (XTread_socket) <Expose>: Call x_check_fullscreen.
12250 <ConfigureNotify>: Don't resize to fullscreen.
12251 Call x_check_fullscreen_move, and set the want_fullscreen member of
12252 output_data.x.
12253
12254 2002-01-13 Jason Rumney <jasonr@gnu.org>
12255
12256 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
12257 for mice with more than 3 buttons.
12258
12259 * w32term.c (parse_button): New parameter xbutton. Callers changed.
12260 (w32_read_socket): Handle new "XBUTTON" messages.
12261
12262 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
12263 (syms_of_w32fns): DEFVAR_BOOL it.
12264 (w32_wnd_proc): Handle new "XBUTTON" messages.
12265
12266 2002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12267
12268 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
12269
12270 2002-01-13 Andreas Schwab <schwab@suse.de>
12271
12272 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
12273
12274 2002-01-12 Andreas Schwab <schwab@suse.de>
12275
12276 * .gdbinit (xbuffer): Remove address operator since data is now a
12277 pointer.
12278
12279 2002-01-11 Richard M. Stallman <rms@gnu.org>
12280
12281 * insdel.c (adjust_after_replace_noundo): New function.
12282
12283 * coding.c (code_convert_region): Don't copy old text if undo disabled.
12284
12285 2002-01-09 Jason Rumney <jasonr@gnu.org>
12286
12287 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
12288 when checking for multiple frames.
12289
12290 2002-01-08 Richard M. Stallman <rms@gnu.org>
12291
12292 * window.c (delete_window): Rewrite the code for changing the
12293 selected window to handle the case where WINDOW is not a leaf.
12294
12295 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
12296
12297 * process.c (send_process): Set src_multibyte to 1 after the call
12298 top setup_coding_system, not before the call.
12299
12300 2002-01-07 Jason Rumney <jasonr@gnu.org>
12301
12302 * xmenu.c (set_frame_menubar, xmenu_show):
12303 (xdialog_show): Initialize wv->help to Qnil.
12304
12305 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
12306 (w32_dialog_show): Initialize wv->help to Qnil.
12307
12308 2002-01-06 Jason Rumney <jasonr@gnu.org>
12309
12310 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
12311
12312 * w32menu.c (w32_menu_display_help): Revert last change.
12313
12314 * xmenu.c (menu_highlight_callback): Revert last change.
12315
12316 2002-01-06 Andreas Schwab <schwab@suse.de>
12317
12318 * insdel.c (make_gap_larger): Make sure buffer size does not
12319 overflow range of int.
12320
12321 2002-01-05 Jason Rumney <jasonr@gnu.org>
12322
12323 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
12324 OVERLAPS_P.
12325
12326 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
12327
12328 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
12329 to the left or to the right of the pointer, put it against
12330 the left screen edge.
12331 (x_frame_parms): Add missing braces around initializer.
12332
12333 * w32term.c (x_setup_relief_colors): Don't compute an image's
12334 background color if it doesn't have a Pixmap.
12335 (notice_overwritten_cursor): Don't depend on
12336 output_cursor and updated_area. Compare pixel coordinates with
12337 window's cursor pixel coordinates.
12338 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
12339 Call notice_overwritten_cursor with new arg list.
12340 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
12341 unconditionally.
12342 (x_draw_image_relief): Use predefined macro instead of
12343 constant when the value of `tool_bar_button_relief' is negative.
12344
12345 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
12346
12347 2002-01-04 Richard M. Stallman <rms@gnu.org>
12348
12349 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
12350
12351 2002-01-03 Richard M. Stallman <rms@gnu.org>
12352
12353 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
12354 (Fkey_binding): Try the `keymap' property map first.
12355 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
12356 minor mode bindings.
12357
12358 2002-01-03 Kim F. Storm <storm@cua.dk>
12359
12360 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
12361
12362 2002-01-02 Richard M. Stallman <rms@gnu.org>
12363
12364 * keyboard.c (read_key_sequence): Handle the keymap property
12365 before minor mode maps.
12366
12367 * editfns.c (Fformat): Update thissize from field_width
12368 based on the actual width, in the string case.
12369
12370 2002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12371
12372 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
12373 when used as truth value to prevent gcc warnings.
12374
12375 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
12376 * w32proc.c: Include <config.h>.
12377
12378 2002-01-01 Andreas Schwab <schwab@suse.de>
12379
12380 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
12381 not EMACS_INT, to make them compatible with DEFVAR_INT.
12382 * lisp.h (max_specpdl_size): Adjust declaration.
12383
12384 2002-01-01 Richard M. Stallman <rms@gnu.org>
12385
12386 * print.c (print_object): Test print_escape_nonascii only for
12387 unibyte strings.
12388 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
12389 when outputting to a multibyte buffer.
12390
12391 2001-12-29 Richard M. Stallman <rms@gnu.org>
12392
12393 * print.c (print_object): In multibyte string, use hex escapes.
12394 Use octal only for unibyte strings.
12395 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
12396
12397 * lread.c (read_escape): New arg BYTEREP for reporting whether
12398 escape forces unibyte or multibyte.
12399 (read1): When reading a string, take note of that info.
12400
12401 2001-12-29 Ken Raeburn <raeburn@gnu.org>
12402
12403 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
12404 comparison to test lisp value returned by Fget.
12405
12406 2001-12-29 Richard M. Stallman <rms@gnu.org>
12407
12408 * lisp.h (max_specpdl_size): Add declaration.
12409
12410 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
12411
12412 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
12413 Handle modifier bits. Correct typo in error message.
12414
12415 2001-12-28 Richard M. Stallman <rms@gnu.org>
12416
12417 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
12418 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
12419 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
12420 Update calls to Fdefine_abbrev.
12421 (write_abbrev): Update for changed data format.
12422 Don't list "system" abbrevs.
12423 (Fexpand_abbrev): Update use count with new data format.
12424 (describe_abbrev): Update for changed data format.
12425 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
12426
12427 * config.in (HAVE_MBSINIT): Add #undef.
12428
12429 * strftime.c (mbsinit): Define as no-op if not available.
12430
12431 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
12432 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
12433
12434 * keymap.c (Flookup_key): Error message if key has wrong data type.
12435 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
12436 (exclude_key): New variable.
12437
12438 2001-12-28 Gerd Moellmann <gerd@gnu.org>
12439
12440 * xterm.c (x_setup_relief_colors): Don't compute an image's
12441 background color if it doesn't have a Pixmap.
12442
12443 * xterm.c (notice_overwritten_cursor): Don't depend on
12444 output_cursor and updated_area. Compare pixel coordinates with
12445 window's cursor pixel coordinates.
12446 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
12447 Call notice_overwritten_cursor with new arg list.
12448 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
12449 unconditionally.
12450
12451 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
12452 height of the cursor line to the amount to scroll.
12453
12454 2001-12-27 Richard M. Stallman <rms@gnu.org>
12455
12456 * intervals.c (set_point_both): The position after an invisible,
12457 intangible character is not an acceptable stopping point.
12458
12459 2001-12-27 Ken Raeburn <raeburn@gnu.org>
12460
12461 * window.c (enlarge_window): In new preserve_before code, convert
12462 CURBEG from lisp object to integer before doing arithmetic.
12463
12464 2001-12-27 Richard M. Stallman <rms@gnu.org>
12465
12466 * bytecode.c (Fbyte_code): Undo previous change.
12467
12468 2001-12-26 Kim F. Storm <storm@cua.dk>
12469
12470 * keyboard.c (record_char): Ignore duplicate help-echo events only
12471 separated by mouse-movement. When tracking mouse, only record
12472 first and last mouse-movement event in same window.
12473 Don't record mouse-movement events in keyboard macros.
12474
12475 2001-12-25 Richard M. Stallman <rms@gnu.org>
12476
12477 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
12478 (Fenlarge_window): New arg PRESERVE_BEFORE.
12479
12480 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
12481 instead of Fstring_as_unibyte.
12482
12483 2001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12484
12485 The following changes remove mocklisp support:
12486
12487 * mocklisp.h, mocklisp.c: Files removed.
12488
12489 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
12490 `Qmocklisp' and `Qmocklisp_arguments'.
12491 Remove prototype of syms_of_mocklisp.
12492
12493 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
12494
12495 * callint.c: Do not include mocklisp.h.
12496 (Fcall_interactively): Do not test for mocklisp case.
12497
12498 * eval.c: Remove variables `Qmocklisp_arguments',
12499 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
12500 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
12501 Do not test for mocklisp case.
12502 (Fwhile): Remove unused variable `tem'.
12503 (syms_of_eval): Remove variable `moclisp-arguments'.
12504
12505 * data.c (wrong_type_argument): Remove mocklisp case.
12506
12507 * doc.c (Fdocumentation): Remove mocklisp case.
12508
12509 * emacs.c (main): Do not call syms_of_mocklisp.
12510
12511 2001-12-21 Richard M. Stallman <rms@gnu.org>
12512
12513 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
12514 to the left or to the right of the pointer, put it against
12515 the left screen edge.
12516
12517 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
12518
12519 * Makefile.in (distclean): Remove .gdbinit if we are building
12520 outside the source tree.
12521
12522 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
12523
12524 * w32.c (emacs_root_dir): New function.
12525
12526 * msdos.c (emacs_root_dir): New function.
12527
12528 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
12529 of the current drive as the fallback for default_directory.
12530
12531 * dired.c (file_name_completion): Run the elements of
12532 completion-ignored-extensions through ENCODE_FILE.
12533
12534 * lisp.h (scmp): Remove prototype, since it's now a static
12535 function private to dired.c.
12536
12537 2001-12-18 Richard M. Stallman <rms@gnu.org>
12538
12539 * dired.c (scmp): Function moved from minibuf.c.
12540 Delete multibyte handling--used only on encoded strings.
12541
12542 * minibuf.c (scmp): Function moved to dired.c.
12543
12544 * fns.c (merge): Add QUIT call.
12545
12546 2001-12-18 Dave Love <fx@gnu.org>
12547
12548 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
12549 language/georgian.el.
12550
12551 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
12552
12553 * Makefile.in (lisp, shortlisp): Synchronize with changes to
12554 lisp/Makefile.in:DONTCOMPILE.
12555
12556 2001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12557
12558 * xdisp.c (window_box_height): Do not return negative values.
12559 From Gerd Moellmann <gerd@gnu.org>.
12560
12561 * keyboard.c (head_table): Add missing braces around initializer.
12562
12563 * term.c (keys): Likewise.
12564
12565 * xfns.c (x_frame_parms, visual_classes): Likewise.
12566
12567 2001-12-17 Sam Steingold <sds@gnu.org>
12568
12569 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
12570 patch (COMPOSING_P, not COMPOSING).
12571
12572 2001-12-17 Richard M. Stallman <rms@gnu.org>
12573
12574 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
12575
12576 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
12577 before calling decode_coding.
12578
12579 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
12580
12581 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
12582 instead of only for COMPOSITION_DISABLED.
12583
12584 2001-12-16 Richard M. Stallman <rms@gnu.org>
12585
12586 * alloc.c (pure_alloc): After overflow, allocate just a small block.
12587
12588 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
12589
12590 * buffer.h (struct buffer): New field `display_error_modiff'.
12591 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
12592
12593 * window.c (Frecenter): Clear display_error_modiff field.
12594
12595 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
12596 Call redisplay_window, but not if display_error_modiff field says no.
12597 (redisplay_window_error): New function.
12598 (displayed_buffer): New variable.
12599 (redisplay_internal, redisplay_windows): Call the new functions
12600 instead of redisplay_window directly.
12601
12602 2001-12-15 Richard M. Stallman <rms@gnu.org>
12603
12604 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
12605
12606 2001-12-14 Andrew Innes <andrewi@gnu.org>
12607
12608 * makefile.w32-in (EMACSLOADPATH): Define.
12609 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
12610 (bootstrap-temacs): Remove dependency on bootstrap-clean.
12611
12612 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
12613
12614 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
12615 parameter have a numeric value all the time.
12616
12617 * w32fns.c (x_report_frame_params): Likewise.
12618
12619 2001-12-12 Richard M. Stallman <rms@gnu.org>
12620
12621 * fileio.c (Fwrite_region): Doc fix.
12622
12623 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
12624 (redisplay_internal): Call clear_image_cache only for window terminals.
12625
12626 2001-12-12 Gerd Moellmann <gerd@gnu.org>
12627
12628 * xdisp.c (move_it_vertically_backward): Change heuristic
12629 for the case that we didn't move far enough initially.
12630
12631 * window.c (Frecenter): Simplify computation in the case of window
12632 system frames and ARG < 0; use window_box_height.
12633
12634 2001-12-11 Richard M. Stallman <rms@gnu.org>
12635
12636 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
12637 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
12638
12639 2001-12-11 Andrew Innes <andrewi@gnu.org>
12640
12641 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
12642 arg is negative.
12643
12644 2001-12-11 Richard M. Stallman <rms@gnu.org>
12645
12646 * m/hp800.h: Split the __hpux conditional into the parts
12647 that are right for GNU/Linux too and the parts that are not.
12648 Use the former if GNU_LINUX.
12649 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
12650
12651 * s/gnu-linux.h (GNU_LINUX): Defined.
12652
12653 2001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12654
12655 * macros.c, msdos.c, w16select.c: Change doc-string comments to
12656 `new style' [w/`doc:' keyword].
12657
12658 2001-12-10 Jason Rumney <jasonr@gnu.org>
12659
12660 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
12661 before using.
12662
12663 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12664
12665 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
12666 keyword].
12667
12668 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
12669
12670 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
12671
12672 * s/hpux10.h (srand48): Don't undefine.
12673
12674 2001-12-09 Jason Rumney <jasonr@gnu.org>
12675
12676 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
12677 Add comment to explain where the struct came from.
12678 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
12679 (add_menu_item): Process pop-up menus first to avoid memory leak.
12680 (add_menu_item, w32_menu_display_help): Use `help' field as
12681 Lisp_Object.
12682 (w32_free_submenu_strings): Only free owner-drawn strings.
12683
12684 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12685
12686 * COPYING: Moved back.
12687
12688 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
12689 Add parentheses around && within ||.
12690
12691 * indent.c (compute_motion): Likewise.
12692
12693 * intervals.c (merge_properties_sticky): Likewise.
12694
12695 * coding.c (setup_coding_system, shrink_encoding_region)
12696 (Fdecode_sjis_char): Likewise.
12697
12698 2001-12-07 Andreas Schwab <schwab@suse.de>
12699
12700 * xdisp.c (display_mode_element): Don't read past end of string if
12701 it ends with '%'.
12702
12703 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
12704 can hold.
12705
12706 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
12707 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
12708 type changed to Lisp_Object.
12709 (syms_of_data): DEFVAR_LISP them.
12710
12711 2001-12-07 Richard M. Stallman <rms@gnu.org>
12712
12713 * callproc.c (init_callproc): Set Vdata_directory based on the source
12714 location whenever Emacs was run uninstalled.
12715
12716 2001-12-06 Paul Eggert <eggert@twinsun.com>
12717
12718 * config.in (HAVE_WORKING_VFORK): New #undefs.
12719 * process.c (create_process):
12720 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
12721 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
12722 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
12723 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
12724 * m/intel386.h (HAVE_VFORK): Likewise.
12725 * m/mips-siemens.h (HAVE_VFORK): Likewise.
12726 * m/mips.h (HAVE_VFORK): Likewise.
12727 * s/freebsd.h (vfork): Remove #define.
12728 * s/lynxos.h (HAVE_VFORK): Remove #undef.
12729 * s/usg5-4-2.h: Fix comment about vfork.
12730
12731 2001-12-06 Richard M. Stallman <rms@gnu.org>
12732
12733 * s/hpux10.h (random): Add undef.
12734 (HAVE_RANDOM): Define it just once.
12735
12736 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
12737
12738 * eval.c: Undo last change: the standard syntax is not wanted.
12739
12740 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
12741
12742 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
12743 scroll bars of the frame before deleting the frame itself. If the
12744 frame has a widget, delete the frame with XtDestroyWidget, and do
12745 not call XDestroyWindow before that.
12746
12747 2001-12-06 Kim F. Storm <storm@cua.dk>
12748
12749 * xfns.c (x_report_frame_params): Return actual fringe widths.
12750
12751 * w32fns.c (x_report_frame_params): Return actual fringe widths.
12752
12753 2001-12-05 Andrew Innes <andrewi@gnu.org>
12754
12755 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
12756 excessively large.
12757
12758 * insdel.c (make_gap_larger): New function.
12759 (make_gap_smaller): New function.
12760 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
12761 Call make_gap_smaller if arg is negative.
12762
12763 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
12764
12765 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
12766 Pass a dummy argument when calling interrupt_signal.
12767 (parse_menu_item): Mark disabled items before checking for empty def.
12768 (read_char_minibuf_menu_prompt): Make safety more visible.
12769 (read_key_sequence): Add a `first_unbound' variable.
12770 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
12771 unbound prefix as soon as we can detect it.
12772
12773 * doc.c (Fsnarf_documentation): Add prototype.
12774 (get_doc_string): Handle negative arguments.
12775 (Fdocumentation): Use AREF and ASIZE.
12776 Move the calls to get_doc_string to a single place.
12777 Don't confuse an interactive-spec for a docstring reference.
12778 (Fdocumentation_property): Take advantage of the fact that
12779 get_doc_string now ignores the sign of the docstring position.
12780
12781 * eval.c: Use standard syntax for usage in docstrings.
12782
12783 2001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12784
12785 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
12786
12787 2001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12788
12789 * xterm.c (x_draw_image_relief): Use predefined macro instead of
12790 constant when the value of `tool_bar_button_relief' is negative.
12791
12792 2001-12-02 Richard M. Stallman <rms@gnu.org>
12793
12794 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
12795 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
12796
12797 * fileio.c (read_non_regular): Delete Fsignal call.
12798
12799 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
12800
12801 * lisp.h (run_hook_list_with_args): Undo last change.
12802
12803 2001-12-01 Gerd Moellmann <gerd@gnu.org>
12804
12805 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
12806
12807 2001-12-01 Jason Rumney <jasonr@gnu.org>
12808
12809 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
12810
12811 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
12812 [!WM_MOUSELEAVE]: Define.
12813
12814 * w32menu.c (current_popup_menu, get_menu_item_info):
12815 (set_menu_item_info): New vars.
12816 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
12817 (w32_menu_show): Set current_popup_menu.
12818 (add_menu_item): Allocate new strings for owner-drawn menu items
12819 and help strings.
12820 Use owner-draw for disabled menu items again.
12821 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
12822 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
12823
12824 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
12825 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
12826 <WM_EXITMENULOOP>: Free menu strings.
12827 <WM_MOUSELEAVE>: Stop tracking mouse.
12828 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
12829
12830 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
12831 and mouse face.
12832
12833 2001-12-01 Kim F. Storm <storm@cua.dk>
12834
12835 The following changes add left-fringe and right-fringe
12836 frame parameters to adjust fringe widths, or remove one or
12837 both fringes.
12838
12839 * frame.h (struct frame): Remove trunc_area_pixel_width and
12840 trunc_area_cols fields.
12841 (Qleft_fringe, Qright_fringe): Declare.
12842 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
12843
12844 * frame.c (Qleft_fringe, Qright_fringe): New vars.
12845 (syms_of_frame): Initialize them.
12846
12847 * window.c (coordinates_in_window): Handle separate left and right
12848 fringe widths.
12849
12850 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
12851 and fringe_cols fields.
12852 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
12853 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
12854 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
12855 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
12856 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
12857 (x_compute_fringe_widths): Add prototype.
12858
12859 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
12860 fill fringe evenly with small dashes.
12861 (x_draw_fringe_bitmap): Clear background if necessary. Align and
12862 clip the new ZV bitmap to avoid jitter between rows.
12863 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
12864 background. Don't draw fringe bitmaps if fringe width is zero.
12865 (x_compute_fringe_widths): New function.
12866 (x_new_font, x_set_window_size_1): Use it.
12867
12868 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
12869 (x_set_frame_parameters): Process `font' parameter before other
12870 parameters as fringe widths depend on it.
12871 (x_set_fringe_width): New function.
12872 (x_figure_window_size): Use x_compute_fringe_widths.
12873 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
12874 parameters.
12875
12876 * widget.c (set_frame_size): Use x_compute_fringe_widths.
12877 (EmacsFrameSetCharSize): Ditto.
12878
12879 * w32term.h: Merged changes from xterm.h.
12880 * w32term.c: Merged changes from xterm.c.
12881 * w32fns.c: Merged changes from xfns.c.
12882
12883 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12884
12885 * COPYING: Removed.
12886
12887 2001-11-29 Dave Love <fx@gnu.org>
12888
12889 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
12890 extra extra slot.
12891 (detect_coding_mask): Fix call of detect_coding_iso2022.
12892
12893 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12894
12895 * fileio.c (file-name-coding-system)
12896 (default-file-name-coding-system): Doc fix (links to referenced
12897 variables added).
12898
12899 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
12900
12901 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
12902 Add dummy uses of gcproN variables.
12903
12904 * category.c (describe_category, describe_category_1)
12905 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
12906 (syms_of_category): Don't defsubr Sdescribe_categories.
12907
12908 2001-11-28 Richard M. Stallman <rms@gnu.org>
12909
12910 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
12911
12912 * Makefile.in (lispdir): New variable, referring to build dir.
12913 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
12914
12915 2001-11-28 Andrew Innes <andrewi@gnu.org>
12916
12917 * w32menu.c (w32_menu_display_help): Actually add the new argument
12918 OWNER.
12919
12920 2001-11-28 Jason Rumney <jasonr@gnu.org>
12921
12922 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
12923 menu items. From David Ponce <dponce@wanadoo.fr>.
12924 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
12925 conditionally.
12926 (w32_menu_display_help): New argument OWNER. Rewritten to store a
12927 help event in the owner frame's keyboard buffer.
12928
12929 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
12930 (Fx_show_tip): Don't subtract last width from row width.
12931
12932 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
12933 (w32_read_socket): Use EQ to compare frames.
12934
12935 2001-11-28 Gerd Moellmann <gerd@gnu.org>
12936
12937 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
12938 OVERLAPS_P.
12939
12940 2001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12941
12942 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
12943 `gcpro3' and `gcpro4'.
12944
12945 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
12946
12947 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
12948
12949 * ccl.c: Use AREF and ASIZE.
12950
12951 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
12952
12953 * lisp.h (run_hook_list_with_args): Remove.
12954 (LIST_END_P): Fix call to wrong_type_argument.
12955 (make_fixnum_or_float): Use EMACS_INT rather than int.
12956
12957 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
12958
12959 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
12960 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
12961
12962 * eval.c: Use AREF and ASIZE.
12963 (Ffetch_bytecode): Add the file name to the error message.
12964
12965 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
12966 which match the end of the file-name.
12967 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
12968 is not a valid env var, but leave it as is instead.
12969
12970 * keymap.c (access_keymap): Handle t bindings like nil bindings.
12971 Make nil bindings in char-tables transparent.
12972 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
12973
12974 2001-11-26 Richard M. Stallman <rms@gnu.org>
12975
12976 * textprop.c (set_text_properties_1): Allow START, END in either order.
12977 Do nothing if range is empty.
12978
12979 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
12980
12981 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
12982 (clean): Not here.
12983
12984 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
12985
12986 * textprop.c (set_text_properties_1): Clearly mark that the
12987 interval should not be empty.
12988
12989 * intervals.c (graft_intervals_into_buffer):
12990 Don't call set_text_properties_1 on an empty interval.
12991
12992 2001-11-25 Richard M. Stallman <rms@gnu.org>
12993
12994 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
12995
12996 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
12997 don't lose the data in it.
12998
12999 2001-11-25 Juanma Barranquero <lektu@terra.es>
13000
13001 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
13002
13003 * buffer.c (Fkill_buffer): Likewise.
13004
13005 * print.c (temp_output_buffer_setup): Likewise.
13006
13007 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
13008
13009 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
13010
13011 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
13012
13013 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
13014 Niemitalo <kon@iki.fi>.
13015
13016 2001-11-25 Jason Rumney <jasonr@gnu.org>
13017
13018 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
13019
13020 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
13021 (Fx_show_tip): Block input during frame creation.
13022 (Fx_show_tip, Fx_hide_tip): Enable.
13023
13024 2001-11-24 Richard M. Stallman <rms@gnu.org>
13025
13026 * lread.c (Fload): Detect recursive load error for more than 3
13027 nestings of the same file.
13028 (Vrecursive_load_depth_limit): Variable deleted.
13029 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
13030
13031 2001-11-24 Jason Rumney <jasonr@gnu.org>
13032
13033 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
13034 mouse position if either left or top is not specified.
13035
13036 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
13037 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
13038 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
13039 (my_create_tip_window): Assign tip_window.
13040 (x_create_tip_frame): Use same defaults as X.
13041 (compute_tip_xy): Remove unused variable. Use full screen width.
13042 (Fx_show_tip): Do not double height. Call ShowWindow directly.
13043
13044 * w32term.c (x_after_update_window_line): Doc fix.
13045 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
13046 frames.
13047 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
13048
13049 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
13050 for all Windowed systems.
13051
13052 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
13053
13054 * msdos.c (IT_clear_screen): If the frame's faces are not yet
13055 realized, use the initial screen colors to clear the screen.
13056
13057 2001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13058
13059 * textprop.c (Fset_text_properties): Remove unused variables
13060 `unchanged', `prev_changed', `s' and `len'.
13061
13062 * search.c (Freplace_match): Remove unused variable `inslen'.
13063
13064 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
13065
13066 2001-11-22 Jason Rumney <jasonr@gnu.org>
13067
13068 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
13069 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
13070 (my_create_tip_window): New function.
13071 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
13072 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
13073
13074 2001-11-20 Jason Rumney <jasonr@gnu.org>
13075
13076 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
13077 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
13078
13079 * w32fns.c (Vw32_system_coding_system): Remove.
13080 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
13081
13082 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
13083
13084 * fileio.c (Fwrite_region): Move choose_write_coding_system to
13085 after build_annotations.
13086
13087 * syntax.c (describe_syntax): Add dummy arg.
13088 (describe_syntax_1): Update call to describe_vector.
13089
13090 * category.c (describe_category): Add dummy arg.
13091 (describe_category_1): Update call to describe_vector.
13092
13093 * keymap.c (Fdescribe_vector): Add `describer' parameter.
13094 (describe_command, describe_translation): Add dummy second param.
13095 (describe_map): Call elt_describer with two arguments.
13096 (describe_vector_princ): Add `fun' parameter.
13097 Call it instead of the hardcoded `princ'.
13098 (describe_vector): Add arg `args'.
13099 Pass it as a new second argument to elt_describer.
13100
13101 * keymap.h (describe_vector): Update prototype.
13102
13103 * frame.c: Don't include keymap.h any more.
13104 (keys_of_frame): Remove.
13105
13106 * lisp.h (keys_of_frame): Remove declaration.
13107
13108 * emacs.c (main): Don't call `keys_of_frame' any more.
13109
13110 2001-11-14 Andreas Schwab <schwab@suse.de>
13111
13112 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
13113 if defined, 0 otherwise.
13114 (MAP_FAILED): Define if not defined and use it to test mmap failure.
13115 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
13116
13117 2001-11-19 Richard M. Stallman <rms@gnu.org>
13118
13119 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
13120
13121 2001-11-18 Jason Rumney <jasonr@gnu.org>
13122
13123 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
13124 (x_draw_bar_cursor): If the background color of the glyph under
13125 the cursor equals the frame's cursor color, use the glyph's
13126 foreground color for drawing the bar cursor.
13127 (x_after_update_window_line): Clear internal border in different
13128 circumstances.
13129 (w32_set_vertical_scroll_bar): Check for width and height > 0.
13130 (w32_draw_relief_rect): Correct relief by 1 pixel.
13131 (x_set_glyph_string_background_width):
13132 Set extends_to_end_of_line_p if the row's fill_line_p is set and
13133 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
13134 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
13135 if cursor_in_non_selected_windows is false.
13136 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
13137 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
13138 Notice if cursor gets overwritten.
13139 (notice_overwritten_cursor): Renamed from
13140 note_overwritten_text_cursor. Rewritten to take glyph widths
13141 into account, and to take X positions as parameters.
13142 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
13143 around call to x_draw_glyphs.
13144 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
13145 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
13146 color to use for image glyph reliefs.
13147 (x_draw_image_relief): Accept zero tool_bar_button_relief.
13148 (glyph_rect): Remove unused variable `area'.
13149
13150 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
13151 some items.
13152 (x_set_internal_border_width): Set frame garbaged when window
13153 doesn't exist yet.
13154 (Fx_create_frame): Accept zero tool_bar_button_relief.
13155 (x_clear_image_1, four_corners_best, image_background)
13156 (image_background_transparent): New functions.
13157 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
13158 (gs_format): Add `:background' entry.
13159 (lookup_image): Set IMG's background color if specified.
13160 (pbm_load, xbm_load_image, png_load): Set IMG's background field
13161 when appropriate.
13162 (x_clear_image_1): Reset `background_valid' and
13163 `background_transparent_valid' fields.
13164 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
13165 calculating it here. Set IMG's background_transparent field.
13166 (enum xpm_keyword_index): Add XPM_BACKGROUND.
13167 (enum png_keyword_index): Add PNG_BACKGROUND.
13168 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
13169 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
13170 (enum gif_keyword_index): Add GIF_BACKGROUND.
13171 (enum gs_keyword_index): Add GS_BACKGROUND.
13172 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
13173 Pre-calculate image background color where necessary.
13174 (x_create_x_image_and_pixmap, xbm_load, gs_load):
13175 Use display info's n_cbits entry for screen depth.
13176 (Fx_show_tip): Remove unused variables `buffer', `top',
13177 `left', `max_width' and `max_height'.
13178
13179 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
13180
13181 2001-11-18 Gerd Moellmann <gerd@gnu.org>
13182
13183 * puresize.h (BASE_PURESIZE): Increase to 750000.
13184
13185 2001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13186
13187 * frame.c (Fframe_live_p): Doc fix.
13188
13189 2001-11-18 Richard M. Stallman <rms@gnu.org>
13190
13191 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
13192 (message_dolog_marker3): New static variables hold three markers.
13193 (syms_of_xdisp): Initialize and staticpro them.
13194 (message_dolog): Use message_dolog_marker1..3 instead of
13195 allocating markers each time. Unchain them when done.
13196
13197 2001-11-17 Richard M. Stallman <rms@gnu.org>
13198
13199 * doc.c (Fsnarf_documentation): Doc fix.
13200
13201 2001-11-17 Andreas Schwab <schwab@suse.de>
13202
13203 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
13204
13205 2001-11-17 Richard M. Stallman <rms@gnu.org>
13206
13207 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
13208
13209 2001-11-17 Jason Rumney <jasonr@gnu.org>
13210
13211 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
13212
13213 2001-11-17 Gerd Moellmann <gerd@gnu.org>
13214
13215 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
13216 with invalid position.
13217
13218 2001-11-16 Richard M. Stallman <rms@gnu.org>
13219
13220 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
13221
13222 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
13223 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
13224 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
13225
13226 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
13227
13228 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
13229
13230 * fileio.c (build_annotations): Split off the tail.
13231 (build_annotations_2): New fun. Extracted from build_annotations.
13232 (Fwrite_region): Split the call to build_annotations into two
13233 calls to build_annotations and build_annotations_2.
13234
13235 2001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13236
13237 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
13238 clear_waiting_for_input with argument.
13239
13240 * xterm.h (x_update_cursor): Remove duplicated prototype.
13241
13242 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
13243
13244 * xterm.c (waiting_for_input): Remove unnecessary declaration.
13245
13246 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
13247
13248 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
13249
13250 * fileio.c (choose_write_coding_system): New fun, extracted
13251 from Fwrite_region.
13252 (Fwrite_region): Use it.
13253
13254 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
13255 (funcall_lambda, run_hook_with_args): Make static and add prototype.
13256 (ml_apply, find_handler_clause): Add prototype.
13257
13258 2001-11-16 Eli Zaretskii <eliz@gnu.org>
13259
13260 * config.in: Add #undef HAVE_COFF_H.
13261
13262 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
13263 Required for ISC 4.1.
13264
13265 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
13266
13267 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
13268 Andrew Wiseman <a.wiseman@btclick.com>.
13269
13270 2001-11-16 Kim F. Storm <storm@cua.dk>
13271
13272 The following changes are made to clean up the various internal
13273 references to the fringes to actually use the term `fringe' for
13274 them. Previously, they were called `flags areas', `bitmap areas',
13275 `left/right side of windows', or implicitly as `flags' or
13276 `bitmaps':
13277
13278 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
13279 Comments fixed. Use renamed symbols.
13280
13281 * dispnew.c: Comment fix. Use renamed symbols.
13282
13283 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
13284 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
13285 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
13286
13287 * msdos.c: Comment fix.
13288
13289 * w32fns.c: Use renamed symbols.
13290
13291 * w32term.c: Comment fixes. Use renamed symbols.
13292 (fringe_bitmap_type): Renamed from bitmap_type.
13293 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
13294 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
13295 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
13296
13297 * w32term.h: Comment fixes. Use renamed symbols.
13298 (fringes_extra): Renamed from flags_areas_extra.
13299 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
13300 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
13301 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
13302 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
13303 (FRAME_X_LEFT_FRINGE_WIDTH):
13304 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
13305 (FRAME_X_RIGHT_FRINGE_WIDTH):
13306 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
13307
13308 * widget.c: Use renamed symbols.
13309
13310 * window.c: Comment fixes. Use renamed symbols.
13311 (coordinates-in-window-p): Doc fix.
13312
13313 * xdisp.c: Comment fixes. Use renamed symbols.
13314
13315 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
13316
13317 * xfns.c: Use renamed symbols.
13318
13319 * xterm.c: Comment fixes. Use renamed symbols.
13320 (fringe_bitmap_type): Renamed from bitmap_type.
13321 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
13322 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
13323 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
13324
13325 * xterm.h: Comment fixes. Use renamed symbols.
13326 (fringes_extra): Renamed from flags_areas_extra.
13327 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
13328 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
13329 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
13330 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
13331 (FRAME_X_LEFT_FRINGE_WIDTH):
13332 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
13333 (FRAME_X_RIGHT_FRINGE_WIDTH):
13334 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
13335
13336 2001-11-15 Jason Rumney <jasonr@gnu.org>
13337
13338 * w32menu.c (add-menu-item): Make help_echo and radio buttons
13339 work for most menu items. From David Ponce
13340 <david.ponce@wanadoo.fr>.
13341
13342 2001-11-15 Gerd Moellmann <gerd@gnu.org>
13343
13344 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
13345 Some x_set_* function expect to be called even if old and new
13346 value are equal.
13347
13348 * xdisp.c (build_desired_tool_bar_string): Accept zero
13349 tool_bar_button_relief.
13350
13351 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
13352
13353 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
13354
13355 * xterm.c (x_draw_bar_cursor): If the background color of the
13356 glyph under the cursor equals the frame's cursor color, use
13357 the glyph's foreground color for drawing the bar cursor.
13358
13359 * dispnew.c (direct_output_forward_char): Fix character/byte
13360 position comparison.
13361
13362 2001-11-15 Miles Bader <miles@gnu.org>
13363
13364 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
13365 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
13366 Update arguments to find_field.
13367 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
13368 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
13369 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
13370 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
13371
13372 2001-11-14 Richard M. Stallman <rms@gnu.org>
13373
13374 * editfns.c (Fpropertize): Allow call with 1 arg.
13375
13376 * dispextern.h (image_background, image_background_transparent):
13377 Conditionalize on HAVE_X_WINDOWS.
13378
13379 2001-11-13 Richard M. Stallman <rms@gnu.org>
13380
13381 * print.c (Fprin1_to_string): Doc fix.
13382
13383 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
13384
13385 * floatfns.c (Fceiling, Ffloor): Doc fixes.
13386
13387 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
13388
13389 * fileio.c (Ffile_accessible_directory_p): Doc fix.
13390
13391 * eval.c (syms_of_eval): Doc fix.
13392
13393 * coding.c (syms_of_coding): Doc fix.
13394
13395 * doc.c (Fsnarf_documentation): Doc fix.
13396
13397 * dispnew.c (syms_of_display): Doc fix.
13398
13399 * category.c (Fget_unused_category): Doc fix.
13400
13401 * buffer.c (syms_of_buffer): Doc fixes.
13402
13403 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
13404
13405 * print.c (prin1, print): Doc fix.
13406
13407 2001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13408
13409 * fontset.h: Remove declarations of variables
13410 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
13411
13412 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
13413 `Vclip_large_size_font'.
13414
13415 2001-11-13 Jason Rumney <jasonr@gnu.org>
13416
13417 * w32fns.c: Doc fix.
13418
13419 2001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13420
13421 * xfaces.c (Fface_attributes_as_vector): Doc fix.
13422
13423 * fns.c: Doc fix.
13424
13425 * emacs.c: Doc fix.
13426
13427 * coding.c: Doc fix.
13428
13429 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
13430 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
13431 `new style' [w/`doc:' keyword].
13432
13433 2001-11-12 Richard M. Stallman <rms@gnu.org>
13434
13435 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
13436 LeaveNotify events. Only FocusIn and FocusOut do that now.
13437 (x_display_and_set_cursor): Do display hollow cursors in active
13438 minibuffer windows when they are not selected.
13439
13440 2001-11-12 Jason Rumney <jasonr@gnu.org>
13441
13442 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
13443 * w32term.c: Change doc-string comments to `new style'
13444 [w/`doc:' keyword]. Doc fixes.
13445
13446 * w32fns.c: Don't define max.
13447 (Fx_open_connection): Only execute once.
13448
13449 2001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13450
13451 * ccl.c: Change macros to use do-while block instead of if-else.
13452 Use braces to follow GNU Coding Standards.
13453
13454 2001-11-11 Richard M. Stallman <rms@gnu.org>
13455
13456 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
13457
13458 * lread.c (read_escape): Use end_of_file_error for reporting eof.
13459
13460 * insdel.c (replace_range): Use adjust_markers_for_replace
13461 instead of adjust_markers_for_delete and adjust_markers_for_insert.
13462
13463 * intervals.h: Declare set_text_properties and set_text_properties_1.
13464
13465 * textprop.c (set_text_properties_1): New subroutine
13466 broken out of set_text_properties.
13467 (set_text_properties): Use set_text_properties_1.
13468
13469 * intervals.c (graft_intervals_into_buffer):
13470 Use set_text_properties_1 to clear out properties.
13471
13472 * search.c (Freplace_match): Use replace_range to insert
13473 and delete. Don't request property inheritance from
13474 surrounding text.
13475
13476 2001-11-10 Jason Rumney <jasonr@gnu.org>
13477
13478 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
13479 vertical fonts. Allow them if face name is explicitly specified.
13480 Do not give up if we find a font that cannot be converted to an xlfd.
13481
13482 2001-11-10 Gerd Moellmann <gerd@gnu.org>
13483
13484 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
13485 instead of malloc/free.
13486
13487 2001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13488
13489 * xfaces.c (merge_face_vectors): Use braces to follow GNU
13490 Coding Standards.
13491 (Finternal_set_lisp_face_attribute): Likewise.
13492
13493 * buffer.c (Fbury_buffer): Likewise.
13494
13495 * indent.c (current_column_1): Remove unused variable `prev_col'.
13496
13497 * coding.c (encode_coding): Use precomputed value of `src'.
13498 (encode_coding): Remove unused variable `src_end'.
13499 (code_convert_region): Remove unused variables `count'.
13500
13501 2001-11-07 Jason Rumney <jasonr@gnu.org>
13502
13503 * w32term.c (x_display_and_set_cursor): Do not move system caret
13504 if cursor_glyph is NULL.
13505
13506 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13507
13508 * keymap.c (access_keymap): Fix compilation error.
13509
13510 2001-11-07 Miles Bader <miles@gnu.org>
13511
13512 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
13513
13514 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13515
13516 * intervals.c (graft_intervals_into_buffer):
13517 Remove #ifdef'd-out code.
13518 (graft_intervals_into_buffer): Remove unused variable `middle'.
13519
13520 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
13521 code (eval-current-buffer).
13522 Change doc-string comments to `new style' [w/`doc:' keyword].
13523
13524 2001-11-06 Richard M. Stallman <rms@gnu.org>
13525
13526 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
13527
13528 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
13529
13530 * lread.c (read1): Fix behavior with nested backquoting.
13531
13532 * keyboard.c (make_lispy_event): Check integerness and fix
13533 Lisp_Object/int mixup.
13534
13535 2001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13536
13537 * fns.c (copy_hash_table): Remove unused variable `v'.
13538
13539 * fontset.c (fontset_font_pattern): Remove unused variable
13540 `family_registry'.
13541
13542 * indent.c (current_column_1): Remove unused variable `prev_col'.
13543
13544 2001-11-05 Richard M. Stallman <rms@gnu.org>
13545
13546 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
13547
13548 * buffer.c (Fkill_buffer): Don't delete auto save file
13549 if buffer is modified.
13550
13551 2001-11-05 Andrew Innes <andrewi@gnu.org>
13552
13553 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
13554 CHECK_NUMBER_CDR.
13555
13556 2001-11-05 Richard M. Stallman <rms@gnu.org>
13557
13558 * unexelf.c (unexec): Minor changes; clean up comments.
13559
13560 2001-11-05 Sam Steingold <sds@gnu.org>
13561
13562 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
13563
13564 2001-11-05 Andreas Schwab <schwab@suse.de>
13565
13566 * sound.c (sound_perror): Save errno from being clobbered.
13567
13568 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
13569
13570 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
13571 the program image directly.
13572
13573 2001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13574
13575 * buffer.h (Fbuffer_local_value): Add prototype.
13576
13577 2001-11-04 Richard M. Stallman <rms@gnu.org>
13578
13579 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
13580 and CHECK_BUFFER.
13581
13582 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
13583 (record_char): Likewise.
13584
13585 * keyboard.c (make_lispy_event): Don't insist a drag event must
13586 move to a different buffer position. Instead, check for moving at
13587 least double_click_fuzz.
13588
13589 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
13590
13591 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
13592
13593 * indent.c (current_column_1, Fmove_to_column): Separate the code
13594 for display-table glyphs from the code for buffer text, to fix
13595 bugs in the former.
13596
13597 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
13598
13599 * buffer.c (Fbuffer_local_value): New function.
13600 (syms_of_buffer): Defsubr it.
13601
13602 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
13603 value of `cursor-in-non-selected-windows'.
13604
13605 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
13606 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
13607 (syms_of_xdisp): Initialize it.
13608
13609 2001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13610
13611 * xfns.c (Fx_create_frame): Doc fix.
13612
13613 * coding.c: Change doc-string comments to `new style' [w/`doc:'
13614 keyword].
13615
13616 * eval.c (top_level_value, top_level_set): Remove commented and
13617 #ifdef'd-out code.
13618 (Fdefvar): Fix usage in doc-string.
13619
13620 2001-11-03 Richard M. Stallman <rms@gnu.org>
13621
13622 * xfns.c: Include unistd.h, if it exists.
13623
13624 * editfns.c: Move the include of ctype.h after unistd.h.
13625
13626 * gmalloc.c: Test BROKEN_PROTOTYPES.
13627
13628 2001-11-03 Ken Raeburn <raeburn@gnu.org>
13629
13630 * lisp.h (CHECK_STRING_CAR): New macro.
13631 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
13632 treating XCAR and XCDR as lvalues.
13633 (openp): Use CHECK_STRING_CAR.
13634 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
13635
13636 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
13637
13638 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
13639 (SIGMASKTYPE): Define.
13640
13641 * syssignal.h (sigunblock): Don't define if already defined.
13642
13643 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13644
13645 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
13646 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
13647 Fix typos in comments.
13648
13649 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
13650 and #ifdef'd-out code.
13651 Fix and reindent comments.
13652
13653 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
13654
13655 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
13656 argument `i' in macros.
13657
13658 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
13659 `i' in macros.
13660
13661 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
13662 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
13663 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
13664 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
13665 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
13666 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
13667 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
13668 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
13669 in macros.
13670
13671 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
13672 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
13673 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
13674 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
13675 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
13676 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
13677 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
13678 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
13679 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
13680 (remove unused second argument).
13681
13682 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
13683
13684 * syntax.c (describe_syntax): New wrapper.
13685 (Finternal_describe_syntax_value): Rename from describe_syntax.
13686 Don't insert space at front and \n at the end.
13687 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
13688
13689 * regex.c (re_wctype): Try to fix some warnings.
13690 (regcomp, regexec): Don't forget the __restrict.
13691
13692 2001-11-02 Richard M. Stallman <rms@gnu.org>
13693
13694 * textprop.c (Fget_char_property): Doc fix.
13695
13696 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13697
13698 * process.c (Fstart_process): Add usage to doc-string.
13699
13700 * data.c (Fsetq_default): Ditto.
13701
13702 * callint.c (Finteractive): Ditto.
13703
13704 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
13705
13706 * macros.c: Don't include keymap.h any more.
13707
13708 2001-11-01 Richard M. Stallman <rms@gnu.org>
13709
13710 * data.c (Fmake_local_variable): Doc fix.
13711
13712 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
13713 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
13714
13715 * keymap.c (Fdescribe_buffer_bindings): Print character property
13716 bindings along with or instead of the buffer local map.
13717 Make the overriding maps override what they should.
13718
13719 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13720
13721 * window.c (grow_mini_window): Fix typo in comment.
13722
13723 2001-11-01 Gerd Moellmann <gerd@gnu.org>
13724
13725 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
13726 (XTset_vertical_scroll_bar): Likewise.
13727
13728 * xfns.c (x_build_heuristic_mask): Use four_corners_best
13729 instead of IMAGE_BACKGROUND.
13730
13731 * xfns.c (four_corners_best): Reindent.
13732
13733 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
13734 Handle :box so that it is possible to specify sexprs.
13735
13736 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
13737
13738 * s/hpux11.h: New file.
13739
13740 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13741
13742 * emacs.c (USAGE1): Show command line option --no-window-system
13743 instead of --no-windows in usage.
13744 (standard_args): Rename --no-windows to --no-window-system.
13745 (bug_reporting_address): Follow Emacs coding conventions.
13746
13747 * eval.c (Fcommandp): Doc fix.
13748 Change doc-string comments to `new style' [w/`doc:' keyword].
13749
13750 * frame.c (Fframe_live_p): Doc fix.
13751
13752 * buffer.c (selective-display-ellipses): Doc fix.
13753
13754 2001-10-31 Gerd Moellmann <gerd@gnu.org>
13755
13756 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
13757
13758 * xfaces.c (realize_x_face): If C is not a single-byte character,
13759 set the face's colors_copied_bitwise_p instead of the defaulted_p
13760 members which have a different meaning.
13761 (free_face_colors): Do nothing for a face whose colors have been
13762 copied bitwise.
13763
13764 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
13765
13766 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13767
13768 * marker.c, mocklisp.c: Change doc-string comments to `new style'
13769 [w/`doc:' keyword].
13770
13771 2001-10-31 Gerd Moellmann <gerd@gnu.org>
13772
13773 * fns.c (require_unwind): Return Lisp_Object.
13774
13775 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13776
13777 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
13778 (last-input-char): Revert doc-string to be the same as the
13779 doc-string of `last-input-event'.
13780
13781 * xdisp.c: Fix typos in comments.
13782
13783 2001-10-31 Gerd Moellmann <gerd@gnu.org>
13784
13785 * window.c (grow_mini_window): Handle case that the root
13786 window is already smaller than the nominal mininum height.
13787
13788 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
13789
13790 * emacs.c (main): Don't call keys_of_macros any more.
13791
13792 * lisp.h (keys_of_macros): Remove.
13793
13794 * macros.c (keys_of_macros): Remove.
13795
13796 * xfaces.c (Fface_attribute_relative_p): Declare args.
13797
13798 2001-10-30 Jason Rumney <jasonr@gnu.org>
13799
13800 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
13801 (enum_font_cb2): Ignore fonts with vertical orientation.
13802
13803 2001-10-30 Richard M. Stallman <rms@gnu.org>
13804
13805 * keyboard.c (Finput_pending_p): Doc fix.
13806
13807 2001-10-30 Gerd Moellmann <gerd@gnu.org>
13808
13809 * xterm.c (x_after_update_window_line): Don't run the code
13810 clearing in borders for rows whose visible height is 0.
13811
13812 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
13813 resized_p flag is set. If not set, use the much less flickering
13814 method previously used.
13815
13816 * dispnew.c (change_frame_size_1): Set frame's resized_p.
13817
13818 * frame.h (struct frame) <resized_p>: New member.
13819
13820 * lread.c (to_multibyte): Ensure read_buffer is at least twice
13821 as large as the number of bytes to convert.
13822
13823 * lread.c (to_multibyte): New function.
13824 (read1): Use it.
13825
13826 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
13827
13828 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
13829
13830 2001-10-30 Gerd Moellmann <gerd@gnu.org>
13831
13832 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
13833 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
13834 if the row's fill_line_p is set and drawing the last glyph with
13835 DRAW_IMAGE_{RAISED,SUNKEN}.
13836
13837 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
13838
13839 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
13840
13841 * xmenu.c: Include coding.h and charset.h.
13842 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
13843 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
13844 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
13845 Explicitly set wv->help. Use `TRUE' rather than `True'.
13846 (menu_help_callback): Use empty_string.
13847
13848 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
13849 (Fx_popup_dialog): Explicitly init f.
13850 (w32_menu_display_help): Use empty_string.
13851
13852 2001-10-29 Richard M. Stallman <rms@gnu.org>
13853
13854 * fns.c (Frequire): Detect recursive try to require the same
13855 feature 3 or more levels deep, and get error.
13856 (require_unwind): New subroutine.
13857 (require_nesting_list): New variable.
13858 (syms_of_fns): Init and staticpro it.
13859
13860 * print.c (print_object): Clarify indication of insertion type.
13861
13862 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
13863
13864 * coding.c (syms_of_coding): Document that locale-coding-system is
13865 used for decoding input on X.
13866
13867 * window.c (Fscroll_left, Fscroll_right): Doc fix.
13868
13869 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13870
13871 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
13872 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
13873
13874 2001-10-29 Gerd Moellmann <gerd@gnu.org>
13875
13876 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
13877 use NO_CURSOR if cursor_in_non_selected_windows is false.
13878
13879 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
13880 the slant attribute if FRAME is t.
13881
13882 * xfns.c (x_set_internal_border_width): Set frame garbaged
13883 when X window doesn't exist yet.
13884
13885 * xterm.c (x_after_update_window_line): Clear internal border
13886 in different circumstances.
13887
13888 * xterm.c (XTread_socket) <KeyPress>: Don't use
13889 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
13890 <handa@etl.go.jp>.
13891
13892 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
13893
13894 * m/ibms390.h: New file. From Adam Thornton
13895 <athornton@sinenomine.net>.
13896
13897 2001-10-28 Gerd Moellmann <gerd@gnu.org>
13898
13899 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
13900
13901 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
13902 a loop counter.
13903
13904 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13905
13906 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
13907
13908 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
13909 keyword].
13910 Fix typos in comments.
13911
13912 * emacs.c (bug_reporting_address): New function.
13913 Use it when displaying usage message.
13914
13915 * minibuf.c (read_minibuf): Remove unused external declaration of
13916 variable `Qread_only'.
13917
13918 * keymap.c (access_keymap): Remove unused variable `charset'.
13919
13920 2001-10-28 Miles Bader <miles@gnu.org>
13921
13922 * xfaces.c (merge_face_heights): Handle TO being relative as well.
13923 Remove #ifdef'd-out code.
13924 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
13925 (syms_of_xfaces): Initialize them.
13926
13927 2001-10-27 Jason Rumney <jasonr@gnu.org>
13928
13929 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
13930 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
13931 position using the system caret.
13932
13933 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
13934 (w32_system_caret_height, w32_system_caret_x)
13935 (w32_system_caret_y): New variables for tracking system caret.
13936 (w32_initialize): Initialize them.
13937 (x_display_and_set_cursor): Make system caret follow the active cursor.
13938
13939 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
13940 New messages types.
13941
13942 * w32term.c (note_mouse_highlight): Clear old help_echo.
13943
13944 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13945
13946 * xterm.c: Fix typo in a comment.
13947
13948 * emacs.c: Fix typos in comments.
13949 Remove unnecessary spaces.
13950 Change doc-string comments to `new style' [w/`doc:' keyword].
13951 (USAGE2): Fix typos in usage string.
13952
13953 * xterm.c: Fix typo in a comment.
13954
13955 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
13956 emacs.c.
13957
13958 2001-10-27 Gerd Moellmann <gerd@gnu.org>
13959
13960 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
13961 instead of 1/2 line_height in the heuristic for skipping
13962 farther backward when target_y was not reached.
13963
13964 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
13965 Display errno only if non-zero.
13966 (sound_warning): New function.
13967 (vox_configure): Don't treat failing to set sample rate as error.
13968 (various places): Improve error messages.
13969
13970 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
13971
13972 * fileio.c (Faccess_file): Run the argument filename through
13973 Fexpand_file_name, before using it.
13974
13975 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
13976 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
13977
13978 2001-10-26 Gerd Moellmann <gerd@gnu.org>
13979
13980 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
13981
13982 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
13983 Fix clearing in the case of scroll bars on the right.
13984
13985 2001-10-26 Juanma Barranquero <lektu@terra.es>
13986
13987 * w32gui.h (XImage): Add a dummy typedef.
13988
13989 2001-10-26 Gerd Moellmann <gerd@gnu.org>
13990
13991 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
13992
13993 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
13994
13995 * frame.c (Fframe_parameter): Fix last change.
13996
13997 * fileio.c: Revert last change (which removed old commented-out
13998 version of expand-file-name). Add a comment that explains why
13999 this old version should not be removed.
14000
14001 2001-10-25 Gerd Moellmann <gerd@gnu.org>
14002
14003 * frame.c (Fframe_parameter): Fix a bug whereby some
14004 ``artificial'' frame parameters, like `minibuffer' were not
14005 obtained by calling Fframe_parameters.
14006
14007 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
14008 cursor differently.
14009
14010 * xdisp.c (move_it_vertically_backward): Compute line height
14011 differently. Add heuristic to try to be more compatible to 20.x.
14012
14013 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
14014
14015 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
14016
14017 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
14018 boolean.
14019
14020 2001-10-25 Miles Bader <miles@gnu.org>
14021
14022 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
14023 BG is a pointer to a structure, not a structure.
14024 (gif_format, png_format): Add missing commas.
14025
14026 2001-10-24 Richard M. Stallman <rms@gnu.org>
14027
14028 * xfaces.c (Fface_attributes_as_vector): New function.
14029 (syms_of_xfaces): Defsubr it.
14030
14031 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14032
14033 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
14034 variable `area'.
14035
14036 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14037
14038 * search.c (scan_newline): Remove unused variable `selective_display'.
14039
14040 2001-10-25 Miles Bader <miles@gnu.org>
14041
14042 * dispextern.h (struct image): Add `background',
14043 `background_valid', and `background_transparent' fields.
14044 (image_background, image_background_transparent): New declarations.
14045 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
14046 * xfns.c (image_background, image_background_transparent)
14047 (four_corners_best): New functions.
14048 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
14049 (gs_format): Add `:background' entry.
14050 (lookup_image): Set IMG's background color if specified.
14051 (pbm_load, xbm_load_image, png_load): Set IMG's background field
14052 when appropriate.
14053 (x_clear_image_1): Reset `background_valid' and
14054 `background_transparent_valid' fields.
14055 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
14056 calculating it here. Set IMG's background_transparent field.
14057 (enum xpm_keyword_index): Add XPM_BACKGROUND.
14058 (enum png_keyword_index): Add PNG_BACKGROUND.
14059 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
14060 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
14061 (enum gif_keyword_index): Add GIF_BACKGROUND.
14062 (enum gs_keyword_index): Add GS_BACKGROUND.
14063 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
14064 Pre-calculate image background color where necessary.
14065 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
14066 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
14067 color to use for image glyph reliefs.
14068
14069 2001-10-24 Gerd Moellmann <gerd@gnu.org>
14070
14071 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
14072 in full-width rows.
14073
14074 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
14075 Fix clearing of area not covered by scroll bar.
14076
14077 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14078
14079 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
14080 and `real_start'.
14081 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
14082 (glyph_rect): Remove unused variable `area'.
14083
14084 2001-10-24 Gerd Moellmann <gerd@gnu.org>
14085
14086 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
14087
14088 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
14089 (row_containing_pos): Take additional argument DY.
14090 Treat rows ending in middle of char differently.
14091 (display_line): Handle tabs on window systems differently.
14092
14093 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
14094 with additional argument.
14095
14096 * dispextern.h (row_containing_pos): Adjust prototype.
14097
14098 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
14099 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
14100 (try_window_id, try_window_reusing_current_matrix)
14101 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
14102 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
14103
14104 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14105
14106 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
14107 gnuemacs).
14108 (HAVE_BOXES): Fix typo in comment.
14109 (push_menu_pane): Fix typo in comment.
14110
14111 * xdisp.c: (display_prop_string_p): Remove unused local declaration
14112 of `Qwhen'.
14113 (single_display_prop_string_p): Remove unused local declarations
14114 of `Qwhen' and `Qmargin'.
14115 (string_buffer_position): Remove unused variable `around'.
14116 (store_frame_title): Remove unused variable `width'.
14117
14118 * window.c: Don't define max.
14119 (coordinates_in_window): Remove unused variable `uy'.
14120
14121 * widget.c: Don't define max.
14122
14123 * process.c: Don't define max.
14124 (create_process): Remove unused variable `buffer'.
14125
14126 2001-10-23 Gerd Moellmann <gerd@gnu.org>
14127
14128 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
14129
14130 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
14131
14132 * xfaces.c (Finternal_set_lisp_face_attribute)
14133 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
14134 frame is on a windowed display.
14135
14136 2001-10-23 Gerd Moellmann <gerd@gnu.org>
14137
14138 * dispnew.c (sync_window_with_frame_matrix_rows):
14139 Fix handling of windows which aren't full-width, fix handling
14140 of marginal areas.
14141
14142 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
14143
14144 2001-10-23 Andreas Schwab <schwab@suse.de>
14145
14146 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
14147 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
14148
14149 2001-10-23 Gerd Moellmann <gerd@gnu.org>
14150
14151 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
14152 REAL_END. Notice if cursor gets overwritten.
14153 (notice_overwritten_cursor): Take X positions as parameters.
14154 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
14155 around call to x_draw_glyphs.
14156
14157 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14158
14159 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
14160 instead of C) and usage.
14161
14162 * editfns.c (char-to-string): Fix argument names (use CHAR instead
14163 of C) and usage.
14164
14165 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
14166 `left', `max_width' and `max_height'.
14167
14168 2001-10-23 Gerd Moellmann <gerd@gnu.org>
14169
14170 * xdisp.c (display_line): For a tab continued to the next line,
14171 set row's ends_in_middle_of_char_p.
14172
14173 2001-10-22 Gerd Moellmann <gerd@gnu.org>
14174
14175 * xdisp.c (display_line): Fix computation of continuation lines
14176 width for TABs.
14177
14178 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14179
14180 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
14181 `Qlaplace'.
14182
14183 * fileio.c: Remove unused code.
14184
14185 2001-10-22 Miles Bader <miles@gnu.org>
14186
14187 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
14188 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
14189 Remove `DOC_STRINGS_IN_COMMENTS' cases.
14190
14191 2001-10-21 Jason Rumney <jasonr@gnu.org>
14192
14193 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
14194
14195 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
14196
14197 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
14198 (Finsert_string): Avoid the multi-line string literals warning.
14199
14200 2001-10-22 Miles Bader <miles@gnu.org>
14201
14202 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
14203 (Fdocumentation): Don't use it.
14204 (syms_of_doc): Don't initialize it.
14205
14206 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
14207 * print.c (Fwith_output_to_temp_buffer): Likewise.
14208 * window.c (Fsave_window_excursion): Likewise.
14209 * editfns.c (Fsave_excursion, Fsave_current_buffer)
14210 (Fsave_restriction): Likewise.
14211 * eval.c (Frun_hooks, Frun_hook_with_args)
14212 (Frun_hook_with_args_until_failure)
14213 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
14214 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
14215 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
14216 (Funwind_protect, Fcondition_case): Likewise.
14217 * coding.c (Ffind_operation_coding_system): Likewise.
14218 * keyboard.c (Ftrack_mouse): Likewise.
14219
14220 2001-10-21 Miles Bader <miles@gnu.org>
14221
14222 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
14223 (Fmake_hash_table): Add usage: string to doc string.
14224 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
14225 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
14226 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
14227 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
14228 (Fml_prefix_argument_loop): Likewise.
14229
14230 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14231
14232 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
14233
14234 * sysdep.c (init_sys_modes): Change doc-string comments to `new
14235 style' [w/`doc:' keyword].
14236
14237 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
14238 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
14239 comments to `new style' [w/`doc:' keyword].
14240
14241 2001-10-21 Jason Rumney <jasonr@gnu.org>
14242
14243 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
14244
14245 * w32term.c (remember_mouse_glyph): New function.
14246 (w32_mouse_position): Use it.
14247 (note_mouse_movement): If the mouse moved off the glyph, remember
14248 its new position.
14249
14250 * w32term.h (struct w32_output): Correct spelling of x_compatible.
14251 (w32_display_info): Add mouse_face_overlay.
14252
14253 * w32term.c (notice_overwritten_cursor): Renamed from
14254 note_overwritten_text_cursor. Rewritten to take glyph widths into
14255 account.
14256 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
14257 (fast_find_string_pos): New function.
14258 (fast_find_position): Return the correct vpos. Add parameter
14259 STOP. In the final row, stop before glyphs having STOP as object.
14260 Don't consider glyphs that are not from a buffer.
14261 (fast_find_position) [0]: Add a presumably more correct version
14262 for after 21.1.
14263 (expose_window_tree, expose_frame): Don't compute intersections here.
14264 (expose_window): Do it here instead.
14265 (expose_window_tree, expose_window, expose_line): Return 1 when
14266 overwriting mouse-face.
14267 (expose_window): If W is the window currently being updated, mark
14268 the frame garbaged.
14269 (expose_frame): If mouse-face was overwritten, redo it.
14270 (x_use_underline_position_properties): New variable.
14271 (syms_of_xterm): DEFVAR_BOOL it.
14272 (x_draw_glyph_string): Add comment to use it in future.
14273 (x_draw_glyph_string): Restore clipping after drawing box.
14274 Fix a computation of the underline position.
14275 (w32_get_glyph_string_clip_rect): Minor cleanup.
14276 (x_fill_stretch_glyph_string): Remove an assertion.
14277 (x_produce_glyphs): Don't convert multibyte characters
14278 to unibyte characters in unibyte buffers.
14279 (cursor_in_mouse_face_p): New function.
14280 (x_draw_stretch_glyph_string): Use it to choose a different GC
14281 when drawing a cursor within highlighted text. Don't draw
14282 background again if it has already been drawn.
14283 (x_draw_glyph_string_box): Don't draw a full-width
14284 box just because the glyph row's full_width_p flag is set.
14285 (x_draw_glyphs): Fix computation of rightmost x for
14286 full-width rows.
14287 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
14288 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
14289 change bottom shadow accordingly. Some cleanup.
14290 (x_update_window_end): Handle overwritten mouse face
14291 also for tool bar windows.
14292 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
14293 DRAW is DRAW_IMAGE_RAISED.
14294 (clear_mouse_face): Return 1 if text with mouse face was
14295 actually redrawn. Make the function static.
14296 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
14297 optimize away highlighting if we pass over that same overlay again.
14298 (note_mouse_highlight): Call mouse_face_overlay_overlaps
14299 to detect a case where we have to highlight a different region
14300 despite not having left the currently highlighted region.
14301 Set mouse_face_overlay in the x_display_info. Avoid changing the
14302 mouse pointer shape when show_mouse_face has already done it, or
14303 there is no need. Handle mouse-face and help-echo in strings.
14304 (glyph_rect): New function.
14305 (w32_mouse_position): Use it to raise the threshold for mouse
14306 movement event generation.
14307 (w32_initialize_display_info): Initialize the x_display_info's
14308 mouse_face_overlay.
14309 (w32_set_vertical_scroll_bar): Don't clear a zero height
14310 or width area.
14311 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
14312 a widget to zero height.
14313
14314 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
14315 Protect unibyte strings created by replacing their multibyte
14316 equivalents in menu_items.
14317 (w32_menu_show): Don't overwrite an item's name with its key
14318 description in case the description is a multibyte string.
14319 (single_submenu): Some cleanup.
14320
14321 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
14322 (postprocess_image): New function.
14323 (lookup_image): Call it for all image types except PostScript.
14324 (x_kill_gs_process): Call postprocess_image.
14325 (tiff_error_handler, tiff_warning_handler): New functions.
14326 (tiff_load): Install them as handlers.
14327 (x_kill_gs_process): Recognize if someone has cleared the image
14328 cache under us.
14329 (valid_image_p): Protect better against invalid image
14330 specifications. Previous code could signal an error.
14331 (Fx_hide_tip, Fshow_tip): Doc fix.
14332 (Fv_max_tooltip_size): New variable.
14333 (syns_of_xfns): DEFVAR_LISP it.
14334 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
14335 window buffer to *tip* right after creating the frame. Set frame's
14336 window_width. Use a maximum tooltip size specified by
14337 Vx_max_tooltip_size, if that has valid contents.
14338 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
14339 Make sure the tooltip is completely visible.
14340 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
14341 (Fx_create_frame): Adjust the frame's height for presence
14342 of the tool bar before calling x_figure_window_size.
14343 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
14344 when the window gets smaller.
14345 (x_set_foreground_color): Set frame's cursor_pixel.
14346 (x_set_foreground_color, x_set_background_color): Cleaned up.
14347 (x_set_font): Handle case of x_new_fontset returning the same name
14348 as before, although there was a change in fontsets.
14349
14350 2001-10-21 Miles Bader <miles@gnu.org>
14351
14352 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
14353 (Flogxor): Add usage: string to doc string.
14354 * charset.c (Fstring): Likewise.
14355 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
14356 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
14357
14358 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14359
14360 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
14361
14362 * alloc.c: Reindent DEFUNs with doc: keywords.
14363
14364 * abbrev.c (Finsert_abbrev_table_description): Reindent.
14365
14366 * frame.c: Change doc-string comments to `new style' [w/`doc:'
14367 keyword].
14368
14369 See ChangeLog.9 for earlier changes.
14370
14371 ;; Local Variables:
14372 ;; coding: iso-2022-7bit
14373 ;; End:
14374
14375 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
14376 Copying and distribution of this file, with or without modification,
14377 are permitted provided the copyright notice and this notice are preserved.
14378
14379 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4