comparison src/ChangeLog @ 442:abe6d1db359e r21-2-36

Import from CVS: tag r21-2-36
author cvs
date Mon, 13 Aug 2007 11:35:02 +0200
parents 8de8e3f6228a
children 576fb035e263
comparison
equal deleted inserted replaced
441:72a7cfa4a488 442:abe6d1db359e
1 2000-10-04 Martin Buchholz <martin@xemacs.org>
2
3 * XEmacs 21.2.36 is released.
4
5 2000-08-31 Daiki Ueno <ueno@unixuser.org>
6
7 * lread.c (locate_file): Check the path element is non-nil.
8
9 2000-10-02 Martin Buchholz <martin@xemacs.org>
10
11 * lisp.h: Warning suppression for SCO compilers.
12
13 * redisplay-tty.c (reset_tty_modes): Fix crash.
14 E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
15
16 2000-09-27 Martin Buchholz <martin@xemacs.org>
17
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.
39 (decode_signal): New.
40 (Finterrupt_process):
41 (Fkill_process):
42 (Fquit_process):
43 (Fstop_process):
44 (Fcontinue_process):
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
53 * s/irix4-0.h:
54 * s/irix5-0.h:
55 * s/cygwin32.h:
56 * s/gnu.h:
57 * s/linux.h:
58 * s/hpux.h:
59 * s/aix3-1.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().
64
65 * editfns.c (Fformat_time_string):
66 Be a little more paranoid with the return value of ctime.
67
68 * fileio.c (check_executable):
69 (check_writable):
70 Use symbolic constants X_OK, W_OK.
71
72 * console-x.c (split_up_display_spec): Fix a warning.
73
74 2000-10-02 Martin Buchholz <martin@xemacs.org>
75
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.
79
80 2000-09-30 Martin Buchholz <martin@xemacs.org>
81
82 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
83
84 * s/windowsnt.h (HAVE_STRCASECMP): Remove.
85
86 * config.h.in (HAVE_STRCASECMP): Remove.
87
88 2000-09-29 Martin Buchholz <martin@xemacs.org>
89
90 * redisplay-output.c (redisplay_output_pixmap):
91 Cleaner and possibly more 64-bit correct code.
92
93 2000-09-28 Stephen J. Turnbull <stephen@xemacs.org>
94
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
98 from pdump_load().
99
100 2000-09-26 Stephen J. Turnbull <stephen@xemacs.org>
101
102 * Makefile.in.in (versionclean): Use EXE_TARGET and
103 DUMP_TARGET instead of literal program names.
104
105 2000-09-20 Martin Buchholz <martin@xemacs.org>
106
107 * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
108
109 2000-09-19 Martin Buchholz <martin@xemacs.org>
110
111 * *: Spelling mega-patch
112
113 2000-09-19 Martin Buchholz <martin@xemacs.org>
114
115 * fns.c (bad_bad_turtle):
116 Delete "Eek!" comment, since we fixed the bug to which it refers.
117
118 2000-09-16 Martin Buchholz <martin@xemacs.org>
119
120 * alloca.c: Replace REGISTER with register.
121
122 2000-09-16 Daiki Ueno <ueno@unixuser.org>
123
124 * file-coding.c (ucs_to_char): Use countof.
125
126 2000-09-16 Martin Buchholz <martin@xemacs.org>
127
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.
132
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.
137
138 2000-09-16 Martin Buchholz <martin@xemacs.org>
139
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.
147
148 2000-09-15 Martin Buchholz <martin@xemacs.org>
149
150 * symeval.h (DEFERROR_STANDARD):
151 (DEFERROR):
152 (DEFSYMBOL):
153 (DEFSYMBOL_NO_DUMP):
154 (DEFSYMBOL_MULTIWORD_PREDICATE):
155 (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
156 (DEFKEYWORD):
157 The construct &##name is not sensible C.
158 Fixes compilation errors with Unixware native compiler.
159
160 2000-09-14 Martin Buchholz <martin@xemacs.org>
161
162 * frame.c (device_matches_console_spec): no longer takes a `frame' arg
163 (next_frame_internal): Removed. We now just have next_frame.
164 (next_frame):
165 Write a simpler and cleaner one-pass algorithm.
166 Remove called_from_delete_device arg and #ifdefed-out code.
167 (previous_frame):
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().
173
174 * window.c (Fnext_window):
175 Prettify docstring.
176 Since next_frame() is guaranteed to return a frame, remove check
177 for nil inserted in previous patch.
178 (Fprevious_window):
179 Prettify docstring.
180 Make code look more like Fnext_window.
181 (window_loop):
182 Respect the `console' arg when iterating through windows.
183 Fixes bug: (get-buffer-window buffer t device) not respecting
184 the `device' arg.
185 This function needs more work, as others have pointed out.
186
187 * frame.h: Rename prev_frame to previous_frame.
188 device_matches_console_spec no longer takes a `frame' arg.
189
190 * s/gnu.h:
191 * s/linux.h:
192 * s/hpux.h:
193 Use EMACS_BLOCK_SIGNAL instead of sigblock.
194 From "Golubev I. N." <gin@mo.msk.ru>.
195
196 * make-src-depend: Fix typo.
197
198 2000-09-13 Martin Buchholz <martin@xemacs.org>
199
200 * window.c (Fnext_window):
201 next_frame() might return nil, not a frame.
202 Fixes this crash:
203 (gdb) run -eval '(progn (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
204
205 * frame.c (next_frame_internal):
206 We've passed a frame if we've passed its device.
207 Fixes this crash:
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)
210
211 2000-09-11 Jonathan Harris <jhar@tardis.ed.ac.uk>
212
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.
216
217 2000-09-10 Jonathan Harris <jhar@tardis.ed.ac.uk>
218
219 * event-msw.c (mswindows_key_to_emacs_keysym):
220 Add "pause" key, fix "menu" key.
221
222 2000-09-09 Martin Buchholz <martin@xemacs.org>
223
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.
227
228 2000-09-04 Martin Buchholz <martin@xemacs.org>
229
230 * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
231 From Kenichi Handa.
232
233 2000-09-01 Martin Buchholz <martin@xemacs.org>
234
235 * make-src-depend: Make the generated Makefiles smaller.
236
237 * s/hpux.h (SETUP_SLAVE_PTY):
238 Provide a %d in the format string for the errno argument.
239
240 * editfns.c (Ftemp_directory):
241 Warning fix.
242 Avoid buffer overrun on very long file name.
243
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 *).
247
248 * unexhp9k800.c: Warning fixes. Fiddly changes.
249
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.
254
255 * sysdep.c (get_pty_max_bytes):
256 Support pty input lines longer than 512 bytes on HP-UX 10.20.
257
258 2000-08-31 Martin Buchholz <martin@xemacs.org>
259
260 * tooltalk.c: Add #include <syssignal.h>
261
262 2000-08-12 Alexandre Oliva <aoliva@redhat.com>
263
264 * s/hpux.h: Don't use undefined function sigunblock().
265
266 2000-08-31 Martin Buchholz <martin@xemacs.org>
267
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.
272
273 2000-08-23 Yoshiki Hayashi <yoshiki@xemacs.org>
274
275 * syntax.c (regex_emacs_buffer_p): New variable.
276 * syntax.h (regex_emacs_buffer_p): extern.
277 * search.c (looking_at_1):
278 (string_match_1):
279 (fast_string_match):
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.
283
284 2000-08-23 Andy Piper <andy@xemacs.org>
285
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.
289
290 2000-08-23 Andy Piper <andy@xemacs.org>
291
292 * gui-msw.c (mswindows_handle_gui_wm_command): set
293 action_occurred.
294 * gui-x.c (popup_selection_callback): ditto.
295
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.
299
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.
304
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.
310
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.
316
317 * redisplay.c (redisplay_frame): reset the frame cache if the
318 frame is garbaged.
319
320 * window.c (Fset_window_configuration): potentially re-enable
321 frame cache reset.
322 (window_unmap_subwindows): need to finalize instances here since
323 it is only used in mark_window_as_deleted.
324
325 2000-08-22 Stephen J. Turnbull <stephen@xemacs.org>
326
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.
331
332 2000-08-14 Stephen J. Turnbull <stephen@xemacs.org>
333
334 * nas.c: Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
335 of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
336
337 2000-08-21 Andy Piper <andy@xemacs.org>
338
339 * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
340 window if it is not already displayed.
341
342 * glyphs-msw.c (mswindows_map_subwindow): only map the window if
343 it is not already displayed.
344
345 * window.c (Fset_window_configuration): don't reset the frame
346 cache.
347
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.
353
354 2000-08-21 Martin Buchholz <martin@xemacs.org>
355
356 * data.c (indirect_function):
357 Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
358
359 * eval.c (function_argcount):
360 Use original function when signaling errors.
361
362 2000-08-18 Andy Piper <andy@xemacs.org>
363
364 * frame.c (delete_frame_internal): use new
365 free_frame_subwindow_instances name.
366
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.
372
373 * glyphs-widget.c (tab_control_update): Correct comment.
374
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
380 changes.
381 (allocate_window): ditto.
382 (make_dummy_parent): ditto.
383
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.
391
392 * gui.c (gui_item_list_find_selected): new function.
393
394 * gui.h (gui_item_list_find_selected): declare.
395
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.
399
400 * glyphs-x.h: add lwlib-utils.h
401
402 * buffer.c (Frecord_buffer): undo previous change.
403
404 2000-08-09 Vin Shelton <acs@xemacs.org>
405
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
411 for details.
412
413 2000-08-07 Ben Wing <ben@xemacs.org>
414
415 * getloadavg.c: remove duplicate (and windows-breaking)
416 includes of fcntl.h and sys/file.h.
417
418 * nt.c: remove duplicate getloadavg() definition.
419
420 * sysdll.h (Qdll_filename_encoding): add missing stand-in
421 encodings.
422
423 2000-08-07 Gunnar Evermann <ge204@eng.cam.ac.uk>
424
425 * eval.c (function_argcount): If function needs to be autoloaded
426 actually use the loaded definition.
427 GCPRO function.
428
429 2000-08-05 Ben Wing <ben@xemacs.org>
430
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.
434
435 * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
436
437 * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
438 don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
439 useful load average.
440
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.
447
448 * m\*.h: removed useless VIRT_ADDR_VARIES.
449
450 * m\powerpc.h: removed stray NO_ARG_ARRAY.
451
452 2000-04-26 IKEYAMA Tomonori <tomonori@suiyokai.org>
453
454 * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
455 color if the image is a mono pixmap.
456
457 2000-07-30 Ben Wing <ben@xemacs.org>
458
459 * Makefile.in.in (release):
460 Remove stray @.
461
462 * buffer.c (directory_is_current_directory):
463 * dired-msw.c (mswindows_get_files):
464 * dired.c:
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
470 (e.g. SCO).
471
472 * callproc.c (egetenv): GC docs.
473
474 * console-msw.h:
475 * console-msw.h (struct mswindows_dialog_id):
476 * lrecord.h (lrecord_type):
477 New object for use with MSW dialogs.
478
479 * console.h (struct console_methods):
480 New enable/disable frame methods, for proper modal dialogs.
481
482 * device-msw.c (msprinter_default_printer): Fix to follow
483 proper Mule conventions.
484
485 * device-msw.c:
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.
501
502 * dialog-msw.c:
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.
510
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.
515 Return an id.
516
517 * dialog.c:
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.
521
522 * eval.c:
523 * eval.c (signal_call_debugger):
524 when noninteractive, output stack traces on the console instead
525 of in a (never-seen) buffer.
526
527 * eval.c (signal_type_error):
528 * eval.c (invalid_argument_2):
529 * lisp.h:
530 new funs for use w/structured errors.
531
532 * event-Xt.c:
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):
537 * event-msw.c:
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.
542
543 * event-stream.c:
544 document next-event more clearly.
545
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):
568 (1). (2).
569 fix up gcpro's.
570
571 * frame-msw.c:
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):
578 (2).
579 implement new enable/disable frame methods.
580
581 * frame-x.c:
582 * frame-x.c (x_enable_frame):
583 * frame-x.c (console_type_create_frame_x):
584 implement new enable/disable frame methods.
585
586 * frame.c:
587 * frame.c (Fdisable_frame):
588 * frame.c (syms_of_frame):
589 * frame.h (struct frame):
590 implement new enable/disable frame methods/functions.
591
592 * general-slots.h:
593 add initial-focus.
594
595 * glyphs-msw.c (mswindows_widget_instantiate):
596 comment that initial-focus should be implemented.
597
598 * glyphs-widget.c:
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):
617 (2).
618 support (unimplemented) keyword initial-focus.
619 reindent long macros.
620
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):
629 * gui-x.c:
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):
634 * gui-x.h:
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.
638
639 * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
640
641 * glyphs.h (struct Lisp_Image_Instance):
642 * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
643 add initial-focus flag.
644
645 * gui.c:
646 * gui.c (syms_of_gui):
647 * gui.c (vars_of_gui):
648 clean up menu-no-selection-hook.
649
650 * gui.h:
651 support delete-dialog-box-hook.
652
653 * lread.c (Fload_internal):
654 * lread.c (locate_file_in_directory_mapper):
655 (1).
656
657 * lrecord.h:
658 * lrecord.h (struct toolbar_button):
659 * lrecord.h (syms_of_toolbar):
660 document how to create a new object.
661
662 * menubar-msw.c (mswindows_char_is_accelerator):
663 may be called on frames w/o menus.
664
665 * menubar.c (vars_of_menubar):
666 clean up :filter docs.
667
668 * nt.c (readdir):
669 * ntproc.c:
670 (1).
671
672 * process-nt.c:
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):
680 (2).
681 delete quote-handling. call new lisp code that does it better.
682
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):
689 (1). (2).
690
691 * process.c:
692 * process.c (Fstart_process_internal):
693 (2). need to canonicalize process path even if absolute.
694
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):
699 * select.c:
700 * select.c (syms_of_select):
701 * select.h:
702 support dibv5, fix bugs. (from Mike Alexander)
703
704 * select.c (Fget_selection_internal):
705 * select.c (select_convert_out):
706
707 * sysdep.c:
708 * sysdep.c (xemacs_stat):
709 renamed.
710
711 * sysdep.c (mkdir):
712 * sysdep.c (rmdir):
713 but keep original stat() here because we provide encapsulation
714 around these funs.
715
716 * sysfile.h:
717 * sysfile.h (fstat):
718 remove stat garbage.
719
720 * syswindows.h:
721 fix X/MSW conflict.
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)
725
726 * toolbar.c:
727 use default object printer for toolbar-button.
728
729 * unexcw.c:
730 make sure we don't encapsulate.
731
732 * window.c (vars_of_window):
733 emphasize that temp-buffer-show-hook is obsolete.
734
735 2000-08-05 Martin Buchholz <martin@xemacs.org>
736
737 * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
738 (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
739
740 * events.c (Fevent_timestamp_lessp):
741 Not 64-bit clean. Use EMACS_INT, not int.
742
743 2000-06-05 Andrew Begel <abegel@cs.berkeley.edu>
744
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.
757
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.
761
762 2000-08-03 Yoshiki Hayashi <yoshiki@xemacs.org>
763
764 * glyphs.h (check_valid_item_list): Renamed from
765 check_valid_item_list_1.
766
767 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
768
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.
774
775 * select.c (select_coerce): New.
776 * select.h (select_coerce): Declare.
777 New function to coerce one type of data into another.
778
779 2000-08-03 Martin Buchholz <martin@xemacs.org>
780
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.
785
786 2000-08-01 Martin Buchholz <martin@xemacs.org>
787
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.
791
792 2000-07-31 Yoshiki Hayashi <yoshiki@xemacs.org>
793
794 * window.c (Fwindow_pixel_edges): Subtract frame border and
795 gutter size.
796
797 2000-07-31 Andy Piper <andy@xemacs.org>
798
799 * buffer.c (Frecord_buffer): make absolutely sure that redisplay
800 will acknowledge the change.
801
802 * glyphs.h: declare tab_control_order_only_changed.
803
804 * glyphs-x.c (x_tab_control_redisplay): use
805 tab_control_order_only_changed.
806
807 * glyphs-widget.c (tab_control_order_only_changed): new function.
808
809 * glyphs-msw.c (mswindows_tab_control_redisplay): use
810 tab_control_order_only_changed.
811
812 * gui.c (gui_item_equal_sans_selected): new function.
813 (gui_item_equal): use it.
814
815 * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
816 :properties in favor of :items..
817
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.
828
829 * print.c (debug_print_no_newline): only write to debugger if in
830 WIN32_NATIVE.
831
832 * elhash.c (Fmake_hash_table): update doc string.
833
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.
837
838 2000-07-31 Martin Buchholz <martin@xemacs.org>
839
840 * config.h.in:
841 Make existence of s&m files optional.
842
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.
849 * fns.c:
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().
854
855 2000-07-30 Martin Buchholz <martin@xemacs.org>
856
857 * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
858
859 2000-07-25 Andy Piper <andy@xemacs.org>
860
861 * syswindows.h: add tchar.h for native builds.
862
863 * frame.c (syms_of_frame): remove set-glyph-image.
864
865 * general-slots.h: add Qset_glyph_image.
866
867 * glyphs-widget.c (layout_update): add domain arg to
868 set-glyph-image.
869 (syms_of_glyphs_widget): remove set-glyph-image.
870
871 2000-07-23 Ben Wing <ben@xemacs.org>
872
873 * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
874 Vpopup_frame_list.
875
876 2000-07-22 Andy Piper <andy@xemacs.org>
877
878 * symsinit.h: add syms_of_win32().
879
880 * gui-msw.c (syms_of_gui_mswindows): remove
881 Fmswindows_shell_execute.
882 (Fmswindows_shell_execute): moved to win32.c.
883
884 * emacs.c (main_1): add syms_of_win32 ().
885
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.
890
891 * device-msw.c (Fmswindows_printer_list): clean up args to
892 EnumPrinters.
893 Don't include tchar under cygwin or mingw.
894 (msprinter_default_printer): make cygwin-friendly.
895
896 2000-07-21 Andy Piper <andy@xemacs.org>
897
898 * glyphs-widget.c (image_instantiator_tree_view): use tab
899 control's update function.
900 (layout_property): new function. Retrieve items.
901
902 * glyphs-msw.c (mswindows_tree_view_redisplay): new
903 function. Re-populate the tree view from the pending items.
904
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.
910
911 * redisplay.h: change redisplay_output_layout signature.
912
913 * redisplay-msw.c (mswindows_output_display_block): use domain
914 arg.
915
916 * redisplay-x.c (x_output_display_block): use domain arg.
917
918 2000-07-10 Andy Piper <andy@xemacs.org>
919
920 * window.c (Fset_window_configuration): add comment.
921
922 * redisplay-output.c (compare_runes):
923 (redisplay_output_subwindow): redisplay rather than update subwindow.
924 (redisplay_output_layout): ditto.
925
926 * redisplay-msw.c (mswindows_frame_output_end):
927 (mswindows_frame_output_end): make defer window pos optional.
928
929 * lisp.h: add Flast.
930
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
934 method.
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.
940
941 * glyphs.c:
942 (find_instantiator_differences): new function.
943 (Fset_instantiator_property): new convenience function.
944 (check_image_instance_structure): strictly check for vector
945 instantiators.
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
966 instantiator.
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.
976
977 * glyphs-x.c:
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
984 stacking order.
985 (console_type_create_glyphs_x): update -> redisplay.
986 (image_instantiator_format_create_glyphs_x): ditto.
987
988 * glyphs-widget.c:
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
993 intern.
994 (widget_update): renamed from widget_set_property. Call cascaded
995 update methods.
996 (redisplay_widget): renamed from update_widget.
997 (widget_layout): image_instance_layout now takes position as well
998 as size.
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
1005 normalized also.
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
1012 anymore.
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.
1025
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.
1050
1051 * glyphs-eimage.c (jpeg_normalize):
1052 (gif_normalize):
1053 (png_normalize):
1054 (tiff_normalize): add dest_mask so that it can be proprogated by
1055 layout_normalize.
1056
1057 * elhash.c:
1058 (print_hash_table):
1059 (hash_table_weakness_validate):
1060 (decode_hash_table_weakness):
1061 (Fhash_table_weakness):
1062 (Fhash_table_type):
1063 (syms_of_elhash): use Ben's naming scheme for hashtable types..
1064
1065 * console.h (struct console_methods): move update_* to
1066 redisplay_*.
1067
1068 2000-07-20 Ben Wing <ben@xemacs.org>
1069
1070 * *.[ch] (XSETOBJ): remove unused middle argument.
1071 lisp-disunion.h: correct wrap_object() to one argument.
1072
1073 2000-07-15 Ben Wing <ben@xemacs.org>
1074
1075 * s/cygwin32.h:
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.
1079
1080 * s/windowsnt.h: [5].
1081
1082 2000-07-15 Ben Wing <ben@xemacs.org>
1083
1084 * Makefile.in.in (x_objs):
1085 * Makefile.in.in (sheap_objs):
1086 * Makefile.in.in (objs):
1087 added win32.o, cosmetic cleanups.
1088
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.
1092
1093 * alloc.c (syms_of_alloc):
1094 [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
1095
1096 * buffer.c:
1097 Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
1098
1099 * buffer.c (Fget_file_buffer):
1100 Fixed GCPRO problem.
1101
1102 * buffer.c (get_truename_buffer):
1103 Fixed comment about GC checking.
1104
1105 * buffer.c (syms_of_buffer):
1106 Undeclared those dedicated frame funs.
1107 [2].
1108
1109 * buffer.h:
1110 Define convenience macros for internal/external conversions.
1111 [[[3]]]: Define codesys aliases Qcommand_argument_encoding
1112 and Qenvironment_variable_encoding for cleaner code.
1113
1114 * bufslots.h:
1115 Remove dedicated-frame; in lisp.
1116
1117 * bytecode.c (funcall_compiled_function):
1118 [1].
1119
1120 * bytecode.c (syms_of_bytecode):
1121 [2].
1122
1123 * console-msw.c:
1124 * console-msw.c (mswindows_show_console): Rewrote.
1125
1126 * console-msw.c (Fmswindows_debugging_output): New.
1127 Sends to OutputDebugString (special MSWin debugger interface).
1128
1129 * console-msw.c (Fmswindows_message_box):
1130 Fixed stupid bugs so it works when called from kill-emacs.
1131
1132 * console-msw.c (syms_of_console_mswindows):
1133 Declare Fmswindows_debugging_output.
1134
1135 * console-msw.h:
1136 New MSWin prototypes.
1137
1138 * console-msw.h (struct mswindows_frame):
1139 New entry last-click-mods for improved button-modifier support.
1140
1141 * console-msw.h (FRAME_MSWINDOWS_POPUP):
1142 New struct entry `popup' with corresponding accessor.
1143
1144 * console-x.c:
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];
1151
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.
1155
1156 * console-x.h:
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.
1160
1161 * console.h (struct console_methods):
1162 New method make_dialog_box_internal supersedes older
1163 popup_dialog_box method.
1164
1165 * data.c:
1166 Define many new errors, part of new structured errors.
1167
1168 * data.c (init_errors_once_early):
1169 * data.c (syms_of_data):
1170 [2].
1171
1172 * device-msw.c (mswindows_init_device):
1173 [[[5]]]: Cleanup to support NT 3.51.
1174
1175 * device-msw.c (decode_devmode): Cleanup.
1176
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.
1183
1184 * device-x.c:
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):
1189 [6].
1190 [7].
1191
1192 * device.h (wrap_device): New.
1193 First of its kind; meant to replace XSETDEVICE.
1194
1195 * dialog-msw.c: Many file-dialog symbols.
1196
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.
1200
1201 * dialog-msw.c (dialog_proc):
1202 Support hitting ESC in dialogs.
1203
1204 * dialog-msw.c (struct):
1205 Common dialog box errors.
1206
1207 * dialog-msw.c (handle_file_dialog_box): New.
1208 Add file dialog code.
1209
1210 * dialog-msw.c (handle_question_dialog_box):
1211 Redo existing code to support new question dialog syntax.
1212
1213 * dialog-msw.c (console_type_create_dialog_mswindows):
1214 We support new dialog console method.
1215
1216 * dialog-msw.c (syms_of_dialog_mswindows):
1217 * dialog-msw.c (vars_of_dialog_mswindows):
1218 New file dialog symbols, vars.
1219
1220 * dialog-x.c:
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.
1227 [6].
1228
1229 * dialog.c:
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.
1234
1235 * eldap.c (Fldap_open):
1236 * eldap.c (Fldap_search_basic):
1237 * eldap.c (Fldap_add):
1238 * eldap.c (Fldap_modify):
1239 [1].
1240 [7].
1241
1242 * emacs.c:
1243 * emacs.c (make_arg_list_1):
1244 * emacs.c (make_arg_list):
1245 Mule-ize call to dll_init().
1246 [6].
1247 [8].
1248
1249 * emacs.c (make_argc_argv):
1250 * emacs.c (free_argc_argv):
1251 * emacs.c (init_cmdargs):
1252 * emacs.c (main_1):
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.
1258 [7].
1259
1260 * eval.c:
1261 * eval.c (For):
1262 * eval.c (Fand):
1263 * eval.c (Fprogn):
1264 * eval.c (Fprog1):
1265 * eval.c (Fprog2):
1266 * eval.c (FletX):
1267 * eval.c (Flet):
1268 * eval.c (condition_case_3):
1269 * eval.c (Feval):
1270 * eval.c (function_argcount):
1271 * eval.c (funcall_lambda):
1272 [1].
1273
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.
1283
1284 * event-Xt.c:
1285 * event-Xt.c (x_event_to_emacs_event):
1286 Buttons are now modifiers too.
1287
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.
1291
1292 * event-msw.c:
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.
1300
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.
1304
1305 * event-stream.c:
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.
1310
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.
1314
1315 * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
1316
1317 * events.c:
1318 * events.c (Fmake_event):
1319 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
1320 [1].
1321 [9].
1322
1323 * events.c (format_event_object): fix gcc warnings.
1324
1325 * events.c (Fevent_timestamp): Document new primitives.
1326
1327 * events.c (TIMESTAMP_HALFSPACE): New.
1328
1329 * events.c (Fevent_timestamp_lessp): New. New primitive for
1330 comparing timestamps correctly (half-space algorithm).
1331
1332 * events.c (Fevent_modifier_bits): Doc fix.
1333
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.
1337
1338 * events.h:
1339 Update long comment for button modifiers, timestamps.
1340
1341 * events.h (struct event_stream):
1342 New current_event_timestamp method.
1343
1344 * extents.c:
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):
1349 Fix gcc warnings.
1350 [9].
1351
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'.
1360
1361
1362 * extents.c (get_text_property_bytind):
1363 extent_at_bytind has another arg.
1364 [9].
1365
1366 * extents.c (syms_of_extents): New primitive.
1367
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].
1371
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):
1377 Clean up GCPROing.
1378
1379 * fileio.c (syms_of_fileio): [2].
1380
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):
1386 Clean up GCPROing.
1387
1388 * fns.c (concat): Fix gcc warning.
1389
1390 * fns.c (Fmember):
1391 * fns.c (Fold_member):
1392 * fns.c (Fmemq):
1393 * fns.c (Fold_memq):
1394 * fns.c (memq_no_quit):
1395 * fns.c (Fassoc):
1396 * fns.c (Fold_assoc):
1397 * fns.c (Fassq):
1398 * fns.c (Fold_assq):
1399 * fns.c (assq_no_quit):
1400 * fns.c (Frassoc):
1401 * fns.c (Fold_rassoc):
1402 * fns.c (Frassq):
1403 * fns.c (Fold_rassq):
1404 * fns.c (rassq_no_quit):
1405 * fns.c (Fdelete):
1406 * fns.c (Fold_delete):
1407 * fns.c (Fdelq):
1408 * fns.c (Fold_delq):
1409 * fns.c (delq_no_quit):
1410 * fns.c (Fremassoc):
1411 * fns.c (Fremassq):
1412 * fns.c (remassq_no_quit):
1413 * fns.c (Fremrassoc):
1414 * fns.c (Fremrassq):
1415 * fns.c (remrassq_no_quit):
1416 * fns.c (Freverse):
1417 * fns.c (mapcar1):
1418 [1].
1419
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.
1423
1424 * frame-tty.c (tty_raise_frame_no_select): [1].
1425
1426 * frame-x.c:
1427 * frame-x.c (x_set_frame_text_value):
1428 * frame-x.c (x_set_frame_properties):
1429 * frame-x.c (x_create_widgets):
1430 [7].
1431
1432 * frame.c:
1433 * frame.c (Fmouse_pixel_position): Minor doc fixes.
1434
1435 * frame.h (wrap_frame): New.
1436 Macro like wrap_device.
1437
1438 * general.c:
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.
1443
1444 * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
1445 * glyphs-msw.c (mswindows_resource_instantiate): [5].
1446
1447 * glyphs-msw.c (mswindows_native_layout_instantiate):
1448 Add DS_CONTROL so keyboard traversal will work.
1449
1450 * glyphs-widget.c:
1451 * glyphs-widget.c (syms_of_glyphs_widget):
1452 Move some symbols to general-slots.h.
1453
1454 * glyphs-x.c:
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):
1464 [7].
1465
1466 * glyphs.c (syms_of_glyphs):
1467 [2].
1468
1469 * gui-x.c:
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.
1479 [9].
1480
1481 * gui-x.h:
1482 Muleize, prototype changes matching gui-x.c.
1483
1484 * gui.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):
1492 * gui.h:
1493 menu-no-selection-hook moved here (used by MSWin).
1494 Move some symbols to general-slots.h.
1495 [6].
1496 [9].
1497
1498 * insdel.c (get_buffer_pos_char):
1499 * insdel.c (get_buffer_range_char):
1500 Add GC comments.
1501
1502 * keymap.c (keymap_lookup_directly):
1503 * keymap.c (keymap_store):
1504 * keymap.c (ensure_meta_prefix_char_keymapp):
1505 * keymap.c (describe_map):
1506 * keymap.h:
1507 Support new button modifiers.
1508
1509 * lisp-disunion.h (wrap_object):
1510 * lisp-disunion.h (XSETOBJ):
1511 Rename make_obj to wrap_object.
1512
1513 * lisp-union.h:
1514 * lisp-union.h (make_int):
1515 * lisp-union.h (make_char):
1516 Support wrap_object.
1517
1518 * lisp.h:
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
1542 themselves.
1543
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.
1552
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):
1556 [5].
1557 [9].
1558
1559 * menubar-x.c:
1560 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
1561 Mule-ize whole file.
1562
1563 * menubar.c (Fnormalize_menu_item_name): Add optimization.
1564
1565 * mule-charset.c (Fmake_charset):
1566 * mule-wnnfns.c (Fwnn_set_param):
1567 [1].
1568
1569 * ntproc.c (create_child):
1570 * ntproc.c (Fwin32_set_current_locale):
1571 Add comments portending doom.
1572
1573 * objects-msw.c:
1574 * objects-msw.c (old_font_enum_callback_2):
1575 * objects-msw.c (font_enum_callback_1):
1576 * objects-msw.c (mswindows_enumerate_fonts):
1577 [5].
1578
1579 * objects-x.c:
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.
1598 [7].
1599
1600 * objects-x.h:
1601 Mule-verify.
1602
1603 * print.c:
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.
1609
1610 * process-nt.c (send_signal):
1611 * process-nt.c (nt_create_process):
1612 Use newer Unicode macros.
1613
1614 * process-unix.c (unix_create_process):
1615 * process-unix.c (unix_canonicalize_host_name):
1616 * process-unix.c (unix_open_network_stream):
1617 [7].
1618
1619 * scrollbar-x.c:
1620 Mule-verify.
1621
1622 * search.c (syms_of_search):
1623 [2].
1624
1625 * select-msw.c (mswindows_destroy_selection):
1626 Use LIST_LOOP_2.
1627
1628 * select-x.c (symbol_to_x_atom):
1629 [7].
1630
1631 * select.c (syms_of_select):
1632 [2].
1633
1634 * sound.c (Fplay_sound_file):
1635 [7].
1636
1637 * specifier.c:
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):
1656 [9].
1657
1658 * specifier.c (syms_of_specifier):
1659 Move some symbols to general-slots.h.
1660 [2].
1661
1662 * symbols.c:
1663 * symbols.c (Fmapatoms):
1664 * symbols.c (Fapropos_internal):
1665 Add GCPROs.
1666
1667 * symbols.c (set_default_buffer_slot_variable):
1668 * symbols.c (set_default_console_slot_variable):
1669 [1].
1670
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):
1676 * symeval.h:
1677 * symeval.h (DEFSYMBOL):
1678 Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
1679
1680 * symbols.c (syms_of_symbols):
1681 [2].
1682
1683 * symsinit.h:
1684 * symsinit.h (init_win32): New.
1685 Also new is syms_of_dialog_mswindows.
1686
1687 * syswindows.h:
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.
1692
1693 * toolbar-x.c:
1694 Mule-verify.
1695
1696 * tooltalk.c (Fadd_tooltalk_message_arg):
1697 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
1698 * tooltalk.c (Fadd_tooltalk_pattern_arg):
1699 [7].
1700
1701 * tooltalk.c (syms_of_tooltalk):
1702 [2].
1703
1704 * unexnt.c:
1705 * unexnt.c (unexec):
1706 Fix up headers, declaration of unexec() to be more standard.
1707
1708 2000-07-20 Martin Buchholz <martin@xemacs.org>
1709
1710 * offix.h: Revert change to guard macros - they're used in offix.c!
1711
1712 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
1713
1714 * lisp.h: Defsubred Fdelete.
1715
1716 * console-msw.h: (msprinter_default_printer): Added.
1717
1718 * console-msw.c (msprinter_canonicalize_console_connection):
1719 (msprinter_canonicalize_device_connection): Added.
1720
1721 * device-msw.c (msprinter_default_printer):
1722 (Fmswingows_get_default_printer):
1723 (signal_enum_priner_error):
1724 (Fmswingows_printer_list): Added.
1725
1726 2000-07-19 Martin Buchholz <martin@xemacs.org>
1727
1728 * XEmacs 21.2.35 is released.
1729
1730 2000-07-19 Martin Buchholz <martin@xemacs.org>
1731
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.
1735
1736 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
1737
1738 * event-msw.c (mswindows_drain_windows_queue): Correctly check for
1739 XEmacs frame (fix for doubling chars in dialog boxes).
1740
1741 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
1742
1743 * select.c (select_convert_in, select_convert_out):
1744 Don't call intern() every time.
1745
1746 * select.c (Qselect_convert_in, Qselect_convert_out): New.
1747 * select.c (vars_of_select): Initialise them.
1748
1749 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
1750
1751 * select.c (selection-coercible-types): New.
1752
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.
1757
1758 * select.c (select_convert_out): Use selection-coercible-types
1759 to find types that we can attempt to perform coercions on.
1760
1761 2000-07-18 Martin Buchholz <martin@xemacs.org>
1762
1763 * mule-wnnfns.c:
1764 * mule-canna.c:
1765 Add coding: cookie to identify encoding.
1766
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().
1770
1771 * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
1772
1773 * select.c (syms_of_select): Add missing DEFSUBR.
1774
1775 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
1776
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.
1780
1781 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
1782
1783 * gpmevent.c (tty_selection_exists_p):
1784 * gpmevent.c (tty_own_selection):
1785 Updated parameter lists.
1786
1787 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
1788
1789 * select.h (selection-alist): Removed declaration.
1790
1791 * select.h (get_local_selection):
1792 * select.c (get_local_selection):
1793 Made static.
1794
1795 * select.h (convert_selection): Removed declaration.
1796 * select.c (convert_selection): Removed.
1797 This function belongs in Lisp.
1798
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.
1804
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.
1808
1809 * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
1810 X-specific lisp code.
1811
1812 * select.h: Declare some of the lisp-visible functions for
1813 external use.
1814
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).
1819
1820 * select.c (available-selection-types): Fixed stupidity where
1821 INTEGER and ATOM got added twice. Also add STRING when we see an
1822 extent.
1823
1824 * select.c (get-selection-internal): Removed symbol stripping. No
1825 longer causes conversion when data comes from the internal cache.
1826
1827 * select.c (syms_of_select): Added new functions.
1828
1829 * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
1830 error checking - previously this called abort!
1831
1832 * select-x.c (x_own_selection): Changed comment.
1833
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.
1836
1837 * select-x.c (x_get_foreign_selection): Use select_convert_in.
1838
1839 * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
1840 rather than messing with selection-alist.
1841
1842 * select-msw.c (mswindows_get_foreign_selection):
1843 Use TO_INTERNAL_FORMAT rather than hacking.
1844
1845 2000-07-14 Martin Buchholz <martin@xemacs.org>
1846
1847 * process-unix.c (unix_open_multicast_group):
1848 (unix_open_multicast_group): Remove useless casts.
1849
1850 2000-07-13 Martin Buchholz <martin@xemacs.org>
1851
1852 * sound.c (Fplay_sound): Fix `unused variable' warning.
1853
1854 * emacs.c (main): Use correct type for _environ on SCO5.
1855
1856 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
1857
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.
1863
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.
1867
1868 * event-msw.c (mswindows_wnd_proc): Call it.
1869
1870 * lisp.h, general.c (Qappend): New symbol representing a
1871 `how-to-add' mode.
1872
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 &
1883 variables.
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):
1888
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
1892 clipboard formats.
1893 * select.h, select.c (Qreplace_all, Qreplace_existing): New
1894 symbols representing `how-to-add' modes.
1895
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):
1913
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
1917 functionality.
1918 * select-x.c (x_own_selection):
1919
1920 * specifier.c: Remove definition of Qappend (now in general.c)
1921 * specifier.c (syms_of_specifier): Remove Qappend.
1922
1923 2000-07-12 Martin Buchholz <martin@xemacs.org>
1924
1925 * config.h.in: Add socklen_t.
1926
1927 * s/decosf4-0.h: No special compiler flags needed or desired.
1928 In particular, undefine _BSD for DEC OSF 4.0.
1929
1930 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
1931
1932 * redisplay-msw.c (msprinter_frame_output_end): Added.
1933 (console_type_create_redisplay_mswindows): Referred the above.
1934
1935 * frame.c (setup_frame_without_minibuffer): Do not create a
1936 default minibuffer frame on a printer device.
1937
1938 * frame-msw.c (apply_dc_geometry): Added.
1939 (msprinter_start_page):
1940 (msprinter_init_frame_3):
1941 (msprinter_eject_page): Use it.
1942
1943 * console-msw.h (struct msprinter_frame): Added pix_left and top,
1944 and removed residual duplex and orientation properties.
1945
1946 2000-07-11 Martin Buchholz <martin@xemacs.org>
1947
1948 * eval.c (function_argcount): Work around a DEC CC compiler bug.
1949
1950 * unexalpha.c: Remove system prototypes from C sources!
1951
1952 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com>
1953
1954 * eval.c: Remove references to M-x edit-options in DEFUNs for
1955 `defvar' and `defconst'.
1956
1957 2000-07-09 Martin Buchholz <martin@xemacs.org>
1958
1959 * config.h.in: Remove SMART_INCLUDE hackery.
1960
1961 PostgreSQL hacking:
1962 * config.h.in: Don't use SMART_INCLUDE.
1963
1964 * postgresql.h: Include libpq-fe.h here. Fix typo.
1965 * inline.c: Simply #include "postgresql.h"
1966 * postgresql.c:
1967 - Don't use SMART_INCLUDE
1968 - Use simply "const".
1969 - Use standard doc string conventions.
1970 - Use correct type for result of PQstatus.
1971
1972 2000-07-09 Martin Buchholz <martin@xemacs.org>
1973
1974 * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
1975
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.
1983
1984 2000-07-09 Martin Buchholz <martin@xemacs.org>
1985
1986 * general.c: Remove duplicate definition for Qfunction.
1987
1988 2000-07-08 Ben Wing <ben@xemacs.org>
1989
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.
1998
1999 * vm-limit.c (check_memory_limits):
2000 avoid infinite loop printing warning messages.
2001
2002 2000-07-05 Craig Lanning <lanning@scra.org>
2003
2004 * Makefile.in.in: Add support for including the Windows resources
2005 when building with the cygwin and mingw targets.
2006
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.
2012
2013 * s\cygwin32.h:
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.
2017
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
2025 constant string.
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.
2032
2033 * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
2034
2035 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
2036
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();
2043
2044 * console.h (struct console_methods): Indentation nitpicking.
2045
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):
2056 (plist_get_margin):
2057 (plist_set_margin):
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):
2064 (allocate_devmode):
2065 (Fmsprinter_settings_copy):
2066 (Fmsprinter_settings_despecialize):
2067 (print_devmode):
2068 (finalize_devmode):
2069 (equal_devmode):
2070 (hash_devmode): Added functions
2071 (syms_of_device_mswindows): Init devmode lrecord class.
2072
2073 * device.h: Added an exfun for find-device.
2074
2075 * event-msw.c (mswindows_wnd_proc): Do not update the cached
2076 geometry; although, recreate the device compatible DC.
2077
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).
2085
2086 * lisp.h: Added symbols.
2087
2088 * general.c (syms_of_general): Declared them.
2089
2090 * hash.c (string_hash): Added.
2091
2092 * lrecord.h (lrecord_type): Added devmode lrecord type.
2093
2094 2000-07-02 Mike Sperber <mike@xemacs.org>
2095
2096 * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
2097 FreeBSD 4.0.
2098
2099 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp>
2100
2101 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2102 integer.
2103
2104 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org>
2105
2106 * data.c (Fstring_to_number): Don't recognize floating point if
2107 base is not 10.
2108
2109 2000-06-22 Martin Buchholz <martin@xemacs.org>
2110
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.
2116
2117 2000-06-18 Martin Buchholz <martin@xemacs.org>
2118
2119 * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
2120 * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
2121
2122 2000-06-17 Martin Buchholz <martin@xemacs.org>
2123
2124 * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
2125 conflicts with gcc's fixincluded version of FOO.h.
2126
2127 * glyphs.h (image_instance_geometry): Remove trailing `,'
2128
2129 2000-06-08 Mike Alexander <mta@arbortext.com>
2130
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
2135 chance to run
2136 (ntpipe_shove_closer): Don't delete the pipe until we're done with
2137 it.
2138
2139 2000-06-12 Ben Wing <ben@xemacs.org>
2140
2141 * s\mingw32.h (sigset):
2142 * s\windowsnt.h (sigset):
2143 rename msw_ to mswindows_ for consistency with general convention.
2144
2145 2000-06-12 Ben Wing <ben@xemacs.org>
2146
2147 * console-msw.c:
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):
2155 * console-msw.h:
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):
2164 * nt.c:
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):
2170 * ntproc.c:
2171 * ntproc.c (find_child_console):
2172 * ntproc.c (sys_kill):
2173 * print.c:
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):
2179 * syssignal.h:
2180 rename msw_ to mswindows_ for consistency with general convention.
2181
2182 * emacs.c:
2183 * dumper.c:
2184 include nt.h, not syswindows.h.
2185
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.
2190
2191 * nt.h:
2192 include syswindows.h. move some sysdep.h stuff here.
2193
2194 * ntheap.h:
2195 include syswindows.h, not <windows.h>.
2196
2197 * ntplay.c:
2198 clean up headers.
2199
2200 * sysdep.c:
2201 clean up headers.
2202
2203 * sysdep.c (sys_fstat):
2204 * sysdep.c (sys_stat):
2205 call mswindows versions when appropriate.
2206
2207 * sysdep.h:
2208 move mswin decls to nt.h.
2209
2210 * syswindows.h:
2211 add long comment describing appropriate use of the various windows
2212 headers.
2213
2214 2000-06-11 Ben Wing <ben@xemacs.org>
2215
2216 * device-x.c: Correct doc string for sixth arg of x-get-resource.
2217
2218 2000-06-10 Ben Wing <ben@xemacs.org>
2219
2220 * Makefile.in.in (release):
2221 Correction to make sure xemacs.exe always dumped when correct.
2222
2223 * alloca.c:
2224 * balloon_help.c:
2225 [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
2226
2227 * buffer.c (set_buffer_internal):
2228 [[[[2]]]]: Remove HAVE_FEP code.
2229
2230 * buffer.c (init_initial_directory):
2231 [3].
2232
2233 * bytecode.c:
2234 [[[[4]]]]: limits.h standardly included in lisp.h; remove from
2235 individual files.
2236
2237 * callproc.c:
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
2248 where correct.
2249 __MINGW32__ -> MINGW.
2250 Fix windows.h includes.
2251 Remove bogus HAVE_NTGUI.
2252
2253 * config.h.in:
2254 [2].
2255
2256 * console-msw.c:
2257 mswindows_message_outputted added for use in allowing startup
2258 errors on the console to be seen.
2259
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):
2271 Fix warnings.
2272
2273 * console-stream.c (stream_init_console):
2274 Fix text/binary problems.
2275
2276 * device-msw.c:
2277 * device-msw.c (mswindows_finish_init_device):
2278 * device-msw.c (mswindows_delete_device):
2279 [1].
2280
2281 * device.c (handle_asynch_device_change):
2282 [3].
2283
2284 * dgif_lib.c:
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.
2290 [1].
2291
2292 * dired-msw.c:
2293 [4].
2294
2295 * dired.c:
2296 * dired.c (file_name_completion):
2297 * dired.c (Ffile_attributes):
2298 * dired.c (syms_of_dired):
2299 [1].
2300
2301 * dumper.c:
2302 * dumper.c (pdump_file_unmap):
2303 * dumper.c (pdump_load):
2304 [1].
2305
2306 * editfns.c:
2307 * editfns.c (Ftemp_directory):
2308 * editfns.c (user_login_name):
2309 * editfns.c (Fuser_real_login_name):
2310 * editfns.c (get_home_directory):
2311 [1].
2312
2313 * elhash.c (finish_marking_weak_hash_tables):
2314 [[[[5]]]]: Fix GCC warnings.
2315
2316 * emacs.c:
2317 * emacs.c (mswindows_handle_hardware_exceptions):
2318 * emacs.c (make_arg_list_1):
2319 * emacs.c (main_1):
2320 * emacs.c (Fkill_emacs):
2321 * emacs.c (Fdump_emacs):
2322 [1].
2323 Fix problems with nested crashes, add long comment.
2324
2325 * event-Xt.c (init_event_Xt_late):
2326 [1].
2327
2328 * event-msw.c:
2329 * event-msw.c (mswindows_dde_callback):
2330 * event-msw.c (mswindows_handle_sticky_modifiers):
2331 * event-msw.c (mswindows_wnd_proc):
2332 [1].
2333 [5].
2334
2335 * events.c (character_to_event):
2336 [1].
2337
2338 * fileio.c:
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):
2351 [1]. [4].
2352
2353 [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
2354
2355 Expand getdefdir defn.
2356 Fix bogus rename() comment.
2357
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.
2361
2362 * fns.c:
2363 * fns.c (Fsubseq):
2364 [5]. [6].
2365
2366 * frame.c (vars_of_frame):
2367 [1].
2368
2369 * getloadavg.c:
2370 * getloadavg.c (getloadavg):
2371 [1]. [6].
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.)
2374
2375 * gif_io.c:
2376 [6].
2377 Add config.h.
2378
2379 * glyphs-msw.c:
2380 * glyphs-msw.c (mswindows_resource_instantiate):
2381 [1].
2382
2383 * glyphs-x.c (x_native_layout_instantiate):
2384 [5].
2385
2386 * gui-msw.c (Fmswindows_shell_execute):
2387 [1].
2388
2389 * insdel.c:
2390 [4].
2391
2392 * lisp.h:
2393 [4]. [5].
2394
2395 * lread.c (locate_file_in_directory_mapper):
2396 [1].
2397
2398 * lstream.c:
2399 [4].
2400
2401 * mem-limits.h:
2402 * mem-limits.h (get_lim_data):
2403 [1].
2404
2405 * menubar-msw.c:
2406 [4].
2407
2408 * ndir.h:
2409 [1].
2410
2411 * nt.c:
2412 * nt.c (getwd):
2413 * nt.c (closedir):
2414 * nt.c (rva_to_section):
2415 * nt.c (mswindows_executable_type):
2416 [1]. [6].
2417 Fix closedir() defn.
2418
2419 * nt.h:
2420 [[[[8]]]]: *_OK defs moved to sysfile.h.
2421
2422 * ntproc.c:
2423 [6]. [7].
2424
2425 * objects-x.c:
2426 [4].
2427
2428 * print.c:
2429 * print.c (std_handle_out_external):
2430 [1]. [4].
2431
2432 * process-nt.c:
2433 * process-nt.c (nt_create_process):
2434 [6].
2435 try to fix process quoting somewhat.
2436
2437 * process-unix.c (unix_create_process):
2438 [1].
2439
2440 * process.c:
2441 * process.c (vars_of_process):
2442 Add Vnull_device.
2443
2444 * process.h:
2445 [1].
2446
2447 * realpath.c:
2448 * realpath.c (xrealpath):
2449 [1].
2450
2451 * redisplay-tty.c (init_tty_for_redisplay):
2452 [3].
2453
2454 * redisplay.c:
2455 [4]. [6].
2456
2457 * scrollbar-msw.c:
2458 [4].
2459
2460 * sheap.c:
2461 * sheap.c (more_static_core):
2462 * sheap.c (report_sheap_usage):
2463 [5]. [6].
2464
2465 * signal.c:
2466 * signal.c (alarm_signal):
2467 [1]. [6].
2468
2469 * sound.c:
2470 [6].
2471
2472 * strftime.c:
2473 * strftime.c (zone_name):
2474 [1]. [5].
2475
2476 * symsinit.h (init_sunpro):
2477 [1].
2478
2479 * syscommctrl.h:
2480 commctrl.h not in Cygwin b20.1.
2481
2482 * sysdep.c:
2483 * sysdep.c (endif):
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):
2496 [1]. [6].
2497
2498 * sysdep.h:
2499 [1].
2500
2501 * sysdir.h:
2502 * sysdir.h (DIRENTRY_NONEMPTY):
2503 [1]. [6].
2504
2505 * sysdll.c (dll_init):
2506 * sysdll.h:
2507 [1].
2508
2509 * sysfile.h:
2510 [1]. [6]. [8].
2511 added text/binary defs.
2512
2513 * sysfloat.h:
2514 [1].
2515
2516 * sysproc.h:
2517 * sysproc.h (EDESTADDRREQ):
2518 * sysproc.h (poll_fds_for_input):
2519 [1]. [6].
2520
2521 * syspwd.h:
2522 [6].
2523
2524 * syssignal.h:
2525 [1].
2526
2527 * systime.h:
2528 [1]. [6].
2529
2530 * systty.h:
2531 [1].
2532
2533 * syswindows.h:
2534 [1].
2535 Always define WIN32_LEAN_AND_MEAN.
2536
2537 * unexcw.c (unexec):
2538 [5].
2539
2540 * unexec.c:
2541 * unexec.c (copy_text_and_data):
2542 * unexec.c (adjust_lnnoptrs):
2543 [1].
2544
2545 * unexnt.c:
2546 * unexnt.c (_start):
2547 [1].
2548
2549 2000-06-07 Ben Wing <ben@xemacs.org>
2550
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.)
2554
2555 * s\msdos.h: Removed.
2556
2557 * s\windows95.h: Removed.
2558
2559 2000-06-10 Ben Wing <ben@xemacs.org>
2560
2561 * s\cygwin32.h:
2562 [1]. [5].
2563 Don't use extern with fun defs.
2564
2565 * s\mingw32.h:
2566 [1]. [7].
2567 Remove nt\inc include.
2568 Remove getdisk, getdefdir. (The former is unused, the latter
2569 expanded in fileio.h.)
2570
2571 * s\windowsnt.h:
2572 * s\windowsnt.h (WIN32_NATIVE):
2573 * s\windowsnt.h (HAVE_STRCASECMP):
2574 [1]. [7].
2575 Add long comment about preprocessor changes.
2576 Remove getdisk, getdefdir. (The former is unused, the latter
2577 expanded in fileio.h.)
2578
2579 2000-06-10 Ben Wing <ben@xemacs.org>
2580
2581 * m\arm.h:
2582 * m\delta.h:
2583 * m\intel386.h:
2584 * m\sequent.h:
2585 * m\template.h:
2586 * m\windowsnt.h:
2587 [1].
2588 Remove bogus/unused NO_SOCK_SIGIO.
2589
2590 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr>
2591
2592 * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
2593 not an Emchar.
2594
2595 2000-06-04 Mike Sperber <mike@xemacs.org>
2596
2597 * casetab.c (set_case_table): For `set-standard-case-table',
2598 actually deposit the new case tables where the rest of XEmacs can
2599 see them.
2600
2601 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org>
2602
2603 * data.c (Faset): Don't cast XCHAR() to unsigned char.
2604
2605 2000-06-05 Ben Wing <ben@xemacs.org>
2606
2607 * callproc.c (child_setup): Don't do close_load_descs() under
2608 MS Windows. Put in a comment explaining why.
2609
2610 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com>
2611
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.
2615
2616 2000-06-01 Andreas Jaeger <aj@suse.de>
2617
2618 * s/s390.h: Support for S390, based on a patch by Martin
2619 Schwidefsky <schwidefsky@de.ibm.com>.
2620
2621 2000-05-30 Andy Piper <andy@xemacs.org>
2622
2623 * window.c (allocate_window):
2624 (make_dummy_parent):
2625 (Fset_window_configuration): use new hashtable type.
2626
2627 * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
2628 (struct image_instantiator_methods):
2629 (struct Lisp_Image_Instance): make instance geometry signed.
2630
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.
2641
2642 * glyphs-widget.c (widget_query_geometry):
2643 (widget_layout):
2644 (button_query_geometry):
2645 (tree_view_query_geometry):
2646 (tab_control_query_geometry):
2647 (layout_query_geometry):
2648 (layout_layout):
2649 (native_layout_layout): make instance geometry signed.
2650
2651 2000-05-29 Olivier Galibert <galibert@pobox.com>
2652
2653 * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
2654 constant.
2655
2656 * general.c (syms_of_general): Add Qfull_assoc symbol.
2657
2658 * data.c (finish_marking_weak_lists): Mark full-assoc lists
2659 correctly.
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.
2663
2664 2000-05-30 Andy Piper <andy@xemacs.org>
2665
2666 * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
2667
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.
2675
2676 2000-05-28 Martin Buchholz <martin@xemacs.org>
2677
2678 * XEmacs 21.2.34 is released.
2679
2680 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
2681
2682 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
2683 start cache.
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
2687 CMOTION_DISP case.
2688
2689 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
2690
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.
2694
2695 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
2696
2697 * unexelf.c (unexec): Search for ".data" section.
2698 Initialize new_data2_offset from old_data_index.
2699 Remove redundant check for ElfW.
2700
2701 2000-05-23 Andy Piper <andy@xemacs.org>
2702
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.
2706
2707 2000-05-22 Andy Piper <andy@xemacs.org>
2708
2709 * redisplay-output.c (compare_runes): check for non-images
2710
2711 * glyphs.c (set_glyph_dirty_p): ditto.
2712 (update_glyph_cachel_data): ditto.
2713
2714 * glyphs-widget.c (layout_post_instantiate): ditto.
2715 (layout_post_instantiate): ditto.
2716
2717 * event-msw.c (mswindows_wnd_proc): warning removal.
2718
2719 2000-05-12 Craig Lanning <CraigL@DyCon.com>
2720
2721 * s\mingw32.h: Added #undef for CLASH_DETECTION.
2722
2723 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
2724
2725 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
2726
2727 * nt.c (rva_to_section): mingw32 needs rva_to_section.
2728 (mswindows_executable_type): mingw32 now has enough headers for
2729 this to work.
2730
2731 2000-05-20 Andy Piper <andy@xemacs.org>
2732
2733 * console-msw.c (mswindows_output_last_error): ; -> ,
2734
2735 2000-05-12 Andy Piper <andy@xemacs.org>
2736
2737 * console-msw.c (FROB): compare ints with ints.
2738
2739 2000-05-11 Andy Piper <andy@xemacs.org>
2740
2741 * glyphs-x.c (x_finalize_image_instance): make minimal build
2742 happy.
2743
2744 2000-05-20 Ben Wing <ben@xemacs.org>
2745
2746 * event-Xt.c:
2747 * event-Xt.c (vars_of_event_Xt):
2748 move modifier-keys-are-sticky to event-stream.c.
2749
2750 * event-msw.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.
2763
2764 * event-stream.c:
2765 * event-stream.c (vars_of_event_stream):
2766 move modifier-keys-are-sticky here.
2767
2768 * lisp.h:
2769 add CHECK_FUNCTION.
2770
2771 * rangetab.c:
2772 implement map-range-table.
2773
2774
2775 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
2776
2777 * redisplay-tty.c (reset_tty_modes):
2778 (tty_redisplay_shutdown): Adjust argument type to
2779 tty_frame_output_end.
2780
2781 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
2782
2783 * eval.c (Fbacktrace): Don't output a line with only right
2784 parenthesis.
2785
2786 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
2787
2788 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
2789 (Fpq_reset_poll): Ditto.
2790
2791 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
2792
2793 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
2794
2795 2000-05-16 Ben Wing <ben@xemacs.org>
2796
2797 * buffer.c:
2798 * buffer.c (dfc_convert_to/from_internal_format):
2799 * buffer.c (reinit_vars_of_buffer):
2800 Fix conversion functions to allow reentrancy.
2801
2802 * console-msw.c:
2803 * console-msw.c (mswindows_output_last_error):
2804 New fun, generally useful -- output a human-readable
2805 version of GetLastError() on the console.
2806
2807 * console-msw.h:
2808 * console-msw.h (struct mswindows_frame):
2809 Changes for DeferWindowPos. Declare mswindows_output_last_error().
2810
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.
2818
2819 * console.h (struct console_methods):
2820 Split begin/end methods into window and frame.
2821
2822 * event-msw.c:
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.
2829
2830 * frame-msw.c (mswindows_init_frame_1):
2831 random cleanups.
2832
2833 * glyphs-msw.c:
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.
2839
2840 * glyphs.c (make_image_instance_1):
2841 Fix crash.
2842
2843 * gutter.c (Fredisplay_gutter_area):
2844 Use new begin/end methods.
2845
2846 * lisp.h (Dynarr_new2):
2847 New creation fun.
2848
2849 * redisplay-msw.c:
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.
2854
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.
2860
2861 * redisplay-tty.c:
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.
2866
2867 * redisplay-x.c:
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.
2872
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.
2877
2878 * window.h (WINDOW_XFRAME):
2879 WINDOW_XFOO macros -- get locale and decode struct pointer.
2880
2881
2882 2000-05-12 Ben Wing <ben@xemacs.org>
2883
2884 * emacs.c:
2885 * emacs.c (ensure_no_quitting_from_now_on):
2886 * emacs.c (fatal_error_signal):
2887 * emacs.c (mswindows_handle_hardware_exceptions):
2888 * emacs.c (main):
2889 * emacs.c (Fkill_emacs):
2890 * emacs.c (shut_down_emacs):
2891 * emacs.c (assert_failed):
2892 various improvements in fatal error handling.
2893
2894 * eval.c:
2895 move preparing_for_armageddon to emacs.c.
2896
2897 * lisp.h:
2898 declare fatal_error_in_progress.
2899
2900 * print.c:
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.
2907
2908 * scrollbar.c (Fscrollbar_page_up):
2909 * scrollbar.c (Fscrollbar_page_down):
2910 fix missing else. reindent.
2911
2912 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
2913
2914 Emergency fix.
2915
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.
2922
2923 include window.h for error check functions.
2924
2925 2000-05-11 Ben Wing <ben@xemacs.org>
2926
2927 * cmdloop.c (Freally_early_error_handler):
2928 Display message box under windows; otherwise, message will disappear
2929 before it can be viewed.
2930
2931 * console-msw.c:
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
2937 a bit of time.
2938
2939 * general.c:
2940 * general.c (syms_of_general):
2941 Some new symbols used in `mswindows-message-box'.
2942
2943 * glyphs.c:
2944 * glyphs.c (Fset_image_instance_property):
2945 put warning in this fun.
2946
2947 * glyphs.h:
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.
2955
2956 * lisp.h:
2957 Extern message-box stuff.
2958
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.)
2964
2965
2966 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
2967
2968 * glyphs.c (image_instantiate): Suppress gcc warnings.
2969 (Fmake_image_instance): Fix doc string.
2970 * specifier.c (Fmake_specifier): Ditto.
2971
2972 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
2973
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.
2977
2978 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
2979
2980 * fns.c (Ffeaturep): Update e-mail address in doc-string.
2981 Document (featurep '(and xemacs 21.02)).
2982
2983 2000-05-09 Ben Wing <ben@xemacs.org>
2984
2985 * buffer.c (complex_vars_of_buffer):
2986 update modeline-format doc.
2987
2988 * device.h:
2989 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
2990
2991 * emacs.c:
2992 timeline of all released versions of Emacs, for use in creating
2993 authorship comments and in synching up.
2994
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.
3006
3007 * glyphs.c:
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
3014 HAVE BEEN GETTING.
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
3038 bogus code.
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.)
3042
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.
3047
3048 * gutter.c:
3049 * gutter.c (Fgutter_specifier_p):
3050 * gutter.c (Fgutter_size_specifier_p):
3051 * gutter.c (Fgutter_visible_specifier_p):
3052 * objects.c:
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.
3057
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.
3062
3063 * specifier.c:
3064 * specifier.c (Fmake_specifier):
3065 major overhaul of this doc string.
3066
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):
3076 rebackslashify.
3077
3078 * specifier.h:
3079 * specifier.h (DOMAIN_FRAME):
3080 * specifier.h (DOMAIN_LIVE_P):
3081 * specifier.h (DOMAIN_XDEVICE):
3082 rebackslashify.
3083 add comments about problems with these macros.
3084 prototype for decode_domain.
3085
3086 * toolbar.c:
3087 * toolbar.c (Ftoolbar_specifier_p):
3088 move doc string to `make-toolbar-specifier'.
3089
3090 * window.c (window_unmap_subwindows_cache_mapper):
3091 *************************************************************
3092 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
3093 HAVE BEEN GETTING.
3094 *************************************************************
3095
3096 2000-05-09 Andy Piper <andy@xemacs.org>
3097
3098 * glyphs.h: declare reset_frame_subwindow_instance_cache.
3099
3100 * window.c (Fset_window_configuration): reset the frame subwindow
3101 cache and re-initialize the window subwindow caches.
3102
3103 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
3104
3105 2000-05-09 Ben Wing <ben@xemacs.org>
3106
3107 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
3108 DWORD.
3109
3110 2000-04-26 Mike Woolley <mike@bulsara.com>
3111
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.
3116
3117 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
3118
3119 * callproc.c (Fold_call_process_internal): GCPRO path
3120
3121 2000-05-08 Jan Vroonhof <jan@xemacs.org>
3122
3123 Patch by Bill Perry.
3124
3125 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
3126 back data instead of #ifdef.
3127 (Fscrollbar_page_down): ditto.
3128
3129 2000-05-07 Ben Wing <ben@xemacs.org>
3130
3131 * buffer.h:
3132 Kludge for defining Qmswindows_tstr.
3133
3134 * nt.c:
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
3142 with FSF 20.6.
3143
3144 * nt.h:
3145 Removed ifdef'd out bogus code.
3146 Fixed some prototypes.
3147
3148 * nt.h (file_data):
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.
3155
3156 * ntheap.h (round_to_next):
3157 Moved the memory-mapped-file structures, macros and prototypes
3158 to nt.h.
3159
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.
3164
3165 * ntproc.c (sys_spawnve):
3166 Account for win32_ -> mswindows_.
3167
3168 * process-nt.c:
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.
3181
3182 * process.c (Fprocess_send_region):
3183 Takes an optional fourth argument, BUFFER, which should fix some
3184 problems with call-process.
3185
3186 * syscommctrl.h:
3187 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
3188
3189 * syswindows.h:
3190 Move ICC_BAR_CLASSES to syscommctrl.h.
3191 Add preliminary macros for MSWindows/Mule. More to come.
3192
3193 * unexnt.c:
3194 * unexnt.c (unexec):
3195 open_output_file moved to nt.c.
3196
3197
3198 2000-05-05 Andy Piper <andy@xemacs.org>
3199
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.
3203
3204 2000-05-04 Andy Piper <andy@xemacs.org>
3205
3206 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
3207 (x_finalize_image_instance): ungcpro on deletion.
3208
3209 * glyphs.c (image_instantiator_format_create): give pointers a
3210 query geometry method so that the geometry is at least set.
3211
3212 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
3213 initialize layouts if using widgets.
3214
3215 2000-05-03 Andy Piper <andy@xemacs.org>
3216
3217 * nt.c: remove bogus reference to sysmmsystem.h
3218
3219 * gui-x.c (popup_selection_callback): fix no selection abort.
3220
3221 2000-05-02 Andy Piper <andy@xemacs.org>
3222
3223 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
3224 (mswindows_widget_instantiate): ditto.
3225
3226 * glyphs-widget.c (initialize_widget_image_instance): initialize
3227 children correctly.
3228 (widget_instantiate): cope with children and items in the same
3229 instance.
3230
3231 * glyphs.c (mark_image_instance): cope with children as a first
3232 class member.
3233 (image_instance_equal): ditto.
3234 (image_instance_hash): ditto.
3235 (image_instance_changed): ditto.
3236
3237 2000-04-30 Andy Piper <andy@xemacs.org>
3238
3239 * glyphs.c (subwindow_query_geometry): new function. Return some
3240 defaults.
3241 (subwindow_instantiate): don't assign dimensions if none have been
3242 given.
3243 (image_instantiator_format_create): add subwindow_query_geometry.
3244 (print_image_instance): cope with layouts as widgets.
3245
3246 2000-04-29 Andy Piper <andy@xemacs.org>
3247
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.
3255
3256 * glyphs-msw.c (mswindows_finalize_image_instance): make double
3257 finalization safe.
3258 (mswindows_finalize_image_instance): use the device
3259 not the domain as the domain may have died already.
3260
3261 * glyphs-x.c (x_finalize_image_instance): ditto.
3262 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
3263 HEIGHT.
3264
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.
3269
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
3286 a weak list.
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.
3291
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
3304
3305 * redisplay.c (redisplay_frame): remove subwindow_cachel
3306 references.
3307
3308 * frame.h (struct frame): remove subwindow_cachels.
3309 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
3310
3311 * frameslots.h: add subwindow_instance_cache.
3312
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.
3318
3319 2000-04-27 Andy Piper <andy@xemacs.org>
3320
3321 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
3322
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
3327 native layout type.
3328 (widget_instantiate): don't do layout stuff here.
3329
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.
3334
3335 * glyphs.h (struct image_instantiator_methods): return a value
3336 from layout_method.
3337
3338 2000-04-26 Andy Piper <andy@xemacs.org>
3339
3340 * glyphs.c (allocate_image_instance): make initial width and
3341 height unspecified. Set initialized to 0.
3342
3343 * syscommctrl.h new file. Encapsulates commctrl.h.
3344
3345 * syswindows.h new file. Encapsulates windows.h.
3346
3347 * ntplay.c: use new syswindows.h and syscommctrl.h header.
3348 * nt.c: ditto.
3349 * console-msw.h: ditto.
3350
3351 * redisplay-tty.c (tty_output_display_block): remove layout references.
3352
3353 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
3354 window handle rather than just the frame.
3355
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.
3367
3368 * redisplay-x.c (x_output_display_block): recode for layouts as
3369 widgets.
3370
3371 * redisplay-output.c (redisplay_output_layout): recode for layouts
3372 as widgets.
3373 (compare_runes): remove layout references.
3374
3375 * redisplay-msw.c (mswindows_output_display_block): recode for
3376 layouts as widgets.
3377
3378 * glyphs-widget.c (image_instantiator_layout): remove
3379 layout_possible_dest_types.
3380 (layout_possible_dest_types): deleted.
3381
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.
3386
3387 2000-04-25 Andy Piper <andy@xemacs.org>
3388
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
3399 widgets.
3400
3401 * glyphs.h (struct image_instantiator_methods): add
3402 post_instantiate method.
3403
3404 * glyphs.c (instantiate_image_instantiator): add post_instantiate
3405 method calls.
3406
3407 2000-04-23 Andy Piper <andy@xemacs.org>
3408
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.
3415
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
3435
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.
3447
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
3461 subwindows.
3462
3463 2000-04-21 Andy Piper <andy@xemacs.org>
3464
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.
3469
3470 * window.c (mark_window_as_deleted): reset the subwindow_instance_
3471 cache to nil.
3472
3473 * glyphs.h (struct Lisp_Image_Instance): device->domain.
3474 (IMAGE_INSTANCE_DOMAIN): new accessor.
3475 (XIMAGE_INSTANCE_DOMAIN): ditto.
3476
3477 * glyphs-x.c (x_finalize_image_instance): device->domain.
3478
3479 * glyphs-msw.c (init_image_instance_geometry): device->domain.
3480 (mswindows_finalize_image_instance): ditto.
3481
3482 * glyphs-eimage.c (jpeg_instantiate): device->domain.
3483 (gif_instantiate): ditto.
3484 (png_instantiate): ditto.
3485 (tiff_instantiate): ditto.
3486
3487 * glyphs.c (instantiate_image_instantiator): use domain rather
3488 than device.
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.
3503
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.
3511
3512 * specifier.c (Fvalid_specifier_domain_p): add image instances as
3513 a valid specifier domain.
3514
3515 2000-04-19 Andy Piper <andy@xemacs.org>
3516
3517 * glyphs-widget.c (syms_of_glyphs_widget): remove
3518 widget-callback-current-channel.
3519 (vars_of_glyphs_widget): ditto.
3520 * glyphs.h: ditto
3521
3522 * gui.c (get_gui_callback): revert to previous behaviour.
3523
3524 2000-04-18 Andy Piper <andy@xemacs.org>
3525
3526 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
3527 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
3528 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
3529
3530 * glyphs.c (image_instance_equal): add margin_width.
3531 (image_instance_hash): ditto.
3532
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.
3538
3539 * glyphs.c (update_widget_instances): make a normal function.
3540 (syms_of_glyphs): remove Qupdate_widget_instances.
3541 * glyphs.h: ditto.
3542
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.
3547
3548 2000-05-01 Martin Buchholz <martin@xemacs.org>
3549
3550 * XEmacs 21.2.33 is released.
3551
3552 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
3553
3554 * make-src-depend: Allow dots in header file name.
3555
3556 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
3557
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
3562 will be dumped.
3563
3564 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
3565
3566 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
3567 when string length is zero.
3568 (find_charsets_in_emchar_string): Ditto.
3569
3570 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
3571
3572 * lisp.h: extern Qdialog and Qmenubar.
3573
3574 * gui-x.c: added events.h.
3575 also fixed typo which made the file uncompilable.
3576
3577 * general.c: Added Qmenubar and Qdialog
3578
3579 2000-04-28 Ben Wing <ben@xemacs.org>
3580
3581 * frame-msw.c (mswindows_init_frame_1):
3582 * frame-msw.c (mswindows_mark_frame):
3583 * event-msw.c (mswindows_enqueue_dispatch_event):
3584 * console-msw.h:
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.
3589
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.
3593
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.
3600
3601 * glyphs-widget.c (VALID_GUI_KEYWORDS):
3602 add :callback-ex.
3603
3604 * glyphs.c (print_image_instance):
3605 prettify, e.g. now prints widget type.
3606
3607 * gui-x.h:
3608 certain funs have new image instance parameter.
3609
3610 * gui.c:
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.
3622
3623 * gui.h:
3624 * gui.h (struct Lisp_Gui_Item):
3625 recognize callback-ex in a number of places.
3626
3627 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
3628 new parameter in button_item_to_widget_value.
3629
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.
3639
3640 * event-Xt.c:
3641 * event-Xt.c (enqueue_Xt_dispatch_event):
3642 this fun gets exported.
3643
3644 * gui-msw.c:
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.
3648
3649 * gui-x.c:
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.
3658
3659 * fns.c (Freplace_list):
3660 fix small typo in doc string.
3661
3662 * lisp.h:
3663 declare enqueue_Xt_dispatch_event.
3664
3665 2000-04-28 Ben Wing <ben@xemacs.org>
3666
3667 * buffer.c:
3668 * buffer.c (Frecord_buffer):
3669 * buffer.c (syms_of_buffer):
3670 delete record-buffer-hook.
3671
3672 * fns.c:
3673 * fns.c (Freplace_list):
3674 * fns.c (syms_of_fns):
3675 new primitive replace-list.
3676
3677 * frameslots.h:
3678 slot for old buffer-alist.
3679
3680 * lisp.h:
3681 exfun replace-list.
3682
3683 * redisplay.c:
3684 * redisplay.c (redisplay_frame):
3685 * redisplay.c (syms_of_redisplay):
3686 * redisplay.c (vars_of_redisplay):
3687 new hook buffer-list-changed-hook.
3688 call it.
3689
3690 2000-04-27 Ben Wing <ben@xemacs.org>
3691
3692 * extents.h: extern in_modeline_generation.
3693
3694 * redisplay.c (generate_formatted_string_db): set
3695 in_modeline_generation.
3696
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.
3701
3702 2000-04-26 Ben Wing <ben@xemacs.org>
3703
3704 * emacs.c (vars_of_emacs): document quick-build "error-checking"
3705 option.
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.
3709
3710 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
3711
3712 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
3713
3714 * redisplay.h (struct display_line): Add a new variable,
3715 line_continuation.
3716
3717 * redisplay.c (create_text_block): Set dl->line_continuation if
3718 the line continues.
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.
3724
3725 2000-04-20 Martin Buchholz <martin@xemacs.org>
3726
3727 * filelock.c (fill_in_lock_file_name):
3728 ANSIfy.
3729 Check for IS_ANY_SEP instead of '/'.
3730 (lock_file_1):
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.
3736
3737 2000-04-19 Martin Buchholz <martin@xemacs.org>
3738
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.
3742
3743 * md5.c: Unconditionally include ANSI header <limits.h>
3744
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.
3748
3749 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
3750
3751 * filelock.c (current_lock_owner): Remove unused variable o, p.
3752
3753 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
3754
3755 * callint.c: Remove multiply defined symbol Qlet
3756 (syms_of_callint): ditto.
3757
3758 2000-04-14 Andy Piper <andy@xemacs.org>
3759
3760 * general.c (syms_of_general): add last-command, this-command, let
3761 and funcall.
3762
3763 * lisp.h: declare various symbols.
3764
3765 * glyphs.h: declare Qwidget_callback_current_channel;
3766
3767 * glyphs-widget.c (syms_of_glyphs_widget): add
3768 Qgui_callback_current_channel.
3769 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
3770
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
3774 widget updates.
3775 * gui-x.c (popup_selection_callback): ditto.
3776
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
3779 outside.
3780
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.
3786
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
3790 focus.
3791 (emacs_Xt_event_add_widget_actions): new function. add focus
3792 functions as actions.
3793 (init_event_Xt_late): use it.
3794
3795 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
3796
3797 * event-stream.c (Fdispatch_event): Doc fix.
3798
3799 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
3800
3801 * postgresql.c: Remove all references to PQsetenv*.
3802
3803 * postgresql.h: Remove references to PGsetenvHandler object.
3804 * lrecord.h (lrecord_type): Ditto.
3805
3806 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
3807
3808 * glyphs-msw.h (struct mswindows_image_instance_data): Added
3809 real_heigh and real_width members, and accessor macros for these.
3810
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
3816 geometry.
3817 (mswindows_create_resized_bitmap): Ditto.
3818 (mswindows_create_resized_mask): Ditto.
3819
3820 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
3821 and bitmap to their surface size.
3822
3823 2000-04-11 Jan Vroonhof <jan@xemacs.org>
3824
3825 * process-unix.c (unix_send_process): Guard against process MIA
3826 after Faccept_process_output.
3827
3828 2000-04-11 Ben Wing <ben@xemacs.org>
3829
3830 * eval.c (unbind_to_hairy): fix brokenness introduced by
3831 nanosecond speed improvements.
3832
3833 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
3834
3835 * sunplay.c (init_device): To play sounds correctly, the device
3836 apparently needs to be initialized at least once by XEmacs. Make
3837 it so.
3838
3839 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
3840
3841 * redisplay.c (add_margin_runes): Add text image glyph
3842 handling.
3843
3844 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
3845
3846 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
3847 gcc is newer than 2.5.
3848
3849 2000-04-06 Colin Rafferty <colin@xemacs.org>
3850
3851 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
3852
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.
3859
3860 2000-04-06 Andy Piper <andy@xemacs.org>
3861
3862 * gmalloc.c (malloc): undo previous change.
3863 (malloc): ditto.
3864 (free): ditto.
3865 (realloc): ditto.
3866
3867 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
3868
3869 * line-number.c (buffer_line_number): Revert to former version.
3870
3871 2000-04-06 Andy Piper <andy@xemacs.org>
3872
3873 * gmalloc.c (malloc): add error checking.
3874 (malloc): ditto.
3875 (free): ditto.
3876 (realloc): ditto.
3877
3878 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
3879 button_item_to_widget_value arg.
3880
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.
3886
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.
3890
3891 * gui-x.h: change signature of button_item_to_widget_value.
3892
3893 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
3894 button_item_to_widget_value arg.
3895
3896 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
3897
3898 * buffer.h (struct buffer): auto_save_modified should be long.
3899
3900 2000-04-05 Andy Piper <andy@xemacs.org>
3901
3902 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
3903 type.
3904 (button_query_geometry): give a little more room so that athena
3905 buttons fit.
3906
3907 2000-04-05 Andy Piper <andy@xemacs.org>
3908
3909 * faces.c (complex_vars_of_faces): The widget face should inherit
3910 the font of the gui-element face.
3911
3912 2000-04-04 Andy Piper <andy@xemacs.org>
3913
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.
3918
3919 2000-04-02 Andy Piper <andy@xemacs.org>
3920
3921 * frame.c (change_frame_size_1): The introduction of gutters means
3922 that we need to allow 0 as a potential frame dimension.
3923
3924 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
3925
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.
3930
3931 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
3932 text not in buffer.
3933 (redisplay_output_layout): Call ensure_face_cachel_complete for
3934 text image glyph.
3935
3936
3937 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
3938
3939 * redisplay.c (add_glyph_rune): Adding text image as text runes.
3940
3941 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
3942 not in buffer
3943
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
3948
3949 2000-02-02 Mike Alexander <mta@arbortext.com>
3950
3951 Note: Some of these were committed by accident as part of other
3952 patches.
3953
3954 * regex.c (regex_compile): Avoid compiler warnings.
3955
3956 * ntproc.c (sys_spawnve): Avoid compiler warnings.
3957
3958 * nt.h: Declare term_ntproc correctly.
3959
3960 * nt.c: Remove incorrect declaration of get_home_directory which
3961 is declared correctly in lisp.h.
3962
3963 * keymap.c (get_keyelt): Avoid compiler warnings.
3964 (raw_lookup_key_mapper): Avoid compiler warnings.
3965
3966 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
3967
3968 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
3969
3970 * filemode.c (mode_string): Avoid compiler warnings.
3971
3972 * file-coding.c (Fcoding_system_aliasee): Add return statement to
3973 avoid warning.
3974
3975 * events-mod.h: Undef some things that winuser.h defines differently.
3976
3977 * data.c (Faset): Avoid compiler warnings.
3978
3979 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
3980
3981 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
3982
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.
3986
3987 * linuxplay.c: Use nativesound.h
3988 (play_sound_data): Return error code. Be less verbose on error.
3989
3990 * sunplay.c: Use nativesound.h
3991 (play_sound_data): Return error code. Be less verbose on error.
3992
3993 * ntplay.c: Use nativesound.h
3994 (play_sound_data): Return fake error code
3995
3996 * sgiplay.c: Use nativesound.h
3997 (play_sound_data): Return error code
3998
3999 * hpplay.c: Use nativesound.h, partially implement
4000 new error code. Break compilation until finished.
4001 (play_sound_data): error code.
4002
4003 * nativesound.h (play_sound_file):
4004 (play_sound_data): Prototype in new header.
4005
4006 2000-03-31 Andy Piper <andy@xemacs.org>
4007
4008 * glyphs-widget.c: (button_query_geometry): new function. Adjust
4009 for toggle and radio buttons.
4010 (image_instantiator_buttons): use it.
4011
4012 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
4013
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.
4017
4018 2000-03-31 Andy Piper <andy@xemacs.org>
4019
4020 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
4021 than 1.
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
4025 every iteration.
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.
4031
4032 2000-03-30 Andy Piper <andy@xemacs.org>
4033
4034 * glyphs-widget.c (image_instantiator_layout): allow standard
4035 widget keywords in layouts.
4036
4037 * gutter.c (output_gutter): cope with nil gutter contents.
4038
4039 * frame.c (Fset_frame_properties): add gutter docs.
4040
4041 2000-03-29 Andy Piper <andy@xemacs.org>
4042
4043 * toolbar-msw.c (TBSTYLE_FLAT): add.
4044 (mswindows_output_toolbar): minor fiddling.
4045
4046 2000-03-29 Andy Piper <andy@xemacs.org>
4047
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.
4054
4055 2000-03-28 Mike Alexander <mta@arbortext.com>
4056
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
4060
4061 2000-03-28 Andy Piper <andy@xemacs.org>
4062
4063 * gui.c (get_gui_callback): treat Quit specially.
4064
4065 2000-03-27 Andy Piper <andy@xemacs.org>
4066
4067 * glyphs.c (image_instantiate): be careful to check in the same
4068 way we assigned.
4069
4070 2000-03-27 Didier Verna <didier@xemacs.org>
4071
4072 * config.h.in: define the proper SMART_INCLUDE macro.
4073 handle renaming of `foo_h_path' to `foo_h_file'.
4074
4075 * database.c: ditto.
4076
4077 * emacs.c: ditto.
4078
4079 * linuxplay.c: ditto.
4080
4081 * terminfo.c: ditto.
4082
4083 * tooltalk.h: ditto.
4084
4085 2000-03-27 Andy Piper <andy@xemacs.org>
4086
4087 * glyphs-msw.c (mswindows_update_widget): make sure the widget
4088 gets updated whenever the face might have changed.
4089
4090 2000-03-26 Mike Alexander <mta@arbortext.com>
4091
4092 * dumper.c (pdump_resource_free): Fix the comment.
4093
4094 2000-03-21 Olivier Galibert <galibert@pobox.com>
4095
4096 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
4097
4098 2000-03-22 Mike Alexander <mta@arbortext.com>
4099
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.
4103
4104 2000-03-25 Mike Alexander <mta@arbortext.com>
4105
4106 * gui.c (copy_gui_item_tree): Return a value in all cases
4107
4108 2000-03-21 Didier Verna <didier@xemacs.org>
4109
4110 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
4111 lwlib/config.h.in.
4112 (SMART_INCLUDE): new macro.
4113 (POSTGRES_INCLUDE): new macro to include postgresql headers from
4114 the proper location.
4115
4116 * postgresql.c: use it.
4117
4118 * inline.c: ditto.
4119
4120 2000-03-24 Andy Piper <andy@xemacs.org>
4121
4122 * gutter.c (redraw_exposed_gutters): must be "in display" when we
4123 do this.
4124
4125 2000-03-24 Andy Piper <andy@xemacs.org>
4126
4127 * redisplay-output.c (compare_runes): use image_instance_changed
4128 to detect changes. Do not depend on glyphs_changed, only depend on
4129 dirtiness.
4130 (redisplay_output_layout): add debug messages.
4131 (compare_runes): ditto.
4132
4133 * glyphs.h: declare new functions.
4134 (struct Lisp_Image_Instance): remove percent and associated
4135 accessors.
4136
4137 * gui.h: declare new copying functions.
4138
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.
4150
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.
4154
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.
4158
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.
4162
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
4168 things.
4169 (image_instantiate): add error checking.
4170
4171 * gutter.c (syms_of_gutter): use -hook.
4172
4173 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
4174
4175 * console-tty.c (Fset_console_tty_input_coding_system): Use
4176 Qkeyboard.
4177 (Fset_console_tty_output_coding_system): Use Qterminal.
4178 (tty_init_console): Use Qkeyboard and Qterminal.
4179
4180 2000-03-21 Ben Wing <ben@xemacs.org>
4181
4182 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
4183 From Mike Alexander <mta@arbortext.com>.
4184
4185 2000-03-21 Ben Wing <ben@xemacs.org>
4186
4187 * event-msw.c (mswindows_need_event): Horrible kludge to fix
4188 process brokenness. Proper implementation to come.
4189 * callproc.c:
4190 Rename call-process-internal to old-call-process-internal.
4191 New impl. in process.el.
4192
4193 2000-03-21 Martin Buchholz <martin@xemacs.org>
4194
4195 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
4196
4197 2000-03-20 Andy Piper <andy@xemacs.org>
4198
4199 * glyphs.c (full_list_hash): make hashes of the same elements in
4200 different orders return different values.
4201
4202 2000-03-20 Martin Buchholz <martin@xemacs.org>
4203
4204 * XEmacs 21.2.32 is released.
4205
4206 2000-03-20 Martin Buchholz <martin@xemacs.org>
4207
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*
4211 lvalues.
4212
4213 * eldap.c (Fldap_open):
4214 (Fldap_search_basic):
4215 (Fldap_add):
4216 (Fldap_modify):
4217 Make C++-compilable.
4218 Make sure GCPRO'ed variables are initialized.
4219 Use temp variables to avoid repeated calls to Flength.
4220
4221 2000-03-16 Martin Buchholz <martin@xemacs.org>
4222
4223 * sysfile.h:
4224 Make sure PATH_MAX is always defined.
4225 Include limits.h for PATH_MAX.
4226 Deprecate use of MAXPATHLEN.
4227
4228 2000-03-10 Martin Buchholz <martin@xemacs.org>
4229
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
4237 a row when PDUMP.
4238 Random stylistic fiddling.
4239 Comment fixes.
4240
4241 2000-03-20 Andy Piper <andy@xemacs.org>
4242
4243 * glyphs.c (image_instantiate): allow text glyphs to be
4244 instantiated in the minibuffer window.
4245
4246 2000-03-19 Andy Piper <andy@xemacs.org>
4247
4248 * glyphs.c (image_instance_hash): be careful about which items we
4249 hash on.
4250
4251 * glyphs-widget.c (tab_control_set_property): record into pending
4252 items rather than the actual items.
4253
4254 * glyphs-x.c (x_update_widget): use pending items to update with.
4255
4256 * glyphs-msw.c (mswindows_tab_control_update): use pending items
4257 to update with.
4258
4259 * glyphs.c (mark_image_instance): mark pending items.
4260
4261 * window.c (Fset_window_configuration): record the buffer.
4262 (Fselect_window): totally revert previous change which breaks many
4263 things.
4264
4265 2000-03-18 Andy Piper <andy@xemacs.org>
4266
4267 * glyphs-msw.c (mswindows_tab_control_update): force selected
4268 item.
4269
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
4274 instantiated.
4275
4276 * gui.c (parse_gui_item_tree_list): add probably unnecessary
4277 gcpros.
4278 (parse_gui_item_tree_children): ditto.
4279 (parse_gui_item_tree_item): ditto.
4280
4281 * glyphs.c (Fupdate_widget_instances): return something.
4282
4283 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
4284
4285 * window.c (Fselect_window): Undo 2000-03-17 change.
4286
4287 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
4288
4289 * postgresql.c (Fpq_setenv): Remove this turkey when linking
4290 against v7.0 libraries. Insta-coredump city until the postgres
4291 folks fix it.
4292
4293 2000-03-17 Andy Piper <andy@xemacs.org>
4294
4295 * faces.c (complex_vars_of_faces): don't give the widget face an
4296 inherited background pixmap.
4297
4298 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
4299 selected item.
4300
4301 * event-stream.c (Fdispatch_non_command_events): return something.
4302
4303 * gutter.c (output_gutter): use widget face.
4304 (clear_gutter): ditto.
4305
4306 * NEWS: adjust again.
4307
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.
4312
4313 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
4314
4315 2000-03-16 Olivier Galibert <galibert@pobox.com>
4316
4317 * emacs.c (Frunning_temacs_p): Revert previous patch.
4318 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
4319
4320 2000-03-16 Andy Piper <andy@xemacs.org>
4321
4322 * glyphs-x.c (x_tab_control_update): if no widget values then
4323 return.
4324
4325 * NEWS: update for new features.
4326
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.
4331
4332 * events.h (struct event_stream): add force_event_pending.
4333
4334 * specifier.c (recompute_one_cached_specifier_in_window): add
4335 comment.
4336
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.
4340
4341 * redisplay-output.c (compare_runes): reorganize so that we catch
4342 glyph changes when we want them. Set optimize_output when this
4343 would help layouts.
4344 (redisplay_output_layout): remove frame_really_changed, use
4345 optimize_output instead.
4346
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.
4351
4352 * gutter.c: (specifier_vars_of_gutter): use new spec changed
4353 functions.
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.
4360
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.
4364
4365 * gui-x.c (popup_selection_callback): send an eval event to call
4366 Fupdate_widget_instances.
4367
4368 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
4369 to call Fupdate_widget_instances.
4370
4371 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
4372 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
4373
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.
4380
4381 * frame-msw.c (mswindows_size_frame_internal): remove unused
4382 variable.
4383
4384 * faces.h (struct face_cachel): fix comment.
4385
4386 * event-stream.c (Fdispatch_non_command_events): new
4387 function. Process non-command events, forcing an event cycle
4388 beforehand.
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
4392 time we check.
4393
4394 * event-msw.c:
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.
4410
4411 2000-03-15 Olivier Galibert <galibert@pobox.com>
4412
4413 * alloc.h: New.
4414 * dumper.h: New.
4415 * dumper.c: New.
4416
4417 * emacs.c: Moved dump file searching to dumper.c.
4418 (Frunning_temacs_p): Fixed.
4419
4420 * alloc.c: Moved everything pdump-related to dumper.c. Removed
4421 last_lrecord_type_index_assigned.
4422
4423 2000-02-20 Olivier Galibert <galibert@pobox.com>
4424
4425 * symsinit.h: Added reinit parameter to init_console_stream
4426 declaration.
4427
4428 * lisp.h: Added file parameter to pdump_load declaration.
4429
4430 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
4431 support. Added dump file searching.
4432
4433 * config.h.in: Added EMACS_PROGNAME.
4434
4435 * console-stream.c (init_console_stream): Fix reinitialisation
4436 when running from temacs.
4437
4438 * alloc.c (pdump): Add id support.
4439 (pdump_load): Add file parameter and signature/id support.
4440
4441 * Makefile.in.in: Add full pdump support.
4442
4443 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
4444
4445 * postgresql.c: Update documentation to reflect latest code
4446 status.
4447 (print_result): Show tuple counts in printed representation when
4448 appropriate.
4449 (Fpq_put_nbytes): MULE-ize.
4450 (Fpq_get_line_async): Ditto.
4451
4452 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
4453
4454 * postgresql.c (Fpq_lo_import): Fix return value.
4455 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
4456
4457 2000-03-13 Ben Wing <ben@xemacs.org>
4458
4459 * alloc.c (pdump_load):
4460 Fix compile warning under mswin.
4461
4462 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
4463
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.
4468
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.
4474 (Fpq_clear): Ditto.
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.
4495
4496 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
4497
4498 * postgresql.c (vars_of_postgresql): Mule-ize.
4499 (Fpq_conn_defaults): Ditto.
4500
4501 2000-03-12 Ben Wing <ben@xemacs.org>
4502
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):
4512 Minor cleanups.
4513
4514 * console-msw.c:
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):
4521
4522 a) Added functions to manipulate the console window for use with
4523 shell support.
4524
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.
4530
4531 * console-msw.h:
4532 * event-Xt.c:
4533 * event-Xt.c (x_event_to_emacs_event):
4534 * event-Xt.c (describe_event_window):
4535 * events-mod.h (XEMACS_MOD_CONTROL):
4536 * events.c:
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):
4542 * events.h:
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):
4549 * keymap.c:
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.
4577
4578 * console.c (complex_vars_of_console):
4579 * device.c:
4580 * device-msw.c:
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.
4588
4589 * dialog-msw.c:
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.
4595
4596 * dialog.c:
4597 * dialog.c (Fpopup_dialog_box):
4598 Documented the support for accelerators that was just mentioned.
4599
4600 editfns.c (get_home_directory): Changed behavior under Windows
4601 when HOME not defined; former behavior was irretrievably broken.
4602
4603 * emacs.c:
4604 * emacs.c (main_1):
4605 * emacs.c (main):
4606 * minibuf.c (clear_echo_area_internal):
4607 * minibuf.c (echo_area_append):
4608 * print.c:
4609 * print.c (std_handle_out_external):
4610 * print.c (std_handle_out_va):
4611 * print.c (fatal):
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,
4619 as described above.
4620
4621 * eval.c:
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
4633 be gone now.
4634
4635 * event-msw.c:
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.
4647
4648 b) Added support for dynamic display size changes under Windows.
4649
4650 * event-stream.c:
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):
4662
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.
4671
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.
4676
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.)
4684
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.
4693
4694 * filemode.c (mode_string):
4695 Warning fixes.
4696
4697 * frame-msw.c:
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.
4704
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.
4712
4713 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
4714
4715 * gui-msw.c (mswindows_handle_gui_wm_command):
4716 Fixed compile warnings.
4717
4718 * gui-x.c:
4719 * gui-x.c (strdup_and_add_accel):
4720 * gui-x.c (button_item_to_widget_value):
4721 * gui-x.h:
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.
4726
4727 * gui.c:
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.
4740
4741 * line-number.c (buffer_line_number):
4742 * lisp.h:
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.
4747
4748 * menubar-msw.c:
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.
4774
4775 Much needed GCPROing.
4776
4777 * menubar-x.c:
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):
4791 * menubar.h:
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.
4796
4797 * menubar.c:
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):
4804
4805 a) Cleaned up a bunch of documentation and improved it.
4806
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.
4822
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.
4830
4831 d) GCPROing.
4832
4833 * ntproc.c:
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
4841 call-process.
4842
4843 * process-nt.c:
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.)
4866
4867 * regex.c (regex_compile): Fixed a compile warning.
4868
4869 * select-msw.c:
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
4882 them.
4883
4884 * sysdep.c:
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.
4889
4890 * window.c:
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.
4904
4905 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
4906
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>.
4910
4911 2000-03-11 Andy Piper <andy@xemacs.org>
4912
4913 * window.c (make_dummy_parent): initialize subwindow instance
4914 cache.
4915 (Fset_window_configuration): zero extent_modiff.
4916
4917 2000-03-10 Andy Piper <andy@xemacs.org>
4918
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
4926 display proper.
4927
4928 * gutter.h: declare update_frame_gutter_geometry.
4929
4930 * redisplay.h: declare redisplay_frame.
4931
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.
4938
4939 2000-03-11 Andy Piper <andy@xemacs.org>
4940
4941 * alloc.c (pdump_dump_data): remove i & count shadows.
4942
4943 2000-02-27 Mike Alexander <mta@arbortext.com>
4944
4945 * sysdep.h: Declare pdump_read_file
4946
4947 * sysdep.c (pdump_read_file): New function
4948
4949 * alloc.c (pdump_load): Call pdump_read_file to get the portable
4950 dump data
4951
4952 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
4953
4954 * lrecord.h: add `lrecord_type_pgsetenv'.
4955
4956 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
4957
4958 * symsinit.h: declare (vars|syms)_of* functions.
4959 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
4960
4961 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
4962
4963 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
4964
4965 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
4966 GCCs.
4967
4968 * emacs.c (main_1): Call postgres initialization code.
4969
4970 * postgresql.h: New file. PostgreSQL RDBMS support.
4971 * postgresql.c: New file.
4972
4973 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
4974
4975 * redisplay-output.c (redisplay_output_display_block): Disable
4976 redundant code.
4977
4978 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
4979
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.
4988
4989 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
4990
4991 * emacs.c (main_1): Always call syms_of_gui.
4992 * inline.c: include gui.h
4993
4994 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
4995
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.
5004
5005 2000-03-08 Andy Piper <andy@xemacs.org>
5006
5007 * buffer.c (Frename_buffer): record new buffer name the right way.
5008
5009 2000-03-08 Andy Piper <andy@xemacs.org>
5010
5011 * glyphs.c (update_subwindow): increase hash depth so that widget
5012 items get picked up properly.
5013
5014 * redisplay-output.c (compare_runes): increase hash depth so that
5015 widget items get picked up properly.
5016
5017 2000-03-08 Andy Piper <andy@xemacs.org>
5018
5019 * gutter.c (output_gutter): add some debug.
5020
5021 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
5022 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
5023 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
5024
5025 * redisplay-output.c (compare_runes): use display_hash to
5026 determine if glyphs really are not the same.
5027
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.
5032
5033 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
5034
5035 * redisplay.h: Fix comment style.
5036
5037 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
5038
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.
5042
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.
5046
5047 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
5048
5049 2000-03-07 Didier Verna <didier@xemacs.org>
5050
5051 * dired.c: #include `regex.h' after `sysfile.h'.
5052
5053 2000-03-06 Martin Buchholz <martin@xemacs.org>
5054
5055 * sound.c (init_nas_sound): Fix compiler warning.
5056
5057 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
5058 (FREE_STRUCT_P):
5059 (MARK_STRUCT_AS_FREE):
5060 (MARK_STRUCT_AS_NOT_FREE):
5061 Make `gcc -fstrict-aliasing' work properly.
5062
5063 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
5064
5065 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
5066 (mswindows_delete_device): Call CoUnnitialize().
5067
5068 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
5069
5070 2000-02-25 <CraigL@DyCon.com>
5071
5072 * process-nt.c: MinGW now has <shellapi.h>, but still needs
5073 <errno.h>.
5074
5075 * sysdep.c: This extern declaration for environ prevents MinGW
5076 from finding the variable in CRTDLL.DLL.
5077
5078 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
5079 windows headers.
5080 (SHGFI_EXETYPE): ..
5081 (WM_MOUSEWHEEL): ..
5082 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
5083 definitions.
5084 (MMRESULT): Removed, now defined in cygwin's windows headers.
5085 (TIMECAPS): ..
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.
5090
5091 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
5092
5093 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
5094 * syntax.c (syntax_match): Use it.
5095
5096 * cmds.c: Import auto-fill-chars from FSF Emacs.
5097 (Vauto_fill_chars): New variables.
5098 (internal_self_insert): Check Vauto_fill_chars.
5099 (vars_of_cmds):
5100 Declare auto-fill-chars as a Lisp variable and initialize it.
5101
5102 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
5103
5104 * fileio.c (Fmake_symbolic_link):
5105 (Ffile_symlink_p):
5106 Run handlers even if local machine doesn't have symlinks.
5107
5108 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
5109
5110 * event-msw.c (mswindows_drain_windows_queue):
5111 Don't generate paint magic events for non-XEmacs frames.
5112
5113 2000-03-05 Andy Piper <andy@xemacs.org>
5114
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.
5118
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.
5122
5123 2000-03-05 Martin Buchholz <martin@xemacs.org>
5124
5125 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
5126
5127 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
5128
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
5137 event_to_glyph.
5138
5139 2000-03-04 Andy Piper <andy@xemacs.org>
5140
5141 * window.h (struct window): add gutter_extent_modiff.
5142
5143 * window.c (allocate_window): zero out gutter_extent_modiff.
5144
5145 * redisplay.h: declare sync_display_line_structs.
5146
5147 * redisplay.c (add_glyph_rune): add a better comment.
5148
5149 * redisplay-output.c (sync_display_line_structs): made non-static.
5150 (compare_runes): remove unneccesary glyph cachel access.
5151
5152 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
5153
5154 * gutter.c (output_gutter): don't output the gutter if extent
5155 changes only involve extents in buffers. use 4 sets of display
5156 lines.
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.
5163
5164 * frame.h (struct frame): add 4 sets of gutter display lines.
5165
5166 * extents.c: (extent_changed_for_redisplay): signal changes to
5167 extents in strings in the gutter as well as extents in buffers.
5168
5169 2000-03-02 Andy Piper <andy@xemacs.org>
5170
5171 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
5172
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
5176 little.
5177 (change_frame_size_1): mark gutters changed.
5178
5179 * device.c (Fset_device_class): mark gutters changed.
5180
5181 2000-03-01 Andy Piper <andy@xemacs.org>
5182
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.
5193
5194 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
5195 (update_scrollbar_instance): ditto.
5196
5197 * redisplay.c (generate_modeline): don't take gutters into account.
5198 (generate_modeline): ditto.
5199 (redisplay_frame): small gutter display optimization.
5200
5201 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
5202
5203 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
5204 gutters into account.
5205
5206 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
5207 for window position and type.
5208
5209 * gutter.c (get_gutter_coords): fix for frame gutters.
5210 (update_frame_gutters): update frame geometry if the gutters have
5211 changed.
5212 (init_frame_gutters): record current gutter geometries.
5213
5214 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
5215 var.
5216 (mswindows_widget_instantiate): ditto.
5217
5218 * frame.h (struct frame): add current_gutter_bounds.
5219
5220 * frame.c (change_frame_size_1): position window and minibuffer
5221 appropriately taking into account the frame gutters.
5222
5223 * frame-x.c: (x_initialize_frame_size): take into account the
5224 frame gutters.
5225
5226 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
5227
5228 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
5229
5230 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
5231
5232 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
5233
5234 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
5235
5236 * file-coding.c (reset_decoding_stream): Clear previous
5237 detection state when autodetect.
5238
5239 2000-02-29 Didier Verna <didier@xemacs.org>
5240
5241 * extents.c (set_extent_glyph_1): don't require extents to be
5242 attached.
5243
5244 2000-02-27 Andy Piper <andy@xemacs.org>
5245
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.
5251
5252 2000-02-26 Andy Piper <andy@xemacs.org>
5253
5254 * specifier.c (Fmake_specifier): add gutter references.
5255
5256 * gutter.h (RAW_WINDOW_GUTTER): new macro.
5257
5258 * lisp.h: declare Fvalid_plist_p.
5259
5260 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
5261 as changed.
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
5268 WINDOW_GUTTER.
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
5277 specifier.
5278 (reinit_specifier_type_create_gutter): ditto.
5279 (specifier_vars_of_gutter): use new specifier type for gutter
5280 visibility.
5281 (init_frame_gutters): construct real_gutter correctly.
5282 (Fgutter_specifier_p): beef up documentation.
5283 (Fgutter_size_specifier_p): ditto.
5284
5285 * winslots.h: add real_gutter slots.
5286
5287 2000-02-25 Andy Piper <andy@xemacs.org>
5288
5289 * device-msw.c: Be kind to older cygwin versions. From Raymond
5290 Toy <toy@rtp.ericsson.se>.
5291
5292 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
5293 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
5294
5295 2000-02-25 Martin Buchholz <martin@xemacs.org>
5296
5297 * elhash.c (MARK_OBJ): Practice macro hygiene.
5298
5299 2000-02-24 Martin Buchholz <martin@xemacs.org>
5300
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'
5308
5309 2000-02-25 Andy Piper <andy@xemacs.org>
5310
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
5326 account.
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.
5333
5334 2000-02-25 Andy Piper <andy@xemacs.org>
5335
5336 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
5337 if it is.
5338
5339 2000-02-24 Martin Buchholz <martin@xemacs.org>
5340
5341 * alloc.c (staticpro):
5342 (staticpro_nodump):
5343 (dumpstruct):
5344 (dumpopaque):
5345 (pdump_wire):
5346 (pdump_wire_list):
5347 (compact_string_chars):
5348 (pdump_dump_wired):
5349 Convert: if (foo) abort(); ==> assert (! foo);
5350
5351 * eldap.c (Fldap_search_basic):
5352 (Fldap_add):
5353 (Fldap_modify):
5354 (Fldap_delete):
5355 Fix compiler warnings, and possible crashes if (random) return
5356 value were to be used.
5357
5358 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5359
5360 * device-msw.c: Workaround ResetDC failure.
5361
5362 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
5363 applying a devmode.
5364
5365 * redisplay-msw.c (get_frame_dc): Added start_page_p.
5366 (mswindows_text_width): Do not start printer page.
5367
5368 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
5369
5370 * glyphs-msw.c: Added image methods to msprinter console and
5371 msprinter-specific image instantiation.
5372
5373 2000-02-20 Mike Alexander <mta@arbortext.com>
5374
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
5378
5379 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5380
5381 * glyphs-msw.c:
5382 * redisplay-msw.c (get_frame_dc):
5383 (get_frame_compdc):
5384 * console-msw.h:
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!
5395
5396 2000-02-23 Andy Piper <andy@xemacs.org>
5397
5398 * glyphs.c: add dynamic width and height elements.
5399 (image_instance_equal): ditto.
5400
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.
5405
5406 * glyphs.h (struct Lisp_Image_Instance): add width and height for
5407 dynamic determination. Add appropriate macros.
5408
5409 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
5410 dimensions safe.
5411 (WINDOW_GUTTER_SIZE): ditto.
5412 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
5413
5414 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
5415 inline.
5416 (get_frame_dc): ditto.
5417
5418 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
5419 here.
5420
5421 2000-02-23 Martin Buchholz <martin@xemacs.org>
5422
5423 * XEmacs 21.2.31 is released.
5424
5425 2000-02-22 Ben Wing <ben@xemacs.org>
5426
5427 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
5428
5429 2000-02-22 Andy Piper <andy@xemacs.org>
5430
5431 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
5432
5433 2000-02-21 Mike Sperber <mike@xemacs.org>
5434
5435 * .dbxrc:
5436 * .gdbinit:
5437 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
5438 variables.
5439
5440 2000-02-21 Mike Sperber <mike@xemacs.org>
5441
5442 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
5443
5444 2000-02-21 Martin Buchholz <martin@xemacs.org>
5445
5446 * XEmacs 21.2.30 is released.
5447
5448 2000-02-20 Martin Buchholz <martin@xemacs.org>
5449
5450 Performance hacking.
5451 * *.c (syms_of_*):
5452 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
5453 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
5454 * emacs.c (main_1):
5455 * lisp.h (DEFUN):
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.
5497
5498 2000-02-21 Andy Piper <andy@xemacs.org>
5499
5500 * gui-msw.c (Fmswindows_shell_execute): fix file location
5501 problems.
5502
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.
5506
5507 * glyphs-widget.c (tab_control_query_geometry): don't count the
5508 first item when calculating geometry.
5509
5510 * glyphs.c (map_subwindow): remove redundant code.
5511 (update_frame_subwindows): be more circumspect about when to
5512 update subwindows.
5513
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.
5519
5520 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
5521
5522 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
5523 registration.
5524 (build_syscolor_string): Use mswindows_color_to_string to try to
5525 get a named color.
5526 (mswindows_device_system_metrics): Reverse the foreground and
5527 background colors so that they match the documentation.
5528
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.
5532
5533 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
5534
5535 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
5536
5537 2000-02-18 Olivier Galibert <galibert@pobox.com>
5538
5539 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
5540 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
5541
5542 * symbols.c (init_symbols_once_early): Removed obsolete
5543 DATA_SEG_BITS related kludge.
5544 (defvar_magic): Ditto.
5545
5546 * malloc.c: Removed obsolete DATA_SEG_BITS
5547 * ralloc.c: Ditto.
5548 * mem-limits.h: Ditto.
5549
5550 * Makefile.in.in: Removed obsolete HAVE_SHM
5551 * emacs.c: Ditto.
5552
5553 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
5554
5555 * device-msw.c (mswindows_delete_device): Free DDE string
5556 handles.
5557
5558 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5559
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):
5568 * objects-msw.c:
5569 * menubar-msw.c (displayable_menu_item):
5570 * glyphs-msw.c:
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):
5579 (play_sound_file):
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.
5585
5586 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
5587 mswindows_clear_toolbar were swapped!
5588
5589 * objects-msw.c:(colormap_t):
5590 (fontmap_t):
5591 * emacs.c (struct standard_args): Fixed const jumble.
5592
5593 * glyphs-widget.c (update_widget): Fixed comparison notation.
5594
5595 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
5596
5597 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
5598 __declspec(noreturn) syntax.
5599
5600 2000-02-19 Martin Buchholz <martin@xemacs.org>
5601
5602 * eldap.c (Fldap_open):
5603 (Fldap_search_basic):
5604 (Fldap_add):
5605 (Fldap_modify):
5606 Use new coding system conversion macros.
5607
5608 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
5609
5610 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
5611
5612 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
5613
5614 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
5615 (Fldap_add, Fldap_modify, Fldap_delete): New functions
5616
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
5621 speed_up_interrupts
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
5626 speed_up_interrupts
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
5630
5631
5632 2000-02-17 Martin Buchholz <martin@xemacs.org>
5633
5634 * realpath.c: Determine PATH_MAX maximally portably.
5635
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.
5640
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.
5644
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.
5650
5651 2000-02-18 Martin Buchholz <martin@xemacs.org>
5652
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.
5665
5666 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
5667
5668 * event-msw.c (mswindows_drain_windows_queue):
5669 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
5670 away redundant repaint events.
5671
5672 2000-02-17 Andy Piper <andy@xemacs.org>
5673
5674 * redisplay.h: declare mark_redisplay_structs.
5675
5676 * redisplay.c (redisplay_window):
5677 (redisplay_frame): don't check subwindows_state_changed.
5678 (mark_redisplay): mark gutters here.
5679
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.
5684
5685 * gutter.c (mark_gutters): new function.
5686
5687 * glyphs-x.c (x_update_widget): Always resize to get round a
5688 widget bug.
5689
5690 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
5691 breaking absolutely everything.
5692
5693 * gutter.h: declare mark_gutters.
5694
5695 2000-02-16 Martin Buchholz <martin@xemacs.org>
5696
5697 * XEmacs 21.2.29 is released.
5698
5699 2000-02-15 Olivier Galibert <galibert@pobox.com>
5700
5701 * fns.c (size_bit_vector): Fix computation of the size.
5702
5703 2000-02-15 Martin Buchholz <martin@xemacs.org>
5704
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
5710
5711 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
5712
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.
5719
5720 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
5721
5722 * objects-msw.c (mswindows_create_font_variant): Return the new
5723 font handle.
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.
5727
5728 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5729
5730 * gui.c (gui_item_accelerator): Return the first underlined
5731 character in item name.
5732
5733 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5734
5735 * lisp.h: Added Qprinter.
5736
5737 * general.c (syms_of_general): Initialized it.
5738
5739 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
5740 (get_frame_dc):
5741 (get_frame_compdc): Made inline.
5742
5743 * console.h (struct console_methods): Added eject_page method.
5744
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
5748 for it.
5749
5750 * defice.h: Added DEVICE_DISPLAY_P and friends.
5751
5752 * device.c (Fdevice_printer_p): Used these.
5753
5754 * frame.c (allocate_frame_core): Initialize page number.
5755 (Fprint_job_page_number):
5756 (Fprint_job_eject_page): Implemented.
5757
5758 * frame-msw.c (msprinter_eject_page): Added method.
5759 (msprinter_start_page): Added.
5760
5761 * window.c (Fwindow_truncated_p): Fixed docstring.
5762 (Fwindow_last_line_visible_height): Implemented.
5763
5764 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
5765
5766 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
5767
5768 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
5769
5770 * syntax.c (scan_words): Always advance at least one character.
5771
5772 2000-02-13 Andy Piper <andy@xemacs.org>
5773
5774 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
5775 to make sure the glyph is in the cachels.
5776
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.
5781
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.
5791
5792 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
5793 should no longer be needed.
5794
5795 * glyphs-x.c (x_update_widget): sanitize asserts.
5796 (x_finalize_image_instance): sanitize assignment to widgets.
5797
5798 * glyphs-widget.c (widget_instantiate): don't need to clear the
5799 layout flag here.
5800
5801 2000-02-13 Martin Buchholz <martin@xemacs.org>
5802
5803 * sysdep.c (getcwd): Use standard prototype.
5804 * sysdep.h (getcwd): Use standard prototype.
5805
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
5811 found elsewhere.
5812
5813 2000-02-12 Martin Buchholz <martin@xemacs.org>
5814
5815 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
5816
5817 * s/sol2.h: Remove feature macro initialization.
5818
5819 * alloc.c (alloc_lcrecord): Add more type checking assertions.
5820 (vector_hash): New. Code from internal_hash.
5821 * lrecord.h:
5822 Fix up allocation subsystem comments.
5823
5824 * config.h.in: Add __EXTENSIONS__ for Solaris.
5825
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().
5830
5831 * elhash.c (hash_table_hash): Implement it, finally.
5832 * elhash.c: Use hashcode_t.
5833
5834 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
5835 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
5836
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.
5844
5845 2000-02-10 Martin Buchholz <martin@xemacs.org>
5846
5847 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
5848 Include strings.h to avoid warnings for bzero and strcasecmp.
5849
5850 2000-02-10 Olivier Galibert <galibert@pobox.com>
5851
5852 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
5853 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
5854
5855 * fns.c (size_bit_vector): New. Declare bit vectors as a
5856 sequence.
5857
5858 2000-02-10 Olivier Galibert <galibert@pobox.com>
5859
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.
5871
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.
5875
5876 * lisp.h: Declare dumpopaque and noninteractive1.
5877
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
5882 noninteractive.
5883
5884 2000-02-10 Andy Piper <andy@xemacs.org>
5885
5886 * glyphs.c (image_instance_layout): if the size changes, mark it
5887 as such.
5888
5889 * redisplay-output.c (redisplay_output_layout): Update the
5890 subwindow here.
5891 (redisplay_output_subwindow): ditto.
5892
5893 * glyphs.c (update_subwindow): make sure we reset flags for
5894 layouts as well as everything else.
5895
5896 * glyphs-widget.c (layout_layout): don't need to set the instances
5897 dimensions here.
5898
5899 2000-02-09 Martin Buchholz <martin@xemacs.org>
5900
5901 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
5902 not HAVE_DLOPEN, which is a lower-level thing.
5903
5904 * .cvsignore: Ignore gmon.out
5905
5906 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
5907
5908 * .cvsignore: Ignore portable dumper xemacs.dmp file
5909
5910 2000-02-09 Andy Piper <andy@xemacs.org>
5911
5912 * redisplay-output.c (redisplay_output_layout): be more clever
5913 about when we output based on the changed flags.
5914
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.
5918
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.
5930
5931 * glyphs-x.c (x_finalize_image_instance): try and detect gc
5932 failures.
5933 (x_update_subwindow): only resize subwindows here.
5934 (x_update_widget): new function. Update all changed properties of
5935 a widget.
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
5940 changes.
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.
5945
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.
5955
5956 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
5957 now.
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
5961 state.
5962 (mswindows_tab_control_update): new function. Update the items in
5963 a tab.
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
5968 asynchronously now.
5969 (mswindows_progress_gauge_set_property): ditto.
5970 (console_type_create_glyphs_mswindows): declare new methods.
5971 (image_instantiator_format_create_glyphs_mswindows): ditto.
5972
5973 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
5974 (msprinter_set_frame_properties): ditto.
5975
5976 * console.h (struct console_methods): Add update_widget_method.
5977
5978 2000-02-09 Andy Piper <andy@xemacs.org>
5979
5980 * gui-msw.c (Fmswindows_shell_execute): Make
5981 mswindows-shell-execute industrial strength.
5982
5983 2000-02-08 Martin Buchholz <martin@xemacs.org>
5984
5985 * lrecord.h: Make macro argument `props' match member function `plist'.
5986 * fns.c (Fget):
5987 * fns.c (Fput):
5988 * fns.c (Fremprop):
5989 * fns.c (Fobject_plist):
5990 * alloc.c:
5991 * symbols.c:
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.
5999
6000 * extents.c: Reorder code to remove declarations.
6001
6002 * frame.h (store_in_alist): Remove useless declaration.
6003
6004 2000-02-07 Martin Buchholz <martin@xemacs.org>
6005
6006 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
6007 * config.h.in: Add HAVE_XCONVERTCASE.
6008
6009 2000-02-07 Andy Piper <andy@xemacs.org>
6010
6011 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
6012 it breaks many things.
6013
6014 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
6015
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.
6019
1 2000-02-07 Martin Buchholz <martin@xemacs.org> 6020 2000-02-07 Martin Buchholz <martin@xemacs.org>
2 6021
3 * XEmacs 21.2.28 is released. 6022 * XEmacs 21.2.28 is released.
4 6023
5 2000-02-06 Martin Buchholz <martin@xemacs.org> 6024 2000-02-06 Martin Buchholz <martin@xemacs.org>
13 6032
14 * menubar.c (vars_of_menubar): A small code simplification. 6033 * menubar.c (vars_of_menubar): A small code simplification.
15 6034
16 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug 6035 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
17 6036
18 * ExternalShell.c: 6037 * ExternalShell.c:
19 * ExternalClient.c: 6038 * ExternalClient.c:
20 * EmacsShell-sub.c: 6039 * EmacsShell-sub.c:
21 * EmacsManager.c: 6040 * EmacsManager.c:
22 * EmacsFrame.c: 6041 * EmacsFrame.c:
23 Use consistent style for specifying X resources. 6042 Use consistent style for specifying X resources.
24 6043
25 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC. 6044 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
26 This makes (dontusethis-set-symbol-value-handler) actually usable. 6045 This makes (dontusethis-set-symbol-value-handler) actually usable.
27 6046
28 * lrecord.h (lrecord_decription_type): 6047 * lrecord.h (lrecord_decription_type):
29 * alloc.c (pdump_register_sub): 6048 * alloc.c (pdump_register_sub):
30 (pdump_dump_data): 6049 (pdump_dump_data):
31 (pdump_reloc_one): 6050 (pdump_reloc_one):
32 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects. 6051 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
33 Comply with XEmacs coding style. 6052 Comply with XEmacs coding style.
34 All lrecord descriptions updated to use XD_LISP_OBJECT with 2 6053 All lrecord descriptions updated to use XD_LISP_OBJECT with 2
35 args, and XD_LISP_OBJECT_ARRAY with 3 args. 6054 args, and XD_LISP_OBJECT_ARRAY with 3 args.
36 6055
37 * keymap.c (Faccessible_keymaps): 6056 * keymap.c (Faccessible_keymaps):
38 Make (accessible-keymaps map "\C-h") do the Right Thing. 6057 Make (accessible-keymaps map "\C-h") do the Right Thing.
39 Make (accessible-keymaps map []) do the Right Thing. 6058 Make (accessible-keymaps map []) do the Right Thing.
40 Make (accessible-keymaps map "") do the Right Thing. 6059 Make (accessible-keymaps map "") do the Right Thing.
41 (check_keymap_definition_loop): New function. 6060 (check_keymap_definition_loop): New function.
42 (keymap_store_internal): Keep luser from shooting self in foot, 6061 (keymap_store_internal): Keep luser from shooting self in foot,
46 (print_keymap): Remove 'Yuck' factor by simply printing "size %d". 6065 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
47 6066
48 2000-01-30 Martin Buchholz <martin@xemacs.org> 6067 2000-01-30 Martin Buchholz <martin@xemacs.org>
49 6068
50 * redisplay.c (init_redisplay): Fix small memory leak. 6069 * redisplay.c (init_redisplay): Fix small memory leak.
51 * elhash.h: 6070 * elhash.h:
52 * elhash.c (pdump_reorganize_hash_table): 6071 * elhash.c (pdump_reorganize_hash_table):
53 Rename from reorganize_hash_table. Change prototype. 6072 Rename from reorganize_hash_table. Change prototype.
54 Reuse the original memory for hentries. Save 100k. 6073 Reuse the original memory for hentries. Save 100k.
55 * alloc.c (PDUMP_READ): new macro. 6074 * alloc.c (PDUMP_READ): new macro.
56 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros. 6075 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
57 * alloc.c: No need to #ifndef before #undef. 6076 * alloc.c: No need to #ifndef before #undef.
83 6102
84 * sysdep.c (near start of file): Fixed commentary and rearranged 6103 * sysdep.c (near start of file): Fixed commentary and rearranged
85 ifdefs in readable order. 6104 ifdefs in readable order.
86 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing. 6105 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
87 (start_of_text): 6106 (start_of_text):
88 (end_of_text): 6107 (end_of_text):
89 (end_of_data): Do not compile in if using PDUMP. 6108 (end_of_data): Do not compile in if using PDUMP.
90 6109
91 * symsinit.h: Protptyped vars_of_nt(). 6110 * symsinit.h: Prototyped vars_of_nt().
92 6111
93 * ntproc.c (windows9x_p): Added, instead of os_subtype. 6112 * ntproc.c (windows9x_p): Added, instead of os_subtype.
94 (find_child_console): Use it. 6113 (find_child_console): Use it.
95 (sys_kill): Use it. 6114 (sys_kill): Use it.
96 6115
104 nt_fake_unix_uid, instead of hashing fake uid out of NT RID. 6123 nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
105 (init_user_info): Removed the above mentioned hackery. 6124 (init_user_info): Removed the above mentioned hackery.
106 (fstat, stat): Do not compile in if using MSVC 5.0 and above - 6125 (fstat, stat): Do not compile in if using MSVC 5.0 and above -
107 stat has been fixed in the C runtime. 6126 stat has been fixed in the C runtime.
108 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there. 6127 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
109 6128
110 * file-coding.c (struct file_coding_dump): Do not define 6129 * file-coding.c (struct file_coding_dump): Do not define
111 ucs_to_mule_table in the struct if not MULE. 6130 ucs_to_mule_table in the struct if not MULE.
112 (struct struct lrecord_description fcd_description_1): Do not dump 6131 (struct struct lrecord_description fcd_description_1): Do not dump
113 the above. 6132 the above.
114 6133
151 * frame-msw.c: Added lots of printer code. 6170 * frame-msw.c: Added lots of printer code.
152 6171
153 * faces.c: Moved 'left-margin and 'right-margin defsymbols to 6172 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
154 general.c. 6173 general.c.
155 6174
156 * console-msw.h: Added more msprinter device private slots. 6175 * console-msw.h: Added more msprinter device private slots.
157 6176
158 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com> 6177 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
159 6178
160 * event-msw.c (key_needs_default_processing_p): Added. 6179 * event-msw.c (key_needs_default_processing_p): Added.
161 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it. 6180 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
282 mswindows_drain_windows_queue(). 6301 mswindows_drain_windows_queue().
283 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages 6302 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
284 only. 6303 only.
285 6304
286 * console-msw.h: Moved a few function prototypes here from 6305 * console-msw.h: Moved a few function prototypes here from
287 event-msw.c. 6306 event-msw.c.
288 6307
289 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID 6308 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
290 parameter from unsigned short to unsigned long. 6309 parameter from unsigned short to unsigned long.
291 (Fmswindows_shell_execute): Added return value. 6310 (Fmswindows_shell_execute): Added return value.
292 6311
293 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp> 6312 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
294 6313
295 * sysdep.c (init_system_name): 6314 * sysdep.c (init_system_name):
296 process-unix.c (unix_canonicalized_host_name): 6315 process-unix.c (unix_canonicalized_host_name):
297 Don't call freeaddrinfo() if getaddrinfo() fails. 6316 Don't call freeaddrinfo() if getaddrinfo() fails.
298 6317
299 * process-unix.c (unix_open_unix_network_stream): 6318 * process-unix.c (unix_open_unix_network_stream):
300 Moved the code to get a port # into address loop. 6319 Moved the code to get a port # into address loop.
301 6320
302 2000-01-27 Martin Buchholz <martin@xemacs.org> 6321 2000-01-27 Martin Buchholz <martin@xemacs.org>
303 6322
304 * buffer.c (reinit_vars_of_buffer): 6323 * buffer.c (reinit_vars_of_buffer):
305 The right place to initialize conversion_in_dynarr and 6324 The right place to initialize conversion_in_dynarr and
306 conversion_out_dynarr. 6325 conversion_out_dynarr.
307 6326
308 * alloc.c (pdump): Use the real open() till sys_open() is functional. 6327 * alloc.c (pdump): Use the real open() till sys_open() is functional.
309 6328
460 Make sure file-name, keyboard, terminal, and ctext are always 6479 Make sure file-name, keyboard, terminal, and ctext are always
461 defined as coding systems or aliases. Make 6480 defined as coding systems or aliases. Make
462 file-name-coding-system, terminal-coding-system, and 6481 file-name-coding-system, terminal-coding-system, and
463 keyboard-coding-system magical variables that are equivalent to 6482 keyboard-coding-system magical variables that are equivalent to
464 defining the corresponding coding system aliases. 6483 defining the corresponding coding system aliases.
465 6484
466 * file-coding.c (Fcoding_system_canonical_name_p): New function. 6485 * file-coding.c (Fcoding_system_canonical_name_p): New function.
467 * file-coding.c (Fcoding_system_alias_p): New function. 6486 * file-coding.c (Fcoding_system_alias_p): New function.
468 * file-coding.c (Fcoding_system_aliasee): New function. 6487 * file-coding.c (Fcoding_system_aliasee): New function.
469 * file-coding.c (append_suffix_to_symbol): New function. 6488 * file-coding.c (append_suffix_to_symbol): New function.
470 * file-coding.c (dangling_coding_system_alias_p): New function. 6489 * file-coding.c (dangling_coding_system_alias_p): New function.
498 * elhash.c (hentry_description): Use more portable definition. 6517 * elhash.c (hentry_description): Use more portable definition.
499 (resize_hash_table): Initialize new hentries using 6518 (resize_hash_table): Initialize new hentries using
500 xnew_array_and_zero, thereby simplifying the code. 6519 xnew_array_and_zero, thereby simplifying the code.
501 6520
502 * mule-charset.c (make_charset): Make sure entire object is 6521 * mule-charset.c (make_charset): Make sure entire object is
503 intialized, to avoid Purify warnings. 6522 initialized, to avoid Purify warnings.
504 6523
505 * alloc.c (resize_string): Fix unlikely crash with big strings. 6524 * alloc.c (resize_string): Fix unlikely crash with big strings.
506 6525
507 2000-01-24 Martin Buchholz <martin@xemacs.org> 6526 2000-01-24 Martin Buchholz <martin@xemacs.org>
508 6527
509 * realpath.c (xrealpath): 6528 * realpath.c (xrealpath):
510 Don't call getwd(). 6529 Don't call getwd().
511 6530
512 2000-01-25 Martin Buchholz <martin@xemacs.org> 6531 2000-01-25 Martin Buchholz <martin@xemacs.org>
513 6532
514 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors. 6533 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
548 (DEFVAR_BOOL_MAGIC): Ditto. 6567 (DEFVAR_BOOL_MAGIC): Ditto.
549 * glyphs.h: Reindent backslash. 6568 * glyphs.h: Reindent backslash.
550 6569
551 2000-01-24 Martin Buchholz <martin@xemacs.org> 6570 2000-01-24 Martin Buchholz <martin@xemacs.org>
552 6571
553 * glyphs-widget.c (layout_query_geometry): 6572 * glyphs-widget.c (layout_query_geometry):
554 (layout_layout): Use correct types for gheight, gwidth. 6573 (layout_layout): Use correct types for gheight, gwidth.
555 6574
556 2000-01-24 Martin Buchholz <martin@xemacs.org> 6575 2000-01-24 Martin Buchholz <martin@xemacs.org>
557 6576
558 * EmacsManager.c (QueryGeometry): Purified. 6577 * EmacsManager.c (QueryGeometry): Purified.
559 6578
560 2000-01-23 Martin Buchholz <martin@xemacs.org> 6579 2000-01-23 Martin Buchholz <martin@xemacs.org>
561 6580
562 * alloc.c (make_float): Make sure entire object is intialized, to 6581 * alloc.c (make_float): Make sure entire object is initialized, to
563 avoid Purify warnings. 6582 avoid Purify warnings.
564 (pdump_register_sub): Remove useless assignment. 6583 (pdump_register_sub): Remove useless assignment.
565 (pdump): Use xmalloc, not malloc. 6584 (pdump): Use xmalloc, not malloc.
566 (pdump_load): Use xmalloc, not malloc. 6585 (pdump_load): Use xmalloc, not malloc.
567 6586
568 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com> 6587 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
569 6588
570 * callproc.c: 6589 * callproc.c:
571 * dired-msw.c: 6590 * dired-msw.c:
572 * fileio.c: 6591 * fileio.c:
573 * process-nt.c: 6592 * process-nt.c:
574 * redisplay-msw.c: 6593 * redisplay-msw.c:
575 * sysdep.c: Removed redundant #include <windows.h> 6594 * sysdep.c: Removed redundant #include <windows.h>
576 6595
577 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com> 6596 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
578 6597
579 * frame.c (delete_frame_internal): Do not delete device when its 6598 * frame.c (delete_frame_internal): Do not delete device when its
580 implementation so declares. 6599 implementation so declares.
581 (delete_frame_internal): Set device selected frame to nil when 6600 (delete_frame_internal): Set device selected frame to nil when
582 last frame goes away. 6601 last frame goes away.
583 6602
584 * device-msw.c (msprinter_device_system_metrics): Implemented. 6603 * device-msw.c (msprinter_device_system_metrics): Implemented.
585 (mswindows_device_system_metrics): Added 'device-dpi property. 6604 (mswindows_device_system_metrics): Added 'device-dpi property.
586 6605
587 * device.c: (Fdevice_printer_p): Added. 6606 * device.c: (Fdevice_printer_p): Added.
644 (image_instantiator_progress_guage): 6663 (image_instantiator_progress_guage):
645 (image_instantiator_tree_view): 6664 (image_instantiator_tree_view):
646 (image_instantiator_tab_control): 6665 (image_instantiator_tab_control):
647 (image_instantiator_labels): 6666 (image_instantiator_labels):
648 (image_instantiator_layout): ditto. 6667 (image_instantiator_layout): ditto.
649 (image_instantiator_format_create_glyphs_widget): Call preceeding 6668 (image_instantiator_format_create_glyphs_widget): Call preceding
650 functions. 6669 functions.
651 6670
652 2000-01-22 Martin Buchholz <martin@xemacs.org> 6671 2000-01-22 Martin Buchholz <martin@xemacs.org>
653 6672
654 * process.c (Fset_process_coding_system): 6673 * process.c (Fset_process_coding_system):
655 * device-x.c (Fx_keysym_hash_table): 6674 * device-x.c (Fx_keysym_hash_table):
656 Docstring fixes. 6675 Docstring fixes.
657 6676
658 * lstream.c (Lstream_write): Return documented value, not 0. 6677 * lstream.c (Lstream_write): Return documented value, not 0.
659 6678
660 * fileio.c (directory_file_name): 6679 * fileio.c (directory_file_name):
661 (Fsubstitute_in_file_name): 6680 (Fsubstitute_in_file_name):
662 (Fsubstitute_insert_file_contents_internal): 6681 (Fsubstitute_insert_file_contents_internal):
663 (Fwrite_region_internal): 6682 (Fwrite_region_internal):
664 * emacs.c: 6683 * emacs.c:
665 * sysdep.c: 6684 * sysdep.c:
666 * getloadavg.c: 6685 * getloadavg.c:
667 * systty.h: 6686 * systty.h:
668 Remove vestigial APOLLO-conditional code. 6687 Remove vestigial APOLLO-conditional code.
669 6688
670 2000-01-21 Martin Buchholz <martin@xemacs.org> 6689 2000-01-21 Martin Buchholz <martin@xemacs.org>
671 6690
686 * xmu.h: Add guard macros. 6705 * xmu.h: Add guard macros.
687 * gpmevent.h: Add copyright statement. Add guard macros. 6706 * gpmevent.h: Add copyright statement. Add guard macros.
688 * miscplay.h: Add guard macros. 6707 * miscplay.h: Add guard macros.
689 * *.h: Use consistent C-standards-approved guard macro names. 6708 * *.h: Use consistent C-standards-approved guard macro names.
690 6709
691 * opaque.c (make_opaque): Switch parameter order. 6710 * opaque.c (make_opaque): Switch parameter order.
692 * opaque.h (make_opaque): Switch parameter order. 6711 * opaque.h (make_opaque): Switch parameter order.
693 Update all callers. 6712 Update all callers.
694 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR. 6713 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
695 6714
696 * config.h.in (type_checking_assert): Added. 6715 * config.h.in (type_checking_assert): Added.