XEmacs 21.2.28 "Hermes".
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2000-02-07  Martin Buchholz <martin@xemacs.org>
2
3         * XEmacs 21.2.28 is released.
4
5 2000-02-06  Martin Buchholz  <martin@xemacs.org>
6
7         * event-Xt.c (x_keysym_to_character): New.
8         (maybe_define_x_key_as_self_inserting_character): New.
9         (x_has_keysym): New.
10         Auto-define all keys on the keyboard as self-insert-key.
11
12 2000-02-02  Martin Buchholz  <martin@xemacs.org>
13
14         * menubar.c (vars_of_menubar): A small code simplification.
15
16         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
17
18         * ExternalShell.c: 
19         * ExternalClient.c: 
20         * EmacsShell-sub.c: 
21         * EmacsManager.c: 
22         * EmacsFrame.c: 
23         Use consistent style for specifying X resources.
24
25         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
26         This makes (dontusethis-set-symbol-value-handler) actually usable.
27
28         * lrecord.h (lrecord_decription_type):
29         * alloc.c (pdump_register_sub): 
30         (pdump_dump_data): 
31         (pdump_reloc_one): 
32         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
33         Comply with XEmacs coding style.
34         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
35         args, and XD_LISP_OBJECT_ARRAY with 3 args.
36
37         * keymap.c (Faccessible_keymaps): 
38         Make (accessible-keymaps map "\C-h") do the Right Thing.
39         Make (accessible-keymaps map []) do the Right Thing.
40         Make (accessible-keymaps map "") do the Right Thing.
41         (check_keymap_definition_loop): New function.
42         (keymap_store_internal): Keep luser from shooting self in foot,
43           via (define-key ctl-x-4-map "p" global-map).
44         Remove fullness slot from struct Lisp_Keymap, since hash tables
45         are now reliable.
46         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
47
48 2000-01-30  Martin Buchholz  <martin@xemacs.org>
49
50         * redisplay.c (init_redisplay): Fix small memory leak.
51         * elhash.h: 
52         * elhash.c (pdump_reorganize_hash_table): 
53         Rename from reorganize_hash_table. Change prototype.
54         Reuse the original memory for hentries.  Save 100k.
55         * alloc.c (PDUMP_READ): new macro.
56         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
57         * alloc.c: No need to #ifndef before #undef.
58
59         * print.c: Allow debug_print() to print readably by modifying
60         debug_print_readably.  Use consistent variable names.
61
62         * .dbxrc: Try to get things to work even if stopped in a function
63         without source available by explicitly specifying source files.
64 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
65
66         * unexnt.c (_start): Removed bogus code which caused loading heap
67         from differrent executable file.
68         Removed bogus assignment to _fmode, which caused inconsistencies.
69
70 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
71
72         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
73         Have spawnve encapsulation regard DONT_ENCAPSULATE.
74         Do not preliminary `#define signal sigset'.
75
76         * systime.h: Do not prototype environ on windows nt and cygwin,
77         this conflicts with system header.
78
79         * syssignal.h: Use correct define for WINDOWSNT
80
81         * sysdep.h: Do not prototype environ on windows nt, this conflicts
82         with system header.
83
84         * sysdep.c (near start of file): Fixed commentary and rearranged
85         ifdefs in readable order.
86         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
87         (start_of_text):
88         (end_of_text): 
89         (end_of_data): Do not compile in if using PDUMP.
90
91         * symsinit.h: Protptyped vars_of_nt().
92
93         * ntproc.c (windows9x_p): Added, instead of os_subtype.
94         (find_child_console): Use it.
95         (sys_kill): Use it.
96
97         * ntheap.h: Do not extern os_subtype.
98
99         * ntheap.c (cache_system_info): Do not cache unneeded:
100         nt_major_version, nt_minor_version and os_subtype.
101         (recreate_heap): Do not compile in when PDUMPing.
102
103         * nt.c (geteuid and friends): Use the new varibale
104         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
105         (init_user_info): Removed the above mentioned hackery.
106         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
107         stat has been fixed in the C runtime.
108         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
109         
110         * file-coding.c (struct file_coding_dump): Do not define
111         ucs_to_mule_table in the struct if not MULE.
112         (struct struct lrecord_description fcd_description_1): Do not dump
113         the above.
114
115         * emacs.c (main_1): Call vars_of_nt().
116         (right before Fdump_emacs_data): Don't need lastfile if using both
117         portabe dumper and system malloc.
118
119         * alloc.c (Fmemory_limit): Conditionalized out.
120         (pdump): Use OPEN_BINARY for the portable dump file.
121         (pdump_load): Ditto.
122
123 2000-02-02  Mike Alexander  <mta@arbortext.com>
124
125         * nt.c (convert_time): Set tm_isdst before calling mktime and
126         avoid calling it at all if the compiler supports 64 bit integers.
127         Also initialize utc_base_ft before using it.
128
129 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
130
131         * frame.c (change_frame_size_1): Take f->internal_border_width
132         into consideration when calculating the width of the frame.
133
134 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
135
136         * window.c (frame_min_height):
137         (frame_size_valid_p):
138         (frame_pixsize_valid_p): Added.
139         (check_frame_size): Generalized.
140
141         * window.h: Prototyped the above.
142
143         * lisp.h:
144         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
145         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
146         Deleted Vwin32_* and Vbinary_process_* unused variables.
147
148         * device-msw.c (msprinter_init_device): Do not get printer font
149         list; Added DEVMODE functions.
150
151         * frame-msw.c: Added lots of printer code.
152
153         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
154         general.c.
155
156         * console-msw.h: Added more msprinter device private slots.     
157
158 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
159
160         * event-msw.c (key_needs_default_processing_p): Added.
161         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
162
163 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
164
165         * glyphs.c (image_instance_layout): Mark image instance as clean
166         after layout.
167         (glyph_dirty_p): Removed redundant function.
168         (invalidate_glyph_geometry_maybe): Added.
169         (update_glyph_cachel_data): Call it.
170
171         * glyphs.h: Prototyped it.
172
173         * redisplay.c (add_glyph_rune): Call it.
174         (redisplay_window): Reset glyphs cachels when frame faces has
175         changed, thus forcing recomputation of built-in border glyphs.
176
177 2000-01-30  Martin Buchholz  <martin@xemacs.org>
178
179         * Makefile.in.in: Make portable dumper and purify play well together.
180         Add imperfect, but better than nothing, support for pdump.
181         Remove xemacs.dmp when temacs is re-generated.
182         Don't ignore errors when dumping xemacs.
183
184         * symbols.c (maybe_call_magic_handler): Remove one magic number.
185
186 2000-01-28  Andy Piper  <andy@xemacs.org>
187
188         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
189         (setup_normal_frame): ditto.
190         (setup_frame_without_minibuffer): ditto.
191         (setup_minibuffer_frame): ditto.
192         (delete_frame_internal): ditto.
193         (Fmake_frame_invisible): ditto.
194         (Ficonify_frame): ditto.
195
196         * window.h: change Fset_window_buffer signature.
197
198         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
199         (Fset_window_buffer): allow recording of buffer if the window is
200         the selected window.
201         (window_loop): Use new Fset_window signature.
202
203 2000-01-23  Daniel Pittman  <daniel@danann.net>
204
205         * config.h.in: Added template for `HAVE_ATHENA_3D'
206
207 2000-01-29  Andy Piper  <andy@xemacs.org>
208
209         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
210
211         * gutter.c (output_gutter): Don't output if the window isn't live.
212
213 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
214
215         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
216         of 01/12/00: Moved SetFocus back here where it belongs.
217
218 2000-01-23  Andy Piper  <andy@xemacs.org>
219
220         * s/cygwin32.h: declare printer things.
221
222 2000-01-26  Andy Piper  <andy@xemacs.org>
223
224         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
225         Alexander.
226
227 2000-01-24  Andy Piper  <andy@xemacs.org>
228
229         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
230         (mswindows_button_instantiate): Make sure glyph is a pixmap.
231
232         * glyphs-widget.c (widget_instantiate): Avoid shadows.
233
234         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
235
236         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
237
238         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
239         (mswindows_output_display_block): Avoid local shadows.
240
241         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
242         (mswindows_enqueue_mouse_button_event): ditto.
243         (mswindows_handle_gui_wm_command): remove declaration.
244
245         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
246         warnings.
247
248         * console-msw.h: Avoid shadows.
249         (mswindows_get_toolbar_button_text):
250         (emacs_mswindows_create_stream_pair):
251         (emacs_mswindows_delete_stream_pair):
252         (mswindows_handle_toolbar_wm_command): declare.
253
254         * device-msw.c (build_syscolor_string): Avoid shadows.
255
256 2000-01-23  Andy Piper  <andy@xemacs.org>
257
258         * glyphs-widget.c (widget_instantiate): reverse the items for
259         layouts so that children are in the expected order.
260
261 2000-01-28  Martin Buchholz  <martin@xemacs.org>
262
263         * ralloc.c: safe_bcopy ==> memmove
264         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
265         * s/msdos.h: Remove BCOPY macros.
266         * insdel.c (gap_right): Remove BCOPY conditional code.
267         * insdel.c (gap_left): Remove BCOPY conditional code.
268         XEmacs demands a working ANSI C compiler - hence memmove.
269
270         * regex.c (regex_compile): Remove accidental use of trigraphs.
271
272 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
273
274         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
275         event timestamp.
276
277 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
278
279         * event-msw.c (mswindows_drain_windows_queue): Added the
280         parameter.
281         (mswindows_need_event): Commented the call to
282         mswindows_drain_windows_queue().
283         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
284         only.
285
286         * console-msw.h: Moved a few function prototypes here from
287         event-msw.c. 
288
289         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
290         parameter from unsigned short to unsigned long.
291         (Fmswindows_shell_execute): Added return value.
292
293 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
294
295         * sysdep.c (init_system_name): 
296           process-unix.c (unix_canonicalized_host_name): 
297         Don't call freeaddrinfo() if getaddrinfo() fails.
298
299         * process-unix.c (unix_open_unix_network_stream):
300         Moved the code to get a port # into address loop.
301
302 2000-01-27  Martin Buchholz  <martin@xemacs.org>
303
304         * buffer.c (reinit_vars_of_buffer): 
305         The right place to initialize conversion_in_dynarr and
306         conversion_out_dynarr.
307
308         * alloc.c (pdump): Use the real open() till sys_open() is functional.
309
310         * process-unix.c (unix_canonicalize_host_name): Muleize.
311         (unix_open_network_stream): Muleize.
312
313         * buffer.h: Fix up prototypes for ralloc.c functions.
314
315 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
316         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
317         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
318                 instead of gethostbyname()
319         * process-unix.c: In unix_canonicalize_host_name() and
320                 unix_open_network_stream(), add code to use getaddrinfo()
321                 instead of gethostbyname().
322
323 2000-01-27  Daniel Pittman <daniel@danann.net>
324
325         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
326         libs when built with flat Athena.
327
328 2000-01-27  Martin Buchholz  <martin@xemacs.org>
329
330         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
331         Use coding standards for function prototypes.
332
333 2000-01-25  Martin Buchholz  <martin@xemacs.org>
334
335         * dialog-msw.c (push_lisp_string_as_unicode):
336         * doc.c (unparesseuxify_doc_string):
337         * dired.c (Fuser_name_completion_1):
338         * dired.c (Fuser_name_all_completions):
339         * dired.c (free_user_cache):
340         * dired.c (user_name_completion):
341         * console-x.c (get_display_arg_connection):
342         * minibuf.c (clear_echo_area_internal):
343         * minibuf.c (echo_area_append):
344         * eldap.c (Fldap_open):
345         * eldap.c (Fldap_search_internal):
346         * frame-x.c (x_set_frame_text_value):
347         * frame-x.c (x_set_frame_properties):
348         * frame-x.c (x_create_widgets):
349         * redisplay-tty.c (term_get_fkeys_1):
350         * objects-x.c (x_parse_nearest_color):
351         * objects-x.c (x_valid_color_name_p):
352         * objects-x.c (x_initialize_font_instance):
353         * objects-x.c (x_list_fonts):
354         * objects-x.c (x_find_charset_font):
355         * tooltalk.c (Fadd_tooltalk_message_arg):
356         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
357         * tooltalk.c (Fadd_tooltalk_pattern_arg):
358         * process-unix.c (unix_create_process):
359         * ntproc.c (sys_spawnve):
360         * sound.c (Fplay_sound_file):
361         * sound.c (Fplay_sound):
362         * buffer.c (init_initial_directory):
363         * buffer.c (init_buffer):
364         * editfns.c (init_editfns):
365         * editfns.c (Ftemp_directory):
366         * editfns.c (Fuser_full_name):
367         * editfns.c (uncache_home_directory):
368         * editfns.c (get_home_directory):
369         * editfns.c (Fuser_home_directory):
370         * editfns.c (Fformat_time_string):
371         * editfns.c (Fcurrent_time_string):
372         * gui-x.c (button_item_to_widget_value):
373         * database.c (Fopen_database):
374         * event-Xt.c (x_to_emacs_keysym):
375         * event-Xt.c (x_event_to_emacs_event):
376         * event-Xt.c (describe_event_window):
377         * event-msw.c (mswindows_wnd_proc):
378         * glyphs-eimage.c (jpeg_instantiate):
379         * glyphs-eimage.c (gif_instantiate):
380         * glyphs-eimage.c (png_instantiate):
381         * glyphs-eimage.c (tiff_instantiate):
382         * glyphs-x.c (xbm_instantiate_1):
383         * glyphs-x.c (x_xbm_instantiate):
384         * glyphs-x.c (x_xface_instantiate):
385         * glyphs-x.c (autodetect_instantiate):
386         * glyphs-x.c (cursor_font_instantiate):
387         * glyphs-x.c (x_widget_instantiate):
388         * glyphs-x.c (x_widget_set_property):
389         * glyphs-x.c (x_widget_property):
390         * glyphs-x.c (BUILD_GLYPH_INST):
391         * print.c (write_string_to_stdio_stream):
392         * print.c (output_string):
393         * print.c (Falternate_debugging_output):
394         * print.c (Fexternal_debugging_output):
395         * glyphs-msw.c (extract_xpm_color_names):
396         * glyphs-msw.c (mswindows_xpm_instantiate):
397         * glyphs-msw.c (bmp_instantiate):
398         * glyphs-msw.c (resource_name_to_resource):
399         * glyphs-msw.c (mswindows_resource_instantiate):
400         * glyphs-msw.c (xbm_instantiate_1):
401         * glyphs-msw.c (mswindows_xbm_instantiate):
402         * glyphs-msw.c (mswindows_xface_instantiate):
403         * glyphs-msw.c (mswindows_widget_instantiate):
404         * glyphs-msw.c (add_tree_item):
405         * glyphs-msw.c (add_tab_item):
406         * glyphs-msw.c (mswindows_combo_box_instantiate):
407         * glyphs-msw.c (mswindows_widget_property):
408         * glyphs-msw.c (mswindows_combo_box_property):
409         * glyphs-msw.c (mswindows_widget_set_property):
410         * console.c (stuff_buffered_input):
411         * objects-msw.c (mswindows_initialize_color_instance):
412         * objects-msw.c (mswindows_valid_color_name_p):
413         * objects-msw.c (mswindows_list_fonts):
414         * objects-msw.c (mswindows_font_instance_truename):
415         * bytecode.c (optimize_compiled_function):
416         * select-x.c (symbol_to_x_atom):
417         * select-x.c (x_atom_to_symbol):
418         * select-x.c (hack_motif_clipboard_selection):
419         * select-x.c (selection_data_to_lisp_data):
420         * select-x.c (lisp_data_to_selection_data):
421         * select-x.c (Fx_get_cutbuffer_internal):
422         * select-x.c (Fx_store_cutbuffer_internal):
423         * buffer.h (TO_EXTERNAL_FORMAT): New function.
424         * buffer.h (TO_INTERNAL_FORMAT): New function.
425         * emacs.c (make_arg_list_1):
426         * emacs.c (make_argc_argv):
427         * emacs.c (main_1):
428         * emacs.c (Fdump_emacs):
429         * emacs.c (split_string_by_emchar_1):
430         * file-coding.h:
431         * lisp.h:
432         * lstream.h:
433         * symsinit.h:
434         * device-x.c (x_init_device):
435         * device-x.c (Fx_valid_keysym_name_p):
436         * device-x.c (Fx_get_font_path):
437         * device-x.c (Fx_set_font_path):
438         * glyphs.c (bitmap_to_lisp_data):
439         * glyphs.c (pixmap_to_lisp_data):
440         * alloc.c (make_ext_string): Use coding system arguments.  Update
441         all callers.
442         * alloc.c (build_string):
443         * callproc.c (child_setup):
444         * callproc.c (init_callproc):
445         * fileio.c (lisp_strerror):
446         * fileio.c (directory_file_name):
447         * fileio.c (Fexpand_file_name):
448         * fileio.c (Ffile_truename):
449         * fileio.c (Fsysnetunam):
450         * fileio.c (Fdo_auto_save):
451         * sysdep.c (sys_readdir):
452         * tests.c: New file.  Allow adding C tests.
453         Replace GET_* macros with a more comprehensible and flexible
454         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
455         Modify all calls.
456         Any coding system can be used to do format conversion.
457         Eliminate enum external_data_format.
458         Eliminate convert_to_external_format.
459         Eliminate convert_to_internal_format.
460         Make sure file-name, keyboard, terminal, and ctext are always
461         defined as coding systems or aliases.  Make
462         file-name-coding-system, terminal-coding-system, and
463         keyboard-coding-system magical variables that are equivalent to
464         defining the corresponding coding system aliases.
465         
466         * file-coding.c (Fcoding_system_canonical_name_p): New function.
467         * file-coding.c (Fcoding_system_alias_p): New function.
468         * file-coding.c (Fcoding_system_aliasee): New function.
469         * file-coding.c (append_suffix_to_symbol): New function.
470         * file-coding.c (dangling_coding_system_alias_p): New function.
471         * file-coding.c (Ffind_coding_system):
472         * file-coding.c (Fcopy_coding_system):
473         * file-coding.c (encode_coding_no_conversion):
474         * file-coding.c (syms_of_file_coding):
475         * file-coding.c (vars_of_file_coding):
476         Rewrite coding system alias code.
477         Allow nested aliases, like symbolic links.
478         Allow redefinition of coding system aliases.
479         Prevent existence of dangling coding system aliases.
480
481         * dired.c (Fuser_name_completion_1):
482         * dired.c (Fuser_name_all_completions):
483         A crash would happen if user did QUIT in the middle of building
484         user_name_cache.  Remove redundant code in mainline and unwind_protect.
485
486         * lisp.h:
487         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
488
489         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
490         an unsigned char *.  Update all callers.
491
492 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
493
494         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
495
496 2000-01-25  Martin Buchholz  <martin@xemacs.org>
497
498         * elhash.c (hentry_description): Use more portable definition.
499         (resize_hash_table): Initialize new hentries using
500         xnew_array_and_zero, thereby simplifying the code.
501
502         * mule-charset.c (make_charset): Make sure entire object is
503         intialized, to avoid Purify warnings.
504
505         * alloc.c (resize_string): Fix unlikely crash with big strings.
506
507 2000-01-24  Martin Buchholz  <martin@xemacs.org>
508
509         * realpath.c (xrealpath): 
510         Don't call getwd().
511
512 2000-01-25  Martin Buchholz  <martin@xemacs.org>
513
514         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
515
516 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
517
518         * unexelfsgi.c (unexec): Change the way we decide which segment
519         should be extended.
520
521         Assumption that .bss section should be outside the PT_LOADable
522         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
523         it's present) is inside the 'data' segment. This would fail the
524         test which was used to find a segment to grow and cover new
525         heap. Instead of this assumption, I created another one - on IRIX
526         the segment to grow should start below .bss and it's address
527         should extent above the end of .bss. Once this segment is
528         identified, it's grown to accommodate the new heap and new
529         zero-length .bss section is added at the end of .data2.
530
531 2000-01-25  Martin Buchholz  <martin@xemacs.org>
532
533         * eval.c (Feval): Wrong number of arguments should use original
534         function, not the indirect_function version of it.
535
536 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
537
538         * glyphs-x.c (x_button_instantiate): Don't add image if
539         it is not a pixmap.
540         (x_locate_pixmap_file): Call Fexpand_file_name when file name
541         is relative.
542
543 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
544
545         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
546         declaration.
547         (DEFVAR_INT_MAGIC): Ditto.
548         (DEFVAR_BOOL_MAGIC): Ditto.
549         * glyphs.h: Reindent backslash.
550
551 2000-01-24  Martin Buchholz  <martin@xemacs.org>
552
553         * glyphs-widget.c (layout_query_geometry): 
554         (layout_layout): Use correct types for gheight, gwidth.
555
556 2000-01-24  Martin Buchholz  <martin@xemacs.org>
557
558         * EmacsManager.c (QueryGeometry): Purified.
559
560 2000-01-23  Martin Buchholz  <martin@xemacs.org>
561
562         * alloc.c (make_float): Make sure entire object is intialized, to
563         avoid Purify warnings.
564         (pdump_register_sub): Remove useless assignment.
565         (pdump): Use xmalloc, not malloc.
566         (pdump_load): Use xmalloc, not malloc.
567
568 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
569
570         * callproc.c: 
571         * dired-msw.c: 
572         * fileio.c: 
573         * process-nt.c: 
574         * redisplay-msw.c: 
575         * sysdep.c: Removed redundant #include <windows.h>
576
577 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
578
579         * frame.c (delete_frame_internal): Do not delete device when its
580         implementation so declares.
581         (delete_frame_internal): Set device selected frame to nil when
582         last frame goes away. 
583
584         * device-msw.c (msprinter_device_system_metrics): Implemented.
585         (mswindows_device_system_metrics): Added 'device-dpi property.
586
587         * device.c: (Fdevice_printer_p): Added.
588         Added 'offset-workspace device metric.
589
590         * console.h (device_metrics): Declared DM_offset_workspace.
591
592 2000-01-23  Martin Buchholz  <martin@xemacs.org>
593
594         * fileio.c (Ffile_truename): Remove pointless and confusing
595         initialization of elen.
596
597         * glyphs-widget.c: Compiler warning fixes.
598
599 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
600
601         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
602         instead of a Lisp_Object as argument to make it consistent with
603         the other LIVE_P macros.
604         (CHECK_LIVE_PROCESS): New macro.
605
606         * process.c: Declare Qprocess_live_p.
607         (Fprocess_live_p): New function.
608         (create_process): Use PROCESS_LIVE_P.
609         (read_process_output): Ditto.
610         (set_process_filter): Ditto.
611         (Fdelete_process): Ditto.
612         (kill_buffer_processes): Ditto
613         (process_send_signal): Use CHECK_LIVE_PROCESS.
614         (Fprocess_input_coding_system): Check whether process is still
615         alive (fix PR#1061).
616         (Fprocess_output_coding_system): Ditto.
617         (Fprocess_coding_system): Ditto.
618         (Fset_process_input_coding_system): Ditto.
619         (Fset_process_output_coding_system): Ditto.
620
621 2000-01-23  Andy Piper  <andy@xemacs.org>
622
623         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
624         layout and widget.
625
626         * glyphs.c (mark_image_instance): take into account changed
627         image_instance format.
628         (image_instance_equal): ditto.
629         (image_instance_hash): ditto.
630
631         * glyphs-widget.c (widget_instantiate): Incorporate layout
632         instantiation here. Delay layout of the layout until later.
633         (layout_instantiate): deleted.
634         (layout_query_geometry): new function. get the geometry of a
635         layout.
636         (layout_layout): layout a layout dynamically.
637         (image_instantiator_widget): New function - splitting up
638         image_instantiator_format_create_glyphs_widget for netwinder
639         compilation.
640         (image_instantiator_buttons):
641         (image_instantiator_edit_fields):
642         (image_instantiator_combo_box):
643         (image_instantiator_scrollbar):
644         (image_instantiator_progress_guage):
645         (image_instantiator_tree_view):
646         (image_instantiator_tab_control):
647         (image_instantiator_labels):
648         (image_instantiator_layout): ditto.
649         (image_instantiator_format_create_glyphs_widget): Call preceeding
650         functions.
651
652 2000-01-22  Martin Buchholz  <martin@xemacs.org>
653
654         * process.c (Fset_process_coding_system):
655         * device-x.c (Fx_keysym_hash_table): 
656         Docstring fixes.
657
658         * lstream.c (Lstream_write): Return documented value, not 0.
659
660         * fileio.c (directory_file_name): 
661         (Fsubstitute_in_file_name): 
662         (Fsubstitute_insert_file_contents_internal): 
663         (Fwrite_region_internal):
664         * emacs.c:
665         * sysdep.c:
666         * getloadavg.c: 
667         * systty.h:
668         Remove vestigial APOLLO-conditional code.
669
670 2000-01-21  Martin Buchholz  <martin@xemacs.org>
671
672         * getpagesize.h: Add guard macros.
673         * libsst.h: Add guard macros.
674         * libst.h: Add guard macros.
675         * line-number.h: Add guard macros.
676         * ndir.h: Add guard macros.
677         * sysfloat.h: Add guard macros.
678         * sysfile.h: Add guard macros.
679         * sysproc.h: Add guard macros.
680         * syswait.h: Add guard macros.
681         * xintrinsic.h: Add guard macros.
682         * xintrinsicp.h: Add guard macros.
683         * xmmanager.h: Add guard macros.
684         * xmmanagerp.h: Add guard macros.
685         * xmprimitive.h: Add guard macros.
686         * xmu.h: Add guard macros.
687         * gpmevent.h: Add copyright statement. Add guard macros.
688         * miscplay.h: Add guard macros.
689         * *.h: Use consistent C-standards-approved guard macro names.
690
691         * opaque.c (make_opaque): Switch parameter order. 
692         * opaque.h (make_opaque): Switch parameter order.
693         Update all callers.
694         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
695
696         * config.h.in (type_checking_assert): Added.
697         (bufpos_checking_assert): Added.
698
699 2000-01-21  Martin Buchholz  <martin@xemacs.org>
700
701         * alloc.c: Harmless pdump changes.
702         - Use countof().
703         - spell alignment correctly.
704         * sysdep.c: Use countof()
705
706 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
707
708         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
709         initially_selected_for_input() console method, default to 0.
710         (semi_canonicalize_console_connection): Try to delegate to
711         canonicalize_console_connection if no such console method.
712         (canonicalize_console_connection): Vice versa.
713         (print_console): Do not print nil connection.
714
715         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
716         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
717         (XDEVIMPF_FRAMELESS_OK): Added.
718         (CONSOLE_INHERITS_METHOD): Added.
719
720         * console-msw.c (mswindows_canonicalize_console_connection):
721         Added.
722         (mswindows_canonicalize_device_connection): Added.
723
724         * console-msw.h (struct msprinter_device): Added this struct and
725         accessor macros.
726         (mswindows_device): Made fontlist a lisp object.
727
728         * device.c (semi_canonicalize_device_connection):  Try to delegate
729         to canonicalize_device_connection if no such console method.
730         (canonicalize_device_connection): Vice versa.
731         (print_device): Do not print nil connection.
732
733         * device-msw.c (mswindows_init_device): Call InitCommonControls
734         when have widgets.
735         (mswindows_delete_device): Removed fontlist deallocation.
736         (mswindows_mark_device): Added.
737
738         * events.c (event_equal): Added abort() at unreached code.
739         (event_hash): Ditto.
740
741         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
742         fallback tags of Windows devices.
743
744         * general.c (syms_of_general): Initialized Qmsprinter.
745
746         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
747         of fallback tags of Windows devices.
748
749         * lisp.h: Declared Qmsprinter.
750
751         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
752         of strings.
753         (mswindows_list_fonts): Ditto.
754         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
755         that it can be used by both mswindows and msprinter devices.
756         (initialize_font_instance): Added.
757         (mswindows_initialize_font_instance): Use it.
758         (msprinter_initialize_font_instance): Added.
759
760         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
761         and implementation flags check.
762         (redisplay_without_hooks): Changed the call to the above.
763         (Fredraw_device): Ditto.
764         (Fredisplay_device): Ditto.
765
766         * redisplay-msw.c (get_frame_dc): Implemented.
767         (get_frame_compdc): Implemented.
768         (many functions): Use the two functions above to get device
769         contexts, ether for a window or a printer.
770
771 2000-01-21  Olivier Galibert  <galibert@pobox.com>
772
773         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
774         initialization here.
775         (init_symbols_once_early): Call it.
776         * emacs.c (main_1): Call it.
777         * symsinit.h: Declare it.
778
779 2000-01-19  Olivier Galibert  <galibert@pobox.com>
780
781         * alloc.c: Use a lrecord_header * in the backtrace instead of a
782         Lisp_Object.
783         (pdump_backtrace): Ditto.
784         (pdump_register_object): Ditto.  Cleanup use of the pointers.
785         (pdump_get_entry): Abort if trying to register a null pointer.
786         (pdump_dump_data): Cleanup types when relocating.
787         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
788         (pdump_dump_rtables): Remove bad casts.
789         (pdump_load): Cleanup relocation w.r.t union type.  Use a
790         Lisp_Object instead of a EMACS_INT for the hashtable
791         reorganization.
792
793 2000-01-20  Martin Buchholz  <martin@xemacs.org>
794
795         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
796
797         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
798
799         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
800
801         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
802
803 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
804
805         * faces.h (FACE_STRIKETHRU_P): Added.
806
807         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
808         of font variants.
809
810         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
811         (mswindows_set_dc_font): New function, aware of font variants,
812         separated from mswindows_update_dc.
813
814         * objects-msw.h (struct mswindows_font_instance_data): Added
815         definition.
816
817         * objects-msw.c (mswindows_finalize_font_instance): Delete all
818         cached fonts and the data structure.
819         (mswindows_initialize_font_instance): Added creation of font data
820         structure.
821         (mswindows_print_font_instance): Print at least something.
822         (mswindows_create_font_variant): Implemented.
823         (mswindows_get_hfont): Implemented.
824
825 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
826
827         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
828         prototyping problem with msvc.
829
830         * emacs.c (main_1): added syms_of_gui_mswindows() call
831
832         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
833         syms_of_gui_mswindows() function
834
835         * symsinit.h: added the prototype for syms_of_gui_mswindows()
836
837 2000-01-18  Martin Buchholz <martin@xemacs.org>
838
839         * XEmacs 21.2.27 is released.
840
841 2000-01-18  Martin Buchholz  <martin@xemacs.org>
842
843         * glyphs-eimage.c (struct tiff_error_struct):
844         (tiff_error_func):
845         (tiff_warning_func):
846         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
847
848         * unexmips.c:
849         * unexhp9k3.c:
850         * unexfreebsd.c:
851         * unexec.c: Remove vestigial Lucid C code.
852         * unexalpha.c:
853         * unexaix.c:
854         * termcap.c:
855         * libsst.c: Ansify.
856         Remove declarations of errno and strerror().
857
858         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
859
860         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
861
862 2000-01-16  Martin Buchholz  <martin@xemacs.org>
863
864         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
865         Optimize.
866
867 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
868
869         * md5.c:
870         * file-coding.c:
871         * file-coding.h:
872         Change enum eol_type to eol_type_t.
873
874 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
875
876         * gui.c (get_gui_callback): Check cons before accessing car.
877
878 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
879
880         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
881         (XSETSPECIFIER_TYPE): Ditto.
882
883 2000-01-17  Didier Verna  <didier@xemacs.org>
884
885         * redisplay.c (generate_fstring_runes): compute string size in
886         characters, not bytes.
887
888 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
889
890         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
891
892 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
893
894         * print.c (print_error_message): Call print_prepare().
895
896 2000-01-14  Martin Buchholz  <martin@xemacs.org>
897
898         * .dbxrc: Renamed from dbxrc.
899
900         * events.c (event_to_character):
901         Use `assert (foo)' instead of `if (!foo) abort()'
902
903         * .gdbinit (xtype): Add documentation.
904         * .gdbinit (check-temacs): New function.
905         * .gdbinit (check-xemacs): New function.
906         * dbxrc (check-xemacs): New function.
907         * dbxrc (check-xemacs): New function.
908
909 2000-01-14  Andy Piper  <andy@xemacs.org>
910
911         * glyphs-widget.c (widget_query_geometry): Make sure that we
912         calculate default dimensions correctly.
913
914 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
915
916         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
917
918         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
919         pdump_wire'd variable.
920
921         * emacs.c: (main_1): Conditionalized calls to
922         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
923
924 2000-01-13  Martin Buchholz  <martin@xemacs.org>
925
926         * window.c (Fset_window_configuration):
927         * sysdep.c (_start):
928         * input-method-motif.c (res):
929         * event-Xt.c (Xt_process_to_emacs_event):
930         Simple compiler warning fixes.
931
932         * bytecode.c (funcall_compiled_function): Use the original
933         function symbol on the backtrace list in preference to the
934         compiled_function object in error messages.
935
936 2000-01-13  Andy Piper  <andy@xemacs.org>
937
938         * glyphs-x.c (update_widget_face): Make sure we update the widget
939         background as well as foreground.
940
941 2000-01-13  Andy Piper  <andy@xemacs.org>
942
943         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
944         fields to subwindow.
945         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
946         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
947         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
948         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
949
950         * glyphs-widget.c (check_valid_tab_orientation): new function.
951         (initialize_widget_image_instance): zero orientation and
952         justification.
953         (widget_instantiate): pick up orientation.
954         (tab_control_query_geometry): return appropriate values for
955         vertical tabs.
956
957         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
958         appropriate creation flags for left, right and bottom tabs.
959
960         * s/cygwin32.h: add tab definitions.
961
962 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
963
964         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
965         frame upon hiding a subwindow.
966         (mswindows_button_instantiate): Changed the push button style to
967         BS_PUSHBUTTON.
968         (mswindows_button_instantiate): Removed button BS_NOTIFY
969         style.
970         (mswindows_button_instantiate): Removed redundant check for
971         a disabled gui item.
972         (mswindows_button_instantiate): Made use of WS_TABSTOP
973         consistent: "operable" controls (edit, button, tree, scroll) have
974         this style, "display-only" ones (static, progress gauge) do
975         not. This style is currently ignored by XEmacs though. Also,
976         removed the WS_EX_CONTROLPARENT style - it is not for children,
977         it is for their parents!
978         (mswindows_edit_field_instantiate): Ditto.
979         (mswindows_progress_gauge_instantiate): Ditto.
980         (mswindows_tree_view_instantiate): Ditto.
981         (mswindows_tab_control_instantiate): Ditto.
982         (mswindows_scrollbar_instantiate): Ditto.
983         (mswindows_combo_box_instantiate): Ditto.
984         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
985         style to the "clip" window.
986         (mswindows_button_instantiate): Removed compilation warning by
987         equally typing terms of the ?: operator.
988
989 2000-01-12  Didier Verna  <didier@xemacs.org>
990
991         * redisplay.c (generate_fstring_runes): new parameter holding the
992         last modeline-format extent.
993         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
994         extent, fill the glyph block with it.
995         (generate_fstring_runes): handle these parameters.
996         (generate_formatted_string_db): ditto.
997
998         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
999         glyphs'extents in the modeline.
1000
1001 1999-01-11  Mike Woolley  <mike@bulsara.com>
1002
1003         * ntheap.c: Reduced the reserved heap space from 1Gb down to
1004         256Mb, as a workaround for the non-starting problem many people
1005         have experienced.
1006
1007 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
1008
1009         * console-tty.c (Fset_console_tty_output_coding_system):
1010         Force redrawing tty frame.
1011
1012 2000-01-10  Didier Verna  <didier@xemacs.org>
1013
1014         * redisplay.c (generate_fstring_runes): fix size computation bug.
1015
1016 2000-01-09  William M. Perry <wmperry@aventail.com>
1017
1018         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
1019
1020 2000-01-09  Andy Piper  <andy@xemacs.org>
1021
1022         * glyphs-msw.c: index -> i to avoid shadows.
1023         (xbm_create_bitmap_from_data): make static.
1024         (check_valid_string_or_int): deleted.
1025         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
1026
1027         * glyphs-x.c (x_update_subwindow): remove unused args.
1028
1029         * glyphs.c (glyph_image_instance): return the thing. Don't set the
1030         back pointer - this is done in allocate_image_instance.
1031         (query_string_font): return Qnil to make the compiler happy.
1032         (unmap_subwindow): set to ~0 to make the compiler happy.
1033         (glyph_query_geometry): comment out until used.
1034         (glyph_layout): ditto.
1035
1036 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
1037
1038         * insdel.c (signal_after_change): Remove extraneous unbind_to().