Use `define-coding-system-alias' instead of `copy-coding-system'.
[chise/xemacs-chise.git] / src / ChangeLog
1 1999-06-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2
3         * mule-ccl.c (ccl_driver): Fix `CCL_WriteMultibyteChar2'.
4
5 1999-06-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
6
7         * file-coding.c (mule_decode): Setup `str->ccl.last_block'.
8         (mule_encode): Likewise.
9
10         * mule-ccl.c (Qccl_program): New variable.
11         (CCL_SUSPEND): New macro.
12         (CCL_INVALID_CMD): New macro.
13         (CCL_READ_CHAR): Don't regard as invalid command while processing
14         the last block even if input is empty; use
15         `CCL_STAT_SUSPEND_BY_SRC' instead of `CCL_STAT_SUSPEND'.
16         (vars_of_mule_ccl): Setup `Qccl_program' and `Qccl_program_idx'.
17
18         * mule-ccl.h (CCL_STAT_SUCCESS): Moved from mule-ccl.c.
19         (CCL_STAT_SUSPEND_BY_SRC): Imported from Emacs 20.3.10.
20         (CCL_STAT_SUSPEND_BY_DST): Likewise.
21         (CCL_STAT_INVALID_CMD): Moved from mule-ccl.c; change value from 2.
22         (CCL_STAT_QUIT): Moved from mule-ccl.c; change value from 3.
23
24 1999-05-04  Ken'ichi Handa  <handa@gnu.org>
25
26         * mule-ccl.h (struct ccl_program): New member stack_idx.
27
28         * mule-ccl.c (ccl_prog_stack_struct): Declare it as static.
29         (ccl_driver): Setup stack_idx and ccl_prog correctly.  Update them
30         before returing.
31         (setup_ccl_program): Initialize ccl->stack_idx to 0.
32
33 1998-10-12  Kenichi Handa  <handa@etl.go.jp>
34
35         * mule-ccl.c (CCL_DECODE_SJIS, CCL_ENCODE_SJIS): Swap the
36         definitions.
37
38 1998-08-18  Kenichi Handa  <handa@etl.go.jp>
39
40         * mule-ccl.c (CCL_READ_CHAR): If eof is encounterd while
41         processing the last block, don't just finish but processes eol
42         block of the current CCL program.
43         (ccl_driver): Add a new jump label ccl_repeat for the above
44         change.
45
46 1998-04-15  Kenichi Handa  <handa@etl.go.jp>
47
48         * mule-ccl.c: Typo in comments fixed.
49         (Qccl_program_idx): New variables.
50         (CCL_ReadMultibyteChar2): Macro name changed from
51         CCL_ReadMultibyteCharacter.
52         (CCL_WriteMultibyteChar2): Macro name changed from
53         CCL_WriteMultibyteChar2.
54         (ccl_driver): Adjusted for the above changes.
55         (resolve_symbol_ccl_program): New function.
56         (Fccl_execute): The arg CCL-PROGRAM can be a symbol of CCL
57         program.  If CCL-PRGRAM is a vector, convert symbols in it to ID
58         numbers by resolve_symbol_ccl_program.
59         (Fccl_execute_on_string): Likewise.
60         (Fregister_ccl_program): If the arg CCL-PRGRAM is a vector,
61         convert symbols in it to ID numbers by resolve_symbol_ccl_program.
62
63 1998-01-21  Kenichi Handa  <handa@etl.go.jp>
64
65         * mule-ccl.h: (struct ccl_program): New member private_state.
66
67         * mule-ccl.c
68         (CCL_Call): Fix the comment.
69         (CCL_ReadMultibyteCharacter, CCL_WriteMultibyteCharacter): New
70         macros for CCL Commands.
71         (EXCMD): New macro.
72         (ccl_driver): New case lable `CCL_Extention'.
73         (setup_ccl_program): Initialize the member `private_state' of CCL.
74
75 1999-06-23  Olivier Galibert  <galibert@pobox.com>
76
77         * config.h.in: Add missing #undef *_USER_DEFINED.
78
79 1999-06-23  SL Baur  <steve@miho.m17n.org>
80
81         * lisp.h (set_bit_vector_bit): Force promotion to unsigned long
82         int (fixes a 64-bit problem).
83
84         * chartab.c (word_boundary_p): Use EQ not == for lisp_object
85         comparison.
86
87 1999-03-23  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
88
89         * paths.h.in (PATH_DOC): Made doc-directory configurable.
90
91 1999-06-22  Olivier Galibert  <galibert@pobox.com>
92
93         * lrecord.h: Added basic external description system.
94
95         * symbols.c: Added symbol, symbol-value-buffer-local,
96         symbol-value-lisp-magic and symbol-value-varalias description.
97         * mule-charset.c: Added charset description.
98         * marker.c: Added marker description.
99         * keymap.c: Added keymap description.
100         * glyphs.c: Added glyph description.
101         * floatfns.c: Added float description.
102         * file-coding.c: Added coding-system description.
103         * extents.c: Added extent description.
104         * elhash.c: Added hash-table description.
105         * data.c: Added weak-list desciption.
106         * chartab.c: Added char-table-entry and char-table description.
107         * bytecode.c: Added compiled-function description.
108         * alloc.c: Added cons, vector and string description.
109
110 1999-06-22  Olivier Galibert  <galibert@pobox.com>
111
112         * lrecord.h (struct lrecord_header): Reduced size to 4 bytes.
113         Updated everything to the removal of the "flags" substructure.
114
115         * lisp.h (subr_lheader_initializer): Updated.
116         * symeval.h (symbol_value_forward_lheader_initializer): Updated.
117
118 1999-06-20  MORIOKA Tomohiko  <tomo@etl.go.jp>
119
120         * syntax.c (word_constituent_p): Deleted.
121         (scan_words): Use `WORD_BOUNDARY_P'.
122
123         * chartab.c (Vword_combining_categories): New variable.
124         (Vword_separating_categories): Likewise.
125         (CATEGORYP): New macro.
126         (CATEGORY_SET): Likewise.
127         (CATEGORY_MEMBER): Likewise.
128         (word_boundary_p): New function.
129         (complex_vars_of_chartab): Set up new variable
130         `word-combining-categories' and `word-separating-categories'.
131
132 1999-06-18  Olivier Galibert  <galibert@pobox.com>
133
134         * lrecord.h: Added description as a placehold in the lrecord
135         implementation structures.  Added the parameter to all constructor
136         defines.
137
138         * alloc.c: Added placeholders.
139         * buffer.c: Ditto.
140         * bytecode.c: Ditto.
141         * chartab.c: Ditto.
142         * console.c: Ditto.
143         * data.c: Ditto.
144         * database.c: Ditto.
145         * device.c: Ditto.
146         * eldap.c: Ditto.
147         * elhash.c: Ditto.
148         * eval.c: Ditto.
149         * event-stream.c: Ditto.
150         * events.c: Ditto.
151         * extents.c: Ditto.
152         * faces.c: Ditto.
153         * file-coding.c: Ditto.
154         * floatfns.c: Ditto.
155         * fns.c: Ditto.
156         * frame.c: Ditto.
157         * glyphs.c: Ditto.
158         * gui-x.c: Ditto.
159         * keymap.c: Ditto.
160         * lstream.c: Ditto.
161         * marker.c: Ditto.
162         * mule-charset.c: Ditto.
163         * objects.c: Ditto.
164         * opaque.c: Ditto.
165         * process.c: Ditto.
166         * rangetab.c: Ditto.
167         * specifier.c: Ditto.
168         * symbols.c: Ditto.
169         * toolbar.c: Ditto.
170         * tooltalk.c: Ditto.
171         * window.c: Ditto.
172
173 1999-06-22  XEmacs Build Bot <builds@cvs.xemacs.org>
174
175         * XEmacs 21.2.17 is released
176
177 1999-06-13  Oscar Figueiredo  <oscar@xemacs.org>
178
179         * config.h.in (HAVE_LDAP_SET_OPTION): New define
180         (HAVE_LDAP_GET_LDERRNO): Ditto
181         (HAVE_LDAP_RESULT2ERROR): Ditto
182         (HAVE_LDAP_PARSE_RESULT): Ditto
183         (HAVE_UMICH_LDAP): Removed
184         (HAVE_NS_LDAP): Removed
185
186         * eldap.h (struct Lisp_LDAP): Removed the `livep' member as  
187         suggested by Olivier Galibert
188         (CHECK_LIVE_LDAP): Test on `ld' instead of `livep'
189
190         * eldap.c: Take the removal of `livep' into account in all the
191         necessary functions
192         (signal_ldap_error): Take two additional parameters
193         Added new finer compilation conditions in order to use
194         ldap_parse_result or ldap_result2error if available
195         (Fldap_open): Conform to this new API
196         (Fldap_search_internal): Ditto
197
198 1999-06-17  SL Baur  <steve@miho.m17n.org>
199
200         * data.c (struct int_or_double): Should use EMACS_INT not int.
201
202 1999-06-16  Norbert Koch  <n.koch@eai-delta.de>
203
204         * redisplay-msw.c: Run 'ccl_driver' with 'CCL_MODE_ENCODING' as in 
205         redisplay-x.c
206
207 1999-06-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
208
209         * redisplay-x.c (separate_textual_runs): Run `ccl_driver' with
210         `CCL_MODE_ENCODING'.
211
212         * file-coding.c (mule_decode): Run `ccl_driver' with
213         `CCL_MODE_DECODING'.
214         (mule_encode): Run `ccl_driver' with `CCL_MODE_ENCODING'.
215
216         * mule-ccl.c (CCL_WRITE_CHAR): Refer `conversion_mode'.
217         (ccl_driver): Add new argument `conversion_mode'.
218         (Fccl_execute): Run `ccl_driver' with `CCL_MODE_ENCODING'.
219         (Fccl_execute_on_string): Likewise [perhaps it is better to add
220         new optional argument].
221
222         * mule-ccl.h (CCL_MODE_ENCODING): New macro.
223         (CCL_MODE_DECODING): New macro.
224         (ccl_driver): Add new argument `conversion_mode'.
225
226 1999-06-15  SL Baur  <steve@miho.m17n.org>
227
228         * mule-charset.c (Fsplit_char): New subr.
229         (Fchar_octet): delete.
230         (syms_of_mule_charset): DEFSUBR it.
231
232 1999-06-13  Andy Piper  <andy@xemacs.org>
233
234         * menubar.h: update declarations involving gui_items.
235
236         * lisp.h: declare Lisp_Gui_Item.
237
238         * glyphs.h (struct Lisp_Image_Instance): update type of gui_item.
239
240         * glyphs.c (mark_image_instance): modify for new lisp-based gui_items.
241         (print_image_instance): ditto.
242         (image_instance_equal): ditto.
243         (image_instance_hash): ditto.
244
245         * event-msw.c (mswindows_need_event): assert badly_p status.
246         (mswindows_wnd_proc): modify WM_NOTIFY handling to cope with
247         callbacks in tree-view and tab-control widgets.
248         (emacs_mswindows_next_event): modify use of
249         mswindows_dequeue_dispatch_event.
250
251         * dialog-msw.c (mswindows_popup_dialog_box): modify for new
252         lisp-based gui_items.
253
254         * glyphs-msw.c (mswindows_update_subwindow): update use of
255         gui_items.
256         (mswindows_register_gui_item): new function.
257         (mswindows_register_gui_item): fix to use lisp gui_items.
258         (mswindows_widget_instantiate): ditto.
259         (mswindows_button_instantiate): ditto.
260         (add_tree_item): new function to recursively add tree view
261         elements.
262         (add_tree_item_list): ditto.
263         (mswindows_tree_instantiate): new function. instantiate tree view
264         controls.
265         (add_tab_item): new function to add tabs to a tab control.
266         (mswindows_tab_instantiate): new function. instantiate tab
267         controls.
268         (image_instantiator_format_create_glyphs_mswindows): add tree view
269         and tab controls.
270         (vars_of_glyphs_mswindows): ditto.
271
272         * glyphs-widget.c (check_valid_item_list_1): allow nested lists in
273         item lists.
274         (check_valid_item_list): ditto.
275         (initialize_widget_image_instance): fix to use new lisp gui_item.
276         (widget_instantiate_1): allow the setting of default textwidth in
277         characters.
278         (widget_instantiate): change to use new widget_instantiate_1
279         signature.
280         (combo_instantiate): ditto.
281         (static_instantiate): ditto.
282         (tab_instantiate): new function for tab widgets.
283         (image_instantiator_format_create_glyphs_widget): add tab and tree
284         view widgets.
285
286         * menubar-msw.c (displayable_menu_item): convert to use lisp
287         gui_items.
288         (populate_menu_add_item): ditto.
289         (populate_or_checksum_helper): ditto.
290
291         * menubar.c (menu_parse_submenu_keywords): convert to use lisp
292         gui_items.
293         (Fmenu_find_real_submenu): ditto.
294
295         * gui.h (struct Lisp_Gui_Item): make gui_item a lisp oebjct.
296
297         * gui.c (gui_item_add_keyval_pair): gui_items are now lisp
298         objects, convert functions that use them accordingly.
299         (gui_item_init): ditto.
300         (gui_item_active_p): ditto.
301         (gui_item_selected_p): ditto.
302         (gui_item_included_p): ditto.
303         (gui_item_display_flush_left): ditto.
304         (gui_item_display_flush_right): ditto.
305         (mark_gui_item): ditto.
306         (allocate_gui_item): new function to create a gui_item.
307         (make_gui_item_from_keywords_internal): ditto. create and return a
308         gui_item as well as setting keywords.
309         (gui_parse_item_keywords): ditto.
310         (gui_parse_item_keywords_no_errors): ditto.
311         (gui_add_item_keywords_to_plist): new function, not yet used.
312         (gui_item_hash): new function.
313         (gui_item_id_hash): use gui_item_hash.
314         (gui_item_equal): new function.
315         (print_gui_item): new function.
316
317 1999-06-11  XEmacs Build Bot <builds@cvs.xemacs.org>
318
319         * XEmacs 21.2.16 is released
320
321 1999-06-10  Andy Piper  <andy@xemacs.org>
322
323         * select-msw.c (mswindows_own_selection): only set the clipboard
324         if asked.
325         (mswindows_get_foreign_selection): only get the clipboard if
326         asked.
327         (mswindows_disown_selection): only disown the clipboard if asked.
328
329 1999-06-03  MORIOKA Tomohiko  <tomo@etl.go.jp>
330
331         * file-coding.c (coding_system_from_mask): Use `raw-text' instead
332         of `no-conversion'.
333         (complex_vars_of_mule_coding): Use `raw-text' as the coding-system
334         of coding-category `no-conversion'.
335
336 1999-06-03  MORIOKA Tomohiko  <tomo@etl.go.jp>
337
338         * file-coding.c (Qraw_text): New variable.
339         (syms_of_mule_coding): Add new symbol `raw-text'.
340         (complex_vars_of_mule_coding): Add new coding-system `raw-text';
341         define coding-system `binary' independently; define coding-system
342         `no-conversion' as an alias for `raw-text'.
343
344         * file-coding.h (Qraw_text): New variable.
345
346 1999-06-08  SL Baur  <steve@xemacs.org>
347
348         * s/decosf4-0.h: Explicitly #undef SYSTEM_MALLOC.
349
350 1999-06-06  Hrvoje Niksic  <hniksic@srce.hr>
351
352         * fns.c (MIME_LINE_LENGTH): Default to 72, as in mimencode and
353         base64.el.
354         (base64_decode_1): Signal errors instead of returning -1.
355
356 1999-06-07  Hrvoje Niksic  <hniksic@srce.hr>
357
358         * mule-charset.c (Fmake_char): Update docstring.
359
360 1999-06-07  Hrvoje Niksic  <hniksic@srce.hr>
361
362         * fns.c (Fstring_lessp): Actually increment the Bufbyte pointers.
363
364 1999-06-05  Hrvoje Niksic  <hniksic@srce.hr>
365
366         * fns.c (base64_decode_1): Allow and ignore any non-base64
367         characters in input.
368
369 1999-05-27  Olivier Galibert  <galibert@pobox.com>
370
371         * emacs.c (Fdump_emacs): Add clear_message() lost with the removal
372         of report_pure_usage().
373
374 1999-06-04  Hrvoje Niksic  <hniksic@srce.hr>
375
376         * fns.c (Fstring_lessp): Remove O(n^2) under Mule.
377
378 1999-06-04  XEmacs Build Bot <builds@cvs.xemacs.org>
379
380         * XEmacs 21.2.15 is released
381
382 1999-06-01  Hirokazu FUKUI  <fukui@atesoft.advantest.co.jp>
383
384         * frame.c (Fset_mouse_position):
385         (Fset_mouse_pixel_position):
386         * window.c (Fsplit_window):
387         (Fmove_to_window_line):
388         Fix crash when invoking functions with an already-deleted window
389         argument.
390
391         * indent.c (vertical_motion_1):
392         (vmotion_pixels):
393         (Fvertical_motion_pixels):
394         * window.c (Fwindow_displayed_text_pixel_height):
395         Fix error message when invoking functions with an already-deleted
396         window argument.
397
398 1999-06-01  Jan Vroonhof  <vroonhof@math.ethz.ch>
399
400         * sysdep.c (request_sigio_on_device): Guard against glibc
401         2.1's stub streams implementation.
402
403 1999-06-03  SL Baur  <steve@xemacs.org>
404
405         * config.h.in:
406         * emacs.c:  Implement x.y.z version numbers
407         From Jan Vroonhof <vroonhof@math.ethz.ch>
408
409 1999-05-20  MORIOKA Tomohiko  <tomo@etl.go.jp>
410
411         * mule-charset.c (complex_vars_of_mule_charset): Registry of
412         japanese-jisx0208-1978 should not match with "jisx0208.1983" nor
413         "jisc6226.1983".
414
415 1999-06-03  SL Baur  <steve@xemacs.org>
416
417         * frame-x.c:
418         * device-x.c: rename session option to wmcommand.
419         From Oliver Graf <ograf@rhein-zeitung.de>
420
421 1999-05-27  Hrvoje Niksic  <hniksic@srce.hr>
422
423         * fns.c (Fsubstring): Don't traverse the same region twice with
424         charcount_to_bytecount().
425
426 1999-06-03  SL Baur  <steve@steve1.m17n.org>
427
428         * m/alpha.h (SYSTEM_MALLOC): Fix indented preprocessor directive
429         garbage.
430
431         * s/decosf4-0.h: Defining ORDINARY_LINK here is redundant (and it
432         doesn't really work as is implied by the commentary).
433         Don't define SYSTEM_MALLOC so the old GNU malloc can be used.
434
435 1999-06-02  SL Baur  <steve@steve1.m17n.org>
436
437         * symsinit.h: Declare vars_of_ntproc.
438         * emacs.c (main_1): Call it.
439
440         * ntproc.c (syms_of_ntproc): Move variable initializations from
441         here ...
442         (vars_of_ntproc): ... to here [new function].
443
444         * file-coding.c (syms_of_file_coding): Rename.
445         (vars_of_file_coding): Ditto.
446         (complex_vars_of_file_coding): Ditto.
447
448         * symsinit.h: Rename *_mule_coding to *_file_coding.
449
450         * emacs.c (main_1): Call them by the proper name.
451
452         * device-msw.c (syms_of_device_mswindows): Move variable
453         initializations from here ...
454         (vars_of_device_mswindows): ... to here.
455
456         * chartab.c (vars_of_chartab): New function.
457
458         * symsinit.h: New function, vars_of_chartab.
459
460         * emacs.c (main_1): Call it.
461
462         * mule-canna.c (syms_of_mule_canna): Move CANNA initialization ...
463         (vars_of_mule_canna): ... to here.
464
465         * mule-ccl.c (vars_of_mule_ccl): New function.  Move variable
466         initializations out of syms_of_mule_ccl.
467
468         * symsinit.h: Declare new function vars_of_mule_ccl.
469
470         * emacs.c (main_1): Call it.
471
472 1999-05-27  Hrvoje Niksic  <hniksic@srce.hr>
473
474         * fns.c (base64_decode_1): Ignore whitespace.
475
476 1999-05-27  Hrvoje Niksic  <hniksic@srce.hr>
477
478         * mule-charset.c (Fmake_char): Strip the eighth bit off ARG1 and
479         ARG2.
480
481 1999-05-21  Andy Piper  <andy@xemacs.org>
482         
483         * xselect.c: deleted.
484         
485         * symsinit.h: declare select initialisation.
486
487         * select.h: new file. declare commonly used select functions and
488         variables.
489
490         * select.c: new file. generalised from xselect.c.
491         (clean_local_selection_data): moved from xselect.c.
492         (get_local_selection): ditto. device specific pieces called via a
493         devmeth.
494         (handle_selection_clear): ditto.
495         (Fown_selection_internal): renamed and generalised from
496         Fx_own_selection_internal. moved from xselect.c.
497         (Fdisown_selection_internal): ditto.
498         (Fselection_owner_p): ditto.
499         (Fselection_exists_p): ditto.
500         (Fget_selection_internal): ditto.
501         (syms_of_select): new function. QXXXX values moved from xselect.c
502         (vars_of_select): new function. selection_converter_alist,
503         lost_selection_hooks moved and renamed from xselect.c
504
505         * select-x.c: renamed from xselect.c.
506         (x_own_selection): converted to device specific. non-X-specific
507         bits moved to select.c.
508         (x_get_foreign_selection): ditto.
509         (x_disown_selection): ditto.
510         (x_selection_exists_p): ditto.
511         (console_type_create_select_x): new function.
512
513         * select-msw.c (mswindows_own_selection): new device method to set
514         the clipboard when we 'own' the selection.
515         (mswindows_get_foreign_selection): new device method to get the
516         clipboard.
517         (mswindows_disown_selection): new device method to delete the
518         selection when we 'disown' it.
519         (console_type_create_select_mswindows): new function.
520
521         * emacs.c (main_1): add select to things to initialise.
522
523         * console.h (struct console_methods): new console methods for
524         selection.
525
526         * Makefile.in.in (x_objs): xselect.c renamed to select-x.c
527
528 1999-05-20  Hrvoje Niksic  <hniksic@srce.hr>
529
530         * print.c (long_to_string): Install a faster version.
531
532 1999-05-16  Andy Piper  <andy@xemacs.org>
533
534         * ntproc.c (syms_of_ntproc): default
535         win32-start-process-share-console to t.
536
537 1999-05-14  Hrvoje Niksic  <hniksic@srce.hr>
538
539         * config.h.in: Do it here.
540
541         * bytecode.c: Don't define ERROR_CHECK_TYPECHECK here.
542
543 1999-05-14  Andy Piper  <andy@xemacs.org>
544
545         * toolbar-msw.c (mswindows_output_toolbar): hash on something
546         hashable.
547
548 1999-05-14  XEmacs Build Bot <builds@cvs.xemacs.org>
549
550         * XEmacs 21.2.14 is released
551
552 1999-05-12  Andy Piper  <andy@xemacs.org>
553
554         * ntproc.c (sys_spawnve): kludge argv[0] in a MS compatible way.
555
556 1999-05-11  Gunnar Evermann  <ge204@eng.cam.ac.uk>
557
558         * emacs.c (Frun_emacs_from_temacs): (re)alloc natgs+2 entries for
559         run_temacs_argv array -- fixes random memory corruption crash
560
561 1999-05-12  Jan Vroonhof  <vroonhof@math.ethz.ch>
562
563         * window.c (Fcurrent_window_configuration):
564         Save minibuffer height;
565
566         * window.c (set_window_configuration): use it.
567
568 1999-05-10  Robert Pluim  <rpluim@bigfoot.com>
569
570         * lisp.h (NNUNGCPRO): fix typo in name of DEBUG_GCPRO version
571
572 1999-04-21  Jan Vroonhof  <vroonhof@math.ethz.ch>
573
574         * redisplay.c (redisplay_window): Do not put data
575         in the line start cache if it is not guaranteed to be correct
576
577 1999-04-02  Jan Vroonhof  <vroonhof@math.ethz.ch>
578
579         * window.c (struct window_config): Removed frame
580         size members.
581         (window_config_equal): No longer compare frame sizes.
582         (Fset_window_configuration): Resize old top window to fit in the
583         current frame directly, no longer use a fake frame resize.
584         (Fcurrent_window_configuration): No longer save frame size
585
586 1999-05-11  Andy Piper  <andy@xemacs.org>
587
588         * ntproc.c (sys_spawnve): actually assign argv[0] instead of the
589         first character.
590
591 1999-05-10  Hrvoje Niksic  <hniksic@srce.hr>
592
593         * sysdep.c (init_system_name): If gethostname gives a proper
594         domain name, don't look further for one.
595
596 1999-05-09  Hrvoje Niksic  <hniksic@srce.hr>
597
598         * symbols.c (Fintern): Avoid frequent XSYMBOL (foo).
599         (Fintern_soft): Accept a symbol argument.
600
601 1999-05-06  Hrvoje Niksic  <hniksic@srce.hr>
602
603         * symbols.c (Fintern): ...do it here.
604
605         * lread.c (read_atom): Don't handle keywords here.
606
607 1999-05-06  Hrvoje Niksic  <hniksic@srce.hr>
608
609         * symbols.c (reject_constant_symbols): Just use SYMBOL_IS_KEYWORD.
610
611 1999-05-03  Olivier Galibert  <galibert@pobox.com>
612
613         * lisp.h (SYMBOL_IS_KEYWORD): A symbol can be a keyword only if it
614         is interned in the main obarray.
615
616 1999-04-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
617         
618         * menubar-x.c (pre_activate_callback): set accelerator field in
619         "No menu" entries to nil. Avoid crash in
620         command_builder_operate_menu_accelerator
621
622 1999-05-03  Olivier Galibert  <galibert@pobox.com>
623
624         * symeval.h (symbol_value_forward_lheader_initializer): Ditto.
625
626         * lisp.h (DEFUN): Fix lrecord header initialisation.
627
628 1999-05-02  Andy Piper  <andy@xemacs.org>
629
630         * objects-msw.c (mswindows_font_instance_truename): add a ';'.
631
632         * ntproc.c (sys_kill): cast using MS mandated defines.
633
634 1999-04-29  Andy Piper  <andy@xemacs.org>
635
636         * m/intel386.h: remove redundant definitions.
637
638         * s/mingw32.h: new header for mingw32.
639         
640         * unexnt.c: (open_input_file): function moved to nt.c.
641         (close_file_data): ditto.
642         (rva_to_section): function moved to ntproc.
643
644         * symsinit.h: declare syms_of_ntproc();
645         
646         * objects-msw.c (mswindows_font_instance_truename): new function.
647
648         * ntproc.c: remove many warnings.
649         (_sys_read_ahead): moved from nt.c and made static.
650         (rva_to_section): moved from unexnt.c but not defined under
651         mingw32.
652         (win32_executable_type): implement what we can for mingw32
653         headers.
654         (sys_spawnve): fix bad MULE/GCPRO bug in filename handling.
655
656         * ntheap.h: remove declarations of functions that are now static.
657         
658         * ntheap.c: support static heap.
659
660         * nt.h: conditionalise X_OK definition.
661
662         * nt.c: eliminate many warnings and support mingw32.
663         (open_input_file): function moved from unexnt.c and made static
664         (close_file_data): ditto.
665         (_sys_read_ahead): moved to ntproc.c
666
667         * emacs.c: make sure syms_of_ntptroc gets called under windows.
668         
669         * console-msw.h: support mingw32.
670         * getloadavg.c: ditto.
671         * ntplay.c: ditto.
672         * sysdep.c: ditto.
673         * sysdir.h: ditto.
674         * systime.h: ditto.
675         * systty.h: ditto.
676
677         * config.h.in: dont turn on DEBUG_ENCAPSULATION by default because
678         some systems don't have all of the encapsulated system calls.
679         
680         * callproc.c: warning elimination.
681         * dired-msw.c: ditto.
682         * process-nt.c: ditto.
683         * realpath.c: ditto.
684         
685         * Makefile.in.in: tweak : and ; for building under mswindows.
686         
687 1999-04-26  Michael Harnois  <mharnois@willinet.net>
688
689         * eldap.c (allocate_ldap): Adapt to the new semantics of
690         alloc_lcrecord_type().
691
692 1999-03-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
693
694         * file-coding.c (DECODE_HANDLE_END_OF_CONVERSION): fixed.
695
696 1998-09-04  MORIOKA Tomohiko  <morioka@jaist.ac.jp>
697
698         * Delete mule-coding.c and mule-coding.h because they are not
699         used.
700
701 1999-04-22  Gunnar Evermann  <ge204@eng.cam.ac.uk>
702
703         * objects.c (print_font_instance): Check for NILP(f->device),
704         i.e. Vthe_null_font_instance.
705         (font_instance_truename_internal): ditto.
706         (Ffont_instance_properties): ditto.
707
708 1999-04-22  Olivier Galibert  <galibert@pobox.com>
709
710         * lrecord.h (DECLARE_LRECORD): lrecord_implementation isn't an
711         array anymore.
712
713 1999-04-22  Hrvoje Niksic  <hniksic@srce.hr>
714
715         * Makefile.in.in (tests): Don't mention tests explicitly -- makes
716         it easier to add new ones.
717
718 1999-04-22  Hrvoje Niksic  <hniksic@srce.hr>
719
720         * symbols.c (reject_constant_symbols): Ditto.
721         (init_symbols_once_early): Ditto.
722
723         * print.c (print_symbol): Don't use ->obarray.
724
725         * symbols.c (Funintern): Ditto.
726
727         * alloc.c (Fmake_symbol): Don't set ->obarray.
728
729         * lisp.h (struct Lisp_Symbol): Removed .obarray field.
730
731         * symbols.c (init_symbols_once_early): Removed
732         Vpure_uninterned_symbol_table.
733         (Fintern): Don't store to ->obarray field.
734
735 1999-04-22  Hrvoje Niksic  <hniksic@srce.hr>
736
737         * data.c (vars_of_data): Default debug_issue_ebola_notices to 0.
738         (eq_with_ebola_notice): Remove abracadabra support.
739
740 1999-04-11  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
741
742         * eldap.c (Fldap_search_internal): Add a new parameter `withdn' to
743         retrieve the distinguished names of entries
744
745 1999-03-08  Martin Buchholz  <martin@xemacs.org>
746
747         * lread.c (read_escape): Make hex escapes read only two hex digits.
748
749 1999-04-05  Olivier Galibert  <galibert@pobox.com>
750
751         * Makefile.in.in: Remove puresize-adjust.h and recursive makes.
752         * make-src-depend: Remove puresize-adjust.h.
753         * src-headers: Remove puresize-adjust.h.
754         * config.h.in: Kill everything purespace/gung-ho related.
755
756         * dbxrc: Make gung-ho mandatory.
757         * gdbinit: Ditto.
758
759         * lrecord.h: Make gung-ho mandatory.  Remove pure flag and add
760         c_readonly and lisp_readonly.  Remove implementation arrays.
761         (C_READONLY_RECORD_HEADER_P): Added.
762         (LISP_READONLY_RECORD_HEADER_P): Added.
763         (SET_C_READONLY_RECORD_HEADER): Added.
764         (SET_LISP_READONLY_RECORD_HEADER): Added.
765
766         * lisp.h: Kill everything purespace/non gung-ho related.
767         (CHECK_C_WRITEABLE): Added.
768         (CHECK_LISP_WRITEABLE): Added.
769         (C_READONLY): Added.
770         (LISP_READONLY): Added.
771
772         * lisp-union.h: Make gung-ho mandatory.
773         * lisp-disunion.h: Ditto.
774
775         * alloc.c: Kill everything purespace/non  gung-ho related. Fix all
776         set_lheader_implementation calls.
777         (c_readonly): Added.
778         (lisp_readonly): Added.
779         (make_string_nocopy): Added.
780         (Fpurecopy):  Changed to do  nothing.   Kept the old documentation
781         for reference purposes for the next patches.
782         (sweep_lcrecords_1): Don't free C readonly lcrecords.
783         (sweep_bit_vectors_1): Don't free C readonly bitvectors.
784         (SWEEP_FIXED_TYPE_BLOCK): Don't free C readonly lrecords.
785
786         * fns.c: Make gung-ho mandatory.
787         (Fput): CHECK_IMPURE -> CHECK_LISP_WRITEABLE.
788         (Fremprop): Ditto.
789         (Ffillarray): Ditto.
790
791         * data.c: Make gung-ho mandatory.
792         (pure_write_error): Removed.
793         (c_write_error): Added.
794         (lisp_write_error): Added.
795         (Fsetcar): CHECK_IMPURE -> CHECK_LISP_WRITEABLE.
796         (Fsetcdr): Ditto.
797         (Faset): Ditto.
798
799         * symbols.c: Make gung-ho mandatory.  make_pure_pname ->
800                   make_string or make_string_nocopy.  Fix various
801                   alloc_lcrecord_type.
802         
803         * lread.c: Remove everything purespace related.
804         (Flocate_file_clear_hashing): purified -> c_readonly.
805         (locate_file): Ditto.
806         (read_atom): make_pure_pname -> make_string.
807
808         * emacs.c (Frun_emacs_from_temacs): Remove purespace stats
809                   reporting.
810         (Fdump_emacs): Ditto.
811
812         * print.c (print_internal): Make gung-ho mandatory.
813         * ntheap.c (sbrk): Ditto.
814         * mem-limits.h (EXCEEDS_LISP_PTR): Ditto
815         * symeval.h (symbol_value_forward_lheader_initializer): Ditto.
816
817         * sheap.c (more_static_core): Remove puresize-adjust.h from
818                   message.
819
820         * syntax.c (complex_vars_of_syntax): make_pure_string ->
821                   make_string_nocopy.
822         * keymap.c (make_keymap): Fix alloc_lcrecord_type.
823         (vars_of_keymap): make_pure_string -> make_string_nocopy.
824         * events.c (deinitialize_event): Fix set_lheader_implementation.
825         (zero_event): Ditto.
826         * specifier.c (make_specifier_internal): Fix alloc_lcrecord.
827         * menubar-x.c (set_frame_menubar): Fix alloc_lcrecord_type.
828         * mule-charset.c (make_charset): Ditto.
829         * console.c (allocate_console): Ditto.
830         (complex_vars_of_console): Ditto.
831         * file-coding.c (allocate_coding_system): Ditto.
832         * device.c (allocate_device): Ditto
833         * gui-x.c (gcpro_popup_callbacks): Ditto.
834         * extents.c (allocate_extent_auxiliary): Ditto.
835         (allocate_extent_info): Ditto.
836         (copy_extent): Ditto.
837         * glyphs.c (allocate_image_instance): Ditto.
838         (allocate_glyph): Ditto.
839         * frame.c (allocate_frame_core): Ditto.
840         * database.c (allocate_database): Ditto.
841         * tooltalk.c (make_tooltalk_message): Ditto.
842         (make_tooltalk_pattern): Ditto.
843         * rangetab.c (Fmake_range_table): Ditto.
844         (Fcopy_range_table): Ditto.
845         * process.c (make_process_internal): Ditto.
846         * chartab.c (Fmake_char_table): Ditto.
847         (make_char_table_entry): Ditto.
848         (copy_char_table_entry): Ditto.
849         (Fcopy_char_table): Ditto.
850         * elhash.c (make_general_lisp_hash_table): Ditto.
851         (Fcopy_hash_table): Ditto.
852         * buffer.c (allocate_buffer): Ditto.
853         (complex_vars_of_buffer): Ditto.
854         * event-stream.c (allocate_command_builder): Ditto.
855         * objects.c (Fmake_color_instance): Ditto.
856         (Fmake_font_instance): Ditto.
857         (vars_of_objects): Ditto.
858         * toolbar.c (update_toolbar_button): Ditto.
859         * window.c (allocate_window): Ditto.
860         (make_dummy_parent): Ditto.
861         (Fcurrent_window_configuration): Fix alloc_lcrecord.
862         (vars_of_window): Fix make_lcrecord_list.
863         * faces.c (allocate_face): Fix alloc_lcrecord_type. pure_list ->
864                   Flist.
865         * lstream.c (Lstream_new): Fix make_lcrecord_list.
866         * opaque.c (make_opaque): Fix alloc_lrecord.
867         (make_opaque_list): Fix alloc_lrecord_type.
868
869 1999-04-19  Hrvoje Niksic  <hniksic@srce.hr>
870
871         * process.c (Fstart_process_internal): Ditto.
872
873         * ntproc.c (sys_spawnve): Use Vlisp_EXEC_SUFFIXES when calling
874         locate_file().
875
876         * glyphs-x.c (x_locate_pixmap_file): Ditto.
877
878         * glyphs-msw.c (mswindows_locate_pixmap_file): Fix call to
879         locate_file().
880
881         * emodules.c (vars_of_module): New variable Vmodule_extensions.
882         (emodules_load): Use it when calling locate_file().
883
884         * emacs.c (main_1): Use Vlisp_EXEC_SUFFIXES when calling
885         locate_file().
886
887         * callproc.c: Vlisp_EXEC_SUFFIXES: New variable.
888         (vars_of_callproc): Initialize it.
889         (Fcall_process_internal): Use it when calling locate_file().
890
891         * alloc.c (disksave_object_finalization): Use
892         Flocate_file_clear_hashing().
893
894         * lread.c (Flocate_file_clear_hashing): Clear all hasing when
895         given `t' as argument.
896
897 1999-04-18  Hrvoje Niksic  <hniksic@srce.hr>
898
899         * lread.c (locate_file): Expand `pathel' when appropriate.
900         (Flocate_file_clear_hashing): Expand path elements.
901         (Flocate_file_clear_hashing): Use Vlocate_file_hash_table.
902
903         * dired.c (make_directory_hash_table): Create the hash-table only
904         if the directory open is successful.
905
906         * lread.c (decode_mode_1): New function.
907         (decode_mode): Ditto.
908         (Flocate_file): Use them.
909         (Flocate_file): Expand FILENAME.
910         (locate_file_map_suffixes): New function.
911         (locate_file_in_directory_mapper): New function.
912         (locate_file_in_directory): Use locate_file_in_directory_mapper()
913         and locate_file_map_suffixes().
914         (locate_file_construct_suffixed_files): Use
915         locate_file_map_suffixes().
916         (locate_file_without_hash): Don't GCPRO path.
917         (Flocate_file_clear_hashing): Use EXTERNAL_LIST_LOOP.
918         (syms_of_lread): Remove Qlocate_file_hash_table.
919         (locate_file_find_directory_hash_table): Use
920         Vlocate_file_hash_table.
921         (locate_file_refresh_hashing): Ditto.
922
923         * lread.c: Renamed read_objects to Vread_objects.
924
925 1999-04-16  Olivier Galibert  <galibert@pobox.com>
926
927         * mule-charset.c: Generally resync with fsf 20.3 charset
928         interface.
929         (make_charset): Add long and short name.  Use id instead of
930         leading byte.
931         (Fmake_charset): Ditto.
932         (Fmake_reverse_direction_charset): Ditto.
933         (Fcharset_property): Ditto.
934         (Fcharset_short_name): Added.
935         (Fcharset_long_name): Added.
936         (Fcharset_description): Renamed from charset-doc-string.
937         (syms_of_mule_charset): Synced symbols.
938         (complex_vars_of_mule_charset): Synced charsets.
939
940         * mule-charset.h: Removed leading byte (uses id instead), added
941         short and long name.
942
943 1999-04-15  Hrvoje Niksic  <hniksic@srce.hr>
944
945         * file-coding.c (Fdefine_coding_system_alias): New function.
946
947 1999-04-08  Olivier Galibert  <galibert@pobox.com>
948
949         * mule-charset.c (complex_vars_of_mule_charset): Allow all iso8859
950         and -ascii fonts for displaying ascii instead of iso8859-1 only.
951
952 1998-12-14  Hrvoje Niksic  <hniksic@srce.hr>
953
954         * extents.c (set_extent_glyph_1): Make sure that the glyph we
955         attach to the extent is valid.
956
957 1998-12-12  Hrvoje Niksic  <hniksic@srce.hr>
958
959         * dired.c (user_name_completion): Mule-ize.
960         (user_name_completion): Use xmalloc/xrealloc/xfree.
961         (user_name_completion): Use DO_REALLOC.
962         (user_name_completion): Cut down the number of static variables;
963         use a structure.
964         (user_name_completion): Username completion is always
965         case-sensitive.
966
967 1998-12-06  Hrvoje Niksic  <hniksic@srce.hr>
968
969         * fns.c (base64_decode_1): Remove COUNTER.
970         (base64_decode_1): Accept CRLF in addition to CR.
971         (base64_decode_1): Disallow a stray character after final EOF; the 
972         check was probably a remnant of buggy recode code.
973
974 1998-12-05  Hrvoje Niksic  <hniksic@srce.hr>
975
976         * fns.c (init_provide_once): Provide `base64'.
977
978 1998-12-04  Hrvoje Niksic  <hniksic@srce.hr>
979
980         * fns.c (XMALLOC_UNBIND): Include SPECCOUNT argument, for clarity.
981         (Fbase64_encode_region): If buffer is read-only, bail out early.
982         (Fbase64_decode_region): Ditto.
983         (Fbase64_encode_region): Initialize SPECCOUNT to pacify the
984         compiler.
985         (Fbase64_encode_string): Ditto.
986         (Fbase64_decode_region): Ditto.
987         (Fbase64_decode_string): Ditto.
988
989 1998-11-25  Hrvoje Niksic  <hniksic@srce.hr>
990
991         * dired.c (Fdirectory_files): Remove redundant code.
992
993 1999-03-05  Philip Aston  <philipa@parallax.co.uk>
994
995         * frame-msw.c Make raise-frame restore minimised windows.
996
997 1999-03-05  Philip Aston  <philipa@parallax.co.uk>
998
999         * device-msw.c: Fix DEFVAR format - Death to phantom quote, and
1000         add magic newline.
1001
1002 1999-03-05  Philip Aston  <philipa@parallax.co.uk>
1003
1004         * toolbar-msw.c Consider captions when deciding whether to rebuild
1005         toolbar. This fixes the initial toolbar display for those of us
1006         who don't like captions. These patches applied by Andy Piper.
1007
1008 1999-03-12  XEmacs Build Bot <builds@cvs.xemacs.org>
1009
1010         * XEmacs 21.2.13 is released
1011
1012 1999-03-12  SL Baur  <steve@xemacs.org>
1013
1014         * file-coding.c: Guard ucs table initialization with ifdef MULE.
1015
1016 1999-03-10  Stephen J. Turnbull  <turnbull@sk.tsukuba.ac.jp>
1017
1018         * file-coding.c:  docstring and comment improvements.
1019         (decode_ucs4)  flag possible data loss with comment.
1020
1021 1999-03-10  Martin Buchholz  <martin@xemacs.org>
1022
1023         * file-coding.c (Fset_ucs_char): add CHECK_INT, CHECK_CHAR
1024         (ucs_to_char):
1025         (Fucs_char):
1026         (Fset_char_ucs):
1027         (decode_coding_ucs4):
1028         (encode_coding_ucs4):
1029         (detect_coding_utf8):
1030         (decode_coding_utf8):
1031         (encode_utf8):
1032         (encode_coding_utf8):
1033         Add CHECK_* macros where needed to avoid crashes.
1034         #ifdef out all composite character support using
1035         #ifdef ENABLE_COMPOSITE_CHARS
1036         Use normal XEmacs coding standards.
1037         Fix docstrings.
1038         Remove CODING_STREAM_COMPOSE, CODING_STREAM_DECOMPOSE.
1039
1040 1998-09-08  MORIOKA Tomohiko  <morioka@jaist.ac.jp>
1041
1042         * file-coding.c (make-coding-system): Add description about
1043         `ucs-4' and `utf-8'.
1044         (detection_state): Modify to implement ucs-4 and utf-8.
1045         (detect_coding_type): Likewise.
1046         (detect_coding_ucs4): New implementation.
1047         (detect_coding_utf8): New implementation.
1048         (encode_utf8): fixed.
1049         (syms_of_mule_coding): Rename `ucs4' and `utf8' to `ucs-4' and
1050         `utf-8'.
1051
1052 1998-09-08  MORIOKA Tomohiko  <morioka@jaist.ac.jp>
1053
1054         * file-coding.c (mule_char_to_ucs4): Encode 94x94 chars in ISO
1055         2022 registry to private area.
1056
1057 1998-09-07  MORIOKA Tomohiko  <morioka@jaist.ac.jp>
1058
1059         * file-coding.c (encode_utf8): New function.
1060         (encode_coding_utf8): New implementation.
1061
1062 1998-09-07  MORIOKA Tomohiko  <morioka@jaist.ac.jp>
1063
1064         * file-coding.c (ucs_to_mule_table): New variable; abolish
1065         `Vucs_to_mule_table'
1066         (mule_to_ucs_table): renamed from `Vmule_to_ucs_table'.
1067         (set-ucs-char): New function.
1068         (ucs_to_char): New function.
1069         (ucs-char): New function.
1070         (set-char-ucs): New function.
1071         (char-ucs): New function.
1072         (decode_ucs4): Use `ucs_to_char'.
1073         (complex_vars_of_mule_coding): Abolish `ucs-to-mule-table' and
1074         `mule-to-ucs-table'.
1075
1076 1998-09-06  MORIOKA Tomohiko  <morioka@jaist.ac.jp>
1077
1078         * chartab.h: EXFUN `Fget_char_table'.
1079
1080         * file-coding.c (encode_ucs4): New function.
1081         (encode_coding_ucs4): Use `encode_ucs4'.
1082
1083 1998-09-06  MORIOKA Tomohiko  <morioka@jaist.ac.jp>
1084
1085         * file-coding.c (decode_coding_ucs4): New implementation.
1086
1087 1998-09-06  MORIOKA Tomohiko  <morioka@jaist.ac.jp>
1088
1089         * file-coding.c (decode_coding_ucs4): fixed.
1090
1091         * file-coding.c (Vmule_to_ucs_table): New variable.
1092         (mule_char_to_ucs4): New function.
1093         (encode_coding_ucs4): New implementation.
1094         (complex_vars_of_mule_coding): Define variable
1095         `mule-to-ucs-table'.
1096
1097 1998-09-06  MORIOKA Tomohiko  <morioka@jaist.ac.jp>
1098
1099         * file-coding.c (decode_coding_utf8): New implementation.
1100
1101 1998-09-06  MORIOKA Tomohiko  <morioka@jaist.ac.jp>
1102
1103         * file-coding.c (decode_coding_utf8): fixed.
1104
1105 1998-09-06  MORIOKA Tomohiko  <morioka@jaist.ac.jp>
1106
1107         * file-coding.c (Vucs_to_mule_table): New variable.
1108         (decode_ucs4): Refer `Vucs_to_mule_table'.
1109         (complex_vars_of_mule_coding): Define variable
1110         `ucs-to-mule-table'.
1111
1112 1998-09-04  MORIOKA Tomohiko  <morioka@jaist.ac.jp>
1113
1114         * file-coding.c (detect_coding_ucs4): New function (not
1115         implemented yet).
1116         (decode_coding_ucs4): New function.
1117         (encode_coding_ucs4): New function (not implemented yet).
1118         (detect_coding_utf8): New function (not implemented yet).
1119         (decode_coding_utf8): New function.
1120         (encode_coding_utf8): New function (not implemented yet).
1121         (make-coding-system): New type `ucs4' and `utf8'.
1122         (coding-system-type): Likewise.
1123         (detection_state): Add `ucs4' and `utf8'.
1124         (detect_coding_type): Likewise.
1125         (mule_decode): Use `decode_coding_ucs4' and `decode_coding_utf8'.
1126         (mule_encode): Use `encode_coding_ucs4' and `encode_coding_utf8'.
1127         (decode_ucs4): New function (very incomplete).
1128         (syms_of_mule_coding): Add `ucs4' and `utf8'.
1129
1130         * file-coding.h: Add definitions for UCS-4 and UTF-8.
1131
1132 1999-03-08  Martin Buchholz  <martin@xemacs.org>
1133
1134         * mule-charset.c:
1135         (non_ascii_valid_char_p):
1136         (lookup_composite_char):
1137         (composite_char_string):
1138         (make-composite-char):
1139         (composite-char-string):
1140         (syms_of_mule_charset): 
1141         (complex_vars_of_mule_charset): 
1142         * mule-charset.h (LEADING_BYTE_COMPOSITE):
1143         (CHAR_LEADING_BYTE):
1144         (MAKE_CHAR):
1145         * file-coding.h (CODING_STATE_COMPOSITE):
1146         (CODING_STATE_ISO2022_LOCK):
1147         (iso_esc_flag):
1148         (LEADING_BYTE_COMPOSITE):
1149         * file-coding.c (struct iso2022_decoder):
1150         (decoding_closer):
1151         (reset_iso2022):
1152         (parse_iso2022_esc):
1153         (encode_coding_iso2022):
1154         #ifdef out all composite character support using 
1155         #ifdef ENABLE_COMPOSITE_CHARS 
1156
1157         * alloc.c: Define lrecord_coding_system only if ! FILE_CODING
1158
1159 1999-03-04  Takeshi YAMADA <yamada@cslab.kecl.ntt.co.jp>
1160
1161         * fns.c (Fbase64_encode_string): Calculate `allength' in the same
1162         way of `Fbase64_encode_region'.
1163
1164 1999-02-18  Katsumi Yamaoka   <yamaoka@jpl.org>
1165
1166         * fns.c (base64_encode_1): Don't add a newline at the tail.
1167
1168 1999-03-08  Andy Piper  <andy@xemacs.org>
1169
1170         * menubar-msw.c (displayable_menu_item): correct off-by-one &
1171         handling.
1172
1173 1999-03-07  Martin Buchholz  <martin@xemacs.org>
1174
1175         * console-stream.h (struct stream_console):
1176         * event-unixoid.c (event_stream_unixoid_select_console):
1177         (event_stream_unixoid_unselect_console):
1178         * print.c (Fexternal_debugging_output):
1179         * sysdep.c (reset_one_device):
1180         * console-stream.c (stream_init_console):
1181         (stream_delete_console):
1182         (allocate_stream_console_struct): move into stream_init_console.
1183         (free_stream_console_struct): move into stream_delete_console.
1184         Use `fd' only for file descriptors.
1185         Therefore, rename members of struct stream_console.
1186
1187         * systime.h: Unix98 says sys/time.h should define select(), but
1188         some systems define that in unistd.h.  So include that file always.
1189
1190         * glyphs.h (MAYBE_IIFORMAT_METH): Don't use leading `_'.  Avoid
1191         multiple evaluation of first arg.  Do proper do {} while (0) wrapping.
1192         (HAS_IIFORMAT_METH_P): Prevent macro from being used in
1193         non-boolean context
1194         (MAYBE_IIFORMAT_DEVMETH): Use standard internal macro naming convention.
1195
1196         * EmacsShell.c:
1197         * balloon_help.c:
1198         Add #include <stdio.h>.
1199         Some versions of assert.h use printf() without #include'ing stdio.h
1200
1201         * free-hook.c (blocktype): Add gcpro5_type to blocktype.
1202         (log_gcpro): Remove unused variable FRAME.
1203         (show_gcprohist): Ansify.
1204         Comment the #endif's
1205
1206         * frame-x.c (x_delete_frame): Don't use FRAME_X_SHELL_WIDGET(f)
1207         after it's just been XtDestroy'ed!
1208
1209 1999-02-18  Martin Buchholz  <martin@xemacs.org>
1210
1211         * opaque.c (print_opaque):
1212         (sizeof_opaque):
1213         (equal_opaque):
1214         (hash_opaque):
1215         Egcs 1.1.1 seems to have a bug where
1216         INTP (p->size_or_chain)
1217         will crash XEmacs.  Fix by introducing intermediate variable.
1218
1219         * sound.c (Fdevice_sound_enabled_p): Fix compiler warning.
1220
1221         * dired.c (Fdirectory_files):
1222         (Ffile_name_completion):
1223         (Ffile_name_all_completions):
1224         (file_name_completion):
1225         - Use `directory' instead of `dirname' to sync with FSF Emacs and
1226         avoid compiler warnings.
1227         - Fix up docstrings so that C variables match documentation.
1228
1229 1999-03-05  Martin Buchholz  <martin@xemacs.org>
1230
1231         * alloc.c: (garbage_collect_1): Reorg code to make scope of local
1232         variables as small as possible to help out the compiler and the maintainer.
1233
1234         * alloc.c: (disksave_object_finalization):
1235         Set all the *-load-path variables to
1236         nil, not just load-path itself.  This gets the locate-file hash
1237         tables garbage collected BEFORE dump, and has the side effect of
1238         preventing crashes on OSF4.0+egcs.
1239
1240         * alloc.c:
1241         * gdbinit:
1242         * dbxrc:
1243         - Clean up gdb/dbx debugging support.
1244         - Storing an EMACS_INT in an enum is not 64-bit clean!
1245         - So change the enum to a set of separate variables.
1246         - Add test cases to help debug the debugging support!
1247         - Add `lisp-shadows' and `run-temacs' targets for dbx.
1248         - Both dbx and gdb have been tested now.
1249
1250 1999-03-05  XEmacs Build Bot <builds@cvs.xemacs.org>
1251
1252         * XEmacs 21.2.12 is released
1253
1254 1999-02-16  Kazuyuki IENAGA  <ienaga@jsys.co.jp>
1255
1256         * device-x.c: Support to find best visual without flashing.
1257
1258 1999-03-02  Paul Keusemann  <pkeusem@visi.com>
1259
1260         * database.c (berkdb_map): Add flags argument to cursor call (must
1261           be 0 according to docs) required for Berkeley DB 2.6.4 and later.
1262
1263 1999-03-03  Martin Buchholz  <martin@xemacs.org>
1264
1265         * hash.c:
1266         * hash.h:
1267         General cleanup.  Get free-hook.c working again.
1268         Remove unused functions:
1269         make_strings_hash_table, copy_hash, expand_hash_table.
1270
1271         * malloc.c:
1272         * mem-limits.h:
1273         Always use new ANSI-style function prototypes.
1274
1275         * unexalpha.c (unexec): Never use implicit int.
1276
1277         * sgiplay.c (close_sound_file):
1278         (play_sound_file):
1279         (restore_audio_port):
1280         (play_sound_data):
1281         (audio_initialize):
1282         (play_internal):
1283         (drain_audio_port):
1284         (write_mulaw_8_chunk):
1285         (write_linear_chunk):
1286         (write_linear_32_chunk):
1287         (initialize_audio_port):
1288         (open_audio_port):
1289         (set_channels):
1290         (set_output_format):
1291         (adjust_audio_volume):
1292         (get_current_volumes):
1293         (parse_snd_header):
1294         Always use new ANSI-style function prototypes.
1295         Use unistd.h for missing prototypes.
1296
1297         * unexelfsgi.c (round_up):
1298         (find_section):
1299         (unexec): Always use new ANSI-style function prototypes
1300
1301         * elhash.c (struct Lisp_Hash_Table): rename golden to golden_ratio
1302
1303         * console.h (struct console_methods): Always use full ANSI prototypes
1304
1305         * emacs.c (__sti__iflPNGFile_c___): Always use full ANSI prototypes
1306
1307 1999-03-02  Andy Piper  <andy@xemacs.org>
1308
1309         * event-stream.c (init_event_stream): make sure native mswindows
1310         gets an appropriate event loop.
1311
1312 1999-02-22  Andy Piper  <andy@xemacs.org>
1313
1314         * frame-msw.c (mswindows_make_frame_visible): use SW_SHOW rather
1315         than SW_SHOWNORMAL to prevent resizing of maximised frames.
1316         (mswindows_raise_frame): remove comment.
1317
1318 1999-03-01  XEmacs Build Bot <builds@cvs.xemacs.org>
1319
1320         * XEmacs 21.2.11 is released
1321
1322 1999-02-25  SL Baur  <steve@xemacs.org>
1323
1324         * mule-charset.c (Qleading_byte): New variable to implement
1325         charset-leading-byte function.
1326         (Fcharset_property): Use it.
1327         (syms_of_mule_charset): Initialize it.
1328         From Kazuyuki IENAGA <ienaga@jsys.co.jp>
1329
1330 1999-02-17  Kazuo Oishi <oishi@ae.agr.yamaguchi-u.ac.jp>
1331
1332         * glyphs-x.c (cononvert_EImage_to_XImage): correct
1333         bytes per pixel counting.
1334
1335 1999-02-15  Andy Piper  <andy@xemacs.org>
1336
1337         * s/cygwin32.h (BROKEN_SIGIO): don't define this as it causes
1338         major lockups.
1339
1340 1999-02-16  MORIOKA Tomohiko  <morioka@jaist.ac.jp>
1341
1342         * fns.c (Fbase64_encode_string): New optional argument
1343         `NO_LINE_BREAK'.
1344
1345 1999-02-16  Martin Buchholz  <martin@xemacs.org>
1346
1347         * gdbinit:  Fix up commands to run temacs.  Add lisp-shadows command.
1348         * alloc.c (xcalloc):  undef xcalloc, just like xmalloc
1349
1350 1999-02-10  Martin Buchholz  <martin@xemacs.org>
1351
1352         * s/bsdos4.h: New file.  Port to BSDI BSD/OS 4.0.
1353         * xintrinsic.h:  Redo CONST support for X11 R4 compatibility.
1354
1355 1999-02-05  XEmacs Build Bot <builds@cvs.xemacs.org>
1356
1357         * XEmacs 21.2.10 is released
1358
1359 1999-02-02  Gleb Arshinov  <gleb@cs.stanford.edu>
1360
1361         * process-nt.c (nt_send_process):
1362         Fix for process-send-region/process-send-string breaking when size
1363         of the input > 128 chars: change maximum chunk size for process
1364         stream from 512 to 128, thus guaranteeing that ntpipe_shove_writer
1365         succeeds.
1366
1367 1999-02-02  XEmacs Build Bot <builds@cvs.xemacs.org>
1368
1369         * XEmacs 21.2.9 is released
1370
1371 1999-01-30  Martin Buchholz  <martin@xemacs.org>
1372
1373         * bytecode.c (funcall_compiled_function): Call
1374         UNBIND_TO_GCPRO instead of UNBIND_TO_GCPRO_VARIABLES_ONLY.
1375
1376         * backtrace.h (UNBIND_TO_GCPRO_VARIABLES_ONLY):
1377         #ifdef 0 out unused macro.
1378
1379 1999-01-27  Martin Buchholz  <martin@xemacs.org>
1380
1381         * gui.c (gui_parse_item_keywords_internal): Make static.
1382
1383 1999-01-21  Andy Piper  <andy@xemacs.org>
1384
1385         * glyphs-msw.c: add xface support.
1386         (mswindows_xface_instantiate): new function copied from glyphs-x.c
1387         (image_instantiator_format_create_glyphs_mswindows): do device
1388         specific initialisation for xfaces.
1389         (xbm_create_bitmap_from_data): line data must be padded to a word
1390         boundary.
1391
1392         * glyphs-x.c (xface_validate): moved to glyphs.c
1393         (xface_normalize): ditto.
1394         (xface_possible_dest_types): ditto.
1395         (image_instantiator_format_create_glyphs_x): do device specific
1396         initialisation for xfaces.
1397
1398         * glyphs.h: declare xface symbol.
1399
1400         * glyphs.c: move generic xface support here.
1401         (xface_validate): moved from glyphs-x.c
1402         (xface_normalize): ditto.
1403         (xface_possible_dest_types): ditto.
1404         (image_instantiator_format_create): xface declarations moved from
1405         glyphs-x.c.
1406
1407 1999-01-14  Adrian Aichner  <aichner@ecf.teradyne.com>
1408
1409         * event-stream.c (vars_of_event_stream): Fixing documentation.
1410
1411 1999-01-17  Gunnar Evermann  <ge204@eng.cam.ac.uk>
1412
1413         * glyphs-eimage.c (gif_instantiate): Correct handling of
1414         interlaced gifs to avoid writing past the end of the eimage
1415         buffer.
1416
1417 1999-01-13  Hrvoje Niksic  <hniksic@srce.hr>
1418
1419         * search.c (Freplace_match): Handle single backslash at end of
1420         NEWTEXT correctly.
1421
1422 1999-01-12  William M. Perry  <wmperry@aventail.com>
1423
1424         * eldap.c (Fldap_open): slow down interrupts around ldap_open to
1425           avoid connection errors.
1426
1427 1999-01-12  Andy Piper  <andy@xemacs.org>
1428
1429         * redisplay-output.c (redisplay_update_line): backout change that
1430         shouldn't have gone ine.
1431
1432 1999-01-09  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
1433
1434         * eldap.c (vars_of_ldap): Do no provide `ldap' here since it may
1435         collide with ldap.el
1436
1437 1999-01-11  Andy Piper  <andy@xemacs.org>
1438
1439         * redisplay.h (DISPLAY_LINE_HEIGHT): new macro.
1440         (DISPLAY_LINE_YPOS): new macro.
1441
1442         * redisplay-msw.c (mswindows_output_string): use it.
1443         (mswindows_output_pixmap): ditto.
1444         (mswindows_output_display_block): ditto.
1445
1446         * redisplay-output.c (redisplay_output_display_block): new
1447         function. just call the devmeth, maybe insert some generic code
1448         here later.
1449         (compare_display_blocks): use it.
1450         (output_display_line): ditto.
1451         (redisplay_unmap_subwindows_maybe): new function. potentially
1452         unmap subwindows in the given area.
1453
1454         * glyphs.c (reset_subwindow_cachels): unmap subwindows that we are
1455         resetting.
1456
1457 1999-01-10  J. Kean Johnston  <jkj@sco.com>
1458
1459         * Makefile.in.in: Set value of moduledir
1460         - Changed DUMPENV to include $(MODULEPATH)
1461         - Added install rule to install header files for use by ellcc.
1462
1463         * config.h.in: Added INHIBIT_SITE_MODULES
1464         - Added HAVE__DLERROR
1465         - Added HAVE_DLFCN_H
1466         - Added DLSYM_NEEDS_UNDERSCORE
1467
1468         * dll.c: Removed.
1469
1470         * emodules.c: New file containing dynamic loading code.
1471
1472         * emodules.h: New file.
1473
1474         * emacs.c: Added variables Vmodule_directory,
1475         Vsite_module_directory, Vconfigure_module_directory and
1476         Vconfigure_site_module_directory.
1477         - (main_1): Added new variable inhibit_site_modules and command
1478         line options `-no-site-modules' and `--no-site-modules'.
1479         - (main_1): Call syms_of_module() instead of syms_of_dll().
1480         - (main_1): Call vars_of_module().
1481         - (vars_of_emacs): Introduce inhibit-site-modules,
1482         module-directory, configure-module-directory,
1483         site-module-directory, and configure-site-module-directory to the
1484         Lisp reader.
1485
1486         * lisp.h: Declare load_module and list_modules, as well as
1487         Vmodule_directory, Vsite_module_directory,
1488         Vconfigure_module_directory and Vconfigure_site_module_directory.
1489
1490         * paths.h.in: Added PATH_MODULESEARCH and PATH_SITE_MODULES.
1491         - Added correct support for site-lisp directory.
1492
1493         * symbols.c (defsubr): Modified to allow modules to add new subrs
1494         after dump time.
1495         - (defsubr_macro): Same.
1496         - (defvar_magick): Only use purespace when not initialized, so
1497         that loaded modules can still add symbols.
1498
1499         * symsinit.h: Add definitions for syms_of_module(),
1500         vars_of_module().  Removed syms_of_dll().
1501
1502         * sysdll.c: Include dlfcn.h if HAVE_DLFCN_H is defined.
1503         - (dll_variable): Take DLSYM_NEEDS_UNDERSCORE into account.
1504         - (dll_error): use _dlerror() if HAVE__DLERROR is defined.
1505
1506         * s/sco5-shr.h (C_SWITCH_SYSTEM): Correct for modern gcc and
1507         explicitly pass -belf for native cc.
1508
1509         * s/sco5.h (LIB_GCC): Use -print-libgcc-file-name instead of
1510         hard-coding the library name.
1511
1512 1999-01-01    <martin@xemacs.org>
1513
1514         * device-x.c (Fx_set_font_path):
1515         Add proper cast to permit compilation under C++.
1516
1517         * buffer.c (directory_is_current_directory):
1518         Add proper casts to permit compilation under C++.
1519
1520 1998-12-30  Damon Lipparelli  <lipp@primus.com>
1521
1522         * event-msw.c (mswindows_wnd_proc):
1523           Fixed failure when building with MSVC 5.
1524
1525 1998-12-29  Martin Buchholz  <martin@xemacs.org>
1526
1527         * file-coding.c (decode_coding_iso2022):
1528         - Prevent crash when decoding ISO7/Lock detected files
1529         - the usual martin fiddling
1530
1531 1998-12-29  Jonathan Harris  <jhar@tardis.ed.ac.uk>
1532
1533         * event-msw.c:
1534           glyphs-msw.c:
1535           Fixed failures when building with MSVC.
1536         * unexnt.c (dump_bss_and_heap):
1537           Removed compiler warning by removing bss_data variable.
1538
1539 1998-12-18  Jim Radford  <radford@robby.caltech.edu>
1540
1541         * device-x.c (Fx_set_font_path, Fx_get_font_path): New functions
1542         so that packages that distribute their own fonts can access them.
1543
1544 1998-12-28  Andy Piper  <andy@xemacs.org>
1545
1546         * glyphs-msw.c (mswindows_button_instantiate): cope with buttons
1547         that have an image provided.
1548
1549         * glyphs.h: add Q_image decl.
1550
1551         * glyphs-widget.c new functionality allowing images in
1552         widgets.
1553         (check_valid_glyph_or_image): new function to validate
1554         glyphs passed in through :image.
1555         (widget_normalize): new function. convert :image parameters into
1556         real glyphs if not already so.
1557         (widget_instantiate_1): mess with size parameters to be similar to
1558         :image if provided.
1559         (syms_of_glyphs_widget): new keyword :image.
1560         (image_instantiator_format_create_glyphs_widget): normalize
1561         buttons and allow :image.
1562
1563 1998-12-27  Andy Piper  <andy@xemacs.org>
1564
1565         * frame-msw.c (mswindows_init_frame_1): warning elimination.
1566
1567         * glyphs-widget.c (check_valid_anything): no-op function.
1568         (check_valid_callback): check callbacks in gui_items.
1569         (check_valid_symbol): as it sounds.
1570         (check_valid_string_or_vector): ditto.
1571         (widget_validate): modified for descriptors that are vectors or
1572         sequences of keyword/val pairs.
1573         (widget_instantiate_1): ditto.
1574         (image_instantiator_format_create_glyphs_widget): allow gui_item
1575         keywords in the instantiator.
1576
1577         * gui.c (gui_parse_item_keywords_internal): renamed from
1578         gui_parse_item_keywords but taking error behaviour.
1579         (gui_parse_item_keywords): use it.
1580         (gui_parse_item_keywords_no_errors): ditto.
1581         (gui_item_add_keyval_pair): add Error_behavior flag and only
1582         signal invalid keywords if required.
1583
1584         * gui.h: new gui signatures.
1585
1586         * menubar.c (menu_parse_submenu_keywords): use new
1587         gui_item_add_keyval_pair signature.
1588
1589         * s/cygwin32.h: modify PTY_ITERATION to eliminate warnings.
1590
1591 1998-12-28  Martin Buchholz <martin@xemacs.org>
1592
1593         * XEmacs 21.2.8 is released.
1594
1595 1998-12-28  Martin Buchholz  <martin@xemacs.org>
1596
1597         * editfns.c (get_home_directory):
1598         (user-home-directory): Simplify.
1599
1600
1601         * callproc.c (child_setup):
1602         - Environment variables were being passed to inferior processes
1603           using internal encoding.
1604         - Convert to external encoding.
1605         - Rename local var `tem' to better name `tail'.
1606         - Use Flength instead of `manual' calculation.
1607
1608         * buffer.c (kill-buffer):
1609         (record-buffer):
1610         (set-buffer-major-mode):
1611         (current-buffer):
1612         - Fix up parameter names to correspond to docstrings.
1613         - Don't use `bufname' when a buffer will do as well.
1614         - Remove one unneeded GCPRO.
1615
1616         * buffer.h (initial_directory):
1617         * buffer.c (init_initial_directory):
1618         - use correct conversions between internal and external format.
1619         (directory_is_current_directory): new function
1620         (init_buffer): convert initial_directory to internal format.
1621         - solve crashes when current working directory is non-ASCII.
1622
1623         * alloc.c (xmalloc):
1624         (xcalloc):
1625         (xrealloc):
1626         - remove stupid casts, since XEmacs requires an ANSI C system.
1627         (lrecord_type_index): replace abort() with more readable assert().
1628
1629         (reset_lcrecord_stats): remove.
1630         (sweep_lcrecords_1):
1631         - replace call to reset_lcrecord_stats() with call to xzero().
1632
1633 1998-12-27  Martin Buchholz  <martin@xemacs.org>
1634
1635         * process-unix.c (unix_create_process):
1636         - Fix crash invoking program with non-ASCII name.
1637           Try invoking xemacs with SHELL=/bin/sh, then M-x shell.
1638         - Remove unused variable `env'.
1639         - Rename `temp' to better name `save_errno'.
1640         - Reorganize code for clarity.  But still too chicken to nuke the
1641           BSD 4.2 support.
1642
1643 1998-12-24  Martin Buchholz <martin@xemacs.org>
1644
1645         * XEmacs 21.2.7 is released.
1646
1647 1998-12-23  Martin Buchholz  <martin@xemacs.org>
1648
1649         * glyphs.c (decode_device_ii_format):
1650         - Fix indentation.
1651         - Use GET_C_STRING_FILENAME_DATA_ALLOCA with char *, not Extbyte *.
1652
1653         * glyphs-x.c (x_subwindow_instantiate):
1654         - A image instance mask was being assigned to a image instance type!
1655         - X_SUBWINDOW_INSTANCE_DATA (ii) is not an lvalue in C++.
1656
1657         * glyphs-msw.c (mswindows_initialize_dibitmap_image_instance):
1658         Fix indentation.
1659         * glyphs-x.h: Make indentation consistent.
1660
1661         * emacs.c (Fdump_emacs): Remove Steve Martin merge artifacts.
1662
1663         * glyphs-widget.c (check_valid_glyph): Warning suppression.
1664         - Make it static
1665         - #ifdef it out, since it's not actually used yet (FIX THIS!)
1666
1667         * glyphs-widget.c:
1668         * glyphs.h:
1669         Move declarations of decode_device_ii_format and
1670         decode_image_instantiator_format into glyphs.h where they belong.
1671
1672 1998-12-22  Martin Buchholz  <martin@xemacs.org>
1673
1674         * frame-x.c (x_delete_frame): Revert part of my changes at the
1675         suggestion of Gunnar Evermann - unfortunately no one really
1676         understands this code.
1677
1678         * callproc.c (init_callproc): code cleanup.
1679
1680         * free-hook.c (malloc):
1681         (check_malloc):
1682         (__free_hook):
1683         (__malloc_hook):
1684         (__realloc_hook):
1685         (block_input_malloc):
1686         (block_input_realloc):
1687         * device-x.c (x_delete_device):
1688         * emacs.c (voodoo_free_hook):
1689         * events.c (print_event):
1690         (CHECK_EVENT_TYPE):
1691         (CHECK_EVENT_TYPE2):
1692         (CHECK_EVENT_TYPE3):
1693         Use proper prototypes.
1694         Make C_E_T macros a little faster.
1695         Pedantic fiddly little changes.  You really don't care.
1696
1697 1998-12-22  Andy Piper  <andy@xemacs.org>
1698
1699         * redisplay-output.c (redisplay_clear_region): make sure that
1700         fg/bg colors get set even when we are in the border area.
1701
1702 1998-12-13  Martin Buchholz  <martin@xemacs.org>
1703
1704         * console-msw.c: Function definitions follow coding standards
1705         - This prevents e.g. find-tag on Lisp_Event finding DEVENT
1706
1707 1998-12-11  Martin Buchholz  <martin@xemacs.org>
1708
1709         * events.h (struct timeout_data):
1710         * event-tty.c (tty_timeout_to_emacs_event):
1711         * event-msw.c (mswindows_wm_timer_callback):
1712         * event-Xt.c (Xt_timeout_to_emacs_event):
1713         * event-msw.c (mswindows_cancel_dispatch_event):
1714         Make sure Lisp_Objects inside events are initialized to Qnil, not
1715         Qnull_pointer, which is now illegal.
1716
1717 1998-12-10  Martin Buchholz  <martin@xemacs.org>
1718
1719         * lisp.h: Fix up prototypes to match alloc.c
1720
1721 1998-12-08  Martin Buchholz  <martin@xemacs.org>
1722
1723         * windowsnt.h: Remove `support' for using index and rindex
1724
1725         * filelock.c (current_lock_owner):
1726         - Change uses of index -> strchr, rindex -> strrchr
1727
1728 1998-12-07  Martin Buchholz  <martin@xemacs.org>
1729
1730         * sysdep.c (set_descriptor_non_blocking):
1731         Since O_NONBLOCK is now always #defined, make use of fcntl
1732         conditional on F_SETFL being defined.
1733
1734         * console-msw.c (DHEADgER):
1735         (DOPAQUE_DATA):
1736         (DEVENT):
1737         (DCONS):
1738         (DCONSCDR):
1739         (DSTRING):
1740         (DVECTOR):
1741         (DSYMBOL):
1742         (DSYMNAME):
1743         - max_align_t should not be visible to the user of the
1744           XOPAQUE_DATA macro.
1745         - use Bufbyte instead of char
1746         - parens around (FOOP (obj)) are always redundant.
1747           If they were necessary, we should fix the macro instead.
1748         - Always use string_data(foo) instead of foo->data.
1749
1750
1751 1998-12-06  Martin Buchholz  <martin@xemacs.org>
1752
1753         * frame-msw.c (mswindows_init_frame_1):
1754         - use make_lisp_hash_table, not Fmake_hash_table
1755         - include elhash.h
1756
1757         * lisp.h:
1758         * alloc.c (make_vector): remove travesty
1759         (Fmake_vector):
1760         (make_pure_vector):
1761         (pure_cons):
1762         (make_bit_vector_internal):
1763         (make_bit_vector):
1764         (make_bit_vector_from_byte_vector):
1765         (Fmake_bit_vector):
1766         - make vector_equal a little faster.
1767         - Don't use variable name `new'.
1768         - Use size_t instead of EMACS_INT.
1769         - usual Martin-style pointless bit-twiddling.
1770
1771         * fns.c (mapcar1):
1772         (Fmapconcat):
1773         (Fmapcar):
1774         (Fmapvector):
1775         Make mapcar faster.  In particular, make
1776           (mapc #'identity long-string)
1777         MUCH faster under Mule.
1778         * tests/automated/lisp-tests.el: Test 'em!
1779
1780         * bytecode.c (Ffetch_bytecode): Fix crash when loading lazy-loaded
1781         bytecode.
1782
1783 1998-12-01  Martin Buchholz  <martin@xemacs.org>
1784
1785         * menubar-x.c (menu_item_descriptor_to_widget_value_1): Always use
1786         Qnil, not NULL, to initialize `null' Lisp_Objects.
1787
1788 1998-11-29  Hrvoje Niksic  <hniksic@srce.hr>
1789
1790         * specifier.c (display_table_validate): Update.
1791
1792         * redisplay.c (create_text_block): Use them.
1793
1794         * glyphs.c (display_table_entry): New function.
1795         (get_display_tables): Ditto.
1796
1797 1998-12-15  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
1798
1799         * eldap.c (toplevel): Mention that eldap.c compiles with
1800         OpenLDAP libs
1801         (Fldap_open): Use `GET_C_STRING_OS_DATA_ALLOCA'
1802         (Fldap_search_internal): Ditto
1803
1804 1998-12-11  Martin Buchholz  <martin@xemacs.org>
1805
1806         * event-msw.c (mswindows_cancel_dispatch_event):
1807         Gratuitous code prettification
1808
1809
1810 1998-12-07  Hrvoje Niksic  <hniksic@srce.hr>
1811
1812         * fns.c (Fnconc): Fix use of wrong_type_argument().
1813
1814         * floatfns.c (Ffloat): Fix docstring.
1815         (Ffloat): Fix use of wrong_type_argument().
1816         (Fabs): Ditto.
1817         (extract_float): Ditto.
1818         (Fceiling): Ditto.
1819         (Fround): Ditto.
1820         (Ftruncate): Ditto.
1821
1822 1998-12-06  Martin Buchholz  <martin@xemacs.org>
1823
1824         * frame-msw.c (mswindows_init_frame_1):
1825         - use make_lisp_hash_table, not Fmake_hash_table
1826         - include elhash.h
1827
1828         * lisp.h:
1829         * alloc.c (make_vector): remove travesty
1830         (Fmake_vector):
1831         (make_pure_vector):
1832         (pure_cons):
1833         (make_bit_vector_internal):
1834         (make_bit_vector):
1835         (make_bit_vector_from_byte_vector):
1836         (Fmake_bit_vector):
1837         - make vector_equal a little faster.
1838         - Don't use variable name `new'.
1839         - Use size_t instead of EMACS_INT.
1840         - usual Martin-style pointless bit-twiddling.
1841
1842         * fns.c (mapcar1):
1843         (Fmapconcat):
1844         (Fmapcar):
1845         (Fmapvector):
1846         Make mapcar faster.  In particular, make
1847           (mapc #'identity long-string)
1848         MUCH faster under Mule.
1849         * tests/automated/lisp-tests.el: Test 'em!
1850
1851         * bytecode.c (Ffetch_bytecode): Fix crash when loading lazy-loaded
1852         bytecode.
1853
1854 1998-12-02  Didier Verna  <verna@inf.enst.fr>
1855
1856         * menubar-x.c (menu_item_descriptor_to_widget_value_1): set the
1857         accelerator field to nil for labels.
1858
1859 1998-12-16  Jonathan Harris  <jhar@tardis.ed.ac.uk>
1860
1861         * menubar-msw.c (displayable_menu_item):
1862           Escape occurrences of '&' and support occurrences of the
1863          '%_' accelerator indicator in menus.
1864
1865 1998-11-26  Didier Verna  <verna@inf.enst.fr>
1866
1867         * dired.c (Fdirectory_files): use make_string instead of
1868         make_ext_string on the filename. The conversion external->internal
1869         format is already done in sys_readdir.
1870
1871 1998-12-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
1872
1873         * glyphs.c (normalize_image_instantiator): GCPRO instantiator
1874
1875 1998-12-16  Jonathan Harris  <jhar@tardis.ed.ac.uk>
1876
1877         * event-msw.c
1878           (Belatedly) added Kirill to list of file's authors.
1879           emacs_mswindows_quit_p: Don't process WM_PAINT messages in
1880           quit checking. WM_PAINT messages cause redisplay, but
1881           windows' states are not necessarily stable when this function
1882           gets called.
1883
1884 1998-12-17  Andy Piper  <andy@xemacs.org>
1885
1886         * strftime.c (zone_name): CONSTify.
1887
1888 1998-12-15  Andy Piper  <andy@xemacs.org>
1889
1890         * glyphs-msw.c (mswindows_combo_instantiate): ditto.
1891         (mswindows_widget_property): return Qunbound when no property available.
1892         (mswindows_button_property): ditto.
1893         (mswindows_combo_property): ditto.
1894         (mswindows_widget_set_property): ditto.
1895
1896         * glyphs-widget.c (check_valid_item_list): use properties.
1897
1898         * glyphs.h (struct Lisp_Image_Instance): we have properties now.
1899
1900         * glyphs.c (Fset_image_instance_property): allow setting of arbitrary properties.
1901         (Fimage_instance_property): ditto.
1902         * glyphs-widget.c (widget_property): ditto.
1903         (widget_set_property): ditto.
1904
1905         * frame-msw.c (mswindows_set_frame_pointer): SetCursor() as well
1906         as setting the class cursor so that GC actually changes the
1907         cursor.
1908
1909         * config.h: don't undef MAIL_USE_POP.
1910
1911 1998-12-13  Andy Piper  <andy@xemacs.org>
1912
1913         * glyphs-msw.c
1914         (image_instantiator_format_create_glyphs_mswindows): line ->
1915         label.
1916         (mswindows_label_instantiate): ditto. Play with window flags.
1917         (image_instantiator_format_create_glyphs_mswindows): ditto.
1918         (vars_of_glyphs_mswindows): provide Qlabel as we support it now.
1919
1920         * glyphs-widget.c (widget_instantiate_1): re-jig autosizing to
1921         cope with lines and labels.
1922         (static_instantiate): use widget_instantiate_1.
1923         line -> label.
1924         (image_instantiator_format_create_glyphs_widget): ditto.
1925
1926 1998-12-10  Andy Piper  <andy@xemacs.org>
1927
1928         * Makefile.in.in (objs): add gui.o
1929
1930 1998-12-10  Andy Piper  <andy@xemacs.org>
1931
1932         * gui.c: adjust defines of HAVE_POPUPS so that we can build with
1933         no window system.
1934
1935 1998-12-09  Andy Piper  <andy@xemacs.org>
1936
1937         * glyphs.c (finalize_image_instance): mark glyphs changed when an
1938         image instance is removed so that the subwindow cache gets reset
1939         and thus destroyed images get GC'd.
1940
1941 1998-12-08  Andy Piper  <andy@xemacs.org>
1942
1943         * gui-msw.c (mswindows_handle_gui_wm_command): call
1944         MARK_SUBWINDOWS_CHANGED.
1945
1946         * glyphs-msw.c (mswindows_finalize_image_instance): make sure
1947         subwindows really get deleted.
1948
1949         * redisplay.c: new variable subwindows_changed[_set].
1950         (redisplay_window): use it.
1951         (redisplay_frame): ditto.
1952         (redisplay_device): ditto.
1953         (redisplay_without_hooks): ditto.
1954
1955         * device.h (MARK_DEVICE_SUBWINDOWS_CHANGED): new macro for
1956         subwindows redisplay as per glyphs equivalent.
1957         * redisplay.h: ditto.
1958         (MARK_SUBWINDOWS_CHANGED): ditto.
1959         (RESET_CHANGED_SET_FLAGS): ditto.
1960         * frame.h (MARK_FRAME_SUBWINDOWS_CHANGED): ditto.
1961
1962 1998-12-07  Andy Piper  <andy@xemacs.org>
1963
1964         * frame.c (Fmake_frame): reset subwindow cachels on non-stream
1965         frames.
1966
1967         * redisplay.c (redisplay_frame): invalidate subwindow cachels.
1968
1969         * event-msw.c (mswindows_wnd_proc): catch the various WM_CTLCOLOR*
1970         messages and paint widget glyphs as appropriate with their face fg
1971         & bg.
1972
1973 1998-12-06  Andy Piper  <andy@xemacs.org>
1974
1975         * glyphs-msw.c (vars_of_glyphs_mswindows): provide widget types
1976         here rather than in glyphs-widget - do this because we only want
1977         to provide what is really available.
1978
1979         * glyphs.c (Fimage_instance_property): new function to get the
1980         properties of image instances. wires through to console specific
1981         methods and then to widget specific methods.
1982         (Fset_image_instance_property): ditto but for setting widget properties.
1983         (check_valid_face): make extern so that it can be used elsewhere.
1984
1985         * glyphs-widget.c (widget_property): new function. gets the
1986         properties of widgets in general and wires the function through to
1987         widget specific ones.
1988         (widget_set_property): ditto but for setting widget properties.
1989
1990         * glyphs-msw.c (mswindows_combo_instantiate): Add functionality to
1991         add items to the list. Play with window styles a bit to get the
1992         desired effect.
1993         (mswindows_widget_property): break out specific widget properties.
1994         (mswindows_button_property): new function. gets the checked state
1995         of a button.
1996         (mswindows_combo_property): new function. gets the current
1997         selection in the combo box.
1998         (mswindows_widget_set_property): new function. sets specific
1999         properties of specific widgets.
2000
2001         * glyphs-widget.c (check_valid_item_list): new function. check
2002         that items for a combo-box are just a list of strings.
2003         (combo_validate): new function. check there is an item list.
2004         (widget_instantiate_1): new function. renamed from
2005         widget_instantiate so that we can do slightly different things for
2006         other widgets.
2007         (widget_instantiate): call widget_instantiate_1.
2008         (combo_instantiate): new function to instantiate combo boxes,
2009         defaults height to the pixel height of the number of items in the
2010         box.
2011         (syms_of_glyphs_widget): move widget keywords here.
2012         (image_instantiator_format_create_glyphs_widget): use new combo
2013         functions.
2014
2015 1998-12-04  Andy Piper  <andy@xemacs.org>
2016
2017         * event-msw.c (mswindows_wnd_proc): mule-ize.
2018
2019         * glyphs.c (pixmap_to_lisp_data): mule-ize.
2020
2021         * glyphs-msw.c (extract_xpm_color_names): mule-ize.
2022         (resource_name_to_resource): ditto.
2023         (mswindows_resource_instantiate): ditto.
2024         (mswindows_widget_instantiate): ditto.
2025         (mswindows_widget_set_property): ditto.
2026
2027         * redisplay-output.c (redisplay_output_subwindow): don't show
2028         subwindows if they are obscured at the edge of the frame, emacs
2029         gets into some sort of redisplay loop otherwise.
2030
2031         * gui.h: prototype gui_item_selected_p.
2032
2033         * gui.c (gui_item_selected_p): new function to determine the
2034         selected state of a gui_item.
2035
2036         * frame.h (struct frame): add subwindows_changed flag.
2037
2038         * redisplay.c (redisplay_frame): call update_frame_subwindows ().
2039
2040         * glyphs.c (update_subwindow): new function to update a
2041         subwindow's state.
2042         (update_frame_subwindows): new function to update all the
2043         subwindows on a frame.
2044
2045         * console.h (struct console_methods): add update_subwindow.
2046
2047         * glyphs-msw.c (mswindows_widget_property): return selected state
2048         for selected property.
2049         (mswindows_update_subwindow): new function. updates widget glyphs
2050         in redisplay as per menubars or toolbars e.g. selected state.
2051         (console_type_create_glyphs_mswindows): add update_subwindow.
2052
2053 1998-12-03  Andy Piper  <andy@xemacs.org>
2054
2055         * console-tty.c (syms_of_console_tty): MULE -> FILE_CODING since
2056         tty coding system things are such.
2057
2058         * glyphs-widget.c (widget_face_font_info): new function for
2059         pulling out height and width metrics for a widget's face.
2060         (widget_text_to_pixel_conversion): calculate pixel sizes of text
2061         for widgets.
2062
2063         * event-msw.c (mswindows_drain_windows_queue): translate messages
2064         that are destined for subwindows. This makes edit fields interact
2065         with the keyboard correctly.
2066         nuke warnings by #ifndef'ing out stuff not required by msg select().
2067
2068         * glyphs.h (INITIALIZE_IMAGE_INSTANTIATOR_FORMAT_NO_SYM): new
2069         macro defining the iiforma without the symbol required by widget.
2070         (INITIALIZE_IMAGE_INSTANTIATOR_FORMAT): use it.
2071
2072         * general.c (syms_of_general): add Qwidget, Qselected.
2073
2074         * faces.c (complex_vars_of_faces): add widget face inheriting from
2075         gui-element face.
2076
2077 1998-11-09  Andy Piper  <andy@xemacs.org>
2078
2079         * window.h (struct window): add a cache of subwindows on a
2080         per-window basis.
2081
2082         * window.c (mark_window): mark the subwindow_instance_cache.
2083         (allocate_window): initialise the subwindow instance_cache.
2084
2085         * toolbar-x.c (x_output_toolbar): call redisplay_clear_region
2086         instead of the devmeth.
2087         (x_clear_toolbar): ditto.
2088
2089         * redisplay-x.c (x_output_display_block): call
2090         redisplay_output_subwindow for subwindows and widgets.
2091
2092         * redisplay-tty.c (tty_output_display_block): add IMAGE_WIDGET to
2093         types to do nothing for.
2094
2095         * lisp.h: declare new widget/subwindow symbols.
2096
2097         * glyphs.c (image_instantiate): cache subwindows on a per-window
2098         basis.
2099         (subwindow_possible_dest_types): new function for subwindow dest
2100         types.
2101         (subwindow_instantiate): generic instantiation of a
2102         subwindow. specialised by device multi-methods.
2103         (Fsubwindowp): moved from glyphs-x.c. adapted for glyph-based
2104         subwindows.
2105         (Fimage_instance_subwindow_id): ditto.
2106         (Fresize_subwindow): ditto.
2107         (Fforce_subwindow_map): ditto.
2108
2109         * glyphs-x.c (x_print_image_instance): remove subwindow
2110         stuff. Handled genrically in glyphs.c.
2111         (x_image_instance_equal): ditto.
2112         (x_image_instance_hash): ditto.
2113         (x_finalize_image_instance): delete subwindows when required.
2114         (mark_subwindow) (print_subwindow) (finalize_subwindow)
2115         (subwindow_hash) (Fmake_subwindow): deleted because of new,
2116         glyph-based, subwindow implementation.
2117         (Fsubwindow_height) (Fsubwindow_width) (Fsubwindow_xid): aliased
2118         in glyphs.el
2119         (Fsubwindowp) (Fresize_subwindow) (Fforce_subwindow_map): moved to
2120         glyphs.c.
2121         (x_unmap_subwindow): new function to unmap X subwindows.
2122         (x_map_subwindow): new function to map X subwindows.
2123         (x_subwindow_instantiate): new function to instantiate X
2124         subwindows.
2125         (x_resize_subwindow): new function to resize X subwindows.
2126         (console_type_create_glyphs_x): add subwindow functions.
2127         (image_instantiator_format_create_glyphs_x): add device
2128         multi-methods for xpm, xbm and subwindow.
2129
2130         * glyphs.el (subwindow-xid): old alias for new subwindow functions.
2131         (subwindow-width): ditto.
2132         (subwindow-height): ditto.
2133
2134         * glyphs-msw.c (mswindows_widget_instantiate): new function for
2135         generally instantiating ms subwindows. Used by
2136         mswindows_*_instantiate.
2137         (mswindows_edit_instantiate): instantiate an edit field on a
2138         mswindows frame.
2139
2140 1998-11-04  Andy Piper  <andy@xemacs.org>
2141
2142         * symsinit.h: declare new functions.
2143
2144         * redisplay.h: declare new functions.
2145
2146         * redisplay-x.c (x_output_display_block): call
2147         redisplay_clear_region rather than x_clear_region.
2148         (x_output_string): ditto.
2149         (x_output_pixmap): ditto.
2150         (x_clear_to_window_end): ditto.
2151         (x_output_eol_cursor): ditto.
2152         (x_clear_region): only do X specific things. other duties handled
2153         in redisplay_clear_region.
2154
2155         * redisplay-tty.c (tty_clear_region): do tty specific things - some
2156         duties moved to redisplay_clear_region.
2157
2158         * redisplay-output.c (clear_left_border): use
2159         redisplay_clear_region instead of device method.
2160         (clear_right_border): ditto.
2161         (output_display_line): ditto.
2162         (redisplay_output_subwindow): ditto.
2163         (redisplay_clear_top_of_window): ditto.
2164         (redisplay_clear_region): perform duties previously handled by
2165         device methods. call the appropriate device method at the
2166         end. unmap subwindows if necessary.
2167
2168         * redisplay-msw.c (mswindows_output_string): use
2169         redisplay_clear_region instead of mswindows_clear_region.
2170         (mswindows_clear_to_window_end): ditto.
2171         (mswindows_output_display_block): output subwindows when required.
2172         (mswindows_clear_region): only do mswindows specific things,
2173         everything else is now handled in redisplay_clear_region.
2174
2175         * gui.h: add item id hash defines and declare function prototypes.
2176
2177         * gui.c (mark_gui_item): new function for marking gui_items.
2178         (gui_item_hash): generic hash function for generating command ids
2179         for gui_items.
2180
2181         * gui-msw.c: new file.
2182         (mswindows_handle_gui_wm_command): new function to handle widget
2183         callbacks.
2184
2185         * glyphs.h (MAYBE_IIFORMAT_DEVMETH): new function for device
2186         multi-methods.
2187         (IIFORMAT_HAS_SHARED_METHOD): ditto.
2188         (DEFINE_DEVICE_IIFORMAT): ditto.
2189         (INITIALIZE_DEVICE_IIFORMAT): ditto.
2190         (struct Lisp_Image_Instance): add widget and subwindow data plus
2191         appropriate access functions.
2192
2193         * glyphs.c (decode_device_ii_format): new function for decoding
2194         image instantiator functions based on a device type as well as an
2195         image format.
2196         (decode_image_instantiator_format): just call
2197         decode_device_ii_format with nil device.
2198         (add_entry_to_device_ii_format_list): new function for per device
2199         method instances.
2200         (add_entry_to_image_instantiator_format_list): just call
2201         add_entry_to_device_ii_format_list with nil device.
2202         (check_valid_vector): new function.
2203         (instantiate_image_instantiator): instantiate using per-format
2204         method and then per-format-per-device method (device
2205         multi-methods). signal an error if neither is possible.
2206         (mark_image_instance): cope with subwindows and widgets.
2207         (print_image_instance): ditto.
2208         (image_instance_equal): ditto.
2209         (image_instance_hash): ditto.
2210         (allocate_glyph): ditto.
2211         (glyph_width): ditto.
2212         (glyph_height_internal): ditto.
2213         (xpm_instantiate): removed because of device multi-methods.
2214         (mark_subwindow_cachels): new cachel functions for caching
2215         instantiated subwindows on a per-frame basis. mostly copied from
2216         glyph cachel functions.
2217         (update_subwindow_cachel_data): ditto.
2218         (add_subwindow_cachel): ditto.
2219         (get_subwindow_cachel_index): ditto.
2220         (reset_subwindow_cachels): ditto.
2221         (mark_subwindow_cachels_as_not_updated): ditto.
2222         (unmap_subwindow): generic unmapping of subwindows based on cachel
2223         data.
2224         (map_subwindow): ditto.
2225         (initialize_subwindow_image_instance): generic initialisation of
2226         subwindow data.
2227         (syms_of_glyphs): add widget keywords.
2228
2229         * glyphs-x.h (struct x_subwindow_data): convert Lisp_Subwindow to
2230         x_subwindow_data.
2231
2232 1998-11-04  Andy Piper  <andy@xemacs.org>
2233
2234         * glyphs-widget.c: new file for instantiating widget type glyphs.
2235         (widget_possible_dest_types): new general dest type function for
2236         widgets.
2237         (widget_validate): ditto.
2238         (initialize_widget_image_instance): ditto
2239         (widget_instantiate): ditto. Sets up fg/bg, gui_item parsing
2240         before handing on control to device multi-methods.
2241         (syms_of_glyphs_widget): new function.
2242         (image_instantiator_format_create_glyphs_widget): new function,
2243         added placeholders for button, edit, combo, scrollbar
2244         (vars_of_glyphs_widget): new function.
2245
2246         * glyphs-msw.h (WIDGET_INSTANCE_MSWINDOWS_HANDLE): new define for
2247         storing window ids of widgets.
2248
2249         * glyphs-msw.c (mswindows_finalize_image_instance): cope with
2250         deletion of widget and subwindow glyphs.
2251         (mswindows_unmap_subwindow): new device function for unmapping
2252         subwindows on a msw frame.
2253         (mswindows_map_subwindow): ditto.
2254         (mswindows_register_image_instance): register instantiated widgets
2255         with the widget hastable.
2256         (mswindows_button_instantiate): instantiate a button type widget
2257         on an msw frame.
2258         (mswindows_subwindow_instantiate): instanttiate a subwindow on a
2259         mswindows frame.
2260         (image_instantiator_format_create_glyphs_mswindows): add device
2261         multi-methods for xbm, xpm, subwindow, edit and button.
2262
2263         * frame.h (struct frame): add subwindow_cachels dynarr for caching
2264         information about subwindows visible on the current frame. used by
2265         redisplay_clear_region to unmap subwindows as required.
2266
2267         * frame.c (mark_frame): mark subwindow_cachels.
2268         (allocate_frame_core): instantiate subwindow_cachels.
2269
2270         * frame-msw.c (mswindows_init_frame_1): instntiate and mark the
2271         widget hashtable.
2272
2273         * event-msw.c (mswindows_wnd_proc): add call to
2274         mswindows_handle_gui_wm_command to handle widget callbacks.
2275
2276         * emacs.c (main_1): add calls to glyphs-widget initialisation
2277         routines.
2278
2279         * console.h (struct console_methods): add
2280         unmap/map_subwindow_method for use be redisplay_clear_region to
2281         map and unmap subwindows. Remove xpm and xbm stuff - now dealt
2282         with by image instantiator multi-methods. Add
2283         resize_subwindow_method.
2284
2285         * console-stream.c (stream_clear_region): change signature to
2286         match new generic clear region function.
2287
2288         * Makefile.in.in: add glyphs-widget.o to list of objects.
2289
2290         * console-msw.h (struct mswindows_frame): add widget hashtable for
2291         wiring command ids to callbacks.
2292
2293 1998-12-16  Andy Piper  <andy@xemacs.org>
2294
2295         * XEmacs 21.2.6 is released
2296
2297 1998-12-08  Hrvoje Niksic  <hniksic@srce.hr>
2298
2299         * md5.c (Fmd5): Correctly initiate string input stream.
2300
2301         * Makefile.in.in (tests): Add md5-tests.el.
2302
2303 1998-12-06  Martin Buchholz  <martin@xemacs.org>
2304
2305         * lisp.h:
2306         * alloc.c (make_vector): remove travesty
2307         (Fmake_vector):
2308         (make_pure_vector):
2309         (pure_cons):
2310         (make_bit_vector_internal):
2311         (make_bit_vector):
2312         (make_bit_vector_from_byte_vector):
2313         (Fmake_bit_vector):
2314         - make vector_equal a little faster.
2315         - Don't use variable name `new'.
2316         - Use size_t instead of EMACS_INT.
2317         - usual Martin-style pointless bit-twiddling.
2318
2319         * fns.c (mapcar1):
2320         (Fmapconcat):
2321         (Fmapcar):
2322         (Fmapvector):
2323         Make mapcar faster.  In particular, make
2324           (mapc #'identity long-string)
2325         MUCH faster under Mule.
2326         * tests/automated/lisp-tests.el: Test 'em!
2327
2328 1998-12-06  Martin Buchholz  <martin@xemacs.org>
2329
2330         * bytecode.c (Ffetch_bytecode): Fix crash when loading lazy-loaded
2331         bytecode.
2332
2333 1998-12-13  Martin Buchholz  <martin@xemacs.org>
2334
2335         * console-msw.c: Function definitions follow coding standards
2336         - This prevents e.g. find-tag on Lisp_Event finding DEVENT
2337
2338 1998-12-11  Martin Buchholz  <martin@xemacs.org>
2339
2340         * events.h (struct timeout_data):
2341         * event-tty.c (tty_timeout_to_emacs_event):
2342         * event-msw.c (mswindows_wm_timer_callback):
2343         * event-Xt.c (Xt_timeout_to_emacs_event):
2344         * event-msw.c (mswindows_cancel_dispatch_event):
2345         Make sure Lisp_Objects inside events are initialized to Qnil, not
2346         Qnull_pointer, which is now illegal.
2347
2348 1998-12-10  Martin Buchholz  <martin@xemacs.org>
2349
2350         * lisp.h: Fix up prototypes to match alloc.c
2351
2352 1998-12-09  Andy Piper  <andy@xemacs.org>
2353
2354         * glyphs-msw.c (init_image_instance_from_xbm_inline): don't use
2355         XSETINT for assigning lisp objects.
2356
2357 1998-12-07  Martin Buchholz  <martin@xemacs.org>
2358
2359         * opaque.h:
2360         * console-msw.c (DHEADER):
2361         (DOPAQUE_DATA):
2362         (DEVENT):
2363         (DCONS):
2364         (DCONSCDR):
2365         (DSTRING):
2366         (DVECTOR):
2367         (DSYMBOL):
2368         (DSYMNAME):
2369         - max_align_t should not be visible to the user of the
2370           XOPAQUE_DATA macro.
2371         - use Bufbyte instead of char
2372         - parens around (FOOP (obj)) are always redundant.
2373           If they were necessary, we should fix the macro instead.
2374         - Always use string_data(foo) instead of foo->data.
2375
2376 1998-12-07  Martin Buchholz  <martin@xemacs.org>
2377
2378         * sysdep.c (set_descriptor_non_blocking):
2379         Since O_NONBLOCK is now always #defined, make use of fcntl
2380         conditional on F_SETFL being defined.
2381
2382 1998-12-09  Andy Piper  <andy@xemacs.org>
2383
2384         * menubar-msw.c (mswindows_handle_wm_command): add back in checks
2385         that got removed in the merge
2386
2387 1998-11-30  Greg Klanderman  <greg@alphatech.com>
2388
2389         * dired.c (vars_of_dired): bugfix for previous conditionalization
2390         of user-name-completion on non- Windows NT.
2391
2392 1998-12-08  Martin Buchholz  <martin@xemacs.org>
2393
2394         * windowsnt.h: Remove `support' for using index and rindex
2395
2396         * filelock.c (current_lock_owner):
2397         - Change uses of index -> strchr, rindex -> strrchr
2398
2399 1998-12-06  Martin Buchholz  <martin@xemacs.org>
2400
2401         * frame-msw.c (mswindows_init_frame_1):
2402         - use make_lisp_hash_table, not Fmake_hash_table
2403         - include elhash.h
2404
2405 1998-12-05  XEmacs Build Bot <builds@cvs.xemacs.org>
2406
2407         * XEmacs 21.2.5 is released
2408
2409 1998-11-30  Martin Buchholz  <martin@xemacs.org>
2410
2411         * xselect.c (receive_incremental_selection):
2412         * xselect.c (x_get_window_property):
2413         * xmu.c (XmuReadBitmapDataFromFile):
2414         * xmu.c (XmuCursorNameToIndex):
2415         * xgccache.c (describe_gc_cache):
2416         * xgccache.c (gc_cache_lookup):
2417         * xgccache.c (free_gc_cache):
2418         * xgccache.c (make_gc_cache):
2419         * window.h:
2420         * window.c (map_windows_1):
2421         * window.c (Fother_window_for_scrolling):
2422         * window.c (window_scroll):
2423         * window.c (change_window_height):
2424         * window.c (Fsplit_window):
2425         * window.c (window_left_gutter_width):
2426         * window.c (window_modeline_height):
2427         * window.c (invalidate_vertical_divider_cache_in_window):
2428         * window.c (window_needs_vertical_divider_1):
2429         * window.c (update_mirror_internal):
2430         * window.c (SET_LAST_FACECHANGE):
2431         * widget.c (Fwidget_plist_member):
2432         * unexec.c (copy_text_and_data):
2433         * unexcw.c (copy_executable_and_dump_data_section):
2434         * tooltalk.doc:
2435         * tooltalk.c (struct Lisp_Tooltalk_Pattern):
2436         * tooltalk.c (struct Lisp_Tooltalk_Message):
2437         * toolbar.h (struct toolbar_button):
2438         * toolbar.c (default_toolbar_visible_p_changed_in_window):
2439         * toolbar.c (recompute_overlaying_specifier):
2440         * toolbar.c (toolbar_validate):
2441         * toolbar.c (toolbar_button_at_pixpos):
2442         * toolbar.c (get_toolbar_coords):
2443         * toolbar.c (update_frame_toolbars):
2444         * toolbar-x.c:
2445         * toolbar-msw.c (mswindows_handle_toolbar_wm_command):
2446         * toolbar-msw.c (mswindows_find_toolbar_pos):
2447         * toolbar-msw.c (mswindows_output_toolbar):
2448         * toolbar-msw.c (mswindows_clear_toolbar):
2449         * toolbar-msw.c:
2450         * systty.h:
2451         * syssignal.h:
2452         * sysproc.h:
2453         * sysfile.h:
2454         * sysdll.c:
2455         * sysdep.h:
2456         * sysdep.c (rmdir):
2457         * sysdep.c (sys_fopen):
2458         * sysdep.c (sys_open):
2459         * sysdep.c (tty_init_sys_modes_on_device):
2460         * sysdep.c (get_eof_char):
2461         * sysdep.c (child_setup_tty):
2462         * sysdep.c (set_descriptor_non_blocking):
2463         * syntax.h:
2464         * syntax.c (scan_words):
2465         * syntax.c:
2466         * symsinit.h:
2467         * symeval.h (struct symbol_value_varalias):
2468         * symeval.h (struct symbol_value_forward):
2469         * symbols.c (syms_of_symbols):
2470         * symbols.c (init_symbols_once_early):
2471         * symbols.c (Fbuilt_in_variable_type):
2472         * symbols.c (Fsymbol_value_in_buffer):
2473         * symbols.c (default_value):
2474         * symbols.c (Fset):
2475         * symbols.c (find_symbol_value_quickly):
2476         * symbols.c (store_symval_forwarding):
2477         * symbols.c (set_default_console_slot_variable):
2478         * symbols.c (set_default_buffer_slot_variable):
2479         * symbols.c (verify_ok_for_buffer_local):
2480         * symbols.c (symbol_is_constant):
2481         * symbols.c (oblookup):
2482         * symbols.c (Funintern):
2483         * symbols.c (Fintern):
2484         * symbols.c (check_obarray):
2485         * sunplay.c:
2486         * specifier.h (struct specifier_methods):
2487         * specifier.h:
2488         * specifier.c (specifier_instance):
2489         * specifier.c (specifier_instance_from_inst_list):
2490         * specifier.c (decode_locale_type):
2491         * specifier.c (specifier_equal):
2492         * specifier.c (finalize_specifier):
2493         * specifier.c (prune_specifiers):
2494         * specifier.c (kill_specifier_buffer_locals):
2495         * sound.c (init_native_sound):
2496         * sound.c:
2497         * signal.c (alarm):
2498         * search.c (Fmatch_data):
2499         * search.c (match_limit):
2500         * search.c (Freplace_match):
2501         * search.c (skip_chars):
2502         * search.c (scan_buffer):
2503         * search.c:
2504         * scrollbar.c (specifier_vars_of_scrollbar):
2505         * scrollbar.c (Fscrollbar_set_hscroll):
2506         * scrollbar.c (vertical_scrollbar_changed_in_window):
2507         * scrollbar.c (release_window_mirror_scrollbars):
2508         * scrollbar.c (free_scrollbar_instance):
2509         * scrollbar-x.c:
2510         * scrollbar-msw.c:
2511         * s/msdos.h (O_BINARY):
2512         * s/linux.h:
2513         * s/freebsd.h (LIBS_TERMCAP):
2514         * regex.c (re_match_2_internal):
2515         * regex.c (compile_extended_range):
2516         * regex.c (POP_FAILURE_POINT):
2517         * regex.c (PUSH_FAILURE_POINT):
2518         * redisplay.h (RESET_CHANGED_SET_FLAGS):
2519         * redisplay.h:
2520         * redisplay.h (struct display_line):
2521         * redisplay.h (struct rune):
2522         * redisplay.c (vars_of_redisplay):
2523         * redisplay.c (redisplay_variable_changed):
2524         * redisplay.c (UPDATE_CACHE_RETURN):
2525         * redisplay.c (validate_line_start_cache):
2526         * redisplay.c (mark_redisplay_structs):
2527         * redisplay.c (mark_glyph_block_dynarr):
2528         * redisplay.c (window_line_number):
2529         * redisplay.c (redisplay_frame):
2530         * redisplay.c (redisplay_window):
2531         * redisplay.c (generate_modeline):
2532         * redisplay.c (create_right_glyph_block):
2533         * redisplay.c (create_left_glyph_block):
2534         * redisplay.c (create_text_block):
2535         * redisplay.c:
2536         * redisplay-x.c (x_output_hline):
2537         * redisplay-x.c (x_output_vertical_divider):
2538         * redisplay-tty.c (tty_output_display_block):
2539         * redisplay-output.c (output_display_line):
2540         * redisplay-output.c:
2541         * redisplay-msw.c (mswindows_output_vertical_divider):
2542         * redisplay-msw.c (mswindows_ring_bell):
2543         * redisplay-msw.c (mswindows_output_cursor):
2544         * redisplay-msw.c:
2545         * rangetab.c:
2546         * ralloc.c:
2547         * puresize.h (RAW_PURESIZE):
2548         * profile.c (syms_of_profile):
2549         * profile.c (Fstart_profiling):
2550         * profile.c (sigprof_handler):
2551         * profile.c:
2552         * procimpl.h:
2553         * process.c (vars_of_process):
2554         * process.c (read_process_output):
2555         * process.c (get_process):
2556         * process.c:
2557         * process-unix.c (unix_open_multicast_group):
2558         * process-unix.c (unix_get_tty_name):
2559         * process-unix.c (unix_send_process):
2560         * process-unix.c (unix_reap_exited_processes):
2561         * process-unix.c (unix_create_process):
2562         * process-unix.c (unix_init_process_io_handles):
2563         * process-unix.c (allocate_pty):
2564         * process-unix.c:
2565         * process-nt.c (nt_open_network_stream):
2566         * process-nt.c (nt_update_status_if_terminated):
2567         * process-nt.c (nt_finalize_process_data):
2568         * process-nt.c:
2569         * print.c (debug_short_backtrace):
2570         * print.c (debug_backtrace):
2571         * print.c (print_symbol):
2572         * print.c (print_internal):
2573         * print.c (print_cons):
2574         * print.c (Fwrite_char):
2575         * print.c (print_prepare):
2576         * print.c (canonicalize_printcharfun):
2577         * print.c (output_string):
2578         * print.c:
2579         * opaque.h:
2580         * opaque.c (allocate_managed_opaque):
2581         * opaque.c:
2582         * offix.c (DndSetData):
2583         * objects.c (face_boolean_create):
2584         * objects.c (font_instantiate):
2585         * objects.c (font_create):
2586         * objects.c (color_create):
2587         * objects.c (finalize_font_instance):
2588         * objects.c (finalize_color_instance):
2589         * objects.c:
2590         * objects-x.c (x_font_instance_truename):
2591         * objects-x.c:
2592         * objects-x.c (x_initialize_font_instance):
2593         * objects-x.c (allocate_nearest_color):
2594         * objects-tty.c (tty_initialize_font_instance):
2595         * objects-tty.c (tty_initialize_color_instance):
2596         * objects-msw.c (mswindows_initialize_color_instance):
2597         * ntproc.c (syms_of_ntproc):
2598         * ntproc.c (Fwin32_set_process_priority):
2599         * ntproc.c (sys_spawnve):
2600         * ntproc.c:
2601         * ntheap.c (get_data_end):
2602         * nt.c (period):
2603         * nt.c:
2604         * nt.c (stat):
2605         * nt.c (generate_inode_val):
2606         * nt.c (sys_rename):
2607         * nas.c:
2608         * mule-wnnfns.c (Fwnn_hinsi_number):
2609         * mule-wnnfns.c (Fwnn_yuragi):
2610         * mule-wnnfns.c (Fwnn_common_learn):
2611         * mule-wnnfns.c (Fwnn_suffix_learn):
2612         * mule-wnnfns.c (Fwnn_prefix_learn):
2613         * mule-wnnfns.c (Fwnn_okuri_learn):
2614         * mule-wnnfns.c (Fwnn_complex_conv):
2615         * mule-wnnfns.c (Fwnn_last_is_first):
2616         * mule-wnnfns.c (Fwnn_bmodify_dict_add):
2617         * mule-wnnfns.c (Fwnn_notrans_dict_add):
2618         * mule-wnnfns.c (Fwnn_fiusr_dict_add):
2619         * mule-wnnfns.c (Fwnn_fisys_dict_add):
2620         * mule-wnnfns.c (Fwnn_hinsi_list):
2621         * mule-wnnfns.c (Fwnn_fuzokugo_set):
2622         * mule-wnnfns.c (Fwnn_dict_search):
2623         * mule-wnnfns.c (Fwnn_word_toroku):
2624         * mule-wnnfns.c (Fwnn_hindo_update):
2625         * mule-wnnfns.c (Fwnn_bunsetu_henkou):
2626         * mule-wnnfns.c (Fwnn_kakutei):
2627         * mule-wnnfns.c (Fwnn_begin_henkan):
2628         * mule-wnnfns.c (Fwnn_dict_comment):
2629         * mule-wnnfns.c (Fwnn_dict_add):
2630         * mule-wnnfns.c (Fwnn_open):
2631         * mule-mcpath.c (mc_getcwd):
2632         * mule-coding.c (vars_of_mule_coding):
2633         * mule-coding.c (convert_to_external_format):
2634         * mule-coding.c (encoding_marker):
2635         * mule-coding.c (decoding_marker):
2636         * mule-coding.c (Fcopy_coding_system):
2637         * mule-coding.c (Fmake_coding_system):
2638         * mule-coding.c (Fcoding_system_list):
2639         * mule-coding.c (Ffind_coding_system):
2640         * mule-coding.c (symbol_to_eol_type):
2641         * mule-coding.c:
2642         * mule-charset.c (complex_vars_of_mule_charset):
2643         * mule-charset.c (vars_of_mule_charset):
2644         * mule-charset.c (Fset_charset_ccl_program):
2645         * mule-charset.c (struct charset_list_closure):
2646         * mule-charset.c (Ffind_charset):
2647         * mule-charset.c (make_charset):
2648         * mule-charset.c (non_ascii_valid_char_p):
2649         * mule-charset.c:
2650         * mule-ccl.c (ccl_driver):
2651         * mule-canna.c (c2mu):
2652         * mule-canna.c (Fcanna_henkan_begin):
2653         * mule-canna.c (Fcanna_parse):
2654         * mule-canna.c (Fcanna_store_yomi):
2655         * mule-canna.c (Fcanna_touroku_string):
2656         * mule-canna.c (Fcanna_initialize):
2657         * minibuf.c:
2658         * menubar.c (menu_parse_submenu_keywords):
2659         * menubar-x.c (make_dummy_xbutton_event):
2660         * menubar-x.c (set_frame_menubar):
2661         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
2662         * menubar-x.c:
2663         * menubar-msw.h:
2664         * menubar-msw.c (mswindows_popup_menu):
2665         * menubar-msw.c (mswindows_update_frame_menubars):
2666         * menubar-msw.c (mswindows_handle_wm_command):
2667         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
2668         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1):
2669         * menubar-msw.c (update_frame_menubar_maybe):
2670         * menubar-msw.c (populate_or_checksum_helper):
2671         * menubar-msw.c (empty_menu):
2672         * menubar-msw.c:
2673         * md5.c:
2674         * marker.c (set_marker_internal):
2675         * marker.c (print_marker):
2676         * malloc.c:
2677         * make-src-depend:
2678         * lstream.c (lisp_buffer_rewinder):
2679         * lstream.c (mark_lstream):
2680         * lrecord.h:
2681         * lrecord.h (struct lrecord_header):
2682         * lread.c (readevalloop):
2683         * lread.c (locate_file):
2684         * lread.c (locate_file_in_directory):
2685         * lread.c (Flocate_file):
2686         * lread.c (load_force_doc_string_unwind):
2687         * lread.c (ebolify_bytecode_constants):
2688         * lread.c:
2689         * lisp.h:
2690         * lisp-union.h:
2691         * lisp-disunion.h:
2692         * linuxplay.c (linux_play_data_or_file):
2693         * linuxplay.c (audio_init):
2694         * line-number.c:
2695         * keymap.h:
2696         * keymap.c (describe_map):
2697         * keymap.c (describe_map_mapper):
2698         * keymap.c (Fdescribe_bindings_internal):
2699         * keymap.c (Fsingle_key_description):
2700         * keymap.c (map_keymap_sorted):
2701         * keymap.c (get_relevant_keymaps):
2702         * keymap.c (Flookup_key):
2703         * keymap.c (raw_lookup_key_mapper):
2704         * keymap.c (Fdefine_key):
2705         * keymap.c (Fevent_matches_key_specifier_p):
2706         * keymap.c (key_desc_list_to_event):
2707         * keymap.c (define_key_parser):
2708         * keymap.c (define_key_check_and_coerce_keysym):
2709         * keymap.c (keymap_submaps):
2710         * keymap.c (keymap_store_internal):
2711         * keymap.c (keymap_delete_inverse_internal):
2712         * keymap.c (keymap_store_inverse_internal):
2713         * keymap.c (print_keymap):
2714         * keymap.c (Lisp_Keymap):
2715         * keymap.c:
2716         * intl.c:
2717         * insdel.c (convert_bufbyte_string_into_emchar_dynarr):
2718         * insdel.c (make_gap):
2719         * input-method-xlib.c (get_XIM_input):
2720         * input-method-xlib.c (XIM_init_frame):
2721         * imgproc.c:
2722         * hash.h:
2723         * hash.c:
2724         * gui.c:
2725         * gui-x.c (button_item_to_widget_value):
2726         * gui-x.c (popup_selection_callback):
2727         * glyphs.h (struct image_instantiator_methods):
2728         * glyphs.c (mark_glyph_cachels):
2729         * glyphs.c (Fglyph_type):
2730         * glyphs.c (image_instantiate):
2731         * glyphs.c (image_create):
2732         * glyphs.c (make_image_instance_1):
2733         * glyphs.c (finalize_image_instance):
2734         * glyphs.c:
2735         * glyphs-x.c (finalize_subwindow):
2736         * glyphs-x.c (xface_validate):
2737         * glyphs-x.c (x_locate_pixmap_file):
2738         * glyphs-x.c (convert_EImage_to_XImage):
2739         * glyphs-msw.c:
2740         * glyphs-msw.c (mswindows_resource_instantiate):
2741         * glyphs-msw.c (xpm_to_eimage):
2742         * glyphs-msw.c (convert_EImage_to_DIBitmap):
2743         * glyphs-eimage.c (tiff_instantiate):
2744         * glyphs-eimage.c (png_instantiate):
2745         * glyphs-eimage.c (struct png_error_struct):
2746         * glyphs-eimage.c (gif_memory_storage):
2747         * glyphs-eimage.c:
2748         * gifrlib.h:
2749         * getloadavg.c (getloadavg):
2750         * getloadavg.c:
2751         * gdbinit:
2752         * free-hook.c (log_gcpro):
2753         * free-hook.c (check_malloc):
2754         * free-hook.c (check_free):
2755         * free-hook.c (ROUND_UP_TO_PAGE):
2756         * free-hook.c:
2757         * frame.h (struct frame):
2758         * frame.h:
2759         * frame.c (change_frame_size_1):
2760         * frame.c (allocate_frame_core):
2761         * frame.c:
2762         * frame-x.c (x_focus_on_frame):
2763         * frame-x.c (x_init_frame_2):
2764         * frame-x.c (x_popup_frame):
2765         * frame-x.c (xemacs_XtPopup):
2766         * frame-x.c:
2767         * frame-x.c (Foffix_start_drag_internal):
2768         * frame-x.c (x_cde_destroy_callback):
2769         * frame-x.c (x_wm_hack_wm_protocols):
2770         * frame-tty.c (tty_frame_visible_p):
2771         * frame-msw.c (mswindows_make_frame_invisible):
2772         * frame-msw.c (mswindows_after_init_frame):
2773         * frame-msw.c (mswindows_init_frame_1):
2774         * fns.c (syms_of_fns):
2775         * fns.c (Fbase64_decode_string):
2776         * fns.c (Fnconc):
2777         * fns.c (Ffillarray):
2778         * fns.c (Fobject_plist):
2779         * fns.c (Fget):
2780         * fns.c (Fcanonicalize_lax_plist):
2781         * fns.c (Fcanonicalize_plist):
2782         * fns.c (Fplist_remprop):
2783         * fns.c (Fplist_get):
2784         * fns.c (advance_plist_pointers):
2785         * fns.c (internal_plist_put):
2786         * fns.c (Fnreverse):
2787         * fns.c (Fremassq):
2788         * fns.c (Felt):
2789         * fns.c (Fsubstring):
2790         * fns.c (Fbvconcat):
2791         * fns.c (Flength):
2792         * fns.c (length_with_bytecode_hack):
2793         * fns.c (print_bit_vector):
2794         * fns.c:
2795         * floatfns.c (Ffloor):
2796         * floatfns.c:
2797         * floatfns.c (in_float_error):
2798         * fileio.c (Ffile_modes):
2799         * fileio.c (Fexpand_file_name):
2800         * fileio.c (Fmake_temp_name):
2801         * fileio.c (Ffile_name_nondirectory):
2802         * fileio.c (Ffile_name_directory):
2803         * file-coding.h:
2804         * file-coding.c (vars_of_mule_coding):
2805         * file-coding.c (convert_to_external_format):
2806         * file-coding.c (encoding_marker):
2807         * file-coding.c (decoding_marker):
2808         * file-coding.c (Fcopy_coding_system):
2809         * file-coding.c (Fmake_coding_system):
2810         * file-coding.c (struct coding_system_list_closure):
2811         * file-coding.c (Ffind_coding_system):
2812         * file-coding.c (symbol_to_eol_type):
2813         * file-coding.c:
2814         * faces.h (struct face_cachel):
2815         * faces.c (vars_of_faces):
2816         * faces.c (face_property_was_changed):
2817         * faces.c (mark_face_cachels):
2818         * faces.c (temporary_faces_list):
2819         * faces.c (struct face_list_closure):
2820         * faces.c:
2821         * extents.h (struct extent):
2822         * extents.c (vars_of_extents):
2823         * extents.c (struct copy_string_extents_1_arg):
2824         * extents.c (add_string_extents_mapper):
2825         * extents.c (Fextent_property):
2826         * extents.c (Fset_extent_property):
2827         * extents.c (symbol_to_glyph_layout):
2828         * extents.c (properties_equal):
2829         * extents.c (print_extent):
2830         * extents.c (print_extent_1):
2831         * extents.c (extent_in_region_p):
2832         * extents.c (gap_array_make_gap):
2833         * extents.c:
2834         * events.h (struct Lisp_Event):
2835         * events.h:
2836         * events.c (Fevent_properties):
2837         * events.c (format_event_object):
2838         * events.c (Fmake_event):
2839         * events.c (event_equal):
2840         * events.c (print_event):
2841         * events.c (mark_event):
2842         * event-stream.c ((read-char)
2843         * event-stream.c (vars_of_event_stream):
2844         * event-stream.c (syms_of_event_stream):
2845         * event-stream.c (Fset_recent_keys_ring_size):
2846         * event-stream.c (Fsit_for):
2847         * event-stream.c (Fnext_event):
2848         * event-stream.c (execute_help_form):
2849         * event-stream.c (maybe_kbd_translate):
2850         * event-stream.c:
2851         * event-msw.c (vars_of_event_mswindows):
2852         * event-msw.c (mswindows_wnd_proc):
2853         * event-msw.c (mswindows_need_event):
2854         * event-msw.c (mswindows_drain_windows_queue):
2855         * event-msw.c (mswindows_pump_outstanding_events):
2856         * event-msw.c:
2857         * event-msw.c (slurp_thread):
2858         * event-msw.c (struct ntpipe_slurp_stream):
2859         * event-msw.c (HANDLE_TO_USID):
2860         * event-Xt.c (emacs_Xt_handle_magic_event):
2861         * event-Xt.c (x_event_to_emacs_event):
2862         * event-Xt.c (x_reset_modifier_mapping):
2863         * event-Xt.c (x_reset_key_mapping):
2864         * event-Xt.c:
2865         * eval.c (syms_of_eval):
2866         * eval.c (warn_when_safe):
2867         * eval.c (warn_when_safe_lispobj):
2868         * eval.c (Fbacktrace_frame):
2869         * eval.c (Fbacktrace):
2870         * eval.c (top_level_set):
2871         * eval.c (unbind_to_hairy):
2872         * eval.c (specbind_magic):
2873         * eval.c (specbind_unwind_wasnt_local):
2874         * eval.c (call2_trapping_errors):
2875         * eval.c (call1_trapping_errors):
2876         * eval.c (catch_them_squirmers_call2):
2877         * eval.c (call0_trapping_errors):
2878         * eval.c (run_hook_trapping_errors):
2879         * eval.c (catch_them_squirmers_eval_in_buffer):
2880         * eval.c (call4_in_buffer):
2881         * eval.c (call3_in_buffer):
2882         * eval.c (call2_in_buffer):
2883         * eval.c (call1_in_buffer):
2884         * eval.c (call0_in_buffer):
2885         * eval.c (run_hook):
2886         * eval.c (run_hook_with_args_in_buffer):
2887         * eval.c (Fapply):
2888         * eval.c (Feval):
2889         * eval.c (do_autoload):
2890         * eval.c (un_autoload):
2891         * eval.c (Fautoload):
2892         * eval.c (Finteractive_p):
2893         * eval.c (Fcommand_execute):
2894         * eval.c (signal_quit):
2895         * eval.c (call_with_suspended_errors):
2896         * eval.c (signal_error):
2897         * eval.c (return_from_signal):
2898         * eval.c (Fcall_with_condition_handler):
2899         * eval.c (run_condition_case_handlers):
2900         * eval.c (condition_case_1):
2901         * eval.c (Funwind_protect):
2902         * eval.c (unwind_to_catch):
2903         * eval.c (internal_catch):
2904         * eval.c (Fmacroexpand_internal):
2905         * eval.c (Fuser_variable_p):
2906         * eval.c (Fdefconst):
2907         * eval.c (Fdefvar):
2908         * eval.c (Ffunction):
2909         * eval.c (signal_call_debugger):
2910         * eval.c (call_debugger):
2911         * eval.c:
2912         * emacs.c (main):
2913         * emacs.c (sort_args):
2914         * emacs.c (main_1):
2915         * elhash.h:
2916         * elhash.c:
2917         * editfns.c (Fencode_time):
2918         * editfns.c (Fdecode_time):
2919         * editfns.c (Fuser_full_name):
2920         * editfns.c:
2921         * editfns.c (save_excursion_restore):
2922         * ecrt0.c:
2923         * dynarr.c:
2924         * doprnt.c (emacs_doprnt_1):
2925         * doc.c (verify_doc_mapper):
2926         * doc.c (Fsnarf_documentation):
2927         * doc.c (Fdocumentation):
2928         * dll.c:
2929         * dired.c (user_name_completion):
2930         * dired.c (Fdirectory_files):
2931         * dialog-x.c:
2932         * dialog-msw.c:
2933         * dgif_lib.c (FreeSavedImages):
2934         * dgif_lib.c (DGifGetImageDesc):
2935         * device.h:
2936         * device.h (struct device):
2937         * device.c (Fselect_device):
2938         * device.c (allocate_device):
2939         * device.c:
2940         * device-x.c (Fx_keysym_on_keyboard_p):
2941         * device-x.c (Fx_valid_keysym_name_p):
2942         * device-x.c (x_IO_error_handler):
2943         * device-x.c (x_delete_device):
2944         * device-x.c (x_finish_init_device):
2945         * device-x.c (x_init_device):
2946         * device-x.c:
2947         * device-msw.c (mswindows_init_device):
2948         * dbxrc:
2949         * database.c (vars_of_database):
2950         * database.c (Fput_database):
2951         * database.c (Fopen_database):
2952         * database.c (berkdb_remove):
2953         * database.c (berkdb_put):
2954         * database.c (Fdatabasep):
2955         * database.c (print_database):
2956         * database.c:
2957         * data.c (vars_of_data):
2958         * data.c (syms_of_data):
2959         * data.c (init_errors_once_early):
2960         * data.c (prune_weak_lists):
2961         * data.c (finish_marking_weak_lists):
2962         * data.c (print_weak_list):
2963         * data.c (Fmod):
2964         * data.c (Fstring_to_number):
2965         * data.c (Fnumber_to_string):
2966         * data.c (Findirect_function):
2967         * data.c (Fsetcdr):
2968         * data.c (Ffloatp):
2969         * data.c (Fsubr_interactive):
2970         * data.c (Farrayp):
2971         * data.c (Fkeywordp):
2972         * data.c (Fnull):
2973         * data.c:
2974         * console.h (CONSOLE_NAME):
2975         * console.h:
2976         * console.c (vars_of_console):
2977         * console.c (Fselect_console):
2978         * console.c:
2979         * console-x.h (DEVICE_X_COLORMAP):
2980         * console-x.h (struct x_device):
2981         * console-x.c (x_device_to_console_connection):
2982         * console-tty.h (CONSOLE_TTY_FINAL_CURSOR_Y):
2983         * console-tty.c (tty_init_console):
2984         * console-tty.c:
2985         * console-msw.h (struct mswindows_frame):
2986         * conslots.h:
2987         * config.h.in:
2988         * cmds.c (internal_self_insert):
2989         * cmds.c (Fforward_line):
2990         * cmds.c (Fforward_char):
2991         * cmds.c:
2992         * cmdloop.c:
2993         * chartab.c (mark_char_table_entry):
2994         * chartab.c:
2995         * casefiddle.c (casify_word):
2996         * callproc.c (child_setup):
2997         * callproc.c (Fcall_process_internal):
2998         * callproc.c:
2999         * callint.c (Fcall_interactively):
3000         * bytecode.h:
3001         * bytecode.c (execute_rare_opcode):
3002         * bytecode.c (execute_optimized_program):
3003         * bytecode.c:
3004         * bufslots.h:
3005         * buffer.h (BUFFER_REALLOC):
3006         * buffer.h (GET_CHARPTR_INT_DATA_ALLOCA):
3007         * buffer.h (GET_CHARPTR_EXT_DATA_ALLOCA):
3008         * buffer.h:
3009         * buffer.h (MAP_INDIRECT_BUFFERS):
3010         * buffer.h (CHECK_LIVE_BUFFER):
3011         * buffer.c (init_initial_directory):
3012         * buffer.c (complex_vars_of_buffer):
3013         * buffer.c (vars_of_buffer):
3014         * buffer.c (finish_init_buffer):
3015         * buffer.c (Fget_file_buffer):
3016         * buffer.c (Fbuffer_list):
3017         * buffer.c (mark_buffer):
3018         * balloon_help.c (balloon_help_move_to_pointer):
3019         * balloon_help.c (show_help):
3020         * balloon_help.c:
3021         * backtrace.h:
3022         * alloc.c (garbage_collect_1):
3023         * alloc.c (sweep_strings):
3024         * alloc.c (sweep_compiled_functions):
3025         * alloc.c (sweep_bit_vectors_1):
3026         * alloc.c (sweep_vectors_1):
3027         * alloc.c (sweep_lcrecords_1):
3028         * alloc.c (tick_lcrecord_stats):
3029         * alloc.c (pure_string_sizeof):
3030         * alloc.c (mark_conses_in_list):
3031         * alloc.c (mark_object):
3032         * alloc.c (report_pure_usage):
3033         * alloc.c (make_pure_float):
3034         * alloc.c (make_pure_string):
3035         * alloc.c (free_managed_lcrecord):
3036         * alloc.c (mark_string):
3037         * alloc.c (noseeum_make_marker):
3038         * alloc.c (allocate_event):
3039         * alloc.c (Fbit_vector):
3040         * alloc.c (Fvector):
3041         * alloc.c (make_float):
3042         * alloc.c (Fmake_list):
3043         * alloc.c (Flist):
3044         * alloc.c (FREE_FIXED_TYPE_WHEN_NOT_IN_GC):
3045         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST):
3046         * alloc.c (DECLARE_FIXED_TYPE_ALLOC):
3047         * alloc.c (dbg_constants):
3048         * alloc.c (gc_record_type_p):
3049         * alloc.c (free_lcrecord):
3050         * alloc.c (xmalloc):
3051         * alloc.c (NOSEEUM_INCREMENT_CONS_COUNTER):
3052         * abbrev.c:
3053         * Makefile.in.in (mostlyclean):
3054         * Makefile.in.in (external_client_xlib_objs_nonshared):
3055         * Makefile.in.in (temacs_link_args):
3056         * Makefile.in.in (release):
3057         * Makefile.in.in (dnd_objs):
3058         * Makefile.in.in (objs):
3059         * Makefile.in.in (PROGNAME):
3060         * EmacsShell.c: cast strings to (XtPointer)
3061         * EmacsFrame.c: cast strings to (XtPointer)
3062         - mega patch
3063         - rewrite basic lisp functions for speed
3064         - rewrite bytecode interpreter for speed
3065         - rewrite list looping constructs for speed and safety using
3066           tortoise/hare.
3067         - use size_t where appropriate.
3068         - new hashtable implementation
3069         - cleanup implementation of opaques
3070         - opaques can now be purecopy'ed
3071         - move some cl functionality into C for speed.
3072         - remove last remaining VMS support
3073         - spelling fixes
3074         - improve gdb/dbx debugger support
3075         - move pure.c back into alloc.c for performance
3076         - enable report_pure_usage() if --memory-usage-stats
3077         - remove remnants of Energize support (EMACS_BTL, cadillac...)
3078         - don't use symbols with leading `_' or embedded `__'
3079         - globally cleanup duplicated semicolons `;;'
3080         - I give in on %p vs %lx - we use printf("%lx",(long) p)
3081           globally.
3082         - globally replace O_NDELAY with O_NONBLOCK.
3083         - globally replace CDISABLE with _POSIX_VDISABLE.
3084         - use O_RDONLY and O_RDWR instead of magic `0' and `2'.
3085         - define (and maybe use!) STDERR_FILENO and friends.
3086         - add support for macros defined in C
3087         - `when', `unless', `not' and `defalias' now defined in C,
3088           so that they are universally available.
3089         - rename defvar_mumble to defvar_magic
3090         - rename RETURN__ to RETURN_SANS_WARNINGS
3091         - use consistent style of initial caps in error messages
3092         - implement last, butlast, nbutlast, copy-list in C.
3093         - provide typedefs for all struct Lisp_foo types
3094         - Lisp_Objects must be initialized to Qnil rather than 0.
3095         - make sure XEmacs runs (slowly) with always_gc == 1;
3096         - fast and safe LOOP_* macros
3097         - change calls to XSETOBJ to XSETFOO
3098         - replace calls to XSETINT by make_int()
3099         - plug up memory leaks
3100         - use style markobj (foo), not silly ((markobj) (foo))
3101         - use XFLOAT_DATA (obj) instead of float_data (XFLOAT (obj))
3102
3103 1998-12-02  P. E. Jareth Hein  <jareth@camelot.co.jp>
3104
3105         * unexec.c: Changed a #ifndef statement to fix XEmacs on BSDI 3.0
3106
3107 1998-11-28  SL Baur  <steve@altair.xemacs.org>
3108
3109         * XEmacs 21.2-beta4 is released.
3110
3111 1998-11-27  SL Baur  <steve@altair.xemacs.org>
3112
3113         * mule-charset.c (complex_vars_of_mule_charset): Fix graphic
3114         property in control-1 charset.
3115         From Julian Bradfield <jcb@daimi.au.dk>
3116
3117 1998-11-26  Jan Vroonhof  <vroonhof@math.ethz.ch>
3118
3119         * gui-x.c (button_item_to_widget_value): Ignore :key-sequence
3120         keyword.
3121         Add stub for :label.
3122
3123         * gui.c (gui_item_add_keyval_pair): ditto.
3124
3125         * menubar-x.c (menu_item_descriptor_to_widget_value_1): Ignore
3126         :key-sequence keyword.
3127         Add stub for:label.
3128         Support :active for submenus like the Windows code and FSF Emacs.
3129
3130 1998-11-27  Hrvoje Niksic  <hniksic@srce.hr>
3131
3132         * dired.c (make_directory_hash_table): make_string() is OK because
3133         readdir() Mule-encapsulates.
3134
3135 1998-11-26  Hrvoje Niksic  <hniksic@srce.hr>
3136
3137         * fns.c (Fbase64_encode_string): Fix docstring.
3138         (Fbase64_decode_string): Ditto.
3139
3140 1998-11-26  Hrvoje Niksic  <hniksic@srce.hr>
3141
3142         * editfns.c (Ftranslate_region): Use
3143         convert_bufbyte_string_into_emchar_string().
3144
3145 1998-11-25  Hrvoje Niksic  <hniksic@srce.hr>
3146
3147         * editfns.c (Ftranslate_region): Accept vectors and char-tables as
3148         well as strings.
3149         (Ftranslate_region): Turn table into an array of Emchars for
3150         larger regions.
3151
3152 1998-11-25  Hrvoje Niksic  <hniksic@srce.hr>
3153
3154         * chartab.c (Freset_char_table): Fix wrong placement of #endif.
3155
3156 1998-11-24  Hrvoje Niksic  <hniksic@srce.hr>
3157
3158         * chartab.c (Freset_char_table): Don't blindly fill chartables of
3159         type `char' with nils.
3160
3161         * chartab.c (canonicalize_char_table_value): Coerce ints to chars
3162         for tables of type `char'.
3163
3164 1998-11-26  Didier Verna  <verna@inf.enst.fr>
3165
3166         * input-method-xlib.c (Initialize_Locale): don't call
3167         XtSetLanguageProc. We've done the whole work here.
3168         * input-method-xfs.c (Initialize_Locale): ditto.
3169         * input-method-motif.c (Initialize_Locale): ditto.
3170
3171 1998-11-26  Didier Verna  <verna@inf.enst.fr>
3172
3173         * process-unix.c (unix_create_process): handle properly
3174         Vfile_name_coding_system for converting the program and directory
3175         names.
3176
3177 1998-11-27  SL Baur  <steve@altair.xemacs.org>
3178
3179         * m/arm.h: New file.
3180         From James LewisMoss <dres@ioa.com>
3181
3182 1998-11-27  Takeshi Hagiwara  <hagiwara@ie.niigata-u.ac.jp>
3183
3184         * m/mips-nec.h:
3185         Fix the realpath() problem of UnixWare2.1.3.
3186         Patches for NEC's sysv4.2 machine.
3187
3188 1998-11-25  Hrvoje Niksic  <hniksic@srce.hr>
3189
3190         * dired.c (Fdirectory_files): Remove redundant code.
3191
3192 1998-11-25  Hrvoje Niksic  <hniksic@srce.hr>
3193
3194         * fns.c (free_malloced_ptr): New function.
3195         (XMALLOC_OR_ALLOCA): New macro.
3196         (XMALLOC_UNBIND): Ditto.
3197         (Fbase64_encode_region): Use malloc() for large blocks; arrange it
3198         to be freed in case of non-local exit.
3199         (Fbase64_encode_string): Ditto.
3200         (Fbase64_decode_region): Ditto.
3201         (Fbase64_decode_string): Ditto.
3202         (STORE_BYTE): New macro.
3203         (base64_decode_1): Use it.
3204
3205 1998-11-25  Hrvoje Niksic  <hniksic@srce.hr>
3206
3207         * fns.c (base64_value_to_char): Base64 stuff.
3208
3209 1998-11-24  Hrvoje Niksic  <hniksic@srce.hr>
3210
3211         * editfns.c (Fbuffer_substring): New function.
3212
3213         * lisp.h: Declare make_string_from_buffer_no_extents().
3214
3215         * insdel.c (make_string_from_buffer_1): New function.
3216         (make_string_from_buffer_no_extents): Ditto.
3217
3218 1998-11-15  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
3219
3220         * linuxplay.c: Including <fcntl.h> instead of <sys/fcntl.h> makes
3221         sound work on AIX with OSS installed.  Linux should still work.
3222
3223 1998-11-03  Andy Piper  <andyp@parallax.co.uk>
3224
3225         * config.h.in: name change for cygwin/version.h
3226
3227         * configure.in: check for cygwin/version.h now.
3228
3229         * cygwin32.h: track CYGWIN_DLL_VERSION_MAJOR ->
3230         CYGWIN_VERSION_DLL_MAJOR name change in cygwin b20.
3231         move cygwin32/version.h to cygwin/version.h
3232
3233 1998-11-03  Olivier Galibert  <galibert@pobox.com>
3234
3235         * lisp.h  (struct  Lisp_Bit_Vector): Fix declaration of  bits from
3236         int to long.
3237
3238 1998-10-22  Andy Piper  <andyp@parallax.co.uk>
3239
3240         * cygwin32.h: track CYGWIN_DLL_VERSION_MAJOR ->
3241         CYGWIN_VERSION_DLL_MAJOR name change in cygwin b20.
3242         enable BROKEN_SIGIO under b20 to make QUIT work.
3243
3244 1998-10-22  Andy Piper  <andyp@parallax.co.uk>
3245
3246         * frame-msw.c (mswindows_size_frame_internal): force frame sizing
3247         to fit within the constraints of the screen size. I.e. make the
3248         frame small enough to fit and move it if some of it will be
3249         off-screen.
3250
3251 1998-10-19  Greg Klanderman  <greg@alphatech.com>
3252
3253         * dired.c: conditionalize inclusion of user-name-completion
3254         primitives on non-Windows NT.  The needed functions don't exist on NT.
3255
3256 1998-11-24  SL Baur  <steve@altair.xemacs.org>
3257
3258         * gifrlib.h: Clean up types for 64 bit compile.
3259         * dgif_lib.c (DGifInitRead): Ditto.
3260         (MakeSavedImage): Ditto.
3261         * emacs.c (decode_path): Ditto.
3262         From Steve Carney <carney@pa.dec.com>
3263
3264 1998-10-16  William M. Perry  <wmperry@aventail.com>
3265
3266         * glyphs-msw.c (bitmap_table): Fixed typo in builtin bitmaps
3267           (cehckboxes instead of checkboxes).
3268
3269 1998-10-15  SL Baur  <steve@altair.xemacs.org>
3270
3271         * XEmacs 21.2-beta3 is released.
3272
3273 1998-10-13  Raymond Toy  <toy@rtp.ericsson.se>
3274
3275         * runemacs.c (WinMain): If the basename is "rungnuclient.exe", run
3276         gnuclient.  Otherwise, we run xemacs as we always did.  This gets
3277         rid of the annoying DOS window when running gnuclient.
3278
3279 1998-10-13  Andy Piper  <andyp@parallax.co.uk>
3280
3281         * dragdrop.c (vars_of_dragdrop): rename HAVE_MSWINDOWS ->
3282         HAVE_MS_WINDOWS typo.
3283
3284 1998-10-13  SL Baur  <steve@altair.xemacs.org>
3285
3286         * process-unix.c (unix_send_process): Set closed flag on writable
3287         pipe after SIGPIPE is received and before we call deactivate_process.
3288
3289 1998-10-03  Gunnar Evermann  <ge204@eng.cam.ac.uk>
3290
3291         * window.c (Fset_window_start): respect narrowing when
3292         checking wheter start is at the beginning of a line.
3293         (Fset_window_buffer): Ditto
3294         Fixes repeatable crash in VM.
3295
3296 1998-10-09  SL Baur  <steve@altair.xemacs.org>
3297
3298         * window.c (specifier_vars_of_window): Set default vertical
3299         divider width to 1 on ttys.
3300
3301 1998-10-08  Martin Buchholz  <martin@xemacs.org>
3302
3303         * alloc.c:
3304         * unexec.c:
3305         * malloc.c:
3306         Add <stddef.h> to get ptrdiff_t declaration
3307
3308 1998-10-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
3309
3310         * scrollbar-msw.c: Use the same vertical scrollbar drag hack as
3311           is used for Motif or Lucid scrollbars under X.
3312
3313 1998-10-08  Pierre Wendling  <pw@ebc.vbe.dec.com>
3314
3315         * m/alpha.h (UNEXEC): quoted to avoid bad expansion when running
3316         `configure'
3317
3318 1998-10-06  Takeshi Hagiwara  <hagiwara@ie.niigata-u.ac.jp>
3319
3320         * frame-x.c (x_delete_frame): Fix an argument of XtDestroyWidget.
3321
3322 1998-10-05  Andy Piper  <andyp@parallax.co.uk>
3323
3324         * s/cygwin32.h: more cygwin b20 reorganisation.
3325
3326 1998-10-01  Raymond Toy  <toy@rtp.ericsson.se>
3327
3328         * nas.c: Added necessary support functions to be able to handle
3329         WAVE files in memory, just like the support for SND files in
3330         memory.
3331
3332 1998-09-30  SL Baur  <steve@altair.xemacs.org>
3333
3334         * callproc.c (child_setup): Fix spelling typo.
3335
3336 1998-09-29  SL Baur  <steve@altair.xemacs.org>
3337
3338         * XEmacs 21.2-beta2 is released.
3339
3340 1998-09-27  P. E. Jareth Hein  <jareth@camelot.co.jp>
3341
3342         * regex.c (re_match_2_internal): Add in code to reset lowest_active_reg
3343         to prevent memory corruption in the case of jumping out of a series of
3344         nested match patterns. This is a rather brute force approach, though.
3345
3346 1998-09-02  Andy Piper  <andyp@parallax.co.uk>
3347
3348         * config.h.in: ditto.
3349
3350         * s/cygwin32.h: rearrange declarations to cope with cygwin
3351         b20. Include cygwin32/version.h if it exists.
3352
3353 1998-09-20  Jonathan Harris  <jhar@tardis.ed.ac.uk>
3354
3355         * device-msw.c (mswindows_init_device): Call new
3356           mswindows_enumerate_fonts() function in objects-msw.c instead
3357           of font_enum_callback_1() to enumerate fonts.
3358
3359           font_enum_callback_1() and _2() moved to objects-msw.c.
3360
3361         * faces.c (complex_vars_of_faces): Make the mswindows default
3362           face font fully specified and provide some fallbacks.
3363
3364         * objects-msw.c: font_enum_callback_1() and _2() moved here
3365           from objects-msw.c. Obtain the enumerated font's character
3366           sets by table lookup instead of using the locale-specific
3367           string provided by Windows.
3368
3369           New public non-method mswindows_enumerate_fonts() that fills
3370           in the supplied mswindows device's font list.
3371
3372           mswindows_initialize_font_instance: Use the supplied name
3373           variable instead of f->name when signalling errors. Match font
3374           weights and character sets using lookup tables which handle
3375           spaces instead of by frobbing.
3376
3377 1998-09-20  Jonathan Harris  <jhar@tardis.ed.ac.uk>
3378
3379         * process-nt.c: Define an arbitrary limit, FRAGMENT_CODE_SIZE,
3380           on the size of code fragments passed to run_in_other_process.
3381
3382           run_in_other_process(): Use FRAGMENT_CODE_SIZE to determine
3383           the amount of memory to allocate in the other process.
3384
3385           Removed sigkill_code_end(), sigint_code_end() and
3386           sig_enable_code_end() since they are now redundant.
3387
3388           send_signal() and enable_child_signals(): Don't try to work
3389           out the end of the code fragments passed to
3390           run_in_other_process()
3391
3392 1998-09-10  Kazuyuki IENAGA  <ienaga@jsys.co.jp>
3393
3394         * src/s/freebsd.h: Added __ELF__ and compiler/liker flags for
3395         FreeBSD-current.
3396
3397         * src/unexelf.c: Partially synched with FSF's 20.3.
3398
3399 1998-09-10  Hrvoje Niksic  <hniksic@srce.hr>
3400
3401         * insdel.c (signal_after_change): Map across indirect buffers
3402         here, and not in the upper-level functions.
3403         (signal_first_change): Don't check for Armageddon.
3404         (signal_before_change): Map across indirect buffers here.
3405         (prepare_to_modify_buffer): ...and here.
3406
3407 1998-09-09  Hrvoje Niksic  <hniksic@srce.hr>
3408
3409         * insdel.c (signal_after_change): Add return value.
3410         (buffer_insert_string_1): Use it.
3411         (buffer_delete_range): Ditto.
3412         (buffer_replace_char): Ditto.
3413         (cancel_multiple_change): Map the indirect buffers.
3414
3415 1998-09-06  Hrvoje Niksic  <hniksic@srce.hr>
3416
3417         * insdel.c (init_buffer_text): Remove INDIRECT_P parameter.
3418         (uninit_buffer_text): Ditto.
3419
3420         * buffer.c (Fmake_indirect_buffer): Implement stricter
3421         error-checking.
3422
3423 1998-09-04  Hrvoje Niksic  <hniksic@srce.hr>
3424
3425         * insdel.c (change_function_restore): Reverse order of
3426         function-call and assignment.
3427         (first_change_hook_restore): Ditto.
3428
3429         * extents.c (mark_extent_auxiliary): Mark them.
3430         (Fset_extent_property): Set them.
3431         (Fextent_property): Get them.
3432         (Fextent_properties): Ditto.
3433         (vars_of_extents): Set their default.
3434
3435         * extents.h (struct extent_auxiliary): Add before_change_functions
3436         and after_change_functions.
3437
3438         * insdel.c (signal_before_change): Use it.
3439         (signal_after_change): Ditto.
3440
3441         * extents.c (report_extent_modification): New function.
3442
3443         * insdel.c (signal_before_change): Don't check for Armageddon.
3444         (signal_after_change): Ditto.
3445
3446 1998-09-11  Gunnar Evermann  <Gunnar.Evermann@nats.informatik.uni-hamburg.de>
3447
3448         * redisplay.c (redisplay_window): make sure a new starting point
3449         is chosen if it somehow got moved from the beginning of the line
3450         -- this can happen because Fwiden was called recently.
3451
3452         * window.c (Fset_window_start): set start_at_line_beg correctly
3453         (Fset_window_buffer): Ditto
3454
3455 1998-09-06  Hrvoje Niksic  <hniksic@srce.hr>
3456
3457         * insdel.c (init_buffer_text): Remove INDIRECT_P parameter.
3458         (uninit_buffer_text): Ditto.
3459
3460         * buffer.c (Fmake_indirect_buffer): Implement stricter
3461         error-checking.
3462
3463 1998-05-14  Jan Vroonhof  <vroonhof@math.ethz.ch>
3464
3465         * emacs.c (main_1): Removed references to *vars_of_filelock.
3466
3467         * lisp.h: Added Fsystem_name.
3468
3469         * filelock.c: Replaced by version from FSF 20.2. Now implements
3470         locking by using symlinks which is NFS safe. However keep the
3471         GCPRO's in lock_file and the calls to callx_in_buffer like our old
3472         version (and of course use ansi C, acessor macros, etc).
3473
3474 1998-09-06  Jan Vroonhof  <vroonhof@math.ethz.ch>
3475
3476         * process-unix.c (unix_create_process): Reset SIGHUP handler to
3477         SIG_DFL. We now try to conserve any inherted SIG_IGN settings
3478         in init_signals_very_early. However these should not be passed
3479         on to children attached to the new pty.
3480
3481 1998-08-28  Andy Piper  <andyp@parallax.co.uk>
3482
3483         * glyphs-eimage.c (png_instantiate_unwind): clean up eimage after use.
3484
3485 1998-09-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
3486
3487         * fileio.c (file-name-directory, file_name_as_directory):
3488           Don't call CORRECT_DIR_SEPS, even when #defined WINDOWSNT.
3489
3490 1998-09-02  Andy Piper  <andyp@parallax.co.uk>
3491
3492         * emacs.c (main_1): init_ralloc() if initialised and we have REL_ALLOC
3493
3494         * ralloc.c: uncomment __morecore.
3495
3496 1998-09-92  Jonathan Harris  <jhar@tardis.ed.ac.uk>
3497
3498         * event-msw.c(winsock_writer): Supply a dummy 4th argument to
3499           WriteFile() to fix a winsock 1.x bug on Win95.
3500
3501 1998-08-28  Hrvoje Niksic  <hniksic@srce.hr>
3502
3503         * event-Xt.c (emacs_Xt_mapping_action): Check for device being
3504         deleted.
3505         (x_event_to_emacs_event): Ditto.
3506         (emacs_Xt_handle_focus_event): Ditto.
3507         (emacs_Xt_handle_magic_event): Ditto.
3508
3509         * console-x.h (struct x_device): New flag being_deleted.
3510         (DEVICE_X_BEING_DELETED): New macro.
3511
3512         * device-x.c (x_IO_error_handler): Throw to top-level instead of
3513         returning.  Before doing that, set the being_deleted flag on the
3514         device.
3515
3516 1998-08-27  Hrvoje Niksic  <hniksic@srce.hr>
3517
3518         * device-x.c (x-seppuku-on-epipe): Removed.
3519
3520 1998-08-26  Gunnar Evermann  <Gunnar.Evermann@nats.informatik.uni-hamburg.de>
3521
3522         * frame-x.c (x_delete_frame): Flush the X output buffer after
3523         calling XtDestroyWidget to ensure that the windows are really
3524         killed right now.
3525
3526 1998-08-26  Hrvoje Niksic  <hniksic@srce.hr>
3527
3528         * menubar-x.c (my_run_hook): New unused function.
3529         (pre_activate_callback): Use run_hook for Qactivate_menubar_hook,
3530         since we ignore the results of the contained functions anyway.
3531
3532 1998-08-26  P. E. Jareth Hein  <jareth@camelot.co.jp>
3533
3534         * glyphs-eimage.c (gif_instantiate): Fix a crash in handling
3535         interlaced GIF files that are smaller than 4 lines high...
3536
3537 1998-08-31  Hrvoje Niksic  <hniksic@srce.hr>
3538
3539         * buffer.c (map_over_sharing_buffers): Deleted.
3540
3541         * insdel.c (MAP_INDIRECT_BUFFERS): Move to buffer.h.
3542
3543         * buffer.c (Fkill_buffer): Keep indirect_children updated while
3544         killing them.
3545
3546 1998-08-31  Hrvoje Niksic  <hniksic@srce.hr>
3547
3548         * insdel.c (buffer_insert_string_1): Advance the point bytind in
3549         all the buffers.
3550         (buffer_delete_range): Ditto.
3551
3552         * marker.c (init_buffer_markers): Set point-marker to the value of
3553         point in an indirect buffer.
3554
3555 1998-08-30  Hrvoje Niksic  <hniksic@srce.hr>
3556
3557         * undo.c (undo_prelude): Test last-undo-buffer against base
3558         buffer.
3559
3560         * insdel.c (MAP_INDIRECT_BUFFERS): Use it.
3561
3562         * buffer.h (BUFFER_BASE_BUFFER): New macro.
3563
3564 1998-08-30  Hrvoje Niksic  <hniksic@srce.hr>
3565
3566         * insdel.c (init_buffer_text): Initialize it here.
3567
3568         * line-number.c: Address line_number_cache through buffer->text.
3569
3570         * buffer.c (mark_buffer): Mark line number cache.
3571
3572         * bufslots.h (line_number_cache): Move to struct buffer_text.
3573
3574         * insdel.c (buffer_insert_string_1): Propagate signals and changes
3575         across the children buffers.
3576         (buffer_delete_range): Ditto.
3577         (buffer_replace_char): Ditto.
3578         (gap_left): Ditto.
3579         (gap_right): Ditto.
3580
3581         * insdel.c (MAP_INDIRECT_BUFFERS): New macro.
3582
3583         * buffer.c (Fmake_indirect_buffer): Uncomment.
3584
3585 1998-08-31  Hrvoje Niksic  <hniksic@srce.hr>
3586
3587         * macros.c (Fend_kbd_macro): Remove trailing period from error
3588         message.
3589         (Fexecute_kbd_macro): Ditto.
3590
3591 1998-08-21  Greg Klanderman  <greg@alphatech.com>
3592
3593         * dired.c (Fuser_name_completion): remove optional 2nd argument.
3594         (Fuser_name_completion_1): new function to return uniqueness
3595         indication in addition to the user name completion.
3596         (user_name_completion): change type of `uniq' argument.
3597
3598 1998-08-19  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
3599
3600         * lread.c (vars_of_lread): Removed `source-directory' variable.
3601
3602 1998-08-22  Hrvoje Niksic  <hniksic@srce.hr>
3603
3604         * fileio.c (Ffile_readable_p): Apply the DOS/Windows logic to
3605         Cygwin.
3606
3607 1998-08-19  SL Baur  <steve@altair.xemacs.org>
3608
3609         * dired.c (vars_of_dired): Fix misapplied patch.
3610
3611 1998-08-16  Martin Buchholz  <martin@xemacs.org>
3612
3613         * fns.c (Fremrassq, remrassq_no_quit):
3614         A XCAR that should have been an XCDR turned Fremrassq into Fremassq
3615
3616 1998-07-17  Didier Verna  <verna@inf.enst.fr>
3617
3618         * redisplay-x.c (x_get_gc): returns a GC with a FillStipple fill
3619         style as foreground GC for faces that have the `dim' property.
3620         (x_output_string): when the `dim' face property is set,
3621         ensure the gray pixmap has been created, and get a proper
3622         foreground GC to draw the text.
3623
3624 1998-08-09  Jonathan Harris  <jhar@tardis.ed.ac.uk>
3625
3626         * event-msw.c (mswindows_wnd_proc): Workaround for a Win95 bug:
3627           Manually track the state of the left and right Ctrl and Alt
3628           modifiers.
3629
3630 1998-08-07 Matt Stupple <matts@tibco.com>
3631
3632         * ntproc.c: don't wait on char_consumed at thread entry.
3633         Additionally, to get the 'process' marked as finished, ensure
3634         that the CHILD_ACTIVE macro returns false, so before exiting
3635         close char_avail and set it to NULL, and close other handles
3636         to reduce handle leak problems.
3637
3638 1998-08-09  Jonathan Harris  <jhar@tardis.ed.ac.uk>
3639
3640         * menubar-msw.c (displayable_menu_item): take account of menu
3641           depth when deciding whether to try to display accelerators.
3642
3643 1998-08-04  Andy Piper  <andyp@parallax.co.uk>
3644
3645         * event-msw.c: use MsgWaitForMultipleObjects if there are no
3646         subprocesses.
3647
3648         * glyphs-msw.c: fix a couple of potential handle leaks.
3649
3650 1998-08-04  P. E. Jareth Hein  <jareth@camelot.co.jp>
3651
3652         * dgif_lib.c gif_io.c gifrlib.h: New files to put GIF
3653           *decoding ONLY* back into the core.
3654         * glyphs-eimage.c: Change referenced header file for GIF
3655           reading to point to the incore version.
3656
3657 1998-07-20  Martin Buchholz  <martin@xemacs.org>
3658
3659         * casefiddle.c (casify_object):
3660         Change algorithm from O(N**2) to O(N).
3661         Code cleanup.
3662         Doc string cleanup.
3663
3664 1998-07-22  Greg Klanderman  <greg@alphatech.com>
3665
3666         * dired.c (file_name_completion_unwind): don't leak the cons.
3667
3668 1998-07-20  Greg Klanderman  <greg@alphatech.com>
3669
3670         * dired.c (Fuser_name_completion): new function.
3671         (Fuser_name_all_completions): new function.
3672         (user_name_completion): new function.
3673         (syms_of_dired): 2 new DEFSUBRs.
3674         (vars_of_dired): initialize user name cache vars.
3675
3676 1998-07-29  P. E. Jareth Hein  <jareth@camelot.co.jp>
3677
3678         * glyphs-eimage.c (png_instantiate): Add proper handling for background
3679         colors taken from the default face.  Also correct a thinko in
3680         transparency (not alpha) handling.
3681
3682 1998-07-23  Martin Buchholz  <martin@xemacs.org>
3683
3684         * s/decosf4-0.h:  Use a perfectly ordinary link.  Nuke BSD crap.
3685         * unexalpha.c: ANSI C-ize.  Clean compiler warnings.
3686         * lread.c (Fload_internal):  Be very careful with printfs of
3687         size_t's
3688         * gui-x.c (menu_name_to_accelerator): tolower wants an `int'
3689         argument.
3690
3691 1998-07-27  Gunnar Evermann  <Gunnar.Evermann@nats.informatik.uni-hamburg.de>
3692
3693         * callint.c (Fcall_interactively): GCPRO prompt string before
3694         passing it to Fread_key_sequence
3695
3696 1998-07-27  SL Baur  <steve@altair.xemacs.org>
3697
3698         * keymap.c (vars_of_keymap): Initialize Vkey_translation_map and
3699         Vvertical_divider_map.
3700
3701         * mule-canna.c (vars_of_mule_canna): Initialize every symbol to
3702         Qnil or 0, none were initialized prior to this change.
3703
3704         Rename misnamed `V' prefixed integer variables:
3705         Vcanna_empty_info, Vcanna_through_info, Vcanna_underline,
3706         Vcanna_inhibit_hankakukana, Vcanna_henkan_length, Vcanna_henkan_revPos,
3707         Vcanna_henkan_revLen, Vcanna_ichiran_length, Vcanna_ichiran_revPos,
3708         Vcanna_ichiran_revLen.
3709
3710         Rename misnamed `V' prefixed integer variables and initialize
3711         properly in the vars_of routine.
3712         Vcanna_mode_AlphaMode, Vcanna_mode_EmptyMode, Vcanna_mode_KigoMode,
3713         Vcanna_mode_YomiMode, Vcanna_mode_JishuMode, Vcanna_mode_TankouhoMode,
3714         Vcanna_mode_IchiranMode, Vcanna_mode_YesNoMode, Vcanna_mode_OnOffMode,
3715         Vcanna_mode_AdjustBunsetsuMode, Vcanna_mode_ChikujiYomiMode,
3716         Vcanna_mode_ChikujiTanMode, Vcanna_mode_HenkanMode,
3717         Vcanna_mode_HenkanNyuryokuMode, Vcanna_mode_ZenHiraHenkanMode,
3718         Vcanna_mode_HanHiraHenkanMode, Vcanna_mode_ZenKataHenkanMode,
3719         Vcanna_mode_HanKataHenkanMode, Vcanna_mode_HanKataHenkanMode,
3720         Vcanna_mode_ZenAlphaHenkanMode, Vcanna_mode_HanAlphaHenkanMode,
3721         Vcanna_mode_ZenHiraKakuteiMode, Vcanna_mode_HanHiraKakuteiMode,
3722         Vcanna_mode_ZenKataKakuteiMode, Vcanna_mode_HanKataKakuteiMode,
3723         Vcanna_mode_ZenAlphaKakuteiMode, Vcanna_mode_HanAlphaKakuteiMode,
3724         Vcanna_mode_HexMode, Vcanna_mode_BushuMode, Vcanna_mode_ExtendMode,
3725         Vcanna_mode_RussianMode, Vcanna_mode_GreekMode, Vcanna_mode_LineMode,
3726         Vcanna_mode_ChangingServerMode, Vcanna_mode_HenkanMethodMode,
3727         Vcanna_mode_DeleteDicMode, Vcanna_mode_TourokuMode,
3728         Vcanna_mode_TourokuEmptyMode, Vcanna_mode_TourokuHinshiMode,
3729         Vcanna_mode_TourokuDicMode, Vcanna_mode_QuotedInsertMode,
3730         Vcanna_mode_BubunMuhenkanMode, Vcanna_mode_MountDicMode,
3731         Vcanna_fn_SelfInsert, Vcanna_fn_FunctionalInsert,
3732         Vcanna_fn_QuotedInsert, Vcanna_fn_JapaneseMode, Vcanna_fn_AlphaMode,
3733         Vcanna_fn_HenkanNyuryokuMode, Vcanna_fn_Forward, Vcanna_fn_Backward,
3734         Vcanna_fn_Next, Vcanna_fn_Prev, Vcanna_fn_BeginningOfLine,
3735         Vcanna_fn_EndOfLine, Vcanna_fn_DeleteNext, Vcanna_fn_DeletePrevious,
3736         Vcanna_fn_KillToEndOfLine, Vcanna_fn_Henkan, Vcanna_fn_Kakutei,
3737         Vcanna_fn_Extend, Vcanna_fn_Shrink, Vcanna_fn_AdjustBunsetsu,
3738         Vcanna_fn_Quit, Vcanna_fn_ConvertAsHex, Vcanna_fn_ConvertAsBushu,
3739         Vcanna_fn_KouhoIchiran, Vcanna_fn_BubunMuhenkan, Vcanna_fn_Zenkaku,
3740         Vcanna_fn_Hankaku, Vcanna_fn_ExtendMode, Vcanna_fn_ToUpper,
3741         Vcanna_fn_Capitalize, Vcanna_fn_ToLower, Vcanna_fn_Hiragana,
3742         Vcanna_fn_Katakana, Vcanna_fn_Romaji, Vcanna_fn_BaseHiragana,
3743         Vcanna_fn_BaseKatakana, Vcanna_fn_BaseEisu, Vcanna_fn_BaseZenkaku,
3744         Vcanna_fn_BaseHankaku, Vcanna_fn_BaseKana, Vcanna_fn_BaseKakutei,
3745         Vcanna_fn_BaseHenkan, Vcanna_fn_BaseHiraKataToggle,
3746         Vcanna_fn_BaseZenHanToggle, Vcanna_fn_BaseKanaEisuToggle,
3747         Vcanna_fn_BaseKakuteiHenkanToggle, Vcanna_fn_BaseRotateForward,
3748         Vcanna_fn_BaseRotateBackward, Vcanna_fn_Touroku, Vcanna_fn_HexMode,
3749         Vcanna_fn_BushuMode, Vcanna_fn_KigouMode, Vcanna_fn_Mark,
3750         Vcanna_fn_TemporalMode, Vcanna_key_Nfer, Vcanna_key_Xfer,
3751         Vcanna_key_Up, Vcanna_key_Left, Vcanna_key_Right, Vcanna_key_Down,
3752         Vcanna_key_Insert, Vcanna_key_Rollup, Vcanna_key_Rolldown,
3753         Vcanna_key_Home, Vcanna_key_Help, Vcanna_key_KP_Key,
3754         Vcanna_key_Shift_Nfer, Vcanna_key_Shift_Xfer, Vcanna_key_Shift_Up,
3755         Vcanna_key_Shift_Left, Vcanna_key_Shift_Right, Vcanna_key_Shift_Down,
3756         Vcanna_key_Cntrl_Nfer, Vcanna_key_Cntrl_Xfer, Vcanna_key_Cntrl_Up,
3757         Vcanna_key_Cntrl_Left, Vcanna_key_Cntrl_Right, Vcanna_key_Cntrl_Down
3758
3759 1998-07-16  Jan Vroonhof  <vroonhof@math.ethz.ch>
3760
3761         * event-Xt.c (x_to_emacs_keysym): Return nil for modifier keysyms.
3762         (x_event_to_emacs_event): Let x_to_emacs_keysym check for modifier
3763         keys thus no longer considering all keysyms on a key.
3764
3765 1998-07-19  SL Baur  <steve@altair.xemacs.org>
3766
3767         * XEmacs 21.2-beta1 is released.
3768
3769 1998-07-12  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
3770
3771         * eldap.c (Fldap_search_internal): When converting the list of
3772         attributes to search Copy the final 0 from Lisp strings to C
3773         strings.
3774         Check base, not Vldap_default_base as a a string
3775
3776 1998-07-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
3777
3778         * nt.c: Remove Vstdio_str; already defined in console-stream.c.
3779
3780         * unexnt.c: Unconditionally define bss_start and bss_size, and
3781           ensure that they don't go in the .bss section.
3782
3783 1998-07-17  Olivier Galibert  <galibert@pobox.com>
3784
3785         * glyphs-x.c (convert_EImage_to_XImage):  Fix previous patch (conv
3786         byte order is dependant  of  the local  byte order).
3787         From Takeshi Hagiwara <hagiwara@ie.niigata-u.ac.jp>
3788
3789 1998-07-18  SL Baur  <steve@altair.xemacs.org>
3790
3791         * glyphs-msw.c (mswindows_resource_normalize): Qresource ->
3792         Qmswindows_resource.
3793         From Jonathan Harris <jhar@tardis.ed.ac.uk>
3794
3795 1998-07-12  SL Baur  <steve@altair.xemacs.org>
3796
3797         * general.c (syms_of_general): Add defsymbol for Qresource.
3798
3799         * glyphs-msw.c (vars_of_glyphs_mswindows): Rename Qresource to
3800         Qmswindows_resource.
3801         (TopLevel): Rename 'resource image format to 'mswindows_resource.
3802         (mswindows_resource_validate): Rename.
3803         (mswindows_resource_normalize): Rename.
3804         (mswindows_resource_possible_dest_types): Rename.
3805         (mswindows_resource_instantiate): Rename.
3806         (image_instantiator_format_create_glyphs_mswindows): Replace
3807         `resource' with `mswindows.resource'.
3808
3809         * XEmacs 21.0-pre5 is released.
3810
3811 1998-07-10  SL Baur  <steve@altair.xemacs.org>
3812
3813         * mule-wnnfns.c (Fwnn_open): Correctly trap on misdefined Wnn
3814         server type in environment.
3815         Use alloca-ed strings instead of tiny fixed size ones.
3816
3817 1998-07-09  SL Baur  <steve@altair.xemacs.org>
3818
3819         * XEmacs 21.0-pre4 is released.
3820
3821 1998-07-01  James N. Potts  <jnpotts@plutonium.net>
3822
3823         * fileio.c: (expand_file_name): under win32: Don't treat names
3824         as UNC names if a drive letter has been specified.  If a drive
3825         has been specified, strip out extra directory-seperators that
3826         reportedly cause problems under Win95.
3827
3828 1998-07-09  Jonathan Harris  <jhar@tardis.ed.ac.uk>
3829
3830         * windowsnt.h: Define DUMP_SEPARATE_SECTION when building with
3831           MSVC >= 5.0. Put emacs init and zero-init data in a special
3832           section of the executable when this is defined.
3833
3834         * unexnt.c, ntheap.h:
3835           Removed unused find_section() and get_section_size().
3836
3837         * unexnt.c:
3838           Fix up the executable's checksum after dumping otherwise the
3839           profiler complains.
3840           When DUMP_SEPARATE_SECTION is defined, don't need to dump
3841           zero-init data separately from init data. Dump emacs data
3842           into a special section of the executable.
3843           When DUMP_SEPARATE_SECTION not defined, dump .bss up to
3844           my_ebss instead of up to the end of bss.
3845
3846 1998-07-09  Jonathan Harris  <jhar@tardis.ed.ac.uk>
3847
3848         * filelock.c: Removed Vconfigure_lock_directory - already
3849           defined in emacs.c.
3850
3851         * frame-msw.c: Removed Qinitially_unmapped and Qpopup - already
3852           defined in frame.c and general.c respectively.
3853
3854         * glyphs-msw.c: Removed Qresource - already defined in
3855           general.c.
3856
3857 1998-07-05  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
3858
3859         * eldap.c (Fldap_search_internal): Docstring fixes
3860
3861 1998-07-04  Jonathan Harris  <jhar@tardis.ed.ac.uk>
3862
3863         * nt.c (init_environment): Removed unused PRELOAD_WINSOCK,
3864           EMACSDOC and TERM variables. Added EMACSDEBUGPATHS,
3865           EMACSPACKAGEPATH and INFOPATH variables.
3866           Removed unused get_emacs_configuration function.
3867
3868         * s/windowsnt.h: Don't define EMACS_CONFIGURATION here because
3869           it is now defined at build-time by the makefile.
3870
3871 1998-07-01  James N. Potts  <jnpotts@plutonium.net>
3872
3873         * fileio.c: (expand_file_name): under win32: Don't treat names as
3874         UNC names if a drive letter has been specified.  If a drive has
3875         been specified, strip out extra directory-seperators that
3876         reportedly cause problems under Win95.
3877
3878 1998-07-05  Andy Piper  <andyp@parallax.co.uk>
3879
3880         * faces.c (complex_vars_of_faces): for the gui-element face don't
3881         fallback to the default face, instead provide reasonable default
3882         fallbacks that were previously hardcoded elsewhere.
3883
3884 1998-07-06  Olivier Galibert  <galibert@pobox.com>
3885
3886         * glyphs-x.c (convert_EImage_to_XImage): Fix pixel writing problem
3887         when the X server endianness is different than the client's one.
3888
3889 1998-06-29  Kyle Jones  <kyle_jones@wonderworks.com>
3890
3891         * eval.c (run_hook_with_args_in_buffer): Check
3892           default (non-buffer-local) value of hook for
3893           nil before treating it as a function.  Don't initialize
3894           the `globals' variable twice.
3895
3896 1998-06-24  Jonathan Harris  <jhar@tardis.ed.ac.uk>
3897
3898         * fileio.c: Don't do directory seperator canonicalisation in
3899           substitute-in-file-name because we don't know that the
3900           filename refers to a local file.
3901
3902 1998-06-24  Adrian Aichner  <aichner@ecf.teradyne.com>
3903
3904         * process-nt.c (nt_create_process): Try appending the standard
3905           executable file extensions to the filename if none supplied.
3906
3907 1998-06-29  SL Baur  <steve@altair.xemacs.org>
3908
3909         * fileio.c (Fsubstitute_in_file_name): Enable double slash notation
3910         for cygwin32.
3911         From Keisuke Mori <ksk@ntts.com>
3912
3913 1998-06-24  Andy Piper  <andyp@parallax.co.uk>
3914
3915         * toolbar-msw.c (mswindows_output_toolbar): only enable masked
3916         images if we have masks. This handles the xbm case (have masks)
3917         and avoids overuse of resources in the xpm case (generally no masks).
3918         Don't output small toolbars.
3919
3920 1998-06-29  Kyle Jones  <kyle_jones@wonderworks.com>
3921
3922         * eval.c (run_hook_with_args_in_buffer): Don't treat
3923           the default value of a buffer local hook as a list of
3924           hooks unless it is both a cons and the car of that cons
3925           is not Qlambda.
3926
3927 1998-06-29  SL Baur  <steve@altair.xemacs.org>
3928
3929         * extents.c: Email address for Ben Wing is ben@xemacs.org.
3930         * process-unix.c: Ditto.
3931         * mule-coding.h: Ditto.
3932         * mule-coding.c: Ditto.
3933         * mule-charset.c: Ditto.
3934         * mule-charset.h: Ditto.
3935         * file-coding.c: Ditto.
3936         * file-coding.h: Ditto.
3937
3938 1998-06-22  Jonathan Harris  <jhar@tardis.ed.ac.uk>
3939
3940         * event-msw.c: Guard against recursion when freeing
3941           FRAME_MSWINDOWS_TARGET_RECT struture in WM_SIZE processing.
3942
3943         * frame-msw.c: Don't set WS_VISIBLE attribute on first frame.
3944           Call ShowWindow twice in init_frame_3 to get round runemacs
3945           weirdness.
3946
3947 1998-06-27  Hrvoje Niksic  <hniksic@srce.hr>
3948
3949         * scrollbar.c (vertical_scrollbar_changed_in_window): Ditto.
3950
3951         * winslots.h: Rename.
3952
3953         * window.c (specifier_vars_of_window): Renamed
3954         vertical-divider-draggable-p to vertical-divider-always-visible-p,
3955         as suggested by Ben Wing.
3956         (specifier_vars_of_window): Fix docstrings.
3957
3958 1998-06-22  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
3959
3960         * unexaix.c: Line number information works correctly again.
3961
3962 1998-06-22  Olivier Galibert  <galibert@pobox.com>
3963
3964         * emacs.c (__sti__iflPNGFile_c___): Added. See comment. Cry.
3965
3966 1998-06-21  Martin Buchholz  <martin@xemacs.org>
3967
3968         * editfns.c (get_home_directory): ANSIfy.
3969         XEmacs is compilable under C *and* C++.
3970         It's XEmacs, not Xemacs!
3971
3972 1998-06-19  Jonathan Harris  <jhar@tardis.ed.ac.uk>
3973
3974         * console-msw.h: added a list of fonts to device data.
3975
3976         * device-msw.c: enumerate list of available fonts in
3977           mswindows_init_device. Free list in mswindows_delete_device.
3978
3979         * objects-msw.c: Added helper function match_font used by
3980           mswindows_initialize_font_instance and mswindows_list_fonts.
3981           Allow a charset to be specified in a font string, even if
3982           previous fields havn't been specified.
3983
3984 1998-06-23  Greg Klanderman  <greg@alphatech.com>
3985
3986         * indent.c (column_at_point): column cache bugfix.
3987         Set last_known_column_point to the buffer position for
3988         which the column was requested, not buffer's point.
3989
3990         * redisplay.c (decode_mode_spec): for current-column, show
3991         window's point's column, not buffer's point's column.
3992
3993 1998-06-23  Andy Piper  <andyp@parallax.co.uk>
3994
3995         * menubar-msw.c (mswindows_handle_wm_command): use
3996         enqueue_misc_user event rather than
3997         mswindows_enqueue_msic_user_event to fix customize problems. Add some
3998         checks that X does.
3999
4000         * console-msw.h: declare mswindows_enqueue_magic_event.
4001
4002         * event-msw.c (mswindows_enqueue_magic_event): make global.
4003
4004 1998-06-24  Hrvoje Niksic  <hniksic@srce.hr>
4005
4006         * line-number.c (LINE_NUMBER_FAR): Reverted to 16384.
4007         (buffer_line_number): Use EMACS_INT_MAX instead of random LOTS.
4008         (add_position_to_cache): Use EMACS_INT instead of int.
4009
4010 1998-06-21  Olivier Galibert  <galibert@pobox.com>
4011
4012         * lisp-disunion.h (XMARKBIT): Have XMARKBIT return something
4013         suitable for an int used as a boolean (btw, C sucks.).
4014
4015 1998-06-18  Andy Piper  <andyp@parallax.co.uk>
4016
4017         * object-msw.c: remove warnings.
4018
4019         * device-msw.c: #define wrongly named cygwin structure elements.
4020
4021         * s/cygwin32.h: define DEMI_BOLD
4022
4023 1998-06-19  Jonathan Harris  <jhar@tardis.ed.ac.uk>
4024
4025         * redisplay-msw.c: new function mswindows_apply_face_effects.
4026           This is called by output_string and output_cursor to display
4027           underline and strikeout on faces.
4028
4029 1998-06-19  Jonathan Harris  <jhar@tardis.ed.ac.uk>
4030
4031         * console-msw.h: added a list of fonts to device data.
4032
4033         * device-msw.c: enumerate list of available fonts in
4034           mswindows_init_device. Free list in mswindows_delete_device.
4035
4036         * objects-msw.c: Added helper function match_font used by
4037           mswindows_initialize_font_instance and mswindows_list_fonts.
4038           Allow a charset to be specified in a font string, even if
4039           previous fields havn't been specified.
4040
4041 1998-06-15  Jonathan Harris  <jhar@tardis.ed.ac.uk>
4042
4043         * objects-msw.c:
4044           Removed compilation warnings from mswindows_string_to_color.
4045           mswindows_list_fonts returns a more general bogus font.
4046           New lisp-visible function mswindows-color-list.
4047
4048 1998-06-19  David Bush <david.bush@adn.alcatel.com>
4049
4050         * editfns.c (Fuser_login_name): Modify to user new function
4051         user_login_name.
4052         (user_login_name): C only function to avoid Lisp object overhead
4053         Returns "unknown" instead of nil in Cygwin environment
4054
4055         * fileio.c (Fexpand_file_name): Treat "~" and "~user" as
4056         equivalent for current user in Cygwin environment. Use new
4057         function user_login_name to get username.
4058
4059         * lisp.h: Declare user_login_name
4060
4061 1998-06-18  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
4062
4063         * unexaix.c (make_hdr): Fixed bias computations so debugging info
4064         works again.
4065         Some other insignificant nitpicks.
4066
4067 1998-06-18  Andy Piper  <andyp@parallax.co.uk>
4068
4069         * toolbar-msw.c (mswindows_output_toolbar): specify ILC_MASK when
4070         creating the image list and make sure he bk color is transparent.
4071
4072 1998-06-18  Jan Vroonhof  <vroonhof@math.ethz.ch>
4073
4074         * event-Xt.c (emacs_Xt_remove_timeout): Also remove timeout from
4075         completed_timeouts. The timer could have expired.
4076
4077 1998-06-17  Andy Piper  <andyp@parallax.co.uk>
4078
4079         * console-msw.h: move XEMACS_RECT_WH inside frame
4080         parameters. define macors to access it.
4081
4082         * frame-msw.c (mswindows_init_frame_1): use new target_rect
4083         parameter to intialise desired sizing. (mswindows_init_frame_2):
4084         enable and size the frame to something sensible when we get
4085         here. (mswindows_set_frame_properites): use new
4086         mswindows_size_frame_internal function and size frame if frame
4087         parameters not just if init is finished - WM_SIZE happens too
4088         early for some specs. (mswindows_size_frame_internal): new
4089         function abstracted from mswindows_set_frame_properties.
4090         (Vmswindows_use_system_frame_size_defaults):
4091         new variable controls whether to allow the system to pick frame
4092         size defaults, defaults to nil.
4093
4094         * event-msw.c: in WM_SIZE use mswindows_size_frame_internal rather
4095         than duplicated code.
4096
4097 1998-06-15  Colin Rafferty <colin@xemacs.org>
4098
4099         * Makefile.in.in: Made EXTW_LINK expand properly.
4100
4101 1998-06-12  Martin Buchholz  <martin@xemacs.org>
4102
4103         * redisplay.c (vars_of_redisplay): default value of
4104         column-number-start-at-one should be NIL!
4105
4106 1998-06-11  Martin Buchholz  <martin@xemacs.org>
4107
4108         * casefiddle.c:
4109         (upcase-initials "fooBar") ==> "FooBar" instead of "Foobar"
4110
4111 1998-06-05  Hrvoje Niksic  <hniksic@srce.hr>
4112
4113         * eldap.c (Fldap_search_internal): Use build_ext_string instead of
4114         build_string to avoid crashes under Mule.
4115
4116 1998-06-13  Andy Piper  <andyp@parallax.co.uk>
4117
4118         * ntplay.c (play_sound_data_1): don't delete the sound data until
4119         the next sound is played and the previous one finished.
4120
4121 1998-06-10  Samuel Mikes  <smikes@alumni.hmc.edu>
4122
4123         * fileio.c (directory-sep-char): Escape backslashes.
4124
4125 1998-06-10  Hrvoje Niksic  <hniksic@srce.hr>
4126
4127         * event-stream.c: Fix docstring reference.
4128
4129 1998-06-12  Hrvoje Niksic  <hniksic@srce.hr>
4130
4131         * alloc.c (make_float): Remove useless initialization of `next'
4132         field.
4133         (make_pure_float): Ditto.
4134
4135         * lisp.h (struct Lisp_Float): Rename `next' to `__unused__next'.
4136
4137 1998-06-08  Kirill M. Katsnelson  <kkm@kis.ru>
4138
4139         * fileio.c (Fmake_directory_internal): Remove conditionals
4140         on WINDOWSNT when calling mkdir.
4141
4142         * ntproc.c: Deleted the following unused functions:
4143         register_child, reap_subprocess, sys_wait.
4144
4145         * nt.c (sys_rename): Ifzeroed this implementation.
4146         Deleted the following unused functions:
4147         sys_access, sys_chdir, sys_chmod, sys_creat, sys_link, sys_mkdir,
4148         sys_mktemp, sys_rmdir, sys_unlink, sys_close, sys_dup, sys_dup2,
4149         sys_read, sys_write.
4150         Merger sys_fopen and sys_open with sysdep.c implementation.
4151
4152         * sysdep.c: Removed MS-DOS code.
4153         (sys_rename): Deal with Microsoft rename weirdness.
4154         (sys_open): Implemented for Windows.
4155         (sys_fopen): Ditto.
4156         (sys_mkdir): Ditto.
4157
4158 1998-06-08  Kirill M. Katsnelson  <kkm@kis.ru>
4159
4160         * buffer.c (complex_vars_of_buffer): Removed %t description from
4161         the docstring.
4162
4163 1998-06-04  Rick Rankin  <Rick_Rankin-P15254@email.mot.com>
4164
4165         * scrollbar-msw.c: initialize the cbSize element of the
4166         SCROLLINFO struct before calling SetScrollInfo. WinNT seems
4167         to ignore the value of cbSize, but Win95 (and I presume Win98)
4168         appear to want it set to sizeof(SCROLLINFO).
4169
4170 1998-06-04  Kirill M. Katsnelson  <kkm@kis.ru>
4171
4172         * event-stream.c: Defined Qcancel_mode_internal.
4173         (syms_of_event_stream): defsymbol'ed it.
4174
4175         * events.h: Externed it.
4176
4177         * event-msw.c (mswindows_wnd_proc, WM_CANCELMODE): Added this handler.
4178
4179 1998-06-04  Oliver Graf <ograf@fga.de>
4180
4181         * frame-x.c (x_cde_destroy_callback): free the data
4182         (cde-start-drag-internal) corrected root position, 21.1 needs this
4183         hardcoded in Button events
4184         (offix-start-drag-internal) corrected root position
4185
4186 1998-06-03  Kirill M. Katsnelson  <kkm@kis.ru>
4187
4188         * process-nt.c (signal_cannot_launch): Use signal_simple_error()
4189         instead of error().
4190
4191 1998-06-03  Kirill M. Katsnelson  <kkm@kis.ru>
4192
4193         * dialog-msw.c (button_width): Removed `inline' from the function
4194         declaration.
4195
4196 1998-06-03  Rick Rankin  <Rick_Rankin-P15254@email.mot.com>
4197
4198         * frame-msw.c: add WS_VISIBLE flag to the first frame created.
4199         Note that adding this flag to subsequent frames causes problems.
4200
4201 1998-06-03  Gunnar Evermann  <Gunnar.Evermann@nats.informatik.uni-hamburg.de>
4202
4203         * glyphs-eimage.c (png_instantiate) move 'struct
4204         png_memory_storage tbr' out of nested block to avoid dangling
4205         reference
4206
4207 1998-06-02  Andy Piper  <andyp@parallax.co.uk>
4208
4209         * faces.h:
4210         * faces.c: rename 3d-object -> gui-element. add toolbar face which
4211         inherits from gui-element.
4212
4213         * glyphs-msw.c: use DIBitmaps for xbm bitmaps to be consistent
4214         with existing code, generate masks correctly.
4215
4216 1998-06-03  P. E. Jareth Hein  <jareth@camelot-soft.com>
4217
4218         * glyphs-eimage.c: Changed included header for gifs to use
4219         Gifreader instead of giflib.
4220
4221         * glyphs-x.c: removed the image-related functions that were
4222         moved into glyphs-eimage.
4223
4224 1998-06-02  David Bush  <david.bush@adnb.alcatel.com>
4225
4226         * glyphs.c (bitmap_to_lisp_data) Define XFree to be free
4227         if built without X Windows support.
4228
4229 1998-06-02  Hrvoje Niksic  <hniksic@srce.hr>
4230
4231         * fns.c (Fconcat): Synch docstring with new reality.
4232
4233 1998-06-03  SL Baur  <steve@altair.xemacs.org>
4234
4235         * frame.c: Remove reference to msdos.h (which is going away).
4236         Suggested by Hrvoje Niksic and Kirill Katsnelson.
4237
4238 1998-06-02  P. E. Jareth Hein  <jareth@camelot-soft.com>
4239
4240         * glyphs-eimage.c (jpeg_instantiate): Fix handling of
4241         grayscale images/
4242
4243
4244 1998-05-30  Kirill M. Katsnelson  <kkm@kis.ru>
4245
4246         * events.h: Fixed commentary about misc-user scrollbar events.
4247
4248         * scrollbar-x.c (x_update_vertical_scrollbar_callback): Use frame
4249         object as an event channel, instead of window object.
4250         (x_update_horizontal_scrollbar_callback): Ditto.
4251
4252 1998-05-29  Andy Piper  <andyp@parallax.co.uk>
4253
4254         * ntplay.c (play_sound_data_1) new function. convert alloca data
4255         to malloc if necessary.
4256         (play_sound_file): if the file is not in our path then convert to
4257         data and play.
4258
4259 1998-06-01  SL Baur  <steve@altair.xemacs.org>
4260
4261         * mule-mcpath.c (mc_chdir): Reverse parameters in call to memcpy.
4262         * msdos.c (Frecent_doskeys): Ditto.
4263
4264         * unexalpha.c (unexec): Reverse parameters in call to memcpy.
4265         Suggested by Reggie Perry <perry@zso.dec.com>
4266
4267         * buffer.h: Eliminate size in declaration.
4268
4269 1998-06-01  Olivier Galibert  <galibert@pobox.com>
4270
4271         * unexelfsgi.c (unexec): Cleanup n/nn and remove useless kludge.
4272
4273 1998-06-01  Kirill M. Katsnelson  <kkm@kis.ru>
4274
4275         * gui.c (gui_item_init): Changed the default value for config member
4276         from Qunbound to Qnil.
4277
4278 1998-06-01  Greg Klanderman  <greg@alphatech.com>
4279
4280         * indent.c (vmotion_pixels): Don't #define abs().
4281
4282 1998-05-30  Kirill M. Katsnelson  <kkm@kis.ru>
4283
4284         * s/windowsnt.h: Defined popen and pclose to be _popen and _pclose
4285         respectively.
4286
4287 1998-05-30  Andy Piper  <andyp@parallax.co.uk>
4288
4289         * glyphs.h: add xbm declarations.
4290
4291         * console.h: add xbm_instantiate_method device method.
4292
4293         * glyphs.c (check_valid_xbm_inline) (xbm_validate)
4294         (bitmap_to_lisp_data) (xbm_mask_file_munging) (xbm_normalize)
4295         (xbm_possible_dest_types): moved here from glyphs-x.c. use
4296         locate_pixmap_file device method and read_bitmap_data_from_file
4297         instead of XmuReadBitmapDataFromFile.
4298         (xbm_instatntiate): make a device method.
4299
4300         * glyphs-x.c: see glyphs.c changes. (read_bitmap_data_from_file)
4301         new function that just calls XmuReadBitmapDataFromFile.
4302         (x_xbm_instatntiate): device method from xbm_instantiate.
4303
4304         * glyphs-msw.c (read_bitmap_data) (NextInt)
4305         (read_bitmap_data_from_file): new functions copied from Xmu
4306         sources.
4307         (xbm_create_bitmap_from_data) from Ben <ben@666.com> convert
4308         inline data to an mswindows bitmap.
4309         (init_image_instance_from_xbm_inline) (xbm_instantiate_1)
4310         (mswindows_xbm_instantiate): mswindows-ized versions of the X
4311         functions.
4312
4313 1998-05-30  Kirill M. Katsnelson  <kkm@kis.ru>
4314
4315         * window.c (specifier_vars_of_window): Renamed `has_modeline-p' to
4316         `modeline-visible-p'.
4317         Declared specifier lisp variables at the beginning oh the file
4318         as static.
4319
4320         * procimpl.h (struct process_methods): Changed semantics of
4321         create_process method so it accepts lisp strings instead of
4322         char pointers.
4323
4324         * process.c (Fstart_process_internal): Moved building of
4325         unix style argv from here to process-unix.c, ...
4326
4327         * process-unix.c (unix_create_process): ... right here.
4328
4329         * process-nt.c (nt_create_process): Changed this function to
4330         support new semantics, so avoided a GC problem.
4331
4332         * events.c (Fmake_event): Document misc-user events properties.
4333         (Fmake_event): Do not allow arbitrary objects for channel property
4334         of misc-user events.
4335         (Fmake_event): Change misc-user event validation: it is function
4336         which is required, not button.
4337
4338         * event-msw.c (mswindows_user_event_p): Recognize misc user events as
4339         user events.
4340         (mswindows_enqueue_misc_user_event): Added function.
4341         (mswindows_bump_queue): Removed function.
4342         (mswindows_enqueue_magic_event): Support NULL HWND parameter.
4343         (mswindows_wnd_proc, WM_CLOSE): Use mswindows_enqueue_misc_user_event().
4344         (mswindows_wnd_proc, WM_EXITSIZEMOVE): Ditto.
4345         (emacs_mswindows_handle_magic_event): Handle XM_BUMPQUEUE, by doing
4346         really nothing, which is my personal favorite thing.
4347
4348         * console-msw.h: Removed prototype for mswindows_bump_queue().
4349         Added prototype for mswindows_enqueue_misc_user_event().
4350
4351         * menubar-msw.c (mswindows_handle_wm_command): Use
4352         mswindows_enqueue_misc_user_event().
4353
4354         * toolbar-msw.c (mswindows_handle_toolbar_wm_command): Ditto.
4355
4356         * dialog-msw.c (dialog_proc): Ditto.
4357
4358         * scrollbar-msw.c (mswindows_handle_scrollbar_event): Ditto.
4359          (mswindows_handle_scrollbar_event): Use frame, not window, for misc
4360         user events channel.
4361
4362 1998-05-29  Greg Klanderman  <greg@alphatech.com>
4363
4364         * window.c (Fwindow_displayed_text_pixel_height): was relying on
4365         incorrect semantics of vmotion_pixels which has been fixed.  don't
4366         use it anymore as it can't easily be used.
4367
4368         * indent.c (vmotion_pixels): fix off by one bug moving up.  also
4369         the motion was reported incorrectly if you tried to go past end of
4370         buffer.
4371
4372 1998-05-30  Kirill M. Katsnelson  <kkm@kis.ru>
4373
4374         * toolbar.h: Removed misleading commentary, as Martin suggested.
4375
4376 1998-05-30  Kirill M. Katsnelson  <kkm@kis.ru>
4377
4378         * lisp.h: Extern Qactivate_menubar_hook.
4379
4380         * menubar-msw.c (unsafe_handle_wm_initmenu_1): Pass correct value to
4381         run_hook ().
4382
4383 1998-05-29  Andy Piper  <andyp@parallax.co.uk>
4384
4385         * glyphs-msw.c: use BPLINE macro.
4386
4387         * select-msw.c (mswindows-selection-exists-p)
4388         (mswindows-delete-selection): doc string fixes.
4389
4390         * toolbar-msw.c (mswindows_output_toolbar): make disabled buttons
4391         unpressable. warning elimination.
4392
4393 1998-05-28  Martin Buchholz  <martin@xemacs.org>
4394
4395         * alloc.c (dbg_constants):
4396         * dbxrc:
4397         * gdbinit:
4398         Remove toolbar_data debugging code, since that lrecord has
4399         also been removed.
4400
4401 Wed May 27, 1998  Darryl Okahata  <darrylo@sr.hp.com>
4402
4403         * alloc.c: zap cached value of (user-home-directory), so that
4404           it's not undumped.
4405
4406         * buffer.c: From init_buffer(), separated out code that
4407           determined the initial directory for the *scratch* buffer, and
4408           put them into a function called "init_initial_directory()".
4409           The initial directory is now available as a global "char *"
4410           called initial_directory.
4411
4412         * buffer.h: Added extern entries for initial_directory[] and
4413           init_initial_directory().
4414
4415         * editfns.c: added new elisp function "user-home-directory",
4416         which basically returns getenv("HOME"), but attempts to use
4417         other values if $HOME isn't set.This may have to be tweaked in
4418         the future as, under Unix, "/" is used if $HOME isn't set (this
4419         probably should be set to the current directory).  To support
4420         this, a new C function, "get_home_directory()", now exists,
4421         which returns the "home directory", as a "char *" string.
4422
4423         * emacs.c: Rearrange NT initialization order so that
4424         environment/registry variables will be properly entered into
4425         Vprocess_enviroment.
4426
4427         * fileio.c: replaced egetenv("HOME") with calls to the new
4428           get_home_directory().
4429
4430         * lisp.h: Added function prototypes for uncache_home_directory()
4431           and get_home_directory(), along with lisp prototypes for
4432           Fuser_home_directory() and friends.
4433
4434         * nt.c: replaced getenv("HOME") with calls to the new
4435           get_home_directory().
4436
4437         * sysfile.h: for WINDOWSNT, #include <direct.h>, to suppress
4438           warnings about getcwd(), etc. not having prototypes.
4439
4440 1998-05-28  Kirill M. Katsnelson  <kkm@kis.ru>
4441
4442         * process-nt.c (send_signal): Emulate SIGHUP.
4443         (validate_signal_number): Ditto.
4444
4445         * event-msw.c (mswindows_wnd_proc, WM_KEYDOWN): Unconditionally
4446         remove MOD_SHIFT from ASCII characters.
4447         (mswindows_wnd_proc, WM_KEYDOWN): Do not activate the menubar when
4448         F10 is pressed.
4449
4450 1998-05-24  Oliver Graf <ograf@fga.de>
4451
4452         * frame-x.c (cde-start-drag-internal): added filename and multi-
4453         data transfers
4454         (x_cde_convert_callback) dito
4455
4456 1998-05-26  Oliver Graf <ograf@fga.de>
4457
4458         * frame-x.c: include event-mod.h also with CDE
4459         (x_cde_convert_callback) made the thing working
4460         (cde-start-drag-internal) also debugging
4461
4462 1998-05-25  Hans Guenter Weigand  <hgweigand@wiesbaden.netsurf.de>
4463
4464         * m/sparc.h:
4465         * getloadavg.c:
4466         * malloc.c:
4467         * unexec.c:
4468         * mem-limits.h:
4469           - add __OpenBSD__ where __NetBSD__ was found.
4470           - TODO: replace platform-specific conditional compilation by
4471             feature tests in configure.in.
4472
4473 1998-05-15  Greg Klanderman  <greg@alphatech.com>
4474
4475         * window.c (Fwindow_displayed_text_pixel_height): New function.
4476         (syms_of_window): DEFSUBR it.
4477
4478         * indent.c (Fvertical_motion_pixels): New function - request
4479         movement in pixels.
4480         (vmotion_pixels): helper.
4481         (syms_of_indent): DEFSUBR.
4482         * lisp.h: declaration for vmotion_pixels().
4483
4484         * indent.c (Fvertical_motion): Add optional third argument PIXELS,
4485         to request returning motion in pixels.
4486         (Fvertical_motion_pixels): Remove, functionality merged into
4487         Fvertical_motion.
4488         * window.c (window_scroll): call Fvertical_motion with 3 arguments.
4489         (Fmove_to_window_line): ditto.
4490         * lisp.h: Change declaration for Fvertical_motion.
4491
4492         * window.c: rename window-text-pixel-{height,width,edges} to
4493         window-text-area-pixel-*.
4494
4495 1998-05-26  Gunnar Evermann  <Gunnar.Evermann@nats.informatik.uni-hamburg.de>
4496
4497         * tooltalk.c (vars_of_tooltalk) added staticpro for
4498         Tooltalk_Message_plist_str and Tooltalk_Pattern_plist_str
4499
4500 1998-05-27  Andy Piper  <andyp@parallax.co.uk>
4501
4502         * faces.c: create a new 3d_object_face, make modeline and
4503         vertical_divider faces fallback to this rather than the default.
4504
4505 1998-05-21  Andy Piper  <andyp@parallax.co.uk>
4506
4507         * s/cygwin32.h: define charsets for cygwin.
4508
4509 1998-05-25  Andy Piper  <andyp@parallax.co.uk>
4510
4511         * toolbar-msw.c (mswindows_output_toolbar): fix up button sizes
4512         and coordinates. resize bitmaps if we have already settled on a
4513         different size.
4514
4515         * glyphs-msw.c (xpm_to_eimage): add ';' for mswindows compiler.
4516
4517 1998-05-25  Hrvoje Niksic  <hniksic@srce.hr>
4518
4519         * toolbar-msw.c (mswindows_handle_toolbar_wm_command): Ditto.
4520
4521         * menubar-msw.c (mswindows_handle_wm_command): Ditto.
4522
4523         * gui.h: Ditto.
4524
4525         * gui-x.c (popup_selection_callback): Ditto.
4526
4527         * dialog-msw.c (dialog_proc): get_callback -> get_gui_callback.
4528
4529         * gui.c (get_callback): Renamed to get_gui_callback.
4530
4531 1998-05-17  Martin Buchholz  <martin@xemacs.org>
4532
4533         * glyphs.h: order rearrangement.
4534
4535         * device-tty.c (tty_asynch_device_change): Warning suppression.
4536         * device-x.c (x_device_system_metrics): Warning suppression.
4537         Make Doc strings consistent with coding standards.
4538
4539 1998-05-24  Martin Buchholz  <martin@xemacs.org>
4540
4541         * general.c: multiple definition of `Qicon'.  general.c seems
4542           like a good home for Qicon.
4543
4544 1998-05-20  Kirill M. Katsnelson  <kkm@kis.ru>
4545
4546         * This patch is to fix compilation warnings under Windows.
4547
4548         * s/windowsnt.h: Encapsulate getpid with sys_getpid.
4549         Added prototypes for FSF inherited functions, with which XEmacs is
4550         sprinkled thoroughly.
4551         Removed some #if 0 code. Bracketed some more definitions, probably
4552         related to Visual C versions prior to 4 (we do not support them).
4553
4554         * sysfloat.h (logb): Finally, get logb() prototyped.
4555
4556         * sysfile.h: Added Windows specific includes.
4557         Removed old Windows specific code bracketed with #if 0.
4558
4559         * sysdep.h: Added prototype for xrealpath().
4560
4561         * sysdep.c (sys_getpid): Added function, to support '95 negative pids.
4562
4563         * symsinit.h: Added prototypes for syms_of_dired_mswindows,
4564         vars_of_dired_mswindows and init_ntproc (Grrr).
4565
4566         * realpath.c: Added Windows specific include files.
4567         (xrealpath): Conditionalized declaration of some auto variables on
4568         S_IFLNK, to avoid warnings.
4569
4570         * ntproc.c: Disabled some compiler warnings. This file is going to
4571         die, so I have not cleaned it up much.
4572         (set_process_dir): Const parameter.
4573         (Fwin32_short_file_name): Down CHECK_* macros to one argument.
4574         (Fwin32_long_file_name): Ditto.
4575         (Fwin32_set_process_priority): Ditto. Why didn't I remove these
4576         three functions?
4577
4578         * nt.h: Added prototypes for set_process_dir and convert_time.
4579
4580         * nt.c: More include files.
4581         (getpwnam): Consted char* argument.
4582         (get_emacs_configuration): Const return value.
4583         (opendir): Const argument.
4584         (stat): Casted converstion long->short.
4585         (stat): Removed ad hoc and questionable support for non-MSC compile.
4586         (sys_pipe): Removed unused auto variable.
4587         (_sys_read_ahead): Removed calls to DebPrint.
4588         (sys_read): Ditto, in 2 places.
4589         (term_ntproc): Added unused int parameter to signal handler, to
4590         avoid a warning when compiling a call to signal().
4591         (msw_sigset): Properly return old signandler or NULL instead of void.
4592
4593         * floatfns.c (Flogb): Casted arguments to unary minus to signed.
4594
4595         * gmalloc.c (morecore): Ditto.
4596         (_free_internal): Ditto.
4597
4598         * lread.c (parse_integer): Ditto.
4599
4600         * dired-msw.c: Added several include files.
4601
4602         * cmdloop.c (Fcommand_loop_1): Added Microsoft C to the Big List
4603         of Compilers to Shut Up.
4604
4605         * callproc.c: Added #includes to suppress warnings under Windows.
4606         (init_callproc): Removed #if0'ed code and unused variables.
4607
4608 1998-05-25  Andy Piper  <andyp@parallax.co.uk>
4609
4610         * device-msw.c (mswindows_device_system_metrics): do planes in a
4611         way consistent with X.
4612
4613         * glyphs-msw.c (mswindows_initialize_image_instance_mask): don't
4614         use SetPixel, use DIBits functions.
4615         (xpm_to_eimage): frob colors more closely like xpm deos.
4616
4617         * toolbar-msw.c: only resize bitmaps when shrinking. Adjust look
4618         to be closer to X version.
4619
4620         * event-msw.c: use tooltip string directly.
4621
4622         * redisplay-msw.c: reinstate Kirill's bg pixmap change.
4623
4624         * objects-msw.c: frob rgb colors that only Kyle uses.
4625
4626         * dialog-msw.c (button_width): INLINE -> inline.
4627
4628 1998-05-23  SL Baur  <steve@altair.xemacs.org>
4629
4630         * getloadavg.c (getloadavg): Fix typo.
4631
4632 1998-05-23  Kirill M. Katsnelson  <kkm@kis.ru>
4633
4634         * objects-msw.c (mswindows_initialize_font_instance): Added support
4635         for font character sets.
4636         Replaced 'XXX' with '####' in comments throughout the file.
4637
4638 1998-05-23  Kirill M. Katsnelson  <kkm@kis.ru>
4639
4640         * emacs.c (main_1): Added calls to vars_of_dialog_mswindows() and
4641         console_type_create_dialog_mswindows(), to initialize Windows dialog
4642         support.
4643
4644         * symsinit.h: Prototyped the above functions.
4645
4646         * dialog-x.c (x_popup_dialog_box): Moved dialog descriptor consistency
4647         checks to dialog.c...
4648
4649         * dialog.c (Fpopup_dialog_box): ...right here. Added more checks: a
4650         device must support dialog boxes, and the descriptor must supply at
4651         least one button.
4652
4653         * dialog-msw.c: New file, dialogs for Windows.
4654
4655 1998-05-21  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
4656
4657         * eldap.c (ldap_search_unwind): Return Qnil instead of nothing
4658         (Fldap_search_internal): Removed unused variable `err'
4659
4660         * eldap.h: Moved Lisp_LDAP declaration here instead of using a
4661         forward declaration
4662
4663 1998-05-17  Martin Buchholz  <martin@xemacs.org>
4664
4665         * eldap.h: eldap.[ch] should never be used unless HAVE_LDAP is
4666         defined.  Therefore there is no need to handle the case when
4667         HAVE_LDAP is undefined.  Similarily, there is no reason to have
4668         any code wrapped within `#ifdef emacs', since this code is only
4669         useful within an emacs.  This simplifies the code significantly.
4670
4671         * inline.c: Include eldap.h only if HAVE_LDAP.
4672         * inline.c: Don't bother including TT_C_H_PATH, since tooltalk.h
4673         already does that.
4674
4675 1998-05-21  Kirill M. Katsnelson  <kkm@kis.ru>
4676
4677         * unexnt.c (copy_executable_and_dump_data_section): Suppress
4678         printing dump stats when building without DEBUG_XEMACS.
4679         (dump_bss_and_heap): Ditto.
4680
4681 1998-05-21  Andy Piper  <andyp@parallax.co.uk>
4682
4683         * gnuclient.c: don't suppress window system if there is no display
4684         and we are running under mswindows. send 'mswindows device type if
4685         we are in this situation.
4686
4687 1998-05-20  Andy Piper  <andyp@parallax.co.uk>
4688
4689         * general.c:
4690         * lisp.h: Qbitmap, Qcursor, Qicon moved here from glyphs-msw.c.
4691
4692         * glyphs-msw.c: change cursor imgae type name to resource. Fix
4693         some nits.
4694
4695 1998-05-20  Kirill M. Katsnelson  <kkm@kis.ru>
4696
4697         * EmacsFrame.c (Xt_StringToScrollBarPlacement):  Added support for
4698         {top,bottom}-{left,right} values in addition to
4699         {top,bottom}_{left,right}.
4700
4701 1998-05-18  Hrvoje Niksic  <hniksic@srce.hr>
4702
4703         * fileio.c (Fmake_temp_name): Remove unreached code.
4704
4705         * process-nt.c (validate_signal_number): Use
4706         signal_simple_error().
4707
4708 1998-05-19  Martin Buchholz  <martin@xemacs.org>
4709
4710         * unexhp9k800.c:
4711         * sound.c (vars_of_sound):
4712         * sysdep.c (reset_sigio_on_device):
4713         * window.c (window_bottom_gutter_height):
4714         unexhp9k800.c:258: warning: implicit declaration of function
4715         `calculate_checksum'
4716         sound.c:604: warning: implicit declaration of function `vars_of_hpplay'
4717         sysdep.c:1012: warning: unused variable `owner'
4718         window.c:993: warning: `window_right_toolbar_width' defined but not used
4719
4720 1998-05-19  Andy Piper  <andyp@parallax.co.uk>
4721
4722         * glyphs-msw.c (mswindows_create_resized_mask)
4723         (mswindows_create_resized_bitmap): new funnctions split out from
4724         mswindows_resize_dibitmap_instance.
4725
4726         * glyphs-msw.h: declare new resize functions.
4727
4728         * toolbar-msw.c (mswindows_output_toolbar): use new bitmap resize
4729         functions so that the original bitmaps are preserved.
4730
4731         * sheap.c: fixup static heap exhausted error to avoid FAQs.
4732
4733         * redisplay-msw.c (mswindows_output_blank): fixup brush from bg
4734         color if we are trying to output 0 depth bg pixmap.
4735
4736         * scrollbar-msw.c: warning elimination.
4737
4738 1998-05-18  Martin Buchholz  <martin@xemacs.org>
4739
4740         * frame-x.c (x_update_frame_external_traits): Start preprocessor
4741         directives in column 1.
4742
4743         * search.c (skip_chars): Avoid using xzero with arrays, since some
4744         compilers get confused by the construct &array.
4745
4746 1998-05-18  Kirill M. Katsnelson  <kkm@kis.ru>
4747
4748         * objects-msw.h:
4749         * objects-msw.c: Changed the charset value for a new font from
4750         "don't care" to "ansi".
4751
4752         * glyphs-msw.c (convert_EImage_to_DIBitmap): Warnings fix.
4753
4754 1998-05-18  Kirill M. Katsnelson  <kkm@kis.ru>
4755
4756         * event-msw.c (mswindows_wnd_proc, WM_KEYDOWN): Do not clear shift
4757         modifier on control chars.
4758         Use IsCharAlpha() instead of isaplha().
4759
4760 1998-05-19  Kazuyuki IENAGA <ienaga@jsys.co.jp>
4761
4762         * s/freebsd.h: FreeBSD 2.2.6 now supports setlocale(LC_ALL, "").
4763
4764 1998-05-18  Kirill M. Katsnelson  <kkm@kis.ru>
4765
4766         * objects-msw.c (mswindows_initialize_font_instance): Use ANSI
4767         charset when creating font.
4768         (mswindows_initialize_color_instance): Do not create brush along
4769         with a color.
4770         (mswindows_finalize_color_instance): Do not delete it then.
4771
4772         * objects-msw.h (struct mswindows_color_instance_data): Removed
4773         brush slot, and corresponding accessor macro.
4774
4775 1998-05-18  Kirill M. Katsnelson  <kkm@kis.ru>
4776
4777         * toolbar.c: Removed toolbar_data lrecord implementation.
4778         (mark_frame_toolbar_buttons_dirty): Replase usage of toolbar_data
4779         with toolbar_buttons (via FRAME_TOOLBAR_BUTTONS).
4780         (compute_frame_toolbar_buttons): Ditto.
4781         (CHECK_TOOLBAR): Ditto.
4782         (set_frame_toolbar): Removed allocation of toolbar_data lrecord.
4783         (update_frame_toolbars): Do not check for changed buffer
4784         here. Toolbar information is provided by cached specs in
4785         windows. The check for buffer is eliminated becuase toolbars are
4786         marked changed in set_frame_selected_window() in frame.c
4787         Added check for changed toolbars geometry.
4788         (compute_frame_toolbars_data): Removed unused second parameter;
4789         Adjusted callers of this static function throughout the file.
4790         (init_frame_toolbars): Initialize current_toolbar_size.
4791         (update_frame_toolbars): Use DEVICE_SUPPORTS_TOOLBARS_P instead of
4792         what is its current expansion, for clarity.
4793         (init_frame_toolbars): Ditto.
4794         (init_device_toolbars): Ditto.
4795         (init_global_toolbars): Ditto.
4796
4797         * toolbar.h: Removed definition of toolbar_data lrecord.
4798         Added accessor macros FRAME_TOOLBAR_BUTTONS and
4799         FRAME_CURRENT_TOOLBAR_SIZE.
4800         Added macro DEVICE_SUPPORTS_TOOLBARS_P.
4801
4802         * toolbar-x.c (x_output_toolbar): The same change as in
4803         toolbar-msw.c
4804         (x_output_toolbar): Ditto.
4805         (x_redraw_exposed_toolbar): Ditto.
4806
4807         * toolbar-msw.c (mswindows_output_toolbar): Retrieve current
4808         buttons from toolbar_buttons using FRAME_TOOLBAR_BUTTONS macro.
4809         (mswindows_output_toolbar): Ditto.
4810         (mswindows_output_toolbar): Ditto.
4811
4812         * frame.c (mark_frame): Removed marking of arrays, according to
4813         frameslots.h change.
4814         (nuke_all_frame_slots): Ditto.
4815         (set_frame_selected_window): Mark toolbars changed when
4816         last_nonminibuf_window changes.
4817
4818         * frame.h (struct frame): Moved some slots to frameslots.h.
4819         Added current_toolbar_size array.
4820         Changed references from toolbar_data to toolbar_buttons in macros
4821         FRAME_RAW_THEORETICAL_TOOLBAR_VISIBLE,
4822         FRAME_RAW_THEORETICAL_TOOLBAR_SIZE and
4823         FRAME_RAW_THEORETICAL_TOOLBAR_BORDER_WIDTH.
4824
4825         * frameslots.h: Added macro MARKED_SLOT_ARRAY a la winslots.h
4826         Moved arrays of lisp objects here from frame.h: toolbar_size,
4827         toolbar_visible_p, toolbar_border_width.
4828         Removed toolbar_data slot and added toolbar_buttons.
4829
4830 1998-05-17  Kirill M. Katsnelson  <kkm@kis.ru>
4831
4832         * symsinit.h: Externed syms_of_process_nt()
4833
4834         * emacs.c (main_1): Call syms_of_process_nt()
4835
4836         * process-nt.c: Quote process arguments by a call to Lisp function
4837         `nt-quote-process-args'.
4838         (syms_of_process_nt): New function.
4839         (nt_send_process): Flush data stream after each write, to avoid
4840         leaving buffered data.
4841         (nt_send_process): When blocked on process output, wait for
4842         process to slurp more for progressively increasing time intervals.
4843
4844 1998-05-17  Martin Buchholz  <martin@xemacs.org>
4845
4846         * window.c (have_undivided_common_edge): Make file-local function
4847         static.
4848         (map_windows): Return 0 if all map functions successful.
4849         Fix typos.
4850
4851         * winslots.h: Use unlikely names for local variables in macros to
4852         avoid shadowing warnings.
4853
4854 1998-05-17  Andy Piper  <andyp@parallax.co.uk>
4855
4856         * toolbar-msw.c (mswindows_output_toolbar): hash on toolbar width
4857         so that we re-output if the toolbar size has changed.
4858
4859 1998-05-17  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
4860
4861         * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new unexaix.c.
4862
4863         * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c.
4864
4865         * unexaix.c: Massive cleanup and support of AIX 4.2 (and hopefully
4866         greater).
4867
4868 1998-05-16  Kirill M. Katsnelson  <kkm@kis.ru>
4869
4870         * glyphs-msw.c: Defined OEMRESOURCE before including windows.h to
4871         get bitmap manifest constants defined.
4872
4873         * console-msw.h: Include system files in angle brackets, not in
4874         quotes.
4875
4876         * window.c (specifier_vars_of_window): Fixed a typo in
4877         `vertical-divider-line-width' docstirng.
4878
4879 1998-05-16  Olivier Galibert  <galibert@pobox.com>
4880
4881         * line-number.c (delete_invalidate_line_number_cache): Use an
4882         EMACS_INT.
4883         (buffer_line_number): Remove dangerous, plain wrong when using
4884         64bits emacs ints, cast.
4885
4886         * insdel.c (buffer_delete_range): Use an EMACS_INT.
4887
4888         * cmds.c (Fforward_line): Use EMACS_INTs.
4889
4890         * search.c (bi_scan_buffer): Change to use EMACS_INTs.
4891         (scan_buffer): Ditto.
4892         (bi_find_next_newline_no_quit): Remove useless cast.
4893         (find_next_newline_no_quit): Ditto.
4894         (find_next_newline): Ditto.
4895         (find_before_next_newline): Use an EMACS_INT.
4896
4897         * lisp.h: Change scan_buffer to pass EMACS_INTs.
4898
4899 1998-05-16  Hrvoje Niksic  <hniksic@srce.hr>
4900
4901         * menubar-msw.c (mswindows_handle_wm_command): Ditto.
4902
4903         * toolbar-msw.c (mswindows_handle_toolbar_wm_command): Ditto.
4904
4905         * gui-x.c (popup_selection_callback): Use it.
4906
4907         * gui.h (get_callback): Declare it.
4908
4909         * gui.c (get_callback): New function.
4910
4911 1998-05-15  SL Baur  <steve@altair.xemacs.org>
4912
4913         * window.c (have_undivided_common_edge): Guard scrollbar specific
4914         stuff.
4915         (window_needs_vertical_divider_1): Ditto.
4916
4917 1998-05-16  Hrvoje Niksic  <hniksic@srce.hr>
4918
4919         * emacs.c (decode_path): Eliminate compiler warning.
4920         (Fdecode_path): Renamed to Fsplit_path.
4921         (Fsplit_string_by_char): New function.
4922
4923 1998-05-14  Damon Lipparelli  <lipp@primus.com>
4924
4925         * winslots.h: close comment
4926
4927 1998-05-16  Kirill M. Katsnelson  <kkm@kis.ru>
4928
4929         * callproc.c: Removed declared and unused variable Qbuffer_file_type.
4930
4931         * bufslots.h: Removed buffer_file_type slot.
4932
4933         * buffer.c (complex_vars_of_buffer): Removed buffer_file_type from
4934         buffer local flags.
4935         (complex_vars_of_buffer): Removed buffer-file-type variable and
4936         its default reference.
4937
4938 1998-05-15  Kirill M. Katsnelson  <kkm@kis.ru>
4939
4940         * faces.c (complex_vars_of_faces): Defined
4941         Vvertical_divider_face.
4942         (vars_of_faces): Staticpro it.
4943
4944         * faces.h: Externed Vvertical_divider_face.
4945
4946         * redisplay-x.c (x_output_vertical_divider): Use
4947         Vvertical_divider_face to draw the divider instead of modeline
4948         face.
4949
4950         * redisplay-msw.c (mswindows_output_vertical_divider): Draw
4951         divider face using Vvertical_divider_face background.
4952         Fix drawing spacing gaps around the divider.
4953
4954 1998-05-14  Didier Verna  <verna@inf.enst.fr>
4955
4956         * redisplay-x.c (x_output_vertical_divider): removed hard-wired
4957         values for the vertical divider line width and spacing. Use the
4958         cached values from the window structure instead.
4959         (x_divider_width): ditto.
4960
4961         * window.c (specifier_vars_of_window): new specifiers:
4962         vertical-divier -line-width and -spacing.
4963         (vertical_divider_global_width_changed): formerly known as
4964         vertical_divider_shadow_thickness_changed.
4965
4966         * winslots.h: new slots: vertical_specifier _line_width and
4967         _spacing. Plus corrected a comment typo.
4968
4969 1998-05-15  Kirill M. Katsnelson  <kkm@kis.ru>
4970
4971         * window.h: Declared window_divider_width().
4972
4973         * console-stream.c (stream_divider_width): Removed method.
4974         (console_type_create_stream): And declaration for it.
4975
4976         * redisplay.c (pixel_to_glyph_translation): Use
4977         window_divider_width() instead of divider_width redisplay method.
4978         (pixel_to_glyph_translation): Fix top divider edge calculation
4979         when scrollbar is on top.
4980
4981         * window.c (window_divider_width): New function, an outphaser for
4982         divider_width redisplay method.
4983         (window_right_gutter_width): Use it.
4984         (specifier_vars_of_window): For vertical-divider-{spacing,line-width}
4985         specifiers, set fallback values differently on TTYs, and document
4986         the behavior of these on TTYs in the docstrings.
4987
4988         * scrollbar.c (update_scrollbar_instance): Use
4989         window_divider_width() instead of divider_width redisplay method.
4990
4991         * console.h (struct console_methods): Removed divider_width_method.
4992
4993         * redisplay-tty.c (tty_divider_width): Removed device method.
4994         (console_type_create_redisplay_tty): Removed definition for it.
4995         (tty_output_vertical_divider): Respect the value returned by
4996         window_divider_width thus divider line width specification.
4997
4998         * redisplay-msw.c (mswindows_divider_width): Removed device method.
4999         (console_type_create_redisplay_mswindows): Removed definition for it.
5000         (mswinodws_output_vertical_divider): Respect the value returned by
5001         window_divider_width thus divider line width specification.
5002
5003 1998-05-15  Andy Piper  <andyp@parallax.co.uk>
5004
5005         * toolbar-msw.c: guess toolbar frame size a bit more accurately.
5006
5007 1998-05-15  Andy Piper  <andyp@parallax.co.uk>
5008
5009         * glyphs-msw.c: resource loading implementation.
5010         (cursor_normalize): new function.
5011         (cursor_validate): ditto.
5012         (cursor_instantiate): ditto.
5013         (cursor_name_to_resource): ditto.
5014         (cursor_possible_dest_types): ditto.
5015         (check_valid_symbol): ditto.
5016         (check_valid_string_or_int): ditto.
5017
5018 1998-05-14  Martin Buchholz  <martin@xemacs.org>
5019
5020         * sysdep.c (tty_init_sys_modes_on_device): Treat VSUSP just like
5021         VINTR and VQUIT.
5022
5023         * process-unix.c (process_signal_char): Use VSUSP instead of
5024         non-standard VSWTCH.  Always prefer VSUSP to VSWTCH.
5025
5026 1998-05-14  Kirill M. Katsnelson  <kkm@kis.ru>
5027
5028         * specifier.c (specifier_instance): Change locale precedence of
5029         instantiation so window locale has higher priority than buffer
5030         locale.
5031         (Fspecifier_instance): Reflect this in docstring.
5032         (Fadd_spec_list_to_specifier): Ditto.
5033         (Fadd_spec_to_specifier): Ditto.
5034         (Fremove_specifier): Ditto.
5035
5036 1998-05-15  Kirill M. Katsnelson  <kkm@kis.ru>
5037
5038         ** Dialog separation into a device method from Andy Piper
5039
5040         * emacs.c (main_1): Call console_type_create_dialog_x().
5041
5042         * dialog-x.c (x_popup_dialog_box): Old Fpopup_dialog_box converted
5043         into this device method.
5044         (console_type_create_dialog_x): New function.
5045
5046         * dialog.c (Fpopup_dialog_box): New function.
5047         (syms_of_dialog): Defsubr it.
5048
5049         * console.h (struct console_methods): Declared
5050         popup_dialog_box_method().
5051
5052         * symsinit.h: Defined console_type_create_dialog_{x,mswindows}
5053
5054 1998-05-14  Oliver Graf <ograf@fga.de>
5055
5056         * dragdrop.c (vars_of_dragdrop): dragdrop-protocols created
5057         * frame-x.c (x_cde_transfer_callback): checked for merge errors
5058
5059 1998-05-13  Oliver Graf <ograf@fga.de>
5060
5061         * dragdrop.c (vars_of_dragdrop): provide dragdrop-api
5062
5063 1998-05-15  Kirill M. Katsnelson  <kkm@kis.ru>
5064
5065         * console.h (device_metrics): Removed dbcs, input-method-editor
5066         and right-to-left metrics.
5067
5068         * device.c (Fdevice_system_metric): Ditto.
5069         (Fdevice_system_metrics): Ditto.
5070         (syms_of_device): Ditto.
5071         (Fdevice_system_metric): Swapped DEVICE and METRIC parameters back
5072         again.
5073
5074 1998-05-14  Hrvoje Niksic  <hniksic@srce.hr>
5075
5076         * line-number.h (mark_line_number_cache): Remove unused
5077         declaration.
5078
5079         * line-number.c (LINE_NUMBER_FAR): Increase to 32768.
5080         (get_nearest_line_number): Simplify.
5081         (add_position_to_cache): Make the old marker point nowhere.
5082
5083 1998-05-14  Kirill M. Katsnelson  <kkm@kis.ru>
5084
5085         ** Renamed window-divider-map => vertical-divider-map
5086         and event-over-divider-p => event-over-vertical-divider-p,
5087         in the following files/functions:
5088         * events.h:
5089         * events.c (Fevent_over_divider_p):
5090         * keymap.c (get_relevant_keymaps):
5091         (vars_of_keymap):
5092
5093         * redisplay.h (OVER_V_DIVIDER): Renamed so from OVER_DIVIDER.
5094
5095         * redisplay.c (pixel_to_glyph_translation): Use OVER_V_DIVIDER.
5096
5097 1998-05-14  Kirill M. Katsnelson  <kkm@kis.ru>
5098
5099         * window.c (vertical_divider_changed_in_window): Renamed so.
5100         (specifier_vars_of_window): Defined Vvertical_divider_draggable_p.
5101         (window_needs_vertical_divider_1): Decide whether we need it based
5102         on the value of the above specifier. If separators are unwanted,
5103         put them only if there's no scrollbar between this window and its
5104         right neighbor.
5105         (have_undivided_common_edge): New function, helper for the above.
5106         (window_needs_vertical_divider): Return either a cached value,
5107         or clauclate and cache one.
5108         (invalidate_vertical_divider_cache_in_window): Implemented.
5109         (map_windows): Changed return type to int, return the value from
5110         MAPFUN.
5111
5112         * window.h: Prototype invalidate_vertical_divider_cache_in_window.
5113         (struct window): Added need_vertical_divider_p and
5114         need_vertical_divider_valid_p.
5115
5116         * winslots.h: Added vertical_divider_draggable_p slot.
5117
5118         * scrollbar.c (vertical_scrollbar_changed_in_window): Implemented.
5119         (specifier_vars_of_scrollbar): Used it in all vertical specifiers.
5120
5121         * frame.c (invalidate_vertical_divider_cache_in_frame): New function.
5122
5123         * frame.h (MARK_FRAME_WINDOWS_STRUCTURE_CHANGED): Call
5124         invalidate_vertical_divider_cache_in_frame().
5125         Prototype it.
5126
5127 1998-05-14  Andy Piper  <andyp@parallax.co.uk>
5128
5129         * toolbar-msw.c: provide correct parameters to TB_SETROWS.
5130
5131         * glyphs-msw.c (mswindows_initialize_image_instance_mask): size
5132         masks correctly and don't select 0.
5133
5134 1998-05-14  Kirill M. Katsnelson  <kkm@kis.ru>
5135
5136         * winslots.h: New file, declaration of some struct window and
5137         struct saved_window members.
5138
5139         * window.h (struct window): Include it, with required preprocessor
5140         magic.
5141
5142         * window.c (mark_window): Ditto.
5143         (allocate_window): Ditto.
5144         (struct saved_window): Ditto.
5145         (mark_window_config): Ditto.
5146         (saved_window_equal): Ditto.
5147         (Fset_window_configuration): Ditto.
5148
5149 1998-05-14  Kirill M. Katsnelson  <kkm@kis.ru>
5150
5151         * redisplay-msw.c (mswindows_output_vertical_divider): Syntax fix.
5152
5153 1998-05-12  Didier Verna  <verna@inf.enst.fr>
5154
5155         * redisplay-x.c (x_output_vertical_divider): draw shadows around
5156         the divider line. The shadow thickness is currently
5157         hard-wired. This will probably be turned into a specifier soon.
5158
5159 1998-05-12  Didier Verna  <verna@inf.enst.fr>
5160
5161         * console.h (struct console_methods): the divider_width console
5162         method now requires a struct window * argument.
5163
5164         * redisplay-x.c (x_divider_width): ditto. Plus remove
5165         X_DIVIDER_WIDTH, X_DIVIDER_SHADOW_THICKNESS.
5166         (x_output_vertical_divider): give a depressed look when the shadow
5167         thickness is negative.
5168
5169         * console-stream.c (stream_divider_width): pass a struct window *
5170         argument.
5171
5172         * redisplay-tty.c (tty_divider_width): ditto.
5173
5174         * window.c (window_right_gutter_width): totdi.
5175
5176         * redisplay.c (generate_modeline): ittod.
5177
5178         * scrollbar.c (update_scrollbar_instance): ttido.
5179
5180         * redisplay-msw.c (mswindows_divider_width): ottid.
5181         WARNING: this enables to compile, but the feature is not functional.
5182
5183         * window.h (struct window): new field
5184         vertical_divider_shadow_thickness.
5185
5186         * window.c (specifier_vars_of_window): new specifier
5187         vertical-divider-shadow-thickness.
5188         (vertical_divider_shadow_thickness_changed): new function to
5189         inform redisplay that the window has changed.
5190         (mark_window): handle new field vertical_divider_shadow_thickness
5191         from struct window.
5192         (allocate_window): ditto.
5193         (saved_window_equal): toddi.
5194         (Fset_window_configuration): totid.
5195         (save_window_save): ttdio.
5196         (struct saved_window): new field vertical_divider_shadow_thickness.
5197
5198 1998-05-14  Kirill M. Katsnelson  <kkm@kis.ru>
5199
5200         * device-msw.c (mswindows_device_system_metrics): Support a deluge
5201         of metrics.
5202
5203 1998-05-12  Oliver Graf <ograf@fga.de>
5204
5205         * frame-x.c (x_cde_transfer_callback): fixed for the new protocol
5206         * event-Xt.c (x_event_to_emacs_event): C++ compability
5207
5208 1998-05-14  Hrvoje Niksic  <hniksic@srce.hr>
5209
5210         * emacs.c (Fdecode_path): Default SEPCHAR to value of
5211         path-separator.
5212
5213 1998-05-14  Hrvoje Niksic  <hniksic@srce.hr>
5214
5215         * emacs.c (vars_of_emacs): Do it here; change the meaning of
5216         Vpath_separator.
5217
5218         * fileio.c (vars_of_fileio): Don't define Vpath_separator here.
5219
5220 1998-05-14  Hrvoje Niksic  <hniksic@srce.hr>
5221
5222         * emacs.c (decode_path_1): New function.
5223         (decode_path): Use it.
5224         (Fdecode_path): Renamed from Fdecode_path_internal; use
5225         decode_path_1.
5226
5227 1998-05-12  Hrvoje Niksic  <hniksic@srce.hr>
5228
5229         * macros.c (Fzap_last_kbd_macro_event): New function.
5230         (Fend_kbd_macro): Remove REMOVE_LAST kludge.
5231
5232 1998-05-10  Andy Piper  <andyp@parallax.co.uk>
5233
5234         * redisplay-msw.c (mswindows_output_dibitmap_region): make sure
5235         multiple bitmaps are output vertically as well as horizontally.
5236         * (mswindows_output_dibitmap): don't cope with bitmap boundaries
5237         crossing lines this is handled by
5238         mswindows_output_dibitmap_region.
5239
5240 1998-05-12  Martin Buchholz  <martin@xemacs.org>
5241
5242         * inline.c: Include eldap.h
5243
5244         * menubar-x.c (x_update_frame_menubar_internal):
5245         Remove: unused variable `container'
5246
5247 1998-05-11  Martin Buchholz  <martin@xemacs.org>
5248
5249         * s/aix4.h: Allow AIX 4.3 XEmacs to compile cleanly.
5250         Unfortunately, the resulting temacs still cannot dump.
5251
5252         * symbols.c (symbol_is_constant):
5253         (verify_ok_for_buffer_local):
5254         -Wswitch Warning suppression - add default case to switches.
5255
5256         * redisplay.c (decode_mode_spec): Remove unused variables,
5257         Replace Fcoding_system_property (codesys, Qmnemonic) with
5258         XCODING_SYSTEM_MNEMONIC (codesys);
5259         Fcoding_system_property is for users.
5260
5261         * buffer.c:
5262         * fileio.c:
5263         * lread.c:
5264         * xselect.c:
5265         Change empty docstrings into no doc strings at all.
5266         Fix bogus FSF-format docstrings.
5267
5268         * extents.c:
5269         Standardize docstrings.
5270
5271         * floatfns.c:
5272         Explain problems with matherr.
5273
5274         * glyphs.c:  make DEFUNs etags-readable, i.e. single-line
5275
5276         * syssignal.h:
5277         if BROKEN_SIGIO, then SIGIO wants to be undefined.
5278         if SIGIO and not SIGPOLL, SIGPOLL wants to be SIGIO.\
5279         Fix the weird resultant interaction (causes windows problems)
5280
5281         * gdbinit:
5282         * dbxrc:
5283         Take new EMACSBOOTSTRAPLOADPATH into account.
5284         Update documentation strings
5285
5286         * Makefile.in.in:
5287         - Adjust for luser's CDPATH being set to something weird.
5288         - Take into account bash 2.02's tendency to print the cwd when
5289           using CDPATH.  Always use `cd ./foo' instead of `cd foo'.
5290         - fix the run-temacs target to use $(DUMPENV)
5291         - fix the run-puremacs target to use $(DUMPENV)
5292         - fix the `depend' target to properly $(RM) the right files
5293         - Generate a better TAGS file for XEmacs' lisp code using
5294           hand-crafted regexps.
5295         - Use standard coding conventions for modules/Makefile.in
5296
5297 1998-05-12  Didier Verna  <verna@inf.enst.fr>
5298
5299         * redisplay.c: removed the scrolling modeline code that didn't
5300         make it for 21.0. To be continued ...
5301
5302 1998-05-13  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
5303
5304         * emacs.c (Fdecode_path_internal): Removed bogus handling of nil
5305         and empty string inputs.
5306
5307 1998-05-12  Hrvoje Niksic  <hniksic@srce.hr>
5308
5309         * redisplay-x.c (x_output_vertical_divider): Fixed typo.
5310
5311 1998-05-10  Oliver Graf <ograf@fga.de>
5312
5313         * event-stream.c (enqueue_misc_user_event_pos): created
5314         * lisp.h (enqueue_misc_user_event_pos): prototype added
5315         * frame-x.c (x_cde_transfer_callback): debug code plus API changes
5316         * emacs.c: call vars_of_dragdrop
5317         * dragdrop.c (vars_of_dragdrop): provide dragdrop
5318
5319 1998-05-11  Oliver Graf <ograf@fga.de>
5320
5321         * frame-x.c (x_cde_transfer_callback): return at correct pos
5322         * event-Xt.c (x_event_to_emacs_event): changed format of drop
5323         object for MIME (see comment in dragdrop.c)
5324         * dragdrop.c: API change documented in comment
5325         removed provide of dragdrop [is provided by dragdrop.el]
5326
5327 1998-05-12  Kirill M. Katsnelson  <kkm@kis.ru>
5328
5329         * window.c (window_needs_vertical_divider): Enable vertical
5330         dividers for every non-rightmost window.
5331         (window_left_gutter_width): Left gutter consists of mythical
5332         toolbar and a virtual scrollbar.
5333         (window_right_gutter_width): The right one may have a divider
5334         also.
5335
5336         * scrollbar.c (update_scrollbar_instance): Position vertical
5337         scrollbar left to divider if the latter present.
5338
5339         * redisplay.h: Declared OVER_DIVIER constant.
5340
5341         * redisplay.c (pixel_to_glyph_translation): Handle OVER_DIVIDER
5342         case.
5343
5344         * redisplay-x.c (x_output_vertical_divider): Output divider along
5345         the right side of the window, down to window bottom. Swapped
5346         foreground and background colors so it is visible by default.
5347
5348         * redisplay-tty.c (tty_output_vertical_divider): Uncondiionally
5349         stick the divider to the right window side.
5350
5351         * redisplay-msw.c (mswindows_redisplay_deadbox_maybe): Fixed
5352         deadbox painting.
5353         (mswindows_divider_width): Ask system for user preferred value.
5354         (mswindows_output_vertical_divider): Always output the divider on
5355         the right side of a window, down to bottom.
5356
5357         * keymap.c (get_relevant_keymaps): Route mouse button events which
5358         happened over a window divider through window-divider-map.
5359         (Fkey_binding): Documented that in the docstring.
5360         Defined the variable Vwindow_divider_map.
5361
5362         * events.c (Fevent_over_divider_p): Added this function.
5363
5364         * events.h: EXFUNed it.
5365
5366 1998-05-12  Kirill M. Katsnelson  <kkm@kis.ru>
5367
5368         * toolbar.c (update_frame_toolbars): Re-layout frame windows if
5369         toolbar geometry is suspected to change.
5370
5371 1998-05-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5372
5373         * src/device-msw.c
5374         * src/event-msw.c
5375         Condition dnd and dde code on HAVE_DRAGNDROP.
5376
5377 1998-05-11  Hrvoje Niksic  <hniksic@srce.hr>
5378
5379         * events.c (format_event_object): Print space as SPC etc.
5380
5381 1998-05-11  Hrvoje Niksic  <hniksic@srce.hr>
5382
5383         * print.c (print_internal): In the default case, abort() if
5384         ERROR_CHECK_TYPECHECK.
5385
5386         * fileio.c (Fmake_temp_name): Doc fix.
5387
5388 1998-05-10  Hrvoje Niksic  <hniksic@srce.hr>
5389
5390         * xgccache.c (describe_gc_cache): Define only if DEBUG_XEMACS.
5391
5392         * undo.c (Fprimitive_undo): Fixed typo.
5393
5394 1998-05-11  Hrvoje Niksic  <hniksic@srce.hr>
5395
5396         * fns.c (concat): Signal error on integer argument.
5397
5398 1998-05-10  Kirill M. Katsnelson  <kkm@kis.ru>
5399
5400         * console.h (device_metrics): Prefixed each constatnt with DM_
5401
5402         * device.c: (Fdevice_system_metric): Renamed so from plural form
5403         (metrics); Changed parameters order and added DEFAULT parameter;
5404         Unabbreviated some metric constants; Fixed and untabified doc string.
5405         (Fdevice_system_metrics): Added. Returns a plist of all provided
5406         metrics.
5407
5408         * device-msw.c (mswindows_device_system_metrics): Renamed
5409         device_metrics enum constants.
5410         Return Qunbound instead of Qnil.
5411
5412         * device-tty.c (tty_device_system_metrics): Ditto.
5413
5414         * device-x.c (x_device_system_metrics): Ditto.
5415
5416 1998-05-10  Andy Piper  <andyp@parallax.co.uk>
5417
5418         * redisplay-msw.c: implement background pixmaps (really!). Make
5419         sure bg color is transparent if we have bg pmaps.
5420         * (mswindows_output_string) (mswindows_clear_region): output bg
5421         pmap if required.
5422         * (mswindows_output_dibitmap_region): new function.
5423         * (mswindows_output_dibitmap): output offset pixmaps, blt masks in
5424         the bg color rather than transparently.
5425
5426         * toolbar-msw.c: use masks if they exist.
5427
5428         * glyphs-msw.c: set up masks correctly.
5429
5430         * event-msw.c: typedef SOCKET if cygwin and not msg select().
5431
5432 1998-05-10  Hrvoje Niksic  <hniksic@srce.hr>
5433
5434         * regex.c (re_match_2_internal): Check for quit.
5435
5436 1998-05-10  Hrvoje Niksic  <hniksic@srce.hr>
5437
5438         * frame.c (Ffocus_frame): New function.
5439