comparison src/ChangeLog @ 5052:92dc90c0bb40

merge
author Ben Wing <ben@xemacs.org>
date Sat, 20 Feb 2010 23:56:01 -0600
parents c3d372419e09 548f1f47eb82
children 0e803dc6f096 eb17f0c176ac
comparison
equal deleted inserted replaced
5051:c3d372419e09 5052:92dc90c0bb40
115 all the files they include into separate variables in the 115 all the files they include into separate variables in the
116 depend part of Makefile so that quick-build can turn off the 116 depend part of Makefile so that quick-build can turn off the
117 lisp.h/config.h/text.h/etc. dependencies of the source files, to 117 lisp.h/config.h/text.h/etc. dependencies of the source files, to
118 speed up recompilation. 118 speed up recompilation.
119 119
120
121 2010-02-20 Ben Wing <ben@xemacs.org>
122
123 * EmacsFrame.c (EmacsFrameRecomputeCellSize):
124 * faces.c (default_face_font_info):
125 * faces.c (default_face_width_and_height):
126 * faces.c (Fface_list):
127 * faces.h:
128 * frame-gtk.c (gtk_set_initial_frame_size):
129 * frame-gtk.c (gtk_set_frame_size):
130 * frame-gtk.c (gtk_recompute_cell_sizes):
131 * frame.c:
132 * frame.c (frame_conversion_internal_1):
133 * frame.c (change_frame_size_1):
134 * frame.c (change_frame_size):
135 * glyphs-msw.c (mswindows_combo_box_instantiate):
136 * glyphs-widget.c (widget_instantiate):
137 * glyphs-widget.c (tree_view_query_geometry):
138 * glyphs-widget.c (Fwidget_logical_to_character_width):
139 * glyphs-widget.c (Fwidget_logical_to_character_height):
140 * indent.c (vmotion_pixels):
141 * redisplay-output.c (get_cursor_size_and_location):
142 * redisplay-xlike-inc.c (XLIKE_output_eol_cursor):
143 * redisplay-xlike-inc.c (XLIKE_flash):
144 * redisplay.c (calculate_baseline):
145 * redisplay.c (start_with_point_on_display_line):
146 * redisplay.c (glyph_to_pixel_translation):
147 * redisplay.c (pixel_to_glyph_translation):
148 * window.c (margin_width_internal):
149 * window.c (frame_size_valid_p):
150 * window.c (frame_pixsize_valid_p):
151 * window.c (check_frame_size):
152 * window.c (set_window_pixsize):
153 * window.c (window_pixel_height_to_char_height):
154 * window.c (window_char_height_to_pixel_height):
155 * window.c (window_displayed_height):
156 * window.c (window_pixel_width_to_char_width):
157 * window.c (window_char_width_to_pixel_width):
158 * window.c (change_window_height):
159 * window.c (window_scroll):
160 * window.h:
161 IMPORTANT: Aidan and Carbon Repo, please pay attention and fix
162 appropriately!
163
164 Rename: default_face_height_and_width -> default_face_width_and_height
165 and reverse width/height arguments.
166
167 Reverse width/height arguments to the following functions:
168 -- default_face_font_info
169 -- default_face_height_and_width (see above)
170 -- check_frame_size
171 -- frame_size_valid_p (made into a static function)
172
173 Fix a redisplay bug where args to default_face_height_and_width
174 were in the wrong order.
175
176
177 2010-02-20 Ben Wing <ben@xemacs.org>
178
179 * syswindows.h:
180 Add table about GNU Emacs -> XEmacs Windows constants from
181 the internals manual.
182
183 * frame.c:
184 Shrink size of diagram consistent with internals manual.
185
186 * alloc.c:
187 * compiler.h:
188 * console.c:
189 * events.c:
190 * gc.c (gc_stat_start_new_gc):
191 * gc.c (gc_stat_resume_gc):
192 * gc.c (kkcc_marking):
193 * gc.c (gc_1):
194 * gc.c (gc):
195 * objects-tty.c:
196 * redisplay-msw.c:
197 * redisplay-msw.c (mswindows_clear_region):
198 * syntax.c:
199 * syntax.c (ST_COMMENT_STYLE):
200 * sysdep.c:
201 Fix various compiler warnings.
202
203 2010-02-16 Ben Wing <ben@xemacs.org>
204
205 * frame-impl.h:
206 * frame-impl.h (FRAME_INTERNAL_BORDER_WIDTH):
207 * frame-impl.h (FRAME_REAL_TOOLBAR_BOUNDS):
208 * frame-impl.h (FRAME_REAL_TOP_TOOLBAR_BOUNDS):
209 * frame-impl.h (FRAME_BOTTOM_BORDER_START):
210 * frame-impl.h (FRAME_LEFT_BORDER_START):
211 * frame-impl.h (FRAME_RIGHT_BORDER_START):
212 * frame.c (frame_conversion_internal_1):
213 * frame.c (change_frame_size_1):
214 * redisplay-output.c (clear_left_border):
215 * redisplay-output.c (clear_right_border):
216 * redisplay-output.c (redisplay_clear_top_of_window):
217 * redisplay-output.c (redisplay_clear_to_window_end):
218 * redisplay-output.c (redisplay_clear_bottom_of_window):
219 Rename FRAME_BORDER_* to FRAME_INTERNAL_BORDER_*. Add
220 general FRAME_INTERNAL_BORDER_SIZE(). Add FRAME_REAL_TOOLBAR_BOUNDS()
221 to encompass the entire size of the toolbar including its border.
222 Add specific top/left/bottom/right versions of this macro.
223 Rewrite FRAME_*_BORDER_START and FRAME_*_BORDER_END to take into use
224 FRAME_REAL_*_TOOLBAR_BOUNDS(). Add some comments about existing
225 problems in frame sizing and how they might be fixed. Simplify
226 change_frame_size_1() using the macros just created.
227
228 2010-02-15 Ben Wing <ben@xemacs.org>
229
230 * frame.c (change_frame_size_1):
231 Simplify the logic in this function.
232
233 (1) Don't allow 0 as the value of height or width. The old code
234 that tried to allow this was totally broken, anyway, so obviously
235 this never happens any more.
236
237 (2) Don't duplicate the code in frame_conversion_internal() that
238 converts displayable pixel size to total pixel size -- just call
239 that function.
240
241 2010-02-15 Ben Wing <ben@xemacs.org>
242
243 * EmacsFrame.c:
244 * EmacsFrame.c (EmacsFrameResize):
245 * console-msw-impl.h:
246 * console-msw-impl.h (struct mswindows_frame):
247 * console-msw-impl.h (FRAME_MSWINDOWS_TARGET_RECT):
248 * device-tty.c:
249 * device-tty.c (tty_asynch_device_change):
250 * event-msw.c:
251 * event-msw.c (mswindows_wnd_proc):
252 * faces.c (Fface_list):
253 * faces.h:
254 * frame-gtk.c:
255 * frame-gtk.c (gtk_set_initial_frame_size):
256 * frame-gtk.c (gtk_set_frame_size):
257 * frame-msw.c:
258 * frame-msw.c (mswindows_init_frame_1):
259 * frame-msw.c (mswindows_set_frame_size):
260 * frame-msw.c (mswindows_size_frame_internal):
261 * frame-msw.c (msprinter_init_frame_3):
262 * frame.c:
263 * frame.c (enum):
264 * frame.c (Fmake_frame):
265 * frame.c (adjust_frame_size):
266 * frame.c (store_minibuf_frame_prop):
267 * frame.c (Fframe_property):
268 * frame.c (Fframe_properties):
269 * frame.c (Fframe_displayable_pixel_height):
270 * frame.c (Fframe_displayable_pixel_width):
271 * frame.c (internal_set_frame_size):
272 * frame.c (Fset_frame_height):
273 * frame.c (Fset_frame_pixel_height):
274 * frame.c (Fset_frame_displayable_pixel_height):
275 * frame.c (Fset_frame_width):
276 * frame.c (Fset_frame_pixel_width):
277 * frame.c (Fset_frame_displayable_pixel_width):
278 * frame.c (Fset_frame_size):
279 * frame.c (Fset_frame_pixel_size):
280 * frame.c (Fset_frame_displayable_pixel_size):
281 * frame.c (frame_conversion_internal_1):
282 * frame.c (get_frame_displayable_pixel_size):
283 * frame.c (change_frame_size_1):
284 * frame.c (change_frame_size):
285 * frame.c (generate_title_string):
286 * frame.h:
287 * gtk-xemacs.c:
288 * gtk-xemacs.c (gtk_xemacs_size_request):
289 * gtk-xemacs.c (gtk_xemacs_size_allocate):
290 * gtk-xemacs.c (gtk_xemacs_paint):
291 * gutter.c:
292 * gutter.c (update_gutter_geometry):
293 * redisplay.c (end_hold_frame_size_changes):
294 * redisplay.c (redisplay_frame):
295 * toolbar.c:
296 * toolbar.c (update_frame_toolbars_geometry):
297 * window.c:
298 * window.c (frame_pixsize_valid_p):
299 * window.c (check_frame_size):
300 Various fixes to frame geometry to make it a bit easier to understand
301 and fix some bugs.
302
303 1. IMPORTANT: Some renamings. Will need to be applied carefully to
304 the carbon repository, in the following order:
305
306 -- pixel_to_char_size -> pixel_to_frame_unit_size
307 -- char_to_pixel_size -> frame_unit_to_pixel_size
308 -- pixel_to_real_char_size -> pixel_to_char_size
309 -- char_to_real_pixel_size -> char_to_pixel_size
310 -- Reverse second and third arguments of change_frame_size() and
311 change_frame_size_1() to try to make functions consistent in
312 putting width before height.
313 -- Eliminate old round_size_to_char, because it didn't really
314 do anything differently from round_size_to_real_char()
315 -- round_size_to_real_char -> round_size_to_char; any places that
316 called the old round_size_to_char should just call the new one.
317
318 2. IMPORTANT FOR CARBON: The set_frame_size() method is now passed
319 sizes in "frame units", like all other frame-sizing functions,
320 rather than some hacked-up combination of char-cell units and
321 total pixel size. This only affects window systems that use
322 "pixelated geometry", and I'm not sure if Carbon is one of them.
323 MS Windows is pixelated, X and GTK are not. For pixelated-geometry
324 systems, the size in set_frame_size() is in displayable pixels
325 rather than total pixels and needs to be converted appropriately;
326 take a look at the changes made to mswindows_set_frame_size()
327 method if necessary.
328
329 3. Add a big long comment in frame.c describing how frame geometry
330 works.
331
332 4. Remove MS Windows-specific character height and width fields,
333 duplicative and unused.
334
335 5. frame-displayable-pixel-* and set-frame-displayable-pixel-*
336 didn't use to work on MS Windows, but they do now.
337
338 6. In general, clean up the handling of "pixelated geometry" so
339 that fewer functions have to worry about this. This is really
340 an abomination that should be removed entirely but that will
341 have to happen later. Fix some buggy code in
342 frame_conversion_internal() that happened to "work" because it
343 was countered by oppositely buggy code in change_frame_size().
344
345 7. Clean up some frame-size code in toolbar.c and use functions
346 already provided in frame.c instead of rolling its own.
347
348 8. Fix check_frame_size() in window.c, which formerly didn't take
349 pixelated geometry into account.
350
351
352 2010-02-15 Ben Wing <ben@xemacs.org>
353
354 * mc-alloc.c:
355 * mc-alloc.c (mc_realloc_1):
356 * mc-alloc.c (set_dirty_bit):
357 * mc-alloc.c (set_dirty_bit_for_address):
358 * mc-alloc.c (get_dirty_bit):
359 * mc-alloc.c (get_dirty_bit_for_address):
360 * mc-alloc.c (set_protection_bit):
361 * mc-alloc.c (set_protection_bit_for_address):
362 * mc-alloc.c (get_protection_bit):
363 * mc-alloc.c (get_protection_bit_for_address):
364 * mc-alloc.c (get_page_start):
365 * vdb-win32.c (win32_fault_handler):
366 * vdb.c:
367 Fix some compile warnings, make vdb test code conditional on
368 DEBUG_XEMACS.
369
370 2010-02-15 Ben Wing <ben@xemacs.org>
371
372 * regex.c:
373 * regex.c (DEBUG_FAIL_PRINT1):
374 * regex.c (PUSH_FAILURE_POINT):
375 * regex.c (POP_FAILURE_POINT):
376 * regex.c (regex_compile):
377 * regex.c (re_match_2_internal):
378 * regex.h:
379 * search.c:
380 * search.c (search_buffer):
381 * search.c (debug_regexps_changed):
382 * search.c (vars_of_search):
383 Add an internal variable debug_regexps and a corresponding Lisp
384 variable `debug-regexps' that takes a list of areas in which to
385 display debugging info about regex compilation and matching
386 (currently three areas exist). Use existing debugging code
387 already in regex.c and modify it so that it recognizes the
388 debug_regexps variable and the flags in it.
389
390 Rename variable `debug-xemacs-searches' to just `debug-searches',
391 consistent with other debug vars.
392
393 2010-02-20 Ben Wing <ben@xemacs.org>
394
395 * device-x.c (Fx_get_resource):
396 * dynarr.c:
397 * dynarr.c (Dynarr_realloc):
398 * dynarr.c (Dynarr_newf):
399 * dynarr.c (Dynarr_lisp_realloc):
400 * dynarr.c (Dynarr_lisp_newf):
401 * dynarr.c (Dynarr_resize):
402 * dynarr.c (Dynarr_insert_many):
403 * dynarr.c (Dynarr_delete_many):
404 * dynarr.c (Dynarr_memory_usage):
405 * dynarr.c (stack_like_free):
406 * file-coding.c (coding_reader):
407 * file-coding.c (gzip_convert):
408 * gutter.c (output_gutter):
409 * lisp.h:
410 * lisp.h (Dynarr_declare):
411 * lisp.h (DYNARR_SET_LISP_IMP):
412 * lisp.h (CHECK_NATNUM):
413 * profile.c (create_timing_profile_table):
414 * redisplay-output.c (sync_rune_structs):
415 * redisplay-output.c (sync_display_line_structs):
416 * redisplay-output.c (redisplay_output_window):
417 * redisplay.c:
418 * redisplay.c (get_display_block_from_line):
419 * redisplay.c (add_ichar_rune_1):
420 * redisplay.c (ensure_modeline_generated):
421 * redisplay.c (generate_displayable_area):
422 * redisplay.c (regenerate_window):
423 * redisplay.c (update_line_start_cache):
424 * signal.c:
425 * signal.c (check_quit):
426
427 Lots of rewriting of dynarr code.
428
429 (1) Lots of documentation added. Also fix places that
430 referenced a now-bogus internals node concerning redisplay
431 critical sections.
432
433 (2) Rename:
434
435 Dynarr_add_lisp_string -> Dynarr_add_ext_lisp_string
436 Dynarr_set_length -> Dynarr_set_lengthr ("restricted")
437 Dynarr_increment -> Dynarr_incrementr
438 Dynarr_resize_if -> Dynarr_resize_to_add
439
440 (3) New functions:
441
442 Dynarr_elsize = dy->elsize_
443 Dynarr_set_length(): Set length, resizing as necessary
444 Dynarr_set_length_and_zero(): Set length, resizing as necessary,
445 zeroing out new elements
446 Dynarr_increase_length(), Dynarr_increase_length_and_zero():
447 Optimization of Dynarr_set_length(), Dynarr_set_length_and_zero()
448 when size is known to increase
449 Dynarr_resize_to_fit(): Resize as necessary to fit a given length.
450 Dynarr_set(): Set element at a given position, increasing length
451 as necessary and setting any newly created positions to 0
452
453 (4) Use Elemcount, Bytecount.
454
455 (5) Rewrite many macros as inline functions.
456
457 2010-02-20 Ben Wing <ben@xemacs.org>
458
459 * tests.c:
460 Fix operation of c-tests.
120 461
121 2010-02-19 Aidan Kehoe <kehoea@parhasard.net> 462 2010-02-19 Aidan Kehoe <kehoea@parhasard.net>
122 463
123 * fns.c (split_string_by_ichar_1): 464 * fns.c (split_string_by_ichar_1):
124 Use better types (e.g., not an Ichar for a buffer size) in this 465 Use better types (e.g., not an Ichar for a buffer size) in this