comparison src/ChangeLog @ 55722:623ab06bb37b

(Fdefine_key): Doc fix.
author Juanma Barranquero <lekktu@gmail.com>
date Sat, 22 May 2004 01:52:56 +0000
parents 91bed9994bc1
children e3f64aa0875d
comparison
equal deleted inserted replaced
55721:b0b446f1087b 55722:623ab06bb37b
1 2004-05-22 Juanma Barranquero <lektu@terra.es>
2
3 * keymap.c (Fdefine_key): Doc fix.
4
1 2004-05-22 Kim F. Storm <storm@cua.dk> 5 2004-05-22 Kim F. Storm <storm@cua.dk>
2 6
3 * alloc.c (struct backtrace): Add debug_on_exit member. 7 * alloc.c (struct backtrace): Add debug_on_exit member.
4 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep. 8 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
5 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of 9 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
18 * intervals.c (lookup_char_property): Do not prematurely return nil. 22 * intervals.c (lookup_char_property): Do not prematurely return nil.
19 23
20 2004-05-19 Jim Blandy <jimb@redhat.com> 24 2004-05-19 Jim Blandy <jimb@redhat.com>
21 25
22 Add support for new '\_<' and '\_>' regexp operators, matching the 26 Add support for new '\_<' and '\_>' regexp operators, matching the
23 beginning and ends of symbols. 27 beginning and end of symbols.
24 28
25 * regex.c (enum syntaxcode): Add Ssymbol. 29 * regex.c (enum syntaxcode): Add Ssymbol.
26 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword. 30 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
27 (re_opcode_t): New opcodes `symbeg' and `symend'. 31 (re_opcode_t): New opcodes `symbeg' and `symend'.
28 (print_partial_compiled_pattern): Print the new opcodes properly. 32 (print_partial_compiled_pattern): Print the new opcodes properly.
1237 * keyboard.h (kbd_buffer_store_event_hold): Add prototype. 1241 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
1238 (gen_help_event): Fix prototype. 1242 (gen_help_event): Fix prototype.
1239 1243
1240 * macterm.c (XTread_socket): Remove bufp_r and 1244 * macterm.c (XTread_socket): Remove bufp_r and
1241 numcharsp args. Add hold_quit arg. 1245 numcharsp args. Add hold_quit arg.
1242 Rework to use just one, local, inev input_event. Store inev 1246 Rework to use just one, local, inev input_event. Store inev
1243 directly in fifo using kbd_buffer_store_event_hold. 1247 directly in fifo using kbd_buffer_store_event_hold.
1244 1248
1245 * sysdep.c (BUFFER_SIZE_FACTOR): Remove. 1249 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
1246 (read_input_waiting): Adapt to new read_socket_hook interface. 1250 (read_input_waiting): Adapt to new read_socket_hook interface.
1247 Remove allocation and initialization of local input_event buffer, 1251 Remove allocation and initialization of local input_event buffer,
1253 1257
1254 * termhooks.h (read_socket_hook): Fix prototype. 1258 * termhooks.h (read_socket_hook): Fix prototype.
1255 1259
1256 * w32inevt.c (w32_console_read_socket): Remove bufp_r and 1260 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
1257 numcharsp args. Add hold_quit arg. 1261 numcharsp args. Add hold_quit arg.
1258 Rework to use just one, local, inev input_event. Store inev 1262 Rework to use just one, local, inev input_event. Store inev
1259 directly in fifo using kbd_buffer_store_event_hold. 1263 directly in fifo using kbd_buffer_store_event_hold.
1260 1264
1261 * w32inevt.h (w32_console_mouse_position): Fix prototype. 1265 * w32inevt.h (w32_console_mouse_position): Fix prototype.
1262 1266
1263 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args. 1267 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
1264 Add hold_quit arg. Rework to use just one, local, inev 1268 Add hold_quit arg. Rework to use just one, local, inev
1265 input_event. Store inev directly in fifo using 1269 input_event. Store inev directly in fifo using
1266 kbd_buffer_store_event_hold. Update count in one place. 1270 kbd_buffer_store_event_hold. Update count in one place.
1267 Postpone call to gen_help_event until inev is stored; use new 1271 Postpone call to gen_help_event until inev is stored; use new
1268 local do_help for this. 1272 local do_help for this.
1269 Remove local emacs_event in handing of ButtonPress event; just use 1273 Remove local emacs_event in handing of ButtonPress event; just use
1270 inev instead (so no reason to copy it later). 1274 inev instead (so no reason to copy it later).
1279 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc. 1283 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
1280 (current_bufp, current_numcharsp) [USE_GTK]: Remove. 1284 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
1281 (current_hold_quit) [USE_GTK]: Add. 1285 (current_hold_quit) [USE_GTK]: Add.
1282 (event_handler_gdk): Adapt to new handle_one_xevent. 1286 (event_handler_gdk): Adapt to new handle_one_xevent.
1283 (handle_one_xevent): Remove bufp_r and numcharsp args. 1287 (handle_one_xevent): Remove bufp_r and numcharsp args.
1284 Add hold_quit arg. Rework to use just one, local, inev 1288 Add hold_quit arg. Rework to use just one, local, inev
1285 input_event. Store inev directly in fifo using 1289 input_event. Store inev directly in fifo using
1286 kbd_buffer_store_event_hold. Update count in one place. 1290 kbd_buffer_store_event_hold. Update count in one place.
1287 Postpone call to gen_help_event until inev is stored; use new 1291 Postpone call to gen_help_event until inev is stored; use new
1288 local do_help for this. 1292 local do_help for this.
1289 Simplify handling of keysyms (consolidate common code). Fix bug 1293 Simplify handling of keysyms (consolidate common code). Fix bug
1290 where count was updated with nchars instead of nbytes. 1294 where count was updated with nchars instead of nbytes.
1292 inev instead (so no reason to copy it later). 1296 inev instead (so no reason to copy it later).
1293 Remove `out' label. Rename label `ret' to `done'; add various 1297 Remove `out' label. Rename label `ret' to `done'; add various
1294 `goto done' to clarify code flow in deeply nested blocks. 1298 `goto done' to clarify code flow in deeply nested blocks.
1295 (x_dispatch_event): Simplify as handle_one_xevent now calls 1299 (x_dispatch_event): Simplify as handle_one_xevent now calls
1296 kbd_buffer_store_event itself. 1300 kbd_buffer_store_event itself.
1297 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit 1301 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
1298 arg. Call handle_one_xevent with new arglist. Store event from 1302 arg. Call handle_one_xevent with new arglist. Store event from
1299 x_session_check_input in fifo. 1303 x_session_check_input in fifo.
1300 [USE_GTK]: Setup current_hold_quit. 1304 [USE_GTK]: Setup current_hold_quit.
1301 Decrement handling_signal before unblocking input. 1305 Decrement handling_signal before unblocking input.
1302 (x_initialize) [USE_GTK]: Initialize current_count. 1306 (x_initialize) [USE_GTK]: Initialize current_count.
2221 2225
2222 * dispextern.h (buffer_posn_from_coords, mode_line_string) 2226 * dispextern.h (buffer_posn_from_coords, mode_line_string)
2223 (marginal_area_string): Fix prototypes. 2227 (marginal_area_string): Fix prototypes.
2224 2228
2225 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from 2229 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
2226 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed. 2230 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
2227 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros. 2231 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
2228 2232
2229 * keyboard.c (make_lispy_position): Use modified mode_line_string, 2233 * keyboard.c (make_lispy_position): Use modified mode_line_string,
2230 buffer_posn_from_coords, and marginal_area_string functions to 2234 buffer_posn_from_coords, and marginal_area_string functions to
2231 include both string object and image object in the lispy position. 2235 include both string object and image object in the lispy position.
2388 (note_mode_line_or_margin_highlight, note_mouse_highlight): 2392 (note_mode_line_or_margin_highlight, note_mouse_highlight):
2389 Handle `pointer' text property and :pointer image property to 2393 Handle `pointer' text property and :pointer image property to
2390 control frame pointer shape. Detect image hot-spots for pointer 2394 control frame pointer shape. Detect image hot-spots for pointer
2391 and help_echo properties. Use define_frame_cursor1. 2395 and help_echo properties. Use define_frame_cursor1.
2392 (note_mouse_highlight): Use Vvoid_text_area_pointer. 2396 (note_mouse_highlight): Use Vvoid_text_area_pointer.
2393 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables. 2397 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
2394 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void. 2398 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
2395 2399
2396 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID. 2400 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
2397 2401
2398 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call. 2402 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
2509 * xdisp.c (Vdisplay_pixels_per_inch): New variable. 2513 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
2510 (Vshow_text_cursor_in_void): New variable. 2514 (Vshow_text_cursor_in_void): New variable.
2511 (glyph_to_pixel_coords): Don't use negative hpos. 2515 (glyph_to_pixel_coords): Don't use negative hpos.
2512 (x_y_to_hpos_vpos): Fix for partially visible first glyph. 2516 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
2513 (append_stretch_glyph): Change ascent arg to be actual value 2517 (append_stretch_glyph): Change ascent arg to be actual value
2514 in pixels rather than ratio to height. Callers changed. 2518 in pixels rather than ratio to height. Callers changed.
2515 (calc_pixel_width_or_height): New aux function, implementing 2519 (calc_pixel_width_or_height): New aux function, implementing
2516 pixel based artihmetic for glyph widths and heights. 2520 pixel based artihmetic for glyph widths and heights.
2517 (produce_stretch_glyph): Use calc_pixel_width_or_height for 2521 (produce_stretch_glyph): Use calc_pixel_width_or_height for
2518 :width, :height, :align-to, and :ascent, thus allowing these to 2522 :width, :height, :align-to, and :ascent, thus allowing these to
2519 be specified in pixels as well as multiples of characters. 2523 be specified in pixels as well as multiples of characters.
2711 Check that display for frame is equal to Display* argument. 2715 Check that display for frame is equal to Display* argument.
2712 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from 2716 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
2713 x_display_info_for_display instead. Use Display in xev instead 2717 x_display_info_for_display instead. Use Display in xev instead
2714 of GDK_DISPLAY. 2718 of GDK_DISPLAY.
2715 (x_dispatch_event): Call x_display_info_for_display. 2719 (x_dispatch_event): Call x_display_info_for_display.
2716 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed. 2720 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
2717 (x_connection_closed): Call xg_display_close for GTK. 2721 (x_connection_closed): Call xg_display_close for GTK.
2718 (x_term_init): Call xg_display_open for additional displays. 2722 (x_term_init): Call xg_display_open for additional displays.
2719 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor 2723 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
2720 for GTK. 2724 for GTK.
2721 2725
4213 x_output, w32_output, and mac_output structures. All uses changed. 4217 x_output, w32_output, and mac_output structures. All uses changed.
4214 (FRAME_PIXEL_HEIGHT): Renamed from PIXEL_HEIGHT and moved 4218 (FRAME_PIXEL_HEIGHT): Renamed from PIXEL_HEIGHT and moved
4215 from x/w32/macterm.h files. All uses changed. Also change code 4219 from x/w32/macterm.h files. All uses changed. Also change code
4216 which referred to f->output_data...->pixel_height. 4220 which referred to f->output_data...->pixel_height.
4217 (FRAME_PIXEL_WIDTH): Renamed from PIXEL_WIDTH and moved 4221 (FRAME_PIXEL_WIDTH): Renamed from PIXEL_WIDTH and moved
4218 from x/w32/macterm.h files. All uses changed. Also change code 4222 from x/w32/macterm.h files. All uses changed. Also change code
4219 which referred to f->output_data...->pixel_width. 4223 which referred to f->output_data...->pixel_width.
4220 (FRAME_LINES): Renamed from FRAME_HEIGHT. All uses changed. 4224 (FRAME_LINES): Renamed from FRAME_HEIGHT. All uses changed.
4221 Also change code which referred to f->height. 4225 Also change code which referred to f->height.
4222 (FRAME_COLS): Renamed from FRAME_WIDTH. All uses changed. 4226 (FRAME_COLS): Renamed from FRAME_WIDTH. All uses changed.
4223 Also change code which referred to f->width. 4227 Also change code which referred to f->width.
4523 (syms_of_window): Defsubr new defuns for fringe and scroll bars. 4527 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
4524 4528
4525 * xdisp.c: Make (many) trivial substitutions for renamed and 4529 * xdisp.c: Make (many) trivial substitutions for renamed and
4526 new macros in dispextern.h, frame.h and window.h. 4530 new macros in dispextern.h, frame.h and window.h.
4527 (window_box_width): Adapt to per-window fringes and scroll bars, 4531 (window_box_width): Adapt to per-window fringes and scroll bars,
4528 and new fringe vs. display margin position. Note that returned 4532 and new fringe vs. display margin position. Note that returned
4529 value is no longer guaranteed to be a whole multiple of the frame 4533 value is no longer guaranteed to be a whole multiple of the frame
4530 column width, since per-window fringes may now be any width. 4534 column width, since per-window fringes may now be any width.
4531 (window_box_left_offset): New function like window_box_left, but 4535 (window_box_left_offset): New function like window_box_left, but
4532 value is relative to left border of window (rather than frame). 4536 value is relative to left border of window (rather than frame).
4533 (window_box_right_offset): New function like window_box_right, 4537 (window_box_right_offset): New function like window_box_right,
5273 (enum FULLSCREEN_*): Remove. 5277 (enum FULLSCREEN_*): Remove.
5274 Remove prototypes for generic functions (in frame.h). 5278 Remove prototypes for generic functions (in frame.h).
5275 5279
5276 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame 5280 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
5277 parameters now defined in frame.h and frame.c. 5281 parameters now defined in frame.h and frame.c.
5278 (Vx_resource_name): Remove. Use generic var. 5282 (Vx_resource_name): Remove. Use generic var.
5279 (enum x_frame_parms): Remove (bogus, unused enum). 5283 (enum x_frame_parms): Remove (bogus, unused enum).
5280 (check_x_display_info): Make non-static (for frame.c). 5284 (check_x_display_info): Make non-static (for frame.c).
5281 (struct x_frame_parm_table, x_frame_parms): Remove. 5285 (struct x_frame_parm_table, x_frame_parms): Remove.
5282 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params) 5286 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
5283 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font) 5287 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
5293 toolbar and setup size_hint_flags. 5297 toolbar and setup size_hint_flags.
5294 (x_frame_parm_handlers): New table for redisplay_interface. 5298 (x_frame_parm_handlers): New table for redisplay_interface.
5295 (syms_of_xfns): Don't intern/staticpro removed vars. 5299 (syms_of_xfns): Don't intern/staticpro removed vars.
5296 5300
5297 * xterm.c: Remove unnecessary extern declarations. 5301 * xterm.c: Remove unnecessary extern declarations.
5298 (x_fullscreen_adjust): Remove. Use generic instead. 5302 (x_fullscreen_adjust): Remove. Use generic instead.
5299 (x_redisplay_interface): Add x_frame_parm_handlers member. 5303 (x_redisplay_interface): Add x_frame_parm_handlers member.
5300 5304
5301 * w32gui.h (XrmDatabase): New (dummy) typedef. 5305 * w32gui.h (XrmDatabase): New (dummy) typedef.
5302 5306
5303 * w32term.h (EMACS_CLASS): Remove. Use generic define. 5307 * w32term.h (EMACS_CLASS): Remove. Use generic define.
5305 (enum FULLSCREEN_*): Remove. 5309 (enum FULLSCREEN_*): Remove.
5306 (x_fullscreen_adjust): Remove prototype. 5310 (x_fullscreen_adjust): Remove prototype.
5307 5311
5308 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame 5312 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
5309 parameters now defined in frame.h and frame.c. 5313 parameters now defined in frame.h and frame.c.
5310 (Vx_resource_name): Remove. Use generic var. 5314 (Vx_resource_name): Remove. Use generic var.
5311 (enum x_frame_parms): Remove (bogus, unused enum). 5315 (enum x_frame_parms): Remove (bogus, unused enum).
5312 (check_x_display_info): Make non-static (for frame.c). 5316 (check_x_display_info): Make non-static (for frame.c).
5313 (struct x_frame_parm_table, x_frame_parms): Remove. 5317 (struct x_frame_parm_table, x_frame_parms): Remove.
5314 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params) 5318 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
5315 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font) 5319 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
5338 (struct mac_display_info): Add xrdb member. 5342 (struct mac_display_info): Add xrdb member.
5339 (struct mac_output): Add want_fullscreen member. 5343 (struct mac_output): Add want_fullscreen member.
5340 5344
5341 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame 5345 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
5342 parameters now defined in frame.h and frame.c. 5346 parameters now defined in frame.h and frame.c.
5343 (Vx_resource_name): Remove. Use generic var. 5347 (Vx_resource_name): Remove. Use generic var.
5344 (check_x_display_info): Make non-static (for frame.c). 5348 (check_x_display_info): Make non-static (for frame.c).
5345 (struct x_frame_parm_table, x_frame_parms): Remove. 5349 (struct x_frame_parm_table, x_frame_parms): Remove.
5346 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params) 5350 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
5347 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font) 5351 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
5348 (x_set_border_width, x_set_internal_border_width, x_set_visibility) 5352 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
6319 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for 6323 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
6320 local malloc. 6324 local malloc.
6321 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel 6325 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
6322 definitions in xpm.h. 6326 definitions in xpm.h.
6323 (init_xpm_functions): New function. 6327 (init_xpm_functions): New function.
6324 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm. 6328 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
6325 (init_external_image_libraries): Try to load libXpm.dll. 6329 (init_external_image_libraries): Try to load libXpm.dll.
6326 6330
6327 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting 6331 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
6328 timestamp. 6332 timestamp.
6329 6333
6348 2003-01-31 Juanma Barranquero <lektu@terra.es> 6352 2003-01-31 Juanma Barranquero <lektu@terra.es>
6349 6353
6350 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows 6354 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
6351 when including gif_lib.h. 6355 when including gif_lib.h.
6352 (init_gif_functions, init_tiff_functions): New functions. 6356 (init_gif_functions, init_tiff_functions): New functions.
6353 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for 6357 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
6354 Windows. Disable color table lookups. Call library functions 6358 Windows. Disable color table lookups. Call library functions
6355 through pointers determined at runtime. 6359 through pointers determined at runtime.
6356 (init_external_image_libraries): Try to load libungif.dll and 6360 (init_external_image_libraries): Try to load libungif.dll and
6357 libtiff.dll. 6361 libtiff.dll.
6358 6362
6359 2003-01-31 Kenichi Handa <handa@m17n.org> 6363 2003-01-31 Kenichi Handa <handa@m17n.org>
6415 6419
6416 2003-01-26 Jason Rumney <jasonr@gnu.org> 6420 2003-01-26 Jason Rumney <jasonr@gnu.org>
6417 6421
6418 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper): 6422 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
6419 New functions. 6423 New functions.
6420 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows. 6424 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
6421 Disable color table lookups. Call jpeg library functions 6425 Disable color table lookups. Call jpeg library functions
6422 through pointers determined at runtime. 6426 through pointers determined at runtime.
6423 (init_external_image_libraries): Try to load jpeg.dll. 6427 (init_external_image_libraries): Try to load jpeg.dll.
6424 6428
6425 2003-01-25 Richard M. Stallman <rms@gnu.org> 6429 2003-01-25 Richard M. Stallman <rms@gnu.org>
6426 6430
6453 6457
6454 2003-01-25 Jason Rumney <jasonr@gnu.org> 6458 2003-01-25 Jason Rumney <jasonr@gnu.org>
6455 6459
6456 * w32fns.c (XPutPixel): Handle monochrome images; used for masks. 6460 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
6457 [HAVE_PNG]: Sync with xfns.c version. 6461 [HAVE_PNG]: Sync with xfns.c version.
6458 (png_load): Adjust colors for Windows. Use Windows 6462 (png_load): Adjust colors for Windows. Use Windows
6459 bitmaps. Disable color table lookups. 6463 bitmaps. Disable color table lookups.
6460 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros. 6464 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
6461 (init_png_functions): New function. 6465 (init_png_functions): New function.
6462 (png_read_from_memory, png_load): Call png library functions 6466 (png_read_from_memory, png_load): Call png library functions
6463 through pointers determined at runtime. 6467 through pointers determined at runtime.
6464 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare. 6468 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
6551 (x-create-frame): Setup Cursor types. 6555 (x-create-frame): Setup Cursor types.
6552 6556
6553 2003-01-21 David Ponce <david@dponce.com> 6557 2003-01-21 David Ponce <david@dponce.com>
6554 6558
6555 * w32term.c (w32_encode_char): For DIM=1 charset, set 6559 * w32term.c (w32_encode_char): For DIM=1 charset, set
6556 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c 6560 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
6557 x_encode_char change by Kenichi Handa <handa@m17n.org> on 6561 x_encode_char change by Kenichi Handa <handa@m17n.org> on
6558 2002-09-30.) 6562 2002-09-30.)
6559 (w32_draw_relief_rect): Declare all args. 6563 (w32_draw_relief_rect): Declare all args.
6560 (w32_define_cursor): New. 6564 (w32_define_cursor): New.
6561 6565
7084 7088
7085 * w32.c (get_sid_identifier_authority): Perform initialization 7089 * w32.c (get_sid_identifier_authority): Perform initialization
7086 only if g_b_init_get_sid_identifier_authority is equal to 0. 7090 only if g_b_init_get_sid_identifier_authority is equal to 0.
7087 On initialization set g_b_init_get_sid_identifier_authority equal to 1. 7091 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
7088 7092
7089 * w32fns.c (globals_of_w32fns): New function. Used to initialize 7093 * w32fns.c (globals_of_w32fns): New function. Used to initialize
7090 those global variables that must always be initialized on startup 7094 those global variables that must always be initialized on startup
7091 even when the global variable initialized is non zero. 7095 even when the global variable initialized is non zero.
7092 Its primary purpose at this time is to initialize the global variable 7096 Its primary purpose at this time is to initialize the global variable
7093 track_mouse_event_fn. 7097 track_mouse_event_fn.
7094 7098
7095 * w32fns.c (w32_wnd_proc): Remove initialization of 7099 * w32fns.c (w32_wnd_proc): Remove initialization of
7096 track_mouse_event_fn from the handler for the WM_SETFOCUS message. 7100 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
7097 7101
7098 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns. 7102 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
7099 7103
7100 * w32menu.c (globals_of_w32menu): New function. Used to 7104 * w32menu.c (globals_of_w32menu): New function. Used to
7101 initialize those global variables that must always be initialized 7105 initialize those global variables that must always be initialized
7102 on startup even when the global variable initialized is non zero. 7106 on startup even when the global variable initialized is non zero.
7103 Its primary purpose at this time is to initialize the global 7107 Its primary purpose at this time is to initialize the global
7104 variables get_menu_item_info and set_menu_item_info. 7108 variables get_menu_item_info and set_menu_item_info.
7105 7109
9317 (Fx_file_dialog): Allow selecting directories as well as files. 9321 (Fx_file_dialog): Allow selecting directories as well as files.
9318 9322
9319 2002-06-21 Pavel Jan,Am(Bk <Pavel@Janik.cz> 9323 2002-06-21 Pavel Jan,Am(Bk <Pavel@Janik.cz>
9320 9324
9321 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and 9325 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
9322 OpenBSD. Add support for mipseb-*-netbsd* machines. 9326 OpenBSD. Add support for mipseb-*-netbsd* machines.
9323 9327
9324 2002-06-17 Andrew Choi <akochoi@shaw.ca> 9328 2002-06-17 Andrew Choi <akochoi@shaw.ca>
9325 9329
9326 * macterm.c (mac_scroll_area): Set foreground and backcolor to 9330 * macterm.c (mac_scroll_area): Set foreground and backcolor to
9327 black and white before scrolling. Restore frame background and 9331 black and white before scrolling. Restore frame background and
10719 argument list, support for datagrams, server processes, and local 10723 argument list, support for datagrams, server processes, and local
10720 sockets in addition to old client-only functionality. 10724 sockets in addition to old client-only functionality.
10721 (server_accept_connection): New function. 10725 (server_accept_connection): New function.
10722 (wait_reading_process_input): Use it to handle incoming connects. 10726 (wait_reading_process_input): Use it to handle incoming connects.
10723 Do not enable input on a new connection if process is stopped. 10727 Do not enable input on a new connection if process is stopped.
10724 (read_process_output): Handle datagram sockets. Use 2k buffer for them. 10728 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
10725 (send_process): Handle datagram sockets. 10729 (send_process): Handle datagram sockets.
10726 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped 10730 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
10727 network process is indicated by setting command field to t . 10731 network process is indicated by setting command field to t .
10728 (Fprocess_send_eof): No-op if datagram connection. 10732 (Fprocess_send_eof): No-op if datagram connection.
10729 (Fstatus_notify): Don't read input for a stream server socket or a 10733 (Fstatus_notify): Don't read input for a stream server socket or a
12305 12309
12306 * xterm.c (x_draw_fringe_bitmap): Always undo clipping. 12310 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
12307 12311
12308 2001-12-01 Jason Rumney <jasonr@gnu.org> 12312 2001-12-01 Jason Rumney <jasonr@gnu.org>
12309 12313
12310 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c. 12314 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
12311 12315
12312 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT) 12316 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
12313 [!WM_MOUSELEAVE]: Define. 12317 [!WM_MOUSELEAVE]: Define.
12314 12318
12315 * w32menu.c (current_popup_menu, get_menu_item_info): 12319 * w32menu.c (current_popup_menu, get_menu_item_info):
12357 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field. 12361 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
12358 (x_compute_fringe_widths): Add prototype. 12362 (x_compute_fringe_widths): Add prototype.
12359 12363
12360 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to 12364 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
12361 fill fringe evenly with small dashes. 12365 fill fringe evenly with small dashes.
12362 (x_draw_fringe_bitmap): Clear background if necessary. Align and 12366 (x_draw_fringe_bitmap): Clear background if necessary. Align and
12363 clip the new ZV bitmap to avoid jitter between rows. 12367 clip the new ZV bitmap to avoid jitter between rows.
12364 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear 12368 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
12365 background. Don't draw fringe bitmaps if fringe width is zero. 12369 background. Don't draw fringe bitmaps if fringe width is zero.
12366 (x_compute_fringe_widths): New function. 12370 (x_compute_fringe_widths): New function.
12367 (x_new_font, x_set_window_size_1): Use it. 12371 (x_new_font, x_set_window_size_1): Use it.
12422 12426
12423 * w32menu.c (add_menu_item): Do not use owner-draw for disabled 12427 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
12424 menu items. From David Ponce <dponce@wanadoo.fr>. 12428 menu items. From David Ponce <dponce@wanadoo.fr>.
12425 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function 12429 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
12426 conditionally. 12430 conditionally.
12427 (w32_menu_display_help): New argument OWNER. Rewritten to store a 12431 (w32_menu_display_help): New argument OWNER. Rewritten to store a
12428 help event in the owner frame's keyboard buffer. 12432 help event in the owner frame's keyboard buffer.
12429 12433
12430 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly. 12434 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
12431 (Fx_show_tip): Don't subtract last width from row width. 12435 (Fx_show_tip): Don't subtract last width from row width.
12432 12436
12538 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction. 12542 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
12539 (my_create_tip_window, Fx_show_tip): Adjust size for external border. 12543 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
12540 (my_create_tip_window): Assign tip_window. 12544 (my_create_tip_window): Assign tip_window.
12541 (x_create_tip_frame): Use same defaults as X. 12545 (x_create_tip_frame): Use same defaults as X.
12542 (compute_tip_xy): Remove unused variable. Use full screen width. 12546 (compute_tip_xy): Remove unused variable. Use full screen width.
12543 (Fx_show_tip): Do not double height. Call ShowWindow directly. 12547 (Fx_show_tip): Do not double height. Call ShowWindow directly.
12544 12548
12545 * w32term.c (x_after_update_window_line): Doc fix. 12549 * w32term.c (x_after_update_window_line): Doc fix.
12546 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip 12550 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
12547 frames. 12551 frames.
12548 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame. 12552 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
12775 them. Previously, they were called `flags areas', `bitmap areas', 12779 them. Previously, they were called `flags areas', `bitmap areas',
12776 `left/right side of windows', or implicitly as `flags' or 12780 `left/right side of windows', or implicitly as `flags' or
12777 `bitmaps': 12781 `bitmaps':
12778 12782
12779 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID. 12783 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
12780 Comments fixed. Use renamed symbols. 12784 Comments fixed. Use renamed symbols.
12781 12785
12782 * dispnew.c: Comment fix. Use renamed symbols. 12786 * dispnew.c: Comment fix. Use renamed symbols.
12783 12787
12784 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS. 12788 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
12785 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH. 12789 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
12786 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH. 12790 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
12787 12791
12788 * msdos.c: Comment fix. 12792 * msdos.c: Comment fix.
12789 12793
12790 * w32fns.c: Use renamed symbols. 12794 * w32fns.c: Use renamed symbols.
12791 12795
12792 * w32term.c: Comment fixes. Use renamed symbols. 12796 * w32term.c: Comment fixes. Use renamed symbols.
12793 (fringe_bitmap_type): Renamed from bitmap_type. 12797 (fringe_bitmap_type): Renamed from bitmap_type.
12794 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP. 12798 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
12795 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap. 12799 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
12796 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps. 12800 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
12797 12801
12798 * w32term.h: Comment fixes. Use renamed symbols. 12802 * w32term.h: Comment fixes. Use renamed symbols.
12799 (fringes_extra): Renamed from flags_areas_extra. 12803 (fringes_extra): Renamed from flags_areas_extra.
12800 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH. 12804 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
12801 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT. 12805 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
12802 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS. 12806 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
12803 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH. 12807 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
12806 (FRAME_X_RIGHT_FRINGE_WIDTH): 12810 (FRAME_X_RIGHT_FRINGE_WIDTH):
12807 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH. 12811 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
12808 12812
12809 * widget.c: Use renamed symbols. 12813 * widget.c: Use renamed symbols.
12810 12814
12811 * window.c: Comment fixes. Use renamed symbols. 12815 * window.c: Comment fixes. Use renamed symbols.
12812 (coordinates-in-window-p): Doc fix. 12816 (coordinates-in-window-p): Doc fix.
12813 12817
12814 * xdisp.c: Comment fixes. Use renamed symbols. 12818 * xdisp.c: Comment fixes. Use renamed symbols.
12815 12819
12816 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID. 12820 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
12817 12821
12818 * xfns.c: Use renamed symbols. 12822 * xfns.c: Use renamed symbols.
12819 12823
12820 * xterm.c: Comment fixes. Use renamed symbols. 12824 * xterm.c: Comment fixes. Use renamed symbols.
12821 (fringe_bitmap_type): Renamed from bitmap_type. 12825 (fringe_bitmap_type): Renamed from bitmap_type.
12822 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP. 12826 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
12823 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap. 12827 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
12824 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps. 12828 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
12825 12829
12826 * xterm.h: Comment fixes. Use renamed symbols. 12830 * xterm.h: Comment fixes. Use renamed symbols.
12827 (fringes_extra): Renamed from flags_areas_extra. 12831 (fringes_extra): Renamed from flags_areas_extra.
12828 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH. 12832 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
12829 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT. 12833 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
12830 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS. 12834 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
12831 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH. 12835 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
12939 minibuffer windows when they are not selected. 12943 minibuffer windows when they are not selected.
12940 12944
12941 2001-11-12 Jason Rumney <jasonr@gnu.org> 12945 2001-11-12 Jason Rumney <jasonr@gnu.org>
12942 12946
12943 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c, 12947 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
12944 * w32term.c: Change doc-string comments to `new style'. 12948 * w32term.c: Change doc-string comments to `new style'
12945 [w/`doc:' keyword]. Doc fixes. 12949 [w/`doc:' keyword]. Doc fixes.
12946 12950
12947 * w32fns.c: Don't define max. 12951 * w32fns.c: Don't define max.
12948 (Fx_open_connection): Only execute once. 12952 (Fx_open_connection): Only execute once.
12949 12953
12950 2001-11-12 Pavel Jan,Am(Bk <Pavel@Janik.cz> 12954 2001-11-12 Pavel Jan,Am(Bk <Pavel@Janik.cz>
12975 surrounding text. 12979 surrounding text.
12976 12980
12977 2001-11-10 Jason Rumney <jasonr@gnu.org> 12981 2001-11-10 Jason Rumney <jasonr@gnu.org>
12978 12982
12979 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect 12983 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
12980 vertical fonts. Allow them if face name is explicitly specified. 12984 vertical fonts. Allow them if face name is explicitly specified.
12981 Do not give up if we find a font that cannot be converted to an xlfd. 12985 Do not give up if we find a font that cannot be converted to an xlfd.
12982 12986
12983 2001-11-10 Gerd Moellmann <gerd@gnu.org> 12987 2001-11-10 Gerd Moellmann <gerd@gnu.org>
12984 12988
12985 * unexelf.c (unexec): Use mmap/munmap to allocate buffers 12989 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
13785 box just because the glyph row's full_width_p flag is set. 13789 box just because the glyph row's full_width_p flag is set.
13786 (x_draw_glyphs): Fix computation of rightmost x for 13790 (x_draw_glyphs): Fix computation of rightmost x for
13787 full-width rows. 13791 full-width rows.
13788 (x_dump_glyph_string): Put in #if GLYPH_DEBUG. 13792 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
13789 (w32_draw_relief_rect): Extend left shadow to the bottom and left; 13793 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
13790 change bottom shadow accordingly. Some cleanup. 13794 change bottom shadow accordingly. Some cleanup.
13791 (x_update_window_end): Handle overwritten mouse face 13795 (x_update_window_end): Handle overwritten mouse face
13792 also for tool bar windows. 13796 also for tool bar windows.
13793 (show_mouse_face): Set the glyph row's mouse_face_p flag also when 13797 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
13794 DRAW is DRAW_IMAGE_RAISED. 13798 DRAW is DRAW_IMAGE_RAISED.
13795 (clear_mouse_face): Return 1 if text with mouse face was 13799 (clear_mouse_face): Return 1 if text with mouse face was
13831 specifications. Previous code could signal an error. 13835 specifications. Previous code could signal an error.
13832 (Fx_hide_tip, Fshow_tip): Doc fix. 13836 (Fx_hide_tip, Fshow_tip): Doc fix.
13833 (Fv_max_tooltip_size): New variable. 13837 (Fv_max_tooltip_size): New variable.
13834 (syns_of_xfns): DEFVAR_LISP it. 13838 (syns_of_xfns): DEFVAR_LISP it.
13835 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root 13839 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
13836 window buffer to *tip* right after creating the frame. Set frame's 13840 window buffer to *tip* right after creating the frame. Set frame's
13837 window_width. Use a maximum tooltip size specified by 13841 window_width. Use a maximum tooltip size specified by
13838 Vx_max_tooltip_size, if that has valid contents. 13842 Vx_max_tooltip_size, if that has valid contents.
13839 (compute_tip_xy): Add parameters WIDTH and HEIGHT. 13843 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
13840 Make sure the tooltip is completely visible. 13844 Make sure the tooltip is completely visible.
13841 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil. 13845 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.