comparison src/ChangeLog @ 872:79c6ff3eef26

[xemacs-hg @ 2002-06-20 21:18:01 by ben] font changes etc.; some 21.4 changes mule/mule-msw-init-late.el: Specify charset->windows-registry conversion. mule/mule-x-init.el: Delete extra mule font additions here. Put them in faces.c. cl-macs.el: Document better. font-lock.el: Move Lisp function regexp to lisp-mode.el. lisp-mode.el: Various indentation fixes: Handle flet functions better. Handle argument lists in defuns and flets. Handle quoted lists, e.g. property lists -- don't indent like function calls. Distinguish between lambdas and other lists. lisp-mode.el: Handle this form. faces.el, font-menu.el, font.el, gtk-faces.el, msw-faces.el, msw-font-menu.el, x-faces.el, x-init.el: Major overhaul of face-handling code: -- Fix lots of bogus code in msw-faces.el, msw-font-menu.el, font-menu.el that was "truenaming" font specs -- i.e. in the process of frobbing a particular field in a general user-specified font spec with wildcarded fields, sticking in particular values for all the remaining wildcarded fields. This bug was rampant everywhere except in x-faces.el (the oldest and only correctly written code). This also means that we need to work with font names at all times and not font instances, because a font instance is essentially a truenamed font. -- Total rewrite of extremely junky code in msw-faces.el. Work with names as well as font instances, and return names; stop truenaming when canonicalizing and frobbing; fix handling of the combined style field, i.e. weight/slant (also fixed in font.el). -- Totally rewrite the frobbing functions in faces.el. This time, we frob all the instantiators rather than just computing a single instance value and working backwards. That way, e.g., `bold' will work for all charsets that have bold available, rather than only for whatever charset was part of the computed font instance (another example of the truename virus). Also fix up code to look at the fallbacks (all of them) when no global value present, so we don't need to put something in the global value. Intelligently handle a request to frob a buffer locale, rather than signalling an error. When frobbing instantiators, try hard to figure out what device type is associated with them, and frob each according to its own proper device type. Correctly handle inheritance vectors given as instantiators. Preserve existing tags when putting back frobbed instantiators. Extract out general specifier-frobbing code into specifier.el. Document everything cleanly. Do lots of other things better, etc. -- Don't duplicatively set a global specification for the default font -- it's already in the fallback and we no longer need a default global specification present. Delete various code in x-faces.el and msw-faces.el that duplicated the lists of fonts in faces.c. -- init-global-faces was not being called at all under MS Windows! Major bogosity. That caused device-specific values to get stuck into all the fonts, making it very hard to change them -- setting global specs caused nothing to happen. -- Correct weight names in font.el. -- Lots more font fixups in objects*.c. Printer.el: Warning fix. specifier.el: Add more args to map-specifier. Add various "heuristic" specifier functions to aid in creation of specifier-munging code such as in faces.el. subr.el: New functions. lwlib.c: Fix warning. config.inc.samp: Clean up, add args to control fastcall (not yet supported! the changes needed are in another ws of mine), profile support, vc6 support, union-type. xemacs.dsp, xemacs.mak: Semi-major overhaul. Fix bug where dump-id was always getting recomputed, forcing a redump even when nothing changed. Add support for fastcall. Support edit-and-continue (on by default) with vc6. Use incremental linking when doing a debug compilation. Add support for profiling. Consolidate the various debug flags. Partial support for "batch-compiling" -- compiling many files on a single invocation of the compiler. Doesn't seem to help that much for me, so it's not finished or enabled by default. Remove HAVE_MSW_C_DIRED, we always do. Correct some sloppy use of directories. s/cygwin32.h: Allow pdump to work under Cygwin (mmap is broken, so need to undefine HAVE_MMAP). s/win32-common.h, s/windowsnt.h: Support for fastcall. Add WIN32_ANY for identifying all Win32 variants (Cygwin, native, MinGW). Both of these are properly used in another ws. alloc.c, balloon-x.c, buffer.c, bytecode.c, callint.c, cm.c, cmdloop.c, cmds.c, console-gtk.c, console-gtk.h, console-msw.c, console-msw.h, console-stream.c, console-stream.h, console-tty.c, console-tty.h, console-x.c, console-x.h, console.c, console.h, device-gtk.c, device-msw.c, device-tty.c, device-x.c, device.c, device.h, devslots.h, dialog-gtk.c, dialog-msw.c, dialog-x.c, dialog.c, dired-msw.c, editfns.c, emacs.c, event-Xt.c, event-gtk.c, event-msw.c, event-stream.c, event-tty.c, event-unixoid.c, events.c, extents.c, extents.h, faces.c, fileio.c, fns.c, frame-gtk.c, frame-msw.c, frame-tty.c, frame-x.c, frame.c, frame.h, glyphs-eimage.c, glyphs-gtk.c, glyphs-msw.c, glyphs-widget.c, glyphs-x.c, glyphs.c, glyphs.h, gui-gtk.c, gui-msw.c, gui-x.c, gui.c, gutter.c, input-method-xlib.c, intl-encap-win32.c, intl-win32.c, keymap.c, lisp.h, macros.c, menubar-gtk.c, menubar-msw.c, menubar-x.c, menubar.c, menubar.h, minibuf.c, mule-charset.c, nt.c, objects-gtk.c, objects-gtk.h, objects-msw.c, objects-msw.h, objects-tty.c, objects-tty.h, objects-x.c, objects-x.h, objects.c, objects.h, postgresql.c, print.c, process.h, redisplay-gtk.c, redisplay-msw.c, redisplay-output.c, redisplay-tty.c, redisplay-x.c, redisplay.c, redisplay.h, scrollbar-gtk.c, scrollbar-msw.c, scrollbar-x.c, scrollbar.c, select-gtk.c, select-msw.c, select-x.c, select.c, signal.c, sound.c, specifier.c, symbols.c, syntax.c, sysdep.c, syssignal.h, syswindows.h, toolbar-common.c, toolbar-gtk.c, toolbar-msw.c, toolbar-x.c, toolbar.c, unicode.c, window.c, window.h: The following are the major changes made: (1) Separation of various header files into an external and an internal version, similar to the existing separation of process.h and procimpl.h. Eventually this should be done for all Lisp objects. The external version has the same name as currently; the internal adds -impl. The external file has XFOO() macros for objects, but the structure is opaque and defined only in the internal file. It's now reasonable to move all prototypes in lisp.h into the appropriate external file, and this should be done. Currently, separation has been done on extents.h, objects*.h, console.h, device.h, frame.h, and window.h. For c/d/f/w, the most basic properties are available in the external header file, with the macros resolving to functions. In the internal header file, the macros are redefined to directly access the structure. Also, the global MARK_FOO_CHANGED macros have been made into functions so that they can be accessed without needing to include lots of -impl headers -- they are used in almost exclusively in non-time-critical functions, and take up enough time that the function overhead will be negligible. Similarly, the function overhead from making the basic properties mentioned above into functions is negligible, and code that does heavy accessing of c/d/f/w structures inevitably ends up needing the internal header files, anyway. (2) More face changes. -- Major rewrite of objects-msw.c. Now handles wildcard specs properly, rather than "truenaming" (or even worse, signalling an error, which previously happened with some of the fallbacks if you tried to use them in make-font-instance!). -- Split charset matching of fonts into two stages -- one to find a font specifically designed for a particular charset (by examining its registry), the second to find a Unicode font that can support the charset. This needs to proceed as two complete, separate instantiations in order to work properly (otherwise many of the fonts in the HELLO page look wrong). This should also make it easy to support iso10646 (Unicode) fonts under X. -- All default values for fonts are now completely specified in the fallbacks. Stuff from mule-x-init.el has all been moved here, merged with the existing specs, and totally rethought so you get sensible results. (HELLO now looks much better!). -- Generalize the "default X/GTK device" stuff into a per-device-type "default device". -- Add mswindows-{set-}charset-registry. In time, charset<->code-page conversion functions will be removed. -- Wrap protective code around calls to compute device specifier tags, and do this computation before calling the face initialization code because the latter may need these tags to be correctly updated. (3) Other changes. EmacsFrame.c, glyphs-msw.c, eval.c, gui-x.c, intl-encap-win32.c, search.c, signal.c, toolbar-msw.c, unicode.c: Warning fixes. config.h.in: #undefs meant to be frobbed by configure *MUST* go inside of #ifndef WIN32_NO_CONFIGURE, and everything else *MUST* go outside! eval.c: Let detailed backtraces be detailed. specifier.c: Don't override user's print-string-length/print-length settings. glyphs.c: New function image-instance-instantiator. config.h.in, sysdep.c: Changes for fastcall. sysdep.c, nt.c: Fix up a previous botched patch that tried to add support for both EEXIST and EACCES. IF THE BOTCHED PATCH WENT INTO 21.4, THIS FIXUP NEEDS TO GO IN, TOO. search.c: Fix *evil* crash due to incorrect synching of syntax-cache code with 21.1. THIS SHOULD GO INTO 21.4.
author ben
date Thu, 20 Jun 2002 21:19:10 +0000
parents a07667553efc
children d4ba25667ff4
comparison
equal deleted inserted replaced
871:732270854293 872:79c6ff3eef26
1 2002-06-20 Ben Wing <ben@xemacs.org>
2
3 * s/cygwin32.h:
4 Allow pdump to work under Cygwin (mmap is broken, so need to undefine
5 HAVE_MMAP).
6
7 * s/win32-common.h:
8 * s/win32-common.h (NO_MATHERR):
9 * s/windowsnt.h:
10
11 Support for fastcall. Add WIN32_ANY for identifying all Win32
12 variants (Cygwin, native, MinGW). Both of these are properly used
13 in another ws.
14
15 2002-06-20 Ben Wing <ben@xemacs.org>
16
17 * alloc.c:
18 * alloc.c (disksave_object_finalization):
19 * alloc.c (garbage_collect_1):
20 * balloon-x.c:
21 * balloon-x.c (alloc_color):
22 * balloon-x.c (init):
23 * buffer.c:
24 * buffer.c (Fkill_buffer):
25 * bytecode.c:
26 * callint.c:
27 * cm.c:
28 * cmdloop.c:
29 * cmdloop.c (Frecursive_edit):
30 * cmdloop.c (Fcommand_loop_1):
31 * cmds.c:
32 * console-gtk.c:
33 * console-gtk.h:
34 * console-msw.c:
35 * console-msw.h:
36 * console-msw.h (struct):
37 * console-msw.h (wrap_mswindows_dialog_id):
38 * console-stream.c:
39 * console-stream.h:
40 * console-stream.h (stream_canonicalize_device_connection):
41 * console-tty.c:
42 * console-tty.h:
43 * console-x.c:
44 * console-x.h:
45 * console-x.h (Xt_SET_VALUE):
46 * console.c:
47 * console.c (Fcdfw_console):
48 * console.h:
49 * console.h (CDFW_CONSOLE):
50 * device-gtk.c:
51 * device-gtk.c (gtk_delete_device):
52 * device-gtk.c (Fgtk_display_visual_class):
53 * device-gtk.c (syms_of_device_gtk):
54 * device-gtk.c (vars_of_device_gtk):
55 * device-msw.c:
56 * device-tty.c:
57 * device-x.c:
58 * device-x.c (x_init_device):
59 * device-x.c (x_delete_device):
60 * device-x.c (x_get_resource_prefix):
61 * device-x.c (Fdefault_x_device):
62 * device-x.c (vars_of_device_x):
63 * device.c:
64 * device.c (allocate_device):
65 * device.c (device_console):
66 * device.c (init_global_resources):
67 * device.c (init_device_resources):
68 * device.c (Fdefault_device):
69 * device.c (Fmake_device):
70 * device.c (delete_device_internal):
71 * device.c (call_critical_lisp_code):
72 * device.c (syms_of_device):
73 * device.c (vars_of_device):
74 * device.h:
75 * devslots.h:
76 * dialog-gtk.c:
77 * dialog-msw.c:
78 * dialog-x.c:
79 * dialog.c:
80 * dialog.c (Fmake_dialog_box_internal):
81 * dired-msw.c:
82 * editfns.c:
83 * emacs.c:
84 * event-Xt.c:
85 * event-Xt.c (change_frame_visibility):
86 * event-gtk.c:
87 * event-gtk.c (change_frame_visibility):
88 * event-gtk.c (gtk_event_to_emacs_event):
89 * event-msw.c:
90 * event-stream.c:
91 * event-tty.c:
92 * event-unixoid.c:
93 * events.c:
94 * extents.c:
95 * extents.h:
96 * extents.h (glyph_layout):
97 * faces.c:
98 * faces.c (face_property_matching_instance):
99 * faces.c (init_global_faces):
100 * faces.c (init_device_faces):
101 * faces.c (complex_vars_of_faces):
102 * fileio.c:
103 * fns.c:
104 * frame-gtk.c:
105 * frame-gtk.c (INTERNAL_BORDER_WIDTH):
106 * frame-msw.c:
107 * frame-tty.c:
108 * frame-x.c:
109 * frame.c:
110 * frame.c (decode_frame_or_selected):
111 * frame.h:
112 * frame.h (FW_FRAME):
113 * frame.h (Value): Removed.
114 * frame.h (0): Removed.
115 * glyphs-eimage.c:
116 * glyphs-gtk.c:
117 * glyphs-gtk.c (gtk_locate_pixmap_file):
118 * glyphs-msw.c:
119 * glyphs-widget.c:
120 * glyphs-x.c:
121 * glyphs-x.c (x_locate_pixmap_file):
122 * glyphs.c:
123 * glyphs.c (decode_device_ii_format):
124 * glyphs.c (Fimage_instance_instantiator):
125 * glyphs.c (syms_of_glyphs):
126 * glyphs.h:
127 * gui-gtk.c:
128 * gui-msw.c:
129 * gui-x.c:
130 * gui-x.c (popup_selection_callback):
131 * gui.c:
132 * gutter.c:
133 * input-method-xlib.c:
134 * intl-encap-win32.c:
135 * intl-win32.c:
136 * intl-win32.c (getacp):
137 * intl-win32.c (mswindows_get_registry_charset):
138 * intl-win32.c (syms_of_intl_win32):
139 * intl-win32.c (vars_of_intl_win32):
140 * keymap.c:
141 * lisp.h:
142 * macros.c:
143 * menubar-gtk.c:
144 * menubar-msw.c:
145 * menubar-x.c:
146 * menubar.c:
147 * menubar.h:
148 * minibuf.c:
149 * mule-charset.c:
150 * mule-charset.c (Fset_charset_ccl_program):
151 * nt.c:
152 * objects-gtk.c:
153 * objects-gtk.c (gtk_initialize_font_instance):
154 * objects-gtk.c (gtk_print_font_instance):
155 * objects-gtk.c (gtk_font_instance_truename):
156 * objects-gtk.c (gtk_font_spec_matches_charset):
157 * objects-gtk.c (console_type_create_objects_gtk):
158 * objects-gtk.c (gtk_find_charset_font):
159 * objects-gtk.h:
160 * objects-msw.c:
161 * objects-msw.c (charset_map):
162 * objects-msw.c (font_enum_callback_2):
163 * objects-msw.c (sort_font_list_function):
164 * objects-msw.c (mswindows_enumerate_fonts):
165 * objects-msw.c (parse_font_spec):
166 * objects-msw.c (create_hfont_from_font_spec):
167 * objects-msw.c (initialize_font_instance):
168 * objects-msw.c (mswindows_list_fonts):
169 * objects-msw.c (mswindows_font_instance_truename):
170 * objects-msw.c (mswindows_font_spec_matches_charset_stage_1):
171 * objects-msw.c (mswindows_font_spec_matches_charset_stage_2):
172 * objects-msw.c (mswindows_font_spec_matches_charset):
173 * objects-msw.c (mswindows_find_charset_font):
174 * objects-msw.h:
175 * objects-msw.h (mswindows_color_to_string):
176 * objects-tty.c:
177 * objects-tty.c (tty_font_spec_matches_charset):
178 * objects-tty.c (tty_find_charset_font):
179 * objects-tty.h:
180 * objects-x.c:
181 * objects-x.c (x_initialize_font_instance):
182 * objects-x.c (x_print_font_instance):
183 * objects-x.c (x_font_instance_truename):
184 * objects-x.c (x_font_spec_matches_charset):
185 * objects-x.c (x_find_charset_font):
186 * objects-x.c (console_type_create_objects_x):
187 * objects-x.h:
188 * objects.c:
189 * objects.c (mark_font_instance):
190 * objects.c (Fmake_font_instance):
191 * objects.c (font_validate_matchspec):
192 * objects.c (initialize_charset_font_caches):
193 * objects.c (font_instantiate):
194 * objects.c (reinit_vars_of_objects):
195 * objects.h:
196 * postgresql.c:
197 * print.c:
198 * process.h:
199 * redisplay-gtk.c:
200 * redisplay-msw.c:
201 * redisplay-output.c:
202 * redisplay-tty.c:
203 * redisplay-x.c:
204 * redisplay.c:
205 * redisplay.c (text_cursor_visible_p_changed):
206 * redisplay.h:
207 * scrollbar-gtk.c:
208 * scrollbar-msw.c:
209 * scrollbar-x.c:
210 * scrollbar.c:
211 * select-gtk.c:
212 * select-msw.c:
213 * select-x.c:
214 * select.c:
215 * signal.c:
216 * sound.c:
217 * specifier.c:
218 * specifier.c (print_specifier):
219 * specifier.c (setup_device_initial_specifier_tags):
220 * specifier.c (Fspecifier_matching_instance):
221 * symbols.c:
222 * syntax.c (signal_syntax_table_extent_changed):
223 * sysdep.c:
224 * syssignal.h:
225 * syswindows.h:
226 * toolbar-common.c:
227 * toolbar-gtk.c:
228 * toolbar-msw.c:
229 * toolbar-msw.c (mswindows_clear_toolbar):
230 * toolbar-msw.c (mswindows_free_frame_toolbars):
231 * toolbar-x.c:
232 * toolbar.c:
233 * unicode.c:
234 * window.c:
235 * window.c (decode_window):
236 * window.h:
237 * window.h (WINDOW_XFRAME):
238 * window.h (XWINDOW_FRAME):
239 * window.h (CHECK_LIVE_WINDOW):
240 * window.h (window_divider_width):
241
242 The following are the major changes made:
243
244 (1) Separation of various header files into an external and an
245 internal version, similar to the existing separation of process.h
246 and procimpl.h. Eventually this should be done for all Lisp
247 objects. The external version has the same name as currently; the
248 internal adds -impl. The external file has XFOO() macros for
249 objects, but the structure is opaque and defined only in the
250 internal file. It's now reasonable to move all prototypes in
251 lisp.h into the appropriate external file, and this should be
252 done. Currently, separation has been done on extents.h,
253 objects*.h, console.h, device.h, frame.h, and window.h.
254
255 For c/d/f/w, the most basic properties are available in the
256 external header file, with the macros resolving to functions. In
257 the internal header file, the macros are redefined to directly
258 access the structure. Also, the global MARK_FOO_CHANGED macros
259 have been made into functions so that they can be accessed without
260 needing to include lots of -impl headers -- they are used in
261 almost exclusively in non-time-critical functions, and take up
262 enough time that the function overhead will be negligible.
263 Similarly, the function overhead from making the basic properties
264 mentioned above into functions is negligible, and code that does
265 heavy accessing of c/d/f/w structures inevitably ends up needing
266 the internal header files, anyway.
267
268 (2) More face changes.
269
270 -- Major rewrite of objects-msw.c. Now handles wildcard specs
271 properly, rather than "truenaming" (or even worse, signalling an
272 error, which previously happened with some of the fallbacks if you
273 tried to use them in make-font-instance!).
274
275 -- Split charset matching of fonts into two stages -- one to find
276 a font specifically designed for a particular charset (by
277 examining its registry), the second to find a Unicode font that
278 can support the charset. This needs to proceed as two complete,
279 separate instantiations in order to work properly (otherwise many
280 of the fonts in the HELLO page look wrong). This should also make
281 it easy to support iso10646 (Unicode) fonts under X.
282
283 -- All default values for fonts are now completely specified in
284 the fallbacks. Stuff from mule-x-init.el has all been moved here,
285 merged with the existing specs, and totally rethought so you get
286 sensible results. (HELLO now looks much better!).
287
288 -- Generalize the "default X/GTK device" stuff into a
289 per-device-type "default device".
290
291 -- Add mswindows-{set-}charset-registry. In time,
292 charset<->code-page conversion functions will be removed.
293
294 -- Wrap protective code around calls to compute device specifier tags,
295 and do this computation before calling the face initialization code
296 because the latter may need these tags to be correctly updated.
297
298 (3) Other changes.
299
300 * EmacsFrame.c:
301 * EmacsFrame.c (EmacsFrameSetValues):
302 * glyphs-msw.c:
303 * eval.c:
304 * gui-x.c:
305 * intl-encap-win32.c:
306 * search.c (Fstore_match_data):
307 * search.c:
308 * signal.c:
309 * toolbar-msw.c:
310 * unicode.c:
311 Warning fixes.
312
313 * config.h.in:
314 #undefs meant to be frobbed by configure *MUST* go inside of
315 #ifndef WIN32_NO_CONFIGURE, and everything else *MUST* go outside!
316
317 * eval.c (Fbacktrace):
318 Let detailed backtraces be detailed.
319 * specifier.c:
320 Don't override user's print-string-length/print-length settings.
321
322 * glyphs.c: New function image-instance-instantiator.
323
324 * config.h.in:
325 * sysdep.c (set_descriptor_non_blocking):
326 * sysdep.c (SIG_PARAM_TYPE):
327 * sysdep.c (struct save_signal):
328 * sysdep.c (save_signal_handlers):
329 * sysdep.c (retry_open):
330 * sysdep.c (qxe_open):
331 Changes for fastcall.
332
333 * sysdep.c (qxe_rename):
334 * nt.c (mswindows_rename):
335 Fix up a previous botched patch that tried to add support for both
336 EEXIST and EACCES. IF THE BOTCHED PATCH WENT INTO 21.4, THIS FIXUP
337 NEEDS TO GO IN, TOO.
338
339 * search.c (skip_chars):
340 Fix *evil* crash due to incorrect synching of syntax-cache code
341 with 21.1. THIS SHOULD GO INTO 21.4.
342
1 2002-06-07 William M. Perry <wmperry@gnu.org> 343 2002-06-07 William M. Perry <wmperry@gnu.org>
2 344
3 * frame-x.c (init_x_prop_symbols): Don't attempt to expose the 345 * frame-x.c (init_x_prop_symbols): Don't attempt to expose the
4 toolbar pixels from the EmacsFrame widget, they no longer exist. 346 toolbar pixels from the EmacsFrame widget, they no longer exist.
5 (x_frame_properties): Ditto. 347 (x_frame_properties): Ditto.