1 2004-12-28 Richard M. Stallman <rms@gnu.org>
3 * xdisp.c (back_to_previous_visible_line_start):
4 Don't call handle_display_prop.
6 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
8 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
9 (decode_coding_emacs_mule, encode_coding_emacs_mule)
10 (decode_coding_iso2022, encode_designation_at_bol)
11 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
12 (decode_coding): Constify arguments and local vars.
14 2004-12-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16 * xmenu.c (popup_get_selection): Only pop down dialogs
18 (popup_get_selection): Remove parameter down_on_keypress.
19 (create_and_show_popup_menu, create_and_show_dialog): Remove
20 parameter down_on_keypress to popup_get_selection.
22 2004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24 * dispextern.h: Change HAVE_CARBON to MAC_OS.
25 (struct glyph_string): Likewise.
26 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
28 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
29 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
30 * fns.c (vector): Change MAC_OSX to MAC_OS.
31 * frame.c (x_set_frame_parameters, x_report_frame_params)
32 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
33 (x_set_border_width, Vdefault_frame_scroll_bars): Change
34 HAVE_CARBON to MAC_OS.
35 * image.c [MAC_OS]: Include sys/stat.h.
36 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
37 QuickTimeComponents.h.
38 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
39 [!MAC_OSX] (select): Use mac_wait_next_event.
40 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to
42 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
43 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
44 (mac_clear_font_name_table): Add extern.
45 (Fmac_clear_font_name_table): New defun.
46 (syms_of_mac): Defsubr it.
47 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
48 [MAC_OSX] (select_and_poll_event): New function.
49 [MAC_OSX] (sys_select): Use it.
50 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
51 [MAC_OSX && SELECT_USE_CFSOCKET]
52 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
53 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
54 RunLoop for simultaneously monitoring two kinds of inputs, window
55 events and process outputs, without periodically polling.
56 * macfns.c (mac_initialized): Remove extern.
57 (stricmp): Put in #if 0. All callers changed to use xstricmp in
59 (strnicmp): Decrement `n' at the end of each loop, not the
61 (check_mac): Use the term "Mac native windows" instead of "Mac
63 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
64 (mac_get_rdb_resource): New function (from w32reg.c).
65 (x_get_string_resource): Use it.
66 (install_window_handler): Add extern.
67 (mac_window): New function.
68 (Fx_create_frame): Use it instead of make_mac_frame. Set
69 parameter for Qfullscreen. Call x_wm_set_size_hint.
70 (Fx_open_connection, Fx_close_connection): New defuns.
71 (syms_of_macfns): Defsubr them.
72 (x_create_tip_frame) [TARGET_API_MAC_CARBON]: Add
73 kWindowNoUpdatesAttribute to the window attribute.
74 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
75 (x_create_tip_frame): Don't call ShowWindow.
76 (Fx_show_tip): Call ShowWindow.
77 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
78 TARGET_API_MAC_CARBON'.
79 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
80 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
81 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include
83 (Window): Typedef to WindowPtr and move outside `#if
84 TARGET_API_MAC_CARBON'.
85 (XSizeHints): New struct.
86 * macterm.c (x_update_begin, x_update_end)
87 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
89 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
90 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
91 (construct_mouse_click): Put in #if 0.
92 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
93 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
94 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
95 (activate_scroll_bars, deactivate_scroll_bars)
96 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
97 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
98 if the position is neither user-specified nor program-specified.
99 (x_free_frame_resources): Free size_hints.
100 (x_wm_set_size_hint): Allocate size_hints if needed. Set
102 (mac_clear_font_name_table): New function.
103 (mac_do_list_fonts): Initialize font_name_table if needed.
104 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
105 around mac_do_list_fonts.
106 (mac_unload_font): New function.
107 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
108 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
109 and definitions with #if TARGET_API_MAC_CARBON.
110 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
111 (install_window_handler): Add decl.
112 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
113 window. Use UpdateControls. Get the rectangle that should be
114 updated and restrict the target of expose_frame to it.
115 (do_grow_window): Set minimum height/width according to
117 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
118 (do_zoom_window): Don't use x_set_window_size.
119 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
120 (install_window_handler): New function.
121 [!USE_CARBON_EVENTS] (mouse_region): New variable.
122 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
123 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
124 GetEventDispatcherTarget inside BLOCK_INPUT.
125 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
126 Update mouse_region when mouse is moved.
127 (make_mac_frame): Remove.
128 (make_mac_terminal_frame): Put in #ifdef MAC_OS8. Initialize
129 mouse pointer shapes. Change values of f->left_pos and
130 f->top_pos. Don't use make_mac_frame. Use NewCWindow. Don't
132 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
133 Vinvocation_name and Vsystem_name.
134 (mac_make_rdb): New function (from w32term.c).
135 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
136 already been opened. Don't pass argument to
137 mac_initialize_display_info. Don't set dpyinfo->height/width.
138 Add entries to x_display_list and x_display_name_list.
139 (x_delete_display): New function.
140 (mac_initialize): Don't call mac_initialize_display_info.
141 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
142 * macterm.h (check_mac): Add extern.
143 (struct mac_output): New member size_hints.
144 (FRAME_SIZE_HINTS): New macro.
145 (mac_unload_font): Add extern.
146 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
147 * xfaces.c (clear_font_table) [MAC_OS]: call mac_unload_font.
149 2004-12-27 Richard M. Stallman <rms@gnu.org>
151 * buffer.c (Fbuffer_disable_undo): Deleted (moved to simple.el).
152 (syms_of_buffer): Don't defsubr it.
154 * process.c (list_processes_1): Set undo_list instead
155 of calling Fbuffer_disable_undo.
157 * xdisp.c (single_display_spec_string_p): Renamed from
158 single_display_prop_string_p.
159 (single_display_spec_intangible_p): Renamed from
160 single_display_prop_intangible_p.
161 (handle_single_display_spec): Renamed from handle_single_display_prop.
162 Rewritten to be easier to understand.
164 * Change in load-history format. Functions now get (defun . NAME),
165 and variables get just NAME.
167 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
169 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
170 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
171 (Qdefvar): Var deleted.
172 (syms_of_eval): Don't initialze it.
174 * lread.c (syms_of_lread) <load-history>: Doc fix.
176 2004-12-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
178 * xmenu.c (popup_get_selection): Pop down on C-g.
179 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
180 pops down menu on C-g.
181 (xdialog_show): If dialog popped down and no button in the dialog was
182 pushed, call Fsignal to quit.
183 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
186 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
188 * gtkutil.c (xg_initialize): Install bindings for C-g so that
189 dialogs and menus pop down.
191 2004-12-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
193 * gtkutil.c (update_frame_tool_bar): Make the value of
194 tool-bar-button-margin control margins of images in tool bar.
196 * alloc.c (check_depth): New variable.
197 (overrun_check_malloc, overrun_check_realloc): Only add
198 overhead and write check pattern if check_depth is 1 (to handle
199 recursive calls). Increase/decrease check_depth in entry/exit.
200 (overrun_check_free): Only check for overhead if check_depth is 1.
201 Increase/decrease check_depth in entry/exit.
203 2004-12-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
205 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
206 before touching input_available_clear_time, to avoid accessing it
207 from multiple threads.
209 2004-12-23 Jason Rumney <jasonr@gnu.org>
211 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
214 2004-12-22 Richard M. Stallman <rms@gnu.org>
216 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
218 * lisp.h (Vundo_outer_limit): Fix decl.
220 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
222 (syms_of_undo): Initialize appropriately.
223 (truncate_undo_list): If it's nil, there's no limit.
225 2004-12-22 Kenichi Handa <handa@m17n.org>
227 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
229 2004-12-21 Richard M. Stallman <rms@gnu.org>
231 * eval.c (unwind_to_catch): Clear immediate_quit.
233 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
234 specially as `\ ' and `\-'.
236 * keyboard.c (kbd_buffer_store_event_hold):
237 In the code for while-no-input, handle immediate_quit.
239 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
240 Call that at the very start.
241 (undo_limit, undo_strong_limit, undo_outer_limit): Moved to undo.c.
242 (syms_of_alloc): Don't define undo-limit,
243 undo-strong-limit and undo-outer-limit here.
245 * undo.c (truncate_undo_list): Return void.
246 Take just one argument, the buffer.
247 Make it current, and inhibit recursive GC.
248 Access and update the undo list directly; return void.
249 Refer to the undo...limit variables directly.
250 Test undo_outer_limit only after counting the whole current command.
251 When it's exceeded, call the function in undo-outer-limit-function.
252 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
253 (Vundo_outer_limit_function): New variable.
254 (syms_of_undo): Define undo-limit, undo-strong-limit
255 and undo-outer-limit here, and undo-outer-limit-function.
258 * lisp.h (truncate_undo_list): Update decl.
260 2004-12-21 Piet van Oostrum <piet@cs.uu.nl>
262 * fileio.c (Fread_file_name): Delete duplicates in
263 file-name-history when history_delete_duplicates is true.
265 2004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
267 * macterm.c (mac_do_list_fonts): Fix memory leak
269 2004-12-20 Richard M. Stallman <rms@gnu.org>
271 * regex.c (re_match_2_internal) <symend, wordend>:
272 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
274 2004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
276 * macterm.c (endif, x_font_name_to_mac_font_name): Use
277 maccentraleurroman instead of maccentraleuropean
278 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
279 quickly finding a specific font without needing regexps.
281 2004-12-15 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
283 * syssignal.h: Declare main_thread.
284 (SIGNAL_THREAD_CHECK): New macro.
286 * keyboard.c (input_available_signal): Move thread checking code
287 to macro SIGNAL_THREAD_CHECK and call that macro.
288 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
290 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
292 * emacs.c: Define main_thread.
293 (main): Initialize main_thread.
294 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
295 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
297 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
299 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
301 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
303 * process.c (send_process_trap, sigchld_handler): Call
306 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
308 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
310 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
311 returning when xg_ignore_gtk_scrollbar is true.
313 2004-12-14 Kim F. Storm <storm@cua.dk>
315 * keyboard.c (read_char): Save and restore echo_string when
316 handling input method.
318 2004-12-13 Richard M. Stallman <rms@gnu.org>
320 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
322 * keyboard.c (Vthrow_on_input): New variable.
323 (syms_of_keyboard): Defvar and initialize it.
324 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
326 * lisp.h (QUIT): Check for Vthrow_on_input.
327 (Vthrow_on_input): Declare it.
329 2004-12-13 Kim F. Storm <storm@cua.dk>
331 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
334 2004-12-12 Richard M. Stallman <rms@gnu.org>
336 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
338 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
339 (Ftry_completion): Really use outer `zero'; eliminate inner one.
341 2004-12-12 Kenichi Handa <handa@m17n.org>
343 * term.c (encode_terminal_code): Fix previous change.
345 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
347 * keyboard.c (handle_async_input): Remove pthread mutex handling.
348 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
350 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
353 * minibuf.c (Ftry_completion, Fall_completions): Don't use
356 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
358 2004-12-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
360 * w32term.c (x_calc_absolute_position): Remove calculation of
361 difference between inner and outer window. Don't subtract difference
362 for left and top calculations.
364 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
365 for left and top calculations. Remove call to x_real_positions.
366 [Bug report by Drew Adams in November]
367 (x_check_expected_move): Do not set change_gravity to 1 when calling
370 2004-12-08 Richard M. Stallman <rms@gnu.org>
372 * xdisp.c (get_next_display_element): Use `escape-glyph' for
373 control chars and escaped octal codes.
374 (Qescape_glyph): New variable.
375 (syms_of_xdisp): Initialize it.
376 (escape_glyph_face): New variable.
377 (redisplay_window): Initialize it.
379 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
381 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
382 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
384 2004-12-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
386 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
389 * keyboard.c (handle_async_input, input_available_signal):
390 Add ! defined (SYSTEM_MALLOC) around thread code.
392 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
394 2004-12-07 Stefan <monnier@iro.umontreal.ca>
396 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
398 * config.in: Regenerate.
400 2004-12-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
402 * xmenu.c (Fx_popup_menu): Correct documentation about position.
403 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
404 if not given by a mouse click to correspond with x-popup-menu
407 * config.in: Regenerate.
409 * gtkutil.c: Include signal.h and syssignal.h.
410 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
412 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
413 new variables main_thread and alloc_mutex,
414 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
415 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
416 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
418 (emacs_blocked_free, emacs_blocked_malloc)
419 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
420 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
421 (reset_malloc_hooks): New function.
423 * lisp.h: Declare reset_malloc_hooks.
425 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
427 * keyboard.c: Conditionally include pthread.h
428 (handle_async_input, input_available_signalt): If not in the main
429 thread, block signal, send signal to main thread and return.
431 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
432 Set current folder in file chooser if default_filename is a directory.
434 2004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
436 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
437 Remove redundant correctness checks.
438 (regex_compile): Fix up error codes for \{..\} expressions.
440 2004-12-05 Richard M. Stallman <rms@gnu.org>
442 * regex.c (regex_compile): Fix end-of-pattern case for space.
444 2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
446 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
447 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
448 crashes with invalid characters.
449 * macmenu.c (add_menu_item): Use it.
450 * image.c (image_load_quartz2d): Likewise.
451 * macfns.c (x_set_name, x_set_title): Likewise.
452 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
453 creating them each time for labels.
455 2004-12-02 Richard M. Stallman <rms@gnu.org>
457 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
460 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
461 (interactive_p): Skip Scalled_interactively_p frames
462 like Sinteractive_p frames.
463 (unwind_to_catch): Clear handling_signal.
465 * data.c (Fmake_variable_buffer_local): Doc fix.
466 (Fmake_local_variable): Doc fix.
468 * insdel.c (insert_from_string_before_markers)
469 (insert_from_string): Don't modify buffer on empty insertion.
471 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
473 2004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
475 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
476 menu text as UTF8 fails.
478 2004-12-01 Kim F. Storm <storm@cua.dk>
480 * alloc.c: Add commentary for last change.
481 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
483 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
484 Use them. Also clear header and trailer of freed memory.
485 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
486 (string_overrun_cookie): Rename from string_overrun_pattern.
487 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
489 2004-12-01 Andreas Schwab <schwab@suse.de>
491 * lisp.h: Declare string_to_multibyte.
493 2004-12-01 Kenichi Handa <handa@m17n.org>
495 * w32console.c (w32con_write_glyphs): Decide coding here.
496 Adjusted for the change of encode_terminal_code.
498 * term.c (encode_terminal_code): Don't make it "static".
500 2004-11-30 Kenichi Handa <handa@m17n.org>
502 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
503 (encode_terminal_code): Argument changed. Encode all
504 characters at once, and return a pointer to the result of encoding.
505 (write_glyphs): Decide coding here. Adjusted for the above change.
506 (insert_glyphs): Likewise.
507 (term_init): Initialize encode_terminal_bufsize to 0.
509 * coding.c (Vcode_conversion_workbuf_name): New variable.
510 (syms_of_coding): Initialize and staticpro it.
511 (set_conversion_work_buffer): New function.
512 (run_pre_post_conversion_on_str): Use it.
513 (run_pre_write_conversin_on_c_str): New function.
515 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
517 2004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
519 * keyboard.c: Don't undef SIGIO
520 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
521 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
522 (macfns.o): Don't depend on ccl.h.
523 * macfns.c (mac_frame_parm_handlers): Set handlers for
524 Qleft_fringe and Qright_fringe.
525 * macterm.c (mac_fill_rectangle_to_pixmap)
526 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
527 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
529 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
530 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
531 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
532 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
533 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
534 XDrawImageString. Always draw background and foreground separately.
535 (x_draw_image_foreground): Use clipping instead of computing the
536 intersection rectangle.
537 (x_draw_image_glyph_string): Don't draw an image with mask to a
539 (x_redisplay_interface): Set flush_display_optional member to 0.
540 (XTread_socket): Correctly reset the TEConverter
543 2004-11-30 Kim F. Storm <storm@cua.dk>
545 * lisp.h: New defines to enable buffer overrun checking.
546 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
547 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
549 * alloc.c: Add more checks for buffer overruns.
550 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
551 xmalloc_overrun_check_trailer, overrun_check_malloc)
552 overrun_check_realloc, overrun_check_free): Add.
553 (GC_STRING_EXTRA, string_overrun_pattern): Add.
554 (check_sblock, allocate_string_data, compact_small_strings):
555 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
556 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
557 (check_string_free_list): Add.
558 (allocate_string, sweep_strings): Call check_string_free_list.
560 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
561 XMALLOC_OVERRUN_CHECK to avoid crash during load.
563 2004-11-29 Kim F. Storm <storm@cua.dk>
565 * fns.c (concat): Use SAFE_ALLOCA.
567 2004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
569 * sysdep.c (emacs_write): Don't use QUIT.
571 2004-11-29 Kenichi Handa <handa@m17n.org>
573 * buffer.c (init_buffer): Set current_buffer->directory to a
574 multibyte string made by string_to_multibyte.
576 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
578 2004-11-27 Andreas Schwab <schwab@suse.de>
580 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
582 * s/gnu-linux.h: Enable no-op gcpros on ia64.
583 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
585 * filelock.c (lock_file_1): Call get_boot_time early.
586 Increase buffer size.
588 2004-11-27 Eli Zaretskii <eliz@gnu.org>
590 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
593 2004-11-27 Kim F. Storm <storm@cua.dk>
595 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
596 marker out of doc string.
598 2004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
600 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
601 which was not mentioned in the log.
603 2004-11-26 Kim F. Storm <storm@cua.dk>
605 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
606 angle bitmaps at top/bottom line.
608 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
609 set it when it->method is set to next_element_from_display_vector.
610 (setup_for_ellipsis): Add LEN argument. Callers changed.
611 Set it->saved_face_id.
612 (get_next_display_element): Use loop instead of recursion.
613 Set it->saved_face_id. Combine duplicate code for ctr chars.
614 (next_element_from_display_vector): Do not set it->saved_face_id.
615 (next_element_from_ellipsis): Use setup_for_ellipsis.
617 2004-11-26 Eli Zaretskii <eliz@gnu.org>
619 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
620 prevent compiler warnings.
622 2004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
624 * keyboard.c (command_loop_1): Print a message describing the key
625 the user just pressed when this key has no binding.
627 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
628 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
630 * lread.c (readchar): Check QUIT when `getc' is interrupted.
632 2004-11-24 Richard M. Stallman <rms@gnu.org>
634 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
636 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
638 2004-11-24 Kim F. Storm <storm@cua.dk>
640 * xdisp.c (move_it_in_display_line_to, display_line):
641 Restore saved_face_id also when truncate-lines or hscrolled.
643 2004-11-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
645 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
646 x-use-old-gtk-file-dialog.
648 * xfns.c: Define x_use_old_gtk_file_dialog.
649 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
650 outside ifdef USE_GTK.
652 2004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
654 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
655 Don't use XFASTINT blindly.
657 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
659 * indent.c (skip_invisible): Avoid non-idempotent side-effects
662 * keymap.c (Flookup_key): Check INTEGERP before XINT.
664 * lread.c (oblookup): Don't use XFASTINT blindly.
666 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
667 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
669 2004-11-23 Kim F. Storm <storm@cua.dk>
671 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
672 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
674 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
675 signal_p is zero and face name is unknown.
676 (Fx_list_fonts): Don't signal error in lookup_named_face.
677 (Fface_font): Signal error in lookup_named_face.
678 (ascii_face_of_lisp_face): Likewise.
680 * dispextern.h (lookup_named_face): Fix prototype.
682 * xdisp.c (handle_single_display_prop): Don't signal error in
683 lookup_named_face for unknown fringe face name.
684 (highlight_trailing_whitespace): Don't signal error in
685 lookup_named_face if trailing-whitespace face unknown.
686 (calc_line_height_property): Don't signal error in
687 lookup_named_face if specified face name is unknown.
689 * fringe.c (update_window_fringes): Show top row indicator if
690 window has header-line. Don't show arrow at bob and eob
691 if the boundary indicators are not used.
692 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
694 * window.c (set_window_buffer): Clear display_error_modiff.
696 2004-11-22 Kim F. Storm <storm@cua.dk>
698 * fringe.c (update_window_fringes): Provide sensible fall-back
699 value for non-nil indicate-buffer-boundaries setting.
701 2004-11-22 Markus Rost <rost@ias.edu>
703 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
705 2004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
707 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
709 2004-11-21 Kim F. Storm <storm@cua.dk>
711 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
713 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
714 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
716 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
717 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
719 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
720 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
722 * xdisp.c (move_it_in_display_line_to, display_line):
723 Restore saved_face_id if overflow-newline-into-fringe is enabled and
724 line is continued before or in middle of element from display vector.
726 * indent.c (Fvertical_motion): Fix last change. Use another
727 method to detect if iterator moved too far ahead after reseat.
729 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
730 expand matrix width for overflow in zero-width area.
731 (append_glyph, append_composite_glyph, produce_image_glyph)
732 (append_stretch_glyph): Use it to avoid loop in redisplay.
733 (note_mode_line_or_margin_highlight): Don't let help-echo from
734 string override help-echo from image map.
736 2004-11-20 Luc Teirlinck <teirllm@auburn.edu>
738 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
739 * callint.c (Fcall_interactively): Ditto.
741 2004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
743 * minibuf.c (Fminibuffer_complete_and_exit):
744 Fixup the case of the completed value, for case-indep completion.
746 2004-11-20 Richard M. Stallman <rms@gnu.org>
748 * lisp.h (Fread_from_minibuffer): Add arg in decl.
750 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
751 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
753 * search.c (Vsearch_spaces_regexp):
754 Rename from Vsearch_whitespace_regexp. All uses changed.
756 2004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
758 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
760 2004-11-19 Richard M. Stallman <rms@gnu.org>
762 * search.c (Vsearch_whitespace_regexp): New variable.
763 (syms_of_search): Defvar it.
764 (compile_pattern_1): Call re_set_whitespace_regexp with it.
765 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
767 (struct regexp_cache): New element whitespace_regexp.
768 (syms_of_search): Initialize whitespace_regexp elements.
769 (compile_pattern): Compare whitespace_regexp elements.
770 (compile_pattern_1): Set whitespace_regexp elements.
772 * regex.c (regex_compile): Substitute whitespace_regexp
773 for spaces, if it is nonzero.
774 (whitespace_regexp): New variable.
775 (re_set_whitespace_regexp): New function.
777 2004-11-19 Kim F. Storm <storm@cua.dk>
779 * indent.c (Fvertical_motion): Fix last change.
781 2004-11-18 Kim F. Storm <storm@cua.dk>
783 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
784 Instead, move back again if reseating moves too far ahead.
786 2004-11-17 Luc Teirlinck <teirllm@auburn.edu>
788 * xdisp.c (message3): Call clear_message.
790 2004-11-17 Kim F. Storm <storm@cua.dk>
792 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
794 2004-11-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
796 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
798 * xmenu.c (x_menu_in_use): Remove.
799 (x_menu_set_in_use): Also set popup_activated_flag.
801 * xfns.c (Fx_file_dialog): Call popup_activated instead of
802 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
804 * xterm.h: (x_menu_in_use): Remove.
806 2004-11-16 Richard M. Stallman <rms@gnu.org>
808 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
809 Use map-keymap-internal to implement that.
811 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
813 2004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
815 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
816 a window before using XWINDOW.
818 * window.c (make_window, Fselect_window, make_dummy_parent)
820 * frame.c (make_frame):
821 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
823 * lisp.h (NILP): Use EQ rather than XFASTINT.
825 2004-11-16 Kim F. Storm <storm@cua.dk>
827 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
829 * indent.c (Fvertical_motion): Fix last change. Only reseat when
832 2004-11-16 Luc Teirlinck <teirllm@auburn.edu>
834 * dispextern.h: Extern reseat_at_previous_visible_line_start.
836 2004-11-16 Kenichi Handa <handa@m17n.org>
838 * xdisp.c (display_mode_element): Fix previous change (calculate
839 end position of substring to display correctly).
841 2004-11-16 Kim F. Storm <storm@cua.dk>
843 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
844 Reported by Andrew M. Scott.
846 2004-11-15 Kim F. Storm <storm@cua.dk>
848 * fns.c (Fsafe_plist_get): New defun.
849 (syms_of_fns): Defsubr it.
851 * lisp.h (Fsafe_plist_get): Add EXFUN.
853 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
855 (note_mode_line_or_margin_highlight, note_mouse_highlight):
856 Fix image map element parsing. Use Fsafe_plist_get.
858 2004-11-15 Richard M. Stallman <rms@gnu.org>
860 * xdisp.c (get_next_display_element): Fix previous change.
862 2004-11-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
864 * window.c (shrink_windows): Handle special case of one window left
865 when trying to shrink the final reminder. Grow windows if
866 total_removed is less than total_shrink.
868 * xmenu.c (pop_down_menu): Remove global variable current_menu,
869 extract pointer from arg with XSAVE_VALUE.
870 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
871 Construct arg to record_unwind_protect with make_save_value.
873 2004-11-13 Richard M. Stallman <rms@gnu.org>
875 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
876 (get_next_display_element): Fix previous change to apply only to \n.
878 * indent.c (Fvertical_motion): Scan to PT from start of line to
879 make iterator consistent.
881 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
883 2004-11-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
885 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
887 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
888 Record unwind with clean_up_file_dialog.
890 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
893 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
895 2004-11-13 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
897 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
898 (xg_file_sel_destroy): Remove.
899 (xg_file_response_cb, pop_down_file_dialog)
900 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
902 (xg_get_file_with_chooser, xg_get_file_with_selection):
903 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
904 Move common code to xg_get_file_name. Return widget created.
905 (xg_get_file_name): Set name, transient for, modal and destroy
906 with parent here. Connect response signal to xg_file_response_cb,
907 connect delete-event to gtk_true. Record pop_down_file_dialog
908 for unwind. Do event loop and call x_menu_wait_for_event in loop.
909 (xg_create_widget): Make dialogs modal.
911 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
913 (popup_get_selection): Move unwind protect ...
914 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
915 Move destroy of widget to pop_down_menu.
916 (popup_widget_loop): Move unwind protect ...
917 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
918 Move destroy of widget to pop_down_menu.
919 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
920 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
921 x_mouse_leave and grabbed = 0 to pop_down_menu.
923 2004-11-13 Kim F. Storm <storm@cua.dk>
925 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
926 (syms_of_xdisp): DEFVAR_BOOL it.
927 (make_cursor_line_fully_visible, try_cursor_movement)
928 (try_window_id): Use it.
930 2004-11-12 Kim F. Storm <storm@cua.dk>
932 * dispextern.h (struct glyph_row): New member extra_line_spacing.
933 (struct it): New member max_extra_line_spacing.
934 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
935 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
936 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
937 part of last line is only extra line spacing (so the text on the
938 line is fully visible). Use helper macros.
939 Add W arg (to use them). All callers changed.
940 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
941 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
943 * window.c (window_scroll_pixel_based, Frecenter):
944 Use move_it_vertically_backward directly.
945 (Frecenter): Fix calculation of new start pos for negative arg.
946 Before, the new start pos was sometimes chosen too far back, so
947 the last line became only partially visible, and thus would be
948 either only semi-visible or automatically scrolled to the middle
949 of the window by redisplay.
951 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
952 (move_it_vertically_backward): Don't recure to move further back.
953 (move_it_vertically): Remove superfluous condition.
954 (move_it_by_lines): Clear last_height when moved 0 lines.
955 (resize_mini_window): Use it.max_extra_line_spacing.
956 (display_tool_bar_line): Clear row->extra_line_spacing.
957 (try_scrolling): Use move_it_vertically_backward directly.
958 (redisplay_window): Likewise.
959 (compute_line_metrics): Set row->extra_line_spacing.
960 (display_line, display_string): Likewise.
961 (x_produce_glyphs): Update it->max_extra_line_spacing.
963 * xmenu.c (pop_down_menu): Return nil.
965 2004-11-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
967 * xmenu.c (x_menu_wait_for_event): New function.
968 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
970 (popup_widget_loop): Add argument do_timers.
971 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
972 do_timers to popup_widget_loop.
973 (xmenu_show): Call XMenuActivateSetWaitFunction so that
974 x_menu_wait_for_event is called by XMenuActivate.
975 (create_and_show_popup_menu): Pass 1 for do_timers to
977 (pop_down_menu): New function.
978 (popup_get_selection, popup_widget_loop): Unwind protect to
980 (popup_widget_loop): Add argument widget.
981 (create_and_show_popup_menu, create_and_show_dialog): Pass new
982 argument widget to popup_widget_loop.
984 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
986 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
988 2004-11-09 Kim F. Storm <storm@cua.dk>
990 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
991 Fix various comments referring to XEvents instead of input events.
992 (x_queue_event): Fix format strings.
993 (x_stop_queuing_selection_requests): Likewise.
995 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
996 (pint2hrstr): Add extra braces to silence compiler.
998 * print.c (print_object): Fix format string.
1000 * lread.c (read1): Fix next_char matching.
1002 * lisp.h (Fdelete): Add EXFUN.
1003 (replace_range_2): Add prototype.
1005 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
1007 * intervals.h (NULL_INTERVAL_P): Add separate version when
1008 ENABLE_CHECKING is not defined to silence compiler.
1009 (compare_string_intervals): Add prototype.
1011 * fringe.c (destroy_fringe_bitmap): Fix return type.
1012 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
1014 * emacs.c (Fdump_emacs): Fix format string.
1016 * doc.c: Include <ctype.h>.
1017 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
1019 * data.c (store_symval_forwarding): Remove unused variables.
1021 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
1023 2004-11-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1025 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
1028 2004-11-09 Kim F. Storm <storm@cua.dk>
1030 * process.c (Fmake_network_process): Remove kludge for interrupted
1031 connects on BSD. If connect is interrupted, just close socket and
1032 start over rather than sleeping and retry with same socket.
1034 2004-11-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1036 * .cvsignore: Add buildobj.lst.
1038 * doc.c: New variable Vbuild_files.
1039 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
1040 file names from buildobh.lst. Only attach docstrings from files
1041 that are in Vbuild_files.
1042 (syms_of_doc): Defvar Vbuild_files.
1044 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
1046 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
1047 (mostlyclean): Rm buildobj.lst
1049 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
1052 2004-11-09 Kim F. Storm <storm@cua.dk>
1054 * fringe.c (update_window_fringes): Update fringe bitmaps if
1055 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
1056 also update previous row to get rid of misc. artifacts.
1058 2004-11-08 Kim F. Storm <storm@cua.dk>
1060 * xdisp.c (fast_find_position): Fix start pos if header line present.
1061 (note_mouse_highlight): Clear mouse face if we move out of text area.
1063 2004-11-08 Eli Zaretskii <eliz@gnu.org>
1065 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
1066 Don't include <sys/time.h> explicitly.
1067 Include <stdio.h> unconditionally, not just on MacOS.
1069 2004-11-08 Kenichi Handa <handa@m17n.org>
1071 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
1072 don't pay attention to '\' before '*'.
1073 (fontset_pattern_regexp): Change the meaning of the second arg.
1074 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
1075 (check_fontset_name): Try NAME as literal at first, and if it
1076 failes, try NAME as pattern.
1078 2004-11-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1080 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
1082 2004-11-07 Andreas Schwab <schwab@suse.de>
1084 * lisp.h (Fmsdos_downcase_filename): Declare.
1085 * dired.c (Fmsdos_downcase_filename): Don't declare here.
1086 * fileio.c: Likewise.
1088 2004-11-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1090 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
1091 comparisons with integers instead of Lisp_Object address.
1092 (Fmsdos_set_keyboard): Declare argument allkeys.
1094 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
1096 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
1097 int/Lisp_Object mixup.
1101 2004-11-06 Steven Tamm <steventamm@mac.com>
1103 * editfns.c: Need to include sys/time.h before resource.h on darwin.
1105 2004-11-06 Richard M. Stallman <rms@gnu.org>
1107 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
1109 * xfaces.c (merge_named_face): GCPRO the face_name in the
1110 named_merge_point struct that we make.
1111 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
1113 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
1114 before deciding whether to inactivate mark.
1116 2004-11-06 Lars Brinkhoff <lars@nocrew.org>
1118 * config.in: Regenerate (add HAVE_GETRUSAGE).
1119 * editfns.c (Fget_internal_run_time): New function.
1120 (syms_of_data): Defsubr it.
1121 * fns.c (sxhash): As far as possible, merge calculation of
1122 hash code for symbols and strings.
1124 2004-11-06 Eli Zaretskii <eliz@gnu.org>
1126 * frame.c (syms_of_frame): Fix the example in the doc string.
1128 2004-11-06 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1130 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
1132 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
1133 (create_and_show_dialog): Revert change from 2004-10-31.
1135 2004-11-05 Luc Teirlinck <teirllm@auburn.edu>
1137 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
1139 2004-11-05 Kim F. Storm <storm@cua.dk>
1141 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
1143 * fileio.c (Ffile_modes): Doc fix.
1144 (auto_save_1): Check for Ffile_modes nil value.
1146 2004-11-05 Kim F. Storm <storm@cua.dk>
1148 * xselect.c (struct selection_event_queue, selection_queue)
1149 (x_queue_selection_requests, x_queue_event)
1150 (x_start_queuing_selection_requests)
1151 (x_stop_queuing_selection_requests): Add new queue for selection
1152 input events to replace previous XEvent queue in xterm.c.
1153 (queue_selection_requests_unwind): Adapt to new queue.
1154 (x_reply_selection_request): Adapt to new queue.
1155 Unexpect wait_object in case of x errors (memory leak).
1156 (x_handle_selection_request, x_handle_selection_clear): Make static.
1157 (x_handle_selection_event): New function. May queue selection events.
1158 (wait_for_property_change_unwind): Use save_value instead of cons.
1159 Clear property_change_reply_object.
1160 (wait_for_property_change): Abort if already waiting.
1161 Use save_value instead of cons for unwind data.
1162 (x_handle_property_notify): Skip events already arrived, but don't
1163 free them, as "arrived" field is checked by wait_for_property_change,
1164 and it will be freed by unwind or explicit unexpect_property_change.
1165 (x_get_foreign_selection): Add to new queue.
1166 (receive_incremental_selection): Don't unexpect wait_object when done
1167 as it has already been freed by previous wait_for_property_change.
1169 * xterm.h (x_start_queuing_selection_requests)
1170 (x_stop_queuing_selection_requests, x_handle_selection_request)
1171 (x_handle_selection_clear): Remove prototypes.
1172 (x_handle_selection_event): Add prototype.
1174 * xterm.c (handle_one_xevent): Don't queue X selection events
1175 here, it may be too late if we start queuing after we have already
1176 stored some selection events into the kbd buffer.
1177 (struct selection_event_queue, queue, x_queue_selection_requests)
1178 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
1179 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
1180 (x_catch_errors_unwind): Block input around final XSync.
1182 * keyboard.h (kbd_buffer_unget_event): Add prototype.
1184 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
1185 (kbd_buffer_unget_event): New function.
1186 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
1187 and use x_handle_selection_event.
1188 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
1190 2004-11-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1192 * xselect.c (TRACE3): New debug macro.
1193 (x_reply_selection_request): Use it.
1194 (receive_incremental_selection): In call to TRACE0, the name of
1195 a symbol is in xname.
1197 2004-11-05 Kim F. Storm <storm@cua.dk>
1199 * fontset.c (fontset_pattern_regexp): Use unsigned char.
1201 2004-11-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1203 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
1205 * gtkutil.h (use_old_gtk_file_dialog): Declare.
1207 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
1208 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
1209 * xfns.c (syms_of_xfns): ... to here.
1211 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
1212 it doesn't start with /.
1214 2004-11-04 Kenichi Handa <handa@m17n.org>
1216 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
1217 treat it as a literal character.
1219 2004-11-03 Kim F. Storm <storm@cua.dk>
1221 * .gdbinit (ppt): New function.
1223 2004-11-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1225 * xterm.c (x_window_to_scroll_bar): Only call
1226 xg_get_scroll_id_for_window if toolkit scroll bars are used.
1228 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
1231 2004-11-02 Andreas Schwab <schwab@suse.de>
1233 * window.c (Fscroll_right): Fix last change.
1235 2004-11-02 Kim F. Storm <storm@cua.dk>
1237 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
1239 2004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1241 * callproc.c (Fcall_process): Block input around vfork.
1243 2004-11-02 Kim F. Storm <storm@cua.dk>
1245 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
1246 (syms_of_eval): Defsubr it.
1248 2004-11-02 Richard M. Stallman <rms@gnu.org>
1250 * insdel.c (replace_range_2): New function.
1252 * casefiddle.c (casify_region): Handle changes in byte-length
1253 using replace_range_2.
1255 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
1257 * xdisp.c (back_to_previous_visible_line_start):
1258 Subtract 1 from pos when checking previous newline for invisibility.
1260 * window.c (window_scroll_pixel_based): Update preserve_y
1261 for header line if any.
1262 (Fscroll_left, Fscroll_right): Don't call interactive_p;
1263 use a new second argument instead.
1265 * eval.c (Fcall_interactive_p): New function.
1266 (interactive_p): Don't test INTERACTIVE here.
1267 (Finteractive_p): Doc fix.
1269 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
1271 2004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
1273 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
1274 comparing font names.
1276 2004-11-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1278 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
1279 Fx_file_dialog if only directories should be read.
1281 * lisp.h: Fx_file_dialog takes 5 parameters.
1283 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
1284 Add parameter only_dir_p.
1285 In Motif version, don't put DEFAULT_FILENAME in filter part of the
1286 dialog, just text field part. Do not add DEFAULT_FILENAME
1287 to list of files if it isn't there.
1288 In GTK version, pass only_dir_p parameter to xg_get_file_name.
1290 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
1291 Check only_dir_p instead of comparing prompt to "Dired". When using
1292 a save dialog, add option kNavDontConfirmReplacement, change title
1293 to "Enter name", change text for save button to "Ok".
1295 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
1296 Check only_dir_p instead of comparing prompt to "Dired".
1298 * gtkutil.c (xg_get_file_with_chooser)
1299 (xg_get_file_with_selection): New functions, only defined ifdef
1300 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
1302 (xg_get_file_name): Add parameter only_dir_p.
1303 Call xg_get_file_with_chooser or xg_get_file_with_selection
1304 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
1305 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
1307 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
1309 * config.in: Rebuild (added HAVE_GTK_FILE_*).
1311 2004-11-01 Kim F. Storm <storm@cua.dk>
1313 * process.c (connect_wait_mask, num_pending_connects):
1314 Only declare and use them if NON_BLOCKING_CONNECT is defined.
1315 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
1316 (IF_NON_BLOCKING_CONNECT): New helper macro.
1317 (wait_reading_process_output): Only declare and use local vars
1318 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
1320 2004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
1322 * w32term.c (x_scroll_run): Delete region objects after use.
1324 2004-10-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1326 * xmenu.c: Add prototypes for forward function declarations.
1327 (popup_get_selection): Remove parameter do_timers, remove call to
1329 (create_and_show_popup_menu, create_and_show_dialog):
1330 Remove parameter do_timers from call to popup_get_selection.
1332 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
1333 tool_bar_items and assign the result to f->tool_bar_items if
1334 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
1335 tool_bar_items to assignment of result.
1337 * atimer.c (alarm_signal_handler): Do not call set_alarm if
1338 pending_atmers is non-zero.
1340 2004-10-31 Kim F. Storm <storm@cua.dk>
1342 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
1344 2004-10-28 Will <will@glozer.net>
1346 * macterm.c: allow user to assign key modifiers to the Mac Option
1347 key via a 'mac-option-modifier' variable.
1349 2004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
1351 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
1352 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
1353 (x_handle_selection_request, x_handle_selection_clear)
1354 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
1356 2004-10-28 Richard M. Stallman <rms@gnu.org>
1358 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
1360 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
1362 2004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
1364 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
1365 comment-starter over a 1-char one.
1367 2004-10-27 Richard M. Stallman <rms@gnu.org>
1369 * xdisp.c (get_next_display_element): In mode lines,
1370 treat newline and tab like other control characters.
1372 * editfns.c (Fmessage): Doc fix.
1374 * indent.c (vmotion): When moving up, check the newline before.
1375 Make prevline an int, not a Lisp_Object.
1377 2004-10-27 Kim F. Storm <storm@cua.dk>
1379 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
1380 Only allocate info and discarded tables once.
1382 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
1383 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
1384 (SAFE_FREE): Test it to determine if we need to unwind to free.
1385 Remove size arg. All users changed.
1386 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
1388 2004-10-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1390 * gtkutil.c: Put empty line between comment and function body.
1391 (xg_destroy_widgets): Rename from remove_from_container.
1392 Just destroy all widgets in list. Argument wcont removed.
1393 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
1394 instead of remove_from_container.
1395 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
1396 (free_frame_tool_bar): Add comment.
1398 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
1399 is not NULL before strcmp.
1401 2004-10-26 Kim F. Storm <storm@cua.dk>
1403 * callint.c (Fcall_interactively): Add 'U' code to get the
1404 up-event discarded by a previous 'k' or 'K' argument.
1406 2004-10-26 David Kastrup <dak@gnu.org>
1408 * buffer.c (syms_of_buffer): Fix a few typos.
1410 2004-10-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1412 * xsmfns.c: Put empty line between comment and function body.
1413 Use two spaces before comment end.
1415 2004-10-25 Kenichi Handa <handa@m17n.org>
1417 * fontset.c (fontset_pattern_regexp): Optimize for the case that
1418 PATTERN is full XLFD.
1420 2004-10-24 Kenichi Handa <handa@m17n.org>
1422 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
1424 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
1425 (regex_compile): Return REG_ERANGEX if appropriate.
1427 2004-10-22 Kenichi Handa <handa@m17n.org>
1429 * editfns.c (Ftranslate_region_internal): New function.
1430 (syms_of_editfns): Defsubr it.
1432 2004-10-22 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1434 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
1436 2004-10-21 K
\e,Aa
\e(Broly L
\e$,1 q
\e(Brentey <lorentey@elte.hu>
1438 * xterm.h (x_output): New member `xic_base_fontname'.
1439 (FRAME_XIC_BASE_FONTNAME): New macro.
1440 (xic_free_xfontset): Declare.
1442 * xfns.c (xic_create_xfontset): Share fontsets between frames
1443 based on base_fontname.
1444 (xic_free_xfontset): New function.
1445 (free_frame_xic): Use it.
1446 (xic_set_xfontset): Ditto.
1448 * xterm.c (xim_destroy_callback): Ditto.
1451 2004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
1453 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
1455 2004-10-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1457 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
1460 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
1461 New variables and constant.
1462 (main): Calculate heap_bss_diff. If we are dumping and the
1463 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
1464 and exec ourself again.
1465 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
1468 * lastfile.c: Make my_endbss and my_endbss_static available on all
1471 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
1472 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
1474 2004-10-19 Luc Teirlinck <teirllm@auburn.edu>
1476 * data.c (Flocal_variable_if_set_p): Doc fix.
1478 2004-10-19 Jason Rumney <jasonr@gnu.org>
1480 * w32.c (init_environment): Set emacs_dir correctly when running
1481 emacs from the build directory.
1483 2004-10-19 Richard M. Stallman <rms@gnu.org>
1485 * editfns.c (Fdelete_and_extract_region):
1486 If region is empty, return null string.
1488 2004-10-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1490 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
1492 (xg_frame_cleared): Remove.
1494 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
1495 (xg_find_top_left_in_fixed): Remove.
1496 (xg_create_scroll_bar): Put an event box widget between
1497 the scroll bar widget and the edit widget.
1498 (xg_show_scroll_bar): Show the parent widget (the event box).
1499 (xg_remove_scroll_bar): Destroy parent (the event box) also.
1500 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
1501 Move the parent (the event box) widget inside the fixed widget.
1502 Move window clear to xterm.c.
1504 * gtkutil.h (xg_frame_cleared): Remove.
1506 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
1507 (x_scroll_bar_create, XTset_vertical_scroll_bar):
1508 Remove arguments left and width to xg_update_scrollbar_pos.
1509 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
1511 2004-10-19 Kenichi Handa <handa@m17n.org>
1513 * xdisp.c (display_mode_element): Fix display of wide chars.
1515 2004-10-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1517 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
1518 gdk_window_clear and move gdk_window_process_all_updates after
1519 clear so events are sent to the X server in correct order.
1521 2004-10-18 Kenichi Handa <handa@m17n.org>
1523 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
1524 comparing font names.
1525 (fs_query_fontset): Use fast_string_match for comparing fontset names.
1526 (list_fontsets): Likewise.
1528 * search.c (fast_string_match_ignore_case): New function.
1530 * lisp.h (fast_string_match_ignore_case): Extern it.
1532 2004-10-17 Kim F. Storm <storm@cua.dk>
1534 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
1535 than bitmap if there is not left fringe.
1536 (get_overlay_arrow_glyph_row): Also used on windows system.
1537 (display_line): Display overlay string if no left fringe.
1539 2004-10-16 Jason Rumney <jasonr@gnu.org>
1541 * w32fns.c (w32_font_match): Encode font name being matched.
1543 2004-10-16 Richard M. Stallman <rms@gnu.org>
1545 * window.c (Fspecial_display_p): Doc fix.
1547 2004-10-15 Stefan <monnier@iro.umontreal.ca>
1549 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
1550 Don't ignore menus, because where-is-internal already does it for us.
1552 2004-10-15 Kim F. Storm <storm@cua.dk>
1554 * xdisp.c (redisplay_window): Only update fringes and vertical
1555 border on window frames.
1557 2004-10-14 Andreas Schwab <schwab@suse.de>
1559 * m/ia64.h (DATA_SEG_BITS): Don't define.
1561 2004-10-14 Kim F. Storm <storm@cua.dk>
1563 * xterm.h: Include Xutil.h after keysym.h to work around bug
1566 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
1568 * fns.c (map_char_table): Add missing gcpros.
1570 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
1572 * keymap.c (get_keymap): An autoload form is not a keymap.
1574 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
1576 2004-10-13 Kim F. Storm <storm@cua.dk>
1578 * callproc.c (Fcall_process): Simplify handling of display arg.
1579 Resume `display_on_the_fly' once a coding system is determined.
1581 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
1583 2004-10-12 Kim F. Storm <storm@cua.dk>
1585 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
1586 caller, such as call-process, is not going to poll for input.
1587 (calc_line_height_property): Handle case where it->object is nil.
1589 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
1591 2004-10-12 Kenichi Handa <handa@m17n.org>
1593 * xdisp.c (get_next_display_element):
1594 If unibyte_display_via_language_environment is zero, display 8-bit
1595 chars in octal in unibyte buffer.
1597 2004-10-12 Kim F. Storm <storm@cua.dk>
1599 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
1600 are no ordinary bindings.
1602 2004-10-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1604 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
1606 2004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1608 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
1609 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
1610 (make_mac_frame): Add BLOCK_INPUT around the making of a
1612 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
1613 * macgui.h (mktime): Use emacs_mktime.
1614 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
1615 Make a cancel file-open dialog be like C-g.
1616 * mac.c (mktime): Use emacs_mktime.
1617 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
1618 (Fmac_paste_function): Add better error handling for carbon cut/paste.
1620 2004-10-10 Kim F. Storm <storm@cua.dk>
1622 * keyboard.c (timer_resume_idle): New function to resume idle
1623 timer without resetting timers on the idle list.
1624 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
1625 (timer_start_idle, timer_stop_idle): Declare static.
1626 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
1628 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
1630 2004-10-08 Steven Tamm <steventamm@mac.com>
1632 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
1633 * macterm.c (mac_check_for_quit_char): Remove warning for using
1634 NULL where 0 should be used.
1635 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
1637 * mac.c: Include time.h for Tiger compatibility.
1639 2004-10-07 Kim F. Storm <storm@cua.dk>
1641 * xdisp.c (redisplay_window): Fix flicker on vertical line between
1642 windows. Update vertical line after drawing window fringes, but
1643 only if actually drawing any bitmaps--or there is no fringe.
1645 * xterm.c (x_update_window_end): Likewise.
1646 * macterm.c (x_update_window_end): Likewise.
1647 * w32term.c (x_update_window_end): Likewise.
1649 * fringe.c (draw_window_fringes): Return value now indicates if
1650 any fringe bitmaps were redrawn (or there are no fringes).
1652 * dispextern.h (draw_window_fringes): Update prototype.
1654 2004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1656 * macfns.c (mac_get_window_bounds): Add extern.
1657 (x_real_positions): Use mac_get_window_bounds.
1659 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
1662 * macterm.c [!MAC_OSX]: Include Windows.h.
1663 (front_emacs_window): Rename from mac_front_window. All uses
1664 changed. Return the frontmost non-tooltip emacs window.
1665 (mac_get_window_bounds): New function.
1666 (x_calc_absolute_position): Use the difference of width and height
1667 between the inner and outer window.
1668 (x_set_offset): Specify window position by the coordinae of the
1669 outer window. Adjust the position if the title bar is completely
1671 (app_is_suspended, app_sleep_time): Remove unused variables.
1672 (do_app_resume, do_app_suspend): Remove their contents because
1673 window-activate/deactivate events will do the job.
1674 (do_zoom_window): Remove unused variables. Make compliant to the
1675 standard way of zooming. Set f->left_pos and f->top_pos.
1676 (XTread_socket): Don't use argument `expected'. Don't use
1677 FrontWindow to determine the clicked window. Exclude unprocessed
1678 mouseUp cases in the early stage. Add parentheses to fix operator
1680 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
1682 2004-10-05 Jan Dj
\e,Ad
\e(Brv. <jan.h.d@swipnet.se>
1684 * config.in: Regenerate.
1686 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
1689 2004-10-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1691 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
1692 a row if Alt or Meta has been found for that row. Also stop scanning
1693 for Keysyms for that row.
1695 2004-10-04 Kim F. Storm <storm@cua.dk>
1697 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
1698 to list. Include overlay arrow bitmap in return value.
1700 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
1701 bars with fractional column width. If scroll bar separates two
1702 windows, move it towards the window it belongs to. Only update
1703 the padding area below the scroll bar widget when necessary,
1704 i.e. when scroll bar widget is created, moved, or resized.
1706 * xdisp.c (define_frame_cursor1): Do not change frame cursor
1707 while tracking/dragging mouse.
1708 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
1710 * window.c (coordinates_in_window): Relax check for cursor
1711 on vertial border between mode lines.
1712 (Fset_window_fringes): Do not allow negative widths.
1713 (Fset_window_scroll_bars): Likewise.
1715 * .gdbinit (pp): Shorthand for p ARG + pr.
1716 (ff): New command: flush frame updates (X only).
1718 2004-10-03 Michael Albinus <michael.albinus@gmx.de>
1720 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
1722 2004-09-30 Kenichi Handa <handa@m17n.org>
1724 * process.c (send_process): Free composition data.
1726 * fileio.c (Finsert_file_contents): Free composition data.
1728 * coding.c (code_convert_region): Don't skip ASCIIs if there are
1729 compositions to encode.
1730 (encode_coding_string): Likewise. Free composition data.
1732 2004-09-30 Florian Weimer <fw@deneb.enyo.de>
1734 * coding.c (code_convert_region): Free composition data.
1736 2004-09-29 Kim F. Storm <storm@cua.dk>
1738 * fringe.c: Remove limit on number of bitmaps.
1739 (fringe_bitmaps, fringe_faces): Change to pointers.
1740 (max_fringe_bitmaps): New var.
1741 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
1742 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
1744 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
1745 (struct glyph_row): Reorder fringe_bitmap related fields.
1746 (struct it): Likewise.
1748 * w32term.c (fringe_bmp): Change to pointer.
1749 (max_fringe_bmp): New var.
1750 (w32_define_fringe_bitmap): Expand fringe_bmp.
1751 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
1752 (w32_destroy_fringe_bitmap): Likewise.
1754 2004-09-29 Kim F. Storm <storm@cua.dk>
1756 * fringe.c: Simplify last change.
1757 (lookup_fringe_bitmap): New function.
1758 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
1759 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
1760 Keep standard bitmaps in Vfringe_bitmaps.
1761 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
1762 (Fset_fringe_bitmap_face): Likewise.
1764 * dispextern.h (lookup_fringe_bitmap): Add prototype.
1765 (valid_fringe_bitmap_p): Remove prototype.
1767 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
1769 2004-09-29 Kim F. Storm <storm@cua.dk>
1771 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
1772 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
1774 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
1776 * fringe.c (Vfringe_bitmaps): New variable.
1777 (syms_of_fringe): DEFVAR_LISP it.
1778 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
1779 Change arg to Lisp_Object and fail if not an integer.
1780 (get_fringe_bitmap_name, resolve_fringe_bitmap)
1781 (destroy_fringe_bitmap): New functions.
1782 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
1783 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
1784 clear its fringe property.
1785 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
1786 Fdestroy_fringe_bitmap.
1787 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
1788 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
1789 and set fringe property. Signal error if no free slots.
1790 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
1791 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
1793 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
1794 symbols with a fringe property.
1796 2004-09-27 Kim F. Storm <storm@cua.dk>
1798 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
1799 Doc fix. Format may now be a symbol or alist, not a cons.
1801 * fringe.c (update_window_fringes): Handle new formats of
1802 indicate-buffer-boundaries (symbol or alist). No longer
1803 allow a simple cons.
1804 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
1806 2004-09-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1808 * config.in: Rebuild.
1810 2004-09-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1812 * config.in: Rebuild.
1814 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
1816 2004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
1818 * xterm.c (x_term_init): Work around a bug in some X servers.
1820 2004-09-18 Richard M. Stallman <rms@gnu.org>
1822 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
1824 * xdisp.c (try_window_reusing_current_matrix):
1825 Handle the case where we reach the old displayed text,
1826 out of sync with the old line boundary.
1828 2004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
1830 * fileio.c (Finsert_file_contents): Fix case of replacement in a
1833 2004-09-14 Kim F. Storm <storm@cua.dk>
1835 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
1837 * xfaces.c (Qface_no_inherit): New var.
1838 (syms_of_xfaces): Intern and staticpro it.
1839 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
1840 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
1841 Don't increment face_change_count when face has non-nil
1842 face-no-inherit property.
1844 2004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
1846 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
1847 (Fbyte_code): Remove dead code after `wrong_type_argument'.
1849 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
1850 before doing the mark_stack_check_gcpros since they're not on the stack.
1852 2004-09-12 Kim F. Storm <storm@cua.dk>
1854 * editfns.c (Fformat): Handle format strings with multiple text
1855 properties. Reverse text property list from the format string,
1856 so the positions are in increasing order.
1858 2004-09-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1860 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
1861 x_uncatch_errors so that possible protocol errors are delivered.
1863 2004-09-10 Eli Zaretskii <eliz@gnu.org>
1865 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
1867 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
1868 charset.h, and coding.h
1869 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
1870 (term.o): Depend on window.h and keymap.h.
1871 (abbrev.o): Depend on syntax.h.
1872 (callint.o): Depend on keymap.h.
1873 (casefiddle.o): Depend on charset.h and keymap.h.
1874 (category.o): Depend on keymap.h.
1875 (coding.o): Depend on dispextern.h.
1876 (cmds.o): Depend on keyboard.h and keymap.h.
1877 (dispnew.o): Depend on indent.h and intervals.h.
1878 (doc.o): Depend on keymap.h.
1879 (editfns.o): Depend on frame.h.
1880 (emacs.o): Depend on dispextern.h.
1881 (fileio.o): Don't depend on ccl.h.
1882 (filelock.o): Depend on charset.h and coding.h.
1883 (frame.o): Depend on w32term.h and macterm.h.
1884 (insdel.o): Depend on region-cache.h.
1885 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
1886 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
1887 (search.o): Depend on $(INTERVALS_SRC).
1888 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
1889 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
1890 xterm.h, w32term.h, and macterm.h.
1891 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
1892 w32term.h, and macterm.h.
1893 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
1894 region-cache.h, xterm.h, w32term.h, and macterm.h.
1895 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
1896 (data.o): Depend on frame.h.
1897 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
1898 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
1899 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
1900 (intervals.o): Depend on keymap.h.
1902 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
1903 Add debugging print-out to termscript.
1905 2004-09-09 Richard M. Stallman <rms@gnu.org>
1907 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
1909 2004-09-08 Richard M. Stallman <rms@gnu.org>
1911 * window.c (Fset_window_buffer): Doc fix.
1913 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
1915 2004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
1917 * minibuf.c (history_delete_duplicates): New variable.
1918 (read_minibuf): Use it.
1919 (syms_of_minibuf): Create the corresponding lisp variable.
1921 2004-09-08 Kim F. Storm <storm@cua.dk>
1923 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
1924 overlay just before point.
1926 2004-09-07 Luc Teirlinck <teirllm@auburn.edu>
1928 * buffer.h (struct buffer): Add auto_save_file_format field.
1929 * buffer.c (reset_buffer, init_buffer_once):
1930 Handle auto_save_file_format field.
1931 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
1932 `buffer-auto-save-file-format'.
1933 * fileio.c: Delete declaration for removed Vauto_save_file_format.
1934 (build_annotations): Adapt to replacement of
1935 `auto-save-file-format' with the new buffer-local variable
1936 `buffer-auto-save-file-format'.
1937 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
1939 2004-09-07 Jason Rumney <jasonr@gnu.org>
1941 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
1943 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
1944 Handle Unicode menu titles.
1946 2004-09-07 Kim F. Storm <storm@cua.dk>
1948 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
1949 property from text property or overlay strings at point.
1951 2004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1953 * xmenu.c (update_submenu_strings): YAILOM.
1954 (set_frame_menubar): Make sure last_i is initialized.
1956 2004-09-03 Jason Rumney <jasonr@gnu.org>
1958 * w32menu.c (_widget_value): Add lname and lkey.
1959 (digest_single_submenu): Set lname and lkey in widget_value
1960 instead of name and key.
1961 (update_submenu_strings): New function.
1962 (set_frame_menubar): Remove call to inhibit_garbage_collection,
1963 call update_submenu_strings.
1965 * w32menu.c (globals_of_w32menu): Check for Unicode API.
1966 (digest_single_submenu, w32_menu_show): Encode menu strings as
1967 UTF-8 if Unicode API is available.
1968 (utf8to16): New function.
1969 (add_menu_item): Use it when calling Unicode API.
1971 2004-09-03 Kim F. Storm <storm@cua.dk>
1973 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
1974 in overlay or text-property strings; set cursor on corresponding
1975 glyph rather than at end of the string.
1977 2004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1979 * macfns.c (x_real_positions): Save the current window port and
1980 set a new one before obtaining the global coordinate.
1981 Use FRAME_MAC_WINDOW.
1982 (x_set_name, x_set_title): Encode title to UTF8.
1983 Use SetWindowTitleWithCFString.
1984 (Fx_server_version): Get correct OS version.
1986 * macmenu.c (add_menu_item): Remove unused variable `i'.
1987 Don't let separator items destroy refence constants of other menu items.
1989 * macterm.c (x_update_end): Move SetPortWindowPort to inside
1991 (x_set_offset): Use FRAME_MAC_WINDOW.
1993 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
1994 nontext_cursor if it is on a scroll bar.
1996 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
1998 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
2001 2004-09-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2003 * xfns.c (x_set_name_internal): New function. Check if we shall call
2004 xfree before ENCODE_UTF_8.
2005 (x_set_name, x_set_title): Call x_set_name_internal.
2007 2004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
2009 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
2012 2004-08-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2014 * macmenu.c (_widget_value): Add lname and lkey.
2015 (single_submenu): Set lname and lkey in widget_value
2016 instead of name and key.
2017 (update_submenu_strings): New function.
2018 (set_frame_menubar): Remove call to inhibit_garbage_collection,
2019 call update_submenu_strings.
2021 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
2022 instead of name and key.
2023 (update_submenu_strings): New function.
2024 (set_frame_menubar): Remove call to inhibit_garbage_collection,
2025 call update_submenu_strings.
2027 * gtkutil.h (_widget_value): Added lname and lkey.
2029 2004-08-30 Steven Tamm <steventamm@mac.com>
2031 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
2032 by using different names for inner loop variables.
2034 2004-08-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2036 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
2037 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
2039 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
2040 tool bar items is 0.
2042 2004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2044 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
2045 strings in menu items.
2046 (single_submenu): Use ENCODE_MENU_STRING
2047 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
2048 button release isn't passed to event loop
2049 (add_menu_item): Use SetMenuItemWithCFString
2051 2004-08-26 Steven Tamm <steventamm@mac.com>
2053 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
2055 * macfns.c (Fx_file_dialog): Implemented using NavServices
2057 2004-08-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2059 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
2061 * xfns.c (x_window_to_frame, x_any_window_to_frame)
2062 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
2063 (x_top_window_to_frame): Return 0 if wdesc is None.
2065 2004-08-22 Richard M. Stallman <rms@gnu.org>
2067 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
2068 HAVE_TERMIOS]: If there's no char for this signal, drop through
2069 and use system calls.
2071 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
2073 2004-08-20 Kim F. Storm <storm@cua.dk>
2075 * process.c (wait_reading_process_output): Rename from
2076 wait_reading_process_input. All uses changed.
2077 (wait_reading_process_output_1): Rename from
2078 wait_reading_process_input_1. All uses changed.
2080 * dispnew.c (Fsleep_for): Remove obsolete code.
2082 2004-08-20 Kenichi Handa <handa@m17n.org>
2084 * syntax.c (skip_chars): Fix for unibyte case.
2086 2004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2088 * syntax.c (char_quoted): Mixup byte/char pos.
2089 (back_comment): Fixup globals in all cases.
2091 2004-08-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2093 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
2094 passing it to gtk_window_set_title.
2096 2004-08-19 Kim F. Storm <storm@cua.dk>
2098 * process.c (wait_reading_process_input): Clean up.
2099 Add wait_for_cell, wait_proc, and just_wait_proc args
2100 to avoid overloading `read_kbd' and `do_display' args.
2101 Change read_kbd arg to int. All callers changed.
2103 * process.c (process_send_signal): Use CDISABLE.
2105 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
2107 2004-08-18 Kim F. Storm <storm@cua.dk>
2109 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
2110 forward to wait_reading_process_input via DO_DISPLAY arg.
2111 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
2112 object, only process output from that process; also inhibit
2113 running timers if DO_DISPLAY==-2.
2115 2004-08-17 Kim F. Storm <storm@cua.dk>
2117 * process.c (process_send_signal): Fix last change--use
2118 _POSIX_VDISABLE instead of CVDISABLE when available.
2120 2004-08-16 Richard M. Stallman <rms@gnu.org>
2122 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
2123 Set VQUIT and VINTR chars to the standard ones if they are unset.
2124 [AIX]: Don't do that here. And don't force VINTR to standard
2125 when SIGNALS_VIA_CHARACTERS.
2127 * process.c (process_send_signal)
2128 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
2129 Do nothing if the character is CVDISABLE.
2131 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
2133 * intervals.c (move_if_not_intangible):
2134 Force POSITION to be between BEGV and ZV.
2136 2004-08-14 John Paul Wallington <jpw@gnu.org>
2138 * buffer.c (Frestore_buffer_modified_p): Doc fix.
2140 * fileio.c (Fread_file_name): Doc fix.
2142 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
2144 2004-08-09 Luc Teirlinck <teirllm@auburn.edu>
2146 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
2148 2004-08-08 Luc Teirlinck <teirllm@auburn.edu>
2150 * keyboard.c: Declare Qdisabled_command_function instead of
2151 Qdisabled_command_hook.
2152 (Fcommand_execute): Use Qdisabled_command_function instead of
2153 Qdisabled_command_hook.
2154 (syms_of_keyboard): Ditto.
2156 2004-08-07 Luc Teirlinck <teirllm@auburn.edu>
2158 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
2159 (syms_of_keymap) <key-translation-map>: Doc fixes.
2161 2004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
2163 * window.c (window_list_1): YAILOM.
2165 * fileio.c (make_temp_name): Handle multibyte prefixes.
2167 2004-08-06 Luc Teirlinck <teirllm@auburn.edu>
2169 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
2172 2004-08-03 Kenichi Handa <handa@m17n.org>
2174 * coding.c (decode_coding_string): Adjust coding->consumed, and
2175 etc. with shrinked_bytes.
2177 2004-08-03 Kim F. Storm <storm@cua.dk>
2179 * indent.c (compute_motion): Fix check for full width window
2180 in non-window case. Do not count left truncation glyph on
2183 2004-08-02 Luc Teirlinck <teirllm@auburn.edu>
2185 * data.c (Finteractive_form): Doc fix.
2187 2004-08-02 Kim F. Storm <storm@cua.dk>
2189 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
2190 properly accounting for continuation glyph on non-window systems.
2191 (Fcompute_motion): Use actual window width if WIDTH is nil, and
2192 actual window width/height if TOPOS is nil, properly accounting for
2193 continuation glyphs on non-window systems, and optional header lines.
2194 (vmotion): Let compute_motion calculate actual window width.
2196 * window.c (window_scroll_line_based): Let compute_motion
2197 calculate actual window width.
2199 2004-08-02 Kim F. Storm <storm@cua.dk>
2201 * process.c (read_process_output): Use whole read buffer.
2202 Don't trigger adaptive read buffering on errors.
2204 2004-07-31 Luc Teirlinck <teirllm@auburn.edu>
2206 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
2208 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
2210 * callint.c (Fcall_interactively): Doc fix.
2212 2004-07-30 Richard M. Stallman <rms@gnu.org>
2214 * abbrev.c (Fexpand_abbrev): Undo previous change.
2216 2004-07-30 Kim F. Storm <storm@cua.dk>
2218 * editfns.c (Fformat): Allocate extra (dummy) element in info.
2220 2004-07-28 Luc Teirlinck <teirllm@auburn.edu>
2222 * eval.c (Fdefvar, Fdefconst): Doc fixes.
2224 2004-07-27 Kim F. Storm <storm@cua.dk>
2226 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
2227 we have ensured that the glyph fits on the current line (or returned
2228 MOVE_LINE_CONTINUED otherwise).
2230 2004-07-26 Kim F. Storm <storm@cua.dk>
2232 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
2233 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
2234 if target position is at end of display line but char is not a newline.
2236 2004-07-25 Richard M. Stallman <rms@gnu.org>
2238 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
2239 instead of ON_VERTICAL_BORDER, when on scroll bar.
2240 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
2242 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
2244 * window.c (Fcoordinates_in_window_p):
2245 Take account of FRAME_INTERNAL_BORDER_WIDTH.
2247 * alloc.c (check_cons_list): New function (contents commented out).
2249 2004-07-24 Luc Teirlinck <teirllm@auburn.edu>
2251 * xfaces.c (Fcolor_supported_p): Doc fix.
2253 * frame.c (Fselect_frame, Fset_frame_selected_window)
2254 (Fframe_visible_p, Fraise_frame): Doc fixes.
2256 2004-07-24 Richard M. Stallman <rms@gnu.org>
2258 * keyboard.h (not_single_kboard_state): Declare.
2260 * fileio.c (Fwrite_region): Doc fix.
2262 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
2264 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
2265 only when a real abbrev is present.
2267 * xfns.c (x_icon_verify): New function.
2268 (Fx_create_frame): Use it.
2270 2004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
2272 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
2274 2004-07-21 Kim F. Storm <storm@cua.dk>
2276 * window.h (struct glyph_matrix): New members nrows_scale_factor
2277 and ncols_scale_factor.
2279 * window.c (make_window): Initialize nrows_scale_factor and
2280 ncols_scale_factor members.
2282 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
2283 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
2284 (required_matrix_height): Apply nrows_scale_factor.
2285 (required_matrix_width): Apply ncols_scale_factor.
2287 * xdisp.c (display_line): Increment nrows_scale_factor and set
2288 fonts_changed_p if past last allocated row.
2289 (append_glyph, append_composite_glyph, produce_image_glyph)
2290 (append_stretch_glyph): Increment ncols_scale_factor and set
2291 fonts_changed_p if current area is full.
2293 2004-07-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2295 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
2297 2004-07-19 Luc Teirlinck <teirllm@auburn.edu>
2299 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
2300 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
2301 (Fset_window_start, Fscroll_up, Fscroll_down)
2302 (Fother_window_for_scrolling, Fscroll_other_window)
2303 (Fsave_window_excursion, Fset_window_vscroll)
2304 (syms_of_window) <window-size-fixed>: Doc fixes.
2306 2004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
2308 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
2309 ENCODE_SYSTEM for filenames.
2311 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2313 * mac.c (sys_select): Block input around call to
2314 ReceiveNextEvent to prevent breakage. Correctly handle
2315 blocking on event queue only by calling ReceiveNextEvent
2316 instead of select (since GUI events aren't on an fd).
2317 (sys_read): Remove function
2318 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
2320 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2322 * mac.c (sys_select): Redo sys_select to use alarm-based
2323 polling instead of 1 sec timeouts (like solaris).
2325 * macterm.c (x_make_frame_visible): Comment in polling on
2328 * keyboard.c: Undef SIGIO on Carbon
2330 * atimer.c (alarm_signal_handler): Call alarm handlers after
2333 * eval.c (Feval): Remove quit_char test
2335 * process.c (wait_reading_process_input): Remove clearing
2336 stdin for select call on process input.
2338 2004-07-18 Luc Teirlinck <teirllm@auburn.edu>
2340 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
2341 capitalization error in docstring.
2343 2004-07-17 Juanma Barranquero <lektu@terra.es>
2345 * keyboard.c (not_single_kboard_state): Do nothing unless
2346 MULTI_KBOARD is defined.
2348 2004-07-17 Richard M. Stallman <rms@gnu.org>
2350 * window.c (coordinates_in_window): Inside the window but outside
2351 its box to the L or R, return ON_VERTICAL_BORDER.
2352 (window_list_1): Rotate the list to start with WINDOW.
2354 * print.c (print_preprocess): Test for print_depth at limit
2355 before entering in being_printed.
2357 * keyboard.c (not_single_kboard_state): New function.
2358 (stuff_buffered_input): Now no-op only if no SIGTSTP.
2360 * frame.c (Fdelete_frame): If we're in single_bboard_state on
2361 this kboard, and we delete its last frame, go to any_kboard_state.
2363 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
2365 2004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
2367 * w32fns.c (Fx_file_dialog): Encode strings in system coding
2368 system before passing them to OS functions for display.
2370 2004-07-15 David Kastrup <dak@gnu.org>
2372 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
2373 Apparently fixes an abort condition.
2375 2004-07-14 Luc Teirlinck <teirllm@auburn.edu>
2377 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
2380 2004-07-14 K
\e,Ba
\e(Broly L
\e,Bu
\e(Brentey <lorentey@elte.hu>
2382 * keyboard.c (echo_dash): Do nothing if there already is a dash
2383 at the end of the echo string.
2385 2004-07-12 Kim F. Storm <storm@cua.dk>
2387 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
2390 2004-07-10 Luc Teirlinck <teirllm@auburn.edu>
2392 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
2394 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
2395 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
2396 (Freplace_buffer_in_windows, Fset_window_buffer)
2397 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
2398 (syms_of_window): Expand docstring of `display-buffer-function'.
2400 2004-07-09 Luc Teirlinck <teirllm@auburn.edu>
2402 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
2403 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
2404 that time values of the type (HIGH . LOW) are considered obsolete.
2406 2004-07-06 Luc Teirlinck <teirllm@auburn.edu>
2408 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
2411 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
2413 2004-07-06 John Paul Wallington <jpw@gnu.org>
2415 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
2417 * fns.c (Fclear_string): Signal an error if STRING is not a string.
2419 2004-07-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2421 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
2422 instead of CGMainDisplayID (only in OSX 10.2 and later).
2424 2004-07-04 John Paul Wallington <jpw@gnu.org>
2426 * fileio.c (read_file_name_completion_ignore_case): New variable.
2427 (syms_of_fileio): Declare and initialise it.
2428 (Fread_file_name): Bind `completion-ignore-case' to respect it.
2430 2004-07-03 Eli Zaretskii <eliz@gnu.org>
2432 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
2433 for event.x and event.y.
2435 2004-07-01 Kenichi Handa <handa@m17n.org>
2437 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
2438 after getting a new string by pre-write-conversion.
2440 2004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
2442 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
2443 (x_calc_absolute_position): Remove unused var `child'.
2445 * xfaces.c (x_supports_face_attributes_p)
2446 (Fdisplay_supports_face_attributes_p): YAILOM.
2447 (tty_supports_face_attributes_p): Remove unused var `i'.
2449 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
2452 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
2454 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
2456 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
2458 2004-06-30 Andreas Schwab <schwab@suse.de>
2460 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
2461 (Finit_image_library): Pass LIBRARIES through to
2462 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
2463 (lookup_image_type): Pass Qnil as second argument to
2464 Finit_image_library.
2466 * lisp.h (Finit_image_library): Declare.
2468 2004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2470 * macterm.c (do_window_activate, do_window_deactivate): Remove.
2471 (XTread_socket): Send mouse button events to the toolbox
2472 dispatcher even when the mouse is grabbed. Don't process window
2473 activate events for non-Emacs windows. Replace function calls to
2474 do_window_activate and do_window_deactivate with their contents.
2475 Reset mouse grabbing status when a window is deactivated.
2477 2004-06-29 Steven Tamm <steventamm@mac.com>
2479 * macterm.c (mac_get_emulated_btn)
2480 (mac_event_to_emacs_modifiers): Fix emulated mouse button
2481 support to correctly mask out modifiers.
2483 2004-06-29 David Kastrup <dak@gnu.org>
2485 * search.c (Fset_match_data): Allow buffer before end of list
2486 which can happen if set-match-data is using a pre-consed list.
2488 2004-06-28 Steven Tamm <steventamm@mac.com>
2490 * macterm.c (XTread_socket): Correctly set the frame position
2491 after the window is moved.
2493 2004-06-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2495 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
2496 gpix and gmask just before return to avoid memory leak.
2497 (xg_get_image_for_pixmap): Add workaround for monochrome displays
2498 so insensitive and activated icons look ok.
2500 2004-06-27 Jason Rumney <jasonr@gnu.org>
2502 * w32fns.c (file_dialog_callback): Disable edit control if set
2503 to directories only on CDN_INITDONE message.
2504 (Fx_file_dialog): Default to directories only when prompt starts
2507 2004-06-25 Kim F. Storm <storm@cua.dk>
2509 * alloc.c (allocate_misc): Update total_free_markers.
2510 (free_misc): New function.
2511 (safe_alloca_unwind, free_marker): Use it.
2513 * lisp.h (free_misc): Add prototype.
2515 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
2517 2004-06-24 Richard M. Stallman <rms@gnu.org>
2519 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
2520 (syms_of_emacs): Lisp variables deleted.
2522 2004-06-23 David Kastrup <dak@gnu.org>
2524 * search.c (Freplace_match): Adjust the match-data more thoroughly
2525 when replacing strings in the buffer.
2526 (Fmatch_data): When INTEGERS is non-nil and the last match was in
2527 a buffer, add the buffer as last element to the match data.
2528 (Fset_match_data): If an additional element of the match-data is a
2529 buffer, restore it to last_thing_searched.
2530 (save_search_regs): Save last_thing_searched as part of the match data.
2531 (restore_match_data): Restore it again.
2533 2004-06-23 Luc Teirlinck <teirllm@auburn.edu>
2535 * keymap.c (Ftext_char_description): Doc fix.
2536 * doc.c (Fsnarf_documentation): Doc fix.
2538 2004-06-22 Kim F. Storm <storm@cua.dk>
2540 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
2542 * lisp.h (struct Lisp_Save_Value): New member dogc.
2543 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
2544 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
2545 (SAFE_FREE_LISP): New macro.
2547 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
2548 (make_save_value): Init new dogc member.
2549 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
2551 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
2552 SAFE_FREE_LISP macros.
2554 2004-06-22 Kim F. Storm <storm@cua.dk>
2556 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
2557 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
2558 in that memory area are unknown to GC. Add comments.
2560 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
2562 2004-06-21 Kim F. Storm <storm@cua.dk>
2564 * lisp.h (MAX_ALLOCA): Define here.
2565 (safe_alloca_unwind): Add prototype.
2566 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
2568 * alloc.c (safe_alloca_unwind): New function.
2570 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
2572 * charset.c (Fstring): Use SAFE_ALLOCA.
2574 * coding.c (MAX_ALLOCA): Remove define.
2576 * data.c (MAX_ALLOCA): Remove define.
2577 (Faset): Use SAFE_ALLOCA.
2579 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
2581 * fns.c (string_make_multibyte, string_to_multibyte)
2582 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
2583 (MAX_ALLOCA): Remove define.
2584 (Fbase64_encode_region, Fbase64_encode_string)
2585 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
2586 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
2587 memory leak if encoding fails.
2589 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
2591 2004-06-21 Eli Zaretskii <eliz@gnu.org>
2593 * print.c (Fwith_output_to_temp_buffer): Doc fix.
2595 2004-06-20 Richard M. Stallman <rms@gnu.org>
2597 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
2599 * search.c (match_limit): Cleaner err msg when no match data available.
2601 * window.c (syms_of_window): Doc fix.
2603 * keyboard.c (command_loop_1): Handle values `only' and `identity'
2604 for Vtransient_mark_mode.
2606 * buffer.c (syms_of_buffer): Doc fix.
2608 2004-06-21 David Kastrup <dak@gnu.org>
2610 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
2611 and unbinding of `case-fold-search' according to
2612 `completion-ignore-case' around calls of string-match and
2613 predicates, respectively. Should give satisfactory performance
2614 in all relevant cases.
2616 2004-06-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2618 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
2621 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
2623 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
2625 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
2628 2004-06-16 Luc Teirlinck <teirllm@auburn.edu>
2630 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
2632 2004-06-16 Kim F. Storm <storm@cua.dk>
2634 * dispextern.h (Vimage_types): Remove extern.
2636 2004-06-16 Miles Bader <miles@gnu.org>
2638 * image.c (lookup_image_type): Initialize image type if necessary.
2640 2004-06-15 Kim F. Storm <storm@cua.dk>
2642 * xdisp.c (try_cursor_movement): Exclude header line from scroll
2643 margin at top of window.
2644 (try_window_reusing_current_matrix): Calculate proper cursor position
2645 after scrolling up with non-zero scroll margin, as the old cursor
2646 position corresponds to value of PT before executing this command.
2647 (try_window_id): Consider scroll margin at bottom of window too;
2648 otherwise we fail to scroll when hl-line-mode is enabled.
2650 * syntax.c (skip_chars): Only recognize [:class:] when it has the
2651 proper format and class is a lower-case word.
2653 2004-06-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2655 * gtkutil.c (xg_get_image_for_pixmap): New function.
2656 (xg_get_gdk_pixmap_and_mask): Remove.
2657 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
2658 xg_get_gdk_pixmap_and_mask.
2660 * xterm.h (struct x_display_info): Typo in comment fixed.
2662 2004-06-14 Juanma Barranquero <lektu@terra.es>
2664 * dispextern.h (Vimage_types): Make it conditional on
2667 * image.c (Vimage_types): Move from xdisp.c.
2668 (Vimage_type_cache): New variable.
2669 (define_image_type): New argument indicating whether an image
2670 library was loaded; cache loaded status and return t on success,
2672 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
2673 (w32_delayed_load): New function to load an image library from a
2674 list of possible filenames.
2675 (init_xpm_functions, init_png_functions, init_jpeg_functions)
2676 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
2677 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
2678 (Finit_image_library): New function, extracted from `init_image'.
2679 Try to initialize an image library on demand and cache whether we
2680 were successful or not.
2681 (syms_of_image): Initialize `Vimage_types' and
2682 `Vimage_type_cache'. Add recognized image types to Vimage_types.
2683 Export `init-image-library'.
2684 (init_image): Remove initialization of all image types, except xbm
2687 * xdisp.c (Vimage_types): Delete (moved to image.c).
2689 2004-06-14 Andreas Schwab <schwab@suse.de>
2691 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
2692 Avoid calling specbind when completion-regexp-list is empty.
2694 2004-06-13 Richard M. Stallman <rms@gnu.org>
2696 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
2697 (re_wctype, re_iswctype, re_wctype_to_bit):
2698 Non-function definitions moved here from regex.c.
2700 * regex.c (re_wctype, re_iswctype): Function defs longer static.
2701 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
2702 (re_wctype, re_iswctype, re_wctype_to_bit):
2703 Non-function definitions moved to regex.h.
2705 * window.c (Fselect_window): Doc fix.
2707 * syntax.c: Include regex.h.
2708 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
2709 If requested, make a list of classes, then check the scanned
2710 chars for membership in them.
2711 (in_classes): New function.
2714 * keyboard.c (cmd_error): Don't call any_kboard_state
2715 if inside a recursive edit level.
2717 2004-06-13 Lorentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
2719 * keyboard.c (command_loop): Call any_kboard_state before
2720 command_loop_2 when at top level.
2722 2004-06-13 Andreas Schwab <schwab@suse.de>
2724 * print.c (print_object): Always use %ld for printing EMACS_INT.
2726 * keyboard.c (cancel_hourglass_unwind): Return a value.
2727 (modify_event_symbol): Always use %ld for printing EMACS_INT.
2728 (Fexecute_extended_command): Likewise.
2730 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
2733 (SYNTAX_WITH_FLAGS): Likewise.
2734 (SYNTAX_MATCH): Likewise.
2736 * syntax.c (char_quoted): Avoid warning about undefined operation.
2737 (find_defun_start): Likewise.
2738 (scan_lists): Likewise.
2739 (INC_FROM): Likewise.
2740 (scan_sexps_forward): Likewise.
2742 * image.c: Include <ctype.h>.
2744 * xfaces.c (face_attr_equal_p): Declare parameters.
2746 2004-06-13 Kenichi Handa <handa@m17n.org>
2748 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
2750 2004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
2752 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
2754 2004-06-12 Kenichi Handa <handa@m17n.org>
2756 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
2757 ccl_prog_stack_struct and update it.
2758 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
2759 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
2761 (ccl_debug_hook): New function.
2762 (struct ccl_prog_stack): New member eof_ic.
2763 (ccl_driver): Handle EOF in subrountine call correctly.
2765 2004-06-11 Kenichi Handa <handa@m17n.org>
2767 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
2769 2004-06-11 Kim F. Storm <storm@cua.dk>
2771 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
2773 2004-06-11 Juanma Barranquero <lektu@terra.es>
2775 * keyboard.c (Fposn_at_point): Doc fix.
2777 2004-06-11 David Kastrup <dak@gnu.org>
2779 * search.c (match_limit): Don't flag an error if match-data
2780 exceeding the allocated search_regs.num_regs gets requested, just
2783 2004-06-08 Miles Bader <miles@gnu.org>
2785 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
2787 2004-06-07 Juanma Barranquero <lektu@terra.es>
2789 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
2790 (Fcurrent_time_string, Fcurrent_time_zone)
2791 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
2793 2004-06-07 Miles Bader <miles@gnu.org>
2795 * xfaces.c (struct named_merge_point): New type.
2796 (push_named_merge_point): New function.
2797 (merge_named_face): New function.
2798 (merge_face_ref, face_at_buffer_position, face_at_string_position):
2799 Use `merge_named_face'.
2800 (merge_face_inheritance): Function removed.
2801 (merge_face_ref): Rename from `merge_face_vector_with_property'.
2802 Add new `err_msgs' and `named_merge_points' args. Return error
2803 status. Only print error messages if ERR_MSGS is true. Don't try to
2804 do :inherit attribute validation.
2805 (merge_face_heights): Handle `unspecified' in both directions.
2806 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
2807 Call `merge_face_ref' instead of `merge_face_inheritance'.
2808 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
2809 (compute_char_face, face_at_buffer_position)
2810 (face_at_string_position): Call `merge_face_ref' instead of
2811 `merge_face_vector_with_property'.
2813 2004-06-07 Kenichi Handa <handa@m17n.org>
2815 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
2816 the necessary places.
2818 2004-06-07 Kim F. Storm <storm@cua.dk>
2820 * process.c (Fdelete_process): Undo 2004-05-28 change.
2821 Instead, call status_notify also for network process.
2822 (status_message): Use process instead of status as arg.
2823 Give messages "deleted" or "connection broken by remote peer" for
2824 an exited network process.
2825 (status_notify): Change call to status_message.
2826 (read_process_output): Increase readmax to 4096. Do not increase
2827 buffer size for datagram channels (default is now large enough).
2829 2004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
2831 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
2832 problem due to newly defined variable.
2834 2004-06-06 Miles Bader <miles@gnu.org>
2836 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
2837 immediately if non-interactive or not initialized.
2839 2004-06-05 Richard M. Stallman <rms@gnu.org>
2841 * minibuf.c (Fcompleting_read): Doc fix.
2843 2004-06-05 Andreas Schwab <schwab@suse.de>
2845 * macfns.c (x_create_tip_frame): Fix declaration after statement.
2847 2004-06-05 Juanma Barranquero <lektu@terra.es>
2849 * keymap.c (Fdescribe_vector): Fix docstring.
2850 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
2852 2004-06-05 Miles Bader <miles@gnu.org>
2854 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
2855 attributes have different values than the default face.
2857 2004-06-04 Eli Zaretskii <eliz@gnu.org>
2859 * xfaces.c (x_supports_face_attributes_p): Make this function
2860 conditional on HAVE_WINDOW_SYSTEM.
2861 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
2862 Don't call x_supports_face_attributes_p if it was not compiled in.
2864 2004-06-04 Miles Bader <miles@gnu.org>
2866 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
2867 from Ftty_supports_face_attributes_p.
2868 (x_supports_face_attributes_p): New function.
2869 (Ftty_supports_face_attributes_p): Function deleted.
2870 (Fdisplay_supports_face_attributes_p): New function.
2871 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
2872 (face_attr_equal_p): New function.
2873 (lface_equal_p): Use it.
2875 2004-06-03 Juanma Barranquero <lektu@terra.es>
2877 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
2878 (Vw32_color_map): Fix typo in docstring.
2879 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
2880 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
2881 Make argument names match their use in docstring.
2883 2004-06-02 Juanma Barranquero <lektu@terra.es>
2885 Work around bugs/problems with MinGW builds of graphics libraries
2886 called from MSVC builds of Emacs.
2888 * image.c (lookup_image): Make pointer to img static.
2889 (png_read_from_memory): Disable "global" optimization.
2891 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2893 * eval.c (Fcondition_case): Fix usage. Simplify.
2895 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
2897 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2899 * macfns.c: Don't include ccl.h.
2900 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
2901 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
2903 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
2904 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
2905 display height/width.
2906 (compute_tip_xy, Vx_max_tooltip_size): Declare.
2907 (unwind_create_tip_frame, compute_tip_xy): New functions.
2908 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
2909 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
2910 and last_show_tip_args.
2912 * macgui.h [!MAC_OSX]: Include Gestalt.h.
2913 (Cursor, No_Cursor): New defines.
2914 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
2915 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
2917 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
2919 * macterm.c: Don't include Gestalt.h.
2920 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
2921 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
2922 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
2923 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
2924 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
2925 (construct_mouse_click, XTmouse_position)
2926 (x_scroll_bar_report_motion, x_calc_absolute_position)
2927 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
2928 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
2929 (note_mouse_movement): Clear the mouse face and reset the pointer
2930 shape when the pointer goes outside the frame without grabbing.
2931 (mac_front_window): New function.
2932 (mac_window_to_frame): New macro.
2933 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
2934 (do_window_activate, do_window_deactivate, do_app_resume)
2935 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
2936 (do_zoom_window, mac_do_receive_drag, XTread_socket)
2937 (mac_check_for_quit_char): Use mac_front_window and/or
2938 mac_window_to_frame.
2939 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
2940 scroll-bar click event.
2941 (mac_define_frame_cursor): Change the pointer shape.
2942 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
2943 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
2944 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
2945 (do_window_update): Don't do anything if the updated window is the
2947 (do_mouse_moved): Handle mouse movement events here (previously in
2948 XTread_socket). Clear the mouse face if
2949 dpyinfo->mouse_face_hidden is set.
2950 (do_os_event, do_events): Remove (now in XTread_socket).
2951 (XTread_socket): Immediately return if interrupt_input_blocked.
2952 Loop until all the events in the queue are processed.
2953 Rearrange codes for mouse grabbing. Add tooltip support. Include the
2954 contents of do_os_event and do_events. Remove mouse movement
2955 handling (now in do_mouse_moved). Add the case where
2956 Vmouse_highlight has an integer value.
2957 (NewMacWindow): Remove.
2958 (make_mac_frame): Do what NewMacWindow previously did. Don't do
2959 excess initializations.
2960 (make_mac_terminal_frame): Previous initializations in
2961 make_mac_frame are moved here.
2962 (mac_initialize_display_info):
2963 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
2965 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
2966 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
2968 2004-05-29 Richard M. Stallman <rms@gnu.org>
2970 * lisp.h (truncate_undo_list): Update decl.
2972 * alloc.c (undo_outer_limit): New variable.
2973 (syms_of_alloc): Defvar it.
2974 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
2976 * undo.c (truncate_undo_list): New arg LIMITSIZE.
2978 * alloc.c (lisp_align_malloc): Check for base == 0
2979 regardless of HAVE_POSIX_MEMALIGN.
2980 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
2982 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
2984 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
2985 (marker_blocks_pending_free): Remove.
2986 (Fgarbage_collect): Sweep after cleaning up undo-lists.
2987 Mark the undo lists after claning them up.
2988 Don't free block in marker_blocks_pending_free.
2989 (mark_buffer): Don't mark undo_list.
2990 (gc_sweep): Sweep hash-tables and strings first.
2991 Do free marker blocks that are empty.
2993 2004-05-28 Jim Blandy <jimb@redhat.com>
2995 * regex.c (print_partial_compiled_pattern): Add missing 'break'
2996 after 'case wordend'. For symbeg and symend, print to stderr,
2997 like the other cases.
2999 2004-05-28 Noah Friedman <friedman@splode.com>
3001 * process.c (Fdelete_process): Do not call remove_process.
3003 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3005 * alloc.c (struct backtrace): Remove.
3006 (Fgarbage_collect): Use the new mark_backtrace.
3008 * eval.c (mark_backtrace): New function.
3010 * minibuf.c (run_exit_minibuf_hook): New function.
3011 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
3012 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
3014 2004-05-27 Kim F. Storm <storm@cua.dk>
3016 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
3017 over display properties, e.g. images, that replace buffer text.
3019 2004-05-25 Kim F. Storm <storm@cua.dk>
3021 * alloc.c (marker_blocks_pending_free): New var.
3022 (gc_sweep): Store free marker blocks on that list.
3023 (Fgarbage_collect): Free them after undo-list cleanup.
3025 * process.c (wait_reading_process_input): Check connect_wait_mask
3026 before actually accepting connection in case it has already been
3027 accepted due to recursion.
3029 2004-05-23 K
\e,Ba
\e(Broly L
\e,Bu
\e(Brentey <lorentey@elte.hu>
3031 * coding.c (Fset_safe_terminal_coding_system_internal):
3032 Set suppress_error in safe_terminal_coding, not terminal_coding.
3034 2004-05-22 Richard M. Stallman <rms@gnu.org>
3036 * alloc.c (Fmake_string): Doc fix.
3038 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
3039 and the alist pairs too.
3041 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
3043 * emacs.c (main): Update copyright year.
3045 * fileio.c (Fread_file_name): Expand DIR if not absolute.
3047 * insdel.c (del_range_2, replace_range): Don't write an anchor
3048 if the gap is empty.
3050 * xdisp.c (try_scrolling): If scroll-up-aggressively or
3051 scroll-down-aggressively is small but positive, put point
3052 near the screen edge.
3054 2004-05-22 Juanma Barranquero <lektu@terra.es>
3056 * keymap.c (Fdefine_key): Doc fix.
3058 2004-05-22 Kim F. Storm <storm@cua.dk>
3060 * alloc.c (struct backtrace): Add debug_on_exit member.
3061 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
3062 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
3063 the removed cons cells.
3064 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
3065 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
3066 any cons cells pointing to unallocated stings.
3067 Do not lisp_free any marker blocks, as there may still be pointers
3068 to them from buffer undo lists at this stage of GC.
3070 * keyboard.c (struct backtrace): Add debug_on_exit member.
3071 (Fcommand_execute): Clear it.
3073 2004-05-20 Luc Teirlinck <teirllm@auburn.edu>
3075 * intervals.c (lookup_char_property): Do not prematurely return nil.
3077 2004-05-19 Jim Blandy <jimb@redhat.com>
3079 Add support for new '\_<' and '\_>' regexp operators, matching the
3080 beginning and end of symbols.
3082 * regex.c (enum syntaxcode): Add Ssymbol.
3083 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
3084 (re_opcode_t): New opcodes `symbeg' and `symend'.
3085 (print_partial_compiled_pattern): Print the new opcodes properly.
3086 (regex_compile): Parse the new operators.
3087 (analyse_first): Skip sym(beg|end) (they match only the empty string).
3088 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
3089 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
3090 (re_match_2_internal): Match symbeg and symend.
3092 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
3094 2004-05-19 Kim F. Storm <storm@cua.dk>
3096 * .gdbinit (xsymbol): Fix last change.
3098 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
3100 * .gdbinit (xprintstr): New fun.
3101 (xstring, xprintsym): Use it.
3103 * w32proc.c (create_child): Use INTMASK.
3105 * alloc.c (Fgarbage_collect): Do all the marking before flushing
3106 unmarked elements of the undo list.
3108 2004-05-18 David Ponce <david@dponce.com>
3110 * print.c (print): Reset print_depth before to call print_object.
3112 2004-05-18 Jason Rumney <jasonr@gnu.org>
3114 * w32console.c: Prefix RIF functions with w32con_ to avoid
3115 namespace clash with functions in term.c and w32term.c.
3117 * w32menu.c (add_menu_item, w32_menu_display_help)
3118 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
3120 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
3122 2004-05-18 Eli Zaretskii <eliz@gnu.org>
3124 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
3126 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
3128 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
3131 2004-05-18 Kim F. Storm <storm@cua.dk>
3133 * blockinput.h (INPUT_BLOCKED_P): New macros.
3135 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
3136 (Ftop_level): Unblock input if blocked.
3138 * buffer.h (GET_OVERLAYS_AT): New macro.
3139 * msdos.c (IT_note_mouse_highlight): Use it.
3140 * textprop.c (get_char_property_and_overlay): Use it.
3141 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
3142 * xfaces.c (face_at_buffer_position): Use it.
3144 * print.c (print_object): Increase buf size.
3146 2004-05-17 Jason Rumney <jasonr@gnu.org>
3148 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
3149 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
3150 Lisp_Object using i member.
3151 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
3152 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
3155 * w32proc.c (create_child): Use make_number instead of masking pid.
3157 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
3158 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
3159 Use EQ to compare Lisp_Objects.
3160 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
3162 * w32term.c (w32_num_mouse_buttons): Rename from
3163 Vw32_num_mouse_buttons and make it an int.
3165 * w32.c (init_environment): Use it.
3167 * w32fns.c (w32_wnd_proc): Likewise.
3169 * w32proc.c (w32_pipe_read_delay): Rename from
3170 Vw32_pipe_read_delay and make it an int.
3172 * w32.c (_sys_read_ahead): Use it.
3174 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
3176 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
3178 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
3179 (key_event): Don't mix Lisp_Object and int.
3181 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
3183 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
3184 modifiers in language change event.
3186 2004-05-17 Kim F. Storm <storm@cua.dk>
3188 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
3189 Such objects may be freed markers which still exist on an undo list.
3191 2004-05-16 Juanma Barranquero <lektu@terra.es>
3193 * data.c (Fset_default): Make argument names match their use in
3196 2004-05-15 Andreas Schwab <schwab@suse.de>
3198 * emacs.c (gdb_array_mark_flag): Define.
3199 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
3201 2004-05-15 Eli Zaretskii <eliz@gnu.org>
3203 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
3204 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
3205 defined for the MS-DOS build.
3207 2004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3209 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
3211 2004-05-14 Kenichi Handa <handa@m17n.org>
3213 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
3215 2004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3217 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
3218 section to frame.c section.
3219 (Fxw_display_color_p, Fx_file_dialog): Declare if
3220 HAVE_WINDOW_SYSTEM defined.
3222 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
3224 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
3226 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
3227 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
3228 (XTread_socket): Fix int/Lisp_Object mixup.
3229 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
3231 * macterm.h (struct frame, struct face, struct image)
3232 (display_x_get_resource, Fx_display_color_p)
3233 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
3236 2004-05-14 Kim F. Storm <storm@cua.dk>
3238 * process.c (wait_reading_process_input): Make reentrant.
3239 Make Available and Connecting non-static. Save and restore value
3240 of waiting_for_user_input_p.
3242 2004-05-13 Kim F. Storm <storm@cua.dk>
3244 * keyboard.c (mark_kboards): Don't mark x and y members
3245 that are overloaded in selection request events.
3247 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
3249 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
3251 2004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
3253 * window.c (Fdisplay_buffer, Fsplit_window)
3254 (split-height-threshold): Doc fix.
3256 2004-05-13 Juanma Barranquero <lektu@terra.es>
3258 * xfaces.c (Ftty_supports_face_attributes_p)
3259 (Finternal_copy_lisp_face): Fix typo in docstring.
3260 (Finternal_get_lisp_face_attribute): Fix docstring.
3262 2004-05-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3264 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
3266 2004-05-11 Steven Tamm <steventamm@mac.com>
3268 * macfns.c (Fx_create_frame): Default to using tool-bar by
3269 setting tool-bar-lines to 1 in default-frame-alist.
3271 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3273 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
3274 (xpm_get_color_table_v, xpm_make_color_table_h)
3275 (xpm_put_color_table_h, xpm_get_color_table_h)
3276 (xpm_str_to_color_key, xpm_load_image, xpm_load)
3277 (syms_of_image): Support XPM on Carbon Emacs. Does not
3278 depend on libXpm, but only supports XPM version 3 without extensions.
3280 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3282 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
3283 instead of FRAME_X_P
3285 2004-05-11 Kim F. Storm <storm@cua.dk>
3287 * process.c (read_process_output): Grow decoding_buf when needed;
3288 this could cause a crash in allocate_string and compact_small_strings.
3290 2004-04-29 Jim Blandy <jimb@redhat.com>
3292 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
3293 against proper opcode.
3295 2004-05-10 Juanma Barranquero <lektu@terra.es>
3297 * process.c (Fstart_process): Fix docstring.
3299 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
3300 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
3301 (Fsplit_char, Fchar_charset): Make argument names match their use
3304 2004-05-10 Richard M. Stallman <rms@gnu.org>
3306 * print.c (print_preprocess): Use being_printed, loop_count and
3307 halftail to detect overdeep nesting and cyclic cdr chains.
3309 2004-05-10 Andreas Schwab <schwab@suse.de>
3311 * lisp.h (Fmake_symbolic_link): Declare.
3313 * fileio.c (Frename_file): Remove extra argument in call to
3314 Fmake_symbolic_link.
3316 2004-05-10 Kim F. Storm <storm@cua.dk>
3318 * xdisp.c (calc_line_height_property): Use string position when
3321 2004-05-10 Kenichi Handa <handa@m17n.org>
3323 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
3324 inhibit-modification-hooks to t temporarily before calling
3327 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
3328 inhibit-modification-hooks to t temporarily before calling
3331 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
3332 inhibit-modification-hooks to t temporarily before calling
3335 * fns.c (count_combining): Delete it.
3336 (concat): Don't check combining bytes.
3338 2004-05-09 Jason Rumney <jasonr@gnu.org>
3340 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
3341 (globals_of_w32fns): Set it.
3343 2004-05-09 Piet van Oostrum <piet@cs.uu.nl>
3345 * data.c (Fquo): Simplify.
3347 2004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
3349 * data.c (Fquo): If any argument is float, do the computation in
3352 2004-05-08 Juanma Barranquero <lektu@terra.es>
3354 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
3355 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
3356 Fix spelling of Emacs on docstring.
3357 (Fset_process_coding_system, Fprocess_coding_system)
3358 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
3359 Make argument names match their use in docstring.
3360 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
3363 * editfns.c (Finsert_buffer_substring): Make argument names match their
3366 * syntax.c (Fmodify_syntax_entry): Fix docstring.
3368 2004-05-07 Steven Tamm <steventamm@mac.com>
3370 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
3371 around call to ReceiveEvent to avoid certain crashes.
3373 2004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3375 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
3376 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
3377 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
3378 Save/restore the current graphics port and device handle when
3379 drawing into an offscreen graphics world.
3381 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
3382 (gif_load): Likewise.
3384 2004-05-07 Juanma Barranquero <lektu@terra.es>
3386 * window.c (Fset_window_buffer): Fix docstring.
3388 2004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
3390 * emacs.c (main) [VMS]: Fix var ref.
3392 2004-05-06 Romain Francoise <romain@orebokech.com>
3394 * data.c (Fsetq_default): Fix docstring.
3396 2004-05-06 Jason Rumney <jasonr@gnu.org>
3398 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
3399 to avoid name clash.
3401 2004-05-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3403 * fileio.c (barf_or_query_if_file_exists): Use lstat.
3404 (Frename_file): Handle renaming of symlinks across file systems.
3405 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
3407 2004-05-04 Kim F. Storm <storm@cua.dk>
3409 * xdisp.c (Qtotal): New var.
3410 (syms_of_xdisp): Intern and staticpro it.
3411 (calc_line_height_property): New arg total. Set it if
3412 line-spacing property has format (total . VALUE).
3413 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
3414 Handle total line-spacing property.
3416 2004-05-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3418 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
3419 "under" scroll bar when size/position changes.
3421 2004-05-03 Jason Rumney <jasonr@gnu.org>
3423 * makefile.nt: Remove.
3425 2004-05-02 Eli Zaretskii <eliz@gnu.org>
3427 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
3428 Avoid compiler warnings.
3430 * Makefile.in (region-cache.o): Depend on config.h.
3432 2004-05-02 Romain Francoise <romain@orebokech.com>
3434 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
3435 with continuation lines, too.
3437 2004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
3439 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
3441 2004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
3443 * xdisp.c (calc_line_height_property): YAILOM (yet another
3444 int/Lisp_Object mixup).
3446 2004-05-01 Eli Zaretskii <eliz@gnu.org>
3448 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
3449 undo bad effect of pack(4) in some versions of system headers.
3451 2004-05-01 Jason Rumney <jasonr@gnu.org>
3453 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
3455 2004-04-30 Kim F. Storm <storm@cua.dk>
3457 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
3458 (syms_of_buffer) <cursor-type>: Doc fix.
3460 * dispextern.h (struct it): Remove member use_default_face.
3461 Add members override_ascent, override_descent, override_boff.
3463 * xdisp.c (init_iterator): Handle line-spacing float value.
3464 Initialize override_ascent member.
3465 (append_space_for_newline): Reset override_ascent.
3466 Remove use_default_face.
3467 (calc_line_height_property): New function to calculate value of
3468 line-height and line-spacing properties. Look at overlays, too.
3469 Set override_ascent, override_descent, override_boff members when
3470 using another face than the current face. Float values are now
3471 relative to the frame default font, by default; accept a cons
3472 of ratio and face name to specify value relative to a specific face.
3473 (x_produce_glyphs): Use calc_line_height_property.
3474 Use override_ascent etc. when set to handle different face heights.
3475 A negative line-spacing property value is interpreted as a total
3476 line height, rather than inter-line spacing.
3477 (note_mouse_highlight): Allocate room for 40 overlays initially.
3479 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3481 * data.c (Fsubr_name): New fun.
3482 (syms_of_data): Defsubr it.
3484 2004-04-29 Kim F. Storm <storm@cua.dk>
3486 * xdisp.c (null_glyph_slice): New var.
3487 (append_glyph, append_composite_glyph, append_stretch_glyph):
3488 Use it to initialize glyph slice.
3490 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
3492 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
3493 (on_hot_spot_p): Make sure we always return a value.
3494 (Flookup_image_map): Remove unused var ix and iy.
3495 (note_mode_line_or_margin_highlight): Remove unused var `image'.
3497 2004-04-27 Eli Zaretskii <eliz@gnu.org>
3499 * msdos.c (init_environment): If one of the TMP... environment
3500 variables is set to a drive letter without a trailing slash,
3503 2004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
3505 * editfns.c (lisp_time_argument): Provide externally.
3507 * fileio.c (Fset_file_times): New function.
3508 (syms_of_fileio): Intern and staticpro it.
3510 2004-04-27 Kim F. Storm <storm@cua.dk>
3512 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
3513 header line strings.
3515 * dispextern.h (struct it): New member use_default_face.
3517 * xdisp.c (Qline_height): New variable.
3518 (syms_of_xdisp): Intern and staticpro it.
3519 (append_space_for_newline): Partially undo 2004-04-25 change;
3520 add default_face_p arg, and restore callers.
3521 Clear it->use_default_face after use.
3522 (x_produce_glyphs): Set default font for ascii char if
3523 it->use_default_font is set. Change line-spacing property to set
3524 just extra line spacing. Handle new line-height property.
3526 2004-04-26 Andreas Schwab <schwab@suse.de>
3528 * print.c (print_object): Print non-ascii characters in bool
3529 vector representation as octal escapes.
3531 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
3532 * print.c (print_object): Use it instead of BITS_PER_CHAR for
3534 * lread.c (read1): Likewise.
3535 * alloc.c (Fmake_bool_vector): Likewise.
3536 * data.c (Faref, Faset): Likewise.
3537 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
3538 (mapcar1): Likewise.
3540 2004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
3542 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
3544 2004-04-26 Miles Bader <miles@gnu.org>
3546 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
3548 2004-04-26 Juanma Barranquero <lektu@terra.es>
3550 * buffer.c (Fpop_to_buffer): Fix docstring.
3552 2004-04-26 Steven Tamm <steventamm@mac.com>
3554 * lread.c (init_lread): Don't display missing lisp directory
3555 warnings with Carbon Emacs because self-contained bundled Emacs
3556 may be built without correct installation path.
3558 2004-04-25 Kim F. Storm <storm@cua.dk>
3560 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
3562 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
3564 * xdisp.c (append_space_for_newline): Rename from append_space.
3565 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
3566 (x_produce_glyphs): Handle line-spacing property on newline char.
3567 If value is t, adjust ascent and descent to fit current row height.
3568 If value is an integer or float, set extra_line_spacing to integer
3569 value, or to float value x current line height.
3571 2004-04-23 Kenichi Handa <handa@m17n.org>
3573 * fontset.c (Finternal_char_font): If POSITION is nil, return
3574 font for displaying CH with the default face.
3576 2004-04-23 Juanma Barranquero <lektu@terra.es>
3578 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
3580 2004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
3582 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
3583 Don't make assumptions about the relative place of i and val.
3584 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
3586 2004-04-21 Kim F. Storm <storm@cua.dk>
3588 * dispextern.h (struct glyph_slice): New struct.
3589 (struct glyph): New member slice.
3590 (GLYPH_SLICE_EQUAL_P): New macro.
3591 (GLYPH_EQUAL_P): Use it.
3592 (struct glyph_string): New member slice.
3593 (struct it_slice): New struct.
3594 (struct it): New member slice, add member to stack too.
3595 New member constrain_row_ascent_descent_p.
3596 (image_ascent): Add prototype.
3598 * dispnew.c (buffer_posn_from_coords): Return full image width
3599 and height even for image slices (posn is relative to full image).
3600 (marginal_area_string): Adjust x0,y0 for image slice.
3602 * image.c (image_ascent): Add slice arg; calculate ascent for
3603 image slice (or full image).
3605 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
3606 (syms_of_keyboard): Defsubr them.
3608 * lisp.h (pos_visible_p): Fix prototype.
3610 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
3611 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3612 (x_draw_image_foreground, x_draw_image_relief)
3613 (x_draw_image_foreground_1, x_draw_image_glyph_string):
3616 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
3617 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3618 (x_draw_image_foreground, x_draw_image_relief)
3619 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
3622 * w32term.h (image_ascent): Remove prototype.
3624 * window.c (Fpos_visible_in_window_p): Return pixel position if
3625 PARTIALLY arg is non-nil. Simplify. Doc fix.
3626 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
3627 to return/set vscroll in pixels.
3629 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
3631 * xdisp.c (Qslice): New variable.
3632 (syms_of_xdisp): Intern and staticpro it.
3633 (pos_visible_p): Return pixel position in new x and y args.
3634 (init_iterator): Reset it->slice info.
3635 (handle_display_prop): Parse (slice ...) property.
3636 (push_it, pop_it): Save/restore slice info.
3637 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
3638 force repositioning of tall row if window is vscrolled, as that
3639 would reset vscroll.
3640 (append_space): Set it->constrain_row_ascent_descent_p to avoid
3641 increasing row height if row is non-empty.
3642 (fill_image_glyph_string): Copy slice info.
3643 (take_vertical_position_into_account): Simplify.
3644 (produce_image_glyph): Handle iterator slice info, setup glyph
3645 slice info. Do not force minimum line height.
3646 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
3647 do not increase height (ascent/descent) of non-empty row when
3648 adding normal character glyph; instead reduce glyph ascent/descent
3649 appropriately; if row is higher than current glyph, adjust glyph
3650 descent/ascent to reposition glyph within the existing row.
3651 Likewise, when char is newline, only set ascent/descent if row is
3653 (note_mouse_highlight): Handle hotspots with sliced image.
3655 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
3656 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3657 (x_draw_image_foreground, x_draw_image_relief)
3658 (x_draw_image_foreground_1, x_draw_image_glyph_string):
3661 * xterm.h (image_ascent): Remove prototype.
3663 2004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3665 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
3667 2004-04-20 John Paul Wallington <jpw@gnu.org>
3669 * fns.c (Fassoc, Feql): Fix indentation.
3671 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
3673 2004-04-19 John Paul Wallington <jpw@gnu.org>
3675 * fns.c (Feql): New function.
3676 (syms_of_fns): Defsubr it.
3678 2004-04-18 Jason Rumney <jasonr@gnu.org>
3680 * w32select.c (Fw32_set_clipboard_data): Get sequence number
3681 after closing the clipboard.
3683 2004-04-16 Luc Teirlinck <teirllm@auburn.edu>
3685 * buffer.c (Fbuffer_base_buffer): Doc fix.
3687 2004-04-17 Kim F. Storm <storm@cua.dk>
3689 * keymap.c (Fkey_description): Add optional PREFIX arg.
3690 Combine prefix with KEYS to make up the full key sequence to describe.
3691 Correlate meta_prefix_char and following (simple) key to describe
3692 as meta modifier. All callers changed.
3693 (describe_map): Rename arg `keys' to `prefix'. Remove local
3694 `elt_prefix' var. Use Fkey_description with prefix instead of
3695 elt_prefix combined with Fsingle_key_description.
3696 (describe_vector): Declare static. Replace arg `elt_prefix' with
3697 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
3698 if !KEYMAP_P. Use Fkey_description with prefix instead of
3699 Fsingle_key_description.
3701 * keymap.h (Fkey_description): Fix prototype.
3702 (describe_vector): Remove prototype.
3704 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
3706 * image.c (PNG_BG_COLOR_SHIFT): Remove.
3707 (png_load): Fix calculation of transparent background color on X
3710 2004-04-16 Juanma Barranquero <lektu@terra.es>
3712 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
3713 not too large before computing how much to scroll.
3715 2004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
3717 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
3719 2004-04-14 Luc Teirlinck <teirllm@auburn.edu>
3721 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
3722 Add hyperlink to Elisp manual to the docstring.
3724 2004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
3726 * callint.c (fix_command): Use XDCR.
3728 2004-04-14 Nick Roberts <nick@nick.uklinux.net>
3730 * window.c (Fget_lru_window): Doc fix.
3732 2004-04-14 Kim F. Storm <storm@cua.dk>
3734 * editfns.c (Fformat): Fix allocation size of precision array.
3736 * dispnew.c (update_window): Only set changed_p if
3737 scrolling_window actually did scroll.
3738 (scrolling_window): Only return 1 if we actually did scroll.
3740 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
3741 height to glyph height when cursor row is not fully visible.
3742 (make_cursor_line_fully_visible): Add FORCE_P arg to return
3743 failure in case row is higher than window. Callers changed.
3744 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
3745 Try to scroll partially visible, higher-than-window cursor row.
3746 (redisplay_window): Always try to scroll partially visible,
3747 higher-than-window cursor row - both initially and again with
3748 centering_position = 0.
3749 Clear desired matrix before retrying with centering_position = 0.
3751 2004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3753 * syntax.c (scan_lists): Simplify backward string scan.
3754 Fix off-by-one boundary check for string and comment fences.
3756 2004-04-13 Joe Buehler <jbuehler@hekimian.com>
3758 * sheap.c, unexcw.c: New files.
3760 2004-04-12 Luc Teirlinck <teirllm@auburn.edu>
3762 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
3763 base buffer has been killed. Correct the error message if the
3764 base buffer does not exist.
3766 2004-04-12 Joe Buehler <jbuehler@hekimian.com>
3768 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
3769 Cygwin itself. Add support for Xaw3d scrollbars.
3771 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
3773 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
3775 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
3776 before Cygwin unexec.
3778 * Makefile.in: Link changes for Cygwin unexec() support.
3780 2004-04-12 Andreas Schwab <schwab@suse.de>
3782 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
3784 2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
3786 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
3787 IGNORE argument equals NAME. Doc fix.
3789 2004-04-11 Masatake YAMATO <jet@gyve.org>
3791 * buffer.c (fix_start_end_in_overlays): Make overlays
3792 empty if they are backwards.
3794 2004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
3796 * xfaces.c (face_color_supported_p): Fix compilation without X11.
3798 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
3800 * doc.c (Fsnarf_documentation): Ignore new file name entries.
3802 2004-04-06 Kim F. Storm <storm@cua.dk>
3804 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
3805 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
3807 * w32term.c (w32_read_socket): Set mouse_face_hidden after
3810 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
3812 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
3815 * indent.c (vmotion): Do not reserve one column for continuation
3816 marks on window frames.
3818 2004-04-04 Eli Zaretskii <eliz@gnu.org>
3820 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
3823 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
3825 * .gdbinit-union: Remove.
3827 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
3828 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
3829 ($nonvalbits): Remove.
3830 ($valmask): Set it by calling xreload to avoid redundancy.
3832 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
3833 (gdb_emacs_intbits): Remove.
3835 2004-03-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3837 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
3839 2004-03-30 Kenichi Handa <handa@m17n.org>
3841 * editfns.c (Fformat): Fix initialization of the array info.
3843 2004-03-30 Kim F. Storm <storm@cua.dk>
3845 * xterm.c (x_mouse_click_focus_ignore_position): New var.
3846 (syms_of_xterm): DEFVAR_BOOL it.
3847 (ignore_next_mouse_click_timeout): New var.
3848 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
3849 Use it to filter mouse clicks following focus event.
3851 2004-03-29 David Ponce <david@dponce.com>
3853 * callint.c (Fcall_interactively): Fix last change.
3855 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3857 * eval.c (Fcommandp): Simplify.
3859 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
3860 Extend to handle all kinds of functions.
3862 * lisp.h (Finteractive_form): Declare.
3864 * callint.c (Fcall_interactively): Use it.
3866 2004-03-26 Kim F. Storm <storm@cua.dk>
3868 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
3869 to catch errors in calc_pixel_width_or_height during redisplay.
3871 2004-03-26 Masatake YAMATO <jet@gyve.org>
3873 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
3875 * lisp.h (fix_start_end_in_overlays): Likewise.
3877 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
3879 * editfns.c (Ftranspose_regions): Likewise.
3881 2004-03-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3883 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
3885 2004-03-19 Richard M. Stallman <rms@gnu.org>
3887 * s/sol2-6.h: Delete previous change.
3889 2004-03-19 Kim F. Storm <storm@cua.dk>
3891 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
3892 to_charpos corresponds to newline in right fringe. Use local
3893 BUFFER_POS_REACHED_P macro.
3895 2004-03-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3897 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
3898 to compile on non-window system.
3900 2004-03-19 Kim F. Storm <storm@cua.dk>
3902 * dispextern.h (calc_pixel_width_or_height): Add prototype.
3904 * image.c (Qcenter): Move to xdisp.c.
3906 * xdisp.c (Qcenter): Declare here.
3907 (syms_of_xdisp): Intern and staticpro it.
3908 (handle_single_display_prop): Allow space display property on all
3910 (display_mode_line): Set mode_line_p before displaying line.
3911 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
3912 handling. Remove complex cases for fringes and scroll-bars.
3913 Add left, right, and center alignment positions. Add text (area)
3914 width/height. Return width or height for image specs.
3915 (produce_stretch_glyph): Improve handling of :align-to. Is now
3916 relative to left of text area by default, but other base offsets
3917 can be specified -- also for text lines.
3919 * term.c (produce_glyphs): Handle IT_STRETCH.
3920 (produce_stretch_glyph): New function to handle space width and
3921 align-to display properties on non-window systems.
3923 2004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3925 * fileio.c (Fread_file_name): Set completion-ignore-case for
3926 case-insensitive systems.
3928 2004-03-14 Masatake YAMATO <jet@gyve.org>
3930 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
3931 when keymap and cursor are setup.
3933 2004-03-14 Steven Tamm <steventamm@mac.com>
3935 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
3937 2004-03-14 Kim F. Storm <storm@cua.dk>
3939 * dispextern.h (x_find_image_file): Add prototype.
3941 * image.c (x_find_image_file): Make extern.
3943 * xfns.c (x_find_image_file): Remove prototype.
3945 2004-03-13 Eli Zaretskii <eliz@gnu.org>
3947 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
3949 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
3951 2004-03-12 Richard M. Stallman <rms@gnu.org>
3953 * fns.c (internal_equal): New arg PROPS controls comparing
3954 text properties. All callers changed.
3955 (Fequal_including_properties): New function.
3956 (syms_of_fns): defsubr it.
3958 2004-03-12 Kim F. Storm <storm@cua.dk>
3960 Fix image support on MAC. From YAMAMOTO Mitsuharu.
3962 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
3963 (image_background, image_background_transparent): Fix prototypes.
3965 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
3967 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
3968 (x_query_font, x_find_ccl_program, x_set_window_size)
3969 (x_make_frame_visible, mac_initialize, XCreatePixmap)
3970 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
3971 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
3973 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
3974 (x_query_font, x_find_ccl_program, x_set_window_size)
3975 (x_make_frame_visible, mac_initialize, XCreatePixmap)
3976 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
3977 (mac_draw_line_to_pixmap): Add prototypes.
3979 2004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3981 * macterm.c (XTread_socket): Fix mouse click on tool bar.
3983 2004-03-11 Kim F. Storm <storm@cua.dk>
3985 * dispextern.h: Move image related prototypes from xfns.c section
3986 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
3989 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
3990 Move gtkutil.o to new GTK_OBJ list.
3991 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
3992 (GTK_OBJ) [USE_GTK]: New declaration.
3993 (obj): Add $(GTK_OBJ) to list.
3995 2004-03-11 Steven Tamm <steventamm@mac.com>
3997 * image.c [MAC_OSX]: Include sys/stat.h
3999 * macfns.c (syms_of_macfns): Remove definitions of things now
4002 2004-03-11 Kim F. Storm <storm@cua.dk>
4004 The following changes consolidates the identical/similar image
4005 support code previously found in xfns.c, w32fns.c, and macfns.c
4006 into a new file image.c.
4008 * makefile.w32-in (OBJ1): Add image.o.
4009 ($(BLD)/image.$(O)): Add dependencies.
4011 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
4012 (image.o): Add dependencies.
4014 * image.c: New file with consolidated image support code.
4015 (COLOR_TABLE_SUPPORT): New define to control whether
4016 color table support is available (X only).
4017 (Bitmap_Record): Common name for x_bitmap_record,
4018 w32_bitmap_record, and mac_bitmap_record.
4019 (XImagePtr): Common name for pointer to XImage or equivalent.
4020 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
4021 to XImagePtr on X+MAC, and to HDC on W32.
4022 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
4023 (NO_PIXMAP): Common name for "None" or equivalent.
4024 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
4025 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
4026 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
4027 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
4028 Define with suitable equivalents on W32 and MAC for code sharing.
4029 (XDrawLine): Define on MAC for code sharing.
4030 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
4031 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
4032 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4033 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4034 (x_reference_bitmap, x_create_bitmap_from_data)
4035 (x_create_bitmap_from_file, x_destroy_bitmap)
4036 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4037 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4038 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4039 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4040 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4041 (define_image_type, lookup_image_type, valid_image_p)
4042 (image_error, enum image_value_type, struct image_keyword)
4043 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4044 (make_image, free_image, prepare_image_for_display, image_ascent)
4045 (four_corners_best, image_background, image_background_transparent)
4046 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4047 (make_image_cache, free_image_cache, clear_image_cache)
4048 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4049 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4050 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4051 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
4052 (init_image_func_pointer, image_load_quartz2d)
4053 (struct ct_color, init_color_table, free_color_table)
4054 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4055 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4056 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4057 (x_disable_image, x_build_heuristic_mask)
4058 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4059 (TIFF support, GIF support, Ghostscript support): Consolidate image
4060 code from xfns.c, w32fns.c, and macfns.c.
4061 (syms_of_image): Consolidate image related symbol setup here.
4062 (init_image): Consolidate image related initializations here.
4064 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
4065 and init_image. Remove call to init_xfns.
4067 * macterm.h (struct mac_bitmap_record): Add file member.
4068 Not currently used, but simplifies code sharing.
4070 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4071 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4072 (x_reference_bitmap, x_create_bitmap_from_data)
4073 (x_create_bitmap_from_file, x_destroy_bitmap)
4074 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4075 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4076 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4077 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4078 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4079 (define_image_type, lookup_image_type, valid_image_p)
4080 (image_error, enum image_value_type, struct image_keyword)
4081 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4082 (make_image, free_image, prepare_image_for_display, image_ascent)
4083 (four_corners_best, image_background, image_background_transparent)
4084 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4085 (make_image_cache, free_image_cache, clear_image_cache)
4086 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4087 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4088 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4089 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
4090 (init_image_func_pointer, image_load_quartz2d)
4091 (struct ct_color, init_color_table, free_color_table)
4092 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4093 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4094 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4095 (x_disable_image, x_build_heuristic_mask)
4096 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4097 (TIFF support, GIF support, Ghostscript support): Merge with image
4098 code from xfns.c and macfns.c into image.c.
4099 (syms_of_xfns): Move image related symbols to image.c.
4100 (init_external_image_libraries, init_xfns): Remove; initialization
4101 moved to init_image in image.c.
4103 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4104 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4105 (x_reference_bitmap, x_create_bitmap_from_data)
4106 (x_create_bitmap_from_file, x_destroy_bitmap)
4107 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4108 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4109 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4110 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4111 (define_image_type, lookup_image_type, valid_image_p)
4112 (image_error, enum image_value_type, struct image_keyword)
4113 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4114 (make_image, free_image, prepare_image_for_display, image_ascent)
4115 (four_corners_best, image_background, image_background_transparent)
4116 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4117 (make_image_cache, free_image_cache, clear_image_cache)
4118 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4119 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4120 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4121 (struct ct_color, init_color_table, free_color_table)
4122 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4123 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4124 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4125 (x_disable_image, x_build_heuristic_mask)
4126 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4127 (TIFF support, GIF support, Ghostscript support): Merge with image
4128 code from xfns.c and macfns.c into image.c.
4129 (syms_of_xfns): Move image related symbols to image.c.
4130 (init_external_image_libraries, init_xfns): Remove; initialization
4131 moved to init_image in image.c.
4133 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4134 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4135 (x_reference_bitmap, x_create_bitmap_from_data)
4136 (x_create_bitmap_from_file, x_destroy_bitmap)
4137 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4138 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4139 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4140 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4141 (define_image_type, lookup_image_type, valid_image_p)
4142 (image_error, enum image_value_type, struct image_keyword)
4143 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4144 (make_image, free_image, prepare_image_for_display, image_ascent)
4145 (four_corners_best, image_background, image_background_transparent)
4146 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4147 (make_image_cache, free_image_cache, clear_image_cache)
4148 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4149 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4150 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4151 (struct ct_color, init_color_table, free_color_table)
4152 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4153 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4154 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4155 (x_disable_image, x_build_heuristic_mask)
4156 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4157 (TIFF support, GIF support, Ghostscript support): Merge with
4158 w32fns.c and macfns.c image code into image.c.
4159 (syms_of_xfns): Move image related symbols to image.c.
4160 (init_xfns): Remove; initialization moved to init_image in image.c.
4162 * lisp.h (syms_of_image, init_image): Add protoypes.
4163 (init_xfns): Remove prototype.
4165 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4166 (x_reference_bitmap, x_create_bitmap_from_data)
4167 (x_create_bitmap_from_file, x_destroy_bitmap)
4168 (x_create_bitmap_mask): Move prototypes from dispextern.h.
4169 (gamma_correct) [MAC_OS]: Add prototype.
4171 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4172 (x_reference_bitmap, x_create_bitmap_from_data)
4173 (x_create_bitmap_from_file, x_destroy_bitmap)
4174 (x_create_bitmap_mask): Move prototypes to dispextern.h.
4176 2004-03-09 Kenichi Handa <handa@etlken2>
4178 * coding.c (decode_coding_emacs_mule): Handle insufficent source
4181 2004-03-04 Richard M. Stallman <rms@gnu.org>
4183 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
4185 * window.c (Fdisplay_buffer): Doc fix.
4187 * buffer.c (Fpop_to_buffer): Doc fix.
4189 2004-03-03 Kim F. Storm <storm@cua.dk>
4191 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
4193 2004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
4195 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
4197 2004-03-02 Richard M. Stallman <rms@gnu.org>
4199 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
4201 2004-03-02 Kenichi Handa <handa@m17n.org>
4203 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
4205 2004-03-02 Kim F. Storm <storm@cua.dk>
4207 * window.h (struct window): New member overlay_arrow_bitmap.
4209 * window.c (make_window): Initialize overlay_arrow_bitmap.
4211 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
4212 implement and integrate multiple overlay arrows with redisplay.
4213 (syms_of_xdisp): DEFVAR_LISP and initialize it.
4214 (last_arrow_position, last_arrow_string): Replace by properties.
4215 (Qlast_arrow_position, Qlast_arrow_string)
4216 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
4217 (syms_of_xdisp): Intern and staticpro them.
4218 (overlay_arrow_string_or_property, update_overlay_arrows)
4219 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
4220 (overlay_arrow_at_row): New functions for multiple overlay arrows.
4221 (redisplay_internal): Use them instead of directly accessing
4222 Voverlay_arrow_position etc. for multiple overlay arrows.
4223 (mark_window_display_accurate): Use update_overlay_arrows.
4224 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
4225 (try_window_id): Use overlay_arrows_changed_p.
4226 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
4227 (display_line): Use overlay_arrow_at_row to check multiple
4228 overlay arrows, and get relevant overlay-arrow-string and
4229 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
4230 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
4231 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
4233 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
4234 (update_window_fringes): Remove unused code.
4236 2004-03-01 Jason Rumney <jasonr@gnu.org>
4238 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
4240 2004-03-01 Juanma Barranquero <lektu@terra.es>
4242 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
4244 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
4246 2004-03-01 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4248 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
4249 how many colors can be displayed.
4251 2004-03-01 Kenichi Handa <handa@m17n.org>
4253 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
4256 2004-02-28 Kim F. Storm <storm@cua.dk>
4258 * dispnew.c (update_window): Update header line also if there are
4259 no other changes in window (move code after set_cursor label).
4261 * lisp.h (mark_window_display_accurate): Remove prototype.
4263 * window.c (window_loop, Fforce_window_update): Force mode line
4264 updates by setting prevent_redisplay_optimizations_p and
4267 2004-02-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4269 * xfns.c (x_window): Fix indentation.
4271 * xterm.c (x_calc_absolute_position): Call x_real_positions
4272 to get WM window sizes and use those to calculate position.
4273 (x_set_offset): Remove code commented out.
4275 2004-02-28 Miles Bader <miles@gnu.org>
4277 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
4279 2004-02-28 Kim F. Storm <storm@cua.dk>
4281 * keyboard.c (kbd_buffer_store_event_hold): New function to store
4282 an event into kbd fifo, but with special handling of quit event;
4283 a quit event is saved for later, and further events are discarded
4284 until the saved quit event has been processed.
4285 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
4286 (gen_help_event): Store help event in kbd fifo.
4287 (NREAD_INPUT_EVENTS): Remove.
4288 (read_avail_input): Adapt to new read_socket_hook interface.
4289 Remove allocation and initialization of local input_event buffer,
4290 as read_socket_hook stores events directly in fifo. Allocate and
4291 initialize local hold_quit event to handle postponed quit event
4292 (and store it if set by kbd_buffer_store_event_hold).
4294 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
4295 (gen_help_event): Fix prototype.
4297 * macterm.c (XTread_socket): Remove bufp_r and
4298 numcharsp args. Add hold_quit arg.
4299 Rework to use just one, local, inev input_event. Store inev
4300 directly in fifo using kbd_buffer_store_event_hold.
4302 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
4303 (read_input_waiting): Adapt to new read_socket_hook interface.
4304 Remove allocation and initialization of local input_event buffer,
4305 as read_socket_hook stores events directly in fifo. Allocate and
4306 initialize local hold_quit event to handle postponed quit event
4307 (and store it if set by kbd_buffer_store_event_hold).
4309 * term.c (read_socket_hook): Fix arg list.
4311 * termhooks.h (read_socket_hook): Fix prototype.
4313 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
4314 numcharsp args. Add hold_quit arg.
4315 Rework to use just one, local, inev input_event. Store inev
4316 directly in fifo using kbd_buffer_store_event_hold.
4318 * w32inevt.h (w32_console_mouse_position): Fix prototype.
4320 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
4321 Add hold_quit arg. Rework to use just one, local, inev
4322 input_event. Store inev directly in fifo using
4323 kbd_buffer_store_event_hold. Update count in one place.
4324 Postpone call to gen_help_event until inev is stored; use new
4325 local do_help for this.
4326 Remove local emacs_event in handing of ButtonPress event; just use
4327 inev instead (so no reason to copy it later).
4329 * xsmfns.c (x_session_check_input): Remove numchars arg.
4331 * xterm.c (x_focus_changed, x_detect_focus_change):
4332 Remove numchars arg. Always store event into bufp arg.
4333 Return nothing. Callers changed accordingly.
4334 (glyph_rect): Simplify.
4335 (STORE_KEYSYM_FOR_DEBUG): New macro.
4336 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
4337 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
4338 (current_hold_quit) [USE_GTK]: Add.
4339 (event_handler_gdk): Adapt to new handle_one_xevent.
4340 (handle_one_xevent): Remove bufp_r and numcharsp args.
4341 Add hold_quit arg. Rework to use just one, local, inev
4342 input_event. Store inev directly in fifo using
4343 kbd_buffer_store_event_hold. Update count in one place.
4344 Postpone call to gen_help_event until inev is stored; use new
4345 local do_help for this.
4346 Simplify handling of keysyms (consolidate common code). Fix bug
4347 where count was updated with nchars instead of nbytes.
4348 Remove local emacs_event in handing of ButtonPress event; just use
4349 inev instead (so no reason to copy it later).
4350 Remove `out' label. Rename label `ret' to `done'; add various
4351 `goto done' to clarify code flow in deeply nested blocks.
4352 (x_dispatch_event): Simplify as handle_one_xevent now calls
4353 kbd_buffer_store_event itself.
4354 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
4355 arg. Call handle_one_xevent with new arglist. Store event from
4356 x_session_check_input in fifo.
4357 [USE_GTK]: Setup current_hold_quit.
4358 Decrement handling_signal before unblocking input.
4359 (x_initialize) [USE_GTK]: Initialize current_count.
4361 * xterm.h (x_session_check_input): Fix prototype.
4363 2004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4365 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
4367 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
4370 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
4372 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
4373 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
4374 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
4375 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
4376 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
4377 (Bitmap): Remove typedef.
4378 (Pixmap): Change int to GWorldPtr.
4380 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
4382 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
4383 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
4384 New #define to extract 16-bit depth color components from unsigned
4385 long representation.
4386 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
4387 colors used for masks.
4388 (struct mac_display_info): Add color_p. Remove n_cbits.
4390 * macfns.c: Include sys/types.h and sys/stat.h.
4391 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
4392 Include QuickTime/QuickTime.h.
4393 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
4394 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
4395 functions defined in macterm.c.
4396 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
4397 (ZPixmap): New #define for compatibility with xfns.c.
4398 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4399 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
4400 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
4402 (four_corners_best, x_create_x_image_and_pixmap)
4403 (x_destroy_x_image, unwind_create_frame, x_disable_image)
4404 (x_edge_detection, init_color_table, colors_in_color_table)
4405 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
4406 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
4407 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
4408 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
4409 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
4411 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
4412 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
4413 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
4414 (x_set_cursor_type, Fxw_color_values, valid_image_p)
4415 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
4416 (x_alloc_image_color, clear_image_cache, lookup_image)
4417 (x_find_image_file, xbm_read_bitmap_file_data)
4418 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
4419 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
4420 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
4421 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
4422 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
4423 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
4424 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
4426 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
4427 #if 0. Free white_relief.gc and black_relief.gc.
4428 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
4429 New functions (from xfns.c).
4430 (Fx_create_frame): Record unwind_create_frame.
4431 (Fxw_display_color_p): Use dpyinfo->color_p.
4432 (Fx_display_grayscale_p, Fx_display_planes): Don't use
4434 (Fx_display_color_cells): Use dpyinfo->n_planes;
4435 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
4436 (Qheuristic, cross_disabled_images, emboss_matrix)
4437 (laplace_matrix): New variables (from xfns.c).
4438 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
4439 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
4440 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
4441 (image_background_transparent): New function (from xfns.c).
4442 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
4443 (image_load_quicktime): Add declaration.
4444 [MAC_OSX] (image_load_quartz2d): Likewise.
4445 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
4446 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
4447 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
4448 (xbm_load_image_from_file, x_laplace_read_row)
4449 (x_laplace_write_row, pbm_read_file): Remove functions.
4450 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
4451 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
4452 (colors_in_color_table): Sync with xfns.c (although not used).
4453 (lookup_rgb_color): Don't lookup color table. Just do gamma
4455 (COLOR_INTENSITY): New #define (from xfns.c).
4456 (x_disable_image): New function (from xfns.c).
4457 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
4458 (x_build_heuristic_mask): Sync with xfns.c.
4459 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
4460 (HAVE_PBM): Remove #ifdef.
4461 (pbm_load): Sync with xfns.c. Set img->width and img->height
4462 before IMAGE_BACKGROUND.
4463 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
4464 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
4465 Don't enclose with #if HAVE_PNG.
4466 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
4467 symbol _CGImageCreateWithPNGDataProvider is defined.
4468 Otherwise use image_load_quicktime.
4469 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
4470 [HAVE_PNG] (png_load): Sync with xfns.c.
4471 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
4472 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
4474 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
4475 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
4476 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
4477 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
4478 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
4479 (tiff_image_p, tiff_load): Don't enclose declarations with #if
4481 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
4482 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
4483 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
4484 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
4485 New functions (from xfns.c).
4486 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
4487 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
4488 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
4489 Don't enclose with #if HAVE_GIF.
4490 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
4491 animated gif. Otherwise use image_load_quicktime.
4492 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
4493 gif_DrawText to avoid conflict with QuickdrawText.h.
4494 [HAVE_GIF] (gif_load): Sync with xfns.c.
4495 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
4496 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
4497 Ghostscript is not supported yet).
4498 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
4499 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
4500 cross_disabled_images (from xfns.c). Remove #if 0 for supported
4501 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
4502 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
4503 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
4504 HAVE_PNG. Call EnterMovies to support animated gifs.
4505 Call init_image_func_pointer to bind a symbol
4506 _CGImageCreateWithPNGDataProvider if it is defined.
4508 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
4509 (x_draw_bar_cursor): Sync declaration with xterm.c.
4510 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
4511 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
4513 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
4514 (mac_draw_line_to_pixmap, XCreatePixmap)
4515 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
4516 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
4518 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
4519 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
4520 Cast bits to char *.
4521 (reflect_byte): New function (from w32fns.c).
4522 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
4523 due to byte alignment.
4524 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
4525 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
4526 (XSetForeground): Remove static (now used in macfns.c).
4527 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
4528 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
4529 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
4530 (x_draw_glyph_string_box, x_draw_image_foreground)
4531 (x_draw_image_foreground_1, x_draw_image_glyph_string)
4532 (x_draw_stretch_glyph_string, x_draw_glyph_string)
4533 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
4535 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
4536 than the xterm.c version when a strictly horizontal or vertical
4538 (XTset_terminal_window): Add static.
4539 (x_make_frame_visible): Add UNBLOCK_INPUT.
4540 (x_free_frame_resources): New funcion (from xterm.c).
4541 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
4542 occurs in tool bar area.
4543 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
4544 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
4545 Initialize image cache.
4546 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
4547 Enclose unused functions with #if 0.
4548 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
4549 (decode_mac_font_name): New function to apply code conversions
4550 from a mac font name to an XLFD font name according to its script code.
4551 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
4552 font name to a mac font name according to REGISTRY and ENCODING fields.
4553 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
4554 whose name starts with `.'.
4555 (init_font_name_table): Use decode_mac_font_name. Add both
4556 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
4557 of a font is smJapanese.
4558 (mac_do_list_fonts): New function to list fonts that match a given
4560 (x_list_fonts, XLoadQueryFont): Use it.
4561 (XLoadQueryFont): Set rbearing field for each variable width
4562 character to avoid needless redraw.
4563 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
4565 2004-02-26 Kim F. Storm <storm@cua.dk>
4567 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
4568 as read_socket_hook handler on X aborts if buffer is too small
4569 and W32 handler doesn't always check buffer limit.
4571 * xdisp.c (handle_single_display_prop): Handle left-fringe and
4572 right-fringe similar to a display margin image. Specifically,
4573 the characters having the fringe prop are no longer shown, and
4574 we use IT_IMAGE/next_element_from_image with image_id = -1 to
4575 do this. Set fringe bitmap face_id in it->face_id.
4576 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
4577 still realize it->face (i.e. the fringe bitmap face).
4579 2004-02-25 Miles Bader <miles@gnu.org>
4581 * xdisp.c (check_it): Check string/string_pos consistency.
4582 (init_iterator): Initialize string-related fields properly.
4584 2004-02-11 Miles Bader <miles@gnu.org>
4586 * xdisp.c (produce_image_glyph): Force negative descents to zero.
4588 2004-02-10 Miles Bader <miles@gnu.org>
4590 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
4591 BLOCK_INPUT can be nested, so it doesn't make much sense.
4593 2004-02-24 Michael Mauger <mmaug@yahoo.com>
4595 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
4596 (xbm_read_bitmap_data): Use unsigned char for image data.
4598 2004-02-23 Luc Teirlinck <teirllm@auburn.edu>
4600 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
4602 2004-02-22 Jason Rumney <jasonr@gnu.org>
4604 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
4605 correctly over other bitmaps.
4607 2004-02-21 Eli Zaretskii <eliz@gnu.org>
4609 * emacs.c (USAGE1): Split into two halves.
4610 (USAGE2): Second half of the old USAGE1.
4611 (USAGE3): Rename from USAGE2.
4612 (USAGE4): Rename from USAGE3.
4614 2004-02-21 Juri Linkov <juri@jurta.org>
4616 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
4617 Fix --multibyte. Move --help, --version to USAGE2. Add alias
4618 --file. Fix -f, -l. Sort options. Untabify.
4619 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
4621 2004-02-19 Luc Teirlinck <teirllm@auburn.edu>
4623 * category.c (Fdefine_category, Fcategory_docstring)
4624 (Fget_unused_category, Fset_category_table)
4625 (Fcategory_set_mnemonics): Doc fixes.
4627 2004-02-20 Kim F. Storm <storm@cua.dk>
4629 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
4630 The following changes are relative to the 2004-01-21 revision.
4631 (NREAD_INPUT_EVENTS): Define as max number of input events to read
4632 in one call to read_socket_hook. Value is 8.
4633 (read_avail_input): Separate and rework handling of read_socket_hook
4634 and non-read_socket_hook cases. Use smaller input_event buffer
4635 in read_socket_hook case, and repeat if full buffer is read.
4636 Use new local variable 'discard' to skip input after C-g.
4637 In non-read_socket_hook case, just use a single input_event, and
4638 call kbd_buffer_store_event on the fly for each character.
4640 2004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
4642 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
4643 Remove unused `gu' alternative.
4645 2004-02-19 Andreas Schwab <schwab@suse.de>
4647 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
4650 2004-02-18 Kim F. Storm <storm@cua.dk>
4652 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
4655 2004-02-17 Kim F. Storm <storm@cua.dk>
4657 * xdisp.c (fast_find_position): Fix return value of new version;
4658 it was inverted compared to the 21.1 version.
4659 (get_window_cursor_type): Don't look at glyph if NULL.
4660 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
4662 * keyboard.c: Rework previous change; it didn't consider that the
4663 buf array was allocated on the stack.
4664 (prev_read): Remove variable.
4665 (read_avail_input_buf): New static event buffer array.
4666 (in_read_avail_input): New static variable to handle re-entrancy.
4667 (read_avail_input): Change buf to pinter to read_avail_input_buf.
4668 Use in_read_avail_input to handle re-entrance; when re-entered,
4669 fully initialize and use tmp_buf array instead of read_avail_input_buf.
4670 Do not initialize read_avail_input_buf in full here; instead assume it
4671 is always cleared on entry. To ensure that, we clear (just) the
4672 entries that were used before we return.
4673 (init_keyboard): Initialize read_avail_input_buf here.
4675 2004-02-16 Jesper Harder <harder@ifa.au.dk>
4677 * cmds.c (Fend_of_line): Doc fix.
4679 2004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
4681 * keyboard.c (prev_read): New static variable.
4682 (read_avail_input): Use it to zero out only those slots in buf[]
4683 that were used last time we were called.
4685 2004-02-16 Eli Zaretskii <eliz@gnu.org>
4687 * Makefile.in (obj): Move fringe.o from here...
4688 (XOBJ, MAC_OBJ): ...to here.
4690 2004-02-16 Stephen Eglen <stephen@gnu.org>
4692 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
4694 2004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
4696 * data.c (Fbyteorder):
4697 * fringe.c (Fdefine_fringe_bitmap):
4698 * xdisp.c (handle_single_display_prop):
4699 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
4701 2004-02-16 Jason Rumney <jasonr@gnu.org>
4703 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
4705 2004-02-15 Steven Tamm <steventamm@mac.com>
4707 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
4708 controlling emulation of a three button mouse with option and
4710 (Qreverse, mac_get_enumlated_btn): Handle the emulation
4711 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
4713 2004-02-15 Kim F. Storm <storm@cua.dk>
4715 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
4717 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
4718 Perform byte-swapping.
4720 2004-02-14 Kim F. Storm <storm@cua.dk>
4722 * dispextern.h (struct draw_fringe_bitmap_params): Change member
4723 bits from char to short to facilitate wider bitmaps.
4724 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
4727 * fringe.c (struct fringe_bitmap): Change member bits from char to
4728 short to facilitate 16 bits wide bitmaps. Modify all standard
4729 bitmaps accordingly.
4730 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
4731 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
4732 (draw_fringe_bitmap): Ditto.
4733 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
4734 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
4735 handle up to 16 bits wide bitmaps.
4736 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
4737 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
4739 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
4740 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
4741 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
4743 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
4744 so it is no longer necessary to expand them here.
4746 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
4748 2004-02-12 Kim F. Storm <storm@cua.dk>
4750 * window.c (Fwindow_fringes): Doc fix.
4752 2004-02-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4754 * xselect.c (x_get_foreign_selection): Add new optional parameter
4756 (Fx_get_selection_internal): Ditto, pass time_stamp to
4757 x_get_foreign_selection.
4759 * data.c (Fbyteorder): New function.
4761 2004-02-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4763 * atimer.c: Move include stdio.h to same place as in other files.
4765 * region-cache.c: Ditto.
4771 2004-02-09 Sam Steingold <sds@gnu.org>
4773 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4775 2004-02-09 Kim F. Storm <storm@cua.dk>
4777 * fringe.c: New file. Move original fringe related declarations
4778 and code from dispextern.h and xdisp.c here.
4779 Rework code to support user defined fringe bitmaps, redefining
4780 standard bitmaps, ability to overlay user defined bitmap with
4781 overlay arrow bitmap, and add faces to bitmaps.
4782 (Voverflow_newline_into_fringe): Declare here.
4783 (enum fringe_bitmap_align): New enum.
4784 (..._bits): All bitmaps are now defined without bitswapping; that
4785 is now done in init_fringe_once (if necessary).
4786 (standard_bitmaps): New array with specifications for the
4787 standard fringe bitmaps.
4788 (fringe_faces): New array.
4789 (valid_fringe_bitmap_id_p): New function.
4790 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
4791 (draw_fringe_bitmap): New function which draws fringe bitmap,
4792 possibly overlaying bitmap with cursor in right fringe or the
4793 overlay arrow in the left fringe.
4794 (update_window_fringes): Do not handle overlay arrow here.
4795 Compare and copy fringe bitmap faces.
4796 (init_fringe_bitmap): New function.
4797 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
4798 define and destroy user defined fringe bitmaps.
4799 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
4800 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
4801 (syms_of_fringe): New function. Defsubr new DEFUNs.
4802 DEFVAR_LISP Voverflow_newline_into_fringe.
4803 (init_fringe_once, init_fringe): New functions.
4804 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4806 * Makefile.in (obj): Add fringe.o.
4807 (fringe.o): New dependencies.
4809 * dispextern.h (FRINGE_ID_BITS): New definition for number of
4810 bits allocated to hold a fringe number. Increase number of bits
4811 from 4 to 8 to allow user defined fringe bitmaps.
4812 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
4813 left_user_fringe_face_id, right_user_fringe_bitmap,
4814 right_user_fringe_face_id.
4815 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
4816 Move to new file fringe.c.
4817 (MAX_FRINGE_BITMAPS): Define here.
4818 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
4819 and overlay_p. Change member which to int.
4820 (struct redisplay_interface): New members define_fringe_bitmap
4821 and destroy_fringe_bitmap.
4822 (valid_fringe_bitmap_id_p): Add prototype.
4823 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
4825 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
4827 (update_frame): Do flush_display if force_flush_display_p to
4828 ensure display (specifically fringes) are updated in a timely
4829 manner when resizing the frame by dragging the mouse.
4830 (update_window_line): Update row if overlay arrow changed.
4831 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
4832 or overlay arrow changed.
4834 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
4835 syms_of_fringe, and init_fringe.
4837 * frame.h (struct frame): New member force_flush_display_p.
4839 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
4842 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
4843 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
4844 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
4845 Use cursor color for displaying cursor in fringe.
4846 (x_redisplay_interface): Add null handlers for
4847 define_fringe_bitmap and destroy_fringe_bitmap functions.
4849 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
4850 xterm.c to handle overlayed fringe bitmaps and to use cursor color
4851 for displaying cursor in fringe.
4852 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
4853 specific functions to define and destroy fringe bitmaps in fringe_bmp.
4854 (w32_redisplay_interface): Add them to redisplay_interface.
4855 (w32_term_init): Call w32_init_fringe instead of explicitly
4856 defining fringe bitmaps in fringe_bmp array.
4857 (x_delete_display): Call w32_reset_fringes instead of explicitly
4858 destroying fringe bitmaps in fringe_bmp array.
4860 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
4861 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
4862 (continued_bits, continuation_bits, ov_bits, first_line_bits)
4863 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
4864 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
4865 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
4866 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
4867 Move fringe handling vars and code to new file fringe.c.
4868 (handle_display_prop): Handle left-fringe and right-fringe
4869 display properties; store user fringe bitmaps in iterator.
4870 (move_it_in_display_line_to): Handle cursor in fringe at eob.
4871 (clear_garbaged_frames): Set force_flush_display_p if resized.
4872 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
4873 (display_line): Handle cursor in fringe at eob.
4874 (display_line): Set row user fringe bitmaps from iterator.
4876 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
4877 Use cursor color for displaying cursor in fringe.
4878 (x_redisplay_interface): Add null handlers for
4879 define_fringe_bitmap and destroy_fringe_bitmap functions.
4881 2004-02-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4883 * macfns.c (Fx_change_window_property): Make doc string and
4884 parameters same as for X version.
4886 * w32fns.c (Fx_change_window_property): Ditto.
4888 2004-02-07 Kim F. Storm <storm@cua.dk>
4890 * xdisp.c (hscroll_window_tree): Position cursor near to right
4891 margin in hscrolled window when jumping to end of line (rather
4892 than centering cursor).
4894 * process.c (wait_reading_process_input): Don't do adaptive read
4895 buffering if waiting for a specific process.
4897 2004-02-05 Luc Teirlinck <teirllm@auburn.edu>
4899 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
4900 (Fread_minibuffer, Feval_minibuffer)
4901 (Fread_string, Fread_no_blanks_input)
4902 (Fcompleting_read): Doc fixes.
4903 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
4904 completion-regexp-list. Define Qcase_fold_search and staticpro it.
4905 (read_minibuf): Fix initial comment.
4906 (Ftry_completion, Fall_completions, Ftest_completion): Bind
4907 case-fold-search to the value of completion-ignore-case when
4908 checking completion-regexp-list.
4909 (Fdisplay_completion_list): Make it handle arguments that are
4912 2004-02-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4914 * xterm.h: Add declaration of free_frame_menubar.
4916 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
4917 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
4918 (Fx_change_window_property): Add declaration of parameters type and
4919 format. Remove unused variable cons.
4921 * xselect.c: Include stdio,h.
4923 2004-02-05 Kenichi Handa <handa@m17n.org>
4925 * fns.c (Fset_char_table_range): Fix previous change.
4927 * buffer.c (Fset_buffer_multibyte): Fix docstring.
4929 2004-02-04 Luc Teirlinck <teirllm@auburn.edu>
4931 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
4933 2004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
4935 * keymap.c (Vmouse_events): Rename from Vmenu_events.
4936 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
4938 2004-02-04 Kenichi Handa <handa@m17n.org>
4940 * fns.c (Fset_char_table_range): Handle charsets ascii,
4941 eight-bit-control, and eight-bit-graphic correctly.
4943 2004-02-03 Jason Rumney <jasonr@gnu.org>
4945 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
4947 * w32fns.c (x_to_w32_font): Likewise.
4949 2004-02-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4951 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
4952 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
4954 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
4957 * xselect.c: Include termhooks.h and X11/Xproto.h
4958 (x_check_property_data, x_fill_property_data)
4959 (x_property_data_to_lisp, mouse_position_for_drop)
4960 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
4961 (Fx_send_client_event): Move here from xfns.c.
4962 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
4964 * xfns.c (x-send-client-message): Move to xselect.c
4965 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
4967 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
4968 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
4969 if vector_ret_p is true.
4970 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
4972 2004-02-02 Eli Zaretskii <eliz@gnu.org>
4974 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
4975 basename of FILE relative to it, not FILE itself.
4977 2004-02-02 Kenichi Handa <handa@m17n.org>
4979 * coding.c (coding_restore_composition): Check invalid
4980 composition data more rigidly.
4982 2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
4984 * fileio.c (Fread_file_name_internal): Correctly handle the case
4985 where insert-default-directory is nil.
4986 (Fread_file_name): Always return an empty string if the user exits
4987 with an empty minibuffer. Adapt the docstring accordingly.
4988 (syms_of_fileio): Adapt the docstring of insert-default-directory
4989 to the change in Fread_file_name.
4991 2004-01-29 Eli Zaretskii <eliz@gnu.org>
4993 * alloca.c [!alloca]: Fix the prototype for xfree.
4995 2004-01-29 Kenichi Handa <handa@m17n.org>
4997 * fns.c (string_char_to_byte): Optimize for ASCII only string.
4998 (string_byte_to_char): Likewise.
5000 2004-01-28 Peter Runestig <peter@runestig.com>
5002 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
5004 2004-01-27 Steven Tamm <steventamm@mac.com>
5006 * unexmacosx.c (unexec_copy): Do not copy more than was
5007 requested to prevent overwriting during unexec.
5009 2004-01-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5011 * process.c (sigchld_handler): Add comment about not calling malloc.
5013 * process.h: Add extern to synch_process_termsig.
5015 2004-01-27 Steven Tamm <steventamm@mac.com>
5017 * macterm.c (make_mac_frame, make_mac_terminal_frame):
5018 Move setting of scroll bars from make_mac_frame to
5019 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
5021 2004-01-26 Richard M. Stallman <rms@gnu.org>
5023 * search.c (Freplace_match): Handle nonexistent
5024 back-references properly.
5026 2004-01-03 Richard M. Stallman <rms@gnu.org>
5028 * window.c (decode_any_window): New function.
5029 (Fwindow_height, Fwindow_width, Fwindow_edges)
5030 (Fwindow_pixel_edges, Fwindow_inside_edges)
5031 (Fwindow_inside_pixel_edges): Use decode_any_window.
5033 2004-01-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5035 * process.h: synch_process_termsig new variable.
5037 * callproc.c: Define synch_process_termsig.
5038 (Fcall_process): Initiate synch_process_termsig to zero and
5039 check if non-zero and get signal name after subprocess has ended.
5041 * process.c (sigchld_handler): Set synch_process_termsig
5042 if terminated by a signal. synch_process_death setting removed.
5044 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
5046 2004-01-26 Andreas Schwab <schwab@suse.de>
5048 * print.c (print_preprocess): Declare size as EMACS_INT to not
5050 (print_object): Likewise.
5051 * alloc.c (Fpurecopy): Likewise.
5053 2004-01-25 Luc Teirlinck <teirllm@auburn.edu>
5055 * window.c (Fwindow_minibuffer_p): Doc fix.
5057 2004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
5059 * editfns.c (Fformat): Make both passes accept the same set of flags.
5061 2004-01-23 Kenichi Handa <handa@m17n.org>
5063 * fns.c (Fmd5): If OBJECT is a buffer different from the current
5064 one, set buffer to OBJECT temporarily.
5066 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
5068 * keyboard.c (kbd_buffer_gcpro): Remove.
5069 (kbd_buffer_store_event, clear_event, Fdiscard_input)
5070 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
5071 Don't initialize and/or maintain the variable any more. It was made
5072 redundant by my commit of 2003-06-15.
5074 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
5076 2004-01-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5078 * lisp.h: Add undef DECL_ALIGN.
5080 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
5082 * process.c (wait_reading_process_input) [SYNC_INPUT]:
5083 Check interrupt_input_pending explicitly.
5085 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
5087 * keyboard.c (handle_async_input): New fun,
5088 extracted from input_available_signal.
5089 (input_available_signal, reinvoke_input_signal): Use it.
5091 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
5093 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
5095 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
5096 manipulation macros for when tags are in the lower bits.
5097 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
5098 (DECL_ALIGN): New macro.
5101 * lisp.h [ENABLE_CHECKING]: Don't force union type.
5103 * s/darwin.h (__attribute__): Remove outdated workaround.
5105 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
5107 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
5108 Don't check range of malloc address.
5109 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
5111 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
5113 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
5115 2004-01-19 Kenichi Handa <handa@m17n.org>
5117 * fontset.c (fontset_font_pattern): Fix previous change.
5119 2004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
5121 * xdisp.c (Voverflow_newline_into_fringe)
5122 (move_it_in_display_line_to, redisplay_internal)
5123 (update_window_fringes, redisplay_window, display_line, window):
5124 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
5125 that it compiles without a window-system.
5126 * dispnew.c (direct_output_for_insert, update_window): Likewise.
5128 2004-01-16 Kim F. Storm <storm@cua.dk>
5130 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
5132 * buffer.c (init_buffer_once): Set buffer_defaults and
5133 buffer_local_flags for indicate_buffer_boundaries.
5134 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
5135 default- variable for it.
5137 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
5138 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
5139 New members exact_window_width_line_p and cursor_in_fringe_p for
5140 overflowing newlines into right fringe.
5141 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
5142 and indicate_bottom_line_p for buffer boundaries and scrolling.
5143 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
5144 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
5145 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
5146 and HOLLOW_SQUARE_BITMAP.
5147 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
5150 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
5151 instead of related indicator fields.
5152 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
5153 (direct_output_for_insert): Handle exact width lines like
5154 contined lines. Call update_window_fringes.
5155 (update_window): Call update_window_fringes.
5156 (scrolling_window): Don't skip desired rows with changed bitmaps.
5157 Check if fringe bitmaps changes when assigning scrolled rows.
5159 * xdisp.c (Voverflow_newline_into_fringe): New variable.
5160 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
5161 (move_it_in_display_line_to): Overflow newline into fringe for
5162 rows that are exactly as wide as the window.
5163 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
5164 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
5165 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
5166 (fringe_bitmaps): Add new bitmaps.
5167 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
5168 Select proper bitmap for cursor in fringe when appropriate.
5169 Handle alignment of bitmap to top or bottom of row.
5170 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
5171 done by update_window_fringes.
5172 (update_window_fringes, draw_window_fringes): New functions.
5173 (redisplay_internal): Call update_window_fringes in case only
5174 cursor row is updated.
5175 (redisplay_window): Call update_window_fringes.
5176 Explicitly call draw_window_fringes if redisplay was done using
5177 the current matrix or the overlay arrow is in the window.
5178 (try_window_reusing_current_matrix): Mark scrolled rows for
5179 fringe update (to update buffer-boundaries / scrolling icons).
5180 (find_last_unchanged_at_beg_row): Handle exact width lines line
5182 (display_line): Overflow newline into fringe for rows that are
5183 exactly as wide as the window. Don't append space for newline
5185 (notice_overwritten_cursor): Explicitly clear cursor bitmap
5186 in fringe as if it had been overwritten.
5187 (erase_phys_cursor): Erase cursor bitmap in fringe.
5188 (syms_of_xdisp): Mark show-trailing-whitespace and
5189 void-text-area-pointer as user options.
5190 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
5192 * xterm.c (x_update_window_end): Call draw_window_fringes.
5193 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5194 in row instead of actually drawing fringe bitmaps.
5195 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5196 (x_draw_window_cursor): Draw cursor in fringe.
5198 * w32term.c (x_update_window_end): Call draw_window_fringes.
5199 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5200 in row instead of actually drawing fringe bitmaps.
5201 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5202 (w32_draw_window_cursor): Draw cursor in fringe.
5204 * macterm.c (x_update_window_end): Call draw_window_fringes.
5205 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5206 in row instead of actually drawing fringe bitmaps.
5207 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5208 (mac_draw_window_cursor): Draw cursor in fringe.
5210 2004-01-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5212 * xterm.c (handle_one_xevent): Don't handle characters that are part
5213 of an old style (XLookupString) compose sequence.
5215 2004-01-15 Kenichi Handa <handa@m17n.org>
5217 * search.c (Freplace_match): Use make_multibyte_string or
5218 make_unibyte_string according to the buffer multibyteness.
5220 2004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
5222 * alloc.c (struct interval_block, struct string_block)
5223 (struct symbol_block, struct marker_block, live_string_p)
5224 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
5225 Better preserve alignment for objects in blocks.
5226 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
5228 * lread.c (defvar_per_buffer): Remove dead declaration.
5230 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
5233 2004-01-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5235 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
5236 if a key press should pop down. Only pop down if a key is pressed
5237 outside the menu/dialog.
5238 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
5239 popup_get_selection.
5240 (create_and_show_dialog): Pass 1 for down_on_keypress to
5241 popup_get_selection.
5243 2004-01-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5245 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
5246 BLOCK/UNBLOCK_INPUT.
5248 2004-01-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5250 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
5253 2004-01-08 Kenichi Handa <handa@m17n.org>
5255 * editfns.c (Fformat): Fix '&' to '&&'.
5257 2004-01-08 Andreas Schwab <schwab@suse.de>
5259 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
5260 size if PSEUDOVECTOR_FLAG is set.
5262 2004-01-07 Kenichi Handa <handa@m17n.org>
5264 * charset.c (Fdeclare_equiv_charset): Fix docstring.
5266 * fontset.c (fontset_ref_via_base): Fix previous change.
5268 2004-01-07 Kim F. Storm <storm@cua.dk>
5270 * process.c (read_process_output): Only activate adaptive
5271 buffering if we read less than 256 bytes at a time.
5273 2004-01-06 Kim F. Storm <storm@cua.dk>
5275 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
5276 object and image object. Return glyph width and height.
5277 (mode_line_string, marginal_area_string): Ditto.
5279 * dispextern.h (buffer_posn_from_coords, mode_line_string)
5280 (marginal_area_string): Fix prototypes.
5282 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
5283 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
5284 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
5286 * keyboard.c (make_lispy_position): Use modified mode_line_string,
5287 buffer_posn_from_coords, and marginal_area_string functions to
5288 include both string object and image object in the lispy position.
5289 Also add actual glyph width and height to position.
5290 (read_key_sequence): Use real buffer position from mouse
5291 event to find keymap property even when click is in marginal area.
5293 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
5294 mode_line_string and marginal_area_string functions to handle
5295 both string object and image object properties.
5297 2004-01-06 Andreas Schwab <schwab@suse.de>
5299 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
5302 2004-01-02 Andreas Schwab <schwab@suse.de>
5304 * macterm.c (emacs_options, x_initialized, same_x_server):
5305 Remove unused (and duplicated) definitions.
5307 2004-01-02 Kim F. Storm <storm@cua.dk>
5309 * process.h (struct Lisp_Process): New members for adaptive read
5310 buffering: adaptive_read_buffering, read_output_delay, and
5313 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
5314 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
5315 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
5316 (process_output_delay_count, process_output_skip): New vars.
5317 (Vprocess_adaptive_read_buffering): New variable.
5318 (make_process): Initialize adaptive read buffering members.
5319 (Fstart_process): Set adaptive_read_buffering member.
5320 (deactivate_process): Cleanup adaptive read buffering.
5321 (wait_reading_process_input): Temporarily omit delayed
5322 subprocesses from the set of file descriptors to read from;
5323 adjust the select timeout if we skipped any subprocesses.
5324 (read_process_output): Increase adaptive read buffering delay if
5325 we read less than a full buffer; reduce delay when we read a
5327 (send_process): Simplify using local Lisp_Process var.
5328 Reset adaptive read buffering delay after write.
5329 (init_process): Initialize process_output_delay_count and
5330 process_output_skip.
5331 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
5333 2004-01-01 Jason Rumney <jasonr@gnu.org>
5335 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
5337 2003-12-30 Luc Teirlinck <teirllm@auburn.edu>
5339 * print.c (Ferror_message_string): Add hyperlink in the docstring
5340 to the definition of `signal' in the Elisp manual.
5341 * eval.c (Fsignal): Ditto.
5343 2003-12-29 James Clark <jjc@jclark.com>
5345 * fns.c (internal_equal): Return t for two NaN arguments.
5347 2003-12-29 Richard M. Stallman <rms@gnu.org>
5349 * data.c (store_symval_forwarding): Handle setting
5350 default-fill-column, etc., by changing the value in
5351 buffers that use the default.
5353 * minibuf.c (Fset_minibuffer_window): Doc fix.
5355 * fileio.c (choose_write_coding_system): Ignore auto_saving
5356 if using the visited file for auto saves.
5357 (Fwrite_region): Don't update SAVE_MODIFF
5358 if auto-saving in visited file.
5360 2003-12-29 Kenichi Handa <handa@m17n.org>
5362 * dispextern.h (face_font_available_p): Extern it.
5364 * fontset.c (Voverriding_fontspec_alist): New variable.
5365 (lookup_overriding_fontspec): New function.
5366 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
5367 (fontset_font_pattern): Likewise.
5368 (regulalize_fontname): New function.
5369 (Fset_fontset_font): Call regulalize_fontname.
5370 (Fset_overriding_fontspec_internal): New function.
5371 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
5372 Defsubr Sset_overriding_fontspec_internal.
5374 * xfaces.c (face_font_available_p): New function.
5376 2003-12-28 Richard M. Stallman <rms@gnu.org>
5378 * buffer.c (Fother_buffer): Don't crash if BUF is nil
5379 or if its name is nil.
5381 * buffer.c (Fkill_buffer): Don't delete auto-save file
5382 if it's the same as the visited file.
5384 2003-12-28 Luc Teirlinck <teirllm@auburn.edu>
5386 * coding.c (Fcheck_coding_system): Doc fix.
5388 2003-12-28 Kim F. Storm <storm@cua.dk>
5390 * Makefile.in (eval.o): Depend on dispextern.h.
5392 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
5393 image glyph using image's ascent.
5394 (mode_line_string): Return image glyph as object clicked on.
5395 Adjust y0 for image glyph using image's ascent.
5397 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
5398 (struct glyph): New members, ascent and descent. Used to save
5399 this glyph's ascent and descent, instead of having.
5400 (struct glyph): Declare member face_id using FACE_ID_BITS.
5401 (find_hot_spot): Add prototype.
5403 * keyboard.c (Qimage): Remove extern (now in lisp.h).
5404 (QCmap): Declare extern.
5405 (make_lispy_position): When position is inside image hot-spot,
5406 use hot-spot element's id as posn element.
5408 * lisp.h (IMAGEP): New macro to test for image object type.
5409 (Qimage): Declare extern.
5411 * macfns.c (Qimage): Remove extern (now in lisp.h).
5412 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5414 * macterm.c (Qface, Qmouse_face): Remove unused externs.
5416 * w32fns.c (Qimage): Remove extern (now in lisp.h).
5417 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5419 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
5421 * w32term.c (Qface, Qmouse_face): Remove unused externs.
5423 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
5425 (Qrelative_width, Qalign_to): Remove unused variables.
5426 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
5427 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
5429 (x_y_to_hpos_vpos): Return glyph relative coordinates through
5431 Remove buffer_only_p arg (always 0). Simplify code accordingly.
5432 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
5433 than row's ascent and height, to get sensible height on tall rows.
5434 (build_desired_tool_bar_string): Remove Qimage extern.
5435 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
5436 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
5437 image glyph is alone on the last line.
5438 (append_glyph, append_composite_glyph, produce_image_glyph)
5439 (append_stretch_glyph): Set glyph's ascent and descent.
5440 (on_hot_spot_p): New function to check if position is inside an
5441 rectangular, circular, or polygon-shaped image hot-spot,
5442 (find_hot_spot): New function to search for image hot-spot.
5443 (Flookup_image_map): New defun to search for image hot-spot.
5444 (define_frame_cursor1): New aux function to determine frame pointer.
5445 (note_mode_line_or_margin_highlight, note_mouse_highlight):
5446 Handle `pointer' text property and :pointer image property to
5447 control frame pointer shape. Detect image hot-spots for pointer
5448 and help_echo properties. Use define_frame_cursor1.
5449 (note_mouse_highlight): Use Vvoid_text_area_pointer.
5450 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
5451 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
5453 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
5455 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
5456 (Qimage): Remove extern (now in lisp.h).
5457 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5459 * xmenu.c (show_help_event): Remove unused code.
5461 * xterm.c (Qface, Qmouse_face): Remove unused externs.
5462 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
5463 row's ascent and descent, to get a sensible height on tall rows.
5465 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
5467 * minibuf.c (Fcompleting_read): Undo previous change.
5469 2003-12-25 Lars Hansen <larsh@math.ku.dk>
5471 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
5472 Arguments GCPRO'ed in call to file name handler.
5474 2003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
5476 * termcap.c (tgetst1): Scan for "%pN"; if all
5477 N are continuous in [1,9], remove all "%pN".
5479 2003-12-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5481 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
5483 * xfaces.c (lface_fully_specified_p): Take into account that
5484 MAC OS always have unspecified stipple.
5486 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
5488 * tparam.c (tparam1): Add handling for `%pN', which
5489 means use param N for the next substitution.
5491 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
5493 * xfaces.c (Fcolor_gray_p): Fix omission bug:
5494 In case `frame' is nil, consult the selected frame.
5495 (Fcolor_supported_p): Likewise.
5497 2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
5499 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
5502 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
5503 and an integer. Adapt the introductory comment accordingly.
5504 (Fread_from_minibuffer): Delete code moved into read_minibuf.
5506 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
5508 (Fcompleting_read): Delete code moved into read_minibuf.
5509 (Ftest_completion): Make it handle obarrays and hash tables correctly.
5511 2003-12-03 Kenichi Handa <handa@m17n.org>
5513 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
5516 2003-12-01 Kenichi Handa <handa@m17n.org>
5518 * composite.c (syms_of_composite): Don't make the compostion hash
5521 2003-11-30 Luc Teirlinck <teirllm@auburn.edu>
5523 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
5524 * textprop.c (Fget_char_property_and_overlay): New function.
5525 (syms_of_textprop): Defsubr it.
5527 2003-11-29 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5529 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
5530 to compile on terminal configuration.
5532 * fileio.c (Fread_file_name): Check use_file_dialog also before
5533 calling Fx_file_dialog.
5535 * fns.c: use_file_dialog: New variable.
5536 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
5538 2003-11-29 Kim F. Storm <storm@cua.dk>
5540 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
5541 (syms_of_msdos): Don't intern and staticpro them.
5543 2003-11-27 Kim F. Storm <storm@cua.dk>
5545 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
5546 coordinates relative to glyph at posn. If glyph is an image,
5547 return that as object at posn. Callers changed.
5548 (mode_line_string, marginal_area_string): Calculate and return
5549 pixel coordinates relative to glyph. Callers changed.
5551 * dispextern.h (buffer_posn_from_coords, mode_line_string)
5552 (marginal_area_string): Fix prototypes.
5553 (window_box_left_offset, window_box_right_offset): Add prototypes.
5555 * frame.h (get_specified_cursor_type, get_window_cursor_type):
5558 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
5560 * keyboard.c (make_lispy_position): Add x and y coordinates
5561 relative to the current glyph as 7th element of position.
5562 If glyph is an image, return it in the object element.
5563 (read_key_sequence): Skip checks for keymap property in cases
5564 where POSN_STRING is not a string (e.g. an image).
5566 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
5567 (Vshow_text_cursor_in_void): New variable.
5568 (glyph_to_pixel_coords): Don't use negative hpos.
5569 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
5570 (append_stretch_glyph): Change ascent arg to be actual value
5571 in pixels rather than ratio to height. Callers changed.
5572 (calc_pixel_width_or_height): New aux function, implementing
5573 pixel based artihmetic for glyph widths and heights.
5574 (produce_stretch_glyph): Use calc_pixel_width_or_height for
5575 :width, :height, :align-to, and :ascent, thus allowing these to
5576 be specified in pixels as well as multiples of characters.
5577 Don't produce stretch glyphs with zero width or height.
5578 (get_specified_cursor_type): Declare static.
5579 (get_window_cursor_type): Declare static. Add glyph arg to be
5580 able to know when cursor is on an image; always substitute
5581 hollow-box cursor for filled-box cursor on images, to avoid
5582 negative images and flicker when blinking the cursor.
5583 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
5584 (note_mode_line_or_margin_highlight): Use non-text cursor rather
5585 than vertical scroll-bar cursor in display margins.
5586 (note_mouse_highlight): Use non-text cursor rather than text
5587 cursor in fringes and over images in the text area.
5588 Use non-text cursor when mouse pointer is outside editable text,
5589 i.e. in the void after end-of-line or end-of-buffer; this was
5590 already done for W32, but is now standard for all systems --
5591 user can toggle show-text-cursor-in-void to get old behaviour.
5592 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
5593 Vdisplay_pixels_per_inch.
5595 2003-11-25 Andreas Schwab <schwab@suse.de>
5597 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
5598 EMACS_INT to not lose bits.
5599 (Ffillarray): Don't set bits beyond the size of a bool vector.
5601 2003-11-25 Kim F. Storm <storm@cua.dk>
5603 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
5604 define this defun on systems that cannot use stderr as lvalue.
5606 2003-11-24 Gerd Moellmann <gerd@gnu.org>
5608 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
5609 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
5610 ld's default is incompatible with unexec.
5612 2003-11-23 Kim F. Storm <storm@cua.dk>
5614 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
5615 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
5616 (Fforce_window_update): New defun.
5617 (syms_of_window): Defsubr it.
5618 (Fset_window_margins, Fset_window_fringes): Doc fix.
5620 * print.c (Fredirect_debugging_output): New defun.
5621 (syms_of_print): Defsubr it.
5623 2003-11-22 Luc Teirlinck <teirllm@auburn.edu>
5625 * fns.c (Fset_char_table_parent): Doc fix.
5627 2003-11-22 Kim F. Storm <storm@cua.dk>
5629 * dispnew.c (buffer_posn_from_coords): Return actual row/column
5630 for glyph clicked on, rather than (unused) pixel positions.
5631 (mode_line_string, marginal_area_string): Change X and Y args to
5632 pointers for returning actual row/column for glyph clicked on.
5633 Simplify and optimize loops.
5635 * dispextern.h (mode_line_string, marginal_area_string):
5638 * keyboard.c (make_lispy_position): New function for generating
5639 mouse click positions from frame and pixel coordinates.
5640 Enhanced to return buffer position and actual row/column for
5641 events outside the text area using updated mode_line_string and
5642 marginal_area_string functions.
5643 Return left-fringe and right-fringe clicks as such, rather than
5644 clicks in text area.
5645 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
5646 pixel_to_glyph_coords, as we never use the results.
5647 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
5648 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
5649 Eliminate unused code in WHEEL_EVENT handling.
5650 (make_lispy_movement): Use make_lispy_position.
5652 * window.c (coordinates_in_window): Remove redundant tests.
5653 Fix returned X pixel value for left-margin.
5655 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
5656 mode_line_string and marginal_area_string parameters.
5658 2003-11-22 Lars Hansen <larsh@math.ku.dk>
5660 * w32.c (struct the_group, getgrgid): Add.
5661 * mac.c (struct my_group, getgrgid): Add.
5663 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
5665 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
5667 2003-11-21 Lars Hansen <larsh@math.ku.dk>
5669 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
5670 include in call to file name handler. Optionally translate numeric
5671 UID and GID to strings. Update docstring.
5672 (directory_files_internal): Add parameter ID-FORMAT.
5673 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
5674 include in call to file name handler and call to
5675 directory_files_internal. Update Docstring.
5676 (Fdirectory_files): Add dummy parameter in call to
5677 directory_files_internal.
5678 * lisp.h (Qinteger): Add.
5679 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
5680 (Ffile_attributes): Add parameter.
5681 * data.c (Qinteger): Export.
5683 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
5685 * fns.c (Freverse, Fnreverse): Doc fixes.
5687 2003-11-19 Kim F. Storm <storm@cua.dk>
5689 * xdisp.c (init_iterator): Initialize it->start to position
5690 before reseating (in case start position is invisible).
5691 (init_to_row_start): Set it->start to row-start.
5692 (redisplay_window): Accept optional_new_start if start position
5693 is invisible (in which case IT_CHARPOS overshoots PT).
5694 (display_line): Setup row->start from it->start (rather than
5695 it->current which is wrong if first char on line is invisible).
5696 When done, reseat it->start to it->current (= start of next row).
5697 (expose_area): Fix exposure of text area when first char (e.g. TAB)
5698 is only partially visible.
5700 * dispextern.h (struct it): New member start.
5702 2003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5704 * alloc.c (make_float, Fcons): Clear the markbit at init time.
5705 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
5706 of block_index outside of the macro call.
5707 (Fgarbage_collect): Remove null code.
5709 * m/amdx86-64.h: Don't redefine XPNTR.
5711 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
5714 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
5715 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
5716 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
5718 * lisp.h (VALMASK): Only define for non-union type.
5720 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
5721 (XTYPE): Define unconditionally.
5722 (XSETTYPE): Remove one more remnant.
5723 (EQ): Define differently for the union and non-union cases.
5724 (INTMASK): New bit mask.
5725 (struct Lisp_Marker): Move down to prepare for upcoming patch.
5726 (GC_EQ): Delegate to EQ.
5728 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
5730 2003-11-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5732 * xterm.c (x_window_to_scroll_bar): Move check of display to
5733 where window_id is compared.
5735 2003-11-17 Kim F. Storm <storm@cua.dk>
5737 * dispextern.h (struct it): New member first_vpos.
5739 * xdisp.c (start_display): Set it->first_vpos.
5740 (try_window_id): Use first_vpos to start display in first _text_
5741 line if no reusable lines at start of window with header line.
5743 2003-11-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5745 * w32fns.c (XPutPixel):
5746 * w32bdf.c (w32_init_bdf_font):
5747 * sunfns.c (sel_read):
5748 * process.c (Fmake_network_process):
5749 * frame.c (store_frame_param):
5750 * fontset.c (Fset_fontset_font):
5751 * emacs.c (shut_down_emacs):
5752 * ccl.c (ccl_driver): Remove period at end of error message.
5754 * config.in: Regenerate.
5756 * xfns.c (x_window_to_frame, x_any_window_to_frame)
5757 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
5758 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
5759 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
5760 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
5762 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
5764 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
5765 (XTmouse_position, handle_one_xevent): Pass Display* to
5766 x_window_to_scroll_bar.
5767 (x_window_to_scroll_bar): Take a Display* argument.
5768 Check that display for frame is equal to Display* argument.
5769 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
5770 x_display_info_for_display instead. Use Display in xev instead
5772 (x_dispatch_event): Call x_display_info_for_display.
5773 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
5774 (x_connection_closed): Call xg_display_close for GTK.
5775 (x_term_init): Call xg_display_open for additional displays.
5776 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
5779 * xmenu.c (single_menu_item, mouse_position_for_popup)
5780 (x_activate_menubar): Formatting adjustments.
5782 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
5785 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
5786 (xg_display_close, xg_create_default_cursor)
5787 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
5789 (xg_left_ptr_cursor): Remove.
5790 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
5792 (xg_win_to_widget): Take Display* argument, call
5793 gdk_xid_table_lookup_for_display.
5794 (xg_create_frame_widgets, xg_get_file_name, create_menus)
5795 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
5796 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
5797 in FRAME_X_DISPLAY_INFO.
5798 (xg_get_scroll_id_for_window): Take Display* argument.
5799 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
5800 (xg_initialize): Remove xg_left_ptr_cursor.
5802 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
5804 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
5806 2003-11-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5808 * xterm.c (x_detect_focus_change): Do not change focus frame for
5809 Enter/LeaveNotify if the current focus frame has explicit focus.
5811 2003-11-14 Kim F. Storm <storm@cua.dk>
5813 * dispnew.c (update_text_area): Fix redisplay error when hscroll
5814 is active and first glyph is only partially visible.
5816 2003-11-13 Kenichi Handa <handa@m17n.org>
5818 * xdisp.c (select_frame_for_redisplay): New function.
5819 (redisplay_internal): Record also selected_frame for
5820 unwind_redisplay. Call select_frame_for_redisplay before
5821 redrawing each frame.
5822 (unwind_redisplay): Argument changed to a cons.
5824 2003-11-12 Luc Teirlinck <teirllm@auburn.edu>
5826 * fns.c (Fstring_to_multibyte): Doc fix.
5828 2003-11-11 Kenichi Handa <handa@m17n.org>
5830 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
5832 2003-11-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5834 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
5835 program specified positions.
5837 2003-11-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5839 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
5841 2003-11-08 Kenichi Handa <handa@m17n.org>
5843 * Makefile.in (lisp): Add kannada.el.
5844 (shortlisp): Likewise.
5846 2003-11-07 Kenichi Handa <handa@m17n.org>
5848 * coding.c (coding_allocate_composition_data):
5849 Reset coding->composing to COMPOSITION_NO.
5850 (coding_restore_composition): Detect invalid composition data.
5851 Give Fstring and Fvector a Lispy integer, not C int.
5853 2003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
5855 * floatfns.c (Flogb): Don't use VALMASK.
5857 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
5858 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
5860 * lisp.h (XINT): Move the cast to clarify what is going on.
5861 (GCTYPEMASK, XSETTYPE): Remove.
5862 (XGCTYPE): Make it an alias of XTYPE.
5864 2003-11-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5866 * xterm.c (x_term_init): Fix formatting.
5868 2003-11-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5870 * gtkutil.h (xg_have_tear_offs): Declare.
5871 (xg_keep_popup, xg_did_tearoff): Remove.
5873 * gtkutil.c: Remove variable xg_did_tearoff.
5874 (xg_have_tear_offs): New function.
5875 (tearoff_remove): Just decrease xg_detached_menus.
5876 (tearoff_activate): Increase xg_detached_menus and call
5877 tearoff_remove when tearoff is removed.
5878 (xg_keep_popup): Remove function.
5879 (create_menus): Give add_tearoff_p as argument to recursive
5880 call to create_menus.
5881 (xg_create_widget): Use variables instead of multiple
5882 strcmp. Tell create_menus to create tear off only for
5884 (xg_update_menubar): Change title for a detached menu also.
5885 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
5887 (xg_initialize): Initialize xg_detached_menus, remove
5888 initialization of xg_did_tearoff.
5890 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
5891 xg_have_tear_offs returns non-zero.
5892 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
5893 call to xg_keep_popup.
5895 2003-11-01 Andrew Choi <akochoi@shaw.ca>
5897 * macterm.c (XTread_socket): Handle menubar selection and grow
5898 window only for mouseDown events.
5900 2003-10-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5902 * xterm.c (x_term_init): For GTK part, increase x_initialized
5903 to check for more than one display. Use error instead of return 0.
5905 2003-10-31 Andrew Choi <akochoi@shaw.ca>
5907 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
5908 (copy_dysymtab): Call it.
5910 2003-10-31 Luc Teirlinck <teirllm@auburn.edu>
5912 * eval.c (Fdefvaralias): Doc fix.
5914 2003-10-26 Luc Teirlinck <teirllm@auburn.edu>
5916 * data.c (Fsetplist): Doc fix.
5918 2003-10-14 Lute Kamstra <lute@gnu.org>
5920 * window.c (Fset_window_fringes): Clarify docstring.
5922 2003-10-14 Kim F. Storm <storm@cua.dk>
5924 * window.c (Fset_window_margins): Simplify arg checking.
5926 2003-10-13 Richard M. Stallman <rms@gnu.org>
5928 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
5929 (print_partial_compiled_pattern): Replace assert with a printout.
5930 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
5932 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
5934 * window.c (Fset_window_margins): Allow only integers as args.
5935 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
5938 2003-10-13 Lute Kamstra <lute@gnu.org>
5940 * window.c (Fset_window_fringes): Elaborate docstring.
5942 2003-10-12 Andrew Choi <akochoi@shaw.ca>
5944 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
5946 * s/darwin.h (GC_MARK_STACK): Define.
5948 2003-10-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5950 * window.c (shrink_windows): New function.
5951 (size_window): Call shrink_windows to calculate window sizes when
5952 shrinking frame with more than one window.
5954 2003-10-12 Kim F. Storm <storm@cua.dk>
5956 * xdisp.c (compute_fringe_widths): Doc fix.
5958 2003-10-08 Kenichi Handa <handa@m17n.org>
5960 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
5962 2003-10-07 Kenichi Handa <handa@m17n.org>
5964 * coding.c (Qcoding_system_define_form): New variable.
5965 (syms_of_coding): Intern and staticpro it.
5966 (Fcheck_coding_system): Try to autoload the definition of
5969 2003-10-05 Luc Teirlinck <teirllm@auburn.edu>
5971 * fns.c (Frequire): Doc fix.
5973 2003-10-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5975 * xfns.c (Fx_send_client_event): New function as a base for
5976 manipulating extended window manager hints.
5977 (Fx_send_client_event): Remove unused variable s.
5979 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
5980 that function is removed.
5982 * xterm.c (x_set_offset): Use move_offset_left/top instead of
5983 x/y_pixels_outer_diff.
5984 (x_check_expected_move): Calculate move_offset_left/top.
5986 * xterm.h (struct x_output): New members: move_offset_top/left.
5988 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
5989 call x_set_offset directly.
5991 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
5993 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
5995 * xterm.c (x_delete_display): Free font names and font_encoder
5996 in dpyinfo->font_table.
5998 * xfns.c (Fx_close_connection): Only call XFreeFont here.
5999 Move xfree of font names to x_delete_display.
6001 * xterm.h (struct x_display_info): New member, wm_type.
6002 (struct x_output): New members, expected_top/left and
6003 check_expected_move.
6005 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
6007 (handle_one_xevent): Rename x_check_expected_move from
6008 x_check_fullscreen_move.
6009 (x_set_offset): Only add WM decoration sizes to modified_top/left
6010 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
6011 (x_check_expected_move): Rename from x_check_fullscreen_move.
6012 Removed fullscreen specific code. Use check_expected_move,
6013 expected_left/top instead. Also, set wm_type.
6014 (x_term_init): Initialize wm_type to unknown.
6016 * frame.c (x_fullscreen_move): Remove addition of WM decoration
6019 2003-10-03 Kenichi Handa <handa@m17n.org>
6021 * macterm.c (x_load_font): Clear all members of FONTP before start
6024 2003-10-02 Kenichi Handa <handa@m17n.org>
6026 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
6027 before calling find_ccl_program_func. Call find_ccl_program_func
6028 only when fontp->font_encoder is not NULL.
6030 * xterm.c (x_load_font): Clear all members of FONTP before start
6033 2003-10-03 John Paul Wallington <jpw@gnu.org>
6035 * keymap.c (map_keymap): Don't abort when binding is a vector.
6037 2003-10-02 Jason Rumney <jasonr@gnu.org>
6039 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
6040 Sync dependencies with Makefile.in.
6043 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
6046 * w32bdf.c (w32_load_bdf_font): Likewise.
6048 2003-09-30 Richard M. Stallman <rms@gnu.org>
6050 * term.c (set_tty_color_mode): Calculate current_mode_spec
6051 regardless of value of VAL.
6053 * intervals.c (graft_intervals_into_buffer):
6054 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
6055 Handle over_used when splitting UNDER.
6057 2003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6059 * regex.c (regex_compile): Free the stack when returning from function.
6061 2003-09-28 Kenichi Handa <handa@m17n.org>
6063 * fontset.c (Finternal_char_font): Change return value to
6064 cons (FONT-NAME . GLYPH-CODE).
6066 2003-09-28 Eli Zaretskii <eliz@gnu.org>
6068 * term.c (tty_setup_colors): Treat any negative argument as -1.
6070 2003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
6072 * process.c (send_process): Delete unused temp_buf.
6074 2003-09-26 Dave Love <fx@gnu.org>
6076 * xterm.c (x_bitmap_mask): Declare.
6078 2003-09-25 Dave Love <fx@gnu.org>
6080 * Makefile.in (fns.o): Depend on md5.h.
6082 2003-09-25 Kim F. Storm <storm@cua.dk>
6084 * window.c (set_window_buffer): Fix redisplay problems when
6085 switching between buffers with different display margin widths.
6087 2003-09-23 Kim F. Storm <storm@cua.dk>
6089 * process.c (set_socket_option): Fix :bindtodevice option.
6090 (Fset_network_process_option): Update process contact list when
6091 setting option succeeds.
6092 (Fmake_network_process): Doc fix.
6094 2003-09-23 Dave Love <fx@gnu.org>
6096 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
6098 2003-09-22 Eli Zaretskii <eliz@gnu.org>
6100 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
6101 color mode is an integer number (it could be -1).
6103 2003-09-22 Richard M. Stallman <rms@gnu.org>
6105 * intervals.c (graft_intervals_into_buffer): Correct the main loop
6106 in the case where OVER is longer than UNDER.
6108 2003-09-22 Masatake YAMATO <jet@gyve.org>
6110 * window.c (Fset_window_scroll_bars): Validate the value of
6113 2003-09-21 Kim F. Storm <storm@cua.dk>
6115 * frame.c (Vdefault_frame_scroll_bars): New variable.
6116 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
6117 (syms_of_frame): DEFVAR_LISP it, and initialize according to
6118 window-system default scroll bar position.
6120 * window.c (Fwindow_scroll_bars): Doc fix.
6122 2003-09-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6124 * xterm.c (x_set_offset): Take window manager decorations into account.
6126 2003-09-19 Richard M. Stallman <rms@gnu.org>
6128 * atimer.h: Don't include lisp.h.
6129 (P_): Define it here (as well as elsewhere).
6131 * print.c (Fprin1_to_string): Move the PRINTPREPARE
6132 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
6134 * data.c (Fvariable_binding_locus): New function.
6135 (syms_of_data): defsubr it.
6136 (Flocal_variable_p): Delete duplicate call to indirect_variable.
6138 2003-09-18 Dave Love <fx@gnu.org>
6140 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
6142 * process.c (Fnetwork_interface_info): Fix type error.
6143 (Fnetwork_interface_list): Doc fix.
6144 (read_process_output, read_process_output): Delete unused var.
6146 2003-09-17 Kim F. Storm <storm@cua.dk>
6148 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
6149 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
6150 (Fnetwork_interface_info): Check that ifreq struct has required
6151 fields before accessing them; this requires that those fields are
6152 defined as macros, which may be too restrictive on some platforms,
6153 but it is better than failing on other platforms.
6154 (syms_of_process): Only defsubr above fns when included.
6156 2003-09-17 Dave Love <fx@gnu.org>
6158 * unexalpha.c: Don't include varargs.h.
6160 2003-09-17 Kim F. Storm <storm@cua.dk>
6162 * process.c (Fset_process_sentinel): Add sentinel to childp plist
6163 for network process.
6164 (socket_options): Add `:' prefix to option names. Add optbit field.
6165 (set_socket_option): Remove no_error arg and special handling of s < 0.
6166 Return 1<<optbit for known option, 0 for unknown.
6167 Do not interpret 0 as false for boolean option (only nil).
6168 Pass failed option and value to report_file_error.
6169 (Fset_network_process_options): Replace by Fset_network_process_option.
6170 (Fset_network_process_option): New function to set just one option.
6171 (Fmake_network_process): Allow :coding arg to be a cons.
6172 Allow :server arg to be an integer specifying backlog size.
6173 Remove :options arg, and allow options to be specified directly
6174 as :KEY, VALUE pairs. Parse these options before binding socket.
6175 As before, :reuseaddr t is default for a server process, but this
6176 can now be disabled by specifying :reuseaddr nil.
6177 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
6178 (init_process): Availability of network options is now checked with
6179 simpler syntax (featurep 'make-network-process :OPTION); use loop to
6181 (syms_of_process): Fix defsubr's for the replaced functions.
6183 2003-09-16 Dave Love <fx@gnu.org>
6185 * Makefile.in: Depend on coding.h.
6187 2003-09-14 Kim F. Storm <storm@cua.dk>
6189 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
6190 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
6191 (syms_of_process): Defsubr them.
6193 * config.in: Regenerate.
6195 2003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6197 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
6198 * m/news-r6.h (XUNMARK): Remove.
6199 * m/mips.h (XUNMARK): Remove.
6200 * m/mips-siemens.h (XUNMARK): Remove.
6201 * m/iris4d.h (XUNMARK): Remove.
6202 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
6204 2003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6206 * lisp.h (VALBITS): Don't remove 1 for the markbit.
6207 (union Lisp_Object): Use unsigned int for types. Remove markbit.
6208 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
6209 (XTYPE): Use unsigned right-shift.
6210 (XMARKBIT, XMARK, XUNMARK): Remove.
6212 * alloc.c (init_intervals, init_symbol, init_marker):
6213 Don't preallocate anything.
6214 (Fgarbage_collect, mark_object): Ignore the markbit.
6216 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
6218 2003-09-08 Lute Kamstra <lute@gnu.org>
6220 * xdisp.c (pint2hrstr): New function.
6221 (decode_mode_spec): Add `%i' and `%I' specs.
6222 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
6223 for `mode-line-format'.
6225 2003-09-07 Andreas Schwab <schwab@suse.de>
6227 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
6230 2003-09-07 Eli Zaretskii <eliz@gnu.org>
6232 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
6234 2003-09-03 Kim F. Storm <storm@cua.dk>
6236 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
6237 change (superseded by 2002-08-30 change); the default blink-off
6238 cursor is now again "no cursor".
6240 2003-09-01 Jason Rumney <jasonr@gnu.org>
6242 * makefile.w32-in (alloca.o): Remove.
6243 (coding.o): Depend on intervals.h
6244 (emacs.o, bytecode.o): Depend on window.h
6246 2003-09-01 Dave Love <fx@gnu.org>
6248 * Makefile.in (alloca.o): Remove commands.
6249 (coding.o): Depend on intervals.h composite.h window.h.
6250 (emacs.o): Depend on window.h keyboard.h keymap.h.
6251 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
6252 (bytecode.o): Depend on window.h.
6254 2003-08-31 Jason Rumney <jasonr@gnu.org>
6256 * w32term.c (w32_per_char_metric): Allow cached metrics to be
6257 returned even when font_type is unknown.
6259 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
6261 2003-08-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6263 * xterm.c (x_term_init): Initialize new fields in x_display_info.
6265 * xterm.h (struct x_display_info): Add red/green/blue_bits and
6268 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
6269 calculate pixel value.
6271 2003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
6273 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
6274 Don't tell redisplay display is accurate when it's actually been
6275 paused for pending input.
6277 2003-08-29 Richard M. Stallman <rms@gnu.org>
6279 * dispnew.c (adjust_glyph_matrix): Call window_box
6280 whenever W is nonzero.
6282 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
6283 (Fkill_local_variable, Fmake_variable_frame_local)
6284 (Flocal_variable_p, Flocal_variable_if_set_p):
6285 Use indirect_variable to trace thru variable aliases.
6287 * config.in: Updated.
6289 * callint.c (Fcall_interactively): Save and restore
6290 Vthis_command, Vthis_original_command, real_this_command,
6291 and current_kboard->Vlast_command.
6293 * abbrev.c (Fexpand_abbrev): Insert before deleting.
6295 2003-08-29 Gerd Moellmann <gerd@gnu.org>
6297 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
6299 2003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
6301 * coding.c (decode_coding_iso2022): Initialize local variable c2.
6302 (decode_coding_sjis_big5): Likewise.
6304 2003-08-27 Jason Rumney <jasonr@gnu.org>
6306 * w32.c (sys_pipe): Protect against file descriptor overflow.
6308 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
6310 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
6312 2003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
6314 * xfns.c (Vgtk_version_string): New variable.
6315 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
6317 2003-08-24 Eli Zaretskii <eliz@gnu.org>
6319 * term.c (term_init): Remove `const' from buffer_size's declaration.
6321 * Makefile.in (msdos.o): Depend on intervals.h.
6323 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
6325 2003-08-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6327 * xterm.h (struct x_display_info): New fields: client_leader_window
6328 and Xatom_wm_client_leader.
6330 * xterm.c (x_initialize): Move call to x_session_initialize to ...
6331 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
6333 * xsmfns.c (create_client_leader_window): New function.
6334 (x_session_initialize): Call create_client_leader_window, take
6335 dpyinfo as argument.
6337 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
6339 * Makefile.in (xsmfns.o): Add more depenedencies.
6341 2003-08-21 Dave Love <fx@gnu.org>
6343 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
6345 2003-08-21 Kenichi Handa <handa@m17n.org>
6347 * term.c (term_init): Fix previous change; don't rely on the
6348 length of `buffer' if TERMINFO is defined.
6350 2003-08-20 Dave Love <fx@gnu.org>
6352 * atimer.h: Include lisp.h.
6354 * lisp.h (EMACS_LISP_H): New.
6355 (popup_activated_flag): Don't declare.
6357 * alloca.c: Some merging with gnulib. Change logic and doc
6358 concerning (x)malloc/(x)free -- no longer Emacs-specific.
6359 [DO_BLOCK_INPUT]: Don't include lisp.h.
6360 (xmalloc, xfree): Declare.
6361 (malloc): Don't declare.
6363 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6364 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
6365 atimer.h, blockinput.h.
6367 * alloc.c (lisp_align_malloc): Change type of `aligned'.
6371 2003-08-19 Gerd Moellmann <gerd@gnu.org>
6373 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
6376 * term.c (term_init): Use a buffer of size 4096 for tgetent since
6377 FreeBSD returns something longer than 2044. Abort if the end of
6378 the buffer is overwritten.
6380 2003-08-19 Miles Bader <miles@gnu.org>
6382 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
6384 2003-08-19 Gerd Moellmann <gerd@gnu.org>
6386 * alloc.c (lisp_align_malloc): Check for memory full when
6387 allocating ablocks, which also avoids freeing a pointer into an
6390 * puresize.h (BASE_PURESIZE): Increase to 1100000.
6392 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
6394 2003-08-16 Richard M. Stallman <rms@gnu.org>
6396 * editfns.c (Fencode_time): Doc fix.
6398 2003-08-16 David Ponce <david@dponce.com>
6400 * fileio.c (Fwrite_region): Fix conditional expression to issue
6403 2003-08-16 Juri Linkov <juri@jurta.org>
6405 * syntax.c (Fforward_word): Argument changed to optional.
6406 Set default value to 1.
6408 2003-08-15 Kenichi Handa <handa@m17n.org>
6410 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
6412 (best_matching_font): Once we find a better scalable font, set
6413 non_scalable_has_exact_height_p to 1.
6414 (try_font_list): Call try_alternative_families to try any family
6415 with the given registry.
6417 2003-08-09 Andreas Schwab <schwab@suse.de>
6419 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
6421 * print.c (print_string): Fix printing of multibyte string with
6422 nontrivial printcharfun.
6424 2003-07-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6426 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
6428 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
6430 2003-07-31 Kenichi Handa <handa@m17n.org>
6432 * process.c (read_process_output): Return the actually read bytes
6433 instead of the result of decoding.
6435 2003-07-31 Kenichi Handa <handa@m17n.org>
6437 * xterm.h (struct x_bitmap_record): New member have_mask.
6439 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
6441 (x_create_bitmap_from_file): Likewise.
6442 (x_destroy_bitmap): Check have_mask member before freeing a mask.
6443 (x_destroy_all_bitmaps): Likewise.
6444 (x_create_bitmap_mask): Set have_mask member to 1.
6446 2003-07-30 Richard M. Stallman <rms@gnu.org>
6448 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
6450 2003-07-29 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6452 * gtkutil.c (xg_mark_data): Update calls to mark_object.
6454 2003-07-29 Richard M. Stallman <rms@gnu.org>
6456 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
6457 Conditionalize XIM code on HAVE_XIM.
6459 * fns.c (Fclear_string): New function.
6460 (syms_of_fns): defsubr it.
6462 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
6464 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
6466 2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
6468 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
6470 * buffer.c (delete_all_overlays): New function.
6471 * buffer.h (delete_all_overlays): Declare.
6472 * coding.c (run_pre_post_conversion_on_str):
6473 * print.c (temp_output_buffer_setup):
6474 * fileio.c (Finsert_file_contents):
6475 * minibuf.c (get_minibuffer): Use it.
6477 2003-07-22 Andrew Choi <akochoi@shaw.ca>
6479 * unexmacosx.c (unexec_regions_sort_compare):
6480 (unexec_regions_merge): New functions. Sort and merge unexec
6481 regions before dumping them.
6483 2003-07-22 Dave Love <fx@gnu.org>
6485 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
6487 2003-07-21 Stefan Monnier <monnier@cs.yale.edu>
6489 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
6490 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
6491 MARKBIT as the gcmarkbit for strings.
6493 2003-07-21 Richard M. Stallman <rms@gnu.org>
6495 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
6497 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
6498 (syms_of_fns): Corresponding change.
6500 * alloc.c (syms_of_alloc): Doc fixes.
6502 2003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
6504 * s/netbsd.h: Use -Wl syntax.
6506 2003-07-17 Richard M. Stallman <rms@gnu.org>
6508 * xterm.c (xim_initialize): Redo 6/24 change.
6510 2003-07-15 Stefan Monnier <monnier@cs.yale.edu>
6512 * buffer.c (copy_overlays): Use EMACS_INT for positions.
6513 (Fswitch_to_buffer): Don't signal an error when switching to the same
6514 buffer in a dedicated window.
6516 * alloc.c: Use bitmaps for cons, as was done for floats.
6517 (init_float, init_cons): Let the normal code allocate the first block.
6518 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
6519 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
6521 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
6522 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
6523 (live_cons_p): Check the pointer is not past the `conses' array.
6524 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
6525 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
6526 (survives_gc_p): Use CONS_MARKED_P and simplify.
6527 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
6529 2003-07-13 Paul Eggert <eggert@twinsun.com>
6531 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
6532 puts it into BSS instead, at least on Solaris 8 and 9.
6533 This is a valid optimization, and it may occur on other platforms,
6534 so Emacs should not assume that initializing a static variable to
6535 zero puts it into data.
6536 * alloc.c (pure, staticvec):
6537 Initialize these arrays to nonzero, so that they're not
6538 put into BSS by that optimization.
6540 2003-07-13 Stefan Monnier <monnier@cs.yale.edu>
6542 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
6543 (lisp_align_malloc): Use posix_memalign is available.
6544 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
6545 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
6546 for consistency. Update users.
6548 2003-07-13 Richard M. Stallman <rms@gnu.org>
6550 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
6552 2003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
6554 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
6555 and use the Gtk+ function gtk_window_icon_from_file if available.
6557 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
6558 handle mask of bitmaps.
6559 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
6561 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
6563 * xterm.h (xg_set_icon): New function.
6565 2003-07-12 Paul Eggert <eggert@twinsun.com>
6567 * unexelf.c (unexec): Consider a section to precede the .bss
6568 section if its addresses overlap that of .bss.
6570 2003-07-12 Richard M. Stallman <rms@gnu.org>
6572 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
6574 * config.in (HAVE_CRTIN): Add #undef.
6575 (INLINE): Really inline only if OPTIMIZE is defined.
6577 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
6579 (START_FILES_1, END_FILES_1): New macros (conditional).
6580 (LD_SWITCH_SYSTEM_TEMACS): Define.
6582 * s/openbsd.h: Don't include bsd4-3.h.
6584 (LIBS_TERMCAP): Define.
6585 (LD_SWITCH_SYSTEM): Define (two definitions).
6587 * xfns.c: Include libpng/png.h instead of png.h.
6589 2003-07-11 Andreas Schwab <schwab@suse.de>
6591 * buffer.c (modify_overlay): Update prototype.
6592 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
6595 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6597 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
6598 (struct interval): Move to intervals.h.
6599 (struct Lisp_Marker): Use EMACS_INT for position info.
6600 (forward_point): Remove prototype of defunct function.
6601 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
6602 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
6603 (syms_of_textprop, set_text_properties): Remove prototypes that are
6604 already in intervals.h.
6606 * intervals.h (struct interval): Move from lisp.h.
6607 Use EMACS_INT for position and size info.
6609 * coding.c: Include intervals.h for Fset_text_properties.
6611 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
6612 position and length information.
6614 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6616 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
6617 position and length information.
6619 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6621 Change overlays_after and overlays_before so the overlays themselves
6622 are linked into lists, rather than using cons cells. After all each
6623 Lisp_Misc already occupies 5 words, so we can add a `next' field to
6624 Lisp_Overlay for free and save up one cons cell per overlay (not
6625 to mention one indirection when traversing the list of overlay).
6627 * lisp.h (struct Lisp_Overlay): New field `next'.
6629 * buffer.h (struct buffer): Change overlays_before and overlays_after
6630 from Lisp lists of overlays to pointers to overlays.
6632 * buffer.c (overlay_strings, recenter_overlay_lists):
6633 Fix typo in eassert in last commit.
6634 (unchain_overlay): New function.
6635 (add_overlay_mod_hooklist): Use AREF.
6636 (copy_overlays, reset_buffer, overlays_at, overlays_in)
6637 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
6638 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
6639 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
6640 (report_overlay_modification, evaporate_overlays, init_buffer_once):
6641 Adjust to new type of overlays_(before|after).
6643 * alloc.c (mark_object): Mark the new `next' field of overlays.
6644 (mark_buffer): Manually mark the overlays_(after|before) fields.
6646 * coding.c (run_pre_post_conversion_on_str):
6647 * editfns.c (overlays_around):
6648 * xdisp.c (load_overlay_strings):
6649 * fileio.c (Finsert_file_contents):
6650 * indent.c (current_column):
6651 * insdel.c (signal_before_change, signal_after_change):
6652 * intervals.c (set_point_both):
6653 * print.c (temp_output_buffer_setup): Use new type for
6654 overlays_(before|after).
6656 2003-07-08 Stefan Monnier <monnier@cs.yale.edu>
6658 * buffer.c (report_overlay_modification): Don't run hooks while
6659 traversing the list of overlays.
6661 * buffer.h (struct buffer): Use an int for overlay_center.
6662 (overlays_at, evaporate_overlays, recenter_overlay_lists)
6663 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
6665 * buffer.c (reset_buffer, recenter_overlay_lists)
6666 (adjust_overlays_for_insert, adjust_overlays_for_delete)
6667 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
6668 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
6669 (overlays_at, evaporate_overlays, recenter_overlay_lists)
6670 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
6672 * xdisp.c (fast_find_position): Remove unused var.
6674 * cmds.c (Qexpand_abbrev): New sym.
6675 (syms_of_cmds): Initialize it.
6676 (internal_self_insert): Use it to call expand-abbrev.
6678 2003-07-09 Kim F. Storm <storm@cua.dk>
6680 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
6681 was configured with --without-xim.
6682 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
6684 2003-07-07 Richard M. Stallman <rms@gnu.org>
6686 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
6688 * alloc.c (Fgarbage_collect): Doc fix.
6690 2003-07-07 Nozomu Ando <nand@mac.com>
6692 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
6694 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
6696 * minibuf.c (read_minibuf): UNGCPRO before returning.
6697 (Ftry_completion, Fall_completions): Doc fix.
6699 * alloc.c (live_float_p): Check that p is not past the `floats' array,
6700 now that `floats' is not the last element of the struct any more.
6702 2003-07-06 Jason Rumney <jasonr@gnu.org>
6704 * w32term.h (ClipboardSequence_Proc): New type.
6706 * w32fns.c (clipboard_sequence_fn): New variable.
6707 (globals_of_w32fns): Initialize it.
6709 * w32select.c (last_clipboard_sequence_number): New variable.
6710 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
6713 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
6715 * m/amdx86-64.h (MARKBIT):
6716 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
6717 MARKBIT and ARRAY_MARK_FLAG any more.
6719 * m/hp800.h (XSETMARKBIT):
6720 * m/sr2k.h (XSETMARKBIT):
6721 * lisp.h (XSETMARKBIT): Remove unused macro.
6723 * lisp.h (mark_object): Change prototype.
6725 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
6726 (last_marked): Change accordingly.
6727 (mark_interval, mark_maybe_object, mark_maybe_pointer)
6728 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
6729 (mark_buffer): Update calls to mark_object.
6731 * bytecode.c (mark_byte_stack):
6732 * fns.c (sweep_weak_table):
6733 * keyboard.c (mark_kboards): Update calls to mark_object.
6735 2003-07-06 Jason Rumney <jasonr@gnu.org>
6737 * alloc.c (struct ablock): Only include padding when there is some.
6739 2003-07-04 Stefan Monnier <monnier@cs.yale.edu>
6741 * alloc.c (ALIGN): Add casts to simplify usage.
6742 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
6743 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
6744 (struct ablock, struct ablocks): New types.
6745 (free_ablock): New global var.
6746 (lisp_align_malloc, lisp_align_free): New functions.
6747 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
6748 (struct float_block): Reorder and add gcmarkbits.
6749 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
6750 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
6751 (init_float, make_float): Use lisp_align_malloc.
6752 (free_float, live_float_p): Don't use `type' any more.
6753 (make_float): Use FLOAT_UNMARK to access to mark bit.
6754 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
6755 Use FLOAT_MARKED_P to access the mark bit.
6756 (pure_alloc): Simplify use of ALIGN.
6757 (mark_object): Use FLOAT_MARK to access the mark bit.
6758 (gc_sweep): Use new macros to access the float's mark bit.
6759 (init_alloc_once): Init free_ablock.
6761 * lisp.h (struct Lisp_Float): Remove unused field `type'.
6763 2003-06-27 Stefan Monnier <monnier@cs.yale.edu>
6765 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
6766 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
6767 (allocate_buffer): Move.
6768 (string_bytes): Don't mask markbit of `size_byte'.
6769 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
6770 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
6771 Use the `size' field of buffers (rather than the `name' field) for
6772 the mark bit, as is done for all other vectorlike objects.
6773 Use the new macros to access the mark bit of vectorlike objects.
6775 2003-06-26 Richard M. Stallman <rms@gnu.org>
6777 * puresize.h (BASE_PURESIZE): Increment base size.
6779 * xdisp.c (fast_find_position): Enable Gerd's new definition.
6781 * xterm.c (xim_initialize): Undo previous change.
6783 2003-06-26 Stefan Monnier <monnier@cs.yale.edu>
6785 * alloc.c (survives_gc_p): Simplify.
6787 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
6789 * window.c (Fset_window_dedicated_p): Simplify.
6790 (display_buffer_1): Don't raise the win from which minibuf was entered.
6791 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
6792 (Fminibuffer_selected_window): Simplify.
6794 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
6796 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
6797 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
6799 * insdel.c (check_markers, adjust_markers_for_delete)
6800 (adjust_markers_for_insert, adjust_markers_for_replace)
6801 (prepare_to_modify_buffer, RESTORE_VALUE):
6802 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
6803 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
6804 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
6805 * alloc.c (Fmake_marker, free_marker, gc_sweep):
6806 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
6807 * editfns.c (save_excursion_restore, transpose_markers):
6808 * window.c (delete_window):
6809 * xdisp.c (message_dolog): Update for new types.
6811 2003-06-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6813 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
6814 (realize_default_face): Use default_face_done_p for the force_p
6815 argument to set_lface_from_font_name. Set default_face_done_p to one.
6817 * frame.c (make_frame): Initialize default_face_done_p.
6819 * frame.h (struct frame): Add default_face_done_p.
6821 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
6824 2003-06-25 Stefan Monnier <monnier@cs.yale.edu>
6826 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
6827 Initialize the new field `gcmarkbit'.
6828 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
6829 (mark_interval_tree): Don't mark the tree separately from the nodes.
6830 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
6831 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
6832 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
6834 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
6835 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
6836 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
6837 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
6838 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
6840 2003-06-24 Dave Love <fx@gnu.org>
6842 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
6844 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
6847 2003-06-21 Richard M. Stallman <rms@gnu.org>
6849 * fileio.c (Fwrite_region): Alternate messages
6850 for append and partial write.
6852 * keyboard.c (read_key_sequence): When converting upcase fn key to
6853 downcase, update fkey and keytran so `backspace' gets translated.
6855 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
6857 * process.c (wait_reading_process_input): Don't signal SIGIO
6860 2003-06-17 Kenichi Handa <handa@m17n.org>
6862 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
6865 * xselect.c: Don't include charset.h, coding.h, composite.h.
6866 (Qforeign_selection): New variable.
6867 (syms_of_xselect): Intern and static it.
6868 (selection_data_to_lisp_data): Return a unibyte string made from
6869 data with `foreign-selection' text property.
6871 2003-06-15 Stefan Monnier <monnier@cs.yale.edu>
6873 * termhooks.h (EVENT_INIT): New macro.
6875 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
6877 * alloc.c (mark_kboards): Move to keyboard.c.
6879 * keyboard.c (record_asynch_buffer_change, read_avail_input):
6880 * xterm.c (x_dispatch_event):
6881 * xmenu.c (find_and_call_menu_selection):
6882 * xdisp.c (handle_tool_bar_click):
6883 * w32menu.c (menubar_selection_callback):
6884 * sysdep.c (kbd_input_ast, read_input_waiting):
6885 * msdos.c (dos_rawgetc):
6886 * macterm.c (mac_check_for_quit_char):
6887 * macmenu.c (menubar_selection_callback):
6888 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
6889 data to kbd_buffer_store_event.
6891 2003-06-15 Kim F. Storm <storm@cua.dk>
6893 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6894 to fix redisplay problem with tall characters (such as
\e,AC
\e(B).
6896 2003-06-13 Kai Gro
\e,A_
\e(Bjohann <kai.grossjohann@gmx.net>
6898 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
6900 2003-06-12 Kenichi Handa <handa@m17n.org>
6902 * fileio.c (Fwrite_region): Save and restore restriction.
6904 2003-06-12 Dave Love <fx@gnu.org>
6906 * alloca.c (alloca): Declare arg as size_t.
6908 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
6909 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
6911 2003-06-11 Dave Love <fx@gnu.org>
6913 * search.c (shrink_regexp_cache): Use xrealloc.
6914 (syms_of_search): Use xmalloc.
6916 2003-06-10 Kim F. Storm <storm@cua.dk>
6918 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
6919 Adjust phys_cursor.x to be relative to window box, rather than
6920 text area before checking -- to ensure cursor is redrawn when
6922 Note: This also fixes a similar (older) bug if display margins
6925 2003-06-06 Kenichi Handa <handa@m17n.org>
6927 * coding.c (encoding_buffer_size): If coding->type is
6928 coding_type_ccl, double magnification on CRLF encoding.
6930 2003-06-06 Jason Rumney <jasonr@gnu.org>
6932 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
6933 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
6935 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
6938 2003-06-05 Dave Love <fx@gnu.org>
6940 * strftime.c: Merge changes from gnulib.
6942 * mktime.c (__mktime_internal): Merge changes from gnulib
6943 involving year 69 and dst2.
6945 Changes to merge with gnulib version and be consistent with the
6948 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
6949 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
6950 [HAVE_LOCALE_H]: Include locale.h.
6951 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
6953 2003-06-05 Kim F. Storm <storm@cua.dk>
6955 * window.c (coordinates_in_window): Convert X and Y to window
6956 relative coordinates inside mode-line and header-line parts.
6957 Convert X and Y to margin area relative coordinates inside left
6958 and right display margin parts.
6960 2003-06-05 Jason Rumney <jasonr@gnu.org>
6962 * w32fns.c (add_system_logical_colors_to_map): New function.
6963 (Fx_open_connection): Use it.
6965 2003-06-04 Stefan Monnier <monnier@cs.yale.edu>
6967 * process.c (allocate_pty): Revert part of the previous patch.
6968 (Faccept_process_output): Simplify.
6970 2003-06-04 Jason Rumney <jasonr@gnu.org>
6972 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
6974 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
6975 (lispy_mouse_wheel_names): Remove.
6976 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
6977 Always define drag_and_drop_syms.
6979 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
6982 2003-06-03 Stefan Monnier <monnier@cs.yale.edu>
6984 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
6986 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
6988 2003-06-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6990 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
6993 2003-06-03 Richard M. Stallman <rms@gnu.org>
6995 * window.c (Fwindow_edges): Doc fix.
6996 (Fwindow_pixel_edges, Fwindow_inside_edges)
6997 (Fwindow_inside_pixel_edges): New functions.
6998 (syms_of_window): defsubr them.
7000 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
7001 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
7003 2003-06-02 Stefan Monnier <monnier@cs.yale.edu>
7005 * dispnew.c (Fsit_for): Don't lie about the number of args.
7007 2003-06-02 Dave Love <fx@gnu.org>
7009 * callproc.c: Use HAVE_FCNTL_H, not USG5.
7010 (syms_of_callproc) <process-environment>: Doc fix.
7012 * doc.c: Use HAVE_FCNTL_H, not USG5.
7014 * xfaces.c (font_rescale_ratio): Fix for K&R.
7016 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
7018 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
7020 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
7022 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
7023 (xg_create_frame_widgets): Use ENCODE_UTF_8.
7025 * xterm.c (Qutf_8): Move to coding.c
7027 * xmenu.c (ENCODE_MENU_STRING): New.
7028 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
7031 * coding.h (ENCODE_UTF_8): New.
7034 * coding.c (Qutf_8): New.
7035 (syms_of_coding): Intern it.
7039 2003-06-02 Kenichi Handa <handa@m17n.org>
7041 * buffer.c (Fset_buffer_multibyte): Fix previous change.
7043 2003-06-01 Stefan Monnier <monnier@cs.yale.edu>
7045 * lread.c (openp): Make sure STR is a string.
7047 2003-06-01 David Ponce <david@dponce.com>
7049 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
7050 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
7052 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
7053 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
7054 (discard_mouse_events): Discard WHEEL_EVENT events too.
7055 (lispy_wheel_names, wheel_syms): New.
7056 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
7057 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
7058 (make_lispy_event): Add WHEEL_EVENT handler.
7060 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
7061 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
7064 2003-05-31 John Paul Wallington <jpw@gnu.org>
7066 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
7067 timer are in lisp/emacs-lisp.
7069 2003-05-31 Kenichi Handa <handa@m17n.org>
7071 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
7072 region when a buffer is changed to unibyte.
7074 * charset.h (VALID_LEADING_CODE_P): New macro.
7075 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
7077 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
7078 is nonzero, accept multibyte form of eight-bit-control chars.
7079 (decode_composition_emacs_mule): Likewise.
7080 (decode_coding_emacs_mule): Likewise.
7081 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
7082 multibyte form of eight-bit-control chars.
7084 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
7085 (Finsert_file_contents): If coding-system-for-read is bound to
7086 Qauto_save_coding, use the coding system emacs-mule with special
7087 setting for recovering a file.
7088 (choose_write_coding_system): On auto saving, use the coding
7089 system emacs-mule with special setting for auto saving.
7090 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
7092 2003-05-30 Kenichi Handa <handa@m17n.org>
7094 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
7095 properly before calling ccl_driver.
7097 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
7099 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
7100 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
7101 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
7103 2003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
7105 * xfaces.c (realize_default_face): Do not abort if lface is
7106 non-existent - reverts change from 2003-05-19.
7108 2003-05-29 Kenichi Handa <handa@m17n.org>
7110 * coding.c (decode_coding_iso2022): Pay attention to the byte
7111 sequence of CTEXT extended segment, and retain those bytes as is.
7113 2003-05-28 Kenichi Handa <handa@m17n.org>
7115 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
7116 of CODING_REPLACEMENT_CHARACTER.
7117 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
7118 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
7119 check this flag on encoding.
7120 (encode_coding_sjis_big5):
7121 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
7122 (Fset_terminal_coding_system_internal):
7123 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
7124 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
7126 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
7127 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
7128 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
7130 2003-05-28 Richard M. Stallman <rms@gnu.org>
7132 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
7134 * eval.c (unbind_to): Move init of this_binding to separate statement.
7136 2003-05-28 Kim F. Storm <storm@cua.dk>
7138 * xdisp.c (expose_window): Fix error in calculation of
7139 window relative coordinates of area to redisplay.
7141 2003-05-27 Jason Rumney <jasonr@gnu.org>
7143 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
7145 2003-05-27 David Ponce <david@dponce.com>
7147 Handle W32 mouse wheel events as mouse click events, like in X.
7149 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
7150 MOUSE_WHEEL_EVENT anymore.
7152 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
7153 Scrolling down/up the mouse wheel is respectively mapped to mouse
7155 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
7156 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
7157 WM_MOUSEWHEEL events.
7159 2003-05-27 Andreas Schwab <schwab@suse.de>
7161 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
7163 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
7164 partially visible line.
7166 * alloc.c (Fgarbage_collect): Fix last change.
7168 2003-05-26 John Paul Wallington <jpw@gnu.org>
7170 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
7172 2003-05-25 Stefan Monnier <monnier@cs.yale.edu>
7174 * window.c (Fset_window_buffer): Add type of `keep_margins'.
7175 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
7177 * window.h (window_box_text_cols): Declare.
7179 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
7180 (x_draw_vertical_border): Remove unused var `f'.
7182 * xfaces.c (build_scalable_font_name): Remove `unused var
7183 pixel_size' warning.
7185 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
7187 * unexelf.c (unexec): Remove `unused var n' warning.
7189 * strftime.c (my_strftime_localtime_r): Remove `defined but
7192 * process.c (allocate_pty): Remove `unused var stb' and
7193 `cp might be used uninitialized' warnings.
7195 * dispnew.c (mode_line_string): Remove unused var `f'.
7197 * coding.c (find_safe_codings): Remove unused var `i'.
7199 * bytecode.c (Fbyte_code): Remove `unused val' warning.
7201 * buffer.c (Fkill_buffer): Remove unused var `list'.
7203 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
7205 2003-05-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7207 * frame.c (make_frame): Condition want_fullscreen with
7210 2003-05-25 Juanma Barranquero <lektu@terra.es>
7212 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
7213 (Fwindow_scroll_bars): Fix typo in docstring.
7215 2003-05-24 Kim F. Storm <storm@cua.dk>
7217 The following changes serve several purposes:
7219 1) Swap the position of fringes and display margins in windows, i.e.
7220 the fringes are now displayed between the margins and the text area
7223 2) Allow fringe and scroll bar parameters to be set per-buffer and
7224 per-window (like display margins). Such settings are now stored
7225 in window configurations, preserved when frames are resized, and
7226 copied when windows are split vertically or horizontally.
7227 Several bugs related to display margins have been fixed.
7229 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
7231 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
7232 rather than FRAME_WIDTH (FRAME_FONT (f)).
7234 5) Introduce a consistent naming of variables, members and macros
7235 depending on whether their value is measured in pixels or in
7236 canonical columns/lines. Pixel dimensions are named *_width and
7237 *_height, while canonical columns/lines are named *_cols and
7238 *_lines. Pixel positions are named *_x and *_y, while column/line
7239 positions are named *_col and *_line.
7241 6) Consolidate more of the X, W32, and MAC gui code by moving
7242 common data into struct frame, and generalize it for the non-gui
7243 case by using suitable defaults.
7245 7) Cleanup and consolidate the macros controlling frame and window
7246 layout into frame.h and window.h, and generalize the use of the
7247 various window_box_* functions (enhanced to handle the new fringe
7248 position and the per-window fringe and scroll bar settings).
7250 * frame.h (struct frame): Rename members height to text_lines,
7251 width to text_cols, window_height to total_lines, window_width to
7252 total_cols, new_height to new_text_lines, new_width to
7253 new_text_cols. All uses changed.
7254 (struct frame): New members which consolidate common members of
7255 x_output, w32_output, and mac_output structures: left_pos,
7256 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
7257 win_gravity, size_hint_flags, border_width, internal_border_width,
7258 line_height, fringe_cols, left_fringe_width, right_fringe_width,
7259 want_fullscreen. All uses changed.
7260 (struct frame): New member column_width contaning the canonical
7261 column width, analogue to line_height. All uses changed.
7262 (struct frame): Rename members scroll_bar_pixel_width to
7263 config_scroll_bar_width, and scroll_bar_cols to
7264 config_scroll_bar_cols. All uses changed.
7265 (struct frame): New member scroll_bar_actual_width which
7266 consolidates and renames the vertical_scroll_bar_extra member of
7267 x_output, w32_output, and mac_output structures. All uses changed.
7268 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
7269 from x/w32/macterm.h files. All uses changed. Also change code
7270 which referred to f->output_data...->pixel_height.
7271 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
7272 from x/w32/macterm.h files. All uses changed. Also change code
7273 which referred to f->output_data...->pixel_width.
7274 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
7275 Also change code which referred to f->height.
7276 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
7277 Also change code which referred to f->width.
7278 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
7279 to update new_text_lines and new_text_cols members directly.
7280 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
7281 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
7282 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
7283 FRAME_SCROLL_BAR_COLS. All uses changed.
7284 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
7285 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
7286 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
7287 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
7288 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
7289 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
7290 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
7291 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
7292 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
7293 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
7294 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
7295 Unconditionally return line_height member (it now has proper value
7296 also for non-window frames).
7297 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
7298 return new column_width member (rather than the default font width).
7299 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
7300 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
7301 from x/w32/macterm.h files. Unconditionally return corresponding
7302 member of frame structure (they now have proper values also for
7304 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
7305 Calculate return value from left and right widths.
7306 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
7307 internal_border_width member (has proper value for non-window frame).
7308 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
7309 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
7310 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
7311 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
7312 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
7313 consolidated from xterm.h, macterm.h, and w32term.h.
7314 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
7315 consolidated from xterm.h, macterm.h, and w32term.h.
7316 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
7317 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
7318 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
7319 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
7320 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
7321 consolidated from x/mac/w32term.h.
7322 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
7323 consolidated from x/mac/w32term.h.
7324 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
7325 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
7326 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
7327 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
7329 * window.h (struct window): Rename members left to left_col,
7330 top to top_line, height to total_lines, width to total_cols,
7331 left_margin_width to left_margin_cols, right_margin_width to
7332 right_margin_cols, orig_height to orig_total_lines, orig_top to
7333 orig_top_line. All uses changed.
7334 (struct window): New members left_fringe_width, right_fringe_width,
7335 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
7336 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
7337 New macros primarily used to simplify other macros.
7338 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
7339 referred to XINT (w->width).
7340 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
7341 referred to XINT (w->height).
7342 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
7343 referred to XINT (w->width) * canon_x_unit.
7344 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
7345 referred to XINT (w->height) * canon_y_unit.
7346 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
7347 referred to XINT (w->left).
7348 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
7349 all uses and code that referred to XINT (w->left) + XINT (w->width).
7350 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
7351 referred to XINT (w->top).
7352 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
7353 referred to XINT (w->top) + XINT (w->height).
7354 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
7355 referred to XINT (w->left) * canon_x_unit.
7356 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
7357 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
7358 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
7359 referred to XINT (w->top) * canon_y_unit.
7360 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
7361 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
7362 (WINDOW_LEFTMOST_P): New macro.
7363 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
7365 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
7367 (WINDOW_BOX_LEFT_EDGE_X): Rename from
7368 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
7369 Do not exclude left fringe width.
7370 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
7371 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
7372 Do not exclude fringe widths.
7373 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
7374 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
7375 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
7376 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
7377 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
7378 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
7379 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
7380 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
7381 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
7382 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
7383 New macros. Change code which referenced corresponding
7384 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
7385 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
7386 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
7387 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
7388 allow per-window scroll-bar settings.
7389 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
7390 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
7391 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
7392 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
7393 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
7394 FRAME_SCROLL_BAR_WIDTH.
7395 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
7396 (WINDOW_SCROLL_BAR_AREA_X): New macros.
7397 (WINDOW_HEADER_LINE_HEIGHT): Rename from
7398 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
7399 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
7400 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
7401 (WINDOW_BOX_TEXT_HEIGHT): Rename from
7402 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
7403 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
7404 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
7405 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
7406 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
7407 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
7408 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
7409 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
7410 (window_from_coordinates): Update prototype.
7411 (Fset_window_buffer): Update EXFUN.
7412 (set_window_buffer): Update prototype.
7414 * dispextern.h (struct glyph_matrix): Rename members window_left_x
7415 to window_left_col, window_top_y to window_top_line. All uses
7417 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
7418 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
7419 internal_border_width is now set to 0 for non-window frames.
7420 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
7421 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
7422 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
7423 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
7424 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
7425 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
7426 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
7427 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
7428 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
7429 Move to window.h and renamed [see window.h changes].
7430 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
7431 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
7432 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
7433 Use WINDOW_TOTAL_LINES.
7434 (frame_update_line_height): Remove prototype.
7436 * buffer.h (struct buffer): Rename members measured in columns:
7437 left_margin_width to left_margin_cols, right_margin_width to
7438 right_margin_cols. All uses changed.
7439 New members left_fringe_width, right_fringe_width,
7440 fringes_outside_margins for per-buffer fringe settings.
7441 New members scroll_bar_width and vertical_scroll_bar_type for
7442 per-buffer scroll bar settings.
7444 * buffer.c (init_buffer_once): Set buffer_defaults and
7445 buffer_local_flags for new buffer-local variables
7446 left_fringe_width, right_fringe_width, fringes_outside_margins,
7447 scroll_bar_width, and vertical_scroll_bar_type.
7448 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
7449 default-* variables for them.
7451 * dispnew.c: Make (many) trivial substitutions for renamed and
7452 new macros in dispextern.h, frame.h and window.h.
7453 (mode_line_string): No need to adjust width for mode lines, as it
7454 is already adjusted by the caller.
7455 (marginal_area_string): Handle fringes inside/outside margins.
7457 * frame.c: Make (many) trivial substitutions for renamed and
7458 new macros in dispextern.h, frame.h and window.h.
7459 (make_frame): Initialize left_fringe_width, right_fringe_width,
7460 fringe_cols, scroll_bar_actual_width, border_width,
7461 internal_border_width, column_width, line_height, x_pixels_diff,
7462 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
7463 members with values suitable for a non-window frames.
7465 * gtkutil.c: Make (many) trivial substitutions for renamed and
7466 new macros in dispextern.h, frame.h and window.h.
7468 * indent.c: Make (few) trivial substitutions for renamed and
7469 new macros in dispextern.h, frame.h and window.h.
7471 * keyboard.c: Make (many) trivial substitutions for renamed and
7472 new macros in dispextern.h, frame.h and window.h.
7473 (make_lispy_event): Use window positions returned from
7474 window_from_coordinates when constructing the lisp event for
7475 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
7476 (incorrect) values locally.
7477 (make_lispy_movement): Use window positions returned from
7478 window_from_coordinates when constructing the lisp event, rather
7479 than calculating (incorrect) values locally.
7481 * scroll.c: Make (some) trivial substitutions for renamed and
7482 new macros in dispextern.h, frame.h and window.h.
7484 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
7487 * sysdep.c: Make (few) trivial substitutions for renamed and
7488 new macros in dispextern.h, frame.h and window.h.
7490 * term.c: Make (some) trivial substitutions for renamed and
7491 new macros in dispextern.h, frame.h and window.h.
7493 * widget.c: Make (few) trivial substitutions for renamed and
7494 new macros in dispextern.h, frame.h and window.h.
7496 * window.c: Make (many) trivial substitutions for renamed and
7497 new macros in dispextern.h, frame.h and window.h.
7498 (make_window): Initialize new members
7499 left_margin_cols, right_margin_cols, left_fringe_width,
7500 right_fringe_width, fringes_outside_margins, scroll_bar_width,
7501 and vertical_scroll_bar_type.
7502 (coordinates_in_window): Adapt to new fringe/margin positions
7503 and per-window fringes and scroll-bars.
7504 Fix bug related to incorrectly adjusting coordinates by
7505 frame's internal_border_width (the effect normally negible since
7506 the internal_border_width is typically 0 or 1 pixel, but very
7507 noticeable for an internal_border_width of e.g. 25 pixels).
7508 Upon successful return (other than ON_NOTHING), the coordinates
7509 are now always properly converted to window relative for the
7510 given display element.
7511 (window_from_coordinates): Add new parameters wx and wy to
7512 return the window relative x and y position in the returned
7513 window and part. A null arg means, don't return the position.
7514 All callers changed.
7515 (adjust_window_margins): New function which may reduce the width
7516 of the display margins if a window's text area is too small after
7517 resizing or splitting windows.
7518 (size_window): Fix bug that did not account for display margin
7519 widths when checking the minimum width of a window; use
7520 adjust_window_margins.
7521 (set_window_buffer): Call Fset_window_fringes and
7522 Fset_window_scroll_bars to setup per-window elements.
7523 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
7524 existing display margin, fringe widths, and scroll bar settings
7525 (e.g. after splitting a window or resizing the frame).
7526 All callers changed.
7527 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
7528 (Fsplit_window): Duplicate original window's display margin,
7529 fringe, and scroll-bar settings; then call Fset_window_buffer with
7530 KEEP_MARGINS non-nil. This fixes a bug which caused a split
7531 window to only preserve the display margins in one of the windows.
7532 When splitting horizontally, call adjust_window_margins on both
7533 windows to ensure that the text area of the new windows is non too
7534 narrow. This fixes a bug which could cause Emacs to trap if the
7535 width of the split window was less than the width of the display
7537 (window_box_text_cols): Rename from window_internal_width.
7538 All uses changed. Adapt to per-window fringes and scroll bars.
7539 Fix bug that caused vertical separator to be subtracted also on
7540 window frames. Fix another bug that did not reduce the returned
7541 value by the columns used for display margins.
7542 (window_scroll_line_based): Fix bug related to scrolling too much
7543 when display margins are present (implicitly fixed by the fix to
7544 window_box_text_cols).
7545 (scroll_left, scroll_right): Fix bug related to scrolling too far
7546 by default when display margins are present (implicitly fixed by
7547 the fix to window_box_text_cols).
7548 (struct saved_window): Rename members left to left_col, top to
7549 top_line, width to total_cols, height to total_lines, orig_top to
7550 orig_top_line, orig_height to orig_total_lines. All uses changed.
7551 New members left_margin_cols, right_margin_cols,
7552 left_fringe_width, right_fringe_width, fringes_outside_margins,
7553 scroll_bar_width, and vertical_scroll_bar_type for saving
7554 per-window display elements.
7555 (Fset_window_configuration): Restore display margins, fringes,
7556 and scroll bar settings. This fixes a bug which caused display
7557 margins to be discarded when saving and restoring a window
7559 (save_window_save): Save display margins, fringes, and scroll bar
7560 settings. This fixes a bug which caused display margins to be
7561 discarded when saving and restoring a window configuration.
7562 (Fset_window_margins): Do nothing if display margins are not
7563 really changed. Otherwise, call adjust_window_margins to ensure
7564 the text area doesn't get too narrow. This fixes a bug which
7565 could cause Emacs to trap if setting display margins wider than
7566 the width of the window.
7567 (Fset_window_fringes): New defun to allow user to specifically set
7568 this window's fringe widths and position vs. display margins.
7569 (Fwindow_fringes): New defun to return window's actual fringe settings.
7570 (Fset_window_scroll_bars): New defun to allow user to specifically
7571 set this window's scroll bar width and position.
7572 (Fwindow_scroll_bars): New defun to return window's actual scroll
7574 (compare_window_configurations): Also compare display margins,
7575 fringes, and scroll bar settings.
7576 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
7578 * xdisp.c: Make (many) trivial substitutions for renamed and
7579 new macros in dispextern.h, frame.h and window.h.
7580 (window_box_width): Adapt to per-window fringes and scroll bars,
7581 and new fringe vs. display margin position. Note that returned
7582 value is no longer guaranteed to be a whole multiple of the frame
7583 column width, since per-window fringes may now be any width.
7584 (window_box_left_offset): New function like window_box_left, but
7585 value is relative to left border of window (rather than frame).
7586 (window_box_right_offset): New function like window_box_right,
7587 but value is relative to left border of window.
7588 (window_box_left): Adapt to per-window fringes and scroll bars,
7589 and new fringe vs. display margin position. Simplify by using
7590 WINDOW_LEFT_EDGE_X and window_box_left_offset.
7591 (window_box): Allow null args for unnecessary return values;
7592 change/simplify relevant callers.
7593 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
7594 and new fringe vs. display margin position.
7595 Use window_box_left_offset and window_box_right_offset
7596 (get_glyph_string_clip_rect): Adapt to per-window fringes and
7597 scroll bars, and new fringe vs. display margin position.
7598 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
7599 (draw_fringe_bitmap): Rework to handle per-window fringes and new
7600 fringe vs. display margin position.
7601 (hscroll_window_tree): Use window_box_width instead of window_box.
7602 (redisplay_window): Adapt to per-window scroll bars.
7603 (draw_glyphs): Rework to handle per-window fringes and scroll
7604 bars, and new fringe vs. display margin position.
7605 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
7606 (x_clear_end_of_line): Adapt to per-window fringes and scroll
7607 bars, and new fringe vs. display margin position. Fix bug which
7608 increased total width of full_width rows by width of scroll bars
7609 although window's total width already includes that.
7610 (x_fix_overlapping_area): Simplify using window_box_left_offset.
7611 (expose_area): Simplify using window_box_left_offset.
7612 (x_draw_vertical_border): Handle per-window scroll bar settings,
7613 mixing windows with left, right and no scroll bars.
7615 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
7616 where it's used in x_list_fonts (for clarity).
7617 (frame_update_line_height): Remove unused function; functionality
7618 is now done directly when setting the default font in x_set_font.
7620 * xfns.c: Make (many) trivial substitutions for renamed and
7621 new macros in dispextern.h, frame.h and window.h.
7623 * xmenu.c: Make (some) trivial substitutions for renamed and
7624 new macros in dispextern.h, frame.h and window.h.
7626 * xterm.h (struct x_output): Move members left_pos, top_pos,
7627 border_width, pixel_height, pixel_width, line_height,
7628 internal_border_width, vertical_scroll_bar_extra,
7629 left_fringe_width, right_fringe_width, fringe_cols,
7630 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7631 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
7632 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7633 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7634 (PIXEL_WIDTH, PIXEL_HEIGHT)
7635 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
7636 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
7637 frame.h and renamed [see frame.h changes].
7638 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7639 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
7640 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
7641 and renamed [see frame.h changes].
7643 * xterm.c: Make (several) trivial substitutions for renamed and
7644 new macros in dispextern.h, frame.h and window.h.
7645 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
7646 (scroll_run): Adapt to new fringe position.
7647 (glyph_rect): Use window coordinates returned from
7648 window_from_coordinates rather than frame_to_window_pixel_xy.
7649 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7651 (handle_one_xevent): Simplify a USE_GTK conditional.
7652 (x_clip_to_row): Remove superfluous whole_line_p arg and code
7653 (fringes are now inside margins, i.e. always in the clipping area).
7654 All callers changed.
7655 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7656 directly, then call compute_fringe_widths. Don't call
7657 frame_update_line_height.
7659 * w32term.h (struct w32_output): Move members left_pos, top_pos,
7660 border_width, pixel_height, pixel_width, line_height,
7661 internal_border_width, vertical_scroll_bar_extra,
7662 left_fringe_width, right_fringe_width, fringe_cols,
7663 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7664 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
7665 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7666 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7667 (PIXEL_WIDTH, PIXEL_HEIGHT)
7668 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
7669 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
7670 frame.h and renamed [see frame.h changes].
7671 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7672 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
7673 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
7674 and renamed [see frame.h changes].
7676 * w32term.c: Make (several) trivial substitutions for renamed and
7677 new macros in dispextern.h, frame.h and window.h.
7678 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
7679 (glyph_rect): Use window coordinates returned from
7680 window_from_coordinates rather than frame_to_window_pixel_xy.
7681 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7683 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
7684 (fringes are now inside margins, i.e. always in the clipping area).
7685 All callers changed.
7686 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7687 directly, then call compute_fringe_widths. Don't call
7688 frame_update_line_height.
7690 * w32console.c: Make (few) trivial substitutions for renamed and
7691 new macros in dispextern.h, frame.h and window.h.
7693 * w32fns.c: Make (many) trivial substitutions for renamed and
7694 new macros in dispextern.h, frame.h and window.h.
7696 * w32menu.c: Make (few) trivial substitutions for renamed and
7697 new macros in dispextern.h, frame.h and window.h.
7699 * macterm.h (struct mac_output): Move members left_pos, top_pos,
7700 border_width, pixel_height, pixel_width, line_height,
7701 internal_border_width, vertical_scroll_bar_extra,
7702 left_fringe_width, right_fringe_width, fringe_cols,
7703 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7704 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
7705 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7706 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7707 (PIXEL_WIDTH, PIXEL_HEIGHT)
7708 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
7709 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
7710 frame.h and renamed [see frame.h changes].
7711 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7712 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
7713 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
7714 and renamed [see frame.h changes].
7716 * macterm.c: Make (several) trivial substitutions for renamed and
7717 new macros in dispextern.h, frame.h and window.h.
7718 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
7719 (glyph_rect): Use window coordinates returned from
7720 window_from_coordinates rather than frame_to_window_pixel_xy.
7721 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7723 (x_clip_to_row): Remove superfluous whole_line_p arg and code
7724 (fringes are now inside margins, i.e. always in the clipping area).
7725 All callers changed.
7726 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7727 directly, then call compute_fringe_widths. Don't call
7728 frame_update_line_height.
7730 * macfns.c: Make (several) trivial substitutions for renamed and
7731 new macros in dispextern.h, frame.h and window.h.
7732 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
7734 * macmenu.c: Make (few) trivial substitutions for renamed and
7735 new macros in dispextern.h, frame.h and window.h.
7737 * msdos.h (struct x_output): Remove members left_pos, top_pos,
7738 and line_height, and use corresponding new members in struct
7739 frame. All uses changed.
7740 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
7741 superseeded by corresponding macros in frame.h.
7743 * msdos.c: Make (several) trivial substitutions for renamed and
7744 new macros in dispextern.h, frame.h and window.h.
7745 (IT_note_mouse_highlight): Use updated window coordinates returned
7746 by window_from_coordinates, rather than adjusting them locally.
7747 (internal_terminal_init): No need to initialize line_height here;
7748 it now defaults to 1.
7750 2003-05-24 Stefan Monnier <monnier@cs.yale.edu>
7752 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
7753 dropping `down' events.
7755 2003-05-24 Andreas Schwab <schwab@suse.de>
7757 * coding.c (find_safe_codings): Fix last change.
7759 2003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
7761 * xfns.c (x_window): Fix typo from 2003-05-21 change.
7763 2003-05-23 Stefan Monnier <monnier@cs.yale.edu>
7765 * xdisp.c (display_mode_element): Increase max depth.
7766 Simplify the error handling code. Use a different error string
7767 for the case where we hit the depth limit.
7769 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
7771 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
7773 2003-05-21 Stefan Monnier <monnier@cs.yale.edu>
7775 * intervals.c (get_local_map): Don't get char-property of previous
7776 point any more: get_pos_property already does it and better.
7778 2003-05-21 Dave Love <fx@gnu.org>
7780 [Merged from unicode branch.]
7782 * xfns.c (x_window, x_window): Use use_xim.
7784 * xterm.c (use_xim): Initialize.
7785 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
7786 (x_term_init): Maybe set use_xim.
7788 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
7790 2003-05-21 Jason Rumney <jasonr@gnu.org>
7792 * unexw32.c (_start): Remove _fmode initialization.
7794 * emacs.c (main) [WINDOWSNT]: Move it here.
7796 2003-05-20 Dave Love <fx@gnu.org>
7798 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
7800 2003-05-19 Richard M. Stallman <rms@gnu.org>
7802 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
7803 as value for QCfont attribute.
7804 (realize_default_face): lface should already exist; crash if not.
7805 Specify 0 for FORCE_P when calling set_lface_from_font_name.
7807 * frame.c (Fignore_event): Doc fix.
7809 2003-05-19 Kenichi Handa <handa@m17n.org>
7811 * coding.c (decode_coding_string): Handle post-read-conversion
7812 even if the coding doesn't require decoding.
7814 2003-05-18 Richard M. Stallman <rms@gnu.org>
7816 * callproc.c (Fcall_process_region): Doc fix.
7818 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
7820 * lread.c (Fload): Print a message if package is obsolete.
7822 * window.c (Fselect_window): Add optional `norecord' arg.
7823 (select_window_1): Fold into Fselect_window.
7824 (select_window_norecord): New function.
7825 (temp_output_buffer_show): Use it. Preserve current buffer.
7827 * window.h (Fselect_window): Update declaration.
7829 * window.c (delete_window, Fother_window, Fset_window_configuration):
7830 * minibuf.c (read_minibuf):
7831 * macterm.c (x_new_focus_frame):
7832 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
7833 * callint.c (Fcall_interactively):
7834 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
7836 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
7838 2003-05-17 David Kastrup <dak@gnu.org>
7840 * process.c (read_process_output): Back out change from 2003-03-09.
7842 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
7844 * editfns.c (get_pos_property): Don't assume that `object' = nil.
7846 * textprop.c (text_property_stickiness): New arg `buffer'.
7848 * intervals.h (text_property_stickiness): New arg `buffer'.
7849 (get_pos_property): Declare.
7851 * intervals.c (get_local_map): Use get_pos_property, to obey
7852 stickiness and empty overlays.
7853 (create_root_interval, graft_intervals_into_buffer): Use BEG.
7854 (merge_properties, intervals_equal, merge_properties_sticky):
7856 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
7858 2003-05-17 Richard M. Stallman <rms@gnu.org>
7860 * minibuf.c (read_minibuf): If buffer is empty, record the default
7862 (Fminibuffer_complete_word): When deleting the overlap, take account
7863 of its real position.
7865 * fns.c (map_char_table): Fix previous change.
7867 * syntax.c (find_defun_start):
7868 When open_paren_in_column_0_is_defun_start,
7869 return beginning of buffer.
7871 * lisp.h (map_char_table): Declare added arg.
7873 * fns.c (map_char_table): New arg TABLE gets the master table.
7875 Process default and inheritance, resorting to Faref if necessary.
7877 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
7878 (Faccessible_keymaps): Pass new arg to map_char_table.
7880 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
7882 * casetab.c (set_case_table): Pass new arg to map_char_table.
7884 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
7886 * lisp.h (specbinding_func): New typedef.
7887 (struct specbinding): Use specbinding_func, to put the `volatile'
7890 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
7891 to avoid GCC warning.
7893 2003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
7895 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
7897 2003-05-15 Stefan Monnier <monnier@cs.yale.edu>
7899 * keyboard.c (apply_modifiers): Don't fill the other cache.
7901 2003-05-14 Stefan Monnier <monnier@cs.yale.edu>
7903 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
7905 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
7906 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
7907 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
7908 (Fset_window_configuration, Fcurrent_window_configuration)
7909 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
7910 (Fpos_visible_in_window_p, mark_window_cursors_off)
7911 (window_internal_height, window_internal_width, Frecenter)
7912 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
7913 (replace_buffer_in_all_windows, init_window_once, init_window)
7914 (syms_of_window, keys_of_window): Move from lisp.h.
7915 * lisp.h: Move window.c declarations to window.h.
7917 * bytecode.c: Include window.h.
7918 * emacs.c: Include window.h.
7920 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
7921 (keyremap): Add `parent' field.
7922 (keyremap_step): Use it. Remove `parent' argument.
7923 (read_key_sequence): Setup and use the new `parent' field.
7925 2003-05-11 Stefan Monnier <monnier@cs.yale.edu>
7927 * keyboard.c (adjust_point_for_property): Ensure termination.
7929 2003-05-10 Stefan Monnier <monnier@cs.yale.edu>
7931 * keyboard.c (follow_key): Remove dead variable `did_meta'.
7932 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
7933 duplicated handling of function-key-map and key-translation-map
7934 in read_key_sequence.
7935 (read_key_sequence): Use them.
7937 * keyboard.c (adjust_point_for_property): Try harder to move point
7938 to the non-sticky end of an invisible property.
7940 * xdisp.c (single_display_prop_intangible_p): Make `space' display
7941 property intangible as well.
7943 2003-05-10 Andreas Schwab <schwab@suse.de>
7945 * xmenu.c (single_menu_item): Change last parameter to void* to
7948 2003-05-09 Richard M. Stallman <rms@gnu.org>
7950 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
7951 Bind Qinhibit_modification_hooks to t so there will be no GC.
7952 Rename local `tem' to `save_deactivate_mark'.
7954 * eval.c (specpdl_ptr): Declare volatile.
7955 (unbind_to): Copy the whole binding and decrement specpdl_ptr
7956 before doing the work of unbinding it.
7958 * lisp.h (struct specbinding): Declare elements volatile.
7959 (specpdl_ptr): Declare volatile.
7961 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
7963 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
7964 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
7966 2003-05-08 Dave Love <fx@gnu.org>
7968 * coding.c (Vlast_coding_system_used): Doc fix.
7970 2003-05-07 Jason Rumney <jasonr@gnu.org>
7972 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
7973 when system does not support them.
7975 2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
7977 * fileio.c (Qwrite_region_annotate_functions): New var.
7978 (build_annotations): Use it to process the global part of the hook.
7979 (syms_of_fileio): Init and staticpro it.
7981 * keyboard.c (safe_run_hooks_error): Display a message instead of
7982 silently ignoring the error.
7984 2003-05-03 Stefan Monnier <monnier@cs.yale.edu>
7986 * keyboard.c (input_available_signal): Mark static.
7987 (menu_bar_items): Use map_keymap.
7988 (menu_bar_one_keymap): Remove.
7989 (menu_bar_item): Adjust arglist (for use in map_keymap).
7990 Properly hide a second binding when not both are keymaps.
7992 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
7993 (single_keymap_panes): Use it and map_keymap.
7994 (single_menu_item): Use skp as well.
7996 * keymap.h (map_keymap_function_t): New type.
7997 (map_keymap): Declare.
7999 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
8000 (map_keymap_call, Fmap_keymap): New functions.
8001 (syms_of_keymap): Defsubr map-keymap.
8003 2003-05-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8005 * gtkutil.c (create_dialog, make_widget_for_menu_item)
8006 (make_menu_item, create_menus, xg_update_menu_item): Don't call
8007 ..._with_mnemonic functions for menu items.
8009 2003-05-01 Kenichi Handa <handa@m17n.org>
8011 * coding.c (coding_system_accept_latin_extra_p): Delete this
8013 (find_safe_codings): Pay attention to
8014 the property tranlsation-table-for-encode of each codings.
8015 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
8017 2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
8019 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
8021 2003-04-30 Stefan Monnier <monnier@cs.yale.edu>
8023 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
8025 * lisp.h (CHECK): Wrap args in parenthesis.
8026 (specbind): Fix doc: symbol = Qnil is not supported any more.
8028 * bytecode.c (Fbyte_code) <unwind-protect>:
8029 Use Fprogn rather than 0 and Qnil.
8031 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
8032 `double', and `triple' modifiers as well.
8034 2003-04-30 Richard M. Stallman <rms@gnu.org>
8036 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
8038 * alloc.c (abort_on_gc): New variable.
8039 (Fgarbage_collect): Abort if abort_on_gc is set.
8041 * lisp.h (abort_on_gc): Add decl.
8043 * eval.c (Fsignal): Clear abort_on_gc.
8045 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
8046 Reinit FORMAT_START and END before second scan.
8048 * xdisp.c (move_it_vertically_backward): Do the final big else
8049 even if nlines is 0.
8051 * xdisp.c (redisplay_internal): Finish the per-frame loop
8052 even if redisplay is suspended by input.
8054 2003-04-24 Andrew Choi <akochoi@shaw.ca>
8056 * macterm.c (x_list_fonts): Return all fonts that match if
8059 2003-04-25 Kenichi Handa <handa@m17n.org>
8061 * syntax.c (skip_chars): Fix previous change.
8063 2003-04-24 Kenichi Handa <handa@m17n.org>
8065 * syntax.c (skip_chars): Make the code faster by using the common
8066 technique of *p, *stop, and *endp.
8068 2003-04-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8070 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
8071 tool_bar_items so GTK tool bar expose callback does not access items
8074 2003-04-19 Stefan Monnier <monnier@cs.yale.edu>
8076 * eval.c (Fapply): Undo last change and add a comment about why.
8078 2003-04-18 Miles Bader <miles@gnu.org>
8080 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
8081 pickier PARSE_MULTIBYTE_SEQ.
8083 2003-04-17 Stefan Monnier <monnier@cs.yale.edu>
8085 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
8086 Use XCDR, XCAR, CONSP.
8087 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
8088 (Fapply): Remove unnecessary GCPRO.
8090 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
8092 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
8094 * buffer.h: Don't hardcode BEG==1.
8096 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
8098 2003-04-16 Richard M. Stallman <rms@gnu.org>
8100 * xdisp.c (try_window, try_window_reusing_current_matrix):
8101 When at end of window, set window_end_pos to Z-ZV.
8103 * buffer.c (Foverlay_recenter): Doc fix.
8105 2003-04-14 Stefan Monnier <monnier@cs.yale.edu>
8107 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
8109 2003-04-14 Andrew Choi <akochoi@shaw.ca>
8111 * macterm.c (mac_check_for_quit_char): Don't check more often than
8114 2003-04-11 Stefan Monnier <monnier@cs.yale.edu>
8116 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
8117 specially, so that they can't hide an implicit switch-frame event.
8118 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
8119 (head_table): Use switch-frame as event_kind for select-window.
8120 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
8122 * editfns.c (Fformat): Lisp_Object/int mixup.
8123 (format2): Remove unused var numargs.
8125 2003-04-11 Kenichi Handa <handa@m17n.org>
8127 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
8128 (Qafter_insert_file_set_coding): New variable.
8129 (syms_of_fileio): Initialize and staticpro it. Delete declaration
8130 for after-insert-file-adjust-coding-function.
8131 (Finsert_file_contents): Call Qafter_insert_file_set_coding
8132 instead of Vafter_insert_file_adjust_coding_function.
8134 2003-04-11 Kenichi Handa <handa@m17n.org>
8136 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
8138 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
8139 string. Callers changed.
8141 2003-04-10 Kenichi Handa <handa@m17n.org>
8143 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
8144 (syms_of_fileio): Declare it as a lisp variable.
8145 (Finsert_file_contents):
8146 Call Vafter_insert_file_adjust_coding_function before calling
8149 2003-04-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8151 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
8152 get GtkAdjustment as widget now is a GtkRange.
8154 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
8155 GtkRange to avoid memory leak.
8157 2003-04-09 Kenichi Handa <handa@m17n.org>
8159 * xfaces.c (Vface_font_rescale_alist): New variable.
8160 (struct font_name): New member rescale_ratio.
8161 (font_rescale_ratio): New function.
8162 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
8163 (better_font_p): On comparing point sized, pay attention to
8164 recale_ratio member of fonts.
8165 (build_scalable_font_name): Reflect font->rescale_ratio in the
8167 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
8169 * lread.c (read1): Before calling index, check if the 2nd
8170 arguemnt is in ASCII range.
8172 2003-04-08 Richard M. Stallman <rms@gnu.org>
8174 * fileio.c (Ffile_symlink_p): Doc fix.
8176 * editfns.c (Fformat): Translate positions of text properties
8177 in the format string to apply them to the result.
8179 * fileio.c (Finsert_file_contents): Doc fix.
8180 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
8182 2003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
8184 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
8186 2003-04-08 Steven Tamm <steventamm@mac.com>
8188 * mac.c (init_mac_osx_environment): Switch libexec and bin so
8189 that self-contained application finds libexec files.
8191 2003-04-08 Kenichi Handa <handa@m17n.org>
8193 * coding.c (code_convert_region_unwind):
8194 Set Vlast_coding_system_used to the argument.
8195 (code_convert_region): If post-read-conversion function changed
8196 the value of last-coding-sytem, keep the new value in
8197 coding->symbol so that it won't be overridden.
8198 (run_pre_post_conversion_on_str): Likewise.
8199 (coding_system_accept_latin_extra_p): New function.
8200 (find_safe_codings): Pay attention to characters registered in
8201 latin-extra-code-table.
8203 2003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
8205 * Makefile.in (md5.o): Add missing dependency info.
8207 2003-04-06 Richard M. Stallman <rms@gnu.org>
8209 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
8211 * marker.c (verify_bytepos): New function.
8213 * intervals.c (set_intervals_multibyte_1): When becoming
8214 multibyte, adjust right and left child sizes to a whole set of
8215 characters. If an interval gets zero total-length, delete it.
8216 If an interval consists of just its children, delete one of them.
8218 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
8219 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
8221 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
8223 (lisp_malloc): Do the work here directly.
8225 2003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
8227 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
8230 2003-04-04 Kenichi Handa <handa@m17n.org>
8232 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
8233 destructively change "%S" to "%s".
8235 2003-04-03 Miles Bader <miles@gnu.org>
8237 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
8240 2003-04-01 Dave Love <fx@gnu.org>
8242 * xfns.c (xpm_lookup_color): Grok "opaque".
8244 2003-03-31 Andrew Choi <akochoi@shaw.ca>
8246 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
8249 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
8251 * macterm.h (struct mac_output): Define x_pixels_diff and
8254 2003-03-31 Juanma Barranquero <lektu@terra.es>
8256 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
8257 blockinput.h and files included from it.
8259 2003-03-31 Kim F. Storm <storm@cua.dk>
8261 The following changes consolidates the common code related to
8262 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
8265 * frame.c: Include blockinput.h.
8266 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
8267 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
8268 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
8270 (struct frame_parm_table, frame_parms): New table for describing
8271 frame parameters and their associated Q-variable.
8272 The order of the parameters corresponds to the sequence of the
8273 frame_parm_handlers table in redisplay_interface.
8274 (x_fullscreen_move, x_set_frame_parameters)
8275 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
8276 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
8277 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8278 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
8279 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
8280 Generic functions for processing of frame parameters.
8281 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
8282 (display_x_get_resource, x_get_resource_string): Functions for
8283 generic access to X resources.
8284 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
8285 (x_default_parameter, Fx_parse_geometry): Functions for generic
8286 access to frame parameters.
8287 (x_figure_window_size): Generic calculation of frame size.
8288 Fixed to add space needed for tool bar. Also setup size_hint_flags.
8289 (syms_of_frame): Intern and staticpro frame parameter variables.
8290 Defvar_lisp Vx_resource_class and Vx_resource_name here.
8291 Defsubr Sx_get_resource and Sx_parse_geometry.
8293 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
8294 parameter related vars defined in frame.c.
8295 (EMACS_CLASS): Define here.
8296 (enum FULLSCREEN_*): Define here.
8297 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
8298 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
8299 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
8300 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
8301 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
8302 (x_set_visibility, x_set_autoraise, x_set_autolower)
8303 (x_set_unsplittable, x_set_vertical_scroll_bars)
8304 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
8305 (x_figure_window_size): Add prototypes.
8307 * dispextern.h (frame_parm_handler): New typedef.
8308 (struct redisplay_interface): New member frame_parm_handlers.
8309 (enum resource_types): Move declaration here.
8310 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
8311 (x_default_parameter): Add prototypes.
8313 * window.c: Remove extern decl for frame parameter vars.
8314 (change_window_heights): New generic function;
8315 replaces x_change_window_heights. All users changed.
8317 * window.h (change_window_heights): Add prototype.
8319 * xfaces.c: Remove extern decl for frame parameter vars.
8321 * xterm.h (EMACS_CLASS): Remove. Use generic define.
8322 (struct w32_display_info): Fix type of xrdb member.
8323 (enum FULLSCREEN_*): Remove.
8324 Remove prototypes for generic functions (in frame.h).
8326 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8327 parameters now defined in frame.h and frame.c.
8328 (Vx_resource_name): Remove. Use generic var.
8329 (enum x_frame_parms): Remove (bogus, unused enum).
8330 (check_x_display_info): Make non-static (for frame.c).
8331 (struct x_frame_parm_table, x_frame_parms): Remove.
8332 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8333 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8334 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8335 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8336 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8337 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8338 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8339 Remove. Use generic functions instead.
8340 (enum resource_types): Remove.
8341 (x_set_scroll_bar_default_width): New global function (for frame.c).
8342 (Fx_create_frame): Depend on x_figure_window_size to add space for
8343 toolbar and setup size_hint_flags.
8344 (x_frame_parm_handlers): New table for redisplay_interface.
8345 (syms_of_xfns): Don't intern/staticpro removed vars.
8347 * xterm.c: Remove unnecessary extern declarations.
8348 (x_fullscreen_adjust): Remove. Use generic instead.
8349 (x_redisplay_interface): Add x_frame_parm_handlers member.
8351 * w32gui.h (XrmDatabase): New (dummy) typedef.
8353 * w32term.h (EMACS_CLASS): Remove. Use generic define.
8354 (struct w32_display_info): Fix type of xrdb member.
8355 (enum FULLSCREEN_*): Remove.
8356 (x_fullscreen_adjust): Remove prototype.
8358 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8359 parameters now defined in frame.h and frame.c.
8360 (Vx_resource_name): Remove. Use generic var.
8361 (enum x_frame_parms): Remove (bogus, unused enum).
8362 (check_x_display_info): Make non-static (for frame.c).
8363 (struct x_frame_parm_table, x_frame_parms): Remove.
8364 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8365 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8366 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8367 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8368 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8369 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8370 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8371 Remove. Use generic functions instead.
8372 (enum resource_types): Remove.
8373 (x_set_scroll_bar_default_width): New global function (for frame.c).
8374 (Fx_create_frame): Depend on x_figure_window_size to add space for
8375 toolbar and setup size_hint_flags.
8376 (w32_frame_parm_handlers): New table for redisplay_interface.
8377 (syms_of_w32fns): Don't intern/staticpro removed vars.
8379 * w32term.c: Remove unnecessary extern declarations.
8380 (x_fullscreen_adjust): Remove. Use generic instead.
8381 (x_redisplay_interface): Add w32_frame_parm_handlers member.
8383 * w32reg.c (x_get_string_resource): Use XrmDatabase.
8385 * macgui.h (XrmDatabase): New (dummy) typedef.
8387 * macterm.h (EMACS_CLASS): Remove.
8388 (struct mac_display_info): Add xrdb member.
8389 (struct mac_output): Add want_fullscreen member.
8391 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8392 parameters now defined in frame.h and frame.c.
8393 (Vx_resource_name): Remove. Use generic var.
8394 (check_x_display_info): Make non-static (for frame.c).
8395 (struct x_frame_parm_table, x_frame_parms): Remove.
8396 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8397 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8398 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8399 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8400 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8401 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8402 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8403 Remove. Use generic functions instead.
8404 (enum resource_types): Remove.
8405 (x_set_scroll_bar_default_width): New global function (for frame.c).
8406 (mac_frame_parm_handlers): New table for redisplay_interface.
8407 (syms_of_macfns): Don't intern/staticpro removed vars.
8409 * macterm.c: Remove unnecessary extern declarations.
8410 (x_redisplay_interface): Add mac_frame_parm_handlers member.
8412 * Makefile.in (frame.o): Add dependency on blockinput.h and files
8413 included from it (atimer.h and systime.h).
8415 2003-03-30 Andreas Schwab <schwab@suse.de>
8417 * xdisp.c (x_insert_glyphs): Fix swapped width and height
8418 parameters for shift_glyphs_for_insert.
8420 * macterm.c (x_redisplay_interface): Add missing entry for
8421 draw_vertical_window_border.
8423 2003-03-29 Kai Gro
\e,A_
\e(Bjohann <kai.grossjohann@gmx.net>
8425 * fileio.c (Fexpand_file_name): In the no-handler case, after
8426 expanding, look again for a handler and invoke it. This is needed
8427 for filenames like "/foo/../user@host:/bar/../baz" -- the first
8428 expansion produces "/user@host:/bar/../baz" which needs to be
8429 expanded again for the finame result "/user@host:/baz".
8431 2003-03-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8433 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
8434 of area to be redrawn for better performance.
8436 2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
8438 * xterm.c (take_vertical_position_into_account): Remove.
8439 (xt_action_hook): Call set_vertical_scroll_bar if needed.
8440 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
8441 (xm_scroll_callback, x_create_toolkit_scroll_bar)
8442 (x_set_toolkit_scroll_bar_thumb): Simplify.
8443 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
8444 (XTread_socket): Remove unused var.
8445 (x_make_frame_invisible): Replace goto with else.
8447 * xdisp.c (set_vertical_scroll_bar): New fun.
8448 (redisplay_window): Use it.
8450 2003-03-26 Richard M. Stallman <rms@gnu.org>
8452 * xdisp.c (update_tool_bar): Recompute tool bar if
8453 update_mode_lines is set. Set w->update_mode_line
8454 only if the tool bar contents actually change.
8455 (update_menu_bar): Undo previous change.
8457 2003-03-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8459 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
8460 (xg_frame_set_char_size): Calculate scroll bar width before frame
8461 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
8462 (xg_separator_p): Check for all documented separator types.
8463 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
8464 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
8466 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
8467 so tool bar gets updated.
8469 2003-03-26 Stefan Monnier <monnier@cs.yale.edu>
8471 * data.c (store_symval_forwarding): Re-instate part of the code
8472 that was deleted with too much enthusiasm.
8474 2003-03-25 Stefan Monnier <monnier@cs.yale.edu>
8476 * data.c (store_symval_forwarding): Delete special read-only
8477 hack for type == -1, since we now use ->constant instead.
8478 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
8480 * buffer.c (overlays_in): Declare static.
8481 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
8482 `constant' field rather than the variable's `type' field.
8484 2003-03-24 Andrew Choi <akochoi@shaw.ca>
8486 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
8488 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
8490 * fns.c [MAC_OSX]: Do not redefine vector.
8492 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
8494 * macgui.h: Remove definition of No_Cursor.
8496 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
8498 * xdisp.c: Define No_Cursor.
8499 (x_write_glyphs, notice_overwritten_cursor)
8500 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
8501 (note_mouse_highlight): Remove Mac-specific code.
8502 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
8504 2003-03-24 John Paul Wallington <jpw@gnu.org>
8506 * xdisp.c (redisplay_window): If mini window's buffer is not
8507 empty, then redisplay it like other windows.
8509 2003-03-23 Kim F. Storm <storm@cua.dk>
8511 * w32term.c (w32_draw_window_cursor): Fix last change.
8513 2003-03-23 Kenichi Handa <handa@m17n.org>
8515 * alloc.c (make_string_from_bytes, make_specified_string):
8516 Add `const' for the arg CONTENTS.
8518 * lisp.h (make_string_from_bytes, make_specified_string):
8519 Prototypes adjusted.
8521 2003-03-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8523 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
8525 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
8526 (XG_SB_RANGE): New define.
8528 * gtkutil.c (xg_fixed_handle_expose): New function.
8529 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
8531 (xg_update_scrollbar_pos): Take two more arguments, left and width
8532 of scroll bar including borders.
8533 Clear left and right part outside scroll bar separately as some
8534 themes have bars that are not an even number of pixels.
8535 Don't set reallocate_redraws, don't call
8536 gdk_window_process_all_updates.
8537 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
8538 so no need to change it. Calculate size and value with XG_SB_RANGE.
8540 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
8541 Pass left and width of scroll bar including borders to
8542 xg_update_scrollbar_pos.
8544 2003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
8546 * Makefile.in: Make sure space precedes end-of-line backslashes.
8548 2003-03-22 Kim F. Storm <storm@cua.dk>
8550 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
8551 Add generic versions here. Remove system specific versions
8554 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
8557 * xterm.h (STORE_NATIVE_RECT): New macro.
8559 2003-03-21 Kim F. Storm <storm@cua.dk>
8561 * xdisp.c (get_glyph_string_clip_rect):
8562 Use FRAME_INTERNAL_BORDER_WIDTH.
8564 * dispextern.h (struct redisplay_interface): Add active_p
8565 argument to draw_window_cursor member. All uses changed.
8567 2003-03-21 Kim F. Storm <storm@cua.dk>
8569 The following changes consolidate code related to writing and
8570 inserting glyphs, exposing frame, the tool bar, the mouse face,
8571 the output cursor, and help echo from xterm.c, w32term.c and
8572 macterm.c into xdisp.c. It also generalizes the use of the
8573 window_part enum instead of using numeric values throughout.
8575 * xdisp.c: Consolidate gui-independent code here.
8577 (Qhelp_echo): Import.
8578 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
8579 (help_echo_string, help_echo_window, help_echo_object)
8580 (previous_help_echo_string, help_echo_pos): Declare here.
8581 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
8582 (estimate_mode_line_height): Define here. Handle windowing
8583 systems directly (without using estimate_mode_line_height_hook).
8584 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
8585 (update_window_cursor, update_cursor_in_window_tree)
8586 (fast_find_position, fast_find_string_pos)
8587 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
8588 (expose_area, expose_line, expose_overlaps, expose_window)
8589 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
8590 declared static as they are only used locally in xdisp.c.
8591 (draw_glyphs): Rename from x_draw_glyphs and make static.
8592 (tool_bar_item_info, notice_overwritten_cursor): Make static.
8593 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
8594 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
8595 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
8596 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
8597 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
8598 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
8599 (note_mouse_highlight, x_clear_window_mouse_face)
8600 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
8601 (x_intersect_rectangles): New generic functions for use by xdisp.c
8603 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
8604 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
8606 * dispextern.h (Display_Info): Generic typedef for *_display_info.
8607 (NativeRectangle): Generic typedef for rectangle type.
8608 (enum window_part): Move here from window.c.
8609 (struct redisplay_interface): New members flush_display_optional,
8610 define_frame_cursor, clear_frame_area, draw_window_cursor,
8611 draw_vertical_window_border, shift_glyphs_for_insert.
8612 Rename member clear_mouse_face to clear_window_mouse_face.
8613 (estimate_mode_line_height_hook): Remove hook.
8614 (auto_raise_tool_bar_buttons_p): Don't declare extern.
8615 (tool_bar_item_info): Remove prototype.
8616 (help_echo_string, help_echo_window, help_echo_object)
8617 (previous_help_echo_string, help_echo_pos)
8618 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
8619 (x_stretch_cursor_p, output_cursor): Declare extern.
8620 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
8621 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
8622 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
8623 (display_and_set_cursor, set_output_cursor, x_cursor_to)
8624 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
8625 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
8626 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
8627 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
8628 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
8630 (mode_line_string, marginal_area_string): Fix prototypes.
8632 * window.c (enum window_part): Move to dispextern.h.
8633 (coordinates_in_window): Use enum window_part member names
8634 instead of numbers to describe return value.
8635 (struct check_window_data): Change part member to window_part.
8636 (check_window_containing): Return window_part unaltered.
8637 (window_from_coordinates): Change part arg from int to enum
8638 window_part. Allow part arg to be null. All users changed.
8640 * window.h (window_from_coordinates): Fix prototype.
8642 * term.c (estimate_mode_line_height): Move to xdisp.c.
8644 * keyboard.c (make_lispy_event): Use enum window_part.
8646 * dispnew.c (mode_line_string, marginal_area_string): Use enum
8647 window_part instead of int in arg list. Users changed.
8649 * xterm.h (No_Cursor): Declare as None for X.
8650 (struct mac_output): Replace member cross_cursor by hand_cursor.
8652 * xterm.c: Remove consolidated defines and code.
8653 (BETWEEN): Remove unused macro.
8654 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
8655 (x_define_frame_cursor, x_clear_frame_area)
8656 (x_draw_window_cursor): New X-specific functions for RIF.
8657 (x_redisplay_interface): Add new members.
8659 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
8661 * w32term.h (struct w32_output): Remove cross_cursor member.
8663 * w32term.c: Remove consolidated defines and code.
8664 (BETWEEN): Remove unused macro.
8665 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
8666 (w32_define_frame_cursor, w32_clear_frame_area)
8667 (w32_draw_window_cursor): New W32-specific functions for RIF.
8668 (w32_redisplay_interface): Add new members.
8670 * w32gui.h (No_Cursor): Define as 0 for W32.
8671 (XRectangle): Add X compatible rectangle type.
8672 (NativeRectangle): Declare as RECT for W32.
8673 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
8675 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
8677 * w32console.c: Remove consolidated defines and code.
8679 * msdos.h (Display_Info): Add generic typedef.
8681 * msdos.c: Remove consolidated defines and code.
8682 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
8684 * macterm.h (struct mac_output): Replace member cross_cursor by
8686 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
8688 * macterm.c: Remove consolidated defines and code.
8689 (BETWEEN): Remove unused macro.
8690 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
8691 (mac_define_frame_cursor, mac_clear_frame_area)
8692 (mac_draw_window_cursor): New Mac-specific functions for RIF.
8693 (x_redisplay_interface): Add new members.
8695 * macgui.h (No_Cursor): Define as 0 for Mac.
8696 (XRectangle): Add X compatible rectangle type.
8697 (NativeRectangle): Declare as Rect for Mac.
8698 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
8700 * macfns.c (x_set_mouse_color): Setup hand_cursor.
8701 (x_set_cursor_color): Use x_display_and_set_cursor.
8703 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
8704 included from it. Add dependency on keymap.h.
8706 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
8708 2003-03-21 Kenichi Handa <handa@m17n.org>
8710 * fileio.c (Fexpand_file_name): Fix previous change.
8712 2003-03-19 Kenichi Handa <handa@m17n.org>
8714 * fileio.c (Ffile_name_directory): Reconstruct file name by
8715 make_specified_string.
8716 (Ffile_name_nondirectory, Ffile_name_as_directory)
8717 (Fdirectory_file_name, Fexpand_file_name)
8718 (Fsubstitute_in_file_name): Likewise.
8719 (Fread_file_name): Compare decoded homedir with DIR and
8722 * alloc.c (make_specified_string): If NCHARS is negative, count
8723 the number of characters.
8725 2003-03-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8727 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
8730 * gtkutil.h: Removed xg_ignore_next_thumb.
8732 2003-03-18 Kenichi Handa <handa@m17n.org>
8734 * coding.c (Vchar_coding_system_table): Remove this variable.
8735 (Vcoding_system_safe_chars): New variable.
8736 (intersection): Remove this function.
8737 (find_safe_codings): Don't use Vchar_coding_system_table, but try
8738 all codings in SAFE_CODINGS.
8739 (Ffind_coding_systems_region_internal): Adjust for the change of
8740 find_safe_codings. Get generic coding systems from
8741 Vcoding_system_safe_chars.
8742 (Fdefine_coding_system_internal): New function.
8743 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
8744 Initialize and staticpro Vcoding_system_safe_chars.
8746 2003-03-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8748 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
8749 equal old values before updating.
8751 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
8753 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
8755 2003-03-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8757 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
8758 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
8759 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
8760 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
8761 (xg_create_scroll_bar): Pass bar to button event callback.
8762 (xg_find_top_left_in_fixed): New function.
8763 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
8764 whole scroll bar area. Get old position with
8765 xg_find_top_left_in_fixed, calculate and only clear needed areas.
8766 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
8767 dragging is in progress. Calculate whole as for Motif.
8768 Remove code that saved last values. Call gtk_range functions to
8769 set scroll bar sizes.
8771 * gtkutil.h: Removed xg_ignore_next_thumb.
8773 2003-03-17 Juanma Barranquero <lektu@terra.es>
8775 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
8776 and files included from it.
8778 2003-03-18 Stefan Monnier <monnier@cs.yale.edu>
8780 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
8781 multiple occurrences of the same keymap under different prefixes.
8782 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
8784 2003-03-16 Jason Rumney <jasonr@gnu.org>
8786 * w32gui.h: Use HDC for Display.
8788 * w32term.c (w32_encode_char): Prevent double-byte chars from
8791 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
8794 2003-03-16 Juanma Barranquero <lektu@terra.es>
8796 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
8798 2003-03-16 Kim F. Storm <storm@cua.dk>
8800 The following changes consolidate some of the gui-independent
8801 parts of the processing and drawing of "glyph strings" from
8802 xterm.c, w32term.c, and macterm.c into xdisp.c.
8804 * dispextern.h (struct glyph): Reduce face_id member from 22 to
8805 21 bits (this reduces number of faces from 4M to 2M).
8806 Replace W32 specific w32_font_type member (2 bits) by generic
8807 font_type member (3 bits) for portability.
8808 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
8809 (enum draw_glyphs_face): Define here.
8810 (struct glyph_string): Define here. Merge W32 and X versions.
8811 (struct redisplay_interface): New members per_char_metric,
8812 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
8813 (VCENTER_BASELINE_OFFSET): Define here.
8814 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
8815 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
8817 * xdisp.c: Consolidate gui-independent "glyph string" code here.
8818 (dump_glyph_string): Moved here.
8819 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
8820 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
8821 (fill_composite_glyph_string, fill_glyph_string)
8822 (fill_image_glyph_string, fill_stretch_glyph_string)
8823 (left_overwritten, left_overwriting, right_overwritten)
8824 (right_overwriting, get_char_face_and_encoding)
8825 (set_glyph_string_background_width, compute_overhangs_and_x)
8826 (append_glyph, append_composite_glyph, produce_image_glyph)
8827 (take_vertical_position_into_account, append_stretch_glyph)
8828 (produce_stretch_glyph): New generic functions (based on X version).
8829 Call platform specific functions through rif.
8830 (INIT_GLYPH_STRING): New macro, hides W32 details.
8831 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
8832 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
8833 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
8834 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
8835 (notice_overwritten_cursor):
8836 Generic functions exported to platform modules. Users changed.
8838 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
8839 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
8840 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
8841 New macros for consolidated code.
8843 * xterm.c: Remove consolidated defines and code.
8844 (x_per_char_metric, x_encode_char)
8845 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
8846 (x_redisplay_interface): Add new members.
8848 * w32gui.h (Display): Add dummy typedef for consolidation.
8849 (XChar2b): Define alias for wchar_t for consolidation.
8850 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
8852 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
8853 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
8854 New macros for consolidation.
8856 * w32term.c: Remove consolidated defines and code.
8857 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
8858 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
8859 (w32_per_char_metric): Change font_type arg to int for RIF.
8860 (w32_encode_char): Return int according to RIF requirements.
8861 (w32_compute_glyph_string_overhangs): Adapt to RIF.
8862 (w32_get_glyph_overhangs): New function for RIF. Uses generic
8863 x_get_glyph_overhangs.
8864 (w32_redisplay_interface): Add new members.
8866 * macgui.h (XChar2b): Move typedef here for consolidation.
8867 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
8869 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
8870 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
8873 * macterm.c: Remove consolidated defines and code.
8874 (mac_per_char_metric): New function for RIF.
8875 (mac_encode_char): Adapt to new RIF requirements.
8876 (mac_compute_glyph_string_overhangs): Adapt for RIF.
8877 (x_redisplay_interface): Add new members.
8879 2003-03-15 Stefan Monnier <monnier@cs.yale.edu>
8881 * keymap.c (Vmenu_events): New var.
8882 (syms_of_keymap): Initialize it.
8883 (where_is_internal): Check more carefully what is a menu event.
8885 2003-03-14 Richard M. Stallman <rms@gnu.org>
8887 * lread.c (read1): After #!, exit loop on eof.
8889 2003-03-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8891 * gtkutil.h: Add declaration for xg_frame_cleared.
8893 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
8895 * gtkutil.c (struct xg_last_sb_pos): New structure.
8896 (handle_fixed_child): New function.
8897 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
8898 and force a redraw on them.
8899 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
8900 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
8901 so we can avoid unneeded redraws.
8902 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
8903 and force a redraw on the scroll bar.
8904 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
8905 if xg_last_sb_pos shows the positions are up to date.
8906 (xg_frame_cleared): New function.
8908 2003-03-13 Kenichi Handa <handa@m17n.org>
8910 * coding.c (Fdetect_coding_region): Fix docstring.
8911 (Fdetect_coding_string): Fix docstring.
8913 2003-03-13 Andreas Schwab <schwab@suse.de>
8915 * gtkutil.c: Add prototype for create_menus.
8917 * data.c (long_to_cons): Fix type of top.
8919 * xselect.c (selection_data_to_lisp_data): Use int instead of
8920 long for an integer of size 4.
8922 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
8923 (xg_tool_bar_help_callback): Likewise.
8925 2003-03-12 Andreas Schwab <schwab@suse.de>
8927 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
8929 2003-03-12 Kim F. Storm <storm@cua.dk>
8931 The following changes consolidate the fringe handling from
8932 xterm.c, w32term.c, and macterm.c into xdisp.c.
8934 * xdisp.c: Consolidate fringe handling code here.
8935 (left_bits, right_bits, continued_bits, continuation_bits)
8936 (ov_bits, zv_bits): Define fringe bitmaps.
8937 (fringe_bitmaps): New array holding fringe bitmaps.
8938 (draw_fringe_bitmap): Draw a specific bitmap; call display
8939 specific drawing routine via rif->draw_fringe_bitmap.
8940 (draw_row_fringe_bitmaps): Generic replacement for
8941 x_draw_row_fringe_bitmaps; all callers changed.
8942 (compute_fringe_widths): Generic replacement for
8943 x_compute_fringe_widths; all callers changed.
8945 * dispextern.h (enum fringe_bitmap_type): Define here.
8946 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
8947 (fringe_bitmaps): Declare extern.
8948 (struct redisplay_interface): New member draw_fringe_bitmap.
8949 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
8951 * xterm.c: Remove generic fringe code.
8952 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
8953 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
8955 * w32term.c: Remove generic fringe code.
8956 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
8957 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
8959 * macterm.c: Remove generic fringe code.
8960 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
8961 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
8963 2003-03-11 Stefan Monnier <monnier@cs.yale.edu>
8965 * print.c (Fprin1_to_string): Return unibyte string if possible.
8967 2003-03-09 David Kastrup <dak@gnu.org>
8969 * process.c (read_process_output): We have allocated enough space
8970 for readmax and carryover, so actually use the alloted space.
8972 2003-03-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8974 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
8975 toolkit scrollbar click.
8977 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
8979 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
8981 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
8982 scrollbar and control is pressed, call x_scroll_bar_handle_click.
8984 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
8986 * gtkutil.c (xg_get_scroll_id_for_window): New function.
8987 (xg_tool_bar_item_expose_callback): New function.
8988 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
8989 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
8990 on the tool bar widget.
8991 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
8992 to expose on the tool bar item widgets.
8994 2003-03-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8996 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
8997 struct image* when deciding to update (struct image* may have been
8998 deleted from the image cache).
9000 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
9001 the event isn't for a frame (i.e. for dialogs).
9003 2003-03-07 Kenichi Handa <handa@m17n.org>
9005 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
9006 composition components reaches the limit, terminate composing.
9007 (COMPOSITION_OK): New macro.
9008 (detect_coding_iso2022): Use it if an escape sequence for
9009 composition is found.
9010 (coding_restore_composition): Adjust the number of composition
9011 components if it is not sane.
9013 2003-03-06 Juanma Barranquero <lektu@terra.es>
9015 * w32term.h (struct w32_display_info): Add xrdb member to support
9016 passing resources via -xrm on Windows.
9018 * w32term.c (w32_make_rdb): New function.
9019 (w32_term_init): Use it to initialize xrdb member of w32_display_info
9020 struct. Delete leftover code.
9022 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
9023 for resources passed on the command line.
9025 * w32reg.c (w32_get_rdb_resource): New function.
9026 (x_get_string_resource): Use it, so resources passed with -xrm
9027 supercede the ones in the registry.
9029 2003-03-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9031 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
9032 instead of x_top_window_to_frame.
9034 2003-03-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9036 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
9037 when restarting Emacs.
9039 2003-03-03 Richard M. Stallman <rms@gnu.org>
9041 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
9042 to run kill-buffer-query-functions.
9043 (Qkill_buffer_query_functions): New var.
9044 (syms_of_buffer): Init and staticpro it.
9046 2003-03-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9048 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
9050 2003-02-25 Kim F. Storm <storm@cua.dk>
9052 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
9053 If centering point failed to make whole line visible and vscroll
9054 is non-zero, disable vscroll and try centering point again.
9056 * lread.c (read1): Accept `single space' syntax like (? x).
9058 2003-02-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9060 * keyboard.c (cancel_hourglass_unwind): Surround with
9061 #ifdef HAVE_X_WINDOWS
9063 2003-02-25 Kenichi Handa <handa@m17n.org>
9065 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
9066 process only when "subprocesses" is defined.
9068 2003-02-24 Stefan Monnier <monnier@cs.yale.edu>
9070 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
9072 2003-02-24 Juanma Barranquero <lektu@terra.es>
9074 * callint.c (fix_command): Declare as static void and move before
9075 Fcall_interactively.
9077 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
9078 (syms_of_xdisp): Don't initialize Qwhen.
9080 2003-02-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9082 * keyboard.c (cancel_hourglass_unwind): New function.
9083 (command_loop_1): Cancel hourglass with unwind-protect.
9085 2003-02-23 Richard M. Stallman <rms@gnu.org>
9087 * callint.c (fix_command): New subroutine, from Fcall_interactively.
9088 Detect (when ... (region-beginning)) etc.
9089 (Fcall_interactively): Call fix_command.
9090 (Qif, Qwhen): New variables.
9091 (syms_of_callint): Init and staticpro them.
9093 * regex.c (print_partial_compiled_pattern): Output to stderr.
9095 2003-02-23 Kai Gro
\e,A_
\e(Bjohann <kai.grossjohann@uni-duisburg.de>
9097 * dired.c (directory_files_internal): Don't expand directory.
9098 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
9099 instead. From Lars Hansen <larsh@math.ku.dk>.
9101 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
9103 * fns.c (string_to_multibyte): Remove unused var i.
9104 (Flanginfo): Fix int/Lisp_Object mixup.
9105 (void_call2): New fun.
9106 (Fmap_char_table): Use it in place of call2.
9108 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
9110 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
9112 * keymap.c (copy_keymap_1): Make it static.
9114 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
9116 2003-02-22 David Ponce <david@dponce.com>
9118 * lread.c (Fload): Don't check STRING_MULTIBYTE.
9120 2003-02-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9122 * process.h: Removed subtty field from struct Lisp_Process.
9124 * process.c (create_process): Remove setting of subtty.
9125 (emacs_get_tty_pgrp): New function.
9126 (Fprocess_running_child_p, process_send_signal):
9127 Call emacs_get_tty_pgrp instead of ioctl.
9128 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
9130 2003-02-21 Kai Gro
\e,A_
\e(Bjohann <kai.grossjohann@uni-duisburg.de>
9132 * keymap.c (Fdefine_key): Doc fix.
9134 2003-02-21 Juanma Barranquero <lektu@terra.es>
9136 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
9138 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
9139 POLLING_PROBLEM_IN_SELECT.
9141 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
9142 Delete #undef of POLLING_PROBLEM_IN_SELECT.
9144 * s/hpux10-20.h: New file.
9146 * process.c (wait_reading_process_input):
9147 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
9149 2003-02-20 Kenichi Handa <handa@m17n.org>
9151 * fontset.c (check_fontset_name): If NAME is nil, return the
9153 (override_font_info): New function.
9154 (Fset_fontset_font): Document that NAME nil means the default fontset.
9155 (Ffontset_info): If FONTSET is not the default fontset, merge
9156 FONTSET onto the copy of the default fontset, and work on that
9157 copy. Document that NAME nil means the default fontset.
9158 (Ffontset_font): Document that NAME nil means the default fontset.
9160 * process.c (setup_process_coding_systems): If the process's
9161 in/out descriptor is -1, do nothing.
9163 2003-02-19 Andreas Schwab <schwab@suse.de>
9165 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
9168 2003-02-19 Kenichi Handa <handa@m17n.org>
9170 * xfaces.c (try_alternative_families): Try all scalable fonts if
9171 Vscalable_fonts_allowed is not Qt.
9173 2003-02-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9175 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
9177 2003-02-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9179 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
9182 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
9183 (sorted_font_list): Move allocation of struct font_name to
9185 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
9186 (Fx_list_fonts): Set maxnames to -1 to get all font names.
9188 2003-02-18 Kim F. Storm <storm@cua.dk>
9190 * lread.c (read1): Fix last change.
9191 "`" is not always special. Allow "?" after a character constant.
9193 2003-02-18 Andrew Choi <akochoi@shaw.ca>
9195 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
9197 2003-02-18 Andreas Schwab <schwab@suse.de>
9199 * window.c (window_scroll_pixel_based): Move outside a
9200 multi-glyph character before setting new window start.
9202 * xdisp.c (in_display_vector_p): New function.
9203 * dispextern.h (in_display_vector_p): Declare.
9205 2003-02-18 Kim F. Storm <storm@cua.dk>
9207 * lread.c (read1): Fix and relax read syntax.
9208 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
9209 Only recognize "," after dotted-pair dot if inside backquote.
9210 Never include "`" or "," (inside backquote) in a symbol.
9211 Allow dotted-pair dot after a character constant.
9212 Allow "`" and "," (inside backquote) after a character constant.
9214 2003-02-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9216 * gtkutil.c (xg_tool_bar_expose_callback): New function.
9217 (xg_create_tool_bar): Force style of tool bar to be horizontal with
9218 icons. Set name of tool bar to emacs-toolbar.
9219 (update_frame_tool_bar): Connect expose event to
9220 xg_tool_bar_expose_callback.
9222 2003-02-17 Richard M. Stallman <rms@gnu.org>
9224 * keyboard.c (this_command_key_count_reset): New variable.
9225 Initiatize to 0 where this_command_key_count is set.
9226 (read_char): Save and restore this_command_key_count_reset
9227 around input method code.
9228 (read_char): If this_command_key_count_reset, echo reread commands.
9229 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
9231 2003-02-17 Kenichi Handa <handa@m17n.org>
9233 * fns.c (string_to_multibyte): Always return a multibyte string.
9235 2003-02-16 Jason Rumney <jasonr@gnu.org>
9237 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
9238 Negative max_fonts parameter means list all.
9240 2003-02-14 Dave Love <fx@gnu.org>
9242 * fns.c (Flanginfo): Doc fix.
9244 2003-02-13 Kim F. Storm <storm@cua.dk>
9246 * lread.c (read_escape): Interpret \s as a SPACE character, except
9247 for \s-X in a character constant which still is the super modifier.
9248 (read1): Signal an `invalid read syntax' error if a character
9249 constant is immediately followed by a digit or symbol character.
9251 * search.c (Fmatch_data): Doc fix. Explicitly state that
9252 match-data is undefined if last search failed.
9254 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
9257 2003-02-12 Juanma Barranquero <lektu@terra.es>
9259 * eval.c (Fdefmacro): Fix typo.
9261 2003-02-12 Kim F. Storm <storm@cua.dk>
9263 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
9264 macro is a string, convert meta modifiers in string when copying
9265 the string into a vector.
9267 2003-02-11 Kim F. Storm <storm@cua.dk>
9269 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
9271 2003-02-11 Kenichi Handa <handa@m17n.org>
9273 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
9275 2003-02-10 Kim F. Storm <storm@cua.dk>
9277 * process.c: Doc fixes.
9278 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
9280 2003-02-10 Kenichi Handa <handa@m17n.org>
9282 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
9284 * process.c (QCfilter_multibyte): New variable.
9285 (setup_process_coding_systems): New function.
9286 (Fset_process_buffer, Fset_process_filter):
9287 Call setup_process_coding_systems.
9288 (Fstart_process): Initialize the member `filter_multibyte' of
9289 struct Lisp_Process.
9290 (create_process): Call setup_process_coding_systems.
9291 (Fmake_network_process): New keyward `:filter-multibyte'.
9292 Initialize the member `filter_multibyte' of struct Lisp_Process.
9293 Call setup_process_coding_systems.
9294 (server_accept_connection): Call setup_process_coding_systems.
9295 (read_process_output): If the process has a filter, decide the
9296 multibyteness of a string to given to the filter by
9297 `filter_multibyte' member of the process. If the process doesn't
9298 have a filter and the result of conversion is unibyte, use
9299 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
9301 (Fset_process_coding_system): Call setup_process_coding_systems.
9302 (Fset_process_filter_multibyte): New function.
9303 (Fprocess_filter_multibyte_p): New function.
9304 (syms_of_process): Intern and staticpro QCfilter_multibyte.
9305 Defsubr Sset_process_filter_multibyte and
9306 Sprocess_filter_multibyte_p.
9308 * process.h (struct Lisp_Process): New member filter_multibyte.
9310 * lisp.h (setup_process_coding_systems): Add prototype.
9312 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
9313 process, update coding systems for the process.
9315 2003-02-09 Kenichi Handa <handa@m17n.org>
9317 * fns.c (string_to_multibyte): New function.
9318 (Fstring_to_multibyte): New function.
9319 (syms_of_fns): Defsubr it.
9321 2003-02-08 Andreas Schwab <schwab@suse.de>
9323 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
9324 instead of the substitution.
9326 2003-02-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9328 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
9330 * xmenu.c (menu_position_func): Adjust menu popup position so that
9331 the menu is fully visible.
9333 2003-02-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9335 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
9336 (x_make_frame_invisible, x_wm_set_icon_position):
9337 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
9339 * xfns.c (x_set_name, x_set_title): Ditto.
9341 2003-02-04 Richard M. Stallman <rms@gnu.org>
9343 * keyboard.c (echo_now): Update before_command_echo_length.
9344 (Freset_this_command_lengths): Reset this_command_key_count etc.
9345 immediately rather than arranging to do it later.
9346 (before_command_key_count_1, before_command_echo_length_1)
9347 (before_command_restore_flag): Vars deleted.
9348 (add_command_key): Don't handle before_command_restore_flag.
9349 (read_char, record_menu_key): Don't update before_command_key_count or
9350 before_command_echo_length.
9351 (read_char): Don't handle before_command_restore_flag.
9353 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
9354 in direct-output clauses if it wouldn't be called in the ordinary case.
9356 2003-02-04 Kim F. Storm <storm@cua.dk>
9358 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
9360 2003-02-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9362 * gtkutil.c (remove_from_container): Copying list is not needed.
9363 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
9364 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
9365 on list returned from gtk_container_get_children to avoid memory leak.
9367 2003-02-01 Jason Rumney <jasonr@gnu.org>
9369 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
9371 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
9372 definitions in xpm.h.
9373 (init_xpm_functions): New function.
9374 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
9375 (init_external_image_libraries): Try to load libXpm.dll.
9377 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
9380 2003-01-31 Dave Love <fx@gnu.org>
9382 * syntax.c (Fskip_chars_forward)
9383 (open-paren-in-column-0-is-defun-start): Doc fix.
9385 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
9387 * fileio.c: Support // at start of name for Cygwin (just added proper
9388 preprocessor tests).
9390 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
9392 * Makefile.in: Use @EXEEXT@ for Cygwin.
9394 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
9396 * s/cygwin.h: Added for Cygwin port.
9398 2003-01-31 Juanma Barranquero <lektu@terra.es>
9400 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
9401 when including gif_lib.h.
9402 (init_gif_functions, init_tiff_functions): New functions.
9403 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
9404 Windows. Disable color table lookups. Call library functions
9405 through pointers determined at runtime.
9406 (init_external_image_libraries): Try to load libungif.dll and
9409 2003-01-31 Kenichi Handa <handa@m17n.org>
9411 * xdisp.c (SKIP_GLYPHS): New macro.
9412 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
9414 2003-01-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9416 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
9418 2003-01-30 Dave Love <fx@gnu.org>
9420 * alloc.c (Vgc_elapsed, gcs_done): New variables.
9421 (Fgarbage_collect): Use them.
9422 (init_alloc, syms_of_alloc): Set them up.
9424 2003-01-30 Juanma Barranquero <lektu@terra.es>
9426 * w32fns.c (init_external_image_libraries): Add missing operator.
9428 2003-01-29 Jason Rumney <jasonr@gnu.org>
9430 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
9431 an alternative name for jpeg.dll.
9433 2003-01-29 Kenichi Handa <handa@m17n.org>
9435 * xdisp.c (set_cursor_from_row): Pay attention to string display
9438 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
9440 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
9442 (keycode_to_xkeysym_table): Reformat and add more comments.
9443 (XTread_socket): Drop special case for backspace.
9445 2003-01-28 Andrew Choi <akochoi@shaw.ca>
9447 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
9448 values in old-style RGB specs.
9450 2003-01-27 Juanma Barranquero <lektu@terra.es>
9452 * w32fns.c (init_external_image_libraries): Try alternate names for the
9455 2003-01-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9457 * gtkutil.c (create_dialog, xg_separator_p)
9458 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
9459 before calling strcmp or strlen.
9461 2003-01-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9463 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
9464 and handle image load failure.
9466 2003-01-26 Jason Rumney <jasonr@gnu.org>
9468 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
9470 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
9471 Disable color table lookups. Call jpeg library functions
9472 through pointers determined at runtime.
9473 (init_external_image_libraries): Try to load jpeg.dll.
9475 2003-01-25 Richard M. Stallman <rms@gnu.org>
9477 * lisp.h: Declare format2 instead of format1.
9479 * fileio.c (barf_or_query_if_file_exists):
9480 Call format2 instead of format1.
9482 * editfns.c (format2): New function, replaces format1
9483 but takes exactly two Lisp Objects as format args.
9485 * buffer.c (Fkill_buffer): Call format2 instead of format1.
9487 2003-01-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9489 * xterm.h: Change to return value of x_dispatch_event to int.
9491 * xterm.c (x_filter_event): New function.
9492 (event_handler_gdk, XTread_socket): Call x_filter_event.
9493 (x_dispatch_event): Change to return value of finish.
9494 (event_handler_gdk): Use return value from x_dispatch_event.
9496 * xfns.c (x_window): Call create_frame_xic for GTK version to
9497 initialize input methods.
9499 * gtkutil.h: Add (void) prototypes.
9501 * gtkutil.c (create_menus): Remove code that puts the help menu to
9504 2003-01-25 Jason Rumney <jasonr@gnu.org>
9506 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
9507 [HAVE_PNG]: Sync with xfns.c version.
9508 (png_load): Adjust colors for Windows. Use Windows
9509 bitmaps. Disable color table lookups.
9510 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
9511 (init_png_functions): New function.
9512 (png_read_from_memory, png_load): Call png library functions
9513 through pointers determined at runtime.
9514 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
9515 (init_external_image_libraries): New function.
9516 (init_xfns): Call it.
9518 2003-01-24 Andreas Schwab <schwab@suse.de>
9520 * minibuf.c (Fminibuffer_message): Verify type of parameter.
9522 2003-01-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9524 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
9525 of static initializer.
9527 2003-01-24 Dave Love <fx@gnu.org>
9529 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
9532 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
9535 2003-01-24 Kenichi Handa <handa@m17n.org>
9537 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
9538 It it is nonzero, don't pretend that an invisible area doesn't exist.
9539 (command_loop_1): Call adjust_point_for_property with proper
9542 2003-01-22 Jason Rumney <jasonr@gnu.org>
9544 Sync changes with xterm.c and xfns.c.
9546 * w32term.c (x_draw_glyph_string_foreground)
9547 (x_draw_composite_glyph_string_foreground): Implement overstriking.
9549 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
9550 phys_cursor's hpos is overwritten. This is still not completely
9551 correct, as it doesn't really make sense to use hpos at all to
9552 get the cursor glyph (as that is relative to the width of the
9553 characters on the line, which may have changed during the update).
9555 * w32term.c (notice_overwritten_cursor): Handle the special case
9556 of the cursor being in the first blank non-text line at the
9559 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
9560 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
9561 Compute from the x position returned by x_draw_glyphs.
9563 (x_display_and_set_cursor): Don't set phys_cursor_width here,
9564 except for NO_CURSOR and system caret, to make phys_cursor_width
9565 contain what its name suggests.
9566 (notice_overwritten_cursor): Consider the cursor image erased if
9567 the output area intersects the cursor image in y-direction.
9569 * w32term.c (note_mode_line_or_margin_highlight): Rename from
9570 note_mode_line_highlight and extend.
9572 * w32term.c (last_window): New variable.
9573 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
9574 (note_mouse_movement): Remove reimplemented code in #if 0.
9576 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
9577 not update_mode_lines, and always set it to 1.
9579 2003-01-21 Jason Rumney <jasonr@gnu.org>
9581 * w32fns.c (IDC_HAND): Define it if system headers don't.
9583 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
9585 * w32term.h (struct w32_output): New member hand_cursor.
9586 (WM_EMACS_SETCURSOR): New message definition.
9588 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
9589 function w32_define_cursor.
9590 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
9591 position, change member name output_data.x to output_data.w32 and
9592 add function w32_define_cursor.
9593 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
9594 and change member name output_data.x to output_data.w32.
9595 (w32_initialize_display_info):
9596 Setup dpyinfo->vertical_scroll_bar_cursor.
9598 * w32fns.c (Vx_hand_shape): New variable.
9599 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
9601 (x-create-frame): Setup Cursor types.
9603 2003-01-21 David Ponce <david@dponce.com>
9605 * w32term.c (w32_encode_char): For DIM=1 charset, set
9606 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
9607 x_encode_char change by Kenichi Handa <handa@m17n.org> on
9609 (w32_draw_relief_rect): Declare all args.
9610 (w32_define_cursor): New.
9612 * w32fns.c (w32_load_cursor): New function.
9613 (w32_init_class): Use it.
9614 (x_put_x_image): Declare all args.
9616 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
9618 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
9620 2003-01-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9622 * gtkutil.c: Must include stdio.h before termhooks.h
9624 2003-01-21 Dave Love <fx@gnu.org>
9626 * alloc.c (Fgc_status): Print zombie list.
9627 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
9628 Fix assignment of zombies.
9629 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
9630 Don't take car of non-cons.
9632 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9634 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9636 2003-01-20 David Ponce <david@dponce.com>
9638 * w32menu.c (digest_single_submenu): Declare all args.
9640 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
9643 (parse_single_submenu): Use individual keymap's prompt
9644 string as pane name, if there is one.
9645 (set_frame_menubar): Save menu_items_n_panes from each call to
9646 parse_single_submenu and use it when calling digest_single_submenu.
9648 2003-01-20 Steven Tamm <steventamm@mac.com>
9650 * macterm.c (XTread_socket): Checks for valid, visible window
9651 before sending a scroll-wheel event.
9653 2003-01-20 Richard M. Stallman <rms@gnu.org>
9655 * xdisp.c (redisplay_window): If mini window's buffer is not
9656 a minibuffer, then redisplay it like other windows.
9658 2003-01-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9660 * gtkutil.c (xg_create_frame_widgets): Check if there is an
9661 external tool bar before setting tool bar height.
9663 2003-01-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9665 * xterm.c (handle_one_xevent): Surround popup_activated
9666 with #ifdef:s for non-toolkit version.
9668 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
9669 (gtkutil.o): New file.
9670 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
9671 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
9673 * gtkutil.c: New file for GTK version.
9675 * gtkutil.h: New file for GTK version.
9677 * xterm.h: Add xt_or_gtk_widget.
9678 Include gtk files for USE_GTK.
9679 (struct x_output): Add toolbar_height.
9680 (struct x_output): Add GTK widgets and Gdk size_hints.
9681 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
9682 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
9683 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
9685 * xterm.c: Include gtkutil.h for USE_GTK.
9686 (free_frame_menubar): Declare extern void for USE_GTK.
9687 (note_mouse_highlight): Check popup_activated for USE_GTK.
9688 (xt_action_hook): Don't compile if USE_GTK.
9689 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
9690 (xg_scroll_callback): New function.
9691 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
9692 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
9694 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
9695 xg_show_scroll_bar for USE_GTK.
9696 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
9697 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
9698 (event_handler_gdk): New function for USE_GTK.
9699 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
9700 (handle_one_xevent): Make sure widget is mapped before
9701 calling x_real_positions for USE_GTK.
9702 (XTread_socket): Add GTK event loop for USE_GTK.
9703 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
9704 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
9705 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
9706 (x_iconify_frame): Add code for USE_GTK.
9707 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
9708 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
9710 (x_term_init): Add initialization for GTK.
9711 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
9713 * xmenu.c: Include gtkutil.h for USE_GTK.
9714 (Fx_popup_menu): Use current position if x and y is NIL.
9715 (single_menu_item, single_menu_item, Fx_popup_dialog):
9717 (popup_widget_loop): New function for USE_GTK.
9718 (x_activate_menubar): Add code for USE_GTK.
9719 (popup_activate_callback, popup_deactivate_callback)
9720 (menu_highlight_callback, menubar_selection_callback):
9721 Add USE_GTK versions.
9722 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
9723 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
9724 (free_frame_menubar): Only compile if not USE_GTK. GTK version
9726 (popup_selection_callback): New version for USE_GTK.
9727 (create_and_show_popup_menu): New fuction, one USE_GTK version and
9728 one USE_X_TOOLKIT version.
9729 (xmenu_show): Call create_and_show_popup_menu.
9730 (dialog_selection_callback): New version for USE_GTK.
9731 (create_and_show_dialog): New fuction, one USE_GTK version and
9732 one USE_X_TOOLKIT version.
9733 (xdialog_show): Call create_and_show_dialog.
9735 * xfns.c: Include gtkutil for USE_GTK.
9736 (x_window_to_frame, x_any_window_to_frame)
9737 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
9738 (x_top_window_to_frame): Add code for USE_GTK.
9739 (x_set_background_color): Call xg_set_background_color for GTK.
9740 (x_set_menu_bar_lines): Check for USE_GTK.
9741 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
9742 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
9743 (x_window): Call xg_create_frame_widgets for USE_GTK.
9744 (Fx_create_frame): Check for USE_GTK
9745 (Fx_file_dialog): New implementation for USE_GTK.
9747 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
9748 (update_menu_bar): Add check for USE_GTK.
9749 (update_tool_bar): Add check for USE_GTK and external tool bar.
9750 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
9751 (redisplay_internal): Add check for USE_GTK and popup_activated.
9752 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
9753 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
9754 (display_menu_bar): Add check for USE_GTK
9756 * lisp.h (Vx_resource_name): Declare extern.
9758 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
9760 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
9762 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
9763 (FRAME_EXTERNAL_TOOL_BAR): New macro.
9764 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
9766 * fileio.c (Fread_file_name): Add check for USE_GTK.
9768 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
9769 Add check for USE_GTK.
9771 * config.in: Added HAVE_GTK
9773 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
9775 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
9777 * charset.h (Funibyte_char_to_multibyte): Export.
9779 2003-01-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9781 * xmenu.c (mouse_position_for_popup): New function.
9782 (Fx_popup_menu): Call mouse_position_for_popup for X and
9783 mouse_position_hook for others.
9785 2003-01-17 Kim F. Storm <storm@cua.dk>
9787 * editfns.c (Finsert): Mention `string-make-multibyte' and
9788 `string-as-multibyte' in doc string.
9790 2003-01-17 Kenichi Handa <handa@m17n.org>
9792 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
9794 * editfns.c (Fformat): Convert an unibyte char argument that is
9795 formatted by "%c" to multibyte if the total result must be a
9798 2003-01-16 Kim F. Storm <storm@cua.dk>
9800 * process.c (set-process-filter): Document unibyte/multibyte-ness
9803 2003-01-16 Kenichi Handa <handa@m17n.org>
9805 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
9807 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
9808 (re_search_2): Likewise.
9810 2003-01-15 Kenichi Handa <handa@m17n.org>
9812 * xdisp.c (message_dolog): Fix bug of the case that *Message*
9815 2003-01-15 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
9817 * fns.c (Fsubstring): Clarify doc string.
9819 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
9820 (Fprevious_char_property_change)
9821 (Fnext_single_char_property_change)
9822 (Fprevious_single_char_property_change, Fnext_property_change)
9823 (Fnext_single_property_change, Fprevious_property_change)
9824 (Fprevious_single_property_change, Fadd_text_properties)
9825 (Fput_text_property, Fset_text_properties)
9826 (Fremove_text_properties, Fremove_list_of_text_properties)
9827 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
9829 2003-01-14 Kim F. Storm <storm@cua.dk>
9831 * process.h (struct Lisp_Process): New member plist replaces old
9832 member private_vars. All uses changed.
9834 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
9835 (QCplist): Rename from QCvars. Change all uses.
9836 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
9837 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
9838 (syms_of_process): Intern, staticpro, defsubr these.
9839 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
9841 2003-01-14 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
9843 * m/delta.h: Remove (obsolete).
9845 2003-01-13 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
9847 * fileio.c (Fdelete_directory, Fdelete_file): Document the
9848 behaviour in front of symlinks.
9849 (Fdelete_file): Raise an error on directories.
9851 2003-01-13 Dave Love <fx@gnu.org>
9853 * fns.c (Freverse): Use QUIT.
9855 2003-01-13 Richard M. Stallman <rms@gnu.org>
9857 * minibuf.c (minibuffer_completion_contents):
9858 Error if point is inside prompt.
9860 * keyboard.c (command_loop_1): Don't redisplay directly
9861 if there's a post-command-hook.
9863 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
9864 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
9866 2003-01-12 Kim F. Storm <storm@cua.dk>
9868 * process.h (struct Lisp_Process): New member private_vars.
9870 * process.c (QCvars): New variable.
9871 (syms_of_process): Intern and staticpro it.
9872 (Fset_process_contact): Removed function.
9873 (Fprocess_variable, Fset_process_variable): New functions.
9874 (syms_of_process): Defsubr them.
9875 (Fstart_process): Initialize private_vars plist to nil.
9876 (Fmake_network_process): New arg :vars to setup the private
9877 variables for new network process.
9878 (server_accept_connection): Copy server's private variables to
9881 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
9882 crashes). Code rewritten and simplified. Now directly aligns the
9883 pointer and recalculates pure_bytes_used, rather than aligning the
9884 size and adjusting the pointer.
9886 2003-01-11 Kim F. Storm <storm@cua.dk>
9888 * process.c (Fset_process_contact): New function.
9889 (syms_of_process): defsubr it.
9890 (make-network-process): Update doc.
9892 2003-01-10 Andreas Schwab <schwab@suse.de>
9894 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
9895 Reported by Berthold Gunreben <b.gunreben@web.de>.
9897 2003-01-10 Dave Love <fx@gnu.org>
9899 * composite.c (syms_of_composite): Make composition_hash_table weak.
9901 2003-01-09 Kim F. Storm <storm@cua.dk>
9903 * process.c (Fmake_network_process): Convert new port number
9904 to host byte order for `:service t' case. From Mario Lang.
9906 2003-01-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9908 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
9909 instead of XtAppProcessEvent.
9911 * xterm.c (handle_one_xevent): New function.
9912 (x_dispatch_event): New function.
9913 (XTread_socket): Call handle_one_xevent.
9915 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
9917 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
9918 call XQueryPointer to get coordinates.
9919 (popup_get_selection): Do not set popup_activated_flag to zero,
9920 let popup_deactivate_callback do that. Needed for Motif.
9921 Call x_dispatch_event instead of XtDispatchEvent.
9922 (xmenu_show): Calculate root coordinate from frame top/left position.
9924 2003-01-08 Kim F. Storm <storm@cua.dk>
9926 * process.c (server_accept_connection): Fix recording of new
9927 connection's local address in :local property of contact info.
9928 (Fmake_network_process): Record local network address for new
9929 client processes in :local property of contact info.
9930 (format-network-address): Add arg OMIT-PORT. Change callers.
9932 2003-01-07 Dave Love <fx@gnu.org>
9934 * Makefile.in (fns.o): Depend on coding.h.
9936 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
9938 * minibuf.c (Fread_variable): Doc fix.
9940 * eval.c (Fuser_variable_p): Doc change. For custom variables,
9941 use the same test as for custom-variable-p.
9943 2003-01-05 Richard M. Stallman <rms@gnu.org>
9945 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
9946 Count LAST_LINE_MISFIT in scroll margin for end of window.
9947 Move label too_near_end before setting SCROLL_MARGIN_POS.
9948 Set LAST_LINE_MISFIT before jumping there.
9950 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
9951 scroll_conservatively case. If scrolling that much doesn't change
9952 STARTP, move it down one line.
9954 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
9955 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
9957 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
9960 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
9961 (syms_of_keymap): staticpro them.
9962 (Fapropos_internal): Initialize them and clear them out.
9965 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
9968 * lisp.h: New misc type Lisp_Save_Value.
9969 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
9970 (XSAVE_VALUE): New macro.
9971 (struct Lisp_Save_Value): New data type.
9972 (union Lisp_Misc): Add u_save_value alternative.
9973 (make_save_value): Declare.
9975 * alloc.c (make_save_value): New function.
9977 * xterm.c (x_catch_errors): Save dpy using make_save_value.
9978 (x_catch_errors_unwind): Call XSync.
9980 2003-01-01 Richard M. Stallman <rms@gnu.org>
9982 * window.c (window_scroll_pixel_based): Partially undo last change.
9984 * keyboard.c (command_loop_1): Call adjust_point_for_property
9985 in direct action cases for Qforward_char and Qbackward_char.
9986 Set already_adjusted so it won't be done twice.
9988 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
9990 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
9991 type definition of size_t.
9993 2003-01-02 Steven Tamm <steventamm@mac.com>
9995 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
9996 distinguish Carbon GUI builds from X11 builds on darwin.
9998 2002-12-30 Steven Tamm <steventamm@mac.com>
10000 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
10003 2002-12-29 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
10005 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
10007 2002-12-28 Steven Tamm <steventamm@mac.com>
10009 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
10010 allow building in a different directory than source. Uses some
10011 GNU Make extensions, but there is no other make on Mac OS X.
10013 2002-12-26 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
10015 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
10016 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
10017 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
10018 (Fstring_to_number): Mention the returned value in the doc strings.
10020 2002-12-23 Richard M. Stallman <rms@gnu.org>
10022 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
10023 <scroll-down-aggressively>: Doc fix.
10025 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
10026 string as pane name, if there is one.
10027 (set_frame_menubar): Save menu_items_n_panes from each call to
10028 parse_single_submenu and use it when calling digest_single_submenu.
10030 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
10031 Don't try to make last line fully visible if it is past end of window.
10033 2002-12-22 Steven Tamm <steventamm@mac.com>
10035 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
10036 (mac_menu_show): Add support for hierarchical popup menus.
10037 (add_menu_item): Remove indentation support.
10038 (fill_submenu, fill_menu): Create hierarchical menus
10039 instead of using indentation.
10041 2002-12-22 Richard M. Stallman <rms@gnu.org>
10043 * xdisp.c (try_cursor_movement): Don't call try_window here.
10044 (redisplay_window): Never redisplay minibuffer when inactive.
10046 * window.c (select_window_1): Undo 9/21 change.
10048 2002-12-22 Steven Tamm <steventamm@mac.com>
10050 * macterm.c (XTread_socket): Call KeyTranslate for control and
10051 meta to deal correctly shifted non-alpha characters, like C-S-5
10052 being treated like C-%. Does not look for shift key to deal
10053 with masking off control-key with mac-reverse-ctrl-meta.
10055 2002-12-21 Richard M. Stallman <rms@gnu.org>
10057 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
10058 If it is non-nil, run timers. Use an unwind-protect to requeue
10059 the events that were read ahead.
10060 (popup_get_selection_unwind): New subroutine.
10061 (popup_get_selection_queue): File-scope variable now holds that queue.
10062 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
10063 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
10064 Use an unwind-protect to pop down the dialog box.
10065 (xdialog_show_unwind): New subroutine implements that.
10067 * xdisp.c (row_containing_pos): Change exit test using last_y.
10068 (try_window_id): Abort if row_containing_pos returns null.
10070 * lread.c (load_error_handler): New function.
10071 (Fload): Handle errors in Fsubstitute_in_file_name.
10072 Don't expect Fsignal to return.
10074 * eval.c: Errors and throws work right with interrupt blocking.
10075 (struct catchtag): New elt interrupt_input_blocked.
10076 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
10077 (internal_catch, Fcondition_case, internal_condition_case)
10078 (internal_condition_case_1, internal_condition_case_2): Save it.
10079 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
10081 * editfns.c (Fformat): Add parens.
10083 * dired.c (file_name_completion): Fix that change.
10084 Delete special quit-handling code; just use QUIT.
10086 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
10088 * dired.c (file_name_completion): Close directory on error
10089 just as in directory_files_internal.
10091 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
10093 * window.c (Fset_window_configuration): Set old_point to correct
10094 value when new_current_buffer == current_buffer.
10096 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
10098 Revisited my earlier fix for the following entry in etc/PROBLEMS:
10099 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
10100 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
10102 These changes were in part based upon suggestions made by Peter
10103 'Luna' Runestig [peter@runestig.com].
10105 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
10106 g_b_init_get_token_information, g_b_init_lookup_account_sid,
10107 g_b_init_get_sid_identifier_authority ): Add several static
10110 * w32.c (globals_of_w32): New function. Used to initialize those
10111 global variables that must always be initialized on startup even
10112 when the global variable initialized is non zero. Its primary
10113 purpose at this time is to set the global variables
10114 g_b_init_is_windows_9x, g_b_init_open_process_token,
10115 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
10116 g_b_init_get_sid_identifier_authority to 0 on startup.
10119 * w32.c (is_windows_9x): Perform initialization only if
10120 g_b_init_is_windows_9x is equal to 0. On initialization set
10121 g_b_init_is_windows_9x equal to 1.
10123 * w32.c (open_process_token): Perform initialization only if
10124 g_b_init_open_process_token is equal to 0. On initialization set
10125 g_b_init_open_process_token equal to 1.
10127 * w32.c (get_token_information): Perform initialization only if
10128 g_b_init_get_token_information is equal to 0. On initialization
10129 set g_b_init_get_token_information equal to 1.
10131 * w32.c (lookup_account_sid): Perform initialization only if
10132 g_b_init_lookup_account_sid is equal to 0. On initialization
10133 set g_b_init_lookup_account_sid equal to 1.
10135 * w32.c (get_sid_identifier_authority): Perform initialization
10136 only if g_b_init_get_sid_identifier_authority is equal to 0.
10137 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
10139 * w32fns.c (globals_of_w32fns): New function. Used to initialize
10140 those global variables that must always be initialized on startup
10141 even when the global variable initialized is non zero.
10142 Its primary purpose at this time is to initialize the global variable
10143 track_mouse_event_fn.
10145 * w32fns.c (w32_wnd_proc): Remove initialization of
10146 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
10148 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
10150 * w32menu.c (globals_of_w32menu): New function. Used to
10151 initialize those global variables that must always be initialized
10152 on startup even when the global variable initialized is non zero.
10153 Its primary purpose at this time is to initialize the global
10154 variables get_menu_item_info and set_menu_item_info.
10156 * w32menu.c (initialize_frame_menubar): Remove initialization of
10157 get_menu_item_info and set_menu_item_info.
10159 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
10161 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
10164 * emacs.c (main): Call globals_of_w32 prior to calling
10165 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
10166 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
10169 * w32term.c (x_update_window_begin): Fix Windows API error
10170 detected by BoundsChecker. Test to determine if
10171 w32_system_caret_hwnd is NULL prior to attempting to use
10172 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
10174 * w32term.c (x_update_window_end): Fix Windows API error
10175 detected by BoundsChecker. Test to determine if
10176 w32_system_caret_hwnd is NULL prior to attempting to use
10177 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
10179 2002-12-17 Kenichi Handa <handa@m17n.org>
10181 * coding.c (coding_system_require_warning): New variable.
10182 (syms_of_coding): DEFVAR it.
10184 * coding.h (coding_system_require_warning): Extern it.
10186 * fileio.c (choose_write_coding_system): Even if
10187 Vcoding_system_for_write is non-nil, if
10188 coding_system_require_warning is nonzero, call
10189 Vselect_safe_coding_system_function.
10191 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
10193 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
10194 (lisp): Add font-core.
10196 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
10198 * textprop.c (text_read_only): New arg `propval'.
10199 (get_char_property_and_overlay): Remove unused var `next_overlay'.
10200 (verify_interval_modification): Use text_read_only's new arg.
10202 2002-12-13 Kenichi Handa <handa@m17n.org>
10204 * coding.c (Funencodable_char_position): Set pend correctly.
10206 2002-12-12 Jason Rumney <jasonr@gnu.org>
10208 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
10209 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
10210 Be more careful about when help_events are generated.
10212 2002-12-12 Steven Tamm <steventamm@mac.com>
10214 * macterm.c (mac_check_for_quit_char): Correctly set the
10215 modifiers of the event to 0.
10216 * mac.c (sys_select): Duplicate rfds before calling select to
10217 ensure that rfds survive the while loop.
10219 2002-12-11 Kim F. Storm <storm@cua.dk>
10221 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
10222 row_containing_pos returned NULL.
10224 2002-12-10 Steven Tamm <steventamm@mac.com>
10226 * mac.c (sys_read): Fix sys_read to not call select if IO is
10228 (sys_select): Fix sys_select to not use a timeout larger than
10231 2002-12-10 Juanma Barranquero <lektu@terra.es>
10233 * editfns.c (Fformat): Use alloca, not _alloca.
10235 2002-12-09 Richard M. Stallman <rms@gnu.org>
10237 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
10240 2002-12-09 Dave Love <fx@gnu.org>
10242 * s/sol2-8.h: Removed. (Not necessary.)
10244 2002-12-09 Matthew Swift <swift@alum.mit.edu>
10246 * editfns.c (Fformat): Handle precision in string conversion
10247 specifiers like libc functions do (ie, print at most that many
10250 2002-12-08 Richard M. Stallman <rms@gnu.org>
10252 * xdisp.c (row_containing_pos): Check more carefully
10253 whether charpos is really in the row before returning it.
10255 2002-12-07 Steven Tamm <steventamm@mac.com>
10257 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
10259 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
10260 each stack frame. This may change as it could be time consuming.
10262 * macterm.c (mac_check_for_quit_char, quit_char_comp)
10263 (init_quit_char_handler, mac_determine_quit_char_modifiers)
10264 (mac_initialize): Add code to check for pressing of quit_char
10265 in the OS event queue.
10267 * mac.c (sys_select): Call mac_check_for_quit_char every second
10268 while blocking on select.
10270 * mac.c (sys_read): Use sys_select to test for input first
10271 before calling read, to allow C-g to break.
10273 2002-12-07 Richard M. Stallman <rms@gnu.org>
10275 * minibuf.c (Fcompleting_read): Doc fix.
10277 * lread.c (syms_of_lread) <load-history>: Doc fix.
10279 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
10281 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
10284 * data.c (Fdefalias): Record in load-history redefining an autoload.
10286 * alloca.c: Undo ifdef change accidentally made on 12-04.
10288 2002-12-06 Francesco Potorti` <pot@gnu.org>
10290 * xfns.c (png_load): Avoid double gamma correction for PNG images.
10292 2002-12-04 Richard M. Stallman <rms@gnu.org>
10294 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
10296 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
10298 * alloca.c: Don't use #error.
10300 2002-12-03 Dave Love <fx@gnu.org>
10302 * buffer.c (Qucs_set_table_for_input): New.
10303 (Fget_buffer_create): Use it.
10304 (Qset_buffer_major_mode_hook): Deleted.
10305 (Fset_buffer_major_mode): Revert previous change.
10306 (init_buffer_once): Intern ucs-set-table-for-input.
10307 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
10308 Add &Qucs_set_table_for_input.
10310 2002-12-03 Andreas Schwab <schwab@suse.de>
10312 * callint.c (Fcall_interactively): Use next_event only if less
10315 2002-12-02 Andrew Choi <akochoi@shaw.ca>
10317 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
10318 names to 255 characters.
10320 * macterm.c (XTread_socket): If all frames have been collapsed,
10321 expand the first one before handling drag-and-drop events.
10323 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
10324 which is detected by autoconf.
10326 2002-12-01 Steven Tamm <steventamm@mac.com>
10328 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
10329 offset in two hints table to allow prebinding to be redone and
10330 allow the executable to be stripped.
10332 2002-11-29 Dave Love <fx@gnu.org>
10334 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
10337 2002-11-29 Richard M. Stallman <rms@gnu.org>
10339 * xdisp.c (start_display): Check more intelligently for
10340 whether the line is continued.
10341 (move_it_vertically_backward): Clear it->continuation_lines_width.
10343 2002-11-28 Dave Love <fx@gnu.org>
10345 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
10346 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
10348 2002-11-27 Steven Tamm <steventamm@mac.com>
10350 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
10351 more descriptive error output from lread.c:Fload upon most require
10352 cycles during boostrapping.
10354 2002-11-27 Jason Rumney <jasonr@gnu.org>
10356 * fileio.c (Finsert_file_contents): Give a more appropriate error
10357 for files bigger than 2Gb when off_t is 32 bit.
10359 * dired.c (Ffile_attributes): Don't return negative file sizes for
10360 files bigger than 2Gb when off_t is 32 bit.
10362 2002-11-27 Dave Love <fx@gnu.org>
10364 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
10366 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
10367 Test GETPGRP_VOID instead.
10368 [BSD_TERMIOS]: Remove definitions (never used).
10370 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
10372 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
10374 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
10376 2002-11-25 Jason Rumney <jasonr@gnu.org>
10378 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
10381 2002-11-25 Dave Love <fx@gnu.org>
10383 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
10385 * Makefile.in (TEMACS_LDFLAGS): Update last change.
10387 2002-11-25 Andreas Schwab <schwab@suse.de>
10389 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
10391 2002-11-24 Steven Tamm <steventamm@mac.com>
10393 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
10394 determine the size of pointers alloced in unexed space instead
10395 of using possibly invalid emacs_zone pointers. This fixes the
10396 binary incompatibility problems caused by updates to libSystem.B.
10398 2002-11-24 Richard M. Stallman <rms@gnu.org>
10400 * search.c (Fstring_match): Doc fix.
10402 * callint.c (Fcall_interactively): If a command fails because
10403 `*' detects a read-only buffer, but RECORD_FLAG is set,
10404 record it anyway if the args don't actually do tty input.
10406 2002-11-22 Dave Love <fx@gnu.org>
10408 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
10410 * keyboard.c (interrupt_signal): Provide forward declaration.
10411 (kbd_buffer_store_event): Don't declare interrupt_signal.
10413 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
10415 2002-11-21 Richard M. Stallman <rms@gnu.org>
10417 * eval.c (interactive_p): Skip any number of bytecode
10418 and special form frames, in any order.
10420 2002-11-20 Jason Rumney <jasonr@gnu.org>
10422 * w32fns.c (convert_mono_to_color_image): New function.
10423 (xbm_load, xbm_load_image): Use it when foreground or background
10426 2002-11-19 Dave Love <fx@gnu.org>
10428 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
10430 2002-11-18 Jason Rumney <jasonr@gnu.org>
10432 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
10433 (XPutPixel): Swap blue and red.
10434 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
10435 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
10436 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
10437 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
10439 2002-11-18 Dave Love <fx@gnu.org>
10441 * m/orion105.h (HAVE_ALLOCA): Don't define.
10443 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
10445 * m/intel386.h: Don't include alloca.h or define alloca.
10447 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
10448 malloc, realloc, calloc.
10450 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
10451 (bcmp): Don't define.
10453 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
10455 * m/amdahl.h: Don't define LIB_STANDARD.
10457 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
10459 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
10461 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
10462 Don't include alloca.h.
10464 * s/aix3-2.h (HAVE_FSYNC): Don't define.
10466 * regex.c (_GNU_SOURCE): Don't define.
10468 * process.c (_GNU_SOURCE): Don't define.
10470 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
10472 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
10474 * s/sol2-8.h: Include sol2-6.h.
10476 2002-11-18 Miles Bader <miles@gnu.org>
10478 * dispextern.h (struct face): Add `overstrike' field.
10479 * xterm.c (x_draw_glyph_string_foreground)
10480 (x_draw_composite_glyph_string_foreground): Implement overstriking.
10481 * xfaces.c (load_face_font): Set `face->overstrike' based on
10482 result from choose_face_font.
10483 (best_matching_font, choose_face_font): Add `needs_overstrike'
10484 argument, and use it to return whether overstriking is desirable
10485 for this face/font combo.
10486 (set_font_frame_param: Pass new argument to choose_face_font.
10488 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
10490 This change is my fix for the following entry in etc/PROBLEMS:
10491 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
10492 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
10494 * w32.c: Added wrapper functions around the win32 API functions
10495 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
10496 GetSidIdentifierAuthority. These wrapper functions serve two
10498 1. They ensure that the wrapped function can never be called
10499 when Emacs is running on an operating system on which they are
10500 not supported (Microsoft Windows 95 / 98 / ME).
10501 2. They call the wrapped functions via function pointers rather
10502 than calling them directly. This avoids taking advantage of the
10503 undocumented fact that although these functions are not supported
10504 in the 9x branch of Microsoft Windows, the functions do exist in
10505 the version of advapi32.dll that is found in the 9x branch of
10508 * w32.c (init_user_info): Replace the calls to the win32 API
10509 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
10510 and GetSidIdentifierAuthority with calls to the newly added
10513 * w32.h: Added extern declarations for the following functions:
10514 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
10515 syms_of_w32menu, and void syms_of_fontset.
10517 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
10518 function pointer track_mouse_event_fn in the handler for the
10519 WM_SETFOCUS message.
10521 * w32menu.c (initialize_frame_menubar): Add code to
10522 reinitialize the function pointers set_menu_item_info and
10523 get_menu_item_info.
10525 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
10527 * sound.c: Added a partial implementation of play-sound-internal
10528 for Microsoft Windows. Added various #ifdef / #else / #endif
10529 code blocks to separate the code that will compile under
10530 Microsoft Windows from the code that is specific to Gnu/Linux.
10531 Moved several blocks of code around to make this separation of code
10532 into Windows compatible and Gnu/Linux compatible code blocks easier.
10534 * makefile.w32-in: Include sound.c and link with WinMM.lib.
10536 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
10537 added support for play-sound-internal under Windows would be
10538 included in the build of Emacs.
10540 2002-11-16 Jason Rumney <jasonr@gnu.org>
10542 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
10544 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
10546 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
10548 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
10549 (adjust_point_for_property): Move out of display and invisible even if
10550 we were already inside before (in case a property was added while
10551 we weren't looking). Be more careful when handling invisible props.
10552 Skip invisible text as if it really wasn't there at all.
10554 2002-11-15 Jason Rumney <jasonr@gnu.org>
10556 * w32term.c (x_draw_image_foreground)
10557 (w32_draw_image_foreground_1): Use standard copy and invert
10558 operations to draw images.
10560 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
10562 (xbm_read_bitmap_data): Invert bits as xbm is read in.
10563 (XPutPixel): Don't invert bits here.
10565 2002-11-15 Jason Rumney <jasonr@gnu.org>
10567 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
10568 (w32_draw_image_foreground_1): Handle image masks.
10569 (x_draw_image_glyph_string): Don't BitBlt transparently.
10571 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
10572 (x_from_xcolors): Adjust RGB values for W32.
10573 (image_background, image_background_transparent)
10574 (postprocess_image, x_to_xcolors, x_disable_image)
10575 (x_build_heuristic_mask): Adapt for W32 and enable.
10576 (x_create_x_image_and_pixmap): Mark images with palettes as such.
10577 (xbm_load): Remove unused variable.
10579 2002-11-14 Richard M. Stallman <rms@gnu.org>
10581 * buffer.c (syms_of_buffer): Doc fix.
10583 2002-11-14 Dave Love <fx@gnu.org>
10585 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
10587 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
10588 * xmenu.c (unuse_menu_items, digest_single_submenu):
10589 * xfns.c (x_put_x_image):
10590 * xdisp.c (message2_nolog, set_message):
10591 * undo.c (record_point):
10592 * terminfo.c (tparam):
10593 * syntax.c (scan_sexps_forward):
10594 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
10595 * composite.c (update_compositions):
10596 * cm.c (calccost, cmgoto):
10597 * charset.c (c_string_width): Declare all args (per C99).
10599 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
10601 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
10604 * emacs.c (main) [!VMS]: Avoid third arg.
10606 * fns.c (Fcopy_sequence): Doc fix.
10607 (Fmap_char_table): Cast `call2'.
10609 2002-11-14 Francesco Potorti` <pot@gnu.org>
10611 * s/sol2-8.h: New file.
10613 2002-11-14 Kim F. Storm <storm@cua.dk>
10615 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
10616 dependency on `risky-local-variable' and the :propertize form.
10618 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
10620 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
10622 * syntax.c (scan_sexps_forward): Undo last patch.
10623 Use a more obvious fix: check eob before updating the syntax table.
10625 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
10627 * syntax.c (scan_sexps_forward): Update syntax table before reading
10628 a char rather than after so we don't update the table past eob.
10630 2002-11-09 Dave Love <fx@gnu.org>
10632 * buffer.c (Fset_buffer_major_mode): Fix last change.
10634 * regex.c (regexec): Fix pmatch declaration.
10636 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
10638 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
10639 to self-inserting characters.
10640 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
10642 * coding.c (Vtranslation_table_for_input): New.
10643 (syms_of_coding): DEFVAR it.
10645 2002-11-08 Juanma Barranquero <lektu@terra.es>
10647 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
10650 2002-11-08 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
10652 * process.c (Fformat_network_address): Remove unused locals p,
10655 2002-11-06 Dave Love <fx@gnu.org>
10657 * buffer.c (Qset_buffer_major_mode_hook): New.
10658 (Fset_buffer_major_mode): Use it.
10660 2002-11-06 Richard M. Stallman <rms@gnu.org>
10662 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
10665 * process.c (wait_reading_process_input):
10666 Test POLLING_PROBLEM_IN_SELECT, not hpux.
10667 Avoid initialization for auto Lisp_Object var.
10669 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
10671 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
10673 2002-11-05 Richard M. Stallman <rms@gnu.org>
10675 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
10677 * callint.c (Fcall_interactively): New local filter_specs.
10678 (Fcall_interactively): Check for progn as well as let.
10680 (Qprogn): New variable.
10681 (syms_of_callint): Staticpro and init Qprogn.
10683 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
10685 * lread.c (Feval_buffer): Doc fix.
10687 2002-11-04 Dave Love <fx@gnu.org>
10689 * keyboard.c (read_char): Always translate iff
10690 Vkeyboard_translate_table is a char table and c is valid.
10692 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
10695 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
10697 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
10699 * editfns.c (get_pos_property): Don't hardcode Qfield.
10701 * keyboard.c (adjust_point_for_property): Handle `display' prop on
10702 overlays. Also handle `invisible' prop.
10704 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
10706 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
10707 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
10709 2002-11-01 Andreas Schwab <schwab@suse.de>
10711 * editfns.c (Fmessage): Revert last change to properly handle %%.
10713 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
10715 * xmenu.c (unuse_menu_items): New fun.
10716 (menu_items_inuse): New var.
10717 (syms_of_xmenu): Initialize it.
10718 (init_menu_items): Use it to detect re-entrance.
10719 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
10720 (Fx_popup_menu): Remove spurious XSETFRAME.
10722 * editfns.c (find_field): Make an exception for nil fields.
10724 2002-11-01 Dave Love <fx@gnu.org>
10726 * m/gec63.h: Deleted.
10728 2002-10-31 Dave Love <fx@gnu.org>
10730 * xterm.c (XTread_socket): Fix last change.
10731 (xaw_scroll_callback): Cast call_data to long to avoid warning.
10733 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
10735 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
10737 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
10739 * editfns.c (overlays_around, get_pos_property): New funs.
10740 (find_field): Use them.
10741 Also be careful not to modify POS before its last use.
10742 (Fmessage): Don't Fformat if there's nothing to format.
10744 2002-10-30 Dave Love <fx@gnu.org>
10746 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
10747 [HAVE_PTY_H]; Include pty.h.
10749 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
10751 * xterm.c (Qeql): Declare.
10752 (Vx_keysym_table): New.
10753 (syms_of_xterm): Initialize it.
10754 (XTread_socket): Use it. Deal with ASCII keysyms.
10755 (XSetIMValues) [HAVE_X11R6]: Prototype.
10757 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
10758 (lispy_kana_keys): Comment out.
10759 (make_lispy_event) [XK_kana_A]: Comment out.
10760 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
10763 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
10765 (TERMINFO, LIBS_TERMCAP): Define.
10767 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
10768 (bcmp): Define conditional on HAVE_BCMP.
10769 (NO_SIOCTL_H): Don't define.
10770 (TIOCSIGSEND): Don't make conditional on IRIX6.
10772 * s/sol2-5.h: Don't include strings.h.
10773 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
10775 * s/irix6-0.h (IRIX6): Don't define.
10776 (bcopy, bcmp, bzero): Don't undef.
10778 * s/irix6-5.h: Don't include strings.h.
10779 (IRIX6): Don't define.
10780 (bcopy, bcmp, bzero): Don't undef.
10782 * syntax.c (Fforward_comment): Doc fix.
10784 2002-10-29 Kim F. Storm <storm@cua.dk>
10786 * process.c (Fsignal_process): Allow PROCESS to be specified by
10787 name in addition to pid (as integer or string).
10789 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
10791 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
10794 2002-10-27 Kim F. Storm <storm@cua.dk>
10796 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
10798 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
10800 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
10802 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
10804 2002-10-26 Richard M. Stallman <rms@gnu.org>
10806 * editfns.c (Fformat): Detect invalid format letters for floats.
10808 2002-10-25 Kenichi Handa <handa@m17n.org>
10810 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
10811 (x_set_title): Likewise.
10813 2002-10-25 Juanma Barranquero <lektu@terra.es>
10816 * w32gui.h: Remove definition of XColor.
10818 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
10820 2002-10-24 Kim F. Storm <storm@cua.dk>
10822 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
10823 Callers changed (supply dummy arg).
10825 * lisp.h (get_window_cursor_type): Update prototype.
10827 * w32term.c (x_display_and_set_cursor): Get active_cursor from
10828 get_window_cursor_type to track system caret.
10830 2002-10-24 Kim F. Storm <storm@cua.dk>
10832 * process.c (Fformat_network_address): New function.
10833 (syms_of_process): Defsubr it.
10834 (list_processes_1): Use it to format :local/:remote address if
10835 service/host is not set; before Emacs would crash in that case.
10836 (Fmake_network_process): Don't use Ffind_operation_coding_system
10837 to setup coding system if host or service is not set.
10839 2002-10-23 Juanma Barranquero <lektu@terra.es>
10841 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
10843 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
10847 * w32gui.h: Add definition of XColor.
10851 * xfaces.c: Remove definition of XColor.
10853 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
10855 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
10857 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
10858 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
10859 window if it is dedicated.
10860 (Fshrink_window): Add preserve_before as was done for enlarge_window.
10861 (Vspecial_display_function): Update docstring.
10863 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
10864 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
10865 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
10867 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
10869 * casefiddle.c (casify_region): Don't treat a prefix char as part
10870 of a word when at the beginning.
10872 2002-10-17 Juanma Barranquero <lektu@terra.es>
10874 * lread.c (syms_of_lread): Fix typos.
10876 2002-10-17 Dave Love <fx@gnu.org>
10878 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
10880 2002-10-16 Richard M. Stallman <rms@gnu.org>
10882 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
10884 2002-10-14 Juanma Barranquero <lektu@terra.es>
10886 * w16select.c (syms_of_win16select): Fix docstring for
10887 `selection-coding-system'.
10889 * w32select.c (syms_of_w32select): Likewise.
10891 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
10893 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
10894 a backslash-quoted char.
10895 (scan_lists, scan_sexps_forward): Pacify the compiler.
10897 2002-10-13 Richard M. Stallman <rms@gnu.org>
10899 * window.c (window_scroll): Set immediate_quit.
10901 * print.c (print): When backquote form is the car of a list,
10902 output in old style. Use old_backquote_output to output all
10903 comma forms inside it in old style too.
10905 * buffer.h (struct buffer): Move `undo_list' down below `name'.
10907 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
10909 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
10912 * lread.c (Fload): Doc fix (load-suffixes).
10914 2002-10-10 Steven Tamm <steventamm@mac.com>
10916 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
10917 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
10918 Also switch the default to Qnil from Qt.
10920 2002-10-08 Kenichi Handa <handa@m17n.org>
10922 * coding.c (code_convert_region): When we need more GAP for
10923 conversion, pay attention to the case that coding->produced is not
10924 greater than coding->consumed.
10926 2002-10-07 Richard M. Stallman <rms@gnu.org>
10928 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
10930 2002-10-06 Andrew Choi <akochoi@shaw.ca>
10932 * macmenu.c (mac_menu_show): Add j to count menu items; match
10933 menu_item_selection to it to find selected item.
10935 2002-10-06 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10937 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
10938 cases. The correct fix is to pass ReparentNotify to Xt.
10939 The shell widget interprets ConfigureNotify differently depending
10940 on if it has been reparented or not.
10942 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
10944 * editfns.c (Fformat_time_string): Doc fix.
10946 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
10948 * fns.c (Flength): Doc fix.
10950 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
10952 * keyboard.c (keyremap): New struct.
10953 (read_key_sequence): Use it: globally replace keytran_foo with
10954 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
10955 keytran_next and fkey_next to just `next'.
10957 2002-10-04 Steven Tamm <steventamm@mac.com>
10959 * macterm.c (keycode_to_xkeysym_table): Change return to be
10960 treated like an X keysym.
10962 2002-10-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10964 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
10965 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
10966 This is to also handle x/y changes that occur because of a resize.
10968 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
10970 * frame.c (Vdelete_frame_functions): New variable.
10971 (syms_of_frame): Initialize and defvar it.
10972 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
10973 it when frame's `tooltip' parameter is non-nil.
10975 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
10977 * w32fns.c (x_create_tip_frame): Likewise.
10979 * macfns.c (x_create_tip_frame): Likewise.
10981 2002-09-30 Kenichi Handa <handa@m17n.org>
10983 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
10984 -1 before calling ccl_driver.
10986 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
10987 Only when it is non-nil, handle composition sequence.
10988 (setup_coding_system) <0>: Don't force composition handling.
10990 * Makefile.in (lisp, shortlisp): Add utf-16.elc
10992 2002-09-29 Richard M. Stallman <rms@gnu.org>
10994 * search.c (Freplace_match): Adjust match data for the substitution
10995 just made in the buffer.
10997 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
10998 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
11000 2002-09-27 Richard M. Stallman <rms@gnu.org>
11002 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
11003 (read_char): Use them. Do all exits thru the end of the function.
11005 2002-09-27 Kenichi Handa <handa@etl.go.jp>
11007 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
11010 2002-09-26 Richard M. Stallman <rms@gnu.org>
11012 * regex.h (__restrict_arr): Don't define if already defined.
11014 * coding.c (run_pre_post_conversion_on_str):
11015 Save and restore Vdeactivate_mark.
11017 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
11019 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
11021 2002-09-26 Kenichi Handa <handa@etl.go.jp>
11023 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
11024 nonzero, try face's family at first. Otherwise try FAMILY at first.
11025 (choose_face_font): If C is a single byte char or latin-1, call
11026 try_font_list with PREFER_FACE_FAMILY 1.
11028 2002-09-21 Richard M. Stallman <rms@gnu.org>
11030 * window.c (select_window_1): Don't select frame.
11031 Set frame's selected window only when frame itself is selected.
11032 (Fselect_window): Doc fix.
11034 2002-09-18 Kim F. Storm <storm@cua.dk>
11036 * process.c (make-network-process): Doc fix (there is no
11037 network-server-log-function hook).
11039 2002-09-18 Richard M. Stallman <rms@gnu.org>
11041 * print.c (print): Clear out the unused parts of Vprint_number_table.
11042 (syms_of_print): Doc fix for `print-number-table'.
11044 * unexelf.c (unexec): Undo previous change.
11046 2002-09-17 Andreas Schwab <schwab@suse.de>
11048 * m/alpha.h [LINUX]: Don't define DATA_START.
11050 2002-09-16 Dave Love <fx@gnu.org>
11052 * unexelf.c (unexec): Deal with .got, reinstating change from
11055 2002-09-13 Richard M. Stallman <rms@gnu.org>
11057 * s/sol2-6.h (UNEXEC): Comment out definition.
11059 * unexsol.c (unexec): Don't downcase first letter of error msg.
11061 * xfaces.c (Fcolor_supported_p): Just one arg is required.
11063 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
11065 * unexsol.c: Include buffer.h, charset.h, coding.h.
11067 2002-09-11 Richard M. Stallman <rms@gnu.org>
11069 * unexsol.c: Don't use report_file_error; do it by hand
11072 * process.c (wait_reading_process_input, both versions):
11073 Before calling turn_on_atimers, call stop_polling.
11075 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
11077 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
11078 we go to too_near_end, call clear_glyph_matrix.
11079 (redisplay_window): After make_cursor_line_fully_visible,
11080 call clear_glyph_matrix and bypass `goto done'.
11082 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
11083 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
11085 2002-09-10 Richard M. Stallman <rms@gnu.org>
11087 * fileio.c (Fdo_auto_save): Catch error making directory.
11088 Only call push_message if we need to.
11089 At the same time, make an unwind-protect to pop it.
11090 Rename local message_p to old_message_p.
11091 (do_auto_save_make_dir, do_auto_save_eh): New functions.
11092 (do_auto_save_unwind): Don't call pop_message.
11094 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
11096 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
11098 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
11100 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
11102 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
11104 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
11105 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
11106 (re_match_2_internal): Be more careful with infinite loops.
11108 2002-09-10 Kim F. Storm <storm@cua.dk>
11110 * macros.c (end_kbd_macro): New function.
11111 (Fend_kbd_macro): Use it.
11113 * macros.h (end_kbd_macro): Declare extern.
11115 * keyboard.c (Fdiscard_input): If defining keyboard macro,
11116 end and save it instead of discarding it.
11118 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
11120 * s/sol2-6.h: Fix typo. Add comment.
11122 2002-09-09 Richard M. Stallman <rms@gnu.org>
11124 * regex.c (regnum_t): Use signed int, not unsigned int.
11126 * s/sol2-6.h: New file.
11128 * s/sol2-5.h (UNEXEC): Definition deleted.
11130 2002-09-08 Kim F. Storm <storm@cua.dk>
11132 * macros.c (executing_macro_index): Change type to EMACS_INT.
11133 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
11135 * macros.h (executing_macro_index): Change type to EMACS_INT.
11137 2002-09-06 Richard M. Stallman <rms@gnu.org>
11139 * casetab.c (set_case_table): Make canon table point to eqv table.
11141 2002-09-06 Juanma Barranquero <lektu@terra.es>
11143 * coding.c (syms_of_coding): Fix spacing.
11145 * composite.c (Fcompose_region_internal)
11146 (Fcompose_string_internal): Likewise.
11148 * data.c (Flsh): Likewise.
11150 * fontset.c (Fset_fontset_font): Likewise.
11152 * macfns.c (Fx_server_max_request_size): Likewise.
11154 * w16select.c (syms_of_win16select): Likewise.
11156 * w32select.c (syms_of_w32select): Likewise.
11158 * xselect.c (syms_of_xselect): Likewise.
11160 2002-09-05 Richard M. Stallman <rms@gnu.org>
11162 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
11163 call EXTEND_RANGE_TABLE and return a proper value.
11164 (set_image_of_range): Don't call set_image_of_range_1
11165 if no TRANSLATE or if range includes all of Latin-1.
11166 Only call it for the Latin-1 part of the range.
11167 For other cases, make two separate ranges,
11168 one for the original specified characters and one for
11169 their case-conversions.
11171 2002-09-04 Richard M. Stallman <rms@gnu.org>
11173 * s/sol2-5.h (UNEXEC): Use unexsol.o.
11175 * window.c (displayed_window_lines): Correct for one-off bug
11176 in HEIGHT on non-window displays.
11178 * regex.c (set_image_of_range_1): New function.
11179 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
11180 Return a value to indicate running out of memory.
11181 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
11182 (extend_range_table_work_area): New subroutine.
11183 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
11184 Different calling conventions, and used from set_image_of_range{,_1}.
11185 (IMMEDIATE_QUIT_CHECK): Definitions moved.
11187 2002-09-04 Juanma Barranquero <lektu@terra.es>
11189 * makefile.w32-in: All dependencies updated.
11191 2002-09-01 Richard M. Stallman <rms@gnu.org>
11193 * unexsol.c: New file.
11195 * xfns.c (Qbox): Declare external, don't define.
11197 * xdisp.c (redisplay_window) <force-start case>:
11198 If point is on semi-visible last line, reposition
11199 it at previous line.
11201 * alloc.c (display_malloc_warning): Use display-warning.
11202 (malloc_warning_1): Function deleted.
11204 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
11206 * lread.c (read1): Handle #! by skipping the line.
11208 2002-08-31 Richard M. Stallman <rms@gnu.org>
11210 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
11211 Don't include LDFLAGS.
11212 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
11214 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
11216 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
11217 member of x_display_info unless we compile for some window system.
11219 2002-08-31 Kim F. Storm <storm@cua.dk>
11221 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
11222 (get_window_cursor_type): Don't use them.
11223 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
11225 2002-08-30 Kenichi Handa <handa@etl.go.jp>
11227 * xdisp.c (get_next_display_element): Fix previous change.
11229 2002-08-30 Andrew Choi <akochoi@shaw.ca>
11231 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
11232 (expose_window): Use it to fix the display of overlapping
11233 rows (merge code from xterm.c).
11235 * macfns.c (Qbox): Add extern declaration.
11237 2002-08-30 Juanma Barranquero <lektu@terra.es>
11239 * w32fns.c (Qbox): Make extern.
11240 (syms_of_w32fns): Remove initialization of Qbox.
11242 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
11244 * xfns.c (Fx_open_connection): Fix error message.
11246 2002-08-30 Kim F. Storm <storm@cua.dk>
11248 The following changes consolidates the handling of the cursor
11249 type in xdisp.c, moving duplicate code and functionality from
11250 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
11252 * frame.h (enum text_cursor_kinds): Consolidated here.
11253 Added DEFAULT_CURSOR value.
11254 (struct frame) <desired_cursor, cursor_width>
11255 <blink_off_cursor, blink_off_cursor_width>: New fields.
11256 Consolidated from output_x, output_w32 and output_mac structs.
11257 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11258 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
11260 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
11261 Variables consolidated here.
11262 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
11263 (Vcursor_in_non_selected_windows): Renamed from
11264 cursor_in_non_selected_windows and changed to Lisp_Object.
11265 (syms_of_xdisp): Define and staticpro new and moved variables.
11266 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
11267 consolidated here. Recognize Qhollow setting.
11268 (set_frame_cursor_types): New function to set frame cursor types
11269 based on the frame parameters.
11270 (get_window_cursor_type): New function to calculate new cursor
11271 type and width for the specified window. Based on duplicated
11272 code consolidated here.
11273 Enhancements: cursor-in-non-selected-windows may be a cursor type,
11274 check buffer-local alternate-cursor-type and blink-cursor-alist
11275 before using built-in blink off methods.
11277 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
11279 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
11280 (get_specified_cursor_type, get_window_cursor_type)
11281 (set_frame_cursor_types): Added prototypes.
11283 * macfns.c (x_specified_cursor_type): Removed.
11284 (x_set_cursor_type): Use set_frame_cursor_types.
11285 (Qbar, Qbox): Removed.
11286 (syms_of_macfns): Don't intern or staticpro them.
11288 * macterm.c (x_specified_cursor_type): Remove prototype.
11289 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11290 (x_display_and_set_cursor): Use get_window_cursor_type.
11291 Remove unused local variables cursor_non_selected, active_cursor.
11292 Redraw cursor if hbar cursor width changes.
11293 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
11295 * macterm.h (enum text_cursor_kinds): Removed.
11296 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
11297 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11298 (FRAME_DESIRED_CURSOR): Macro removed.
11300 * w32fns.c (Vblink_cursor_alist): Removed.
11301 (Qbar, Qhbar, Qbox, Qhollow): Removed.
11302 (syms_of_w32fns): Don't intern, staticpro, or define them.
11303 (x_specified_cursor_type): Removed.
11304 (x_set_cursor_type): Use set_frame_cursor_types.
11306 * w32term.c (x_specified_cursor_type): Remove prototype.
11307 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11308 (x_display_and_set_cursor): Use get_window_cursor_type.
11309 Remove unused local variables cursor_off_state.
11310 Redraw cursor if hbar cursor width changes.
11311 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
11313 * w32term.h (enum text_cursor_kinds): Removed.
11314 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
11315 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11316 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11317 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
11318 (struct w32_display_info) <x_highlight_frame>: Renamed member from
11319 w32_highlight_frame.
11321 * xfns.c (Vblink_cursor_alist): Removed.
11322 (Qbar, Qhbar, Qbox, Qhollow): Removed.
11323 (syms_of_xfns): Don't intern, staticpro, or define them.
11324 (x_specified_cursor_type): Removed.
11325 (x_set_cursor_type): Use set_frame_cursor_types.
11327 * xterm.c (x_specified_cursor_type): Remove prototype.
11328 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11329 (x_display_and_set_cursor): Use get_window_cursor_type.
11330 Remove unused local variables cursor_off_state.
11331 Redraw cursor if hbar cursor width changes.
11333 * xterm.h (enum text_cursor_kinds): Removed.
11334 (struct output_x) <current_cursor, desired_cursor, cursor_width>
11335 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11336 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11337 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
11338 (x_specified_cursor_type): Remove prototype.
11340 2002-08-28 Richard M. Stallman <rms@gnu.org>
11342 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
11343 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
11344 (Vblink_cursor_alist): New variable.
11345 (syms_of_w32fns): Initialize and defvar it.
11346 (x_specified_cursor_type): Recognize Qbox for filled box.
11347 Exceptions are hollow boxes.
11348 (Qbox, Qhollow): New variables.
11349 (syms_of_w32fns): Initialize and staticpro them.
11351 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
11353 (struct w32_output): New fields blink_off_cursor,
11354 blink_off_cursor_width.
11355 (FRAME_CURSOR_WIDTH): New macro.
11357 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
11358 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
11360 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
11363 * w32term.c (expose_overlaps): New function.
11364 (expose_window): Use it to fix the display of overlapping rows.
11366 2002-08-28 Simon Josefsson <jas@extundo.com>
11368 * xfns.c (Fx_open_connection): Improve help when X connection
11369 fails, xhost is insecure and xauth is better.
11371 2002-08-28 Juanma Barranquero <lektu@terra.es>
11373 * makefile.w32-in: Add missing dependencies on w32term.h and
11376 * emacs.c (USAGE1): Add missing newline.
11378 2002-08-27 Andrew Choi <akochoi@shaw.ca>
11380 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
11382 2002-08-27 Richard M. Stallman <rms@gnu.org>
11384 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
11385 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
11386 (Vblink_cursor_alist): New variable.
11387 (syms_of_xfns): Initialize and defvar it.
11388 (x_specified_cursor_type): Recognize Qbox for filled box.
11389 Exceptions are hollow boxes.
11390 (Qbox, Qhollow): New variables.
11391 (syms_of_xfns): Initialize and staticpro them.
11393 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
11395 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
11397 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
11398 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
11400 * emacs.c (main): Handle --script.
11401 (USAGE1): Mention --script.
11402 (standard_args): Define sort order for --script.
11404 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
11406 * xdisp.c (redisplay_updating_p): Variable removed.
11407 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
11409 (init_iterator): Don't free realized faces if
11410 inhibit_free_realized_faces is set.
11411 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
11412 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
11413 initialize Qinhibit_free_realized_faces.
11415 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
11416 when iterator is adding glyphs to a glyph matrix.
11418 2002-08-27 Kenichi Handa <handa@etl.go.jp>
11420 * xdisp.c (get_next_display_element): In unibyte case, don't use
11421 octal form for such eight-bit characters that can be converted to
11424 2002-08-26 Kim F. Storm <storm@cua.dk>
11426 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
11427 foreground and background colors. From Joe Buehler.
11429 2002-08-26 Miles Bader <miles@gnu.org>
11431 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
11433 2002-08-25 Andrew Choi <akochoi@shaw.ca>
11435 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
11436 defined instead of MAC_OSX.
11438 * s/darwin.h (select): Define select to sys_select only if
11439 HAVE_CARBON is defined.
11440 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
11441 (DONT_REOPEN_PTY): #def it.
11443 * macterm.c (XTread_socket): Remove code to call
11444 SendEventToEventTarget for keys with command modifiers when
11445 mac_command_key_is_meta is nil.
11447 2002-08-24 Andreas Schwab <schwab@suse.de>
11449 * eval.c (Fdefvar): Fix last change.
11451 2002-08-23 Richard M. Stallman <rms@gnu.org>
11453 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
11454 Record variables in load history as (defvar . VAR).
11455 (Fdefvar): Don't record in load history if no initial value.
11456 (Qdefvar): New variable.
11457 (syms_of_eval): Init and staticpro it.
11459 * lread.c (syms_of_lread): Doc fix.
11460 (build_load_history): Use Fmember to see if a definition
11461 is already in the Vload_history element.
11463 * process.c (Fstart_process): Remove /: from program name.
11465 * emacs.c (decode_env_path): Don't add /: if file name handler
11466 has a `safe-magic' property.
11468 * callproc.c (Fcall_process): Remove /: from program name.
11470 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
11472 * regex.c (PATFETCH): Remove the translating fetch.
11473 (PATFETCH_RAW): Rename to PATFETCH.
11474 (set_image_of_range): New fun.
11475 (SET_RANGE_TABLE_WORK_AREA): Use it.
11476 (regex_compile): Don't translate the pattern chars so eagerly.
11477 Only do it when inserting an `exactn' bytecode or when handling
11479 (mutually_exclusive_p): Avoid empty statement.
11481 2002-08-22 Kim F. Storm <storm@cua.dk>
11483 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
11484 end up on a partially visible line; this reverts a specific part
11485 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
11486 display error which has been reported several times now.
11487 However it introduces the problem that changes was supposed to fix.
11488 See my comments in the source if you want to debug this further.
11490 2002-08-20 Kenichi Handa <handa@etl.go.jp>
11492 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
11494 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
11496 * msdos.c (croak): Add `void' to definition.
11498 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
11499 Don't define them, they are defined in msdos.c.
11501 * mem-limits.h [MSDOS]: Declare etext.
11503 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
11504 `const' since CORRECT_DIR_SEPS modifies its target.
11506 2002-08-19 Kim F. Storm <storm@cua.dk>
11508 * keyboard.c (Fclear_this_command_keys): Add optional arg
11509 KEEP-RECORD to avoid clearing lossage when we just want to clear
11510 the current key sequence (kmacro needs this).
11512 2002-08-19 Kenichi Handa <handa@localhost>
11514 * composite.c (run_composition_function): Call FUNC if it is fboundp.
11516 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
11519 2002-08-17 Richard M. Stallman <rms@gnu.org>
11521 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
11523 * sysdep.c [!VMS]: Include sys/files.h.
11525 * editfns.c (save_restriction_restore): Defend from unchained marker.
11527 * buffer.c (overlays_at): Handle extending vec uniformly.
11528 (overlays_in): Handle extending vec from length 0 as in overlays_at.
11530 2002-08-15 Andrew Choi <akochoi@shaw.ca>
11532 * mac.c (init_mac_osx_environment): New function.
11534 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
11536 2002-08-14 Kim F. Storm <storm@cua.dk>
11538 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
11539 executing macro before appending to it (when used from Lisp).
11540 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
11541 which is called prior to each iteration of macro (for kmacro.el).
11542 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
11544 * lisp.h (Fexecute_kbd_macro): Update prototype.
11546 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
11548 2002-08-14 Kenichi Handa <handa@etl.go.jp>
11550 * xselect.c (QUTF8_STRING): New variable.
11551 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
11552 (x_atom_to_symbol): Likewise.
11553 (x_get_local_selection): New argument local_request. If it is
11554 nonzero, call handler_fn with the second arg nil.
11555 (x_handle_selection_request): Call x_get_local_selection with
11557 (lisp_data_to_selection_data): Don't encode the string here.
11558 (Fx_get_selection_internal): Call x_get_local_selection with
11560 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
11562 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
11564 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
11566 2002-08-13 Richard M. Stallman <rms@gnu.org>
11568 * minibuf.c (Fminibufferp): New function.
11569 (syms_of_minibuf): Defsubr it.
11570 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
11572 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
11574 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
11576 2002-08-12 Richard M. Stallman <rms@gnu.org>
11578 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
11579 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
11580 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
11583 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
11585 2002-08-11 Andrew Choi <akochoi@shaw.ca>
11587 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
11588 (Vmac_pass_command_to_system): New variable.
11589 (Vmac_pass_control_to_system): New variable.
11590 (do_mouse_moved): Check wp with is_emacs_window.
11591 (XTread_socket): Check window_ptr with is_emacs_window.
11592 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
11593 events back to Mac Toolbox for processing, depending on values of
11594 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
11595 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
11596 Vmac_pass_control_to_system.
11598 2002-08-10 Kenichi Handa <handa@etl.go.jp>
11600 * coding.c (unencodable_char_position): New function.
11601 (Funencodable_char_position): New function.
11602 (syms_of_coding): Defsubr Funencodable_char_position.
11604 2002-08-10 Andrew Choi <akochoi@shaw.ca>
11606 * mac.c (sys_select) [MAC_OSX]: New function.
11608 * macterm.c (MakeMeTheFrontProcess): New function.
11609 (mac_initialize): Call MakeMeTheFrontProcess.
11611 * s/darwin.h: Define select to sys_select.
11613 2002-08-09 Richard M. Stallman <rms@gnu.org>
11615 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
11617 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
11619 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
11622 2002-08-08 Ken Raeburn <raeburn@mit.edu>
11624 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
11626 * puresize.h (BASE_PURESIZE): Increase to 910000.
11628 2002-08-08 Kenichi Handa <handa@etl.go.jp>
11630 * coding.c (Ffind_operation_coding_system): For write-region, if
11631 VISIT is a filename, make it the target.
11633 2002-08-07 Richard M. Stallman <rms@gnu.org>
11635 * alloc.c (mark_object): Detect long lists for debugging.
11636 (mark_object_loop_halt): New variable.
11638 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
11640 * data.c (Fmake_variable_frame_local): Doc fix.
11642 2002-08-01 David Ponce <david@dponce.com>
11644 * w32menu.c (local_heap, local_alloc, local_free): New macros.
11645 (malloc_widget_value, free_widget_value)
11646 (w32_free_submenu_strings): Use them.
11648 (push_submenu_start, push_submenu_end, push_left_right_boundary)
11649 (push_menu_pane, push_menu_item, single_keymap_panes)
11650 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
11651 (single_submenu, set_frame_menubar)
11652 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
11654 (Fx_popup_menu): Don't show pop up menu until preceding one is
11655 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
11657 * w32menu.c: Changes adapted from xmenu.c
11658 (set_frame_menubar): First parse all submenus,
11659 then make widget_value trees from them.
11660 Don't allocate any widget_value objects
11661 until we are done with the parsing.
11662 (parse_single_submenu): New function.
11663 (digest_single_submenu): New function.
11664 (single_submenu): Function deleted, replaced by those two.
11666 2002-08-04 Andrew Choi <akochoi@shaw.ca>
11668 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
11669 returns a valid window pointer before proceeding for keyDown and
11672 2002-08-03 Andrew Choi <akochoi@shaw.ca>
11674 * macterm.c (USE_CARBON_EVENTS): New macro.
11675 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
11676 (x_iconify_frame): Call CollapseWindow.
11677 (Vmac_reverse_ctrl_meta): New variable.
11678 (Vmac_wheel_button_is_mouse_2): New variable.
11679 (init_mac_drag_n_drop): New function.
11680 (mac_do_receive_drag): New function.
11681 (mac_handle_service_event): New function.
11682 (init_service_handler): New function.
11683 (mac_to_emacs_modifiers): New function.
11684 (mac_event_to_emacs_modifiers): New function.
11685 (mac_get_mouse_btn): New function.
11686 (mac_convert_event_ref): New function.
11687 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
11688 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
11690 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
11692 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
11693 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
11694 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
11695 TOOL_BAR_EVENT for MAC_OS as well.
11696 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
11698 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
11700 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
11702 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
11704 * xdisp.c (forward_to_next_line_start): Fix a condition that
11705 lead to a newline being skipped.
11707 2002-08-02 Andrew Choi <akochoi@shaw.ca>
11709 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
11711 2002-08-01 Richard M. Stallman <rms@gnu.org>
11713 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
11715 2002-07-31 Andrew Choi <akochoi@shaw.ca>
11717 * macfns.c: #undef init_process before #define-ing it.
11719 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
11720 HAVE_CARBON is defined.
11722 2002-07-31 Richard M. Stallman <rms@gnu.org>
11724 * xmenu.c (set_frame_menubar): First parse all submenus,
11725 then make widget_value trees from them.
11726 Don't allocate any widget_value objects
11727 until we are done with the parsing.
11728 (parse_single_submenu): New function.
11729 (digest_single_submenu): New function.
11730 (single_submenu): Function deleted, replaced by those two.
11732 2002-07-30 Juanma Barranquero <lektu@terra.es>
11734 * w32proc.c (syms_of_ntproc): Fix docstring of
11735 `w32-get-true-file-attributes'.
11737 2002-07-28 Richard M. Stallman <rms@gnu.org>
11739 * s/hpux8.h (HPUX8): Define this before including hpux.h.
11740 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
11742 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
11744 * keyboard.c (make_lispy_event):
11745 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
11746 Explicitly clear up_modifier in event->modifiers.
11748 2002-07-27 Richard M. Stallman <rms@gnu.org>
11750 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
11752 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
11755 2002-07-26 Kenichi Handa <handa@etl.go.jp>
11757 * coding.c (detect_coding_iso2022): While checking a byte sequence
11758 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
11759 it in the normal loop.
11761 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
11763 * xterm.c (expose_overlaps): New function.
11764 (expose_window): Use it to fix the display of overlapping rows.
11766 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
11768 2002-07-23 Ken Raeburn <raeburn@gnu.org>
11770 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
11771 since it only depends on XUINT.
11773 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
11774 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
11775 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
11778 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
11779 its value over other approaches.
11780 * sysdep.c (start_of_data): Don't define the function if a macro
11781 form has been defined.
11783 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
11785 * xdisp.c (redisplay_updating_p): New variable.
11786 (init_iterator): Don't free realized faces when
11787 redisplay_updating_p is set.
11788 (redisplay_internal): Set redisplay_updating_p while updating
11791 2002-07-23 Richard M. Stallman <rms@gnu.org>
11793 * editfns.c (Fmessage): Treat "" like nil.
11795 2002-07-23 Kenichi Handa <handa@etl.go.jp>
11797 * xdisp.c (face_before_or_after_it_pos):
11798 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
11800 2002-07-22 Juanma Barranquero <lektu@terra.es>
11802 * callproc.c (init_callproc) [DOS_NT]:
11803 Initialize Vshared_game_score_directory to nil.
11804 (syms_of_callproc) [DOS_NT]: Likewise.
11806 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
11808 * xdisp.c (display_line): Replace an abort with xassert.
11810 2002-07-21 Richard M. Stallman <rms@gnu.org>
11812 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
11813 and END_UNCHANGED when setting buffer_unchanged_p.
11814 Use current_matrix_up_to_date_p to decide whether to use
11815 try_cursor_movement.
11817 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
11819 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
11821 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
11822 Set to nil if dir does not exist.
11823 (syms_of_callproc): Init unconditionally and simply.
11825 * buffer.c (Fbuffer_list): Doc fix.
11827 2002-07-21 Ken Raeburn <raeburn@gnu.org>
11829 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
11831 * buffer.c (mmap_realloc): When shrinking, make sure number of
11832 pages to unmap is rounded towards zero.
11834 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
11835 (XSETINT): Deleted.
11837 * m/att3b.h (XINT): Don't define.
11838 (VALBITS, VALMASK, XTYPE): Deleted.
11839 (DATA_SEG_BITS): Define.
11840 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
11841 ARRAY_MARK_FLAG): Deleted.
11842 (DATA_SEG_BITS): Define.
11843 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
11844 (DATA_SEG_BITS): Define.
11846 2002-07-20 Richard M. Stallman <rms@gnu.org>
11848 * print.c (print_error_message): New args CONTEXT and CALLER.
11851 * lisp.h (print_error_message): Declare new args.
11853 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
11854 and CONTEXT to print_error_message, don't print them here.
11855 For a Quit, don't use Vsignaling_function.
11856 Call message_log_maybe_newline.
11858 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
11860 2002-07-20 Kim F. Storm <storm@cua.dk>
11862 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
11864 2002-07-19 Ken Raeburn <raeburn@gnu.org>
11866 * bytecode.c (struct byte_stack): Pointers into byte string now
11868 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
11870 * charset.h (BCOPY_SHORT): Source pointer now points to const.
11871 * coding.c (encode_eol, detect_coding, detect_eol):
11872 (decode_coding, encode_coding, detect_coding_system):
11873 Source strings now treated as const.
11874 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
11875 modify Lisp string contents.
11876 * coding.h (decode_coding, encode_coding, detect_coding,
11877 detect_eol): Declarations updated.
11878 * composite.c (compose_chars_in_text): Treat Lisp string contents
11880 * dispnew.c (safe_bcopy): Source pointer now points to const.
11881 * lisp.h (STRING_COPYIN): New macro.
11882 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
11883 (internal_with_output_to_temp_buffer): Declarations updated.
11884 * print.c (temp_output_buffer_setup):
11885 (internal_with_output_to_temp_buffer): Buffer name argument is now
11887 * sound.c (struct sound_device): Function pointer field "write"
11888 buffer argument now points to const.
11889 (vox_write): Buffer argument points to const.
11890 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
11892 * sysdep.c (emacs_write): Buffer pointer now const.
11893 * term.c (encode_terminal_code): Buffer pointer now const.
11894 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
11895 (x_face_list_fonts, x_update_menu_appearance):
11896 (hash_string_case_insensitive): Treat Lisp string contents as const.
11898 2002-07-19 Juanma Barranquero <lektu@terra.es>
11900 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
11902 * fileio.c (syms_of_fileio): Likewise.
11903 (Ffile_name_as_directory): Fix argument name in docstring.
11904 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
11906 2002-07-18 Richard M. Stallman <rms@gnu.org>
11908 * data.c (Fdefalias): Doc fix.
11910 2002-07-17 Dave Love <fx@gnu.org>
11912 * intervals.h (text_property_stickiness): Use P_.
11914 * ccl.c: Remove `emacs' conditionals.
11915 (ccl_backtrace_table): Fix size spec.
11916 (ccl_driver): Fix type errors.
11918 2002-07-16 Ken Raeburn <raeburn@gnu.org>
11920 * alloc.c (xstrdup, make_string, make_unibyte_string)
11921 (make_multibyte_string, build_string): String pointer args now
11923 * charset.c (find_charset_in_text, c_string_width):
11924 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
11925 * fileio.c (report_file_error):
11926 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
11927 (count_combining_before, count_combining_after, insert_1_both):
11928 (insert, insert_and_inherit, insert_string):
11929 (insert_before_markers, insert_before_markers_and_inherit):
11930 * lread.c (intern, oblookup, hash_string):
11931 * minibuf.c (temp_echo_area_glyphs):
11932 * search.c (fast_c_string_match_ignore_case):
11933 * sysdep.c (emacs_open, set_file_times):
11934 * xfaces.c (xstricmp):
11935 * xdisp.c (store_frame_title, string_char_and_length):
11936 (message_dolog, message2, message2_nolog, set_message): Likewise.
11937 (set_message_1): Cast message string argument to const pointer.
11938 * editfns.c (general_insert_function): Insertion function now
11939 takes pointer to const for input data.
11940 * charset.h (find_charset_in_text, c_string_width):
11941 (parse_str_as_multibyte): Declarations updated.
11942 * dispextern.h (xstricmp): Declaration updated.
11943 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
11944 (count_size_as_multibyte, count_combining_before):
11945 (count_combining_after, insert_1, insert_1_both, message_dolog):
11946 (insert, insert_and_inherit, insert_before_markers)
11947 (insert_before_markers_and_inherit, set_message, message2):
11948 (message2_dolog, build_string, make_string, make_unibyte_string):
11949 (make_multibyte_string, intern, oblookup, report_file_error):
11950 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
11951 (emacs_open, xstrdup): Declarations updated.
11952 * systime.h (set_file_times): Declaration updated.
11954 * charset.c (find_charset_in_text, lisp_string_width): Use const
11955 for pointer to lisp string data.
11956 * charset.h (FETCH_STRING_CHAR_ADVANCE):
11957 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
11958 * coding.c (Ffind_coding_systems_region_interval):
11959 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
11960 (Fmake_directory_internal, Fdelete_directory):
11961 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
11962 * fontset.c (font_family_registry, fs_query_fontset):
11964 * frame.c (Fframe_parameter):
11965 * keyboard.c (cmd_error_internal):
11966 * keymap.c (Fdescribe_buffer_bindings):
11967 * lread.c (complete_filename_p, openp):
11968 * minibuf.c (Fminibuffer_complete_word):
11969 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
11970 (face_before_or_after_it_pos, next_element_from_string):
11971 (get_overlay_arrow_glyph_row, display_mode_element):
11972 (decode_mode_spec_coding):
11973 * xterm.c (same_x_server): Likewise.
11975 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
11976 settings of non-existent fields.
11978 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
11981 * lread.c (Fintern_soft): Use string macros instead of
11982 Lisp_String fields.
11983 * keyboard.c (echo_char, parse_modifiers_uncached):
11984 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
11985 * textprop.c (validate_interval_range, interval_of): Likewise.
11987 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
11989 * charset.h (FETCH_STRING_CHAR_ADVANCE)
11990 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
11991 XSTRING()->size_byte.
11993 * lisp.h (SDATA, SREF): Produce rvalue.
11995 * alloc.c (make_event_array): Use SSET for storing into a string.
11996 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
11998 * casefiddle.c (casify_object): Use SSET.
11999 * charset.h (FETCH_STRING_CHAR_ADVANCE)
12000 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
12001 address of string contents.
12002 * data.c (Faref): Use SDATA.
12003 (Faset): Use SDATA, SSET.
12004 * dired.c (directory_files_internal): Use SSET.
12005 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
12006 (Fread_file_name): Use SREF, SSET.
12007 * fns.c (concat): Use SSET.
12008 (concat, Fdelete): Use SDATA.
12009 * insdel.c (insert_from_string_1): Use SDATA.
12010 * keyboard.c (Fevent_convert_list): Use SREF.
12011 * lread.c (Fload): Use SDATA, SSET.
12012 * macfns.c (validate_x_resource_name): Use SSET.
12013 * process.c (status_message): Use SSET.
12014 * search.c (wordify): Use SDATA.
12015 (Freplace_match): Use SREF.
12016 * w32fns.c (validate_x_resource_name): Use SSET.
12017 * xfns.c (validate_x_resource_name): Use SSET.
12018 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
12020 2002-07-16 Richard M. Stallman <rms@gnu.org>
12022 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
12024 * xdisp.c (reconsider_clip_changes):
12025 Don't test prevent_redisplay_optimizations_p.
12026 (redisplay_internal): Test prevent_redisplay_optimizations_p
12027 along with clip_changed in some cases.
12028 (try_window_id): Likewise.
12029 (redisplay_window): New local var buffer_unchanged_p.
12031 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
12033 * process.c (create_process): Test USG_SUBTTY_WORKS.
12034 (process_send_signal): Clean up handling of GID.
12035 Detect errors in ioctls meant to set GID.
12037 * window.c (temp_output_buffer_show):
12038 Don't set prevent_redisplay_optimizations_p.
12040 2002-07-15 Juanma Barranquero <lektu@terra.es>
12042 * eval.c (Fdefvaralias): Add docstring argument.
12044 2002-07-15 Ken Raeburn <raeburn@gnu.org>
12046 * lisp.h (STRING_INTERVALS): Produce rvalue.
12047 (STRING_SET_INTERVALS): New macro.
12048 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
12049 * fns.c (Fstring_as_multibyte): Likewise.
12050 * intervals.c (balance_possible_root_interval, delete_interval)
12051 (create_root_interval, copy_intervals_to_string): Likewise.
12052 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
12055 2002-07-14 Ken Raeburn <raeburn@gnu.org>
12057 * lisp.h (STRING_SET_CHARS): New macro.
12058 (SCHARS, SBYTES): Produce rvalues.
12059 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
12060 * fns.c (concat): Likewise.
12061 * lread.c (read_vector): Likewise.
12063 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
12064 (STRING_SET_UNIBYTE): New macro.
12065 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
12066 length of -1) changed to use STRING_SET_UNIBYTE.
12067 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
12068 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
12069 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
12070 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
12071 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
12072 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
12073 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
12074 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
12075 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
12076 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
12077 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
12078 STRING_BYTES or indirection changed to SCHARS, SBYTES,
12079 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
12082 2002-07-13 Kim F. Storm <storm@cua.dk>
12084 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
12086 2002-07-12 Richard M. Stallman <rms@gnu.org>
12088 * fileio.c (Fwrite_region): Doc fix.
12090 * print.c (print_error_message): Don't handle Vsignaling_function here.
12092 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
12093 (command_loop_1): Avoid certain actions after memory-full error.
12095 * eval.c (Fsignal): Don't call cancel_hourglass.
12096 For a memory-full error, don't call Vsignal_hook_function
12097 and don't set Vsignaling_function.
12099 * process.c (process_send_signal): Add abort call.
12101 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
12103 * keymap.c (Fkey_binding): Fix typo.
12105 2002-07-11 Richard M. Stallman <rms@gnu.org>
12107 * alloc.c (Vmemory_full): New variable.
12108 (Vmemory_signal_data): Renamed from memory_signal_data.
12110 (syms_of_alloc): Defvar them.
12111 (memory_full, buffer_memory_full): Set Vmemory_full.
12113 * lisp.h (Vmemory_full): Add declaration.
12114 (current_column, indented_beyond_p): Change declaration.
12116 * indent.c (last_known_column): Declare as double, not float.
12117 (current_column, current_column_1, string_display_width)
12118 (position_indentation): Return `double'.
12119 (indented_beyond_p): Arg `column' is `double'. Callers changed.
12121 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
12122 (back_to_previous_visible_line_start)
12123 (reseat_at_next_visible_line_start, next_element_from_buffer):
12124 Use `double', not `float', when calling indented_beyond_p.
12126 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
12128 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
12130 2002-07-11 Juanma Barranquero <lektu@terra.es>
12132 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
12133 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
12134 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
12135 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
12136 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
12137 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
12139 2002-07-10 Juanma Barranquero <lektu@terra.es>
12141 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
12142 All callers changed.
12144 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
12146 * data.c (Fdefalias): Add an optional `docstring' argument.
12147 (set_internal, Fsetq_default): Use XCAR/XCDR.
12149 * composite.c (HASH_VALUE, HASH_KEY):
12150 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
12152 2002-07-09 Kenichi Handa <handa@etl.go.jp>
12154 * callproc.c (Fcall_process): Fix previous change.
12156 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
12158 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
12159 Add support for hash-tables.
12160 (Ftry_completion): Return t even if the string appears multiple times.
12162 * fns.c (Fnconc): Use XCDR.
12163 (Fprovide): Use CONSP and XCDR.
12164 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
12165 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
12166 (Fmake_hash_table): Accept `:size nil'.
12167 (Fmakehash): Delete: moved to subr.el.
12168 (syms_of_fns): Don't defsubr makehash.
12170 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
12171 (HASH_TABLE_SIZE): Move from fns.c.
12173 2002-07-07 Richard M. Stallman <rms@gnu.org>
12175 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
12176 Instead just return 0 when there is something to be done.
12177 (try_scrolling): If make_cursor_line_fully_visible returns 0,
12178 retry scrolling as if cursor were off the bottom.
12179 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
12180 return CURSOR_MOVEMENT_MUST_SCROLL.
12181 (redisplay_window): If make_cursor_line_fully_visible returns 0,
12182 go to try_to_scroll.
12184 * buffer.c (Fbuffer_local_value): Store current value into its binding
12185 so we get the up-to-date value for the binding that is loaded.
12187 * eval.c (Fdefmacro): Doc fix.
12189 2002-07-05 Dave Love <fx@gnu.org>
12191 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
12194 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
12195 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
12196 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
12197 CCL_LookupCharConstTbl.
12198 (syms_of_ccl): Defvar translation-hash-table-vector.
12200 2002-07-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
12202 * xdisp.c: Remove unused variable `face'.
12204 2002-07-04 Juanma Barranquero <lektu@terra.es>
12206 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
12207 obsolescence information.
12209 2002-07-03 Andrew Choi <akochoi@shaw.ca>
12211 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
12212 pattern. Search cache first.
12213 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
12215 (XLoadQueryFont): Use it.
12217 2002-07-02 Richard M. Stallman <rms@gnu.org>
12219 * keymap.c (Fdefine_key): Doc fix.
12221 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
12223 2002-07-02 Juanma Barranquero <lektu@terra.es>
12225 * keymap.c (syms_of_keymap): Fix typo.
12227 2002-07-01 Andrew Choi <akochoi@shaw.ca>
12229 * s/darwin.h: Define POSIX_SIGNALS.
12231 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
12232 and FSRefMakePath to convert FSSpec returned with Apple Event to
12234 (mac_initialize) [TARGET_API_MAC_CARBON]:
12235 Call init_required_apple_events and disable the `Quit' menu item
12236 provided automatically by the Carbon Toolbox.
12238 2002-07-01 Dave Love <fx@gnu.org>
12240 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
12243 * xterm.c: Fix prototype for K&R.
12245 * term.c (costs_set): Declare static, non-initialized for pcc.
12247 2002-07-01 Richard M. Stallman <rms@gnu.org>
12249 * keyboard.c (timer_last_idleness_start_time): New variable.
12250 (timer_start_idle): Set that.
12251 (read_key_sequence): Use that to reset timer_idleness_start_time
12254 * window.c (Frecenter): With arg, set optional_new_start.
12256 * xdisp.c (redisplay_internal): Make optional_new_start really work.
12258 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
12259 buffer for completion.
12261 2002-06-29 Ken Raeburn <raeburn@gnu.org>
12263 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
12265 2002-06-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12267 * keyboard.c (readable_filtered_events): New function that filters
12268 FOCUS_IN_EVENT depending on parameter.
12269 (readable_events): Calls readable_filtered_events, not filtering
12271 (get_filtered_input_pending): New function, filtering parameter passed
12272 to readable_filtered_events.
12273 (get_input_pending): Calls get_filtered_input_pending, not filtering
12275 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
12278 * xterm.h (struct x_output): Add focus_state.
12280 * xterm.c (x_focus_changed): New function.
12281 (x_detect_focus_change): New function.
12282 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
12283 EnterNotify and LeaveNotify to track X focus changes.
12285 2002-06-28 Andreas Schwab <schwab@suse.de>
12287 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
12289 2002-06-27 Kim F. Storm <storm@cua.dk>
12291 * xdisp.c: (mode_line_string_list, mode_line_string_face)
12292 (mode_line_string_face_prop): New variables.
12293 (store_mode_line_string): New function.
12294 (display_mode_element): Use store_mode_line_string to
12295 add mode-line string elements to mode_line_string_list
12296 when mode_line_string_list is non-nil.
12297 (Fformat_mode_line): Now returns propertized string by
12298 default. New arg NO-PROPS to ignore properties.
12299 (decode_mode_spec): Only add two dashes for %- in propertized
12301 (syms_of_xdisp): Init and staticpro mode_line_string_list.
12303 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
12305 * minibuf.c (minibuffer_completion_contents): Add return type.
12307 2002-06-27 Juanma Barranquero <lektu@terra.es>
12309 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
12311 2002-06-26 Juanma Barranquero <lektu@terra.es>
12313 * fileio.c (read_file_name_cleanup): Add missing return.
12315 2002-06-26 Richard M. Stallman <rms@gnu.org>
12317 * window.c (Frecenter): Don't set force_start flag.
12319 * minibuf.c (do_completion, Fminibuffer_complete_word)
12320 (Fminibuffer_completion_help): Complete just the text before point.
12321 (minibuffer_completion_contents): New function.
12323 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
12325 * frame.c (frames_bury_buffer): Function deleted.
12327 2002-06-25 Miles Bader <miles@gnu.org>
12329 * callint.c (Fcall_interactively): When checking to see if doprnt hit
12330 the end of callint_message, allow for a terminating '\0'.
12332 2002-06-24 Juanma Barranquero <lektu@terra.es>
12334 * w32select.c: Include composite.h
12336 * w16select.c: Likewise.
12338 2002-06-24 Kenichi Handa <handa@etl.go.jp>
12340 * callproc.c (Fcall_process): If code detection is necessary,
12341 call detect_coding directly here.
12343 * coding.c (detect_eol): Preserve coding->cmp_data.
12345 * w16select.c (Fw16_get_clipboard_data):
12346 * w32fns.c (w32_to_x_font):
12347 * w32select.c (Fw32_get_clipboard_data):
12348 * xselect.c (selection_data_to_lisp_data):
12349 * xterm.c (XTread_socket): Disable composition handling.
12351 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
12353 * print.c (temp_output_buffer_setup): Kill all local variables.
12355 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
12357 * lread.c (Fread): Remove redundant and imprecise declaration.
12359 * xfns.c (check_x_display_info): Use check_x_frame.
12361 * .gdbinit (xprintsym): Use the new `xname' field.
12364 2002-06-22 Jason Rumney <jasonr@gnu.org>
12366 * w32fns.c (file_dialog_callback): New function.
12367 (Fx_file_dialog): Allow selecting directories as well as files.
12369 2002-06-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
12371 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
12372 OpenBSD. Add support for mipseb-*-netbsd* machines.
12374 2002-06-17 Andrew Choi <akochoi@shaw.ca>
12376 * macterm.c (mac_scroll_area): Set foreground and backcolor to
12377 black and white before scrolling. Restore frame background and
12378 foreground color after scrolling.
12379 (do_window_update): Call XClearWindow before calling expose_frame.
12380 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
12381 FRAME_FOREGROUND_PIXEL of frame.
12383 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
12384 test Mac command key as <ALT> key.
12386 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
12388 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
12390 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
12391 Lookup keys in function-key-map immediately so that key-translation-map
12392 can be applied earlier.
12393 Remove function_key_possible and key_translation_possible, replaced
12394 by checking `keytran_start < t'.
12396 * .gdbinit (xsymbol): Use the new `xname' field.
12398 2002-06-17 Andrew Choi <akochoi@shaw.ca>
12400 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
12401 test Mac command key as <ALT> key.
12403 * mac.c (do_applescript): Call initialize_applescript if necessary
12404 when first called. Dispose of result_desc only when there is no error.
12405 (Fdo_applescript): Use %d format specifier instead of %ld.
12407 2002-06-16 Andrew Choi <akochoi@shaw.ca>
12409 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
12410 of FrontWindow for cases keyDown and autoKey.
12412 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
12413 Vdefault_fontset to Monaco with mac-roman coding.
12415 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
12416 init_process before and after inclusion of Carbon/Carbon.h, resp.
12418 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
12420 (add_font_name_table_entry): New function.
12421 (init_font_name_table): Use add_font_name_table_entry; add italic,
12422 bold, and bold-italic entries for truetype fonts.
12424 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
12426 (try_font_list) [MAC_OS]: If no font matches given registry, try
12427 fonts with any registry matching face_family.
12428 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
12430 * s/darwin.h: If autoconf detects the Ncurses library, define
12431 LIBS_TERMCAP to -lncurses to use it.
12433 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
12435 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
12437 2002-06-15 Richard M. Stallman <rms@gnu.org>
12439 * window.c (Fset_window_configuration): Explicitly preserve
12440 the point value that new_current_buffer had at the start.
12442 2002-06-14 Juanma Barranquero <lektu@terra.es>
12444 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
12447 2002-06-14 Kim F. Storm <storm@cua.dk>
12449 * insdel.c (insert_1_both, insert_from_string_1)
12450 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
12451 insert happened in the end_unchanged region. Otherwise, the
12452 redisplay may be confused and duplicate the last line in the
12453 buffer [seen after save-buffer when require-final-newline==t].
12455 2002-06-13 Jason Rumney <jasonr@gnu.org>
12457 * w32.c (init_environment): Remove EMACSLOCKDIR.
12458 (stat): Swap _S_IFDIR and _S_IFREG.
12460 2002-06-13 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
12462 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
12463 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
12464 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
12465 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
12466 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
12467 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
12468 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
12469 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
12470 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
12471 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
12472 SELECTION_REQUEST_EVENT, selection_clear_event to
12473 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
12474 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
12475 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
12476 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
12477 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
12478 no_event to NO_EVENT.
12480 2002-06-12 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
12482 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
12484 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
12486 * intervals.c (textget): Don't forget to `return'.
12487 (lookup_char_property): Use XCAR/XCDR.
12489 2002-06-12 Juanma Barranquero <lektu@terra.es>
12491 * xdisp.c (Fformat_mode_line): Fix typo.
12493 2002-06-12 Kim F. Storm <storm@cua.dk>
12495 * xdisp.c (Fformat_mode_line): New function.
12496 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
12497 (store_frame_title_char, store_frame_title): Use unconditionally.
12498 (init_xdisp): Defsubr Fformat_mode_line.
12499 Initialize frame_title_buf etc. unconditionally.
12501 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
12503 * keyboard.c (read_key_sequence):
12504 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
12505 things through those maps after downcasing events.
12506 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
12507 applies after function-key-map.
12508 Make sure that keytran can be done in the middle in the sequence.
12509 Be careful not to throw away events past the one we downcase.
12511 * lread.c (read_integer): Remove unused var `tem'.
12512 (read1): Fix int/Lisp_Object mixup.
12514 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
12516 2002-06-11 Richard M. Stallman <rms@gnu.org>
12518 * keyboard.c (readable_events): Ignore any number of
12519 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
12521 2002-06-09 Miles Bader <miles@gnu.org>
12523 * xfaces.c (Ftty_supports_face_attributes_p): New function.
12524 (parse_rgb_list, tty_lookup_color): New functions.
12525 (tty_defined_color): Use `tty_lookup_color' to do all the work.
12526 (color_distance, Fcolor_distance): New functions.
12527 (TTY_SAME_COLOR_THRESHOLD): New macro.
12528 (Qtty_color_standard_values): New variable.
12529 (syms_of_xfaces): Initialize new vars & functions.
12531 2002-06-08 Colin Walters <walters@verbum.org>
12533 * textprop.c (Vchar_property_alias_alist): New variable.
12534 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
12536 * intervals.c (lookup_char_property): New function for looking up
12537 overlay and text properties, created from textget.
12540 * intervals.h (lookup_char_property): Declare.
12541 (Vchar_property_alias_alist): Declare.
12543 * buffer.c (Foverlay_get): Use lookup_char_property.
12545 2002-06-07 Sam Steingold <sds@gnu.org>
12547 * xselect.c (lisp_data_to_selection_data): Fix last change:
12548 *data_ret is not a Lisp string, while unibyte_string is.
12550 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
12552 * xselect.c (lisp_data_to_selection_data): Fix last change:
12555 2002-06-07 Andreas Schwab <schwab@suse.de>
12557 * m/amdx86-64.h: New file.
12559 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
12561 * fns.c (Fstring_make_unibyte): Doc fix.
12563 * xselect.c (lisp_data_to_selection_data): If the requested type
12564 is STRING, call string_make_unibyte to encode the selected text
12567 * window.c (Fset_window_hscroll): Doc fix.
12569 2002-06-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
12571 * fileio.c (choose_write_coding_system):
12572 Call select-safe-coding-system properly.
12574 2002-06-03 Richard M. Stallman <rms@gnu.org>
12576 * xdisp.c (message_with_string): Error if STRING is not a string.
12578 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
12580 * fileio.c (choose_write_coding_system): Pass FILE arg to
12581 Vselect_safe_coding_system_function.
12583 2002-06-03 Ken Raeburn <raeburn@gnu.org>
12585 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
12587 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
12589 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
12590 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
12591 * keymap.c (describe_command): Likewise.
12592 * minibuf.c (read_minibuf): Likewise.
12594 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
12595 Cast `current_column' return value to int.
12596 (back_to_previous_visible_line_start)
12597 (reseat_at_next_visible_line_start, next_element_from_buffer):
12598 Cast `indented_beyond_p' 3rd arg to float.
12600 * indent.c (last_known_column): Now a float.
12601 (current_column_1, position_indentation, current_column)
12602 (string_display_width): Return float.
12603 (Fcurrent_column): Cast `current_column' return value to int.
12604 (Fcurrent_indentation): Cast `position_indentation' retval to int.
12605 (indented_beyond_p): Third arg now a float.
12606 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
12608 * lisp.h (current_column): Now returns float.
12609 (indented_beyond_p): 3rd arg now a float.
12611 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
12613 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
12614 is Qcompound_text_with_extensions.
12616 * xselect.c (lisp_data_to_selection_data): Always set selection
12617 type as string if x_encode_text returns streingp non-NULL.
12619 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
12621 2002-05-30 Richard M. Stallman <rms@gnu.org>
12623 * window.c (Fset_window_configuration): Correct the handling
12624 of point in current buffer, to work with multiple windows.
12626 2002-05-29 Colin Walters <walters@verbum.org>
12628 * lread.c (Fread_from_string): Don't depend on order of evaluation
12629 for C function parameters.
12631 2002-05-28 Richard M. Stallman <rms@gnu.org>
12633 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
12634 way for blinked-off state and for a nonselected window.
12636 * window.c (window_scroll_pixel_based): Don't call Fbolp;
12637 instead, see if the new start pos is at beginning of line.
12639 * fileio.c (Fwrite_region): If START is a string, don't
12640 make any annotations.
12642 * eval.c (syms_of_eval): Doc fix.
12644 2002-05-28 Colin Walters <walters@debian.org>
12646 * emacs.c (USAGE1): Add --no-splash.
12647 (standard_args): Ditto.
12649 2002-05-28 Colin Walters <walters@gnu.org>
12651 * lread.c (readchar_count): New variable.
12652 (readchar): Increment it.
12653 (unreadchar): Decrement it.
12654 (read_multibyte): Decrement it.
12655 (Vread_with_symbol_positions): New variable.
12656 (Vread_symbol_positions_list): New variable.
12657 (read_internal_start): New function, created from Fread and
12658 Fread_from_string. Handle Vread_symbol_positions_list and
12659 Vread_with_symbol_positions.
12660 (readevalloop, Fread, Fread_from_string): Use it.
12661 (read1): Use readchar_count to add symbol positions to
12662 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
12663 (syms_of_lread): DEFVAR_LISP and initialize them.
12665 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
12666 (substitute_object_recurse, substitute_object_in_subtree)
12667 (substitute_in_interval): Prototype.
12668 (read_multibyte): Return c if it's less than zero.
12670 2002-05-28 Kim F. Storm <storm@cua.dk>
12672 * fileio.c (Fread_file_name_internal): Added brute-force
12673 speed up for using predicate file-directory-p.
12675 2002-05-28 Kim F. Storm <storm@cua.dk>
12677 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
12679 (syms_of_fileio): DEFVAR_LISP them.
12680 (read_file_name_cleanup): New unwind function.
12681 (Fread_file_name_internal): Only return completions satifying
12682 Vread_file_name_predicate. Temporarily unwind protect and rebind
12683 default-directory while checking completions against the predicate.
12684 (Fread_file_name): Added PREDICATE argument. Specbind it to
12685 Vread_file_name_predicate during completion.
12686 Call Vread_file_name_function to read the file name if non-nil.
12688 * lisp.h (Fread_file_name): Now has 6 args.
12690 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
12691 predicate for Fread_file_name when reading directory name.
12692 Supply Qnil for predicate in other calls to Fread_file_name.
12694 2002-05-26 Miles Bader <miles@gnu.org>
12696 * term.c (tty_capable_p): New function.
12697 * dispextern.h (tty_capable_p): New function declaration.
12698 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
12699 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
12701 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
12703 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
12704 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
12705 (Vwrite_region_annotate_functions): Docstring fix.
12707 2002-05-23 Kim F. Storm <storm@cua.dk>
12709 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
12710 phys_cursor's hpos is overwritten. This is still not completely
12711 correct, as it doesn't really make sense to use hpos at all to
12712 get the cursor glyph (as that is relative to the width of the
12713 characters on the line, which may have changed during the update).
12715 2002-05-22 Jason Rumney <jasonr@gnu.org>
12717 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
12719 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
12720 Use modified enumfont_t struct.
12722 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
12724 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
12725 Handle the `hbar' cursor type.
12726 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
12728 * w32fns.c (Qhbar): New variable.
12729 (x_specified_cursor_type): Use it.
12731 2002-05-21 Ken Raeburn <raeburn@gnu.org>
12733 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
12734 now, when the address is needed.
12736 2002-05-21 Colin Walters <walters@gnu.org>
12738 * Makefile.in (shortlisp): Add font-core.el.
12740 2002-05-20 Richard M. Stallman <rms@gnu.org>
12742 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
12744 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
12745 equivalent key bindings here.
12747 2002-05-20 Ken Raeburn <raeburn@gnu.org>
12749 Change symbol structure to contain a lisp object for the symbol
12751 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
12752 object field named "xname".
12753 (SYMBOL_NAME): New macro.
12754 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
12756 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
12757 (mark_object, gc_sweep): Use symbol xname field and XSTRING
12758 instead of name field.
12759 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
12760 SYMBOL_NAME instead of XSYMBOL and name field.
12761 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
12762 instead of XSYMBOL and name field.
12763 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
12764 and SYMBOL_NAME instead of XSYMBOL and name field.
12765 * coding.c (Fread_coding_system, code_convert_region1)
12766 (code_convert_string1, code_convert_string_norecord)
12767 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
12768 XSYMBOL and name field.
12769 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
12770 (Fmake_variable_buffer_local, Fmake_local_variable)
12771 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
12772 of XSYMBOL and name field.
12773 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
12774 XSYMBOL and name field.
12775 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
12776 instead of XSYMBOL and name field.
12777 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
12778 XSYMBOL and name field.
12779 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
12780 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
12781 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
12782 instead of XSYMBOL and name field.
12783 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
12784 (parse_modifiers, apply_modifiers, Fevent_convert_list)
12785 (parse_solitary_modifier, Fexecute_extended_command):
12786 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
12787 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
12788 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
12789 of XSYMBOL and name field.
12790 (describe_command, describe_translation): Use SYMBOL_NAME and
12791 assignment instead of XSYMBOL and name field and XSETSTRING.
12792 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
12793 instead of XSYMBOL and name field.
12794 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
12795 name field and XSETSTRING.
12796 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
12797 of XSYMBOL and name field.
12798 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
12799 assignment instead of XSYMBOL and name field and XSETSTRING.
12800 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
12801 XSTRING instead of XSYMBOL and name field.
12802 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
12803 and XSTRING instead of XSYMBOL and name field.
12804 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
12805 and XSTRING instead of XSYMBOL and name field.
12806 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
12807 XSTRING instead of XSYMBOL and name field.
12808 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
12809 of XSYMBOL and name field.
12810 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
12811 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
12813 2002-05-19 Ken Raeburn <raeburn@gnu.org>
12815 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
12816 and XCDR real rvalues in most configurations.
12818 * buffer.c (fix_overlays_in_range, fix_overlays_before):
12819 Don't take the address of the cdr part of a cons cell; instead, track
12820 the parent cell and call XSETCDR, or set the variable for the head
12821 of the list if we haven't started down the list yet.
12823 2002-05-19 Richard M. Stallman <rms@gnu.org>
12825 * doc.c (reread_doc_file): Don't ask for confirmation.
12827 2002-05-18 Jason Rumney <jasonr@gnu.org>
12829 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
12830 (xbm_load_image): Use it.
12832 (xbm_read_bitmap_data): Reverted to xfns.c version.
12833 From David Ponce <david@dponce.com>.
12835 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
12837 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
12840 2002-05-16 Juanma Barranquero <lektu@terra.es>
12842 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
12844 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
12846 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
12848 (read_char_minibuf_menu_prompt): Fix typo.
12850 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
12852 * eval.c (Fcommandp): Doc fix.
12854 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
12856 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
12857 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
12858 (Fset_keymap_parent): Gcpro a bit more.
12859 (access_keymap): Gcpro around meta_map call and around the main loop.
12860 (get_keyelt): Gcpro when following indirect references.
12861 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
12862 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
12863 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
12864 Remove useless ad-hoc remap code.
12866 2002-05-13 Richard M. Stallman <rms@gnu.org>
12868 * search.c (search_buffer): Give up boyer moore search if inverse
12869 translation change charset_base.
12871 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
12873 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
12874 characters is carried over from the previous block of text, adjust
12875 coding->produced to account for the extra character.
12877 2002-05-11 Andreas Schwab <schwab@suse.de>
12879 * coding.c (intersection): Keep the elements of the returned list
12880 in the same order as in the first list.
12882 2002-05-11 Kim F. Storm <storm@cua.dk>
12884 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
12885 only update cmm_size if realloc actually succeeds.
12886 Testing with initial size of 2 elements revealed that using
12887 realloc on GNU/Linux would cause a random trap in xmalloc
12888 later on, so I rewrote the code to use malloc/bcopy/free instead
12891 2002-05-10 Jason Rumney <jasonr@gnu.org>
12893 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
12895 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
12897 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
12898 parens, to ensure correct evaluation order.
12900 2002-05-10 Kim F. Storm <storm@cua.dk>
12902 * keymap.c (Vemulation_mode_map_alists): New variable.
12903 (syms_of_keymap): DEFVAR_LISP it.
12904 (current_minor_maps): Process keymap alists in that list before
12905 minor-mode-overriding-map-alist and minor-mode-map-alist.
12907 2002-05-09 Richard M. Stallman <rms@gnu.org>
12909 * search.c (Freplace_match): Doc fix.
12911 2002-05-09 Kim F. Storm <storm@cua.dk>
12913 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
12914 Enlarge cursor rectangle drawn around image with non-zero relief.
12916 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
12917 Enlarge cursor rectangle drawn around image with non-zero relief.
12919 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
12920 Enlarge cursor rectangle drawn around image with non-zero relief.
12922 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
12924 * xselect.c (lisp_data_to_selection_data): Don't set selection
12925 type if comes from the Lisp object's car. If the selection
12926 contains a pure ASCII text, always return QSTRING as its type.
12928 2002-05-06 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
12930 * mac.c (mac-cut-function): Doc fix.
12932 2002-05-05 Richard M. Stallman <rms@gnu.org>
12934 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
12936 2002-05-04 Jason Rumney <jasonr@gnu.org>
12938 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
12939 for event-click-count.
12941 * process.c (init_process): Only add server subfeature if we can
12942 use non-blocking I/O.
12944 2002-05-04 Andrew Choi <akochoi@shaw.ca>
12946 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
12949 2002-05-03 Jason Rumney <jasonr@gnu.org>
12951 * process.c (Fmake_network_process): Only support server sockets
12952 when we can make them non-blocking.
12954 * s/ms-w32.h (HAVE_SELECT): Define.
12956 * w32.h (FILE_NDELAY): New flag.
12958 * w32.c (sys_getpeername, fcntl): New functions.
12959 (_sys_read_ahead): Temporarily block on non-blocking sockets.
12961 * w32proc.c: include sys/file.h.
12963 2002-05-03 Colin Walters <walters@verbum.org>
12965 * callproc.c (Vgame_score_directory): Renamed to
12966 Vshared_game_score_directory.
12968 2002-04-30 Richard M. Stallman <rms@gnu.org>
12970 * s/gnu.h [emacs]: Include stdio.h.
12971 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
12973 * eval.c (do_autoload): Error if called while preparing to dump.
12975 * fns.c (Frequire): Error if need to load while preparing to dump.
12977 2002-04-28 Colin Walters <walters@verbum.org>
12979 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
12980 Default to "~/.emacs.d/games".
12982 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
12984 * lread.c (openp): Change arg exec_only to predicate.
12985 (build_load_history): Use XCAR/XCDR.
12986 (Flocate_file_internal): New fun.
12987 (syms_of_lread): Defsubr it.
12988 (Fload): Update call to openp.
12990 * lisp.h (openp): Update prototype.
12992 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
12993 * w32proc.c (sys_spawnve):
12994 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
12995 * w32.c (check_windows_init_file):
12996 * sound.c (Fplay_sound_internal):
12997 * process.c (Fstart_process):
12998 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
12999 * mac.c (run_mac_command):
13000 * emacs.c (init_cmdargs):
13001 * callproc.c (Fcall_process): Update call to openp.
13003 * textprop.c (remove_properties): Don't use XCAR without CONSP.
13005 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
13007 2002-04-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
13009 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
13010 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
13012 2002-04-28 Richard M. Stallman <rms@gnu.org>
13014 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
13016 * eval.c (Fcommandp): New arg for_call_interactively.
13017 * lisp.h (Fcommandp): Declare new arg.
13019 2002-04-28 Jason Rumney <jasonr@gnu.org>
13021 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
13023 * w32.c (stat, fstat): Use file index information to generate
13024 inodes for directories where available.
13026 2002-04-26 Andrew Choi <akochoi@shaw.ca>
13028 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
13029 [HAVE_CARBON]: Include Mac object files.
13031 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
13032 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
13033 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
13034 MAC_OSX, and MAC_OS instead of macintosh.
13036 * editfns.c [MAC_OS8]: Include stdio.h.
13038 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
13040 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
13043 * process.c (QCfamily, QCfilte): Declare extern.
13044 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
13047 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
13049 * tparam.c [MAC_OSX]: Don't define BC and UP.
13051 * config.in [HAVE_CARBON]: Add.
13053 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
13054 Move here from mac/src and mac/inc.
13056 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
13058 2002-04-26 Gerd Moellmann <gerd@gnu.org>
13060 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
13061 Compute phys_cursor_width from the x position returned
13062 by x_draw_glyhs, which is cheaper.
13063 (x_display_and_set_cursor): Compute the buffer-local value
13064 of `cursor-in-non-selected-windows' only when needed.
13066 2002-04-25 Gerd Moellmann <gerd@gnu.org>
13068 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
13069 cursor on a stretch glyph has a width that depends on
13070 x_stretch_cursor_p.
13072 2002-04-25 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
13074 * abbrev.c (abbrev-start-location): Doc fix.
13076 * indent.c (Fvertical_motion): Fix last change.
13078 2002-04-25 Gerd Moellmann <gerd@gnu.org>
13080 * indent.c (Fvertical_motion): Move to the start of the line
13081 containing PT before moving up or down.
13083 2002-04-24 Gerd Moellmann <gerd@gnu.org>
13085 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
13086 case of writing a whole row, more or less analogous to the case of
13087 writing only parts of a row.
13089 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
13092 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
13094 2002-04-23 Colin Walters <walters@verbum.org>
13096 * buffer.c (syms_of_buffer): Doc fix.
13098 2002-04-23 Gerd Moellmann <gerd@gnu.org>
13100 * xterm.c (notice_overwritten_cursor): Handle the special case
13101 of the cursor being in the first blank non-text line at the
13104 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
13105 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
13106 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
13107 bar cursors only, to make phys_cursor_width contain what its name
13109 (notice_overwritten_cursor): Consider the cursor image erased if
13110 the output area intersects the cursor image in y-direction.
13112 2002-04-23 Simon Marshall <simon@gnu.org>
13114 * xfns.c (x_set_mouse_color): Change default for cross_cursor
13117 2002-04-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
13119 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
13121 2002-04-22 Kim F. Storm <storm@cua.dk>
13123 * textprop.c (remove_properties): Fixed trap for malformed plist.
13125 2002-04-22 Richard M. Stallman <rms@gnu.org>
13127 * cmds.c (Fend_of_line): Handle intangible text in mid line.
13129 * window.c (make_window): Initialize height_fixed_p,
13130 last_cursor_off_p, and p->cursor_off_p slots.
13132 2002-04-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
13134 * fns.c (use-dialog-box): Doc fix.
13136 2002-04-19 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
13138 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
13139 variables `row', `i' and `area'.
13140 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
13143 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
13145 * xfaces.c (clear_font_table): Don't free the default font of
13146 a frame even if it's on another display.
13147 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
13150 2002-04-19 Juanma Barranquero <lektu@terra.es>
13152 * indent.c (Fmove_to_column): Remove unused local variable
13153 `next_boundary_byte'.
13154 (current_column_1): Likewise.
13156 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
13158 * msdos.c (Qhbar): New variable.
13159 (syms_of_msdos): Intern and staticpro it.
13160 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
13163 2002-04-19 Dave Lambert <dlambert@acm.org>
13165 Theses change implement an underscore-like (`hbar') cursor.
13167 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
13169 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
13170 Handle the `hbar' cursor type.
13171 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
13173 * xfns.c (Qhbar): New variable.
13174 (syms_of_xfns): Intern and staticpro it.
13175 (x_specified_cursor_type): Handle `hbar' cursor.
13177 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
13180 2002-04-18 Richard M. Stallman <rms@gnu.org>
13182 * textprop.c (remove_properties): New arg LIST allows scanning
13183 either a list or a plist.
13184 (interval_has_some_properties_list): New function, like
13185 interval_has_some_properties using list instead of plist.
13186 All callers changed.
13187 (Fremove_list_of_text_properties): New function.
13188 (syms_of_textprop): Defsubr it.
13190 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
13192 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
13194 2002-04-17 Juanma Barranquero <lektu@terra.es>
13196 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
13198 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
13200 * window.c (coordinates_in_window): Don't report on margin area
13201 if its width is zero.
13203 2002-04-16 Jason Rumney <jasonr@gnu.org>
13205 * w32fns.c (Fx_file_dialog): Decode file name before using.
13207 * w32term.c (construct_drag_n_drop): Likewise.
13209 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
13211 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
13212 store load-history in pure space.
13214 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
13216 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
13218 * xterm.c (Qlatin_1, Qutf_8): New vars.
13219 (syms_of_xterm): Initialize them.
13220 (XTread_socket): Eliminate incorrect optimization that tried to avoid
13221 decoding the output of X*LookupString.
13222 Always use latin-1 to decode the output of XLookupString.
13223 Try Xutf8LookupString if XmbLookupString failed.
13225 * region-cache.c (new_region_cache): Use BEG.
13227 2002-04-16 Gerd Moellmann <gerd@gnu.org>
13229 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
13230 configuration files.
13231 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
13234 2002-04-15 Andreas Schwab <schwab@suse.de>
13236 * config.in: Regenerated using autoheader.
13238 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
13239 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
13240 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
13241 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
13242 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
13243 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
13244 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
13245 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
13246 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
13247 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
13248 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
13249 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
13250 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
13251 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
13252 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
13253 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
13254 STACK_DIRECTION, now set by autoconf.
13256 2002-04-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
13258 * dispnew.c (marginal_area_string): Sort arguments.
13260 * dispextern.h (marginal_area_string): Add prototype.
13262 2002-04-13 Richard M. Stallman <rms@gnu.org>
13264 * fileio.c (Finsert_file_contents):
13265 Don't call temp_output_buffer_setup--do just part, by hand.
13267 * coding.c (run_pre_post_conversion_on_str):
13268 Don't call temp_output_buffer_setup--do just part, by hand.
13270 * keyboard.c (command_loop_1): Don't call start_hourglass
13271 or cancel_hourglass when executing a macro.
13273 * marker.c (count_markers): New function.
13275 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
13276 grow without limit. Move recently used elements to the front.
13278 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
13280 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
13282 2002-04-12 Gerd Moellmann <gerd@gnu.org>
13284 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
13285 rows marginal areas.
13286 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
13287 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
13289 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
13291 2002-04-12 Dave Love <fx@gnu.org>
13293 * dispnew.c (marginal_area_string): New.
13295 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
13296 (Qleft_margin, Qright_margin): Declare.
13297 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
13299 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
13300 note_mode_line_highlight and extended.
13302 * keyboard.c (Qleft_margin, Qright_margin): Declare.
13303 (make_lispy_event): Deal with mouse events in margins.
13305 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
13307 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
13309 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
13310 than deactivating the mark if tmm is set to `lambda'.
13311 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
13312 Use a single event for HELP_EVENT.
13313 (Fexecute_extended_command): Save last_point_position.
13315 2002-04-12 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
13317 * lisp.h (Fpropertize): Add prototype.
13319 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
13321 2002-04-10 Colin Walters <walters@verbum.org>
13323 * config.in: Add HAVE_SHARED_GAME_DIR.
13325 * callproc.c: (Vgame_score_directory): New variable.
13326 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
13328 2002-04-10 Richard M. Stallman <rms@gnu.org>
13330 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
13332 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
13334 * minibuf.c (read_minibuf): Use empty_string.
13335 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
13336 Short-circuit the search as soon as it "failed".
13337 (Fall_completions): Allow lambda forms and lists of strings for alist.
13338 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
13339 when require_match is nil.
13340 (Ftest_completion): Rename from `test_completion' and export to elisp.
13341 Call the predicate also when alist is a list.
13342 Obey Vcompletion_regexp_list.
13343 (do_completion, Fminibuffer_complete_and_exit): Use it.
13344 (Fassoc_string): Rename from `assoc_for_completion'.
13345 Allow list of strings as well and export to elisp.
13347 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
13349 * puresize.h (BASE_PURESIZE): Increase to 900KB.
13351 2002-04-08 Juanma Barranquero <lektu@terra.es>
13353 * w32.c (sys_accept): Don't hide variable `s'.
13355 2002-04-05 Gerd Moellmann <gerd@gnu.org>
13357 * callint.c (Fcall_interactively): Use INTEGERP instead of
13358 NUMBERP for checking Vhistory_length.
13360 2002-04-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
13362 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
13363 Doc fix to reflect it.
13365 2002-04-04 Richard M. Stallman <rms@gnu.org>
13367 * xdisp.c (display_mode_element): New arg RISKY.
13368 Disregard text props found or specified within a variable
13369 that isn't marked risky-local-variable.
13370 (Qrisky_local_variable): New variable.
13371 (syms_of_xdisp): Init and staticpro it.
13373 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
13375 * undo.c (record_point): New fun.
13376 (record_delete, record_insert): Use it.
13378 2002-04-03 Juanma Barranquero <lektu@terra.es>
13380 * doc.c (Fdocumentation): Add missing parentheses.
13381 (Fdocumentation_property): Likewise.
13383 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
13385 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
13386 data is 0, just return nil.
13388 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
13390 * msdos.c (syms_of_msdos): Fix last change with
13391 mouse_autoselect_window.
13393 2002-04-03 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
13395 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
13396 mouse_autoselect_window.
13398 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
13400 * keyboard.c (make_lispy_event): Handle unknown keysyms together
13401 with system-specific keysyms. Use it also for unknown function keys.
13403 * doc.c (reread_doc_file): Return whether reload was attempted.
13404 (Fdocumentation, Fdocumentation_property): Don't try to reload
13405 if the doc is 0 and only ask once.
13407 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
13409 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
13411 * keyboard.c (read_char): If the event was Qselect_window,
13412 restore timer_idleness_start_time to its previous value.
13414 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
13416 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
13418 * region-cache.c (new_region_cache): Use BEG.
13420 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
13421 Use BEG and BEG_BYTE.
13423 * doc.c (get_doc_string): Return nil if the location is wrong.
13424 (reread_doc_file): New fun.
13425 (Fdocumentation, Fdocumentation_property):
13426 Call it if get_doc_string fails.
13427 (Fsnarf_documentation): Make it work for a dumped Emacs.
13429 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
13430 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
13432 * charset.c (Fstring): Allow 0 arguments.
13434 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
13436 * process.c (DATAGRAM_CONN_P, list_processes_1)
13437 (Fprocess_datagram_address, Fset_process_datagram_address)
13438 (Fset_network_process_options, server_accept_connection):
13439 Fix some int/Lisp_Object confusions (thank you union types).
13441 2002-04-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
13443 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
13445 * w32term.c: Likewise.
13446 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
13448 * keyboard.c (Qselect_window): New symbol.
13449 (head_table): Use it.
13450 (keys_of_keyboard): Bound select-window event to handle-select-window.
13451 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
13453 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
13454 (last_window): New variable.
13455 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
13456 (note_mouse_movement): Remove reimplemented code in #if 0.
13457 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
13460 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
13462 2002-03-31 Gerd Moellmann <gerd@gnu.org>
13464 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
13467 2002-03-30 Richard M. Stallman <rms@gnu.org>
13469 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
13470 loop whenever it stops making progress.
13472 * widget.c (set_frame_size): Don't call change_frame_size.
13474 2002-03-30 Gerd Moellmann <gerd@gnu.org>
13476 * dispnew.c (direct_output_for_insert):
13477 Call mark_window_display_accurate.
13479 2002-03-29 Jason Rumney <jasonr@gnu.org>
13481 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
13483 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
13485 * Makefile.in (lread.o): Depend on coding.h.
13487 * lread.c (openp, Fload): Encode the file name before passing it
13488 to `stat', `access', and `emacs_open'.
13489 (openp): GCPRO the encoded file name. Don't recompute Lisp
13490 strings unnecessarily.
13492 2002-03-29 Kim F. Storm <storm@cua.dk>
13494 * fns.c (Flax_plist_put): Doc fix.
13496 2002-03-28 Miles Bader <miles@gnu.org>
13498 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
13500 2002-03-27 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
13502 * process.c (set-network-process-options): Add usage.
13503 (make-network-process): Doc fix.
13505 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
13507 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
13509 2002-03-26 Richard M. Stallman <rms@gnu.org>
13511 * fns.c (Fsubstring_no_properties): New function.
13512 (Flax_plist_get, Flax_plist_put): New functions.
13513 (syms_of_fns): defsubr them.
13515 * xdisp.c (update_menu_bar): Test only update_mode_lines;
13516 don't test or alter w->update_mode_line.
13518 * window.c (Fdisplay_buffer): Doc fix.
13520 2002-03-24 Richard M. Stallman <rms@gnu.org>
13522 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
13524 2002-03-24 Gerd Moellmann <gerd@gnu.org>
13526 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
13527 (Fdefmacro): Handle `(declare ...)'.
13528 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
13529 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
13531 2002-03-24 Jason Rumney <jasonr@gnu.org>
13533 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
13534 (xbm_file_p): Add prototypes.
13535 (xbm_format, xbm_image_p): Sync with xfns.c.
13536 (reflect_byte): New function.
13537 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
13538 (xbm_load_image): Create bitmaps with a depth of 1.
13539 (init_xfns): Enable XBM images.
13541 2002-03-23 Jason Rumney <jasonr@gnu.org>
13543 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
13544 correctly. Do not pass up_modifier to keyboard buffer.
13546 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
13548 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
13550 * Makefile.in (bootstrapclean): New target.
13551 (bootstrap-temacs, bootstrap-doc): Remove.
13552 (bootstrap-emacs): Use a bog-standard `temacs'.
13553 Don't bother to build a DOC file.
13555 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
13557 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
13558 in temacs even if !CANNOT_DUMP.
13559 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
13561 * alloc.c (check_pure_size): Only output a warning.
13563 2002-03-22 Jason Rumney <jasonr@gnu.org>
13565 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
13568 * w32term.c (zv_bits): Declare as short, for word alignment.
13569 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
13570 (syms_of_w32term): Define x-use-underline-position-properties.
13572 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
13573 (clear_image_cache): Block input, fix logic, clear matrices in
13574 all frames that share this cache.
13576 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
13578 * emacs.c (main): Update the Copyright year in the blurb printed
13579 by "emacs --version".
13581 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
13583 * xterm.c (XTread_socket): If XK_ISO_Lock and
13584 XK_ISO_Last_Group_Lock are defined, handle keysyms between
13585 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
13587 2002-03-21 Kim F. Storm <storm@cua.dk>
13589 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
13590 menu-bar bindings in keymap and local-map properties _are_ used.
13591 But try keymap property first in accordance with 2002-01-03 patch.
13592 Added comment describing why this is not always reliable.
13593 (tool_bar_items): Ditto for tool-bar.
13595 2002-03-21 Jason Rumney <jasonr@gnu.org>
13597 * w32fns.c (x_clear_image_1): Disable color table code.
13599 2002-03-21 Kim F. Storm <storm@cua.dk>
13601 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
13602 removed the wrong version of the DEFUN macro; fixed it.
13604 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
13605 Fmember rather than Fmemq).
13606 (Fprovide): Check that subfeatures is a list.
13608 * process.c (QCfeature, QCdatagram): Removed variables.
13609 (QCtype, Qdatagram): New variables.
13610 (network_process_featurep): Removed function.
13611 (Fmake_network_process): Removed :feature check.
13612 Use :type 'datagram instead of :datagram t to create a datagram
13613 socket. This allows us to add other connection types (e.g. raw
13614 sockets) later in a consistent manner.
13615 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
13616 supported subfeatures for feature make-network-process.
13617 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
13618 Intern and staticpro QCtype and Qdatagram.
13619 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
13621 * xfns.c: (QCtype): Remove duplicate declaration and
13622 initialization (is now declared in process.c).
13624 * w32fns.c: (QCtype): Remove duplicate declaration and
13625 initialization (is now declared in process.c).
13627 2002-03-21 Richard M. Stallman <rms@gnu.org>
13629 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
13630 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
13631 when jumping to `fail' to avoid undoing reg changes in the
13632 last iteration of the loop.
13633 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
13635 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
13636 Depend on process.h.
13638 2002-03-20 Jason Rumney <jasonr@gnu.org>
13640 Most of the following changes are still conditional on HAVE_IMAGES
13641 which is not set by default on Windows.
13643 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
13645 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
13646 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
13647 (four_corners_best, x_clear_image_1, x_clear_image)
13648 (x_alloc_image_color, postprocess_image)
13649 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
13650 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
13651 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
13653 * w32gui.h (struct XImage): Define.
13655 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
13656 extract mouse co-ordinates.
13658 2002-03-20 Jason Rumney <jasonr@gnu.org>
13660 * w32.c (init_winsock): Dynamically load new server and UDP
13662 (socket_to_fd): New function.
13663 (sys_socket): Use it.
13664 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
13665 (sys_recvfrom, sys_sendto): New wrapper functions.
13667 * process.c (QCfamily, QCfilter): Remove duplicate declaration
13668 and initialization.
13670 * makefile.w32-in (LIBS): Remove $(WSOCK32).
13672 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
13674 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
13675 Don't use "sun" as a variable, it's a predefined constant on Sun
13678 2002-03-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
13680 * bytecode.c (Fbyte_code): Revert last change.
13682 2002-03-19 Kim F. Storm <storm@cua.dk>
13684 * makefile.w32-in (LIBS): Add $(WSOCK32).
13685 From David Ponce <dponce@voila.fr>.
13687 2002-03-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
13689 * process.c (wait_reading_process_input): Move variables `pname'
13690 and `pnamelen' down where they are used.
13692 * bytecode.c (Fbyte_code): Discard unused computed value to
13693 prevent gcc warning.
13695 * lisp.h (Fplist_member): Add prototype.
13697 2002-03-18 Kim F. Storm <storm@cua.dk>
13699 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
13700 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
13702 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
13703 Remove explicit GNU_LINUX settings for datagram support.
13705 2002-03-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
13707 * process.c (Fmake_network_process): Remove unused variable `sa'.
13708 Doc fix. Add usage:.
13709 (set_socket_options): Remove unused variables `optnum' and `opttype'.
13711 2002-03-17 Richard M. Stallman <rms@gnu.org>
13713 * xdisp.c (cursor_type_changed): New variable.
13714 (redisplay_internal): Redisplay all windows if cursor_type_changed.
13715 Clear it when clearing windows_or_buffers_changed.
13716 (try_cursor_movement, redisplay_window, try_window_id)
13717 (try_window_reusing_current_matrix): Test cursor_type_changed
13718 along with windows_or_buffers_changed.
13720 * window.h (cursor_type_changed): New variable.
13722 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
13723 not update_mode_lines, and always set it to 1.
13725 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
13726 if no frames needed redrawing.
13728 2002-03-17 Kim F. Storm <storm@cua.dk>
13730 The following changes add support for network server processes,
13731 datagram connections, and local (unix) sockets.
13733 * process.h (struct Lisp_Process): New member log.
13734 Doc fix: Member command used to indicate stopped network process.
13735 Doc fix: Member childp contains plist for network process.
13736 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
13738 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
13739 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
13740 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
13742 (NETCONN1_P): New macro.
13743 (DATAGRAM_SOCKETS): New conditional symbol.
13744 (datagram_address): New array.
13745 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
13746 (status_message): Use concat3.
13747 (Fprocess_status): Add `listen' status to doc string. Return `stop'
13748 for a stopped network process.
13749 (Fset_process_buffer): Update contact plist for network process.
13750 (Fset_process_filter): Ditto. Don't enable input for stopped
13751 network processes. Server must listen, even if filter is t.
13752 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
13754 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
13755 (Fprocess_contact): Added KEY argument. Handle datagrams.
13756 (list_processes_1): Optionally show only processes with the query
13757 on exit flag set. Dynamically adjust column widths. Omit tty
13758 column if not needed. Report stopped network processes.
13759 Identify server and datagram network processes.
13760 (Flist_processes): New optional arg `query-only'.
13761 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
13762 (conv_lisp_to_sockaddr, set_socket_options)
13763 (network_process_featurep, unwind_request_sigio): New helper functions.
13764 (Fprocess_datagram_address, Fset_process_datagram_address):
13765 (Fset_network_process_options): New lisp functions.
13766 (Fopen_network_stream): Removed. Now defined in simple.el.
13767 (Fmake_network_process): New lisp function. Code is based on previous
13768 Fopen_network_stream, but heavily reworked with new property list based
13769 argument list, support for datagrams, server processes, and local
13770 sockets in addition to old client-only functionality.
13771 (server_accept_connection): New function.
13772 (wait_reading_process_input): Use it to handle incoming connects.
13773 Do not enable input on a new connection if process is stopped.
13774 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
13775 (send_process): Handle datagram sockets.
13776 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
13777 network process is indicated by setting command field to t .
13778 (Fprocess_send_eof): No-op if datagram connection.
13779 (Fstatus_notify): Don't read input for a stream server socket or a
13780 stopped network process.
13781 (init_process): Initialize datagram_address array.
13782 (syms_of_process): Intern and staticpro new variables, defsubr new
13785 2002-03-16 Jason Rumney <jasonr@gnu.org>
13787 * w32fns.c (w32_to_all_x_charsets): Return correct type in
13790 2002-03-16 Richard M. Stallman <rms@gnu.org>
13792 * xdisp.c (redisplay_internal, redisplay_windows):
13793 Use list_of_error to call internal_condition_case_1.
13794 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
13795 so as to catch all errors with no possibility of debugger redisplay.
13796 (list_of_error): New variable.
13797 (syms_of_xdisp): Init and staticpro it.
13799 * print.c (print_object): Delete `\ ' from printed rep of frame.
13801 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
13803 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
13804 until its implementation is fixed.
13806 2002-03-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
13808 * xfns.c (png_load): Remove unused variable `gamma_str'.
13810 2002-03-14 Richard M. Stallman <rms@gnu.org>
13812 * xfns.c (x_real_positions): Handle failure in XQueryTree.
13814 2002-03-14 Miles Bader <miles@gnu.org>
13816 * intervals.c (adjust_for_invis_intang): New function.
13817 (set_point_both): Use `adjust_for_invis_intang' to do most of the
13818 work for dealing with invisible+intangible regions. Do so before
13819 and after both forward and backward movements, to handle both
13820 front-sticky and rear-sticky cases.
13821 * textprop.c (text_property_stickiness): Function moved here from
13823 * intervals.h (text_property_stickiness): New declaration.
13824 * editfns.c (char_property_eq): Function removed.
13825 (text_property_stickiness): Function moved to `textprop.c'.
13827 2002-03-13 Jason Rumney <jasonr@gnu.org>
13829 * config.in: Add STRFTIME_NO_POSIX2.
13831 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
13832 and %OX when underlying strftime does not.
13834 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
13836 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
13837 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
13838 line) to avoid annoying flicker.
13839 (xm_scroll_callback): Get rid of the now unnecessary kludge.
13840 (XTread_socket): Mark it static.
13842 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
13844 2002-03-13 Kim F. Storm <storm@cua.dk>
13846 * puresize.h (BASE_PURESIZE): Increase to 775000.
13848 2002-03-12 Juanma Barranquero <lektu@terra.es>
13850 * editfns.c (syms_of_editfns): Fix typo.
13852 2002-03-12 Gerd Moellmann <gerd@gnu.org>
13854 * xsmfns.c: Include stdio.h because termhooks.h needs it.
13855 Include termopt.h for interrupt_input.
13857 2002-03-11 Andreas Schwab <schwab@suse.de>
13859 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
13861 2002-03-11 Gerd Moellmann <gerd@gnu.org>
13863 * xterm.c (note_mouse_movement): Put code for
13864 x_autoselect_window_p in #if 0.
13866 * lread.c (Fload): Don't assume that message_with_string uses the
13867 string it is given like a C string.
13869 2002-03-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13871 * xterm.h (x_session_check_input, x_session_initialize): Declare.
13873 * xterm.c: (XTread_socket): Add call to x_session_check_input and
13874 x_session_have_connection.
13875 (x_initialize): Add call to x_session_initialize.
13877 * termhooks.h (enum event_kind): Add save_session_event.
13879 * keyboard.c: Add Emacs event save_session_event.
13881 * emacs.c (main): Add call to syms_of_xsmfns.
13883 * lisp.h (syms_of_xsmfns): Declare extern.
13885 * config.in: Add HAVE_X_SM.
13887 * Makefile.in (LIBXT): Add -lSM -lICE
13888 if HAVE_X_SM and not USE_X_TOOLKIT.
13889 (XOBJ): New file xsmfns.c added.
13891 * xsmfns.c: New file for X session management.
13893 2002-03-09 Jason Rumney <jasonr@gnu.org>
13895 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
13896 read-only when setting modified time.
13898 2002-03-08 Gerd Moellmann <gerd@gnu.org>
13900 * xdisp.c (move_it_vertically_backward): At the end of the function,
13901 when moving forward by lines, treat terminal frames specially.
13903 * keyboard.c (echo_char): Make sure to add a separator between
13904 keys even if echo_dash hasn't been called.
13906 * xdisp.c: Use new string macros.
13907 (update_echo_area): Pass number of bytes to message3 instead of
13909 (set_message_1): Don't access a string's size_byte directly.
13910 (decode_mode_spec_coding): Use number of bytes of eoltype string
13911 instead number of chars.
13913 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
13915 2002-03-08 Juanma Barranquero <lektu@terra.es>
13917 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
13920 2002-03-06 Jason Rumney <jasonr@gnu.org>
13922 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
13924 2002-03-06 Gerd Moellmann <gerd@gnu.org>
13926 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
13927 (cancel_echoing, echo_length, echo_truncate): Changed to
13928 work with new kboard definition.
13929 (echo_now): Use message3_nolog instead of message2_nolog.
13931 * alloc.c (mark_kboards): Mark echo_string.
13933 * keyboard.h (ECHOBUFSIZE): Removed.
13934 (struct kboard): Member echoptr removed, member echobuf renamed
13937 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
13938 message3 instead of message2 to display the message using STRING's
13941 2002-03-05 Andreas Schwab <schwab@suse.de>
13943 * xdisp.c (hscroll_margin): Change to EMACS_INT.
13945 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
13947 * frame.c (default-frame-alist): Explain that setting it doesn't
13948 affect existing frames.
13950 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
13952 * indent.c (skip_invisible): Fix my brain fart.
13954 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
13956 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
13958 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
13959 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
13960 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
13961 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
13962 and variables to use EMACS_INT instead of just int.
13964 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
13966 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
13968 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
13969 environment, pass it down with corrected value.
13971 2002-03-04 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
13973 * lread.c (read_filtered_event): Do not call start_hourglass
13976 2002-03-04 Juanma Barranquero <lektu@terra.es>
13978 * w32term.c (x_display_and_set_cursor): Fix typo.
13980 2002-03-03 Richard M. Stallman <rms@gnu.org>
13982 * fileio.c (Fmake_temp_name): Doc fix.
13984 2002-03-03 Gary Wong <gtw@gnu.org>
13986 * termcap.c [!emacs]: Replace ospeed for building standalone
13987 libtermcap, for binary compatibility.
13989 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
13991 2002-03-03 Richard M. Stallman <rms@gnu.org>
13993 * xrdb.c (file_p): Rename arg `path' to `filename'.
13995 * abbrev.c (Fexpand_abbrev): Increment plist as use count
13996 only if it is an integer.
13998 * xfns.c (png_load): Set screen_gamma based on f->gamma.
13999 If png_get_sRGB gives an answer, call png_set_gamma
14000 using the default image gamma value.
14002 * lread.c (read1): When reading from a file, default string to
14003 multibyte only if it has some multibyte characters.
14005 * print.c (print_object): Output multibyte chars 128...255
14006 using \x even if ! print_escape_multibyte.
14008 * xdisp.c (display_mode_element): Move the places where
14009 bytepos, charpos, this, and lisp_string are set.
14010 Use lisp_string to set bytepos.
14012 * xdisp.c (redisplay_internal):
14013 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
14015 * xdisp.c (display_mode_element): Merge properties specified with
14016 :propertize onto those that come with the string.
14018 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
14020 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
14021 automatic-hscrolling. Users changed.
14022 <hscroll-margin>: Renamed from automatic-hscroll-margin.
14024 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
14026 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
14028 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
14030 2002-03-02 Kim F. Storm <storm@cua.dk>
14032 * window.c (Fminibuffer_selected_window): New function.
14033 (syms_of_window): Defsubr it.
14035 2002-03-01 Kim F. Storm <storm@cua.dk>
14037 * window.h (struct window): New member phys_cursor_width.
14039 * window.c (make_window, replace_window): Init phys_cursor_width.
14041 * xterm.c (x_display_and_set_cursor): Blink box cursor using
14042 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
14044 * w32term.c (x_display_and_set_cursor): Blink box cursor using
14045 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
14047 * lisp.h (GCPRO6): New macro.
14049 * process.c (Fopen_network_stream): Use GCPRO6.
14051 2002-03-01 Kim F. Storm <storm@cua.dk>
14053 * process.c (Qconnect, Qfailed): New variables.
14054 (syms_of_process): Intern and staticpro them.
14055 (Fprocess_status): Document connect and failed return values.
14056 [NON_BLOCKING_CONNECT]: New conditional.
14057 (connect_wait_mask, num_pending_connects): New variables.
14058 (status_message): Convert Qfailed status.
14059 (Fopen_network_stream): Added support for non-blocking connect.
14060 New optional args: filter, sentinel, non_blocking. Doc updated.
14061 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
14062 (deactivate_process): Handle pending non-blocking connect.
14063 (wait_reading_process_input): Poll for status of non-blocking
14064 connects. Exec sentinel directly when connect succeeds.
14065 (status_notify): Don't read process output if not yet connected.
14067 2002-02-28 Kim F. Storm <storm@cua.dk>
14069 * window.c: (minibuf_selected_window): Renamed from
14070 Vminibuf_selected_window. Users changed.
14071 (syms_of_window): Staticpro it.
14073 2002-02-26 Kim F. Storm <storm@cua.dk>
14075 The following changes add a new Vminibuf_selected_window variable
14076 which is similar to Vminibuf_scroll_window, but which is only set
14077 on entry to the minibuffer (from a non-minibuffer window):
14079 * window.c: (Vminibuf_selected_window): New variable.
14080 (struct save_window_data): New member minibuf_selected_window.
14081 (Fset_window_configuration): Restore Vminibuf_selected_window.
14082 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
14083 Set minibuf_scroll_window member to nil if minibuf_level is 0.
14084 (compare_window_configurations): Compare minibuf_selected_window.
14086 * window.h: (Vminibuf_selected_window): Declare extern.
14088 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
14089 entry to minibuffer or on entry from a non-minibuffer window.
14091 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
14092 Vminibuf_selected_window instead of Vminibuf_scroll_window.
14094 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
14095 instead of Vminibuf_scroll_window when deciding in which window
14096 the region should be highlighted. Consequently, the region remains
14097 highlighteded even when a completion buffer is also displayed.
14099 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
14101 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
14103 * xselect.c (Qcompound_text_with_extensions): Renamed from
14104 Qcompound_text_no_extensions.
14105 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
14107 2002-02-26 Juanma Barranquero <lektu@terra.es>
14109 * w32proc.c (syms_of_ntproc): Doc fix.
14111 2002-02-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
14113 * intervals.h: Include "dispextern.h" unconditionally.
14115 2002-02-24 Jason Rumney <jasonr@gnu.org>
14117 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
14118 and disp-table.elc.
14119 (lisp): Add emacs-lisp/backquote.elc.
14121 2002-02-24 Kim F. Storm <storm@cua.dk>
14123 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
14124 The validation of the event type was too strict as it didn't
14125 allow string events; buffer names are used in bindings for
14126 menu-bar-select-buffer (see `menu-bar-update-buffers').
14128 2002-02-23 Kim F. Storm <storm@cua.dk>
14130 The following changes rework my patch of 2002-02-06 which
14131 added command remapping by entering the commands directly into
14132 the keymaps. Now, command remapping uses an explicit `remap'
14133 prefix in the keymaps, i.e. [remap COMMAND].
14135 * keymap.c (Qremap, remap_command_vector): New variables.
14136 (is_command_symbol): Removed function.
14137 (Fdefine_key): No longer accept a symbol for KEY.
14138 Added validation of [remap COMMAND] argument for KEY.
14139 The DEF is no longer required to be a symbol when remapping a command.
14140 (Fremap_command): New function to remap command through keymaps.
14141 (Flookup_key): Perform command remapping initiated by
14142 Fremap_command directly for speed.
14143 (Fkey_binding): Use Fremap_command for command remapping.
14144 (where_is_internal): Handle new command remapping representation.
14145 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
14146 staticpro them. Defsubr Fremap_command.
14148 * keymap.h (Fremap_command): Declare extern.
14149 (is_command_symbol): Remove extern.
14151 * keyboard.c (command_loop_1): Use Fremap_command for command
14152 remapping; now try command remapping for all symbols.
14154 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
14156 * coding.h (run_pre_post_conversion_on_str): Add prototype.
14158 2002-02-23 Jason Rumney <jasonr@gnu.org>
14160 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
14161 on the string before encoding it.
14162 (Fw32_get_clipboard_data): Run post-read-conversion on the string
14165 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
14167 2002-02-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
14169 * w32term.c (enter_timestamp): Remove unused static variable to
14172 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
14174 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
14176 * w16select.c (Fw16_get_clipboard_data): Fix last change.
14178 * xselect.c (selection_data_to_lisp_data): Fix last change.
14180 2002-02-22 Jason Rumney <jasonr@gnu.org>
14182 * w32term.h (struct w32_output): New member menu_command_in_progress.
14184 * w32menu.c (menubar_selection_callback): Free the menu and
14185 clear the menu_command_in_progress flag.
14187 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
14188 (menu_free_timer): New variable.
14189 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
14190 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
14191 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
14192 menu command is in progress.
14193 <WM_COMMAND>: Set the menu_command_in_progress flag.
14194 Kill any menu_free_timer that is running.
14196 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
14197 Call ExtTextOutA rather than ExtTextOut.
14199 2002-02-22 Eli Zaretskii <eliz@gnu.org>
14201 * puresize.h (BASE_PURESIZE): Increase to 755000.
14203 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14205 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
14206 on the string before encoding it.
14207 (Fw16_get_clipboard_data): Run post-read-conversion on the string
14210 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14212 Support for ICCCM Extended Segments in X selections:
14214 * xselect.c <Qcompound_text_no_extensions>: New variable.
14215 (syms_of_xselect): Intern and staticpro it.
14216 (selection_data_to_lisp_data): Run post-read-conversion on decoded
14218 (lisp_data_to_selection_data): If next-selection-coding-system is
14219 compound-text-no-extensions, set the type of selection to be
14222 * xterm.h (x_encode_text): Update prototype.
14224 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
14225 callers changed. If SELECTIONP is non-zero, run the
14226 pre-write-conversion function before encoding the selection text.
14228 2002-02-21 Kim F. Storm <storm@cua.dk>
14230 * frame.c (syms_of_frame): Change mouse-highlight default to t.
14232 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
14233 Correct composing of language-change event.
14235 2002-02-20 Kim F. Storm <storm@cua.dk>
14237 * keyboard.c (menu_bar_items): Don't include keymap or local-map
14238 bindings at PT when building menu (the menu is not updated often
14239 enough for this to work reliable).
14240 (tool_bar_items): Likewise.
14241 (current_active_maps): Removed unused (and buggy) function.
14243 2002-02-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
14245 * xfns.c (gif_load): Use correct width and height for GIF images.
14247 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
14249 * floatfns.c (Fatan): Accept an optional second arg and call
14250 atan2 if passed 2 args.
14252 2002-02-18 Jason Rumney <jasonr@gnu.org>
14254 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
14256 2002-02-17 Jason Rumney <jasonr@gnu.org>
14258 * w32term.c (x_autoselect_window_p): New variable.
14259 (syms_of_w32term): DEFVAR_BOOL and initialize it.
14260 (note_mouse_movement): Use it.
14262 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
14264 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
14266 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
14268 (syms_of_w32fns): Intern and staticpro them.
14269 (x_frame_parms) <"fullscreen">: New parameter.
14270 (x_fullscreen_move, x_set_fullscreen): New functions.
14271 (x_set_frame_parameters): Support Qfullscreen.
14272 (x_real_positions): Save x/y_pixels_diff frame params.
14273 (x_figure_window_size): Support full-screen frames.
14274 (Fx_create_frame): Default the fullscreen parameter.
14276 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
14277 (x_fullscreen_adjust): New functions.
14278 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
14279 fullscreen. Call x_check_fullscreen_move, and set the
14280 want_fullscreen member of output_data.w32
14281 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
14283 * w32term.h: New enum for FULLSCREEN_* constants.
14284 (struct w32_output): New members want_fullscreen, x_pixels_diff,
14285 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
14286 (x-fullscreen-adjust): New prototype.
14288 2002-02-17 Kim F. Storm <storm@cua.dk>
14290 * frame.c: (Vmouse_highlight): New variable.
14291 (syms_of_frame): DEFVAR_LISP it.
14293 * frame.h: (Vmouse_highlight): Declare extern.
14295 * xterm.h (struct x_display_info): Add mouse_face_hidden.
14297 * xterm.c (disable_mouse_highlight): Removed variable.
14298 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
14299 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14300 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
14301 and on after keyboard input.
14302 (x_term_init): Initialize mouse_face_hidden.
14304 * msdos.h (struct display_info): Add mouse_face_hidden.
14306 * msdos.c (disable_mouse_highlight): Removed variable.
14307 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14308 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
14309 (internal_terminal_init): Initialize mouse_face_hidden.
14310 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
14311 and on after keyboard input.
14313 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
14315 * w32term.c (disable_mouse_highlight): Removed variable.
14316 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
14317 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14318 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
14319 and on after keyboard input.
14320 (w32_initialize_display_info): Initialize mouse_face_hidden.
14322 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
14324 * msdos.c (last_mouse_window): New variable.
14325 (dos_rawgetc): Fix last change--if the mouse is in the same window
14326 as recorded in last_mouse_window, don't select this window.
14328 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
14330 * msdos.c (x_autoselect_window_p): New variable.
14331 (syms_of_msdos): Defvar it.
14332 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
14333 which the last mouse movement occured, unless it is already selected.
14335 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
14337 (syms_of_xdisp): DEVFAR them.
14338 (hscroll_window_tree): Use automatic_hscroll_margin and
14339 Vautomatic_hscroll_step to compute the amount of window scrolling.
14341 2002-02-16 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
14343 * xterm.c (x-autoselect-window): New variable.
14344 (note_mouse_movement): Use it.
14346 * keyboard.c: Do not include "systime.h" twice.
14348 2002-02-15 Andreas Schwab <schwab@suse.de>
14350 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
14352 * alloc.c (NSTATICS): Increase to 1280.
14354 2002-02-15 Kai Gro
\e,A_
\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
14356 * alloc.c (NSTATICS): Bump to 1026.
14358 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
14359 (Vx_super_keysym): New variables.
14360 (syms_of_xterm): DEFVAR_LISP them.
14361 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
14362 variables to determine which keys to use for the various modifiers.
14364 2002-02-13 Kim F. Storm <storm@cua.dk>
14366 * window.c: (Vmode_line_in_non_selected_windows): Removed.
14367 (mode_line_in_non_selected_windows): New variable.
14368 (syms_of_window): DEFVAR_BOOL it.
14370 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
14371 Use mode_line_in_non_selected_windows.
14372 (mode_line_in_non_selected_windows): Declare extern.
14373 (Vmode_line_in_non_selected_windows): Removed extern.
14375 2002-02-13 Richard M. Stallman <rms@gnu.org>
14377 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
14378 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
14379 (Fclear_this_command_keys): Doc fixes.
14381 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
14382 (update_face_from_frame_parameter): Increment face_change_count
14383 and windows_or_buffers_changed to force redisplay using changed faces.
14385 * xdisp.c (QCpropertize): New variable.
14386 (mode_line_proptrans_alist): New variable.
14387 (display_mode_element): New arg PROPS; all calls changed.
14388 Implement this, for strings.
14389 Handle literal output of strings by sharing the
14390 main-line code for strings, using local var `literal'.
14391 Handle :propertize feature.
14392 (syms_of_xdisp): Initialze and staticpro QCpropertize and
14393 mode_line_proptrans_alist.
14395 2002-02-11 Kim F. Storm <storm@cua.dk>
14397 * window.c: (Vmode_line_in_non_selected_windows): New variable.
14398 (syms_of_window): DEFVAR_LISP it.
14400 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
14401 (CURRENT_MODE_LINE_FACE_ID): Use it.
14402 (Vmode_line_in_non_selected_windows): Declare extern.
14404 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
14405 to get mode line face.
14407 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
14409 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
14410 variables; cus-start.el doesn't need them anymore.
14412 2002-02-09 Kim F. Storm <storm@cua.dk>
14414 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
14415 reduction. This fixes a display problem where stray newlines were
14416 inserted in the window (corrected by C-l). Clarified code (IMHO).
14418 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
14420 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
14422 * xdisp.c (display_mode_lines): Fix last change.
14424 2002-02-09 Jason Rumney <jasonr@gnu.org>
14426 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
14428 (w32_load_system_font): Prevent Cleartype fonts from loading.
14429 (Fx_show_tip): Ensure tip frames are above other topmost windows.
14431 2002-02-09 Kim F. Storm <storm@cua.dk>
14433 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
14434 (CURRENT_MODE_LINE_HEIGHT): Use it.
14435 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
14437 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
14438 (pos_visible_p, handle_face_prop): Likewise.
14439 (display_mode_lines): Likewise, but for the real selected window.
14440 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
14442 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
14443 in non-selected windows.
14444 (realize_basic_faces): Realize it.
14445 (syms_of_term): Intern and staticpro it.
14447 2002-02-08 Kim F. Storm <storm@cua.dk>
14449 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
14450 Changed mail addresses to emacs-devel@gnu.org.
14452 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
14454 * fileio.c (Fsubstitute_in_file_name): If the file name includes
14455 ~user, and there's no such user, don't discard everything before ~user.
14457 * floatfns.c (Fround): Doc fix.
14459 2002-02-08 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
14461 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
14463 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
14465 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
14467 2002-02-07 Kim F. Storm <storm@cua.dk>
14469 * keymap.c (where_is_internal): Only check whether definition is
14470 remapped if it fulfills is_command_symbol.
14472 2002-02-07 Andreas Schwab <schwab@suse.de>
14474 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
14476 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
14478 2002-02-06 Kim F. Storm <storm@cua.dk>
14480 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
14481 defining command remapping. Doc updated.
14482 (Flookup_key): Remap command through keymap if KEY is a symbol.
14483 (is_command_symbol): New function.
14484 (Fkey_binding): Use it. New optional argument NO-REMAP.
14485 Doc updated. Callers changed. Perform command remapping via
14486 recursive call unless that arg is non-nil.
14487 (where_is_internal): New argument no_remap. Callers changed.
14488 Call recursively to find original key bindings for a remapped
14489 comand unless that arg is non-nil.
14490 (Fwhere_is_internal): New optional argument NO-REMAP.
14491 Doc updated. Callers changed. Pass arg to where_is_internal.
14493 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
14494 (is_command_symbol): Added prototype.
14496 * keyboard.c (Vthis_original_command): New variable.
14497 (syms_of_keyboard): DEFVAR_LISP it.
14498 (command_loop_1): Set it, and perform command remapping.
14500 2002-02-06 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
14502 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
14504 2002-02-06 Jason Rumney <jasonr@gnu.org>
14506 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
14508 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
14510 * charset.c (get_charset_id): Use if-else instead of ?:.
14512 2002-02-06 Richard M. Stallman <rms@gnu.org>
14514 * filelock.c (S_ISLNK): Define if not defined.
14516 2002-02-03 Richard M. Stallman <rms@gnu.org>
14518 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
14520 * lread.c (read1): Redesign strategy for force_multibyte and
14521 force_singlebyte. Now is_multibyte records whether read_buffer
14522 is multibyte. Encountering any multibyte character makes it so.
14524 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
14526 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
14527 with the same sequence, map that sequence to f10 rather than f0.
14529 2002-02-03 Andreas Schwab <schwab@suse.de>
14531 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
14532 latter never being defined on GNU/Linux.
14534 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
14536 * xfaces.c (realize_default_face): Don't set the weight and slant of
14537 the default face to Qnormal, unless these attributes are unspecified.
14539 2002-02-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
14541 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
14542 Call cancel_hourglass unconditionally.
14544 * eval.c (Fsignal): Remove duplicated declaration of
14545 the variable `display_hourglass_p'.
14547 2002-01-31 Richard M. Stallman <rms@gnu.org>
14549 * editfns.c (region_limit): Nicer error message.
14551 * coding.c (decode_composition_emacs_mule):
14552 Give up if NCOMPONENT gets too large to index `component'.
14554 * callint.c (check_mark): New arg to specify clearer error message.
14557 2002-01-27 Richard M. Stallman <rms@gnu.org>
14559 * minibuf.c (Fcompleting_read): Doc fix.
14561 2002-01-27 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
14563 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
14564 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
14567 2002-01-26 Richard M. Stallman <rms@gnu.org>
14569 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
14571 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
14572 and scroll_up_aggressively.
14574 2002-01-26 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
14576 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
14578 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
14580 * textprop.c (Fnext_property_change, Fnext_single_property_change)
14581 (Fprevious_property_change, Fprevious_single_property_change):
14582 Stay within the narrowed-buffer boundaries.
14584 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
14586 * term.c (Ftty_display_color_cells): New function.
14587 (syms_of_term): Defsubr it.
14588 (Ftty_display_color_cells, Ftty_display_color_p): Change the
14589 argument name to DISPLAY. Doc fix.
14591 * dispextern.h: Add prototype for set_tty_color_mode and
14594 2002-01-24 Jason Rumney <jasonr@gnu.org>
14596 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
14597 If region left to draw is not what was expected, mark the frame as
14600 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
14601 Combine the regions returned by BeginPaint and GetUpdateRect.
14603 2002-01-23 Jason Rumney <jasonr@gnu.org>
14605 * w32term.c (x_update_window_begin): Only hide caret if
14606 w32_use_visible_system_caret is set.
14607 (x_update_window_end): Only show caret if
14608 w32_use_visible_system_caret is set.
14609 (syms_of_w32term): Handle SystemParametersInfo call failing.
14611 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
14613 2002-01-22 Richard M. Stallman <rms@gnu.org>
14615 * unexelf.c (unexec): Define n so as to cause compilation error
14616 for the code where people have often written n instead of nn.
14618 * .gdbinit (hookpost-run): Defined.
14620 2002-01-22 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14622 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
14624 2002-01-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14626 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
14627 if fullscreen is being set.
14629 2002-01-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
14631 * minibuf.c (Fminibuffer_contents)
14632 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
14633 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
14635 2002-01-21 Richard M. Stallman <rms@gnu.org>
14637 * window.c (check_frame_size): Fix minimum height calculation.
14639 2002-01-20 Ken Raeburn <raeburn@gnu.org>
14641 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
14642 height before comparison.
14643 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
14645 2002-01-20 Jason Rumney <jasonr@gnu.org>
14647 * w32term.c (w32_system_caret_width): Remove.
14648 (w32_use_visible_system_caret): New user flag.
14649 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
14650 Windows reports a screen reader running.
14651 (x_update_window_begin): Hide the system caret.
14652 (x_update_window_end): Show the system caret.
14653 (x_display_and_set_cursor): Don't draw a cursor when
14654 w32_use_visible_system_caret is set. Do not adjust width.
14656 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
14657 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
14658 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
14659 the user requests it. Use system default width when creating.
14660 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
14662 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
14663 New window messages.
14665 2002-01-20 Richard M. Stallman <rms@gnu.org>
14667 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
14669 2002-01-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
14671 * doprnt.c (doprnt1): Fix typos in error call.
14673 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
14675 * unexelf.c (unexec) [__sgi]: Support the .got sections.
14677 2002-01-20 Jason Rumney <jasonr@gnu.org>
14679 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
14680 that Windows returns. If a double check fails, try to guess how
14681 ExtTextOut is going to act.
14683 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
14684 in place of stricmp.
14685 (w32_list_synthesized_fonts): Removed.
14686 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
14687 (struct enumfont_t): New element; list.
14688 (enum_font_cb2): List all style and charset variations of a font.
14689 (Fw32_select_font): New optional argument; include_proportional.
14690 Exclude vertical fonts. Exclude proportional fonts unless
14691 include_proportional is non-nil.
14692 (w32_enable_synthesized_fonts): Change to a boolean.
14693 (Fw32_send_sys_command): Doc fix.
14695 2002-01-19 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
14697 * dispnew.c (update_frame): Move the variable `tem' to the block
14700 2002-01-19 Jason Rumney <jasonr@gnu.org>
14702 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
14703 call to face-set-after-frame-default.
14705 2002-01-18 Richard M. Stallman <rms@gnu.org>
14707 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
14708 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
14710 2002-01-17 Richard M. Stallman <rms@gnu.org>
14712 * window.c (enlarge_window): When exceeding size of parent,
14713 directly delete all the siblings instead of trying to resize it.
14715 2002-01-17 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
14717 * term.c (set_tty_color_mode): Remove unused variable `tem'.
14719 2002-01-16 Henrik Enberg <henrik@enberg.org>
14721 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
14723 2002-01-16 Kim F. Storm <storm@cua.dk>
14725 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
14726 is invisible. This can happen if cursor is on top line of a
14727 window, and we switch to a buffer with a header line.
14729 * w32term.c (x_erase_phys_cursor): Ditto.
14731 2002-01-16 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
14733 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
14734 `dont_resize' only when used.
14736 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
14738 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
14740 * xdisp.c (display_mode_element): When computing charpos, depend
14741 on multibyteness of elt, not the text in field.
14743 2002-01-15 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
14745 * buffer.c (Fkill_all_local_variables):
14746 Increment `update_mode_lines' only once.
14748 2002-01-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
14750 * lisp.h (adjust_after_replace_noundo)
14751 (Fupdate_coding_systems_internal): Add prototypes.
14753 * sound.c (Fplay_sound): Initialize header_size also for :data case.
14755 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
14757 Support for the --color command-line argument and tty-color-mode
14760 * term.c (tty_default_color_capabilities, tty_setup_colors)
14761 (set_tty_color_mode): New functions.
14762 (term_init): Call tty_default_color_capabilities.
14763 (Qtty_color_mode_alist): New variable.
14764 (syms_of_term): Intern and staticpro it.
14766 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
14768 (do_switch_frame): For termcap frames, switch the tty
14769 color mode as specified by the frame's parameters.
14770 (Qtty_color_mode): New variable.
14771 (syms_of_frame): Intern and staticpro it.
14773 * emacs.c (USAGE2): Add the --color option.
14774 (standard_args): Ditto.
14776 2002-01-13 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14778 * xterm.h (struct x_output): New members want_fullscreen,
14779 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
14780 y_pixels_outer_diff.
14781 New enum for FULLSCREEN_* constants.
14782 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
14784 (x_fullscreen_adjust): Add prototype.
14786 * emacs.c (USAGE2): Add the new full-screen arguments.
14787 (standard_args): Ditto.
14789 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
14791 (syms_of_xfns): Intern and staticpro them.
14792 (x_frame_parms) <"fullscreen">: New parameter.
14793 (x_fullscreen_move, x_set_fullscreen): New functions.
14794 (x_set_frame_parameters): Support for Qfullscreen.
14795 (x_real_positions): More accurate computation of the frame position.
14796 (x_figure_window_size): Support full-screen frames.
14797 (Fx_create_frame): Default the fullscreen parameter.
14799 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
14800 (XTread_socket) <Expose>: Call x_check_fullscreen.
14801 <ConfigureNotify>: Don't resize to fullscreen.
14802 Call x_check_fullscreen_move, and set the want_fullscreen member of
14805 2002-01-13 Jason Rumney <jasonr@gnu.org>
14807 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
14808 for mice with more than 3 buttons.
14810 * w32term.c (parse_button): New parameter xbutton. Callers changed.
14811 (w32_read_socket): Handle new "XBUTTON" messages.
14813 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
14814 (syms_of_w32fns): DEFVAR_BOOL it.
14815 (w32_wnd_proc): Handle new "XBUTTON" messages.
14817 2002-01-13 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
14819 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
14821 2002-01-13 Andreas Schwab <schwab@suse.de>
14823 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
14825 2002-01-12 Andreas Schwab <schwab@suse.de>
14827 * .gdbinit (xbuffer): Remove address operator since data is now a
14830 2002-01-11 Richard M. Stallman <rms@gnu.org>
14832 * insdel.c (adjust_after_replace_noundo): New function.
14834 * coding.c (code_convert_region): Don't copy old text if undo disabled.
14836 2002-01-09 Jason Rumney <jasonr@gnu.org>
14838 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
14839 when checking for multiple frames.
14841 2002-01-08 Richard M. Stallman <rms@gnu.org>
14843 * window.c (delete_window): Rewrite the code for changing the
14844 selected window to handle the case where WINDOW is not a leaf.
14846 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
14848 * process.c (send_process): Set src_multibyte to 1 after the call
14849 top setup_coding_system, not before the call.
14851 2002-01-07 Jason Rumney <jasonr@gnu.org>
14853 * xmenu.c (set_frame_menubar, xmenu_show):
14854 (xdialog_show): Initialize wv->help to Qnil.
14856 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
14857 (w32_dialog_show): Initialize wv->help to Qnil.
14859 2002-01-06 Jason Rumney <jasonr@gnu.org>
14861 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
14863 * w32menu.c (w32_menu_display_help): Revert last change.
14865 * xmenu.c (menu_highlight_callback): Revert last change.
14867 2002-01-06 Andreas Schwab <schwab@suse.de>
14869 * insdel.c (make_gap_larger): Make sure buffer size does not
14870 overflow range of int.
14872 2002-01-05 Jason Rumney <jasonr@gnu.org>
14874 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
14877 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
14879 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
14880 to the left or to the right of the pointer, put it against
14881 the left screen edge.
14882 (x_frame_parms): Add missing braces around initializer.
14884 * w32term.c (x_setup_relief_colors): Don't compute an image's
14885 background color if it doesn't have a Pixmap.
14886 (notice_overwritten_cursor): Don't depend on
14887 output_cursor and updated_area. Compare pixel coordinates with
14888 window's cursor pixel coordinates.
14889 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
14890 Call notice_overwritten_cursor with new arg list.
14891 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
14893 (x_draw_image_relief): Use predefined macro instead of
14894 constant when the value of `tool_bar_button_relief' is negative.
14896 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
14898 2002-01-04 Richard M. Stallman <rms@gnu.org>
14900 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
14902 2002-01-03 Richard M. Stallman <rms@gnu.org>
14904 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
14905 (Fkey_binding): Try the `keymap' property map first.
14906 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
14907 minor mode bindings.
14909 2002-01-03 Kim F. Storm <storm@cua.dk>
14911 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
14913 2002-01-02 Richard M. Stallman <rms@gnu.org>
14915 * keyboard.c (read_key_sequence): Handle the keymap property
14916 before minor mode maps.
14918 * editfns.c (Fformat): Update thissize from field_width
14919 based on the actual width, in the string case.
14921 2002-01-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
14923 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
14924 when used as truth value to prevent gcc warnings.
14926 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
14927 * w32proc.c: Include <config.h>.
14929 2002-01-01 Andreas Schwab <schwab@suse.de>
14931 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
14932 not EMACS_INT, to make them compatible with DEFVAR_INT.
14933 * lisp.h (max_specpdl_size): Adjust declaration.
14935 2002-01-01 Richard M. Stallman <rms@gnu.org>
14937 * print.c (print_object): Test print_escape_nonascii only for
14939 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
14940 when outputting to a multibyte buffer.
14942 2001-12-29 Richard M. Stallman <rms@gnu.org>
14944 * print.c (print_object): In multibyte string, use hex escapes.
14945 Use octal only for unibyte strings.
14946 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
14948 * lread.c (read_escape): New arg BYTEREP for reporting whether
14949 escape forces unibyte or multibyte.
14950 (read1): When reading a string, take note of that info.
14952 2001-12-29 Ken Raeburn <raeburn@gnu.org>
14954 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
14955 comparison to test lisp value returned by Fget.
14957 2001-12-29 Richard M. Stallman <rms@gnu.org>
14959 * lisp.h (max_specpdl_size): Add declaration.
14961 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
14963 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
14964 Handle modifier bits. Correct typo in error message.
14966 2001-12-28 Richard M. Stallman <rms@gnu.org>
14968 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
14969 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
14970 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
14971 Update calls to Fdefine_abbrev.
14972 (write_abbrev): Update for changed data format.
14973 Don't list "system" abbrevs.
14974 (Fexpand_abbrev): Update use count with new data format.
14975 (describe_abbrev): Update for changed data format.
14976 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
14978 * config.in (HAVE_MBSINIT): Add #undef.
14980 * strftime.c (mbsinit): Define as no-op if not available.
14982 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
14983 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
14985 * keymap.c (Flookup_key): Error message if key has wrong data type.
14986 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
14987 (exclude_key): New variable.
14989 2001-12-28 Gerd Moellmann <gerd@gnu.org>
14991 * xterm.c (x_setup_relief_colors): Don't compute an image's
14992 background color if it doesn't have a Pixmap.
14994 * xterm.c (notice_overwritten_cursor): Don't depend on
14995 output_cursor and updated_area. Compare pixel coordinates with
14996 window's cursor pixel coordinates.
14997 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
14998 Call notice_overwritten_cursor with new arg list.
14999 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
15002 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
15003 height of the cursor line to the amount to scroll.
15005 2001-12-27 Richard M. Stallman <rms@gnu.org>
15007 * intervals.c (set_point_both): The position after an invisible,
15008 intangible character is not an acceptable stopping point.
15010 2001-12-27 Ken Raeburn <raeburn@gnu.org>
15012 * window.c (enlarge_window): In new preserve_before code, convert
15013 CURBEG from lisp object to integer before doing arithmetic.
15015 2001-12-27 Richard M. Stallman <rms@gnu.org>
15017 * bytecode.c (Fbyte_code): Undo previous change.
15019 2001-12-26 Kim F. Storm <storm@cua.dk>
15021 * keyboard.c (record_char): Ignore duplicate help-echo events only
15022 separated by mouse-movement. When tracking mouse, only record
15023 first and last mouse-movement event in same window.
15024 Don't record mouse-movement events in keyboard macros.
15026 2001-12-25 Richard M. Stallman <rms@gnu.org>
15028 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
15029 (Fenlarge_window): New arg PRESERVE_BEFORE.
15031 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
15032 instead of Fstring_as_unibyte.
15034 2001-12-22 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
15036 The following changes remove mocklisp support:
15038 * mocklisp.h, mocklisp.c: Files removed.
15040 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
15041 `Qmocklisp' and `Qmocklisp_arguments'.
15042 Remove prototype of syms_of_mocklisp.
15044 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
15046 * callint.c: Do not include mocklisp.h.
15047 (Fcall_interactively): Do not test for mocklisp case.
15049 * eval.c: Remove variables `Qmocklisp_arguments',
15050 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
15051 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
15052 Do not test for mocklisp case.
15053 (Fwhile): Remove unused variable `tem'.
15054 (syms_of_eval): Remove variable `moclisp-arguments'.
15056 * data.c (wrong_type_argument): Remove mocklisp case.
15058 * doc.c (Fdocumentation): Remove mocklisp case.
15060 * emacs.c (main): Do not call syms_of_mocklisp.
15062 2001-12-21 Richard M. Stallman <rms@gnu.org>
15064 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
15065 to the left or to the right of the pointer, put it against
15066 the left screen edge.
15068 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
15070 * Makefile.in (distclean): Remove .gdbinit if we are building
15071 outside the source tree.
15073 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
15075 * w32.c (emacs_root_dir): New function.
15077 * msdos.c (emacs_root_dir): New function.
15079 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
15080 of the current drive as the fallback for default_directory.
15082 * dired.c (file_name_completion): Run the elements of
15083 completion-ignored-extensions through ENCODE_FILE.
15085 * lisp.h (scmp): Remove prototype, since it's now a static
15086 function private to dired.c.
15088 2001-12-18 Richard M. Stallman <rms@gnu.org>
15090 * dired.c (scmp): Function moved from minibuf.c.
15091 Delete multibyte handling--used only on encoded strings.
15093 * minibuf.c (scmp): Function moved to dired.c.
15095 * fns.c (merge): Add QUIT call.
15097 2001-12-18 Dave Love <fx@gnu.org>
15099 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
15100 language/georgian.el.
15102 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
15104 * Makefile.in (lisp, shortlisp): Synchronize with changes to
15105 lisp/Makefile.in:DONTCOMPILE.
15107 2001-12-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
15109 * xdisp.c (window_box_height): Do not return negative values.
15110 From Gerd Moellmann <gerd@gnu.org>.
15112 * keyboard.c (head_table): Add missing braces around initializer.
15114 * term.c (keys): Likewise.
15116 * xfns.c (x_frame_parms, visual_classes): Likewise.
15118 2001-12-17 Sam Steingold <sds@gnu.org>
15120 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
15121 patch (COMPOSING_P, not COMPOSING).
15123 2001-12-17 Richard M. Stallman <rms@gnu.org>
15125 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
15127 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
15128 before calling decode_coding.
15130 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
15132 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
15133 instead of only for COMPOSITION_DISABLED.
15135 2001-12-16 Richard M. Stallman <rms@gnu.org>
15137 * alloc.c (pure_alloc): After overflow, allocate just a small block.
15139 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
15141 * buffer.h (struct buffer): New field `display_error_modiff'.
15142 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
15144 * window.c (Frecenter): Clear display_error_modiff field.
15146 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
15147 Call redisplay_window, but not if display_error_modiff field says no.
15148 (redisplay_window_error): New function.
15149 (displayed_buffer): New variable.
15150 (redisplay_internal, redisplay_windows): Call the new functions
15151 instead of redisplay_window directly.
15153 2001-12-15 Richard M. Stallman <rms@gnu.org>
15155 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
15157 2001-12-14 Andrew Innes <andrewi@gnu.org>
15159 * makefile.w32-in (EMACSLOADPATH): Define.
15160 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
15161 (bootstrap-temacs): Remove dependency on bootstrap-clean.
15163 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
15165 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
15166 parameter have a numeric value all the time.
15168 * w32fns.c (x_report_frame_params): Likewise.
15170 2001-12-12 Richard M. Stallman <rms@gnu.org>
15172 * fileio.c (Fwrite_region): Doc fix.
15174 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
15175 (redisplay_internal): Call clear_image_cache only for window terminals.
15177 2001-12-12 Gerd Moellmann <gerd@gnu.org>
15179 * xdisp.c (move_it_vertically_backward): Change heuristic
15180 for the case that we didn't move far enough initially.
15182 * window.c (Frecenter): Simplify computation in the case of window
15183 system frames and ARG < 0; use window_box_height.
15185 2001-12-11 Richard M. Stallman <rms@gnu.org>
15187 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
15188 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
15190 2001-12-11 Andrew Innes <andrewi@gnu.org>
15192 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
15195 2001-12-11 Richard M. Stallman <rms@gnu.org>
15197 * m/hp800.h: Split the __hpux conditional into the parts
15198 that are right for GNU/Linux too and the parts that are not.
15199 Use the former if GNU_LINUX.
15200 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
15202 * s/gnu-linux.h (GNU_LINUX): Defined.
15204 2001-12-11 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
15206 * macros.c, msdos.c, w16select.c: Change doc-string comments to
15207 `new style' [w/`doc:' keyword].
15209 2001-12-10 Jason Rumney <jasonr@gnu.org>
15211 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
15214 2001-12-09 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
15216 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
15219 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
15221 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
15223 * s/hpux10.h (srand48): Don't undefine.
15225 2001-12-09 Jason Rumney <jasonr@gnu.org>
15227 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
15228 Add comment to explain where the struct came from.
15229 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
15230 (add_menu_item): Process pop-up menus first to avoid memory leak.
15231 (add_menu_item, w32_menu_display_help): Use `help' field as
15233 (w32_free_submenu_strings): Only free owner-drawn strings.
15235 2001-12-09 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
15237 * COPYING: Moved back.
15239 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
15240 Add parentheses around && within ||.
15242 * indent.c (compute_motion): Likewise.
15244 * intervals.c (merge_properties_sticky): Likewise.
15246 * coding.c (setup_coding_system, shrink_encoding_region)
15247 (Fdecode_sjis_char): Likewise.
15249 2001-12-07 Andreas Schwab <schwab@suse.de>
15251 * xdisp.c (display_mode_element): Don't read past end of string if
15254 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
15257 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
15258 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
15259 type changed to Lisp_Object.
15260 (syms_of_data): DEFVAR_LISP them.
15262 2001-12-07 Richard M. Stallman <rms@gnu.org>
15264 * callproc.c (init_callproc): Set Vdata_directory based on the source
15265 location whenever Emacs was run uninstalled.
15267 2001-12-06 Paul Eggert <eggert@twinsun.com>
15269 * config.in (HAVE_WORKING_VFORK): New #undefs.
15270 * process.c (create_process):
15271 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
15272 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
15273 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
15274 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
15275 * m/intel386.h (HAVE_VFORK): Likewise.
15276 * m/mips-siemens.h (HAVE_VFORK): Likewise.
15277 * m/mips.h (HAVE_VFORK): Likewise.
15278 * s/freebsd.h (vfork): Remove #define.
15279 * s/lynxos.h (HAVE_VFORK): Remove #undef.
15280 * s/usg5-4-2.h: Fix comment about vfork.
15282 2001-12-06 Richard M. Stallman <rms@gnu.org>
15284 * s/hpux10.h (random): Add undef.
15285 (HAVE_RANDOM): Define it just once.
15287 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
15289 * eval.c: Undo last change: the standard syntax is not wanted.
15291 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
15293 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
15294 scroll bars of the frame before deleting the frame itself. If the
15295 frame has a widget, delete the frame with XtDestroyWidget, and do
15296 not call XDestroyWindow before that.
15298 2001-12-06 Kim F. Storm <storm@cua.dk>
15300 * xfns.c (x_report_frame_params): Return actual fringe widths.
15302 * w32fns.c (x_report_frame_params): Return actual fringe widths.
15304 2001-12-05 Andrew Innes <andrewi@gnu.org>
15306 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
15309 * insdel.c (make_gap_larger): New function.
15310 (make_gap_smaller): New function.
15311 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
15312 Call make_gap_smaller if arg is negative.
15314 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
15316 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
15317 Pass a dummy argument when calling interrupt_signal.
15318 (parse_menu_item): Mark disabled items before checking for empty def.
15319 (read_char_minibuf_menu_prompt): Make safety more visible.
15320 (read_key_sequence): Add a `first_unbound' variable.
15321 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
15322 unbound prefix as soon as we can detect it.
15324 * doc.c (Fsnarf_documentation): Add prototype.
15325 (get_doc_string): Handle negative arguments.
15326 (Fdocumentation): Use AREF and ASIZE.
15327 Move the calls to get_doc_string to a single place.
15328 Don't confuse an interactive-spec for a docstring reference.
15329 (Fdocumentation_property): Take advantage of the fact that
15330 get_doc_string now ignores the sign of the docstring position.
15332 * eval.c: Use standard syntax for usage in docstrings.
15334 2001-12-03 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
15336 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
15338 2001-12-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
15340 * xterm.c (x_draw_image_relief): Use predefined macro instead of
15341 constant when the value of `tool_bar_button_relief' is negative.
15343 2001-12-02 Richard M. Stallman <rms@gnu.org>
15345 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
15346 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
15348 * fileio.c (read_non_regular): Delete Fsignal call.
15350 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
15352 * lisp.h (run_hook_list_with_args): Undo last change.
15354 2001-12-01 Gerd Moellmann <gerd@gnu.org>
15356 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
15358 2001-12-01 Jason Rumney <jasonr@gnu.org>
15360 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
15362 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
15363 [!WM_MOUSELEAVE]: Define.
15365 * w32menu.c (current_popup_menu, get_menu_item_info):
15366 (set_menu_item_info): New vars.
15367 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
15368 (w32_menu_show): Set current_popup_menu.
15369 (add_menu_item): Allocate new strings for owner-drawn menu items
15371 Use owner-draw for disabled menu items again.
15372 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
15373 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
15375 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
15376 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
15377 <WM_EXITMENULOOP>: Free menu strings.
15378 <WM_MOUSELEAVE>: Stop tracking mouse.
15379 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
15381 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
15384 2001-12-01 Kim F. Storm <storm@cua.dk>
15386 The following changes add left-fringe and right-fringe
15387 frame parameters to adjust fringe widths, or remove one or
15390 * frame.h (struct frame): Remove trunc_area_pixel_width and
15391 trunc_area_cols fields.
15392 (Qleft_fringe, Qright_fringe): Declare.
15393 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
15395 * frame.c (Qleft_fringe, Qright_fringe): New vars.
15396 (syms_of_frame): Initialize them.
15398 * window.c (coordinates_in_window): Handle separate left and right
15401 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
15402 and fringe_cols fields.
15403 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
15404 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
15405 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
15406 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
15407 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
15408 (x_compute_fringe_widths): Add prototype.
15410 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
15411 fill fringe evenly with small dashes.
15412 (x_draw_fringe_bitmap): Clear background if necessary. Align and
15413 clip the new ZV bitmap to avoid jitter between rows.
15414 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
15415 background. Don't draw fringe bitmaps if fringe width is zero.
15416 (x_compute_fringe_widths): New function.
15417 (x_new_font, x_set_window_size_1): Use it.
15419 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
15420 (x_set_frame_parameters): Process `font' parameter before other
15421 parameters as fringe widths depend on it.
15422 (x_set_fringe_width): New function.
15423 (x_figure_window_size): Use x_compute_fringe_widths.
15424 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
15427 * widget.c (set_frame_size): Use x_compute_fringe_widths.
15428 (EmacsFrameSetCharSize): Ditto.
15430 * w32term.h: Merged changes from xterm.h.
15431 * w32term.c: Merged changes from xterm.c.
15432 * w32fns.c: Merged changes from xfns.c.
15434 2001-11-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
15436 * COPYING: Removed.
15438 2001-11-29 Dave Love <fx@gnu.org>
15440 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
15442 (detect_coding_mask): Fix call of detect_coding_iso2022.
15444 2001-11-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
15446 * fileio.c (file-name-coding-system)
15447 (default-file-name-coding-system): Doc fix (links to referenced
15450 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
15452 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
15453 Add dummy uses of gcproN variables.
15455 * category.c (describe_category, describe_category_1)
15456 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
15457 (syms_of_category): Don't defsubr Sdescribe_categories.
15459 2001-11-28 Richard M. Stallman <rms@gnu.org>
15461 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
15463 * Makefile.in (lispdir): New variable, referring to build dir.
15464 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
15466 2001-11-28 Andrew Innes <andrewi@gnu.org>
15468 * w32menu.c (w32_menu_display_help): Actually add the new argument
15471 2001-11-28 Jason Rumney <jasonr@gnu.org>
15473 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
15474 menu items. From David Ponce <dponce@wanadoo.fr>.
15475 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
15477 (w32_menu_display_help): New argument OWNER. Rewritten to store a
15478 help event in the owner frame's keyboard buffer.
15480 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
15481 (Fx_show_tip): Don't subtract last width from row width.
15483 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
15484 (w32_read_socket): Use EQ to compare frames.
15486 2001-11-28 Gerd Moellmann <gerd@gnu.org>
15488 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
15491 2001-11-28 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
15493 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
15494 `gcpro3' and `gcpro4'.
15496 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
15498 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
15500 * ccl.c: Use AREF and ASIZE.
15502 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
15504 * lisp.h (run_hook_list_with_args): Remove.
15505 (LIST_END_P): Fix call to wrong_type_argument.
15506 (make_fixnum_or_float): Use EMACS_INT rather than int.
15508 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
15510 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
15511 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
15513 * eval.c: Use AREF and ASIZE.
15514 (Ffetch_bytecode): Add the file name to the error message.
15516 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
15517 which match the end of the file-name.
15518 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
15519 is not a valid env var, but leave it as is instead.
15521 * keymap.c (access_keymap): Handle t bindings like nil bindings.
15522 Make nil bindings in char-tables transparent.
15523 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
15525 2001-11-26 Richard M. Stallman <rms@gnu.org>
15527 * textprop.c (set_text_properties_1): Allow START, END in either order.
15528 Do nothing if range is empty.
15530 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
15532 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
15535 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
15537 * textprop.c (set_text_properties_1): Clearly mark that the
15538 interval should not be empty.
15540 * intervals.c (graft_intervals_into_buffer):
15541 Don't call set_text_properties_1 on an empty interval.
15543 2001-11-25 Richard M. Stallman <rms@gnu.org>
15545 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
15547 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
15548 don't lose the data in it.
15550 2001-11-25 Juanma Barranquero <lektu@terra.es>
15552 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
15554 * buffer.c (Fkill_buffer): Likewise.
15556 * print.c (temp_output_buffer_setup): Likewise.
15558 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
15560 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
15562 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
15564 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
15565 Niemitalo <kon@iki.fi>.
15567 2001-11-25 Jason Rumney <jasonr@gnu.org>
15569 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
15571 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
15572 (Fx_show_tip): Block input during frame creation.
15573 (Fx_show_tip, Fx_hide_tip): Enable.
15575 2001-11-24 Richard M. Stallman <rms@gnu.org>
15577 * lread.c (Fload): Detect recursive load error for more than 3
15578 nestings of the same file.
15579 (Vrecursive_load_depth_limit): Variable deleted.
15580 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
15582 2001-11-24 Jason Rumney <jasonr@gnu.org>
15584 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
15585 mouse position if either left or top is not specified.
15587 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
15588 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
15589 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
15590 (my_create_tip_window): Assign tip_window.
15591 (x_create_tip_frame): Use same defaults as X.
15592 (compute_tip_xy): Remove unused variable. Use full screen width.
15593 (Fx_show_tip): Do not double height. Call ShowWindow directly.
15595 * w32term.c (x_after_update_window_line): Doc fix.
15596 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
15598 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
15600 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
15601 for all Windowed systems.
15603 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
15605 * msdos.c (IT_clear_screen): If the frame's faces are not yet
15606 realized, use the initial screen colors to clear the screen.
15608 2001-11-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
15610 * textprop.c (Fset_text_properties): Remove unused variables
15611 `unchanged', `prev_changed', `s' and `len'.
15613 * search.c (Freplace_match): Remove unused variable `inslen'.
15615 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
15617 2001-11-22 Jason Rumney <jasonr@gnu.org>
15619 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
15620 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
15621 (my_create_tip_window): New function.
15622 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
15623 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
15625 2001-11-20 Jason Rumney <jasonr@gnu.org>
15627 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
15628 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
15630 * w32fns.c (Vw32_system_coding_system): Remove.
15631 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
15633 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
15635 * fileio.c (Fwrite_region): Move choose_write_coding_system to
15636 after build_annotations.
15638 * syntax.c (describe_syntax): Add dummy arg.
15639 (describe_syntax_1): Update call to describe_vector.
15641 * category.c (describe_category): Add dummy arg.
15642 (describe_category_1): Update call to describe_vector.
15644 * keymap.c (Fdescribe_vector): Add `describer' parameter.
15645 (describe_command, describe_translation): Add dummy second param.
15646 (describe_map): Call elt_describer with two arguments.
15647 (describe_vector_princ): Add `fun' parameter.
15648 Call it instead of the hardcoded `princ'.
15649 (describe_vector): Add arg `args'.
15650 Pass it as a new second argument to elt_describer.
15652 * keymap.h (describe_vector): Update prototype.
15654 * frame.c: Don't include keymap.h any more.
15655 (keys_of_frame): Remove.
15657 * lisp.h (keys_of_frame): Remove declaration.
15659 * emacs.c (main): Don't call `keys_of_frame' any more.
15661 2001-11-14 Andreas Schwab <schwab@suse.de>
15663 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
15664 if defined, 0 otherwise.
15665 (MAP_FAILED): Define if not defined and use it to test mmap failure.
15666 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
15668 2001-11-19 Richard M. Stallman <rms@gnu.org>
15670 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
15672 2001-11-18 Jason Rumney <jasonr@gnu.org>
15674 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
15675 (x_draw_bar_cursor): If the background color of the glyph under
15676 the cursor equals the frame's cursor color, use the glyph's
15677 foreground color for drawing the bar cursor.
15678 (x_after_update_window_line): Clear internal border in different
15680 (w32_set_vertical_scroll_bar): Check for width and height > 0.
15681 (w32_draw_relief_rect): Correct relief by 1 pixel.
15682 (x_set_glyph_string_background_width):
15683 Set extends_to_end_of_line_p if the row's fill_line_p is set and
15684 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
15685 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
15686 if cursor_in_non_selected_windows is false.
15687 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
15688 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
15689 Notice if cursor gets overwritten.
15690 (notice_overwritten_cursor): Renamed from
15691 note_overwritten_text_cursor. Rewritten to take glyph widths
15692 into account, and to take X positions as parameters.
15693 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
15694 around call to x_draw_glyphs.
15695 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
15696 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
15697 color to use for image glyph reliefs.
15698 (x_draw_image_relief): Accept zero tool_bar_button_relief.
15699 (glyph_rect): Remove unused variable `area'.
15701 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
15703 (x_set_internal_border_width): Set frame garbaged when window
15705 (Fx_create_frame): Accept zero tool_bar_button_relief.
15706 (x_clear_image_1, four_corners_best, image_background)
15707 (image_background_transparent): New functions.
15708 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
15709 (gs_format): Add `:background' entry.
15710 (lookup_image): Set IMG's background color if specified.
15711 (pbm_load, xbm_load_image, png_load): Set IMG's background field
15713 (x_clear_image_1): Reset `background_valid' and
15714 `background_transparent_valid' fields.
15715 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
15716 calculating it here. Set IMG's background_transparent field.
15717 (enum xpm_keyword_index): Add XPM_BACKGROUND.
15718 (enum png_keyword_index): Add PNG_BACKGROUND.
15719 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
15720 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
15721 (enum gif_keyword_index): Add GIF_BACKGROUND.
15722 (enum gs_keyword_index): Add GS_BACKGROUND.
15723 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
15724 Pre-calculate image background color where necessary.
15725 (x_create_x_image_and_pixmap, xbm_load, gs_load):
15726 Use display info's n_cbits entry for screen depth.
15727 (Fx_show_tip): Remove unused variables `buffer', `top',
15728 `left', `max_width' and `max_height'.
15730 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
15732 2001-11-18 Gerd Moellmann <gerd@gnu.org>
15734 * puresize.h (BASE_PURESIZE): Increase to 750000.
15736 2001-11-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
15738 * frame.c (Fframe_live_p): Doc fix.
15740 2001-11-18 Richard M. Stallman <rms@gnu.org>
15742 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
15743 (message_dolog_marker3): New static variables hold three markers.
15744 (syms_of_xdisp): Initialize and staticpro them.
15745 (message_dolog): Use message_dolog_marker1..3 instead of
15746 allocating markers each time. Unchain them when done.
15748 2001-11-17 Richard M. Stallman <rms@gnu.org>
15750 * doc.c (Fsnarf_documentation): Doc fix.
15752 2001-11-17 Andreas Schwab <schwab@suse.de>
15754 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
15756 2001-11-17 Richard M. Stallman <rms@gnu.org>
15758 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
15760 2001-11-17 Jason Rumney <jasonr@gnu.org>
15762 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
15764 2001-11-17 Gerd Moellmann <gerd@gnu.org>
15766 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
15767 with invalid position.
15769 2001-11-16 Richard M. Stallman <rms@gnu.org>
15771 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
15773 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
15774 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
15775 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
15777 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
15779 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
15781 * fileio.c (build_annotations): Split off the tail.
15782 (build_annotations_2): New fun. Extracted from build_annotations.
15783 (Fwrite_region): Split the call to build_annotations into two
15784 calls to build_annotations and build_annotations_2.
15786 2001-11-16 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
15788 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
15789 clear_waiting_for_input with argument.
15791 * xterm.h (x_update_cursor): Remove duplicated prototype.
15793 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
15795 * xterm.c (waiting_for_input): Remove unnecessary declaration.
15797 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
15799 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
15801 * fileio.c (choose_write_coding_system): New fun, extracted
15802 from Fwrite_region.
15803 (Fwrite_region): Use it.
15805 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
15806 (funcall_lambda, run_hook_with_args): Make static and add prototype.
15807 (ml_apply, find_handler_clause): Add prototype.
15809 2001-11-16 Eli Zaretskii <eliz@gnu.org>
15811 * config.in: Add #undef HAVE_COFF_H.
15813 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
15814 Required for ISC 4.1.
15816 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
15818 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
15819 Andrew Wiseman <a.wiseman@btclick.com>.
15821 2001-11-16 Kim F. Storm <storm@cua.dk>
15823 The following changes are made to clean up the various internal
15824 references to the fringes to actually use the term `fringe' for
15825 them. Previously, they were called `flags areas', `bitmap areas',
15826 `left/right side of windows', or implicitly as `flags' or
15829 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
15830 Comments fixed. Use renamed symbols.
15832 * dispnew.c: Comment fix. Use renamed symbols.
15834 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
15835 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
15836 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
15838 * msdos.c: Comment fix.
15840 * w32fns.c: Use renamed symbols.
15842 * w32term.c: Comment fixes. Use renamed symbols.
15843 (fringe_bitmap_type): Renamed from bitmap_type.
15844 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
15845 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
15846 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
15848 * w32term.h: Comment fixes. Use renamed symbols.
15849 (fringes_extra): Renamed from flags_areas_extra.
15850 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
15851 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
15852 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
15853 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
15854 (FRAME_X_LEFT_FRINGE_WIDTH):
15855 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
15856 (FRAME_X_RIGHT_FRINGE_WIDTH):
15857 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
15859 * widget.c: Use renamed symbols.
15861 * window.c: Comment fixes. Use renamed symbols.
15862 (coordinates-in-window-p): Doc fix.
15864 * xdisp.c: Comment fixes. Use renamed symbols.
15866 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
15868 * xfns.c: Use renamed symbols.
15870 * xterm.c: Comment fixes. Use renamed symbols.
15871 (fringe_bitmap_type): Renamed from bitmap_type.
15872 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
15873 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
15874 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
15876 * xterm.h: Comment fixes. Use renamed symbols.
15877 (fringes_extra): Renamed from flags_areas_extra.
15878 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
15879 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
15880 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
15881 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
15882 (FRAME_X_LEFT_FRINGE_WIDTH):
15883 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
15884 (FRAME_X_RIGHT_FRINGE_WIDTH):
15885 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
15887 2001-11-15 Jason Rumney <jasonr@gnu.org>
15889 * w32menu.c (add-menu-item): Make help_echo and radio buttons
15890 work for most menu items. From David Ponce
15891 <david.ponce@wanadoo.fr>.
15893 2001-11-15 Gerd Moellmann <gerd@gnu.org>
15895 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
15896 Some x_set_* function expect to be called even if old and new
15899 * xdisp.c (build_desired_tool_bar_string): Accept zero
15900 tool_bar_button_relief.
15902 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
15904 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
15906 * xterm.c (x_draw_bar_cursor): If the background color of the
15907 glyph under the cursor equals the frame's cursor color, use
15908 the glyph's foreground color for drawing the bar cursor.
15910 * dispnew.c (direct_output_forward_char): Fix character/byte
15911 position comparison.
15913 2001-11-15 Miles Bader <miles@gnu.org>
15915 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
15916 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
15917 Update arguments to find_field.
15918 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
15919 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
15920 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
15921 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
15923 2001-11-14 Richard M. Stallman <rms@gnu.org>
15925 * editfns.c (Fpropertize): Allow call with 1 arg.
15927 * dispextern.h (image_background, image_background_transparent):
15928 Conditionalize on HAVE_X_WINDOWS.
15930 2001-11-13 Richard M. Stallman <rms@gnu.org>
15932 * print.c (Fprin1_to_string): Doc fix.
15934 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
15936 * floatfns.c (Fceiling, Ffloor): Doc fixes.
15938 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
15940 * fileio.c (Ffile_accessible_directory_p): Doc fix.
15942 * eval.c (syms_of_eval): Doc fix.
15944 * coding.c (syms_of_coding): Doc fix.
15946 * doc.c (Fsnarf_documentation): Doc fix.
15948 * dispnew.c (syms_of_display): Doc fix.
15950 * category.c (Fget_unused_category): Doc fix.
15952 * buffer.c (syms_of_buffer): Doc fixes.
15954 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
15956 * print.c (prin1, print): Doc fix.
15958 2001-11-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
15960 * fontset.h: Remove declarations of variables
15961 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
15963 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
15964 `Vclip_large_size_font'.
15966 2001-11-13 Jason Rumney <jasonr@gnu.org>
15968 * w32fns.c: Doc fix.
15970 2001-11-13 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
15972 * xfaces.c (Fface_attributes_as_vector): Doc fix.
15976 * emacs.c: Doc fix.
15978 * coding.c: Doc fix.
15980 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
15981 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
15982 `new style' [w/`doc:' keyword].
15984 2001-11-12 Richard M. Stallman <rms@gnu.org>
15986 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
15987 LeaveNotify events. Only FocusIn and FocusOut do that now.
15988 (x_display_and_set_cursor): Do display hollow cursors in active
15989 minibuffer windows when they are not selected.
15991 2001-11-12 Jason Rumney <jasonr@gnu.org>
15993 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
15994 * w32term.c: Change doc-string comments to `new style'
15995 [w/`doc:' keyword]. Doc fixes.
15997 * w32fns.c: Don't define max.
15998 (Fx_open_connection): Only execute once.
16000 2001-11-12 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16002 * ccl.c: Change macros to use do-while block instead of if-else.
16003 Use braces to follow GNU Coding Standards.
16005 2001-11-11 Richard M. Stallman <rms@gnu.org>
16007 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
16009 * lread.c (read_escape): Use end_of_file_error for reporting eof.
16011 * insdel.c (replace_range): Use adjust_markers_for_replace
16012 instead of adjust_markers_for_delete and adjust_markers_for_insert.
16014 * intervals.h (set_text_properties, set_text_properties_1): Declare.
16016 * textprop.c (set_text_properties_1): New subroutine
16017 broken out of set_text_properties.
16018 (set_text_properties): Use set_text_properties_1.
16020 * intervals.c (graft_intervals_into_buffer):
16021 Use set_text_properties_1 to clear out properties.
16023 * search.c (Freplace_match): Use replace_range to insert
16024 and delete. Don't request property inheritance from
16027 2001-11-10 Jason Rumney <jasonr@gnu.org>
16029 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
16030 vertical fonts. Allow them if face name is explicitly specified.
16031 Do not give up if we find a font that cannot be converted to an xlfd.
16033 2001-11-10 Gerd Moellmann <gerd@gnu.org>
16035 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
16036 instead of malloc/free.
16038 2001-11-09 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16040 * xfaces.c (merge_face_vectors): Use braces to follow GNU
16042 (Finternal_set_lisp_face_attribute): Likewise.
16044 * buffer.c (Fbury_buffer): Likewise.
16046 * indent.c (current_column_1): Remove unused variable `prev_col'.
16048 * coding.c (encode_coding): Use precomputed value of `src'.
16049 (encode_coding): Remove unused variable `src_end'.
16050 (code_convert_region): Remove unused variables `count'.
16052 2001-11-07 Jason Rumney <jasonr@gnu.org>
16054 * w32term.c (x_display_and_set_cursor): Do not move system caret
16055 if cursor_glyph is NULL.
16057 2001-11-07 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16059 * keymap.c (access_keymap): Fix compilation error.
16061 2001-11-07 Miles Bader <miles@gnu.org>
16063 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
16065 2001-11-07 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16067 * intervals.c (graft_intervals_into_buffer):
16068 Remove #ifdef'd-out code.
16069 (graft_intervals_into_buffer): Remove unused variable `middle'.
16071 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
16072 code (eval-current-buffer).
16073 Change doc-string comments to `new style' [w/`doc:' keyword].
16075 2001-11-06 Richard M. Stallman <rms@gnu.org>
16077 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
16079 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
16081 * lread.c (read1): Fix behavior with nested backquoting.
16083 * keyboard.c (make_lispy_event): Check integerness and fix
16084 Lisp_Object/int mixup.
16086 2001-11-06 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16088 * fns.c (copy_hash_table): Remove unused variable `v'.
16090 * fontset.c (fontset_font_pattern): Remove unused variable
16093 * indent.c (current_column_1): Remove unused variable `prev_col'.
16095 2001-11-05 Richard M. Stallman <rms@gnu.org>
16097 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
16099 * buffer.c (Fkill_buffer): Don't delete auto save file
16100 if buffer is modified.
16102 2001-11-05 Andrew Innes <andrewi@gnu.org>
16104 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
16107 2001-11-05 Richard M. Stallman <rms@gnu.org>
16109 * unexelf.c (unexec): Minor changes; clean up comments.
16111 2001-11-05 Sam Steingold <sds@gnu.org>
16113 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
16115 2001-11-05 Andreas Schwab <schwab@suse.de>
16117 * sound.c (sound_perror): Save errno from being clobbered.
16119 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
16121 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
16122 the program image directly.
16124 2001-11-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16126 * buffer.h (Fbuffer_local_value): Add prototype.
16128 2001-11-04 Richard M. Stallman <rms@gnu.org>
16130 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
16133 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
16134 (record_char): Likewise.
16136 * keyboard.c (make_lispy_event): Don't insist a drag event must
16137 move to a different buffer position. Instead, check for moving at
16138 least double_click_fuzz.
16140 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
16142 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
16144 * indent.c (current_column_1, Fmove_to_column): Separate the code
16145 for display-table glyphs from the code for buffer text, to fix
16146 bugs in the former.
16148 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
16150 * buffer.c (Fbuffer_local_value): New function.
16151 (syms_of_buffer): Defsubr it.
16153 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
16154 value of `cursor-in-non-selected-windows'.
16156 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
16157 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
16158 (syms_of_xdisp): Initialize it.
16160 2001-11-04 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16162 * xfns.c (Fx_create_frame): Doc fix.
16164 * coding.c: Change doc-string comments to `new style' [w/`doc:'
16167 * eval.c (top_level_value, top_level_set): Remove commented and
16169 (Fdefvar): Fix usage in doc-string.
16171 2001-11-03 Richard M. Stallman <rms@gnu.org>
16173 * xfns.c: Include unistd.h, if it exists.
16175 * editfns.c: Move the include of ctype.h after unistd.h.
16177 * gmalloc.c: Test BROKEN_PROTOTYPES.
16179 2001-11-03 Ken Raeburn <raeburn@gnu.org>
16181 * lisp.h (CHECK_STRING_CAR): New macro.
16182 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
16183 treating XCAR and XCDR as lvalues.
16184 (openp): Use CHECK_STRING_CAR.
16185 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
16187 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
16189 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
16190 (SIGMASKTYPE): Define.
16192 * syssignal.h (sigunblock): Don't define if already defined.
16194 2001-11-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16196 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
16197 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
16198 Fix typos in comments.
16200 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
16201 and #ifdef'd-out code.
16202 Fix and reindent comments.
16204 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
16206 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
16207 argument `i' in macros.
16209 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
16212 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
16213 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
16214 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
16215 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
16216 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
16217 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
16218 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
16219 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
16222 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
16223 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
16224 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
16225 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
16226 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
16227 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
16228 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
16229 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
16230 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
16231 (remove unused second argument).
16233 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
16235 * syntax.c (describe_syntax): New wrapper.
16236 (Finternal_describe_syntax_value): Rename from describe_syntax.
16237 Don't insert space at front and \n at the end.
16238 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
16240 * regex.c (re_wctype): Try to fix some warnings.
16241 (regcomp, regexec): Don't forget the __restrict.
16243 2001-11-02 Richard M. Stallman <rms@gnu.org>
16245 * textprop.c (Fget_char_property): Doc fix.
16247 2001-11-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16249 * process.c (Fstart_process): Add usage to doc-string.
16251 * data.c (Fsetq_default): Ditto.
16253 * callint.c (Finteractive): Ditto.
16255 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
16257 * macros.c: Don't include keymap.h any more.
16259 2001-11-01 Richard M. Stallman <rms@gnu.org>
16261 * data.c (Fmake_local_variable): Doc fix.
16263 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
16264 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
16266 * keymap.c (Fdescribe_buffer_bindings): Print character property
16267 bindings along with or instead of the buffer local map.
16268 Make the overriding maps override what they should.
16270 2001-11-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16272 * window.c (grow_mini_window): Fix typo in comment.
16274 2001-11-01 Gerd Moellmann <gerd@gnu.org>
16276 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
16277 (XTset_vertical_scroll_bar): Likewise.
16279 * xfns.c (x_build_heuristic_mask): Use four_corners_best
16280 instead of IMAGE_BACKGROUND.
16282 * xfns.c (four_corners_best): Reindent.
16284 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
16285 Handle :box so that it is possible to specify sexprs.
16287 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
16289 * s/hpux11.h: New file.
16291 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16293 * emacs.c (USAGE1): Show command line option --no-window-system
16294 instead of --no-windows in usage.
16295 (standard_args): Rename --no-windows to --no-window-system.
16296 (bug_reporting_address): Follow Emacs coding conventions.
16298 * eval.c (Fcommandp): Doc fix.
16299 Change doc-string comments to `new style' [w/`doc:' keyword].
16301 * frame.c (Fframe_live_p): Doc fix.
16303 * buffer.c (selective-display-ellipses): Doc fix.
16305 2001-10-31 Gerd Moellmann <gerd@gnu.org>
16307 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
16309 * xfaces.c (realize_x_face): If C is not a single-byte character,
16310 set the face's colors_copied_bitwise_p instead of the defaulted_p
16311 members which have a different meaning.
16312 (free_face_colors): Do nothing for a face whose colors have been
16315 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
16317 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16319 * marker.c, mocklisp.c: Change doc-string comments to `new style'
16320 [w/`doc:' keyword].
16322 2001-10-31 Gerd Moellmann <gerd@gnu.org>
16324 * fns.c (require_unwind): Return Lisp_Object.
16326 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16328 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
16329 (last-input-char): Revert doc-string to be the same as the
16330 doc-string of `last-input-event'.
16332 * xdisp.c: Fix typos in comments.
16334 2001-10-31 Gerd Moellmann <gerd@gnu.org>
16336 * window.c (grow_mini_window): Handle case that the root
16337 window is already smaller than the nominal mininum height.
16339 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
16341 * emacs.c (main): Don't call keys_of_macros any more.
16343 * lisp.h (keys_of_macros): Remove.
16345 * macros.c (keys_of_macros): Remove.
16347 * xfaces.c (Fface_attribute_relative_p): Declare args.
16349 2001-10-30 Jason Rumney <jasonr@gnu.org>
16351 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
16352 (enum_font_cb2): Ignore fonts with vertical orientation.
16354 2001-10-30 Richard M. Stallman <rms@gnu.org>
16356 * keyboard.c (Finput_pending_p): Doc fix.
16358 2001-10-30 Gerd Moellmann <gerd@gnu.org>
16360 * xterm.c (x_after_update_window_line): Don't run the code
16361 clearing in borders for rows whose visible height is 0.
16363 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
16364 resized_p flag is set. If not set, use the much less flickering
16365 method previously used.
16367 * dispnew.c (change_frame_size_1): Set frame's resized_p.
16369 * frame.h (struct frame) <resized_p>: New member.
16371 * lread.c (to_multibyte): Ensure read_buffer is at least twice
16372 as large as the number of bytes to convert.
16374 * lread.c (to_multibyte): New function.
16377 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
16379 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
16381 2001-10-30 Gerd Moellmann <gerd@gnu.org>
16383 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
16384 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
16385 if the row's fill_line_p is set and drawing the last glyph with
16386 DRAW_IMAGE_{RAISED,SUNKEN}.
16388 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
16390 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
16392 * xmenu.c: Include coding.h and charset.h.
16393 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
16394 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
16395 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
16396 Explicitly set wv->help. Use `TRUE' rather than `True'.
16397 (menu_help_callback): Use empty_string.
16399 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
16400 (Fx_popup_dialog): Explicitly init f.
16401 (w32_menu_display_help): Use empty_string.
16403 2001-10-29 Richard M. Stallman <rms@gnu.org>
16405 * fns.c (Frequire): Detect recursive try to require the same
16406 feature 3 or more levels deep, and get error.
16407 (require_unwind): New subroutine.
16408 (require_nesting_list): New variable.
16409 (syms_of_fns): Init and staticpro it.
16411 * print.c (print_object): Clarify indication of insertion type.
16413 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
16415 * coding.c (syms_of_coding): Document that locale-coding-system is
16416 used for decoding input on X.
16418 * window.c (Fscroll_left, Fscroll_right): Doc fix.
16420 2001-10-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16422 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
16423 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
16425 2001-10-29 Gerd Moellmann <gerd@gnu.org>
16427 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
16428 use NO_CURSOR if cursor_in_non_selected_windows is false.
16430 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
16431 the slant attribute if FRAME is t.
16433 * xfns.c (x_set_internal_border_width): Set frame garbaged
16434 when X window doesn't exist yet.
16436 * xterm.c (x_after_update_window_line): Clear internal border
16437 in different circumstances.
16439 * xterm.c (XTread_socket) <KeyPress>: Don't use
16440 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
16443 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
16445 * m/ibms390.h: New file. From Adam Thornton
16446 <athornton@sinenomine.net>.
16448 2001-10-28 Gerd Moellmann <gerd@gnu.org>
16450 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
16452 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
16455 2001-10-28 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16457 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
16459 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
16461 Fix typos in comments.
16463 * emacs.c (bug_reporting_address): New function.
16464 Use it when displaying usage message.
16466 * minibuf.c (read_minibuf): Remove unused external declaration of
16467 variable `Qread_only'.
16469 * keymap.c (access_keymap): Remove unused variable `charset'.
16471 2001-10-28 Miles Bader <miles@gnu.org>
16473 * xfaces.c (merge_face_heights): Handle TO being relative as well.
16474 Remove #ifdef'd-out code.
16475 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
16476 (syms_of_xfaces): Initialize them.
16478 2001-10-27 Jason Rumney <jasonr@gnu.org>
16480 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
16481 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
16482 position using the system caret.
16484 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
16485 (w32_system_caret_height, w32_system_caret_x)
16486 (w32_system_caret_y): New variables for tracking system caret.
16487 (w32_initialize): Initialize them.
16488 (x_display_and_set_cursor): Make system caret follow the active cursor.
16490 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
16491 New messages types.
16493 * w32term.c (note_mouse_highlight): Clear old help_echo.
16495 2001-10-27 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16497 * xterm.c: Fix typo in a comment.
16499 * emacs.c: Fix typos in comments.
16500 Remove unnecessary spaces.
16501 Change doc-string comments to `new style' [w/`doc:' keyword].
16502 (USAGE2): Fix typos in usage string.
16504 * xterm.c: Fix typo in a comment.
16506 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
16509 2001-10-27 Gerd Moellmann <gerd@gnu.org>
16511 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
16512 instead of 1/2 line_height in the heuristic for skipping
16513 farther backward when target_y was not reached.
16515 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
16516 Display errno only if non-zero.
16517 (sound_warning): New function.
16518 (vox_configure): Don't treat failing to set sample rate as error.
16519 (various places): Improve error messages.
16521 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
16523 * fileio.c (Faccess_file): Run the argument filename through
16524 Fexpand_file_name, before using it.
16526 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
16527 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
16529 2001-10-26 Gerd Moellmann <gerd@gnu.org>
16531 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
16533 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
16534 Fix clearing in the case of scroll bars on the right.
16536 2001-10-26 Juanma Barranquero <lektu@terra.es>
16538 * w32gui.h (XImage): Add a dummy typedef.
16540 2001-10-26 Gerd Moellmann <gerd@gnu.org>
16542 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
16544 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
16546 * frame.c (Fframe_parameter): Fix last change.
16548 * fileio.c: Revert last change (which removed old commented-out
16549 version of expand-file-name). Add a comment that explains why
16550 this old version should not be removed.
16552 2001-10-25 Gerd Moellmann <gerd@gnu.org>
16554 * frame.c (Fframe_parameter): Fix a bug whereby some
16555 ``artificial'' frame parameters, like `minibuffer' were not
16556 obtained by calling Fframe_parameters.
16558 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
16559 cursor differently.
16561 * xdisp.c (move_it_vertically_backward): Compute line height
16562 differently. Add heuristic to try to be more compatible to 20.x.
16564 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
16566 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
16568 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
16571 2001-10-25 Miles Bader <miles@gnu.org>
16573 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
16574 BG is a pointer to a structure, not a structure.
16575 (gif_format, png_format): Add missing commas.
16577 2001-10-24 Richard M. Stallman <rms@gnu.org>
16579 * xfaces.c (Fface_attributes_as_vector): New function.
16580 (syms_of_xfaces): Defsubr it.
16582 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16584 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
16587 2001-10-25 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16589 * search.c (scan_newline): Remove unused variable `selective_display'.
16591 2001-10-25 Miles Bader <miles@gnu.org>
16593 * dispextern.h (struct image): Add `background',
16594 `background_valid', and `background_transparent' fields.
16595 (image_background, image_background_transparent): New declarations.
16596 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
16597 * xfns.c (image_background, image_background_transparent)
16598 (four_corners_best): New functions.
16599 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
16600 (gs_format): Add `:background' entry.
16601 (lookup_image): Set IMG's background color if specified.
16602 (pbm_load, xbm_load_image, png_load): Set IMG's background field
16604 (x_clear_image_1): Reset `background_valid' and
16605 `background_transparent_valid' fields.
16606 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
16607 calculating it here. Set IMG's background_transparent field.
16608 (enum xpm_keyword_index): Add XPM_BACKGROUND.
16609 (enum png_keyword_index): Add PNG_BACKGROUND.
16610 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
16611 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
16612 (enum gif_keyword_index): Add GIF_BACKGROUND.
16613 (enum gs_keyword_index): Add GS_BACKGROUND.
16614 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
16615 Pre-calculate image background color where necessary.
16616 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
16617 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
16618 color to use for image glyph reliefs.
16620 2001-10-24 Gerd Moellmann <gerd@gnu.org>
16622 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
16623 in full-width rows.
16625 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
16626 Fix clearing of area not covered by scroll bar.
16628 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16630 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
16632 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
16633 (glyph_rect): Remove unused variable `area'.
16635 2001-10-24 Gerd Moellmann <gerd@gnu.org>
16637 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
16639 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
16640 (row_containing_pos): Take additional argument DY.
16641 Treat rows ending in middle of char differently.
16642 (display_line): Handle tabs on window systems differently.
16644 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
16645 with additional argument.
16647 * dispextern.h (row_containing_pos): Adjust prototype.
16649 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
16650 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
16651 (try_window_id, try_window_reusing_current_matrix)
16652 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
16653 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
16655 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16657 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
16659 (HAVE_BOXES): Fix typo in comment.
16660 (push_menu_pane): Fix typo in comment.
16662 * xdisp.c: (display_prop_string_p): Remove unused local declaration
16664 (single_display_prop_string_p): Remove unused local declarations
16665 of `Qwhen' and `Qmargin'.
16666 (string_buffer_position): Remove unused variable `around'.
16667 (store_frame_title): Remove unused variable `width'.
16669 * window.c: Don't define max.
16670 (coordinates_in_window): Remove unused variable `uy'.
16672 * widget.c: Don't define max.
16674 * process.c: Don't define max.
16675 (create_process): Remove unused variable `buffer'.
16677 2001-10-23 Gerd Moellmann <gerd@gnu.org>
16679 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
16681 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
16683 * xfaces.c (Finternal_set_lisp_face_attribute)
16684 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
16685 frame is on a windowed display.
16687 2001-10-23 Gerd Moellmann <gerd@gnu.org>
16689 * dispnew.c (sync_window_with_frame_matrix_rows):
16690 Fix handling of windows which aren't full-width, fix handling
16693 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
16695 2001-10-23 Andreas Schwab <schwab@suse.de>
16697 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
16698 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
16700 2001-10-23 Gerd Moellmann <gerd@gnu.org>
16702 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
16703 REAL_END. Notice if cursor gets overwritten.
16704 (notice_overwritten_cursor): Take X positions as parameters.
16705 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
16706 around call to x_draw_glyphs.
16708 2001-10-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16710 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
16711 instead of C) and usage.
16713 * editfns.c (char-to-string): Fix argument names (use CHAR instead
16716 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
16717 `left', `max_width' and `max_height'.
16719 2001-10-23 Gerd Moellmann <gerd@gnu.org>
16721 * xdisp.c (display_line): For a tab continued to the next line,
16722 set row's ends_in_middle_of_char_p.
16724 2001-10-22 Gerd Moellmann <gerd@gnu.org>
16726 * xdisp.c (display_line): Fix computation of continuation lines
16729 2001-10-22 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16731 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
16734 * fileio.c: Remove unused code.
16736 2001-10-22 Miles Bader <miles@gnu.org>
16738 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
16739 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
16740 Remove `DOC_STRINGS_IN_COMMENTS' cases.
16742 2001-10-21 Jason Rumney <jasonr@gnu.org>
16744 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
16746 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
16748 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
16749 (Finsert_string): Avoid the multi-line string literals warning.
16751 2001-10-22 Miles Bader <miles@gnu.org>
16753 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
16754 (Fdocumentation): Don't use it.
16755 (syms_of_doc): Don't initialize it.
16757 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
16758 * print.c (Fwith_output_to_temp_buffer): Likewise.
16759 * window.c (Fsave_window_excursion): Likewise.
16760 * editfns.c (Fsave_excursion, Fsave_current_buffer)
16761 (Fsave_restriction): Likewise.
16762 * eval.c (Frun_hooks, Frun_hook_with_args)
16763 (Frun_hook_with_args_until_failure)
16764 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
16765 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
16766 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
16767 (Funwind_protect, Fcondition_case): Likewise.
16768 * coding.c (Ffind_operation_coding_system): Likewise.
16769 * keyboard.c (Ftrack_mouse): Likewise.
16771 2001-10-21 Miles Bader <miles@gnu.org>
16773 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
16774 (Fmake_hash_table): Add usage: string to doc string.
16775 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
16776 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
16777 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
16778 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
16779 (Fml_prefix_argument_loop): Likewise.
16781 2001-10-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16783 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
16785 * sysdep.c (init_sys_modes): Change doc-string comments to `new
16786 style' [w/`doc:' keyword].
16788 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
16789 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
16790 comments to `new style' [w/`doc:' keyword].
16792 2001-10-21 Jason Rumney <jasonr@gnu.org>
16794 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
16796 * w32term.c (remember_mouse_glyph): New function.
16797 (w32_mouse_position): Use it.
16798 (note_mouse_movement): If the mouse moved off the glyph, remember
16801 * w32term.h (struct w32_output): Correct spelling of x_compatible.
16802 (w32_display_info): Add mouse_face_overlay.
16804 * w32term.c (notice_overwritten_cursor): Renamed from
16805 note_overwritten_text_cursor. Rewritten to take glyph widths into
16807 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
16808 (fast_find_string_pos): New function.
16809 (fast_find_position): Return the correct vpos. Add parameter
16810 STOP. In the final row, stop before glyphs having STOP as object.
16811 Don't consider glyphs that are not from a buffer.
16812 (fast_find_position) [0]: Add a presumably more correct version
16814 (expose_window_tree, expose_frame): Don't compute intersections here.
16815 (expose_window): Do it here instead.
16816 (expose_window_tree, expose_window, expose_line): Return 1 when
16817 overwriting mouse-face.
16818 (expose_window): If W is the window currently being updated, mark
16819 the frame garbaged.
16820 (expose_frame): If mouse-face was overwritten, redo it.
16821 (x_use_underline_position_properties): New variable.
16822 (syms_of_xterm): DEFVAR_BOOL it.
16823 (x_draw_glyph_string): Add comment to use it in future.
16824 (x_draw_glyph_string): Restore clipping after drawing box.
16825 Fix a computation of the underline position.
16826 (w32_get_glyph_string_clip_rect): Minor cleanup.
16827 (x_fill_stretch_glyph_string): Remove an assertion.
16828 (x_produce_glyphs): Don't convert multibyte characters
16829 to unibyte characters in unibyte buffers.
16830 (cursor_in_mouse_face_p): New function.
16831 (x_draw_stretch_glyph_string): Use it to choose a different GC
16832 when drawing a cursor within highlighted text. Don't draw
16833 background again if it has already been drawn.
16834 (x_draw_glyph_string_box): Don't draw a full-width
16835 box just because the glyph row's full_width_p flag is set.
16836 (x_draw_glyphs): Fix computation of rightmost x for
16838 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
16839 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
16840 change bottom shadow accordingly. Some cleanup.
16841 (x_update_window_end): Handle overwritten mouse face
16842 also for tool bar windows.
16843 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
16844 DRAW is DRAW_IMAGE_RAISED.
16845 (clear_mouse_face): Return 1 if text with mouse face was
16846 actually redrawn. Make the function static.
16847 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
16848 optimize away highlighting if we pass over that same overlay again.
16849 (note_mouse_highlight): Call mouse_face_overlay_overlaps
16850 to detect a case where we have to highlight a different region
16851 despite not having left the currently highlighted region.
16852 Set mouse_face_overlay in the x_display_info. Avoid changing the
16853 mouse pointer shape when show_mouse_face has already done it, or
16854 there is no need. Handle mouse-face and help-echo in strings.
16855 (glyph_rect): New function.
16856 (w32_mouse_position): Use it to raise the threshold for mouse
16857 movement event generation.
16858 (w32_initialize_display_info): Initialize the x_display_info's
16859 mouse_face_overlay.
16860 (w32_set_vertical_scroll_bar): Don't clear a zero height
16862 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
16863 a widget to zero height.
16865 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
16866 Protect unibyte strings created by replacing their multibyte
16867 equivalents in menu_items.
16868 (w32_menu_show): Don't overwrite an item's name with its key
16869 description in case the description is a multibyte string.
16870 (single_submenu): Some cleanup.
16872 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
16873 (postprocess_image): New function.
16874 (lookup_image): Call it for all image types except PostScript.
16875 (x_kill_gs_process): Call postprocess_image.
16876 (tiff_error_handler, tiff_warning_handler): New functions.
16877 (tiff_load): Install them as handlers.
16878 (x_kill_gs_process): Recognize if someone has cleared the image
16880 (valid_image_p): Protect better against invalid image
16881 specifications. Previous code could signal an error.
16882 (Fx_hide_tip, Fshow_tip): Doc fix.
16883 (Fv_max_tooltip_size): New variable.
16884 (syns_of_xfns): DEFVAR_LISP it.
16885 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
16886 window buffer to *tip* right after creating the frame. Set frame's
16887 window_width. Use a maximum tooltip size specified by
16888 Vx_max_tooltip_size, if that has valid contents.
16889 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
16890 Make sure the tooltip is completely visible.
16891 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
16892 (Fx_create_frame): Adjust the frame's height for presence
16893 of the tool bar before calling x_figure_window_size.
16894 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
16895 when the window gets smaller.
16896 (x_set_foreground_color): Set frame's cursor_pixel.
16897 (x_set_foreground_color, x_set_background_color): Cleaned up.
16898 (x_set_font): Handle case of x_new_fontset returning the same name
16899 as before, although there was a change in fontsets.
16901 2001-10-21 Miles Bader <miles@gnu.org>
16903 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
16904 (Flogxor): Add usage: string to doc string.
16905 * charset.c (Fstring): Likewise.
16906 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
16907 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
16909 2001-10-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16911 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
16913 * alloc.c: Reindent DEFUNs with doc: keywords.
16915 * abbrev.c (Finsert_abbrev_table_description): Reindent.
16917 * frame.c: Change doc-string comments to `new style' [w/`doc:'
16920 See ChangeLog.9 for earlier changes.
16922 ;; Local Variables:
16923 ;; coding: iso-2022-7bit
16926 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
16927 Copying and distribution of this file, with or without modification,
16928 are permitted provided the copyright notice and this notice are preserved.
16930 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4