1 2006-09-30 Eli Zaretskii <eliz@gnu.org>
3 * config.in Regenerated.
5 2006-09-29 Juri Linkov <juri@jurta.org>
7 * buffer.c (syms_of_buffer): Reorder coding systems in the
8 docstring of %z to the real order displayed in the modeline.
10 2006-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
12 * keymap.c (Fdefine_key): Yet another int/Lisp_Object mixup (YAILOM).
14 2006-09-26 Chong Yidong <cyd@stupidchicken.com>
16 * indent.c (Fvertical_motion): Do move back if the Lisp string
17 being displayed contains newlines.
19 2006-09-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21 * macterm.c (mac_compute_glyph_string_overhangs, XLoadQueryFont)
22 [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw before QDTextBounds.
24 2006-09-26 Kenichi Handa <handa@m17n.org>
26 * keymap.c (Fsingle_key_description): For an invalid char, return
27 "Invalid char code NNNNN".
29 2006-09-25 Chong Yidong <cyd@stupidchicken.com>
31 * callint.c (Fcall_interactively): Doc fix.
33 2006-09-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
35 * macterm.c (x_underline_at_descent_line): New variable.
36 (syms_of_macterm): DEFVAR_BOOL it.
37 (x_draw_glyph_string): Use it.
38 (XLoadQueryFont): Calculate min_bounds.descent and max_bounds.descent.
40 2006-09-25 Kenichi Handa <handa@m17n.org>
42 * keymap.c (Fsingle_key_description): Return unique names for
45 2006-09-24 Richard Stallman <rms@gnu.org>
47 * search.c (compile_pattern_1): Don't BLOCK_INPUT.
49 2006-09-24 Eli Zaretskii <eliz@gnu.org>
51 * makefile.w32-in ($(BLD)/fns.$(O), $(BLD)/w32proc.$(O)): Depend
52 on nt/inc/langinfo.h and nt/inc/nl_types.h.
54 * w32proc.c (nl_langinfo): New function.
56 * w32fns.c (w32-pass-alt-to-system, w32-alt-is-meta)
57 (w32-pass-lwindow-to-system, w32-enable-num-lock)
58 (w32-enable-caps-lock, w32-scroll-lock-modifier)
59 (w32-lwindow-modifier, w32-rwindow-modifier)
60 (w32-apps-modifier, w32-mouse-button-tolerance): Doc fix.
62 2006-09-23 Juanma Barranquero <lekktu@gmail.com>
64 * minibuf.c (Finternal_complete_buffer, Fread_minibuffer)
65 (Fdisplay_completion_list): Fix typos in docstrings.
67 2006-09-23 Romain Francoise <romain@orebokech.com>
69 * s/gnu-linux.h (MAIL_USE_FLOCK): Check for HAVE_LIBLOCKFILE too.
71 2006-09-23 Kenichi Handa <handa@m17n.org>
73 * keymap.c (Fmap_keymap): Docstring mentions about generic character.
75 2006-09-22 Stefan Monnier <monnier@iro.umontreal.ca>
77 * regex.c (analyse_first): For eight-bit-control chars, mark both the
78 char's value and its leading byte in the fastmap.
79 (re_search_2): When fast-scanning without translation, be careful to
80 check that we only match the leading byte of a multibyte char.
82 * charset.h (PREV_CHAR_BOUNDARY): Make it work from within a char's
84 (AT_CHAR_BOUNDARY): New macro.
86 2006-09-22 Kenichi Handa <handa@m17n.org>
88 * fns.c (optimize_sub_char_table): Don't optimize a sub-char-table
89 whose default value is non-nil.
91 2006-09-22 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
93 * gtkutil.c (xg_get_file_with_chooser): Only show C-l help for
96 * xfns.c (syms_of_xfns): Fix typo in help text for
97 x-gtk-file-dialog-help-text.
99 2006-09-21 Kim F. Storm <storm@cua.dk>
101 * fns.c (Fmemq): Refill doc string.
102 (Fmemql): New defun, like memq but using eql.
103 (syms_of_fns): Defsubr it.
105 2006-09-20 Kim F. Storm <storm@cua.dk>
107 * xdisp.c (pos_visible_p): CHARPOS < 0 means return info for
108 last visible glyph in window.
110 * window.c (Fset_window_hscroll, Fwindow_line_height):
111 Doc fix. Use "off-window" instead of "off-screen".
112 (Fpos_visible_in_window_p): Likewise.
113 If POS is t, return info for last visible glyph in window.
115 2006-09-19 Chong Yidong <cyd@stupidchicken.com>
117 * search.c (struct regexp_cache): New entry syntax_table.
118 (compile_pattern_1): Set it.
119 (syms_of_search): Initialize it.
120 (compile_pattern): Require the syntax_table entry of the cache
121 element to match the current syntax table entry.
123 2006-09-19 Stefan Monnier <monnier@iro.umontreal.ca>
125 * window.c (Fwindow_end): Fix recent change.
127 2006-09-19 Kim F. Storm <storm@cua.dk>
129 * window.c (Fset_window_hscroll, Fpos_visible_in_window_p):
130 Doc fix. Use "off-screen" instead of "invisible".
131 (Fwindow_line_height): Make line numbers 0-based. Make line arg
132 optional; if nil, use current cursor row. Handle text terminals
133 properly. Return nil if non-interactive or pseudo-window.
135 2006-09-19 Stefan Monnier <monnier@iro.umontreal.ca>
137 * keymap.c: Include alloca.h if available.
138 (Fkey_binding): Only use AREF after checking it's a vector.
139 Remove unused var `window'.
141 2006-09-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
143 * emacs.c (shut_down_emacs) [!subprocesses]: Don't set
146 * mac.c [!MAC_OSX] (select): Fix argument name.
148 * macmenu.c (enum mac_menu_kind, min_menu_id): New enumerator and
149 menu ID for Apple menu.
150 (menubar_selection_callback): Remove function.
151 (find_and_call_menu_selection): New function from xmenu.c.
152 (x_activate_menubar): Use it.
153 (set_frame_menubar): Don't use f->output_data.mac->menubar_active.
155 * macterm.c (menubar_selection_callback): Remove extern.
156 (M_APPLE): Change to 234.
157 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Make non-static.
158 (do_menu_choice): Remove function.
160 * macterm.h (struct mac_output): Remove member menubar_active.
161 (do_menu_choice): Remove extern.
162 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Add extern.
164 2006-09-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
166 * xfns.c (syms_of_xfns): Rename x_gtk_show_chooser_help_text to
167 x_gtk_file_dialog_help_text.
169 * gtkutil.c (xg_uses_old_file_dialog): Rename x-use-old-gtk-file-dialog
170 to x-gtk-use-old-file-dialog.
171 (xg_get_file_with_chooser): Rename x_gtk_show_chooser_help_text to
172 x_gtk_file_dialog_help_text.
174 * xfns.c (syms_of_xfns): Ditto.
176 2006-09-18 Kim F. Storm <storm@cua.dk>
178 * window.c (Fwindow_line_visibility): Remove.
179 (Fwindow_line_height): New defun replacing it.
180 (syms_of_window): Defsubr it.
182 2006-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
184 * mac.c (SELECT_USE_CFSOCKET) [MAC_OSX]: Set default to 1.
185 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Fix pointer type.
187 2006-09-17 Jay Belanger <belanger@truman.edu>
192 * strftime.c: Replace "GNU Library General Public License" by "GNU
193 General Public License" throughout.
195 2006-09-17 Kim F. Storm <storm@cua.dk>
197 * dispnew.c (update_text_area): Undo 2000-07-18 change.
198 Always redrawing whole row if line has mouse-face in it causes
199 excessive flickering of the mode line.
201 2006-09-17 Chong Yidong <cyd@stupidchicken.com>
203 * search.c (clear_regexp_cache): New function.
205 * syntax.c (Fmodify_syntax_entry): Clear regexp cache.
207 2006-09-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
209 * gtkutil.c (xg_get_file_with_chooser):
210 Check x-gtk-show-chooser-help-text before adding the help text.
212 * xfns.c (syms_of_xfns): New variable: x-gtk-show-chooser-help-text.
214 * gtkutil.c (get_utf8_string): Try harder to convert to UTF8. Gtk+
215 will simply crash if we fail.
217 2006-09-16 Richard Stallman <rms@gnu.org>
219 * regex.c (re_compile_pattern): Set gl_state.current_syntax_table.
221 2006-09-15 Kim F. Storm <storm@cua.dk>
223 * window.c (Fwindow_line_visibility): New defun for line-move-partial.
224 (syms_of_window): Defsubr it.
225 (Fwindow_end): Use window's buffer rather than current buffer.
227 2006-09-15 Jay Belanger <belanger@truman.edu>
229 * COPYING: Replace "Library Public License" by "Lesser Public
232 2006-09-15 David Kastrup <dak@gnu.org>
234 * Makefile.in (keymap.o): Add "keymap.h" and "window.h"
237 * keymap.c: include "window.h".
238 (Fcommand_remapping): New optional POSITION argument.
239 (Fkey_binding): New optional POSITION argument. Completely rework
240 handling of mouse clicks to get the same order of keymaps as
241 `read-key-sequence' and heed POSITION. Also temporarily switch
242 buffers to location of mouse click and back.
244 * keyboard.c (command_loop_1): Adjust call of `Fcommand_remapping'
245 for additional argument.
246 (parse_menu_item): Adjust call of `Fkey_binding' for additional
248 (read_key_sequence): If there are both `local-map' and `keymap'
249 text properties at some buffer position, heed both.
251 * keymap.h: Declare additional optional arguments of
252 `Fcommand_remapping' and `Fkey_binding'.
254 2006-09-15 Juanma Barranquero <lekktu@gmail.com>
256 * indent.c (Fcurrent_column, Findent_to): Fix typos in docstring.
258 2006-09-14 Andreas Schwab <schwab@suse.de>
260 * print.c: Whitespace fixup.
262 2006-09-14 Kim F. Storm <storm@cua.dk>
264 * xdisp.c (produce_image_glyph): Automatically crop wide images at
265 right window edge so we can draw the cursor on the same row to
266 avoid confusing redisplay by placing the cursor outside the visible
269 2006-09-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
271 * xterm.c (x_initialize): Don't install Xt event timer here.
272 (x_timeout_atimer_activated_flag): New var.
273 (x_activate_timeout_atimer): New function to install Xt timer.
274 (x_send_scroll_bar_event, x_process_timeouts): Use it.
276 * xmenu.c (x_menu_set_in_use, popup_activate_callback)
277 (create_and_show_popup_menu, create_and_show_dialog): Use it.
279 * xterm.h (x_activate_timeout_atimer): Add prototype.
281 2006-09-13 Richard Stallman <rms@gnu.org>
283 * print.c (print_string): When printcharfun is t,
284 copy string contents and call strout on the copy.
286 * keyboard.c (read_char): If end_time specified, don't put the
287 event into this_command_keys.
288 (read_key_sequence): If Voverriding_terminal_local_map is specified,
289 don't check Voverriding_local_map at all.
291 2006-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
293 * textprop.c (Fnext_property_change, Fnext_single_property_change)
294 (Fprevious_property_change, Fprevious_single_property_change):
295 Avoid changing limit, so we can correctly catch the case where the
296 property is constant up to limit.
298 2006-09-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
300 * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
301 * macterm.c (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
302 Undo 2006-09-08 change.
304 2006-09-11 Chong Yidong <cyd@stupidchicken.com>
306 * keymap.c (Fkey_binding): Use string position for string objects.
308 2006-09-11 Kim F. Storm <storm@cua.dk>
310 * keymap.c (Fkey_binding): Fix last change.
312 * editfns.c (Fmessage): Recommend using (message "%s" ...).
314 2006-09-10 Chong Yidong <cyd@stupidchicken.com>
316 * keymap.c (Fkey_binding): Check for local keymap for mouse click
319 2006-09-10 Kim F. Storm <storm@cua.dk>
321 * keyboard.c (Finput_pending_p): Check Vunread_input_method_events
322 and Vunread_post_input_method_events.
324 * dispnew.c (Fredisplay): Document return value.
326 2006-09-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
328 * xfns.c (Fx_close_connection): Call xg_display_close when USE_GTK.
330 * gtkutil.c (xg_display_close): Always change default display if needed,
331 check for < Gtk+ version 2.10 before calling gdk_display_close.
333 2006-09-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
335 * mac.c [MAC_OSX] (sys_select): Check argument `nfds' more rigidly.
336 Make variable `ofds' static. Remove variable `maxfd'.
338 * macfns.c (Fx_file_dialog): Remove unused variable `f'.
341 * macmenu.c (Vmenu_updating_frame, syms_of_macmenu):
342 * w32menu.c (Vmenu_updating_frame, syms_of_w32menu):
343 Apply 2006-09-08 change for xmenu.c.
345 * xfns.c (Fx_file_dialog): Call check_x.
347 2006-09-10 Kim F. Storm <storm@cua.dk>
349 * xdisp.c (get_window_cursor_type): Use hollow cursor on
350 non-transparent images.
352 2006-09-09 Eli Zaretskii <eliz@gnu.org>
354 * editfns.c (Fsystem_name): Mention "host" in the doc string.
355 (syms_of_editfns) <system-name>: Likewise.
357 2006-08-27 Martin Rudalics <rudalics@gmx.at>
359 * xdisp.c (mouse_autoselect_window): Remove.
360 (Vmouse_autoselect_window): New variable. DEFVAR_LISP it.
362 * dispextern.h (mouse_autoselect_window): Remove extern.
363 (Vmouse_autoselect_window): Add extern.
365 * macterm.c (XTread_socket): Test Vmouse_autoselect_window
366 instead of mouse_autoselect_window.
368 * msdos.c (dos_rawgetc): Likewise.
370 * w32term.c (w32_read_socket): Likewise.
372 * xterm.c (handle_one_xevent): Likewise.
374 2006-09-08 Richard Stallman <rms@gnu.org>
376 * xdisp.c (Vmenu_updating_frame): Define here.
377 (syms_of_xdisp): DEFVAR it here.
378 (update_menu_bar): Always return hooks_run.
379 Set Vmenu_updating_frame.
381 * xdisp.c (redisplay_internal): Test Vinhibit_redisplay
382 before calculating SELECTED_FRAME.
384 * xmenu.c (Vmenu_updating_frame): Don't define here.
385 (syms_of_xmenu): Don't DEFVAR it here.
387 * xterm.c (x_error_quitter): For BadName error, just return.
389 * eval.c (find_handler_clause): Give up on debugger if INPUT_BLOCKED_P.
391 * casetab.c (init_casetab_once): Call set_case_table.
393 * emacs.c (shut_down_emacs): Set inhibit_sentinels.
395 * process.c (inhibit_sentinels): New variable.
396 (exec_sentinel): Test inhibit_sentinels.
397 (init_process): Initialize it.
399 * process.h (inhibit_sentinels): Add decl.
401 * search.c (looking_at_1, string_match_1, search_command):
402 Make syntax table's canon table point to eqv table.
404 2006-09-08 Andreas Schwab <schwab@suse.de>
406 * print.c (strout): Fix whitespace.
408 2006-09-08 Kim F. Storm <storm@cua.dk>
410 * xterm.c (x_draw_glyph_string): Fix 2006-08-24 change.
412 2006-09-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
414 * mac.c [!MAC_OSX]: Don't include keyboard.h.
415 [!MAC_OSX] (select): Try detect_input_pending before ReceiveNextEvent
416 in the same BLOCK_INPUT block, in case that some input has already
417 been read asynchronously. Pretend to be interrupted by a signal
418 if some input is available.
419 [MAC_OSX] (select_and_poll_event, sys_select): Likewise.
420 (SELECT_POLLING_PERIOD_USEC) [SELECT_USE_CFSOCKET]: Change to 100000.
421 Now used for ReceiveNextEvent timeout instead of select timeout.
422 (EVENT_CLASS_SOCK) [SELECT_USE_CFSOCKET]: Remove macro.
423 [SELECT_USE_CFSOCKET] (socket_callback): Add non-blocking connect
424 support. Quit event loop.
425 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Add non-blocking
426 connect support. Reuse previously allocated CFRunLoopSource.
427 (Fmac_process_hi_command) [TARGET_API_MAC_CARBON]: New function.
428 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
430 * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
431 Specify kWindowAsyncDragAttribute.
433 * macterm.c (mac_handle_origin_change, mac_handle_size_change)
434 (mac_get_ideal_size): New functions.
435 (x_set_offset, x_set_window_size, x_make_frame_visible)
436 (do_zoom_window, mac_handle_window_event, XTread_socket): Use them.
437 (install_window_handler, mac_handle_window_event)
438 [USE_CARBON_EVENTS]: Handle kEventWindowGetIdealSize and
439 kEventWindowBoundsChanged.
440 (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Don't call
443 2006-09-07 Andreas Schwab <schwab@suse.de>
445 * m/ibms390x.h (START_FILES, LIB_STANDARD): Override to
446 use lib64 instead of lib.
448 2006-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
450 * Makefile.in: Avoid double quotes when possible.
452 2006-09-06 Kenichi Handa <handa@m17n.org>
454 * editfns.c (Fformat_time_string): Use make_unibyte_string to make
455 a Lisp string from the result of emacs_memftimeu call.
457 2006-09-06 Kim F. Storm <storm@cua.dk>
459 * xdisp.c (pos_visible_p): Remove exact_mode_line_heights_p arg;
460 so calculate heights even when pos-visible-in-window-p is called
461 with partially = t. Don't overshoot last_visible_y in move_it_to.
462 Return row height and row number in new rowh and vpos args.
463 (cursor_row_fully_visible_p): First line is always "fully visible".
464 (try_window): Don't clear matrix if vscrolled.
466 * lisp.h (pos_visible_p): Update prototype.
468 * window.c (Fpos_visible_in_window_p): Adapt to new pos_visible_p.
469 Return row height and row number for partially visible rows.
470 Modify return value to a 2 element list for fully visible rows and
471 6 for partially visible row.
472 (window_scroll_pixel_based): Use pos_visible_p directly instead of
473 Fpos_visible_in_window_p. Fix auto vscrolling for partially
474 visible lines. Only vscroll backwards if already vscrolled
475 forwards. Unconditionally vscroll forwards if PT is first (and
476 only) line. Set new window start instead of scrolling at
477 start/end of tall line.
479 2006-09-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
481 * macterm.c (install_window_handler, mac_handle_window_event)
482 [USE_CARBON_EVENTS]: Handle kEventWindowClose.
483 [USE_MAC_TSM] (mac_handle_text_input_event): Set modifiers for
484 ASCII keystroke event.
486 2006-09-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
488 * gtkutil.c (xg_get_file_with_chooser): Don't mention specific keys in
489 the file chooser message. Only call gtk_file_chooser_set_current_name
492 2006-09-04 Andreas Schwab <schwab@suse.de>
494 * Makefile.in: Double all single and back quotes in C-style
495 comments to help fontifier.
497 2006-09-03 Jason Rumney <jasonr@gnu.org>
499 * w32.c (shutdown_handler): New function to exit cleanly on shutdown.
500 (globals_of_w32): Register it as a signal handler.
502 2006-09-02 Juri Linkov <juri@jurta.org>
504 * marker.c (Fmarker_position): Doc fix.
506 2006-09-03 Eli Zaretskii <eliz@gnu.org>
508 * window.c (syms_of_window) <split-height-threshold>:
509 <window-min-height, window-min-width>: Doc fix.
511 2006-09-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
513 * gtkutil.c (xg_get_file_with_chooser): Change file chooser message
514 for writing files. Call gtk_file_chooser_set_current_name to keep
517 * minibuf.c (Finternal_complete_buffer): Move after DEFUN:s it calls
519 2006-09-02 Jindrich Makovicka <makovick@gmail.com> (tiny change)
521 * fns.c (concat) [__GNUC__]: Declare with
522 `__attribute__((noinline))'.
524 * eval.c (apply1, call2) [__GNUC__]: Declare with
525 `__attribute__((noinline))'.
527 2006-09-02 Stuart D. Herring <herring@lanl.gov>
529 * minibuf.c (Finternal_complete_buffer): New function.
530 (syms_of_minibuf): Defsubr it.
531 (Fread_buffer): Use it, instead of Vbuffer_alist.
533 2006-09-01 Martin Rudalics <rudalics@gmx.at>
535 * buffer.h (struct buffer_text): New field chars_modiff.
536 (CHARS_MODIFF, BUF_CHARS_MODIFF): New macros.
537 * buffer.c (Fbuffer_chars_modified_tick): New function returning
538 value of BUF_CHARS_MODIFF.
539 (syms_of_buffer): Defsubr it.
540 (Fget_buffer_create): Initialize BUF_CHARS_MODIFF.
541 * insdel.c (modify_region): New argument preserve_chars_modiff.
542 Set CHARS_MODIFF to MODIFF provided preserve_chars_modiff is zero.
543 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
544 (adjust_after_replace, adjust_after_replace_noundo)
545 (replace_range, replace_range_2, del_range_2): Reset CHARS_MODIFF.
546 * lisp.h (modify_region): Add fourth argument in extern.
547 * casefiddle.c (casify_region): Call modify_region with fourth
548 argument zero to assert that CHARS_MODIFF is updated.
549 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
550 (Ftranspose_regions): Likewise.
551 * textprop.c (Fadd_text_properties, Fset_text_properties)
552 (Fremove_text_properties, Fremove_list_of_text_properties):
553 Call modify_region with fourth argument 1 to avoid that
554 CHARS_MODIFF is updated.
556 2006-08-31 Richard Stallman <rms@gnu.org>
558 * editfns.c (Fformat): Don't sign-extend for %o or %x.
560 2006-08-29 Chong Yidong <cyd@stupidchicken.com>
562 * indent.c (Fvertical_motion): Don't move back if we were
563 displaying a Lisp string, either.
565 2006-08-28 Kim F. Storm <storm@cua.dk>
567 * xdisp.c (get_window_cursor_type) [!HAVE_WINDOW_SYSTEM]:
568 Don't attempt to replace cursor on image glyphs.
570 2006-08-28 Kenichi Handa <handa@m17n.org>
572 * coding.c (Fdetect_coding_region, Fdetect_coding_string): Fix
573 docstring about ISO-2022 control characters.
575 2006-08-28 Kim F. Storm <storm@cua.dk>
577 * xdisp.c (get_window_cursor_type): Replace BOX cursor on images
578 with a hollow box cursor if image is larger than 32x32 (or the default
579 frame font if that is bigger). Replace any other cursor on images
580 with hollow box cursor, as redisplay doesn't support bar and hbar
583 2006-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
585 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Undo previous
586 change. Move mutex lock/unlock operations inside BLOCK_INPUT.
588 * dired.c (directory_files_internal_unwind, directory_files_internal)
589 (file_name_completion): Add BLOCK_INPUT around opendir/closedir.
591 * image.c [MAC_OS] (image_load_qt_1): Use ComponentResult instead
594 * keyboard.c (in_sighandler): Remove variable.
595 (Fcurrent_idle_time): Add missing `doc:'.
596 (input_available_signal, init_keyboard): Undo previous change.
598 * keyboard.h (in_sighandler): Remove extern.
600 * mac.c (create_apple_event_from_event_ref, select)
601 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
602 (Fmac_set_file_type, cfstring_create_normalized)
603 (mac_get_system_locale, select_and_poll_event, sys_select):
604 Use OSStatus instead of OSErr.
606 * macfns.c [TARGET_API_MAC_CARBON] (mac_update_proxy_icon):
607 Don't use FRAME_FILE_NAME. Use (FS)UpdateAlias.
608 (Fx_create_frame): Apply 2006-07-03 for xfns.c.
610 * macselect.c (get_scrap_from_symbol, clear_scrap, put_scrap_string)
611 (put_scrap_private_timestamp, scrap_has_target_type, get_scrap_string)
612 (get_scrap_private_timestamp, get_scrap_target_type_list)
613 (x_own_selection, x_get_foreign_selection)
614 (Fx_disown_selection_internal, Fx_selection_owner_p)
615 (Fx_selection_exists_p): Use OSStatus instead of OSErr.
617 * macterm.c (mac_draw_string_common, mac_query_char_extents)
618 (x_iconify_frame, XLoadQueryFont, install_window_handler)
619 (mac_handle_command_event, init_command_handler, init_menu_bar):
620 Use OSStatus instead of OSErr.
621 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Don't use
623 (x_query_font): Apply 2006-08-04 change for xterm.c.
624 (Qhi_command): Rename from Qhicommand. All uses changed.
626 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]: Remove member
628 (FRAME_FILE_NAME): Remove macro.
629 (install_window_handler, create_apple_event_from_event_ref):
630 Return OSStatus instead of OSErr.
632 2006-08-26 Kim F. Storm <storm@cua.dk>
634 * buffer.c (Fset_buffer_multibyte):
635 * editfns.c (Fcurrent_time, Fget_internal_run_time):
636 * macfns.c (Fxw_color_values):
637 * w32fns.c (Fxw_color_values):
638 * xfns.c (Fxw_color_values): Simplify; use list3.
640 * fileio.c (Fmake_directory_internal, Fdelete_directory)
641 (Fdelete_file): Simplify; use list1.
642 (Frename_file, Fadd_name_to_file, Fmake_symbolic_link):
643 Simplify; remove NO_ARG_ARRAY stuff, use list2.
645 2006-08-25 Richard Stallman <rms@gnu.org>
647 * buffer.c (Fswitch_to_buffer): Fix previous change.
649 2006-08-25 Kim F. Storm <storm@cua.dk>
651 * keyboard.c (Fcurrent_idle_time): Simplify.
653 2006-08-25 Richard Stallman <rms@gnu.org>
655 * fns.c (sxhash_string): Rotate properly; don't lose bits.
657 2006-08-24 Francesc Rocher <francesc.rocher@gmail.com>
659 * xdisp.c (overline_margin): New variable.
660 (x_produce_glyphs): Use it.
661 (syms_of_xdisp): DEFVAR_INT it.
663 * xterm.c (x_underline_at_descent_line): New variable.
664 (syms_of_xterm): DEFVAR_BOOL it.
665 (x_draw_glyph_string): Use it.
666 Draw underline and overline up to the end of line if the face
667 extends to the end of line.
669 * macterm.c: Likewise.
671 * w32term.c: Likewise.
673 2006-08-24 Nick Roberts <nickrob@snap.net.nz>
675 * buffer.c (Fswitch_to_buffer): Move buffer to front of
676 buffer-alist if necessary.
678 2006-08-22 Kim F. Storm <storm@cua.dk>
680 * xdisp.c (update_tool_bar): Redisplay toolbar also when only
681 number of items changes.
683 2006-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
685 * buffer.c (Fset_buffer_multibyte): Record proper undo entry.
687 2006-08-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
689 * keyboard.c: Clarify difference between in_sighandler and
692 2006-08-21 Kim F. Storm <storm@cua.dk>
694 * macterm.c (x_draw_stretch_glyph_string):
695 * w32term.c (x_draw_stretch_glyph_string):
696 * xterm.c (x_draw_stretch_glyph_string): It is ok to draw a
697 stretch glyph in left marginal areas on header and mode lines.
699 2006-08-21 Kenichi Handa <handa@m17n.org>
701 * keyboard.c (syms_of_keyboard): Docstring of
702 Vunread_post_input_method_events and Vunread_input_method_events
705 2006-08-20 Chong Yidong <cyd@stupidchicken.com>
707 * keyboard.c (show_help_echo): Preserve mouse movement flag if
710 2006-08-20 Richard Stallman <rms@gnu.org>
712 * xfaces.c (load_pixmap): Add quotes in error message.
714 * keyboard.c (Fcurrent_idle_time): New function.
715 (syms_of_keyboard): defsubr it.
717 2006-08-18 Nick Roberts <nickrob@snap.net.nz>
719 * window.c (Fset_window_fringes): Do nothing on a tty.
720 (Fwindow_fringes): Put ? operator after the line break.
722 2006-08-16 Andreas Schwab <schwab@suse.de>
724 * print.c (debug_output_compilation_hack): Fix return type.
726 2006-08-16 Richard Stallman <rms@gnu.org>
728 * print.c (debug_output_compilation_hack): New function.
730 2006-08-16 Kenichi Handa <handa@m17n.org>
732 * fileio.c (choose_write_coding_system): Use LF for end-of-line
735 2006-08-15 Chong Yidong <cyd@stupidchicken.com>
737 * keyboard.c (read_char): Don't change idle timer state at all if
738 end_time is supplied.
740 2006-08-15 Kenichi Handa <handa@m17n.org>
742 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New arg RET. If SRC
743 is exhausted, return with RET.
744 (detect_coding_emacs_mule, detect_coding_iso2022)
745 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
746 (detect_coding_utf_16, detect_coding_ccl): Adjusted for the above
749 2006-08-14 Chong Yidong <cyd@stupidchicken.com>
751 * keyboard.c (read_char): Don't reset idle timers if a time limit
754 2006-08-14 Kim F. Storm <storm@cua.dk>
756 * .gdbinit (pitx): Print iterator position.
757 Limit stack dump in case iterator is not initialized.
759 2006-08-12 Eli Zaretskii <eliz@gnu.org>
761 * frame.c (Fmouse_position, Fmouse_pixel_position)
762 (Fset_mouse_position, Fset_mouse_pixel_position): Doc fix.
764 2006-08-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
766 * xselect.c (Fx_register_dnd_atom): New function.
767 (syms_of_xselect): Defsubr it.
768 (x_handle_dnd_message): Check that message_type is in
769 dpyinfo->x_dnd_atoms before generating lisp event.
771 * xterm.h (struct x_display_info): Add x_dnd_atoms* to keep track
772 of drag and drop Atoms.
774 * xterm.c (x_term_init): Initialize dpyinfo->x_dnd_atoms*
776 2006-08-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
778 * keyboard.c: Define in_sighandler.
779 (input_available_signal): Set in_sighandler.
780 (init_keyboard): Initialize in_sighandler.
782 * keyboard.h: Declare in_sighandler.
784 * alloc.c (UNBLOCK_INPUT_ALLOC, BLOCK_INPUT_ALLOC): Use in_sighandler
785 to check if mutex should be locked or not.
787 2006-08-09 Richard Stallman <rms@gnu.org>
789 * keyboard.c (keyremap_step): No-op if fkey->parent = nil.
790 (read_key_sequence): Always start fkey.start and fkey.end at 0,
791 and likewise for keytran.
793 2006-08-09 Kenichi Handa <handa@m17n.org>
795 * coding.c (syms_of_coding): Improve the docstring
796 file-coding-system-alist.
798 2006-08-07 Andreas Schwab <schwab@suse.de>
800 * puresize.h (BASE_PURESIZE): Increase to 1120000.
802 2006-08-06 Chong Yidong <cyd@stupidchicken.com>
804 * buffer.c (Vchange_major_mode_hook, Qchange_major_mode_hook): New vars.
805 (Fkill_all_local_variables): Use it.
806 (syms_of_buffer): Defvar it.
808 2006-08-05 Eli Zaretskii <eliz@gnu.org>
810 * w32.c (w32_valid_pointer_p): New function.
812 * w32.h: Add prototype for w32_valid_pointer_p.
814 * alloc.c: Include w32.h.
815 (valid_lisp_object_p) [WINDOWSNT]: Call w32_valid_pointer_p to do
818 * keyboard.c (kbd_buffer_get_event): Return Qnil when current time
819 is exactly equal to end_time, not only when it is past that.
821 2006-08-04 Chong Yidong <cyd@stupidchicken.com>
823 * keyboard.c (read_char): Rebalance specpdl after receiving jump.
825 * process.c: Reapply 2006-08-01 change.
827 2006-08-04 Eli Zaretskii <eliz@gnu.org>
829 * w32fns.c (w32_query_font): Fix last change: use stricmp.
831 2006-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
833 * editfns.c (Fsubst_char_in_region): Redo the setup work after running
834 the before-change-functions since they may have altered the buffer.
836 2006-08-04 Ralf Angeli <angeli@caeruleus.net>
838 * w32fns.c (w32_createwindow): Handle -geometry command line option
839 and the geometry settings in the Registry.
841 2006-08-04 Kenichi Handa <handa@m17n.org>
843 * w32fns.c (w32_query_font): Compare names by ignoring case.
845 * xterm.c (x_query_font): Compare names by ignoring case.
847 2006-08-03 Jason Rumney <jasonr@gnu.org>
849 * w32menu.c (w32_menu_show, w32_dialog_show): Call Fsignal to quit
850 when no option selected.
852 2006-08-03 Chong Yidong <cyd@stupidchicken.com>
854 * process.c: Revert last change.
856 2006-08-01 Kim F. Storm <storm@cua.dk>
858 * process.c (wait_reading_process_output_unwind): New function.
859 Restores waiting_for_user_input_p to saved value.
860 (wait_reading_process_output): Unwind protect waiting_for_user_input_p
861 instead of save/restore old value on stack.
863 2006-07-30 Thien-Thi Nguyen <ttn@gnu.org>
865 * editfns.c: Undo 2006-06-27 change.
867 2006-07-29 Eli Zaretskii <eliz@gnu.org>
869 * coding.c (Ffind_operation_coding_system): Revert the change from
872 * alloc.c [WINDOWSNT]: Include fcntl.h, to fix last change.
874 2006-07-28 Richard Stallman <rms@gnu.org>
876 * xfaces.c (lookup_named_face, Fdisplay_supports_face_attributes_p):
877 Add conditional aborts for clarity.
879 * xdisp.c (update_menu_bar): New arg HOOKS_RUN. Callers changed.
880 Used to avoid running the hooks over and over for each frame.
881 (prepare_menu_bars): Pass value from update_menu_bar
882 as HOOKS_RUN of next call.
884 * keyboard.c (safe_run_hooks_1): Don't crash if Vrun_hooks is nil.
886 2006-07-28 Kim F. Storm <storm@cua.dk>
888 * alloc.c (valid_pointer_p): New function (from valid_lisp_object_p).
889 (valid_lisp_object_p): Use it to check for valid SUBRP obj.
891 2006-07-26 Chong Yidong <cyd@stupidchicken.com>
893 * keyboard.c (read_char): New arg END_TIME specifying timeout.
894 All callers changed. Turn off echoing if END_TIME is non-NULL.
895 (kbd_buffer_get_event): New arg END_TIME.
897 * lread.c (read_filtered_event): New arg SECONDS to wait until.
898 (Fread_char, Fread_event, Fread_char_exclusive): New arg SECONDS.
900 * lisp.h: Update read-char, read-event, and read_filtered_event
903 * keyboard.h: Include systime.h. Update read_char prototype.
905 2006-07-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
907 * alloc.c (find_string_data_in_pure): New function.
908 (make_pure_string): Use it to reuse existing string data if possible.
910 * puresize.h (BASE_PURESIZE): Decrease to 1102000.
912 2006-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
914 * keymap.c (Fdefine_key): If the key binding definition looks like an
915 XEmacs-style key sequence, convert it to Emacs's format.
917 2006-07-22 Ralf Angeli <angeli@caeruleus.net>
919 * w32fns.c (w32_createwindow): If `left' and/or `top' frame
920 parameters are bound to some values, use that instead of
923 2006-07-21 Eli Zaretskii <eliz@gnu.org>
925 * w32.c (convert_time): Use explicit long double constants to
926 ensure long double arithmetics is used throughout.
928 2006-07-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
930 * alloc.c (pure_bytes_used_lisp, pure_bytes_used_non_lisp): New vars.
931 (init_alloc_once): Initialize them.
932 (pure_alloc): Allocate non-Lisp objects from the end of pure storage
935 * puresize.h (BASE_PURESIZE): Decrease to 1141000.
937 2006-07-18 Francis Litterio <franl@world.std.com>
939 * w32term.c (x_calc_absolute_position): Fix frame positioning
940 with negative X/Y coordinates.
942 2006-07-18 Dan Nicolaescu <dann@ics.uci.edu>
944 * xterm.c (x_connection_closed, x_error_quitter): Mark as NO_RETURN.
946 * textprop.c (text_read_only): Likewise.
948 * lread.c (end_of_file_error): Likewise.
950 * lisp.h (circular_list_error, memory_full, buffer_memory_full):
953 * eval.c (unwind_to_catch): Likewise.
955 * buffer.h (buffer_slot_type_mismatch): Likewise.
957 2006-07-18 Kim F. Storm <storm@cua.dk>
959 Cleanup Fsignal calls that never returns; now only use it for Qquit.
961 * eval.c (xsignal): New func. Like Fsignal, but marked no-return.
962 (xsignal0, xsignal1, xsignal2, xsignal3): New no-return functions.
963 (signal_error): New no-return function (from xfaces.c).
964 (Fthrow): Use xsignal2 instead of Fsignal + abort.
965 (error): Use xsignal1 instead of Fsignal + abort.
966 (FletX, Flet, grow_specpdl): Use signal_error.
967 (Feval, Ffuncall, funcall_lambda): Use xsignal1, xsignal2.
969 * alloc.c (buffer_memory_full, memory_full): Use xsignal. Remove loop.
970 (list1): New function.
972 * lisp.h (list1): Add EXFUN.
973 (xsignal, xsignal0, xsignal1, xsignal2, xsignal3, signal_error):
974 Add prototypes. Mark them as no-return.
976 * buffer.c (Fbuffer_local_value, Fbarf_if_buffer_read_only):
979 * callint.c (check_mark): Use xsignal0.
981 * casefiddle.c (casify_object): wrong_type_argument is no-return.
983 * cmds.c (Fforward_char, Fdelete_char): Use xsignal0.
985 * coding.c (Fcheck_coding_system): Use xsignal1. Remove loop.
986 (Fdefine_coding_system_internal): Use xsignal1.
988 * data.c (circular_list_error): Use xsignal.
989 (wrong_type_argument): Use xsignal2. Don't care about return value.
990 (args_out_of_range, args_out_of_range_3): Use xsignal2, xsignal3.
991 Remove loop around Fsignal.
992 (indirect_variable, Fsymbol_value, set_internal, Fdefault_value)
993 (indirect_function, Findirect_function, Fstring_to_number)
994 (Fmakunbound, Ffmakunbound, Fsymbol_function, Ffset): Use xsignal1.
995 (arith_driver, float_arith_driver, Frem, Fmod, arith_error):
998 * doc.c (Fdocumentation): Use xsignal1.
1000 * editfns.c (region_limit, Fget_internal_run_time): Use xsignal0.
1002 * fileio.c (report_file_error): Use xsignal.
1003 (barf_or_query_if_file_exists, Fcopy_file, Fdelete_file)
1004 (Finsert_file_contents): Use xsignal2.
1005 (syms_of_fileio): Use list2, list3.
1007 * floatfns.c (arith_error, range_error, domain_error): Use xsignal2.
1008 (range_error2, domain_error2): Use xsignal3.
1009 (rounding_driver, fmod_float): Use xsignal0.
1010 (float_error): Use xsignal1.
1011 (matherr): Use xsignal.
1013 * fns.c (Flength): wrong_type_argument is no-return.
1014 (hashfn_user_defined, Fmake_hash_table): Use signal_error.
1015 (Fmd5): Use xsignal1.
1017 * frame.c (x_set_line_spacing, x_set_screen_gamma): Use signal_error.
1019 * keyboard.c (recursive_edit_1): Use xsignal1.
1021 * keymap.c (Fmap_keymap): Use xsignal1.
1023 * lread.c (Fload): Use xsignal2, signal_error.
1024 (end_of_file_error): Use xsignal0, xsignal1.
1025 (read0): Use xsignal1.
1026 (invalid_syntax): New error function marked no-return.
1027 (read_integer, read1, read_list): Use it.
1029 * macselect.c (x_get_local_selection): Use signal_error.
1031 * msdos.c (Fmsdos_set_mouse_buttons): Use xsignal2.
1033 * search.c (compile_pattern_1): Use xsignal1.
1034 (signal_failure): Remove (was only called once).
1035 (search_command): Use xsignal1 instead of signal_failure.
1037 * syntax.c (scan_lists): Use xsignal3.
1039 * textprop.c (text_read_only): Use xsignal0, xsignal1.
1041 * unexsol.c (unexec): Use xsignal.
1043 * window.c (window_scroll_pixel_based, window_scroll_line_based):
1046 * xfaces.c (signal_error): Move to eval.c.
1047 (resolve_face_name): Use xsignal1.
1049 * xfns.c (x_decode_color): Use signal_error.
1051 * xselect.c (x_get_local_selection, copy_multiple_data)
1052 (x_get_window_property_as_lisp_data)
1053 (lisp_data_to_selection_data, CHECK_CUT_BUFFER)
1054 (Fx_get_cut_buffer_internal): Use signal_error.
1056 2006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1058 * macterm.c (XTread_socket): Undo previous change.
1060 2006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1062 * macterm.c (keycode_to_xkeysym): Remove function. All uses now
1063 directly lookup keycode_to_xkeysym_table.
1064 [USE_MAC_TSM] (mac_handle_text_input_event): Don't construct
1065 ASCII_KEYSTROKE_EVENT for non-zero keycode_to_xkeysym_table entries.
1066 (XTread_socket): Use character codes to construct keypad key events.
1067 (mac_initialize_display_info) [MAC_OSX]: Use CGDisplaySamplesPerPixel.
1068 (x_delete_display): Apply 2006-07-04 change for xterm.c.
1070 2006-07-17 Richard Stallman <rms@gnu.org>
1072 * keyboard.c (Vcommand_error_function): New variable.
1073 (syms_of_keyboard): Defvar it.
1074 (cmd_error_internal): Simplify, and handle Vcommand_error_function.
1076 * dispnew.c (init_display): Mention DISPLAY as well as TERM in err msg.
1078 2006-07-17 Kim F. Storm <storm@cua.dk>
1080 * xdisp.c (handle_single_display_spec): Ensure the right value of
1081 it->position is saved by push_it.
1082 (pop_it): Restore it->object for GET_FROM_BUFFER and GET_FROM_STRING.
1083 (reseat_1): Don't setup it->object twice.
1084 (set_iterator_to_next): No need to set it->object after pop_it.
1085 (move_it_to): Explicitly check to see if last move reached to_charpos.
1087 2006-07-17 Thien-Thi Nguyen <ttn@gnu.org>
1089 * xdisp.c (display_mode_line): Preserve match data.
1091 2006-07-14 Kim F. Storm <storm@cua.dk>
1093 * w32.c (pfn_WSACreateEvent, pfn_WSACloseEvent): New func ptrs.
1094 (init_winsock): Load them. Use ws2_32.dll.
1095 (sys_listen): Undo last change. Just set FILE_LISTEN flag.
1096 (sys_accept): Undo last change. Instead, set child status to
1097 STATUS_READ_ACKNOWLEDGED and reset char_avail event so next
1098 sys_select will wakeup the reader thread.
1099 (_sys_wait_accept): New function used by reader thread to wait for
1100 an incoming connection on a server socket.
1102 * w32.h (_sys_read_ahead, _sys_wait_accept): Add prototypes.
1104 * w32proc.c (reader_thread): Use _sys_wait_accept to wait on a
1105 server socket (FILE_LISTEN flag).
1107 2006-07-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1109 * sound.c (alsa_init): Call snd_pcm_close after successful snd_pcm_open.
1111 2006-07-14 Kim F. Storm <storm@cua.dk>
1113 * w32.c: Fix high cpu load for server sockets.
1114 (pfn_WSAEventSelect): New function ptr.
1115 (init_winsock): Load it.
1116 (sys_listen): Set FILE_LISTEN flag. Set event mask for socket's
1117 char_avail event object to FD_ACCEPT.
1118 (sys_accept): Check FILE_LISTEN flag. Set event mask on new
1119 socket's char_avail event object to FD_READ|FD_CLOSE.
1121 * w32.h (FILE_LISTEN): New filedesc flag value.
1123 2006-07-13 Kim F. Storm <storm@cua.dk>
1125 * bytecode.c (Fbyte_code): Use CAR, CDR for Bcar, Bcdr.
1126 Use CAR_SAFE, CDR_SAFE for Bcar_safe, Bcdr_safe.
1127 Simplify loops and use CAR for Bnth and Belt.
1129 * data.c (Findirect_function): Optimize for no indirection.
1131 * eval.c (Fthrow): Remove loop around Fsignal.
1132 (Feval, Fapply, Ffuncall): Optimize for no function indirection.
1133 Use original function name in all signaled errors.
1134 Simplify Fsignal calls (no return).
1135 (funcall_lambda): Simplify Fsignal calls (no return).
1137 2006-07-13 Andreas Schwab <schwab@suse.de>
1139 * syntax.c (scan_sexps_forward): Use EMACS_INT for out_bytepos and
1142 2006-07-13 Kenichi Handa <handa@m17n.org>
1144 * editfns.c (Fformat): Fix calculation of text property positions
1147 2006-07-12 Kim F. Storm <storm@cua.dk>
1149 * lisp.h (CHECK_TYPE): New macro for generic type checking.
1150 (CAR_SAFE, CDR_SAFE): New macros.
1151 (ARRAYP, CHECK_ARRAY): New macros.
1152 (CHECK_VECTOR_OR_STRING, CHECK_SUBR): New macros.
1153 (CHECK_WINDOW_CONFIGURATION): New macro.
1154 (CHECK_LIST_CONS, CHECK_LIST_END): New checks for list traversal.
1155 (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
1156 (CHECK_STRING, CHECK_STRING_CAR, CHECK_CONS, CHECK_SYMBOL)
1157 (CHECK_CHAR_TABLE, CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE)
1158 (CHECK_BUFFER, CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS)
1159 (CHECK_NUMBER, CHECK_NATNUM, CHECK_MARKER, CHECK_OVERLAY)
1160 (CHECK_NUMBER_COERCE_MARKER, CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
1161 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER): Use CHECK_TYPE.
1163 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET):
1164 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Use CHECK_TYPE.
1166 * callint.c (Fcall_interactively):
1167 * casefiddle.c (casify_object):
1168 * editfns.c (general_insert_function):
1169 * fns.c (Flength, Felt, Ffillarray):
1170 * data.c (Fcar, Fcdr): Remove loop around wrong_type_argument.
1172 * data.c (wrong_type_argument): Remove loop around Fsignal.
1173 (Farrayp, Fsequencep): Use ARRAYP.
1175 (Fcar_safe): Use CAR_SAFE.
1177 (Fcdr_safe): Use CDR_SAFE.
1178 (Fsetcar, Fsetcdr): Use CHECK_CONS.
1179 (Fsubr_arity, Fsubr_name): Use CHECK_SUBR.
1180 (Faset): Use CHECK_ARRAY.
1182 * fns.c (Felt): Use CHECK_ARRAY.
1183 (concat): Use CHECK_NUMBER.
1184 (Fsubstring, substring_both): Use CHECK_VECTOR_OR_STRING.
1185 (Fmemq): Use CHECK_LIST.
1186 (Fassq, Fassoc, Frassq, Frassoc): Use CAR.
1187 (assq_no_quit): Use CAR_SAFE.
1188 (Fnthcdr, Fmember, Fdelq, Fdelete, Fnreverse, Fnconc):
1189 Use CHECK_LIST_CONS.
1190 (Freverse, Fplist_get, Flax_plist_get): Use CHECK_LIST_END.
1192 * bytecode.c (Fbyte_code): Use CHECK_VECTOR.
1194 * casetab.c (check_case_table):
1195 * category.c (check_category_table):
1196 * marker.c (Fcopy_marker):
1197 * syntax.c (check_syntax_table):
1198 * xfaces.c (load_pixmap): Use CHECK_TYPE.
1200 * fns.c (Fcopy_sequence, concat):
1201 * fringe.c (Fdefine_fringe_bitmap):
1202 * lread.c (check_obarray): Cleanup wrong_type_argument use.
1204 * keyboard.c (access_keymap_keyremap): Use ARRAYP.
1206 * keymap.c (Fdefine_key, Flookup_key):
1207 * macros.c (Fstart_kbd_macro): Use CHECK_VECTOR_OR_STRING.
1209 * mac.c (Fmac_get_preference): Use CHECK_LIST_END.
1211 * search.c (Fset_match_data): Use CHECK_LIST.
1213 * sunfns.c (sun_item_create): Use CHECK_LIST_CONS.
1215 * window.c (Fwindow_configuration_frame, Fset_window_configuration):
1216 (compare_window_configurations): Use CHECK_WINDOW_CONFIGURATION.
1218 2006-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1220 * Makefile.in (dired.o, editfns.o, fileio.o): Depend on blockinput.h.
1222 * dired.c: Include blockinput.h.
1223 (Ffile_attributes): Add BLOCK_INPUT around getpwuid/getgrgid.
1225 * editfns.c: Include blockinput.h.
1226 (Fuser_login_name, Fuser_full_name): Add BLOCK_INPUT around
1229 * fileio.c: Include blockinput.h.
1230 (Fexpand_file_name, search_embedded_absfilename): Add BLOCK_INPUT
1232 (search_embedded_absfilename): Remove spurious xfree.
1234 2006-07-11 Kim F. Storm <storm@cua.dk>
1236 * dispnew.c (sit_for): Reduce number of args from 5 to 3.
1237 Now just one TIMEOUT arg that can be a Lisp float or Lisp int.
1238 Combine args DISPLAY and INITIAL_DISPLAY into one arg DO_DISPLAY.
1239 Signal error if TIMEOUT is not a number.
1240 Undo 2006-06-14 change for non-preemptive display if TIMEOUT < 0.
1241 The rework of sit_for args also fixes several incorrect Qt args
1242 which should have been 1.
1243 (Fredisplay): Pass 1 instead of Qt to swallow_events and
1244 detect_input_pending_run_timers.
1246 * lisp.h (sit_for): Update prototype.
1247 (Fredisplay): Add EXFUN.
1249 * dispextern.h (sit_for): Remove prototype.
1251 * callint.c (Fcall_interactively):
1252 * minibuf.c (temp_echo_area_glyphs):
1253 * keyboard.c (command_loop_1, read_char, Fexecute_extended_command):
1254 * fileio.c (Fdo_auto_save): Update/simplify sit_for calls.
1256 2006-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
1258 * syntax.c (forw_comment): Also use EMACS_INT for buffer positions.
1260 2006-07-11 Kim F. Storm <storm@cua.dk>
1262 * dispnew.c (Fredisplay): Add FORCE argument to force redisplay when
1263 input is available. Fix test for redisplay_dont_pause non-nil.
1264 Specbind redisplay-dont-pause to t if FORCE non-nil.
1266 2006-07-10 Chong Yidong <cyd@stupidchicken.com>
1268 * puresize.h (BASE_PURESIZE): Increment to 1211000.
1270 * dispnew.c (Fredisplay): New function, equivalent to (sit-for 0).
1271 (Fsit_for): Function deleted.
1273 * keyboard.c (command_loop_1, Fexecute_extended_command):
1274 Call sit_for instead of Fsit_for.
1276 * minibuf.c (temp_echo_area_glyphs): Likewise.
1278 2006-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
1280 * syntax.c (Fforward_comment): Revert the reversion.
1281 (back_comment, scan_lists): Also use EMACS_INT for buffer positions.
1283 2006-07-09 John Paul Wallington <jpw@pobox.com>
1285 * syntax.c (Fforward_comment): Revert previous change.
1287 2006-07-09 Kim F. Storm <storm@cua.dk>
1289 * window.c (Fforce_window_update): Doc fix.
1291 2006-07-08 Stephen Gildea <gildea@stop.mail-abuse.org>
1293 * fileio.c (do_auto_save_make_dir): Make the auto-save-list-file
1294 directory unreadable for better user privacy.
1296 2006-07-07 Stefan Monnier <monnier@iro.umontreal.ca>
1298 * syntax.c (Fforward_comment): Fix int-32 vs EMACS_INT-64 mixup.
1300 * lread.c (read_filtered_event): Remove `register' qualifier because it
1301 causes compilation problem with gcc-4.0.2-20051125 on amd64.
1302 (readevalloop): Remove unused var `bpos'.
1303 Yet another int/Lisp_Object mixup (YAILOM).
1305 2006-07-07 Eli Zaretskii <eliz@gnu.org>
1307 * keyboard.c (Fexecute_extended_command): Mention the argument
1308 PREFIXARG in the doc string.
1310 2006-07-07 Kim F. Storm <storm@cua.dk>
1312 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
1314 2006-07-05 Chong Yidong <cyd@stupidchicken.com>
1316 * insdel.c (prepare_to_modify_buffer): For an indirect buffer, do
1317 clash detection using the base buffer.
1319 * puresize.h (BASE_PURESIZE): Increment to 1210500.
1321 2006-07-04 Kim F. Storm <storm@cua.dk>
1323 * xterm.c (x_delete_display): Don't free or derefence NULL pointers.
1325 2006-07-04 Kenichi Handa <handa@m17n.org>
1327 * fontset.c (Fset_overriding_fontspec_internal): Check if we need
1328 to update Voverriding_fontspec_alist.
1330 2006-07-03 Richard Stallman <rms@gnu.org>
1332 * xfns.c (Fx_create_frame): Move unwind_create_frame setup down.
1334 * xfaces.c (Fface_attribute_relative_p): Doc fix.
1336 * textprop.c (Fget_char_property_and_overlay): Doc fix.
1338 * eval.c (Fdefvaralias): Doc fix.
1340 2006-07-03 Kim F. Storm <storm@cua.dk>
1342 * dispnew.c (sit_for): Fix preempt condition.
1344 2006-07-02 Stefan Monnier <monnier@iro.umontreal.ca>
1346 * lread.c (read_filtered_event): Treat select-window just like
1349 2006-07-02 Kim F. Storm <storm@cua.dk>
1351 * xdisp.c (display_tool_bar_line): Skip glyphs which are too big
1352 to ever fit the tool-bar,
1353 (MAX_FRAME_TOOL_BAR_HEIGHT): New macro.
1354 (tool_bar_lines_needed): Use unused mode-line row as temp_row.
1355 (redisplay_tool_bar): Only clear desired matrix if we actually
1356 change the tool-bar window height. Only try to make the tool-bar
1357 window bigger if there is actually room for it.
1359 2006-06-30 Ralf Angeli <angeli@caeruleus.net>
1361 * w32term.c (x_make_frame_visible): Use SystemParametersInfo with
1362 SPI_GETWORKAREA to find the dimensions of the screen work area,
1363 and adjust vertical position of the frame in order to avoid being
1364 covered by the task bar.
1366 * w32fns.c (w32_createwindow): Use CW_USEDEFAULT instead of
1367 f->left_pos and SH_SHOW instead of f->top_pos in the call to
1368 CreateWindow. Record the actual position in f->left_pos and
1371 2006-06-30 John Paul Wallington <jpw@pobox.com>
1373 * w32console.c (syms_of_ntterm) <w32-use-full-screen-buffer>:
1374 Doc fix - default value has changed.
1376 2006-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1378 * mac.c [!TARGET_API_MAC_CARBON]: Don't include FixMath.h or Scrap.h.
1380 * macfns.c (Fx_create_frame): Apply 2006-06-24 change for xfns.c.
1382 * macgui.h (USE_MAC_TSM) [TARGET_API_MAC_CARBON]: Set default to 1.
1384 * macterm.c (Qeql): Add extern.
1385 (x_set_mouse_pixel_position) [MAC_OSX]: Use CGWarpMouseCursorPosition.
1386 (fm_style_face_attributes_alist) [USE_ATSUI]: New variable.
1387 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
1388 Change keys of Vmac_atsu_font_table from strings to numbers.
1389 (fm_style_to_face_attributes) [USE_ATSUI]: New function.
1390 (init_font_name_table) [USE_ATSUI]: Use it.
1391 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
1392 (syms_of_macterm) [USE_MAC_TSM]: Initialize and staticpro it.
1393 [USE_MAC_TSM] (mac_tsm_resume): Restore script and language codes
1394 only when saved_ts_script_language_on_focus coincides with
1395 Vmac_ts_script_language_on_focus.
1396 [USE_MAC_TSM] (mac_tsm_suspend): Save value of
1397 Vmac_ts_script_language_on_focus to saved_ts_script_language_on_focus.
1398 (XTread_socket) [USE_MAC_TSM]: Add Mac OS Classic support.
1399 [USE_MAC_TSM] (mac_handle_text_input_event, init_tsm): Likewise.
1401 2006-06-27 Chong Yidong <cyd@stupidchicken.com>
1403 * editfns.c (Fdelete_field, Ffield_string, Ffield_beginning)
1404 (Ffield_string_no_properties, Ffield_end): Mention
1405 args-out-of-range error condition in docstring.
1407 2006-06-27 Kim F. Storm <storm@cua.dk>
1409 * xdisp.c (handle_composition_prop): Set stop_charpos before push_it.
1411 2006-06-25 Kim F. Storm <storm@cua.dk>
1413 * s/gnu-linux.h (SIGNALS_VIA_CHARACTERS): Define for Linux kernel
1414 version 2.4 and later.
1416 2006-06-24 Chong Yidong <cyd@stupidchicken.com>
1418 * xfns.c (Fx_create_frame): Set font parameter directly instead of
1419 using x_default_parameter, since x_get_args clears the parm alist.
1421 2006-06-24 Eli Zaretskii <eliz@gnu.org>
1423 * dired.c (directory_files_internal) [WINDOWSNT]: Find files
1426 2006-06-24 Aidan Kehoe <kehoea@parhasard.net>
1428 * lread.c (read_escape): When an unknown Unicode code point is
1429 encountered as a string or character escape, signal an error.
1431 2006-06-23 Kim F. Storm <storm@cua.dk>
1433 * .gdbinit (pitx): Dump iterator stack.
1435 * xdisp.c (handle_composition_prop): Push iterator on stack.
1436 (set_iterator_to_next): Pop iterator at end of composition.
1438 2006-06-23 Martin Rudalics <rudalics@gmx.at>
1440 * fileio.c (Frename_file) [DOS_NT]: Don't try to move directory to
1441 itself on DOS_NT platforms, if the old and new names are identical
1442 but for the letter-case.
1444 2006-06-21 Kim F. Storm <storm@cua.dk>
1446 * dispextern.h (struct it): Add `position' member to iterator stack.
1447 Rename `pos' member to `current'. Rearrange and add comments.
1449 * xdisp.c (handle_stop): Set it->ignore_overlay_strings_at_pos_p
1450 if we get any overlays.
1451 (set_cursor_from_row): Don't clobber `end' if we rescan from
1453 (push_it, pop_it): Save it->position.
1455 2006-06-19 Richard Stallman <rms@gnu.org>
1457 * window.c (size_window): New arg FIRST_ONLY. All callers changed.
1458 (adjust_window_trailing_edge): Specially compute FIRST_PARALLEL
1459 for the case of a top-level window and the following minibuffer.
1460 Don't exit because of no `next' when there is a parent.
1461 Use the FIRST_ONLY feature when resizing following windows.
1463 * syntax.c (init_syntax_once): Give most control chars' syntax Spunct.
1465 2006-06-17 Kim F. Storm <storm@cua.dk>
1467 * dispnew.c (update_frame): Check for input pending on entry.
1468 (update_window, update_frame_1): Break loop if input is detected.
1470 2006-06-16 Francis Litterio <flitterio@gmail.com>
1472 * xterm.c (x_check_expected_move, handle_one_xevent)
1473 (x_set_offset, x_check_fullscreen): Extensive changes to make
1474 frame positioning deterministic under X.
1476 * xterm.h (x_output): Added members left_before_move and
1477 top_before_move. Removed members expected_left and expected_top.
1479 2006-06-16 Kim F. Storm <storm@cua.dk>
1481 * dispextern.h (struct it): Add union to iterator stack to save
1482 image, composition, and stretch specific paramters.
1484 * xdisp.c (next_overlay_string): Fix assert.
1485 (push_it, pop_it): Handle composition and stretch specific values.
1486 Only handle it->slice in image (for now).
1487 (back_to_previous_visible_line_start): Continue search if newline is
1488 part of a compisition. Simplify.
1489 (reseat_1): Set it->object to buffer.
1490 (set_iterator_to_next): Set it->object to string or buffer, when
1491 setting it->method to GET_FROM_STRING or GET_FROM_BUFFER.
1492 (next_element_from_composition): Set it->object to buffer if not
1494 (set_cursor_from_row): Only save start of string if not already
1495 done to handle multiple strings in a row.
1497 * .gdbinit (pitx): Show composition parameters.
1498 (pgx, pg): New commands to print a glyph structure.
1499 (pgi, pgn): New commands to print specific/next glyph.
1500 (pgrowx, pgrow): New commands to print all glyphs in a row.
1502 2006-06-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1504 * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
1505 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use CGDisplayScreenSize.
1507 * macterm.c (do_app_resume, do_app_suspend): Remove functions.
1508 (mac_tsm_resume, mac_tsm_suspend) [USE_MAC_TSM]: New functions.
1509 (mac_handle_window_event, XTread_socket) [USE_MAC_TSM]: Use them.
1510 (Vmac_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
1511 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
1512 (saved_ts_language, saved_ts_component) [USE_MAC_TSM]: New variables.
1513 (mac_initialize_display_info) [MAC_OSX]: Use Quartz Display
1514 Services functions to get size of main display in pixels.
1516 2006-06-14 Chong Yidong <cyd@stupidchicken.com>
1518 * xdisp.c (back_to_previous_visible_line_start):
1519 Reset it->continuation_lines_width.
1521 2006-06-14 Richard Stallman <rms@gnu.org>
1523 * eval.c (Fdefconst): Mark variable as risky.
1525 * callproc.c (Fcall_process): Doc fix.
1527 * window.c (adjust_window_trailing_edge): Don't break out of the loop
1528 because there's no next window, if there are parallel windows.
1529 Do break out when WINDOW is nil.
1531 2006-06-14 Kim F. Storm <storm@cua.dk>
1533 * dispextern.h (IT_STACK_SIZE): New macro specifying size of
1534 iterator stack (instead of hardcoded number). Increase from 2 to
1535 4 to make room for propertized overlay strings before and after a
1536 display string, image or composition.
1537 (struct it): Add image_id and method members to iterator stack.
1539 * xdisp.c (init_from_display_pos): Don't set it->method and
1540 overlay_string_index after pop_it. Add asserts.
1541 (handle_stop): Look for overlay strings around a display string,
1542 image, or composition. Handle properties on those strings.
1543 (next_overlay_string): Don't set string, pos or method after pop_it.
1544 (get_overlay_strings_1): Split from get_overlay_strings; don't
1545 modify it if no overlay strings are found.
1546 (get_overlay_strings): Use get_overlay_strings_1. Always set
1547 it->string and it->method.
1548 (push_it): Push it->image_id and it->method. Push it->object
1549 instead of it->string if method is GET_FROM_IMAGE.
1550 (pop_it): Pop it->image_id and it->method. Ppo it->object
1551 instead of it->string if method is GET_FROM_IMAGE.
1552 Reset it->current.string_pos if popped it->string is nil.
1553 (reseat_1): Remove comment dated 19 May 2003. It expressed doubt
1554 whether a given change was correct; but the change is correct.
1555 Clear it->string_from_display_prop_p.
1556 (set_iterator_to_next): Rely on it->method and it->image_id from
1557 iterator stack, instead of setting them explicitly after pop_it.
1559 * dispnew.c (sit_for): Undo 2006-06-01 change. Instead, a
1560 negative time forces redisplay even when input is available.
1561 (Fsit_for): Doc fix.
1563 2006-06-13 Kim F. Storm <storm@cua.dk>
1565 * dispnew.c: Modify preemptive redisplay to be based on periodic
1567 (PERIODIC_PREEMPTION_CHECKING): Define to 1 iff EMACS_HAS_USECS.
1568 (Vredisplay_preemption_period): New variable.
1569 (syms_of_display): DEFVAR_LISP and initialize it.
1570 (preemption_period, preemption_next_check): New variables.
1571 (update_frame, update_single_window): Initialize them based on
1572 Vredisplay_preemption_period if !force_p.
1573 (update_window, update_frame_1): Use them to determine when to
1576 2006-06-03 Aidan Kehoe <kehoea@parhasard.net>
1578 * lread.c (read_escape): Provide a Unicode character escape
1579 syntax; \u followed by exactly four or \U followed by exactly
1580 eight hex digits in a comment or string is read as a Unicode
1581 character with that code point.
1583 2006-06-09 Eli Zaretskii <eliz@gnu.org>
1585 * window.c (window_scroll_pixel_based): Signal "Beginning of
1586 buffer" when scroll-down at the beginning of an empty buffer.
1588 2006-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1590 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
1591 Exclude 0x7f from ASCII range.
1593 2006-06-05 Jason Rumney <jasonr@gnu.org>
1595 * w32term.c (w32_set_scroll_bar_thumb, x_scroll_bar_create)
1596 (w32_set_vertical_scroll_bar, w32_scroll_bar_handle_click)
1597 (x_scroll_bar_report_motion): Remove workarounds for
1598 versions of Windows NT < 3.51.
1600 (pfnSetScrollInfo, pfnGetScrollInfo): Remove.
1601 (w32_initialize): Don't dynamically load Get/SetScrollInfo.
1603 2006-06-04 David Kastrup <dak@gnu.org>
1605 * dispnew.c: Mention `redisplay-dont-pause' in doc string of
1608 2006-06-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1610 * macfns.c (x_set_icon_name): Apply 2006-06-02 change for xfns.c.
1612 * macgui.h (USE_MAC_TSM): Set default to 1 on Mac OS X.
1614 * macterm.c (tsm_document_id) [USE_MAC_TSM]: New variable.
1615 (Qtext_input, Qupdate_active_input_area, Qunicode_for_key_event)
1616 [USE_MAC_TSM]: Likewise.
1617 (syms_of_macterm) [USE_MAC_TSM]: Intern and staticpro them.
1618 (Qbefore_string) [USE_MAC_TSM]: Add extern.
1619 (do_app_resume, do_app_suspend) [USE_MAC_TSM]: Call
1620 ActivateTSMDocument/DeactivateTSMDocument.
1621 (mac_store_event_ref_as_apple_event): Call mac_post_mouse_moved_event.
1622 (mac_handle_window_event) [USE_MAC_TSM]: Handle
1623 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
1624 (mac_handle_text_input_event) [USE_MAC_TSM]: New function.
1625 (install_window_handler) [USE_MAC_TSM]: Install it. Register
1626 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
1627 (keycode_to_xkeysym_table): Add entry for f16.
1628 (XTread_socket) [USE_MAC_TSM]: Set/reset read_socket_inev
1629 before/after passing keystroke event to toolbox dispatcher.
1630 (init_tsm) [USE_MAC_TSM]: New function.
1631 (mac_initialize) [USE_MAC_TSM]: Call it.
1632 (Vmac_ts_active_input_overlay) [USE_MAC_TSM]: New defvar.
1634 * macterm.h (EVENT_PARAM_TEXT_INPUT_SEQUENCE_NUMBER): New enumerator.
1636 2006-06-02 John Paul Wallington <jpw@gnu.org>
1638 * xfns.c (x_set_name_internal): Set icon to `text', derived from
1639 name, when frame's icon_name isn't a string rather than only when
1642 2006-06-03 Eli Zaretskii <eliz@gnu.org>
1644 * w32fns.c (x_set_icon_name): Don't use arg if it's not a string
1647 2006-06-02 Chong Yidong <cyd@stupidchicken.com>
1649 * xfns.c (x_set_icon_name): No-op if arg is non-nil and not a
1652 2006-06-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1654 * xdisp.c (next_element_from_composition): Set it->object to
1655 it->string if composition is coming from string.
1656 (set_cursor_from_row): Don't return 0 unless row displays a
1658 (dump_glyph): Dump composite glyph.
1660 2006-06-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1662 * gtkutil.c (menu_nav_ended): Check that menubar_widget is not NULL.
1664 2006-06-01 Richard Stallman <rms@gnu.org>
1666 * window.c (Fsplit_window): Doc fix.
1668 2006-06-01 Micha
\e,Ak
\e(Bl Cadilhac <michael.cadilhac@lrde.org>
1670 * process.c (deleted_pid_list): New variable to store the pids
1671 of deleted processes. Declare it only if SIGCHLD is defined.
1672 (init_process): Initialize it.
1673 (syms_of_process): Staticpro it.
1674 (Fdelete_process): Add pid of the deleted process to it. Check after
1675 the addition and before the kill if the process is already stopped,
1676 in which case it is deleted from the list and not killed.
1677 (sigchld_handler): Define it only if SIGCHLD is. Search the process
1678 that signaled Emacs in `deleted_pid_list' before `Vprocess_alist'.
1679 Original idea by Stefan Monnier.
1681 2006-06-01 Kim F. Storm <storm@cua.dk>
1683 * dispnew.c (sit_for): Perform redisplay even if input is pending
1684 when redisplay-dont-pause is non-nil.
1686 2006-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1688 * macterm.c (mac_handle_visibility_change): Set buf.arg to Qnil.
1689 (XTread_socket): Remove obsolete comment.
1691 2006-06-01 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1693 * xmenu.c (syms_of_xmenu): Make accelerate-menu an alias for
1696 2006-06-01 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1698 * xmenu.c (Fmenu_bar_open, syms_of_xmenu): Change menu-bar-start to
1701 * gtkutil.c (menu_nav_ended): Change x-menu-bar-start to menu-bar-open.
1703 2006-05-31 Juri Linkov <juri@jurta.org>
1705 * minibuf.c (Vhistory_add_new_input): New variable.
1706 (read_minibuf): Use it.
1707 (syms_of_minibuf) <history-add-new-input>: New Lisp variable.
1708 (syms_of_minibuf) <history-delete-duplicates>: Doc fix.
1710 2006-05-31 Kim F. Storm <storm@cua.dk>
1712 * process.c (select_wrapper): Add wrapper around select to work around
1713 "incomplete backtrace" bug in gdb 5.3, when emacs is stopped inside
1714 select called from wait_reading_process_output.
1716 2006-05-30 Andreas Schwab <schwab@suse.de>
1718 * xmenu.c (Fmenu_bar_start): Return a value.
1720 2006-05-30 Richard Stallman <rms@gnu.org>
1722 * coding.c (Ffind_operation_coding_system): Doc fix.
1724 2006-05-30 Eli Zaretskii <eliz@gnu.org>
1726 * w32term.c (x_draw_hollow_cursor): Fix last change.
1728 2006-05-29 Kim F. Storm <storm@cua.dk>
1730 * w32term.c (x_draw_stretch_glyph_string): Fix last change.
1732 2006-05-29 Eli Zaretskii <eliz@gnu.org>
1734 * coding.c (Ffind_operation_coding_system): Doc fix.
1736 2006-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1738 * macfns.c [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility):
1739 Call mac_set_font_info_for_selection if font panel is made visible.
1741 * macterm.c (font_panel_shown_p) [USE_MAC_FONT_PANEL]: New variable.
1742 (mac_font_panel_visible_p, mac_show_hide_font_panel)
1743 [USE_MAC_FONT_PANEL]: New functions.
1744 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Return
1745 immediately if font panel is not visible.
1747 * macterm.h (mac_font_panel_visible_p, mac_show_hide_font_panel):
1750 2006-05-29 Dan Nicolaescu <dann@ics.uci.edu>
1752 * search.c (matcher_overflow): Mark as NO_RETURN.
1754 * xterm.c (x_connection_closed): Likewise.
1756 * sysdep.c (croak): Likewise.
1758 * sound.c (sound_perror, alsa_sound_perror): Likewise.
1760 * lisp.h (die, nsberror): Likewise.
1762 2006-05-29 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1764 * sound.c (alsa_open, alsa_configure, alsa_write): Move
1765 assignment to err out of if-statement.
1767 * gtkutil.c (menu_nav_ended): New function.
1768 (create_menus): Connect menu_nav_ended to "selection-done" to fix
1771 * xmenu.c (Fmenu_bar_start): New function for USE_GTK and USE_X_TOOLKIT.
1773 2006-05-28 Dan Nicolaescu <dann@ics.uci.edu>
1775 * charset.h (invalid_character): Mark as NO_RETURN.
1777 2006-05-29 Kenichi Handa <handa@m17n.org>
1779 * coding.c (Ffind_operation_coding_system): Call a function by
1780 safe_call1 instead of call1.
1782 2006-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
1784 * window.c (struct saved_window): Add `dedicated'.
1785 (Fset_window_configuration, save_window_save): Save/restore the
1788 2006-05-28 Kim F. Storm <storm@cua.dk>
1790 * xdisp.c (set_cursor_from_row): If cursor cannot be set in row,
1791 don't update w->cursor and return 0. Return 1 on success.
1792 (try_cursor_movement): Repeat set_cursor_from_row on successive rows
1795 * dispextern.h (set_cursor_from_row): Update prototype.
1797 2006-05-28 Kim F. Storm <storm@cua.dk>
1799 * xdisp.c (get_phys_cursor_geometry): Return computed x and y through
1800 parameters. Adjust x and width in case cursor in on a partially
1801 visible stretch glyph on the left edge.
1802 (erase_phys_cursor): Don't erase into left fringe/margin in case
1803 previous cursor glyph is a partially visible stretch glyph on left.
1805 * dispextern.h (get_phys_cursor_geometry): Update prototype.
1807 * xterm.c (x_draw_stretch_glyph_string): Fix problems with invisible
1808 cursor and erasing cursor on partially visible stretch glyph on left.
1809 (x_draw_hollow_cursor): Compute x via get_phys_cursor_geometry.
1811 * macterm.c: Likewise.
1813 * w32term.c: Likewise.
1815 2006-05-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1817 * macselect.c (mac_handle_apple_event):
1818 Return errAEEventNotHandled if key binding is not found.
1820 2006-05-26 Eli Zaretskii <eliz@gnu.org>
1822 * emacs.c (main) [PROFILING]: Enable also for __MINGW32__.
1823 [__MINGW32__]: MinGW-specific declaration of `etext'.
1825 * w32heap.c (etext, edata): Remove unused definitions.
1827 2006-05-26 Chong Yidong <cyd@stupidchicken.com>
1829 * fileio.c (Fcopy_file): Delete argument MUSTBENEW.
1830 Incorporate the exclusive file-opening functionality into the behavior
1831 when OK-IF-ALREADY-EXISTS is nil.
1832 (Frename_file): Call Fcopy_file without MUSTBENEW argument.
1834 2006-05-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1836 * sound.c (alsa_configure): Move get period/buffer_size after
1839 2006-05-26 Kenichi Handa <handa@m17n.org>
1841 * coding.c (Ffind_operation_coding_system): Allow (FILENAME
1842 . BUFFER) in TARGET.
1844 2006-05-25 Chong Yidong <cyd@stupidchicken.com>
1846 * image.c (png_load): Don't call fclose on NULL.
1848 2006-05-25 Luc Teirlinck <teirllm@auburn.edu>
1850 * fns.c (Fyes_or_no_p):
1851 * callint.c (Fcall_interactively): Fread_from_minibuffer now takes
1854 2006-05-25 Juri Linkov <juri@jurta.org>
1856 * lisp.h (Fread_from_minibuffer): Decrement number of args.
1858 * minibuf.c (read_minibuf): Remove arg KEEP_ALL. Callers changed.
1859 (Fread_from_minibuffer): Remove arg KEEP_ALL. Callers changed.
1861 * buffer.c (mode-line-format): Fix docstring.
1863 2006-05-25 Richard Stallman <rms@gnu.org>
1865 * emacs.c (main, Fdump_emacs): Don't test __linux or __linux__.
1867 2006-05-24 Luc Teirlinck <teirllm@auburn.edu>
1869 * puresize.h (BASE_PURESIZE): Increase to 1210000.
1871 2006-05-24 Alan Mackenzie <acm@muc.de>
1873 * lread.c (Vload_history): Enhance doc-string to say that the file
1874 is the absolute truename of the loaded file.
1876 * lread.c (Vafter_load_alist): doc-string: state that an element
1877 now has a regexp to match file names, not a file name as such.
1879 * lread.c (readevalloop): Call file-truename on the name for
1880 load-history, except at preloading time.
1882 * lread.c (Fload): At preloading time, preserve the extension of
1883 the filename which goes into load-history. New var hist_file_name.
1885 * lread.c (Fload): Do eval-after-load stuff by calling the lisp
1886 function do-after-load-evaluation.
1888 2006-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1890 * mac.c (ae_attr_table): New variable.
1891 (syms_of_mac): Intern and staticpro its elements.
1892 (mac_aelist_to_lisp): Also convert Apple event attributes.
1893 (mac_ae_put_lisp): New function.
1894 (create_apple_event_from_event_ref) [MAC_OSX]: Use typeUTF8Text.
1896 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor etc.
1898 * macselect.c (Qemacs_suspension_id): New variable.
1899 (syms_of_macselect): Intern and staticpro it.
1900 (struct suspended_ae_info): New struct.
1901 (deferred_apple_events, defer_apple_events)
1902 (Fmac_process_deferred_apple_events): Use it.
1903 (suspended_apple_events): New variable.
1904 (mac_handle_apple_event_1): New function.
1905 (mac_handle_apple_event): Use it. Don't process previously
1907 (cleanup_suspended_apple_events, get_suspension_id)
1908 (cleanup_all_suspended_apple_events): New functions.
1909 (init_apple_event_handler): Call cleanup_all_suspended_apple_events
1911 (Fmac_cleanup_expired_apple_events, Fmac_ae_set_reply_parameter)
1912 (Fmac_resume_apple_event): New defuns.
1913 (syms_of_macselect): Defsubr them.
1915 * macterm.c (fn_keycode_to_keycode_table, XTread_socket) [MAC_OSX]:
1916 Fix last change. Don't map `fn' modifier if pressed with F1 ... F12.
1918 * macterm.h (TYPE_FILE_NAME): Change from macro to enumerator.
1919 (KEY_EMACS_SUSPENSION_ID_ATTR): New enumerator.
1920 (keyReplyRequestedAttr) [MAC_OS_X_VERSION_MAX_ALLOWED < 1030]: Likewise.
1921 (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
1922 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
1924 (typeUTF8Text, kEventParamWindowMouseLocation)
1925 [MAC_OSX && MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Likewise.
1926 (x_get_focus_frame, mac_ae_put_lisp): Add externs.
1928 2006-05-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1930 * macterm.c (fn_keycode_to_xkeysym_table, convert_fn_keycode): Remove.
1931 (fn_keycode_to_keycode_table) [MAC_OSX]: New variable.
1932 (mac_set_unicode_keystroke_event) [TARGET_API_MAC_CARBON]: New function.
1933 (XTread_socket) [TARGET_API_MAC_CARBON]: Use it.
1934 (XTread_socket) [MAC_OSX]: Try 'uchr' Unicode keyboard-layout
1935 resource to backtranslate key with modifiers.
1936 (XTread_socket): Don't set read_socket_inev around AEProcessAppleEvent.
1938 2006-05-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1940 * xterm.c: Remove declarations already in xterm.h
1942 * xterm.h: Add extern declarations for x_clear_errors,
1943 x_fully_uncatch_errors, x_catching_errors and
1944 x_alloc_lighter_color_for_widget. Remove duplicated declarations.
1946 2006-05-21 Richard Stallman <rms@gnu.org>
1948 * xfaces.c (best_matching_font): Abort for best == NULL
1949 before we start to use it.
1951 * buffer.c (syms_of_buffer, Fmake_overlay): Doc fixes.
1953 2006-05-20 Kim F. Storm <storm@cua.dk>
1955 * xfaces.c (best_matching_font): Fix crash in 2006-05-17 change.
1957 2006-05-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1959 * macterm.c (convert_fn_keycode): Fix last change.
1961 2006-05-19 Eli Zaretskii <eliz@gnu.org>
1963 * w32.c (init_environment): Perform the processing of environment
1964 variables on a copy of default variables and their values, not on
1965 the original. Simplify code that calls ExpandEnvironmentStrings
1966 and make buf1[] and buf2[] more visible for easier debugging.
1968 2006-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1970 * frame.c (x_set_border_width): Remove #ifndef MAC_OS.
1972 * image.c [MAC_OS] (gif_load): Allocate Lisp string first.
1974 * macfns.c (Fx_focus_frame): Don't check dpyinfo->x_focus_frame.
1976 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON && MAC_OSX]:
1977 Forward keyUp events to toolbox_dispatcher.
1979 * window.c (foreach_window): Check WINDOWP (FRAME_ROOT_WINDOW (f)).
1981 2006-05-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1983 * config.in: Regenerated (HAVE_ALSA).
1985 * sound.c (alsa_sound_perror, alsa_open, alsa_period_size)
1986 (alsa_configure, alsa_close, alsa_choose_format, alsa_write)
1987 (snd_error_quiet, alsa_init): New functions.
1988 (vox_init): Return 0 if unable to open device.
1989 (Fplay_sound_internal): Test for alsa first and use vox (oss) as
1991 (struct sound_device): Add period_size.
1992 (wav_play, au_play): Use period_size if set.
1994 * Makefile.in (CFLAGS_SOUND): New flags for ALSA
1995 (ALL_CFLAGS): Add CFLAGS_SOUND
1997 2006-05-18 Kenichi Handa <handa@m17n.org>
1999 * callproc.c (Fcall_process): Reject encoding arguments by
2000 ascii-incompatible coding systems (e.g. utf-16).
2002 * coding.c (Qascii_incompatible): New variable.
2003 (syms_of_coding): Setup Qascii_incompatible.
2004 (setup_coding_system): Be sure to initialize coding->common_flags.
2005 Check `ascii-incompatible' property of the coding system.
2007 * coding.h (CODING_ASCII_INCOMPATIBLE_MASK): New macro.
2009 2006-05-18 Kim F. Storm <storm@cua.dk>
2011 * xdisp.c (display_tool_bar_line): Restore entire tool-bar
2012 geometry when backtracking in case last image doesn't fit on line.
2014 2006-05-18 MIYOSHI Masanori <miyoshi@meadowy.org> (tiny change)
2016 * xdisp.c (display_tool_bar_line): Don't adjust tool-bar height by
2017 more than height of one frame default line.
2019 2006-05-17 Richard Stallman <rms@gnu.org>
2021 * xfaces.c (better_font_p): Any font beats no font.
2022 (best_matching_font): Simplify based on above change.
2024 * buffer.c (Fprevious_overlay_change, Fnext_overlay_change): Doc fixes.
2026 2006-05-16 Kim F. Storm <storm@cua.dk>
2028 * xterm.c (handle_one_xevent): Check that f is not NULL before
2029 calling x_kill_gs_process.
2031 2006-05-14 Richard Stallman <rms@gnu.org>
2033 * textprop.c (Fnext_single_char_property_change)
2034 (Fprevious_single_char_property_change): Don't allow returning
2035 value beyond LIMIT in any cases.
2036 (Fnext_char_property_change, Fprevious_char_property_change): Doc fix.
2038 * intervals.c (get_local_map): Abort if POSITION outside BEGV, ZV.
2040 2006-05-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2042 * xterm.c (handle_one_xevent): Check that f is not NULL before
2043 calling _XEditResCheckMessages.
2045 2006-05-14 Kim F. Storm <storm@cua.dk>
2047 * xterm.c (handle_one_xevent): Fix crash in 2006-03-24 change.
2049 2006-05-13 Eli Zaretskii <eliz@gnu.org>
2051 * frame.c (x_set_border_width): Fix error message to say "frame",
2054 * Makefile.in (SOME_MACHINE_LISP): Add fringe.elc.
2056 2006-05-12 Chong Yidong <cyd@stupidchicken.com>
2058 * intervals.c (set_point_both): Fix mixup before before and after
2061 * editfns.c (Fline_beginning_position): Inhibit point-motion hooks
2062 while setting point temporarily.
2064 2006-05-11 Richard Stallman <rms@gnu.org>
2066 * lread.c (readevalloop): Abort if START non-nil for non-buffer input.
2068 2006-05-11 Kim F. Storm <storm@cua.dk>
2070 * xdisp.c (redisplay_tool_bar): Handle large tool-bar-border values.
2072 2006-05-11 Kenichi Handa <handa@m17n.org>
2074 * fileio.c (Finsert_file_contents): Fix for the case of IO error
2075 while handling replace operation.
2077 2006-05-10 Kenichi Handa <handa@m17n.org>
2079 * xfaces.c (realize_default_face) [HAVE_X_WINDOWS]: If the font
2080 chosen for the default face was different from the frame font,
2081 adjust the frame font.
2083 2006-05-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2085 * image.c (Qduration) [MAC_OS]: Undo previous change.
2086 (syms_of_image) [MAC_OS]: Likewise.
2087 [MAC_OS] (gif_load): Emulate Graphic Control Extension block.
2089 * macfns.c (x_to_mac_color): Fix shift amount change.
2090 (mac_set_font) [USE_MAC_FONT_PANEL]: Use x_get_focus_frame.
2091 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): Doc fix.
2093 * macselect.c (Vmac_service_selection) [MAC_OSX]: Rename from
2094 Vmac_services_selection. All uses changed.
2095 (mac_store_service_event): Rename from mac_store_services_event in
2098 * macterm.c (Qservice) [MAC_OSX]: Rename from Qservices. All uses
2100 [MAC_OSX] (mac_store_service_event): Rename from
2101 mac_store_services_event. All callers changed.
2102 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Add args
2103 FACE_ID and C. All callers changed.
2104 (x_free_frame_resources) [USE_MAC_FONT_PANEL]: Call
2105 mac_set_font_info_for_selection when focus frame is destroyed.
2106 (XTread_socket): Revert to FrontNonFloatingWindow/FrontWindow.
2108 * macterm.h (mac_set_font_info_for_selection): Add 2nd and 3rd
2111 2006-05-09 Chong Yidong <cyd@stupidchicken.com>
2113 * keymap.c (describe_map): Avoid generating duplicate entries if
2114 the shadowed binding has the same definition.
2116 2006-05-09 Kenichi Handa <handa@m17n.org>
2118 * keymap.c (push_key_description): Handle invalid character key.
2120 2006-05-08 Kenichi Handa <handa@m17n.org>
2122 * callproc.c (Fcall_process): Use system_eol_type for encoding
2123 arguments if eol_type is not yet decided.
2125 * coding.h (system_eol_type): Extern it.
2127 * coding.c (setup_coding_system): For invalid coding-system, set
2128 coding->eol_type to CODING_EOL_UNDECIDED.
2129 (encode_coding): Cancel previous change.
2130 (shrink_encoding_region): Likewise.
2131 (code_convert_region1): Likewise.
2132 (code_convert_string1): Likewise.
2133 (code_convert_string_norecord): Likewise.
2135 * fileio.c (choose_write_coding_system): Use system_eol_type for
2136 encoding if eol_type is not yet decided.
2138 * process.c (setup_process_coding_systems): Use system_eol_type
2139 for encoding if eol_type is not yet decided.
2140 (read_process_output): Likewise.
2141 (send_process): Likewise.
2143 2006-05-07 Juanma Barranquero <lekktu@gmail.com>
2145 * minibuf.c (syms_of_minibuf) <history-length>: Fix typo in doc.
2147 2006-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2149 * mac.c (Fmac_clear_font_name_table): Move defun to macfns.c.
2150 (syms_of_mac): Likewise for defsubr.
2152 * macfns.c (mac_set_font): New function.
2153 (mac_frame_parm_handlers, syms_of_macfns): Replace x_set_font with it.
2154 (mac_window) [TARGET_API_MAC_CARBON && MAC_OSX]: Specify
2155 kWindowToolbarButtonAttribute when creating window.
2156 (Fmac_clear_font_name_table): Move from macfns.c.
2157 (syms_of_macfns): Likewise for defsubr.
2158 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): New defun.
2159 (syms_of_macfns) [USE_MAC_FONT_PANEL]: Defsubr it.
2161 * macgui.h (USE_MAC_FONT_PANEL): Define to 1 if USE_ATSUI is set
2162 and build is done on Mac OS X 10.2 and later.
2164 * macselect.c (mac_do_receive_drag): Remove unused variable `index'.
2165 (mac_store_services_event): Change return type in extern.
2167 * macterm.c (XLoadQueryFont) [USE_ATSUI]: Set font->mac_fontnum to
2169 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): New function.
2170 (x_new_focus_frame) [USE_MAC_FONT_PANEL]: Use it.
2171 (QCfamily, QCweight, QCslant, Qnormal, Qbold, Qitalic): Add extern.
2172 (QWindow) [MAC_OSX]: Likewise.
2173 (Qfont) [USE_MAC_FONT_PANEL]: Likewise.
2174 (Vmac_atsu_font_table) [USE_ATSUI]: New variable.
2175 (syms_of_macterm) [USE_ATSUI]: Defvar it.
2176 (Qtoolbar_switch_mode) [MAC_OSX]: New variable.
2177 (Qpanel_closed, Qselection) [USE_MAC_FONT_PANEL]: Likewise.
2178 (syms_of_macterm): Intern and staticpro them.
2179 (init_font_name_table) [USE_ATSUI]: Add data to Vmac_atsu_font_table.
2180 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event): New
2182 [USE_CARBON_EVENTS] (mac_handle_command_event): Use it.
2183 [MAC_OSX] (mac_store_services_event): Likewise.
2184 [USE_CARBON_EVENTS] (mac_handle_window_event) [MAC_OSX]: Handle
2185 kEventWindowToolbarSwitchMode event.
2186 (install_window_handler) [USE_CARBON_EVENTS && MAC_OSX]: Register it.
2187 [MAC_OSX] (mac_store_services_event): Change return type to OSStatus.
2188 [USE_MAC_FONT_PANEL] (mac_handle_font_event): New function.
2189 (install_window_handler) [USE_MAC_FONT_PANEL]: Install it.
2190 (XTread_socket): Select window on mouse click if x_focus_frame is NULL.
2192 * macterm.h (mac_set_font_info_for_selection): Add extern.
2194 2006-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2196 * image.c (Qduration) [MAC_OS]: New variable.
2197 (syms_of_image) [MAC_OS]: Intern and staticpro it.
2198 [MAC_OS] (gif_load): Save image extension data in img->data.lisp_val.
2199 [MAC_OSX] (image_load_quartz2d): Use cfstring_create_with_utf8_cstring
2200 instead of cfstring_create_with_string.
2202 2006-05-06 Kim F. Storm <storm@cua.dk>
2204 * .gdbinit (xframe): Print frame name.
2205 (xlist): New command to print a list (max 10 elements).
2206 (xpr): Print lisp object of any type.
2207 (pitx): Print it->pixel_width.
2209 2006-05-05 Kenichi Handa <handa@m17n.org>
2211 * xdisp.c (handle_composition_prop): Fix for the case of empty
2212 composition component.
2214 2006-05-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2216 * keyboard.c (make_lispy_event) [MAC_OS]: Get Apple event info
2219 * termhooks.h (enum event_kind) [MAC_OS]: Update comment for
2222 * macterm.h (mac_make_lispy_event_code): Remove extern.
2223 (mac_post_mouse_moved_event): Add extern.
2224 (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
2225 `const AEDesc *' in externs.
2226 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: New extern.
2228 * mac.c (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
2230 [TARGET_API_MAC_CARBON] (create_apple_event): New function.
2231 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): Use it.
2232 Use xrealloc instead of repeated xmalloc/xfree.
2233 [TARGET_API_MAC_CARBON] (create_apple_event_from_drag_ref): New
2236 * macmenu.c (restore_menu_items, cleanup_popup_menu): Return a value.
2238 * macselect.c: Update copyright year.
2239 (mac_store_apple_event): Change return type to void in extern.
2240 (mac_handle_apple_event): Don't get return value from
2241 mac_store_apple_event.
2242 [TARGET_API_MAC_CARBON] (Vmac_dnd_known_types): New variable.
2243 (syms_of_macselect) [TARGET_API_MAC_CARBON]: Defvar it.
2244 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Move function from
2245 macterm.c. Use Vmac_dnd_known_types as acceptable flavors.
2246 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise. New
2247 implementation using create_apple_event_from_drag_ref.
2248 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
2249 (mac_do_receive_dragUPP): Move variables from macterm.c.
2250 (install_drag_handler, remove_drag_handler): New functions.
2252 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON]: Try window
2253 path select also for proxy icon click.
2254 [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event): New function.
2255 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback): Use it.
2256 (xlfdpat_create): Remove unused label `error' and trailing sentences.
2257 (mac_do_track_drag, mac_do_receive_drag): Move functions to macselect.c.
2258 (mac_do_track_dragUPP, mac_do_receive_dragUPP): Move variables to
2260 (install_drag_handler, remove_drag_handler): Add extern.
2261 (mac_store_apple_event): Change return type to void. All uses changed.
2262 Create Lisp object from Apple event and store it into input event.
2263 (mac_make_lispy_event_code): Remove function.
2264 [TARGET_API_MAC_CARBON] (mac_store_drag_event): New function.
2265 (install_window_handler): Call install_drag_handler.
2266 (remove_window_handler): Call remove_drag_handler.
2268 2006-05-03 Richard Stallman <rms@gnu.org>
2270 * sound.c (Fplay_sound_internal): Dynamically allocate
2271 current_sound_device and current_sound.
2272 (sound_cleanup): Free them.
2274 * minibuf.c (read_minibuf): Don't use read_minibuf_noninteractive
2275 when inside a keyboard macro.
2277 2006-05-02 Andreas Schwab <schwab@suse.de>
2279 * xmenu.c (restore_menu_items): Return a value.
2281 2006-05-01 Martin Rudalics <rudalics@gmx.at>
2283 * syntax.c (Fforward_comment): Detect generic comment at beginning of
2284 buffer when moving backwards.
2286 2006-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2288 * dispnew.c (update_window): Don't set changed_p when mode/header
2291 * xdisp.c (prepare_menu_bars) [MAC_OS]: Call mac_update_title_bar.
2292 (get_glyph_face_and_encoding, get_char_face_and_encoding):
2293 Don't distinguish known faces from others.
2295 * mac.c (mac_coerce_file_name_ptr): Try typeFSRef if coercion
2296 through typeFileURL failed.
2298 * macfns.c (mac_update_title_bar): New function.
2299 [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): New function.
2300 (show_hourglass, hide_hourglass) [USE_CG_DRAWING]:
2301 Call mac_prepare_for_quickdraw.
2303 * macgui.h (USE_ATSUI): Set default to 1 if MAC_OSX is defined.
2304 (USE_CG_DRAWING): Don't define if compiled on Mac OS X 10.1.
2305 (enum pcm_status): New enum.
2306 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID)
2307 (XCharStructRow): Remove. Now validity is represented by
2308 non-negativeness of sum of ascent and descent.
2309 (struct MacFontStruct): Change type of member `rows'.
2310 (struct _XGC) [USE_CG_DRAWING]: Add member `clip_rects'.
2312 * macterm.c (mac_draw_line, mac_draw_line_to_pixmap):
2313 Adjust endpoints of strictly horizontal/vertical lines.
2314 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Set clip_rects.
2315 (pcm_init, pcm_get_status): New functions.
2316 (x_per_char_metric, XLoadQueryFont): Use them instead of
2317 XCharStructRow and related macros.
2318 (x_draw_relief_rect): Don't adjust arguments of mac_draw_line.
2319 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Free FRAME_FILE_NAME.
2320 (XTread_socket) [TARGET_API_MAC_CARBON]: Handle proxy icon drag
2321 and window path pop-up menu on title bar.
2322 (mac_use_core_graphics) [USE_CG_DRAWING]: Set default to 1.
2324 * macterm.h (mac_update_title_bar): Add extern.
2325 (struct mac_output) [TARGET_API_MAC_CARBON]: New member `file_name'.
2326 (FRAME_FILE_NAME): New macro.
2328 * unexmacosx.c (unexec): Error if trying unexec from dumped executable.
2330 2006-04-30 Richard Stallman <rms@gnu.org>
2332 * keymap.c (Fdefine_key): Improve error message
2333 when KEY begins with a non-prefix key.
2335 2006-04-30 Martin Rudalics <rudalics@gmx.at>
2337 * syntax.c (Fforward_comment): Don't forget to break out of the loop
2338 when we skipped backward over a generic comment.
2340 2006-04-27 Nick Roberts <nickrob@snap.net.nz>
2342 * .gdbinit (pp1, pv1): Only print value as expression is now
2343 printed out by gud-print.
2344 (pv1): Correct doc string.
2346 2006-04-26 Stefan Monnier <monnier@iro.umontreal.ca>
2348 * keymap.c (store_in_keymap): Change `def' arg to not be `register'.
2349 Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8):
2350 keymap.c:895: error: address of register variable `def' requested.
2352 2006-04-26 Jason Rumney <jasonr@gnu.org>
2354 * w32term.c (construct_mouse_wheel): Handle negative coordinates.
2356 * w32fns.c (w32_wnd_proc) <WM_LBUTTONDOWN, WM_RBUTTONDOWN>:
2357 <WM_LBUTTONUP, WM_RBUTTONUP>: Call signal_user_input in the cases
2358 where we preempt mouse_button_timer.
2360 2006-04-25 Miles Bader <miles@gnu.org>
2362 * editfns.c (Ffield_beginning, find_field): Undo change of 2006-04-23.
2364 2006-04-24 Stefan Monnier <monnier@iro.umontreal.ca>
2366 * process.h: Include headers for pid_t.
2368 2006-04-24 Kim F. Storm <storm@cua.dk>
2370 * xdisp.c (fill_stretch_glyph_string): Set s->nchars = 1 for code which
2371 does last_glyph=s->first_glyph+s->nchars-1, e.g. if stretch has relief.
2372 (produce_stretch_glyph): Assume that face box height and width is
2373 already included in stretch glyph size so caller doesn't have to
2374 consider the extra space otherwise added (fixes problem in ses.el).
2376 * frame.c (x_set_font): Clear f->n_tool_bar_rows and current frame
2377 matrices to force recalculation of tool-bar height after font change.
2379 * xdisp.c (tool_bar_lines_needed): New local `temp_row' for clarity.
2380 Clear it when done, so we don't accidentally draw a second copy of
2381 the tool-bar after resetting f->n_tool_bar_rows.
2382 (redisplay_tool_bar): Update tool-bar-lines frame parameter whenever
2383 we recalculate f->n_tool_bar_rows.
2385 2006-04-23 Lars Hansen <larsh@soem.dk>
2387 * editfns.c (find_field): Fix comment.
2388 (Ffield_beginning): Fix bug when POS is at field beginning.
2390 2006-04-22 Eli Zaretskii <eliz@gnu.org>
2392 * puresize.h (BASE_PURESIZE): Increase to 1205000.
2394 2006-04-21 Kim F. Storm <storm@cua.dk>
2396 * xdisp.c (redisplay_window): Fix last change. Don't recenter if
2397 window start is at BEGV.
2399 * dispextern.h (struct image): New member `corners'.
2400 (TOP_CORNER, LEFT_CORNER, BOT_CORNER, RIGHT_CORNER): New macros.
2402 * image.c (four_corners_best): New arg CORNERS specifies what pixels
2403 to look at in case image has margin.
2404 (x_create_bitmap_mask): Pass NULL for CORNERS to four_corners_best.
2405 (image_background, image_background_transparent)
2406 (x_build_heuristic_mask): Pass img->corners to four_corners_best.
2407 (gif_load): Set img->corners according to image's margin spec.
2408 Use img->corners values directly where applicable.
2409 Save image extension data in img->data.lisp_val.
2410 (gif_clear_image): New function to free img->data.lisp_val.
2411 (gif_type): Use it instead of generic x_clear_image.
2412 (Fimage_extension_data): New defun.
2413 (syms_of_image): Defsubr it.
2415 2006-04-21 John Sullivan <john@wjsullivan.net> (tiny change)
2417 * window.c (Fdisplay_buffer): Doc fix.
2419 2006-04-21 Eli Zaretskii <eliz@gnu.org>
2421 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Increase to 25000.
2423 2006-04-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2425 * image.c [MAC_OS] (xpm_load_image): Fill in background field
2426 while we have ximg handy.
2428 * macmenu.c (restore_menu_items, save_menu_items): New functions
2430 (set_frame_menubar, digest_single_submenu): Apply 2006-04-18
2431 changes for xmenu.c.
2433 * macterm.c (x_per_char_metric): Return NULL if glyph width is 0.
2434 (add_mac_font_name): New function.
2435 (init_font_name_table): Use it. Adopt the first found font from
2436 those having the same family name.
2438 2006-04-21 Nick Roberts <nickrob@snap.net.nz>
2440 * xdisp.c (note_mouse_highlight): Use build_string.
2442 2006-04-20 Lars Hansen <larsh@soem.dk>
2444 * textprop.c (Fremove_list_of_text_properties):
2445 Ensure modify_region is called only when buffer is modified and that
2446 signal_after_change is allways called in that case.
2448 * print.c (PRINTFINISH): Call signal_after_change.
2450 2006-04-20 Kim F. Storm <storm@cua.dk>
2452 * xdisp.c (redisplay_window): Fix last change.
2454 * xdisp.c (redisplay_window): If current window start is not at the
2455 beginning of a line, select a new window start if buffer is modified
2456 and window start is in the modified region, but the first change is
2457 before window start.
2459 2006-04-18 Richard Stallman <rms@gnu.org>
2461 * xmenu.c (restore_menu_items, save_menu_items): New fns.
2462 (set_frame_menubar): Use save_menu_items. Save updated vector in
2463 the frame before unwinding it. Don't use unuse_menu_items.
2464 Don't use discard_menu_items.
2465 (digest_single_submenu): Abort if an item is not in a pane.
2466 (init_menu_items): Put the error check at the top.
2468 * keymap.c (describe_map): Make "shadowed" warning more verbose.
2470 * window.c (adjust_window_trailing_edge): Correctly distinguish
2471 series vs parallel cases, even when window has no parent.
2473 * abbrev.c (record_symbol): New function.
2474 (Finsert_abbrev_table_description): Sort the abbrevs alphabetically.
2476 2006-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2478 * image.c (x_create_bitmap_from_data) [MAC_OS]: Don't check return
2481 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
2482 (create_apple_event_from_event_ref, xrm_get_preference_database)
2483 (cfstring_create_normalized): Don't check return value of xmalloc.
2485 * macselect.c (get_scrap_target_type_list, defer_apple_events)
2486 (copy_scrap_flavor_data, mac_handle_service_event): Don't check
2487 return value of xmalloc/xrealloc.
2489 * macterm.c (XCreateGC, x_per_char_metric, xlfdpat_create)
2490 (init_font_name_table, init_font_name_table, mac_do_list_fonts)
2491 (XLoadQueryFont, mac_store_apple_event): Don't check return value
2494 2006-04-17 Kim F. Storm <storm@cua.dk>
2496 * window.c (coordinates_in_window): On the vertical border,
2497 calculate the row number measured from the top of the window, not
2498 the top of the frame.
2499 (window_loop): Test w->dedicated with !NILP instead of EQ Qt.
2500 (window_scroll_pixel_based): Fix off-by-one bug in 2002-12-23 change.
2502 2006-04-16 Eli Zaretskii <eliz@gnu.org>
2504 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Reduce to 24000.
2506 2006-04-16 Romain Francoise <romain@orebokech.com>
2508 * puresize.h (BASE_PURESIZE): Decrement back to 1200000.
2510 2006-04-16 Andreas Schwab <schwab@suse.de>
2512 * puresize.h (PURESIZE_RATIO): Reduce to 10/6.
2514 2006-04-15 Romain Francoise <romain@orebokech.com>
2516 * puresize.h (BASE_PURESIZE): Increment to 1210000.
2518 2006-04-13 Micha
\e,Ak
\e(Bl Cadilhac <michael.cadilhac@lrde.org>
2520 * print.c (Fprin1_to_string): Mention in the `doc' that the
2521 behavior is modified by `print-level' and `print-length'.
2523 2006-04-13 Kenichi Handa <handa@m17n.org>
2525 * coding.c (setup_coding_system): If eol-type is not yet decided
2526 and system_eol_type is not LF, set CODING_REQUIRE_ENCODING_MASK.
2527 If coding_system is nil, return 0.
2528 (code_convert_region1): Even if coding_system is nil, don't skip
2529 conversion if system_eol_type is not LF.
2530 (code_convert_string1): Likewise.
2531 (code_convert_string_norecord): Likewise.
2533 2006-04-13 Kenichi Handa <handa@m17n.org>
2535 * coding.c (setup_coding_system): Fix previous change.
2536 (encode_coding): If eol_type is not yet decided, use system_eol_type.
2537 (shrink_encoding_region): If eol_type is not yet decided and
2538 system_eol_type is not LF, don't shrink.
2540 2006-04-13 Nick Roberts <nickrob@snap.net.nz>
2542 * xdisp.c (note_mouse_highlight): Add help echo for dragging vertical
2545 2006-04-12 Richard Stallman <rms@gnu.org>
2547 * keyboard.c (read_key_sequence): Explicitly avoid keybuf[-1].
2549 * process.c (conv_lisp_to_sockaddr): If FAMILY unknown, just return.
2550 (Fprocess_send_eof): Abort if fail to open null device.
2552 2006-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2554 * fns.c [HAVE_MENUS && MAC_OS]: Include macterm.h.
2556 * image.c [MAC_OS] (xpm_load_image): Add parentheses around
2557 assignment used as truth value. Add explicit braces to avoid
2559 [MAC_OS] (gif_load): Remove unused variable `gcpro1'.
2561 * lisp.h (syms_of_fontset, Fset_fontset_font): Put extern and
2562 EXFUN in #ifdef HAVE_WINDOW_SYSTEM.
2563 (syms_of_xfns, syms_of_xsmfns, syms_of_xselect, syms_of_xterm):
2564 Put externs in #ifdef HAVE_X_WINDOWS.
2565 (syms_of_macfns, syms_of_macselect, syms_of_macterm)
2566 (syms_of_macmenu, syms_of_mac) [MAC_OS]: Add externs.
2567 (init_mac_osx_environment) [MAC_OSX]: Add extern.
2569 * mac.c (init_process): Remove undef.
2570 (select) [MAC_OSX]: Undefine before including sysselect.h.
2571 (posix_pathname_to_fsspec, fsspec_to_posix_pathname) [MAC_OSX]:
2572 Remove functions and prototypes.
2573 (parse_value): Add parentheses around + inside shift.
2574 (path_from_vol_dir_name): Make static.
2575 (get_temp_dir_name): Remove unused variables `cpb' and `dir_name'.
2576 [!MAC_OSX] (get_path_to_system_folder): Likewise.
2577 (Fmac_get_file_creator, Fmac_get_file_type): Remove unused
2579 (Fmac_coerce_ae_data): Remove unused variables `fref' and `fs'.
2580 (Fmac_get_preference): Add explicit braces to avoid ambiguous `else'.
2582 * macfns.c (x_to_mac_color): Remove unused variable `tail'.
2583 (x_set_mouse_color): Remove unused variable `dpy'.
2584 (Fx_create_frame): Remove unused variable `x_frame_count'.
2585 (Fx_server_version): Add explicit braces to avoid ambiguous `else'.
2586 (x_sync): Move from macterm.c.
2587 (Fx_file_dialog): Remove unused variable `default_filter_index'.
2589 * macmenu.c (min_menu_id): Make element type explicit.
2591 * macselect.c (get_flavor_type_from_symbol): Remove unused
2593 (get_scrap_private_timestamp, x_get_foreign_selection)
2594 (copy_scrap_flavor_data): Add explicit braces to avoid ambiguous `else'.
2595 (Fmac_process_deferred_apple_events): Remove unused variables
2596 `keyword', `reply', `apple_event', `count', and `err'.
2598 * macterm.c: Don't include gnu.h.
2599 (x_io_error_quitter, x_draw_image_foreground_1): Remove prototypes.
2600 (x_sync): Move to macfns.c.
2601 [USE_CG_DRAWING] (mac_define_fringe_bitmap): Remove unused
2602 variable `mask_bits'.
2603 (mac_compute_glyph_string_overhangs): Avoid ambiguous `else'.
2604 (x_draw_image_glyph_string): Remove unused variable `pixmap'.
2605 (x_mac_to_emacs_modifiers): Remove function.
2606 (XTset_vertical_scroll_bar, mac_handle_visibility_change)
2607 (x_make_frame_visible, xlfdpat_create, mac_handle_command_event):
2608 Add explicit braces to avoid ambiguous `else'.
2609 (x_make_frame_visible): Remove unused variables `type',
2610 `original_top', and `original_left'.
2611 (mac_do_list_fonts, XTread_socket): Add parentheses around && within ||.
2612 (x_load_font): Remove unused variables `full_name', and `value'.
2613 (do_get_menus, do_init_managers, do_check_ram_size) [!MAC_OS8]:
2615 (do_zoom_window): Reorganize variables with respect to conditionals.
2616 (init_command_handler): Remove unused variable `err'.
2617 [MAC_OSX] (mac_check_bundle): Remove unused variable `child'.
2619 * macterm.h (x_set_mouse_position, x_set_mouse_pixel_position)
2620 (x_make_frame_invisible, x_iconify_frame, x_free_frame_resources)
2621 (x_destroy_window, x_wm_set_size_hint, x_delete_display, XFreeGC)
2622 (do_menu_choice, have_menus_p, x_real_positions)
2623 (x_set_menu_bar_lines, x_pixel_width, x_pixel_height, x_char_width)
2624 (x_char_height, x_sync, x_set_tool_bar_lines, x_activate_menubar)
2625 (free_frame_menubar): Add externs.
2627 * unexmacosx.c: Include config.h before using HAVE_MALLOC_MALLOC_H.
2628 (malloc, realloc, free): Add undefs.
2629 (read_load_commands): Remove unused variable `n' and `j'.
2630 (copy_data_segment): Remove unused variable `r'.
2632 * xdisp.c (get_glyph_string_clip_rects): Add parentheses around &&
2633 within ||. Add explicit braces to avoid ambiguous `else'.
2634 (dump_glyph_row): Remove label for `inverse_p' from legend.
2636 * xfaces.c (Finternal_merge_in_global_face, try_font_list):
2637 Add explicit braces to avoid ambiguous `else'.
2639 2006-04-11 Micha
\e,Ak
\e(Bl Cadilhac <michael.cadilhac@lrde.org>
2641 * dispnew.c (init_display): Don't init X display if the user asked
2642 for a non-X display.
2644 2006-04-12 Kenichi Handa <handa@m17n.org>
2646 * coding.c (setup_coding_system): Use system_eol_type for default
2649 2006-04-11 Dan Nicolaescu <dann@ics.uci.edu>
2651 * lisp.h (wrong_type_argument): Mark as NO_RETURN.
2653 * data.c (wrong_type_argument): Try to avoid compiler warnings due
2654 to the fact the function is now marked as NO_RETURN.
2656 2006-04-10 Eli Zaretskii <eliz@gnu.org>
2658 * s/ms-w32.h (pid_t) [_MSC_VER]: New typedef.
2660 2006-04-10 Romain Francoise <romain@orebokech.com>
2662 * xrdb.c (gethomedir): Use xstrdup.
2664 2006-04-10 Andreas Schwab <schwab@suse.de>
2666 * xrdb.c (gethomedir): Make sure to always return a pointer that
2667 can be passed to free.
2669 2006-04-09 Richard Stallman <rms@gnu.org>
2671 * lisp.h (Fkill_emacs): Undo previous change.
2673 2006-04-08 Richard Stallman <rms@gnu.org>
2675 * search.c (boyer_moore): Test ch >= 0400, not >.
2677 2006-04-09 Dan Nicolaescu <dann@ics.uci.edu>
2679 * puresize.h (pure_write_error): Mark as NO_RETURN.
2681 * lisp.h (args_out_of_range, args_out_of_range_3)
2683 2006-04-08 Eli Zaretskii <eliz@gnu.org>
2685 * w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements
2686 if a menu is active on this frame.
2688 2006-04-08 Dan Nicolaescu <dann@ics.uci.edu>
2690 * lisp.h (report_file_error): Mark as NO_RETURN.
2692 2006-04-08 Eli Zaretskii <eliz@gnu.org>
2694 * alloc.c [STDC_HEADERS]: Include stddef.h.
2696 * lisp.h (PSEUDOVECSIZE): Fix last change.
2698 2006-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
2700 * process.h (struct Lisp_Process): Replace Lisp_Objects `pid',
2701 `raw_status_high', and `raw_status_low' with plain integers, and move
2702 them to the end of the structure.
2704 * alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the
2705 pseudovector's size field so only the Lisp_Object fields get GC'd.
2707 * process.c (update_status, make_process, Fdelete_process)
2708 (Fprocess_status, list_processes_1, start_process_unwind)
2709 (create_process, Fmake_network_process, server_accept_connection)
2710 (wait_reading_process_output, send_process, Fprocess_running_child_p)
2711 (process_send_signal, proc_encode_coding_system, Fprocess_send_eof)
2712 (sigchld_handler, status_notify): Adjust to new non-Lisp fields for
2713 `pid' and `raw_status'.
2714 (Fprocess_id, Fsignal_process): Same, and additionally use floats when
2715 representing PIDs that are larger than most-positive-fixnum.
2717 * keymap.c (describe_map): Only use XINT if we checked INTEGERP.
2719 * lisp.h (OFFSETOF, PSEUDOVECSIZE): New macros.
2721 2006-04-08 Eli Zaretskii <eliz@gnu.org>
2723 * w32fns.c (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos.
2725 2006-04-03 Paul Eggert <eggert@cs.ucla.edu>
2727 * editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
2728 ../lib-src/b2m.c and ../lib-src/editfns.c.
2729 (Fcurrent_time_string): Use it.
2730 Document that the year might not consume 4 columns if it's outside
2731 the range 1000-9999.
2732 Check for asctime failure.
2733 Don't assume that the output string length is always exactly 24.
2735 2006-04-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2737 * macterm.c (XTread_socket): Initialize variable `f' before its use.
2739 2006-04-03 Kenichi Handa <handa@m17n.org>
2741 * image.c: Include "charset.h" and "coding.h".
2742 (x_find_image_file): Return an encoded file name.
2744 2006-04-01 Eli Zaretskii <eliz@gnu.org>
2746 * configure: Regenerated.
2748 2006-03-31 Kenichi Handa <handa@m17n.org>
2750 * xfns.c (xg_set_icon): Delete superfluous UNGCPRO.
2752 2006-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2754 * xdisp.c (syms_of_xdisp): Fix variable name.
2756 2006-03-30 Kenichi Handa <handa@m17n.org>
2758 * xterm.c (x_term_init): Delete superfluous UNGCPRO.
2760 2006-03-29 Juanma Barranquero <lekktu@gmail.com>
2762 * keyboard.c (process_tool_bar_item): Reorder dummy args.
2764 2006-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
2766 * keyboard.c (tool_bar_items): Use map_keymap.
2767 (process_tool_bar_item): Add dummy args to fit the required interface.
2769 2006-03-25 Eli Zaretskii <eliz@gnu.org>
2771 * .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag
2772 to zero before calling debug_print or safe_debug_print.
2774 * print.c (print_output_debug_flag): New global variable.
2775 (Fexternal_debugging_output) [WINDOWSNT]: Don't call
2776 OutputDebugString if print_output_debug_flag is zero.
2778 2006-03-24 Paul Eggert <eggert@cs.ucla.edu>
2780 * editfns.c (TM_YEAR_BASE): Move up, so the changes below can use it.
2781 (Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900.
2782 (Fdecode_time): Cast tm_year to EMACS_INT.
2783 (Fcurrent_time_string): Report an invalid time specification if
2784 the argument is invalid. Also, check for out-of-range time stamps.
2786 2006-03-24 Kim F. Storm <storm@cua.dk>
2788 * xterm.c (handle_one_xevent):
2789 * w32term.c (w32_read_socket):
2790 * macterm.c (XTread_socket): Don't let key-press clear mouse face
2791 on in toolbar window if mouse-highlight is an integer.
2793 * fns.c (sxhash_list): Include last non-nil CDR in hash.
2795 2006-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2797 * macmenu.c (enum mac_menu_kind): New enum.
2798 (min_menu_id): New variable.
2799 (POPUP_SUBMENU_ID, MIN_POPUP_SUBMENU_ID, MIN_MENU_ID)
2800 (MIN_SUBMENU_ID): Remove defines. All uses are replaced with
2801 min_menu_id and enumerators in enum mac_menu_kind.
2802 (fill_menu, dispose_menus, install_menu_quit_handler): New arg KIND.
2803 All uses changed. Add range check for menu ID.
2804 (fill_menubar): Add range check for menu ID.
2805 [HAVE_CANCELMENUTRACKING] (menu_quit_handler): Check error code of
2807 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler
2810 2006-03-22 Kim F. Storm <storm@cua.dk>
2812 * xdisp.c: Undo 2006-03-21 change.
2814 * term.c: Define aliases for append_glyph and produce_stretch_glyph
2815 when `static' is defined to avoid name clash with those in xdisp.c.
2817 * process.c (Faccept_process_output): Fix to comply with lisp
2818 reference. Change arg "timeout" to "seconds" and allow both
2819 integer and float value. Change arg "timeout-msec" to "millisec"
2820 and interpret" as milliseconds rather than microseconds. Fix doc
2823 2006-03-21 Ken Raeburn <raeburn@raeburn.org>
2825 * xdisp.c (store_next_glyph): Rename from append_glyph.
2826 (generate_stretch_glyph): Rename from produce_stretch_glyph.
2827 All callers changed accordingly.
2829 2006-03-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2831 * xterm.c: x_session_initialized new variable.
2832 (x_term_init): Use x_session_initialized to check if
2833 x_session_initialize should be called.
2834 (x_initialize): Initialize x_session_initialized.
2836 2006-03-21 Kim F. Storm <storm@cua.dk>
2838 * fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow
2839 bitmap here, but ...
2840 (update_window_fringes): ... here, so we can test if it has changed.
2842 2006-03-20 Andreas Schwab <schwab@suse.de>
2844 * dispnew.c (init_display): Check DISPLAY here.
2846 * emacs.c (main): Don't check here.
2848 * xterm.c (x_display_ok): Don't use DISPLAY env var.
2850 2006-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2852 * window.c (window_scroll_pixel_based): Yet another int/Lisp_Object
2855 2006-03-20 Eli Zaretskii <eliz@gnu.org>
2857 * emacs.c (main): Fix last change.
2859 2006-03-20 Kenichi Handa <handa@m17n.org>
2861 * fileio.c (Fwrite_region): Set visit_file to Qnil before GCPRO it.
2863 * keymap.c (map_keymap): Set tail to Qnil before GCPRO it.
2865 * xfns.c (xg_set_icon): Remove unnecessary GCPRO.
2867 * xterm.c (x_term_init): Remove unnecessary GCPRO.
2869 2006-03-19 Kim F. Storm <storm@cua.dk>
2871 * xdisp.c (set_cursor_from_row): Fix cursor property on overlay string,
2872 so it doesn't associate overlay string with following glyph by default.
2873 Allow integer property value to specify explicit number of buffer
2874 positions associate with overlay string.
2876 2006-03-18 Chong Yidong <cyd@stupidchicken.com>
2878 * xterm.c (x_display_ok): Fix minor bug and compilation warnings.
2880 2006-03-18 Nozomu Ando <nand@mac.com>
2882 * m/pmax.h (BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
2883 (LIB_STANDARD, START_FILES) [__NetBSD__]: Don't define.
2884 (START_FILES, RUN_TIME_REMAP, UNEXEC) [__NetBSD__, __OpenBSD__]:
2887 * m/mips.h: Don't use unexmips on NetBSD.
2888 (LIBS_MACHINE): Move definition lower, so it doesn't use
2889 LD_SWITCH_MACHINE, START_FILES, LIB_STANDARD, LIBS_TERMCAP,
2890 C_SWITCH_MACHINE, and C_DEBUG_SWITCH.
2892 * unexelf.c [BROKEN_NOCOMBRELOC]: Include assert.h.
2893 (unexec) [BROKEN_NOCOMBRELOC]: Handle platforms whose nocombreloc
2894 option is broken (e.g., MIPS/NetBSD).
2896 2006-03-18 Craig McDaniel <craigmcd@gmail.com> (tiny change)
2898 * sheap.c (STATIC_HEAP_SIZE): Enlarge STATIC_HEAP_SIZE to 12MB.
2899 Remove the HAVE_X_WINDOWS conditional.
2901 2006-03-18 Vivek Dasmohapatra <vivek@etla.org> (tiny change)
2903 * emacs.c (main): If user asks for a display that is unavailable,
2906 * xterm.c (x_display_ok): New function.
2908 * xterm.h: Add prototype for x_display_ok.
2910 2006-03-18 Eli Zaretskii <eliz@gnu.org>
2912 * w32fns.c (Fw32_select_font): Doc fix.
2914 2006-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2916 * image.c [MAC_OS] (XPutPixel, XGetPixel)
2917 [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Don't use specialized
2918 version when depth is 32.
2919 (mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]:
2921 (prepare_image_for_display) [MAC_OS && USE_CG_DRAWING]: Use it.
2922 (x_clear_image_1) [MAC_OS && USE_CG_DRAWING]: Release CGImage.
2924 * macterm.c (XCreatePixmap) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]:
2925 Create GWorld in ARGB pixel format.
2926 (mac_copy_area, mac_copy_area_with_mask) [USE_CG_DRAWING]:
2928 (x_draw_image_foreground) [USE_CG_DRAWING]: Use mac_draw_cg_image
2929 instead of mac_copy_area/mac_copy_area_with_mask.
2931 2006-03-15 Kim F. Storm <storm@cua.dk>
2933 * xdisp.c (extend_face_to_end_of_line): Always add space glyph to
2934 empty row. Fixes memory corruption revealed by 2006-03-02 change.
2935 (display_tool_bar_line): Skip empty tool-bar line if HEIGHT < 0.
2936 (tool_bar_lines_needed): Fix tool-bar display in case the tool-bar
2937 width is exactly the same as the window width. Don't count a final
2938 empty tool-bar line (pass HEIGHT = -1 to display_tool_bar_line).
2940 2006-03-15 Juanma Barranquero <lekktu@gmail.com>
2942 * fringe.c (w32_init_fringe, w32_reset_fringes): Revert to being
2943 conditional on HAVE_NTGUI, not WINDOWS_NT.
2945 2006-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2947 * dispextern.h (mac_init_fringe) [MAC_OS]: Add prototype.
2949 * fringe.c (mac_init_fringe) [MAC_OS]: New function.
2951 * macterm.c (mac_initialize) [USE_CG_DRAWING]: Call mac_init_fringe.
2952 (max_fringe_bmp, fringe_bmp) [USE_CG_DRAWING]: New variables.
2953 (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap)
2954 (mac_draw_cg_image) [USE_CG_DRAWING]: New functions.
2955 (mac_draw_bitmap) [USE_CG_DRAWING]: Remove function.
2956 (x_draw_fringe_bitmap) [USE_CG_DRAWING]: Use mac_draw_cg_image
2957 instead of mac_draw_bitmap.
2958 (x_redisplay_interface) [USE_CG_DRAWING]: Set handlers for
2959 define_fringe_bitmap and destroy_fringe_bitmap.
2961 2006-03-14 Chong Yidong <cyd@stupidchicken.com>
2963 * xterm.c (x_uncatch_errors): Block input for entire function.
2965 2006-03-12 Jason Rumney <jasonr@gnu.org>
2967 * w32fns.c (Fx_create_frame): Remove call to
2968 Qface_set_after_frame_default (from xfns.c 2003-05-26).
2970 * w32menu.c (Fx_popup_menu): Call w32_free_menu_strings when
2971 finished with the menu.
2973 * w32term.c: Sync 2005-10-24 xterm.c changes.
2974 (last_mouse_glyph_frame): New var.
2975 (note_mouse_movement): Say mouse moved if current frame differs
2976 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
2977 (w32_mouse_position): Set last_mouse_glyph_frame.
2978 Remove OLD_REDISPLAY_CODE block.
2980 2006-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2982 * macgui.h [USE_ATSUI && MAC_OSX]: Define USE_CG_TEXT_DRAWING to 1.
2984 * macterm.h (struct mac_output) [USE_CG_DRAWING]: New member cg_context.
2985 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Add prototype.
2987 * mac.c (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
2989 * macfns.c (x_create_tip_frame): Apply 2006-03-11 change for xfns.c.
2991 * macterm.c (mac_draw_rectangle, x_draw_glyph_string_foreground)
2992 (x_draw_composite_glyph_string_foreground)
2993 (x_draw_image_foreground): Undo previous changes.
2994 (x_draw_hollow_cursor): Likewise. Subtract 1 from the last
2995 argument of mac_draw_rectangle.
2996 (CG_SET_FILL_COLOR, CG_SET_STROKE_COLOR): New macros.
2997 (mac_draw_string_common, mac_draw_image_string_cg): Use them.
2998 (FRAME_CG_CONTEXT) [USE_CG_DRAWING]: New macro.
2999 (mac_begin_cg_clip, mac_end_cg_clip, mac_prepare_for_quickdraw)
3000 [USE_CG_DRAWING]: New functions.
3001 (mac_draw_line, mac_erase_rectangle, mac_clear_window)
3002 (mac_fill_rectangle, mac_draw_rectangle, mac_draw_string_common)
3003 (mac_draw_image_string_cg) [USE_CG_DRAWING]: Add Quartz 2D drawing part.
3004 (mac_draw_bitmap, mac_invert_rectangle, mac_draw_string_common)
3005 (mac_copy_area, mac_scroll_area, x_scroll_bar_create)
3006 (x_scroll_bar_remove, XTset_vertical_scroll_bar, x_set_window_size)
3007 (XTread_socket) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
3009 2006-03-12 L
\e$,1 q
\e(Brentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
3011 * xfns.c (x_icon): Disable redundant call to `x_wm_set_window_state'.
3013 2006-03-11 Jason Rumney <jasonr@gnu.org>
3015 * w32fns.c (signal_user_input): New function.
3016 (post_character_message): Use it for keyboard input.
3017 (w32_msg_pump): Use it for mouse input.
3019 2006-03-11 Luc Teirlinck <teirllm@auburn.edu>
3021 * window.c: Rename preserve_y to window_scroll_pixel_based_preserve_y.
3022 (window_scroll_pixel_based, syms_of_window): Adapt to above change.
3024 2006-03-11 Eli Zaretskii <eliz@gnu.org>
3026 * w32fns.c (w32_wnd_proc): Ignore middle and extra button events
3027 if a menu is already active (the menubar_active flag is on).
3029 2006-03-11 David Ponce <david@dponce.com>
3031 * xfns.c (x_create_tip_frame): Preserve received parms by copying them.
3033 2006-03-11 Eli Zaretskii <eliz@gnu.org>
3035 * w32term.c: Add x_fully_uncatch_errors and x_catching_errors to
3036 the list of unused display error handling functions.
3038 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors only if
3040 (internal_condition_case, internal_condition_case_1)
3041 (internal_condition_case_2): Call x_catching_errors only if
3044 * vm-limit.c [HAVE_GETRLIMIT]: Don't define unconditionally.
3045 Don't include sys/resource.h unless defined.
3047 2006-03-11 Richard Stallman <rms@gnu.org>
3049 * keymap.c (describe_map): Shorten string to indicate shadowed binding.
3051 * vm-limit.c (get_lim_data, lim_data, data_space_start):
3052 Move from mem-limits.h.
3053 (enum warnlevel): New data type.
3054 (check_memory_limits): Rewrite the logic about warnings.
3055 Use standard `struct rlimit'. Check return values for nonsense.
3056 (memory_warnings): Always clear lim_data.
3058 * mem-limits.h (get_lim_data, lim_data, data_space_start):
3061 * xterm.c (x_fully_uncatch_errors, x_catching_errors): New functions.
3063 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors.
3064 (internal_condition_case_1, internal_condition_case_2):
3065 Abort if within unclosed x_catch_errors.
3067 2006-03-11 Romain Francoise <romain@orebokech.com>
3069 * process.c (Vprocess_adaptive_read_buffering): Doc fix.
3071 2006-03-11 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
3073 * lisp.h: Remove duplicate prototypes. Make the prototype of
3074 getloadavg be conditioned on HAVE_GETLOADAVG being undefined.
3076 2006-03-11 Eli Zaretskii <eliz@gnu.org>
3078 * xterm.c (x_draw_hollow_cursor): Subtract 1 from the last
3079 argument of XDrawRectangle.
3081 * xdisp.c (get_phys_cursor_geometry): Don't decrease height by 1.
3083 * macterm.c (mac_draw_rectangle): Don't add 1 to width and height.
3084 (x_draw_glyph_string_foreground)
3085 (x_draw_composite_glyph_string_foreground)
3086 (x_draw_image_foreground): Don't subtract 1 from width and height
3087 arguments to mac_draw_rectangle.
3088 (x_draw_hollow_cursor): Add 1 to w->phys_cursor_width.
3090 2006-03-10 Kim F. Storm <storm@cua.dk>
3092 * alloc.c (USE_POSIX_MEMALIGN): Fix last change.
3094 2006-03-09 Stefan Monnier <monnier@iro.umontreal.ca>
3096 * alloc.c (USE_POSIX_MEMALIGN): New macro.
3097 (ABLOCKS_BASE, lisp_align_malloc, lisp_align_free): Use it.
3099 2006-03-09 Kenichi Handa <handa@m17n.org>
3101 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Fix decoding
3102 ASCII component of a composition.
3104 2006-03-08 Luc Teirlinck <teirllm@auburn.edu>
3106 * window.c: Declare preserve_y as a static global variable.
3107 (window_scroll_pixel_based): No longer declare preserve_y;
3109 (syms_of_window): Set preserve_y to -1.
3111 2006-03-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3113 * image.c [MAC_OS] (XPutPixel): Set alpha channel bits if pixmap
3115 [MAC_OS] (XGetPixel): Strip off alpha channel bits if pixmap
3118 2006-03-06 Chong Yidong <cyd@stupidchicken.com>
3120 * xdisp.c (handle_invisible_prop): Don't update it->position with
3121 a buffer position if we're in a display string.
3123 2006-03-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3125 * macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH)
3126 (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines.
3128 * macfns.c (x_default_scroll_bar_color_parameter)
3129 (x_set_scroll_bar_foreground, x_set_scroll_bar_background):
3130 Remove unnecessary prototypes.
3131 (x_set_scroll_bar_default_width):
3132 Use MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH.
3133 (mac_set_scroll_bar_width): New function.
3134 (mac_frame_parm_handlers): Set it as handler for scroll-bar-width.
3136 * macterm.c (get_control_part_bounds): Fix type of return value.
3137 (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
3138 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Don't show
3139 scroll bar if it is not tall enough to display scroll bar thumb.
3140 [USE_CARBON_EVENTS] (mac_convert_event_ref)
3141 (mac_handle_command_event, mac_handle_window_event)
3142 (mac_handle_mouse_event): Check error code of GetEventParameter.
3143 (convert_fn_keycode) [MAC_OSX]: Likewise.
3145 2006-03-05 Andreas Schwab <schwab@suse.de>
3147 * xselect.c (x_catch_errors_unwind): Fix missing return value.
3149 2006-03-02 Kim F. Storm <storm@cua.dk>
3151 * frame.h (struct frame): New member n_tool_bar_rows.
3153 * xdisp.c: Minimize the unpleasent visual impact of the requirement
3154 that non-toolkit tool-bars must occupy an integral number of screen
3155 lines, by distributing the rows evenly over the tool-bar screen area.
3156 (Vtool_bar_border): New variable.
3157 (syms_of_xdisp): DEFVAR_LISP it.
3158 (display_tool_bar_line): Add HEIGHT arg for desired row height.
3159 Make tool-bar row the desired height. Use default face for border
3161 (tool_bar_lines_needed): Add N_ROWS arg. Use it to return number of
3162 actual tool-bar rows.
3163 (redisplay_tool_bar): Calculate f->n_tool_bar_rows initially.
3164 Adjust the height of the tool-bar rows to fill tool-bar screen area.
3165 (redisplay_tool_bar): Calculate f->n_tool_bar_rows when tool-bar area
3168 2006-03-01 Luc Teirlinck <teirllm@auburn.edu>
3170 * search.c (Fregexp_quote): Do not precede a literal `]' with two
3171 backslashes to try to make clear that it has a literal meaning; it
3172 does not do that. (It could close a character alternative
3173 containing a backslash.)
3175 2006-02-28 Chong Yidong <cyd@stupidchicken.com>
3177 * xselect.c (x_catch_errors_unwind): New function.
3178 (x_reply_selection_request): Put x_uncatch_errors in an unwind.
3179 (Fx_get_atom_name): Call x_uncatch_errors earlier.
3181 * window.c (Qscroll_up, Qscroll_down): New syms.
3182 (window_scroll_pixel_based): Make preserve_y static to avoid
3183 getting point stuck when scrolling 1 line.
3185 2006-02-26 Chong Yidong <cyd@stupidchicken.com>
3187 * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary argument.
3189 * xterm.c (x_load_font, x_term_init, XTmouse_position)
3190 (handle_one_xevent, x_connection_closed, x_list_fonts):
3191 No arg for x_uncatch_errors.
3193 * xselect.c (x_own_selection, x_decline_selection_request)
3194 (x_reply_selection_request, x_get_foreign_selection)
3195 (Fx_get_atom_name, Fx_send_client_event): Likewise.
3197 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
3200 2006-02-26 Luc Teirlinck <teirllm@auburn.edu>
3202 * lread.c: Declare Vload_file_rep_suffixes instead of
3203 deleted variable default_suffixes.
3204 (Fget_load_suffixes): New function.
3205 (Fload): Use Fget_load_suffixes and Vload_file_rep_suffixes.
3206 No longer use deleted variable default_suffixes. Update docstring.
3207 (syms_of_lread): defsubr Sget_load_suffixes.
3208 Expand `load-suffixes' docstring.
3209 Delete default_suffixes and DEFVAR_LISP the new variable
3210 `load-file-rep-suffixes'.
3212 * w32.c (check_windows_init_file): Use Fget_load_suffixes instead
3215 * lisp.h: EXFUN Fget_load_suffixes.
3216 Extern Vload_file_rep_suffixes.
3218 * eval.c (specpdl_ptr): Remove volatile qualifier for consistency
3221 2006-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
3223 * lisp.h (struct specbinding, specpdl_ptr): Remove the volatile
3224 qualifier which was trying to avoid the bug that was fixed by
3225 yesterday's changes to xterm.c.
3227 2006-02-25 Chong Yidong <cyd@stupidchicken.com>
3229 * xterm.h (x_catch_errors) Return value changed to void.
3230 (x_uncatch_errors): Delete unused count argument.
3232 * xterm.c (x_catch_errors): Don't use record_unwind_protect, since
3233 it can be called in a signal handler.
3234 (x_catch_errors_unwind): Function deleted.
3235 (x_uncatch_errors): Deallocate last x_error_message_stack struct.
3236 (x_check_errors): Call x_uncatch_errors before signalling error.
3238 (x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
3239 (x_connection_closed, x_list_fonts): Use new versions of
3240 x_catch_errors and x_uncatch_errors.
3242 * xselect.c (x_own_selection, x_decline_selection_request)
3243 (x_reply_selection_request, x_get_foreign_selection)
3244 (Fx_get_atom_name, Fx_send_client_event): Likewise.
3246 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
3249 * eval.c (record_unwind_protect): Add an assertion.
3251 2006-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
3253 * process.c (Fmake_network_process): Init the process's mark.
3255 2006-02-25 Kim F. Storm <storm@cua.dk>
3257 * buffer.c (modify_overlay): Force redisplay if we modify an
3258 overlay at the end of the buffer.
3260 2006-02-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3262 * gtkutil.c (xg_get_image_for_pixmap): If x_find_image_file returns
3263 nil the image file has been removed, in that case use the (cached)
3266 2006-02-24 Kenichi Handa <handa@m17n.org>
3268 * fileio.c (Finsert_file_contents): When a text is replaced
3269 partially, be sure to set point before the inserted characters.
3271 2006-02-23 Zhang Wei <id.brep@gmail.com> (tiny change)
3273 * xfns.c (Fx_file_dialog): Return a decoded file name.
3275 2006-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3277 * dispnew.c (update_text_area): Avoid needless redraw of rightmost
3278 glyph whose face is extended to the text area end.
3280 * macterm.c (x_set_toolkit_scroll_bar_thumb): Don't set control
3281 values if control is not visible or values are not changed.
3283 2006-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
3285 * window.c (Fwindow_list): Check `window' before doing XWINDOW.
3286 The default `window' should not be "on a different frame".
3288 2006-02-22 Kim F. Storm <storm@cua.dk>
3290 * indent.c (Fvertical_motion): Only try to move back if we can.
3292 2006-02-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3294 * macgui.h (struct _XGC) [!MAC_OSX || !USE_ATSUI]: New member
3297 * macmenu.c (digest_single_submenu): Apply 2006-02-19 change for
3300 * macterm.c (GC_CLIP_REGION): Remove macro.
3301 (mac_begin_clip, mac_end_clip): Take arg GC instead of REGION.
3302 All uses changed. Don't do clipping if n_clip_rects is zero.
3303 (mac_set_clip_rectangles): Use xassert instead of abort.
3304 Set n_clip_rects. Don't make clip_region empty when number of
3305 clipping rectangles is zero.
3306 (mac_reset_clip_rectangles): Set n_clip_rects directly instead of
3307 calling mac_set_clip_rectangles.
3308 (x_set_toolkit_scroll_bar_thumb): Temporarily hide scroll bar to
3309 avoid multiple redraws.
3311 2006-02-22 Kim F. Storm <storm@cua.dk>
3313 * fringe.c (draw_fringe_bitmap): Fix overlay-arrow display.
3315 2006-02-21 Kim F. Storm <storm@cua.dk>
3317 * fringe.c (syms_of_fringe) <fringe-bitmaps>: Doc fix.
3319 2006-02-21 Zhang Wei <brep@newsmth.org>
3321 * xfns.c (Fx_file_dialog, Motif and GTK): DECODE_FILE before
3324 2006-02-21 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
3326 * fringe.c (horizontal_bar_bits): Rename from `horisontal_bar_bits'.
3327 (standard_bitmaps): Use it.
3329 2006-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3331 * macterm.c (mac_draw_string_common): Remove arg MODE. New arg
3332 BG_WIDTH. All uses changed. Draw background if BG_WIDTH is not zero.
3333 (mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH.
3334 [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from
3335 mac_draw_string_cg. New arg BG_WIDTH. All uses changed.
3336 Draw background if BG_WIDTH is not zero. Use float constants as
3337 divisors instead of double. Use alloca instead of xmalloc/xfree.
3338 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
3339 [!MAC_OS8 || USE_ATSUI]: Background may be drawn using
3340 mac_draw_image_string* functions.
3341 (XLoadQueryFont) [MAC_OS8 && USE_ATSUI]: Don't adjust heights of
3342 some fonts when srcCopy text transfer mode might be used.
3343 (mac_begin_clip, mac_end_clip): Check if region is empty.
3344 (mac_set_clip_rectangles): When resetting clip region, make it
3345 empty instead of disposing of it.
3347 2006-02-20 Kim F. Storm <storm@cua.dk>
3349 * Makefile.in: Add fringe.elc to WINDOW_SUPPORT.
3351 * buffer.h (struct buffer): New members fringe_indicator_alist and
3352 fringe_cursor_alist.
3354 * buffer.c (init_buffer_once): Set dummy default values for
3355 fringe-indicator-alist and fringe-cursor-alist. The proper
3356 default values are set by pre-loading fringe.el.
3357 (syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and
3358 fringe-cursor-alist buffer-local variables and defvar_lisp_nopro
3359 corresponding default- variables.
3361 * fringe.c (enum fringe_bitmap_type): Remove. Change all uses
3363 (NO_FRINGE_BITMAP, UNDEF_FRINGE_BITMAP, MAX_STANDARD_FRINGE_BITMAPS):
3365 (Qtruncation, Qcontinuation, Qempty_line, Qtop_bottom)
3366 (Qhollow_small): New variables.
3367 (syms_of_fringe): Intern and staticpro them.
3368 (question_mark_bits): Rename from unknown_bits.
3369 (left_curly_arrow_bits): Rename from continuation_bits.
3370 (right_curly_arrow_bits): Rename from continued_bits.
3371 (left_triangle_bits): Rename from ov_bits.
3372 (right_triangle_bits): Add.
3373 (filled_rectangle_bits): Rename from filled_box_cursor_bits.
3374 (hollow_rectangle_bits): Rename from hollow_box_cursor_bits.
3375 (filled_square_bits): Add.
3376 (vertical_bar_bits): Rename from bar_cursor_bits.
3377 (horizontal_bar_bits): Rename from hbar_cursor_bits.
3378 (empty_line_bits): Rename from zv_bits.
3379 (standard_bitmaps): Update to use new names.
3380 (draw_fringe_bitmap_1): Make static.
3381 (get_logical_cursor_bitmap, get_logical_fringe_bitmap): New functions
3382 to map from logical cursors and indicators to physical bitmaps.
3383 (draw_fringe_bitmap): Resolve fringe cursor and overlay-arrow
3384 bitmaps using symbol names instead of bitmap numbers.
3385 (update_window_fringes): Use logical indicator symbol names
3386 instead of bitmap numbers for logical. Add bitmap cache.
3387 (LEFT_FRINGE, RIGHT_FRINGE): New helper macros.
3389 2006-02-20 Chong Yidong <cyd@stupidchicken.com>
3391 * regex.c: Revert 2006-02-19 change.
3392 (xmalloc, xrealloc): Define these when not linked to Emacs.
3393 Redefine malloc -> xmalloc, realloc -> xrealloc as in Emacs case.
3395 2006-02-19 Luc Teirlinck <teirllm@auburn.edu>
3397 * regex.c (extend_range_table_work_area): Fix typo.
3399 2006-02-19 Richard M. Stallman <rms@gnu.org>
3401 * xterm.c (x_catch_errors): Use xmalloc.
3403 * regex.c (extend_range_table_work_area): Call xmalloc and xrealloc.
3404 (regex_compile): Likewise.
3405 (regcomp): Use xmalloc.
3407 * gtkutil.c (malloc_widget_value): Use xmalloc.
3409 * vm-limit.c [HAVE_GETRLIMIT]: Include sys/resource.h.
3410 (check_memory_limits) [HAVE_GETRLIMIT]: Use getrlimit.
3412 * xmenu.c (digest_single_submenu): When pane_string is empty,
3413 do initialize save_wv.
3415 2006-02-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3417 * xdisp.c (update_menu_bar) [MAC_OS]: Don't set
3418 w->update_mode_line if arg F is not the selected frame.
3420 * macmenu.c (popup_activated_flag, submenu_id)
3421 (next_menubar_widget_id): Remove variables.
3422 (initialize_frame_menubar): Remove function.
3423 (pop_down_menu, mac_menu_show): Simplify save value.
3424 (dispose_menus): New function.
3425 (pop_down_menu, fill_menubar): Use it.
3426 (fill_submenu): Remove function. All uses changed to fill_menu.
3427 (add_menu_item): Remove args SUBMENU and FORCE_DISABLE. New arg
3428 POS. Don't call SetMenuItemHierarchicalID here.
3429 (fill_menu): Add arg SUBMENU_ID. Return submenu_id that is to be
3430 used next. Call SetMenuItemHierarchicalID here.
3431 (fill_menubar): Add arg DEEP_P. All uses changed. Clean up menu
3432 objects if needed. Reuse existing menu bar titles if possible.
3433 (set_frame_menubar): Don't clean up menu objects here.
3435 2006-02-18 Chong Yidong <cyd@stupidchicken.com>
3437 * window.c (window_min_size_1): Ensure room for the scroll bar and
3440 2006-02-17 Romain Francoise <romain@orebokech.com>
3442 * puresize.h (BASE_PURESIZE): Increment to 1200000.
3444 2006-02-17 Stefan Monnier <monnier@iro.umontreal.ca>
3446 * alloc.c (Fmake_symbol): Comment-out left-over assert from before the
3447 addition of the BLOCK_INPUTs.
3449 2006-02-17 Juanma Barranquero <lekktu@gmail.com>
3451 * window.c (Fset_window_scroll_bars): Doc fix.
3453 2006-02-17 Kenichi Handa <handa@m17n.org>
3455 * xdisp.c (display_mode_element): Call display_string with correct
3456 PREC arg (which must be a number of characters, not column width).
3458 2006-02-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3460 * frame.c (x_get_arg): Clear out PARAM in ALIST also on Mac.
3462 * macfns.c (x_set_menu_bar_lines): Menu bar is always shown on Mac.
3464 * macmenu.c (set_frame_menubar): Don't call DrawMenuBar.
3466 2006-02-14 Richard M. Stallman <rms@gnu.org>
3468 * frame.c (x_get_arg): Clear out all occurrences of PARAM in ALIST.
3470 * m/ibms390x.h: New file.
3472 2006-02-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3474 * gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to the
3475 value of x-gtk-whole-detached-tool-bar.
3476 (xg_tool_bar_attach_callback): Set show-arrow to TRUE.
3478 * xfns.c (syms_of_xfns): New variable: x-gtk-whole-detached-tool-bar.
3480 2006-02-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3482 * xterm.c (x_x_to_emacs_modifiers): Make non-static.
3484 * xterm.h: Declare x_x_to_emacs_modifiers.
3486 * gtkutil.c (xg_tool_bar_button_cb): New function.
3487 (xg_tool_bar_callback): Call x_x_to_emacs_modifiers to
3488 store modifiers in event.
3489 (update_frame_tool_bar): Connect button-release-event to
3490 xg_tool_bar_button_cb.
3492 2006-02-13 Richard M. Stallman <rms@gnu.org>
3494 * .gdbinit (xwindow): Update the code to show the window box.
3496 2006-02-13 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3498 * xterm.c (note_mouse_movement): Check for NULL FRAME_X_OUTPUT (frame).
3500 2006-02-12 Richard M. Stallman <rms@gnu.org>
3502 * cmds.c (internal_self_insert): Handle weird auto-fill-function.
3504 2006-02-11 Eli Zaretskii <eliz@gnu.org>
3506 * keyboard.c (Venable_disabled_menus_and_buttons): New variable.
3507 (syms_of_keyboard): DEVFAR_LISP and initialize it.
3508 (parse_tool_bar_item, parse_menu_item): If that variable is
3509 non-nil, don't disable menu items and tool-bar buttons.
3511 2006-02-11 Juanma Barranquero <lekktu@gmail.com>
3513 * doc.c (Fsubstitute_command_keys): Doc fix.
3515 2006-02-10 Thien-Thi Nguyen <ttn@gnu.org>
3517 * data.c (Findirect_function): Rewrite docstring.
3518 Fix omission bug: Declare new arg NOERROR.
3520 2006-02-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3522 * macfns.c (x_set_mouse_color): Don't call rif->define_frame_cursor
3523 if window_desc is not set yet.
3524 (Fx_create_frame): Remove variable x_frame_name. Apply 2005-12-07
3525 and 2006-01-26 changes for xfns.c. Call x_iconify_frame if frame
3526 parameter `visibility' is `icon'.
3527 (Fx_create_frame, x_create_tip_frame): Use "fontset-standard"
3528 instead of "fontset-mac".
3529 (Fx_focus_frame): New defun.
3530 (syms_of_macfns): Defsubr it.
3532 * macterm.c (mac_define_frame_cursor): Don't change pointer shape
3533 for unfocused frame.
3534 (x_raise_frame): Call BringToFront instead of SelectWindow.
3535 (x_lower_frame): Use NULL instead of nil.
3536 (x_make_frame_visible): Don't call SelectWindow.
3537 (XTread_socket): Increment handling_signal at the start, decrement
3539 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): Use
3540 CFPreferencesGetAppIntegerValue instead of Fmac_get_preference.
3542 2006-02-10 Kim F. Storm <storm@cua.dk>
3544 * data.c (Findirect_function): Add NOERROR arg. All callers changed
3545 to pass Qnil for NOERROR.
3547 * keymap.c (current_minor_maps_error): Remove.
3548 (current_minor_maps): Pass Qt for NOERROR to Findirect_function
3549 instead of using internal_condition_case_1+current_minor_maps_error.
3551 2006-02-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3553 * xterm.c (handle_one_xevent): Must note mouse movement even for nil
3554 frames for GTK, in that case it is the tool bar. This is so that
3555 highlighted text get reset properly.
3557 2006-02-09 Juanma Barranquero <lekktu@gmail.com>
3559 * alloc.c (Fmake_bool_vector, Fpurecopy): Doc fixes.
3561 2006-02-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3563 * window.c (adjust_window_trailing_edge): Check that shrinking
3564 does not set a window to size zero or less.
3566 2006-02-08 Miles Bader <miles@gnu.org>
3568 * editfns.c (Fconstrain_to_field): Use Fget_char_property instead
3569 of Fget_text_property (other field functions work with overlays as
3570 well as text-properties).
3572 2006-02-07 Kenichi Handa <handa@m17n.org>
3574 * dispextern.h (unibyte_display_via_language_environment): Extern it.
3576 * xterm.h (unibyte_display_via_language_environment):
3577 * w32term.h (unibyte_display_via_language_environment):
3578 * macterm.h (unibyte_display_via_language_environment): Delete extern.
3580 2006-02-07 Kenichi Handa <handa@m17n.org>
3582 * term.c (append_glyph): Refer to it->char_to_display instead of it->c.
3583 (produce_glyphs): Set the character to print in
3584 it->char_to_display. Handle unibyte-display-via-language-environment.
3585 (produce_stretch_glyph): Set character to print in it->char_to_display.
3587 2006-02-06 Kenichi Handa <handa@m17n.org>
3589 * lread.c (openp): Initialize encoded_fn before GCPRO it.
3591 2006-02-05 Ken Raeburn <raeburn@raeburn.org>
3593 * editfns.c (Fconstrain_to_field): Fix int/Lisp_Object mixup.
3595 * lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]:
3596 Cast bitfield value to EMACS_INT, to suppress gcc warning.
3598 * xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before
3601 2006-02-03 Kim F. Storm <storm@cua.dk>
3603 * xdisp.c: Cache last merged escape glyph face.
3604 (last_escape_glyph_frame, last_escape_glyph_face_id)
3605 (last_escape_glyph_merged_face_id): New variables.
3606 (get_next_display_element): Use/update them.
3607 (redisplay_internal): Reset them before redisplay.
3609 * xdisp.c (set_iterator_to_next): Optimize 2004-12-13 fix.
3610 Only recheck faces after displaying ellipsis.
3612 2006-02-02 Kenichi Handa <handa@m17n.org>
3614 * coding.c (decode_composition_emacs_mule): Fix handling of
3615 incorrect format data.
3617 2006-01-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3619 * gtkutil.c (update_frame_tool_bar): Use new tool bar functions
3620 (gtk_toolbar_insert) so we can have tool bars of different sizes.
3622 2006-01-30 Luc Teirlinck <teirllm@auburn.edu>
3624 * data.c (Flistp): Doc fix.
3626 2006-01-30 Juanma Barranquero <lekktu@gmail.com>
3628 * window.c (Fother_window, Fwindow_vscroll, Fset_window_vscroll):
3629 Fix typos in docstrings.
3631 2006-01-28 Luc Teirlinck <teirllm@auburn.edu>
3633 * data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings.
3635 2006-01-27 Chong Yidong <cyd@stupidchicken.com>
3637 * alloc.c (make_interval, allocate_string)
3638 (allocate_string_data, make_float, Fcons, allocate_vectorlike)
3639 (Fmake_symbol, allocate_misc): Use BLOCK_INPUT when accessing
3642 2006-01-27 Eli Zaretskii <eliz@gnu.org>
3644 * dired.c (DIRENTRY_NONEMPTY) [__CYGWIN__]: Don't use d_ino; use
3645 the MSDOS definition.
3647 2006-01-26 Richard M. Stallman <rms@gnu.org>
3649 * alloc.c (check_pure_size): Make overflow message an "error message".
3651 * keymap.c (Fmap_keymap): Doc fix.
3653 * xfns.c (Fx_create_frame): Put all specified parms into f->param_alist
3654 unless they were cleared out.
3656 * frame.c (x_get_arg): "Clear out" the parm in ALIST if found there.
3658 2006-01-26 L
\e$,1 q
\e(Brentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
3660 * editfns.c (Fconstrain_to_field): Fix behaviour on field boundaries.
3661 (find_field): Set before_field to after_field when pos is at BEGV.
3662 (Fline_beginning_position, Fline_end_position):
3663 Clarify confusing doc string.
3665 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc
3668 2006-01-26 Kenichi Handa <handa@m17n.org>
3670 * callproc.c (Fcall_process): GCPRO error_file. Encode infile,
3671 current_dir, and error_file. On reporting an error, decode them
3674 2006-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
3676 * regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
3677 (re_match_2_internal) <on_failure_jump, on_failure_jump_smart>:
3678 Don't check for quit, since any loop will go through fail or jump.
3680 2006-01-24 Chong Yidong <cyd@stupidchicken.com>
3682 * alloc.c (allocate_string_data): Update next_free immediately, to
3683 reduce risk of memory clobberage.
3685 2006-01-24 L
\e$,1 q
\e(Brentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
3687 * xdisp.c (handle_invisible_prop): Set it->position to fix cursor
3688 display when point moves across an ellipsis. If there are
3689 adjacent invisible texts, don't lose the second one's ellipsis.
3690 (x_produce_glyphs): Doc fix.
3692 2006-01-23 Stefan Monnier <monnier@iro.umontreal.ca>
3694 * xterm.c (x_catch_errors_unwind): Yet another int/Lisp_Object mixup.
3696 2006-01-23 Kim F. Storm <storm@cua.dk>
3698 * xdisp.c (handle_single_display_spec): Fix handling of space
3699 property on char from string: set *position rather than
3701 (produce_stretch_glyph): Reduce width of stretch glyphs so they
3702 don't get wider than the window (unless truncate-lines is on).
3704 2006-01-22 Stefan Monnier <monnier@iro.umontreal.ca>
3706 * xterm.c: Avoid allocating Lisp data from a signal handler.
3707 (x_error_message): New var to replace x_error_message_string.
3708 (x_error_catcher, x_catch_errors, x_catch_errors_unwind)
3709 (x_check_errors, x_had_errors_p, x_clear_errors, x_error_handler)
3710 (syms_of_xterm): Use it instead of x_error_message_string.
3712 * alloc.c (lisp_align_free): Add an assertion.
3713 (make_interval, allocate_string, make_float, Fcons, Fmake_symbol)
3714 (allocate_misc): If ENABLE_CHECKING is on, check we're not called from
3717 2006-01-21 Luc Teirlinck <teirllm@auburn.edu>
3719 * dired.c (syms_of_dired) <completion-ignored-extensions>: Doc fix.
3721 2006-01-21 Romain Francoise <romain@orebokech.com>
3723 * xdisp.c (get_window_cursor_type): Fix last change.
3724 Update copyright year.
3726 2006-01-20 Eli Zaretskii <eliz@gnu.org>
3728 * lread.c (Fload): Don't leak the file descriptor returned by
3729 openp if we are going to signal an error.
3731 * w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it
3733 (sys_dup): Protect against new_fd larger than fd_info[] can handle.
3734 (sys_read): If FD is outside [0..MAXDESC) limits, pass it directly
3736 (sys_write): If FD is outside [0..MAXDESC) limits, pass it
3739 * .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
3742 2006-01-20 Kenichi Handa <handa@m17n.org>
3744 * puresize.h (BASE_PURESIZE): Increment to 1190000.
3746 2006-01-19 Chong Yidong <cyd@stupidchicken.com>
3748 * xdisp.c (get_window_cursor_type): Use cursor type specified by
3749 the selected buffer for the echo area too.
3751 2006-01-19 Richard M. Stallman <rms@gnu.org>
3753 * keymap.c (Fmap_keymap): Doc fix.
3755 * s/irix6-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
3757 * keyboard.c (echo_char): Don't omit the space between first two
3760 * minibuf.c (read_minibuf): Fix previous change.
3762 2006-01-19 Kenichi Handa <handa@m17n.org>
3764 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
3766 2006-01-17 Richard M. Stallman <rms@gnu.org>
3768 * frame.c (x_frame_get_and_record_arg): Don't record Qunbound
3769 value in f->param_alist.
3771 2006-01-15 Andreas Schwab <schwab@suse.de>
3773 * search.c (Freplace_match): Use UPPERCASEP instead of !NOCASEP.
3775 2006-01-13 Richard M. Stallman <rms@gnu.org>
3777 * Makefile.in: Define new macro WINDOW_SUPPORT.
3779 (SOME_MACHINE_LISP): Add conditionally loaded files.
3781 2006-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3783 * macterm.c [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
3784 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering.
3785 (XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in
3788 * process.c [HAVE_INTTYPES_H]: Include inttypes.h.
3789 (ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE).
3790 (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK
3791 macro. Also try member ifr_addr when getting netmask.
3793 2006-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
3795 * fileio.c (Fexpand_file_name): Remove redundant tests.
3796 Fix elimination of // so that it doesn't prevent elimination of an
3797 immediately following /. or /..
3799 2006-01-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3801 * gtkutil.c (xg_toggle_notify_cb): New function.
3802 (xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
3803 xg_toggle_notify_cb.
3804 (xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
3805 parameter value changes so the toggle button gets updated.
3807 2006-01-06 Nick Roberts <nickrob@snap.net.nz>
3809 * .gdbinit: Fix typo.
3811 2006-01-05 Eli Zaretskii <eliz@gnu.org>
3813 * .gdbinit: Fix last change.
3815 2006-01-05 Kim F. Storm <storm@cua.dk>
3817 * process.c (Fmake_network_process): Use AF_INET instead of
3818 AF_UNSPEC when AF_INET6 is not defined.
3820 2006-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3822 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
3823 Don't check that the other type is known file-related one.
3825 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor,
3826 gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
3827 OS X 10.4 and later.
3829 2006-01-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3831 * gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
3832 let GTK do all image processing. Importing Emacs own pixmaps to GTK
3833 looks bad for inactive tool bar items with some Gnome themes.
3835 2006-01-04 Eli Zaretskii <eliz@gnu.org>
3837 * .gdbinit: Avoid a warning message when x_error_quitter is not
3840 * process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support
3843 2006-01-04 Kim F. Storm <storm@cua.dk>
3845 * process.c: Add IPv6 support.
3846 (Qipv4, Qipv6): New vars.
3847 (syms_of_process): Intern and staticpro them.
3848 (Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
3849 with or without port number. Handle 4 element vector as IPv4 address
3850 without port number.
3851 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
3852 (conv_lisp_to_sockaddr): Handle IPv6 addresses.
3853 (Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
3854 request that address family only. :family nil or omitted means to
3855 determine address family from the specified :host and :service.
3856 (ifflag_table): Add missing OpenBSD IFF_ flags.
3857 (server_accept_connection): Handle IPv6 addresses.
3858 (init_process): Add (:family ipv4) and (:family ipv6) sub-features.
3860 * .gdbinit: Undo last change. Instead, look at Vsystem_type to
3861 determine which breakpoints to set.
3863 2006-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
3865 * keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup.
3867 * window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c).
3869 2006-01-03 Romain Francoise <romain@orebokech.com>
3871 * emacs.c (main): Update copyright year.
3873 2006-01-03 Ken Raeburn <raeburn@gnu.org>
3875 * callproc.c (delete_temp_file): Bind file-name-handler-alist to
3876 nil for the call to internal_delete_file.
3878 2006-01-01 Ken Raeburn <raeburn@gnu.org>
3880 * callproc.c (Fcall_process_region): Bind file-name-handler-alist
3881 to nil for the call to Fwrite_region.
3883 2005-12-31 Richard M. Stallman <rms@gnu.org>
3885 * minibuf.c (read_minibuf): Clear out all other minibuffer windows.
3887 2005-12-31 Eli Zaretskii <eliz@gnu.org>
3889 * emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.
3891 2005-12-30 Luc Teirlinck <teirllm@auburn.edu>
3893 * textprop.c (set_text_properties): Reword description of return value.
3894 Return Qnil if caller wants to remove all text properties from a
3895 string and the string already has no intervals.
3897 2005-12-30 Stefan Monnier <monnier@iro.umontreal.ca>
3899 * term.c (visible_cursor): New boolean var.
3900 (set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
3902 (syms_of_term): Export the new var as "visible-cursor".
3904 2005-12-30 Eli Zaretskii <eliz@gnu.org>
3906 * .gdbinit: Tell users not to worry about GDB warnings that some
3907 functions do not exist in the binary.
3909 2005-12-30 Andreas Schwab <schwab@suse.de>
3911 * process.c (Fnetwork_interface_info): Correctly terminate the
3912 loop over ifflag_table.
3914 2005-12-29 Richard M. Stallman <rms@gnu.org>
3916 * lread.c (readevalloop): Test for reading a whole buffer
3917 before actually reading anything. Handle all cases, including
3918 START = END = nil and an already-narrowed buffer.
3919 Convert END to a marker if it is a number.
3921 * keymap.c (describe_map): Put sparse map elements into an array,
3922 sort them, then output a sequence of identical bindings on one line.
3923 (struct describe_map_elt): New data type.
3924 (describe_map_compare): New function.
3926 2005-12-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3928 * gtkutil.c (xg_get_file_with_chooser): Change message shown
3931 2005-12-27 Richard M. Stallman <rms@gnu.org>
3933 * lread.c (readevalloop): Set PT and ZV in the proper buffer,
3934 not the current one.
3936 * minibuf.c (Fminibuffer_message): Doc fix.
3937 (read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
3939 * eval.c (do_autoload): Ignore elements of Vautoload_queue
3940 where car is not symbol.
3942 2005-12-27 Kenichi Handa <handa@m17n.org>
3944 * charset.c (lisp_string_width): Check multibyteness of STRING.
3946 2005-12-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3948 * xfns.c: x_show_hidden_files, new variable.
3949 (syms_of_xfns): Defvar it.
3951 * gtkutil.c (xg_toggle_visibility_cb): New function.
3952 (xg_get_file_with_chooser): Add toggle hidden files and a message
3953 to the new file chooser dialog. Show hidden files if
3954 x_show_hidden_files is non-zero.
3956 2005-12-26 Richard M. Stallman <rms@gnu.org>
3958 * keyboard.h: Undo previous change.
3960 * Makefile.in (undo.o): Undo previous change.
3962 * undo.c: Undo previous change.
3964 2005-12-26 Luc Teirlinck <teirllm@auburn.edu>
3966 * keyboard.h: extern last_point_position_window.
3968 * undo.c: include keyboard.h.
3970 * Makefile.in (undo.o): Depend on keyboard.h.
3972 2005-12-26 Richard M. Stallman <rms@gnu.org>
3974 * commands.h (last_point_position_window): Declare.
3976 * undo.c: Depend on window.h.
3977 (record_point): Save old point from the correct window.
3979 * keyboard.c (last_point_position_window): New variable.
3980 (command_loop_1): Set last_point_position_window.
3981 (syms_of_keyboard): Init it.
3983 * Makefile.in (undo.o): Depend on window.h.
3985 2005-12-25 Richard M. Stallman <rms@gnu.org>
3987 * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
3988 to undo a `provide'.
3990 * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
3992 2005-12-25 Giorgos Keramidas <keramida@ceid.upatras.gr>
3994 * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
3995 define for FreeBSD on this platform.
3997 2005-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3999 * macterm.h (TYPE_FILE_NAME): New define.
4000 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
4002 * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname):
4003 Add prototypes. Make static.
4004 (mac_aedesc_to_lisp): Initialize err to noErr.
4005 (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
4006 (init_coercion_handler): New functions.
4007 (Fmac_coerce_ae_data): Use coercion of Apple event data for
4008 translation from/to file names.
4010 * macterm.c: Don't include sys/param.h.
4011 (init_coercion_handler): Add extern.
4012 [MAC_OS8] (main): Call init_coercion_handler.
4013 (mac_initialize) [MAC_OSX]: Likewise.
4014 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
4015 Apple event data for translation from/to file names.
4017 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
4019 * image.c [MAC_OS] (find_image_fsspec): Likewise.
4021 2005-12-23 Martin Rudalics <rudalics@gmx.at>
4023 * insdel.c (insert, insert_and_inherit, insert_before_markers)
4024 (insert_before_markers_and_inherit): Make sure FROM is correct
4025 when `after-change-functions' are called.
4027 2005-12-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4029 * xfns.c (Fx_uses_old_gtk_dialog): New function.
4031 * gtkutil.c (xg_uses_old_file_dialog): New function.
4032 (xg_get_file_name): Use xg_uses_old_file_dialog.
4034 * gtkutil.h: Declare xg_uses_old_file_dialog.
4036 2005-12-22 Richard M. Stallman <rms@gnu.org>
4038 * xmenu.c (xmenu_show): Call inhibit_garbage_collection.
4040 2005-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4042 * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
4044 * macgui.h (XCharStruct): Remove member `valid_p'.
4045 (STORE_XCHARSTRUCT): Don't set member `valid_p'.
4046 (XCharStructRow): New typedef.
4047 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
4049 (struct MacFontStruct): Add member `bounds'. Remove member
4050 `per_char'. All uses for QuichDraw Text fonts are changed to
4051 `bounds.per_char'. ATSUI font bounds are represented as an array
4052 `bounds.rows' of XCharStructRow's, each of which consists of a
4053 bitmap of valid entries and an array of char bounds.
4055 * macterm.c (mac_per_char_metric): Add prototype.
4056 (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
4057 (mac_query_char_extents): New function.
4058 (x_per_char_metric): Use it.
4059 (XLoadQueryFont): Likewise. Consolidate min/max_bounds calculations.
4060 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg):
4061 Use mac_per_char_metric instead of x_per_char_metric.
4062 (mac_text_extents_16): New function.
4063 (mac_compute_glyph_string_overhangs): Use it.
4064 (mac_unload_font): Free member `bounds' in struct MacFontStruct.
4066 2005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4068 * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
4069 (Fminibuffer_completion_help): Remove duplicates before display.
4071 2005-12-21 L
\e$,1 q
\e(Brentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
4073 * print.c (print_preprocess): Don't lose print_depth levels while
4076 2005-12-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4078 * macmenu.c (Qmac_apple_event): Add extern.
4079 (set_frame_menubar, mac_menu_show keymp_panes)
4080 (single_keymap_panes, list_of_panes, list_of_item)
4081 (single_menu_item): Add argument types to prototypes.
4082 (mac_dialog_show) [HAVE_DIALOGS]: Likewise.
4083 (struct skp): New struct (from xmenu.c).
4084 (single_keymap_panes, single_menu_item, list_of_panes)
4085 (list_of_item): Sync with xmenu.c.
4086 (Fx_popup_menu, Fx_popup_dialog): Likewise. Don't get window from
4087 POSITION if it is mac-apple-event event.
4088 (menubar_selection_callback): Don't use menu_command_in_progress.
4089 (set_frame_menubar): First parse all submenus, then make
4090 widget_value trees from them. Don't allocate any widget_value
4091 objects until we are done with the parsing.
4092 (parse_single_submenu, digest_single_submenu): New functions.
4093 (single_submenu): Function deleted, replaced by those two.
4094 (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't
4095 create or dispose of EventHandlerUPP. Install hander to all submenus.
4096 (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
4097 instead of ENCODE_SYSTEM.
4098 (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
4100 [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
4101 (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
4102 format menu item string. Don't use NULL for integer value.
4104 * macterm.h (struct mac_output): Remove unused member
4105 menu_command_in_progress.
4107 2005-12-20 Juri Linkov <juri@jurta.org>
4109 * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
4110 position is non-nil, else set it to nil.
4112 * macmenu.c (Fx_popup_menu): Add `else' to set
4113 Vmenu_updating_frame to nil only if position is nil.
4115 * w32menu.c (Fx_popup_menu): Add `else' to set
4116 Vmenu_updating_frame to nil only if position is nil.
4118 2005-12-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4120 * keyboard.c (make_lispy_event): Drag-and-drop items are now
4121 stored in member `args' of struct input_event.
4123 * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
4125 * xselect.c (x_handle_dnd_message): Drag-and-drop items are now
4126 stored in member `args' of struct input_event.
4128 * w32term.c (construct_drag_n_drop): Likewise.
4130 * macterm.c (mac_do_receive_drag): Likewise.
4131 (x_use_underline_position_properties): Undo 2005-07-13 change.
4132 (syms_of_macterm) <x-use-underline-position-properties>: Likewise.
4133 (mac_use_core_graphics, mac_wheel_button_is_mouse_2)
4134 (mac_pass_command_to_system, mac_pass_control_to_system):
4135 New boolean variables renamed from Lisp_Object ones
4136 Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
4137 Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
4139 (syms_of_macterm): DEFVAR_BOOL them. Remove previous DEFVAR_LISPs.
4140 Make them user options.
4141 (mac_handle_command_event, mac_store_services_event):
4142 Call create_apple_event_from_event_ref without 5th argument.
4143 (backtranslate_modified_keycode): Mask off modifier keys that are
4144 mapped to some Emacs modifiers before passing it to KeyTranslate.
4145 (syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
4146 `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
4147 Fix docstrings of `mac-*-modifier'.
4149 * mac.c (create_apple_event_from_event_ref): Remove arg `types'.
4150 (do_applescript): Change argument types to Lisp_Object.
4153 * macterm.h (create_apple_event_from_event_ref): Remove 5th
4154 argument from extern.
4156 2005-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4158 * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
4159 the answer, return `lambda', not nil.
4161 2005-12-17 Eli Zaretskii <eliz@gnu.org>
4163 * makefile.w32-in (bootstrap-temacs): Warn that parts of commands
4164 enclosed in $(ARGQUOTE)s should not be split between two lines, as
4165 that will break with GNU Make >3.80, when sh.exe is used and
4166 arg quoting is with '..'.
4168 2005-12-17 Chong Yidong <cyd@stupidchicken.com>
4170 * print.c (print_preprocess): Just signal an error if print_depth
4173 2005-12-17 Eli Zaretskii <eliz@gnu.org>
4175 * .gdbinit: Set a breakpoint on w32_abort.
4177 2005-12-16 Juri Linkov <juri@jurta.org>
4179 * minibuf.c (Fminibuffer_completion_contents): New Lisp function
4180 created from minibuffer_completion_contents.
4181 (minibuffer_completion_contents): Remove.
4182 (do_completion, Fminibuffer_complete_word)
4183 (Fminibuffer_completion_help): Replace minibuffer_completion_contents
4184 with Fminibuffer_completion_contents.
4185 (syms_of_minibuf): Add Sminibuffer_completion_contents.
4186 (Fdisplay_completion_list): Doc fix.
4187 (display_completion_list_1): Use `nil' for second arg of
4188 `Fdisplay_completion_list'.
4190 2005-12-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4192 * xfns.c (compute_tip_xy): Handle negative dx and dy.
4194 * w32fns.c (compute_tip_xy): Ditto.
4196 * macfns.c (compute_tip_xy): Ditto.
4198 2005-12-14 Chong Yidong <cyd@stupidchicken.com>
4200 * print.c (print_preprocess): Go to a deeper print_depth to avoid
4203 2005-12-14 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
4205 * coding.c (code_convert_region_unwind): GCPRO arg.
4207 2005-12-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4209 * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
4210 i.e. dy is offset from top of frame instead of bottom.
4212 * macfns.c (compute_tip_xy): Ditto.
4214 * w32fns.c (compute_tip_xy): Ditto.
4216 * gtkutil.c (SSDATA): New macro to remove compiler warnings.
4217 (xg_get_image_for_pixmap, xg_create_frame_widgets)
4218 (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
4220 * xmenu.c (menubar_selection_callback): Do nothing if the callback
4221 is for an unselected radio menu item.
4223 2005-12-11 Richard M. Stallman <rms@gnu.org>
4225 * xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
4227 * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
4229 * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
4230 (Flookup_key): Doc fix.
4231 (syms_of_keymap) <function-key-map>: Doc fix.
4233 * fns.c (Frequire): Treat evaluating from a source file
4234 like loading the file.
4236 * floatfns.c (Flog): Doc fix.
4238 * fileio.c (Finsert_file_contents): Set Vdeactivate_mark
4239 when we change the buffer.
4241 2005-12-11 Juri Linkov <juri@jurta.org>
4243 * minibuf.c (display_completion_list_1):
4244 Call `minibuffer_completion_contents' instead of using `nil' as
4245 second arg of `Fdisplay_completion_list'.
4246 (keys_of_minibuf): Unbind SPC in
4247 Vminibuffer_local_filename_completion_map (see also related
4248 change on 2005-12-06).
4250 2005-12-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4252 * emacs.c (main) [MAC_OS8]: Undo previous change.
4254 * macselect.c (syms_of_macselect) <mac-apple-event-map>:
4255 Initialize to nil. Keymap is now created in lisp/term/mac-win.el.
4257 2005-12-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4259 * Makefile.in (macselect.o): Depend on keymap.h.
4261 * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
4264 * image.c (init_image) [MAC_OS]: Don't call EnterMovies.
4265 [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
4267 * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
4268 (syms_of_keyboard) [MAC_OS]: Initialize it.
4269 (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
4271 * mac.c (Qundecoded_file_name): New variable.
4272 (syms_of_mac): Initialize it.
4273 (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
4274 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
4275 (Fmac_coerce_ae_data): New defun.
4276 (syms_of_mac): Defsubr it.
4278 * macselect.c: Include keymap.h.
4279 (mac_ready_for_apple_events): New variable.
4280 (Vmac_apple_event_map, Qmac_apple_event_class)
4281 (Qmac_apple_event_id): New variables.
4282 (syms_of_macselect): Initialize them.
4283 (Qundefined, mac_store_apple_event): Add externs.
4284 (struct apple_event_binding): New struct.
4285 (find_event_binding_fun, find_event_binding)
4286 (mac_find_apple_event_spec, defer_apple_events)
4287 (mac_handle_apple_event, init_apple_event_handler)
4288 (copy_scrap_flavor_data): New functions.
4289 (Fmac_process_deferred_apple_events): New defun.
4290 (syms_of_macselect): Defsubr it.
4291 (mac_store_services_event): Fix extern.
4292 (mac_handle_service_event): Don't allocate Lisp objects during
4293 asynchronous input processing. Use mac_store_services_event
4294 instead of mac_store_application_menu_event.
4296 * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
4297 (Qpreferences): Remove variables.
4298 (syms_of_macterm) : Don't initialize them.
4299 (Qhicommand) [USE_CARBON_EVENTS]: New variable.
4300 (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
4301 (init_required_apple_events, do_ae_open_application)
4302 (do_ae_print_documents, do_ae_open_documents)
4303 (do_ae_quit_application): Remove functions and prototypes.
4304 (mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
4305 (mac_find_apple_event_spec): Add externs.
4306 (mac_store_application_menu_event): Remove function.
4307 (mac_store_apple_event, mac_make_lispy_event_code): New functions.
4308 (mac_handle_command_event): Create Apple event from Carbon event.
4309 Use mac_store_apple_event instead of mac_store_application_menu_event.
4310 [MAC_OSX] (mac_store_services_event): Likewise.
4311 (struct SelectionRange, SelectionRange): Remove struct and typedef.
4312 [MAC_OS8] (main): Call init_apple_event_handler instead of
4313 init_required_apple_events.
4314 (mac_initialize) [MAC_OSX]: Likewise.
4315 [!USE_CARBON_EVENTS] (mac_wait_next_event):
4316 Use mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
4318 * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp):
4320 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
4321 (Fmac_get_preference): Add EXFUN.
4323 * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
4326 2005-12-09 Richard M. Stallman <rms@gnu.org>
4328 * xfns.c (Fx_create_frame): Reinstate previous change.
4330 2005-12-09 Eli Zaretskii <eliz@gnu.org>
4332 * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
4333 GDB to the abort dialog.
4335 2005-12-09 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
4337 * indent.c (Fvertical_motion): Force move if starting on
4340 2005-12-08 Richard M. Stallman <rms@gnu.org>
4342 * lread.c (read_escape) <\s>: Don't treat strings specially.
4344 * xfns.c (Fx_create_frame): Comment out previous change.
4346 2005-12-07 L
\e$,1 q
\e(Brentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
4348 * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
4351 2005-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
4353 * minibuf.c (keys_of_minibuf): Just unbind SPC in
4354 Vminibuffer_local_filename_completion_map rather than forcing it
4355 explicitly to the same binding as the global map.
4357 2005-12-06 Ken Raeburn <raeburn@gnu.org>
4359 * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP args.
4360 * bytecode.c (Fbyte_code): Likewise.
4361 * fileio.c (internal_delete_file, Fread_file_name_internal): Likewise.
4362 * minibuf.c (Fminibuffer_complete_and_exit): Likewise.
4363 * undo.c (truncate_undo_list): Likewise.
4365 2005-12-05 Richard M. Stallman <rms@gnu.org>
4367 * window.c (enlarge_window): Eliminate arg preserve_before.
4368 Assume it is 0. All callers changed.
4369 (Fenlarge_window, Fshrink_window): Likewise.
4371 2005-12-02 Eli Zaretskii <eliz@gnu.org>
4373 * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
4376 2005-12-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4378 * xterm.h: Add prototype for xg_set_icon_from_xpm_data.
4380 * xfns.c (x_real_positions): int ign => unsigned int.
4381 (xg_set_icon_from_xpm_data): Remove unused variable err.
4382 (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
4383 to remove compiler warning.
4384 (compute_tip_xy): Put tip above pointer if it doesn't fit below.
4386 2005-12-02 David Reitter <david.reitter@gmail.com>
4388 * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
4389 non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
4390 and Vminibuffer_local_must_match_filename_map keymaps.
4391 (keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
4393 * keymap.c (Vminibuffer_local_filename_completion_map)
4394 (Vminibuffer_local_must_match_filename_map): New variables.
4395 (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
4396 parent to be Vminibuffer_local_completion_map and
4397 Vminibuffer_local_must_match_map, respectively.
4399 * commands.h (Vminibuffer_local_filename_completion_map)
4400 (Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
4402 2005-12-01 Stefan Monnier <monnier@iro.umontreal.ca>
4404 * window.c (Fset_window_configuration): Don't accidentally copy the
4405 window-point of one window to another.
4407 2005-11-30 L
\e$,1 q
\e(Brentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
4409 * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
4411 2005-11-30 Kim F. Storm <storm@cua.dk>
4413 * alloc.c: Include fcntl.h. Define O_WRONLY if not defined.
4414 (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
4415 passing it to `emacs_write'.
4417 2005-11-29 Ari Roponen <arjuropo@cc.jyu.fi> (tiny change)
4419 * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
4421 2005-11-27 Richard M. Stallman <rms@gnu.org>
4423 * window.c (adjust_window_trailing_edge): New function.
4424 (Fadjust_window_trailing_edge): New function.
4425 (syms_of_window): Defsubr it.
4426 (window_deletion_count): New variable.
4427 (delete_window): Update window_deletion_count.
4429 2005-11-26 Eli Zaretskii <eliz@gnu.org>
4431 * minibuf.c (syms_of_minibuf): Mention the extension of
4432 `completion-auto-help's meaning by complete.el.
4434 2005-11-26 Henrik Enberg <henrik.enberg@telia.com>
4436 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
4437 Handle :inherit property as a lisp expression.
4439 2005-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4441 * macterm.c (Qcontrol): Rename from Qctrl. All uses changed.
4442 (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
4443 Qsuper, and Qmodifier_value.
4444 (Vmac_control_modifier, Vmac_option_modifier)
4445 (Vmac_command_modifier, Vmac_function_modifier)
4446 (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
4447 (Vmac_pass_command_to_system, Vmac_pass_control_to_system)
4448 (Vmac_charset_info_alist): Doc fixes.
4450 2005-11-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4452 * emacs.c (main) [MAC_OSX]: Change working directory to home
4453 directory if `-psn_*' option is specified.
4455 * mac.c (DECODE_UTF_8): Remove macro.
4456 [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
4457 created from cfstring_to_lisp.
4458 [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
4459 (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
4461 * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
4464 2005-11-21 Ken Raeburn <raeburn@gnu.org>
4466 * keymap.c (shadow_lookup): Use make_number to pass a number to
4469 2005-11-21 Juri Linkov <juri@jurta.org>
4471 * puresize.h (BASE_PURESIZE): Increment to 1180000.
4473 2005-11-20 Chong Yidong <cyd@stupidchicken.com>
4475 * xfaces.c (Finternal_set_lisp_face_attribute):
4476 Use :ignore-defface for new frame defaults when `unspecified' is
4478 (Finternal_get_lisp_face_attribute): Hide :ignore-defface.
4479 (merge_face_vectors): Don't do :ignore-defface overwriting here.
4480 (Finternal_merge_in_global_face): Do it here.
4482 2005-11-20 Juri Linkov <juri@jurta.org>
4484 * charset.c (invalid_character): Use Lisp-readable syntax
4485 for octal and hex. Reorder decimal, octal and hex values.
4487 2005-11-20 Nick Roberts <nickrob@snap.net.nz>
4489 * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
4490 this type is recognised when debugging.
4492 2005-11-19 Andreas Schwab <schwab@suse.de>
4494 * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
4495 Lisp_Cons and Lisp_Float.
4497 2005-11-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4499 * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
4501 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
4502 (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
4503 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
4504 font size is smaller than or equal to cg_text_anti_aliasing_threshold.
4506 2005-11-17 Chong Yidong <cyd@stupidchicken.com>
4508 * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
4510 * xfaces.c (Qignore_defface): New variable.
4511 (syms_of_xfaces): Provide `:ignore-defface'.
4512 (IGNORE_DEFFACE_P): New macro.
4513 (check_lface_attrs, lface_fully_specified_p)
4514 (Finternal_set_lisp_face_attribute)
4515 (Fface_attribute_relative_p, Fmerge_face_attribute):
4516 Handle Qignore_defface as a possible value.
4517 (merge_face_vectors): The merged face is `unspecified' if the
4518 mergee specifies `:ignore-defface'.
4520 2005-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
4522 * lread.c (readevalloop): Add missing GCPROs.
4524 2005-11-16 Chong Yidong <cyd@stupidchicken.com>
4526 * xfns.c (xg_set_icon_from_xpm_data): New function.
4528 * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
4529 (gnu_xbm_bits): Rename from gnu_bits (xbm version).
4531 * xterm.c (x_bitmap_icon): Use the xpm if available.
4533 * image.c (x_create_bitmap_from_xpm_data): New function.
4534 (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
4536 2005-11-15 Luc Teirlinck <teirllm@auburn.edu>
4538 * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
4540 2005-11-16 Nick Roberts <nickrob@snap.net.nz>
4542 * .gdbinit: Make SIGTSTP work like SIGINT normally does.
4544 2005-11-15 Andreas Schwab <schwab@suse.de>
4546 * lisp.h (struct Lisp_Cons): Make cdr a union.
4547 (XCDR_AS_LVALUE): Adjust.
4548 (struct Lisp_Float): Make data a union.
4549 (XFLOAT_DATA): Adjust.
4551 * alloc.c (free_float): Make free list chaining aliasing-safe.
4552 (make_float): Likewise.
4553 (free_cons): Likewise.
4555 (check_cons_list): Likewise.
4556 (Fmake_symbol): Likewise.
4557 (allocate_misc): Likewise.
4558 (free_misc): Likewise.
4559 (gc_sweep): Likewise.
4561 2005-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4563 * mac.c (HASHKEY_QUERY_CACHE): New define.
4564 (xrm_create_database, xrm_q_put_resource): Empty query cache.
4565 (xrm_get_resource): Use query cache.
4567 * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
4568 inhibit_window_system is set.
4570 2005-11-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4572 * macgui.h (USE_CG_TEXT_DRAWING): New define.
4573 (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
4576 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
4577 (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
4578 (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
4579 cg_glyphs in struct MacFontStruct if synthesized bold or italic is
4580 not used and font substitution never occurs for ASCII and Latin-1
4582 (XLoadQueryFont): Maximum and minimum metrics are now those among
4584 (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
4585 height adjustments for Courier, Helvetica, and Times.
4587 * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
4589 2005-11-11 David Reitter <david.reitter@gmail.com>
4591 * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
4592 macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
4593 Vmac_control_modifier / mac-control-modifier,
4594 Vmac_option_modifier / mac-option-modifier,
4595 Vmac_command_modifier / mac-command-modifier.
4596 (mac_to_emacs_modifiers): Use the new style modifier
4597 variables. Return UInt32 (modifiers are longs now.)
4598 (backtranslate_modified_keycode): New function (refactoring).
4599 (XTread_socket): Use new modifier variables and refactored function.
4600 (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
4601 no dedicated meta key. Not in use anyway.)
4602 (convert_fn_keycode): Map Fn-keys to their original keycode
4603 using a table (english keyboard only).
4605 2005-11-11 Kim F. Storm <storm@cua.dk>
4607 * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
4608 Add post hook to "backtrace" to always dump lisp call stack to
4609 increase chance of people sending it to us when reporting bugs.
4611 * doc.c (Fsubstitute_command_keys): Doc fix.
4613 * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
4615 * xdisp.c (handle_stop): Skip overlay string handling if
4616 ignore_overlay_strings_at_pos_p is set.
4617 (set_iterator_to_next): At end of display vector, set
4618 ignore_overlay_strings_at_pos_p if dpvec came from an overlay
4619 string, so we skip those overlay strings at current pos.
4621 2005-11-10 Lars Hansen <larsh@soem.dk>
4623 * fileio.c (file-regular-p): Doc fix.
4625 2005-11-10 Kim F. Storm <storm@cua.dk>
4627 * alloc.c (valid_lisp_object_p): New function to validate that
4628 an object is really a valid Lisp_Object.
4630 * lisp.h (valid_lisp_object_p): Add prototype.
4632 * print.c (safe_debug_print): New function to be called from gdb
4633 to print Lisp objects; use valid_lisp_object_p to avoid crashing
4634 if user tries to print something which is not a Lisp object.
4636 * .gdbinit (pp, pp1): Use safe_debug_print.
4637 (pv, pv1): New commands to print value of a lisp variable.
4639 2005-11-10 Nick Roberts <nickrob@snap.net.nz>
4641 * .gdbinit (pp1): New user-defined function.
4643 2005-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4645 * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
4647 * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
4648 related variables for dumped executable.
4650 * unexmacosx.c (unexec_write_zero): New function.
4651 (copy_data_segment): Clear uninitialized local variables in
4652 statically linked libraries.
4654 * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
4656 2005-11-09 Juri Linkov <juri@jurta.org>
4658 * keymap.c (shadow_lookup): If Flookup_key returns a number,
4659 call it again with a sub-key-sequence, and if its return value
4660 is non-nil (sub-key is bound), return nil.
4662 2005-11-08 Kim F. Storm <storm@cua.dk>
4664 * process.c (Fsignal_process): Recognize signal names with and
4665 without SIG prefix, e.g. SIGHUP and HUP.
4667 * search.c (search_buffer): No need to initialize base_pat.
4669 2005-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
4671 * window.c (Fget_lru_window, Fget_largest_window, window_loop):
4672 Don't abuse the `mini' arg. Use the `obj' arg instead.
4674 2005-11-04 Kim F. Storm <storm@cua.dk>
4676 * xdisp.c (show_mouse_face): Clear mouse face to eol.
4678 2005-11-03 Dan Nicolaescu <dann@ics.uci.edu>
4680 * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
4681 font-lock.elc and jit-lock.elc.
4683 2005-11-03 Richard M. Stallman <rms@gnu.org>
4685 * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
4686 (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
4687 (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
4689 * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
4691 * alloc.c (refill_memory_reserve): Move decl out of conditionals.
4693 2005-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
4695 * window.c (Fdisplay_buffer): Fix last change to not use
4698 2005-11-01 Kim F. Storm <storm@cua.dk>
4700 * fringe.c (update_window_fringes): Undo 2005-10-27 change.
4701 Instead, rotate the bottom angle bitmap 180 degrees to indicate
4702 that the bottom row does not end in a newline.
4704 2005-11-01 Andreas Schwab <schwab@suse.de>
4706 * unexelf.c (unexec): Handle .plt section in BSS segment.
4708 2005-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
4710 * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
4712 * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
4713 determine whether to consider dedicated windows as well.
4714 (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
4715 (Fdisplay_buffer): Do consider dedicated windows in those cases where
4716 we will split the window rather than reuse it.
4717 Don't try to use windows on other displays.
4719 2005-10-31 Dan Nicolaescu <dann@ics.uci.edu>
4721 * puresize.h (BASE_PURESIZE): Increment to 1170000.
4723 2005-10-31 Romain Francoise <romain@orebokech.com>
4725 * macfns.c: Update copyright year.
4726 * m/gould.h: Likewise.
4728 2005-10-30 Kim F. Storm <storm@cua.dk>
4730 * xdisp.c (display_line): Restore it->current_x and call
4731 extend_face_to_end_of_line when last glyph doesn't fit on line.
4732 (set_glyph_string_background_width): Remove specific tests here
4733 to see if face background should extend to end of line. Simplify.
4735 2005-10-30 Richard M. Stallman <rms@gnu.org>
4737 * alloc.c (BYTES_USED): Use uordblks, not arena.
4738 (bytes_used_when_reconsidered): New variable.
4739 (emacs_blocked_free): Set that.
4741 2005-10-29 Chong Yidong <cyd@stupidchicken.com>
4743 * alloc.c (emacs_blocked_free): Fix typo.
4745 2005-10-29 Richard M. Stallman <rms@gnu.org>
4747 * data.c (Fmake_variable_frame_local): Doc fix.
4749 * xdisp.c (handle_fontified_prop): Do nothing if memory full.
4750 (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
4751 controls whether to save and restore mode_line_proptrans_alist.
4753 (unwind_format_mode_line): Work with that feature.
4754 (redisplay_internal): Don't call prepare_menu_bars if memory full.
4755 (move_elt_to_front): New function.
4756 (display_mode_element): Use move_elt_to_front.
4757 Don't bother munging text props on a null string.
4758 Delete obsolete elts from mode_line_proptrans_alist.
4759 (decode_mode_spec): Test Vmemory_full, not spare_memory.
4760 (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
4762 * lisp.h (memory_full_cons_threshold): Declare.
4763 (internal_lisp_condition_case): Declare.
4765 * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
4766 (Fmemory_full_p): Function deleted.
4767 (syms_of_alloc): Don't defsubr it.
4768 (memory_full_cons_threshold): New variable.
4769 (spare_memory): Now a vector of 7 elts.
4770 (buffer_memory_full): Don't set Vmemory_full here.
4771 (xfree): Don't try to refill here.
4772 (emacs_blocked_free): Record BYTES_USED in local var.
4773 (memory_full): Now free all the slots in spare_memory.
4774 (refill_memory_reserve): Allocate each slot in spare_memory.
4775 (init_alloc_once): Call refill_memory_reserve.
4777 * keyboard.c (command_loop_1): Don't set Vmemory_full here.
4779 * eval.c (internal_lisp_condition_case): New function.
4780 (Fcondition_case): Use internal_lisp_condition_case.
4781 (Feval): Test Vmemory_full and memory_full_cons_threshold.
4782 (Ffuncall): Likewise.
4784 * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
4786 2005-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
4788 * syntax.c (Fparse_partial_sexp): Fix docstring.
4790 2005-10-28 Romain Francoise <romain@orebokech.com>
4792 * puresize.h (BASE_PURESIZE): Increment to 1130000.
4794 2005-10-28 Richard M. Stallman <rms@gnu.org>
4796 * xfns.c (syms_of_xfns): Provide `x' as feature.
4798 * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
4800 * editfns.c (Fformat): Don't include string padding
4801 between info[n].start and info[n].end.
4803 * alloc.c (spare_memory): No longer static.
4804 (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
4806 * puresize.h (BASE_PURESIZE): Increment to 1120000.
4808 2005-10-27 Chong Yidong <cyd@stupidchicken.com>
4810 * data.c (Fmake_variable_frame_local): Add clarification to docstring.
4812 * fringe.c (update_window_fringes): Handle case where buffer ends
4815 2005-10-27 Kenichi Handa <handa@m17n.org>
4817 * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
4819 2005-10-24 Kenichi Handa <handa@m17n.org>
4821 * charset.h (charset_mule_unicode_0100_24ff)
4822 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
4825 * charset.c (charset_mule_unicode_0100_24ff)
4826 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
4828 (Fsetup_special_charsets): Initialize them.
4830 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
4831 supported Unicode characters.
4833 2005-10-25 Jason Rumney <jasonr@gnu.org>
4835 * w32fns.c (w32_to_x_font): Avoid forcing font widths.
4837 2005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4839 * image.c [MAC_OS] (image_load_qt_1): Check image size.
4840 Use GraphicsImportGetImageDescription instead of
4841 GraphicsImportGetNaturalBounds.
4842 [MAC_OSX] (image_load_quartz2d): Check image size.
4843 [MAC_OS] (xpm_load_image): Likewise.
4845 * macterm.c (last_mouse_glyph_frame): New var.
4846 (note_mouse_movement): Say mouse moved if current frame differs
4847 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
4848 (XTmouse_position): Set last_mouse_glyph_frame.
4849 (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
4850 (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
4852 (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
4853 (x_per_char_metric, XLoadQueryFont)
4854 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
4856 (mac_to_x_fontname, mac_do_list_fonts)
4857 (mac_initialize_display_info): Change screen resolutions to 72dpi.
4859 2005-10-25 Masatake YAMATO <jet@gyve.org>
4861 * minibuf.c (Fdisplay_completion_list): Small doc fix.
4863 2005-10-24 Kim F. Storm <storm@cua.dk>
4865 * xterm.c: Undo 2005-10-23 change.
4866 (last_mouse_glyph_frame): New var.
4867 (note_mouse_movement): Say mouse moved if current frame differs
4868 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
4869 (XTmouse_position): Set last_mouse_glyph_frame.
4870 (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
4871 last_mouse_glyph] on mouse up/down event.
4873 * editfns.c (Fcompare_buffer_substrings): Fix last change.
4875 2005-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
4877 * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
4879 2005-10-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4881 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
4882 so tool tips don't interfere with press on tool bar button.
4884 2005-10-23 Richard M. Stallman <rms@gnu.org>
4886 * casetab.c (Fset_case_table): Doc fix.
4888 * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
4889 (readevalloop): Compute ENTIRE properly.
4890 (syms_of_lread) <load-history>: Doc fix.
4892 2005-10-21 Richard M. Stallman <rms@gnu.org>
4894 * lread.c (Fload): Simplify gcpro structure.
4895 Gcpro FOUND as well as FILE, but not EFOUND.
4896 Unless preloading, record FOUND instead of FILE in Vload_history.
4897 Rename repeat local FILE to MSG_FILE.
4898 (syms_of_lread) <load-history>: Doc fix.
4900 2005-10-21 Kenichi Handa <handa@m17n.org>
4902 * search.c (boyer_moore): Add parens to fix and/or precedence bug.
4904 2005-10-20 Kim F. Storm <storm@cua.dk>
4906 * buffer.c (clone_per_buffer_values): Remove unused var tem.
4907 (init_buffer): Remove unused vars dotstat, pwdstat.
4909 * ccl.c (check_ccl_update): Remove unused var vp.
4911 * fileio.c (auto_save_error): Call SAFE_FREE.
4913 * fns.c (Fchar_table_range): Remove unused var i.
4915 * minibuf.c (display_completion_list_1): New wrapper function
4916 for Fdisplay_completion_list.
4917 (Fminibuffer_completion_help): Use it.
4919 * term.c (encode_terminal_code): Remove unused var src_start.
4921 * window.c (Fwindow_tree): Remove unused var alist.
4923 * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
4925 2005-10-20 Aubrey Jaffer <agj@alum.mit.edu> (tiny change)
4927 * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
4929 2005-10-20 Olli Savia <ops@iki.fi> (tiny change)
4931 * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
4933 2005-10-20 Andreas Schwab <schwab@suse.de>
4935 * minibuf.c (Fdisplay_completion_list): Doc fix.
4937 2005-10-19 Kim F. Storm <storm@cua.dk>
4939 * image.c (check_image_size): Handle integer Vmax_image_size value
4940 directly as max pixel value. Use default frame size for null frame.
4941 (syms_of_image) <max-image-size>: Describe integer value.
4943 2005-10-19 Romain Francoise <romain@orebokech.com>
4945 * emacs.c (main): Update copyright year.
4947 2005-10-18 Chong Yidong <cyd@stupidchicken.com>
4949 * image.c (Vmax_image_size): New variable.
4950 (check_image_size): New function.
4951 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
4952 (gif_load, gs_load): Use it.
4953 (lookup_image): Try loading again if previous load failed.
4954 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
4955 to display in, NULL if none.
4956 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
4959 2005-10-18 Richard M. Stallman <rms@gnu.org>
4961 * search.c (Fstring_match): Doc fix.
4963 2005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4965 * macterm.c (note_mouse_movement): Use PtInRect.
4966 (XTread_socket): Also ignore mouse motion just before a button
4967 release event. Don't process button release event when mouse is
4970 2005-10-16 Masatake YAMATO <jet@gyve.org>
4972 * minibuf.c (Fdisplay_completion_list): Add new optional
4973 argument COMMON_SUBSTRING. Bind `completion-common-substring'
4974 to the optional argument during running `completion-setup-hook'.
4976 2005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4978 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
4979 Allow nil as argument.
4980 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
4981 for encoding arguments as UTF-16 in native byte order, no BOM.
4983 * macfns.c (Fx_create_frame): Add debugging code.
4984 (Fx_show_tip): Set frame pixel width and height.
4986 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
4987 (FRAME_NORMAL_GC): New macro.
4988 (mac_draw_line, mac_clear_area, mac_clear_window)
4989 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
4990 (mac_draw_image_string, mac_draw_image_string_16): Rename from
4991 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
4992 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
4994 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
4995 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
4996 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
4997 (mac_draw_string_16, mac_draw_image_string)
4998 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
4999 (mac_scroll_area): Drawing functions now take frame as destination.
5001 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
5002 (x_draw_fringe_bitmap): Set clipping area in face->gc.
5004 * macterm.h (mac_clear_area): Add extern.
5006 2005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5008 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
5009 changes for xterm.c.
5011 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
5013 2005-10-14 Kenichi Handa <handa@m17n.org>
5015 * search.c (search_buffer): Give up BM search on case-fold-search
5016 if one of a target character has a case-equivalence of different
5017 charset even if that target charcter is an ASCII.
5019 * casefiddle.c (casify_object): Fix for the case that case
5020 conversion change the byte length.
5022 2005-10-14 Kim F. Storm <storm@cua.dk>
5024 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
5025 (handle_one_xevent): Only clear help_echo_string; restore it if
5026 note_mouse_movement didn't record any mouse movement.
5028 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
5029 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
5031 * keyboard.c (make_lispy_position): Adjust wx for left margin if
5033 (Fposn_at_x_y): Fix calculation of x coordinate.
5034 (Fposn_at_point): Return nil if point is hscrolled out of view.
5036 2005-10-13 Andreas Schwab <schwab@suse.de>
5038 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
5039 non-interactive mode.
5041 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5043 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
5045 2005-10-12 Kim F. Storm <storm@cua.dk>
5047 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
5049 2005-10-12 Romain Francoise <romain@orebokech.com>
5051 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
5053 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5055 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
5056 get end of text rows. Obtain header-line/mode-line rows directly.
5058 * xterm.c, w32term.c, macterm.c (note_mouse_movement):
5059 Restore help_echo_string if mouse is moved inside last_mouse_glyph.
5061 2005-10-12 Kim F. Storm <storm@cua.dk>
5063 * xdisp.c (remember_mouse_glyph): New generic version based on
5064 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
5065 properly handle all different window areas.
5067 * dispextern.h (remember_mouse_glyph): Add prototype.
5069 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
5070 (note_mouse_movement, XTmouse_position): Use generic
5071 remember_mouse_glyph, add last_mouse_glyph arg.
5073 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
5074 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
5075 (note_mouse_movement, w32_mouse_position): Use generic
5076 remember_mouse_glyph, add last_mouse_glyph arg.
5078 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
5079 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
5080 (XTmouse_position): Adapt to use generic remember_mouse_glyph
5081 instead of pixel_to_glyph_coords.
5083 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
5084 Fix x position for ON_TEXT when left margin width > 0.
5086 2005-10-11 Kim F. Storm <storm@cua.dk>
5088 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
5090 * keyboard.c (make_lispy_position): Fix buffer calculations for
5091 mouse click or movement in right fringe and the margins.
5093 2005-10-11 Juanma Barranquero <lekktu@gmail.com>
5095 * image.c (fn_jpeg_stdio_src): Don't define it.
5096 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
5097 (our_common_init_source): Rename from `our_init_source'.
5098 (our_common_term_source): Rename from `our_term_source'.
5099 (our_memory_fill_input_buffer): Rename from
5100 `our_fill_input_buffer'.
5101 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
5102 (jpeg_memory_src): Use the new names.
5103 (struct jpeg_stdio_mgr): New struct.
5104 (JPEG_STDIO_BUFFER_SIZE): New constant.
5105 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
5106 (jpeg_file_src): New functions.
5107 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
5109 2005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5111 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
5112 (fm_font_family_alist): New variable.
5113 (syms_of_macterm): Initialize and staticpro it.
5114 (decode_mac_font_name): Replace '-' in family name with '_' if it
5115 occurs just once. Lower family name.
5116 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
5117 All uses changed. Remove argument MF and code conversion for it.
5118 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
5119 to CHARSET. Parse font size. Lower family name. Return integer
5120 value for status of parsing.
5121 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
5122 Don't use Fdowncase because family name is already lowered by
5123 decode_mac_font_name.
5124 (init_font_name_table): Always call decode_mac_font_name.
5125 Add pair of family name and its reference to fm_font_family_alist.
5126 (mac_clear_font_name_table): Clear fm_font_family_alist.
5127 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
5128 Lookup fm_font_family_alist to get font family reference.
5129 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
5130 name is already lowered by parse_x_font_name.
5132 2005-10-11 Kim F. Storm <storm@cua.dk>
5134 * xterm.c (glyph_rect): Return 0 if position is outside text area.
5136 * keyboard.c (make_lispy_position): Fix buffer position calculation for
5137 mouse click or movement in fringe.
5139 2005-10-10 Jason Rumney <jasonr@gnu.org>
5141 * xterm.c (remember_mouse_glyph): New function.
5142 (note_mouse_movement): Use it to remember the current glyph if changed.
5143 (XTmouse_position): Fix calculation of fake glyph under mouse.
5144 Move code to calculate glyph under mouse into remember_mouse_glyph.
5146 2005-10-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5148 * emacs.c (USAGE3, standard_args): -nb => -nbi.
5150 2005-10-10 Juanma Barranquero <lekktu@gmail.com>
5152 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
5153 (next_frame, prev_frame, set_term_frame_name): Make static.
5155 * window.c (Fwindow_tree): Fix spelling.
5157 2005-10-09 Romain Francoise <romain@orebokech.com>
5159 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
5161 2005-10-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5163 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
5164 Add options -nb, --no-bitmap-icon.
5166 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
5168 2005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5170 * macgui.h (MAX_CLIP_RECTS): New define.
5171 (struct _XGC): New member clip_region.
5172 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
5175 * macterm.c (GC_CLIP_REGION): New macro.
5176 (saved_port_clip_region): New variable.
5177 (mac_begin_clip, mac_end_clip): New functions.
5178 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
5179 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
5180 (mac_copy_area_with_mask, mac_scroll_area): Use them.
5181 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
5182 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
5183 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
5184 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
5185 rectangles stored in gc.
5186 (XFreeGC): Dispose of clipping region.
5187 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
5188 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
5189 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
5190 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
5191 (x_draw_bar_cursor): Use them.
5192 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
5193 get multiple clipping rectangles.
5195 * macterm.h (mac_term_init): Add types to extern.
5196 (struct mac_output): Remove members mWP and pending_menu_activation.
5197 Put members scroll_bar_foreground_pixel and
5198 scroll_bar_background_pixel in #if 0.
5199 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
5201 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
5204 2005-10-08 Kim F. Storm <storm@cua.dk>
5206 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
5208 2005-10-07 Kim F. Storm <storm@cua.dk>
5210 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
5211 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
5212 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
5214 2005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5216 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
5217 to for_overlaps. Now occupy 3 bits.
5218 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
5219 (OVERLAPS_ERASED_CURSOR): New defines.
5220 (struct redisplay_interface): Add new OVERLAPS arg to member
5221 fix_overlapping_area.
5222 (x_fix_overlapping_area): Add new OVERLAPS arg.
5223 (get_glyph_string_clip_rects): Add extern.
5225 * dispnew.c (redraw_overlapping_rows):
5226 Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
5228 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
5230 (get_glyph_string_clip_rects): New function created from
5231 get_glyph_string_clip_rect. Set clipping rectangles according to the
5232 value of for_overlaps. Enable to store multiple clipping rectangles.
5233 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
5234 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
5235 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
5236 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
5237 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
5238 calculating clipping rectangles later. Call x_fix_overlapping_area
5239 with new OVERLAPS arg to draw only erased cursor area.
5240 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
5241 to draw overlaps in both preceding and succeeding rows.
5243 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
5244 struct glyph_string to for_overlaps.
5246 2005-10-04 Richard M. Stallman <rms@gnu.org>
5248 * alloc.c (refill_memory_reserve): Conditionalize the body,
5249 not the function's existence.
5251 2005-10-04 Kim F. Storm <storm@cua.dk>
5253 * window.c (window_split_tree): New function.
5254 (Fwindow_split_tree): New defun.
5255 (syms_of_window): Defsubr it.
5257 2005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5259 * macterm.c (mac_invert_rectangle): New function.
5262 2005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
5264 * regex.h (re_char): Don't expose it in the interface.
5265 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
5267 * regex.c (re_char): Move it back here.
5268 (re_set_whitespace_regexp): Change the arg's type to not use it.
5270 * keyboard.c (make_lispy_event): If point has moved between down and up
5271 event, make it a drag, not a click, to mirror what
5272 mouse-drag-region expects.
5274 2005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5276 * lisp.h (fatal): Undo previous change.
5277 * term.c (fatal): Undo previous change.
5279 2005-10-01 Richard M. Stallman <rms@gnu.org>
5281 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
5283 2005-10-01 Kim F. Storm <storm@cua.dk>
5285 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
5287 2005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5289 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
5291 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
5292 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
5293 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
5294 Try ATSUI-compatible 12pt Monaco font first.
5296 * macgui.h (struct _XCharStruct): New member valid_p.
5297 (STORE_XCHARSTRUCT): Set valid_p.
5298 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
5300 * macterm.c (mac_draw_string_common, x_per_char_metric)
5301 (mac_compute_glyph_string_overhangs, init_font_name_table)
5302 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
5303 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
5304 (x_draw_glyph_string_background)
5305 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
5306 XDrawImageString. Always draw background and foreground separately.
5307 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
5308 functions for one-byte chars when using ATSUI-compatible fonts.
5309 (atsu_font_id_hash) [USE_ATSUI]: New variable.
5310 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
5311 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
5312 max_char_or_byte2 more in detail.
5313 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
5315 2005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
5317 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
5318 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
5320 * unexelf.c (fatal): Fix prototype.
5322 * term.c (fatal): Implement using varargs.
5324 * regex.c (re_char): Move typedef ...
5325 * regex.h (re_char): ... here.
5326 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
5328 * emacs.c (malloc_set_state): Fix return type.
5331 * lisp.h (fatal): Add argument types.
5333 * dispextern.h (fatal): Delete prototype.
5335 * systime.h (make_time): Prototype moved from ...
5336 * editfns.c (make_time): ... here.
5338 * editfns.c: Move systime.h include after lisp.h.
5341 * process.c: Likewise.
5343 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
5344 Add parameter types.
5345 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
5346 (emacs_blocked_free): Change definition to match __free_hook.
5347 (emacs_blocked_malloc): Change definition to match __malloc_hook.
5348 (emacs_blocked_realloc): Change definition to match __realloc_hook.
5350 2005-09-30 Romain Francoise <romain@orebokech.com>
5352 * minibuf.c (Fread_buffer): Follow convention for reading from the
5353 minibuffer with a default value. Doc fix.
5355 2005-09-29 Juri Linkov <juri@jurta.org>
5357 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
5358 Rename argument name `string' to `format-string'.
5361 2005-09-28 Kim F. Storm <storm@cua.dk>
5363 * image.c (gif_load): Fix size of allocated image buffer
5364 for images where a sub-image may be larger than the image's
5365 total height/width specifications.
5367 2005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5369 * macgui.h (struct _XCharStruct): Each member now takes short value.
5371 2005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
5373 * xfaces.c (lookup_derived_face): Add parameter type.
5375 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
5377 * marker.c (verify_bytepos): Add parameter type.
5379 * process.c (get_operating_system_release): Move prototype ...
5381 * systime.h (get_operating_system_release): ... here.
5383 * xterm.c (handle_one_xevent): Refer to union field to match the
5384 type required by the function definition.
5385 (set_vertical_scroll_bar): Move prototype ...
5387 * xterm.h: ... here.
5389 * fns.c (internal_equal, seed_random): Fix prototypes.
5390 (internal_equal): Add missing parameter.
5392 2005-09-25 Richard M. Stallman <rms@gnu.org>
5394 * keyboard.c (update_menu_bindings): Variable deleted.
5395 (syms_of_keyboard): Don't defvar it.
5396 (parse_menu_item): Don't test it.
5398 2005-09-23 Richard M. Stallman <rms@gnu.org>
5400 * editfns.c (Fformat): Explicitly test for end of format string
5401 and don't use `index'.
5403 2005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
5405 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
5406 Define BROKEN_GET_CURRENT_DIR_NAME.
5408 * sysdep.c (get_current_dir_name): Also define if
5409 BROKEN_GET_CURRENT_DIR_NAME.
5411 * m/ibmrs6000.h: Test for USG5, not USG5_4.
5413 2005-09-22 Kim F. Storm <storm@cua.dk>
5415 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
5416 (message2): Fix commentary. Ok to use alloca'ed memory.
5417 Still not ok to use Lisp string data (because of GC).
5418 (set_message): Add comment why GC cannot happen.
5420 2005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5422 * macterm.c (xlfdpat_block_match_1): Fix assertion.
5423 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
5424 variants for a scalable font multiple times.
5426 2005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5428 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
5429 Setup slave tty options before forking.
5431 2005-09-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5433 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
5434 positions have been set for the frame (as is done for frames in
5435 special-display-buffer-names).
5437 2005-09-19 Kim F. Storm <storm@cua.dk>
5439 * editfns.c (Fformat): Don't scan past end of format string that
5440 ends in %. Reported by: Johan Bockg
\e,Ae
\e(Brd.
5442 2005-09-18 Andreas Schwab <schwab@suse.de>
5444 * window.h (struct window): Remove height_fixed_p, no longer set.
5446 * window.c (make_window): Don't initialize height_fixed_p.
5447 (window_fixed_size_p): Don't use it.
5449 2005-09-18 John Paul Wallington <jpw@pobox.com>
5451 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
5453 2005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5455 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
5457 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
5459 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
5462 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
5464 2005-09-17 Eli Zaretskii <eliz@gnu.org>
5466 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
5467 (obj): Use XMENU_OBJ, not a literal xmenu.o.
5469 2005-09-16 Romain Francoise <romain@orebokech.com>
5471 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
5473 2005-09-15 Richard M. Stallman <rms@gnu.org>
5475 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
5476 (display_mode_element): Instead of `lisp_string' and `this',
5477 record `offset' and increment that.
5478 `last_offset' replaces `last'.
5480 * Makefile.in (XMENU_OBJ): Variable deleted.
5481 (obj): Use xmenu.o unconditionally.
5482 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
5484 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
5486 2005-09-15 Kim F. Storm <storm@cua.dk>
5488 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
5489 (reseat_at_next_visible_line_start): Likewise (in xassert).
5491 2005-09-14 Romain Francoise <romain@orebokech.com>
5493 * fileio.c (write_region_inhibit_fsync): New variable.
5494 (Fwrite_region): Use it to skip call to fsync.
5495 (syms_of_fileio): Initialize it.
5497 2005-09-14 Kenichi Handa <handa@m17n.org>
5499 * coding.c (code_convert_region_unwind): Argument format changed.
5500 (run_pre_post_conversion_on_str): If pre-write-conversion function
5501 changed the current buffer, delete the new buffer.
5502 (run_pre_write_conversin_on_c_str): Likewise.
5504 * fileio.c (Fexpand_file_name): Check multibyteness of
5507 2005-09-13 Kenichi Handa <handa@m17n.org>
5509 * composite.c (compose_chars_in_text): Delete it.
5511 * composite.h (compose_chars_in_text): Delete extern.
5513 2005-09-13 Kim F. Storm <storm@cua.dk>
5515 * print.c (print_error_message): Fix last change.
5517 2005-09-12 Kim F. Storm <storm@cua.dk>
5519 * composite.c (compose_chars_in_text): Fix setup of `pend'.
5520 Unconditionally reload `ptr' and `pend' after eval.
5522 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
5524 * print.c (print_error_message): Pass copy of caller name to
5527 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
5529 2005-09-12 Kenichi Handa <handa@m17n.org>
5531 * xdisp.c (display_mode_element): Be sure to make variables THIS
5532 and LISP_STRING point into a string data of ELT.
5534 2005-09-12 Kim F. Storm <storm@cua.dk>
5536 * editfns.c (Ftranslate_region_internal): Reload `tt' after
5537 signal_after_change that may have GC'ed.
5538 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
5540 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
5541 after insert while runs signal_after_change.
5543 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
5544 declaration to where it is used.
5546 * w32.c (check_windows_init_file): Fix allocation of error buffer.
5548 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
5549 (x_set_name_internal): Call x_encode_text with new FREEP arg to
5550 know if xfree is needed instead of guessing.
5552 * xterm.h (x_encode_text): Remove prototype.
5554 2005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
5556 * w32term.c (x_bitmap_icon): Load small icons too.
5558 2005-09-10 Romain Francoise <romain@orebokech.com>
5560 * buffer.c (init_buffer): Grow buffer to add directory separator
5561 and terminal zero. Fix typos.
5563 2005-09-10 Eli Zaretskii <eliz@gnu.org>
5565 * buffer.c (init_buffer): Fix error message for failed call to
5566 get_current_dir_name.
5567 (get_current_dir_name): Remove prototype.
5569 * xsmfns.c (get_current_dir_name): Remove prototype.
5571 * lisp.h (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
5574 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
5575 Don't #undef NULL after including blockinput.h.
5577 * config.in: Regenerated.
5579 2005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
5581 Remove the MAXPATHLEN limitations:
5583 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
5586 * buffer.c (init_buffer): Use it.
5588 * xsmfns.c (smc_save_yourself_CB): Ditto.
5590 2005-09-09 Kim F. Storm <storm@cua.dk>
5592 * doc.c (Fsubstitute_command_keys): Lookup key binding for
5593 commands that are remapped from some other command.
5595 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
5596 flag in disabled rows below the window.
5598 * frame.h (struct frame): New member updated_p.
5600 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
5601 member. Remove local `updated' array and associated variables.
5603 2005-09-07 Kim F. Storm <storm@cua.dk>
5605 * xdisp.c (handle_display_prop): Respect overlay window property.
5607 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
5608 Fixes crash reported by YAMAMOTO Mitsuharu.
5610 2005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5612 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
5613 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
5614 (xlfdpat_block_match_1, xlfdpat_match): New functions.
5615 (xlfdpat_block_match): New macro.
5616 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
5617 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
5618 (add_font_name_table_entry): Increase font_name_table_size more
5620 (mac_c_string_match): Remove function.
5621 (mac_do_list_fonts): Use XLFD pattern match instead of regular
5624 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
5626 2005-09-03 Richard M. Stallman <rms@gnu.org>
5628 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
5629 (move_it_in_display_line_to): Stop after last char on line even
5630 on a windowing terminal, if that's the specified stop position.
5632 * fns.c (Fsort): Doc fix.
5634 * editfns.c (Fpropertize): Don't insist that properties be symbols.
5636 2005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
5638 * dired.c (directory_files_internal_unwind, directory_files_internal)
5639 (file_name_completion): Use a Save_Value object rather than a cons of
5640 two 16bit ints to store the DIR*.
5641 (directory_files_internal, file_name_completion): Handle both EINTR and
5642 EAGAIN consistently after `readdir'.
5644 2005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
5646 * intervals.c (update_interval): Add position info in error.
5648 * dispnew.c (window_to_frame_hpos, update_window):
5649 Avoid gcc warning about unused variable `f'.
5651 2005-08-31 Jason Rumney <jasonr@gnu.org>
5653 * w32menu.c (add_menu_item): If unicode_append_menu returns an
5654 error, revert to using AppendMenu.
5656 2005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5658 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
5660 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
5662 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
5663 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
5664 Use posix_pathname_to_fsspec.
5665 [MAC_OS] (xpm_load_image): Fill in background_transparent field
5668 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
5670 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
5672 2005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
5674 * syntax.c (update_syntax_table): Properly reproduce the special +1
5675 setting of e_property at the end of the buffer when bumping into the
5676 INTERVALS_AT_ONCE limit.
5678 2005-08-27 Eli Zaretskii <eliz@gnu.org>
5680 * emacs.c (USAGE1): Fix the description of the -Q option.
5682 2005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
5684 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
5686 2005-08-26 Kim F. Storm <storm@cua.dk>
5688 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
5689 Don't move PT to new window start.
5691 2005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5693 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
5694 ICONIFY/DEICONIFY_EVENT.
5696 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
5697 Restore background color.
5698 (mac_handle_visibility_change): New function.
5699 (x_make_frame_invisible, x_iconify_frame)
5700 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
5701 [USE_CARBON_EVENTS] (mac_handle_window_event)
5702 (install_window_handler): Handle visibility change events.
5703 (x_make_frame_visible): Don't reposition window if it is iconified
5704 or asked for visible before. Select and uncollapse window when it
5706 (x_make_frame_invisible): Don't reset x_highlight_frame.
5707 (x_iconify_frame): Likewise. Make invisible frame visible before
5709 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
5710 (do_window_update): Don't change visibility of invisible frame.
5712 2005-08-22 Juri Linkov <juri@jurta.org>
5714 * term.c (turn_on_face): Check for TS_set_foreground and
5715 TS_set_background depending on standout_mode. Simplify.
5717 2005-08-21 Kim F. Storm <storm@cua.dk>
5719 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
5720 bitmaps on fully visible rows.
5722 * fringe.c (update_window_fringes): Replace FORCE_P arg with
5723 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
5726 * xdisp.c (redisplay_window): Call update_window_fringes with
5727 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
5729 2005-08-20 Richard M. Stallman <rms@gnu.org>
5731 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
5732 (resize_mini_window): Set w->start, and PT, so as to display the tail
5733 end of the buffer, if it doesn't all fit.
5735 2005-08-18 Kim F. Storm <storm@cua.dk>
5737 * xdisp.c (calc_pixel_width_or_height): Use actual display
5738 resolution when available instead of Vdisplay_pixels_per_inch.
5740 2005-08-17 Kim F. Storm <storm@cua.dk>
5742 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
5744 * dispnew.c (buffer_posn_from_coords): Check that target row is
5747 2005-08-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5749 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
5750 xg_set_frame_icon and call it.
5752 * gtkutil.c (xg_set_frame_icon): New function.
5754 * gtkutil.h (xg_set_frame_icon): Declare it.
5756 2005-08-16 Kim F. Storm <storm@cua.dk>
5758 * dispnew.c (increment_row_positions): Skip non-enabled rows.
5760 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
5761 (Fcurrent_window_configuration): Use VECSIZE macro instead.
5763 2005-08-15 Richard M. Stallman <rms@gnu.org>
5765 * xdisp.c (message3_nolog): Clear echo_message_buffer.
5767 2005-08-15 Kim F. Storm <storm@cua.dk>
5769 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
5771 * process.c (deactivate_process, status_notify, read_process_output)
5772 (update_status, status_convert, decode_status, allocate_pty)
5773 (make_process, remove_process, list_processes_1)
5774 (create_process_1, unwind_request_sigio, read_process_output)
5775 (send_process, keyboard_bit_set): Declare static.
5776 (Fdelete_process): Simplify. Pass process to status_notify, so we
5777 don't try to read output from it.
5778 (status_notify): New arg deleting_process--don't try to read
5779 output from that process.
5781 * lisp.h (deactivate_process, status_notify, read_process_output):
5784 2005-08-14 Richard M. Stallman <rms@gnu.org>
5786 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
5789 2005-08-13 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5791 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
5792 (xg_get_image_for_pixmap): Move some code to
5793 xg_get_pixbuf_from_pix_and_mask, and call it.
5795 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
5797 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
5798 to get an GTK icon and set it with GTK functions to avoid having GTK
5799 override an icon set with just X functions.
5801 2005-08-11 Richard M. Stallman <rms@gnu.org>
5803 * image.c (syms_of_image): Init image_types here, and call
5805 (init_image): Not here.
5807 2005-08-09 Richard M. Stallman <rms@gnu.org>
5809 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
5811 * lisp.h (QUIT): Throw t to Vthrow_on_input.
5813 2005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
5815 * floatfns.c (Fexpt): Use floats for negative exponent.
5817 2005-08-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5819 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
5820 should not be there, causing menu display errors with GTK 2.6.9.
5822 2005-08-07 Richard M. Stallman <rms@gnu.org>
5824 * floatfns.c (Fexpt): Undo previous change.
5826 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
5827 so it can be used with various state vectors.
5829 * emacs.c (endif): Convert -script into -scriptload.
5830 (standard_args): Add -scriptload. Allow -basic-display with one dash.
5832 * fns.c (syms_of_fns): Add `emacs' to features.
5834 * term.c (set_terminal_modes): If no TS_termcap_modes string,
5835 output newlines to scroll the old screen contents off the screen.
5837 2005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
5839 * floatfns.c (Fexpt): Use floats for negative exponent.
5842 2005-08-02 Richard M. Stallman <rms@gnu.org>
5844 * frame.c (Fframe_char_width): Doc fix.
5846 2005-07-30 Juanma Barranquero <lekktu@gmail.com>
5848 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
5851 2005-07-28 Juanma Barranquero <lekktu@gmail.com>
5853 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
5854 (my_create_window, my_create_tip_window): Make static.
5856 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
5857 (my_set_foreground_window, my_destroy_window): Make static.
5859 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
5861 Merge gnulib getopt implementation into Emacs.
5863 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
5864 now part of lib-src.
5866 2005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
5868 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
5870 2005-07-25 Jason Rumney <jasonr@gnu.org>
5872 * w32menu.c (w32_menu_display_help): Suppress tooltip when
5873 navigating menus with the keyboard.
5875 2005-07-23 Richard M. Stallman <rms@gnu.org>
5877 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
5879 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
5880 gc_relative_threshold, one by one.
5882 * keyboard.c (read_char): Test gc_cons_threshold.
5883 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
5885 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
5886 gc_relative_threshold, one by one.
5888 * alloc.c (gc_cons_threshold): Not static.
5889 (gc_cons_combined_threshold): Var deleted.
5890 (gc_relative_threshold): New variable.
5891 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
5892 instead of gc_cons_combined_threshold.
5894 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
5895 (gc_cons_combined_threshold): Declaration deleted.
5897 2005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5899 * mac.c: Don't include stdlib.h or string.h.
5900 (Fdo_applescript, Fmac_file_name_to_posix)
5901 (Fmac_file_name_to_posix): Doc fixes.
5902 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
5903 (Fmac_code_convert_string): Likewise.
5904 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
5905 if the executable is not contained in a bundle.
5907 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
5908 (gray_width, gray_height): Remove defines.
5909 (gray_bits, gray_bitmap_width, gray_bitmap_height)
5910 (gray_bitmap_bits): Remove variables.
5911 (lispy_function_keys): Remove extern.
5912 (free_frame_menubar): Add extern.
5913 (x_window_to_frame): Remove function.
5914 (unwind_create_tip_frame): Add declaration.
5915 (x_set_name_internal): New function.
5916 (x_set_name, x_set_title): Use it.
5917 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
5918 (Fx_display_pixel_height, Fx_display_planes)
5919 (Fx_display_color_cells, Fx_server_max_request_size)
5920 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5921 (Fx_display_mm_height, Fx_display_mm_width)
5922 (Fx_display_backing_store, Fx_display_visual_class)
5923 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
5925 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
5927 * macselect.c (Fx_own_selection_internal): Follow error conventions.
5928 (Fx_get_selection_internal, Fx_selection_owner_p)
5929 (Fx_selection_exists_p): Doc fixes.
5930 (syms_of_macselect) <selection-converter-alist>: Likewise.
5932 2005-07-21 Juanma Barranquero <lekktu@gmail.com>
5934 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
5936 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
5937 (Fccl_execute_on_string): Likewise; add usage info.
5939 * composite.c (Fcompose_region_internal)
5940 (Fcompose_string_internal):
5941 Improve argument/docstring consistency.
5943 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
5944 Fix typos in docstrings.
5946 * textprop.c (Fnext_char_property_change)
5947 (Fprevious_char_property_change): Doc fixes.
5949 * window.c (Fset_window_margins, Fset_window_fringes):
5950 Improve argument/docstring consistency.
5952 * xfaces.c (Finternal_lisp_face_p): Doc fix.
5954 2005-07-21 Andreas Schwab <schwab@suse.de>
5956 * eval.c (restore_stack_limits): Return a value.
5958 2005-07-20 Juanma Barranquero <lekktu@gmail.com>
5960 * eval.c (Fdefvar): Doc fix.
5962 2005-07-20 Kim F. Storm <storm@cua.dk>
5964 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
5965 Use make_save_value to unwind protect stream.
5967 * lread.c (Fload, load_unwind):
5968 Use make_save_value to unwind protect stream.
5970 2005-07-19 Juanma Barranquero <lekktu@gmail.com>
5972 * eval.c (Fprog2, Fcalled_interactively_p),
5973 (syms_of_eval) <debug-on-quit>: Doc fixes.
5974 (syms_of_eval) <max-specpdl-size>:
5975 (Finteractive_p): Fix typos in docstrings.
5977 2005-07-19 Kim F. Storm <storm@cua.dk>
5979 * w32fns.c (Vx_hand_shape): Variable removed.
5980 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
5982 2005-07-19 Kenichi Handa <handa@m17n.org>
5984 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
5986 2005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
5988 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
5990 2005-07-18 Kim F. Storm <storm@cua.dk>
5992 * frame.h (struct frame): New member already_hscrolled_p.
5994 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
5995 to avoid redisplay looping hscrolling back and forth ad infinitum.
5997 2005-07-18 Juri Linkov <juri@jurta.org>
5999 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
6000 * keymap.c (Fminor_mode_key_binding):
6001 * macterm.c (mac-emulate-three-button-mouse):
6002 Delete duplicate duplicate words.
6004 2005-07-18 Ken Raeburn <raeburn@gnu.org>
6006 * minibuf.c (Ftest_completion): Fix odd syntax in test.
6008 2005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6010 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
6012 * macgui.h (struct _XGC): New struct.
6014 (GCForeground, GCBackground, GCFont): Use X11 mask values.
6015 (XCreateGC, XParseGeometry): Move externs to macterm.h.
6017 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
6018 (XSetFont): Add declaration.
6019 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
6021 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
6023 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
6024 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
6025 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
6027 (mac_erase_rectangle): New function.
6028 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
6029 (x_draw_stretch_glyph_string): Use it.
6030 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
6031 (XSetBackground, XSetFont): Adjust for new GC implementation.
6032 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
6033 (XTset_vertical_scroll_bar): Clear area under scroll bar.
6035 * macterm.h (struct mac_display_info): Change types of
6036 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
6037 (XCreateGC, XParseGeometry): Move externs from macgui.h.
6039 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
6041 2005-07-16 Richard M. Stallman <rms@gnu.org>
6043 * buffer.c (Fmake_overlay): Doc fix.
6045 2005-07-16 Eli Zaretskii <eliz@gnu.org>
6047 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
6048 Vw32_valid_locale_ids, and Vw32_valid_codepages.
6050 2005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6052 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
6053 Use Fstring_as_unibyte instead of string_make_unibyte.
6055 2005-07-15 Richard M. Stallman <rms@gnu.org>
6057 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
6059 2005-07-15 Kim F. Storm <storm@cua.dk>
6061 * xdisp.c: Fix redisplay loop in last change.
6062 (IT_POS_VALID_AFTER_MOVE_P): New macro.
6063 (move_it_vertically_backward, move_it_by_lines): Use it.
6065 2005-07-14 Jason Rumney <jasonr@gnu.org>
6067 * w32.c (init_environment): Default HOME directory to user's
6068 appdata directory if possible.
6070 2005-07-14 Kim F. Storm <storm@cua.dk>
6072 * .gdbinit (pitx): Fix output format. Print string charpos.
6074 * lread.c (syms_of_lread): Initialize seen_list.
6076 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
6078 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
6079 Staticpro re_match_object.
6081 2005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6083 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
6086 * macterm.c (mac_window_to_frame): Remove duplicate define.
6088 2005-07-14 Kenichi Handa <handa@m17n.org>
6090 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
6091 (code_convert_region): Adjust for the above change.
6092 (set_conversion_work_buffer): If the work buffer is already in
6093 use, generate a new buffer and return it. Otherwise return Qnil.
6094 (run_pre_post_conversion_on_str): Adjust for the above change.
6095 (run_pre_write_conversin_on_c_str): Likewise.
6097 2005-07-13 Kim F. Storm <storm@cua.dk>
6099 * xdisp.c (start_display): Don't reseat to next visible line start
6100 if current start position is in a string or image.
6101 (move_it_vertically_backward): Be sure to move out of strings and
6102 images when moving it2 forward.
6103 (move_it_by_lines): When moving forward, move to next buffer
6104 position if we end up in a string or image. When moving backward,
6105 count rows moved over when moving to start of current row in case
6106 row starts in middle of a string or image. Also move further
6107 backward if we end up in a string or image.
6108 (try_cursor_movement): If overlay string spans multiple lines,
6109 move backward to set cursor on start of an overlay string.
6110 (cursor_row_p): Row is ok if cursor is at newline from string, but
6111 string starts on this line (so we always position cursor at start
6114 * indent.c (Fvertical_motion): If start position is on an image,
6115 don't move back if we move too far (that's almost certain to happen).
6117 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
6118 row in minibuffer windows.
6119 (try_window): Don't check margins in minibuffer windows.
6121 2005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6123 * macterm.c: Don't include stdlib.h or composite.h.
6124 (x_use_underline_position_properties, last_mouse_press_frame)
6125 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
6126 (syms_of_macterm, mac_initialize): Don't initialize them.
6127 (waiting_for_input, initial_argv, initial_argc)
6128 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
6129 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
6130 (extra_keyboard_modifiers): Fix type in extern.
6131 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
6132 (x_scroll_bar_report_motion): Add argument types to declaration.
6133 (mac_compute_glyph_string_overhangs): Add declaration.
6134 (disable_mouse_highlight): Remove unused variable.
6135 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
6136 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
6137 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
6138 All callers changed.
6139 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
6141 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
6142 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
6143 only when its width is less than the height.
6144 (XTredeem_scroll_bar): Sync with xterm.c.
6145 (font_name_table, font_name_table_size, font_name_count):
6147 (drag_and_drop_file_list): Remove variable. Previous use is now
6149 (do_ae_open_documents): Move DRAG_N_DROP event construction part
6151 (XTread_socket): Consolidate setting of event timestamp.
6152 Move DRAG_N_DROP event construction part to do_ae_open_documents.
6153 Support extra_keyboard_modifiers.
6155 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
6156 beginning with that for ASCII.
6158 2005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
6160 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
6161 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
6162 (syms_of_alloc): Declare gc-cons-percentage.
6164 * eval.c (Feval, Ffuncall):
6165 * keyboard.c (read_char):
6166 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
6168 * lisp.h (gc_cons_combined_threshold): Declare.
6170 2005-07-12 Kim F. Storm <storm@cua.dk>
6172 * coding.c (Qprocess_argument):
6173 * coding.h (Qprocess_argument): Remove unused var.
6175 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
6177 2005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6179 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
6181 [!MAC_OSX] (fchmod, fchown): New functions.
6182 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
6183 Use SBYTES and EndianU32_BtoN.
6184 (mac_get_object_from_code): Return 4 byte string even if argument
6185 is 0. Use make_unibyte_string and EndianU32_NtoB.
6186 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
6187 (Fmac_set_file_type): Fix documents and argument declarations.
6188 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
6190 2005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
6192 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
6194 2005-07-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6196 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
6197 Lucid if X_I18N, font otherwise.
6199 2005-07-10 Steven Tamm <steventamm@mac.com>
6201 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
6202 (Fmac_set_file_type, Fmac_set_file_creator): Add.
6203 (mac_get_object_from_code, mac_get_code_from_arg): Add.
6205 2005-07-10 Richard M. Stallman <rms@gnu.org>
6207 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
6208 (syms_of_lread): Set up eval-buffer-list.
6209 (Feval_buffer, Feval_region): Bind eval-buffer-list.
6211 2005-07-08 Richard M. Stallman <rms@gnu.org>
6213 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
6215 2005-07-08 Kim F. Storm <storm@cua.dk>
6217 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
6218 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
6220 2005-07-07 Kim F. Storm <storm@cua.dk>
6222 * window.c (Frecenter): Fix last change (set iarg before use).
6224 2005-07-06 Richard M. Stallman <rms@gnu.org>
6226 * window.c (Frecenter): When arg is inside the scroll margin,
6227 move it out of the margin.
6229 2005-07-06 Jason Rumney <jasonr@gnu.org>
6231 * w32console.c (initialize_w32_display): Detect when the console
6232 dimensions are insane, and default to 80x25 instead.
6233 (w32_use_full_screen_buffer): Default to NIL.
6235 2005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6237 * macterm.c (mac_draw_vertical_window_border): Use foreground of
6238 VERTICAL_BORDER_FACE_ID for vertical border line.
6239 (mac_encode_char): Call check_ccl_update in advance.
6240 (mac_to_x_fontname, x_font_name_to_mac_font_name)
6241 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
6242 Don't assume that font family length is less than 32.
6243 (x_compute_min_glyph_bounds): Make static.
6244 (x_load_font): Never set fonts_changed_p to zero.
6246 2005-07-04 Lute Kamstra <lute@gnu.org>
6248 * Update FSF's address in GPL notices.
6250 2005-07-03 Richard M. Stallman <rms@gnu.org>
6252 * xdisp.c (try_window): Fix previous change in how it handles
6253 a partially-visible line or one only partly past the margin.
6255 * window.c (window_scroll_pixel_based): Take account
6256 of this_scroll_margin when finding point when scrolling up.
6258 2005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
6260 * window.c (window_scroll_pixel_based, window_scroll_line_based):
6261 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
6262 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
6264 2005-07-02 Juri Linkov <juri@jurta.org>
6266 * w32term.c (w32_draw_vertical_window_border): Use foreground of
6267 VERTICAL_BORDER_FACE_ID for vertical border line.
6269 2005-07-02 Eli Zaretskii <eliz@gnu.org>
6271 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
6272 fchmod so that chmod doesn't get called on MSDOS before the file
6275 2005-07-01 Jason Rumney <jasonr@gnu.org>
6277 * w32term.c (cleartype_active): New flag for enabling sub-pixel
6279 (w32_initialize): Initialize it.
6280 (w32_native_per_char_metric): Allow a couple of extra pixels when
6281 Cleartype is active.
6283 * w32term.c (w32_initialize): Move check for screen reader here
6284 from syms_of_w32term.
6286 2005-06-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6288 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
6291 2005-07-01 Masatake YAMATO <jet@gyve.org>
6293 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
6295 2005-06-30 Juri Linkov <juri@jurta.org>
6297 * xdisp.c (x_draw_vertical_border): If left fringe is not present
6298 decrease x coord of vertical border by 1 pixel to not occupy text
6299 area of the right window.
6301 * xterm.c (x_draw_vertical_window_border): Use foreground of
6302 VERTICAL_BORDER_FACE_ID for vertical border line.
6304 * term.c (turn_on_face): In standout mode apply specified
6305 fg to bg, and specified bg to fg (this makes the logic of
6306 inversion on terminal consistent with X).
6308 2005-06-29 Juanma Barranquero <lekktu@gmail.com>
6310 * eval.c (user_variable_p_eh): New function.
6311 (Fuser_variable_p): Use it. Clarify docstring.
6312 Return t for aliases of user options, nil for alias loops.
6314 2005-06-27 Richard M. Stallman <rms@gnu.org>
6316 * eval.c (Fdefvar): Improve error message.
6318 2005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6320 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
6323 2005-06-27 Juanma Barranquero <lekktu@gmail.com>
6325 * eval.c (Fdefvar): Don't try to set constant symbols.
6327 2005-06-25 Richard M. Stallman <rms@gnu.org>
6329 * macfns.c (Fx_show_tip): Pass new arg to try_window.
6331 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
6333 * xfns.c (Fx_show_tip): Pass new arg to try_window.
6335 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
6336 (redisplay_window): Handle try_window reporting point in scroll margin.
6338 * dispextern.h (try_window): Declare new arg.
6340 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
6341 Use fchmod to copy the file modes.
6342 (Frename_file): Don't copy UID and GID here;
6343 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
6345 * eval.c (call_debugger): Take full care of extending stack limits
6346 to make space for the debugger, and restore the change afterward.
6347 Bind debug-on-error to nil.
6348 (restore_stack_limits): New subroutine.
6349 (Fsignal): Extend specpdl bound along with eval depth bound,
6350 for calling edebug. Don't do either one, for calling debugger.
6351 (find_handler_clause): Don't bind debug-on-error here.
6352 Don't unbind anything either.
6353 Temporarily advance max_specpdl_size for calling
6354 internal_with_output_to_temp_buffer.
6355 (grow_specpdl): Don't alter max_specpdl_size before signaling
6357 (syms_of_eval) <max-specpdl-size>: Doc fix.
6359 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
6361 2005-06-24 Eli Zaretskii <eliz@gnu.org>
6363 * fileio.c (Frename_file): Undo last change: no need to ifdef away
6364 chown on DOS_NT platforms.
6366 * w32.c (sys_chown): New function.
6368 * s/ms-w32.h (chown): New; define to sys_chown.
6370 2005-06-24 Juanma Barranquero <lekktu@gmail.com>
6372 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
6373 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
6375 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
6377 2005-06-23 Richard M. Stallman <rms@gnu.org>
6379 * xdisp.c (get_next_display_element): Finish reversing the tests of
6380 Vnobreak_char_display.
6382 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
6384 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
6385 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
6387 * fileio.c (Frename_file): Preserve owner and group, if possible,
6390 2005-06-23 Juanma Barranquero <lekktu@gmail.com>
6392 * abbrev.c (Funexpand_abbrev):
6393 * category.c (Fmake_category_set):
6394 * dispnew.c (Fsleep_for, Fsit_for):
6395 * editfns.c (Fsubst_char_in_region):
6396 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
6397 * frame.c (make_frame_without_minibuffer):
6398 * lread.c (read_vector):
6399 * macfns.c (check_x_frame):
6400 * process.c (Fstop_process, Fcontinue_process):
6401 * search.c (Freplace_match):
6402 * syntax.c (Fstring_to_syntax):
6403 * w32fns.c (check_x_frame, check_x_display_info):
6404 * xfaces.c (x_supports_face_attributes_p):
6405 * xselect.c (Fx_own_selection_internal): Follow error conventions.
6407 * image.c (fn_png_init_io): Don't define it.
6408 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
6409 (png_read_from_file): New function, based on png_read_from_memory.
6410 (png_load): Use it, instead of fn_png_init_io.
6412 2005-06-23 Kim F. Storm <storm@cua.dk>
6414 * search.c (Fmatch_data): Remove evaporate option.
6415 (Fset_match_data): Do not mention evaporate option in doc string.
6416 Add commentary explaining evaporate arg (for internal use only).
6417 (unwind_set_match_data): Add comment on evaporate use.
6419 2005-06-22 Miles Bader <miles@gnu.org>
6421 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
6422 (realize_basic_faces, syms_of_xfaces): Update references to it.
6423 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
6424 to `VERTICAL_BORDER_FACE_ID'.
6425 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
6427 2005-06-21 Juri Linkov <juri@jurta.org>
6429 * dispextern.h: Add extern Qframe_set_background_mode.
6431 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
6432 Qframe_set_background_mode.
6434 * frame.c (Fmodify_frame_parameters):
6435 Call frame-set-background-mode after changing the background color
6436 on non-window non-dos branch.
6438 2005-06-21 Juanma Barranquero <lekktu@gmail.com>
6440 * fns.c (Fchar_table_range):
6441 * process.c (Fmake_network_process): Fix spellings.
6443 2005-06-20 Kim F. Storm <storm@cua.dk>
6445 * fns.c (Fsort): Doc fix.
6447 2005-06-20 Miles Bader <miles@gnu.org>
6449 * xfaces.c (Qvertical_divider): New variable.
6450 (realize_basic_faces): Realize its face.
6451 (syms_of_xfaces): Initialize it.
6453 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
6455 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
6456 window-separator on ttys using `vertical-divider' face by default.
6458 2005-06-17 Richard M. Stallman <rms@gnu.org>
6460 * xdisp.c (get_next_display_element):
6461 Reverse test of Vshow_nonbreak_escape.
6463 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
6464 (Ftty_no_underline): New function.
6465 (syms_of_term): defsubr it.
6467 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
6469 * dispnew.c (spec_glyph_lookup_face): New function.
6470 (build_frame_matrix_from_leaf_window): Use it.
6472 * dispextern.h (spec_glyph_lookup_face): Add declaration.
6474 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
6476 2005-06-12 Richard M. Stallman <rms@gnu.org>
6478 * keyboard.c (read_char): After catching a longjmp,
6479 call restore_getcjmp.
6481 2005-06-17 Juanma Barranquero <lekktu@gmail.com>
6483 * xselect.c (lisp_data_to_selection_data): Fix spelling.
6485 2005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6487 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
6488 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
6489 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
6491 (XTread_socket): Don't pass keyboard events with the option
6492 modifier to the system when Vmac_command_key_is_meta is nil or
6493 Vmac_option_modifier is non-nil.
6494 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
6495 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
6496 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
6498 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
6499 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
6500 handler part to mac_handle_mouse_event.
6502 2005-06-14 Juanma Barranquero <lekktu@gmail.com>
6504 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
6505 NEW-ALIAS and BASE-VARIABLE, respectively.
6507 2005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
6509 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
6510 (get_phys_cursor_geometry, format_mode_line_unwind_data)
6511 (get_line_height_property, x_produce_glyphs): Remove unused vars.
6513 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
6515 2005-06-13 Eli Zaretskii <eliz@gnu.org>
6517 * w32term.c (x_use_underline_position_properties): New variable.
6518 (x_draw_glyph_string): Remind in a comment to change doc string of
6519 x-use-underline-position-properties if/when underline positioning
6521 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
6522 and initialize it to nil.
6524 2005-06-12 Jason Rumney <jasonr@gnu.org>
6526 * w32fns.c (NEWOPENFILENAME): New struct.
6527 (Fx_file_dialog): Use it to trick the system into giving us up to
6528 date dialogs on systems that are documented to support it.
6529 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
6531 2005-06-12 Eli Zaretskii <eliz@gnu.org>
6533 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
6534 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
6536 2005-06-11 Eli Zaretskii <eliz@gnu.org>
6538 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
6539 to CreateDIBSection to avoid a compiler warning.
6540 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
6542 (png_load): Cast return values of fn_png_create_read_struct and
6543 fn_png_create_info_struct, to avoid compiler warnings on W32.
6544 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
6545 to avoid compiler warnings.
6546 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
6547 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
6548 avoid a compiler warning.
6549 (tiff_load): Cast return values of fn_TIFFOpen and
6550 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
6551 to IMAGE_BACKGROUND to avoid a compiler warning.
6552 (gif_load): Cast return values of fn_DGifOpenFileName and
6553 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
6554 IMAGE_BACKGROUND to avoid a compiler warning.
6555 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
6558 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
6559 the call to CreateDIBSection, to avoid a compiler warning.
6561 2005-06-11 Jason Rumney <jasonr@gnu.org>
6563 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
6565 * macfns.c (Fx_file_dialog): Likewise.
6567 2005-06-10 Eli Zaretskii <eliz@gnu.org>
6569 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
6571 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
6573 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
6574 * w32fns.c (syms_of_w32fns): Fix spellings.
6576 2005-06-10 Eli Zaretskii <eliz@gnu.org>
6578 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
6579 `verbose'; print diagnostic messages only if it is non-zero.
6580 All callers changed to pass a zero value unless DEBUG_DUMP is defined
6582 (copy_executable_and_dump_data): Print section names with %.8s.
6584 2005-06-10 Masatake YAMATO <jet@gyve.org>
6586 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
6587 when mouse_face is not given.
6589 2005-06-09 Luc Teirlinck <teirllm@auburn.edu>
6591 * window.c (Fselect_window): Adapt call to Fselect_frame.
6593 * lisp.h: Update EXFUN of Fselect_frame.
6595 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
6597 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
6599 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
6600 Adapt to above change.
6602 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
6604 * fns.c (Fmemq, Fmaphash): Doc fixes.
6606 2005-06-09 Juanma Barranquero <lekktu@gmail.com>
6608 * xfaces.c (Fdisplay_supports_face_attributes_p):
6609 Fix typo in docstring.
6611 2005-06-08 Steven Tamm <steventamm@mac.com>
6613 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
6614 used by gcc4 on intel mac.
6616 2005-06-09 Kim F. Storm <storm@cua.dk>
6618 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
6619 in REUSE list if non-nil; free them if equal to evaporate.
6620 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
6621 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
6622 (restore_search_regs): Rename from restore_match_data. Uses changed.
6623 (unwind_set_match_data): New function.
6624 (record_unwind_save_match_data): New function like save-match-data.
6626 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
6627 (record_unwind_save_match_data): Add prototype.
6628 (restore_search_regs): Rename from restore_match_data.
6630 * composite.c (compose_chars_in_text):
6631 * eval.c (do_autoload):
6632 * macmenu.c (set_frame_menubar):
6633 * process.c (read_process_output, exec_sentinel):
6634 * xmenu.c (set_frame_menubar):
6635 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
6636 * w32menu.c (set_frame_menubar):
6637 Use record_unwind_save_match_data.
6639 2005-06-08 Richard M. Stallman <rms@gnu.org>
6641 * xdisp.c (get_next_display_element): Alter previous change:
6642 Distinguish Vshow_nonbreak_escape = t or not t.
6643 For t, use escape_glyph once again, as before previous change.
6644 Use space or hyphen for display, instead of the non-ASCII char.
6645 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
6647 * process.c (Fstart_process): Don't touch command_channel_p slot.
6649 * process.h (struct process): Delete command_channel_p.
6651 2005-06-07 Masatake YAMATO <jet@gyve.org>
6653 * xdisp.c (note_mode_line_or_margin_highlight):
6654 Check the overlapping of re-rendering area to avoid flickering.
6655 (note_mouse_highlight): Call clear_mouse_face if PART
6656 is not ON_MODE_LINE nor ON_HEADER_LINE.
6658 2005-06-07 Kim F. Storm <storm@cua.dk>
6660 * process.c: Improve commentary for adaptive read buffering.
6662 2005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
6664 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
6667 2005-06-06 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6669 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
6670 New functions for popping down menus on C-g.
6671 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
6673 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
6676 * config.in: Add HAVE_CANCELMENUTRACKING.
6678 2005-06-06 Eli Zaretskii <eliz@gnu.org>
6680 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
6682 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
6684 * w32proc.c (RVA_TO_PTR): New macro.
6686 * w32heap.c (RVA_TO_PTR): No need to #undef now.
6688 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
6689 Depend on w32heap.h.
6691 2005-06-06 Luc Teirlinck <teirllm@auburn.edu>
6693 * keyboard.c (command_loop_1): Update Vthis_original_command.
6695 2005-06-06 Richard M. Stallman <rms@gnu.org>
6697 * xmenu.c (popup_get_selection): Undo previous change.
6699 2005-06-06 Juri Linkov <juri@jurta.org>
6701 * xdisp.c (Qno_break_space): New variable.
6702 (syms_of_xdisp): Initialize it.
6703 (get_next_display_element): Add no-break space and soft hypen
6704 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
6705 Use `no-break-space' face for no-break spaces.
6707 2005-06-06 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6709 * window.c (delete_window): Handle the case where a h/vchild has
6712 2005-06-05 Eli Zaretskii <eliz@gnu.org>
6714 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
6715 call to pfn_setsockopt, cast optval to `const char *'.
6717 2005-06-04 Eli Zaretskii <eliz@gnu.org>
6719 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
6720 (open_unc_volume): Cast return value of map_w32_filename, to avoid
6723 * s/ms-w32.h (fileno): Don't define if already defined.
6725 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
6727 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
6729 2005-06-04 Richard M. Stallman <rms@gnu.org>
6731 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
6733 2005-06-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6735 * macmenu.c (cleanup_popup_menu): New function.
6736 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
6737 mac_menu_show Quit:s.
6738 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
6741 2005-06-04 Kim F. Storm <storm@cua.dk>
6743 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
6745 * callproc.c (Fcall_process): Don't use alloca to gradually
6746 increase size of buf, as it effectively uses twice the necessary
6747 space on the stack. Instead, pre-allocate buf of full size, and
6748 gradually increase the read size.
6750 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
6752 * eval.c (unbind_to): Preserve value of Vquit_flag.
6754 * xterm.c (handle_one_xevent): Also ignore mouse motion just
6755 before a button release event.
6757 2005-06-03 Juanma Barranquero <lekktu@gmail.com>
6759 * xfaces.c (Finternal_lisp_face_equal_p): Really report
6760 on faces in a frame, if the argument FRAME is non-nil.
6761 Improve argument/docstring consistency.
6763 2005-06-02 Kim F. Storm <storm@cua.dk>
6765 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
6766 (x_consider_frame_title, Fformat_mode_line): Save offset into
6767 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
6769 2005-06-01 Kim F. Storm <storm@cua.dk>
6771 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
6773 2005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6775 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
6776 resolution fields for scalable fonts to 0.
6778 * xfaces.c (build_scalable_font_name): Round pixel size to the
6781 2005-06-01 Kim F. Storm <storm@cua.dk>
6783 * xdisp.c (display_mode_line): Support nested calls to redisplay
6784 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
6786 2005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
6788 * fileio.c (Finsert_file_contents):
6789 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
6791 2005-05-31 Kim F. Storm <storm@cua.dk>
6793 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
6794 (mode_line_noprop_ptr): Rename from frame_title_*.
6795 (store_mode_line_noprop_char): Rename from store_frame_title_char.
6796 (store_mode_line_noprop): Rename from store_frame_title.
6797 (mode_line_target): New enum to specify current output target
6798 for mode line formatting.
6799 (display_mode_element): Test it rather than frame_title_ptr and
6800 mode_line_string_list to determine where output should go.
6801 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
6802 (Vmode_line_unwind_vector): New variable.
6803 (format_mode_line_unwind_data, unwind_format_mode_line):
6804 New functions for unwind protection in mode line formatting.
6805 (x_consider_frame_title): Use them and new local var 'title_start'
6806 to support nested calls to format-mode-line and redisplay.
6807 Set mode_line_target to MODE_LINE_TITLE.
6808 (Fformat_mode_line): Use them and new local var 'string_start' to
6809 support nested calls to format-mode-line and redisplay.
6810 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
6811 Don't trim trailing dashes.
6812 (decode_mode_spec): Don't make infinite number of trailing dashes
6813 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
6814 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
6815 mode_line_string_face_prop, and Vmode_line_unwind_vector.
6816 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
6817 Initialize mode_line_target to MODE_LINE_DISPLAY.
6819 2005-05-29 Richard M. Stallman <rms@gnu.org>
6821 * buffer.c (Fbuffer_local_value): Call indirect_variable.
6823 2005-05-28 Masatake YAMATO <jet@gyve.org>
6825 * xdisp.c (note_mode_line_or_margin_highlight): Change the
6826 pointer to a hand cursor when hoovering over a mouse-face.
6828 2005-05-27 Kenichi Handa <handa@m17n.org>
6830 * xterm.c (x_encode_char): Call check_ccl_update in advance.
6832 * ccl.c: Now an element of Vccl_program_table is a vector of
6834 (ccl_get_compiled_code): New arg idx. Caller changed.
6835 Adjust for the change of Vccl_program_table.
6836 (setup_ccl_program): Adjust for the change of Vccl_program_table.
6837 (check_ccl_update): New function.
6838 (Fregister_ccl_program): Use ASET to set an element of a vector.
6839 Adjusted for the change of Vccl_program_table.
6841 * ccl.h (struct ccl_program): New member idx.
6842 (check_ccl_update): Extern it.
6844 2005-05-27 Juanma Barranquero <lekktu@gmail.com>
6846 * image.c (Vimage_library_alist): Move from image.el.
6847 (syms_of_image): Defvar it.
6848 (lookup_image_type): Use it.
6850 * buffer.c (Fbuffer_local_value): Make argument name match its use
6853 2005-05-26 Juanma Barranquero <lekktu@gmail.com>
6855 * keyboard.c (Frecursive_edit): Fix typo in docstring.
6856 (Fposn_at_x_y): Make argument name match its use in docstring.
6858 2005-05-26 Lute Kamstra <lute@gnu.org>
6860 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
6862 2005-05-24 Masatake YAMATO <jet@gyve.org>
6864 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
6867 2005-05-24 Nick Roberts <nickrob@snap.net.nz>
6869 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
6870 select frame title ("Question"/"Information").
6871 (xdialog_show): Use it.
6873 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
6875 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
6877 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
6878 a third argument (Qnil).
6880 * lisp.h: x-popup-dialog can have three arguments.
6882 * editfns.c (Fmessage_box): Use "Information" for frame title.
6884 2005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
6886 * termcap.c [VMS]: Include <starlet.h>.
6888 2005-05-23 Masatake YAMATO <jet@gyve.org>
6890 * xdisp.c (note_mode_line_or_margin_highlight): Add code
6891 for mouse-face. Change the type of the first argument from `window'
6893 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
6894 window instead of w.
6896 2005-05-22 Andreas Schwab <schwab@suse.de>
6898 * process.c (send_process): Move misplaced volatile.
6900 2005-05-21 Richard M. Stallman <rms@gnu.org>
6902 * xdisp.c (display_mode_element): If we're processing a list and
6903 padding is specified, put it after the last element.
6905 2005-05-21 Eli Zaretskii <eliz@gnu.org>
6907 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
6908 "superroot" on DOS_NT systems.
6910 2005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
6912 * process.c (send_process): Restore the SIGPIPE handler if we
6915 2005-05-20 Juanma Barranquero <lekktu@gmail.com>
6917 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
6918 misleading comments).
6919 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
6921 2005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
6923 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
6924 Correct the right value.
6926 2005-05-19 Nick Roberts <nickrob@snap.net.nz>
6928 * keyboard.c (syms_of_keyboard): Remove Lisp variables
6929 post-command-idle-hook and post-command-idle-delay.
6930 (command_loop_1): Don't try to execute post-command-idle-hook.
6932 2005-05-16 Kim F. Storm <storm@cua.dk>
6934 * xdisp.c (handle_display_prop): Handle empty replacement.
6935 (handle_single_display_spec): Return -1 for empty replacement.
6937 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
6939 * .gdbinit (pitx): Print more info about iterator.
6941 2005-05-16 Andreas Schwab <schwab@suse.de>
6943 * unexmacosx.c (unexec_realloc): Move declarations before statements.
6945 2005-05-14 Richard M. Stallman <rms@gnu.org>
6947 * xdisp.c (message3): Call cancel_echoing.
6949 * alloc.c (Fmemory_full_p): New function.
6950 (syms_of_alloc): defsubr it.
6952 * process.c (send_process_trap): Unblock SIGPIPE.
6953 (send_process): Reset SIGPIPE handler before reporting error.
6955 2005-05-14 Nick Roberts <nickrob@snap.net.nz>
6957 * emacs.c (syms_of_emacs): Fix doc string for system-type.
6959 2005-05-13 Richard M. Stallman <rms@gnu.org>
6961 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
6962 (Finsert_file_contents): If we read 0 bytes from a special file,
6963 unlock the visited file if we locked it.
6964 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
6965 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
6967 2005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6969 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
6971 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
6972 Regard toolkit scroll bar thumb drag events as squeezable and prevent
6973 redisplay from being paused by them.
6975 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
6976 [!MAC_OSX] (target_ticks): Remove variable.
6977 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
6978 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
6979 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
6980 event occurs before timeout, behave as if the function were interrupted.
6981 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
6982 handling using Time Manager routines.
6983 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
6985 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
6986 (setitimer): New functions.
6988 * macfns.c, macmenu.c: Don't include signal.h.
6990 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
6991 Rename from get_control_part_bound. All callers changed.
6992 (x_scroll_bar_clear): New function.
6993 (x_clear_frame): Use it.
6994 (XTset_vertical_scroll_bar): Don't call Draw1Control.
6995 (x_scroll_bar_handle_click): Change type of second argument from
6996 int to ControlPartCode.
6997 (check_alarm): Remove declaration.
6998 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
6999 (XTread_socket): Use ControlPartCode instead of SInt16.
7001 2005-05-13 Nozomu Ando <nand@mac.com>
7003 * unexmacosx.c: Include assert.h.
7004 (MACOSX_MALLOC_MULT16): New define.
7005 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
7006 ptr is in unexec regions by checking it is multiple of 16.
7007 (unexec_malloc_header_t): New typedef.
7008 (unexec_malloc, unexec_realloc, unexec_free): Store and use
7009 allocated size information in unexec_malloc_header.
7011 2005-05-10 Richard M. Stallman <rms@gnu.org>
7013 * xterm.c (noinclude): Add #undef.
7015 * image.c, xfns.c, xmenu.c: Don't include signal.h.
7017 2005-05-09 Juanma Barranquero <lekktu@gmail.com>
7019 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
7020 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
7023 * dired.c (Ffile_name_completion): Make argument name
7024 match its use in docstring.
7026 2005-05-08 Luc Teirlinck <teirllm@auburn.edu>
7028 * eval.c (Fdefvaralias): Remove any pre-existing
7029 variable-documentation property of the alias.
7031 2005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
7033 * xfns.c (start_hourglass): Do nothing when running on a tty.
7035 2005-05-07 Juanma Barranquero <lekktu@gmail.com>
7037 * fns.c (Fchar_table_range): Fix typos in docstring.
7039 2005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7041 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
7043 2005-05-06 Eli Zaretskii <eliz@gnu.org>
7045 * lread.c (Flocate_file_internal): Doc fix.
7047 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
7049 2005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7051 * macselect.c (x_own_selection): Accept Lisp string as result of
7052 selection converter function.
7053 (x_clear_frame_selections): Don't call x-lost-selection-functions
7054 if Emacs is not owner of the selection.
7055 (Vmac_services_selection): Put variable and initialization in
7057 (syms_of_macselect) [MAC_OSX]: Set default value of
7058 Vmac_services_selection to PRIMARY.
7060 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
7061 (mac_handle_tool_bar_click): Remove unused function and declaration.
7062 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
7063 (install_scroll_bar_timer, set_scroll_bar_timer)
7064 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
7065 (get_control_part_bound, x_scroll_bar_handle_press)
7066 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
7067 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
7068 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
7069 (scroll_bar_timer_event_posted_p): New variables.
7070 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
7071 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
7072 (x_scroll_bar_create): Set control reference with NewControl.
7073 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
7074 Initialize track_top and track_height to nil.
7075 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
7076 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
7077 (XTset_vertical_scroll_bar): Don't make space between scroll bar
7078 and associated window.
7079 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
7081 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
7082 Set track_top and track_height to nil when scroll bar size is changed.
7083 Recalculate them if they are nil.
7084 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
7085 clicked control is a scroll bar.
7086 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
7087 event handler functions. Don't add modifiers to scroll bar click
7088 events. Call scroll bar release handler when window is deactivated.
7089 (mac_initialize): Remove unused code for X toolkit.
7090 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
7091 Initialize Vx_toolkit_scroll_bars to nil.
7093 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
7094 New members track_top and track_height.
7096 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
7097 init_process when including sys/select.h.
7099 2005-05-05 Luc Teirlinck <teirllm@auburn.edu>
7101 * eval.c (Fdefvaralias): Doc fix.
7103 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
7105 2005-05-05 Kim F. Storm <storm@cua.dk>
7107 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
7109 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
7110 Fix type of cursor-in-non-selected-windows.
7112 2005-05-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7114 * mac.c: #undef init_process so not to conflict with system headers.
7116 2005-05-02 Richard M. Stallman <rms@gnu.org>
7118 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
7120 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
7122 * xdisp.c (Vcursor_in_non_selected_windows)
7123 (Qcursor_in_non_selected_windows): Vars deleted.
7124 (syms_of_xdisp): Don't initialize them.
7125 (get_window_cursor_type): Use cursor_in_non_selected_windows
7128 2005-05-02 Kim F. Storm <storm@cua.dk>
7130 * macros.c (executing_kbd_macro_index): Rename from
7131 executing_macro_index. All uses changed.
7132 (executing_kbd_macro_iterations): Rename from
7133 executing_macro_iterations. All uses changed.
7134 (executing_kbd_macro): Rename from executing_macro.
7136 (syms_of_macros): Rename Lisp var executing-macro-index to
7137 executing-kbd-macro-index.
7139 * xdisp.c (move_it_in_display_line_to): Fix last change.
7141 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
7143 * xmenu.c (Fx_popup_menu): Doc fix.
7145 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
7147 2005-05-02 Jason Rumney <jasonr@gnu.org>
7149 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
7151 2005-05-02 Nozomu Ando <nand@mac.com>
7153 * sysselect.h: Fix typo.
7155 2005-05-02 Nick Roberts <nickrob@snap.net.nz>
7157 * charset.c (Fchars_in_region): Remove as obsolete.
7159 2005-05-01 Kim F. Storm <storm@cua.dk>
7161 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
7162 TO_CHARPOS. This may happen if last glyphs was an image or stretch
7165 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
7167 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
7169 2005-05-01 Richard M. Stallman <rms@gnu.org>
7171 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
7172 If user cancels the menu, quit unless FOR_CLICK.
7174 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
7176 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
7177 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
7178 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
7179 * commands.h (Vexecuting_kbd_macro): Likewise.
7181 2005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
7183 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
7185 2005-04-30 Richard M. Stallman <rms@gnu.org>
7187 * fileio.c (Ffind_file_name_handler): Handle the `operations'
7188 property of the file name handler.
7189 (Qoperations): New variable.
7190 (syms_of_fileio): Initialize and staticpro it.
7192 * xdisp.c (set_message_1): Delete xassert.
7194 2005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7196 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
7198 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
7200 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
7201 before/after including Carbon.h if there is a working mktime.
7203 2005-04-28 Kim F. Storm <storm@cua.dk>
7205 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
7206 Fix cyclic alias check. If alias loop is detected, signal
7207 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
7209 2005-04-28 Lute Kamstra <lute@gnu.org>
7211 * eval.c (do_autoload): Record only autoloads in the autoload
7212 property of symbols.
7214 2005-04-28 Nick Roberts <nickrob@snap.net.nz>
7216 * emacs.c (USAGE1): Add --basic-display and --quick options.
7218 2005-04-27 Kim F. Storm <storm@cua.dk>
7220 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
7222 2005-04-26 Richard M. Stallman <rms@gnu.org>
7224 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
7225 (syms_of_window): Doc fixes.
7227 * indent.c (Fvertical_motion): Undo previous change.
7229 2005-04-26 Kenichi Handa <handa@m17n.org>
7231 * fns.c (char_table_range): New function.
7232 (Fchar_table_range): Signal an error if characters in the range
7233 have inconsistent values. Don't check the parent.
7235 2005-04-25 Kenichi Handa <handa@m17n.org>
7237 * fontset.c (fontset_set): Fix previous change.
7239 2005-04-24 Richard M. Stallman <rms@gnu.org>
7241 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
7243 2005-04-24 Eli Zaretskii <eliz@gnu.org>
7245 * regex.c (re_search_2, re_match_2_internal): Convert second arg
7246 of RE_TRANSLATE to int, to shut up GCC warnings.
7248 * fileio.c (Fcopy_file): Doc fix.
7249 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
7252 2005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7254 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
7255 (SOME_MACHINE_OBJECTS): Likewise.
7256 (mac.o): Depend on ccl.h.
7257 (macselect.o): New target.
7259 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
7260 Call syms_of_macselect.
7262 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
7264 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
7265 (QCLIPBOARD): Remove variable.
7266 (syms_of_mac): Don't initialize it.
7267 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
7269 (syms_of_mac): Don't defsubr them.
7270 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
7271 (QHFS_plus_D, QHFS_plus_C): New variables.
7272 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
7273 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
7274 (cfstring_create_normalized): New functions.
7275 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
7276 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
7278 * macterm.c (handling_window_update, terminate_flag):
7280 (do_window_update, do_ae_quit_application, XTread_socket):
7282 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
7283 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
7284 (init_service_handler): Move to macselect.c. Remove declarations.
7285 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
7286 (Qapplication, Qabout): New variables.
7287 (syms_of_mac): Initialize them.
7288 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
7289 (Qperform): New variables.
7290 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
7291 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
7292 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
7293 (mac_store_application_menu_event, init_menu_bar): New functions.
7294 [USE_CARBON_EVENTS] (mac_handle_command_event)
7295 (init_command_handler): New functions.
7296 (mac_handle_window_event): Return noErr on window update event.
7297 (do_ae_quit_application): Call mac_store_application_menu_event.
7298 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
7301 * macterm.h (x_clear_frame_selections): Add extern.
7303 * macselect.c: New file for selection processing on Mac OS.
7305 2005-04-23 Richard M. Stallman <rms@gnu.org>
7307 * fileio.c (Fcopy_file): New arg MUSTBENEW.
7308 (Frename_file): Pass new arg to Fcopy_file.
7310 * window.c (window_size_fixed): Variable deleted.
7311 (syms_of_window): Initialize window-size-fixed to nil.
7312 But don't DEFVAR window_size_fixed.
7314 2005-04-23 Andreas Schwab <schwab@suse.de>
7316 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
7317 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
7318 use lib64 instead of lib.
7319 (_LP64) [_ARCH_PPC64]: Define if not defined.
7321 2005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
7323 * s/ms-w32.h (HAVE_PWD_H): Define.
7325 2005-04-22 Kenichi Handa <handa@m17n.org>
7327 * fns.c (copy_sub_char_table): Explicitly copy the default value
7328 of the sub-chartable.
7330 * fontset.c (fontset_set): When a sub-chartable is created,
7331 explicitly sets the defalt value.
7333 2005-04-22 Kim F. Storm <storm@cua.dk>
7335 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
7336 (Fsafe_plist_get): Rename to Fplist_get.
7337 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
7338 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
7340 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
7342 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
7343 (note_mode_line_or_margin_highlight, note_mouse_highlight):
7344 Use Fplist_get instead of Fsafe_plist_get.
7346 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
7348 2005-04-21 Miles Bader <miles@gnu.org>
7350 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
7352 2005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
7354 * sysdep.c: Remove reference to defunct vms-pwd.h.
7355 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
7356 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
7358 * config.in: Regenerate.
7360 2005-04-20 Kenichi Handa <handa@m17n.org>
7362 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
7363 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
7364 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
7366 * alloc.c (make_sub_char_table): Argument changed to initial
7369 * data.c (Faref): Handle special slots used as default values of
7370 ascii, eight-bit-control, eight-bit-control. Don't ignore a
7371 default value set for a group of characters.
7372 (Faset): Signal an error if IDXVAL is not a valid character code.
7373 Make a sub-chartable with correct initial value.
7375 * fns.c (Fset_char_table_range): Don't set slots used as default
7376 values for ascii, eight-bit-control, eight-bit-graphic.
7377 Don't call Faref with charset-id.
7378 (Fset_char_table_default): Document how to treat normal character
7379 argument. Handle special slots used as default values of ascii,
7380 eight-bit-control, eight-bit-control. Make a sub chartable if
7383 2005-04-20 Kenichi Handa <handa@m17n.org>
7385 * search.c (boyer_moore): Fix previous change.
7387 2005-04-19 Kim F. Storm <storm@cua.dk>
7389 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
7390 face unless last visible char and first invisible char have the
7391 same face. Also use default face if saved_face_id is undefined.
7393 2005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7395 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
7397 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
7398 mac_scriptcode member.
7400 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
7401 (syms_of_mac): Don't initialize them.
7402 (Vmac_charset_info_alist): New variable.
7403 (syms_of_mac): Defvar it.
7404 (create_text_encoding_info_alist): New function.
7405 (decode_mac_font_name, mac_to_x_fontname)
7406 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
7407 code the correspondence among XLFD charsets, Mac script codes, and
7408 Emacs coding systems. Use Vmac_charset_info_alist and result of
7409 create_text_encoding_info_alist instead.
7410 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
7411 routines also on Mac OS Classic.
7412 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
7413 Use add_font_name_table_entry.
7414 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
7415 specified. Derive unspecified scalable fields from specified one.
7416 (x_list_fonts): Consider Valternate_fontname_alist.
7417 (kDefaultFontSize): Change value from 9 to 12.
7418 (XLoadQueryFont): Get decoded font family, font face, and charset
7419 from x_font_name_to_mac_font_name. Set full name of loaded font.
7420 (mac_unload_font): Free `full_name' member.
7421 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
7422 NULL. Copy full_name member of struct MacFontStruct to that of
7425 2005-04-19 Kim F. Storm <storm@cua.dk>
7427 * xdisp.c (handle_stop): Set saved_face_id to current face if
7428 selective_display_ellipsis_p so ellipsis will be shown in same
7429 face as preceding text.
7430 (setup_for_ellipsis): Don't set saved_face_id here.
7431 (next_element_from_display_vector): Default to saved_face_id.
7433 * fns.c (Fsafe_get): New function.
7434 (syms_of_fns): Defsubr it.
7436 * lisp.h (Fsafe_get): EXFUN it.
7438 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
7439 loops in case of bad face property lists. Limit number of face
7440 alias lookups to 10 (in case of face alias loops).
7442 2005-04-18 Kim F. Storm <storm@cua.dk>
7444 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
7445 It replaces the corresponding member from struct window, as a
7446 window may now show multiple overlay arrows.
7447 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
7449 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
7450 Compare overlay_arrow_bitmap than overlay_arrow_p members.
7452 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
7453 rather than from window.
7454 (update_window_fringes): Compare overlay_arrow_bitmap rather than
7455 overlay_arrow_p members.
7456 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
7459 * window.h (struct window): Remove member overlay_arrow_bitmap.
7461 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
7463 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
7464 Calls changed. Don't check for overlay-arrow-bitmap property here.
7465 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
7466 fringe is present, return Lisp integer for bitmap (or -1 for default).
7467 Fix value of overlay-arrow-bitmap property to be a symbol, use
7468 lookup_fringe_bitmap to parse it.
7469 (display_line): Change call to overlay_arrow_at_row. Store integer
7470 return value as overlay bitmap in row rather than window.
7471 Only show overlay arrow if row displays text, or if no other overlay
7472 arrow is seen in window (if overlay marker is at point-max).
7474 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
7476 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
7478 2005-04-18 Lute Kamstra <lute@gnu.org>
7480 * lread.c (Vloads_in_progress): Static.
7481 * fns.c (Vloads_in_progress): Remove extern.
7482 (load_in_progress): Add extern.
7483 (Frequire): Use load_in_progress instead of Vloads_in_progress.
7485 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
7487 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
7489 2005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7491 * macterm.c (XTread_socket): Don't beep on keyboard input even if
7492 no frame is visible.
7494 2005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
7496 * term.c (struct keys): Add support for shifted keys.
7498 2005-04-16 Richard M. Stallman <rms@gnu.org>
7500 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
7501 (set_message): Call with_echo_area_buffer with WHICH = 0.
7502 (set_message_1): Erase the echo area buffer first thing.
7503 (echo_area_display): Don't clear echo_message_buffer.
7505 2005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7507 * Makefile.in (mac.o): Depend on charset.h and coding.h.
7509 * mac.c: Include charset.h and coding.h.
7510 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
7511 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
7512 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
7514 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
7516 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
7518 * macterm.c (x_autoselect_window_p): Remove variable.
7519 (last_window): New variable.
7520 (XTreassert_line_highlight, x_change_line_highlight):
7521 Remove declarations.
7522 (mac_focus_changed, x_detect_focus_change): New functions and
7524 (XTextExtents16, front_emacs_window): Remove function.
7525 (mac_focus_frame): New function.
7526 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
7527 (mac_check_for_quit_char): Use it instead of front_emacs_window.
7528 (x_scroll_bar_report_motion): Obtain window from control owner.
7529 (x_make_frame_invisible): Set window manager size hint.
7530 (do_mouse_moved): Remove function.
7531 (XTread_socket): Move its contents here. Generate select-window
7532 event on mouse movement if needed. Use x_detect_focus_change on
7533 activate/deactivate events. Don't deiconify frame or invalidate
7534 window rectangle when dnd items are dropped.
7535 Don't activate/deactivate root control.
7536 (frame_highlight, frame_unhighlight): Activate/deactivate root
7538 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
7540 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
7543 2005-04-15 Luc Teirlinck <teirllm@auburn.edu>
7545 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
7547 (SOME_MACHINE_LISP): Add tooltip.
7549 2005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7551 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
7552 Don't include TextEncodingConverter.h.
7553 (mac_system_script_code, Vmac_system_locale): New variables.
7554 (syms_of_mac): Defvar them.
7555 (mac_get_system_locale): New function.
7557 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
7558 Use ENCODE_SYSTEM to encode title bar string.
7559 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
7560 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
7561 Use CFStringGetSystemEncoding to get system default string encoding.
7563 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
7564 TextEncodingConverter.h.
7566 2005-04-13 Steven Tamm <steventamm@mac.com>
7568 * macterm.c (syms_of_macterm): Remove redundant definition of
7569 mac-pass-control-to-system.
7571 2005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
7573 * window.c (Fset_window_configuration): Be careful when you choose
7574 among several possible points for the new_current_buffer.
7576 2005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7578 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
7579 poll_for_input_1. Set interrupt_input_pending to 1 instead.
7580 (Qlanguage_change) [MAC_OS]: New variable.
7581 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
7582 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
7584 * macterm.c (mac_keyboard_text_encoding)
7585 (current_mac_keyboard_text_encoding): Remove variables.
7586 (XTread_socket): Store language-change event if keyboard script change
7587 is detected. Don't convert input to `mac_keyboard_text_encoding'.
7588 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
7590 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
7592 2005-04-10 Richard M. Stallman <rms@gnu.org>
7594 * emacs.c (standard_args): Rename --bare-bones to --quick.
7595 Add -D aka --basic-display.
7597 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
7599 2005-04-09 Richard M. Stallman <rms@gnu.org>
7601 * keymap.c (where_is_internal): Convert a string used as event type
7602 into "(any string)".
7604 * lread.c (Vloads_in_progress): Not static.
7605 * fns.c (Vloads_in_progress): Add extern.
7606 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
7608 2005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
7610 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
7612 2005-04-09 Lute Kamstra <lute@gnu.org>
7614 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
7615 within the accessible part of the buffer.
7617 2005-04-09 Kim F. Storm <storm@cua.dk>
7619 * lread.c (readevalloop): Add args START and END as region in
7620 current buffer to read. Callers changed.
7621 When specified, narrow to this region only when reading,
7622 not during eval. Track next point to read from during eval.
7623 Also restore point to "real" buffer position before eval.
7624 (Feval_region): Don't save excursion and restriction here, and
7625 don't narrow to region. Just pass region to readevalloop.
7626 Note: Point is now preserved even when PRINTFLAG is nil.
7628 2005-04-08 Kim F. Storm <storm@cua.dk>
7630 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
7632 2005-04-06 Kim F. Storm <storm@cua.dk>
7634 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
7636 2005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7638 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
7639 (Fmac_get_preference): Doc fix.
7641 * macfns.c (Fx_create_frame, x_create_tip_frame):
7642 Add "fontset-mac" to fallback font/fontsets.
7644 2005-04-04 Kim F. Storm <storm@cua.dk>
7646 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
7648 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
7649 Call it again after autoload.
7651 2005-04-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7653 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
7656 * ralloc.c (r_alloc_init): Ditto.
7658 2005-04-01 Kenichi Handa <handa@m17n.org>
7660 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
7661 (Vascii_eqv_table): Extern them.
7663 * casetab.c (set_case_table): If standard is nonzero, setup
7664 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
7666 * search.c (looking_at_1): Use current_buffer->case_canon_table,
7668 (string_match_1): Likewise.
7669 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
7670 Vascii_downcase_table.
7671 (fast_string_match_ignore_case): Likewise.
7672 (search_buffer): Fix checking of boyer-moore usability.
7673 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
7674 No need of tranlating characters in PAT. Fix calculation of
7677 2005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
7679 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
7680 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
7681 Use XtNtopShadowPixel and XtNbottomShadowPixel.
7682 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
7683 really work and that breaks with some versions of Xaw3d.
7685 2005-03-31 Kenichi Handa <handa@m17n.org>
7687 * coding.c (syms_of_coding): Fix previous change.
7689 2005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
7691 * fileio.c (search_embedded_absfilename): Fix last change.
7693 2005-03-25 Kenichi Handa <handa@m17n.org>
7695 * coding.c (syms_of_coding): Suggest to use set-coding-category in
7696 the docstring of coding-category-list.
7698 2005-03-31 Kim F. Storm <storm@cua.dk>
7700 * keyboard.c (Qmouse_fixup_help_message): New var.
7701 (syms_of_keyboard): Intern and staticpro it.
7702 (show_help_echo): Apply mouse-fixup-help-message to help string.
7704 2005-03-30 Kim F. Storm <storm@cua.dk>
7706 * xdisp.c (display_line): Allow multiple overlay arrows in window.
7708 2005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
7710 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
7711 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
7712 (Ffile_name_absolute_p): Use it.
7713 (search_embedded_absfilename): New fun, extracted from
7714 Fsubstitute_in_file_name. Use file_name_absolute_p.
7715 Free the pw data after use.
7716 (Fsubstitute_in_file_name): Use it.
7717 After cutting a prefix, re-check file-name-handler.
7719 2005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
7721 * w32term.h (x_output): Add focus_state.
7723 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
7724 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
7726 2005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
7728 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
7729 Use Fexit_minibuffer.
7730 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
7732 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
7734 * dired.c (Ffile_attributes): Add a missing gcpro.
7736 * alloc.c (make_number): The arg can be bigger than `int'.
7737 * lisp.h (make_number): Make prototype more precise.
7739 * process.c, dired.c (Vfile_name_coding_system)
7740 (Vdefault_file_name_coding_system):
7741 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
7742 (Vdefault_file_name_coding_system): Remove unused declarations.
7744 2005-03-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7746 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
7747 if it failed to pop up (Gnome "show pointer on ctrl" option makes
7748 menus fail to pop up).
7750 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
7752 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
7753 Just prepend a backslash without replacing the NBSP by an SPC.
7755 2005-03-22 Kim F. Storm <storm@cua.dk>
7757 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
7758 * dispextern.h (lookup_derived_face): Fix prototype.
7759 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
7761 * xdisp.c (handle_single_display_spec): Derive left-fringe and
7762 right-fringe face from fringe face.
7764 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
7765 Derive face from fringe face.
7767 2005-03-22 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7769 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
7771 2005-03-22 David Kastrup <dak@gnu.org>
7773 * textprop.c (Fnext_char_property_change)
7774 (Fprevious_char_property_change): Allow marker as limit.
7775 (Fnext_single_char_property_change)
7776 (Fprevious_single_char_property_change): Check that limit is a
7778 (Fnext_single_char_property_change): Coerce position to integer.
7779 (Fprevious_single_char_property_change): Same here.
7781 2005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
7783 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
7785 2005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
7787 * frame.c (Fignore_event): Remove.
7788 (syms_of_frame): Don't defsubr it.
7790 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
7791 redundant `ignore-event'.
7793 2005-03-19 Eli Zaretskii <eliz@gnu.org>
7795 * unexec.c (write_segment, unexec): Move these functions to avoid
7796 forward references (which cause errors with "gcc -gcoff").
7798 2005-03-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7800 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
7801 that it doesn't become "tooltip". The specbind is enough.
7803 * xrdb.c (x_load_resources): Use different char *helv when I18N
7806 2005-03-17 Kenichi Handa <handa@m17n.org>
7808 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
7810 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7812 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
7813 Use xic_create_fontsetname even for non-Motif menus.
7814 Don't forget to free the fontsetname.
7816 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
7818 2005-03-17 Richard M. Stallman <rms@gnu.org>
7820 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
7822 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
7823 (Fmake_symbolic_link): Use G to read the new file name.
7825 * callint.c (Finteractive): Document G option.
7826 (Fcall_interactively): Implement G option.
7828 * buffer.c (buffer_lisp_local_variables): New function,
7829 broken out from Fbuffer_local_variables.
7830 (clone_per_buffer_values): Use buffer_lisp_local_variables.
7832 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7834 * xfns.c (xic_create_fontsetname): Add `motif' argument.
7835 Always return a freshly allocated string.
7836 (xic_create_xfontset): Adjust call.
7838 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
7839 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
7840 (dump_realized_face): Fix warning.
7842 * emacs.c (Fkill_emacs): YAILOM.
7844 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
7846 2005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7848 * mac.c (HASHKEY_TERMINAL): Remove.
7849 (HASHKEY_MAX_NID): New macro.
7850 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
7852 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
7853 (xrm_create_database, xrm_q_put_resource)
7854 (xrm_merge_string_database, xrm_q_get_resource_1)
7855 (xrm_q_get_resource): Change resource database representation so
7856 that it may not use multiple hash tables for a single database.
7857 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
7859 2005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
7861 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
7863 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
7864 locale-coding-system, as was already done for WINDOWSNT.
7866 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
7867 translation for chars in the 0-255 range.
7869 2005-03-16 Lute Kamstra <lute@gnu.org>
7871 * floatfns.c (Ffloor): Doc fix.
7873 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7875 * mac.c: Include macterm.h instead of directly including Carbon.h.
7876 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
7877 (Qarray, Qdictionary): New variables.
7878 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
7879 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
7880 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
7881 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
7882 in callback for CFDictionaryApplyFunction.
7883 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
7884 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
7885 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
7886 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
7887 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
7888 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
7889 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
7890 (skip_white_space, parse_comment, parse_include_file)
7891 (parse_binding, parse_component, parse_resource_name, parse_value)
7892 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
7893 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
7894 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
7897 * macfns.c (mac_get_rdb_resource): Remove function.
7898 (x_get_string_resource): Use xrm_get_resource.
7900 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
7902 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
7904 (mac_make_rdb): Create resource database from preferences and
7906 (mac_term_init): Save resource database to cddr part of
7909 * macterm.h (xrm_merge_string_database, xrm_get_resource)
7910 (xrm_get_preference_database): Add externs.
7911 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
7912 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
7913 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
7915 * process.c (init_process): Change `#ifdef DARWIN' to `#if
7916 defined (DARWIN) || defined (MAC_OSX)'
7918 * s/darwin.h (DARWIN): Don't define.
7920 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7922 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
7923 Remove unused variables.
7924 (syms_of_macfns): Don't initialize them. Likewise for
7925 Qface_set_after_frame_default. Defvar and initialize
7926 Vx_window_horizontal_drag_shape.
7927 (x_set_mouse_color): Change mouse pointer shape.
7928 (mac_window) [!MAC_OSX]: Create root control.
7929 (Fx_create_frame): Remove initializations of mouse pointer shapes.
7930 (hourglass_started): New function (from xfns.c).
7931 (start_hourglass, cancel_hourglass): Put function body in #ifdef
7933 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
7934 indicator for each non-tooltip frame if needed, and show it.
7935 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
7937 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
7938 Controls.h. Use ThemeCursor instead of CursHandle.
7940 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
7941 Remove functions and declarations.
7942 (mac_set_colors): Take argument for saving background color.
7943 All callers changed.
7944 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
7945 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
7947 (x_update_end, mac_do_track_drag): Don't reset background color.
7948 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
7950 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
7951 indicator control to the upper-right corner of the window.
7952 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
7953 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
7954 (do_window_update): Update controls after updating content area.
7955 (mac_handle_window_event): Remove unused extern.
7956 (XTread_socket): Check both control handle and control part code
7957 to determine whether a scroll bar is clicked. Activate/deactivate
7958 root control instead of contained scroll bar controls.
7959 (make_mac_terminal_frame): Use ThemeCursor constants.
7961 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
7962 New member hourglass_control.
7963 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
7964 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
7966 2005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7968 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
7969 coincides with that in Apple X11 except `clear', `enter' on
7970 laptops, and fn + `enter' on laptops.
7972 2005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
7974 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
7975 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
7976 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
7978 * xfns.c (xic_defaut_fontset): New constant.
7979 (xic_create_fontsetname): New function.
7980 Extracted from create_frame_xic. Try to generate a slightly
7982 (xic_create_xfontset): Use it.
7983 (create_frame_xic): Simplify.
7985 2005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
7987 * fileio.c (Fmake_symbolic_link): Fix last change.
7989 2005-03-11 Richard M. Stallman <rms@gnu.org>
7991 * fileio.c (Frename_file, Fadd_name_to_file)
7992 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
7993 expand the basename of FILE relative to it.
7995 2005-03-11 Kenichi Handa <handa@m17n.org>
7997 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
7998 before calling setup_coding_system so that autoloading of a coding
8001 2005-03-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8003 * xfns.c (hourglass_started): New function.
8005 * dispextern.h: Declare hourglass_started.
8007 * keyboard.c (Fexecute_extended_command): Restart hourglass
8008 after call to Fcompleting_read if already started.
8010 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
8011 GTK main loop is entered in xterm.c, thus doing the redraw.
8013 2005-03-10 Kim F. Storm <storm@cua.dk>
8015 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
8017 2005-03-08 Kenichi Handa <handa@m17n.org>
8019 * frame.c (x_set_font): Call set_default_ascii_font if an
8020 available font is found.
8022 * fontset.c (set_default_ascii_font): New function.
8023 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
8025 * fontset.h (set_default_ascii_font): Extern it.
8027 2005-03-07 Kim F. Storm <storm@cua.dk>
8029 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
8030 (clear_image_cache_count): New var.
8031 (redisplay_internal): Don't clear face and image caches in the
8032 middle of redisplay; do it afterwards.
8034 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
8036 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
8037 is valid. If not, clear phys_cursor_on_p and return.
8039 2005-03-07 Andreas Schwab <schwab@suse.de>
8041 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
8043 2005-03-06 Richard M. Stallman <rms@gnu.org>
8045 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
8047 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
8048 (Feval, Ffuncall): Use CHECK_CONS_LIST.
8050 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
8052 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
8053 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
8055 2005-03-05 Juri Linkov <juri@jurta.org>
8057 * emacs.c (USAGE1): Replace Info node name "command arguments"
8058 with "emacs invocation".
8059 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
8060 allow arguments `--color' and `MODE' to be separated by space.
8061 Add --no-blinking-cursor, -nbc.
8062 (standard_args): Add -nbc, --no-blinking-cursor.
8064 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
8066 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
8067 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
8068 * fileio.c (Fexpand_file_name) [VMS]:
8069 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
8070 * doc.c (munge_doc_file_name) [VMS]: Likewise.
8071 (Fsnarf_documentation): Call munge_doc_file_name.
8073 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
8075 * s/vms.h (FILE_SYSTEM_CASE): New macro.
8076 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
8077 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
8079 2005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8081 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
8082 defined (MAC_OSX) && defined (HAVE_CARBON)'.
8084 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
8086 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
8087 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
8088 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
8089 (mac_clear_font_name_table): Move extern to macterm.h.
8091 * macfns.c (install_window_handler): Move extern to macterm.h.
8092 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
8093 valid. Don't check !NILP (dir) because it is already checked with
8095 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
8096 specifying the default location and obtaining the selected filename.
8098 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
8100 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
8101 are included via Carbon.h.
8103 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
8104 Define USE_CARBON_EVENTS to 1.
8105 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
8106 (x_free_frame_resources): Call remove_window_handler for
8107 non-tooltip windows.
8108 [TARGET_API_MAC_CARBON]: Don't include headers that are included
8110 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
8111 (mac_do_receive_dragUPP): New variables.
8112 (mac_handle_service_event, init_service_handler): Put declarations
8113 and definitions in #ifdef MAC_OSX.
8114 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
8115 drag-and-drop handler functions and register them.
8116 (remove_window_handler): New function.
8117 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
8118 Use fsspec_to_posix_pathname.
8119 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
8120 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
8121 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
8122 Set default cursors.
8123 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
8124 init_service_handler or init_quit_char_handler.
8125 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
8127 * macterm.h (install_window_handler, remove_window_handler)
8128 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
8129 (mac_clear_font_name_table): New externs.
8131 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
8133 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
8134 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
8135 (Fexpand_file_name): Likewise.
8137 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
8139 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
8140 no longer special-case VMS. Add bogus return value.
8142 2005-03-02 Kim F. Storm <storm@cua.dk>
8144 * dispextern.h (XASSERTS): Define to 0 if not already defined.
8145 (xassert) [!XASSERTS]: Define dummy version.
8147 2005-03-02 Kim F. Storm <storm@cua.dk>
8149 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
8150 Reported by David Kastrup.
8152 2005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
8154 * xdisp.c (get_next_display_element): Fix control and escape
8155 glyph from display vector.
8157 2005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
8159 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
8161 2005-02-27 Richard M. Stallman <rms@gnu.org>
8163 * xdisp.c (fast_find_position): Rename END to BEG.
8164 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
8166 2005-02-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8168 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
8169 gtk_window_resize and x_wm_set_size_hint.
8171 2005-02-25 Kim F. Storm <storm@cua.dk>
8173 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
8175 * xdisp.c (init_from_display_pos): Don't read past end of
8176 it->overlay_strings array.
8178 2005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
8180 * buffer.c (syms_of_buffer): Fix typo.
8182 2005-02-23 Lute Kamstra <lute@gnu.org>
8184 * buffer.c (Foverlay_buffer): Doc fix.
8186 2005-02-22 Kim F. Storm <storm@cua.dk>
8188 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
8189 and symbol keys in alists and hash tables.
8191 * xdisp.c (fast_find_position): Fix search for start of overlay.
8193 2005-02-21 Kim F. Storm <storm@cua.dk>
8195 * window.c (window_scroll_pixel_based): When scrolling backwards,
8196 handle partial visible line at end of window even when we hit PT.
8198 2005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
8200 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
8202 2005-02-21 Kim F. Storm <storm@cua.dk>
8204 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
8205 I think those asserts are bogus if buffer contains invisible text
8208 2005-02-21 David Kastrup <dak@gnu.org>
8210 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
8212 2005-02-20 Kim F. Storm <storm@cua.dk>
8214 * xdisp.c (pos_visible_p): Be sure to move to the specified
8215 position. Always get the full ascent / descent of the
8216 corresponding row, to return reliable rtop and rbot values.
8217 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
8218 Must look one character back, as back_to_previous_line_start
8219 returns position after the newline.
8220 (move_it_vertically_backward): Fix heuristic for when to move further
8221 back in case line_height * 2/3 is larger than window height.
8222 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
8223 as it does not do anything anymore. Add arg current_matrix_p to
8224 use current matrix rather than desired matrix when set.
8225 (try_cursor_movement): Don't scroll to make cursor row fully
8226 visible if cursor didn't move. This avoids unexpected recentering
8227 in case of blinking cursor or accepting process output.
8228 Use current matrix to check cursor row visibility.
8229 (redisplay_window): Fix whether to recenter or move to top in case
8230 cursor line is taller than window height.
8231 (find_first_unchanged_at_end_row): Stop search if we reach a row
8232 which not enabled (instead of abort).
8234 2005-02-18 Kim F. Storm <storm@cua.dk>
8236 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
8237 to be nil in a :box attribute value list; customize prints that
8238 as lisp value when no box color is specified.
8240 * .gdbinit (pitx, pit): Pretty print display iterator.
8241 (prowx, prow): Pretty print glyph row.
8242 (pcursorx, pcursor): Pretty print a window cursor.
8243 (pwinx, pwin): Pretty print struct window.
8245 2005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
8247 * alloc.c (BLOCK_BYTES): Harmless typo.
8249 2005-02-17 Andreas Schwab <schwab@suse.de>
8251 * xfns.c (hack_wm_protocols): Use correct type for last parameter
8252 of XGetWindowProperty to avoid aliasing issues.
8253 (Fx_window_property): Likewise.
8255 * xselect.c (Fx_disown_selection_internal): Use union of struct
8256 input_event and struct selection_input_event to avoid aliasing issues.
8258 * xterm.c (handle_one_xevent): Use union of struct input_event and
8259 struct selection_input_event to avoid aliasing issues.
8260 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
8262 2005-02-17 Kim F. Storm <storm@cua.dk>
8264 * dispextern.h (enum it_method): New enum.
8265 (GET_FROM_*): Its members.
8266 (struct it): Change member method from function pointer to enum.
8268 * xdisp.c (check_it, init_from_display_pos, handle_stop)
8269 (setup_for_ellipsis, handle_single_display_spec)
8270 (handle_composition_prop, next_overlay_string)
8271 (get_overlay_strings, reseat_1, reseat_to_string)
8272 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
8273 (in_display_vector_p, display_line, get_next_display_element):
8274 Change it->method from function pointer to enum.
8275 (get_next_element): New array to map it->method to function.
8276 (get_next_display_element): Use it.
8277 (set_iterator_to_next): Use switch instead of if/else chain.
8279 2005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
8281 * w32select.c: Summary: Thorough rework to implement Unicode
8282 clipboard operations and delayed rendering.
8284 Drop last_clipboard_text and related code, keep track of
8285 ownership via clipboard_owner instead. Drop old #if0 sections.
8287 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
8288 (clipboard_owner, modifying_clipboard, cfg_coding_system)
8289 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
8290 (current_coding_system, current_requires_encoding)
8291 (current_num_nls, current_clipboard_type, current_lcid):
8292 New static variables.
8294 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
8295 (render, render_all, run_protected, lisp_error_handler)
8296 (owner_callback, create_owner, setup_config)
8297 (enum_locale_callback, cp_from_locale, coding_from_cp):
8298 New local functions.
8300 (term_w32select, globals_of_w32select): New global functions.
8302 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
8303 clipboard_owner instead. Use delayed rendering and provide
8304 all text formats. Provide CF_LOCALE if necessary.
8306 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
8307 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
8308 available. Force DOS line-ends for decoding.
8310 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
8312 (syms_of_w32select): Init and register new variables.
8314 * w32.h: Add prototypes for globals_of_w32select and
8315 term_w32select. Make the neighboring K&R declarations into
8318 * emacs.c: Include w32.h to get function prototypes.
8319 (main): Call globals_of_w32select.
8321 * w32.c (term_ntproc): Call term_w32select.
8323 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
8325 2005-02-16 Kim F. Storm <storm@cua.dk>
8327 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
8328 at end of display vector.
8330 2005-02-15 Richard M. Stallman <rms@gnu.org>
8332 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
8333 for mode and header lines.
8335 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
8337 * keymap.h (describe_map_tree): Change decl.
8339 * keyboard.c (command_loop_1): Always use safe_run_hooks
8340 to run Qdeferred_action_function.
8342 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
8343 (describe_map, describe_vector): Likewise. When it's 1,
8344 don't omit shadowed bindings, instead mark them as shadowed.
8346 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
8347 for describe_map_tree. Pass 1 for MENTION_SHADOW.
8349 * data.c (Fsetq_default): Allow no arg case.
8351 2005-02-14 Kenichi Handa <handa@m17n.org>
8353 * coding.c (encode_coding_string): Always return a unibyte string.
8354 If NOCOPY is nonzero and there's no need of encoding, make STR
8357 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
8358 multibyte string, signal an error instead of aborting.
8360 2005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
8362 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
8364 2005-02-12 Kim F. Storm <storm@cua.dk>
8366 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
8368 2005-02-10 Kim F. Storm <storm@cua.dk>
8370 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
8371 if it moves outside window or it doesn't display text.
8373 2005-02-09 Kim F. Storm <storm@cua.dk>
8375 * undo.c (Fprimitive_undo): Check that undo function does not
8378 2005-02-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8380 * xselect.c (selection_data_to_lisp_data): For the special case
8381 type == XA_ATOM, data contains array of int, not array of Atom.
8382 (x_property_data_to_lisp, selection_data_to_lisp_data):
8383 Comment update: data must be array of int for format == 32.
8385 2005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
8387 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
8389 2005-02-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8391 * xfns.c (Fx_change_window_property): Use long array when format is 32.
8392 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
8393 convert long array returned from XGetWindowProperty to an int array.
8394 (x_set_tool_bar_lines): Check that width and height is greater than
8395 zero before clearing area.
8397 * xselect.c (x_reply_selection_request): Pass long array to
8398 XChangeProperty so that 64 bit longs are handeled correctly.
8399 (x_get_window_property): If format is 32 and long is bigger than 32
8400 bits convert data from XGetWindowProperty from long array to int array.
8401 (lisp_data_to_selection_data): When the input is a vector and the
8402 format is 32, allocate a long array even if long is bigger than 32 bits.
8403 (x_fill_property_data): Use char, short and long as the man page
8404 for XChangeProperty specifies. This way the data returned is OK for
8405 both 32 and 64 bit machines.
8406 (x_handle_dnd_message): Calculate size correctly even for 64 bit
8408 (Fx_send_client_event): Undo change from 2005-02-05,
8409 x_fill_property_data now handles that case.
8411 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
8412 reason for the approach in the code.
8414 2005-02-07 Kim F. Storm <storm@cua.dk>
8416 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
8418 2005-02-06 Richard M. Stallman <rms@gnu.org>
8420 * eval.c (Frun_hook_with_args)
8421 (Frun_hook_with_args_until_success)
8422 (Frun_hook_with_args_until_failure): Doc fixes.
8424 2005-02-05 Andreas Schwab <schwab@suse.de>
8426 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
8428 2005-02-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8430 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
8431 the longs in a XClientMessageEvent correctly when long is 64 bits.
8433 2005-02-05 Eli Zaretskii <eliz@gnu.org>
8435 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
8436 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
8438 2005-02-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8440 * xmenu.c (menubar_selection_callback): Force out GTK buffered
8441 events so the menu event comes after them. This is to prevent sit-for
8442 from exiting on buffered events directly after a menu selection,
8443 lisp code for Help => About Emacs uses sit-for.
8445 * gtkutil.c (create_menus): Connect selection-done event instead of
8446 the deactivate event to deactivate_cb. This will make the last
8447 leave event come before the call to deactivate_cb, so the leave
8448 event does not make sit-for exit after a menu selection.
8450 2005-02-03 Kim F. Storm <storm@cua.dk>
8452 * dispnew.c (build_frame_matrix_from_leaf_window)
8453 [!GLYPH_DEBUG]: Fix xassert.
8455 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
8457 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
8459 2005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8461 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
8462 the compiling OS version.
8464 * macfns.c (x_create_tip_frame): Likewise.
8466 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
8468 2005-02-03 Richard M. Stallman <rms@gnu.org>
8470 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
8472 * xdisp.c (echo_area_display): Clear echo_message_buffer.
8474 * buffer.c (Fbury_buffer): Doc fix.
8476 2005-02-02 Steven Tamm <steventamm@mac.com>
8478 * macfns.c (unwind_create_frame): Fix compile error due to
8479 xassert being uncondition, but predicate is.
8480 * dispnew.c (update_window): Fix compile error due to
8481 xassert being uncondition, but predicate is.
8483 2005-02-02 Miles Bader <miles@gnu.org>
8485 * dispextern.h (xassert): Enable unconditionally.
8487 2005-02-02 Kim F. Storm <storm@cua.dk>
8489 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
8491 2005-02-02 Kenichi Handa <handa@m17n.org>
8493 * casefiddle.c (casify_object): Enable changing characters of
8494 different byte length.
8495 (casify_region): Fix loop condition, args to replace_range_2, and
8498 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
8500 2005-02-01 Kim F. Storm <storm@cua.dk>
8502 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
8503 stack before calling handle_display_prop.
8505 2005-01-31 Kim F. Storm <storm@cua.dk>
8507 * undo.c (Qapply): New lisp var.
8508 (syms_of_undo): Intern and staticpro it.
8509 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
8510 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
8512 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
8514 2005-01-30 Jesper Harder <harder@phys.au.dk>
8516 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
8517 <mac-emulate-three-button-mouse>: Fix docstring indentation.
8519 2005-01-29 Luc Teirlinck <teirllm@auburn.edu>
8521 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
8522 Increase value to 3 Meg.
8524 2005-01-29 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8526 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
8527 button events are not received otherwise.
8529 2005-01-29 Richard M. Stallman <rms@gnu.org>
8531 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
8533 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
8535 2005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
8537 * keymap.c (access_keymap): YAILOM.
8539 2005-01-27 Kim F. Storm <storm@cua.dk>
8541 * xdisp.c (get_phys_cursor_geometry): New function to calculate
8542 phys cursor position and size for hollow cursor. Position is
8543 aligned with get_glyph_string_clip_rect and ensures that a hollow
8544 cursor is shown, even when the actual glyph is not visible.
8546 * dispextern.h (get_phys_cursor_geometry): Add prototype.
8548 * xterm.c (x_clip_to_row): Ensure y >= 0.
8549 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
8551 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
8553 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
8555 2005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
8557 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
8559 2005-01-27 Kim F. Storm <storm@cua.dk>
8561 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
8562 glyph, even when row is only partially visible and actual cursor
8563 position is not visible.
8565 2005-01-24 Richard M. Stallman <rms@gnu.org>
8567 * xterm.c (x_error_quitter): No longer static, and moved after
8570 2005-01-24 Kim F. Storm <storm@cua.dk>
8572 * xdisp.c (move_it_by_lines): If we move forward after going too
8573 far back, cancel move if end position is same as start position.
8575 2005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8577 * dispextern.h (struct glyph_string): New members clip_head and
8580 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
8581 region to the area between clip_head and clip_tail.
8582 (draw_glyphs): Record the area that need to be actually redrawn to
8583 the new variables clip_head and clip_tail when there are
8584 overhangs. Set values of these variables to the corresponding
8585 members in struct glyph_string. Refine x coordinates for
8586 notice_overwritten_cursor using clip_head and clip_tail.
8588 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
8590 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
8592 (x_draw_glyph_string): Don't fill the background of the successor
8593 of a glyph with a right overhang if the successor will draw a cursor.
8594 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
8595 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
8597 2005-01-24 Kim F. Storm <storm@cua.dk>
8599 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
8600 direction if window height was smaller than next-screen-context-lines.
8601 Now always scroll at least one line in the requested direction.
8602 Ensure that we actually do scroll backwards when requested to do so.
8604 * xdisp.c (redisplay_window): Only try to make cursor line fully
8605 visible once (to avoid redisplay loop).
8607 2005-01-23 Kim F. Storm <storm@cua.dk>
8609 * window.c (Fpos_visible_in_window_p): Simplify return value for
8610 partially visible rows.
8611 (window_scroll_pixel_based): Adapt to that change.
8613 * window.c (window_scroll_pixel_based): Force moving to next line
8614 if scrolling doesn't move start point, e.g. if looking at tall image.
8616 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
8617 Clear last_height before calling line_bottom_y to get real height.
8618 Fix calculation of y.
8620 2005-01-22 Steven Tamm <steventamm@mac.com>
8622 * s/darwin.h: Removed PTY_ITERATION from here.
8625 * process.c (init_process): Default process-connection-type to
8626 nil on darwin 6 or less, t if it is 7 or higher. This way the
8627 broken pty behavior is still allowed on darwin 6 for interactive
8628 processes for people that know what they are doing.
8630 2005-01-22 Kim F. Storm <storm@cua.dk>
8632 * window.c (auto_window_vscroll_p): New boolean.
8633 (syms_of_window): DEFVAR_BOOL it.
8634 (Fpos_visible_in_window_p): Extend return value to include RTOP
8635 and RBOT values if FULLY is nil.
8636 (window_scroll_pixel_based): Adjust vscroll for partially visible
8637 rows if auto_window_vscroll_p is set.
8638 (Fset_window_vscroll): Do nothing if vscroll is not modified.
8640 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
8641 to return number of partially invisible pixels at top and bottom
8642 of the dislay row at POS.
8644 * lisp.h (pos_visible_p): Fix prototype.
8646 2005-01-21 Richard M. Stallman <rms@gnu.org>
8648 * fileio.c (Fcopy_file): Doc fix.
8650 2005-01-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8652 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
8653 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
8654 start of function for older compilers.
8656 2005-01-20 Richard M. Stallman <rms@gnu.org>
8658 * editfns.c (Fmessage): If arg is "", return "" (as before).
8660 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
8662 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
8665 2005-01-20 Steven Tamm <steventamm@mac.com>
8667 * editfns.c (Voperating_system_release): Add.
8668 (init_editfns): Assign new variable operating-system-release
8669 based on call to uname if available.
8670 (get_operating_system_release): Add function to
8671 allow c-level access to operating system release.
8673 * config.h: Regenerated.
8675 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
8676 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
8679 2005-01-20 Kim F. Storm <storm@cua.dk>
8681 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
8683 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
8684 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
8686 * macterm.c (x_draw_glyph_string_box): Likewise.
8688 * w32term.c (x_draw_glyph_string_box): Likewise.
8690 * indent.c (Fvertical_motion): Temporarily disable selective display.
8692 2005-01-19 Kim F. Storm <storm@cua.dk>
8694 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
8697 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
8699 2005-01-18 Kim F. Storm <storm@cua.dk>
8701 * xdisp.c (fast_find_position): Backtrack to find first row if
8702 charpos is inside a display overlay that spans multiple lines.
8704 2005-01-18 Kenichi Handa <handa@m17n.org>
8706 * coding.c (decode_coding_iso2022): Translate invalid codes if
8707 translation-table is specified.
8709 2005-01-18 Kim F. Storm <storm@cua.dk>
8711 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
8712 change. If handle_display_prop indicates newline is replaced by
8713 image or text, move back to start of relevant overlay or interval
8714 and continue scan from there. Simplify.
8716 2005-01-17 Kim F. Storm <storm@cua.dk>
8718 * dispnew.c (mode_line_string, marginal_area_string):
8719 Fix off-by-one error in search for glyph.
8721 2005-01-16 Kim F. Storm <storm@cua.dk>
8723 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
8725 2005-01-16 Steven Tamm <steventamm@mac.com>
8727 * macterm.c (mac_to_x_fontname): Remove spurious argument.
8729 2005-01-16 Andreas Schwab <schwab@suse.de>
8731 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
8733 2005-01-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8735 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
8736 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
8738 2005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8740 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
8741 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
8742 New flags for readable_events.
8743 (get_filtered_input_pending, readable_filtered_events): Remove.
8744 (tracking_off): Call readable_events and get_input_pending with
8745 flag READABLE_EVENTS_DO_TIMERS_NOW.
8746 (readable_events): Move code from old readable_filtered_events here,
8747 but check new READABLE_EVENTS_* in argument flags instead of previous
8748 two boolean arguments do_timers_now and filter_events.
8749 If we are doing mouse tracking and the mouse moved, return only if
8750 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
8751 (swallow_events): Call get_input_pending with flag
8752 READABLE_EVENTS_DO_TIMERS_NOW.
8753 (get_input_pending): Move code from old get_filtered_input_pending
8754 here. Replace boolean arguments do_timers_now, filter_events with
8755 flags, and pass flags to readable_events. Document new
8756 READABLE_EVENTS_* flags.
8757 (detect_input_pending_ignore_squeezables): New function.
8758 (detect_input_pending_run_timers): Call get_input_pending with flag
8759 READABLE_EVENTS_DO_TIMERS_NOW.
8760 (Finput_pending_p): Call get_input_pending with flags
8761 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
8763 * dispnew.c (update_window, update_frame_1): Replace calls to
8764 detect_input_pending with detect_input_pending_ignore_squeezables
8765 so that redisplay is not paused if the event queue contains only
8768 * lisp.h: Declare detect_input_pending_ignore_squeezables.
8770 2005-01-15 Steven Tamm <steventamm@mac.com>
8772 * macterm.c (Vmac_use_core_graphics): Declare variable for
8773 mac-allow-anti-aliasing.
8774 (syms_of_macterm): DEFVAR_LISP and initialize it.
8775 (mac_draw_string_common): Use core graphics text rendering if
8776 mac-allow-anti-aliasing is enabled.
8778 * macfns.c (Fx_file_dialog): Save As dialog includes only the
8779 file name in the text box.
8781 2005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8783 * macfns.c (x_set_foreground_color, x_set_background_color):
8785 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
8786 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
8787 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
8789 2005-01-14 Kim F. Storm <storm@cua.dk>
8791 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
8793 2005-01-13 Richard M. Stallman <rms@gnu.org>
8795 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
8796 if Voverriding_terminal_local_map is non-nil.
8798 * keyboard.c (syms_of_keyboard): Doc fix.
8800 2005-01-13 Kim F. Storm <storm@cua.dk>
8802 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
8803 (specify 0 for FACE instead). Reorder arg list. Doc fix.
8805 2005-01-12 Richard M. Stallman <rms@gnu.org>
8807 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
8808 face property for characters that don't specify one.
8810 * fns.c (Frequire): Record in load-history unconditionally.
8812 2005-01-10 Kim F. Storm <storm@cua.dk>
8814 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
8816 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
8818 Add support to merge with lisp face id too (if face_name is t).
8820 * xdisp.c (get_next_display_element, next_element_from_display_vector):
8821 Don't lookup lface_id from display table glyphs here; instead use
8822 merge_faces to merge the lisp face id into current face.
8824 2005-01-09 Kim F. Storm <storm@cua.dk>
8826 * dispextern.h (struct it): New member dpvec_face_id.
8827 (merge_into_realized_face): Add prototype.
8829 * xfaces.c (merge_into_realized_face): New function. Used to
8830 merge escape-glyph face or face from display table into current face.
8832 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
8833 (syms_of_xdisp): DEFVAR_LISP it.
8834 (escape_glyph_face): Remove var.
8835 (redisplay_window): Don't initialize it.
8836 (setup_for_ellipsis, get_next_display_element):
8837 Set it->dpvec_face_id to -1.
8838 (get_next_display_element): Test Vshow_nonbreak_escape.
8839 Do not setup escape_glyph_face.
8840 Properly merge escape-glyph face or face from display table with
8841 current face for escape and control characters.
8842 Set it->dpvec_face_id to relevant face id instead of adding it to each
8843 element of display vector.
8844 (next_element_from_display_vector): If it->dpvec_face_id is set,
8845 use that instead of lface_id from glyph itself.
8847 2005-01-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8849 * xterm.h (struct x_output): New member, toolbar_detached.
8851 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
8853 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
8854 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
8855 (xg_create_tool_bar): Initialize toolbar_detached.
8856 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
8857 toolbar_detached is zero.
8859 2005-01-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8861 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
8862 gtk_menu_popup if not for_click, so callbacks for the menu are called.
8864 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
8865 (xg_tool_bar_callback, xg_tool_bar_help_callback)
8866 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
8868 * xselect.c (x_get_foreign_selection, x_fill_property_data)
8869 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
8870 XFLOAT_DATA to get extract number from Lisp object.
8872 2005-01-07 Kim F. Storm <storm@cua.dk>
8874 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
8875 Set stop_charpos to current charpos instead of 0.
8877 2005-01-06 Nick Roberts <nickrob@snap.net.nz>
8879 * xdisp.c (Fformat_mode_line): First arg now required.
8881 2005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8883 * macterm.c (XLoadQueryFont): Correctly handle 0 size
8884 font widths that are returned from some Japanese fonts.
8886 2005-01-06 Kim F. Storm <storm@cua.dk>
8888 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
8889 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
8890 (destroy_fringe_bitmap): Set fringe_faces element to nil.
8891 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
8892 fringe_faces array and init elements to nil.
8893 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
8894 non-persistent face id.
8895 (mark_fringe_data): New function for GC.
8897 * alloc.c (mark_fringe_data): Declare extern.
8898 (Fgarbage_collect): Call mark_fringe_data.
8900 * alloc.c (overrun_check_free): Invalidate freed memory if
8901 XMALLOC_CLEAR_FREE_MEMORY is defined.
8903 2005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8905 * macfns.c: Include sys/param.h.
8906 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
8908 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
8909 of filename string. Set event callback function when creating
8910 dialog boxes. Add code conversions for filenames. Don't dispose
8911 of apple event descriptor record if failed to create it.
8913 * macterm.c: Include sys/param.h.
8914 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
8916 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
8917 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
8918 of FSSpec from apple event descriptor record.
8919 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
8920 size of filename string.
8921 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
8922 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
8923 file dialog is in action.
8924 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
8925 Reject only when there are no filename items. Set background color
8926 before (un)highlighting the window below the dragged items.
8927 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
8929 2005-01-05 Romain Francoise <romain@orebokech.com>
8931 * term.c (encode_terminal_code): Fix buffer size computation.
8933 2005-01-04 Richard M. Stallman <rms@gnu.org>
8935 * xdisp.c (Fformat_mode_line): Doc fix.
8937 2005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
8939 * alloc.c (refill_memory_reserve): Move.
8940 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
8941 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
8943 2005-01-03 Richard M. Stallman <rms@gnu.org>
8945 * window.c (window_scroll_pixel_based): Don't correct preserve_y
8946 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
8948 2005-01-03 Jason Rumney <jasonr@gnu.org>
8950 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
8951 fontp->space_width to FONT_WIDTH so they are valid.
8953 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
8954 average width. Set fontp->average_width and fontp->space_width to
8955 their appropriate values.
8957 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
8958 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
8961 2005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8963 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
8964 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
8965 metrics for max and min bounds.
8966 (x_load_font): Correctly calculate average font width metrics.
8968 2005-01-02 Richard M. Stallman <rms@gnu.org>
8970 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
8972 2004-12-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8974 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
8976 2004-12-31 Richard M. Stallman <rms@gnu.org>
8978 * xdisp.c (setup_for_ellipsis, get_next_display_element):
8979 Set it->ellipsis_p to 1 or 0.
8980 (display_line): Record whether row ends in mid-ellipsis.
8981 (set_cursor_from_row): If ends in ellipsis, find start of it.
8982 (cursor_row_p): If PT's at the end of the ellipsis the row
8983 ends within, don't display cursor on this row.
8985 * dispextern.h (struct it): New element ellipsis_p.
8986 (struct glyph_row): New element ends_in_ellipsis_p.
8988 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
8989 position if we're reading from something other than the buffer.
8991 * window.c (window_scroll_pixel_based): Only look at
8992 Vscroll_preserve_screen_position if the old PT can't be kept.
8993 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
8995 2004-12-30 Kim F. Storm <storm@cua.dk>
8997 * xdisp.c (get_line_height_property): New function extracted from
8998 original calc_line_height_property.
8999 (calc_line_height_property): Rework. Handle t and (nil . ratio).
9000 (x_produce_glyphs): Use them to handle line-height and
9001 line-spacing according to new height spec.
9003 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
9005 2004-12-30 Kenichi Handa <handa@m17n.org>
9007 * fileio.c (Finsert_file_contents): Don't use
9008 current_buffer->buffer_file_coding_system even if REPLACE is
9009 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
9011 * fontset.h (struct font_info): New members space_width and
9014 * frame.h (struct frame): New member space_width.
9015 (FRAME_SPACE_WIDTH): New macro.
9017 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
9019 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
9020 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
9022 (x_load_font): Calculate fontp->space_width and fontp->average_width.
9023 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
9025 * xdisp.c (x_produce_glyphs): Calculate tab width by
9026 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
9028 2004-12-29 Sanghyuk Suh <han9kin@mac.com>
9030 * macterm.c (SelectionRange): Add Xcode position apple event struct.
9031 (do_ae_open_documents): Handle Xcode-style file position open events.
9033 2004-12-29 Luc Teirlinck <teirllm@auburn.edu>
9035 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
9037 2004-12-29 Richard M. Stallman <rms@gnu.org>
9039 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
9041 2004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9043 * macfns.c (install_window_handler): Modify extern to return OSErr
9045 (mac_window): Handle return value of install_window_handler.
9047 * macterm.c (reflect_byte): Remove function.
9048 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
9049 Lookup table instead.
9050 (mac_do_font_lists): Simplify calculation of the longest
9052 (init_mac_drag_n_drop): Remove function and declaration.
9053 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
9054 init_mac_drag_n_drop.
9055 (mac_do_track_drag): New function and declaration.
9056 (install_window_handler): Return OSErr value.
9057 (install_window_handler) [TARGET_API_MAC_CARBON]:
9058 Register handlers for tracking/receiving drag-and-drop items.
9059 (do_ae_open_documents): Generate unibyte strings for filenames.
9060 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
9061 Reject only non-filename items. Set event modifiers, and return value.
9063 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
9065 * coding.c (decode_coding): Fix previous change.
9067 2004-12-28 Richard M. Stallman <rms@gnu.org>
9069 * xdisp.c (back_to_previous_visible_line_start):
9070 Don't call handle_display_prop.
9072 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
9074 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
9075 (decode_coding_emacs_mule, encode_coding_emacs_mule)
9076 (decode_coding_iso2022, encode_designation_at_bol)
9077 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
9078 (decode_coding): Constify arguments and local vars.
9080 2004-12-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9082 * xmenu.c (popup_get_selection): Only pop down dialogs
9084 (popup_get_selection): Remove parameter down_on_keypress.
9085 (create_and_show_popup_menu, create_and_show_dialog):
9086 Remove parameter down_on_keypress to popup_get_selection.
9088 2004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9090 * dispextern.h: Change HAVE_CARBON to MAC_OS.
9091 (struct glyph_string): Likewise.
9093 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
9096 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
9097 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
9099 * fns.c (vector): Change MAC_OSX to MAC_OS.
9101 * frame.c (x_set_frame_parameters, x_report_frame_params)
9102 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
9103 (x_set_border_width, Vdefault_frame_scroll_bars):
9104 Change HAVE_CARBON to MAC_OS.
9106 * image.c [MAC_OS]: Include sys/stat.h.
9107 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
9108 QuickTimeComponents.h.
9110 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
9111 [!MAC_OSX] (select): Use mac_wait_next_event.
9112 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
9113 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
9114 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
9115 (mac_clear_font_name_table): Add extern.
9116 (Fmac_clear_font_name_table): New defun.
9117 (syms_of_mac): Defsubr it.
9118 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
9119 [MAC_OSX] (select_and_poll_event): New function.
9120 [MAC_OSX] (sys_select): Use it.
9121 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
9122 [MAC_OSX && SELECT_USE_CFSOCKET]
9123 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
9124 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
9125 RunLoop for simultaneously monitoring two kinds of inputs, window
9126 events and process outputs, without periodically polling.
9128 * macfns.c (mac_initialized): Remove extern.
9129 (stricmp): Put in #if 0. All callers changed to use xstricmp in
9131 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
9132 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
9133 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
9134 (mac_get_rdb_resource): New function (from w32reg.c).
9135 (x_get_string_resource): Use it.
9136 (install_window_handler): Add extern.
9137 (mac_window): New function.
9138 (Fx_create_frame): Use it instead of make_mac_frame.
9139 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
9140 (Fx_open_connection, Fx_close_connection): New defuns.
9141 (syms_of_macfns): Defsubr them.
9142 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
9143 Add kWindowNoUpdatesAttribute to the window attribute.
9144 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
9145 (x_create_tip_frame): Don't call ShowWindow.
9146 (Fx_show_tip): Call ShowWindow.
9147 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
9148 TARGET_API_MAC_CARBON'.
9149 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
9150 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
9152 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
9153 (Window): Typedef to WindowPtr and move outside `#if
9154 TARGET_API_MAC_CARBON'.
9155 (XSizeHints): New struct.
9157 * macterm.c (x_update_begin, x_update_end)
9158 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
9160 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
9161 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
9162 (construct_mouse_click): Put in #if 0.
9163 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
9164 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
9165 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
9166 (activate_scroll_bars, deactivate_scroll_bars)
9167 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
9168 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
9169 if the position is neither user-specified nor program-specified.
9170 (x_free_frame_resources): Free size_hints.
9171 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
9172 (mac_clear_font_name_table): New function.
9173 (mac_do_list_fonts): Initialize font_name_table if needed.
9174 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
9175 around mac_do_list_fonts.
9176 (mac_unload_font): New function.
9177 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
9178 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
9179 and definitions with #if TARGET_API_MAC_CARBON.
9180 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
9181 (install_window_handler): Add decl.
9182 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
9183 window. Use UpdateControls. Get the rectangle that should be
9184 updated and restrict the target of expose_frame to it.
9185 (do_grow_window): Set minimum height/width according to size_hints.
9186 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
9187 (do_zoom_window): Don't use x_set_window_size.
9188 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
9189 (install_window_handler): New function.
9190 [!USE_CARBON_EVENTS] (mouse_region): New variable.
9191 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
9192 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
9193 GetEventDispatcherTarget inside BLOCK_INPUT.
9194 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
9195 Update mouse_region when mouse is moved.
9196 (make_mac_frame): Remove.
9197 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
9198 Initialize mouse pointer shapes. Change values of f->left_pos and
9199 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
9200 Don't call ShowWindow.
9201 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
9202 Vinvocation_name and Vsystem_name.
9203 (mac_make_rdb): New function (from w32term.c).
9204 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
9205 already been opened. Don't pass argument to
9206 mac_initialize_display_info. Don't set dpyinfo->height/width.
9207 Add entries to x_display_list and x_display_name_list.
9208 (x_delete_display): New function.
9209 (mac_initialize): Don't call mac_initialize_display_info.
9210 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
9212 * macterm.h (check_mac): Add extern.
9213 (struct mac_output): New member size_hints.
9214 (FRAME_SIZE_HINTS): New macro.
9215 (mac_unload_font): Add extern.
9217 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
9219 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
9221 2004-12-27 Richard M. Stallman <rms@gnu.org>
9223 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
9224 (syms_of_buffer): Don't defsubr it.
9226 * process.c (list_processes_1): Set undo_list instead
9227 of calling Fbuffer_disable_undo.
9229 * xdisp.c (single_display_spec_string_p): Rename from
9230 single_display_prop_string_p.
9231 (single_display_spec_intangible_p): Rename from
9232 single_display_prop_intangible_p.
9233 (handle_single_display_spec): Rename from handle_single_display_prop.
9234 Rewritten to be easier to understand.
9236 Change in load-history format. Functions now get (defun . NAME),
9237 and variables get just NAME.
9239 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
9241 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
9242 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
9243 (Qdefvar): Var deleted.
9244 (syms_of_eval): Don't initialze it.
9246 * lread.c (syms_of_lread) <load-history>: Doc fix.
9248 2004-12-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9250 * xmenu.c (popup_get_selection): Pop down on C-g.
9251 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
9252 pops down menu on C-g.
9253 (xdialog_show): If dialog popped down and no button in the dialog was
9254 pushed, call Fsignal to quit.
9255 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
9258 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
9260 * gtkutil.c (xg_initialize): Install bindings for C-g so that
9261 dialogs and menus pop down.
9263 2004-12-27 Kenichi Handa <handa@m17n.org>
9265 * coding.c (code_convert_region): Fix calculation of `ratio'.
9267 2004-12-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9269 * gtkutil.c (update_frame_tool_bar): Make the value of
9270 tool-bar-button-margin control margins of images in tool bar.
9272 * alloc.c (check_depth): New variable.
9273 (overrun_check_malloc, overrun_check_realloc): Only add
9274 overhead and write check pattern if check_depth is 1 (to handle
9275 recursive calls). Increase/decrease check_depth in entry/exit.
9276 (overrun_check_free): Only check for overhead if check_depth is 1.
9277 Increase/decrease check_depth in entry/exit.
9279 2004-12-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9281 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
9282 before touching input_available_clear_time, to avoid accessing it
9283 from multiple threads.
9285 2004-12-23 Jason Rumney <jasonr@gnu.org>
9287 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
9290 2004-12-22 Richard M. Stallman <rms@gnu.org>
9292 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
9294 * lisp.h (Vundo_outer_limit): Fix decl.
9296 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
9298 (syms_of_undo): Initialize appropriately.
9299 (truncate_undo_list): If it's nil, there's no limit.
9301 2004-12-22 Kenichi Handa <handa@m17n.org>
9303 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
9305 2004-12-21 Richard M. Stallman <rms@gnu.org>
9307 * eval.c (unwind_to_catch): Clear immediate_quit.
9309 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
9310 specially as `\ ' and `\-'.
9312 * keyboard.c (kbd_buffer_store_event_hold):
9313 In the code for while-no-input, handle immediate_quit.
9315 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
9316 Call that at the very start.
9317 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
9318 (syms_of_alloc): Don't define undo-limit,
9319 undo-strong-limit and undo-outer-limit here.
9321 * undo.c (truncate_undo_list): Return void.
9322 Take just one argument, the buffer.
9323 Make it current, and inhibit recursive GC.
9324 Access and update the undo list directly; return void.
9325 Refer to the undo...limit variables directly.
9326 Test undo_outer_limit only after counting the whole current command.
9327 When it's exceeded, call the function in undo-outer-limit-function.
9328 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
9329 (Vundo_outer_limit_function): New variable.
9330 (syms_of_undo): Define undo-limit, undo-strong-limit
9331 and undo-outer-limit here, and undo-outer-limit-function.
9334 * lisp.h (truncate_undo_list): Update decl.
9336 2004-12-21 Piet van Oostrum <piet@cs.uu.nl>
9338 * fileio.c (Fread_file_name): Delete duplicates in
9339 file-name-history when history_delete_duplicates is true.
9341 2004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9343 * macterm.c (mac_do_list_fonts): Fix memory leak
9345 2004-12-20 Richard M. Stallman <rms@gnu.org>
9347 * regex.c (re_match_2_internal) <symend, wordend>:
9348 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
9350 2004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9352 * macterm.c (endif, x_font_name_to_mac_font_name):
9353 Use maccentraleurroman instead of maccentraleuropean
9354 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
9355 quickly finding a specific font without needing regexps.
9357 2004-12-15 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9359 * syssignal.h: Declare main_thread.
9360 (SIGNAL_THREAD_CHECK): New macro.
9362 * keyboard.c (input_available_signal): Move thread checking code
9363 to macro SIGNAL_THREAD_CHECK and call that macro.
9364 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
9366 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
9368 * emacs.c: Define main_thread.
9369 (main): Initialize main_thread.
9370 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
9371 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
9373 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
9375 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
9377 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
9379 * process.c (send_process_trap, sigchld_handler):
9380 Call SIGNAL_THREAD_CHECK.
9382 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
9384 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
9386 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
9387 returning when xg_ignore_gtk_scrollbar is true.
9389 2004-12-14 Kim F. Storm <storm@cua.dk>
9391 * keyboard.c (read_char): Save and restore echo_string when
9392 handling input method.
9394 2004-12-13 Richard M. Stallman <rms@gnu.org>
9396 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
9398 * keyboard.c (Vthrow_on_input): New variable.
9399 (syms_of_keyboard): Defvar and initialize it.
9400 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
9402 * lisp.h (QUIT): Check for Vthrow_on_input.
9403 (Vthrow_on_input): Declare it.
9405 2004-12-13 Kim F. Storm <storm@cua.dk>
9407 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
9410 2004-12-12 Richard M. Stallman <rms@gnu.org>
9412 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
9414 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
9415 (Ftry_completion): Really use outer `zero'; eliminate inner one.
9417 2004-12-12 Kenichi Handa <handa@m17n.org>
9419 * term.c (encode_terminal_code): Fix previous change.
9421 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
9423 * keyboard.c (handle_async_input): Remove pthread mutex handling.
9424 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
9426 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
9429 * minibuf.c (Ftry_completion, Fall_completions): Don't use
9432 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
9434 2004-12-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9436 * w32term.c (x_calc_absolute_position): Remove calculation of
9437 difference between inner and outer window. Don't subtract difference
9438 for left and top calculations.
9440 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
9441 for left and top calculations. Remove call to x_real_positions.
9442 [Bug report by Drew Adams in November]
9443 (x_check_expected_move): Do not set change_gravity to 1 when calling
9446 2004-12-08 Richard M. Stallman <rms@gnu.org>
9448 * xdisp.c (get_next_display_element): Use `escape-glyph' for
9449 control chars and escaped octal codes.
9450 (Qescape_glyph): New variable.
9451 (syms_of_xdisp): Initialize it.
9452 (escape_glyph_face): New variable.
9453 (redisplay_window): Initialize it.
9455 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
9457 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
9458 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
9460 2004-12-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9462 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
9465 * keyboard.c (handle_async_input, input_available_signal):
9466 Add ! defined (SYSTEM_MALLOC) around thread code.
9468 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
9470 2004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
9472 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
9474 * config.in: Regenerate.
9476 2004-12-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9478 * xmenu.c (Fx_popup_menu): Correct documentation about position.
9479 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
9480 if not given by a mouse click to correspond with x-popup-menu
9483 * config.in: Regenerate.
9485 * gtkutil.c: Include signal.h and syssignal.h.
9486 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
9488 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
9489 new variables main_thread and alloc_mutex,
9490 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
9491 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
9492 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
9494 (emacs_blocked_free, emacs_blocked_malloc)
9495 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
9496 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
9497 (reset_malloc_hooks): New function.
9499 * lisp.h: Declare reset_malloc_hooks.
9501 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
9503 * keyboard.c: Conditionally include pthread.h
9504 (handle_async_input, input_available_signalt): If not in the main
9505 thread, block signal, send signal to main thread and return.
9507 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
9508 Set current folder in file chooser if default_filename is a directory.
9510 2004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
9512 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
9513 Remove redundant correctness checks.
9514 (regex_compile): Fix up error codes for \{..\} expressions.
9516 2004-12-05 Richard M. Stallman <rms@gnu.org>
9518 * regex.c (regex_compile): Fix end-of-pattern case for space.
9520 2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9522 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
9523 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
9524 crashes with invalid characters.
9525 * macmenu.c (add_menu_item): Use it.
9526 * image.c (image_load_quartz2d): Likewise.
9527 * macfns.c (x_set_name, x_set_title): Likewise.
9528 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
9529 creating them each time for labels.
9531 2004-12-02 Richard M. Stallman <rms@gnu.org>
9533 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
9536 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
9537 (interactive_p): Skip Scalled_interactively_p frames
9538 like Sinteractive_p frames.
9539 (unwind_to_catch): Clear handling_signal.
9541 * data.c (Fmake_variable_buffer_local): Doc fix.
9542 (Fmake_local_variable): Doc fix.
9544 * insdel.c (insert_from_string_before_markers)
9545 (insert_from_string): Don't modify buffer on empty insertion.
9547 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
9549 2004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9551 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
9552 menu text as UTF8 fails.
9554 2004-12-01 Kim F. Storm <storm@cua.dk>
9556 * alloc.c: Add commentary for last change.
9557 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
9558 sizeof(size_t) != 4.
9559 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
9560 Use them. Also clear header and trailer of freed memory.
9561 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
9562 (string_overrun_cookie): Rename from string_overrun_pattern.
9563 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
9565 2004-12-01 Andreas Schwab <schwab@suse.de>
9567 * lisp.h: Declare string_to_multibyte.
9569 2004-12-01 Kenichi Handa <handa@m17n.org>
9571 * w32console.c (w32con_write_glyphs): Decide coding here.
9572 Adjusted for the change of encode_terminal_code.
9574 * term.c (encode_terminal_code): Don't make it "static".
9576 2004-11-30 Kenichi Handa <handa@m17n.org>
9578 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
9579 (encode_terminal_code): Argument changed. Encode all
9580 characters at once, and return a pointer to the result of encoding.
9581 (write_glyphs): Decide coding here. Adjusted for the above change.
9582 (insert_glyphs): Likewise.
9583 (term_init): Initialize encode_terminal_bufsize to 0.
9585 * coding.c (Vcode_conversion_workbuf_name): New variable.
9586 (syms_of_coding): Initialize and staticpro it.
9587 (set_conversion_work_buffer): New function.
9588 (run_pre_post_conversion_on_str): Use it.
9589 (run_pre_write_conversin_on_c_str): New function.
9591 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
9593 2004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9595 * keyboard.c: Don't undef SIGIO
9596 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
9597 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
9598 (macfns.o): Don't depend on ccl.h.
9599 * macfns.c (mac_frame_parm_handlers): Set handlers for
9600 Qleft_fringe and Qright_fringe.
9601 * macterm.c (mac_fill_rectangle_to_pixmap)
9602 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
9603 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
9605 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
9606 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
9607 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
9608 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
9609 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
9610 XDrawImageString. Always draw background and foreground separately.
9611 (x_draw_image_foreground): Use clipping instead of computing the
9612 intersection rectangle.
9613 (x_draw_image_glyph_string): Don't draw an image with mask to a
9615 (x_redisplay_interface): Set flush_display_optional member to 0.
9616 (XTread_socket): Correctly reset the TEConverter
9619 2004-11-30 Kim F. Storm <storm@cua.dk>
9621 * lisp.h: New defines to enable buffer overrun checking.
9622 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
9623 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
9625 * alloc.c: Add more checks for buffer overruns.
9626 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
9627 xmalloc_overrun_check_trailer, overrun_check_malloc)
9628 overrun_check_realloc, overrun_check_free): Add.
9629 (GC_STRING_EXTRA, string_overrun_pattern): Add.
9630 (check_sblock, allocate_string_data, compact_small_strings):
9631 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
9632 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
9633 (check_string_free_list): Add.
9634 (allocate_string, sweep_strings): Call check_string_free_list.
9636 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
9637 XMALLOC_OVERRUN_CHECK to avoid crash during load.
9639 2004-11-29 Kim F. Storm <storm@cua.dk>
9641 * fns.c (concat): Use SAFE_ALLOCA.
9643 2004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
9645 * sysdep.c (emacs_write): Don't use QUIT.
9647 2004-11-29 Kenichi Handa <handa@m17n.org>
9649 * buffer.c (init_buffer): Set current_buffer->directory to a
9650 multibyte string made by string_to_multibyte.
9652 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
9654 2004-11-27 Andreas Schwab <schwab@suse.de>
9656 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
9658 * s/gnu-linux.h: Enable no-op gcpros on ia64.
9659 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
9661 * filelock.c (lock_file_1): Call get_boot_time early.
9662 Increase buffer size.
9664 2004-11-27 Eli Zaretskii <eliz@gnu.org>
9666 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
9669 2004-11-27 Kim F. Storm <storm@cua.dk>
9671 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
9672 marker out of doc string.
9674 2004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
9676 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
9677 which was not mentioned in the log.
9679 2004-11-26 Kim F. Storm <storm@cua.dk>
9681 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
9682 angle bitmaps at top/bottom line.
9684 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
9685 set it when it->method is set to next_element_from_display_vector.
9686 (setup_for_ellipsis): Add LEN argument. Callers changed.
9687 Set it->saved_face_id.
9688 (get_next_display_element): Use loop instead of recursion.
9689 Set it->saved_face_id. Combine duplicate code for ctr chars.
9690 (next_element_from_display_vector): Do not set it->saved_face_id.
9691 (next_element_from_ellipsis): Use setup_for_ellipsis.
9693 2004-11-26 Eli Zaretskii <eliz@gnu.org>
9695 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
9696 prevent compiler warnings.
9698 2004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
9700 * keyboard.c (command_loop_1): Print a message describing the key
9701 the user just pressed when this key has no binding.
9703 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
9704 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
9706 * lread.c (readchar): Check QUIT when `getc' is interrupted.
9708 2004-11-24 Richard M. Stallman <rms@gnu.org>
9710 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
9712 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
9714 2004-11-24 Kim F. Storm <storm@cua.dk>
9716 * xdisp.c (move_it_in_display_line_to, display_line):
9717 Restore saved_face_id also when truncate-lines or hscrolled.
9719 2004-11-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9721 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
9722 x-use-old-gtk-file-dialog.
9724 * xfns.c: Define x_use_old_gtk_file_dialog.
9725 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
9726 outside ifdef USE_GTK.
9728 2004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
9730 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
9731 Don't use XFASTINT blindly.
9733 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
9735 * indent.c (skip_invisible): Avoid non-idempotent side-effects
9738 * keymap.c (Flookup_key): Check INTEGERP before XINT.
9740 * lread.c (oblookup): Don't use XFASTINT blindly.
9742 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
9743 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
9745 2004-11-23 Kim F. Storm <storm@cua.dk>
9747 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
9748 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
9750 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
9751 signal_p is zero and face name is unknown.
9752 (Fx_list_fonts): Don't signal error in lookup_named_face.
9753 (Fface_font): Signal error in lookup_named_face.
9754 (ascii_face_of_lisp_face): Likewise.
9756 * dispextern.h (lookup_named_face): Fix prototype.
9758 * xdisp.c (handle_single_display_prop): Don't signal error in
9759 lookup_named_face for unknown fringe face name.
9760 (highlight_trailing_whitespace): Don't signal error in
9761 lookup_named_face if trailing-whitespace face unknown.
9762 (calc_line_height_property): Don't signal error in
9763 lookup_named_face if specified face name is unknown.
9765 * fringe.c (update_window_fringes): Show top row indicator if
9766 window has header-line. Don't show arrow at bob and eob
9767 if the boundary indicators are not used.
9768 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
9770 * window.c (set_window_buffer): Clear display_error_modiff.
9772 2004-11-22 Kim F. Storm <storm@cua.dk>
9774 * fringe.c (update_window_fringes): Provide sensible fall-back
9775 value for non-nil indicate-buffer-boundaries setting.
9777 2004-11-22 Markus Rost <rost@ias.edu>
9779 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
9781 2004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
9783 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
9785 2004-11-21 Kim F. Storm <storm@cua.dk>
9787 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
9789 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
9790 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
9792 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
9793 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
9795 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
9796 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
9798 * xdisp.c (move_it_in_display_line_to, display_line):
9799 Restore saved_face_id if overflow-newline-into-fringe is enabled and
9800 line is continued before or in middle of element from display vector.
9802 * indent.c (Fvertical_motion): Fix last change. Use another
9803 method to detect if iterator moved too far ahead after reseat.
9805 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
9806 expand matrix width for overflow in zero-width area.
9807 (append_glyph, append_composite_glyph, produce_image_glyph)
9808 (append_stretch_glyph): Use it to avoid loop in redisplay.
9809 (note_mode_line_or_margin_highlight): Don't let help-echo from
9810 string override help-echo from image map.
9812 2004-11-20 Luc Teirlinck <teirllm@auburn.edu>
9814 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
9815 * callint.c (Fcall_interactively): Ditto.
9817 2004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9819 * minibuf.c (Fminibuffer_complete_and_exit):
9820 Fixup the case of the completed value, for case-indep completion.
9822 2004-11-20 Richard M. Stallman <rms@gnu.org>
9824 * lisp.h (Fread_from_minibuffer): Add arg in decl.
9826 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
9827 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9829 * search.c (Vsearch_spaces_regexp):
9830 Rename from Vsearch_whitespace_regexp. All uses changed.
9832 2004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
9834 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
9836 2004-11-19 Richard M. Stallman <rms@gnu.org>
9838 * search.c (Vsearch_whitespace_regexp): New variable.
9839 (syms_of_search): Defvar it.
9840 (compile_pattern_1): Call re_set_whitespace_regexp with it.
9841 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
9843 (struct regexp_cache): New element whitespace_regexp.
9844 (syms_of_search): Initialize whitespace_regexp elements.
9845 (compile_pattern): Compare whitespace_regexp elements.
9846 (compile_pattern_1): Set whitespace_regexp elements.
9848 * regex.c (regex_compile): Substitute whitespace_regexp
9849 for spaces, if it is nonzero.
9850 (whitespace_regexp): New variable.
9851 (re_set_whitespace_regexp): New function.
9853 2004-11-19 Kim F. Storm <storm@cua.dk>
9855 * indent.c (Fvertical_motion): Fix last change.
9857 2004-11-18 Kim F. Storm <storm@cua.dk>
9859 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
9860 Instead, move back again if reseating moves too far ahead.
9862 2004-11-17 Luc Teirlinck <teirllm@auburn.edu>
9864 * xdisp.c (message3): Call clear_message.
9866 2004-11-17 Kim F. Storm <storm@cua.dk>
9868 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
9870 2004-11-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9872 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
9874 * xmenu.c (x_menu_in_use): Remove.
9875 (x_menu_set_in_use): Also set popup_activated_flag.
9877 * xfns.c (Fx_file_dialog): Call popup_activated instead of
9878 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
9880 * xterm.h (x_menu_in_use): Remove.
9882 2004-11-16 Richard M. Stallman <rms@gnu.org>
9884 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
9885 Use map-keymap-internal to implement that.
9887 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
9889 2004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
9891 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
9892 a window before using XWINDOW.
9894 * window.c (make_window, Fselect_window, make_dummy_parent)
9896 * frame.c (make_frame):
9897 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
9899 * lisp.h (NILP): Use EQ rather than XFASTINT.
9901 2004-11-16 Kim F. Storm <storm@cua.dk>
9903 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
9905 * indent.c (Fvertical_motion): Fix last change. Only reseat when
9908 2004-11-16 Luc Teirlinck <teirllm@auburn.edu>
9910 * dispextern.h: Extern reseat_at_previous_visible_line_start.
9912 2004-11-16 Kenichi Handa <handa@m17n.org>
9914 * xdisp.c (display_mode_element): Fix previous change (calculate
9915 end position of substring to display correctly).
9917 2004-11-16 Kim F. Storm <storm@cua.dk>
9919 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
9920 Reported by Andrew M. Scott.
9922 2004-11-15 Kim F. Storm <storm@cua.dk>
9924 * fns.c (Fsafe_plist_get): New defun.
9925 (syms_of_fns): Defsubr it.
9927 * lisp.h (Fsafe_plist_get): Add EXFUN.
9929 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
9930 Use Fsafe_plist_get.
9931 (note_mode_line_or_margin_highlight, note_mouse_highlight):
9932 Fix image map element parsing. Use Fsafe_plist_get.
9934 2004-11-15 Richard M. Stallman <rms@gnu.org>
9936 * xdisp.c (get_next_display_element): Fix previous change.
9938 2004-11-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9940 * window.c (shrink_windows): Handle special case of one window left
9941 when trying to shrink the final reminder. Grow windows if
9942 total_removed is less than total_shrink.
9944 * xmenu.c (pop_down_menu): Remove global variable current_menu,
9945 extract pointer from arg with XSAVE_VALUE.
9946 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
9947 Construct arg to record_unwind_protect with make_save_value.
9949 2004-11-13 Richard M. Stallman <rms@gnu.org>
9951 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
9952 (get_next_display_element): Fix previous change to apply only to \n.
9954 * indent.c (Fvertical_motion): Scan to PT from start of line to
9955 make iterator consistent.
9957 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
9959 2004-11-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9961 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
9963 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
9964 Record unwind with clean_up_file_dialog.
9966 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
9969 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
9971 2004-11-13 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9973 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
9974 (xg_file_sel_destroy): Remove.
9975 (xg_file_response_cb, pop_down_file_dialog)
9976 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
9978 (xg_get_file_with_chooser, xg_get_file_with_selection):
9979 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
9980 Move common code to xg_get_file_name. Return widget created.
9981 (xg_get_file_name): Set name, transient for, modal and destroy
9982 with parent here. Connect response signal to xg_file_response_cb,
9983 connect delete-event to gtk_true. Record pop_down_file_dialog
9984 for unwind. Do event loop and call x_menu_wait_for_event in loop.
9985 (xg_create_widget): Make dialogs modal.
9987 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
9989 (popup_get_selection): Move unwind protect ...
9990 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
9991 Move destroy of widget to pop_down_menu.
9992 (popup_widget_loop): Move unwind protect ...
9993 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
9994 Move destroy of widget to pop_down_menu.
9995 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
9996 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
9997 x_mouse_leave and grabbed = 0 to pop_down_menu.
9999 2004-11-13 Kim F. Storm <storm@cua.dk>
10001 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
10002 (syms_of_xdisp): DEFVAR_BOOL it.
10003 (make_cursor_line_fully_visible, try_cursor_movement)
10004 (try_window_id): Use it.
10006 2004-11-12 Kim F. Storm <storm@cua.dk>
10008 * dispextern.h (struct glyph_row): New member extra_line_spacing.
10009 (struct it): New member max_extra_line_spacing.
10010 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
10011 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
10012 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
10013 part of last line is only extra line spacing (so the text on the
10014 line is fully visible). Use helper macros.
10015 Add W arg (to use them). All callers changed.
10016 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
10017 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
10019 * window.c (window_scroll_pixel_based, Frecenter):
10020 Use move_it_vertically_backward directly.
10021 (Frecenter): Fix calculation of new start pos for negative arg.
10022 Before, the new start pos was sometimes chosen too far back, so
10023 the last line became only partially visible, and thus would be
10024 either only semi-visible or automatically scrolled to the middle
10025 of the window by redisplay.
10027 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
10028 (move_it_vertically_backward): Don't recure to move further back.
10029 (move_it_vertically): Remove superfluous condition.
10030 (move_it_by_lines): Clear last_height when moved 0 lines.
10031 (resize_mini_window): Use it.max_extra_line_spacing.
10032 (display_tool_bar_line): Clear row->extra_line_spacing.
10033 (try_scrolling): Use move_it_vertically_backward directly.
10034 (redisplay_window): Likewise.
10035 (compute_line_metrics): Set row->extra_line_spacing.
10036 (display_line, display_string): Likewise.
10037 (x_produce_glyphs): Update it->max_extra_line_spacing.
10039 * xmenu.c (pop_down_menu): Return nil.
10041 2004-11-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10043 * xmenu.c (x_menu_wait_for_event): New function.
10044 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
10046 (popup_widget_loop): Add argument do_timers.
10047 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
10048 do_timers to popup_widget_loop.
10049 (xmenu_show): Call XMenuActivateSetWaitFunction so that
10050 x_menu_wait_for_event is called by XMenuActivate.
10051 (create_and_show_popup_menu): Pass 1 for do_timers to
10052 popup_get_selection.
10053 (pop_down_menu): New function.
10054 (popup_get_selection, popup_widget_loop): Unwind protect to
10056 (popup_widget_loop): Add argument widget.
10057 (create_and_show_popup_menu, create_and_show_dialog): Pass new
10058 argument widget to popup_widget_loop.
10060 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
10062 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
10064 2004-11-09 Kim F. Storm <storm@cua.dk>
10066 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
10067 Fix various comments referring to XEvents instead of input events.
10068 (x_queue_event): Fix format strings.
10069 (x_stop_queuing_selection_requests): Likewise.
10071 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
10072 (pint2hrstr): Add extra braces to silence compiler.
10074 * print.c (print_object): Fix format string.
10076 * lread.c (read1): Fix next_char matching.
10078 * lisp.h (Fdelete): Add EXFUN.
10079 (replace_range_2): Add prototype.
10081 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
10083 * intervals.h (NULL_INTERVAL_P): Add separate version when
10084 ENABLE_CHECKING is not defined to silence compiler.
10085 (compare_string_intervals): Add prototype.
10087 * fringe.c (destroy_fringe_bitmap): Fix return type.
10088 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
10090 * emacs.c (Fdump_emacs): Fix format string.
10092 * doc.c: Include <ctype.h>.
10093 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
10095 * data.c (store_symval_forwarding): Remove unused variables.
10097 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
10099 2004-11-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10101 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
10104 2004-11-09 Kim F. Storm <storm@cua.dk>
10106 * process.c (Fmake_network_process): Remove kludge for interrupted
10107 connects on BSD. If connect is interrupted, just close socket and
10108 start over rather than sleeping and retry with same socket.
10110 2004-11-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10112 * .cvsignore: Add buildobj.lst.
10114 * doc.c: New variable Vbuild_files.
10115 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
10116 file names from buildobj.lst. Only attach docstrings from files
10117 that are in Vbuild_files.
10118 (syms_of_doc): Defvar Vbuild_files.
10120 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
10122 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
10123 (mostlyclean): Rm buildobj.lst
10125 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
10128 2004-11-09 Kim F. Storm <storm@cua.dk>
10130 * fringe.c (update_window_fringes): Update fringe bitmaps if
10131 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
10132 also update previous row to get rid of misc. artifacts.
10134 2004-11-08 Kim F. Storm <storm@cua.dk>
10136 * xdisp.c (fast_find_position): Fix start pos if header line present.
10137 (note_mouse_highlight): Clear mouse face if we move out of text area.
10139 2004-11-08 Eli Zaretskii <eliz@gnu.org>
10141 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
10142 Don't include <sys/time.h> explicitly.
10143 Include <stdio.h> unconditionally, not just on MacOS.
10145 2004-11-08 Kenichi Handa <handa@m17n.org>
10147 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
10148 don't pay attention to '\' before '*'.
10149 (fontset_pattern_regexp): Change the meaning of the second arg.
10150 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
10151 (check_fontset_name): Try NAME as literal at first, and if it
10152 failes, try NAME as pattern.
10154 2004-11-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10156 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
10158 2004-11-07 Andreas Schwab <schwab@suse.de>
10160 * lisp.h (Fmsdos_downcase_filename): Declare.
10161 * dired.c (Fmsdos_downcase_filename): Don't declare here.
10162 * fileio.c: Likewise.
10164 2004-11-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10166 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
10167 comparisons with integers instead of Lisp_Object address.
10168 (Fmsdos_set_keyboard): Declare argument allkeys.
10170 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
10172 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
10173 int/Lisp_Object mixup.
10177 2004-11-06 Steven Tamm <steventamm@mac.com>
10179 * editfns.c: Need to include sys/time.h before resource.h on darwin.
10181 2004-11-06 Richard M. Stallman <rms@gnu.org>
10183 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
10185 * xfaces.c (merge_named_face): GCPRO the face_name in the
10186 named_merge_point struct that we make.
10187 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
10189 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
10190 before deciding whether to inactivate mark.
10192 2004-11-06 Lars Brinkhoff <lars@nocrew.org>
10194 * config.in: Regenerate (add HAVE_GETRUSAGE).
10195 * editfns.c (Fget_internal_run_time): New function.
10196 (syms_of_data): Defsubr it.
10197 * fns.c (sxhash): As far as possible, merge calculation of
10198 hash code for symbols and strings.
10200 2004-11-06 Eli Zaretskii <eliz@gnu.org>
10202 * frame.c (syms_of_frame): Fix the example in the doc string.
10204 2004-11-06 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10206 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
10208 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
10209 (create_and_show_dialog): Revert change from 2004-10-31.
10211 2004-11-05 Luc Teirlinck <teirllm@auburn.edu>
10213 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
10215 2004-11-05 Kim F. Storm <storm@cua.dk>
10217 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
10219 * fileio.c (Ffile_modes): Doc fix.
10220 (auto_save_1): Check for Ffile_modes nil value.
10222 2004-11-05 Kim F. Storm <storm@cua.dk>
10224 * xselect.c (struct selection_event_queue, selection_queue)
10225 (x_queue_selection_requests, x_queue_event)
10226 (x_start_queuing_selection_requests)
10227 (x_stop_queuing_selection_requests): Add new queue for selection
10228 input events to replace previous XEvent queue in xterm.c.
10229 (queue_selection_requests_unwind): Adapt to new queue.
10230 (x_reply_selection_request): Adapt to new queue.
10231 Unexpect wait_object in case of x errors (memory leak).
10232 (x_handle_selection_request, x_handle_selection_clear): Make static.
10233 (x_handle_selection_event): New function. May queue selection events.
10234 (wait_for_property_change_unwind): Use save_value instead of cons.
10235 Clear property_change_reply_object.
10236 (wait_for_property_change): Abort if already waiting.
10237 Use save_value instead of cons for unwind data.
10238 (x_handle_property_notify): Skip events already arrived, but don't
10239 free them, as "arrived" field is checked by wait_for_property_change,
10240 and it will be freed by unwind or explicit unexpect_property_change.
10241 (x_get_foreign_selection): Add to new queue.
10242 (receive_incremental_selection): Don't unexpect wait_object when done
10243 as it has already been freed by previous wait_for_property_change.
10245 * xterm.h (x_start_queuing_selection_requests)
10246 (x_stop_queuing_selection_requests, x_handle_selection_request)
10247 (x_handle_selection_clear): Remove prototypes.
10248 (x_handle_selection_event): Add prototype.
10250 * xterm.c (handle_one_xevent): Don't queue X selection events
10251 here, it may be too late if we start queuing after we have already
10252 stored some selection events into the kbd buffer.
10253 (struct selection_event_queue, queue, x_queue_selection_requests)
10254 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
10255 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
10256 (x_catch_errors_unwind): Block input around final XSync.
10258 * keyboard.h (kbd_buffer_unget_event): Add prototype.
10260 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
10261 (kbd_buffer_unget_event): New function.
10262 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
10263 and use x_handle_selection_event.
10264 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
10266 2004-11-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10268 * xselect.c (TRACE3): New debug macro.
10269 (x_reply_selection_request): Use it.
10270 (receive_incremental_selection): In call to TRACE0, the name of
10271 a symbol is in xname.
10273 2004-11-05 Kim F. Storm <storm@cua.dk>
10275 * fontset.c (fontset_pattern_regexp): Use unsigned char.
10277 2004-11-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10279 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
10281 * gtkutil.h (use_old_gtk_file_dialog): Declare.
10283 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
10284 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
10285 * xfns.c (syms_of_xfns): ... to here.
10287 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
10288 it doesn't start with /.
10290 2004-11-04 Kenichi Handa <handa@m17n.org>
10292 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
10293 treat it as a literal character.
10295 2004-11-03 Kim F. Storm <storm@cua.dk>
10297 * .gdbinit (ppt): New function.
10299 2004-11-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10301 * xterm.c (x_window_to_scroll_bar): Only call
10302 xg_get_scroll_id_for_window if toolkit scroll bars are used.
10304 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
10307 2004-11-02 Andreas Schwab <schwab@suse.de>
10309 * window.c (Fscroll_right): Fix last change.
10311 2004-11-02 Kim F. Storm <storm@cua.dk>
10313 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
10315 2004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10317 * callproc.c (Fcall_process): Block input around vfork.
10319 2004-11-02 Kim F. Storm <storm@cua.dk>
10321 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
10322 (syms_of_eval): Defsubr it.
10324 2004-11-02 Richard M. Stallman <rms@gnu.org>
10326 * insdel.c (replace_range_2): New function.
10328 * casefiddle.c (casify_region): Handle changes in byte-length
10329 using replace_range_2.
10331 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
10333 * xdisp.c (back_to_previous_visible_line_start):
10334 Subtract 1 from pos when checking previous newline for invisibility.
10336 * window.c (window_scroll_pixel_based): Update preserve_y
10337 for header line if any.
10338 (Fscroll_left, Fscroll_right): Don't call interactive_p;
10339 use a new second argument instead.
10341 * eval.c (Fcall_interactive_p): New function.
10342 (interactive_p): Don't test INTERACTIVE here.
10343 (Finteractive_p): Doc fix.
10345 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
10347 2004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
10349 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
10350 comparing font names.
10352 2004-11-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10354 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
10355 Fx_file_dialog if only directories should be read.
10357 * lisp.h: Fx_file_dialog takes 5 parameters.
10359 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
10360 Add parameter only_dir_p.
10361 In Motif version, don't put DEFAULT_FILENAME in filter part of the
10362 dialog, just text field part. Do not add DEFAULT_FILENAME
10363 to list of files if it isn't there.
10364 In GTK version, pass only_dir_p parameter to xg_get_file_name.
10366 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
10367 Check only_dir_p instead of comparing prompt to "Dired". When using
10368 a save dialog, add option kNavDontConfirmReplacement, change title
10369 to "Enter name", change text for save button to "Ok".
10371 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
10372 Check only_dir_p instead of comparing prompt to "Dired".
10374 * gtkutil.c (xg_get_file_with_chooser)
10375 (xg_get_file_with_selection): New functions, only defined ifdef
10376 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
10378 (xg_get_file_name): Add parameter only_dir_p.
10379 Call xg_get_file_with_chooser or xg_get_file_with_selection
10380 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
10381 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
10383 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
10385 * config.in: Rebuild (added HAVE_GTK_FILE_*).
10387 2004-11-01 Kim F. Storm <storm@cua.dk>
10389 * process.c (connect_wait_mask, num_pending_connects):
10390 Only declare and use them if NON_BLOCKING_CONNECT is defined.
10391 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
10392 (IF_NON_BLOCKING_CONNECT): New helper macro.
10393 (wait_reading_process_output): Only declare and use local vars
10394 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
10396 2004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
10398 * w32term.c (x_scroll_run): Delete region objects after use.
10400 2004-10-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10402 * xmenu.c: Add prototypes for forward function declarations.
10403 (popup_get_selection): Remove parameter do_timers, remove call to
10405 (create_and_show_popup_menu, create_and_show_dialog):
10406 Remove parameter do_timers from call to popup_get_selection.
10408 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
10409 tool_bar_items and assign the result to f->tool_bar_items if
10410 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
10411 tool_bar_items to assignment of result.
10413 * atimer.c (alarm_signal_handler): Do not call set_alarm if
10414 pending_atmers is non-zero.
10416 2004-10-31 Kim F. Storm <storm@cua.dk>
10418 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
10420 2004-10-28 Will <will@glozer.net>
10422 * macterm.c: Allow user to assign key modifiers to the Mac Option
10423 key via a 'mac-option-modifier' variable.
10425 2004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10427 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
10428 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
10429 (x_handle_selection_request, x_handle_selection_clear)
10430 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
10432 2004-10-28 Richard M. Stallman <rms@gnu.org>
10434 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
10436 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
10438 2004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
10440 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
10441 comment-starter over a 1-char one.
10443 2004-10-27 Richard M. Stallman <rms@gnu.org>
10445 * xdisp.c (get_next_display_element): In mode lines,
10446 treat newline and tab like other control characters.
10448 * editfns.c (Fmessage): Doc fix.
10450 * indent.c (vmotion): When moving up, check the newline before.
10451 Make prevline an int, not a Lisp_Object.
10453 2004-10-27 Kim F. Storm <storm@cua.dk>
10455 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
10456 Only allocate info and discarded tables once.
10458 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
10459 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
10460 (SAFE_FREE): Test it to determine if we need to unwind to free.
10461 Remove size arg. All users changed.
10462 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
10464 2004-10-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10466 * gtkutil.c: Put empty line between comment and function body.
10467 (xg_destroy_widgets): Rename from remove_from_container.
10468 Just destroy all widgets in list. Argument wcont removed.
10469 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
10470 instead of remove_from_container.
10471 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
10472 (free_frame_tool_bar): Add comment.
10474 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
10475 is not NULL before strcmp.
10477 2004-10-26 Kim F. Storm <storm@cua.dk>
10479 * callint.c (Fcall_interactively): Add 'U' code to get the
10480 up-event discarded by a previous 'k' or 'K' argument.
10482 2004-10-26 David Kastrup <dak@gnu.org>
10484 * buffer.c (syms_of_buffer): Fix a few typos.
10486 2004-10-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10488 * xsmfns.c: Put empty line between comment and function body.
10489 Use two spaces before comment end.
10491 2004-10-25 Kenichi Handa <handa@m17n.org>
10493 * fontset.c (fontset_pattern_regexp): Optimize for the case that
10494 PATTERN is full XLFD.
10496 2004-10-24 Kenichi Handa <handa@m17n.org>
10498 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
10500 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
10501 (regex_compile): Return REG_ERANGEX if appropriate.
10503 2004-10-22 Kenichi Handa <handa@m17n.org>
10505 * editfns.c (Ftranslate_region_internal): New function.
10506 (syms_of_editfns): Defsubr it.
10508 2004-10-22 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10510 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
10512 2004-10-21 K
\e,Aa
\e(Broly L
\e$,1 q
\e(Brentey <lorentey@elte.hu>
10514 * xterm.h (x_output): New member `xic_base_fontname'.
10515 (FRAME_XIC_BASE_FONTNAME): New macro.
10516 (xic_free_xfontset): Declare.
10518 * xfns.c (xic_create_xfontset): Share fontsets between frames
10519 based on base_fontname.
10520 (xic_free_xfontset): New function.
10521 (free_frame_xic): Use it.
10522 (xic_set_xfontset): Ditto.
10524 * xterm.c (xim_destroy_callback): Ditto.
10526 2004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
10528 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
10530 2004-10-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10532 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
10535 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
10536 New variables and constant.
10537 (main): Calculate heap_bss_diff. If we are dumping and the
10538 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
10539 and exec ourself again.
10540 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
10543 * lastfile.c: Make my_endbss and my_endbss_static available on all
10546 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
10547 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
10549 2004-10-19 Luc Teirlinck <teirllm@auburn.edu>
10551 * data.c (Flocal_variable_if_set_p): Doc fix.
10553 2004-10-19 Jason Rumney <jasonr@gnu.org>
10555 * w32.c (init_environment): Set emacs_dir correctly when running
10556 emacs from the build directory.
10558 2004-10-19 Richard M. Stallman <rms@gnu.org>
10560 * editfns.c (Fdelete_and_extract_region):
10561 If region is empty, return null string.
10563 2004-10-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10565 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
10567 (xg_frame_cleared): Remove.
10569 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
10570 (xg_find_top_left_in_fixed): Remove.
10571 (xg_create_scroll_bar): Put an event box widget between
10572 the scroll bar widget and the edit widget.
10573 (xg_show_scroll_bar): Show the parent widget (the event box).
10574 (xg_remove_scroll_bar): Destroy parent (the event box) also.
10575 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
10576 Move the parent (the event box) widget inside the fixed widget.
10577 Move window clear to xterm.c.
10579 * gtkutil.h (xg_frame_cleared): Remove.
10581 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
10582 (x_scroll_bar_create, XTset_vertical_scroll_bar):
10583 Remove arguments left and width to xg_update_scrollbar_pos.
10584 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
10586 2004-10-19 Kenichi Handa <handa@m17n.org>
10588 * xdisp.c (display_mode_element): Fix display of wide chars.
10590 2004-10-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10592 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
10593 gdk_window_clear and move gdk_window_process_all_updates after
10594 clear so events are sent to the X server in correct order.
10596 2004-10-18 Kenichi Handa <handa@m17n.org>
10598 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
10599 comparing font names.
10600 (fs_query_fontset): Use fast_string_match for comparing fontset names.
10601 (list_fontsets): Likewise.
10603 * search.c (fast_string_match_ignore_case): New function.
10605 * lisp.h (fast_string_match_ignore_case): Extern it.
10607 2004-10-17 Kim F. Storm <storm@cua.dk>
10609 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
10610 than bitmap if there is not left fringe.
10611 (get_overlay_arrow_glyph_row): Also used on windows system.
10612 (display_line): Display overlay string if no left fringe.
10614 2004-10-16 Jason Rumney <jasonr@gnu.org>
10616 * w32fns.c (w32_font_match): Encode font name being matched.
10618 2004-10-16 Richard M. Stallman <rms@gnu.org>
10620 * window.c (Fspecial_display_p): Doc fix.
10622 2004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
10624 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
10625 Don't ignore menus, because where-is-internal already does it for us.
10627 2004-10-15 Kim F. Storm <storm@cua.dk>
10629 * xdisp.c (redisplay_window): Only update fringes and vertical
10630 border on window frames.
10632 2004-10-14 Andreas Schwab <schwab@suse.de>
10634 * m/ia64.h (DATA_SEG_BITS): Don't define.
10636 2004-10-14 Kim F. Storm <storm@cua.dk>
10638 * xterm.h: Include Xutil.h after keysym.h to work around bug
10639 in some X versions.
10641 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
10643 * fns.c (map_char_table): Add missing gcpros.
10645 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
10647 * keymap.c (get_keymap): An autoload form is not a keymap.
10649 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
10651 2004-10-13 Kim F. Storm <storm@cua.dk>
10653 * callproc.c (Fcall_process): Simplify handling of display arg.
10654 Resume `display_on_the_fly' once a coding system is determined.
10656 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
10658 2004-10-12 Kim F. Storm <storm@cua.dk>
10660 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
10661 caller, such as call-process, is not going to poll for input.
10662 (calc_line_height_property): Handle case where it->object is nil.
10664 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
10666 2004-10-12 Kenichi Handa <handa@m17n.org>
10668 * xdisp.c (get_next_display_element):
10669 If unibyte_display_via_language_environment is zero, display 8-bit
10670 chars in octal in unibyte buffer.
10672 2004-10-12 Kim F. Storm <storm@cua.dk>
10674 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
10675 are no ordinary bindings.
10677 2004-10-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10679 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
10681 2004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10683 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
10684 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
10685 (make_mac_frame): Add BLOCK_INPUT around the making of a
10687 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
10688 * macgui.h (mktime): Use emacs_mktime.
10689 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
10690 Make a cancel file-open dialog be like C-g.
10691 * mac.c (mktime): Use emacs_mktime.
10692 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
10693 (Fmac_paste_function): Add better error handling for carbon cut/paste.
10695 2004-10-10 Kim F. Storm <storm@cua.dk>
10697 * keyboard.c (timer_resume_idle): New function to resume idle
10698 timer without resetting timers on the idle list.
10699 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
10700 (timer_start_idle, timer_stop_idle): Declare static.
10701 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
10703 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
10705 2004-10-08 Steven Tamm <steventamm@mac.com>
10707 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
10708 * macterm.c (mac_check_for_quit_char): Remove warning for using
10709 NULL where 0 should be used.
10710 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
10712 * mac.c: Include time.h for Tiger compatibility.
10714 2004-10-07 Kim F. Storm <storm@cua.dk>
10716 * xdisp.c (redisplay_window): Fix flicker on vertical line between
10717 windows. Update vertical line after drawing window fringes, but
10718 only if actually drawing any bitmaps--or there is no fringe.
10720 * xterm.c (x_update_window_end): Likewise.
10721 * macterm.c (x_update_window_end): Likewise.
10722 * w32term.c (x_update_window_end): Likewise.
10724 * fringe.c (draw_window_fringes): Return value now indicates if
10725 any fringe bitmaps were redrawn (or there are no fringes).
10727 * dispextern.h (draw_window_fringes): Update prototype.
10729 2004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10731 * macfns.c (mac_get_window_bounds): Add extern.
10732 (x_real_positions): Use mac_get_window_bounds.
10734 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
10737 * macterm.c [!MAC_OSX]: Include Windows.h.
10738 (front_emacs_window): Rename from mac_front_window. All uses
10739 changed. Return the frontmost non-tooltip emacs window.
10740 (mac_get_window_bounds): New function.
10741 (x_calc_absolute_position): Use the difference of width and height
10742 between the inner and outer window.
10743 (x_set_offset): Specify window position by the coordinae of the
10744 outer window. Adjust the position if the title bar is completely
10745 outside the screen.
10746 (app_is_suspended, app_sleep_time): Remove unused variables.
10747 (do_app_resume, do_app_suspend): Remove their contents because
10748 window-activate/deactivate events will do the job.
10749 (do_zoom_window): Remove unused variables. Make compliant to the
10750 standard way of zooming. Set f->left_pos and f->top_pos.
10751 (XTread_socket): Don't use argument `expected'. Don't use
10752 FrontWindow to determine the clicked window. Exclude unprocessed
10753 mouseUp cases in the early stage. Add parentheses to fix operator
10755 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
10757 2004-10-05 Jan Dj
\e,Ad
\e(Brv. <jan.h.d@swipnet.se>
10759 * config.in: Regenerate.
10761 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
10764 2004-10-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10766 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
10767 a row if Alt or Meta has been found for that row. Also stop scanning
10768 for Keysyms for that row.
10770 2004-10-04 Kim F. Storm <storm@cua.dk>
10772 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
10773 to list. Include overlay arrow bitmap in return value.
10775 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
10776 bars with fractional column width. If scroll bar separates two
10777 windows, move it towards the window it belongs to. Only update
10778 the padding area below the scroll bar widget when necessary,
10779 i.e. when scroll bar widget is created, moved, or resized.
10781 * xdisp.c (define_frame_cursor1): Do not change frame cursor
10782 while tracking/dragging mouse.
10783 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
10785 * window.c (coordinates_in_window): Relax check for cursor
10786 on vertial border between mode lines.
10787 (Fset_window_fringes): Do not allow negative widths.
10788 (Fset_window_scroll_bars): Likewise.
10790 * .gdbinit (pp): Shorthand for p ARG + pr.
10791 (ff): New command: flush frame updates (X only).
10793 2004-10-03 Michael Albinus <michael.albinus@gmx.de>
10795 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
10797 2004-09-30 Kenichi Handa <handa@m17n.org>
10799 * process.c (send_process): Free composition data.
10801 * fileio.c (Finsert_file_contents): Free composition data.
10803 * coding.c (code_convert_region): Don't skip ASCIIs if there are
10804 compositions to encode.
10805 (encode_coding_string): Likewise. Free composition data.
10807 2004-09-30 Florian Weimer <fw@deneb.enyo.de>
10809 * coding.c (code_convert_region): Free composition data.
10811 2004-09-29 Kim F. Storm <storm@cua.dk>
10813 * fringe.c: Remove limit on number of bitmaps.
10814 (fringe_bitmaps, fringe_faces): Change to pointers.
10815 (max_fringe_bitmaps): New var.
10816 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
10817 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
10819 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
10820 (struct glyph_row): Reorder fringe_bitmap related fields.
10821 (struct it): Likewise.
10823 * w32term.c (fringe_bmp): Change to pointer.
10824 (max_fringe_bmp): New var.
10825 (w32_define_fringe_bitmap): Expand fringe_bmp.
10826 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
10827 (w32_destroy_fringe_bitmap): Likewise.
10829 2004-09-29 Kim F. Storm <storm@cua.dk>
10831 * fringe.c: Simplify last change.
10832 (lookup_fringe_bitmap): New function.
10833 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
10834 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
10835 Keep standard bitmaps in Vfringe_bitmaps.
10836 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
10837 (Fset_fringe_bitmap_face): Likewise.
10839 * dispextern.h (lookup_fringe_bitmap): Add prototype.
10840 (valid_fringe_bitmap_p): Remove prototype.
10842 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
10844 2004-09-29 Kim F. Storm <storm@cua.dk>
10846 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
10847 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
10849 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
10851 * fringe.c (Vfringe_bitmaps): New variable.
10852 (syms_of_fringe): DEFVAR_LISP it.
10853 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
10854 Change arg to Lisp_Object and fail if not an integer.
10855 (get_fringe_bitmap_name, resolve_fringe_bitmap)
10856 (destroy_fringe_bitmap): New functions.
10857 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
10858 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
10859 clear its fringe property.
10860 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
10861 Fdestroy_fringe_bitmap.
10862 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
10863 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
10864 and set fringe property. Signal error if no free slots.
10865 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
10866 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
10868 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
10869 symbols with a fringe property.
10871 2004-09-27 Kim F. Storm <storm@cua.dk>
10873 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
10874 Doc fix. Format may now be a symbol or alist, not a cons.
10876 * fringe.c (update_window_fringes): Handle new formats of
10877 indicate-buffer-boundaries (symbol or alist). No longer
10878 allow a simple cons.
10879 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
10881 2004-09-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10883 * config.in: Rebuild.
10885 2004-09-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10887 * config.in: Rebuild.
10889 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
10891 2004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
10893 * xterm.c (x_term_init): Work around a bug in some X servers.
10895 2004-09-18 Richard M. Stallman <rms@gnu.org>
10897 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
10899 * xdisp.c (try_window_reusing_current_matrix):
10900 Handle the case where we reach the old displayed text,
10901 out of sync with the old line boundary.
10903 2004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
10905 * fileio.c (Finsert_file_contents): Fix case of replacement in a
10908 2004-09-14 Kim F. Storm <storm@cua.dk>
10910 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
10912 * xfaces.c (Qface_no_inherit): New var.
10913 (syms_of_xfaces): Intern and staticpro it.
10914 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
10915 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
10916 Don't increment face_change_count when face has non-nil
10917 face-no-inherit property.
10919 2004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
10921 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
10922 (Fbyte_code): Remove dead code after `wrong_type_argument'.
10924 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
10925 before doing the mark_stack_check_gcpros since they're not on the stack.
10927 2004-09-12 Kim F. Storm <storm@cua.dk>
10929 * editfns.c (Fformat): Handle format strings with multiple text
10930 properties. Reverse text property list from the format string,
10931 so the positions are in increasing order.
10933 2004-09-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10935 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
10936 x_uncatch_errors so that possible protocol errors are delivered.
10938 2004-09-10 Eli Zaretskii <eliz@gnu.org>
10940 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
10942 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
10943 charset.h, and coding.h
10944 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
10945 (term.o): Depend on window.h and keymap.h.
10946 (abbrev.o): Depend on syntax.h.
10947 (callint.o): Depend on keymap.h.
10948 (casefiddle.o): Depend on charset.h and keymap.h.
10949 (category.o): Depend on keymap.h.
10950 (coding.o): Depend on dispextern.h.
10951 (cmds.o): Depend on keyboard.h and keymap.h.
10952 (dispnew.o): Depend on indent.h and intervals.h.
10953 (doc.o): Depend on keymap.h.
10954 (editfns.o): Depend on frame.h.
10955 (emacs.o): Depend on dispextern.h.
10956 (fileio.o): Don't depend on ccl.h.
10957 (filelock.o): Depend on charset.h and coding.h.
10958 (frame.o): Depend on w32term.h and macterm.h.
10959 (insdel.o): Depend on region-cache.h.
10960 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
10961 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
10962 (search.o): Depend on $(INTERVALS_SRC).
10963 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
10964 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
10965 xterm.h, w32term.h, and macterm.h.
10966 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
10967 w32term.h, and macterm.h.
10968 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
10969 region-cache.h, xterm.h, w32term.h, and macterm.h.
10970 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
10971 (data.o): Depend on frame.h.
10972 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
10973 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
10974 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
10975 (intervals.o): Depend on keymap.h.
10977 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
10978 Add debugging print-out to termscript.
10980 2004-09-09 Richard M. Stallman <rms@gnu.org>
10982 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
10984 2004-09-08 Richard M. Stallman <rms@gnu.org>
10986 * window.c (Fset_window_buffer): Doc fix.
10988 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
10990 2004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
10992 * minibuf.c (history_delete_duplicates): New variable.
10993 (read_minibuf): Use it.
10994 (syms_of_minibuf): Create the corresponding lisp variable.
10996 2004-09-08 Kim F. Storm <storm@cua.dk>
10998 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
10999 overlay just before point.
11001 2004-09-07 Luc Teirlinck <teirllm@auburn.edu>
11003 * buffer.h (struct buffer): Add auto_save_file_format field.
11004 * buffer.c (reset_buffer, init_buffer_once):
11005 Handle auto_save_file_format field.
11006 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
11007 `buffer-auto-save-file-format'.
11008 * fileio.c: Delete declaration for removed Vauto_save_file_format.
11009 (build_annotations): Adapt to replacement of
11010 `auto-save-file-format' with the new buffer-local variable
11011 `buffer-auto-save-file-format'.
11012 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
11014 2004-09-07 Jason Rumney <jasonr@gnu.org>
11016 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
11018 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
11019 Handle Unicode menu titles.
11021 2004-09-07 Kim F. Storm <storm@cua.dk>
11023 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
11024 property from text property or overlay strings at point.
11026 2004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11028 * xmenu.c (update_submenu_strings): YAILOM.
11029 (set_frame_menubar): Make sure last_i is initialized.
11031 2004-09-03 Jason Rumney <jasonr@gnu.org>
11033 * w32menu.c (_widget_value): Add lname and lkey.
11034 (digest_single_submenu): Set lname and lkey in widget_value
11035 instead of name and key.
11036 (update_submenu_strings): New function.
11037 (set_frame_menubar): Remove call to inhibit_garbage_collection,
11038 call update_submenu_strings.
11040 * w32menu.c (globals_of_w32menu): Check for Unicode API.
11041 (digest_single_submenu, w32_menu_show): Encode menu strings as
11042 UTF-8 if Unicode API is available.
11043 (utf8to16): New function.
11044 (add_menu_item): Use it when calling Unicode API.
11046 2004-09-03 Kim F. Storm <storm@cua.dk>
11048 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
11049 in overlay or text-property strings; set cursor on corresponding
11050 glyph rather than at end of the string.
11052 2004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11054 * macfns.c (x_real_positions): Save the current window port and
11055 set a new one before obtaining the global coordinate.
11056 Use FRAME_MAC_WINDOW.
11057 (x_set_name, x_set_title): Encode title to UTF8.
11058 Use SetWindowTitleWithCFString.
11059 (Fx_server_version): Get correct OS version.
11061 * macmenu.c (add_menu_item): Remove unused variable `i'.
11062 Don't let separator items destroy refence constants of other menu items.
11064 * macterm.c (x_update_end): Move SetPortWindowPort to inside
11066 (x_set_offset): Use FRAME_MAC_WINDOW.
11068 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
11069 nontext_cursor if it is on a scroll bar.
11071 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
11073 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
11076 2004-09-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11078 * xfns.c (x_set_name_internal): New function. Check if we shall call
11079 xfree before ENCODE_UTF_8.
11080 (x_set_name, x_set_title): Call x_set_name_internal.
11082 2004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
11084 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
11087 2004-08-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11089 * macmenu.c (_widget_value): Add lname and lkey.
11090 (single_submenu): Set lname and lkey in widget_value
11091 instead of name and key.
11092 (update_submenu_strings): New function.
11093 (set_frame_menubar): Remove call to inhibit_garbage_collection,
11094 call update_submenu_strings.
11096 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
11097 instead of name and key.
11098 (update_submenu_strings): New function.
11099 (set_frame_menubar): Remove call to inhibit_garbage_collection,
11100 call update_submenu_strings.
11102 * gtkutil.h (_widget_value): Added lname and lkey.
11104 2004-08-30 Steven Tamm <steventamm@mac.com>
11106 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
11107 by using different names for inner loop variables.
11109 2004-08-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11111 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
11112 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
11114 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
11115 tool bar items is 0.
11117 2004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11119 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
11120 strings in menu items.
11121 (single_submenu): Use ENCODE_MENU_STRING
11122 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
11123 button release isn't passed to event loop
11124 (add_menu_item): Use SetMenuItemWithCFString
11126 2004-08-26 Steven Tamm <steventamm@mac.com>
11128 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
11129 tool-bar/menu click.
11130 * macfns.c (Fx_file_dialog): Implement using NavServices.
11132 2004-08-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11134 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
11136 * xfns.c (x_window_to_frame, x_any_window_to_frame)
11137 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
11138 (x_top_window_to_frame): Return 0 if wdesc is None.
11140 2004-08-22 Richard M. Stallman <rms@gnu.org>
11142 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
11143 HAVE_TERMIOS]: If there's no char for this signal, drop through
11144 and use system calls.
11146 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
11148 2004-08-20 Kim F. Storm <storm@cua.dk>
11150 * process.c (wait_reading_process_output): Rename from
11151 wait_reading_process_input. All uses changed.
11152 (wait_reading_process_output_1): Rename from
11153 wait_reading_process_input_1. All uses changed.
11155 * dispnew.c (Fsleep_for): Remove obsolete code.
11157 2004-08-20 Kenichi Handa <handa@m17n.org>
11159 * syntax.c (skip_chars): Fix for unibyte case.
11161 2004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
11163 * syntax.c (char_quoted): Mixup byte/char pos.
11164 (back_comment): Fixup globals in all cases.
11166 2004-08-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11168 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
11169 passing it to gtk_window_set_title.
11171 2004-08-19 Kim F. Storm <storm@cua.dk>
11173 * process.c (wait_reading_process_input): Clean up.
11174 Add wait_for_cell, wait_proc, and just_wait_proc args
11175 to avoid overloading `read_kbd' and `do_display' args.
11176 Change read_kbd arg to int. All callers changed.
11178 * process.c (process_send_signal): Use CDISABLE.
11180 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
11182 2004-08-18 Kim F. Storm <storm@cua.dk>
11184 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
11185 forward to wait_reading_process_input via DO_DISPLAY arg.
11186 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
11187 object, only process output from that process; also inhibit
11188 running timers if DO_DISPLAY==-2.
11190 2004-08-17 Kim F. Storm <storm@cua.dk>
11192 * process.c (process_send_signal): Fix last change--use
11193 _POSIX_VDISABLE instead of CVDISABLE when available.
11195 2004-08-16 Richard M. Stallman <rms@gnu.org>
11197 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
11198 Set VQUIT and VINTR chars to the standard ones if they are unset.
11199 [AIX]: Don't do that here. And don't force VINTR to standard
11200 when SIGNALS_VIA_CHARACTERS.
11202 * process.c (process_send_signal)
11203 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
11204 Do nothing if the character is CVDISABLE.
11206 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
11208 * intervals.c (move_if_not_intangible):
11209 Force POSITION to be between BEGV and ZV.
11211 2004-08-14 John Paul Wallington <jpw@gnu.org>
11213 * buffer.c (Frestore_buffer_modified_p): Doc fix.
11215 * fileio.c (Fread_file_name): Doc fix.
11217 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
11219 2004-08-09 Luc Teirlinck <teirllm@auburn.edu>
11221 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
11223 2004-08-08 Luc Teirlinck <teirllm@auburn.edu>
11225 * keyboard.c: Declare Qdisabled_command_function instead of
11226 Qdisabled_command_hook.
11227 (Fcommand_execute): Use Qdisabled_command_function instead of
11228 Qdisabled_command_hook.
11229 (syms_of_keyboard): Ditto.
11231 2004-08-07 Luc Teirlinck <teirllm@auburn.edu>
11233 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
11234 (syms_of_keymap) <key-translation-map>: Doc fixes.
11236 2004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
11238 * window.c (window_list_1): YAILOM.
11240 * fileio.c (make_temp_name): Handle multibyte prefixes.
11242 2004-08-06 Luc Teirlinck <teirllm@auburn.edu>
11244 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
11247 2004-08-03 Kenichi Handa <handa@m17n.org>
11249 * coding.c (decode_coding_string): Adjust coding->consumed, and
11250 etc. with shrinked_bytes.
11252 2004-08-03 Kim F. Storm <storm@cua.dk>
11254 * indent.c (compute_motion): Fix check for full width window
11255 in non-window case. Do not count left truncation glyph on
11258 2004-08-02 Luc Teirlinck <teirllm@auburn.edu>
11260 * data.c (Finteractive_form): Doc fix.
11262 2004-08-02 Kim F. Storm <storm@cua.dk>
11264 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
11265 properly accounting for continuation glyph on non-window systems.
11266 (Fcompute_motion): Use actual window width if WIDTH is nil, and
11267 actual window width/height if TOPOS is nil, properly accounting for
11268 continuation glyphs on non-window systems, and optional header lines.
11269 (vmotion): Let compute_motion calculate actual window width.
11271 * window.c (window_scroll_line_based): Let compute_motion
11272 calculate actual window width.
11274 2004-08-02 Kim F. Storm <storm@cua.dk>
11276 * process.c (read_process_output): Use whole read buffer.
11277 Don't trigger adaptive read buffering on errors.
11279 2004-07-31 Luc Teirlinck <teirllm@auburn.edu>
11281 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
11283 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
11285 * callint.c (Fcall_interactively): Doc fix.
11287 2004-07-30 Richard M. Stallman <rms@gnu.org>
11289 * abbrev.c (Fexpand_abbrev): Undo previous change.
11291 2004-07-30 Kim F. Storm <storm@cua.dk>
11293 * editfns.c (Fformat): Allocate extra (dummy) element in info.
11295 2004-07-28 Luc Teirlinck <teirllm@auburn.edu>
11297 * eval.c (Fdefvar, Fdefconst): Doc fixes.
11299 2004-07-27 Kim F. Storm <storm@cua.dk>
11301 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
11302 we have ensured that the glyph fits on the current line (or returned
11303 MOVE_LINE_CONTINUED otherwise).
11305 2004-07-26 Kim F. Storm <storm@cua.dk>
11307 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
11308 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
11309 if target position is at end of display line but char is not a newline.
11311 2004-07-25 Richard M. Stallman <rms@gnu.org>
11313 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
11314 instead of ON_VERTICAL_BORDER, when on scroll bar.
11315 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
11317 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
11319 * window.c (Fcoordinates_in_window_p):
11320 Take account of FRAME_INTERNAL_BORDER_WIDTH.
11322 * alloc.c (check_cons_list): New function (contents commented out).
11324 2004-07-24 Luc Teirlinck <teirllm@auburn.edu>
11326 * xfaces.c (Fcolor_supported_p): Doc fix.
11328 * frame.c (Fselect_frame, Fset_frame_selected_window)
11329 (Fframe_visible_p, Fraise_frame): Doc fixes.
11331 2004-07-24 Richard M. Stallman <rms@gnu.org>
11333 * keyboard.h (not_single_kboard_state): Declare.
11335 * fileio.c (Fwrite_region): Doc fix.
11337 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
11339 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
11340 only when a real abbrev is present.
11342 * xfns.c (x_icon_verify): New function.
11343 (Fx_create_frame): Use it.
11345 2004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
11347 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
11349 2004-07-21 Kim F. Storm <storm@cua.dk>
11351 * window.h (struct glyph_matrix): New members nrows_scale_factor
11352 and ncols_scale_factor.
11354 * window.c (make_window): Initialize nrows_scale_factor and
11355 ncols_scale_factor members.
11357 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
11358 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
11359 (required_matrix_height): Apply nrows_scale_factor.
11360 (required_matrix_width): Apply ncols_scale_factor.
11362 * xdisp.c (display_line): Increment nrows_scale_factor and set
11363 fonts_changed_p if past last allocated row.
11364 (append_glyph, append_composite_glyph, produce_image_glyph)
11365 (append_stretch_glyph): Increment ncols_scale_factor and set
11366 fonts_changed_p if current area is full.
11368 2004-07-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11370 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
11372 2004-07-19 Luc Teirlinck <teirllm@auburn.edu>
11374 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
11375 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
11376 (Fset_window_start, Fscroll_up, Fscroll_down)
11377 (Fother_window_for_scrolling, Fscroll_other_window)
11378 (Fsave_window_excursion, Fset_window_vscroll)
11379 (syms_of_window) <window-size-fixed>: Doc fixes.
11381 2004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
11383 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
11384 ENCODE_SYSTEM for filenames.
11386 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11388 * mac.c (sys_select): Block input around call to
11389 ReceiveNextEvent to prevent breakage. Correctly handle
11390 blocking on event queue only by calling ReceiveNextEvent
11391 instead of select (since GUI events aren't on an fd).
11392 (sys_read): Remove function
11393 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
11395 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11397 * mac.c (sys_select): Redo sys_select to use alarm-based
11398 polling instead of 1 sec timeouts (like solaris).
11400 * macterm.c (x_make_frame_visible): Comment in polling on
11403 * keyboard.c: Undef SIGIO on Carbon
11405 * atimer.c (alarm_signal_handler): Call alarm handlers after
11408 * eval.c (Feval): Remove quit_char test
11410 * process.c (wait_reading_process_input): Remove clearing
11411 stdin for select call on process input.
11413 2004-07-18 Luc Teirlinck <teirllm@auburn.edu>
11415 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
11416 capitalization error in docstring.
11418 2004-07-17 Juanma Barranquero <lektu@terra.es>
11420 * keyboard.c (not_single_kboard_state): Do nothing unless
11421 MULTI_KBOARD is defined.
11423 2004-07-17 Richard M. Stallman <rms@gnu.org>
11425 * window.c (coordinates_in_window): Inside the window but outside
11426 its box to the L or R, return ON_VERTICAL_BORDER.
11427 (window_list_1): Rotate the list to start with WINDOW.
11429 * print.c (print_preprocess): Test for print_depth at limit
11430 before entering in being_printed.
11432 * keyboard.c (not_single_kboard_state): New function.
11433 (stuff_buffered_input): Now no-op only if no SIGTSTP.
11435 * frame.c (Fdelete_frame): If we're in single_bboard_state on
11436 this kboard, and we delete its last frame, go to any_kboard_state.
11438 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
11440 2004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
11442 * w32fns.c (Fx_file_dialog): Encode strings in system coding
11443 system before passing them to OS functions for display.
11445 2004-07-15 David Kastrup <dak@gnu.org>
11447 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
11448 Apparently fixes an abort condition.
11450 2004-07-14 Luc Teirlinck <teirllm@auburn.edu>
11452 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
11455 2004-07-14 K
\e,Aa
\e(Broly L
\e$,1 q
\e(Brentey <lorentey@elte.hu>
11457 * keyboard.c (echo_dash): Do nothing if there already is a dash
11458 at the end of the echo string.
11460 2004-07-12 Kim F. Storm <storm@cua.dk>
11462 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
11465 2004-07-10 Luc Teirlinck <teirllm@auburn.edu>
11467 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
11469 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
11470 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
11471 (Freplace_buffer_in_windows, Fset_window_buffer)
11472 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
11473 (syms_of_window): Expand docstring of `display-buffer-function'.
11475 2004-07-09 Luc Teirlinck <teirllm@auburn.edu>
11477 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
11478 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
11479 that time values of the type (HIGH . LOW) are considered obsolete.
11481 2004-07-06 Luc Teirlinck <teirllm@auburn.edu>
11483 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
11486 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
11488 2004-07-06 John Paul Wallington <jpw@gnu.org>
11490 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
11492 * fns.c (Fclear_string): Signal an error if STRING is not a string.
11494 2004-07-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11496 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
11497 instead of CGMainDisplayID (only in OSX 10.2 and later).
11499 2004-07-04 John Paul Wallington <jpw@gnu.org>
11501 * fileio.c (read_file_name_completion_ignore_case): New variable.
11502 (syms_of_fileio): Declare and initialise it.
11503 (Fread_file_name): Bind `completion-ignore-case' to respect it.
11505 2004-07-03 Eli Zaretskii <eliz@gnu.org>
11507 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
11508 for event.x and event.y.
11510 2004-07-01 Kenichi Handa <handa@m17n.org>
11512 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
11513 after getting a new string by pre-write-conversion.
11515 2004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
11517 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
11518 (x_calc_absolute_position): Remove unused var `child'.
11520 * xfaces.c (x_supports_face_attributes_p)
11521 (Fdisplay_supports_face_attributes_p): YAILOM.
11522 (tty_supports_face_attributes_p): Remove unused var `i'.
11524 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
11527 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
11529 * fontset.c (Fset_fontset_font): Remove unused vars `family' and
11532 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
11534 2004-06-30 Andreas Schwab <schwab@suse.de>
11536 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
11537 (Finit_image_library): Pass LIBRARIES through to
11538 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
11539 (lookup_image_type): Pass Qnil as second argument to
11540 Finit_image_library.
11542 * lisp.h (Finit_image_library): Declare.
11544 2004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11546 * macterm.c (do_window_activate, do_window_deactivate): Remove.
11547 (XTread_socket): Send mouse button events to the toolbox
11548 dispatcher even when the mouse is grabbed. Don't process window
11549 activate events for non-Emacs windows. Replace function calls to
11550 do_window_activate and do_window_deactivate with their contents.
11551 Reset mouse grabbing status when a window is deactivated.
11553 2004-06-29 Steven Tamm <steventamm@mac.com>
11555 * macterm.c (mac_get_emulated_btn)
11556 (mac_event_to_emacs_modifiers): Fix emulated mouse button
11557 support to correctly mask out modifiers.
11559 2004-06-29 David Kastrup <dak@gnu.org>
11561 * search.c (Fset_match_data): Allow buffer before end of list
11562 which can happen if set-match-data is using a pre-consed list.
11564 2004-06-28 Steven Tamm <steventamm@mac.com>
11566 * macterm.c (XTread_socket): Correctly set the frame position
11567 after the window is moved.
11569 2004-06-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11571 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
11572 gpix and gmask just before return to avoid memory leak.
11573 (xg_get_image_for_pixmap): Add workaround for monochrome displays
11574 so insensitive and activated icons look ok.
11576 2004-06-27 Jason Rumney <jasonr@gnu.org>
11578 * w32fns.c (file_dialog_callback): Disable edit control if set
11579 to directories only on CDN_INITDONE message.
11580 (Fx_file_dialog): Default to directories only when prompt starts
11583 2004-06-25 Kim F. Storm <storm@cua.dk>
11585 * alloc.c (allocate_misc): Update total_free_markers.
11586 (free_misc): New function.
11587 (safe_alloca_unwind, free_marker): Use it.
11589 * lisp.h (free_misc): Add prototype.
11591 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
11593 2004-06-24 Richard M. Stallman <rms@gnu.org>
11595 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
11596 (syms_of_emacs): Lisp variables deleted.
11598 2004-06-23 David Kastrup <dak@gnu.org>
11600 * search.c (Freplace_match): Adjust the match-data more thoroughly
11601 when replacing strings in the buffer.
11602 (Fmatch_data): When INTEGERS is non-nil and the last match was in
11603 a buffer, add the buffer as last element to the match data.
11604 (Fset_match_data): If an additional element of the match-data is a
11605 buffer, restore it to last_thing_searched.
11606 (save_search_regs): Save last_thing_searched as part of the match data.
11607 (restore_match_data): Restore it again.
11609 2004-06-23 Luc Teirlinck <teirllm@auburn.edu>
11611 * keymap.c (Ftext_char_description): Doc fix.
11612 * doc.c (Fsnarf_documentation): Doc fix.
11614 2004-06-22 Kim F. Storm <storm@cua.dk>
11616 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
11618 * lisp.h (struct Lisp_Save_Value): New member dogc.
11619 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
11620 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
11621 (SAFE_FREE_LISP): New macro.
11623 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
11624 (make_save_value): Init new dogc member.
11625 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
11627 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
11628 SAFE_FREE_LISP macros.
11630 2004-06-22 Kim F. Storm <storm@cua.dk>
11632 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
11633 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
11634 in that memory area are unknown to GC. Add comments.
11636 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
11638 2004-06-21 Kim F. Storm <storm@cua.dk>
11640 * lisp.h (MAX_ALLOCA): Define here.
11641 (safe_alloca_unwind): Add prototype.
11642 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
11644 * alloc.c (safe_alloca_unwind): New function.
11646 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
11648 * charset.c (Fstring): Use SAFE_ALLOCA.
11650 * coding.c (MAX_ALLOCA): Remove define.
11652 * data.c (MAX_ALLOCA): Remove define.
11653 (Faset): Use SAFE_ALLOCA.
11655 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
11657 * fns.c (string_make_multibyte, string_to_multibyte)
11658 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
11659 (MAX_ALLOCA): Remove define.
11660 (Fbase64_encode_region, Fbase64_encode_string)
11661 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
11662 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
11663 memory leak if encoding fails.
11665 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
11667 2004-06-21 Eli Zaretskii <eliz@gnu.org>
11669 * print.c (Fwith_output_to_temp_buffer): Doc fix.
11671 2004-06-20 Richard M. Stallman <rms@gnu.org>
11673 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
11675 * search.c (match_limit): Cleaner err msg when no match data available.
11677 * window.c (syms_of_window): Doc fix.
11679 * keyboard.c (command_loop_1): Handle values `only' and `identity'
11680 for Vtransient_mark_mode.
11682 * buffer.c (syms_of_buffer): Doc fix.
11684 2004-06-21 David Kastrup <dak@gnu.org>
11686 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
11687 and unbinding of `case-fold-search' according to
11688 `completion-ignore-case' around calls of string-match and
11689 predicates, respectively. Should give satisfactory performance
11690 in all relevant cases.
11692 2004-06-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11694 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
11697 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
11699 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
11701 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
11704 2004-06-16 Luc Teirlinck <teirllm@auburn.edu>
11706 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
11708 2004-06-16 Kim F. Storm <storm@cua.dk>
11710 * dispextern.h (Vimage_types): Remove extern.
11712 2004-06-16 Miles Bader <miles@gnu.org>
11714 * image.c (lookup_image_type): Initialize image type if necessary.
11716 2004-06-15 Kim F. Storm <storm@cua.dk>
11718 * xdisp.c (try_cursor_movement): Exclude header line from scroll
11719 margin at top of window.
11720 (try_window_reusing_current_matrix): Calculate proper cursor position
11721 after scrolling up with non-zero scroll margin, as the old cursor
11722 position corresponds to value of PT before executing this command.
11723 (try_window_id): Consider scroll margin at bottom of window too;
11724 otherwise we fail to scroll when hl-line-mode is enabled.
11726 * syntax.c (skip_chars): Only recognize [:class:] when it has the
11727 proper format and class is a lower-case word.
11729 2004-06-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11731 * gtkutil.c (xg_get_image_for_pixmap): New function.
11732 (xg_get_gdk_pixmap_and_mask): Remove.
11733 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
11734 xg_get_gdk_pixmap_and_mask.
11736 * xterm.h (struct x_display_info): Typo in comment fixed.
11738 2004-06-14 Juanma Barranquero <lektu@terra.es>
11740 * dispextern.h (Vimage_types): Make it conditional on
11741 HAVE_WINDOW_SYSTEM.
11743 * image.c (Vimage_types): Move from xdisp.c.
11744 (Vimage_type_cache): New variable.
11745 (define_image_type): New argument indicating whether an image
11746 library was loaded; cache loaded status and return t on success,
11748 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
11749 (w32_delayed_load): New function to load an image library from a
11750 list of possible filenames.
11751 (init_xpm_functions, init_png_functions, init_jpeg_functions)
11752 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
11753 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
11754 (Finit_image_library): New function, extracted from `init_image'.
11755 Try to initialize an image library on demand and cache whether we
11756 were successful or not.
11757 (syms_of_image): Initialize `Vimage_types' and
11758 `Vimage_type_cache'. Add recognized image types to Vimage_types.
11759 Export `init-image-library'.
11760 (init_image): Remove initialization of all image types, except xbm
11763 * xdisp.c (Vimage_types): Delete (moved to image.c).
11765 2004-06-14 Andreas Schwab <schwab@suse.de>
11767 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
11768 Avoid calling specbind when completion-regexp-list is empty.
11770 2004-06-13 Richard M. Stallman <rms@gnu.org>
11772 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
11773 (re_wctype, re_iswctype, re_wctype_to_bit):
11774 Non-function definitions moved here from regex.c.
11776 * regex.c (re_wctype, re_iswctype): Function defs longer static.
11777 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
11778 (re_wctype, re_iswctype, re_wctype_to_bit):
11779 Non-function definitions moved to regex.h.
11781 * window.c (Fselect_window): Doc fix.
11783 * syntax.c: Include regex.h.
11784 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
11785 If requested, make a list of classes, then check the scanned
11786 chars for membership in them.
11787 (in_classes): New function.
11790 * keyboard.c (cmd_error): Don't call any_kboard_state
11791 if inside a recursive edit level.
11793 2004-06-13 K
\e,Aa
\e(Broly L
\e$,1 q
\e(Brentey <lorentey@elte.hu>
11795 * keyboard.c (command_loop): Call any_kboard_state before
11796 command_loop_2 when at top level.
11798 2004-06-13 Andreas Schwab <schwab@suse.de>
11800 * print.c (print_object): Always use %ld for printing EMACS_INT.
11802 * keyboard.c (cancel_hourglass_unwind): Return a value.
11803 (modify_event_symbol): Always use %ld for printing EMACS_INT.
11804 (Fexecute_extended_command): Likewise.
11806 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
11808 (SYNTAX): Likewise.
11809 (SYNTAX_WITH_FLAGS): Likewise.
11810 (SYNTAX_MATCH): Likewise.
11812 * syntax.c (char_quoted): Avoid warning about undefined operation.
11813 (find_defun_start): Likewise.
11814 (scan_lists): Likewise.
11815 (INC_FROM): Likewise.
11816 (scan_sexps_forward): Likewise.
11818 * image.c: Include <ctype.h>.
11820 * xfaces.c (face_attr_equal_p): Declare parameters.
11822 2004-06-13 Kenichi Handa <handa@m17n.org>
11824 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
11826 2004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
11828 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
11830 2004-06-12 Kenichi Handa <handa@m17n.org>
11832 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
11833 ccl_prog_stack_struct and update it.
11834 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
11835 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
11836 ccl->eof_ic on EOF.
11837 (ccl_debug_hook): New function.
11838 (struct ccl_prog_stack): New member eof_ic.
11839 (ccl_driver): Handle EOF in subrountine call correctly.
11841 2004-06-11 Kenichi Handa <handa@m17n.org>
11843 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
11845 2004-06-11 Kim F. Storm <storm@cua.dk>
11847 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
11849 2004-06-11 Juanma Barranquero <lektu@terra.es>
11851 * keyboard.c (Fposn_at_point): Doc fix.
11853 2004-06-11 David Kastrup <dak@gnu.org>
11855 * search.c (match_limit): Don't flag an error if match-data
11856 exceeding the allocated search_regs.num_regs gets requested, just
11859 2004-06-08 Miles Bader <miles@gnu.org>
11861 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
11863 2004-06-07 Juanma Barranquero <lektu@terra.es>
11865 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
11866 (Fcurrent_time_string, Fcurrent_time_zone)
11867 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
11869 2004-06-07 Miles Bader <miles@gnu.org>
11871 * xfaces.c (struct named_merge_point): New type.
11872 (push_named_merge_point): New function.
11873 (merge_named_face): New function.
11874 (merge_face_ref, face_at_buffer_position, face_at_string_position):
11875 Use `merge_named_face'.
11876 (merge_face_inheritance): Function removed.
11877 (merge_face_ref): Rename from `merge_face_vector_with_property'.
11878 Add new `err_msgs' and `named_merge_points' args. Return error
11879 status. Only print error messages if ERR_MSGS is true. Don't try to
11880 do :inherit attribute validation.
11881 (merge_face_heights): Handle `unspecified' in both directions.
11882 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
11883 Call `merge_face_ref' instead of `merge_face_inheritance'.
11884 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
11885 (compute_char_face, face_at_buffer_position)
11886 (face_at_string_position): Call `merge_face_ref' instead of
11887 `merge_face_vector_with_property'.
11889 2004-06-07 Kenichi Handa <handa@m17n.org>
11891 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
11892 the necessary places.
11894 2004-06-07 Kim F. Storm <storm@cua.dk>
11896 * process.c (Fdelete_process): Undo 2004-05-28 change.
11897 Instead, call status_notify also for network process.
11898 (status_message): Use process instead of status as arg.
11899 Give messages "deleted" or "connection broken by remote peer" for
11900 an exited network process.
11901 (status_notify): Change call to status_message.
11902 (read_process_output): Increase readmax to 4096. Do not increase
11903 buffer size for datagram channels (default is now large enough).
11905 2004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
11907 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
11908 problem due to newly defined variable.
11910 2004-06-06 Miles Bader <miles@gnu.org>
11912 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
11913 immediately if non-interactive or not initialized.
11915 2004-06-05 Richard M. Stallman <rms@gnu.org>
11917 * minibuf.c (Fcompleting_read): Doc fix.
11919 2004-06-05 Andreas Schwab <schwab@suse.de>
11921 * macfns.c (x_create_tip_frame): Fix declaration after statement.
11923 2004-06-05 Juanma Barranquero <lektu@terra.es>
11925 * keymap.c (Fdescribe_vector): Fix docstring.
11926 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
11928 2004-06-05 Miles Bader <miles@gnu.org>
11930 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
11931 attributes have different values than the default face.
11933 2004-06-04 Eli Zaretskii <eliz@gnu.org>
11935 * xfaces.c (x_supports_face_attributes_p): Make this function
11936 conditional on HAVE_WINDOW_SYSTEM.
11937 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
11938 Don't call x_supports_face_attributes_p if it was not compiled in.
11940 2004-06-04 Miles Bader <miles@gnu.org>
11942 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
11943 from Ftty_supports_face_attributes_p.
11944 (x_supports_face_attributes_p): New function.
11945 (Ftty_supports_face_attributes_p): Function deleted.
11946 (Fdisplay_supports_face_attributes_p): New function.
11947 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
11948 (face_attr_equal_p): New function.
11949 (lface_equal_p): Use it.
11951 2004-06-03 Juanma Barranquero <lektu@terra.es>
11953 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
11954 (Vw32_color_map): Fix typo in docstring.
11955 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
11956 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
11957 Make argument names match their use in docstring.
11959 2004-06-02 Juanma Barranquero <lektu@terra.es>
11961 Work around bugs/problems with MinGW builds of graphics libraries
11962 called from MSVC builds of Emacs.
11964 * image.c (lookup_image): Make pointer to img static.
11965 (png_read_from_memory): Disable "global" optimization.
11967 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
11969 * eval.c (Fcondition_case): Fix usage. Simplify.
11971 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
11973 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11975 * macfns.c: Don't include ccl.h.
11976 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
11977 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
11979 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
11980 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
11981 display height/width.
11982 (compute_tip_xy, Vx_max_tooltip_size): Declare.
11983 (unwind_create_tip_frame, compute_tip_xy): New functions.
11984 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
11985 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
11986 and last_show_tip_args.
11988 * macgui.h [!MAC_OSX]: Include Gestalt.h.
11989 (Cursor, No_Cursor): New defines.
11990 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
11991 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
11993 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
11995 * macterm.c: Don't include Gestalt.h.
11996 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
11997 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
11998 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
11999 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
12000 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
12001 (construct_mouse_click, XTmouse_position)
12002 (x_scroll_bar_report_motion, x_calc_absolute_position)
12003 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
12004 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
12005 (note_mouse_movement): Clear the mouse face and reset the pointer
12006 shape when the pointer goes outside the frame without grabbing.
12007 (mac_front_window): New function.
12008 (mac_window_to_frame): New macro.
12009 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
12010 (do_window_activate, do_window_deactivate, do_app_resume)
12011 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
12012 (do_zoom_window, mac_do_receive_drag, XTread_socket)
12013 (mac_check_for_quit_char): Use mac_front_window and/or
12014 mac_window_to_frame.
12015 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
12016 scroll-bar click event.
12017 (mac_define_frame_cursor): Change the pointer shape.
12018 (x_free_frame_resources): Reset tip_window to NULL when it is
12020 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
12021 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
12022 (do_window_update): Don't do anything if the updated window is the
12024 (do_mouse_moved): Handle mouse movement events here (previously in
12025 XTread_socket). Clear the mouse face if
12026 dpyinfo->mouse_face_hidden is set.
12027 (do_os_event, do_events): Remove (now in XTread_socket).
12028 (XTread_socket): Immediately return if interrupt_input_blocked.
12029 Loop until all the events in the queue are processed.
12030 Rearrange codes for mouse grabbing. Add tooltip support. Include the
12031 contents of do_os_event and do_events. Remove mouse movement
12032 handling (now in do_mouse_moved). Add the case where
12033 Vmouse_highlight has an integer value.
12034 (NewMacWindow): Remove.
12035 (make_mac_frame): Do what NewMacWindow previously did. Don't do
12036 excess initializations.
12037 (make_mac_terminal_frame): Previous initializations in
12038 make_mac_frame are moved here.
12039 (mac_initialize_display_info):
12040 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
12042 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
12043 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
12045 2004-05-29 Richard M. Stallman <rms@gnu.org>
12047 * lisp.h (truncate_undo_list): Update decl.
12049 * alloc.c (undo_outer_limit): New variable.
12050 (syms_of_alloc): Defvar it.
12051 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
12053 * undo.c (truncate_undo_list): New arg LIMITSIZE.
12055 * alloc.c (lisp_align_malloc): Check for base == 0
12056 regardless of HAVE_POSIX_MEMALIGN.
12057 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
12059 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
12061 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
12062 (marker_blocks_pending_free): Remove.
12063 (Fgarbage_collect): Sweep after cleaning up undo-lists.
12064 Mark the undo lists after claning them up.
12065 Don't free block in marker_blocks_pending_free.
12066 (mark_buffer): Don't mark undo_list.
12067 (gc_sweep): Sweep hash-tables and strings first.
12068 Do free marker blocks that are empty.
12070 2004-05-28 Jim Blandy <jimb@redhat.com>
12072 * regex.c (print_partial_compiled_pattern): Add missing 'break'
12073 after 'case wordend'. For symbeg and symend, print to stderr,
12074 like the other cases.
12076 2004-05-28 Noah Friedman <friedman@splode.com>
12078 * process.c (Fdelete_process): Do not call remove_process.
12080 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
12082 * alloc.c (struct backtrace): Remove.
12083 (Fgarbage_collect): Use the new mark_backtrace.
12085 * eval.c (mark_backtrace): New function.
12087 * minibuf.c (run_exit_minibuf_hook): New function.
12088 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
12089 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
12091 2004-05-27 Kim F. Storm <storm@cua.dk>
12093 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
12094 over display properties, e.g. images, that replace buffer text.
12096 2004-05-25 Kim F. Storm <storm@cua.dk>
12098 * alloc.c (marker_blocks_pending_free): New var.
12099 (gc_sweep): Store free marker blocks on that list.
12100 (Fgarbage_collect): Free them after undo-list cleanup.
12102 * process.c (wait_reading_process_input): Check connect_wait_mask
12103 before actually accepting connection in case it has already been
12104 accepted due to recursion.
12106 2004-05-23 K
\e,Aa
\e(Broly L
\e$,1 q
\e(Brentey <lorentey@elte.hu>
12108 * coding.c (Fset_safe_terminal_coding_system_internal):
12109 Set suppress_error in safe_terminal_coding, not terminal_coding.
12111 2004-05-22 Richard M. Stallman <rms@gnu.org>
12113 * alloc.c (Fmake_string): Doc fix.
12115 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
12116 and the alist pairs too.
12118 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
12120 * emacs.c (main): Update copyright year.
12122 * fileio.c (Fread_file_name): Expand DIR if not absolute.
12124 * insdel.c (del_range_2, replace_range): Don't write an anchor
12125 if the gap is empty.
12127 * xdisp.c (try_scrolling): If scroll-up-aggressively or
12128 scroll-down-aggressively is small but positive, put point
12129 near the screen edge.
12131 2004-05-22 Juanma Barranquero <lektu@terra.es>
12133 * keymap.c (Fdefine_key): Doc fix.
12135 2004-05-22 Kim F. Storm <storm@cua.dk>
12137 * alloc.c (struct backtrace): Add debug_on_exit member.
12138 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
12139 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
12140 the removed cons cells.
12141 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
12142 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
12143 any cons cells pointing to unallocated stings.
12144 Do not lisp_free any marker blocks, as there may still be pointers
12145 to them from buffer undo lists at this stage of GC.
12147 * keyboard.c (struct backtrace): Add debug_on_exit member.
12148 (Fcommand_execute): Clear it.
12150 2004-05-20 Luc Teirlinck <teirllm@auburn.edu>
12152 * intervals.c (lookup_char_property): Do not prematurely return nil.
12154 2004-05-19 Jim Blandy <jimb@redhat.com>
12156 Add support for new '\_<' and '\_>' regexp operators, matching the
12157 beginning and end of symbols.
12159 * regex.c (enum syntaxcode): Add Ssymbol.
12160 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
12161 (re_opcode_t): New opcodes `symbeg' and `symend'.
12162 (print_partial_compiled_pattern): Print the new opcodes properly.
12163 (regex_compile): Parse the new operators.
12164 (analyse_first): Skip sym(beg|end) (they match only the empty string).
12165 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
12166 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
12167 (re_match_2_internal): Match symbeg and symend.
12169 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
12171 2004-05-19 Kim F. Storm <storm@cua.dk>
12173 * .gdbinit (xsymbol): Fix last change.
12175 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
12177 * .gdbinit (xprintstr): New fun.
12178 (xstring, xprintsym): Use it.
12180 * w32proc.c (create_child): Use INTMASK.
12182 * alloc.c (Fgarbage_collect): Do all the marking before flushing
12183 unmarked elements of the undo list.
12185 2004-05-18 David Ponce <david@dponce.com>
12187 * print.c (print): Reset print_depth before to call print_object.
12189 2004-05-18 Jason Rumney <jasonr@gnu.org>
12191 * w32console.c: Prefix RIF functions with w32con_ to avoid
12192 namespace clash with functions in term.c and w32term.c.
12194 * w32menu.c (add_menu_item, w32_menu_display_help)
12195 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
12197 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
12199 2004-05-18 Eli Zaretskii <eliz@gnu.org>
12201 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
12203 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
12205 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
12208 2004-05-18 Kim F. Storm <storm@cua.dk>
12210 * blockinput.h (INPUT_BLOCKED_P): New macros.
12212 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
12213 (Ftop_level): Unblock input if blocked.
12215 * buffer.h (GET_OVERLAYS_AT): New macro.
12216 * msdos.c (IT_note_mouse_highlight): Use it.
12217 * textprop.c (get_char_property_and_overlay): Use it.
12218 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
12219 * xfaces.c (face_at_buffer_position): Use it.
12221 * print.c (print_object): Increase buf size.
12223 2004-05-17 Jason Rumney <jasonr@gnu.org>
12225 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
12226 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
12227 Lisp_Object using i member.
12228 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
12229 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
12232 * w32proc.c (create_child): Use make_number instead of masking pid.
12234 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
12235 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
12236 Use EQ to compare Lisp_Objects.
12237 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
12239 * w32term.c (w32_num_mouse_buttons): Rename from
12240 Vw32_num_mouse_buttons and make it an int.
12242 * w32.c (init_environment): Use it.
12244 * w32fns.c (w32_wnd_proc): Likewise.
12246 * w32proc.c (w32_pipe_read_delay): Rename from
12247 Vw32_pipe_read_delay and make it an int.
12249 * w32.c (_sys_read_ahead): Use it.
12251 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
12253 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
12255 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
12256 (key_event): Don't mix Lisp_Object and int.
12258 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
12260 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
12261 modifiers in language change event.
12263 2004-05-17 Kim F. Storm <storm@cua.dk>
12265 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
12266 Such objects may be freed markers which still exist on an undo list.
12268 2004-05-16 Juanma Barranquero <lektu@terra.es>
12270 * data.c (Fset_default): Make argument names match their use in
12273 2004-05-15 Andreas Schwab <schwab@suse.de>
12275 * emacs.c (gdb_array_mark_flag): Define.
12276 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
12278 2004-05-15 Eli Zaretskii <eliz@gnu.org>
12280 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
12281 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
12282 defined for the MS-DOS build.
12284 2004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
12286 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
12288 2004-05-14 Kenichi Handa <handa@m17n.org>
12290 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
12292 2004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12294 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
12295 section to frame.c section.
12296 (Fxw_display_color_p, Fx_file_dialog): Declare if
12297 HAVE_WINDOW_SYSTEM defined.
12299 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
12301 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
12303 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
12304 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
12305 (XTread_socket): Fix int/Lisp_Object mixup.
12306 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
12308 * macterm.h (struct frame, struct face, struct image)
12309 (display_x_get_resource, Fx_display_color_p)
12310 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
12313 2004-05-14 Kim F. Storm <storm@cua.dk>
12315 * process.c (wait_reading_process_input): Make reentrant.
12316 Make Available and Connecting non-static. Save and restore value
12317 of waiting_for_user_input_p.
12319 2004-05-13 Kim F. Storm <storm@cua.dk>
12321 * keyboard.c (mark_kboards): Don't mark x and y members
12322 that are overloaded in selection request events.
12324 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
12326 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
12328 2004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
12330 * window.c (Fdisplay_buffer, Fsplit_window)
12331 (split-height-threshold): Doc fix.
12333 2004-05-13 Juanma Barranquero <lektu@terra.es>
12335 * xfaces.c (Ftty_supports_face_attributes_p)
12336 (Finternal_copy_lisp_face): Fix typo in docstring.
12337 (Finternal_get_lisp_face_attribute): Fix docstring.
12339 2004-05-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12341 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
12343 2004-05-11 Steven Tamm <steventamm@mac.com>
12345 * macfns.c (Fx_create_frame): Default to using tool-bar by
12346 setting tool-bar-lines to 1 in default-frame-alist.
12348 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12350 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
12351 (xpm_get_color_table_v, xpm_make_color_table_h)
12352 (xpm_put_color_table_h, xpm_get_color_table_h)
12353 (xpm_str_to_color_key, xpm_load_image, xpm_load)
12354 (syms_of_image): Support XPM on Carbon Emacs. Does not
12355 depend on libXpm, but only supports XPM version 3 without extensions.
12357 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12359 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
12360 instead of FRAME_X_P
12362 2004-05-11 Kim F. Storm <storm@cua.dk>
12364 * process.c (read_process_output): Grow decoding_buf when needed;
12365 this could cause a crash in allocate_string and compact_small_strings.
12367 2004-04-29 Jim Blandy <jimb@redhat.com>
12369 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
12370 against proper opcode.
12372 2004-05-10 Juanma Barranquero <lektu@terra.es>
12374 * process.c (Fstart_process): Fix docstring.
12376 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
12377 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
12378 (Fsplit_char, Fchar_charset): Make argument names match their use
12381 2004-05-10 Richard M. Stallman <rms@gnu.org>
12383 * print.c (print_preprocess): Use being_printed, loop_count and
12384 halftail to detect overdeep nesting and cyclic cdr chains.
12386 2004-05-10 Andreas Schwab <schwab@suse.de>
12388 * lisp.h (Fmake_symbolic_link): Declare.
12390 * fileio.c (Frename_file): Remove extra argument in call to
12391 Fmake_symbolic_link.
12393 2004-05-10 Kim F. Storm <storm@cua.dk>
12395 * xdisp.c (calc_line_height_property): Use string position when
12396 object is a string.
12398 2004-05-10 Kenichi Handa <handa@m17n.org>
12400 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
12401 inhibit-modification-hooks to t temporarily before calling
12404 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
12405 inhibit-modification-hooks to t temporarily before calling
12408 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
12409 inhibit-modification-hooks to t temporarily before calling
12412 * fns.c (count_combining): Delete it.
12413 (concat): Don't check combining bytes.
12415 2004-05-09 Jason Rumney <jasonr@gnu.org>
12417 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
12418 (globals_of_w32fns): Set it.
12420 2004-05-09 Piet van Oostrum <piet@cs.uu.nl>
12422 * data.c (Fquo): Simplify.
12424 2004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
12426 * data.c (Fquo): If any argument is float, do the computation in
12429 2004-05-08 Juanma Barranquero <lektu@terra.es>
12431 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
12432 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
12433 Fix spelling of Emacs on docstring.
12434 (Fset_process_coding_system, Fprocess_coding_system)
12435 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
12436 Make argument names match their use in docstring.
12437 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
12440 * editfns.c (Finsert_buffer_substring): Make argument names match their
12443 * syntax.c (Fmodify_syntax_entry): Fix docstring.
12445 2004-05-07 Steven Tamm <steventamm@mac.com>
12447 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
12448 around call to ReceiveEvent to avoid certain crashes.
12450 2004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12452 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
12453 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
12454 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
12455 Save/restore the current graphics port and device handle when
12456 drawing into an offscreen graphics world.
12458 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
12459 (gif_load): Likewise.
12461 2004-05-07 Juanma Barranquero <lektu@terra.es>
12463 * window.c (Fset_window_buffer): Fix docstring.
12465 2004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
12467 * emacs.c (main) [VMS]: Fix var ref.
12469 2004-05-06 Romain Francoise <romain@orebokech.com>
12471 * data.c (Fsetq_default): Fix docstring.
12473 2004-05-06 Jason Rumney <jasonr@gnu.org>
12475 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
12476 to avoid name clash.
12478 2004-05-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12480 * fileio.c (barf_or_query_if_file_exists): Use lstat.
12481 (Frename_file): Handle renaming of symlinks across file systems.
12482 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
12484 2004-05-04 Kim F. Storm <storm@cua.dk>
12486 * xdisp.c (Qtotal): New var.
12487 (syms_of_xdisp): Intern and staticpro it.
12488 (calc_line_height_property): New arg total. Set it if
12489 line-spacing property has format (total . VALUE).
12490 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
12491 Handle total line-spacing property.
12493 2004-05-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12495 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
12496 "under" scroll bar when size/position changes.
12498 2004-05-03 Jason Rumney <jasonr@gnu.org>
12500 * makefile.nt: Remove.
12502 2004-05-02 Eli Zaretskii <eliz@gnu.org>
12504 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
12505 Avoid compiler warnings.
12507 * Makefile.in (region-cache.o): Depend on config.h.
12509 2004-05-02 Romain Francoise <romain@orebokech.com>
12511 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
12512 with continuation lines, too.
12514 2004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
12516 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
12518 2004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
12520 * xdisp.c (calc_line_height_property): YAILOM (yet another
12521 int/Lisp_Object mixup).
12523 2004-05-01 Eli Zaretskii <eliz@gnu.org>
12525 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
12526 undo bad effect of pack(4) in some versions of system headers.
12528 2004-05-01 Jason Rumney <jasonr@gnu.org>
12530 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
12532 2004-04-30 Kim F. Storm <storm@cua.dk>
12534 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
12535 (syms_of_buffer) <cursor-type>: Doc fix.
12537 * dispextern.h (struct it): Remove member use_default_face.
12538 Add members override_ascent, override_descent, override_boff.
12540 * xdisp.c (init_iterator): Handle line-spacing float value.
12541 Initialize override_ascent member.
12542 (append_space_for_newline): Reset override_ascent.
12543 Remove use_default_face.
12544 (calc_line_height_property): New function to calculate value of
12545 line-height and line-spacing properties. Look at overlays, too.
12546 Set override_ascent, override_descent, override_boff members when
12547 using another face than the current face. Float values are now
12548 relative to the frame default font, by default; accept a cons
12549 of ratio and face name to specify value relative to a specific face.
12550 (x_produce_glyphs): Use calc_line_height_property.
12551 Use override_ascent etc. when set to handle different face heights.
12552 A negative line-spacing property value is interpreted as a total
12553 line height, rather than inter-line spacing.
12554 (note_mouse_highlight): Allocate room for 40 overlays initially.
12556 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
12558 * data.c (Fsubr_name): New fun.
12559 (syms_of_data): Defsubr it.
12561 2004-04-29 Kim F. Storm <storm@cua.dk>
12563 * xdisp.c (null_glyph_slice): New var.
12564 (append_glyph, append_composite_glyph, append_stretch_glyph):
12565 Use it to initialize glyph slice.
12567 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
12569 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
12570 (on_hot_spot_p): Make sure we always return a value.
12571 (Flookup_image_map): Remove unused var ix and iy.
12572 (note_mode_line_or_margin_highlight): Remove unused var `image'.
12574 2004-04-27 Eli Zaretskii <eliz@gnu.org>
12576 * msdos.c (init_environment): If one of the TMP... environment
12577 variables is set to a drive letter without a trailing slash,
12580 2004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
12582 * editfns.c (lisp_time_argument): Provide externally.
12584 * fileio.c (Fset_file_times): New function.
12585 (syms_of_fileio): Intern and staticpro it.
12587 2004-04-27 Kim F. Storm <storm@cua.dk>
12589 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
12590 header line strings.
12592 * dispextern.h (struct it): New member use_default_face.
12594 * xdisp.c (Qline_height): New variable.
12595 (syms_of_xdisp): Intern and staticpro it.
12596 (append_space_for_newline): Partially undo 2004-04-25 change;
12597 add default_face_p arg, and restore callers.
12598 Clear it->use_default_face after use.
12599 (x_produce_glyphs): Set default font for ascii char if
12600 it->use_default_font is set. Change line-spacing property to set
12601 just extra line spacing. Handle new line-height property.
12603 2004-04-26 Andreas Schwab <schwab@suse.de>
12605 * print.c (print_object): Print non-ascii characters in bool
12606 vector representation as octal escapes.
12608 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
12609 * print.c (print_object): Use it instead of BITS_PER_CHAR for
12611 * lread.c (read1): Likewise.
12612 * alloc.c (Fmake_bool_vector): Likewise.
12613 * data.c (Faref, Faset): Likewise.
12614 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
12615 (mapcar1): Likewise.
12617 2004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
12619 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
12621 2004-04-26 Miles Bader <miles@gnu.org>
12623 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
12625 2004-04-26 Juanma Barranquero <lektu@terra.es>
12627 * buffer.c (Fpop_to_buffer): Fix docstring.
12629 2004-04-26 Steven Tamm <steventamm@mac.com>
12631 * lread.c (init_lread): Don't display missing lisp directory
12632 warnings with Carbon Emacs because self-contained bundled Emacs
12633 may be built without correct installation path.
12635 2004-04-25 Kim F. Storm <storm@cua.dk>
12637 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
12639 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
12641 * xdisp.c (append_space_for_newline): Rename from append_space.
12642 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
12643 (x_produce_glyphs): Handle line-spacing property on newline char.
12644 If value is t, adjust ascent and descent to fit current row height.
12645 If value is an integer or float, set extra_line_spacing to integer
12646 value, or to float value x current line height.
12648 2004-04-23 Kenichi Handa <handa@m17n.org>
12650 * fontset.c (Finternal_char_font): If POSITION is nil, return
12651 font for displaying CH with the default face.
12653 2004-04-23 Juanma Barranquero <lektu@terra.es>
12655 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
12657 2004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
12659 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
12660 Don't make assumptions about the relative place of i and val.
12661 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
12663 2004-04-21 Kim F. Storm <storm@cua.dk>
12665 * dispextern.h (struct glyph_slice): New struct.
12666 (struct glyph): New member slice.
12667 (GLYPH_SLICE_EQUAL_P): New macro.
12668 (GLYPH_EQUAL_P): Use it.
12669 (struct glyph_string): New member slice.
12670 (struct it_slice): New struct.
12671 (struct it): New member slice, add member to stack too.
12672 New member constrain_row_ascent_descent_p.
12673 (image_ascent): Add prototype.
12675 * dispnew.c (buffer_posn_from_coords): Return full image width
12676 and height even for image slices (posn is relative to full image).
12677 (marginal_area_string): Adjust x0,y0 for image slice.
12679 * image.c (image_ascent): Add slice arg; calculate ascent for
12680 image slice (or full image).
12682 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
12683 (syms_of_keyboard): Defsubr them.
12685 * lisp.h (pos_visible_p): Fix prototype.
12687 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
12688 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
12689 (x_draw_image_foreground, x_draw_image_relief)
12690 (x_draw_image_foreground_1, x_draw_image_glyph_string):
12691 Draw sliced images.
12693 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
12694 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
12695 (x_draw_image_foreground, x_draw_image_relief)
12696 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
12697 Draw sliced images.
12699 * w32term.h (image_ascent): Remove prototype.
12701 * window.c (Fpos_visible_in_window_p): Return pixel position if
12702 PARTIALLY arg is non-nil. Simplify. Doc fix.
12703 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
12704 to return/set vscroll in pixels.
12706 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
12708 * xdisp.c (Qslice): New variable.
12709 (syms_of_xdisp): Intern and staticpro it.
12710 (pos_visible_p): Return pixel position in new x and y args.
12711 (init_iterator): Reset it->slice info.
12712 (handle_display_prop): Parse (slice ...) property.
12713 (push_it, pop_it): Save/restore slice info.
12714 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
12715 force repositioning of tall row if window is vscrolled, as that
12716 would reset vscroll.
12717 (append_space): Set it->constrain_row_ascent_descent_p to avoid
12718 increasing row height if row is non-empty.
12719 (fill_image_glyph_string): Copy slice info.
12720 (take_vertical_position_into_account): Simplify.
12721 (produce_image_glyph): Handle iterator slice info, setup glyph
12722 slice info. Do not force minimum line height.
12723 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
12724 do not increase height (ascent/descent) of non-empty row when
12725 adding normal character glyph; instead reduce glyph ascent/descent
12726 appropriately; if row is higher than current glyph, adjust glyph
12727 descent/ascent to reposition glyph within the existing row.
12728 Likewise, when char is newline, only set ascent/descent if row is
12730 (note_mouse_highlight): Handle hotspots with sliced image.
12732 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
12733 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
12734 (x_draw_image_foreground, x_draw_image_relief)
12735 (x_draw_image_foreground_1, x_draw_image_glyph_string):
12736 Draw sliced images.
12738 * xterm.h (image_ascent): Remove prototype.
12740 2004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
12742 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
12744 2004-04-20 John Paul Wallington <jpw@gnu.org>
12746 * fns.c (Fassoc, Feql): Fix indentation.
12748 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
12750 2004-04-19 John Paul Wallington <jpw@gnu.org>
12752 * fns.c (Feql): New function.
12753 (syms_of_fns): Defsubr it.
12755 2004-04-18 Jason Rumney <jasonr@gnu.org>
12757 * w32select.c (Fw32_set_clipboard_data): Get sequence number
12758 after closing the clipboard.
12760 2004-04-16 Luc Teirlinck <teirllm@auburn.edu>
12762 * buffer.c (Fbuffer_base_buffer): Doc fix.
12764 2004-04-17 Kim F. Storm <storm@cua.dk>
12766 * keymap.c (Fkey_description): Add optional PREFIX arg.
12767 Combine prefix with KEYS to make up the full key sequence to describe.
12768 Correlate meta_prefix_char and following (simple) key to describe
12769 as meta modifier. All callers changed.
12770 (describe_map): Rename arg `keys' to `prefix'. Remove local
12771 `elt_prefix' var. Use Fkey_description with prefix instead of
12772 elt_prefix combined with Fsingle_key_description.
12773 (describe_vector): Declare static. Replace arg `elt_prefix' with
12774 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
12775 if !KEYMAP_P. Use Fkey_description with prefix instead of
12776 Fsingle_key_description.
12778 * keymap.h (Fkey_description): Fix prototype.
12779 (describe_vector): Remove prototype.
12781 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
12783 * image.c (PNG_BG_COLOR_SHIFT): Remove.
12784 (png_load): Fix calculation of transparent background color on X
12787 2004-04-16 Juanma Barranquero <lektu@terra.es>
12789 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
12790 not too large before computing how much to scroll.
12792 2004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
12794 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
12796 2004-04-14 Luc Teirlinck <teirllm@auburn.edu>
12798 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
12799 Add hyperlink to Elisp manual to the docstring.
12801 2004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
12803 * callint.c (fix_command): Use XDCR.
12805 2004-04-14 Nick Roberts <nick@nick.uklinux.net>
12807 * window.c (Fget_lru_window): Doc fix.
12809 2004-04-14 Kim F. Storm <storm@cua.dk>
12811 * editfns.c (Fformat): Fix allocation size of precision array.
12813 * dispnew.c (update_window): Only set changed_p if
12814 scrolling_window actually did scroll.
12815 (scrolling_window): Only return 1 if we actually did scroll.
12817 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
12818 height to glyph height when cursor row is not fully visible.
12819 (make_cursor_line_fully_visible): Add FORCE_P arg to return
12820 failure in case row is higher than window. Callers changed.
12821 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
12822 Try to scroll partially visible, higher-than-window cursor row.
12823 (redisplay_window): Always try to scroll partially visible,
12824 higher-than-window cursor row - both initially and again with
12825 centering_position = 0.
12826 Clear desired matrix before retrying with centering_position = 0.
12828 2004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
12830 * syntax.c (scan_lists): Simplify backward string scan.
12831 Fix off-by-one boundary check for string and comment fences.
12833 2004-04-13 Joe Buehler <jbuehler@hekimian.com>
12835 * sheap.c, unexcw.c: New files.
12837 2004-04-12 Luc Teirlinck <teirllm@auburn.edu>
12839 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
12840 base buffer has been killed. Correct the error message if the
12841 base buffer does not exist.
12843 2004-04-12 Joe Buehler <jbuehler@hekimian.com>
12845 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
12846 Cygwin itself. Add support for Xaw3d scrollbars.
12848 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
12850 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
12852 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
12853 before Cygwin unexec.
12855 * Makefile.in: Link changes for Cygwin unexec() support.
12857 2004-04-12 Andreas Schwab <schwab@suse.de>
12859 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
12861 2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
12863 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
12864 IGNORE argument equals NAME. Doc fix.
12866 2004-04-11 Masatake YAMATO <jet@gyve.org>
12868 * buffer.c (fix_start_end_in_overlays): Make overlays
12869 empty if they are backwards.
12871 2004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12873 * xfaces.c (face_color_supported_p): Fix compilation without X11.
12875 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
12877 * doc.c (Fsnarf_documentation): Ignore new file name entries.
12879 2004-04-06 Kim F. Storm <storm@cua.dk>
12881 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
12882 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
12884 * w32term.c (w32_read_socket): Set mouse_face_hidden after
12885 clearing highlight.
12887 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
12889 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
12890 clearing highlight.
12892 * indent.c (vmotion): Do not reserve one column for continuation
12893 marks on window frames.
12895 2004-04-04 Eli Zaretskii <eliz@gnu.org>
12897 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
12900 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12902 * .gdbinit-union: Remove.
12904 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
12905 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
12906 ($nonvalbits): Remove.
12907 ($valmask): Set it by calling xreload to avoid redundancy.
12909 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
12910 (gdb_emacs_intbits): Remove.
12912 2004-03-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12914 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
12916 2004-03-30 Kenichi Handa <handa@m17n.org>
12918 * editfns.c (Fformat): Fix initialization of the array info.
12920 2004-03-30 Kim F. Storm <storm@cua.dk>
12922 * xterm.c (x_mouse_click_focus_ignore_position): New var.
12923 (syms_of_xterm): DEFVAR_BOOL it.
12924 (ignore_next_mouse_click_timeout): New var.
12925 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
12926 Use it to filter mouse clicks following focus event.
12928 2004-03-29 David Ponce <david@dponce.com>
12930 * callint.c (Fcall_interactively): Fix last change.
12932 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
12934 * eval.c (Fcommandp): Simplify.
12936 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
12937 Extend to handle all kinds of functions.
12939 * lisp.h (Finteractive_form): Declare.
12941 * callint.c (Fcall_interactively): Use it.
12943 2004-03-26 Kim F. Storm <storm@cua.dk>
12945 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
12946 to catch errors in calc_pixel_width_or_height during redisplay.
12948 2004-03-26 Masatake YAMATO <jet@gyve.org>
12950 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
12952 * lisp.h (fix_start_end_in_overlays): Likewise.
12954 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
12956 * editfns.c (Ftranspose_regions): Likewise.
12958 2004-03-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12960 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
12962 2004-03-19 Richard M. Stallman <rms@gnu.org>
12964 * s/sol2-6.h: Delete previous change.
12966 2004-03-19 Kim F. Storm <storm@cua.dk>
12968 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
12969 to_charpos corresponds to newline in right fringe. Use local
12970 BUFFER_POS_REACHED_P macro.
12972 2004-03-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12974 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
12975 to compile on non-window system.
12977 2004-03-19 Kim F. Storm <storm@cua.dk>
12979 * dispextern.h (calc_pixel_width_or_height): Add prototype.
12981 * image.c (Qcenter): Move to xdisp.c.
12983 * xdisp.c (Qcenter): Declare here.
12984 (syms_of_xdisp): Intern and staticpro it.
12985 (handle_single_display_prop): Allow space display property on all
12987 (display_mode_line): Set mode_line_p before displaying line.
12988 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
12989 handling. Remove complex cases for fringes and scroll-bars.
12990 Add left, right, and center alignment positions. Add text (area)
12991 width/height. Return width or height for image specs.
12992 (produce_stretch_glyph): Improve handling of :align-to. Is now
12993 relative to left of text area by default, but other base offsets
12994 can be specified -- also for text lines.
12996 * term.c (produce_glyphs): Handle IT_STRETCH.
12997 (produce_stretch_glyph): New function to handle space width and
12998 align-to display properties on non-window systems.
13000 2004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13002 * fileio.c (Fread_file_name): Set completion-ignore-case for
13003 case-insensitive systems.
13005 2004-03-14 Masatake YAMATO <jet@gyve.org>
13007 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
13008 when keymap and cursor are setup.
13010 2004-03-14 Steven Tamm <steventamm@mac.com>
13012 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
13014 2004-03-14 Kim F. Storm <storm@cua.dk>
13016 * dispextern.h (x_find_image_file): Add prototype.
13018 * image.c (x_find_image_file): Make extern.
13020 * xfns.c (x_find_image_file): Remove prototype.
13022 2004-03-13 Eli Zaretskii <eliz@gnu.org>
13024 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
13026 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
13028 2004-03-12 Richard M. Stallman <rms@gnu.org>
13030 * fns.c (internal_equal): New arg PROPS controls comparing
13031 text properties. All callers changed.
13032 (Fequal_including_properties): New function.
13033 (syms_of_fns): defsubr it.
13035 2004-03-12 Kim F. Storm <storm@cua.dk>
13037 Fix image support on MAC. From YAMAMOTO Mitsuharu.
13039 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
13040 (image_background, image_background_transparent): Fix prototypes.
13042 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
13044 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
13045 (x_query_font, x_find_ccl_program, x_set_window_size)
13046 (x_make_frame_visible, mac_initialize, XCreatePixmap)
13047 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
13048 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
13050 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
13051 (x_query_font, x_find_ccl_program, x_set_window_size)
13052 (x_make_frame_visible, mac_initialize, XCreatePixmap)
13053 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
13054 (mac_draw_line_to_pixmap): Add prototypes.
13056 2004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13058 * macterm.c (XTread_socket): Fix mouse click on tool bar.
13060 2004-03-11 Kim F. Storm <storm@cua.dk>
13062 * dispextern.h: Move image related prototypes from xfns.c section
13063 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
13066 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
13067 Move gtkutil.o to new GTK_OBJ list.
13068 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
13069 (GTK_OBJ) [USE_GTK]: New declaration.
13070 (obj): Add $(GTK_OBJ) to list.
13072 2004-03-11 Steven Tamm <steventamm@mac.com>
13074 * image.c [MAC_OSX]: Include sys/stat.h.
13076 * macfns.c (syms_of_macfns): Remove definitions of things now
13077 defined in image.c.
13079 2004-03-11 Kim F. Storm <storm@cua.dk>
13081 The following changes consolidates the identical/similar image
13082 support code previously found in xfns.c, w32fns.c, and macfns.c
13083 into a new file image.c.
13085 * makefile.w32-in (OBJ1): Add image.o.
13086 ($(BLD)/image.$(O)): Add dependencies.
13088 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
13089 (image.o): Add dependencies.
13091 * image.c: New file with consolidated image support code.
13092 (COLOR_TABLE_SUPPORT): New define to control whether
13093 color table support is available (X only).
13094 (Bitmap_Record): Common name for x_bitmap_record,
13095 w32_bitmap_record, and mac_bitmap_record.
13096 (XImagePtr): Common name for pointer to XImage or equivalent.
13097 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
13098 to XImagePtr on X+MAC, and to HDC on W32.
13099 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
13100 (NO_PIXMAP): Common name for "None" or equivalent.
13101 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
13102 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
13103 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
13104 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
13105 Define with suitable equivalents on W32 and MAC for code sharing.
13106 (XDrawLine): Define on MAC for code sharing.
13107 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
13108 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
13109 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
13110 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
13111 (x_reference_bitmap, x_create_bitmap_from_data)
13112 (x_create_bitmap_from_file, x_destroy_bitmap)
13113 (x_destroy_all_bitmaps, x_create_bitmap_mask)
13114 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13115 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
13116 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
13117 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
13118 (define_image_type, lookup_image_type, valid_image_p)
13119 (image_error, enum image_value_type, struct image_keyword)
13120 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
13121 (make_image, free_image, prepare_image_for_display, image_ascent)
13122 (four_corners_best, image_background, image_background_transparent)
13123 (x_clear_image_1, x_clear_image, x_alloc_image_color)
13124 (make_image_cache, free_image_cache, clear_image_cache)
13125 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
13126 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
13127 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
13128 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
13129 (init_image_func_pointer, image_load_quartz2d)
13130 (struct ct_color, init_color_table, free_color_table)
13131 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
13132 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
13133 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
13134 (x_disable_image, x_build_heuristic_mask)
13135 (XBM support, XPM support, PBM support, PNG support, JPEG support)
13136 (TIFF support, GIF support, Ghostscript support): Consolidate image
13137 code from xfns.c, w32fns.c, and macfns.c.
13138 (syms_of_image): Consolidate image related symbol setup here.
13139 (init_image): Consolidate image related initializations here.
13141 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
13142 and init_image. Remove call to init_xfns.
13144 * macterm.h (struct mac_bitmap_record): Add file member.
13145 Not currently used, but simplifies code sharing.
13147 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
13148 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
13149 (x_reference_bitmap, x_create_bitmap_from_data)
13150 (x_create_bitmap_from_file, x_destroy_bitmap)
13151 (x_destroy_all_bitmaps, x_create_bitmap_mask)
13152 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13153 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
13154 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
13155 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
13156 (define_image_type, lookup_image_type, valid_image_p)
13157 (image_error, enum image_value_type, struct image_keyword)
13158 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
13159 (make_image, free_image, prepare_image_for_display, image_ascent)
13160 (four_corners_best, image_background, image_background_transparent)
13161 (x_clear_image_1, x_clear_image, x_alloc_image_color)
13162 (make_image_cache, free_image_cache, clear_image_cache)
13163 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
13164 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
13165 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
13166 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
13167 (init_image_func_pointer, image_load_quartz2d)
13168 (struct ct_color, init_color_table, free_color_table)
13169 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
13170 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
13171 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
13172 (x_disable_image, x_build_heuristic_mask)
13173 (XBM support, XPM support, PBM support, PNG support, JPEG support)
13174 (TIFF support, GIF support, Ghostscript support): Merge with image
13175 code from xfns.c and macfns.c into image.c.
13176 (syms_of_xfns): Move image related symbols to image.c.
13177 (init_external_image_libraries, init_xfns): Remove; initialization
13178 moved to init_image in image.c.
13180 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
13181 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
13182 (x_reference_bitmap, x_create_bitmap_from_data)
13183 (x_create_bitmap_from_file, x_destroy_bitmap)
13184 (x_destroy_all_bitmaps, x_create_bitmap_mask)
13185 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
13186 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
13187 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
13188 (define_image_type, lookup_image_type, valid_image_p)
13189 (image_error, enum image_value_type, struct image_keyword)
13190 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
13191 (make_image, free_image, prepare_image_for_display, image_ascent)
13192 (four_corners_best, image_background, image_background_transparent)
13193 (x_clear_image_1, x_clear_image, x_alloc_image_color)
13194 (make_image_cache, free_image_cache, clear_image_cache)
13195 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
13196 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
13197 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
13198 (struct ct_color, init_color_table, free_color_table)
13199 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
13200 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
13201 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
13202 (x_disable_image, x_build_heuristic_mask)
13203 (XBM support, XPM support, PBM support, PNG support, JPEG support)
13204 (TIFF support, GIF support, Ghostscript support): Merge with image
13205 code from xfns.c and macfns.c into image.c.
13206 (syms_of_xfns): Move image related symbols to image.c.
13207 (init_external_image_libraries, init_xfns): Remove; initialization
13208 moved to init_image in image.c.
13210 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
13211 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
13212 (x_reference_bitmap, x_create_bitmap_from_data)
13213 (x_create_bitmap_from_file, x_destroy_bitmap)
13214 (x_destroy_all_bitmaps, x_create_bitmap_mask)
13215 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
13216 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
13217 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
13218 (define_image_type, lookup_image_type, valid_image_p)
13219 (image_error, enum image_value_type, struct image_keyword)
13220 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
13221 (make_image, free_image, prepare_image_for_display, image_ascent)
13222 (four_corners_best, image_background, image_background_transparent)
13223 (x_clear_image_1, x_clear_image, x_alloc_image_color)
13224 (make_image_cache, free_image_cache, clear_image_cache)
13225 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
13226 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
13227 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
13228 (struct ct_color, init_color_table, free_color_table)
13229 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
13230 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
13231 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
13232 (x_disable_image, x_build_heuristic_mask)
13233 (XBM support, XPM support, PBM support, PNG support, JPEG support)
13234 (TIFF support, GIF support, Ghostscript support): Merge with
13235 w32fns.c and macfns.c image code into image.c.
13236 (syms_of_xfns): Move image related symbols to image.c.
13237 (init_xfns): Remove; initialization moved to init_image in image.c.
13239 * lisp.h (syms_of_image, init_image): Add protoypes.
13240 (init_xfns): Remove prototype.
13242 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
13243 (x_reference_bitmap, x_create_bitmap_from_data)
13244 (x_create_bitmap_from_file, x_destroy_bitmap)
13245 (x_create_bitmap_mask): Move prototypes from dispextern.h.
13246 (gamma_correct) [MAC_OS]: Add prototype.
13248 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
13249 (x_reference_bitmap, x_create_bitmap_from_data)
13250 (x_create_bitmap_from_file, x_destroy_bitmap)
13251 (x_create_bitmap_mask): Move prototypes to dispextern.h.
13253 2004-03-09 Kenichi Handa <handa@etlken2>
13255 * coding.c (decode_coding_emacs_mule): Handle insufficent source
13258 2004-03-04 Richard M. Stallman <rms@gnu.org>
13260 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
13262 * window.c (Fdisplay_buffer): Doc fix.
13264 * buffer.c (Fpop_to_buffer): Doc fix.
13266 2004-03-03 Kim F. Storm <storm@cua.dk>
13268 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
13270 2004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
13272 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
13274 2004-03-02 Richard M. Stallman <rms@gnu.org>
13276 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
13278 2004-03-02 Kenichi Handa <handa@m17n.org>
13280 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
13282 2004-03-02 Kim F. Storm <storm@cua.dk>
13284 * window.h (struct window): New member overlay_arrow_bitmap.
13286 * window.c (make_window): Initialize overlay_arrow_bitmap.
13288 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
13289 implement and integrate multiple overlay arrows with redisplay.
13290 (syms_of_xdisp): DEFVAR_LISP and initialize it.
13291 (last_arrow_position, last_arrow_string): Replace by properties.
13292 (Qlast_arrow_position, Qlast_arrow_string)
13293 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
13294 (syms_of_xdisp): Intern and staticpro them.
13295 (overlay_arrow_string_or_property, update_overlay_arrows)
13296 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
13297 (overlay_arrow_at_row): New functions for multiple overlay arrows.
13298 (redisplay_internal): Use them instead of directly accessing
13299 Voverlay_arrow_position etc. for multiple overlay arrows.
13300 (mark_window_display_accurate): Use update_overlay_arrows.
13301 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
13302 (try_window_id): Use overlay_arrows_changed_p.
13303 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
13304 (display_line): Use overlay_arrow_at_row to check multiple
13305 overlay arrows, and get relevant overlay-arrow-string and
13306 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
13307 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
13308 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
13310 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
13311 (update_window_fringes): Remove unused code.
13313 2004-03-01 Jason Rumney <jasonr@gnu.org>
13315 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
13317 2004-03-01 Juanma Barranquero <lektu@terra.es>
13319 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
13321 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
13323 2004-03-01 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13325 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
13326 how many colors can be displayed.
13328 2004-03-01 Kenichi Handa <handa@m17n.org>
13330 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
13333 2004-02-28 Kim F. Storm <storm@cua.dk>
13335 * dispnew.c (update_window): Update header line also if there are
13336 no other changes in window (move code after set_cursor label).
13338 * lisp.h (mark_window_display_accurate): Remove prototype.
13340 * window.c (window_loop, Fforce_window_update): Force mode line
13341 updates by setting prevent_redisplay_optimizations_p and
13344 2004-02-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13346 * xfns.c (x_window): Fix indentation.
13348 * xterm.c (x_calc_absolute_position): Call x_real_positions
13349 to get WM window sizes and use those to calculate position.
13350 (x_set_offset): Remove code commented out.
13352 2004-02-28 Miles Bader <miles@gnu.org>
13354 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
13356 2004-02-28 Kim F. Storm <storm@cua.dk>
13358 * keyboard.c (kbd_buffer_store_event_hold): New function to store
13359 an event into kbd fifo, but with special handling of quit event;
13360 a quit event is saved for later, and further events are discarded
13361 until the saved quit event has been processed.
13362 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
13363 (gen_help_event): Store help event in kbd fifo.
13364 (NREAD_INPUT_EVENTS): Remove.
13365 (read_avail_input): Adapt to new read_socket_hook interface.
13366 Remove allocation and initialization of local input_event buffer,
13367 as read_socket_hook stores events directly in fifo. Allocate and
13368 initialize local hold_quit event to handle postponed quit event
13369 (and store it if set by kbd_buffer_store_event_hold).
13371 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
13372 (gen_help_event): Fix prototype.
13374 * macterm.c (XTread_socket): Remove bufp_r and
13375 numcharsp args. Add hold_quit arg.
13376 Rework to use just one, local, inev input_event. Store inev
13377 directly in fifo using kbd_buffer_store_event_hold.
13379 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
13380 (read_input_waiting): Adapt to new read_socket_hook interface.
13381 Remove allocation and initialization of local input_event buffer,
13382 as read_socket_hook stores events directly in fifo. Allocate and
13383 initialize local hold_quit event to handle postponed quit event
13384 (and store it if set by kbd_buffer_store_event_hold).
13386 * term.c (read_socket_hook): Fix arg list.
13388 * termhooks.h (read_socket_hook): Fix prototype.
13390 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
13391 numcharsp args. Add hold_quit arg.
13392 Rework to use just one, local, inev input_event. Store inev
13393 directly in fifo using kbd_buffer_store_event_hold.
13395 * w32inevt.h (w32_console_mouse_position): Fix prototype.
13397 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
13398 Add hold_quit arg. Rework to use just one, local, inev
13399 input_event. Store inev directly in fifo using
13400 kbd_buffer_store_event_hold. Update count in one place.
13401 Postpone call to gen_help_event until inev is stored; use new
13402 local do_help for this.
13403 Remove local emacs_event in handing of ButtonPress event; just use
13404 inev instead (so no reason to copy it later).
13406 * xsmfns.c (x_session_check_input): Remove numchars arg.
13408 * xterm.c (x_focus_changed, x_detect_focus_change):
13409 Remove numchars arg. Always store event into bufp arg.
13410 Return nothing. Callers changed accordingly.
13411 (glyph_rect): Simplify.
13412 (STORE_KEYSYM_FOR_DEBUG): New macro.
13413 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
13414 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
13415 (current_hold_quit) [USE_GTK]: Add.
13416 (event_handler_gdk): Adapt to new handle_one_xevent.
13417 (handle_one_xevent): Remove bufp_r and numcharsp args.
13418 Add hold_quit arg. Rework to use just one, local, inev
13419 input_event. Store inev directly in fifo using
13420 kbd_buffer_store_event_hold. Update count in one place.
13421 Postpone call to gen_help_event until inev is stored; use new
13422 local do_help for this.
13423 Simplify handling of keysyms (consolidate common code). Fix bug
13424 where count was updated with nchars instead of nbytes.
13425 Remove local emacs_event in handing of ButtonPress event; just use
13426 inev instead (so no reason to copy it later).
13427 Remove `out' label. Rename label `ret' to `done'; add various
13428 `goto done' to clarify code flow in deeply nested blocks.
13429 (x_dispatch_event): Simplify as handle_one_xevent now calls
13430 kbd_buffer_store_event itself.
13431 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
13432 arg. Call handle_one_xevent with new arglist. Store event from
13433 x_session_check_input in fifo.
13434 [USE_GTK]: Setup current_hold_quit.
13435 Decrement handling_signal before unblocking input.
13436 (x_initialize) [USE_GTK]: Initialize current_count.
13438 * xterm.h (x_session_check_input): Fix prototype.
13440 2004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13442 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
13444 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
13447 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
13449 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
13450 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
13451 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
13452 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
13453 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
13454 (Bitmap): Remove typedef.
13455 (Pixmap): Change int to GWorldPtr.
13457 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
13459 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
13460 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
13461 New #define to extract 16-bit depth color components from unsigned
13462 long representation.
13463 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
13464 colors used for masks.
13465 (struct mac_display_info): Add color_p. Remove n_cbits.
13467 * macfns.c: Include sys/types.h and sys/stat.h.
13468 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
13469 Include QuickTime/QuickTime.h.
13470 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
13471 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
13472 functions defined in macterm.c.
13473 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
13474 (ZPixmap): New #define for compatibility with xfns.c.
13475 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13476 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
13477 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
13479 (four_corners_best, x_create_x_image_and_pixmap)
13480 (x_destroy_x_image, unwind_create_frame, x_disable_image)
13481 (x_edge_detection, init_color_table, colors_in_color_table)
13482 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
13483 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
13484 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
13485 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
13486 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
13488 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
13489 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
13490 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
13491 (x_set_cursor_type, Fxw_color_values, valid_image_p)
13492 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
13493 (x_alloc_image_color, clear_image_cache, lookup_image)
13494 (x_find_image_file, xbm_read_bitmap_file_data)
13495 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
13496 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
13497 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
13498 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
13499 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
13500 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
13501 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
13503 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
13504 #if 0. Free white_relief.gc and black_relief.gc.
13505 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
13506 New functions (from xfns.c).
13507 (Fx_create_frame): Record unwind_create_frame.
13508 (Fxw_display_color_p): Use dpyinfo->color_p.
13509 (Fx_display_grayscale_p, Fx_display_planes): Don't use
13511 (Fx_display_color_cells): Use dpyinfo->n_planes;
13512 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
13513 (Qheuristic, cross_disabled_images, emboss_matrix)
13514 (laplace_matrix): New variables (from xfns.c).
13515 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
13516 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
13517 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
13518 (image_background_transparent): New function (from xfns.c).
13519 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
13520 (image_load_quicktime): Add declaration.
13521 [MAC_OSX] (image_load_quartz2d): Likewise.
13522 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
13523 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
13524 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
13525 (xbm_load_image_from_file, x_laplace_read_row)
13526 (x_laplace_write_row, pbm_read_file): Remove functions.
13527 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
13528 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
13529 (colors_in_color_table): Sync with xfns.c (although not used).
13530 (lookup_rgb_color): Don't lookup color table. Just do gamma
13532 (COLOR_INTENSITY): New #define (from xfns.c).
13533 (x_disable_image): New function (from xfns.c).
13534 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
13535 (x_build_heuristic_mask): Sync with xfns.c.
13536 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
13537 (HAVE_PBM): Remove #ifdef.
13538 (pbm_load): Sync with xfns.c. Set img->width and img->height
13539 before IMAGE_BACKGROUND.
13540 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
13541 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
13542 Don't enclose with #if HAVE_PNG.
13543 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
13544 symbol _CGImageCreateWithPNGDataProvider is defined.
13545 Otherwise use image_load_quicktime.
13546 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
13547 [HAVE_PNG] (png_load): Sync with xfns.c.
13548 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
13549 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
13551 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
13552 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
13553 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
13554 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
13555 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
13556 (tiff_image_p, tiff_load): Don't enclose declarations with #if
13558 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
13559 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
13560 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
13561 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
13562 New functions (from xfns.c).
13563 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
13564 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
13565 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
13566 Don't enclose with #if HAVE_GIF.
13567 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
13568 animated gif. Otherwise use image_load_quicktime.
13569 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
13570 gif_DrawText to avoid conflict with QuickdrawText.h.
13571 [HAVE_GIF] (gif_load): Sync with xfns.c.
13572 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
13573 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
13574 Ghostscript is not supported yet).
13575 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
13576 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
13577 cross_disabled_images (from xfns.c). Remove #if 0 for supported
13578 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
13579 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
13580 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
13581 HAVE_PNG. Call EnterMovies to support animated gifs.
13582 Call init_image_func_pointer to bind a symbol
13583 _CGImageCreateWithPNGDataProvider if it is defined.
13585 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
13586 (x_draw_bar_cursor): Sync declaration with xterm.c.
13587 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
13588 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
13590 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
13591 (mac_draw_line_to_pixmap, XCreatePixmap)
13592 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
13593 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
13595 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
13596 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
13597 Cast bits to char *.
13598 (reflect_byte): New function (from w32fns.c).
13599 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
13600 due to byte alignment.
13601 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
13602 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
13603 (XSetForeground): Remove static (now used in macfns.c).
13604 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
13605 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
13606 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
13607 (x_draw_glyph_string_box, x_draw_image_foreground)
13608 (x_draw_image_foreground_1, x_draw_image_glyph_string)
13609 (x_draw_stretch_glyph_string, x_draw_glyph_string)
13610 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
13612 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
13613 than the xterm.c version when a strictly horizontal or vertical
13615 (XTset_terminal_window): Add static.
13616 (x_make_frame_visible): Add UNBLOCK_INPUT.
13617 (x_free_frame_resources): New funcion (from xterm.c).
13618 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
13619 occurs in tool bar area.
13620 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
13621 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
13622 Initialize image cache.
13623 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
13624 Enclose unused functions with #if 0.
13625 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
13626 (decode_mac_font_name): New function to apply code conversions
13627 from a mac font name to an XLFD font name according to its script code.
13628 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
13629 font name to a mac font name according to REGISTRY and ENCODING fields.
13630 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
13631 whose name starts with `.'.
13632 (init_font_name_table): Use decode_mac_font_name. Add both
13633 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
13634 of a font is smJapanese.
13635 (mac_do_list_fonts): New function to list fonts that match a given
13637 (x_list_fonts, XLoadQueryFont): Use it.
13638 (XLoadQueryFont): Set rbearing field for each variable width
13639 character to avoid needless redraw.
13640 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
13642 2004-02-26 Kim F. Storm <storm@cua.dk>
13644 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
13645 as read_socket_hook handler on X aborts if buffer is too small
13646 and W32 handler doesn't always check buffer limit.
13648 * xdisp.c (handle_single_display_prop): Handle left-fringe and
13649 right-fringe similar to a display margin image. Specifically,
13650 the characters having the fringe prop are no longer shown, and
13651 we use IT_IMAGE/next_element_from_image with image_id = -1 to
13652 do this. Set fringe bitmap face_id in it->face_id.
13653 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
13654 still realize it->face (i.e. the fringe bitmap face).
13656 2004-02-25 Miles Bader <miles@gnu.org>
13658 * xdisp.c (check_it): Check string/string_pos consistency.
13659 (init_iterator): Initialize string-related fields properly.
13661 2004-02-11 Miles Bader <miles@gnu.org>
13663 * xdisp.c (produce_image_glyph): Force negative descents to zero.
13665 2004-02-10 Miles Bader <miles@gnu.org>
13667 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
13668 BLOCK_INPUT can be nested, so it doesn't make much sense.
13670 2004-02-24 Michael Mauger <mmaug@yahoo.com>
13672 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
13673 (xbm_read_bitmap_data): Use unsigned char for image data.
13675 2004-02-23 Luc Teirlinck <teirllm@auburn.edu>
13677 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
13679 2004-02-22 Jason Rumney <jasonr@gnu.org>
13681 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
13682 correctly over other bitmaps.
13684 2004-02-21 Eli Zaretskii <eliz@gnu.org>
13686 * emacs.c (USAGE1): Split into two halves.
13687 (USAGE2): Second half of the old USAGE1.
13688 (USAGE3): Rename from USAGE2.
13689 (USAGE4): Rename from USAGE3.
13691 2004-02-21 Juri Linkov <juri@jurta.org>
13693 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
13694 Fix --multibyte. Move --help, --version to USAGE2. Add alias
13695 --file. Fix -f, -l. Sort options. Untabify.
13696 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
13698 2004-02-19 Luc Teirlinck <teirllm@auburn.edu>
13700 * category.c (Fdefine_category, Fcategory_docstring)
13701 (Fget_unused_category, Fset_category_table)
13702 (Fcategory_set_mnemonics): Doc fixes.
13704 2004-02-20 Kim F. Storm <storm@cua.dk>
13706 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
13707 The following changes are relative to the 2004-01-21 revision.
13708 (NREAD_INPUT_EVENTS): Define as max number of input events to read
13709 in one call to read_socket_hook. Value is 8.
13710 (read_avail_input): Separate and rework handling of read_socket_hook
13711 and non-read_socket_hook cases. Use smaller input_event buffer
13712 in read_socket_hook case, and repeat if full buffer is read.
13713 Use new local variable 'discard' to skip input after C-g.
13714 In non-read_socket_hook case, just use a single input_event, and
13715 call kbd_buffer_store_event on the fly for each character.
13717 2004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13719 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
13720 Remove unused `gu' alternative.
13722 2004-02-19 Andreas Schwab <schwab@suse.de>
13724 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
13727 2004-02-18 Kim F. Storm <storm@cua.dk>
13729 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
13732 2004-02-17 Kim F. Storm <storm@cua.dk>
13734 * xdisp.c (fast_find_position): Fix return value of new version;
13735 it was inverted compared to the 21.1 version.
13736 (get_window_cursor_type): Don't look at glyph if NULL.
13737 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
13739 * keyboard.c: Rework previous change; it didn't consider that the
13740 buf array was allocated on the stack.
13741 (prev_read): Remove variable.
13742 (read_avail_input_buf): New static event buffer array.
13743 (in_read_avail_input): New static variable to handle re-entrancy.
13744 (read_avail_input): Change buf to pinter to read_avail_input_buf.
13745 Use in_read_avail_input to handle re-entrance; when re-entered,
13746 fully initialize and use tmp_buf array instead of read_avail_input_buf.
13747 Do not initialize read_avail_input_buf in full here; instead assume it
13748 is always cleared on entry. To ensure that, we clear (just) the
13749 entries that were used before we return.
13750 (init_keyboard): Initialize read_avail_input_buf here.
13752 2004-02-16 Jesper Harder <harder@ifa.au.dk>
13754 * cmds.c (Fend_of_line): Doc fix.
13756 2004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
13758 * keyboard.c (prev_read): New static variable.
13759 (read_avail_input): Use it to zero out only those slots in buf[]
13760 that were used last time we were called.
13762 2004-02-16 Eli Zaretskii <eliz@gnu.org>
13764 * Makefile.in (obj): Move fringe.o from here...
13765 (XOBJ, MAC_OBJ): ...to here.
13767 2004-02-16 Stephen Eglen <stephen@gnu.org>
13769 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
13771 2004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
13773 * data.c (Fbyteorder):
13774 * fringe.c (Fdefine_fringe_bitmap):
13775 * xdisp.c (handle_single_display_prop):
13776 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
13778 2004-02-16 Jason Rumney <jasonr@gnu.org>
13780 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
13782 2004-02-15 Steven Tamm <steventamm@mac.com>
13784 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
13785 controlling emulation of a three button mouse with option and
13787 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
13788 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
13790 2004-02-15 Kim F. Storm <storm@cua.dk>
13792 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
13794 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
13795 Perform byte-swapping.
13797 2004-02-14 Kim F. Storm <storm@cua.dk>
13799 * dispextern.h (struct draw_fringe_bitmap_params): Change member
13800 bits from char to short to facilitate wider bitmaps.
13801 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
13804 * fringe.c (struct fringe_bitmap): Change member bits from char to
13805 short to facilitate 16 bits wide bitmaps. Modify all standard
13806 bitmaps accordingly.
13807 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
13808 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
13809 (draw_fringe_bitmap): Ditto.
13810 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
13811 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
13812 handle up to 16 bits wide bitmaps.
13813 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
13814 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
13816 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
13817 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
13818 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
13820 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
13821 so it is no longer necessary to expand them here.
13823 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
13825 2004-02-12 Kim F. Storm <storm@cua.dk>
13827 * window.c (Fwindow_fringes): Doc fix.
13829 2004-02-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13831 * xselect.c (x_get_foreign_selection): Add new optional parameter
13833 (Fx_get_selection_internal): Ditto, pass time_stamp to
13834 x_get_foreign_selection.
13836 * data.c (Fbyteorder): New function.
13838 2004-02-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13840 * atimer.c: Move include stdio.h to same place as in other files.
13842 * region-cache.c: Ditto.
13848 2004-02-09 Sam Steingold <sds@gnu.org>
13850 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
13852 2004-02-09 Kim F. Storm <storm@cua.dk>
13854 * fringe.c: New file. Move original fringe related declarations
13855 and code from dispextern.h and xdisp.c here.
13856 Rework code to support user defined fringe bitmaps, redefining
13857 standard bitmaps, ability to overlay user defined bitmap with
13858 overlay arrow bitmap, and add faces to bitmaps.
13859 (Voverflow_newline_into_fringe): Declare here.
13860 (enum fringe_bitmap_align): New enum.
13861 (..._bits): All bitmaps are now defined without bitswapping; that
13862 is now done in init_fringe_once (if necessary).
13863 (standard_bitmaps): New array with specifications for the
13864 standard fringe bitmaps.
13865 (fringe_faces): New array.
13866 (valid_fringe_bitmap_id_p): New function.
13867 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
13868 (draw_fringe_bitmap): New function which draws fringe bitmap,
13869 possibly overlaying bitmap with cursor in right fringe or the
13870 overlay arrow in the left fringe.
13871 (update_window_fringes): Do not handle overlay arrow here.
13872 Compare and copy fringe bitmap faces.
13873 (init_fringe_bitmap): New function.
13874 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
13875 define and destroy user defined fringe bitmaps.
13876 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
13877 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
13878 (syms_of_fringe): New function. Defsubr new DEFUNs.
13879 DEFVAR_LISP Voverflow_newline_into_fringe.
13880 (init_fringe_once, init_fringe): New functions.
13881 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
13883 * Makefile.in (obj): Add fringe.o.
13884 (fringe.o): New dependencies.
13886 * dispextern.h (FRINGE_ID_BITS): New definition for number of
13887 bits allocated to hold a fringe number. Increase number of bits
13888 from 4 to 8 to allow user defined fringe bitmaps.
13889 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
13890 left_user_fringe_face_id, right_user_fringe_bitmap,
13891 right_user_fringe_face_id.
13892 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
13893 Move to new file fringe.c.
13894 (MAX_FRINGE_BITMAPS): Define here.
13895 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
13896 and overlay_p. Change member which to int.
13897 (struct redisplay_interface): New members define_fringe_bitmap
13898 and destroy_fringe_bitmap.
13899 (valid_fringe_bitmap_id_p): Add prototype.
13900 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
13902 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
13904 (update_frame): Do flush_display if force_flush_display_p to
13905 ensure display (specifically fringes) are updated in a timely
13906 manner when resizing the frame by dragging the mouse.
13907 (update_window_line): Update row if overlay arrow changed.
13908 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
13909 or overlay arrow changed.
13911 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
13912 syms_of_fringe, and init_fringe.
13914 * frame.h (struct frame): New member force_flush_display_p.
13916 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
13919 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
13920 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
13921 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
13922 Use cursor color for displaying cursor in fringe.
13923 (x_redisplay_interface): Add null handlers for
13924 define_fringe_bitmap and destroy_fringe_bitmap functions.
13926 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
13927 xterm.c to handle overlayed fringe bitmaps and to use cursor color
13928 for displaying cursor in fringe.
13929 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
13930 specific functions to define and destroy fringe bitmaps in fringe_bmp.
13931 (w32_redisplay_interface): Add them to redisplay_interface.
13932 (w32_term_init): Call w32_init_fringe instead of explicitly
13933 defining fringe bitmaps in fringe_bmp array.
13934 (x_delete_display): Call w32_reset_fringes instead of explicitly
13935 destroying fringe bitmaps in fringe_bmp array.
13937 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
13938 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
13939 (continued_bits, continuation_bits, ov_bits, first_line_bits)
13940 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
13941 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
13942 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
13943 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
13944 Move fringe handling vars and code to new file fringe.c.
13945 (handle_display_prop): Handle left-fringe and right-fringe
13946 display properties; store user fringe bitmaps in iterator.
13947 (move_it_in_display_line_to): Handle cursor in fringe at eob.
13948 (clear_garbaged_frames): Set force_flush_display_p if resized.
13949 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
13950 (display_line): Handle cursor in fringe at eob.
13951 (display_line): Set row user fringe bitmaps from iterator.
13953 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
13954 Use cursor color for displaying cursor in fringe.
13955 (x_redisplay_interface): Add null handlers for
13956 define_fringe_bitmap and destroy_fringe_bitmap functions.
13958 2004-02-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13960 * macfns.c (Fx_change_window_property): Make doc string and
13961 parameters same as for X version.
13963 * w32fns.c (Fx_change_window_property): Ditto.
13965 2004-02-07 Kim F. Storm <storm@cua.dk>
13967 * xdisp.c (hscroll_window_tree): Position cursor near to right
13968 margin in hscrolled window when jumping to end of line (rather
13969 than centering cursor).
13971 * process.c (wait_reading_process_input): Don't do adaptive read
13972 buffering if waiting for a specific process.
13974 2004-02-05 Luc Teirlinck <teirllm@auburn.edu>
13976 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
13977 (Fread_minibuffer, Feval_minibuffer)
13978 (Fread_string, Fread_no_blanks_input)
13979 (Fcompleting_read): Doc fixes.
13980 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
13981 completion-regexp-list. Define Qcase_fold_search and staticpro it.
13982 (read_minibuf): Fix initial comment.
13983 (Ftry_completion, Fall_completions, Ftest_completion): Bind
13984 case-fold-search to the value of completion-ignore-case when
13985 checking completion-regexp-list.
13986 (Fdisplay_completion_list): Make it handle arguments that are
13989 2004-02-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13991 * xterm.h: Add declaration of free_frame_menubar.
13993 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
13994 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
13995 (Fx_change_window_property): Add declaration of parameters type and
13996 format. Remove unused variable cons.
13998 * xselect.c: Include stdio.h.
14000 2004-02-05 Kenichi Handa <handa@m17n.org>
14002 * fns.c (Fset_char_table_range): Fix previous change.
14004 * buffer.c (Fset_buffer_multibyte): Fix docstring.
14006 2004-02-04 Luc Teirlinck <teirllm@auburn.edu>
14008 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
14010 2004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
14012 * keymap.c (Vmouse_events): Rename from Vmenu_events.
14013 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
14015 2004-02-04 Kenichi Handa <handa@m17n.org>
14017 * fns.c (Fset_char_table_range): Handle charsets ascii,
14018 eight-bit-control, and eight-bit-graphic correctly.
14020 2004-02-03 Jason Rumney <jasonr@gnu.org>
14022 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
14024 * w32fns.c (x_to_w32_font): Likewise.
14026 2004-02-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14028 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
14029 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
14031 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
14034 * xselect.c: Include termhooks.h and X11/Xproto.h
14035 (x_check_property_data, x_fill_property_data)
14036 (x_property_data_to_lisp, mouse_position_for_drop)
14037 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
14038 (Fx_send_client_event): Move here from xfns.c.
14039 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
14041 * xfns.c (x-send-client-message): Move to xselect.c
14042 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
14044 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
14045 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
14046 if vector_ret_p is true.
14047 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
14049 2004-02-02 Eli Zaretskii <eliz@gnu.org>
14051 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
14052 basename of FILE relative to it, not FILE itself.
14054 2004-02-02 Kenichi Handa <handa@m17n.org>
14056 * coding.c (coding_restore_composition): Check invalid
14057 composition data more rigidly.
14059 2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
14061 * fileio.c (Fread_file_name_internal): Correctly handle the case
14062 where insert-default-directory is nil.
14063 (Fread_file_name): Always return an empty string if the user exits
14064 with an empty minibuffer. Adapt the docstring accordingly.
14065 (syms_of_fileio): Adapt the docstring of insert-default-directory
14066 to the change in Fread_file_name.
14068 2004-01-29 Eli Zaretskii <eliz@gnu.org>
14070 * alloca.c [!alloca]: Fix the prototype for xfree.
14072 2004-01-29 Kenichi Handa <handa@m17n.org>
14074 * fns.c (string_char_to_byte): Optimize for ASCII only string.
14075 (string_byte_to_char): Likewise.
14077 2004-01-28 Peter Runestig <peter@runestig.com>
14079 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
14081 2004-01-27 Steven Tamm <steventamm@mac.com>
14083 * unexmacosx.c (unexec_copy): Do not copy more than was
14084 requested to prevent overwriting during unexec.
14086 2004-01-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14088 * process.c (sigchld_handler): Add comment about not calling malloc.
14090 * process.h: Add extern to synch_process_termsig.
14092 2004-01-27 Steven Tamm <steventamm@mac.com>
14094 * macterm.c (make_mac_frame, make_mac_terminal_frame):
14095 Move setting of scroll bars from make_mac_frame to
14096 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
14098 2004-01-26 Richard M. Stallman <rms@gnu.org>
14100 * search.c (Freplace_match): Handle nonexistent
14101 back-references properly.
14103 2004-01-03 Richard M. Stallman <rms@gnu.org>
14105 * window.c (decode_any_window): New function.
14106 (Fwindow_height, Fwindow_width, Fwindow_edges)
14107 (Fwindow_pixel_edges, Fwindow_inside_edges)
14108 (Fwindow_inside_pixel_edges): Use decode_any_window.
14110 2004-01-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14112 * process.h: synch_process_termsig new variable.
14114 * callproc.c: Define synch_process_termsig.
14115 (Fcall_process): Initiate synch_process_termsig to zero and
14116 check if non-zero and get signal name after subprocess has ended.
14118 * process.c (sigchld_handler): Set synch_process_termsig
14119 if terminated by a signal. synch_process_death setting removed.
14121 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
14123 2004-01-26 Andreas Schwab <schwab@suse.de>
14125 * print.c (print_preprocess): Declare size as EMACS_INT to not
14127 (print_object): Likewise.
14128 * alloc.c (Fpurecopy): Likewise.
14130 2004-01-25 Luc Teirlinck <teirllm@auburn.edu>
14132 * window.c (Fwindow_minibuffer_p): Doc fix.
14134 2004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
14136 * editfns.c (Fformat): Make both passes accept the same set of flags.
14138 2004-01-23 Kenichi Handa <handa@m17n.org>
14140 * fns.c (Fmd5): If OBJECT is a buffer different from the current
14141 one, set buffer to OBJECT temporarily.
14143 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
14145 * keyboard.c (kbd_buffer_gcpro): Remove.
14146 (kbd_buffer_store_event, clear_event, Fdiscard_input)
14147 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
14148 Don't initialize and/or maintain the variable any more. It was made
14149 redundant by my commit of 2003-06-15.
14151 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
14153 2004-01-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14155 * lisp.h: Add undef DECL_ALIGN.
14157 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
14159 * process.c (wait_reading_process_input) [SYNC_INPUT]:
14160 Check interrupt_input_pending explicitly.
14162 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
14164 * keyboard.c (handle_async_input): New fun,
14165 extracted from input_available_signal.
14166 (input_available_signal, reinvoke_input_signal): Use it.
14168 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
14170 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
14172 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
14173 manipulation macros for when tags are in the lower bits.
14174 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
14175 (DECL_ALIGN): New macro.
14178 * lisp.h [ENABLE_CHECKING]: Don't force union type.
14180 * s/darwin.h (__attribute__): Remove outdated workaround.
14182 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
14184 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
14185 Don't check range of malloc address.
14186 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
14188 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
14190 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
14192 2004-01-19 Kenichi Handa <handa@m17n.org>
14194 * fontset.c (fontset_font_pattern): Fix previous change.
14196 2004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
14198 * xdisp.c (Voverflow_newline_into_fringe)
14199 (move_it_in_display_line_to, redisplay_internal)
14200 (update_window_fringes, redisplay_window, display_line, window):
14201 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
14202 that it compiles without a window-system.
14203 * dispnew.c (direct_output_for_insert, update_window): Likewise.
14205 2004-01-16 Kim F. Storm <storm@cua.dk>
14207 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
14209 * buffer.c (init_buffer_once): Set buffer_defaults and
14210 buffer_local_flags for indicate_buffer_boundaries.
14211 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
14212 default- variable for it.
14214 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
14215 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
14216 New members exact_window_width_line_p and cursor_in_fringe_p for
14217 overflowing newlines into right fringe.
14218 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
14219 and indicate_bottom_line_p for buffer boundaries and scrolling.
14220 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
14221 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
14222 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
14223 and HOLLOW_SQUARE_BITMAP.
14224 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
14227 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
14228 instead of related indicator fields.
14229 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
14230 (direct_output_for_insert): Handle exact width lines like
14231 contined lines. Call update_window_fringes.
14232 (update_window): Call update_window_fringes.
14233 (scrolling_window): Don't skip desired rows with changed bitmaps.
14234 Check if fringe bitmaps changes when assigning scrolled rows.
14236 * xdisp.c (Voverflow_newline_into_fringe): New variable.
14237 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
14238 (move_it_in_display_line_to): Overflow newline into fringe for
14239 rows that are exactly as wide as the window.
14240 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
14241 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
14242 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
14243 (fringe_bitmaps): Add new bitmaps.
14244 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
14245 Select proper bitmap for cursor in fringe when appropriate.
14246 Handle alignment of bitmap to top or bottom of row.
14247 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
14248 done by update_window_fringes.
14249 (update_window_fringes, draw_window_fringes): New functions.
14250 (redisplay_internal): Call update_window_fringes in case only
14251 cursor row is updated.
14252 (redisplay_window): Call update_window_fringes.
14253 Explicitly call draw_window_fringes if redisplay was done using
14254 the current matrix or the overlay arrow is in the window.
14255 (try_window_reusing_current_matrix): Mark scrolled rows for
14256 fringe update (to update buffer-boundaries / scrolling icons).
14257 (find_last_unchanged_at_beg_row): Handle exact width lines line
14259 (display_line): Overflow newline into fringe for rows that are
14260 exactly as wide as the window. Don't append space for newline
14262 (notice_overwritten_cursor): Explicitly clear cursor bitmap
14263 in fringe as if it had been overwritten.
14264 (erase_phys_cursor): Erase cursor bitmap in fringe.
14265 (syms_of_xdisp): Mark show-trailing-whitespace and
14266 void-text-area-pointer as user options.
14267 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
14269 * xterm.c (x_update_window_end): Call draw_window_fringes.
14270 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
14271 in row instead of actually drawing fringe bitmaps.
14272 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
14273 (x_draw_window_cursor): Draw cursor in fringe.
14275 * w32term.c (x_update_window_end): Call draw_window_fringes.
14276 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
14277 in row instead of actually drawing fringe bitmaps.
14278 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
14279 (w32_draw_window_cursor): Draw cursor in fringe.
14281 * macterm.c (x_update_window_end): Call draw_window_fringes.
14282 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
14283 in row instead of actually drawing fringe bitmaps.
14284 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
14285 (mac_draw_window_cursor): Draw cursor in fringe.
14287 2004-01-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14289 * xterm.c (handle_one_xevent): Don't handle characters that are part
14290 of an old style (XLookupString) compose sequence.
14292 2004-01-15 Kenichi Handa <handa@m17n.org>
14294 * search.c (Freplace_match): Use make_multibyte_string or
14295 make_unibyte_string according to the buffer multibyteness.
14297 2004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
14299 * alloc.c (struct interval_block, struct string_block)
14300 (struct symbol_block, struct marker_block, live_string_p)
14301 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
14302 Better preserve alignment for objects in blocks.
14303 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
14305 * lread.c (defvar_per_buffer): Remove dead declaration.
14307 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
14310 2004-01-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14312 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
14313 if a key press should pop down. Only pop down if a key is pressed
14314 outside the menu/dialog.
14315 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
14316 popup_get_selection.
14317 (create_and_show_dialog): Pass 1 for down_on_keypress to
14318 popup_get_selection.
14320 2004-01-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14322 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
14323 BLOCK/UNBLOCK_INPUT.
14325 2004-01-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14327 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
14330 2004-01-08 Kenichi Handa <handa@m17n.org>
14332 * editfns.c (Fformat): Fix '&' to '&&'.
14334 2004-01-08 Andreas Schwab <schwab@suse.de>
14336 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
14337 size if PSEUDOVECTOR_FLAG is set.
14339 2004-01-07 Kenichi Handa <handa@m17n.org>
14341 * charset.c (Fdeclare_equiv_charset): Fix docstring.
14343 * fontset.c (fontset_ref_via_base): Fix previous change.
14345 2004-01-07 Kim F. Storm <storm@cua.dk>
14347 * process.c (read_process_output): Only activate adaptive
14348 buffering if we read less than 256 bytes at a time.
14350 2004-01-06 Kim F. Storm <storm@cua.dk>
14352 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
14353 object and image object. Return glyph width and height.
14354 (mode_line_string, marginal_area_string): Ditto.
14356 * dispextern.h (buffer_posn_from_coords, mode_line_string)
14357 (marginal_area_string): Fix prototypes.
14359 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
14360 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
14361 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
14363 * keyboard.c (make_lispy_position): Use modified mode_line_string,
14364 buffer_posn_from_coords, and marginal_area_string functions to
14365 include both string object and image object in the lispy position.
14366 Also add actual glyph width and height to position.
14367 (read_key_sequence): Use real buffer position from mouse
14368 event to find keymap property even when click is in marginal area.
14370 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
14371 mode_line_string and marginal_area_string functions to handle
14372 both string object and image object properties.
14374 2004-01-06 Andreas Schwab <schwab@suse.de>
14376 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
14379 2004-01-02 Andreas Schwab <schwab@suse.de>
14381 * macterm.c (emacs_options, x_initialized, same_x_server):
14382 Remove unused (and duplicated) definitions.
14384 2004-01-02 Kim F. Storm <storm@cua.dk>
14386 * process.h (struct Lisp_Process): New members for adaptive read
14387 buffering: adaptive_read_buffering, read_output_delay, and
14390 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
14391 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
14392 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
14393 (process_output_delay_count, process_output_skip): New vars.
14394 (Vprocess_adaptive_read_buffering): New variable.
14395 (make_process): Initialize adaptive read buffering members.
14396 (Fstart_process): Set adaptive_read_buffering member.
14397 (deactivate_process): Cleanup adaptive read buffering.
14398 (wait_reading_process_input): Temporarily omit delayed
14399 subprocesses from the set of file descriptors to read from;
14400 adjust the select timeout if we skipped any subprocesses.
14401 (read_process_output): Increase adaptive read buffering delay if
14402 we read less than a full buffer; reduce delay when we read a
14404 (send_process): Simplify using local Lisp_Process var.
14405 Reset adaptive read buffering delay after write.
14406 (init_process): Initialize process_output_delay_count and
14407 process_output_skip.
14408 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
14410 2004-01-01 Jason Rumney <jasonr@gnu.org>
14412 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
14414 2003-12-30 Luc Teirlinck <teirllm@auburn.edu>
14416 * print.c (Ferror_message_string): Add hyperlink in the docstring
14417 to the definition of `signal' in the Elisp manual.
14418 * eval.c (Fsignal): Ditto.
14420 2003-12-29 James Clark <jjc@jclark.com>
14422 * fns.c (internal_equal): Return t for two NaN arguments.
14424 2003-12-29 Richard M. Stallman <rms@gnu.org>
14426 * data.c (store_symval_forwarding): Handle setting
14427 default-fill-column, etc., by changing the value in
14428 buffers that use the default.
14430 * minibuf.c (Fset_minibuffer_window): Doc fix.
14432 * fileio.c (choose_write_coding_system): Ignore auto_saving
14433 if using the visited file for auto saves.
14434 (Fwrite_region): Don't update SAVE_MODIFF
14435 if auto-saving in visited file.
14437 2003-12-29 Kenichi Handa <handa@m17n.org>
14439 * dispextern.h (face_font_available_p): Extern it.
14441 * fontset.c (Voverriding_fontspec_alist): New variable.
14442 (lookup_overriding_fontspec): New function.
14443 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
14444 (fontset_font_pattern): Likewise.
14445 (regulalize_fontname): New function.
14446 (Fset_fontset_font): Call regulalize_fontname.
14447 (Fset_overriding_fontspec_internal): New function.
14448 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
14449 Defsubr Sset_overriding_fontspec_internal.
14451 * xfaces.c (face_font_available_p): New function.
14453 2003-12-28 Richard M. Stallman <rms@gnu.org>
14455 * buffer.c (Fother_buffer): Don't crash if BUF is nil
14456 or if its name is nil.
14458 * buffer.c (Fkill_buffer): Don't delete auto-save file
14459 if it's the same as the visited file.
14461 2003-12-28 Luc Teirlinck <teirllm@auburn.edu>
14463 * coding.c (Fcheck_coding_system): Doc fix.
14465 2003-12-28 Kim F. Storm <storm@cua.dk>
14467 * Makefile.in (eval.o): Depend on dispextern.h.
14469 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
14470 image glyph using image's ascent.
14471 (mode_line_string): Return image glyph as object clicked on.
14472 Adjust y0 for image glyph using image's ascent.
14474 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
14475 (struct glyph): New members, ascent and descent. Used to save
14476 this glyph's ascent and descent, instead of having.
14477 (struct glyph): Declare member face_id using FACE_ID_BITS.
14478 (find_hot_spot): Add prototype.
14480 * keyboard.c (Qimage): Remove extern (now in lisp.h).
14481 (QCmap): Declare extern.
14482 (make_lispy_position): When position is inside image hot-spot,
14483 use hot-spot element's id as posn element.
14485 * lisp.h (IMAGEP): New macro to test for image object type.
14486 (Qimage): Declare extern.
14488 * macfns.c (Qimage): Remove extern (now in lisp.h).
14489 (valid_image_p, parse_image_spec): Use IMAGEP macro.
14491 * macterm.c (Qface, Qmouse_face): Remove unused externs.
14493 * w32fns.c (Qimage): Remove extern (now in lisp.h).
14494 (valid_image_p, parse_image_spec): Use IMAGEP macro.
14496 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
14498 * w32term.c (Qface, Qmouse_face): Remove unused externs.
14500 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
14502 (Qrelative_width, Qalign_to): Remove unused variables.
14503 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
14504 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for image
14506 (x_y_to_hpos_vpos): Return glyph relative coordinates through new
14507 dx and dy args. Remove buffer_only_p arg (always 0). Simplify
14509 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
14510 than row's ascent and height, to get sensible height on tall rows.
14511 (build_desired_tool_bar_string): Remove Qimage extern.
14512 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
14513 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
14514 image glyph is alone on the last line.
14515 (append_glyph, append_composite_glyph, produce_image_glyph)
14516 (append_stretch_glyph): Set glyph's ascent and descent.
14517 (on_hot_spot_p): New function to check if position is inside an
14518 rectangular, circular, or polygon-shaped image hot-spot,
14519 (find_hot_spot): New function to search for image hot-spot.
14520 (Flookup_image_map): New defun to search for image hot-spot.
14521 (define_frame_cursor1): New aux function to determine frame
14523 (note_mode_line_or_margin_highlight, note_mouse_highlight): Handle
14524 `pointer' text property and :pointer image property to control
14525 frame pointer shape. Detect image hot-spots for pointer and
14526 help_echo properties. Use define_frame_cursor1.
14527 (note_mouse_highlight): Use Vvoid_text_area_pointer.
14528 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new
14529 variables. DEFVAR_LISP Vvoid_text_area_pointer instead of
14530 Vshow_text_cursor_in_void.
14532 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
14534 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
14535 (Qimage): Remove extern (now in lisp.h).
14536 (valid_image_p, parse_image_spec): Use IMAGEP macro.
14538 * xmenu.c (show_help_event): Remove unused code.
14540 * xterm.c (Qface, Qmouse_face): Remove unused externs.
14541 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
14542 row's ascent and descent, to get a sensible height on tall rows.
14544 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
14546 * minibuf.c (Fcompleting_read): Undo previous change.
14548 2003-12-25 Lars Hansen <larsh@math.ku.dk>
14550 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
14551 Arguments GCPRO'ed in call to file name handler.
14553 2003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
14555 * termcap.c (tgetst1): Scan for "%pN"; if all
14556 N are continuous in [1,9], remove all "%pN".
14558 2003-12-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14560 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
14562 * xfaces.c (lface_fully_specified_p): Take into account that
14563 MAC OS always have unspecified stipple.
14565 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
14567 * tparam.c (tparam1): Add handling for `%pN', which
14568 means use param N for the next substitution.
14570 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
14572 * xfaces.c (Fcolor_gray_p): Fix omission bug:
14573 In case `frame' is nil, consult the selected frame.
14574 (Fcolor_supported_p): Likewise.
14576 2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
14578 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
14581 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
14582 and an integer. Adapt the introductory comment accordingly.
14583 (Fread_from_minibuffer): Delete code moved into read_minibuf.
14585 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
14587 (Fcompleting_read): Delete code moved into read_minibuf.
14588 (Ftest_completion): Make it handle obarrays and hash tables correctly.
14590 2003-12-03 Kenichi Handa <handa@m17n.org>
14592 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
14595 2003-12-01 Kenichi Handa <handa@m17n.org>
14597 * composite.c (syms_of_composite): Don't make the compostion hash
14600 2003-11-30 Luc Teirlinck <teirllm@auburn.edu>
14602 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
14603 * textprop.c (Fget_char_property_and_overlay): New function.
14604 (syms_of_textprop): Defsubr it.
14606 2003-11-29 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14608 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
14609 to compile on terminal configuration.
14611 * fileio.c (Fread_file_name): Check use_file_dialog also before
14612 calling Fx_file_dialog.
14614 * fns.c (use_file_dialog): New variable.
14615 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
14617 2003-11-29 Kim F. Storm <storm@cua.dk>
14619 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
14620 (syms_of_msdos): Don't intern and staticpro them.
14622 2003-11-27 Kim F. Storm <storm@cua.dk>
14624 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
14625 coordinates relative to glyph at posn. If glyph is an image,
14626 return that as object at posn. Callers changed.
14627 (mode_line_string, marginal_area_string): Calculate and return
14628 pixel coordinates relative to glyph. Callers changed.
14630 * dispextern.h (buffer_posn_from_coords, mode_line_string)
14631 (marginal_area_string): Fix prototypes.
14632 (window_box_left_offset, window_box_right_offset): Add prototypes.
14634 * frame.h (get_specified_cursor_type, get_window_cursor_type):
14637 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
14639 * keyboard.c (make_lispy_position): Add x and y coordinates
14640 relative to the current glyph as 7th element of position.
14641 If glyph is an image, return it in the object element.
14642 (read_key_sequence): Skip checks for keymap property in cases
14643 where POSN_STRING is not a string (e.g. an image).
14645 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
14646 (Vshow_text_cursor_in_void): New variable.
14647 (glyph_to_pixel_coords): Don't use negative hpos.
14648 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
14649 (append_stretch_glyph): Change ascent arg to be actual value
14650 in pixels rather than ratio to height. Callers changed.
14651 (calc_pixel_width_or_height): New aux function, implementing
14652 pixel based artihmetic for glyph widths and heights.
14653 (produce_stretch_glyph): Use calc_pixel_width_or_height for
14654 :width, :height, :align-to, and :ascent, thus allowing these to
14655 be specified in pixels as well as multiples of characters.
14656 Don't produce stretch glyphs with zero width or height.
14657 (get_specified_cursor_type): Declare static.
14658 (get_window_cursor_type): Declare static. Add glyph arg to be
14659 able to know when cursor is on an image; always substitute
14660 hollow-box cursor for filled-box cursor on images, to avoid
14661 negative images and flicker when blinking the cursor.
14662 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
14663 (note_mode_line_or_margin_highlight): Use non-text cursor rather
14664 than vertical scroll-bar cursor in display margins.
14665 (note_mouse_highlight): Use non-text cursor rather than text
14666 cursor in fringes and over images in the text area.
14667 Use non-text cursor when mouse pointer is outside editable text,
14668 i.e. in the void after end-of-line or end-of-buffer; this was
14669 already done for W32, but is now standard for all systems --
14670 user can toggle show-text-cursor-in-void to get old behaviour.
14671 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
14672 Vdisplay_pixels_per_inch.
14674 2003-11-25 Andreas Schwab <schwab@suse.de>
14676 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
14677 EMACS_INT to not lose bits.
14678 (Ffillarray): Don't set bits beyond the size of a bool vector.
14680 2003-11-25 Kim F. Storm <storm@cua.dk>
14682 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
14683 define this defun on systems that cannot use stderr as lvalue.
14685 2003-11-24 Gerd Moellmann <gerd@gnu.org>
14687 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
14688 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
14689 ld's default is incompatible with unexec.
14691 2003-11-23 Kim F. Storm <storm@cua.dk>
14693 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
14694 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
14695 (Fforce_window_update): New defun.
14696 (syms_of_window): Defsubr it.
14697 (Fset_window_margins, Fset_window_fringes): Doc fix.
14699 * print.c (Fredirect_debugging_output): New defun.
14700 (syms_of_print): Defsubr it.
14702 2003-11-22 Luc Teirlinck <teirllm@auburn.edu>
14704 * fns.c (Fset_char_table_parent): Doc fix.
14706 2003-11-22 Kim F. Storm <storm@cua.dk>
14708 * dispnew.c (buffer_posn_from_coords): Return actual row/column
14709 for glyph clicked on, rather than (unused) pixel positions.
14710 (mode_line_string, marginal_area_string): Change X and Y args to
14711 pointers for returning actual row/column for glyph clicked on.
14712 Simplify and optimize loops.
14714 * dispextern.h (mode_line_string, marginal_area_string):
14717 * keyboard.c (make_lispy_position): New function for generating
14718 mouse click positions from frame and pixel coordinates.
14719 Enhanced to return buffer position and actual row/column for
14720 events outside the text area using updated mode_line_string and
14721 marginal_area_string functions.
14722 Return left-fringe and right-fringe clicks as such, rather than
14723 clicks in text area.
14724 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
14725 pixel_to_glyph_coords, as we never use the results.
14726 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
14727 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
14728 Eliminate unused code in WHEEL_EVENT handling.
14729 (make_lispy_movement): Use make_lispy_position.
14731 * window.c (coordinates_in_window): Remove redundant tests.
14732 Fix returned X pixel value for left-margin.
14734 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
14735 mode_line_string and marginal_area_string parameters.
14737 2003-11-22 Lars Hansen <larsh@math.ku.dk>
14739 * w32.c (struct the_group, getgrgid): Add.
14740 * mac.c (struct my_group, getgrgid): Add.
14742 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
14744 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
14746 2003-11-21 Lars Hansen <larsh@math.ku.dk>
14748 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
14749 include in call to file name handler. Optionally translate numeric
14750 UID and GID to strings. Update docstring.
14751 (directory_files_internal): Add parameter ID-FORMAT.
14752 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
14753 include in call to file name handler and call to
14754 directory_files_internal. Update Docstring.
14755 (Fdirectory_files): Add dummy parameter in call to
14756 directory_files_internal.
14757 * lisp.h (Qinteger): Add.
14758 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
14759 (Ffile_attributes): Add parameter.
14760 * data.c (Qinteger): Export.
14762 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
14764 * fns.c (Freverse, Fnreverse): Doc fixes.
14766 2003-11-19 Kim F. Storm <storm@cua.dk>
14768 * xdisp.c (init_iterator): Initialize it->start to position
14769 before reseating (in case start position is invisible).
14770 (init_to_row_start): Set it->start to row-start.
14771 (redisplay_window): Accept optional_new_start if start position
14772 is invisible (in which case IT_CHARPOS overshoots PT).
14773 (display_line): Setup row->start from it->start (rather than
14774 it->current which is wrong if first char on line is invisible).
14775 When done, reseat it->start to it->current (= start of next row).
14776 (expose_area): Fix exposure of text area when first char (e.g. TAB)
14777 is only partially visible.
14779 * dispextern.h (struct it): New member start.
14781 2003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
14783 * alloc.c (make_float, Fcons): Clear the markbit at init time.
14784 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
14785 of block_index outside of the macro call.
14786 (Fgarbage_collect): Remove null code.
14788 * m/amdx86-64.h: Don't redefine XPNTR.
14790 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
14793 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
14794 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
14795 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
14797 * lisp.h (VALMASK): Only define for non-union type.
14799 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
14800 (XTYPE): Define unconditionally.
14801 (XSETTYPE): Remove one more remnant.
14802 (EQ): Define differently for the union and non-union cases.
14803 (INTMASK): New bit mask.
14804 (struct Lisp_Marker): Move down to prepare for upcoming patch.
14805 (GC_EQ): Delegate to EQ.
14807 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
14809 2003-11-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14811 * xterm.c (x_window_to_scroll_bar): Move check of display to
14812 where window_id is compared.
14814 2003-11-17 Kim F. Storm <storm@cua.dk>
14816 * dispextern.h (struct it): New member first_vpos.
14818 * xdisp.c (start_display): Set it->first_vpos.
14819 (try_window_id): Use first_vpos to start display in first _text_
14820 line if no reusable lines at start of window with header line.
14822 2003-11-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14824 * w32fns.c (XPutPixel):
14825 * w32bdf.c (w32_init_bdf_font):
14826 * sunfns.c (sel_read):
14827 * process.c (Fmake_network_process):
14828 * frame.c (store_frame_param):
14829 * fontset.c (Fset_fontset_font):
14830 * emacs.c (shut_down_emacs):
14831 * ccl.c (ccl_driver): Remove period at end of error message.
14833 * config.in: Regenerate.
14835 * xfns.c (x_window_to_frame, x_any_window_to_frame)
14836 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
14837 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
14838 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
14839 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
14841 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
14843 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
14844 (XTmouse_position, handle_one_xevent): Pass Display* to
14845 x_window_to_scroll_bar.
14846 (x_window_to_scroll_bar): Take a Display* argument.
14847 Check that display for frame is equal to Display* argument.
14848 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
14849 x_display_info_for_display instead. Use Display in xev instead
14851 (x_dispatch_event): Call x_display_info_for_display.
14852 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
14853 (x_connection_closed): Call xg_display_close for GTK.
14854 (x_term_init): Call xg_display_open for additional displays.
14855 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
14858 * xmenu.c (single_menu_item, mouse_position_for_popup)
14859 (x_activate_menubar): Formatting adjustments.
14861 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
14864 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
14865 (xg_display_close, xg_create_default_cursor)
14866 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
14868 (xg_left_ptr_cursor): Remove.
14869 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
14871 (xg_win_to_widget): Take Display* argument, call
14872 gdk_xid_table_lookup_for_display.
14873 (xg_create_frame_widgets, xg_get_file_name, create_menus)
14874 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
14875 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
14876 in FRAME_X_DISPLAY_INFO.
14877 (xg_get_scroll_id_for_window): Take Display* argument.
14878 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
14879 (xg_initialize): Remove xg_left_ptr_cursor.
14881 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
14883 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
14885 2003-11-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14887 * xterm.c (x_detect_focus_change): Do not change focus frame for
14888 Enter/LeaveNotify if the current focus frame has explicit focus.
14890 2003-11-14 Kim F. Storm <storm@cua.dk>
14892 * dispnew.c (update_text_area): Fix redisplay error when hscroll
14893 is active and first glyph is only partially visible.
14895 2003-11-13 Kenichi Handa <handa@m17n.org>
14897 * xdisp.c (select_frame_for_redisplay): New function.
14898 (redisplay_internal): Record also selected_frame for
14899 unwind_redisplay. Call select_frame_for_redisplay before
14900 redrawing each frame.
14901 (unwind_redisplay): Argument changed to a cons.
14903 2003-11-12 Luc Teirlinck <teirllm@auburn.edu>
14905 * fns.c (Fstring_to_multibyte): Doc fix.
14907 2003-11-11 Kenichi Handa <handa@m17n.org>
14909 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
14911 2003-11-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14913 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
14914 program specified positions.
14916 2003-11-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14918 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
14920 2003-11-08 Kenichi Handa <handa@m17n.org>
14922 * Makefile.in (lisp): Add kannada.el.
14923 (shortlisp): Likewise.
14925 2003-11-07 Kenichi Handa <handa@m17n.org>
14927 * coding.c (coding_allocate_composition_data):
14928 Reset coding->composing to COMPOSITION_NO.
14929 (coding_restore_composition): Detect invalid composition data.
14930 Give Fstring and Fvector a Lispy integer, not C int.
14932 2003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
14934 * floatfns.c (Flogb): Don't use VALMASK.
14936 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
14937 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
14939 * lisp.h (XINT): Move the cast to clarify what is going on.
14940 (GCTYPEMASK, XSETTYPE): Remove.
14941 (XGCTYPE): Make it an alias of XTYPE.
14943 2003-11-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14945 * xterm.c (x_term_init): Fix formatting.
14947 2003-11-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14949 * gtkutil.h (xg_have_tear_offs): Declare.
14950 (xg_keep_popup, xg_did_tearoff): Remove.
14952 * gtkutil.c: Remove variable xg_did_tearoff.
14953 (xg_have_tear_offs): New function.
14954 (tearoff_remove): Just decrease xg_detached_menus.
14955 (tearoff_activate): Increase xg_detached_menus and call
14956 tearoff_remove when tearoff is removed.
14957 (xg_keep_popup): Remove function.
14958 (create_menus): Give add_tearoff_p as argument to recursive
14959 call to create_menus.
14960 (xg_create_widget): Use variables instead of multiple
14961 strcmp. Tell create_menus to create tear off only for
14963 (xg_update_menubar): Change title for a detached menu also.
14964 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
14966 (xg_initialize): Initialize xg_detached_menus, remove
14967 initialization of xg_did_tearoff.
14969 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
14970 xg_have_tear_offs returns non-zero.
14971 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
14972 call to xg_keep_popup.
14974 2003-11-01 Andrew Choi <akochoi@shaw.ca>
14976 * macterm.c (XTread_socket): Handle menubar selection and grow
14977 window only for mouseDown events.
14979 2003-10-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14981 * xterm.c (x_term_init): For GTK part, increase x_initialized
14982 to check for more than one display. Use error instead of return 0.
14984 2003-10-31 Andrew Choi <akochoi@shaw.ca>
14986 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
14987 (copy_dysymtab): Call it.
14989 2003-10-31 Luc Teirlinck <teirllm@auburn.edu>
14991 * eval.c (Fdefvaralias): Doc fix.
14993 2003-10-26 Luc Teirlinck <teirllm@auburn.edu>
14995 * data.c (Fsetplist): Doc fix.
14997 2003-10-14 Lute Kamstra <lute@gnu.org>
14999 * window.c (Fset_window_fringes): Clarify docstring.
15001 2003-10-14 Kim F. Storm <storm@cua.dk>
15003 * window.c (Fset_window_margins): Simplify arg checking.
15005 2003-10-13 Richard M. Stallman <rms@gnu.org>
15007 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
15008 (print_partial_compiled_pattern): Replace assert with a printout.
15009 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
15011 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
15013 * window.c (Fset_window_margins): Allow only integers as args.
15014 (syms_of_window) <special-display-buffer-names,
15015 special-display-regexps>: Doc fixes.
15017 2003-10-13 Lute Kamstra <lute@gnu.org>
15019 * window.c (Fset_window_fringes): Elaborate docstring.
15021 2003-10-12 Andrew Choi <akochoi@shaw.ca>
15023 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
15025 * s/darwin.h (GC_MARK_STACK): Define.
15027 2003-10-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15029 * window.c (shrink_windows): New function.
15030 (size_window): Call shrink_windows to calculate window sizes when
15031 shrinking frame with more than one window.
15033 2003-10-12 Kim F. Storm <storm@cua.dk>
15035 * xdisp.c (compute_fringe_widths): Doc fix.
15037 2003-10-08 Kenichi Handa <handa@m17n.org>
15039 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
15041 2003-10-07 Kenichi Handa <handa@m17n.org>
15043 * coding.c (Qcoding_system_define_form): New variable.
15044 (syms_of_coding): Intern and staticpro it.
15045 (Fcheck_coding_system): Try to autoload the definition of
15048 2003-10-05 Luc Teirlinck <teirllm@auburn.edu>
15050 * fns.c (Frequire): Doc fix.
15052 2003-10-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15054 * xfns.c (Fx_send_client_event): New function as a base for
15055 manipulating extended window manager hints.
15056 (Fx_send_client_event): Remove unused variable s.
15058 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
15059 that function is removed.
15061 * xterm.c (x_set_offset): Use move_offset_left/top instead of
15062 x/y_pixels_outer_diff.
15063 (x_check_expected_move): Calculate move_offset_left/top.
15065 * xterm.h (struct x_output): New members: move_offset_top/left.
15067 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
15068 call x_set_offset directly.
15070 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
15072 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
15074 * xterm.c (x_delete_display): Free font names and font_encoder
15075 in dpyinfo->font_table.
15077 * xfns.c (Fx_close_connection): Only call XFreeFont here.
15078 Move xfree of font names to x_delete_display.
15080 * xterm.h (struct x_display_info): New member, wm_type.
15081 (struct x_output): New members, expected_top/left and
15082 check_expected_move.
15084 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
15086 (handle_one_xevent): Rename x_check_expected_move from
15087 x_check_fullscreen_move.
15088 (x_set_offset): Only add WM decoration sizes to modified_top/left
15089 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
15090 (x_check_expected_move): Rename from x_check_fullscreen_move.
15091 Removed fullscreen specific code. Use check_expected_move,
15092 expected_left/top instead. Also, set wm_type.
15093 (x_term_init): Initialize wm_type to unknown.
15095 * frame.c (x_fullscreen_move): Remove addition of WM decoration
15098 2003-10-03 Kenichi Handa <handa@m17n.org>
15100 * macterm.c (x_load_font): Clear all members of FONTP before start
15103 2003-10-02 Kenichi Handa <handa@m17n.org>
15105 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
15106 before calling find_ccl_program_func. Call find_ccl_program_func
15107 only when fontp->font_encoder is not NULL.
15109 * xterm.c (x_load_font): Clear all members of FONTP before start
15112 2003-10-03 John Paul Wallington <jpw@gnu.org>
15114 * keymap.c (map_keymap): Don't abort when binding is a vector.
15116 2003-10-02 Jason Rumney <jasonr@gnu.org>
15118 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
15119 Sync dependencies with Makefile.in.
15120 (alloca.o): Remove.
15122 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
15125 * w32bdf.c (w32_load_bdf_font): Likewise.
15127 2003-09-30 Richard M. Stallman <rms@gnu.org>
15129 * term.c (set_tty_color_mode): Calculate current_mode_spec
15130 regardless of value of VAL.
15132 * intervals.c (graft_intervals_into_buffer):
15133 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
15134 Handle over_used when splitting UNDER.
15136 2003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15138 * regex.c (regex_compile): Free the stack when returning from function.
15140 2003-09-28 Kenichi Handa <handa@m17n.org>
15142 * fontset.c (Finternal_char_font): Change return value to
15143 cons (FONT-NAME . GLYPH-CODE).
15145 2003-09-28 Eli Zaretskii <eliz@gnu.org>
15147 * term.c (tty_setup_colors): Treat any negative argument as -1.
15149 2003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
15151 * process.c (send_process): Delete unused temp_buf.
15153 2003-09-26 Dave Love <fx@gnu.org>
15155 * xterm.c (x_bitmap_mask): Declare.
15157 2003-09-25 Dave Love <fx@gnu.org>
15159 * Makefile.in (fns.o): Depend on md5.h.
15161 2003-09-25 Kim F. Storm <storm@cua.dk>
15163 * window.c (set_window_buffer): Fix redisplay problems when
15164 switching between buffers with different display margin widths.
15166 2003-09-23 Kim F. Storm <storm@cua.dk>
15168 * process.c (set_socket_option): Fix :bindtodevice option.
15169 (Fset_network_process_option): Update process contact list when
15170 setting option succeeds.
15171 (Fmake_network_process): Doc fix.
15173 2003-09-23 Dave Love <fx@gnu.org>
15175 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
15177 2003-09-22 Eli Zaretskii <eliz@gnu.org>
15179 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
15180 color mode is an integer number (it could be -1).
15182 2003-09-22 Richard M. Stallman <rms@gnu.org>
15184 * intervals.c (graft_intervals_into_buffer): Correct the main loop
15185 in the case where OVER is longer than UNDER.
15187 2003-09-22 Masatake YAMATO <jet@gyve.org>
15189 * window.c (Fset_window_scroll_bars): Validate the value of
15192 2003-09-21 Kim F. Storm <storm@cua.dk>
15194 * frame.c (Vdefault_frame_scroll_bars): New variable.
15195 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
15196 (syms_of_frame): DEFVAR_LISP it, and initialize according to
15197 window-system default scroll bar position.
15199 * window.c (Fwindow_scroll_bars): Doc fix.
15201 2003-09-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15203 * xterm.c (x_set_offset): Take window manager decorations into account.
15205 2003-09-19 Richard M. Stallman <rms@gnu.org>
15207 * atimer.h: Don't include lisp.h.
15208 (P_): Define it here (as well as elsewhere).
15210 * print.c (Fprin1_to_string): Move the PRINTPREPARE
15211 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
15213 * data.c (Fvariable_binding_locus): New function.
15214 (syms_of_data): defsubr it.
15215 (Flocal_variable_p): Delete duplicate call to indirect_variable.
15217 2003-09-18 Dave Love <fx@gnu.org>
15219 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
15221 * process.c (Fnetwork_interface_info): Fix type error.
15222 (Fnetwork_interface_list): Doc fix.
15223 (read_process_output, read_process_output): Delete unused var.
15225 2003-09-17 Kim F. Storm <storm@cua.dk>
15227 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
15228 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
15229 (Fnetwork_interface_info): Check that ifreq struct has required
15230 fields before accessing them; this requires that those fields are
15231 defined as macros, which may be too restrictive on some platforms,
15232 but it is better than failing on other platforms.
15233 (syms_of_process): Only defsubr above fns when included.
15235 2003-09-17 Dave Love <fx@gnu.org>
15237 * unexalpha.c: Don't include varargs.h.
15239 2003-09-17 Kim F. Storm <storm@cua.dk>
15241 * process.c (Fset_process_sentinel): Add sentinel to childp plist
15242 for network process.
15243 (socket_options): Add `:' prefix to option names. Add optbit field.
15244 (set_socket_option): Remove no_error arg and special handling of s < 0.
15245 Return 1<<optbit for known option, 0 for unknown.
15246 Do not interpret 0 as false for boolean option (only nil).
15247 Pass failed option and value to report_file_error.
15248 (Fset_network_process_options): Replace by Fset_network_process_option.
15249 (Fset_network_process_option): New function to set just one option.
15250 (Fmake_network_process): Allow :coding arg to be a cons.
15251 Allow :server arg to be an integer specifying backlog size.
15252 Remove :options arg, and allow options to be specified directly
15253 as :KEY, VALUE pairs. Parse these options before binding socket.
15254 As before, :reuseaddr t is default for a server process, but this
15255 can now be disabled by specifying :reuseaddr nil.
15256 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
15257 (init_process): Availability of network options is now checked with
15258 simpler syntax (featurep 'make-network-process :OPTION); use loop to
15260 (syms_of_process): Fix defsubr's for the replaced functions.
15262 2003-09-16 Dave Love <fx@gnu.org>
15264 * Makefile.in: Depend on coding.h.
15266 2003-09-14 Kim F. Storm <storm@cua.dk>
15268 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
15269 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
15270 (syms_of_process): Defsubr them.
15272 * config.in: Regenerate.
15274 2003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
15276 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
15277 * m/news-r6.h (XUNMARK): Remove.
15278 * m/mips.h (XUNMARK): Remove.
15279 * m/mips-siemens.h (XUNMARK): Remove.
15280 * m/iris4d.h (XUNMARK): Remove.
15281 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
15283 2003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
15285 * lisp.h (VALBITS): Don't remove 1 for the markbit.
15286 (union Lisp_Object): Use unsigned int for types. Remove markbit.
15287 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
15288 (XTYPE): Use unsigned right-shift.
15289 (XMARKBIT, XMARK, XUNMARK): Remove.
15291 * alloc.c (init_intervals, init_symbol, init_marker):
15292 Don't preallocate anything.
15293 (Fgarbage_collect, mark_object): Ignore the markbit.
15295 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
15297 2003-09-08 Lute Kamstra <lute@gnu.org>
15299 * xdisp.c (pint2hrstr): New function.
15300 (decode_mode_spec): Add `%i' and `%I' specs.
15301 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
15302 for `mode-line-format'.
15304 2003-09-07 Andreas Schwab <schwab@suse.de>
15306 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
15309 2003-09-07 Eli Zaretskii <eliz@gnu.org>
15311 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
15313 2003-09-03 Kim F. Storm <storm@cua.dk>
15315 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
15316 change (superseded by 2002-08-30 change); the default blink-off
15317 cursor is now again "no cursor".
15319 2003-09-01 Jason Rumney <jasonr@gnu.org>
15321 * makefile.w32-in (alloca.o): Remove.
15322 (coding.o): Depend on intervals.h
15323 (emacs.o, bytecode.o): Depend on window.h
15325 2003-09-01 Dave Love <fx@gnu.org>
15327 * Makefile.in (alloca.o): Remove commands.
15328 (coding.o): Depend on intervals.h composite.h window.h.
15329 (emacs.o): Depend on window.h keyboard.h keymap.h.
15330 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
15331 (bytecode.o): Depend on window.h.
15333 2003-08-31 Jason Rumney <jasonr@gnu.org>
15335 * w32term.c (w32_per_char_metric): Allow cached metrics to be
15336 returned even when font_type is unknown.
15338 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
15340 2003-08-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15342 * xterm.c (x_term_init): Initialize new fields in x_display_info.
15344 * xterm.h (struct x_display_info): Add red/green/blue_bits and
15347 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
15348 calculate pixel value.
15350 2003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
15352 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
15353 Don't tell redisplay display is accurate when it's actually been
15354 paused for pending input.
15356 2003-08-29 Richard M. Stallman <rms@gnu.org>
15358 * dispnew.c (adjust_glyph_matrix): Call window_box
15359 whenever W is nonzero.
15361 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15362 (Fkill_local_variable, Fmake_variable_frame_local)
15363 (Flocal_variable_p, Flocal_variable_if_set_p):
15364 Use indirect_variable to trace thru variable aliases.
15366 * config.in: Updated.
15368 * callint.c (Fcall_interactively): Save and restore
15369 Vthis_command, Vthis_original_command, real_this_command,
15370 and current_kboard->Vlast_command.
15372 * abbrev.c (Fexpand_abbrev): Insert before deleting.
15374 2003-08-29 Gerd Moellmann <gerd@gnu.org>
15376 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
15378 2003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
15380 * coding.c (decode_coding_iso2022): Initialize local variable c2.
15381 (decode_coding_sjis_big5): Likewise.
15383 2003-08-27 Jason Rumney <jasonr@gnu.org>
15385 * w32.c (sys_pipe): Protect against file descriptor overflow.
15387 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
15389 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
15391 2003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
15393 * xfns.c (Vgtk_version_string): New variable.
15394 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
15396 2003-08-24 Eli Zaretskii <eliz@gnu.org>
15398 * term.c (term_init): Remove `const' from buffer_size's declaration.
15400 * Makefile.in (msdos.o): Depend on intervals.h.
15402 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
15404 2003-08-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15406 * xterm.h (struct x_display_info): New fields: client_leader_window
15407 and Xatom_wm_client_leader.
15409 * xterm.c (x_initialize): Move call to x_session_initialize to ...
15410 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
15412 * xsmfns.c (create_client_leader_window): New function.
15413 (x_session_initialize): Call create_client_leader_window, take
15414 dpyinfo as argument.
15416 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
15418 * Makefile.in (xsmfns.o): Add more depenedencies.
15420 2003-08-21 Dave Love <fx@gnu.org>
15422 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
15424 2003-08-21 Kenichi Handa <handa@m17n.org>
15426 * term.c (term_init): Fix previous change; don't rely on the
15427 length of `buffer' if TERMINFO is defined.
15429 2003-08-20 Dave Love <fx@gnu.org>
15431 * atimer.h: Include lisp.h.
15433 * lisp.h (EMACS_LISP_H): New.
15434 (popup_activated_flag): Don't declare.
15436 * alloca.c: Some merging with gnulib. Change logic and doc
15437 concerning (x)malloc/(x)free -- no longer Emacs-specific.
15438 [DO_BLOCK_INPUT]: Don't include lisp.h.
15439 (xmalloc, xfree): Declare.
15440 (malloc): Don't declare.
15442 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
15443 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
15444 atimer.h, blockinput.h.
15446 * alloc.c (lisp_align_malloc): Change type of `aligned'.
15448 * alloca.s: Remove.
15450 2003-08-19 Gerd Moellmann <gerd@gnu.org>
15452 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
15455 * term.c (term_init): Use a buffer of size 4096 for tgetent since
15456 FreeBSD returns something longer than 2044. Abort if the end of
15457 the buffer is overwritten.
15459 2003-08-19 Miles Bader <miles@gnu.org>
15461 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
15463 2003-08-19 Gerd Moellmann <gerd@gnu.org>
15465 * alloc.c (lisp_align_malloc): Check for memory full when
15466 allocating ablocks, which also avoids freeing a pointer into an
15469 * puresize.h (BASE_PURESIZE): Increase to 1100000.
15471 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
15473 2003-08-16 Richard M. Stallman <rms@gnu.org>
15475 * editfns.c (Fencode_time): Doc fix.
15477 2003-08-16 David Ponce <david@dponce.com>
15479 * fileio.c (Fwrite_region): Fix conditional expression to issue
15482 2003-08-16 Juri Linkov <juri@jurta.org>
15484 * syntax.c (Fforward_word): Argument changed to optional.
15485 Set default value to 1.
15487 2003-08-15 Kenichi Handa <handa@m17n.org>
15489 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
15491 (best_matching_font): Once we find a better scalable font, set
15492 non_scalable_has_exact_height_p to 1.
15493 (try_font_list): Call try_alternative_families to try any family
15494 with the given registry.
15496 2003-08-09 Andreas Schwab <schwab@suse.de>
15498 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
15500 * print.c (print_string): Fix printing of multibyte string with
15501 nontrivial printcharfun.
15503 2003-07-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15505 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
15507 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
15509 2003-07-31 Kenichi Handa <handa@m17n.org>
15511 * process.c (read_process_output): Return the actually read bytes
15512 instead of the result of decoding.
15514 2003-07-31 Kenichi Handa <handa@m17n.org>
15516 * xterm.h (struct x_bitmap_record): New member have_mask.
15518 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
15520 (x_create_bitmap_from_file): Likewise.
15521 (x_destroy_bitmap): Check have_mask member before freeing a mask.
15522 (x_destroy_all_bitmaps): Likewise.
15523 (x_create_bitmap_mask): Set have_mask member to 1.
15525 2003-07-30 Richard M. Stallman <rms@gnu.org>
15527 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
15529 2003-07-29 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15531 * gtkutil.c (xg_mark_data): Update calls to mark_object.
15533 2003-07-29 Richard M. Stallman <rms@gnu.org>
15535 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
15536 Conditionalize XIM code on HAVE_XIM.
15538 * fns.c (Fclear_string): New function.
15539 (syms_of_fns): defsubr it.
15541 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
15543 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
15545 2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
15547 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
15549 * buffer.c (delete_all_overlays): New function.
15550 * buffer.h (delete_all_overlays): Declare.
15551 * coding.c (run_pre_post_conversion_on_str):
15552 * print.c (temp_output_buffer_setup):
15553 * fileio.c (Finsert_file_contents):
15554 * minibuf.c (get_minibuffer): Use it.
15556 2003-07-22 Andrew Choi <akochoi@shaw.ca>
15558 * unexmacosx.c (unexec_regions_sort_compare):
15559 (unexec_regions_merge): New functions. Sort and merge unexec
15560 regions before dumping them.
15562 2003-07-22 Dave Love <fx@gnu.org>
15564 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
15566 2003-07-21 Stefan Monnier <monnier@cs.yale.edu>
15568 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
15569 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
15570 MARKBIT as the gcmarkbit for strings.
15572 2003-07-21 Richard M. Stallman <rms@gnu.org>
15574 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
15576 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
15577 (syms_of_fns): Corresponding change.
15579 * alloc.c (syms_of_alloc): Doc fixes.
15581 2003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
15583 * s/netbsd.h: Use -Wl syntax.
15585 2003-07-17 Richard M. Stallman <rms@gnu.org>
15587 * xterm.c (xim_initialize): Redo 6/24 change.
15589 2003-07-15 Stefan Monnier <monnier@cs.yale.edu>
15591 * buffer.c (copy_overlays): Use EMACS_INT for positions.
15592 (Fswitch_to_buffer): Don't signal an error when switching to the same
15593 buffer in a dedicated window.
15595 * alloc.c: Use bitmaps for cons, as was done for floats.
15596 (init_float, init_cons): Let the normal code allocate the first block.
15597 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
15598 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
15600 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
15601 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
15602 (live_cons_p): Check the pointer is not past the `conses' array.
15603 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
15604 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
15605 (survives_gc_p): Use CONS_MARKED_P and simplify.
15606 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
15608 2003-07-13 Paul Eggert <eggert@twinsun.com>
15610 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
15611 puts it into BSS instead, at least on Solaris 8 and 9.
15612 This is a valid optimization, and it may occur on other platforms,
15613 so Emacs should not assume that initializing a static variable to
15614 zero puts it into data.
15615 * alloc.c (pure, staticvec):
15616 Initialize these arrays to nonzero, so that they're not
15617 put into BSS by that optimization.
15619 2003-07-13 Stefan Monnier <monnier@cs.yale.edu>
15621 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
15622 (lisp_align_malloc): Use posix_memalign is available.
15623 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
15624 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
15625 for consistency. Update users.
15627 2003-07-13 Richard M. Stallman <rms@gnu.org>
15629 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
15631 2003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
15633 * xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap): Modify to add mask,
15634 and use the Gtk+ function gtk_window_icon_from_file if available.
15636 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
15637 handle mask of bitmaps.
15638 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
15640 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
15642 * xterm.h (xg_set_icon): New function.
15644 2003-07-12 Paul Eggert <eggert@twinsun.com>
15646 * unexelf.c (unexec): Consider a section to precede the .bss
15647 section if its addresses overlap that of .bss.
15649 2003-07-12 Richard M. Stallman <rms@gnu.org>
15651 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
15653 * config.in (HAVE_CRTIN): Add #undef.
15654 (INLINE): Really inline only if OPTIMIZE is defined.
15656 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
15658 (START_FILES_1, END_FILES_1): New macros (conditional).
15659 (LD_SWITCH_SYSTEM_TEMACS): Define.
15661 * s/openbsd.h: Don't include bsd4-3.h.
15662 (TERMINFO): Define.
15663 (LIBS_TERMCAP): Define.
15664 (LD_SWITCH_SYSTEM): Define (two definitions).
15666 * xfns.c: Include libpng/png.h instead of png.h.
15668 2003-07-11 Andreas Schwab <schwab@suse.de>
15670 * buffer.c (modify_overlay): Update prototype.
15671 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
15674 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
15676 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
15677 (struct interval): Move to intervals.h.
15678 (struct Lisp_Marker): Use EMACS_INT for position info.
15679 (forward_point): Remove prototype of defunct function.
15680 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
15681 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
15682 (syms_of_textprop, set_text_properties): Remove prototypes that are
15683 already in intervals.h.
15685 * intervals.h (struct interval): Move from lisp.h.
15686 Use EMACS_INT for position and size info.
15688 * coding.c: Include intervals.h for Fset_text_properties.
15690 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
15691 position and length information.
15693 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
15695 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
15696 position and length information.
15698 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
15700 Change overlays_after and overlays_before so the overlays themselves
15701 are linked into lists, rather than using cons cells. After all each
15702 Lisp_Misc already occupies 5 words, so we can add a `next' field to
15703 Lisp_Overlay for free and save up one cons cell per overlay (not
15704 to mention one indirection when traversing the list of overlay).
15706 * lisp.h (struct Lisp_Overlay): New field `next'.
15708 * buffer.h (struct buffer): Change overlays_before and overlays_after
15709 from Lisp lists of overlays to pointers to overlays.
15711 * buffer.c (overlay_strings, recenter_overlay_lists):
15712 Fix typo in eassert in last commit.
15713 (unchain_overlay): New function.
15714 (add_overlay_mod_hooklist): Use AREF.
15715 (copy_overlays, reset_buffer, overlays_at, overlays_in)
15716 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
15717 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
15718 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
15719 (report_overlay_modification, evaporate_overlays, init_buffer_once):
15720 Adjust to new type of overlays_(before|after).
15722 * alloc.c (mark_object): Mark the new `next' field of overlays.
15723 (mark_buffer): Manually mark the overlays_(after|before) fields.
15725 * coding.c (run_pre_post_conversion_on_str):
15726 * editfns.c (overlays_around):
15727 * xdisp.c (load_overlay_strings):
15728 * fileio.c (Finsert_file_contents):
15729 * indent.c (current_column):
15730 * insdel.c (signal_before_change, signal_after_change):
15731 * intervals.c (set_point_both):
15732 * print.c (temp_output_buffer_setup): Use new type for
15733 overlays_(before|after).
15735 2003-07-08 Stefan Monnier <monnier@cs.yale.edu>
15737 * buffer.c (report_overlay_modification): Don't run hooks while
15738 traversing the list of overlays.
15740 * buffer.h (struct buffer): Use an int for overlay_center.
15741 (overlays_at, evaporate_overlays, recenter_overlay_lists)
15742 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
15744 * buffer.c (reset_buffer, recenter_overlay_lists)
15745 (adjust_overlays_for_insert, adjust_overlays_for_delete)
15746 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
15747 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
15748 (overlays_at, evaporate_overlays, recenter_overlay_lists)
15749 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
15751 * xdisp.c (fast_find_position): Remove unused var.
15753 * cmds.c (Qexpand_abbrev): New sym.
15754 (syms_of_cmds): Initialize it.
15755 (internal_self_insert): Use it to call expand-abbrev.
15757 2003-07-09 Kim F. Storm <storm@cua.dk>
15759 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
15760 was configured with --without-xim.
15761 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
15763 2003-07-07 Richard M. Stallman <rms@gnu.org>
15765 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
15767 * alloc.c (Fgarbage_collect): Doc fix.
15769 2003-07-07 Nozomu Ando <nand@mac.com>
15771 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
15773 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
15775 * minibuf.c (read_minibuf): UNGCPRO before returning.
15776 (Ftry_completion, Fall_completions): Doc fix.
15778 * alloc.c (live_float_p): Check that p is not past the `floats' array,
15779 now that `floats' is not the last element of the struct any more.
15781 2003-07-06 Jason Rumney <jasonr@gnu.org>
15783 * w32term.h (ClipboardSequence_Proc): New type.
15785 * w32fns.c (clipboard_sequence_fn): New variable.
15786 (globals_of_w32fns): Initialize it.
15788 * w32select.c (last_clipboard_sequence_number): New variable.
15789 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
15790 number if possible.
15792 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
15794 * m/amdx86-64.h (MARKBIT):
15795 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
15796 MARKBIT and ARRAY_MARK_FLAG any more.
15798 * m/hp800.h (XSETMARKBIT):
15799 * m/sr2k.h (XSETMARKBIT):
15800 * lisp.h (XSETMARKBIT): Remove unused macro.
15802 * lisp.h (mark_object): Change prototype.
15804 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
15805 (last_marked): Change accordingly.
15806 (mark_interval, mark_maybe_object, mark_maybe_pointer)
15807 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
15808 (mark_buffer): Update calls to mark_object.
15810 * bytecode.c (mark_byte_stack):
15811 * fns.c (sweep_weak_table):
15812 * keyboard.c (mark_kboards): Update calls to mark_object.
15814 2003-07-06 Jason Rumney <jasonr@gnu.org>
15816 * alloc.c (struct ablock): Only include padding when there is some.
15818 2003-07-04 Stefan Monnier <monnier@cs.yale.edu>
15820 * alloc.c (ALIGN): Add casts to simplify usage.
15821 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
15822 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
15823 (struct ablock, struct ablocks): New types.
15824 (free_ablock): New global var.
15825 (lisp_align_malloc, lisp_align_free): New functions.
15826 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
15827 (struct float_block): Reorder and add gcmarkbits.
15828 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
15829 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
15830 (init_float, make_float): Use lisp_align_malloc.
15831 (free_float, live_float_p): Don't use `type' any more.
15832 (make_float): Use FLOAT_UNMARK to access to mark bit.
15833 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
15834 Use FLOAT_MARKED_P to access the mark bit.
15835 (pure_alloc): Simplify use of ALIGN.
15836 (mark_object): Use FLOAT_MARK to access the mark bit.
15837 (gc_sweep): Use new macros to access the float's mark bit.
15838 (init_alloc_once): Init free_ablock.
15840 * lisp.h (struct Lisp_Float): Remove unused field `type'.
15842 2003-06-27 Stefan Monnier <monnier@cs.yale.edu>
15844 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
15845 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
15846 (allocate_buffer): Move.
15847 (string_bytes): Don't mask markbit of `size_byte'.
15848 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
15849 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
15850 Use the `size' field of buffers (rather than the `name' field) for
15851 the mark bit, as is done for all other vectorlike objects.
15852 Use the new macros to access the mark bit of vectorlike objects.
15854 2003-06-26 Richard M. Stallman <rms@gnu.org>
15856 * puresize.h (BASE_PURESIZE): Increment base size.
15858 * xdisp.c (fast_find_position): Enable Gerd's new definition.
15860 * xterm.c (xim_initialize): Undo previous change.
15862 2003-06-26 Stefan Monnier <monnier@cs.yale.edu>
15864 * alloc.c (survives_gc_p): Simplify.
15866 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
15868 * window.c (Fset_window_dedicated_p): Simplify.
15869 (display_buffer_1): Don't raise the win from which minibuf was entered.
15870 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
15871 (Fminibuffer_selected_window): Simplify.
15873 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
15875 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
15876 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
15878 * insdel.c (check_markers, adjust_markers_for_delete)
15879 (adjust_markers_for_insert, adjust_markers_for_replace)
15880 (prepare_to_modify_buffer, RESTORE_VALUE):
15881 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
15882 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
15883 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
15884 * alloc.c (Fmake_marker, free_marker, gc_sweep):
15885 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
15886 * editfns.c (save_excursion_restore, transpose_markers):
15887 * window.c (delete_window):
15888 * xdisp.c (message_dolog): Update for new types.
15890 2003-06-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15892 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
15893 (realize_default_face): Use default_face_done_p for the force_p
15894 argument to set_lface_from_font_name. Set default_face_done_p to one.
15896 * frame.c (make_frame): Initialize default_face_done_p.
15898 * frame.h (struct frame): Add default_face_done_p.
15900 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
15903 2003-06-25 Stefan Monnier <monnier@cs.yale.edu>
15905 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
15906 Initialize the new field `gcmarkbit'.
15907 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
15908 (mark_interval_tree): Don't mark the tree separately from the nodes.
15909 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
15910 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
15911 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
15913 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
15914 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
15915 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
15916 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
15917 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
15919 2003-06-24 Dave Love <fx@gnu.org>
15921 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
15923 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
15926 2003-06-21 Richard M. Stallman <rms@gnu.org>
15928 * fileio.c (Fwrite_region): Alternate messages
15929 for append and partial write.
15931 * keyboard.c (read_key_sequence): When converting upcase fn key to
15932 downcase, update fkey and keytran so `backspace' gets translated.
15934 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
15936 * process.c (wait_reading_process_input): Don't signal SIGIO
15939 2003-06-17 Kenichi Handa <handa@m17n.org>
15941 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
15944 * xselect.c: Don't include charset.h, coding.h, composite.h.
15945 (Qforeign_selection): New variable.
15946 (syms_of_xselect): Intern and static it.
15947 (selection_data_to_lisp_data): Return a unibyte string made from
15948 data with `foreign-selection' text property.
15950 2003-06-15 Stefan Monnier <monnier@cs.yale.edu>
15952 * termhooks.h (EVENT_INIT): New macro.
15954 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
15956 * alloc.c (mark_kboards): Move to keyboard.c.
15958 * keyboard.c (record_asynch_buffer_change, read_avail_input):
15959 * xterm.c (x_dispatch_event):
15960 * xmenu.c (find_and_call_menu_selection):
15961 * xdisp.c (handle_tool_bar_click):
15962 * w32menu.c (menubar_selection_callback):
15963 * sysdep.c (kbd_input_ast, read_input_waiting):
15964 * msdos.c (dos_rawgetc):
15965 * macterm.c (mac_check_for_quit_char):
15966 * macmenu.c (menubar_selection_callback):
15967 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
15968 data to kbd_buffer_store_event.
15970 2003-06-15 Kim F. Storm <storm@cua.dk>
15972 * xdisp.c (x_fix_overlapping_area): Always use area relative X
15973 to fix redisplay problem with tall characters (such as
\e,AC
\e(B).
15975 2003-06-13 Kai Gro
\e,A_
\e(Bjohann <kai.grossjohann@gmx.net>
15977 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
15979 2003-06-12 Kenichi Handa <handa@m17n.org>
15981 * fileio.c (Fwrite_region): Save and restore restriction.
15983 2003-06-12 Dave Love <fx@gnu.org>
15985 * alloca.c (alloca): Declare arg as size_t.
15987 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
15988 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
15990 2003-06-11 Dave Love <fx@gnu.org>
15992 * search.c (shrink_regexp_cache): Use xrealloc.
15993 (syms_of_search): Use xmalloc.
15995 2003-06-10 Kim F. Storm <storm@cua.dk>
15997 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
15998 Adjust phys_cursor.x to be relative to window box, rather than
15999 text area before checking -- to ensure cursor is redrawn when
16001 Note: This also fixes a similar (older) bug if display margins
16004 2003-06-06 Kenichi Handa <handa@m17n.org>
16006 * coding.c (encoding_buffer_size): If coding->type is
16007 coding_type_ccl, double magnification on CRLF encoding.
16009 2003-06-06 Jason Rumney <jasonr@gnu.org>
16011 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
16012 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
16014 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
16017 2003-06-05 Dave Love <fx@gnu.org>
16019 * strftime.c: Merge changes from gnulib.
16021 * mktime.c (__mktime_internal): Merge changes from gnulib
16022 involving year 69 and dst2.
16024 Changes to merge with gnulib version and be consistent with the
16027 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
16028 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
16029 [HAVE_LOCALE_H]: Include locale.h.
16030 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
16032 2003-06-05 Kim F. Storm <storm@cua.dk>
16034 * window.c (coordinates_in_window): Convert X and Y to window
16035 relative coordinates inside mode-line and header-line parts.
16036 Convert X and Y to margin area relative coordinates inside left
16037 and right display margin parts.
16039 2003-06-05 Jason Rumney <jasonr@gnu.org>
16041 * w32fns.c (add_system_logical_colors_to_map): New function.
16042 (Fx_open_connection): Use it.
16044 2003-06-04 Stefan Monnier <monnier@cs.yale.edu>
16046 * process.c (allocate_pty): Revert part of the previous patch.
16047 (Faccept_process_output): Simplify.
16049 2003-06-04 Jason Rumney <jasonr@gnu.org>
16051 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
16053 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
16054 (lispy_mouse_wheel_names): Remove.
16055 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
16056 Always define drag_and_drop_syms.
16058 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
16059 WHEEL_EVENT events.
16061 2003-06-03 Stefan Monnier <monnier@cs.yale.edu>
16063 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
16065 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
16067 2003-06-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16069 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
16072 2003-06-03 Richard M. Stallman <rms@gnu.org>
16074 * window.c (Fwindow_edges): Doc fix.
16075 (Fwindow_pixel_edges, Fwindow_inside_edges)
16076 (Fwindow_inside_pixel_edges): New functions.
16077 (syms_of_window): defsubr them.
16079 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
16080 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
16082 2003-06-02 Stefan Monnier <monnier@cs.yale.edu>
16084 * dispnew.c (Fsit_for): Don't lie about the number of args.
16086 2003-06-02 Dave Love <fx@gnu.org>
16088 * callproc.c: Use HAVE_FCNTL_H, not USG5.
16089 (syms_of_callproc) <process-environment>: Doc fix.
16091 * doc.c: Use HAVE_FCNTL_H, not USG5.
16093 * xfaces.c (font_rescale_ratio): Fix for K&R.
16095 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
16097 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
16099 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
16101 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
16102 (xg_create_frame_widgets): Use ENCODE_UTF_8.
16104 * xterm.c (Qutf_8): Move to coding.c
16106 * xmenu.c (ENCODE_MENU_STRING): New.
16107 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
16110 * coding.h (ENCODE_UTF_8): New.
16113 * coding.c (Qutf_8): New.
16114 (syms_of_coding): Intern it.
16116 * fns.c: Doc fixes.
16118 2003-06-02 Kenichi Handa <handa@m17n.org>
16120 * buffer.c (Fset_buffer_multibyte): Fix previous change.
16122 2003-06-01 Stefan Monnier <monnier@cs.yale.edu>
16124 * lread.c (openp): Make sure STR is a string.
16126 2003-06-01 David Ponce <david@dponce.com>
16128 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
16129 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
16131 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
16132 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
16133 (discard_mouse_events): Discard WHEEL_EVENT events too.
16134 (lispy_wheel_names, wheel_syms): New.
16135 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
16136 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
16137 (make_lispy_event): Add WHEEL_EVENT handler.
16139 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
16140 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
16141 WHEEL_EVENT events.
16143 2003-05-31 John Paul Wallington <jpw@gnu.org>
16145 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
16146 timer are in lisp/emacs-lisp.
16148 2003-05-31 Kenichi Handa <handa@m17n.org>
16150 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
16151 region when a buffer is changed to unibyte.
16153 * charset.h (VALID_LEADING_CODE_P): New macro.
16154 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
16156 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
16157 is nonzero, accept multibyte form of eight-bit-control chars.
16158 (decode_composition_emacs_mule): Likewise.
16159 (decode_coding_emacs_mule): Likewise.
16160 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
16161 multibyte form of eight-bit-control chars.
16163 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
16164 (Finsert_file_contents): If coding-system-for-read is bound to
16165 Qauto_save_coding, use the coding system emacs-mule with special
16166 setting for recovering a file.
16167 (choose_write_coding_system): On auto saving, use the coding
16168 system emacs-mule with special setting for auto saving.
16169 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
16171 2003-05-30 Kenichi Handa <handa@m17n.org>
16173 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
16174 properly before calling ccl_driver.
16176 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
16178 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
16179 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
16180 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
16182 2003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
16184 * xfaces.c (realize_default_face): Do not abort if lface is
16185 non-existent - reverts change from 2003-05-19.
16187 2003-05-29 Kenichi Handa <handa@m17n.org>
16189 * coding.c (decode_coding_iso2022): Pay attention to the byte
16190 sequence of CTEXT extended segment, and retain those bytes as is.
16192 2003-05-28 Kenichi Handa <handa@m17n.org>
16194 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
16195 of CODING_REPLACEMENT_CHARACTER.
16196 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
16197 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
16198 check this flag on encoding.
16199 (encode_coding_sjis_big5):
16200 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
16201 (Fset_terminal_coding_system_internal):
16202 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
16203 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
16205 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
16206 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
16207 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
16209 2003-05-28 Richard M. Stallman <rms@gnu.org>
16211 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
16213 * eval.c (unbind_to): Move init of this_binding to separate statement.
16215 2003-05-28 Kim F. Storm <storm@cua.dk>
16217 * xdisp.c (expose_window): Fix error in calculation of
16218 window relative coordinates of area to redisplay.
16220 2003-05-27 Jason Rumney <jasonr@gnu.org>
16222 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
16224 2003-05-27 David Ponce <david@dponce.com>
16226 Handle W32 mouse wheel events as mouse click events, like in X.
16228 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
16229 MOUSE_WHEEL_EVENT anymore.
16231 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
16232 Scrolling down/up the mouse wheel is respectively mapped to mouse
16234 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
16235 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
16236 WM_MOUSEWHEEL events.
16238 2003-05-27 Andreas Schwab <schwab@suse.de>
16240 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
16242 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
16243 partially visible line.
16245 * alloc.c (Fgarbage_collect): Fix last change.
16247 2003-05-26 John Paul Wallington <jpw@gnu.org>
16249 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
16251 2003-05-25 Stefan Monnier <monnier@cs.yale.edu>
16253 * window.c (Fset_window_buffer): Add type of `keep_margins'.
16254 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
16256 * window.h (window_box_text_cols): Declare.
16258 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
16259 (x_draw_vertical_border): Remove unused var `f'.
16261 * xfaces.c (build_scalable_font_name): Remove `unused var
16262 pixel_size' warning.
16264 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
16266 * unexelf.c (unexec): Remove `unused var n' warning.
16268 * strftime.c (my_strftime_localtime_r): Remove `defined but
16271 * process.c (allocate_pty): Remove `unused var stb' and
16272 `cp might be used uninitialized' warnings.
16274 * dispnew.c (mode_line_string): Remove unused var `f'.
16276 * coding.c (find_safe_codings): Remove unused var `i'.
16278 * bytecode.c (Fbyte_code): Remove `unused val' warning.
16280 * buffer.c (Fkill_buffer): Remove unused var `list'.
16282 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
16284 2003-05-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16286 * frame.c (make_frame): Condition want_fullscreen with
16287 HAVE_WINDOW_SYSTEM.
16289 2003-05-25 Juanma Barranquero <lektu@terra.es>
16291 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
16292 (Fwindow_scroll_bars): Fix typo in docstring.
16294 2003-05-24 Kim F. Storm <storm@cua.dk>
16296 The following changes serve several purposes:
16298 1) Swap the position of fringes and display margins in windows, i.e.
16299 the fringes are now displayed between the margins and the text area
16302 2) Allow fringe and scroll bar parameters to be set per-buffer and
16303 per-window (like display margins). Such settings are now stored
16304 in window configurations, preserved when frames are resized, and
16305 copied when windows are split vertically or horizontally.
16306 Several bugs related to display margins have been fixed.
16308 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
16310 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
16311 rather than FRAME_WIDTH (FRAME_FONT (f)).
16313 5) Introduce a consistent naming of variables, members and macros
16314 depending on whether their value is measured in pixels or in
16315 canonical columns/lines. Pixel dimensions are named *_width and
16316 *_height, while canonical columns/lines are named *_cols and
16317 *_lines. Pixel positions are named *_x and *_y, while column/line
16318 positions are named *_col and *_line.
16320 6) Consolidate more of the X, W32, and MAC gui code by moving
16321 common data into struct frame, and generalize it for the non-gui
16322 case by using suitable defaults.
16324 7) Cleanup and consolidate the macros controlling frame and window
16325 layout into frame.h and window.h, and generalize the use of the
16326 various window_box_* functions (enhanced to handle the new fringe
16327 position and the per-window fringe and scroll bar settings).
16329 * frame.h (struct frame): Rename members height to text_lines,
16330 width to text_cols, window_height to total_lines, window_width to
16331 total_cols, new_height to new_text_lines, new_width to
16332 new_text_cols. All uses changed.
16333 (struct frame): New members which consolidate common members of
16334 x_output, w32_output, and mac_output structures: left_pos,
16335 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
16336 win_gravity, size_hint_flags, border_width, internal_border_width,
16337 line_height, fringe_cols, left_fringe_width, right_fringe_width,
16338 want_fullscreen. All uses changed.
16339 (struct frame): New member column_width contaning the canonical
16340 column width, analogue to line_height. All uses changed.
16341 (struct frame): Rename members scroll_bar_pixel_width to
16342 config_scroll_bar_width, and scroll_bar_cols to
16343 config_scroll_bar_cols. All uses changed.
16344 (struct frame): New member scroll_bar_actual_width which
16345 consolidates and renames the vertical_scroll_bar_extra member of
16346 x_output, w32_output, and mac_output structures. All uses changed.
16347 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
16348 from x/w32/macterm.h files. All uses changed. Also change code
16349 which referred to f->output_data...->pixel_height.
16350 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
16351 from x/w32/macterm.h files. All uses changed. Also change code
16352 which referred to f->output_data...->pixel_width.
16353 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
16354 Also change code which referred to f->height.
16355 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
16356 Also change code which referred to f->width.
16357 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
16358 to update new_text_lines and new_text_cols members directly.
16359 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
16360 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
16361 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
16362 FRAME_SCROLL_BAR_COLS. All uses changed.
16363 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
16364 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
16365 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
16366 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
16367 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
16368 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
16369 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
16370 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
16371 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
16372 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
16373 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
16374 Unconditionally return line_height member (it now has proper value
16375 also for non-window frames).
16376 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
16377 return new column_width member (rather than the default font width).
16378 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
16379 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
16380 from x/w32/macterm.h files. Unconditionally return corresponding
16381 member of frame structure (they now have proper values also for
16382 non-window frames).
16383 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
16384 Calculate return value from left and right widths.
16385 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
16386 internal_border_width member (has proper value for non-window frame).
16387 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
16388 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
16389 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
16390 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
16391 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
16392 consolidated from xterm.h, macterm.h, and w32term.h.
16393 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
16394 consolidated from xterm.h, macterm.h, and w32term.h.
16395 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
16396 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
16397 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
16398 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
16399 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
16400 consolidated from x/mac/w32term.h.
16401 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
16402 consolidated from x/mac/w32term.h.
16403 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
16404 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
16405 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
16406 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
16408 * window.h (struct window): Rename members left to left_col,
16409 top to top_line, height to total_lines, width to total_cols,
16410 left_margin_width to left_margin_cols, right_margin_width to
16411 right_margin_cols, orig_height to orig_total_lines, orig_top to
16412 orig_top_line. All uses changed.
16413 (struct window): New members left_fringe_width, right_fringe_width,
16414 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
16415 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
16416 New macros primarily used to simplify other macros.
16417 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
16418 referred to XINT (w->width).
16419 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
16420 referred to XINT (w->height).
16421 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
16422 referred to XINT (w->width) * canon_x_unit.
16423 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
16424 referred to XINT (w->height) * canon_y_unit.
16425 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
16426 referred to XINT (w->left).
16427 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
16428 all uses and code that referred to XINT (w->left) + XINT (w->width).
16429 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
16430 referred to XINT (w->top).
16431 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
16432 referred to XINT (w->top) + XINT (w->height).
16433 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
16434 referred to XINT (w->left) * canon_x_unit.
16435 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
16436 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
16437 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
16438 referred to XINT (w->top) * canon_y_unit.
16439 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
16440 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
16441 (WINDOW_LEFTMOST_P): New macro.
16442 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
16444 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
16446 (WINDOW_BOX_LEFT_EDGE_X): Rename from
16447 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
16448 Do not exclude left fringe width.
16449 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
16450 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
16451 Do not exclude fringe widths.
16452 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
16453 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
16454 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
16455 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
16456 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
16457 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
16458 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
16459 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
16460 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
16461 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
16462 New macros. Change code which referenced corresponding
16463 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
16464 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
16465 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
16466 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
16467 allow per-window scroll-bar settings.
16468 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
16469 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
16470 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
16471 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
16472 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
16473 FRAME_SCROLL_BAR_WIDTH.
16474 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
16475 (WINDOW_SCROLL_BAR_AREA_X): New macros.
16476 (WINDOW_HEADER_LINE_HEIGHT): Rename from
16477 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
16478 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
16479 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
16480 (WINDOW_BOX_TEXT_HEIGHT): Rename from
16481 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
16482 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
16483 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
16484 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
16485 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
16486 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
16487 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
16488 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
16489 (window_from_coordinates): Update prototype.
16490 (Fset_window_buffer): Update EXFUN.
16491 (set_window_buffer): Update prototype.
16493 * dispextern.h (struct glyph_matrix): Rename members window_left_x
16494 to window_left_col, window_top_y to window_top_line. All uses
16496 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
16497 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
16498 internal_border_width is now set to 0 for non-window frames.
16499 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
16500 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
16501 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
16502 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
16503 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
16504 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
16505 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
16506 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
16507 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
16508 Move to window.h and renamed [see window.h changes].
16509 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
16510 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
16511 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
16512 Use WINDOW_TOTAL_LINES.
16513 (frame_update_line_height): Remove prototype.
16515 * buffer.h (struct buffer): Rename members measured in columns:
16516 left_margin_width to left_margin_cols, right_margin_width to
16517 right_margin_cols. All uses changed.
16518 New members left_fringe_width, right_fringe_width,
16519 fringes_outside_margins for per-buffer fringe settings.
16520 New members scroll_bar_width and vertical_scroll_bar_type for
16521 per-buffer scroll bar settings.
16523 * buffer.c (init_buffer_once): Set buffer_defaults and
16524 buffer_local_flags for new buffer-local variables
16525 left_fringe_width, right_fringe_width, fringes_outside_margins,
16526 scroll_bar_width, and vertical_scroll_bar_type.
16527 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
16528 default-* variables for them.
16530 * dispnew.c: Make (many) trivial substitutions for renamed and
16531 new macros in dispextern.h, frame.h and window.h.
16532 (mode_line_string): No need to adjust width for mode lines, as it
16533 is already adjusted by the caller.
16534 (marginal_area_string): Handle fringes inside/outside margins.
16536 * frame.c: Make (many) trivial substitutions for renamed and
16537 new macros in dispextern.h, frame.h and window.h.
16538 (make_frame): Initialize left_fringe_width, right_fringe_width,
16539 fringe_cols, scroll_bar_actual_width, border_width,
16540 internal_border_width, column_width, line_height, x_pixels_diff,
16541 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
16542 members with values suitable for a non-window frames.
16544 * gtkutil.c: Make (many) trivial substitutions for renamed and
16545 new macros in dispextern.h, frame.h and window.h.
16547 * indent.c: Make (few) trivial substitutions for renamed and
16548 new macros in dispextern.h, frame.h and window.h.
16550 * keyboard.c: Make (many) trivial substitutions for renamed and
16551 new macros in dispextern.h, frame.h and window.h.
16552 (make_lispy_event): Use window positions returned from
16553 window_from_coordinates when constructing the lisp event for
16554 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
16555 (incorrect) values locally.
16556 (make_lispy_movement): Use window positions returned from
16557 window_from_coordinates when constructing the lisp event, rather
16558 than calculating (incorrect) values locally.
16560 * scroll.c: Make (some) trivial substitutions for renamed and
16561 new macros in dispextern.h, frame.h and window.h.
16563 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
16566 * sysdep.c: Make (few) trivial substitutions for renamed and
16567 new macros in dispextern.h, frame.h and window.h.
16569 * term.c: Make (some) trivial substitutions for renamed and
16570 new macros in dispextern.h, frame.h and window.h.
16572 * widget.c: Make (few) trivial substitutions for renamed and
16573 new macros in dispextern.h, frame.h and window.h.
16575 * window.c: Make (many) trivial substitutions for renamed and
16576 new macros in dispextern.h, frame.h and window.h.
16577 (make_window): Initialize new members
16578 left_margin_cols, right_margin_cols, left_fringe_width,
16579 right_fringe_width, fringes_outside_margins, scroll_bar_width,
16580 and vertical_scroll_bar_type.
16581 (coordinates_in_window): Adapt to new fringe/margin positions
16582 and per-window fringes and scroll-bars.
16583 Fix bug related to incorrectly adjusting coordinates by
16584 frame's internal_border_width (the effect normally negible since
16585 the internal_border_width is typically 0 or 1 pixel, but very
16586 noticeable for an internal_border_width of e.g. 25 pixels).
16587 Upon successful return (other than ON_NOTHING), the coordinates
16588 are now always properly converted to window relative for the
16589 given display element.
16590 (window_from_coordinates): Add new parameters wx and wy to
16591 return the window relative x and y position in the returned
16592 window and part. A null arg means, don't return the position.
16593 All callers changed.
16594 (adjust_window_margins): New function which may reduce the width
16595 of the display margins if a window's text area is too small after
16596 resizing or splitting windows.
16597 (size_window): Fix bug that did not account for display margin
16598 widths when checking the minimum width of a window; use
16599 adjust_window_margins.
16600 (set_window_buffer): Call Fset_window_fringes and
16601 Fset_window_scroll_bars to setup per-window elements.
16602 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
16603 existing display margin, fringe widths, and scroll bar settings
16604 (e.g. after splitting a window or resizing the frame).
16605 All callers changed.
16606 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
16607 (Fsplit_window): Duplicate original window's display margin,
16608 fringe, and scroll-bar settings; then call Fset_window_buffer with
16609 KEEP_MARGINS non-nil. This fixes a bug which caused a split
16610 window to only preserve the display margins in one of the windows.
16611 When splitting horizontally, call adjust_window_margins on both
16612 windows to ensure that the text area of the new windows is non too
16613 narrow. This fixes a bug which could cause Emacs to trap if the
16614 width of the split window was less than the width of the display
16616 (window_box_text_cols): Rename from window_internal_width.
16617 All uses changed. Adapt to per-window fringes and scroll bars.
16618 Fix bug that caused vertical separator to be subtracted also on
16619 window frames. Fix another bug that did not reduce the returned
16620 value by the columns used for display margins.
16621 (window_scroll_line_based): Fix bug related to scrolling too much
16622 when display margins are present (implicitly fixed by the fix to
16623 window_box_text_cols).
16624 (scroll_left, scroll_right): Fix bug related to scrolling too far
16625 by default when display margins are present (implicitly fixed by
16626 the fix to window_box_text_cols).
16627 (struct saved_window): Rename members left to left_col, top to
16628 top_line, width to total_cols, height to total_lines, orig_top to
16629 orig_top_line, orig_height to orig_total_lines. All uses changed.
16630 New members left_margin_cols, right_margin_cols,
16631 left_fringe_width, right_fringe_width, fringes_outside_margins,
16632 scroll_bar_width, and vertical_scroll_bar_type for saving
16633 per-window display elements.
16634 (Fset_window_configuration): Restore display margins, fringes,
16635 and scroll bar settings. This fixes a bug which caused display
16636 margins to be discarded when saving and restoring a window
16638 (save_window_save): Save display margins, fringes, and scroll bar
16639 settings. This fixes a bug which caused display margins to be
16640 discarded when saving and restoring a window configuration.
16641 (Fset_window_margins): Do nothing if display margins are not
16642 really changed. Otherwise, call adjust_window_margins to ensure
16643 the text area doesn't get too narrow. This fixes a bug which
16644 could cause Emacs to trap if setting display margins wider than
16645 the width of the window.
16646 (Fset_window_fringes): New defun to allow user to specifically set
16647 this window's fringe widths and position vs. display margins.
16648 (Fwindow_fringes): New defun to return window's actual fringe settings.
16649 (Fset_window_scroll_bars): New defun to allow user to specifically
16650 set this window's scroll bar width and position.
16651 (Fwindow_scroll_bars): New defun to return window's actual scroll
16653 (compare_window_configurations): Also compare display margins,
16654 fringes, and scroll bar settings.
16655 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
16657 * xdisp.c: Make (many) trivial substitutions for renamed and
16658 new macros in dispextern.h, frame.h and window.h.
16659 (window_box_width): Adapt to per-window fringes and scroll bars,
16660 and new fringe vs. display margin position. Note that returned
16661 value is no longer guaranteed to be a whole multiple of the frame
16662 column width, since per-window fringes may now be any width.
16663 (window_box_left_offset): New function like window_box_left, but
16664 value is relative to left border of window (rather than frame).
16665 (window_box_right_offset): New function like window_box_right,
16666 but value is relative to left border of window.
16667 (window_box_left): Adapt to per-window fringes and scroll bars,
16668 and new fringe vs. display margin position. Simplify by using
16669 WINDOW_LEFT_EDGE_X and window_box_left_offset.
16670 (window_box): Allow null args for unnecessary return values;
16671 change/simplify relevant callers.
16672 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
16673 and new fringe vs. display margin position.
16674 Use window_box_left_offset and window_box_right_offset
16675 (get_glyph_string_clip_rect): Adapt to per-window fringes and
16676 scroll bars, and new fringe vs. display margin position.
16677 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
16678 (draw_fringe_bitmap): Rework to handle per-window fringes and new
16679 fringe vs. display margin position.
16680 (hscroll_window_tree): Use window_box_width instead of window_box.
16681 (redisplay_window): Adapt to per-window scroll bars.
16682 (draw_glyphs): Rework to handle per-window fringes and scroll
16683 bars, and new fringe vs. display margin position.
16684 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
16685 (x_clear_end_of_line): Adapt to per-window fringes and scroll
16686 bars, and new fringe vs. display margin position. Fix bug which
16687 increased total width of full_width rows by width of scroll bars
16688 although window's total width already includes that.
16689 (x_fix_overlapping_area): Simplify using window_box_left_offset.
16690 (expose_area): Simplify using window_box_left_offset.
16691 (x_draw_vertical_border): Handle per-window scroll bar settings,
16692 mixing windows with left, right and no scroll bars.
16694 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
16695 where it's used in x_list_fonts (for clarity).
16696 (frame_update_line_height): Remove unused function; functionality
16697 is now done directly when setting the default font in x_set_font.
16699 * xfns.c: Make (many) trivial substitutions for renamed and
16700 new macros in dispextern.h, frame.h and window.h.
16702 * xmenu.c: Make (some) trivial substitutions for renamed and
16703 new macros in dispextern.h, frame.h and window.h.
16705 * xterm.h (struct x_output): Move members left_pos, top_pos,
16706 border_width, pixel_height, pixel_width, line_height,
16707 internal_border_width, vertical_scroll_bar_extra,
16708 left_fringe_width, right_fringe_width, fringe_cols,
16709 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
16710 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
16711 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
16712 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
16713 (PIXEL_WIDTH, PIXEL_HEIGHT)
16714 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
16715 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
16716 frame.h and renamed [see frame.h changes].
16717 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
16718 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
16719 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
16720 and renamed [see frame.h changes].
16722 * xterm.c: Make (several) trivial substitutions for renamed and
16723 new macros in dispextern.h, frame.h and window.h.
16724 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
16725 (scroll_run): Adapt to new fringe position.
16726 (glyph_rect): Use window coordinates returned from
16727 window_from_coordinates rather than frame_to_window_pixel_xy.
16728 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
16730 (handle_one_xevent): Simplify a USE_GTK conditional.
16731 (x_clip_to_row): Remove superfluous whole_line_p arg and code
16732 (fringes are now inside margins, i.e. always in the clipping area).
16733 All callers changed.
16734 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
16735 directly, then call compute_fringe_widths. Don't call
16736 frame_update_line_height.
16738 * w32term.h (struct w32_output): Move members left_pos, top_pos,
16739 border_width, pixel_height, pixel_width, line_height,
16740 internal_border_width, vertical_scroll_bar_extra,
16741 left_fringe_width, right_fringe_width, fringe_cols,
16742 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
16743 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
16744 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
16745 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
16746 (PIXEL_WIDTH, PIXEL_HEIGHT)
16747 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
16748 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
16749 frame.h and renamed [see frame.h changes].
16750 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
16751 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
16752 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
16753 and renamed [see frame.h changes].
16755 * w32term.c: Make (several) trivial substitutions for renamed and
16756 new macros in dispextern.h, frame.h and window.h.
16757 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
16758 (glyph_rect): Use window coordinates returned from
16759 window_from_coordinates rather than frame_to_window_pixel_xy.
16760 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
16762 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
16763 (fringes are now inside margins, i.e. always in the clipping area).
16764 All callers changed.
16765 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
16766 directly, then call compute_fringe_widths. Don't call
16767 frame_update_line_height.
16769 * w32console.c: Make (few) trivial substitutions for renamed and
16770 new macros in dispextern.h, frame.h and window.h.
16772 * w32fns.c: Make (many) trivial substitutions for renamed and
16773 new macros in dispextern.h, frame.h and window.h.
16775 * w32menu.c: Make (few) trivial substitutions for renamed and
16776 new macros in dispextern.h, frame.h and window.h.
16778 * macterm.h (struct mac_output): Move members left_pos, top_pos,
16779 border_width, pixel_height, pixel_width, line_height,
16780 internal_border_width, vertical_scroll_bar_extra,
16781 left_fringe_width, right_fringe_width, fringe_cols,
16782 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
16783 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
16784 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
16785 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
16786 (PIXEL_WIDTH, PIXEL_HEIGHT)
16787 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
16788 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
16789 frame.h and renamed [see frame.h changes].
16790 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
16791 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
16792 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
16793 and renamed [see frame.h changes].
16795 * macterm.c: Make (several) trivial substitutions for renamed and
16796 new macros in dispextern.h, frame.h and window.h.
16797 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
16798 (glyph_rect): Use window coordinates returned from
16799 window_from_coordinates rather than frame_to_window_pixel_xy.
16800 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
16802 (x_clip_to_row): Remove superfluous whole_line_p arg and code
16803 (fringes are now inside margins, i.e. always in the clipping area).
16804 All callers changed.
16805 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
16806 directly, then call compute_fringe_widths. Don't call
16807 frame_update_line_height.
16809 * macfns.c: Make (several) trivial substitutions for renamed and
16810 new macros in dispextern.h, frame.h and window.h.
16811 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
16813 * macmenu.c: Make (few) trivial substitutions for renamed and
16814 new macros in dispextern.h, frame.h and window.h.
16816 * msdos.h (struct x_output): Remove members left_pos, top_pos,
16817 and line_height, and use corresponding new members in struct
16818 frame. All uses changed.
16819 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
16820 superseeded by corresponding macros in frame.h.
16822 * msdos.c: Make (several) trivial substitutions for renamed and
16823 new macros in dispextern.h, frame.h and window.h.
16824 (IT_note_mouse_highlight): Use updated window coordinates returned
16825 by window_from_coordinates, rather than adjusting them locally.
16826 (internal_terminal_init): No need to initialize line_height here;
16827 it now defaults to 1.
16829 2003-05-24 Stefan Monnier <monnier@cs.yale.edu>
16831 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
16832 dropping `down' events.
16834 2003-05-24 Andreas Schwab <schwab@suse.de>
16836 * coding.c (find_safe_codings): Fix last change.
16838 2003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
16840 * xfns.c (x_window): Fix typo from 2003-05-21 change.
16842 2003-05-23 Stefan Monnier <monnier@cs.yale.edu>
16844 * xdisp.c (display_mode_element): Increase max depth.
16845 Simplify the error handling code. Use a different error string
16846 for the case where we hit the depth limit.
16848 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
16850 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
16852 2003-05-21 Stefan Monnier <monnier@cs.yale.edu>
16854 * intervals.c (get_local_map): Don't get char-property of previous
16855 point any more: get_pos_property already does it and better.
16857 2003-05-21 Dave Love <fx@gnu.org>
16859 [Merged from unicode branch.]
16861 * xfns.c (x_window, x_window): Use use_xim.
16863 * xterm.c (use_xim): Initialize.
16864 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
16865 (x_term_init): Maybe set use_xim.
16867 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
16869 2003-05-21 Jason Rumney <jasonr@gnu.org>
16871 * unexw32.c (_start): Remove _fmode initialization.
16873 * emacs.c (main) [WINDOWSNT]: Move it here.
16875 2003-05-20 Dave Love <fx@gnu.org>
16877 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
16879 2003-05-19 Richard M. Stallman <rms@gnu.org>
16881 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
16882 as value for QCfont attribute.
16883 (realize_default_face): lface should already exist; crash if not.
16884 Specify 0 for FORCE_P when calling set_lface_from_font_name.
16886 * frame.c (Fignore_event): Doc fix.
16888 2003-05-19 Kenichi Handa <handa@m17n.org>
16890 * coding.c (decode_coding_string): Handle post-read-conversion
16891 even if the coding doesn't require decoding.
16893 2003-05-18 Richard M. Stallman <rms@gnu.org>
16895 * callproc.c (Fcall_process_region): Doc fix.
16897 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
16899 * lread.c (Fload): Print a message if package is obsolete.
16901 * window.c (Fselect_window): Add optional `norecord' arg.
16902 (select_window_1): Fold into Fselect_window.
16903 (select_window_norecord): New function.
16904 (temp_output_buffer_show): Use it. Preserve current buffer.
16906 * window.h (Fselect_window): Update declaration.
16908 * window.c (delete_window, Fother_window, Fset_window_configuration):
16909 * minibuf.c (read_minibuf):
16910 * macterm.c (x_new_focus_frame):
16911 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
16912 * callint.c (Fcall_interactively):
16913 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
16915 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
16917 2003-05-17 David Kastrup <dak@gnu.org>
16919 * process.c (read_process_output): Back out change from 2003-03-09.
16921 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
16923 * editfns.c (get_pos_property): Don't assume that `object' = nil.
16925 * textprop.c (text_property_stickiness): New arg `buffer'.
16927 * intervals.h (text_property_stickiness): New arg `buffer'.
16928 (get_pos_property): Declare.
16930 * intervals.c (get_local_map): Use get_pos_property, to obey
16931 stickiness and empty overlays.
16932 (create_root_interval, graft_intervals_into_buffer): Use BEG.
16933 (merge_properties, intervals_equal, merge_properties_sticky):
16935 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
16937 2003-05-17 Richard M. Stallman <rms@gnu.org>
16939 * minibuf.c (read_minibuf): If buffer is empty, record the default
16941 (Fminibuffer_complete_word): When deleting the overlap, take account
16942 of its real position.
16944 * fns.c (map_char_table): Fix previous change.
16946 * syntax.c (find_defun_start):
16947 When open_paren_in_column_0_is_defun_start,
16948 return beginning of buffer.
16950 * lisp.h (map_char_table): Declare added arg.
16952 * fns.c (map_char_table): New arg TABLE gets the master table.
16954 Process default and inheritance, resorting to Faref if necessary.
16956 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16957 (Faccessible_keymaps): Pass new arg to map_char_table.
16959 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
16961 * casetab.c (set_case_table): Pass new arg to map_char_table.
16963 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
16965 * lisp.h (specbinding_func): New typedef.
16966 (struct specbinding): Use specbinding_func, to put the `volatile'
16967 in the right place.
16969 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
16970 to avoid GCC warning.
16972 2003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
16974 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
16976 2003-05-15 Stefan Monnier <monnier@cs.yale.edu>
16978 * keyboard.c (apply_modifiers): Don't fill the other cache.
16980 2003-05-14 Stefan Monnier <monnier@cs.yale.edu>
16982 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
16984 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
16985 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
16986 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
16987 (Fset_window_configuration, Fcurrent_window_configuration)
16988 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
16989 (Fpos_visible_in_window_p, mark_window_cursors_off)
16990 (window_internal_height, window_internal_width, Frecenter)
16991 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
16992 (replace_buffer_in_all_windows, init_window_once, init_window)
16993 (syms_of_window, keys_of_window): Move from lisp.h.
16994 * lisp.h: Move window.c declarations to window.h.
16996 * bytecode.c: Include window.h.
16997 * emacs.c: Include window.h.
16999 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
17000 (keyremap): Add `parent' field.
17001 (keyremap_step): Use it. Remove `parent' argument.
17002 (read_key_sequence): Setup and use the new `parent' field.
17004 2003-05-11 Stefan Monnier <monnier@cs.yale.edu>
17006 * keyboard.c (adjust_point_for_property): Ensure termination.
17008 2003-05-10 Stefan Monnier <monnier@cs.yale.edu>
17010 * keyboard.c (follow_key): Remove dead variable `did_meta'.
17011 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
17012 duplicated handling of function-key-map and key-translation-map
17013 in read_key_sequence.
17014 (read_key_sequence): Use them.
17016 * keyboard.c (adjust_point_for_property): Try harder to move point
17017 to the non-sticky end of an invisible property.
17019 * xdisp.c (single_display_prop_intangible_p): Make `space' display
17020 property intangible as well.
17022 2003-05-10 Andreas Schwab <schwab@suse.de>
17024 * xmenu.c (single_menu_item): Change last parameter to void* to
17027 2003-05-09 Richard M. Stallman <rms@gnu.org>
17029 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
17030 Bind Qinhibit_modification_hooks to t so there will be no GC.
17031 Rename local `tem' to `save_deactivate_mark'.
17033 * eval.c (specpdl_ptr): Declare volatile.
17034 (unbind_to): Copy the whole binding and decrement specpdl_ptr
17035 before doing the work of unbinding it.
17037 * lisp.h (struct specbinding): Declare elements volatile.
17038 (specpdl_ptr): Declare volatile.
17040 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
17042 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
17043 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
17045 2003-05-08 Dave Love <fx@gnu.org>
17047 * coding.c (Vlast_coding_system_used): Doc fix.
17049 2003-05-07 Jason Rumney <jasonr@gnu.org>
17051 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
17052 when system does not support them.
17054 2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
17056 * fileio.c (Qwrite_region_annotate_functions): New var.
17057 (build_annotations): Use it to process the global part of the hook.
17058 (syms_of_fileio): Init and staticpro it.
17060 * keyboard.c (safe_run_hooks_error): Display a message instead of
17061 silently ignoring the error.
17063 2003-05-03 Stefan Monnier <monnier@cs.yale.edu>
17065 * keyboard.c (input_available_signal): Mark static.
17066 (menu_bar_items): Use map_keymap.
17067 (menu_bar_one_keymap): Remove.
17068 (menu_bar_item): Adjust arglist (for use in map_keymap).
17069 Properly hide a second binding when not both are keymaps.
17071 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
17072 (single_keymap_panes): Use it and map_keymap.
17073 (single_menu_item): Use skp as well.
17075 * keymap.h (map_keymap_function_t): New type.
17076 (map_keymap): Declare.
17078 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
17079 (map_keymap_call, Fmap_keymap): New functions.
17080 (syms_of_keymap): Defsubr map-keymap.
17082 2003-05-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17084 * gtkutil.c (create_dialog, make_widget_for_menu_item)
17085 (make_menu_item, create_menus, xg_update_menu_item): Don't call
17086 ..._with_mnemonic functions for menu items.
17088 2003-05-01 Kenichi Handa <handa@m17n.org>
17090 * coding.c (coding_system_accept_latin_extra_p): Delete this
17092 (find_safe_codings): Pay attention to
17093 the property tranlsation-table-for-encode of each codings.
17094 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
17096 2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
17098 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
17100 2003-04-30 Stefan Monnier <monnier@cs.yale.edu>
17102 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
17104 * lisp.h (CHECK): Wrap args in parenthesis.
17105 (specbind): Fix doc: symbol = Qnil is not supported any more.
17107 * bytecode.c (Fbyte_code) <unwind-protect>:
17108 Use Fprogn rather than 0 and Qnil.
17110 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
17111 `double', and `triple' modifiers as well.
17113 2003-04-30 Richard M. Stallman <rms@gnu.org>
17115 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
17117 * alloc.c (abort_on_gc): New variable.
17118 (Fgarbage_collect): Abort if abort_on_gc is set.
17120 * lisp.h (abort_on_gc): Add decl.
17122 * eval.c (Fsignal): Clear abort_on_gc.
17124 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
17125 Reinit FORMAT_START and END before second scan.
17127 * xdisp.c (move_it_vertically_backward): Do the final big else
17128 even if nlines is 0.
17130 * xdisp.c (redisplay_internal): Finish the per-frame loop
17131 even if redisplay is suspended by input.
17133 2003-04-24 Andrew Choi <akochoi@shaw.ca>
17135 * macterm.c (x_list_fonts): Return all fonts that match if
17138 2003-04-25 Kenichi Handa <handa@m17n.org>
17140 * syntax.c (skip_chars): Fix previous change.
17142 2003-04-24 Kenichi Handa <handa@m17n.org>
17144 * syntax.c (skip_chars): Make the code faster by using the common
17145 technique of *p, *stop, and *endp.
17147 2003-04-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17149 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
17150 tool_bar_items so GTK tool bar expose callback does not access items
17153 2003-04-19 Stefan Monnier <monnier@cs.yale.edu>
17155 * eval.c (Fapply): Undo last change and add a comment about why.
17157 2003-04-18 Miles Bader <miles@gnu.org>
17159 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
17160 pickier PARSE_MULTIBYTE_SEQ.
17162 2003-04-17 Stefan Monnier <monnier@cs.yale.edu>
17164 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
17165 Use XCDR, XCAR, CONSP.
17166 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
17167 (Fapply): Remove unnecessary GCPRO.
17169 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
17171 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
17173 * buffer.h: Don't hardcode BEG==1.
17175 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
17177 2003-04-16 Richard M. Stallman <rms@gnu.org>
17179 * xdisp.c (try_window, try_window_reusing_current_matrix):
17180 When at end of window, set window_end_pos to Z-ZV.
17182 * buffer.c (Foverlay_recenter): Doc fix.
17184 2003-04-14 Stefan Monnier <monnier@cs.yale.edu>
17186 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
17188 2003-04-14 Andrew Choi <akochoi@shaw.ca>
17190 * macterm.c (mac_check_for_quit_char): Don't check more often than
17193 2003-04-11 Stefan Monnier <monnier@cs.yale.edu>
17195 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
17196 specially, so that they can't hide an implicit switch-frame event.
17197 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
17198 (head_table): Use switch-frame as event_kind for select-window.
17199 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
17201 * editfns.c (Fformat): Lisp_Object/int mixup.
17202 (format2): Remove unused var numargs.
17204 2003-04-11 Kenichi Handa <handa@m17n.org>
17206 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
17207 (Qafter_insert_file_set_coding): New variable.
17208 (syms_of_fileio): Initialize and staticpro it. Delete declaration
17209 for after-insert-file-adjust-coding-function.
17210 (Finsert_file_contents): Call Qafter_insert_file_set_coding
17211 instead of Vafter_insert_file_adjust_coding_function.
17213 2003-04-11 Kenichi Handa <handa@m17n.org>
17215 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
17217 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
17218 string. Callers changed.
17220 2003-04-10 Kenichi Handa <handa@m17n.org>
17222 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
17223 (syms_of_fileio): Declare it as a lisp variable.
17224 (Finsert_file_contents):
17225 Call Vafter_insert_file_adjust_coding_function before calling
17228 2003-04-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17230 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
17231 get GtkAdjustment as widget now is a GtkRange.
17233 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
17234 GtkRange to avoid memory leak.
17236 2003-04-09 Kenichi Handa <handa@m17n.org>
17238 * xfaces.c (Vface_font_rescale_alist): New variable.
17239 (struct font_name): New member rescale_ratio.
17240 (font_rescale_ratio): New function.
17241 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
17242 (better_font_p): On comparing point sized, pay attention to
17243 recale_ratio member of fonts.
17244 (build_scalable_font_name): Reflect font->rescale_ratio in the
17246 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
17248 * lread.c (read1): Before calling index, check if the 2nd
17249 arguemnt is in ASCII range.
17251 2003-04-08 Richard M. Stallman <rms@gnu.org>
17253 * fileio.c (Ffile_symlink_p): Doc fix.
17255 * editfns.c (Fformat): Translate positions of text properties
17256 in the format string to apply them to the result.
17258 * fileio.c (Finsert_file_contents): Doc fix.
17259 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
17261 2003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
17263 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
17265 2003-04-08 Steven Tamm <steventamm@mac.com>
17267 * mac.c (init_mac_osx_environment): Switch libexec and bin so
17268 that self-contained application finds libexec files.
17270 2003-04-08 Kenichi Handa <handa@m17n.org>
17272 * coding.c (code_convert_region_unwind):
17273 Set Vlast_coding_system_used to the argument.
17274 (code_convert_region): If post-read-conversion function changed
17275 the value of last-coding-sytem, keep the new value in
17276 coding->symbol so that it won't be overridden.
17277 (run_pre_post_conversion_on_str): Likewise.
17278 (coding_system_accept_latin_extra_p): New function.
17279 (find_safe_codings): Pay attention to characters registered in
17280 latin-extra-code-table.
17282 2003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
17284 * Makefile.in (md5.o): Add missing dependency info.
17286 2003-04-06 Richard M. Stallman <rms@gnu.org>
17288 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
17290 * marker.c (verify_bytepos): New function.
17292 * intervals.c (set_intervals_multibyte_1): When becoming
17293 multibyte, adjust right and left child sizes to a whole set of
17294 characters. If an interval gets zero total-length, delete it.
17295 If an interval consists of just its children, delete one of them.
17297 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
17298 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
17300 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
17302 (lisp_malloc): Do the work here directly.
17304 2003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
17306 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
17309 2003-04-04 Kenichi Handa <handa@m17n.org>
17311 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
17312 destructively change "%S" to "%s".
17314 2003-04-03 Miles Bader <miles@gnu.org>
17316 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
17319 2003-04-01 Dave Love <fx@gnu.org>
17321 * xfns.c (xpm_lookup_color): Grok "opaque".
17323 2003-03-31 Andrew Choi <akochoi@shaw.ca>
17325 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
17328 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
17330 * macterm.h (struct mac_output): Define x_pixels_diff and
17333 2003-03-31 Juanma Barranquero <lektu@terra.es>
17335 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
17336 blockinput.h and files included from it.
17338 2003-03-31 Kim F. Storm <storm@cua.dk>
17340 The following changes consolidates the common code related to
17341 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
17342 files into frame.c.
17344 * frame.c: Include blockinput.h.
17345 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
17346 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
17347 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
17349 (struct frame_parm_table, frame_parms): New table for describing
17350 frame parameters and their associated Q-variable.
17351 The order of the parameters corresponds to the sequence of the
17352 frame_parm_handlers table in redisplay_interface.
17353 (x_fullscreen_move, x_set_frame_parameters)
17354 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
17355 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
17356 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
17357 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
17358 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
17359 Generic functions for processing of frame parameters.
17360 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
17361 (display_x_get_resource, x_get_resource_string): Functions for
17362 generic access to X resources.
17363 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
17364 (x_default_parameter, Fx_parse_geometry): Functions for generic
17365 access to frame parameters.
17366 (x_figure_window_size): Generic calculation of frame size.
17367 Fixed to add space needed for tool bar. Also setup size_hint_flags.
17368 (syms_of_frame): Intern and staticpro frame parameter variables.
17369 Defvar_lisp Vx_resource_class and Vx_resource_name here.
17370 Defsubr Sx_get_resource and Sx_parse_geometry.
17372 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
17373 parameter related vars defined in frame.c.
17374 (EMACS_CLASS): Define here.
17375 (enum FULLSCREEN_*): Define here.
17376 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
17377 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
17378 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
17379 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
17380 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
17381 (x_set_visibility, x_set_autoraise, x_set_autolower)
17382 (x_set_unsplittable, x_set_vertical_scroll_bars)
17383 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
17384 (x_figure_window_size): Add prototypes.
17386 * dispextern.h (frame_parm_handler): New typedef.
17387 (struct redisplay_interface): New member frame_parm_handlers.
17388 (enum resource_types): Move declaration here.
17389 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
17390 (x_default_parameter): Add prototypes.
17392 * window.c: Remove extern decl for frame parameter vars.
17393 (change_window_heights): New generic function;
17394 replaces x_change_window_heights. All users changed.
17396 * window.h (change_window_heights): Add prototype.
17398 * xfaces.c: Remove extern decl for frame parameter vars.
17400 * xterm.h (EMACS_CLASS): Remove. Use generic define.
17401 (struct w32_display_info): Fix type of xrdb member.
17402 (enum FULLSCREEN_*): Remove.
17403 Remove prototypes for generic functions (in frame.h).
17405 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
17406 parameters now defined in frame.h and frame.c.
17407 (Vx_resource_name): Remove. Use generic var.
17408 (enum x_frame_parms): Remove (bogus, unused enum).
17409 (check_x_display_info): Make non-static (for frame.c).
17410 (struct x_frame_parm_table, x_frame_parms): Remove.
17411 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
17412 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
17413 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
17414 (x_change_window_heights, x_set_autoraise, x_set_autolower)
17415 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
17416 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
17417 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
17418 Remove. Use generic functions instead.
17419 (enum resource_types): Remove.
17420 (x_set_scroll_bar_default_width): New global function (for frame.c).
17421 (Fx_create_frame): Depend on x_figure_window_size to add space for
17422 toolbar and setup size_hint_flags.
17423 (x_frame_parm_handlers): New table for redisplay_interface.
17424 (syms_of_xfns): Don't intern/staticpro removed vars.
17426 * xterm.c: Remove unnecessary extern declarations.
17427 (x_fullscreen_adjust): Remove. Use generic instead.
17428 (x_redisplay_interface): Add x_frame_parm_handlers member.
17430 * w32gui.h (XrmDatabase): New (dummy) typedef.
17432 * w32term.h (EMACS_CLASS): Remove. Use generic define.
17433 (struct w32_display_info): Fix type of xrdb member.
17434 (enum FULLSCREEN_*): Remove.
17435 (x_fullscreen_adjust): Remove prototype.
17437 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
17438 parameters now defined in frame.h and frame.c.
17439 (Vx_resource_name): Remove. Use generic var.
17440 (enum x_frame_parms): Remove (bogus, unused enum).
17441 (check_x_display_info): Make non-static (for frame.c).
17442 (struct x_frame_parm_table, x_frame_parms): Remove.
17443 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
17444 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
17445 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
17446 (x_change_window_heights, x_set_autoraise, x_set_autolower)
17447 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
17448 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
17449 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
17450 Remove. Use generic functions instead.
17451 (enum resource_types): Remove.
17452 (x_set_scroll_bar_default_width): New global function (for frame.c).
17453 (Fx_create_frame): Depend on x_figure_window_size to add space for
17454 toolbar and setup size_hint_flags.
17455 (w32_frame_parm_handlers): New table for redisplay_interface.
17456 (syms_of_w32fns): Don't intern/staticpro removed vars.
17458 * w32term.c: Remove unnecessary extern declarations.
17459 (x_fullscreen_adjust): Remove. Use generic instead.
17460 (x_redisplay_interface): Add w32_frame_parm_handlers member.
17462 * w32reg.c (x_get_string_resource): Use XrmDatabase.
17464 * macgui.h (XrmDatabase): New (dummy) typedef.
17466 * macterm.h (EMACS_CLASS): Remove.
17467 (struct mac_display_info): Add xrdb member.
17468 (struct mac_output): Add want_fullscreen member.
17470 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
17471 parameters now defined in frame.h and frame.c.
17472 (Vx_resource_name): Remove. Use generic var.
17473 (check_x_display_info): Make non-static (for frame.c).
17474 (struct x_frame_parm_table, x_frame_parms): Remove.
17475 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
17476 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
17477 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
17478 (x_change_window_heights, x_set_autoraise, x_set_autolower)
17479 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
17480 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
17481 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
17482 Remove. Use generic functions instead.
17483 (enum resource_types): Remove.
17484 (x_set_scroll_bar_default_width): New global function (for frame.c).
17485 (mac_frame_parm_handlers): New table for redisplay_interface.
17486 (syms_of_macfns): Don't intern/staticpro removed vars.
17488 * macterm.c: Remove unnecessary extern declarations.
17489 (x_redisplay_interface): Add mac_frame_parm_handlers member.
17491 * Makefile.in (frame.o): Add dependency on blockinput.h and files
17492 included from it (atimer.h and systime.h).
17494 2003-03-30 Andreas Schwab <schwab@suse.de>
17496 * xdisp.c (x_insert_glyphs): Fix swapped width and height
17497 parameters for shift_glyphs_for_insert.
17499 * macterm.c (x_redisplay_interface): Add missing entry for
17500 draw_vertical_window_border.
17502 2003-03-29 Kai Gro
\e,A_
\e(Bjohann <kai.grossjohann@gmx.net>
17504 * fileio.c (Fexpand_file_name): In the no-handler case, after
17505 expanding, look again for a handler and invoke it. This is needed
17506 for filenames like "/foo/../user@host:/bar/../baz" -- the first
17507 expansion produces "/user@host:/bar/../baz" which needs to be
17508 expanded again for the finame result "/user@host:/baz".
17510 2003-03-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17512 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
17513 of area to be redrawn for better performance.
17515 2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
17517 * xterm.c (take_vertical_position_into_account): Remove.
17518 (xt_action_hook): Call set_vertical_scroll_bar if needed.
17519 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
17520 (xm_scroll_callback, x_create_toolkit_scroll_bar)
17521 (x_set_toolkit_scroll_bar_thumb): Simplify.
17522 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
17523 (XTread_socket): Remove unused var.
17524 (x_make_frame_invisible): Replace goto with else.
17526 * xdisp.c (set_vertical_scroll_bar): New fun.
17527 (redisplay_window): Use it.
17529 2003-03-26 Richard M. Stallman <rms@gnu.org>
17531 * xdisp.c (update_tool_bar): Recompute tool bar if
17532 update_mode_lines is set. Set w->update_mode_line
17533 only if the tool bar contents actually change.
17534 (update_menu_bar): Undo previous change.
17536 2003-03-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17538 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
17539 (xg_frame_set_char_size): Calculate scroll bar width before frame
17540 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
17541 (xg_separator_p): Check for all documented separator types.
17542 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
17543 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
17545 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
17546 so tool bar gets updated.
17548 2003-03-26 Stefan Monnier <monnier@cs.yale.edu>
17550 * data.c (store_symval_forwarding): Re-instate part of the code
17551 that was deleted with too much enthusiasm.
17553 2003-03-25 Stefan Monnier <monnier@cs.yale.edu>
17555 * data.c (store_symval_forwarding): Delete special read-only
17556 hack for type == -1, since we now use ->constant instead.
17557 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
17559 * buffer.c (overlays_in): Declare static.
17560 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
17561 `constant' field rather than the variable's `type' field.
17563 2003-03-24 Andrew Choi <akochoi@shaw.ca>
17565 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
17567 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
17569 * fns.c [MAC_OSX]: Do not redefine vector.
17571 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
17573 * macgui.h: Remove definition of No_Cursor.
17575 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
17577 * xdisp.c: Define No_Cursor.
17578 (x_write_glyphs, notice_overwritten_cursor)
17579 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
17580 (note_mouse_highlight): Remove Mac-specific code.
17581 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
17583 2003-03-24 John Paul Wallington <jpw@gnu.org>
17585 * xdisp.c (redisplay_window): If mini window's buffer is not
17586 empty, then redisplay it like other windows.
17588 2003-03-23 Kim F. Storm <storm@cua.dk>
17590 * w32term.c (w32_draw_window_cursor): Fix last change.
17592 2003-03-23 Kenichi Handa <handa@m17n.org>
17594 * alloc.c (make_string_from_bytes, make_specified_string):
17595 Add `const' for the arg CONTENTS.
17597 * lisp.h (make_string_from_bytes, make_specified_string):
17598 Prototypes adjusted.
17600 2003-03-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17602 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
17604 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
17605 (XG_SB_RANGE): New define.
17607 * gtkutil.c (xg_fixed_handle_expose): New function.
17608 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
17610 (xg_update_scrollbar_pos): Take two more arguments, left and width
17611 of scroll bar including borders.
17612 Clear left and right part outside scroll bar separately as some
17613 themes have bars that are not an even number of pixels.
17614 Don't set reallocate_redraws, don't call
17615 gdk_window_process_all_updates.
17616 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
17617 so no need to change it. Calculate size and value with XG_SB_RANGE.
17619 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
17620 Pass left and width of scroll bar including borders to
17621 xg_update_scrollbar_pos.
17623 2003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
17625 * Makefile.in: Make sure space precedes end-of-line backslashes.
17627 2003-03-22 Kim F. Storm <storm@cua.dk>
17629 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
17630 Add generic versions here. Remove system specific versions
17633 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
17636 * xterm.h (STORE_NATIVE_RECT): New macro.
17638 2003-03-21 Kim F. Storm <storm@cua.dk>
17640 * xdisp.c (get_glyph_string_clip_rect):
17641 Use FRAME_INTERNAL_BORDER_WIDTH.
17643 * dispextern.h (struct redisplay_interface): Add active_p
17644 argument to draw_window_cursor member. All uses changed.
17646 2003-03-21 Kim F. Storm <storm@cua.dk>
17648 The following changes consolidate code related to writing and
17649 inserting glyphs, exposing frame, the tool bar, the mouse face,
17650 the output cursor, and help echo from xterm.c, w32term.c and
17651 macterm.c into xdisp.c. It also generalizes the use of the
17652 window_part enum instead of using numeric values throughout.
17654 * xdisp.c: Consolidate gui-independent code here.
17656 (Qhelp_echo): Import.
17657 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
17658 (help_echo_string, help_echo_window, help_echo_object)
17659 (previous_help_echo_string, help_echo_pos): Declare here.
17660 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
17661 (estimate_mode_line_height): Define here. Handle windowing
17662 systems directly (without using estimate_mode_line_height_hook).
17663 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
17664 (update_window_cursor, update_cursor_in_window_tree)
17665 (fast_find_position, fast_find_string_pos)
17666 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
17667 (expose_area, expose_line, expose_overlaps, expose_window)
17668 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
17669 declared static as they are only used locally in xdisp.c.
17670 (draw_glyphs): Rename from x_draw_glyphs and make static.
17671 (tool_bar_item_info, notice_overwritten_cursor): Make static.
17672 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
17673 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
17674 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
17675 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
17676 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
17677 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
17678 (note_mouse_highlight, x_clear_window_mouse_face)
17679 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
17680 (x_intersect_rectangles): New generic functions for use by xdisp.c
17681 and GUI front-ends.
17682 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
17683 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
17685 * dispextern.h (Display_Info): Generic typedef for *_display_info.
17686 (NativeRectangle): Generic typedef for rectangle type.
17687 (enum window_part): Move here from window.c.
17688 (struct redisplay_interface): New members flush_display_optional,
17689 define_frame_cursor, clear_frame_area, draw_window_cursor,
17690 draw_vertical_window_border, shift_glyphs_for_insert.
17691 Rename member clear_mouse_face to clear_window_mouse_face.
17692 (estimate_mode_line_height_hook): Remove hook.
17693 (auto_raise_tool_bar_buttons_p): Don't declare extern.
17694 (tool_bar_item_info): Remove prototype.
17695 (help_echo_string, help_echo_window, help_echo_object)
17696 (previous_help_echo_string, help_echo_pos)
17697 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
17698 (x_stretch_cursor_p, output_cursor): Declare extern.
17699 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
17700 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
17701 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
17702 (display_and_set_cursor, set_output_cursor, x_cursor_to)
17703 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
17704 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
17705 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
17706 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
17707 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
17709 (mode_line_string, marginal_area_string): Fix prototypes.
17711 * window.c (enum window_part): Move to dispextern.h.
17712 (coordinates_in_window): Use enum window_part member names
17713 instead of numbers to describe return value.
17714 (struct check_window_data): Change part member to window_part.
17715 (check_window_containing): Return window_part unaltered.
17716 (window_from_coordinates): Change part arg from int to enum
17717 window_part. Allow part arg to be null. All users changed.
17719 * window.h (window_from_coordinates): Fix prototype.
17721 * term.c (estimate_mode_line_height): Move to xdisp.c.
17723 * keyboard.c (make_lispy_event): Use enum window_part.
17725 * dispnew.c (mode_line_string, marginal_area_string): Use enum
17726 window_part instead of int in arg list. Users changed.
17728 * xterm.h (No_Cursor): Declare as None for X.
17729 (struct mac_output): Replace member cross_cursor by hand_cursor.
17731 * xterm.c: Remove consolidated defines and code.
17732 (BETWEEN): Remove unused macro.
17733 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
17734 (x_define_frame_cursor, x_clear_frame_area)
17735 (x_draw_window_cursor): New X-specific functions for RIF.
17736 (x_redisplay_interface): Add new members.
17738 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
17740 * w32term.h (struct w32_output): Remove cross_cursor member.
17742 * w32term.c: Remove consolidated defines and code.
17743 (BETWEEN): Remove unused macro.
17744 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
17745 (w32_define_frame_cursor, w32_clear_frame_area)
17746 (w32_draw_window_cursor): New W32-specific functions for RIF.
17747 (w32_redisplay_interface): Add new members.
17749 * w32gui.h (No_Cursor): Define as 0 for W32.
17750 (XRectangle): Add X compatible rectangle type.
17751 (NativeRectangle): Declare as RECT for W32.
17752 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
17754 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
17756 * w32console.c: Remove consolidated defines and code.
17758 * msdos.h (Display_Info): Add generic typedef.
17760 * msdos.c: Remove consolidated defines and code.
17761 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
17763 * macterm.h (struct mac_output): Replace member cross_cursor by
17765 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
17767 * macterm.c: Remove consolidated defines and code.
17768 (BETWEEN): Remove unused macro.
17769 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
17770 (mac_define_frame_cursor, mac_clear_frame_area)
17771 (mac_draw_window_cursor): New Mac-specific functions for RIF.
17772 (x_redisplay_interface): Add new members.
17774 * macgui.h (No_Cursor): Define as 0 for Mac.
17775 (XRectangle): Add X compatible rectangle type.
17776 (NativeRectangle): Declare as Rect for Mac.
17777 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
17779 * macfns.c (x_set_mouse_color): Setup hand_cursor.
17780 (x_set_cursor_color): Use x_display_and_set_cursor.
17782 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
17783 included from it. Add dependency on keymap.h.
17785 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
17787 2003-03-21 Kenichi Handa <handa@m17n.org>
17789 * fileio.c (Fexpand_file_name): Fix previous change.
17791 2003-03-19 Kenichi Handa <handa@m17n.org>
17793 * fileio.c (Ffile_name_directory): Reconstruct file name by
17794 make_specified_string.
17795 (Ffile_name_nondirectory, Ffile_name_as_directory)
17796 (Fdirectory_file_name, Fexpand_file_name)
17797 (Fsubstitute_in_file_name): Likewise.
17798 (Fread_file_name): Compare decoded homedir with DIR and
17801 * alloc.c (make_specified_string): If NCHARS is negative, count
17802 the number of characters.
17804 2003-03-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17806 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
17809 * gtkutil.h: Removed xg_ignore_next_thumb.
17811 2003-03-18 Kenichi Handa <handa@m17n.org>
17813 * coding.c (Vchar_coding_system_table): Remove this variable.
17814 (Vcoding_system_safe_chars): New variable.
17815 (intersection): Remove this function.
17816 (find_safe_codings): Don't use Vchar_coding_system_table, but try
17817 all codings in SAFE_CODINGS.
17818 (Ffind_coding_systems_region_internal): Adjust for the change of
17819 find_safe_codings. Get generic coding systems from
17820 Vcoding_system_safe_chars.
17821 (Fdefine_coding_system_internal): New function.
17822 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
17823 Initialize and staticpro Vcoding_system_safe_chars.
17825 2003-03-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17827 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
17828 equal old values before updating.
17830 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
17832 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
17834 2003-03-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17836 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
17837 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
17838 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
17839 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
17840 (xg_create_scroll_bar): Pass bar to button event callback.
17841 (xg_find_top_left_in_fixed): New function.
17842 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
17843 whole scroll bar area. Get old position with
17844 xg_find_top_left_in_fixed, calculate and only clear needed areas.
17845 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
17846 dragging is in progress. Calculate whole as for Motif.
17847 Remove code that saved last values. Call gtk_range functions to
17848 set scroll bar sizes.
17850 * gtkutil.h: Removed xg_ignore_next_thumb.
17852 2003-03-17 Juanma Barranquero <lektu@terra.es>
17854 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
17855 and files included from it.
17857 2003-03-18 Stefan Monnier <monnier@cs.yale.edu>
17859 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
17860 multiple occurrences of the same keymap under different prefixes.
17861 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
17863 2003-03-16 Jason Rumney <jasonr@gnu.org>
17865 * w32gui.h: Use HDC for Display.
17867 * w32term.c (w32_encode_char): Prevent double-byte chars from
17870 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
17873 2003-03-16 Juanma Barranquero <lektu@terra.es>
17875 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
17877 2003-03-16 Kim F. Storm <storm@cua.dk>
17879 The following changes consolidate some of the gui-independent
17880 parts of the processing and drawing of "glyph strings" from
17881 xterm.c, w32term.c, and macterm.c into xdisp.c.
17883 * dispextern.h (struct glyph): Reduce face_id member from 22 to
17884 21 bits (this reduces number of faces from 4M to 2M).
17885 Replace W32 specific w32_font_type member (2 bits) by generic
17886 font_type member (3 bits) for portability.
17887 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
17888 (enum draw_glyphs_face): Define here.
17889 (struct glyph_string): Define here. Merge W32 and X versions.
17890 (struct redisplay_interface): New members per_char_metric,
17891 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
17892 (VCENTER_BASELINE_OFFSET): Define here.
17893 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
17894 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
17896 * xdisp.c: Consolidate gui-independent "glyph string" code here.
17897 (dump_glyph_string): Moved here.
17898 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
17899 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
17900 (fill_composite_glyph_string, fill_glyph_string)
17901 (fill_image_glyph_string, fill_stretch_glyph_string)
17902 (left_overwritten, left_overwriting, right_overwritten)
17903 (right_overwriting, get_char_face_and_encoding)
17904 (set_glyph_string_background_width, compute_overhangs_and_x)
17905 (append_glyph, append_composite_glyph, produce_image_glyph)
17906 (take_vertical_position_into_account, append_stretch_glyph)
17907 (produce_stretch_glyph): New generic functions (based on X version).
17908 Call platform specific functions through rif.
17909 (INIT_GLYPH_STRING): New macro, hides W32 details.
17910 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
17911 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
17912 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
17913 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
17914 (notice_overwritten_cursor):
17915 Generic functions exported to platform modules. Users changed.
17917 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
17918 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
17919 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
17920 New macros for consolidated code.
17922 * xterm.c: Remove consolidated defines and code.
17923 (x_per_char_metric, x_encode_char)
17924 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
17925 (x_redisplay_interface): Add new members.
17927 * w32gui.h (Display): Add dummy typedef for consolidation.
17928 (XChar2b): Define alias for wchar_t for consolidation.
17929 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
17931 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
17932 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
17933 New macros for consolidation.
17935 * w32term.c: Remove consolidated defines and code.
17936 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
17937 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
17938 (w32_per_char_metric): Change font_type arg to int for RIF.
17939 (w32_encode_char): Return int according to RIF requirements.
17940 (w32_compute_glyph_string_overhangs): Adapt to RIF.
17941 (w32_get_glyph_overhangs): New function for RIF. Uses generic
17942 x_get_glyph_overhangs.
17943 (w32_redisplay_interface): Add new members.
17945 * macgui.h (XChar2b): Move typedef here for consolidation.
17946 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
17948 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
17949 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
17952 * macterm.c: Remove consolidated defines and code.
17953 (mac_per_char_metric): New function for RIF.
17954 (mac_encode_char): Adapt to new RIF requirements.
17955 (mac_compute_glyph_string_overhangs): Adapt for RIF.
17956 (x_redisplay_interface): Add new members.
17958 2003-03-15 Stefan Monnier <monnier@cs.yale.edu>
17960 * keymap.c (Vmenu_events): New var.
17961 (syms_of_keymap): Initialize it.
17962 (where_is_internal): Check more carefully what is a menu event.
17964 2003-03-14 Richard M. Stallman <rms@gnu.org>
17966 * lread.c (read1): After #!, exit loop on eof.
17968 2003-03-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17970 * gtkutil.h: Add declaration for xg_frame_cleared.
17972 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
17974 * gtkutil.c (struct xg_last_sb_pos): New structure.
17975 (handle_fixed_child): New function.
17976 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
17977 and force a redraw on them.
17978 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
17979 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
17980 so we can avoid unneeded redraws.
17981 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
17982 and force a redraw on the scroll bar.
17983 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
17984 if xg_last_sb_pos shows the positions are up to date.
17985 (xg_frame_cleared): New function.
17987 2003-03-13 Kenichi Handa <handa@m17n.org>
17989 * coding.c (Fdetect_coding_region): Fix docstring.
17990 (Fdetect_coding_string): Fix docstring.
17992 2003-03-13 Andreas Schwab <schwab@suse.de>
17994 * gtkutil.c: Add prototype for create_menus.
17996 * data.c (long_to_cons): Fix type of top.
17998 * xselect.c (selection_data_to_lisp_data): Use int instead of
17999 long for an integer of size 4.
18001 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
18002 (xg_tool_bar_help_callback): Likewise.
18004 2003-03-12 Andreas Schwab <schwab@suse.de>
18006 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
18008 2003-03-12 Kim F. Storm <storm@cua.dk>
18010 The following changes consolidate the fringe handling from
18011 xterm.c, w32term.c, and macterm.c into xdisp.c.
18013 * xdisp.c: Consolidate fringe handling code here.
18014 (left_bits, right_bits, continued_bits, continuation_bits)
18015 (ov_bits, zv_bits): Define fringe bitmaps.
18016 (fringe_bitmaps): New array holding fringe bitmaps.
18017 (draw_fringe_bitmap): Draw a specific bitmap; call display
18018 specific drawing routine via rif->draw_fringe_bitmap.
18019 (draw_row_fringe_bitmaps): Generic replacement for
18020 x_draw_row_fringe_bitmaps; all callers changed.
18021 (compute_fringe_widths): Generic replacement for
18022 x_compute_fringe_widths; all callers changed.
18024 * dispextern.h (enum fringe_bitmap_type): Define here.
18025 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
18026 (fringe_bitmaps): Declare extern.
18027 (struct redisplay_interface): New member draw_fringe_bitmap.
18028 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
18030 * xterm.c: Remove generic fringe code.
18031 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
18032 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
18034 * w32term.c: Remove generic fringe code.
18035 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
18036 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
18038 * macterm.c: Remove generic fringe code.
18039 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
18040 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
18042 2003-03-11 Stefan Monnier <monnier@cs.yale.edu>
18044 * print.c (Fprin1_to_string): Return unibyte string if possible.
18046 2003-03-09 David Kastrup <dak@gnu.org>
18048 * process.c (read_process_output): We have allocated enough space
18049 for readmax and carryover, so actually use the alloted space.
18051 2003-03-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18053 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
18054 toolkit scrollbar click.
18056 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
18058 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
18060 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
18061 scrollbar and control is pressed, call x_scroll_bar_handle_click.
18063 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
18065 * gtkutil.c (xg_get_scroll_id_for_window): New function.
18066 (xg_tool_bar_item_expose_callback): New function.
18067 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
18068 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
18069 on the tool bar widget.
18070 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
18071 to expose on the tool bar item widgets.
18073 2003-03-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18075 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
18076 struct image* when deciding to update (struct image* may have been
18077 deleted from the image cache).
18079 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
18080 the event isn't for a frame (i.e. for dialogs).
18082 2003-03-07 Kenichi Handa <handa@m17n.org>
18084 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
18085 composition components reaches the limit, terminate composing.
18086 (COMPOSITION_OK): New macro.
18087 (detect_coding_iso2022): Use it if an escape sequence for
18088 composition is found.
18089 (coding_restore_composition): Adjust the number of composition
18090 components if it is not sane.
18092 2003-03-06 Juanma Barranquero <lektu@terra.es>
18094 * w32term.h (struct w32_display_info): Add xrdb member to support
18095 passing resources via -xrm on Windows.
18097 * w32term.c (w32_make_rdb): New function.
18098 (w32_term_init): Use it to initialize xrdb member of w32_display_info
18099 struct. Delete leftover code.
18101 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
18102 for resources passed on the command line.
18104 * w32reg.c (w32_get_rdb_resource): New function.
18105 (x_get_string_resource): Use it, so resources passed with -xrm
18106 supercede the ones in the registry.
18108 2003-03-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18110 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
18111 instead of x_top_window_to_frame.
18113 2003-03-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18115 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
18116 when restarting Emacs.
18118 2003-03-03 Richard M. Stallman <rms@gnu.org>
18120 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
18121 to run kill-buffer-query-functions.
18122 (Qkill_buffer_query_functions): New var.
18123 (syms_of_buffer): Init and staticpro it.
18125 2003-03-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18127 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
18129 2003-02-25 Kim F. Storm <storm@cua.dk>
18131 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
18132 If centering point failed to make whole line visible and vscroll
18133 is non-zero, disable vscroll and try centering point again.
18135 * lread.c (read1): Accept `single space' syntax like (? x).
18137 2003-02-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18139 * keyboard.c (cancel_hourglass_unwind): Surround with
18140 #ifdef HAVE_X_WINDOWS
18142 2003-02-25 Kenichi Handa <handa@m17n.org>
18144 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
18145 process only when "subprocesses" is defined.
18147 2003-02-24 Stefan Monnier <monnier@cs.yale.edu>
18149 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
18151 2003-02-24 Juanma Barranquero <lektu@terra.es>
18153 * callint.c (fix_command): Declare as static void and move before
18154 Fcall_interactively.
18156 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
18157 (syms_of_xdisp): Don't initialize Qwhen.
18159 2003-02-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18161 * keyboard.c (cancel_hourglass_unwind): New function.
18162 (command_loop_1): Cancel hourglass with unwind-protect.
18164 2003-02-23 Richard M. Stallman <rms@gnu.org>
18166 * callint.c (fix_command): New subroutine, from Fcall_interactively.
18167 Detect (when ... (region-beginning)) etc.
18168 (Fcall_interactively): Call fix_command.
18169 (Qif, Qwhen): New variables.
18170 (syms_of_callint): Init and staticpro them.
18172 * regex.c (print_partial_compiled_pattern): Output to stderr.
18174 2003-02-23 Kai Gro
\e,A_
\e(Bjohann <kai.grossjohann@uni-duisburg.de>
18176 * dired.c (directory_files_internal): Don't expand directory.
18177 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
18178 instead. From Lars Hansen <larsh@math.ku.dk>.
18180 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
18182 * fns.c (string_to_multibyte): Remove unused var i.
18183 (Flanginfo): Fix int/Lisp_Object mixup.
18184 (void_call2): New fun.
18185 (Fmap_char_table): Use it in place of call2.
18187 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
18189 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
18191 * keymap.c (copy_keymap_1): Make it static.
18193 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
18195 2003-02-22 David Ponce <david@dponce.com>
18197 * lread.c (Fload): Don't check STRING_MULTIBYTE.
18199 2003-02-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18201 * process.h: Removed subtty field from struct Lisp_Process.
18203 * process.c (create_process): Remove setting of subtty.
18204 (emacs_get_tty_pgrp): New function.
18205 (Fprocess_running_child_p, process_send_signal):
18206 Call emacs_get_tty_pgrp instead of ioctl.
18207 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
18209 2003-02-21 Kai Gro
\e,A_
\e(Bjohann <kai.grossjohann@uni-duisburg.de>
18211 * keymap.c (Fdefine_key): Doc fix.
18213 2003-02-21 Juanma Barranquero <lektu@terra.es>
18215 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
18217 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
18218 POLLING_PROBLEM_IN_SELECT.
18220 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
18221 Delete #undef of POLLING_PROBLEM_IN_SELECT.
18223 * s/hpux10-20.h: New file.
18225 * process.c (wait_reading_process_input):
18226 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
18228 2003-02-20 Kenichi Handa <handa@m17n.org>
18230 * fontset.c (check_fontset_name): If NAME is nil, return the
18232 (override_font_info): New function.
18233 (Fset_fontset_font): Document that NAME nil means the default fontset.
18234 (Ffontset_info): If FONTSET is not the default fontset, merge
18235 FONTSET onto the copy of the default fontset, and work on that
18236 copy. Document that NAME nil means the default fontset.
18237 (Ffontset_font): Document that NAME nil means the default fontset.
18239 * process.c (setup_process_coding_systems): If the process's
18240 in/out descriptor is -1, do nothing.
18242 2003-02-19 Andreas Schwab <schwab@suse.de>
18244 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
18247 2003-02-19 Kenichi Handa <handa@m17n.org>
18249 * xfaces.c (try_alternative_families): Try all scalable fonts if
18250 Vscalable_fonts_allowed is not Qt.
18252 2003-02-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18254 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
18256 2003-02-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18258 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
18261 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
18262 (sorted_font_list): Move allocation of struct font_name to
18264 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
18265 (Fx_list_fonts): Set maxnames to -1 to get all font names.
18267 2003-02-18 Kim F. Storm <storm@cua.dk>
18269 * lread.c (read1): Fix last change.
18270 "`" is not always special. Allow "?" after a character constant.
18272 2003-02-18 Andrew Choi <akochoi@shaw.ca>
18274 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
18276 2003-02-18 Andreas Schwab <schwab@suse.de>
18278 * window.c (window_scroll_pixel_based): Move outside a
18279 multi-glyph character before setting new window start.
18281 * xdisp.c (in_display_vector_p): New function.
18282 * dispextern.h (in_display_vector_p): Declare.
18284 2003-02-18 Kim F. Storm <storm@cua.dk>
18286 * lread.c (read1): Fix and relax read syntax.
18287 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
18288 Only recognize "," after dotted-pair dot if inside backquote.
18289 Never include "`" or "," (inside backquote) in a symbol.
18290 Allow dotted-pair dot after a character constant.
18291 Allow "`" and "," (inside backquote) after a character constant.
18293 2003-02-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18295 * gtkutil.c (xg_tool_bar_expose_callback): New function.
18296 (xg_create_tool_bar): Force style of tool bar to be horizontal with
18297 icons. Set name of tool bar to emacs-toolbar.
18298 (update_frame_tool_bar): Connect expose event to
18299 xg_tool_bar_expose_callback.
18301 2003-02-17 Richard M. Stallman <rms@gnu.org>
18303 * keyboard.c (this_command_key_count_reset): New variable.
18304 Initiatize to 0 where this_command_key_count is set.
18305 (read_char): Save and restore this_command_key_count_reset
18306 around input method code.
18307 (read_char): If this_command_key_count_reset, echo reread commands.
18308 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
18310 2003-02-17 Kenichi Handa <handa@m17n.org>
18312 * fns.c (string_to_multibyte): Always return a multibyte string.
18314 2003-02-16 Jason Rumney <jasonr@gnu.org>
18316 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
18317 Negative max_fonts parameter means list all.
18319 2003-02-14 Dave Love <fx@gnu.org>
18321 * fns.c (Flanginfo): Doc fix.
18323 2003-02-13 Kim F. Storm <storm@cua.dk>
18325 * lread.c (read_escape): Interpret \s as a SPACE character, except
18326 for \s-X in a character constant which still is the super modifier.
18327 (read1): Signal an `invalid read syntax' error if a character
18328 constant is immediately followed by a digit or symbol character.
18330 * search.c (Fmatch_data): Doc fix. Explicitly state that
18331 match-data is undefined if last search failed.
18333 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
18336 2003-02-12 Juanma Barranquero <lektu@terra.es>
18338 * eval.c (Fdefmacro): Fix typo.
18340 2003-02-12 Kim F. Storm <storm@cua.dk>
18342 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
18343 macro is a string, convert meta modifiers in string when copying
18344 the string into a vector.
18346 2003-02-11 Kim F. Storm <storm@cua.dk>
18348 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
18350 2003-02-11 Kenichi Handa <handa@m17n.org>
18352 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
18354 2003-02-10 Kim F. Storm <storm@cua.dk>
18356 * process.c: Doc fixes.
18357 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
18359 2003-02-10 Kenichi Handa <handa@m17n.org>
18361 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
18363 * process.c (QCfilter_multibyte): New variable.
18364 (setup_process_coding_systems): New function.
18365 (Fset_process_buffer, Fset_process_filter):
18366 Call setup_process_coding_systems.
18367 (Fstart_process): Initialize the member `filter_multibyte' of
18368 struct Lisp_Process.
18369 (create_process): Call setup_process_coding_systems.
18370 (Fmake_network_process): New keyward `:filter-multibyte'.
18371 Initialize the member `filter_multibyte' of struct Lisp_Process.
18372 Call setup_process_coding_systems.
18373 (server_accept_connection): Call setup_process_coding_systems.
18374 (read_process_output): If the process has a filter, decide the
18375 multibyteness of a string to given to the filter by
18376 `filter_multibyte' member of the process. If the process doesn't
18377 have a filter and the result of conversion is unibyte, use
18378 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
18380 (Fset_process_coding_system): Call setup_process_coding_systems.
18381 (Fset_process_filter_multibyte): New function.
18382 (Fprocess_filter_multibyte_p): New function.
18383 (syms_of_process): Intern and staticpro QCfilter_multibyte.
18384 Defsubr Sset_process_filter_multibyte and
18385 Sprocess_filter_multibyte_p.
18387 * process.h (struct Lisp_Process): New member filter_multibyte.
18389 * lisp.h (setup_process_coding_systems): Add prototype.
18391 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
18392 process, update coding systems for the process.
18394 2003-02-09 Kenichi Handa <handa@m17n.org>
18396 * fns.c (string_to_multibyte): New function.
18397 (Fstring_to_multibyte): New function.
18398 (syms_of_fns): Defsubr it.
18400 2003-02-08 Andreas Schwab <schwab@suse.de>
18402 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
18403 instead of the substitution.
18405 2003-02-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18407 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
18409 * xmenu.c (menu_position_func): Adjust menu popup position so that
18410 the menu is fully visible.
18412 2003-02-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18414 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
18415 (x_make_frame_invisible, x_wm_set_icon_position):
18416 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
18418 * xfns.c (x_set_name, x_set_title): Ditto.
18420 2003-02-04 Richard M. Stallman <rms@gnu.org>
18422 * keyboard.c (echo_now): Update before_command_echo_length.
18423 (Freset_this_command_lengths): Reset this_command_key_count etc.
18424 immediately rather than arranging to do it later.
18425 (before_command_key_count_1, before_command_echo_length_1)
18426 (before_command_restore_flag): Vars deleted.
18427 (add_command_key): Don't handle before_command_restore_flag.
18428 (read_char, record_menu_key): Don't update before_command_key_count or
18429 before_command_echo_length.
18430 (read_char): Don't handle before_command_restore_flag.
18432 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
18433 in direct-output clauses if it wouldn't be called in the ordinary case.
18435 2003-02-04 Kim F. Storm <storm@cua.dk>
18437 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
18439 2003-02-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18441 * gtkutil.c (remove_from_container): Copying list is not needed.
18442 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
18443 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
18444 on list returned from gtk_container_get_children to avoid memory leak.
18446 2003-02-01 Jason Rumney <jasonr@gnu.org>
18448 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
18450 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
18451 definitions in xpm.h.
18452 (init_xpm_functions): New function.
18453 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
18454 (init_external_image_libraries): Try to load libXpm.dll.
18456 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
18459 2003-01-31 Dave Love <fx@gnu.org>
18461 * syntax.c (Fskip_chars_forward)
18462 (open-paren-in-column-0-is-defun-start): Doc fix.
18464 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
18466 * fileio.c: Support // at start of name for Cygwin (just added proper
18467 preprocessor tests).
18469 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
18471 * Makefile.in: Use @EXEEXT@ for Cygwin.
18473 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
18475 * s/cygwin.h: Added for Cygwin port.
18477 2003-01-31 Juanma Barranquero <lektu@terra.es>
18479 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
18480 when including gif_lib.h.
18481 (init_gif_functions, init_tiff_functions): New functions.
18482 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
18483 Windows. Disable color table lookups. Call library functions
18484 through pointers determined at runtime.
18485 (init_external_image_libraries): Try to load libungif.dll and
18488 2003-01-31 Kenichi Handa <handa@m17n.org>
18490 * xdisp.c (SKIP_GLYPHS): New macro.
18491 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
18493 2003-01-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18495 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
18497 2003-01-30 Dave Love <fx@gnu.org>
18499 * alloc.c (Vgc_elapsed, gcs_done): New variables.
18500 (Fgarbage_collect): Use them.
18501 (init_alloc, syms_of_alloc): Set them up.
18503 2003-01-30 Juanma Barranquero <lektu@terra.es>
18505 * w32fns.c (init_external_image_libraries): Add missing operator.
18507 2003-01-29 Jason Rumney <jasonr@gnu.org>
18509 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
18510 an alternative name for jpeg.dll.
18512 2003-01-29 Kenichi Handa <handa@m17n.org>
18514 * xdisp.c (set_cursor_from_row): Pay attention to string display
18517 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
18519 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
18521 (keycode_to_xkeysym_table): Reformat and add more comments.
18522 (XTread_socket): Drop special case for backspace.
18524 2003-01-28 Andrew Choi <akochoi@shaw.ca>
18526 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
18527 values in old-style RGB specs.
18529 2003-01-27 Juanma Barranquero <lektu@terra.es>
18531 * w32fns.c (init_external_image_libraries): Try alternate names for the
18534 2003-01-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18536 * gtkutil.c (create_dialog, xg_separator_p)
18537 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
18538 before calling strcmp or strlen.
18540 2003-01-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18542 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
18543 and handle image load failure.
18545 2003-01-26 Jason Rumney <jasonr@gnu.org>
18547 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
18549 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
18550 Disable color table lookups. Call jpeg library functions
18551 through pointers determined at runtime.
18552 (init_external_image_libraries): Try to load jpeg.dll.
18554 2003-01-25 Richard M. Stallman <rms@gnu.org>
18556 * lisp.h: Declare format2 instead of format1.
18558 * fileio.c (barf_or_query_if_file_exists):
18559 Call format2 instead of format1.
18561 * editfns.c (format2): New function, replaces format1
18562 but takes exactly two Lisp Objects as format args.
18564 * buffer.c (Fkill_buffer): Call format2 instead of format1.
18566 2003-01-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18568 * xterm.h: Change to return value of x_dispatch_event to int.
18570 * xterm.c (x_filter_event): New function.
18571 (event_handler_gdk, XTread_socket): Call x_filter_event.
18572 (x_dispatch_event): Change to return value of finish.
18573 (event_handler_gdk): Use return value from x_dispatch_event.
18575 * xfns.c (x_window): Call create_frame_xic for GTK version to
18576 initialize input methods.
18578 * gtkutil.h: Add (void) prototypes.
18580 * gtkutil.c (create_menus): Remove code that puts the help menu to
18583 2003-01-25 Jason Rumney <jasonr@gnu.org>
18585 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
18586 [HAVE_PNG]: Sync with xfns.c version.
18587 (png_load): Adjust colors for Windows. Use Windows
18588 bitmaps. Disable color table lookups.
18589 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
18590 (init_png_functions): New function.
18591 (png_read_from_memory, png_load): Call png library functions
18592 through pointers determined at runtime.
18593 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
18594 (init_external_image_libraries): New function.
18595 (init_xfns): Call it.
18597 2003-01-24 Andreas Schwab <schwab@suse.de>
18599 * minibuf.c (Fminibuffer_message): Verify type of parameter.
18601 2003-01-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18603 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
18604 of static initializer.
18606 2003-01-24 Dave Love <fx@gnu.org>
18608 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
18611 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
18614 2003-01-24 Kenichi Handa <handa@m17n.org>
18616 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
18617 It it is nonzero, don't pretend that an invisible area doesn't exist.
18618 (command_loop_1): Call adjust_point_for_property with proper
18621 2003-01-22 Jason Rumney <jasonr@gnu.org>
18623 Sync changes with xterm.c and xfns.c.
18625 * w32term.c (x_draw_glyph_string_foreground)
18626 (x_draw_composite_glyph_string_foreground): Implement overstriking.
18628 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
18629 phys_cursor's hpos is overwritten. This is still not completely
18630 correct, as it doesn't really make sense to use hpos at all to
18631 get the cursor glyph (as that is relative to the width of the
18632 characters on the line, which may have changed during the update).
18634 * w32term.c (notice_overwritten_cursor): Handle the special case
18635 of the cursor being in the first blank non-text line at the
18638 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
18639 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
18640 Compute from the x position returned by x_draw_glyphs.
18642 (x_display_and_set_cursor): Don't set phys_cursor_width here,
18643 except for NO_CURSOR and system caret, to make phys_cursor_width
18644 contain what its name suggests.
18645 (notice_overwritten_cursor): Consider the cursor image erased if
18646 the output area intersects the cursor image in y-direction.
18648 * w32term.c (note_mode_line_or_margin_highlight): Rename from
18649 note_mode_line_highlight and extend.
18651 * w32term.c (last_window): New variable.
18652 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
18653 (note_mouse_movement): Remove reimplemented code in #if 0.
18655 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
18656 not update_mode_lines, and always set it to 1.
18658 2003-01-21 Jason Rumney <jasonr@gnu.org>
18660 * w32fns.c (IDC_HAND): Define it if system headers don't.
18662 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
18664 * w32term.h (struct w32_output): New member hand_cursor.
18665 (WM_EMACS_SETCURSOR): New message definition.
18667 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
18668 function w32_define_cursor.
18669 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
18670 position, change member name output_data.x to output_data.w32 and
18671 add function w32_define_cursor.
18672 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
18673 and change member name output_data.x to output_data.w32.
18674 (w32_initialize_display_info):
18675 Setup dpyinfo->vertical_scroll_bar_cursor.
18677 * w32fns.c (Vx_hand_shape): New variable.
18678 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
18679 WM_EMACS_SETCURSOR.
18680 (x-create-frame): Setup Cursor types.
18682 2003-01-21 David Ponce <david@dponce.com>
18684 * w32term.c (w32_encode_char): For DIM=1 charset, set
18685 ccl->reg[2] to -1 before calling ccl_driver.
18686 (Sync. with xterm.c x_encode_char change by Kenichi Handa
18687 <handa@m17n.org> on 2002-09-30.)
18688 (w32_draw_relief_rect): Declare all args.
18689 (w32_define_cursor): New.
18691 * w32fns.c (w32_load_cursor): New function.
18692 (w32_init_class): Use it.
18693 (x_put_x_image): Declare all args.
18695 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
18697 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
18699 2003-01-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18701 * gtkutil.c: Must include stdio.h before termhooks.h
18703 2003-01-21 Dave Love <fx@gnu.org>
18705 * alloc.c (Fgc_status): Print zombie list.
18706 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
18707 Fix assignment of zombies.
18708 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
18709 Don't take car of non-cons.
18711 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
18713 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
18715 2003-01-20 David Ponce <david@dponce.com>
18717 * w32menu.c (digest_single_submenu): Declare all args.
18719 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
18720 changes in xmenu.c:
18722 (parse_single_submenu): Use individual keymap's prompt
18723 string as pane name, if there is one.
18724 (set_frame_menubar): Save menu_items_n_panes from each call to
18725 parse_single_submenu and use it when calling digest_single_submenu.
18727 2003-01-20 Steven Tamm <steventamm@mac.com>
18729 * macterm.c (XTread_socket): Check for valid, visible window
18730 before sending a scroll-wheel event.
18732 2003-01-20 Richard M. Stallman <rms@gnu.org>
18734 * xdisp.c (redisplay_window): If mini window's buffer is not
18735 a minibuffer, then redisplay it like other windows.
18737 2003-01-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18739 * gtkutil.c (xg_create_frame_widgets): Check if there is an
18740 external tool bar before setting tool bar height.
18742 2003-01-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18744 * xterm.c (handle_one_xevent): Surround popup_activated
18745 with #ifdef:s for non-toolkit version.
18747 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
18748 (gtkutil.o): New file.
18749 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
18750 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
18752 * gtkutil.c: New file for GTK version.
18754 * gtkutil.h: New file for GTK version.
18756 * xterm.h: Add xt_or_gtk_widget.
18757 Include gtk files for USE_GTK.
18758 (struct x_output): Add toolbar_height.
18759 (struct x_output): Add GTK widgets and Gdk size_hints.
18760 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
18761 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
18762 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
18764 * xterm.c: Include gtkutil.h for USE_GTK.
18765 (free_frame_menubar): Declare extern void for USE_GTK.
18766 (note_mouse_highlight): Check popup_activated for USE_GTK.
18767 (xt_action_hook): Don't compile if USE_GTK.
18768 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
18769 (xg_scroll_callback): New function.
18770 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
18771 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
18773 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
18774 xg_show_scroll_bar for USE_GTK.
18775 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
18776 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
18777 (event_handler_gdk): New function for USE_GTK.
18778 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
18779 (handle_one_xevent): Make sure widget is mapped before
18780 calling x_real_positions for USE_GTK.
18781 (XTread_socket): Add GTK event loop for USE_GTK.
18782 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
18783 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
18784 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
18785 (x_iconify_frame): Add code for USE_GTK.
18786 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
18787 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
18789 (x_term_init): Add initialization for GTK.
18790 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
18792 * xmenu.c: Include gtkutil.h for USE_GTK.
18793 (Fx_popup_menu): Use current position if x and y is NIL.
18794 (single_menu_item, single_menu_item, Fx_popup_dialog):
18796 (popup_widget_loop): New function for USE_GTK.
18797 (x_activate_menubar): Add code for USE_GTK.
18798 (popup_activate_callback, popup_deactivate_callback)
18799 (menu_highlight_callback, menubar_selection_callback):
18800 Add USE_GTK versions.
18801 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
18802 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
18803 (free_frame_menubar): Only compile if not USE_GTK. GTK version
18805 (popup_selection_callback): New version for USE_GTK.
18806 (create_and_show_popup_menu): New fuction, one USE_GTK version and
18807 one USE_X_TOOLKIT version.
18808 (xmenu_show): Call create_and_show_popup_menu.
18809 (dialog_selection_callback): New version for USE_GTK.
18810 (create_and_show_dialog): New fuction, one USE_GTK version and
18811 one USE_X_TOOLKIT version.
18812 (xdialog_show): Call create_and_show_dialog.
18814 * xfns.c: Include gtkutil for USE_GTK.
18815 (x_window_to_frame, x_any_window_to_frame)
18816 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
18817 (x_top_window_to_frame): Add code for USE_GTK.
18818 (x_set_background_color): Call xg_set_background_color for GTK.
18819 (x_set_menu_bar_lines): Check for USE_GTK.
18820 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
18821 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
18822 (x_window): Call xg_create_frame_widgets for USE_GTK.
18823 (Fx_create_frame): Check for USE_GTK
18824 (Fx_file_dialog): New implementation for USE_GTK.
18826 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
18827 (update_menu_bar): Add check for USE_GTK.
18828 (update_tool_bar): Add check for USE_GTK and external tool bar.
18829 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
18830 (redisplay_internal): Add check for USE_GTK and popup_activated.
18831 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
18832 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
18833 (display_menu_bar): Add check for USE_GTK
18835 * lisp.h (Vx_resource_name): Declare extern.
18837 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
18839 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
18841 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
18842 (FRAME_EXTERNAL_TOOL_BAR): New macro.
18843 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
18845 * fileio.c (Fread_file_name): Add check for USE_GTK.
18847 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
18848 Add check for USE_GTK.
18850 * config.in: Added HAVE_GTK
18852 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
18854 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
18856 * charset.h (Funibyte_char_to_multibyte): Export.
18858 2003-01-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18860 * xmenu.c (mouse_position_for_popup): New function.
18861 (Fx_popup_menu): Call mouse_position_for_popup for X and
18862 mouse_position_hook for others.
18864 2003-01-17 Kim F. Storm <storm@cua.dk>
18866 * editfns.c (Finsert): Mention `string-make-multibyte' and
18867 `string-as-multibyte' in doc string.
18869 2003-01-17 Kenichi Handa <handa@m17n.org>
18871 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
18873 * editfns.c (Fformat): Convert an unibyte char argument that is
18874 formatted by "%c" to multibyte if the total result must be a
18877 2003-01-16 Kim F. Storm <storm@cua.dk>
18879 * process.c (set-process-filter): Document unibyte/multibyte-ness
18880 of string argument.
18882 2003-01-16 Kenichi Handa <handa@m17n.org>
18884 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
18886 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
18887 (re_search_2): Likewise.
18889 2003-01-15 Kenichi Handa <handa@m17n.org>
18891 * xdisp.c (message_dolog): Fix bug of the case that *Message*
18894 2003-01-15 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
18896 * fns.c (Fsubstring): Clarify doc string.
18898 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
18899 (Fprevious_char_property_change)
18900 (Fnext_single_char_property_change)
18901 (Fprevious_single_char_property_change, Fnext_property_change)
18902 (Fnext_single_property_change, Fprevious_property_change)
18903 (Fprevious_single_property_change, Fadd_text_properties)
18904 (Fput_text_property, Fset_text_properties)
18905 (Fremove_text_properties, Fremove_list_of_text_properties)
18906 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
18908 2003-01-14 Kim F. Storm <storm@cua.dk>
18910 * process.h (struct Lisp_Process): New member plist replaces old
18911 member private_vars. All uses changed.
18913 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
18914 (QCplist): Rename from QCvars. Change all uses.
18915 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
18916 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
18917 (syms_of_process): Intern, staticpro, defsubr these.
18918 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
18920 2003-01-14 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
18922 * m/delta.h: Remove (obsolete).
18924 2003-01-13 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
18926 * fileio.c (Fdelete_directory, Fdelete_file): Document the
18927 behaviour in front of symlinks.
18928 (Fdelete_file): Raise an error on directories.
18930 2003-01-13 Dave Love <fx@gnu.org>
18932 * fns.c (Freverse): Use QUIT.
18934 2003-01-13 Richard M. Stallman <rms@gnu.org>
18936 * minibuf.c (minibuffer_completion_contents):
18937 Error if point is inside prompt.
18939 * keyboard.c (command_loop_1): Don't redisplay directly
18940 if there's a post-command-hook.
18942 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
18943 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
18945 2003-01-12 Kim F. Storm <storm@cua.dk>
18947 * process.h (struct Lisp_Process): New member private_vars.
18949 * process.c (QCvars): New variable.
18950 (syms_of_process): Intern and staticpro it.
18951 (Fset_process_contact): Removed function.
18952 (Fprocess_variable, Fset_process_variable): New functions.
18953 (syms_of_process): Defsubr them.
18954 (Fstart_process): Initialize private_vars plist to nil.
18955 (Fmake_network_process): New arg :vars to setup the private
18956 variables for new network process.
18957 (server_accept_connection): Copy server's private variables to
18960 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
18961 crashes). Code rewritten and simplified. Now directly aligns the
18962 pointer and recalculates pure_bytes_used, rather than aligning the
18963 size and adjusting the pointer.
18965 2003-01-11 Kim F. Storm <storm@cua.dk>
18967 * process.c (Fset_process_contact): New function.
18968 (syms_of_process): defsubr it.
18969 (make-network-process): Update doc.
18971 2003-01-10 Andreas Schwab <schwab@suse.de>
18973 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
18974 Reported by Berthold Gunreben <b.gunreben@web.de>.
18976 2003-01-10 Dave Love <fx@gnu.org>
18978 * composite.c (syms_of_composite): Make composition_hash_table weak.
18980 2003-01-09 Kim F. Storm <storm@cua.dk>
18982 * process.c (Fmake_network_process): Convert new port number
18983 to host byte order for `:service t' case. From Mario Lang.
18985 2003-01-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18987 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
18988 instead of XtAppProcessEvent.
18990 * xterm.c (handle_one_xevent): New function.
18991 (x_dispatch_event): New function.
18992 (XTread_socket): Call handle_one_xevent.
18994 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
18996 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
18997 call XQueryPointer to get coordinates.
18998 (popup_get_selection): Do not set popup_activated_flag to zero,
18999 let popup_deactivate_callback do that. Needed for Motif.
19000 Call x_dispatch_event instead of XtDispatchEvent.
19001 (xmenu_show): Calculate root coordinate from frame top/left position.
19003 2003-01-08 Kim F. Storm <storm@cua.dk>
19005 * process.c (server_accept_connection): Fix recording of new
19006 connection's local address in :local property of contact info.
19007 (Fmake_network_process): Record local network address for new
19008 client processes in :local property of contact info.
19009 (format-network-address): Add arg OMIT-PORT. Change callers.
19011 2003-01-07 Dave Love <fx@gnu.org>
19013 * Makefile.in (fns.o): Depend on coding.h.
19015 2003-01-06 Dave Love <fx@gnu.org>
19017 * fns.c: Include coding.h. Use POINTER_TYPE*, not void*.
19018 (Vlocale_coding_system): Declare.
19019 (Qcodeset, Qdays, Qmonths, Qpaper): New.
19021 (syms_of_fns): Initialize new stuff.
19023 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
19025 * minibuf.c (Fread_variable): Doc fix.
19027 * eval.c (Fuser_variable_p): Doc change. For custom variables,
19028 use the same test as for custom-variable-p.
19030 2003-01-05 Richard M. Stallman <rms@gnu.org>
19032 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
19033 Count LAST_LINE_MISFIT in scroll margin for end of window.
19034 Move label too_near_end before setting SCROLL_MARGIN_POS.
19035 Set LAST_LINE_MISFIT before jumping there.
19037 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
19038 scroll_conservatively case. If scrolling that much doesn't change
19039 STARTP, move it down one line.
19041 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
19042 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
19044 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
19047 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
19048 (syms_of_keymap): Staticpro them.
19049 (Fapropos_internal): Initialize them and clear them out.
19052 * buffer.c (syms_of_buffer) <scroll-up|down-aggressively>: Doc fixes.
19054 * lisp.h: New misc type Lisp_Save_Value.
19055 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
19056 (XSAVE_VALUE): New macro.
19057 (struct Lisp_Save_Value): New data type.
19058 (union Lisp_Misc): Add u_save_value alternative.
19059 (make_save_value): Declare.
19061 * alloc.c (make_save_value): New function.
19063 * xterm.c (x_catch_errors): Save dpy using make_save_value.
19064 (x_catch_errors_unwind): Call XSync.
19066 2003-01-01 Richard M. Stallman <rms@gnu.org>
19068 * window.c (window_scroll_pixel_based): Partially undo last change.
19070 * keyboard.c (command_loop_1): Call adjust_point_for_property
19071 in direct action cases for Qforward_char and Qbackward_char.
19072 Set already_adjusted so it won't be done twice.
19074 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
19076 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
19077 type definition of size_t.
19079 2003-01-02 Steven Tamm <steventamm@mac.com>
19081 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
19082 distinguish Carbon GUI builds from X11 builds on darwin.
19084 2002-12-30 Steven Tamm <steventamm@mac.com>
19086 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
19089 2002-12-29 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
19091 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
19093 2002-12-28 Steven Tamm <steventamm@mac.com>
19095 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
19096 allow building in a different directory than source. Uses some
19097 GNU Make extensions, but there is no other make on Mac OS X.
19099 2002-12-26 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
19101 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
19102 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
19103 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
19104 (Fstring_to_number): Mention the returned value in the doc strings.
19106 2002-12-23 Richard M. Stallman <rms@gnu.org>
19108 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
19109 <scroll-down-aggressively>: Doc fix.
19111 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
19112 string as pane name, if there is one.
19113 (set_frame_menubar): Save menu_items_n_panes from each call to
19114 parse_single_submenu and use it when calling digest_single_submenu.
19116 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
19117 Don't try to make last line fully visible if it is past end of window.
19119 2002-12-22 Steven Tamm <steventamm@mac.com>
19121 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
19122 (mac_menu_show): Add support for hierarchical popup menus.
19123 (add_menu_item): Remove indentation support.
19124 (fill_submenu, fill_menu): Create hierarchical menus
19125 instead of using indentation.
19127 2002-12-22 Richard M. Stallman <rms@gnu.org>
19129 * xdisp.c (try_cursor_movement): Don't call try_window here.
19130 (redisplay_window): Never redisplay minibuffer when inactive.
19132 * window.c (select_window_1): Undo 9/21 change.
19134 2002-12-22 Steven Tamm <steventamm@mac.com>
19136 * macterm.c (XTread_socket): Call KeyTranslate for control and
19137 meta to deal correctly shifted non-alpha characters, like C-S-5
19138 being treated like C-%. Do not look for shift key to deal
19139 with masking off control-key with mac-reverse-ctrl-meta.
19141 2002-12-21 Richard M. Stallman <rms@gnu.org>
19143 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
19144 If it is non-nil, run timers. Use an unwind-protect to requeue
19145 the events that were read ahead.
19146 (popup_get_selection_unwind): New subroutine.
19147 (popup_get_selection_queue): File-scope variable now holds that queue.
19148 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
19149 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
19150 Use an unwind-protect to pop down the dialog box.
19151 (xdialog_show_unwind): New subroutine implements that.
19153 * xdisp.c (row_containing_pos): Change exit test using last_y.
19154 (try_window_id): Abort if row_containing_pos returns null.
19156 * lread.c (load_error_handler): New function.
19157 (Fload): Handle errors in Fsubstitute_in_file_name.
19158 Don't expect Fsignal to return.
19160 * eval.c: Errors and throws work right with interrupt blocking.
19161 (struct catchtag): New elt interrupt_input_blocked.
19162 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
19163 (internal_catch, Fcondition_case, internal_condition_case)
19164 (internal_condition_case_1, internal_condition_case_2): Save it.
19165 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
19167 * editfns.c (Fformat): Add parens.
19169 * dired.c (file_name_completion): Fix that change.
19170 Delete special quit-handling code; just use QUIT.
19172 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
19174 * dired.c (file_name_completion): Close directory on error
19175 just as in directory_files_internal.
19177 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
19179 * window.c (Fset_window_configuration): Set old_point to correct
19180 value when new_current_buffer == current_buffer.
19182 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
19184 Revisited my earlier fix for the following entry in etc/PROBLEMS:
19185 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
19186 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
19188 These changes were in part based upon suggestions made by Peter
19189 'Luna' Runestig [peter@runestig.com].
19191 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
19192 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
19193 (g_b_init_get_sid_identifier_authority ): Add several static
19196 * w32.c (globals_of_w32): New function. Used to initialize those
19197 global variables that must always be initialized on startup even
19198 when the global variable initialized is non zero. Its primary
19199 purpose at this time is to set the global variables
19200 g_b_init_is_windows_9x, g_b_init_open_process_token,
19201 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
19202 g_b_init_get_sid_identifier_authority to 0 on startup.
19205 * w32.c (is_windows_9x): Perform initialization only if
19206 g_b_init_is_windows_9x is equal to 0. On initialization set
19207 g_b_init_is_windows_9x equal to 1.
19209 * w32.c (open_process_token): Perform initialization only if
19210 g_b_init_open_process_token is equal to 0. On initialization set
19211 g_b_init_open_process_token equal to 1.
19213 * w32.c (get_token_information): Perform initialization only if
19214 g_b_init_get_token_information is equal to 0. On initialization
19215 set g_b_init_get_token_information equal to 1.
19217 * w32.c (lookup_account_sid): Perform initialization only if
19218 g_b_init_lookup_account_sid is equal to 0. On initialization
19219 set g_b_init_lookup_account_sid equal to 1.
19221 * w32.c (get_sid_identifier_authority): Perform initialization
19222 only if g_b_init_get_sid_identifier_authority is equal to 0.
19223 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
19225 * w32fns.c (globals_of_w32fns): New function. Used to initialize
19226 those global variables that must always be initialized on startup
19227 even when the global variable initialized is non zero.
19228 Its primary purpose at this time is to initialize the global variable
19229 track_mouse_event_fn.
19231 * w32fns.c (w32_wnd_proc): Remove initialization of
19232 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
19234 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
19236 * w32menu.c (globals_of_w32menu): New function. Used to
19237 initialize those global variables that must always be initialized
19238 on startup even when the global variable initialized is non zero.
19239 Its primary purpose at this time is to initialize the global
19240 variables get_menu_item_info and set_menu_item_info.
19242 * w32menu.c (initialize_frame_menubar): Remove initialization of
19243 get_menu_item_info and set_menu_item_info.
19245 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
19247 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
19250 * emacs.c (main): Call globals_of_w32 prior to calling
19251 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
19252 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
19255 * w32term.c (x_update_window_begin): Fix Windows API error
19256 detected by BoundsChecker. Test to determine if
19257 w32_system_caret_hwnd is NULL prior to attempting to use
19258 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
19260 * w32term.c (x_update_window_end): Fix Windows API error
19261 detected by BoundsChecker. Test to determine if
19262 w32_system_caret_hwnd is NULL prior to attempting to use
19263 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
19265 2002-12-17 Kenichi Handa <handa@m17n.org>
19267 * coding.c (coding_system_require_warning): New variable.
19268 (syms_of_coding): DEFVAR it.
19270 * coding.h (coding_system_require_warning): Extern it.
19272 * fileio.c (choose_write_coding_system): Even if
19273 Vcoding_system_for_write is non-nil, if
19274 coding_system_require_warning is nonzero, call
19275 Vselect_safe_coding_system_function.
19277 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
19279 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
19280 (lisp): Add font-core.
19282 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
19284 * textprop.c (text_read_only): New arg `propval'.
19285 (get_char_property_and_overlay): Remove unused var `next_overlay'.
19286 (verify_interval_modification): Use text_read_only's new arg.
19288 2002-12-13 Kenichi Handa <handa@m17n.org>
19290 * coding.c (Funencodable_char_position): Set pend correctly.
19292 2002-12-12 Jason Rumney <jasonr@gnu.org>
19294 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
19295 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
19296 Be more careful about when help_events are generated.
19298 2002-12-12 Steven Tamm <steventamm@mac.com>
19300 * macterm.c (mac_check_for_quit_char): Correctly set the
19301 modifiers of the event to 0.
19302 * mac.c (sys_select): Duplicate rfds before calling select to
19303 ensure that rfds survive the while loop.
19305 2002-12-11 Kim F. Storm <storm@cua.dk>
19307 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
19308 row_containing_pos returned NULL.
19310 2002-12-10 Steven Tamm <steventamm@mac.com>
19312 * mac.c (sys_read): Fix sys_read to not call select if IO is
19314 (sys_select): Fix sys_select to not use a timeout larger than
19317 2002-12-10 Juanma Barranquero <lektu@terra.es>
19319 * editfns.c (Fformat): Use alloca, not _alloca.
19321 2002-12-09 Richard M. Stallman <rms@gnu.org>
19323 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
19326 2002-12-09 Dave Love <fx@gnu.org>
19328 * s/sol2-8.h: Removed. (Not necessary.)
19330 2002-12-09 Matthew Swift <swift@alum.mit.edu>
19332 * editfns.c (Fformat): Handle precision in string conversion
19333 specifiers like libc functions do (ie, print at most that many
19336 2002-12-08 Richard M. Stallman <rms@gnu.org>
19338 * xdisp.c (row_containing_pos): Check more carefully
19339 whether charpos is really in the row before returning it.
19341 2002-12-07 Steven Tamm <steventamm@mac.com>
19343 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
19345 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
19346 each stack frame. This may change as it could be time consuming.
19348 * macterm.c (mac_check_for_quit_char, quit_char_comp)
19349 (init_quit_char_handler, mac_determine_quit_char_modifiers)
19350 (mac_initialize): Add code to check for pressing of quit_char
19351 in the OS event queue.
19353 * mac.c (sys_select): Call mac_check_for_quit_char every second
19354 while blocking on select.
19356 * mac.c (sys_read): Use sys_select to test for input first
19357 before calling read, to allow C-g to break.
19359 2002-12-07 Richard M. Stallman <rms@gnu.org>
19361 * minibuf.c (Fcompleting_read): Doc fix.
19363 * lread.c (syms_of_lread) <load-history>: Doc fix.
19365 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
19367 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
19370 * data.c (Fdefalias): Record in load-history redefining an autoload.
19372 * alloca.c: Undo ifdef change accidentally made on 12-04.
19374 2002-12-06 Francesco Potorti` <pot@gnu.org>
19376 * xfns.c (png_load): Avoid double gamma correction for PNG images.
19378 2002-12-04 Richard M. Stallman <rms@gnu.org>
19380 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
19382 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
19384 * alloca.c: Don't use #error.
19386 2002-12-03 Dave Love <fx@gnu.org>
19388 * buffer.c (Qucs_set_table_for_input): New.
19389 (Fget_buffer_create): Use it.
19390 (Qset_buffer_major_mode_hook): Deleted.
19391 (Fset_buffer_major_mode): Revert previous change.
19392 (init_buffer_once): Intern ucs-set-table-for-input.
19393 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
19394 Add &Qucs_set_table_for_input.
19396 2002-12-03 Andreas Schwab <schwab@suse.de>
19398 * callint.c (Fcall_interactively): Use next_event only if less
19401 2002-12-02 Andrew Choi <akochoi@shaw.ca>
19403 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
19404 names to 255 characters.
19406 * macterm.c (XTread_socket): If all frames have been collapsed,
19407 expand the first one before handling drag-and-drop events.
19409 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
19410 which is detected by autoconf.
19412 2002-12-01 Steven Tamm <steventamm@mac.com>
19414 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
19415 offset in two hints table to allow prebinding to be redone and
19416 allow the executable to be stripped.
19418 2002-11-29 Dave Love <fx@gnu.org>
19420 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
19423 2002-11-29 Richard M. Stallman <rms@gnu.org>
19425 * xdisp.c (start_display): Check more intelligently for
19426 whether the line is continued.
19427 (move_it_vertically_backward): Clear it->continuation_lines_width.
19429 2002-11-28 Dave Love <fx@gnu.org>
19431 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
19432 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
19434 2002-11-27 Steven Tamm <steventamm@mac.com>
19436 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
19437 more descriptive error output from lread.c:Fload upon most require
19438 cycles during boostrapping.
19440 2002-11-27 Jason Rumney <jasonr@gnu.org>
19442 * fileio.c (Finsert_file_contents): Give a more appropriate error
19443 for files bigger than 2Gb when off_t is 32 bit.
19445 * dired.c (Ffile_attributes): Don't return negative file sizes for
19446 files bigger than 2Gb when off_t is 32 bit.
19448 2002-11-27 Dave Love <fx@gnu.org>
19450 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
19452 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
19453 Test GETPGRP_VOID instead.
19454 [BSD_TERMIOS]: Remove definitions (never used).
19456 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
19458 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
19460 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
19462 2002-11-25 Jason Rumney <jasonr@gnu.org>
19464 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
19467 2002-11-25 Dave Love <fx@gnu.org>
19469 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
19471 * Makefile.in (TEMACS_LDFLAGS): Update last change.
19473 2002-11-25 Andreas Schwab <schwab@suse.de>
19475 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
19477 2002-11-24 Steven Tamm <steventamm@mac.com>
19479 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
19480 determine the size of pointers alloced in unexed space instead
19481 of using possibly invalid emacs_zone pointers. This fixes the
19482 binary incompatibility problems caused by updates to libSystem.B.
19484 2002-11-24 Richard M. Stallman <rms@gnu.org>
19486 * search.c (Fstring_match): Doc fix.
19488 * callint.c (Fcall_interactively): If a command fails because
19489 `*' detects a read-only buffer, but RECORD_FLAG is set,
19490 record it anyway if the args don't actually do tty input.
19492 2002-11-22 Dave Love <fx@gnu.org>
19494 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
19496 * keyboard.c (interrupt_signal): Provide forward declaration.
19497 (kbd_buffer_store_event): Don't declare interrupt_signal.
19499 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
19501 2002-11-21 Richard M. Stallman <rms@gnu.org>
19503 * eval.c (interactive_p): Skip any number of bytecode
19504 and special form frames, in any order.
19506 2002-11-20 Jason Rumney <jasonr@gnu.org>
19508 * w32fns.c (convert_mono_to_color_image): New function.
19509 (xbm_load, xbm_load_image): Use it when foreground or background
19512 2002-11-19 Dave Love <fx@gnu.org>
19514 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
19516 2002-11-18 Jason Rumney <jasonr@gnu.org>
19518 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
19519 (XPutPixel): Swap blue and red.
19520 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
19521 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
19522 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
19523 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
19525 2002-11-18 Dave Love <fx@gnu.org>
19527 * m/orion105.h (HAVE_ALLOCA): Don't define.
19529 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
19531 * m/intel386.h: Don't include alloca.h or define alloca.
19533 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
19534 malloc, realloc, calloc.
19536 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
19537 (bcmp): Don't define.
19539 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
19541 * m/amdahl.h: Don't define LIB_STANDARD.
19543 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
19545 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
19547 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
19548 Don't include alloca.h.
19550 * s/aix3-2.h (HAVE_FSYNC): Don't define.
19552 * regex.c (_GNU_SOURCE): Don't define.
19554 * process.c (_GNU_SOURCE): Don't define.
19556 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
19558 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
19560 * s/sol2-8.h: Include sol2-6.h.
19562 2002-11-18 Miles Bader <miles@gnu.org>
19564 * dispextern.h (struct face): Add `overstrike' field.
19565 * xterm.c (x_draw_glyph_string_foreground)
19566 (x_draw_composite_glyph_string_foreground): Implement overstriking.
19567 * xfaces.c (load_face_font): Set `face->overstrike' based on
19568 result from choose_face_font.
19569 (best_matching_font, choose_face_font): Add `needs_overstrike'
19570 argument, and use it to return whether overstriking is desirable
19571 for this face/font combo.
19572 (set_font_frame_param: Pass new argument to choose_face_font.
19574 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
19576 This change is my fix for the following entry in etc/PROBLEMS:
19577 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
19578 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
19580 * w32.c: Added wrapper functions around the win32 API functions
19581 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
19582 GetSidIdentifierAuthority. These wrapper functions serve two
19584 1. They ensure that the wrapped function can never be called
19585 when Emacs is running on an operating system on which they are
19586 not supported (Microsoft Windows 95 / 98 / ME).
19587 2. They call the wrapped functions via function pointers rather
19588 than calling them directly. This avoids taking advantage of the
19589 undocumented fact that although these functions are not supported
19590 in the 9x branch of Microsoft Windows, the functions do exist in
19591 the version of advapi32.dll that is found in the 9x branch of
19594 * w32.c (init_user_info): Replace the calls to the win32 API
19595 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
19596 and GetSidIdentifierAuthority with calls to the newly added
19599 * w32.h: Added extern declarations for the following functions:
19600 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
19601 syms_of_w32menu, and void syms_of_fontset.
19603 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
19604 function pointer track_mouse_event_fn in the handler for the
19605 WM_SETFOCUS message.
19607 * w32menu.c (initialize_frame_menubar): Add code to
19608 reinitialize the function pointers set_menu_item_info and
19609 get_menu_item_info.
19611 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
19613 * sound.c: Added a partial implementation of play-sound-internal
19614 for Microsoft Windows. Added various #ifdef / #else / #endif
19615 code blocks to separate the code that will compile under
19616 Microsoft Windows from the code that is specific to GNU/Linux.
19617 Moved several blocks of code around to make this separation of code
19618 into Windows compatible and GNU/Linux compatible code blocks easier.
19620 * makefile.w32-in: Include sound.c and link with WinMM.lib.
19622 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
19623 added support for play-sound-internal under Windows would be
19624 included in the build of Emacs.
19626 2002-11-16 Jason Rumney <jasonr@gnu.org>
19628 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
19630 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
19632 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
19634 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
19635 (adjust_point_for_property): Move out of display and invisible even if
19636 we were already inside before (in case a property was added while
19637 we weren't looking). Be more careful when handling invisible props.
19638 Skip invisible text as if it really wasn't there at all.
19640 2002-11-15 Jason Rumney <jasonr@gnu.org>
19642 * w32term.c (x_draw_image_foreground)
19643 (w32_draw_image_foreground_1): Use standard copy and invert
19644 operations to draw images.
19646 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
19648 (xbm_read_bitmap_data): Invert bits as xbm is read in.
19649 (XPutPixel): Don't invert bits here.
19651 2002-11-15 Jason Rumney <jasonr@gnu.org>
19653 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
19654 (w32_draw_image_foreground_1): Handle image masks.
19655 (x_draw_image_glyph_string): Don't BitBlt transparently.
19657 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
19658 (x_from_xcolors): Adjust RGB values for W32.
19659 (image_background, image_background_transparent)
19660 (postprocess_image, x_to_xcolors, x_disable_image)
19661 (x_build_heuristic_mask): Adapt for W32 and enable.
19662 (x_create_x_image_and_pixmap): Mark images with palettes as such.
19663 (xbm_load): Remove unused variable.
19665 2002-11-14 Richard M. Stallman <rms@gnu.org>
19667 * buffer.c (syms_of_buffer): Doc fix.
19669 2002-11-14 Dave Love <fx@gnu.org>
19671 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
19673 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
19674 * xmenu.c (unuse_menu_items, digest_single_submenu):
19675 * xfns.c (x_put_x_image):
19676 * xdisp.c (message2_nolog, set_message):
19677 * undo.c (record_point):
19678 * terminfo.c (tparam):
19679 * syntax.c (scan_sexps_forward):
19680 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
19681 * composite.c (update_compositions):
19682 * cm.c (calccost, cmgoto):
19683 * charset.c (c_string_width): Declare all args (per C99).
19685 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
19687 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
19690 * emacs.c (main) [!VMS]: Avoid third arg.
19692 * fns.c (Fcopy_sequence): Doc fix.
19693 (Fmap_char_table): Cast `call2'.
19695 2002-11-14 Francesco Potorti` <pot@gnu.org>
19697 * s/sol2-8.h: New file.
19699 2002-11-14 Kim F. Storm <storm@cua.dk>
19701 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
19702 dependency on `risky-local-variable' and the :propertize form.
19704 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
19706 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
19708 * syntax.c (scan_sexps_forward): Undo last patch.
19709 Use a more obvious fix: check eob before updating the syntax table.
19711 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
19713 * syntax.c (scan_sexps_forward): Update syntax table before reading
19714 a char rather than after so we don't update the table past eob.
19716 2002-11-09 Dave Love <fx@gnu.org>
19718 * buffer.c (Fset_buffer_major_mode): Fix last change.
19720 * regex.c (regexec): Fix pmatch declaration.
19722 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
19724 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
19725 to self-inserting characters.
19726 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
19728 * coding.c (Vtranslation_table_for_input): New.
19729 (syms_of_coding): DEFVAR it.
19731 2002-11-08 Juanma Barranquero <lektu@terra.es>
19733 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
19736 2002-11-08 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
19738 * process.c (Fformat_network_address): Remove unused locals p,
19741 2002-11-06 Dave Love <fx@gnu.org>
19743 * buffer.c (Qset_buffer_major_mode_hook): New.
19744 (Fset_buffer_major_mode): Use it.
19746 2002-11-06 Richard M. Stallman <rms@gnu.org>
19748 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
19751 * process.c (wait_reading_process_input):
19752 Test POLLING_PROBLEM_IN_SELECT, not hpux.
19753 Avoid initialization for auto Lisp_Object var.
19755 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
19757 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
19759 2002-11-05 Richard M. Stallman <rms@gnu.org>
19761 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
19763 * callint.c (Fcall_interactively): New local filter_specs.
19764 (Fcall_interactively): Check for progn as well as let.
19766 (Qprogn): New variable.
19767 (syms_of_callint): Staticpro and init Qprogn.
19769 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
19771 * lread.c (Feval_buffer): Doc fix.
19773 2002-11-04 Dave Love <fx@gnu.org>
19775 * keyboard.c (read_char): Always translate iff
19776 Vkeyboard_translate_table is a char table and c is valid.
19778 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19781 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
19783 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
19785 * editfns.c (get_pos_property): Don't hardcode Qfield.
19787 * keyboard.c (adjust_point_for_property): Handle `display' prop on
19788 overlays. Also handle `invisible' prop.
19790 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
19792 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
19793 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
19795 2002-11-01 Andreas Schwab <schwab@suse.de>
19797 * editfns.c (Fmessage): Revert last change to properly handle %%.
19799 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
19801 * xmenu.c (unuse_menu_items): New fun.
19802 (menu_items_inuse): New var.
19803 (syms_of_xmenu): Initialize it.
19804 (init_menu_items): Use it to detect re-entrance.
19805 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
19806 (Fx_popup_menu): Remove spurious XSETFRAME.
19808 * editfns.c (find_field): Make an exception for nil fields.
19810 2002-11-01 Dave Love <fx@gnu.org>
19812 * m/gec63.h: Deleted.
19814 2002-10-31 Dave Love <fx@gnu.org>
19816 * xterm.c (XTread_socket): Fix last change.
19817 (xaw_scroll_callback): Cast call_data to long to avoid warning.
19819 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
19821 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
19823 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
19825 * editfns.c (overlays_around, get_pos_property): New funs.
19826 (find_field): Use them.
19827 Also be careful not to modify POS before its last use.
19828 (Fmessage): Don't Fformat if there's nothing to format.
19830 2002-10-30 Dave Love <fx@gnu.org>
19832 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
19833 [HAVE_PTY_H]; Include pty.h.
19835 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
19837 * xterm.c (Qeql): Declare.
19838 (Vx_keysym_table): New.
19839 (syms_of_xterm): Initialize it.
19840 (XTread_socket): Use it. Deal with ASCII keysyms.
19841 (XSetIMValues) [HAVE_X11R6]: Prototype.
19843 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
19844 (lispy_kana_keys): Comment out.
19845 (make_lispy_event) [XK_kana_A]: Comment out.
19846 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
19849 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
19851 (TERMINFO, LIBS_TERMCAP): Define.
19853 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
19854 (bcmp): Define conditional on HAVE_BCMP.
19855 (NO_SIOCTL_H): Don't define.
19856 (TIOCSIGSEND): Don't make conditional on IRIX6.
19858 * s/sol2-5.h: Don't include strings.h.
19859 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
19861 * s/irix6-0.h (IRIX6): Don't define.
19862 (bcopy, bcmp, bzero): Don't undef.
19864 * s/irix6-5.h: Don't include strings.h.
19865 (IRIX6): Don't define.
19866 (bcopy, bcmp, bzero): Don't undef.
19868 * syntax.c (Fforward_comment): Doc fix.
19870 2002-10-29 Kim F. Storm <storm@cua.dk>
19872 * process.c (Fsignal_process): Allow PROCESS to be specified by
19873 name in addition to pid (as integer or string).
19875 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
19877 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
19880 2002-10-27 Kim F. Storm <storm@cua.dk>
19882 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
19884 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
19886 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
19888 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
19890 2002-10-26 Richard M. Stallman <rms@gnu.org>
19892 * editfns.c (Fformat): Detect invalid format letters for floats.
19894 2002-10-25 Kenichi Handa <handa@m17n.org>
19896 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
19897 (x_set_title): Likewise.
19899 2002-10-25 Juanma Barranquero <lektu@terra.es>
19902 * w32gui.h: Remove definition of XColor.
19904 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
19906 2002-10-24 Kim F. Storm <storm@cua.dk>
19908 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
19909 Callers changed (supply dummy arg).
19911 * lisp.h (get_window_cursor_type): Update prototype.
19913 * w32term.c (x_display_and_set_cursor): Get active_cursor from
19914 get_window_cursor_type to track system caret.
19916 2002-10-24 Kim F. Storm <storm@cua.dk>
19918 * process.c (Fformat_network_address): New function.
19919 (syms_of_process): Defsubr it.
19920 (list_processes_1): Use it to format :local/:remote address if
19921 service/host is not set; before Emacs would crash in that case.
19922 (Fmake_network_process): Don't use Ffind_operation_coding_system
19923 to setup coding system if host or service is not set.
19925 2002-10-23 Juanma Barranquero <lektu@terra.es>
19927 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
19929 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
19933 * w32gui.h: Add definition of XColor.
19937 * xfaces.c: Remove definition of XColor.
19939 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
19941 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
19943 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
19944 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
19945 window if it is dedicated.
19946 (Fshrink_window): Add preserve_before as was done for enlarge_window.
19947 (Vspecial_display_function): Update docstring.
19949 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
19950 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
19951 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
19953 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
19955 * casefiddle.c (casify_region): Don't treat a prefix char as part
19956 of a word when at the beginning.
19958 2002-10-17 Juanma Barranquero <lektu@terra.es>
19960 * lread.c (syms_of_lread): Fix typos.
19962 2002-10-17 Dave Love <fx@gnu.org>
19964 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
19966 2002-10-16 Richard M. Stallman <rms@gnu.org>
19968 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
19970 2002-10-14 Juanma Barranquero <lektu@terra.es>
19972 * w16select.c (syms_of_win16select): Fix docstring for
19973 `selection-coding-system'.
19975 * w32select.c (syms_of_w32select): Likewise.
19977 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
19979 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
19980 a backslash-quoted char.
19981 (scan_lists, scan_sexps_forward): Pacify the compiler.
19983 2002-10-13 Richard M. Stallman <rms@gnu.org>
19985 * window.c (window_scroll): Set immediate_quit.
19987 * print.c (print): When backquote form is the car of a list,
19988 output in old style. Use old_backquote_output to output all
19989 comma forms inside it in old style too.
19991 * buffer.h (struct buffer): Move `undo_list' down below `name'.
19993 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
19995 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
19998 * lread.c (Fload): Doc fix (load-suffixes).
20000 2002-10-10 Steven Tamm <steventamm@mac.com>
20002 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
20003 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
20004 Also switch the default to Qnil from Qt.
20006 2002-10-08 Kenichi Handa <handa@m17n.org>
20008 * coding.c (code_convert_region): When we need more GAP for
20009 conversion, pay attention to the case that coding->produced is not
20010 greater than coding->consumed.
20012 2002-10-07 Richard M. Stallman <rms@gnu.org>
20014 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
20016 2002-10-06 Andrew Choi <akochoi@shaw.ca>
20018 * macmenu.c (mac_menu_show): Add j to count menu items; match
20019 menu_item_selection to it to find selected item.
20021 2002-10-06 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20023 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
20024 cases. The correct fix is to pass ReparentNotify to Xt.
20025 The shell widget interprets ConfigureNotify differently depending
20026 on if it has been reparented or not.
20028 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
20030 * editfns.c (Fformat_time_string): Doc fix.
20032 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
20034 * fns.c (Flength): Doc fix.
20036 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
20038 * keyboard.c (keyremap): New struct.
20039 (read_key_sequence): Use it: globally replace keytran_foo with
20040 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
20041 keytran_next and fkey_next to just `next'.
20043 2002-10-04 Steven Tamm <steventamm@mac.com>
20045 * macterm.c (keycode_to_xkeysym_table): Change return to be
20046 treated like an X keysym.
20048 2002-10-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20050 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
20051 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
20052 This is to also handle x/y changes that occur because of a resize.
20054 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
20056 * frame.c (Vdelete_frame_functions): New variable.
20057 (syms_of_frame): Initialize and defvar it.
20058 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
20059 it when frame's `tooltip' parameter is non-nil.
20061 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
20063 * w32fns.c (x_create_tip_frame): Likewise.
20065 * macfns.c (x_create_tip_frame): Likewise.
20067 2002-09-30 Kenichi Handa <handa@m17n.org>
20069 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
20070 -1 before calling ccl_driver.
20072 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
20073 Only when it is non-nil, handle composition sequence.
20074 (setup_coding_system) <0>: Don't force composition handling.
20076 * Makefile.in (lisp, shortlisp): Add utf-16.elc
20078 2002-09-29 Richard M. Stallman <rms@gnu.org>
20080 * search.c (Freplace_match): Adjust match data for the substitution
20081 just made in the buffer.
20083 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
20084 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
20086 2002-09-27 Richard M. Stallman <rms@gnu.org>
20088 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
20089 (read_char): Use them. Do all exits thru the end of the function.
20091 2002-09-27 Kenichi Handa <handa@etl.go.jp>
20093 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
20096 2002-09-26 Richard M. Stallman <rms@gnu.org>
20098 * regex.h (__restrict_arr): Don't define if already defined.
20100 * coding.c (run_pre_post_conversion_on_str):
20101 Save and restore Vdeactivate_mark.
20103 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
20105 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
20107 2002-09-26 Kenichi Handa <handa@etl.go.jp>
20109 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
20110 nonzero, try face's family at first. Otherwise try FAMILY at first.
20111 (choose_face_font): If C is a single byte char or latin-1, call
20112 try_font_list with PREFER_FACE_FAMILY 1.
20114 2002-09-21 Richard M. Stallman <rms@gnu.org>
20116 * window.c (select_window_1): Don't select frame.
20117 Set frame's selected window only when frame itself is selected.
20118 (Fselect_window): Doc fix.
20120 2002-09-18 Kim F. Storm <storm@cua.dk>
20122 * process.c (make-network-process): Doc fix (there is no
20123 network-server-log-function hook).
20125 2002-09-18 Richard M. Stallman <rms@gnu.org>
20127 * print.c (print): Clear out the unused parts of Vprint_number_table.
20128 (syms_of_print): Doc fix for `print-number-table'.
20130 * unexelf.c (unexec): Undo previous change.
20132 2002-09-17 Andreas Schwab <schwab@suse.de>
20134 * m/alpha.h [LINUX]: Don't define DATA_START.
20136 2002-09-16 Dave Love <fx@gnu.org>
20138 * unexelf.c (unexec): Deal with .got, reinstating change from
20141 2002-09-13 Richard M. Stallman <rms@gnu.org>
20143 * s/sol2-6.h (UNEXEC): Comment out definition.
20145 * unexsol.c (unexec): Don't downcase first letter of error msg.
20147 * xfaces.c (Fcolor_supported_p): Just one arg is required.
20149 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
20151 * unexsol.c: Include buffer.h, charset.h, coding.h.
20153 2002-09-11 Richard M. Stallman <rms@gnu.org>
20155 * unexsol.c: Don't use report_file_error; do it by hand
20158 * process.c (wait_reading_process_input, both versions):
20159 Before calling turn_on_atimers, call stop_polling.
20161 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
20163 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
20164 we go to too_near_end, call clear_glyph_matrix.
20165 (redisplay_window): After make_cursor_line_fully_visible,
20166 call clear_glyph_matrix and bypass `goto done'.
20168 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
20169 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
20171 2002-09-10 Richard M. Stallman <rms@gnu.org>
20173 * fileio.c (Fdo_auto_save): Catch error making directory.
20174 Only call push_message if we need to.
20175 At the same time, make an unwind-protect to pop it.
20176 Rename local message_p to old_message_p.
20177 (do_auto_save_make_dir, do_auto_save_eh): New functions.
20178 (do_auto_save_unwind): Don't call pop_message.
20180 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
20182 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
20184 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
20186 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
20188 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
20190 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
20191 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
20192 (re_match_2_internal): Be more careful with infinite loops.
20194 2002-09-10 Kim F. Storm <storm@cua.dk>
20196 * macros.c (end_kbd_macro): New function.
20197 (Fend_kbd_macro): Use it.
20199 * macros.h (end_kbd_macro): Declare extern.
20201 * keyboard.c (Fdiscard_input): If defining keyboard macro,
20202 end and save it instead of discarding it.
20204 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
20206 * s/sol2-6.h: Fix typo. Add comment.
20208 2002-09-09 Richard M. Stallman <rms@gnu.org>
20210 * regex.c (regnum_t): Use signed int, not unsigned int.
20212 * s/sol2-6.h: New file.
20214 * s/sol2-5.h (UNEXEC): Definition deleted.
20216 2002-09-08 Kim F. Storm <storm@cua.dk>
20218 * macros.c (executing_macro_index): Change type to EMACS_INT.
20219 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
20221 * macros.h (executing_macro_index): Change type to EMACS_INT.
20223 2002-09-06 Richard M. Stallman <rms@gnu.org>
20225 * casetab.c (set_case_table): Make canon table point to eqv table.
20227 2002-09-06 Juanma Barranquero <lektu@terra.es>
20229 * coding.c (syms_of_coding): Fix spacing.
20231 * composite.c (Fcompose_region_internal)
20232 (Fcompose_string_internal): Likewise.
20234 * data.c (Flsh): Likewise.
20236 * fontset.c (Fset_fontset_font): Likewise.
20238 * macfns.c (Fx_server_max_request_size): Likewise.
20240 * w16select.c (syms_of_win16select): Likewise.
20242 * w32select.c (syms_of_w32select): Likewise.
20244 * xselect.c (syms_of_xselect): Likewise.
20246 2002-09-05 Richard M. Stallman <rms@gnu.org>
20248 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
20249 call EXTEND_RANGE_TABLE and return a proper value.
20250 (set_image_of_range): Don't call set_image_of_range_1
20251 if no TRANSLATE or if range includes all of Latin-1.
20252 Only call it for the Latin-1 part of the range.
20253 For other cases, make two separate ranges,
20254 one for the original specified characters and one for
20255 their case-conversions.
20257 2002-09-04 Richard M. Stallman <rms@gnu.org>
20259 * s/sol2-5.h (UNEXEC): Use unexsol.o.
20261 * window.c (displayed_window_lines): Correct for one-off bug
20262 in HEIGHT on non-window displays.
20264 * regex.c (set_image_of_range_1): New function.
20265 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
20266 Return a value to indicate running out of memory.
20267 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
20268 (extend_range_table_work_area): New subroutine.
20269 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
20270 Different calling conventions, and used from set_image_of_range{,_1}.
20271 (IMMEDIATE_QUIT_CHECK): Definitions moved.
20273 2002-09-04 Juanma Barranquero <lektu@terra.es>
20275 * makefile.w32-in: All dependencies updated.
20277 2002-09-01 Richard M. Stallman <rms@gnu.org>
20279 * unexsol.c: New file.
20281 * xfns.c (Qbox): Declare external, don't define.
20283 * xdisp.c (redisplay_window) <force-start case>:
20284 If point is on semi-visible last line, reposition
20285 it at previous line.
20287 * alloc.c (display_malloc_warning): Use display-warning.
20288 (malloc_warning_1): Function deleted.
20290 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
20292 * lread.c (read1): Handle #! by skipping the line.
20294 2002-08-31 Richard M. Stallman <rms@gnu.org>
20296 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
20297 Don't include LDFLAGS.
20298 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
20300 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
20302 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
20303 member of x_display_info unless we compile for some window system.
20305 2002-08-31 Kim F. Storm <storm@cua.dk>
20307 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
20308 (get_window_cursor_type): Don't use them.
20309 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
20311 2002-08-30 Kenichi Handa <handa@etl.go.jp>
20313 * xdisp.c (get_next_display_element): Fix previous change.
20315 2002-08-30 Andrew Choi <akochoi@shaw.ca>
20317 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
20318 (expose_window): Use it to fix the display of overlapping
20319 rows (merge code from xterm.c).
20321 * macfns.c (Qbox): Add extern declaration.
20323 2002-08-30 Juanma Barranquero <lektu@terra.es>
20325 * w32fns.c (Qbox): Make extern.
20326 (syms_of_w32fns): Remove initialization of Qbox.
20328 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
20330 * xfns.c (Fx_open_connection): Fix error message.
20332 2002-08-30 Kim F. Storm <storm@cua.dk>
20334 The following changes consolidates the handling of the cursor
20335 type in xdisp.c, moving duplicate code and functionality from
20336 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
20338 * frame.h (enum text_cursor_kinds): Consolidated here.
20339 Added DEFAULT_CURSOR value.
20340 (struct frame) <desired_cursor, cursor_width>
20341 <blink_off_cursor, blink_off_cursor_width>: New fields.
20342 Consolidated from output_x, output_w32 and output_mac structs.
20343 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
20344 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
20346 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
20347 Variables consolidated here.
20348 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
20349 (Vcursor_in_non_selected_windows): Renamed from
20350 cursor_in_non_selected_windows and changed to Lisp_Object.
20351 (syms_of_xdisp): Define and staticpro new and moved variables.
20352 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
20353 consolidated here. Recognize Qhollow setting.
20354 (set_frame_cursor_types): New function to set frame cursor types
20355 based on the frame parameters.
20356 (get_window_cursor_type): New function to calculate new cursor
20357 type and width for the specified window. Based on duplicated
20358 code consolidated here.
20359 Enhancements: cursor-in-non-selected-windows may be a cursor type,
20360 check buffer-local alternate-cursor-type and blink-cursor-alist
20361 before using built-in blink off methods.
20363 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
20365 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
20366 (get_specified_cursor_type, get_window_cursor_type)
20367 (set_frame_cursor_types): Added prototypes.
20369 * macfns.c (x_specified_cursor_type): Removed.
20370 (x_set_cursor_type): Use set_frame_cursor_types.
20371 (Qbar, Qbox): Removed.
20372 (syms_of_macfns): Don't intern or staticpro them.
20374 * macterm.c (x_specified_cursor_type): Remove prototype.
20375 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
20376 (x_display_and_set_cursor): Use get_window_cursor_type.
20377 Remove unused local variables cursor_non_selected, active_cursor.
20378 Redraw cursor if hbar cursor width changes.
20379 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
20381 * macterm.h (enum text_cursor_kinds): Removed.
20382 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
20383 <blink_off_cursor, blink_off_cursor_width>: Members removed.
20384 (FRAME_DESIRED_CURSOR): Macro removed.
20386 * w32fns.c (Vblink_cursor_alist): Removed.
20387 (Qbar, Qhbar, Qbox, Qhollow): Removed.
20388 (syms_of_w32fns): Don't intern, staticpro, or define them.
20389 (x_specified_cursor_type): Removed.
20390 (x_set_cursor_type): Use set_frame_cursor_types.
20392 * w32term.c (x_specified_cursor_type): Remove prototype.
20393 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
20394 (x_display_and_set_cursor): Use get_window_cursor_type.
20395 Remove unused local variables cursor_off_state.
20396 Redraw cursor if hbar cursor width changes.
20397 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
20399 * w32term.h (enum text_cursor_kinds): Removed.
20400 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
20401 <blink_off_cursor, blink_off_cursor_width>: Members removed.
20402 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
20403 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
20404 (struct w32_display_info) <x_highlight_frame>: Renamed member from
20405 w32_highlight_frame.
20407 * xfns.c (Vblink_cursor_alist): Removed.
20408 (Qbar, Qhbar, Qbox, Qhollow): Removed.
20409 (syms_of_xfns): Don't intern, staticpro, or define them.
20410 (x_specified_cursor_type): Removed.
20411 (x_set_cursor_type): Use set_frame_cursor_types.
20413 * xterm.c (x_specified_cursor_type): Remove prototype.
20414 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
20415 (x_display_and_set_cursor): Use get_window_cursor_type.
20416 Remove unused local variables cursor_off_state.
20417 Redraw cursor if hbar cursor width changes.
20419 * xterm.h (enum text_cursor_kinds): Removed.
20420 (struct output_x) <current_cursor, desired_cursor, cursor_width>
20421 <blink_off_cursor, blink_off_cursor_width>: Members removed.
20422 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
20423 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
20424 (x_specified_cursor_type): Remove prototype.
20426 2002-08-28 Richard M. Stallman <rms@gnu.org>
20428 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
20429 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
20430 (Vblink_cursor_alist): New variable.
20431 (syms_of_w32fns): Initialize and defvar it.
20432 (x_specified_cursor_type): Recognize Qbox for filled box.
20433 Exceptions are hollow boxes.
20434 (Qbox, Qhollow): New variables.
20435 (syms_of_w32fns): Initialize and staticpro them.
20437 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
20439 (struct w32_output): New fields blink_off_cursor,
20440 blink_off_cursor_width.
20441 (FRAME_CURSOR_WIDTH): New macro.
20443 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
20444 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
20446 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
20449 * w32term.c (expose_overlaps): New function.
20450 (expose_window): Use it to fix the display of overlapping rows.
20452 2002-08-28 Simon Josefsson <jas@extundo.com>
20454 * xfns.c (Fx_open_connection): Improve help when X connection
20455 fails, xhost is insecure and xauth is better.
20457 2002-08-28 Juanma Barranquero <lektu@terra.es>
20459 * makefile.w32-in: Add missing dependencies on w32term.h and
20462 * emacs.c (USAGE1): Add missing newline.
20464 2002-08-27 Andrew Choi <akochoi@shaw.ca>
20466 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
20468 2002-08-27 Richard M. Stallman <rms@gnu.org>
20470 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
20471 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
20472 (Vblink_cursor_alist): New variable.
20473 (syms_of_xfns): Initialize and defvar it.
20474 (x_specified_cursor_type): Recognize Qbox for filled box.
20475 Exceptions are hollow boxes.
20476 (Qbox, Qhollow): New variables.
20477 (syms_of_xfns): Initialize and staticpro them.
20479 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
20481 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
20483 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
20484 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
20486 * emacs.c (main): Handle --script.
20487 (USAGE1): Mention --script.
20488 (standard_args): Define sort order for --script.
20490 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
20492 * xdisp.c (redisplay_updating_p): Variable removed.
20493 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
20495 (init_iterator): Don't free realized faces if
20496 inhibit_free_realized_faces is set.
20497 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
20498 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
20499 initialize Qinhibit_free_realized_faces.
20501 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
20502 when iterator is adding glyphs to a glyph matrix.
20504 2002-08-27 Kenichi Handa <handa@etl.go.jp>
20506 * xdisp.c (get_next_display_element): In unibyte case, don't use
20507 octal form for such eight-bit characters that can be converted to
20510 2002-08-26 Kim F. Storm <storm@cua.dk>
20512 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
20513 foreground and background colors. From Joe Buehler.
20515 2002-08-26 Miles Bader <miles@gnu.org>
20517 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
20519 2002-08-25 Andrew Choi <akochoi@shaw.ca>
20521 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
20522 defined instead of MAC_OSX.
20524 * s/darwin.h (select): Define select to sys_select only if
20525 HAVE_CARBON is defined.
20526 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
20527 (DONT_REOPEN_PTY): #def it.
20529 * macterm.c (XTread_socket): Remove code to call
20530 SendEventToEventTarget for keys with command modifiers when
20531 mac_command_key_is_meta is nil.
20533 2002-08-24 Andreas Schwab <schwab@suse.de>
20535 * eval.c (Fdefvar): Fix last change.
20537 2002-08-23 Richard M. Stallman <rms@gnu.org>
20539 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
20540 Record variables in load history as (defvar . VAR).
20541 (Fdefvar): Don't record in load history if no initial value.
20542 (Qdefvar): New variable.
20543 (syms_of_eval): Init and staticpro it.
20545 * lread.c (syms_of_lread): Doc fix.
20546 (build_load_history): Use Fmember to see if a definition
20547 is already in the Vload_history element.
20549 * process.c (Fstart_process): Remove /: from program name.
20551 * emacs.c (decode_env_path): Don't add /: if file name handler
20552 has a `safe-magic' property.
20554 * callproc.c (Fcall_process): Remove /: from program name.
20556 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
20558 * regex.c (PATFETCH): Remove the translating fetch.
20559 (PATFETCH_RAW): Rename to PATFETCH.
20560 (set_image_of_range): New fun.
20561 (SET_RANGE_TABLE_WORK_AREA): Use it.
20562 (regex_compile): Don't translate the pattern chars so eagerly.
20563 Only do it when inserting an `exactn' bytecode or when handling
20565 (mutually_exclusive_p): Avoid empty statement.
20567 2002-08-22 Kim F. Storm <storm@cua.dk>
20569 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
20570 end up on a partially visible line; this reverts a specific part
20571 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
20572 display error which has been reported several times now.
20573 However it introduces the problem that changes was supposed to fix.
20574 See my comments in the source if you want to debug this further.
20576 2002-08-20 Kenichi Handa <handa@etl.go.jp>
20578 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
20580 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
20582 * msdos.c (croak): Add `void' to definition.
20584 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
20585 Don't define them, they are defined in msdos.c.
20587 * mem-limits.h [MSDOS]: Declare etext.
20589 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
20590 `const' since CORRECT_DIR_SEPS modifies its target.
20592 2002-08-19 Kim F. Storm <storm@cua.dk>
20594 * keyboard.c (Fclear_this_command_keys): Add optional arg
20595 KEEP-RECORD to avoid clearing lossage when we just want to clear
20596 the current key sequence (kmacro needs this).
20598 2002-08-19 Kenichi Handa <handa@localhost>
20600 * composite.c (run_composition_function): Call FUNC if it is fboundp.
20602 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
20605 2002-08-17 Richard M. Stallman <rms@gnu.org>
20607 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
20609 * sysdep.c [!VMS]: Include sys/files.h.
20611 * editfns.c (save_restriction_restore): Defend from unchained marker.
20613 * buffer.c (overlays_at): Handle extending vec uniformly.
20614 (overlays_in): Handle extending vec from length 0 as in overlays_at.
20616 2002-08-15 Andrew Choi <akochoi@shaw.ca>
20618 * mac.c (init_mac_osx_environment): New function.
20620 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
20622 2002-08-14 Kim F. Storm <storm@cua.dk>
20624 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
20625 executing macro before appending to it (when used from Lisp).
20626 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
20627 which is called prior to each iteration of macro (for kmacro.el).
20628 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
20630 * lisp.h (Fexecute_kbd_macro): Update prototype.
20632 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
20634 2002-08-14 Kenichi Handa <handa@etl.go.jp>
20636 * xselect.c (QUTF8_STRING): New variable.
20637 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
20638 (x_atom_to_symbol): Likewise.
20639 (x_get_local_selection): New argument local_request. If it is
20640 nonzero, call handler_fn with the second arg nil.
20641 (x_handle_selection_request): Call x_get_local_selection with
20643 (lisp_data_to_selection_data): Don't encode the string here.
20644 (Fx_get_selection_internal): Call x_get_local_selection with
20646 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
20648 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
20650 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
20652 2002-08-13 Richard M. Stallman <rms@gnu.org>
20654 * minibuf.c (Fminibufferp): New function.
20655 (syms_of_minibuf): Defsubr it.
20656 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
20658 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
20660 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
20662 2002-08-12 Richard M. Stallman <rms@gnu.org>
20664 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
20665 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
20666 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
20669 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
20671 2002-08-11 Andrew Choi <akochoi@shaw.ca>
20673 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
20674 (Vmac_pass_command_to_system): New variable.
20675 (Vmac_pass_control_to_system): New variable.
20676 (do_mouse_moved): Check wp with is_emacs_window.
20677 (XTread_socket): Check window_ptr with is_emacs_window.
20678 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
20679 events back to Mac Toolbox for processing, depending on values of
20680 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
20681 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
20682 Vmac_pass_control_to_system.
20684 2002-08-10 Kenichi Handa <handa@etl.go.jp>
20686 * coding.c (unencodable_char_position): New function.
20687 (Funencodable_char_position): New function.
20688 (syms_of_coding): Defsubr Funencodable_char_position.
20690 2002-08-10 Andrew Choi <akochoi@shaw.ca>
20692 * mac.c (sys_select) [MAC_OSX]: New function.
20694 * macterm.c (MakeMeTheFrontProcess): New function.
20695 (mac_initialize): Call MakeMeTheFrontProcess.
20697 * s/darwin.h: Define select to sys_select.
20699 2002-08-09 Richard M. Stallman <rms@gnu.org>
20701 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
20703 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
20705 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
20708 2002-08-08 Ken Raeburn <raeburn@gnu.org>
20710 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
20712 * puresize.h (BASE_PURESIZE): Increase to 910000.
20714 2002-08-08 Kenichi Handa <handa@etl.go.jp>
20716 * coding.c (Ffind_operation_coding_system): For write-region, if
20717 VISIT is a filename, make it the target.
20719 2002-08-07 Richard M. Stallman <rms@gnu.org>
20721 * alloc.c (mark_object): Detect long lists for debugging.
20722 (mark_object_loop_halt): New variable.
20724 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
20726 * data.c (Fmake_variable_frame_local): Doc fix.
20728 2002-08-01 David Ponce <david@dponce.com>
20730 * w32menu.c (local_heap, local_alloc, local_free): New macros.
20731 (malloc_widget_value, free_widget_value)
20732 (w32_free_submenu_strings): Use them.
20734 (push_submenu_start, push_submenu_end, push_left_right_boundary)
20735 (push_menu_pane, push_menu_item, single_keymap_panes)
20736 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
20737 (single_submenu, set_frame_menubar)
20738 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
20740 (Fx_popup_menu): Don't show pop up menu until preceding one is
20741 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
20743 * w32menu.c: Changes adapted from xmenu.c
20744 (set_frame_menubar): First parse all submenus,
20745 then make widget_value trees from them.
20746 Don't allocate any widget_value objects
20747 until we are done with the parsing.
20748 (parse_single_submenu): New function.
20749 (digest_single_submenu): New function.
20750 (single_submenu): Function deleted, replaced by those two.
20752 2002-08-04 Andrew Choi <akochoi@shaw.ca>
20754 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
20755 returns a valid window pointer before proceeding for keyDown and
20758 2002-08-03 Andrew Choi <akochoi@shaw.ca>
20760 * macterm.c (USE_CARBON_EVENTS): New macro.
20761 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
20762 (x_iconify_frame): Call CollapseWindow.
20763 (Vmac_reverse_ctrl_meta): New variable.
20764 (Vmac_wheel_button_is_mouse_2): New variable.
20765 (init_mac_drag_n_drop): New function.
20766 (mac_do_receive_drag): New function.
20767 (mac_handle_service_event): New function.
20768 (init_service_handler): New function.
20769 (mac_to_emacs_modifiers): New function.
20770 (mac_event_to_emacs_modifiers): New function.
20771 (mac_get_mouse_btn): New function.
20772 (mac_convert_event_ref): New function.
20773 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
20774 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
20776 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
20778 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
20779 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
20780 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
20781 TOOL_BAR_EVENT for MAC_OS as well.
20782 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
20784 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
20786 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
20788 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
20790 * xdisp.c (forward_to_next_line_start): Fix a condition that
20791 lead to a newline being skipped.
20793 2002-08-02 Andrew Choi <akochoi@shaw.ca>
20795 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
20797 2002-08-01 Richard M. Stallman <rms@gnu.org>
20799 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
20801 2002-07-31 Andrew Choi <akochoi@shaw.ca>
20803 * macfns.c: #undef init_process before #define-ing it.
20805 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
20806 HAVE_CARBON is defined.
20808 2002-07-31 Richard M. Stallman <rms@gnu.org>
20810 * xmenu.c (set_frame_menubar): First parse all submenus,
20811 then make widget_value trees from them.
20812 Don't allocate any widget_value objects
20813 until we are done with the parsing.
20814 (parse_single_submenu): New function.
20815 (digest_single_submenu): New function.
20816 (single_submenu): Function deleted, replaced by those two.
20818 2002-07-30 Juanma Barranquero <lektu@terra.es>
20820 * w32proc.c (syms_of_ntproc): Fix docstring of
20821 `w32-get-true-file-attributes'.
20823 2002-07-28 Richard M. Stallman <rms@gnu.org>
20825 * s/hpux8.h (HPUX8): Define this before including hpux.h.
20826 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
20828 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
20830 * keyboard.c (make_lispy_event):
20831 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
20832 Explicitly clear up_modifier in event->modifiers.
20834 2002-07-27 Richard M. Stallman <rms@gnu.org>
20836 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
20838 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
20841 2002-07-26 Kenichi Handa <handa@etl.go.jp>
20843 * coding.c (detect_coding_iso2022): While checking a byte sequence
20844 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
20845 it in the normal loop.
20847 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
20849 * xterm.c (expose_overlaps): New function.
20850 (expose_window): Use it to fix the display of overlapping rows.
20852 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
20854 2002-07-23 Ken Raeburn <raeburn@gnu.org>
20856 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
20857 since it only depends on XUINT.
20859 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
20860 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
20861 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
20864 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
20865 its value over other approaches.
20866 * sysdep.c (start_of_data): Don't define the function if a macro
20867 form has been defined.
20869 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
20871 * xdisp.c (redisplay_updating_p): New variable.
20872 (init_iterator): Don't free realized faces when
20873 redisplay_updating_p is set.
20874 (redisplay_internal): Set redisplay_updating_p while updating
20877 2002-07-23 Richard M. Stallman <rms@gnu.org>
20879 * editfns.c (Fmessage): Treat "" like nil.
20881 2002-07-23 Kenichi Handa <handa@etl.go.jp>
20883 * xdisp.c (face_before_or_after_it_pos):
20884 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
20886 2002-07-22 Juanma Barranquero <lektu@terra.es>
20888 * callproc.c (init_callproc) [DOS_NT]:
20889 Initialize Vshared_game_score_directory to nil.
20890 (syms_of_callproc) [DOS_NT]: Likewise.
20892 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
20894 * xdisp.c (display_line): Replace an abort with xassert.
20896 2002-07-21 Richard M. Stallman <rms@gnu.org>
20898 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
20899 and END_UNCHANGED when setting buffer_unchanged_p.
20900 Use current_matrix_up_to_date_p to decide whether to use
20901 try_cursor_movement.
20903 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
20905 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
20907 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
20908 Set to nil if dir does not exist.
20909 (syms_of_callproc): Init unconditionally and simply.
20911 * buffer.c (Fbuffer_list): Doc fix.
20913 2002-07-21 Ken Raeburn <raeburn@gnu.org>
20915 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
20917 * buffer.c (mmap_realloc): When shrinking, make sure number of
20918 pages to unmap is rounded towards zero.
20920 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
20921 (XSETINT): Deleted.
20923 * m/att3b.h (XINT): Don't define.
20924 (VALBITS, VALMASK, XTYPE): Deleted.
20925 (DATA_SEG_BITS): Define.
20926 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
20927 ARRAY_MARK_FLAG): Deleted.
20928 (DATA_SEG_BITS): Define.
20929 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
20930 (DATA_SEG_BITS): Define.
20932 2002-07-20 Richard M. Stallman <rms@gnu.org>
20934 * print.c (print_error_message): New args CONTEXT and CALLER.
20937 * lisp.h (print_error_message): Declare new args.
20939 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
20940 and CONTEXT to print_error_message, don't print them here.
20941 For a Quit, don't use Vsignaling_function.
20942 Call message_log_maybe_newline.
20944 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
20946 2002-07-20 Kim F. Storm <storm@cua.dk>
20948 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
20950 2002-07-19 Ken Raeburn <raeburn@gnu.org>
20952 * bytecode.c (struct byte_stack): Pointers into byte string now
20954 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
20956 * charset.h (BCOPY_SHORT): Source pointer now points to const.
20957 * coding.c (encode_eol, detect_coding, detect_eol):
20958 (decode_coding, encode_coding, detect_coding_system):
20959 Source strings now treated as const.
20960 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
20961 modify Lisp string contents.
20962 * coding.h (decode_coding, encode_coding, detect_coding,
20963 detect_eol): Declarations updated.
20964 * composite.c (compose_chars_in_text): Treat Lisp string contents
20966 * dispnew.c (safe_bcopy): Source pointer now points to const.
20967 * lisp.h (STRING_COPYIN): New macro.
20968 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
20969 (internal_with_output_to_temp_buffer): Declarations updated.
20970 * print.c (temp_output_buffer_setup):
20971 (internal_with_output_to_temp_buffer): Buffer name argument is now
20973 * sound.c (struct sound_device): Function pointer field "write"
20974 buffer argument now points to const.
20975 (vox_write): Buffer argument points to const.
20976 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
20978 * sysdep.c (emacs_write): Buffer pointer now const.
20979 * term.c (encode_terminal_code): Buffer pointer now const.
20980 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
20981 (x_face_list_fonts, x_update_menu_appearance):
20982 (hash_string_case_insensitive): Treat Lisp string contents as const.
20984 2002-07-19 Juanma Barranquero <lektu@terra.es>
20986 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
20988 * fileio.c (syms_of_fileio): Likewise.
20989 (Ffile_name_as_directory): Fix argument name in docstring.
20990 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
20992 2002-07-18 Richard M. Stallman <rms@gnu.org>
20994 * data.c (Fdefalias): Doc fix.
20996 2002-07-17 Dave Love <fx@gnu.org>
20998 * intervals.h (text_property_stickiness): Use P_.
21000 * ccl.c: Remove `emacs' conditionals.
21001 (ccl_backtrace_table): Fix size spec.
21002 (ccl_driver): Fix type errors.
21004 2002-07-16 Ken Raeburn <raeburn@gnu.org>
21006 * alloc.c (xstrdup, make_string, make_unibyte_string)
21007 (make_multibyte_string, build_string): String pointer args now
21009 * charset.c (find_charset_in_text, c_string_width):
21010 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
21011 * fileio.c (report_file_error):
21012 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
21013 (count_combining_before, count_combining_after, insert_1_both):
21014 (insert, insert_and_inherit, insert_string):
21015 (insert_before_markers, insert_before_markers_and_inherit):
21016 * lread.c (intern, oblookup, hash_string):
21017 * minibuf.c (temp_echo_area_glyphs):
21018 * search.c (fast_c_string_match_ignore_case):
21019 * sysdep.c (emacs_open, set_file_times):
21020 * xfaces.c (xstricmp):
21021 * xdisp.c (store_frame_title, string_char_and_length):
21022 (message_dolog, message2, message2_nolog, set_message): Likewise.
21023 (set_message_1): Cast message string argument to const pointer.
21024 * editfns.c (general_insert_function): Insertion function now
21025 takes pointer to const for input data.
21026 * charset.h (find_charset_in_text, c_string_width):
21027 (parse_str_as_multibyte): Declarations updated.
21028 * dispextern.h (xstricmp): Declaration updated.
21029 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
21030 (count_size_as_multibyte, count_combining_before):
21031 (count_combining_after, insert_1, insert_1_both, message_dolog):
21032 (insert, insert_and_inherit, insert_before_markers)
21033 (insert_before_markers_and_inherit, set_message, message2):
21034 (message2_dolog, build_string, make_string, make_unibyte_string):
21035 (make_multibyte_string, intern, oblookup, report_file_error):
21036 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
21037 (emacs_open, xstrdup): Declarations updated.
21038 * systime.h (set_file_times): Declaration updated.
21040 * charset.c (find_charset_in_text, lisp_string_width): Use const
21041 for pointer to lisp string data.
21042 * charset.h (FETCH_STRING_CHAR_ADVANCE):
21043 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
21044 * coding.c (Ffind_coding_systems_region_interval):
21045 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
21046 (Fmake_directory_internal, Fdelete_directory):
21047 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
21048 * fontset.c (font_family_registry, fs_query_fontset):
21050 * frame.c (Fframe_parameter):
21051 * keyboard.c (cmd_error_internal):
21052 * keymap.c (Fdescribe_buffer_bindings):
21053 * lread.c (complete_filename_p, openp):
21054 * minibuf.c (Fminibuffer_complete_word):
21055 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
21056 (face_before_or_after_it_pos, next_element_from_string):
21057 (get_overlay_arrow_glyph_row, display_mode_element):
21058 (decode_mode_spec_coding):
21059 * xterm.c (same_x_server): Likewise.
21061 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
21062 settings of non-existent fields.
21064 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
21067 * lread.c (Fintern_soft): Use string macros instead of
21068 Lisp_String fields.
21069 * keyboard.c (echo_char, parse_modifiers_uncached):
21070 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
21071 * textprop.c (validate_interval_range, interval_of): Likewise.
21073 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
21075 * charset.h (FETCH_STRING_CHAR_ADVANCE)
21076 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
21077 XSTRING()->size_byte.
21079 * lisp.h (SDATA, SREF): Produce rvalue.
21081 * alloc.c (make_event_array): Use SSET for storing into a string.
21082 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
21084 * casefiddle.c (casify_object): Use SSET.
21085 * charset.h (FETCH_STRING_CHAR_ADVANCE)
21086 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
21087 address of string contents.
21088 * data.c (Faref): Use SDATA.
21089 (Faset): Use SDATA, SSET.
21090 * dired.c (directory_files_internal): Use SSET.
21091 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
21092 (Fread_file_name): Use SREF, SSET.
21093 * fns.c (concat): Use SSET.
21094 (concat, Fdelete): Use SDATA.
21095 * insdel.c (insert_from_string_1): Use SDATA.
21096 * keyboard.c (Fevent_convert_list): Use SREF.
21097 * lread.c (Fload): Use SDATA, SSET.
21098 * macfns.c (validate_x_resource_name): Use SSET.
21099 * process.c (status_message): Use SSET.
21100 * search.c (wordify): Use SDATA.
21101 (Freplace_match): Use SREF.
21102 * w32fns.c (validate_x_resource_name): Use SSET.
21103 * xfns.c (validate_x_resource_name): Use SSET.
21104 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
21106 2002-07-16 Richard M. Stallman <rms@gnu.org>
21108 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
21110 * xdisp.c (reconsider_clip_changes):
21111 Don't test prevent_redisplay_optimizations_p.
21112 (redisplay_internal): Test prevent_redisplay_optimizations_p
21113 along with clip_changed in some cases.
21114 (try_window_id): Likewise.
21115 (redisplay_window): New local var buffer_unchanged_p.
21117 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
21119 * process.c (create_process): Test USG_SUBTTY_WORKS.
21120 (process_send_signal): Clean up handling of GID.
21121 Detect errors in ioctls meant to set GID.
21123 * window.c (temp_output_buffer_show):
21124 Don't set prevent_redisplay_optimizations_p.
21126 2002-07-15 Juanma Barranquero <lektu@terra.es>
21128 * eval.c (Fdefvaralias): Add docstring argument.
21130 2002-07-15 Ken Raeburn <raeburn@gnu.org>
21132 * lisp.h (STRING_INTERVALS): Produce rvalue.
21133 (STRING_SET_INTERVALS): New macro.
21134 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
21135 * fns.c (Fstring_as_multibyte): Likewise.
21136 * intervals.c (balance_possible_root_interval, delete_interval)
21137 (create_root_interval, copy_intervals_to_string): Likewise.
21138 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
21141 2002-07-14 Ken Raeburn <raeburn@gnu.org>
21143 * lisp.h (STRING_SET_CHARS): New macro.
21144 (SCHARS, SBYTES): Produce rvalues.
21145 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
21146 * fns.c (concat): Likewise.
21147 * lread.c (read_vector): Likewise.
21149 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
21150 (STRING_SET_UNIBYTE): New macro.
21151 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
21152 length of -1) changed to use STRING_SET_UNIBYTE.
21153 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
21154 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
21155 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
21156 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
21157 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
21158 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
21159 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
21160 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
21161 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
21162 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
21163 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
21164 STRING_BYTES or indirection changed to SCHARS, SBYTES,
21165 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
21168 2002-07-13 Kim F. Storm <storm@cua.dk>
21170 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
21172 2002-07-12 Richard M. Stallman <rms@gnu.org>
21174 * fileio.c (Fwrite_region): Doc fix.
21176 * print.c (print_error_message): Don't handle Vsignaling_function here.
21178 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
21179 (command_loop_1): Avoid certain actions after memory-full error.
21181 * eval.c (Fsignal): Don't call cancel_hourglass.
21182 For a memory-full error, don't call Vsignal_hook_function
21183 and don't set Vsignaling_function.
21185 * process.c (process_send_signal): Add abort call.
21187 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
21189 * keymap.c (Fkey_binding): Fix typo.
21191 2002-07-11 Richard M. Stallman <rms@gnu.org>
21193 * alloc.c (Vmemory_full): New variable.
21194 (Vmemory_signal_data): Rename from memory_signal_data.
21196 (syms_of_alloc): Defvar them.
21197 (memory_full, buffer_memory_full): Set Vmemory_full.
21199 * lisp.h (Vmemory_full): Add declaration.
21200 (current_column, indented_beyond_p): Change declaration.
21202 * indent.c (last_known_column): Declare as double, not float.
21203 (current_column, current_column_1, string_display_width)
21204 (position_indentation): Return `double'.
21205 (indented_beyond_p): Arg `column' is `double'. Callers changed.
21207 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
21208 (back_to_previous_visible_line_start)
21209 (reseat_at_next_visible_line_start, next_element_from_buffer):
21210 Use `double', not `float', when calling indented_beyond_p.
21212 * s/hpux11.h (BROKEN_SA_RESTART): Define.
21214 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
21216 2002-07-11 Juanma Barranquero <lektu@terra.es>
21218 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
21219 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
21220 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
21221 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
21222 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
21223 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
21225 2002-07-10 Juanma Barranquero <lektu@terra.es>
21227 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
21228 All callers changed.
21230 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
21232 * data.c (Fdefalias): Add an optional `docstring' argument.
21233 (set_internal, Fsetq_default): Use XCAR/XCDR.
21235 * composite.c (HASH_VALUE, HASH_KEY):
21236 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
21238 2002-07-09 Kenichi Handa <handa@etl.go.jp>
21240 * callproc.c (Fcall_process): Fix previous change.
21242 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
21244 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
21245 Add support for hash-tables.
21246 (Ftry_completion): Return t even if the string appears multiple times.
21248 * fns.c (Fnconc): Use XCDR.
21249 (Fprovide): Use CONSP and XCDR.
21250 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
21251 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
21252 (Fmake_hash_table): Accept `:size nil'.
21253 (Fmakehash): Delete: moved to subr.el.
21254 (syms_of_fns): Don't defsubr makehash.
21256 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
21257 (HASH_TABLE_SIZE): Move from fns.c.
21259 2002-07-07 Richard M. Stallman <rms@gnu.org>
21261 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
21262 Instead just return 0 when there is something to be done.
21263 (try_scrolling): If make_cursor_line_fully_visible returns 0,
21264 retry scrolling as if cursor were off the bottom.
21265 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
21266 return CURSOR_MOVEMENT_MUST_SCROLL.
21267 (redisplay_window): If make_cursor_line_fully_visible returns 0,
21268 go to try_to_scroll.
21270 * buffer.c (Fbuffer_local_value): Store current value into its binding
21271 so we get the up-to-date value for the binding that is loaded.
21273 * eval.c (Fdefmacro): Doc fix.
21275 2002-07-05 Dave Love <fx@gnu.org>
21277 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
21280 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
21281 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
21282 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
21283 CCL_LookupCharConstTbl.
21284 (syms_of_ccl): Defvar translation-hash-table-vector.
21286 2002-07-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
21288 * xdisp.c: Remove unused variable `face'.
21290 2002-07-04 Juanma Barranquero <lektu@terra.es>
21292 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
21293 obsolescence information.
21295 2002-07-03 Andrew Choi <akochoi@shaw.ca>
21297 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
21298 pattern. Search cache first.
21299 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
21301 (XLoadQueryFont): Use it.
21303 2002-07-02 Richard M. Stallman <rms@gnu.org>
21305 * keymap.c (Fdefine_key): Doc fix.
21307 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
21309 2002-07-02 Juanma Barranquero <lektu@terra.es>
21311 * keymap.c (syms_of_keymap): Fix typo.
21313 2002-07-01 Andrew Choi <akochoi@shaw.ca>
21315 * s/darwin.h: Define POSIX_SIGNALS.
21317 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
21318 and FSRefMakePath to convert FSSpec returned with Apple Event to
21320 (mac_initialize) [TARGET_API_MAC_CARBON]:
21321 Call init_required_apple_events and disable the `Quit' menu item
21322 provided automatically by the Carbon Toolbox.
21324 2002-07-01 Dave Love <fx@gnu.org>
21326 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21329 * xterm.c: Fix prototype for K&R.
21331 * term.c (costs_set): Declare static, non-initialized for pcc.
21333 2002-07-01 Richard M. Stallman <rms@gnu.org>
21335 * keyboard.c (timer_last_idleness_start_time): New variable.
21336 (timer_start_idle): Set that.
21337 (read_key_sequence): Use that to reset timer_idleness_start_time
21340 * window.c (Frecenter): With arg, set optional_new_start.
21342 * xdisp.c (redisplay_internal): Make optional_new_start really work.
21344 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
21345 buffer for completion.
21347 2002-06-29 Ken Raeburn <raeburn@gnu.org>
21349 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
21351 2002-06-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21353 * keyboard.c (readable_filtered_events): New function that filters
21354 FOCUS_IN_EVENT depending on parameter.
21355 (readable_events): Calls readable_filtered_events, not filtering
21357 (get_filtered_input_pending): New function, filtering parameter passed
21358 to readable_filtered_events.
21359 (get_input_pending): Calls get_filtered_input_pending, not filtering
21361 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
21364 * xterm.h (struct x_output): Add focus_state.
21366 * xterm.c (x_focus_changed): New function.
21367 (x_detect_focus_change): New function.
21368 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
21369 EnterNotify and LeaveNotify to track X focus changes.
21371 2002-06-28 Andreas Schwab <schwab@suse.de>
21373 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
21375 2002-06-27 Kim F. Storm <storm@cua.dk>
21377 * xdisp.c (mode_line_string_list, mode_line_string_face)
21378 (mode_line_string_face_prop): New variables.
21379 (store_mode_line_string): New function.
21380 (display_mode_element): Use store_mode_line_string to
21381 add mode-line string elements to mode_line_string_list
21382 when mode_line_string_list is non-nil.
21383 (Fformat_mode_line): Now returns propertized string by
21384 default. New arg NO-PROPS to ignore properties.
21385 (decode_mode_spec): Only add two dashes for %- in propertized
21387 (syms_of_xdisp): Init and staticpro mode_line_string_list.
21389 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
21391 * minibuf.c (minibuffer_completion_contents): Add return type.
21393 2002-06-27 Juanma Barranquero <lektu@terra.es>
21395 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
21397 2002-06-26 Juanma Barranquero <lektu@terra.es>
21399 * fileio.c (read_file_name_cleanup): Add missing return.
21401 2002-06-26 Richard M. Stallman <rms@gnu.org>
21403 * window.c (Frecenter): Don't set force_start flag.
21405 * minibuf.c (do_completion, Fminibuffer_complete_word)
21406 (Fminibuffer_completion_help): Complete just the text before point.
21407 (minibuffer_completion_contents): New function.
21409 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
21411 * frame.c (frames_bury_buffer): Function deleted.
21413 2002-06-25 Miles Bader <miles@gnu.org>
21415 * callint.c (Fcall_interactively): When checking to see if doprnt hit
21416 the end of callint_message, allow for a terminating '\0'.
21418 2002-06-24 Juanma Barranquero <lektu@terra.es>
21420 * w32select.c: Include composite.h.
21422 * w16select.c: Likewise.
21424 2002-06-24 Kenichi Handa <handa@etl.go.jp>
21426 * callproc.c (Fcall_process): If code detection is necessary,
21427 call detect_coding directly here.
21429 * coding.c (detect_eol): Preserve coding->cmp_data.
21431 * w16select.c (Fw16_get_clipboard_data):
21432 * w32fns.c (w32_to_x_font):
21433 * w32select.c (Fw32_get_clipboard_data):
21434 * xselect.c (selection_data_to_lisp_data):
21435 * xterm.c (XTread_socket): Disable composition handling.
21437 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
21439 * print.c (temp_output_buffer_setup): Kill all local variables.
21441 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
21443 * lread.c (Fread): Remove redundant and imprecise declaration.
21445 * xfns.c (check_x_display_info): Use check_x_frame.
21447 * .gdbinit (xprintsym): Use the new `xname' field.
21450 2002-06-22 Jason Rumney <jasonr@gnu.org>
21452 * w32fns.c (file_dialog_callback): New function.
21453 (Fx_file_dialog): Allow selecting directories as well as files.
21455 2002-06-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
21457 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
21458 OpenBSD. Add support for mipseb-*-netbsd* machines.
21460 2002-06-17 Andrew Choi <akochoi@shaw.ca>
21462 * macterm.c (mac_scroll_area): Set foreground and backcolor to
21463 black and white before scrolling. Restore frame background and
21464 foreground color after scrolling.
21465 (do_window_update): Call XClearWindow before calling expose_frame.
21466 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
21467 FRAME_FOREGROUND_PIXEL of frame.
21469 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
21470 test Mac command key as <ALT> key.
21472 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
21474 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
21476 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
21477 Lookup keys in function-key-map immediately so that key-translation-map
21478 can be applied earlier.
21479 Remove function_key_possible and key_translation_possible, replaced
21480 by checking `keytran_start < t'.
21482 * .gdbinit (xsymbol): Use the new `xname' field.
21484 2002-06-17 Andrew Choi <akochoi@shaw.ca>
21486 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
21487 test Mac command key as <ALT> key.
21489 * mac.c (do_applescript): Call initialize_applescript if necessary
21490 when first called. Dispose of result_desc only when there is no error.
21491 (Fdo_applescript): Use %d format specifier instead of %ld.
21493 2002-06-16 Andrew Choi <akochoi@shaw.ca>
21495 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
21496 of FrontWindow for cases keyDown and autoKey.
21498 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
21499 Vdefault_fontset to Monaco with mac-roman coding.
21501 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
21502 init_process before and after inclusion of Carbon/Carbon.h, resp.
21504 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
21506 (add_font_name_table_entry): New function.
21507 (init_font_name_table): Use add_font_name_table_entry; add italic,
21508 bold, and bold-italic entries for truetype fonts.
21510 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
21512 (try_font_list) [MAC_OS]: If no font matches given registry, try
21513 fonts with any registry matching face_family.
21514 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
21516 * s/darwin.h: If autoconf detects the Ncurses library, define
21517 LIBS_TERMCAP to -lncurses to use it.
21519 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
21521 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
21523 2002-06-15 Richard M. Stallman <rms@gnu.org>
21525 * window.c (Fset_window_configuration): Explicitly preserve
21526 the point value that new_current_buffer had at the start.
21528 2002-06-14 Juanma Barranquero <lektu@terra.es>
21530 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
21533 2002-06-14 Kim F. Storm <storm@cua.dk>
21535 * insdel.c (insert_1_both, insert_from_string_1)
21536 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
21537 insert happened in the end_unchanged region. Otherwise, the
21538 redisplay may be confused and duplicate the last line in the
21539 buffer [seen after save-buffer when require-final-newline==t].
21541 2002-06-13 Jason Rumney <jasonr@gnu.org>
21543 * w32.c (init_environment): Remove EMACSLOCKDIR.
21544 (stat): Swap _S_IFDIR and _S_IFREG.
21546 2002-06-13 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
21548 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
21549 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
21550 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
21551 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
21552 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
21553 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
21554 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
21555 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
21556 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
21557 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
21558 SELECTION_REQUEST_EVENT, selection_clear_event to
21559 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
21560 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
21561 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
21562 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
21563 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
21564 no_event to NO_EVENT.
21566 2002-06-12 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
21568 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
21570 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
21572 * intervals.c (textget): Don't forget to `return'.
21573 (lookup_char_property): Use XCAR/XCDR.
21575 2002-06-12 Juanma Barranquero <lektu@terra.es>
21577 * xdisp.c (Fformat_mode_line): Fix typo.
21579 2002-06-12 Kim F. Storm <storm@cua.dk>
21581 * xdisp.c (Fformat_mode_line): New function.
21582 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
21583 (store_frame_title_char, store_frame_title): Use unconditionally.
21584 (init_xdisp): Defsubr Fformat_mode_line.
21585 Initialize frame_title_buf etc. unconditionally.
21587 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
21589 * keyboard.c (read_key_sequence):
21590 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
21591 things through those maps after downcasing events.
21592 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
21593 applies after function-key-map.
21594 Make sure that keytran can be done in the middle in the sequence.
21595 Be careful not to throw away events past the one we downcase.
21597 * lread.c (read_integer): Remove unused var `tem'.
21598 (read1): Fix int/Lisp_Object mixup.
21600 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
21602 2002-06-11 Richard M. Stallman <rms@gnu.org>
21604 * keyboard.c (readable_events): Ignore any number of
21605 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
21607 2002-06-09 Miles Bader <miles@gnu.org>
21609 * xfaces.c (Ftty_supports_face_attributes_p): New function.
21610 (parse_rgb_list, tty_lookup_color): New functions.
21611 (tty_defined_color): Use `tty_lookup_color' to do all the work.
21612 (color_distance, Fcolor_distance): New functions.
21613 (TTY_SAME_COLOR_THRESHOLD): New macro.
21614 (Qtty_color_standard_values): New variable.
21615 (syms_of_xfaces): Initialize new vars & functions.
21617 2002-06-08 Colin Walters <walters@verbum.org>
21619 * textprop.c (Vchar_property_alias_alist): New variable.
21620 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
21622 * intervals.c (lookup_char_property): New function for looking up
21623 overlay and text properties, created from textget.
21626 * intervals.h (lookup_char_property): Declare.
21627 (Vchar_property_alias_alist): Declare.
21629 * buffer.c (Foverlay_get): Use lookup_char_property.
21631 2002-06-07 Sam Steingold <sds@gnu.org>
21633 * xselect.c (lisp_data_to_selection_data): Fix last change:
21634 *data_ret is not a Lisp string, while unibyte_string is.
21636 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
21638 * xselect.c (lisp_data_to_selection_data): Fix last change:
21641 2002-06-07 Andreas Schwab <schwab@suse.de>
21643 * m/amdx86-64.h: New file.
21645 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
21647 * fns.c (Fstring_make_unibyte): Doc fix.
21649 * xselect.c (lisp_data_to_selection_data): If the requested type
21650 is STRING, call string_make_unibyte to encode the selected text
21653 * window.c (Fset_window_hscroll): Doc fix.
21655 2002-06-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
21657 * fileio.c (choose_write_coding_system):
21658 Call select-safe-coding-system properly.
21660 2002-06-03 Richard M. Stallman <rms@gnu.org>
21662 * xdisp.c (message_with_string): Error if STRING is not a string.
21664 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
21666 * fileio.c (choose_write_coding_system): Pass FILE arg to
21667 Vselect_safe_coding_system_function.
21669 2002-06-03 Ken Raeburn <raeburn@gnu.org>
21671 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
21673 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
21675 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
21676 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
21677 * keymap.c (describe_command): Likewise.
21678 * minibuf.c (read_minibuf): Likewise.
21680 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
21681 Cast `current_column' return value to int.
21682 (back_to_previous_visible_line_start)
21683 (reseat_at_next_visible_line_start, next_element_from_buffer):
21684 Cast `indented_beyond_p' 3rd arg to float.
21686 * indent.c (last_known_column): Now a float.
21687 (current_column_1, position_indentation, current_column)
21688 (string_display_width): Return float.
21689 (Fcurrent_column): Cast `current_column' return value to int.
21690 (Fcurrent_indentation): Cast `position_indentation' retval to int.
21691 (indented_beyond_p): Third arg now a float.
21692 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
21694 * lisp.h (current_column): Now returns float.
21695 (indented_beyond_p): 3rd arg now a float.
21697 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
21699 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
21700 is Qcompound_text_with_extensions.
21702 * xselect.c (lisp_data_to_selection_data): Always set selection
21703 type as string if x_encode_text returns streingp non-NULL.
21705 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
21707 2002-05-30 Richard M. Stallman <rms@gnu.org>
21709 * window.c (Fset_window_configuration): Correct the handling
21710 of point in current buffer, to work with multiple windows.
21712 2002-05-29 Colin Walters <walters@verbum.org>
21714 * lread.c (Fread_from_string): Don't depend on order of evaluation
21715 for C function parameters.
21717 2002-05-28 Richard M. Stallman <rms@gnu.org>
21719 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
21720 way for blinked-off state and for a nonselected window.
21722 * window.c (window_scroll_pixel_based): Don't call Fbolp;
21723 instead, see if the new start pos is at beginning of line.
21725 * fileio.c (Fwrite_region): If START is a string, don't
21726 make any annotations.
21728 * eval.c (syms_of_eval): Doc fix.
21730 2002-05-28 Colin Walters <walters@debian.org>
21732 * emacs.c (USAGE1): Add --no-splash.
21733 (standard_args): Ditto.
21735 2002-05-28 Colin Walters <walters@gnu.org>
21737 * lread.c (readchar_count): New variable.
21738 (readchar): Increment it.
21739 (unreadchar): Decrement it.
21740 (read_multibyte): Decrement it.
21741 (Vread_with_symbol_positions): New variable.
21742 (Vread_symbol_positions_list): New variable.
21743 (read_internal_start): New function, created from Fread and
21744 Fread_from_string. Handle Vread_symbol_positions_list and
21745 Vread_with_symbol_positions.
21746 (readevalloop, Fread, Fread_from_string): Use it.
21747 (read1): Use readchar_count to add symbol positions to
21748 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
21749 (syms_of_lread): DEFVAR_LISP and initialize them.
21751 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
21752 (substitute_object_recurse, substitute_object_in_subtree)
21753 (substitute_in_interval): Prototype.
21754 (read_multibyte): Return c if it's less than zero.
21756 2002-05-28 Kim F. Storm <storm@cua.dk>
21758 * fileio.c (Fread_file_name_internal): Added brute-force
21759 speed up for using predicate file-directory-p.
21761 2002-05-28 Kim F. Storm <storm@cua.dk>
21763 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
21765 (syms_of_fileio): DEFVAR_LISP them.
21766 (read_file_name_cleanup): New unwind function.
21767 (Fread_file_name_internal): Only return completions satifying
21768 Vread_file_name_predicate. Temporarily unwind protect and rebind
21769 default-directory while checking completions against the predicate.
21770 (Fread_file_name): Added PREDICATE argument. Specbind it to
21771 Vread_file_name_predicate during completion.
21772 Call Vread_file_name_function to read the file name if non-nil.
21774 * lisp.h (Fread_file_name): Now has 6 args.
21776 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
21777 predicate for Fread_file_name when reading directory name.
21778 Supply Qnil for predicate in other calls to Fread_file_name.
21780 2002-05-26 Miles Bader <miles@gnu.org>
21782 * term.c (tty_capable_p): New function.
21783 * dispextern.h (tty_capable_p): New function declaration.
21784 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
21785 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
21787 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
21789 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
21790 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
21791 (Vwrite_region_annotate_functions): Docstring fix.
21793 2002-05-23 Kim F. Storm <storm@cua.dk>
21795 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
21796 phys_cursor's hpos is overwritten. This is still not completely
21797 correct, as it doesn't really make sense to use hpos at all to
21798 get the cursor glyph (as that is relative to the width of the
21799 characters on the line, which may have changed during the update).
21801 2002-05-22 Jason Rumney <jasonr@gnu.org>
21803 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
21805 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
21806 Use modified enumfont_t struct.
21808 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
21810 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
21811 Handle the `hbar' cursor type.
21812 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
21814 * w32fns.c (Qhbar): New variable.
21815 (x_specified_cursor_type): Use it.
21817 2002-05-21 Ken Raeburn <raeburn@gnu.org>
21819 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
21820 now, when the address is needed.
21822 2002-05-21 Colin Walters <walters@gnu.org>
21824 * Makefile.in (shortlisp): Add font-core.el.
21826 2002-05-20 Richard M. Stallman <rms@gnu.org>
21828 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
21830 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
21831 equivalent key bindings here.
21833 2002-05-20 Ken Raeburn <raeburn@gnu.org>
21835 Change symbol structure to contain a lisp object for the symbol
21837 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
21838 object field named "xname".
21839 (SYMBOL_NAME): New macro.
21840 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
21842 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
21843 (mark_object, gc_sweep): Use symbol xname field and XSTRING
21844 instead of name field.
21845 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
21846 SYMBOL_NAME instead of XSYMBOL and name field.
21847 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
21848 instead of XSYMBOL and name field.
21849 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
21850 and SYMBOL_NAME instead of XSYMBOL and name field.
21851 * coding.c (Fread_coding_system, code_convert_region1)
21852 (code_convert_string1, code_convert_string_norecord)
21853 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
21854 XSYMBOL and name field.
21855 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
21856 (Fmake_variable_buffer_local, Fmake_local_variable)
21857 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
21858 of XSYMBOL and name field.
21859 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
21860 XSYMBOL and name field.
21861 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
21862 instead of XSYMBOL and name field.
21863 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
21864 XSYMBOL and name field.
21865 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
21866 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
21867 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
21868 instead of XSYMBOL and name field.
21869 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
21870 (parse_modifiers, apply_modifiers, Fevent_convert_list)
21871 (parse_solitary_modifier, Fexecute_extended_command):
21872 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
21873 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
21874 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
21875 of XSYMBOL and name field.
21876 (describe_command, describe_translation): Use SYMBOL_NAME and
21877 assignment instead of XSYMBOL and name field and XSETSTRING.
21878 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
21879 instead of XSYMBOL and name field.
21880 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
21881 name field and XSETSTRING.
21882 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
21883 of XSYMBOL and name field.
21884 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
21885 assignment instead of XSYMBOL and name field and XSETSTRING.
21886 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
21887 XSTRING instead of XSYMBOL and name field.
21888 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
21889 and XSTRING instead of XSYMBOL and name field.
21890 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
21891 and XSTRING instead of XSYMBOL and name field.
21892 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
21893 XSTRING instead of XSYMBOL and name field.
21894 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
21895 of XSYMBOL and name field.
21896 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
21897 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
21899 2002-05-19 Ken Raeburn <raeburn@gnu.org>
21901 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
21902 and XCDR real rvalues in most configurations.
21904 * buffer.c (fix_overlays_in_range, fix_overlays_before):
21905 Don't take the address of the cdr part of a cons cell; instead, track
21906 the parent cell and call XSETCDR, or set the variable for the head
21907 of the list if we haven't started down the list yet.
21909 2002-05-19 Richard M. Stallman <rms@gnu.org>
21911 * doc.c (reread_doc_file): Don't ask for confirmation.
21913 2002-05-18 Jason Rumney <jasonr@gnu.org>
21915 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
21916 (xbm_load_image): Use it.
21918 (xbm_read_bitmap_data): Reverted to xfns.c version.
21919 From David Ponce <david@dponce.com>.
21921 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
21923 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
21926 2002-05-16 Juanma Barranquero <lektu@terra.es>
21928 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
21930 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
21932 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
21934 (read_char_minibuf_menu_prompt): Fix typo.
21936 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
21938 * eval.c (Fcommandp): Doc fix.
21940 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
21942 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
21943 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
21944 (Fset_keymap_parent): Gcpro a bit more.
21945 (access_keymap): Gcpro around meta_map call and around the main loop.
21946 (get_keyelt): Gcpro when following indirect references.
21947 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
21948 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
21949 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
21950 Remove useless ad-hoc remap code.
21952 2002-05-13 Richard M. Stallman <rms@gnu.org>
21954 * search.c (search_buffer): Give up boyer moore search if inverse
21955 translation change charset_base.
21957 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
21959 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
21960 characters is carried over from the previous block of text, adjust
21961 coding->produced to account for the extra character.
21963 2002-05-11 Andreas Schwab <schwab@suse.de>
21965 * coding.c (intersection): Keep the elements of the returned list
21966 in the same order as in the first list.
21968 2002-05-11 Kim F. Storm <storm@cua.dk>
21970 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
21971 only update cmm_size if realloc actually succeeds.
21972 Testing with initial size of 2 elements revealed that using
21973 realloc on GNU/Linux would cause a random trap in xmalloc
21974 later on, so I rewrote the code to use malloc/bcopy/free instead
21977 2002-05-10 Jason Rumney <jasonr@gnu.org>
21979 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
21981 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
21983 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
21984 parens, to ensure correct evaluation order.
21986 2002-05-10 Kim F. Storm <storm@cua.dk>
21988 * keymap.c (Vemulation_mode_map_alists): New variable.
21989 (syms_of_keymap): DEFVAR_LISP it.
21990 (current_minor_maps): Process keymap alists in that list before
21991 minor-mode-overriding-map-alist and minor-mode-map-alist.
21993 2002-05-09 Richard M. Stallman <rms@gnu.org>
21995 * search.c (Freplace_match): Doc fix.
21997 2002-05-09 Kim F. Storm <storm@cua.dk>
21999 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
22000 Enlarge cursor rectangle drawn around image with non-zero relief.
22002 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
22003 Enlarge cursor rectangle drawn around image with non-zero relief.
22005 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
22006 Enlarge cursor rectangle drawn around image with non-zero relief.
22008 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
22010 * xselect.c (lisp_data_to_selection_data): Don't set selection
22011 type if comes from the Lisp object's car. If the selection
22012 contains a pure ASCII text, always return QSTRING as its type.
22014 2002-05-06 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
22016 * mac.c (mac-cut-function): Doc fix.
22018 2002-05-05 Richard M. Stallman <rms@gnu.org>
22020 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
22022 2002-05-04 Jason Rumney <jasonr@gnu.org>
22024 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
22025 for event-click-count.
22027 * process.c (init_process): Only add server subfeature if we can
22028 use non-blocking I/O.
22030 2002-05-04 Andrew Choi <akochoi@shaw.ca>
22032 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
22035 2002-05-03 Jason Rumney <jasonr@gnu.org>
22037 * process.c (Fmake_network_process): Only support server sockets
22038 when we can make them non-blocking.
22040 * s/ms-w32.h (HAVE_SELECT): Define.
22042 * w32.h (FILE_NDELAY): New flag.
22044 * w32.c (sys_getpeername, fcntl): New functions.
22045 (_sys_read_ahead): Temporarily block on non-blocking sockets.
22047 * w32proc.c: Include sys/file.h.
22049 2002-05-03 Colin Walters <walters@verbum.org>
22051 * callproc.c (Vgame_score_directory): Renamed to
22052 Vshared_game_score_directory.
22054 2002-04-30 Richard M. Stallman <rms@gnu.org>
22056 * s/gnu.h [emacs]: Include stdio.h.
22057 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
22059 * eval.c (do_autoload): Error if called while preparing to dump.
22061 * fns.c (Frequire): Error if need to load while preparing to dump.
22063 2002-04-28 Colin Walters <walters@verbum.org>
22065 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
22066 Default to "~/.emacs.d/games".
22068 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
22070 * lread.c (openp): Change arg exec_only to predicate.
22071 (build_load_history): Use XCAR/XCDR.
22072 (Flocate_file_internal): New fun.
22073 (syms_of_lread): Defsubr it.
22074 (Fload): Update call to openp.
22076 * lisp.h (openp): Update prototype.
22078 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
22079 * w32proc.c (sys_spawnve):
22080 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
22081 * w32.c (check_windows_init_file):
22082 * sound.c (Fplay_sound_internal):
22083 * process.c (Fstart_process):
22084 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
22085 * mac.c (run_mac_command):
22086 * emacs.c (init_cmdargs):
22087 * callproc.c (Fcall_process): Update call to openp.
22089 * textprop.c (remove_properties): Don't use XCAR without CONSP.
22091 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
22093 2002-04-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
22095 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
22096 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
22098 2002-04-28 Richard M. Stallman <rms@gnu.org>
22100 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
22102 * eval.c (Fcommandp): New arg for_call_interactively.
22103 * lisp.h (Fcommandp): Declare new arg.
22105 2002-04-28 Jason Rumney <jasonr@gnu.org>
22107 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
22109 * w32.c (stat, fstat): Use file index information to generate
22110 inodes for directories where available.
22112 2002-04-26 Andrew Choi <akochoi@shaw.ca>
22114 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
22115 [HAVE_CARBON]: Include Mac object files.
22117 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
22118 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
22119 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
22120 MAC_OSX, and MAC_OS instead of macintosh.
22122 * editfns.c [MAC_OS8]: Include stdio.h.
22124 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
22126 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
22129 * process.c (QCfamily, QCfilte): Declare extern.
22130 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
22133 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
22135 * tparam.c [MAC_OSX]: Don't define BC and UP.
22137 * config.in [HAVE_CARBON]: Add.
22139 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
22140 Move here from mac/src and mac/inc.
22142 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
22144 2002-04-26 Gerd Moellmann <gerd@gnu.org>
22146 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
22147 Compute phys_cursor_width from the x position returned
22148 by x_draw_glyhs, which is cheaper.
22149 (x_display_and_set_cursor): Compute the buffer-local value
22150 of `cursor-in-non-selected-windows' only when needed.
22152 2002-04-25 Gerd Moellmann <gerd@gnu.org>
22154 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
22155 cursor on a stretch glyph has a width that depends on
22156 x_stretch_cursor_p.
22158 2002-04-25 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
22160 * abbrev.c (abbrev-start-location): Doc fix.
22162 * indent.c (Fvertical_motion): Fix last change.
22164 2002-04-25 Gerd Moellmann <gerd@gnu.org>
22166 * indent.c (Fvertical_motion): Move to the start of the line
22167 containing PT before moving up or down.
22169 2002-04-24 Gerd Moellmann <gerd@gnu.org>
22171 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
22172 case of writing a whole row, more or less analogous to the case of
22173 writing only parts of a row.
22175 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
22178 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
22180 2002-04-23 Colin Walters <walters@verbum.org>
22182 * buffer.c (syms_of_buffer): Doc fix.
22184 2002-04-23 Gerd Moellmann <gerd@gnu.org>
22186 * xterm.c (notice_overwritten_cursor): Handle the special case
22187 of the cursor being in the first blank non-text line at the
22190 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
22191 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
22192 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
22193 bar cursors only, to make phys_cursor_width contain what its name
22195 (notice_overwritten_cursor): Consider the cursor image erased if
22196 the output area intersects the cursor image in y-direction.
22198 2002-04-23 Simon Marshall <simon@gnu.org>
22200 * xfns.c (x_set_mouse_color): Change default for cross_cursor
22203 2002-04-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
22205 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
22207 2002-04-22 Kim F. Storm <storm@cua.dk>
22209 * textprop.c (remove_properties): Fixed trap for malformed plist.
22211 2002-04-22 Richard M. Stallman <rms@gnu.org>
22213 * cmds.c (Fend_of_line): Handle intangible text in mid line.
22215 * window.c (make_window): Initialize height_fixed_p,
22216 last_cursor_off_p, and p->cursor_off_p slots.
22218 2002-04-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
22220 * fns.c (use-dialog-box): Doc fix.
22222 2002-04-19 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
22224 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
22225 variables `row', `i' and `area'.
22226 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
22229 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
22231 * xfaces.c (clear_font_table): Don't free the default font of
22232 a frame even if it's on another display.
22233 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
22236 2002-04-19 Juanma Barranquero <lektu@terra.es>
22238 * indent.c (Fmove_to_column): Remove unused local variable
22239 `next_boundary_byte'.
22240 (current_column_1): Likewise.
22242 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
22244 * msdos.c (Qhbar): New variable.
22245 (syms_of_msdos): Intern and staticpro it.
22246 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
22249 2002-04-19 Dave Lambert <dlambert@acm.org>
22251 Theses change implement an underscore-like (`hbar') cursor.
22253 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
22255 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
22256 Handle the `hbar' cursor type.
22257 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
22259 * xfns.c (Qhbar): New variable.
22260 (syms_of_xfns): Intern and staticpro it.
22261 (x_specified_cursor_type): Handle `hbar' cursor.
22263 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
22266 2002-04-18 Richard M. Stallman <rms@gnu.org>
22268 * textprop.c (remove_properties): New arg LIST allows scanning
22269 either a list or a plist.
22270 (interval_has_some_properties_list): New function, like
22271 interval_has_some_properties using list instead of plist.
22272 All callers changed.
22273 (Fremove_list_of_text_properties): New function.
22274 (syms_of_textprop): Defsubr it.
22276 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
22278 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
22280 2002-04-17 Juanma Barranquero <lektu@terra.es>
22282 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
22284 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
22286 * window.c (coordinates_in_window): Don't report on margin area
22287 if its width is zero.
22289 2002-04-16 Jason Rumney <jasonr@gnu.org>
22291 * w32fns.c (Fx_file_dialog): Decode file name before using.
22293 * w32term.c (construct_drag_n_drop): Likewise.
22295 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
22297 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
22298 store load-history in pure space.
22300 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
22302 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
22304 * xterm.c (Qlatin_1, Qutf_8): New vars.
22305 (syms_of_xterm): Initialize them.
22306 (XTread_socket): Eliminate incorrect optimization that tried to avoid
22307 decoding the output of X*LookupString.
22308 Always use latin-1 to decode the output of XLookupString.
22309 Try Xutf8LookupString if XmbLookupString failed.
22311 * region-cache.c (new_region_cache): Use BEG.
22313 2002-04-16 Gerd Moellmann <gerd@gnu.org>
22315 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
22316 configuration files.
22317 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
22320 2002-04-15 Andreas Schwab <schwab@suse.de>
22322 * config.in: Regenerated using autoheader.
22324 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
22325 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
22326 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
22327 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
22328 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
22329 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
22330 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
22331 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
22332 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
22333 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
22334 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
22335 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
22336 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
22337 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
22338 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
22339 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
22340 STACK_DIRECTION, now set by autoconf.
22342 2002-04-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
22344 * dispnew.c (marginal_area_string): Sort arguments.
22346 * dispextern.h (marginal_area_string): Add prototype.
22348 2002-04-13 Richard M. Stallman <rms@gnu.org>
22350 * fileio.c (Finsert_file_contents):
22351 Don't call temp_output_buffer_setup--do just part, by hand.
22353 * coding.c (run_pre_post_conversion_on_str):
22354 Don't call temp_output_buffer_setup--do just part, by hand.
22356 * keyboard.c (command_loop_1): Don't call start_hourglass
22357 or cancel_hourglass when executing a macro.
22359 * marker.c (count_markers): New function.
22361 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
22362 grow without limit. Move recently used elements to the front.
22364 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
22366 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
22368 2002-04-12 Gerd Moellmann <gerd@gnu.org>
22370 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
22371 rows marginal areas.
22372 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
22373 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
22375 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
22377 2002-04-12 Dave Love <fx@gnu.org>
22379 * dispnew.c (marginal_area_string): New.
22381 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
22382 (Qleft_margin, Qright_margin): Declare.
22383 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
22385 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
22386 note_mode_line_highlight and extended.
22388 * keyboard.c (Qleft_margin, Qright_margin): Declare.
22389 (make_lispy_event): Deal with mouse events in margins.
22391 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
22393 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
22395 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
22396 than deactivating the mark if tmm is set to `lambda'.
22397 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
22398 Use a single event for HELP_EVENT.
22399 (Fexecute_extended_command): Save last_point_position.
22401 2002-04-12 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
22403 * lisp.h (Fpropertize): Add prototype.
22405 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
22407 2002-04-10 Colin Walters <walters@verbum.org>
22409 * config.in: Add HAVE_SHARED_GAME_DIR.
22411 * callproc.c (Vgame_score_directory): New variable.
22412 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
22414 2002-04-10 Richard M. Stallman <rms@gnu.org>
22416 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
22418 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
22420 * minibuf.c (read_minibuf): Use empty_string.
22421 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
22422 Short-circuit the search as soon as it "failed".
22423 (Fall_completions): Allow lambda forms and lists of strings for alist.
22424 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
22425 when require_match is nil.
22426 (Ftest_completion): Rename from `test_completion' and export to elisp.
22427 Call the predicate also when alist is a list.
22428 Obey Vcompletion_regexp_list.
22429 (do_completion, Fminibuffer_complete_and_exit): Use it.
22430 (Fassoc_string): Rename from `assoc_for_completion'.
22431 Allow list of strings as well and export to elisp.
22433 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
22435 * puresize.h (BASE_PURESIZE): Increase to 900KB.
22437 2002-04-08 Juanma Barranquero <lektu@terra.es>
22439 * w32.c (sys_accept): Don't hide variable `s'.
22441 2002-04-05 Gerd Moellmann <gerd@gnu.org>
22443 * callint.c (Fcall_interactively): Use INTEGERP instead of
22444 NUMBERP for checking Vhistory_length.
22446 2002-04-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
22448 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
22449 Doc fix to reflect it.
22451 2002-04-04 Richard M. Stallman <rms@gnu.org>
22453 * xdisp.c (display_mode_element): New arg RISKY.
22454 Disregard text props found or specified within a variable
22455 that isn't marked risky-local-variable.
22456 (Qrisky_local_variable): New variable.
22457 (syms_of_xdisp): Init and staticpro it.
22459 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
22461 * undo.c (record_point): New fun.
22462 (record_delete, record_insert): Use it.
22464 2002-04-03 Juanma Barranquero <lektu@terra.es>
22466 * doc.c (Fdocumentation): Add missing parentheses.
22467 (Fdocumentation_property): Likewise.
22469 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
22471 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
22472 data is 0, just return nil.
22474 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
22476 * msdos.c (syms_of_msdos): Fix last change with
22477 mouse_autoselect_window.
22479 2002-04-03 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
22481 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
22482 mouse_autoselect_window.
22484 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
22486 * keyboard.c (make_lispy_event): Handle unknown keysyms together
22487 with system-specific keysyms. Use it also for unknown function keys.
22489 * doc.c (reread_doc_file): Return whether reload was attempted.
22490 (Fdocumentation, Fdocumentation_property): Don't try to reload
22491 if the doc is 0 and only ask once.
22493 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
22495 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
22497 * keyboard.c (read_char): If the event was Qselect_window,
22498 restore timer_idleness_start_time to its previous value.
22500 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
22502 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
22504 * region-cache.c (new_region_cache): Use BEG.
22506 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
22507 Use BEG and BEG_BYTE.
22509 * doc.c (get_doc_string): Return nil if the location is wrong.
22510 (reread_doc_file): New fun.
22511 (Fdocumentation, Fdocumentation_property):
22512 Call it if get_doc_string fails.
22513 (Fsnarf_documentation): Make it work for a dumped Emacs.
22515 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
22516 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
22518 * charset.c (Fstring): Allow 0 arguments.
22520 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
22522 * process.c (DATAGRAM_CONN_P, list_processes_1)
22523 (Fprocess_datagram_address, Fset_process_datagram_address)
22524 (Fset_network_process_options, server_accept_connection):
22525 Fix some int/Lisp_Object confusions (thank you union types).
22527 2002-04-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
22529 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
22531 * w32term.c: Likewise.
22532 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
22534 * keyboard.c (Qselect_window): New symbol.
22535 (head_table): Use it.
22536 (keys_of_keyboard): Bound select-window event to handle-select-window.
22537 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
22539 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
22540 (last_window): New variable.
22541 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
22542 (note_mouse_movement): Remove reimplemented code in #if 0.
22543 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
22546 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
22548 2002-03-31 Gerd Moellmann <gerd@gnu.org>
22550 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
22553 2002-03-30 Richard M. Stallman <rms@gnu.org>
22555 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
22556 loop whenever it stops making progress.
22558 * widget.c (set_frame_size): Don't call change_frame_size.
22560 2002-03-30 Gerd Moellmann <gerd@gnu.org>
22562 * dispnew.c (direct_output_for_insert):
22563 Call mark_window_display_accurate.
22565 2002-03-29 Jason Rumney <jasonr@gnu.org>
22567 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
22569 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
22571 * Makefile.in (lread.o): Depend on coding.h.
22573 * lread.c (openp, Fload): Encode the file name before passing it
22574 to `stat', `access', and `emacs_open'.
22575 (openp): GCPRO the encoded file name. Don't recompute Lisp
22576 strings unnecessarily.
22578 2002-03-29 Kim F. Storm <storm@cua.dk>
22580 * fns.c (Flax_plist_put): Doc fix.
22582 2002-03-28 Miles Bader <miles@gnu.org>
22584 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
22586 2002-03-27 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
22588 * process.c (set-network-process-options): Add usage.
22589 (make-network-process): Doc fix.
22591 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
22593 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
22595 2002-03-26 Richard M. Stallman <rms@gnu.org>
22597 * fns.c (Fsubstring_no_properties): New function.
22598 (Flax_plist_get, Flax_plist_put): New functions.
22599 (syms_of_fns): defsubr them.
22601 * xdisp.c (update_menu_bar): Test only update_mode_lines;
22602 don't test or alter w->update_mode_line.
22604 * window.c (Fdisplay_buffer): Doc fix.
22606 2002-03-24 Richard M. Stallman <rms@gnu.org>
22608 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
22610 2002-03-24 Gerd Moellmann <gerd@gnu.org>
22612 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
22613 (Fdefmacro): Handle `(declare ...)'.
22614 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
22615 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
22617 2002-03-24 Jason Rumney <jasonr@gnu.org>
22619 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
22620 (xbm_file_p): Add prototypes.
22621 (xbm_format, xbm_image_p): Sync with xfns.c.
22622 (reflect_byte): New function.
22623 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
22624 (xbm_load_image): Create bitmaps with a depth of 1.
22625 (init_xfns): Enable XBM images.
22627 2002-03-23 Jason Rumney <jasonr@gnu.org>
22629 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
22630 correctly. Do not pass up_modifier to keyboard buffer.
22632 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
22634 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
22636 * Makefile.in (bootstrapclean): New target.
22637 (bootstrap-temacs, bootstrap-doc): Remove.
22638 (bootstrap-emacs): Use a bog-standard `temacs'.
22639 Don't bother to build a DOC file.
22641 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
22643 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
22644 in temacs even if !CANNOT_DUMP.
22645 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
22647 * alloc.c (check_pure_size): Only output a warning.
22649 2002-03-22 Jason Rumney <jasonr@gnu.org>
22651 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
22654 * w32term.c (zv_bits): Declare as short, for word alignment.
22655 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
22656 (syms_of_w32term): Define x-use-underline-position-properties.
22658 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
22659 (clear_image_cache): Block input, fix logic, clear matrices in
22660 all frames that share this cache.
22662 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
22664 * emacs.c (main): Update the Copyright year in the blurb printed
22665 by "emacs --version".
22667 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
22669 * xterm.c (XTread_socket): If XK_ISO_Lock and
22670 XK_ISO_Last_Group_Lock are defined, handle keysyms between
22671 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
22673 2002-03-21 Kim F. Storm <storm@cua.dk>
22675 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
22676 menu-bar bindings in keymap and local-map properties _are_ used.
22677 But try keymap property first in accordance with 2002-01-03 patch.
22678 Added comment describing why this is not always reliable.
22679 (tool_bar_items): Ditto for tool-bar.
22681 2002-03-21 Jason Rumney <jasonr@gnu.org>
22683 * w32fns.c (x_clear_image_1): Disable color table code.
22685 2002-03-21 Kim F. Storm <storm@cua.dk>
22687 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
22688 removed the wrong version of the DEFUN macro; fixed it.
22690 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
22691 Fmember rather than Fmemq).
22692 (Fprovide): Check that subfeatures is a list.
22694 * process.c (QCfeature, QCdatagram): Removed variables.
22695 (QCtype, Qdatagram): New variables.
22696 (network_process_featurep): Removed function.
22697 (Fmake_network_process): Removed :feature check.
22698 Use :type 'datagram instead of :datagram t to create a datagram
22699 socket. This allows us to add other connection types (e.g. raw
22700 sockets) later in a consistent manner.
22701 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
22702 supported subfeatures for feature make-network-process.
22703 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
22704 Intern and staticpro QCtype and Qdatagram.
22705 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
22707 * xfns.c (QCtype): Remove duplicate declaration and
22708 initialization (is now declared in process.c).
22710 * w32fns.c (QCtype): Remove duplicate declaration and
22711 initialization (is now declared in process.c).
22713 2002-03-21 Richard M. Stallman <rms@gnu.org>
22715 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
22716 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
22717 when jumping to `fail' to avoid undoing reg changes in the
22718 last iteration of the loop.
22719 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
22721 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
22722 Depend on process.h.
22724 2002-03-20 Jason Rumney <jasonr@gnu.org>
22726 Most of the following changes are still conditional on HAVE_IMAGES
22727 which is not set by default on Windows.
22729 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
22731 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
22732 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
22733 (four_corners_best, x_clear_image_1, x_clear_image)
22734 (x_alloc_image_color, postprocess_image)
22735 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
22736 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
22737 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
22739 * w32gui.h (struct XImage): Define.
22741 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
22742 extract mouse co-ordinates.
22744 2002-03-20 Jason Rumney <jasonr@gnu.org>
22746 * w32.c (init_winsock): Dynamically load new server and UDP
22748 (socket_to_fd): New function.
22749 (sys_socket): Use it.
22750 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
22751 (sys_recvfrom, sys_sendto): New wrapper functions.
22753 * process.c (QCfamily, QCfilter): Remove duplicate declaration
22754 and initialization.
22756 * makefile.w32-in (LIBS): Remove $(WSOCK32).
22758 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
22760 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
22761 Don't use "sun" as a variable, it's a predefined constant on Sun
22764 2002-03-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
22766 * bytecode.c (Fbyte_code): Revert last change.
22768 2002-03-19 Kim F. Storm <storm@cua.dk>
22770 * makefile.w32-in (LIBS): Add $(WSOCK32).
22771 From David Ponce <dponce@voila.fr>.
22773 2002-03-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
22775 * process.c (wait_reading_process_input): Move variables `pname'
22776 and `pnamelen' down where they are used.
22778 * bytecode.c (Fbyte_code): Discard unused computed value to
22779 prevent gcc warning.
22781 * lisp.h (Fplist_member): Add prototype.
22783 2002-03-18 Kim F. Storm <storm@cua.dk>
22785 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
22786 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
22788 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
22789 Remove explicit GNU_LINUX settings for datagram support.
22791 2002-03-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
22793 * process.c (Fmake_network_process): Remove unused variable `sa'.
22794 Doc fix. Add usage:.
22795 (set_socket_options): Remove unused variables `optnum' and `opttype'.
22797 2002-03-17 Richard M. Stallman <rms@gnu.org>
22799 * xdisp.c (cursor_type_changed): New variable.
22800 (redisplay_internal): Redisplay all windows if cursor_type_changed.
22801 Clear it when clearing windows_or_buffers_changed.
22802 (try_cursor_movement, redisplay_window, try_window_id)
22803 (try_window_reusing_current_matrix): Test cursor_type_changed
22804 along with windows_or_buffers_changed.
22806 * window.h (cursor_type_changed): New variable.
22808 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
22809 not update_mode_lines, and always set it to 1.
22811 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
22812 if no frames needed redrawing.
22814 2002-03-17 Kim F. Storm <storm@cua.dk>
22816 The following changes add support for network server processes,
22817 datagram connections, and local (unix) sockets.
22819 * process.h (struct Lisp_Process): New member log.
22820 Doc fix: Member command used to indicate stopped network process.
22821 Doc fix: Member childp contains plist for network process.
22822 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
22824 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
22825 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery, QCstop)
22826 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature): New
22828 (NETCONN1_P): New macro.
22829 (DATAGRAM_SOCKETS): New conditional symbol.
22830 (datagram_address): New array.
22831 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
22832 (status_message): Use concat3.
22833 (Fprocess_status): Add `listen' status to doc string. Return
22834 `stop' for a stopped network process.
22835 (Fset_process_buffer): Update contact plist for network process.
22836 (Fset_process_filter): Ditto. Don't enable input for stopped
22837 network processes. Server must listen, even if filter is t.
22838 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
22840 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
22841 (Fprocess_contact): Added KEY argument. Handle datagrams.
22842 (list_processes_1): Optionally show only processes with the query
22843 on exit flag set. Dynamically adjust column widths. Omit tty
22844 column if not needed. Report stopped network processes. Identify
22845 server and datagram network processes.
22846 (Flist_processes): New optional arg `query-only'.
22847 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
22848 (conv_lisp_to_sockaddr, set_socket_options)
22849 (network_process_featurep, unwind_request_sigio): New helper
22851 (Fprocess_datagram_address, Fset_process_datagram_address):
22852 (Fset_network_process_options): New lisp functions.
22853 (Fopen_network_stream): Removed. Now defined in simple.el.
22854 (Fmake_network_process): New lisp function. Code is based on
22855 previous Fopen_network_stream, but heavily reworked with new
22856 property list based argument list, support for datagrams, server
22857 processes, and local sockets in addition to old client-only
22859 (server_accept_connection): New function.
22860 (wait_reading_process_input): Use it to handle incoming connects.
22861 Do not enable input on a new connection if process is stopped.
22862 (read_process_output): Handle datagram sockets. Use 2k buffer for
22864 (send_process): Handle datagram sockets.
22865 (Fstop_process, Fcontinue_process): Apply to network processes. A
22866 stopped network process is indicated by setting command field to t.
22867 (Fprocess_send_eof): No-op if datagram connection.
22868 (Fstatus_notify): Don't read input for a stream server socket or a
22869 stopped network process.
22870 (init_process): Initialize datagram_address array.
22871 (syms_of_process): Intern and staticpro new variables, defsubr new
22874 2002-03-16 Jason Rumney <jasonr@gnu.org>
22876 * w32fns.c (w32_to_all_x_charsets): Return correct type in
22879 2002-03-16 Richard M. Stallman <rms@gnu.org>
22881 * xdisp.c (redisplay_internal, redisplay_windows):
22882 Use list_of_error to call internal_condition_case_1.
22883 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
22884 so as to catch all errors with no possibility of debugger redisplay.
22885 (list_of_error): New variable.
22886 (syms_of_xdisp): Init and staticpro it.
22888 * print.c (print_object): Delete `\ ' from printed rep of frame.
22890 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
22892 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
22893 until its implementation is fixed.
22895 2002-03-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
22897 * xfns.c (png_load): Remove unused variable `gamma_str'.
22899 2002-03-14 Richard M. Stallman <rms@gnu.org>
22901 * xfns.c (x_real_positions): Handle failure in XQueryTree.
22903 2002-03-14 Miles Bader <miles@gnu.org>
22905 * intervals.c (adjust_for_invis_intang): New function.
22906 (set_point_both): Use `adjust_for_invis_intang' to do most of the
22907 work for dealing with invisible+intangible regions. Do so before
22908 and after both forward and backward movements, to handle both
22909 front-sticky and rear-sticky cases.
22910 * textprop.c (text_property_stickiness): Function moved here from
22912 * intervals.h (text_property_stickiness): New declaration.
22913 * editfns.c (char_property_eq): Function removed.
22914 (text_property_stickiness): Function moved to `textprop.c'.
22916 2002-03-13 Jason Rumney <jasonr@gnu.org>
22918 * config.in: Add STRFTIME_NO_POSIX2.
22920 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
22921 and %OX when underlying strftime does not.
22923 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
22925 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
22926 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
22927 line) to avoid annoying flicker.
22928 (xm_scroll_callback): Get rid of the now unnecessary kludge.
22929 (XTread_socket): Mark it static.
22931 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
22933 2002-03-13 Kim F. Storm <storm@cua.dk>
22935 * puresize.h (BASE_PURESIZE): Increase to 775000.
22937 2002-03-12 Juanma Barranquero <lektu@terra.es>
22939 * editfns.c (syms_of_editfns): Fix typo.
22941 2002-03-12 Gerd Moellmann <gerd@gnu.org>
22943 * xsmfns.c: Include stdio.h because termhooks.h needs it.
22944 Include termopt.h for interrupt_input.
22946 2002-03-11 Andreas Schwab <schwab@suse.de>
22948 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
22950 2002-03-11 Gerd Moellmann <gerd@gnu.org>
22952 * xterm.c (note_mouse_movement): Put code for
22953 x_autoselect_window_p in #if 0.
22955 * lread.c (Fload): Don't assume that message_with_string uses the
22956 string it is given like a C string.
22958 2002-03-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
22960 * xterm.h (x_session_check_input, x_session_initialize): Declare.
22962 * xterm.c (XTread_socket): Add call to x_session_check_input and
22963 x_session_have_connection.
22964 (x_initialize): Add call to x_session_initialize.
22966 * termhooks.h (enum event_kind): Add save_session_event.
22968 * keyboard.c: Add Emacs event save_session_event.
22970 * emacs.c (main): Add call to syms_of_xsmfns.
22972 * lisp.h (syms_of_xsmfns): Declare extern.
22974 * config.in: Add HAVE_X_SM.
22976 * Makefile.in (LIBXT): Add -lSM -lICE
22977 if HAVE_X_SM and not USE_X_TOOLKIT.
22978 (XOBJ): New file xsmfns.c added.
22980 * xsmfns.c: New file for X session management.
22982 2002-03-09 Jason Rumney <jasonr@gnu.org>
22984 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
22985 read-only when setting modified time.
22987 2002-03-08 Gerd Moellmann <gerd@gnu.org>
22989 * xdisp.c (move_it_vertically_backward): At the end of the function,
22990 when moving forward by lines, treat terminal frames specially.
22992 * keyboard.c (echo_char): Make sure to add a separator between
22993 keys even if echo_dash hasn't been called.
22995 * xdisp.c: Use new string macros.
22996 (update_echo_area): Pass number of bytes to message3 instead of
22998 (set_message_1): Don't access a string's size_byte directly.
22999 (decode_mode_spec_coding): Use number of bytes of eoltype string
23000 instead number of chars.
23002 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
23004 2002-03-08 Juanma Barranquero <lektu@terra.es>
23006 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
23009 2002-03-06 Jason Rumney <jasonr@gnu.org>
23011 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
23013 2002-03-06 Gerd Moellmann <gerd@gnu.org>
23015 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
23016 (cancel_echoing, echo_length, echo_truncate): Changed to
23017 work with new kboard definition.
23018 (echo_now): Use message3_nolog instead of message2_nolog.
23020 * alloc.c (mark_kboards): Mark echo_string.
23022 * keyboard.h (ECHOBUFSIZE): Removed.
23023 (struct kboard): Member echoptr removed, member echobuf renamed
23026 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
23027 message3 instead of message2 to display the message using STRING's
23030 2002-03-05 Andreas Schwab <schwab@suse.de>
23032 * xdisp.c (hscroll_margin): Change to EMACS_INT.
23034 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
23036 * frame.c (default-frame-alist): Explain that setting it doesn't
23037 affect existing frames.
23039 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
23041 * indent.c (skip_invisible): Fix my brain fart.
23043 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
23045 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
23047 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
23048 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
23049 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
23050 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
23051 and variables to use EMACS_INT instead of just int.
23053 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
23055 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
23057 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
23058 environment, pass it down with corrected value.
23060 2002-03-04 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23062 * lread.c (read_filtered_event): Do not call start_hourglass
23065 2002-03-04 Juanma Barranquero <lektu@terra.es>
23067 * w32term.c (x_display_and_set_cursor): Fix typo.
23069 2002-03-03 Richard M. Stallman <rms@gnu.org>
23071 * fileio.c (Fmake_temp_name): Doc fix.
23073 2002-03-03 Gary Wong <gtw@gnu.org>
23075 * termcap.c [!emacs]: Replace ospeed for building standalone
23076 libtermcap, for binary compatibility.
23078 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
23080 2002-03-03 Richard M. Stallman <rms@gnu.org>
23082 * xrdb.c (file_p): Rename arg `path' to `filename'.
23084 * abbrev.c (Fexpand_abbrev): Increment plist as use count
23085 only if it is an integer.
23087 * xfns.c (png_load): Set screen_gamma based on f->gamma.
23088 If png_get_sRGB gives an answer, call png_set_gamma
23089 using the default image gamma value.
23091 * lread.c (read1): When reading from a file, default string to
23092 multibyte only if it has some multibyte characters.
23094 * print.c (print_object): Output multibyte chars 128...255
23095 using \x even if ! print_escape_multibyte.
23097 * xdisp.c (display_mode_element): Move the places where
23098 bytepos, charpos, this, and lisp_string are set.
23099 Use lisp_string to set bytepos.
23101 * xdisp.c (redisplay_internal):
23102 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
23104 * xdisp.c (display_mode_element): Merge properties specified with
23105 :propertize onto those that come with the string.
23107 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
23109 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
23110 automatic-hscrolling. Users changed.
23111 <hscroll-margin>: Renamed from automatic-hscroll-margin.
23113 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
23115 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
23117 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
23119 2002-03-02 Kim F. Storm <storm@cua.dk>
23121 * window.c (Fminibuffer_selected_window): New function.
23122 (syms_of_window): Defsubr it.
23124 2002-03-01 Kim F. Storm <storm@cua.dk>
23126 * window.h (struct window): New member phys_cursor_width.
23128 * window.c (make_window, replace_window): Init phys_cursor_width.
23130 * xterm.c (x_display_and_set_cursor): Blink box cursor using
23131 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
23133 * w32term.c (x_display_and_set_cursor): Blink box cursor using
23134 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
23136 * lisp.h (GCPRO6): New macro.
23138 * process.c (Fopen_network_stream): Use GCPRO6.
23140 2002-03-01 Kim F. Storm <storm@cua.dk>
23142 * process.c (Qconnect, Qfailed): New variables.
23143 (syms_of_process): Intern and staticpro them.
23144 (Fprocess_status): Document connect and failed return values.
23145 [NON_BLOCKING_CONNECT]: New conditional.
23146 (connect_wait_mask, num_pending_connects): New variables.
23147 (status_message): Convert Qfailed status.
23148 (Fopen_network_stream): Added support for non-blocking connect.
23149 New optional args: filter, sentinel, non_blocking. Doc updated.
23150 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
23151 (deactivate_process): Handle pending non-blocking connect.
23152 (wait_reading_process_input): Poll for status of non-blocking
23153 connects. Exec sentinel directly when connect succeeds.
23154 (status_notify): Don't read process output if not yet connected.
23156 2002-02-28 Kim F. Storm <storm@cua.dk>
23158 * window.c (minibuf_selected_window): Renamed from
23159 Vminibuf_selected_window. Users changed.
23160 (syms_of_window): Staticpro it.
23162 2002-02-26 Kim F. Storm <storm@cua.dk>
23164 The following changes add a new Vminibuf_selected_window variable
23165 which is similar to Vminibuf_scroll_window, but which is only set
23166 on entry to the minibuffer (from a non-minibuffer window):
23168 * window.c (Vminibuf_selected_window): New variable.
23169 (struct save_window_data): New member minibuf_selected_window.
23170 (Fset_window_configuration): Restore Vminibuf_selected_window.
23171 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
23172 Set minibuf_scroll_window member to nil if minibuf_level is 0.
23173 (compare_window_configurations): Compare minibuf_selected_window.
23175 * window.h (Vminibuf_selected_window): Declare extern.
23177 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
23178 entry to minibuffer or on entry from a non-minibuffer window.
23180 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
23181 Vminibuf_selected_window instead of Vminibuf_scroll_window.
23183 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
23184 instead of Vminibuf_scroll_window when deciding in which window
23185 the region should be highlighted. Consequently, the region remains
23186 highlighteded even when a completion buffer is also displayed.
23188 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
23190 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
23192 * xselect.c (Qcompound_text_with_extensions): Renamed from
23193 Qcompound_text_no_extensions.
23194 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
23196 2002-02-26 Juanma Barranquero <lektu@terra.es>
23198 * w32proc.c (syms_of_ntproc): Doc fix.
23200 2002-02-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23202 * intervals.h: Include "dispextern.h" unconditionally.
23204 2002-02-24 Jason Rumney <jasonr@gnu.org>
23206 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
23207 and disp-table.elc.
23208 (lisp): Add emacs-lisp/backquote.elc.
23210 2002-02-24 Kim F. Storm <storm@cua.dk>
23212 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
23213 The validation of the event type was too strict as it didn't
23214 allow string events; buffer names are used in bindings for
23215 menu-bar-select-buffer (see `menu-bar-update-buffers').
23217 2002-02-23 Kim F. Storm <storm@cua.dk>
23219 The following changes rework my patch of 2002-02-06 which
23220 added command remapping by entering the commands directly into
23221 the keymaps. Now, command remapping uses an explicit `remap'
23222 prefix in the keymaps, i.e. [remap COMMAND].
23224 * keymap.c (Qremap, remap_command_vector): New variables.
23225 (is_command_symbol): Remove function.
23226 (Fdefine_key): No longer accept a symbol for KEY.
23227 Added validation of [remap COMMAND] argument for KEY.
23228 The DEF is no longer required to be a symbol when remapping a command.
23229 (Fremap_command): New function to remap command through keymaps.
23230 (Flookup_key): Perform command remapping initiated by
23231 Fremap_command directly for speed.
23232 (Fkey_binding): Use Fremap_command for command remapping.
23233 (where_is_internal): Handle new command remapping representation.
23234 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
23235 staticpro them. Defsubr Fremap_command.
23237 * keymap.h (Fremap_command): Declare extern.
23238 (is_command_symbol): Remove extern.
23240 * keyboard.c (command_loop_1): Use Fremap_command for command
23241 remapping; now try command remapping for all symbols.
23243 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
23245 * coding.h (run_pre_post_conversion_on_str): Add prototype.
23247 2002-02-23 Jason Rumney <jasonr@gnu.org>
23249 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
23250 on the string before encoding it.
23251 (Fw32_get_clipboard_data): Run post-read-conversion on the string
23254 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
23256 2002-02-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23258 * w32term.c (enter_timestamp): Remove unused static variable to
23261 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
23263 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
23265 * w16select.c (Fw16_get_clipboard_data): Fix last change.
23267 * xselect.c (selection_data_to_lisp_data): Fix last change.
23269 2002-02-22 Jason Rumney <jasonr@gnu.org>
23271 * w32term.h (struct w32_output): New member menu_command_in_progress.
23273 * w32menu.c (menubar_selection_callback): Free the menu and
23274 clear the menu_command_in_progress flag.
23276 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
23277 (menu_free_timer): New variable.
23278 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
23279 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
23280 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
23281 menu command is in progress.
23282 <WM_COMMAND>: Set the menu_command_in_progress flag.
23283 Kill any menu_free_timer that is running.
23285 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
23286 Call ExtTextOutA rather than ExtTextOut.
23288 2002-02-22 Eli Zaretskii <eliz@gnu.org>
23290 * puresize.h (BASE_PURESIZE): Increase to 755000.
23292 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
23294 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
23295 on the string before encoding it.
23296 (Fw16_get_clipboard_data): Run post-read-conversion on the string
23299 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
23301 Support for ICCCM Extended Segments in X selections:
23303 * xselect.c <Qcompound_text_no_extensions>: New variable.
23304 (syms_of_xselect): Intern and staticpro it.
23305 (selection_data_to_lisp_data): Run post-read-conversion on decoded
23307 (lisp_data_to_selection_data): If next-selection-coding-system is
23308 compound-text-no-extensions, set the type of selection to be
23311 * xterm.h (x_encode_text): Update prototype.
23313 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
23314 callers changed. If SELECTIONP is non-zero, run the
23315 pre-write-conversion function before encoding the selection text.
23317 2002-02-21 Kim F. Storm <storm@cua.dk>
23319 * frame.c (syms_of_frame): Change mouse-highlight default to t.
23321 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
23322 Correct composing of language-change event.
23324 2002-02-20 Kim F. Storm <storm@cua.dk>
23326 * keyboard.c (menu_bar_items): Don't include keymap or local-map
23327 bindings at PT when building menu (the menu is not updated often
23328 enough for this to work reliable).
23329 (tool_bar_items): Likewise.
23330 (current_active_maps): Removed unused (and buggy) function.
23332 2002-02-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23334 * xfns.c (gif_load): Use correct width and height for GIF images.
23336 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
23338 * floatfns.c (Fatan): Accept an optional second arg and call
23339 atan2 if passed 2 args.
23341 2002-02-18 Jason Rumney <jasonr@gnu.org>
23343 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
23345 2002-02-17 Jason Rumney <jasonr@gnu.org>
23347 * w32term.c (x_autoselect_window_p): New variable.
23348 (syms_of_w32term): DEFVAR_BOOL and initialize it.
23349 (note_mouse_movement): Use it.
23351 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
23353 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
23355 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
23357 (syms_of_w32fns): Intern and staticpro them.
23358 (x_frame_parms) <"fullscreen">: New parameter.
23359 (x_fullscreen_move, x_set_fullscreen): New functions.
23360 (x_set_frame_parameters): Support Qfullscreen.
23361 (x_real_positions): Save x/y_pixels_diff frame params.
23362 (x_figure_window_size): Support full-screen frames.
23363 (Fx_create_frame): Default the fullscreen parameter.
23365 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
23366 (x_fullscreen_adjust): New functions.
23367 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
23368 fullscreen. Call x_check_fullscreen_move, and set the
23369 want_fullscreen member of output_data.w32
23370 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
23372 * w32term.h: New enum for FULLSCREEN_* constants.
23373 (struct w32_output): New members want_fullscreen, x_pixels_diff,
23374 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
23375 (x-fullscreen-adjust): New prototype.
23377 2002-02-17 Kim F. Storm <storm@cua.dk>
23379 * frame.c (Vmouse_highlight): New variable.
23380 (syms_of_frame): DEFVAR_LISP it.
23382 * frame.h (Vmouse_highlight): Declare extern.
23384 * xterm.h (struct x_display_info): Add mouse_face_hidden.
23386 * xterm.c (disable_mouse_highlight): Removed variable.
23387 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
23388 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
23389 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
23390 and on after keyboard input.
23391 (x_term_init): Initialize mouse_face_hidden.
23393 * msdos.h (struct display_info): Add mouse_face_hidden.
23395 * msdos.c (disable_mouse_highlight): Removed variable.
23396 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
23397 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
23398 (internal_terminal_init): Initialize mouse_face_hidden.
23399 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
23400 and on after keyboard input.
23402 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
23404 * w32term.c (disable_mouse_highlight): Removed variable.
23405 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
23406 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
23407 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
23408 and on after keyboard input.
23409 (w32_initialize_display_info): Initialize mouse_face_hidden.
23411 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
23413 * msdos.c (last_mouse_window): New variable.
23414 (dos_rawgetc): Fix last change--if the mouse is in the same window
23415 as recorded in last_mouse_window, don't select this window.
23417 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
23419 * msdos.c (x_autoselect_window_p): New variable.
23420 (syms_of_msdos): Defvar it.
23421 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
23422 which the last mouse movement occured, unless it is already selected.
23424 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
23426 (syms_of_xdisp): DEVFAR them.
23427 (hscroll_window_tree): Use automatic_hscroll_margin and
23428 Vautomatic_hscroll_step to compute the amount of window scrolling.
23430 2002-02-16 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23432 * xterm.c (x-autoselect-window): New variable.
23433 (note_mouse_movement): Use it.
23435 * keyboard.c: Do not include "systime.h" twice.
23437 2002-02-15 Andreas Schwab <schwab@suse.de>
23439 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
23441 * alloc.c (NSTATICS): Increase to 1280.
23443 2002-02-15 Kai Gro
\e,A_
\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
23445 * alloc.c (NSTATICS): Bump to 1026.
23447 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
23448 (Vx_super_keysym): New variables.
23449 (syms_of_xterm): DEFVAR_LISP them.
23450 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
23451 variables to determine which keys to use for the various modifiers.
23453 2002-02-13 Kim F. Storm <storm@cua.dk>
23455 * window.c (Vmode_line_in_non_selected_windows): Removed.
23456 (mode_line_in_non_selected_windows): New variable.
23457 (syms_of_window): DEFVAR_BOOL it.
23459 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
23460 Use mode_line_in_non_selected_windows.
23461 (mode_line_in_non_selected_windows): Declare extern.
23462 (Vmode_line_in_non_selected_windows): Removed extern.
23464 2002-02-13 Richard M. Stallman <rms@gnu.org>
23466 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
23467 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
23468 (Fclear_this_command_keys): Doc fixes.
23470 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
23471 (update_face_from_frame_parameter): Increment face_change_count
23472 and windows_or_buffers_changed to force redisplay using changed faces.
23474 * xdisp.c (QCpropertize): New variable.
23475 (mode_line_proptrans_alist): New variable.
23476 (display_mode_element): New arg PROPS; all calls changed.
23477 Implement this, for strings.
23478 Handle literal output of strings by sharing the
23479 main-line code for strings, using local var `literal'.
23480 Handle :propertize feature.
23481 (syms_of_xdisp): Initialze and staticpro QCpropertize and
23482 mode_line_proptrans_alist.
23484 2002-02-11 Kim F. Storm <storm@cua.dk>
23486 * window.c (Vmode_line_in_non_selected_windows): New variable.
23487 (syms_of_window): DEFVAR_LISP it.
23489 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
23490 (CURRENT_MODE_LINE_FACE_ID): Use it.
23491 (Vmode_line_in_non_selected_windows): Declare extern.
23493 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
23494 to get mode line face.
23496 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
23498 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
23499 variables; cus-start.el doesn't need them anymore.
23501 2002-02-09 Kim F. Storm <storm@cua.dk>
23503 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
23504 reduction. This fixes a display problem where stray newlines were
23505 inserted in the window (corrected by C-l). Clarified code (IMHO).
23507 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
23509 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
23511 * xdisp.c (display_mode_lines): Fix last change.
23513 2002-02-09 Jason Rumney <jasonr@gnu.org>
23515 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
23517 (w32_load_system_font): Prevent Cleartype fonts from loading.
23518 (Fx_show_tip): Ensure tip frames are above other topmost windows.
23520 2002-02-09 Kim F. Storm <storm@cua.dk>
23522 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
23523 (CURRENT_MODE_LINE_HEIGHT): Use it.
23524 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
23526 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
23527 (pos_visible_p, handle_face_prop): Likewise.
23528 (display_mode_lines): Likewise, but for the real selected window.
23529 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
23531 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
23532 in non-selected windows.
23533 (realize_basic_faces): Realize it.
23534 (syms_of_term): Intern and staticpro it.
23536 2002-02-08 Kim F. Storm <storm@cua.dk>
23538 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
23539 Changed mail addresses to emacs-devel@gnu.org.
23541 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
23543 * fileio.c (Fsubstitute_in_file_name): If the file name includes
23544 ~user, and there's no such user, don't discard everything before ~user.
23546 * floatfns.c (Fround): Doc fix.
23548 2002-02-08 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23550 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
23552 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
23554 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
23556 2002-02-07 Kim F. Storm <storm@cua.dk>
23558 * keymap.c (where_is_internal): Only check whether definition is
23559 remapped if it fulfills is_command_symbol.
23561 2002-02-07 Andreas Schwab <schwab@suse.de>
23563 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
23565 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
23567 2002-02-06 Kim F. Storm <storm@cua.dk>
23569 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
23570 defining command remapping. Doc updated.
23571 (Flookup_key): Remap command through keymap if KEY is a symbol.
23572 (is_command_symbol): New function.
23573 (Fkey_binding): Use it. New optional argument NO-REMAP.
23574 Doc updated. Callers changed. Perform command remapping via
23575 recursive call unless that arg is non-nil.
23576 (where_is_internal): New argument no_remap. Callers changed.
23577 Call recursively to find original key bindings for a remapped
23578 comand unless that arg is non-nil.
23579 (Fwhere_is_internal): New optional argument NO-REMAP.
23580 Doc updated. Callers changed. Pass arg to where_is_internal.
23582 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
23583 (is_command_symbol): Add prototype.
23585 * keyboard.c (Vthis_original_command): New variable.
23586 (syms_of_keyboard): DEFVAR_LISP it.
23587 (command_loop_1): Set it, and perform command remapping.
23589 2002-02-06 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23591 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
23593 2002-02-06 Jason Rumney <jasonr@gnu.org>
23595 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
23597 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
23599 * charset.c (get_charset_id): Use if-else instead of ?:.
23601 2002-02-06 Richard M. Stallman <rms@gnu.org>
23603 * filelock.c (S_ISLNK): Define if not defined.
23605 2002-02-03 Richard M. Stallman <rms@gnu.org>
23607 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
23609 * lread.c (read1): Redesign strategy for force_multibyte and
23610 force_singlebyte. Now is_multibyte records whether read_buffer
23611 is multibyte. Encountering any multibyte character makes it so.
23613 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
23615 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
23616 with the same sequence, map that sequence to f10 rather than f0.
23618 2002-02-03 Andreas Schwab <schwab@suse.de>
23620 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
23621 latter never being defined on GNU/Linux.
23623 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
23625 * xfaces.c (realize_default_face): Don't set the weight and slant of
23626 the default face to Qnormal, unless these attributes are unspecified.
23628 2002-02-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23630 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
23631 Call cancel_hourglass unconditionally.
23633 * eval.c (Fsignal): Remove duplicated declaration of
23634 the variable `display_hourglass_p'.
23636 2002-01-31 Richard M. Stallman <rms@gnu.org>
23638 * editfns.c (region_limit): Nicer error message.
23640 * coding.c (decode_composition_emacs_mule):
23641 Give up if NCOMPONENT gets too large to index `component'.
23643 * callint.c (check_mark): New arg to specify clearer error message.
23646 2002-01-27 Richard M. Stallman <rms@gnu.org>
23648 * minibuf.c (Fcompleting_read): Doc fix.
23650 2002-01-27 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23652 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
23653 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
23656 2002-01-26 Richard M. Stallman <rms@gnu.org>
23658 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
23660 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
23661 and scroll_up_aggressively.
23663 2002-01-26 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23665 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
23667 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
23669 * textprop.c (Fnext_property_change, Fnext_single_property_change)
23670 (Fprevious_property_change, Fprevious_single_property_change):
23671 Stay within the narrowed-buffer boundaries.
23673 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
23675 * term.c (Ftty_display_color_cells): New function.
23676 (syms_of_term): Defsubr it.
23677 (Ftty_display_color_cells, Ftty_display_color_p): Change the
23678 argument name to DISPLAY. Doc fix.
23680 * dispextern.h: Add prototype for set_tty_color_mode and
23683 2002-01-24 Jason Rumney <jasonr@gnu.org>
23685 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
23686 If region left to draw is not what was expected, mark the frame as
23689 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
23690 Combine the regions returned by BeginPaint and GetUpdateRect.
23692 2002-01-23 Jason Rumney <jasonr@gnu.org>
23694 * w32term.c (x_update_window_begin): Only hide caret if
23695 w32_use_visible_system_caret is set.
23696 (x_update_window_end): Only show caret if
23697 w32_use_visible_system_caret is set.
23698 (syms_of_w32term): Handle SystemParametersInfo call failing.
23700 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
23702 2002-01-22 Richard M. Stallman <rms@gnu.org>
23704 * unexelf.c (unexec): Define n so as to cause compilation error
23705 for the code where people have often written n instead of nn.
23707 * .gdbinit (hookpost-run): Defined.
23709 2002-01-22 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
23711 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
23713 2002-01-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
23715 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
23716 if fullscreen is being set.
23718 2002-01-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23720 * minibuf.c (Fminibuffer_contents)
23721 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
23722 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
23724 2002-01-21 Richard M. Stallman <rms@gnu.org>
23726 * window.c (check_frame_size): Fix minimum height calculation.
23728 2002-01-20 Ken Raeburn <raeburn@gnu.org>
23730 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
23731 height before comparison.
23732 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
23734 2002-01-20 Jason Rumney <jasonr@gnu.org>
23736 * w32term.c (w32_system_caret_width): Remove.
23737 (w32_use_visible_system_caret): New user flag.
23738 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
23739 Windows reports a screen reader running.
23740 (x_update_window_begin): Hide the system caret.
23741 (x_update_window_end): Show the system caret.
23742 (x_display_and_set_cursor): Don't draw a cursor when
23743 w32_use_visible_system_caret is set. Do not adjust width.
23745 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
23746 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
23747 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
23748 the user requests it. Use system default width when creating.
23749 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
23751 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
23752 New window messages.
23754 2002-01-20 Richard M. Stallman <rms@gnu.org>
23756 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
23758 2002-01-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23760 * doprnt.c (doprnt1): Fix typos in error call.
23762 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
23764 * unexelf.c (unexec) [__sgi]: Support the .got sections.
23766 2002-01-20 Jason Rumney <jasonr@gnu.org>
23768 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
23769 that Windows returns. If a double check fails, try to guess how
23770 ExtTextOut is going to act.
23772 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
23773 in place of stricmp.
23774 (w32_list_synthesized_fonts): Removed.
23775 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
23776 (struct enumfont_t): New element; list.
23777 (enum_font_cb2): List all style and charset variations of a font.
23778 (Fw32_select_font): New optional argument; include_proportional.
23779 Exclude vertical fonts. Exclude proportional fonts unless
23780 include_proportional is non-nil.
23781 (w32_enable_synthesized_fonts): Change to a boolean.
23782 (Fw32_send_sys_command): Doc fix.
23784 2002-01-19 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23786 * dispnew.c (update_frame): Move the variable `tem' to the block
23789 2002-01-19 Jason Rumney <jasonr@gnu.org>
23791 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
23792 call to face-set-after-frame-default.
23794 2002-01-18 Richard M. Stallman <rms@gnu.org>
23796 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
23797 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
23799 2002-01-17 Richard M. Stallman <rms@gnu.org>
23801 * window.c (enlarge_window): When exceeding size of parent,
23802 directly delete all the siblings instead of trying to resize it.
23804 2002-01-17 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23806 * term.c (set_tty_color_mode): Remove unused variable `tem'.
23808 2002-01-16 Henrik Enberg <henrik@enberg.org>
23810 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
23812 2002-01-16 Kim F. Storm <storm@cua.dk>
23814 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
23815 is invisible. This can happen if cursor is on top line of a
23816 window, and we switch to a buffer with a header line.
23818 * w32term.c (x_erase_phys_cursor): Ditto.
23820 2002-01-16 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23822 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
23823 `dont_resize' only when used.
23825 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
23827 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
23829 * xdisp.c (display_mode_element): When computing charpos, depend
23830 on multibyteness of elt, not the text in field.
23832 2002-01-15 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23834 * buffer.c (Fkill_all_local_variables):
23835 Increment `update_mode_lines' only once.
23837 2002-01-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23839 * lisp.h (adjust_after_replace_noundo)
23840 (Fupdate_coding_systems_internal): Add prototypes.
23842 * sound.c (Fplay_sound): Initialize header_size also for :data case.
23844 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
23846 Support for the --color command-line argument and tty-color-mode
23849 * term.c (tty_default_color_capabilities, tty_setup_colors)
23850 (set_tty_color_mode): New functions.
23851 (term_init): Call tty_default_color_capabilities.
23852 (Qtty_color_mode_alist): New variable.
23853 (syms_of_term): Intern and staticpro it.
23855 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
23857 (do_switch_frame): For termcap frames, switch the tty
23858 color mode as specified by the frame's parameters.
23859 (Qtty_color_mode): New variable.
23860 (syms_of_frame): Intern and staticpro it.
23862 * emacs.c (USAGE2): Add the --color option.
23863 (standard_args): Ditto.
23865 2002-01-13 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
23867 * xterm.h (struct x_output): New members want_fullscreen,
23868 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
23869 y_pixels_outer_diff.
23870 New enum for FULLSCREEN_* constants.
23871 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
23873 (x_fullscreen_adjust): Add prototype.
23875 * emacs.c (USAGE2): Add the new full-screen arguments.
23876 (standard_args): Ditto.
23878 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
23880 (syms_of_xfns): Intern and staticpro them.
23881 (x_frame_parms) <"fullscreen">: New parameter.
23882 (x_fullscreen_move, x_set_fullscreen): New functions.
23883 (x_set_frame_parameters): Support for Qfullscreen.
23884 (x_real_positions): More accurate computation of the frame position.
23885 (x_figure_window_size): Support full-screen frames.
23886 (Fx_create_frame): Default the fullscreen parameter.
23888 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
23889 (XTread_socket) <Expose>: Call x_check_fullscreen.
23890 <ConfigureNotify>: Don't resize to fullscreen.
23891 Call x_check_fullscreen_move, and set the want_fullscreen member of
23894 2002-01-13 Jason Rumney <jasonr@gnu.org>
23896 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
23897 for mice with more than 3 buttons.
23899 * w32term.c (parse_button): New parameter xbutton. Callers changed.
23900 (w32_read_socket): Handle new "XBUTTON" messages.
23902 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
23903 (syms_of_w32fns): DEFVAR_BOOL it.
23904 (w32_wnd_proc): Handle new "XBUTTON" messages.
23906 2002-01-13 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23908 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
23910 2002-01-13 Andreas Schwab <schwab@suse.de>
23912 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
23914 2002-01-12 Andreas Schwab <schwab@suse.de>
23916 * .gdbinit (xbuffer): Remove address operator since data is now a
23919 2002-01-11 Richard M. Stallman <rms@gnu.org>
23921 * insdel.c (adjust_after_replace_noundo): New function.
23923 * coding.c (code_convert_region): Don't copy old text if undo disabled.
23925 2002-01-09 Jason Rumney <jasonr@gnu.org>
23927 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
23928 when checking for multiple frames.
23930 2002-01-08 Richard M. Stallman <rms@gnu.org>
23932 * window.c (delete_window): Rewrite the code for changing the
23933 selected window to handle the case where WINDOW is not a leaf.
23935 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
23937 * process.c (send_process): Set src_multibyte to 1 after the call
23938 top setup_coding_system, not before the call.
23940 2002-01-07 Jason Rumney <jasonr@gnu.org>
23942 * xmenu.c (set_frame_menubar, xmenu_show):
23943 (xdialog_show): Initialize wv->help to Qnil.
23945 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
23946 (w32_dialog_show): Initialize wv->help to Qnil.
23948 2002-01-06 Jason Rumney <jasonr@gnu.org>
23950 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
23952 * w32menu.c (w32_menu_display_help): Revert last change.
23954 * xmenu.c (menu_highlight_callback): Revert last change.
23956 2002-01-06 Andreas Schwab <schwab@suse.de>
23958 * insdel.c (make_gap_larger): Make sure buffer size does not
23959 overflow range of int.
23961 2002-01-05 Jason Rumney <jasonr@gnu.org>
23963 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
23966 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
23968 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
23969 to the left or to the right of the pointer, put it against
23970 the left screen edge.
23971 (x_frame_parms): Add missing braces around initializer.
23973 * w32term.c (x_setup_relief_colors): Don't compute an image's
23974 background color if it doesn't have a Pixmap.
23975 (notice_overwritten_cursor): Don't depend on
23976 output_cursor and updated_area. Compare pixel coordinates with
23977 window's cursor pixel coordinates.
23978 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
23979 Call notice_overwritten_cursor with new arg list.
23980 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
23982 (x_draw_image_relief): Use predefined macro instead of
23983 constant when the value of `tool_bar_button_relief' is negative.
23985 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
23987 2002-01-04 Richard M. Stallman <rms@gnu.org>
23989 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
23991 2002-01-03 Richard M. Stallman <rms@gnu.org>
23993 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
23994 (Fkey_binding): Try the `keymap' property map first.
23995 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
23996 minor mode bindings.
23998 2002-01-03 Kim F. Storm <storm@cua.dk>
24000 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
24002 2002-01-02 Richard M. Stallman <rms@gnu.org>
24004 * keyboard.c (read_key_sequence): Handle the keymap property
24005 before minor mode maps.
24007 * editfns.c (Fformat): Update thissize from field_width
24008 based on the actual width, in the string case.
24010 2002-01-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24012 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
24013 when used as truth value to prevent gcc warnings.
24015 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
24016 * w32proc.c: Include <config.h>.
24018 2002-01-01 Andreas Schwab <schwab@suse.de>
24020 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
24021 not EMACS_INT, to make them compatible with DEFVAR_INT.
24022 * lisp.h (max_specpdl_size): Adjust declaration.
24024 2002-01-01 Richard M. Stallman <rms@gnu.org>
24026 * print.c (print_object): Test print_escape_nonascii only for
24028 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
24029 when outputting to a multibyte buffer.
24031 2001-12-29 Richard M. Stallman <rms@gnu.org>
24033 * print.c (print_object): In multibyte string, use hex escapes.
24034 Use octal only for unibyte strings.
24035 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
24037 * lread.c (read_escape): New arg BYTEREP for reporting whether
24038 escape forces unibyte or multibyte.
24039 (read1): When reading a string, take note of that info.
24041 2001-12-29 Ken Raeburn <raeburn@gnu.org>
24043 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
24044 comparison to test lisp value returned by Fget.
24046 2001-12-29 Richard M. Stallman <rms@gnu.org>
24048 * lisp.h (max_specpdl_size): Add declaration.
24050 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
24052 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
24053 Handle modifier bits. Correct typo in error message.
24055 2001-12-28 Richard M. Stallman <rms@gnu.org>
24057 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
24058 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
24059 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
24060 Update calls to Fdefine_abbrev.
24061 (write_abbrev): Update for changed data format.
24062 Don't list "system" abbrevs.
24063 (Fexpand_abbrev): Update use count with new data format.
24064 (describe_abbrev): Update for changed data format.
24065 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
24067 * config.in (HAVE_MBSINIT): Add #undef.
24069 * strftime.c (mbsinit): Define as no-op if not available.
24071 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
24072 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
24074 * keymap.c (Flookup_key): Error message if key has wrong data type.
24075 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
24076 (exclude_key): New variable.
24078 2001-12-28 Gerd Moellmann <gerd@gnu.org>
24080 * xterm.c (x_setup_relief_colors): Don't compute an image's
24081 background color if it doesn't have a Pixmap.
24083 * xterm.c (notice_overwritten_cursor): Don't depend on
24084 output_cursor and updated_area. Compare pixel coordinates with
24085 window's cursor pixel coordinates.
24086 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
24087 Call notice_overwritten_cursor with new arg list.
24088 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
24091 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
24092 height of the cursor line to the amount to scroll.
24094 2001-12-27 Richard M. Stallman <rms@gnu.org>
24096 * intervals.c (set_point_both): The position after an invisible,
24097 intangible character is not an acceptable stopping point.
24099 2001-12-27 Ken Raeburn <raeburn@gnu.org>
24101 * window.c (enlarge_window): In new preserve_before code, convert
24102 CURBEG from lisp object to integer before doing arithmetic.
24104 2001-12-27 Richard M. Stallman <rms@gnu.org>
24106 * bytecode.c (Fbyte_code): Undo previous change.
24108 2001-12-26 Kim F. Storm <storm@cua.dk>
24110 * keyboard.c (record_char): Ignore duplicate help-echo events only
24111 separated by mouse-movement. When tracking mouse, only record
24112 first and last mouse-movement event in same window.
24113 Don't record mouse-movement events in keyboard macros.
24115 2001-12-25 Richard M. Stallman <rms@gnu.org>
24117 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
24118 (Fenlarge_window): New arg PRESERVE_BEFORE.
24120 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
24121 instead of Fstring_as_unibyte.
24123 2001-12-22 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24125 The following changes remove mocklisp support:
24127 * mocklisp.h, mocklisp.c: Files removed.
24129 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
24130 `Qmocklisp' and `Qmocklisp_arguments'.
24131 Remove prototype of syms_of_mocklisp.
24133 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
24135 * callint.c: Do not include mocklisp.h.
24136 (Fcall_interactively): Do not test for mocklisp case.
24138 * eval.c: Remove variables `Qmocklisp_arguments',
24139 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
24140 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
24141 Do not test for mocklisp case.
24142 (Fwhile): Remove unused variable `tem'.
24143 (syms_of_eval): Remove variable `moclisp-arguments'.
24145 * data.c (wrong_type_argument): Remove mocklisp case.
24147 * doc.c (Fdocumentation): Remove mocklisp case.
24149 * emacs.c (main): Do not call syms_of_mocklisp.
24151 2001-12-21 Richard M. Stallman <rms@gnu.org>
24153 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
24154 to the left or to the right of the pointer, put it against
24155 the left screen edge.
24157 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
24159 * Makefile.in (distclean): Remove .gdbinit if we are building
24160 outside the source tree.
24162 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
24164 * w32.c (emacs_root_dir): New function.
24166 * msdos.c (emacs_root_dir): New function.
24168 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
24169 of the current drive as the fallback for default_directory.
24171 * dired.c (file_name_completion): Run the elements of
24172 completion-ignored-extensions through ENCODE_FILE.
24174 * lisp.h (scmp): Remove prototype, since it's now a static
24175 function private to dired.c.
24177 2001-12-18 Richard M. Stallman <rms@gnu.org>
24179 * dired.c (scmp): Function moved from minibuf.c.
24180 Delete multibyte handling--used only on encoded strings.
24182 * minibuf.c (scmp): Function moved to dired.c.
24184 * fns.c (merge): Add QUIT call.
24186 2001-12-18 Dave Love <fx@gnu.org>
24188 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
24189 language/georgian.el.
24191 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
24193 * Makefile.in (lisp, shortlisp): Synchronize with changes to
24194 lisp/Makefile.in:DONTCOMPILE.
24196 2001-12-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24198 * xdisp.c (window_box_height): Do not return negative values.
24199 From Gerd Moellmann <gerd@gnu.org>.
24201 * keyboard.c (head_table): Add missing braces around initializer.
24203 * term.c (keys): Likewise.
24205 * xfns.c (x_frame_parms, visual_classes): Likewise.
24207 2001-12-17 Sam Steingold <sds@gnu.org>
24209 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
24210 patch (COMPOSING_P, not COMPOSING).
24212 2001-12-17 Richard M. Stallman <rms@gnu.org>
24214 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
24216 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
24217 before calling decode_coding.
24219 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
24221 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
24222 instead of only for COMPOSITION_DISABLED.
24224 2001-12-16 Richard M. Stallman <rms@gnu.org>
24226 * alloc.c (pure_alloc): After overflow, allocate just a small block.
24228 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
24230 * buffer.h (struct buffer): New field `display_error_modiff'.
24231 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
24233 * window.c (Frecenter): Clear display_error_modiff field.
24235 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
24236 Call redisplay_window, but not if display_error_modiff field says no.
24237 (redisplay_window_error): New function.
24238 (displayed_buffer): New variable.
24239 (redisplay_internal, redisplay_windows): Call the new functions
24240 instead of redisplay_window directly.
24242 2001-12-15 Richard M. Stallman <rms@gnu.org>
24244 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
24246 2001-12-14 Andrew Innes <andrewi@gnu.org>
24248 * makefile.w32-in (EMACSLOADPATH): Define.
24249 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
24250 (bootstrap-temacs): Remove dependency on bootstrap-clean.
24252 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
24254 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
24255 parameter have a numeric value all the time.
24257 * w32fns.c (x_report_frame_params): Likewise.
24259 2001-12-12 Richard M. Stallman <rms@gnu.org>
24261 * fileio.c (Fwrite_region): Doc fix.
24263 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
24264 (redisplay_internal): Call clear_image_cache only for window terminals.
24266 2001-12-12 Gerd Moellmann <gerd@gnu.org>
24268 * xdisp.c (move_it_vertically_backward): Change heuristic
24269 for the case that we didn't move far enough initially.
24271 * window.c (Frecenter): Simplify computation in the case of window
24272 system frames and ARG < 0; use window_box_height.
24274 2001-12-11 Richard M. Stallman <rms@gnu.org>
24276 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
24277 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
24279 2001-12-11 Andrew Innes <andrewi@gnu.org>
24281 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
24284 2001-12-11 Richard M. Stallman <rms@gnu.org>
24286 * m/hp800.h: Split the __hpux conditional into the parts
24287 that are right for GNU/Linux too and the parts that are not.
24288 Use the former if GNU_LINUX.
24289 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
24291 * s/gnu-linux.h (GNU_LINUX): Defined.
24293 2001-12-11 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24295 * macros.c, msdos.c, w16select.c: Change doc-string comments to
24296 `new style' [w/`doc:' keyword].
24298 2001-12-10 Jason Rumney <jasonr@gnu.org>
24300 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
24303 2001-12-09 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24305 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
24308 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
24310 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
24312 * s/hpux10.h (srand48): Don't undefine.
24314 2001-12-09 Jason Rumney <jasonr@gnu.org>
24316 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
24317 Add comment to explain where the struct came from.
24318 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
24319 (add_menu_item): Process pop-up menus first to avoid memory leak.
24320 (add_menu_item, w32_menu_display_help): Use `help' field as
24322 (w32_free_submenu_strings): Only free owner-drawn strings.
24324 2001-12-09 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24326 * COPYING: Moved back.
24328 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
24329 Add parentheses around && within ||.
24331 * indent.c (compute_motion): Likewise.
24333 * intervals.c (merge_properties_sticky): Likewise.
24335 * coding.c (setup_coding_system, shrink_encoding_region)
24336 (Fdecode_sjis_char): Likewise.
24338 2001-12-07 Andreas Schwab <schwab@suse.de>
24340 * xdisp.c (display_mode_element): Don't read past end of string if
24343 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
24346 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
24347 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
24348 type changed to Lisp_Object.
24349 (syms_of_data): DEFVAR_LISP them.
24351 2001-12-07 Richard M. Stallman <rms@gnu.org>
24353 * callproc.c (init_callproc): Set Vdata_directory based on the source
24354 location whenever Emacs was run uninstalled.
24356 2001-12-06 Paul Eggert <eggert@twinsun.com>
24358 * config.in (HAVE_WORKING_VFORK): New #undefs.
24359 * process.c (create_process):
24360 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
24361 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
24362 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
24363 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
24364 * m/intel386.h (HAVE_VFORK): Likewise.
24365 * m/mips-siemens.h (HAVE_VFORK): Likewise.
24366 * m/mips.h (HAVE_VFORK): Likewise.
24367 * s/freebsd.h (vfork): Remove #define.
24368 * s/lynxos.h (HAVE_VFORK): Remove #undef.
24369 * s/usg5-4-2.h: Fix comment about vfork.
24371 2001-12-06 Richard M. Stallman <rms@gnu.org>
24373 * s/hpux10.h (random): Add undef.
24374 (HAVE_RANDOM): Define it just once.
24376 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
24378 * eval.c: Undo last change: the standard syntax is not wanted.
24380 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
24382 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
24383 scroll bars of the frame before deleting the frame itself. If the
24384 frame has a widget, delete the frame with XtDestroyWidget, and do
24385 not call XDestroyWindow before that.
24387 2001-12-06 Kim F. Storm <storm@cua.dk>
24389 * xfns.c (x_report_frame_params): Return actual fringe widths.
24391 * w32fns.c (x_report_frame_params): Return actual fringe widths.
24393 2001-12-05 Andrew Innes <andrewi@gnu.org>
24395 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
24398 * insdel.c (make_gap_larger): New function.
24399 (make_gap_smaller): New function.
24400 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
24401 Call make_gap_smaller if arg is negative.
24403 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
24405 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
24406 Pass a dummy argument when calling interrupt_signal.
24407 (parse_menu_item): Mark disabled items before checking for empty def.
24408 (read_char_minibuf_menu_prompt): Make safety more visible.
24409 (read_key_sequence): Add a `first_unbound' variable.
24410 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
24411 unbound prefix as soon as we can detect it.
24413 * doc.c (Fsnarf_documentation): Add prototype.
24414 (get_doc_string): Handle negative arguments.
24415 (Fdocumentation): Use AREF and ASIZE.
24416 Move the calls to get_doc_string to a single place.
24417 Don't confuse an interactive-spec for a docstring reference.
24418 (Fdocumentation_property): Take advantage of the fact that
24419 get_doc_string now ignores the sign of the docstring position.
24421 * eval.c: Use standard syntax for usage in docstrings.
24423 2001-12-03 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24425 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
24427 2001-12-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24429 * xterm.c (x_draw_image_relief): Use predefined macro instead of
24430 constant when the value of `tool_bar_button_relief' is negative.
24432 2001-12-02 Richard M. Stallman <rms@gnu.org>
24434 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
24435 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
24437 * fileio.c (read_non_regular): Delete Fsignal call.
24439 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
24441 * lisp.h (run_hook_list_with_args): Undo last change.
24443 2001-12-01 Gerd Moellmann <gerd@gnu.org>
24445 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
24447 2001-12-01 Jason Rumney <jasonr@gnu.org>
24449 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
24451 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
24452 [!WM_MOUSELEAVE]: Define.
24454 * w32menu.c (current_popup_menu, get_menu_item_info):
24455 (set_menu_item_info): New vars.
24456 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
24457 (w32_menu_show): Set current_popup_menu.
24458 (add_menu_item): Allocate new strings for owner-drawn menu items
24460 Use owner-draw for disabled menu items again.
24461 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
24462 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
24464 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
24465 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
24466 <WM_EXITMENULOOP>: Free menu strings.
24467 <WM_MOUSELEAVE>: Stop tracking mouse.
24468 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
24470 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
24473 2001-12-01 Kim F. Storm <storm@cua.dk>
24475 The following changes add left-fringe and right-fringe
24476 frame parameters to adjust fringe widths, or remove one or
24479 * frame.h (struct frame): Remove trunc_area_pixel_width and
24480 trunc_area_cols fields.
24481 (Qleft_fringe, Qright_fringe): Declare.
24482 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
24484 * frame.c (Qleft_fringe, Qright_fringe): New vars.
24485 (syms_of_frame): Initialize them.
24487 * window.c (coordinates_in_window): Handle separate left and right
24490 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
24491 and fringe_cols fields.
24492 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
24493 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
24494 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
24495 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
24496 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
24497 (x_compute_fringe_widths): Add prototype.
24499 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
24500 fill fringe evenly with small dashes.
24501 (x_draw_fringe_bitmap): Clear background if necessary. Align and
24502 clip the new ZV bitmap to avoid jitter between rows.
24503 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
24504 background. Don't draw fringe bitmaps if fringe width is zero.
24505 (x_compute_fringe_widths): New function.
24506 (x_new_font, x_set_window_size_1): Use it.
24508 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
24509 (x_set_frame_parameters): Process `font' parameter before other
24510 parameters as fringe widths depend on it.
24511 (x_set_fringe_width): New function.
24512 (x_figure_window_size): Use x_compute_fringe_widths.
24513 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
24516 * widget.c (set_frame_size): Use x_compute_fringe_widths.
24517 (EmacsFrameSetCharSize): Ditto.
24519 * w32term.h: Merged changes from xterm.h.
24520 * w32term.c: Merged changes from xterm.c.
24521 * w32fns.c: Merged changes from xfns.c.
24523 2001-11-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24525 * COPYING: Removed.
24527 2001-11-29 Dave Love <fx@gnu.org>
24529 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
24531 (detect_coding_mask): Fix call of detect_coding_iso2022.
24533 2001-11-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24535 * fileio.c (file-name-coding-system)
24536 (default-file-name-coding-system): Doc fix (links to referenced
24539 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
24541 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
24542 Add dummy uses of gcproN variables.
24544 * category.c (describe_category, describe_category_1)
24545 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
24546 (syms_of_category): Don't defsubr Sdescribe_categories.
24548 2001-11-28 Richard M. Stallman <rms@gnu.org>
24550 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
24552 * Makefile.in (lispdir): New variable, referring to build dir.
24553 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
24555 2001-11-28 Andrew Innes <andrewi@gnu.org>
24557 * w32menu.c (w32_menu_display_help): Actually add the new argument
24560 2001-11-28 Jason Rumney <jasonr@gnu.org>
24562 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
24563 menu items. From David Ponce <dponce@wanadoo.fr>.
24564 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
24566 (w32_menu_display_help): New argument OWNER. Rewritten to store a
24567 help event in the owner frame's keyboard buffer.
24569 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
24570 (Fx_show_tip): Don't subtract last width from row width.
24572 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
24573 (w32_read_socket): Use EQ to compare frames.
24575 2001-11-28 Gerd Moellmann <gerd@gnu.org>
24577 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
24580 2001-11-28 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24582 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
24583 `gcpro3' and `gcpro4'.
24585 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
24587 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
24589 * ccl.c: Use AREF and ASIZE.
24591 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
24593 * lisp.h (run_hook_list_with_args): Remove.
24594 (LIST_END_P): Fix call to wrong_type_argument.
24595 (make_fixnum_or_float): Use EMACS_INT rather than int.
24597 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
24599 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
24600 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
24602 * eval.c: Use AREF and ASIZE.
24603 (Ffetch_bytecode): Add the file name to the error message.
24605 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
24606 which match the end of the file-name.
24607 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
24608 is not a valid env var, but leave it as is instead.
24610 * keymap.c (access_keymap): Handle t bindings like nil bindings.
24611 Make nil bindings in char-tables transparent.
24612 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
24614 2001-11-26 Richard M. Stallman <rms@gnu.org>
24616 * textprop.c (set_text_properties_1): Allow START, END in either order.
24617 Do nothing if range is empty.
24619 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
24621 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
24624 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
24626 * textprop.c (set_text_properties_1): Clearly mark that the
24627 interval should not be empty.
24629 * intervals.c (graft_intervals_into_buffer):
24630 Don't call set_text_properties_1 on an empty interval.
24632 2001-11-25 Richard M. Stallman <rms@gnu.org>
24634 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
24636 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
24637 don't lose the data in it.
24639 2001-11-25 Juanma Barranquero <lektu@terra.es>
24641 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
24643 * buffer.c (Fkill_buffer): Likewise.
24645 * print.c (temp_output_buffer_setup): Likewise.
24647 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
24649 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
24651 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
24653 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
24654 Niemitalo <kon@iki.fi>.
24656 2001-11-25 Jason Rumney <jasonr@gnu.org>
24658 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
24660 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
24661 (Fx_show_tip): Block input during frame creation.
24662 (Fx_show_tip, Fx_hide_tip): Enable.
24664 2001-11-24 Richard M. Stallman <rms@gnu.org>
24666 * lread.c (Fload): Detect recursive load error for more than 3
24667 nestings of the same file.
24668 (Vrecursive_load_depth_limit): Variable deleted.
24669 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
24671 2001-11-24 Jason Rumney <jasonr@gnu.org>
24673 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
24674 mouse position if either left or top is not specified.
24676 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
24677 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
24678 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
24679 (my_create_tip_window): Assign tip_window.
24680 (x_create_tip_frame): Use same defaults as X.
24681 (compute_tip_xy): Remove unused variable. Use full screen width.
24682 (Fx_show_tip): Do not double height. Call ShowWindow directly.
24684 * w32term.c (x_after_update_window_line): Doc fix.
24685 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
24687 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
24689 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
24690 for all Windowed systems.
24692 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
24694 * msdos.c (IT_clear_screen): If the frame's faces are not yet
24695 realized, use the initial screen colors to clear the screen.
24697 2001-11-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24699 * textprop.c (Fset_text_properties): Remove unused variables
24700 `unchanged', `prev_changed', `s' and `len'.
24702 * search.c (Freplace_match): Remove unused variable `inslen'.
24704 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
24706 2001-11-22 Jason Rumney <jasonr@gnu.org>
24708 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
24709 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
24710 (my_create_tip_window): New function.
24711 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
24712 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
24714 2001-11-20 Jason Rumney <jasonr@gnu.org>
24716 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
24717 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
24719 * w32fns.c (Vw32_system_coding_system): Remove.
24720 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
24722 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
24724 * fileio.c (Fwrite_region): Move choose_write_coding_system to
24725 after build_annotations.
24727 * syntax.c (describe_syntax): Add dummy arg.
24728 (describe_syntax_1): Update call to describe_vector.
24730 * category.c (describe_category): Add dummy arg.
24731 (describe_category_1): Update call to describe_vector.
24733 * keymap.c (Fdescribe_vector): Add `describer' parameter.
24734 (describe_command, describe_translation): Add dummy second param.
24735 (describe_map): Call elt_describer with two arguments.
24736 (describe_vector_princ): Add `fun' parameter.
24737 Call it instead of the hardcoded `princ'.
24738 (describe_vector): Add arg `args'.
24739 Pass it as a new second argument to elt_describer.
24741 * keymap.h (describe_vector): Update prototype.
24743 * frame.c: Don't include keymap.h any more.
24744 (keys_of_frame): Remove.
24746 * lisp.h (keys_of_frame): Remove declaration.
24748 * emacs.c (main): Don't call `keys_of_frame' any more.
24750 2001-11-14 Andreas Schwab <schwab@suse.de>
24752 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
24753 if defined, 0 otherwise.
24754 (MAP_FAILED): Define if not defined and use it to test mmap failure.
24755 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
24757 2001-11-19 Richard M. Stallman <rms@gnu.org>
24759 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
24761 2001-11-18 Jason Rumney <jasonr@gnu.org>
24763 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
24764 (x_draw_bar_cursor): If the background color of the glyph under
24765 the cursor equals the frame's cursor color, use the glyph's
24766 foreground color for drawing the bar cursor.
24767 (x_after_update_window_line): Clear internal border in different
24769 (w32_set_vertical_scroll_bar): Check for width and height > 0.
24770 (w32_draw_relief_rect): Correct relief by 1 pixel.
24771 (x_set_glyph_string_background_width):
24772 Set extends_to_end_of_line_p if the row's fill_line_p is set and
24773 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
24774 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
24775 if cursor_in_non_selected_windows is false.
24776 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
24777 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
24778 Notice if cursor gets overwritten.
24779 (notice_overwritten_cursor): Renamed from
24780 note_overwritten_text_cursor. Rewritten to take glyph widths
24781 into account, and to take X positions as parameters.
24782 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
24783 around call to x_draw_glyphs.
24784 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
24785 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
24786 color to use for image glyph reliefs.
24787 (x_draw_image_relief): Accept zero tool_bar_button_relief.
24788 (glyph_rect): Remove unused variable `area'.
24790 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
24792 (x_set_internal_border_width): Set frame garbaged when window
24794 (Fx_create_frame): Accept zero tool_bar_button_relief.
24795 (x_clear_image_1, four_corners_best, image_background)
24796 (image_background_transparent): New functions.
24797 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
24798 (gs_format): Add `:background' entry.
24799 (lookup_image): Set IMG's background color if specified.
24800 (pbm_load, xbm_load_image, png_load): Set IMG's background field
24802 (x_clear_image_1): Reset `background_valid' and
24803 `background_transparent_valid' fields.
24804 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
24805 calculating it here. Set IMG's background_transparent field.
24806 (enum xpm_keyword_index): Add XPM_BACKGROUND.
24807 (enum png_keyword_index): Add PNG_BACKGROUND.
24808 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
24809 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
24810 (enum gif_keyword_index): Add GIF_BACKGROUND.
24811 (enum gs_keyword_index): Add GS_BACKGROUND.
24812 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
24813 Pre-calculate image background color where necessary.
24814 (x_create_x_image_and_pixmap, xbm_load, gs_load):
24815 Use display info's n_cbits entry for screen depth.
24816 (Fx_show_tip): Remove unused variables `buffer', `top',
24817 `left', `max_width' and `max_height'.
24819 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
24821 2001-11-18 Gerd Moellmann <gerd@gnu.org>
24823 * puresize.h (BASE_PURESIZE): Increase to 750000.
24825 2001-11-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24827 * frame.c (Fframe_live_p): Doc fix.
24829 2001-11-18 Richard M. Stallman <rms@gnu.org>
24831 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
24832 (message_dolog_marker3): New static variables hold three markers.
24833 (syms_of_xdisp): Initialize and staticpro them.
24834 (message_dolog): Use message_dolog_marker1..3 instead of
24835 allocating markers each time. Unchain them when done.
24837 2001-11-17 Richard M. Stallman <rms@gnu.org>
24839 * doc.c (Fsnarf_documentation): Doc fix.
24841 2001-11-17 Andreas Schwab <schwab@suse.de>
24843 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
24845 2001-11-17 Richard M. Stallman <rms@gnu.org>
24847 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
24849 2001-11-17 Jason Rumney <jasonr@gnu.org>
24851 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
24853 2001-11-17 Gerd Moellmann <gerd@gnu.org>
24855 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
24856 with invalid position.
24858 2001-11-16 Richard M. Stallman <rms@gnu.org>
24860 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
24862 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
24863 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
24864 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
24866 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
24868 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
24870 * fileio.c (build_annotations): Split off the tail.
24871 (build_annotations_2): New fun. Extracted from build_annotations.
24872 (Fwrite_region): Split the call to build_annotations into two
24873 calls to build_annotations and build_annotations_2.
24875 2001-11-16 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24877 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
24878 clear_waiting_for_input with argument.
24880 * xterm.h (x_update_cursor): Remove duplicated prototype.
24882 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
24884 * xterm.c (waiting_for_input): Remove unnecessary declaration.
24886 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
24888 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
24890 * fileio.c (choose_write_coding_system): New fun, extracted
24891 from Fwrite_region.
24892 (Fwrite_region): Use it.
24894 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
24895 (funcall_lambda, run_hook_with_args): Make static and add prototype.
24896 (ml_apply, find_handler_clause): Add prototype.
24898 2001-11-16 Eli Zaretskii <eliz@gnu.org>
24900 * config.in: Add #undef HAVE_COFF_H.
24902 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
24903 Required for ISC 4.1.
24905 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
24907 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
24908 Andrew Wiseman <a.wiseman@btclick.com>.
24910 2001-11-16 Kim F. Storm <storm@cua.dk>
24912 The following changes are made to clean up the various internal
24913 references to the fringes to actually use the term `fringe' for
24914 them. Previously, they were called `flags areas', `bitmap areas',
24915 `left/right side of windows', or implicitly as `flags' or
24918 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
24919 Comments fixed. Use renamed symbols.
24921 * dispnew.c: Comment fix. Use renamed symbols.
24923 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
24924 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
24925 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
24927 * msdos.c: Comment fix.
24929 * w32fns.c: Use renamed symbols.
24931 * w32term.c: Comment fixes. Use renamed symbols.
24932 (fringe_bitmap_type): Renamed from bitmap_type.
24933 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
24934 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
24935 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
24937 * w32term.h: Comment fixes. Use renamed symbols.
24938 (fringes_extra): Renamed from flags_areas_extra.
24939 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
24940 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
24941 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
24942 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
24943 (FRAME_X_LEFT_FRINGE_WIDTH):
24944 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
24945 (FRAME_X_RIGHT_FRINGE_WIDTH):
24946 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
24948 * widget.c: Use renamed symbols.
24950 * window.c: Comment fixes. Use renamed symbols.
24951 (coordinates-in-window-p): Doc fix.
24953 * xdisp.c: Comment fixes. Use renamed symbols.
24955 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
24957 * xfns.c: Use renamed symbols.
24959 * xterm.c: Comment fixes. Use renamed symbols.
24960 (fringe_bitmap_type): Renamed from bitmap_type.
24961 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
24962 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
24963 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
24965 * xterm.h: Comment fixes. Use renamed symbols.
24966 (fringes_extra): Renamed from flags_areas_extra.
24967 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
24968 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
24969 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
24970 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
24971 (FRAME_X_LEFT_FRINGE_WIDTH):
24972 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
24973 (FRAME_X_RIGHT_FRINGE_WIDTH):
24974 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
24976 2001-11-15 Jason Rumney <jasonr@gnu.org>
24978 * w32menu.c (add-menu-item): Make help_echo and radio buttons
24979 work for most menu items. From David Ponce
24980 <david.ponce@wanadoo.fr>.
24982 2001-11-15 Gerd Moellmann <gerd@gnu.org>
24984 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
24985 Some x_set_* function expect to be called even if old and new
24988 * xdisp.c (build_desired_tool_bar_string): Accept zero
24989 tool_bar_button_relief.
24991 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
24993 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
24995 * xterm.c (x_draw_bar_cursor): If the background color of the
24996 glyph under the cursor equals the frame's cursor color, use
24997 the glyph's foreground color for drawing the bar cursor.
24999 * dispnew.c (direct_output_forward_char): Fix character/byte
25000 position comparison.
25002 2001-11-15 Miles Bader <miles@gnu.org>
25004 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
25005 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
25006 Update arguments to find_field.
25007 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
25008 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
25009 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
25010 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
25012 2001-11-14 Richard M. Stallman <rms@gnu.org>
25014 * editfns.c (Fpropertize): Allow call with 1 arg.
25016 * dispextern.h (image_background, image_background_transparent):
25017 Conditionalize on HAVE_X_WINDOWS.
25019 2001-11-13 Richard M. Stallman <rms@gnu.org>
25021 * print.c (Fprin1_to_string): Doc fix.
25023 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
25025 * floatfns.c (Fceiling, Ffloor): Doc fixes.
25027 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
25029 * fileio.c (Ffile_accessible_directory_p): Doc fix.
25031 * eval.c (syms_of_eval): Doc fix.
25033 * coding.c (syms_of_coding): Doc fix.
25035 * doc.c (Fsnarf_documentation): Doc fix.
25037 * dispnew.c (syms_of_display): Doc fix.
25039 * category.c (Fget_unused_category): Doc fix.
25041 * buffer.c (syms_of_buffer): Doc fixes.
25043 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
25045 * print.c (prin1, print): Doc fix.
25047 2001-11-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25049 * fontset.h: Remove declarations of variables
25050 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
25052 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
25053 `Vclip_large_size_font'.
25055 2001-11-13 Jason Rumney <jasonr@gnu.org>
25057 * w32fns.c: Doc fix.
25059 2001-11-13 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25061 * xfaces.c (Fface_attributes_as_vector): Doc fix.
25065 * emacs.c: Doc fix.
25067 * coding.c: Doc fix.
25069 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
25070 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
25071 `new style' [w/`doc:' keyword].
25073 2001-11-12 Richard M. Stallman <rms@gnu.org>
25075 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
25076 LeaveNotify events. Only FocusIn and FocusOut do that now.
25077 (x_display_and_set_cursor): Do display hollow cursors in active
25078 minibuffer windows when they are not selected.
25080 2001-11-12 Jason Rumney <jasonr@gnu.org>
25082 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
25083 * w32term.c: Change doc-string comments to `new style'
25084 [w/`doc:' keyword]. Doc fixes.
25086 * w32fns.c: Don't define max.
25087 (Fx_open_connection): Only execute once.
25089 2001-11-12 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25091 * ccl.c: Change macros to use do-while block instead of if-else.
25092 Use braces to follow GNU Coding Standards.
25094 2001-11-11 Richard M. Stallman <rms@gnu.org>
25096 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
25098 * lread.c (read_escape): Use end_of_file_error for reporting eof.
25100 * insdel.c (replace_range): Use adjust_markers_for_replace
25101 instead of adjust_markers_for_delete and adjust_markers_for_insert.
25103 * intervals.h (set_text_properties, set_text_properties_1): Declare.
25105 * textprop.c (set_text_properties_1): New subroutine
25106 broken out of set_text_properties.
25107 (set_text_properties): Use set_text_properties_1.
25109 * intervals.c (graft_intervals_into_buffer):
25110 Use set_text_properties_1 to clear out properties.
25112 * search.c (Freplace_match): Use replace_range to insert
25113 and delete. Don't request property inheritance from
25116 2001-11-10 Jason Rumney <jasonr@gnu.org>
25118 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
25119 vertical fonts. Allow them if face name is explicitly specified.
25120 Do not give up if we find a font that cannot be converted to an xlfd.
25122 2001-11-10 Gerd Moellmann <gerd@gnu.org>
25124 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
25125 instead of malloc/free.
25127 2001-11-09 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25129 * xfaces.c (merge_face_vectors): Use braces to follow GNU
25131 (Finternal_set_lisp_face_attribute): Likewise.
25133 * buffer.c (Fbury_buffer): Likewise.
25135 * indent.c (current_column_1): Remove unused variable `prev_col'.
25137 * coding.c (encode_coding): Use precomputed value of `src'.
25138 (encode_coding): Remove unused variable `src_end'.
25139 (code_convert_region): Remove unused variables `count'.
25141 2001-11-07 Jason Rumney <jasonr@gnu.org>
25143 * w32term.c (x_display_and_set_cursor): Do not move system caret
25144 if cursor_glyph is NULL.
25146 2001-11-07 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25148 * keymap.c (access_keymap): Fix compilation error.
25150 2001-11-07 Miles Bader <miles@gnu.org>
25152 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
25154 2001-11-07 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25156 * intervals.c (graft_intervals_into_buffer):
25157 Remove #ifdef'd-out code.
25158 (graft_intervals_into_buffer): Remove unused variable `middle'.
25160 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
25161 code (eval-current-buffer).
25162 Change doc-string comments to `new style' [w/`doc:' keyword].
25164 2001-11-06 Richard M. Stallman <rms@gnu.org>
25166 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
25168 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
25170 * lread.c (read1): Fix behavior with nested backquoting.
25172 * keyboard.c (make_lispy_event): Check integerness and fix
25173 Lisp_Object/int mixup.
25175 2001-11-06 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25177 * fns.c (copy_hash_table): Remove unused variable `v'.
25179 * fontset.c (fontset_font_pattern): Remove unused variable
25182 * indent.c (current_column_1): Remove unused variable `prev_col'.
25184 2001-11-05 Richard M. Stallman <rms@gnu.org>
25186 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
25188 * buffer.c (Fkill_buffer): Don't delete auto save file
25189 if buffer is modified.
25191 2001-11-05 Andrew Innes <andrewi@gnu.org>
25193 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
25196 2001-11-05 Richard M. Stallman <rms@gnu.org>
25198 * unexelf.c (unexec): Minor changes; clean up comments.
25200 2001-11-05 Sam Steingold <sds@gnu.org>
25202 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
25204 2001-11-05 Andreas Schwab <schwab@suse.de>
25206 * sound.c (sound_perror): Save errno from being clobbered.
25208 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
25210 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
25211 the program image directly.
25213 2001-11-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25215 * buffer.h (Fbuffer_local_value): Add prototype.
25217 2001-11-04 Richard M. Stallman <rms@gnu.org>
25219 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
25222 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
25223 (record_char): Likewise.
25225 * keyboard.c (make_lispy_event): Don't insist a drag event must
25226 move to a different buffer position. Instead, check for moving at
25227 least double_click_fuzz.
25229 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
25231 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
25233 * indent.c (current_column_1, Fmove_to_column): Separate the code
25234 for display-table glyphs from the code for buffer text, to fix
25235 bugs in the former.
25237 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
25239 * buffer.c (Fbuffer_local_value): New function.
25240 (syms_of_buffer): Defsubr it.
25242 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
25243 value of `cursor-in-non-selected-windows'.
25245 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
25246 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
25247 (syms_of_xdisp): Initialize it.
25249 2001-11-04 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25251 * xfns.c (Fx_create_frame): Doc fix.
25253 * coding.c: Change doc-string comments to `new style' [w/`doc:'
25256 * eval.c (top_level_value, top_level_set): Remove commented and
25258 (Fdefvar): Fix usage in doc-string.
25260 2001-11-03 Richard M. Stallman <rms@gnu.org>
25262 * xfns.c: Include unistd.h, if it exists.
25264 * editfns.c: Move the include of ctype.h after unistd.h.
25266 * gmalloc.c: Test BROKEN_PROTOTYPES.
25268 2001-11-03 Ken Raeburn <raeburn@gnu.org>
25270 * lisp.h (CHECK_STRING_CAR): New macro.
25271 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
25272 treating XCAR and XCDR as lvalues.
25273 (openp): Use CHECK_STRING_CAR.
25274 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
25276 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
25278 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
25279 (SIGMASKTYPE): Define.
25281 * syssignal.h (sigunblock): Don't define if already defined.
25283 2001-11-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25285 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
25286 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
25287 Fix typos in comments.
25289 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
25290 and #ifdef'd-out code.
25291 Fix and reindent comments.
25293 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
25295 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
25296 argument `i' in macros.
25298 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
25301 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
25302 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
25303 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
25304 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
25305 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
25306 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
25307 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
25308 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
25311 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
25312 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
25313 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
25314 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
25315 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
25316 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
25317 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
25318 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
25319 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
25320 (remove unused second argument).
25322 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
25324 * syntax.c (describe_syntax): New wrapper.
25325 (Finternal_describe_syntax_value): Rename from describe_syntax.
25326 Don't insert space at front and \n at the end.
25327 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
25329 * regex.c (re_wctype): Try to fix some warnings.
25330 (regcomp, regexec): Don't forget the __restrict.
25332 2001-11-02 Richard M. Stallman <rms@gnu.org>
25334 * textprop.c (Fget_char_property): Doc fix.
25336 2001-11-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25338 * process.c (Fstart_process): Add usage to doc-string.
25340 * data.c (Fsetq_default): Ditto.
25342 * callint.c (Finteractive): Ditto.
25344 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
25346 * macros.c: Don't include keymap.h any more.
25348 2001-11-01 Richard M. Stallman <rms@gnu.org>
25350 * data.c (Fmake_local_variable): Doc fix.
25352 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
25353 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
25355 * keymap.c (Fdescribe_buffer_bindings): Print character property
25356 bindings along with or instead of the buffer local map.
25357 Make the overriding maps override what they should.
25359 2001-11-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25361 * window.c (grow_mini_window): Fix typo in comment.
25363 2001-11-01 Gerd Moellmann <gerd@gnu.org>
25365 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
25366 (XTset_vertical_scroll_bar): Likewise.
25368 * xfns.c (x_build_heuristic_mask): Use four_corners_best
25369 instead of IMAGE_BACKGROUND.
25371 * xfns.c (four_corners_best): Reindent.
25373 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
25374 Handle :box so that it is possible to specify sexprs.
25376 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
25378 * s/hpux11.h: New file.
25380 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25382 * emacs.c (USAGE1): Show command line option --no-window-system
25383 instead of --no-windows in usage.
25384 (standard_args): Rename --no-windows to --no-window-system.
25385 (bug_reporting_address): Follow Emacs coding conventions.
25387 * eval.c (Fcommandp): Doc fix.
25388 Change doc-string comments to `new style' [w/`doc:' keyword].
25390 * frame.c (Fframe_live_p): Doc fix.
25392 * buffer.c (selective-display-ellipses): Doc fix.
25394 2001-10-31 Gerd Moellmann <gerd@gnu.org>
25396 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
25398 * xfaces.c (realize_x_face): If C is not a single-byte character,
25399 set the face's colors_copied_bitwise_p instead of the defaulted_p
25400 members which have a different meaning.
25401 (free_face_colors): Do nothing for a face whose colors have been
25404 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
25406 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25408 * marker.c, mocklisp.c: Change doc-string comments to `new style'
25409 [w/`doc:' keyword].
25411 2001-10-31 Gerd Moellmann <gerd@gnu.org>
25413 * fns.c (require_unwind): Return Lisp_Object.
25415 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25417 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
25418 (last-input-char): Revert doc-string to be the same as the
25419 doc-string of `last-input-event'.
25421 * xdisp.c: Fix typos in comments.
25423 2001-10-31 Gerd Moellmann <gerd@gnu.org>
25425 * window.c (grow_mini_window): Handle case that the root
25426 window is already smaller than the nominal mininum height.
25428 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
25430 * emacs.c (main): Don't call keys_of_macros any more.
25432 * lisp.h (keys_of_macros): Remove.
25434 * macros.c (keys_of_macros): Remove.
25436 * xfaces.c (Fface_attribute_relative_p): Declare args.
25438 2001-10-30 Jason Rumney <jasonr@gnu.org>
25440 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
25441 (enum_font_cb2): Ignore fonts with vertical orientation.
25443 2001-10-30 Richard M. Stallman <rms@gnu.org>
25445 * keyboard.c (Finput_pending_p): Doc fix.
25447 2001-10-30 Gerd Moellmann <gerd@gnu.org>
25449 * xterm.c (x_after_update_window_line): Don't run the code
25450 clearing in borders for rows whose visible height is 0.
25452 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
25453 resized_p flag is set. If not set, use the much less flickering
25454 method previously used.
25456 * dispnew.c (change_frame_size_1): Set frame's resized_p.
25458 * frame.h (struct frame) <resized_p>: New member.
25460 * lread.c (to_multibyte): Ensure read_buffer is at least twice
25461 as large as the number of bytes to convert.
25463 * lread.c (to_multibyte): New function.
25466 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
25468 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
25470 2001-10-30 Gerd Moellmann <gerd@gnu.org>
25472 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
25473 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
25474 if the row's fill_line_p is set and drawing the last glyph with
25475 DRAW_IMAGE_{RAISED,SUNKEN}.
25477 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
25479 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
25481 * xmenu.c: Include coding.h and charset.h.
25482 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
25483 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
25484 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
25485 Explicitly set wv->help. Use `TRUE' rather than `True'.
25486 (menu_help_callback): Use empty_string.
25488 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
25489 (Fx_popup_dialog): Explicitly init f.
25490 (w32_menu_display_help): Use empty_string.
25492 2001-10-29 Richard M. Stallman <rms@gnu.org>
25494 * fns.c (Frequire): Detect recursive try to require the same
25495 feature 3 or more levels deep, and get error.
25496 (require_unwind): New subroutine.
25497 (require_nesting_list): New variable.
25498 (syms_of_fns): Init and staticpro it.
25500 * print.c (print_object): Clarify indication of insertion type.
25502 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
25504 * coding.c (syms_of_coding): Document that locale-coding-system is
25505 used for decoding input on X.
25507 * window.c (Fscroll_left, Fscroll_right): Doc fix.
25509 2001-10-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25511 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
25512 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
25514 2001-10-29 Gerd Moellmann <gerd@gnu.org>
25516 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
25517 use NO_CURSOR if cursor_in_non_selected_windows is false.
25519 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
25520 the slant attribute if FRAME is t.
25522 * xfns.c (x_set_internal_border_width): Set frame garbaged
25523 when X window doesn't exist yet.
25525 * xterm.c (x_after_update_window_line): Clear internal border
25526 in different circumstances.
25528 * xterm.c (XTread_socket) <KeyPress>: Don't use
25529 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
25532 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
25534 * m/ibms390.h: New file. From Adam Thornton
25535 <athornton@sinenomine.net>.
25537 2001-10-28 Gerd Moellmann <gerd@gnu.org>
25539 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
25541 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
25544 2001-10-28 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25546 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
25548 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
25550 Fix typos in comments.
25552 * emacs.c (bug_reporting_address): New function.
25553 Use it when displaying usage message.
25555 * minibuf.c (read_minibuf): Remove unused external declaration of
25556 variable `Qread_only'.
25558 * keymap.c (access_keymap): Remove unused variable `charset'.
25560 2001-10-28 Miles Bader <miles@gnu.org>
25562 * xfaces.c (merge_face_heights): Handle TO being relative as well.
25563 Remove #ifdef'd-out code.
25564 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
25565 (syms_of_xfaces): Initialize them.
25567 2001-10-27 Jason Rumney <jasonr@gnu.org>
25569 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
25570 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
25571 position using the system caret.
25573 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
25574 (w32_system_caret_height, w32_system_caret_x)
25575 (w32_system_caret_y): New variables for tracking system caret.
25576 (w32_initialize): Initialize them.
25577 (x_display_and_set_cursor): Make system caret follow the active cursor.
25579 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
25580 New messages types.
25582 * w32term.c (note_mouse_highlight): Clear old help_echo.
25584 2001-10-27 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25586 * xterm.c: Fix typo in a comment.
25588 * emacs.c: Fix typos in comments.
25589 Remove unnecessary spaces.
25590 Change doc-string comments to `new style' [w/`doc:' keyword].
25591 (USAGE2): Fix typos in usage string.
25593 * xterm.c: Fix typo in a comment.
25595 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
25598 2001-10-27 Gerd Moellmann <gerd@gnu.org>
25600 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
25601 instead of 1/2 line_height in the heuristic for skipping
25602 farther backward when target_y was not reached.
25604 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
25605 Display errno only if non-zero.
25606 (sound_warning): New function.
25607 (vox_configure): Don't treat failing to set sample rate as error.
25608 (various places): Improve error messages.
25610 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
25612 * fileio.c (Faccess_file): Run the argument filename through
25613 Fexpand_file_name, before using it.
25615 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
25616 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
25618 2001-10-26 Gerd Moellmann <gerd@gnu.org>
25620 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
25622 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
25623 Fix clearing in the case of scroll bars on the right.
25625 2001-10-26 Juanma Barranquero <lektu@terra.es>
25627 * w32gui.h (XImage): Add a dummy typedef.
25629 2001-10-26 Gerd Moellmann <gerd@gnu.org>
25631 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
25633 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
25635 * frame.c (Fframe_parameter): Fix last change.
25637 * fileio.c: Revert last change (which removed old commented-out
25638 version of expand-file-name). Add a comment that explains why
25639 this old version should not be removed.
25641 2001-10-25 Gerd Moellmann <gerd@gnu.org>
25643 * frame.c (Fframe_parameter): Fix a bug whereby some
25644 ``artificial'' frame parameters, like `minibuffer' were not
25645 obtained by calling Fframe_parameters.
25647 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
25648 cursor differently.
25650 * xdisp.c (move_it_vertically_backward): Compute line height
25651 differently. Add heuristic to try to be more compatible to 20.x.
25653 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
25655 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
25657 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
25660 2001-10-25 Miles Bader <miles@gnu.org>
25662 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
25663 BG is a pointer to a structure, not a structure.
25664 (gif_format, png_format): Add missing commas.
25666 2001-10-24 Richard M. Stallman <rms@gnu.org>
25668 * xfaces.c (Fface_attributes_as_vector): New function.
25669 (syms_of_xfaces): Defsubr it.
25671 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25673 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
25676 2001-10-25 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25678 * search.c (scan_newline): Remove unused variable `selective_display'.
25680 2001-10-25 Miles Bader <miles@gnu.org>
25682 * dispextern.h (struct image): Add `background',
25683 `background_valid', and `background_transparent' fields.
25684 (image_background, image_background_transparent): New declarations.
25685 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
25686 * xfns.c (image_background, image_background_transparent)
25687 (four_corners_best): New functions.
25688 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
25689 (gs_format): Add `:background' entry.
25690 (lookup_image): Set IMG's background color if specified.
25691 (pbm_load, xbm_load_image, png_load): Set IMG's background field
25693 (x_clear_image_1): Reset `background_valid' and
25694 `background_transparent_valid' fields.
25695 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
25696 calculating it here. Set IMG's background_transparent field.
25697 (enum xpm_keyword_index): Add XPM_BACKGROUND.
25698 (enum png_keyword_index): Add PNG_BACKGROUND.
25699 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
25700 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
25701 (enum gif_keyword_index): Add GIF_BACKGROUND.
25702 (enum gs_keyword_index): Add GS_BACKGROUND.
25703 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
25704 Pre-calculate image background color where necessary.
25705 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
25706 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
25707 color to use for image glyph reliefs.
25709 2001-10-24 Gerd Moellmann <gerd@gnu.org>
25711 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
25712 in full-width rows.
25714 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
25715 Fix clearing of area not covered by scroll bar.
25717 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25719 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
25721 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
25722 (glyph_rect): Remove unused variable `area'.
25724 2001-10-24 Gerd Moellmann <gerd@gnu.org>
25726 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
25728 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
25729 (row_containing_pos): Take additional argument DY.
25730 Treat rows ending in middle of char differently.
25731 (display_line): Handle tabs on window systems differently.
25733 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
25734 with additional argument.
25736 * dispextern.h (row_containing_pos): Adjust prototype.
25738 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
25739 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
25740 (try_window_id, try_window_reusing_current_matrix)
25741 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
25742 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
25744 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25746 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
25748 (HAVE_BOXES): Fix typo in comment.
25749 (push_menu_pane): Fix typo in comment.
25751 * xdisp.c (display_prop_string_p): Remove unused local declaration
25753 (single_display_prop_string_p): Remove unused local declarations
25754 of `Qwhen' and `Qmargin'.
25755 (string_buffer_position): Remove unused variable `around'.
25756 (store_frame_title): Remove unused variable `width'.
25758 * window.c: Don't define max.
25759 (coordinates_in_window): Remove unused variable `uy'.
25761 * widget.c: Don't define max.
25763 * process.c: Don't define max.
25764 (create_process): Remove unused variable `buffer'.
25766 2001-10-23 Gerd Moellmann <gerd@gnu.org>
25768 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
25770 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
25772 * xfaces.c (Finternal_set_lisp_face_attribute)
25773 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
25774 frame is on a windowed display.
25776 2001-10-23 Gerd Moellmann <gerd@gnu.org>
25778 * dispnew.c (sync_window_with_frame_matrix_rows):
25779 Fix handling of windows which aren't full-width, fix handling
25782 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
25784 2001-10-23 Andreas Schwab <schwab@suse.de>
25786 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
25787 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
25789 2001-10-23 Gerd Moellmann <gerd@gnu.org>
25791 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
25792 REAL_END. Notice if cursor gets overwritten.
25793 (notice_overwritten_cursor): Take X positions as parameters.
25794 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
25795 around call to x_draw_glyphs.
25797 2001-10-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25799 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
25800 instead of C) and usage.
25802 * editfns.c (char-to-string): Fix argument names (use CHAR instead
25805 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
25806 `left', `max_width' and `max_height'.
25808 2001-10-23 Gerd Moellmann <gerd@gnu.org>
25810 * xdisp.c (display_line): For a tab continued to the next line,
25811 set row's ends_in_middle_of_char_p.
25813 2001-10-22 Gerd Moellmann <gerd@gnu.org>
25815 * xdisp.c (display_line): Fix computation of continuation lines
25818 2001-10-22 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25820 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
25823 * fileio.c: Remove unused code.
25825 2001-10-22 Miles Bader <miles@gnu.org>
25827 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
25828 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
25829 Remove `DOC_STRINGS_IN_COMMENTS' cases.
25831 2001-10-21 Jason Rumney <jasonr@gnu.org>
25833 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
25835 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
25837 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
25838 (Finsert_string): Avoid the multi-line string literals warning.
25840 2001-10-22 Miles Bader <miles@gnu.org>
25842 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
25843 (Fdocumentation): Don't use it.
25844 (syms_of_doc): Don't initialize it.
25846 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
25847 * print.c (Fwith_output_to_temp_buffer): Likewise.
25848 * window.c (Fsave_window_excursion): Likewise.
25849 * editfns.c (Fsave_excursion, Fsave_current_buffer)
25850 (Fsave_restriction): Likewise.
25851 * eval.c (Frun_hooks, Frun_hook_with_args)
25852 (Frun_hook_with_args_until_failure)
25853 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
25854 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
25855 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
25856 (Funwind_protect, Fcondition_case): Likewise.
25857 * coding.c (Ffind_operation_coding_system): Likewise.
25858 * keyboard.c (Ftrack_mouse): Likewise.
25860 2001-10-21 Miles Bader <miles@gnu.org>
25862 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
25863 (Fmake_hash_table): Add usage: string to doc string.
25864 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
25865 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
25866 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
25867 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
25868 (Fml_prefix_argument_loop): Likewise.
25870 2001-10-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25872 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
25874 * sysdep.c (init_sys_modes): Change doc-string comments to `new
25875 style' [w/`doc:' keyword].
25877 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
25878 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
25879 comments to `new style' [w/`doc:' keyword].
25881 2001-10-21 Jason Rumney <jasonr@gnu.org>
25883 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
25885 * w32term.c (remember_mouse_glyph): New function.
25886 (w32_mouse_position): Use it.
25887 (note_mouse_movement): If the mouse moved off the glyph, remember
25890 * w32term.h (struct w32_output): Correct spelling of x_compatible.
25891 (w32_display_info): Add mouse_face_overlay.
25893 * w32term.c (notice_overwritten_cursor): Renamed from
25894 note_overwritten_text_cursor. Rewritten to take glyph widths into
25896 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
25897 (fast_find_string_pos): New function.
25898 (fast_find_position): Return the correct vpos. Add parameter
25899 STOP. In the final row, stop before glyphs having STOP as object.
25900 Don't consider glyphs that are not from a buffer.
25901 (fast_find_position) [0]: Add a presumably more correct version
25903 (expose_window_tree, expose_frame): Don't compute intersections here.
25904 (expose_window): Do it here instead.
25905 (expose_window_tree, expose_window, expose_line): Return 1 when
25906 overwriting mouse-face.
25907 (expose_window): If W is the window currently being updated, mark
25908 the frame garbaged.
25909 (expose_frame): If mouse-face was overwritten, redo it.
25910 (x_use_underline_position_properties): New variable.
25911 (syms_of_xterm): DEFVAR_BOOL it.
25912 (x_draw_glyph_string): Add comment to use it in future.
25913 (x_draw_glyph_string): Restore clipping after drawing box.
25914 Fix a computation of the underline position.
25915 (w32_get_glyph_string_clip_rect): Minor cleanup.
25916 (x_fill_stretch_glyph_string): Remove an assertion.
25917 (x_produce_glyphs): Don't convert multibyte characters
25918 to unibyte characters in unibyte buffers.
25919 (cursor_in_mouse_face_p): New function.
25920 (x_draw_stretch_glyph_string): Use it to choose a different GC
25921 when drawing a cursor within highlighted text. Don't draw
25922 background again if it has already been drawn.
25923 (x_draw_glyph_string_box): Don't draw a full-width
25924 box just because the glyph row's full_width_p flag is set.
25925 (x_draw_glyphs): Fix computation of rightmost x for
25927 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
25928 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
25929 change bottom shadow accordingly. Some cleanup.
25930 (x_update_window_end): Handle overwritten mouse face
25931 also for tool bar windows.
25932 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
25933 DRAW is DRAW_IMAGE_RAISED.
25934 (clear_mouse_face): Return 1 if text with mouse face was
25935 actually redrawn. Make the function static.
25936 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
25937 optimize away highlighting if we pass over that same overlay again.
25938 (note_mouse_highlight): Call mouse_face_overlay_overlaps
25939 to detect a case where we have to highlight a different region
25940 despite not having left the currently highlighted region.
25941 Set mouse_face_overlay in the x_display_info. Avoid changing the
25942 mouse pointer shape when show_mouse_face has already done it, or
25943 there is no need. Handle mouse-face and help-echo in strings.
25944 (glyph_rect): New function.
25945 (w32_mouse_position): Use it to raise the threshold for mouse
25946 movement event generation.
25947 (w32_initialize_display_info): Initialize the x_display_info's
25948 mouse_face_overlay.
25949 (w32_set_vertical_scroll_bar): Don't clear a zero height
25951 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
25952 a widget to zero height.
25954 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
25955 Protect unibyte strings created by replacing their multibyte
25956 equivalents in menu_items.
25957 (w32_menu_show): Don't overwrite an item's name with its key
25958 description in case the description is a multibyte string.
25959 (single_submenu): Some cleanup.
25961 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
25962 (postprocess_image): New function.
25963 (lookup_image): Call it for all image types except PostScript.
25964 (x_kill_gs_process): Call postprocess_image.
25965 (tiff_error_handler, tiff_warning_handler): New functions.
25966 (tiff_load): Install them as handlers.
25967 (x_kill_gs_process): Recognize if someone has cleared the image
25969 (valid_image_p): Protect better against invalid image
25970 specifications. Previous code could signal an error.
25971 (Fx_hide_tip, Fshow_tip): Doc fix.
25972 (Fv_max_tooltip_size): New variable.
25973 (syns_of_xfns): DEFVAR_LISP it.
25974 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
25975 window buffer to *tip* right after creating the frame. Set frame's
25976 window_width. Use a maximum tooltip size specified by
25977 Vx_max_tooltip_size, if that has valid contents.
25978 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
25979 Make sure the tooltip is completely visible.
25980 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
25981 (Fx_create_frame): Adjust the frame's height for presence
25982 of the tool bar before calling x_figure_window_size.
25983 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
25984 when the window gets smaller.
25985 (x_set_foreground_color): Set frame's cursor_pixel.
25986 (x_set_foreground_color, x_set_background_color): Cleaned up.
25987 (x_set_font): Handle case of x_new_fontset returning the same name
25988 as before, although there was a change in fontsets.
25990 2001-10-21 Miles Bader <miles@gnu.org>
25992 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
25993 (Flogxor): Add usage: string to doc string.
25994 * charset.c (Fstring): Likewise.
25995 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
25996 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
25998 2001-10-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26000 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
26002 * alloc.c: Reindent DEFUNs with doc: keywords.
26004 * abbrev.c (Finsert_abbrev_table_description): Reindent.
26006 * frame.c: Change doc-string comments to `new style' [w/`doc:'
26009 See ChangeLog.9 for earlier changes.
26011 ;; Local Variables:
26012 ;; coding: iso-2022-7bit
26015 Copyright (C) 2001, 2002, 2003, 2004, 2005,
26016 2006 Free Software Foundation, Inc.
26017 Copying and distribution of this file, with or without modification,
26018 are permitted provided the copyright notice and this notice are preserved.
26020 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4