2 2005-04-01 Kenichi Handa <handa@m17n.org>
4 * lisp.h (Vascii_upcase_table, Vascii_canon_table,
5 Vascii_eqv_table): Extern them.
7 * casetab.c (set_case_table): If standard is nonzero, setup
8 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
10 * search.c (looking_at_1): Use current_buffer->case_canon_table,
12 (string_match_1): Likewise.
13 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
14 Vascii_downcase_table.
15 (fast_string_match_ignore_case): Likewise.
16 (search_buffer): Fix checking of boyer-moore usability.
17 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance. No
18 need of tranlating characters in PAT. Fix calculation of
21 2005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
23 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
24 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
25 Use XtNtopShadowPixel and XtNbottomShadowPixel.
26 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
27 really work and that breaks with some versions of Xaw3d.
29 2005-03-31 Kenichi Handa <handa@m17n.org>
31 * coding.c (syms_of_coding): Fix previous change.
33 2005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
35 * fileio.c (search_embedded_absfilename): Fix last change.
37 2005-03-25 Kenichi Handa <handa@m17n.org>
39 * coding.c (syms_of_coding): Suggest to use set-coding-category in
40 the docstring of coding-category-list.
42 2005-03-31 Kim F. Storm <storm@cua.dk>
44 * keyboard.c (Qmouse_fixup_help_message): New var.
45 (syms_of_keyboard): Intern and staticpro it.
46 (show_help_echo): Apply mouse-fixup-help-message to help string.
48 2005-03-30 Kim F. Storm <storm@cua.dk>
50 * xdisp.c (display_line): Allow multiple overlay arrows in window.
52 2005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
54 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
55 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
56 (Ffile_name_absolute_p): Use it.
57 (search_embedded_absfilename): New fun, extracted from
58 Fsubstitute_in_file_name. Use file_name_absolute_p.
59 Free the pw data after use.
60 (Fsubstitute_in_file_name): Use it.
61 After cutting a prefix, re-check file-name-handler.
63 2005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
65 * w32term.h (x_output): Add focus_state.
67 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
68 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
70 2005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
72 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
74 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
76 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
78 * dired.c (Ffile_attributes): Add a missing gcpro.
80 * alloc.c (make_number): The arg can be bigger than `int'.
81 * lisp.h (make_number): Make prototype more precise.
83 * process.c, dired.c (Vfile_name_coding_system)
84 (Vdefault_file_name_coding_system):
85 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
86 (Vdefault_file_name_coding_system): Remove unused declarations.
88 2005-03-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
90 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
91 if it failed to pop up (Gnome "show pointer on ctrl" option makes
92 menus fail to pop up).
94 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
96 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
97 Just prepend a backslash without replacing the NBSP by an SPC.
99 2005-03-22 Kim F. Storm <storm@cua.dk>
101 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
102 * dispextern.h (lookup_derived_face): Fix prototype.
103 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
105 * xdisp.c (handle_single_display_spec): Derive left-fringe and
106 right-fringe face from fringe face.
108 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
109 Derive face from fringe face.
111 2005-03-22 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
113 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
115 2005-03-22 David Kastrup <dak@gnu.org>
117 * textprop.c (Fnext_char_property_change)
118 (Fprevious_char_property_change): Allow marker as limit.
119 (Fnext_single_char_property_change)
120 (Fprevious_single_char_property_change): Check that limit is a
122 (Fnext_single_char_property_change): Coerce position to integer.
123 (Fprevious_single_char_property_change): Same here.
125 2005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
127 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
129 2005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
131 * frame.c (Fignore_event): Remove.
132 (syms_of_frame): Don't defsubr it.
134 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
135 redundant `ignore-event'.
137 2005-03-19 Eli Zaretskii <eliz@gnu.org>
139 * unexec.c (write_segment, unexec): Move these functions to avoid
140 forward references (which cause errors with "gcc -gcoff").
142 2005-03-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
144 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
145 that it doesn't become "tooltip". The specbind is enough.
147 * xrdb.c (x_load_resources): Use different char *helv when I18N
150 2005-03-17 Kenichi Handa <handa@m17n.org>
152 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
154 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
156 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
157 Use xic_create_fontsetname even for non-Motif menus.
158 Don't forget to free the fontsetname.
160 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
162 2005-03-17 Richard M. Stallman <rms@gnu.org>
164 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
166 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
167 (Fmake_symbolic_link): Use G to read the new file name.
169 * callint.c (Finteractive): Document G option.
170 (Fcall_interactively): Implement G option.
172 * buffer.c (buffer_lisp_local_variables): New function,
173 broken out from Fbuffer_local_variables.
174 (clone_per_buffer_values): Use buffer_lisp_local_variables.
176 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
178 * xfns.c (xic_create_fontsetname): Add `motif' argument.
179 Always return a freshly allocated string.
180 (xic_create_xfontset): Adjust call.
182 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
183 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
184 (dump_realized_face): Fix warning.
186 * emacs.c (Fkill_emacs): YAILOM.
188 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
190 2005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
192 * mac.c (HASHKEY_TERMINAL): Remove.
193 (HASHKEY_MAX_NID): New macro.
194 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
196 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
197 (xrm_create_database, xrm_q_put_resource)
198 (xrm_merge_string_database, xrm_q_get_resource_1)
199 (xrm_q_get_resource): Change resource database representation so
200 that it may not use multiple hash tables for a single database.
201 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
203 2005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
205 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
207 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
208 locale-coding-system, as was already done for WINDOWSNT.
210 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
211 translation for chars in the 0-255 range.
213 2005-03-16 Lute Kamstra <lute@gnu.org>
215 * floatfns.c (Ffloor): Doc fix.
217 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
219 * mac.c: Include macterm.h instead of directly including Carbon.h.
220 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
221 (Qarray, Qdictionary): New variables.
222 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
223 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
224 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
225 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
226 in callback for CFDictionaryApplyFunction.
227 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
228 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
229 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
230 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
231 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
232 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
233 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
234 (skip_white_space, parse_comment, parse_include_file)
235 (parse_binding, parse_component, parse_resource_name, parse_value)
236 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
237 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
238 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
241 * macfns.c (mac_get_rdb_resource): Remove function.
242 (x_get_string_resource): Use xrm_get_resource.
244 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
246 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
248 (mac_make_rdb): Create resource database from preferences and
250 (mac_term_init): Save resource database to cddr part of
253 * macterm.h (xrm_merge_string_database, xrm_get_resource)
254 (xrm_get_preference_database): Add externs.
255 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
256 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
257 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
259 * process.c (init_process): Change `#ifdef DARWIN' to `#if
260 defined (DARWIN) || defined (MAC_OSX)'
262 * s/darwin.h (DARWIN): Don't define.
264 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
266 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
267 Remove unused variables.
268 (syms_of_macfns): Don't initialize them. Likewise for
269 Qface_set_after_frame_default. Defvar and initialize
270 Vx_window_horizontal_drag_shape.
271 (x_set_mouse_color): Change mouse pointer shape.
272 (mac_window) [!MAC_OSX]: Create root control.
273 (Fx_create_frame): Remove initializations of mouse pointer shapes.
274 (hourglass_started): New function (from xfns.c).
275 (start_hourglass, cancel_hourglass): Put function body in #ifdef
277 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
278 indicator for each non-tooltip frame if needed, and show it.
279 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
281 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
282 Controls.h. Use ThemeCursor instead of CursHandle.
284 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
285 Remove functions and declarations.
286 (mac_set_colors): Take argument for saving background color.
288 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
289 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
291 (x_update_end, mac_do_track_drag): Don't reset background color.
292 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
294 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
295 indicator control to the upper-right corner of the window.
296 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
297 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
298 (do_window_update): Update controls after updating content area.
299 (mac_handle_window_event): Remove unused extern.
300 (XTread_socket): Check both control handle and control part code
301 to determine whether a scroll bar is clicked. Activate/deactivate
302 root control instead of contained scroll bar controls.
303 (make_mac_terminal_frame): Use ThemeCursor constants.
305 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
306 New member hourglass_control.
307 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
308 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
310 2005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
312 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
313 coincides with that in Apple X11 except `clear', `enter' on
314 laptops, and fn + `enter' on laptops.
316 2005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
318 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
319 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
320 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
322 * xfns.c (xic_defaut_fontset): New constant.
323 (xic_create_fontsetname): New function.
324 Extracted from create_frame_xic. Try to generate a slightly
326 (xic_create_xfontset): Use it.
327 (create_frame_xic): Simplify.
329 2005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
331 * fileio.c (Fmake_symbolic_link): Fix last change.
333 2005-03-11 Richard M. Stallman <rms@gnu.org>
335 * fileio.c (Frename_file, Fadd_name_to_file)
336 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
337 expand the basename of FILE relative to it.
339 2005-03-11 Kenichi Handa <handa@m17n.org>
341 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
342 before calling setup_coding_system so that autoloading of a coding
345 2005-03-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
347 * xfns.c (hourglass_started): New function.
349 * dispextern.h: Declare hourglass_started.
351 * keyboard.c (Fexecute_extended_command): Restart hourglass
352 after call to Fcompleting_read if already started.
354 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
355 GTK main loop is entered in xterm.c, thus doing the redraw.
357 2005-03-10 Kim F. Storm <storm@cua.dk>
359 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
361 2005-03-08 Kenichi Handa <handa@m17n.org>
363 * frame.c (x_set_font): Call set_default_ascii_font if an
364 available font is found.
366 * fontset.c (set_default_ascii_font): New function.
367 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
369 * fontset.h (set_default_ascii_font): Extern it.
371 2005-03-07 Kim F. Storm <storm@cua.dk>
373 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
374 (clear_image_cache_count): New var.
375 (redisplay_internal): Don't clear face and image caches in the
376 middle of redisplay; do it afterwards.
378 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
380 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
381 is valid. If not, clear phys_cursor_on_p and return.
383 2005-03-07 Andreas Schwab <schwab@suse.de>
385 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
387 2005-03-06 Richard M. Stallman <rms@gnu.org>
389 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
391 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
392 (Feval, Ffuncall): Use CHECK_CONS_LIST.
394 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
396 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
397 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
399 2005-03-05 Juri Linkov <juri@jurta.org>
401 * emacs.c (USAGE1): Replace Info node name "command arguments"
402 with "emacs invocation".
403 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
404 allow arguments `--color' and `MODE' to be separated by space.
405 Add --no-blinking-cursor, -nbc.
406 (standard_args): Add -nbc, --no-blinking-cursor.
408 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
410 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
411 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
412 * fileio.c (Fexpand_file_name) [VMS]:
413 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
414 * doc.c (munge_doc_file_name) [VMS]: Likewise.
415 (Fsnarf_documentation): Call munge_doc_file_name.
417 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
419 * s/vms.h (FILE_SYSTEM_CASE): New macro.
420 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
421 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
423 2005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
425 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
426 defined (MAC_OSX) && defined (HAVE_CARBON)'.
428 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
430 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
431 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
432 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
433 (mac_clear_font_name_table): Move extern to macterm.h.
435 * macfns.c (install_window_handler): Move extern to macterm.h.
436 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
437 valid. Don't check !NILP (dir) because it is already checked with
439 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
440 specifying the default location and obtaining the selected filename.
442 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
444 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
445 are included via Carbon.h.
447 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
448 Define USE_CARBON_EVENTS to 1.
449 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
450 (x_free_frame_resources): Call remove_window_handler for
452 [TARGET_API_MAC_CARBON]: Don't include headers that are included
454 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
455 (mac_do_receive_dragUPP): New variables.
456 (mac_handle_service_event, init_service_handler): Put declarations
457 and definitions in #ifdef MAC_OSX.
458 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
459 drag-and-drop handler functions and register them.
460 (remove_window_handler): New function.
461 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
462 Use fsspec_to_posix_pathname.
463 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
464 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
465 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
467 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
468 init_service_handler or init_quit_char_handler.
469 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
471 * macterm.h (install_window_handler, remove_window_handler)
472 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
473 (mac_clear_font_name_table): New externs.
475 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
477 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
478 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
479 (Fexpand_file_name): Likewise.
481 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
483 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
484 no longer special-case VMS. Add bogus return value.
486 2005-03-02 Kim F. Storm <storm@cua.dk>
488 * dispextern.h (XASSERTS): Define to 0 if not already defined.
489 (xassert) [!XASSERTS]: Define dummy version.
491 2005-03-02 Kim F. Storm <storm@cua.dk>
493 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
494 Reported by David Kastrup.
496 2005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
498 * xdisp.c (get_next_display_element): Fix control and escape
499 glyph from display vector.
501 2005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
503 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
505 2005-02-27 Richard M. Stallman <rms@gnu.org>
507 * xdisp.c (fast_find_position): Rename END to BEG.
508 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
510 2005-02-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
512 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
513 gtk_window_resize and x_wm_set_size_hint.
515 2005-02-25 Kim F. Storm <storm@cua.dk>
517 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
519 * xdisp.c (init_from_display_pos): Don't read past end of
520 it->overlay_strings array.
522 2005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
524 * buffer.c (syms_of_buffer): Fix typo.
526 2005-02-23 Lute Kamstra <lute@gnu.org>
528 * buffer.c (Foverlay_buffer): Doc fix.
530 2005-02-22 Kim F. Storm <storm@cua.dk>
532 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
533 and symbol keys in alists and hash tables.
535 * xdisp.c (fast_find_position): Fix search for start of overlay.
537 2005-02-21 Kim F. Storm <storm@cua.dk>
539 * window.c (window_scroll_pixel_based): When scrolling backwards,
540 handle partial visible line at end of window even when we hit PT.
542 2005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
544 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
546 2005-02-21 Kim F. Storm <storm@cua.dk>
548 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
549 I think those asserts are bogus if buffer contains invisible text
552 2005-02-21 David Kastrup <dak@gnu.org>
554 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
556 2005-02-20 Kim F. Storm <storm@cua.dk>
558 * xdisp.c (pos_visible_p): Be sure to move to the specified
559 position. Always get the full ascent / descent of the
560 corresponding row, to return reliable rtop and rbot values.
561 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
562 Must look one character back, as back_to_previous_line_start
563 returns position after the newline.
564 (move_it_vertically_backward): Fix heuristic for when to move further
565 back in case line_height * 2/3 is larger than window height.
566 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
567 as it does not do anything anymore. Add arg current_matrix_p to
568 use current matrix rather than desired matrix when set.
569 (try_cursor_movement): Don't scroll to make cursor row fully
570 visible if cursor didn't move. This avoids unexpected recentering
571 in case of blinking cursor or accepting process output.
572 Use current matrix to check cursor row visibility.
573 (redisplay_window): Fix whether to recenter or move to top in case
574 cursor line is taller than window height.
575 (find_first_unchanged_at_end_row): Stop search if we reach a row
576 which not enabled (instead of abort).
578 2005-02-18 Kim F. Storm <storm@cua.dk>
580 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
581 to be nil in a :box attribute value list; customize prints that
582 as lisp value when no box color is specified.
584 * .gdbinit (pitx, pit): Pretty print display iterator.
585 (prowx, prow): Pretty print glyph row.
586 (pcursorx, pcursor): Pretty print a window cursor.
587 (pwinx, pwin): Pretty print struct window.
589 2005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
591 * alloc.c (BLOCK_BYTES): Harmless typo.
593 2005-02-17 Andreas Schwab <schwab@suse.de>
595 * xfns.c (hack_wm_protocols): Use correct type for last parameter
596 of XGetWindowProperty to avoid aliasing issues.
597 (Fx_window_property): Likewise.
599 * xselect.c (Fx_disown_selection_internal): Use union of struct
600 input_event and struct selection_input_event to avoid aliasing issues.
602 * xterm.c (handle_one_xevent): Use union of struct input_event and
603 struct selection_input_event to avoid aliasing issues.
604 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
606 2005-02-17 Kim F. Storm <storm@cua.dk>
608 * dispextern.h (enum it_method): New enum.
609 (GET_FROM_*): Its members.
610 (struct it): Change member method from function pointer to enum.
612 * xdisp.c (check_it, init_from_display_pos, handle_stop)
613 (setup_for_ellipsis, handle_single_display_spec)
614 (handle_composition_prop, next_overlay_string)
615 (get_overlay_strings, reseat_1, reseat_to_string)
616 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
617 (in_display_vector_p, display_line, get_next_display_element):
618 Change it->method from function pointer to enum.
619 (get_next_element): New array to map it->method to function.
620 (get_next_display_element): Use it.
621 (set_iterator_to_next): Use switch instead of if/else chain.
623 2005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
625 * w32select.c: Summary: Thorough rework to implement Unicode
626 clipboard operations and delayed rendering.
628 Drop last_clipboard_text and related code, keep track of
629 ownership via clipboard_owner instead. Drop old #if0 sections.
631 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
632 (clipboard_owner, modifying_clipboard, cfg_coding_system)
633 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
634 (current_coding_system, current_requires_encoding)
635 (current_num_nls, current_clipboard_type, current_lcid):
636 New static variables.
638 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
639 (render, render_all, run_protected, lisp_error_handler)
640 (owner_callback, create_owner, setup_config)
641 (enum_locale_callback, cp_from_locale, coding_from_cp):
644 (term_w32select, globals_of_w32select): New global functions.
646 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
647 clipboard_owner instead. Use delayed rendering and provide
648 all text formats. Provide CF_LOCALE if necessary.
650 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
651 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
652 available. Force DOS line-ends for decoding.
654 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
656 (syms_of_w32select): Init and register new variables.
658 * w32.h: Add prototypes for globals_of_w32select and
659 term_w32select. Make the neighboring K&R declarations into
662 * emacs.c: Include w32.h to get function prototypes.
663 (main): Call globals_of_w32select.
665 * w32.c (term_ntproc): Call term_w32select.
667 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
669 2005-02-16 Kim F. Storm <storm@cua.dk>
671 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
672 at end of display vector.
674 2005-02-15 Richard M. Stallman <rms@gnu.org>
676 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
677 for mode and header lines.
679 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
681 * keymap.h (describe_map_tree): Change decl.
683 * keyboard.c (command_loop_1): Always use safe_run_hooks
684 to run Qdeferred_action_function.
686 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
687 (describe_map, describe_vector): Likewise. When it's 1,
688 don't omit shadowed bindings, instead mark them as shadowed.
690 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
691 for describe_map_tree. Pass 1 for MENTION_SHADOW.
693 * data.c (Fsetq_default): Allow no arg case.
695 2005-02-14 Kenichi Handa <handa@m17n.org>
697 * coding.c (encode_coding_string): Always return a unibyte string.
698 If NOCOPY is nonzero and there's no need of encoding, make STR
701 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
702 multibyte string, signal an error instead of aborting.
704 2005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
706 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
708 2005-02-12 Kim F. Storm <storm@cua.dk>
710 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
712 2005-02-10 Kim F. Storm <storm@cua.dk>
714 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
715 if it moves outside window or it doesn't display text.
717 2005-02-09 Kim F. Storm <storm@cua.dk>
719 * undo.c (Fprimitive_undo): Check that undo function does not
722 2005-02-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
724 * xselect.c (selection_data_to_lisp_data): For the special case
725 type == XA_ATOM, data contains array of int, not array of Atom.
726 (x_property_data_to_lisp, selection_data_to_lisp_data):
727 Comment update: data must be array of int for format == 32.
729 2005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
731 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
733 2005-02-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
735 * xfns.c (Fx_change_window_property): Use long array when format is 32.
736 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
737 convert long array returned from XGetWindowProperty to an int array.
738 (x_set_tool_bar_lines): Check that width and height is greater than
739 zero before clearing area.
741 * xselect.c (x_reply_selection_request): Pass long array to
742 XChangeProperty so that 64 bit longs are handeled correctly.
743 (x_get_window_property): If format is 32 and long is bigger than 32
744 bits convert data from XGetWindowProperty from long array to int array.
745 (lisp_data_to_selection_data): When the input is a vector and the
746 format is 32, allocate a long array even if long is bigger than 32 bits.
747 (x_fill_property_data): Use char, short and long as the man page
748 for XChangeProperty specifies. This way the data returned is OK for
749 both 32 and 64 bit machines.
750 (x_handle_dnd_message): Calculate size correctly even for 64 bit
752 (Fx_send_client_event): Undo change from 2005-02-05,
753 x_fill_property_data now handles that case.
755 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
756 reason for the approach in the code.
758 2005-02-07 Kim F. Storm <storm@cua.dk>
760 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
762 2005-02-06 Richard M. Stallman <rms@gnu.org>
764 * eval.c (Frun_hook_with_args)
765 (Frun_hook_with_args_until_success)
766 (Frun_hook_with_args_until_failure): Doc fixes.
768 2005-02-05 Andreas Schwab <schwab@suse.de>
770 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
772 2005-02-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
774 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
775 the longs in a XClientMessageEvent correctly when long is 64 bits.
777 2005-02-05 Eli Zaretskii <eliz@gnu.org>
779 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
780 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
782 2005-02-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
784 * xmenu.c (menubar_selection_callback): Force out GTK buffered
785 events so the menu event comes after them. This is to prevent sit-for
786 from exiting on buffered events directly after a menu selection,
787 lisp code for Help => About Emacs uses sit-for.
789 * gtkutil.c (create_menus): Connect selection-done event instead of
790 the deactivate event to deactivate_cb. This will make the last
791 leave event come before the call to deactivate_cb, so the leave
792 event does not make sit-for exit after a menu selection.
794 2005-02-03 Kim F. Storm <storm@cua.dk>
796 * dispnew.c (build_frame_matrix_from_leaf_window)
797 [!GLYPH_DEBUG]: Fix xassert.
799 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
801 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
803 2005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
805 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
806 the compiling OS version.
808 * macfns.c (x_create_tip_frame): Likewise.
810 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
812 2005-02-03 Richard M. Stallman <rms@gnu.org>
814 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
816 * xdisp.c (echo_area_display): Clear echo_message_buffer.
818 * buffer.c (Fbury_buffer): Doc fix.
820 2005-02-02 Steven Tamm <steventamm@mac.com>
822 * macfns.c (unwind_create_frame): Fixing compile error due to
823 xassert being uncondition, but predicate is.
824 * dispnew.c (update_window): Fixing compile error due to
825 xassert being uncondition, but predicate is.
827 2005-02-02 Miles Bader <miles@gnu.org>
829 * dispextern.h (xassert): Enable unconditionally.
831 2005-02-02 Kim F. Storm <storm@cua.dk>
833 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
835 2005-02-02 Kenichi Handa <handa@m17n.org>
837 * casefiddle.c (casify_object): Enable changing characters of
838 different byte length.
839 (casify_region): Fix loop condition, args to replace_range_2, and
842 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
844 2005-02-01 Kim F. Storm <storm@cua.dk>
846 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
847 stack before calling handle_display_prop.
849 2005-01-31 Kim F. Storm <storm@cua.dk>
851 * undo.c (Qapply): New lisp var.
852 (syms_of_undo): Intern and staticpro it.
853 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
854 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
856 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
858 2005-01-30 Jesper Harder <harder@phys.au.dk>
860 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
861 <mac-emulate-three-button-mouse>: Fix docstring indentation.
863 2005-01-29 Luc Teirlinck <teirllm@auburn.edu>
865 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
866 Increase value to 3 Meg.
868 2005-01-29 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
870 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
871 button events are not received otherwise.
873 2005-01-29 Richard M. Stallman <rms@gnu.org>
875 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
877 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
879 2005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
881 * keymap.c (access_keymap): YAILOM.
883 2005-01-27 Kim F. Storm <storm@cua.dk>
885 * xdisp.c (get_phys_cursor_geometry): New function to calculate
886 phys cursor position and size for hollow cursor. Position is
887 aligned with get_glyph_string_clip_rect and ensures that a hollow
888 cursor is shown, even when the actual glyph is not visible.
890 * dispextern.h (get_phys_cursor_geometry): Add prototype.
892 * xterm.c (x_clip_to_row): Ensure y >= 0.
893 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
895 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
897 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
899 2005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
901 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
903 2005-01-27 Kim F. Storm <storm@cua.dk>
905 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
906 glyph, even when row is only partially visible and actual cursor
907 position is not visible.
909 2005-01-24 Richard M. Stallman <rms@gnu.org>
911 * xterm.c (x_error_quitter): No longer static, and moved after
914 2005-01-24 Kim F. Storm <storm@cua.dk>
916 * xdisp.c (move_it_by_lines): If we move forward after going too
917 far back, cancel move if end position is same as start position.
919 2005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
921 * dispextern.h (struct glyph_string): New members clip_head and
924 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
925 region to the area between clip_head and clip_tail.
926 (draw_glyphs): Record the area that need to be actually redrawn to
927 the new variables clip_head and clip_tail when there are
928 overhangs. Set values of these variables to the corresponding
929 members in struct glyph_string. Refine x coordinates for
930 notice_overwritten_cursor using clip_head and clip_tail.
932 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
934 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
936 (x_draw_glyph_string): Don't fill the background of the successor
937 of a glyph with a right overhang if the successor will draw a cursor.
938 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
939 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
941 2005-01-24 Kim F. Storm <storm@cua.dk>
943 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
944 direction if window height was smaller than next-screen-context-lines.
945 Now always scroll at least one line in the requested direction.
946 Ensure that we actually do scroll backwards when requested to do so.
948 * xdisp.c (redisplay_window): Only try to make cursor line fully
949 visible once (to avoid redisplay loop).
951 2005-01-23 Kim F. Storm <storm@cua.dk>
953 * window.c (Fpos_visible_in_window_p): Simplify return value for
954 partially visible rows.
955 (window_scroll_pixel_based): Adapt to that change.
957 * window.c (window_scroll_pixel_based): Force moving to next line
958 if scrolling doesn't move start point, e.g. if looking at tall image.
960 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
961 Clear last_height before calling line_bottom_y to get real height.
962 Fix calculation of y.
964 2005-01-22 Steven Tamm <steventamm@mac.com>
966 * s/darwin.h: Removed PTY_ITERATION from here.
968 * process.c (init_process): Default process-connection-type to
969 nil on darwin 6 or less, t if it is 7 or higher. This way the
970 broken pty behavior is still allowed on darwin 6 for interactive
971 processes for people that know what they are doing.
973 2005-01-22 Kim F. Storm <storm@cua.dk>
975 * window.c (auto_window_vscroll_p): New boolean.
976 (syms_of_window): DEFVAR_BOOL it.
977 (Fpos_visible_in_window_p): Extend return value to include RTOP
978 and RBOT values if FULLY is nil.
979 (window_scroll_pixel_based): Adjust vscroll for partially visible
980 rows if auto_window_vscroll_p is set.
981 (Fset_window_vscroll): Do nothing if vscroll is not modified.
983 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
984 to return number of partially invisible pixels at top and bottom
985 of the dislay row at POS.
987 * lisp.h (pos_visible_p): Fix prototype.
989 2005-01-21 Richard M. Stallman <rms@gnu.org>
991 * fileio.c (Fcopy_file): Doc fix.
993 2005-01-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
995 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
996 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
997 start of function for older compilers.
999 2005-01-20 Richard M. Stallman <rms@gnu.org>
1001 * editfns.c (Fmessage): If arg is "", return "" (as before).
1003 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
1005 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
1008 2005-01-20 Steven Tamm <steventamm@mac.com>
1010 * editfns.c (Voperating_system_release): Add.
1011 (init_editfns): Assign new variable operating-system-release
1012 based on call to uname if available.
1013 (get_operating_system_release): Add function to
1014 allow c-level access to operating system release.
1016 * config.h: Regenerated.
1018 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
1019 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
1022 2005-01-20 Kim F. Storm <storm@cua.dk>
1024 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
1026 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
1027 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
1029 * macterm.c (x_draw_glyph_string_box): Likewise.
1031 * w32term.c (x_draw_glyph_string_box): Likewise.
1033 * indent.c (Fvertical_motion): Temporarily disable selective display.
1035 2005-01-19 Kim F. Storm <storm@cua.dk>
1037 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
1040 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
1042 2005-01-18 Kim F. Storm <storm@cua.dk>
1044 * xdisp.c (fast_find_position): Backtrack to find first row if
1045 charpos is inside a display overlay that spans multiple lines.
1047 2005-01-18 Kenichi Handa <handa@m17n.org>
1049 * coding.c (decode_coding_iso2022): Translate invalid codes if
1050 translation-table is specified.
1052 2005-01-18 Kim F. Storm <storm@cua.dk>
1054 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
1055 change. If handle_display_prop indicates newline is replaced by
1056 image or text, move back to start of relevant overlay or interval
1057 and continue scan from there. Simplify.
1059 2005-01-17 Kim F. Storm <storm@cua.dk>
1061 * dispnew.c (mode_line_string, marginal_area_string):
1062 Fix off-by-one error in search for glyph.
1064 2005-01-16 Kim F. Storm <storm@cua.dk>
1066 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
1068 2005-01-16 Steven Tamm <steventamm@mac.com>
1070 * macterm.c (mac_to_x_fontname): Remove spurious argument.
1072 2005-01-16 Andreas Schwab <schwab@suse.de>
1074 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
1076 2005-01-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1078 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
1079 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
1081 2005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1083 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
1084 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
1085 New flags for readable_events.
1086 (get_filtered_input_pending, readable_filtered_events): Remove.
1087 (tracking_off): Call readable_events and get_input_pending with
1088 flag READABLE_EVENTS_DO_TIMERS_NOW.
1089 (readable_events): Move code from old readable_filtered_events here,
1090 but check new READABLE_EVENTS_* in argument flags instead of previous
1091 two boolean arguments do_timers_now and filter_events.
1092 If we are doing mouse tracking and the mouse moved, return only if
1093 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
1094 (swallow_events): Call get_input_pending with flag
1095 READABLE_EVENTS_DO_TIMERS_NOW.
1096 (get_input_pending): Move code from old get_filtered_input_pending
1097 here. Replace boolean arguments do_timers_now, filter_events with
1098 flags, and pass flags to readable_events. Document new
1099 READABLE_EVENTS_* flags.
1100 (detect_input_pending_ignore_squeezables): New function.
1101 (detect_input_pending_run_timers): Call get_input_pending with flag
1102 READABLE_EVENTS_DO_TIMERS_NOW.
1103 (Finput_pending_p): Call get_input_pending with flags
1104 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
1106 * dispnew.c (update_window, update_frame_1): Replace calls to
1107 detect_input_pending with detect_input_pending_ignore_squeezables
1108 so that redisplay is not paused if the event queue contains only
1111 * lisp.h: Declare detect_input_pending_ignore_squeezables.
1113 2005-01-15 Steven Tamm <steventamm@mac.com>
1115 * macterm.c (Vmac_use_core_graphics): Declare variable for
1116 mac-allow-anti-aliasing.
1117 (syms_of_macterm): DEFVAR_LISP and initialize it.
1118 (mac_draw_string_common): Use core graphics text rendering if
1119 mac-allow-anti-aliasing is enabled.
1121 * macfns.c (Fx_file_dialog): Save As dialog includes only the
1122 file name in the text box.
1124 2005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1126 * macfns.c (x_set_foreground_color, x_set_background_color):
1128 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
1129 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
1130 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
1132 2005-01-14 Kim F. Storm <storm@cua.dk>
1134 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
1136 2005-01-13 Richard M. Stallman <rms@gnu.org>
1138 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
1139 if Voverriding_terminal_local_map is non-nil.
1141 * keyboard.c (syms_of_keyboard): Doc fix.
1143 2005-01-13 Kim F. Storm <storm@cua.dk>
1145 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
1146 (specify 0 for FACE instead). Reorder arg list. Doc fix.
1148 2005-01-12 Richard M. Stallman <rms@gnu.org>
1150 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
1151 face property for characters that don't specify one.
1153 * fns.c (Frequire): Record in load-history unconditionally.
1155 2005-01-10 Kim F. Storm <storm@cua.dk>
1157 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
1159 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
1161 Add support to merge with lisp face id too (if face_name is t).
1163 * xdisp.c (get_next_display_element, next_element_from_display_vector):
1164 Don't lookup lface_id from display table glyphs here; instead use
1165 merge_faces to merge the lisp face id into current face.
1167 2005-01-09 Kim F. Storm <storm@cua.dk>
1169 * dispextern.h (struct it): New member dpvec_face_id.
1170 (merge_into_realized_face): Add prototype.
1172 * xfaces.c (merge_into_realized_face): New function. Used to
1173 merge escape-glyph face or face from display table into current face.
1175 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
1176 (syms_of_xdisp): DEFVAR_LISP it.
1177 (escape_glyph_face): Remove var.
1178 (redisplay_window): Don't initialize it.
1179 (setup_for_ellipsis, get_next_display_element):
1180 Set it->dpvec_face_id to -1.
1181 (get_next_display_element): Test Vshow_nonbreak_escape.
1182 Do not setup escape_glyph_face.
1183 Properly merge escape-glyph face or face from display table with
1184 current face for escape and control characters.
1185 Set it->dpvec_face_id to relevant face id instead of adding it to each
1186 element of display vector.
1187 (next_element_from_display_vector): If it->dpvec_face_id is set,
1188 use that instead of lface_id from glyph itself.
1190 2005-01-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1192 * xterm.h (struct x_output): New member, toolbar_detached.
1194 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
1196 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
1197 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
1198 (xg_create_tool_bar): Initialize toolbar_detached.
1199 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
1200 toolbar_detached is zero.
1202 2005-01-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1204 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
1205 gtk_menu_popup if not for_click, so callbacks for the menu are called.
1207 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
1208 (xg_tool_bar_callback, xg_tool_bar_help_callback)
1209 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
1211 * xselect.c (x_get_foreign_selection, x_fill_property_data)
1212 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
1213 XFLOAT_DATA to get extract number from Lisp object.
1215 2005-01-07 Kim F. Storm <storm@cua.dk>
1217 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
1218 Set stop_charpos to current charpos instead of 0.
1220 2005-01-06 Nick Roberts <nickrob@snap.net.nz>
1222 * xdisp.c (Fformat_mode_line): First arg now required.
1224 2005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1226 * macterm.c (XLoadQueryFont): Correctly handle 0 size
1227 font widths that are returned from some Japanese fonts.
1229 2005-01-06 Kim F. Storm <storm@cua.dk>
1231 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
1232 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
1233 (destroy_fringe_bitmap): Set fringe_faces element to nil.
1234 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
1235 fringe_faces array and init elements to nil.
1236 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
1237 non-persistent face id.
1238 (mark_fringe_data): New function for GC.
1240 * alloc.c (mark_fringe_data): Declare extern.
1241 (Fgarbage_collect): Call mark_fringe_data.
1243 * alloc.c (overrun_check_free): Invalidate freed memory if
1244 XMALLOC_CLEAR_FREE_MEMORY is defined.
1246 2005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1248 * macfns.c: Include sys/param.h.
1249 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
1251 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
1252 of filename string. Set event callback function when creating
1253 dialog boxes. Add code conversions for filenames. Don't dispose
1254 apple event descriptor record if failed to create it.
1256 * macterm.c: Include sys/param.h.
1257 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
1259 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
1260 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
1261 of FSSpec from apple event descriptor record.
1262 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
1263 size of filename string.
1264 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
1265 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
1266 file dialog is in action.
1267 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
1268 Reject only when there are no filename items. Set background color
1269 before (un)highlighting the window below the dragged items.
1270 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
1272 2005-01-05 Romain Francoise <romain@orebokech.com>
1274 * term.c (encode_terminal_code): Fix buffer size computation.
1276 2005-01-04 Richard M. Stallman <rms@gnu.org>
1278 * xdisp.c (Fformat_mode_line): Doc fix.
1280 2005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1282 * alloc.c (refill_memory_reserve): Move.
1283 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
1284 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
1286 2005-01-03 Richard M. Stallman <rms@gnu.org>
1288 * window.c (window_scroll_pixel_based): Don't correct preserve_y
1289 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
1291 2005-01-03 Jason Rumney <jasonr@gnu.org>
1293 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
1294 fontp->space_width to FONT_WIDTH so they are valid.
1296 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
1297 average width. Set fontp->average_width and fontp->space_width to
1298 their appropriate values.
1300 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
1301 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
1304 2005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1306 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
1307 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
1308 metrics for max and min bounds.
1309 (x_load_font): Correctly calculate average font width metrics.
1311 2005-01-02 Richard M. Stallman <rms@gnu.org>
1313 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
1315 2004-12-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1317 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
1319 2004-12-31 Richard M. Stallman <rms@gnu.org>
1321 * xdisp.c (setup_for_ellipsis, get_next_display_element):
1322 Set it->ellipsis_p to 1 or 0.
1323 (display_line): Record whether row ends in mid-ellipsis.
1324 (set_cursor_from_row): If ends in ellipsis. find start of it.
1325 (cursor_row_p): If PT's at the end of the ellipsis the row
1326 ends within, don't display cursor on this row.
1328 * dispextern.h (struct it): New element ellipsis_p.
1329 (struct glyph_row): New element ends_in_ellipsis_p.
1331 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
1332 position if we're reading from something other than the buffer.
1334 * window.c (window_scroll_pixel_based): Only look at
1335 Vscroll_preserve_screen_position if the old PT can't be kept.
1336 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
1338 2004-12-30 Kim F. Storm <storm@cua.dk>
1340 * xdisp.c (get_line_height_property): New function extracted from
1341 original calc_line_height_property.
1342 (calc_line_height_property): Rework. Handle t and (nil . ratio).
1343 (x_produce_glyphs): Use them to handle line-height and
1344 line-spacing according to new height spec.
1346 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
1348 2004-12-30 Kenichi Handa <handa@m17n.org>
1350 * fileio.c (Finsert_file_contents): Don't use
1351 current_buffer->buffer_file_coding_system even if REPLACE is
1352 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
1354 * fontset.h (struct font_info): New members space_width and
1357 * frame.h (struct frame): New member space_width.
1358 (FRAME_SPACE_WIDTH): New macro.
1360 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
1362 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
1363 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
1365 (x_load_font): Calculate fontp->space_width and fontp->average_width.
1366 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
1368 * xdisp.c (x_produce_glyphs): Calculate tab width by
1369 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
1371 2004-12-29 Sanghyuk Suh <han9kin@mac.com>
1373 * macterm.c (SelectionRange): Add Xcode position apple event struct.
1374 (do_ae_open_documents): Handle Xcode-style file position open events.
1376 2004-12-29 Luc Teirlinck <teirllm@auburn.edu>
1378 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
1380 2004-12-29 Richard M. Stallman <rms@gnu.org>
1382 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
1384 2004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1386 * macfns.c (install_window_handler): Modify extern to return OSErr
1388 (mac_window): Handle return value of install_window_handler.
1390 * macterm.c (reflect_byte): Remove function.
1391 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
1392 Lookup table instead.
1393 (mac_do_font_lists): Simplify calculation of the longest
1395 (init_mac_drag_n_drop): Remove function and declaration.
1396 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
1397 init_mac_drag_n_drop.
1398 (mac_do_track_drag): New function and declaration.
1399 (install_window_handler): Return OSErr value.
1400 (install_window_handler) [TARGET_API_MAC_CARBON]:
1401 Register handlers for tracking/receiving drag-and-drop items.
1402 (do_ae_open_documents): Generate unibyte strings for filenames.
1403 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
1404 Reject only non-filename items. Set event modifiers, and return value.
1406 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
1408 * coding.c (decode_coding): Fix previous change.
1410 2004-12-28 Richard M. Stallman <rms@gnu.org>
1412 * xdisp.c (back_to_previous_visible_line_start):
1413 Don't call handle_display_prop.
1415 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
1417 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
1418 (decode_coding_emacs_mule, encode_coding_emacs_mule)
1419 (decode_coding_iso2022, encode_designation_at_bol)
1420 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
1421 (decode_coding): Constify arguments and local vars.
1423 2004-12-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1425 * xmenu.c (popup_get_selection): Only pop down dialogs
1427 (popup_get_selection): Remove parameter down_on_keypress.
1428 (create_and_show_popup_menu, create_and_show_dialog):
1429 Remove parameter down_on_keypress to popup_get_selection.
1431 2004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1433 * dispextern.h: Change HAVE_CARBON to MAC_OS.
1434 (struct glyph_string): Likewise.
1436 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
1439 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
1440 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
1442 * fns.c (vector): Change MAC_OSX to MAC_OS.
1444 * frame.c (x_set_frame_parameters, x_report_frame_params)
1445 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
1446 (x_set_border_width, Vdefault_frame_scroll_bars):
1447 Change HAVE_CARBON to MAC_OS.
1449 * image.c [MAC_OS]: Include sys/stat.h.
1450 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
1451 QuickTimeComponents.h.
1453 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
1454 [!MAC_OSX] (select): Use mac_wait_next_event.
1455 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
1456 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
1457 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
1458 (mac_clear_font_name_table): Add extern.
1459 (Fmac_clear_font_name_table): New defun.
1460 (syms_of_mac): Defsubr it.
1461 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
1462 [MAC_OSX] (select_and_poll_event): New function.
1463 [MAC_OSX] (sys_select): Use it.
1464 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
1465 [MAC_OSX && SELECT_USE_CFSOCKET]
1466 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
1467 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
1468 RunLoop for simultaneously monitoring two kinds of inputs, window
1469 events and process outputs, without periodically polling.
1471 * macfns.c (mac_initialized): Remove extern.
1472 (stricmp): Put in #if 0. All callers changed to use xstricmp in
1474 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
1475 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
1476 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
1477 (mac_get_rdb_resource): New function (from w32reg.c).
1478 (x_get_string_resource): Use it.
1479 (install_window_handler): Add extern.
1480 (mac_window): New function.
1481 (Fx_create_frame): Use it instead of make_mac_frame.
1482 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
1483 (Fx_open_connection, Fx_close_connection): New defuns.
1484 (syms_of_macfns): Defsubr them.
1485 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
1486 Add kWindowNoUpdatesAttribute to the window attribute.
1487 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
1488 (x_create_tip_frame): Don't call ShowWindow.
1489 (Fx_show_tip): Call ShowWindow.
1490 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
1491 TARGET_API_MAC_CARBON'.
1492 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
1493 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
1495 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
1496 (Window): Typedef to WindowPtr and move outside `#if
1497 TARGET_API_MAC_CARBON'.
1498 (XSizeHints): New struct.
1500 * macterm.c (x_update_begin, x_update_end)
1501 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
1503 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
1504 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
1505 (construct_mouse_click): Put in #if 0.
1506 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
1507 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
1508 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
1509 (activate_scroll_bars, deactivate_scroll_bars)
1510 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
1511 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
1512 if the position is neither user-specified nor program-specified.
1513 (x_free_frame_resources): Free size_hints.
1514 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
1515 (mac_clear_font_name_table): New function.
1516 (mac_do_list_fonts): Initialize font_name_table if needed.
1517 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
1518 around mac_do_list_fonts.
1519 (mac_unload_font): New function.
1520 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
1521 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
1522 and definitions with #if TARGET_API_MAC_CARBON.
1523 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
1524 (install_window_handler): Add decl.
1525 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
1526 window. Use UpdateControls. Get the rectangle that should be
1527 updated and restrict the target of expose_frame to it.
1528 (do_grow_window): Set minimum height/width according to size_hints.
1529 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
1530 (do_zoom_window): Don't use x_set_window_size.
1531 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
1532 (install_window_handler): New function.
1533 [!USE_CARBON_EVENTS] (mouse_region): New variable.
1534 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
1535 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
1536 GetEventDispatcherTarget inside BLOCK_INPUT.
1537 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
1538 Update mouse_region when mouse is moved.
1539 (make_mac_frame): Remove.
1540 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
1541 Initialize mouse pointer shapes. Change values of f->left_pos and
1542 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
1543 Don't call ShowWindow.
1544 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
1545 Vinvocation_name and Vsystem_name.
1546 (mac_make_rdb): New function (from w32term.c).
1547 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
1548 already been opened. Don't pass argument to
1549 mac_initialize_display_info. Don't set dpyinfo->height/width.
1550 Add entries to x_display_list and x_display_name_list.
1551 (x_delete_display): New function.
1552 (mac_initialize): Don't call mac_initialize_display_info.
1553 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
1555 * macterm.h (check_mac): Add extern.
1556 (struct mac_output): New member size_hints.
1557 (FRAME_SIZE_HINTS): New macro.
1558 (mac_unload_font): Add extern.
1560 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
1562 * xfaces.c (clear_font_table) [MAC_OS]: call mac_unload_font.
1564 2004-12-27 Richard M. Stallman <rms@gnu.org>
1566 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
1567 (syms_of_buffer): Don't defsubr it.
1569 * process.c (list_processes_1): Set undo_list instead
1570 of calling Fbuffer_disable_undo.
1572 * xdisp.c (single_display_spec_string_p): Rename from
1573 single_display_prop_string_p.
1574 (single_display_spec_intangible_p): Rename from
1575 single_display_prop_intangible_p.
1576 (handle_single_display_spec): Rename from handle_single_display_prop.
1577 Rewritten to be easier to understand.
1579 Change in load-history format. Functions now get (defun . NAME),
1580 and variables get just NAME.
1582 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
1584 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
1585 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
1586 (Qdefvar): Var deleted.
1587 (syms_of_eval): Don't initialze it.
1589 * lread.c (syms_of_lread) <load-history>: Doc fix.
1591 2004-12-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1593 * xmenu.c (popup_get_selection): Pop down on C-g.
1594 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
1595 pops down menu on C-g.
1596 (xdialog_show): If dialog popped down and no button in the dialog was
1597 pushed, call Fsignal to quit.
1598 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
1601 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
1603 * gtkutil.c (xg_initialize): Install bindings for C-g so that
1604 dialogs and menus pop down.
1606 2004-12-27 Kenichi Handa <handa@m17n.org>
1608 * coding.c (code_convert_region): Fix calculation of `ratio'.
1610 2004-12-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1612 * gtkutil.c (update_frame_tool_bar): Make the value of
1613 tool-bar-button-margin control margins of images in tool bar.
1615 * alloc.c (check_depth): New variable.
1616 (overrun_check_malloc, overrun_check_realloc): Only add
1617 overhead and write check pattern if check_depth is 1 (to handle
1618 recursive calls). Increase/decrease check_depth in entry/exit.
1619 (overrun_check_free): Only check for overhead if check_depth is 1.
1620 Increase/decrease check_depth in entry/exit.
1622 2004-12-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1624 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
1625 before touching input_available_clear_time, to avoid accessing it
1626 from multiple threads.
1628 2004-12-23 Jason Rumney <jasonr@gnu.org>
1630 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
1633 2004-12-22 Richard M. Stallman <rms@gnu.org>
1635 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
1637 * lisp.h (Vundo_outer_limit): Fix decl.
1639 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
1641 (syms_of_undo): Initialize appropriately.
1642 (truncate_undo_list): If it's nil, there's no limit.
1644 2004-12-22 Kenichi Handa <handa@m17n.org>
1646 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
1648 2004-12-21 Richard M. Stallman <rms@gnu.org>
1650 * eval.c (unwind_to_catch): Clear immediate_quit.
1652 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
1653 specially as `\ ' and `\-'.
1655 * keyboard.c (kbd_buffer_store_event_hold):
1656 In the code for while-no-input, handle immediate_quit.
1658 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
1659 Call that at the very start.
1660 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
1661 (syms_of_alloc): Don't define undo-limit,
1662 undo-strong-limit and undo-outer-limit here.
1664 * undo.c (truncate_undo_list): Return void.
1665 Take just one argument, the buffer.
1666 Make it current, and inhibit recursive GC.
1667 Access and update the undo list directly; return void.
1668 Refer to the undo...limit variables directly.
1669 Test undo_outer_limit only after counting the whole current command.
1670 When it's exceeded, call the function in undo-outer-limit-function.
1671 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
1672 (Vundo_outer_limit_function): New variable.
1673 (syms_of_undo): Define undo-limit, undo-strong-limit
1674 and undo-outer-limit here, and undo-outer-limit-function.
1677 * lisp.h (truncate_undo_list): Update decl.
1679 2004-12-21 Piet van Oostrum <piet@cs.uu.nl>
1681 * fileio.c (Fread_file_name): Delete duplicates in
1682 file-name-history when history_delete_duplicates is true.
1684 2004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1686 * macterm.c (mac_do_list_fonts): Fix memory leak
1688 2004-12-20 Richard M. Stallman <rms@gnu.org>
1690 * regex.c (re_match_2_internal) <symend, wordend>:
1691 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
1693 2004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1695 * macterm.c (endif, x_font_name_to_mac_font_name):
1696 Use maccentraleurroman instead of maccentraleuropean
1697 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
1698 quickly finding a specific font without needing regexps.
1700 2004-12-15 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1702 * syssignal.h: Declare main_thread.
1703 (SIGNAL_THREAD_CHECK): New macro.
1705 * keyboard.c (input_available_signal): Move thread checking code
1706 to macro SIGNAL_THREAD_CHECK and call that macro.
1707 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
1709 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
1711 * emacs.c: Define main_thread.
1712 (main): Initialize main_thread.
1713 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
1714 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
1716 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
1718 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
1720 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
1722 * process.c (send_process_trap, sigchld_handler):
1723 Call SIGNAL_THREAD_CHECK.
1725 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
1727 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
1729 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
1730 returning when xg_ignore_gtk_scrollbar is true.
1732 2004-12-14 Kim F. Storm <storm@cua.dk>
1734 * keyboard.c (read_char): Save and restore echo_string when
1735 handling input method.
1737 2004-12-13 Richard M. Stallman <rms@gnu.org>
1739 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
1741 * keyboard.c (Vthrow_on_input): New variable.
1742 (syms_of_keyboard): Defvar and initialize it.
1743 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
1745 * lisp.h (QUIT): Check for Vthrow_on_input.
1746 (Vthrow_on_input): Declare it.
1748 2004-12-13 Kim F. Storm <storm@cua.dk>
1750 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
1753 2004-12-12 Richard M. Stallman <rms@gnu.org>
1755 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
1757 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
1758 (Ftry_completion): Really use outer `zero'; eliminate inner one.
1760 2004-12-12 Kenichi Handa <handa@m17n.org>
1762 * term.c (encode_terminal_code): Fix previous change.
1764 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
1766 * keyboard.c (handle_async_input): Remove pthread mutex handling.
1767 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
1769 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
1772 * minibuf.c (Ftry_completion, Fall_completions): Don't use
1775 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
1777 2004-12-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1779 * w32term.c (x_calc_absolute_position): Remove calculation of
1780 difference between inner and outer window. Don't subtract difference
1781 for left and top calculations.
1783 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
1784 for left and top calculations. Remove call to x_real_positions.
1785 [Bug report by Drew Adams in November]
1786 (x_check_expected_move): Do not set change_gravity to 1 when calling
1789 2004-12-08 Richard M. Stallman <rms@gnu.org>
1791 * xdisp.c (get_next_display_element): Use `escape-glyph' for
1792 control chars and escaped octal codes.
1793 (Qescape_glyph): New variable.
1794 (syms_of_xdisp): Initialize it.
1795 (escape_glyph_face): New variable.
1796 (redisplay_window): Initialize it.
1798 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
1800 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
1801 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
1803 2004-12-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1805 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
1808 * keyboard.c (handle_async_input, input_available_signal):
1809 Add ! defined (SYSTEM_MALLOC) around thread code.
1811 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
1813 2004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
1815 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
1817 * config.in: Regenerate.
1819 2004-12-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1821 * xmenu.c (Fx_popup_menu): Correct documentation about position.
1822 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
1823 if not given by a mouse click to correspond with x-popup-menu
1826 * config.in: Regenerate.
1828 * gtkutil.c: Include signal.h and syssignal.h.
1829 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
1831 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
1832 new variables main_thread and alloc_mutex,
1833 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
1834 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
1835 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
1837 (emacs_blocked_free, emacs_blocked_malloc)
1838 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
1839 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
1840 (reset_malloc_hooks): New function.
1842 * lisp.h: Declare reset_malloc_hooks.
1844 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
1846 * keyboard.c: Conditionally include pthread.h
1847 (handle_async_input, input_available_signalt): If not in the main
1848 thread, block signal, send signal to main thread and return.
1850 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
1851 Set current folder in file chooser if default_filename is a directory.
1853 2004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
1855 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
1856 Remove redundant correctness checks.
1857 (regex_compile): Fix up error codes for \{..\} expressions.
1859 2004-12-05 Richard M. Stallman <rms@gnu.org>
1861 * regex.c (regex_compile): Fix end-of-pattern case for space.
1863 2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1865 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
1866 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
1867 crashes with invalid characters.
1868 * macmenu.c (add_menu_item): Use it.
1869 * image.c (image_load_quartz2d): Likewise.
1870 * macfns.c (x_set_name, x_set_title): Likewise.
1871 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
1872 creating them each time for labels.
1874 2004-12-02 Richard M. Stallman <rms@gnu.org>
1876 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
1879 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
1880 (interactive_p): Skip Scalled_interactively_p frames
1881 like Sinteractive_p frames.
1882 (unwind_to_catch): Clear handling_signal.
1884 * data.c (Fmake_variable_buffer_local): Doc fix.
1885 (Fmake_local_variable): Doc fix.
1887 * insdel.c (insert_from_string_before_markers)
1888 (insert_from_string): Don't modify buffer on empty insertion.
1890 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
1892 2004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1894 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
1895 menu text as UTF8 fails.
1897 2004-12-01 Kim F. Storm <storm@cua.dk>
1899 * alloc.c: Add commentary for last change.
1900 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
1901 sizeof(size_t) != 4.
1902 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
1903 Use them. Also clear header and trailer of freed memory.
1904 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
1905 (string_overrun_cookie): Rename from string_overrun_pattern.
1906 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
1908 2004-12-01 Andreas Schwab <schwab@suse.de>
1910 * lisp.h: Declare string_to_multibyte.
1912 2004-12-01 Kenichi Handa <handa@m17n.org>
1914 * w32console.c (w32con_write_glyphs): Decide coding here.
1915 Adjusted for the change of encode_terminal_code.
1917 * term.c (encode_terminal_code): Don't make it "static".
1919 2004-11-30 Kenichi Handa <handa@m17n.org>
1921 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
1922 (encode_terminal_code): Argument changed. Encode all
1923 characters at once, and return a pointer to the result of encoding.
1924 (write_glyphs): Decide coding here. Adjusted for the above change.
1925 (insert_glyphs): Likewise.
1926 (term_init): Initialize encode_terminal_bufsize to 0.
1928 * coding.c (Vcode_conversion_workbuf_name): New variable.
1929 (syms_of_coding): Initialize and staticpro it.
1930 (set_conversion_work_buffer): New function.
1931 (run_pre_post_conversion_on_str): Use it.
1932 (run_pre_write_conversin_on_c_str): New function.
1934 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
1936 2004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1938 * keyboard.c: Don't undef SIGIO
1939 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
1940 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
1941 (macfns.o): Don't depend on ccl.h.
1942 * macfns.c (mac_frame_parm_handlers): Set handlers for
1943 Qleft_fringe and Qright_fringe.
1944 * macterm.c (mac_fill_rectangle_to_pixmap)
1945 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
1946 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
1948 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
1949 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
1950 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
1951 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
1952 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
1953 XDrawImageString. Always draw background and foreground separately.
1954 (x_draw_image_foreground): Use clipping instead of computing the
1955 intersection rectangle.
1956 (x_draw_image_glyph_string): Don't draw an image with mask to a
1958 (x_redisplay_interface): Set flush_display_optional member to 0.
1959 (XTread_socket): Correctly reset the TEConverter
1962 2004-11-30 Kim F. Storm <storm@cua.dk>
1964 * lisp.h: New defines to enable buffer overrun checking.
1965 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
1966 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
1968 * alloc.c: Add more checks for buffer overruns.
1969 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
1970 xmalloc_overrun_check_trailer, overrun_check_malloc)
1971 overrun_check_realloc, overrun_check_free): Add.
1972 (GC_STRING_EXTRA, string_overrun_pattern): Add.
1973 (check_sblock, allocate_string_data, compact_small_strings):
1974 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
1975 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
1976 (check_string_free_list): Add.
1977 (allocate_string, sweep_strings): Call check_string_free_list.
1979 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
1980 XMALLOC_OVERRUN_CHECK to avoid crash during load.
1982 2004-11-29 Kim F. Storm <storm@cua.dk>
1984 * fns.c (concat): Use SAFE_ALLOCA.
1986 2004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
1988 * sysdep.c (emacs_write): Don't use QUIT.
1990 2004-11-29 Kenichi Handa <handa@m17n.org>
1992 * buffer.c (init_buffer): Set current_buffer->directory to a
1993 multibyte string made by string_to_multibyte.
1995 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
1997 2004-11-27 Andreas Schwab <schwab@suse.de>
1999 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
2001 * s/gnu-linux.h: Enable no-op gcpros on ia64.
2002 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
2004 * filelock.c (lock_file_1): Call get_boot_time early.
2005 Increase buffer size.
2007 2004-11-27 Eli Zaretskii <eliz@gnu.org>
2009 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
2012 2004-11-27 Kim F. Storm <storm@cua.dk>
2014 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
2015 marker out of doc string.
2017 2004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
2019 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
2020 which was not mentioned in the log.
2022 2004-11-26 Kim F. Storm <storm@cua.dk>
2024 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
2025 angle bitmaps at top/bottom line.
2027 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
2028 set it when it->method is set to next_element_from_display_vector.
2029 (setup_for_ellipsis): Add LEN argument. Callers changed.
2030 Set it->saved_face_id.
2031 (get_next_display_element): Use loop instead of recursion.
2032 Set it->saved_face_id. Combine duplicate code for ctr chars.
2033 (next_element_from_display_vector): Do not set it->saved_face_id.
2034 (next_element_from_ellipsis): Use setup_for_ellipsis.
2036 2004-11-26 Eli Zaretskii <eliz@gnu.org>
2038 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
2039 prevent compiler warnings.
2041 2004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
2043 * keyboard.c (command_loop_1): Print a message describing the key
2044 the user just pressed when this key has no binding.
2046 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
2047 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
2049 * lread.c (readchar): Check QUIT when `getc' is interrupted.
2051 2004-11-24 Richard M. Stallman <rms@gnu.org>
2053 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
2055 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
2057 2004-11-24 Kim F. Storm <storm@cua.dk>
2059 * xdisp.c (move_it_in_display_line_to, display_line):
2060 Restore saved_face_id also when truncate-lines or hscrolled.
2062 2004-11-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2064 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
2065 x-use-old-gtk-file-dialog.
2067 * xfns.c: Define x_use_old_gtk_file_dialog.
2068 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
2069 outside ifdef USE_GTK.
2071 2004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
2073 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
2074 Don't use XFASTINT blindly.
2076 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
2078 * indent.c (skip_invisible): Avoid non-idempotent side-effects
2081 * keymap.c (Flookup_key): Check INTEGERP before XINT.
2083 * lread.c (oblookup): Don't use XFASTINT blindly.
2085 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
2086 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
2088 2004-11-23 Kim F. Storm <storm@cua.dk>
2090 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
2091 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
2093 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
2094 signal_p is zero and face name is unknown.
2095 (Fx_list_fonts): Don't signal error in lookup_named_face.
2096 (Fface_font): Signal error in lookup_named_face.
2097 (ascii_face_of_lisp_face): Likewise.
2099 * dispextern.h (lookup_named_face): Fix prototype.
2101 * xdisp.c (handle_single_display_prop): Don't signal error in
2102 lookup_named_face for unknown fringe face name.
2103 (highlight_trailing_whitespace): Don't signal error in
2104 lookup_named_face if trailing-whitespace face unknown.
2105 (calc_line_height_property): Don't signal error in
2106 lookup_named_face if specified face name is unknown.
2108 * fringe.c (update_window_fringes): Show top row indicator if
2109 window has header-line. Don't show arrow at bob and eob
2110 if the boundary indicators are not used.
2111 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
2113 * window.c (set_window_buffer): Clear display_error_modiff.
2115 2004-11-22 Kim F. Storm <storm@cua.dk>
2117 * fringe.c (update_window_fringes): Provide sensible fall-back
2118 value for non-nil indicate-buffer-boundaries setting.
2120 2004-11-22 Markus Rost <rost@ias.edu>
2122 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
2124 2004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
2126 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
2128 2004-11-21 Kim F. Storm <storm@cua.dk>
2130 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
2132 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
2133 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
2135 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
2136 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
2138 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
2139 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
2141 * xdisp.c (move_it_in_display_line_to, display_line):
2142 Restore saved_face_id if overflow-newline-into-fringe is enabled and
2143 line is continued before or in middle of element from display vector.
2145 * indent.c (Fvertical_motion): Fix last change. Use another
2146 method to detect if iterator moved too far ahead after reseat.
2148 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
2149 expand matrix width for overflow in zero-width area.
2150 (append_glyph, append_composite_glyph, produce_image_glyph)
2151 (append_stretch_glyph): Use it to avoid loop in redisplay.
2152 (note_mode_line_or_margin_highlight): Don't let help-echo from
2153 string override help-echo from image map.
2155 2004-11-20 Luc Teirlinck <teirllm@auburn.edu>
2157 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2158 * callint.c (Fcall_interactively): Ditto.
2160 2004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
2162 * minibuf.c (Fminibuffer_complete_and_exit):
2163 Fixup the case of the completed value, for case-indep completion.
2165 2004-11-20 Richard M. Stallman <rms@gnu.org>
2167 * lisp.h (Fread_from_minibuffer): Add arg in decl.
2169 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
2170 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
2172 * search.c (Vsearch_spaces_regexp):
2173 Rename from Vsearch_whitespace_regexp. All uses changed.
2175 2004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
2177 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
2179 2004-11-19 Richard M. Stallman <rms@gnu.org>
2181 * search.c (Vsearch_whitespace_regexp): New variable.
2182 (syms_of_search): Defvar it.
2183 (compile_pattern_1): Call re_set_whitespace_regexp with it.
2184 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
2186 (struct regexp_cache): New element whitespace_regexp.
2187 (syms_of_search): Initialize whitespace_regexp elements.
2188 (compile_pattern): Compare whitespace_regexp elements.
2189 (compile_pattern_1): Set whitespace_regexp elements.
2191 * regex.c (regex_compile): Substitute whitespace_regexp
2192 for spaces, if it is nonzero.
2193 (whitespace_regexp): New variable.
2194 (re_set_whitespace_regexp): New function.
2196 2004-11-19 Kim F. Storm <storm@cua.dk>
2198 * indent.c (Fvertical_motion): Fix last change.
2200 2004-11-18 Kim F. Storm <storm@cua.dk>
2202 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
2203 Instead, move back again if reseating moves too far ahead.
2205 2004-11-17 Luc Teirlinck <teirllm@auburn.edu>
2207 * xdisp.c (message3): Call clear_message.
2209 2004-11-17 Kim F. Storm <storm@cua.dk>
2211 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
2213 2004-11-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2215 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
2217 * xmenu.c (x_menu_in_use): Remove.
2218 (x_menu_set_in_use): Also set popup_activated_flag.
2220 * xfns.c (Fx_file_dialog): Call popup_activated instead of
2221 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
2223 * xterm.h: (x_menu_in_use): Remove.
2225 2004-11-16 Richard M. Stallman <rms@gnu.org>
2227 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
2228 Use map-keymap-internal to implement that.
2230 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
2232 2004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
2234 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
2235 a window before using XWINDOW.
2237 * window.c (make_window, Fselect_window, make_dummy_parent)
2239 * frame.c (make_frame):
2240 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
2242 * lisp.h (NILP): Use EQ rather than XFASTINT.
2244 2004-11-16 Kim F. Storm <storm@cua.dk>
2246 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
2248 * indent.c (Fvertical_motion): Fix last change. Only reseat when
2251 2004-11-16 Luc Teirlinck <teirllm@auburn.edu>
2253 * dispextern.h: Extern reseat_at_previous_visible_line_start.
2255 2004-11-16 Kenichi Handa <handa@m17n.org>
2257 * xdisp.c (display_mode_element): Fix previous change (calculate
2258 end position of substring to display correctly).
2260 2004-11-16 Kim F. Storm <storm@cua.dk>
2262 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
2263 Reported by Andrew M. Scott.
2265 2004-11-15 Kim F. Storm <storm@cua.dk>
2267 * fns.c (Fsafe_plist_get): New defun.
2268 (syms_of_fns): Defsubr it.
2270 * lisp.h (Fsafe_plist_get): Add EXFUN.
2272 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
2273 Use Fsafe_plist_get.
2274 (note_mode_line_or_margin_highlight, note_mouse_highlight):
2275 Fix image map element parsing. Use Fsafe_plist_get.
2277 2004-11-15 Richard M. Stallman <rms@gnu.org>
2279 * xdisp.c (get_next_display_element): Fix previous change.
2281 2004-11-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2283 * window.c (shrink_windows): Handle special case of one window left
2284 when trying to shrink the final reminder. Grow windows if
2285 total_removed is less than total_shrink.
2287 * xmenu.c (pop_down_menu): Remove global variable current_menu,
2288 extract pointer from arg with XSAVE_VALUE.
2289 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
2290 Construct arg to record_unwind_protect with make_save_value.
2292 2004-11-13 Richard M. Stallman <rms@gnu.org>
2294 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
2295 (get_next_display_element): Fix previous change to apply only to \n.
2297 * indent.c (Fvertical_motion): Scan to PT from start of line to
2298 make iterator consistent.
2300 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
2302 2004-11-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2304 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
2306 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
2307 Record unwind with clean_up_file_dialog.
2309 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
2312 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
2314 2004-11-13 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2316 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
2317 (xg_file_sel_destroy): Remove.
2318 (xg_file_response_cb, pop_down_file_dialog)
2319 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
2321 (xg_get_file_with_chooser, xg_get_file_with_selection):
2322 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
2323 Move common code to xg_get_file_name. Return widget created.
2324 (xg_get_file_name): Set name, transient for, modal and destroy
2325 with parent here. Connect response signal to xg_file_response_cb,
2326 connect delete-event to gtk_true. Record pop_down_file_dialog
2327 for unwind. Do event loop and call x_menu_wait_for_event in loop.
2328 (xg_create_widget): Make dialogs modal.
2330 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
2332 (popup_get_selection): Move unwind protect ...
2333 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
2334 Move destroy of widget to pop_down_menu.
2335 (popup_widget_loop): Move unwind protect ...
2336 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
2337 Move destroy of widget to pop_down_menu.
2338 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
2339 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
2340 x_mouse_leave and grabbed = 0 to pop_down_menu.
2342 2004-11-13 Kim F. Storm <storm@cua.dk>
2344 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
2345 (syms_of_xdisp): DEFVAR_BOOL it.
2346 (make_cursor_line_fully_visible, try_cursor_movement)
2347 (try_window_id): Use it.
2349 2004-11-12 Kim F. Storm <storm@cua.dk>
2351 * dispextern.h (struct glyph_row): New member extra_line_spacing.
2352 (struct it): New member max_extra_line_spacing.
2353 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
2354 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
2355 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
2356 part of last line is only extra line spacing (so the text on the
2357 line is fully visible). Use helper macros.
2358 Add W arg (to use them). All callers changed.
2359 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
2360 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
2362 * window.c (window_scroll_pixel_based, Frecenter):
2363 Use move_it_vertically_backward directly.
2364 (Frecenter): Fix calculation of new start pos for negative arg.
2365 Before, the new start pos was sometimes chosen too far back, so
2366 the last line became only partially visible, and thus would be
2367 either only semi-visible or automatically scrolled to the middle
2368 of the window by redisplay.
2370 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
2371 (move_it_vertically_backward): Don't recure to move further back.
2372 (move_it_vertically): Remove superfluous condition.
2373 (move_it_by_lines): Clear last_height when moved 0 lines.
2374 (resize_mini_window): Use it.max_extra_line_spacing.
2375 (display_tool_bar_line): Clear row->extra_line_spacing.
2376 (try_scrolling): Use move_it_vertically_backward directly.
2377 (redisplay_window): Likewise.
2378 (compute_line_metrics): Set row->extra_line_spacing.
2379 (display_line, display_string): Likewise.
2380 (x_produce_glyphs): Update it->max_extra_line_spacing.
2382 * xmenu.c (pop_down_menu): Return nil.
2384 2004-11-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2386 * xmenu.c (x_menu_wait_for_event): New function.
2387 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
2389 (popup_widget_loop): Add argument do_timers.
2390 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
2391 do_timers to popup_widget_loop.
2392 (xmenu_show): Call XMenuActivateSetWaitFunction so that
2393 x_menu_wait_for_event is called by XMenuActivate.
2394 (create_and_show_popup_menu): Pass 1 for do_timers to
2395 popup_get_selection.
2396 (pop_down_menu): New function.
2397 (popup_get_selection, popup_widget_loop): Unwind protect to
2399 (popup_widget_loop): Add argument widget.
2400 (create_and_show_popup_menu, create_and_show_dialog): Pass new
2401 argument widget to popup_widget_loop.
2403 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2405 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
2407 2004-11-09 Kim F. Storm <storm@cua.dk>
2409 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
2410 Fix various comments referring to XEvents instead of input events.
2411 (x_queue_event): Fix format strings.
2412 (x_stop_queuing_selection_requests): Likewise.
2414 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
2415 (pint2hrstr): Add extra braces to silence compiler.
2417 * print.c (print_object): Fix format string.
2419 * lread.c (read1): Fix next_char matching.
2421 * lisp.h (Fdelete): Add EXFUN.
2422 (replace_range_2): Add prototype.
2424 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
2426 * intervals.h (NULL_INTERVAL_P): Add separate version when
2427 ENABLE_CHECKING is not defined to silence compiler.
2428 (compare_string_intervals): Add prototype.
2430 * fringe.c (destroy_fringe_bitmap): Fix return type.
2431 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
2433 * emacs.c (Fdump_emacs): Fix format string.
2435 * doc.c: Include <ctype.h>.
2436 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
2438 * data.c (store_symval_forwarding): Remove unused variables.
2440 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
2442 2004-11-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2444 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
2447 2004-11-09 Kim F. Storm <storm@cua.dk>
2449 * process.c (Fmake_network_process): Remove kludge for interrupted
2450 connects on BSD. If connect is interrupted, just close socket and
2451 start over rather than sleeping and retry with same socket.
2453 2004-11-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2455 * .cvsignore: Add buildobj.lst.
2457 * doc.c: New variable Vbuild_files.
2458 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
2459 file names from buildobh.lst. Only attach docstrings from files
2460 that are in Vbuild_files.
2461 (syms_of_doc): Defvar Vbuild_files.
2463 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
2465 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
2466 (mostlyclean): Rm buildobj.lst
2468 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
2471 2004-11-09 Kim F. Storm <storm@cua.dk>
2473 * fringe.c (update_window_fringes): Update fringe bitmaps if
2474 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
2475 also update previous row to get rid of misc. artifacts.
2477 2004-11-08 Kim F. Storm <storm@cua.dk>
2479 * xdisp.c (fast_find_position): Fix start pos if header line present.
2480 (note_mouse_highlight): Clear mouse face if we move out of text area.
2482 2004-11-08 Eli Zaretskii <eliz@gnu.org>
2484 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
2485 Don't include <sys/time.h> explicitly.
2486 Include <stdio.h> unconditionally, not just on MacOS.
2488 2004-11-08 Kenichi Handa <handa@m17n.org>
2490 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
2491 don't pay attention to '\' before '*'.
2492 (fontset_pattern_regexp): Change the meaning of the second arg.
2493 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
2494 (check_fontset_name): Try NAME as literal at first, and if it
2495 failes, try NAME as pattern.
2497 2004-11-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2499 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
2501 2004-11-07 Andreas Schwab <schwab@suse.de>
2503 * lisp.h (Fmsdos_downcase_filename): Declare.
2504 * dired.c (Fmsdos_downcase_filename): Don't declare here.
2505 * fileio.c: Likewise.
2507 2004-11-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2509 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
2510 comparisons with integers instead of Lisp_Object address.
2511 (Fmsdos_set_keyboard): Declare argument allkeys.
2513 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
2515 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
2516 int/Lisp_Object mixup.
2520 2004-11-06 Steven Tamm <steventamm@mac.com>
2522 * editfns.c: Need to include sys/time.h before resource.h on darwin.
2524 2004-11-06 Richard M. Stallman <rms@gnu.org>
2526 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
2528 * xfaces.c (merge_named_face): GCPRO the face_name in the
2529 named_merge_point struct that we make.
2530 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
2532 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
2533 before deciding whether to inactivate mark.
2535 2004-11-06 Lars Brinkhoff <lars@nocrew.org>
2537 * config.in: Regenerate (add HAVE_GETRUSAGE).
2538 * editfns.c (Fget_internal_run_time): New function.
2539 (syms_of_data): Defsubr it.
2540 * fns.c (sxhash): As far as possible, merge calculation of
2541 hash code for symbols and strings.
2543 2004-11-06 Eli Zaretskii <eliz@gnu.org>
2545 * frame.c (syms_of_frame): Fix the example in the doc string.
2547 2004-11-06 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2549 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
2551 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
2552 (create_and_show_dialog): Revert change from 2004-10-31.
2554 2004-11-05 Luc Teirlinck <teirllm@auburn.edu>
2556 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
2558 2004-11-05 Kim F. Storm <storm@cua.dk>
2560 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
2562 * fileio.c (Ffile_modes): Doc fix.
2563 (auto_save_1): Check for Ffile_modes nil value.
2565 2004-11-05 Kim F. Storm <storm@cua.dk>
2567 * xselect.c (struct selection_event_queue, selection_queue)
2568 (x_queue_selection_requests, x_queue_event)
2569 (x_start_queuing_selection_requests)
2570 (x_stop_queuing_selection_requests): Add new queue for selection
2571 input events to replace previous XEvent queue in xterm.c.
2572 (queue_selection_requests_unwind): Adapt to new queue.
2573 (x_reply_selection_request): Adapt to new queue.
2574 Unexpect wait_object in case of x errors (memory leak).
2575 (x_handle_selection_request, x_handle_selection_clear): Make static.
2576 (x_handle_selection_event): New function. May queue selection events.
2577 (wait_for_property_change_unwind): Use save_value instead of cons.
2578 Clear property_change_reply_object.
2579 (wait_for_property_change): Abort if already waiting.
2580 Use save_value instead of cons for unwind data.
2581 (x_handle_property_notify): Skip events already arrived, but don't
2582 free them, as "arrived" field is checked by wait_for_property_change,
2583 and it will be freed by unwind or explicit unexpect_property_change.
2584 (x_get_foreign_selection): Add to new queue.
2585 (receive_incremental_selection): Don't unexpect wait_object when done
2586 as it has already been freed by previous wait_for_property_change.
2588 * xterm.h (x_start_queuing_selection_requests)
2589 (x_stop_queuing_selection_requests, x_handle_selection_request)
2590 (x_handle_selection_clear): Remove prototypes.
2591 (x_handle_selection_event): Add prototype.
2593 * xterm.c (handle_one_xevent): Don't queue X selection events
2594 here, it may be too late if we start queuing after we have already
2595 stored some selection events into the kbd buffer.
2596 (struct selection_event_queue, queue, x_queue_selection_requests)
2597 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
2598 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
2599 (x_catch_errors_unwind): Block input around final XSync.
2601 * keyboard.h (kbd_buffer_unget_event): Add prototype.
2603 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
2604 (kbd_buffer_unget_event): New function.
2605 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
2606 and use x_handle_selection_event.
2607 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
2609 2004-11-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2611 * xselect.c (TRACE3): New debug macro.
2612 (x_reply_selection_request): Use it.
2613 (receive_incremental_selection): In call to TRACE0, the name of
2614 a symbol is in xname.
2616 2004-11-05 Kim F. Storm <storm@cua.dk>
2618 * fontset.c (fontset_pattern_regexp): Use unsigned char.
2620 2004-11-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2622 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
2624 * gtkutil.h (use_old_gtk_file_dialog): Declare.
2626 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
2627 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
2628 * xfns.c (syms_of_xfns): ... to here.
2630 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
2631 it doesn't start with /.
2633 2004-11-04 Kenichi Handa <handa@m17n.org>
2635 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
2636 treat it as a literal character.
2638 2004-11-03 Kim F. Storm <storm@cua.dk>
2640 * .gdbinit (ppt): New function.
2642 2004-11-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2644 * xterm.c (x_window_to_scroll_bar): Only call
2645 xg_get_scroll_id_for_window if toolkit scroll bars are used.
2647 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
2650 2004-11-02 Andreas Schwab <schwab@suse.de>
2652 * window.c (Fscroll_right): Fix last change.
2654 2004-11-02 Kim F. Storm <storm@cua.dk>
2656 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
2658 2004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2660 * callproc.c (Fcall_process): Block input around vfork.
2662 2004-11-02 Kim F. Storm <storm@cua.dk>
2664 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
2665 (syms_of_eval): Defsubr it.
2667 2004-11-02 Richard M. Stallman <rms@gnu.org>
2669 * insdel.c (replace_range_2): New function.
2671 * casefiddle.c (casify_region): Handle changes in byte-length
2672 using replace_range_2.
2674 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
2676 * xdisp.c (back_to_previous_visible_line_start):
2677 Subtract 1 from pos when checking previous newline for invisibility.
2679 * window.c (window_scroll_pixel_based): Update preserve_y
2680 for header line if any.
2681 (Fscroll_left, Fscroll_right): Don't call interactive_p;
2682 use a new second argument instead.
2684 * eval.c (Fcall_interactive_p): New function.
2685 (interactive_p): Don't test INTERACTIVE here.
2686 (Finteractive_p): Doc fix.
2688 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
2690 2004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
2692 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
2693 comparing font names.
2695 2004-11-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2697 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
2698 Fx_file_dialog if only directories should be read.
2700 * lisp.h: Fx_file_dialog takes 5 parameters.
2702 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
2703 Add parameter only_dir_p.
2704 In Motif version, don't put DEFAULT_FILENAME in filter part of the
2705 dialog, just text field part. Do not add DEFAULT_FILENAME
2706 to list of files if it isn't there.
2707 In GTK version, pass only_dir_p parameter to xg_get_file_name.
2709 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
2710 Check only_dir_p instead of comparing prompt to "Dired". When using
2711 a save dialog, add option kNavDontConfirmReplacement, change title
2712 to "Enter name", change text for save button to "Ok".
2714 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
2715 Check only_dir_p instead of comparing prompt to "Dired".
2717 * gtkutil.c (xg_get_file_with_chooser)
2718 (xg_get_file_with_selection): New functions, only defined ifdef
2719 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
2721 (xg_get_file_name): Add parameter only_dir_p.
2722 Call xg_get_file_with_chooser or xg_get_file_with_selection
2723 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
2724 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
2726 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
2728 * config.in: Rebuild (added HAVE_GTK_FILE_*).
2730 2004-11-01 Kim F. Storm <storm@cua.dk>
2732 * process.c (connect_wait_mask, num_pending_connects):
2733 Only declare and use them if NON_BLOCKING_CONNECT is defined.
2734 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
2735 (IF_NON_BLOCKING_CONNECT): New helper macro.
2736 (wait_reading_process_output): Only declare and use local vars
2737 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
2739 2004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
2741 * w32term.c (x_scroll_run): Delete region objects after use.
2743 2004-10-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2745 * xmenu.c: Add prototypes for forward function declarations.
2746 (popup_get_selection): Remove parameter do_timers, remove call to
2748 (create_and_show_popup_menu, create_and_show_dialog):
2749 Remove parameter do_timers from call to popup_get_selection.
2751 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
2752 tool_bar_items and assign the result to f->tool_bar_items if
2753 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
2754 tool_bar_items to assignment of result.
2756 * atimer.c (alarm_signal_handler): Do not call set_alarm if
2757 pending_atmers is non-zero.
2759 2004-10-31 Kim F. Storm <storm@cua.dk>
2761 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
2763 2004-10-28 Will <will@glozer.net>
2765 * macterm.c: allow user to assign key modifiers to the Mac Option
2766 key via a 'mac-option-modifier' variable.
2768 2004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2770 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
2771 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
2772 (x_handle_selection_request, x_handle_selection_clear)
2773 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
2775 2004-10-28 Richard M. Stallman <rms@gnu.org>
2777 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
2779 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
2781 2004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
2783 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
2784 comment-starter over a 1-char one.
2786 2004-10-27 Richard M. Stallman <rms@gnu.org>
2788 * xdisp.c (get_next_display_element): In mode lines,
2789 treat newline and tab like other control characters.
2791 * editfns.c (Fmessage): Doc fix.
2793 * indent.c (vmotion): When moving up, check the newline before.
2794 Make prevline an int, not a Lisp_Object.
2796 2004-10-27 Kim F. Storm <storm@cua.dk>
2798 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
2799 Only allocate info and discarded tables once.
2801 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
2802 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
2803 (SAFE_FREE): Test it to determine if we need to unwind to free.
2804 Remove size arg. All users changed.
2805 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
2807 2004-10-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2809 * gtkutil.c: Put empty line between comment and function body.
2810 (xg_destroy_widgets): Rename from remove_from_container.
2811 Just destroy all widgets in list. Argument wcont removed.
2812 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
2813 instead of remove_from_container.
2814 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
2815 (free_frame_tool_bar): Add comment.
2817 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
2818 is not NULL before strcmp.
2820 2004-10-26 Kim F. Storm <storm@cua.dk>
2822 * callint.c (Fcall_interactively): Add 'U' code to get the
2823 up-event discarded by a previous 'k' or 'K' argument.
2825 2004-10-26 David Kastrup <dak@gnu.org>
2827 * buffer.c (syms_of_buffer): Fix a few typos.
2829 2004-10-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2831 * xsmfns.c: Put empty line between comment and function body.
2832 Use two spaces before comment end.
2834 2004-10-25 Kenichi Handa <handa@m17n.org>
2836 * fontset.c (fontset_pattern_regexp): Optimize for the case that
2837 PATTERN is full XLFD.
2839 2004-10-24 Kenichi Handa <handa@m17n.org>
2841 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
2843 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
2844 (regex_compile): Return REG_ERANGEX if appropriate.
2846 2004-10-22 Kenichi Handa <handa@m17n.org>
2848 * editfns.c (Ftranslate_region_internal): New function.
2849 (syms_of_editfns): Defsubr it.
2851 2004-10-22 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2853 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
2855 2004-10-21 K
\e,Aa
\e(Broly L
\e$,1 q
\e(Brentey <lorentey@elte.hu>
2857 * xterm.h (x_output): New member `xic_base_fontname'.
2858 (FRAME_XIC_BASE_FONTNAME): New macro.
2859 (xic_free_xfontset): Declare.
2861 * xfns.c (xic_create_xfontset): Share fontsets between frames
2862 based on base_fontname.
2863 (xic_free_xfontset): New function.
2864 (free_frame_xic): Use it.
2865 (xic_set_xfontset): Ditto.
2867 * xterm.c (xim_destroy_callback): Ditto.
2870 2004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
2872 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
2874 2004-10-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2876 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
2879 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
2880 New variables and constant.
2881 (main): Calculate heap_bss_diff. If we are dumping and the
2882 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
2883 and exec ourself again.
2884 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
2887 * lastfile.c: Make my_endbss and my_endbss_static available on all
2890 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
2891 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
2893 2004-10-19 Luc Teirlinck <teirllm@auburn.edu>
2895 * data.c (Flocal_variable_if_set_p): Doc fix.
2897 2004-10-19 Jason Rumney <jasonr@gnu.org>
2899 * w32.c (init_environment): Set emacs_dir correctly when running
2900 emacs from the build directory.
2902 2004-10-19 Richard M. Stallman <rms@gnu.org>
2904 * editfns.c (Fdelete_and_extract_region):
2905 If region is empty, return null string.
2907 2004-10-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2909 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
2911 (xg_frame_cleared): Remove.
2913 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
2914 (xg_find_top_left_in_fixed): Remove.
2915 (xg_create_scroll_bar): Put an event box widget between
2916 the scroll bar widget and the edit widget.
2917 (xg_show_scroll_bar): Show the parent widget (the event box).
2918 (xg_remove_scroll_bar): Destroy parent (the event box) also.
2919 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
2920 Move the parent (the event box) widget inside the fixed widget.
2921 Move window clear to xterm.c.
2923 * gtkutil.h (xg_frame_cleared): Remove.
2925 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
2926 (x_scroll_bar_create, XTset_vertical_scroll_bar):
2927 Remove arguments left and width to xg_update_scrollbar_pos.
2928 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
2930 2004-10-19 Kenichi Handa <handa@m17n.org>
2932 * xdisp.c (display_mode_element): Fix display of wide chars.
2934 2004-10-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2936 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
2937 gdk_window_clear and move gdk_window_process_all_updates after
2938 clear so events are sent to the X server in correct order.
2940 2004-10-18 Kenichi Handa <handa@m17n.org>
2942 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
2943 comparing font names.
2944 (fs_query_fontset): Use fast_string_match for comparing fontset names.
2945 (list_fontsets): Likewise.
2947 * search.c (fast_string_match_ignore_case): New function.
2949 * lisp.h (fast_string_match_ignore_case): Extern it.
2951 2004-10-17 Kim F. Storm <storm@cua.dk>
2953 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
2954 than bitmap if there is not left fringe.
2955 (get_overlay_arrow_glyph_row): Also used on windows system.
2956 (display_line): Display overlay string if no left fringe.
2958 2004-10-16 Jason Rumney <jasonr@gnu.org>
2960 * w32fns.c (w32_font_match): Encode font name being matched.
2962 2004-10-16 Richard M. Stallman <rms@gnu.org>
2964 * window.c (Fspecial_display_p): Doc fix.
2966 2004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
2968 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
2969 Don't ignore menus, because where-is-internal already does it for us.
2971 2004-10-15 Kim F. Storm <storm@cua.dk>
2973 * xdisp.c (redisplay_window): Only update fringes and vertical
2974 border on window frames.
2976 2004-10-14 Andreas Schwab <schwab@suse.de>
2978 * m/ia64.h (DATA_SEG_BITS): Don't define.
2980 2004-10-14 Kim F. Storm <storm@cua.dk>
2982 * xterm.h: Include Xutil.h after keysym.h to work around bug
2985 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
2987 * fns.c (map_char_table): Add missing gcpros.
2989 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
2991 * keymap.c (get_keymap): An autoload form is not a keymap.
2993 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
2995 2004-10-13 Kim F. Storm <storm@cua.dk>
2997 * callproc.c (Fcall_process): Simplify handling of display arg.
2998 Resume `display_on_the_fly' once a coding system is determined.
3000 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
3002 2004-10-12 Kim F. Storm <storm@cua.dk>
3004 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
3005 caller, such as call-process, is not going to poll for input.
3006 (calc_line_height_property): Handle case where it->object is nil.
3008 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
3010 2004-10-12 Kenichi Handa <handa@m17n.org>
3012 * xdisp.c (get_next_display_element):
3013 If unibyte_display_via_language_environment is zero, display 8-bit
3014 chars in octal in unibyte buffer.
3016 2004-10-12 Kim F. Storm <storm@cua.dk>
3018 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
3019 are no ordinary bindings.
3021 2004-10-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3023 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
3025 2004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3027 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
3028 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
3029 (make_mac_frame): Add BLOCK_INPUT around the making of a
3031 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
3032 * macgui.h (mktime): Use emacs_mktime.
3033 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
3034 Make a cancel file-open dialog be like C-g.
3035 * mac.c (mktime): Use emacs_mktime.
3036 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
3037 (Fmac_paste_function): Add better error handling for carbon cut/paste.
3039 2004-10-10 Kim F. Storm <storm@cua.dk>
3041 * keyboard.c (timer_resume_idle): New function to resume idle
3042 timer without resetting timers on the idle list.
3043 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
3044 (timer_start_idle, timer_stop_idle): Declare static.
3045 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
3047 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
3049 2004-10-08 Steven Tamm <steventamm@mac.com>
3051 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
3052 * macterm.c (mac_check_for_quit_char): Remove warning for using
3053 NULL where 0 should be used.
3054 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
3056 * mac.c: Include time.h for Tiger compatibility.
3058 2004-10-07 Kim F. Storm <storm@cua.dk>
3060 * xdisp.c (redisplay_window): Fix flicker on vertical line between
3061 windows. Update vertical line after drawing window fringes, but
3062 only if actually drawing any bitmaps--or there is no fringe.
3064 * xterm.c (x_update_window_end): Likewise.
3065 * macterm.c (x_update_window_end): Likewise.
3066 * w32term.c (x_update_window_end): Likewise.
3068 * fringe.c (draw_window_fringes): Return value now indicates if
3069 any fringe bitmaps were redrawn (or there are no fringes).
3071 * dispextern.h (draw_window_fringes): Update prototype.
3073 2004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3075 * macfns.c (mac_get_window_bounds): Add extern.
3076 (x_real_positions): Use mac_get_window_bounds.
3078 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
3081 * macterm.c [!MAC_OSX]: Include Windows.h.
3082 (front_emacs_window): Rename from mac_front_window. All uses
3083 changed. Return the frontmost non-tooltip emacs window.
3084 (mac_get_window_bounds): New function.
3085 (x_calc_absolute_position): Use the difference of width and height
3086 between the inner and outer window.
3087 (x_set_offset): Specify window position by the coordinae of the
3088 outer window. Adjust the position if the title bar is completely
3090 (app_is_suspended, app_sleep_time): Remove unused variables.
3091 (do_app_resume, do_app_suspend): Remove their contents because
3092 window-activate/deactivate events will do the job.
3093 (do_zoom_window): Remove unused variables. Make compliant to the
3094 standard way of zooming. Set f->left_pos and f->top_pos.
3095 (XTread_socket): Don't use argument `expected'. Don't use
3096 FrontWindow to determine the clicked window. Exclude unprocessed
3097 mouseUp cases in the early stage. Add parentheses to fix operator
3099 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
3101 2004-10-05 Jan Dj
\e,Ad
\e(Brv. <jan.h.d@swipnet.se>
3103 * config.in: Regenerate.
3105 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
3108 2004-10-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3110 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
3111 a row if Alt or Meta has been found for that row. Also stop scanning
3112 for Keysyms for that row.
3114 2004-10-04 Kim F. Storm <storm@cua.dk>
3116 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
3117 to list. Include overlay arrow bitmap in return value.
3119 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
3120 bars with fractional column width. If scroll bar separates two
3121 windows, move it towards the window it belongs to. Only update
3122 the padding area below the scroll bar widget when necessary,
3123 i.e. when scroll bar widget is created, moved, or resized.
3125 * xdisp.c (define_frame_cursor1): Do not change frame cursor
3126 while tracking/dragging mouse.
3127 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
3129 * window.c (coordinates_in_window): Relax check for cursor
3130 on vertial border between mode lines.
3131 (Fset_window_fringes): Do not allow negative widths.
3132 (Fset_window_scroll_bars): Likewise.
3134 * .gdbinit (pp): Shorthand for p ARG + pr.
3135 (ff): New command: flush frame updates (X only).
3137 2004-10-03 Michael Albinus <michael.albinus@gmx.de>
3139 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
3141 2004-09-30 Kenichi Handa <handa@m17n.org>
3143 * process.c (send_process): Free composition data.
3145 * fileio.c (Finsert_file_contents): Free composition data.
3147 * coding.c (code_convert_region): Don't skip ASCIIs if there are
3148 compositions to encode.
3149 (encode_coding_string): Likewise. Free composition data.
3151 2004-09-30 Florian Weimer <fw@deneb.enyo.de>
3153 * coding.c (code_convert_region): Free composition data.
3155 2004-09-29 Kim F. Storm <storm@cua.dk>
3157 * fringe.c: Remove limit on number of bitmaps.
3158 (fringe_bitmaps, fringe_faces): Change to pointers.
3159 (max_fringe_bitmaps): New var.
3160 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
3161 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
3163 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
3164 (struct glyph_row): Reorder fringe_bitmap related fields.
3165 (struct it): Likewise.
3167 * w32term.c (fringe_bmp): Change to pointer.
3168 (max_fringe_bmp): New var.
3169 (w32_define_fringe_bitmap): Expand fringe_bmp.
3170 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
3171 (w32_destroy_fringe_bitmap): Likewise.
3173 2004-09-29 Kim F. Storm <storm@cua.dk>
3175 * fringe.c: Simplify last change.
3176 (lookup_fringe_bitmap): New function.
3177 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
3178 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
3179 Keep standard bitmaps in Vfringe_bitmaps.
3180 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
3181 (Fset_fringe_bitmap_face): Likewise.
3183 * dispextern.h (lookup_fringe_bitmap): Add prototype.
3184 (valid_fringe_bitmap_p): Remove prototype.
3186 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
3188 2004-09-29 Kim F. Storm <storm@cua.dk>
3190 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
3191 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
3193 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
3195 * fringe.c (Vfringe_bitmaps): New variable.
3196 (syms_of_fringe): DEFVAR_LISP it.
3197 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
3198 Change arg to Lisp_Object and fail if not an integer.
3199 (get_fringe_bitmap_name, resolve_fringe_bitmap)
3200 (destroy_fringe_bitmap): New functions.
3201 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
3202 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
3203 clear its fringe property.
3204 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
3205 Fdestroy_fringe_bitmap.
3206 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
3207 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
3208 and set fringe property. Signal error if no free slots.
3209 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
3210 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
3212 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
3213 symbols with a fringe property.
3215 2004-09-27 Kim F. Storm <storm@cua.dk>
3217 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
3218 Doc fix. Format may now be a symbol or alist, not a cons.
3220 * fringe.c (update_window_fringes): Handle new formats of
3221 indicate-buffer-boundaries (symbol or alist). No longer
3222 allow a simple cons.
3223 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
3225 2004-09-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3227 * config.in: Rebuild.
3229 2004-09-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3231 * config.in: Rebuild.
3233 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
3235 2004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
3237 * xterm.c (x_term_init): Work around a bug in some X servers.
3239 2004-09-18 Richard M. Stallman <rms@gnu.org>
3241 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
3243 * xdisp.c (try_window_reusing_current_matrix):
3244 Handle the case where we reach the old displayed text,
3245 out of sync with the old line boundary.
3247 2004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
3249 * fileio.c (Finsert_file_contents): Fix case of replacement in a
3252 2004-09-14 Kim F. Storm <storm@cua.dk>
3254 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
3256 * xfaces.c (Qface_no_inherit): New var.
3257 (syms_of_xfaces): Intern and staticpro it.
3258 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
3259 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
3260 Don't increment face_change_count when face has non-nil
3261 face-no-inherit property.
3263 2004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
3265 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
3266 (Fbyte_code): Remove dead code after `wrong_type_argument'.
3268 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
3269 before doing the mark_stack_check_gcpros since they're not on the stack.
3271 2004-09-12 Kim F. Storm <storm@cua.dk>
3273 * editfns.c (Fformat): Handle format strings with multiple text
3274 properties. Reverse text property list from the format string,
3275 so the positions are in increasing order.
3277 2004-09-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3279 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
3280 x_uncatch_errors so that possible protocol errors are delivered.
3282 2004-09-10 Eli Zaretskii <eliz@gnu.org>
3284 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
3286 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
3287 charset.h, and coding.h
3288 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
3289 (term.o): Depend on window.h and keymap.h.
3290 (abbrev.o): Depend on syntax.h.
3291 (callint.o): Depend on keymap.h.
3292 (casefiddle.o): Depend on charset.h and keymap.h.
3293 (category.o): Depend on keymap.h.
3294 (coding.o): Depend on dispextern.h.
3295 (cmds.o): Depend on keyboard.h and keymap.h.
3296 (dispnew.o): Depend on indent.h and intervals.h.
3297 (doc.o): Depend on keymap.h.
3298 (editfns.o): Depend on frame.h.
3299 (emacs.o): Depend on dispextern.h.
3300 (fileio.o): Don't depend on ccl.h.
3301 (filelock.o): Depend on charset.h and coding.h.
3302 (frame.o): Depend on w32term.h and macterm.h.
3303 (insdel.o): Depend on region-cache.h.
3304 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
3305 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
3306 (search.o): Depend on $(INTERVALS_SRC).
3307 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
3308 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
3309 xterm.h, w32term.h, and macterm.h.
3310 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
3311 w32term.h, and macterm.h.
3312 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
3313 region-cache.h, xterm.h, w32term.h, and macterm.h.
3314 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
3315 (data.o): Depend on frame.h.
3316 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
3317 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
3318 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
3319 (intervals.o): Depend on keymap.h.
3321 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
3322 Add debugging print-out to termscript.
3324 2004-09-09 Richard M. Stallman <rms@gnu.org>
3326 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
3328 2004-09-08 Richard M. Stallman <rms@gnu.org>
3330 * window.c (Fset_window_buffer): Doc fix.
3332 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
3334 2004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
3336 * minibuf.c (history_delete_duplicates): New variable.
3337 (read_minibuf): Use it.
3338 (syms_of_minibuf): Create the corresponding lisp variable.
3340 2004-09-08 Kim F. Storm <storm@cua.dk>
3342 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
3343 overlay just before point.
3345 2004-09-07 Luc Teirlinck <teirllm@auburn.edu>
3347 * buffer.h (struct buffer): Add auto_save_file_format field.
3348 * buffer.c (reset_buffer, init_buffer_once):
3349 Handle auto_save_file_format field.
3350 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
3351 `buffer-auto-save-file-format'.
3352 * fileio.c: Delete declaration for removed Vauto_save_file_format.
3353 (build_annotations): Adapt to replacement of
3354 `auto-save-file-format' with the new buffer-local variable
3355 `buffer-auto-save-file-format'.
3356 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
3358 2004-09-07 Jason Rumney <jasonr@gnu.org>
3360 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
3362 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
3363 Handle Unicode menu titles.
3365 2004-09-07 Kim F. Storm <storm@cua.dk>
3367 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
3368 property from text property or overlay strings at point.
3370 2004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
3372 * xmenu.c (update_submenu_strings): YAILOM.
3373 (set_frame_menubar): Make sure last_i is initialized.
3375 2004-09-03 Jason Rumney <jasonr@gnu.org>
3377 * w32menu.c (_widget_value): Add lname and lkey.
3378 (digest_single_submenu): Set lname and lkey in widget_value
3379 instead of name and key.
3380 (update_submenu_strings): New function.
3381 (set_frame_menubar): Remove call to inhibit_garbage_collection,
3382 call update_submenu_strings.
3384 * w32menu.c (globals_of_w32menu): Check for Unicode API.
3385 (digest_single_submenu, w32_menu_show): Encode menu strings as
3386 UTF-8 if Unicode API is available.
3387 (utf8to16): New function.
3388 (add_menu_item): Use it when calling Unicode API.
3390 2004-09-03 Kim F. Storm <storm@cua.dk>
3392 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
3393 in overlay or text-property strings; set cursor on corresponding
3394 glyph rather than at end of the string.
3396 2004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3398 * macfns.c (x_real_positions): Save the current window port and
3399 set a new one before obtaining the global coordinate.
3400 Use FRAME_MAC_WINDOW.
3401 (x_set_name, x_set_title): Encode title to UTF8.
3402 Use SetWindowTitleWithCFString.
3403 (Fx_server_version): Get correct OS version.
3405 * macmenu.c (add_menu_item): Remove unused variable `i'.
3406 Don't let separator items destroy refence constants of other menu items.
3408 * macterm.c (x_update_end): Move SetPortWindowPort to inside
3410 (x_set_offset): Use FRAME_MAC_WINDOW.
3412 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
3413 nontext_cursor if it is on a scroll bar.
3415 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
3417 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
3420 2004-09-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3422 * xfns.c (x_set_name_internal): New function. Check if we shall call
3423 xfree before ENCODE_UTF_8.
3424 (x_set_name, x_set_title): Call x_set_name_internal.
3426 2004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
3428 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
3431 2004-08-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3433 * macmenu.c (_widget_value): Add lname and lkey.
3434 (single_submenu): Set lname and lkey in widget_value
3435 instead of name and key.
3436 (update_submenu_strings): New function.
3437 (set_frame_menubar): Remove call to inhibit_garbage_collection,
3438 call update_submenu_strings.
3440 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
3441 instead of name and key.
3442 (update_submenu_strings): New function.
3443 (set_frame_menubar): Remove call to inhibit_garbage_collection,
3444 call update_submenu_strings.
3446 * gtkutil.h (_widget_value): Added lname and lkey.
3448 2004-08-30 Steven Tamm <steventamm@mac.com>
3450 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
3451 by using different names for inner loop variables.
3453 2004-08-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3455 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
3456 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
3458 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
3459 tool bar items is 0.
3461 2004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3463 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
3464 strings in menu items.
3465 (single_submenu): Use ENCODE_MENU_STRING
3466 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
3467 button release isn't passed to event loop
3468 (add_menu_item): Use SetMenuItemWithCFString
3470 2004-08-26 Steven Tamm <steventamm@mac.com>
3472 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
3474 * macfns.c (Fx_file_dialog): Implemented using NavServices
3476 2004-08-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3478 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
3480 * xfns.c (x_window_to_frame, x_any_window_to_frame)
3481 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
3482 (x_top_window_to_frame): Return 0 if wdesc is None.
3484 2004-08-22 Richard M. Stallman <rms@gnu.org>
3486 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
3487 HAVE_TERMIOS]: If there's no char for this signal, drop through
3488 and use system calls.
3490 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
3492 2004-08-20 Kim F. Storm <storm@cua.dk>
3494 * process.c (wait_reading_process_output): Rename from
3495 wait_reading_process_input. All uses changed.
3496 (wait_reading_process_output_1): Rename from
3497 wait_reading_process_input_1. All uses changed.
3499 * dispnew.c (Fsleep_for): Remove obsolete code.
3501 2004-08-20 Kenichi Handa <handa@m17n.org>
3503 * syntax.c (skip_chars): Fix for unibyte case.
3505 2004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3507 * syntax.c (char_quoted): Mixup byte/char pos.
3508 (back_comment): Fixup globals in all cases.
3510 2004-08-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3512 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
3513 passing it to gtk_window_set_title.
3515 2004-08-19 Kim F. Storm <storm@cua.dk>
3517 * process.c (wait_reading_process_input): Clean up.
3518 Add wait_for_cell, wait_proc, and just_wait_proc args
3519 to avoid overloading `read_kbd' and `do_display' args.
3520 Change read_kbd arg to int. All callers changed.
3522 * process.c (process_send_signal): Use CDISABLE.
3524 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
3526 2004-08-18 Kim F. Storm <storm@cua.dk>
3528 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
3529 forward to wait_reading_process_input via DO_DISPLAY arg.
3530 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
3531 object, only process output from that process; also inhibit
3532 running timers if DO_DISPLAY==-2.
3534 2004-08-17 Kim F. Storm <storm@cua.dk>
3536 * process.c (process_send_signal): Fix last change--use
3537 _POSIX_VDISABLE instead of CVDISABLE when available.
3539 2004-08-16 Richard M. Stallman <rms@gnu.org>
3541 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
3542 Set VQUIT and VINTR chars to the standard ones if they are unset.
3543 [AIX]: Don't do that here. And don't force VINTR to standard
3544 when SIGNALS_VIA_CHARACTERS.
3546 * process.c (process_send_signal)
3547 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
3548 Do nothing if the character is CVDISABLE.
3550 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
3552 * intervals.c (move_if_not_intangible):
3553 Force POSITION to be between BEGV and ZV.
3555 2004-08-14 John Paul Wallington <jpw@gnu.org>
3557 * buffer.c (Frestore_buffer_modified_p): Doc fix.
3559 * fileio.c (Fread_file_name): Doc fix.
3561 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
3563 2004-08-09 Luc Teirlinck <teirllm@auburn.edu>
3565 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
3567 2004-08-08 Luc Teirlinck <teirllm@auburn.edu>
3569 * keyboard.c: Declare Qdisabled_command_function instead of
3570 Qdisabled_command_hook.
3571 (Fcommand_execute): Use Qdisabled_command_function instead of
3572 Qdisabled_command_hook.
3573 (syms_of_keyboard): Ditto.
3575 2004-08-07 Luc Teirlinck <teirllm@auburn.edu>
3577 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
3578 (syms_of_keymap) <key-translation-map>: Doc fixes.
3580 2004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
3582 * window.c (window_list_1): YAILOM.
3584 * fileio.c (make_temp_name): Handle multibyte prefixes.
3586 2004-08-06 Luc Teirlinck <teirllm@auburn.edu>
3588 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
3591 2004-08-03 Kenichi Handa <handa@m17n.org>
3593 * coding.c (decode_coding_string): Adjust coding->consumed, and
3594 etc. with shrinked_bytes.
3596 2004-08-03 Kim F. Storm <storm@cua.dk>
3598 * indent.c (compute_motion): Fix check for full width window
3599 in non-window case. Do not count left truncation glyph on
3602 2004-08-02 Luc Teirlinck <teirllm@auburn.edu>
3604 * data.c (Finteractive_form): Doc fix.
3606 2004-08-02 Kim F. Storm <storm@cua.dk>
3608 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
3609 properly accounting for continuation glyph on non-window systems.
3610 (Fcompute_motion): Use actual window width if WIDTH is nil, and
3611 actual window width/height if TOPOS is nil, properly accounting for
3612 continuation glyphs on non-window systems, and optional header lines.
3613 (vmotion): Let compute_motion calculate actual window width.
3615 * window.c (window_scroll_line_based): Let compute_motion
3616 calculate actual window width.
3618 2004-08-02 Kim F. Storm <storm@cua.dk>
3620 * process.c (read_process_output): Use whole read buffer.
3621 Don't trigger adaptive read buffering on errors.
3623 2004-07-31 Luc Teirlinck <teirllm@auburn.edu>
3625 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
3627 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
3629 * callint.c (Fcall_interactively): Doc fix.
3631 2004-07-30 Richard M. Stallman <rms@gnu.org>
3633 * abbrev.c (Fexpand_abbrev): Undo previous change.
3635 2004-07-30 Kim F. Storm <storm@cua.dk>
3637 * editfns.c (Fformat): Allocate extra (dummy) element in info.
3639 2004-07-28 Luc Teirlinck <teirllm@auburn.edu>
3641 * eval.c (Fdefvar, Fdefconst): Doc fixes.
3643 2004-07-27 Kim F. Storm <storm@cua.dk>
3645 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
3646 we have ensured that the glyph fits on the current line (or returned
3647 MOVE_LINE_CONTINUED otherwise).
3649 2004-07-26 Kim F. Storm <storm@cua.dk>
3651 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
3652 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
3653 if target position is at end of display line but char is not a newline.
3655 2004-07-25 Richard M. Stallman <rms@gnu.org>
3657 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
3658 instead of ON_VERTICAL_BORDER, when on scroll bar.
3659 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
3661 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
3663 * window.c (Fcoordinates_in_window_p):
3664 Take account of FRAME_INTERNAL_BORDER_WIDTH.
3666 * alloc.c (check_cons_list): New function (contents commented out).
3668 2004-07-24 Luc Teirlinck <teirllm@auburn.edu>
3670 * xfaces.c (Fcolor_supported_p): Doc fix.
3672 * frame.c (Fselect_frame, Fset_frame_selected_window)
3673 (Fframe_visible_p, Fraise_frame): Doc fixes.
3675 2004-07-24 Richard M. Stallman <rms@gnu.org>
3677 * keyboard.h (not_single_kboard_state): Declare.
3679 * fileio.c (Fwrite_region): Doc fix.
3681 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
3683 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
3684 only when a real abbrev is present.
3686 * xfns.c (x_icon_verify): New function.
3687 (Fx_create_frame): Use it.
3689 2004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
3691 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
3693 2004-07-21 Kim F. Storm <storm@cua.dk>
3695 * window.h (struct glyph_matrix): New members nrows_scale_factor
3696 and ncols_scale_factor.
3698 * window.c (make_window): Initialize nrows_scale_factor and
3699 ncols_scale_factor members.
3701 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
3702 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
3703 (required_matrix_height): Apply nrows_scale_factor.
3704 (required_matrix_width): Apply ncols_scale_factor.
3706 * xdisp.c (display_line): Increment nrows_scale_factor and set
3707 fonts_changed_p if past last allocated row.
3708 (append_glyph, append_composite_glyph, produce_image_glyph)
3709 (append_stretch_glyph): Increment ncols_scale_factor and set
3710 fonts_changed_p if current area is full.
3712 2004-07-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3714 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
3716 2004-07-19 Luc Teirlinck <teirllm@auburn.edu>
3718 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
3719 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
3720 (Fset_window_start, Fscroll_up, Fscroll_down)
3721 (Fother_window_for_scrolling, Fscroll_other_window)
3722 (Fsave_window_excursion, Fset_window_vscroll)
3723 (syms_of_window) <window-size-fixed>: Doc fixes.
3725 2004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
3727 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
3728 ENCODE_SYSTEM for filenames.
3730 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3732 * mac.c (sys_select): Block input around call to
3733 ReceiveNextEvent to prevent breakage. Correctly handle
3734 blocking on event queue only by calling ReceiveNextEvent
3735 instead of select (since GUI events aren't on an fd).
3736 (sys_read): Remove function
3737 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
3739 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3741 * mac.c (sys_select): Redo sys_select to use alarm-based
3742 polling instead of 1 sec timeouts (like solaris).
3744 * macterm.c (x_make_frame_visible): Comment in polling on
3747 * keyboard.c: Undef SIGIO on Carbon
3749 * atimer.c (alarm_signal_handler): Call alarm handlers after
3752 * eval.c (Feval): Remove quit_char test
3754 * process.c (wait_reading_process_input): Remove clearing
3755 stdin for select call on process input.
3757 2004-07-18 Luc Teirlinck <teirllm@auburn.edu>
3759 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
3760 capitalization error in docstring.
3762 2004-07-17 Juanma Barranquero <lektu@terra.es>
3764 * keyboard.c (not_single_kboard_state): Do nothing unless
3765 MULTI_KBOARD is defined.
3767 2004-07-17 Richard M. Stallman <rms@gnu.org>
3769 * window.c (coordinates_in_window): Inside the window but outside
3770 its box to the L or R, return ON_VERTICAL_BORDER.
3771 (window_list_1): Rotate the list to start with WINDOW.
3773 * print.c (print_preprocess): Test for print_depth at limit
3774 before entering in being_printed.
3776 * keyboard.c (not_single_kboard_state): New function.
3777 (stuff_buffered_input): Now no-op only if no SIGTSTP.
3779 * frame.c (Fdelete_frame): If we're in single_bboard_state on
3780 this kboard, and we delete its last frame, go to any_kboard_state.
3782 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
3784 2004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
3786 * w32fns.c (Fx_file_dialog): Encode strings in system coding
3787 system before passing them to OS functions for display.
3789 2004-07-15 David Kastrup <dak@gnu.org>
3791 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
3792 Apparently fixes an abort condition.
3794 2004-07-14 Luc Teirlinck <teirllm@auburn.edu>
3796 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
3799 2004-07-14 K
\e,Ba
\e(Broly L
\e,Bu
\e(Brentey <lorentey@elte.hu>
3801 * keyboard.c (echo_dash): Do nothing if there already is a dash
3802 at the end of the echo string.
3804 2004-07-12 Kim F. Storm <storm@cua.dk>
3806 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
3809 2004-07-10 Luc Teirlinck <teirllm@auburn.edu>
3811 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
3813 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
3814 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
3815 (Freplace_buffer_in_windows, Fset_window_buffer)
3816 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
3817 (syms_of_window): Expand docstring of `display-buffer-function'.
3819 2004-07-09 Luc Teirlinck <teirllm@auburn.edu>
3821 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
3822 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
3823 that time values of the type (HIGH . LOW) are considered obsolete.
3825 2004-07-06 Luc Teirlinck <teirllm@auburn.edu>
3827 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
3830 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
3832 2004-07-06 John Paul Wallington <jpw@gnu.org>
3834 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
3836 * fns.c (Fclear_string): Signal an error if STRING is not a string.
3838 2004-07-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3840 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
3841 instead of CGMainDisplayID (only in OSX 10.2 and later).
3843 2004-07-04 John Paul Wallington <jpw@gnu.org>
3845 * fileio.c (read_file_name_completion_ignore_case): New variable.
3846 (syms_of_fileio): Declare and initialise it.
3847 (Fread_file_name): Bind `completion-ignore-case' to respect it.
3849 2004-07-03 Eli Zaretskii <eliz@gnu.org>
3851 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
3852 for event.x and event.y.
3854 2004-07-01 Kenichi Handa <handa@m17n.org>
3856 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
3857 after getting a new string by pre-write-conversion.
3859 2004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
3861 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
3862 (x_calc_absolute_position): Remove unused var `child'.
3864 * xfaces.c (x_supports_face_attributes_p)
3865 (Fdisplay_supports_face_attributes_p): YAILOM.
3866 (tty_supports_face_attributes_p): Remove unused var `i'.
3868 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
3871 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
3873 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
3875 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
3877 2004-06-30 Andreas Schwab <schwab@suse.de>
3879 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
3880 (Finit_image_library): Pass LIBRARIES through to
3881 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
3882 (lookup_image_type): Pass Qnil as second argument to
3883 Finit_image_library.
3885 * lisp.h (Finit_image_library): Declare.
3887 2004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3889 * macterm.c (do_window_activate, do_window_deactivate): Remove.
3890 (XTread_socket): Send mouse button events to the toolbox
3891 dispatcher even when the mouse is grabbed. Don't process window
3892 activate events for non-Emacs windows. Replace function calls to
3893 do_window_activate and do_window_deactivate with their contents.
3894 Reset mouse grabbing status when a window is deactivated.
3896 2004-06-29 Steven Tamm <steventamm@mac.com>
3898 * macterm.c (mac_get_emulated_btn)
3899 (mac_event_to_emacs_modifiers): Fix emulated mouse button
3900 support to correctly mask out modifiers.
3902 2004-06-29 David Kastrup <dak@gnu.org>
3904 * search.c (Fset_match_data): Allow buffer before end of list
3905 which can happen if set-match-data is using a pre-consed list.
3907 2004-06-28 Steven Tamm <steventamm@mac.com>
3909 * macterm.c (XTread_socket): Correctly set the frame position
3910 after the window is moved.
3912 2004-06-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3914 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
3915 gpix and gmask just before return to avoid memory leak.
3916 (xg_get_image_for_pixmap): Add workaround for monochrome displays
3917 so insensitive and activated icons look ok.
3919 2004-06-27 Jason Rumney <jasonr@gnu.org>
3921 * w32fns.c (file_dialog_callback): Disable edit control if set
3922 to directories only on CDN_INITDONE message.
3923 (Fx_file_dialog): Default to directories only when prompt starts
3926 2004-06-25 Kim F. Storm <storm@cua.dk>
3928 * alloc.c (allocate_misc): Update total_free_markers.
3929 (free_misc): New function.
3930 (safe_alloca_unwind, free_marker): Use it.
3932 * lisp.h (free_misc): Add prototype.
3934 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
3936 2004-06-24 Richard M. Stallman <rms@gnu.org>
3938 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
3939 (syms_of_emacs): Lisp variables deleted.
3941 2004-06-23 David Kastrup <dak@gnu.org>
3943 * search.c (Freplace_match): Adjust the match-data more thoroughly
3944 when replacing strings in the buffer.
3945 (Fmatch_data): When INTEGERS is non-nil and the last match was in
3946 a buffer, add the buffer as last element to the match data.
3947 (Fset_match_data): If an additional element of the match-data is a
3948 buffer, restore it to last_thing_searched.
3949 (save_search_regs): Save last_thing_searched as part of the match data.
3950 (restore_match_data): Restore it again.
3952 2004-06-23 Luc Teirlinck <teirllm@auburn.edu>
3954 * keymap.c (Ftext_char_description): Doc fix.
3955 * doc.c (Fsnarf_documentation): Doc fix.
3957 2004-06-22 Kim F. Storm <storm@cua.dk>
3959 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
3961 * lisp.h (struct Lisp_Save_Value): New member dogc.
3962 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
3963 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
3964 (SAFE_FREE_LISP): New macro.
3966 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
3967 (make_save_value): Init new dogc member.
3968 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
3970 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
3971 SAFE_FREE_LISP macros.
3973 2004-06-22 Kim F. Storm <storm@cua.dk>
3975 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
3976 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
3977 in that memory area are unknown to GC. Add comments.
3979 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
3981 2004-06-21 Kim F. Storm <storm@cua.dk>
3983 * lisp.h (MAX_ALLOCA): Define here.
3984 (safe_alloca_unwind): Add prototype.
3985 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
3987 * alloc.c (safe_alloca_unwind): New function.
3989 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
3991 * charset.c (Fstring): Use SAFE_ALLOCA.
3993 * coding.c (MAX_ALLOCA): Remove define.
3995 * data.c (MAX_ALLOCA): Remove define.
3996 (Faset): Use SAFE_ALLOCA.
3998 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
4000 * fns.c (string_make_multibyte, string_to_multibyte)
4001 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
4002 (MAX_ALLOCA): Remove define.
4003 (Fbase64_encode_region, Fbase64_encode_string)
4004 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
4005 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
4006 memory leak if encoding fails.
4008 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
4010 2004-06-21 Eli Zaretskii <eliz@gnu.org>
4012 * print.c (Fwith_output_to_temp_buffer): Doc fix.
4014 2004-06-20 Richard M. Stallman <rms@gnu.org>
4016 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
4018 * search.c (match_limit): Cleaner err msg when no match data available.
4020 * window.c (syms_of_window): Doc fix.
4022 * keyboard.c (command_loop_1): Handle values `only' and `identity'
4023 for Vtransient_mark_mode.
4025 * buffer.c (syms_of_buffer): Doc fix.
4027 2004-06-21 David Kastrup <dak@gnu.org>
4029 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
4030 and unbinding of `case-fold-search' according to
4031 `completion-ignore-case' around calls of string-match and
4032 predicates, respectively. Should give satisfactory performance
4033 in all relevant cases.
4035 2004-06-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4037 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
4040 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
4042 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
4044 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
4047 2004-06-16 Luc Teirlinck <teirllm@auburn.edu>
4049 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
4051 2004-06-16 Kim F. Storm <storm@cua.dk>
4053 * dispextern.h (Vimage_types): Remove extern.
4055 2004-06-16 Miles Bader <miles@gnu.org>
4057 * image.c (lookup_image_type): Initialize image type if necessary.
4059 2004-06-15 Kim F. Storm <storm@cua.dk>
4061 * xdisp.c (try_cursor_movement): Exclude header line from scroll
4062 margin at top of window.
4063 (try_window_reusing_current_matrix): Calculate proper cursor position
4064 after scrolling up with non-zero scroll margin, as the old cursor
4065 position corresponds to value of PT before executing this command.
4066 (try_window_id): Consider scroll margin at bottom of window too;
4067 otherwise we fail to scroll when hl-line-mode is enabled.
4069 * syntax.c (skip_chars): Only recognize [:class:] when it has the
4070 proper format and class is a lower-case word.
4072 2004-06-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4074 * gtkutil.c (xg_get_image_for_pixmap): New function.
4075 (xg_get_gdk_pixmap_and_mask): Remove.
4076 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
4077 xg_get_gdk_pixmap_and_mask.
4079 * xterm.h (struct x_display_info): Typo in comment fixed.
4081 2004-06-14 Juanma Barranquero <lektu@terra.es>
4083 * dispextern.h (Vimage_types): Make it conditional on
4086 * image.c (Vimage_types): Move from xdisp.c.
4087 (Vimage_type_cache): New variable.
4088 (define_image_type): New argument indicating whether an image
4089 library was loaded; cache loaded status and return t on success,
4091 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
4092 (w32_delayed_load): New function to load an image library from a
4093 list of possible filenames.
4094 (init_xpm_functions, init_png_functions, init_jpeg_functions)
4095 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
4096 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
4097 (Finit_image_library): New function, extracted from `init_image'.
4098 Try to initialize an image library on demand and cache whether we
4099 were successful or not.
4100 (syms_of_image): Initialize `Vimage_types' and
4101 `Vimage_type_cache'. Add recognized image types to Vimage_types.
4102 Export `init-image-library'.
4103 (init_image): Remove initialization of all image types, except xbm
4106 * xdisp.c (Vimage_types): Delete (moved to image.c).
4108 2004-06-14 Andreas Schwab <schwab@suse.de>
4110 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
4111 Avoid calling specbind when completion-regexp-list is empty.
4113 2004-06-13 Richard M. Stallman <rms@gnu.org>
4115 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
4116 (re_wctype, re_iswctype, re_wctype_to_bit):
4117 Non-function definitions moved here from regex.c.
4119 * regex.c (re_wctype, re_iswctype): Function defs longer static.
4120 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
4121 (re_wctype, re_iswctype, re_wctype_to_bit):
4122 Non-function definitions moved to regex.h.
4124 * window.c (Fselect_window): Doc fix.
4126 * syntax.c: Include regex.h.
4127 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
4128 If requested, make a list of classes, then check the scanned
4129 chars for membership in them.
4130 (in_classes): New function.
4133 * keyboard.c (cmd_error): Don't call any_kboard_state
4134 if inside a recursive edit level.
4136 2004-06-13 Lorentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
4138 * keyboard.c (command_loop): Call any_kboard_state before
4139 command_loop_2 when at top level.
4141 2004-06-13 Andreas Schwab <schwab@suse.de>
4143 * print.c (print_object): Always use %ld for printing EMACS_INT.
4145 * keyboard.c (cancel_hourglass_unwind): Return a value.
4146 (modify_event_symbol): Always use %ld for printing EMACS_INT.
4147 (Fexecute_extended_command): Likewise.
4149 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
4152 (SYNTAX_WITH_FLAGS): Likewise.
4153 (SYNTAX_MATCH): Likewise.
4155 * syntax.c (char_quoted): Avoid warning about undefined operation.
4156 (find_defun_start): Likewise.
4157 (scan_lists): Likewise.
4158 (INC_FROM): Likewise.
4159 (scan_sexps_forward): Likewise.
4161 * image.c: Include <ctype.h>.
4163 * xfaces.c (face_attr_equal_p): Declare parameters.
4165 2004-06-13 Kenichi Handa <handa@m17n.org>
4167 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
4169 2004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
4171 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
4173 2004-06-12 Kenichi Handa <handa@m17n.org>
4175 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
4176 ccl_prog_stack_struct and update it.
4177 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
4178 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
4180 (ccl_debug_hook): New function.
4181 (struct ccl_prog_stack): New member eof_ic.
4182 (ccl_driver): Handle EOF in subrountine call correctly.
4184 2004-06-11 Kenichi Handa <handa@m17n.org>
4186 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
4188 2004-06-11 Kim F. Storm <storm@cua.dk>
4190 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
4192 2004-06-11 Juanma Barranquero <lektu@terra.es>
4194 * keyboard.c (Fposn_at_point): Doc fix.
4196 2004-06-11 David Kastrup <dak@gnu.org>
4198 * search.c (match_limit): Don't flag an error if match-data
4199 exceeding the allocated search_regs.num_regs gets requested, just
4202 2004-06-08 Miles Bader <miles@gnu.org>
4204 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
4206 2004-06-07 Juanma Barranquero <lektu@terra.es>
4208 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
4209 (Fcurrent_time_string, Fcurrent_time_zone)
4210 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
4212 2004-06-07 Miles Bader <miles@gnu.org>
4214 * xfaces.c (struct named_merge_point): New type.
4215 (push_named_merge_point): New function.
4216 (merge_named_face): New function.
4217 (merge_face_ref, face_at_buffer_position, face_at_string_position):
4218 Use `merge_named_face'.
4219 (merge_face_inheritance): Function removed.
4220 (merge_face_ref): Rename from `merge_face_vector_with_property'.
4221 Add new `err_msgs' and `named_merge_points' args. Return error
4222 status. Only print error messages if ERR_MSGS is true. Don't try to
4223 do :inherit attribute validation.
4224 (merge_face_heights): Handle `unspecified' in both directions.
4225 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
4226 Call `merge_face_ref' instead of `merge_face_inheritance'.
4227 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
4228 (compute_char_face, face_at_buffer_position)
4229 (face_at_string_position): Call `merge_face_ref' instead of
4230 `merge_face_vector_with_property'.
4232 2004-06-07 Kenichi Handa <handa@m17n.org>
4234 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
4235 the necessary places.
4237 2004-06-07 Kim F. Storm <storm@cua.dk>
4239 * process.c (Fdelete_process): Undo 2004-05-28 change.
4240 Instead, call status_notify also for network process.
4241 (status_message): Use process instead of status as arg.
4242 Give messages "deleted" or "connection broken by remote peer" for
4243 an exited network process.
4244 (status_notify): Change call to status_message.
4245 (read_process_output): Increase readmax to 4096. Do not increase
4246 buffer size for datagram channels (default is now large enough).
4248 2004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
4250 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
4251 problem due to newly defined variable.
4253 2004-06-06 Miles Bader <miles@gnu.org>
4255 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
4256 immediately if non-interactive or not initialized.
4258 2004-06-05 Richard M. Stallman <rms@gnu.org>
4260 * minibuf.c (Fcompleting_read): Doc fix.
4262 2004-06-05 Andreas Schwab <schwab@suse.de>
4264 * macfns.c (x_create_tip_frame): Fix declaration after statement.
4266 2004-06-05 Juanma Barranquero <lektu@terra.es>
4268 * keymap.c (Fdescribe_vector): Fix docstring.
4269 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
4271 2004-06-05 Miles Bader <miles@gnu.org>
4273 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
4274 attributes have different values than the default face.
4276 2004-06-04 Eli Zaretskii <eliz@gnu.org>
4278 * xfaces.c (x_supports_face_attributes_p): Make this function
4279 conditional on HAVE_WINDOW_SYSTEM.
4280 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
4281 Don't call x_supports_face_attributes_p if it was not compiled in.
4283 2004-06-04 Miles Bader <miles@gnu.org>
4285 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
4286 from Ftty_supports_face_attributes_p.
4287 (x_supports_face_attributes_p): New function.
4288 (Ftty_supports_face_attributes_p): Function deleted.
4289 (Fdisplay_supports_face_attributes_p): New function.
4290 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
4291 (face_attr_equal_p): New function.
4292 (lface_equal_p): Use it.
4294 2004-06-03 Juanma Barranquero <lektu@terra.es>
4296 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
4297 (Vw32_color_map): Fix typo in docstring.
4298 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
4299 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
4300 Make argument names match their use in docstring.
4302 2004-06-02 Juanma Barranquero <lektu@terra.es>
4304 Work around bugs/problems with MinGW builds of graphics libraries
4305 called from MSVC builds of Emacs.
4307 * image.c (lookup_image): Make pointer to img static.
4308 (png_read_from_memory): Disable "global" optimization.
4310 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
4312 * eval.c (Fcondition_case): Fix usage. Simplify.
4314 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
4316 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4318 * macfns.c: Don't include ccl.h.
4319 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
4320 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
4322 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
4323 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
4324 display height/width.
4325 (compute_tip_xy, Vx_max_tooltip_size): Declare.
4326 (unwind_create_tip_frame, compute_tip_xy): New functions.
4327 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
4328 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
4329 and last_show_tip_args.
4331 * macgui.h [!MAC_OSX]: Include Gestalt.h.
4332 (Cursor, No_Cursor): New defines.
4333 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
4334 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
4336 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
4338 * macterm.c: Don't include Gestalt.h.
4339 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
4340 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
4341 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
4342 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
4343 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
4344 (construct_mouse_click, XTmouse_position)
4345 (x_scroll_bar_report_motion, x_calc_absolute_position)
4346 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
4347 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
4348 (note_mouse_movement): Clear the mouse face and reset the pointer
4349 shape when the pointer goes outside the frame without grabbing.
4350 (mac_front_window): New function.
4351 (mac_window_to_frame): New macro.
4352 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
4353 (do_window_activate, do_window_deactivate, do_app_resume)
4354 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
4355 (do_zoom_window, mac_do_receive_drag, XTread_socket)
4356 (mac_check_for_quit_char): Use mac_front_window and/or
4357 mac_window_to_frame.
4358 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
4359 scroll-bar click event.
4360 (mac_define_frame_cursor): Change the pointer shape.
4361 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
4362 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
4363 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
4364 (do_window_update): Don't do anything if the updated window is the
4366 (do_mouse_moved): Handle mouse movement events here (previously in
4367 XTread_socket). Clear the mouse face if
4368 dpyinfo->mouse_face_hidden is set.
4369 (do_os_event, do_events): Remove (now in XTread_socket).
4370 (XTread_socket): Immediately return if interrupt_input_blocked.
4371 Loop until all the events in the queue are processed.
4372 Rearrange codes for mouse grabbing. Add tooltip support. Include the
4373 contents of do_os_event and do_events. Remove mouse movement
4374 handling (now in do_mouse_moved). Add the case where
4375 Vmouse_highlight has an integer value.
4376 (NewMacWindow): Remove.
4377 (make_mac_frame): Do what NewMacWindow previously did. Don't do
4378 excess initializations.
4379 (make_mac_terminal_frame): Previous initializations in
4380 make_mac_frame are moved here.
4381 (mac_initialize_display_info):
4382 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
4384 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
4385 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
4387 2004-05-29 Richard M. Stallman <rms@gnu.org>
4389 * lisp.h (truncate_undo_list): Update decl.
4391 * alloc.c (undo_outer_limit): New variable.
4392 (syms_of_alloc): Defvar it.
4393 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
4395 * undo.c (truncate_undo_list): New arg LIMITSIZE.
4397 * alloc.c (lisp_align_malloc): Check for base == 0
4398 regardless of HAVE_POSIX_MEMALIGN.
4399 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
4401 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
4403 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
4404 (marker_blocks_pending_free): Remove.
4405 (Fgarbage_collect): Sweep after cleaning up undo-lists.
4406 Mark the undo lists after claning them up.
4407 Don't free block in marker_blocks_pending_free.
4408 (mark_buffer): Don't mark undo_list.
4409 (gc_sweep): Sweep hash-tables and strings first.
4410 Do free marker blocks that are empty.
4412 2004-05-28 Jim Blandy <jimb@redhat.com>
4414 * regex.c (print_partial_compiled_pattern): Add missing 'break'
4415 after 'case wordend'. For symbeg and symend, print to stderr,
4416 like the other cases.
4418 2004-05-28 Noah Friedman <friedman@splode.com>
4420 * process.c (Fdelete_process): Do not call remove_process.
4422 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
4424 * alloc.c (struct backtrace): Remove.
4425 (Fgarbage_collect): Use the new mark_backtrace.
4427 * eval.c (mark_backtrace): New function.
4429 * minibuf.c (run_exit_minibuf_hook): New function.
4430 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
4431 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
4433 2004-05-27 Kim F. Storm <storm@cua.dk>
4435 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
4436 over display properties, e.g. images, that replace buffer text.
4438 2004-05-25 Kim F. Storm <storm@cua.dk>
4440 * alloc.c (marker_blocks_pending_free): New var.
4441 (gc_sweep): Store free marker blocks on that list.
4442 (Fgarbage_collect): Free them after undo-list cleanup.
4444 * process.c (wait_reading_process_input): Check connect_wait_mask
4445 before actually accepting connection in case it has already been
4446 accepted due to recursion.
4448 2004-05-23 K
\e,Ba
\e(Broly L
\e,Bu
\e(Brentey <lorentey@elte.hu>
4450 * coding.c (Fset_safe_terminal_coding_system_internal):
4451 Set suppress_error in safe_terminal_coding, not terminal_coding.
4453 2004-05-22 Richard M. Stallman <rms@gnu.org>
4455 * alloc.c (Fmake_string): Doc fix.
4457 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
4458 and the alist pairs too.
4460 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
4462 * emacs.c (main): Update copyright year.
4464 * fileio.c (Fread_file_name): Expand DIR if not absolute.
4466 * insdel.c (del_range_2, replace_range): Don't write an anchor
4467 if the gap is empty.
4469 * xdisp.c (try_scrolling): If scroll-up-aggressively or
4470 scroll-down-aggressively is small but positive, put point
4471 near the screen edge.
4473 2004-05-22 Juanma Barranquero <lektu@terra.es>
4475 * keymap.c (Fdefine_key): Doc fix.
4477 2004-05-22 Kim F. Storm <storm@cua.dk>
4479 * alloc.c (struct backtrace): Add debug_on_exit member.
4480 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
4481 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
4482 the removed cons cells.
4483 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
4484 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
4485 any cons cells pointing to unallocated stings.
4486 Do not lisp_free any marker blocks, as there may still be pointers
4487 to them from buffer undo lists at this stage of GC.
4489 * keyboard.c (struct backtrace): Add debug_on_exit member.
4490 (Fcommand_execute): Clear it.
4492 2004-05-20 Luc Teirlinck <teirllm@auburn.edu>
4494 * intervals.c (lookup_char_property): Do not prematurely return nil.
4496 2004-05-19 Jim Blandy <jimb@redhat.com>
4498 Add support for new '\_<' and '\_>' regexp operators, matching the
4499 beginning and end of symbols.
4501 * regex.c (enum syntaxcode): Add Ssymbol.
4502 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
4503 (re_opcode_t): New opcodes `symbeg' and `symend'.
4504 (print_partial_compiled_pattern): Print the new opcodes properly.
4505 (regex_compile): Parse the new operators.
4506 (analyse_first): Skip sym(beg|end) (they match only the empty string).
4507 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
4508 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
4509 (re_match_2_internal): Match symbeg and symend.
4511 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
4513 2004-05-19 Kim F. Storm <storm@cua.dk>
4515 * .gdbinit (xsymbol): Fix last change.
4517 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
4519 * .gdbinit (xprintstr): New fun.
4520 (xstring, xprintsym): Use it.
4522 * w32proc.c (create_child): Use INTMASK.
4524 * alloc.c (Fgarbage_collect): Do all the marking before flushing
4525 unmarked elements of the undo list.
4527 2004-05-18 David Ponce <david@dponce.com>
4529 * print.c (print): Reset print_depth before to call print_object.
4531 2004-05-18 Jason Rumney <jasonr@gnu.org>
4533 * w32console.c: Prefix RIF functions with w32con_ to avoid
4534 namespace clash with functions in term.c and w32term.c.
4536 * w32menu.c (add_menu_item, w32_menu_display_help)
4537 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
4539 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
4541 2004-05-18 Eli Zaretskii <eliz@gnu.org>
4543 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
4545 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
4547 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
4550 2004-05-18 Kim F. Storm <storm@cua.dk>
4552 * blockinput.h (INPUT_BLOCKED_P): New macros.
4554 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
4555 (Ftop_level): Unblock input if blocked.
4557 * buffer.h (GET_OVERLAYS_AT): New macro.
4558 * msdos.c (IT_note_mouse_highlight): Use it.
4559 * textprop.c (get_char_property_and_overlay): Use it.
4560 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
4561 * xfaces.c (face_at_buffer_position): Use it.
4563 * print.c (print_object): Increase buf size.
4565 2004-05-17 Jason Rumney <jasonr@gnu.org>
4567 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
4568 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
4569 Lisp_Object using i member.
4570 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
4571 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
4574 * w32proc.c (create_child): Use make_number instead of masking pid.
4576 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
4577 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
4578 Use EQ to compare Lisp_Objects.
4579 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
4581 * w32term.c (w32_num_mouse_buttons): Rename from
4582 Vw32_num_mouse_buttons and make it an int.
4584 * w32.c (init_environment): Use it.
4586 * w32fns.c (w32_wnd_proc): Likewise.
4588 * w32proc.c (w32_pipe_read_delay): Rename from
4589 Vw32_pipe_read_delay and make it an int.
4591 * w32.c (_sys_read_ahead): Use it.
4593 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
4595 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
4597 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
4598 (key_event): Don't mix Lisp_Object and int.
4600 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
4602 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
4603 modifiers in language change event.
4605 2004-05-17 Kim F. Storm <storm@cua.dk>
4607 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
4608 Such objects may be freed markers which still exist on an undo list.
4610 2004-05-16 Juanma Barranquero <lektu@terra.es>
4612 * data.c (Fset_default): Make argument names match their use in
4615 2004-05-15 Andreas Schwab <schwab@suse.de>
4617 * emacs.c (gdb_array_mark_flag): Define.
4618 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
4620 2004-05-15 Eli Zaretskii <eliz@gnu.org>
4622 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
4623 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
4624 defined for the MS-DOS build.
4626 2004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
4628 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
4630 2004-05-14 Kenichi Handa <handa@m17n.org>
4632 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
4634 2004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4636 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
4637 section to frame.c section.
4638 (Fxw_display_color_p, Fx_file_dialog): Declare if
4639 HAVE_WINDOW_SYSTEM defined.
4641 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
4643 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
4645 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
4646 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
4647 (XTread_socket): Fix int/Lisp_Object mixup.
4648 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
4650 * macterm.h (struct frame, struct face, struct image)
4651 (display_x_get_resource, Fx_display_color_p)
4652 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
4655 2004-05-14 Kim F. Storm <storm@cua.dk>
4657 * process.c (wait_reading_process_input): Make reentrant.
4658 Make Available and Connecting non-static. Save and restore value
4659 of waiting_for_user_input_p.
4661 2004-05-13 Kim F. Storm <storm@cua.dk>
4663 * keyboard.c (mark_kboards): Don't mark x and y members
4664 that are overloaded in selection request events.
4666 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
4668 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
4670 2004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
4672 * window.c (Fdisplay_buffer, Fsplit_window)
4673 (split-height-threshold): Doc fix.
4675 2004-05-13 Juanma Barranquero <lektu@terra.es>
4677 * xfaces.c (Ftty_supports_face_attributes_p)
4678 (Finternal_copy_lisp_face): Fix typo in docstring.
4679 (Finternal_get_lisp_face_attribute): Fix docstring.
4681 2004-05-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4683 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
4685 2004-05-11 Steven Tamm <steventamm@mac.com>
4687 * macfns.c (Fx_create_frame): Default to using tool-bar by
4688 setting tool-bar-lines to 1 in default-frame-alist.
4690 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4692 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
4693 (xpm_get_color_table_v, xpm_make_color_table_h)
4694 (xpm_put_color_table_h, xpm_get_color_table_h)
4695 (xpm_str_to_color_key, xpm_load_image, xpm_load)
4696 (syms_of_image): Support XPM on Carbon Emacs. Does not
4697 depend on libXpm, but only supports XPM version 3 without extensions.
4699 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4701 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
4702 instead of FRAME_X_P
4704 2004-05-11 Kim F. Storm <storm@cua.dk>
4706 * process.c (read_process_output): Grow decoding_buf when needed;
4707 this could cause a crash in allocate_string and compact_small_strings.
4709 2004-04-29 Jim Blandy <jimb@redhat.com>
4711 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
4712 against proper opcode.
4714 2004-05-10 Juanma Barranquero <lektu@terra.es>
4716 * process.c (Fstart_process): Fix docstring.
4718 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
4719 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
4720 (Fsplit_char, Fchar_charset): Make argument names match their use
4723 2004-05-10 Richard M. Stallman <rms@gnu.org>
4725 * print.c (print_preprocess): Use being_printed, loop_count and
4726 halftail to detect overdeep nesting and cyclic cdr chains.
4728 2004-05-10 Andreas Schwab <schwab@suse.de>
4730 * lisp.h (Fmake_symbolic_link): Declare.
4732 * fileio.c (Frename_file): Remove extra argument in call to
4733 Fmake_symbolic_link.
4735 2004-05-10 Kim F. Storm <storm@cua.dk>
4737 * xdisp.c (calc_line_height_property): Use string position when
4740 2004-05-10 Kenichi Handa <handa@m17n.org>
4742 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
4743 inhibit-modification-hooks to t temporarily before calling
4746 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
4747 inhibit-modification-hooks to t temporarily before calling
4750 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
4751 inhibit-modification-hooks to t temporarily before calling
4754 * fns.c (count_combining): Delete it.
4755 (concat): Don't check combining bytes.
4757 2004-05-09 Jason Rumney <jasonr@gnu.org>
4759 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
4760 (globals_of_w32fns): Set it.
4762 2004-05-09 Piet van Oostrum <piet@cs.uu.nl>
4764 * data.c (Fquo): Simplify.
4766 2004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
4768 * data.c (Fquo): If any argument is float, do the computation in
4771 2004-05-08 Juanma Barranquero <lektu@terra.es>
4773 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
4774 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
4775 Fix spelling of Emacs on docstring.
4776 (Fset_process_coding_system, Fprocess_coding_system)
4777 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
4778 Make argument names match their use in docstring.
4779 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
4782 * editfns.c (Finsert_buffer_substring): Make argument names match their
4785 * syntax.c (Fmodify_syntax_entry): Fix docstring.
4787 2004-05-07 Steven Tamm <steventamm@mac.com>
4789 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
4790 around call to ReceiveEvent to avoid certain crashes.
4792 2004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4794 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
4795 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
4796 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
4797 Save/restore the current graphics port and device handle when
4798 drawing into an offscreen graphics world.
4800 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
4801 (gif_load): Likewise.
4803 2004-05-07 Juanma Barranquero <lektu@terra.es>
4805 * window.c (Fset_window_buffer): Fix docstring.
4807 2004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
4809 * emacs.c (main) [VMS]: Fix var ref.
4811 2004-05-06 Romain Francoise <romain@orebokech.com>
4813 * data.c (Fsetq_default): Fix docstring.
4815 2004-05-06 Jason Rumney <jasonr@gnu.org>
4817 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
4818 to avoid name clash.
4820 2004-05-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4822 * fileio.c (barf_or_query_if_file_exists): Use lstat.
4823 (Frename_file): Handle renaming of symlinks across file systems.
4824 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
4826 2004-05-04 Kim F. Storm <storm@cua.dk>
4828 * xdisp.c (Qtotal): New var.
4829 (syms_of_xdisp): Intern and staticpro it.
4830 (calc_line_height_property): New arg total. Set it if
4831 line-spacing property has format (total . VALUE).
4832 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
4833 Handle total line-spacing property.
4835 2004-05-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4837 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
4838 "under" scroll bar when size/position changes.
4840 2004-05-03 Jason Rumney <jasonr@gnu.org>
4842 * makefile.nt: Remove.
4844 2004-05-02 Eli Zaretskii <eliz@gnu.org>
4846 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
4847 Avoid compiler warnings.
4849 * Makefile.in (region-cache.o): Depend on config.h.
4851 2004-05-02 Romain Francoise <romain@orebokech.com>
4853 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
4854 with continuation lines, too.
4856 2004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
4858 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
4860 2004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
4862 * xdisp.c (calc_line_height_property): YAILOM (yet another
4863 int/Lisp_Object mixup).
4865 2004-05-01 Eli Zaretskii <eliz@gnu.org>
4867 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
4868 undo bad effect of pack(4) in some versions of system headers.
4870 2004-05-01 Jason Rumney <jasonr@gnu.org>
4872 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
4874 2004-04-30 Kim F. Storm <storm@cua.dk>
4876 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
4877 (syms_of_buffer) <cursor-type>: Doc fix.
4879 * dispextern.h (struct it): Remove member use_default_face.
4880 Add members override_ascent, override_descent, override_boff.
4882 * xdisp.c (init_iterator): Handle line-spacing float value.
4883 Initialize override_ascent member.
4884 (append_space_for_newline): Reset override_ascent.
4885 Remove use_default_face.
4886 (calc_line_height_property): New function to calculate value of
4887 line-height and line-spacing properties. Look at overlays, too.
4888 Set override_ascent, override_descent, override_boff members when
4889 using another face than the current face. Float values are now
4890 relative to the frame default font, by default; accept a cons
4891 of ratio and face name to specify value relative to a specific face.
4892 (x_produce_glyphs): Use calc_line_height_property.
4893 Use override_ascent etc. when set to handle different face heights.
4894 A negative line-spacing property value is interpreted as a total
4895 line height, rather than inter-line spacing.
4896 (note_mouse_highlight): Allocate room for 40 overlays initially.
4898 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
4900 * data.c (Fsubr_name): New fun.
4901 (syms_of_data): Defsubr it.
4903 2004-04-29 Kim F. Storm <storm@cua.dk>
4905 * xdisp.c (null_glyph_slice): New var.
4906 (append_glyph, append_composite_glyph, append_stretch_glyph):
4907 Use it to initialize glyph slice.
4909 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
4911 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
4912 (on_hot_spot_p): Make sure we always return a value.
4913 (Flookup_image_map): Remove unused var ix and iy.
4914 (note_mode_line_or_margin_highlight): Remove unused var `image'.
4916 2004-04-27 Eli Zaretskii <eliz@gnu.org>
4918 * msdos.c (init_environment): If one of the TMP... environment
4919 variables is set to a drive letter without a trailing slash,
4922 2004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
4924 * editfns.c (lisp_time_argument): Provide externally.
4926 * fileio.c (Fset_file_times): New function.
4927 (syms_of_fileio): Intern and staticpro it.
4929 2004-04-27 Kim F. Storm <storm@cua.dk>
4931 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
4932 header line strings.
4934 * dispextern.h (struct it): New member use_default_face.
4936 * xdisp.c (Qline_height): New variable.
4937 (syms_of_xdisp): Intern and staticpro it.
4938 (append_space_for_newline): Partially undo 2004-04-25 change;
4939 add default_face_p arg, and restore callers.
4940 Clear it->use_default_face after use.
4941 (x_produce_glyphs): Set default font for ascii char if
4942 it->use_default_font is set. Change line-spacing property to set
4943 just extra line spacing. Handle new line-height property.
4945 2004-04-26 Andreas Schwab <schwab@suse.de>
4947 * print.c (print_object): Print non-ascii characters in bool
4948 vector representation as octal escapes.
4950 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
4951 * print.c (print_object): Use it instead of BITS_PER_CHAR for
4953 * lread.c (read1): Likewise.
4954 * alloc.c (Fmake_bool_vector): Likewise.
4955 * data.c (Faref, Faset): Likewise.
4956 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
4957 (mapcar1): Likewise.
4959 2004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
4961 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
4963 2004-04-26 Miles Bader <miles@gnu.org>
4965 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
4967 2004-04-26 Juanma Barranquero <lektu@terra.es>
4969 * buffer.c (Fpop_to_buffer): Fix docstring.
4971 2004-04-26 Steven Tamm <steventamm@mac.com>
4973 * lread.c (init_lread): Don't display missing lisp directory
4974 warnings with Carbon Emacs because self-contained bundled Emacs
4975 may be built without correct installation path.
4977 2004-04-25 Kim F. Storm <storm@cua.dk>
4979 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
4981 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
4983 * xdisp.c (append_space_for_newline): Rename from append_space.
4984 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
4985 (x_produce_glyphs): Handle line-spacing property on newline char.
4986 If value is t, adjust ascent and descent to fit current row height.
4987 If value is an integer or float, set extra_line_spacing to integer
4988 value, or to float value x current line height.
4990 2004-04-23 Kenichi Handa <handa@m17n.org>
4992 * fontset.c (Finternal_char_font): If POSITION is nil, return
4993 font for displaying CH with the default face.
4995 2004-04-23 Juanma Barranquero <lektu@terra.es>
4997 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
4999 2004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
5001 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
5002 Don't make assumptions about the relative place of i and val.
5003 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
5005 2004-04-21 Kim F. Storm <storm@cua.dk>
5007 * dispextern.h (struct glyph_slice): New struct.
5008 (struct glyph): New member slice.
5009 (GLYPH_SLICE_EQUAL_P): New macro.
5010 (GLYPH_EQUAL_P): Use it.
5011 (struct glyph_string): New member slice.
5012 (struct it_slice): New struct.
5013 (struct it): New member slice, add member to stack too.
5014 New member constrain_row_ascent_descent_p.
5015 (image_ascent): Add prototype.
5017 * dispnew.c (buffer_posn_from_coords): Return full image width
5018 and height even for image slices (posn is relative to full image).
5019 (marginal_area_string): Adjust x0,y0 for image slice.
5021 * image.c (image_ascent): Add slice arg; calculate ascent for
5022 image slice (or full image).
5024 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
5025 (syms_of_keyboard): Defsubr them.
5027 * lisp.h (pos_visible_p): Fix prototype.
5029 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
5030 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
5031 (x_draw_image_foreground, x_draw_image_relief)
5032 (x_draw_image_foreground_1, x_draw_image_glyph_string):
5035 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
5036 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
5037 (x_draw_image_foreground, x_draw_image_relief)
5038 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
5041 * w32term.h (image_ascent): Remove prototype.
5043 * window.c (Fpos_visible_in_window_p): Return pixel position if
5044 PARTIALLY arg is non-nil. Simplify. Doc fix.
5045 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
5046 to return/set vscroll in pixels.
5048 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
5050 * xdisp.c (Qslice): New variable.
5051 (syms_of_xdisp): Intern and staticpro it.
5052 (pos_visible_p): Return pixel position in new x and y args.
5053 (init_iterator): Reset it->slice info.
5054 (handle_display_prop): Parse (slice ...) property.
5055 (push_it, pop_it): Save/restore slice info.
5056 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
5057 force repositioning of tall row if window is vscrolled, as that
5058 would reset vscroll.
5059 (append_space): Set it->constrain_row_ascent_descent_p to avoid
5060 increasing row height if row is non-empty.
5061 (fill_image_glyph_string): Copy slice info.
5062 (take_vertical_position_into_account): Simplify.
5063 (produce_image_glyph): Handle iterator slice info, setup glyph
5064 slice info. Do not force minimum line height.
5065 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
5066 do not increase height (ascent/descent) of non-empty row when
5067 adding normal character glyph; instead reduce glyph ascent/descent
5068 appropriately; if row is higher than current glyph, adjust glyph
5069 descent/ascent to reposition glyph within the existing row.
5070 Likewise, when char is newline, only set ascent/descent if row is
5072 (note_mouse_highlight): Handle hotspots with sliced image.
5074 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
5075 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
5076 (x_draw_image_foreground, x_draw_image_relief)
5077 (x_draw_image_foreground_1, x_draw_image_glyph_string):
5080 * xterm.h (image_ascent): Remove prototype.
5082 2004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5084 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
5086 2004-04-20 John Paul Wallington <jpw@gnu.org>
5088 * fns.c (Fassoc, Feql): Fix indentation.
5090 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
5092 2004-04-19 John Paul Wallington <jpw@gnu.org>
5094 * fns.c (Feql): New function.
5095 (syms_of_fns): Defsubr it.
5097 2004-04-18 Jason Rumney <jasonr@gnu.org>
5099 * w32select.c (Fw32_set_clipboard_data): Get sequence number
5100 after closing the clipboard.
5102 2004-04-16 Luc Teirlinck <teirllm@auburn.edu>
5104 * buffer.c (Fbuffer_base_buffer): Doc fix.
5106 2004-04-17 Kim F. Storm <storm@cua.dk>
5108 * keymap.c (Fkey_description): Add optional PREFIX arg.
5109 Combine prefix with KEYS to make up the full key sequence to describe.
5110 Correlate meta_prefix_char and following (simple) key to describe
5111 as meta modifier. All callers changed.
5112 (describe_map): Rename arg `keys' to `prefix'. Remove local
5113 `elt_prefix' var. Use Fkey_description with prefix instead of
5114 elt_prefix combined with Fsingle_key_description.
5115 (describe_vector): Declare static. Replace arg `elt_prefix' with
5116 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
5117 if !KEYMAP_P. Use Fkey_description with prefix instead of
5118 Fsingle_key_description.
5120 * keymap.h (Fkey_description): Fix prototype.
5121 (describe_vector): Remove prototype.
5123 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
5125 * image.c (PNG_BG_COLOR_SHIFT): Remove.
5126 (png_load): Fix calculation of transparent background color on X
5129 2004-04-16 Juanma Barranquero <lektu@terra.es>
5131 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
5132 not too large before computing how much to scroll.
5134 2004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
5136 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
5138 2004-04-14 Luc Teirlinck <teirllm@auburn.edu>
5140 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
5141 Add hyperlink to Elisp manual to the docstring.
5143 2004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
5145 * callint.c (fix_command): Use XDCR.
5147 2004-04-14 Nick Roberts <nick@nick.uklinux.net>
5149 * window.c (Fget_lru_window): Doc fix.
5151 2004-04-14 Kim F. Storm <storm@cua.dk>
5153 * editfns.c (Fformat): Fix allocation size of precision array.
5155 * dispnew.c (update_window): Only set changed_p if
5156 scrolling_window actually did scroll.
5157 (scrolling_window): Only return 1 if we actually did scroll.
5159 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
5160 height to glyph height when cursor row is not fully visible.
5161 (make_cursor_line_fully_visible): Add FORCE_P arg to return
5162 failure in case row is higher than window. Callers changed.
5163 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
5164 Try to scroll partially visible, higher-than-window cursor row.
5165 (redisplay_window): Always try to scroll partially visible,
5166 higher-than-window cursor row - both initially and again with
5167 centering_position = 0.
5168 Clear desired matrix before retrying with centering_position = 0.
5170 2004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5172 * syntax.c (scan_lists): Simplify backward string scan.
5173 Fix off-by-one boundary check for string and comment fences.
5175 2004-04-13 Joe Buehler <jbuehler@hekimian.com>
5177 * sheap.c, unexcw.c: New files.
5179 2004-04-12 Luc Teirlinck <teirllm@auburn.edu>
5181 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
5182 base buffer has been killed. Correct the error message if the
5183 base buffer does not exist.
5185 2004-04-12 Joe Buehler <jbuehler@hekimian.com>
5187 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
5188 Cygwin itself. Add support for Xaw3d scrollbars.
5190 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
5192 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
5194 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
5195 before Cygwin unexec.
5197 * Makefile.in: Link changes for Cygwin unexec() support.
5199 2004-04-12 Andreas Schwab <schwab@suse.de>
5201 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
5203 2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
5205 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
5206 IGNORE argument equals NAME. Doc fix.
5208 2004-04-11 Masatake YAMATO <jet@gyve.org>
5210 * buffer.c (fix_start_end_in_overlays): Make overlays
5211 empty if they are backwards.
5213 2004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
5215 * xfaces.c (face_color_supported_p): Fix compilation without X11.
5217 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
5219 * doc.c (Fsnarf_documentation): Ignore new file name entries.
5221 2004-04-06 Kim F. Storm <storm@cua.dk>
5223 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
5224 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
5226 * w32term.c (w32_read_socket): Set mouse_face_hidden after
5229 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
5231 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
5234 * indent.c (vmotion): Do not reserve one column for continuation
5235 marks on window frames.
5237 2004-04-04 Eli Zaretskii <eliz@gnu.org>
5239 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
5242 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
5244 * .gdbinit-union: Remove.
5246 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
5247 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
5248 ($nonvalbits): Remove.
5249 ($valmask): Set it by calling xreload to avoid redundancy.
5251 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
5252 (gdb_emacs_intbits): Remove.
5254 2004-03-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5256 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
5258 2004-03-30 Kenichi Handa <handa@m17n.org>
5260 * editfns.c (Fformat): Fix initialization of the array info.
5262 2004-03-30 Kim F. Storm <storm@cua.dk>
5264 * xterm.c (x_mouse_click_focus_ignore_position): New var.
5265 (syms_of_xterm): DEFVAR_BOOL it.
5266 (ignore_next_mouse_click_timeout): New var.
5267 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
5268 Use it to filter mouse clicks following focus event.
5270 2004-03-29 David Ponce <david@dponce.com>
5272 * callint.c (Fcall_interactively): Fix last change.
5274 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
5276 * eval.c (Fcommandp): Simplify.
5278 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
5279 Extend to handle all kinds of functions.
5281 * lisp.h (Finteractive_form): Declare.
5283 * callint.c (Fcall_interactively): Use it.
5285 2004-03-26 Kim F. Storm <storm@cua.dk>
5287 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
5288 to catch errors in calc_pixel_width_or_height during redisplay.
5290 2004-03-26 Masatake YAMATO <jet@gyve.org>
5292 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
5294 * lisp.h (fix_start_end_in_overlays): Likewise.
5296 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
5298 * editfns.c (Ftranspose_regions): Likewise.
5300 2004-03-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5302 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
5304 2004-03-19 Richard M. Stallman <rms@gnu.org>
5306 * s/sol2-6.h: Delete previous change.
5308 2004-03-19 Kim F. Storm <storm@cua.dk>
5310 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
5311 to_charpos corresponds to newline in right fringe. Use local
5312 BUFFER_POS_REACHED_P macro.
5314 2004-03-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5316 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
5317 to compile on non-window system.
5319 2004-03-19 Kim F. Storm <storm@cua.dk>
5321 * dispextern.h (calc_pixel_width_or_height): Add prototype.
5323 * image.c (Qcenter): Move to xdisp.c.
5325 * xdisp.c (Qcenter): Declare here.
5326 (syms_of_xdisp): Intern and staticpro it.
5327 (handle_single_display_prop): Allow space display property on all
5329 (display_mode_line): Set mode_line_p before displaying line.
5330 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
5331 handling. Remove complex cases for fringes and scroll-bars.
5332 Add left, right, and center alignment positions. Add text (area)
5333 width/height. Return width or height for image specs.
5334 (produce_stretch_glyph): Improve handling of :align-to. Is now
5335 relative to left of text area by default, but other base offsets
5336 can be specified -- also for text lines.
5338 * term.c (produce_glyphs): Handle IT_STRETCH.
5339 (produce_stretch_glyph): New function to handle space width and
5340 align-to display properties on non-window systems.
5342 2004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5344 * fileio.c (Fread_file_name): Set completion-ignore-case for
5345 case-insensitive systems.
5347 2004-03-14 Masatake YAMATO <jet@gyve.org>
5349 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
5350 when keymap and cursor are setup.
5352 2004-03-14 Steven Tamm <steventamm@mac.com>
5354 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
5356 2004-03-14 Kim F. Storm <storm@cua.dk>
5358 * dispextern.h (x_find_image_file): Add prototype.
5360 * image.c (x_find_image_file): Make extern.
5362 * xfns.c (x_find_image_file): Remove prototype.
5364 2004-03-13 Eli Zaretskii <eliz@gnu.org>
5366 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5368 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5370 2004-03-12 Richard M. Stallman <rms@gnu.org>
5372 * fns.c (internal_equal): New arg PROPS controls comparing
5373 text properties. All callers changed.
5374 (Fequal_including_properties): New function.
5375 (syms_of_fns): defsubr it.
5377 2004-03-12 Kim F. Storm <storm@cua.dk>
5379 Fix image support on MAC. From YAMAMOTO Mitsuharu.
5381 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
5382 (image_background, image_background_transparent): Fix prototypes.
5384 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
5386 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
5387 (x_query_font, x_find_ccl_program, x_set_window_size)
5388 (x_make_frame_visible, mac_initialize, XCreatePixmap)
5389 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
5390 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
5392 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
5393 (x_query_font, x_find_ccl_program, x_set_window_size)
5394 (x_make_frame_visible, mac_initialize, XCreatePixmap)
5395 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
5396 (mac_draw_line_to_pixmap): Add prototypes.
5398 2004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5400 * macterm.c (XTread_socket): Fix mouse click on tool bar.
5402 2004-03-11 Kim F. Storm <storm@cua.dk>
5404 * dispextern.h: Move image related prototypes from xfns.c section
5405 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
5408 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
5409 Move gtkutil.o to new GTK_OBJ list.
5410 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
5411 (GTK_OBJ) [USE_GTK]: New declaration.
5412 (obj): Add $(GTK_OBJ) to list.
5414 2004-03-11 Steven Tamm <steventamm@mac.com>
5416 * image.c [MAC_OSX]: Include sys/stat.h
5418 * macfns.c (syms_of_macfns): Remove definitions of things now
5421 2004-03-11 Kim F. Storm <storm@cua.dk>
5423 The following changes consolidates the identical/similar image
5424 support code previously found in xfns.c, w32fns.c, and macfns.c
5425 into a new file image.c.
5427 * makefile.w32-in (OBJ1): Add image.o.
5428 ($(BLD)/image.$(O)): Add dependencies.
5430 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
5431 (image.o): Add dependencies.
5433 * image.c: New file with consolidated image support code.
5434 (COLOR_TABLE_SUPPORT): New define to control whether
5435 color table support is available (X only).
5436 (Bitmap_Record): Common name for x_bitmap_record,
5437 w32_bitmap_record, and mac_bitmap_record.
5438 (XImagePtr): Common name for pointer to XImage or equivalent.
5439 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
5440 to XImagePtr on X+MAC, and to HDC on W32.
5441 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
5442 (NO_PIXMAP): Common name for "None" or equivalent.
5443 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
5444 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
5445 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
5446 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
5447 Define with suitable equivalents on W32 and MAC for code sharing.
5448 (XDrawLine): Define on MAC for code sharing.
5449 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
5450 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
5451 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
5452 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5453 (x_reference_bitmap, x_create_bitmap_from_data)
5454 (x_create_bitmap_from_file, x_destroy_bitmap)
5455 (x_destroy_all_bitmaps, x_create_bitmap_mask)
5456 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
5457 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
5458 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
5459 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
5460 (define_image_type, lookup_image_type, valid_image_p)
5461 (image_error, enum image_value_type, struct image_keyword)
5462 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
5463 (make_image, free_image, prepare_image_for_display, image_ascent)
5464 (four_corners_best, image_background, image_background_transparent)
5465 (x_clear_image_1, x_clear_image, x_alloc_image_color)
5466 (make_image_cache, free_image_cache, clear_image_cache)
5467 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
5468 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
5469 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
5470 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
5471 (init_image_func_pointer, image_load_quartz2d)
5472 (struct ct_color, init_color_table, free_color_table)
5473 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
5474 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
5475 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
5476 (x_disable_image, x_build_heuristic_mask)
5477 (XBM support, XPM support, PBM support, PNG support, JPEG support)
5478 (TIFF support, GIF support, Ghostscript support): Consolidate image
5479 code from xfns.c, w32fns.c, and macfns.c.
5480 (syms_of_image): Consolidate image related symbol setup here.
5481 (init_image): Consolidate image related initializations here.
5483 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
5484 and init_image. Remove call to init_xfns.
5486 * macterm.h (struct mac_bitmap_record): Add file member.
5487 Not currently used, but simplifies code sharing.
5489 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
5490 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5491 (x_reference_bitmap, x_create_bitmap_from_data)
5492 (x_create_bitmap_from_file, x_destroy_bitmap)
5493 (x_destroy_all_bitmaps, x_create_bitmap_mask)
5494 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
5495 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
5496 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
5497 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
5498 (define_image_type, lookup_image_type, valid_image_p)
5499 (image_error, enum image_value_type, struct image_keyword)
5500 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
5501 (make_image, free_image, prepare_image_for_display, image_ascent)
5502 (four_corners_best, image_background, image_background_transparent)
5503 (x_clear_image_1, x_clear_image, x_alloc_image_color)
5504 (make_image_cache, free_image_cache, clear_image_cache)
5505 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
5506 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
5507 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
5508 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
5509 (init_image_func_pointer, image_load_quartz2d)
5510 (struct ct_color, init_color_table, free_color_table)
5511 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
5512 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
5513 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
5514 (x_disable_image, x_build_heuristic_mask)
5515 (XBM support, XPM support, PBM support, PNG support, JPEG support)
5516 (TIFF support, GIF support, Ghostscript support): Merge with image
5517 code from xfns.c and macfns.c into image.c.
5518 (syms_of_xfns): Move image related symbols to image.c.
5519 (init_external_image_libraries, init_xfns): Remove; initialization
5520 moved to init_image in image.c.
5522 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
5523 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5524 (x_reference_bitmap, x_create_bitmap_from_data)
5525 (x_create_bitmap_from_file, x_destroy_bitmap)
5526 (x_destroy_all_bitmaps, x_create_bitmap_mask)
5527 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
5528 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
5529 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
5530 (define_image_type, lookup_image_type, valid_image_p)
5531 (image_error, enum image_value_type, struct image_keyword)
5532 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
5533 (make_image, free_image, prepare_image_for_display, image_ascent)
5534 (four_corners_best, image_background, image_background_transparent)
5535 (x_clear_image_1, x_clear_image, x_alloc_image_color)
5536 (make_image_cache, free_image_cache, clear_image_cache)
5537 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
5538 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
5539 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
5540 (struct ct_color, init_color_table, free_color_table)
5541 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
5542 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
5543 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
5544 (x_disable_image, x_build_heuristic_mask)
5545 (XBM support, XPM support, PBM support, PNG support, JPEG support)
5546 (TIFF support, GIF support, Ghostscript support): Merge with image
5547 code from xfns.c and macfns.c into image.c.
5548 (syms_of_xfns): Move image related symbols to image.c.
5549 (init_external_image_libraries, init_xfns): Remove; initialization
5550 moved to init_image in image.c.
5552 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
5553 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5554 (x_reference_bitmap, x_create_bitmap_from_data)
5555 (x_create_bitmap_from_file, x_destroy_bitmap)
5556 (x_destroy_all_bitmaps, x_create_bitmap_mask)
5557 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
5558 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
5559 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
5560 (define_image_type, lookup_image_type, valid_image_p)
5561 (image_error, enum image_value_type, struct image_keyword)
5562 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
5563 (make_image, free_image, prepare_image_for_display, image_ascent)
5564 (four_corners_best, image_background, image_background_transparent)
5565 (x_clear_image_1, x_clear_image, x_alloc_image_color)
5566 (make_image_cache, free_image_cache, clear_image_cache)
5567 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
5568 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
5569 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
5570 (struct ct_color, init_color_table, free_color_table)
5571 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
5572 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
5573 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
5574 (x_disable_image, x_build_heuristic_mask)
5575 (XBM support, XPM support, PBM support, PNG support, JPEG support)
5576 (TIFF support, GIF support, Ghostscript support): Merge with
5577 w32fns.c and macfns.c image code into image.c.
5578 (syms_of_xfns): Move image related symbols to image.c.
5579 (init_xfns): Remove; initialization moved to init_image in image.c.
5581 * lisp.h (syms_of_image, init_image): Add protoypes.
5582 (init_xfns): Remove prototype.
5584 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5585 (x_reference_bitmap, x_create_bitmap_from_data)
5586 (x_create_bitmap_from_file, x_destroy_bitmap)
5587 (x_create_bitmap_mask): Move prototypes from dispextern.h.
5588 (gamma_correct) [MAC_OS]: Add prototype.
5590 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5591 (x_reference_bitmap, x_create_bitmap_from_data)
5592 (x_create_bitmap_from_file, x_destroy_bitmap)
5593 (x_create_bitmap_mask): Move prototypes to dispextern.h.
5595 2004-03-09 Kenichi Handa <handa@etlken2>
5597 * coding.c (decode_coding_emacs_mule): Handle insufficent source
5600 2004-03-04 Richard M. Stallman <rms@gnu.org>
5602 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
5604 * window.c (Fdisplay_buffer): Doc fix.
5606 * buffer.c (Fpop_to_buffer): Doc fix.
5608 2004-03-03 Kim F. Storm <storm@cua.dk>
5610 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
5612 2004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
5614 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
5616 2004-03-02 Richard M. Stallman <rms@gnu.org>
5618 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
5620 2004-03-02 Kenichi Handa <handa@m17n.org>
5622 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
5624 2004-03-02 Kim F. Storm <storm@cua.dk>
5626 * window.h (struct window): New member overlay_arrow_bitmap.
5628 * window.c (make_window): Initialize overlay_arrow_bitmap.
5630 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
5631 implement and integrate multiple overlay arrows with redisplay.
5632 (syms_of_xdisp): DEFVAR_LISP and initialize it.
5633 (last_arrow_position, last_arrow_string): Replace by properties.
5634 (Qlast_arrow_position, Qlast_arrow_string)
5635 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
5636 (syms_of_xdisp): Intern and staticpro them.
5637 (overlay_arrow_string_or_property, update_overlay_arrows)
5638 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
5639 (overlay_arrow_at_row): New functions for multiple overlay arrows.
5640 (redisplay_internal): Use them instead of directly accessing
5641 Voverlay_arrow_position etc. for multiple overlay arrows.
5642 (mark_window_display_accurate): Use update_overlay_arrows.
5643 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
5644 (try_window_id): Use overlay_arrows_changed_p.
5645 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
5646 (display_line): Use overlay_arrow_at_row to check multiple
5647 overlay arrows, and get relevant overlay-arrow-string and
5648 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
5649 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
5650 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
5652 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
5653 (update_window_fringes): Remove unused code.
5655 2004-03-01 Jason Rumney <jasonr@gnu.org>
5657 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
5659 2004-03-01 Juanma Barranquero <lektu@terra.es>
5661 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
5663 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
5665 2004-03-01 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5667 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
5668 how many colors can be displayed.
5670 2004-03-01 Kenichi Handa <handa@m17n.org>
5672 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
5675 2004-02-28 Kim F. Storm <storm@cua.dk>
5677 * dispnew.c (update_window): Update header line also if there are
5678 no other changes in window (move code after set_cursor label).
5680 * lisp.h (mark_window_display_accurate): Remove prototype.
5682 * window.c (window_loop, Fforce_window_update): Force mode line
5683 updates by setting prevent_redisplay_optimizations_p and
5686 2004-02-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5688 * xfns.c (x_window): Fix indentation.
5690 * xterm.c (x_calc_absolute_position): Call x_real_positions
5691 to get WM window sizes and use those to calculate position.
5692 (x_set_offset): Remove code commented out.
5694 2004-02-28 Miles Bader <miles@gnu.org>
5696 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
5698 2004-02-28 Kim F. Storm <storm@cua.dk>
5700 * keyboard.c (kbd_buffer_store_event_hold): New function to store
5701 an event into kbd fifo, but with special handling of quit event;
5702 a quit event is saved for later, and further events are discarded
5703 until the saved quit event has been processed.
5704 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
5705 (gen_help_event): Store help event in kbd fifo.
5706 (NREAD_INPUT_EVENTS): Remove.
5707 (read_avail_input): Adapt to new read_socket_hook interface.
5708 Remove allocation and initialization of local input_event buffer,
5709 as read_socket_hook stores events directly in fifo. Allocate and
5710 initialize local hold_quit event to handle postponed quit event
5711 (and store it if set by kbd_buffer_store_event_hold).
5713 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
5714 (gen_help_event): Fix prototype.
5716 * macterm.c (XTread_socket): Remove bufp_r and
5717 numcharsp args. Add hold_quit arg.
5718 Rework to use just one, local, inev input_event. Store inev
5719 directly in fifo using kbd_buffer_store_event_hold.
5721 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
5722 (read_input_waiting): Adapt to new read_socket_hook interface.
5723 Remove allocation and initialization of local input_event buffer,
5724 as read_socket_hook stores events directly in fifo. Allocate and
5725 initialize local hold_quit event to handle postponed quit event
5726 (and store it if set by kbd_buffer_store_event_hold).
5728 * term.c (read_socket_hook): Fix arg list.
5730 * termhooks.h (read_socket_hook): Fix prototype.
5732 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
5733 numcharsp args. Add hold_quit arg.
5734 Rework to use just one, local, inev input_event. Store inev
5735 directly in fifo using kbd_buffer_store_event_hold.
5737 * w32inevt.h (w32_console_mouse_position): Fix prototype.
5739 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
5740 Add hold_quit arg. Rework to use just one, local, inev
5741 input_event. Store inev directly in fifo using
5742 kbd_buffer_store_event_hold. Update count in one place.
5743 Postpone call to gen_help_event until inev is stored; use new
5744 local do_help for this.
5745 Remove local emacs_event in handing of ButtonPress event; just use
5746 inev instead (so no reason to copy it later).
5748 * xsmfns.c (x_session_check_input): Remove numchars arg.
5750 * xterm.c (x_focus_changed, x_detect_focus_change):
5751 Remove numchars arg. Always store event into bufp arg.
5752 Return nothing. Callers changed accordingly.
5753 (glyph_rect): Simplify.
5754 (STORE_KEYSYM_FOR_DEBUG): New macro.
5755 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
5756 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
5757 (current_hold_quit) [USE_GTK]: Add.
5758 (event_handler_gdk): Adapt to new handle_one_xevent.
5759 (handle_one_xevent): Remove bufp_r and numcharsp args.
5760 Add hold_quit arg. Rework to use just one, local, inev
5761 input_event. Store inev directly in fifo using
5762 kbd_buffer_store_event_hold. Update count in one place.
5763 Postpone call to gen_help_event until inev is stored; use new
5764 local do_help for this.
5765 Simplify handling of keysyms (consolidate common code). Fix bug
5766 where count was updated with nchars instead of nbytes.
5767 Remove local emacs_event in handing of ButtonPress event; just use
5768 inev instead (so no reason to copy it later).
5769 Remove `out' label. Rename label `ret' to `done'; add various
5770 `goto done' to clarify code flow in deeply nested blocks.
5771 (x_dispatch_event): Simplify as handle_one_xevent now calls
5772 kbd_buffer_store_event itself.
5773 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
5774 arg. Call handle_one_xevent with new arglist. Store event from
5775 x_session_check_input in fifo.
5776 [USE_GTK]: Setup current_hold_quit.
5777 Decrement handling_signal before unblocking input.
5778 (x_initialize) [USE_GTK]: Initialize current_count.
5780 * xterm.h (x_session_check_input): Fix prototype.
5782 2004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5784 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
5786 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
5789 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
5791 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
5792 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
5793 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
5794 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
5795 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
5796 (Bitmap): Remove typedef.
5797 (Pixmap): Change int to GWorldPtr.
5799 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
5801 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
5802 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
5803 New #define to extract 16-bit depth color components from unsigned
5804 long representation.
5805 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
5806 colors used for masks.
5807 (struct mac_display_info): Add color_p. Remove n_cbits.
5809 * macfns.c: Include sys/types.h and sys/stat.h.
5810 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
5811 Include QuickTime/QuickTime.h.
5812 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
5813 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
5814 functions defined in macterm.c.
5815 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
5816 (ZPixmap): New #define for compatibility with xfns.c.
5817 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
5818 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
5819 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
5821 (four_corners_best, x_create_x_image_and_pixmap)
5822 (x_destroy_x_image, unwind_create_frame, x_disable_image)
5823 (x_edge_detection, init_color_table, colors_in_color_table)
5824 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
5825 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
5826 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
5827 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
5828 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
5830 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
5831 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
5832 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
5833 (x_set_cursor_type, Fxw_color_values, valid_image_p)
5834 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
5835 (x_alloc_image_color, clear_image_cache, lookup_image)
5836 (x_find_image_file, xbm_read_bitmap_file_data)
5837 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
5838 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
5839 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
5840 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
5841 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
5842 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
5843 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
5845 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
5846 #if 0. Free white_relief.gc and black_relief.gc.
5847 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
5848 New functions (from xfns.c).
5849 (Fx_create_frame): Record unwind_create_frame.
5850 (Fxw_display_color_p): Use dpyinfo->color_p.
5851 (Fx_display_grayscale_p, Fx_display_planes): Don't use
5853 (Fx_display_color_cells): Use dpyinfo->n_planes;
5854 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
5855 (Qheuristic, cross_disabled_images, emboss_matrix)
5856 (laplace_matrix): New variables (from xfns.c).
5857 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
5858 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
5859 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
5860 (image_background_transparent): New function (from xfns.c).
5861 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
5862 (image_load_quicktime): Add declaration.
5863 [MAC_OSX] (image_load_quartz2d): Likewise.
5864 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
5865 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
5866 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
5867 (xbm_load_image_from_file, x_laplace_read_row)
5868 (x_laplace_write_row, pbm_read_file): Remove functions.
5869 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
5870 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
5871 (colors_in_color_table): Sync with xfns.c (although not used).
5872 (lookup_rgb_color): Don't lookup color table. Just do gamma
5874 (COLOR_INTENSITY): New #define (from xfns.c).
5875 (x_disable_image): New function (from xfns.c).
5876 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
5877 (x_build_heuristic_mask): Sync with xfns.c.
5878 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
5879 (HAVE_PBM): Remove #ifdef.
5880 (pbm_load): Sync with xfns.c. Set img->width and img->height
5881 before IMAGE_BACKGROUND.
5882 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
5883 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
5884 Don't enclose with #if HAVE_PNG.
5885 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
5886 symbol _CGImageCreateWithPNGDataProvider is defined.
5887 Otherwise use image_load_quicktime.
5888 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
5889 [HAVE_PNG] (png_load): Sync with xfns.c.
5890 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
5891 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
5893 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
5894 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
5895 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
5896 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
5897 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
5898 (tiff_image_p, tiff_load): Don't enclose declarations with #if
5900 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
5901 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
5902 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
5903 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
5904 New functions (from xfns.c).
5905 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
5906 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
5907 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
5908 Don't enclose with #if HAVE_GIF.
5909 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
5910 animated gif. Otherwise use image_load_quicktime.
5911 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
5912 gif_DrawText to avoid conflict with QuickdrawText.h.
5913 [HAVE_GIF] (gif_load): Sync with xfns.c.
5914 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
5915 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
5916 Ghostscript is not supported yet).
5917 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
5918 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
5919 cross_disabled_images (from xfns.c). Remove #if 0 for supported
5920 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
5921 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
5922 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
5923 HAVE_PNG. Call EnterMovies to support animated gifs.
5924 Call init_image_func_pointer to bind a symbol
5925 _CGImageCreateWithPNGDataProvider if it is defined.
5927 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
5928 (x_draw_bar_cursor): Sync declaration with xterm.c.
5929 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
5930 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
5932 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
5933 (mac_draw_line_to_pixmap, XCreatePixmap)
5934 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
5935 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
5937 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
5938 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
5939 Cast bits to char *.
5940 (reflect_byte): New function (from w32fns.c).
5941 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
5942 due to byte alignment.
5943 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
5944 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
5945 (XSetForeground): Remove static (now used in macfns.c).
5946 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
5947 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
5948 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
5949 (x_draw_glyph_string_box, x_draw_image_foreground)
5950 (x_draw_image_foreground_1, x_draw_image_glyph_string)
5951 (x_draw_stretch_glyph_string, x_draw_glyph_string)
5952 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
5954 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
5955 than the xterm.c version when a strictly horizontal or vertical
5957 (XTset_terminal_window): Add static.
5958 (x_make_frame_visible): Add UNBLOCK_INPUT.
5959 (x_free_frame_resources): New funcion (from xterm.c).
5960 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
5961 occurs in tool bar area.
5962 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
5963 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
5964 Initialize image cache.
5965 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
5966 Enclose unused functions with #if 0.
5967 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
5968 (decode_mac_font_name): New function to apply code conversions
5969 from a mac font name to an XLFD font name according to its script code.
5970 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
5971 font name to a mac font name according to REGISTRY and ENCODING fields.
5972 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
5973 whose name starts with `.'.
5974 (init_font_name_table): Use decode_mac_font_name. Add both
5975 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
5976 of a font is smJapanese.
5977 (mac_do_list_fonts): New function to list fonts that match a given
5979 (x_list_fonts, XLoadQueryFont): Use it.
5980 (XLoadQueryFont): Set rbearing field for each variable width
5981 character to avoid needless redraw.
5982 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
5984 2004-02-26 Kim F. Storm <storm@cua.dk>
5986 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
5987 as read_socket_hook handler on X aborts if buffer is too small
5988 and W32 handler doesn't always check buffer limit.
5990 * xdisp.c (handle_single_display_prop): Handle left-fringe and
5991 right-fringe similar to a display margin image. Specifically,
5992 the characters having the fringe prop are no longer shown, and
5993 we use IT_IMAGE/next_element_from_image with image_id = -1 to
5994 do this. Set fringe bitmap face_id in it->face_id.
5995 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
5996 still realize it->face (i.e. the fringe bitmap face).
5998 2004-02-25 Miles Bader <miles@gnu.org>
6000 * xdisp.c (check_it): Check string/string_pos consistency.
6001 (init_iterator): Initialize string-related fields properly.
6003 2004-02-11 Miles Bader <miles@gnu.org>
6005 * xdisp.c (produce_image_glyph): Force negative descents to zero.
6007 2004-02-10 Miles Bader <miles@gnu.org>
6009 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
6010 BLOCK_INPUT can be nested, so it doesn't make much sense.
6012 2004-02-24 Michael Mauger <mmaug@yahoo.com>
6014 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
6015 (xbm_read_bitmap_data): Use unsigned char for image data.
6017 2004-02-23 Luc Teirlinck <teirllm@auburn.edu>
6019 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
6021 2004-02-22 Jason Rumney <jasonr@gnu.org>
6023 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
6024 correctly over other bitmaps.
6026 2004-02-21 Eli Zaretskii <eliz@gnu.org>
6028 * emacs.c (USAGE1): Split into two halves.
6029 (USAGE2): Second half of the old USAGE1.
6030 (USAGE3): Rename from USAGE2.
6031 (USAGE4): Rename from USAGE3.
6033 2004-02-21 Juri Linkov <juri@jurta.org>
6035 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
6036 Fix --multibyte. Move --help, --version to USAGE2. Add alias
6037 --file. Fix -f, -l. Sort options. Untabify.
6038 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
6040 2004-02-19 Luc Teirlinck <teirllm@auburn.edu>
6042 * category.c (Fdefine_category, Fcategory_docstring)
6043 (Fget_unused_category, Fset_category_table)
6044 (Fcategory_set_mnemonics): Doc fixes.
6046 2004-02-20 Kim F. Storm <storm@cua.dk>
6048 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
6049 The following changes are relative to the 2004-01-21 revision.
6050 (NREAD_INPUT_EVENTS): Define as max number of input events to read
6051 in one call to read_socket_hook. Value is 8.
6052 (read_avail_input): Separate and rework handling of read_socket_hook
6053 and non-read_socket_hook cases. Use smaller input_event buffer
6054 in read_socket_hook case, and repeat if full buffer is read.
6055 Use new local variable 'discard' to skip input after C-g.
6056 In non-read_socket_hook case, just use a single input_event, and
6057 call kbd_buffer_store_event on the fly for each character.
6059 2004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
6061 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
6062 Remove unused `gu' alternative.
6064 2004-02-19 Andreas Schwab <schwab@suse.de>
6066 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
6069 2004-02-18 Kim F. Storm <storm@cua.dk>
6071 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
6074 2004-02-17 Kim F. Storm <storm@cua.dk>
6076 * xdisp.c (fast_find_position): Fix return value of new version;
6077 it was inverted compared to the 21.1 version.
6078 (get_window_cursor_type): Don't look at glyph if NULL.
6079 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
6081 * keyboard.c: Rework previous change; it didn't consider that the
6082 buf array was allocated on the stack.
6083 (prev_read): Remove variable.
6084 (read_avail_input_buf): New static event buffer array.
6085 (in_read_avail_input): New static variable to handle re-entrancy.
6086 (read_avail_input): Change buf to pinter to read_avail_input_buf.
6087 Use in_read_avail_input to handle re-entrance; when re-entered,
6088 fully initialize and use tmp_buf array instead of read_avail_input_buf.
6089 Do not initialize read_avail_input_buf in full here; instead assume it
6090 is always cleared on entry. To ensure that, we clear (just) the
6091 entries that were used before we return.
6092 (init_keyboard): Initialize read_avail_input_buf here.
6094 2004-02-16 Jesper Harder <harder@ifa.au.dk>
6096 * cmds.c (Fend_of_line): Doc fix.
6098 2004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
6100 * keyboard.c (prev_read): New static variable.
6101 (read_avail_input): Use it to zero out only those slots in buf[]
6102 that were used last time we were called.
6104 2004-02-16 Eli Zaretskii <eliz@gnu.org>
6106 * Makefile.in (obj): Move fringe.o from here...
6107 (XOBJ, MAC_OBJ): ...to here.
6109 2004-02-16 Stephen Eglen <stephen@gnu.org>
6111 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
6113 2004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
6115 * data.c (Fbyteorder):
6116 * fringe.c (Fdefine_fringe_bitmap):
6117 * xdisp.c (handle_single_display_prop):
6118 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
6120 2004-02-16 Jason Rumney <jasonr@gnu.org>
6122 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
6124 2004-02-15 Steven Tamm <steventamm@mac.com>
6126 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
6127 controlling emulation of a three button mouse with option and
6129 (Qreverse, mac_get_enumlated_btn): Handle the emulation
6130 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
6132 2004-02-15 Kim F. Storm <storm@cua.dk>
6134 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
6136 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
6137 Perform byte-swapping.
6139 2004-02-14 Kim F. Storm <storm@cua.dk>
6141 * dispextern.h (struct draw_fringe_bitmap_params): Change member
6142 bits from char to short to facilitate wider bitmaps.
6143 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
6146 * fringe.c (struct fringe_bitmap): Change member bits from char to
6147 short to facilitate 16 bits wide bitmaps. Modify all standard
6148 bitmaps accordingly.
6149 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
6150 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
6151 (draw_fringe_bitmap): Ditto.
6152 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
6153 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
6154 handle up to 16 bits wide bitmaps.
6155 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
6156 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
6158 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
6159 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
6160 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
6162 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
6163 so it is no longer necessary to expand them here.
6165 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
6167 2004-02-12 Kim F. Storm <storm@cua.dk>
6169 * window.c (Fwindow_fringes): Doc fix.
6171 2004-02-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6173 * xselect.c (x_get_foreign_selection): Add new optional parameter
6175 (Fx_get_selection_internal): Ditto, pass time_stamp to
6176 x_get_foreign_selection.
6178 * data.c (Fbyteorder): New function.
6180 2004-02-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6182 * atimer.c: Move include stdio.h to same place as in other files.
6184 * region-cache.c: Ditto.
6190 2004-02-09 Sam Steingold <sds@gnu.org>
6192 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
6194 2004-02-09 Kim F. Storm <storm@cua.dk>
6196 * fringe.c: New file. Move original fringe related declarations
6197 and code from dispextern.h and xdisp.c here.
6198 Rework code to support user defined fringe bitmaps, redefining
6199 standard bitmaps, ability to overlay user defined bitmap with
6200 overlay arrow bitmap, and add faces to bitmaps.
6201 (Voverflow_newline_into_fringe): Declare here.
6202 (enum fringe_bitmap_align): New enum.
6203 (..._bits): All bitmaps are now defined without bitswapping; that
6204 is now done in init_fringe_once (if necessary).
6205 (standard_bitmaps): New array with specifications for the
6206 standard fringe bitmaps.
6207 (fringe_faces): New array.
6208 (valid_fringe_bitmap_id_p): New function.
6209 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
6210 (draw_fringe_bitmap): New function which draws fringe bitmap,
6211 possibly overlaying bitmap with cursor in right fringe or the
6212 overlay arrow in the left fringe.
6213 (update_window_fringes): Do not handle overlay arrow here.
6214 Compare and copy fringe bitmap faces.
6215 (init_fringe_bitmap): New function.
6216 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
6217 define and destroy user defined fringe bitmaps.
6218 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
6219 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
6220 (syms_of_fringe): New function. Defsubr new DEFUNs.
6221 DEFVAR_LISP Voverflow_newline_into_fringe.
6222 (init_fringe_once, init_fringe): New functions.
6223 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
6225 * Makefile.in (obj): Add fringe.o.
6226 (fringe.o): New dependencies.
6228 * dispextern.h (FRINGE_ID_BITS): New definition for number of
6229 bits allocated to hold a fringe number. Increase number of bits
6230 from 4 to 8 to allow user defined fringe bitmaps.
6231 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
6232 left_user_fringe_face_id, right_user_fringe_bitmap,
6233 right_user_fringe_face_id.
6234 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
6235 Move to new file fringe.c.
6236 (MAX_FRINGE_BITMAPS): Define here.
6237 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
6238 and overlay_p. Change member which to int.
6239 (struct redisplay_interface): New members define_fringe_bitmap
6240 and destroy_fringe_bitmap.
6241 (valid_fringe_bitmap_id_p): Add prototype.
6242 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
6244 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
6246 (update_frame): Do flush_display if force_flush_display_p to
6247 ensure display (specifically fringes) are updated in a timely
6248 manner when resizing the frame by dragging the mouse.
6249 (update_window_line): Update row if overlay arrow changed.
6250 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
6251 or overlay arrow changed.
6253 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
6254 syms_of_fringe, and init_fringe.
6256 * frame.h (struct frame): New member force_flush_display_p.
6258 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
6261 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
6262 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
6263 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
6264 Use cursor color for displaying cursor in fringe.
6265 (x_redisplay_interface): Add null handlers for
6266 define_fringe_bitmap and destroy_fringe_bitmap functions.
6268 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
6269 xterm.c to handle overlayed fringe bitmaps and to use cursor color
6270 for displaying cursor in fringe.
6271 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
6272 specific functions to define and destroy fringe bitmaps in fringe_bmp.
6273 (w32_redisplay_interface): Add them to redisplay_interface.
6274 (w32_term_init): Call w32_init_fringe instead of explicitly
6275 defining fringe bitmaps in fringe_bmp array.
6276 (x_delete_display): Call w32_reset_fringes instead of explicitly
6277 destroying fringe bitmaps in fringe_bmp array.
6279 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
6280 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
6281 (continued_bits, continuation_bits, ov_bits, first_line_bits)
6282 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
6283 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
6284 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
6285 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
6286 Move fringe handling vars and code to new file fringe.c.
6287 (handle_display_prop): Handle left-fringe and right-fringe
6288 display properties; store user fringe bitmaps in iterator.
6289 (move_it_in_display_line_to): Handle cursor in fringe at eob.
6290 (clear_garbaged_frames): Set force_flush_display_p if resized.
6291 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
6292 (display_line): Handle cursor in fringe at eob.
6293 (display_line): Set row user fringe bitmaps from iterator.
6295 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
6296 Use cursor color for displaying cursor in fringe.
6297 (x_redisplay_interface): Add null handlers for
6298 define_fringe_bitmap and destroy_fringe_bitmap functions.
6300 2004-02-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6302 * macfns.c (Fx_change_window_property): Make doc string and
6303 parameters same as for X version.
6305 * w32fns.c (Fx_change_window_property): Ditto.
6307 2004-02-07 Kim F. Storm <storm@cua.dk>
6309 * xdisp.c (hscroll_window_tree): Position cursor near to right
6310 margin in hscrolled window when jumping to end of line (rather
6311 than centering cursor).
6313 * process.c (wait_reading_process_input): Don't do adaptive read
6314 buffering if waiting for a specific process.
6316 2004-02-05 Luc Teirlinck <teirllm@auburn.edu>
6318 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
6319 (Fread_minibuffer, Feval_minibuffer)
6320 (Fread_string, Fread_no_blanks_input)
6321 (Fcompleting_read): Doc fixes.
6322 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
6323 completion-regexp-list. Define Qcase_fold_search and staticpro it.
6324 (read_minibuf): Fix initial comment.
6325 (Ftry_completion, Fall_completions, Ftest_completion): Bind
6326 case-fold-search to the value of completion-ignore-case when
6327 checking completion-regexp-list.
6328 (Fdisplay_completion_list): Make it handle arguments that are
6331 2004-02-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6333 * xterm.h: Add declaration of free_frame_menubar.
6335 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
6336 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
6337 (Fx_change_window_property): Add declaration of parameters type and
6338 format. Remove unused variable cons.
6340 * xselect.c: Include stdio,h.
6342 2004-02-05 Kenichi Handa <handa@m17n.org>
6344 * fns.c (Fset_char_table_range): Fix previous change.
6346 * buffer.c (Fset_buffer_multibyte): Fix docstring.
6348 2004-02-04 Luc Teirlinck <teirllm@auburn.edu>
6350 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
6352 2004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
6354 * keymap.c (Vmouse_events): Rename from Vmenu_events.
6355 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
6357 2004-02-04 Kenichi Handa <handa@m17n.org>
6359 * fns.c (Fset_char_table_range): Handle charsets ascii,
6360 eight-bit-control, and eight-bit-graphic correctly.
6362 2004-02-03 Jason Rumney <jasonr@gnu.org>
6364 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
6366 * w32fns.c (x_to_w32_font): Likewise.
6368 2004-02-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6370 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
6371 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
6373 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
6376 * xselect.c: Include termhooks.h and X11/Xproto.h
6377 (x_check_property_data, x_fill_property_data)
6378 (x_property_data_to_lisp, mouse_position_for_drop)
6379 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
6380 (Fx_send_client_event): Move here from xfns.c.
6381 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
6383 * xfns.c (x-send-client-message): Move to xselect.c
6384 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
6386 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
6387 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
6388 if vector_ret_p is true.
6389 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
6391 2004-02-02 Eli Zaretskii <eliz@gnu.org>
6393 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
6394 basename of FILE relative to it, not FILE itself.
6396 2004-02-02 Kenichi Handa <handa@m17n.org>
6398 * coding.c (coding_restore_composition): Check invalid
6399 composition data more rigidly.
6401 2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
6403 * fileio.c (Fread_file_name_internal): Correctly handle the case
6404 where insert-default-directory is nil.
6405 (Fread_file_name): Always return an empty string if the user exits
6406 with an empty minibuffer. Adapt the docstring accordingly.
6407 (syms_of_fileio): Adapt the docstring of insert-default-directory
6408 to the change in Fread_file_name.
6410 2004-01-29 Eli Zaretskii <eliz@gnu.org>
6412 * alloca.c [!alloca]: Fix the prototype for xfree.
6414 2004-01-29 Kenichi Handa <handa@m17n.org>
6416 * fns.c (string_char_to_byte): Optimize for ASCII only string.
6417 (string_byte_to_char): Likewise.
6419 2004-01-28 Peter Runestig <peter@runestig.com>
6421 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
6423 2004-01-27 Steven Tamm <steventamm@mac.com>
6425 * unexmacosx.c (unexec_copy): Do not copy more than was
6426 requested to prevent overwriting during unexec.
6428 2004-01-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6430 * process.c (sigchld_handler): Add comment about not calling malloc.
6432 * process.h: Add extern to synch_process_termsig.
6434 2004-01-27 Steven Tamm <steventamm@mac.com>
6436 * macterm.c (make_mac_frame, make_mac_terminal_frame):
6437 Move setting of scroll bars from make_mac_frame to
6438 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
6440 2004-01-26 Richard M. Stallman <rms@gnu.org>
6442 * search.c (Freplace_match): Handle nonexistent
6443 back-references properly.
6445 2004-01-03 Richard M. Stallman <rms@gnu.org>
6447 * window.c (decode_any_window): New function.
6448 (Fwindow_height, Fwindow_width, Fwindow_edges)
6449 (Fwindow_pixel_edges, Fwindow_inside_edges)
6450 (Fwindow_inside_pixel_edges): Use decode_any_window.
6452 2004-01-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6454 * process.h: synch_process_termsig new variable.
6456 * callproc.c: Define synch_process_termsig.
6457 (Fcall_process): Initiate synch_process_termsig to zero and
6458 check if non-zero and get signal name after subprocess has ended.
6460 * process.c (sigchld_handler): Set synch_process_termsig
6461 if terminated by a signal. synch_process_death setting removed.
6463 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
6465 2004-01-26 Andreas Schwab <schwab@suse.de>
6467 * print.c (print_preprocess): Declare size as EMACS_INT to not
6469 (print_object): Likewise.
6470 * alloc.c (Fpurecopy): Likewise.
6472 2004-01-25 Luc Teirlinck <teirllm@auburn.edu>
6474 * window.c (Fwindow_minibuffer_p): Doc fix.
6476 2004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
6478 * editfns.c (Fformat): Make both passes accept the same set of flags.
6480 2004-01-23 Kenichi Handa <handa@m17n.org>
6482 * fns.c (Fmd5): If OBJECT is a buffer different from the current
6483 one, set buffer to OBJECT temporarily.
6485 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
6487 * keyboard.c (kbd_buffer_gcpro): Remove.
6488 (kbd_buffer_store_event, clear_event, Fdiscard_input)
6489 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
6490 Don't initialize and/or maintain the variable any more. It was made
6491 redundant by my commit of 2003-06-15.
6493 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
6495 2004-01-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6497 * lisp.h: Add undef DECL_ALIGN.
6499 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
6501 * process.c (wait_reading_process_input) [SYNC_INPUT]:
6502 Check interrupt_input_pending explicitly.
6504 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
6506 * keyboard.c (handle_async_input): New fun,
6507 extracted from input_available_signal.
6508 (input_available_signal, reinvoke_input_signal): Use it.
6510 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
6512 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
6514 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
6515 manipulation macros for when tags are in the lower bits.
6516 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
6517 (DECL_ALIGN): New macro.
6520 * lisp.h [ENABLE_CHECKING]: Don't force union type.
6522 * s/darwin.h (__attribute__): Remove outdated workaround.
6524 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
6526 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
6527 Don't check range of malloc address.
6528 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
6530 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
6532 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
6534 2004-01-19 Kenichi Handa <handa@m17n.org>
6536 * fontset.c (fontset_font_pattern): Fix previous change.
6538 2004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
6540 * xdisp.c (Voverflow_newline_into_fringe)
6541 (move_it_in_display_line_to, redisplay_internal)
6542 (update_window_fringes, redisplay_window, display_line, window):
6543 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
6544 that it compiles without a window-system.
6545 * dispnew.c (direct_output_for_insert, update_window): Likewise.
6547 2004-01-16 Kim F. Storm <storm@cua.dk>
6549 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
6551 * buffer.c (init_buffer_once): Set buffer_defaults and
6552 buffer_local_flags for indicate_buffer_boundaries.
6553 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
6554 default- variable for it.
6556 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
6557 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
6558 New members exact_window_width_line_p and cursor_in_fringe_p for
6559 overflowing newlines into right fringe.
6560 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
6561 and indicate_bottom_line_p for buffer boundaries and scrolling.
6562 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
6563 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
6564 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
6565 and HOLLOW_SQUARE_BITMAP.
6566 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
6569 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
6570 instead of related indicator fields.
6571 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
6572 (direct_output_for_insert): Handle exact width lines like
6573 contined lines. Call update_window_fringes.
6574 (update_window): Call update_window_fringes.
6575 (scrolling_window): Don't skip desired rows with changed bitmaps.
6576 Check if fringe bitmaps changes when assigning scrolled rows.
6578 * xdisp.c (Voverflow_newline_into_fringe): New variable.
6579 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
6580 (move_it_in_display_line_to): Overflow newline into fringe for
6581 rows that are exactly as wide as the window.
6582 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
6583 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
6584 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
6585 (fringe_bitmaps): Add new bitmaps.
6586 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
6587 Select proper bitmap for cursor in fringe when appropriate.
6588 Handle alignment of bitmap to top or bottom of row.
6589 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
6590 done by update_window_fringes.
6591 (update_window_fringes, draw_window_fringes): New functions.
6592 (redisplay_internal): Call update_window_fringes in case only
6593 cursor row is updated.
6594 (redisplay_window): Call update_window_fringes.
6595 Explicitly call draw_window_fringes if redisplay was done using
6596 the current matrix or the overlay arrow is in the window.
6597 (try_window_reusing_current_matrix): Mark scrolled rows for
6598 fringe update (to update buffer-boundaries / scrolling icons).
6599 (find_last_unchanged_at_beg_row): Handle exact width lines line
6601 (display_line): Overflow newline into fringe for rows that are
6602 exactly as wide as the window. Don't append space for newline
6604 (notice_overwritten_cursor): Explicitly clear cursor bitmap
6605 in fringe as if it had been overwritten.
6606 (erase_phys_cursor): Erase cursor bitmap in fringe.
6607 (syms_of_xdisp): Mark show-trailing-whitespace and
6608 void-text-area-pointer as user options.
6609 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
6611 * xterm.c (x_update_window_end): Call draw_window_fringes.
6612 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
6613 in row instead of actually drawing fringe bitmaps.
6614 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
6615 (x_draw_window_cursor): Draw cursor in fringe.
6617 * w32term.c (x_update_window_end): Call draw_window_fringes.
6618 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
6619 in row instead of actually drawing fringe bitmaps.
6620 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
6621 (w32_draw_window_cursor): Draw cursor in fringe.
6623 * macterm.c (x_update_window_end): Call draw_window_fringes.
6624 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
6625 in row instead of actually drawing fringe bitmaps.
6626 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
6627 (mac_draw_window_cursor): Draw cursor in fringe.
6629 2004-01-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6631 * xterm.c (handle_one_xevent): Don't handle characters that are part
6632 of an old style (XLookupString) compose sequence.
6634 2004-01-15 Kenichi Handa <handa@m17n.org>
6636 * search.c (Freplace_match): Use make_multibyte_string or
6637 make_unibyte_string according to the buffer multibyteness.
6639 2004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
6641 * alloc.c (struct interval_block, struct string_block)
6642 (struct symbol_block, struct marker_block, live_string_p)
6643 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
6644 Better preserve alignment for objects in blocks.
6645 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
6647 * lread.c (defvar_per_buffer): Remove dead declaration.
6649 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
6652 2004-01-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6654 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
6655 if a key press should pop down. Only pop down if a key is pressed
6656 outside the menu/dialog.
6657 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
6658 popup_get_selection.
6659 (create_and_show_dialog): Pass 1 for down_on_keypress to
6660 popup_get_selection.
6662 2004-01-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6664 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
6665 BLOCK/UNBLOCK_INPUT.
6667 2004-01-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6669 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
6672 2004-01-08 Kenichi Handa <handa@m17n.org>
6674 * editfns.c (Fformat): Fix '&' to '&&'.
6676 2004-01-08 Andreas Schwab <schwab@suse.de>
6678 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
6679 size if PSEUDOVECTOR_FLAG is set.
6681 2004-01-07 Kenichi Handa <handa@m17n.org>
6683 * charset.c (Fdeclare_equiv_charset): Fix docstring.
6685 * fontset.c (fontset_ref_via_base): Fix previous change.
6687 2004-01-07 Kim F. Storm <storm@cua.dk>
6689 * process.c (read_process_output): Only activate adaptive
6690 buffering if we read less than 256 bytes at a time.
6692 2004-01-06 Kim F. Storm <storm@cua.dk>
6694 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
6695 object and image object. Return glyph width and height.
6696 (mode_line_string, marginal_area_string): Ditto.
6698 * dispextern.h (buffer_posn_from_coords, mode_line_string)
6699 (marginal_area_string): Fix prototypes.
6701 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
6702 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
6703 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
6705 * keyboard.c (make_lispy_position): Use modified mode_line_string,
6706 buffer_posn_from_coords, and marginal_area_string functions to
6707 include both string object and image object in the lispy position.
6708 Also add actual glyph width and height to position.
6709 (read_key_sequence): Use real buffer position from mouse
6710 event to find keymap property even when click is in marginal area.
6712 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
6713 mode_line_string and marginal_area_string functions to handle
6714 both string object and image object properties.
6716 2004-01-06 Andreas Schwab <schwab@suse.de>
6718 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
6721 2004-01-02 Andreas Schwab <schwab@suse.de>
6723 * macterm.c (emacs_options, x_initialized, same_x_server):
6724 Remove unused (and duplicated) definitions.
6726 2004-01-02 Kim F. Storm <storm@cua.dk>
6728 * process.h (struct Lisp_Process): New members for adaptive read
6729 buffering: adaptive_read_buffering, read_output_delay, and
6732 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
6733 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
6734 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
6735 (process_output_delay_count, process_output_skip): New vars.
6736 (Vprocess_adaptive_read_buffering): New variable.
6737 (make_process): Initialize adaptive read buffering members.
6738 (Fstart_process): Set adaptive_read_buffering member.
6739 (deactivate_process): Cleanup adaptive read buffering.
6740 (wait_reading_process_input): Temporarily omit delayed
6741 subprocesses from the set of file descriptors to read from;
6742 adjust the select timeout if we skipped any subprocesses.
6743 (read_process_output): Increase adaptive read buffering delay if
6744 we read less than a full buffer; reduce delay when we read a
6746 (send_process): Simplify using local Lisp_Process var.
6747 Reset adaptive read buffering delay after write.
6748 (init_process): Initialize process_output_delay_count and
6749 process_output_skip.
6750 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
6752 2004-01-01 Jason Rumney <jasonr@gnu.org>
6754 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
6756 2003-12-30 Luc Teirlinck <teirllm@auburn.edu>
6758 * print.c (Ferror_message_string): Add hyperlink in the docstring
6759 to the definition of `signal' in the Elisp manual.
6760 * eval.c (Fsignal): Ditto.
6762 2003-12-29 James Clark <jjc@jclark.com>
6764 * fns.c (internal_equal): Return t for two NaN arguments.
6766 2003-12-29 Richard M. Stallman <rms@gnu.org>
6768 * data.c (store_symval_forwarding): Handle setting
6769 default-fill-column, etc., by changing the value in
6770 buffers that use the default.
6772 * minibuf.c (Fset_minibuffer_window): Doc fix.
6774 * fileio.c (choose_write_coding_system): Ignore auto_saving
6775 if using the visited file for auto saves.
6776 (Fwrite_region): Don't update SAVE_MODIFF
6777 if auto-saving in visited file.
6779 2003-12-29 Kenichi Handa <handa@m17n.org>
6781 * dispextern.h (face_font_available_p): Extern it.
6783 * fontset.c (Voverriding_fontspec_alist): New variable.
6784 (lookup_overriding_fontspec): New function.
6785 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
6786 (fontset_font_pattern): Likewise.
6787 (regulalize_fontname): New function.
6788 (Fset_fontset_font): Call regulalize_fontname.
6789 (Fset_overriding_fontspec_internal): New function.
6790 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
6791 Defsubr Sset_overriding_fontspec_internal.
6793 * xfaces.c (face_font_available_p): New function.
6795 2003-12-28 Richard M. Stallman <rms@gnu.org>
6797 * buffer.c (Fother_buffer): Don't crash if BUF is nil
6798 or if its name is nil.
6800 * buffer.c (Fkill_buffer): Don't delete auto-save file
6801 if it's the same as the visited file.
6803 2003-12-28 Luc Teirlinck <teirllm@auburn.edu>
6805 * coding.c (Fcheck_coding_system): Doc fix.
6807 2003-12-28 Kim F. Storm <storm@cua.dk>
6809 * Makefile.in (eval.o): Depend on dispextern.h.
6811 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
6812 image glyph using image's ascent.
6813 (mode_line_string): Return image glyph as object clicked on.
6814 Adjust y0 for image glyph using image's ascent.
6816 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
6817 (struct glyph): New members, ascent and descent. Used to save
6818 this glyph's ascent and descent, instead of having.
6819 (struct glyph): Declare member face_id using FACE_ID_BITS.
6820 (find_hot_spot): Add prototype.
6822 * keyboard.c (Qimage): Remove extern (now in lisp.h).
6823 (QCmap): Declare extern.
6824 (make_lispy_position): When position is inside image hot-spot,
6825 use hot-spot element's id as posn element.
6827 * lisp.h (IMAGEP): New macro to test for image object type.
6828 (Qimage): Declare extern.
6830 * macfns.c (Qimage): Remove extern (now in lisp.h).
6831 (valid_image_p, parse_image_spec): Use IMAGEP macro.
6833 * macterm.c (Qface, Qmouse_face): Remove unused externs.
6835 * w32fns.c (Qimage): Remove extern (now in lisp.h).
6836 (valid_image_p, parse_image_spec): Use IMAGEP macro.
6838 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
6840 * w32term.c (Qface, Qmouse_face): Remove unused externs.
6842 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
6844 (Qrelative_width, Qalign_to): Remove unused variables.
6845 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
6846 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
6848 (x_y_to_hpos_vpos): Return glyph relative coordinates through
6850 Remove buffer_only_p arg (always 0). Simplify code accordingly.
6851 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
6852 than row's ascent and height, to get sensible height on tall rows.
6853 (build_desired_tool_bar_string): Remove Qimage extern.
6854 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
6855 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
6856 image glyph is alone on the last line.
6857 (append_glyph, append_composite_glyph, produce_image_glyph)
6858 (append_stretch_glyph): Set glyph's ascent and descent.
6859 (on_hot_spot_p): New function to check if position is inside an
6860 rectangular, circular, or polygon-shaped image hot-spot,
6861 (find_hot_spot): New function to search for image hot-spot.
6862 (Flookup_image_map): New defun to search for image hot-spot.
6863 (define_frame_cursor1): New aux function to determine frame pointer.
6864 (note_mode_line_or_margin_highlight, note_mouse_highlight):
6865 Handle `pointer' text property and :pointer image property to
6866 control frame pointer shape. Detect image hot-spots for pointer
6867 and help_echo properties. Use define_frame_cursor1.
6868 (note_mouse_highlight): Use Vvoid_text_area_pointer.
6869 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
6870 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
6872 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
6874 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
6875 (Qimage): Remove extern (now in lisp.h).
6876 (valid_image_p, parse_image_spec): Use IMAGEP macro.
6878 * xmenu.c (show_help_event): Remove unused code.
6880 * xterm.c (Qface, Qmouse_face): Remove unused externs.
6881 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
6882 row's ascent and descent, to get a sensible height on tall rows.
6884 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
6886 * minibuf.c (Fcompleting_read): Undo previous change.
6888 2003-12-25 Lars Hansen <larsh@math.ku.dk>
6890 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
6891 Arguments GCPRO'ed in call to file name handler.
6893 2003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
6895 * termcap.c (tgetst1): Scan for "%pN"; if all
6896 N are continuous in [1,9], remove all "%pN".
6898 2003-12-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6900 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
6902 * xfaces.c (lface_fully_specified_p): Take into account that
6903 MAC OS always have unspecified stipple.
6905 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
6907 * tparam.c (tparam1): Add handling for `%pN', which
6908 means use param N for the next substitution.
6910 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
6912 * xfaces.c (Fcolor_gray_p): Fix omission bug:
6913 In case `frame' is nil, consult the selected frame.
6914 (Fcolor_supported_p): Likewise.
6916 2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
6918 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
6921 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
6922 and an integer. Adapt the introductory comment accordingly.
6923 (Fread_from_minibuffer): Delete code moved into read_minibuf.
6925 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
6927 (Fcompleting_read): Delete code moved into read_minibuf.
6928 (Ftest_completion): Make it handle obarrays and hash tables correctly.
6930 2003-12-03 Kenichi Handa <handa@m17n.org>
6932 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
6935 2003-12-01 Kenichi Handa <handa@m17n.org>
6937 * composite.c (syms_of_composite): Don't make the compostion hash
6940 2003-11-30 Luc Teirlinck <teirllm@auburn.edu>
6942 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
6943 * textprop.c (Fget_char_property_and_overlay): New function.
6944 (syms_of_textprop): Defsubr it.
6946 2003-11-29 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6948 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
6949 to compile on terminal configuration.
6951 * fileio.c (Fread_file_name): Check use_file_dialog also before
6952 calling Fx_file_dialog.
6954 * fns.c: use_file_dialog: New variable.
6955 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
6957 2003-11-29 Kim F. Storm <storm@cua.dk>
6959 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
6960 (syms_of_msdos): Don't intern and staticpro them.
6962 2003-11-27 Kim F. Storm <storm@cua.dk>
6964 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
6965 coordinates relative to glyph at posn. If glyph is an image,
6966 return that as object at posn. Callers changed.
6967 (mode_line_string, marginal_area_string): Calculate and return
6968 pixel coordinates relative to glyph. Callers changed.
6970 * dispextern.h (buffer_posn_from_coords, mode_line_string)
6971 (marginal_area_string): Fix prototypes.
6972 (window_box_left_offset, window_box_right_offset): Add prototypes.
6974 * frame.h (get_specified_cursor_type, get_window_cursor_type):
6977 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
6979 * keyboard.c (make_lispy_position): Add x and y coordinates
6980 relative to the current glyph as 7th element of position.
6981 If glyph is an image, return it in the object element.
6982 (read_key_sequence): Skip checks for keymap property in cases
6983 where POSN_STRING is not a string (e.g. an image).
6985 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
6986 (Vshow_text_cursor_in_void): New variable.
6987 (glyph_to_pixel_coords): Don't use negative hpos.
6988 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
6989 (append_stretch_glyph): Change ascent arg to be actual value
6990 in pixels rather than ratio to height. Callers changed.
6991 (calc_pixel_width_or_height): New aux function, implementing
6992 pixel based artihmetic for glyph widths and heights.
6993 (produce_stretch_glyph): Use calc_pixel_width_or_height for
6994 :width, :height, :align-to, and :ascent, thus allowing these to
6995 be specified in pixels as well as multiples of characters.
6996 Don't produce stretch glyphs with zero width or height.
6997 (get_specified_cursor_type): Declare static.
6998 (get_window_cursor_type): Declare static. Add glyph arg to be
6999 able to know when cursor is on an image; always substitute
7000 hollow-box cursor for filled-box cursor on images, to avoid
7001 negative images and flicker when blinking the cursor.
7002 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
7003 (note_mode_line_or_margin_highlight): Use non-text cursor rather
7004 than vertical scroll-bar cursor in display margins.
7005 (note_mouse_highlight): Use non-text cursor rather than text
7006 cursor in fringes and over images in the text area.
7007 Use non-text cursor when mouse pointer is outside editable text,
7008 i.e. in the void after end-of-line or end-of-buffer; this was
7009 already done for W32, but is now standard for all systems --
7010 user can toggle show-text-cursor-in-void to get old behaviour.
7011 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
7012 Vdisplay_pixels_per_inch.
7014 2003-11-25 Andreas Schwab <schwab@suse.de>
7016 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
7017 EMACS_INT to not lose bits.
7018 (Ffillarray): Don't set bits beyond the size of a bool vector.
7020 2003-11-25 Kim F. Storm <storm@cua.dk>
7022 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
7023 define this defun on systems that cannot use stderr as lvalue.
7025 2003-11-24 Gerd Moellmann <gerd@gnu.org>
7027 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
7028 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
7029 ld's default is incompatible with unexec.
7031 2003-11-23 Kim F. Storm <storm@cua.dk>
7033 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
7034 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
7035 (Fforce_window_update): New defun.
7036 (syms_of_window): Defsubr it.
7037 (Fset_window_margins, Fset_window_fringes): Doc fix.
7039 * print.c (Fredirect_debugging_output): New defun.
7040 (syms_of_print): Defsubr it.
7042 2003-11-22 Luc Teirlinck <teirllm@auburn.edu>
7044 * fns.c (Fset_char_table_parent): Doc fix.
7046 2003-11-22 Kim F. Storm <storm@cua.dk>
7048 * dispnew.c (buffer_posn_from_coords): Return actual row/column
7049 for glyph clicked on, rather than (unused) pixel positions.
7050 (mode_line_string, marginal_area_string): Change X and Y args to
7051 pointers for returning actual row/column for glyph clicked on.
7052 Simplify and optimize loops.
7054 * dispextern.h (mode_line_string, marginal_area_string):
7057 * keyboard.c (make_lispy_position): New function for generating
7058 mouse click positions from frame and pixel coordinates.
7059 Enhanced to return buffer position and actual row/column for
7060 events outside the text area using updated mode_line_string and
7061 marginal_area_string functions.
7062 Return left-fringe and right-fringe clicks as such, rather than
7063 clicks in text area.
7064 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
7065 pixel_to_glyph_coords, as we never use the results.
7066 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
7067 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
7068 Eliminate unused code in WHEEL_EVENT handling.
7069 (make_lispy_movement): Use make_lispy_position.
7071 * window.c (coordinates_in_window): Remove redundant tests.
7072 Fix returned X pixel value for left-margin.
7074 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
7075 mode_line_string and marginal_area_string parameters.
7077 2003-11-22 Lars Hansen <larsh@math.ku.dk>
7079 * w32.c (struct the_group, getgrgid): Add.
7080 * mac.c (struct my_group, getgrgid): Add.
7082 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
7084 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
7086 2003-11-21 Lars Hansen <larsh@math.ku.dk>
7088 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
7089 include in call to file name handler. Optionally translate numeric
7090 UID and GID to strings. Update docstring.
7091 (directory_files_internal): Add parameter ID-FORMAT.
7092 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
7093 include in call to file name handler and call to
7094 directory_files_internal. Update Docstring.
7095 (Fdirectory_files): Add dummy parameter in call to
7096 directory_files_internal.
7097 * lisp.h (Qinteger): Add.
7098 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
7099 (Ffile_attributes): Add parameter.
7100 * data.c (Qinteger): Export.
7102 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
7104 * fns.c (Freverse, Fnreverse): Doc fixes.
7106 2003-11-19 Kim F. Storm <storm@cua.dk>
7108 * xdisp.c (init_iterator): Initialize it->start to position
7109 before reseating (in case start position is invisible).
7110 (init_to_row_start): Set it->start to row-start.
7111 (redisplay_window): Accept optional_new_start if start position
7112 is invisible (in which case IT_CHARPOS overshoots PT).
7113 (display_line): Setup row->start from it->start (rather than
7114 it->current which is wrong if first char on line is invisible).
7115 When done, reseat it->start to it->current (= start of next row).
7116 (expose_area): Fix exposure of text area when first char (e.g. TAB)
7117 is only partially visible.
7119 * dispextern.h (struct it): New member start.
7121 2003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
7123 * alloc.c (make_float, Fcons): Clear the markbit at init time.
7124 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
7125 of block_index outside of the macro call.
7126 (Fgarbage_collect): Remove null code.
7128 * m/amdx86-64.h: Don't redefine XPNTR.
7130 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
7133 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
7134 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
7135 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
7137 * lisp.h (VALMASK): Only define for non-union type.
7139 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
7140 (XTYPE): Define unconditionally.
7141 (XSETTYPE): Remove one more remnant.
7142 (EQ): Define differently for the union and non-union cases.
7143 (INTMASK): New bit mask.
7144 (struct Lisp_Marker): Move down to prepare for upcoming patch.
7145 (GC_EQ): Delegate to EQ.
7147 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
7149 2003-11-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7151 * xterm.c (x_window_to_scroll_bar): Move check of display to
7152 where window_id is compared.
7154 2003-11-17 Kim F. Storm <storm@cua.dk>
7156 * dispextern.h (struct it): New member first_vpos.
7158 * xdisp.c (start_display): Set it->first_vpos.
7159 (try_window_id): Use first_vpos to start display in first _text_
7160 line if no reusable lines at start of window with header line.
7162 2003-11-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7164 * w32fns.c (XPutPixel):
7165 * w32bdf.c (w32_init_bdf_font):
7166 * sunfns.c (sel_read):
7167 * process.c (Fmake_network_process):
7168 * frame.c (store_frame_param):
7169 * fontset.c (Fset_fontset_font):
7170 * emacs.c (shut_down_emacs):
7171 * ccl.c (ccl_driver): Remove period at end of error message.
7173 * config.in: Regenerate.
7175 * xfns.c (x_window_to_frame, x_any_window_to_frame)
7176 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
7177 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
7178 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
7179 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
7181 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
7183 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
7184 (XTmouse_position, handle_one_xevent): Pass Display* to
7185 x_window_to_scroll_bar.
7186 (x_window_to_scroll_bar): Take a Display* argument.
7187 Check that display for frame is equal to Display* argument.
7188 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
7189 x_display_info_for_display instead. Use Display in xev instead
7191 (x_dispatch_event): Call x_display_info_for_display.
7192 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
7193 (x_connection_closed): Call xg_display_close for GTK.
7194 (x_term_init): Call xg_display_open for additional displays.
7195 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
7198 * xmenu.c (single_menu_item, mouse_position_for_popup)
7199 (x_activate_menubar): Formatting adjustments.
7201 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
7204 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
7205 (xg_display_close, xg_create_default_cursor)
7206 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
7208 (xg_left_ptr_cursor): Remove.
7209 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
7211 (xg_win_to_widget): Take Display* argument, call
7212 gdk_xid_table_lookup_for_display.
7213 (xg_create_frame_widgets, xg_get_file_name, create_menus)
7214 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
7215 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
7216 in FRAME_X_DISPLAY_INFO.
7217 (xg_get_scroll_id_for_window): Take Display* argument.
7218 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
7219 (xg_initialize): Remove xg_left_ptr_cursor.
7221 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
7223 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
7225 2003-11-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7227 * xterm.c (x_detect_focus_change): Do not change focus frame for
7228 Enter/LeaveNotify if the current focus frame has explicit focus.
7230 2003-11-14 Kim F. Storm <storm@cua.dk>
7232 * dispnew.c (update_text_area): Fix redisplay error when hscroll
7233 is active and first glyph is only partially visible.
7235 2003-11-13 Kenichi Handa <handa@m17n.org>
7237 * xdisp.c (select_frame_for_redisplay): New function.
7238 (redisplay_internal): Record also selected_frame for
7239 unwind_redisplay. Call select_frame_for_redisplay before
7240 redrawing each frame.
7241 (unwind_redisplay): Argument changed to a cons.
7243 2003-11-12 Luc Teirlinck <teirllm@auburn.edu>
7245 * fns.c (Fstring_to_multibyte): Doc fix.
7247 2003-11-11 Kenichi Handa <handa@m17n.org>
7249 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
7251 2003-11-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7253 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
7254 program specified positions.
7256 2003-11-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7258 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
7260 2003-11-08 Kenichi Handa <handa@m17n.org>
7262 * Makefile.in (lisp): Add kannada.el.
7263 (shortlisp): Likewise.
7265 2003-11-07 Kenichi Handa <handa@m17n.org>
7267 * coding.c (coding_allocate_composition_data):
7268 Reset coding->composing to COMPOSITION_NO.
7269 (coding_restore_composition): Detect invalid composition data.
7270 Give Fstring and Fvector a Lispy integer, not C int.
7272 2003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
7274 * floatfns.c (Flogb): Don't use VALMASK.
7276 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
7277 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
7279 * lisp.h (XINT): Move the cast to clarify what is going on.
7280 (GCTYPEMASK, XSETTYPE): Remove.
7281 (XGCTYPE): Make it an alias of XTYPE.
7283 2003-11-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7285 * xterm.c (x_term_init): Fix formatting.
7287 2003-11-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7289 * gtkutil.h (xg_have_tear_offs): Declare.
7290 (xg_keep_popup, xg_did_tearoff): Remove.
7292 * gtkutil.c: Remove variable xg_did_tearoff.
7293 (xg_have_tear_offs): New function.
7294 (tearoff_remove): Just decrease xg_detached_menus.
7295 (tearoff_activate): Increase xg_detached_menus and call
7296 tearoff_remove when tearoff is removed.
7297 (xg_keep_popup): Remove function.
7298 (create_menus): Give add_tearoff_p as argument to recursive
7299 call to create_menus.
7300 (xg_create_widget): Use variables instead of multiple
7301 strcmp. Tell create_menus to create tear off only for
7303 (xg_update_menubar): Change title for a detached menu also.
7304 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
7306 (xg_initialize): Initialize xg_detached_menus, remove
7307 initialization of xg_did_tearoff.
7309 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
7310 xg_have_tear_offs returns non-zero.
7311 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
7312 call to xg_keep_popup.
7314 2003-11-01 Andrew Choi <akochoi@shaw.ca>
7316 * macterm.c (XTread_socket): Handle menubar selection and grow
7317 window only for mouseDown events.
7319 2003-10-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7321 * xterm.c (x_term_init): For GTK part, increase x_initialized
7322 to check for more than one display. Use error instead of return 0.
7324 2003-10-31 Andrew Choi <akochoi@shaw.ca>
7326 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
7327 (copy_dysymtab): Call it.
7329 2003-10-31 Luc Teirlinck <teirllm@auburn.edu>
7331 * eval.c (Fdefvaralias): Doc fix.
7333 2003-10-26 Luc Teirlinck <teirllm@auburn.edu>
7335 * data.c (Fsetplist): Doc fix.
7337 2003-10-14 Lute Kamstra <lute@gnu.org>
7339 * window.c (Fset_window_fringes): Clarify docstring.
7341 2003-10-14 Kim F. Storm <storm@cua.dk>
7343 * window.c (Fset_window_margins): Simplify arg checking.
7345 2003-10-13 Richard M. Stallman <rms@gnu.org>
7347 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
7348 (print_partial_compiled_pattern): Replace assert with a printout.
7349 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
7351 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
7353 * window.c (Fset_window_margins): Allow only integers as args.
7354 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
7357 2003-10-13 Lute Kamstra <lute@gnu.org>
7359 * window.c (Fset_window_fringes): Elaborate docstring.
7361 2003-10-12 Andrew Choi <akochoi@shaw.ca>
7363 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
7365 * s/darwin.h (GC_MARK_STACK): Define.
7367 2003-10-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7369 * window.c (shrink_windows): New function.
7370 (size_window): Call shrink_windows to calculate window sizes when
7371 shrinking frame with more than one window.
7373 2003-10-12 Kim F. Storm <storm@cua.dk>
7375 * xdisp.c (compute_fringe_widths): Doc fix.
7377 2003-10-08 Kenichi Handa <handa@m17n.org>
7379 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
7381 2003-10-07 Kenichi Handa <handa@m17n.org>
7383 * coding.c (Qcoding_system_define_form): New variable.
7384 (syms_of_coding): Intern and staticpro it.
7385 (Fcheck_coding_system): Try to autoload the definition of
7388 2003-10-05 Luc Teirlinck <teirllm@auburn.edu>
7390 * fns.c (Frequire): Doc fix.
7392 2003-10-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7394 * xfns.c (Fx_send_client_event): New function as a base for
7395 manipulating extended window manager hints.
7396 (Fx_send_client_event): Remove unused variable s.
7398 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
7399 that function is removed.
7401 * xterm.c (x_set_offset): Use move_offset_left/top instead of
7402 x/y_pixels_outer_diff.
7403 (x_check_expected_move): Calculate move_offset_left/top.
7405 * xterm.h (struct x_output): New members: move_offset_top/left.
7407 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
7408 call x_set_offset directly.
7410 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
7412 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
7414 * xterm.c (x_delete_display): Free font names and font_encoder
7415 in dpyinfo->font_table.
7417 * xfns.c (Fx_close_connection): Only call XFreeFont here.
7418 Move xfree of font names to x_delete_display.
7420 * xterm.h (struct x_display_info): New member, wm_type.
7421 (struct x_output): New members, expected_top/left and
7422 check_expected_move.
7424 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
7426 (handle_one_xevent): Rename x_check_expected_move from
7427 x_check_fullscreen_move.
7428 (x_set_offset): Only add WM decoration sizes to modified_top/left
7429 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
7430 (x_check_expected_move): Rename from x_check_fullscreen_move.
7431 Removed fullscreen specific code. Use check_expected_move,
7432 expected_left/top instead. Also, set wm_type.
7433 (x_term_init): Initialize wm_type to unknown.
7435 * frame.c (x_fullscreen_move): Remove addition of WM decoration
7438 2003-10-03 Kenichi Handa <handa@m17n.org>
7440 * macterm.c (x_load_font): Clear all members of FONTP before start
7443 2003-10-02 Kenichi Handa <handa@m17n.org>
7445 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
7446 before calling find_ccl_program_func. Call find_ccl_program_func
7447 only when fontp->font_encoder is not NULL.
7449 * xterm.c (x_load_font): Clear all members of FONTP before start
7452 2003-10-03 John Paul Wallington <jpw@gnu.org>
7454 * keymap.c (map_keymap): Don't abort when binding is a vector.
7456 2003-10-02 Jason Rumney <jasonr@gnu.org>
7458 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
7459 Sync dependencies with Makefile.in.
7462 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
7465 * w32bdf.c (w32_load_bdf_font): Likewise.
7467 2003-09-30 Richard M. Stallman <rms@gnu.org>
7469 * term.c (set_tty_color_mode): Calculate current_mode_spec
7470 regardless of value of VAL.
7472 * intervals.c (graft_intervals_into_buffer):
7473 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
7474 Handle over_used when splitting UNDER.
7476 2003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7478 * regex.c (regex_compile): Free the stack when returning from function.
7480 2003-09-28 Kenichi Handa <handa@m17n.org>
7482 * fontset.c (Finternal_char_font): Change return value to
7483 cons (FONT-NAME . GLYPH-CODE).
7485 2003-09-28 Eli Zaretskii <eliz@gnu.org>
7487 * term.c (tty_setup_colors): Treat any negative argument as -1.
7489 2003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
7491 * process.c (send_process): Delete unused temp_buf.
7493 2003-09-26 Dave Love <fx@gnu.org>
7495 * xterm.c (x_bitmap_mask): Declare.
7497 2003-09-25 Dave Love <fx@gnu.org>
7499 * Makefile.in (fns.o): Depend on md5.h.
7501 2003-09-25 Kim F. Storm <storm@cua.dk>
7503 * window.c (set_window_buffer): Fix redisplay problems when
7504 switching between buffers with different display margin widths.
7506 2003-09-23 Kim F. Storm <storm@cua.dk>
7508 * process.c (set_socket_option): Fix :bindtodevice option.
7509 (Fset_network_process_option): Update process contact list when
7510 setting option succeeds.
7511 (Fmake_network_process): Doc fix.
7513 2003-09-23 Dave Love <fx@gnu.org>
7515 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
7517 2003-09-22 Eli Zaretskii <eliz@gnu.org>
7519 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
7520 color mode is an integer number (it could be -1).
7522 2003-09-22 Richard M. Stallman <rms@gnu.org>
7524 * intervals.c (graft_intervals_into_buffer): Correct the main loop
7525 in the case where OVER is longer than UNDER.
7527 2003-09-22 Masatake YAMATO <jet@gyve.org>
7529 * window.c (Fset_window_scroll_bars): Validate the value of
7532 2003-09-21 Kim F. Storm <storm@cua.dk>
7534 * frame.c (Vdefault_frame_scroll_bars): New variable.
7535 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
7536 (syms_of_frame): DEFVAR_LISP it, and initialize according to
7537 window-system default scroll bar position.
7539 * window.c (Fwindow_scroll_bars): Doc fix.
7541 2003-09-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7543 * xterm.c (x_set_offset): Take window manager decorations into account.
7545 2003-09-19 Richard M. Stallman <rms@gnu.org>
7547 * atimer.h: Don't include lisp.h.
7548 (P_): Define it here (as well as elsewhere).
7550 * print.c (Fprin1_to_string): Move the PRINTPREPARE
7551 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
7553 * data.c (Fvariable_binding_locus): New function.
7554 (syms_of_data): defsubr it.
7555 (Flocal_variable_p): Delete duplicate call to indirect_variable.
7557 2003-09-18 Dave Love <fx@gnu.org>
7559 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
7561 * process.c (Fnetwork_interface_info): Fix type error.
7562 (Fnetwork_interface_list): Doc fix.
7563 (read_process_output, read_process_output): Delete unused var.
7565 2003-09-17 Kim F. Storm <storm@cua.dk>
7567 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
7568 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
7569 (Fnetwork_interface_info): Check that ifreq struct has required
7570 fields before accessing them; this requires that those fields are
7571 defined as macros, which may be too restrictive on some platforms,
7572 but it is better than failing on other platforms.
7573 (syms_of_process): Only defsubr above fns when included.
7575 2003-09-17 Dave Love <fx@gnu.org>
7577 * unexalpha.c: Don't include varargs.h.
7579 2003-09-17 Kim F. Storm <storm@cua.dk>
7581 * process.c (Fset_process_sentinel): Add sentinel to childp plist
7582 for network process.
7583 (socket_options): Add `:' prefix to option names. Add optbit field.
7584 (set_socket_option): Remove no_error arg and special handling of s < 0.
7585 Return 1<<optbit for known option, 0 for unknown.
7586 Do not interpret 0 as false for boolean option (only nil).
7587 Pass failed option and value to report_file_error.
7588 (Fset_network_process_options): Replace by Fset_network_process_option.
7589 (Fset_network_process_option): New function to set just one option.
7590 (Fmake_network_process): Allow :coding arg to be a cons.
7591 Allow :server arg to be an integer specifying backlog size.
7592 Remove :options arg, and allow options to be specified directly
7593 as :KEY, VALUE pairs. Parse these options before binding socket.
7594 As before, :reuseaddr t is default for a server process, but this
7595 can now be disabled by specifying :reuseaddr nil.
7596 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
7597 (init_process): Availability of network options is now checked with
7598 simpler syntax (featurep 'make-network-process :OPTION); use loop to
7600 (syms_of_process): Fix defsubr's for the replaced functions.
7602 2003-09-16 Dave Love <fx@gnu.org>
7604 * Makefile.in: Depend on coding.h.
7606 2003-09-14 Kim F. Storm <storm@cua.dk>
7608 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
7609 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
7610 (syms_of_process): Defsubr them.
7612 * config.in: Regenerate.
7614 2003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7616 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
7617 * m/news-r6.h (XUNMARK): Remove.
7618 * m/mips.h (XUNMARK): Remove.
7619 * m/mips-siemens.h (XUNMARK): Remove.
7620 * m/iris4d.h (XUNMARK): Remove.
7621 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
7623 2003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7625 * lisp.h (VALBITS): Don't remove 1 for the markbit.
7626 (union Lisp_Object): Use unsigned int for types. Remove markbit.
7627 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
7628 (XTYPE): Use unsigned right-shift.
7629 (XMARKBIT, XMARK, XUNMARK): Remove.
7631 * alloc.c (init_intervals, init_symbol, init_marker):
7632 Don't preallocate anything.
7633 (Fgarbage_collect, mark_object): Ignore the markbit.
7635 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
7637 2003-09-08 Lute Kamstra <lute@gnu.org>
7639 * xdisp.c (pint2hrstr): New function.
7640 (decode_mode_spec): Add `%i' and `%I' specs.
7641 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
7642 for `mode-line-format'.
7644 2003-09-07 Andreas Schwab <schwab@suse.de>
7646 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
7649 2003-09-07 Eli Zaretskii <eliz@gnu.org>
7651 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
7653 2003-09-03 Kim F. Storm <storm@cua.dk>
7655 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
7656 change (superseded by 2002-08-30 change); the default blink-off
7657 cursor is now again "no cursor".
7659 2003-09-01 Jason Rumney <jasonr@gnu.org>
7661 * makefile.w32-in (alloca.o): Remove.
7662 (coding.o): Depend on intervals.h
7663 (emacs.o, bytecode.o): Depend on window.h
7665 2003-09-01 Dave Love <fx@gnu.org>
7667 * Makefile.in (alloca.o): Remove commands.
7668 (coding.o): Depend on intervals.h composite.h window.h.
7669 (emacs.o): Depend on window.h keyboard.h keymap.h.
7670 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
7671 (bytecode.o): Depend on window.h.
7673 2003-08-31 Jason Rumney <jasonr@gnu.org>
7675 * w32term.c (w32_per_char_metric): Allow cached metrics to be
7676 returned even when font_type is unknown.
7678 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
7680 2003-08-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7682 * xterm.c (x_term_init): Initialize new fields in x_display_info.
7684 * xterm.h (struct x_display_info): Add red/green/blue_bits and
7687 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
7688 calculate pixel value.
7690 2003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
7692 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
7693 Don't tell redisplay display is accurate when it's actually been
7694 paused for pending input.
7696 2003-08-29 Richard M. Stallman <rms@gnu.org>
7698 * dispnew.c (adjust_glyph_matrix): Call window_box
7699 whenever W is nonzero.
7701 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
7702 (Fkill_local_variable, Fmake_variable_frame_local)
7703 (Flocal_variable_p, Flocal_variable_if_set_p):
7704 Use indirect_variable to trace thru variable aliases.
7706 * config.in: Updated.
7708 * callint.c (Fcall_interactively): Save and restore
7709 Vthis_command, Vthis_original_command, real_this_command,
7710 and current_kboard->Vlast_command.
7712 * abbrev.c (Fexpand_abbrev): Insert before deleting.
7714 2003-08-29 Gerd Moellmann <gerd@gnu.org>
7716 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
7718 2003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
7720 * coding.c (decode_coding_iso2022): Initialize local variable c2.
7721 (decode_coding_sjis_big5): Likewise.
7723 2003-08-27 Jason Rumney <jasonr@gnu.org>
7725 * w32.c (sys_pipe): Protect against file descriptor overflow.
7727 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
7729 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
7731 2003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
7733 * xfns.c (Vgtk_version_string): New variable.
7734 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
7736 2003-08-24 Eli Zaretskii <eliz@gnu.org>
7738 * term.c (term_init): Remove `const' from buffer_size's declaration.
7740 * Makefile.in (msdos.o): Depend on intervals.h.
7742 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
7744 2003-08-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7746 * xterm.h (struct x_display_info): New fields: client_leader_window
7747 and Xatom_wm_client_leader.
7749 * xterm.c (x_initialize): Move call to x_session_initialize to ...
7750 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
7752 * xsmfns.c (create_client_leader_window): New function.
7753 (x_session_initialize): Call create_client_leader_window, take
7754 dpyinfo as argument.
7756 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
7758 * Makefile.in (xsmfns.o): Add more depenedencies.
7760 2003-08-21 Dave Love <fx@gnu.org>
7762 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
7764 2003-08-21 Kenichi Handa <handa@m17n.org>
7766 * term.c (term_init): Fix previous change; don't rely on the
7767 length of `buffer' if TERMINFO is defined.
7769 2003-08-20 Dave Love <fx@gnu.org>
7771 * atimer.h: Include lisp.h.
7773 * lisp.h (EMACS_LISP_H): New.
7774 (popup_activated_flag): Don't declare.
7776 * alloca.c: Some merging with gnulib. Change logic and doc
7777 concerning (x)malloc/(x)free -- no longer Emacs-specific.
7778 [DO_BLOCK_INPUT]: Don't include lisp.h.
7779 (xmalloc, xfree): Declare.
7780 (malloc): Don't declare.
7782 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
7783 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
7784 atimer.h, blockinput.h.
7786 * alloc.c (lisp_align_malloc): Change type of `aligned'.
7790 2003-08-19 Gerd Moellmann <gerd@gnu.org>
7792 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
7795 * term.c (term_init): Use a buffer of size 4096 for tgetent since
7796 FreeBSD returns something longer than 2044. Abort if the end of
7797 the buffer is overwritten.
7799 2003-08-19 Miles Bader <miles@gnu.org>
7801 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
7803 2003-08-19 Gerd Moellmann <gerd@gnu.org>
7805 * alloc.c (lisp_align_malloc): Check for memory full when
7806 allocating ablocks, which also avoids freeing a pointer into an
7809 * puresize.h (BASE_PURESIZE): Increase to 1100000.
7811 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
7813 2003-08-16 Richard M. Stallman <rms@gnu.org>
7815 * editfns.c (Fencode_time): Doc fix.
7817 2003-08-16 David Ponce <david@dponce.com>
7819 * fileio.c (Fwrite_region): Fix conditional expression to issue
7822 2003-08-16 Juri Linkov <juri@jurta.org>
7824 * syntax.c (Fforward_word): Argument changed to optional.
7825 Set default value to 1.
7827 2003-08-15 Kenichi Handa <handa@m17n.org>
7829 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
7831 (best_matching_font): Once we find a better scalable font, set
7832 non_scalable_has_exact_height_p to 1.
7833 (try_font_list): Call try_alternative_families to try any family
7834 with the given registry.
7836 2003-08-09 Andreas Schwab <schwab@suse.de>
7838 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
7840 * print.c (print_string): Fix printing of multibyte string with
7841 nontrivial printcharfun.
7843 2003-07-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7845 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
7847 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
7849 2003-07-31 Kenichi Handa <handa@m17n.org>
7851 * process.c (read_process_output): Return the actually read bytes
7852 instead of the result of decoding.
7854 2003-07-31 Kenichi Handa <handa@m17n.org>
7856 * xterm.h (struct x_bitmap_record): New member have_mask.
7858 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
7860 (x_create_bitmap_from_file): Likewise.
7861 (x_destroy_bitmap): Check have_mask member before freeing a mask.
7862 (x_destroy_all_bitmaps): Likewise.
7863 (x_create_bitmap_mask): Set have_mask member to 1.
7865 2003-07-30 Richard M. Stallman <rms@gnu.org>
7867 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
7869 2003-07-29 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7871 * gtkutil.c (xg_mark_data): Update calls to mark_object.
7873 2003-07-29 Richard M. Stallman <rms@gnu.org>
7875 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
7876 Conditionalize XIM code on HAVE_XIM.
7878 * fns.c (Fclear_string): New function.
7879 (syms_of_fns): defsubr it.
7881 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
7883 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
7885 2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
7887 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
7889 * buffer.c (delete_all_overlays): New function.
7890 * buffer.h (delete_all_overlays): Declare.
7891 * coding.c (run_pre_post_conversion_on_str):
7892 * print.c (temp_output_buffer_setup):
7893 * fileio.c (Finsert_file_contents):
7894 * minibuf.c (get_minibuffer): Use it.
7896 2003-07-22 Andrew Choi <akochoi@shaw.ca>
7898 * unexmacosx.c (unexec_regions_sort_compare):
7899 (unexec_regions_merge): New functions. Sort and merge unexec
7900 regions before dumping them.
7902 2003-07-22 Dave Love <fx@gnu.org>
7904 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
7906 2003-07-21 Stefan Monnier <monnier@cs.yale.edu>
7908 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
7909 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
7910 MARKBIT as the gcmarkbit for strings.
7912 2003-07-21 Richard M. Stallman <rms@gnu.org>
7914 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
7916 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
7917 (syms_of_fns): Corresponding change.
7919 * alloc.c (syms_of_alloc): Doc fixes.
7921 2003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
7923 * s/netbsd.h: Use -Wl syntax.
7925 2003-07-17 Richard M. Stallman <rms@gnu.org>
7927 * xterm.c (xim_initialize): Redo 6/24 change.
7929 2003-07-15 Stefan Monnier <monnier@cs.yale.edu>
7931 * buffer.c (copy_overlays): Use EMACS_INT for positions.
7932 (Fswitch_to_buffer): Don't signal an error when switching to the same
7933 buffer in a dedicated window.
7935 * alloc.c: Use bitmaps for cons, as was done for floats.
7936 (init_float, init_cons): Let the normal code allocate the first block.
7937 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
7938 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
7940 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
7941 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
7942 (live_cons_p): Check the pointer is not past the `conses' array.
7943 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
7944 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
7945 (survives_gc_p): Use CONS_MARKED_P and simplify.
7946 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
7948 2003-07-13 Paul Eggert <eggert@twinsun.com>
7950 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
7951 puts it into BSS instead, at least on Solaris 8 and 9.
7952 This is a valid optimization, and it may occur on other platforms,
7953 so Emacs should not assume that initializing a static variable to
7954 zero puts it into data.
7955 * alloc.c (pure, staticvec):
7956 Initialize these arrays to nonzero, so that they're not
7957 put into BSS by that optimization.
7959 2003-07-13 Stefan Monnier <monnier@cs.yale.edu>
7961 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
7962 (lisp_align_malloc): Use posix_memalign is available.
7963 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
7964 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
7965 for consistency. Update users.
7967 2003-07-13 Richard M. Stallman <rms@gnu.org>
7969 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
7971 2003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
7973 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
7974 and use the Gtk+ function gtk_window_icon_from_file if available.
7976 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
7977 handle mask of bitmaps.
7978 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
7980 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
7982 * xterm.h (xg_set_icon): New function.
7984 2003-07-12 Paul Eggert <eggert@twinsun.com>
7986 * unexelf.c (unexec): Consider a section to precede the .bss
7987 section if its addresses overlap that of .bss.
7989 2003-07-12 Richard M. Stallman <rms@gnu.org>
7991 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
7993 * config.in (HAVE_CRTIN): Add #undef.
7994 (INLINE): Really inline only if OPTIMIZE is defined.
7996 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
7998 (START_FILES_1, END_FILES_1): New macros (conditional).
7999 (LD_SWITCH_SYSTEM_TEMACS): Define.
8001 * s/openbsd.h: Don't include bsd4-3.h.
8003 (LIBS_TERMCAP): Define.
8004 (LD_SWITCH_SYSTEM): Define (two definitions).
8006 * xfns.c: Include libpng/png.h instead of png.h.
8008 2003-07-11 Andreas Schwab <schwab@suse.de>
8010 * buffer.c (modify_overlay): Update prototype.
8011 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
8014 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
8016 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
8017 (struct interval): Move to intervals.h.
8018 (struct Lisp_Marker): Use EMACS_INT for position info.
8019 (forward_point): Remove prototype of defunct function.
8020 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
8021 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
8022 (syms_of_textprop, set_text_properties): Remove prototypes that are
8023 already in intervals.h.
8025 * intervals.h (struct interval): Move from lisp.h.
8026 Use EMACS_INT for position and size info.
8028 * coding.c: Include intervals.h for Fset_text_properties.
8030 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
8031 position and length information.
8033 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
8035 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
8036 position and length information.
8038 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
8040 Change overlays_after and overlays_before so the overlays themselves
8041 are linked into lists, rather than using cons cells. After all each
8042 Lisp_Misc already occupies 5 words, so we can add a `next' field to
8043 Lisp_Overlay for free and save up one cons cell per overlay (not
8044 to mention one indirection when traversing the list of overlay).
8046 * lisp.h (struct Lisp_Overlay): New field `next'.
8048 * buffer.h (struct buffer): Change overlays_before and overlays_after
8049 from Lisp lists of overlays to pointers to overlays.
8051 * buffer.c (overlay_strings, recenter_overlay_lists):
8052 Fix typo in eassert in last commit.
8053 (unchain_overlay): New function.
8054 (add_overlay_mod_hooklist): Use AREF.
8055 (copy_overlays, reset_buffer, overlays_at, overlays_in)
8056 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
8057 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
8058 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
8059 (report_overlay_modification, evaporate_overlays, init_buffer_once):
8060 Adjust to new type of overlays_(before|after).
8062 * alloc.c (mark_object): Mark the new `next' field of overlays.
8063 (mark_buffer): Manually mark the overlays_(after|before) fields.
8065 * coding.c (run_pre_post_conversion_on_str):
8066 * editfns.c (overlays_around):
8067 * xdisp.c (load_overlay_strings):
8068 * fileio.c (Finsert_file_contents):
8069 * indent.c (current_column):
8070 * insdel.c (signal_before_change, signal_after_change):
8071 * intervals.c (set_point_both):
8072 * print.c (temp_output_buffer_setup): Use new type for
8073 overlays_(before|after).
8075 2003-07-08 Stefan Monnier <monnier@cs.yale.edu>
8077 * buffer.c (report_overlay_modification): Don't run hooks while
8078 traversing the list of overlays.
8080 * buffer.h (struct buffer): Use an int for overlay_center.
8081 (overlays_at, evaporate_overlays, recenter_overlay_lists)
8082 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
8084 * buffer.c (reset_buffer, recenter_overlay_lists)
8085 (adjust_overlays_for_insert, adjust_overlays_for_delete)
8086 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
8087 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
8088 (overlays_at, evaporate_overlays, recenter_overlay_lists)
8089 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
8091 * xdisp.c (fast_find_position): Remove unused var.
8093 * cmds.c (Qexpand_abbrev): New sym.
8094 (syms_of_cmds): Initialize it.
8095 (internal_self_insert): Use it to call expand-abbrev.
8097 2003-07-09 Kim F. Storm <storm@cua.dk>
8099 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
8100 was configured with --without-xim.
8101 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
8103 2003-07-07 Richard M. Stallman <rms@gnu.org>
8105 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
8107 * alloc.c (Fgarbage_collect): Doc fix.
8109 2003-07-07 Nozomu Ando <nand@mac.com>
8111 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
8113 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
8115 * minibuf.c (read_minibuf): UNGCPRO before returning.
8116 (Ftry_completion, Fall_completions): Doc fix.
8118 * alloc.c (live_float_p): Check that p is not past the `floats' array,
8119 now that `floats' is not the last element of the struct any more.
8121 2003-07-06 Jason Rumney <jasonr@gnu.org>
8123 * w32term.h (ClipboardSequence_Proc): New type.
8125 * w32fns.c (clipboard_sequence_fn): New variable.
8126 (globals_of_w32fns): Initialize it.
8128 * w32select.c (last_clipboard_sequence_number): New variable.
8129 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
8132 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
8134 * m/amdx86-64.h (MARKBIT):
8135 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
8136 MARKBIT and ARRAY_MARK_FLAG any more.
8138 * m/hp800.h (XSETMARKBIT):
8139 * m/sr2k.h (XSETMARKBIT):
8140 * lisp.h (XSETMARKBIT): Remove unused macro.
8142 * lisp.h (mark_object): Change prototype.
8144 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
8145 (last_marked): Change accordingly.
8146 (mark_interval, mark_maybe_object, mark_maybe_pointer)
8147 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
8148 (mark_buffer): Update calls to mark_object.
8150 * bytecode.c (mark_byte_stack):
8151 * fns.c (sweep_weak_table):
8152 * keyboard.c (mark_kboards): Update calls to mark_object.
8154 2003-07-06 Jason Rumney <jasonr@gnu.org>
8156 * alloc.c (struct ablock): Only include padding when there is some.
8158 2003-07-04 Stefan Monnier <monnier@cs.yale.edu>
8160 * alloc.c (ALIGN): Add casts to simplify usage.
8161 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
8162 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
8163 (struct ablock, struct ablocks): New types.
8164 (free_ablock): New global var.
8165 (lisp_align_malloc, lisp_align_free): New functions.
8166 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
8167 (struct float_block): Reorder and add gcmarkbits.
8168 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
8169 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
8170 (init_float, make_float): Use lisp_align_malloc.
8171 (free_float, live_float_p): Don't use `type' any more.
8172 (make_float): Use FLOAT_UNMARK to access to mark bit.
8173 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
8174 Use FLOAT_MARKED_P to access the mark bit.
8175 (pure_alloc): Simplify use of ALIGN.
8176 (mark_object): Use FLOAT_MARK to access the mark bit.
8177 (gc_sweep): Use new macros to access the float's mark bit.
8178 (init_alloc_once): Init free_ablock.
8180 * lisp.h (struct Lisp_Float): Remove unused field `type'.
8182 2003-06-27 Stefan Monnier <monnier@cs.yale.edu>
8184 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
8185 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
8186 (allocate_buffer): Move.
8187 (string_bytes): Don't mask markbit of `size_byte'.
8188 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
8189 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
8190 Use the `size' field of buffers (rather than the `name' field) for
8191 the mark bit, as is done for all other vectorlike objects.
8192 Use the new macros to access the mark bit of vectorlike objects.
8194 2003-06-26 Richard M. Stallman <rms@gnu.org>
8196 * puresize.h (BASE_PURESIZE): Increment base size.
8198 * xdisp.c (fast_find_position): Enable Gerd's new definition.
8200 * xterm.c (xim_initialize): Undo previous change.
8202 2003-06-26 Stefan Monnier <monnier@cs.yale.edu>
8204 * alloc.c (survives_gc_p): Simplify.
8206 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
8208 * window.c (Fset_window_dedicated_p): Simplify.
8209 (display_buffer_1): Don't raise the win from which minibuf was entered.
8210 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
8211 (Fminibuffer_selected_window): Simplify.
8213 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
8215 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
8216 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
8218 * insdel.c (check_markers, adjust_markers_for_delete)
8219 (adjust_markers_for_insert, adjust_markers_for_replace)
8220 (prepare_to_modify_buffer, RESTORE_VALUE):
8221 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
8222 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
8223 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
8224 * alloc.c (Fmake_marker, free_marker, gc_sweep):
8225 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
8226 * editfns.c (save_excursion_restore, transpose_markers):
8227 * window.c (delete_window):
8228 * xdisp.c (message_dolog): Update for new types.
8230 2003-06-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8232 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
8233 (realize_default_face): Use default_face_done_p for the force_p
8234 argument to set_lface_from_font_name. Set default_face_done_p to one.
8236 * frame.c (make_frame): Initialize default_face_done_p.
8238 * frame.h (struct frame): Add default_face_done_p.
8240 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
8243 2003-06-25 Stefan Monnier <monnier@cs.yale.edu>
8245 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
8246 Initialize the new field `gcmarkbit'.
8247 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
8248 (mark_interval_tree): Don't mark the tree separately from the nodes.
8249 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
8250 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
8251 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
8253 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
8254 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
8255 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
8256 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
8257 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
8259 2003-06-24 Dave Love <fx@gnu.org>
8261 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
8263 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
8266 2003-06-21 Richard M. Stallman <rms@gnu.org>
8268 * fileio.c (Fwrite_region): Alternate messages
8269 for append and partial write.
8271 * keyboard.c (read_key_sequence): When converting upcase fn key to
8272 downcase, update fkey and keytran so `backspace' gets translated.
8274 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
8276 * process.c (wait_reading_process_input): Don't signal SIGIO
8279 2003-06-17 Kenichi Handa <handa@m17n.org>
8281 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
8284 * xselect.c: Don't include charset.h, coding.h, composite.h.
8285 (Qforeign_selection): New variable.
8286 (syms_of_xselect): Intern and static it.
8287 (selection_data_to_lisp_data): Return a unibyte string made from
8288 data with `foreign-selection' text property.
8290 2003-06-15 Stefan Monnier <monnier@cs.yale.edu>
8292 * termhooks.h (EVENT_INIT): New macro.
8294 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
8296 * alloc.c (mark_kboards): Move to keyboard.c.
8298 * keyboard.c (record_asynch_buffer_change, read_avail_input):
8299 * xterm.c (x_dispatch_event):
8300 * xmenu.c (find_and_call_menu_selection):
8301 * xdisp.c (handle_tool_bar_click):
8302 * w32menu.c (menubar_selection_callback):
8303 * sysdep.c (kbd_input_ast, read_input_waiting):
8304 * msdos.c (dos_rawgetc):
8305 * macterm.c (mac_check_for_quit_char):
8306 * macmenu.c (menubar_selection_callback):
8307 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
8308 data to kbd_buffer_store_event.
8310 2003-06-15 Kim F. Storm <storm@cua.dk>
8312 * xdisp.c (x_fix_overlapping_area): Always use area relative X
8313 to fix redisplay problem with tall characters (such as
\e,AC
\e(B).
8315 2003-06-13 Kai Gro
\e,A_
\e(Bjohann <kai.grossjohann@gmx.net>
8317 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
8319 2003-06-12 Kenichi Handa <handa@m17n.org>
8321 * fileio.c (Fwrite_region): Save and restore restriction.
8323 2003-06-12 Dave Love <fx@gnu.org>
8325 * alloca.c (alloca): Declare arg as size_t.
8327 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
8328 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
8330 2003-06-11 Dave Love <fx@gnu.org>
8332 * search.c (shrink_regexp_cache): Use xrealloc.
8333 (syms_of_search): Use xmalloc.
8335 2003-06-10 Kim F. Storm <storm@cua.dk>
8337 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
8338 Adjust phys_cursor.x to be relative to window box, rather than
8339 text area before checking -- to ensure cursor is redrawn when
8341 Note: This also fixes a similar (older) bug if display margins
8344 2003-06-06 Kenichi Handa <handa@m17n.org>
8346 * coding.c (encoding_buffer_size): If coding->type is
8347 coding_type_ccl, double magnification on CRLF encoding.
8349 2003-06-06 Jason Rumney <jasonr@gnu.org>
8351 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
8352 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
8354 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
8357 2003-06-05 Dave Love <fx@gnu.org>
8359 * strftime.c: Merge changes from gnulib.
8361 * mktime.c (__mktime_internal): Merge changes from gnulib
8362 involving year 69 and dst2.
8364 Changes to merge with gnulib version and be consistent with the
8367 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
8368 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
8369 [HAVE_LOCALE_H]: Include locale.h.
8370 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
8372 2003-06-05 Kim F. Storm <storm@cua.dk>
8374 * window.c (coordinates_in_window): Convert X and Y to window
8375 relative coordinates inside mode-line and header-line parts.
8376 Convert X and Y to margin area relative coordinates inside left
8377 and right display margin parts.
8379 2003-06-05 Jason Rumney <jasonr@gnu.org>
8381 * w32fns.c (add_system_logical_colors_to_map): New function.
8382 (Fx_open_connection): Use it.
8384 2003-06-04 Stefan Monnier <monnier@cs.yale.edu>
8386 * process.c (allocate_pty): Revert part of the previous patch.
8387 (Faccept_process_output): Simplify.
8389 2003-06-04 Jason Rumney <jasonr@gnu.org>
8391 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
8393 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
8394 (lispy_mouse_wheel_names): Remove.
8395 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
8396 Always define drag_and_drop_syms.
8398 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
8401 2003-06-03 Stefan Monnier <monnier@cs.yale.edu>
8403 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
8405 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
8407 2003-06-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8409 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
8412 2003-06-03 Richard M. Stallman <rms@gnu.org>
8414 * window.c (Fwindow_edges): Doc fix.
8415 (Fwindow_pixel_edges, Fwindow_inside_edges)
8416 (Fwindow_inside_pixel_edges): New functions.
8417 (syms_of_window): defsubr them.
8419 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
8420 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
8422 2003-06-02 Stefan Monnier <monnier@cs.yale.edu>
8424 * dispnew.c (Fsit_for): Don't lie about the number of args.
8426 2003-06-02 Dave Love <fx@gnu.org>
8428 * callproc.c: Use HAVE_FCNTL_H, not USG5.
8429 (syms_of_callproc) <process-environment>: Doc fix.
8431 * doc.c: Use HAVE_FCNTL_H, not USG5.
8433 * xfaces.c (font_rescale_ratio): Fix for K&R.
8435 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
8437 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
8439 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
8441 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
8442 (xg_create_frame_widgets): Use ENCODE_UTF_8.
8444 * xterm.c (Qutf_8): Move to coding.c
8446 * xmenu.c (ENCODE_MENU_STRING): New.
8447 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
8450 * coding.h (ENCODE_UTF_8): New.
8453 * coding.c (Qutf_8): New.
8454 (syms_of_coding): Intern it.
8458 2003-06-02 Kenichi Handa <handa@m17n.org>
8460 * buffer.c (Fset_buffer_multibyte): Fix previous change.
8462 2003-06-01 Stefan Monnier <monnier@cs.yale.edu>
8464 * lread.c (openp): Make sure STR is a string.
8466 2003-06-01 David Ponce <david@dponce.com>
8468 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
8469 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
8471 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
8472 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
8473 (discard_mouse_events): Discard WHEEL_EVENT events too.
8474 (lispy_wheel_names, wheel_syms): New.
8475 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
8476 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
8477 (make_lispy_event): Add WHEEL_EVENT handler.
8479 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
8480 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
8483 2003-05-31 John Paul Wallington <jpw@gnu.org>
8485 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
8486 timer are in lisp/emacs-lisp.
8488 2003-05-31 Kenichi Handa <handa@m17n.org>
8490 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
8491 region when a buffer is changed to unibyte.
8493 * charset.h (VALID_LEADING_CODE_P): New macro.
8494 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
8496 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
8497 is nonzero, accept multibyte form of eight-bit-control chars.
8498 (decode_composition_emacs_mule): Likewise.
8499 (decode_coding_emacs_mule): Likewise.
8500 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
8501 multibyte form of eight-bit-control chars.
8503 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
8504 (Finsert_file_contents): If coding-system-for-read is bound to
8505 Qauto_save_coding, use the coding system emacs-mule with special
8506 setting for recovering a file.
8507 (choose_write_coding_system): On auto saving, use the coding
8508 system emacs-mule with special setting for auto saving.
8509 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
8511 2003-05-30 Kenichi Handa <handa@m17n.org>
8513 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
8514 properly before calling ccl_driver.
8516 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
8518 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
8519 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
8520 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
8522 2003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
8524 * xfaces.c (realize_default_face): Do not abort if lface is
8525 non-existent - reverts change from 2003-05-19.
8527 2003-05-29 Kenichi Handa <handa@m17n.org>
8529 * coding.c (decode_coding_iso2022): Pay attention to the byte
8530 sequence of CTEXT extended segment, and retain those bytes as is.
8532 2003-05-28 Kenichi Handa <handa@m17n.org>
8534 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
8535 of CODING_REPLACEMENT_CHARACTER.
8536 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
8537 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
8538 check this flag on encoding.
8539 (encode_coding_sjis_big5):
8540 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
8541 (Fset_terminal_coding_system_internal):
8542 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
8543 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
8545 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
8546 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
8547 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
8549 2003-05-28 Richard M. Stallman <rms@gnu.org>
8551 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
8553 * eval.c (unbind_to): Move init of this_binding to separate statement.
8555 2003-05-28 Kim F. Storm <storm@cua.dk>
8557 * xdisp.c (expose_window): Fix error in calculation of
8558 window relative coordinates of area to redisplay.
8560 2003-05-27 Jason Rumney <jasonr@gnu.org>
8562 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
8564 2003-05-27 David Ponce <david@dponce.com>
8566 Handle W32 mouse wheel events as mouse click events, like in X.
8568 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
8569 MOUSE_WHEEL_EVENT anymore.
8571 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
8572 Scrolling down/up the mouse wheel is respectively mapped to mouse
8574 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
8575 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
8576 WM_MOUSEWHEEL events.
8578 2003-05-27 Andreas Schwab <schwab@suse.de>
8580 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
8582 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
8583 partially visible line.
8585 * alloc.c (Fgarbage_collect): Fix last change.
8587 2003-05-26 John Paul Wallington <jpw@gnu.org>
8589 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
8591 2003-05-25 Stefan Monnier <monnier@cs.yale.edu>
8593 * window.c (Fset_window_buffer): Add type of `keep_margins'.
8594 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
8596 * window.h (window_box_text_cols): Declare.
8598 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
8599 (x_draw_vertical_border): Remove unused var `f'.
8601 * xfaces.c (build_scalable_font_name): Remove `unused var
8602 pixel_size' warning.
8604 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
8606 * unexelf.c (unexec): Remove `unused var n' warning.
8608 * strftime.c (my_strftime_localtime_r): Remove `defined but
8611 * process.c (allocate_pty): Remove `unused var stb' and
8612 `cp might be used uninitialized' warnings.
8614 * dispnew.c (mode_line_string): Remove unused var `f'.
8616 * coding.c (find_safe_codings): Remove unused var `i'.
8618 * bytecode.c (Fbyte_code): Remove `unused val' warning.
8620 * buffer.c (Fkill_buffer): Remove unused var `list'.
8622 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
8624 2003-05-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8626 * frame.c (make_frame): Condition want_fullscreen with
8629 2003-05-25 Juanma Barranquero <lektu@terra.es>
8631 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
8632 (Fwindow_scroll_bars): Fix typo in docstring.
8634 2003-05-24 Kim F. Storm <storm@cua.dk>
8636 The following changes serve several purposes:
8638 1) Swap the position of fringes and display margins in windows, i.e.
8639 the fringes are now displayed between the margins and the text area
8642 2) Allow fringe and scroll bar parameters to be set per-buffer and
8643 per-window (like display margins). Such settings are now stored
8644 in window configurations, preserved when frames are resized, and
8645 copied when windows are split vertically or horizontally.
8646 Several bugs related to display margins have been fixed.
8648 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
8650 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
8651 rather than FRAME_WIDTH (FRAME_FONT (f)).
8653 5) Introduce a consistent naming of variables, members and macros
8654 depending on whether their value is measured in pixels or in
8655 canonical columns/lines. Pixel dimensions are named *_width and
8656 *_height, while canonical columns/lines are named *_cols and
8657 *_lines. Pixel positions are named *_x and *_y, while column/line
8658 positions are named *_col and *_line.
8660 6) Consolidate more of the X, W32, and MAC gui code by moving
8661 common data into struct frame, and generalize it for the non-gui
8662 case by using suitable defaults.
8664 7) Cleanup and consolidate the macros controlling frame and window
8665 layout into frame.h and window.h, and generalize the use of the
8666 various window_box_* functions (enhanced to handle the new fringe
8667 position and the per-window fringe and scroll bar settings).
8669 * frame.h (struct frame): Rename members height to text_lines,
8670 width to text_cols, window_height to total_lines, window_width to
8671 total_cols, new_height to new_text_lines, new_width to
8672 new_text_cols. All uses changed.
8673 (struct frame): New members which consolidate common members of
8674 x_output, w32_output, and mac_output structures: left_pos,
8675 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
8676 win_gravity, size_hint_flags, border_width, internal_border_width,
8677 line_height, fringe_cols, left_fringe_width, right_fringe_width,
8678 want_fullscreen. All uses changed.
8679 (struct frame): New member column_width contaning the canonical
8680 column width, analogue to line_height. All uses changed.
8681 (struct frame): Rename members scroll_bar_pixel_width to
8682 config_scroll_bar_width, and scroll_bar_cols to
8683 config_scroll_bar_cols. All uses changed.
8684 (struct frame): New member scroll_bar_actual_width which
8685 consolidates and renames the vertical_scroll_bar_extra member of
8686 x_output, w32_output, and mac_output structures. All uses changed.
8687 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
8688 from x/w32/macterm.h files. All uses changed. Also change code
8689 which referred to f->output_data...->pixel_height.
8690 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
8691 from x/w32/macterm.h files. All uses changed. Also change code
8692 which referred to f->output_data...->pixel_width.
8693 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
8694 Also change code which referred to f->height.
8695 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
8696 Also change code which referred to f->width.
8697 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
8698 to update new_text_lines and new_text_cols members directly.
8699 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
8700 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
8701 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
8702 FRAME_SCROLL_BAR_COLS. All uses changed.
8703 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
8704 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
8705 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
8706 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
8707 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
8708 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
8709 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
8710 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
8711 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
8712 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
8713 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
8714 Unconditionally return line_height member (it now has proper value
8715 also for non-window frames).
8716 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
8717 return new column_width member (rather than the default font width).
8718 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
8719 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
8720 from x/w32/macterm.h files. Unconditionally return corresponding
8721 member of frame structure (they now have proper values also for
8723 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
8724 Calculate return value from left and right widths.
8725 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
8726 internal_border_width member (has proper value for non-window frame).
8727 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
8728 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
8729 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
8730 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
8731 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
8732 consolidated from xterm.h, macterm.h, and w32term.h.
8733 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
8734 consolidated from xterm.h, macterm.h, and w32term.h.
8735 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
8736 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
8737 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
8738 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
8739 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
8740 consolidated from x/mac/w32term.h.
8741 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
8742 consolidated from x/mac/w32term.h.
8743 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
8744 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
8745 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
8746 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
8748 * window.h (struct window): Rename members left to left_col,
8749 top to top_line, height to total_lines, width to total_cols,
8750 left_margin_width to left_margin_cols, right_margin_width to
8751 right_margin_cols, orig_height to orig_total_lines, orig_top to
8752 orig_top_line. All uses changed.
8753 (struct window): New members left_fringe_width, right_fringe_width,
8754 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
8755 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
8756 New macros primarily used to simplify other macros.
8757 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
8758 referred to XINT (w->width).
8759 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
8760 referred to XINT (w->height).
8761 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
8762 referred to XINT (w->width) * canon_x_unit.
8763 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
8764 referred to XINT (w->height) * canon_y_unit.
8765 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
8766 referred to XINT (w->left).
8767 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
8768 all uses and code that referred to XINT (w->left) + XINT (w->width).
8769 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
8770 referred to XINT (w->top).
8771 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
8772 referred to XINT (w->top) + XINT (w->height).
8773 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
8774 referred to XINT (w->left) * canon_x_unit.
8775 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
8776 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
8777 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
8778 referred to XINT (w->top) * canon_y_unit.
8779 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
8780 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
8781 (WINDOW_LEFTMOST_P): New macro.
8782 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
8784 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
8786 (WINDOW_BOX_LEFT_EDGE_X): Rename from
8787 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
8788 Do not exclude left fringe width.
8789 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
8790 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
8791 Do not exclude fringe widths.
8792 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
8793 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
8794 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
8795 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
8796 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
8797 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
8798 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
8799 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
8800 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
8801 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
8802 New macros. Change code which referenced corresponding
8803 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
8804 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
8805 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
8806 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
8807 allow per-window scroll-bar settings.
8808 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
8809 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
8810 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
8811 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
8812 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
8813 FRAME_SCROLL_BAR_WIDTH.
8814 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
8815 (WINDOW_SCROLL_BAR_AREA_X): New macros.
8816 (WINDOW_HEADER_LINE_HEIGHT): Rename from
8817 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
8818 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
8819 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
8820 (WINDOW_BOX_TEXT_HEIGHT): Rename from
8821 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
8822 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
8823 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
8824 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
8825 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
8826 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
8827 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
8828 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
8829 (window_from_coordinates): Update prototype.
8830 (Fset_window_buffer): Update EXFUN.
8831 (set_window_buffer): Update prototype.
8833 * dispextern.h (struct glyph_matrix): Rename members window_left_x
8834 to window_left_col, window_top_y to window_top_line. All uses
8836 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
8837 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
8838 internal_border_width is now set to 0 for non-window frames.
8839 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
8840 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
8841 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
8842 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
8843 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
8844 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
8845 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
8846 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
8847 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
8848 Move to window.h and renamed [see window.h changes].
8849 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
8850 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
8851 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
8852 Use WINDOW_TOTAL_LINES.
8853 (frame_update_line_height): Remove prototype.
8855 * buffer.h (struct buffer): Rename members measured in columns:
8856 left_margin_width to left_margin_cols, right_margin_width to
8857 right_margin_cols. All uses changed.
8858 New members left_fringe_width, right_fringe_width,
8859 fringes_outside_margins for per-buffer fringe settings.
8860 New members scroll_bar_width and vertical_scroll_bar_type for
8861 per-buffer scroll bar settings.
8863 * buffer.c (init_buffer_once): Set buffer_defaults and
8864 buffer_local_flags for new buffer-local variables
8865 left_fringe_width, right_fringe_width, fringes_outside_margins,
8866 scroll_bar_width, and vertical_scroll_bar_type.
8867 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
8868 default-* variables for them.
8870 * dispnew.c: Make (many) trivial substitutions for renamed and
8871 new macros in dispextern.h, frame.h and window.h.
8872 (mode_line_string): No need to adjust width for mode lines, as it
8873 is already adjusted by the caller.
8874 (marginal_area_string): Handle fringes inside/outside margins.
8876 * frame.c: Make (many) trivial substitutions for renamed and
8877 new macros in dispextern.h, frame.h and window.h.
8878 (make_frame): Initialize left_fringe_width, right_fringe_width,
8879 fringe_cols, scroll_bar_actual_width, border_width,
8880 internal_border_width, column_width, line_height, x_pixels_diff,
8881 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
8882 members with values suitable for a non-window frames.
8884 * gtkutil.c: Make (many) trivial substitutions for renamed and
8885 new macros in dispextern.h, frame.h and window.h.
8887 * indent.c: Make (few) trivial substitutions for renamed and
8888 new macros in dispextern.h, frame.h and window.h.
8890 * keyboard.c: Make (many) trivial substitutions for renamed and
8891 new macros in dispextern.h, frame.h and window.h.
8892 (make_lispy_event): Use window positions returned from
8893 window_from_coordinates when constructing the lisp event for
8894 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
8895 (incorrect) values locally.
8896 (make_lispy_movement): Use window positions returned from
8897 window_from_coordinates when constructing the lisp event, rather
8898 than calculating (incorrect) values locally.
8900 * scroll.c: Make (some) trivial substitutions for renamed and
8901 new macros in dispextern.h, frame.h and window.h.
8903 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
8906 * sysdep.c: Make (few) trivial substitutions for renamed and
8907 new macros in dispextern.h, frame.h and window.h.
8909 * term.c: Make (some) trivial substitutions for renamed and
8910 new macros in dispextern.h, frame.h and window.h.
8912 * widget.c: Make (few) trivial substitutions for renamed and
8913 new macros in dispextern.h, frame.h and window.h.
8915 * window.c: Make (many) trivial substitutions for renamed and
8916 new macros in dispextern.h, frame.h and window.h.
8917 (make_window): Initialize new members
8918 left_margin_cols, right_margin_cols, left_fringe_width,
8919 right_fringe_width, fringes_outside_margins, scroll_bar_width,
8920 and vertical_scroll_bar_type.
8921 (coordinates_in_window): Adapt to new fringe/margin positions
8922 and per-window fringes and scroll-bars.
8923 Fix bug related to incorrectly adjusting coordinates by
8924 frame's internal_border_width (the effect normally negible since
8925 the internal_border_width is typically 0 or 1 pixel, but very
8926 noticeable for an internal_border_width of e.g. 25 pixels).
8927 Upon successful return (other than ON_NOTHING), the coordinates
8928 are now always properly converted to window relative for the
8929 given display element.
8930 (window_from_coordinates): Add new parameters wx and wy to
8931 return the window relative x and y position in the returned
8932 window and part. A null arg means, don't return the position.
8933 All callers changed.
8934 (adjust_window_margins): New function which may reduce the width
8935 of the display margins if a window's text area is too small after
8936 resizing or splitting windows.
8937 (size_window): Fix bug that did not account for display margin
8938 widths when checking the minimum width of a window; use
8939 adjust_window_margins.
8940 (set_window_buffer): Call Fset_window_fringes and
8941 Fset_window_scroll_bars to setup per-window elements.
8942 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
8943 existing display margin, fringe widths, and scroll bar settings
8944 (e.g. after splitting a window or resizing the frame).
8945 All callers changed.
8946 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
8947 (Fsplit_window): Duplicate original window's display margin,
8948 fringe, and scroll-bar settings; then call Fset_window_buffer with
8949 KEEP_MARGINS non-nil. This fixes a bug which caused a split
8950 window to only preserve the display margins in one of the windows.
8951 When splitting horizontally, call adjust_window_margins on both
8952 windows to ensure that the text area of the new windows is non too
8953 narrow. This fixes a bug which could cause Emacs to trap if the
8954 width of the split window was less than the width of the display
8956 (window_box_text_cols): Rename from window_internal_width.
8957 All uses changed. Adapt to per-window fringes and scroll bars.
8958 Fix bug that caused vertical separator to be subtracted also on
8959 window frames. Fix another bug that did not reduce the returned
8960 value by the columns used for display margins.
8961 (window_scroll_line_based): Fix bug related to scrolling too much
8962 when display margins are present (implicitly fixed by the fix to
8963 window_box_text_cols).
8964 (scroll_left, scroll_right): Fix bug related to scrolling too far
8965 by default when display margins are present (implicitly fixed by
8966 the fix to window_box_text_cols).
8967 (struct saved_window): Rename members left to left_col, top to
8968 top_line, width to total_cols, height to total_lines, orig_top to
8969 orig_top_line, orig_height to orig_total_lines. All uses changed.
8970 New members left_margin_cols, right_margin_cols,
8971 left_fringe_width, right_fringe_width, fringes_outside_margins,
8972 scroll_bar_width, and vertical_scroll_bar_type for saving
8973 per-window display elements.
8974 (Fset_window_configuration): Restore display margins, fringes,
8975 and scroll bar settings. This fixes a bug which caused display
8976 margins to be discarded when saving and restoring a window
8978 (save_window_save): Save display margins, fringes, and scroll bar
8979 settings. This fixes a bug which caused display margins to be
8980 discarded when saving and restoring a window configuration.
8981 (Fset_window_margins): Do nothing if display margins are not
8982 really changed. Otherwise, call adjust_window_margins to ensure
8983 the text area doesn't get too narrow. This fixes a bug which
8984 could cause Emacs to trap if setting display margins wider than
8985 the width of the window.
8986 (Fset_window_fringes): New defun to allow user to specifically set
8987 this window's fringe widths and position vs. display margins.
8988 (Fwindow_fringes): New defun to return window's actual fringe settings.
8989 (Fset_window_scroll_bars): New defun to allow user to specifically
8990 set this window's scroll bar width and position.
8991 (Fwindow_scroll_bars): New defun to return window's actual scroll
8993 (compare_window_configurations): Also compare display margins,
8994 fringes, and scroll bar settings.
8995 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
8997 * xdisp.c: Make (many) trivial substitutions for renamed and
8998 new macros in dispextern.h, frame.h and window.h.
8999 (window_box_width): Adapt to per-window fringes and scroll bars,
9000 and new fringe vs. display margin position. Note that returned
9001 value is no longer guaranteed to be a whole multiple of the frame
9002 column width, since per-window fringes may now be any width.
9003 (window_box_left_offset): New function like window_box_left, but
9004 value is relative to left border of window (rather than frame).
9005 (window_box_right_offset): New function like window_box_right,
9006 but value is relative to left border of window.
9007 (window_box_left): Adapt to per-window fringes and scroll bars,
9008 and new fringe vs. display margin position. Simplify by using
9009 WINDOW_LEFT_EDGE_X and window_box_left_offset.
9010 (window_box): Allow null args for unnecessary return values;
9011 change/simplify relevant callers.
9012 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9013 and new fringe vs. display margin position.
9014 Use window_box_left_offset and window_box_right_offset
9015 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9016 scroll bars, and new fringe vs. display margin position.
9017 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
9018 (draw_fringe_bitmap): Rework to handle per-window fringes and new
9019 fringe vs. display margin position.
9020 (hscroll_window_tree): Use window_box_width instead of window_box.
9021 (redisplay_window): Adapt to per-window scroll bars.
9022 (draw_glyphs): Rework to handle per-window fringes and scroll
9023 bars, and new fringe vs. display margin position.
9024 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
9025 (x_clear_end_of_line): Adapt to per-window fringes and scroll
9026 bars, and new fringe vs. display margin position. Fix bug which
9027 increased total width of full_width rows by width of scroll bars
9028 although window's total width already includes that.
9029 (x_fix_overlapping_area): Simplify using window_box_left_offset.
9030 (expose_area): Simplify using window_box_left_offset.
9031 (x_draw_vertical_border): Handle per-window scroll bar settings,
9032 mixing windows with left, right and no scroll bars.
9034 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
9035 where it's used in x_list_fonts (for clarity).
9036 (frame_update_line_height): Remove unused function; functionality
9037 is now done directly when setting the default font in x_set_font.
9039 * xfns.c: Make (many) trivial substitutions for renamed and
9040 new macros in dispextern.h, frame.h and window.h.
9042 * xmenu.c: Make (some) trivial substitutions for renamed and
9043 new macros in dispextern.h, frame.h and window.h.
9045 * xterm.h (struct x_output): Move members left_pos, top_pos,
9046 border_width, pixel_height, pixel_width, line_height,
9047 internal_border_width, vertical_scroll_bar_extra,
9048 left_fringe_width, right_fringe_width, fringe_cols,
9049 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
9050 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
9051 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
9052 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
9053 (PIXEL_WIDTH, PIXEL_HEIGHT)
9054 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
9055 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
9056 frame.h and renamed [see frame.h changes].
9057 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
9058 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
9059 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
9060 and renamed [see frame.h changes].
9062 * xterm.c: Make (several) trivial substitutions for renamed and
9063 new macros in dispextern.h, frame.h and window.h.
9064 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
9065 (scroll_run): Adapt to new fringe position.
9066 (glyph_rect): Use window coordinates returned from
9067 window_from_coordinates rather than frame_to_window_pixel_xy.
9068 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
9070 (handle_one_xevent): Simplify a USE_GTK conditional.
9071 (x_clip_to_row): Remove superfluous whole_line_p arg and code
9072 (fringes are now inside margins, i.e. always in the clipping area).
9073 All callers changed.
9074 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
9075 directly, then call compute_fringe_widths. Don't call
9076 frame_update_line_height.
9078 * w32term.h (struct w32_output): Move members left_pos, top_pos,
9079 border_width, pixel_height, pixel_width, line_height,
9080 internal_border_width, vertical_scroll_bar_extra,
9081 left_fringe_width, right_fringe_width, fringe_cols,
9082 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
9083 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
9084 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
9085 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
9086 (PIXEL_WIDTH, PIXEL_HEIGHT)
9087 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
9088 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
9089 frame.h and renamed [see frame.h changes].
9090 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
9091 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
9092 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
9093 and renamed [see frame.h changes].
9095 * w32term.c: Make (several) trivial substitutions for renamed and
9096 new macros in dispextern.h, frame.h and window.h.
9097 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
9098 (glyph_rect): Use window coordinates returned from
9099 window_from_coordinates rather than frame_to_window_pixel_xy.
9100 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
9102 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
9103 (fringes are now inside margins, i.e. always in the clipping area).
9104 All callers changed.
9105 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
9106 directly, then call compute_fringe_widths. Don't call
9107 frame_update_line_height.
9109 * w32console.c: Make (few) trivial substitutions for renamed and
9110 new macros in dispextern.h, frame.h and window.h.
9112 * w32fns.c: Make (many) trivial substitutions for renamed and
9113 new macros in dispextern.h, frame.h and window.h.
9115 * w32menu.c: Make (few) trivial substitutions for renamed and
9116 new macros in dispextern.h, frame.h and window.h.
9118 * macterm.h (struct mac_output): Move members left_pos, top_pos,
9119 border_width, pixel_height, pixel_width, line_height,
9120 internal_border_width, vertical_scroll_bar_extra,
9121 left_fringe_width, right_fringe_width, fringe_cols,
9122 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
9123 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
9124 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
9125 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
9126 (PIXEL_WIDTH, PIXEL_HEIGHT)
9127 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
9128 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
9129 frame.h and renamed [see frame.h changes].
9130 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
9131 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
9132 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
9133 and renamed [see frame.h changes].
9135 * macterm.c: Make (several) trivial substitutions for renamed and
9136 new macros in dispextern.h, frame.h and window.h.
9137 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
9138 (glyph_rect): Use window coordinates returned from
9139 window_from_coordinates rather than frame_to_window_pixel_xy.
9140 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
9142 (x_clip_to_row): Remove superfluous whole_line_p arg and code
9143 (fringes are now inside margins, i.e. always in the clipping area).
9144 All callers changed.
9145 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
9146 directly, then call compute_fringe_widths. Don't call
9147 frame_update_line_height.
9149 * macfns.c: Make (several) trivial substitutions for renamed and
9150 new macros in dispextern.h, frame.h and window.h.
9151 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
9153 * macmenu.c: Make (few) trivial substitutions for renamed and
9154 new macros in dispextern.h, frame.h and window.h.
9156 * msdos.h (struct x_output): Remove members left_pos, top_pos,
9157 and line_height, and use corresponding new members in struct
9158 frame. All uses changed.
9159 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
9160 superseeded by corresponding macros in frame.h.
9162 * msdos.c: Make (several) trivial substitutions for renamed and
9163 new macros in dispextern.h, frame.h and window.h.
9164 (IT_note_mouse_highlight): Use updated window coordinates returned
9165 by window_from_coordinates, rather than adjusting them locally.
9166 (internal_terminal_init): No need to initialize line_height here;
9167 it now defaults to 1.
9169 2003-05-24 Stefan Monnier <monnier@cs.yale.edu>
9171 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
9172 dropping `down' events.
9174 2003-05-24 Andreas Schwab <schwab@suse.de>
9176 * coding.c (find_safe_codings): Fix last change.
9178 2003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
9180 * xfns.c (x_window): Fix typo from 2003-05-21 change.
9182 2003-05-23 Stefan Monnier <monnier@cs.yale.edu>
9184 * xdisp.c (display_mode_element): Increase max depth.
9185 Simplify the error handling code. Use a different error string
9186 for the case where we hit the depth limit.
9188 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
9190 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
9192 2003-05-21 Stefan Monnier <monnier@cs.yale.edu>
9194 * intervals.c (get_local_map): Don't get char-property of previous
9195 point any more: get_pos_property already does it and better.
9197 2003-05-21 Dave Love <fx@gnu.org>
9199 [Merged from unicode branch.]
9201 * xfns.c (x_window, x_window): Use use_xim.
9203 * xterm.c (use_xim): Initialize.
9204 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
9205 (x_term_init): Maybe set use_xim.
9207 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
9209 2003-05-21 Jason Rumney <jasonr@gnu.org>
9211 * unexw32.c (_start): Remove _fmode initialization.
9213 * emacs.c (main) [WINDOWSNT]: Move it here.
9215 2003-05-20 Dave Love <fx@gnu.org>
9217 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
9219 2003-05-19 Richard M. Stallman <rms@gnu.org>
9221 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
9222 as value for QCfont attribute.
9223 (realize_default_face): lface should already exist; crash if not.
9224 Specify 0 for FORCE_P when calling set_lface_from_font_name.
9226 * frame.c (Fignore_event): Doc fix.
9228 2003-05-19 Kenichi Handa <handa@m17n.org>
9230 * coding.c (decode_coding_string): Handle post-read-conversion
9231 even if the coding doesn't require decoding.
9233 2003-05-18 Richard M. Stallman <rms@gnu.org>
9235 * callproc.c (Fcall_process_region): Doc fix.
9237 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
9239 * lread.c (Fload): Print a message if package is obsolete.
9241 * window.c (Fselect_window): Add optional `norecord' arg.
9242 (select_window_1): Fold into Fselect_window.
9243 (select_window_norecord): New function.
9244 (temp_output_buffer_show): Use it. Preserve current buffer.
9246 * window.h (Fselect_window): Update declaration.
9248 * window.c (delete_window, Fother_window, Fset_window_configuration):
9249 * minibuf.c (read_minibuf):
9250 * macterm.c (x_new_focus_frame):
9251 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
9252 * callint.c (Fcall_interactively):
9253 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
9255 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
9257 2003-05-17 David Kastrup <dak@gnu.org>
9259 * process.c (read_process_output): Back out change from 2003-03-09.
9261 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
9263 * editfns.c (get_pos_property): Don't assume that `object' = nil.
9265 * textprop.c (text_property_stickiness): New arg `buffer'.
9267 * intervals.h (text_property_stickiness): New arg `buffer'.
9268 (get_pos_property): Declare.
9270 * intervals.c (get_local_map): Use get_pos_property, to obey
9271 stickiness and empty overlays.
9272 (create_root_interval, graft_intervals_into_buffer): Use BEG.
9273 (merge_properties, intervals_equal, merge_properties_sticky):
9275 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
9277 2003-05-17 Richard M. Stallman <rms@gnu.org>
9279 * minibuf.c (read_minibuf): If buffer is empty, record the default
9281 (Fminibuffer_complete_word): When deleting the overlap, take account
9282 of its real position.
9284 * fns.c (map_char_table): Fix previous change.
9286 * syntax.c (find_defun_start):
9287 When open_paren_in_column_0_is_defun_start,
9288 return beginning of buffer.
9290 * lisp.h (map_char_table): Declare added arg.
9292 * fns.c (map_char_table): New arg TABLE gets the master table.
9294 Process default and inheritance, resorting to Faref if necessary.
9296 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
9297 (Faccessible_keymaps): Pass new arg to map_char_table.
9299 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
9301 * casetab.c (set_case_table): Pass new arg to map_char_table.
9303 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
9305 * lisp.h (specbinding_func): New typedef.
9306 (struct specbinding): Use specbinding_func, to put the `volatile'
9309 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
9310 to avoid GCC warning.
9312 2003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
9314 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
9316 2003-05-15 Stefan Monnier <monnier@cs.yale.edu>
9318 * keyboard.c (apply_modifiers): Don't fill the other cache.
9320 2003-05-14 Stefan Monnier <monnier@cs.yale.edu>
9322 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
9324 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
9325 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
9326 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
9327 (Fset_window_configuration, Fcurrent_window_configuration)
9328 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
9329 (Fpos_visible_in_window_p, mark_window_cursors_off)
9330 (window_internal_height, window_internal_width, Frecenter)
9331 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
9332 (replace_buffer_in_all_windows, init_window_once, init_window)
9333 (syms_of_window, keys_of_window): Move from lisp.h.
9334 * lisp.h: Move window.c declarations to window.h.
9336 * bytecode.c: Include window.h.
9337 * emacs.c: Include window.h.
9339 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9340 (keyremap): Add `parent' field.
9341 (keyremap_step): Use it. Remove `parent' argument.
9342 (read_key_sequence): Setup and use the new `parent' field.
9344 2003-05-11 Stefan Monnier <monnier@cs.yale.edu>
9346 * keyboard.c (adjust_point_for_property): Ensure termination.
9348 2003-05-10 Stefan Monnier <monnier@cs.yale.edu>
9350 * keyboard.c (follow_key): Remove dead variable `did_meta'.
9351 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
9352 duplicated handling of function-key-map and key-translation-map
9353 in read_key_sequence.
9354 (read_key_sequence): Use them.
9356 * keyboard.c (adjust_point_for_property): Try harder to move point
9357 to the non-sticky end of an invisible property.
9359 * xdisp.c (single_display_prop_intangible_p): Make `space' display
9360 property intangible as well.
9362 2003-05-10 Andreas Schwab <schwab@suse.de>
9364 * xmenu.c (single_menu_item): Change last parameter to void* to
9367 2003-05-09 Richard M. Stallman <rms@gnu.org>
9369 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
9370 Bind Qinhibit_modification_hooks to t so there will be no GC.
9371 Rename local `tem' to `save_deactivate_mark'.
9373 * eval.c (specpdl_ptr): Declare volatile.
9374 (unbind_to): Copy the whole binding and decrement specpdl_ptr
9375 before doing the work of unbinding it.
9377 * lisp.h (struct specbinding): Declare elements volatile.
9378 (specpdl_ptr): Declare volatile.
9380 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
9382 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
9383 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
9385 2003-05-08 Dave Love <fx@gnu.org>
9387 * coding.c (Vlast_coding_system_used): Doc fix.
9389 2003-05-07 Jason Rumney <jasonr@gnu.org>
9391 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
9392 when system does not support them.
9394 2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
9396 * fileio.c (Qwrite_region_annotate_functions): New var.
9397 (build_annotations): Use it to process the global part of the hook.
9398 (syms_of_fileio): Init and staticpro it.
9400 * keyboard.c (safe_run_hooks_error): Display a message instead of
9401 silently ignoring the error.
9403 2003-05-03 Stefan Monnier <monnier@cs.yale.edu>
9405 * keyboard.c (input_available_signal): Mark static.
9406 (menu_bar_items): Use map_keymap.
9407 (menu_bar_one_keymap): Remove.
9408 (menu_bar_item): Adjust arglist (for use in map_keymap).
9409 Properly hide a second binding when not both are keymaps.
9411 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
9412 (single_keymap_panes): Use it and map_keymap.
9413 (single_menu_item): Use skp as well.
9415 * keymap.h (map_keymap_function_t): New type.
9416 (map_keymap): Declare.
9418 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
9419 (map_keymap_call, Fmap_keymap): New functions.
9420 (syms_of_keymap): Defsubr map-keymap.
9422 2003-05-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9424 * gtkutil.c (create_dialog, make_widget_for_menu_item)
9425 (make_menu_item, create_menus, xg_update_menu_item): Don't call
9426 ..._with_mnemonic functions for menu items.
9428 2003-05-01 Kenichi Handa <handa@m17n.org>
9430 * coding.c (coding_system_accept_latin_extra_p): Delete this
9432 (find_safe_codings): Pay attention to
9433 the property tranlsation-table-for-encode of each codings.
9434 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
9436 2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
9438 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
9440 2003-04-30 Stefan Monnier <monnier@cs.yale.edu>
9442 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
9444 * lisp.h (CHECK): Wrap args in parenthesis.
9445 (specbind): Fix doc: symbol = Qnil is not supported any more.
9447 * bytecode.c (Fbyte_code) <unwind-protect>:
9448 Use Fprogn rather than 0 and Qnil.
9450 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
9451 `double', and `triple' modifiers as well.
9453 2003-04-30 Richard M. Stallman <rms@gnu.org>
9455 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
9457 * alloc.c (abort_on_gc): New variable.
9458 (Fgarbage_collect): Abort if abort_on_gc is set.
9460 * lisp.h (abort_on_gc): Add decl.
9462 * eval.c (Fsignal): Clear abort_on_gc.
9464 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
9465 Reinit FORMAT_START and END before second scan.
9467 * xdisp.c (move_it_vertically_backward): Do the final big else
9468 even if nlines is 0.
9470 * xdisp.c (redisplay_internal): Finish the per-frame loop
9471 even if redisplay is suspended by input.
9473 2003-04-24 Andrew Choi <akochoi@shaw.ca>
9475 * macterm.c (x_list_fonts): Return all fonts that match if
9478 2003-04-25 Kenichi Handa <handa@m17n.org>
9480 * syntax.c (skip_chars): Fix previous change.
9482 2003-04-24 Kenichi Handa <handa@m17n.org>
9484 * syntax.c (skip_chars): Make the code faster by using the common
9485 technique of *p, *stop, and *endp.
9487 2003-04-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9489 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
9490 tool_bar_items so GTK tool bar expose callback does not access items
9493 2003-04-19 Stefan Monnier <monnier@cs.yale.edu>
9495 * eval.c (Fapply): Undo last change and add a comment about why.
9497 2003-04-18 Miles Bader <miles@gnu.org>
9499 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
9500 pickier PARSE_MULTIBYTE_SEQ.
9502 2003-04-17 Stefan Monnier <monnier@cs.yale.edu>
9504 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
9505 Use XCDR, XCAR, CONSP.
9506 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
9507 (Fapply): Remove unnecessary GCPRO.
9509 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
9511 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
9513 * buffer.h: Don't hardcode BEG==1.
9515 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
9517 2003-04-16 Richard M. Stallman <rms@gnu.org>
9519 * xdisp.c (try_window, try_window_reusing_current_matrix):
9520 When at end of window, set window_end_pos to Z-ZV.
9522 * buffer.c (Foverlay_recenter): Doc fix.
9524 2003-04-14 Stefan Monnier <monnier@cs.yale.edu>
9526 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
9528 2003-04-14 Andrew Choi <akochoi@shaw.ca>
9530 * macterm.c (mac_check_for_quit_char): Don't check more often than
9533 2003-04-11 Stefan Monnier <monnier@cs.yale.edu>
9535 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
9536 specially, so that they can't hide an implicit switch-frame event.
9537 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
9538 (head_table): Use switch-frame as event_kind for select-window.
9539 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
9541 * editfns.c (Fformat): Lisp_Object/int mixup.
9542 (format2): Remove unused var numargs.
9544 2003-04-11 Kenichi Handa <handa@m17n.org>
9546 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
9547 (Qafter_insert_file_set_coding): New variable.
9548 (syms_of_fileio): Initialize and staticpro it. Delete declaration
9549 for after-insert-file-adjust-coding-function.
9550 (Finsert_file_contents): Call Qafter_insert_file_set_coding
9551 instead of Vafter_insert_file_adjust_coding_function.
9553 2003-04-11 Kenichi Handa <handa@m17n.org>
9555 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
9557 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
9558 string. Callers changed.
9560 2003-04-10 Kenichi Handa <handa@m17n.org>
9562 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
9563 (syms_of_fileio): Declare it as a lisp variable.
9564 (Finsert_file_contents):
9565 Call Vafter_insert_file_adjust_coding_function before calling
9568 2003-04-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9570 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
9571 get GtkAdjustment as widget now is a GtkRange.
9573 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
9574 GtkRange to avoid memory leak.
9576 2003-04-09 Kenichi Handa <handa@m17n.org>
9578 * xfaces.c (Vface_font_rescale_alist): New variable.
9579 (struct font_name): New member rescale_ratio.
9580 (font_rescale_ratio): New function.
9581 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
9582 (better_font_p): On comparing point sized, pay attention to
9583 recale_ratio member of fonts.
9584 (build_scalable_font_name): Reflect font->rescale_ratio in the
9586 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
9588 * lread.c (read1): Before calling index, check if the 2nd
9589 arguemnt is in ASCII range.
9591 2003-04-08 Richard M. Stallman <rms@gnu.org>
9593 * fileio.c (Ffile_symlink_p): Doc fix.
9595 * editfns.c (Fformat): Translate positions of text properties
9596 in the format string to apply them to the result.
9598 * fileio.c (Finsert_file_contents): Doc fix.
9599 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
9601 2003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
9603 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
9605 2003-04-08 Steven Tamm <steventamm@mac.com>
9607 * mac.c (init_mac_osx_environment): Switch libexec and bin so
9608 that self-contained application finds libexec files.
9610 2003-04-08 Kenichi Handa <handa@m17n.org>
9612 * coding.c (code_convert_region_unwind):
9613 Set Vlast_coding_system_used to the argument.
9614 (code_convert_region): If post-read-conversion function changed
9615 the value of last-coding-sytem, keep the new value in
9616 coding->symbol so that it won't be overridden.
9617 (run_pre_post_conversion_on_str): Likewise.
9618 (coding_system_accept_latin_extra_p): New function.
9619 (find_safe_codings): Pay attention to characters registered in
9620 latin-extra-code-table.
9622 2003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
9624 * Makefile.in (md5.o): Add missing dependency info.
9626 2003-04-06 Richard M. Stallman <rms@gnu.org>
9628 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
9630 * marker.c (verify_bytepos): New function.
9632 * intervals.c (set_intervals_multibyte_1): When becoming
9633 multibyte, adjust right and left child sizes to a whole set of
9634 characters. If an interval gets zero total-length, delete it.
9635 If an interval consists of just its children, delete one of them.
9637 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
9638 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
9640 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
9642 (lisp_malloc): Do the work here directly.
9644 2003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
9646 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
9649 2003-04-04 Kenichi Handa <handa@m17n.org>
9651 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
9652 destructively change "%S" to "%s".
9654 2003-04-03 Miles Bader <miles@gnu.org>
9656 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
9659 2003-04-01 Dave Love <fx@gnu.org>
9661 * xfns.c (xpm_lookup_color): Grok "opaque".
9663 2003-03-31 Andrew Choi <akochoi@shaw.ca>
9665 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
9668 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
9670 * macterm.h (struct mac_output): Define x_pixels_diff and
9673 2003-03-31 Juanma Barranquero <lektu@terra.es>
9675 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
9676 blockinput.h and files included from it.
9678 2003-03-31 Kim F. Storm <storm@cua.dk>
9680 The following changes consolidates the common code related to
9681 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
9684 * frame.c: Include blockinput.h.
9685 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
9686 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
9687 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
9689 (struct frame_parm_table, frame_parms): New table for describing
9690 frame parameters and their associated Q-variable.
9691 The order of the parameters corresponds to the sequence of the
9692 frame_parm_handlers table in redisplay_interface.
9693 (x_fullscreen_move, x_set_frame_parameters)
9694 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
9695 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
9696 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
9697 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
9698 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
9699 Generic functions for processing of frame parameters.
9700 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
9701 (display_x_get_resource, x_get_resource_string): Functions for
9702 generic access to X resources.
9703 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
9704 (x_default_parameter, Fx_parse_geometry): Functions for generic
9705 access to frame parameters.
9706 (x_figure_window_size): Generic calculation of frame size.
9707 Fixed to add space needed for tool bar. Also setup size_hint_flags.
9708 (syms_of_frame): Intern and staticpro frame parameter variables.
9709 Defvar_lisp Vx_resource_class and Vx_resource_name here.
9710 Defsubr Sx_get_resource and Sx_parse_geometry.
9712 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
9713 parameter related vars defined in frame.c.
9714 (EMACS_CLASS): Define here.
9715 (enum FULLSCREEN_*): Define here.
9716 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
9717 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
9718 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
9719 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
9720 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
9721 (x_set_visibility, x_set_autoraise, x_set_autolower)
9722 (x_set_unsplittable, x_set_vertical_scroll_bars)
9723 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
9724 (x_figure_window_size): Add prototypes.
9726 * dispextern.h (frame_parm_handler): New typedef.
9727 (struct redisplay_interface): New member frame_parm_handlers.
9728 (enum resource_types): Move declaration here.
9729 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
9730 (x_default_parameter): Add prototypes.
9732 * window.c: Remove extern decl for frame parameter vars.
9733 (change_window_heights): New generic function;
9734 replaces x_change_window_heights. All users changed.
9736 * window.h (change_window_heights): Add prototype.
9738 * xfaces.c: Remove extern decl for frame parameter vars.
9740 * xterm.h (EMACS_CLASS): Remove. Use generic define.
9741 (struct w32_display_info): Fix type of xrdb member.
9742 (enum FULLSCREEN_*): Remove.
9743 Remove prototypes for generic functions (in frame.h).
9745 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
9746 parameters now defined in frame.h and frame.c.
9747 (Vx_resource_name): Remove. Use generic var.
9748 (enum x_frame_parms): Remove (bogus, unused enum).
9749 (check_x_display_info): Make non-static (for frame.c).
9750 (struct x_frame_parm_table, x_frame_parms): Remove.
9751 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
9752 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
9753 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
9754 (x_change_window_heights, x_set_autoraise, x_set_autolower)
9755 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
9756 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
9757 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
9758 Remove. Use generic functions instead.
9759 (enum resource_types): Remove.
9760 (x_set_scroll_bar_default_width): New global function (for frame.c).
9761 (Fx_create_frame): Depend on x_figure_window_size to add space for
9762 toolbar and setup size_hint_flags.
9763 (x_frame_parm_handlers): New table for redisplay_interface.
9764 (syms_of_xfns): Don't intern/staticpro removed vars.
9766 * xterm.c: Remove unnecessary extern declarations.
9767 (x_fullscreen_adjust): Remove. Use generic instead.
9768 (x_redisplay_interface): Add x_frame_parm_handlers member.
9770 * w32gui.h (XrmDatabase): New (dummy) typedef.
9772 * w32term.h (EMACS_CLASS): Remove. Use generic define.
9773 (struct w32_display_info): Fix type of xrdb member.
9774 (enum FULLSCREEN_*): Remove.
9775 (x_fullscreen_adjust): Remove prototype.
9777 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
9778 parameters now defined in frame.h and frame.c.
9779 (Vx_resource_name): Remove. Use generic var.
9780 (enum x_frame_parms): Remove (bogus, unused enum).
9781 (check_x_display_info): Make non-static (for frame.c).
9782 (struct x_frame_parm_table, x_frame_parms): Remove.
9783 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
9784 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
9785 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
9786 (x_change_window_heights, x_set_autoraise, x_set_autolower)
9787 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
9788 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
9789 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
9790 Remove. Use generic functions instead.
9791 (enum resource_types): Remove.
9792 (x_set_scroll_bar_default_width): New global function (for frame.c).
9793 (Fx_create_frame): Depend on x_figure_window_size to add space for
9794 toolbar and setup size_hint_flags.
9795 (w32_frame_parm_handlers): New table for redisplay_interface.
9796 (syms_of_w32fns): Don't intern/staticpro removed vars.
9798 * w32term.c: Remove unnecessary extern declarations.
9799 (x_fullscreen_adjust): Remove. Use generic instead.
9800 (x_redisplay_interface): Add w32_frame_parm_handlers member.
9802 * w32reg.c (x_get_string_resource): Use XrmDatabase.
9804 * macgui.h (XrmDatabase): New (dummy) typedef.
9806 * macterm.h (EMACS_CLASS): Remove.
9807 (struct mac_display_info): Add xrdb member.
9808 (struct mac_output): Add want_fullscreen member.
9810 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
9811 parameters now defined in frame.h and frame.c.
9812 (Vx_resource_name): Remove. Use generic var.
9813 (check_x_display_info): Make non-static (for frame.c).
9814 (struct x_frame_parm_table, x_frame_parms): Remove.
9815 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
9816 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
9817 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
9818 (x_change_window_heights, x_set_autoraise, x_set_autolower)
9819 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
9820 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
9821 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
9822 Remove. Use generic functions instead.
9823 (enum resource_types): Remove.
9824 (x_set_scroll_bar_default_width): New global function (for frame.c).
9825 (mac_frame_parm_handlers): New table for redisplay_interface.
9826 (syms_of_macfns): Don't intern/staticpro removed vars.
9828 * macterm.c: Remove unnecessary extern declarations.
9829 (x_redisplay_interface): Add mac_frame_parm_handlers member.
9831 * Makefile.in (frame.o): Add dependency on blockinput.h and files
9832 included from it (atimer.h and systime.h).
9834 2003-03-30 Andreas Schwab <schwab@suse.de>
9836 * xdisp.c (x_insert_glyphs): Fix swapped width and height
9837 parameters for shift_glyphs_for_insert.
9839 * macterm.c (x_redisplay_interface): Add missing entry for
9840 draw_vertical_window_border.
9842 2003-03-29 Kai Gro
\e,A_
\e(Bjohann <kai.grossjohann@gmx.net>
9844 * fileio.c (Fexpand_file_name): In the no-handler case, after
9845 expanding, look again for a handler and invoke it. This is needed
9846 for filenames like "/foo/../user@host:/bar/../baz" -- the first
9847 expansion produces "/user@host:/bar/../baz" which needs to be
9848 expanded again for the finame result "/user@host:/baz".
9850 2003-03-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9852 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
9853 of area to be redrawn for better performance.
9855 2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
9857 * xterm.c (take_vertical_position_into_account): Remove.
9858 (xt_action_hook): Call set_vertical_scroll_bar if needed.
9859 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
9860 (xm_scroll_callback, x_create_toolkit_scroll_bar)
9861 (x_set_toolkit_scroll_bar_thumb): Simplify.
9862 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
9863 (XTread_socket): Remove unused var.
9864 (x_make_frame_invisible): Replace goto with else.
9866 * xdisp.c (set_vertical_scroll_bar): New fun.
9867 (redisplay_window): Use it.
9869 2003-03-26 Richard M. Stallman <rms@gnu.org>
9871 * xdisp.c (update_tool_bar): Recompute tool bar if
9872 update_mode_lines is set. Set w->update_mode_line
9873 only if the tool bar contents actually change.
9874 (update_menu_bar): Undo previous change.
9876 2003-03-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9878 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
9879 (xg_frame_set_char_size): Calculate scroll bar width before frame
9880 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
9881 (xg_separator_p): Check for all documented separator types.
9882 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
9883 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
9885 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
9886 so tool bar gets updated.
9888 2003-03-26 Stefan Monnier <monnier@cs.yale.edu>
9890 * data.c (store_symval_forwarding): Re-instate part of the code
9891 that was deleted with too much enthusiasm.
9893 2003-03-25 Stefan Monnier <monnier@cs.yale.edu>
9895 * data.c (store_symval_forwarding): Delete special read-only
9896 hack for type == -1, since we now use ->constant instead.
9897 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
9899 * buffer.c (overlays_in): Declare static.
9900 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
9901 `constant' field rather than the variable's `type' field.
9903 2003-03-24 Andrew Choi <akochoi@shaw.ca>
9905 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
9907 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
9909 * fns.c [MAC_OSX]: Do not redefine vector.
9911 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
9913 * macgui.h: Remove definition of No_Cursor.
9915 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
9917 * xdisp.c: Define No_Cursor.
9918 (x_write_glyphs, notice_overwritten_cursor)
9919 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
9920 (note_mouse_highlight): Remove Mac-specific code.
9921 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
9923 2003-03-24 John Paul Wallington <jpw@gnu.org>
9925 * xdisp.c (redisplay_window): If mini window's buffer is not
9926 empty, then redisplay it like other windows.
9928 2003-03-23 Kim F. Storm <storm@cua.dk>
9930 * w32term.c (w32_draw_window_cursor): Fix last change.
9932 2003-03-23 Kenichi Handa <handa@m17n.org>
9934 * alloc.c (make_string_from_bytes, make_specified_string):
9935 Add `const' for the arg CONTENTS.
9937 * lisp.h (make_string_from_bytes, make_specified_string):
9938 Prototypes adjusted.
9940 2003-03-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9942 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
9944 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
9945 (XG_SB_RANGE): New define.
9947 * gtkutil.c (xg_fixed_handle_expose): New function.
9948 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
9950 (xg_update_scrollbar_pos): Take two more arguments, left and width
9951 of scroll bar including borders.
9952 Clear left and right part outside scroll bar separately as some
9953 themes have bars that are not an even number of pixels.
9954 Don't set reallocate_redraws, don't call
9955 gdk_window_process_all_updates.
9956 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
9957 so no need to change it. Calculate size and value with XG_SB_RANGE.
9959 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
9960 Pass left and width of scroll bar including borders to
9961 xg_update_scrollbar_pos.
9963 2003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
9965 * Makefile.in: Make sure space precedes end-of-line backslashes.
9967 2003-03-22 Kim F. Storm <storm@cua.dk>
9969 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
9970 Add generic versions here. Remove system specific versions
9973 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
9976 * xterm.h (STORE_NATIVE_RECT): New macro.
9978 2003-03-21 Kim F. Storm <storm@cua.dk>
9980 * xdisp.c (get_glyph_string_clip_rect):
9981 Use FRAME_INTERNAL_BORDER_WIDTH.
9983 * dispextern.h (struct redisplay_interface): Add active_p
9984 argument to draw_window_cursor member. All uses changed.
9986 2003-03-21 Kim F. Storm <storm@cua.dk>
9988 The following changes consolidate code related to writing and
9989 inserting glyphs, exposing frame, the tool bar, the mouse face,
9990 the output cursor, and help echo from xterm.c, w32term.c and
9991 macterm.c into xdisp.c. It also generalizes the use of the
9992 window_part enum instead of using numeric values throughout.
9994 * xdisp.c: Consolidate gui-independent code here.
9996 (Qhelp_echo): Import.
9997 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
9998 (help_echo_string, help_echo_window, help_echo_object)
9999 (previous_help_echo_string, help_echo_pos): Declare here.
10000 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
10001 (estimate_mode_line_height): Define here. Handle windowing
10002 systems directly (without using estimate_mode_line_height_hook).
10003 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
10004 (update_window_cursor, update_cursor_in_window_tree)
10005 (fast_find_position, fast_find_string_pos)
10006 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
10007 (expose_area, expose_line, expose_overlaps, expose_window)
10008 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
10009 declared static as they are only used locally in xdisp.c.
10010 (draw_glyphs): Rename from x_draw_glyphs and make static.
10011 (tool_bar_item_info, notice_overwritten_cursor): Make static.
10012 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
10013 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
10014 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
10015 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
10016 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
10017 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
10018 (note_mouse_highlight, x_clear_window_mouse_face)
10019 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
10020 (x_intersect_rectangles): New generic functions for use by xdisp.c
10021 and GUI front-ends.
10022 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
10023 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
10025 * dispextern.h (Display_Info): Generic typedef for *_display_info.
10026 (NativeRectangle): Generic typedef for rectangle type.
10027 (enum window_part): Move here from window.c.
10028 (struct redisplay_interface): New members flush_display_optional,
10029 define_frame_cursor, clear_frame_area, draw_window_cursor,
10030 draw_vertical_window_border, shift_glyphs_for_insert.
10031 Rename member clear_mouse_face to clear_window_mouse_face.
10032 (estimate_mode_line_height_hook): Remove hook.
10033 (auto_raise_tool_bar_buttons_p): Don't declare extern.
10034 (tool_bar_item_info): Remove prototype.
10035 (help_echo_string, help_echo_window, help_echo_object)
10036 (previous_help_echo_string, help_echo_pos)
10037 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
10038 (x_stretch_cursor_p, output_cursor): Declare extern.
10039 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
10040 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
10041 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
10042 (display_and_set_cursor, set_output_cursor, x_cursor_to)
10043 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
10044 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
10045 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
10046 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
10047 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
10049 (mode_line_string, marginal_area_string): Fix prototypes.
10051 * window.c (enum window_part): Move to dispextern.h.
10052 (coordinates_in_window): Use enum window_part member names
10053 instead of numbers to describe return value.
10054 (struct check_window_data): Change part member to window_part.
10055 (check_window_containing): Return window_part unaltered.
10056 (window_from_coordinates): Change part arg from int to enum
10057 window_part. Allow part arg to be null. All users changed.
10059 * window.h (window_from_coordinates): Fix prototype.
10061 * term.c (estimate_mode_line_height): Move to xdisp.c.
10063 * keyboard.c (make_lispy_event): Use enum window_part.
10065 * dispnew.c (mode_line_string, marginal_area_string): Use enum
10066 window_part instead of int in arg list. Users changed.
10068 * xterm.h (No_Cursor): Declare as None for X.
10069 (struct mac_output): Replace member cross_cursor by hand_cursor.
10071 * xterm.c: Remove consolidated defines and code.
10072 (BETWEEN): Remove unused macro.
10073 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
10074 (x_define_frame_cursor, x_clear_frame_area)
10075 (x_draw_window_cursor): New X-specific functions for RIF.
10076 (x_redisplay_interface): Add new members.
10078 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
10080 * w32term.h (struct w32_output): Remove cross_cursor member.
10082 * w32term.c: Remove consolidated defines and code.
10083 (BETWEEN): Remove unused macro.
10084 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
10085 (w32_define_frame_cursor, w32_clear_frame_area)
10086 (w32_draw_window_cursor): New W32-specific functions for RIF.
10087 (w32_redisplay_interface): Add new members.
10089 * w32gui.h (No_Cursor): Define as 0 for W32.
10090 (XRectangle): Add X compatible rectangle type.
10091 (NativeRectangle): Declare as RECT for W32.
10092 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
10094 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
10096 * w32console.c: Remove consolidated defines and code.
10098 * msdos.h (Display_Info): Add generic typedef.
10100 * msdos.c: Remove consolidated defines and code.
10101 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
10103 * macterm.h (struct mac_output): Replace member cross_cursor by
10105 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
10107 * macterm.c: Remove consolidated defines and code.
10108 (BETWEEN): Remove unused macro.
10109 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
10110 (mac_define_frame_cursor, mac_clear_frame_area)
10111 (mac_draw_window_cursor): New Mac-specific functions for RIF.
10112 (x_redisplay_interface): Add new members.
10114 * macgui.h (No_Cursor): Define as 0 for Mac.
10115 (XRectangle): Add X compatible rectangle type.
10116 (NativeRectangle): Declare as Rect for Mac.
10117 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
10119 * macfns.c (x_set_mouse_color): Setup hand_cursor.
10120 (x_set_cursor_color): Use x_display_and_set_cursor.
10122 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
10123 included from it. Add dependency on keymap.h.
10125 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
10127 2003-03-21 Kenichi Handa <handa@m17n.org>
10129 * fileio.c (Fexpand_file_name): Fix previous change.
10131 2003-03-19 Kenichi Handa <handa@m17n.org>
10133 * fileio.c (Ffile_name_directory): Reconstruct file name by
10134 make_specified_string.
10135 (Ffile_name_nondirectory, Ffile_name_as_directory)
10136 (Fdirectory_file_name, Fexpand_file_name)
10137 (Fsubstitute_in_file_name): Likewise.
10138 (Fread_file_name): Compare decoded homedir with DIR and
10141 * alloc.c (make_specified_string): If NCHARS is negative, count
10142 the number of characters.
10144 2003-03-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10146 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
10149 * gtkutil.h: Removed xg_ignore_next_thumb.
10151 2003-03-18 Kenichi Handa <handa@m17n.org>
10153 * coding.c (Vchar_coding_system_table): Remove this variable.
10154 (Vcoding_system_safe_chars): New variable.
10155 (intersection): Remove this function.
10156 (find_safe_codings): Don't use Vchar_coding_system_table, but try
10157 all codings in SAFE_CODINGS.
10158 (Ffind_coding_systems_region_internal): Adjust for the change of
10159 find_safe_codings. Get generic coding systems from
10160 Vcoding_system_safe_chars.
10161 (Fdefine_coding_system_internal): New function.
10162 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
10163 Initialize and staticpro Vcoding_system_safe_chars.
10165 2003-03-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10167 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
10168 equal old values before updating.
10170 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
10172 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
10174 2003-03-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10176 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
10177 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
10178 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
10179 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
10180 (xg_create_scroll_bar): Pass bar to button event callback.
10181 (xg_find_top_left_in_fixed): New function.
10182 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
10183 whole scroll bar area. Get old position with
10184 xg_find_top_left_in_fixed, calculate and only clear needed areas.
10185 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
10186 dragging is in progress. Calculate whole as for Motif.
10187 Remove code that saved last values. Call gtk_range functions to
10188 set scroll bar sizes.
10190 * gtkutil.h: Removed xg_ignore_next_thumb.
10192 2003-03-17 Juanma Barranquero <lektu@terra.es>
10194 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
10195 and files included from it.
10197 2003-03-18 Stefan Monnier <monnier@cs.yale.edu>
10199 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
10200 multiple occurrences of the same keymap under different prefixes.
10201 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
10203 2003-03-16 Jason Rumney <jasonr@gnu.org>
10205 * w32gui.h: Use HDC for Display.
10207 * w32term.c (w32_encode_char): Prevent double-byte chars from
10210 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
10213 2003-03-16 Juanma Barranquero <lektu@terra.es>
10215 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
10217 2003-03-16 Kim F. Storm <storm@cua.dk>
10219 The following changes consolidate some of the gui-independent
10220 parts of the processing and drawing of "glyph strings" from
10221 xterm.c, w32term.c, and macterm.c into xdisp.c.
10223 * dispextern.h (struct glyph): Reduce face_id member from 22 to
10224 21 bits (this reduces number of faces from 4M to 2M).
10225 Replace W32 specific w32_font_type member (2 bits) by generic
10226 font_type member (3 bits) for portability.
10227 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
10228 (enum draw_glyphs_face): Define here.
10229 (struct glyph_string): Define here. Merge W32 and X versions.
10230 (struct redisplay_interface): New members per_char_metric,
10231 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
10232 (VCENTER_BASELINE_OFFSET): Define here.
10233 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
10234 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
10236 * xdisp.c: Consolidate gui-independent "glyph string" code here.
10237 (dump_glyph_string): Moved here.
10238 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
10239 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
10240 (fill_composite_glyph_string, fill_glyph_string)
10241 (fill_image_glyph_string, fill_stretch_glyph_string)
10242 (left_overwritten, left_overwriting, right_overwritten)
10243 (right_overwriting, get_char_face_and_encoding)
10244 (set_glyph_string_background_width, compute_overhangs_and_x)
10245 (append_glyph, append_composite_glyph, produce_image_glyph)
10246 (take_vertical_position_into_account, append_stretch_glyph)
10247 (produce_stretch_glyph): New generic functions (based on X version).
10248 Call platform specific functions through rif.
10249 (INIT_GLYPH_STRING): New macro, hides W32 details.
10250 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
10251 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
10252 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
10253 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
10254 (notice_overwritten_cursor):
10255 Generic functions exported to platform modules. Users changed.
10257 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
10258 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
10259 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
10260 New macros for consolidated code.
10262 * xterm.c: Remove consolidated defines and code.
10263 (x_per_char_metric, x_encode_char)
10264 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
10265 (x_redisplay_interface): Add new members.
10267 * w32gui.h (Display): Add dummy typedef for consolidation.
10268 (XChar2b): Define alias for wchar_t for consolidation.
10269 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
10271 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
10272 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
10273 New macros for consolidation.
10275 * w32term.c: Remove consolidated defines and code.
10276 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
10277 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
10278 (w32_per_char_metric): Change font_type arg to int for RIF.
10279 (w32_encode_char): Return int according to RIF requirements.
10280 (w32_compute_glyph_string_overhangs): Adapt to RIF.
10281 (w32_get_glyph_overhangs): New function for RIF. Uses generic
10282 x_get_glyph_overhangs.
10283 (w32_redisplay_interface): Add new members.
10285 * macgui.h (XChar2b): Move typedef here for consolidation.
10286 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
10288 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
10289 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
10292 * macterm.c: Remove consolidated defines and code.
10293 (mac_per_char_metric): New function for RIF.
10294 (mac_encode_char): Adapt to new RIF requirements.
10295 (mac_compute_glyph_string_overhangs): Adapt for RIF.
10296 (x_redisplay_interface): Add new members.
10298 2003-03-15 Stefan Monnier <monnier@cs.yale.edu>
10300 * keymap.c (Vmenu_events): New var.
10301 (syms_of_keymap): Initialize it.
10302 (where_is_internal): Check more carefully what is a menu event.
10304 2003-03-14 Richard M. Stallman <rms@gnu.org>
10306 * lread.c (read1): After #!, exit loop on eof.
10308 2003-03-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10310 * gtkutil.h: Add declaration for xg_frame_cleared.
10312 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
10314 * gtkutil.c (struct xg_last_sb_pos): New structure.
10315 (handle_fixed_child): New function.
10316 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
10317 and force a redraw on them.
10318 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
10319 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
10320 so we can avoid unneeded redraws.
10321 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
10322 and force a redraw on the scroll bar.
10323 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
10324 if xg_last_sb_pos shows the positions are up to date.
10325 (xg_frame_cleared): New function.
10327 2003-03-13 Kenichi Handa <handa@m17n.org>
10329 * coding.c (Fdetect_coding_region): Fix docstring.
10330 (Fdetect_coding_string): Fix docstring.
10332 2003-03-13 Andreas Schwab <schwab@suse.de>
10334 * gtkutil.c: Add prototype for create_menus.
10336 * data.c (long_to_cons): Fix type of top.
10338 * xselect.c (selection_data_to_lisp_data): Use int instead of
10339 long for an integer of size 4.
10341 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
10342 (xg_tool_bar_help_callback): Likewise.
10344 2003-03-12 Andreas Schwab <schwab@suse.de>
10346 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
10348 2003-03-12 Kim F. Storm <storm@cua.dk>
10350 The following changes consolidate the fringe handling from
10351 xterm.c, w32term.c, and macterm.c into xdisp.c.
10353 * xdisp.c: Consolidate fringe handling code here.
10354 (left_bits, right_bits, continued_bits, continuation_bits)
10355 (ov_bits, zv_bits): Define fringe bitmaps.
10356 (fringe_bitmaps): New array holding fringe bitmaps.
10357 (draw_fringe_bitmap): Draw a specific bitmap; call display
10358 specific drawing routine via rif->draw_fringe_bitmap.
10359 (draw_row_fringe_bitmaps): Generic replacement for
10360 x_draw_row_fringe_bitmaps; all callers changed.
10361 (compute_fringe_widths): Generic replacement for
10362 x_compute_fringe_widths; all callers changed.
10364 * dispextern.h (enum fringe_bitmap_type): Define here.
10365 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
10366 (fringe_bitmaps): Declare extern.
10367 (struct redisplay_interface): New member draw_fringe_bitmap.
10368 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
10370 * xterm.c: Remove generic fringe code.
10371 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
10372 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
10374 * w32term.c: Remove generic fringe code.
10375 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
10376 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
10378 * macterm.c: Remove generic fringe code.
10379 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
10380 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
10382 2003-03-11 Stefan Monnier <monnier@cs.yale.edu>
10384 * print.c (Fprin1_to_string): Return unibyte string if possible.
10386 2003-03-09 David Kastrup <dak@gnu.org>
10388 * process.c (read_process_output): We have allocated enough space
10389 for readmax and carryover, so actually use the alloted space.
10391 2003-03-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10393 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
10394 toolkit scrollbar click.
10396 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
10398 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
10400 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
10401 scrollbar and control is pressed, call x_scroll_bar_handle_click.
10403 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
10405 * gtkutil.c (xg_get_scroll_id_for_window): New function.
10406 (xg_tool_bar_item_expose_callback): New function.
10407 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
10408 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
10409 on the tool bar widget.
10410 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
10411 to expose on the tool bar item widgets.
10413 2003-03-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10415 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
10416 struct image* when deciding to update (struct image* may have been
10417 deleted from the image cache).
10419 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
10420 the event isn't for a frame (i.e. for dialogs).
10422 2003-03-07 Kenichi Handa <handa@m17n.org>
10424 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
10425 composition components reaches the limit, terminate composing.
10426 (COMPOSITION_OK): New macro.
10427 (detect_coding_iso2022): Use it if an escape sequence for
10428 composition is found.
10429 (coding_restore_composition): Adjust the number of composition
10430 components if it is not sane.
10432 2003-03-06 Juanma Barranquero <lektu@terra.es>
10434 * w32term.h (struct w32_display_info): Add xrdb member to support
10435 passing resources via -xrm on Windows.
10437 * w32term.c (w32_make_rdb): New function.
10438 (w32_term_init): Use it to initialize xrdb member of w32_display_info
10439 struct. Delete leftover code.
10441 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
10442 for resources passed on the command line.
10444 * w32reg.c (w32_get_rdb_resource): New function.
10445 (x_get_string_resource): Use it, so resources passed with -xrm
10446 supercede the ones in the registry.
10448 2003-03-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10450 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
10451 instead of x_top_window_to_frame.
10453 2003-03-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10455 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
10456 when restarting Emacs.
10458 2003-03-03 Richard M. Stallman <rms@gnu.org>
10460 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
10461 to run kill-buffer-query-functions.
10462 (Qkill_buffer_query_functions): New var.
10463 (syms_of_buffer): Init and staticpro it.
10465 2003-03-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10467 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
10469 2003-02-25 Kim F. Storm <storm@cua.dk>
10471 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
10472 If centering point failed to make whole line visible and vscroll
10473 is non-zero, disable vscroll and try centering point again.
10475 * lread.c (read1): Accept `single space' syntax like (? x).
10477 2003-02-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10479 * keyboard.c (cancel_hourglass_unwind): Surround with
10480 #ifdef HAVE_X_WINDOWS
10482 2003-02-25 Kenichi Handa <handa@m17n.org>
10484 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
10485 process only when "subprocesses" is defined.
10487 2003-02-24 Stefan Monnier <monnier@cs.yale.edu>
10489 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
10491 2003-02-24 Juanma Barranquero <lektu@terra.es>
10493 * callint.c (fix_command): Declare as static void and move before
10494 Fcall_interactively.
10496 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
10497 (syms_of_xdisp): Don't initialize Qwhen.
10499 2003-02-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10501 * keyboard.c (cancel_hourglass_unwind): New function.
10502 (command_loop_1): Cancel hourglass with unwind-protect.
10504 2003-02-23 Richard M. Stallman <rms@gnu.org>
10506 * callint.c (fix_command): New subroutine, from Fcall_interactively.
10507 Detect (when ... (region-beginning)) etc.
10508 (Fcall_interactively): Call fix_command.
10509 (Qif, Qwhen): New variables.
10510 (syms_of_callint): Init and staticpro them.
10512 * regex.c (print_partial_compiled_pattern): Output to stderr.
10514 2003-02-23 Kai Gro
\e,A_
\e(Bjohann <kai.grossjohann@uni-duisburg.de>
10516 * dired.c (directory_files_internal): Don't expand directory.
10517 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
10518 instead. From Lars Hansen <larsh@math.ku.dk>.
10520 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
10522 * fns.c (string_to_multibyte): Remove unused var i.
10523 (Flanginfo): Fix int/Lisp_Object mixup.
10524 (void_call2): New fun.
10525 (Fmap_char_table): Use it in place of call2.
10527 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
10529 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
10531 * keymap.c (copy_keymap_1): Make it static.
10533 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
10535 2003-02-22 David Ponce <david@dponce.com>
10537 * lread.c (Fload): Don't check STRING_MULTIBYTE.
10539 2003-02-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10541 * process.h: Removed subtty field from struct Lisp_Process.
10543 * process.c (create_process): Remove setting of subtty.
10544 (emacs_get_tty_pgrp): New function.
10545 (Fprocess_running_child_p, process_send_signal):
10546 Call emacs_get_tty_pgrp instead of ioctl.
10547 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
10549 2003-02-21 Kai Gro
\e,A_
\e(Bjohann <kai.grossjohann@uni-duisburg.de>
10551 * keymap.c (Fdefine_key): Doc fix.
10553 2003-02-21 Juanma Barranquero <lektu@terra.es>
10555 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
10557 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
10558 POLLING_PROBLEM_IN_SELECT.
10560 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
10561 Delete #undef of POLLING_PROBLEM_IN_SELECT.
10563 * s/hpux10-20.h: New file.
10565 * process.c (wait_reading_process_input):
10566 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
10568 2003-02-20 Kenichi Handa <handa@m17n.org>
10570 * fontset.c (check_fontset_name): If NAME is nil, return the
10572 (override_font_info): New function.
10573 (Fset_fontset_font): Document that NAME nil means the default fontset.
10574 (Ffontset_info): If FONTSET is not the default fontset, merge
10575 FONTSET onto the copy of the default fontset, and work on that
10576 copy. Document that NAME nil means the default fontset.
10577 (Ffontset_font): Document that NAME nil means the default fontset.
10579 * process.c (setup_process_coding_systems): If the process's
10580 in/out descriptor is -1, do nothing.
10582 2003-02-19 Andreas Schwab <schwab@suse.de>
10584 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
10587 2003-02-19 Kenichi Handa <handa@m17n.org>
10589 * xfaces.c (try_alternative_families): Try all scalable fonts if
10590 Vscalable_fonts_allowed is not Qt.
10592 2003-02-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10594 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
10596 2003-02-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10598 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
10601 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
10602 (sorted_font_list): Move allocation of struct font_name to
10604 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
10605 (Fx_list_fonts): Set maxnames to -1 to get all font names.
10607 2003-02-18 Kim F. Storm <storm@cua.dk>
10609 * lread.c (read1): Fix last change.
10610 "`" is not always special. Allow "?" after a character constant.
10612 2003-02-18 Andrew Choi <akochoi@shaw.ca>
10614 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
10616 2003-02-18 Andreas Schwab <schwab@suse.de>
10618 * window.c (window_scroll_pixel_based): Move outside a
10619 multi-glyph character before setting new window start.
10621 * xdisp.c (in_display_vector_p): New function.
10622 * dispextern.h (in_display_vector_p): Declare.
10624 2003-02-18 Kim F. Storm <storm@cua.dk>
10626 * lread.c (read1): Fix and relax read syntax.
10627 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
10628 Only recognize "," after dotted-pair dot if inside backquote.
10629 Never include "`" or "," (inside backquote) in a symbol.
10630 Allow dotted-pair dot after a character constant.
10631 Allow "`" and "," (inside backquote) after a character constant.
10633 2003-02-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10635 * gtkutil.c (xg_tool_bar_expose_callback): New function.
10636 (xg_create_tool_bar): Force style of tool bar to be horizontal with
10637 icons. Set name of tool bar to emacs-toolbar.
10638 (update_frame_tool_bar): Connect expose event to
10639 xg_tool_bar_expose_callback.
10641 2003-02-17 Richard M. Stallman <rms@gnu.org>
10643 * keyboard.c (this_command_key_count_reset): New variable.
10644 Initiatize to 0 where this_command_key_count is set.
10645 (read_char): Save and restore this_command_key_count_reset
10646 around input method code.
10647 (read_char): If this_command_key_count_reset, echo reread commands.
10648 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
10650 2003-02-17 Kenichi Handa <handa@m17n.org>
10652 * fns.c (string_to_multibyte): Always return a multibyte string.
10654 2003-02-16 Jason Rumney <jasonr@gnu.org>
10656 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
10657 Negative max_fonts parameter means list all.
10659 2003-02-14 Dave Love <fx@gnu.org>
10661 * fns.c (Flanginfo): Doc fix.
10663 2003-02-13 Kim F. Storm <storm@cua.dk>
10665 * lread.c (read_escape): Interpret \s as a SPACE character, except
10666 for \s-X in a character constant which still is the super modifier.
10667 (read1): Signal an `invalid read syntax' error if a character
10668 constant is immediately followed by a digit or symbol character.
10670 * search.c (Fmatch_data): Doc fix. Explicitly state that
10671 match-data is undefined if last search failed.
10673 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
10676 2003-02-12 Juanma Barranquero <lektu@terra.es>
10678 * eval.c (Fdefmacro): Fix typo.
10680 2003-02-12 Kim F. Storm <storm@cua.dk>
10682 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
10683 macro is a string, convert meta modifiers in string when copying
10684 the string into a vector.
10686 2003-02-11 Kim F. Storm <storm@cua.dk>
10688 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
10690 2003-02-11 Kenichi Handa <handa@m17n.org>
10692 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
10694 2003-02-10 Kim F. Storm <storm@cua.dk>
10696 * process.c: Doc fixes.
10697 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
10699 2003-02-10 Kenichi Handa <handa@m17n.org>
10701 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
10703 * process.c (QCfilter_multibyte): New variable.
10704 (setup_process_coding_systems): New function.
10705 (Fset_process_buffer, Fset_process_filter):
10706 Call setup_process_coding_systems.
10707 (Fstart_process): Initialize the member `filter_multibyte' of
10708 struct Lisp_Process.
10709 (create_process): Call setup_process_coding_systems.
10710 (Fmake_network_process): New keyward `:filter-multibyte'.
10711 Initialize the member `filter_multibyte' of struct Lisp_Process.
10712 Call setup_process_coding_systems.
10713 (server_accept_connection): Call setup_process_coding_systems.
10714 (read_process_output): If the process has a filter, decide the
10715 multibyteness of a string to given to the filter by
10716 `filter_multibyte' member of the process. If the process doesn't
10717 have a filter and the result of conversion is unibyte, use
10718 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
10720 (Fset_process_coding_system): Call setup_process_coding_systems.
10721 (Fset_process_filter_multibyte): New function.
10722 (Fprocess_filter_multibyte_p): New function.
10723 (syms_of_process): Intern and staticpro QCfilter_multibyte.
10724 Defsubr Sset_process_filter_multibyte and
10725 Sprocess_filter_multibyte_p.
10727 * process.h (struct Lisp_Process): New member filter_multibyte.
10729 * lisp.h (setup_process_coding_systems): Add prototype.
10731 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
10732 process, update coding systems for the process.
10734 2003-02-09 Kenichi Handa <handa@m17n.org>
10736 * fns.c (string_to_multibyte): New function.
10737 (Fstring_to_multibyte): New function.
10738 (syms_of_fns): Defsubr it.
10740 2003-02-08 Andreas Schwab <schwab@suse.de>
10742 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
10743 instead of the substitution.
10745 2003-02-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10747 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
10749 * xmenu.c (menu_position_func): Adjust menu popup position so that
10750 the menu is fully visible.
10752 2003-02-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10754 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
10755 (x_make_frame_invisible, x_wm_set_icon_position):
10756 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
10758 * xfns.c (x_set_name, x_set_title): Ditto.
10760 2003-02-04 Richard M. Stallman <rms@gnu.org>
10762 * keyboard.c (echo_now): Update before_command_echo_length.
10763 (Freset_this_command_lengths): Reset this_command_key_count etc.
10764 immediately rather than arranging to do it later.
10765 (before_command_key_count_1, before_command_echo_length_1)
10766 (before_command_restore_flag): Vars deleted.
10767 (add_command_key): Don't handle before_command_restore_flag.
10768 (read_char, record_menu_key): Don't update before_command_key_count or
10769 before_command_echo_length.
10770 (read_char): Don't handle before_command_restore_flag.
10772 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
10773 in direct-output clauses if it wouldn't be called in the ordinary case.
10775 2003-02-04 Kim F. Storm <storm@cua.dk>
10777 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
10779 2003-02-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10781 * gtkutil.c (remove_from_container): Copying list is not needed.
10782 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
10783 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
10784 on list returned from gtk_container_get_children to avoid memory leak.
10786 2003-02-01 Jason Rumney <jasonr@gnu.org>
10788 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
10790 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
10791 definitions in xpm.h.
10792 (init_xpm_functions): New function.
10793 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
10794 (init_external_image_libraries): Try to load libXpm.dll.
10796 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
10799 2003-01-31 Dave Love <fx@gnu.org>
10801 * syntax.c (Fskip_chars_forward)
10802 (open-paren-in-column-0-is-defun-start): Doc fix.
10804 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
10806 * fileio.c: Support // at start of name for Cygwin (just added proper
10807 preprocessor tests).
10809 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
10811 * Makefile.in: Use @EXEEXT@ for Cygwin.
10813 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
10815 * s/cygwin.h: Added for Cygwin port.
10817 2003-01-31 Juanma Barranquero <lektu@terra.es>
10819 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
10820 when including gif_lib.h.
10821 (init_gif_functions, init_tiff_functions): New functions.
10822 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
10823 Windows. Disable color table lookups. Call library functions
10824 through pointers determined at runtime.
10825 (init_external_image_libraries): Try to load libungif.dll and
10828 2003-01-31 Kenichi Handa <handa@m17n.org>
10830 * xdisp.c (SKIP_GLYPHS): New macro.
10831 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
10833 2003-01-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10835 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
10837 2003-01-30 Dave Love <fx@gnu.org>
10839 * alloc.c (Vgc_elapsed, gcs_done): New variables.
10840 (Fgarbage_collect): Use them.
10841 (init_alloc, syms_of_alloc): Set them up.
10843 2003-01-30 Juanma Barranquero <lektu@terra.es>
10845 * w32fns.c (init_external_image_libraries): Add missing operator.
10847 2003-01-29 Jason Rumney <jasonr@gnu.org>
10849 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
10850 an alternative name for jpeg.dll.
10852 2003-01-29 Kenichi Handa <handa@m17n.org>
10854 * xdisp.c (set_cursor_from_row): Pay attention to string display
10857 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
10859 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
10861 (keycode_to_xkeysym_table): Reformat and add more comments.
10862 (XTread_socket): Drop special case for backspace.
10864 2003-01-28 Andrew Choi <akochoi@shaw.ca>
10866 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
10867 values in old-style RGB specs.
10869 2003-01-27 Juanma Barranquero <lektu@terra.es>
10871 * w32fns.c (init_external_image_libraries): Try alternate names for the
10874 2003-01-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10876 * gtkutil.c (create_dialog, xg_separator_p)
10877 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
10878 before calling strcmp or strlen.
10880 2003-01-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10882 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
10883 and handle image load failure.
10885 2003-01-26 Jason Rumney <jasonr@gnu.org>
10887 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
10889 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
10890 Disable color table lookups. Call jpeg library functions
10891 through pointers determined at runtime.
10892 (init_external_image_libraries): Try to load jpeg.dll.
10894 2003-01-25 Richard M. Stallman <rms@gnu.org>
10896 * lisp.h: Declare format2 instead of format1.
10898 * fileio.c (barf_or_query_if_file_exists):
10899 Call format2 instead of format1.
10901 * editfns.c (format2): New function, replaces format1
10902 but takes exactly two Lisp Objects as format args.
10904 * buffer.c (Fkill_buffer): Call format2 instead of format1.
10906 2003-01-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10908 * xterm.h: Change to return value of x_dispatch_event to int.
10910 * xterm.c (x_filter_event): New function.
10911 (event_handler_gdk, XTread_socket): Call x_filter_event.
10912 (x_dispatch_event): Change to return value of finish.
10913 (event_handler_gdk): Use return value from x_dispatch_event.
10915 * xfns.c (x_window): Call create_frame_xic for GTK version to
10916 initialize input methods.
10918 * gtkutil.h: Add (void) prototypes.
10920 * gtkutil.c (create_menus): Remove code that puts the help menu to
10923 2003-01-25 Jason Rumney <jasonr@gnu.org>
10925 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
10926 [HAVE_PNG]: Sync with xfns.c version.
10927 (png_load): Adjust colors for Windows. Use Windows
10928 bitmaps. Disable color table lookups.
10929 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
10930 (init_png_functions): New function.
10931 (png_read_from_memory, png_load): Call png library functions
10932 through pointers determined at runtime.
10933 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
10934 (init_external_image_libraries): New function.
10935 (init_xfns): Call it.
10937 2003-01-24 Andreas Schwab <schwab@suse.de>
10939 * minibuf.c (Fminibuffer_message): Verify type of parameter.
10941 2003-01-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10943 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
10944 of static initializer.
10946 2003-01-24 Dave Love <fx@gnu.org>
10948 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
10951 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
10954 2003-01-24 Kenichi Handa <handa@m17n.org>
10956 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
10957 It it is nonzero, don't pretend that an invisible area doesn't exist.
10958 (command_loop_1): Call adjust_point_for_property with proper
10961 2003-01-22 Jason Rumney <jasonr@gnu.org>
10963 Sync changes with xterm.c and xfns.c.
10965 * w32term.c (x_draw_glyph_string_foreground)
10966 (x_draw_composite_glyph_string_foreground): Implement overstriking.
10968 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
10969 phys_cursor's hpos is overwritten. This is still not completely
10970 correct, as it doesn't really make sense to use hpos at all to
10971 get the cursor glyph (as that is relative to the width of the
10972 characters on the line, which may have changed during the update).
10974 * w32term.c (notice_overwritten_cursor): Handle the special case
10975 of the cursor being in the first blank non-text line at the
10978 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
10979 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
10980 Compute from the x position returned by x_draw_glyphs.
10982 (x_display_and_set_cursor): Don't set phys_cursor_width here,
10983 except for NO_CURSOR and system caret, to make phys_cursor_width
10984 contain what its name suggests.
10985 (notice_overwritten_cursor): Consider the cursor image erased if
10986 the output area intersects the cursor image in y-direction.
10988 * w32term.c (note_mode_line_or_margin_highlight): Rename from
10989 note_mode_line_highlight and extend.
10991 * w32term.c (last_window): New variable.
10992 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
10993 (note_mouse_movement): Remove reimplemented code in #if 0.
10995 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
10996 not update_mode_lines, and always set it to 1.
10998 2003-01-21 Jason Rumney <jasonr@gnu.org>
11000 * w32fns.c (IDC_HAND): Define it if system headers don't.
11002 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
11004 * w32term.h (struct w32_output): New member hand_cursor.
11005 (WM_EMACS_SETCURSOR): New message definition.
11007 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
11008 function w32_define_cursor.
11009 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
11010 position, change member name output_data.x to output_data.w32 and
11011 add function w32_define_cursor.
11012 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
11013 and change member name output_data.x to output_data.w32.
11014 (w32_initialize_display_info):
11015 Setup dpyinfo->vertical_scroll_bar_cursor.
11017 * w32fns.c (Vx_hand_shape): New variable.
11018 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
11019 WM_EMACS_SETCURSOR.
11020 (x-create-frame): Setup Cursor types.
11022 2003-01-21 David Ponce <david@dponce.com>
11024 * w32term.c (w32_encode_char): For DIM=1 charset, set
11025 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
11026 x_encode_char change by Kenichi Handa <handa@m17n.org> on
11028 (w32_draw_relief_rect): Declare all args.
11029 (w32_define_cursor): New.
11031 * w32fns.c (w32_load_cursor): New function.
11032 (w32_init_class): Use it.
11033 (x_put_x_image): Declare all args.
11035 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
11037 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
11039 2003-01-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11041 * gtkutil.c: Must include stdio.h before termhooks.h
11043 2003-01-21 Dave Love <fx@gnu.org>
11045 * alloc.c (Fgc_status): Print zombie list.
11046 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
11047 Fix assignment of zombies.
11048 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
11049 Don't take car of non-cons.
11051 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
11053 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
11055 2003-01-20 David Ponce <david@dponce.com>
11057 * w32menu.c (digest_single_submenu): Declare all args.
11059 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
11060 changes in xmenu.c:
11062 (parse_single_submenu): Use individual keymap's prompt
11063 string as pane name, if there is one.
11064 (set_frame_menubar): Save menu_items_n_panes from each call to
11065 parse_single_submenu and use it when calling digest_single_submenu.
11067 2003-01-20 Steven Tamm <steventamm@mac.com>
11069 * macterm.c (XTread_socket): Checks for valid, visible window
11070 before sending a scroll-wheel event.
11072 2003-01-20 Richard M. Stallman <rms@gnu.org>
11074 * xdisp.c (redisplay_window): If mini window's buffer is not
11075 a minibuffer, then redisplay it like other windows.
11077 2003-01-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11079 * gtkutil.c (xg_create_frame_widgets): Check if there is an
11080 external tool bar before setting tool bar height.
11082 2003-01-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11084 * xterm.c (handle_one_xevent): Surround popup_activated
11085 with #ifdef:s for non-toolkit version.
11087 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
11088 (gtkutil.o): New file.
11089 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
11090 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
11092 * gtkutil.c: New file for GTK version.
11094 * gtkutil.h: New file for GTK version.
11096 * xterm.h: Add xt_or_gtk_widget.
11097 Include gtk files for USE_GTK.
11098 (struct x_output): Add toolbar_height.
11099 (struct x_output): Add GTK widgets and Gdk size_hints.
11100 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
11101 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
11102 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
11104 * xterm.c: Include gtkutil.h for USE_GTK.
11105 (free_frame_menubar): Declare extern void for USE_GTK.
11106 (note_mouse_highlight): Check popup_activated for USE_GTK.
11107 (xt_action_hook): Don't compile if USE_GTK.
11108 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
11109 (xg_scroll_callback): New function.
11110 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
11111 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
11113 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
11114 xg_show_scroll_bar for USE_GTK.
11115 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
11116 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
11117 (event_handler_gdk): New function for USE_GTK.
11118 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
11119 (handle_one_xevent): Make sure widget is mapped before
11120 calling x_real_positions for USE_GTK.
11121 (XTread_socket): Add GTK event loop for USE_GTK.
11122 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
11123 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
11124 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
11125 (x_iconify_frame): Add code for USE_GTK.
11126 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
11127 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
11129 (x_term_init): Add initialization for GTK.
11130 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
11132 * xmenu.c: Include gtkutil.h for USE_GTK.
11133 (Fx_popup_menu): Use current position if x and y is NIL.
11134 (single_menu_item, single_menu_item, Fx_popup_dialog):
11136 (popup_widget_loop): New function for USE_GTK.
11137 (x_activate_menubar): Add code for USE_GTK.
11138 (popup_activate_callback, popup_deactivate_callback)
11139 (menu_highlight_callback, menubar_selection_callback):
11140 Add USE_GTK versions.
11141 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
11142 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
11143 (free_frame_menubar): Only compile if not USE_GTK. GTK version
11145 (popup_selection_callback): New version for USE_GTK.
11146 (create_and_show_popup_menu): New fuction, one USE_GTK version and
11147 one USE_X_TOOLKIT version.
11148 (xmenu_show): Call create_and_show_popup_menu.
11149 (dialog_selection_callback): New version for USE_GTK.
11150 (create_and_show_dialog): New fuction, one USE_GTK version and
11151 one USE_X_TOOLKIT version.
11152 (xdialog_show): Call create_and_show_dialog.
11154 * xfns.c: Include gtkutil for USE_GTK.
11155 (x_window_to_frame, x_any_window_to_frame)
11156 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
11157 (x_top_window_to_frame): Add code for USE_GTK.
11158 (x_set_background_color): Call xg_set_background_color for GTK.
11159 (x_set_menu_bar_lines): Check for USE_GTK.
11160 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
11161 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
11162 (x_window): Call xg_create_frame_widgets for USE_GTK.
11163 (Fx_create_frame): Check for USE_GTK
11164 (Fx_file_dialog): New implementation for USE_GTK.
11166 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
11167 (update_menu_bar): Add check for USE_GTK.
11168 (update_tool_bar): Add check for USE_GTK and external tool bar.
11169 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
11170 (redisplay_internal): Add check for USE_GTK and popup_activated.
11171 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
11172 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
11173 (display_menu_bar): Add check for USE_GTK
11175 * lisp.h (Vx_resource_name): Declare extern.
11177 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
11179 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
11181 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
11182 (FRAME_EXTERNAL_TOOL_BAR): New macro.
11183 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
11185 * fileio.c (Fread_file_name): Add check for USE_GTK.
11187 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
11188 Add check for USE_GTK.
11190 * config.in: Added HAVE_GTK
11192 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
11194 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
11196 * charset.h (Funibyte_char_to_multibyte): Export.
11198 2003-01-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11200 * xmenu.c (mouse_position_for_popup): New function.
11201 (Fx_popup_menu): Call mouse_position_for_popup for X and
11202 mouse_position_hook for others.
11204 2003-01-17 Kim F. Storm <storm@cua.dk>
11206 * editfns.c (Finsert): Mention `string-make-multibyte' and
11207 `string-as-multibyte' in doc string.
11209 2003-01-17 Kenichi Handa <handa@m17n.org>
11211 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
11213 * editfns.c (Fformat): Convert an unibyte char argument that is
11214 formatted by "%c" to multibyte if the total result must be a
11217 2003-01-16 Kim F. Storm <storm@cua.dk>
11219 * process.c (set-process-filter): Document unibyte/multibyte-ness
11220 of string argument.
11222 2003-01-16 Kenichi Handa <handa@m17n.org>
11224 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
11226 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
11227 (re_search_2): Likewise.
11229 2003-01-15 Kenichi Handa <handa@m17n.org>
11231 * xdisp.c (message_dolog): Fix bug of the case that *Message*
11234 2003-01-15 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
11236 * fns.c (Fsubstring): Clarify doc string.
11238 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
11239 (Fprevious_char_property_change)
11240 (Fnext_single_char_property_change)
11241 (Fprevious_single_char_property_change, Fnext_property_change)
11242 (Fnext_single_property_change, Fprevious_property_change)
11243 (Fprevious_single_property_change, Fadd_text_properties)
11244 (Fput_text_property, Fset_text_properties)
11245 (Fremove_text_properties, Fremove_list_of_text_properties)
11246 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
11248 2003-01-14 Kim F. Storm <storm@cua.dk>
11250 * process.h (struct Lisp_Process): New member plist replaces old
11251 member private_vars. All uses changed.
11253 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
11254 (QCplist): Rename from QCvars. Change all uses.
11255 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
11256 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
11257 (syms_of_process): Intern, staticpro, defsubr these.
11258 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
11260 2003-01-14 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
11262 * m/delta.h: Remove (obsolete).
11264 2003-01-13 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
11266 * fileio.c (Fdelete_directory, Fdelete_file): Document the
11267 behaviour in front of symlinks.
11268 (Fdelete_file): Raise an error on directories.
11270 2003-01-13 Dave Love <fx@gnu.org>
11272 * fns.c (Freverse): Use QUIT.
11274 2003-01-13 Richard M. Stallman <rms@gnu.org>
11276 * minibuf.c (minibuffer_completion_contents):
11277 Error if point is inside prompt.
11279 * keyboard.c (command_loop_1): Don't redisplay directly
11280 if there's a post-command-hook.
11282 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
11283 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
11285 2003-01-12 Kim F. Storm <storm@cua.dk>
11287 * process.h (struct Lisp_Process): New member private_vars.
11289 * process.c (QCvars): New variable.
11290 (syms_of_process): Intern and staticpro it.
11291 (Fset_process_contact): Removed function.
11292 (Fprocess_variable, Fset_process_variable): New functions.
11293 (syms_of_process): Defsubr them.
11294 (Fstart_process): Initialize private_vars plist to nil.
11295 (Fmake_network_process): New arg :vars to setup the private
11296 variables for new network process.
11297 (server_accept_connection): Copy server's private variables to
11300 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
11301 crashes). Code rewritten and simplified. Now directly aligns the
11302 pointer and recalculates pure_bytes_used, rather than aligning the
11303 size and adjusting the pointer.
11305 2003-01-11 Kim F. Storm <storm@cua.dk>
11307 * process.c (Fset_process_contact): New function.
11308 (syms_of_process): defsubr it.
11309 (make-network-process): Update doc.
11311 2003-01-10 Andreas Schwab <schwab@suse.de>
11313 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
11314 Reported by Berthold Gunreben <b.gunreben@web.de>.
11316 2003-01-10 Dave Love <fx@gnu.org>
11318 * composite.c (syms_of_composite): Make composition_hash_table weak.
11320 2003-01-09 Kim F. Storm <storm@cua.dk>
11322 * process.c (Fmake_network_process): Convert new port number
11323 to host byte order for `:service t' case. From Mario Lang.
11325 2003-01-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11327 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
11328 instead of XtAppProcessEvent.
11330 * xterm.c (handle_one_xevent): New function.
11331 (x_dispatch_event): New function.
11332 (XTread_socket): Call handle_one_xevent.
11334 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
11336 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
11337 call XQueryPointer to get coordinates.
11338 (popup_get_selection): Do not set popup_activated_flag to zero,
11339 let popup_deactivate_callback do that. Needed for Motif.
11340 Call x_dispatch_event instead of XtDispatchEvent.
11341 (xmenu_show): Calculate root coordinate from frame top/left position.
11343 2003-01-08 Kim F. Storm <storm@cua.dk>
11345 * process.c (server_accept_connection): Fix recording of new
11346 connection's local address in :local property of contact info.
11347 (Fmake_network_process): Record local network address for new
11348 client processes in :local property of contact info.
11349 (format-network-address): Add arg OMIT-PORT. Change callers.
11351 2003-01-07 Dave Love <fx@gnu.org>
11353 * Makefile.in (fns.o): Depend on coding.h.
11355 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
11357 * minibuf.c (Fread_variable): Doc fix.
11359 * eval.c (Fuser_variable_p): Doc change. For custom variables,
11360 use the same test as for custom-variable-p.
11362 2003-01-05 Richard M. Stallman <rms@gnu.org>
11364 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
11365 Count LAST_LINE_MISFIT in scroll margin for end of window.
11366 Move label too_near_end before setting SCROLL_MARGIN_POS.
11367 Set LAST_LINE_MISFIT before jumping there.
11369 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
11370 scroll_conservatively case. If scrolling that much doesn't change
11371 STARTP, move it down one line.
11373 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
11374 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
11376 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
11379 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
11380 (syms_of_keymap): Staticpro them.
11381 (Fapropos_internal): Initialize them and clear them out.
11384 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
11387 * lisp.h: New misc type Lisp_Save_Value.
11388 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
11389 (XSAVE_VALUE): New macro.
11390 (struct Lisp_Save_Value): New data type.
11391 (union Lisp_Misc): Add u_save_value alternative.
11392 (make_save_value): Declare.
11394 * alloc.c (make_save_value): New function.
11396 * xterm.c (x_catch_errors): Save dpy using make_save_value.
11397 (x_catch_errors_unwind): Call XSync.
11399 2003-01-01 Richard M. Stallman <rms@gnu.org>
11401 * window.c (window_scroll_pixel_based): Partially undo last change.
11403 * keyboard.c (command_loop_1): Call adjust_point_for_property
11404 in direct action cases for Qforward_char and Qbackward_char.
11405 Set already_adjusted so it won't be done twice.
11407 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
11409 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
11410 type definition of size_t.
11412 2003-01-02 Steven Tamm <steventamm@mac.com>
11414 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
11415 distinguish Carbon GUI builds from X11 builds on darwin.
11417 2002-12-30 Steven Tamm <steventamm@mac.com>
11419 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
11422 2002-12-29 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
11424 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
11426 2002-12-28 Steven Tamm <steventamm@mac.com>
11428 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
11429 allow building in a different directory than source. Uses some
11430 GNU Make extensions, but there is no other make on Mac OS X.
11432 2002-12-26 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
11434 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
11435 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
11436 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
11437 (Fstring_to_number): Mention the returned value in the doc strings.
11439 2002-12-23 Richard M. Stallman <rms@gnu.org>
11441 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
11442 <scroll-down-aggressively>: Doc fix.
11444 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
11445 string as pane name, if there is one.
11446 (set_frame_menubar): Save menu_items_n_panes from each call to
11447 parse_single_submenu and use it when calling digest_single_submenu.
11449 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
11450 Don't try to make last line fully visible if it is past end of window.
11452 2002-12-22 Steven Tamm <steventamm@mac.com>
11454 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
11455 (mac_menu_show): Add support for hierarchical popup menus.
11456 (add_menu_item): Remove indentation support.
11457 (fill_submenu, fill_menu): Create hierarchical menus
11458 instead of using indentation.
11460 2002-12-22 Richard M. Stallman <rms@gnu.org>
11462 * xdisp.c (try_cursor_movement): Don't call try_window here.
11463 (redisplay_window): Never redisplay minibuffer when inactive.
11465 * window.c (select_window_1): Undo 9/21 change.
11467 2002-12-22 Steven Tamm <steventamm@mac.com>
11469 * macterm.c (XTread_socket): Call KeyTranslate for control and
11470 meta to deal correctly shifted non-alpha characters, like C-S-5
11471 being treated like C-%. Does not look for shift key to deal
11472 with masking off control-key with mac-reverse-ctrl-meta.
11474 2002-12-21 Richard M. Stallman <rms@gnu.org>
11476 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
11477 If it is non-nil, run timers. Use an unwind-protect to requeue
11478 the events that were read ahead.
11479 (popup_get_selection_unwind): New subroutine.
11480 (popup_get_selection_queue): File-scope variable now holds that queue.
11481 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
11482 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
11483 Use an unwind-protect to pop down the dialog box.
11484 (xdialog_show_unwind): New subroutine implements that.
11486 * xdisp.c (row_containing_pos): Change exit test using last_y.
11487 (try_window_id): Abort if row_containing_pos returns null.
11489 * lread.c (load_error_handler): New function.
11490 (Fload): Handle errors in Fsubstitute_in_file_name.
11491 Don't expect Fsignal to return.
11493 * eval.c: Errors and throws work right with interrupt blocking.
11494 (struct catchtag): New elt interrupt_input_blocked.
11495 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
11496 (internal_catch, Fcondition_case, internal_condition_case)
11497 (internal_condition_case_1, internal_condition_case_2): Save it.
11498 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
11500 * editfns.c (Fformat): Add parens.
11502 * dired.c (file_name_completion): Fix that change.
11503 Delete special quit-handling code; just use QUIT.
11505 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
11507 * dired.c (file_name_completion): Close directory on error
11508 just as in directory_files_internal.
11510 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
11512 * window.c (Fset_window_configuration): Set old_point to correct
11513 value when new_current_buffer == current_buffer.
11515 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
11517 Revisited my earlier fix for the following entry in etc/PROBLEMS:
11518 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
11519 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
11521 These changes were in part based upon suggestions made by Peter
11522 'Luna' Runestig [peter@runestig.com].
11524 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
11525 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
11526 (g_b_init_get_sid_identifier_authority ): Add several static
11529 * w32.c (globals_of_w32): New function. Used to initialize those
11530 global variables that must always be initialized on startup even
11531 when the global variable initialized is non zero. Its primary
11532 purpose at this time is to set the global variables
11533 g_b_init_is_windows_9x, g_b_init_open_process_token,
11534 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
11535 g_b_init_get_sid_identifier_authority to 0 on startup.
11538 * w32.c (is_windows_9x): Perform initialization only if
11539 g_b_init_is_windows_9x is equal to 0. On initialization set
11540 g_b_init_is_windows_9x equal to 1.
11542 * w32.c (open_process_token): Perform initialization only if
11543 g_b_init_open_process_token is equal to 0. On initialization set
11544 g_b_init_open_process_token equal to 1.
11546 * w32.c (get_token_information): Perform initialization only if
11547 g_b_init_get_token_information is equal to 0. On initialization
11548 set g_b_init_get_token_information equal to 1.
11550 * w32.c (lookup_account_sid): Perform initialization only if
11551 g_b_init_lookup_account_sid is equal to 0. On initialization
11552 set g_b_init_lookup_account_sid equal to 1.
11554 * w32.c (get_sid_identifier_authority): Perform initialization
11555 only if g_b_init_get_sid_identifier_authority is equal to 0.
11556 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
11558 * w32fns.c (globals_of_w32fns): New function. Used to initialize
11559 those global variables that must always be initialized on startup
11560 even when the global variable initialized is non zero.
11561 Its primary purpose at this time is to initialize the global variable
11562 track_mouse_event_fn.
11564 * w32fns.c (w32_wnd_proc): Remove initialization of
11565 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
11567 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
11569 * w32menu.c (globals_of_w32menu): New function. Used to
11570 initialize those global variables that must always be initialized
11571 on startup even when the global variable initialized is non zero.
11572 Its primary purpose at this time is to initialize the global
11573 variables get_menu_item_info and set_menu_item_info.
11575 * w32menu.c (initialize_frame_menubar): Remove initialization of
11576 get_menu_item_info and set_menu_item_info.
11578 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
11580 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
11583 * emacs.c (main): Call globals_of_w32 prior to calling
11584 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
11585 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
11588 * w32term.c (x_update_window_begin): Fix Windows API error
11589 detected by BoundsChecker. Test to determine if
11590 w32_system_caret_hwnd is NULL prior to attempting to use
11591 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
11593 * w32term.c (x_update_window_end): Fix Windows API error
11594 detected by BoundsChecker. Test to determine if
11595 w32_system_caret_hwnd is NULL prior to attempting to use
11596 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
11598 2002-12-17 Kenichi Handa <handa@m17n.org>
11600 * coding.c (coding_system_require_warning): New variable.
11601 (syms_of_coding): DEFVAR it.
11603 * coding.h (coding_system_require_warning): Extern it.
11605 * fileio.c (choose_write_coding_system): Even if
11606 Vcoding_system_for_write is non-nil, if
11607 coding_system_require_warning is nonzero, call
11608 Vselect_safe_coding_system_function.
11610 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
11612 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
11613 (lisp): Add font-core.
11615 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
11617 * textprop.c (text_read_only): New arg `propval'.
11618 (get_char_property_and_overlay): Remove unused var `next_overlay'.
11619 (verify_interval_modification): Use text_read_only's new arg.
11621 2002-12-13 Kenichi Handa <handa@m17n.org>
11623 * coding.c (Funencodable_char_position): Set pend correctly.
11625 2002-12-12 Jason Rumney <jasonr@gnu.org>
11627 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
11628 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
11629 Be more careful about when help_events are generated.
11631 2002-12-12 Steven Tamm <steventamm@mac.com>
11633 * macterm.c (mac_check_for_quit_char): Correctly set the
11634 modifiers of the event to 0.
11635 * mac.c (sys_select): Duplicate rfds before calling select to
11636 ensure that rfds survive the while loop.
11638 2002-12-11 Kim F. Storm <storm@cua.dk>
11640 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
11641 row_containing_pos returned NULL.
11643 2002-12-10 Steven Tamm <steventamm@mac.com>
11645 * mac.c (sys_read): Fix sys_read to not call select if IO is
11647 (sys_select): Fix sys_select to not use a timeout larger than
11650 2002-12-10 Juanma Barranquero <lektu@terra.es>
11652 * editfns.c (Fformat): Use alloca, not _alloca.
11654 2002-12-09 Richard M. Stallman <rms@gnu.org>
11656 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
11659 2002-12-09 Dave Love <fx@gnu.org>
11661 * s/sol2-8.h: Removed. (Not necessary.)
11663 2002-12-09 Matthew Swift <swift@alum.mit.edu>
11665 * editfns.c (Fformat): Handle precision in string conversion
11666 specifiers like libc functions do (ie, print at most that many
11669 2002-12-08 Richard M. Stallman <rms@gnu.org>
11671 * xdisp.c (row_containing_pos): Check more carefully
11672 whether charpos is really in the row before returning it.
11674 2002-12-07 Steven Tamm <steventamm@mac.com>
11676 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
11678 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
11679 each stack frame. This may change as it could be time consuming.
11681 * macterm.c (mac_check_for_quit_char, quit_char_comp)
11682 (init_quit_char_handler, mac_determine_quit_char_modifiers)
11683 (mac_initialize): Add code to check for pressing of quit_char
11684 in the OS event queue.
11686 * mac.c (sys_select): Call mac_check_for_quit_char every second
11687 while blocking on select.
11689 * mac.c (sys_read): Use sys_select to test for input first
11690 before calling read, to allow C-g to break.
11692 2002-12-07 Richard M. Stallman <rms@gnu.org>
11694 * minibuf.c (Fcompleting_read): Doc fix.
11696 * lread.c (syms_of_lread) <load-history>: Doc fix.
11698 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
11700 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
11703 * data.c (Fdefalias): Record in load-history redefining an autoload.
11705 * alloca.c: Undo ifdef change accidentally made on 12-04.
11707 2002-12-06 Francesco Potorti` <pot@gnu.org>
11709 * xfns.c (png_load): Avoid double gamma correction for PNG images.
11711 2002-12-04 Richard M. Stallman <rms@gnu.org>
11713 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
11715 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
11717 * alloca.c: Don't use #error.
11719 2002-12-03 Dave Love <fx@gnu.org>
11721 * buffer.c (Qucs_set_table_for_input): New.
11722 (Fget_buffer_create): Use it.
11723 (Qset_buffer_major_mode_hook): Deleted.
11724 (Fset_buffer_major_mode): Revert previous change.
11725 (init_buffer_once): Intern ucs-set-table-for-input.
11726 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
11727 Add &Qucs_set_table_for_input.
11729 2002-12-03 Andreas Schwab <schwab@suse.de>
11731 * callint.c (Fcall_interactively): Use next_event only if less
11734 2002-12-02 Andrew Choi <akochoi@shaw.ca>
11736 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
11737 names to 255 characters.
11739 * macterm.c (XTread_socket): If all frames have been collapsed,
11740 expand the first one before handling drag-and-drop events.
11742 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
11743 which is detected by autoconf.
11745 2002-12-01 Steven Tamm <steventamm@mac.com>
11747 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
11748 offset in two hints table to allow prebinding to be redone and
11749 allow the executable to be stripped.
11751 2002-11-29 Dave Love <fx@gnu.org>
11753 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
11756 2002-11-29 Richard M. Stallman <rms@gnu.org>
11758 * xdisp.c (start_display): Check more intelligently for
11759 whether the line is continued.
11760 (move_it_vertically_backward): Clear it->continuation_lines_width.
11762 2002-11-28 Dave Love <fx@gnu.org>
11764 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
11765 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
11767 2002-11-27 Steven Tamm <steventamm@mac.com>
11769 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
11770 more descriptive error output from lread.c:Fload upon most require
11771 cycles during boostrapping.
11773 2002-11-27 Jason Rumney <jasonr@gnu.org>
11775 * fileio.c (Finsert_file_contents): Give a more appropriate error
11776 for files bigger than 2Gb when off_t is 32 bit.
11778 * dired.c (Ffile_attributes): Don't return negative file sizes for
11779 files bigger than 2Gb when off_t is 32 bit.
11781 2002-11-27 Dave Love <fx@gnu.org>
11783 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
11785 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
11786 Test GETPGRP_VOID instead.
11787 [BSD_TERMIOS]: Remove definitions (never used).
11789 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
11791 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
11793 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
11795 2002-11-25 Jason Rumney <jasonr@gnu.org>
11797 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
11800 2002-11-25 Dave Love <fx@gnu.org>
11802 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
11804 * Makefile.in (TEMACS_LDFLAGS): Update last change.
11806 2002-11-25 Andreas Schwab <schwab@suse.de>
11808 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
11810 2002-11-24 Steven Tamm <steventamm@mac.com>
11812 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
11813 determine the size of pointers alloced in unexed space instead
11814 of using possibly invalid emacs_zone pointers. This fixes the
11815 binary incompatibility problems caused by updates to libSystem.B.
11817 2002-11-24 Richard M. Stallman <rms@gnu.org>
11819 * search.c (Fstring_match): Doc fix.
11821 * callint.c (Fcall_interactively): If a command fails because
11822 `*' detects a read-only buffer, but RECORD_FLAG is set,
11823 record it anyway if the args don't actually do tty input.
11825 2002-11-22 Dave Love <fx@gnu.org>
11827 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
11829 * keyboard.c (interrupt_signal): Provide forward declaration.
11830 (kbd_buffer_store_event): Don't declare interrupt_signal.
11832 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
11834 2002-11-21 Richard M. Stallman <rms@gnu.org>
11836 * eval.c (interactive_p): Skip any number of bytecode
11837 and special form frames, in any order.
11839 2002-11-20 Jason Rumney <jasonr@gnu.org>
11841 * w32fns.c (convert_mono_to_color_image): New function.
11842 (xbm_load, xbm_load_image): Use it when foreground or background
11845 2002-11-19 Dave Love <fx@gnu.org>
11847 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
11849 2002-11-18 Jason Rumney <jasonr@gnu.org>
11851 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
11852 (XPutPixel): Swap blue and red.
11853 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
11854 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
11855 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
11856 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
11858 2002-11-18 Dave Love <fx@gnu.org>
11860 * m/orion105.h (HAVE_ALLOCA): Don't define.
11862 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
11864 * m/intel386.h: Don't include alloca.h or define alloca.
11866 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
11867 malloc, realloc, calloc.
11869 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
11870 (bcmp): Don't define.
11872 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
11874 * m/amdahl.h: Don't define LIB_STANDARD.
11876 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
11878 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
11880 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
11881 Don't include alloca.h.
11883 * s/aix3-2.h (HAVE_FSYNC): Don't define.
11885 * regex.c (_GNU_SOURCE): Don't define.
11887 * process.c (_GNU_SOURCE): Don't define.
11889 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
11891 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
11893 * s/sol2-8.h: Include sol2-6.h.
11895 2002-11-18 Miles Bader <miles@gnu.org>
11897 * dispextern.h (struct face): Add `overstrike' field.
11898 * xterm.c (x_draw_glyph_string_foreground)
11899 (x_draw_composite_glyph_string_foreground): Implement overstriking.
11900 * xfaces.c (load_face_font): Set `face->overstrike' based on
11901 result from choose_face_font.
11902 (best_matching_font, choose_face_font): Add `needs_overstrike'
11903 argument, and use it to return whether overstriking is desirable
11904 for this face/font combo.
11905 (set_font_frame_param: Pass new argument to choose_face_font.
11907 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
11909 This change is my fix for the following entry in etc/PROBLEMS:
11910 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
11911 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
11913 * w32.c: Added wrapper functions around the win32 API functions
11914 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
11915 GetSidIdentifierAuthority. These wrapper functions serve two
11917 1. They ensure that the wrapped function can never be called
11918 when Emacs is running on an operating system on which they are
11919 not supported (Microsoft Windows 95 / 98 / ME).
11920 2. They call the wrapped functions via function pointers rather
11921 than calling them directly. This avoids taking advantage of the
11922 undocumented fact that although these functions are not supported
11923 in the 9x branch of Microsoft Windows, the functions do exist in
11924 the version of advapi32.dll that is found in the 9x branch of
11927 * w32.c (init_user_info): Replace the calls to the win32 API
11928 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
11929 and GetSidIdentifierAuthority with calls to the newly added
11932 * w32.h: Added extern declarations for the following functions:
11933 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
11934 syms_of_w32menu, and void syms_of_fontset.
11936 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
11937 function pointer track_mouse_event_fn in the handler for the
11938 WM_SETFOCUS message.
11940 * w32menu.c (initialize_frame_menubar): Add code to
11941 reinitialize the function pointers set_menu_item_info and
11942 get_menu_item_info.
11944 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
11946 * sound.c: Added a partial implementation of play-sound-internal
11947 for Microsoft Windows. Added various #ifdef / #else / #endif
11948 code blocks to separate the code that will compile under
11949 Microsoft Windows from the code that is specific to Gnu/Linux.
11950 Moved several blocks of code around to make this separation of code
11951 into Windows compatible and Gnu/Linux compatible code blocks easier.
11953 * makefile.w32-in: Include sound.c and link with WinMM.lib.
11955 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
11956 added support for play-sound-internal under Windows would be
11957 included in the build of Emacs.
11959 2002-11-16 Jason Rumney <jasonr@gnu.org>
11961 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
11963 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
11965 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
11967 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
11968 (adjust_point_for_property): Move out of display and invisible even if
11969 we were already inside before (in case a property was added while
11970 we weren't looking). Be more careful when handling invisible props.
11971 Skip invisible text as if it really wasn't there at all.
11973 2002-11-15 Jason Rumney <jasonr@gnu.org>
11975 * w32term.c (x_draw_image_foreground)
11976 (w32_draw_image_foreground_1): Use standard copy and invert
11977 operations to draw images.
11979 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
11981 (xbm_read_bitmap_data): Invert bits as xbm is read in.
11982 (XPutPixel): Don't invert bits here.
11984 2002-11-15 Jason Rumney <jasonr@gnu.org>
11986 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
11987 (w32_draw_image_foreground_1): Handle image masks.
11988 (x_draw_image_glyph_string): Don't BitBlt transparently.
11990 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
11991 (x_from_xcolors): Adjust RGB values for W32.
11992 (image_background, image_background_transparent)
11993 (postprocess_image, x_to_xcolors, x_disable_image)
11994 (x_build_heuristic_mask): Adapt for W32 and enable.
11995 (x_create_x_image_and_pixmap): Mark images with palettes as such.
11996 (xbm_load): Remove unused variable.
11998 2002-11-14 Richard M. Stallman <rms@gnu.org>
12000 * buffer.c (syms_of_buffer): Doc fix.
12002 2002-11-14 Dave Love <fx@gnu.org>
12004 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
12006 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
12007 * xmenu.c (unuse_menu_items, digest_single_submenu):
12008 * xfns.c (x_put_x_image):
12009 * xdisp.c (message2_nolog, set_message):
12010 * undo.c (record_point):
12011 * terminfo.c (tparam):
12012 * syntax.c (scan_sexps_forward):
12013 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
12014 * composite.c (update_compositions):
12015 * cm.c (calccost, cmgoto):
12016 * charset.c (c_string_width): Declare all args (per C99).
12018 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
12020 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
12023 * emacs.c (main) [!VMS]: Avoid third arg.
12025 * fns.c (Fcopy_sequence): Doc fix.
12026 (Fmap_char_table): Cast `call2'.
12028 2002-11-14 Francesco Potorti` <pot@gnu.org>
12030 * s/sol2-8.h: New file.
12032 2002-11-14 Kim F. Storm <storm@cua.dk>
12034 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
12035 dependency on `risky-local-variable' and the :propertize form.
12037 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
12039 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
12041 * syntax.c (scan_sexps_forward): Undo last patch.
12042 Use a more obvious fix: check eob before updating the syntax table.
12044 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
12046 * syntax.c (scan_sexps_forward): Update syntax table before reading
12047 a char rather than after so we don't update the table past eob.
12049 2002-11-09 Dave Love <fx@gnu.org>
12051 * buffer.c (Fset_buffer_major_mode): Fix last change.
12053 * regex.c (regexec): Fix pmatch declaration.
12055 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
12057 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
12058 to self-inserting characters.
12059 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
12061 * coding.c (Vtranslation_table_for_input): New.
12062 (syms_of_coding): DEFVAR it.
12064 2002-11-08 Juanma Barranquero <lektu@terra.es>
12066 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
12069 2002-11-08 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
12071 * process.c (Fformat_network_address): Remove unused locals p,
12074 2002-11-06 Dave Love <fx@gnu.org>
12076 * buffer.c (Qset_buffer_major_mode_hook): New.
12077 (Fset_buffer_major_mode): Use it.
12079 2002-11-06 Richard M. Stallman <rms@gnu.org>
12081 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
12084 * process.c (wait_reading_process_input):
12085 Test POLLING_PROBLEM_IN_SELECT, not hpux.
12086 Avoid initialization for auto Lisp_Object var.
12088 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
12090 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
12092 2002-11-05 Richard M. Stallman <rms@gnu.org>
12094 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
12096 * callint.c (Fcall_interactively): New local filter_specs.
12097 (Fcall_interactively): Check for progn as well as let.
12099 (Qprogn): New variable.
12100 (syms_of_callint): Staticpro and init Qprogn.
12102 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
12104 * lread.c (Feval_buffer): Doc fix.
12106 2002-11-04 Dave Love <fx@gnu.org>
12108 * keyboard.c (read_char): Always translate iff
12109 Vkeyboard_translate_table is a char table and c is valid.
12111 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
12114 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
12116 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
12118 * editfns.c (get_pos_property): Don't hardcode Qfield.
12120 * keyboard.c (adjust_point_for_property): Handle `display' prop on
12121 overlays. Also handle `invisible' prop.
12123 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
12125 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
12126 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
12128 2002-11-01 Andreas Schwab <schwab@suse.de>
12130 * editfns.c (Fmessage): Revert last change to properly handle %%.
12132 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
12134 * xmenu.c (unuse_menu_items): New fun.
12135 (menu_items_inuse): New var.
12136 (syms_of_xmenu): Initialize it.
12137 (init_menu_items): Use it to detect re-entrance.
12138 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
12139 (Fx_popup_menu): Remove spurious XSETFRAME.
12141 * editfns.c (find_field): Make an exception for nil fields.
12143 2002-11-01 Dave Love <fx@gnu.org>
12145 * m/gec63.h: Deleted.
12147 2002-10-31 Dave Love <fx@gnu.org>
12149 * xterm.c (XTread_socket): Fix last change.
12150 (xaw_scroll_callback): Cast call_data to long to avoid warning.
12152 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
12154 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
12156 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
12158 * editfns.c (overlays_around, get_pos_property): New funs.
12159 (find_field): Use them.
12160 Also be careful not to modify POS before its last use.
12161 (Fmessage): Don't Fformat if there's nothing to format.
12163 2002-10-30 Dave Love <fx@gnu.org>
12165 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
12166 [HAVE_PTY_H]; Include pty.h.
12168 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
12170 * xterm.c (Qeql): Declare.
12171 (Vx_keysym_table): New.
12172 (syms_of_xterm): Initialize it.
12173 (XTread_socket): Use it. Deal with ASCII keysyms.
12174 (XSetIMValues) [HAVE_X11R6]: Prototype.
12176 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
12177 (lispy_kana_keys): Comment out.
12178 (make_lispy_event) [XK_kana_A]: Comment out.
12179 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
12182 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
12184 (TERMINFO, LIBS_TERMCAP): Define.
12186 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
12187 (bcmp): Define conditional on HAVE_BCMP.
12188 (NO_SIOCTL_H): Don't define.
12189 (TIOCSIGSEND): Don't make conditional on IRIX6.
12191 * s/sol2-5.h: Don't include strings.h.
12192 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
12194 * s/irix6-0.h (IRIX6): Don't define.
12195 (bcopy, bcmp, bzero): Don't undef.
12197 * s/irix6-5.h: Don't include strings.h.
12198 (IRIX6): Don't define.
12199 (bcopy, bcmp, bzero): Don't undef.
12201 * syntax.c (Fforward_comment): Doc fix.
12203 2002-10-29 Kim F. Storm <storm@cua.dk>
12205 * process.c (Fsignal_process): Allow PROCESS to be specified by
12206 name in addition to pid (as integer or string).
12208 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
12210 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
12213 2002-10-27 Kim F. Storm <storm@cua.dk>
12215 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
12217 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
12219 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
12221 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
12223 2002-10-26 Richard M. Stallman <rms@gnu.org>
12225 * editfns.c (Fformat): Detect invalid format letters for floats.
12227 2002-10-25 Kenichi Handa <handa@m17n.org>
12229 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
12230 (x_set_title): Likewise.
12232 2002-10-25 Juanma Barranquero <lektu@terra.es>
12235 * w32gui.h: Remove definition of XColor.
12237 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
12239 2002-10-24 Kim F. Storm <storm@cua.dk>
12241 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
12242 Callers changed (supply dummy arg).
12244 * lisp.h (get_window_cursor_type): Update prototype.
12246 * w32term.c (x_display_and_set_cursor): Get active_cursor from
12247 get_window_cursor_type to track system caret.
12249 2002-10-24 Kim F. Storm <storm@cua.dk>
12251 * process.c (Fformat_network_address): New function.
12252 (syms_of_process): Defsubr it.
12253 (list_processes_1): Use it to format :local/:remote address if
12254 service/host is not set; before Emacs would crash in that case.
12255 (Fmake_network_process): Don't use Ffind_operation_coding_system
12256 to setup coding system if host or service is not set.
12258 2002-10-23 Juanma Barranquero <lektu@terra.es>
12260 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
12262 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
12266 * w32gui.h: Add definition of XColor.
12270 * xfaces.c: Remove definition of XColor.
12272 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
12274 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
12276 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
12277 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
12278 window if it is dedicated.
12279 (Fshrink_window): Add preserve_before as was done for enlarge_window.
12280 (Vspecial_display_function): Update docstring.
12282 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
12283 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
12284 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
12286 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
12288 * casefiddle.c (casify_region): Don't treat a prefix char as part
12289 of a word when at the beginning.
12291 2002-10-17 Juanma Barranquero <lektu@terra.es>
12293 * lread.c (syms_of_lread): Fix typos.
12295 2002-10-17 Dave Love <fx@gnu.org>
12297 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
12299 2002-10-16 Richard M. Stallman <rms@gnu.org>
12301 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
12303 2002-10-14 Juanma Barranquero <lektu@terra.es>
12305 * w16select.c (syms_of_win16select): Fix docstring for
12306 `selection-coding-system'.
12308 * w32select.c (syms_of_w32select): Likewise.
12310 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
12312 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
12313 a backslash-quoted char.
12314 (scan_lists, scan_sexps_forward): Pacify the compiler.
12316 2002-10-13 Richard M. Stallman <rms@gnu.org>
12318 * window.c (window_scroll): Set immediate_quit.
12320 * print.c (print): When backquote form is the car of a list,
12321 output in old style. Use old_backquote_output to output all
12322 comma forms inside it in old style too.
12324 * buffer.h (struct buffer): Move `undo_list' down below `name'.
12326 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
12328 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
12331 * lread.c (Fload): Doc fix (load-suffixes).
12333 2002-10-10 Steven Tamm <steventamm@mac.com>
12335 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
12336 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
12337 Also switch the default to Qnil from Qt.
12339 2002-10-08 Kenichi Handa <handa@m17n.org>
12341 * coding.c (code_convert_region): When we need more GAP for
12342 conversion, pay attention to the case that coding->produced is not
12343 greater than coding->consumed.
12345 2002-10-07 Richard M. Stallman <rms@gnu.org>
12347 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
12349 2002-10-06 Andrew Choi <akochoi@shaw.ca>
12351 * macmenu.c (mac_menu_show): Add j to count menu items; match
12352 menu_item_selection to it to find selected item.
12354 2002-10-06 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12356 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
12357 cases. The correct fix is to pass ReparentNotify to Xt.
12358 The shell widget interprets ConfigureNotify differently depending
12359 on if it has been reparented or not.
12361 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
12363 * editfns.c (Fformat_time_string): Doc fix.
12365 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
12367 * fns.c (Flength): Doc fix.
12369 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
12371 * keyboard.c (keyremap): New struct.
12372 (read_key_sequence): Use it: globally replace keytran_foo with
12373 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
12374 keytran_next and fkey_next to just `next'.
12376 2002-10-04 Steven Tamm <steventamm@mac.com>
12378 * macterm.c (keycode_to_xkeysym_table): Change return to be
12379 treated like an X keysym.
12381 2002-10-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12383 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
12384 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
12385 This is to also handle x/y changes that occur because of a resize.
12387 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
12389 * frame.c (Vdelete_frame_functions): New variable.
12390 (syms_of_frame): Initialize and defvar it.
12391 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
12392 it when frame's `tooltip' parameter is non-nil.
12394 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
12396 * w32fns.c (x_create_tip_frame): Likewise.
12398 * macfns.c (x_create_tip_frame): Likewise.
12400 2002-09-30 Kenichi Handa <handa@m17n.org>
12402 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
12403 -1 before calling ccl_driver.
12405 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
12406 Only when it is non-nil, handle composition sequence.
12407 (setup_coding_system) <0>: Don't force composition handling.
12409 * Makefile.in (lisp, shortlisp): Add utf-16.elc
12411 2002-09-29 Richard M. Stallman <rms@gnu.org>
12413 * search.c (Freplace_match): Adjust match data for the substitution
12414 just made in the buffer.
12416 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
12417 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
12419 2002-09-27 Richard M. Stallman <rms@gnu.org>
12421 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
12422 (read_char): Use them. Do all exits thru the end of the function.
12424 2002-09-27 Kenichi Handa <handa@etl.go.jp>
12426 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
12429 2002-09-26 Richard M. Stallman <rms@gnu.org>
12431 * regex.h (__restrict_arr): Don't define if already defined.
12433 * coding.c (run_pre_post_conversion_on_str):
12434 Save and restore Vdeactivate_mark.
12436 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
12438 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
12440 2002-09-26 Kenichi Handa <handa@etl.go.jp>
12442 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
12443 nonzero, try face's family at first. Otherwise try FAMILY at first.
12444 (choose_face_font): If C is a single byte char or latin-1, call
12445 try_font_list with PREFER_FACE_FAMILY 1.
12447 2002-09-21 Richard M. Stallman <rms@gnu.org>
12449 * window.c (select_window_1): Don't select frame.
12450 Set frame's selected window only when frame itself is selected.
12451 (Fselect_window): Doc fix.
12453 2002-09-18 Kim F. Storm <storm@cua.dk>
12455 * process.c (make-network-process): Doc fix (there is no
12456 network-server-log-function hook).
12458 2002-09-18 Richard M. Stallman <rms@gnu.org>
12460 * print.c (print): Clear out the unused parts of Vprint_number_table.
12461 (syms_of_print): Doc fix for `print-number-table'.
12463 * unexelf.c (unexec): Undo previous change.
12465 2002-09-17 Andreas Schwab <schwab@suse.de>
12467 * m/alpha.h [LINUX]: Don't define DATA_START.
12469 2002-09-16 Dave Love <fx@gnu.org>
12471 * unexelf.c (unexec): Deal with .got, reinstating change from
12474 2002-09-13 Richard M. Stallman <rms@gnu.org>
12476 * s/sol2-6.h (UNEXEC): Comment out definition.
12478 * unexsol.c (unexec): Don't downcase first letter of error msg.
12480 * xfaces.c (Fcolor_supported_p): Just one arg is required.
12482 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
12484 * unexsol.c: Include buffer.h, charset.h, coding.h.
12486 2002-09-11 Richard M. Stallman <rms@gnu.org>
12488 * unexsol.c: Don't use report_file_error; do it by hand
12491 * process.c (wait_reading_process_input, both versions):
12492 Before calling turn_on_atimers, call stop_polling.
12494 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
12496 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
12497 we go to too_near_end, call clear_glyph_matrix.
12498 (redisplay_window): After make_cursor_line_fully_visible,
12499 call clear_glyph_matrix and bypass `goto done'.
12501 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
12502 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
12504 2002-09-10 Richard M. Stallman <rms@gnu.org>
12506 * fileio.c (Fdo_auto_save): Catch error making directory.
12507 Only call push_message if we need to.
12508 At the same time, make an unwind-protect to pop it.
12509 Rename local message_p to old_message_p.
12510 (do_auto_save_make_dir, do_auto_save_eh): New functions.
12511 (do_auto_save_unwind): Don't call pop_message.
12513 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
12515 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
12517 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
12519 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
12521 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
12523 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
12524 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
12525 (re_match_2_internal): Be more careful with infinite loops.
12527 2002-09-10 Kim F. Storm <storm@cua.dk>
12529 * macros.c (end_kbd_macro): New function.
12530 (Fend_kbd_macro): Use it.
12532 * macros.h (end_kbd_macro): Declare extern.
12534 * keyboard.c (Fdiscard_input): If defining keyboard macro,
12535 end and save it instead of discarding it.
12537 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
12539 * s/sol2-6.h: Fix typo. Add comment.
12541 2002-09-09 Richard M. Stallman <rms@gnu.org>
12543 * regex.c (regnum_t): Use signed int, not unsigned int.
12545 * s/sol2-6.h: New file.
12547 * s/sol2-5.h (UNEXEC): Definition deleted.
12549 2002-09-08 Kim F. Storm <storm@cua.dk>
12551 * macros.c (executing_macro_index): Change type to EMACS_INT.
12552 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
12554 * macros.h (executing_macro_index): Change type to EMACS_INT.
12556 2002-09-06 Richard M. Stallman <rms@gnu.org>
12558 * casetab.c (set_case_table): Make canon table point to eqv table.
12560 2002-09-06 Juanma Barranquero <lektu@terra.es>
12562 * coding.c (syms_of_coding): Fix spacing.
12564 * composite.c (Fcompose_region_internal)
12565 (Fcompose_string_internal): Likewise.
12567 * data.c (Flsh): Likewise.
12569 * fontset.c (Fset_fontset_font): Likewise.
12571 * macfns.c (Fx_server_max_request_size): Likewise.
12573 * w16select.c (syms_of_win16select): Likewise.
12575 * w32select.c (syms_of_w32select): Likewise.
12577 * xselect.c (syms_of_xselect): Likewise.
12579 2002-09-05 Richard M. Stallman <rms@gnu.org>
12581 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
12582 call EXTEND_RANGE_TABLE and return a proper value.
12583 (set_image_of_range): Don't call set_image_of_range_1
12584 if no TRANSLATE or if range includes all of Latin-1.
12585 Only call it for the Latin-1 part of the range.
12586 For other cases, make two separate ranges,
12587 one for the original specified characters and one for
12588 their case-conversions.
12590 2002-09-04 Richard M. Stallman <rms@gnu.org>
12592 * s/sol2-5.h (UNEXEC): Use unexsol.o.
12594 * window.c (displayed_window_lines): Correct for one-off bug
12595 in HEIGHT on non-window displays.
12597 * regex.c (set_image_of_range_1): New function.
12598 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
12599 Return a value to indicate running out of memory.
12600 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
12601 (extend_range_table_work_area): New subroutine.
12602 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
12603 Different calling conventions, and used from set_image_of_range{,_1}.
12604 (IMMEDIATE_QUIT_CHECK): Definitions moved.
12606 2002-09-04 Juanma Barranquero <lektu@terra.es>
12608 * makefile.w32-in: All dependencies updated.
12610 2002-09-01 Richard M. Stallman <rms@gnu.org>
12612 * unexsol.c: New file.
12614 * xfns.c (Qbox): Declare external, don't define.
12616 * xdisp.c (redisplay_window) <force-start case>:
12617 If point is on semi-visible last line, reposition
12618 it at previous line.
12620 * alloc.c (display_malloc_warning): Use display-warning.
12621 (malloc_warning_1): Function deleted.
12623 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
12625 * lread.c (read1): Handle #! by skipping the line.
12627 2002-08-31 Richard M. Stallman <rms@gnu.org>
12629 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
12630 Don't include LDFLAGS.
12631 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
12633 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
12635 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
12636 member of x_display_info unless we compile for some window system.
12638 2002-08-31 Kim F. Storm <storm@cua.dk>
12640 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
12641 (get_window_cursor_type): Don't use them.
12642 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
12644 2002-08-30 Kenichi Handa <handa@etl.go.jp>
12646 * xdisp.c (get_next_display_element): Fix previous change.
12648 2002-08-30 Andrew Choi <akochoi@shaw.ca>
12650 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
12651 (expose_window): Use it to fix the display of overlapping
12652 rows (merge code from xterm.c).
12654 * macfns.c (Qbox): Add extern declaration.
12656 2002-08-30 Juanma Barranquero <lektu@terra.es>
12658 * w32fns.c (Qbox): Make extern.
12659 (syms_of_w32fns): Remove initialization of Qbox.
12661 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
12663 * xfns.c (Fx_open_connection): Fix error message.
12665 2002-08-30 Kim F. Storm <storm@cua.dk>
12667 The following changes consolidates the handling of the cursor
12668 type in xdisp.c, moving duplicate code and functionality from
12669 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
12671 * frame.h (enum text_cursor_kinds): Consolidated here.
12672 Added DEFAULT_CURSOR value.
12673 (struct frame) <desired_cursor, cursor_width>
12674 <blink_off_cursor, blink_off_cursor_width>: New fields.
12675 Consolidated from output_x, output_w32 and output_mac structs.
12676 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
12677 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
12679 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
12680 Variables consolidated here.
12681 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
12682 (Vcursor_in_non_selected_windows): Renamed from
12683 cursor_in_non_selected_windows and changed to Lisp_Object.
12684 (syms_of_xdisp): Define and staticpro new and moved variables.
12685 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
12686 consolidated here. Recognize Qhollow setting.
12687 (set_frame_cursor_types): New function to set frame cursor types
12688 based on the frame parameters.
12689 (get_window_cursor_type): New function to calculate new cursor
12690 type and width for the specified window. Based on duplicated
12691 code consolidated here.
12692 Enhancements: cursor-in-non-selected-windows may be a cursor type,
12693 check buffer-local alternate-cursor-type and blink-cursor-alist
12694 before using built-in blink off methods.
12696 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
12698 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
12699 (get_specified_cursor_type, get_window_cursor_type)
12700 (set_frame_cursor_types): Added prototypes.
12702 * macfns.c (x_specified_cursor_type): Removed.
12703 (x_set_cursor_type): Use set_frame_cursor_types.
12704 (Qbar, Qbox): Removed.
12705 (syms_of_macfns): Don't intern or staticpro them.
12707 * macterm.c (x_specified_cursor_type): Remove prototype.
12708 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
12709 (x_display_and_set_cursor): Use get_window_cursor_type.
12710 Remove unused local variables cursor_non_selected, active_cursor.
12711 Redraw cursor if hbar cursor width changes.
12712 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
12714 * macterm.h (enum text_cursor_kinds): Removed.
12715 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
12716 <blink_off_cursor, blink_off_cursor_width>: Members removed.
12717 (FRAME_DESIRED_CURSOR): Macro removed.
12719 * w32fns.c (Vblink_cursor_alist): Removed.
12720 (Qbar, Qhbar, Qbox, Qhollow): Removed.
12721 (syms_of_w32fns): Don't intern, staticpro, or define them.
12722 (x_specified_cursor_type): Removed.
12723 (x_set_cursor_type): Use set_frame_cursor_types.
12725 * w32term.c (x_specified_cursor_type): Remove prototype.
12726 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
12727 (x_display_and_set_cursor): Use get_window_cursor_type.
12728 Remove unused local variables cursor_off_state.
12729 Redraw cursor if hbar cursor width changes.
12730 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
12732 * w32term.h (enum text_cursor_kinds): Removed.
12733 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
12734 <blink_off_cursor, blink_off_cursor_width>: Members removed.
12735 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
12736 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
12737 (struct w32_display_info) <x_highlight_frame>: Renamed member from
12738 w32_highlight_frame.
12740 * xfns.c (Vblink_cursor_alist): Removed.
12741 (Qbar, Qhbar, Qbox, Qhollow): Removed.
12742 (syms_of_xfns): Don't intern, staticpro, or define them.
12743 (x_specified_cursor_type): Removed.
12744 (x_set_cursor_type): Use set_frame_cursor_types.
12746 * xterm.c (x_specified_cursor_type): Remove prototype.
12747 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
12748 (x_display_and_set_cursor): Use get_window_cursor_type.
12749 Remove unused local variables cursor_off_state.
12750 Redraw cursor if hbar cursor width changes.
12752 * xterm.h (enum text_cursor_kinds): Removed.
12753 (struct output_x) <current_cursor, desired_cursor, cursor_width>
12754 <blink_off_cursor, blink_off_cursor_width>: Members removed.
12755 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
12756 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
12757 (x_specified_cursor_type): Remove prototype.
12759 2002-08-28 Richard M. Stallman <rms@gnu.org>
12761 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
12762 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
12763 (Vblink_cursor_alist): New variable.
12764 (syms_of_w32fns): Initialize and defvar it.
12765 (x_specified_cursor_type): Recognize Qbox for filled box.
12766 Exceptions are hollow boxes.
12767 (Qbox, Qhollow): New variables.
12768 (syms_of_w32fns): Initialize and staticpro them.
12770 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
12772 (struct w32_output): New fields blink_off_cursor,
12773 blink_off_cursor_width.
12774 (FRAME_CURSOR_WIDTH): New macro.
12776 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
12777 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
12779 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
12782 * w32term.c (expose_overlaps): New function.
12783 (expose_window): Use it to fix the display of overlapping rows.
12785 2002-08-28 Simon Josefsson <jas@extundo.com>
12787 * xfns.c (Fx_open_connection): Improve help when X connection
12788 fails, xhost is insecure and xauth is better.
12790 2002-08-28 Juanma Barranquero <lektu@terra.es>
12792 * makefile.w32-in: Add missing dependencies on w32term.h and
12795 * emacs.c (USAGE1): Add missing newline.
12797 2002-08-27 Andrew Choi <akochoi@shaw.ca>
12799 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
12801 2002-08-27 Richard M. Stallman <rms@gnu.org>
12803 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
12804 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
12805 (Vblink_cursor_alist): New variable.
12806 (syms_of_xfns): Initialize and defvar it.
12807 (x_specified_cursor_type): Recognize Qbox for filled box.
12808 Exceptions are hollow boxes.
12809 (Qbox, Qhollow): New variables.
12810 (syms_of_xfns): Initialize and staticpro them.
12812 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
12814 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
12816 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
12817 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
12819 * emacs.c (main): Handle --script.
12820 (USAGE1): Mention --script.
12821 (standard_args): Define sort order for --script.
12823 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
12825 * xdisp.c (redisplay_updating_p): Variable removed.
12826 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
12828 (init_iterator): Don't free realized faces if
12829 inhibit_free_realized_faces is set.
12830 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
12831 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
12832 initialize Qinhibit_free_realized_faces.
12834 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
12835 when iterator is adding glyphs to a glyph matrix.
12837 2002-08-27 Kenichi Handa <handa@etl.go.jp>
12839 * xdisp.c (get_next_display_element): In unibyte case, don't use
12840 octal form for such eight-bit characters that can be converted to
12843 2002-08-26 Kim F. Storm <storm@cua.dk>
12845 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
12846 foreground and background colors. From Joe Buehler.
12848 2002-08-26 Miles Bader <miles@gnu.org>
12850 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
12852 2002-08-25 Andrew Choi <akochoi@shaw.ca>
12854 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
12855 defined instead of MAC_OSX.
12857 * s/darwin.h (select): Define select to sys_select only if
12858 HAVE_CARBON is defined.
12859 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
12860 (DONT_REOPEN_PTY): #def it.
12862 * macterm.c (XTread_socket): Remove code to call
12863 SendEventToEventTarget for keys with command modifiers when
12864 mac_command_key_is_meta is nil.
12866 2002-08-24 Andreas Schwab <schwab@suse.de>
12868 * eval.c (Fdefvar): Fix last change.
12870 2002-08-23 Richard M. Stallman <rms@gnu.org>
12872 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
12873 Record variables in load history as (defvar . VAR).
12874 (Fdefvar): Don't record in load history if no initial value.
12875 (Qdefvar): New variable.
12876 (syms_of_eval): Init and staticpro it.
12878 * lread.c (syms_of_lread): Doc fix.
12879 (build_load_history): Use Fmember to see if a definition
12880 is already in the Vload_history element.
12882 * process.c (Fstart_process): Remove /: from program name.
12884 * emacs.c (decode_env_path): Don't add /: if file name handler
12885 has a `safe-magic' property.
12887 * callproc.c (Fcall_process): Remove /: from program name.
12889 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
12891 * regex.c (PATFETCH): Remove the translating fetch.
12892 (PATFETCH_RAW): Rename to PATFETCH.
12893 (set_image_of_range): New fun.
12894 (SET_RANGE_TABLE_WORK_AREA): Use it.
12895 (regex_compile): Don't translate the pattern chars so eagerly.
12896 Only do it when inserting an `exactn' bytecode or when handling
12898 (mutually_exclusive_p): Avoid empty statement.
12900 2002-08-22 Kim F. Storm <storm@cua.dk>
12902 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
12903 end up on a partially visible line; this reverts a specific part
12904 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
12905 display error which has been reported several times now.
12906 However it introduces the problem that changes was supposed to fix.
12907 See my comments in the source if you want to debug this further.
12909 2002-08-20 Kenichi Handa <handa@etl.go.jp>
12911 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
12913 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
12915 * msdos.c (croak): Add `void' to definition.
12917 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
12918 Don't define them, they are defined in msdos.c.
12920 * mem-limits.h [MSDOS]: Declare etext.
12922 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
12923 `const' since CORRECT_DIR_SEPS modifies its target.
12925 2002-08-19 Kim F. Storm <storm@cua.dk>
12927 * keyboard.c (Fclear_this_command_keys): Add optional arg
12928 KEEP-RECORD to avoid clearing lossage when we just want to clear
12929 the current key sequence (kmacro needs this).
12931 2002-08-19 Kenichi Handa <handa@localhost>
12933 * composite.c (run_composition_function): Call FUNC if it is fboundp.
12935 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
12938 2002-08-17 Richard M. Stallman <rms@gnu.org>
12940 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
12942 * sysdep.c [!VMS]: Include sys/files.h.
12944 * editfns.c (save_restriction_restore): Defend from unchained marker.
12946 * buffer.c (overlays_at): Handle extending vec uniformly.
12947 (overlays_in): Handle extending vec from length 0 as in overlays_at.
12949 2002-08-15 Andrew Choi <akochoi@shaw.ca>
12951 * mac.c (init_mac_osx_environment): New function.
12953 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
12955 2002-08-14 Kim F. Storm <storm@cua.dk>
12957 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
12958 executing macro before appending to it (when used from Lisp).
12959 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
12960 which is called prior to each iteration of macro (for kmacro.el).
12961 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
12963 * lisp.h (Fexecute_kbd_macro): Update prototype.
12965 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
12967 2002-08-14 Kenichi Handa <handa@etl.go.jp>
12969 * xselect.c (QUTF8_STRING): New variable.
12970 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
12971 (x_atom_to_symbol): Likewise.
12972 (x_get_local_selection): New argument local_request. If it is
12973 nonzero, call handler_fn with the second arg nil.
12974 (x_handle_selection_request): Call x_get_local_selection with
12976 (lisp_data_to_selection_data): Don't encode the string here.
12977 (Fx_get_selection_internal): Call x_get_local_selection with
12979 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
12981 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
12983 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
12985 2002-08-13 Richard M. Stallman <rms@gnu.org>
12987 * minibuf.c (Fminibufferp): New function.
12988 (syms_of_minibuf): Defsubr it.
12989 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
12991 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
12993 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
12995 2002-08-12 Richard M. Stallman <rms@gnu.org>
12997 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
12998 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
12999 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
13002 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
13004 2002-08-11 Andrew Choi <akochoi@shaw.ca>
13006 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
13007 (Vmac_pass_command_to_system): New variable.
13008 (Vmac_pass_control_to_system): New variable.
13009 (do_mouse_moved): Check wp with is_emacs_window.
13010 (XTread_socket): Check window_ptr with is_emacs_window.
13011 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
13012 events back to Mac Toolbox for processing, depending on values of
13013 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
13014 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
13015 Vmac_pass_control_to_system.
13017 2002-08-10 Kenichi Handa <handa@etl.go.jp>
13019 * coding.c (unencodable_char_position): New function.
13020 (Funencodable_char_position): New function.
13021 (syms_of_coding): Defsubr Funencodable_char_position.
13023 2002-08-10 Andrew Choi <akochoi@shaw.ca>
13025 * mac.c (sys_select) [MAC_OSX]: New function.
13027 * macterm.c (MakeMeTheFrontProcess): New function.
13028 (mac_initialize): Call MakeMeTheFrontProcess.
13030 * s/darwin.h: Define select to sys_select.
13032 2002-08-09 Richard M. Stallman <rms@gnu.org>
13034 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
13036 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
13038 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
13041 2002-08-08 Ken Raeburn <raeburn@mit.edu>
13043 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
13045 * puresize.h (BASE_PURESIZE): Increase to 910000.
13047 2002-08-08 Kenichi Handa <handa@etl.go.jp>
13049 * coding.c (Ffind_operation_coding_system): For write-region, if
13050 VISIT is a filename, make it the target.
13052 2002-08-07 Richard M. Stallman <rms@gnu.org>
13054 * alloc.c (mark_object): Detect long lists for debugging.
13055 (mark_object_loop_halt): New variable.
13057 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
13059 * data.c (Fmake_variable_frame_local): Doc fix.
13061 2002-08-01 David Ponce <david@dponce.com>
13063 * w32menu.c (local_heap, local_alloc, local_free): New macros.
13064 (malloc_widget_value, free_widget_value)
13065 (w32_free_submenu_strings): Use them.
13067 (push_submenu_start, push_submenu_end, push_left_right_boundary)
13068 (push_menu_pane, push_menu_item, single_keymap_panes)
13069 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
13070 (single_submenu, set_frame_menubar)
13071 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
13073 (Fx_popup_menu): Don't show pop up menu until preceding one is
13074 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
13076 * w32menu.c: Changes adapted from xmenu.c
13077 (set_frame_menubar): First parse all submenus,
13078 then make widget_value trees from them.
13079 Don't allocate any widget_value objects
13080 until we are done with the parsing.
13081 (parse_single_submenu): New function.
13082 (digest_single_submenu): New function.
13083 (single_submenu): Function deleted, replaced by those two.
13085 2002-08-04 Andrew Choi <akochoi@shaw.ca>
13087 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
13088 returns a valid window pointer before proceeding for keyDown and
13091 2002-08-03 Andrew Choi <akochoi@shaw.ca>
13093 * macterm.c (USE_CARBON_EVENTS): New macro.
13094 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
13095 (x_iconify_frame): Call CollapseWindow.
13096 (Vmac_reverse_ctrl_meta): New variable.
13097 (Vmac_wheel_button_is_mouse_2): New variable.
13098 (init_mac_drag_n_drop): New function.
13099 (mac_do_receive_drag): New function.
13100 (mac_handle_service_event): New function.
13101 (init_service_handler): New function.
13102 (mac_to_emacs_modifiers): New function.
13103 (mac_event_to_emacs_modifiers): New function.
13104 (mac_get_mouse_btn): New function.
13105 (mac_convert_event_ref): New function.
13106 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
13107 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
13109 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
13111 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
13112 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
13113 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
13114 TOOL_BAR_EVENT for MAC_OS as well.
13115 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
13117 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
13119 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
13121 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
13123 * xdisp.c (forward_to_next_line_start): Fix a condition that
13124 lead to a newline being skipped.
13126 2002-08-02 Andrew Choi <akochoi@shaw.ca>
13128 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
13130 2002-08-01 Richard M. Stallman <rms@gnu.org>
13132 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
13134 2002-07-31 Andrew Choi <akochoi@shaw.ca>
13136 * macfns.c: #undef init_process before #define-ing it.
13138 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
13139 HAVE_CARBON is defined.
13141 2002-07-31 Richard M. Stallman <rms@gnu.org>
13143 * xmenu.c (set_frame_menubar): First parse all submenus,
13144 then make widget_value trees from them.
13145 Don't allocate any widget_value objects
13146 until we are done with the parsing.
13147 (parse_single_submenu): New function.
13148 (digest_single_submenu): New function.
13149 (single_submenu): Function deleted, replaced by those two.
13151 2002-07-30 Juanma Barranquero <lektu@terra.es>
13153 * w32proc.c (syms_of_ntproc): Fix docstring of
13154 `w32-get-true-file-attributes'.
13156 2002-07-28 Richard M. Stallman <rms@gnu.org>
13158 * s/hpux8.h (HPUX8): Define this before including hpux.h.
13159 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
13161 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
13163 * keyboard.c (make_lispy_event):
13164 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
13165 Explicitly clear up_modifier in event->modifiers.
13167 2002-07-27 Richard M. Stallman <rms@gnu.org>
13169 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
13171 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
13174 2002-07-26 Kenichi Handa <handa@etl.go.jp>
13176 * coding.c (detect_coding_iso2022): While checking a byte sequence
13177 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
13178 it in the normal loop.
13180 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
13182 * xterm.c (expose_overlaps): New function.
13183 (expose_window): Use it to fix the display of overlapping rows.
13185 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
13187 2002-07-23 Ken Raeburn <raeburn@gnu.org>
13189 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
13190 since it only depends on XUINT.
13192 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
13193 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
13194 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
13197 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
13198 its value over other approaches.
13199 * sysdep.c (start_of_data): Don't define the function if a macro
13200 form has been defined.
13202 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
13204 * xdisp.c (redisplay_updating_p): New variable.
13205 (init_iterator): Don't free realized faces when
13206 redisplay_updating_p is set.
13207 (redisplay_internal): Set redisplay_updating_p while updating
13210 2002-07-23 Richard M. Stallman <rms@gnu.org>
13212 * editfns.c (Fmessage): Treat "" like nil.
13214 2002-07-23 Kenichi Handa <handa@etl.go.jp>
13216 * xdisp.c (face_before_or_after_it_pos):
13217 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
13219 2002-07-22 Juanma Barranquero <lektu@terra.es>
13221 * callproc.c (init_callproc) [DOS_NT]:
13222 Initialize Vshared_game_score_directory to nil.
13223 (syms_of_callproc) [DOS_NT]: Likewise.
13225 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
13227 * xdisp.c (display_line): Replace an abort with xassert.
13229 2002-07-21 Richard M. Stallman <rms@gnu.org>
13231 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
13232 and END_UNCHANGED when setting buffer_unchanged_p.
13233 Use current_matrix_up_to_date_p to decide whether to use
13234 try_cursor_movement.
13236 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
13238 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
13240 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
13241 Set to nil if dir does not exist.
13242 (syms_of_callproc): Init unconditionally and simply.
13244 * buffer.c (Fbuffer_list): Doc fix.
13246 2002-07-21 Ken Raeburn <raeburn@gnu.org>
13248 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
13250 * buffer.c (mmap_realloc): When shrinking, make sure number of
13251 pages to unmap is rounded towards zero.
13253 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
13254 (XSETINT): Deleted.
13256 * m/att3b.h (XINT): Don't define.
13257 (VALBITS, VALMASK, XTYPE): Deleted.
13258 (DATA_SEG_BITS): Define.
13259 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
13260 ARRAY_MARK_FLAG): Deleted.
13261 (DATA_SEG_BITS): Define.
13262 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
13263 (DATA_SEG_BITS): Define.
13265 2002-07-20 Richard M. Stallman <rms@gnu.org>
13267 * print.c (print_error_message): New args CONTEXT and CALLER.
13270 * lisp.h (print_error_message): Declare new args.
13272 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
13273 and CONTEXT to print_error_message, don't print them here.
13274 For a Quit, don't use Vsignaling_function.
13275 Call message_log_maybe_newline.
13277 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
13279 2002-07-20 Kim F. Storm <storm@cua.dk>
13281 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
13283 2002-07-19 Ken Raeburn <raeburn@gnu.org>
13285 * bytecode.c (struct byte_stack): Pointers into byte string now
13287 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
13289 * charset.h (BCOPY_SHORT): Source pointer now points to const.
13290 * coding.c (encode_eol, detect_coding, detect_eol):
13291 (decode_coding, encode_coding, detect_coding_system):
13292 Source strings now treated as const.
13293 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
13294 modify Lisp string contents.
13295 * coding.h (decode_coding, encode_coding, detect_coding,
13296 detect_eol): Declarations updated.
13297 * composite.c (compose_chars_in_text): Treat Lisp string contents
13299 * dispnew.c (safe_bcopy): Source pointer now points to const.
13300 * lisp.h (STRING_COPYIN): New macro.
13301 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
13302 (internal_with_output_to_temp_buffer): Declarations updated.
13303 * print.c (temp_output_buffer_setup):
13304 (internal_with_output_to_temp_buffer): Buffer name argument is now
13306 * sound.c (struct sound_device): Function pointer field "write"
13307 buffer argument now points to const.
13308 (vox_write): Buffer argument points to const.
13309 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
13311 * sysdep.c (emacs_write): Buffer pointer now const.
13312 * term.c (encode_terminal_code): Buffer pointer now const.
13313 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
13314 (x_face_list_fonts, x_update_menu_appearance):
13315 (hash_string_case_insensitive): Treat Lisp string contents as const.
13317 2002-07-19 Juanma Barranquero <lektu@terra.es>
13319 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
13321 * fileio.c (syms_of_fileio): Likewise.
13322 (Ffile_name_as_directory): Fix argument name in docstring.
13323 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
13325 2002-07-18 Richard M. Stallman <rms@gnu.org>
13327 * data.c (Fdefalias): Doc fix.
13329 2002-07-17 Dave Love <fx@gnu.org>
13331 * intervals.h (text_property_stickiness): Use P_.
13333 * ccl.c: Remove `emacs' conditionals.
13334 (ccl_backtrace_table): Fix size spec.
13335 (ccl_driver): Fix type errors.
13337 2002-07-16 Ken Raeburn <raeburn@gnu.org>
13339 * alloc.c (xstrdup, make_string, make_unibyte_string)
13340 (make_multibyte_string, build_string): String pointer args now
13342 * charset.c (find_charset_in_text, c_string_width):
13343 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
13344 * fileio.c (report_file_error):
13345 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
13346 (count_combining_before, count_combining_after, insert_1_both):
13347 (insert, insert_and_inherit, insert_string):
13348 (insert_before_markers, insert_before_markers_and_inherit):
13349 * lread.c (intern, oblookup, hash_string):
13350 * minibuf.c (temp_echo_area_glyphs):
13351 * search.c (fast_c_string_match_ignore_case):
13352 * sysdep.c (emacs_open, set_file_times):
13353 * xfaces.c (xstricmp):
13354 * xdisp.c (store_frame_title, string_char_and_length):
13355 (message_dolog, message2, message2_nolog, set_message): Likewise.
13356 (set_message_1): Cast message string argument to const pointer.
13357 * editfns.c (general_insert_function): Insertion function now
13358 takes pointer to const for input data.
13359 * charset.h (find_charset_in_text, c_string_width):
13360 (parse_str_as_multibyte): Declarations updated.
13361 * dispextern.h (xstricmp): Declaration updated.
13362 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
13363 (count_size_as_multibyte, count_combining_before):
13364 (count_combining_after, insert_1, insert_1_both, message_dolog):
13365 (insert, insert_and_inherit, insert_before_markers)
13366 (insert_before_markers_and_inherit, set_message, message2):
13367 (message2_dolog, build_string, make_string, make_unibyte_string):
13368 (make_multibyte_string, intern, oblookup, report_file_error):
13369 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
13370 (emacs_open, xstrdup): Declarations updated.
13371 * systime.h (set_file_times): Declaration updated.
13373 * charset.c (find_charset_in_text, lisp_string_width): Use const
13374 for pointer to lisp string data.
13375 * charset.h (FETCH_STRING_CHAR_ADVANCE):
13376 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
13377 * coding.c (Ffind_coding_systems_region_interval):
13378 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
13379 (Fmake_directory_internal, Fdelete_directory):
13380 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
13381 * fontset.c (font_family_registry, fs_query_fontset):
13383 * frame.c (Fframe_parameter):
13384 * keyboard.c (cmd_error_internal):
13385 * keymap.c (Fdescribe_buffer_bindings):
13386 * lread.c (complete_filename_p, openp):
13387 * minibuf.c (Fminibuffer_complete_word):
13388 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
13389 (face_before_or_after_it_pos, next_element_from_string):
13390 (get_overlay_arrow_glyph_row, display_mode_element):
13391 (decode_mode_spec_coding):
13392 * xterm.c (same_x_server): Likewise.
13394 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
13395 settings of non-existent fields.
13397 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
13400 * lread.c (Fintern_soft): Use string macros instead of
13401 Lisp_String fields.
13402 * keyboard.c (echo_char, parse_modifiers_uncached):
13403 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
13404 * textprop.c (validate_interval_range, interval_of): Likewise.
13406 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
13408 * charset.h (FETCH_STRING_CHAR_ADVANCE)
13409 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
13410 XSTRING()->size_byte.
13412 * lisp.h (SDATA, SREF): Produce rvalue.
13414 * alloc.c (make_event_array): Use SSET for storing into a string.
13415 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
13417 * casefiddle.c (casify_object): Use SSET.
13418 * charset.h (FETCH_STRING_CHAR_ADVANCE)
13419 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
13420 address of string contents.
13421 * data.c (Faref): Use SDATA.
13422 (Faset): Use SDATA, SSET.
13423 * dired.c (directory_files_internal): Use SSET.
13424 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
13425 (Fread_file_name): Use SREF, SSET.
13426 * fns.c (concat): Use SSET.
13427 (concat, Fdelete): Use SDATA.
13428 * insdel.c (insert_from_string_1): Use SDATA.
13429 * keyboard.c (Fevent_convert_list): Use SREF.
13430 * lread.c (Fload): Use SDATA, SSET.
13431 * macfns.c (validate_x_resource_name): Use SSET.
13432 * process.c (status_message): Use SSET.
13433 * search.c (wordify): Use SDATA.
13434 (Freplace_match): Use SREF.
13435 * w32fns.c (validate_x_resource_name): Use SSET.
13436 * xfns.c (validate_x_resource_name): Use SSET.
13437 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
13439 2002-07-16 Richard M. Stallman <rms@gnu.org>
13441 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
13443 * xdisp.c (reconsider_clip_changes):
13444 Don't test prevent_redisplay_optimizations_p.
13445 (redisplay_internal): Test prevent_redisplay_optimizations_p
13446 along with clip_changed in some cases.
13447 (try_window_id): Likewise.
13448 (redisplay_window): New local var buffer_unchanged_p.
13450 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
13452 * process.c (create_process): Test USG_SUBTTY_WORKS.
13453 (process_send_signal): Clean up handling of GID.
13454 Detect errors in ioctls meant to set GID.
13456 * window.c (temp_output_buffer_show):
13457 Don't set prevent_redisplay_optimizations_p.
13459 2002-07-15 Juanma Barranquero <lektu@terra.es>
13461 * eval.c (Fdefvaralias): Add docstring argument.
13463 2002-07-15 Ken Raeburn <raeburn@gnu.org>
13465 * lisp.h (STRING_INTERVALS): Produce rvalue.
13466 (STRING_SET_INTERVALS): New macro.
13467 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
13468 * fns.c (Fstring_as_multibyte): Likewise.
13469 * intervals.c (balance_possible_root_interval, delete_interval)
13470 (create_root_interval, copy_intervals_to_string): Likewise.
13471 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
13474 2002-07-14 Ken Raeburn <raeburn@gnu.org>
13476 * lisp.h (STRING_SET_CHARS): New macro.
13477 (SCHARS, SBYTES): Produce rvalues.
13478 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
13479 * fns.c (concat): Likewise.
13480 * lread.c (read_vector): Likewise.
13482 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
13483 (STRING_SET_UNIBYTE): New macro.
13484 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
13485 length of -1) changed to use STRING_SET_UNIBYTE.
13486 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
13487 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
13488 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
13489 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
13490 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
13491 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
13492 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
13493 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
13494 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
13495 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
13496 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
13497 STRING_BYTES or indirection changed to SCHARS, SBYTES,
13498 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
13501 2002-07-13 Kim F. Storm <storm@cua.dk>
13503 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
13505 2002-07-12 Richard M. Stallman <rms@gnu.org>
13507 * fileio.c (Fwrite_region): Doc fix.
13509 * print.c (print_error_message): Don't handle Vsignaling_function here.
13511 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
13512 (command_loop_1): Avoid certain actions after memory-full error.
13514 * eval.c (Fsignal): Don't call cancel_hourglass.
13515 For a memory-full error, don't call Vsignal_hook_function
13516 and don't set Vsignaling_function.
13518 * process.c (process_send_signal): Add abort call.
13520 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
13522 * keymap.c (Fkey_binding): Fix typo.
13524 2002-07-11 Richard M. Stallman <rms@gnu.org>
13526 * alloc.c (Vmemory_full): New variable.
13527 (Vmemory_signal_data): Rename from memory_signal_data.
13529 (syms_of_alloc): Defvar them.
13530 (memory_full, buffer_memory_full): Set Vmemory_full.
13532 * lisp.h (Vmemory_full): Add declaration.
13533 (current_column, indented_beyond_p): Change declaration.
13535 * indent.c (last_known_column): Declare as double, not float.
13536 (current_column, current_column_1, string_display_width)
13537 (position_indentation): Return `double'.
13538 (indented_beyond_p): Arg `column' is `double'. Callers changed.
13540 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
13541 (back_to_previous_visible_line_start)
13542 (reseat_at_next_visible_line_start, next_element_from_buffer):
13543 Use `double', not `float', when calling indented_beyond_p.
13545 * s/hpux11.h (BROKEN_SA_RESTART): Define.
13547 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
13549 2002-07-11 Juanma Barranquero <lektu@terra.es>
13551 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
13552 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
13553 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
13554 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
13555 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
13556 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
13558 2002-07-10 Juanma Barranquero <lektu@terra.es>
13560 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
13561 All callers changed.
13563 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
13565 * data.c (Fdefalias): Add an optional `docstring' argument.
13566 (set_internal, Fsetq_default): Use XCAR/XCDR.
13568 * composite.c (HASH_VALUE, HASH_KEY):
13569 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
13571 2002-07-09 Kenichi Handa <handa@etl.go.jp>
13573 * callproc.c (Fcall_process): Fix previous change.
13575 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
13577 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
13578 Add support for hash-tables.
13579 (Ftry_completion): Return t even if the string appears multiple times.
13581 * fns.c (Fnconc): Use XCDR.
13582 (Fprovide): Use CONSP and XCDR.
13583 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
13584 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
13585 (Fmake_hash_table): Accept `:size nil'.
13586 (Fmakehash): Delete: moved to subr.el.
13587 (syms_of_fns): Don't defsubr makehash.
13589 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
13590 (HASH_TABLE_SIZE): Move from fns.c.
13592 2002-07-07 Richard M. Stallman <rms@gnu.org>
13594 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
13595 Instead just return 0 when there is something to be done.
13596 (try_scrolling): If make_cursor_line_fully_visible returns 0,
13597 retry scrolling as if cursor were off the bottom.
13598 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
13599 return CURSOR_MOVEMENT_MUST_SCROLL.
13600 (redisplay_window): If make_cursor_line_fully_visible returns 0,
13601 go to try_to_scroll.
13603 * buffer.c (Fbuffer_local_value): Store current value into its binding
13604 so we get the up-to-date value for the binding that is loaded.
13606 * eval.c (Fdefmacro): Doc fix.
13608 2002-07-05 Dave Love <fx@gnu.org>
13610 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
13613 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
13614 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
13615 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
13616 CCL_LookupCharConstTbl.
13617 (syms_of_ccl): Defvar translation-hash-table-vector.
13619 2002-07-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
13621 * xdisp.c: Remove unused variable `face'.
13623 2002-07-04 Juanma Barranquero <lektu@terra.es>
13625 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
13626 obsolescence information.
13628 2002-07-03 Andrew Choi <akochoi@shaw.ca>
13630 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
13631 pattern. Search cache first.
13632 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
13634 (XLoadQueryFont): Use it.
13636 2002-07-02 Richard M. Stallman <rms@gnu.org>
13638 * keymap.c (Fdefine_key): Doc fix.
13640 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
13642 2002-07-02 Juanma Barranquero <lektu@terra.es>
13644 * keymap.c (syms_of_keymap): Fix typo.
13646 2002-07-01 Andrew Choi <akochoi@shaw.ca>
13648 * s/darwin.h: Define POSIX_SIGNALS.
13650 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
13651 and FSRefMakePath to convert FSSpec returned with Apple Event to
13653 (mac_initialize) [TARGET_API_MAC_CARBON]:
13654 Call init_required_apple_events and disable the `Quit' menu item
13655 provided automatically by the Carbon Toolbox.
13657 2002-07-01 Dave Love <fx@gnu.org>
13659 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
13662 * xterm.c: Fix prototype for K&R.
13664 * term.c (costs_set): Declare static, non-initialized for pcc.
13666 2002-07-01 Richard M. Stallman <rms@gnu.org>
13668 * keyboard.c (timer_last_idleness_start_time): New variable.
13669 (timer_start_idle): Set that.
13670 (read_key_sequence): Use that to reset timer_idleness_start_time
13673 * window.c (Frecenter): With arg, set optional_new_start.
13675 * xdisp.c (redisplay_internal): Make optional_new_start really work.
13677 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
13678 buffer for completion.
13680 2002-06-29 Ken Raeburn <raeburn@gnu.org>
13682 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
13684 2002-06-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13686 * keyboard.c (readable_filtered_events): New function that filters
13687 FOCUS_IN_EVENT depending on parameter.
13688 (readable_events): Calls readable_filtered_events, not filtering
13690 (get_filtered_input_pending): New function, filtering parameter passed
13691 to readable_filtered_events.
13692 (get_input_pending): Calls get_filtered_input_pending, not filtering
13694 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
13697 * xterm.h (struct x_output): Add focus_state.
13699 * xterm.c (x_focus_changed): New function.
13700 (x_detect_focus_change): New function.
13701 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
13702 EnterNotify and LeaveNotify to track X focus changes.
13704 2002-06-28 Andreas Schwab <schwab@suse.de>
13706 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
13708 2002-06-27 Kim F. Storm <storm@cua.dk>
13710 * xdisp.c: (mode_line_string_list, mode_line_string_face)
13711 (mode_line_string_face_prop): New variables.
13712 (store_mode_line_string): New function.
13713 (display_mode_element): Use store_mode_line_string to
13714 add mode-line string elements to mode_line_string_list
13715 when mode_line_string_list is non-nil.
13716 (Fformat_mode_line): Now returns propertized string by
13717 default. New arg NO-PROPS to ignore properties.
13718 (decode_mode_spec): Only add two dashes for %- in propertized
13720 (syms_of_xdisp): Init and staticpro mode_line_string_list.
13722 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
13724 * minibuf.c (minibuffer_completion_contents): Add return type.
13726 2002-06-27 Juanma Barranquero <lektu@terra.es>
13728 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
13730 2002-06-26 Juanma Barranquero <lektu@terra.es>
13732 * fileio.c (read_file_name_cleanup): Add missing return.
13734 2002-06-26 Richard M. Stallman <rms@gnu.org>
13736 * window.c (Frecenter): Don't set force_start flag.
13738 * minibuf.c (do_completion, Fminibuffer_complete_word)
13739 (Fminibuffer_completion_help): Complete just the text before point.
13740 (minibuffer_completion_contents): New function.
13742 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
13744 * frame.c (frames_bury_buffer): Function deleted.
13746 2002-06-25 Miles Bader <miles@gnu.org>
13748 * callint.c (Fcall_interactively): When checking to see if doprnt hit
13749 the end of callint_message, allow for a terminating '\0'.
13751 2002-06-24 Juanma Barranquero <lektu@terra.es>
13753 * w32select.c: Include composite.h
13755 * w16select.c: Likewise.
13757 2002-06-24 Kenichi Handa <handa@etl.go.jp>
13759 * callproc.c (Fcall_process): If code detection is necessary,
13760 call detect_coding directly here.
13762 * coding.c (detect_eol): Preserve coding->cmp_data.
13764 * w16select.c (Fw16_get_clipboard_data):
13765 * w32fns.c (w32_to_x_font):
13766 * w32select.c (Fw32_get_clipboard_data):
13767 * xselect.c (selection_data_to_lisp_data):
13768 * xterm.c (XTread_socket): Disable composition handling.
13770 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
13772 * print.c (temp_output_buffer_setup): Kill all local variables.
13774 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
13776 * lread.c (Fread): Remove redundant and imprecise declaration.
13778 * xfns.c (check_x_display_info): Use check_x_frame.
13780 * .gdbinit (xprintsym): Use the new `xname' field.
13783 2002-06-22 Jason Rumney <jasonr@gnu.org>
13785 * w32fns.c (file_dialog_callback): New function.
13786 (Fx_file_dialog): Allow selecting directories as well as files.
13788 2002-06-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
13790 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
13791 OpenBSD. Add support for mipseb-*-netbsd* machines.
13793 2002-06-17 Andrew Choi <akochoi@shaw.ca>
13795 * macterm.c (mac_scroll_area): Set foreground and backcolor to
13796 black and white before scrolling. Restore frame background and
13797 foreground color after scrolling.
13798 (do_window_update): Call XClearWindow before calling expose_frame.
13799 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
13800 FRAME_FOREGROUND_PIXEL of frame.
13802 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
13803 test Mac command key as <ALT> key.
13805 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
13807 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
13809 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
13810 Lookup keys in function-key-map immediately so that key-translation-map
13811 can be applied earlier.
13812 Remove function_key_possible and key_translation_possible, replaced
13813 by checking `keytran_start < t'.
13815 * .gdbinit (xsymbol): Use the new `xname' field.
13817 2002-06-17 Andrew Choi <akochoi@shaw.ca>
13819 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
13820 test Mac command key as <ALT> key.
13822 * mac.c (do_applescript): Call initialize_applescript if necessary
13823 when first called. Dispose of result_desc only when there is no error.
13824 (Fdo_applescript): Use %d format specifier instead of %ld.
13826 2002-06-16 Andrew Choi <akochoi@shaw.ca>
13828 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
13829 of FrontWindow for cases keyDown and autoKey.
13831 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
13832 Vdefault_fontset to Monaco with mac-roman coding.
13834 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
13835 init_process before and after inclusion of Carbon/Carbon.h, resp.
13837 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
13839 (add_font_name_table_entry): New function.
13840 (init_font_name_table): Use add_font_name_table_entry; add italic,
13841 bold, and bold-italic entries for truetype fonts.
13843 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
13845 (try_font_list) [MAC_OS]: If no font matches given registry, try
13846 fonts with any registry matching face_family.
13847 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
13849 * s/darwin.h: If autoconf detects the Ncurses library, define
13850 LIBS_TERMCAP to -lncurses to use it.
13852 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
13854 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
13856 2002-06-15 Richard M. Stallman <rms@gnu.org>
13858 * window.c (Fset_window_configuration): Explicitly preserve
13859 the point value that new_current_buffer had at the start.
13861 2002-06-14 Juanma Barranquero <lektu@terra.es>
13863 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
13866 2002-06-14 Kim F. Storm <storm@cua.dk>
13868 * insdel.c (insert_1_both, insert_from_string_1)
13869 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
13870 insert happened in the end_unchanged region. Otherwise, the
13871 redisplay may be confused and duplicate the last line in the
13872 buffer [seen after save-buffer when require-final-newline==t].
13874 2002-06-13 Jason Rumney <jasonr@gnu.org>
13876 * w32.c (init_environment): Remove EMACSLOCKDIR.
13877 (stat): Swap _S_IFDIR and _S_IFREG.
13879 2002-06-13 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
13881 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
13882 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
13883 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
13884 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
13885 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
13886 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
13887 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
13888 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
13889 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
13890 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
13891 SELECTION_REQUEST_EVENT, selection_clear_event to
13892 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
13893 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
13894 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
13895 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
13896 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
13897 no_event to NO_EVENT.
13899 2002-06-12 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
13901 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
13903 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
13905 * intervals.c (textget): Don't forget to `return'.
13906 (lookup_char_property): Use XCAR/XCDR.
13908 2002-06-12 Juanma Barranquero <lektu@terra.es>
13910 * xdisp.c (Fformat_mode_line): Fix typo.
13912 2002-06-12 Kim F. Storm <storm@cua.dk>
13914 * xdisp.c (Fformat_mode_line): New function.
13915 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
13916 (store_frame_title_char, store_frame_title): Use unconditionally.
13917 (init_xdisp): Defsubr Fformat_mode_line.
13918 Initialize frame_title_buf etc. unconditionally.
13920 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
13922 * keyboard.c (read_key_sequence):
13923 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
13924 things through those maps after downcasing events.
13925 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
13926 applies after function-key-map.
13927 Make sure that keytran can be done in the middle in the sequence.
13928 Be careful not to throw away events past the one we downcase.
13930 * lread.c (read_integer): Remove unused var `tem'.
13931 (read1): Fix int/Lisp_Object mixup.
13933 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
13935 2002-06-11 Richard M. Stallman <rms@gnu.org>
13937 * keyboard.c (readable_events): Ignore any number of
13938 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
13940 2002-06-09 Miles Bader <miles@gnu.org>
13942 * xfaces.c (Ftty_supports_face_attributes_p): New function.
13943 (parse_rgb_list, tty_lookup_color): New functions.
13944 (tty_defined_color): Use `tty_lookup_color' to do all the work.
13945 (color_distance, Fcolor_distance): New functions.
13946 (TTY_SAME_COLOR_THRESHOLD): New macro.
13947 (Qtty_color_standard_values): New variable.
13948 (syms_of_xfaces): Initialize new vars & functions.
13950 2002-06-08 Colin Walters <walters@verbum.org>
13952 * textprop.c (Vchar_property_alias_alist): New variable.
13953 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
13955 * intervals.c (lookup_char_property): New function for looking up
13956 overlay and text properties, created from textget.
13959 * intervals.h (lookup_char_property): Declare.
13960 (Vchar_property_alias_alist): Declare.
13962 * buffer.c (Foverlay_get): Use lookup_char_property.
13964 2002-06-07 Sam Steingold <sds@gnu.org>
13966 * xselect.c (lisp_data_to_selection_data): Fix last change:
13967 *data_ret is not a Lisp string, while unibyte_string is.
13969 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
13971 * xselect.c (lisp_data_to_selection_data): Fix last change:
13974 2002-06-07 Andreas Schwab <schwab@suse.de>
13976 * m/amdx86-64.h: New file.
13978 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
13980 * fns.c (Fstring_make_unibyte): Doc fix.
13982 * xselect.c (lisp_data_to_selection_data): If the requested type
13983 is STRING, call string_make_unibyte to encode the selected text
13986 * window.c (Fset_window_hscroll): Doc fix.
13988 2002-06-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
13990 * fileio.c (choose_write_coding_system):
13991 Call select-safe-coding-system properly.
13993 2002-06-03 Richard M. Stallman <rms@gnu.org>
13995 * xdisp.c (message_with_string): Error if STRING is not a string.
13997 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
13999 * fileio.c (choose_write_coding_system): Pass FILE arg to
14000 Vselect_safe_coding_system_function.
14002 2002-06-03 Ken Raeburn <raeburn@gnu.org>
14004 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
14006 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
14008 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
14009 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
14010 * keymap.c (describe_command): Likewise.
14011 * minibuf.c (read_minibuf): Likewise.
14013 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
14014 Cast `current_column' return value to int.
14015 (back_to_previous_visible_line_start)
14016 (reseat_at_next_visible_line_start, next_element_from_buffer):
14017 Cast `indented_beyond_p' 3rd arg to float.
14019 * indent.c (last_known_column): Now a float.
14020 (current_column_1, position_indentation, current_column)
14021 (string_display_width): Return float.
14022 (Fcurrent_column): Cast `current_column' return value to int.
14023 (Fcurrent_indentation): Cast `position_indentation' retval to int.
14024 (indented_beyond_p): Third arg now a float.
14025 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
14027 * lisp.h (current_column): Now returns float.
14028 (indented_beyond_p): 3rd arg now a float.
14030 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
14032 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
14033 is Qcompound_text_with_extensions.
14035 * xselect.c (lisp_data_to_selection_data): Always set selection
14036 type as string if x_encode_text returns streingp non-NULL.
14038 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
14040 2002-05-30 Richard M. Stallman <rms@gnu.org>
14042 * window.c (Fset_window_configuration): Correct the handling
14043 of point in current buffer, to work with multiple windows.
14045 2002-05-29 Colin Walters <walters@verbum.org>
14047 * lread.c (Fread_from_string): Don't depend on order of evaluation
14048 for C function parameters.
14050 2002-05-28 Richard M. Stallman <rms@gnu.org>
14052 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
14053 way for blinked-off state and for a nonselected window.
14055 * window.c (window_scroll_pixel_based): Don't call Fbolp;
14056 instead, see if the new start pos is at beginning of line.
14058 * fileio.c (Fwrite_region): If START is a string, don't
14059 make any annotations.
14061 * eval.c (syms_of_eval): Doc fix.
14063 2002-05-28 Colin Walters <walters@debian.org>
14065 * emacs.c (USAGE1): Add --no-splash.
14066 (standard_args): Ditto.
14068 2002-05-28 Colin Walters <walters@gnu.org>
14070 * lread.c (readchar_count): New variable.
14071 (readchar): Increment it.
14072 (unreadchar): Decrement it.
14073 (read_multibyte): Decrement it.
14074 (Vread_with_symbol_positions): New variable.
14075 (Vread_symbol_positions_list): New variable.
14076 (read_internal_start): New function, created from Fread and
14077 Fread_from_string. Handle Vread_symbol_positions_list and
14078 Vread_with_symbol_positions.
14079 (readevalloop, Fread, Fread_from_string): Use it.
14080 (read1): Use readchar_count to add symbol positions to
14081 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
14082 (syms_of_lread): DEFVAR_LISP and initialize them.
14084 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
14085 (substitute_object_recurse, substitute_object_in_subtree)
14086 (substitute_in_interval): Prototype.
14087 (read_multibyte): Return c if it's less than zero.
14089 2002-05-28 Kim F. Storm <storm@cua.dk>
14091 * fileio.c (Fread_file_name_internal): Added brute-force
14092 speed up for using predicate file-directory-p.
14094 2002-05-28 Kim F. Storm <storm@cua.dk>
14096 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
14098 (syms_of_fileio): DEFVAR_LISP them.
14099 (read_file_name_cleanup): New unwind function.
14100 (Fread_file_name_internal): Only return completions satifying
14101 Vread_file_name_predicate. Temporarily unwind protect and rebind
14102 default-directory while checking completions against the predicate.
14103 (Fread_file_name): Added PREDICATE argument. Specbind it to
14104 Vread_file_name_predicate during completion.
14105 Call Vread_file_name_function to read the file name if non-nil.
14107 * lisp.h (Fread_file_name): Now has 6 args.
14109 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
14110 predicate for Fread_file_name when reading directory name.
14111 Supply Qnil for predicate in other calls to Fread_file_name.
14113 2002-05-26 Miles Bader <miles@gnu.org>
14115 * term.c (tty_capable_p): New function.
14116 * dispextern.h (tty_capable_p): New function declaration.
14117 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
14118 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
14120 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
14122 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
14123 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
14124 (Vwrite_region_annotate_functions): Docstring fix.
14126 2002-05-23 Kim F. Storm <storm@cua.dk>
14128 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
14129 phys_cursor's hpos is overwritten. This is still not completely
14130 correct, as it doesn't really make sense to use hpos at all to
14131 get the cursor glyph (as that is relative to the width of the
14132 characters on the line, which may have changed during the update).
14134 2002-05-22 Jason Rumney <jasonr@gnu.org>
14136 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
14138 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
14139 Use modified enumfont_t struct.
14141 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
14143 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
14144 Handle the `hbar' cursor type.
14145 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
14147 * w32fns.c (Qhbar): New variable.
14148 (x_specified_cursor_type): Use it.
14150 2002-05-21 Ken Raeburn <raeburn@gnu.org>
14152 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
14153 now, when the address is needed.
14155 2002-05-21 Colin Walters <walters@gnu.org>
14157 * Makefile.in (shortlisp): Add font-core.el.
14159 2002-05-20 Richard M. Stallman <rms@gnu.org>
14161 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
14163 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
14164 equivalent key bindings here.
14166 2002-05-20 Ken Raeburn <raeburn@gnu.org>
14168 Change symbol structure to contain a lisp object for the symbol
14170 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
14171 object field named "xname".
14172 (SYMBOL_NAME): New macro.
14173 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
14175 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
14176 (mark_object, gc_sweep): Use symbol xname field and XSTRING
14177 instead of name field.
14178 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
14179 SYMBOL_NAME instead of XSYMBOL and name field.
14180 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
14181 instead of XSYMBOL and name field.
14182 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
14183 and SYMBOL_NAME instead of XSYMBOL and name field.
14184 * coding.c (Fread_coding_system, code_convert_region1)
14185 (code_convert_string1, code_convert_string_norecord)
14186 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
14187 XSYMBOL and name field.
14188 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
14189 (Fmake_variable_buffer_local, Fmake_local_variable)
14190 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
14191 of XSYMBOL and name field.
14192 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
14193 XSYMBOL and name field.
14194 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
14195 instead of XSYMBOL and name field.
14196 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
14197 XSYMBOL and name field.
14198 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
14199 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
14200 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
14201 instead of XSYMBOL and name field.
14202 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
14203 (parse_modifiers, apply_modifiers, Fevent_convert_list)
14204 (parse_solitary_modifier, Fexecute_extended_command):
14205 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
14206 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
14207 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
14208 of XSYMBOL and name field.
14209 (describe_command, describe_translation): Use SYMBOL_NAME and
14210 assignment instead of XSYMBOL and name field and XSETSTRING.
14211 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
14212 instead of XSYMBOL and name field.
14213 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
14214 name field and XSETSTRING.
14215 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
14216 of XSYMBOL and name field.
14217 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
14218 assignment instead of XSYMBOL and name field and XSETSTRING.
14219 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
14220 XSTRING instead of XSYMBOL and name field.
14221 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
14222 and XSTRING instead of XSYMBOL and name field.
14223 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
14224 and XSTRING instead of XSYMBOL and name field.
14225 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
14226 XSTRING instead of XSYMBOL and name field.
14227 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
14228 of XSYMBOL and name field.
14229 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
14230 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
14232 2002-05-19 Ken Raeburn <raeburn@gnu.org>
14234 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
14235 and XCDR real rvalues in most configurations.
14237 * buffer.c (fix_overlays_in_range, fix_overlays_before):
14238 Don't take the address of the cdr part of a cons cell; instead, track
14239 the parent cell and call XSETCDR, or set the variable for the head
14240 of the list if we haven't started down the list yet.
14242 2002-05-19 Richard M. Stallman <rms@gnu.org>
14244 * doc.c (reread_doc_file): Don't ask for confirmation.
14246 2002-05-18 Jason Rumney <jasonr@gnu.org>
14248 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
14249 (xbm_load_image): Use it.
14251 (xbm_read_bitmap_data): Reverted to xfns.c version.
14252 From David Ponce <david@dponce.com>.
14254 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
14256 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
14259 2002-05-16 Juanma Barranquero <lektu@terra.es>
14261 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
14263 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
14265 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
14267 (read_char_minibuf_menu_prompt): Fix typo.
14269 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
14271 * eval.c (Fcommandp): Doc fix.
14273 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
14275 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
14276 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
14277 (Fset_keymap_parent): Gcpro a bit more.
14278 (access_keymap): Gcpro around meta_map call and around the main loop.
14279 (get_keyelt): Gcpro when following indirect references.
14280 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
14281 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
14282 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
14283 Remove useless ad-hoc remap code.
14285 2002-05-13 Richard M. Stallman <rms@gnu.org>
14287 * search.c (search_buffer): Give up boyer moore search if inverse
14288 translation change charset_base.
14290 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
14292 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
14293 characters is carried over from the previous block of text, adjust
14294 coding->produced to account for the extra character.
14296 2002-05-11 Andreas Schwab <schwab@suse.de>
14298 * coding.c (intersection): Keep the elements of the returned list
14299 in the same order as in the first list.
14301 2002-05-11 Kim F. Storm <storm@cua.dk>
14303 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
14304 only update cmm_size if realloc actually succeeds.
14305 Testing with initial size of 2 elements revealed that using
14306 realloc on GNU/Linux would cause a random trap in xmalloc
14307 later on, so I rewrote the code to use malloc/bcopy/free instead
14310 2002-05-10 Jason Rumney <jasonr@gnu.org>
14312 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
14314 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
14316 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
14317 parens, to ensure correct evaluation order.
14319 2002-05-10 Kim F. Storm <storm@cua.dk>
14321 * keymap.c (Vemulation_mode_map_alists): New variable.
14322 (syms_of_keymap): DEFVAR_LISP it.
14323 (current_minor_maps): Process keymap alists in that list before
14324 minor-mode-overriding-map-alist and minor-mode-map-alist.
14326 2002-05-09 Richard M. Stallman <rms@gnu.org>
14328 * search.c (Freplace_match): Doc fix.
14330 2002-05-09 Kim F. Storm <storm@cua.dk>
14332 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
14333 Enlarge cursor rectangle drawn around image with non-zero relief.
14335 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
14336 Enlarge cursor rectangle drawn around image with non-zero relief.
14338 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
14339 Enlarge cursor rectangle drawn around image with non-zero relief.
14341 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
14343 * xselect.c (lisp_data_to_selection_data): Don't set selection
14344 type if comes from the Lisp object's car. If the selection
14345 contains a pure ASCII text, always return QSTRING as its type.
14347 2002-05-06 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
14349 * mac.c (mac-cut-function): Doc fix.
14351 2002-05-05 Richard M. Stallman <rms@gnu.org>
14353 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
14355 2002-05-04 Jason Rumney <jasonr@gnu.org>
14357 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
14358 for event-click-count.
14360 * process.c (init_process): Only add server subfeature if we can
14361 use non-blocking I/O.
14363 2002-05-04 Andrew Choi <akochoi@shaw.ca>
14365 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
14368 2002-05-03 Jason Rumney <jasonr@gnu.org>
14370 * process.c (Fmake_network_process): Only support server sockets
14371 when we can make them non-blocking.
14373 * s/ms-w32.h (HAVE_SELECT): Define.
14375 * w32.h (FILE_NDELAY): New flag.
14377 * w32.c (sys_getpeername, fcntl): New functions.
14378 (_sys_read_ahead): Temporarily block on non-blocking sockets.
14380 * w32proc.c: include sys/file.h.
14382 2002-05-03 Colin Walters <walters@verbum.org>
14384 * callproc.c (Vgame_score_directory): Renamed to
14385 Vshared_game_score_directory.
14387 2002-04-30 Richard M. Stallman <rms@gnu.org>
14389 * s/gnu.h [emacs]: Include stdio.h.
14390 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
14392 * eval.c (do_autoload): Error if called while preparing to dump.
14394 * fns.c (Frequire): Error if need to load while preparing to dump.
14396 2002-04-28 Colin Walters <walters@verbum.org>
14398 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
14399 Default to "~/.emacs.d/games".
14401 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
14403 * lread.c (openp): Change arg exec_only to predicate.
14404 (build_load_history): Use XCAR/XCDR.
14405 (Flocate_file_internal): New fun.
14406 (syms_of_lread): Defsubr it.
14407 (Fload): Update call to openp.
14409 * lisp.h (openp): Update prototype.
14411 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
14412 * w32proc.c (sys_spawnve):
14413 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
14414 * w32.c (check_windows_init_file):
14415 * sound.c (Fplay_sound_internal):
14416 * process.c (Fstart_process):
14417 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
14418 * mac.c (run_mac_command):
14419 * emacs.c (init_cmdargs):
14420 * callproc.c (Fcall_process): Update call to openp.
14422 * textprop.c (remove_properties): Don't use XCAR without CONSP.
14424 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
14426 2002-04-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
14428 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
14429 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
14431 2002-04-28 Richard M. Stallman <rms@gnu.org>
14433 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
14435 * eval.c (Fcommandp): New arg for_call_interactively.
14436 * lisp.h (Fcommandp): Declare new arg.
14438 2002-04-28 Jason Rumney <jasonr@gnu.org>
14440 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
14442 * w32.c (stat, fstat): Use file index information to generate
14443 inodes for directories where available.
14445 2002-04-26 Andrew Choi <akochoi@shaw.ca>
14447 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
14448 [HAVE_CARBON]: Include Mac object files.
14450 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
14451 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
14452 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
14453 MAC_OSX, and MAC_OS instead of macintosh.
14455 * editfns.c [MAC_OS8]: Include stdio.h.
14457 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
14459 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
14462 * process.c (QCfamily, QCfilte): Declare extern.
14463 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
14466 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
14468 * tparam.c [MAC_OSX]: Don't define BC and UP.
14470 * config.in [HAVE_CARBON]: Add.
14472 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
14473 Move here from mac/src and mac/inc.
14475 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
14477 2002-04-26 Gerd Moellmann <gerd@gnu.org>
14479 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
14480 Compute phys_cursor_width from the x position returned
14481 by x_draw_glyhs, which is cheaper.
14482 (x_display_and_set_cursor): Compute the buffer-local value
14483 of `cursor-in-non-selected-windows' only when needed.
14485 2002-04-25 Gerd Moellmann <gerd@gnu.org>
14487 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
14488 cursor on a stretch glyph has a width that depends on
14489 x_stretch_cursor_p.
14491 2002-04-25 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
14493 * abbrev.c (abbrev-start-location): Doc fix.
14495 * indent.c (Fvertical_motion): Fix last change.
14497 2002-04-25 Gerd Moellmann <gerd@gnu.org>
14499 * indent.c (Fvertical_motion): Move to the start of the line
14500 containing PT before moving up or down.
14502 2002-04-24 Gerd Moellmann <gerd@gnu.org>
14504 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
14505 case of writing a whole row, more or less analogous to the case of
14506 writing only parts of a row.
14508 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
14511 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
14513 2002-04-23 Colin Walters <walters@verbum.org>
14515 * buffer.c (syms_of_buffer): Doc fix.
14517 2002-04-23 Gerd Moellmann <gerd@gnu.org>
14519 * xterm.c (notice_overwritten_cursor): Handle the special case
14520 of the cursor being in the first blank non-text line at the
14523 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
14524 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
14525 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
14526 bar cursors only, to make phys_cursor_width contain what its name
14528 (notice_overwritten_cursor): Consider the cursor image erased if
14529 the output area intersects the cursor image in y-direction.
14531 2002-04-23 Simon Marshall <simon@gnu.org>
14533 * xfns.c (x_set_mouse_color): Change default for cross_cursor
14536 2002-04-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
14538 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
14540 2002-04-22 Kim F. Storm <storm@cua.dk>
14542 * textprop.c (remove_properties): Fixed trap for malformed plist.
14544 2002-04-22 Richard M. Stallman <rms@gnu.org>
14546 * cmds.c (Fend_of_line): Handle intangible text in mid line.
14548 * window.c (make_window): Initialize height_fixed_p,
14549 last_cursor_off_p, and p->cursor_off_p slots.
14551 2002-04-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
14553 * fns.c (use-dialog-box): Doc fix.
14555 2002-04-19 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
14557 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
14558 variables `row', `i' and `area'.
14559 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
14562 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
14564 * xfaces.c (clear_font_table): Don't free the default font of
14565 a frame even if it's on another display.
14566 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
14569 2002-04-19 Juanma Barranquero <lektu@terra.es>
14571 * indent.c (Fmove_to_column): Remove unused local variable
14572 `next_boundary_byte'.
14573 (current_column_1): Likewise.
14575 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
14577 * msdos.c (Qhbar): New variable.
14578 (syms_of_msdos): Intern and staticpro it.
14579 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
14582 2002-04-19 Dave Lambert <dlambert@acm.org>
14584 Theses change implement an underscore-like (`hbar') cursor.
14586 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
14588 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
14589 Handle the `hbar' cursor type.
14590 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
14592 * xfns.c (Qhbar): New variable.
14593 (syms_of_xfns): Intern and staticpro it.
14594 (x_specified_cursor_type): Handle `hbar' cursor.
14596 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
14599 2002-04-18 Richard M. Stallman <rms@gnu.org>
14601 * textprop.c (remove_properties): New arg LIST allows scanning
14602 either a list or a plist.
14603 (interval_has_some_properties_list): New function, like
14604 interval_has_some_properties using list instead of plist.
14605 All callers changed.
14606 (Fremove_list_of_text_properties): New function.
14607 (syms_of_textprop): Defsubr it.
14609 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
14611 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
14613 2002-04-17 Juanma Barranquero <lektu@terra.es>
14615 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
14617 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
14619 * window.c (coordinates_in_window): Don't report on margin area
14620 if its width is zero.
14622 2002-04-16 Jason Rumney <jasonr@gnu.org>
14624 * w32fns.c (Fx_file_dialog): Decode file name before using.
14626 * w32term.c (construct_drag_n_drop): Likewise.
14628 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
14630 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
14631 store load-history in pure space.
14633 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
14635 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
14637 * xterm.c (Qlatin_1, Qutf_8): New vars.
14638 (syms_of_xterm): Initialize them.
14639 (XTread_socket): Eliminate incorrect optimization that tried to avoid
14640 decoding the output of X*LookupString.
14641 Always use latin-1 to decode the output of XLookupString.
14642 Try Xutf8LookupString if XmbLookupString failed.
14644 * region-cache.c (new_region_cache): Use BEG.
14646 2002-04-16 Gerd Moellmann <gerd@gnu.org>
14648 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
14649 configuration files.
14650 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
14653 2002-04-15 Andreas Schwab <schwab@suse.de>
14655 * config.in: Regenerated using autoheader.
14657 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
14658 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
14659 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
14660 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
14661 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
14662 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
14663 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
14664 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
14665 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
14666 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
14667 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
14668 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
14669 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
14670 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
14671 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
14672 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
14673 STACK_DIRECTION, now set by autoconf.
14675 2002-04-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
14677 * dispnew.c (marginal_area_string): Sort arguments.
14679 * dispextern.h (marginal_area_string): Add prototype.
14681 2002-04-13 Richard M. Stallman <rms@gnu.org>
14683 * fileio.c (Finsert_file_contents):
14684 Don't call temp_output_buffer_setup--do just part, by hand.
14686 * coding.c (run_pre_post_conversion_on_str):
14687 Don't call temp_output_buffer_setup--do just part, by hand.
14689 * keyboard.c (command_loop_1): Don't call start_hourglass
14690 or cancel_hourglass when executing a macro.
14692 * marker.c (count_markers): New function.
14694 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
14695 grow without limit. Move recently used elements to the front.
14697 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
14699 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
14701 2002-04-12 Gerd Moellmann <gerd@gnu.org>
14703 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
14704 rows marginal areas.
14705 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
14706 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
14708 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
14710 2002-04-12 Dave Love <fx@gnu.org>
14712 * dispnew.c (marginal_area_string): New.
14714 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
14715 (Qleft_margin, Qright_margin): Declare.
14716 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
14718 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
14719 note_mode_line_highlight and extended.
14721 * keyboard.c (Qleft_margin, Qright_margin): Declare.
14722 (make_lispy_event): Deal with mouse events in margins.
14724 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
14726 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
14728 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
14729 than deactivating the mark if tmm is set to `lambda'.
14730 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
14731 Use a single event for HELP_EVENT.
14732 (Fexecute_extended_command): Save last_point_position.
14734 2002-04-12 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
14736 * lisp.h (Fpropertize): Add prototype.
14738 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
14740 2002-04-10 Colin Walters <walters@verbum.org>
14742 * config.in: Add HAVE_SHARED_GAME_DIR.
14744 * callproc.c: (Vgame_score_directory): New variable.
14745 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
14747 2002-04-10 Richard M. Stallman <rms@gnu.org>
14749 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
14751 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
14753 * minibuf.c (read_minibuf): Use empty_string.
14754 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
14755 Short-circuit the search as soon as it "failed".
14756 (Fall_completions): Allow lambda forms and lists of strings for alist.
14757 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
14758 when require_match is nil.
14759 (Ftest_completion): Rename from `test_completion' and export to elisp.
14760 Call the predicate also when alist is a list.
14761 Obey Vcompletion_regexp_list.
14762 (do_completion, Fminibuffer_complete_and_exit): Use it.
14763 (Fassoc_string): Rename from `assoc_for_completion'.
14764 Allow list of strings as well and export to elisp.
14766 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
14768 * puresize.h (BASE_PURESIZE): Increase to 900KB.
14770 2002-04-08 Juanma Barranquero <lektu@terra.es>
14772 * w32.c (sys_accept): Don't hide variable `s'.
14774 2002-04-05 Gerd Moellmann <gerd@gnu.org>
14776 * callint.c (Fcall_interactively): Use INTEGERP instead of
14777 NUMBERP for checking Vhistory_length.
14779 2002-04-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
14781 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
14782 Doc fix to reflect it.
14784 2002-04-04 Richard M. Stallman <rms@gnu.org>
14786 * xdisp.c (display_mode_element): New arg RISKY.
14787 Disregard text props found or specified within a variable
14788 that isn't marked risky-local-variable.
14789 (Qrisky_local_variable): New variable.
14790 (syms_of_xdisp): Init and staticpro it.
14792 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
14794 * undo.c (record_point): New fun.
14795 (record_delete, record_insert): Use it.
14797 2002-04-03 Juanma Barranquero <lektu@terra.es>
14799 * doc.c (Fdocumentation): Add missing parentheses.
14800 (Fdocumentation_property): Likewise.
14802 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
14804 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
14805 data is 0, just return nil.
14807 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
14809 * msdos.c (syms_of_msdos): Fix last change with
14810 mouse_autoselect_window.
14812 2002-04-03 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
14814 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
14815 mouse_autoselect_window.
14817 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
14819 * keyboard.c (make_lispy_event): Handle unknown keysyms together
14820 with system-specific keysyms. Use it also for unknown function keys.
14822 * doc.c (reread_doc_file): Return whether reload was attempted.
14823 (Fdocumentation, Fdocumentation_property): Don't try to reload
14824 if the doc is 0 and only ask once.
14826 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
14828 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
14830 * keyboard.c (read_char): If the event was Qselect_window,
14831 restore timer_idleness_start_time to its previous value.
14833 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
14835 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
14837 * region-cache.c (new_region_cache): Use BEG.
14839 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
14840 Use BEG and BEG_BYTE.
14842 * doc.c (get_doc_string): Return nil if the location is wrong.
14843 (reread_doc_file): New fun.
14844 (Fdocumentation, Fdocumentation_property):
14845 Call it if get_doc_string fails.
14846 (Fsnarf_documentation): Make it work for a dumped Emacs.
14848 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
14849 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
14851 * charset.c (Fstring): Allow 0 arguments.
14853 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
14855 * process.c (DATAGRAM_CONN_P, list_processes_1)
14856 (Fprocess_datagram_address, Fset_process_datagram_address)
14857 (Fset_network_process_options, server_accept_connection):
14858 Fix some int/Lisp_Object confusions (thank you union types).
14860 2002-04-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
14862 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
14864 * w32term.c: Likewise.
14865 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
14867 * keyboard.c (Qselect_window): New symbol.
14868 (head_table): Use it.
14869 (keys_of_keyboard): Bound select-window event to handle-select-window.
14870 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
14872 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
14873 (last_window): New variable.
14874 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
14875 (note_mouse_movement): Remove reimplemented code in #if 0.
14876 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
14879 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
14881 2002-03-31 Gerd Moellmann <gerd@gnu.org>
14883 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
14886 2002-03-30 Richard M. Stallman <rms@gnu.org>
14888 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
14889 loop whenever it stops making progress.
14891 * widget.c (set_frame_size): Don't call change_frame_size.
14893 2002-03-30 Gerd Moellmann <gerd@gnu.org>
14895 * dispnew.c (direct_output_for_insert):
14896 Call mark_window_display_accurate.
14898 2002-03-29 Jason Rumney <jasonr@gnu.org>
14900 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
14902 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
14904 * Makefile.in (lread.o): Depend on coding.h.
14906 * lread.c (openp, Fload): Encode the file name before passing it
14907 to `stat', `access', and `emacs_open'.
14908 (openp): GCPRO the encoded file name. Don't recompute Lisp
14909 strings unnecessarily.
14911 2002-03-29 Kim F. Storm <storm@cua.dk>
14913 * fns.c (Flax_plist_put): Doc fix.
14915 2002-03-28 Miles Bader <miles@gnu.org>
14917 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
14919 2002-03-27 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
14921 * process.c (set-network-process-options): Add usage.
14922 (make-network-process): Doc fix.
14924 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
14926 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
14928 2002-03-26 Richard M. Stallman <rms@gnu.org>
14930 * fns.c (Fsubstring_no_properties): New function.
14931 (Flax_plist_get, Flax_plist_put): New functions.
14932 (syms_of_fns): defsubr them.
14934 * xdisp.c (update_menu_bar): Test only update_mode_lines;
14935 don't test or alter w->update_mode_line.
14937 * window.c (Fdisplay_buffer): Doc fix.
14939 2002-03-24 Richard M. Stallman <rms@gnu.org>
14941 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
14943 2002-03-24 Gerd Moellmann <gerd@gnu.org>
14945 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
14946 (Fdefmacro): Handle `(declare ...)'.
14947 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
14948 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
14950 2002-03-24 Jason Rumney <jasonr@gnu.org>
14952 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
14953 (xbm_file_p): Add prototypes.
14954 (xbm_format, xbm_image_p): Sync with xfns.c.
14955 (reflect_byte): New function.
14956 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
14957 (xbm_load_image): Create bitmaps with a depth of 1.
14958 (init_xfns): Enable XBM images.
14960 2002-03-23 Jason Rumney <jasonr@gnu.org>
14962 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
14963 correctly. Do not pass up_modifier to keyboard buffer.
14965 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
14967 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
14969 * Makefile.in (bootstrapclean): New target.
14970 (bootstrap-temacs, bootstrap-doc): Remove.
14971 (bootstrap-emacs): Use a bog-standard `temacs'.
14972 Don't bother to build a DOC file.
14974 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
14976 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
14977 in temacs even if !CANNOT_DUMP.
14978 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
14980 * alloc.c (check_pure_size): Only output a warning.
14982 2002-03-22 Jason Rumney <jasonr@gnu.org>
14984 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
14987 * w32term.c (zv_bits): Declare as short, for word alignment.
14988 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
14989 (syms_of_w32term): Define x-use-underline-position-properties.
14991 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
14992 (clear_image_cache): Block input, fix logic, clear matrices in
14993 all frames that share this cache.
14995 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
14997 * emacs.c (main): Update the Copyright year in the blurb printed
14998 by "emacs --version".
15000 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
15002 * xterm.c (XTread_socket): If XK_ISO_Lock and
15003 XK_ISO_Last_Group_Lock are defined, handle keysyms between
15004 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
15006 2002-03-21 Kim F. Storm <storm@cua.dk>
15008 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
15009 menu-bar bindings in keymap and local-map properties _are_ used.
15010 But try keymap property first in accordance with 2002-01-03 patch.
15011 Added comment describing why this is not always reliable.
15012 (tool_bar_items): Ditto for tool-bar.
15014 2002-03-21 Jason Rumney <jasonr@gnu.org>
15016 * w32fns.c (x_clear_image_1): Disable color table code.
15018 2002-03-21 Kim F. Storm <storm@cua.dk>
15020 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
15021 removed the wrong version of the DEFUN macro; fixed it.
15023 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
15024 Fmember rather than Fmemq).
15025 (Fprovide): Check that subfeatures is a list.
15027 * process.c (QCfeature, QCdatagram): Removed variables.
15028 (QCtype, Qdatagram): New variables.
15029 (network_process_featurep): Removed function.
15030 (Fmake_network_process): Removed :feature check.
15031 Use :type 'datagram instead of :datagram t to create a datagram
15032 socket. This allows us to add other connection types (e.g. raw
15033 sockets) later in a consistent manner.
15034 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
15035 supported subfeatures for feature make-network-process.
15036 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
15037 Intern and staticpro QCtype and Qdatagram.
15038 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
15040 * xfns.c: (QCtype): Remove duplicate declaration and
15041 initialization (is now declared in process.c).
15043 * w32fns.c: (QCtype): Remove duplicate declaration and
15044 initialization (is now declared in process.c).
15046 2002-03-21 Richard M. Stallman <rms@gnu.org>
15048 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
15049 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
15050 when jumping to `fail' to avoid undoing reg changes in the
15051 last iteration of the loop.
15052 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
15054 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
15055 Depend on process.h.
15057 2002-03-20 Jason Rumney <jasonr@gnu.org>
15059 Most of the following changes are still conditional on HAVE_IMAGES
15060 which is not set by default on Windows.
15062 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
15064 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
15065 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
15066 (four_corners_best, x_clear_image_1, x_clear_image)
15067 (x_alloc_image_color, postprocess_image)
15068 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
15069 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
15070 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
15072 * w32gui.h (struct XImage): Define.
15074 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
15075 extract mouse co-ordinates.
15077 2002-03-20 Jason Rumney <jasonr@gnu.org>
15079 * w32.c (init_winsock): Dynamically load new server and UDP
15081 (socket_to_fd): New function.
15082 (sys_socket): Use it.
15083 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
15084 (sys_recvfrom, sys_sendto): New wrapper functions.
15086 * process.c (QCfamily, QCfilter): Remove duplicate declaration
15087 and initialization.
15089 * makefile.w32-in (LIBS): Remove $(WSOCK32).
15091 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
15093 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
15094 Don't use "sun" as a variable, it's a predefined constant on Sun
15097 2002-03-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
15099 * bytecode.c (Fbyte_code): Revert last change.
15101 2002-03-19 Kim F. Storm <storm@cua.dk>
15103 * makefile.w32-in (LIBS): Add $(WSOCK32).
15104 From David Ponce <dponce@voila.fr>.
15106 2002-03-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
15108 * process.c (wait_reading_process_input): Move variables `pname'
15109 and `pnamelen' down where they are used.
15111 * bytecode.c (Fbyte_code): Discard unused computed value to
15112 prevent gcc warning.
15114 * lisp.h (Fplist_member): Add prototype.
15116 2002-03-18 Kim F. Storm <storm@cua.dk>
15118 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
15119 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
15121 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
15122 Remove explicit GNU_LINUX settings for datagram support.
15124 2002-03-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
15126 * process.c (Fmake_network_process): Remove unused variable `sa'.
15127 Doc fix. Add usage:.
15128 (set_socket_options): Remove unused variables `optnum' and `opttype'.
15130 2002-03-17 Richard M. Stallman <rms@gnu.org>
15132 * xdisp.c (cursor_type_changed): New variable.
15133 (redisplay_internal): Redisplay all windows if cursor_type_changed.
15134 Clear it when clearing windows_or_buffers_changed.
15135 (try_cursor_movement, redisplay_window, try_window_id)
15136 (try_window_reusing_current_matrix): Test cursor_type_changed
15137 along with windows_or_buffers_changed.
15139 * window.h (cursor_type_changed): New variable.
15141 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
15142 not update_mode_lines, and always set it to 1.
15144 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
15145 if no frames needed redrawing.
15147 2002-03-17 Kim F. Storm <storm@cua.dk>
15149 The following changes add support for network server processes,
15150 datagram connections, and local (unix) sockets.
15152 * process.h (struct Lisp_Process): New member log.
15153 Doc fix: Member command used to indicate stopped network process.
15154 Doc fix: Member childp contains plist for network process.
15155 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
15157 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
15158 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
15159 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
15161 (NETCONN1_P): New macro.
15162 (DATAGRAM_SOCKETS): New conditional symbol.
15163 (datagram_address): New array.
15164 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
15165 (status_message): Use concat3.
15166 (Fprocess_status): Add `listen' status to doc string. Return `stop'
15167 for a stopped network process.
15168 (Fset_process_buffer): Update contact plist for network process.
15169 (Fset_process_filter): Ditto. Don't enable input for stopped
15170 network processes. Server must listen, even if filter is t.
15171 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
15173 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
15174 (Fprocess_contact): Added KEY argument. Handle datagrams.
15175 (list_processes_1): Optionally show only processes with the query
15176 on exit flag set. Dynamically adjust column widths. Omit tty
15177 column if not needed. Report stopped network processes.
15178 Identify server and datagram network processes.
15179 (Flist_processes): New optional arg `query-only'.
15180 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
15181 (conv_lisp_to_sockaddr, set_socket_options)
15182 (network_process_featurep, unwind_request_sigio): New helper functions.
15183 (Fprocess_datagram_address, Fset_process_datagram_address):
15184 (Fset_network_process_options): New lisp functions.
15185 (Fopen_network_stream): Removed. Now defined in simple.el.
15186 (Fmake_network_process): New lisp function. Code is based on previous
15187 Fopen_network_stream, but heavily reworked with new property list based
15188 argument list, support for datagrams, server processes, and local
15189 sockets in addition to old client-only functionality.
15190 (server_accept_connection): New function.
15191 (wait_reading_process_input): Use it to handle incoming connects.
15192 Do not enable input on a new connection if process is stopped.
15193 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
15194 (send_process): Handle datagram sockets.
15195 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
15196 network process is indicated by setting command field to t .
15197 (Fprocess_send_eof): No-op if datagram connection.
15198 (Fstatus_notify): Don't read input for a stream server socket or a
15199 stopped network process.
15200 (init_process): Initialize datagram_address array.
15201 (syms_of_process): Intern and staticpro new variables, defsubr new
15204 2002-03-16 Jason Rumney <jasonr@gnu.org>
15206 * w32fns.c (w32_to_all_x_charsets): Return correct type in
15209 2002-03-16 Richard M. Stallman <rms@gnu.org>
15211 * xdisp.c (redisplay_internal, redisplay_windows):
15212 Use list_of_error to call internal_condition_case_1.
15213 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
15214 so as to catch all errors with no possibility of debugger redisplay.
15215 (list_of_error): New variable.
15216 (syms_of_xdisp): Init and staticpro it.
15218 * print.c (print_object): Delete `\ ' from printed rep of frame.
15220 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
15222 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
15223 until its implementation is fixed.
15225 2002-03-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
15227 * xfns.c (png_load): Remove unused variable `gamma_str'.
15229 2002-03-14 Richard M. Stallman <rms@gnu.org>
15231 * xfns.c (x_real_positions): Handle failure in XQueryTree.
15233 2002-03-14 Miles Bader <miles@gnu.org>
15235 * intervals.c (adjust_for_invis_intang): New function.
15236 (set_point_both): Use `adjust_for_invis_intang' to do most of the
15237 work for dealing with invisible+intangible regions. Do so before
15238 and after both forward and backward movements, to handle both
15239 front-sticky and rear-sticky cases.
15240 * textprop.c (text_property_stickiness): Function moved here from
15242 * intervals.h (text_property_stickiness): New declaration.
15243 * editfns.c (char_property_eq): Function removed.
15244 (text_property_stickiness): Function moved to `textprop.c'.
15246 2002-03-13 Jason Rumney <jasonr@gnu.org>
15248 * config.in: Add STRFTIME_NO_POSIX2.
15250 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
15251 and %OX when underlying strftime does not.
15253 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
15255 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
15256 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
15257 line) to avoid annoying flicker.
15258 (xm_scroll_callback): Get rid of the now unnecessary kludge.
15259 (XTread_socket): Mark it static.
15261 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
15263 2002-03-13 Kim F. Storm <storm@cua.dk>
15265 * puresize.h (BASE_PURESIZE): Increase to 775000.
15267 2002-03-12 Juanma Barranquero <lektu@terra.es>
15269 * editfns.c (syms_of_editfns): Fix typo.
15271 2002-03-12 Gerd Moellmann <gerd@gnu.org>
15273 * xsmfns.c: Include stdio.h because termhooks.h needs it.
15274 Include termopt.h for interrupt_input.
15276 2002-03-11 Andreas Schwab <schwab@suse.de>
15278 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
15280 2002-03-11 Gerd Moellmann <gerd@gnu.org>
15282 * xterm.c (note_mouse_movement): Put code for
15283 x_autoselect_window_p in #if 0.
15285 * lread.c (Fload): Don't assume that message_with_string uses the
15286 string it is given like a C string.
15288 2002-03-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15290 * xterm.h (x_session_check_input, x_session_initialize): Declare.
15292 * xterm.c: (XTread_socket): Add call to x_session_check_input and
15293 x_session_have_connection.
15294 (x_initialize): Add call to x_session_initialize.
15296 * termhooks.h (enum event_kind): Add save_session_event.
15298 * keyboard.c: Add Emacs event save_session_event.
15300 * emacs.c (main): Add call to syms_of_xsmfns.
15302 * lisp.h (syms_of_xsmfns): Declare extern.
15304 * config.in: Add HAVE_X_SM.
15306 * Makefile.in (LIBXT): Add -lSM -lICE
15307 if HAVE_X_SM and not USE_X_TOOLKIT.
15308 (XOBJ): New file xsmfns.c added.
15310 * xsmfns.c: New file for X session management.
15312 2002-03-09 Jason Rumney <jasonr@gnu.org>
15314 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
15315 read-only when setting modified time.
15317 2002-03-08 Gerd Moellmann <gerd@gnu.org>
15319 * xdisp.c (move_it_vertically_backward): At the end of the function,
15320 when moving forward by lines, treat terminal frames specially.
15322 * keyboard.c (echo_char): Make sure to add a separator between
15323 keys even if echo_dash hasn't been called.
15325 * xdisp.c: Use new string macros.
15326 (update_echo_area): Pass number of bytes to message3 instead of
15328 (set_message_1): Don't access a string's size_byte directly.
15329 (decode_mode_spec_coding): Use number of bytes of eoltype string
15330 instead number of chars.
15332 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
15334 2002-03-08 Juanma Barranquero <lektu@terra.es>
15336 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
15339 2002-03-06 Jason Rumney <jasonr@gnu.org>
15341 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
15343 2002-03-06 Gerd Moellmann <gerd@gnu.org>
15345 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
15346 (cancel_echoing, echo_length, echo_truncate): Changed to
15347 work with new kboard definition.
15348 (echo_now): Use message3_nolog instead of message2_nolog.
15350 * alloc.c (mark_kboards): Mark echo_string.
15352 * keyboard.h (ECHOBUFSIZE): Removed.
15353 (struct kboard): Member echoptr removed, member echobuf renamed
15356 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
15357 message3 instead of message2 to display the message using STRING's
15360 2002-03-05 Andreas Schwab <schwab@suse.de>
15362 * xdisp.c (hscroll_margin): Change to EMACS_INT.
15364 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
15366 * frame.c (default-frame-alist): Explain that setting it doesn't
15367 affect existing frames.
15369 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
15371 * indent.c (skip_invisible): Fix my brain fart.
15373 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
15375 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
15377 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
15378 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
15379 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
15380 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
15381 and variables to use EMACS_INT instead of just int.
15383 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
15385 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
15387 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
15388 environment, pass it down with corrected value.
15390 2002-03-04 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
15392 * lread.c (read_filtered_event): Do not call start_hourglass
15395 2002-03-04 Juanma Barranquero <lektu@terra.es>
15397 * w32term.c (x_display_and_set_cursor): Fix typo.
15399 2002-03-03 Richard M. Stallman <rms@gnu.org>
15401 * fileio.c (Fmake_temp_name): Doc fix.
15403 2002-03-03 Gary Wong <gtw@gnu.org>
15405 * termcap.c [!emacs]: Replace ospeed for building standalone
15406 libtermcap, for binary compatibility.
15408 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
15410 2002-03-03 Richard M. Stallman <rms@gnu.org>
15412 * xrdb.c (file_p): Rename arg `path' to `filename'.
15414 * abbrev.c (Fexpand_abbrev): Increment plist as use count
15415 only if it is an integer.
15417 * xfns.c (png_load): Set screen_gamma based on f->gamma.
15418 If png_get_sRGB gives an answer, call png_set_gamma
15419 using the default image gamma value.
15421 * lread.c (read1): When reading from a file, default string to
15422 multibyte only if it has some multibyte characters.
15424 * print.c (print_object): Output multibyte chars 128...255
15425 using \x even if ! print_escape_multibyte.
15427 * xdisp.c (display_mode_element): Move the places where
15428 bytepos, charpos, this, and lisp_string are set.
15429 Use lisp_string to set bytepos.
15431 * xdisp.c (redisplay_internal):
15432 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
15434 * xdisp.c (display_mode_element): Merge properties specified with
15435 :propertize onto those that come with the string.
15437 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
15439 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
15440 automatic-hscrolling. Users changed.
15441 <hscroll-margin>: Renamed from automatic-hscroll-margin.
15443 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
15445 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
15447 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
15449 2002-03-02 Kim F. Storm <storm@cua.dk>
15451 * window.c (Fminibuffer_selected_window): New function.
15452 (syms_of_window): Defsubr it.
15454 2002-03-01 Kim F. Storm <storm@cua.dk>
15456 * window.h (struct window): New member phys_cursor_width.
15458 * window.c (make_window, replace_window): Init phys_cursor_width.
15460 * xterm.c (x_display_and_set_cursor): Blink box cursor using
15461 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
15463 * w32term.c (x_display_and_set_cursor): Blink box cursor using
15464 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
15466 * lisp.h (GCPRO6): New macro.
15468 * process.c (Fopen_network_stream): Use GCPRO6.
15470 2002-03-01 Kim F. Storm <storm@cua.dk>
15472 * process.c (Qconnect, Qfailed): New variables.
15473 (syms_of_process): Intern and staticpro them.
15474 (Fprocess_status): Document connect and failed return values.
15475 [NON_BLOCKING_CONNECT]: New conditional.
15476 (connect_wait_mask, num_pending_connects): New variables.
15477 (status_message): Convert Qfailed status.
15478 (Fopen_network_stream): Added support for non-blocking connect.
15479 New optional args: filter, sentinel, non_blocking. Doc updated.
15480 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
15481 (deactivate_process): Handle pending non-blocking connect.
15482 (wait_reading_process_input): Poll for status of non-blocking
15483 connects. Exec sentinel directly when connect succeeds.
15484 (status_notify): Don't read process output if not yet connected.
15486 2002-02-28 Kim F. Storm <storm@cua.dk>
15488 * window.c: (minibuf_selected_window): Renamed from
15489 Vminibuf_selected_window. Users changed.
15490 (syms_of_window): Staticpro it.
15492 2002-02-26 Kim F. Storm <storm@cua.dk>
15494 The following changes add a new Vminibuf_selected_window variable
15495 which is similar to Vminibuf_scroll_window, but which is only set
15496 on entry to the minibuffer (from a non-minibuffer window):
15498 * window.c: (Vminibuf_selected_window): New variable.
15499 (struct save_window_data): New member minibuf_selected_window.
15500 (Fset_window_configuration): Restore Vminibuf_selected_window.
15501 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
15502 Set minibuf_scroll_window member to nil if minibuf_level is 0.
15503 (compare_window_configurations): Compare minibuf_selected_window.
15505 * window.h: (Vminibuf_selected_window): Declare extern.
15507 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
15508 entry to minibuffer or on entry from a non-minibuffer window.
15510 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
15511 Vminibuf_selected_window instead of Vminibuf_scroll_window.
15513 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
15514 instead of Vminibuf_scroll_window when deciding in which window
15515 the region should be highlighted. Consequently, the region remains
15516 highlighteded even when a completion buffer is also displayed.
15518 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
15520 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
15522 * xselect.c (Qcompound_text_with_extensions): Renamed from
15523 Qcompound_text_no_extensions.
15524 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
15526 2002-02-26 Juanma Barranquero <lektu@terra.es>
15528 * w32proc.c (syms_of_ntproc): Doc fix.
15530 2002-02-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
15532 * intervals.h: Include "dispextern.h" unconditionally.
15534 2002-02-24 Jason Rumney <jasonr@gnu.org>
15536 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
15537 and disp-table.elc.
15538 (lisp): Add emacs-lisp/backquote.elc.
15540 2002-02-24 Kim F. Storm <storm@cua.dk>
15542 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
15543 The validation of the event type was too strict as it didn't
15544 allow string events; buffer names are used in bindings for
15545 menu-bar-select-buffer (see `menu-bar-update-buffers').
15547 2002-02-23 Kim F. Storm <storm@cua.dk>
15549 The following changes rework my patch of 2002-02-06 which
15550 added command remapping by entering the commands directly into
15551 the keymaps. Now, command remapping uses an explicit `remap'
15552 prefix in the keymaps, i.e. [remap COMMAND].
15554 * keymap.c (Qremap, remap_command_vector): New variables.
15555 (is_command_symbol): Remove function.
15556 (Fdefine_key): No longer accept a symbol for KEY.
15557 Added validation of [remap COMMAND] argument for KEY.
15558 The DEF is no longer required to be a symbol when remapping a command.
15559 (Fremap_command): New function to remap command through keymaps.
15560 (Flookup_key): Perform command remapping initiated by
15561 Fremap_command directly for speed.
15562 (Fkey_binding): Use Fremap_command for command remapping.
15563 (where_is_internal): Handle new command remapping representation.
15564 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
15565 staticpro them. Defsubr Fremap_command.
15567 * keymap.h (Fremap_command): Declare extern.
15568 (is_command_symbol): Remove extern.
15570 * keyboard.c (command_loop_1): Use Fremap_command for command
15571 remapping; now try command remapping for all symbols.
15573 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
15575 * coding.h (run_pre_post_conversion_on_str): Add prototype.
15577 2002-02-23 Jason Rumney <jasonr@gnu.org>
15579 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
15580 on the string before encoding it.
15581 (Fw32_get_clipboard_data): Run post-read-conversion on the string
15584 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
15586 2002-02-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
15588 * w32term.c (enter_timestamp): Remove unused static variable to
15591 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
15593 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
15595 * w16select.c (Fw16_get_clipboard_data): Fix last change.
15597 * xselect.c (selection_data_to_lisp_data): Fix last change.
15599 2002-02-22 Jason Rumney <jasonr@gnu.org>
15601 * w32term.h (struct w32_output): New member menu_command_in_progress.
15603 * w32menu.c (menubar_selection_callback): Free the menu and
15604 clear the menu_command_in_progress flag.
15606 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
15607 (menu_free_timer): New variable.
15608 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
15609 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
15610 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
15611 menu command is in progress.
15612 <WM_COMMAND>: Set the menu_command_in_progress flag.
15613 Kill any menu_free_timer that is running.
15615 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
15616 Call ExtTextOutA rather than ExtTextOut.
15618 2002-02-22 Eli Zaretskii <eliz@gnu.org>
15620 * puresize.h (BASE_PURESIZE): Increase to 755000.
15622 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
15624 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
15625 on the string before encoding it.
15626 (Fw16_get_clipboard_data): Run post-read-conversion on the string
15629 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
15631 Support for ICCCM Extended Segments in X selections:
15633 * xselect.c <Qcompound_text_no_extensions>: New variable.
15634 (syms_of_xselect): Intern and staticpro it.
15635 (selection_data_to_lisp_data): Run post-read-conversion on decoded
15637 (lisp_data_to_selection_data): If next-selection-coding-system is
15638 compound-text-no-extensions, set the type of selection to be
15641 * xterm.h (x_encode_text): Update prototype.
15643 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
15644 callers changed. If SELECTIONP is non-zero, run the
15645 pre-write-conversion function before encoding the selection text.
15647 2002-02-21 Kim F. Storm <storm@cua.dk>
15649 * frame.c (syms_of_frame): Change mouse-highlight default to t.
15651 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
15652 Correct composing of language-change event.
15654 2002-02-20 Kim F. Storm <storm@cua.dk>
15656 * keyboard.c (menu_bar_items): Don't include keymap or local-map
15657 bindings at PT when building menu (the menu is not updated often
15658 enough for this to work reliable).
15659 (tool_bar_items): Likewise.
15660 (current_active_maps): Removed unused (and buggy) function.
15662 2002-02-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
15664 * xfns.c (gif_load): Use correct width and height for GIF images.
15666 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
15668 * floatfns.c (Fatan): Accept an optional second arg and call
15669 atan2 if passed 2 args.
15671 2002-02-18 Jason Rumney <jasonr@gnu.org>
15673 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
15675 2002-02-17 Jason Rumney <jasonr@gnu.org>
15677 * w32term.c (x_autoselect_window_p): New variable.
15678 (syms_of_w32term): DEFVAR_BOOL and initialize it.
15679 (note_mouse_movement): Use it.
15681 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
15683 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
15685 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
15687 (syms_of_w32fns): Intern and staticpro them.
15688 (x_frame_parms) <"fullscreen">: New parameter.
15689 (x_fullscreen_move, x_set_fullscreen): New functions.
15690 (x_set_frame_parameters): Support Qfullscreen.
15691 (x_real_positions): Save x/y_pixels_diff frame params.
15692 (x_figure_window_size): Support full-screen frames.
15693 (Fx_create_frame): Default the fullscreen parameter.
15695 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
15696 (x_fullscreen_adjust): New functions.
15697 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
15698 fullscreen. Call x_check_fullscreen_move, and set the
15699 want_fullscreen member of output_data.w32
15700 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
15702 * w32term.h: New enum for FULLSCREEN_* constants.
15703 (struct w32_output): New members want_fullscreen, x_pixels_diff,
15704 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
15705 (x-fullscreen-adjust): New prototype.
15707 2002-02-17 Kim F. Storm <storm@cua.dk>
15709 * frame.c: (Vmouse_highlight): New variable.
15710 (syms_of_frame): DEFVAR_LISP it.
15712 * frame.h: (Vmouse_highlight): Declare extern.
15714 * xterm.h (struct x_display_info): Add mouse_face_hidden.
15716 * xterm.c (disable_mouse_highlight): Removed variable.
15717 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
15718 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
15719 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
15720 and on after keyboard input.
15721 (x_term_init): Initialize mouse_face_hidden.
15723 * msdos.h (struct display_info): Add mouse_face_hidden.
15725 * msdos.c (disable_mouse_highlight): Removed variable.
15726 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
15727 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
15728 (internal_terminal_init): Initialize mouse_face_hidden.
15729 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
15730 and on after keyboard input.
15732 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
15734 * w32term.c (disable_mouse_highlight): Removed variable.
15735 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
15736 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
15737 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
15738 and on after keyboard input.
15739 (w32_initialize_display_info): Initialize mouse_face_hidden.
15741 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
15743 * msdos.c (last_mouse_window): New variable.
15744 (dos_rawgetc): Fix last change--if the mouse is in the same window
15745 as recorded in last_mouse_window, don't select this window.
15747 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
15749 * msdos.c (x_autoselect_window_p): New variable.
15750 (syms_of_msdos): Defvar it.
15751 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
15752 which the last mouse movement occured, unless it is already selected.
15754 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
15756 (syms_of_xdisp): DEVFAR them.
15757 (hscroll_window_tree): Use automatic_hscroll_margin and
15758 Vautomatic_hscroll_step to compute the amount of window scrolling.
15760 2002-02-16 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
15762 * xterm.c (x-autoselect-window): New variable.
15763 (note_mouse_movement): Use it.
15765 * keyboard.c: Do not include "systime.h" twice.
15767 2002-02-15 Andreas Schwab <schwab@suse.de>
15769 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
15771 * alloc.c (NSTATICS): Increase to 1280.
15773 2002-02-15 Kai Gro
\e,A_
\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
15775 * alloc.c (NSTATICS): Bump to 1026.
15777 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
15778 (Vx_super_keysym): New variables.
15779 (syms_of_xterm): DEFVAR_LISP them.
15780 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
15781 variables to determine which keys to use for the various modifiers.
15783 2002-02-13 Kim F. Storm <storm@cua.dk>
15785 * window.c: (Vmode_line_in_non_selected_windows): Removed.
15786 (mode_line_in_non_selected_windows): New variable.
15787 (syms_of_window): DEFVAR_BOOL it.
15789 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
15790 Use mode_line_in_non_selected_windows.
15791 (mode_line_in_non_selected_windows): Declare extern.
15792 (Vmode_line_in_non_selected_windows): Removed extern.
15794 2002-02-13 Richard M. Stallman <rms@gnu.org>
15796 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
15797 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
15798 (Fclear_this_command_keys): Doc fixes.
15800 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
15801 (update_face_from_frame_parameter): Increment face_change_count
15802 and windows_or_buffers_changed to force redisplay using changed faces.
15804 * xdisp.c (QCpropertize): New variable.
15805 (mode_line_proptrans_alist): New variable.
15806 (display_mode_element): New arg PROPS; all calls changed.
15807 Implement this, for strings.
15808 Handle literal output of strings by sharing the
15809 main-line code for strings, using local var `literal'.
15810 Handle :propertize feature.
15811 (syms_of_xdisp): Initialze and staticpro QCpropertize and
15812 mode_line_proptrans_alist.
15814 2002-02-11 Kim F. Storm <storm@cua.dk>
15816 * window.c: (Vmode_line_in_non_selected_windows): New variable.
15817 (syms_of_window): DEFVAR_LISP it.
15819 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
15820 (CURRENT_MODE_LINE_FACE_ID): Use it.
15821 (Vmode_line_in_non_selected_windows): Declare extern.
15823 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
15824 to get mode line face.
15826 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
15828 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
15829 variables; cus-start.el doesn't need them anymore.
15831 2002-02-09 Kim F. Storm <storm@cua.dk>
15833 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
15834 reduction. This fixes a display problem where stray newlines were
15835 inserted in the window (corrected by C-l). Clarified code (IMHO).
15837 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
15839 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
15841 * xdisp.c (display_mode_lines): Fix last change.
15843 2002-02-09 Jason Rumney <jasonr@gnu.org>
15845 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
15847 (w32_load_system_font): Prevent Cleartype fonts from loading.
15848 (Fx_show_tip): Ensure tip frames are above other topmost windows.
15850 2002-02-09 Kim F. Storm <storm@cua.dk>
15852 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
15853 (CURRENT_MODE_LINE_HEIGHT): Use it.
15854 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
15856 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
15857 (pos_visible_p, handle_face_prop): Likewise.
15858 (display_mode_lines): Likewise, but for the real selected window.
15859 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
15861 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
15862 in non-selected windows.
15863 (realize_basic_faces): Realize it.
15864 (syms_of_term): Intern and staticpro it.
15866 2002-02-08 Kim F. Storm <storm@cua.dk>
15868 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
15869 Changed mail addresses to emacs-devel@gnu.org.
15871 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
15873 * fileio.c (Fsubstitute_in_file_name): If the file name includes
15874 ~user, and there's no such user, don't discard everything before ~user.
15876 * floatfns.c (Fround): Doc fix.
15878 2002-02-08 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
15880 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
15882 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
15884 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
15886 2002-02-07 Kim F. Storm <storm@cua.dk>
15888 * keymap.c (where_is_internal): Only check whether definition is
15889 remapped if it fulfills is_command_symbol.
15891 2002-02-07 Andreas Schwab <schwab@suse.de>
15893 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
15895 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
15897 2002-02-06 Kim F. Storm <storm@cua.dk>
15899 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
15900 defining command remapping. Doc updated.
15901 (Flookup_key): Remap command through keymap if KEY is a symbol.
15902 (is_command_symbol): New function.
15903 (Fkey_binding): Use it. New optional argument NO-REMAP.
15904 Doc updated. Callers changed. Perform command remapping via
15905 recursive call unless that arg is non-nil.
15906 (where_is_internal): New argument no_remap. Callers changed.
15907 Call recursively to find original key bindings for a remapped
15908 comand unless that arg is non-nil.
15909 (Fwhere_is_internal): New optional argument NO-REMAP.
15910 Doc updated. Callers changed. Pass arg to where_is_internal.
15912 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
15913 (is_command_symbol): Add prototype.
15915 * keyboard.c (Vthis_original_command): New variable.
15916 (syms_of_keyboard): DEFVAR_LISP it.
15917 (command_loop_1): Set it, and perform command remapping.
15919 2002-02-06 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
15921 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
15923 2002-02-06 Jason Rumney <jasonr@gnu.org>
15925 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
15927 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
15929 * charset.c (get_charset_id): Use if-else instead of ?:.
15931 2002-02-06 Richard M. Stallman <rms@gnu.org>
15933 * filelock.c (S_ISLNK): Define if not defined.
15935 2002-02-03 Richard M. Stallman <rms@gnu.org>
15937 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
15939 * lread.c (read1): Redesign strategy for force_multibyte and
15940 force_singlebyte. Now is_multibyte records whether read_buffer
15941 is multibyte. Encountering any multibyte character makes it so.
15943 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
15945 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
15946 with the same sequence, map that sequence to f10 rather than f0.
15948 2002-02-03 Andreas Schwab <schwab@suse.de>
15950 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
15951 latter never being defined on GNU/Linux.
15953 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
15955 * xfaces.c (realize_default_face): Don't set the weight and slant of
15956 the default face to Qnormal, unless these attributes are unspecified.
15958 2002-02-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
15960 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
15961 Call cancel_hourglass unconditionally.
15963 * eval.c (Fsignal): Remove duplicated declaration of
15964 the variable `display_hourglass_p'.
15966 2002-01-31 Richard M. Stallman <rms@gnu.org>
15968 * editfns.c (region_limit): Nicer error message.
15970 * coding.c (decode_composition_emacs_mule):
15971 Give up if NCOMPONENT gets too large to index `component'.
15973 * callint.c (check_mark): New arg to specify clearer error message.
15976 2002-01-27 Richard M. Stallman <rms@gnu.org>
15978 * minibuf.c (Fcompleting_read): Doc fix.
15980 2002-01-27 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
15982 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
15983 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
15986 2002-01-26 Richard M. Stallman <rms@gnu.org>
15988 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
15990 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
15991 and scroll_up_aggressively.
15993 2002-01-26 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
15995 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
15997 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
15999 * textprop.c (Fnext_property_change, Fnext_single_property_change)
16000 (Fprevious_property_change, Fprevious_single_property_change):
16001 Stay within the narrowed-buffer boundaries.
16003 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
16005 * term.c (Ftty_display_color_cells): New function.
16006 (syms_of_term): Defsubr it.
16007 (Ftty_display_color_cells, Ftty_display_color_p): Change the
16008 argument name to DISPLAY. Doc fix.
16010 * dispextern.h: Add prototype for set_tty_color_mode and
16013 2002-01-24 Jason Rumney <jasonr@gnu.org>
16015 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
16016 If region left to draw is not what was expected, mark the frame as
16019 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
16020 Combine the regions returned by BeginPaint and GetUpdateRect.
16022 2002-01-23 Jason Rumney <jasonr@gnu.org>
16024 * w32term.c (x_update_window_begin): Only hide caret if
16025 w32_use_visible_system_caret is set.
16026 (x_update_window_end): Only show caret if
16027 w32_use_visible_system_caret is set.
16028 (syms_of_w32term): Handle SystemParametersInfo call failing.
16030 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
16032 2002-01-22 Richard M. Stallman <rms@gnu.org>
16034 * unexelf.c (unexec): Define n so as to cause compilation error
16035 for the code where people have often written n instead of nn.
16037 * .gdbinit (hookpost-run): Defined.
16039 2002-01-22 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16041 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
16043 2002-01-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16045 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
16046 if fullscreen is being set.
16048 2002-01-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16050 * minibuf.c (Fminibuffer_contents)
16051 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
16052 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
16054 2002-01-21 Richard M. Stallman <rms@gnu.org>
16056 * window.c (check_frame_size): Fix minimum height calculation.
16058 2002-01-20 Ken Raeburn <raeburn@gnu.org>
16060 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
16061 height before comparison.
16062 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
16064 2002-01-20 Jason Rumney <jasonr@gnu.org>
16066 * w32term.c (w32_system_caret_width): Remove.
16067 (w32_use_visible_system_caret): New user flag.
16068 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
16069 Windows reports a screen reader running.
16070 (x_update_window_begin): Hide the system caret.
16071 (x_update_window_end): Show the system caret.
16072 (x_display_and_set_cursor): Don't draw a cursor when
16073 w32_use_visible_system_caret is set. Do not adjust width.
16075 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
16076 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
16077 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
16078 the user requests it. Use system default width when creating.
16079 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
16081 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
16082 New window messages.
16084 2002-01-20 Richard M. Stallman <rms@gnu.org>
16086 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
16088 2002-01-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16090 * doprnt.c (doprnt1): Fix typos in error call.
16092 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
16094 * unexelf.c (unexec) [__sgi]: Support the .got sections.
16096 2002-01-20 Jason Rumney <jasonr@gnu.org>
16098 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
16099 that Windows returns. If a double check fails, try to guess how
16100 ExtTextOut is going to act.
16102 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
16103 in place of stricmp.
16104 (w32_list_synthesized_fonts): Removed.
16105 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
16106 (struct enumfont_t): New element; list.
16107 (enum_font_cb2): List all style and charset variations of a font.
16108 (Fw32_select_font): New optional argument; include_proportional.
16109 Exclude vertical fonts. Exclude proportional fonts unless
16110 include_proportional is non-nil.
16111 (w32_enable_synthesized_fonts): Change to a boolean.
16112 (Fw32_send_sys_command): Doc fix.
16114 2002-01-19 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16116 * dispnew.c (update_frame): Move the variable `tem' to the block
16119 2002-01-19 Jason Rumney <jasonr@gnu.org>
16121 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
16122 call to face-set-after-frame-default.
16124 2002-01-18 Richard M. Stallman <rms@gnu.org>
16126 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
16127 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
16129 2002-01-17 Richard M. Stallman <rms@gnu.org>
16131 * window.c (enlarge_window): When exceeding size of parent,
16132 directly delete all the siblings instead of trying to resize it.
16134 2002-01-17 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16136 * term.c (set_tty_color_mode): Remove unused variable `tem'.
16138 2002-01-16 Henrik Enberg <henrik@enberg.org>
16140 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
16142 2002-01-16 Kim F. Storm <storm@cua.dk>
16144 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
16145 is invisible. This can happen if cursor is on top line of a
16146 window, and we switch to a buffer with a header line.
16148 * w32term.c (x_erase_phys_cursor): Ditto.
16150 2002-01-16 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16152 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
16153 `dont_resize' only when used.
16155 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
16157 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
16159 * xdisp.c (display_mode_element): When computing charpos, depend
16160 on multibyteness of elt, not the text in field.
16162 2002-01-15 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16164 * buffer.c (Fkill_all_local_variables):
16165 Increment `update_mode_lines' only once.
16167 2002-01-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16169 * lisp.h (adjust_after_replace_noundo)
16170 (Fupdate_coding_systems_internal): Add prototypes.
16172 * sound.c (Fplay_sound): Initialize header_size also for :data case.
16174 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
16176 Support for the --color command-line argument and tty-color-mode
16179 * term.c (tty_default_color_capabilities, tty_setup_colors)
16180 (set_tty_color_mode): New functions.
16181 (term_init): Call tty_default_color_capabilities.
16182 (Qtty_color_mode_alist): New variable.
16183 (syms_of_term): Intern and staticpro it.
16185 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
16187 (do_switch_frame): For termcap frames, switch the tty
16188 color mode as specified by the frame's parameters.
16189 (Qtty_color_mode): New variable.
16190 (syms_of_frame): Intern and staticpro it.
16192 * emacs.c (USAGE2): Add the --color option.
16193 (standard_args): Ditto.
16195 2002-01-13 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16197 * xterm.h (struct x_output): New members want_fullscreen,
16198 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
16199 y_pixels_outer_diff.
16200 New enum for FULLSCREEN_* constants.
16201 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
16203 (x_fullscreen_adjust): Add prototype.
16205 * emacs.c (USAGE2): Add the new full-screen arguments.
16206 (standard_args): Ditto.
16208 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
16210 (syms_of_xfns): Intern and staticpro them.
16211 (x_frame_parms) <"fullscreen">: New parameter.
16212 (x_fullscreen_move, x_set_fullscreen): New functions.
16213 (x_set_frame_parameters): Support for Qfullscreen.
16214 (x_real_positions): More accurate computation of the frame position.
16215 (x_figure_window_size): Support full-screen frames.
16216 (Fx_create_frame): Default the fullscreen parameter.
16218 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
16219 (XTread_socket) <Expose>: Call x_check_fullscreen.
16220 <ConfigureNotify>: Don't resize to fullscreen.
16221 Call x_check_fullscreen_move, and set the want_fullscreen member of
16224 2002-01-13 Jason Rumney <jasonr@gnu.org>
16226 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
16227 for mice with more than 3 buttons.
16229 * w32term.c (parse_button): New parameter xbutton. Callers changed.
16230 (w32_read_socket): Handle new "XBUTTON" messages.
16232 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
16233 (syms_of_w32fns): DEFVAR_BOOL it.
16234 (w32_wnd_proc): Handle new "XBUTTON" messages.
16236 2002-01-13 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16238 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
16240 2002-01-13 Andreas Schwab <schwab@suse.de>
16242 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
16244 2002-01-12 Andreas Schwab <schwab@suse.de>
16246 * .gdbinit (xbuffer): Remove address operator since data is now a
16249 2002-01-11 Richard M. Stallman <rms@gnu.org>
16251 * insdel.c (adjust_after_replace_noundo): New function.
16253 * coding.c (code_convert_region): Don't copy old text if undo disabled.
16255 2002-01-09 Jason Rumney <jasonr@gnu.org>
16257 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
16258 when checking for multiple frames.
16260 2002-01-08 Richard M. Stallman <rms@gnu.org>
16262 * window.c (delete_window): Rewrite the code for changing the
16263 selected window to handle the case where WINDOW is not a leaf.
16265 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
16267 * process.c (send_process): Set src_multibyte to 1 after the call
16268 top setup_coding_system, not before the call.
16270 2002-01-07 Jason Rumney <jasonr@gnu.org>
16272 * xmenu.c (set_frame_menubar, xmenu_show):
16273 (xdialog_show): Initialize wv->help to Qnil.
16275 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
16276 (w32_dialog_show): Initialize wv->help to Qnil.
16278 2002-01-06 Jason Rumney <jasonr@gnu.org>
16280 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
16282 * w32menu.c (w32_menu_display_help): Revert last change.
16284 * xmenu.c (menu_highlight_callback): Revert last change.
16286 2002-01-06 Andreas Schwab <schwab@suse.de>
16288 * insdel.c (make_gap_larger): Make sure buffer size does not
16289 overflow range of int.
16291 2002-01-05 Jason Rumney <jasonr@gnu.org>
16293 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
16296 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
16298 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
16299 to the left or to the right of the pointer, put it against
16300 the left screen edge.
16301 (x_frame_parms): Add missing braces around initializer.
16303 * w32term.c (x_setup_relief_colors): Don't compute an image's
16304 background color if it doesn't have a Pixmap.
16305 (notice_overwritten_cursor): Don't depend on
16306 output_cursor and updated_area. Compare pixel coordinates with
16307 window's cursor pixel coordinates.
16308 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
16309 Call notice_overwritten_cursor with new arg list.
16310 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
16312 (x_draw_image_relief): Use predefined macro instead of
16313 constant when the value of `tool_bar_button_relief' is negative.
16315 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
16317 2002-01-04 Richard M. Stallman <rms@gnu.org>
16319 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
16321 2002-01-03 Richard M. Stallman <rms@gnu.org>
16323 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
16324 (Fkey_binding): Try the `keymap' property map first.
16325 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
16326 minor mode bindings.
16328 2002-01-03 Kim F. Storm <storm@cua.dk>
16330 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
16332 2002-01-02 Richard M. Stallman <rms@gnu.org>
16334 * keyboard.c (read_key_sequence): Handle the keymap property
16335 before minor mode maps.
16337 * editfns.c (Fformat): Update thissize from field_width
16338 based on the actual width, in the string case.
16340 2002-01-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16342 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
16343 when used as truth value to prevent gcc warnings.
16345 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
16346 * w32proc.c: Include <config.h>.
16348 2002-01-01 Andreas Schwab <schwab@suse.de>
16350 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
16351 not EMACS_INT, to make them compatible with DEFVAR_INT.
16352 * lisp.h (max_specpdl_size): Adjust declaration.
16354 2002-01-01 Richard M. Stallman <rms@gnu.org>
16356 * print.c (print_object): Test print_escape_nonascii only for
16358 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
16359 when outputting to a multibyte buffer.
16361 2001-12-29 Richard M. Stallman <rms@gnu.org>
16363 * print.c (print_object): In multibyte string, use hex escapes.
16364 Use octal only for unibyte strings.
16365 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
16367 * lread.c (read_escape): New arg BYTEREP for reporting whether
16368 escape forces unibyte or multibyte.
16369 (read1): When reading a string, take note of that info.
16371 2001-12-29 Ken Raeburn <raeburn@gnu.org>
16373 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
16374 comparison to test lisp value returned by Fget.
16376 2001-12-29 Richard M. Stallman <rms@gnu.org>
16378 * lisp.h (max_specpdl_size): Add declaration.
16380 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
16382 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
16383 Handle modifier bits. Correct typo in error message.
16385 2001-12-28 Richard M. Stallman <rms@gnu.org>
16387 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
16388 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
16389 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
16390 Update calls to Fdefine_abbrev.
16391 (write_abbrev): Update for changed data format.
16392 Don't list "system" abbrevs.
16393 (Fexpand_abbrev): Update use count with new data format.
16394 (describe_abbrev): Update for changed data format.
16395 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
16397 * config.in (HAVE_MBSINIT): Add #undef.
16399 * strftime.c (mbsinit): Define as no-op if not available.
16401 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
16402 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
16404 * keymap.c (Flookup_key): Error message if key has wrong data type.
16405 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
16406 (exclude_key): New variable.
16408 2001-12-28 Gerd Moellmann <gerd@gnu.org>
16410 * xterm.c (x_setup_relief_colors): Don't compute an image's
16411 background color if it doesn't have a Pixmap.
16413 * xterm.c (notice_overwritten_cursor): Don't depend on
16414 output_cursor and updated_area. Compare pixel coordinates with
16415 window's cursor pixel coordinates.
16416 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
16417 Call notice_overwritten_cursor with new arg list.
16418 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
16421 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
16422 height of the cursor line to the amount to scroll.
16424 2001-12-27 Richard M. Stallman <rms@gnu.org>
16426 * intervals.c (set_point_both): The position after an invisible,
16427 intangible character is not an acceptable stopping point.
16429 2001-12-27 Ken Raeburn <raeburn@gnu.org>
16431 * window.c (enlarge_window): In new preserve_before code, convert
16432 CURBEG from lisp object to integer before doing arithmetic.
16434 2001-12-27 Richard M. Stallman <rms@gnu.org>
16436 * bytecode.c (Fbyte_code): Undo previous change.
16438 2001-12-26 Kim F. Storm <storm@cua.dk>
16440 * keyboard.c (record_char): Ignore duplicate help-echo events only
16441 separated by mouse-movement. When tracking mouse, only record
16442 first and last mouse-movement event in same window.
16443 Don't record mouse-movement events in keyboard macros.
16445 2001-12-25 Richard M. Stallman <rms@gnu.org>
16447 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
16448 (Fenlarge_window): New arg PRESERVE_BEFORE.
16450 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
16451 instead of Fstring_as_unibyte.
16453 2001-12-22 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16455 The following changes remove mocklisp support:
16457 * mocklisp.h, mocklisp.c: Files removed.
16459 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
16460 `Qmocklisp' and `Qmocklisp_arguments'.
16461 Remove prototype of syms_of_mocklisp.
16463 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
16465 * callint.c: Do not include mocklisp.h.
16466 (Fcall_interactively): Do not test for mocklisp case.
16468 * eval.c: Remove variables `Qmocklisp_arguments',
16469 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
16470 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
16471 Do not test for mocklisp case.
16472 (Fwhile): Remove unused variable `tem'.
16473 (syms_of_eval): Remove variable `moclisp-arguments'.
16475 * data.c (wrong_type_argument): Remove mocklisp case.
16477 * doc.c (Fdocumentation): Remove mocklisp case.
16479 * emacs.c (main): Do not call syms_of_mocklisp.
16481 2001-12-21 Richard M. Stallman <rms@gnu.org>
16483 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
16484 to the left or to the right of the pointer, put it against
16485 the left screen edge.
16487 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
16489 * Makefile.in (distclean): Remove .gdbinit if we are building
16490 outside the source tree.
16492 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
16494 * w32.c (emacs_root_dir): New function.
16496 * msdos.c (emacs_root_dir): New function.
16498 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
16499 of the current drive as the fallback for default_directory.
16501 * dired.c (file_name_completion): Run the elements of
16502 completion-ignored-extensions through ENCODE_FILE.
16504 * lisp.h (scmp): Remove prototype, since it's now a static
16505 function private to dired.c.
16507 2001-12-18 Richard M. Stallman <rms@gnu.org>
16509 * dired.c (scmp): Function moved from minibuf.c.
16510 Delete multibyte handling--used only on encoded strings.
16512 * minibuf.c (scmp): Function moved to dired.c.
16514 * fns.c (merge): Add QUIT call.
16516 2001-12-18 Dave Love <fx@gnu.org>
16518 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
16519 language/georgian.el.
16521 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
16523 * Makefile.in (lisp, shortlisp): Synchronize with changes to
16524 lisp/Makefile.in:DONTCOMPILE.
16526 2001-12-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16528 * xdisp.c (window_box_height): Do not return negative values.
16529 From Gerd Moellmann <gerd@gnu.org>.
16531 * keyboard.c (head_table): Add missing braces around initializer.
16533 * term.c (keys): Likewise.
16535 * xfns.c (x_frame_parms, visual_classes): Likewise.
16537 2001-12-17 Sam Steingold <sds@gnu.org>
16539 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
16540 patch (COMPOSING_P, not COMPOSING).
16542 2001-12-17 Richard M. Stallman <rms@gnu.org>
16544 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
16546 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
16547 before calling decode_coding.
16549 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
16551 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
16552 instead of only for COMPOSITION_DISABLED.
16554 2001-12-16 Richard M. Stallman <rms@gnu.org>
16556 * alloc.c (pure_alloc): After overflow, allocate just a small block.
16558 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
16560 * buffer.h (struct buffer): New field `display_error_modiff'.
16561 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
16563 * window.c (Frecenter): Clear display_error_modiff field.
16565 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
16566 Call redisplay_window, but not if display_error_modiff field says no.
16567 (redisplay_window_error): New function.
16568 (displayed_buffer): New variable.
16569 (redisplay_internal, redisplay_windows): Call the new functions
16570 instead of redisplay_window directly.
16572 2001-12-15 Richard M. Stallman <rms@gnu.org>
16574 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
16576 2001-12-14 Andrew Innes <andrewi@gnu.org>
16578 * makefile.w32-in (EMACSLOADPATH): Define.
16579 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
16580 (bootstrap-temacs): Remove dependency on bootstrap-clean.
16582 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
16584 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
16585 parameter have a numeric value all the time.
16587 * w32fns.c (x_report_frame_params): Likewise.
16589 2001-12-12 Richard M. Stallman <rms@gnu.org>
16591 * fileio.c (Fwrite_region): Doc fix.
16593 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
16594 (redisplay_internal): Call clear_image_cache only for window terminals.
16596 2001-12-12 Gerd Moellmann <gerd@gnu.org>
16598 * xdisp.c (move_it_vertically_backward): Change heuristic
16599 for the case that we didn't move far enough initially.
16601 * window.c (Frecenter): Simplify computation in the case of window
16602 system frames and ARG < 0; use window_box_height.
16604 2001-12-11 Richard M. Stallman <rms@gnu.org>
16606 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
16607 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
16609 2001-12-11 Andrew Innes <andrewi@gnu.org>
16611 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
16614 2001-12-11 Richard M. Stallman <rms@gnu.org>
16616 * m/hp800.h: Split the __hpux conditional into the parts
16617 that are right for GNU/Linux too and the parts that are not.
16618 Use the former if GNU_LINUX.
16619 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
16621 * s/gnu-linux.h (GNU_LINUX): Defined.
16623 2001-12-11 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16625 * macros.c, msdos.c, w16select.c: Change doc-string comments to
16626 `new style' [w/`doc:' keyword].
16628 2001-12-10 Jason Rumney <jasonr@gnu.org>
16630 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
16633 2001-12-09 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16635 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
16638 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
16640 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
16642 * s/hpux10.h (srand48): Don't undefine.
16644 2001-12-09 Jason Rumney <jasonr@gnu.org>
16646 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
16647 Add comment to explain where the struct came from.
16648 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
16649 (add_menu_item): Process pop-up menus first to avoid memory leak.
16650 (add_menu_item, w32_menu_display_help): Use `help' field as
16652 (w32_free_submenu_strings): Only free owner-drawn strings.
16654 2001-12-09 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16656 * COPYING: Moved back.
16658 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
16659 Add parentheses around && within ||.
16661 * indent.c (compute_motion): Likewise.
16663 * intervals.c (merge_properties_sticky): Likewise.
16665 * coding.c (setup_coding_system, shrink_encoding_region)
16666 (Fdecode_sjis_char): Likewise.
16668 2001-12-07 Andreas Schwab <schwab@suse.de>
16670 * xdisp.c (display_mode_element): Don't read past end of string if
16673 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
16676 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
16677 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
16678 type changed to Lisp_Object.
16679 (syms_of_data): DEFVAR_LISP them.
16681 2001-12-07 Richard M. Stallman <rms@gnu.org>
16683 * callproc.c (init_callproc): Set Vdata_directory based on the source
16684 location whenever Emacs was run uninstalled.
16686 2001-12-06 Paul Eggert <eggert@twinsun.com>
16688 * config.in (HAVE_WORKING_VFORK): New #undefs.
16689 * process.c (create_process):
16690 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
16691 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
16692 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
16693 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
16694 * m/intel386.h (HAVE_VFORK): Likewise.
16695 * m/mips-siemens.h (HAVE_VFORK): Likewise.
16696 * m/mips.h (HAVE_VFORK): Likewise.
16697 * s/freebsd.h (vfork): Remove #define.
16698 * s/lynxos.h (HAVE_VFORK): Remove #undef.
16699 * s/usg5-4-2.h: Fix comment about vfork.
16701 2001-12-06 Richard M. Stallman <rms@gnu.org>
16703 * s/hpux10.h (random): Add undef.
16704 (HAVE_RANDOM): Define it just once.
16706 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
16708 * eval.c: Undo last change: the standard syntax is not wanted.
16710 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
16712 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
16713 scroll bars of the frame before deleting the frame itself. If the
16714 frame has a widget, delete the frame with XtDestroyWidget, and do
16715 not call XDestroyWindow before that.
16717 2001-12-06 Kim F. Storm <storm@cua.dk>
16719 * xfns.c (x_report_frame_params): Return actual fringe widths.
16721 * w32fns.c (x_report_frame_params): Return actual fringe widths.
16723 2001-12-05 Andrew Innes <andrewi@gnu.org>
16725 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
16728 * insdel.c (make_gap_larger): New function.
16729 (make_gap_smaller): New function.
16730 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
16731 Call make_gap_smaller if arg is negative.
16733 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
16735 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
16736 Pass a dummy argument when calling interrupt_signal.
16737 (parse_menu_item): Mark disabled items before checking for empty def.
16738 (read_char_minibuf_menu_prompt): Make safety more visible.
16739 (read_key_sequence): Add a `first_unbound' variable.
16740 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
16741 unbound prefix as soon as we can detect it.
16743 * doc.c (Fsnarf_documentation): Add prototype.
16744 (get_doc_string): Handle negative arguments.
16745 (Fdocumentation): Use AREF and ASIZE.
16746 Move the calls to get_doc_string to a single place.
16747 Don't confuse an interactive-spec for a docstring reference.
16748 (Fdocumentation_property): Take advantage of the fact that
16749 get_doc_string now ignores the sign of the docstring position.
16751 * eval.c: Use standard syntax for usage in docstrings.
16753 2001-12-03 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16755 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
16757 2001-12-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16759 * xterm.c (x_draw_image_relief): Use predefined macro instead of
16760 constant when the value of `tool_bar_button_relief' is negative.
16762 2001-12-02 Richard M. Stallman <rms@gnu.org>
16764 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
16765 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
16767 * fileio.c (read_non_regular): Delete Fsignal call.
16769 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
16771 * lisp.h (run_hook_list_with_args): Undo last change.
16773 2001-12-01 Gerd Moellmann <gerd@gnu.org>
16775 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
16777 2001-12-01 Jason Rumney <jasonr@gnu.org>
16779 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
16781 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
16782 [!WM_MOUSELEAVE]: Define.
16784 * w32menu.c (current_popup_menu, get_menu_item_info):
16785 (set_menu_item_info): New vars.
16786 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
16787 (w32_menu_show): Set current_popup_menu.
16788 (add_menu_item): Allocate new strings for owner-drawn menu items
16790 Use owner-draw for disabled menu items again.
16791 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
16792 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
16794 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
16795 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
16796 <WM_EXITMENULOOP>: Free menu strings.
16797 <WM_MOUSELEAVE>: Stop tracking mouse.
16798 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
16800 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
16803 2001-12-01 Kim F. Storm <storm@cua.dk>
16805 The following changes add left-fringe and right-fringe
16806 frame parameters to adjust fringe widths, or remove one or
16809 * frame.h (struct frame): Remove trunc_area_pixel_width and
16810 trunc_area_cols fields.
16811 (Qleft_fringe, Qright_fringe): Declare.
16812 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
16814 * frame.c (Qleft_fringe, Qright_fringe): New vars.
16815 (syms_of_frame): Initialize them.
16817 * window.c (coordinates_in_window): Handle separate left and right
16820 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
16821 and fringe_cols fields.
16822 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
16823 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
16824 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
16825 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
16826 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
16827 (x_compute_fringe_widths): Add prototype.
16829 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
16830 fill fringe evenly with small dashes.
16831 (x_draw_fringe_bitmap): Clear background if necessary. Align and
16832 clip the new ZV bitmap to avoid jitter between rows.
16833 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
16834 background. Don't draw fringe bitmaps if fringe width is zero.
16835 (x_compute_fringe_widths): New function.
16836 (x_new_font, x_set_window_size_1): Use it.
16838 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
16839 (x_set_frame_parameters): Process `font' parameter before other
16840 parameters as fringe widths depend on it.
16841 (x_set_fringe_width): New function.
16842 (x_figure_window_size): Use x_compute_fringe_widths.
16843 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
16846 * widget.c (set_frame_size): Use x_compute_fringe_widths.
16847 (EmacsFrameSetCharSize): Ditto.
16849 * w32term.h: Merged changes from xterm.h.
16850 * w32term.c: Merged changes from xterm.c.
16851 * w32fns.c: Merged changes from xfns.c.
16853 2001-11-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16855 * COPYING: Removed.
16857 2001-11-29 Dave Love <fx@gnu.org>
16859 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
16861 (detect_coding_mask): Fix call of detect_coding_iso2022.
16863 2001-11-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16865 * fileio.c (file-name-coding-system)
16866 (default-file-name-coding-system): Doc fix (links to referenced
16869 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
16871 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
16872 Add dummy uses of gcproN variables.
16874 * category.c (describe_category, describe_category_1)
16875 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
16876 (syms_of_category): Don't defsubr Sdescribe_categories.
16878 2001-11-28 Richard M. Stallman <rms@gnu.org>
16880 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
16882 * Makefile.in (lispdir): New variable, referring to build dir.
16883 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
16885 2001-11-28 Andrew Innes <andrewi@gnu.org>
16887 * w32menu.c (w32_menu_display_help): Actually add the new argument
16890 2001-11-28 Jason Rumney <jasonr@gnu.org>
16892 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
16893 menu items. From David Ponce <dponce@wanadoo.fr>.
16894 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
16896 (w32_menu_display_help): New argument OWNER. Rewritten to store a
16897 help event in the owner frame's keyboard buffer.
16899 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
16900 (Fx_show_tip): Don't subtract last width from row width.
16902 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
16903 (w32_read_socket): Use EQ to compare frames.
16905 2001-11-28 Gerd Moellmann <gerd@gnu.org>
16907 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
16910 2001-11-28 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
16912 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
16913 `gcpro3' and `gcpro4'.
16915 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
16917 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
16919 * ccl.c: Use AREF and ASIZE.
16921 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
16923 * lisp.h (run_hook_list_with_args): Remove.
16924 (LIST_END_P): Fix call to wrong_type_argument.
16925 (make_fixnum_or_float): Use EMACS_INT rather than int.
16927 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
16929 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
16930 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
16932 * eval.c: Use AREF and ASIZE.
16933 (Ffetch_bytecode): Add the file name to the error message.
16935 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
16936 which match the end of the file-name.
16937 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
16938 is not a valid env var, but leave it as is instead.
16940 * keymap.c (access_keymap): Handle t bindings like nil bindings.
16941 Make nil bindings in char-tables transparent.
16942 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
16944 2001-11-26 Richard M. Stallman <rms@gnu.org>
16946 * textprop.c (set_text_properties_1): Allow START, END in either order.
16947 Do nothing if range is empty.
16949 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
16951 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
16954 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
16956 * textprop.c (set_text_properties_1): Clearly mark that the
16957 interval should not be empty.
16959 * intervals.c (graft_intervals_into_buffer):
16960 Don't call set_text_properties_1 on an empty interval.
16962 2001-11-25 Richard M. Stallman <rms@gnu.org>
16964 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
16966 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
16967 don't lose the data in it.
16969 2001-11-25 Juanma Barranquero <lektu@terra.es>
16971 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
16973 * buffer.c (Fkill_buffer): Likewise.
16975 * print.c (temp_output_buffer_setup): Likewise.
16977 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
16979 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
16981 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
16983 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
16984 Niemitalo <kon@iki.fi>.
16986 2001-11-25 Jason Rumney <jasonr@gnu.org>
16988 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
16990 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
16991 (Fx_show_tip): Block input during frame creation.
16992 (Fx_show_tip, Fx_hide_tip): Enable.
16994 2001-11-24 Richard M. Stallman <rms@gnu.org>
16996 * lread.c (Fload): Detect recursive load error for more than 3
16997 nestings of the same file.
16998 (Vrecursive_load_depth_limit): Variable deleted.
16999 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
17001 2001-11-24 Jason Rumney <jasonr@gnu.org>
17003 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
17004 mouse position if either left or top is not specified.
17006 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
17007 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
17008 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
17009 (my_create_tip_window): Assign tip_window.
17010 (x_create_tip_frame): Use same defaults as X.
17011 (compute_tip_xy): Remove unused variable. Use full screen width.
17012 (Fx_show_tip): Do not double height. Call ShowWindow directly.
17014 * w32term.c (x_after_update_window_line): Doc fix.
17015 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
17017 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
17019 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
17020 for all Windowed systems.
17022 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
17024 * msdos.c (IT_clear_screen): If the frame's faces are not yet
17025 realized, use the initial screen colors to clear the screen.
17027 2001-11-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
17029 * textprop.c (Fset_text_properties): Remove unused variables
17030 `unchanged', `prev_changed', `s' and `len'.
17032 * search.c (Freplace_match): Remove unused variable `inslen'.
17034 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
17036 2001-11-22 Jason Rumney <jasonr@gnu.org>
17038 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
17039 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
17040 (my_create_tip_window): New function.
17041 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
17042 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
17044 2001-11-20 Jason Rumney <jasonr@gnu.org>
17046 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
17047 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
17049 * w32fns.c (Vw32_system_coding_system): Remove.
17050 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
17052 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
17054 * fileio.c (Fwrite_region): Move choose_write_coding_system to
17055 after build_annotations.
17057 * syntax.c (describe_syntax): Add dummy arg.
17058 (describe_syntax_1): Update call to describe_vector.
17060 * category.c (describe_category): Add dummy arg.
17061 (describe_category_1): Update call to describe_vector.
17063 * keymap.c (Fdescribe_vector): Add `describer' parameter.
17064 (describe_command, describe_translation): Add dummy second param.
17065 (describe_map): Call elt_describer with two arguments.
17066 (describe_vector_princ): Add `fun' parameter.
17067 Call it instead of the hardcoded `princ'.
17068 (describe_vector): Add arg `args'.
17069 Pass it as a new second argument to elt_describer.
17071 * keymap.h (describe_vector): Update prototype.
17073 * frame.c: Don't include keymap.h any more.
17074 (keys_of_frame): Remove.
17076 * lisp.h (keys_of_frame): Remove declaration.
17078 * emacs.c (main): Don't call `keys_of_frame' any more.
17080 2001-11-14 Andreas Schwab <schwab@suse.de>
17082 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
17083 if defined, 0 otherwise.
17084 (MAP_FAILED): Define if not defined and use it to test mmap failure.
17085 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
17087 2001-11-19 Richard M. Stallman <rms@gnu.org>
17089 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
17091 2001-11-18 Jason Rumney <jasonr@gnu.org>
17093 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
17094 (x_draw_bar_cursor): If the background color of the glyph under
17095 the cursor equals the frame's cursor color, use the glyph's
17096 foreground color for drawing the bar cursor.
17097 (x_after_update_window_line): Clear internal border in different
17099 (w32_set_vertical_scroll_bar): Check for width and height > 0.
17100 (w32_draw_relief_rect): Correct relief by 1 pixel.
17101 (x_set_glyph_string_background_width):
17102 Set extends_to_end_of_line_p if the row's fill_line_p is set and
17103 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
17104 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
17105 if cursor_in_non_selected_windows is false.
17106 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
17107 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
17108 Notice if cursor gets overwritten.
17109 (notice_overwritten_cursor): Renamed from
17110 note_overwritten_text_cursor. Rewritten to take glyph widths
17111 into account, and to take X positions as parameters.
17112 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
17113 around call to x_draw_glyphs.
17114 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
17115 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
17116 color to use for image glyph reliefs.
17117 (x_draw_image_relief): Accept zero tool_bar_button_relief.
17118 (glyph_rect): Remove unused variable `area'.
17120 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
17122 (x_set_internal_border_width): Set frame garbaged when window
17124 (Fx_create_frame): Accept zero tool_bar_button_relief.
17125 (x_clear_image_1, four_corners_best, image_background)
17126 (image_background_transparent): New functions.
17127 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
17128 (gs_format): Add `:background' entry.
17129 (lookup_image): Set IMG's background color if specified.
17130 (pbm_load, xbm_load_image, png_load): Set IMG's background field
17132 (x_clear_image_1): Reset `background_valid' and
17133 `background_transparent_valid' fields.
17134 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
17135 calculating it here. Set IMG's background_transparent field.
17136 (enum xpm_keyword_index): Add XPM_BACKGROUND.
17137 (enum png_keyword_index): Add PNG_BACKGROUND.
17138 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
17139 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
17140 (enum gif_keyword_index): Add GIF_BACKGROUND.
17141 (enum gs_keyword_index): Add GS_BACKGROUND.
17142 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
17143 Pre-calculate image background color where necessary.
17144 (x_create_x_image_and_pixmap, xbm_load, gs_load):
17145 Use display info's n_cbits entry for screen depth.
17146 (Fx_show_tip): Remove unused variables `buffer', `top',
17147 `left', `max_width' and `max_height'.
17149 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
17151 2001-11-18 Gerd Moellmann <gerd@gnu.org>
17153 * puresize.h (BASE_PURESIZE): Increase to 750000.
17155 2001-11-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
17157 * frame.c (Fframe_live_p): Doc fix.
17159 2001-11-18 Richard M. Stallman <rms@gnu.org>
17161 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
17162 (message_dolog_marker3): New static variables hold three markers.
17163 (syms_of_xdisp): Initialize and staticpro them.
17164 (message_dolog): Use message_dolog_marker1..3 instead of
17165 allocating markers each time. Unchain them when done.
17167 2001-11-17 Richard M. Stallman <rms@gnu.org>
17169 * doc.c (Fsnarf_documentation): Doc fix.
17171 2001-11-17 Andreas Schwab <schwab@suse.de>
17173 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
17175 2001-11-17 Richard M. Stallman <rms@gnu.org>
17177 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
17179 2001-11-17 Jason Rumney <jasonr@gnu.org>
17181 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
17183 2001-11-17 Gerd Moellmann <gerd@gnu.org>
17185 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
17186 with invalid position.
17188 2001-11-16 Richard M. Stallman <rms@gnu.org>
17190 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
17192 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
17193 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
17194 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
17196 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
17198 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
17200 * fileio.c (build_annotations): Split off the tail.
17201 (build_annotations_2): New fun. Extracted from build_annotations.
17202 (Fwrite_region): Split the call to build_annotations into two
17203 calls to build_annotations and build_annotations_2.
17205 2001-11-16 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
17207 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
17208 clear_waiting_for_input with argument.
17210 * xterm.h (x_update_cursor): Remove duplicated prototype.
17212 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
17214 * xterm.c (waiting_for_input): Remove unnecessary declaration.
17216 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
17218 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
17220 * fileio.c (choose_write_coding_system): New fun, extracted
17221 from Fwrite_region.
17222 (Fwrite_region): Use it.
17224 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
17225 (funcall_lambda, run_hook_with_args): Make static and add prototype.
17226 (ml_apply, find_handler_clause): Add prototype.
17228 2001-11-16 Eli Zaretskii <eliz@gnu.org>
17230 * config.in: Add #undef HAVE_COFF_H.
17232 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
17233 Required for ISC 4.1.
17235 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
17237 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
17238 Andrew Wiseman <a.wiseman@btclick.com>.
17240 2001-11-16 Kim F. Storm <storm@cua.dk>
17242 The following changes are made to clean up the various internal
17243 references to the fringes to actually use the term `fringe' for
17244 them. Previously, they were called `flags areas', `bitmap areas',
17245 `left/right side of windows', or implicitly as `flags' or
17248 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
17249 Comments fixed. Use renamed symbols.
17251 * dispnew.c: Comment fix. Use renamed symbols.
17253 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
17254 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
17255 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
17257 * msdos.c: Comment fix.
17259 * w32fns.c: Use renamed symbols.
17261 * w32term.c: Comment fixes. Use renamed symbols.
17262 (fringe_bitmap_type): Renamed from bitmap_type.
17263 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
17264 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
17265 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
17267 * w32term.h: Comment fixes. Use renamed symbols.
17268 (fringes_extra): Renamed from flags_areas_extra.
17269 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
17270 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
17271 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
17272 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
17273 (FRAME_X_LEFT_FRINGE_WIDTH):
17274 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
17275 (FRAME_X_RIGHT_FRINGE_WIDTH):
17276 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
17278 * widget.c: Use renamed symbols.
17280 * window.c: Comment fixes. Use renamed symbols.
17281 (coordinates-in-window-p): Doc fix.
17283 * xdisp.c: Comment fixes. Use renamed symbols.
17285 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
17287 * xfns.c: Use renamed symbols.
17289 * xterm.c: Comment fixes. Use renamed symbols.
17290 (fringe_bitmap_type): Renamed from bitmap_type.
17291 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
17292 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
17293 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
17295 * xterm.h: Comment fixes. Use renamed symbols.
17296 (fringes_extra): Renamed from flags_areas_extra.
17297 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
17298 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
17299 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
17300 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
17301 (FRAME_X_LEFT_FRINGE_WIDTH):
17302 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
17303 (FRAME_X_RIGHT_FRINGE_WIDTH):
17304 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
17306 2001-11-15 Jason Rumney <jasonr@gnu.org>
17308 * w32menu.c (add-menu-item): Make help_echo and radio buttons
17309 work for most menu items. From David Ponce
17310 <david.ponce@wanadoo.fr>.
17312 2001-11-15 Gerd Moellmann <gerd@gnu.org>
17314 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
17315 Some x_set_* function expect to be called even if old and new
17318 * xdisp.c (build_desired_tool_bar_string): Accept zero
17319 tool_bar_button_relief.
17321 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
17323 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
17325 * xterm.c (x_draw_bar_cursor): If the background color of the
17326 glyph under the cursor equals the frame's cursor color, use
17327 the glyph's foreground color for drawing the bar cursor.
17329 * dispnew.c (direct_output_forward_char): Fix character/byte
17330 position comparison.
17332 2001-11-15 Miles Bader <miles@gnu.org>
17334 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
17335 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
17336 Update arguments to find_field.
17337 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
17338 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
17339 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
17340 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
17342 2001-11-14 Richard M. Stallman <rms@gnu.org>
17344 * editfns.c (Fpropertize): Allow call with 1 arg.
17346 * dispextern.h (image_background, image_background_transparent):
17347 Conditionalize on HAVE_X_WINDOWS.
17349 2001-11-13 Richard M. Stallman <rms@gnu.org>
17351 * print.c (Fprin1_to_string): Doc fix.
17353 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
17355 * floatfns.c (Fceiling, Ffloor): Doc fixes.
17357 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
17359 * fileio.c (Ffile_accessible_directory_p): Doc fix.
17361 * eval.c (syms_of_eval): Doc fix.
17363 * coding.c (syms_of_coding): Doc fix.
17365 * doc.c (Fsnarf_documentation): Doc fix.
17367 * dispnew.c (syms_of_display): Doc fix.
17369 * category.c (Fget_unused_category): Doc fix.
17371 * buffer.c (syms_of_buffer): Doc fixes.
17373 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
17375 * print.c (prin1, print): Doc fix.
17377 2001-11-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
17379 * fontset.h: Remove declarations of variables
17380 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
17382 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
17383 `Vclip_large_size_font'.
17385 2001-11-13 Jason Rumney <jasonr@gnu.org>
17387 * w32fns.c: Doc fix.
17389 2001-11-13 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
17391 * xfaces.c (Fface_attributes_as_vector): Doc fix.
17395 * emacs.c: Doc fix.
17397 * coding.c: Doc fix.
17399 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
17400 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
17401 `new style' [w/`doc:' keyword].
17403 2001-11-12 Richard M. Stallman <rms@gnu.org>
17405 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
17406 LeaveNotify events. Only FocusIn and FocusOut do that now.
17407 (x_display_and_set_cursor): Do display hollow cursors in active
17408 minibuffer windows when they are not selected.
17410 2001-11-12 Jason Rumney <jasonr@gnu.org>
17412 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
17413 * w32term.c: Change doc-string comments to `new style'
17414 [w/`doc:' keyword]. Doc fixes.
17416 * w32fns.c: Don't define max.
17417 (Fx_open_connection): Only execute once.
17419 2001-11-12 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
17421 * ccl.c: Change macros to use do-while block instead of if-else.
17422 Use braces to follow GNU Coding Standards.
17424 2001-11-11 Richard M. Stallman <rms@gnu.org>
17426 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
17428 * lread.c (read_escape): Use end_of_file_error for reporting eof.
17430 * insdel.c (replace_range): Use adjust_markers_for_replace
17431 instead of adjust_markers_for_delete and adjust_markers_for_insert.
17433 * intervals.h (set_text_properties, set_text_properties_1): Declare.
17435 * textprop.c (set_text_properties_1): New subroutine
17436 broken out of set_text_properties.
17437 (set_text_properties): Use set_text_properties_1.
17439 * intervals.c (graft_intervals_into_buffer):
17440 Use set_text_properties_1 to clear out properties.
17442 * search.c (Freplace_match): Use replace_range to insert
17443 and delete. Don't request property inheritance from
17446 2001-11-10 Jason Rumney <jasonr@gnu.org>
17448 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
17449 vertical fonts. Allow them if face name is explicitly specified.
17450 Do not give up if we find a font that cannot be converted to an xlfd.
17452 2001-11-10 Gerd Moellmann <gerd@gnu.org>
17454 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
17455 instead of malloc/free.
17457 2001-11-09 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
17459 * xfaces.c (merge_face_vectors): Use braces to follow GNU
17461 (Finternal_set_lisp_face_attribute): Likewise.
17463 * buffer.c (Fbury_buffer): Likewise.
17465 * indent.c (current_column_1): Remove unused variable `prev_col'.
17467 * coding.c (encode_coding): Use precomputed value of `src'.
17468 (encode_coding): Remove unused variable `src_end'.
17469 (code_convert_region): Remove unused variables `count'.
17471 2001-11-07 Jason Rumney <jasonr@gnu.org>
17473 * w32term.c (x_display_and_set_cursor): Do not move system caret
17474 if cursor_glyph is NULL.
17476 2001-11-07 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
17478 * keymap.c (access_keymap): Fix compilation error.
17480 2001-11-07 Miles Bader <miles@gnu.org>
17482 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
17484 2001-11-07 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
17486 * intervals.c (graft_intervals_into_buffer):
17487 Remove #ifdef'd-out code.
17488 (graft_intervals_into_buffer): Remove unused variable `middle'.
17490 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
17491 code (eval-current-buffer).
17492 Change doc-string comments to `new style' [w/`doc:' keyword].
17494 2001-11-06 Richard M. Stallman <rms@gnu.org>
17496 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
17498 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
17500 * lread.c (read1): Fix behavior with nested backquoting.
17502 * keyboard.c (make_lispy_event): Check integerness and fix
17503 Lisp_Object/int mixup.
17505 2001-11-06 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
17507 * fns.c (copy_hash_table): Remove unused variable `v'.
17509 * fontset.c (fontset_font_pattern): Remove unused variable
17512 * indent.c (current_column_1): Remove unused variable `prev_col'.
17514 2001-11-05 Richard M. Stallman <rms@gnu.org>
17516 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
17518 * buffer.c (Fkill_buffer): Don't delete auto save file
17519 if buffer is modified.
17521 2001-11-05 Andrew Innes <andrewi@gnu.org>
17523 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
17526 2001-11-05 Richard M. Stallman <rms@gnu.org>
17528 * unexelf.c (unexec): Minor changes; clean up comments.
17530 2001-11-05 Sam Steingold <sds@gnu.org>
17532 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
17534 2001-11-05 Andreas Schwab <schwab@suse.de>
17536 * sound.c (sound_perror): Save errno from being clobbered.
17538 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
17540 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
17541 the program image directly.
17543 2001-11-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
17545 * buffer.h (Fbuffer_local_value): Add prototype.
17547 2001-11-04 Richard M. Stallman <rms@gnu.org>
17549 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
17552 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
17553 (record_char): Likewise.
17555 * keyboard.c (make_lispy_event): Don't insist a drag event must
17556 move to a different buffer position. Instead, check for moving at
17557 least double_click_fuzz.
17559 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
17561 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
17563 * indent.c (current_column_1, Fmove_to_column): Separate the code
17564 for display-table glyphs from the code for buffer text, to fix
17565 bugs in the former.
17567 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
17569 * buffer.c (Fbuffer_local_value): New function.
17570 (syms_of_buffer): Defsubr it.
17572 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
17573 value of `cursor-in-non-selected-windows'.
17575 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
17576 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
17577 (syms_of_xdisp): Initialize it.
17579 2001-11-04 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
17581 * xfns.c (Fx_create_frame): Doc fix.
17583 * coding.c: Change doc-string comments to `new style' [w/`doc:'
17586 * eval.c (top_level_value, top_level_set): Remove commented and
17588 (Fdefvar): Fix usage in doc-string.
17590 2001-11-03 Richard M. Stallman <rms@gnu.org>
17592 * xfns.c: Include unistd.h, if it exists.
17594 * editfns.c: Move the include of ctype.h after unistd.h.
17596 * gmalloc.c: Test BROKEN_PROTOTYPES.
17598 2001-11-03 Ken Raeburn <raeburn@gnu.org>
17600 * lisp.h (CHECK_STRING_CAR): New macro.
17601 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
17602 treating XCAR and XCDR as lvalues.
17603 (openp): Use CHECK_STRING_CAR.
17604 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
17606 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
17608 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
17609 (SIGMASKTYPE): Define.
17611 * syssignal.h (sigunblock): Don't define if already defined.
17613 2001-11-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
17615 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
17616 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
17617 Fix typos in comments.
17619 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
17620 and #ifdef'd-out code.
17621 Fix and reindent comments.
17623 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
17625 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
17626 argument `i' in macros.
17628 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
17631 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
17632 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
17633 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
17634 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
17635 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
17636 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
17637 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
17638 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
17641 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
17642 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
17643 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
17644 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
17645 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
17646 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
17647 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
17648 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
17649 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
17650 (remove unused second argument).
17652 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
17654 * syntax.c (describe_syntax): New wrapper.
17655 (Finternal_describe_syntax_value): Rename from describe_syntax.
17656 Don't insert space at front and \n at the end.
17657 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
17659 * regex.c (re_wctype): Try to fix some warnings.
17660 (regcomp, regexec): Don't forget the __restrict.
17662 2001-11-02 Richard M. Stallman <rms@gnu.org>
17664 * textprop.c (Fget_char_property): Doc fix.
17666 2001-11-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
17668 * process.c (Fstart_process): Add usage to doc-string.
17670 * data.c (Fsetq_default): Ditto.
17672 * callint.c (Finteractive): Ditto.
17674 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
17676 * macros.c: Don't include keymap.h any more.
17678 2001-11-01 Richard M. Stallman <rms@gnu.org>
17680 * data.c (Fmake_local_variable): Doc fix.
17682 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
17683 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
17685 * keymap.c (Fdescribe_buffer_bindings): Print character property
17686 bindings along with or instead of the buffer local map.
17687 Make the overriding maps override what they should.
17689 2001-11-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
17691 * window.c (grow_mini_window): Fix typo in comment.
17693 2001-11-01 Gerd Moellmann <gerd@gnu.org>
17695 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
17696 (XTset_vertical_scroll_bar): Likewise.
17698 * xfns.c (x_build_heuristic_mask): Use four_corners_best
17699 instead of IMAGE_BACKGROUND.
17701 * xfns.c (four_corners_best): Reindent.
17703 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
17704 Handle :box so that it is possible to specify sexprs.
17706 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
17708 * s/hpux11.h: New file.
17710 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
17712 * emacs.c (USAGE1): Show command line option --no-window-system
17713 instead of --no-windows in usage.
17714 (standard_args): Rename --no-windows to --no-window-system.
17715 (bug_reporting_address): Follow Emacs coding conventions.
17717 * eval.c (Fcommandp): Doc fix.
17718 Change doc-string comments to `new style' [w/`doc:' keyword].
17720 * frame.c (Fframe_live_p): Doc fix.
17722 * buffer.c (selective-display-ellipses): Doc fix.
17724 2001-10-31 Gerd Moellmann <gerd@gnu.org>
17726 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
17728 * xfaces.c (realize_x_face): If C is not a single-byte character,
17729 set the face's colors_copied_bitwise_p instead of the defaulted_p
17730 members which have a different meaning.
17731 (free_face_colors): Do nothing for a face whose colors have been
17734 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
17736 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
17738 * marker.c, mocklisp.c: Change doc-string comments to `new style'
17739 [w/`doc:' keyword].
17741 2001-10-31 Gerd Moellmann <gerd@gnu.org>
17743 * fns.c (require_unwind): Return Lisp_Object.
17745 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
17747 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
17748 (last-input-char): Revert doc-string to be the same as the
17749 doc-string of `last-input-event'.
17751 * xdisp.c: Fix typos in comments.
17753 2001-10-31 Gerd Moellmann <gerd@gnu.org>
17755 * window.c (grow_mini_window): Handle case that the root
17756 window is already smaller than the nominal mininum height.
17758 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
17760 * emacs.c (main): Don't call keys_of_macros any more.
17762 * lisp.h (keys_of_macros): Remove.
17764 * macros.c (keys_of_macros): Remove.
17766 * xfaces.c (Fface_attribute_relative_p): Declare args.
17768 2001-10-30 Jason Rumney <jasonr@gnu.org>
17770 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
17771 (enum_font_cb2): Ignore fonts with vertical orientation.
17773 2001-10-30 Richard M. Stallman <rms@gnu.org>
17775 * keyboard.c (Finput_pending_p): Doc fix.
17777 2001-10-30 Gerd Moellmann <gerd@gnu.org>
17779 * xterm.c (x_after_update_window_line): Don't run the code
17780 clearing in borders for rows whose visible height is 0.
17782 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
17783 resized_p flag is set. If not set, use the much less flickering
17784 method previously used.
17786 * dispnew.c (change_frame_size_1): Set frame's resized_p.
17788 * frame.h (struct frame) <resized_p>: New member.
17790 * lread.c (to_multibyte): Ensure read_buffer is at least twice
17791 as large as the number of bytes to convert.
17793 * lread.c (to_multibyte): New function.
17796 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
17798 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
17800 2001-10-30 Gerd Moellmann <gerd@gnu.org>
17802 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
17803 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
17804 if the row's fill_line_p is set and drawing the last glyph with
17805 DRAW_IMAGE_{RAISED,SUNKEN}.
17807 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
17809 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
17811 * xmenu.c: Include coding.h and charset.h.
17812 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
17813 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
17814 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
17815 Explicitly set wv->help. Use `TRUE' rather than `True'.
17816 (menu_help_callback): Use empty_string.
17818 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
17819 (Fx_popup_dialog): Explicitly init f.
17820 (w32_menu_display_help): Use empty_string.
17822 2001-10-29 Richard M. Stallman <rms@gnu.org>
17824 * fns.c (Frequire): Detect recursive try to require the same
17825 feature 3 or more levels deep, and get error.
17826 (require_unwind): New subroutine.
17827 (require_nesting_list): New variable.
17828 (syms_of_fns): Init and staticpro it.
17830 * print.c (print_object): Clarify indication of insertion type.
17832 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
17834 * coding.c (syms_of_coding): Document that locale-coding-system is
17835 used for decoding input on X.
17837 * window.c (Fscroll_left, Fscroll_right): Doc fix.
17839 2001-10-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
17841 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
17842 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
17844 2001-10-29 Gerd Moellmann <gerd@gnu.org>
17846 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
17847 use NO_CURSOR if cursor_in_non_selected_windows is false.
17849 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
17850 the slant attribute if FRAME is t.
17852 * xfns.c (x_set_internal_border_width): Set frame garbaged
17853 when X window doesn't exist yet.
17855 * xterm.c (x_after_update_window_line): Clear internal border
17856 in different circumstances.
17858 * xterm.c (XTread_socket) <KeyPress>: Don't use
17859 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
17862 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
17864 * m/ibms390.h: New file. From Adam Thornton
17865 <athornton@sinenomine.net>.
17867 2001-10-28 Gerd Moellmann <gerd@gnu.org>
17869 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
17871 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
17874 2001-10-28 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
17876 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
17878 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
17880 Fix typos in comments.
17882 * emacs.c (bug_reporting_address): New function.
17883 Use it when displaying usage message.
17885 * minibuf.c (read_minibuf): Remove unused external declaration of
17886 variable `Qread_only'.
17888 * keymap.c (access_keymap): Remove unused variable `charset'.
17890 2001-10-28 Miles Bader <miles@gnu.org>
17892 * xfaces.c (merge_face_heights): Handle TO being relative as well.
17893 Remove #ifdef'd-out code.
17894 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
17895 (syms_of_xfaces): Initialize them.
17897 2001-10-27 Jason Rumney <jasonr@gnu.org>
17899 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
17900 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
17901 position using the system caret.
17903 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
17904 (w32_system_caret_height, w32_system_caret_x)
17905 (w32_system_caret_y): New variables for tracking system caret.
17906 (w32_initialize): Initialize them.
17907 (x_display_and_set_cursor): Make system caret follow the active cursor.
17909 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
17910 New messages types.
17912 * w32term.c (note_mouse_highlight): Clear old help_echo.
17914 2001-10-27 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
17916 * xterm.c: Fix typo in a comment.
17918 * emacs.c: Fix typos in comments.
17919 Remove unnecessary spaces.
17920 Change doc-string comments to `new style' [w/`doc:' keyword].
17921 (USAGE2): Fix typos in usage string.
17923 * xterm.c: Fix typo in a comment.
17925 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
17928 2001-10-27 Gerd Moellmann <gerd@gnu.org>
17930 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
17931 instead of 1/2 line_height in the heuristic for skipping
17932 farther backward when target_y was not reached.
17934 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
17935 Display errno only if non-zero.
17936 (sound_warning): New function.
17937 (vox_configure): Don't treat failing to set sample rate as error.
17938 (various places): Improve error messages.
17940 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
17942 * fileio.c (Faccess_file): Run the argument filename through
17943 Fexpand_file_name, before using it.
17945 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
17946 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
17948 2001-10-26 Gerd Moellmann <gerd@gnu.org>
17950 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
17952 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
17953 Fix clearing in the case of scroll bars on the right.
17955 2001-10-26 Juanma Barranquero <lektu@terra.es>
17957 * w32gui.h (XImage): Add a dummy typedef.
17959 2001-10-26 Gerd Moellmann <gerd@gnu.org>
17961 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
17963 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
17965 * frame.c (Fframe_parameter): Fix last change.
17967 * fileio.c: Revert last change (which removed old commented-out
17968 version of expand-file-name). Add a comment that explains why
17969 this old version should not be removed.
17971 2001-10-25 Gerd Moellmann <gerd@gnu.org>
17973 * frame.c (Fframe_parameter): Fix a bug whereby some
17974 ``artificial'' frame parameters, like `minibuffer' were not
17975 obtained by calling Fframe_parameters.
17977 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
17978 cursor differently.
17980 * xdisp.c (move_it_vertically_backward): Compute line height
17981 differently. Add heuristic to try to be more compatible to 20.x.
17983 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
17985 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
17987 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
17990 2001-10-25 Miles Bader <miles@gnu.org>
17992 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
17993 BG is a pointer to a structure, not a structure.
17994 (gif_format, png_format): Add missing commas.
17996 2001-10-24 Richard M. Stallman <rms@gnu.org>
17998 * xfaces.c (Fface_attributes_as_vector): New function.
17999 (syms_of_xfaces): Defsubr it.
18001 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
18003 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
18006 2001-10-25 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
18008 * search.c (scan_newline): Remove unused variable `selective_display'.
18010 2001-10-25 Miles Bader <miles@gnu.org>
18012 * dispextern.h (struct image): Add `background',
18013 `background_valid', and `background_transparent' fields.
18014 (image_background, image_background_transparent): New declarations.
18015 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
18016 * xfns.c (image_background, image_background_transparent)
18017 (four_corners_best): New functions.
18018 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
18019 (gs_format): Add `:background' entry.
18020 (lookup_image): Set IMG's background color if specified.
18021 (pbm_load, xbm_load_image, png_load): Set IMG's background field
18023 (x_clear_image_1): Reset `background_valid' and
18024 `background_transparent_valid' fields.
18025 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
18026 calculating it here. Set IMG's background_transparent field.
18027 (enum xpm_keyword_index): Add XPM_BACKGROUND.
18028 (enum png_keyword_index): Add PNG_BACKGROUND.
18029 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
18030 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
18031 (enum gif_keyword_index): Add GIF_BACKGROUND.
18032 (enum gs_keyword_index): Add GS_BACKGROUND.
18033 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
18034 Pre-calculate image background color where necessary.
18035 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
18036 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
18037 color to use for image glyph reliefs.
18039 2001-10-24 Gerd Moellmann <gerd@gnu.org>
18041 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
18042 in full-width rows.
18044 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
18045 Fix clearing of area not covered by scroll bar.
18047 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
18049 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
18051 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
18052 (glyph_rect): Remove unused variable `area'.
18054 2001-10-24 Gerd Moellmann <gerd@gnu.org>
18056 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
18058 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
18059 (row_containing_pos): Take additional argument DY.
18060 Treat rows ending in middle of char differently.
18061 (display_line): Handle tabs on window systems differently.
18063 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
18064 with additional argument.
18066 * dispextern.h (row_containing_pos): Adjust prototype.
18068 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
18069 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
18070 (try_window_id, try_window_reusing_current_matrix)
18071 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
18072 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
18074 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
18076 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
18078 (HAVE_BOXES): Fix typo in comment.
18079 (push_menu_pane): Fix typo in comment.
18081 * xdisp.c: (display_prop_string_p): Remove unused local declaration
18083 (single_display_prop_string_p): Remove unused local declarations
18084 of `Qwhen' and `Qmargin'.
18085 (string_buffer_position): Remove unused variable `around'.
18086 (store_frame_title): Remove unused variable `width'.
18088 * window.c: Don't define max.
18089 (coordinates_in_window): Remove unused variable `uy'.
18091 * widget.c: Don't define max.
18093 * process.c: Don't define max.
18094 (create_process): Remove unused variable `buffer'.
18096 2001-10-23 Gerd Moellmann <gerd@gnu.org>
18098 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
18100 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
18102 * xfaces.c (Finternal_set_lisp_face_attribute)
18103 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
18104 frame is on a windowed display.
18106 2001-10-23 Gerd Moellmann <gerd@gnu.org>
18108 * dispnew.c (sync_window_with_frame_matrix_rows):
18109 Fix handling of windows which aren't full-width, fix handling
18112 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
18114 2001-10-23 Andreas Schwab <schwab@suse.de>
18116 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
18117 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
18119 2001-10-23 Gerd Moellmann <gerd@gnu.org>
18121 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
18122 REAL_END. Notice if cursor gets overwritten.
18123 (notice_overwritten_cursor): Take X positions as parameters.
18124 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
18125 around call to x_draw_glyphs.
18127 2001-10-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
18129 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
18130 instead of C) and usage.
18132 * editfns.c (char-to-string): Fix argument names (use CHAR instead
18135 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
18136 `left', `max_width' and `max_height'.
18138 2001-10-23 Gerd Moellmann <gerd@gnu.org>
18140 * xdisp.c (display_line): For a tab continued to the next line,
18141 set row's ends_in_middle_of_char_p.
18143 2001-10-22 Gerd Moellmann <gerd@gnu.org>
18145 * xdisp.c (display_line): Fix computation of continuation lines
18148 2001-10-22 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
18150 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
18153 * fileio.c: Remove unused code.
18155 2001-10-22 Miles Bader <miles@gnu.org>
18157 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
18158 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
18159 Remove `DOC_STRINGS_IN_COMMENTS' cases.
18161 2001-10-21 Jason Rumney <jasonr@gnu.org>
18163 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
18165 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
18167 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
18168 (Finsert_string): Avoid the multi-line string literals warning.
18170 2001-10-22 Miles Bader <miles@gnu.org>
18172 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
18173 (Fdocumentation): Don't use it.
18174 (syms_of_doc): Don't initialize it.
18176 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
18177 * print.c (Fwith_output_to_temp_buffer): Likewise.
18178 * window.c (Fsave_window_excursion): Likewise.
18179 * editfns.c (Fsave_excursion, Fsave_current_buffer)
18180 (Fsave_restriction): Likewise.
18181 * eval.c (Frun_hooks, Frun_hook_with_args)
18182 (Frun_hook_with_args_until_failure)
18183 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
18184 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
18185 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
18186 (Funwind_protect, Fcondition_case): Likewise.
18187 * coding.c (Ffind_operation_coding_system): Likewise.
18188 * keyboard.c (Ftrack_mouse): Likewise.
18190 2001-10-21 Miles Bader <miles@gnu.org>
18192 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
18193 (Fmake_hash_table): Add usage: string to doc string.
18194 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
18195 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
18196 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
18197 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
18198 (Fml_prefix_argument_loop): Likewise.
18200 2001-10-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
18202 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
18204 * sysdep.c (init_sys_modes): Change doc-string comments to `new
18205 style' [w/`doc:' keyword].
18207 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
18208 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
18209 comments to `new style' [w/`doc:' keyword].
18211 2001-10-21 Jason Rumney <jasonr@gnu.org>
18213 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
18215 * w32term.c (remember_mouse_glyph): New function.
18216 (w32_mouse_position): Use it.
18217 (note_mouse_movement): If the mouse moved off the glyph, remember
18220 * w32term.h (struct w32_output): Correct spelling of x_compatible.
18221 (w32_display_info): Add mouse_face_overlay.
18223 * w32term.c (notice_overwritten_cursor): Renamed from
18224 note_overwritten_text_cursor. Rewritten to take glyph widths into
18226 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
18227 (fast_find_string_pos): New function.
18228 (fast_find_position): Return the correct vpos. Add parameter
18229 STOP. In the final row, stop before glyphs having STOP as object.
18230 Don't consider glyphs that are not from a buffer.
18231 (fast_find_position) [0]: Add a presumably more correct version
18233 (expose_window_tree, expose_frame): Don't compute intersections here.
18234 (expose_window): Do it here instead.
18235 (expose_window_tree, expose_window, expose_line): Return 1 when
18236 overwriting mouse-face.
18237 (expose_window): If W is the window currently being updated, mark
18238 the frame garbaged.
18239 (expose_frame): If mouse-face was overwritten, redo it.
18240 (x_use_underline_position_properties): New variable.
18241 (syms_of_xterm): DEFVAR_BOOL it.
18242 (x_draw_glyph_string): Add comment to use it in future.
18243 (x_draw_glyph_string): Restore clipping after drawing box.
18244 Fix a computation of the underline position.
18245 (w32_get_glyph_string_clip_rect): Minor cleanup.
18246 (x_fill_stretch_glyph_string): Remove an assertion.
18247 (x_produce_glyphs): Don't convert multibyte characters
18248 to unibyte characters in unibyte buffers.
18249 (cursor_in_mouse_face_p): New function.
18250 (x_draw_stretch_glyph_string): Use it to choose a different GC
18251 when drawing a cursor within highlighted text. Don't draw
18252 background again if it has already been drawn.
18253 (x_draw_glyph_string_box): Don't draw a full-width
18254 box just because the glyph row's full_width_p flag is set.
18255 (x_draw_glyphs): Fix computation of rightmost x for
18257 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
18258 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
18259 change bottom shadow accordingly. Some cleanup.
18260 (x_update_window_end): Handle overwritten mouse face
18261 also for tool bar windows.
18262 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
18263 DRAW is DRAW_IMAGE_RAISED.
18264 (clear_mouse_face): Return 1 if text with mouse face was
18265 actually redrawn. Make the function static.
18266 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
18267 optimize away highlighting if we pass over that same overlay again.
18268 (note_mouse_highlight): Call mouse_face_overlay_overlaps
18269 to detect a case where we have to highlight a different region
18270 despite not having left the currently highlighted region.
18271 Set mouse_face_overlay in the x_display_info. Avoid changing the
18272 mouse pointer shape when show_mouse_face has already done it, or
18273 there is no need. Handle mouse-face and help-echo in strings.
18274 (glyph_rect): New function.
18275 (w32_mouse_position): Use it to raise the threshold for mouse
18276 movement event generation.
18277 (w32_initialize_display_info): Initialize the x_display_info's
18278 mouse_face_overlay.
18279 (w32_set_vertical_scroll_bar): Don't clear a zero height
18281 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
18282 a widget to zero height.
18284 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
18285 Protect unibyte strings created by replacing their multibyte
18286 equivalents in menu_items.
18287 (w32_menu_show): Don't overwrite an item's name with its key
18288 description in case the description is a multibyte string.
18289 (single_submenu): Some cleanup.
18291 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
18292 (postprocess_image): New function.
18293 (lookup_image): Call it for all image types except PostScript.
18294 (x_kill_gs_process): Call postprocess_image.
18295 (tiff_error_handler, tiff_warning_handler): New functions.
18296 (tiff_load): Install them as handlers.
18297 (x_kill_gs_process): Recognize if someone has cleared the image
18299 (valid_image_p): Protect better against invalid image
18300 specifications. Previous code could signal an error.
18301 (Fx_hide_tip, Fshow_tip): Doc fix.
18302 (Fv_max_tooltip_size): New variable.
18303 (syns_of_xfns): DEFVAR_LISP it.
18304 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
18305 window buffer to *tip* right after creating the frame. Set frame's
18306 window_width. Use a maximum tooltip size specified by
18307 Vx_max_tooltip_size, if that has valid contents.
18308 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
18309 Make sure the tooltip is completely visible.
18310 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
18311 (Fx_create_frame): Adjust the frame's height for presence
18312 of the tool bar before calling x_figure_window_size.
18313 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
18314 when the window gets smaller.
18315 (x_set_foreground_color): Set frame's cursor_pixel.
18316 (x_set_foreground_color, x_set_background_color): Cleaned up.
18317 (x_set_font): Handle case of x_new_fontset returning the same name
18318 as before, although there was a change in fontsets.
18320 2001-10-21 Miles Bader <miles@gnu.org>
18322 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
18323 (Flogxor): Add usage: string to doc string.
18324 * charset.c (Fstring): Likewise.
18325 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
18326 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
18328 2001-10-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
18330 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
18332 * alloc.c: Reindent DEFUNs with doc: keywords.
18334 * abbrev.c (Finsert_abbrev_table_description): Reindent.
18336 * frame.c: Change doc-string comments to `new style' [w/`doc:'
18339 See ChangeLog.9 for earlier changes.
18341 ;; Local Variables:
18342 ;; coding: iso-2022-7bit
18345 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
18346 Copying and distribution of this file, with or without modification,
18347 are permitted provided the copyright notice and this notice are preserved.
18349 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4