1 2000-10-04 Martin Buchholz <martin@xemacs.org>
3 * XEmacs 21.2.36 is released.
5 2000-08-31 Daiki Ueno <ueno@unixuser.org>
7 * lread.c (locate_file): Check the path element is non-nil.
9 2000-10-02 Martin Buchholz <martin@xemacs.org>
11 * lisp.h: Warning suppression for SCO compilers.
13 * redisplay-tty.c (reset_tty_modes): Fix crash.
14 E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
16 2000-09-27 Martin Buchholz <martin@xemacs.org>
18 Big signal/process handling overhaul. Bugs fixed:
19 M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
20 M-x comint-kill-subjob should work for both values nil and t of
21 process-connection-type. It was broken on most platforms.
22 Testing on Irix and Cygwin still needed. Other plaforms tested.
23 * sysdep.c: Move #include of stropts.h into sysproc.h. Use pid_t.
24 * process-unix.c: Signal/Process handling overhaul.
25 (pty_name): make 64 bytes, as `expect' does, for paranoia.
26 (allocate_pty): Use all available modern methods of allocating
27 ptys, falling back to old style BSD allocation as a last resort.
28 Use allegedly more secure Unix98 pty allocation by default.
29 (allocate_pty_the_old_fashioned_way): New. the last resort.
30 (unix_create_process): Push ptem, ldterm, ttcompat where
31 available. Autoconfiscate.
32 (try_to_initialize_subtty): New.
33 (unix_kill_child_process): Proper signal handling for ptys on most
34 platforms, using special knowledge of AIX, BSD, etc...
35 (unix_create_process): Always disconnect_controlling_terminal() for
36 subprocesses, whether using ptys or not.
37 * process.h: Remove old getpt-dependent PTY code.
38 * process.c (Fprocess_send_signal): New, obvious generic function.
45 (Fsignal_process): Use decode_signal.
46 (process_send_signal):
47 Many docstring corrections.
48 Allow any signal to be sent to a process object.
49 * config.h.in: Add symbols for big signal/process overhaul.
50 * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
51 * sysproc.h: Include process-related headers, where available:
52 sys/stropts.h sys/strtio.h pty.h libutil.h
60 Remove old S&M pty stuff.
61 * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
62 * systty.h: Simplify cpp hackery, improve comments.
63 Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
65 * editfns.c (Fformat_time_string):
66 Be a little more paranoid with the return value of ctime.
68 * fileio.c (check_executable):
70 Use symbolic constants X_OK, W_OK.
72 * console-x.c (split_up_display_spec): Fix a warning.
74 2000-10-02 Martin Buchholz <martin@xemacs.org>
76 * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
77 * ntproc.c (sys_spawnve): make_string ==> build_string
78 Small clarity improvements.
80 2000-09-30 Martin Buchholz <martin@xemacs.org>
82 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
84 * s/windowsnt.h (HAVE_STRCASECMP): Remove.
86 * config.h.in (HAVE_STRCASECMP): Remove.
88 2000-09-29 Martin Buchholz <martin@xemacs.org>
90 * redisplay-output.c (redisplay_output_pixmap):
91 Cleaner and possibly more 64-bit correct code.
93 2000-09-28 Stephen J. Turnbull <stephen@xemacs.org>
95 * dumper.c (pdump_load_finish): move restoration of
96 `noninteractive1' to emacs.c (main_1).
97 * emacs.c (main_1): protect LISP-visible command-line flags
100 2000-09-26 Stephen J. Turnbull <stephen@xemacs.org>
102 * Makefile.in.in (versionclean): Use EXE_TARGET and
103 DUMP_TARGET instead of literal program names.
105 2000-09-20 Martin Buchholz <martin@xemacs.org>
107 * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
109 2000-09-19 Martin Buchholz <martin@xemacs.org>
111 * *: Spelling mega-patch
113 2000-09-19 Martin Buchholz <martin@xemacs.org>
115 * fns.c (bad_bad_turtle):
116 Delete "Eek!" comment, since we fixed the bug to which it refers.
118 2000-09-16 Martin Buchholz <martin@xemacs.org>
120 * alloca.c: Replace REGISTER with register.
122 2000-09-16 Daiki Ueno <ueno@unixuser.org>
124 * file-coding.c (ucs_to_char): Use countof.
126 2000-09-16 Martin Buchholz <martin@xemacs.org>
128 * file-coding.c: (ucs_to_char):
129 (complex_vars_of_file_coding):
130 Use countof instead of sizeof.
131 Use CHECK_NATNUM instead of CHECK_INT.
133 * sysdep.c (strcasecmp): Remove.
134 * device-x.c (ascii_strcasecmp): New.
135 * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
136 Avoid using non-standard non-portable strcasecmp.
138 2000-09-16 Martin Buchholz <martin@xemacs.org>
140 * Makefile.in.in (mostlyclean): remove reference to prefix-args.
141 * font-lock.c: remove reference to emacsfns.h.
142 * search.c: small doc improvement.
143 * event-Xt.c: correct file names in comments.
144 * console-x.h Correct file names in comments.
145 * frame.c: Correct file names in comments.
146 * event-stream.c: remove Energize from comments.
148 2000-09-15 Martin Buchholz <martin@xemacs.org>
150 * symeval.h (DEFERROR_STANDARD):
154 (DEFSYMBOL_MULTIWORD_PREDICATE):
155 (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
157 The construct &##name is not sensible C.
158 Fixes compilation errors with Unixware native compiler.
160 2000-09-14 Martin Buchholz <martin@xemacs.org>
162 * frame.c (device_matches_console_spec): no longer takes a `frame' arg
163 (next_frame_internal): Removed. We now just have next_frame.
165 Write a simpler and cleaner one-pass algorithm.
166 Remove called_from_delete_device arg and #ifdefed-out code.
168 Renamed from prev_frame. Update callers.
169 Cleaned up to have an analogous implementation to next_frame.
170 (other_visible_frames_internal): Remove the
171 called_from_delete_device bogus arg, and hence, remove this
172 function. Just use other_visible_frames().
174 * window.c (Fnext_window):
176 Since next_frame() is guaranteed to return a frame, remove check
177 for nil inserted in previous patch.
180 Make code look more like Fnext_window.
182 Respect the `console' arg when iterating through windows.
183 Fixes bug: (get-buffer-window buffer t device) not respecting
185 This function needs more work, as others have pointed out.
187 * frame.h: Rename prev_frame to previous_frame.
188 device_matches_console_spec no longer takes a `frame' arg.
193 Use EMACS_BLOCK_SIGNAL instead of sigblock.
194 From "Golubev I. N." <gin@mo.msk.ru>.
196 * make-src-depend: Fix typo.
198 2000-09-13 Martin Buchholz <martin@xemacs.org>
200 * window.c (Fnext_window):
201 next_frame() might return nil, not a frame.
203 (gdb) run -eval '(progn (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
205 * frame.c (next_frame_internal):
206 We've passed a frame if we've passed its device.
208 (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
209 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
211 2000-09-11 Jonathan Harris <jhar@tardis.ed.ac.uk>
213 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
214 Allow option to suppress accelerators in menu/dialog items.
215 (populate_or_checksum_helper): Pass dialog title through above.
217 2000-09-10 Jonathan Harris <jhar@tardis.ed.ac.uk>
219 * event-msw.c (mswindows_key_to_emacs_keysym):
220 Add "pause" key, fix "menu" key.
222 2000-09-09 Martin Buchholz <martin@xemacs.org>
224 * eval.c (reinit_vars_of_eval):
225 Increase max_lisp_eval_depth to 1000,
226 required for thai-xtis.el to byte-compile under some circumstances.
228 2000-09-04 Martin Buchholz <martin@xemacs.org>
230 * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
233 2000-09-01 Martin Buchholz <martin@xemacs.org>
235 * make-src-depend: Make the generated Makefiles smaller.
237 * s/hpux.h (SETUP_SLAVE_PTY):
238 Provide a %d in the format string for the errno argument.
240 * editfns.c (Ftemp_directory):
242 Avoid buffer overrun on very long file name.
244 * input-method-xlib.c (XIM_init_device):
245 6th parameter of XRegisterIMInstantiateCallback has different
246 pointer types on different OSes, so simply cast to (void *).
248 * unexhp9k800.c: Warning fixes. Fiddly changes.
250 * sysdll.c (dll_open):
251 shl_load will hang hard if passed a NULL filename.
252 Simply return NULL for compatibility with dlopen.
253 * sysdll.c: Conform to XEmacs coding standards.
255 * sysdep.c (get_pty_max_bytes):
256 Support pty input lines longer than 512 bytes on HP-UX 10.20.
258 2000-08-31 Martin Buchholz <martin@xemacs.org>
260 * tooltalk.c: Add #include <syssignal.h>
262 2000-08-12 Alexandre Oliva <aoliva@redhat.com>
264 * s/hpux.h: Don't use undefined function sigunblock().
266 2000-08-31 Martin Buchholz <martin@xemacs.org>
268 * config.h.in: Add HAVE_BALLOON_HELP.
269 * emacs.c: Use HAVE_BALLOON_HELP.
270 * Makefile.in.in (x_objs):
271 Make Balloon Help conditional on finding shape.h.
273 2000-08-23 Yoshiki Hayashi <yoshiki@xemacs.org>
275 * syntax.c (regex_emacs_buffer_p): New variable.
276 * syntax.h (regex_emacs_buffer_p): extern.
277 * search.c (looking_at_1):
280 (search_buffer): Set regex_emacs_buffer_p.
281 * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
282 when before_dot, at_dot, after_dot.
284 2000-08-23 Andy Piper <andy@xemacs.org>
286 * gui-x.c (popup_selection_callback): Only set action_occurred
287 when we really have an image instance.
288 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
290 2000-08-23 Andy Piper <andy@xemacs.org>
292 * gui-msw.c (mswindows_handle_gui_wm_command): set
294 * gui-x.c (popup_selection_callback): ditto.
296 * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
297 (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
298 (struct Lisp_Image_Instance): add action_occurred flag.
300 * glyphs.c (redisplay_subwindow): use action_occurred flag.
301 (image_instance_changed): ditto.
302 (reset_frame_subwindow_instance_cache): only unmap windows - do
303 not remove them from the cache also.
305 * glyphs-widget.c (tab_control_update): better debug.
306 (progress_gauge_update): ditto.
307 (layout_update): ditto.
308 (layout_instantiate): ditto.
309 (tab_control_order_only_changed): cope with null pending items.
311 * glyphs-msw.c (mswindows_tab_control_redisplay): add better
312 debug. Force selection of an item when an action occurred. Cope
313 with null pending_items.
314 (mswindows_progress_gauge_redisplay): better debug.
315 * glyphs-x.c (x_tab_control_redisplay): ditto.
317 * redisplay.c (redisplay_frame): reset the frame cache if the
320 * window.c (Fset_window_configuration): potentially re-enable
322 (window_unmap_subwindows): need to finalize instances here since
323 it is only used in mark_window_as_deleted.
325 2000-08-22 Stephen J. Turnbull <stephen@xemacs.org>
327 * nas.c (SndOpenDataForReading):
328 nas.c (WaveOpenDataForReading):
329 nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
330 Somehow escaped from the 2000-08-14 patch.
332 2000-08-14 Stephen J. Turnbull <stephen@xemacs.org>
334 * nas.c: Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
335 of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
337 2000-08-21 Andy Piper <andy@xemacs.org>
339 * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
340 window if it is not already displayed.
342 * glyphs-msw.c (mswindows_map_subwindow): only map the window if
343 it is not already displayed.
345 * window.c (Fset_window_configuration): don't reset the frame
348 * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
349 instances from the frame cache if we are actually finalizing them.
350 (reset_frame_subwindow_instance_cache): reset frame cache only
351 after unmapping everything.
352 (map_subwindow): set displayed flag after mapping.
354 2000-08-21 Martin Buchholz <martin@xemacs.org>
356 * data.c (indirect_function):
357 Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
359 * eval.c (function_argcount):
360 Use original function when signaling errors.
362 2000-08-18 Andy Piper <andy@xemacs.org>
364 * frame.c (delete_frame_internal): use new
365 free_frame_subwindow_instances name.
367 * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
368 (add_tab_item): make return type correct.
369 (mswindows_tab_control_instantiate): assert index of tab.
370 (mswindows_tab_control_redisplay): Re-code to use
371 gui_item_equal_sans_selected and gui_item_list_find_selected.
373 * glyphs-widget.c (tab_control_update): Correct comment.
375 * window.c (window_unmap_subwindows): use new
376 unmap_subwindow_instance_cache_mapper.
377 (window_unmap_subwindows_cache_mapper): deleted.
378 (Fset_window_configuration): comparisons should now be with
379 EQ. Preserve the subwindow instance cache across configuration
381 (allocate_window): ditto.
382 (make_dummy_parent): ditto.
384 * glyphs.c (free_frame_subwindow_instances): rename from
385 free_frame_subwindow_instance_cache. finalize all instances rather
386 than just those in the display cache.
387 (finalize_all_subwindow_instances): walk windows unmapping and
388 finalizing subwindows.
389 (unmap_subwindow_instance_cache_mapper): moved from
390 window.c. Allow finalization as well as unmapping.
392 * gui.c (gui_item_list_find_selected): new function.
394 * gui.h (gui_item_list_find_selected): declare.
396 * glyphs-x.c (x_tab_control_redisplay): pick tab
397 explicitly. Re-code to use gui_item_equal_sans_selected and
398 gui_item_list_find_selected.
400 * glyphs-x.h: add lwlib-utils.h
402 * buffer.c (Frecord_buffer): undo previous change.
404 2000-08-09 Vin Shelton <acs@xemacs.org>
406 * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
407 possible. Create temporary files more securely. The patch was
408 generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
409 <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch. See
410 http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
413 2000-08-07 Ben Wing <ben@xemacs.org>
415 * getloadavg.c: remove duplicate (and windows-breaking)
416 includes of fcntl.h and sys/file.h.
418 * nt.c: remove duplicate getloadavg() definition.
420 * sysdll.h (Qdll_filename_encoding): add missing stand-in
423 2000-08-07 Gunnar Evermann <ge204@eng.cam.ac.uk>
425 * eval.c (function_argcount): If function needs to be autoloaded
426 actually use the loaded definition.
429 2000-08-05 Ben Wing <ben@xemacs.org>
431 * getloadavg.c: add prototype for getloadavg(). remove
432 duplicate WIN32_NATIVE/CYGWIN code (already in the middle
433 of the code). remove duplicate header includes.
435 * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
437 * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
438 don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
441 * alloc.c (reinit_alloc_once_early): removed references to
442 VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
443 the lisp vars are the only things referencing the malloc_sbrk_*
444 vars, and they were already if 0'd out. these vars only exist
445 in the older malloc.c, which is basically unused, and they're
446 only for informational purposes.
448 * m\*.h: removed useless VIRT_ADDR_VARIES.
450 * m\powerpc.h: removed stray NO_ARG_ARRAY.
452 2000-04-26 IKEYAMA Tomonori <tomonori@suiyokai.org>
454 * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
455 color if the image is a mono pixmap.
457 2000-07-30 Ben Wing <ben@xemacs.org>
459 * Makefile.in.in (release):
462 * buffer.c (directory_is_current_directory):
463 * dired-msw.c (mswindows_get_files):
465 * dired.c (Fdirectory_files):
466 * dired.c (file_name_completion_stat):
467 * dired.c (Ffile_attributes):
468 [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
469 preprocessor tricks, to avoid problems on some machines
472 * callproc.c (egetenv): GC docs.
475 * console-msw.h (struct mswindows_dialog_id):
476 * lrecord.h (lrecord_type):
477 New object for use with MSW dialogs.
479 * console.h (struct console_methods):
480 New enable/disable frame methods, for proper modal dialogs.
482 * device-msw.c (msprinter_default_printer): Fix to follow
483 proper Mule conventions.
486 * device-msw.c (signal_open_printer_error):
487 * device-msw.c (msprinter_init_device):
488 * device-msw.c (ensure_not_printing):
489 * device-msw.c (plist_get_margin):
490 * device-msw.c (Fmsprinter_select_settings):
491 * device-msw.c (finalize_devmode):
492 * device-msw.c (Fmsprinter_settings_despecialize):
493 * device-msw.c (signal_enum_priner_error):
494 * extents.c (decode_extent):
495 * extents.c (decode_map_extents_flags):
496 * extents.c (decode_extent_at_flag):
497 * extents.c (Fextent_at):
498 * extents.c (Fextents_at):
499 * extents.c (symbol_to_glyph_layout):
500 [[[[2]]]] Use structured errors.
503 * dialog-msw.c (mswindows_is_dialog_msg):
504 * dialog-msw.c (mark_mswindows_dialog_id):
505 * dialog-msw.c (dialog_proc):
506 * dialog-msw.c (handle_question_dialog_box):
507 * dialog-msw.c (syms_of_dialog_mswindows):
508 Define new object to clean up marking; use it as a dialog identifier.
509 Call new delete-dialog-box-hook.
511 * dialog-x.c (dbox_selection_callback):
512 * dialog-x.c (dbox_descriptor_to_widget_value):
513 * dialog-x.c (x_make_dialog_box_internal):
514 Call new delete-dialog-box-hook.
518 * dialog.c (syms_of_dialog):
519 * dialog.c (vars_of_dialog):
520 Define new delete-dialog-box-hook, for use w/modal dialog boxes.
523 * eval.c (signal_call_debugger):
524 when noninteractive, output stack traces on the console instead
525 of in a (never-seen) buffer.
527 * eval.c (signal_type_error):
528 * eval.c (invalid_argument_2):
530 new funs for use w/structured errors.
533 * event-Xt.c (x_to_emacs_keysym):
534 * event-Xt.c (describe_event):
535 * event-Xt.c (emacs_Xt_event_handler):
536 * event-Xt.c (vars_of_event_Xt):
538 * event-msw.c (mswindows_wnd_proc):
539 * event-msw.c (vars_of_event_mswindows):
540 rename {x,mswindows}-debug-events to debug-{}-events for
541 consistency with other debug-foo variables.
544 document next-event more clearly.
546 * fileio.c (Ffile_name_directory):
547 * fileio.c (Ffile_name_nondirectory):
548 * fileio.c (Funhandled_file_name_directory):
549 * fileio.c (file_name_as_directory):
550 * fileio.c (Ffile_name_as_directory):
551 * fileio.c (directory_file_name):
552 * fileio.c (Fdirectory_file_name):
553 * fileio.c (Fmake_temp_name):
554 * fileio.c (Ffile_truename):
555 * fileio.c (Fsubstitute_in_file_name):
556 * fileio.c (expand_and_dir_to_file):
557 * fileio.c (barf_or_query_if_file_exists):
558 * fileio.c (check_executable):
559 * fileio.c (Ffile_exists_p):
560 * fileio.c (Ffile_writable_p):
561 * fileio.c (Ffile_directory_p):
562 * fileio.c (Ffile_regular_p):
563 * fileio.c (Ffile_modes):
564 * fileio.c (Ffile_newer_than_file_p):
565 * fileio.c (Fverify_visited_file_modtime):
566 * fileio.c (Fset_visited_file_modtime):
567 * fileio.c (auto_save_1):
572 * frame-msw.c (mswindows_init_frame_1):
573 * frame-msw.c (mswindows_enable_frame):
574 * frame-msw.c (error_frame_unsizable):
575 * frame-msw.c (msprinter_init_frame_1):
576 * frame-msw.c (msprinter_init_frame_3):
577 * frame-msw.c (console_type_create_frame_mswindows):
579 implement new enable/disable frame methods.
582 * frame-x.c (x_enable_frame):
583 * frame-x.c (console_type_create_frame_x):
584 implement new enable/disable frame methods.
587 * frame.c (Fdisable_frame):
588 * frame.c (syms_of_frame):
589 * frame.h (struct frame):
590 implement new enable/disable frame methods/functions.
595 * glyphs-msw.c (mswindows_widget_instantiate):
596 comment that initial-focus should be implemented.
599 * glyphs-widget.c (check_valid_instantiator):
600 * glyphs-widget.c (check_valid_orientation):
601 * glyphs-widget.c (check_valid_tab_orientation):
602 * glyphs-widget.c (check_valid_justification):
603 * glyphs-widget.c (check_valid_border):
604 * glyphs-widget.c (check_valid_callback):
605 * glyphs-widget.c (check_valid_int_or_function):
606 * glyphs-widget.c (check_valid_string_or_vector):
607 * glyphs-widget.c (check_valid_item_list_1):
608 * glyphs-widget.c (widget_validate):
609 * glyphs-widget.c (combo_box_validate):
610 * glyphs-widget.c (widget_instantiate):
611 * glyphs-widget.c (syms_of_glyphs_widget):
612 * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
613 * glyphs-widget.c (image_instantiator_combo_box):
614 * glyphs-widget.c (image_instantiator_scrollbar):
615 * glyphs-widget.c (image_instantiator_tab_control):
616 * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
618 support (unimplemented) keyword initial-focus.
619 reindent long macros.
621 * glyphs-x.c (x_redisplay_widget):
622 * glyphs-x.c (x_button_instantiate):
623 * glyphs-x.c (x_button_redisplay):
624 * glyphs-x.c (x_progress_gauge_instantiate):
625 * glyphs-x.c (x_edit_field_instantiate):
626 * glyphs-x.c (x_combo_box_instantiate):
627 * glyphs-x.c (x_tab_control_instantiate):
628 * glyphs-x.c (x_label_instantiate):
630 * gui-x.c (button_item_to_widget_value):
631 * gui-x.c (gui_items_to_widget_values_1):
632 * gui-x.c (gui_item_children_to_widget_values):
633 * gui-x.c (gui_items_to_widget_values):
635 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
636 add new flag to gui-parsing routines to indicate whether
637 accelerator specs should be supported.
639 * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
641 * glyphs.h (struct Lisp_Image_Instance):
642 * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
643 add initial-focus flag.
646 * gui.c (syms_of_gui):
647 * gui.c (vars_of_gui):
648 clean up menu-no-selection-hook.
651 support delete-dialog-box-hook.
653 * lread.c (Fload_internal):
654 * lread.c (locate_file_in_directory_mapper):
658 * lrecord.h (struct toolbar_button):
659 * lrecord.h (syms_of_toolbar):
660 document how to create a new object.
662 * menubar-msw.c (mswindows_char_is_accelerator):
663 may be called on frames w/o menus.
665 * menubar.c (vars_of_menubar):
666 clean up :filter docs.
673 * process-nt.c (validate_signal_number):
674 * process-nt.c (signal_cannot_launch):
675 * process-nt.c (nt_create_process):
676 * process-nt.c (nt_send_process):
677 * process-nt.c (nt_kill_child_process):
678 * process-nt.c (nt_open_network_stream):
679 * process-nt.c (syms_of_process_nt):
681 delete quote-handling. call new lisp code that does it better.
683 * process-unix.c (connect_to_file_descriptor):
684 * process-unix.c (allocate_pty):
685 * process-unix.c (unix_send_process):
686 * process-unix.c (unix_kill_child_process):
687 * process-unix.c (unix_open_network_stream):
688 * process-unix.c (unix_open_multicast_group):
692 * process.c (Fstart_process_internal):
693 (2). need to canonicalize process path even if absolute.
695 * select-msw.c (symbol_to_ms_cf):
696 * select-msw.c (ms_cf_to_symbol):
697 * select-msw.c (cf_is_autofreed):
698 * select-msw.c (mswindows_destroy_selection):
700 * select.c (syms_of_select):
702 support dibv5, fix bugs. (from Mike Alexander)
704 * select.c (Fget_selection_internal):
705 * select.c (select_convert_out):
708 * sysdep.c (xemacs_stat):
713 but keep original stat() here because we provide encapsulation
722 don't include tchar.h. it's inappropriate because it makes
723 compile-time distinctions when we want runtime distinctions.
724 (we provide our own tchar replacements)
727 use default object printer for toolbar-button.
730 make sure we don't encapsulate.
732 * window.c (vars_of_window):
733 emphasize that temp-buffer-show-hook is obsolete.
735 2000-08-05 Martin Buchholz <martin@xemacs.org>
737 * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
738 (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
740 * events.c (Fevent_timestamp_lessp):
741 Not 64-bit clean. Use EMACS_INT, not int.
743 2000-06-05 Andrew Begel <abegel@cs.berkeley.edu>
745 * lrecord.h (lrecord_types): Changed lrecord_type_count to an
746 unsigned int and changed the last enum to
747 lrecord_type_last_built_in_type.
748 (lrecord_implementations_table): changed prototype to know how
749 long the array is supposed to be.
750 (lrecord_type_count): new unsigned int to keep track of the
751 current number of lisp lrecord types.
752 (DEFINE_EXTERNAL_LRECORD):
753 (DECLARE_EXTERNAL_LRECORD): Added these two for external
754 dynamic-modules to declare new lisp types. They are the same
755 as the non-EXTERNAL forms, but declare an lrecord_type unsigned
756 int for each new type, and increment lrecord_type_count by 1.
758 * alloc.c (lrecord_implementations_table): Changed to reference
759 lrecord_type_last_built_in_type for the size of the array.
760 Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
762 2000-08-03 Yoshiki Hayashi <yoshiki@xemacs.org>
764 * glyphs.h (check_valid_item_list): Renamed from
765 check_valid_item_list_1.
767 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
769 * select.c (Qselect_coerce): New.
770 * select.c (Vselection_coercion_alist): New.
771 * select.c (syms_of_select): Declare.
772 * select.c (get-selection-internal): Use it.
773 Use the new select-coerce functionality.
775 * select.c (select_coerce): New.
776 * select.h (select_coerce): Declare.
777 New function to coerce one type of data into another.
779 2000-08-03 Martin Buchholz <martin@xemacs.org>
781 * callproc.c (Fcall_process_internal):
782 (Fcall_process_internal):
783 * process-unix.c (unix_create_process):
784 Save and restore the value of errno, so that error messages are accurate.
786 2000-08-01 Martin Buchholz <martin@xemacs.org>
788 * elhash.c (print_hash_table):
789 Fix printing of hash tables to also use `key-and-value' instead of `t'.
790 Prettify docstrings and indentation.
792 2000-07-31 Yoshiki Hayashi <yoshiki@xemacs.org>
794 * window.c (Fwindow_pixel_edges): Subtract frame border and
797 2000-07-31 Andy Piper <andy@xemacs.org>
799 * buffer.c (Frecord_buffer): make absolutely sure that redisplay
800 will acknowledge the change.
802 * glyphs.h: declare tab_control_order_only_changed.
804 * glyphs-x.c (x_tab_control_redisplay): use
805 tab_control_order_only_changed.
807 * glyphs-widget.c (tab_control_order_only_changed): new function.
809 * glyphs-msw.c (mswindows_tab_control_redisplay): use
810 tab_control_order_only_changed.
812 * gui.c (gui_item_equal_sans_selected): new function.
813 (gui_item_equal): use it.
815 * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
816 :properties in favor of :items..
818 * glyphs-widget.c (check_valid_item_list): rename from
819 check_valid_item_list_1.
820 (check_valid_item_list_1): renamed.
821 (combo_box_validate): deprecate :properties in favor of :items.
822 (widget_instantiate): ditto.
823 (tab_control_update): ditto.
824 (image_instantiator_combo_box): ditto.
825 (image_instantiator_tree_view): ditto.
826 (image_instantiator_tab_control): ditto.
827 (layout_post_instantiate): remove dead code.
829 * print.c (debug_print_no_newline): only write to debugger if in
832 * elhash.c (Fmake_hash_table): update doc string.
834 * event-msw.c (mswindows_wnd_proc): don't allow processing of
835 messages whilst in GC. This at least stops XEmacs crashing but has
836 the potential for wierd behaviour.
838 2000-07-31 Martin Buchholz <martin@xemacs.org>
841 Make existence of s&m files optional.
843 * s/bsd386.h: Remove HAVE_GETLOADAVG.
844 * s/freebsd.h: Remove HAVE_GETLOADAVG.
845 * s/gnu.h: Remove HAVE_GETLOADAVG.
846 * s/netbsd.h: Remove HAVE_GETLOADAVG.
847 * s/sol2.h: Remove HAVE_GETLOADAVG.
848 * lisp.h: Remove getloadavg() declaration.
850 Include <sys/loadavg.h> if available.
851 Don't declare our own getloadavg() if HAVE_GETLOADAVG.
852 * config.h.in: Group together getloadavg()-related macros.
853 Use only configure-time tests to detect getloadavg().
855 2000-07-30 Martin Buchholz <martin@xemacs.org>
857 * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
859 2000-07-25 Andy Piper <andy@xemacs.org>
861 * syswindows.h: add tchar.h for native builds.
863 * frame.c (syms_of_frame): remove set-glyph-image.
865 * general-slots.h: add Qset_glyph_image.
867 * glyphs-widget.c (layout_update): add domain arg to
869 (syms_of_glyphs_widget): remove set-glyph-image.
871 2000-07-23 Ben Wing <ben@xemacs.org>
873 * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
876 2000-07-22 Andy Piper <andy@xemacs.org>
878 * symsinit.h: add syms_of_win32().
880 * gui-msw.c (syms_of_gui_mswindows): remove
881 Fmswindows_shell_execute.
882 (Fmswindows_shell_execute): moved to win32.c.
884 * emacs.c (main_1): add syms_of_win32 ().
886 * win32.c (init_potentially_nonexistent_functions): rewrite in
887 compiler-friendly terms.
888 (Fmswindows_shell_execute): move here from gui-msw.c.
889 (syms_of_win32): new.
891 * device-msw.c (Fmswindows_printer_list): clean up args to
893 Don't include tchar under cygwin or mingw.
894 (msprinter_default_printer): make cygwin-friendly.
896 2000-07-21 Andy Piper <andy@xemacs.org>
898 * glyphs-widget.c (image_instantiator_tree_view): use tab
899 control's update function.
900 (layout_property): new function. Retrieve items.
902 * glyphs-msw.c (mswindows_tree_view_redisplay): new
903 function. Re-populate the tree view from the pending items.
905 * glyphs.c (instantiate_image_instantiator): Make sure the domain
906 is designated the parent if the domain is an image instance. This
907 is needed so that dirtiness can be cascade up the hierarchy and
908 thus for layout children to be redisplayed correctly.
909 (allocate_image_instance): rename glyph -> parent.
911 * redisplay.h: change redisplay_output_layout signature.
913 * redisplay-msw.c (mswindows_output_display_block): use domain
916 * redisplay-x.c (x_output_display_block): use domain arg.
918 2000-07-10 Andy Piper <andy@xemacs.org>
920 * window.c (Fset_window_configuration): add comment.
922 * redisplay-output.c (compare_runes):
923 (redisplay_output_subwindow): redisplay rather than update subwindow.
924 (redisplay_output_layout): ditto.
926 * redisplay-msw.c (mswindows_frame_output_end):
927 (mswindows_frame_output_end): make defer window pos optional.
931 * glyphs.h (struct image_instantiator_methods): add dest_mask top
932 normalize method. Change update method to be for changed
933 instantiators. Add redisplay method. Change signature of layout
935 (struct Lisp_Image_Instance): add instantiator.
936 (IMAGE_INSTANCE_INSTANTIATOR): new.
937 (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
938 (XIMAGE_INSTANCE_INSTANTIATOR): new.
939 (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
942 (find_instantiator_differences): new function.
943 (Fset_instantiator_property): new convenience function.
944 (check_image_instance_structure): strictly check for vector
946 (normalize_image_instantiator): make non-static.
947 (instantiate_image_instantiator): pass on dest_mask and use new
948 signatures for image_instance_layout and friends.
949 (mark_image_instance): mark the instantiator. Mark the subwindow
950 face not the widget face.
951 (image_instance_equal): add instantiator.
952 (image_instance_hash): ditto.
953 (allocate_image_instance): ditto.
954 (Fset_image_instance_property): removed.
955 (Fimage_instance_file_name): ditto.
956 (Fcolorize_image_instance): ditto.
957 (image_instance_layout): add offsets to be set.
958 (update_image_instance): new function. update an image instance
959 from its changed instantiator.
960 (inherit_normalize): add dest_mask.
961 (xbm_normalize): ditto.
962 (xface_normalize): ditto.
963 (xpm_normalize): ditto.
964 (text_update): set_property -> update.
965 (image_instantiate): use the glyph identity as a hash key, not the
967 (glyph_width): use new image_instance_layout signature.
968 (glyph_ascent): ditto.
969 (glyph_descent): ditto.
970 (glyph_height): ditto.
971 (glyph_query_geometry): ressurrect.
972 (glyph_layout): ditto.
973 (redisplay_subwindow): update -> redisplay.
974 (syms_of_glyphs): add Fset_instantiator_property.
975 (image_instantiator_format_create): set_property -> update.
978 (autodetect_normalize): add dest_maks to signature.
979 (x_redisplay_subwindow): update -> redisplay.
980 (x_redisplay_widget): ditto.
981 (x_button_redisplay): ditto.
982 (x_progress_gauge_redisplay): ditto.
983 (x_tab_control_redisplay): ditto. Rewrite to cope with changed
985 (console_type_create_glyphs_x): update -> redisplay.
986 (image_instantiator_format_create_glyphs_x): ditto.
989 (check_valid_instantiator): disallow glyphs in the instantiator,
990 they must now be vectors.
991 (check_valid_instantiator_list): ditto.
992 (glyph_instantiator_to_glyph): use internal symbol rather than
994 (widget_update): renamed from widget_set_property. Call cascaded
996 (redisplay_widget): renamed from update_widget.
997 (widget_layout): image_instance_layout now takes position as well
999 (widget_normalize): ditto.
1000 (widget_instantiate): ditto.
1001 (tab_control_query_geometry) ditto.:
1002 (tab_control_update): renamed from tab_control_set_property.
1003 (progress_gauge_update): set_property -> update.
1004 (layout_normalize): rewrite so that child instantiators are
1006 (layout_update): new function. Create glyphs from the normalized
1007 children and cope with any other layout keywords. We do not
1008 instantiate children here that will be take care of by
1009 redisplay_output_layout.
1010 (layout_instantiate): call layout_update and not much else.
1011 (layout_post_instantiate): not sure whether this is needed
1013 (layout_query_geometry): query glyph geometry rather than
1014 image_instance geometry.
1015 (layout_layout): set offsets from pass in parameters. Use glyph
1016 geometry and layout functions rather than image instance ones.
1017 (native_layout_layout): ditto.
1018 (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
1019 (image_instantiator_widget): set_property -> update.
1020 (image_instantiator_buttons): ditto.
1021 (image_instantiator_progress_guage): ditto.
1022 (image_instantiator_tab_control): ditto.
1023 (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
1024 (image_instantiator_layout): add update method.
1026 * glyphs-msw.c (bmp_normalize):
1027 (mswindows_resource_normalize): add dest_mask so that it can be
1028 proprogated by layout_normalize.
1029 (begin_defer_window_pos): make optional because it may not be the
1030 right thing to do and it introduces differences with X.
1031 (mswindows_unmap_subwindow): ditto.
1032 (mswindows_map_subwindow): ditto.
1033 (mswindows_redisplay_subwindow): renamed from
1034 mswindows_update_subwindow.
1035 (mswindows_redisplay_widget): ditto.
1036 (mswindows_button_redisplay): renamed from
1037 mswindows_button_update. Update is now what the instantiation
1038 function does for a changed instantiator.
1039 (mswindows_progress_gauge_instantiate): set the progress value
1040 here if appropriate.
1041 (mswindows_tab_control_redisplay): cope with re-ordering of the
1042 members of the tab widget by simply selecting the new top
1043 widget. This makes things appear ok if you click on a tab.
1044 (mswindows_combo_box_instantiate): image_instance_layout now takes
1045 position as well as size.
1046 (mswindows_progress_gauge_redisplay): renamed from
1047 mswindows_progress_gauge_update.
1048 (console_type_create_glyphs_mswindows): fix update -> redisplay.
1049 (image_instantiator_format_create_glyphs_mswindows): ditto.
1051 * glyphs-eimage.c (jpeg_normalize):
1054 (tiff_normalize): add dest_mask so that it can be proprogated by
1059 (hash_table_weakness_validate):
1060 (decode_hash_table_weakness):
1061 (Fhash_table_weakness):
1063 (syms_of_elhash): use Ben's naming scheme for hashtable types..
1065 * console.h (struct console_methods): move update_* to
1068 2000-07-20 Ben Wing <ben@xemacs.org>
1070 * *.[ch] (XSETOBJ): remove unused middle argument.
1071 lisp-disunion.h: correct wrap_object() to one argument.
1073 2000-07-15 Ben Wing <ben@xemacs.org>
1076 * s/cygwin32.h (CYGWIN_CONV_PATH):
1077 Add missing logb prototype for v1.1.
1078 Use post-b20 names and alias to pre-b20 names when pre-b20.
1080 * s/windowsnt.h: [5].
1082 2000-07-15 Ben Wing <ben@xemacs.org>
1084 * Makefile.in.in (x_objs):
1085 * Makefile.in.in (sheap_objs):
1086 * Makefile.in.in (objs):
1087 added win32.o, cosmetic cleanups.
1089 * alloc.c (Fmake_byte_code):
1090 [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
1091 etc. macros which declare their own args now.
1093 * alloc.c (syms_of_alloc):
1094 [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
1097 Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
1099 * buffer.c (Fget_file_buffer):
1100 Fixed GCPRO problem.
1102 * buffer.c (get_truename_buffer):
1103 Fixed comment about GC checking.
1105 * buffer.c (syms_of_buffer):
1106 Undeclared those dedicated frame funs.
1110 Define convenience macros for internal/external conversions.
1111 [[[3]]]: Define codesys aliases Qcommand_argument_encoding
1112 and Qenvironment_variable_encoding for cleaner code.
1115 Remove dedicated-frame; in lisp.
1117 * bytecode.c (funcall_compiled_function):
1120 * bytecode.c (syms_of_bytecode):
1124 * console-msw.c (mswindows_show_console): Rewrote.
1126 * console-msw.c (Fmswindows_debugging_output): New.
1127 Sends to OutputDebugString (special MSWin debugger interface).
1129 * console-msw.c (Fmswindows_message_box):
1130 Fixed stupid bugs so it works when called from kill-emacs.
1132 * console-msw.c (syms_of_console_mswindows):
1133 Declare Fmswindows_debugging_output.
1136 New MSWin prototypes.
1138 * console-msw.h (struct mswindows_frame):
1139 New entry last-click-mods for improved button-modifier support.
1141 * console-msw.h (FRAME_MSWINDOWS_POPUP):
1142 New struct entry `popup' with corresponding accessor.
1145 * console-x.c (split_up_display_spec):
1146 * console-x.c (get_display_arg_connection):
1147 * console-x.c (x_semi_canonicalize_console_connection):
1148 * console-x.c (x_canonicalize_device_connection):
1149 [[[6]]]: Change char to more specific type.
1150 [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
1152 * console-x.c (x_semi_canonicalize_console_connection):
1153 * console-x.c (x_canonicalize_device_connection):
1154 [[[9]]]: Fix up error signalling to use new structured error system.
1157 [[[4]]]: Define codesys aliases:
1158 Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
1159 Qx_color_name_encoding, Qx_display_name_encoding.
1161 * console.h (struct console_methods):
1162 New method make_dialog_box_internal supersedes older
1163 popup_dialog_box method.
1166 Define many new errors, part of new structured errors.
1168 * data.c (init_errors_once_early):
1169 * data.c (syms_of_data):
1172 * device-msw.c (mswindows_init_device):
1173 [[[5]]]: Cleanup to support NT 3.51.
1175 * device-msw.c (decode_devmode): Cleanup.
1177 * device-msw.c (mswindows_handle_print_setup_dialog_box):
1178 * device-msw.c (mswindows_handle_print_dialog_box):
1179 * device-msw.c (mswindows_handle_page_setup_dialog_box):
1180 * device-msw.c (syms_of_device_mswindows):
1181 Delete the dialog box primitives recently introduced by Kirill and
1182 instead interface to general dialog box interface.
1185 * device-x.c (compute_x_app_name):
1186 * device-x.c (x_init_device):
1187 * device-x.c (Fx_valid_keysym_name_p):
1188 * device-x.c (Fx_set_font_path):
1192 * device.h (wrap_device): New.
1193 First of its kind; meant to replace XSETDEVICE.
1195 * dialog-msw.c: Many file-dialog symbols.
1197 * dialog-msw.c (mswindows_register_popup_frame): New.
1198 * dialog-msw.c (mswindows_is_dialog_msg): New.
1199 For supporting kbd traversal in dialog boxes.
1201 * dialog-msw.c (dialog_proc):
1202 Support hitting ESC in dialogs.
1204 * dialog-msw.c (struct):
1205 Common dialog box errors.
1207 * dialog-msw.c (handle_file_dialog_box): New.
1208 Add file dialog code.
1210 * dialog-msw.c (handle_question_dialog_box):
1211 Redo existing code to support new question dialog syntax.
1213 * dialog-msw.c (console_type_create_dialog_mswindows):
1214 We support new dialog console method.
1216 * dialog-msw.c (syms_of_dialog_mswindows):
1217 * dialog-msw.c (vars_of_dialog_mswindows):
1218 New file dialog symbols, vars.
1221 * dialog-x.c (maybe_run_dbox_text_callback):
1222 * dialog-x.c (dbox_descriptor_to_widget_value):
1223 * dialog-x.c (x_make_dialog_box_internal):
1224 * dialog-x.c (console_type_create_dialog_x):
1225 Mule-ize entire file.
1226 Redo to support question dialog syntax.
1230 * dialog.c (Fmake_dialog_box_internal):
1231 * dialog.c (syms_of_dialog):
1232 Kill old popup-dialog-box, replace with new primitive.
1233 Just call device method or signal error.
1235 * eldap.c (Fldap_open):
1236 * eldap.c (Fldap_search_basic):
1237 * eldap.c (Fldap_add):
1238 * eldap.c (Fldap_modify):
1243 * emacs.c (make_arg_list_1):
1244 * emacs.c (make_arg_list):
1245 Mule-ize call to dll_init().
1249 * emacs.c (make_argc_argv):
1250 * emacs.c (free_argc_argv):
1251 * emacs.c (init_cmdargs):
1253 * emacs.c (Fkill_emacs):
1254 * emacs.c (Fdump_emacs):
1255 Update comments about what can be used in syms_* etc.
1256 Call init_win32() when necessary.
1257 Fix up MS Win dialog box in kill-buffer to actually work right.
1268 * eval.c (condition_case_3):
1270 * eval.c (function_argcount):
1271 * eval.c (funcall_lambda):
1274 * eval.c (type_error): New.
1275 * eval.c (maybe_type_error): New.
1276 * eval.c (continuable_type_error): New.
1277 * eval.c (maybe_continuable_type_error): New.
1278 * eval.c (type_error_with_frob): New.
1279 * eval.c (maybe_type_error_with_frob): New.
1280 * eval.c (continuable_type_error_with_frob): New.
1281 * eval.c (maybe_continuable_type_error_with_frob): New.
1282 New functions for use with structured errors.
1285 * event-Xt.c (x_event_to_emacs_event):
1286 Buttons are now modifiers too.
1288 * event-Xt.c (emacs_Xt_current_event_timestamp):
1289 Implement new event method.
1290 * event-Xt.c (reinit_vars_of_event_Xt): Set it.
1293 * event-msw.c (ntpipe_shove_writer): [5].
1294 * event-msw.c (mswindows_enqueue_mouse_button_event):
1295 * event-msw.c (mswindows_drain_windows_queue):
1296 * event-msw.c (mswindows_wnd_proc): [7].
1297 * event-msw.c (mswindows_current_layout_has_AltGr): [5].
1298 * event-msw.c (mswindows_modifier_state):
1299 Throughout: support new button modifiers.
1301 * event-msw.c (emacs_mswindows_current_event_timestamp):
1302 Implement new event method.
1303 * event-msw.c (reinit_vars_of_event_mswindows): Set it.
1306 * event-stream.c (event_stream_current_event_timestamp): New.
1307 * event-stream.c (maybe_kbd_translate): New functionality.
1308 * event-stream.c (vars_of_event_stream):
1309 Document new kbd-translate-table functionality.
1311 * event-stream.c (Fcurrent_event_timestamp): New.
1312 New primitive for use in fabricated events.
1313 * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
1315 * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
1318 * events.c (Fmake_event):
1319 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
1323 * events.c (format_event_object): fix gcc warnings.
1325 * events.c (Fevent_timestamp): Document new primitives.
1327 * events.c (TIMESTAMP_HALFSPACE): New.
1329 * events.c (Fevent_timestamp_lessp): New. New primitive for
1330 comparing timestamps correctly (half-space algorithm).
1332 * events.c (Fevent_modifier_bits): Doc fix.
1334 * events.c (Fevent_modifiers): Major doc addition.
1335 * events.c (event_x_y_pixel_internal): Typo fix.
1336 * events.c (syms_of_events): Declare new primitives.
1339 Update long comment for button modifiers, timestamps.
1341 * events.h (struct event_stream):
1342 New current_event_timestamp method.
1345 * extents.c (extent_in_region_p):
1346 * extents.c (decode_extent):
1347 * extents.c (Fset_extent_parent):
1348 * extents.c (decode_map_extents_flags):
1352 * extents.c (struct extent_at_arg):
1353 * extents.c (decode_extent_at_flag):
1354 * extents.c (extent_at_mapper):
1355 * extents.c (extent_at_bytind):
1356 * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
1357 * extents.c (Fextents_at): New primitive. [9].
1358 * extents.c (symbol_to_glyph_layout): [9].
1359 Support new primitive `extents-at'.
1362 * extents.c (get_text_property_bytind):
1363 extent_at_bytind has another arg.
1366 * extents.c (syms_of_extents): New primitive.
1368 * file-coding.c (Fmake_coding_system): [1].
1369 * file-coding.c (subsidiary_coding_system): fix gcc warning
1370 * file-coding.c (syms_of_file_coding): [2].
1372 * fileio.c (Fexpand_file_name):
1373 * fileio.c (Fsysnetunam):
1374 * fileio.c (Ffile_exists_p):
1375 * fileio.c (Ffile_executable_p):
1376 * fileio.c (Fverify_visited_file_modtime):
1379 * fileio.c (syms_of_fileio): [2].
1381 * filelock.c (lock_file_1):
1382 * filelock.c (current_lock_owner):
1383 * filelock.c (lock_if_free):
1384 * filelock.c (lock_file):
1385 * filelock.c (unlock_file):
1388 * fns.c (concat): Fix gcc warning.
1391 * fns.c (Fold_member):
1393 * fns.c (Fold_memq):
1394 * fns.c (memq_no_quit):
1396 * fns.c (Fold_assoc):
1398 * fns.c (Fold_assq):
1399 * fns.c (assq_no_quit):
1401 * fns.c (Fold_rassoc):
1403 * fns.c (Fold_rassq):
1404 * fns.c (rassq_no_quit):
1406 * fns.c (Fold_delete):
1408 * fns.c (Fold_delq):
1409 * fns.c (delq_no_quit):
1410 * fns.c (Fremassoc):
1412 * fns.c (remassq_no_quit):
1413 * fns.c (Fremrassoc):
1414 * fns.c (Fremrassq):
1415 * fns.c (remrassq_no_quit):
1420 * frame-msw.c (mswindows_init_frame_1):
1421 * frame-msw.c (mswindows_delete_frame):
1422 Register popups with dialog code so keyboard traversing works.
1424 * frame-tty.c (tty_raise_frame_no_select): [1].
1427 * frame-x.c (x_set_frame_text_value):
1428 * frame-x.c (x_set_frame_properties):
1429 * frame-x.c (x_create_widgets):
1433 * frame.c (Fmouse_pixel_position): Minor doc fixes.
1435 * frame.h (wrap_frame): New.
1436 Macro like wrap_device.
1439 * general.c (SYMBOL):
1440 * general.c (syms_of_general):
1441 Major reorg. This is now just a wrapper and symbols themselves
1442 are listed in general-slots.h.
1444 * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
1445 * glyphs-msw.c (mswindows_resource_instantiate): [5].
1447 * glyphs-msw.c (mswindows_native_layout_instantiate):
1448 Add DS_CONTROL so keyboard traversal will work.
1451 * glyphs-widget.c (syms_of_glyphs_widget):
1452 Move some symbols to general-slots.h.
1455 * glyphs-x.c (xbm_instantiate_1):
1456 * glyphs-x.c (x_xbm_instantiate):
1457 * glyphs-x.c (x_xface_instantiate):
1458 * glyphs-x.c (autodetect_instantiate):
1459 * glyphs-x.c (cursor_font_instantiate):
1460 * glyphs-x.c (x_update_widget):
1461 * glyphs-x.c (x_widget_instantiate):
1462 * glyphs.c (bitmap_to_lisp_data):
1463 * glyphs.c (pixmap_to_lisp_data):
1466 * glyphs.c (syms_of_glyphs):
1470 * gui-x.c (print_widget_value):
1471 * gui-x.c (menu_separator_style_and_to_external):
1472 * gui-x.c (add_accel_and_to_external):
1473 * gui-x.c (button_item_to_widget_value):
1474 * gui-x.c (gui_items_to_widget_values_1):
1475 * gui-x.c (gui_items_to_widget_values):
1476 * gui-x.c (syms_of_gui_x):
1477 * gui-x.c (vars_of_gui_x):
1478 Mule-ize entire file. Move menu-no-selection-hook to gui.c.
1482 Muleize, prototype changes matching gui-x.c.
1485 * gui.c (separator_string_p):
1486 * gui.c (gui_item_add_keyval_pair):
1487 * gui.c (make_gui_item_from_keywords_internal):
1488 * gui.c (signal_too_long_error):
1489 * gui.c (parse_gui_item_tree_item):
1490 * gui.c (syms_of_gui):
1491 * gui.c (vars_of_gui):
1493 menu-no-selection-hook moved here (used by MSWin).
1494 Move some symbols to general-slots.h.
1498 * insdel.c (get_buffer_pos_char):
1499 * insdel.c (get_buffer_range_char):
1502 * keymap.c (keymap_lookup_directly):
1503 * keymap.c (keymap_store):
1504 * keymap.c (ensure_meta_prefix_char_keymapp):
1505 * keymap.c (describe_map):
1507 Support new button modifiers.
1509 * lisp-disunion.h (wrap_object):
1510 * lisp-disunion.h (XSETOBJ):
1511 Rename make_obj to wrap_object.
1514 * lisp-union.h (make_int):
1515 * lisp-union.h (make_char):
1516 Support wrap_object.
1519 * lisp.h (LIST_LOOP):
1520 * lisp.h (EXTERNAL_LIST_LOOP):
1521 * lisp.h (LIST_LOOP_2):
1522 * lisp.h (EXTERNAL_LIST_LOOP_1):
1523 * lisp.h (EXTERNAL_LIST_LOOP_2):
1524 * lisp.h (EXTERNAL_LIST_LOOP_3):
1525 * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
1526 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
1527 * lisp.h (GET_EXTERNAL_LIST_LENGTH):
1528 * lisp.h (EXTERNAL_ALIST_LOOP_5):
1529 * lisp.h (EXTERNAL_ALIST_LOOP_6):
1530 * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
1531 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
1532 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
1533 * lisp.h (struct Lisp_Symbol):
1534 * lisp.h (maybe_continuable_error_with_frob):
1535 Fix up section comments.
1536 Add new types for char to indicate usage.
1537 Delete symbols auto-generated from general-slots.h.
1538 Add prototypes for structured error functions.
1539 Add long comments describing looping macros and change interface
1540 so that lvalues are automatically declared.
1541 Add NO_DECLARE macro in case callers want to declare lvalues
1544 * lread.c (read_syntax_error):
1545 * lread.c (continuable_read_syntax_error):
1546 * lread.c (read_structure):
1547 * lread.c (sequence_reader):
1548 * lread.c (read_list_conser):
1549 * lread.c (read_compiled_function):
1550 Rename syntax_error and continuable_syntax_error to avoid clash
1551 with same-named structured error functions.
1553 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
1554 * menubar-msw.c (populate_menu_add_item):
1555 * menubar-msw.c (populate_or_checksum_helper):
1560 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
1561 Mule-ize whole file.
1563 * menubar.c (Fnormalize_menu_item_name): Add optimization.
1565 * mule-charset.c (Fmake_charset):
1566 * mule-wnnfns.c (Fwnn_set_param):
1569 * ntproc.c (create_child):
1570 * ntproc.c (Fwin32_set_current_locale):
1571 Add comments portending doom.
1574 * objects-msw.c (old_font_enum_callback_2):
1575 * objects-msw.c (font_enum_callback_1):
1576 * objects-msw.c (mswindows_enumerate_fonts):
1580 * objects-x.c (allocate_nearest_color):
1581 * objects-x.c (x_parse_nearest_color):
1582 * objects-x.c (x_initialize_color_instance):
1583 * objects-x.c (x_print_color_instance):
1584 * objects-x.c (x_finalize_color_instance):
1585 * objects-x.c (x_valid_color_name_p):
1586 * objects-x.c (x_initialize_font_instance):
1587 * objects-x.c (x_print_font_instance):
1588 * objects-x.c (valid_x_font_name_p):
1589 * objects-x.c (truename_via_FONT_prop):
1590 * objects-x.c (truename_via_random_props):
1591 * objects-x.c (truename_via_XListFonts):
1592 * objects-x.c (x_font_truename):
1593 * objects-x.c (x_font_instance_truename):
1594 * objects-x.c (x_font_instance_properties):
1595 * objects-x.c (x_list_fonts):
1596 * objects-x.c (x_find_charset_font):
1597 Mule-ize entire file.
1604 * print.c (std_handle_out_external):
1605 * print.c (debug_print_no_newline):
1606 * print.c (syms_of_print):
1607 Output to all debugger kinds in debug-print.
1608 Fix console-output code under MSWin to actually work.
1610 * process-nt.c (send_signal):
1611 * process-nt.c (nt_create_process):
1612 Use newer Unicode macros.
1614 * process-unix.c (unix_create_process):
1615 * process-unix.c (unix_canonicalize_host_name):
1616 * process-unix.c (unix_open_network_stream):
1622 * search.c (syms_of_search):
1625 * select-msw.c (mswindows_destroy_selection):
1628 * select-x.c (symbol_to_x_atom):
1631 * select.c (syms_of_select):
1634 * sound.c (Fplay_sound_file):
1638 * specifier.c (decode_specifier_type):
1639 * specifier.c (Fvalid_specifier_locale_type_p):
1640 * specifier.c (check_valid_locale_or_locale_type):
1641 * specifier.c (decode_locale):
1642 * specifier.c (decode_locale_type):
1643 * specifier.c (decode_locale_list):
1644 * specifier.c (check_valid_domain):
1645 * specifier.c (decode_specifier_tag_set):
1646 * specifier.c (Fcanonicalize_tag_set):
1647 * specifier.c (Fdefine_specifier_tag):
1648 * specifier.c (Fspecifier_tag_predicate):
1649 * specifier.c (check_valid_inst_list):
1650 * specifier.c (check_valid_spec_list):
1651 * specifier.c (decode_how_to_add_specification):
1652 * specifier.c (check_modifiable_specifier):
1653 * specifier.c (specifier_add_spec):
1654 * specifier.c (boolean_validate):
1655 * specifier.c (display_table_validate):
1658 * specifier.c (syms_of_specifier):
1659 Move some symbols to general-slots.h.
1663 * symbols.c (Fmapatoms):
1664 * symbols.c (Fapropos_internal):
1667 * symbols.c (set_default_buffer_slot_variable):
1668 * symbols.c (set_default_console_slot_variable):
1671 * symbols.c (defsymbol_massage_name_1):
1672 * symbols.c (defkeyword_massage_name):
1673 * symbols.c (deferror_1):
1674 * symbols.c (deferror):
1675 * symbols.c (deferror_massage_name_and_message):
1677 * symeval.h (DEFSYMBOL):
1678 Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
1680 * symbols.c (syms_of_symbols):
1684 * symsinit.h (init_win32): New.
1685 Also new is syms_of_dialog_mswindows.
1688 Add new Unicode macros, missing Cygwin wide-char functions,
1689 convenience conversion macros for Qmswindows_tstr, macros for
1690 encapsulating required MSWin <-> Cygwin filename conversions,
1691 prototype for dynamically-extracted (not in NT 3.51) functions.
1696 * tooltalk.c (Fadd_tooltalk_message_arg):
1697 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
1698 * tooltalk.c (Fadd_tooltalk_pattern_arg):
1701 * tooltalk.c (syms_of_tooltalk):
1705 * unexnt.c (unexec):
1706 Fix up headers, declaration of unexec() to be more standard.
1708 2000-07-20 Martin Buchholz <martin@xemacs.org>
1710 * offix.h: Revert change to guard macros - they're used in offix.c!
1712 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
1714 * lisp.h: Defsubred Fdelete.
1716 * console-msw.h: (msprinter_default_printer): Added.
1718 * console-msw.c (msprinter_canonicalize_console_connection):
1719 (msprinter_canonicalize_device_connection): Added.
1721 * device-msw.c (msprinter_default_printer):
1722 (Fmswingows_get_default_printer):
1723 (signal_enum_priner_error):
1724 (Fmswingows_printer_list): Added.
1726 2000-07-19 Martin Buchholz <martin@xemacs.org>
1728 * XEmacs 21.2.35 is released.
1730 2000-07-19 Martin Buchholz <martin@xemacs.org>
1732 * select-x.c (x_handle_selection_request):
1733 Text selected in xemacs and pasted into xterm failed to appear.
1734 Spelling fixes and cosmetic changes.
1736 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
1738 * event-msw.c (mswindows_drain_windows_queue): Correctly check for
1739 XEmacs frame (fix for doubling chars in dialog boxes).
1741 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
1743 * select.c (select_convert_in, select_convert_out):
1744 Don't call intern() every time.
1746 * select.c (Qselect_convert_in, Qselect_convert_out): New.
1747 * select.c (vars_of_select): Initialise them.
1749 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
1751 * select.c (selection-coercible-types): New.
1753 * select.c (own-selection-internal):
1754 * select.c (get-selection-internal):
1755 MULE bug fix - these should default to COMPOUND_TEXT and not
1756 STRING for MULE. I think.
1758 * select.c (select_convert_out): Use selection-coercible-types
1759 to find types that we can attempt to perform coercions on.
1761 2000-07-18 Martin Buchholz <martin@xemacs.org>
1765 Add coding: cookie to identify encoding.
1767 * mule-canna.c (CANNA_mode_keys): make static.
1768 Use proper prototypes, even for functions of no arguments.
1769 Remove external prototype for Fding().
1771 * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
1773 * select.c (syms_of_select): Add missing DEFSUBR.
1775 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
1777 * select.c (get_selection_internal, own_selection_internal):
1778 Make the type default to STRING, rather than placing a nil type
1779 into Vselection_alist.
1781 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
1783 * gpmevent.c (tty_selection_exists_p):
1784 * gpmevent.c (tty_own_selection):
1785 Updated parameter lists.
1787 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
1789 * select.h (selection-alist): Removed declaration.
1791 * select.h (get_local_selection):
1792 * select.c (get_local_selection):
1795 * select.h (convert_selection): Removed declaration.
1796 * select.c (convert_selection): Removed.
1797 This function belongs in Lisp.
1799 * select.h (select_convert_in): Declare.
1800 * select.h (select_convert_out): Declare.
1801 * select.c (select_convert_in): New.
1802 * select.c (select_convert_out): New.
1803 New conversion functions for other files to call.
1805 * select.h (select_notify_buffer_kill): Declare.
1806 * select.c (select_notify_buffer_kill): New.
1807 New functions that get called from kill-buffer.
1809 * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
1810 X-specific lisp code.
1812 * select.h: Declare some of the lisp-visible functions for
1815 * select.c (clean_local_selection_data): Removed. This was
1816 a disgusting function, and previously should have been in
1817 select-x.c in any case. The functionality is now provided
1818 in select-convert-from-integer (select.el).
1820 * select.c (available-selection-types): Fixed stupidity where
1821 INTEGER and ATOM got added twice. Also add STRING when we see an
1824 * select.c (get-selection-internal): Removed symbol stripping. No
1825 longer causes conversion when data comes from the internal cache.
1827 * select.c (syms_of_select): Added new functions.
1829 * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
1830 error checking - previously this called abort!
1832 * select-x.c (x_own_selection): Changed comment.
1834 * select-x.c (x_handle_selection_request): Use select_convert_out.
1835 Don't mess with selection-alist; it's an internal variable of select.c.
1837 * select-x.c (x_get_foreign_selection): Use select_convert_in.
1839 * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
1840 rather than messing with selection-alist.
1842 * select-msw.c (mswindows_get_foreign_selection):
1843 Use TO_INTERNAL_FORMAT rather than hacking.
1845 2000-07-14 Martin Buchholz <martin@xemacs.org>
1847 * process-unix.c (unix_open_multicast_group):
1848 (unix_open_multicast_group): Remove useless casts.
1850 2000-07-13 Martin Buchholz <martin@xemacs.org>
1852 * sound.c (Fplay_sound): Fix `unused variable' warning.
1854 * emacs.c (main): Use correct type for _environ on SCO5.
1856 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
1858 * console.h (own_selection_method):
1859 * console.h (selection_exists_p_method):
1860 * console.h (available_selection_types_method): New.
1861 * console.h (register_selection_data_type_method): New.
1862 * console.h (selection_data_type_name): New.
1864 * console-msw.h (mswindows_destroy_selection): Declare it. New
1865 function & alist to track GlobalAlloc()'d handles that need
1866 releasing when the clipboard data gets replaced or emptied.
1868 * event-msw.c (mswindows_wnd_proc): Call it.
1870 * lisp.h, general.c (Qappend): New symbol representing a
1873 * select.c (own-selection-internal):
1874 * select.c (selection-exists-p):
1875 * select.c (available-selection-types): New.
1876 * select.c (register-selection-data-type): New.
1877 * select.c (selection-data-type-name): New. New functions to deal
1878 with device-specific selection data formats.
1879 * select.c (selection-converter-out-alist): Renamed.
1880 * select.c (selection-converter-in-alist): New.
1881 * select.c (selection-appender-alist): New. Added new alists.
1882 * select.c (syms_of_select, vars_of_select): Added new symbols &
1884 * select.c (get_local_selection): Split.
1885 * select.c: Removed spurious type checking - selections may now be
1886 of any type, not just strings.
1887 * select.c (own-selection-internal):
1889 * select.h, select.c (convert_selection): New. Created
1890 convert_selection() function based on get_local_selection().
1891 * select.h, select.c (QCF_*): New symbols representing mswindows
1893 * select.h, select.c (Qreplace_all, Qreplace_existing): New
1894 symbols representing `how-to-add' modes.
1896 * select-msw.c (x_sym_p): New.
1897 * select-msw.c (symbol_to_ms_cf): New.
1898 * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
1899 symbols & clipboard formats. Can also handle string names.
1900 * select-msw.c (mswindows_own_selection):
1901 * select-msw.c (mswindows_selection_exists_p):
1902 Added `data-type' parameter. Use it.
1903 * select-msw.c (mswindows_available_selection_types): New.
1904 * select-msw.c (mswindows_register_selection_data_type): New.
1905 * select-msw.c (mswindows_selection_data_type_name): New.
1906 * select-msw.c (mswindows_own_selection):
1907 * select-msw.c (mswindows_get_foreign_selection):
1908 * select-msw.c (mswindows_selection_exists_p): Rewrote.
1909 * select-msw.c (console_create_select_mswindows): Added new methods.
1910 * select-msw.c (mswindows_destroy_selection): New.
1911 * select-msw.c (Vhandle_alist): New list.
1912 * select-msw.c (mswindows_own_selection):
1914 * select-x.c (x_own_selection):
1915 * select-x.c (x_selection_exists_p):
1916 * select-x.c: Added some comments about maybe using new
1918 * select-x.c (x_own_selection):
1920 * specifier.c: Remove definition of Qappend (now in general.c)
1921 * specifier.c (syms_of_specifier): Remove Qappend.
1923 2000-07-12 Martin Buchholz <martin@xemacs.org>
1925 * config.h.in: Add socklen_t.
1927 * s/decosf4-0.h: No special compiler flags needed or desired.
1928 In particular, undefine _BSD for DEC OSF 4.0.
1930 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
1932 * redisplay-msw.c (msprinter_frame_output_end): Added.
1933 (console_type_create_redisplay_mswindows): Referred the above.
1935 * frame.c (setup_frame_without_minibuffer): Do not create a
1936 default minibuffer frame on a printer device.
1938 * frame-msw.c (apply_dc_geometry): Added.
1939 (msprinter_start_page):
1940 (msprinter_init_frame_3):
1941 (msprinter_eject_page): Use it.
1943 * console-msw.h (struct msprinter_frame): Added pix_left and top,
1944 and removed residual duplex and orientation properties.
1946 2000-07-11 Martin Buchholz <martin@xemacs.org>
1948 * eval.c (function_argcount): Work around a DEC CC compiler bug.
1950 * unexalpha.c: Remove system prototypes from C sources!
1952 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com>
1954 * eval.c: Remove references to M-x edit-options in DEFUNs for
1955 `defvar' and `defconst'.
1957 2000-07-09 Martin Buchholz <martin@xemacs.org>
1959 * config.h.in: Remove SMART_INCLUDE hackery.
1962 * config.h.in: Don't use SMART_INCLUDE.
1964 * postgresql.h: Include libpq-fe.h here. Fix typo.
1965 * inline.c: Simply #include "postgresql.h"
1967 - Don't use SMART_INCLUDE
1968 - Use simply "const".
1969 - Use standard doc string conventions.
1970 - Use correct type for result of PQstatus.
1972 2000-07-09 Martin Buchholz <martin@xemacs.org>
1974 * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
1976 C++ compilation changes.
1977 * config.h.in (EXTERN_C): Define.
1978 * config.h.in (not): This is also a C++ keyword.
1979 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
1980 * cm.c: Use EXTERN_C.
1981 * redisplay-tty.c: Use EXTERN_C.
1982 * sysdep.c: Use EXTERN_C. Remove Gould support.
1984 2000-07-09 Martin Buchholz <martin@xemacs.org>
1986 * general.c: Remove duplicate definition for Qfunction.
1988 2000-07-08 Ben Wing <ben@xemacs.org>
1990 * device-msw.c (msprinter_init_device):
1991 * device-msw.c (sync_printer_with_devmode):
1992 * device-msw.c (handle_devmode_changes):
1993 * device-msw.c (print_dialog_worker):
1994 * device-msw.c (Fmsprinter_apply_settings):
1995 * device-msw.c (hash_devmode):
1996 * device-msw.c (Fmsprinter_settings_despecialize):
1997 use Qmswindows_tstr, not Qctext.
1999 * vm-limit.c (check_memory_limits):
2000 avoid infinite loop printing warning messages.
2002 2000-07-05 Craig Lanning <lanning@scra.org>
2004 * Makefile.in.in: Add support for including the Windows resources
2005 when building with the cygwin and mingw targets.
2007 * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
2008 not set or not correct.
2009 (directory_is_current_directory): Don't compile for WIN32_NATIVE.
2010 (init_initial_directory): Don't try to use $PWD on the
2011 WIN32_NATIVE target.
2014 [[Add -mwindows to eliminate console window.]] not required --ben
2015 (HAVE_NATIVE_SOUND): removed; now handled by configure.
2016 (MAIL_USE_POP): removed; now handled by configure.
2018 * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
2019 C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
2020 (HAVE_NATIVE_SOUND): removed; now handled by configure.
2021 (MAIL_USE_POP): removed; now handled by configure.
2022 (ENCAPSULATE_STAT): from Dan Holmsand, added.
2023 (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
2024 (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
2026 (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
2027 up from <winsock.h> via systime.h.
2028 (HAVE_GETPAGESIZE): from Dan Holmsand, added.
2029 (getpagesize): from Dan Holmsand, added.
2030 Added #endif which was left dangling by Ben's mega patch; added
2031 comment to help prevent this in the future.
2033 * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
2035 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
2037 * console-msw.h (struct mswindows_device): Removed unnecessary
2038 cached device geometry values.
2039 Added update_tick and an accessor macro.
2040 (Lisp_Devmode): Added lrecord declaration.
2041 (struct msprinter_device): Contain devmode as a Lisp object.
2042 Added mswindows_get_selected_frame_hwnd();
2044 * console.h (struct console_methods): Indentation nitpicking.
2046 * device-msw.c (mswindows_init_device): Do not initialize geometry
2047 cache. Initialize update tick.
2048 (mswindows_device_system_metrics): Ask the device for its geometry.
2049 (global_free_2_maybe):
2050 (devmode_to_hglobal):
2051 (handle_printer_changes):
2052 (ensure_not_printing):
2053 (print_dialog_worker):
2054 (Fmsprinter_print_setup_dialog):
2055 (Fmsprinter_print_dialog):
2058 (Fmsprinter_page_setup_dialog): Added functions.
2059 (sync_printer_with_devmode):
2060 (handle_devmode_changes):
2061 (Fmsprinter_get_settings):
2062 (Fmsprinter_select_settings):
2063 (Fmsprinter_apply_settings):
2065 (Fmsprinter_settings_copy):
2066 (Fmsprinter_settings_despecialize):
2070 (hash_devmode): Added functions
2071 (syms_of_device_mswindows): Init devmode lrecord class.
2073 * device.h: Added an exfun for find-device.
2075 * event-msw.c (mswindows_wnd_proc): Do not update the cached
2076 geometry; although, recreate the device compatible DC.
2078 * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
2079 (msprinter_init_frame_3):
2080 (msprinter_frame_property):
2081 (msprinter_internal_frame_property_p):
2082 (msprinter_frame_properties):
2083 (msprinter_set_frame_properties): Removed 'orientation and 'duplex
2084 print job properties (will move to device settings).
2086 * lisp.h: Added symbols.
2088 * general.c (syms_of_general): Declared them.
2090 * hash.c (string_hash): Added.
2092 * lrecord.h (lrecord_type): Added devmode lrecord type.
2094 2000-07-02 Mike Sperber <mike@xemacs.org>
2096 * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
2099 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp>
2101 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2104 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org>
2106 * data.c (Fstring_to_number): Don't recognize floating point if
2109 2000-06-22 Martin Buchholz <martin@xemacs.org>
2111 * glyphs-widget.c (tab_control_query_geometry):
2112 (widget_query_geometry):
2113 (button_query_geometry):
2114 * glyphs.c (text_query_geometry):
2115 Enforce type correctness.
2117 2000-06-18 Martin Buchholz <martin@xemacs.org>
2119 * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
2120 * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
2122 2000-06-17 Martin Buchholz <martin@xemacs.org>
2124 * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
2125 conflicts with gcc's fixincluded version of FOO.h.
2127 * glyphs.h (image_instance_geometry): Remove trailing `,'
2129 2000-06-08 Mike Alexander <mta@arbortext.com>
2131 (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
2132 (shove_thread): Don't write the same output twice
2133 (make_ntpipe_output_stream): Increase priority of shove thread
2134 (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
2136 (ntpipe_shove_closer): Don't delete the pipe until we're done with
2139 2000-06-12 Ben Wing <ben@xemacs.org>
2141 * s\mingw32.h (sigset):
2142 * s\windowsnt.h (sigset):
2143 rename msw_ to mswindows_ for consistency with general convention.
2145 2000-06-12 Ben Wing <ben@xemacs.org>
2148 * console-msw.c (mswindows_get_console_hwnd):
2149 * console-msw.c (mswindows_ensure_console_allocated):
2150 * console-msw.c (mswindows_hide_console):
2151 * console-msw.c (mswindows_show_console):
2152 * console-msw.c (mswindows_ensure_console_buffered):
2153 * console-msw.c (mswindows_output_console_string):
2154 * console-msw.c (mswindows_windows9x_p):
2156 * device-msw.c (mswindows_get_workspace_coords):
2157 * device-msw.c (mswindows_device_system_metrics):
2158 * dialog-msw.c (mswindows_popup_dialog_box):
2159 * event-msw.c (mswindows_wnd_proc):
2160 * frame-msw.c (mswindows_size_frame_internal):
2161 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
2162 * menubar-msw.c (displayable_menu_item):
2163 * menubar-msw.c (mswindows_char_is_accelerator):
2165 * nt.c (mswindows_sigset):
2166 * nt.c (mswindows_sigrelse):
2167 * nt.c (mswindows_sigpause):
2168 * nt.c (mswindows_raise):
2169 * nt.c (timer_proc):
2171 * ntproc.c (find_child_console):
2172 * ntproc.c (sys_kill):
2174 * print.c (std_handle_out_external):
2175 * process-nt.c (find_child_console):
2176 * process-nt.c (send_signal_the_95_way):
2177 * process-nt.c (ensure_console_window_exists):
2178 * process-nt.c (nt_create_process):
2180 rename msw_ to mswindows_ for consistency with general convention.
2184 include nt.h, not syswindows.h.
2186 * nt.c (mswindows_fstat):
2187 * nt.c (mswindows_stat):
2188 prefix mswindows_ instead of attempting to directly override the
2189 library functions. fix declarations.
2192 include syswindows.h. move some sysdep.h stuff here.
2195 include syswindows.h, not <windows.h>.
2203 * sysdep.c (sys_fstat):
2204 * sysdep.c (sys_stat):
2205 call mswindows versions when appropriate.
2208 move mswin decls to nt.h.
2211 add long comment describing appropriate use of the various windows
2214 2000-06-11 Ben Wing <ben@xemacs.org>
2216 * device-x.c: Correct doc string for sixth arg of x-get-resource.
2218 2000-06-10 Ben Wing <ben@xemacs.org>
2220 * Makefile.in.in (release):
2221 Correction to make sure xemacs.exe always dumped when correct.
2225 [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
2227 * buffer.c (set_buffer_internal):
2228 [[[[2]]]]: Remove HAVE_FEP code.
2230 * buffer.c (init_initial_directory):
2234 [[[[4]]]]: limits.h standardly included in lisp.h; remove from
2238 * callproc.c (call_process_cleanup):
2239 * callproc.c (Fold_call_process_internal):
2240 * callproc.c (child_setup):
2241 * callproc.c (getenv_internal):
2242 * callproc.c (init_callproc):
2243 * callproc.c (vars_of_callproc):
2244 [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
2245 __CYGWIN32__ -> CYGWIN.
2246 DOS_NT -> WIN32_NATIVE.
2247 Remove MSDOS support/references, converting to WIN32_NATIVE
2249 __MINGW32__ -> MINGW.
2250 Fix windows.h includes.
2251 Remove bogus HAVE_NTGUI.
2257 mswindows_message_outputted added for use in allowing startup
2258 errors on the console to be seen.
2260 * console-msw.c (msw_ensure_console_allocated):
2261 * console-msw.c (msw_output_console_string):
2262 * console-msw.c (DHEADER):
2263 * console-msw.c (DOPAQUE_DATA):
2264 * console-msw.c (DEVENT):
2265 * console-msw.c (DCONS):
2266 * console-msw.c (DCONSCDR):
2267 * console-msw.c (DSTRING):
2268 * console-msw.c (DVECTOR):
2269 * console-msw.c (DSYMBOL):
2270 * console-msw.c (DSYMNAME):
2273 * console-stream.c (stream_init_console):
2274 Fix text/binary problems.
2277 * device-msw.c (mswindows_finish_init_device):
2278 * device-msw.c (mswindows_delete_device):
2281 * device.c (handle_asynch_device_change):
2285 * dgif_lib.c (DGifOpenFileName):
2286 * dgif_lib.c (DGifOpenFileHandle):
2287 * dgif_lib.c (DGifGetLine):
2288 * dgif_lib.c (DGifGetPixel):
2289 Added config.h/lisp.h, fix up includes.
2296 * dired.c (file_name_completion):
2297 * dired.c (Ffile_attributes):
2298 * dired.c (syms_of_dired):
2302 * dumper.c (pdump_file_unmap):
2303 * dumper.c (pdump_load):
2307 * editfns.c (Ftemp_directory):
2308 * editfns.c (user_login_name):
2309 * editfns.c (Fuser_real_login_name):
2310 * editfns.c (get_home_directory):
2313 * elhash.c (finish_marking_weak_hash_tables):
2314 [[[[5]]]]: Fix GCC warnings.
2317 * emacs.c (mswindows_handle_hardware_exceptions):
2318 * emacs.c (make_arg_list_1):
2320 * emacs.c (Fkill_emacs):
2321 * emacs.c (Fdump_emacs):
2323 Fix problems with nested crashes, add long comment.
2325 * event-Xt.c (init_event_Xt_late):
2329 * event-msw.c (mswindows_dde_callback):
2330 * event-msw.c (mswindows_handle_sticky_modifiers):
2331 * event-msw.c (mswindows_wnd_proc):
2335 * events.c (character_to_event):
2339 * fileio.c (Ffile_name_directory):
2340 * fileio.c (Ffile_name_nondirectory):
2341 * fileio.c (directory_file_name):
2342 * fileio.c (Fexpand_file_name):
2343 * fileio.c (Fsubstitute_in_file_name):
2344 * fileio.c (Ffile_name_absolute_p):
2345 * fileio.c (check_executable):
2346 * fileio.c (Ffile_readable_p):
2347 * fileio.c (Ffile_accessible_directory_p):
2348 * fileio.c (Ffile_modes):
2349 * fileio.c (Funix_sync):
2350 * fileio.c (vars_of_fileio):
2353 [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
2355 Expand getdefdir defn.
2356 Fix bogus rename() comment.
2358 [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc. Attempt
2359 to use standard XEmacs include files, e.g. sysfile.h, rather
2360 than system-specific includes.
2366 * frame.c (vars_of_frame):
2370 * getloadavg.c (getloadavg):
2372 #ifdef XEMACS not defined on Cygwin. Remove this; no need for it.
2373 (We don't use it elsewhere in the code; just add a comment.)
2380 * glyphs-msw.c (mswindows_resource_instantiate):
2383 * glyphs-x.c (x_native_layout_instantiate):
2386 * gui-msw.c (Fmswindows_shell_execute):
2395 * lread.c (locate_file_in_directory_mapper):
2402 * mem-limits.h (get_lim_data):
2414 * nt.c (rva_to_section):
2415 * nt.c (mswindows_executable_type):
2417 Fix closedir() defn.
2420 [[[[8]]]]: *_OK defs moved to sysfile.h.
2429 * print.c (std_handle_out_external):
2433 * process-nt.c (nt_create_process):
2435 try to fix process quoting somewhat.
2437 * process-unix.c (unix_create_process):
2441 * process.c (vars_of_process):
2448 * realpath.c (xrealpath):
2451 * redisplay-tty.c (init_tty_for_redisplay):
2461 * sheap.c (more_static_core):
2462 * sheap.c (report_sheap_usage):
2466 * signal.c (alarm_signal):
2473 * strftime.c (zone_name):
2476 * symsinit.h (init_sunpro):
2480 commctrl.h not in Cygwin b20.1.
2484 * sysdep.c (sys_subshell):
2485 * sysdep.c (init_baud_rate):
2486 * sysdep.c (emacs_get_tty):
2487 * sysdep.c (emacs_set_tty):
2488 * sysdep.c (tty_init_sys_modes_on_device):
2489 * sysdep.c (init_system_name):
2490 * sysdep.c (sys_open):
2491 * sysdep.c (interruptible_open):
2492 * sysdep.c (sys_fopen):
2493 * sysdep.c (sys_mkdir):
2494 * sysdep.c (sys_rename):
2495 * sysdep.c (get_process_times_1):
2502 * sysdir.h (DIRENTRY_NONEMPTY):
2505 * sysdll.c (dll_init):
2511 added text/binary defs.
2517 * sysproc.h (EDESTADDRREQ):
2518 * sysproc.h (poll_fds_for_input):
2535 Always define WIN32_LEAN_AND_MEAN.
2537 * unexcw.c (unexec):
2541 * unexec.c (copy_text_and_data):
2542 * unexec.c (adjust_lnnoptrs):
2546 * unexnt.c (_start):
2549 2000-06-07 Ben Wing <ben@xemacs.org>
2551 * mule-mcpath.c, mule-mcpath.h: Removed. Old, crufty code that
2552 was used only as a model. We've long since extracted any useful
2553 logic or code out of this. (I just did an exhaustive search.)
2555 * s\msdos.h: Removed.
2557 * s\windows95.h: Removed.
2559 2000-06-10 Ben Wing <ben@xemacs.org>
2563 Don't use extern with fun defs.
2567 Remove nt\inc include.
2568 Remove getdisk, getdefdir. (The former is unused, the latter
2569 expanded in fileio.h.)
2572 * s\windowsnt.h (WIN32_NATIVE):
2573 * s\windowsnt.h (HAVE_STRCASECMP):
2575 Add long comment about preprocessor changes.
2576 Remove getdisk, getdefdir. (The former is unused, the latter
2577 expanded in fileio.h.)
2579 2000-06-10 Ben Wing <ben@xemacs.org>
2588 Remove bogus/unused NO_SOCK_SIGIO.
2590 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr>
2592 * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
2595 2000-06-04 Mike Sperber <mike@xemacs.org>
2597 * casetab.c (set_case_table): For `set-standard-case-table',
2598 actually deposit the new case tables where the rest of XEmacs can
2601 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org>
2603 * data.c (Faset): Don't cast XCHAR() to unsigned char.
2605 2000-06-05 Ben Wing <ben@xemacs.org>
2607 * callproc.c (child_setup): Don't do close_load_descs() under
2608 MS Windows. Put in a comment explaining why.
2610 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com>
2612 * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
2613 Toolkit shell" which breaks `kill-compilation' on Windows NT
2614 native, retaining STDERR handling improvements.
2616 2000-06-01 Andreas Jaeger <aj@suse.de>
2618 * s/s390.h: Support for S390, based on a patch by Martin
2619 Schwidefsky <schwidefsky@de.ibm.com>.
2621 2000-05-30 Andy Piper <andy@xemacs.org>
2623 * window.c (allocate_window):
2624 (make_dummy_parent):
2625 (Fset_window_configuration): use new hashtable type.
2627 * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
2628 (struct image_instantiator_methods):
2629 (struct Lisp_Image_Instance): make instance geometry signed.
2631 * glyphs.c (instantiate_image_instantiator):
2632 (image_instance_query_geometry):
2633 (image_instance_layout):
2634 (image_instance_layout):
2635 (query_string_geometry):
2636 (text_query_geometry):
2637 (image_instantiate):
2638 (image_instantiate):
2639 (cache_subwindow_instance_in_frame_maybe):
2640 (subwindow_query_geometry): make instance geometry signed.
2642 * glyphs-widget.c (widget_query_geometry):
2644 (button_query_geometry):
2645 (tree_view_query_geometry):
2646 (tab_control_query_geometry):
2647 (layout_query_geometry):
2649 (native_layout_layout): make instance geometry signed.
2651 2000-05-29 Olivier Galibert <galibert@pobox.com>
2653 * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
2656 * general.c (syms_of_general): Add Qfull_assoc symbol.
2658 * data.c (finish_marking_weak_lists): Mark full-assoc lists
2660 (decode_weak_list_type): Decode full-assoc type.
2661 (encode_weak_list_type): Encode full-assoc type.
2662 (Fmake_weak_list): Update doc string.
2664 2000-05-30 Andy Piper <andy@xemacs.org>
2666 * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
2668 * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
2669 (decode_hash_table_weakness): ditto.
2670 (Fhash_table_weakness): ditto.
2671 (Fhash_table_type): ditto.
2672 (finish_marking_weak_hash_tables): ditto.
2673 (hash_table_weakness_validate): ditto.
2674 (syms_of_elhash): ditto.
2676 2000-05-28 Martin Buchholz <martin@xemacs.org>
2678 * XEmacs 21.2.34 is released.
2680 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
2682 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
2684 (updating_line_start_cache): Gone.
2685 (regenerate_window): Replace resetting of VERTICAL_CLIP by
2686 generic code to force a minimum of 1 line laid out in the
2689 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
2691 * glyphs.c (instantiate_image_instantiator): Check for initialized
2692 height & width no longer special cases IMAGE_NOTHING.
2693 (nothing_instantiate): Set height and width of instance.
2695 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
2697 * unexelf.c (unexec): Search for ".data" section.
2698 Initialize new_data2_offset from old_data_index.
2699 Remove redundant check for ElfW.
2701 2000-05-23 Andy Piper <andy@xemacs.org>
2703 * glyphs.c (get_image_instantiator_governing_domain): allow more
2704 specific domains as the governing domain rather than expecting an
2705 exact match. This fixes problems with layouts.
2707 2000-05-22 Andy Piper <andy@xemacs.org>
2709 * redisplay-output.c (compare_runes): check for non-images
2711 * glyphs.c (set_glyph_dirty_p): ditto.
2712 (update_glyph_cachel_data): ditto.
2714 * glyphs-widget.c (layout_post_instantiate): ditto.
2715 (layout_post_instantiate): ditto.
2717 * event-msw.c (mswindows_wnd_proc): warning removal.
2719 2000-05-12 Craig Lanning <CraigL@DyCon.com>
2721 * s\mingw32.h: Added #undef for CLASH_DETECTION.
2723 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
2725 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
2727 * nt.c (rva_to_section): mingw32 needs rva_to_section.
2728 (mswindows_executable_type): mingw32 now has enough headers for
2731 2000-05-20 Andy Piper <andy@xemacs.org>
2733 * console-msw.c (mswindows_output_last_error): ; -> ,
2735 2000-05-12 Andy Piper <andy@xemacs.org>
2737 * console-msw.c (FROB): compare ints with ints.
2739 2000-05-11 Andy Piper <andy@xemacs.org>
2741 * glyphs-x.c (x_finalize_image_instance): make minimal build
2744 2000-05-20 Ben Wing <ben@xemacs.org>
2747 * event-Xt.c (vars_of_event_Xt):
2748 move modifier-keys-are-sticky to event-stream.c.
2751 * event-msw.c (mswindows_enqueue_mouse_button_event):
2752 * event-msw.c (key_needs_default_processing_p):
2753 * event-msw.c (XEMSW_LCONTROL):
2754 * event-msw.c (mswindows_handle_sticky_modifiers):
2755 * event-msw.c (FROB):
2756 * event-msw.c (clear_sticky_modifiers):
2757 * event-msw.c (output_modifier_keyboard_state):
2758 * event-msw.c (output_alt_keyboard_state):
2759 * event-msw.c (mswindows_wnd_proc):
2760 * event-msw.c (mswindows_modifier_state):
2761 * event-msw.c (emacs_mswindows_handle_magic_event):
2762 implement sticky modifiers.
2765 * event-stream.c (vars_of_event_stream):
2766 move modifier-keys-are-sticky here.
2772 implement map-range-table.
2775 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
2777 * redisplay-tty.c (reset_tty_modes):
2778 (tty_redisplay_shutdown): Adjust argument type to
2779 tty_frame_output_end.
2781 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
2783 * eval.c (Fbacktrace): Don't output a line with only right
2786 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
2788 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
2789 (Fpq_reset_poll): Ditto.
2791 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
2793 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
2795 2000-05-16 Ben Wing <ben@xemacs.org>
2798 * buffer.c (dfc_convert_to/from_internal_format):
2799 * buffer.c (reinit_vars_of_buffer):
2800 Fix conversion functions to allow reentrancy.
2803 * console-msw.c (mswindows_output_last_error):
2804 New fun, generally useful -- output a human-readable
2805 version of GetLastError() on the console.
2808 * console-msw.h (struct mswindows_frame):
2809 Changes for DeferWindowPos. Declare mswindows_output_last_error().
2811 * console-stream.c (stream_output_begin):
2812 * console-stream.c (stream_output_end):
2813 * console-stream.c (stream_output_vertical_divider):
2814 * console-stream.c (stream_clear_region):
2815 * console-stream.c (stream_flash):
2816 * console-stream.c (console_type_create_stream):
2817 Delete blank stream methods, not needed.
2819 * console.h (struct console_methods):
2820 Split begin/end methods into window and frame.
2823 * event-msw.c (mswindows_handle_paint):
2824 * event-msw.c (output_alt_keyboard_state):
2825 * event-msw.c (mswindows_wnd_proc):
2826 * event-msw.c (vars_of_event_mswindows):
2827 Comment about problems with ignored-expose.
2828 Define mswindows-debug-events; not really implemented.
2830 * frame-msw.c (mswindows_init_frame_1):
2834 * glyphs-msw.c (begin_defer_window_pos):
2835 * glyphs-msw.c (mswindows_unmap_subwindow):
2836 * glyphs-msw.c (mswindows_map_subwindow):
2837 * glyphs-msw.c (mswindows_resize_subwindow):
2838 Use DeferWindowPos to reduce flashing when mapping/unmapping.
2840 * glyphs.c (make_image_instance_1):
2843 * gutter.c (Fredisplay_gutter_area):
2844 Use new begin/end methods.
2846 * lisp.h (Dynarr_new2):
2850 * redisplay-msw.c (mswindows_frame_output_begin):
2851 * redisplay-msw.c (mswindows_frame_output_end):
2852 * redisplay-msw.c (console_type_create_redisplay_mswindows):
2853 New begin/end methods -- handle DeferWindowPos.
2855 * redisplay-output.c (redisplay_move_cursor):
2856 * redisplay-output.c (redraw_cursor_in_window):
2857 * redisplay-output.c (redisplay_update_line):
2858 * redisplay-output.c (redisplay_output_window):
2859 New begin/end methods.
2862 * redisplay-tty.c (tty_frame_output_begin):
2863 * redisplay-tty.c (tty_frame_output_end):
2864 * redisplay-tty.c (console_type_create_redisplay_tty):
2865 New begin/end methods.
2868 * redisplay-x.c (x_window_output_begin):
2869 * redisplay-x.c (x_window_output_end):
2870 * redisplay-x.c (console_type_create_redisplay_x):
2871 New begin/end methods.
2873 * redisplay.c (redisplay_frame):
2874 * redisplay.c (Fredisplay_echo_area):
2875 New begin/end methods.
2876 use MAYBE_DEVMETH for clear_frame; it may not exist.
2878 * window.h (WINDOW_XFRAME):
2879 WINDOW_XFOO macros -- get locale and decode struct pointer.
2882 2000-05-12 Ben Wing <ben@xemacs.org>
2885 * emacs.c (ensure_no_quitting_from_now_on):
2886 * emacs.c (fatal_error_signal):
2887 * emacs.c (mswindows_handle_hardware_exceptions):
2889 * emacs.c (Fkill_emacs):
2890 * emacs.c (shut_down_emacs):
2891 * emacs.c (assert_failed):
2892 various improvements in fatal error handling.
2895 move preparing_for_armageddon to emacs.c.
2898 declare fatal_error_in_progress.
2901 * print.c (std_handle_out_external):
2902 * print.c (std_handle_out_va):
2903 * print.c (stderr_out):
2904 * print.c (stdout_out):
2905 use console under mswin when no standard output.
2906 don't do code conversion during fatal error.
2908 * scrollbar.c (Fscrollbar_page_up):
2909 * scrollbar.c (Fscrollbar_page_down):
2910 fix missing else. reindent.
2912 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
2916 * glyphs.h (GLYPH_CACHEL_DESCENT):
2917 (GLYPH_CACHEL_DESCENT):
2918 (GLYPH_CACHEL_DESCENT):
2919 * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
2920 used in case these are inline functions.
2921 Use more absurd values to error check.
2923 include window.h for error check functions.
2925 2000-05-11 Ben Wing <ben@xemacs.org>
2927 * cmdloop.c (Freally_early_error_handler):
2928 Display message box under windows; otherwise, message will disappear
2929 before it can be viewed.
2932 * console-msw.c (Fmswindows_message_box):
2933 * console-msw.c (FROB):
2934 * console-msw.c (syms_of_console_mswindows):
2935 Define new fun `mswindows-message-box'.
2936 #### I will merge this into `popup-dialog-box'; just give me
2940 * general.c (syms_of_general):
2941 Some new symbols used in `mswindows-message-box'.
2944 * glyphs.c (Fset_image_instance_property):
2945 put warning in this fun.
2948 * glyphs.h (GLYPH_CACHEL_WIDTH):
2949 * glyphs.h (GLYPH_CACHEL_ASCENT):
2950 * glyphs.h (GLYPH_CACHEL):
2951 * glyphs.h (GLYPH_CACHEL_GLYPH):
2952 define error-checking versions to try to catch a bug i've seen --
2953 redisplay gets in an infinite loop because the glyph width of the
2954 continuation glyph is 65535.
2957 Extern message-box stuff.
2959 * window.c (allocate_window):
2960 * window.c (make_dummy_parent):
2961 * window.c (Fset_window_configuration):
2962 Use EQUAL not EQ for subwindow caches to make them work a bit
2963 better. (Something is still very broken.)
2966 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
2968 * glyphs.c (image_instantiate): Suppress gcc warnings.
2969 (Fmake_image_instance): Fix doc string.
2970 * specifier.c (Fmake_specifier): Ditto.
2972 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
2974 * paths.h.in (PATH_LOCK): Removed.
2975 * config.h.in (LOCKDIR_USER_DEFINED): Removed.
2976 * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
2978 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
2980 * fns.c (Ffeaturep): Update e-mail address in doc-string.
2981 Document (featurep '(and xemacs 21.02)).
2983 2000-05-09 Ben Wing <ben@xemacs.org>
2985 * buffer.c (complex_vars_of_buffer):
2986 update modeline-format doc.
2989 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
2992 timeline of all released versions of Emacs, for use in creating
2993 authorship comments and in synching up.
2995 * glyphs-widget.c (image_instantiator_buttons):
2996 * glyphs-widget.c (image_instantiator_edit_fields):
2997 * glyphs-widget.c (image_instantiator_combo_box):
2998 * glyphs-widget.c (image_instantiator_scrollbar):
2999 * glyphs-widget.c (image_instantiator_progress_guage):
3000 * glyphs-widget.c (image_instantiator_tree_view):
3001 * glyphs-widget.c (image_instantiator_tab_control):
3002 * glyphs-widget.c (image_instantiator_labels):
3003 * glyphs-widget.c (image_instantiator_layout):
3004 * glyphs-widget.c (image_instantiator_native_layout):
3005 rename decode_domain method to governing_domain.
3008 * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
3009 * glyphs.c (add_entry_to_device_ii_format_list):
3010 make sure we don't put an entry more than once into the list.
3011 * glyphs.c (check_instance_cache_mapper):
3012 *************************************************************
3013 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
3015 *************************************************************
3016 * glyphs.c (get_image_instantiator_governing_domain):
3017 clean up, expand on new concept of governing domain.
3018 * glyphs.c (instantiate_image_instantiator):
3019 * glyphs.c (allocate_image_instance):
3020 use governing_domain instead of cache_domain in naming.
3021 * glyphs.c (Fvalid_image_instance_type_p): fix docs.
3022 * glyphs.c (make_image_instance_1):
3023 * glyphs.c (Fmake_image_instance):
3024 allow for any domain (not just device), and process the
3025 governing domain correctly. very big doc fix.
3026 * glyphs.c (Fimage_instance_domain):
3027 new primitive, to retrieve the governing domain of an image instance.
3028 * glyphs.c (image_instantiate):
3029 use new governing_domain stuff. this fixes a crash you could get
3030 by instantiating certain widget glyphs in frame locales. (should
3031 signal an error instead of crashing.)
3032 * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
3033 * glyphs.c (Fglyphp): clean up doc.
3034 * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
3035 * glyphs.c (syms_of_glyphs):
3036 declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
3037 * glyphs.c (image_instantiator_format_create): add some comments about
3039 * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
3040 for current-display-table. (Apparently Hrjove implemented in 1998 a
3041 design I wrote up in 1996, but didn't update the doc string.)
3043 * glyphs.h: clean up a doc string.
3044 * glyphs.h (governing_domain):
3045 * glyphs.h (struct image_instantiator_methods):
3046 changes for governing_domain stuff.
3049 * gutter.c (Fgutter_specifier_p):
3050 * gutter.c (Fgutter_size_specifier_p):
3051 * gutter.c (Fgutter_visible_specifier_p):
3053 * objects.c (Fcolor_specifier_p):
3054 * objects.c (Ffont_specifier_p):
3055 * objects.c (Fface_boolean_specifier_p):
3056 doc strings moved to make-*-specifier.
3058 * redisplay.c (add_disp_table_entry_runes_1):
3059 * redisplay.c (generate_fstring_runes):
3060 * redisplay.c (screen):
3061 add random comments and doc strings.
3064 * specifier.c (Fmake_specifier):
3065 major overhaul of this doc string.
3067 * specifier.c (Fvalid_specifier_domain_p):
3068 comment about the bogosity of image instances being domains.
3069 * specifier.c (decode_domain):
3070 now non-static, used in glyphs.c.
3071 * specifier.c (specifier_instance):
3072 comment about the bogosity of image instances being domains.
3073 * specifier.c (Fgeneric_specifier_p):
3074 move doc string to make-generic-specifier.
3075 * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
3079 * specifier.h (DOMAIN_FRAME):
3080 * specifier.h (DOMAIN_LIVE_P):
3081 * specifier.h (DOMAIN_XDEVICE):
3083 add comments about problems with these macros.
3084 prototype for decode_domain.
3087 * toolbar.c (Ftoolbar_specifier_p):
3088 move doc string to `make-toolbar-specifier'.
3090 * window.c (window_unmap_subwindows_cache_mapper):
3091 *************************************************************
3092 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
3094 *************************************************************
3096 2000-05-09 Andy Piper <andy@xemacs.org>
3098 * glyphs.h: declare reset_frame_subwindow_instance_cache.
3100 * window.c (Fset_window_configuration): reset the frame subwindow
3101 cache and re-initialize the window subwindow caches.
3103 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
3105 2000-05-09 Ben Wing <ben@xemacs.org>
3107 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
3110 2000-04-26 Mike Woolley <mike@bulsara.com>
3112 * ntheap.c: Changed recreate_heap to limit the amount reserved
3113 for the heap to that which is actually available. Also now
3114 displays a message box (with some dignostics) in the event that
3115 it still can't start.
3117 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
3119 * callproc.c (Fold_call_process_internal): GCPRO path
3121 2000-05-08 Jan Vroonhof <jan@xemacs.org>
3123 Patch by Bill Perry.
3125 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
3126 back data instead of #ifdef.
3127 (Fscrollbar_page_down): ditto.
3129 2000-05-07 Ben Wing <ben@xemacs.org>
3132 Kludge for defining Qmswindows_tstr.
3135 * nt.c (open_input_file):
3136 * nt.c (open_output_file):
3137 * nt.c (rva_to_section):
3138 * nt.c (mswindows_executable_type):
3139 Move all memory-mapped-file routines here (some were in unexnt.c,
3140 which is bad because they are used by process-nt.c, and unexnt
3141 won't be around when portable dumping). Synched the above routines
3145 Removed ifdef'd out bogus code.
3146 Fixed some prototypes.
3149 * nt.h (OFFSET_TO_RVA):
3150 * nt.h (RVA_TO_OFFSET):
3151 * nt.h (RVA_TO_PTR):
3152 Moved the memory-mapped-file structures, macros and prototypes
3153 here, to parallel nt.c. ntheap.h should really be removed
3154 entirely, and it's a non-portable-dumper specific file.
3156 * ntheap.h (round_to_next):
3157 Moved the memory-mapped-file structures, macros and prototypes
3160 * ntproc.c (compare_env):
3161 Moved rva_to_section and mswindows_executable_type to nt.c.
3162 Moved compare_env to process-nt.c.
3163 ntproc.c will die, one day.
3165 * ntproc.c (sys_spawnve):
3166 Account for win32_ -> mswindows_.
3169 * process-nt.c (struct nt_process_data):
3170 * process-nt.c (ensure_console_window_exists):
3171 * process-nt.c (compare_env):
3172 * process-nt.c (nt_create_process):
3173 * process-nt.c (nt_kill_process_by_pid):
3174 * process-nt.c (syms_of_process_nt):
3175 * process-nt.c (vars_of_process_nt):
3176 Introduce variable `mswindows-quote-process-args', from FSF 20.6.
3177 Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
3178 changes). Eliminate our old `nt-quote-process-args' mechanism.
3179 Synch up nt_create_process with FSF 20.6 sys_spawnve.
3180 Move compare_env here from ntproc.c.
3182 * process.c (Fprocess_send_region):
3183 Takes an optional fourth argument, BUFFER, which should fix some
3184 problems with call-process.
3187 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
3190 Move ICC_BAR_CLASSES to syscommctrl.h.
3191 Add preliminary macros for MSWindows/Mule. More to come.
3194 * unexnt.c (unexec):
3195 open_output_file moved to nt.c.
3198 2000-05-05 Andy Piper <andy@xemacs.org>
3200 * window.c (window_unmap_subwindows_cache_mapper): remove the dead
3201 instance from the frame cache also since GC may catch up too late
3202 to make frame deletion sane.
3204 2000-05-04 Andy Piper <andy@xemacs.org>
3206 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
3207 (x_finalize_image_instance): ungcpro on deletion.
3209 * glyphs.c (image_instantiator_format_create): give pointers a
3210 query geometry method so that the geometry is at least set.
3212 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
3213 initialize layouts if using widgets.
3215 2000-05-03 Andy Piper <andy@xemacs.org>
3217 * nt.c: remove bogus reference to sysmmsystem.h
3219 * gui-x.c (popup_selection_callback): fix no selection abort.
3221 2000-05-02 Andy Piper <andy@xemacs.org>
3223 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
3224 (mswindows_widget_instantiate): ditto.
3226 * glyphs-widget.c (initialize_widget_image_instance): initialize
3228 (widget_instantiate): cope with children and items in the same
3231 * glyphs.c (mark_image_instance): cope with children as a first
3233 (image_instance_equal): ditto.
3234 (image_instance_hash): ditto.
3235 (image_instance_changed): ditto.
3237 2000-04-30 Andy Piper <andy@xemacs.org>
3239 * glyphs.c (subwindow_query_geometry): new function. Return some
3241 (subwindow_instantiate): don't assign dimensions if none have been
3243 (image_instantiator_format_create): add subwindow_query_geometry.
3244 (print_image_instance): cope with layouts as widgets.
3246 2000-04-29 Andy Piper <andy@xemacs.org>
3248 * frame.c (delete_frame_internal): call
3249 free_frame_subwindow_instance_cache so that all subwindows are
3250 finalized before their parent.
3251 (mark_frame): remove subwindow_cachels.
3252 (Fmake_frame): remove subwindow_cachel manipulation.
3253 (allocate_frame_core): subwindow_instance_cache is a weak list.
3254 (delete_frame_internal): set subwindow_instance_cache to nil.
3256 * glyphs-msw.c (mswindows_finalize_image_instance): make double
3258 (mswindows_finalize_image_instance): use the device
3259 not the domain as the domain may have died already.
3261 * glyphs-x.c (x_finalize_image_instance): ditto.
3262 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
3265 * redisplay-output.c (redisplay_unmap_subwindows): update for
3266 subwindow instance cache as a weak list.
3267 (redisplay_unmap_subwindows_maybe): ditto.
3268 (redisplay_unmap_subwindows_except_us): ditto.
3270 * glyphs.c (unmap_subwindow): error checking will check the domain
3271 so don't deal with it here. Don't use cachels anymore.
3272 (map_subwindow): ditto.
3273 (update_subwindow_cachel_data): remove old accessor names.
3274 (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
3275 (Fresize_subwindow): don't update cachel.
3276 (mark_subwindow_cachels):
3277 (update_subwindow_cachel_data):
3278 (add_subwindow_cachel):
3279 (get_subwindow_cachel_index):
3280 (update_subwindow_cachel):
3281 (reset_subwindow_cachels):
3282 (mark_subwindow_cachels_as_not_updated): deleted.
3283 (cache_subwindow_instance_in_frame_maybe): new function. Add a
3284 subwindow instance to the frame cache.
3285 (find_matching_subwindow): update for subwindow instance cache as
3287 (update_widget_instances): ditto.
3288 (image_instance_type_to_mask):inlined.
3289 (free_frame_subwindow_instance_cache): new function. finalize all
3290 subwindows that are instantiated.
3292 * glyphs.h (struct Lisp_Image_Instance): add display_data instead
3293 of cachel information.
3294 (IMAGE_INSTANCE_DISPLAY_X):
3295 (IMAGE_INSTANCE_DISPLAY_Y):
3296 (IMAGE_INSTANCE_DISPLAY_WIDTH):
3297 (IMAGE_INSTANCE_DISPLAY_HEIGHT):
3298 (XIMAGE_INSTANCE_DISPLAY_X):
3299 (XIMAGE_INSTANCE_DISPLAY_Y):
3300 (XIMAGE_INSTANCE_DISPLAY_WIDTH):
3301 (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
3302 remove subwindow_cachel structure and function references.
3303 (image_instance_type_to_mask): inline from glyphs.c
3305 * redisplay.c (redisplay_frame): remove subwindow_cachel
3308 * frame.h (struct frame): remove subwindow_cachels.
3309 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
3311 * frameslots.h: add subwindow_instance_cache.
3313 * window.c (replace_window): check subwindow cache of replacement.
3314 (window_unmap_subwindows_cache_mapper):
3315 (window_unmap_subwindows): new functions. Unmap all subwindows
3316 cached on this window.
3317 (mark_window_as_deleted): unmap all subwindows.
3319 2000-04-27 Andy Piper <andy@xemacs.org>
3321 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
3323 * glyphs-widget.c (widget_layout): return something.
3324 (layout_layout): return something. Fail if not initialized.
3325 (layout_query_geometry): ditto.
3326 (image_instantiator_native_layout): new function. Initialized the
3328 (widget_instantiate): don't do layout stuff here.
3330 * glyphs.c (instantiate_image_instantiator): reorded calling or
3331 instantiate and post_instantiate with layout in between.
3332 (image_instance_layout): be more selective about deciding whether
3333 the layout has been done or not.
3335 * glyphs.h (struct image_instantiator_methods): return a value
3338 2000-04-26 Andy Piper <andy@xemacs.org>
3340 * glyphs.c (allocate_image_instance): make initial width and
3341 height unspecified. Set initialized to 0.
3343 * syscommctrl.h new file. Encapsulates commctrl.h.
3345 * syswindows.h new file. Encapsulates windows.h.
3347 * ntplay.c: use new syswindows.h and syscommctrl.h header.
3349 * console-msw.h: ditto.
3351 * redisplay-tty.c (tty_output_display_block): remove layout references.
3353 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
3354 window handle rather than just the frame.
3356 * glyphs.c (mark_image_instance): remove layout references.
3357 (print_image_instance): ditto.
3358 (image_instance_equal): ditto.
3359 (image_instance_hash): ditto.
3360 (decode_image_instance_type): ditto.
3361 (encode_image_instance_type): ditto.
3362 (image_instantiate): ditto.
3363 (allocate_glyph): ditto.
3364 (Fimage_instance_height): ditto.
3365 (Fimage_instance_width): ditto.
3366 (update_subwindow): ditto.
3368 * redisplay-x.c (x_output_display_block): recode for layouts as
3371 * redisplay-output.c (redisplay_output_layout): recode for layouts
3373 (compare_runes): remove layout references.
3375 * redisplay-msw.c (mswindows_output_display_block): recode for
3378 * glyphs-widget.c (image_instantiator_layout): remove
3379 layout_possible_dest_types.
3380 (layout_possible_dest_types): deleted.
3382 * glyphs.h (image_instance_type): remove layout references.
3383 (struct Lisp_Image_Instance): ditto. Add initialized flag.
3384 (IMAGE_INSTANCE_INITIALIZED): new accessor.
3385 (XIMAGE_INSTANCE_INITIALIZED): ditto.
3387 2000-04-25 Andy Piper <andy@xemacs.org>
3389 * glyphs-widget.c (image_instantiator_buttons):
3390 (image_instantiator_edit_fields):
3391 (image_instantiator_combo_box):
3392 (image_instantiator_scrollbar):
3393 (image_instantiator_progress_guage):
3394 (image_instantiator_tree_view):
3395 (image_instantiator_tab_control):
3396 (image_instantiator_labels):
3397 (image_instantiator_layout): call default post_instantiate method.
3398 (widget_post_instantiate): new function. Simply lays out the
3401 * glyphs.h (struct image_instantiator_methods): add
3402 post_instantiate method.
3404 * glyphs.c (instantiate_image_instantiator): add post_instantiate
3407 2000-04-23 Andy Piper <andy@xemacs.org>
3409 * glyphs.h (struct image_instantiator_methods): add
3410 decode_domain_method.
3411 (struct Lisp_Image_Instance): remove subwindow frame - it can be
3412 derived from the domain.
3413 (IMAGE_INSTANCE_FRAME): new accessor.
3414 (XIMAGE_INSTANCE_FRAME): ditto.
3416 * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
3417 instead of _SUBWINDOW_FRAME.
3418 (finalize_image_instance): ditto.
3419 (Fimage_instance_foreground): ditto.
3420 (Fimage_instance_background): ditto.
3421 (image_instantiate): ditto.
3422 (update_subwindow_cachel): ditto.
3423 (update_subwindow): ditto.
3424 (unmap_subwindow): ditto.
3425 (map_subwindow): ditto
3426 (subwindow_instantiate): ditto.
3427 * glyphs-msw.c (mswindows_update_widget): ditto.
3428 (mswindows_progress_gauge_instantiate): ditto.
3429 (mswindows_tab_control_update): ditto.
3430 * glyphs-x.c (x_update_widget): ditto.
3431 (x_widget_instantiate): ditto.
3432 (x_tab_control_instantiate): ditto.
3433 (x_tab_control_update): ditto.
3434 * event-msw.c (mswindows_wnd_proc): ditto
3436 * glyphs-widget.c (image_instantiator_layout): use
3437 subwindow_decode_domain.
3438 (image_instantiator_buttons): ditto.
3439 (image_instantiator_edit_fields): ditto.
3440 (image_instantiator_combo_box): ditto.
3441 (image_instantiator_scrollbar): ditto.
3442 (image_instantiator_progress_guage): ditto.
3443 (image_instantiator_tree_view): ditto.
3444 (image_instantiator_tab_control): ditto.
3445 (image_instantiator_labels): ditto.
3446 (image_instantiator_layout): ditto.
3448 * glyphs.c: add instance error checking to many functions.
3449 (instantiate_image_instantiator): decode device from cache_domain.
3450 (image_instantiate): partially rewrite by using
3451 decode_image_instantiator_domain to determine what domain the
3452 instance needs to be cached in.
3453 (decode_image_instantiator_domain): new function. Determine what
3454 domain the image needs to be cached in.
3455 (check_window_subwindow_cache): new error checking function.
3456 (check_instance_cache_mapper): ditto.
3457 (check_image_instance_structure): ditto.
3458 (subwindow_decode_domain): new function. Encodes a window as a
3459 subwindow's cache domain.
3460 (image_instantiator_format_create): use it for text and
3463 2000-04-21 Andy Piper <andy@xemacs.org>
3465 * glyphs.c (image_instance_device): new function.
3466 (image_instance_frame): new function.
3467 (image_instance_window): new function.
3468 (image_instance_live_p): new function.
3470 * window.c (mark_window_as_deleted): reset the subwindow_instance_
3473 * glyphs.h (struct Lisp_Image_Instance): device->domain.
3474 (IMAGE_INSTANCE_DOMAIN): new accessor.
3475 (XIMAGE_INSTANCE_DOMAIN): ditto.
3477 * glyphs-x.c (x_finalize_image_instance): device->domain.
3479 * glyphs-msw.c (init_image_instance_geometry): device->domain.
3480 (mswindows_finalize_image_instance): ditto.
3482 * glyphs-eimage.c (jpeg_instantiate): device->domain.
3483 (gif_instantiate): ditto.
3484 (png_instantiate): ditto.
3485 (tiff_instantiate): ditto.
3487 * glyphs.c (instantiate_image_instantiator): use domain rather
3489 (mark_image_instance): device -> domain.
3490 (print_image_instance): ditto.
3491 (finalize_image_instance): ditto.
3492 (image_instance_equal): ditto.
3493 (allocate_image_instance): ditto.
3494 (Fcolorize_image_instance): ditto.
3495 (query_string_geometry): ditto.
3496 (image_instantiate): ditto
3497 (query_string_font): ditto.
3498 (image_instantiate): ditto.
3499 (update_subwindow): ditto.
3500 (unmap_subwindow): ditto.
3501 (map_subwindow): ditto.
3502 (subwindow_instantiate): ditto.
3504 * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
3505 (DOMAIN_FRAME): ditto.
3506 (DOMAIN_WINDOW): ditto.
3507 (DOMAIN_LIVE_P): ditto.
3508 (XDOMAIN_DEVICE): ditto.
3509 (XDOMAIN_FRAME): ditto.
3510 (XDOMAIN_WINDOW): ditto.
3512 * specifier.c (Fvalid_specifier_domain_p): add image instances as
3513 a valid specifier domain.
3515 2000-04-19 Andy Piper <andy@xemacs.org>
3517 * glyphs-widget.c (syms_of_glyphs_widget): remove
3518 widget-callback-current-channel.
3519 (vars_of_glyphs_widget): ditto.
3522 * gui.c (get_gui_callback): revert to previous behaviour.
3524 2000-04-18 Andy Piper <andy@xemacs.org>
3526 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
3527 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
3528 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
3530 * glyphs.c (image_instance_equal): add margin_width.
3531 (image_instance_hash): ditto.
3533 * glyphs-widget.c (widget_instantiate): deal with margin-width.
3534 (layout_query_geometry): ditto.
3535 (layout_layout): ditto.
3536 (syms_of_glyphs_widget): add margin-width.
3537 (image_instantiator_layout): allow margin-width.
3539 * glyphs.c (update_widget_instances): make a normal function.
3540 (syms_of_glyphs): remove Qupdate_widget_instances.
3543 * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
3544 so that we don't corrupt ideas about the last event or
3545 command. Remove widget-callback-current-channel fiddling.
3546 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
3548 2000-05-01 Martin Buchholz <martin@xemacs.org>
3550 * XEmacs 21.2.33 is released.
3552 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
3554 * make-src-depend: Allow dots in header file name.
3556 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
3558 * mule-charset.h (struct charset_lookup): Add
3559 next_allocated_1_byte_leading_byte and
3560 next_allocated_2_byte_leading_byte.
3561 * mule-charset.c: Move above two variables so that those values
3564 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
3566 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
3567 when string length is zero.
3568 (find_charsets_in_emchar_string): Ditto.
3570 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
3572 * lisp.h: extern Qdialog and Qmenubar.
3574 * gui-x.c: added events.h.
3575 also fixed typo which made the file uncompilable.
3577 * general.c: Added Qmenubar and Qdialog
3579 2000-04-28 Ben Wing <ben@xemacs.org>
3581 * frame-msw.c (mswindows_init_frame_1):
3582 * frame-msw.c (mswindows_mark_frame):
3583 * event-msw.c (mswindows_enqueue_dispatch_event):
3585 * console-msw.h (struct mswindows_frame):
3586 * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
3587 there are now three hash tables for callbacks.
3588 mswindows_enqueue_dispatch_event is no longer static.
3590 * dialog-x.c (maybe_run_dbox_text_callback):
3591 * dialog-x.c (dbox_descriptor_to_widget_value):
3592 switch to new cons3 form for callbacks.
3594 * glyphs-msw.c (mswindows_register_gui_item):
3595 * glyphs-msw.c (mswindows_widget_instantiate):
3596 * glyphs-msw.c (add_tree_item):
3597 * glyphs-msw.c (add_tab_item):
3598 new image instance parameter, so it can be passed to callback-ex.
3599 respect :callback-ex as well as :callback.
3601 * glyphs-widget.c (VALID_GUI_KEYWORDS):
3604 * glyphs.c (print_image_instance):
3605 prettify, e.g. now prints widget type.
3608 certain funs have new image instance parameter.
3611 * gui.c (get_gui_callback):
3612 * gui.c (gui_item_add_keyval_pair):
3613 * gui.c (gui_item_init):
3614 * gui.c (gui_add_item_keywords_to_plist):
3615 * gui.c (mark_gui_item):
3616 * gui.c (gui_item_hash):
3617 * gui.c (gui_item_equal):
3618 * gui.c (copy_gui_item):
3619 * gui.c (syms_of_gui):
3620 recognize callback-ex in a number of places.
3621 also, fix the annoying "can't get out of yes-no dialog" bug.
3624 * gui.h (struct Lisp_Gui_Item):
3625 recognize callback-ex in a number of places.
3627 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
3628 new parameter in button_item_to_widget_value.
3630 * glyphs-x.c (x_update_widget):
3631 * glyphs-x.c (x_button_instantiate):
3632 * glyphs-x.c (x_button_update):
3633 * glyphs-x.c (x_progress_gauge_instantiate):
3634 * glyphs-x.c (x_edit_field_instantiate):
3635 * glyphs-x.c (x_combo_box_instantiate):
3636 * glyphs-x.c (x_tab_control_instantiate):
3637 * glyphs-x.c (x_label_instantiate):
3638 new image instance parameter in various places.
3641 * event-Xt.c (enqueue_Xt_dispatch_event):
3642 this fun gets exported.
3645 * gui-msw.c (mswindows_handle_gui_wm_command):
3646 handle both :callback and :callback-ex, and generate our own
3647 event because it's one of the callback-ex arguments.
3650 * gui-x.c (popup_selection_callback):
3651 handle both :callback and :callback-ex, and generate our own
3652 event because it's one of the callback-ex arguments.
3653 * gui-x.c (button_item_to_widget_value):
3654 * gui-x.c (gui_items_to_widget_values_1):
3655 * gui-x.c (gui_item_children_to_widget_values):
3656 * gui-x.c (gui_items_to_widget_values):
3657 new image instance parameter in various places.
3659 * fns.c (Freplace_list):
3660 fix small typo in doc string.
3663 declare enqueue_Xt_dispatch_event.
3665 2000-04-28 Ben Wing <ben@xemacs.org>
3668 * buffer.c (Frecord_buffer):
3669 * buffer.c (syms_of_buffer):
3670 delete record-buffer-hook.
3673 * fns.c (Freplace_list):
3674 * fns.c (syms_of_fns):
3675 new primitive replace-list.
3678 slot for old buffer-alist.
3684 * redisplay.c (redisplay_frame):
3685 * redisplay.c (syms_of_redisplay):
3686 * redisplay.c (vars_of_redisplay):
3687 new hook buffer-list-changed-hook.
3690 2000-04-27 Ben Wing <ben@xemacs.org>
3692 * extents.h: extern in_modeline_generation.
3694 * redisplay.c (generate_formatted_string_db): set
3695 in_modeline_generation.
3697 * extents.c (extent_changed_for_redisplay): don't mark redisplay
3698 flags if in modeline generation. otherwise frame-modified-tick
3699 is ticked far too often.
3700 Declare in_modeline_generation.
3702 2000-04-26 Ben Wing <ben@xemacs.org>
3704 * emacs.c (vars_of_emacs): document quick-build "error-checking"
3706 (vars_of_emacs): add quick-build as an error-checking option.
3707 A bit kludgy, but there doesn't seem much point in creating
3708 a real var for this.
3710 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
3712 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
3714 * redisplay.h (struct display_line): Add a new variable,
3717 * redisplay.c (create_text_block): Set dl->line_continuation if
3719 (create_string_text_block): Ditto.
3720 (regenerate_window_incrementally): Use line_continuation instead
3721 of searching continuation glyph.
3722 (add_margin_runes): Call add_glyph_rune.
3723 (add_glyph_rune): Handle margin glyph.
3725 2000-04-20 Martin Buchholz <martin@xemacs.org>
3727 * filelock.c (fill_in_lock_file_name):
3729 Check for IS_ANY_SEP instead of '/'.
3731 Avoid generating gratuitous garbage. Call user_login_name() directly.
3732 Never check errno without first seeing that system call failed.
3733 (unlock_file): Add GCPRO.
3734 (Flock_buffer): Fix docstring.
3735 (Ffile_locked_p): Fix docstring. Add GCPRO.
3737 2000-04-19 Martin Buchholz <martin@xemacs.org>
3739 * sysdep.c (get_pty_max_bytes):
3740 Fix hangs on DEC OSF 4.0 when (process-send-string) sends
3741 strings longer than 252 bytes.
3743 * md5.c: Unconditionally include ANSI header <limits.h>
3745 * glyphs-x.c (convert_EImage_to_XImage):
3746 * lisp-union.h (union Lisp_Object):
3747 Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
3749 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
3751 * filelock.c (current_lock_owner): Remove unused variable o, p.
3753 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
3755 * callint.c: Remove multiply defined symbol Qlet
3756 (syms_of_callint): ditto.
3758 2000-04-14 Andy Piper <andy@xemacs.org>
3760 * general.c (syms_of_general): add last-command, this-command, let
3763 * lisp.h: declare various symbols.
3765 * glyphs.h: declare Qwidget_callback_current_channel;
3767 * glyphs-widget.c (syms_of_glyphs_widget): add
3768 Qgui_callback_current_channel.
3769 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
3771 * gui-msw.c (mswindows_handle_gui_wm_command): bind
3772 widget-callback-current-channel when invoking the interactive
3773 arg. Also bind last-command and next-command when invoking the
3775 * gui-x.c (popup_selection_callback): ditto.
3777 * gui.c (get_gui_callback): massage args so that we are always
3778 calling eval. This allows us to add our own variable bindings
3781 * glyphs-x.c (x_button_instantiate): use
3782 gui_items_to_widget_values since this is GC safe.
3783 (x_progress_gauge_instantiate): ditto.
3784 (x_edit_field_instantiate): ditto.
3785 (x_label_instantiate): ditto.
3787 * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
3788 (emacs_Xt_event_widget_focus_out): new function
3789 (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
3791 (emacs_Xt_event_add_widget_actions): new function. add focus
3792 functions as actions.
3793 (init_event_Xt_late): use it.
3795 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
3797 * event-stream.c (Fdispatch_event): Doc fix.
3799 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
3801 * postgresql.c: Remove all references to PQsetenv*.
3803 * postgresql.h: Remove references to PGsetenvHandler object.
3804 * lrecord.h (lrecord_type): Ditto.
3806 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
3808 * glyphs-msw.h (struct mswindows_image_instance_data): Added
3809 real_heigh and real_width members, and accessor macros for these.
3811 * glyphs-msw.c (init_image_instance_geometry): New function.
3812 (init_image_instance_from_dibitmap): Use it.
3813 (mswindows_resource_instantiate): Use it.
3814 (init_image_instance_from_xbm_inline): Use it.
3815 (mswindows_initialize_image_instance_mask): Use real bitmap
3817 (mswindows_create_resized_bitmap): Ditto.
3818 (mswindows_create_resized_mask): Ditto.
3820 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
3821 and bitmap to their surface size.
3823 2000-04-11 Jan Vroonhof <jan@xemacs.org>
3825 * process-unix.c (unix_send_process): Guard against process MIA
3826 after Faccept_process_output.
3828 2000-04-11 Ben Wing <ben@xemacs.org>
3830 * eval.c (unbind_to_hairy): fix brokenness introduced by
3831 nanosecond speed improvements.
3833 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
3835 * sunplay.c (init_device): To play sounds correctly, the device
3836 apparently needs to be initialized at least once by XEmacs. Make
3839 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
3841 * redisplay.c (add_margin_runes): Add text image glyph
3844 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
3846 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
3847 gcc is newer than 2.5.
3849 2000-04-06 Colin Rafferty <colin@xemacs.org>
3851 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
3853 * fns.c (size_bit_vector):
3854 * alloc.c (size_vector):
3855 (make_vector_internal):
3856 (make_bit_vector_internal):
3857 (sweep_bit_vectors_1):
3858 Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
3860 2000-04-06 Andy Piper <andy@xemacs.org>
3862 * gmalloc.c (malloc): undo previous change.
3867 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
3869 * line-number.c (buffer_line_number): Revert to former version.
3871 2000-04-06 Andy Piper <andy@xemacs.org>
3873 * gmalloc.c (malloc): add error checking.
3878 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
3879 button_item_to_widget_value arg.
3881 * glyphs-x.c (x_button_instantiate): add extra
3882 button_item_to_widget_value arg.
3883 (x_progress_gauge_instantiate): ditto.
3884 (x_edit_field_instantiate): ditto.
3885 (x_label_instantiate): ditto.
3887 * gui-x.c (gui_items_to_widget_values_1): add extra
3888 button_item_to_widget_value arg.
3889 (button_item_to_widget_value): add extra menu_item_p arg.
3891 * gui-x.h: change signature of button_item_to_widget_value.
3893 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
3894 button_item_to_widget_value arg.
3896 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
3898 * buffer.h (struct buffer): auto_save_modified should be long.
3900 2000-04-05 Andy Piper <andy@xemacs.org>
3902 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
3904 (button_query_geometry): give a little more room so that athena
3907 2000-04-05 Andy Piper <andy@xemacs.org>
3909 * faces.c (complex_vars_of_faces): The widget face should inherit
3910 the font of the gui-element face.
3912 2000-04-04 Andy Piper <andy@xemacs.org>
3914 * glyphs-x.c (x_button_update): new function. unconditionally
3915 update a button's state when the instance is dirty.
3916 (image_instantiator_format_create_glyphs_x): add x_button_update.
3917 (x_widget_instantiate): remove old resize cruft.
3919 2000-04-02 Andy Piper <andy@xemacs.org>
3921 * frame.c (change_frame_size_1): The introduction of gutters means
3922 that we need to allow 0 as a potential frame dimension.
3924 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
3926 * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
3927 image glyph if allow_cursor.
3928 (add_hscroll_rune): Don't allow cursor to border glyph.
3929 (create_text_block): Ditto.
3931 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
3933 (redisplay_output_layout): Call ensure_face_cachel_complete for
3937 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
3939 * redisplay.c (add_glyph_rune): Adding text image as text runes.
3941 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
3944 * redisplay-tty.c (tty_output_display_block): Delete the routine
3945 for text image glyph
3946 * redisplay-x.c (x_output_display_block): ditto
3947 * redisplay-msw.c (mswindows_output_display_block): ditto
3949 2000-02-02 Mike Alexander <mta@arbortext.com>
3951 Note: Some of these were committed by accident as part of other
3954 * regex.c (regex_compile): Avoid compiler warnings.
3956 * ntproc.c (sys_spawnve): Avoid compiler warnings.
3958 * nt.h: Declare term_ntproc correctly.
3960 * nt.c: Remove incorrect declaration of get_home_directory which
3961 is declared correctly in lisp.h.
3963 * keymap.c (get_keyelt): Avoid compiler warnings.
3964 (raw_lookup_key_mapper): Avoid compiler warnings.
3966 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
3968 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
3970 * filemode.c (mode_string): Avoid compiler warnings.
3972 * file-coding.c (Fcoding_system_aliasee): Add return statement to
3975 * events-mod.h: Undef some things that winuser.h defines differently.
3977 * data.c (Faset): Avoid compiler warnings.
3979 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
3981 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
3983 * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
3984 Fall through to simple beep on error.
3985 Replace "extern" by real header file.
3987 * linuxplay.c: Use nativesound.h
3988 (play_sound_data): Return error code. Be less verbose on error.
3990 * sunplay.c: Use nativesound.h
3991 (play_sound_data): Return error code. Be less verbose on error.
3993 * ntplay.c: Use nativesound.h
3994 (play_sound_data): Return fake error code
3996 * sgiplay.c: Use nativesound.h
3997 (play_sound_data): Return error code
3999 * hpplay.c: Use nativesound.h, partially implement
4000 new error code. Break compilation until finished.
4001 (play_sound_data): error code.
4003 * nativesound.h (play_sound_file):
4004 (play_sound_data): Prototype in new header.
4006 2000-03-31 Andy Piper <andy@xemacs.org>
4008 * glyphs-widget.c: (button_query_geometry): new function. Adjust
4009 for toggle and radio buttons.
4010 (image_instantiator_buttons): use it.
4012 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
4014 * scrollbar-x.c (x_update_vertical_scrollbar_callback):
4015 (x_update_horizontal_scrollbar_callback): Return if no mirror was
4016 found. Scrollbar event probably belonged to some old config.
4018 2000-03-31 Andy Piper <andy@xemacs.org>
4020 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
4022 (initialize_widget_image_instance): default layout to
4023 LAYOUT_HORIZONTAL rather than 0.
4024 (widget_instantiate): reverse the item list at the end rather than
4026 (layout_layout): re-code for the border text at the front of the
4027 item list rather than at the end.
4028 (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
4029 provided by the user.
4030 (widget_query_geometry): comment.
4032 2000-03-30 Andy Piper <andy@xemacs.org>
4034 * glyphs-widget.c (image_instantiator_layout): allow standard
4035 widget keywords in layouts.
4037 * gutter.c (output_gutter): cope with nil gutter contents.
4039 * frame.c (Fset_frame_properties): add gutter docs.
4041 2000-03-29 Andy Piper <andy@xemacs.org>
4043 * toolbar-msw.c (TBSTYLE_FLAT): add.
4044 (mswindows_output_toolbar): minor fiddling.
4046 2000-03-29 Andy Piper <andy@xemacs.org>
4048 * gutter.c (output_gutter): force gutter size recalculation if
4049 what we are trying to display won't fit.
4050 (update_gutter_geometry): new function. A per-gutter version of
4051 update_frame_gutter_geometry.
4052 (update_frame_gutter_geometry): use it.
4053 (redraw_exposed_gutter): add extra debugging output.
4055 2000-03-28 Mike Alexander <mta@arbortext.com>
4057 * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
4058 (pdump_file_unmap): Implement it on Windows
4059 (pdump_file_get): Save alocated handles for pdump_file_unmap
4061 2000-03-28 Andy Piper <andy@xemacs.org>
4063 * gui.c (get_gui_callback): treat Quit specially.
4065 2000-03-27 Andy Piper <andy@xemacs.org>
4067 * glyphs.c (image_instantiate): be careful to check in the same
4070 2000-03-27 Didier Verna <didier@xemacs.org>
4072 * config.h.in: define the proper SMART_INCLUDE macro.
4073 handle renaming of `foo_h_path' to `foo_h_file'.
4075 * database.c: ditto.
4079 * linuxplay.c: ditto.
4081 * terminfo.c: ditto.
4083 * tooltalk.h: ditto.
4085 2000-03-27 Andy Piper <andy@xemacs.org>
4087 * glyphs-msw.c (mswindows_update_widget): make sure the widget
4088 gets updated whenever the face might have changed.
4090 2000-03-26 Mike Alexander <mta@arbortext.com>
4092 * dumper.c (pdump_resource_free): Fix the comment.
4094 2000-03-21 Olivier Galibert <galibert@pobox.com>
4096 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
4098 2000-03-22 Mike Alexander <mta@arbortext.com>
4100 * dumper.c: Include Windows headers on Windows
4101 (pdump_resource_free): Add a body to the function
4102 (pdump_load): exe_name -> exe_path and add some comments.
4104 2000-03-25 Mike Alexander <mta@arbortext.com>
4106 * gui.c (copy_gui_item_tree): Return a value in all cases
4108 2000-03-21 Didier Verna <didier@xemacs.org>
4110 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
4112 (SMART_INCLUDE): new macro.
4113 (POSTGRES_INCLUDE): new macro to include postgresql headers from
4114 the proper location.
4116 * postgresql.c: use it.
4120 2000-03-24 Andy Piper <andy@xemacs.org>
4122 * gutter.c (redraw_exposed_gutters): must be "in display" when we
4125 2000-03-24 Andy Piper <andy@xemacs.org>
4127 * redisplay-output.c (compare_runes): use image_instance_changed
4128 to detect changes. Do not depend on glyphs_changed, only depend on
4130 (redisplay_output_layout): add debug messages.
4131 (compare_runes): ditto.
4133 * glyphs.h: declare new functions.
4134 (struct Lisp_Image_Instance): remove percent and associated
4137 * gui.h: declare new copying functions.
4139 * gui.c (copy_gui_item_tree): new function.
4140 (copy_gui_item): new function.
4141 (gui_item_id_hash): revert to standard hash.
4142 (gui_item_hash): ditto.
4143 (gui_item_hash_internal): deleted.
4144 (mark_gui_item): mark value.
4145 (gui_item_add_keyval_pair): add value.
4146 (gui_item_init): ditto.
4147 (gui_add_item_keywords_to_plist): ditto.
4148 (gui_item_equal): ditto.
4149 (syms_of_gui): add Q_value.
4151 * glyphs-x.c (x_progress_gauge_update): use pending items and
4152 value for setting the state.
4153 (x_update_widget): don't set items from pending here.
4155 * glyphs-widget.c (update_widget): update items here.
4156 (progress_gauge_set_property): use items for storing value. Put
4157 new value in pending items.
4159 * glyphs-msw.c (mswindows_progress_gauge_update): use pending
4160 items for new value. Convert percent -> value.
4161 (mswindows_tab_control_update): don't update items here.
4163 * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
4164 (update_subwindow): ditto.
4165 (image_instance_changed): new function. Compare hash values and
4166 past and present widget items.
4167 (image_instantiate): We more careful about where we instantiate
4169 (image_instantiate): add error checking.
4171 * gutter.c (syms_of_gutter): use -hook.
4173 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
4175 * console-tty.c (Fset_console_tty_input_coding_system): Use
4177 (Fset_console_tty_output_coding_system): Use Qterminal.
4178 (tty_init_console): Use Qkeyboard and Qterminal.
4180 2000-03-21 Ben Wing <ben@xemacs.org>
4182 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
4183 From Mike Alexander <mta@arbortext.com>.
4185 2000-03-21 Ben Wing <ben@xemacs.org>
4187 * event-msw.c (mswindows_need_event): Horrible kludge to fix
4188 process brokenness. Proper implementation to come.
4190 Rename call-process-internal to old-call-process-internal.
4191 New impl. in process.el.
4193 2000-03-21 Martin Buchholz <martin@xemacs.org>
4195 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
4197 2000-03-20 Andy Piper <andy@xemacs.org>
4199 * glyphs.c (full_list_hash): make hashes of the same elements in
4200 different orders return different values.
4202 2000-03-20 Martin Buchholz <martin@xemacs.org>
4204 * XEmacs 21.2.32 is released.
4206 2000-03-20 Martin Buchholz <martin@xemacs.org>
4208 * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
4209 (DFC_MALLOC_USE_CONVERTED_DATA):
4210 Add aliasing-safe casts to allow use with char* or unsigned char*
4213 * eldap.c (Fldap_open):
4214 (Fldap_search_basic):
4217 Make C++-compilable.
4218 Make sure GCPRO'ed variables are initialized.
4219 Use temp variables to avoid repeated calls to Flength.
4221 2000-03-16 Martin Buchholz <martin@xemacs.org>
4224 Make sure PATH_MAX is always defined.
4225 Include limits.h for PATH_MAX.
4226 Deprecate use of MAXPATHLEN.
4228 2000-03-10 Martin Buchholz <martin@xemacs.org>
4230 * emacs.c: Add reinit_vars_of_fileio.
4231 * symsinit.h: Add reinit_vars_of_fileio.
4232 * fileio.c (reinit_vars_of_fileio): New.
4233 * fileio.c (Fmake_temp_name):
4234 Initialize temp_name random number from microseconds to make
4235 collisions even less likely. Initialize always at process startup
4236 time. (make-temp-name) used to return the same file name twice in
4238 Random stylistic fiddling.
4241 2000-03-20 Andy Piper <andy@xemacs.org>
4243 * glyphs.c (image_instantiate): allow text glyphs to be
4244 instantiated in the minibuffer window.
4246 2000-03-19 Andy Piper <andy@xemacs.org>
4248 * glyphs.c (image_instance_hash): be careful about which items we
4251 * glyphs-widget.c (tab_control_set_property): record into pending
4252 items rather than the actual items.
4254 * glyphs-x.c (x_update_widget): use pending items to update with.
4256 * glyphs-msw.c (mswindows_tab_control_update): use pending items
4259 * glyphs.c (mark_image_instance): mark pending items.
4261 * window.c (Fset_window_configuration): record the buffer.
4262 (Fselect_window): totally revert previous change which breaks many
4265 2000-03-18 Andy Piper <andy@xemacs.org>
4267 * glyphs-msw.c (mswindows_tab_control_update): force selected
4270 * glyphs.c (image_instantiate): don't allow the minibuffer as a
4271 window domain cache, otherwise we get inconsistencies at
4272 startup. There is something fishy at startup which can lead to the
4273 minibuffer being the selected window when the gutter content is
4276 * gui.c (parse_gui_item_tree_list): add probably unnecessary
4278 (parse_gui_item_tree_children): ditto.
4279 (parse_gui_item_tree_item): ditto.
4281 * glyphs.c (Fupdate_widget_instances): return something.
4283 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
4285 * window.c (Fselect_window): Undo 2000-03-17 change.
4287 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
4289 * postgresql.c (Fpq_setenv): Remove this turkey when linking
4290 against v7.0 libraries. Insta-coredump city until the postgres
4293 2000-03-17 Andy Piper <andy@xemacs.org>
4295 * faces.c (complex_vars_of_faces): don't give the widget face an
4296 inherited background pixmap.
4298 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
4301 * event-stream.c (Fdispatch_non_command_events): return something.
4303 * gutter.c (output_gutter): use widget face.
4304 (clear_gutter): ditto.
4306 * NEWS: adjust again.
4308 * window.c (Fselect_window): make sure this runs to completion to
4309 avoid oddities with Fset_window_configuration.
4310 (Fcurrent_window_configuration): in general do not save the
4311 minibuffer as the selected window.
4313 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
4315 2000-03-16 Olivier Galibert <galibert@pobox.com>
4317 * emacs.c (Frunning_temacs_p): Revert previous patch.
4318 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
4320 2000-03-16 Andy Piper <andy@xemacs.org>
4322 * glyphs-x.c (x_tab_control_update): if no widget values then
4325 * NEWS: update for new features.
4327 * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
4328 synthetic event to the native system.
4329 (reinit_vars_of_event_Xt): set force_event_pending to
4330 emacs_Xt_force_event_pending.
4332 * events.h (struct event_stream): add force_event_pending.
4334 * specifier.c (recompute_one_cached_specifier_in_window): add
4337 * redisplay.c (redisplay_frame): don't call
4338 update_frame_subwindows. Reset subwindow cachels when
4339 subwindows_changed, removing this was an optimization too far.
4341 * redisplay-output.c (compare_runes): reorganize so that we catch
4342 glyph changes when we want them. Set optimize_output when this
4344 (redisplay_output_layout): remove frame_really_changed, use
4345 optimize_output instead.
4347 * redisplay-msw.c (mswindows_output_display_block): reset
4348 optimize_output after outputting a glyph.
4349 * redisplay-x.c (x_output_display_block): ditto.
4350 * redisplay-tty.c (tty_output_display_block): ditto.
4352 * gutter.c: (specifier_vars_of_gutter): use new spec changed
4354 (gutter_specs_changed): do specific gutter positions.
4355 (top_gutter_specs_changed): new function. Only update the
4356 specified gutter specs.
4357 (bottom_gutter_specs_changed): ditto.
4358 (left_gutter_specs_changed): ditto.
4359 (right_gutter_specs_changed): ditto.
4361 * gui.c (gui_item_hash_internal): new function, does a real hash.
4362 (gui_item_id_hash): use it.
4363 (gui_item_hash): hash the eval'ed gui_item.
4365 * gui-x.c (popup_selection_callback): send an eval event to call
4366 Fupdate_widget_instances.
4368 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
4369 to call Fupdate_widget_instances.
4371 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
4372 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
4374 * glyphs.c: (update_frame_subwindows): deleted.
4375 (Fupdate_widget_instances): new function for updating the dirty
4376 state of widgets that might have changed.
4377 (syms_of_glyphs): add Qupdate_widget_instances.
4378 (full_list_hash): hash a list completely.
4379 (image_instance_hash): use it for items and properties.
4381 * frame-msw.c (mswindows_size_frame_internal): remove unused
4384 * faces.h (struct face_cachel): fix comment.
4386 * event-stream.c (Fdispatch_non_command_events): new
4387 function. Process non-command events, forcing an event cycle
4389 (syms_of_event_stream): declare.
4390 (event_stream_force_event_pending): new function. Force an event
4391 on the native event queue so that an event cycle will occur next
4395 (struct ntpipe_shove_stream):
4396 (mswindows_enqueue_dispatch_event):
4397 (mswindows_dequeue_dispatch_event):
4398 (mswindows_cancel_dispatch_event):
4399 (mswindows_pump_outstanding_events):
4400 (mswindows_drain_windows_queue):
4401 (mswindows_handle_paint):
4402 (mswindows_wnd_proc):
4403 (mswindows_key_to_emacs_keysym):
4404 (get_process_input_waitable):
4405 (emacs_mswindows_delete_stream_pair): re-indent file.
4406 (mswindows_need_event): do not process further fds if the windows
4407 fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
4408 fixes the 100% cpu problem.
4409 (reinit_vars_of_event_mswindows): set force_event_pending to 0.
4411 2000-03-15 Olivier Galibert <galibert@pobox.com>
4417 * emacs.c: Moved dump file searching to dumper.c.
4418 (Frunning_temacs_p): Fixed.
4420 * alloc.c: Moved everything pdump-related to dumper.c. Removed
4421 last_lrecord_type_index_assigned.
4423 2000-02-20 Olivier Galibert <galibert@pobox.com>
4425 * symsinit.h: Added reinit parameter to init_console_stream
4428 * lisp.h: Added file parameter to pdump_load declaration.
4430 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
4431 support. Added dump file searching.
4433 * config.h.in: Added EMACS_PROGNAME.
4435 * console-stream.c (init_console_stream): Fix reinitialisation
4436 when running from temacs.
4438 * alloc.c (pdump): Add id support.
4439 (pdump_load): Add file parameter and signature/id support.
4441 * Makefile.in.in: Add full pdump support.
4443 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
4445 * postgresql.c: Update documentation to reflect latest code
4447 (print_result): Show tuple counts in printed representation when
4449 (Fpq_put_nbytes): MULE-ize.
4450 (Fpq_get_line_async): Ditto.
4452 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
4454 * postgresql.c (Fpq_lo_import): Fix return value.
4455 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
4457 2000-03-13 Ben Wing <ben@xemacs.org>
4459 * alloc.c (pdump_load):
4460 Fix compile warning under mswin.
4462 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
4464 * postgresql.c: Mule-ization, bug fixes.
4465 Use PG_CODING to encapsulate coding system name changes.
4466 Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
4467 (pg-coding-system): Create.
4469 (Fpq_conn_defaults): Mule-ize.
4470 (Fpq_connectdb): Mule-ize & bug fix.
4471 (Fpq_connect_start): Mule-ize.
4472 (Fpq_set_client_encoding): Mule-ize.
4473 (Fpq_finish): Document `DEAD' connection status.
4475 (Fpq_pgconn): Mule-ize.
4476 (Fpq_exec): Mule-ize & bug fix.
4477 (Fpq_send_query): Ditto.
4478 (Fpq_get_result): Ditto.
4479 (Fpq_res_status): Mule-ize.
4480 (Fpq_result_error_message): Mule-ize.
4481 (Fpq_ntuples): fix comments.
4482 (Fpq_fname): Mule-ize.
4483 (Fpq_fnumber): Mule-ize.
4484 (Fpq_ftype): fix comments.
4485 (Fpq_get_value): Mule-ize.
4486 (Fpq_cmd_status): Ditto.
4487 (Fpq_cmd_tuples): Ditto.
4488 (Fpq_oid_value): Ditto.
4489 (Fpq_notifies): Ditto.
4490 (Fpq_lo_import): Ditto.
4491 (Fpq_lo_export): Ditto.
4492 (Fpq_get_line): Ditto.
4493 (Fpq_put_line): Mule-ize and bug fix.
4494 (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
4496 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
4498 * postgresql.c (vars_of_postgresql): Mule-ize.
4499 (Fpq_conn_defaults): Ditto.
4501 2000-03-12 Ben Wing <ben@xemacs.org>
4503 * alloc.c (Fmake_byte_code):
4504 * alloc.c (debug_string_purity_print):
4505 * alloc.c (pdump_backtrace):
4506 * alloc.c (pdump_get_indirect_count):
4507 * alloc.c (pdump_register_sub):
4508 * alloc.c (pdump_register_object):
4509 * alloc.c (pdump_register_struct):
4510 * alloc.c (pdump_dump_data):
4511 * alloc.c (pdump_reloc_one):
4515 * console-msw.c (GetConsoleHwnd):
4516 * console-msw.c (msw_hide_console):
4517 * console-msw.c (msw_show_console):
4518 * console-msw.c (msw_ensure_console_buffered):
4519 * console-msw.c (msw_output_console_string):
4520 * console-msw.c (console_type_create_mswindows):
4522 a) Added functions to manipulate the console window for use with
4525 b) Added support for writing text to the console, which is now
4526 used under Windows when xemacs is not being run non-interactively,
4527 to write text that would otherwise be destined for stdout because
4528 under these circumstances, text written to stdout tends to
4529 disappear and not be seen.
4533 * event-Xt.c (x_event_to_emacs_event):
4534 * event-Xt.c (describe_event_window):
4535 * events-mod.h (XEMACS_MOD_CONTROL):
4537 * events.c (Fmake_event):
4538 * events.c (character_to_event):
4539 * events.c (event_to_character):
4540 * events.c (format_event_object):
4541 * events.c (Fevent_modifiers):
4543 * events.h (struct key_data):
4544 * events.h (struct button_data):
4545 * events.h (struct misc_user_data):
4546 * frame-x.c (Fcde_start_drag_internal):
4547 * frame-x.c (Foffix_start_drag_internal):
4548 * gpmevent.c (Freceive_gpm_event):
4550 * keymap.c (bucky_sym_to_bucky_bit):
4551 * keymap.c (control_meta_superify):
4552 * keymap.c (make_key_description):
4553 * keymap.c (keymap_lookup_directly):
4554 * keymap.c (create_bucky_submap):
4555 * keymap.c (keymap_store):
4556 * keymap.c (define_key_check_and_coerce_keysym):
4557 * keymap.c (define_key_parser):
4558 * keymap.c (define_key_alternate_name):
4559 * keymap.c (Fdefine_key):
4560 * keymap.c (raw_lookup_key_mapper):
4561 * keymap.c (struct map_keymap_unsorted_closure):
4562 * keymap.c (map_keymap_unsorted_mapper):
4563 * keymap.c (map_keymap_sort_predicate):
4564 * keymap.c (map_keymap_sorted):
4565 * keymap.c (accessible_keymaps_mapper_1):
4566 * keymap.c (where_is_recursive_mapper):
4567 * keymap.c (describe_map_mapper):
4568 * keymap.c (describe_map_sort_predicate):
4569 * keymap.c (describe_map):
4570 * keymap.c (complex_vars_of_keymap):
4571 And a number of other files, the key modifier preprocessor
4572 constants that xemacs uses have names that conflict with constants
4573 defined under MS Windows for other purposes, so they were renamed
4574 to begin with the prefix XEMACS_. The variables that hold such
4575 modifiers were changed to consistently be of type int to fix
4576 various compile warnings.
4578 * console.c (complex_vars_of_console):
4581 * device-msw.c (mswindows_finish_init_device):
4582 * device-msw.c (msw_get_workspace_coords):
4583 * device-msw.c (mswindows_device_system_metrics):
4584 and various other files, added support for a new
4585 device property called offset-workspace which returns the position
4586 of the upper left corner of the workspace area and goes along with
4587 the existing size-workspace property.
4590 * dialog-msw.c (push_bufbyte_string_as_unicode):
4591 * dialog-msw.c (mswindows_popup_dialog_box):
4592 Added support for XEmacs-style accelerator specifications in
4593 button text. Note: I didn't add support for this under X Windows,
4594 and somebody needs to do this.
4597 * dialog.c (Fpopup_dialog_box):
4598 Documented the support for accelerators that was just mentioned.
4600 editfns.c (get_home_directory): Changed behavior under Windows
4601 when HOME not defined; former behavior was irretrievably broken.
4606 * minibuf.c (clear_echo_area_internal):
4607 * minibuf.c (echo_area_append):
4609 * print.c (std_handle_out_external):
4610 * print.c (std_handle_out_va):
4612 * print.c (write_string_to_stdio_stream):
4613 * print.c (output_string):
4614 * print.c (debug_print):
4615 * print.c (debug_backtrace):
4616 * print.c (debug_short_backtrace):
4617 Cleaned up the code that prints text to stdout so that this can be
4618 changed to output into a console window instead under MS Windows,
4622 * eval.c (DEFEND_AGAINST_THROW_RECURSION):
4623 * eval.c (internal_catch):
4624 * eval.c (unwind_to_catch):
4625 * eval.c (throw_or_bomb_out):
4626 * eval.c (condition_case_1):
4627 * eval.c (signal_1):
4628 * eval.c (check_error_state_sanity):
4629 * eval.c (call_with_suspended_errors_1):
4630 * eval.c (call_with_suspended_errors):
4631 * eval.c (reinit_vars_of_eval):
4632 Added code to catch throw loops and check for a pesky bug that may
4636 * event-msw.c (key_needs_default_processing_p):
4637 * event-msw.c (mswindows_wnd_proc):
4638 * event-msw.c (mswindows_modifier_state):
4639 * event-msw.c (emacs_mswindows_quit_p):
4640 * event-msw.c (vars_of_event_mswindows):
4641 a) Added support for using the alt key to select menu items as is
4642 standard under MS Windows. This is controlled using the variable
4643 menu-accelerator-enabled, just like under X Windows. There is an
4644 option on the options menu to turn this support on. I really
4645 think that it should be on by default under Windows, but I'm not
4646 going to make this change yet.
4648 b) Added support for dynamic display size changes under Windows.
4651 * event-stream.c (maybe_echo_keys):
4652 * event-stream.c (Fnext_event):
4653 * event-stream.c (command_builder_find_leaf):
4654 * event-stream.c (lookup_command_event):
4655 * event-stream.c (execute_command_event):
4656 * event-stream.c (pre_command_hook):
4657 * event-stream.c (post_command_hook):
4658 * event-stream.c (syms_of_event_stream):
4659 * event-stream.c (vars_of_event_stream):
4660 * event-stream.c (complex_vars_of_event_stream):
4661 * events.h (struct command_builder):
4663 a) Tried to clean up a little bit the horribly written x-specific
4664 accelerator code that crept into this file. I moved this code
4665 into menubar-x.c where it belongs. I also needed to move the
4666 command builder structure into the file events.h because it is
4667 accessed directly by this accelerator code. What I didn't do, but
4668 which should be done at some point, is to properly abstract this
4669 code using device methods instead of the kludgy way that it
4670 currently hooks into the event code.
4672 b) Added the lisp variables this-command-properties and
4673 last-command- properties, which should be used to synchronize two
4674 adjacent commands in preference to playing games with the variable
4675 this-command, which is typically what happens.
4677 c) Added some slightly nasty code to hook into the lisp support
4678 for shifted- motion-key selection. This is actually necessary for
4679 somewhat complicated reasons, which are described in
4680 simple.el. (NB: I think the proper thing would be to have the code
4681 that calls the pre and post command hooks also call out to generic
4682 lisp functions in simple.el, where all built-in stuff could be
4683 added. I will think about this more.)
4685 * event-unixoid.c (poll_fds_for_input):
4686 * lread.c (readchar):
4687 * redisplay-tty.c (tty_clear_frame):
4688 * redisplay-x.c (x_get_gc):
4689 * signal.c (interrupt_signal):
4690 And a whole bunch of other files: fixed up places that printed
4691 directly to stderr to instead call the function stderr_out so that
4692 the changes I made under Windows work correctly.
4694 * filemode.c (mode_string):
4698 * frame-msw.c (mswindows_size_frame_internal):
4699 Fixed the computation of frame size and position to keep the frame
4700 within the workspace area, rather than within the physical
4701 dimensions of the screen, so that the frame doesn't overlap window
4702 manager decorations, such as the start menu and toolbar, typically
4703 at the bottom of the screen.
4705 * frame.c (vars_of_frame):
4706 Changed the default frame title format under MS Windows to consist
4707 of buffername-XEmacs, which is standard under MS Windows. I think
4708 it might be a good idea to change this everywhere because I think
4709 it is superior to the current frame title format, but this is the
4710 kind of change that is likely to cause some people to get annoyed,
4711 so I'm not making it.
4713 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
4715 * gui-msw.c (mswindows_handle_gui_wm_command):
4716 Fixed compile warnings.
4719 * gui-x.c (strdup_and_add_accel):
4720 * gui-x.c (button_item_to_widget_value):
4722 Added code to automatically put an accelerator onto the beginning
4723 of menu items that don't have one as is now the standard, and is
4724 described more later. Also fixed things so that the menu item
4725 name can be an evaluated expression, again a new standard.
4728 * gui.c (gui_item_add_keyval_pair):
4729 * gui.c (make_gui_item_from_keywords_internal):
4730 * gui.c (gui_add_item_keywords_to_plist):
4731 * gui.c (gui_item_accelerator):
4732 * gui.c (gui_name_accelerator):
4733 * gui.c (gui_item_included_p):
4734 * gui.c (gui_item_display_flush_left):
4735 * gui.c (gui_item_display_flush_right):
4736 * gui.c (parse_gui_item_tree_item):
4737 * gui.c (parse_gui_item_tree_children):
4738 * gui.c (parse_gui_item_tree_list):
4739 Mule-ized. Cleanup. GCPRO addition.
4741 * line-number.c (buffer_line_number):
4743 * lisp.h (EMACS_INT_MAX):
4744 Added the manifest constant EMACS_INT_MIN corresponding to the
4745 existing constant EMACS_INT_MAX. This is partially to fix compile
4746 warnings under Windows, and partly for cleanliness.
4749 * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
4750 * menubar-msw.c (msw_translate_menu_or_dialog_item):
4751 * menubar-msw.c (displayable_menu_item):
4752 * menubar-msw.c (populate_menu_add_item):
4753 * menubar-msw.c (populate_or_checksum_helper):
4754 * menubar-msw.c (populate_menu):
4755 * menubar-msw.c (update_frame_menubar_maybe):
4756 * menubar-msw.c (prune_menubar):
4757 * menubar-msw.c (msw_char_is_accelerator):
4758 * menubar-msw.c (unsafe_handle_wm_initmenu_1):
4759 * menubar-msw.c (mswindows_handle_wm_command):
4760 * menubar-msw.c (mswindows_handle_wm_initmenupopup):
4761 * menubar-msw.c (mswindows_handle_wm_initmenu):
4762 * menubar-msw.c (mswindows_update_frame_menubars):
4763 * menubar-msw.c (mswindows_free_frame_menubars):
4764 * menubar-msw.c (mswindows_popup_menu):
4765 Fixed a bug in handling accelerators where an extra character
4766 would be displayed in the menu item. Also generalized the
4767 function displayable_menu_item because it is now used by the
4768 dialog box code as well. And finally, added code in the functions
4769 that create the menubar to extract a list of accelerators for the
4770 top level menubar, which is used in the event code to determine
4771 whether a particular alt-key combination should be used to invoke
4772 a menu item, or should be passed through to access the standard
4773 XEmacs keymap binding for this key combination.
4775 Much needed GCPROing.
4778 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
4779 * menubar-x.c (menu_item_descriptor_to_widget_value):
4780 * menubar-x.c (restore_in_menu_callback):
4781 * menubar-x.c (x_popup_menu):
4782 * menubar-x.c (menu_move_up):
4783 * menubar-x.c (menu_move_down):
4784 * menubar-x.c (menu_move_left):
4785 * menubar-x.c (menu_move_right):
4786 * menubar-x.c (menu_select_item):
4787 * menubar-x.c (command_builder_operate_menu_accelerator):
4788 * menubar-x.c (menu_accelerator_junk_on_error):
4789 * menubar-x.c (command_builder_find_menu_accelerator):
4790 * menubar-x.c (Faccelerate_menu):
4792 Moved a whole bunch of code here that was previously in
4793 event-stream.c as described above. There is also code connected
4794 to the new standard of adding an accelerator to the beginning of
4795 menu items that don't have one as described above and below.
4798 * menubar.c (menu_parse_submenu_keywords):
4799 * menubar.c (Fmenu_find_real_submenu):
4800 * menubar.c (Fnormalize_menu_item_name):
4801 * menubar.c (syms_of_menubar):
4802 * menubar.c (vars_of_menubar):
4803 * menubar.c (complex_vars_of_menubar):
4805 a) Cleaned up a bunch of documentation and improved it.
4807 b) XEmacs now automatically adds an accelerator onto the beginning
4808 of any menu items that don't have one. I did this because there
4809 will inevitably be some menu items on the main menubar that don't
4810 have accelerators on them because the package that adds that
4811 particular menu item hasn't yet been fixed up to have accelerators
4812 in them and it looked rather strange to have some items with and
4813 some items without accelerators, especially since even in items
4814 without accelerators, you can, at least under windows, still
4815 access the item through an accelerator corresponding to the first
4816 character in the item's name. If people don't like this behavior,
4817 I can add a variable to turn it off optionally, but I'm not sure
4818 this is a good idea because we really do need to have accelerators
4819 on all of the menu items, and if a package doesn't like the
4820 accelerators being put on the first character, then it should put
4821 the accelerators where they belong.
4823 c) I made a behavior change, which is that the descriptor that
4824 specifies the text of the menu item, which formerly was just a
4825 string, can now also be an evaluated expression. This makes this
4826 descriptor parallel with all of the others, which could also be
4827 evaluated expressions. This also obviates the need for the
4828 keyword :label, which was previously listed in the documentation
4829 as unimplemented, and which was for the same purpose.
4834 * ntproc.c (new_child):
4835 * ntproc.c (sys_spawnve):
4836 * ntproc.c (find_child_console):
4837 * ntproc.c (sys_kill):
4838 Fixed compile warnings. By the way, this file should really go
4839 away entirely, and this will happen as soon as Kirill makes his
4840 final round of process cleanups, which affect the function
4844 * process-nt.c (struct nt_process_data):
4845 * process-nt.c (find_process_from_pid):
4846 * process-nt.c (send_signal_the_nt_way):
4847 * process-nt.c (enable_child_signals):
4848 * process-nt.c (find_child_console):
4849 * process-nt.c (send_signal_the_95_way):
4850 * process-nt.c (nt_finalize_process_data):
4851 * process-nt.c (ensure_console_window_exists):
4852 * process-nt.c (nt_create_process):
4853 * process-nt.c (nt_kill_child_process):
4854 * process-nt.c (nt_kill_process_by_pid):
4855 * process-nt.c (nt_open_network_stream):
4856 * process-nt.c (vars_of_process_nt):
4857 Copied over code from Emacs 20.5 to correctly send signals to sub-
4858 processes under Windows 95. Also added code to automatically
4859 create and hide console window when a sub-process is created under
4860 Windows 95, which obviates the need for the separate runemacs.exe
4861 executable, and finally implemented some variables that were
4862 implemented in Emacs 20.5, but previously not in XEmacs. These
4863 include mswindows- start-process-share-console and
4864 mswindows-start-process-inherit-error-mode. (Both of these only
4865 apply to Windows 95.)
4867 * regex.c (regex_compile): Fixed a compile warning.
4870 * select-msw.c (mswindows_own_selection):
4871 * select-msw.c (mswindows_get_foreign_selection):
4872 * select-msw.c (mswindows_disown_selection):
4873 * select-msw.c (console_type_create_select_mswindows):
4874 * select-msw.c (syms_of_select_mswindows):
4875 Cleaned up the file and implemented the device method
4876 selection_exists_p, which had accidentally been left out. Also
4877 removed four lisp functions that were remnants from before the
4878 time when the selection code was properly device abstracted.
4879 These functions are no longer needed because there are generic
4880 equivalents, and because they were added recently and don't exist
4881 in FSF Emacs, I don't think there's any problem with just deleting
4885 * sysdep.c (sys_subshell):
4886 Fixed a compile warning, although in this case there's probably
4887 something wrong with this code, and it ought to be looked into
4888 more thoroughly by somebody who understands it.
4891 * window.c (Fwindow_text_area_height):
4892 * window.c (Fwindow_width):
4893 * window.c (Fwindow_full_width):
4894 * window.c (Fwindow_pixel_width):
4895 * window.c (debug_print_window):
4896 * window.c (syms_of_window):
4897 Added functions window-text-area-height and window-full-width,
4898 which are functions for returning various width and height
4899 characteristics of a window. (One of these functions is necessary
4900 for making the file dialog box work correctly, and the other one
4901 was added for completeness.) Also added a table to the
4902 documentation for window-height which describes the entire scheme
4903 for accessing width and height characteristics of a window.
4905 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
4907 * nt.c (fstat): Added a comment for another problem with
4908 non-encapsulated [f]stat(), reported by Adrian Aichner
4909 <aichner@ecf.teradyne.com>.
4911 2000-03-11 Andy Piper <andy@xemacs.org>
4913 * window.c (make_dummy_parent): initialize subwindow instance
4915 (Fset_window_configuration): zero extent_modiff.
4917 2000-03-10 Andy Piper <andy@xemacs.org>
4919 * redisplay.c (Fredraw_frame): reset the changed_set flags so that
4920 more changes can be triggered.
4921 (Fredisplay_frame): ditto.
4922 (Fredraw_device): ditto.
4923 (Fredisplay_device): ditto.
4924 (redisplay_frame): make non-static.
4925 (redisplay_frame): call update_frame_gutter_geometry outside of
4928 * gutter.h: declare update_frame_gutter_geometry.
4930 * redisplay.h: declare redisplay_frame.
4932 * gutter.c (update_frame_gutter_geometry): move geometry changes
4933 in update_frame_gutters here. Geometry changes can only occur
4934 outside of redisplay.
4935 (update_frame_gutters): remove geometry change code.
4936 (Fredisplay_gutter_area): make sure that we are in display when we
4937 update and that we have flushed any size changes.
4939 2000-03-11 Andy Piper <andy@xemacs.org>
4941 * alloc.c (pdump_dump_data): remove i & count shadows.
4943 2000-02-27 Mike Alexander <mta@arbortext.com>
4945 * sysdep.h: Declare pdump_read_file
4947 * sysdep.c (pdump_read_file): New function
4949 * alloc.c (pdump_load): Call pdump_read_file to get the portable
4952 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
4954 * lrecord.h: add `lrecord_type_pgsetenv'.
4956 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
4958 * symsinit.h: declare (vars|syms)_of* functions.
4959 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
4961 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
4963 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
4965 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
4968 * emacs.c (main_1): Call postgres initialization code.
4970 * postgresql.h: New file. PostgreSQL RDBMS support.
4971 * postgresql.c: New file.
4973 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
4975 * redisplay-output.c (redisplay_output_display_block): Disable
4978 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
4980 * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
4981 (Fcanna_henkan_next): Ditto.
4982 (Fcanna_bunsetu_henkou): Ditto.
4983 (Fcanna_henkan_kakutei): Ditto.
4984 (Fcanna_henkan_end): Ditto.
4985 (Fcanna_henkan_quit): Ditto.
4986 (Fcanna_henkan_next): Set retun value correctly.
4987 (c2mu): Use unsigned char instead of signed char.
4989 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
4991 * emacs.c (main_1): Always call syms_of_gui.
4992 * inline.c: include gui.h
4994 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
4996 * redisplay.c (Vvisible_bell): Renamed from visible_bell and
4997 converted to Lisp_Object.
4998 (Qtop_bottom): New variable.
4999 (syms_of_redisplay): Initialize it.
5000 * redisplay.h (Vvisible_bell): Ditto.
5001 * sound.c (ding): Ditto and check if Vvisible_bell is nil.
5002 * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
5003 only flash top and bottom.
5005 2000-03-08 Andy Piper <andy@xemacs.org>
5007 * buffer.c (Frename_buffer): record new buffer name the right way.
5009 2000-03-08 Andy Piper <andy@xemacs.org>
5011 * glyphs.c (update_subwindow): increase hash depth so that widget
5012 items get picked up properly.
5014 * redisplay-output.c (compare_runes): increase hash depth so that
5015 widget items get picked up properly.
5017 2000-03-08 Andy Piper <andy@xemacs.org>
5019 * gutter.c (output_gutter): add some debug.
5021 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
5022 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
5023 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
5025 * redisplay-output.c (compare_runes): use display_hash to
5026 determine if glyphs really are not the same.
5028 * glyphs.c (update_subwindow): check display_hash to see if
5029 anything really needs to be updated. If not then do
5030 nothing. Record the display_hash after updating.
5031 (image_instance_equal): compare the image_instance face also.
5033 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
5035 * redisplay.h: Fix comment style.
5037 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
5039 * consle-msw.h (struct mswindows_frame):
5040 Added new member paint_pending to indicate whether a WM_PAINT
5041 magic event has been queued for this frame.
5043 * event-msw.c (mswindows_drain_windows_queue):
5044 Don't queue a WM_PAINT magic event if one is already queued.
5045 (emacs_mswindows_handle_magic_event): clear paint_pending flag.
5047 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
5049 2000-03-07 Didier Verna <didier@xemacs.org>
5051 * dired.c: #include `regex.h' after `sysfile.h'.
5053 2000-03-06 Martin Buchholz <martin@xemacs.org>
5055 * sound.c (init_nas_sound): Fix compiler warning.
5057 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
5059 (MARK_STRUCT_AS_FREE):
5060 (MARK_STRUCT_AS_NOT_FREE):
5061 Make `gcc -fstrict-aliasing' work properly.
5063 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
5065 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
5066 (mswindows_delete_device): Call CoUnnitialize().
5068 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
5070 2000-02-25 <CraigL@DyCon.com>
5072 * process-nt.c: MinGW now has <shellapi.h>, but still needs
5075 * sysdep.c: This extern declaration for environ prevents MinGW
5076 from finding the variable in CRTDLL.DLL.
5078 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
5082 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
5084 (MMRESULT): Removed, now defined in cygwin's windows headers.
5086 (uid_t,gid_t,pid_t,ssize_t): ..
5087 (_timeb): Removed, MinGW defines both _timeb and timeb.
5088 (HAVE_H_ERRNO): Added.
5089 (HAVE_TZNAME): Added, configure is not detecting this.
5091 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
5093 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
5094 * syntax.c (syntax_match): Use it.
5096 * cmds.c: Import auto-fill-chars from FSF Emacs.
5097 (Vauto_fill_chars): New variables.
5098 (internal_self_insert): Check Vauto_fill_chars.
5100 Declare auto-fill-chars as a Lisp variable and initialize it.
5102 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
5104 * fileio.c (Fmake_symbolic_link):
5106 Run handlers even if local machine doesn't have symlinks.
5108 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
5110 * event-msw.c (mswindows_drain_windows_queue):
5111 Don't generate paint magic events for non-XEmacs frames.
5113 2000-03-05 Andy Piper <andy@xemacs.org>
5115 * redisplay.c (redisplay_frame): generate_displayable_area and
5116 friends assumes that we are not in GC, we therefore have to make
5117 sure that this doesn't happen.
5119 * gutter.c (calculate_gutter_size): generate_displayable_area
5120 assumes that we are not in GC, we therefore have to make sure that
5121 this doesn't happen.
5123 2000-03-05 Martin Buchholz <martin@xemacs.org>
5125 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
5127 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
5129 * redisplay.c (regenerate_window): Make sure we set a sane value
5130 for end_pos even if we jump out of the loop.
5131 (regenerate_window): Answer Ben's question :-).
5132 (start_end_of_last_line): Add may_error argument.
5133 (start_of_last_line):
5134 (end_of_last_line): Pass may_error = 0.
5135 (end_of_last_line_may_error): New function.
5136 (pixel_to_glyph_translation): Use it, so we don't crash in
5139 2000-03-04 Andy Piper <andy@xemacs.org>
5141 * window.h (struct window): add gutter_extent_modiff.
5143 * window.c (allocate_window): zero out gutter_extent_modiff.
5145 * redisplay.h: declare sync_display_line_structs.
5147 * redisplay.c (add_glyph_rune): add a better comment.
5149 * redisplay-output.c (sync_display_line_structs): made non-static.
5150 (compare_runes): remove unneccesary glyph cachel access.
5152 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
5154 * gutter.c (output_gutter): don't output the gutter if extent
5155 changes only involve extents in buffers. use 4 sets of display
5157 (gutter_extent_signal_changed_region_maybe): new function. Mark
5158 extents in gutters as changed.
5159 (update_frame_gutters): use 4 sets of display lines.
5160 (reset_gutter_display_lines): ditto.
5161 (free_frame_gutters): ditto.
5162 (redraw_exposed_gutter): force output of gutters.
5164 * frame.h (struct frame): add 4 sets of gutter display lines.
5166 * extents.c: (extent_changed_for_redisplay): signal changes to
5167 extents in strings in the gutter as well as extents in buffers.
5169 2000-03-02 Andy Piper <andy@xemacs.org>
5171 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
5173 * frame.c (Fmake_frame): make sure the gutters get initialized
5174 after the frame is visible.
5175 (set_frame_selected_window): re-arrange compilation macros a
5177 (change_frame_size_1): mark gutters changed.
5179 * device.c (Fset_device_class): mark gutters changed.
5181 2000-03-01 Andy Piper <andy@xemacs.org>
5183 * window.c (window_top_frame_gutter_height): deleted.
5184 (window_bottom_frame_gutter_height): ditto.
5185 (window_left_frame_gutter_height): ditto.
5186 (window_right_frame_gutter_height): ditto.
5187 (window_top_gutter_height): don't use them.
5188 (window_bottom_gutter_height): ditto.
5189 (window_left_gutter_width): ditto.
5190 (window_right_gutter_width): ditto.
5191 (Fsplit_window): ditto.
5192 (Fwindow_pixel_edges): don't use border dimensions here.
5194 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
5195 (update_scrollbar_instance): ditto.
5197 * redisplay.c (generate_modeline): don't take gutters into account.
5198 (generate_modeline): ditto.
5199 (redisplay_frame): small gutter display optimization.
5201 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
5203 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
5204 gutters into account.
5206 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
5207 for window position and type.
5209 * gutter.c (get_gutter_coords): fix for frame gutters.
5210 (update_frame_gutters): update frame geometry if the gutters have
5212 (init_frame_gutters): record current gutter geometries.
5214 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
5216 (mswindows_widget_instantiate): ditto.
5218 * frame.h (struct frame): add current_gutter_bounds.
5220 * frame.c (change_frame_size_1): position window and minibuffer
5221 appropriately taking into account the frame gutters.
5223 * frame-x.c: (x_initialize_frame_size): take into account the
5226 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
5228 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
5230 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
5232 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
5234 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
5236 * file-coding.c (reset_decoding_stream): Clear previous
5237 detection state when autodetect.
5239 2000-02-29 Didier Verna <didier@xemacs.org>
5241 * extents.c (set_extent_glyph_1): don't require extents to be
5244 2000-02-27 Andy Piper <andy@xemacs.org>
5246 * gutter.c (Fset_default_gutter_position): don't default left and
5247 right gutter visibility to t.
5248 (Fset_default_gutter_position): run
5249 default-gutter-position-changed-hook.
5250 (syms_of_gutter): add default-gutter-position-changed-hook.
5252 2000-02-26 Andy Piper <andy@xemacs.org>
5254 * specifier.c (Fmake_specifier): add gutter references.
5256 * gutter.h (RAW_WINDOW_GUTTER): new macro.
5258 * lisp.h: declare Fvalid_plist_p.
5260 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
5262 (default_gutter_visible_p_changed_in_window): invalidate gutter as
5263 well as its visibility so that it gets reconstructed.
5264 (construct_window_gutter_spec): new function. Construct a string
5265 to be displayed in the gutter from a plist of strings. Take care
5266 to only use elements that are declared as visible.
5267 (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
5269 (gutter_validate): allow plists of strings in the specifier.
5270 (gutter_specs_changed): construct the real_gutter from the gutter
5271 specs using construct_window_gutter_spec.
5272 (gutter_visible_validate): gutter-visible is a new specifier type.
5273 (Fgutter_visible_specifier_p): new function for the new specifier.
5274 (syms_of_gutter): declare gutter-visible and
5275 Fgutter_visible_specifier_p.
5276 (specifier_type_create_gutter): intitalize new gutter-visible
5278 (reinit_specifier_type_create_gutter): ditto.
5279 (specifier_vars_of_gutter): use new specifier type for gutter
5281 (init_frame_gutters): construct real_gutter correctly.
5282 (Fgutter_specifier_p): beef up documentation.
5283 (Fgutter_size_specifier_p): ditto.
5285 * winslots.h: add real_gutter slots.
5287 2000-02-25 Andy Piper <andy@xemacs.org>
5289 * device-msw.c: Be kind to older cygwin versions. From Raymond
5290 Toy <toy@rtp.ericsson.se>.
5292 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
5293 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
5295 2000-02-25 Martin Buchholz <martin@xemacs.org>
5297 * elhash.c (MARK_OBJ): Practice macro hygiene.
5299 2000-02-24 Martin Buchholz <martin@xemacs.org>
5301 * miscplay.c: s/__inline__/inline/g;
5302 * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
5303 (get_device_compdc): INLINE ==> static inline
5304 * *.[ch]: Change INLINE to INLINE_HEADER globally.
5305 find -name '*.h' | \
5306 xargs global-replace \
5307 's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
5309 2000-02-25 Andy Piper <andy@xemacs.org>
5311 * window.c (window_top_frame_gutter_height): new function.
5312 (window_top_window_gutter_height): ditto.
5313 (window_top_gutter_height): use them.
5314 (window_bottom_frame_gutter_height): new function.
5315 (window_bottom_window_gutter_height): ditto.
5316 (window_bottom_gutter_height): use them.
5317 (window_left_window_gutter_width): new function.
5318 (window_left_frame_gutter_width): ditto.
5319 (window_left_gutter_width): use them.
5320 (window_right_window_gutter_width): new function.
5321 (window_right_frame_gutter_width): ditto.
5322 (window_right_gutter_width): use them.
5323 (window_pixel_height): new function. calulate window pixel height
5324 with frame gutter involvement.
5325 (Fsplit_window): calculate new sizes taking frame gutters into
5327 (window_char_height_to_pixel_height): don't include frame gutters.
5328 (window_char_height): use window_pixel_height.
5329 (window_pixheight): rename from window_pixel_height.
5330 (change_window_height): use it.
5331 (window_pixel_height_to_char_height): don't include frame gutters.
5332 (window_char_width_to_pixel_width): ditto.
5334 2000-02-25 Andy Piper <andy@xemacs.org>
5336 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
5339 2000-02-24 Martin Buchholz <martin@xemacs.org>
5341 * alloc.c (staticpro):
5347 (compact_string_chars):
5349 Convert: if (foo) abort(); ==> assert (! foo);
5351 * eldap.c (Fldap_search_basic):
5355 Fix compiler warnings, and possible crashes if (random) return
5356 value were to be used.
5358 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5360 * device-msw.c: Workaround ResetDC failure.
5362 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
5365 * redisplay-msw.c (get_frame_dc): Added start_page_p.
5366 (mswindows_text_width): Do not start printer page.
5368 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
5370 * glyphs-msw.c: Added image methods to msprinter console and
5371 msprinter-specific image instantiation.
5373 2000-02-20 Mike Alexander <mta@arbortext.com>
5375 * select-msw.c (Fmswindows_set_clipboard): GC protect more things
5376 to avoid crashes when selection-sets-clipboard is on
5377 (mswindows_own_selection): ditto
5379 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5382 * redisplay-msw.c (get_frame_dc):
5385 * device-msw.c (mswindows_init_device):
5386 (mswindows_delete_device):
5387 (msprinter_init_device):
5388 (msprinter_delete_device):
5389 * frame-msw.c (mswindows_init_frame_1):
5390 (mswindows_delete_frame):
5391 (msprinter_init_frame_3):
5392 (msprinter_delete_frame): Move compatible DC to device object from
5393 frame object, for both mswindows and msprinter. Only one at a time
5394 is needed, it is a real waste to have one per frame!
5396 2000-02-23 Andy Piper <andy@xemacs.org>
5398 * glyphs.c: add dynamic width and height elements.
5399 (image_instance_equal): ditto.
5401 * glyphs-widget.c (widget_query_geometry): calculate width and
5402 height dynamically if required.
5403 (initialize_widget_image_instance): initialize dynamic dimensions.
5404 (widget_instantiate): pick-up dynamic dimensions.
5406 * glyphs.h (struct Lisp_Image_Instance): add width and height for
5407 dynamic determination. Add appropriate macros.
5409 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
5411 (WINDOW_GUTTER_SIZE): ditto.
5412 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
5414 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
5416 (get_frame_dc): ditto.
5418 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
5421 2000-02-23 Martin Buchholz <martin@xemacs.org>
5423 * XEmacs 21.2.31 is released.
5425 2000-02-22 Ben Wing <ben@xemacs.org>
5427 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
5429 2000-02-22 Andy Piper <andy@xemacs.org>
5431 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
5433 2000-02-21 Mike Sperber <mike@xemacs.org>
5437 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
5440 2000-02-21 Mike Sperber <mike@xemacs.org>
5442 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
5444 2000-02-21 Martin Buchholz <martin@xemacs.org>
5446 * XEmacs 21.2.30 is released.
5448 2000-02-20 Martin Buchholz <martin@xemacs.org>
5450 Performance hacking.
5452 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
5453 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
5456 * console.c (DEFVAR_CONSOLE_LOCAL_1):
5457 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
5458 * symeval.h (DEFVAR_SYMVAL_FWD):
5459 * symbols.c (guts_of_unbound_marker):
5460 Make all c_readonly objects also lisp_readonly and marked for life.
5461 * lrecord.h (struct lrecord_implementation):
5462 Document flags better.
5463 * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
5464 * lrecord.h (DECLARE_LRECORD):
5465 * lrecord.h (XSETRECORD):
5466 * lrecord.h (RECORDP):
5467 * lrecord.h (RECORD_TYPEP):
5468 * lrecord.h (RECORD_MARKER): New.
5469 * lrecord.h (error_check_*):
5470 * lrecord.h (CONCHECK_NONRECORD):
5471 * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
5472 * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
5473 * lrecord.h (set_lheader_implementation):
5474 * lrecord.h (enum lrecord_type): New.
5475 * symeval.h (SYMBOL_VALUE_MAGIC_P):
5476 * alloc.c (disksave_object_finalization_1):
5477 * alloc.c (mark_object):
5478 * alloc.c (lrecord_type_index):
5479 * alloc.c (tick_lcrecord_stats):
5480 * alloc.c (Fgarbage_collect):
5481 * alloc.c (init_alloc_once_early):
5482 * alloc.c (pdump_load):
5483 * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
5484 * alloc.c (lrecord_type_index): Delete.
5485 Make lisp object type indexes be constant.
5486 Makes (byte-compile) 5% faster.
5487 Put all marker functions into their own array.
5488 Makes (garbage-collect) 5% faster.
5489 Optimize SYMBOL_VALUE_MAGIC_P.
5490 Makes (byte-compile) 2-3% faster.
5491 * config.h.in (gc_checking_assert): New.
5492 * alloc.c: Use gc_checking_assert().
5493 * .dbxrc: Make compatible with new object type implementation.
5494 * .gdbinit: Make compatible with new object type implementation.
5495 * alloc.c: Delete all symbols defined only for debugging, such as
5496 Lisp_Type_Vector and lrecord_charset.
5498 2000-02-21 Andy Piper <andy@xemacs.org>
5500 * gui-msw.c (Fmswindows_shell_execute): fix file location
5503 * buffer.c (Fkill_buffer): remove buffer from alist buffer
5504 unshowing so that set_window_buffer doesn't undo
5505 kill_buffer_hook's hard work.
5507 * glyphs-widget.c (tab_control_query_geometry): don't count the
5508 first item when calculating geometry.
5510 * glyphs.c (map_subwindow): remove redundant code.
5511 (update_frame_subwindows): be more circumspect about when to
5514 * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
5515 when items haven't changed. Update faces if faces have changed as
5516 well as just the widget face.
5517 (x_tab_control_update): Update faces if faces have changed as well
5518 as just the widget face.
5520 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
5522 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
5524 (build_syscolor_string): Use mswindows_color_to_string to try to
5526 (mswindows_device_system_metrics): Reverse the foreground and
5527 background colors so that they match the documentation.
5529 * objects-msw.c: (mswindows_X_color_map): tweak some values so
5530 they match the default Windows palette.
5531 (mswindows_color_to_string): New function.
5533 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
5535 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
5537 2000-02-18 Olivier Galibert <galibert@pobox.com>
5539 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
5540 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
5542 * symbols.c (init_symbols_once_early): Removed obsolete
5543 DATA_SEG_BITS related kludge.
5544 (defvar_magic): Ditto.
5546 * malloc.c: Removed obsolete DATA_SEG_BITS
5548 * mem-limits.h: Ditto.
5550 * Makefile.in.in: Removed obsolete HAVE_SHM
5553 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
5555 * device-msw.c (mswindows_delete_device): Free DDE string
5558 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5560 * keymap.c (get_keyelt):
5561 * unexnt.c (unexec):
5562 * vm-limit.c (memory_warnings):
5563 * ntheap.c (recreate_heap):
5564 * ntheap.h (UNINIT_PTR):
5565 * select-msw.c (Fmswindows_get_clipboard):
5566 (Fmswindows_set_clipboard):
5567 * objects-msw.h (MSWINDOWS_BAD_HFONT):
5569 * menubar-msw.c (displayable_menu_item):
5571 * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
5572 * sysdep.c (sys_subshell):
5573 * process-nt.c (nt_create_process):
5574 * nt.c (normalize_filename):
5575 (dostounix_filename):
5576 (unixtodos_filename):
5577 * ntproc.c (win32_executable_type):
5578 * ntplay.c (play_sound_data_1):
5580 * editfns.c (get_home_directory):
5581 * event-msw.c (struct winsock_stream):
5582 (mswindows_dde_callback):
5583 * device-msw.c (msprinter_init_device):
5584 (msprinter_get_devmode_copy): Frobbed syntax frivolities.
5586 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
5587 mswindows_clear_toolbar were swapped!
5589 * objects-msw.c:(colormap_t):
5591 * emacs.c (struct standard_args): Fixed const jumble.
5593 * glyphs-widget.c (update_widget): Fixed comparison notation.
5595 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
5597 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
5598 __declspec(noreturn) syntax.
5600 2000-02-19 Martin Buchholz <martin@xemacs.org>
5602 * eldap.c (Fldap_open):
5603 (Fldap_search_basic):
5606 Use new coding system conversion macros.
5608 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
5610 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
5612 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
5614 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
5615 (Fldap_add, Fldap_modify, Fldap_delete): New functions
5617 * eldap.c (Qadd, Qreplace): New constant symbols
5618 (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
5619 interruptions by XEmacs signals
5620 Remove unnecessary calls to slow_down_interrupts and
5622 (Fldap_search_basic): Renamed from Fldap_search_internal
5623 Added new optional parameter VERBOSE that triggers the
5624 display of progress messages
5625 Remove unnecessary calls to slow_down_interrupts and
5627 LDAP result code analysis rewritten
5628 (Fldap_add, Fldap_modify, Fldap_delete): New functions
5629 (syms_of_eldap): Define the new symbols and functions
5632 2000-02-17 Martin Buchholz <martin@xemacs.org>
5634 * realpath.c: Determine PATH_MAX maximally portably.
5636 * insdel.c (bytecount_to_charcount): Optimize.
5637 The function used to be optimized for entirely ASCII sequences.
5638 Now it is optimized for successive characters from the same
5639 charset. This also wins big for _mostly_ ASCII sequences.
5641 * fileio.c (Ffile_truename): convert return from realpath() using
5642 Qfile_name, not Qbinary. Fixes obvious bug with non-ASCII symlinks.
5643 - Rewrite GCPROing slightly.
5645 * sysdep.c (sys_open): Do filename conversion, like all other
5646 sys_* functions. Fixes bug:
5647 (let ((file-name-coding-system 'iso-8859-2))
5648 (write-region x y latin2-name))
5649 ==> writes filename using internal encoding.
5651 2000-02-18 Martin Buchholz <martin@xemacs.org>
5653 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
5654 * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
5655 * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
5656 * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
5657 * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
5658 * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
5659 * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
5660 (CONST_IF_NOT_DEBUG): Delete.
5661 * alloc.c (this_one_is_unmarkable): Delete.
5662 (mark_object): Don't check for this_one_is_unmarkable. Use the
5663 c_readonly flag instead.
5664 * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
5666 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
5668 * event-msw.c (mswindows_drain_windows_queue):
5669 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
5670 away redundant repaint events.
5672 2000-02-17 Andy Piper <andy@xemacs.org>
5674 * redisplay.h: declare mark_redisplay_structs.
5676 * redisplay.c (redisplay_window):
5677 (redisplay_frame): don't check subwindows_state_changed.
5678 (mark_redisplay): mark gutters here.
5680 * glyphs.c: (instantiate_image_instantiator): always layout if we
5681 haven't done so already.
5682 (allocate_image_instance): don't mark as dirty.
5683 (update_subwindow): bind inhibit_quit.
5685 * gutter.c (mark_gutters): new function.
5687 * glyphs-x.c (x_update_widget): Always resize to get round a
5690 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
5691 breaking absolutely everything.
5693 * gutter.h: declare mark_gutters.
5695 2000-02-16 Martin Buchholz <martin@xemacs.org>
5697 * XEmacs 21.2.29 is released.
5699 2000-02-15 Olivier Galibert <galibert@pobox.com>
5701 * fns.c (size_bit_vector): Fix computation of the size.
5703 2000-02-15 Martin Buchholz <martin@xemacs.org>
5705 * *.[ch]: Change CONST to const globally.
5706 find -name '*.[ch]' | \
5707 xargs global-replace \
5708 's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
5709 - Remove vestigial references to CONST_IS_LOSING
5711 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
5713 * event-msw.c (mswindows_drain_windows_queue): Remove hack to
5714 bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
5715 events instead of dispatching them directly.
5716 (mswindows_handle_paint): New function to do repainting.
5717 (mswindows_wnd_proc):
5718 (emacs_mswindows_handle_magic_event): Call above function.
5720 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
5722 * objects-msw.c (mswindows_create_font_variant): Return the new
5724 (initialize_font_instance): Get font metrics from the underlined
5725 variant of the font to cope with the case where the underlined
5726 font has a bigger descent.
5728 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5730 * gui.c (gui_item_accelerator): Return the first underlined
5731 character in item name.
5733 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5735 * lisp.h: Added Qprinter.
5737 * general.c (syms_of_general): Initialized it.
5739 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
5741 (get_frame_compdc): Made inline.
5743 * console.h (struct console_methods): Added eject_page method.
5745 * frame.h: Added FRAME_DISPLAY_P and friends.
5746 Aligned backslahes in many macros in more readable fashion.
5747 Added page_number to struct frame, and an accessor macro
5750 * defice.h: Added DEVICE_DISPLAY_P and friends.
5752 * device.c (Fdevice_printer_p): Used these.
5754 * frame.c (allocate_frame_core): Initialize page number.
5755 (Fprint_job_page_number):
5756 (Fprint_job_eject_page): Implemented.
5758 * frame-msw.c (msprinter_eject_page): Added method.
5759 (msprinter_start_page): Added.
5761 * window.c (Fwindow_truncated_p): Fixed docstring.
5762 (Fwindow_last_line_visible_height): Implemented.
5764 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
5766 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
5768 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
5770 * syntax.c (scan_words): Always advance at least one character.
5772 2000-02-13 Andy Piper <andy@xemacs.org>
5774 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
5775 to make sure the glyph is in the cachels.
5777 * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
5778 global image instance flag.
5779 (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
5780 (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
5782 * glyphs.c (allocate_image_instance): set dirty bits correctly.
5783 (Fset_image_instance_property): mark layout as changed.
5784 (invalidate_glyph_geometry_maybe): mark layout as changed.
5785 (glyph_width): use new NEEDS_LAYOUT macro.
5786 (glyph_ascent): ditto.
5787 (glyph_descent): ditto.
5788 (glyph_height): ditto.
5789 (image_instance_layout): mark layout as clean after laying out.
5790 (update_subwindow): don't mark layout as clean here.
5792 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
5793 should no longer be needed.
5795 * glyphs-x.c (x_update_widget): sanitize asserts.
5796 (x_finalize_image_instance): sanitize assignment to widgets.
5798 * glyphs-widget.c (widget_instantiate): don't need to clear the
5801 2000-02-13 Martin Buchholz <martin@xemacs.org>
5803 * sysdep.c (getcwd): Use standard prototype.
5804 * sysdep.h (getcwd): Use standard prototype.
5806 * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
5807 (sequence, start, end).
5808 Remove redundant type checking.
5809 (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
5810 view of `caller-protects') to avoid a crash where the real fix was
5813 2000-02-12 Martin Buchholz <martin@xemacs.org>
5815 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
5817 * s/sol2.h: Remove feature macro initialization.
5819 * alloc.c (alloc_lcrecord): Add more type checking assertions.
5820 (vector_hash): New. Code from internal_hash.
5822 Fix up allocation subsystem comments.
5824 * config.h.in: Add __EXTENSIONS__ for Solaris.
5826 * systime.h (EMACS_GETTIMEOFDAY): New.
5827 (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
5828 Remove Solaris-specific code.
5829 Use void* for the (ignored) second arg for gettimeofday().
5831 * elhash.c (hash_table_hash): Implement it, finally.
5832 * elhash.c: Use hashcode_t.
5834 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
5835 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
5837 * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
5838 * fns.c (size_bit_vector):
5839 * alloc.c (size_vector):
5840 (make_vector_internal):
5841 (make_bit_vector_internal):
5842 (sweep_bit_vectors_1):
5843 Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
5845 2000-02-10 Martin Buchholz <martin@xemacs.org>
5847 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
5848 Include strings.h to avoid warnings for bzero and strcasecmp.
5850 2000-02-10 Olivier Galibert <galibert@pobox.com>
5852 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
5853 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
5855 * fns.c (size_bit_vector): New. Declare bit vectors as a
5858 2000-02-10 Olivier Galibert <galibert@pobox.com>
5860 * symeval.h (struct symbol_value_magic): Remove "next" kludge and
5861 use a value field instead.
5862 (symbol_value_forward_forward): Use value field.
5863 (DEFVAR_SYMVAL_FWD): Use value field.
5864 (DEFVAR_SYMVAL_FWD_INT): Added. Dumps the int with dumpopaque.
5865 (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
5866 (DEFVAR_CONST_INT): Ditto.
5867 (DEFVAR_BOOL): Ditto.
5868 (DEFVAR_CONST_BOOL): Ditto.
5869 (DEFVAR_INT_MAGIC): Ditto.
5870 (DEFVAR_BOOL_MAGIC): Ditto.
5872 * symbols.c (guts_of_unbound_marker): Use value field.
5873 * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
5874 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
5876 * lisp.h: Declare dumpopaque and noninteractive1.
5878 * alloc.c (dumpopaque): Added.
5879 (pdump_dump_opaquevec): Added.
5880 (pdump): Call pdump_dump_opaquevec to dump opaque data.
5881 (pdump_load): Reload opaque data. Sync noninteractive1 with
5884 2000-02-10 Andy Piper <andy@xemacs.org>
5886 * glyphs.c (image_instance_layout): if the size changes, mark it
5889 * redisplay-output.c (redisplay_output_layout): Update the
5891 (redisplay_output_subwindow): ditto.
5893 * glyphs.c (update_subwindow): make sure we reset flags for
5894 layouts as well as everything else.
5896 * glyphs-widget.c (layout_layout): don't need to set the instances
5899 2000-02-09 Martin Buchholz <martin@xemacs.org>
5901 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
5902 not HAVE_DLOPEN, which is a lower-level thing.
5904 * .cvsignore: Ignore gmon.out
5906 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
5908 * .cvsignore: Ignore portable dumper xemacs.dmp file
5910 2000-02-09 Andy Piper <andy@xemacs.org>
5912 * redisplay-output.c (redisplay_output_layout): be more clever
5913 about when we output based on the changed flags.
5915 * glyphs.h (struct image_instantiator_methods): add update_method.
5916 (struct Lisp_Image_Instance): add changed flags. Declare new
5917 macros for manipulating them.
5919 * glyphs.c (allocate_image_instance): renamed glyph -> parent.
5920 (image_instance_parent_glyph): find an image_instance's parent
5921 glyph or image_instance.
5922 (image_instance_layout): mark the size as changed.
5923 (set_image_instance_dirty_p): new function. mark an image
5924 instance, plus all of its parents, as dirty.
5925 (Fset_image_instance_property): use it.
5926 (Fglyph_animated_timeout_handler): use it.
5927 (update_subwindow): call update_widget and device methods for
5928 update_subwindow. Mark all changed flags as clean.
5929 (Fresize_subwindow): mark size as changed.
5931 * glyphs-x.c (x_finalize_image_instance): try and detect gc
5933 (x_update_subwindow): only resize subwindows here.
5934 (x_update_widget): new function. Update all changed properties of
5936 (x_resize_subwindow): deleted.
5937 (x_widget_set_property): deleted.
5938 (x_progress_gauge_set_property): deleted.
5939 (x_progress_gauge_update): new function. Implement recorded
5941 (x_tab_control_update): ditto.
5942 (x_tab_control_set_property): deleted.
5943 (console_type_create_glyphs_x): declare new functions.
5944 (image_instantiator_format_create_glyphs_x): ditto.
5946 * glyphs-widget.c (widget_set_property): mark text changed.
5947 (update_widget): new function. Update properties of a widget.
5948 (widget_instantiate): for layouts make sure we set their
5949 children's parent correctly.
5950 (tab_control_set_property): new function. Record changes that will
5951 take place under redisplay's control.
5952 (progress_gauge_set_property): ditto.
5953 (image_instantiator_progress_guage): declare new functions.
5954 (image_instantiator_tab_control): ditto.
5956 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
5958 (mswindows_update_widget): new function. Update all properties on
5959 a widget that have changed.
5960 (mswindows_button_update): new function. Update a button's set
5962 (mswindows_tab_control_update): new function. Update the items in
5964 (mswindows_tab_control_set_property): deleted.
5965 (mswindows_progress_gauge_update): new function. Update the
5966 progress gauge's progress.
5967 (mswindows_widget_set_property): deleted. This is all done
5969 (mswindows_progress_gauge_set_property): ditto.
5970 (console_type_create_glyphs_mswindows): declare new methods.
5971 (image_instantiator_format_create_glyphs_mswindows): ditto.
5973 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
5974 (msprinter_set_frame_properties): ditto.
5976 * console.h (struct console_methods): Add update_widget_method.
5978 2000-02-09 Andy Piper <andy@xemacs.org>
5980 * gui-msw.c (Fmswindows_shell_execute): Make
5981 mswindows-shell-execute industrial strength.
5983 2000-02-08 Martin Buchholz <martin@xemacs.org>
5985 * lrecord.h: Make macro argument `props' match member function `plist'.
5989 * fns.c (Fobject_plist):
5992 Object property list frobbing cleanup.
5993 - Allow any lisp object (compared with `eq'), not just symbols, as
5994 keys in object plists.
5995 - Move symbol plist frobbing into symbols.c, where it belongs.
5996 - Move string plist frobbing into alloc.c, where it belongs.
5997 - Everything's an lrecord now, so no need to test for symbolp, etc.
5998 - Fix up doc strings to refer to PROPERTY, not PROPNAME.
6000 * extents.c: Reorder code to remove declarations.
6002 * frame.h (store_in_alist): Remove useless declaration.
6004 2000-02-07 Martin Buchholz <martin@xemacs.org>
6006 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
6007 * config.h.in: Add HAVE_XCONVERTCASE.
6009 2000-02-07 Andy Piper <andy@xemacs.org>
6011 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
6012 it breaks many things.
6014 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
6016 * src/syntax.h (SYNTAX_START_P): Check whether the two chars
6017 actually can start a common comment type.
6018 * src/syntax.h (SYNTAX_END_P): ditto for end.
6020 2000-02-07 Martin Buchholz <martin@xemacs.org>
6022 * XEmacs 21.2.28 is released.
6024 2000-02-06 Martin Buchholz <martin@xemacs.org>
6026 * event-Xt.c (x_keysym_to_character): New.
6027 (maybe_define_x_key_as_self_inserting_character): New.
6028 (x_has_keysym): New.
6029 Auto-define all keys on the keyboard as self-insert-key.
6031 2000-02-02 Martin Buchholz <martin@xemacs.org>
6033 * menubar.c (vars_of_menubar): A small code simplification.
6035 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
6042 Use consistent style for specifying X resources.
6044 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
6045 This makes (dontusethis-set-symbol-value-handler) actually usable.
6047 * lrecord.h (lrecord_decription_type):
6048 * alloc.c (pdump_register_sub):
6051 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
6052 Comply with XEmacs coding style.
6053 All lrecord descriptions updated to use XD_LISP_OBJECT with 2
6054 args, and XD_LISP_OBJECT_ARRAY with 3 args.
6056 * keymap.c (Faccessible_keymaps):
6057 Make (accessible-keymaps map "\C-h") do the Right Thing.
6058 Make (accessible-keymaps map []) do the Right Thing.
6059 Make (accessible-keymaps map "") do the Right Thing.
6060 (check_keymap_definition_loop): New function.
6061 (keymap_store_internal): Keep luser from shooting self in foot,
6062 via (define-key ctl-x-4-map "p" global-map).
6063 Remove fullness slot from struct Lisp_Keymap, since hash tables
6065 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
6067 2000-01-30 Martin Buchholz <martin@xemacs.org>
6069 * redisplay.c (init_redisplay): Fix small memory leak.
6071 * elhash.c (pdump_reorganize_hash_table):
6072 Rename from reorganize_hash_table. Change prototype.
6073 Reuse the original memory for hentries. Save 100k.
6074 * alloc.c (PDUMP_READ): new macro.
6075 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
6076 * alloc.c: No need to #ifndef before #undef.
6078 * print.c: Allow debug_print() to print readably by modifying
6079 debug_print_readably. Use consistent variable names.
6081 * .dbxrc: Try to get things to work even if stopped in a function
6082 without source available by explicitly specifying source files.
6083 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6085 * unexnt.c (_start): Removed bogus code which caused loading heap
6086 from differrent executable file.
6087 Removed bogus assignment to _fmode, which caused inconsistencies.
6089 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6091 * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
6092 Have spawnve encapsulation regard DONT_ENCAPSULATE.
6093 Do not preliminary `#define signal sigset'.
6095 * systime.h: Do not prototype environ on windows nt and cygwin,
6096 this conflicts with system header.
6098 * syssignal.h: Use correct define for WINDOWSNT
6100 * sysdep.h: Do not prototype environ on windows nt, this conflicts
6103 * sysdep.c (near start of file): Fixed commentary and rearranged
6104 ifdefs in readable order.
6105 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
6108 (end_of_data): Do not compile in if using PDUMP.
6110 * symsinit.h: Prototyped vars_of_nt().
6112 * ntproc.c (windows9x_p): Added, instead of os_subtype.
6113 (find_child_console): Use it.
6116 * ntheap.h: Do not extern os_subtype.
6118 * ntheap.c (cache_system_info): Do not cache unneeded:
6119 nt_major_version, nt_minor_version and os_subtype.
6120 (recreate_heap): Do not compile in when PDUMPing.
6122 * nt.c (geteuid and friends): Use the new varibale
6123 nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
6124 (init_user_info): Removed the above mentioned hackery.
6125 (fstat, stat): Do not compile in if using MSVC 5.0 and above -
6126 stat has been fixed in the C runtime.
6127 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
6129 * file-coding.c (struct file_coding_dump): Do not define
6130 ucs_to_mule_table in the struct if not MULE.
6131 (struct struct lrecord_description fcd_description_1): Do not dump
6134 * emacs.c (main_1): Call vars_of_nt().
6135 (right before Fdump_emacs_data): Don't need lastfile if using both
6136 portabe dumper and system malloc.
6138 * alloc.c (Fmemory_limit): Conditionalized out.
6139 (pdump): Use OPEN_BINARY for the portable dump file.
6140 (pdump_load): Ditto.
6142 2000-02-02 Mike Alexander <mta@arbortext.com>
6144 * nt.c (convert_time): Set tm_isdst before calling mktime and
6145 avoid calling it at all if the compiler supports 64 bit integers.
6146 Also initialize utc_base_ft before using it.
6148 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
6150 * frame.c (change_frame_size_1): Take f->internal_border_width
6151 into consideration when calculating the width of the frame.
6153 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6155 * window.c (frame_min_height):
6156 (frame_size_valid_p):
6157 (frame_pixsize_valid_p): Added.
6158 (check_frame_size): Generalized.
6160 * window.h: Prototyped the above.
6163 * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
6164 Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
6165 Deleted Vwin32_* and Vbinary_process_* unused variables.
6167 * device-msw.c (msprinter_init_device): Do not get printer font
6168 list; Added DEVMODE functions.
6170 * frame-msw.c: Added lots of printer code.
6172 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
6175 * console-msw.h: Added more msprinter device private slots.
6177 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6179 * event-msw.c (key_needs_default_processing_p): Added.
6180 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
6182 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6184 * glyphs.c (image_instance_layout): Mark image instance as clean
6186 (glyph_dirty_p): Removed redundant function.
6187 (invalidate_glyph_geometry_maybe): Added.
6188 (update_glyph_cachel_data): Call it.
6190 * glyphs.h: Prototyped it.
6192 * redisplay.c (add_glyph_rune): Call it.
6193 (redisplay_window): Reset glyphs cachels when frame faces has
6194 changed, thus forcing recomputation of built-in border glyphs.
6196 2000-01-30 Martin Buchholz <martin@xemacs.org>
6198 * Makefile.in.in: Make portable dumper and purify play well together.
6199 Add imperfect, but better than nothing, support for pdump.
6200 Remove xemacs.dmp when temacs is re-generated.
6201 Don't ignore errors when dumping xemacs.
6203 * symbols.c (maybe_call_magic_handler): Remove one magic number.
6205 2000-01-28 Andy Piper <andy@xemacs.org>
6207 * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
6208 (setup_normal_frame): ditto.
6209 (setup_frame_without_minibuffer): ditto.
6210 (setup_minibuffer_frame): ditto.
6211 (delete_frame_internal): ditto.
6212 (Fmake_frame_invisible): ditto.
6213 (Ficonify_frame): ditto.
6215 * window.h: change Fset_window_buffer signature.
6217 * window.c (Fsplit_window): Use new Fset_window_buffer signature.
6218 (Fset_window_buffer): allow recording of buffer if the window is
6219 the selected window.
6220 (window_loop): Use new Fset_window signature.
6222 2000-01-23 Daniel Pittman <daniel@danann.net>
6224 * config.h.in: Added template for `HAVE_ATHENA_3D'
6226 2000-01-29 Andy Piper <andy@xemacs.org>
6228 * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
6230 * gutter.c (output_gutter): Don't output if the window isn't live.
6232 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6234 * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
6235 of 01/12/00: Moved SetFocus back here where it belongs.
6237 2000-01-23 Andy Piper <andy@xemacs.org>
6239 * s/cygwin32.h: declare printer things.
6241 2000-01-26 Andy Piper <andy@xemacs.org>
6243 * select.c (Fown_selection_internal): GCPRO bug fix from Mike
6246 2000-01-24 Andy Piper <andy@xemacs.org>
6248 * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
6249 (mswindows_button_instantiate): Make sure glyph is a pixmap.
6251 * glyphs-widget.c (widget_instantiate): Avoid shadows.
6253 * frame-msw.c (msprinter_init_frame_3): Nuke warning.
6255 * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
6257 * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
6258 (mswindows_output_display_block): Avoid local shadows.
6260 * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
6261 (mswindows_enqueue_mouse_button_event): ditto.
6262 (mswindows_handle_gui_wm_command): remove declaration.
6264 * console-msw.c (mswindows_canonicalize_console_connection): Avoid
6267 * console-msw.h: Avoid shadows.
6268 (mswindows_get_toolbar_button_text):
6269 (emacs_mswindows_create_stream_pair):
6270 (emacs_mswindows_delete_stream_pair):
6271 (mswindows_handle_toolbar_wm_command): declare.
6273 * device-msw.c (build_syscolor_string): Avoid shadows.
6275 2000-01-23 Andy Piper <andy@xemacs.org>
6277 * glyphs-widget.c (widget_instantiate): reverse the items for
6278 layouts so that children are in the expected order.
6280 2000-01-28 Martin Buchholz <martin@xemacs.org>
6282 * ralloc.c: safe_bcopy ==> memmove
6283 * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
6284 * s/msdos.h: Remove BCOPY macros.
6285 * insdel.c (gap_right): Remove BCOPY conditional code.
6286 * insdel.c (gap_left): Remove BCOPY conditional code.
6287 XEmacs demands a working ANSI C compiler - hence memmove.
6289 * regex.c (regex_compile): Remove accidental use of trigraphs.
6291 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6293 * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
6296 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6298 * event-msw.c (mswindows_drain_windows_queue): Added the
6300 (mswindows_need_event): Commented the call to
6301 mswindows_drain_windows_queue().
6302 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
6305 * console-msw.h: Moved a few function prototypes here from
6308 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
6309 parameter from unsigned short to unsigned long.
6310 (Fmswindows_shell_execute): Added return value.
6312 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
6314 * sysdep.c (init_system_name):
6315 process-unix.c (unix_canonicalized_host_name):
6316 Don't call freeaddrinfo() if getaddrinfo() fails.
6318 * process-unix.c (unix_open_unix_network_stream):
6319 Moved the code to get a port # into address loop.
6321 2000-01-27 Martin Buchholz <martin@xemacs.org>
6323 * buffer.c (reinit_vars_of_buffer):
6324 The right place to initialize conversion_in_dynarr and
6325 conversion_out_dynarr.
6327 * alloc.c (pdump): Use the real open() till sys_open() is functional.
6329 * process-unix.c (unix_canonicalize_host_name): Muleize.
6330 (unix_open_network_stream): Muleize.
6332 * buffer.h: Fix up prototypes for ralloc.c functions.
6334 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
6335 * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
6336 * sysdep.c: In init_system_name(), add code to use getaddrinfo()
6337 instead of gethostbyname()
6338 * process-unix.c: In unix_canonicalize_host_name() and
6339 unix_open_network_stream(), add code to use getaddrinfo()
6340 instead of gethostbyname().
6342 2000-01-27 Daniel Pittman <daniel@danann.net>
6344 * device-x.c (x_init_device): Warn at run-time if using Athena 3d
6345 libs when built with flat Athena.
6347 2000-01-27 Martin Buchholz <martin@xemacs.org>
6349 * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
6350 Use coding standards for function prototypes.
6352 2000-01-25 Martin Buchholz <martin@xemacs.org>
6354 * dialog-msw.c (push_lisp_string_as_unicode):
6355 * doc.c (unparesseuxify_doc_string):
6356 * dired.c (Fuser_name_completion_1):
6357 * dired.c (Fuser_name_all_completions):
6358 * dired.c (free_user_cache):
6359 * dired.c (user_name_completion):
6360 * console-x.c (get_display_arg_connection):
6361 * minibuf.c (clear_echo_area_internal):
6362 * minibuf.c (echo_area_append):
6363 * eldap.c (Fldap_open):
6364 * eldap.c (Fldap_search_internal):
6365 * frame-x.c (x_set_frame_text_value):
6366 * frame-x.c (x_set_frame_properties):
6367 * frame-x.c (x_create_widgets):
6368 * redisplay-tty.c (term_get_fkeys_1):
6369 * objects-x.c (x_parse_nearest_color):
6370 * objects-x.c (x_valid_color_name_p):
6371 * objects-x.c (x_initialize_font_instance):
6372 * objects-x.c (x_list_fonts):
6373 * objects-x.c (x_find_charset_font):
6374 * tooltalk.c (Fadd_tooltalk_message_arg):
6375 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
6376 * tooltalk.c (Fadd_tooltalk_pattern_arg):
6377 * process-unix.c (unix_create_process):
6378 * ntproc.c (sys_spawnve):
6379 * sound.c (Fplay_sound_file):
6380 * sound.c (Fplay_sound):
6381 * buffer.c (init_initial_directory):
6382 * buffer.c (init_buffer):
6383 * editfns.c (init_editfns):
6384 * editfns.c (Ftemp_directory):
6385 * editfns.c (Fuser_full_name):
6386 * editfns.c (uncache_home_directory):
6387 * editfns.c (get_home_directory):
6388 * editfns.c (Fuser_home_directory):
6389 * editfns.c (Fformat_time_string):
6390 * editfns.c (Fcurrent_time_string):
6391 * gui-x.c (button_item_to_widget_value):
6392 * database.c (Fopen_database):
6393 * event-Xt.c (x_to_emacs_keysym):
6394 * event-Xt.c (x_event_to_emacs_event):
6395 * event-Xt.c (describe_event_window):
6396 * event-msw.c (mswindows_wnd_proc):
6397 * glyphs-eimage.c (jpeg_instantiate):
6398 * glyphs-eimage.c (gif_instantiate):
6399 * glyphs-eimage.c (png_instantiate):
6400 * glyphs-eimage.c (tiff_instantiate):
6401 * glyphs-x.c (xbm_instantiate_1):
6402 * glyphs-x.c (x_xbm_instantiate):
6403 * glyphs-x.c (x_xface_instantiate):
6404 * glyphs-x.c (autodetect_instantiate):
6405 * glyphs-x.c (cursor_font_instantiate):
6406 * glyphs-x.c (x_widget_instantiate):
6407 * glyphs-x.c (x_widget_set_property):
6408 * glyphs-x.c (x_widget_property):
6409 * glyphs-x.c (BUILD_GLYPH_INST):
6410 * print.c (write_string_to_stdio_stream):
6411 * print.c (output_string):
6412 * print.c (Falternate_debugging_output):
6413 * print.c (Fexternal_debugging_output):
6414 * glyphs-msw.c (extract_xpm_color_names):
6415 * glyphs-msw.c (mswindows_xpm_instantiate):
6416 * glyphs-msw.c (bmp_instantiate):
6417 * glyphs-msw.c (resource_name_to_resource):
6418 * glyphs-msw.c (mswindows_resource_instantiate):
6419 * glyphs-msw.c (xbm_instantiate_1):
6420 * glyphs-msw.c (mswindows_xbm_instantiate):
6421 * glyphs-msw.c (mswindows_xface_instantiate):
6422 * glyphs-msw.c (mswindows_widget_instantiate):
6423 * glyphs-msw.c (add_tree_item):
6424 * glyphs-msw.c (add_tab_item):
6425 * glyphs-msw.c (mswindows_combo_box_instantiate):
6426 * glyphs-msw.c (mswindows_widget_property):
6427 * glyphs-msw.c (mswindows_combo_box_property):
6428 * glyphs-msw.c (mswindows_widget_set_property):
6429 * console.c (stuff_buffered_input):
6430 * objects-msw.c (mswindows_initialize_color_instance):
6431 * objects-msw.c (mswindows_valid_color_name_p):
6432 * objects-msw.c (mswindows_list_fonts):
6433 * objects-msw.c (mswindows_font_instance_truename):
6434 * bytecode.c (optimize_compiled_function):
6435 * select-x.c (symbol_to_x_atom):
6436 * select-x.c (x_atom_to_symbol):
6437 * select-x.c (hack_motif_clipboard_selection):
6438 * select-x.c (selection_data_to_lisp_data):
6439 * select-x.c (lisp_data_to_selection_data):
6440 * select-x.c (Fx_get_cutbuffer_internal):
6441 * select-x.c (Fx_store_cutbuffer_internal):
6442 * buffer.h (TO_EXTERNAL_FORMAT): New function.
6443 * buffer.h (TO_INTERNAL_FORMAT): New function.
6444 * emacs.c (make_arg_list_1):
6445 * emacs.c (make_argc_argv):
6447 * emacs.c (Fdump_emacs):
6448 * emacs.c (split_string_by_emchar_1):
6453 * device-x.c (x_init_device):
6454 * device-x.c (Fx_valid_keysym_name_p):
6455 * device-x.c (Fx_get_font_path):
6456 * device-x.c (Fx_set_font_path):
6457 * glyphs.c (bitmap_to_lisp_data):
6458 * glyphs.c (pixmap_to_lisp_data):
6459 * alloc.c (make_ext_string): Use coding system arguments. Update
6461 * alloc.c (build_string):
6462 * callproc.c (child_setup):
6463 * callproc.c (init_callproc):
6464 * fileio.c (lisp_strerror):
6465 * fileio.c (directory_file_name):
6466 * fileio.c (Fexpand_file_name):
6467 * fileio.c (Ffile_truename):
6468 * fileio.c (Fsysnetunam):
6469 * fileio.c (Fdo_auto_save):
6470 * sysdep.c (sys_readdir):
6471 * tests.c: New file. Allow adding C tests.
6472 Replace GET_* macros with a more comprehensible and flexible
6473 interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
6475 Any coding system can be used to do format conversion.
6476 Eliminate enum external_data_format.
6477 Eliminate convert_to_external_format.
6478 Eliminate convert_to_internal_format.
6479 Make sure file-name, keyboard, terminal, and ctext are always
6480 defined as coding systems or aliases. Make
6481 file-name-coding-system, terminal-coding-system, and
6482 keyboard-coding-system magical variables that are equivalent to
6483 defining the corresponding coding system aliases.
6485 * file-coding.c (Fcoding_system_canonical_name_p): New function.
6486 * file-coding.c (Fcoding_system_alias_p): New function.
6487 * file-coding.c (Fcoding_system_aliasee): New function.
6488 * file-coding.c (append_suffix_to_symbol): New function.
6489 * file-coding.c (dangling_coding_system_alias_p): New function.
6490 * file-coding.c (Ffind_coding_system):
6491 * file-coding.c (Fcopy_coding_system):
6492 * file-coding.c (encode_coding_no_conversion):
6493 * file-coding.c (syms_of_file_coding):
6494 * file-coding.c (vars_of_file_coding):
6495 Rewrite coding system alias code.
6496 Allow nested aliases, like symbolic links.
6497 Allow redefinition of coding system aliases.
6498 Prevent existence of dangling coding system aliases.
6500 * dired.c (Fuser_name_completion_1):
6501 * dired.c (Fuser_name_all_completions):
6502 A crash would happen if user did QUIT in the middle of building
6503 user_name_cache. Remove redundant code in mainline and unwind_protect.
6506 * dynarr.c (Dynarr_min_size): Make static. Increase value to 8.
6508 * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
6509 an unsigned char *. Update all callers.
6511 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6513 * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
6515 2000-01-25 Martin Buchholz <martin@xemacs.org>
6517 * elhash.c (hentry_description): Use more portable definition.
6518 (resize_hash_table): Initialize new hentries using
6519 xnew_array_and_zero, thereby simplifying the code.
6521 * mule-charset.c (make_charset): Make sure entire object is
6522 initialized, to avoid Purify warnings.
6524 * alloc.c (resize_string): Fix unlikely crash with big strings.
6526 2000-01-24 Martin Buchholz <martin@xemacs.org>
6528 * realpath.c (xrealpath):
6531 2000-01-25 Martin Buchholz <martin@xemacs.org>
6533 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
6535 1999-12-28 Max Matveev <max@melbourne.sgi.com>
6537 * unexelfsgi.c (unexec): Change the way we decide which segment
6540 Assumption that .bss section should be outside the PT_LOADable
6541 segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
6542 it's present) is inside the 'data' segment. This would fail the
6543 test which was used to find a segment to grow and cover new
6544 heap. Instead of this assumption, I created another one - on IRIX
6545 the segment to grow should start below .bss and it's address
6546 should extent above the end of .bss. Once this segment is
6547 identified, it's grown to accommodate the new heap and new
6548 zero-length .bss section is added at the end of .data2.
6550 2000-01-25 Martin Buchholz <martin@xemacs.org>
6552 * eval.c (Feval): Wrong number of arguments should use original
6553 function, not the indirect_function version of it.
6555 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org>
6557 * glyphs-x.c (x_button_instantiate): Don't add image if
6559 (x_locate_pixmap_file): Call Fexpand_file_name when file name
6562 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org>
6564 * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
6566 (DEFVAR_INT_MAGIC): Ditto.
6567 (DEFVAR_BOOL_MAGIC): Ditto.
6568 * glyphs.h: Reindent backslash.
6570 2000-01-24 Martin Buchholz <martin@xemacs.org>
6572 * glyphs-widget.c (layout_query_geometry):
6573 (layout_layout): Use correct types for gheight, gwidth.
6575 2000-01-24 Martin Buchholz <martin@xemacs.org>
6577 * EmacsManager.c (QueryGeometry): Purified.
6579 2000-01-23 Martin Buchholz <martin@xemacs.org>
6581 * alloc.c (make_float): Make sure entire object is initialized, to
6582 avoid Purify warnings.
6583 (pdump_register_sub): Remove useless assignment.
6584 (pdump): Use xmalloc, not malloc.
6585 (pdump_load): Use xmalloc, not malloc.
6587 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6594 * sysdep.c: Removed redundant #include <windows.h>
6596 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6598 * frame.c (delete_frame_internal): Do not delete device when its
6599 implementation so declares.
6600 (delete_frame_internal): Set device selected frame to nil when
6601 last frame goes away.
6603 * device-msw.c (msprinter_device_system_metrics): Implemented.
6604 (mswindows_device_system_metrics): Added 'device-dpi property.
6606 * device.c: (Fdevice_printer_p): Added.
6607 Added 'offset-workspace device metric.
6609 * console.h (device_metrics): Declared DM_offset_workspace.
6611 2000-01-23 Martin Buchholz <martin@xemacs.org>
6613 * fileio.c (Ffile_truename): Remove pointless and confusing
6614 initialization of elen.
6616 * glyphs-widget.c: Compiler warning fixes.
6618 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk>
6620 * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
6621 instead of a Lisp_Object as argument to make it consistent with
6622 the other LIVE_P macros.
6623 (CHECK_LIVE_PROCESS): New macro.
6625 * process.c: Declare Qprocess_live_p.
6626 (Fprocess_live_p): New function.
6627 (create_process): Use PROCESS_LIVE_P.
6628 (read_process_output): Ditto.
6629 (set_process_filter): Ditto.
6630 (Fdelete_process): Ditto.
6631 (kill_buffer_processes): Ditto
6632 (process_send_signal): Use CHECK_LIVE_PROCESS.
6633 (Fprocess_input_coding_system): Check whether process is still
6634 alive (fix PR#1061).
6635 (Fprocess_output_coding_system): Ditto.
6636 (Fprocess_coding_system): Ditto.
6637 (Fset_process_input_coding_system): Ditto.
6638 (Fset_process_output_coding_system): Ditto.
6640 2000-01-23 Andy Piper <andy@xemacs.org>
6642 * glyphs.h (struct Lisp_Image_Instance): change format by unifying
6645 * glyphs.c (mark_image_instance): take into account changed
6646 image_instance format.
6647 (image_instance_equal): ditto.
6648 (image_instance_hash): ditto.
6650 * glyphs-widget.c (widget_instantiate): Incorporate layout
6651 instantiation here. Delay layout of the layout until later.
6652 (layout_instantiate): deleted.
6653 (layout_query_geometry): new function. get the geometry of a
6655 (layout_layout): layout a layout dynamically.
6656 (image_instantiator_widget): New function - splitting up
6657 image_instantiator_format_create_glyphs_widget for netwinder
6659 (image_instantiator_buttons):
6660 (image_instantiator_edit_fields):
6661 (image_instantiator_combo_box):
6662 (image_instantiator_scrollbar):
6663 (image_instantiator_progress_guage):
6664 (image_instantiator_tree_view):
6665 (image_instantiator_tab_control):
6666 (image_instantiator_labels):
6667 (image_instantiator_layout): ditto.
6668 (image_instantiator_format_create_glyphs_widget): Call preceding
6671 2000-01-22 Martin Buchholz <martin@xemacs.org>
6673 * process.c (Fset_process_coding_system):
6674 * device-x.c (Fx_keysym_hash_table):
6677 * lstream.c (Lstream_write): Return documented value, not 0.
6679 * fileio.c (directory_file_name):
6680 (Fsubstitute_in_file_name):
6681 (Fsubstitute_insert_file_contents_internal):
6682 (Fwrite_region_internal):
6687 Remove vestigial APOLLO-conditional code.
6689 2000-01-21 Martin Buchholz <martin@xemacs.org>
6691 * getpagesize.h: Add guard macros.
6692 * libsst.h: Add guard macros.
6693 * libst.h: Add guard macros.
6694 * line-number.h: Add guard macros.
6695 * ndir.h: Add guard macros.
6696 * sysfloat.h: Add guard macros.
6697 * sysfile.h: Add guard macros.
6698 * sysproc.h: Add guard macros.
6699 * syswait.h: Add guard macros.
6700 * xintrinsic.h: Add guard macros.
6701 * xintrinsicp.h: Add guard macros.
6702 * xmmanager.h: Add guard macros.
6703 * xmmanagerp.h: Add guard macros.
6704 * xmprimitive.h: Add guard macros.
6705 * xmu.h: Add guard macros.
6706 * gpmevent.h: Add copyright statement. Add guard macros.
6707 * miscplay.h: Add guard macros.
6708 * *.h: Use consistent C-standards-approved guard macro names.
6710 * opaque.c (make_opaque): Switch parameter order.
6711 * opaque.h (make_opaque): Switch parameter order.
6713 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
6715 * config.h.in (type_checking_assert): Added.
6716 (bufpos_checking_assert): Added.
6718 2000-01-21 Martin Buchholz <martin@xemacs.org>
6720 * alloc.c: Harmless pdump changes.
6722 - spell alignment correctly.
6723 * sysdep.c: Use countof()
6725 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6727 * console.c (create_console): Use CONMETH_OR_GIVEN when calling
6728 initially_selected_for_input() console method, default to 0.
6729 (semi_canonicalize_console_connection): Try to delegate to
6730 canonicalize_console_connection if no such console method.
6731 (canonicalize_console_connection): Vice versa.
6732 (print_console): Do not print nil connection.
6734 * console.h (XDEVIMPF_IS_A_PRINTER): Added.
6735 (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
6736 (XDEVIMPF_FRAMELESS_OK): Added.
6737 (CONSOLE_INHERITS_METHOD): Added.
6739 * console-msw.c (mswindows_canonicalize_console_connection):
6741 (mswindows_canonicalize_device_connection): Added.
6743 * console-msw.h (struct msprinter_device): Added this struct and
6745 (mswindows_device): Made fontlist a lisp object.
6747 * device.c (semi_canonicalize_device_connection): Try to delegate
6748 to canonicalize_device_connection if no such console method.
6749 (canonicalize_device_connection): Vice versa.
6750 (print_device): Do not print nil connection.
6752 * device-msw.c (mswindows_init_device): Call InitCommonControls
6754 (mswindows_delete_device): Removed fontlist deallocation.
6755 (mswindows_mark_device): Added.
6757 * events.c (event_equal): Added abort() at unreached code.
6758 (event_hash): Ditto.
6760 * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
6761 fallback tags of Windows devices.
6763 * general.c (syms_of_general): Initialized Qmsprinter.
6765 * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
6766 of fallback tags of Windows devices.
6768 * lisp.h: Declared Qmsprinter.
6770 * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
6772 (mswindows_list_fonts): Ditto.
6773 (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
6774 that it can be used by both mswindows and msprinter devices.
6775 (initialize_font_instance): Added.
6776 (mswindows_initialize_font_instance): Use it.
6777 (msprinter_initialize_font_instance): Added.
6779 * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
6780 and implementation flags check.
6781 (redisplay_without_hooks): Changed the call to the above.
6782 (Fredraw_device): Ditto.
6783 (Fredisplay_device): Ditto.
6785 * redisplay-msw.c (get_frame_dc): Implemented.
6786 (get_frame_compdc): Implemented.
6787 (many functions): Use the two functions above to get device
6788 contexts, ether for a window or a printer.
6790 2000-01-21 Olivier Galibert <galibert@pobox.com>
6792 * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
6793 initialization here.
6794 (init_symbols_once_early): Call it.
6795 * emacs.c (main_1): Call it.
6796 * symsinit.h: Declare it.
6798 2000-01-19 Olivier Galibert <galibert@pobox.com>
6800 * alloc.c: Use a lrecord_header * in the backtrace instead of a
6802 (pdump_backtrace): Ditto.
6803 (pdump_register_object): Ditto. Cleanup use of the pointers.
6804 (pdump_get_entry): Abort if trying to register a null pointer.
6805 (pdump_dump_data): Cleanup types when relocating.
6806 (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
6807 (pdump_dump_rtables): Remove bad casts.
6808 (pdump_load): Cleanup relocation w.r.t union type. Use a
6809 Lisp_Object instead of a EMACS_INT for the hashtable
6812 2000-01-20 Martin Buchholz <martin@xemacs.org>
6814 * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
6816 * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
6818 * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
6820 * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
6822 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6824 * faces.h (FACE_STRIKETHRU_P): Added.
6826 * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
6829 * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
6830 (mswindows_set_dc_font): New function, aware of font variants,
6831 separated from mswindows_update_dc.
6833 * objects-msw.h (struct mswindows_font_instance_data): Added
6836 * objects-msw.c (mswindows_finalize_font_instance): Delete all
6837 cached fonts and the data structure.
6838 (mswindows_initialize_font_instance): Added creation of font data
6840 (mswindows_print_font_instance): Print at least something.
6841 (mswindows_create_font_variant): Implemented.
6842 (mswindows_get_hfont): Implemented.
6844 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
6846 * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
6847 prototyping problem with msvc.
6849 * emacs.c (main_1): added syms_of_gui_mswindows() call
6851 * gui-msw.c: added "mswindows-shell-execute" lisp subr and
6852 syms_of_gui_mswindows() function
6854 * symsinit.h: added the prototype for syms_of_gui_mswindows()
6856 2000-01-18 Martin Buchholz <martin@xemacs.org>
6858 * XEmacs 21.2.27 is released.
6860 2000-01-18 Martin Buchholz <martin@xemacs.org>
6862 * glyphs-eimage.c (struct tiff_error_struct):
6864 (tiff_warning_func):
6865 #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
6870 * unexec.c: Remove vestigial Lucid C code.
6875 Remove declarations of errno and strerror().
6877 * eval.c (Fbacktrace): Small Purify-cation. Fix docstring.
6879 * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
6881 2000-01-16 Martin Buchholz <martin@xemacs.org>
6883 * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
6886 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
6891 Change enum eol_type to eol_type_t.
6893 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
6895 * gui.c (get_gui_callback): Check cons before accessing car.
6897 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
6899 * specifier.h (XSPECIFIER_TYPE): Add error checking version.
6900 (XSETSPECIFIER_TYPE): Ditto.
6902 2000-01-17 Didier Verna <didier@xemacs.org>
6904 * redisplay.c (generate_fstring_runes): compute string size in
6905 characters, not bytes.
6907 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
6909 * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
6911 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr>
6913 * print.c (print_error_message): Call print_prepare().
6915 2000-01-14 Martin Buchholz <martin@xemacs.org>
6917 * .dbxrc: Renamed from dbxrc.
6919 * events.c (event_to_character):
6920 Use `assert (foo)' instead of `if (!foo) abort()'
6922 * .gdbinit (xtype): Add documentation.
6923 * .gdbinit (check-temacs): New function.
6924 * .gdbinit (check-xemacs): New function.
6925 * dbxrc (check-xemacs): New function.
6926 * dbxrc (check-xemacs): New function.
6928 2000-01-14 Andy Piper <andy@xemacs.org>
6930 * glyphs-widget.c (widget_query_geometry): Make sure that we
6931 calculate default dimensions correctly.
6933 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6935 * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
6937 * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
6938 pdump_wire'd variable.
6940 * emacs.c: (main_1): Conditionalized calls to
6941 reinit_vars_of_scrollbar_x and reinit_vars_of_module.
6943 2000-01-13 Martin Buchholz <martin@xemacs.org>
6945 * window.c (Fset_window_configuration):
6946 * sysdep.c (_start):
6947 * input-method-motif.c (res):
6948 * event-Xt.c (Xt_process_to_emacs_event):
6949 Simple compiler warning fixes.
6951 * bytecode.c (funcall_compiled_function): Use the original
6952 function symbol on the backtrace list in preference to the
6953 compiled_function object in error messages.
6955 2000-01-13 Andy Piper <andy@xemacs.org>
6957 * glyphs-x.c (update_widget_face): Make sure we update the widget
6958 background as well as foreground.
6960 2000-01-13 Andy Piper <andy@xemacs.org>
6962 * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
6963 fields to subwindow.
6964 (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
6965 (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
6966 (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
6967 (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
6969 * glyphs-widget.c (check_valid_tab_orientation): new function.
6970 (initialize_widget_image_instance): zero orientation and
6972 (widget_instantiate): pick up orientation.
6973 (tab_control_query_geometry): return appropriate values for
6976 * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
6977 appropriate creation flags for left, right and bottom tabs.
6979 * s/cygwin32.h: add tab definitions.
6981 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6983 * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
6984 frame upon hiding a subwindow.
6985 (mswindows_button_instantiate): Changed the push button style to
6987 (mswindows_button_instantiate): Removed button BS_NOTIFY
6989 (mswindows_button_instantiate): Removed redundant check for
6990 a disabled gui item.
6991 (mswindows_button_instantiate): Made use of WS_TABSTOP
6992 consistent: "operable" controls (edit, button, tree, scroll) have
6993 this style, "display-only" ones (static, progress gauge) do
6994 not. This style is currently ignored by XEmacs though. Also,
6995 removed the WS_EX_CONTROLPARENT style - it is not for children,
6996 it is for their parents!
6997 (mswindows_edit_field_instantiate): Ditto.
6998 (mswindows_progress_gauge_instantiate): Ditto.
6999 (mswindows_tree_view_instantiate): Ditto.
7000 (mswindows_tab_control_instantiate): Ditto.
7001 (mswindows_scrollbar_instantiate): Ditto.
7002 (mswindows_combo_box_instantiate): Ditto.
7003 (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
7004 style to the "clip" window.
7005 (mswindows_button_instantiate): Removed compilation warning by
7006 equally typing terms of the ?: operator.
7008 2000-01-12 Didier Verna <didier@xemacs.org>
7010 * redisplay.c (generate_fstring_runes): new parameter holding the
7011 last modeline-format extent.
7012 (add_glyph_to_fstring_db_runes): new parameter holding the glyph
7013 extent, fill the glyph block with it.
7014 (generate_fstring_runes): handle these parameters.
7015 (generate_formatted_string_db): ditto.
7017 * keymap.c (get_relevant_keymaps): retreive the keymaps from the
7018 glyphs'extents in the modeline.
7020 1999-01-11 Mike Woolley <mike@bulsara.com>
7022 * ntheap.c: Reduced the reserved heap space from 1Gb down to
7023 256Mb, as a workaround for the non-starting problem many people
7026 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
7028 * console-tty.c (Fset_console_tty_output_coding_system):
7029 Force redrawing tty frame.
7031 2000-01-10 Didier Verna <didier@xemacs.org>
7033 * redisplay.c (generate_fstring_runes): fix size computation bug.
7035 2000-01-09 William M. Perry <wmperry@aventail.com>
7037 * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
7039 2000-01-09 Andy Piper <andy@xemacs.org>
7041 * glyphs-msw.c: index -> i to avoid shadows.
7042 (xbm_create_bitmap_from_data): make static.
7043 (check_valid_string_or_int): deleted.
7044 (mswindows_control_wnd_proc): message -> msg to avoid shadows.
7046 * glyphs-x.c (x_update_subwindow): remove unused args.
7048 * glyphs.c (glyph_image_instance): return the thing. Don't set the
7049 back pointer - this is done in allocate_image_instance.
7050 (query_string_font): return Qnil to make the compiler happy.
7051 (unmap_subwindow): set to ~0 to make the compiler happy.
7052 (glyph_query_geometry): comment out until used.
7053 (glyph_layout): ditto.
7055 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
7057 * insdel.c (signal_after_change): Remove extraneous unbind_to().