1 2003-02-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3 * process.h: Removed subtty field from struct Lisp_Process.
5 * process.c (create_process): Remove setting of subtty.
6 (emacs_get_tty_pgrp): New function.
7 (Fprocess_running_child_p, process_send_signal): Call
8 emacs_get_tty_pgrp instead of ioctl.
9 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
11 2003-02-21 Kai Gro
\e,A_
\e(Bjohann <kai.grossjohann@uni-duisburg.de>
13 * keymap.c (Fdefine_key): Doc fix.
15 2003-02-21 Juanma Barranquero <lektu@terra.es>
17 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
19 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
20 POLLING_PROBLEM_IN_SELECT.
22 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
23 Delete #undef of POLLING_PROBLEM_IN_SELECT.
25 * s/hpux10-20.h: New file.
27 * process.c (wait_reading_process_input): Use
28 POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
30 2003-02-20 Kenichi Handa <handa@m17n.org>
32 * fontset.c (check_fontset_name): If NAME is nil, return the
34 (override_font_info): New function.
35 (Fset_fontset_font): Document that NAME nil means the default
37 (Ffontset_info): If FONTSET is not the default fontset, merge
38 FONTSET onto the copy of the default fontset, and work on that
39 copy. Document that NAME nil means the default fontset.
40 (Ffontset_font): Document that NAME nil means the default fontset.
42 * process.c (setup_process_coding_systems): If the process's
43 in/out descriptor is -1, do nothing.
45 2003-02-19 Andreas Schwab <schwab@suse.de>
47 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte): Add
50 2003-02-19 Kenichi Handa <handa@m17n.org>
52 * xfaces.c (try_alternative_families): Try all scalable fonts if
53 Vscalable_fonts_allowed is not Qt.
55 2003-02-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
57 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
59 2003-02-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
61 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
64 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
65 (sorted_font_list): Moved allocation of struct font_name to
67 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
68 (Fx_list_fonts): Set maxnames to -1 to get all font names.
70 2003-02-18 Kim F. Storm <storm@cua.dk>
72 * lread.c (read1): Fix last change.
73 "`" is not always special. Allow "?" after a character constant.
75 2003-02-18 Andrew Choi <akochoi@shaw.ca>
77 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
79 2003-02-18 Andreas Schwab <schwab@suse.de>
81 * window.c (window_scroll_pixel_based): Move outside a
82 multi-glyph character before setting new window start.
84 * xdisp.c (in_display_vector_p): New function.
85 * dispextern.h (in_display_vector_p): Declare.
87 2003-02-18 Kim F. Storm <storm@cua.dk>
89 * lread.c (read1): Fix and relax read syntax.
90 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
91 Only recognize "," after dotted-pair dot if inside backquote.
92 Never include "`" or "," (inside backquote) in a symbol.
93 Allow dotted-pair dot after a character constant.
94 Allow "`" and "," (inside backquote) after a character constant.
96 2003-02-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
98 * gtkutil.c (xg_tool_bar_expose_callback): New function.
99 (xg_create_tool_bar): Force style of tool bar to be horizontal with
100 icons. Set name of tool bar to emacs-toolbar.
101 (update_frame_tool_bar): Connect expose event to
102 xg_tool_bar_expose_callback.
104 2003-02-17 Richard M. Stallman <rms@gnu.org>
106 * keyboard.c (this_command_key_count_reset): New variable.
107 Initiatize to 0 where this_command_key_count is set.
108 (read_char): Save and restore this_command_key_count_reset
109 around input method code.
110 (read_char): If this_command_key_count_reset, echo reread commands.
111 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
113 2003-02-17 Kenichi Handa <handa@m17n.org>
115 * fns.c (string_to_multibyte): Always return a multibyte string.
117 2003-02-16 Jason Rumney <jasonr@gnu.org>
119 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts): Negative
120 max_fonts parameter means list all.
122 2003-02-14 Dave Love <fx@gnu.org>
124 * fns.c (Flanginfo): Doc fix.
126 2003-02-13 Kim F. Storm <storm@cua.dk>
128 * lread.c (read_escape): Interpret \s as a SPACE character, except
129 for \s-X in a character constant which still is the super modifier.
130 (read1): Signal an `invalid read syntax' error if a character
131 constant is immediately followed by a digit or symbol character.
133 * search.c (Fmatch_data): Doc fix. Explicitly state that
134 match-data is undefined if last search failed.
136 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
139 2003-02-12 Juanma Barranquero <lektu@terra.es>
141 * eval.c (Fdefmacro): Fix typo.
143 2003-02-12 Kim F. Storm <storm@cua.dk>
145 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
146 macro is a string, convert meta modifiers in string when copying
147 the string into a vector.
149 2003-02-11 Kim F. Storm <storm@cua.dk>
151 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
153 2003-02-11 Kenichi Handa <handa@m17n.org>
155 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
157 2003-02-10 Kim F. Storm <storm@cua.dk>
159 * process.c: Doc fixes.
160 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
162 2003-02-10 Kenichi Handa <handa@m17n.org>
164 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
166 * process.c (QCfilter_multibyte): New variable.
167 (setup_process_coding_systems): New function.
168 (Fset_process_buffer, Fset_process_filter): Call
169 setup_process_coding_systems.
170 (Fstart_process): Initialize the member `filter_multibyte' of
172 (create_process): Call setup_process_coding_systems.
173 (Fmake_network_process): New keyward `:filter-multibyte'.
174 Initialize the member `filter_multibyte' of struct Lisp_Process.
175 Call setup_process_coding_systems.
176 (server_accept_connection): Call setup_process_coding_systems.
177 (read_process_output): If the process has a filter, decide the
178 multibyteness of a string to given to the filter by
179 `filter_multibyte' member of the process. If the process doesn't
180 have a filter and the result of conversion is unibyte, use
181 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
183 (Fset_process_coding_system): Call setup_process_coding_systems.
184 (Fset_process_filter_multibyte): New function.
185 (Fprocess_filter_multibyte_p): New function.
186 (syms_of_process): Intern and staticpro QCfilter_multibyte.
187 Defsubr Sset_process_filter_multibyte and
188 Sprocess_filter_multibyte_p.
190 * process.h (struct Lisp_Process): New member filter_multibyte.
192 * lisp.h (setup_process_coding_systems): Add prototype.
194 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
195 process, update coding systems for the process.
197 2003-02-09 Kenichi Handa <handa@m17n.org>
199 * fns.c (string_to_multibyte): New function.
200 (Fstring_to_multibyte): New function.
201 (syms_of_fns): Defsubr it.
203 2003-02-08 Andreas Schwab <schwab@suse.de>
205 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
206 instead of the substitution.
208 2003-02-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
210 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
212 * xmenu.c (menu_position_func): Adjust menu popup position so that
213 the menu is fully visible.
215 2003-02-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
217 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
218 (x_make_frame_invisible, x_wm_set_icon_position): Use
219 FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
221 * xfns.c (x_set_name, x_set_title): Ditto.
223 2003-02-04 Richard M. Stallman <rms@gnu.org>
225 * keyboard.c (echo_now): Update before_command_echo_length.
226 (Freset_this_command_lengths): Reset this_command_key_count etc.
227 immediately rather than arranging to do it later.
228 (before_command_key_count_1, before_command_echo_length_1)
229 (before_command_restore_flag): Vars deleted.
230 (add_command_key): Don't handle before_command_restore_flag.
231 (read_char, record_menu_key): Don't update before_command_key_count or
232 before_command_echo_length.
233 (read_char): Don't handle before_command_restore_flag.
235 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
236 in direct-output clauses if it wouldn't be called in the ordinary case.
238 2003-02-04 Kim F. Storm <storm@cua.dk>
240 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
242 2003-02-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
244 * gtkutil.c (remove_from_container): Copying list is not needed.
245 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
246 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
247 on list returned from gtk_container_get_children to avoid memory leak.
249 2003-02-01 Jason Rumney <jasonr@gnu.org>
251 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
253 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
254 definitions in xpm.h.
255 (init_xpm_functions): New function.
256 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
257 (init_external_image_libraries): Try to load libXpm.dll.
259 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
262 2003-01-31 Dave Love <fx@gnu.org>
264 * syntax.c (Fskip_chars_forward)
265 (open-paren-in-column-0-is-defun-start): Doc fix.
267 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
269 * fileio.c: Support // at start of name for Cygwin (just added proper
272 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
274 * Makefile.in: Use @EXEEXT@ for Cygwin.
276 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
278 * s/cygwin.h: Added for Cygwin port.
280 2003-01-31 Juanma Barranquero <lektu@terra.es>
282 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
283 when including gif_lib.h.
284 (init_gif_functions, init_tiff_functions): New functions.
285 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
286 Windows. Disable color table lookups. Call library functions
287 through pointers determined at runtime.
288 (init_external_image_libraries): Try to load libungif.dll and
291 2003-01-31 Kenichi Handa <handa@m17n.org>
293 * xdisp.c (SKIP_GLYPHS): New macro.
294 (set_cursor_from_row): Skip all glyphs that comes from overlay
297 2003-01-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
299 * gtkutil.c (free_frame_tool_bar): Removed debug printf.
301 2003-01-30 Dave Love <fx@gnu.org>
303 * alloc.c (Vgc_elapsed, gcs_done): New variables.
304 (Fgarbage_collect): Use them.
305 (init_alloc, syms_of_alloc): Set them up.
307 2003-01-30 Juanma Barranquero <lektu@terra.es>
309 * w32fns.c (init_external_image_libraries): Add missing operator.
311 2003-01-29 Jason Rumney <jasonr@gnu.org>
313 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
314 an alternative name for jpeg.dll.
316 2003-01-29 Kenichi Handa <handa@m17n.org>
318 * xdisp.c (set_cursor_from_row): Pay attention to string display
321 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
323 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
325 (keycode_to_xkeysym_table): Reformat and add more comments.
326 (XTread_socket): Drop special case for backspace.
328 2003-01-28 Andrew Choi <akochoi@shaw.ca>
330 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
331 values in old-style RGB specs.
333 2003-01-27 Juanma Barranquero <lektu@terra.es>
335 * w32fns.c (init_external_image_libraries): Try alternate names for the
338 2003-01-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
340 * gtkutil.c (create_dialog, xg_separator_p)
341 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
342 before calling strcmp or strlen.
344 2003-01-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
346 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
347 and handle image load failure.
349 2003-01-26 Jason Rumney <jasonr@gnu.org>
351 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
353 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
354 Disable color table lookups. Call jpeg library functions
355 through pointers determined at runtime.
356 (init_external_image_libraries): Try to load jpeg.dll.
358 2003-01-25 Richard M. Stallman <rms@gnu.org>
360 * lisp.h: Declare format2 instead of format1.
362 * fileio.c (barf_or_query_if_file_exists):
363 Call format2 instead of format1.
365 * editfns.c (format2): New function, replaces format1
366 but takes exactly two Lisp Objects as format args.
368 * buffer.c (Fkill_buffer): Call format2 instead of format1.
370 2003-01-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
372 * xterm.h: Change to return value of x_dispatch_event to int.
374 * xterm.c (x_filter_event): New function.
375 (event_handler_gdk, XTread_socket): Call x_filter_event.
376 (x_dispatch_event): Change to return value of finish.
377 (event_handler_gdk): Use return value from x_dispatch_event.
379 * xfns.c (x_window): Call create_frame_xic for GTK version to
380 initialize input methods.
382 * gtkutil.h: Add (void) prototypes.
384 * gtkutil.c (create_menus): Remove code that puts the help menu to
387 2003-01-25 Jason Rumney <jasonr@gnu.org>
389 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
390 [HAVE_PNG]: Sync with xfns.c version.
391 (png_load): Adjust colors for Windows. Use Windows
392 bitmaps. Disable color table lookups.
393 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
394 (init_png_functions): New function.
395 (png_read_from_memory, png_load): Call png library functions
396 through pointers determined at runtime.
397 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
398 (init_external_image_libraries): New function.
399 (init_xfns): Call it.
401 2003-01-24 Andreas Schwab <schwab@suse.de>
403 * minibuf.c (Fminibuffer_message): Verify type of parameter.
405 2003-01-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
407 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
408 of static initializer.
410 2003-01-24 Dave Love <fx@gnu.org>
412 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
415 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
418 2003-01-24 Kenichi Handa <handa@m17n.org>
420 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
421 It it is nonzero, don't pretend that an invisible area doesn't
423 (command_loop_1): Call adjust_point_for_property with proper
426 2003-01-22 Jason Rumney <jasonr@gnu.org>
428 Sync changes with xterm.c and xfns.c.
430 * w32term.c (x_draw_glyph_string_foreground)
431 (x_draw_composite_glyph_string_foreground): Implement overstriking.
433 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
434 phys_cursor's hpos is overwritten. This is still not completely
435 correct, as it doesn't really make sense to use hpos at all to
436 get the cursor glyph (as that is relative to the width of the
437 characters on the line, which may have changed during the update).
439 * w32term.c (notice_overwritten_cursor): Handle the special case
440 of the cursor being in the first blank non-text line at the
443 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
444 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
445 Compute from the x position returned by x_draw_glyphs.
447 (x_display_and_set_cursor): Don't set phys_cursor_width here,
448 except for NO_CURSOR and system caret, to make phys_cursor_width
449 contain what its name suggests.
450 (notice_overwritten_cursor): Consider the cursor image erased if
451 the output area intersects the cursor image in y-direction.
453 * w32term.c (note_mode_line_or_margin_highlight): Renamed from
454 note_mode_line_highlight and extended.
456 * w32term.c (last_window): New variable.
457 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
458 (note_mouse_movement): Remove reimplemented code in #if 0.
460 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
461 not update_mode_lines, and always set it to 1.
463 2003-01-21 Jason Rumney <jasonr@gnu.org>
465 * w32fns.c (IDC_HAND): Define it if system headers don't.
467 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
469 * w32term.h (struct w32_output): New member hand_cursor.
470 (WM_EMACS_SETCURSOR): New message definition.
472 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
473 function w32_define_cursor.
474 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
475 position, change member name output_data.x to output_data.w32 and
476 add function w32_define_cursor.
477 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
478 and change member name output_data.x to output_data.w32.
479 (w32_initialize_display_info): Setup
480 dpyinfo->vertical_scroll_bar_cursor.
482 * w32fns.c (Vx_hand_shape): New variable.
483 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
485 (x-create-frame): Setup Cursor types.
487 2003-01-21 David Ponce <david@dponce.com>
489 * w32term.c (w32_encode_char): For DIM=1 charset, set
490 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
491 x_encode_char change by Kenichi Handa <handa@m17n.org> on
493 (w32_draw_relief_rect): Declare all args.
494 (w32_define_cursor): New.
496 * w32fns.c (w32_load_cursor): New function.
497 (w32_init_class): Use it.
498 (x_put_x_image): Declare all args.
500 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
502 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
504 2003-01-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
506 * gtkutil.c: Must include stdio.h before termhooks.h
508 2003-01-21 Dave Love <fx@gnu.org>
510 * alloc.c (Fgc_status): Print zombie list.
511 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
512 Fix assignment of zombies.
513 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
514 Don't take car of non-cons.
516 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
518 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
520 2003-01-20 David Ponce <david@dponce.com>
522 * w32menu.c (digest_single_submenu): Declare all args.
524 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
527 (parse_single_submenu): Use individual keymap's prompt
528 string as pane name, if there is one.
529 (set_frame_menubar): Save menu_items_n_panes from each call to
530 parse_single_submenu and use it when calling digest_single_submenu.
532 2003-01-20 Steven Tamm <steventamm@mac.com>
534 * macterm.c (XTread_socket): Checks for valid, visible window
535 before sending a scroll-wheel event.
537 2003-01-20 Richard M. Stallman <rms@gnu.org>
539 * xdisp.c (redisplay_window): If mini window's buffer is not
540 a minibuffer, then redisplay it like other windows.
542 2003-01-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
544 * gtkutil.c (xg_create_frame_widgets): Check if there is an
545 external tool bar before setting tool bar height.
549 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
550 (x_from_xcolors): Adjust RGB values for W32.
551 (image_background, image_background_transparent)
552 (postprocess_image, x_to_xcolors, x_disable_image)
553 (x_build_heuristic_mask): Adapt for W32 and enable.
554 (x_create_x_image_and_pixmap): Mark images with palettes as such.
555 (xbm_load): Remove unused variable.
557 2002-11-14 Richard M. Stallman <rms@gnu.org>
559 * buffer.c (syms_of_buffer): Doc fix.
561 2002-11-14 Dave Love <fx@gnu.org>
563 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
565 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
566 * xmenu.c (unuse_menu_items, digest_single_submenu):
567 * xfns.c (x_put_x_image):
568 * xdisp.c (message2_nolog, set_message):
569 * undo.c (record_point):
570 * terminfo.c (tparam):
571 * syntax.c (scan_sexps_forward):
572 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
573 * composite.c (update_compositions):
574 * cm.c (calccost, cmgoto):
575 * charset.c (c_string_width): Declare all args (per C99).
577 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
579 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
582 * emacs.c (main) [!VMS]: Avoid third arg.
584 * fns.c (Fcopy_sequence): Doc fix.
585 (Fmap_char_table): Cast `call2'.
587 2002-11-14 Francesco Potorti` <pot@gnu.org>
589 * s/sol2-8.h: New file.
591 2002-11-14 Kim F. Storm <storm@cua.dk>
593 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
594 dependency on `risky-local-variable' and the :propertize form.
596 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
598 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
600 * syntax.c (scan_sexps_forward): Undo last patch.
601 Use a more obvious fix: check eob before updating the syntax table.
603 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
605 * syntax.c (scan_sexps_forward): Update syntax table before reading
606 a char rather than after so we don't update the table past eob.
608 2002-11-09 Dave Love <fx@gnu.org>
610 * buffer.c (Fset_buffer_major_mode): Fix last change.
612 * regex.c (regexec): Fix pmatch declaration.
614 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
616 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
617 to self-inserting characters.
618 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
620 * coding.c (Vtranslation_table_for_input): New.
621 (syms_of_coding): DEFVAR it.
623 2002-11-08 Juanma Barranquero <lektu@terra.es>
625 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
628 2002-11-08 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
630 * process.c (Fformat_network_address): Removed unused locals p,
633 2002-11-06 Dave Love <fx@gnu.org>
635 * buffer.c (Qset_buffer_major_mode_hook): New.
636 (Fset_buffer_major_mode): Use it.
638 2002-11-06 Richard M. Stallman <rms@gnu.org>
640 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
643 * process.c (wait_reading_process_input):
644 Test POLLING_PROBLEM_IN_SELECT, not hpux.
645 Avoid initialization for auto Lisp_Object var.
647 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
649 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
651 2002-11-05 Richard M. Stallman <rms@gnu.org>
653 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
655 * callint.c (Fcall_interactively): New local filter_specs.
656 (Fcall_interactively): Check for progn as well as let.
658 (Qprogn): New variable.
659 (syms_of_callint): Staticpro and init Qprogn.
661 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
663 * lread.c (Feval_buffer): Doc fix.
665 2002-11-04 Dave Love <fx@gnu.org>
667 * keyboard.c (read_char): Always translate iff
668 Vkeyboard_translate_table is a char table and c is valid.
670 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
673 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
675 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
677 * editfns.c (get_pos_property): Don't hardcode Qfield.
679 * keyboard.c (adjust_point_for_property): Handle `display' prop on
680 overlays. Also handle `invisible' prop.
682 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
684 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
685 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
687 2002-11-01 Andreas Schwab <schwab@suse.de>
689 * editfns.c (Fmessage): Revert last change to properly handle %%.
691 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
693 * xmenu.c (unuse_menu_items): New fun.
694 (menu_items_inuse): New var.
695 (syms_of_xmenu): Initialize it.
696 (init_menu_items): Use it to detect re-entrance.
697 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
698 (Fx_popup_menu): Remove spurious XSETFRAME.
700 * editfns.c (find_field): Make an exception for nil fields.
702 2002-11-01 Dave Love <fx@gnu.org>
704 * m/gec63.h: Deleted.
706 2002-10-31 Dave Love <fx@gnu.org>
708 * xterm.c (XTread_socket): Fix last change.
709 (xaw_scroll_callback): Cast call_data to long to avoid warning.
711 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
713 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
715 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
717 * editfns.c (overlays_around, get_pos_property): New funs.
718 (find_field): Use them.
719 Also be careful not to modify POS before its last use.
720 (Fmessage): Don't Fformat if there's nothing to format.
722 2002-10-30 Dave Love <fx@gnu.org>
724 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
725 [HAVE_PTY_H]; Include pty.h.
727 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
729 * xterm.c (Qeql): Declare.
730 (Vx_keysym_table): New.
731 (syms_of_xterm): Initialize it.
732 (XTread_socket): Use it. Deal with ASCII keysyms.
733 (XSetIMValues) [HAVE_X11R6]: Prototype.
735 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
736 (lispy_kana_keys): Comment out.
737 (make_lispy_event) [XK_kana_A]: Comment out.
738 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
741 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
743 (TERMINFO, LIBS_TERMCAP): Define.
745 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
746 (bcmp): Define conditional on HAVE_BCMP.
747 (NO_SIOCTL_H): Don't define.
748 (TIOCSIGSEND): Don't make conditional on IRIX6.
750 * s/sol2-5.h: Don't include strings.h.
751 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
753 * s/irix6-0.h (IRIX6): Don't define.
754 (bcopy, bcmp, bzero): Don't undef.
756 * s/irix6-5.h: Don't include strings.h.
757 (IRIX6): Don't define.
758 (bcopy, bcmp, bzero): Don't undef.
760 * syntax.c (Fforward_comment): Doc fix.
762 2002-10-29 Kim F. Storm <storm@cua.dk>
764 * process.c (Fsignal_process): Allow PROCESS to be specified by
765 name in addition to pid (as integer or string).
767 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
769 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
772 2002-10-27 Kim F. Storm <storm@cua.dk>
774 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
776 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
778 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
780 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
782 2002-10-26 Richard M. Stallman <rms@gnu.org>
784 * editfns.c (Fformat): Detect invalid format letters for floats.
786 2002-10-25 Kenichi Handa <handa@m17n.org>
788 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
789 (x_set_title): Likewise.
791 2002-10-25 Juanma Barranquero <lektu@terra.es>
794 * w32gui.h: Remove definition of XColor.
796 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
798 2002-10-24 Kim F. Storm <storm@cua.dk>
800 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
801 Callers changed (supply dummy arg).
803 * lisp.h (get_window_cursor_type): Update prototype.
805 * w32term.c (x_display_and_set_cursor): Get active_cursor from
806 get_window_cursor_type to track system caret.
808 2002-10-24 Kim F. Storm <storm@cua.dk>
810 * process.c (Fformat_network_address): New function.
811 (syms_of_process): Defsubr it.
812 (list_processes_1): Use it to format :local/:remote address if
813 service/host is not set; before emacs would crash in that case.
814 (Fmake_network_process): Don't use Ffind_operation_coding_system
815 to setup coding system if host or service is not set.
817 2002-10-23 Juanma Barranquero <lektu@terra.es>
819 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
821 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
825 * w32gui.h: Add definition of XColor.
829 * xfaces.c: Remove definition of XColor.
831 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
833 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
835 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
836 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
837 window if it is dedicated.
838 (Fshrink_window): Add preserve_before as was done for enlarge_window.
839 (Vspecial_display_function): Update docstring.
841 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
842 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
843 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
845 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
847 * casefiddle.c (casify_region): Don't treat a prefix char as part
848 of a word when at the beginning.
850 2002-10-17 Juanma Barranquero <lektu@terra.es>
852 * lread.c (syms_of_lread): Fix typos.
854 2002-10-17 Dave Love <fx@gnu.org>
856 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
858 2002-10-16 Richard M. Stallman <rms@gnu.org>
860 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
862 2002-10-14 Juanma Barranquero <lektu@terra.es>
864 * w16select.c (syms_of_win16select): Fix docstring for
865 `selection-coding-system'.
867 * w32select.c (syms_of_w32select): Likewise.
869 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
871 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
872 a backslash-quoted char.
873 (scan_lists, scan_sexps_forward): Pacify the compiler.
875 2002-10-13 Richard M. Stallman <rms@gnu.org>
877 * window.c (window_scroll): Set immediate_quit.
879 * print.c (print): When backquote form is the car of a list,
880 output in old style. Use old_backquote_output to output all
881 comma forms inside it in old style too.
883 * buffer.h (struct buffer): Move `undo_list' down below `name'.
885 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
887 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
890 * lread.c (Fload): Doc fix (load-suffixes).
892 2002-10-10 Steven Tamm <steventamm@mac.com>
894 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
895 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
896 Also switch the default to Qnil from Qt.
898 2002-10-08 Kenichi Handa <handa@m17n.org>
900 * coding.c (code_convert_region): When we need more GAP for
901 conversion, pay attention to the case that coding->produced is not
902 greater than coding->consumed.
904 2002-10-07 Richard M. Stallman <rms@gnu.org>
906 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
908 2002-10-06 Andrew Choi <akochoi@shaw.ca>
910 * macmenu.c (mac_menu_show): Add j to count menu items; match
911 menu_item_selection to it to find selected item.
913 2002-10-06 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
915 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
916 cases. The correct fix is to pass ReparentNotify to Xt.
917 The shell widget interprets ConfigureNotify differently depending
918 on if it has been reparented or not.
920 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
922 * editfns.c (Fformat_time_string): Doc fix.
924 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
926 * fns.c (Flength): Doc fix.
928 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
930 * keyboard.c (keyremap): New struct.
931 (read_key_sequence): Use it: globally replace keytran_foo with
932 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
933 keytran_next and fkey_next to just `next'.
935 2002-10-04 Steven Tamm <steventamm@mac.com>
937 * macterm.c (keycode_to_xkeysym_table): Change return to be
938 treated like an X keysym.
940 2002-10-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
942 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
943 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
944 This is to also handle x/y changes that occur because of a resize.
946 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
948 * frame.c (Vdelete_frame_functions): New variable.
949 (syms_of_frame): Initialize and defvar it.
950 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
951 it when frame's `tooltip' parameter is non-nil.
953 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
955 * w32fns.c (x_create_tip_frame): Likewise.
957 * macfns.c (x_create_tip_frame): Likewise.
959 2002-09-30 Kenichi Handa <handa@m17n.org>
961 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
962 -1 before calling ccl_driver.
964 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
965 Only when it is non-nil, handle composition sequence.
966 (setup_coding_system) <0>: Don't force composition handling.
968 * Makefile.in (lisp, shortlisp): Add utf-16.elc
970 2002-09-29 Richard M. Stallman <rms@gnu.org>
972 * search.c (Freplace_match): Adjust match data for the substitution
973 just made in the buffer.
975 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
976 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
978 2002-09-27 Richard M. Stallman <rms@gnu.org>
980 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
981 (read_char): Use them. Do all exits thru the end of the function.
983 2002-09-27 Kenichi Handa <handa@etl.go.jp>
985 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
988 2002-09-26 Richard M. Stallman <rms@gnu.org>
990 * regex.h (__restrict_arr): Don't define if already defined.
992 * coding.c (run_pre_post_conversion_on_str):
993 Save and restore Vdeactivate_mark.
995 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
997 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
999 2002-09-26 Kenichi Handa <handa@etl.go.jp>
1001 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
1002 nonzero, try face's family at first. Otherwise try FAMILY at first.
1003 (choose_face_font): If C is a single byte char or latin-1, call
1004 try_font_list with PREFER_FACE_FAMILY 1.
1006 2002-09-21 Richard M. Stallman <rms@gnu.org>
1008 * window.c (select_window_1): Don't select frame.
1009 Set frame's selected window only when frame itself is selected.
1010 (Fselect_window): Doc fix.
1012 2002-09-18 Kim F. Storm <storm@cua.dk>
1014 * process.c (make-network-process): Doc fix (there is no
1015 network-server-log-function hook).
1017 2002-09-18 Richard M. Stallman <rms@gnu.org>
1019 * print.c (print): Clear out the unused parts of Vprint_number_table.
1020 (syms_of_print): Doc fix for `print-number-table'.
1022 * unexelf.c (unexec): Undo previous change.
1024 2002-09-17 Andreas Schwab <schwab@suse.de>
1026 * m/alpha.h [LINUX]: Don't define DATA_START.
1028 2002-09-16 Dave Love <fx@gnu.org>
1030 * unexelf.c (unexec): Deal with .got, reinstating change from
1033 2002-09-13 Richard M. Stallman <rms@gnu.org>
1035 * s/sol2-6.h (UNEXEC): Comment out definition.
1037 * unexsol.c (unexec): Don't downcase first letter of error msg.
1039 * xfaces.c (Fcolor_supported_p): Just one arg is required.
1041 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
1043 * unexsol.c: Include buffer.h, charset.h, coding.h.
1045 2002-09-11 Richard M. Stallman <rms@gnu.org>
1047 * unexsol.c: Don't use report_file_error; do it by hand
1050 * process.c (wait_reading_process_input, both versions):
1051 Before calling turn_on_atimers, call stop_polling.
1053 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
1055 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
1056 we go to too_near_end, call clear_glyph_matrix.
1057 (redisplay_window): After make_cursor_line_fully_visible,
1058 call clear_glyph_matrix and bypass `goto done'.
1060 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
1061 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
1063 2002-09-10 Richard M. Stallman <rms@gnu.org>
1065 * fileio.c (Fdo_auto_save): Catch error making directory.
1066 Only call push_message if we need to.
1067 At the same time, make an unwind-protect to pop it.
1068 Rename local message_p to old_message_p.
1069 (do_auto_save_make_dir, do_auto_save_eh): New functions.
1070 (do_auto_save_unwind): Don't call pop_message.
1073 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
1075 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
1077 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
1079 2002-08-13 Richard M. Stallman <rms@gnu.org>
1081 * minibuf.c (Fminibufferp): New function.
1082 (syms_of_minibuf): Defsubr it.
1083 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
1085 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
1087 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
1089 2002-08-12 Richard M. Stallman <rms@gnu.org>
1091 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
1092 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
1093 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
1096 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
1098 2002-08-11 Andrew Choi <akochoi@shaw.ca>
1100 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
1101 (Vmac_pass_command_to_system): New variable.
1102 (Vmac_pass_control_to_system): New variable.
1103 (do_mouse_moved): Check wp with is_emacs_window.
1104 (XTread_socket): Check window_ptr with is_emacs_window.
1105 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
1106 events back to Mac Toolbox for processing, depending on values of
1107 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
1108 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
1109 Vmac_pass_control_to_system.
1111 2002-08-10 Kenichi Handa <handa@etl.go.jp>
1113 * coding.c (unencodable_char_position): New function.
1114 (Funencodable_char_position): New function.
1115 (syms_of_coding): Defsubr Funencodable_char_position.
1117 2002-08-10 Andrew Choi <akochoi@shaw.ca>
1119 * mac.c (sys_select) [MAC_OSX]: New function.
1121 * macterm.c (MakeMeTheFrontProcess): New function.
1122 (mac_initialize): Call MakeMeTheFrontProcess.
1124 * s/darwin.h: Define select to sys_select.
1126 2002-08-09 Richard M. Stallman <rms@gnu.org>
1128 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
1130 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
1132 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
1135 2002-08-08 Ken Raeburn <raeburn@mit.edu>
1137 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
1139 * puresize.h (BASE_PURESIZE): Increase to 910000.
1141 2002-08-08 Kenichi Handa <handa@etl.go.jp>
1143 * coding.c (Ffind_operation_coding_system): For write-region, if
1144 VISIT is a filename, make it the target.
1146 2002-08-07 Richard M. Stallman <rms@gnu.org>
1148 * alloc.c (mark_object): Detect long lists for debugging.
1149 (mark_object_loop_halt): New variable.
1151 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
1153 * data.c (Fmake_variable_frame_local): Doc fix.
1155 2002-08-01 David Ponce <david@dponce.com>
1157 * w32menu.c (local_heap, local_alloc, local_free): New macros.
1158 (malloc_widget_value, free_widget_value)
1159 (w32_free_submenu_strings): Use them.
1161 (push_submenu_start, push_submenu_end, push_left_right_boundary)
1162 (push_menu_pane, push_menu_item, single_keymap_panes)
1163 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
1164 (single_submenu, set_frame_menubar)
1165 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
1167 (Fx_popup_menu): Don't show pop up menu until preceding one is
1168 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
1170 * w32menu.c: Changes adapted from xmenu.c
1171 (set_frame_menubar): First parse all submenus,
1172 then make widget_value trees from them.
1173 Don't allocate any widget_value objects
1174 until we are done with the parsing.
1175 (parse_single_submenu): New function.
1176 (digest_single_submenu): New function.
1177 (single_submenu): Function deleted, replaced by those two.
1179 2002-08-04 Andrew Choi <akochoi@shaw.ca>
1181 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
1182 returns a valid window pointer before proceeding for keyDown and
1185 2002-08-03 Andrew Choi <akochoi@shaw.ca>
1187 * macterm.c (USE_CARBON_EVENTS): New macro.
1188 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
1189 (x_iconify_frame): Call CollapseWindow.
1190 (Vmac_reverse_ctrl_meta): New variable.
1191 (Vmac_wheel_button_is_mouse_2): New variable.
1192 (init_mac_drag_n_drop): New function.
1193 (mac_do_receive_drag): New function.
1194 (mac_handle_service_event): New function.
1195 (init_service_handler): New function.
1196 (mac_to_emacs_modifiers): New function.
1197 (mac_event_to_emacs_modifiers): New function.
1198 (mac_get_mouse_btn): New function.
1199 (mac_convert_event_ref): New function.
1200 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
1201 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
1203 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
1205 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
1206 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
1207 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
1208 TOOL_BAR_EVENT for MAC_OS as well.
1209 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
1211 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
1213 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
1215 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
1217 * xdisp.c (forward_to_next_line_start): Fix a condition that
1218 lead to a newline being skipped.
1220 2002-08-02 Andrew Choi <akochoi@shaw.ca>
1222 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
1224 2002-08-01 Richard M. Stallman <rms@gnu.org>
1226 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
1228 2002-07-31 Andrew Choi <akochoi@shaw.ca>
1230 * macfns.c: #undef init_process before #define-ing it.
1232 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
1233 HAVE_CARBON is defined.
1235 2002-07-31 Richard M. Stallman <rms@gnu.org>
1237 * xmenu.c (set_frame_menubar): First parse all submenus,
1238 then make widget_value trees from them.
1239 Don't allocate any widget_value objects
1240 until we are done with the parsing.
1241 (parse_single_submenu): New function.
1242 (digest_single_submenu): New function.
1243 (single_submenu): Function deleted, replaced by those two.
1245 2002-07-30 Juanma Barranquero <lektu@terra.es>
1247 * w32proc.c (syms_of_ntproc): Fix docstring of
1248 `w32-get-true-file-attributes'.
1250 2002-07-28 Richard M. Stallman <rms@gnu.org>
1252 * s/hpux8.h (HPUX8): Define this before including hpux.h.
1253 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
1255 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
1257 * keyboard.c (make_lispy_event):
1258 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
1259 Explicitly clear up_modifier in event->modifiers.
1261 2002-07-27 Richard M. Stallman <rms@gnu.org>
1263 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
1265 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
1268 2002-07-26 Kenichi Handa <handa@etl.go.jp>
1270 * coding.c (detect_coding_iso2022): While checking a byte sequence
1271 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
1272 it in the normal loop.
1274 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
1276 * xterm.c (expose_overlaps): New function.
1277 (expose_window): Use it to fix the display of overlapping rows.
1279 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
1281 2002-07-23 Ken Raeburn <raeburn@gnu.org>
1283 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
1284 since it only depends on XUINT.
1286 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
1287 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
1288 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
1291 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
1292 its value over other approaches.
1293 * sysdep.c (start_of_data): Don't define the function if a macro
1294 form has been defined.
1296 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
1298 * xdisp.c (redisplay_updating_p): New variable.
1299 (init_iterator): Don't free realized faces when
1300 redisplay_updating_p is set.
1301 (redisplay_internal): Set redisplay_updating_p while updating
1304 2002-07-23 Richard M. Stallman <rms@gnu.org>
1306 * editfns.c (Fmessage): Treat "" like nil.
1308 2002-07-23 Kenichi Handa <handa@etl.go.jp>
1310 * xdisp.c (face_before_or_after_it_pos):
1311 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
1313 2002-07-22 Juanma Barranquero <lektu@terra.es>
1315 * callproc.c (init_callproc) [DOS_NT]:
1316 Initialize Vshared_game_score_directory to nil.
1317 (syms_of_callproc) [DOS_NT]: Likewise.
1319 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
1321 * xdisp.c (display_line): Replace an abort with xassert.
1323 2002-07-21 Richard M. Stallman <rms@gnu.org>
1325 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
1326 and END_UNCHANGED when setting buffer_unchanged_p.
1327 Use current_matrix_up_to_date_p to decide whether to use
1328 try_cursor_movement.
1330 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
1332 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
1334 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
1335 Set to nil if dir does not exist.
1336 (syms_of_callproc): Init unconditionally and simply.
1338 * buffer.c (Fbuffer_list): Doc fix.
1340 2002-07-21 Ken Raeburn <raeburn@gnu.org>
1342 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
1344 * buffer.c (mmap_realloc): When shrinking, make sure number of
1345 pages to unmap is rounded towards zero.
1347 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
1350 * m/att3b.h (XINT): Don't define.
1351 (VALBITS, VALMASK, XTYPE): Deleted.
1352 (DATA_SEG_BITS): Define.
1353 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
1354 ARRAY_MARK_FLAG): Deleted.
1355 (DATA_SEG_BITS): Define.
1356 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
1357 (DATA_SEG_BITS): Define.
1359 2002-07-20 Richard M. Stallman <rms@gnu.org>
1361 * print.c (print_error_message): New args CONTEXT and CALLER.
1364 * lisp.h (print_error_message): Declare new args.
1366 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
1367 and CONTEXT to print_error_message, don't print them here.
1368 For a Quit, don't use Vsignaling_function.
1369 Call message_log_maybe_newline.
1371 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
1373 2002-07-20 Kim F. Storm <storm@cua.dk>
1375 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
1377 2002-07-19 Ken Raeburn <raeburn@gnu.org>
1379 * bytecode.c (struct byte_stack): Pointers into byte string now
1381 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
1383 * charset.h (BCOPY_SHORT): Source pointer now points to const.
1384 * coding.c (encode_eol, detect_coding, detect_eol):
1385 (decode_coding, encode_coding, detect_coding_system):
1386 Source strings now treated as const.
1387 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
1388 modify Lisp string contents.
1389 * coding.h (decode_coding, encode_coding, detect_coding,
1390 detect_eol): Declarations updated.
1391 * composite.c (compose_chars_in_text): Treat Lisp string contents
1393 * dispnew.c (safe_bcopy): Source pointer now points to const.
1394 * lisp.h (STRING_COPYIN): New macro.
1395 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
1396 (internal_with_output_to_temp_buffer): Declarations updated.
1397 * print.c (temp_output_buffer_setup):
1398 (internal_with_output_to_temp_buffer): Buffer name argument is now
1400 * sound.c (struct sound_device): Function pointer field "write"
1401 buffer argument now points to const.
1402 (vox_write): Buffer argument points to const.
1403 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
1405 * sysdep.c (emacs_write): Buffer pointer now const.
1406 * term.c (encode_terminal_code): Buffer pointer now const.
1407 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
1408 (x_face_list_fonts, x_update_menu_appearance):
1409 (hash_string_case_insensitive): Treat Lisp string contents as const.
1411 2002-07-19 Juanma Barranquero <lektu@terra.es>
1413 * fileio.c (Ffile_name_as_directory): Fix argument name in docstring.
1414 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
1416 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
1418 * fileio.c (syms_of_fileio): Likewise.
1420 2002-07-18 Richard M. Stallman <rms@gnu.org>
1422 * data.c (Fdefalias): Doc fix.
1424 2002-07-17 Dave Love <fx@gnu.org>
1426 * intervals.h (text_property_stickiness): Use P_.
1428 * ccl.c: Remove `emacs' conditionals.
1429 (ccl_backtrace_table): Fix size spec.
1430 (ccl_driver): Fix type errors.
1432 2002-07-16 Ken Raeburn <raeburn@gnu.org>
1434 * alloc.c (xstrdup, make_string, make_unibyte_string)
1435 (make_multibyte_string, build_string): String pointer args now
1437 * charset.c (find_charset_in_text, c_string_width):
1438 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
1439 * fileio.c (report_file_error):
1440 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
1441 (count_combining_before, count_combining_after, insert_1_both):
1442 (insert, insert_and_inherit, insert_string):
1443 (insert_before_markers, insert_before_markers_and_inherit):
1444 * lread.c (intern, oblookup, hash_string):
1445 * minibuf.c (temp_echo_area_glyphs):
1446 * search.c (fast_c_string_match_ignore_case):
1447 * sysdep.c (emacs_open, set_file_times):
1448 * xfaces.c (xstricmp):
1449 * xdisp.c (store_frame_title, string_char_and_length):
1450 (message_dolog, message2, message2_nolog, set_message): Likewise.
1451 (set_message_1): Cast message string argument to const pointer.
1452 * editfns.c (general_insert_function): Insertion function now
1453 takes pointer to const for input data.
1454 * charset.h (find_charset_in_text, c_string_width):
1455 (parse_str_as_multibyte): Declarations updated.
1456 * dispextern.h (xstricmp): Declaration updated.
1457 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
1458 (count_size_as_multibyte, count_combining_before):
1459 (count_combining_after, insert_1, insert_1_both, message_dolog):
1460 (insert, insert_and_inherit, insert_before_markers)
1461 (insert_before_markers_and_inherit, set_message, message2):
1462 (message2_dolog, build_string, make_string, make_unibyte_string):
1463 (make_multibyte_string, intern, oblookup, report_file_error):
1464 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
1465 (emacs_open, xstrdup): Declarations updated.
1466 * systime.h (set_file_times): Declaration updated.
1468 * charset.c (find_charset_in_text, lisp_string_width): Use const
1469 for pointer to lisp string data.
1470 * charset.h (FETCH_STRING_CHAR_ADVANCE):
1471 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
1472 * coding.c (Ffind_coding_systems_region_interval):
1473 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
1474 (Fmake_directory_internal, Fdelete_directory):
1475 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
1476 * fontset.c (font_family_registry, fs_query_fontset):
1478 * frame.c (Fframe_parameter):
1479 * keyboard.c (cmd_error_internal):
1480 * keymap.c (Fdescribe_buffer_bindings):
1481 * lread.c (complete_filename_p, openp):
1482 * minibuf.c (Fminibuffer_complete_word):
1483 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
1484 (face_before_or_after_it_pos, next_element_from_string):
1485 (get_overlay_arrow_glyph_row, display_mode_element):
1486 (decode_mode_spec_coding):
1487 * xterm.c (same_x_server): Likewise.
1489 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
1490 settings of non-existent fields.
1492 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
1495 * lread.c (Fintern_soft): Use string macros instead of
1497 * keyboard.c (echo_char, parse_modifiers_uncached):
1498 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
1499 * textprop.c (validate_interval_range, interval_of): Likewise.
1501 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
1503 * charset.h (FETCH_STRING_CHAR_ADVANCE)
1504 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
1505 XSTRING()->size_byte.
1507 * lisp.h (SDATA, SREF): Produce rvalue.
1509 * alloc.c (make_event_array): Use SSET for storing into a string.
1510 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
1512 * casefiddle.c (casify_object): Use SSET.
1513 * charset.h (FETCH_STRING_CHAR_ADVANCE)
1514 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
1515 address of string contents.
1516 * data.c (Faref): Use SDATA.
1517 (Faset): Use SDATA, SSET.
1518 * dired.c (directory_files_internal): Use SSET.
1519 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
1520 (Fread_file_name): Use SREF, SSET.
1521 * fns.c (concat): Use SSET.
1522 (concat, Fdelete): Use SDATA.
1523 * insdel.c (insert_from_string_1): Use SDATA.
1524 * keyboard.c (Fevent_convert_list): Use SREF.
1525 * lread.c (Fload): Use SDATA, SSET.
1526 * macfns.c (validate_x_resource_name): Use SSET.
1527 * process.c (status_message): Use SSET.
1528 * search.c (wordify): Use SDATA.
1529 (Freplace_match): Use SREF.
1530 * w32fns.c (validate_x_resource_name): Use SSET.
1531 * xfns.c (validate_x_resource_name): Use SSET.
1532 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
1534 2002-07-16 Richard M. Stallman <rms@gnu.org>
1536 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
1538 * xdisp.c (reconsider_clip_changes):
1539 Don't test prevent_redisplay_optimizations_p.
1540 (redisplay_internal): Test prevent_redisplay_optimizations_p
1541 along with clip_changed in some cases.
1542 (try_window_id): Likewise.
1543 (redisplay_window): New local var buffer_unchanged_p.
1545 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
1547 * process.c (create_process): Test USG_SUBTTY_WORKS.
1548 (process_send_signal): Clean up handling of GID.
1549 Detect errors in ioctls meant to set GID.
1551 * window.c (temp_output_buffer_show):
1552 Don't set prevent_redisplay_optimizations_p.
1554 2002-07-15 Juanma Barranquero <lektu@terra.es>
1556 * eval.c (Fdefvaralias): Add docstring argument.
1558 2002-07-15 Ken Raeburn <raeburn@gnu.org>
1560 * lisp.h (STRING_INTERVALS): Produce rvalue.
1561 (STRING_SET_INTERVALS): New macro.
1562 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
1563 * fns.c (Fstring_as_multibyte): Likewise.
1564 * intervals.c (balance_possible_root_interval, delete_interval)
1565 (create_root_interval, copy_intervals_to_string): Likewise.
1566 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
1569 2002-07-14 Ken Raeburn <raeburn@gnu.org>
1571 * lisp.h (STRING_SET_CHARS): New macro.
1572 (SCHARS, SBYTES): Produce rvalues.
1573 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
1574 * fns.c (concat): Likewise.
1575 * lread.c (read_vector): Likewise.
1577 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
1578 (STRING_SET_UNIBYTE): New macro.
1579 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
1580 length of -1) changed to use STRING_SET_UNIBYTE.
1581 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
1582 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
1583 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
1584 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
1585 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
1586 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
1587 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
1588 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
1589 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
1590 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
1591 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
1592 STRING_BYTES or indirection changed to SCHARS, SBYTES,
1593 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
1596 2002-07-13 Kim F. Storm <storm@cua.dk>
1598 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
1600 2002-07-12 Richard M. Stallman <rms@gnu.org>
1602 * fileio.c (Fwrite_region): Doc fix.
1604 * print.c (print_error_message): Don't handle Vsignaling_function here.
1606 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
1607 (command_loop_1): Avoid certain actions after memory-full error.
1609 * eval.c (Fsignal): Don't call cancel_hourglass.
1610 For a memory-full error, don't call Vsignal_hook_function
1611 and don't set Vsignaling_function.
1613 * process.c (process_send_signal): Add abort call.
1615 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
1617 * keymap.c (Fkey_binding): Fix typo.
1619 2002-07-11 Richard M. Stallman <rms@gnu.org>
1621 * alloc.c (Vmemory_full): New variable.
1622 (Vmemory_signal_data): Renamed from memory_signal_data.
1624 (syms_of_alloc): Defvar them.
1625 (memory_full, buffer_memory_full): Set Vmemory_full.
1627 * lisp.h (Vmemory_full): Add declaration.
1628 (current_column, indented_beyond_p): Change declaration.
1630 * indent.c (last_known_column): Declare as double, not float.
1631 (current_column, current_column_1, string_display_width)
1632 (position_indentation): Return `double'.
1633 (indented_beyond_p): Arg `column' is `double'. Callers changed.
1635 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
1636 (back_to_previous_visible_line_start)
1637 (reseat_at_next_visible_line_start, next_element_from_buffer):
1638 Use `double', not `float', when calling indented_beyond_p.
1640 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
1642 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
1644 2002-07-11 Juanma Barranquero <lektu@terra.es>
1646 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
1647 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
1648 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
1649 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
1650 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
1651 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
1653 2002-07-10 Juanma Barranquero <lektu@terra.es>
1655 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE. All callers
1658 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
1660 * data.c (Fdefalias): Add an optional `docstring' argument.
1661 (set_internal, Fsetq_default): Use XCAR/XCDR.
1663 * composite.c (HASH_VALUE, HASH_KEY):
1664 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
1666 2002-07-09 Kenichi Handa <handa@etl.go.jp>
1668 * callproc.c (Fcall_process): Fix previous change.
1670 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
1672 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
1673 Add support for hash-tables.
1674 (Ftry_completion): Return t even if the string appears multiple times.
1676 * fns.c (Fnconc): Use XCDR.
1677 (Fprovide): Use CONSP and XCDR.
1678 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
1679 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
1680 (Fmake_hash_table): Accept `:size nil'.
1681 (Fmakehash): Delete: moved to subr.el.
1682 (syms_of_fns): Don't defsubr makehash.
1684 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
1685 (HASH_TABLE_SIZE): Move from fns.c.
1687 2002-07-07 Richard M. Stallman <rms@gnu.org>
1689 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
1690 Instead just return 0 when there is something to be done.
1691 (try_scrolling): If make_cursor_line_fully_visible returns 0,
1692 retry scrolling as if cursor were off the bottom.
1693 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
1694 return CURSOR_MOVEMENT_MUST_SCROLL.
1695 (redisplay_window): If make_cursor_line_fully_visible returns 0,
1696 go to try_to_scroll.
1698 * buffer.c (Fbuffer_local_value): Store current value into its binding
1699 so we get the up-to-date value for the binding that is loaded.
1701 * eval.c (Fdefmacro): Doc fix.
1703 2002-07-05 Dave Love <fx@gnu.org>
1705 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
1708 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
1709 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
1710 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
1711 CCL_LookupCharConstTbl.
1712 (syms_of_ccl): Defvar translation-hash-table-vector.
1714 2002-07-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1716 * xdisp.c: Remove unused variable `face'.
1718 2002-07-04 Juanma Barranquero <lektu@terra.es>
1720 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
1721 obsolescence information.
1723 2002-07-03 Andrew Choi <akochoi@shaw.ca>
1725 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
1726 pattern. Search cache first.
1727 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
1729 (XLoadQueryFont): Use it.
1731 2002-07-02 Richard M. Stallman <rms@gnu.org>
1733 * keymap.c (Fdefine_key): Doc fix.
1735 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
1737 2002-07-02 Juanma Barranquero <lektu@terra.es>
1739 * keymap.c (syms_of_keymap): Fix typo.
1741 2002-07-01 Andrew Choi <akochoi@shaw.ca>
1743 * s/darwin.h: Define POSIX_SIGNALS.
1745 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
1746 and FSRefMakePath to convert FSSpec returned with Apple Event to
1748 (mac_initialize) [TARGET_API_MAC_CARBON]:
1749 Call init_required_apple_events and disable the `Quit' menu item
1750 provided automatically by the Carbon Toolbox.
1752 2002-07-01 Dave Love <fx@gnu.org>
1754 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
1757 * xterm.c: Fix prototype for K&R.
1759 * term.c (costs_set): Declare static, non-initialized for pcc.
1761 2002-07-01 Richard M. Stallman <rms@gnu.org>
1763 * keyboard.c (timer_last_idleness_start_time): New variable.
1764 (timer_start_idle): Set that.
1765 (read_key_sequence): Use that to reset timer_idleness_start_time
1768 * window.c (Frecenter): With arg, set optional_new_start.
1770 * xdisp.c (redisplay_internal): Make optional_new_start really work.
1772 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
1773 buffer for completion.
1775 2002-06-29 Ken Raeburn <raeburn@gnu.org>
1777 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
1779 2002-06-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1781 * keyboard.c (readable_filtered_events): New function that filters
1782 FOCUS_IN_EVENT depending on parameter.
1783 (readable_events): Calls readable_filtered_events, not filtering
1785 (get_filtered_input_pending): New function, filtering parameter passed
1786 to readable_filtered_events.
1787 (get_input_pending): Calls get_filtered_input_pending, not filtering
1789 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
1792 * xterm.h (struct x_output): Add focus_state.
1794 * xterm.c (x_focus_changed): New function.
1795 (x_detect_focus_change): New function.
1796 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
1797 EnterNotify and LeaveNotify to track X focus changes.
1799 2002-06-28 Andreas Schwab <schwab@suse.de>
1801 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
1803 2002-06-27 Kim F. Storm <storm@cua.dk>
1805 * xdisp.c: (mode_line_string_list, mode_line_string_face)
1806 (mode_line_string_face_prop): New variables.
1807 (store_mode_line_string): New function.
1808 (display_mode_element): Use store_mode_line_string to
1809 add mode-line string elements to mode_line_string_list
1810 when mode_line_string_list is non-nil.
1811 (Fformat_mode_line): Now returns propertized string by
1812 default. New arg NO-PROPS to ignore properties.
1813 (decode_mode_spec): Only add two dashes for %- in propertized
1815 (syms_of_xdisp): Init and staticpro mode_line_string_list.
1817 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
1819 * minibuf.c (minibuffer_completion_contents): Add return type.
1821 2002-06-27 Juanma Barranquero <lektu@terra.es>
1823 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
1825 2002-06-26 Juanma Barranquero <lektu@terra.es>
1827 * fileio.c (read_file_name_cleanup): Add missing return.
1829 2002-06-26 Richard M. Stallman <rms@gnu.org>
1831 * window.c (Frecenter): Don't set force_start flag.
1833 * minibuf.c (do_completion, Fminibuffer_complete_word)
1834 (Fminibuffer_completion_help): Complete just the text before point.
1835 (minibuffer_completion_contents): New function.
1837 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
1839 * frame.c (frames_bury_buffer): Function deleted.
1841 2002-06-25 Miles Bader <miles@gnu.org>
1843 * callint.c (Fcall_interactively): When checking to see if doprnt hit
1844 the end of callint_message, allow for a terminating '\0'.
1846 2002-06-24 Juanma Barranquero <lektu@terra.es>
1848 * w32select.c: Include composite.h
1850 * w16select.c: Likewise.
1852 2002-06-24 Kenichi Handa <handa@etl.go.jp>
1854 * callproc.c (Fcall_process): If code detection is necessary,
1855 call detect_coding directly here.
1857 * coding.c (detect_eol): Preserve coding->cmp_data.
1859 * w16select.c (Fw16_get_clipboard_data):
1860 * w32fns.c (w32_to_x_font):
1861 * w32select.c (Fw32_get_clipboard_data):
1862 * xselect.c (selection_data_to_lisp_data):
1863 * xterm.c (XTread_socket): Disable composition handling.
1865 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
1867 * print.c (temp_output_buffer_setup): Kill all local variables.
1869 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
1871 * lread.c (Fread): Remove redundant and imprecise declaration.
1873 * xfns.c (check_x_display_info): Use check_x_frame.
1875 * .gdbinit (xprintsym): Use the new `xname' field.
1878 2002-06-22 Jason Rumney <jasonr@gnu.org>
1880 * w32fns.c (file_dialog_callback): New function.
1881 (Fx_file_dialog): Allow selecting directories as well as files.
1883 2002-06-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1885 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
1886 OpenBSD. Add support for mipseb-*-netbsd* machines.
1888 2002-06-17 Andrew Choi <akochoi@shaw.ca>
1890 * macterm.c (mac_scroll_area): Set foreground and backcolor to
1891 black and white before scrolling. Restore frame background and
1892 foreground color after scrolling.
1893 (do_window_update): Call XClearWindow before calling expose_frame.
1894 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
1895 FRAME_FOREGROUND_PIXEL of frame.
1897 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
1898 test Mac command key as <ALT> key.
1900 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
1902 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
1904 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
1905 Lookup keys in function-key-map immediately so that key-translation-map
1906 can be applied earlier.
1907 Remove function_key_possible and key_translation_possible, replaced
1908 by checking `keytran_start < t'.
1910 * .gdbinit (xsymbol): Use the new `xname' field.
1912 2002-06-17 Andrew Choi <akochoi@shaw.ca>
1914 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
1915 test Mac command key as <ALT> key.
1917 * mac.c (do_applescript): Call initialize_applescript if necessary
1918 when first called. Dispose of result_desc only when there is no error.
1919 (Fdo_applescript): Use %d format specifier instead of %ld.
1921 2002-06-16 Andrew Choi <akochoi@shaw.ca>
1923 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
1924 of FrontWindow for cases keyDown and autoKey.
1926 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
1927 Vdefault_fontset to Monaco with mac-roman coding.
1929 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
1930 init_process before and after inclusion of Carbon/Carbon.h, resp.
1932 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
1934 (add_font_name_table_entry): New function.
1935 (init_font_name_table): Use add_font_name_table_entry; add italic,
1936 bold, and bold-italic entries for truetype fonts.
1938 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
1940 (try_font_list) [MAC_OS]: If no font matches given registry, try
1941 fonts with any registry matching face_family.
1942 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
1944 * s/darwin.h: If autoconf detects the Ncurses library, define
1945 LIBS_TERMCAP to -lncurses to use it.
1947 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
1949 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
1951 2002-06-15 Richard M. Stallman <rms@gnu.org>
1953 * window.c (Fset_window_configuration): Explicitly preserve
1954 the point value that new_current_buffer had at the start.
1956 2002-06-14 Juanma Barranquero <lektu@terra.es>
1958 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
1961 2002-06-14 Kim F. Storm <storm@cua.dk>
1963 * insdel.c (insert_1_both, insert_from_string_1)
1964 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
1965 insert happened in the end_unchanged region. Otherwise, the
1966 redisplay may be confused and duplicate the last line in the
1967 buffer [seen after save-buffer when require-final-newline==t].
1969 2002-06-13 Jason Rumney <jasonr@gnu.org>
1971 * w32.c (init_environment): Remove EMACSLOCKDIR.
1972 (stat): Swap _S_IFDIR and _S_IFREG.
1974 2002-06-13 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1976 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
1977 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
1978 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
1979 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
1980 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
1981 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
1982 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
1983 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
1984 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
1985 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
1986 SELECTION_REQUEST_EVENT, selection_clear_event to
1987 SELECTION_CLEAR_EVENT, buffer_sw
1989 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
1991 * region-cache.c (new_region_cache): Use BEG.
1993 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
1994 Use BEG and BEG_BYTE.
1996 * doc.c (get_doc_string): Return nil if the location is wrong.
1997 (reread_doc_file): New fun.
1998 (Fdocumentation, Fdocumentation_property):
1999 Call it if get_doc_string fails.
2000 (Fsnarf_documentation): Make it work for a dumped Emacs.
2002 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
2003 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
2005 * charset.c (Fstring): Allow 0 arguments.
2007 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
2009 * process.c (DATAGRAM_CONN_P, list_processes_1)
2010 (Fprocess_datagram_address, Fset_process_datagram_address)
2011 (Fset_network_process_options, server_accept_connection):
2012 Fix some int/Lisp_Object confusions (thank you union types).
2014 2002-04-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2016 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
2018 * w32term.c: Likewise.
2019 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
2021 * keyboard.c (Qselect_window): New symbol.
2022 (head_table): Use it.
2023 (keys_of_keyboard): Bound select-window event to handle-select-window.
2024 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
2026 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
2027 (last_window): New variable.
2028 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
2029 (note_mouse_movement): Remove reimplemented code in #if 0.
2030 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
2033 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
2035 2002-03-31 Gerd Moellmann <gerd@gnu.org>
2037 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
2040 2002-03-30 Richard M. Stallman <rms@gnu.org>
2042 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
2043 loop whenever it stops making progress.
2045 * widget.c (set_frame_size): Don't call change_frame_size.
2047 2002-03-30 Gerd Moellmann <gerd@gnu.org>
2049 * dispnew.c (direct_output_for_insert):
2050 Call mark_window_display_accurate.
2052 2002-03-29 Jason Rumney <jasonr@gnu.org>
2054 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
2056 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
2058 * Makefile.in (lread.o): Depend on coding.h.
2060 * lread.c (openp, Fload): Encode the file name before passing it
2061 to `stat', `access', and `emacs_open'.
2062 (openp): GCPRO the encoded file name. Don't recompute Lisp
2063 strings unnecessarily.
2065 2002-03-29 Kim F. Storm <storm@cua.dk>
2067 * fns.c (Flax_plist_put): Doc fix.
2069 2002-03-28 Miles Bader <miles@gnu.org>
2071 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
2073 2002-03-27 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2075 * process.c (set-network-process-options): Add usage.
2076 (make-network-process): Doc fix.
2078 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
2080 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
2082 2002-03-26 Richard M. Stallman <rms@gnu.org>
2084 * fns.c (Fsubstring_no_properties): New function.
2085 (Flax_plist_get, Flax_plist_put): New functions.
2086 (syms_of_fns): defsubr them.
2088 * xdisp.c (update_menu_bar): Test only update_mode_lines;
2089 don't test or alter w->update_mode_line.
2091 * window.c (Fdisplay_buffer): Doc fix.
2093 2002-03-24 Richard M. Stallman <rms@gnu.org>
2095 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
2097 2002-03-24 Gerd Moellmann <gerd@gnu.org>
2099 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
2100 (Fdefmacro): Handle `(declare ...)'.
2101 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
2102 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
2104 2002-03-24 Jason Rumney <jasonr@gnu.org>
2106 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
2107 (xbm_file_p): Add prototypes.
2108 (xbm_format, xbm_image_p): Sync with xfns.c.
2109 (reflect_byte): New function.
2110 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
2111 (xbm_load_image): Create bitmaps with a depth of 1.
2112 (init_xfns): Enable XBM images.
2114 2002-03-23 Jason Rumney <jasonr@gnu.org>
2116 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
2117 correctly. Do not pass up_modifier to keyboard buffer.
2119 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
2121 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
2123 * Makefile.in (bootstrapclean): New target.
2124 (bootstrap-temacs, bootstrap-doc): Remove.
2125 (bootstrap-emacs): Use a bog-standard `temacs'.
2126 Don't bother to build a DOC file.
2128 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
2130 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
2131 in temacs even if !CANNOT_DUMP.
2132 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
2134 * alloc.c (check_pure_size): Only output a warning.
2136 2002-03-22 Jason Rumney <jasonr@gnu.org>
2138 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
2141 * w32term.c (zv_bits): Declare as short, for word alignment.
2142 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
2143 (syms_of_w32term): Define x-use-underline-position-properties.
2145 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
2146 (clear_image_cache): Block input, fix logic, clear matrices in
2147 all frames that share this cache.
2149 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
2151 * emacs.c (main): Update the Copyright year in the blurb printed
2152 by "emacs --version".
2154 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
2156 * xterm.c (XTread_socket): If XK_ISO_Lock and
2157 XK_ISO_Last_Group_Lock are defined, handle keysyms between
2158 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
2160 2002-03-21 Kim F. Storm <storm@cua.dk>
2162 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
2163 menu-bar bindings in keymap and local-map properties _are_ used.
2164 But try keymap property first in accordance with 2002-01-03 patch.
2165 Added comment describing why this is not always reliable.
2166 (tool_bar_items): Ditto for tool-bar.
2168 2002-03-21 Jason Rumney <jasonr@gnu.org>
2170 * w32fns.c (x_clear_image_1): Disable color table code.
2172 2002-03-21 Kim F. Storm <storm@cua.dk>
2174 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
2175 removed the wrong version of the DEFUN macro; fixed it.
2177 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
2178 Fmember rather than Fmemq).
2179 (Fprovide): Check that subfeatures is a list.
2181 * process.c (QCfeature, QCdatagram): Removed variables.
2182 (QCtype, Qdatagram): New variables.
2183 (network_process_featurep): Removed function.
2184 (Fmake_network_process): Removed :feature check.
2185 Use :type 'datagram instead of :datagram t to create a datagram
2186 socket. This allows us to add other connection types (e.g. raw
2187 sockets) later in a consistent manner.
2188 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
2189 supported subfeatures for feature make-network-process.
2190 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
2191 Intern and staticpro QCtype and Qdatagram.
2192 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
2194 * xfns.c: (QCtype): Remove duplicate declaration and
2195 initialization (is now declared in process.c).
2197 * w32fns.c: (QCtype): Remove duplicate declaration and
2198 initialization (is now declared in process.c).
2200 2002-03-21 Richard M. Stallman <rms@gnu.org>
2202 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
2203 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
2204 when jumping to `fail' to avoid undoing reg changes in the
2205 last iteration of the loop.
2206 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
2208 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
2209 Depend on process.h.
2211 2002-03-20 Jason Rumney <jasonr@gnu.org>
2213 Most of the following changes are still conditional on HAVE_IMAGES
2214 which is not set by default on Windows.
2216 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
2218 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
2219 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
2220 (four_corners_best, x_clear_image_1, x_clear_image)
2221 (x_alloc_image_color, postprocess_image)
2222 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
2223 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
2224 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
2226 * w32gui.h (struct XImage): Define.
2228 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
2229 extract mouse co-ordinates.
2231 2002-03-20 Jason Rumney <jasonr@gnu.org>
2233 * w32.c (init_winsock): Dynamically load new server and UDP
2235 (socket_to_fd): New function.
2236 (sys_socket): Use it.
2237 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
2238 (sys_recvfrom, sys_sendto): New wrapper functions.
2240 * process.c (QCfamily, QCfilter): Remove duplicate declaration
2243 * makefile.w32-in (LIBS): Remove $(WSOCK32).
2245 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
2247 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
2248 Don't use "sun" as a variable, it's a predefined constant on Sun
2251 2002-03-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2253 * bytecode.c (Fbyte_code): Revert last change.
2255 2002-03-19 Kim F. Storm <storm@cua.dk>
2257 * makefile.w32-in (LIBS): Add $(WSOCK32).
2258 From David Ponce <dponce@voila.fr>.
2260 2002-03-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2262 * process.c (wait_reading_process_input): Move variables `pname'
2263 and `pnamelen' down where they are used.
2265 * bytecode.c (Fbyte_code): Discard unused computed value to
2266 prevent gcc warning.
2268 * lisp.h (Fplist_member): Add prototype.
2270 2002-03-18 Kim F. Storm <storm@cua.dk>
2272 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
2273 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
2275 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
2276 Remove explicit GNU_LINUX settings for datagram support.
2278 2002-03-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2280 * process.c (Fmake_network_process): Remove unused variable `sa'.
2281 Doc fix. Add usage:.
2282 (set_socket_options): Remove unused variables `optnum' and `opttype'.
2284 2002-03-17 Richard M. Stallman <rms@gnu.org>
2286 * xdisp.c (cursor_type_changed): New variable.
2287 (redisplay_internal): Redisplay all windows if cursor_type_changed.
2288 Clear it when clearing windows_or_buffers_changed.
2289 (try_cursor_movement, redisplay_window, try_window_id)
2290 (try_window_reusing_current_matrix): Test cursor_type_changed
2291 along with windows_or_buffers_changed.
2293 * window.h (cursor_type_changed): New variable.
2295 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
2296 not update_mode_lines, and always set it to 1.
2298 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
2299 if no frames needed redrawing.
2301 2002-03-17 Kim F. Storm <storm@cua.dk>
2303 The following changes add support for network server processes,
2304 datagram connections, and local (unix) sockets.
2306 * process.h (struct Lisp_Process): New member log.
2307 Doc fix: Member command used to indicate stopped network process.
2308 Doc fix: Member childp contains plist for network process.
2309 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
2311 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
2312 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
2313 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
2315 (NETCONN1_P): New macro.
2316 (DATAGRAM_SOCKETS): New conditional symbol.
2317 (datagram_address): New array.
2318 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
2319 (status_message): Use concat3.
2320 (Fprocess_status): Add `listen' status to doc string. Return `stop'
2321 for a stopped network process.
2322 (Fset_process_buffer): Update contact plist for network process.
2323 (Fset_process_filter): Ditto. Don't enable input for stopped
2324 network processes. Server must listen, even if filter is t.
2325 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
2327 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
2328 (Fprocess_contact): Added KEY argument. Handle datagrams.
2329 (list_processes_1): Optionally show only processes with the query
2330 on exit flag set. Dynamically adjust column widths. Omit tty
2331 column if not needed. Report stopped network processes.
2332 Identify server and datagram network processes.
2333 (Flist_processes): New optional arg `query-only'.
2334 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
2335 (conv_lisp_to_sockaddr, set_socket_options)
2336 (network_process_featurep, unwind_request_sigio): New helper functions.
2337 (Fprocess_datagram_address, Fset_process_datagram_address):
2338 (Fset_network_process_options): New lisp functions.
2339 (Fopen_network_stream): Removed. Now defined in simple.el.
2340 (Fmake_network_process): New lisp function. Code is based on previous
2341 Fopen_network_stream, but heavily reworked with new property list based
2342 argument list, support for datagrams, server processes, and local
2343 sockets in addition to old client-only functionality.
2344 (server_accept_connection): New function.
2345 (wait_reading_process_input): Use it to handle incoming connects.
2346 Do not enable input on a new connection if process is stopped.
2347 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
2348 (send_process): Handle datagram sockets.
2349 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
2350 network process is indicated by setting command field to t .
2351 (Fprocess_send_eof): No-op if datagram connection.
2352 (Fstatus_notify): Don't read input for a stream server socket or a
2353 stopped network process.
2354 (init_process): Initialize datagram_address array.
2355 (syms_of_process): Intern and staticpro new variables, defsubr new
2358 2002-03-16 Jason Rumney <jasonr@gnu.org>
2360 * w32fns.c (w32_to_all_x_charsets): Return correct type in
2363 2002-03-16 Richard M. Stallman <rms@gnu.org>
2365 * xdisp.c (redisplay_internal, redisplay_windows):
2366 Use list_of_error to call internal_condition_case_1.
2367 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
2368 so as to catch all errors with no possibility of debugger redisplay.
2369 (list_of_error): New variable.
2370 (syms_of_xdisp): Init and staticpro it.
2372 * print.c (print_object): Delete `\ ' from printed rep of frame.
2374 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
2376 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
2377 until its implementation is fixed.
2379 2002-03-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2381 * xfns.c (png_load): Remove unused variable `gamma_str'.
2383 2002-03-14 Richard M. Stallman <rms@gnu.org>
2385 * xfns.c (x_real_positions): Handle failure in XQueryTree.
2387 2002-03-14 Miles Bader <miles@gnu.org>
2389 * intervals.c (adjust_for_invis_intang): New function.
2390 (set_point_both): Use `adjust_for_invis_intang' to do most of the
2391 work for dealing with invisible+intangible regions. Do so before
2392 and after both forward and backward movements, to handle both
2393 front-sticky and rear-sticky cases.
2394 * textprop.c (text_property_stickiness): Function moved here from
2396 * intervals.h (text_property_stickiness): New declaration.
2397 * editfns.c (char_property_eq): Function removed.
2398 (text_property_stickiness): Function moved to `textprop.c'.
2400 2002-03-13 Jason Rumney <jasonr@gnu.org>
2402 * config.in: Add STRFTIME_NO_POSIX2.
2404 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
2405 and %OX when underlying strftime does not.
2407 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
2409 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
2410 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
2411 line) to avoid annoying flicker.
2412 (xm_scroll_callback): Get rid of the now unnecessary kludge.
2413 (XTread_socket): Mark it static.
2415 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
2417 2002-03-13 Kim F. Storm <storm@cua.dk>
2419 * puresize.h (BASE_PURESIZE): Increase to 775000.
2421 2002-03-12 Juanma Barranquero <lektu@terra.es>
2423 * editfns.c (syms_of_editfns): Fix typo.
2425 2002-03-12 Gerd Moellmann <gerd@gnu.org>
2427 * xsmfns.c: Include stdio.h because termhooks.h needs it.
2428 Include termopt.h for interrupt_input.
2430 2002-03-11 Andreas Schwab <schwab@suse.de>
2432 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
2434 2002-03-11 Gerd Moellmann <gerd@gnu.org>
2436 * xterm.c (note_mouse_movement): Put code for
2437 x_autoselect_window_p in #if 0.
2439 * lread.c (Fload): Don't assume that message_with_string uses the
2440 string it is given like a C string.
2442 2002-03-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2444 * xterm.h (x_session_check_input, x_sess
2446 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
2448 (syms_of_xdisp): DEVFAR them.
2449 (hscroll_window_tree): Use automatic_hscroll_margin and
2450 Vautomatic_hscroll_step to compute the amount of window scrolling.
2452 2002-02-16 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2454 * xterm.c (x-autoselect-window): New variable.
2455 (note_mouse_movement): Use it.
2457 * keyboard.c: Do not include "systime.h" twice.
2459 2002-02-15 Andreas Schwab <schwab@suse.de>
2461 * puresize.h (BASE_PURESIZE): Increase to 9/5.
2463 * alloc.c (NSTATICS): Increase to 1280.
2465 2002-02-15 Kai Gro
\e,A_
\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
2467 * alloc.c (NSTATICS): Bump to 1026.
2469 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
2470 (Vx_super_keysym): New variables.
2471 (syms_of_xterm): DEFVAR_LISP them.
2472 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
2473 variables to determine which keys to use for the various modifiers.
2475 2002-02-13 Kim F. Storm <storm@cua.dk>
2477 * window.c: (Vmode_line_in_non_selected_windows): Removed.
2478 (mode_line_in_non_selected_windows): New variable.
2479 (syms_of_window): DEFVAR_BOOL it.
2481 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
2482 Use mode_line_in_non_selected_windows.
2483 (mode_line_in_non_selected_windows): Declare extern.
2484 (Vmode_line_in_non_selected_windows): Removed extern.
2486 2002-02-13 Richard M. Stallman <rms@gnu.org>
2488 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
2489 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
2490 (Fclear_this_command_keys): Doc fixes.
2492 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
2493 (update_face_from_frame_parameter): Increment face_change_count
2494 and windows_or_buffers_changed to force redisplay using changed faces.
2496 * xdisp.c (QCpropertize): New variable.
2497 (mode_line_proptrans_alist): New variable.
2498 (display_mode_element): New arg PROPS; all calls changed.
2499 Implement this, for strings.
2500 Handle literal output of strings by sharing the
2501 main-line code for strings, using local var `literal'.
2502 Handle :propertize feature.
2503 (syms_of_xdisp): Initialze and staticpro QCpropertize and
2504 mode_line_proptrans_alist.
2506 2002-02-11 Kim F. Storm <storm@cua.dk>
2508 * window.c: (Vmode_line_in_non_selected_windows): New variable.
2509 (syms_of_window): DEFVAR_LISP it.
2511 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
2512 (CURRENT_MODE_LINE_FACE_ID): Use it.
2513 (Vmode_line_in_non_selected_windows): Declare extern.
2515 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
2516 to get mode line face.
2518 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
2520 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
2521 variables; cus-start.el doesn't need them anymore.
2523 2002-02-09 Kim F. Storm <storm@cua.dk>
2525 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
2526 reduction. This fixes a display problem where stray newlines were
2527 inserted in the window (corrected by C-l). Clarified code (IMHO).
2529 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
2531 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
2533 * xdisp.c (display_mode_lines): Fix last change.
2535 2002-02-09 Jason Rumney <jasonr@gnu.org>
2537 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
2539 (w32_load_system_font): Prevent Cleartype fonts from loading.
2540 (Fx_show_tip): Ensure tip frames are above other topmost windows.
2542 2002-02-09 Kim F. Storm <storm@cua.dk>
2544 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
2545 (CURRENT_MODE_LINE_HEIGHT): Use it.
2546 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
2548 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
2549 (pos_visible_p, handle_face_prop): Likewise.
2550 (display_mode_lines): Likewise, but for the real selected window.
2551 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
2553 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
2554 in non-selected windows.
2555 (realize_basic_faces): Realize it.
2556 (syms_of_term): Intern and staticpro it.
2558 2002-02-08 Kim F. Storm <storm@cua.dk>
2560 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
2561 Changed mail addresses to emacs-devel@gnu.org.
2563 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
2565 * fileio.c (Fsubstitute_in_file_name): If the file name includes
2566 ~user, and there's no such user, don't discard everything before ~user.
2568 * floatfns.c (Fround): Doc fix.
2570 2002-02-08 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2572 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
2574 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
2576 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
2578 2002-02-07 Kim F. Storm <storm@cua.dk>
2580 * keymap.c (where_is_internal): Only check whether definition is
2581 remapped if it fulfills is_command_symbol.
2583 2002-02-07 Andreas Schwab <schwab@suse.de>
2585 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
2587 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
2589 2002-02-06 Kim F. Storm <storm@cua.dk>
2591 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
2592 defining command remapping. Doc updated.
2593 (Flookup_key): Remap command through keymap if KEY is a symbol.
2594 (is_command_symbol): New function.
2595 (Fkey_binding): Use it. New optional argument NO-REMAP.
2596 Doc updated. Callers changed. Perform command remapping via
2597 recursive call unless that arg is non-nil.
2598 (where_is_internal): New argument no_remap. Callers changed.
2599 Call recursively to find original key bindings for a remapped
2600 comand unless that arg is non-nil.
2601 (Fwhere_is_internal): New optional argument NO-REMAP.
2602 Doc updated. Callers changed. Pass arg to where_is_internal.
2604 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
2605 (is_command_symbol): Added prototype.
2607 * keyboard.c (Vthis_original_command): New variable.
2608 (syms_of_keyboard): DEFVAR_LISP it.
2609 (command_loop_1): Set it, and perform command remapping.
2611 2002-02-06 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2613 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2615 2002-02-06 Jason Rumney <jasonr@gnu.org>
2617 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
2619 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
2621 * charset.c (get_charset_id): Use if-else instead of ?:.
2623 2002-02-06 Richard M. Stallman <rms@gnu.org>
2625 * filelock.c (S_ISLNK): Define if not defined.
2627 2002-02-03 Richard M. Stallman <rms@gnu.org>
2629 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
2631 * lread.c (read1): Redesign strategy for force_multibyte and
2632 force_singlebyte. Now is_multibyte records whether read_buffer
2633 is multibyte. Encountering any multibyte character makes it so.
2635 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
2637 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
2638 with the same sequence, map that sequence to f10 rather than f0.
2640 2002-02-03 Andreas Schwab <schwab@suse.de>
2642 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
2643 latter never being defined on GNU/Linux.
2645 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
2647 * xfaces.c (realize_default_face): Don't set the weight and slant of
2648 the default face to Qnormal, unless these attributes are unspecified.
2650 2002-02-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2652 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
2653 Call cancel_hourglass unconditionally.
2655 * eval.c (Fsignal): Remove duplicated declaration of
2656 the variable `display_hourglass_p'.
2658 2002-01-31 Richard M. Stallman <rms@gnu.org>
2660 * editfns.c (region_limit): Nicer error message.
2662 * coding.c (decode_composition_emacs_mule):
2663 Give up if NCOMPONENT gets too large to index `component'.
2665 * callint.c (check_mark): New arg to specify clearer error message.
2668 2002-01-27 Richard M. Stallman <rms@gnu.org>
2670 * minibuf.c (Fcompleting_read): Doc fix.
2672 2002-01-27 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2674 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
2675 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
2678 2002-01-26 Richard M. Stallman <rms@gnu.org>
2680 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
2682 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
2683 and scroll_up_aggressively.
2685 2002-01-26 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2687 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
2689 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
2691 * textprop.c (Fnext_property_change, Fnext_single_property_change)
2692 (Fprevious_property_change, Fprevious_single_property_change):
2693 Stay within the narrowed-buffer boundaries.
2695 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
2697 * term.c (Ftty_display_color_cells): New function.
2698 (syms_of_term): Defsubr it.
2699 (Ftty_display_color_cells, Ftty_display_color_p): Change the
2700 argument name to DISPLAY. Doc fix.
2702 * dispextern.h: Add prototype for set_tty_color_mode and
2705 2002-01-24 Jason Rumney <jasonr@gnu.org>
2707 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
2708 If region left to draw is not what was expected, mark the frame as
2711 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
2712 Combine the regions returned by BeginPaint and GetUpdateRect.
2714 2002-01-23 Jason Rumney <jasonr@gnu.org>
2716 * w32term.c (x_update_window_begin): Only hide caret if
2717 w32_use_visible_system_caret is set.
2718 (x_update_window_end): Only show caret if
2719 w32_use_visible_system_caret is set.
2720 (syms_of_w32term): Handle SystemParametersInfo call failing.
2722 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
2724 2002-01-22 Richard M. Stallman <rms@gnu.org>
2726 * unexelf.c (unexec): Define n so as to cause compilation error
2727 for the code where people have often written n instead of nn.
2729 * .gdbinit (hookpost-run): Defined.
2731 2002-01-22 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2733 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
2735 2002-01-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2737 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
2738 if fullscreen is being set.
2740 2002-01-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2742 * minibuf.c (Fminibuffer_contents)
2743 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
2744 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
2746 2002-01-21 Richard M. Stallman <rms@gnu.org>
2748 * window.c (check_frame_size): Fix minimum height calculation.
2750 2002-01-20 Ken Raeburn <raeburn@gnu.org>
2752 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
2753 height before comparison.
2754 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
2756 2002-01-20 Jason Rumney <jasonr@gnu.org>
2758 * w32term.c (w32_system_caret_width): Remove.
2759 (w32_use_visible_system_caret): New user flag.
2760 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
2761 Windows reports a screen reader running.
2762 (x_update_window_begin): Hide the system caret.
2763 (x_update_window_end): Show the system caret.
2764 (x_display_and_set_cursor): Don't draw a cursor when
2765 w32_use_visible_system_caret is set. Do not adjust width.
2767 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
2768 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
2769 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
2770 the user requests it. Use system default width when creating.
2771 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
2773 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
2774 New window messages.
2776 2002-01-20 Richard M. Stallman <rms@gnu.org>
2778 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
2780 2002-01-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2782 * doprnt.c (doprnt1): Fix typos in error call.
2784 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
2786 * unexelf.c (unexec) [__sgi]: Support the .got sections.
2788 2002-01-20 Jason Rumney <jasonr@gnu.org>
2790 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
2791 that Windows returns. If a double check fails, try to guess how
2792 ExtTextOut is going to act.
2794 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
2795 in place of stricmp.
2796 (w32_list_synthesized_fonts): Removed.
2797 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
2798 (struct enumfont_t): New element; list.
2799 (enum_font_cb2): List all style and charset variations of a font.
2800 (Fw32_select_font): New optional argument; include_proportional.
2801 Exclude vertical fonts. Exclude proportional fonts unless
2802 include_proportional is non-nil.
2803 (w32_enable_synthesized_fonts): Change to a boolean.
2804 (Fw32_send_sys_command): Doc fix.
2806 2002-01-19 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2808 * dispnew.c (update_frame): Move the variable `tem' to the block
2811 2002-01-19 Jason Rumney <jasonr@gnu.org>
2813 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
2814 call to face-set-after-frame-default.
2816 2002-01-18 Richard M. Stallman <rms@gnu.org>
2818 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
2819 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
2821 2002-01-17 Richard M. Stallman <rms@gnu.org>
2823 * window.c (enlarge_window): When exceeding size of parent,
2824 directly delete all the siblings instead of trying to resize it.
2826 2002-01-17 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2828 * term.c (set_tty_color_mode): Remove unused variable `tem'.
2830 2002-01-16 Henrik Enberg <henrik@enberg.org>
2832 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
2834 2002-01-16 Kim F. Storm <storm@cua.dk>
2836 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
2837 is invisible. This can happen if cursor is on top line of a
2838 window, and we switch to a buffer with a header line.
2840 * w32term.c (x_erase_phys_cursor): Ditto.
2842 2002-01-16 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2844 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
2845 `dont_resize' only when used.
2847 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
2849 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
2851 * xdisp.c (display_mode_element): When computing charpos, depend
2852 on multibyteness of elt, not the text in field.
2854 2002-01-15 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2856 * buffer.c (Fkill_all_local_variables):
2857 Increment `update_mode_lines' only once.
2859 2002-01-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2861 * lisp.h (adjust_after_replace_noundo)
2862 (Fupdate_coding_systems_internal): Add prototypes.
2864 * sound.c (Fplay_sound): Initialize header_size also for :data case.
2866 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
2868 Support for the --color command-line argument and tty-color-mode
2871 * term.c (tty_default_color_capabilities, tty_setup_colors)
2872 (set_tty_color_mode): New functions.
2873 (term_init): Call tty_default_color_capabilities.
2874 (Qtty_color_mode_alist): New variable.
2875 (syms_of_term): Intern and staticpro it.
2877 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
2879 (do_switch_frame): For termcap frames, switch the tty
2880 color mode as specified by the frame's parameters.
2881 (Qtty_color_mode): New variable.
2882 (syms_of_frame): Intern and staticpro it.
2884 * emacs.c (USAGE2): Add the --color option.
2885 (standard_args): Ditto.
2887 2002-01-13 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2889 * xterm.h (struct x_output): New members want_fullscreen,
2890 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
2891 y_pixels_outer_diff.
2892 New enum for FULLSCREEN_* constants.
2893 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
2895 (x_fullscreen_adjust): Add prototype.
2897 * emacs.c (USAGE2): Add the new full-screen arguments.
2898 (standard_args): Ditto.
2900 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
2902 (syms_of_xfns): Intern and staticpro them.
2903 (x_frame_parms) <"fullscreen">: New parameter.
2904 (x_fullscreen_move, x_set_fullscreen): New functions.
2905 (x_set_frame_parameters): Support for Qfullscreen.
2906 (x_real_positions): More accurate computation of the frame position.
2907 (x_figure_window_size): Support full-screen frames.
2908 (Fx_create_frame): Default the fullscreen parameter.
2910 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
2911 (XTread_socket) <Expose>: Call x_check_fullscreen.
2912 <ConfigureNotify>: Don't resize to fullscreen.
2913 Call x_check_fullscreen_move, and set the want_fullscreen member of
2916 2002-01-13 Jason Rumney <jasonr@gnu.org>
2918 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
2919 for mice with more than 3 buttons.
2921 * w32term.c (parse_button): New parameter xbutton. Callers changed.
2922 (w32_read_socket): Handle new "XBUTTON" messages.
2925 bindings along with or instead of the buffer local map.
2926 Make the overriding maps override what they should.
2928 2001-11-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2930 * window.c (grow_mini_window): Fix typo in comment.
2932 2001-11-01 Gerd Moellmann <gerd@gnu.org>
2934 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
2935 (XTset_vertical_scroll_bar): Likewise.
2937 * xfns.c (x_build_heuristic_mask): Use four_corners_best
2938 instead of IMAGE_BACKGROUND.
2940 * xfns.c (four_corners_best): Reindent.
2942 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
2943 Handle :box so that it is possible to specify sexprs.
2945 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
2947 * s/hpux11.h: New file.
2949 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2951 * emacs.c (USAGE1): Show command line option --no-window-system
2952 instead of --no-windows in usage.
2953 (standard_args): Rename --no-windows to --no-window-system.
2954 (bug_reporting_address): Follow Emacs coding conventions.
2956 * eval.c (Fcommandp): Doc fix.
2957 Change doc-string comments to `new style' [w/`doc:' keyword].
2959 * frame.c (Fframe_live_p): Doc fix.
2961 * buffer.c (selective-display-ellipses): Doc fix.
2963 2001-10-31 Gerd Moellmann <gerd@gnu.org>
2965 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
2967 * xfaces.c (realize_x_face): If C is not a single-byte character,
2968 set the face's colors_copied_bitwise_p instead of the defaulted_p
2969 members which have a different meaning.
2970 (free_face_colors): Do nothing for a face whose colors have been
2973 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
2975 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2977 * marker.c, mocklisp.c: Change doc-string comments to `new style'
2980 2001-10-31 Gerd Moellmann <gerd@gnu.org>
2982 * fns.c (require_unwind): Return Lisp_Object.
2984 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2986 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
2987 (last-input-char): Revert doc-string to be the same as the
2988 doc-string of `last-input-event'.
2990 * xdisp.c: Fix typos in comments.
2992 2001-10-31 Gerd Moellmann <gerd@gnu.org>
2994 * window.c (grow_mini_window): Handle case that the root
2995 window is already smaller than the nominal mininum height.
2997 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
2999 * emacs.c (main): Don't call keys_of_macros any more.
3001 * lisp.h (keys_of_macros): Remove.
3003 * macros.c (keys_of_macros): Remove.
3005 * xfaces.c (Fface_attribute_relative_p): Declare args.
3007 2001-10-30 Jason Rumney <jasonr@gnu.org>
3009 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
3010 (enum_font_cb2): Ignore fonts with vertical orientation.
3012 2001-10-30 Richard M. Stallman <rms@gnu.org>
3014 * keyboard.c (Finput_pending_p): Doc fix.
3016 2001-10-30 Gerd Moellmann <gerd@gnu.org>
3018 * xterm.c (x_after_update_window_line): Don't run the code
3019 clearing in borders for rows whose visible height is 0.
3021 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
3022 resized_p flag is set. If not set, use the much less flickering
3023 method previously used.
3025 * dispnew.c (change_frame_size_1): Set frame's resized_p.
3027 * frame.h (struct frame) <resized_p>: New member.
3029 * lread.c (to_multibyte): Ensure read_buffer is at least twice
3030 as large as the number of bytes to convert.
3032 * lread.c (to_multibyte): New function.
3035 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
3037 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
3039 2001-10-30 Gerd Moellmann <gerd@gnu.org>
3041 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
3042 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
3043 if the row's fill_line_p is set and drawing the last glyph with
3044 DRAW_IMAGE_{RAISED,SUNKEN}.
3046 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
3048 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
3050 * xmenu.c: Include coding.h and charset.h.
3051 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
3052 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
3053 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
3054 Explicitly set wv->help. Use `TRUE' rather than `True'.
3055 (menu_help_callback): Use empty_string.
3057 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
3058 (Fx_popup_dialog): Explicitly init f.
3059 (w32_menu_display_help): Use empty_string.
3061 2001-10-29 Richard M. Stallman <rms@gnu.org>
3063 * fns.c (Frequire): Detect recursive try to require the same
3064 feature 3 or more levels deep, and get error.
3065 (require_unwind): New subroutine.
3066 (require_nesting_list): New variable.
3067 (syms_of_fns): Init and staticpro it.
3069 * print.c (print_object): Clarify indication of insertion type.
3071 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
3073 * coding.c (syms_of_coding): Document that locale-coding-system is
3074 used for decoding input on X.
3076 * window.c (Fscroll_left, Fscroll_right): Doc fix.
3078 2001-10-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3080 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
3081 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
3083 2001-10-29 Gerd Moellmann <gerd@gnu.org>
3085 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
3086 use NO_CURSOR if cursor_in_non_selected_windows is false.
3088 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
3089 the slant attribute if FRAME is t.
3091 * xfns.c (x_set_internal_border_width): Set frame garbaged
3092 when X window doesn't exist yet.
3094 * xterm.c (x_after_update_window_line): Clear internal border
3095 in different circumstances.
3097 * xterm.c (XTread_socket) <KeyPress>: Don't use
3098 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
3101 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
3103 * m/ibms390.h: New file. From Adam Thornton
3104 <athornton@sinenomine.net>.
3106 2001-10-28 Gerd Moellmann <gerd@gnu.org>
3108 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
3110 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
3113 2001-10-28 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3115 * emacs.c: Use argv[0] instead of emacs when -t was specified.
3117 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
3119 Fix typos in comments.
3121 * emacs.c (bug_reporting_address): New function.
3122 Use it when displaying usage message.
3124 * minibuf.c (read_minibuf): Remove unused external declaration of
3125 variable `Qread_only'.
3127 * keymap.c (access_keymap): Remove unused variable `charset'.
3129 2001-10-28 Miles Bader <miles@gnu.org>
3131 * xfaces.c (merge_face_heights): Handle TO being relative as well.
3132 Remove #ifdef'd-out code.
3133 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
3134 (syms_of_xfaces): Initialize them.
3136 2001-10-27 Jason Rumney <jasonr@gnu.org>
3138 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
3139 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
3140 position using the system caret.
3142 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
3143 (w32_system_caret_height, w32_system_caret_x)
3144 (w32_system_caret_y): New variables for tracking system caret.
3145 (w32_initialize): Initialize them.
3146 (x_display_and_set_cursor): Make system caret follow the active cursor.
3148 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
3151 * w32term.c (note_mouse_highlight): Clear old help_echo.
3153 2001-10-27 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3155 * xterm.c: Fix typo in a comment.
3157 * emacs.c: Fix typos in comments.
3158 Remove unnecessary spaces.
3159 Change doc-string comments to `new style' [w/`doc:' keyword].
3160 (USAGE2): Fix typos in usage string.
3162 * xterm.c: Fix typo in a comment.
3164 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
3167 2001-10-27 Gerd Moellmann <gerd@gnu.org>
3169 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
3170 instead of 1/2 line_height in the heuristic for skipping
3171 farther backward when target_y was not reached.
3173 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
3174 Display errno only if non-zero.
3175 (sound_warning): New function.
3176 (vox_configure): Don't treat failing to set sample rate as error.
3177 (various places): Improve error messages.
3179 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
3181 * fileio.c (Faccess_file): Run the argument filename through
3182 Fexpand_file_name, before using it.
3184 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
3185 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
3187 2001-10-26 Gerd Moellmann <gerd@gnu.org>
3189 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
3191 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
3192 Fix clearing in the case of scroll bars on the right.
3194 2001-10-26 Juanma Barranquero <lektu@terra.es>
3196 * w32gui.h (XImage): Add a dummy typedef.
3198 2001-10-26 Gerd Moellmann <gerd@gnu.org>
3200 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
3202 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
3204 * frame.c (Fframe_parameter): Fix last change.
3206 * fileio.c: Revert last change (which removed old commented-out
3207 version of expand-file-name). Add a comment that explains why
3208 this old version should not be removed.
3210 2001-10-25 Gerd Moellmann <gerd@gnu.org>
3212 * frame.c (Fframe_parameter): Fix a bug whereby some
3213 ``artificial'' frame parameters, like `minibuffer' were not
3214 obtained by calling Fframe_parameters.
3216 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
3219 * xdisp.c (move_it_vertically_backward): Compute line height
3220 differently. Add heuristic to try to be more compatible to 20.x.
3222 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
3224 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
3226 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
3229 2001-10-25 Miles Bader <miles@gnu.org>
3231 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
3232 BG is a pointer to a structure, not a structure.
3233 (gif_format, png_format): Add missing commas.
3235 2001-10-24 Richard M. Stallman <rms@gnu.org>
3237 * xfaces.c (Fface_attributes_as_vector): New function.
3238 (syms_of_xfaces): Defsubr it.
3240 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3242 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
3245 2001-10-25 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3247 * search.c (scan_newline): Remove unused variable `selective_display'.
3249 2001-10-25 Miles Bader <miles@gnu.org>
3251 * dispextern.h (struct image): Add `background',
3252 `background_valid', and `background_transparent' fields.
3253 (image_background, image_background_transparent): New declarations.
3254 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
3255 * xfns.c (image_background, image_background_transparent)
3256 (four_corners_best): New functions.
3257 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
3258 (gs_format): Add `:background' entry.
3259 (lookup_image): Set IMG's background color if specified.
3260 (pbm_load, xbm_load_image, png_load): Set IMG's background field
3262 (x_clear_image_1): Reset `background_valid' and
3263 `background_transparent_valid' fields.
3264 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
3265 calculating it here. Set IMG's background_transparent field.
3266 (enum xpm_keyword_index): Add XPM_BACKGROUND.
3267 (enum png_keyword_index): Add PNG_BACKGROUND.
3268 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
3269 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
3270 (enum gif_keyword_index): Add GIF_BACKGROUND.
3271 (enum gs_keyword_index): Add GS_BACKGROUND.
3272 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
3273 Pre-calculate image background color where necessary.
3274 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
3275 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
3276 color to use for image glyph reliefs.
3278 2001-10-24 Gerd Moellmann <gerd@gnu.org>
3280 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
3283 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
3284 Fix clearing of area not covered by scroll bar.
3286 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3288 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
3290 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
3291 (glyph_rect): Remove unused variable `area'.
3293 2001-10-24 Gerd Moellmann <gerd@gnu.org>
3295 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
3297 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
3298 (row_containing_pos): Take additional argument DY.
3299 Treat rows ending in middle of char differently.
3300 (display_line): Handle tabs on window systems differently.
3302 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
3303 with additional argument.
3305 * dispextern.h (row_containing_pos): Adjust prototype.
3307 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
3308 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
3309 (try_window_id, try_window_reusing_current_matrix)
3310 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
3311 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
3313 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3315 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
3317 (HAVE_BOXES): Fix typo in comment.
3318 (push_menu_pane): Fix typo in comment.
3320 * xdisp.c: (display_prop_string_p): Remove unused local declaration
3322 (single_display_prop_string_p): Remove unused local declarations
3323 of `Qwhen' and `Qmargin'.
3324 (string_buffer_position): Remove unused variable `around'.
3325 (store_frame_title): Remove unused variable `width'.
3327 * window.c: Don't define max.
3328 (coordinates_in_window): Remove unused variable `uy'.
3330 * widget.c: Don't define max.
3332 * process.c: Don't define max.
3333 (create_process): Remove unused variable `buffer'.
3335 2001-10-23 Gerd Moellmann <gerd@gnu.org>
3337 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
3339 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
3341 * xfaces.c (Finternal_set_lisp_face_attribute)
3342 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
3343 frame is on a windowed display.
3345 2001-10-23 Gerd Moellmann <gerd@gnu.org>
3347 * dispnew.c (sync_window_with_frame_matrix_rows):
3348 Fix handling of windows which aren't full-width, fix handling
3351 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
3353 2001-10-23 Andreas Schwab <schwab@suse.de>
3355 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
3356 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
3358 2001-10-23 Gerd Moellmann <gerd@gnu.org>
3360 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
3361 REAL_END. Notice if cursor gets overwritten.
3362 (notice_overwritten_cursor): Take X positions as parameters.
3363 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
3364 around call to x_draw_glyphs.
3366 2001-10-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3368 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
3369 instead of C) and usage.
3371 * editfns.c (char-to-string): Fix argument names (use CHAR instead
3374 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
3375 `left', `max_width' and `max_height'.
3377 2001-10-23 Gerd Moellmann <gerd@gnu.org>
3379 * xdisp.c (display_line): For a tab continued to the next line,
3380 set row's ends_in_middle_of_char_p.
3382 2001-10-22 Gerd Moellmann <gerd@gnu.org>
3384 * xdisp.c (display_line): Fix computation of continuation lines
3387 2001-10-22 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3389 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
3392 * fileio.c: Remove unused code.
3394 2001-10-22 Miles Bader <miles@gnu.org>
3396 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
3397 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
3398 Remove `DOC_STRINGS_IN_COMMENTS' cases.
3400 2001-10-21 Jason Rumney <jasonr@gnu.org>
3402 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
3404 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
3406 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
3407 (Finsert_string): Avoid the multi-line string literals warning.
3409 2001-10-22 Miles Bader <miles@gnu.org>
3411 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
3412 (Fdocumentation): Don't use it.
3413 (syms_of_doc): Don't initialize it.
3415 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
3416 * print.c (Fwith_output_to_temp_buffer): Likewise.
3417 * window.c (Fsave_window_excursion): Likewise.
3418 * editfns.c (Fsave_excursion, Fsave_current_buffer)
3419 (Fsave_restriction): Likewise.
3420 * eval.c (Frun_hooks, Frun_hook_with_args)
3421 (Frun_hook_with_args_until_failure)
3422 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
3423 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
3424 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
3425 (Funwind_protect, Fcondition_case): Likewise.
3426 * coding.c (Ffind_operation_coding_system): Likewise.
3427 * keyboard.c (Ftrack_mouse): Likewise.
3429 2001-10-21 Miles Bader <miles@gnu.org>
3431 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
3432 (Fmake_hash_table): Add usage: string to doc string.
3433 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
3434 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
3435 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
3436 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
3437 (Fml_prefix_argument_loop): Likewise.
3439 2001-10-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3441 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
3443 * sysdep.c (init_sys_modes): Change doc-string comments to `new
3444 style' [w/`doc:' keyword].
3446 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
3447 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
3448 comments to `new style' [w/`doc:' keyword].
3450 2001-10-21 Jason Rumney <jasonr@gnu.org>
3452 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
3454 * w32term.c (remember_mouse_glyph): New function.
3455 (w32_mouse_position): Use it.
3456 (note_mouse_movement): If the mouse moved off the glyph, remember
3459 * w32term.h (struct w32_output): Correct spelling of x_compatible.
3460 (w32_display_info): Add mouse_face_overlay.
3462 * w32term.c (notice_overwritten_cursor): Renamed from
3463 note_overwritten_text_cursor. Rewritten to take glyph widths into
3465 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
3466 (fast_find_string_pos): New function.
3467 (fast_find_position): Return the correct vpos. Add parameter
3468 STOP. In the final row, stop before glyphs having STOP as object.
3469 Don't consider glyphs that are not from a buffer.
3470 (fast_find_position) [0]: Add a presumably more correct version
3472 (expose_window_tree, expose_frame): Don't compute intersections here.
3473 (expose_window): Do it here instead.
3474 (expose_window_tree, expose_window, expose_line): Return 1 when
3475 overwriting mouse-face.
3476 (expose_window): If W is the window currently being updated, mark
3478 (expose_frame): If mouse-face was overwritten, redo it.
3479 (x_use_underline_position_properties): New variable.
3480 (syms_of_xterm): DEFVAR_BOOL it.
3481 (x_draw_glyph_string): Add comment to use it in future.
3482 (x_draw_glyph_string): Restore clipping after drawing box.
3483 Fix a computation of the underline position.
3484 (w32_get_glyph_string_clip_rect): Minor cleanup.
3485 (x_fill_stretch_glyph_string): Remove an assertion.
3486 (x_produce_glyphs): Don't convert multibyte characters
3487 to unibyte characters in unibyte buffers.
3488 (cursor_in_mouse_face_p): New function.
3489 (x_draw_stretch_glyph_string): Use it to choose a different GC
3490 when drawing a cursor within highlighted text. Don't draw
3491 background again if it has already been drawn.
3492 (x_draw_glyph_string_box): Don't draw a full-width
3493 box just because the glyph row's full_width_p flag is set.
3494 (x_draw_glyphs): Fix computation of rightmost x for
3496 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
3497 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
3498 change bottom shadow accordingly. Some cleanup.
3499 (x_update_window_end): Handle overwritten mouse face
3500 also for tool bar windows.
3501 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
3502 DRAW is DRAW_IMAGE_RAISED.
3503 (clear_mouse_face): Return 1 if text with mouse face was
3504 actually redrawn. Make the function static.
3505 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
3506 optimize away highlighting if we pass over that same overlay again.
3507 (note_mouse_highlight): Call mouse_face_overlay_overlaps
3508 to detect a case where we have to highlight a different region
3509 despite not having left the currently highlighted region.
3510 Set mouse_face_overlay in the x_display_info. Avoid changing the
3511 mouse pointer shape when show_mouse_face has already done it, or
3512 there is no need. Handle mouse-face and help-echo in strings.
3513 (glyph_rect): New function.
3514 (w32_mouse_position): Use it to raise the threshold for mouse
3515 movement event generation.
3516 (w32_initialize_display_info): Initialize the x_display_info's
3518 (w32_set_vertical_scroll_bar): Don't clear a zero height
3520 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
3521 a widget to zero height.
3523 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
3524 Protect unibyte strings created by replacing their multibyte
3525 equivalents in menu_items.
3526 (w32_menu_show): Don't overwrite an item's name with its key
3527 description in case the description is a multibyte string.
3528 (single_submenu): Some cleanup.
3530 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
3531 (postprocess_image): New function.
3532 (lookup_image): Call it for all image types except PostScript.
3533 (x_kill_gs_process): Call postprocess_image.
3534 (tiff_error_handler, tiff_warning_handler): New functions.
3535 (tiff_load): Install them as handlers.
3536 (x_kill_gs_process): Recognize if someone has cleared the image
3538 (valid_image_p): Protect better against invalid image
3539 specifications. Previous code could signal an error.
3540 (Fx_hide_tip, Fshow_tip): Doc fix.
3541 (Fv_max_tooltip_size): New variable.
3542 (syns_of_xfns): DEFVAR_LISP it.
3543 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
3544 window buffer to *tip* right after creating the frame. Set frame's
3545 window_width. Use a maximum tooltip size specified by
3546 Vx_max_tooltip_size, if that has valid contents.
3547 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
3548 Make sure the tooltip is completely visible.
3549 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
3550 (Fx_create_frame): Adjust the frame's height for presence
3551 of the tool bar before calling x_figure_window_size.
3552 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
3553 when the window gets smaller.
3554 (x_set_foreground_color): Set frame's cursor_pixel.
3555 (x_set_foreground_color, x_set_background_color): Cleaned up.
3556 (x_set_font): Handle case of x_new_fontset returning the same name
3557 as before, although there was a change in fontsets.
3559 2001-10-21 Miles Bader <miles@gnu.org>
3561 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
3562 (Flogxor): Add usage: string to doc string.
3563 * charset.c (Fstring): Likewise.
3564 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
3565 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
3567 2001-10-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3569 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
3571 * alloc.c: Reindent DEFUNs with doc: keywords.
3573 * abbrev.c (Finsert_abbrev_table_description): Reindent.
3575 * frame.c: Change doc-string comments to `new style' [w/`doc:'
3578 See ChangeLog.9 for earlier changes.
3581 ;; coding: iso-2022-7bit
3584 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
3585 Copying and distribution of this file, with or without modification,
3586 are permitted provided the copyright notice and this notice are preserved.