"Fossies" - the Fresh Open Source Software Archive

Member "emacs-26.1/src/ChangeLog.10" (23 Apr 2018, 1003499 Bytes) of package /linux/misc/emacs-26.1.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "ChangeLog.10": 25.3_vs_26.1.

    1 2007-04-24  Chong Yidong  <cyd@stupidchicken.com>
    2 
    3 	* Branch for 22.1.
    4 
    5 2007-04-24  Chong Yidong  <cyd@stupidchicken.com>
    6 
    7 	* xdisp.c (redisplay_window): Use BEG_UNCHANGED and END_UNCHANGED
    8 	values of the actual window.
    9 
   10 2007-04-23  Richard Stallman  <rms@gnu.org>
   11 
   12 	* process.c (Fstart_process): Doc fix.
   13 
   14 2007-04-23  Eli Zaretskii  <eliz@gnu.org>
   15 
   16 	* process.c (Fstart_process): Doc fix.
   17 
   18 2007-04-22  Richard Stallman  <rms@gnu.org>
   19 
   20 	* abbrev.c (Fdefine_abbrev): Doc fix.
   21 
   22 	* keymap.c (Fdefine_key): Minor doc fix.
   23 
   24 2007-04-21  Glenn Morris  <rgm@gnu.org>
   25 
   26 	* keymap.c (Fdefine_key): Fix info ref in doc string.
   27 
   28 2007-04-20  Glenn Morris  <rgm@gnu.org>
   29 
   30 	* sysdep.c (init_system_name): Don't accept localhost.localdomain.
   31 
   32 2007-04-19  Juanma Barranquero  <lekktu@gmail.com>
   33 
   34 	* minibuf.c (Fminibuffer_contents, Fminibuffer_contents_no_properties)
   35 	(Fminibuffer_completion_contents, Fdelete_minibuffer_contents):
   36 	Doc fixes.
   37 
   38 2007-04-16  Chong Yidong  <cyd@stupidchicken.com>
   39 
   40 	* dispnew.c (adjust_frame_glyphs_for_frame_redisplay):
   41 	Set garbaged flag in presence of window margins.
   42 	(showing_window_margins_p): New function.
   43 
   44 	* xdisp.c (cursor_row_p): Only end row on newline if it's a
   45 	display string.  Suggested by Lennart Borgman.
   46 
   47 2007-04-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
   48 
   49 	* alloc.c (mem_insert): Set min_heap_address and max_heap_address
   50 	if they are not yet initialized.
   51 
   52 2007-04-15  Chong Yidong  <cyd@stupidchicken.com>
   53 
   54 	* xdisp.c (redisplay_window): When deciding whether or not to
   55 	recenter, don't use the reset values of BEG_UNCHANGED and
   56 	END_UNCHANGED.
   57 
   58 2007-04-13  Kim F. Storm  <storm@cua.dk>
   59 
   60 	* buffer.c (Fkill_buffer): gcpro BUF during kill_buffer_processes
   61 	and check that buffer is still alive upon return.
   62 
   63 2007-04-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
   64 
   65 	* macterm.c [!TARGET_API_MAC_CARBON]: Include Displays.h.
   66 	(mac_screen_config_changed): New variable.
   67 	(mac_handle_dm_notification, init_dm_notification_handler)
   68 	(mac_get_screen_info): New functions.
   69 	[MAC_OS8] (main): Call init_dm_notification_handler.
   70 	(mac_initialize) [MAC_OSX]: Likewise.
   71 	(XTread_socket): Call mac_get_screen_info if screen config changed.
   72 	(mac_initialized): Make static.
   73 	(mac_initialize_display_info): Remove function.
   74 	(mac_term_init): Call mac_get_screen_info.  Add partial contents of
   75 	mac_initialize_display_info.
   76 
   77 2007-04-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
   78 
   79 	* mac.c (xrm_get_preference_database, Fmac_get_preference)
   80 	[TARGET_API_MAC_CARBON]: Use CFPreferencesAppSynchronize.
   81 
   82 	* macterm.c [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event):
   83 	Use GetGlobalMouse instead of GetMouse and LocalToGlobal.
   84 	(mac_initialize_display_info) [MAC_OSX]: Use CGRectZero.
   85 	(mac_initialize_display_info) [!MAC_OSX]: dpyinfo->height and
   86 	dpyinfo->width are those of whole screen.
   87 
   88 2007-04-10  Chong Yidong  <cyd@stupidchicken.com>
   89 
   90 	* xdisp.c (note_mode_line_or_margin_highlight): Don't decrement
   91 	glyph pointer before start of glyph row.
   92 
   93 2007-04-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
   94 
   95 	* s/darwin.h (__restrict, struct kboard): Remove outdated workarounds.
   96 	(C_SWITCH_SYSTEM): Remove `-I../mac/src'.
   97 
   98 2007-04-09  Martin Rudalics  <rudalics@gmx.at>
   99 
  100 	* indent.c (Fmove_to_column): Set next_boundary with correct start pt.
  101 
  102 2007-04-08  Richard Stallman  <rms@gnu.org>
  103 
  104 	* xdisp.c (syms_of_xdisp) <message-log-max>: Default 100.
  105 
  106 2007-04-07  Chong Yidong  <cyd@stupidchicken.com>
  107 
  108 	* editfns.c (Ftranspose_regions): Validate interval before setting
  109 	text properties.
  110 
  111 2007-04-03  Eli Zaretskii  <eliz@gnu.org>
  112 
  113 	* emacs.c (main): Fix instructions for building Emacs for profiling.
  114 
  115 2007-04-03  Jan Djärv  <jan.h.d@swipnet.se>
  116 
  117 	* gtkutil.c (xg_update_menubar): Call g_list_next after moving
  118 	menu bar item.
  119 
  120 2007-04-02  Juanma Barranquero  <lekktu@gmail.com>
  121 
  122 	* print.c (Fprin1_to_string): Use macro SPECPDL_INDEX.
  123 
  124 2007-04-01  Chong Yidong  <cyd@stupidchicken.com>
  125 
  126 	* keymap.c (Fcommand_remapping): New optional argument.
  127 	(where_is_internal): Use new keymaps argument.
  128 	(Fkey_binding): Caller changed.
  129 
  130 	* keyboard.c (command_loop_1): Caller changed.
  131 
  132 2007-03-31  Eli Zaretskii  <eliz@gnu.org>
  133 
  134 	* window.c (Fget_lru_window): Doc fix.
  135 
  136 2007-03-30  Chong Yidong  <cyd@stupidchicken.com>
  137 
  138 	* undo.c (Fprimitive_undo): Give clearer error message when trying
  139 	to change text properties outside accessible part of buffer.
  140 
  141 2007-03-29  Kim F. Storm  <storm@cua.dk>
  142 
  143 	* process.c (wait_reading_process_output) [HAVE_PTYS]:
  144 	When EIO happens, clear channel from descriptor masks before raising
  145 	SIGCHLD signal to avoid busy loop between read and sigchld_handler.
  146 	(sigchld_handler): Remove sleep (2007-03-11 & 2007-03-26 changes).
  147 
  148 2007-03-29  Juanma Barranquero  <lekktu@gmail.com>
  149 
  150 	* buffer.c (Fset_buffer_major_mode): Check that BUFFER is valid.
  151 
  152 	* process.c (Fformat_network_address): Return nil when the
  153 	argument vector contains invalid values.
  154 
  155 2007-03-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
  156 
  157 	* gmalloc.c [HAVE_GTK_AND_PTHREAD]: Define USE_PTHREAD.
  158 	[USE_PTHREAD]: Include pthread.h.
  159 	(malloc_init_once_control, _malloc_mutex) [USE_PTHREAD]: New variables.
  160 	(malloc_initialize_1): New function created from __malloc_initialize.
  161 	(__malloc_initialize): Use it.
  162 	(LOCK, UNLOCK): New macros to make malloc etc. thread safe.
  163 	(_malloc_internal, _free_internal, _realloc_internal): Use them.
  164 
  165 	* lread.c (readchar): Extend BLOCK_INPUT block to ferror/clearerr.
  166 
  167 2007-03-27  Juanma Barranquero  <lekktu@gmail.com>
  168 
  169 	* process.c (Fformat_network_address): Make args array big enough
  170 	to format IPv6 addresses.
  171 
  172 2007-03-27  Glenn Morris  <rgm@gnu.org>
  173 
  174 	* m/hp800.h: Restore HP-UX support (removed 2007-01-29).
  175 
  176 2007-03-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
  177 
  178 	* macfns.c (Fx_display_mm_height, Fx_display_mm_width): Scale whole
  179 	screen size in pixels by millimeters per pixel of main display.
  180 
  181 	* macselect.c (get_scrap_target_type_list, x_own_selection):
  182 	Move assignments outside predicate macros.
  183 	(Vselection_converter_alist): Doc fix.
  184 
  185 	* macterm.c (create_text_encoding_info_alist): Move assignments
  186 	outside predicate macros.
  187 	(mac_initialize_display_info) [MAC_OSX]: dpyinfo->height and
  188 	dpyinfo->width are those of whole screen.
  189 
  190 2007-03-26  Sam Steingold  <sds@gnu.org>
  191 
  192 	* process.c (sigchld_handler): Delay by 1ms instead of 1s to
  193 	alleviate sluggishness (the original problem is still fixed).
  194 
  195 2007-03-25  Kim F. Storm  <storm@cua.dk>
  196 
  197 	* intervals.c (merge_properties): Use explicit loop instead of
  198 	Fplist_member to avoid QUIT.  Don't use Fcdr.
  199 	(intervals_equal): Likewise.  Rewrite loop to perform length check
  200 	on the fly rather than calling Flength.  Don't use Fcar.
  201 
  202 2007-03-24  Eli Zaretskii  <eliz@gnu.org>
  203 
  204 	* editfns.c (Fgoto_char): Doc fix.
  205 
  206 	* indent.c (Findent_to): Doc fix.
  207 
  208 2007-03-24  Chong Yidong  <cyd@stupidchicken.com>
  209 
  210 	* editfns.c (Ftranspose_regions): Use set_text_properties_1
  211 	instead of Fset_text_properties to avoid GC.  Signal after change.
  212 
  213 2007-03-24  Eli Zaretskii  <eliz@gnu.org>
  214 
  215 	* xfns.c (Fx_show_tip): Doc fix.
  216 
  217 	* macfns.c (Fx_show_tip): Doc fix.
  218 
  219 	* w32fns.c (Fx_show_tip): Doc fix.
  220 
  221 2007-03-23  Kim F. Storm  <storm@cua.dk>
  222 
  223 	* intervals.c (merge_properties, intervals_equal):
  224 	Use Fplist_member instead of Fmemq to find properties.
  225 
  226 2007-03-23  Glenn Morris  <rgm@gnu.org>
  227 
  228 	* unexhp9k800.c: Restore file with clarified legal status.
  229 	* m/sr2k.h: Restore since dependency unexhp9k800.c is restored.
  230 
  231 2007-03-22  Chong Yidong  <cyd@stupidchicken.com>
  232 
  233 	* widget.c (EmacsFrameSetCharSize): Catch X errors.
  234 
  235 2007-03-22  Kenichi Handa  <handa@m17n.org>
  236 
  237 	* fileio.c (Fcopy_file): Call barf_or_query_if_file_exists with
  238 	non-encoded file name.
  239 	(Frename_file): Likewise.
  240 	(Fadd_name_to_file): Likewise.
  241 	(Fmake_symbolic_link): Likewise.
  242 
  243 2007-03-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
  244 
  245 	* Makefile.in (alloca.o, gtkutil.o): Depend on systime.h.
  246 	(dired.o, editfns.o, fileio.o, msdos.o): Depend on atimer.h.
  247 	(dosfns.o, window.o, fns.o, macselect.o): Depend on atimer.h and
  248 	systime.h.
  249 	(term.o, print.o, lread.o): Depend on blockinput.h, atimer.h, and
  250 	systime.h.
  251 	(macfns.o): Remove duplicate dependency on systime.h.
  252 
  253 	* dispnew.c (Fopen_termscript): Add BLOCK_INPUT around fclose.
  254 	(Fsend_string_to_terminal): Add BLOCK_INPUT around fwrite.
  255 
  256 	* fileio.c (do_auto_save_unwind): Add BLOCK_INPUT around fclose.
  257 	(Fdo_auto_save): Add BLOCK_INPUT around fwrite.
  258 
  259 	* keyboard.c (record_char): Add BLOCK_INPUT around fwrite.
  260 	(Fopen_dribble_file): Add BLOCK_INPUT around fclose.
  261 
  262 	* lread.c: Include blockinput.h.
  263 	(readchar, Fget_file_char): Add BLOCK_INPUT around getc.
  264 	(unreadchar): Add BLOCK_INPUT around ungetc.
  265 	(load_unwind): Add BLOCK_INPUT around fclose.
  266 
  267 	* print.c: Include blockinput.h.
  268 	(Fredirect_debugging_output): Add BLOCK_INPUT around fclose.
  269 
  270 	* process.c (Fmake_network_process) [HAVE_GETADDRINFO]:
  271 	Clear immediate_quit before calling freeaddrinfo.
  272 	Add BLOCK_INPUT around freeaddrinfo.
  273 
  274 	* term.c: Include blockinput.h.
  275 	(write_glyphs, insert_glyphs): Add BLOCK_INPUT around fwrite.
  276 
  277 2007-03-19  Richard Stallman  <rms@gnu.org>
  278 
  279 	* keyboard.c (NUM_RECENT_KEYS): Bump up to 300.
  280 
  281 	* buffer.c (syms_of_buffer): Doc fix.
  282 
  283 2007-03-18  Chong Yidong  <cyd@stupidchicken.com>
  284 
  285 	* image.c (pbm_load): Signal error for invalid image size.
  286 
  287 2007-03-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
  288 
  289 	* macterm.c (note_mouse_movement): Don't return immediately for
  290 	LeaveNotify case.
  291 
  292 	* macmenu.c (popup_activated_flag): New variable.
  293 	(x_activate_menubar, mac_menu_show): Set it during menu tracking.
  294 	(popup_activated): New function.
  295 
  296 	* xdisp.c (redisplay_internal, note_mouse_highlight):
  297 	Check popup_activated for MAC_OS.
  298 
  299 2007-03-17  Juanma Barranquero  <lekktu@gmail.com>
  300 
  301 	* buffer.c (syms_of_buffer) <buffer-display-table>: Doc fix.
  302 	Reported by Nikolaj Schumacher <n_schumacher@web.de>.
  303 
  304 2007-03-17  Richard Stallman  <rms@gnu.org>
  305 
  306 	* dired.c (file_name_completion): gcpro NAME.
  307 
  308 2007-03-17  Chong Yidong  <cyd@stupidchicken.com>
  309 
  310 	* xdisp.c (try_window_id): Increment matrix positions if the
  311 	buffer's byte count has increased, but not the character count.
  312 
  313 2007-03-12  Andreas Schwab  <schwab@suse.de>
  314 
  315 	* lisp.h: Declare check_obarray.
  316 
  317 	* process.c (Fdelete_process): Properly handle deletion of first
  318 	element of deleted_pid_list.
  319 	(create_process): Declare pid as pid_t.
  320 
  321 2007-03-12  Kim F. Storm  <storm@cua.dk>
  322 
  323 	* process.c (sigchld_handler): Change type of pid to pid_t.
  324 	Scan deleted_pid_list explicitly to avoid using Fmember which don't
  325 	know about mark bits and make_fixnum_or_float which may malloc.
  326 	Reported by Andreas Schwab.
  327 
  328 	* keyboard.c (read_key_sequence): Store original event into keybuf
  329 	when replaying sequence with local keymap(s) from string.
  330 
  331 2007-03-12  Glenn Morris  <rgm@gnu.org>
  332 
  333 	* editfns.c (Fdecode_time, Fencode_time): Doc fix ("daylight
  334 	savings" to "daylight saving").
  335 
  336 2007-03-11  Sam Steingold  <sds@gnu.org>
  337 
  338 	* process.c (sigchld_handler): Sleep before wait3 to avoid a busyloop.
  339 
  340 2007-03-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
  341 
  342 	* macfns.c (Fx_server_vendor): Change vendor string to "Apple Inc.".
  343 
  344 2007-03-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
  345 
  346 	* macterm.c [USE_CARBON_EVENTS] (mac_handle_mouse_event):
  347 	Ignore mouse wheel movement on title bar or tool bar.
  348 
  349 2007-03-10  Chong Yidong  <cyd@stupidchicken.com>
  350 
  351 	* keyboard.c (help_form_saved_window_configs): New var.
  352 	(read_char_help_form_unwind): New function.
  353 	(read_char): Don't restore window configuration if a mouse click
  354 	arrives while the help form is being displayed.
  355 
  356 2007-03-10  Kim F. Storm  <storm@cua.dk>
  357 
  358 	* xdisp.c (redisplay_window): Don't automatically select a new window
  359 	start for a continuation line during mouse-click.
  360 
  361 2007-03-09  Jan Djärv  <jan.h.d@swipnet.se>
  362 
  363 	* xterm.c (handle_one_xevent): Ignore buttons > 3 for the tool bar.
  364 
  365 2007-03-09  Juanma Barranquero  <lekktu@gmail.com>
  366 
  367 	* keymap.c (Fdescribe_buffer_bindings): Check that BUFFER is valid.
  368 
  369 2007-03-08  Richard Stallman  <rms@gnu.org>
  370 
  371 	* keyboard.c (syms_of_keyboard): Doc fix.
  372 
  373 2007-03-08  Chong Yidong  <cyd@stupidchicken.com>
  374 
  375 	* minibuf.c (Ftry_completion): Don't short circuit if
  376 	completion-ignore-case is non-nil.
  377 
  378 2007-03-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
  379 
  380 	* macfns.c (mac_set_scroll_bar_width, mac_frame_parm_handlers):
  381 	Undo 2006-03-06 changes.
  382 
  383 	* macterm.c (XTset_vertical_scroll_bar) [MAC_OSX]: Don't show scroll
  384 	bar if its width is smaller than that of Aqua small scroll bar.
  385 
  386 2007-03-07  Stefan Monnier  <monnier@iro.umontreal.ca>
  387 
  388 	* minibuf.c (read_minibuf): Bind inhibit-read-only a bit longer so as
  389 	to handle correctly prompts with read-only property.
  390 
  391 2007-03-06  Jan Djärv  <jan.h.d@swipnet.se>
  392 
  393 	* sound.c (wav_play): Check header->data_length to see how much we
  394 	shall read.
  395 	(alsa_period_size): Convert ALSA period size in frames to bytes.
  396 	(alsa_write): Return if frames is zero.
  397 
  398 2007-03-06  Kenichi Handa  <handa@m17n.org>
  399 
  400 	* xselect.c (Vselection_coding_system): Documentation improved.
  401 
  402 2007-03-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
  403 
  404 	* macterm.c (x_scroll_bar_create, XTread_socket): Replace #if
  405 	USE_TOOLKIT_SCROLL_BARS with #ifdef USE_TOOLKIT_SCROLL_BARS.
  406 	(x_set_window_size): Call SET_FRAME_GARBAGED.  Clear window if
  407 	internal border width has changed.
  408 
  409 	* macterm.h (struct mac_output): New member `internal_border_width'.
  410 
  411 2007-03-04  Richard Stallman  <rms@gnu.org>
  412 
  413 	* window.c (Fdisplay_buffer): Doc fix.
  414 
  415 2007-03-03  Glenn Morris  <rgm@gnu.org>
  416 
  417 	* Makefile.in: Don't clear out LIB_X11_LIB, since XFT_LIBS does
  418 	not include -lX11 on Solaris.
  419 
  420 2007-03-02  Stuart D. Herring  <herring@lanl.gov>
  421 
  422 	* keymap.c (Fkey_binding): Don't consider one-element lists as events.
  423 
  424 2007-03-01  Kenichi Handa  <handa@m17n.org>
  425 
  426 	* process.c (send_process_object): Check the process status and
  427 	signal an error if something is wrong.
  428 
  429 2007-02-28  Chong Yidong  <cyd@stupidchicken.com>
  430 
  431 	* insdel.c (Fcombine_after_change_execute): Return nil if
  432 	combine_after_change_buffer has been invalidated.
  433 
  434 2007-02-25  Dan Nicolaescu  <dann@ics.uci.edu>
  435 
  436 	* m/xtensa.h: New file.
  437 
  438 2007-02-24  Nick Roberts  <nickrob@snap.net.nz>
  439 
  440 	* .gdbinit (xprintstr): Ensure GDB (> 6.6) prints symbol name
  441 	as strings and not character arrays.
  442 
  443 2007-02-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
  444 
  445 	* macterm.c [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_drag)
  446 	(x_set_toolkit_scroll_bar_thumb): Add bar->min_handle as margin to
  447 	scroll bar handle size in order to avoid `scroll backward' problem.
  448 	(x_scroll_bar_create, XTset_vertical_scroll_bar)
  449 	[USE_TOOLKIT_SCROLL_BARS]: Initialize bar->min_handle.
  450 
  451 	* macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
  452 	New member `min_handle'.
  453 
  454 2007-02-23  Kim F. Storm  <storm@cua.dk>
  455 
  456 	* print.c (print): Reset print_number_index if Vprint_number_table
  457 	is nil.
  458 
  459 2007-02-23  Eli Zaretskii  <eliz@gnu.org>
  460 
  461 	* w32.c (stat, get_long_basename, is_unc_volume): Use _mbspbrk
  462 	instead of strpbrk.
  463 
  464 2007-02-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
  465 
  466 	* macmenu.c (mac_menu_show): Call unbind_to early.  Use variable
  467 	`menu_item_selection' as in W32 version.
  468 	[TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Add explicit
  469 	braces to avoid ambiguous `else'.
  470 
  471 	* macterm.c (mac_display_info_for_display): Remove function.
  472 	(mac_flush_display_optional) [USE_CG_DRAWING]: New function.
  473 	(x_redisplay_interface) [USE_CG_DRAWING]: Set it as handler for
  474 	flush_display_optional.
  475 	[USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_press):
  476 	New argument MOUSE_POS.  All uses changed.  Set bar->dragging to
  477 	negative integer if scroll bar handle is pressed.
  478 	[USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_release):
  479 	Negative bar->dragging means scroll bar handle is not dragged.
  480 	[USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_drag): Get initial
  481 	offset of scroll bar handle from negative bar->dragging.
  482 	(XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Modifiers for scroll
  483 	bar click is compared against mapped one.  Set down/up_modifier
  484 	for scroll bar click event with control key.
  485 
  486 	* macterm.h (x_display_info_for_display): Remove extern.
  487 	(SCROLL_BAR_UNPACK, SET_SCROLL_BAR_CONTROL_HANDLE): Don't limit
  488 	value to be unpacked to 32-bit on LP64 model.
  489 
  490 2007-02-23  Kenichi Handa  <handa@m17n.org>
  491 
  492 	* process.c (send_process_object_unwind): New function.
  493 	(send_process_object): New function.
  494 	(Fprocess_send_region): Call send_process_object.
  495 	(Fprocess_send_string): Likewise.
  496 
  497 2007-02-22  Jason Rumney  <jasonr@gnu.org>
  498 
  499 	* w32menu.c (w32_menu_show): Mark the frame's menu as inactive
  500 	when popup menu finishes.
  501 
  502 	* w32fns.c (menubar_in_use): New flag.
  503 	(w32_wnd_proc) <WM_INITMENU, WM_EXITMENULOOP, WM_TIMER, WM_COMMAND>:
  504 	Use it.
  505 
  506 	* w32menu.c (Fx_popup_menu): Don't free menu strings here.
  507 	(w32_menu_show): Do it here instead.
  508 
  509 	* w32fns.c (w32_wnd_proc) <WM_INITMENU>: Set menubar_active frame
  510 	parameter.
  511 
  512 	* w32menu.c (current_popup_menu): Make available globally.
  513 	(menubar_selection_callback): Free menu strings before pushing the
  514 	menu event into the keyboard buffer.  Remove menu_command_in_progress.
  515 
  516 	* w32fns.c (current_popup_menu): Use from w32menu.c.
  517 	(w32_wnd_proc) <WM_EXITMENULOOP, WM_TIMER>: Use menubar_active
  518 	and current_popup_menu to determine whether a menubar menu has
  519 	been canceled.
  520 
  521 	* w32term.h (w32_output): Remove menu_command_in_progress.
  522 
  523 2007-02-22  Kim F. Storm  <storm@cua.dk>
  524 
  525 	* dispnew.c (update_frame, update_single_window): Set force_p here if
  526 	redisplay_dont_pause is set or Vredisplay_preemption_period is nil...
  527 	(update_window, update_frame_1): ... instead of here.
  528 	(update_text_area): Clear mouse face on header lines.
  529 
  530 2007-02-21  Kim F. Storm  <storm@cua.dk>
  531 
  532 	* minibuf.c (Fassoc_string): Doc fix.  Allow symbol for KEY too.
  533 
  534 2007-02-21  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
  535 
  536 	* macterm.c (WINDOW_RESOURCE, TERM_WINDOW_RESOURCE): Remove macros.
  537 	[USE_MAC_TSM] (mac_handle_text_input_event): Remove unused variable
  538 	`mapped_modifiers'.
  539 	(XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Use Keyboard
  540 	Layout Services routines to get current Unicode keyboard layout.
  541 
  542 2007-02-20  Chong Yidong  <cyd@stupidchicken.com>
  543 
  544 	* frame.c (x_set_screen_gamma): Apply gamma value to the frame's
  545 	bgcolor.
  546 
  547 2007-02-19  Kim F. Storm  <storm@cua.dk>
  548 
  549 	* minibuf.c (Fassoc_string): Allow symbols as keys.
  550 
  551 	* w32term.c (w32_set_scroll_bar_thumb): Don't resize scroll-bar
  552 	handle while dragging, except when we get close to eob.
  553 	Fix position and size calculations so we don't scroll backwards
  554 	just by clicking on the handle.
  555 
  556 2007-02-17  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
  557 
  558 	* Makefile.in (${emacsapp}Contents/Resources/Emacs.rsrc)
  559 	[HAVE_CARBON]: Remove target.
  560 	(macosx-app) [HAVE_CARBON]: Don't depend on it.
  561 
  562 2007-02-17  Juanma Barranquero  <lekktu@gmail.com>
  563 
  564 	* callproc.c (syms_of_callproc) <doc-directory>:
  565 	<configure-info-directory>:
  566 	(Fgetenv_internal): Fix typos in docstrings.
  567 
  568 	* doc.c (Fsubstitute_command_keys): Fix typo in docstring.
  569 
  570 2007-02-16  Andreas Schwab  <schwab@suse.de>
  571 
  572 	* frame.c (Fmodify_frame_parameters): Return a value.
  573 
  574 	* editfns.c (Fformat): Add support for '+' flag.
  575 	* doprnt.c (doprnt1): Likewise.  Fix overflow checking.
  576 
  577 2007-02-14  Chong Yidong  <cyd@stupidchicken.com>
  578 
  579 	* s/umips.h: Unused file removed.
  580 
  581 2007-02-14  Juanma Barranquero  <lekktu@gmail.com>
  582 
  583 	* xfaces.c (Fcolor_distance): Don't continue checking a color for
  584 	errors after it has been correctly parsed as an RGB list.
  585 
  586 2007-02-14  Jan Djärv  <jan.h.d@swipnet.se>
  587 
  588 	* xterm.c (do_ewmh_fullscreen): Also check for _NET_WM_STATE_FULLSCREEN.
  589 
  590 2007-02-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
  591 
  592 	* macfns.c (Fx_focus_frame): Move current process to foreground if
  593 	it is not.
  594 	[TARGET_API_MAC_CARBON] (Fx_file_dialog): Replace #if MAC_OSX with
  595 	#ifdef MAC_OSX.
  596 	(Fmac_set_font_panel_visible_p) [USE_MAC_FONT_PANEL]: Rename from
  597 	Fmac_set_font_panel_visibility.  All uses changed.  Rename argument
  598 	VISIBLE to FLAG.
  599 
  600 	* macterm.c (MakeMeTheFrontProcess) [MAC_OSX]: Remove function.
  601 	(mac_initialize) [MAC_OSX]: Call SetFrontProcess instead of
  602 	MakeMeTheFrontProcess.
  603 
  604 2007-02-12  Chong Yidong  <cyd@stupidchicken.com>
  605 
  606 	* frame.c (x_set_screen_gamma): Clear face cache.
  607 
  608 2007-02-11  Juanma Barranquero  <lekktu@gmail.com>
  609 
  610 	* buffer.c (Fgenerate_new_buffer_name, Fbuffer_modified_tick):
  611 	Reflow docstrings.
  612 
  613 2007-02-10  Eli Zaretskii  <eliz@gnu.org>
  614 
  615 	* window.c (Fwindow_height, Fwindow_hscroll)
  616 	(Fwindow_redisplay_end_trigger, Fwindow_point, Fwindow_start)
  617 	(Fwindow_end, Fwindow_display_table, Fwindow_text_height):
  618 	Document the effect of WINDOW arg being nil.
  619 
  620 2007-02-08  Kim F. Storm  <storm@cua.dk>
  621 
  622 	* minibuf.c (read_minibuf): Fix 2007-01-30 change.
  623 	Use Qlambda as interim value of Vminibuffer_completing_file_name.
  624 	(Fcompleting_read): Use non-filename maps if value is Qlambda (or Qnil).
  625 	(syms_of_minibuf) <minibuffer-completing-file-name>: Document lambda.
  626 
  627 2007-02-07  Juanma Barranquero  <lekktu@gmail.com>
  628 
  629 	* makefile.w32-in ($(TRES)): Use literal "../nt/emacs.rc" instead
  630 	of $(ALL_DEPS).
  631 
  632 2007-02-07  Eli Zaretskii  <eliz@gnu.org>
  633 
  634 	* makefile.w32-in ($(TRES)): Depend on stamp_BLD, since $(TRES) is
  635 	put into $(BLD).
  636 
  637 2007-02-06  Chong Yidong  <cyd@stupidchicken.com>
  638 
  639 	* frame.c (Fmodify_frame_parameters): Don't bind
  640 	Qinhibit_default_face_x_resources, which has no effect.
  641 	(Qinhibit_default_face_x_resources): Symbol deleted.
  642 
  643 2007-02-03  Eli Zaretskii  <eliz@gnu.org>
  644 
  645 	* indent.c (Fmove_to_column): Document that the argument COLUMN is
  646 	taken from prefix numeric argument.
  647 
  648 2007-02-03  Juanma Barranquero  <lekktu@gmail.com>
  649 
  650 	* lread.c (syms_of_lread) <load-history>: Doc fix.
  651 
  652 2007-01-29  Andreas Seltenreich  <uwi7@rz.uni-karlsruhe.de>  (tiny change)
  653 
  654 	* xterm.c [!USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_expose):
  655 	Use the foreground color of the scroll-bar face when drawing
  656 	the scroll-bar's border.
  657 
  658 2007-02-02  Jan Djärv  <jan.h.d@swipnet.se>
  659 
  660 	* xterm.c (do_ewmh_fullscreen): Check that what != NULL before
  661 	calling wm_supports.
  662 
  663 2007-02-01  Juanma Barranquero  <lekktu@gmail.com>
  664 
  665 	* lread.c (syms_of_lread) <user-init-file>: Doc fix.
  666 	Wording by Eli Zaretskii.
  667 
  668 2007-01-31  Jan Djärv  <jan.h.d@swipnet.se>
  669 
  670 	* gtkutil.c (update_frame_tool_bar): Initialize h/vmargin to 0.
  671 
  672 2007-01-30  Richard Stallman  <rms@gnu.org>
  673 
  674 	* minibuf.c (read_minibuf):
  675 	Save and clear Vminibuffer_completing_file_name.
  676 	(read_minibuf_unwind): Restore it.
  677 	(Vminibuffer_completion_table, Qminibuffer_completion_table)
  678 	(Vminibuffer_completion_predicate, Qminibuffer_completion_predicate)
  679 	(Vminibuffer_completion_confirm, Qminibuffer_completion_confirm)
  680 	(Vminibuffer_completing_file_name): Definitions moved up.
  681 
  682 2007-01-29  Chong Yidong  <cyd@stupidchicken.com>
  683 
  684 	* m/hp800.h: Restore, removing HP-UX support.
  685 
  686 2007-01-29  Jan Djärv  <jan.h.d@swipnet.se>
  687 
  688 	* Makefile.in: Use a variable, XFT_LIBS, instead #define LIB_X11_LIB.
  689 
  690 2007-01-28  Richard Stallman  <rms@gnu.org>
  691 
  692 	* minibuf.c (Ftry_completion, Fall_completions)
  693 	(Fcompleting_read, Ftest_completion):
  694 	Rename arg ALIST or TABLE to COLLECTION.
  695 
  696 2007-01-27  Chong Yidong  <cyd@stupidchicken.com>
  697 
  698 	* unexhp9k800.c: Remove due to lack of legal papers.
  699 
  700 	* m/sr2k.h, m/hp800.h: Remove due to dependence on above.
  701 
  702 2007-01-27  Eli Zaretskii  <eliz@gnu.org>
  703 
  704 	* keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Doc fix.
  705 
  706 	* minibuf.c (Fcompleting_read): Doc fix.
  707 
  708 2007-01-26  Jan Djärv  <jan.h.d@swipnet.se>
  709 
  710 	* gtkutil.c (xg_initialize): Call XftInit if HAVE_XFT.
  711 
  712 	* Makefile.in: Use XFT_LIBS if defined.
  713 
  714 2007-01-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
  715 
  716 	* alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use
  717 	BLOCK_INPUT/UNBLOCK_INPUT.
  718 
  719 	* blockinput.h (interrupt_input_blocked): Declare volatile.
  720 
  721 	* keyboard.c (interrupt_input_blocked): Declare volatile.
  722 
  723 	* syssignal.h (SIGNAL_THREAD_CHECK): Use pthread_equal.
  724 
  725 2007-01-24  Kim F. Storm  <storm@cua.dk>
  726 
  727 	* keymap.c (describe_map): Don't consider prefix keys to be shadowed.
  728 
  729 2007-01-23  Juanma Barranquero  <lekktu@gmail.com>
  730 
  731 	* editfns.c (Finsert_char): Doc fix.
  732 	(Fget_internal_run_time, Fdecode_time): Fix typos in docstrings.
  733 
  734 2007-01-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
  735 
  736 	* macselect.c [TARGET_API_MAC_CARBON] (mac_do_receive_drag):
  737 	Don't pass keyboard modifiers to mac_store_drag_event, but put
  738 	them as kEventParamKeyModifiers Apple event parameter.
  739 
  740 2007-01-21  Chong Yidong  <cyd@stupidchicken.com>
  741 
  742 	* xdisp.c (try_window): Revert previous change.
  743 
  744 	* dispnew.c (update_text_area): Revert 2006-09-17 change.
  745 	Always redraw non-mode-line rows with mouse-face.
  746 
  747 2007-01-20  Chong Yidong  <cyd@stupidchicken.com>
  748 
  749 	* xdisp.c (try_window): Clear mouse-face highlights first.
  750 
  751 	* window.c (set_window_buffer): Revert 2006-11-22 change.
  752 
  753 2007-01-20  Eli Zaretskii  <eliz@gnu.org>
  754 
  755 	* .gdbinit (ppt, xtype, xmisctype, xint, xptr, xmarker, xframe)
  756 	(xbuffer, xcons, xcar, xcdr): Fix doc strings.
  757 
  758 2007-01-20  Chong Yidong  <cyd@stupidchicken.com>
  759 
  760 	* keyboard.c (read_key_sequence): Extract local map only if the
  761 	given position is in an accessible buffer region.
  762 
  763 2007-01-19  Nick Roberts  <nickrob@snap.net.nz>
  764 
  765 	* .gdbinit: Reformat documentation so that first sentence
  766 	displays properly with "help user-defined" (like apropos).
  767 
  768 2007-01-18  Bruno Haible  <bruno@clisp.org>  (tiny change)
  769 
  770 	* epaths.in: Move PATH_DOC from local/info to local/share/info.
  771 
  772 2007-01-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
  773 
  774 	* macmenu.c (create_and_show_dialog) [TARGET_API_MAC_CARBON]:
  775 	Create movable modal window instead of movable alert window.
  776 	(create_and_show_dialog) [!MAC_OSX]: Use DeactivateControl instead
  777 	of DisableControl.
  778 
  779 	* macselect.c (Fmac_resume_apple_event): Set error number when
  780 	descriptor type of reply is non-null.
  781 
  782 2007-01-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
  783 
  784 	* macmenu.c (create_and_show_dialog) [TARGET_API_MAC_CARBON]:
  785 	Use DisableControl for disabled items.  Set default button to first
  786 	enabled one.  Use icon of application in execution.
  787 
  788 2007-01-13  Eli Zaretskii  <eliz@gnu.org>
  789 
  790 	* process.c (Fdelete_process, Fprocess_id, sigchld_handler):
  791 	Copy PID into EMACS_INT to avoid GCC warnings.
  792 
  793 	* fns.c (maybe_resize_hash_table): Copy new size of hash table
  794 	into EMACS_INT to avoid GCC warnings.
  795 
  796 	* editfns.c (Fuser_uid, Fuser_real_uid): Copy values returned by
  797 	geteuid and getuid into EMACS_INT to avoid GCC warnings.
  798 
  799 	* dired.c (Ffile_attributes): Fix last change.
  800 
  801 2007-01-12  Eli Zaretskii  <eliz@gnu.org>
  802 
  803 	* dired.c (Ffile_attributes): Copy some members of `struct stat'
  804 	into int's to avoid GCC warnings about limited range of short in
  805 	arguments to FIXNUM_OVERFLOW_P.
  806 
  807 2007-01-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
  808 
  809 	* macmenu.c (HAVE_DIALOGS): Define if TARGET_API_MAC_CARBON.
  810 	(mac_handle_dialog_event, install_dialog_event_handler)
  811 	(create_and_show_dialog) [TARGET_API_MAC_CARBON]: New functions.
  812 	(DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
  813 	(DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH)
  814 	(DIALOG_MAX_INNER_WIDTH, DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
  815 	(DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
  816 	(DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
  817 	(DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
  818 	(DIALOG_ICON_TOP_MARGIN) [TARGET_API_MAC_CARBON]: New macros.
  819 	(mac_dialog) [TARGET_API_MAC_CARBON]: Remove function.
  820 	(mac_dialog_show) [TARGET_API_MAC_CARBON]: Use create_and_show_dialog.
  821 
  822 	* macterm.c (x_free_frame_resources) [USE_CG_DRAWING]:
  823 	Call mac_prepare_for_quickdraw.
  824 	(quit_char, make_ctrl_char) [TARGET_API_MAC_CARBON]: Move externs
  825 	outside #ifdef MAC_OSX.
  826 	(mac_quit_char_key_p) [TARGET_API_MAC_CARBON]: Move function
  827 	outside #ifdef MAC_OSX.
  828 	(mac_check_bundle) [MAC_OSX]: Remove unused function.
  829 
  830 	* macterm.h (mac_quit_char_key_p): Move extern outside #ifdef MAC_OSX.
  831 	(HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Parenthesize definitions.
  832 
  833 2007-01-11  Jan Djärv  <jan.h.d@swipnet.se>
  834 
  835 	* alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use pthread_equal,
  836 	block/unblock SIGIO.
  837 
  838 2007-01-10  Stefan Monnier  <monnier@iro.umontreal.ca>
  839 
  840 	* editfns.c (Fformat): Allow integer-format to work with floats of size
  841 	larger than most-positive-fixnum (but still smaller than MAXINT).
  842 
  843 	* dired.c (Ffile_attributes): Use floats for large uids/gids.
  844 
  845 2007-01-09  Eli Zaretskii  <eliz@gnu.org>
  846 
  847 	* emacs.c (syms_of_emacs) <path-separator>: Doc fix.
  848 
  849 2007-01-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
  850 
  851 	* callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Add BLOCK_INPUT
  852 	around mkstemp.
  853 
  854 	* image.c (XDrawLine) [MAC_OS]: Remove macro.
  855 	(XCreateGC_pixmap) [!HAVE_NTGUI]: Likewise.
  856 	(x_disable_image) [!HAVE_NTGUI]: Use XCreateGC instead of
  857 	XCreateGC_pixmap.
  858 
  859 	* macgui.h (Display): Typedef to opaque type.
  860 
  861 	* macmenu.c (mac_dialog_modal_filter) [MAC_OSX]: New function.
  862 	(Fx_popup_dialog) [MAC_OSX]: Use standard alert if called from
  863 	Fmessage_box, Fyes_or_no_p, or Fy_or_n_p.
  864 	[MAC_OS_X_VERSION_MAX_ALLOWED >= 1030] (menu_quit_handler):
  865 	Use mac_quit_char_key_p.
  866 
  867 	* macterm.c (XDrawLine): Rename from mac_draw_line_to_pixmap.
  868 	(XCreateGC): Change type of 2nd argument to void *.
  869 	(XFreeGC) [USE_CG_DRAWING && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
  870 	Fix last change.
  871 	(mac_to_emacs_modifiers): Change return type to int.
  872 	[USE_CARBON_EVENTS] (mac_event_to_emacs_modifiers): Likewise.
  873 	(mac_mapped_modifiers): New function.
  874 	(XTread_socket): Use it.
  875 	[USE_TSM] (mac_handle_text_input_event): Likewise.
  876 	(do_window_update) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
  877 	(mac_quit_char_modifiers, mac_quit_char_keycode) [MAC_OSX]:
  878 	Remove variables.
  879 	(mac_determine_quit_char_modifiers, init_quit_char_handler)
  880 	[MAC_OSX]: Remove functions.
  881 	(make_ctrl_char) [MAC_OSX]: Add extern.
  882 	(mac_quit_char_key_p) [MAC_OSX]: New function.
  883 	(mac_initialize) [MAC_OSX]: Don't call init_quit_char_handler.
  884 
  885 	* macterm.h (FONT_MAX_WIDTH): Remove unused macro.
  886 	(XCreateGC): Change type in extern.
  887 	(XDrawLine): Rename from mac_draw_line_to_pixmap.
  888 	(mac_quit_char_key_p) [MAC_OSX]: Add extern.
  889 
  890 2007-01-08  Jan Djärv  <jan.h.d@swipnet.se>
  891 
  892 	* keyboard.c (init_keyboard): Initialize interrupt_input_blocked and
  893 	interrupt_input_pending.
  894 
  895 	* xterm.h (x_display_info): New: net_supported_atoms,
  896 	nr_net_supported_atoms and net_supported_window.
  897 
  898 	* xterm.c (last_user_time): New variable.
  899 	(handle_one_xevent): Set last_user_time from events that have Time.
  900 	Set net_supported_window to 0 when reparented.
  901 	(wm_supports): New function.
  902 	(do_ewmh_fullscreen): Use wm_supports to check for _NET_WM_STATE.
  903 	(x_term_init): Initialize net_supported_atoms, nr_net_supported_atoms
  904 	and net_supported_window.
  905 
  906 2007-01-05  Kim F. Storm  <storm@cua.dk>
  907 
  908 	* indent.c (Fvertical_motion): Fix it overshoot check for overlay
  909 	strings without embedded newlines immediately followed by newline.
  910 
  911 2007-01-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
  912 
  913 	* editfns.c (Fformat_time_string, Fdecode_time, Fencode_time)
  914 	(Fcurrent_time_string, Fcurrent_time_zone): Add BLOCK_INPUT around
  915 	gmtime/localtime/emacs_memftimeu/mktime.
  916 
  917 	* mac.c (Fmac_set_file_creator): Use MAC_EMACS_CREATOR_CODE
  918 	instead of 'EMAx'.
  919 	[!MAC_OSX] (sys_open, sys_creat, sys_fopen): Likewise.
  920 
  921 	* macgui.h (struct _XGC) [USE_CG_DRAWING
  922 	&& MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New members cg_fore_color
  923 	and cg_back_color.
  924 
  925 	* macmenu.c (Vshow_help_function) [TARGET_API_MAC_CARBON]: Add extern.
  926 	(restore_show_help_function, menu_target_item_handler)
  927 	[TARGET_API_MAC_CARBON]: New functions.
  928 	(install_menu_target_item_handler): New function.
  929 	(add_menu_item) [TARGET_API_MAC_CARBON]: Set help string as menu
  930 	item property.
  931 
  932 	* macterm.c (CG_SET_FILL_COLOR_MAYBE_WITH_CGCOLOR)
  933 	(CG_SET_FILL_COLOR_WITH_GC_FOREGROUND)
  934 	(CG_SET_FILL_COLOR_WITH_GC_BACKGROUND)
  935 	(CG_SET_STROKE_COLOR_MAYBE_WITH_CGCOLOR)
  936 	(CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND): New macros.
  937 	(mac_cg_color_space_rgb) [USE_CG_DRAWING]: New variable.
  938 	(mac_cg_color_black) [USE_CG_DRAWING
  939 	&& MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New variable.
  940 	(init_cg_color) [USE_CG_DRAWING]: New function.
  941 	(mac_draw_line, mac_draw_rectangle) [USE_CG_DRAWING]: Use
  942 	CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND instead of CG_SET_STROKE_COLOR.
  943 	(mac_erase_rectangle, mac_clear_window, mac_draw_cg_image)
  944 	(mac_fill_rectangle, mac_draw_image_string_cg) [USE_CG_DRAWING]:
  945 	Use CG_SET_FILL_COLOR_WITH_GC_FOREGROUND or
  946 	CG_SET_FILL_COLOR_WITH_GC_BACKGROUND instead of CG_SET_FILL_COLOR.
  947 	(mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Likewise.
  948 	(XCreateGC, XFreeGC, XSetForeground, XSetBackground) [USE_CG_DRAWING
  949 	&& MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use gc->cg_fore_color and/or
  950 	gc->cg_back_color.
  951 	(install_drag_handler, remove_drag_handler): Make extern.
  952 	(install_menu_target_item_handler): Add extern.
  953 	(install_window_handler): Call install_menu_target_item_handler.
  954 	[MAC_OS8] (main): Use MAC_EMACS_CREATOR_CODE instead of 'EMAx'.
  955 	(mac_initialize) [USE_CG_DRAWING]: Call init_cg_color.
  956 
  957 	* macterm.h (MAC_EMACS_CREATOR_CODE): New enumerator.
  958 
  959 2007-01-04  Juanma Barranquero  <lekktu@gmail.com>
  960 
  961 	* window.c (Fwindow_end): Fix use of >= operator.
  962 
  963 2007-01-03  Richard Stallman  <rms@gnu.org>
  964 
  965 	* window.c (Fwindow_end): Check BUF_OVERLAY_MODIFF like BUF_MODIFF.
  966 
  967 2007-01-02  Jan Djärv  <jan.h.d@swipnet.se>
  968 
  969 	* gtkutil.h (xg_menu_item_cb_data_): Remove highlight_id and
  970 	unhighlight_id.
  971 
  972 	* gtkutil.c (menuitem_highlight_callback): Invoked widget is the
  973 	parent of the menu item.  Get menu item widget from event.
  974 	(xg_create_one_menuitem, xg_update_menu_item): highlight_id and
  975 	unhighlight_id has been removed.
  976 	(create_menus): Connect enter/leave-notify-event to the menu instead
  977 	of individual items.
  978 
  979 2006-12-31  Jan Djärv  <jan.h.d@swipnet.se>
  980 
  981 	* gtkutil.c (update_frame_tool_bar): Connect create-menu-proxy with
  982 	xg_tool_bar_menu_proxy.
  983 	(xg_tool_bar_menu_proxy): New function.
  984 	(xg_tool_bar_proxy_callback): New function.
  985 
  986 2006-12-30  Jan Djärv  <jan.h.d@swipnet.se>
  987 
  988 	* gtkutil.c (xg_tool_bar_button_cb): Save last modifier on widget.
  989 	(xg_tool_bar_callback): Remove check for button.
  990 	(update_frame_tool_bar): Put an event box in the tool bar and a button
  991 	in the event box.  Attach enter/leave-notify-event to the event box.
  992 
  993 2006-12-30  Richard Stallman  <rms@gnu.org>
  994 
  995 	* keymap.c (Fdefine_key): Doc fix.
  996 
  997 2006-12-29  Kim F. Storm  <storm@cua.dk>
  998 
  999 	* frame.h (struct frame): New member minimize_tool_bar_window_p.
 1000 
 1001 	* xdisp.c (auto_resize_tool_bars_p): Replace with ...
 1002 	(Vauto_resize_tool_bars): ... this.
 1003 	(syms_of_xdisp): DEFVAR_LISP and initialize it.  Update doc string
 1004 	to describe new value `grow-only', and use of C-l.
 1005 	(display_tool_bar_line): Only use default face for border below
 1006 	toolbar if not grow-only (to get acceptable visual appearance).
 1007 	Explicitly set visible_height for empty toolbar lines.
 1008 	(redisplay_tool_bar): Handle `grow-only' setting.  Check and clear
 1009 	minimize_tool_bar_window_p flag.
 1010 
 1011 	* window.c (Frecenter): Set minimize_tool_bar_window_p flag
 1012 	when called without arg to redraw with minimum toolbar height.
 1013 	Update doc string.
 1014 
 1015 2006-12-29  Jason Rumney  <jasonr@gnu.org>
 1016 
 1017 	* s/ms-w32.h (tzname): Do not define in msvc8.
 1018 	(utime): Do not define in msvc8.
 1019 
 1020 	* regex.c (regerror): Change parameter name err_code.
 1021 
 1022 2006-12-26  Richard Stallman  <rms@gnu.org>
 1023 
 1024 	* search.c (Fsearch_forward): Doc fix.
 1025 
 1026 	* callint.c (Finteractive): Doc fix.
 1027 
 1028 2006-12-25  Kim F. Storm  <storm@cua.dk>
 1029 
 1030 	* s/ms-w32.h (BROKEN_DATAGRAM_SOCKETS): Define it.
 1031 
 1032 2006-12-23  Eli Zaretskii  <eliz@gnu.org>
 1033 
 1034 	* keyboard.c (some_mouse_moved): Fix last change.
 1035 
 1036 2006-12-22  Eli Zaretskii  <eliz@gnu.org>
 1037 
 1038 	* callproc.c (syms_of_callproc) <shell-file-name>: Doc fix.
 1039 
 1040 2006-12-22  Mark Davies  <mark@mcs.vuw.ac.nz>
 1041 
 1042 	* m/amdx86-64.h, m/hp800.h: Add support for NetBSD.
 1043 	* m/sh3el.h: New file.
 1044 
 1045 2006-12-22  Eli Zaretskii  <eliz@gnu.org>
 1046 
 1047 	* makefile.w32-in (emacs, temacs): Depend on stamp_BLD instead of
 1048 	$(BLD).
 1049 	($(OBJ0) $(OBJ1) $(WIN32OBJ)): New dependency on stamp_BLD.
 1050 	(bootstrap-temacs): Pass $(XMFLAGS) to sub-make.
 1051 	($(OBJ0) $(OBJ1) $(WIN32OBJ)): Add lastfile.$(O) and firstfile.$(O).
 1052 	(clean): Delete stamp_BLD.
 1053 
 1054 2006-12-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 1055 
 1056 	* macfns.c (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
 1057 	Call mac_update_proxy_icon also when buffer modification flag changed.
 1058 	[TARGET_API_MAC_CARBON] (mac_update_proxy_icon): Don't update alias,
 1059 	but compare FSRef/FSSpec of resolved alias.
 1060 
 1061 2006-12-21  Kim F. Storm  <storm@cua.dk>
 1062 
 1063 	* w32.c (_sys_wait_accept): Fix handle leak.
 1064 
 1065 2006-12-20  Jan Djärv  <jan.h.d@swipnet.se>
 1066 
 1067 	* sound.c: Include <alsa/asoundlib.h> if ALSA_SUBDIR_INCLUDE is
 1068 	defined.
 1069 
 1070 2006-12-20  Kim F. Storm  <storm@cua.dk>
 1071 
 1072 	* s/ms-w32.h (BROKEN_NON_BLOCKING_CONNECT): Define it.
 1073 
 1074 2006-12-19  Juanma Barranquero  <lekktu@gmail.com>
 1075 
 1076 	* keyboard.c (syms_of_keyboard) <double-click-time>:
 1077 	* mac.c (Fmac_code_convert_string):
 1078 	* search.c (Fsearch_forward): Doc fixes.
 1079 
 1080 2006-12-19  Kim F. Storm  <storm@cua.dk>
 1081 
 1082 	Rework 2006-12-04 change.  A SIGUSR1 (SIGUSR2) signal now generates
 1083 	a sigusr1 event instead of [signal usr1] sequence, and signal events
 1084 	are now supposed to be handled via special-event-map.
 1085 
 1086 	* keyboard.c (kbd_buffer_store_event_hold): Undo 2006-12-04 change.
 1087 	(make_lispy_event): Don't generate Qsignal prefix for code 0.
 1088 	Abort if signal code is unknown.
 1089 	(store_user_signal_events): Don't make Qsignal prefix (code 0).
 1090 	(Qsignal): Move declaration back to process.c.
 1091 	(syms_of_keyboard): Don't intern or staticpro it here.
 1092 
 1093 	* process.c (Qsignal): Declare here.
 1094 	(syms_of_process): Intern or staticpro it.
 1095 
 1096 	* emacs.c (main): Rename user signals to sigusr1 and sigusr2.
 1097 
 1098 	* .gdbinit: Pass on SIGUSR1 and SIGUSR2 to Emacs.
 1099 
 1100 2006-12-19  Juanma Barranquero  <lekktu@gmail.com>
 1101 
 1102 	* buffer.c (syms_of_buffer) <buffer-display-table>:
 1103 	<scroll-up-aggressively, scroll-down-aggressively>: Doc fixes.
 1104 
 1105 2006-12-17  Richard Stallman  <rms@gnu.org>
 1106 
 1107 	* fileio.c (Fread_file_name_internal): Pass Vread_file_name_predicate
 1108 	to Ffile_name_completion.
 1109 
 1110 	* dired.c (file_name_completion): New arg PREDICATE.  Some cleanup.
 1111 	(Ffile_name_completion): New arg PREDICATE.
 1112 
 1113 2006-12-17  Juanma Barranquero  <lekktu@gmail.com>
 1114 
 1115 	* buffer.c (Fkill_buffer): Doc fix.
 1116 	(syms_of_buffer) <kill-buffer-query-functions>: Doc fix.
 1117 
 1118 2006-12-16  Juanma Barranquero  <lekktu@gmail.com>
 1119 
 1120 	* minibuf.c (Ftry_completion): Check that obarray buckets are symbols.
 1121 
 1122 2006-12-16  Eli Zaretskii  <eliz@gnu.org>
 1123 
 1124 	* w32fns.c (w32-window-exists-p): New function.
 1125 	(syms_of_w32fns): Defsubr it.
 1126 
 1127 	* prefix-args.c [STDC_HEADERS]: Include stdlib.h.
 1128 
 1129 2006-12-16  Juanma Barranquero  <lekktu@gmail.com>
 1130 
 1131 	* minibuf.c (Ftry_completion): Use `check_obarray' if ALIST is a vector.
 1132 
 1133 2006-12-15  Eli Zaretskii  <eliz@gnu.org>
 1134 
 1135 	* emacs.c (USAGE3): Clarify documentation of --color.
 1136 
 1137 2006-12-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 1138 
 1139 	* mac.c (wakeup_from_rne_enabled_p) [TARGET_API_MAC_CARBON]:
 1140 	New variable.
 1141 	(ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE): New macros.
 1142 	[!MAC_OSX] (select): Use them.
 1143 	[MAC_OSX] (select_and_poll_event, sys_select): Likewise.
 1144 	(mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: New function.
 1145 
 1146 	* macfns.c (mac_atsu_font_face_attributes) [USE_ATSUI]: Add extern.
 1147 	(Fmac_atsu_font_face_attributes) [USE_ATSUI]: New function.
 1148 	(syms_of_macfns) [USE_ATSUI]: Defsubr it.
 1149 
 1150 	* macselect.c [TARGET_API_MAC_CARBON] (mac_do_receive_drag):
 1151 	Use mac_wakeup_from_rne instead of mac_post_mouse_moved_event.
 1152 
 1153 	* macterm.c (mac_query_char_extents) [USE_ATSUI]: Don't call
 1154 	ATSUGetGlyphBounds if not necessary.
 1155 	(Vmac_atsu_font_table) [USE_ATSUI]: Remove variable.
 1156 	(syms_of_macterm) [USE_ATSUI]: Don't defvar it.
 1157 	(fm_get_style_from_font, atsu_find_font_from_family_name)
 1158 	(atsu_find_font_family_name, mac_atsu_font_face_attributes)
 1159 	[USE_ATSUI]: New functions.
 1160 	(init_font_name_table) [USE_ATSUI]: Use atsu_find_font_family_name.
 1161 	(mac_load_query_font) [USE_ATSUI]: Use atsu_find_font_from_family_name.
 1162 	Don't get metrics for Latin-1 right half characters.
 1163 	(mac_load_query_font): Don't load font if space width is not positive.
 1164 	[TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event):
 1165 	Use mac_wakeup_from_rne instead of mac_post_mouse_moved_event.
 1166 	(XTread_socket): Call SelectWindow when unfocused frame is clicked.
 1167 
 1168 	* macterm.h (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: Add extern.
 1169 
 1170 2006-12-15  Kim F. Storm  <storm@cua.dk>
 1171 
 1172 	* keyboard.c (ignore_mouse_drag_p): New global var.
 1173 	(some_mouse_moved): Return 0 if it is non-zero.
 1174 	(make_lispy_event): Generate click event on mouse up if
 1175 	ignore_mouse_drag_p is non-zero, even if mouse moved.
 1176 	Clear ignore_mouse_drag_p on mouse down/up.
 1177 
 1178 	* xdisp.c (redisplay_window): Set ignore_mouse_drag_p if tool-bar
 1179 	is resized to avoid generating a mouse drag event.
 1180 
 1181 2006-12-14  Juanma Barranquero  <lekktu@gmail.com>
 1182 
 1183 	* w32fns.c (w32_wnd_proc): Force non-tooltip frames to respect the
 1184 	minimum tracking size.  Remove non-working old hack to do the same.
 1185 
 1186 2006-12-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 1187 
 1188 	* emacs.c (handle_user_signal): Move function to keyboard.c.
 1189 	(main): Use add_user_signal for SIGUSR1 and SIGUSR2.
 1190 
 1191 	* keyboard.c (make_lispy_event): Use find_user_signal_name.
 1192 	(read_avail_input): Store pending user signal events.
 1193 	(struct user_signal_info): New struct.
 1194 	(user_signals): New variable.
 1195 	(add_user_signal, store_user_signal_events)
 1196 	(find_user_signal_name): New functions.
 1197 	(handle_user_signal): Move function from emacs.c.  Don't store
 1198 	USER_SIGNAL_EVENT here, but increment number of pending signals.
 1199 
 1200 	* keyboard.h (add_user_signals): Add extern.
 1201 
 1202 2006-12-11  Juanma Barranquero  <lekktu@gmail.com>
 1203 
 1204 	* buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
 1205 	<default-scroll-up-aggressively, default-scroll-down-aggressively>:
 1206 	<line-spacing, left-margin>: Doc fixes.
 1207 
 1208 	* xdisp.c (syms_of_xdisp) <mode-line-inverse-video>: Doc fix.
 1209 
 1210 2006-12-10  Kim F. Storm  <storm@cua.dk>
 1211 
 1212 	* xdisp.c (show_mouse_face): Never use text cursor in tool-bar.
 1213 
 1214 2006-12-10  Juanma Barranquero  <lekktu@gmail.com>
 1215 
 1216 	* abbrev.c (syms_of_abbrev) <last-abbrev-text>:
 1217 	* buffer.c (syms_of_buffer) <default-major-mode>:
 1218 	* keymap.c (Flookup_key):
 1219 	* lread.c (Feval_buffer, Feval_region):
 1220 	* macterm.c (syms_of_macterm) <x-use-underline-position-properties>:
 1221 	<x-underline-at-descent-line, mac-emulate-three-button-mouse>:
 1222 	* marker.c (Fmarker_insertion_type):
 1223 	* minibuf.c (syms_of_minibuf) <minibuffer-completion-table>:
 1224 	* msdos.c (syms_of_msdos) <delete-exited-processes>:
 1225 	* w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
 1226 	<x-underline-at-descent-line>:
 1227 	* xdisp.c (format-mode-line):
 1228 	* xterm.c (syms_of_xterm) <x-use-underline-position-properties>:
 1229 	<x-underline-at-descent-line>: Doc fixes.
 1230 
 1231 2006-12-10  Andreas Schwab  <schwab@suse.de>
 1232 
 1233 	* systime.h (EMACS_GET_TIME): Remove check for
 1234 	HAVE_STRUCT_TIMEZONE which is never defined.
 1235 
 1236 2006-12-10  Alan Mackenzie  <acm@muc.de>
 1237 
 1238 	* syntax.c (Fpartial_parse_sexp): Correct Docco: Elt 8 of the
 1239 	result is now neither the last elt nor optional for OLDSTATE.
 1240 
 1241 2006-12-09  Eli Zaretskii  <eliz@gnu.org>
 1242 
 1243 	* process.c (Fsignal_process): Doc fix.  Use XFLOAT_DATA to
 1244 	extract the process ID from a Lisp float.
 1245 
 1246 2006-12-09  Chong Yidong  <cyd@stupidchicken.com>
 1247 
 1248 	* xterm.c (XTframe_raise_lower): Comment out _NET_ACTIVE_WINDOW code.
 1249 
 1250 2006-12-08  Eli Zaretskii  <eliz@gnu.org>
 1251 
 1252 	* frame.h (PIX_TYPE): Redefine as `unsigned long', for 64-bit
 1253 	platforms where long is 64-bit.
 1254 
 1255 	* msdos.h (PIX_TYPE): Redefine as `unsigned long'.
 1256 
 1257 2006-12-08  NAKAJI Hiroyuki  <nakaji@jp.freebsd.org>  (tiny change)
 1258 
 1259 	* m/amdx86-64.h: Add support for Solaris 10 on x86-64.
 1260 
 1261 2006-12-08  Kenichi Handa  <handa@m17n.org>
 1262 
 1263 	* xterm.c (x_query_font): Use xstricmp instead off strcasecmp.
 1264 
 1265 2006-12-08  Juanma Barranquero  <lekktu@gmail.com>
 1266 
 1267 	* emacs.c (syms_of_emacs) <system-type>: Doc fix.
 1268 
 1269 2006-12-07  Kim F. Storm  <storm@cua.dk>
 1270 
 1271 	* process.c (parse_signal): Use xstricmp instead of strcasecmp.
 1272 	(Fsignal_process): Don't use strncasecmp.
 1273 
 1274 2006-12-05  Glenn Morris  <rgm@gnu.org>
 1275 
 1276 	* abbrev.c (Qforce): New Lisp_Object.
 1277 	(Fdefine_abbrev): Do not overwrite non-system abbrevs with system
 1278 	abbrevs, unless 'force is applied.
 1279 	(syms_of_abbrev): Add Qforce.
 1280 
 1281 2006-12-04  Kim F. Storm  <storm@cua.dk>
 1282 
 1283 	* process.c (parse_signal): Rename macro from handle_signal.
 1284 	(Fsignal_process): Also accept lower-case variants of signal
 1285 	names (to align with signal names generated by Emacs itself).
 1286 
 1287 	* emacs.c (handle_USR1_signal, handle_USR2_signal): Replace by...
 1288 	(handle_user_signal): ... this, which generates two USER_SIGNAL_EVENTs
 1289 	first with code == 0 [signal] and one with code == sig number.
 1290 	(main): Use it as handler for SIGUR1 and SIGUSR2.
 1291 
 1292 	* keyboard.c (kbd_buffer_store_event_hold): Don't throw-on-input
 1293 	if first event in [signal xxx] sequence.
 1294 	(lispy_user_signals, Qusr1_signal, Qusr2_signal): Remove.
 1295 	(syms_of_keyboard): Don't intern and staticpro them.
 1296 	(Qsignal): Declare here.
 1297 	(syms_of_keyboard): Intern and staticpro it.
 1298 	(make_lispy_event): Use it.  Intern symbols on the fly for other
 1299 	USER_SIGNAL_EVENTs events.
 1300 
 1301 	* process.c (Qsignal): Declare extern.
 1302 	(syms_of_process): Don't intern/staticpro it here.
 1303 
 1304 	* process.c (read_process_output): Abort if carryover < 0.
 1305 
 1306 2006-12-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 1307 
 1308 	* config.in: Regenerate.
 1309 
 1310 	* fileio.c [__NetBSD__]: Don't define `unix'.
 1311 	(Funix_sync, syms_of_fileio): Use `#ifdef HAVE_SYNC' instead of
 1312 	`#ifdef unix'.
 1313 
 1314 2006-12-04  Glenn Morris  <rgm@gnu.org>
 1315 
 1316 	* Makefile.in (version): New variable, set by configure.
 1317 	(bootstrapclean, mostlyclean): Also remove emacs-${version}.
 1318 
 1319 2006-12-03  Jan Djärv  <jan.h.d@swipnet.se>
 1320 
 1321 	* gtkutil.c (update_frame_tool_bar): Handle modifying a toolbar item
 1322 	without an image.
 1323 
 1324 2006-12-01  Eli Zaretskii  <eliz@gnu.org>
 1325 
 1326 	* w32fns.c (Fw32_shell_execute): Doc fix.
 1327 
 1328 2006-11-30  Chong Yidong  <cyd@stupidchicken.com>
 1329 
 1330 	* xdisp.c (move_it_to): Correctly count tab glyphs for continued
 1331 	lines ending in tab.
 1332 
 1333 2006-11-30  Jan Djärv  <jan.h.d@swipnet.se>
 1334 
 1335 	* xterm.c (x_raise_frame): Move setting of _NET_ACTIVE_WINDOW
 1336 	property ...
 1337 	(XTframe_raise_lower): ... to here.
 1338 
 1339 2006-11-30  Kenichi Handa  <handa@m17n.org>
 1340 
 1341 	* regex.c (regex_compile): Fix previous change.
 1342 
 1343 2006-11-29  Juanma Barranquero  <lekktu@gmail.com>
 1344 
 1345 	* sound.c (Fplay_sound_internal): Remove spurious newline in docstring.
 1346 
 1347 2006-11-28  Chong Yidong  <cyd@stupidchicken.com>
 1348 
 1349 	* config.in: Regenerate.
 1350 
 1351 2006-11-28  Kenichi Handa  <handa@m17n.org>
 1352 
 1353 	* regex.c (regex_compile): Don't call SET_LIST_BIT with a
 1354 	multibyte character.
 1355 
 1356 2006-11-27  Chong Yidong  <cyd@stupidchicken.com>
 1357 
 1358 	* s/aix4-2.h: Undefine _NO_PROTO.  Suggested by Joe Buehler.
 1359 
 1360 2006-11-27  Kim F. Storm  <storm@cua.dk>
 1361 
 1362 	* window.c (set_window_buffer): Refactor recent changes.
 1363 
 1364 2006-11-27  Jason Rumney  <jasonr@gnu.org>
 1365 
 1366 	* w32term.c (w32_msg_worker): Declare correctly.
 1367 	(w32_initialize): Don't cast w32_msg_worker.
 1368 
 1369 	* w32fns.c (w32_msg_worker): Define as WINAPI and arg as void pointer.
 1370 
 1371 2006-11-26  Chong Yidong  <cyd@stupidchicken.com>
 1372 
 1373 	* m/amdx86-64.h: Look for standard libs in /usr/lib64 only if that
 1374 	directory exists.
 1375 
 1376 2006-11-25  Eli Zaretskii  <eliz@gnu.org>
 1377 
 1378 	* w16select.c (Fw16_set_clipboard_data): Fix the call to sit_for
 1379 	as per the calling sequence change on 2006-07-11.
 1380 
 1381 2006-11-25  Chong Yidong  <cyd@stupidchicken.com>
 1382 
 1383 	* window.c (set_window_buffer): Use BLOCK_INPUT.
 1384 
 1385 2006-11-24  Juanma Barranquero  <lekktu@gmail.com>
 1386 
 1387 	* fns.c (substring_both): Add missing address operator.
 1388 
 1389 2006-11-24  Stefan Monnier  <monnier@iro.umontreal.ca>
 1390 
 1391 	* fns.c: Use AREF/ASIZE macros.
 1392 	(concat): Provide the full ANSI prototype.
 1393 
 1394 2006-11-24  Juanma Barranquero  <lekktu@gmail.com>
 1395 
 1396 	* buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
 1397 
 1398 2006-11-23  William Smith  <William.Smith@global360.com>  (tiny change)
 1399 
 1400 	* strftime.c (HAVE_SYS__MBSTATE_T_H): Fix typo.
 1401 
 1402 2006-11-22  Alfred M. Szmidt  <ams@gnu.org>  (tiny change)
 1403 
 1404 	* s/openbsd.h (LD_SWITCH_SYSTEM): Remove /usr/pkg/lib and
 1405 	/usr/pkg/lib from the library search path.
 1406 	(LD_SWITCH_X_DEFAULT): New macro.
 1407 
 1408 2006-11-22  Chong Yidong  <cyd@stupidchicken.com>
 1409 
 1410 	* window.c (set_window_buffer): Clear mouse highlight if it is in
 1411 	this window.
 1412 
 1413 2006-11-21  Chong Yidong  <cyd@stupidchicken.com>
 1414 
 1415 	* xfaces.c (realize_default_face): Check if the default font name
 1416 	exists on this display before trying to use it.
 1417 
 1418 2006-11-21  Richard Stallman  <rms@gnu.org>
 1419 
 1420 	* fileio.c: Break line before &&, not after.
 1421 
 1422 2006-11-20  Eli Zaretskii  <eliz@gnu.org>
 1423 
 1424 	* fns.c (concat) [!__GNUC__]: Add prototype.
 1425 
 1426 2006-11-20  Kenichi Handa  <handa@m17n.org>
 1427 
 1428 	* fileio.c (Fread_file_name_internal): Use SBYTES (not SCHARS) to
 1429 	check the tailing slash of a filename.
 1430 
 1431 2006-11-20  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>  (tiny change)
 1432 
 1433 	* indent.c (Fvertical_motion): Include composition in the case of
 1434 	overshoot expected.
 1435 
 1436 2006-11-19  Andreas Schwab  <schwab@gnu.org>
 1437 
 1438 	* xfaces.c (Fdisplay_supports_face_attributes_p): Initialize supports.
 1439 
 1440 	* xmenu.c (Fx_popup_menu): Initialize selection.
 1441 
 1442 2006-11-18  Andreas Schwab  <schwab@suse.de>
 1443 
 1444 	* s/gnu-linux.h (GC_MARK_SECONDARY_STACK): Update call to mark_memory.
 1445 
 1446 2006-11-17  Tetsurou Okazaki  <okazaki@be.to>  (tiny change)
 1447 
 1448 	* xterm.c (do_ewmh_fullscreen): Declare variable before XSETFRAME
 1449 	to avoid gcc 2.96 error.
 1450 
 1451 2006-11-17  NIIMI Satoshi  <sa2c@sa2c.net>  (tiny change)
 1452 
 1453 	* search.c (simple_search): In the loop of backward searching,
 1454 	check also the byte position against the limit.
 1455 
 1456 2006-11-14  Romain Francoise  <romain@orebokech.com>
 1457 
 1458 	* minibuf.c (Fcompleting_read): Fix typo in docstring.
 1459 
 1460 2006-11-14  Kenichi Handa  <handa@m17n.org>
 1461 
 1462 	* coding.c (code_convert_region): Initialize coding->heading_ascii.
 1463 	(decode_coding_string, code_convert_region): Likewise.
 1464 
 1465 2006-11-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 1466 
 1467 	* config.in: Regenerate.
 1468 
 1469 	* macfns.c (Fx_display_mm_height, Fx_display_mm_width)
 1470 	[MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
 1471 	&& MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
 1472 	CGDisplayScreenSize is available.
 1473 
 1474 	* macmenu.c (menu_quit_handler, install_menu_quit_handler):
 1475 	Replace `#ifdef HAVE_CANCELMENUTRACKING' with
 1476 	`#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1030'.
 1477 	(install_menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
 1478 	&& MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
 1479 	CancelMenuTracking is available.
 1480 
 1481 	* macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg)
 1482 	[MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
 1483 	&& MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
 1484 	CGContextShowGlyphsWithAdvances is available.
 1485 
 1486 2006-11-13  Jason Rumney  <jasonr@gnu.org>
 1487 
 1488 	* s/ms-w32.h: Define HAVE_INET_SOCKETS.
 1489 
 1490 2006-11-13  Nozomu Ando  <nand@mac.com>
 1491 
 1492 	* alloc.c (mark_memory): New argument OFFSET.  All uses changed.
 1493 	Fix address calculations for case END < START.
 1494 	(mark_stack): Impose Lisp_Object alignment on jmp_buf.
 1495 
 1496 2006-11-12  Juanma Barranquero  <lekktu@gmail.com>
 1497 
 1498 	* coding.c (Fencode_sjis_char, Fencode_big5_char):
 1499 	Improve argument/docstring consistency.
 1500 
 1501 	* editfns.c (Fmessage): Doc fixes.
 1502 
 1503 	* process.c (syms_of_process) <delete-exited-processes>: Doc fix.
 1504 
 1505 2006-11-12  Chong Yidong  <cyd@stupidchicken.com>
 1506 
 1507 	* xmenu.c (popup_activated): Define outside HAVE_MENUS.
 1508 
 1509 2006-11-12  Romain Francoise  <romain@orebokech.com>
 1510 
 1511 	* xselect.c (selection-coding-system): Fix docstring.
 1512 
 1513 2006-11-12  Juanma Barranquero  <lekktu@gmail.com>
 1514 
 1515 	* category.c (Fchar_category_set): Improve arg/docstring consistency.
 1516 
 1517 	* data.c (Flogxor):
 1518 	* fns.c (Frandom, Flength, Fsafe_length, Fstring_bytes)
 1519 	(Fstring_equal, Fcompare_strings, Fstring_lessp, Fcopy_sequence)
 1520 	(Fstring_make_unibyte): Fix typos in docstrings.
 1521 
 1522 2006-11-10  Jan Djärv  <jan.h.d@swipnet.se>
 1523 
 1524 	* xterm.h (struct x_display_info): Fix indentation.
 1525 
 1526 	* xterm.c (do_ewmh_fullscreen, XTfullscreen_hook): New functions.
 1527 	(x_check_fullscreen): Call do_ewmh_fullscreen.
 1528 	(x_initialize): Set fullscreen_hook to XTfullscreen_hook.
 1529 
 1530 	* frame.c (x_set_fullscreen): Call fullscreen_hook if set.
 1531 
 1532 	* term.c: Define fullscreen_hook.
 1533 	(syms_of_term): Initialize fullscreen_hook to NULL.
 1534 
 1535 	* termhooks.h: Add fullscreen_hook.
 1536 
 1537 2006-11-08  Juanma Barranquero  <lekktu@gmail.com>
 1538 
 1539 	* bytecode.c (Fbyte_code):
 1540 	* data.c (Fmakunbound): Use SYMBOL_CONSTANT_P macro.
 1541 
 1542 2006-11-06  Juanma Barranquero  <lekktu@gmail.com>
 1543 
 1544 	* lread.c (syms_of_lread):
 1545 	* xsmfns.c (syms_of_xsmfns): Fix typo in docstring.
 1546 
 1547 2006-11-06  Martin Rudalics  <rudalics@gmx.at>
 1548 
 1549 	* macmenu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
 1550 
 1551 	* w32menu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
 1552 	Return nil if building without menus.
 1553 
 1554 	* xmenu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
 1555 	Return nil if building without menus.
 1556 
 1557 2006-11-05  Mark Davies  <mark@mcs.vuw.ac.nz>  (tiny change)
 1558 
 1559 	* s/netbsd.h (POSIX_SIGNALS): Define.
 1560 
 1561 2006-11-05  Martin Rudalics  <rudalics@gmx.at>
 1562 
 1563 	* macmenu.c (Fmenu_or_popup_active_p): New function.
 1564 	(syms_of_macmenu): Defsubr it.
 1565 
 1566 	* w32menu.c (Fmenu_or_popup_active_p): New function.
 1567 	(syms_of_w32menu): Defsubr it.
 1568 	(popup_activated_flag, popup_activated): Remove.
 1569 
 1570 	* xdisp.c (note_mouse_highlight) [HAVE_NTGUI]: Don't bother to
 1571 	check popup_activated.
 1572 
 1573 	* xmenu.c (Fmenu_or_popup_active_p): New function.
 1574 	(syms_of_xmenu): Defsubr it.
 1575 
 1576 2006-11-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 1577 
 1578 	* unexmacosx.c (malloc_cookie): Remove unused variable.
 1579 	(region_list_head, region_list_tail, lca, nlc, infile_lc_highest_addr)
 1580 	(text_seg_lowest_offset, mh, curr_header_offset, infd, outfd)
 1581 	(emacs_zone, data_segment_old_fileoff, data_segment_scp)
 1582 	(num_unexec_regions, unexec_regions): Make variables static.
 1583 	(print_regions, find_emacs_zone_regions): Make static.
 1584 	(unexec_region_info): New typedef.
 1585 	(unexec_regions): Change type from vm_range_t[] to unexec_region_info[].
 1586 	All uses changed.
 1587 	(unexec_regions_recorder): Subtract size of trailing null pages from
 1588 	filesize.  Show filesize.
 1589 	(unexec_regions_merge): Don't merge if null pages of preceding region
 1590 	is not too small.  Use long format in printf.
 1591 	(copy_segment, copy_data_segment): Show filesize.
 1592 	(copy_data_segment): Write filesize bytes of region data.
 1593 	Adjust filesize in segment command accordingly.
 1594 	(dump_it): Use long format in printf.
 1595 
 1596 2006-11-05  Juanma Barranquero  <lekktu@gmail.com>
 1597 
 1598 	* dosfns.c (Finsert_startup_screen):
 1599 	* fns.c (Ffeaturep, syms_of_fns):
 1600 	* frame.c (syms_of_frame): Fix typos in docstrings.
 1601 
 1602 	* unexcw.c (unexec): Fix typo in output message.
 1603 
 1604 2006-11-04  Ralf Angeli  <angeli@caeruleus.net>
 1605 
 1606 	* w32fns.c (w32_createwindow): Remove code for handling -geometry
 1607 	command line option and `initial-frame-alist' which is superfluous
 1608 	after the last change to `w32_createwindow'.
 1609 
 1610 2006-11-04  Slawomir Nowaczyk  <slawek@cs.lth.se>  (tiny change)
 1611 
 1612 	* w32proc.c (sys_wait): Only wait for processes with fd<0.
 1613 	Others should be handled by sys_select instead.  Fixes problems
 1614 	with (progn (start-process "" nil "ls") (call-process "ls")).
 1615 
 1616 2006-11-04  Giorgos Keramidas  <keramida@ceid.upatras.gr>  (tiny change)
 1617 
 1618 	* xmenu.c (Fmenu_bar_open): Declare variable before BLOCK_INPUT to
 1619 	avoid gcc 2.95 error.
 1620 
 1621 2006-11-04  Chong Yidong  <cyd@stupidchicken.com>
 1622 
 1623 	* gtkutil.c (update_frame_tool_bar): If icon image is invalid and
 1624 	wicon is null, insert an empty button.
 1625 
 1626 2006-11-03  Jan Djärv  <jan.h.d@swipnet.se>
 1627 
 1628 	* xterm.c (x_raise_frame): Send _NET_ACTIVE_WINDOW when raising the
 1629 	window.
 1630 
 1631 2006-11-02  Juanma Barranquero  <lekktu@gmail.com>
 1632 
 1633 	* emacs.c (Fkill_emacs): Fix typo in docstring.
 1634 
 1635 2006-11-02  Nozomu Ando  <nand@mac.com>
 1636 
 1637 	* unexmacosx.c (mach_header, segment_command, vm_region, section)
 1638 	[_LP64]: New defines.
 1639 	(VM_REGION_BASIC_INFO_COUNT, VM_REGION_BASIC_INFO, LC_SEGMENT)
 1640 	(MH_MAGIC) [_LP64]: Redefine.
 1641 	(delta): Remove variable.
 1642 	(curr_file_offset, pagesize): New variables.
 1643 	(ROUNDUP_TO_PAGE_BOUNDARY): New macro.
 1644 	(data_segment_old_fileoff): Initialize explicitly.
 1645 	(print_region, unexec_regions_recorder, print_load_command_name)
 1646 	(copy_segment, copy_data_segment): Use long format in printf.
 1647 	(MAX_UNEXEC_REGIONS): Increase to 400.
 1648 	(unexec_regions_recorder): Don't warn too many regions here.
 1649 	(find_emacs_zone_regions): Warn too many regions here.
 1650 	(print_load_command_name) [_LP64]: Show correct load command name.
 1651 	(copy_segment, copy_data_segment): Use variable `curr_file_offset'.
 1652 	Show starting virtual memory address.  Don't show ending file offset.
 1653 	(copy_symtab, copy_dysymtab, copy_twolevelhints): New argument DELTA.
 1654 	(dump_it): Use new local variable `linkedit_delta' and pass to them.
 1655 	Error if trying to handle multiple DATA segments.
 1656 	(unexec): Initialize variable `pagesize'.
 1657 
 1658 2006-11-01  Juanma Barranquero  <lekktu@gmail.com>
 1659 
 1660 	* eval.c (Fcatch): Doc fix.
 1661 
 1662 2006-10-31  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 1663 
 1664 	* image.c [MAC_OS] (image_load_qt_1, xpm_scan, xpm_make_color_table_v)
 1665 	(xpm_put_color_table_v, xpm_get_color_table_v, xpm_make_color_table_h)
 1666 	(xpm_put_color_table_h, xpm_get_color_table_h, xpm_str_to_color_key)
 1667 	(xpm_load_image): Add const qualifier to arguments.
 1668 	[MAC_OS] (xpm_color_key_strings): Make static const.
 1669 
 1670 	* mac.c (create_apple_event_from_event_ref)
 1671 	(create_apple_event_from_drag_ref, skip_white_space, parse_comment)
 1672 	(parse_include_file, parse_binding, parse_component)
 1673 	(parse_resource_name, parse_value, parse_resource_line)
 1674 	(xrm_merge_string_database, xrm_get_resource)
 1675 	(xrm_get_preference_database): Add const qualifier to arguments.
 1676 	[MAC_OSX] (sys_select): Make variable `context' static const.
 1677 
 1678 	* macfns.c (mac_color_map): Make static const.
 1679 	(mac_color_map_lookup): Add const qualifier to arguments.
 1680 
 1681 	* macmenu.c (install_menu_quit_handler): Make variable `typesList'
 1682 	static const.
 1683 	(name_is_separator): Add const qualifier to arguments.
 1684 
 1685 	* macselect.c (init_service_handler): Make variable `specs' static
 1686 	const.
 1687 
 1688 	* macterm.c (mac_create_bitmap_from_bitmap_data): Make variable
 1689 	`swap_nibbles' static const.
 1690 	(atsu_get_text_layout_with_text_ptr): Make variables `lengths',
 1691 	`tags', `sizes', `values' static const.
 1692 	(mac_draw_string_common): Make variables `context' static.
 1693 	Make variables `tags', `sizes', and `values' static const.
 1694 	(pcm_get_status, x_detect_focus_change, x_scroll_bar_handle_click)
 1695 	(xlfdpat_create, xlfdpat_block_match_1, xlfdpat_match)
 1696 	(mac_to_x_fontname, parse_x_font_name, add_mac_font_name)
 1697 	(mac_do_list_fonts, is_fully_specified_xlfd, do_grow_window)
 1698 	(mac_store_event_ref_as_apple_event, mac_make_rdb): Add const
 1699 	qualifier to arguments.
 1700 	(xlfd_scalable_fields, keycode_to_xkeysym_table)
 1701 	(fn_keycode_to_keycode_table): Make static const.
 1702 	(mac_load_query_font): Make variables `tags', `sizes', `values',
 1703 	`types', and `selectors' static const.
 1704 	(mac_handle_command_event, mac_handle_window_event):
 1705 	Make variables `names' and `types' static const.
 1706 	(init_command_handler, install_window_handler): Make variables
 1707 	`specs*' static const.
 1708 	(mac_handle_font_event, mac_handle_text_input_event)
 1709 	(mac_store_service_event): Make variables `names' and `types'
 1710 	const.  Make variables `names_*' and `types_*' static const.
 1711 
 1712 	* macterm.h (create_apple_event_from_event_ref)
 1713 	(create_apple_event_from_drag_ref, xrm_merge_string_database)
 1714 	(xrm_get_resource, xrm_get_preference_database): Add const
 1715 	qualifier to arguments in externs.
 1716 
 1717 2006-10-31  Kenichi Handa  <handa@m17n.org>
 1718 
 1719 	* xfns.c (xic_create_xfontset): Fix previous change.
 1720 
 1721 2006-10-30  Chong Yidong  <cyd@stupidchicken.com>
 1722 
 1723 	* s/openbsd.h (LD_SWITCH_SYSTEM): Add /usr/pkg/lib and
 1724 	/usr/pkg/lib to library search path.
 1725 
 1726 2006-10-29  Mark Davies  <mark@mcs.vuw.ac.nz>  (tiny change)
 1727 
 1728 	* ralloc.c (relinquish): Use a long for excess space counter to
 1729 	handle 64-bit case correctly.
 1730 
 1731 2006-10-29  Jeramey Crawford  <jeramey@jeramey.com>
 1732 
 1733 	* m/amdx86-64.h: Add defines for OpenBSD x86-64.
 1734 
 1735 2006-10-29  Juanma Barranquero  <lekktu@gmail.com>
 1736 
 1737 	* window.c (Fdisplay_buffer): Fix typo in docstring.
 1738 
 1739 2006-10-27  Ben North  <ben@redfrontdoor.org>  (tiny change)
 1740 
 1741 	* w32term.c (x_draw_glyph_string_foreground): Set background mode
 1742 	to TRANSPARENT before using overstrike to simulate bold faces.
 1743 
 1744 	* xfaces.c (best_matching_font): Fix logic to decide whether to
 1745 	use overstriking to simulate bold-face (it was reversed).
 1746 
 1747 2006-10-23  Kim F. Storm  <storm@cua.dk>
 1748 
 1749 	* xdisp.c (remember_mouse_glyph): Do nothing if glyphs are not
 1750 	initialized.
 1751 
 1752 	* keyboard.c (read_char): Make an element (t . EVENT) in
 1753 	unread-command-events add EVENT to the current command's key sequence.
 1754 	(syms_of_keyboard) <unread-command-events>: Update doc.
 1755 
 1756 2006-10-21  Richard Stallman  <rms@gnu.org>
 1757 
 1758 	* minibuf.c (Vread_expression_map): Define here.
 1759 	(Qread_expression_history): New variable.
 1760 	(syms_of_minibuf): Initialize them.
 1761 	(Feval_minibuffer): Use Vread_expression_map and
 1762 	Qread_expression_history.
 1763 
 1764 2006-10-21  Kenichi Handa  <handa@m17n.org>
 1765 
 1766 	* xfns.c (xic_create_fontsetname): If ADSTYLE field is not a wild
 1767 	card, change it to "*".
 1768 	(xic_create_xfontset): Call XCreateFontSet for each single
 1769 	fontname in fontsetname.
 1770 
 1771 2006-10-19  Chong Yidong  <cyd@stupidchicken.com>
 1772 
 1773 	* callint.c (callint_message): Convert to a Lisp string.
 1774 	(syms_of_callint): Initialize it.
 1775 	(callint_message_size): Var deleted.
 1776 	(Fcall_interactively): Use Fformat instead of doprnt to construct
 1777 	prompt string.
 1778 
 1779 2006-10-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 1780 
 1781 	* xdisp.c (display_mode_line): Clear enabled_p flag on mode-line row.
 1782 
 1783 2006-10-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 1784 
 1785 	* macfns.c (Vmac_carbon_version_string) [TARGET_API_MAC_CARBON]:
 1786 	New variable.
 1787 	(syms_of_macfns) [TARGET_API_MAC_CARBON]: Defvar it.
 1788 
 1789 2006-10-19  Jan Djärv  <jan.h.d@swipnet.se>
 1790 
 1791 	* xselect.c (x_handle_selection_request): If the converted_selection
 1792 	is nil or XCDR (converted_selection) is nil, decline the request.
 1793 
 1794 2006-10-16  Jan Djärv  <jan.h.d@swipnet.se>
 1795 
 1796 	* gtkutil.c (get_utf8_string): Remove warnings with casts.
 1797 	(xg_tool_bar_button_cb): Ditto.
 1798 	(xg_tool_bar_callback): Ditto.
 1799 
 1800 2006-10-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 1801 
 1802 	* dispnew.c (adjust_frame_glyphs_for_frame_redisplay): Remove unused
 1803 	variable ch_dim.
 1804 	(adjust_frame_glyphs_for_window_redisplay): Likewise.  Don't allocate
 1805 	menu bar window matrices on non-X systems.
 1806 
 1807 	* mac.c (Fmac_get_preference, Fmac_code_convert_string): Add GCPROs.
 1808 
 1809 	* macterm.c (mac_query_char_extents): Don't return glyph ID if layout
 1810 	adjustment is needed.
 1811 	(mac_load_query_font): Check if width and height are positive.
 1812 
 1813 2006-10-14  Richard Stallman  <rms@gnu.org>
 1814 
 1815 	* sysdep.c (init_sys_modes): Delete DEFVAR_LISP in the wrong place.
 1816 
 1817 2006-10-13  Chong Yidong  <cyd@stupidchicken.com>
 1818 
 1819 	* xdisp.c (decode_mode_spec): Ignore %c and %l constructs in frame
 1820 	title.
 1821 
 1822 2006-10-12  Chong Yidong  <cyd@stupidchicken.com>
 1823 
 1824 	* keymap.c (Fkey_binding): Check Lisp_Object types before doing
 1825 	XCAR and XINT.
 1826 
 1827 2006-10-12  Romain Francoise  <romain@orebokech.com>
 1828 
 1829 	* image.c (xbm_read_bitmap_data): Delete extra semicolon.
 1830 
 1831 2006-10-10  Stefan Monnier  <monnier@iro.umontreal.ca>
 1832 
 1833 	* eval.c: Include xterm.h for x_fully_uncatch_errors and friends.
 1834 
 1835 	* dispextern.h: Declare x_create_bitmap_from_xpm_data.
 1836 
 1837 	* xterm.c (x_check_expected_move): Remove unused var `count'.
 1838 
 1839 	* xmenu.c (syms_of_xmenu): Use Ffset rather than Fdefalias, since
 1840 	Fdefalias is not declared in any *.h file.
 1841 
 1842 2006-10-09  Chong Yidong  <cyd@stupidchicken.com>
 1843 
 1844 	* dispnew.c (sit_for): Sit forever if TIMEOUT is t.
 1845 
 1846 	* keyboard.c (command_loop_1): Handle non-number values of
 1847 	`minibuffer-message-timeout'.
 1848 	(Fexecute_extended_command): Fix typo.
 1849 
 1850 	* minibuf.c (temp_echo_area_glyphs): Sit for
 1851 	`minibuffer-message-timeout' seconds.
 1852 
 1853 2006-10-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 1854 
 1855 	* macterm.c (mac_draw_image_string, mac_draw_image_string_16):
 1856 	Add argument OVERSTRIKE_P.
 1857 	(mac_draw_string_common, mac_draw_image_string_cg): Likewise.
 1858 	Support overstrike.
 1859 	(mac_draw_string, mac_draw_string_16): Remove functions.
 1860 	(x_draw_glyph_string_foreground): Use overstrike when needed.
 1861 	(x_draw_composite_glyph_string_foreground): Likewise.
 1862 	Use mac_draw_image_string_16 instead of mac_draw_string_16.
 1863 	(mac_load_query_font): Rename from XLoadQueryFont.  Take argument
 1864 	F instead of DPY.  All uses changed.  Don't save/restore font.
 1865 
 1866 2006-10-07  Ralf Angeli  <angeli@caeruleus.net>
 1867 
 1868 	* w32fns.c (w32_createwindow): Honor left and top positions if
 1869 	supplied explicitly.
 1870 
 1871 2006-10-06  Kim F. Storm  <storm@cua.dk>
 1872 
 1873 	* xdisp.c (pos_visible_p): Fix value when EOB is visible.
 1874 
 1875 2006-10-05  Chong Yidong  <cyd@stupidchicken.com>
 1876 
 1877 	* frame.c (Qinhibit_face_set_after_frame_default): New var.
 1878 	(syms_of_frame): Initialize it.
 1879 	(x_set_frame_parameters): Avoid resetting :font attributes to the
 1880 	new-frame defaults.
 1881 
 1882 2006-10-03  Stefan Monnier  <monnier@iro.umontreal.ca>
 1883 
 1884 	* lisp.h (clear_regexp_cache): Declare.
 1885 
 1886 	* search.c (compile_pattern): Only check `cp->syntax_table' if needed.
 1887 	(compile_pattern_1): Remember `used_syntax' in `cp->syntax_table'.
 1888 	(clear_regexp_cache): Only flush those regexps which depend on
 1889 	a syntax-table.
 1890 
 1891 	* regex.c (regex_compile): Set the new `used_syntax' bit.
 1892 
 1893 	* regex.h: Remove file local variables.
 1894 	(struct re_pattern_buffer): New field `used_syntax'.
 1895 
 1896 2006-10-03  Kim F. Storm  <storm@cua.dk>
 1897 
 1898 	* process.c (list_processes_1): Run sentinels before removing dead
 1899 	processes.  Also remove `closed' network connections.
 1900 
 1901 2006-10-01  Stefan Monnier  <monnier@iro.umontreal.ca>
 1902 
 1903 	* xdisp.c (handle_fontified_prop): Don't fontify at EOB.
 1904 
 1905 2006-09-30  Eli Zaretskii  <eliz@gnu.org>
 1906 
 1907 	* config.in: Regenerated.
 1908 
 1909 2006-09-29  Juri Linkov  <juri@jurta.org>
 1910 
 1911 	* buffer.c (syms_of_buffer): Reorder coding systems in the
 1912 	docstring of %z to the real order displayed in the modeline.
 1913 
 1914 2006-09-28  Stefan Monnier  <monnier@iro.umontreal.ca>
 1915 
 1916 	* keymap.c (Fdefine_key): Yet another int/Lisp_Object mixup (YAILOM).
 1917 
 1918 2006-09-26  Chong Yidong  <cyd@stupidchicken.com>
 1919 
 1920 	* indent.c (Fvertical_motion): Do move back if the Lisp string
 1921 	being displayed contains newlines.
 1922 
 1923 2006-09-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 1924 
 1925 	* macterm.c (mac_compute_glyph_string_overhangs, XLoadQueryFont)
 1926 	[USE_CG_DRAWING]: Call mac_prepare_for_quickdraw before QDTextBounds.
 1927 
 1928 2006-09-26  Kenichi Handa  <handa@m17n.org>
 1929 
 1930 	* keymap.c (Fsingle_key_description): For an invalid char, return
 1931 	"Invalid char code NNNNN".
 1932 
 1933 2006-09-25  Chong Yidong  <cyd@stupidchicken.com>
 1934 
 1935 	* callint.c (Fcall_interactively): Doc fix.
 1936 
 1937 2006-09-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 1938 
 1939 	* macterm.c (x_underline_at_descent_line): New variable.
 1940 	(syms_of_macterm): DEFVAR_BOOL it.
 1941 	(x_draw_glyph_string): Use it.
 1942 	(XLoadQueryFont): Calculate min_bounds.descent and max_bounds.descent.
 1943 
 1944 2006-09-25  Kenichi Handa  <handa@m17n.org>
 1945 
 1946 	* keymap.c (Fsingle_key_description): Return unique names for
 1947 	generic characters.
 1948 
 1949 2006-09-24  Richard Stallman  <rms@gnu.org>
 1950 
 1951 	* search.c (compile_pattern_1): Don't BLOCK_INPUT.
 1952 
 1953 2006-09-24  Eli Zaretskii  <eliz@gnu.org>
 1954 
 1955 	* makefile.w32-in ($(BLD)/fns.$(O), $(BLD)/w32proc.$(O)):
 1956 	Depend on nt/inc/langinfo.h and nt/inc/nl_types.h.
 1957 
 1958 	* w32proc.c (nl_langinfo): New function.
 1959 
 1960 	* w32fns.c (w32-pass-alt-to-system, w32-alt-is-meta)
 1961 	(w32-pass-lwindow-to-system, w32-enable-num-lock)
 1962 	(w32-enable-caps-lock, w32-scroll-lock-modifier)
 1963 	(w32-lwindow-modifier, w32-rwindow-modifier)
 1964 	(w32-apps-modifier, w32-mouse-button-tolerance): Doc fix.
 1965 
 1966 2006-09-23  Juanma Barranquero  <lekktu@gmail.com>
 1967 
 1968 	* minibuf.c (Finternal_complete_buffer, Fread_minibuffer)
 1969 	(Fdisplay_completion_list): Fix typos in docstrings.
 1970 
 1971 2006-09-23  Romain Francoise  <romain@orebokech.com>
 1972 
 1973 	* s/gnu-linux.h (MAIL_USE_FLOCK): Check for HAVE_LIBLOCKFILE too.
 1974 
 1975 2006-09-23  Kenichi Handa  <handa@m17n.org>
 1976 
 1977 	* keymap.c (Fmap_keymap): Docstring mentions about generic character.
 1978 
 1979 2006-09-22  Stefan Monnier  <monnier@iro.umontreal.ca>
 1980 
 1981 	* regex.c (analyse_first): For eight-bit-control chars, mark both the
 1982 	char's value and its leading byte in the fastmap.
 1983 	(re_search_2): When fast-scanning without translation, be careful to
 1984 	check that we only match the leading byte of a multibyte char.
 1985 
 1986 	* charset.h (PREV_CHAR_BOUNDARY): Make it work from within a char's
 1987 	byte sequence.
 1988 	(AT_CHAR_BOUNDARY): New macro.
 1989 
 1990 2006-09-22  Kenichi Handa  <handa@m17n.org>
 1991 
 1992 	* fns.c (optimize_sub_char_table): Don't optimize a sub-char-table
 1993 	whose default value is non-nil.
 1994 
 1995 2006-09-22  Jan Djärv  <jan.h.d@swipnet.se>
 1996 
 1997 	* gtkutil.c (xg_get_file_with_chooser): Only show C-l help for
 1998 	Gtk+ versions < 2.10.
 1999 
 2000 	* xfns.c (syms_of_xfns): Fix typo in help text for
 2001 	x-gtk-file-dialog-help-text.
 2002 
 2003 2006-09-21  Kim F. Storm  <storm@cua.dk>
 2004 
 2005 	* fns.c (Fmemq): Refill doc string.
 2006 	(Fmemql): New defun, like memq but using eql.
 2007 	(syms_of_fns): Defsubr it.
 2008 
 2009 2006-09-20  Kim F. Storm  <storm@cua.dk>
 2010 
 2011 	* xdisp.c (pos_visible_p): CHARPOS < 0 means return info for
 2012 	last visible glyph in window.
 2013 
 2014 	* window.c (Fset_window_hscroll, Fwindow_line_height):
 2015 	Doc fix.  Use "off-window" instead of "off-screen".
 2016 	(Fpos_visible_in_window_p): Likewise.
 2017 	If POS is t, return info for last visible glyph in window.
 2018 
 2019 2006-09-19  Chong Yidong  <cyd@stupidchicken.com>
 2020 
 2021 	* search.c (struct regexp_cache): New entry syntax_table.
 2022 	(compile_pattern_1): Set it.
 2023 	(syms_of_search): Initialize it.
 2024 	(compile_pattern): Require the syntax_table entry of the cache
 2025 	element to match the current syntax table entry.
 2026 
 2027 2006-09-19  Stefan Monnier  <monnier@iro.umontreal.ca>
 2028 
 2029 	* window.c (Fwindow_end): Fix recent change.
 2030 
 2031 2006-09-19  Kim F. Storm  <storm@cua.dk>
 2032 
 2033 	* window.c (Fset_window_hscroll, Fpos_visible_in_window_p):
 2034 	Doc fix.  Use "off-screen" instead of "invisible".
 2035 	(Fwindow_line_height): Make line numbers 0-based.  Make line arg
 2036 	optional; if nil, use current cursor row.  Handle text terminals
 2037 	properly.  Return nil if non-interactive or pseudo-window.
 2038 
 2039 2006-09-19  Stefan Monnier  <monnier@iro.umontreal.ca>
 2040 
 2041 	* keymap.c: Include alloca.h if available.
 2042 	(Fkey_binding): Only use AREF after checking it's a vector.
 2043 	Remove unused var `window'.
 2044 
 2045 2006-09-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 2046 
 2047 	* emacs.c (shut_down_emacs) [!subprocesses]: Don't set
 2048 	inhibit_sentinels.
 2049 
 2050 	* mac.c [!MAC_OSX] (select): Fix argument name.
 2051 
 2052 	* macmenu.c (enum mac_menu_kind, min_menu_id): New enumerator and
 2053 	menu ID for Apple menu.
 2054 	(menubar_selection_callback): Remove function.
 2055 	(find_and_call_menu_selection): New function from xmenu.c.
 2056 	(x_activate_menubar): Use it.
 2057 	(set_frame_menubar): Don't use f->output_data.mac->menubar_active.
 2058 
 2059 	* macterm.c (menubar_selection_callback): Remove extern.
 2060 	(M_APPLE): Change to 234.
 2061 	(do_apple_menu) [!TARGET_API_MAC_CARBON]: Make non-static.
 2062 	(do_menu_choice): Remove function.
 2063 
 2064 	* macterm.h (struct mac_output): Remove member menubar_active.
 2065 	(do_menu_choice): Remove extern.
 2066 	(do_apple_menu) [!TARGET_API_MAC_CARBON]: Add extern.
 2067 
 2068 2006-09-18  Jan Djärv  <jan.h.d@swipnet.se>
 2069 
 2070 	* xfns.c (syms_of_xfns): Rename x_gtk_show_chooser_help_text to
 2071 	x_gtk_file_dialog_help_text.
 2072 
 2073 	* gtkutil.c (xg_uses_old_file_dialog): Rename x-use-old-gtk-file-dialog
 2074 	to x-gtk-use-old-file-dialog.
 2075 	(xg_get_file_with_chooser): Rename x_gtk_show_chooser_help_text to
 2076 	x_gtk_file_dialog_help_text.
 2077 
 2078 	* xfns.c (syms_of_xfns): Ditto.
 2079 
 2080 2006-09-18  Kim F. Storm  <storm@cua.dk>
 2081 
 2082 	* window.c (Fwindow_line_visibility): Remove.
 2083 	(Fwindow_line_height): New defun replacing it.
 2084 	(syms_of_window): Defsubr it.
 2085 
 2086 2006-09-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 2087 
 2088 	* mac.c (SELECT_USE_CFSOCKET) [MAC_OSX]: Set default to 1.
 2089 	[MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Fix pointer type.
 2090 
 2091 2006-09-17  Jay Belanger  <belanger@truman.edu>
 2092 
 2093 	* gmalloc.c:
 2094 	* md5.c:
 2095 	* md5.h:
 2096 	* strftime.c: Replace "GNU Library General Public License" by "GNU
 2097 	General Public License" throughout.
 2098 
 2099 2006-09-17  Kim F. Storm  <storm@cua.dk>
 2100 
 2101 	* dispnew.c (update_text_area): Undo 2000-07-18 change.
 2102 	Always redrawing whole row if line has mouse-face in it causes
 2103 	excessive flickering of the mode line.
 2104 
 2105 2006-09-17  Chong Yidong  <cyd@stupidchicken.com>
 2106 
 2107 	* search.c (clear_regexp_cache): New function.
 2108 
 2109 	* syntax.c (Fmodify_syntax_entry): Clear regexp cache.
 2110 
 2111 2006-09-16  Jan Djärv  <jan.h.d@swipnet.se>
 2112 
 2113 	* gtkutil.c (xg_get_file_with_chooser):
 2114 	Check x-gtk-show-chooser-help-text before adding the help text.
 2115 
 2116 	* xfns.c (syms_of_xfns): New variable: x-gtk-show-chooser-help-text.
 2117 
 2118 	* gtkutil.c (get_utf8_string): Try harder to convert to UTF8.  Gtk+
 2119 	will simply crash if we fail.
 2120 
 2121 2006-09-16  Richard Stallman  <rms@gnu.org>
 2122 
 2123 	* regex.c (re_compile_pattern): Set gl_state.current_syntax_table.
 2124 
 2125 2006-09-15  Kim F. Storm  <storm@cua.dk>
 2126 
 2127 	* window.c (Fwindow_line_visibility): New defun for line-move-partial.
 2128 	(syms_of_window): Defsubr it.
 2129 	(Fwindow_end): Use window's buffer rather than current buffer.
 2130 
 2131 2006-09-15  Jay Belanger  <belanger@truman.edu>
 2132 
 2133 	* COPYING: Replace "Library Public License" by "Lesser Public
 2134 	License" throughout.
 2135 
 2136 2006-09-15  David Kastrup  <dak@gnu.org>
 2137 
 2138 	* Makefile.in (keymap.o): Add "keymap.h" and "window.h" dependencies.
 2139 
 2140 	* keymap.c: Include "window.h".
 2141 	(Fcommand_remapping): New optional POSITION argument.
 2142 	(Fkey_binding): New optional POSITION argument.  Completely rework
 2143 	handling of mouse clicks to get the same order of keymaps as
 2144 	`read-key-sequence' and heed POSITION.  Also temporarily switch
 2145 	buffers to location of mouse click and back.
 2146 
 2147 	* keyboard.c (command_loop_1): Adjust call of `Fcommand_remapping'
 2148 	for additional argument.
 2149 	(parse_menu_item): Adjust call of `Fkey_binding' for additional
 2150 	argument.
 2151 	(read_key_sequence): If there are both `local-map' and `keymap'
 2152 	text properties at some buffer position, heed both.
 2153 
 2154 	* keymap.h: Declare additional optional arguments of
 2155 	`Fcommand_remapping' and `Fkey_binding'.
 2156 
 2157 2006-09-15  Juanma Barranquero  <lekktu@gmail.com>
 2158 
 2159 	* indent.c (Fcurrent_column, Findent_to): Fix typos in docstring.
 2160 
 2161 2006-09-14  Andreas Schwab  <schwab@suse.de>
 2162 
 2163 	* print.c: Whitespace fixup.
 2164 
 2165 2006-09-14  Kim F. Storm  <storm@cua.dk>
 2166 
 2167 	* xdisp.c (produce_image_glyph): Automatically crop wide images at
 2168 	right window edge so we can draw the cursor on the same row to
 2169 	avoid confusing redisplay by placing the cursor outside the visible
 2170 	window area.
 2171 
 2172 2006-09-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 2173 
 2174 	* xterm.c (x_initialize): Don't install Xt event timer here.
 2175 	(x_timeout_atimer_activated_flag): New var.
 2176 	(x_activate_timeout_atimer): New function to install Xt timer.
 2177 	(x_send_scroll_bar_event, x_process_timeouts): Use it.
 2178 
 2179 	* xmenu.c (x_menu_set_in_use, popup_activate_callback)
 2180 	(create_and_show_popup_menu, create_and_show_dialog): Use it.
 2181 
 2182 	* xterm.h (x_activate_timeout_atimer): Add prototype.
 2183 
 2184 2006-09-13  Richard Stallman  <rms@gnu.org>
 2185 
 2186 	* print.c (print_string): When printcharfun is t,
 2187 	copy string contents and call strout on the copy.
 2188 
 2189 	* keyboard.c (read_char): If end_time specified, don't put the
 2190 	event into this_command_keys.
 2191 	(read_key_sequence): If Voverriding_terminal_local_map is specified,
 2192 	don't check Voverriding_local_map at all.
 2193 
 2194 2006-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
 2195 
 2196 	* textprop.c (Fnext_property_change, Fnext_single_property_change)
 2197 	(Fprevious_property_change, Fprevious_single_property_change):
 2198 	Avoid changing limit, so we can correctly catch the case where the
 2199 	property is constant up to limit.
 2200 
 2201 2006-09-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 2202 
 2203 	* macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
 2204 	* macterm.c (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
 2205 	Undo 2006-09-08 change.
 2206 
 2207 2006-09-11  Chong Yidong  <cyd@stupidchicken.com>
 2208 
 2209 	* keymap.c (Fkey_binding): Use string position for string objects.
 2210 
 2211 2006-09-11  Kim F. Storm  <storm@cua.dk>
 2212 
 2213 	* keymap.c (Fkey_binding): Fix last change.
 2214 
 2215 	* editfns.c (Fmessage): Recommend using (message "%s" ...).
 2216 
 2217 2006-09-10  Chong Yidong  <cyd@stupidchicken.com>
 2218 
 2219 	* keymap.c (Fkey_binding): Check for local keymap for mouse click
 2220 	events.
 2221 
 2222 2006-09-10  Kim F. Storm  <storm@cua.dk>
 2223 
 2224 	* keyboard.c (Finput_pending_p): Check Vunread_input_method_events
 2225 	and Vunread_post_input_method_events.
 2226 
 2227 	* dispnew.c (Fredisplay): Document return value.
 2228 
 2229 2006-09-10  Jan Djärv  <jan.h.d@swipnet.se>
 2230 
 2231 	* xfns.c (Fx_close_connection): Call xg_display_close when USE_GTK.
 2232 
 2233 	* gtkutil.c (xg_display_close): Always change default display if needed,
 2234 	check for < Gtk+ version 2.10 before calling gdk_display_close.
 2235 
 2236 2006-09-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 2237 
 2238 	* mac.c [MAC_OSX] (sys_select): Check argument `nfds' more rigidly.
 2239 	Make variable `ofds' static.  Remove variable `maxfd'.
 2240 
 2241 	* macfns.c (Fx_file_dialog): Remove unused variable `f'.
 2242 	Call check_mac.
 2243 
 2244 	* macmenu.c (Vmenu_updating_frame, syms_of_macmenu):
 2245 	* w32menu.c (Vmenu_updating_frame, syms_of_w32menu):
 2246 	Apply 2006-09-08 change for xmenu.c.
 2247 
 2248 	* xfns.c (Fx_file_dialog): Call check_x.
 2249 
 2250 2006-09-10  Kim F. Storm  <storm@cua.dk>
 2251 
 2252 	* xdisp.c (get_window_cursor_type): Use hollow cursor on
 2253 	non-transparent images.
 2254 
 2255 2006-09-09  Eli Zaretskii  <eliz@gnu.org>
 2256 
 2257 	* editfns.c (Fsystem_name): Mention "host" in the doc string.
 2258 	(syms_of_editfns) <system-name>: Likewise.
 2259 
 2260 2006-09-08  Martin Rudalics  <rudalics@gmx.at>
 2261 
 2262 	* xdisp.c (mouse_autoselect_window): Remove.
 2263 	(Vmouse_autoselect_window): New variable.  DEFVAR_LISP it.
 2264 
 2265 	* dispextern.h (mouse_autoselect_window): Remove extern.
 2266 	(Vmouse_autoselect_window): Add extern.
 2267 
 2268 	* macterm.c (XTread_socket): Test Vmouse_autoselect_window
 2269 	instead of mouse_autoselect_window.
 2270 
 2271 	* msdos.c (dos_rawgetc): Likewise.
 2272 
 2273 	* w32term.c (w32_read_socket): Likewise.
 2274 
 2275 	* xterm.c (handle_one_xevent): Likewise.
 2276 
 2277 2006-09-08  Richard Stallman  <rms@gnu.org>
 2278 
 2279 	* xdisp.c (Vmenu_updating_frame): Define here.
 2280 	(syms_of_xdisp): DEFVAR it here.
 2281 	(update_menu_bar): Always return hooks_run.
 2282 	Set Vmenu_updating_frame.
 2283 
 2284 	* xdisp.c (redisplay_internal): Test Vinhibit_redisplay
 2285 	before calculating SELECTED_FRAME.
 2286 
 2287 	* xmenu.c (Vmenu_updating_frame): Don't define here.
 2288 	(syms_of_xmenu): Don't DEFVAR it here.
 2289 
 2290 	* xterm.c (x_error_quitter): For BadName error, just return.
 2291 
 2292 	* eval.c (find_handler_clause): Give up on debugger if INPUT_BLOCKED_P.
 2293 
 2294 	* casetab.c (init_casetab_once): Call set_case_table.
 2295 
 2296 	* emacs.c (shut_down_emacs): Set inhibit_sentinels.
 2297 
 2298 	* process.c (inhibit_sentinels): New variable.
 2299 	(exec_sentinel): Test inhibit_sentinels.
 2300 	(init_process): Initialize it.
 2301 
 2302 	* process.h (inhibit_sentinels): Add decl.
 2303 
 2304 	* search.c (looking_at_1, string_match_1, search_command):
 2305 	Make syntax table's canon table point to eqv table.
 2306 
 2307 2006-09-08  Andreas Schwab  <schwab@suse.de>
 2308 
 2309 	* print.c (strout): Fix whitespace.
 2310 
 2311 2006-09-08  Kim F. Storm  <storm@cua.dk>
 2312 
 2313 	* xterm.c (x_draw_glyph_string): Fix 2006-08-24 change.
 2314 
 2315 2006-09-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 2316 
 2317 	* mac.c [!MAC_OSX]: Don't include keyboard.h.
 2318 	[!MAC_OSX] (select): Try detect_input_pending before ReceiveNextEvent
 2319 	in the same BLOCK_INPUT block, in case that some input has already
 2320 	been read asynchronously.  Pretend to be interrupted by a signal
 2321 	if some input is available.
 2322 	[MAC_OSX] (select_and_poll_event, sys_select): Likewise.
 2323 	(SELECT_POLLING_PERIOD_USEC) [SELECT_USE_CFSOCKET]: Change to 100000.
 2324 	Now used for ReceiveNextEvent timeout instead of select timeout.
 2325 	(EVENT_CLASS_SOCK) [SELECT_USE_CFSOCKET]: Remove macro.
 2326 	[SELECT_USE_CFSOCKET] (socket_callback): Add non-blocking connect
 2327 	support.  Quit event loop.
 2328 	[MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Add non-blocking
 2329 	connect support.  Reuse previously allocated CFRunLoopSource.
 2330 	(Fmac_process_hi_command) [TARGET_API_MAC_CARBON]: New function.
 2331 	(syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
 2332 
 2333 	* macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
 2334 	Specify kWindowAsyncDragAttribute.
 2335 
 2336 	* macterm.c (mac_handle_origin_change, mac_handle_size_change)
 2337 	(mac_get_ideal_size): New functions.
 2338 	(x_set_offset, x_set_window_size, x_make_frame_visible)
 2339 	(do_zoom_window, mac_handle_window_event, XTread_socket): Use them.
 2340 	(install_window_handler, mac_handle_window_event)
 2341 	[USE_CARBON_EVENTS]: Handle kEventWindowGetIdealSize and
 2342 	kEventWindowBoundsChanged.
 2343 	(XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Don't call
 2344 	DragWindow.
 2345 
 2346 2006-09-07  Andreas Schwab  <schwab@suse.de>
 2347 
 2348 	* m/ibms390x.h (START_FILES, LIB_STANDARD): Override to
 2349 	use lib64 instead of lib.
 2350 
 2351 2006-09-06  Stefan Monnier  <monnier@iro.umontreal.ca>
 2352 
 2353 	* Makefile.in: Avoid double quotes when possible.
 2354 
 2355 2006-09-06  Kenichi Handa  <handa@m17n.org>
 2356 
 2357 	* editfns.c (Fformat_time_string): Use make_unibyte_string to make
 2358 	a Lisp string from the result of emacs_memftimeu call.
 2359 
 2360 2006-09-06  Kim F. Storm  <storm@cua.dk>
 2361 
 2362 	* xdisp.c (pos_visible_p): Remove exact_mode_line_heights_p arg;
 2363 	so calculate heights even when pos-visible-in-window-p is called
 2364 	with partially = t.  Don't overshoot last_visible_y in move_it_to.
 2365 	Return row height and row number in new rowh and vpos args.
 2366 	(cursor_row_fully_visible_p): First line is always "fully visible".
 2367 	(try_window): Don't clear matrix if vscrolled.
 2368 
 2369 	* lisp.h (pos_visible_p): Update prototype.
 2370 
 2371 	* window.c (Fpos_visible_in_window_p): Adapt to new pos_visible_p.
 2372 	Return row height and row number for partially visible rows.
 2373 	Modify return value to a 2 element list for fully visible rows and
 2374 	6 for partially visible row.
 2375 	(window_scroll_pixel_based): Use pos_visible_p directly instead of
 2376 	Fpos_visible_in_window_p.  Fix auto vscrolling for partially
 2377 	visible lines.  Only vscroll backwards if already vscrolled
 2378 	forwards.  Unconditionally vscroll forwards if PT is first (and
 2379 	only) line.  Set new window start instead of scrolling at
 2380 	start/end of tall line.
 2381 
 2382 2006-09-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 2383 
 2384 	* macterm.c (install_window_handler, mac_handle_window_event)
 2385 	[USE_CARBON_EVENTS]: Handle kEventWindowClose.
 2386 	[USE_MAC_TSM] (mac_handle_text_input_event): Set modifiers for
 2387 	ASCII keystroke event.
 2388 
 2389 2006-09-04  Jan Djärv  <jan.h.d@swipnet.se>
 2390 
 2391 	* gtkutil.c (xg_get_file_with_chooser): Don't mention specific keys in
 2392 	the file chooser message.  Only call gtk_file_chooser_set_current_name
 2393 	when action is SAVE.
 2394 
 2395 2006-09-04  Andreas Schwab  <schwab@suse.de>
 2396 
 2397 	* Makefile.in: Double all single and back quotes in C-style
 2398 	comments to help fontifier.
 2399 
 2400 2006-09-03  Jason Rumney  <jasonr@gnu.org>
 2401 
 2402 	* w32.c (shutdown_handler): New function to exit cleanly on shutdown.
 2403 	(globals_of_w32): Register it as a signal handler.
 2404 
 2405 2006-09-02  Juri Linkov  <juri@jurta.org>
 2406 
 2407 	* marker.c (Fmarker_position): Doc fix.
 2408 
 2409 2006-09-03  Eli Zaretskii  <eliz@gnu.org>
 2410 
 2411 	* window.c (syms_of_window) <split-height-threshold>:
 2412 	<window-min-height, window-min-width>: Doc fix.
 2413 
 2414 2006-09-02  Jan Djärv  <jan.h.d@swipnet.se>
 2415 
 2416 	* gtkutil.c (xg_get_file_with_chooser): Change file chooser message
 2417 	for writing files.  Call gtk_file_chooser_set_current_name to keep
 2418 	default filename.
 2419 
 2420 	* minibuf.c (Finternal_complete_buffer): Move after DEFUN:s it calls.
 2421 
 2422 2006-09-02  Jindrich Makovicka  <makovick@gmail.com>  (tiny change)
 2423 
 2424 	* fns.c (concat) [__GNUC__]: Declare with
 2425 	`__attribute__((noinline))'.
 2426 
 2427 	* eval.c (apply1, call2) [__GNUC__]: Declare with
 2428 	`__attribute__((noinline))'.
 2429 
 2430 2006-09-02  Stuart D. Herring  <herring@lanl.gov>
 2431 
 2432 	* minibuf.c (Finternal_complete_buffer): New function.
 2433 	(syms_of_minibuf): Defsubr it.
 2434 	(Fread_buffer): Use it, instead of Vbuffer_alist.
 2435 
 2436 2006-09-01  Martin Rudalics  <rudalics@gmx.at>
 2437 
 2438 	* buffer.h (struct buffer_text): New field chars_modiff.
 2439 	(CHARS_MODIFF, BUF_CHARS_MODIFF): New macros.
 2440 	* buffer.c (Fbuffer_chars_modified_tick): New function returning
 2441 	value of BUF_CHARS_MODIFF.
 2442 	(syms_of_buffer): Defsubr it.
 2443 	(Fget_buffer_create): Initialize BUF_CHARS_MODIFF.
 2444 	* insdel.c (modify_region): New argument preserve_chars_modiff.
 2445 	Set CHARS_MODIFF to MODIFF provided preserve_chars_modiff is zero.
 2446 	(insert_1_both, insert_from_string_1, insert_from_buffer_1)
 2447 	(adjust_after_replace, adjust_after_replace_noundo)
 2448 	(replace_range, replace_range_2, del_range_2): Reset CHARS_MODIFF.
 2449 	* lisp.h (modify_region): Add fourth argument in extern.
 2450 	* casefiddle.c (casify_region): Call modify_region with fourth
 2451 	argument zero to assert that CHARS_MODIFF is updated.
 2452 	* editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
 2453 	(Ftranspose_regions): Likewise.
 2454 	* textprop.c (Fadd_text_properties, Fset_text_properties)
 2455 	(Fremove_text_properties, Fremove_list_of_text_properties):
 2456 	Call modify_region with fourth argument 1 to avoid that
 2457 	CHARS_MODIFF is updated.
 2458 
 2459 2006-08-31  Richard Stallman  <rms@gnu.org>
 2460 
 2461 	* editfns.c (Fformat): Don't sign-extend for %o or %x.
 2462 
 2463 2006-08-29  Chong Yidong  <cyd@stupidchicken.com>
 2464 
 2465 	* indent.c (Fvertical_motion): Don't move back if we were
 2466 	displaying a Lisp string, either.
 2467 
 2468 2006-08-28  Kim F. Storm  <storm@cua.dk>
 2469 
 2470 	* xdisp.c (get_window_cursor_type) [!HAVE_WINDOW_SYSTEM]:
 2471 	Don't attempt to replace cursor on image glyphs.
 2472 
 2473 2006-08-28  Kenichi Handa  <handa@m17n.org>
 2474 
 2475 	* coding.c (Fdetect_coding_region, Fdetect_coding_string):
 2476 	Fix docstring about ISO-2022 control characters.
 2477 
 2478 2006-08-28  Kim F. Storm  <storm@cua.dk>
 2479 
 2480 	* xdisp.c (get_window_cursor_type): Replace BOX cursor on images
 2481 	with a hollow box cursor if image is larger than 32x32 (or the default
 2482 	frame font if that is bigger).  Replace any other cursor on images
 2483 	with hollow box cursor, as redisplay doesn't support bar and hbar
 2484 	cursors on images.
 2485 
 2486 2006-08-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 2487 
 2488 	* alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Undo previous
 2489 	change.  Move mutex lock/unlock operations inside BLOCK_INPUT.
 2490 
 2491 	* dired.c (directory_files_internal_unwind, directory_files_internal)
 2492 	(file_name_completion): Add BLOCK_INPUT around opendir/closedir.
 2493 
 2494 	* image.c [MAC_OS] (image_load_qt_1): Use ComponentResult instead
 2495 	of OSErr.
 2496 
 2497 	* keyboard.c (in_sighandler): Remove variable.
 2498 	(Fcurrent_idle_time): Add missing `doc:'.
 2499 	(input_available_signal, init_keyboard): Undo previous change.
 2500 
 2501 	* keyboard.h (in_sighandler): Remove extern.
 2502 
 2503 	* mac.c (create_apple_event_from_event_ref, select)
 2504 	(Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
 2505 	(Fmac_set_file_type, cfstring_create_normalized)
 2506 	(mac_get_system_locale, select_and_poll_event, sys_select):
 2507 	Use OSStatus instead of OSErr.
 2508 
 2509 	* macfns.c [TARGET_API_MAC_CARBON] (mac_update_proxy_icon):
 2510 	Don't use FRAME_FILE_NAME.  Use (FS)UpdateAlias.
 2511 	(Fx_create_frame): Apply 2006-07-03 for xfns.c.
 2512 
 2513 	* macselect.c (get_scrap_from_symbol, clear_scrap, put_scrap_string)
 2514 	(put_scrap_private_timestamp, scrap_has_target_type, get_scrap_string)
 2515 	(get_scrap_private_timestamp, get_scrap_target_type_list)
 2516 	(x_own_selection, x_get_foreign_selection)
 2517 	(Fx_disown_selection_internal, Fx_selection_owner_p)
 2518 	(Fx_selection_exists_p): Use OSStatus instead of OSErr.
 2519 
 2520 	* macterm.c (mac_draw_string_common, mac_query_char_extents)
 2521 	(x_iconify_frame, XLoadQueryFont, install_window_handler)
 2522 	(mac_handle_command_event, init_command_handler, init_menu_bar):
 2523 	Use OSStatus instead of OSErr.
 2524 	(x_free_frame_resources) [TARGET_API_MAC_CARBON]: Don't use
 2525 	FRAME_FILE_NAME.
 2526 	(x_query_font): Apply 2006-08-04 change for xterm.c.
 2527 	(Qhi_command): Rename from Qhicommand.  All uses changed.
 2528 
 2529 	* macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]: Remove member
 2530 	file_name.
 2531 	(FRAME_FILE_NAME): Remove macro.
 2532 	(install_window_handler, create_apple_event_from_event_ref):
 2533 	Return OSStatus instead of OSErr.
 2534 
 2535 2006-08-26  Kim F. Storm  <storm@cua.dk>
 2536 
 2537 	* buffer.c (Fset_buffer_multibyte):
 2538 	* editfns.c (Fcurrent_time, Fget_internal_run_time):
 2539 	* macfns.c (Fxw_color_values):
 2540 	* w32fns.c (Fxw_color_values):
 2541 	* xfns.c (Fxw_color_values): Simplify; use list3.
 2542 
 2543 	* fileio.c (Fmake_directory_internal, Fdelete_directory)
 2544 	(Fdelete_file): Simplify; use list1.
 2545 	(Frename_file, Fadd_name_to_file, Fmake_symbolic_link):
 2546 	Simplify; remove NO_ARG_ARRAY stuff, use list2.
 2547 
 2548 2006-08-25  Richard Stallman  <rms@gnu.org>
 2549 
 2550 	* buffer.c (Fswitch_to_buffer): Fix previous change.
 2551 
 2552 2006-08-25  Kim F. Storm  <storm@cua.dk>
 2553 
 2554 	* keyboard.c (Fcurrent_idle_time): Simplify.
 2555 
 2556 2006-08-25  Richard Stallman  <rms@gnu.org>
 2557 
 2558 	* fns.c (sxhash_string): Rotate properly; don't lose bits.
 2559 
 2560 2006-08-24  Francesc Rocher  <francesc.rocher@gmail.com>
 2561 
 2562 	* xdisp.c (overline_margin): New variable.
 2563 	(x_produce_glyphs): Use it.
 2564 	(syms_of_xdisp): DEFVAR_INT it.
 2565 
 2566 	* xterm.c (x_underline_at_descent_line): New variable.
 2567 	(syms_of_xterm): DEFVAR_BOOL it.
 2568 	(x_draw_glyph_string): Use it.
 2569 	Draw underline and overline up to the end of line if the face
 2570 	extends to the end of line.
 2571 
 2572 	* macterm.c: Likewise.
 2573 
 2574 	* w32term.c: Likewise.
 2575 
 2576 2006-08-24  Nick Roberts  <nickrob@snap.net.nz>
 2577 
 2578 	* buffer.c (Fswitch_to_buffer): Move buffer to front of
 2579 	buffer-alist if necessary.
 2580 
 2581 2006-08-22  Kim F. Storm  <storm@cua.dk>
 2582 
 2583 	* xdisp.c (update_tool_bar): Redisplay toolbar also when only
 2584 	number of items changes.
 2585 
 2586 2006-08-22  Stefan Monnier  <monnier@iro.umontreal.ca>
 2587 
 2588 	* buffer.c (Fset_buffer_multibyte): Record proper undo entry.
 2589 
 2590 2006-08-21  Jan Djärv  <jan.h.d@swipnet.se>
 2591 
 2592 	* keyboard.c: Clarify difference between in_sighandler and
 2593 	handling_signal.
 2594 
 2595 2006-08-21  Kim F. Storm  <storm@cua.dk>
 2596 
 2597 	* macterm.c (x_draw_stretch_glyph_string):
 2598 	* w32term.c (x_draw_stretch_glyph_string):
 2599 	* xterm.c (x_draw_stretch_glyph_string): It is ok to draw a
 2600 	stretch glyph in left marginal areas on header and mode lines.
 2601 
 2602 2006-08-21  Kenichi Handa  <handa@m17n.org>
 2603 
 2604 	* keyboard.c (syms_of_keyboard): Docstring of
 2605 	Vunread_post_input_method_events and Vunread_input_method_events
 2606 	fixed.
 2607 
 2608 2006-08-20  Chong Yidong  <cyd@stupidchicken.com>
 2609 
 2610 	* keyboard.c (show_help_echo): Preserve mouse movement flag if
 2611 	tracking mouse.
 2612 
 2613 2006-08-20  Richard Stallman  <rms@gnu.org>
 2614 
 2615 	* xfaces.c (load_pixmap): Add quotes in error message.
 2616 
 2617 	* keyboard.c (Fcurrent_idle_time): New function.
 2618 	(syms_of_keyboard): defsubr it.
 2619 
 2620 2006-08-18  Nick Roberts  <nickrob@snap.net.nz>
 2621 
 2622 	* window.c (Fset_window_fringes): Do nothing on a tty.
 2623 	(Fwindow_fringes): Put ? operator after the line break.
 2624 
 2625 2006-08-16  Andreas Schwab  <schwab@suse.de>
 2626 
 2627 	* print.c (debug_output_compilation_hack): Fix return type.
 2628 
 2629 2006-08-16  Richard Stallman  <rms@gnu.org>
 2630 
 2631 	* print.c (debug_output_compilation_hack): New function.
 2632 
 2633 2006-08-16  Kenichi Handa  <handa@m17n.org>
 2634 
 2635 	* fileio.c (choose_write_coding_system): Use LF for end-of-line
 2636 	in auto-saving.
 2637 
 2638 2006-08-15  Chong Yidong  <cyd@stupidchicken.com>
 2639 
 2640 	* keyboard.c (read_char): Don't change idle timer state at all if
 2641 	end_time is supplied.
 2642 
 2643 2006-08-15  Kenichi Handa  <handa@m17n.org>
 2644 
 2645 	* coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New arg RET.  If SRC
 2646 	is exhausted, return with RET.
 2647 	(detect_coding_emacs_mule, detect_coding_iso2022)
 2648 	(detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
 2649 	(detect_coding_utf_16, detect_coding_ccl): Adjusted for the above
 2650 	change.
 2651 
 2652 2006-08-14  Chong Yidong  <cyd@stupidchicken.com>
 2653 
 2654 	* keyboard.c (read_char): Don't reset idle timers if a time limit
 2655 	is supplied.
 2656 
 2657 2006-08-14  Kim F. Storm  <storm@cua.dk>
 2658 
 2659 	* .gdbinit (pitx): Print iterator position.
 2660 	Limit stack dump in case iterator is not initialized.
 2661 
 2662 2006-08-12  Eli Zaretskii  <eliz@gnu.org>
 2663 
 2664 	* frame.c (Fmouse_position, Fmouse_pixel_position)
 2665 	(Fset_mouse_position, Fset_mouse_pixel_position): Doc fix.
 2666 
 2667 2006-08-11  Jan Djärv  <jan.h.d@swipnet.se>
 2668 
 2669 	* xselect.c (Fx_register_dnd_atom): New function.
 2670 	(syms_of_xselect): Defsubr it.
 2671 	(x_handle_dnd_message): Check that message_type is in
 2672 	dpyinfo->x_dnd_atoms before generating lisp event.
 2673 
 2674 	* xterm.h (struct x_display_info): Add x_dnd_atoms* to keep track
 2675 	of drag and drop Atoms.
 2676 
 2677 	* xterm.c (x_term_init): Initialize dpyinfo->x_dnd_atoms*.
 2678 
 2679 2006-08-10  Jan Djärv  <jan.h.d@swipnet.se>
 2680 
 2681 	* keyboard.c: Define in_sighandler.
 2682 	(input_available_signal): Set in_sighandler.
 2683 	(init_keyboard): Initialize in_sighandler.
 2684 
 2685 	* keyboard.h: Declare in_sighandler.
 2686 
 2687 	* alloc.c (UNBLOCK_INPUT_ALLOC, BLOCK_INPUT_ALLOC): Use in_sighandler
 2688 	to check if mutex should be locked or not.
 2689 
 2690 2006-08-09  Richard Stallman  <rms@gnu.org>
 2691 
 2692 	* keyboard.c (keyremap_step): No-op if fkey->parent = nil.
 2693 	(read_key_sequence): Always start fkey.start and fkey.end at 0,
 2694 	and likewise for keytran.
 2695 
 2696 2006-08-09  Kenichi Handa  <handa@m17n.org>
 2697 
 2698 	* coding.c (syms_of_coding): Improve the docstring
 2699 	of file-coding-system-alist.
 2700 
 2701 2006-08-07  Andreas Schwab  <schwab@suse.de>
 2702 
 2703 	* puresize.h (BASE_PURESIZE): Increase to 1120000.
 2704 
 2705 2006-08-06  Chong Yidong  <cyd@stupidchicken.com>
 2706 
 2707 	* buffer.c (Vchange_major_mode_hook, Qchange_major_mode_hook): New vars.
 2708 	(Fkill_all_local_variables): Use it.
 2709 	(syms_of_buffer): Defvar it.
 2710 
 2711 2006-08-05  Eli Zaretskii  <eliz@gnu.org>
 2712 
 2713 	* w32.c (w32_valid_pointer_p): New function.
 2714 
 2715 	* w32.h: Add prototype for w32_valid_pointer_p.
 2716 
 2717 	* alloc.c: Include w32.h.
 2718 	(valid_lisp_object_p) [WINDOWSNT]: Call w32_valid_pointer_p to do
 2719 	the job.
 2720 
 2721 	* keyboard.c (kbd_buffer_get_event): Return Qnil when current time
 2722 	is exactly equal to end_time, not only when it is past that.
 2723 
 2724 2006-08-04  Chong Yidong  <cyd@stupidchicken.com>
 2725 
 2726 	* keyboard.c (read_char): Rebalance specpdl after receiving jump.
 2727 
 2728 	* process.c: Reapply 2006-08-01 change.
 2729 
 2730 2006-08-04  Eli Zaretskii  <eliz@gnu.org>
 2731 
 2732 	* w32fns.c (w32_query_font): Fix last change: use stricmp.
 2733 
 2734 2006-08-04  Stefan Monnier  <monnier@iro.umontreal.ca>
 2735 
 2736 	* editfns.c (Fsubst_char_in_region): Redo the setup work after running
 2737 	the before-change-functions since they may have altered the buffer.
 2738 
 2739 2006-08-04  Ralf Angeli  <angeli@caeruleus.net>
 2740 
 2741 	* w32fns.c (w32_createwindow): Handle -geometry command line option
 2742 	and the geometry settings in the Registry.
 2743 
 2744 2006-08-04  Kenichi Handa  <handa@m17n.org>
 2745 
 2746 	* w32fns.c (w32_query_font): Compare names by ignoring case.
 2747 
 2748 	* xterm.c (x_query_font): Compare names by ignoring case.
 2749 
 2750 2006-08-03  Jason Rumney  <jasonr@gnu.org>
 2751 
 2752 	* w32menu.c (w32_menu_show, w32_dialog_show): Call Fsignal to quit
 2753 	when no option selected.
 2754 
 2755 2006-08-03  Chong Yidong  <cyd@stupidchicken.com>
 2756 
 2757 	* process.c: Revert last change.
 2758 
 2759 2006-08-01  Kim F. Storm  <storm@cua.dk>
 2760 
 2761 	* process.c (wait_reading_process_output_unwind): New function.
 2762 	Restores waiting_for_user_input_p to saved value.
 2763 	(wait_reading_process_output): Unwind protect waiting_for_user_input_p
 2764 	instead of save/restore old value on stack.
 2765 
 2766 2006-07-30  Thien-Thi Nguyen  <ttn@gnu.org>
 2767 
 2768 	* editfns.c: Undo 2006-06-27 change.
 2769 
 2770 2006-07-29  Eli Zaretskii  <eliz@gnu.org>
 2771 
 2772 	* coding.c (Ffind_operation_coding_system): Revert the change from
 2773 	2006-05-29.
 2774 
 2775 	* alloc.c [WINDOWSNT]: Include fcntl.h, to fix last change.
 2776 
 2777 2006-07-28  Richard Stallman  <rms@gnu.org>
 2778 
 2779 	* xfaces.c (lookup_named_face, Fdisplay_supports_face_attributes_p):
 2780 	Add conditional aborts for clarity.
 2781 
 2782 	* xdisp.c (update_menu_bar): New arg HOOKS_RUN.  Callers changed.
 2783 	Used to avoid running the hooks over and over for each frame.
 2784 	(prepare_menu_bars): Pass value from update_menu_bar
 2785 	as HOOKS_RUN of next call.
 2786 
 2787 	* keyboard.c (safe_run_hooks_1): Don't crash if Vrun_hooks is nil.
 2788 
 2789 2006-07-28  Kim F. Storm  <storm@cua.dk>
 2790 
 2791 	* alloc.c (valid_pointer_p): New function (from valid_lisp_object_p).
 2792 	(valid_lisp_object_p): Use it to check for valid SUBRP obj.
 2793 
 2794 2006-07-26  Chong Yidong  <cyd@stupidchicken.com>
 2795 
 2796 	* keyboard.c (read_char): New arg END_TIME specifying timeout.
 2797 	All callers changed.  Turn off echoing if END_TIME is non-NULL.
 2798 	(kbd_buffer_get_event): New arg END_TIME.
 2799 
 2800 	* lread.c (read_filtered_event): New arg SECONDS to wait until.
 2801 	(Fread_char, Fread_event, Fread_char_exclusive): New arg SECONDS.
 2802 
 2803 	* lisp.h: Update read-char, read-event, and read_filtered_event
 2804 	prototypes.
 2805 
 2806 	* keyboard.h: Include systime.h.  Update read_char prototype.
 2807 
 2808 2006-07-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 2809 
 2810 	* alloc.c (find_string_data_in_pure): New function.
 2811 	(make_pure_string): Use it to reuse existing string data if possible.
 2812 
 2813 	* puresize.h (BASE_PURESIZE): Decrease to 1102000.
 2814 
 2815 2006-07-22  Stefan Monnier  <monnier@iro.umontreal.ca>
 2816 
 2817 	* keymap.c (Fdefine_key): If the key binding definition looks like an
 2818 	XEmacs-style key sequence, convert it to Emacs's format.
 2819 
 2820 2006-07-22  Ralf Angeli  <angeli@caeruleus.net>
 2821 
 2822 	* w32fns.c (w32_createwindow): If `left' and/or `top' frame
 2823 	parameters are bound to some values, use that instead of
 2824 	CW_USEDEFAULT.
 2825 
 2826 2006-07-21  Eli Zaretskii  <eliz@gnu.org>
 2827 
 2828 	* w32.c (convert_time): Use explicit long double constants to
 2829 	ensure long double arithmetic is used throughout.
 2830 
 2831 2006-07-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 2832 
 2833 	* alloc.c (pure_bytes_used_lisp, pure_bytes_used_non_lisp): New vars.
 2834 	(init_alloc_once): Initialize them.
 2835 	(pure_alloc): Allocate non-Lisp objects from the end of pure storage
 2836 	without alignment.
 2837 
 2838 	* puresize.h (BASE_PURESIZE): Decrease to 1141000.
 2839 
 2840 2006-07-18  Francis Litterio  <franl@world.std.com>
 2841 
 2842 	* w32term.c (x_calc_absolute_position): Fix frame positioning
 2843 	with negative X/Y coordinates.
 2844 
 2845 2006-07-18  Dan Nicolaescu  <dann@ics.uci.edu>
 2846 
 2847 	* xterm.c (x_connection_closed, x_error_quitter): Mark as NO_RETURN.
 2848 
 2849 	* textprop.c (text_read_only): Likewise.
 2850 
 2851 	* lread.c (end_of_file_error): Likewise.
 2852 
 2853 	* lisp.h (circular_list_error, memory_full, buffer_memory_full):
 2854 	Likewise.
 2855 
 2856 	* eval.c (unwind_to_catch): Likewise.
 2857 
 2858 	* buffer.h (buffer_slot_type_mismatch): Likewise.
 2859 
 2860 2006-07-18  Kim F. Storm  <storm@cua.dk>
 2861 
 2862 	Cleanup Fsignal calls that never returns; now only use it for Qquit.
 2863 
 2864 	* eval.c (xsignal): New func.  Like Fsignal, but marked no-return.
 2865 	(xsignal0, xsignal1, xsignal2, xsignal3): New no-return functions.
 2866 	(signal_error): New no-return function (from xfaces.c).
 2867 	(Fthrow): Use xsignal2 instead of Fsignal + abort.
 2868 	(error): Use xsignal1 instead of Fsignal + abort.
 2869 	(FletX, Flet, grow_specpdl): Use signal_error.
 2870 	(Feval, Ffuncall, funcall_lambda): Use xsignal1, xsignal2.
 2871 
 2872 	* alloc.c (buffer_memory_full, memory_full): Use xsignal.  Remove loop.
 2873 	(list1): New function.
 2874 
 2875 	* lisp.h (list1): Add EXFUN.
 2876 	(xsignal, xsignal0, xsignal1, xsignal2, xsignal3, signal_error):
 2877 	Add prototypes.  Mark them as no-return.
 2878 
 2879 	* buffer.c (Fbuffer_local_value, Fbarf_if_buffer_read_only):
 2880 	Use xsignal1.
 2881 
 2882 	* callint.c (check_mark): Use xsignal0.
 2883 
 2884 	* casefiddle.c (casify_object): wrong_type_argument is no-return.
 2885 
 2886 	* cmds.c (Fforward_char, Fdelete_char): Use xsignal0.
 2887 
 2888 	* coding.c (Fcheck_coding_system): Use xsignal1.  Remove loop.
 2889 	(Fdefine_coding_system_internal): Use xsignal1.
 2890 
 2891 	* data.c (circular_list_error): Use xsignal.
 2892 	(wrong_type_argument): Use xsignal2.  Don't care about return value.
 2893 	(args_out_of_range, args_out_of_range_3): Use xsignal2, xsignal3.
 2894 	Remove loop around Fsignal.
 2895 	(indirect_variable, Fsymbol_value, set_internal, Fdefault_value)
 2896 	(indirect_function, Findirect_function, Fstring_to_number)
 2897 	(Fmakunbound, Ffmakunbound, Fsymbol_function, Ffset): Use xsignal1.
 2898 	(arith_driver, float_arith_driver, Frem, Fmod, arith_error):
 2899 	Use xsignal0.
 2900 
 2901 	* doc.c (Fdocumentation): Use xsignal1.
 2902 
 2903 	* editfns.c (region_limit, Fget_internal_run_time): Use xsignal0.
 2904 
 2905 	* fileio.c (report_file_error): Use xsignal.
 2906 	(barf_or_query_if_file_exists, Fcopy_file, Fdelete_file)
 2907 	(Finsert_file_contents): Use xsignal2.
 2908 	(syms_of_fileio): Use list2, list3.
 2909 
 2910 	* floatfns.c (arith_error, range_error, domain_error): Use xsignal2.
 2911 	(range_error2, domain_error2): Use xsignal3.
 2912 	(rounding_driver, fmod_float): Use xsignal0.
 2913 	(float_error): Use xsignal1.
 2914 	(matherr): Use xsignal.
 2915 
 2916 	* fns.c (Flength): wrong_type_argument is no-return.
 2917 	(hashfn_user_defined, Fmake_hash_table): Use signal_error.
 2918 	(Fmd5): Use xsignal1.
 2919 
 2920 	* frame.c (x_set_line_spacing, x_set_screen_gamma): Use signal_error.
 2921 
 2922 	* keyboard.c (recursive_edit_1): Use xsignal1.
 2923 
 2924 	* keymap.c (Fmap_keymap): Use xsignal1.
 2925 
 2926 	* lread.c (Fload): Use xsignal2, signal_error.
 2927 	(end_of_file_error): Use xsignal0, xsignal1.
 2928 	(read0): Use xsignal1.
 2929 	(invalid_syntax): New error function marked no-return.
 2930 	(read_integer, read1, read_list): Use it.
 2931 
 2932 	* macselect.c (x_get_local_selection): Use signal_error.
 2933 
 2934 	* msdos.c (Fmsdos_set_mouse_buttons): Use xsignal2.
 2935 
 2936 	* search.c (compile_pattern_1): Use xsignal1.
 2937 	(signal_failure): Remove (was only called once).
 2938 	(search_command): Use xsignal1 instead of signal_failure.
 2939 
 2940 	* syntax.c (scan_lists): Use xsignal3.
 2941 
 2942 	* textprop.c (text_read_only): Use xsignal0, xsignal1.
 2943 
 2944 	* unexsol.c (unexec): Use xsignal.
 2945 
 2946 	* window.c (window_scroll_pixel_based, window_scroll_line_based):
 2947 	Use xsignal0.
 2948 
 2949 	* xfaces.c (signal_error): Move to eval.c.
 2950 	(resolve_face_name): Use xsignal1.
 2951 
 2952 	* xfns.c (x_decode_color): Use signal_error.
 2953 
 2954 	* xselect.c (x_get_local_selection, copy_multiple_data)
 2955 	(x_get_window_property_as_lisp_data)
 2956 	(lisp_data_to_selection_data, CHECK_CUT_BUFFER)
 2957 	(Fx_get_cut_buffer_internal): Use signal_error.
 2958 
 2959 2006-07-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 2960 
 2961 	* macterm.c (XTread_socket): Undo previous change.
 2962 
 2963 2006-07-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 2964 
 2965 	* macterm.c (keycode_to_xkeysym): Remove function.  All uses now
 2966 	directly lookup keycode_to_xkeysym_table.
 2967 	[USE_MAC_TSM] (mac_handle_text_input_event): Don't construct
 2968 	ASCII_KEYSTROKE_EVENT for non-zero keycode_to_xkeysym_table entries.
 2969 	(XTread_socket): Use character codes to construct keypad key events.
 2970 	(mac_initialize_display_info) [MAC_OSX]: Use CGDisplaySamplesPerPixel.
 2971 	(x_delete_display): Apply 2006-07-04 change for xterm.c.
 2972 
 2973 2006-07-17  Richard Stallman  <rms@gnu.org>
 2974 
 2975 	* keyboard.c (Vcommand_error_function): New variable.
 2976 	(syms_of_keyboard): Defvar it.
 2977 	(cmd_error_internal): Simplify, and handle Vcommand_error_function.
 2978 
 2979 	* dispnew.c (init_display): Mention DISPLAY as well as TERM in err msg.
 2980 
 2981 2006-07-17  Kim F. Storm  <storm@cua.dk>
 2982 
 2983 	* xdisp.c (handle_single_display_spec): Ensure the right value of
 2984 	it->position is saved by push_it.
 2985 	(pop_it): Restore it->object for GET_FROM_BUFFER and GET_FROM_STRING.
 2986 	(reseat_1): Don't setup it->object twice.
 2987 	(set_iterator_to_next): No need to set it->object after pop_it.
 2988 	(move_it_to): Explicitly check to see if last move reached to_charpos.
 2989 
 2990 2006-07-17  Thien-Thi Nguyen  <ttn@gnu.org>
 2991 
 2992 	* xdisp.c (display_mode_line): Preserve match data.
 2993 
 2994 2006-07-14  Kim F. Storm  <storm@cua.dk>
 2995 
 2996 	* w32.c (pfn_WSACreateEvent, pfn_WSACloseEvent): New func ptrs.
 2997 	(init_winsock): Load them.  Use ws2_32.dll.
 2998 	(sys_listen): Undo last change.  Just set FILE_LISTEN flag.
 2999 	(sys_accept): Undo last change.  Instead, set child status to
 3000 	STATUS_READ_ACKNOWLEDGED and reset char_avail event so next
 3001 	sys_select will wakeup the reader thread.
 3002 	(_sys_wait_accept): New function used by reader thread to wait for
 3003 	an incoming connection on a server socket.
 3004 
 3005 	* w32.h (_sys_read_ahead, _sys_wait_accept): Add prototypes.
 3006 
 3007 	* w32proc.c (reader_thread): Use _sys_wait_accept to wait on a
 3008 	server socket (FILE_LISTEN flag).
 3009 
 3010 2006-07-14  Jan Djärv  <jan.h.d@swipnet.se>
 3011 
 3012 	* sound.c (alsa_init): Call snd_pcm_close after successful snd_pcm_open.
 3013 
 3014 2006-07-14  Kim F. Storm  <storm@cua.dk>
 3015 
 3016 	* w32.c: Fix high cpu load for server sockets.
 3017 	(pfn_WSAEventSelect): New function ptr.
 3018 	(init_winsock): Load it.
 3019 	(sys_listen): Set FILE_LISTEN flag.  Set event mask for socket's
 3020 	char_avail event object to FD_ACCEPT.
 3021 	(sys_accept): Check FILE_LISTEN flag.  Set event mask on new
 3022 	socket's char_avail event object to FD_READ|FD_CLOSE.
 3023 
 3024 	* w32.h (FILE_LISTEN): New filedesc flag value.
 3025 
 3026 2006-07-13  Kim F. Storm  <storm@cua.dk>
 3027 
 3028 	* bytecode.c (Fbyte_code): Use CAR, CDR for Bcar, Bcdr.
 3029 	Use CAR_SAFE, CDR_SAFE for Bcar_safe, Bcdr_safe.
 3030 	Simplify loops and use CAR for Bnth and Belt.
 3031 
 3032 	* data.c (Findirect_function): Optimize for no indirection.
 3033 
 3034 	* eval.c (Fthrow): Remove loop around Fsignal.
 3035 	(Feval, Fapply, Ffuncall): Optimize for no function indirection.
 3036 	Use original function name in all signaled errors.
 3037 	Simplify Fsignal calls (no return).
 3038 	(funcall_lambda): Simplify Fsignal calls (no return).
 3039 
 3040 2006-07-13  Andreas Schwab  <schwab@suse.de>
 3041 
 3042 	* syntax.c (scan_sexps_forward): Use EMACS_INT for out_bytepos and
 3043 	out_charpos.
 3044 
 3045 2006-07-13  Kenichi Handa  <handa@m17n.org>
 3046 
 3047 	* editfns.c (Fformat): Fix calculation of text property positions
 3048 	of format string.
 3049 
 3050 2006-07-12  Kim F. Storm  <storm@cua.dk>
 3051 
 3052 	* lisp.h (CHECK_TYPE): New macro for generic type checking.
 3053 	(CAR_SAFE, CDR_SAFE): New macros.
 3054 	(ARRAYP, CHECK_ARRAY): New macros.
 3055 	(CHECK_VECTOR_OR_STRING, CHECK_SUBR): New macros.
 3056 	(CHECK_WINDOW_CONFIGURATION): New macro.
 3057 	(CHECK_LIST_CONS, CHECK_LIST_END): New checks for list traversal.
 3058 	(CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
 3059 	(CHECK_STRING, CHECK_STRING_CAR, CHECK_CONS, CHECK_SYMBOL)
 3060 	(CHECK_CHAR_TABLE, CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE)
 3061 	(CHECK_BUFFER, CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS)
 3062 	(CHECK_NUMBER, CHECK_NATNUM, CHECK_MARKER, CHECK_OVERLAY)
 3063 	(CHECK_NUMBER_COERCE_MARKER, CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
 3064 	(CHECK_NUMBER_OR_FLOAT_COERCE_MARKER): Use CHECK_TYPE.
 3065 
 3066 	* category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET):
 3067 	* frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Use CHECK_TYPE.
 3068 
 3069 	* callint.c (Fcall_interactively):
 3070 	* casefiddle.c (casify_object):
 3071 	* editfns.c (general_insert_function):
 3072 	* fns.c (Flength, Felt, Ffillarray):
 3073 	* data.c (Fcar, Fcdr): Remove loop around wrong_type_argument.
 3074 
 3075 	* data.c (wrong_type_argument): Remove loop around Fsignal.
 3076 	(Farrayp, Fsequencep): Use ARRAYP.
 3077 	(Fcar): Use CAR.
 3078 	(Fcar_safe): Use CAR_SAFE.
 3079 	(Fcdr): Use CDR.
 3080 	(Fcdr_safe): Use CDR_SAFE.
 3081 	(Fsetcar, Fsetcdr): Use CHECK_CONS.
 3082 	(Fsubr_arity, Fsubr_name): Use CHECK_SUBR.
 3083 	(Faset): Use CHECK_ARRAY.
 3084 
 3085 	* fns.c (Felt): Use CHECK_ARRAY.
 3086 	(concat): Use CHECK_NUMBER.
 3087 	(Fsubstring, substring_both): Use CHECK_VECTOR_OR_STRING.
 3088 	(Fmemq): Use CHECK_LIST.
 3089 	(Fassq, Fassoc, Frassq, Frassoc): Use CAR.
 3090 	(assq_no_quit): Use CAR_SAFE.
 3091 	(Fnthcdr, Fmember, Fdelq, Fdelete, Fnreverse, Fnconc):
 3092 	Use CHECK_LIST_CONS.
 3093 	(Freverse, Fplist_get, Flax_plist_get): Use CHECK_LIST_END.
 3094 
 3095 	* bytecode.c (Fbyte_code): Use CHECK_VECTOR.
 3096 
 3097 	* casetab.c (check_case_table):
 3098 	* category.c (check_category_table):
 3099 	* marker.c (Fcopy_marker):
 3100 	* syntax.c (check_syntax_table):
 3101 	* xfaces.c (load_pixmap): Use CHECK_TYPE.
 3102 
 3103 	* fns.c (Fcopy_sequence, concat):
 3104 	* fringe.c (Fdefine_fringe_bitmap):
 3105 	* lread.c (check_obarray): Cleanup wrong_type_argument use.
 3106 
 3107 	* keyboard.c (access_keymap_keyremap): Use ARRAYP.
 3108 
 3109 	* keymap.c (Fdefine_key, Flookup_key):
 3110 	* macros.c (Fstart_kbd_macro): Use CHECK_VECTOR_OR_STRING.
 3111 
 3112 	* mac.c (Fmac_get_preference): Use CHECK_LIST_END.
 3113 
 3114 	* search.c (Fset_match_data): Use CHECK_LIST.
 3115 
 3116 	* sunfns.c (sun_item_create): Use CHECK_LIST_CONS.
 3117 
 3118 	* window.c (Fwindow_configuration_frame, Fset_window_configuration):
 3119 	(compare_window_configurations): Use CHECK_WINDOW_CONFIGURATION.
 3120 
 3121 2006-07-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 3122 
 3123 	* Makefile.in (dired.o, editfns.o, fileio.o): Depend on blockinput.h.
 3124 
 3125 	* dired.c: Include blockinput.h.
 3126 	(Ffile_attributes): Add BLOCK_INPUT around getpwuid/getgrgid.
 3127 
 3128 	* editfns.c: Include blockinput.h.
 3129 	(Fuser_login_name, Fuser_full_name): Add BLOCK_INPUT around
 3130 	getpwuid/getpwnam.
 3131 
 3132 	* fileio.c: Include blockinput.h.
 3133 	(Fexpand_file_name, search_embedded_absfilename): Add BLOCK_INPUT
 3134 	around getpwnam.
 3135 	(search_embedded_absfilename): Remove spurious xfree.
 3136 
 3137 2006-07-11  Kim F. Storm  <storm@cua.dk>
 3138 
 3139 	* dispnew.c (sit_for): Reduce number of args from 5 to 3.
 3140 	Now just one TIMEOUT arg that can be a Lisp float or Lisp int.
 3141 	Combine args DISPLAY and INITIAL_DISPLAY into one arg DO_DISPLAY.
 3142 	Signal error if TIMEOUT is not a number.
 3143 	Undo 2006-06-14 change for non-preemptive display if TIMEOUT < 0.
 3144 	The rework of sit_for args also fixes several incorrect Qt args
 3145 	which should have been 1.
 3146 	(Fredisplay): Pass 1 instead of Qt to swallow_events and
 3147 	detect_input_pending_run_timers.
 3148 
 3149 	* lisp.h (sit_for): Update prototype.
 3150 	(Fredisplay): Add EXFUN.
 3151 
 3152 	* dispextern.h (sit_for): Remove prototype.
 3153 
 3154 	* callint.c (Fcall_interactively):
 3155 	* minibuf.c (temp_echo_area_glyphs):
 3156 	* keyboard.c (command_loop_1, read_char, Fexecute_extended_command):
 3157 	* fileio.c (Fdo_auto_save): Update/simplify sit_for calls.
 3158 
 3159 2006-07-11  Stefan Monnier  <monnier@iro.umontreal.ca>
 3160 
 3161 	* syntax.c (forw_comment): Also use EMACS_INT for buffer positions.
 3162 
 3163 2006-07-11  Kim F. Storm  <storm@cua.dk>
 3164 
 3165 	* dispnew.c (Fredisplay): Add FORCE argument to force redisplay when
 3166 	input is available.  Fix test for redisplay_dont_pause non-nil.
 3167 	Specbind redisplay-dont-pause to t if FORCE non-nil.
 3168 
 3169 2006-07-10  Chong Yidong  <cyd@stupidchicken.com>
 3170 
 3171 	* puresize.h (BASE_PURESIZE): Increment to 1211000.
 3172 
 3173 	* dispnew.c (Fredisplay): New function, equivalent to (sit-for 0).
 3174 	(Fsit_for): Function deleted.
 3175 
 3176 	* keyboard.c (command_loop_1, Fexecute_extended_command):
 3177 	Call sit_for instead of Fsit_for.
 3178 
 3179 	* minibuf.c (temp_echo_area_glyphs): Likewise.
 3180 
 3181 2006-07-09  Stefan Monnier  <monnier@iro.umontreal.ca>
 3182 
 3183 	* syntax.c (Fforward_comment): Revert the reversion.
 3184 	(back_comment, scan_lists): Also use EMACS_INT for buffer positions.
 3185 
 3186 2006-07-09  John Paul Wallington  <jpw@pobox.com>
 3187 
 3188 	* syntax.c (Fforward_comment): Revert previous change.
 3189 
 3190 2006-07-09  Kim F. Storm  <storm@cua.dk>
 3191 
 3192 	* window.c (Fforce_window_update): Doc fix.
 3193 
 3194 2006-07-08  Stephen Gildea  <gildea@stop.mail-abuse.org>
 3195 
 3196 	* fileio.c (do_auto_save_make_dir): Make the auto-save-list-file
 3197 	directory unreadable for better user privacy.
 3198 
 3199 2006-07-07  Stefan Monnier  <monnier@iro.umontreal.ca>
 3200 
 3201 	* syntax.c (Fforward_comment): Fix int-32 vs EMACS_INT-64 mixup.
 3202 
 3203 	* lread.c (read_filtered_event): Remove `register' qualifier because it
 3204 	causes compilation problem with gcc-4.0.2-20051125 on amd64.
 3205 	(readevalloop): Remove unused var `bpos'.
 3206 	Yet another int/Lisp_Object mixup (YAILOM).
 3207 
 3208 2006-07-07  Eli Zaretskii  <eliz@gnu.org>
 3209 
 3210 	* keyboard.c (Fexecute_extended_command): Mention the argument
 3211 	PREFIXARG in the doc string.
 3212 
 3213 2006-07-07  Kim F. Storm  <storm@cua.dk>
 3214 
 3215 	* fringe.c (Fdefine_fringe_bitmap): Doc fix.
 3216 
 3217 2006-07-05  Chong Yidong  <cyd@stupidchicken.com>
 3218 
 3219 	* insdel.c (prepare_to_modify_buffer): For an indirect buffer, do
 3220 	clash detection using the base buffer.
 3221 
 3222 	* puresize.h (BASE_PURESIZE): Increment to 1210500.
 3223 
 3224 2006-07-04  Kim F. Storm  <storm@cua.dk>
 3225 
 3226 	* xterm.c (x_delete_display): Don't free or dereference NULL pointers.
 3227 
 3228 2006-07-04  Kenichi Handa  <handa@m17n.org>
 3229 
 3230 	* fontset.c (Fset_overriding_fontspec_internal): Check if we need
 3231 	to update Voverriding_fontspec_alist.
 3232 
 3233 2006-07-03  Richard Stallman  <rms@gnu.org>
 3234 
 3235 	* xfns.c (Fx_create_frame): Move unwind_create_frame setup down.
 3236 
 3237 	* xfaces.c (Fface_attribute_relative_p): Doc fix.
 3238 
 3239 	* textprop.c (Fget_char_property_and_overlay): Doc fix.
 3240 
 3241 	* eval.c (Fdefvaralias): Doc fix.
 3242 
 3243 2006-07-03  Kim F. Storm  <storm@cua.dk>
 3244 
 3245 	* dispnew.c (sit_for): Fix preempt condition.
 3246 
 3247 2006-07-02  Stefan Monnier  <monnier@iro.umontreal.ca>
 3248 
 3249 	* lread.c (read_filtered_event): Treat select-window just like
 3250 	switch-frame.
 3251 
 3252 2006-07-02  Kim F. Storm  <storm@cua.dk>
 3253 
 3254 	* xdisp.c (display_tool_bar_line): Skip glyphs which are too big
 3255 	to ever fit the tool-bar.
 3256 	(MAX_FRAME_TOOL_BAR_HEIGHT): New macro.
 3257 	(tool_bar_lines_needed): Use unused mode-line row as temp_row.
 3258 	(redisplay_tool_bar): Only clear desired matrix if we actually
 3259 	change the tool-bar window height.  Only try to make the tool-bar
 3260 	window bigger if there is actually room for it.
 3261 
 3262 2006-06-30  Ralf Angeli  <angeli@caeruleus.net>
 3263 
 3264 	* w32term.c (x_make_frame_visible): Use SystemParametersInfo with
 3265 	SPI_GETWORKAREA to find the dimensions of the screen work area,
 3266 	and adjust vertical position of the frame in order to avoid being
 3267 	covered by the taskbar.
 3268 
 3269 	* w32fns.c (w32_createwindow): Use CW_USEDEFAULT instead of
 3270 	f->left_pos and SH_SHOW instead of f->top_pos in the call to
 3271 	CreateWindow.  Record the actual position in f->left_pos and
 3272 	f->top_pos.
 3273 
 3274 2006-06-30  John Paul Wallington  <jpw@pobox.com>
 3275 
 3276 	* w32console.c (syms_of_ntterm) <w32-use-full-screen-buffer>:
 3277 	Doc fix - default value has changed.
 3278 
 3279 2006-06-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 3280 
 3281 	* mac.c [!TARGET_API_MAC_CARBON]: Don't include FixMath.h or Scrap.h.
 3282 
 3283 	* macfns.c (Fx_create_frame): Apply 2006-06-24 change for xfns.c.
 3284 
 3285 	* macgui.h (USE_MAC_TSM) [TARGET_API_MAC_CARBON]: Set default to 1.
 3286 
 3287 	* macterm.c (Qeql): Add extern.
 3288 	(x_set_mouse_pixel_position) [MAC_OSX]: Use CGWarpMouseCursorPosition.
 3289 	(fm_style_face_attributes_alist) [USE_ATSUI]: New variable.
 3290 	(syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
 3291 	Change keys of Vmac_atsu_font_table from strings to numbers.
 3292 	(fm_style_to_face_attributes) [USE_ATSUI]: New function.
 3293 	(init_font_name_table) [USE_ATSUI]: Use it.
 3294 	(saved_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
 3295 	(syms_of_macterm) [USE_MAC_TSM]: Initialize and staticpro it.
 3296 	[USE_MAC_TSM] (mac_tsm_resume): Restore script and language codes
 3297 	only when saved_ts_script_language_on_focus coincides with
 3298 	Vmac_ts_script_language_on_focus.
 3299 	[USE_MAC_TSM] (mac_tsm_suspend): Save value of
 3300 	Vmac_ts_script_language_on_focus to saved_ts_script_language_on_focus.
 3301 	(XTread_socket) [USE_MAC_TSM]: Add Mac OS Classic support.
 3302 	[USE_MAC_TSM] (mac_handle_text_input_event, init_tsm): Likewise.
 3303 
 3304 2006-06-27  Chong Yidong  <cyd@stupidchicken.com>
 3305 
 3306 	* editfns.c (Fdelete_field, Ffield_string, Ffield_beginning)
 3307 	(Ffield_string_no_properties, Ffield_end): Mention
 3308 	args-out-of-range error condition in docstring.
 3309 
 3310 2006-06-27  Kim F. Storm  <storm@cua.dk>
 3311 
 3312 	* xdisp.c (handle_composition_prop): Set stop_charpos before push_it.
 3313 
 3314 2006-06-25  Kim F. Storm  <storm@cua.dk>
 3315 
 3316 	* s/gnu-linux.h (SIGNALS_VIA_CHARACTERS): Define for Linux kernel
 3317 	version 2.4 and later.
 3318 
 3319 2006-06-24  Chong Yidong  <cyd@stupidchicken.com>
 3320 
 3321 	* xfns.c (Fx_create_frame): Set font parameter directly instead of
 3322 	using x_default_parameter, since x_get_args clears the parm alist.
 3323 
 3324 2006-06-24  Eli Zaretskii  <eliz@gnu.org>
 3325 
 3326 	* dired.c (directory_files_internal) [WINDOWSNT]: Find files
 3327 	case-insensitively.
 3328 
 3329 2006-06-24  Aidan Kehoe  <kehoea@parhasard.net>
 3330 
 3331 	* lread.c (read_escape): When an unknown Unicode code point is
 3332 	encountered as a string or character escape, signal an error.
 3333 
 3334 2006-06-23  Kim F. Storm  <storm@cua.dk>
 3335 
 3336 	* .gdbinit (pitx): Dump iterator stack.
 3337 
 3338 	* xdisp.c (handle_composition_prop): Push iterator on stack.
 3339 	(set_iterator_to_next): Pop iterator at end of composition.
 3340 
 3341 2006-06-23  Martin Rudalics  <rudalics@gmx.at>
 3342 
 3343 	* fileio.c (Frename_file) [DOS_NT]: Don't try to move directory to
 3344 	itself on DOS_NT platforms, if the old and new names are identical
 3345 	but for the letter-case.
 3346 
 3347 2006-06-21  Kim F. Storm  <storm@cua.dk>
 3348 
 3349 	* dispextern.h (struct it): Add `position' member to iterator stack.
 3350 	Rename `pos' member to `current'.  Rearrange and add comments.
 3351 
 3352 	* xdisp.c (handle_stop): Set it->ignore_overlay_strings_at_pos_p
 3353 	if  we get any overlays.
 3354 	(set_cursor_from_row): Don't clobber `end' if we rescan from
 3355 	start_string.
 3356 	(push_it, pop_it): Save it->position.
 3357 
 3358 2006-06-19  Richard Stallman  <rms@gnu.org>
 3359 
 3360 	* window.c (size_window): New arg FIRST_ONLY.  All callers changed.
 3361 	(adjust_window_trailing_edge): Specially compute FIRST_PARALLEL
 3362 	for the case of a top-level window and the following minibuffer.
 3363 	Don't exit because of no `next' when there is a parent.
 3364 	Use the FIRST_ONLY feature when resizing following windows.
 3365 
 3366 	* syntax.c (init_syntax_once): Give most control chars' syntax Spunct.
 3367 
 3368 2006-06-17  Kim F. Storm  <storm@cua.dk>
 3369 
 3370 	* dispnew.c (update_frame): Check for input pending on entry.
 3371 	(update_window, update_frame_1): Break loop if input is detected.
 3372 
 3373 2006-06-16  Francis Litterio  <flitterio@gmail.com>
 3374 
 3375 	* xterm.c (x_check_expected_move, handle_one_xevent)
 3376 	(x_set_offset, x_check_fullscreen): Extensive changes to make
 3377 	frame positioning deterministic under X.
 3378 
 3379 	* xterm.h (x_output): Add members left_before_move and
 3380 	top_before_move.  Removed members expected_left and expected_top.
 3381 
 3382 2006-06-16  Kim F. Storm  <storm@cua.dk>
 3383 
 3384 	* dispextern.h (struct it): Add union to iterator stack to save
 3385 	image, composition, and stretch specific parameters.
 3386 
 3387 	* xdisp.c (next_overlay_string): Fix assert.
 3388 	(push_it, pop_it): Handle composition and stretch specific values.
 3389 	Only handle it->slice in image (for now).
 3390 	(back_to_previous_visible_line_start): Continue search if newline is
 3391 	part of a composition.  Simplify.
 3392 	(reseat_1): Set it->object to buffer.
 3393 	(set_iterator_to_next): Set it->object to string or buffer, when
 3394 	setting it->method to GET_FROM_STRING or GET_FROM_BUFFER.
 3395 	(next_element_from_composition): Set it->object to buffer if not
 3396 	from string.
 3397 	(set_cursor_from_row): Only save start of string if not already
 3398 	done to handle multiple strings in a row.
 3399 
 3400 	* .gdbinit (pitx): Show composition parameters.
 3401 	(pgx, pg): New commands to print a glyph structure.
 3402 	(pgi, pgn): New commands to print specific/next glyph.
 3403 	(pgrowx, pgrow): New commands to print all glyphs in a row.
 3404 
 3405 2006-06-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 3406 
 3407 	* macfns.c (Fx_display_mm_height, Fx_display_mm_width)
 3408 	[MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use CGDisplayScreenSize.
 3409 
 3410 	* macterm.c (do_app_resume, do_app_suspend): Remove functions.
 3411 	(mac_tsm_resume, mac_tsm_suspend) [USE_MAC_TSM]: New functions.
 3412 	(mac_handle_window_event, XTread_socket) [USE_MAC_TSM]: Use them.
 3413 	(Vmac_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
 3414 	(syms_of_macterm) [USE_MAC_TSM]: Defvar it.
 3415 	(saved_ts_language, saved_ts_component) [USE_MAC_TSM]: New variables.
 3416 	(mac_initialize_display_info) [MAC_OSX]: Use Quartz Display
 3417 	Services functions to get size of main display in pixels.
 3418 
 3419 2006-06-14  Chong Yidong  <cyd@stupidchicken.com>
 3420 
 3421 	* xdisp.c (back_to_previous_visible_line_start):
 3422 	Reset it->continuation_lines_width.
 3423 
 3424 2006-06-14  Richard Stallman  <rms@gnu.org>
 3425 
 3426 	* eval.c (Fdefconst): Mark variable as risky.
 3427 
 3428 	* callproc.c (Fcall_process): Doc fix.
 3429 
 3430 	* window.c (adjust_window_trailing_edge): Don't break out of the loop
 3431 	because there's no next window, if there are parallel windows.
 3432 	Do break out when WINDOW is nil.
 3433 
 3434 2006-06-14  Kim F. Storm  <storm@cua.dk>
 3435 
 3436 	* dispextern.h (IT_STACK_SIZE): New macro specifying size of
 3437 	iterator stack (instead of hardcoded number).  Increase from 2 to
 3438 	4 to make room for propertized overlay strings before and after a
 3439 	display string, image or composition.
 3440 	(struct it): Add image_id and method members to iterator stack.
 3441 
 3442 	* xdisp.c (init_from_display_pos): Don't set it->method and
 3443 	overlay_string_index after pop_it.  Add asserts.
 3444 	(handle_stop): Look for overlay strings around a display string,
 3445 	image, or composition.  Handle properties on those strings.
 3446 	(next_overlay_string): Don't set string, pos or method after pop_it.
 3447 	(get_overlay_strings_1): Split from get_overlay_strings; don't
 3448 	modify it if no overlay strings are found.
 3449 	(get_overlay_strings): Use get_overlay_strings_1.  Always set
 3450 	it->string and it->method.
 3451 	(push_it): Push it->image_id and it->method.  Push it->object
 3452 	instead of it->string if method is GET_FROM_IMAGE.
 3453 	(pop_it): Pop it->image_id and it->method.  Ppo it->object
 3454 	instead of it->string if method is GET_FROM_IMAGE.
 3455 	Reset it->current.string_pos if popped it->string is nil.
 3456 	(reseat_1): Remove comment dated 19 May 2003.  It expressed doubt
 3457 	whether a given change was correct; but the change is correct.
 3458 	Clear it->string_from_display_prop_p.
 3459 	(set_iterator_to_next): Rely on it->method and it->image_id from
 3460 	iterator stack, instead of setting them explicitly after pop_it.
 3461 
 3462 	* dispnew.c (sit_for): Undo 2006-06-01 change.  Instead, a
 3463 	negative time forces redisplay even when input is available.
 3464 	(Fsit_for): Doc fix.
 3465 
 3466 2006-06-13  Kim F. Storm  <storm@cua.dk>
 3467 
 3468 	* dispnew.c: Modify preemptive redisplay to be based on periodic
 3469 	checks for input.
 3470 	(PERIODIC_PREEMPTION_CHECKING): Define to 1 iff EMACS_HAS_USECS.
 3471 	(Vredisplay_preemption_period): New variable.
 3472 	(syms_of_display): DEFVAR_LISP and initialize it.
 3473 	(preemption_period, preemption_next_check): New variables.
 3474 	(update_frame, update_single_window): Initialize them based on
 3475 	Vredisplay_preemption_period if !force_p.
 3476 	(update_window, update_frame_1): Use them to determine when to
 3477 	check for input.
 3478 
 3479 2006-06-03  Aidan Kehoe  <kehoea@parhasard.net>
 3480 
 3481 	* lread.c (read_escape): Provide a Unicode character escape
 3482 	syntax; \u followed by exactly four or \U followed by exactly
 3483 	eight hex digits in a comment or string is read as a Unicode
 3484 	character with that code point.
 3485 
 3486 2006-06-09  Eli Zaretskii  <eliz@gnu.org>
 3487 
 3488 	* window.c (window_scroll_pixel_based): Signal "Beginning of
 3489 	buffer" when scroll-down at the beginning of an empty buffer.
 3490 
 3491 2006-06-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 3492 
 3493 	* macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
 3494 	Exclude 0x7f from ASCII range.
 3495 
 3496 2006-06-05  Jason Rumney  <jasonr@gnu.org>
 3497 
 3498 	* w32term.c (w32_set_scroll_bar_thumb, x_scroll_bar_create)
 3499 	(w32_set_vertical_scroll_bar, w32_scroll_bar_handle_click)
 3500 	(x_scroll_bar_report_motion): Remove workarounds for
 3501 	versions of Windows NT < 3.51.
 3502 	[!SIF_ALL]: Remove.
 3503 	(pfnSetScrollInfo, pfnGetScrollInfo): Remove.
 3504 	(w32_initialize): Don't dynamically load Get/SetScrollInfo.
 3505 
 3506 2006-06-04  David Kastrup  <dak@gnu.org>
 3507 
 3508 	* dispnew.c: Mention `redisplay-dont-pause' in doc string of
 3509 	`sit-for'.
 3510 
 3511 2006-06-03  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 3512 
 3513 	* macfns.c (x_set_icon_name): Apply 2006-06-02 change for xfns.c.
 3514 
 3515 	* macgui.h (USE_MAC_TSM): Set default to 1 on Mac OS X.
 3516 
 3517 	* macterm.c (tsm_document_id) [USE_MAC_TSM]: New variable.
 3518 	(Qtext_input, Qupdate_active_input_area, Qunicode_for_key_event)
 3519 	[USE_MAC_TSM]: Likewise.
 3520 	(syms_of_macterm) [USE_MAC_TSM]: Intern and staticpro them.
 3521 	(Qbefore_string) [USE_MAC_TSM]: Add extern.
 3522 	(do_app_resume, do_app_suspend) [USE_MAC_TSM]: Call
 3523 	ActivateTSMDocument/DeactivateTSMDocument.
 3524 	(mac_store_event_ref_as_apple_event): Call mac_post_mouse_moved_event.
 3525 	(mac_handle_window_event) [USE_MAC_TSM]: Handle
 3526 	kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
 3527 	(mac_handle_text_input_event) [USE_MAC_TSM]: New function.
 3528 	(install_window_handler) [USE_MAC_TSM]: Install it.  Register
 3529 	kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
 3530 	(keycode_to_xkeysym_table): Add entry for f16.
 3531 	(XTread_socket) [USE_MAC_TSM]: Set/reset read_socket_inev
 3532 	before/after passing keystroke event to toolbox dispatcher.
 3533 	(init_tsm) [USE_MAC_TSM]: New function.
 3534 	(mac_initialize) [USE_MAC_TSM]: Call it.
 3535 	(Vmac_ts_active_input_overlay) [USE_MAC_TSM]: New defvar.
 3536 
 3537 	* macterm.h (EVENT_PARAM_TEXT_INPUT_SEQUENCE_NUMBER): New enumerator.
 3538 
 3539 2006-06-02  John Paul Wallington  <jpw@gnu.org>
 3540 
 3541 	* xfns.c (x_set_name_internal): Set icon to `text', derived from
 3542 	name, when frame's icon_name isn't a string rather than only when
 3543 	it is nil.
 3544 
 3545 2006-06-03  Eli Zaretskii  <eliz@gnu.org>
 3546 
 3547 	* w32fns.c (x_set_icon_name): Don't use arg if it's not a string
 3548 	and not nil.
 3549 
 3550 2006-06-02  Chong Yidong  <cyd@stupidchicken.com>
 3551 
 3552 	* xfns.c (x_set_icon_name): No-op if arg is non-nil and not a
 3553 	string.
 3554 
 3555 2006-06-02  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 3556 
 3557 	* xdisp.c (next_element_from_composition): Set it->object to
 3558 	it->string if composition is coming from string.
 3559 	(set_cursor_from_row): Don't return 0 unless row displays a
 3560 	continued line.
 3561 	(dump_glyph): Dump composite glyph.
 3562 
 3563 2006-06-02  Jan Djärv  <jan.h.d@swipnet.se>
 3564 
 3565 	* gtkutil.c (menu_nav_ended): Check that menubar_widget is not NULL.
 3566 
 3567 2006-06-01  Richard Stallman  <rms@gnu.org>
 3568 
 3569 	* window.c (Fsplit_window): Doc fix.
 3570 
 3571 2006-06-01  Michaël Cadilhac  <michael.cadilhac@lrde.org>
 3572 
 3573 	* process.c (deleted_pid_list): New variable to store the pids
 3574 	of deleted processes.  Declare it only if SIGCHLD is defined.
 3575 	(init_process): Initialize it.
 3576 	(syms_of_process): Staticpro it.
 3577 	(Fdelete_process): Add pid of the deleted process to it.  Check after
 3578 	the addition and before the kill if the process is already stopped,
 3579 	in which case it is deleted from the list and not killed.
 3580 	(sigchld_handler): Define it only if SIGCHLD is.  Search the process
 3581 	that signaled Emacs in `deleted_pid_list' before `Vprocess_alist'.
 3582 	Original idea by Stefan Monnier.
 3583 
 3584 2006-06-01  Kim F. Storm  <storm@cua.dk>
 3585 
 3586 	* dispnew.c (sit_for): Perform redisplay even if input is pending
 3587 	when redisplay-dont-pause is non-nil.
 3588 
 3589 2006-06-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 3590 
 3591 	* macterm.c (mac_handle_visibility_change): Set buf.arg to Qnil.
 3592 	(XTread_socket): Remove obsolete comment.
 3593 
 3594 2006-06-01  Jan Djärv  <jan.h.d@swipnet.se>
 3595 
 3596 	* xmenu.c (syms_of_xmenu): Make accelerate-menu an alias for
 3597 	menu-bar-open.
 3598 
 3599 2006-06-01  Jan Djärv  <jan.h.d@swipnet.se>
 3600 
 3601 	* xmenu.c (Fmenu_bar_open, syms_of_xmenu): Change menu-bar-start to
 3602 	menu-bar-open.
 3603 
 3604 	* gtkutil.c (menu_nav_ended): Change x-menu-bar-start to menu-bar-open.
 3605 
 3606 2006-05-31  Juri Linkov  <juri@jurta.org>
 3607 
 3608 	* minibuf.c (Vhistory_add_new_input): New variable.
 3609 	(read_minibuf): Use it.
 3610 	(syms_of_minibuf) <history-add-new-input>: New Lisp variable.
 3611 	(syms_of_minibuf) <history-delete-duplicates>: Doc fix.
 3612 
 3613 2006-05-31  Kim F. Storm  <storm@cua.dk>
 3614 
 3615 	* process.c (select_wrapper): Add wrapper around select to work around
 3616 	"incomplete backtrace" bug in gdb 5.3, when emacs is stopped inside
 3617 	select called from wait_reading_process_output.
 3618 
 3619 2006-05-30  Andreas Schwab  <schwab@suse.de>
 3620 
 3621 	* xmenu.c (Fmenu_bar_start): Return a value.
 3622 
 3623 2006-05-30  Richard Stallman  <rms@gnu.org>
 3624 
 3625 	* coding.c (Ffind_operation_coding_system): Doc fix.
 3626 
 3627 2006-05-30  Eli Zaretskii  <eliz@gnu.org>
 3628 
 3629 	* w32term.c (x_draw_hollow_cursor): Fix last change.
 3630 
 3631 2006-05-29  Kim F. Storm  <storm@cua.dk>
 3632 
 3633 	* w32term.c (x_draw_stretch_glyph_string): Fix last change.
 3634 
 3635 2006-05-29  Eli Zaretskii  <eliz@gnu.org>
 3636 
 3637 	* coding.c (Ffind_operation_coding_system): Doc fix.
 3638 
 3639 2006-05-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 3640 
 3641 	* macfns.c [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility):
 3642 	Call mac_set_font_info_for_selection if font panel is made visible.
 3643 
 3644 	* macterm.c (font_panel_shown_p) [USE_MAC_FONT_PANEL]: New variable.
 3645 	(mac_font_panel_visible_p, mac_show_hide_font_panel)
 3646 	[USE_MAC_FONT_PANEL]: New functions.
 3647 	[USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection):
 3648 	Return immediately if font panel is not visible.
 3649 
 3650 	* macterm.h (mac_font_panel_visible_p, mac_show_hide_font_panel):
 3651 	Add externs.
 3652 
 3653 2006-05-29  Dan Nicolaescu  <dann@ics.uci.edu>
 3654 
 3655 	* search.c (matcher_overflow): Mark as NO_RETURN.
 3656 
 3657 	* xterm.c (x_connection_closed): Likewise.
 3658 
 3659 	* sysdep.c (croak): Likewise.
 3660 
 3661 	* sound.c (sound_perror, alsa_sound_perror): Likewise.
 3662 
 3663 	* lisp.h (die, nsberror): Likewise.
 3664 
 3665 2006-05-29  Jan Djärv  <jan.h.d@swipnet.se>
 3666 
 3667 	* sound.c (alsa_open, alsa_configure, alsa_write):
 3668 	Move assignment to err out of if-statement.
 3669 
 3670 	* gtkutil.c (menu_nav_ended): New function.
 3671 	(create_menus): Connect menu_nav_ended to "selection-done" to fix
 3672 	grabs.
 3673 
 3674 	* xmenu.c (Fmenu_bar_start): New function for USE_GTK and USE_X_TOOLKIT.
 3675 
 3676 2006-05-28  Dan Nicolaescu  <dann@ics.uci.edu>
 3677 
 3678 	* charset.h (invalid_character): Mark as NO_RETURN.
 3679 
 3680 2006-05-29  Kenichi Handa  <handa@m17n.org>
 3681 
 3682 	* coding.c (Ffind_operation_coding_system): Call a function by
 3683 	safe_call1 instead of call1.
 3684 
 3685 2006-05-28  Stefan Monnier  <monnier@iro.umontreal.ca>
 3686 
 3687 	* window.c (struct saved_window): Add `dedicated'.
 3688 	(Fset_window_configuration, save_window_save): Save/restore the
 3689 	`dedicated' flag.
 3690 
 3691 2006-05-28  Kim F. Storm  <storm@cua.dk>
 3692 
 3693 	* xdisp.c (set_cursor_from_row): If cursor cannot be set in row,
 3694 	don't update w->cursor and return 0.  Return 1 on success.
 3695 	(try_cursor_movement): Repeat set_cursor_from_row on successive rows
 3696 	until it succeeds.
 3697 
 3698 	* dispextern.h (set_cursor_from_row): Update prototype.
 3699 
 3700 2006-05-28  Kim F. Storm  <storm@cua.dk>
 3701 
 3702 	* xdisp.c (get_phys_cursor_geometry): Return computed x and y through
 3703 	parameters.  Adjust x and width in case cursor in on a partially
 3704 	visible stretch glyph on the left edge.
 3705 	(erase_phys_cursor): Don't erase into left fringe/margin in case
 3706 	previous cursor glyph is a partially visible stretch glyph on left.
 3707 
 3708 	* dispextern.h (get_phys_cursor_geometry): Update prototype.
 3709 
 3710 	* xterm.c (x_draw_stretch_glyph_string): Fix problems with invisible
 3711 	cursor and erasing cursor on partially visible stretch glyph on left.
 3712 	(x_draw_hollow_cursor): Compute x via get_phys_cursor_geometry.
 3713 
 3714 	* macterm.c: Likewise.
 3715 
 3716 	* w32term.c: Likewise.
 3717 
 3718 2006-05-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 3719 
 3720 	* macselect.c (mac_handle_apple_event):
 3721 	Return errAEEventNotHandled if key binding is not found.
 3722 
 3723 2006-05-26  Eli Zaretskii  <eliz@gnu.org>
 3724 
 3725 	* emacs.c (main) [PROFILING]: Enable also for __MINGW32__.
 3726 	[__MINGW32__]: MinGW-specific declaration of `etext'.
 3727 
 3728 	* w32heap.c (etext, edata): Remove unused definitions.
 3729 
 3730 2006-05-26  Chong Yidong  <cyd@stupidchicken.com>
 3731 
 3732 	* fileio.c (Fcopy_file): Delete argument MUSTBENEW.
 3733 	Incorporate the exclusive file-opening functionality into the behavior
 3734 	when OK-IF-ALREADY-EXISTS is nil.
 3735 	(Frename_file): Call Fcopy_file without MUSTBENEW argument.
 3736 
 3737 2006-05-26  Jan Djärv  <jan.h.d@swipnet.se>
 3738 
 3739 	* sound.c (alsa_configure): Move get period/buffer_size after
 3740 	setting hwparams.
 3741 
 3742 2006-05-26  Kenichi Handa  <handa@m17n.org>
 3743 
 3744 	* coding.c (Ffind_operation_coding_system): Allow (FILENAME
 3745 	. BUFFER) in TARGET.
 3746 
 3747 2006-05-25  Chong Yidong  <cyd@stupidchicken.com>
 3748 
 3749 	* image.c (png_load): Don't call fclose on NULL.
 3750 
 3751 2006-05-25  Luc Teirlinck  <teirllm@auburn.edu>
 3752 
 3753 	* fns.c (Fyes_or_no_p):
 3754 	* callint.c (Fcall_interactively): Fread_from_minibuffer now takes
 3755 	only seven args.
 3756 
 3757 2006-05-25  Juri Linkov  <juri@jurta.org>
 3758 
 3759 	* lisp.h (Fread_from_minibuffer): Decrement number of args.
 3760 
 3761 	* minibuf.c (read_minibuf): Remove arg KEEP_ALL.  Callers changed.
 3762 	(Fread_from_minibuffer): Remove arg KEEP_ALL.  Callers changed.
 3763 
 3764 	* buffer.c (mode-line-format): Fix docstring.
 3765 
 3766 2006-05-25  Richard Stallman  <rms@gnu.org>
 3767 
 3768 	* emacs.c (main, Fdump_emacs): Don't test __linux or __linux__.
 3769 
 3770 2006-05-24  Luc Teirlinck  <teirllm@auburn.edu>
 3771 
 3772 	* puresize.h (BASE_PURESIZE): Increase to 1210000.
 3773 
 3774 2006-05-24  Alan Mackenzie  <acm@muc.de>
 3775 
 3776 	* lread.c (Vload_history): Enhance doc-string to say that the file
 3777 	is the absolute truename of the loaded file.
 3778 
 3779 	* lread.c (Vafter_load_alist): doc-string: state that an element
 3780 	now has a regexp to match file names, not a file name as such.
 3781 
 3782 	* lread.c (readevalloop): Call file-truename on the name for
 3783 	load-history, except at preloading time.
 3784 
 3785 	* lread.c (Fload): At preloading time, preserve the extension of
 3786 	the filename which goes into load-history.  New var hist_file_name.
 3787 
 3788 	* lread.c (Fload): Do eval-after-load stuff by calling the lisp
 3789 	function do-after-load-evaluation.
 3790 
 3791 2006-05-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 3792 
 3793 	* mac.c (ae_attr_table): New variable.
 3794 	(syms_of_mac): Intern and staticpro its elements.
 3795 	(mac_aelist_to_lisp): Also convert Apple event attributes.
 3796 	(mac_ae_put_lisp): New function.
 3797 	(create_apple_event_from_event_ref) [MAC_OSX]: Use typeUTF8Text.
 3798 
 3799 	* macfns.c (Fx_server_version): Use gestaltSystemVersionMajor etc.
 3800 
 3801 	* macselect.c (Qemacs_suspension_id): New variable.
 3802 	(syms_of_macselect): Intern and staticpro it.
 3803 	(struct suspended_ae_info): New struct.
 3804 	(deferred_apple_events, defer_apple_events)
 3805 	(Fmac_process_deferred_apple_events): Use it.
 3806 	(suspended_apple_events): New variable.
 3807 	(mac_handle_apple_event_1): New function.
 3808 	(mac_handle_apple_event): Use it.  Don't process previously
 3809 	suspended events.
 3810 	(cleanup_suspended_apple_events, get_suspension_id)
 3811 	(cleanup_all_suspended_apple_events): New functions.
 3812 	(init_apple_event_handler): Call cleanup_all_suspended_apple_events
 3813 	at exit.
 3814 	(Fmac_cleanup_expired_apple_events, Fmac_ae_set_reply_parameter)
 3815 	(Fmac_resume_apple_event): New defuns.
 3816 	(syms_of_macselect): Defsubr them.
 3817 
 3818 	* macterm.c (fn_keycode_to_keycode_table, XTread_socket) [MAC_OSX]:
 3819 	Fix last change.  Don't map `fn' modifier if pressed with F1 ... F12.
 3820 
 3821 	* macterm.h (TYPE_FILE_NAME): Change from macro to enumerator.
 3822 	(KEY_EMACS_SUSPENSION_ID_ATTR): New enumerator.
 3823 	(keyReplyRequestedAttr) [MAC_OS_X_VERSION_MAX_ALLOWED < 1030]: Likewise.
 3824 	(gestaltSystemVersionMajor, gestaltSystemVersionMinor)
 3825 	(gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
 3826 	Likewise.
 3827 	(typeUTF8Text, kEventParamWindowMouseLocation)
 3828 	[MAC_OSX && MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Likewise.
 3829 	(x_get_focus_frame, mac_ae_put_lisp): Add externs.
 3830 
 3831 2006-05-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 3832 
 3833 	* macterm.c (fn_keycode_to_xkeysym_table, convert_fn_keycode): Remove.
 3834 	(fn_keycode_to_keycode_table) [MAC_OSX]: New variable.
 3835 	(mac_set_unicode_keystroke_event) [TARGET_API_MAC_CARBON]: New function.
 3836 	(XTread_socket) [TARGET_API_MAC_CARBON]: Use it.
 3837 	(XTread_socket) [MAC_OSX]: Try 'uchr' Unicode keyboard-layout
 3838 	resource to backtranslate key with modifiers.
 3839 	(XTread_socket): Don't set read_socket_inev around AEProcessAppleEvent.
 3840 
 3841 2006-05-23  Jan Djärv  <jan.h.d@swipnet.se>
 3842 
 3843 	* xterm.c: Remove declarations already in xterm.h.
 3844 
 3845 	* xterm.h: Add extern declarations for x_clear_errors,
 3846 	x_fully_uncatch_errors, x_catching_errors and
 3847 	x_alloc_lighter_color_for_widget.  Remove duplicated declarations.
 3848 
 3849 2006-05-21  Richard Stallman  <rms@gnu.org>
 3850 
 3851 	* xfaces.c (best_matching_font): Abort for best == NULL
 3852 	before we start to use it.
 3853 
 3854 	* buffer.c (syms_of_buffer, Fmake_overlay): Doc fixes.
 3855 
 3856 2006-05-20  Kim F. Storm  <storm@cua.dk>
 3857 
 3858 	* xfaces.c (best_matching_font): Fix crash in 2006-05-17 change.
 3859 
 3860 2006-05-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 3861 
 3862 	* macterm.c (convert_fn_keycode): Fix last change.
 3863 
 3864 2006-05-19  Eli Zaretskii  <eliz@gnu.org>
 3865 
 3866 	* w32.c (init_environment): Perform the processing of environment
 3867 	variables on a copy of default variables and their values, not on
 3868 	the original.  Simplify code that calls ExpandEnvironmentStrings
 3869 	and make buf1[] and buf2[] more visible for easier debugging.
 3870 
 3871 2006-05-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 3872 
 3873 	* frame.c (x_set_border_width): Remove #ifndef MAC_OS.
 3874 
 3875 	* image.c [MAC_OS] (gif_load): Allocate Lisp string first.
 3876 
 3877 	* macfns.c (Fx_focus_frame): Don't check dpyinfo->x_focus_frame.
 3878 
 3879 	* macterm.c (XTread_socket) [TARGET_API_MAC_CARBON && MAC_OSX]:
 3880 	Forward keyUp events to toolbox_dispatcher.
 3881 
 3882 	* window.c (foreach_window): Check WINDOWP (FRAME_ROOT_WINDOW (f)).
 3883 
 3884 2006-05-18  Jan Djärv  <jan.h.d@swipnet.se>
 3885 
 3886 	* config.in: Regenerated (HAVE_ALSA).
 3887 
 3888 	* sound.c (alsa_sound_perror, alsa_open, alsa_period_size)
 3889 	(alsa_configure, alsa_close, alsa_choose_format, alsa_write)
 3890 	(snd_error_quiet, alsa_init): New functions.
 3891 	(vox_init): Return 0 if unable to open device.
 3892 	(Fplay_sound_internal): Test for alsa first and use vox (oss) as
 3893 	a fallback.
 3894 	(struct sound_device): Add period_size.
 3895 	(wav_play, au_play): Use period_size if set.
 3896 
 3897 	* Makefile.in (CFLAGS_SOUND): New flags for ALSA.
 3898 	(ALL_CFLAGS): Add CFLAGS_SOUND.
 3899 
 3900 2006-05-18  Kenichi Handa  <handa@m17n.org>
 3901 
 3902 	* callproc.c (Fcall_process): Reject encoding arguments by
 3903 	ascii-incompatible coding systems (e.g. utf-16).
 3904 
 3905 	* coding.c (Qascii_incompatible): New variable.
 3906 	(syms_of_coding): Setup Qascii_incompatible.
 3907 	(setup_coding_system): Be sure to initialize coding->common_flags.
 3908 	Check `ascii-incompatible' property of the coding system.
 3909 
 3910 	* coding.h (CODING_ASCII_INCOMPATIBLE_MASK): New macro.
 3911 
 3912 2006-05-18  Kim F. Storm  <storm@cua.dk>
 3913 
 3914 	* xdisp.c (display_tool_bar_line): Restore entire tool-bar
 3915 	geometry when backtracking in case last image doesn't fit on line.
 3916 
 3917 2006-05-18  MIYOSHI Masanori  <miyoshi@meadowy.org>  (tiny change)
 3918 
 3919 	* xdisp.c (display_tool_bar_line): Don't adjust tool-bar height by
 3920 	more than height of one frame default line.
 3921 
 3922 2006-05-17  Richard Stallman  <rms@gnu.org>
 3923 
 3924 	* xfaces.c (better_font_p): Any font beats no font.
 3925 	(best_matching_font): Simplify based on above change.
 3926 
 3927 	* buffer.c (Fprevious_overlay_change, Fnext_overlay_change): Doc fixes.
 3928 
 3929 2006-05-16  Kim F. Storm  <storm@cua.dk>
 3930 
 3931 	* xterm.c (handle_one_xevent): Check that f is not NULL before
 3932 	calling x_kill_gs_process.
 3933 
 3934 2006-05-14  Richard Stallman  <rms@gnu.org>
 3935 
 3936 	* textprop.c (Fnext_single_char_property_change)
 3937 	(Fprevious_single_char_property_change): Don't allow returning
 3938 	value beyond LIMIT in any cases.
 3939 	(Fnext_char_property_change, Fprevious_char_property_change): Doc fix.
 3940 
 3941 	* intervals.c (get_local_map): Abort if POSITION outside BEGV, ZV.
 3942 
 3943 2006-05-14  Jan Djärv  <jan.h.d@swipnet.se>
 3944 
 3945 	* xterm.c (handle_one_xevent): Check that f is not NULL before
 3946 	calling _XEditResCheckMessages.
 3947 
 3948 2006-05-14  Kim F. Storm  <storm@cua.dk>
 3949 
 3950 	* xterm.c (handle_one_xevent): Fix crash in 2006-03-24 change.
 3951 
 3952 2006-05-13  Eli Zaretskii  <eliz@gnu.org>
 3953 
 3954 	* frame.c (x_set_border_width): Fix error message to say "frame",
 3955 	not "window".
 3956 
 3957 	* Makefile.in (SOME_MACHINE_LISP): Add fringe.elc.
 3958 
 3959 2006-05-12  Chong Yidong  <cyd@stupidchicken.com>
 3960 
 3961 	* intervals.c (set_point_both): Fix mixup before and after
 3962 	in variable names.
 3963 
 3964 	* editfns.c (Fline_beginning_position): Inhibit point-motion hooks
 3965 	while setting point temporarily.
 3966 
 3967 2006-05-11  Richard Stallman  <rms@gnu.org>
 3968 
 3969 	* lread.c (readevalloop): Abort if START non-nil for non-buffer input.
 3970 
 3971 2006-05-11  Kim F. Storm  <storm@cua.dk>
 3972 
 3973 	* xdisp.c (redisplay_tool_bar): Handle large tool-bar-border values.
 3974 
 3975 2006-05-11  Kenichi Handa  <handa@m17n.org>
 3976 
 3977 	* fileio.c (Finsert_file_contents): Fix for the case of IO error
 3978 	while handling replace operation.
 3979 
 3980 2006-05-10  Kenichi Handa  <handa@m17n.org>
 3981 
 3982 	* xfaces.c (realize_default_face) [HAVE_X_WINDOWS]: If the font
 3983 	chosen for the default face was different from the frame font,
 3984 	adjust the frame font.
 3985 
 3986 2006-05-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 3987 
 3988 	* image.c (Qduration) [MAC_OS]: Undo previous change.
 3989 	(syms_of_image) [MAC_OS]: Likewise.
 3990 	[MAC_OS] (gif_load): Emulate Graphic Control Extension block.
 3991 
 3992 	* macfns.c (x_to_mac_color): Fix shift amount change.
 3993 	(mac_set_font) [USE_MAC_FONT_PANEL]: Use x_get_focus_frame.
 3994 	[USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): Doc fix.
 3995 
 3996 	* macselect.c (Vmac_service_selection) [MAC_OSX]: Rename from
 3997 	Vmac_services_selection.  All uses changed.
 3998 	(mac_store_service_event): Rename from mac_store_services_event in
 3999 	extern and calls.
 4000 
 4001 	* macterm.c (Qservice) [MAC_OSX]: Rename from Qservices.  All uses
 4002 	changed.
 4003 	[MAC_OSX] (mac_store_service_event): Rename from
 4004 	mac_store_services_event.  All callers changed.
 4005 	[USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Add args
 4006 	FACE_ID and C.  All callers changed.
 4007 	(x_free_frame_resources) [USE_MAC_FONT_PANEL]: Call
 4008 	mac_set_font_info_for_selection when focus frame is destroyed.
 4009 	(XTread_socket): Revert to FrontNonFloatingWindow/FrontWindow.
 4010 
 4011 	* macterm.h (mac_set_font_info_for_selection): Add 2nd and 3rd
 4012 	args in extern.
 4013 
 4014 2006-05-09  Chong Yidong  <cyd@stupidchicken.com>
 4015 
 4016 	* keymap.c (describe_map): Avoid generating duplicate entries if
 4017 	the shadowed binding has the same definition.
 4018 
 4019 2006-05-09  Kenichi Handa  <handa@m17n.org>
 4020 
 4021 	* keymap.c (push_key_description): Handle invalid character key.
 4022 
 4023 2006-05-08  Kenichi Handa  <handa@m17n.org>
 4024 
 4025 	* callproc.c (Fcall_process): Use system_eol_type for encoding
 4026 	arguments if eol_type is not yet decided.
 4027 
 4028 	* coding.h (system_eol_type): Extern it.
 4029 
 4030 	* coding.c (setup_coding_system): For invalid coding-system, set
 4031 	coding->eol_type to CODING_EOL_UNDECIDED.
 4032 	(encode_coding): Cancel previous change.
 4033 	(shrink_encoding_region): Likewise.
 4034 	(code_convert_region1): Likewise.
 4035 	(code_convert_string1): Likewise.
 4036 	(code_convert_string_norecord): Likewise.
 4037 
 4038 	* fileio.c (choose_write_coding_system): Use system_eol_type for
 4039 	encoding if eol_type is not yet decided.
 4040 
 4041 	* process.c (setup_process_coding_systems): Use system_eol_type
 4042 	for encoding if eol_type is not yet decided.
 4043 	(read_process_output): Likewise.
 4044 	(send_process): Likewise.
 4045 
 4046 2006-05-07  Juanma Barranquero  <lekktu@gmail.com>
 4047 
 4048 	* minibuf.c (syms_of_minibuf) <history-length>: Fix typo in doc.
 4049 
 4050 2006-05-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 4051 
 4052 	* mac.c (Fmac_clear_font_name_table): Move defun to macfns.c.
 4053 	(syms_of_mac): Likewise for defsubr.
 4054 
 4055 	* macfns.c (mac_set_font): New function.
 4056 	(mac_frame_parm_handlers, syms_of_macfns): Replace x_set_font with it.
 4057 	(mac_window) [TARGET_API_MAC_CARBON && MAC_OSX]: Specify
 4058 	kWindowToolbarButtonAttribute when creating window.
 4059 	(Fmac_clear_font_name_table): Move from macfns.c.
 4060 	(syms_of_macfns): Likewise for defsubr.
 4061 	[USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): New defun.
 4062 	(syms_of_macfns) [USE_MAC_FONT_PANEL]: Defsubr it.
 4063 
 4064 	* macgui.h (USE_MAC_FONT_PANEL): Define to 1 if USE_ATSUI is set
 4065 	and build is done on Mac OS X 10.2 and later.
 4066 
 4067 	* macselect.c (mac_do_receive_drag): Remove unused variable `index'.
 4068 	(mac_store_services_event): Change return type in extern.
 4069 
 4070 	* macterm.c (XLoadQueryFont) [USE_ATSUI]: Set font->mac_fontnum to
 4071 	FMFontFamily value.
 4072 	[USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): New function.
 4073 	(x_new_focus_frame) [USE_MAC_FONT_PANEL]: Use it.
 4074 	(QCfamily, QCweight, QCslant, Qnormal, Qbold, Qitalic): Add extern.
 4075 	(QWindow) [MAC_OSX]: Likewise.
 4076 	(Qfont) [USE_MAC_FONT_PANEL]: Likewise.
 4077 	(Vmac_atsu_font_table) [USE_ATSUI]: New variable.
 4078 	(syms_of_macterm) [USE_ATSUI]: Defvar it.
 4079 	(Qtoolbar_switch_mode) [MAC_OSX]: New variable.
 4080 	(Qpanel_closed, Qselection) [USE_MAC_FONT_PANEL]: Likewise.
 4081 	(syms_of_macterm): Intern and staticpro them.
 4082 	(init_font_name_table) [USE_ATSUI]: Add data to Vmac_atsu_font_table.
 4083 	[TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event):
 4084 	New function.
 4085 	[USE_CARBON_EVENTS] (mac_handle_command_event): Use it.
 4086 	[MAC_OSX] (mac_store_services_event): Likewise.
 4087 	[USE_CARBON_EVENTS] (mac_handle_window_event) [MAC_OSX]: Handle
 4088 	kEventWindowToolbarSwitchMode event.
 4089 	(install_window_handler) [USE_CARBON_EVENTS && MAC_OSX]: Register it.
 4090 	[MAC_OSX] (mac_store_services_event): Change return type to OSStatus.
 4091 	[USE_MAC_FONT_PANEL] (mac_handle_font_event): New function.
 4092 	(install_window_handler) [USE_MAC_FONT_PANEL]: Install it.
 4093 	(XTread_socket): Select window on mouse click if x_focus_frame is NULL.
 4094 
 4095 	* macterm.h (mac_set_font_info_for_selection): Add extern.
 4096 
 4097 2006-05-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 4098 
 4099 	* image.c (Qduration) [MAC_OS]: New variable.
 4100 	(syms_of_image) [MAC_OS]: Intern and staticpro it.
 4101 	[MAC_OS] (gif_load): Save image extension data in img->data.lisp_val.
 4102 	[MAC_OSX] (image_load_quartz2d): Use cfstring_create_with_utf8_cstring
 4103 	instead of cfstring_create_with_string.
 4104 
 4105 2006-05-06  Kim F. Storm  <storm@cua.dk>
 4106 
 4107 	* .gdbinit (xframe): Print frame name.
 4108 	(xlist): New command to print a list (max 10 elements).
 4109 	(xpr): Print lisp object of any type.
 4110 	(pitx): Print it->pixel_width.
 4111 
 4112 2006-05-05  Kenichi Handa  <handa@m17n.org>
 4113 
 4114 	* xdisp.c (handle_composition_prop): Fix for the case of empty
 4115 	composition component.
 4116 
 4117 2006-05-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 4118 
 4119 	* keyboard.c (make_lispy_event) [MAC_OS]: Get Apple event info
 4120 	from event->arg.
 4121 
 4122 	* termhooks.h (enum event_kind) [MAC_OS]: Update comment for
 4123 	MAC_APPLE_EVENT.
 4124 
 4125 	* macterm.h (mac_make_lispy_event_code): Remove extern.
 4126 	(mac_post_mouse_moved_event): Add extern.
 4127 	(mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
 4128 	`const AEDesc *' in externs.
 4129 	(create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: New extern.
 4130 
 4131 	* mac.c (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
 4132 	`const AEDesc *'.
 4133 	[TARGET_API_MAC_CARBON] (create_apple_event): New function.
 4134 	[TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): Use it.
 4135 	Use xrealloc instead of repeated xmalloc/xfree.
 4136 	[TARGET_API_MAC_CARBON] (create_apple_event_from_drag_ref):
 4137 	New function.
 4138 
 4139 	* macmenu.c (restore_menu_items, cleanup_popup_menu): Return a value.
 4140 
 4141 	* macselect.c: Update copyright year.
 4142 	(mac_store_apple_event): Change return type to void in extern.
 4143 	(mac_handle_apple_event): Don't get return value from
 4144 	mac_store_apple_event.
 4145 	[TARGET_API_MAC_CARBON] (Vmac_dnd_known_types): New variable.
 4146 	(syms_of_macselect) [TARGET_API_MAC_CARBON]: Defvar it.
 4147 	[TARGET_API_MAC_CARBON] (mac_do_track_drag): Move function from
 4148 	macterm.c.  Use Vmac_dnd_known_types as acceptable flavors.
 4149 	[TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.  New
 4150 	implementation using create_apple_event_from_drag_ref.
 4151 	[TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
 4152 	(mac_do_receive_dragUPP): Move variables from macterm.c.
 4153 	(install_drag_handler, remove_drag_handler): New functions.
 4154 
 4155 	* macterm.c (XTread_socket) [TARGET_API_MAC_CARBON]: Try window
 4156 	path select also for proxy icon click.
 4157 	[TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event): New function.
 4158 	[USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback): Use it.
 4159 	(xlfdpat_create): Remove unused label `error' and trailing sentences.
 4160 	(mac_do_track_drag, mac_do_receive_drag): Move functions to macselect.c.
 4161 	(mac_do_track_dragUPP, mac_do_receive_dragUPP): Move variables to
 4162 	macselect.c.
 4163 	(install_drag_handler, remove_drag_handler): Add extern.
 4164 	(mac_store_apple_event): Change return type to void.  All uses changed.
 4165 	Create Lisp object from Apple event and store it into input event.
 4166 	(mac_make_lispy_event_code): Remove function.
 4167 	[TARGET_API_MAC_CARBON] (mac_store_drag_event): New function.
 4168 	(install_window_handler): Call install_drag_handler.
 4169 	(remove_window_handler): Call remove_drag_handler.
 4170 
 4171 2006-05-03  Richard Stallman  <rms@gnu.org>
 4172 
 4173 	* sound.c (Fplay_sound_internal): Dynamically allocate
 4174 	current_sound_device and current_sound.
 4175 	(sound_cleanup): Free them.
 4176 
 4177 	* minibuf.c (read_minibuf): Don't use read_minibuf_noninteractive
 4178 	when inside a keyboard macro.
 4179 
 4180 2006-05-02  Andreas Schwab  <schwab@suse.de>
 4181 
 4182 	* xmenu.c (restore_menu_items): Return a value.
 4183 
 4184 2006-05-01  Martin Rudalics  <rudalics@gmx.at>
 4185 
 4186 	* syntax.c (Fforward_comment): Detect generic comment at beginning of
 4187 	buffer when moving backwards.
 4188 
 4189 2006-05-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 4190 
 4191 	* dispnew.c (update_window): Don't set changed_p when mode/header
 4192 	line is updated.
 4193 
 4194 	* xdisp.c (prepare_menu_bars) [MAC_OS]: Call mac_update_title_bar.
 4195 	(get_glyph_face_and_encoding, get_char_face_and_encoding):
 4196 	Don't distinguish known faces from others.
 4197 
 4198 	* mac.c (mac_coerce_file_name_ptr): Try typeFSRef if coercion
 4199 	through typeFileURL failed.
 4200 
 4201 	* macfns.c (mac_update_title_bar): New function.
 4202 	[TARGET_API_MAC_CARBON] (mac_update_proxy_icon): New function.
 4203 	(show_hourglass, hide_hourglass) [USE_CG_DRAWING]:
 4204 	Call mac_prepare_for_quickdraw.
 4205 
 4206 	* macgui.h (USE_ATSUI): Set default to 1 if MAC_OSX is defined.
 4207 	(USE_CG_DRAWING): Don't define if compiled on Mac OS X 10.1.
 4208 	(enum pcm_status): New enum.
 4209 	(XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID)
 4210 	(XCharStructRow): Remove.  Now validity is represented by
 4211 	non-negativeness of sum of ascent and descent.
 4212 	(struct MacFontStruct): Change type of member `rows'.
 4213 	(struct _XGC) [USE_CG_DRAWING]: Add member `clip_rects'.
 4214 
 4215 	* macterm.c (mac_draw_line, mac_draw_line_to_pixmap):
 4216 	Adjust endpoints of strictly horizontal/vertical lines.
 4217 	(mac_set_clip_rectangles) [USE_CG_DRAWING]: Set clip_rects.
 4218 	(pcm_init, pcm_get_status): New functions.
 4219 	(x_per_char_metric, XLoadQueryFont): Use them instead of
 4220 	XCharStructRow and related macros.
 4221 	(x_draw_relief_rect): Don't adjust arguments of mac_draw_line.
 4222 	(x_free_frame_resources) [TARGET_API_MAC_CARBON]: Free FRAME_FILE_NAME.
 4223 	(XTread_socket) [TARGET_API_MAC_CARBON]: Handle proxy icon drag
 4224 	and window path pop-up menu on title bar.
 4225 	(mac_use_core_graphics) [USE_CG_DRAWING]: Set default to 1.
 4226 
 4227 	* macterm.h (mac_update_title_bar): Add extern.
 4228 	(struct mac_output) [TARGET_API_MAC_CARBON]: New member `file_name'.
 4229 	(FRAME_FILE_NAME): New macro.
 4230 
 4231 	* unexmacosx.c (unexec): Error if trying unexec from dumped executable.
 4232 
 4233 2006-04-30  Richard Stallman  <rms@gnu.org>
 4234 
 4235 	* keymap.c (Fdefine_key): Improve error message
 4236 	when KEY begins with a non-prefix key.
 4237 
 4238 2006-04-30  Martin Rudalics  <rudalics@gmx.at>
 4239 
 4240 	* syntax.c (Fforward_comment): Don't forget to break out of the loop
 4241 	when we skipped backward over a generic comment.
 4242 
 4243 2006-04-27  Nick Roberts  <nickrob@snap.net.nz>
 4244 
 4245 	* .gdbinit (pp1, pv1): Only print value as expression is now
 4246 	printed out by gud-print.
 4247 	(pv1): Correct doc string.
 4248 
 4249 2006-04-26  Stefan Monnier  <monnier@iro.umontreal.ca>
 4250 
 4251 	* keymap.c (store_in_keymap): Change `def' arg to not be `register'.
 4252 	Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8):
 4253 	keymap.c:895: error: address of register variable `def' requested.
 4254 
 4255 2006-04-26  Jason Rumney  <jasonr@gnu.org>
 4256 
 4257 	* w32term.c (construct_mouse_wheel): Handle negative coordinates.
 4258 
 4259 	* w32fns.c (w32_wnd_proc) <WM_LBUTTONDOWN, WM_RBUTTONDOWN>:
 4260 	<WM_LBUTTONUP, WM_RBUTTONUP>: Call signal_user_input in the cases
 4261 	where we preempt mouse_button_timer.
 4262 
 4263 2006-04-25  Miles Bader  <miles@gnu.org>
 4264 
 4265 	* editfns.c (Ffield_beginning, find_field): Undo change of 2006-04-23.
 4266 
 4267 2006-04-24  Stefan Monnier  <monnier@iro.umontreal.ca>
 4268 
 4269 	* process.h: Include headers for pid_t.
 4270 
 4271 2006-04-24  Kim F. Storm  <storm@cua.dk>
 4272 
 4273 	* xdisp.c (fill_stretch_glyph_string): Set s->nchars = 1 for code which
 4274 	does last_glyph=s->first_glyph+s->nchars-1, e.g. if stretch has relief.
 4275 	(produce_stretch_glyph): Assume that face box height and width is
 4276 	already included in stretch glyph size so caller doesn't have to
 4277 	consider the extra space otherwise added (fixes problem in ses.el).
 4278 
 4279 	* frame.c (x_set_font): Clear f->n_tool_bar_rows and current frame
 4280 	matrices to force recalculation of tool-bar height after font change.
 4281 
 4282 	* xdisp.c (tool_bar_lines_needed): New local `temp_row' for clarity.
 4283 	Clear it when done, so we don't accidentally draw a second copy of
 4284 	the tool-bar after resetting f->n_tool_bar_rows.
 4285 	(redisplay_tool_bar): Update tool-bar-lines frame parameter whenever
 4286 	we recalculate f->n_tool_bar_rows.
 4287 
 4288 2006-04-23  Lars Hansen  <larsh@soem.dk>
 4289 
 4290 	* editfns.c (find_field): Fix comment.
 4291 	(Ffield_beginning): Fix bug when POS is at field beginning.
 4292 
 4293 2006-04-22  Eli Zaretskii  <eliz@gnu.org>
 4294 
 4295 	* puresize.h (BASE_PURESIZE): Increase to 1205000.
 4296 
 4297 2006-04-21  Kim F. Storm  <storm@cua.dk>
 4298 
 4299 	* xdisp.c (redisplay_window): Fix last change.  Don't recenter if
 4300 	window start is at BEGV.
 4301 
 4302 	* dispextern.h (struct image): New member `corners'.
 4303 	(TOP_CORNER, LEFT_CORNER, BOT_CORNER, RIGHT_CORNER): New macros.
 4304 
 4305 	* image.c (four_corners_best): New arg CORNERS specifies what pixels
 4306 	to look at in case image has margin.
 4307 	(x_create_bitmap_mask): Pass NULL for CORNERS to four_corners_best.
 4308 	(image_background, image_background_transparent)
 4309 	(x_build_heuristic_mask): Pass img->corners to four_corners_best.
 4310 	(gif_load): Set img->corners according to image's margin spec.
 4311 	Use img->corners values directly where applicable.
 4312 	Save image extension data in img->data.lisp_val.
 4313 	(gif_clear_image): New function to free img->data.lisp_val.
 4314 	(gif_type): Use it instead of generic x_clear_image.
 4315 	(Fimage_extension_data): New defun.
 4316 	(syms_of_image): Defsubr it.
 4317 
 4318 2006-04-21  John Sullivan  <john@wjsullivan.net>  (tiny change)
 4319 
 4320 	* window.c (Fdisplay_buffer): Doc fix.
 4321 
 4322 2006-04-21  Eli Zaretskii  <eliz@gnu.org>
 4323 
 4324 	* s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Increase to 25000.
 4325 
 4326 2006-04-21  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 4327 
 4328 	* image.c [MAC_OS] (xpm_load_image): Fill in background field
 4329 	while we have ximg handy.
 4330 
 4331 	* macmenu.c (restore_menu_items, save_menu_items): New functions
 4332 	from xmenu.c.
 4333 	(set_frame_menubar, digest_single_submenu): Apply 2006-04-18
 4334 	changes for xmenu.c.
 4335 
 4336 	* macterm.c (x_per_char_metric): Return NULL if glyph width is 0.
 4337 	(add_mac_font_name): New function.
 4338 	(init_font_name_table): Use it.  Adopt the first found font from
 4339 	those having the same family name.
 4340 
 4341 2006-04-21  Nick Roberts  <nickrob@snap.net.nz>
 4342 
 4343 	* xdisp.c (note_mouse_highlight): Use build_string.
 4344 
 4345 2006-04-20  Lars Hansen  <larsh@soem.dk>
 4346 
 4347 	* textprop.c (Fremove_list_of_text_properties):
 4348 	Ensure modify_region is called only when buffer is modified and that
 4349 	signal_after_change is always called in that case.
 4350 
 4351 	* print.c (PRINTFINISH): Call signal_after_change.
 4352 
 4353 2006-04-20  Kim F. Storm  <storm@cua.dk>
 4354 
 4355 	* xdisp.c (redisplay_window): Fix last change.
 4356 
 4357 	* xdisp.c (redisplay_window): If current window start is not at the
 4358 	beginning of a line, select a new window start if buffer is modified
 4359 	and window start is in the modified region, but the first change is
 4360 	before window start.
 4361 
 4362 2006-04-18  Richard Stallman  <rms@gnu.org>
 4363 
 4364 	* xmenu.c (restore_menu_items, save_menu_items): New fns.
 4365 	(set_frame_menubar): Use save_menu_items.  Save updated vector in
 4366 	the frame before unwinding it.  Don't use unuse_menu_items.
 4367 	Don't use discard_menu_items.
 4368 	(digest_single_submenu): Abort if an item is not in a pane.
 4369 	(init_menu_items): Put the error check at the top.
 4370 
 4371 	* keymap.c (describe_map): Make "shadowed" warning more verbose.
 4372 
 4373 	* window.c (adjust_window_trailing_edge): Correctly distinguish
 4374 	series vs parallel cases, even when window has no parent.
 4375 
 4376 	* abbrev.c (record_symbol): New function.
 4377 	(Finsert_abbrev_table_description): Sort the abbrevs alphabetically.
 4378 
 4379 2006-04-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 4380 
 4381 	* image.c (x_create_bitmap_from_data) [MAC_OS]: Don't check return
 4382 	value of xmalloc.
 4383 
 4384 	* mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
 4385 	(create_apple_event_from_event_ref, xrm_get_preference_database)
 4386 	(cfstring_create_normalized): Don't check return value of xmalloc.
 4387 
 4388 	* macselect.c (get_scrap_target_type_list, defer_apple_events)
 4389 	(copy_scrap_flavor_data, mac_handle_service_event): Don't check
 4390 	return value of xmalloc/xrealloc.
 4391 
 4392 	* macterm.c (XCreateGC, x_per_char_metric, xlfdpat_create)
 4393 	(init_font_name_table, init_font_name_table, mac_do_list_fonts)
 4394 	(XLoadQueryFont, mac_store_apple_event): Don't check return value
 4395 	of xmalloc.
 4396 
 4397 2006-04-17  Kim F. Storm  <storm@cua.dk>
 4398 
 4399 	* window.c (coordinates_in_window): On the vertical border,
 4400 	calculate the row number measured from the top of the window, not
 4401 	the top of the frame.
 4402 	(window_loop): Test w->dedicated with !NILP instead of EQ Qt.
 4403 	(window_scroll_pixel_based): Fix off-by-one bug in 2002-12-23 change.
 4404 
 4405 2006-04-16  Eli Zaretskii  <eliz@gnu.org>
 4406 
 4407 	* s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Reduce to 24000.
 4408 
 4409 2006-04-16  Romain Francoise  <romain@orebokech.com>
 4410 
 4411 	* puresize.h (BASE_PURESIZE): Decrement back to 1200000.
 4412 
 4413 2006-04-16  Andreas Schwab  <schwab@suse.de>
 4414 
 4415 	* puresize.h (PURESIZE_RATIO): Reduce to 10/6.
 4416 
 4417 2006-04-15  Romain Francoise  <romain@orebokech.com>
 4418 
 4419 	* puresize.h (BASE_PURESIZE): Increment to 1210000.
 4420 
 4421 2006-04-13  Michaël Cadilhac  <michael.cadilhac@lrde.org>
 4422 
 4423 	* print.c (Fprin1_to_string): Mention in the `doc' that the
 4424 	behavior is modified by `print-level' and `print-length'.
 4425 
 4426 2006-04-13  Kenichi Handa  <handa@m17n.org>
 4427 
 4428 	* coding.c (setup_coding_system): If eol-type is not yet decided
 4429 	and system_eol_type is not LF, set CODING_REQUIRE_ENCODING_MASK.
 4430 	If coding_system is nil, return 0.
 4431 	(code_convert_region1): Even if coding_system is nil, don't skip
 4432 	conversion if system_eol_type is not LF.
 4433 	(code_convert_string1): Likewise.
 4434 	(code_convert_string_norecord): Likewise.
 4435 
 4436 2006-04-13  Kenichi Handa  <handa@m17n.org>
 4437 
 4438 	* coding.c (setup_coding_system): Fix previous change.
 4439 	(encode_coding): If eol_type is not yet decided, use system_eol_type.
 4440 	(shrink_encoding_region): If eol_type is not yet decided and
 4441 	system_eol_type is not LF, don't shrink.
 4442 
 4443 2006-04-13  Nick Roberts  <nickrob@snap.net.nz>
 4444 
 4445 	* xdisp.c (note_mouse_highlight): Add help echo for dragging vertical
 4446 	line.
 4447 
 4448 2006-04-12  Richard Stallman  <rms@gnu.org>
 4449 
 4450 	* keyboard.c (read_key_sequence): Explicitly avoid keybuf[-1].
 4451 
 4452 	* process.c (conv_lisp_to_sockaddr): If FAMILY unknown, just return.
 4453 	(Fprocess_send_eof): Abort if fail to open null device.
 4454 
 4455 2006-04-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 4456 
 4457 	* fns.c [HAVE_MENUS && MAC_OS]: Include macterm.h.
 4458 
 4459 	* image.c [MAC_OS] (xpm_load_image): Add parentheses around
 4460 	assignment used as truth value.  Add explicit braces to avoid
 4461 	ambiguous `else'.
 4462 	[MAC_OS] (gif_load): Remove unused variable `gcpro1'.
 4463 
 4464 	* lisp.h (syms_of_fontset, Fset_fontset_font): Put extern and
 4465 	EXFUN in #ifdef HAVE_WINDOW_SYSTEM.
 4466 	(syms_of_xfns, syms_of_xsmfns, syms_of_xselect, syms_of_xterm):
 4467 	Put externs in #ifdef HAVE_X_WINDOWS.
 4468 	(syms_of_macfns, syms_of_macselect, syms_of_macterm)
 4469 	(syms_of_macmenu, syms_of_mac) [MAC_OS]: Add externs.
 4470 	(init_mac_osx_environment) [MAC_OSX]: Add extern.
 4471 
 4472 	* mac.c (init_process): Remove undef.
 4473 	(select) [MAC_OSX]: Undefine before including sysselect.h.
 4474 	(posix_pathname_to_fsspec, fsspec_to_posix_pathname) [MAC_OSX]:
 4475 	Remove functions and prototypes.
 4476 	(parse_value): Add parentheses around + inside shift.
 4477 	(path_from_vol_dir_name): Make static.
 4478 	(get_temp_dir_name): Remove unused variables `cpb' and `dir_name'.
 4479 	[!MAC_OSX] (get_path_to_system_folder): Likewise.
 4480 	(Fmac_get_file_creator, Fmac_get_file_type): Remove unused
 4481 	variable `cCode'.
 4482 	(Fmac_coerce_ae_data): Remove unused variables `fref' and `fs'.
 4483 	(Fmac_get_preference): Add explicit braces to avoid ambiguous `else'.
 4484 
 4485 	* macfns.c (x_to_mac_color): Remove unused variable `tail'.
 4486 	(x_set_mouse_color): Remove unused variable `dpy'.
 4487 	(Fx_create_frame): Remove unused variable `x_frame_count'.
 4488 	(Fx_server_version): Add explicit braces to avoid ambiguous `else'.
 4489 	(x_sync): Move from macterm.c.
 4490 	(Fx_file_dialog): Remove unused variable `default_filter_index'.
 4491 
 4492 	* macmenu.c (min_menu_id): Make element type explicit.
 4493 
 4494 	* macselect.c (get_flavor_type_from_symbol): Remove unused
 4495 	variable `val'.
 4496 	(get_scrap_private_timestamp, x_get_foreign_selection)
 4497 	(copy_scrap_flavor_data): Add explicit braces to avoid ambiguous `else'.
 4498 	(Fmac_process_deferred_apple_events): Remove unused variables
 4499 	`keyword', `reply', `apple_event', `count', and `err'.
 4500 
 4501 	* macterm.c: Don't include gnu.h.
 4502 	(x_io_error_quitter, x_draw_image_foreground_1): Remove prototypes.
 4503 	(x_sync): Move to macfns.c.
 4504 	[USE_CG_DRAWING] (mac_define_fringe_bitmap): Remove unused
 4505 	variable `mask_bits'.
 4506 	(mac_compute_glyph_string_overhangs): Avoid ambiguous `else'.
 4507 	(x_draw_image_glyph_string): Remove unused variable `pixmap'.
 4508 	(x_mac_to_emacs_modifiers): Remove function.
 4509 	(XTset_vertical_scroll_bar, mac_handle_visibility_change)
 4510 	(x_make_frame_visible, xlfdpat_create, mac_handle_command_event):
 4511 	Add explicit braces to avoid ambiguous `else'.
 4512 	(x_make_frame_visible): Remove unused variables `type',
 4513 	`original_top', and `original_left'.
 4514 	(mac_do_list_fonts, XTread_socket): Add parentheses around && within ||.
 4515 	(x_load_font): Remove unused variables `full_name', and `value'.
 4516 	(do_get_menus, do_init_managers, do_check_ram_size) [!MAC_OS8]:
 4517 	Remove functions.
 4518 	(do_zoom_window): Reorganize variables with respect to conditionals.
 4519 	(init_command_handler): Remove unused variable `err'.
 4520 	[MAC_OSX] (mac_check_bundle): Remove unused variable `child'.
 4521 
 4522 	* macterm.h (x_set_mouse_position, x_set_mouse_pixel_position)
 4523 	(x_make_frame_invisible, x_iconify_frame, x_free_frame_resources)
 4524 	(x_destroy_window, x_wm_set_size_hint, x_delete_display, XFreeGC)
 4525 	(do_menu_choice, have_menus_p, x_real_positions)
 4526 	(x_set_menu_bar_lines, x_pixel_width, x_pixel_height, x_char_width)
 4527 	(x_char_height, x_sync, x_set_tool_bar_lines, x_activate_menubar)
 4528 	(free_frame_menubar): Add externs.
 4529 
 4530 	* unexmacosx.c: Include config.h before using HAVE_MALLOC_MALLOC_H.
 4531 	(malloc, realloc, free): Add undefs.
 4532 	(read_load_commands): Remove unused variable `n' and `j'.
 4533 	(copy_data_segment): Remove unused variable `r'.
 4534 
 4535 	* xdisp.c (get_glyph_string_clip_rects): Add parentheses around &&
 4536 	within ||.  Add explicit braces to avoid ambiguous `else'.
 4537 	(dump_glyph_row): Remove label for `inverse_p' from legend.
 4538 
 4539 	* xfaces.c (Finternal_merge_in_global_face, try_font_list):
 4540 	Add explicit braces to avoid ambiguous `else'.
 4541 
 4542 2006-04-11  Michaël Cadilhac  <michael.cadilhac@lrde.org>
 4543 
 4544 	* dispnew.c (init_display): Don't init X display if the user asked
 4545 	for a non-X display.
 4546 
 4547 2006-04-12  Kenichi Handa  <handa@m17n.org>
 4548 
 4549 	* coding.c (setup_coding_system): Use system_eol_type for default
 4550 	coding->eol_type.
 4551 
 4552 2006-04-11  Dan Nicolaescu  <dann@ics.uci.edu>
 4553 
 4554 	* lisp.h (wrong_type_argument): Mark as NO_RETURN.
 4555 
 4556 	* data.c (wrong_type_argument): Try to avoid compiler warnings due
 4557 	to the fact the function is now marked as NO_RETURN.
 4558 
 4559 2006-04-10  Eli Zaretskii  <eliz@gnu.org>
 4560 
 4561 	* s/ms-w32.h (pid_t) [_MSC_VER]: New typedef.
 4562 
 4563 2006-04-10  Romain Francoise  <romain@orebokech.com>
 4564 
 4565 	* xrdb.c (gethomedir): Use xstrdup.
 4566 
 4567 2006-04-10  Andreas Schwab  <schwab@suse.de>
 4568 
 4569 	* xrdb.c (gethomedir): Make sure to always return a pointer that
 4570 	can be passed to free.
 4571 
 4572 2006-04-09  Richard Stallman  <rms@gnu.org>
 4573 
 4574 	* lisp.h (Fkill_emacs): Undo previous change.
 4575 
 4576 2006-04-08  Richard Stallman  <rms@gnu.org>
 4577 
 4578 	* search.c (boyer_moore): Test ch >= 0400, not >.
 4579 
 4580 2006-04-09  Dan Nicolaescu  <dann@ics.uci.edu>
 4581 
 4582 	* puresize.h (pure_write_error): Mark as NO_RETURN.
 4583 
 4584 	* lisp.h (args_out_of_range, args_out_of_range_3, Fkill_emacs):
 4585 	Likewise.
 4586 
 4587 2006-04-08  Eli Zaretskii  <eliz@gnu.org>
 4588 
 4589 	* w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements
 4590 	if a menu is active on this frame.
 4591 
 4592 2006-04-08  Dan Nicolaescu  <dann@ics.uci.edu>
 4593 
 4594 	* lisp.h (report_file_error): Mark as NO_RETURN.
 4595 
 4596 2006-04-08  Eli Zaretskii  <eliz@gnu.org>
 4597 
 4598 	* alloc.c [STDC_HEADERS]: Include stddef.h.
 4599 
 4600 	* lisp.h (PSEUDOVECSIZE): Fix last change.
 4601 
 4602 2006-04-08  Stefan Monnier  <monnier@iro.umontreal.ca>
 4603 
 4604 	* process.h (struct Lisp_Process): Replace Lisp_Objects `pid',
 4605 	`raw_status_high', and `raw_status_low' with plain integers, and move
 4606 	them to the end of the structure.
 4607 
 4608 	* alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the
 4609 	pseudovector's size field so only the Lisp_Object fields get GC'd.
 4610 
 4611 	* process.c (update_status, make_process, Fdelete_process)
 4612 	(Fprocess_status, list_processes_1, start_process_unwind)
 4613 	(create_process, Fmake_network_process, server_accept_connection)
 4614 	(wait_reading_process_output, send_process, Fprocess_running_child_p)
 4615 	(process_send_signal, proc_encode_coding_system, Fprocess_send_eof)
 4616 	(sigchld_handler, status_notify): Adjust to new non-Lisp fields for
 4617 	`pid' and `raw_status'.
 4618 	(Fprocess_id, Fsignal_process): Same, and additionally use floats when
 4619 	representing PIDs that are larger than most-positive-fixnum.
 4620 
 4621 	* keymap.c (describe_map): Only use XINT if we checked INTEGERP.
 4622 
 4623 	* lisp.h (OFFSETOF, PSEUDOVECSIZE): New macros.
 4624 
 4625 2006-04-08  Eli Zaretskii  <eliz@gnu.org>
 4626 
 4627 	* w32fns.c (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos.
 4628 
 4629 2006-04-03  Paul Eggert  <eggert@cs.ucla.edu>
 4630 
 4631 	* editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
 4632 	../lib-src/b2m.c and ../lib-src/editfns.c.
 4633 	(Fcurrent_time_string): Use it.
 4634 	Document that the year might not consume 4 columns if it's outside
 4635 	the range 1000-9999.
 4636 	Check for asctime failure.
 4637 	Don't assume that the output string length is always exactly 24.
 4638 
 4639 2006-04-03  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 4640 
 4641 	* macterm.c (XTread_socket): Initialize variable `f' before its use.
 4642 
 4643 2006-04-03  Kenichi Handa  <handa@m17n.org>
 4644 
 4645 	* image.c: Include "charset.h" and "coding.h".
 4646 	(x_find_image_file): Return an encoded file name.
 4647 
 4648 2006-03-31  Kenichi Handa  <handa@m17n.org>
 4649 
 4650 	* xfns.c (xg_set_icon): Delete superfluous UNGCPRO.
 4651 
 4652 2006-03-30  Dan Nicolaescu  <dann@ics.uci.edu>
 4653 
 4654 	* xdisp.c (syms_of_xdisp): Fix variable name.
 4655 
 4656 2006-03-30  Kenichi Handa  <handa@m17n.org>
 4657 
 4658 	* xterm.c (x_term_init): Delete superfluous UNGCPRO.
 4659 
 4660 2006-03-29  Juanma Barranquero  <lekktu@gmail.com>
 4661 
 4662 	* keyboard.c (process_tool_bar_item): Reorder dummy args.
 4663 
 4664 2006-03-29  Stefan Monnier  <monnier@iro.umontreal.ca>
 4665 
 4666 	* keyboard.c (tool_bar_items): Use map_keymap.
 4667 	(process_tool_bar_item): Add dummy args to fit the required interface.
 4668 
 4669 2006-03-25  Eli Zaretskii  <eliz@gnu.org>
 4670 
 4671 	* .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag
 4672 	to zero before calling debug_print or safe_debug_print.
 4673 
 4674 	* print.c (print_output_debug_flag): New global variable.
 4675 	(Fexternal_debugging_output) [WINDOWSNT]: Don't call
 4676 	OutputDebugString if print_output_debug_flag is zero.
 4677 
 4678 2006-03-24  Paul Eggert  <eggert@cs.ucla.edu>
 4679 
 4680 	* editfns.c (TM_YEAR_BASE): Move up, so the changes below can use it.
 4681 	(Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900.
 4682 	(Fdecode_time): Cast tm_year to EMACS_INT.
 4683 	(Fcurrent_time_string): Report an invalid time specification if
 4684 	the argument is invalid.  Also, check for out-of-range time stamps.
 4685 
 4686 2006-03-24  Kim F. Storm  <storm@cua.dk>
 4687 
 4688 	* xterm.c (handle_one_xevent):
 4689 	* w32term.c (w32_read_socket):
 4690 	* macterm.c (XTread_socket): Don't let key-press clear mouse face
 4691 	on in toolbar window if mouse-highlight is an integer.
 4692 
 4693 	* fns.c (sxhash_list): Include last non-nil CDR in hash.
 4694 
 4695 2006-03-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 4696 
 4697 	* macmenu.c (enum mac_menu_kind): New enum.
 4698 	(min_menu_id): New variable.
 4699 	(POPUP_SUBMENU_ID, MIN_POPUP_SUBMENU_ID, MIN_MENU_ID)
 4700 	(MIN_SUBMENU_ID): Remove defines.  All uses are replaced with
 4701 	min_menu_id and enumerators in enum mac_menu_kind.
 4702 	(fill_menu, dispose_menus, install_menu_quit_handler): New arg KIND.
 4703 	All uses changed.  Add range check for menu ID.
 4704 	(fill_menubar): Add range check for menu ID.
 4705 	[HAVE_CANCELMENUTRACKING] (menu_quit_handler): Check error code of
 4706 	GetEventParameter.
 4707 	(set_frame_menubar, mac_menu_show): Call install_menu_quit_handler
 4708 	for each menu kind.
 4709 
 4710 2006-03-22  Kim F. Storm  <storm@cua.dk>
 4711 
 4712 	* xdisp.c: Undo 2006-03-21 change.
 4713 
 4714 	* term.c: Define aliases for append_glyph and produce_stretch_glyph
 4715 	when `static' is defined to avoid name clash with those in xdisp.c.
 4716 
 4717 	* process.c (Faccept_process_output): Fix to comply with lisp
 4718 	reference.  Change arg "timeout" to "seconds" and allow both
 4719 	integer and float value.  Change arg "timeout-msec" to "millisec"
 4720 	and interpret" as milliseconds rather than microseconds.  Fix doc
 4721 	string accordingly.
 4722 
 4723 2006-03-21  Ken Raeburn  <raeburn@raeburn.org>
 4724 
 4725 	* xdisp.c (store_next_glyph): Rename from append_glyph.
 4726 	(generate_stretch_glyph): Rename from produce_stretch_glyph.
 4727 	All callers changed accordingly.
 4728 
 4729 2006-03-21  Jan Djärv  <jan.h.d@swipnet.se>
 4730 
 4731 	* xterm.c: x_session_initialized new variable.
 4732 	(x_term_init): Use x_session_initialized to check if
 4733 	x_session_initialize should be called.
 4734 	(x_initialize): Initialize x_session_initialized.
 4735 
 4736 2006-03-21  Kim F. Storm  <storm@cua.dk>
 4737 
 4738 	* fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow
 4739 	bitmap here, but ...
 4740 	(update_window_fringes): ... here, so we can test if it has changed.
 4741 
 4742 2006-03-20  Andreas Schwab  <schwab@suse.de>
 4743 
 4744 	* dispnew.c (init_display): Check DISPLAY here.
 4745 
 4746 	* emacs.c (main): Don't check here.
 4747 
 4748 	* xterm.c (x_display_ok): Don't use DISPLAY env var.
 4749 
 4750 2006-03-20  Stefan Monnier  <monnier@iro.umontreal.ca>
 4751 
 4752 	* window.c (window_scroll_pixel_based): Yet another int/Lisp_Object
 4753 	mixup (YAILOM).
 4754 
 4755 2006-03-20  Eli Zaretskii  <eliz@gnu.org>
 4756 
 4757 	* emacs.c (main): Fix last change.
 4758 
 4759 2006-03-20  Kenichi Handa  <handa@m17n.org>
 4760 
 4761 	* fileio.c (Fwrite_region): Set visit_file to Qnil before GCPRO it.
 4762 
 4763 	* keymap.c (map_keymap): Set tail to Qnil before GCPRO it.
 4764 
 4765 	* xfns.c (xg_set_icon): Remove unnecessary GCPRO.
 4766 
 4767 	* xterm.c (x_term_init): Remove unnecessary GCPRO.
 4768 
 4769 2006-03-19  Kim F. Storm  <storm@cua.dk>
 4770 
 4771 	* xdisp.c (set_cursor_from_row): Fix cursor property on overlay string,
 4772 	so it doesn't associate overlay string with following glyph by default.
 4773 	Allow integer property value to specify explicit number of buffer
 4774 	positions associate with overlay string.
 4775 
 4776 2006-03-18  Chong Yidong  <cyd@stupidchicken.com>
 4777 
 4778 	* xterm.c (x_display_ok): Fix minor bug and compilation warnings.
 4779 
 4780 2006-03-18  Nozomu Ando  <nand@mac.com>
 4781 
 4782 	* m/pmax.h (BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
 4783 	(LIB_STANDARD, START_FILES) [__NetBSD__]: Don't define.
 4784 	(START_FILES, RUN_TIME_REMAP, UNEXEC) [__NetBSD__, __OpenBSD__]:
 4785 	Don't redefine.
 4786 
 4787 	* m/mips.h: Don't use unexmips on NetBSD.
 4788 	(LIBS_MACHINE): Move definition lower, so it doesn't use
 4789 	LD_SWITCH_MACHINE, START_FILES, LIB_STANDARD, LIBS_TERMCAP,
 4790 	C_SWITCH_MACHINE, and C_DEBUG_SWITCH.
 4791 
 4792 	* unexelf.c [BROKEN_NOCOMBRELOC]: Include assert.h.
 4793 	(unexec) [BROKEN_NOCOMBRELOC]: Handle platforms whose nocombreloc
 4794 	option is broken (e.g., MIPS/NetBSD).
 4795 
 4796 2006-03-18  Craig McDaniel  <craigmcd@gmail.com>  (tiny change)
 4797 
 4798 	* sheap.c (STATIC_HEAP_SIZE): Enlarge STATIC_HEAP_SIZE to 12MB.
 4799 	Remove the HAVE_X_WINDOWS conditional.
 4800 
 4801 2006-03-18  Vivek Dasmohapatra  <vivek@etla.org>  (tiny change)
 4802 
 4803 	* emacs.c (main): If user asks for a display that is unavailable,
 4804 	simulate -nw.
 4805 
 4806 	* xterm.c (x_display_ok): New function.
 4807 
 4808 	* xterm.h: Add prototype for x_display_ok.
 4809 
 4810 2006-03-18  Eli Zaretskii  <eliz@gnu.org>
 4811 
 4812 	* w32fns.c (Fw32_select_font): Doc fix.
 4813 
 4814 2006-03-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 4815 
 4816 	* image.c [MAC_OS] (XPutPixel, XGetPixel)
 4817 	[!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Don't use specialized
 4818 	version when depth is 32.
 4819 	(mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]:
 4820 	New function.
 4821 	(prepare_image_for_display) [MAC_OS && USE_CG_DRAWING]: Use it.
 4822 	(x_clear_image_1) [MAC_OS && USE_CG_DRAWING]: Release CGImage.
 4823 
 4824 	* macterm.c (XCreatePixmap) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]:
 4825 	Create GWorld in ARGB pixel format.
 4826 	(mac_copy_area, mac_copy_area_with_mask) [USE_CG_DRAWING]:
 4827 	Remove functions.
 4828 	(x_draw_image_foreground) [USE_CG_DRAWING]: Use mac_draw_cg_image
 4829 	instead of mac_copy_area/mac_copy_area_with_mask.
 4830 
 4831 2006-03-15  Kim F. Storm  <storm@cua.dk>
 4832 
 4833 	* xdisp.c (extend_face_to_end_of_line): Always add space glyph to
 4834 	empty row.  Fixes memory corruption revealed by 2006-03-02 change.
 4835 	(display_tool_bar_line): Skip empty tool-bar line if HEIGHT < 0.
 4836 	(tool_bar_lines_needed): Fix tool-bar display in case the tool-bar
 4837 	width is exactly the same as the window width.  Don't count a final
 4838 	empty tool-bar line (pass HEIGHT = -1 to display_tool_bar_line).
 4839 
 4840 2006-03-15  Juanma Barranquero  <lekktu@gmail.com>
 4841 
 4842 	* fringe.c (w32_init_fringe, w32_reset_fringes): Revert to being
 4843 	conditional on HAVE_NTGUI, not WINDOWS_NT.
 4844 
 4845 2006-03-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 4846 
 4847 	* dispextern.h (mac_init_fringe) [MAC_OS]: Add prototype.
 4848 
 4849 	* fringe.c (mac_init_fringe) [MAC_OS]: New function.
 4850 
 4851 	* macterm.c (mac_initialize) [USE_CG_DRAWING]: Call mac_init_fringe.
 4852 	(max_fringe_bmp, fringe_bmp) [USE_CG_DRAWING]: New variables.
 4853 	(mac_define_fringe_bitmap, mac_destroy_fringe_bitmap)
 4854 	(mac_draw_cg_image) [USE_CG_DRAWING]: New functions.
 4855 	(mac_draw_bitmap) [USE_CG_DRAWING]: Remove function.
 4856 	(x_draw_fringe_bitmap) [USE_CG_DRAWING]: Use mac_draw_cg_image
 4857 	instead of mac_draw_bitmap.
 4858 	(x_redisplay_interface) [USE_CG_DRAWING]: Set handlers for
 4859 	define_fringe_bitmap and destroy_fringe_bitmap.
 4860 
 4861 2006-03-14  Chong Yidong  <cyd@stupidchicken.com>
 4862 
 4863 	* xterm.c (x_uncatch_errors): Block input for entire function.
 4864 
 4865 2006-03-12  Jason Rumney  <jasonr@gnu.org>
 4866 
 4867 	* w32fns.c (Fx_create_frame): Remove call to
 4868 	Qface_set_after_frame_default (from xfns.c 2003-05-26).
 4869 
 4870 	* w32menu.c (Fx_popup_menu): Call w32_free_menu_strings when
 4871 	finished with the menu.
 4872 
 4873 	* w32term.c: Sync 2005-10-24 xterm.c changes.
 4874 	(last_mouse_glyph_frame): New var.
 4875 	(note_mouse_movement): Say mouse moved if current frame differs
 4876 	from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
 4877 	(w32_mouse_position): Set last_mouse_glyph_frame.
 4878 	Remove OLD_REDISPLAY_CODE block.
 4879 
 4880 2006-03-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 4881 
 4882 	* macgui.h [USE_ATSUI && MAC_OSX]: Define USE_CG_TEXT_DRAWING to 1.
 4883 
 4884 	* macterm.h (struct mac_output) [USE_CG_DRAWING]: New member cg_context.
 4885 	(mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Add prototype.
 4886 
 4887 	* mac.c (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
 4888 
 4889 	* macfns.c (x_create_tip_frame): Apply 2006-03-11 change for xfns.c.
 4890 
 4891 	* macterm.c (mac_draw_rectangle, x_draw_glyph_string_foreground)
 4892 	(x_draw_composite_glyph_string_foreground)
 4893 	(x_draw_image_foreground): Undo previous changes.
 4894 	(x_draw_hollow_cursor): Likewise.  Subtract 1 from the last
 4895 	argument of mac_draw_rectangle.
 4896 	(CG_SET_FILL_COLOR, CG_SET_STROKE_COLOR): New macros.
 4897 	(mac_draw_string_common, mac_draw_image_string_cg): Use them.
 4898 	(FRAME_CG_CONTEXT) [USE_CG_DRAWING]: New macro.
 4899 	(mac_begin_cg_clip, mac_end_cg_clip, mac_prepare_for_quickdraw)
 4900 	[USE_CG_DRAWING]: New functions.
 4901 	(mac_draw_line, mac_erase_rectangle, mac_clear_window)
 4902 	(mac_fill_rectangle, mac_draw_rectangle, mac_draw_string_common)
 4903 	(mac_draw_image_string_cg) [USE_CG_DRAWING]: Add Quartz 2D drawing part.
 4904 	(mac_draw_bitmap, mac_invert_rectangle, mac_draw_string_common)
 4905 	(mac_copy_area, mac_scroll_area, x_scroll_bar_create)
 4906 	(x_scroll_bar_remove, XTset_vertical_scroll_bar, x_set_window_size)
 4907 	(XTread_socket) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
 4908 
 4909 2006-03-12  Lőrentey Károly  <lorentey@elte.hu>
 4910 
 4911 	* xfns.c (x_icon): Disable redundant call to `x_wm_set_window_state'.
 4912 
 4913 2006-03-11  Jason Rumney  <jasonr@gnu.org>
 4914 
 4915 	* w32fns.c (signal_user_input): New function.
 4916 	(post_character_message): Use it for keyboard input.
 4917 	(w32_msg_pump): Use it for mouse input.
 4918 
 4919 2006-03-11  Luc Teirlinck  <teirllm@auburn.edu>
 4920 
 4921 	* window.c: Rename preserve_y to window_scroll_pixel_based_preserve_y.
 4922 	(window_scroll_pixel_based, syms_of_window): Adapt to above change.
 4923 
 4924 2006-03-11  Eli Zaretskii  <eliz@gnu.org>
 4925 
 4926 	* w32fns.c (w32_wnd_proc): Ignore middle and extra button events
 4927 	if a menu is already active (the menubar_active flag is on).
 4928 
 4929 2006-03-11  David Ponce  <david@dponce.com>
 4930 
 4931 	* xfns.c (x_create_tip_frame): Preserve received parms by copying them.
 4932 
 4933 2006-03-11  Eli Zaretskii  <eliz@gnu.org>
 4934 
 4935 	* w32term.c: Add x_fully_uncatch_errors and x_catching_errors to
 4936 	the list of unused display error handling functions.
 4937 
 4938 	* eval.c (unwind_to_catch): Call x_fully_uncatch_errors only if
 4939 	HAVE_X_WINDOWS.
 4940 	(internal_condition_case, internal_condition_case_1)
 4941 	(internal_condition_case_2): Call x_catching_errors only if
 4942 	HAVE_X_WINDOWS.
 4943 
 4944 	* vm-limit.c [HAVE_GETRLIMIT]: Don't define unconditionally.
 4945 	Don't include sys/resource.h unless defined.
 4946 
 4947 2006-03-11  Richard Stallman  <rms@gnu.org>
 4948 
 4949 	* keymap.c (describe_map): Shorten string to indicate shadowed binding.
 4950 
 4951 	* vm-limit.c (get_lim_data, lim_data, data_space_start):
 4952 	Move from mem-limits.h.
 4953 	(enum warnlevel): New data type.
 4954 	(check_memory_limits): Rewrite the logic about warnings.
 4955 	Use standard `struct rlimit'.  Check return values for nonsense.
 4956 	(memory_warnings): Always clear lim_data.
 4957 
 4958 	* mem-limits.h (get_lim_data, lim_data, data_space_start):
 4959 	Move to vm-limit.c.
 4960 
 4961 	* xterm.c (x_fully_uncatch_errors, x_catching_errors): New functions.
 4962 
 4963 	* eval.c (unwind_to_catch): Call x_fully_uncatch_errors.
 4964 	(internal_condition_case_1, internal_condition_case_2):
 4965 	Abort if within unclosed x_catch_errors.
 4966 
 4967 2006-03-11  Romain Francoise  <romain@orebokech.com>
 4968 
 4969 	* process.c (Vprocess_adaptive_read_buffering): Doc fix.
 4970 
 4971 2006-03-11  Giorgos Keramidas  <keramida@ceid.upatras.gr>  (tiny change)
 4972 
 4973 	* lisp.h: Remove duplicate prototypes.  Make the prototype of
 4974 	getloadavg be conditioned on HAVE_GETLOADAVG being undefined.
 4975 
 4976 2006-03-11  Eli Zaretskii  <eliz@gnu.org>
 4977 
 4978 	* xterm.c (x_draw_hollow_cursor): Subtract 1 from the last
 4979 	argument of XDrawRectangle.
 4980 
 4981 	* xdisp.c (get_phys_cursor_geometry): Don't decrease height by 1.
 4982 
 4983 	* macterm.c (mac_draw_rectangle): Don't add 1 to width and height.
 4984 	(x_draw_glyph_string_foreground)
 4985 	(x_draw_composite_glyph_string_foreground)
 4986 	(x_draw_image_foreground): Don't subtract 1 from width and height
 4987 	arguments to mac_draw_rectangle.
 4988 	(x_draw_hollow_cursor): Add 1 to w->phys_cursor_width.
 4989 
 4990 2006-03-10  Kim F. Storm  <storm@cua.dk>
 4991 
 4992 	* alloc.c (USE_POSIX_MEMALIGN): Fix last change.
 4993 
 4994 2006-03-09  Stefan Monnier  <monnier@iro.umontreal.ca>
 4995 
 4996 	* alloc.c (USE_POSIX_MEMALIGN): New macro.
 4997 	(ABLOCKS_BASE, lisp_align_malloc, lisp_align_free): Use it.
 4998 
 4999 2006-03-09  Kenichi Handa  <handa@m17n.org>
 5000 
 5001 	* coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Fix decoding
 5002 	ASCII component of a composition.
 5003 
 5004 2006-03-08  Luc Teirlinck  <teirllm@auburn.edu>
 5005 
 5006 	* window.c: Declare preserve_y as a static global variable.
 5007 	(window_scroll_pixel_based): No longer declare preserve_y;
 5008 	it is global now.
 5009 	(syms_of_window): Set preserve_y to -1.
 5010 
 5011 2006-03-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 5012 
 5013 	* image.c [MAC_OS] (XPutPixel): Set alpha channel bits if pixmap
 5014 	depth is 32.
 5015 	[MAC_OS] (XGetPixel): Strip off alpha channel bits if pixmap
 5016 	depth is 32.
 5017 
 5018 2006-03-06  Chong Yidong  <cyd@stupidchicken.com>
 5019 
 5020 	* xdisp.c (handle_invisible_prop): Don't update it->position with
 5021 	a buffer position if we're in a display string.
 5022 
 5023 2006-03-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 5024 
 5025 	* macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH)
 5026 	(MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines.
 5027 
 5028 	* macfns.c (x_default_scroll_bar_color_parameter)
 5029 	(x_set_scroll_bar_foreground, x_set_scroll_bar_background):
 5030 	Remove unnecessary prototypes.
 5031 	(x_set_scroll_bar_default_width):
 5032 	Use MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH.
 5033 	(mac_set_scroll_bar_width): New function.
 5034 	(mac_frame_parm_handlers): Set it as handler for scroll-bar-width.
 5035 
 5036 	* macterm.c (get_control_part_bounds): Fix type of return value.
 5037 	(x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
 5038 	(XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Don't show
 5039 	scroll bar if it is not tall enough to display scroll bar thumb.
 5040 	[USE_CARBON_EVENTS] (mac_convert_event_ref)
 5041 	(mac_handle_command_event, mac_handle_window_event)
 5042 	(mac_handle_mouse_event): Check error code of GetEventParameter.
 5043 	(convert_fn_keycode) [MAC_OSX]: Likewise.
 5044 
 5045 2006-03-05  Andreas Schwab  <schwab@suse.de>
 5046 
 5047 	* xselect.c (x_catch_errors_unwind): Fix missing return value.
 5048 
 5049 2006-03-02  Kim F. Storm  <storm@cua.dk>
 5050 
 5051 	* frame.h (struct frame): New member n_tool_bar_rows.
 5052 
 5053 	* xdisp.c: Minimize the unpleasant visual impact of the requirement
 5054 	that non-toolkit tool-bars must occupy an integral number of screen
 5055 	lines, by distributing the rows evenly over the tool-bar screen area.
 5056 	(Vtool_bar_border): New variable.
 5057 	(syms_of_xdisp): DEFVAR_LISP it.
 5058 	(display_tool_bar_line): Add HEIGHT arg for desired row height.
 5059 	Make tool-bar row the desired height.  Use default face for border
 5060 	below tool-bar.
 5061 	(tool_bar_lines_needed): Add N_ROWS arg.  Use it to return number of
 5062 	actual tool-bar rows.
 5063 	(redisplay_tool_bar): Calculate f->n_tool_bar_rows initially.
 5064 	Adjust the height of the tool-bar rows to fill tool-bar screen area.
 5065 	(redisplay_tool_bar): Calculate f->n_tool_bar_rows when tool-bar area
 5066 	is resized.
 5067 
 5068 2006-03-01  Luc Teirlinck  <teirllm@auburn.edu>
 5069 
 5070 	* search.c (Fregexp_quote): Do not precede a literal `]' with two
 5071 	backslashes to try to make clear that it has a literal meaning; it
 5072 	does not do that.  (It could close a character alternative
 5073 	containing a backslash.)
 5074 
 5075 2006-02-28  Chong Yidong  <cyd@stupidchicken.com>
 5076 
 5077 	* xselect.c (x_catch_errors_unwind): New function.
 5078 	(x_reply_selection_request): Put x_uncatch_errors in an unwind.
 5079 	(Fx_get_atom_name): Call x_uncatch_errors earlier.
 5080 
 5081 	* window.c (Qscroll_up, Qscroll_down): New syms.
 5082 	(window_scroll_pixel_based): Make preserve_y static to avoid
 5083 	getting point stuck when scrolling 1 line.
 5084 
 5085 2006-02-26  Chong Yidong  <cyd@stupidchicken.com>
 5086 
 5087 	* xterm.h, xterm.c (x_uncatch_errors): Delete unnecessary argument.
 5088 
 5089 	* xterm.c (x_load_font, x_term_init, XTmouse_position)
 5090 	(handle_one_xevent, x_connection_closed, x_list_fonts):
 5091 	No arg for x_uncatch_errors.
 5092 
 5093 	* xselect.c (x_own_selection, x_decline_selection_request)
 5094 	(x_reply_selection_request, x_get_foreign_selection)
 5095 	(Fx_get_atom_name, Fx_send_client_event): Likewise.
 5096 
 5097 	* xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
 5098 	Likewise.
 5099 
 5100 2006-02-26  Luc Teirlinck  <teirllm@auburn.edu>
 5101 
 5102 	* lread.c: Declare Vload_file_rep_suffixes instead of
 5103 	deleted variable default_suffixes.
 5104 	(Fget_load_suffixes): New function.
 5105 	(Fload): Use Fget_load_suffixes and Vload_file_rep_suffixes.
 5106 	No longer use deleted variable default_suffixes.  Update docstring.
 5107 	(syms_of_lread): defsubr Sget_load_suffixes.
 5108 	Expand `load-suffixes' docstring.
 5109 	Delete default_suffixes and DEFVAR_LISP the new variable
 5110 	`load-file-rep-suffixes'.
 5111 
 5112 	* w32.c (check_windows_init_file): Use Fget_load_suffixes instead
 5113 	of Vload_suffixes.
 5114 
 5115 	* lisp.h: EXFUN Fget_load_suffixes.
 5116 	Extern Vload_file_rep_suffixes.
 5117 
 5118 	* eval.c (specpdl_ptr): Remove volatile qualifier for consistency
 5119 	with lisp.h.
 5120 
 5121 2006-02-26  Stefan Monnier  <monnier@iro.umontreal.ca>
 5122 
 5123 	* lisp.h (struct specbinding, specpdl_ptr): Remove the volatile
 5124 	qualifier which was trying to avoid the bug that was fixed by
 5125 	yesterday's changes to xterm.c.
 5126 
 5127 2006-02-25  Chong Yidong  <cyd@stupidchicken.com>
 5128 
 5129 	* xterm.h (x_catch_errors) Return value changed to void.
 5130 	(x_uncatch_errors): Delete unused count argument.
 5131 
 5132 	* xterm.c (x_catch_errors): Don't use record_unwind_protect, since
 5133 	it can be called in a signal handler.
 5134 	(x_catch_errors_unwind): Function deleted.
 5135 	(x_uncatch_errors): Deallocate last x_error_message_stack struct.
 5136 	(x_check_errors): Call x_uncatch_errors before signaling error.
 5137 
 5138 	(x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
 5139 	(x_connection_closed, x_list_fonts): Use new versions of
 5140 	x_catch_errors and x_uncatch_errors.
 5141 
 5142 	* xselect.c (x_own_selection, x_decline_selection_request)
 5143 	(x_reply_selection_request, x_get_foreign_selection)
 5144 	(Fx_get_atom_name, Fx_send_client_event): Likewise.
 5145 
 5146 	* xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
 5147 	Likewise.
 5148 
 5149 	* eval.c (record_unwind_protect): Add an assertion.
 5150 
 5151 2006-02-25  Stefan Monnier  <monnier@iro.umontreal.ca>
 5152 
 5153 	* process.c (Fmake_network_process): Init the process's mark.
 5154 
 5155 2006-02-25  Kim F. Storm  <storm@cua.dk>
 5156 
 5157 	* buffer.c (modify_overlay): Force redisplay if we modify an
 5158 	overlay at the end of the buffer.
 5159 
 5160 2006-02-24  Jan Djärv  <jan.h.d@swipnet.se>
 5161 
 5162 	* gtkutil.c (xg_get_image_for_pixmap): If x_find_image_file returns
 5163 	nil the image file has been removed, in that case use the (cached)
 5164 	pixmap.
 5165 
 5166 2006-02-24  Kenichi Handa  <handa@m17n.org>
 5167 
 5168 	* fileio.c (Finsert_file_contents): When a text is replaced
 5169 	partially, be sure to set point before the inserted characters.
 5170 
 5171 2006-02-23  Zhang Wei  <id.brep@gmail.com>  (tiny change)
 5172 
 5173 	* xfns.c (Fx_file_dialog): Return a decoded file name.
 5174 
 5175 2006-02-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 5176 
 5177 	* dispnew.c (update_text_area): Avoid needless redraw of rightmost
 5178 	glyph whose face is extended to the text area end.
 5179 
 5180 	* macterm.c (x_set_toolkit_scroll_bar_thumb): Don't set control
 5181 	values if control is not visible or values are not changed.
 5182 
 5183 2006-02-22  Stefan Monnier  <monnier@iro.umontreal.ca>
 5184 
 5185 	* window.c (Fwindow_list): Check `window' before doing XWINDOW.
 5186 	The default `window' should not be "on a different frame".
 5187 
 5188 2006-02-22  Kim F. Storm  <storm@cua.dk>
 5189 
 5190 	* indent.c (Fvertical_motion): Only try to move back if we can.
 5191 
 5192 2006-02-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 5193 
 5194 	* macgui.h (struct _XGC) [!MAC_OSX || !USE_ATSUI]: New member
 5195 	n_clip_rects.
 5196 
 5197 	* macmenu.c (digest_single_submenu): Apply 2006-02-19 change for
 5198 	xmenu.c.
 5199 
 5200 	* macterm.c (GC_CLIP_REGION): Remove macro.
 5201 	(mac_begin_clip, mac_end_clip): Take arg GC instead of REGION.
 5202 	All uses changed.  Don't do clipping if n_clip_rects is zero.
 5203 	(mac_set_clip_rectangles): Use xassert instead of abort.
 5204 	Set n_clip_rects.  Don't make clip_region empty when number of
 5205 	clipping rectangles is zero.
 5206 	(mac_reset_clip_rectangles): Set n_clip_rects directly instead of
 5207 	calling mac_set_clip_rectangles.
 5208 	(x_set_toolkit_scroll_bar_thumb): Temporarily hide scroll bar to
 5209 	avoid multiple redraws.
 5210 
 5211 2006-02-22  Kim F. Storm  <storm@cua.dk>
 5212 
 5213 	* fringe.c (draw_fringe_bitmap): Fix overlay-arrow display.
 5214 
 5215 2006-02-21  Kim F. Storm  <storm@cua.dk>
 5216 
 5217 	* fringe.c (syms_of_fringe) <fringe-bitmaps>: Doc fix.
 5218 
 5219 2006-02-21  Zhang Wei  <brep@newsmth.org>
 5220 
 5221 	* xfns.c (Fx_file_dialog, Motif and GTK): DECODE_FILE before
 5222 	returning it.
 5223 
 5224 2006-02-21  Giorgos Keramidas  <keramida@ceid.upatras.gr>  (tiny change)
 5225 
 5226 	* fringe.c (horizontal_bar_bits): Rename from `horisontal_bar_bits'.
 5227 	(standard_bitmaps): Use it.
 5228 
 5229 2006-02-21  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 5230 
 5231 	* macterm.c (mac_draw_string_common): Remove arg MODE.  New arg
 5232 	BG_WIDTH.  All uses changed.  Draw background if BG_WIDTH is not zero.
 5233 	(mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH.
 5234 	[USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from
 5235 	mac_draw_string_cg.  New arg BG_WIDTH.  All uses changed.
 5236 	Draw background if BG_WIDTH is not zero.  Use float constants as
 5237 	divisors instead of double.  Use alloca instead of xmalloc/xfree.
 5238 	(x_draw_glyph_string_background, x_draw_glyph_string_foreground)
 5239 	[!MAC_OS8 || USE_ATSUI]: Background may be drawn using
 5240 	mac_draw_image_string* functions.
 5241 	(XLoadQueryFont) [MAC_OS8 && USE_ATSUI]: Don't adjust heights of
 5242 	some fonts when srcCopy text transfer mode might be used.
 5243 	(mac_begin_clip, mac_end_clip): Check if region is empty.
 5244 	(mac_set_clip_rectangles): When resetting clip region, make it
 5245 	empty instead of disposing of it.
 5246 
 5247 2006-02-20  Kim F. Storm  <storm@cua.dk>
 5248 
 5249 	* Makefile.in: Add fringe.elc to WINDOW_SUPPORT.
 5250 
 5251 	* buffer.h (struct buffer): New members fringe_indicator_alist and
 5252 	fringe_cursor_alist.
 5253 
 5254 	* buffer.c (init_buffer_once): Set dummy default values for
 5255 	fringe-indicator-alist and fringe-cursor-alist.  The proper
 5256 	default values are set by pre-loading fringe.el.
 5257 	(syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and
 5258 	fringe-cursor-alist buffer-local variables and defvar_lisp_nopro
 5259 	corresponding default- variables.
 5260 
 5261 	* fringe.c (enum fringe_bitmap_type): Remove.  Change all uses
 5262 	to use `int'.
 5263 	(NO_FRINGE_BITMAP, UNDEF_FRINGE_BITMAP, MAX_STANDARD_FRINGE_BITMAPS):
 5264 	Define explicitly.
 5265 	(Qtruncation, Qcontinuation, Qempty_line, Qtop_bottom)
 5266 	(Qhollow_small): New variables.
 5267 	(syms_of_fringe): Intern and staticpro them.
 5268 	(question_mark_bits): Rename from unknown_bits.
 5269 	(left_curly_arrow_bits): Rename from continuation_bits.
 5270 	(right_curly_arrow_bits): Rename from continued_bits.
 5271 	(left_triangle_bits): Rename from ov_bits.
 5272 	(right_triangle_bits): Add.
 5273 	(filled_rectangle_bits): Rename from filled_box_cursor_bits.
 5274 	(hollow_rectangle_bits): Rename from hollow_box_cursor_bits.
 5275 	(filled_square_bits): Add.
 5276 	(vertical_bar_bits): Rename from bar_cursor_bits.
 5277 	(horizontal_bar_bits): Rename from hbar_cursor_bits.
 5278 	(empty_line_bits): Rename from zv_bits.
 5279 	(standard_bitmaps): Update to use new names.
 5280 	(draw_fringe_bitmap_1): Make static.
 5281 	(get_logical_cursor_bitmap, get_logical_fringe_bitmap): New functions
 5282 	to map from logical cursors and indicators to physical bitmaps.
 5283 	(draw_fringe_bitmap): Resolve fringe cursor and overlay-arrow
 5284 	bitmaps using symbol names instead of bitmap numbers.
 5285 	(update_window_fringes): Use logical indicator symbol names
 5286 	instead of bitmap numbers for logical.  Add bitmap cache.
 5287 	(LEFT_FRINGE, RIGHT_FRINGE): New helper macros.
 5288 
 5289 2006-02-20  Chong Yidong  <cyd@stupidchicken.com>
 5290 
 5291 	* regex.c: Revert 2006-02-19 change.
 5292 	(xmalloc, xrealloc): Define these when not linked to Emacs.
 5293 	Redefine malloc -> xmalloc, realloc -> xrealloc as in Emacs case.
 5294 
 5295 2006-02-19  Luc Teirlinck  <teirllm@auburn.edu>
 5296 
 5297 	* regex.c (extend_range_table_work_area): Fix typo.
 5298 
 5299 2006-02-19  Richard M. Stallman  <rms@gnu.org>
 5300 
 5301 	* xterm.c (x_catch_errors): Use xmalloc.
 5302 
 5303 	* regex.c (extend_range_table_work_area): Call xmalloc and xrealloc.
 5304 	(regex_compile): Likewise.
 5305 	(regcomp): Use xmalloc.
 5306 
 5307 	* gtkutil.c (malloc_widget_value): Use xmalloc.
 5308 
 5309 	* vm-limit.c [HAVE_GETRLIMIT]: Include sys/resource.h.
 5310 	(check_memory_limits) [HAVE_GETRLIMIT]: Use getrlimit.
 5311 
 5312 	* xmenu.c (digest_single_submenu): When pane_string is empty,
 5313 	do initialize save_wv.
 5314 
 5315 2006-02-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 5316 
 5317 	* xdisp.c (update_menu_bar) [MAC_OS]: Don't set
 5318 	w->update_mode_line if arg F is not the selected frame.
 5319 
 5320 	* macmenu.c (popup_activated_flag, submenu_id)
 5321 	(next_menubar_widget_id): Remove variables.
 5322 	(initialize_frame_menubar): Remove function.
 5323 	(pop_down_menu, mac_menu_show): Simplify save value.
 5324 	(dispose_menus): New function.
 5325 	(pop_down_menu, fill_menubar): Use it.
 5326 	(fill_submenu): Remove function.  All uses changed to fill_menu.
 5327 	(add_menu_item): Remove args SUBMENU and FORCE_DISABLE.  New arg
 5328 	POS.  Don't call SetMenuItemHierarchicalID here.
 5329 	(fill_menu): Add arg SUBMENU_ID.  Return submenu_id that is to be
 5330 	used next.  Call SetMenuItemHierarchicalID here.
 5331 	(fill_menubar): Add arg DEEP_P.  All uses changed.  Clean up menu
 5332 	objects if needed.  Reuse existing menu bar titles if possible.
 5333 	(set_frame_menubar): Don't clean up menu objects here.
 5334 
 5335 2006-02-18  Chong Yidong  <cyd@stupidchicken.com>
 5336 
 5337 	* window.c (window_min_size_1): Ensure room for the scroll bar and
 5338 	fringes.
 5339 
 5340 2006-02-17  Romain Francoise  <romain@orebokech.com>
 5341 
 5342 	* puresize.h (BASE_PURESIZE): Increment to 1200000.
 5343 
 5344 2006-02-17  Stefan Monnier  <monnier@iro.umontreal.ca>
 5345 
 5346 	* alloc.c (Fmake_symbol): Comment-out left-over assert from before the
 5347 	addition of the BLOCK_INPUTs.
 5348 
 5349 2006-02-17  Juanma Barranquero  <lekktu@gmail.com>
 5350 
 5351 	* window.c (Fset_window_scroll_bars): Doc fix.
 5352 
 5353 2006-02-17  Kenichi Handa  <handa@m17n.org>
 5354 
 5355 	* xdisp.c (display_mode_element): Call display_string with correct
 5356 	PREC arg (which must be a number of characters, not column width).
 5357 
 5358 2006-02-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 5359 
 5360 	* frame.c (x_get_arg): Clear out PARAM in ALIST also on Mac.
 5361 
 5362 	* macfns.c (x_set_menu_bar_lines): Menu bar is always shown on Mac.
 5363 
 5364 	* macmenu.c (set_frame_menubar): Don't call DrawMenuBar.
 5365 
 5366 2006-02-14  Richard M. Stallman  <rms@gnu.org>
 5367 
 5368 	* frame.c (x_get_arg): Clear out all occurrences of PARAM in ALIST.
 5369 
 5370 	* m/ibms390x.h: New file.
 5371 
 5372 2006-02-14  Jan Djärv  <jan.h.d@swipnet.se>
 5373 
 5374 	* gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to the
 5375 	value of x-gtk-whole-detached-tool-bar.
 5376 	(xg_tool_bar_attach_callback): Set show-arrow to TRUE.
 5377 
 5378 	* xfns.c (syms_of_xfns): New variable: x-gtk-whole-detached-tool-bar.
 5379 
 5380 2006-02-14  Jan Djärv  <jan.h.d@swipnet.se>
 5381 
 5382 	* xterm.c (x_x_to_emacs_modifiers): Make non-static.
 5383 
 5384 	* xterm.h: Declare x_x_to_emacs_modifiers.
 5385 
 5386 	* gtkutil.c (xg_tool_bar_button_cb): New function.
 5387 	(xg_tool_bar_callback): Call x_x_to_emacs_modifiers to
 5388 	store modifiers in event.
 5389 	(update_frame_tool_bar): Connect button-release-event to
 5390 	xg_tool_bar_button_cb.
 5391 
 5392 2006-02-13  Richard M. Stallman  <rms@gnu.org>
 5393 
 5394 	* .gdbinit (xwindow): Update the code to show the window box.
 5395 
 5396 2006-02-13  Jan Djärv  <jan.h.d@swipnet.se>
 5397 
 5398 	* xterm.c (note_mouse_movement): Check for NULL FRAME_X_OUTPUT (frame).
 5399 
 5400 2006-02-12  Richard M. Stallman  <rms@gnu.org>
 5401 
 5402 	* cmds.c (internal_self_insert): Handle weird auto-fill-function.
 5403 
 5404 2006-02-11  Eli Zaretskii  <eliz@gnu.org>
 5405 
 5406 	* keyboard.c (Venable_disabled_menus_and_buttons): New variable.
 5407 	(syms_of_keyboard): DEVFAR_LISP and initialize it.
 5408 	(parse_tool_bar_item, parse_menu_item): If that variable is
 5409 	non-nil, don't disable menu items and tool-bar buttons.
 5410 
 5411 2006-02-11  Juanma Barranquero  <lekktu@gmail.com>
 5412 
 5413 	* doc.c (Fsubstitute_command_keys): Doc fix.
 5414 
 5415 2006-02-10  Thien-Thi Nguyen  <ttn@gnu.org>
 5416 
 5417 	* data.c (Findirect_function): Rewrite docstring.
 5418 	Fix omission bug: Declare new arg NOERROR.
 5419 
 5420 2006-02-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 5421 
 5422 	* macfns.c (x_set_mouse_color): Don't call rif->define_frame_cursor
 5423 	if window_desc is not set yet.
 5424 	(Fx_create_frame): Remove variable x_frame_name.  Apply 2005-12-07
 5425 	and 2006-01-26 changes for xfns.c.  Call x_iconify_frame if frame
 5426 	parameter `visibility' is `icon'.
 5427 	(Fx_create_frame, x_create_tip_frame): Use "fontset-standard"
 5428 	instead of "fontset-mac".
 5429 	(Fx_focus_frame): New defun.
 5430 	(syms_of_macfns): Defsubr it.
 5431 
 5432 	* macterm.c (mac_define_frame_cursor): Don't change pointer shape
 5433 	for unfocused frame.
 5434 	(x_raise_frame): Call BringToFront instead of SelectWindow.
 5435 	(x_lower_frame): Use NULL instead of nil.
 5436 	(x_make_frame_visible): Don't call SelectWindow.
 5437 	(XTread_socket): Increment handling_signal at the start, decrement
 5438 	it at the end.
 5439 	[USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): Use
 5440 	CFPreferencesGetAppIntegerValue instead of Fmac_get_preference.
 5441 
 5442 2006-02-10  Kim F. Storm  <storm@cua.dk>
 5443 
 5444 	* data.c (Findirect_function): Add NOERROR arg.  All callers changed
 5445 	to pass Qnil for NOERROR.
 5446 
 5447 	* keymap.c (current_minor_maps_error): Remove.
 5448 	(current_minor_maps): Pass Qt for NOERROR to Findirect_function
 5449 	instead of using internal_condition_case_1+current_minor_maps_error.
 5450 
 5451 2006-02-09  Jan Djärv  <jan.h.d@swipnet.se>
 5452 
 5453 	* xterm.c (handle_one_xevent): Must note mouse movement even for nil
 5454 	frames for GTK, in that case it is the tool bar.  This is so that
 5455 	highlighted text get reset properly.
 5456 
 5457 2006-02-09  Juanma Barranquero  <lekktu@gmail.com>
 5458 
 5459 	* alloc.c (Fmake_bool_vector, Fpurecopy): Doc fixes.
 5460 
 5461 2006-02-08  Jan Djärv  <jan.h.d@swipnet.se>
 5462 
 5463 	* window.c (adjust_window_trailing_edge): Check that shrinking
 5464 	does not set a window to size zero or less.
 5465 
 5466 2006-02-08  Miles Bader  <miles@gnu.org>
 5467 
 5468 	* editfns.c (Fconstrain_to_field): Use Fget_char_property instead
 5469 	of Fget_text_property (other field functions work with overlays as
 5470 	well as text-properties).
 5471 
 5472 2006-02-07  Kenichi Handa  <handa@m17n.org>
 5473 
 5474 	* dispextern.h (unibyte_display_via_language_environment): Extern it.
 5475 
 5476 	* xterm.h (unibyte_display_via_language_environment):
 5477 	* w32term.h (unibyte_display_via_language_environment):
 5478 	* macterm.h (unibyte_display_via_language_environment): Delete extern.
 5479 
 5480 2006-02-07  Kenichi Handa  <handa@m17n.org>
 5481 
 5482 	* term.c (append_glyph): Refer to it->char_to_display instead of it->c.
 5483 	(produce_glyphs): Set the character to print in
 5484 	it->char_to_display.  Handle unibyte-display-via-language-environment.
 5485 	(produce_stretch_glyph): Set character to print in it->char_to_display.
 5486 
 5487 2006-02-06  Kenichi Handa  <handa@m17n.org>
 5488 
 5489 	* lread.c (openp): Initialize encoded_fn before GCPRO it.
 5490 
 5491 2006-02-05  Ken Raeburn  <raeburn@raeburn.org>
 5492 
 5493 	* editfns.c (Fconstrain_to_field): Fix int/Lisp_Object mixup.
 5494 
 5495 	* lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]:
 5496 	Cast bitfield value to EMACS_INT, to suppress gcc warning.
 5497 
 5498 	* xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before
 5499 	defining.
 5500 
 5501 2006-02-03  Kim F. Storm  <storm@cua.dk>
 5502 
 5503 	* xdisp.c: Cache last merged escape glyph face.
 5504 	(last_escape_glyph_frame, last_escape_glyph_face_id)
 5505 	(last_escape_glyph_merged_face_id): New variables.
 5506 	(get_next_display_element): Use/update them.
 5507 	(redisplay_internal): Reset them before redisplay.
 5508 
 5509 	* xdisp.c (set_iterator_to_next): Optimize 2004-12-13 fix.
 5510 	Only recheck faces after displaying ellipsis.
 5511 
 5512 2006-02-02  Kenichi Handa  <handa@m17n.org>
 5513 
 5514 	* coding.c (decode_composition_emacs_mule): Fix handling of
 5515 	incorrect format data.
 5516 
 5517 2006-01-31  Jan Djärv  <jan.h.d@swipnet.se>
 5518 
 5519 	* gtkutil.c (update_frame_tool_bar): Use new tool bar function
 5520 	gtk_toolbar_insert() so we can have tool bars of different sizes.
 5521 
 5522 2006-01-30  Luc Teirlinck  <teirllm@auburn.edu>
 5523 
 5524 	* data.c (Flistp): Doc fix.
 5525 
 5526 2006-01-30  Juanma Barranquero  <lekktu@gmail.com>
 5527 
 5528 	* window.c (Fother_window, Fwindow_vscroll, Fset_window_vscroll):
 5529 	Fix typos in docstrings.
 5530 
 5531 2006-01-28  Luc Teirlinck  <teirllm@auburn.edu>
 5532 
 5533 	* data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings.
 5534 
 5535 2006-01-27  Chong Yidong  <cyd@stupidchicken.com>
 5536 
 5537 	* alloc.c (make_interval, allocate_string)
 5538 	(allocate_string_data, make_float, Fcons, allocate_vectorlike)
 5539 	(Fmake_symbol, allocate_misc): Use BLOCK_INPUT when accessing
 5540 	global variables.
 5541 
 5542 2006-01-27  Eli Zaretskii  <eliz@gnu.org>
 5543 
 5544 	* dired.c (DIRENTRY_NONEMPTY) [__CYGWIN__]: Don't use d_ino; use
 5545 	the MSDOS definition.
 5546 
 5547 2006-01-26  Richard M. Stallman  <rms@gnu.org>
 5548 
 5549 	* alloc.c (check_pure_size): Make overflow message an "error message".
 5550 
 5551 	* keymap.c (Fmap_keymap): Doc fix.
 5552 
 5553 	* xfns.c (Fx_create_frame): Put all specified parms into f->param_alist
 5554 	unless they were cleared out.
 5555 
 5556 	* frame.c (x_get_arg): "Clear out" the parm in ALIST if found there.
 5557 
 5558 2006-01-26  Lőrentey Károly  <lorentey@elte.hu>
 5559 
 5560 	* editfns.c (Fconstrain_to_field): Fix behavior on field boundaries.
 5561 	(find_field): Set before_field to after_field when pos is at BEGV.
 5562 	(Fline_beginning_position, Fline_end_position):
 5563 	Clarify confusing doc string.
 5564 
 5565 	* cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc
 5566 	string.
 5567 
 5568 2006-01-26  Kenichi Handa  <handa@m17n.org>
 5569 
 5570 	* callproc.c (Fcall_process): GCPRO error_file.  Encode infile,
 5571 	current_dir, and error_file.  On reporting an error, decode them
 5572 	back.
 5573 
 5574 2006-01-24  Stefan Monnier  <monnier@iro.umontreal.ca>
 5575 
 5576 	* regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
 5577 	(re_match_2_internal) <on_failure_jump, on_failure_jump_smart>:
 5578 	Don't check for quit, since any loop will go through fail or jump.
 5579 
 5580 2006-01-24  Chong Yidong  <cyd@stupidchicken.com>
 5581 
 5582 	* alloc.c (allocate_string_data): Update next_free immediately, to
 5583 	reduce risk of memory clobberage.
 5584 
 5585 2006-01-24  Lőrentey Károly  <lorentey@elte.hu>
 5586 
 5587 	* xdisp.c (handle_invisible_prop): Set it->position to fix cursor
 5588 	display when point moves across an ellipsis.  If there are
 5589 	adjacent invisible texts, don't lose the second one's ellipsis.
 5590 	(x_produce_glyphs): Doc fix.
 5591 
 5592 2006-01-23  Stefan Monnier  <monnier@iro.umontreal.ca>
 5593 
 5594 	* xterm.c (x_catch_errors_unwind): Yet another int/Lisp_Object mixup.
 5595 
 5596 2006-01-23  Kim F. Storm  <storm@cua.dk>
 5597 
 5598 	* xdisp.c (handle_single_display_spec): Fix handling of space
 5599 	property on char from string: set *position rather than
 5600 	it->current.pos.
 5601 	(produce_stretch_glyph): Reduce width of stretch glyphs so they
 5602 	don't get wider than the window (unless truncate-lines is on).
 5603 
 5604 2006-01-22  Stefan Monnier  <monnier@iro.umontreal.ca>
 5605 
 5606 	* xterm.c: Avoid allocating Lisp data from a signal handler.
 5607 	(x_error_message): New var to replace x_error_message_string.
 5608 	(x_error_catcher, x_catch_errors, x_catch_errors_unwind)
 5609 	(x_check_errors, x_had_errors_p, x_clear_errors, x_error_handler)
 5610 	(syms_of_xterm): Use it instead of x_error_message_string.
 5611 
 5612 	* alloc.c (lisp_align_free): Add an assertion.
 5613 	(make_interval, allocate_string, make_float, Fcons, Fmake_symbol)
 5614 	(allocate_misc): If ENABLE_CHECKING is on, check we're not called from
 5615 	a signal handler.
 5616 
 5617 2006-01-21  Luc Teirlinck  <teirllm@auburn.edu>
 5618 
 5619 	* dired.c (syms_of_dired) <completion-ignored-extensions>: Doc fix.
 5620 
 5621 2006-01-21  Romain Francoise  <romain@orebokech.com>
 5622 
 5623 	* xdisp.c (get_window_cursor_type): Fix last change.
 5624 	Update copyright year.
 5625 
 5626 2006-01-20  Eli Zaretskii  <eliz@gnu.org>
 5627 
 5628 	* lread.c (Fload): Don't leak the file descriptor returned by
 5629 	openp if we are going to signal an error.
 5630 
 5631 	* w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it
 5632 	directly to _close.
 5633 	(sys_dup): Protect against new_fd larger than fd_info[] can handle.
 5634 	(sys_read): If FD is outside [0..MAXDESC) limits, pass it directly
 5635 	to _read.
 5636 	(sys_write): If FD is outside [0..MAXDESC) limits, pass it
 5637 	directly to _write.
 5638 
 5639 	* .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
 5640 	if it is NULL.
 5641 
 5642 2006-01-20  Kenichi Handa  <handa@m17n.org>
 5643 
 5644 	* puresize.h (BASE_PURESIZE): Increment to 1190000.
 5645 
 5646 2006-01-19  Chong Yidong  <cyd@stupidchicken.com>
 5647 
 5648 	* xdisp.c (get_window_cursor_type): Use cursor type specified by
 5649 	the selected buffer for the echo area too.
 5650 
 5651 2006-01-19  Richard M. Stallman  <rms@gnu.org>
 5652 
 5653 	* keymap.c (Fmap_keymap): Doc fix.
 5654 
 5655 	* s/irix6-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
 5656 
 5657 	* keyboard.c (echo_char): Don't omit the space between first two
 5658 	echoed chars.
 5659 
 5660 	* minibuf.c (read_minibuf): Fix previous change.
 5661 
 5662 2006-01-19  Kenichi Handa  <handa@m17n.org>
 5663 
 5664 	* xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
 5665 
 5666 2006-01-17  Richard M. Stallman  <rms@gnu.org>
 5667 
 5668 	* frame.c (x_frame_get_and_record_arg): Don't record Qunbound
 5669 	value in f->param_alist.
 5670 
 5671 2006-01-15  Andreas Schwab  <schwab@suse.de>
 5672 
 5673 	* search.c (Freplace_match): Use UPPERCASEP instead of !NOCASEP.
 5674 
 5675 2006-01-13  Richard M. Stallman  <rms@gnu.org>
 5676 
 5677 	* Makefile.in: Define new macro WINDOW_SUPPORT.
 5678 	(lisp): Use it.
 5679 	(SOME_MACHINE_LISP): Add conditionally loaded files.
 5680 
 5681 2006-01-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 5682 
 5683 	* macterm.c [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
 5684 	[MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering.
 5685 	(XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in
 5686 	decomposed form.
 5687 
 5688 	* process.c [HAVE_INTTYPES_H]: Include inttypes.h.
 5689 	(ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE).
 5690 	(Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK
 5691 	macro.  Also try member ifr_addr when getting netmask.
 5692 
 5693 2006-01-10  Stefan Monnier  <monnier@iro.umontreal.ca>
 5694 
 5695 	* fileio.c (Fexpand_file_name): Remove redundant tests.
 5696 	Fix elimination of // so that it doesn't prevent elimination of an
 5697 	immediately following /. or /..
 5698 
 5699 2006-01-09  Jan Djärv  <jan.h.d@swipnet.se>
 5700 
 5701 	* gtkutil.c (xg_toggle_notify_cb): New function.
 5702 	(xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
 5703 	xg_toggle_notify_cb.
 5704 	(xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
 5705 	parameter value changes so the toggle button gets updated.
 5706 
 5707 2006-01-06  Nick Roberts  <nickrob@snap.net.nz>
 5708 
 5709 	* .gdbinit: Fix typo.
 5710 
 5711 2006-01-05  Eli Zaretskii  <eliz@gnu.org>
 5712 
 5713 	* .gdbinit: Fix last change.
 5714 
 5715 2006-01-05  Kim F. Storm  <storm@cua.dk>
 5716 
 5717 	* process.c (Fmake_network_process): Use AF_INET instead of
 5718 	AF_UNSPEC when AF_INET6 is not defined.
 5719 
 5720 2006-01-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 5721 
 5722 	* mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
 5723 	Don't check that the other type is known file-related one.
 5724 
 5725 	* macfns.c (Fx_server_version): Use gestaltSystemVersionMajor,
 5726 	gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
 5727 	OS X 10.4 and later.
 5728 
 5729 2006-01-04  Jan Djärv  <jan.h.d@swipnet.se>
 5730 
 5731 	* gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
 5732 	let GTK do all image processing.  Importing Emacs own pixmaps to GTK
 5733 	looks bad for inactive tool bar items with some Gnome themes.
 5734 
 5735 2006-01-04  Eli Zaretskii  <eliz@gnu.org>
 5736 
 5737 	* .gdbinit: Avoid a warning message when x_error_quitter is not
 5738 	compiled in.
 5739 
 5740 	* process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support
 5741 	for w32.
 5742 
 5743 2006-01-04  Kim F. Storm  <storm@cua.dk>
 5744 
 5745 	* process.c: Add IPv6 support.
 5746 	(Qipv4, Qipv6): New vars.
 5747 	(syms_of_process): Intern and staticpro them.
 5748 	(Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
 5749 	with or without port number.  Handle 4 element vector as IPv4 address
 5750 	without port number.
 5751 	(conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
 5752 	(conv_lisp_to_sockaddr): Handle IPv6 addresses.
 5753 	(Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
 5754 	request that address family only.  :family nil or omitted means to
 5755 	determine address family from the specified :host and :service.
 5756 	(ifflag_table): Add missing OpenBSD IFF_ flags.
 5757 	(server_accept_connection): Handle IPv6 addresses.
 5758 	(init_process): Add (:family ipv4) and (:family ipv6) sub-features.
 5759 
 5760 	* .gdbinit: Undo last change.  Instead, look at Vsystem_type to
 5761 	determine which breakpoints to set.
 5762 
 5763 2006-01-03  Stefan Monnier  <monnier@iro.umontreal.ca>
 5764 
 5765 	* keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup.
 5766 
 5767 	* window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c).
 5768 
 5769 2006-01-03  Romain Francoise  <romain@orebokech.com>
 5770 
 5771 	* emacs.c (main): Update copyright year.
 5772 
 5773 2006-01-03  Ken Raeburn  <raeburn@gnu.org>
 5774 
 5775 	* callproc.c (delete_temp_file): Bind file-name-handler-alist to
 5776 	nil for the call to internal_delete_file.
 5777 
 5778 2006-01-01  Ken Raeburn  <raeburn@gnu.org>
 5779 
 5780 	* callproc.c (Fcall_process_region): Bind file-name-handler-alist
 5781 	to nil for the call to Fwrite_region.
 5782 
 5783 2005-12-31  Richard M. Stallman  <rms@gnu.org>
 5784 
 5785 	* minibuf.c (read_minibuf): Clear out all other minibuffer windows.
 5786 
 5787 2005-12-31  Eli Zaretskii  <eliz@gnu.org>
 5788 
 5789 	* emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.
 5790 
 5791 2005-12-30  Luc Teirlinck  <teirllm@auburn.edu>
 5792 
 5793 	* textprop.c (set_text_properties): Reword description of return value.
 5794 	Return Qnil if caller wants to remove all text properties from a
 5795 	string and the string already has no intervals.
 5796 
 5797 2005-12-30  Stefan Monnier  <monnier@iro.umontreal.ca>
 5798 
 5799 	* term.c (visible_cursor): New boolean var.
 5800 	(set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
 5801 	visible_cursor.
 5802 	(syms_of_term): Export the new var as "visible-cursor".
 5803 
 5804 2005-12-30  Eli Zaretskii  <eliz@gnu.org>
 5805 
 5806 	* .gdbinit: Tell users not to worry about GDB warnings that some
 5807 	functions do not exist in the binary.
 5808 
 5809 2005-12-30  Andreas Schwab  <schwab@suse.de>
 5810 
 5811 	* process.c (Fnetwork_interface_info): Correctly terminate the
 5812 	loop over ifflag_table.
 5813 
 5814 2005-12-29  Richard M. Stallman  <rms@gnu.org>
 5815 
 5816 	* lread.c (readevalloop): Test for reading a whole buffer
 5817 	before actually reading anything.  Handle all cases, including
 5818 	START = END = nil and an already-narrowed buffer.
 5819 	Convert END to a marker if it is a number.
 5820 
 5821 	* keymap.c (describe_map): Put sparse map elements into an array,
 5822 	sort them, then output a sequence of identical bindings on one line.
 5823 	(struct describe_map_elt): New data type.
 5824 	(describe_map_compare): New function.
 5825 
 5826 2005-12-28  Jan Djärv  <jan.h.d@swipnet.se>
 5827 
 5828 	* gtkutil.c (xg_get_file_with_chooser): Change message shown
 5829 	in file chooser.
 5830 
 5831 2005-12-27  Richard M. Stallman  <rms@gnu.org>
 5832 
 5833 	* lread.c (readevalloop): Set PT and ZV in the proper buffer,
 5834 	not the current one.
 5835 
 5836 	* minibuf.c (Fminibuffer_message): Doc fix.
 5837 	(read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
 5838 
 5839 	* eval.c (do_autoload): Ignore elements of Vautoload_queue
 5840 	where car is not symbol.
 5841 
 5842 2005-12-27  Kenichi Handa  <handa@m17n.org>
 5843 
 5844 	* charset.c (lisp_string_width): Check multibyteness of STRING.
 5845 
 5846 2005-12-27  Jan Djärv  <jan.h.d@swipnet.se>
 5847 
 5848 	* xfns.c (x_show_hidden_files): New variable.
 5849 	(syms_of_xfns): Defvar it.
 5850 
 5851 	* gtkutil.c (xg_toggle_visibility_cb): New function.
 5852 	(xg_get_file_with_chooser): Add toggle hidden files and a message
 5853 	to the new file chooser dialog.  Show hidden files if
 5854 	x_show_hidden_files is non-zero.
 5855 
 5856 2005-12-26  Richard M. Stallman  <rms@gnu.org>
 5857 
 5858 	* keyboard.h: Undo previous change.
 5859 
 5860 	* Makefile.in (undo.o): Undo previous change.
 5861 
 5862 	* undo.c: Undo previous change.
 5863 
 5864 2005-12-26  Luc Teirlinck  <teirllm@auburn.edu>
 5865 
 5866 	* keyboard.h: Extern last_point_position_window.
 5867 
 5868 	* undo.c: Include keyboard.h.
 5869 
 5870 	* Makefile.in (undo.o): Depend on keyboard.h.
 5871 
 5872 2005-12-26  Richard M. Stallman  <rms@gnu.org>
 5873 
 5874 	* commands.h (last_point_position_window): Declare.
 5875 
 5876 	* undo.c: Depend on window.h.
 5877 	(record_point): Save old point from the correct window.
 5878 
 5879 	* keyboard.c (last_point_position_window): New variable.
 5880 	(command_loop_1): Set last_point_position_window.
 5881 	(syms_of_keyboard): Init it.
 5882 
 5883 	* Makefile.in (undo.o): Depend on window.h.
 5884 
 5885 2005-12-25  Richard M. Stallman  <rms@gnu.org>
 5886 
 5887 	* eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
 5888 	to undo a `provide'.
 5889 
 5890 	* fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
 5891 
 5892 2005-12-25  Giorgos Keramidas  <keramida@ceid.upatras.gr>
 5893 
 5894 	* m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
 5895 	define for FreeBSD on this platform.
 5896 
 5897 2005-12-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 5898 
 5899 	* macterm.h (TYPE_FILE_NAME): New define.
 5900 	(posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
 5901 
 5902 	* mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname):
 5903 	Add prototypes.  Make static.
 5904 	(mac_aedesc_to_lisp): Initialize err to noErr.
 5905 	(mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
 5906 	(init_coercion_handler): New functions.
 5907 	(Fmac_coerce_ae_data): Use coercion of Apple event data for
 5908 	translation from/to file names.
 5909 
 5910 	* macterm.c: Don't include sys/param.h.
 5911 	(init_coercion_handler): Add extern.
 5912 	[MAC_OS8] (main): Call init_coercion_handler.
 5913 	(mac_initialize) [MAC_OSX]: Likewise.
 5914 	[TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
 5915 	Apple event data for translation from/to file names.
 5916 
 5917 	* macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
 5918 
 5919 	* image.c [MAC_OS] (find_image_fsspec): Likewise.
 5920 
 5921 2005-12-23  Martin Rudalics  <rudalics@gmx.at>
 5922 
 5923 	* insdel.c (insert, insert_and_inherit, insert_before_markers)
 5924 	(insert_before_markers_and_inherit): Make sure FROM is correct
 5925 	when `after-change-functions' are called.
 5926 
 5927 2005-12-23  Jan Djärv  <jan.h.d@swipnet.se>
 5928 
 5929 	* xfns.c (Fx_uses_old_gtk_dialog): New function.
 5930 
 5931 	* gtkutil.c (xg_uses_old_file_dialog): New function.
 5932 	(xg_get_file_name): Use xg_uses_old_file_dialog.
 5933 
 5934 	* gtkutil.h: Declare xg_uses_old_file_dialog.
 5935 
 5936 2005-12-22  Richard M. Stallman  <rms@gnu.org>
 5937 
 5938 	* xmenu.c (xmenu_show): Call inhibit_garbage_collection.
 5939 
 5940 2005-12-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 5941 
 5942 	* mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
 5943 
 5944 	* macgui.h (XCharStruct): Remove member `valid_p'.
 5945 	(STORE_XCHARSTRUCT): Don't set member `valid_p'.
 5946 	(XCharStructRow): New typedef.
 5947 	(XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
 5948 	New macros.
 5949 	(struct MacFontStruct): Add member `bounds'.  Remove member
 5950 	`per_char'.  All uses for QuickDraw Text fonts are changed to
 5951 	`bounds.per_char'.  ATSUI font bounds are represented as an array
 5952 	`bounds.rows' of XCharStructRow's, each of which consists of a
 5953 	bitmap of valid entries and an array of char bounds.
 5954 
 5955 	* macterm.c (mac_per_char_metric): Add prototype.
 5956 	(x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
 5957 	(mac_query_char_extents): New function.
 5958 	(x_per_char_metric): Use it.
 5959 	(XLoadQueryFont): Likewise.  Consolidate min/max_bounds calculations.
 5960 	[USE_CG_TEXT_DRAWING] (mac_draw_string_cg):
 5961 	Use mac_per_char_metric instead of x_per_char_metric.
 5962 	(mac_text_extents_16): New function.
 5963 	(mac_compute_glyph_string_overhangs): Use it.
 5964 	(mac_unload_font): Free member `bounds' in struct MacFontStruct.
 5965 
 5966 2005-12-21  Stefan Monnier  <monnier@iro.umontreal.ca>
 5967 
 5968 	* minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
 5969 	(Fminibuffer_completion_help): Remove duplicates before display.
 5970 
 5971 2005-12-21  Lőrentey Károly  <lorentey@elte.hu>
 5972 
 5973 	* print.c (print_preprocess): Don't lose print_depth levels while
 5974 	iterating.
 5975 
 5976 2005-12-21  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 5977 
 5978 	* macmenu.c (Qmac_apple_event): Add extern.
 5979 	(set_frame_menubar, mac_menu_show keymp_panes)
 5980 	(single_keymap_panes, list_of_panes, list_of_item)
 5981 	(single_menu_item): Add argument types to prototypes.
 5982 	(mac_dialog_show) [HAVE_DIALOGS]: Likewise.
 5983 	(struct skp): New struct (from xmenu.c).
 5984 	(single_keymap_panes, single_menu_item, list_of_panes)
 5985 	(list_of_item): Sync with xmenu.c.
 5986 	(Fx_popup_menu, Fx_popup_dialog): Likewise.  Don't get window from
 5987 	POSITION if it is mac-apple-event event.
 5988 	(menubar_selection_callback): Don't use menu_command_in_progress.
 5989 	(set_frame_menubar): First parse all submenus, then make
 5990 	widget_value trees from them.  Don't allocate any widget_value
 5991 	objects until we are done with the parsing.
 5992 	(parse_single_submenu, digest_single_submenu): New functions.
 5993 	(single_submenu): Function deleted, replaced by those two.
 5994 	(install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't create
 5995 	or dispose of EventHandlerUPP.  Install handler to all submenus.
 5996 	(mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
 5997 	instead of ENCODE_SYSTEM.
 5998 	(free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
 5999 	integer values.
 6000 	[HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
 6001 	(add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
 6002 	format menu item string.  Don't use NULL for integer value.
 6003 
 6004 	* macterm.h (struct mac_output): Remove unused member
 6005 	menu_command_in_progress.
 6006 
 6007 2005-12-20  Juri Linkov  <juri@jurta.org>
 6008 
 6009 	* xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
 6010 	position is non-nil, else set it to nil.
 6011 
 6012 	* macmenu.c (Fx_popup_menu): Add `else' to set
 6013 	Vmenu_updating_frame to nil only if position is nil.
 6014 
 6015 	* w32menu.c (Fx_popup_menu): Add `else' to set
 6016 	Vmenu_updating_frame to nil only if position is nil.
 6017 
 6018 2005-12-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 6019 
 6020 	* keyboard.c (make_lispy_event): Drag-and-drop items are now
 6021 	stored in member `args' of struct input_event.
 6022 
 6023 	* termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
 6024 
 6025 	* xselect.c (x_handle_dnd_message): Drag-and-drop items are now
 6026 	stored in member `args' of struct input_event.
 6027 
 6028 	* w32term.c (construct_drag_n_drop): Likewise.
 6029 
 6030 	* macterm.c (mac_do_receive_drag): Likewise.
 6031 	(x_use_underline_position_properties): Undo 2005-07-13 change.
 6032 	(syms_of_macterm) <x-use-underline-position-properties>: Likewise.
 6033 	(mac_use_core_graphics, mac_wheel_button_is_mouse_2)
 6034 	(mac_pass_command_to_system, mac_pass_control_to_system):
 6035 	New boolean variables renamed from Lisp_Object ones
 6036 	Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
 6037 	Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
 6038 	All uses changed.
 6039 	(syms_of_macterm): DEFVAR_BOOL them.  Remove previous DEFVAR_LISPs.
 6040 	Make them user options.
 6041 	(mac_handle_command_event, mac_store_services_event):
 6042 	Call create_apple_event_from_event_ref without 5th argument.
 6043 	(backtranslate_modified_keycode): Mask off modifier keys that are
 6044 	mapped to some Emacs modifiers before passing it to KeyTranslate.
 6045 	(syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
 6046 	`mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
 6047 	Fix docstrings of `mac-*-modifier'.
 6048 
 6049 	* mac.c (create_apple_event_from_event_ref): Remove arg `types'.
 6050 	(do_applescript): Change argument types to Lisp_Object.
 6051 	All uses changed.
 6052 
 6053 	* macterm.h (create_apple_event_from_event_ref): Remove 5th
 6054 	argument from extern.
 6055 
 6056 2005-12-18  Dan Nicolaescu  <dann@ics.uci.edu>
 6057 
 6058 	* xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
 6059 	the answer, return `lambda', not nil.
 6060 
 6061 2005-12-17  Eli Zaretskii  <eliz@gnu.org>
 6062 
 6063 	* makefile.w32-in (bootstrap-temacs): Warn that parts of commands
 6064 	enclosed in $(ARGQUOTE)s should not be split between two lines, as
 6065 	that will break with GNU Make >3.80, when sh.exe is used and
 6066 	arg quoting is with '..'.
 6067 
 6068 2005-12-17  Chong Yidong  <cyd@stupidchicken.com>
 6069 
 6070 	* print.c (print_preprocess): Just signal an error if print_depth
 6071 	is exceeded.
 6072 
 6073 2005-12-17  Eli Zaretskii  <eliz@gnu.org>
 6074 
 6075 	* .gdbinit: Set a breakpoint on w32_abort.
 6076 
 6077 2005-12-16  Juri Linkov  <juri@jurta.org>
 6078 
 6079 	* minibuf.c (Fminibuffer_completion_contents): New Lisp function
 6080 	created from minibuffer_completion_contents.
 6081 	(minibuffer_completion_contents): Remove.
 6082 	(do_completion, Fminibuffer_complete_word)
 6083 	(Fminibuffer_completion_help): Replace minibuffer_completion_contents
 6084 	with Fminibuffer_completion_contents.
 6085 	(syms_of_minibuf): Add Sminibuffer_completion_contents.
 6086 	(Fdisplay_completion_list): Doc fix.
 6087 	(display_completion_list_1): Use `nil' for second arg of
 6088 	`Fdisplay_completion_list'.
 6089 
 6090 2005-12-14  Jan Djärv  <jan.h.d@swipnet.se>
 6091 
 6092 	* xfns.c (compute_tip_xy): Handle negative dx and dy.
 6093 
 6094 	* w32fns.c (compute_tip_xy): Ditto.
 6095 
 6096 	* macfns.c (compute_tip_xy): Ditto.
 6097 
 6098 2005-12-14  Chong Yidong  <cyd@stupidchicken.com>
 6099 
 6100 	* print.c (print_preprocess): Go to a deeper print_depth to avoid
 6101 	print_object loop.
 6102 
 6103 2005-12-14  Kyotaro HORIGUCHI  <horiguti@meadowy.org>  (tiny change)
 6104 
 6105 	* coding.c (code_convert_region_unwind): GCPRO arg.
 6106 
 6107 2005-12-12  Jan Djärv  <jan.h.d@swipnet.se>
 6108 
 6109 	* xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
 6110 	i.e. dy is offset from top of frame instead of bottom.
 6111 
 6112 	* macfns.c (compute_tip_xy): Ditto.
 6113 
 6114 	* w32fns.c (compute_tip_xy): Ditto.
 6115 
 6116 	* gtkutil.c (SSDATA): New macro to remove compiler warnings.
 6117 	(xg_get_image_for_pixmap, xg_create_frame_widgets)
 6118 	(xg_get_file_with_chooser): Use SSDATA instead of SDATA.
 6119 
 6120 	* xmenu.c (menubar_selection_callback): Do nothing if the callback
 6121 	is for an unselected radio menu item.
 6122 
 6123 2005-12-11  Richard M. Stallman  <rms@gnu.org>
 6124 
 6125 	* xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
 6126 
 6127 	* lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
 6128 
 6129 	* keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
 6130 	(Flookup_key): Doc fix.
 6131 	(syms_of_keymap) <function-key-map>: Doc fix.
 6132 
 6133 	* fns.c (Frequire): Treat evaluating from a source file
 6134 	like loading the file.
 6135 
 6136 	* floatfns.c (Flog): Doc fix.
 6137 
 6138 	* fileio.c (Finsert_file_contents): Set Vdeactivate_mark
 6139 	when we change the buffer.
 6140 
 6141 2005-12-11  Juri Linkov  <juri@jurta.org>
 6142 
 6143 	* minibuf.c (display_completion_list_1):
 6144 	Call `minibuffer_completion_contents' instead of using `nil' as
 6145 	second arg of `Fdisplay_completion_list'.
 6146 	(keys_of_minibuf): Unbind SPC in
 6147 	Vminibuffer_local_filename_completion_map (see also related
 6148 	change on 2005-12-06).
 6149 
 6150 2005-12-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 6151 
 6152 	* emacs.c (main) [MAC_OS8]: Undo previous change.
 6153 
 6154 	* macselect.c (syms_of_macselect) <mac-apple-event-map>:
 6155 	Initialize to nil.  Keymap is now created in lisp/term/mac-win.el.
 6156 
 6157 2005-12-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 6158 
 6159 	* Makefile.in (macselect.o): Depend on keymap.h.
 6160 
 6161 	* emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
 6162 	syms_of_macselect.
 6163 
 6164 	* image.c (init_image) [MAC_OS]: Don't call EnterMovies.
 6165 	[!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
 6166 
 6167 	* keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
 6168 	(syms_of_keyboard) [MAC_OS]: Initialize it.
 6169 	(make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
 6170 
 6171 	* mac.c (Qundecoded_file_name): New variable.
 6172 	(syms_of_mac): Initialize it.
 6173 	(mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
 6174 	[TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
 6175 	(Fmac_coerce_ae_data): New defun.
 6176 	(syms_of_mac): Defsubr it.
 6177 
 6178 	* macselect.c: Include keymap.h.
 6179 	(mac_ready_for_apple_events): New variable.
 6180 	(Vmac_apple_event_map, Qmac_apple_event_class)
 6181 	(Qmac_apple_event_id): New variables.
 6182 	(syms_of_macselect): Initialize them.
 6183 	(Qundefined, mac_store_apple_event): Add externs.
 6184 	(struct apple_event_binding): New struct.
 6185 	(find_event_binding_fun, find_event_binding)
 6186 	(mac_find_apple_event_spec, defer_apple_events)
 6187 	(mac_handle_apple_event, init_apple_event_handler)
 6188 	(copy_scrap_flavor_data): New functions.
 6189 	(Fmac_process_deferred_apple_events): New defun.
 6190 	(syms_of_macselect): Defsubr it.
 6191 	(mac_store_services_event): Fix extern.
 6192 	(mac_handle_service_event): Don't allocate Lisp objects during
 6193 	asynchronous input processing.  Use mac_store_services_event
 6194 	instead of mac_store_application_menu_event.
 6195 
 6196 	* macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
 6197 	(Qpreferences): Remove variables.
 6198 	(syms_of_macterm): Don't initialize them.
 6199 	(Qhicommand) [USE_CARBON_EVENTS]: New variable.
 6200 	(syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
 6201 	(init_required_apple_events, do_ae_open_application)
 6202 	(do_ae_print_documents, do_ae_open_documents)
 6203 	(do_ae_quit_application): Remove functions and prototypes.
 6204 	(mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
 6205 	(mac_find_apple_event_spec): Add externs.
 6206 	(mac_store_application_menu_event): Remove function.
 6207 	(mac_store_apple_event, mac_make_lispy_event_code): New functions.
 6208 	(mac_handle_command_event): Create Apple event from Carbon event.
 6209 	Use mac_store_apple_event instead of mac_store_application_menu_event.
 6210 	[MAC_OSX] (mac_store_services_event): Likewise.
 6211 	(struct SelectionRange, SelectionRange): Remove struct and typedef.
 6212 	[MAC_OS8] (main): Call init_apple_event_handler instead of
 6213 	init_required_apple_events.
 6214 	(mac_initialize) [MAC_OSX]: Likewise.
 6215 	[!USE_CARBON_EVENTS] (mac_wait_next_event):
 6216 	Use mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
 6217 
 6218 	* macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp):
 6219 	Add externs.
 6220 	(create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
 6221 	(Fmac_get_preference): Add EXFUN.
 6222 
 6223 	* termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
 6224 	event.
 6225 
 6226 2005-12-09  Richard M. Stallman  <rms@gnu.org>
 6227 
 6228 	* xfns.c (Fx_create_frame): Reinstate previous change.
 6229 
 6230 2005-12-09  Eli Zaretskii  <eliz@gnu.org>
 6231 
 6232 	* w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
 6233 	GDB to the abort dialog.
 6234 
 6235 2005-12-09  Kyotaro HORIGUCHI  <horiguti@meadowy.org>  (tiny change)
 6236 
 6237 	* indent.c (Fvertical_motion): Force move if starting on
 6238 	stretch glyph.
 6239 
 6240 2005-12-08  Richard M. Stallman  <rms@gnu.org>
 6241 
 6242 	* lread.c (read_escape) <\s>: Don't treat strings specially.
 6243 
 6244 	* xfns.c (Fx_create_frame): Comment out previous change.
 6245 
 6246 2005-12-07  Lőrentey Károly  <lorentey@elte.hu>
 6247 
 6248 	* xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
 6249 	when needed.
 6250 
 6251 2005-12-06  Stefan Monnier  <monnier@iro.umontreal.ca>
 6252 
 6253 	* minibuf.c (keys_of_minibuf): Just unbind SPC in
 6254 	Vminibuffer_local_filename_completion_map rather than forcing it
 6255 	explicitly to the same binding as the global map.
 6256 
 6257 2005-12-06  Ken Raeburn  <raeburn@gnu.org>
 6258 
 6259 	* buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP args.
 6260 	* bytecode.c (Fbyte_code): Likewise.
 6261 	* fileio.c (internal_delete_file, Fread_file_name_internal): Likewise.
 6262 	* minibuf.c (Fminibuffer_complete_and_exit): Likewise.
 6263 	* undo.c (truncate_undo_list): Likewise.
 6264 
 6265 2005-12-05  Richard M. Stallman  <rms@gnu.org>
 6266 
 6267 	* window.c (enlarge_window): Eliminate arg preserve_before.
 6268 	Assume it is 0.  All callers changed.
 6269 	(Fenlarge_window, Fshrink_window): Likewise.
 6270 
 6271 2005-12-02  Eli Zaretskii  <eliz@gnu.org>
 6272 
 6273 	* w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
 6274 	fit below.
 6275 
 6276 2005-12-02  Jan Djärv  <jan.h.d@swipnet.se>
 6277 
 6278 	* xterm.h: Add prototype for xg_set_icon_from_xpm_data.
 6279 
 6280 	* xfns.c (x_real_positions): int ign => unsigned int.
 6281 	(xg_set_icon_from_xpm_data): Remove unused variable err.
 6282 	(x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
 6283 	to remove compiler warning.
 6284 	(compute_tip_xy): Put tip above pointer if it doesn't fit below.
 6285 
 6286 2005-12-02  David Reitter  <david.reitter@gmail.com>
 6287 
 6288 	* minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
 6289 	non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
 6290 	and Vminibuffer_local_must_match_filename_map keymaps.
 6291 	(keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
 6292 
 6293 	* keymap.c (Vminibuffer_local_filename_completion_map)
 6294 	(Vminibuffer_local_must_match_filename_map): New variables.
 6295 	(syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
 6296 	parent to be Vminibuffer_local_completion_map and
 6297 	Vminibuffer_local_must_match_map, respectively.
 6298 
 6299 	* commands.h (Vminibuffer_local_filename_completion_map)
 6300 	(Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
 6301 
 6302 2005-12-01  Stefan Monnier  <monnier@iro.umontreal.ca>
 6303 
 6304 	* window.c (Fset_window_configuration): Don't accidentally copy the
 6305 	window-point of one window to another.
 6306 
 6307 2005-11-30  Lőrentey Károly  <lorentey@elte.hu>
 6308 
 6309 	* buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
 6310 
 6311 2005-11-30  Kim F. Storm  <storm@cua.dk>
 6312 
 6313 	* alloc.c: Include fcntl.h.  Define O_WRONLY if not defined.
 6314 	(valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
 6315 	passing it to `emacs_write'.
 6316 
 6317 2005-11-29  Ari Roponen  <arjuropo@cc.jyu.fi>  (tiny change)
 6318 
 6319 	* atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
 6320 
 6321 2005-11-27  Richard M. Stallman  <rms@gnu.org>
 6322 
 6323 	* window.c (adjust_window_trailing_edge): New function.
 6324 	(Fadjust_window_trailing_edge): New function.
 6325 	(syms_of_window): Defsubr it.
 6326 	(window_deletion_count): New variable.
 6327 	(delete_window): Update window_deletion_count.
 6328 
 6329 2005-11-26  Eli Zaretskii  <eliz@gnu.org>
 6330 
 6331 	* minibuf.c (syms_of_minibuf): Mention the extension of
 6332 	`completion-auto-help's meaning by complete.el.
 6333 
 6334 2005-11-26  Henrik Enberg  <henrik.enberg@telia.com>
 6335 
 6336 	* xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
 6337 	Handle :inherit property as a lisp expression.
 6338 
 6339 2005-11-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 6340 
 6341 	* macterm.c (Qcontrol): Rename from Qctrl.  All uses changed.
 6342 	(syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
 6343 	Qsuper, and Qmodifier_value.
 6344 	(Vmac_control_modifier, Vmac_option_modifier)
 6345 	(Vmac_command_modifier, Vmac_function_modifier)
 6346 	(Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
 6347 	(Vmac_pass_command_to_system, Vmac_pass_control_to_system)
 6348 	(Vmac_charset_info_alist): Doc fixes.
 6349 
 6350 2005-11-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 6351 
 6352 	* emacs.c (main) [MAC_OSX]: Change working directory to home
 6353 	directory if `-psn_*' option is specified.
 6354 
 6355 	* mac.c (DECODE_UTF_8): Remove macro.
 6356 	[TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
 6357 	created from cfstring_to_lisp.
 6358 	[TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
 6359 	(xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
 6360 
 6361 	* macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
 6362 	Add prototype.
 6363 
 6364 2005-11-21  Ken Raeburn  <raeburn@gnu.org>
 6365 
 6366 	* keymap.c (shadow_lookup): Use make_number to pass a number to
 6367 	Fsubstring.
 6368 
 6369 2005-11-21  Juri Linkov  <juri@jurta.org>
 6370 
 6371 	* puresize.h (BASE_PURESIZE): Increment to 1180000.
 6372 
 6373 2005-11-20  Chong Yidong  <cyd@stupidchicken.com>
 6374 
 6375 	* xfaces.c (Finternal_set_lisp_face_attribute):
 6376 	Use :ignore-defface for new frame defaults when `unspecified' is
 6377 	supplied.
 6378 	(Finternal_get_lisp_face_attribute): Hide :ignore-defface.
 6379 	(merge_face_vectors): Don't do :ignore-defface overwriting here.
 6380 	(Finternal_merge_in_global_face): Do it here.
 6381 
 6382 2005-11-20  Juri Linkov  <juri@jurta.org>
 6383 
 6384 	* charset.c (invalid_character): Use Lisp-readable syntax
 6385 	for octal and hex.  Reorder decimal, octal and hex values.
 6386 
 6387 2005-11-20  Nick Roberts  <nickrob@snap.net.nz>
 6388 
 6389 	* lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
 6390 	this type is recognized when debugging.
 6391 
 6392 2005-11-19  Andreas Schwab  <schwab@suse.de>
 6393 
 6394 	* .gdbinit (nextcons, xcdr, xfloat): Update for changes in
 6395 	Lisp_Cons and Lisp_Float.
 6396 
 6397 2005-11-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 6398 
 6399 	* macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
 6400 	New variable.
 6401 	[USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
 6402 	(init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
 6403 	[USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
 6404 	font size is smaller than or equal to cg_text_anti_aliasing_threshold.
 6405 
 6406 2005-11-17  Chong Yidong  <cyd@stupidchicken.com>
 6407 
 6408 	* image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
 6409 
 6410 	* xfaces.c (Qignore_defface): New variable.
 6411 	(syms_of_xfaces): Provide `:ignore-defface'.
 6412 	(IGNORE_DEFFACE_P): New macro.
 6413 	(check_lface_attrs, lface_fully_specified_p)
 6414 	(Finternal_set_lisp_face_attribute)
 6415 	(Fface_attribute_relative_p, Fmerge_face_attribute):
 6416 	Handle Qignore_defface as a possible value.
 6417 	(merge_face_vectors): The merged face is `unspecified' if the
 6418 	mergee specifies `:ignore-defface'.
 6419 
 6420 2005-11-16  Stefan Monnier  <monnier@iro.umontreal.ca>
 6421 
 6422 	* lread.c (readevalloop): Add missing GCPROs.
 6423 
 6424 2005-11-16  Chong Yidong  <cyd@stupidchicken.com>
 6425 
 6426 	* xfns.c (xg_set_icon_from_xpm_data): New function.
 6427 
 6428 	* gnu.h (gnu_xpm_bits): Rename from gnu_bits.
 6429 	(gnu_xbm_bits): Rename from gnu_bits (xbm version).
 6430 
 6431 	* xterm.c (x_bitmap_icon): Use the xpm if available.
 6432 
 6433 	* image.c (x_create_bitmap_from_xpm_data): New function.
 6434 	(x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
 6435 
 6436 2005-11-15  Luc Teirlinck  <teirllm@auburn.edu>
 6437 
 6438 	* Makefile.in (lisp, shortlisp): Add rfn-eshadow.
 6439 
 6440 2005-11-16  Nick Roberts  <nickrob@snap.net.nz>
 6441 
 6442 	* .gdbinit: Make SIGTSTP work like SIGINT normally does.
 6443 
 6444 2005-11-15  Andreas Schwab  <schwab@suse.de>
 6445 
 6446 	* lisp.h (struct Lisp_Cons): Make cdr a union.
 6447 	(XCDR_AS_LVALUE): Adjust.
 6448 	(struct Lisp_Float): Make data a union.
 6449 	(XFLOAT_DATA): Adjust.
 6450 
 6451 	* alloc.c (free_float): Make free list chaining aliasing-safe.
 6452 	(make_float): Likewise.
 6453 	(free_cons): Likewise.
 6454 	(Fcons): Likewise.
 6455 	(check_cons_list): Likewise.
 6456 	(Fmake_symbol): Likewise.
 6457 	(allocate_misc): Likewise.
 6458 	(free_misc): Likewise.
 6459 	(gc_sweep): Likewise.
 6460 
 6461 2005-11-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 6462 
 6463 	* mac.c (HASHKEY_QUERY_CACHE): New define.
 6464 	(xrm_create_database, xrm_q_put_resource): Empty query cache.
 6465 	(xrm_get_resource): Use query cache.
 6466 
 6467 	* image.c (init_image) [MAC_OS]: Don't call EnterMovies if
 6468 	inhibit_window_system is set.
 6469 
 6470 2005-11-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 6471 
 6472 	* macgui.h (USE_CG_TEXT_DRAWING): New define.
 6473 	(struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
 6474 	and cg_glyphs.
 6475 
 6476 	* macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
 6477 	(x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
 6478 	(XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
 6479 	cg_glyphs in struct MacFontStruct if synthesized bold or italic is
 6480 	not used and font substitution never occurs for ASCII and Latin-1
 6481 	characters.
 6482 	(XLoadQueryFont): Maximum and minimum metrics are now those among
 6483 	ASCII characters.
 6484 	(XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
 6485 	height adjustments for Courier, Helvetica, and Times.
 6486 
 6487 	* s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
 6488 
 6489 2005-11-11  David Reitter  <david.reitter@gmail.com>
 6490 
 6491 	* macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
 6492 	macMetaKey, macAltKey.  Introduce Qctrl, Qmeta,
 6493 	Vmac_control_modifier / mac-control-modifier,
 6494 	Vmac_option_modifier / mac-option-modifier,
 6495 	Vmac_command_modifier / mac-command-modifier.
 6496 	(mac_to_emacs_modifiers): Use the new style modifier
 6497 	variables.  Return UInt32 (modifiers are longs now.)
 6498 	(backtranslate_modified_keycode): New function (refactoring).
 6499 	(XTread_socket): Use new modifier variables and refactored function.
 6500 	(mac_determine_quit_char_modifiers): Remove macMetaKey (there is
 6501 	no dedicated meta key.  Not in use anyway.)
 6502 	(convert_fn_keycode): Map Fn-keys to their original keycode
 6503 	using a table (english keyboard only).
 6504 
 6505 2005-11-11  Kim F. Storm  <storm@cua.dk>
 6506 
 6507 	* .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
 6508 	Add post hook to "backtrace" to always dump lisp call stack to
 6509 	increase chance of people sending it to us when reporting bugs.
 6510 
 6511 	* doc.c (Fsubstitute_command_keys): Doc fix.
 6512 
 6513 	* dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
 6514 
 6515 	* xdisp.c (handle_stop): Skip overlay string handling if
 6516 	ignore_overlay_strings_at_pos_p is set.
 6517 	(set_iterator_to_next): At end of display vector, set
 6518 	ignore_overlay_strings_at_pos_p if dpvec came from an overlay
 6519 	string, so we skip those overlay strings at current pos.
 6520 
 6521 2005-11-10  Lars Hansen  <larsh@soem.dk>
 6522 
 6523 	* fileio.c (file-regular-p): Doc fix.
 6524 
 6525 2005-11-10  Kim F. Storm  <storm@cua.dk>
 6526 
 6527 	* alloc.c (valid_lisp_object_p): New function to validate that
 6528 	an object is really a valid Lisp_Object.
 6529 
 6530 	* lisp.h (valid_lisp_object_p): Add prototype.
 6531 
 6532 	* print.c (safe_debug_print): New function to be called from gdb
 6533 	to print Lisp objects; use valid_lisp_object_p to avoid crashing
 6534 	if user tries to print something which is not a Lisp object.
 6535 
 6536 	* .gdbinit (pp, pp1): Use safe_debug_print.
 6537 	(pv, pv1): New commands to print value of a lisp variable.
 6538 
 6539 2005-11-10  Nick Roberts  <nickrob@snap.net.nz>
 6540 
 6541 	* .gdbinit (pp1): New user-defined function.
 6542 
 6543 2005-11-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 6544 
 6545 	* image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
 6546 
 6547 	* mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
 6548 	related variables for dumped executable.
 6549 
 6550 	* unexmacosx.c (unexec_write_zero): New function.
 6551 	(copy_data_segment): Clear uninitialized local variables in
 6552 	statically linked libraries.
 6553 
 6554 	* s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
 6555 
 6556 2005-11-09  Juri Linkov  <juri@jurta.org>
 6557 
 6558 	* keymap.c (shadow_lookup): If Flookup_key returns a number,
 6559 	call it again with a sub-key-sequence, and if its return value
 6560 	is non-nil (sub-key is bound), return nil.
 6561 
 6562 2005-11-08  Kim F. Storm  <storm@cua.dk>
 6563 
 6564 	* process.c (Fsignal_process): Recognize signal names with and
 6565 	without SIG prefix, e.g. SIGHUP and HUP.
 6566 
 6567 	* search.c (search_buffer): No need to initialize base_pat.
 6568 
 6569 2005-11-04  Stefan Monnier  <monnier@iro.umontreal.ca>
 6570 
 6571 	* window.c (Fget_lru_window, Fget_largest_window, window_loop):
 6572 	Don't abuse the `mini' arg.  Use the `obj' arg instead.
 6573 
 6574 2005-11-04  Kim F. Storm  <storm@cua.dk>
 6575 
 6576 	* xdisp.c (show_mouse_face): Clear mouse face to eol.
 6577 
 6578 2005-11-03  Dan Nicolaescu  <dann@ics.uci.edu>
 6579 
 6580 	* Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
 6581 	font-lock.elc and jit-lock.elc.
 6582 
 6583 2005-11-03  Richard M. Stallman  <rms@gnu.org>
 6584 
 6585 	* window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
 6586 	(enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
 6587 	(CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
 6588 
 6589 	* sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
 6590 
 6591 	* alloc.c (refill_memory_reserve): Move decl out of conditionals.
 6592 
 6593 2005-11-03  Stefan Monnier  <monnier@iro.umontreal.ca>
 6594 
 6595 	* window.c (Fdisplay_buffer): Fix last change to not use
 6596 	a dedicated window.
 6597 
 6598 2005-11-01  Kim F. Storm  <storm@cua.dk>
 6599 
 6600 	* fringe.c (update_window_fringes): Undo 2005-10-27 change.
 6601 	Instead, rotate the bottom angle bitmap 180 degrees to indicate
 6602 	that the bottom row does not end in a newline.
 6603 
 6604 2005-11-01  Andreas Schwab  <schwab@suse.de>
 6605 
 6606 	* unexelf.c (unexec): Handle .plt section in BSS segment.
 6607 
 6608 2005-11-01  Stefan Monnier  <monnier@iro.umontreal.ca>
 6609 
 6610 	* lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
 6611 
 6612 	* window.c (window_loop): For LRU and LARGEST, let the `mini' argument
 6613 	determine whether to consider dedicated windows as well.
 6614 	(Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
 6615 	(Fdisplay_buffer): Do consider dedicated windows in those cases where
 6616 	we will split the window rather than reuse it.
 6617 	Don't try to use windows on other displays.
 6618 
 6619 2005-10-31  Dan Nicolaescu  <dann@ics.uci.edu>
 6620 
 6621 	* puresize.h (BASE_PURESIZE): Increment to 1170000.
 6622 
 6623 2005-10-31  Romain Francoise  <romain@orebokech.com>
 6624 
 6625 	* macfns.c: Update copyright year.
 6626 	* m/gould.h: Likewise.
 6627 
 6628 2005-10-30  Kim F. Storm  <storm@cua.dk>
 6629 
 6630 	* xdisp.c (display_line): Restore it->current_x and call
 6631 	extend_face_to_end_of_line when last glyph doesn't fit on line.
 6632 	(set_glyph_string_background_width): Remove specific tests here
 6633 	to see if face background should extend to end of line.  Simplify.
 6634 
 6635 2005-10-30  Richard M. Stallman  <rms@gnu.org>
 6636 
 6637 	* alloc.c (BYTES_USED): Use uordblks, not arena.
 6638 	(bytes_used_when_reconsidered): New variable.
 6639 	(emacs_blocked_free): Set that.
 6640 
 6641 2005-10-29  Chong Yidong  <cyd@stupidchicken.com>
 6642 
 6643 	* alloc.c (emacs_blocked_free): Fix typo.
 6644 
 6645 2005-10-29  Richard M. Stallman  <rms@gnu.org>
 6646 
 6647 	* data.c (Fmake_variable_frame_local): Doc fix.
 6648 
 6649 	* xdisp.c (handle_fontified_prop): Do nothing if memory full.
 6650 	(format_mode_line_unwind_data): New arg SAVE_PROPTRANS
 6651 	controls whether to save and restore mode_line_proptrans_alist.
 6652 	Callers changed.
 6653 	(unwind_format_mode_line): Work with that feature.
 6654 	(redisplay_internal): Don't call prepare_menu_bars if memory full.
 6655 	(move_elt_to_front): New function.
 6656 	(display_mode_element): Use move_elt_to_front.
 6657 	Don't bother munging text props on a null string.
 6658 	Delete obsolete elts from mode_line_proptrans_alist.
 6659 	(decode_mode_spec): Test Vmemory_full, not spare_memory.
 6660 	(Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
 6661 
 6662 	* lisp.h (memory_full_cons_threshold): Declare.
 6663 	(internal_lisp_condition_case): Declare.
 6664 
 6665 	* alloc.c (syms_of_alloc) <memory-full>: Doc fix.
 6666 	(Fmemory_full_p): Function deleted.
 6667 	(syms_of_alloc): Don't defsubr it.
 6668 	(memory_full_cons_threshold): New variable.
 6669 	(spare_memory): Now a vector of 7 elts.
 6670 	(buffer_memory_full): Don't set Vmemory_full here.
 6671 	(xfree): Don't try to refill here.
 6672 	(emacs_blocked_free): Record BYTES_USED in local var.
 6673 	(memory_full): Now free all the slots in spare_memory.
 6674 	(refill_memory_reserve): Allocate each slot in spare_memory.
 6675 	(init_alloc_once): Call refill_memory_reserve.
 6676 
 6677 	* keyboard.c (command_loop_1): Don't set Vmemory_full here.
 6678 
 6679 	* eval.c (internal_lisp_condition_case): New function.
 6680 	(Fcondition_case): Use internal_lisp_condition_case.
 6681 	(Feval): Test Vmemory_full and memory_full_cons_threshold.
 6682 	(Ffuncall): Likewise.
 6683 
 6684 	* bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
 6685 
 6686 2005-10-29  Stefan Monnier  <monnier@iro.umontreal.ca>
 6687 
 6688 	* syntax.c (Fparse_partial_sexp): Fix docstring.
 6689 
 6690 2005-10-28  Romain Francoise  <romain@orebokech.com>
 6691 
 6692 	* puresize.h (BASE_PURESIZE): Increment to 1130000.
 6693 
 6694 2005-10-28  Richard M. Stallman  <rms@gnu.org>
 6695 
 6696 	* xfns.c (syms_of_xfns): Provide `x' as feature.
 6697 
 6698 	* xdisp.c (decode_mode_spec): Define %e to indicate memory full.
 6699 
 6700 	* editfns.c (Fformat): Don't include string padding
 6701 	between info[n].start and info[n].end.
 6702 
 6703 	* alloc.c (spare_memory): No longer static.
 6704 	(xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
 6705 
 6706 	* puresize.h (BASE_PURESIZE): Increment to 1120000.
 6707 
 6708 2005-10-27  Chong Yidong  <cyd@stupidchicken.com>
 6709 
 6710 	* data.c (Fmake_variable_frame_local): Add clarification to docstring.
 6711 
 6712 	* fringe.c (update_window_fringes): Handle case where buffer ends
 6713 	with a newline.
 6714 
 6715 2005-10-27  Kenichi Handa  <handa@m17n.org>
 6716 
 6717 	* coding.h (DECODE_SYSTEM): Fix argument name; name->str.
 6718 
 6719 2005-10-24  Kenichi Handa  <handa@m17n.org>
 6720 
 6721 	* charset.h (charset_mule_unicode_0100_24ff)
 6722 	(charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
 6723 	Extern them.
 6724 
 6725 	* charset.c (charset_mule_unicode_0100_24ff)
 6726 	(charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
 6727 	New variables.
 6728 	(Fsetup_special_charsets): Initialize them.
 6729 
 6730 	* xterm.c (handle_one_xevent): Handle keysyms directly mapped to
 6731 	supported Unicode characters.
 6732 
 6733 2005-10-25  Jason Rumney  <jasonr@gnu.org>
 6734 
 6735 	* w32fns.c (w32_to_x_font): Avoid forcing font widths.
 6736 
 6737 2005-10-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 6738 
 6739 	* image.c [MAC_OS] (image_load_qt_1): Check image size.
 6740 	Use GraphicsImportGetImageDescription instead of
 6741 	GraphicsImportGetNaturalBounds.
 6742 	[MAC_OSX] (image_load_quartz2d): Check image size.
 6743 	[MAC_OS] (xpm_load_image): Likewise.
 6744 
 6745 	* macterm.c (last_mouse_glyph_frame): New var.
 6746 	(note_mouse_movement): Say mouse moved if current frame differs
 6747 	from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
 6748 	(XTmouse_position): Set last_mouse_glyph_frame.
 6749 	(XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
 6750 	(mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
 6751 	Use EndianU16_BtoN.
 6752 	(mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
 6753 	(x_per_char_metric, XLoadQueryFont)
 6754 	[MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
 6755 	glyph bounds.
 6756 	(mac_to_x_fontname, mac_do_list_fonts)
 6757 	(mac_initialize_display_info): Change screen resolutions to 72dpi.
 6758 
 6759 2005-10-25  Masatake YAMATO  <jet@gyve.org>
 6760 
 6761 	* minibuf.c (Fdisplay_completion_list): Small doc fix.
 6762 
 6763 2005-10-24  Kim F. Storm  <storm@cua.dk>
 6764 
 6765 	* xterm.c: Undo 2005-10-23 change.
 6766 	(last_mouse_glyph_frame): New var.
 6767 	(note_mouse_movement): Say mouse moved if current frame differs
 6768 	from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
 6769 	(XTmouse_position): Set last_mouse_glyph_frame.
 6770 	(handle_one_xevent): Clear last_mouse_glyph_frame [instead of
 6771 	last_mouse_glyph] on mouse up/down event.
 6772 
 6773 	* editfns.c (Fcompare_buffer_substrings): Fix last change.
 6774 
 6775 2005-10-23  Stefan Monnier  <monnier@iro.umontreal.ca>
 6776 
 6777 	* editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
 6778 
 6779 2005-10-23  Jan Djärv  <jan.h.d@swipnet.se>
 6780 
 6781 	* xterm.c (note_mouse_movement): Always call note_mouse_highlight
 6782 	so tool tips don't interfere with press on tool bar button.
 6783 
 6784 2005-10-23  Richard M. Stallman  <rms@gnu.org>
 6785 
 6786 	* casetab.c (Fset_case_table): Doc fix.
 6787 
 6788 	* lread.c (build_load_history): Replace STREAM arg with ENTIRE.
 6789 	(readevalloop): Compute ENTIRE properly.
 6790 	(syms_of_lread) <load-history>: Doc fix.
 6791 
 6792 2005-10-21  Richard M. Stallman  <rms@gnu.org>
 6793 
 6794 	* lread.c (Fload): Simplify gcpro structure.
 6795 	Gcpro FOUND as well as FILE, but not EFOUND.
 6796 	Unless preloading, record FOUND instead of FILE in Vload_history.
 6797 	Rename repeat local FILE to MSG_FILE.
 6798 	(syms_of_lread) <load-history>: Doc fix.
 6799 
 6800 2005-10-21  Kenichi Handa  <handa@m17n.org>
 6801 
 6802 	* search.c (boyer_moore): Add parens to fix and/or precedence bug.
 6803 
 6804 2005-10-20  Kim F. Storm  <storm@cua.dk>
 6805 
 6806 	* buffer.c (clone_per_buffer_values): Remove unused var tem.
 6807 	(init_buffer): Remove unused vars dotstat, pwdstat.
 6808 
 6809 	* ccl.c (check_ccl_update): Remove unused var vp.
 6810 
 6811 	* fileio.c (auto_save_error): Call SAFE_FREE.
 6812 
 6813 	* fns.c (Fchar_table_range): Remove unused var i.
 6814 
 6815 	* minibuf.c (display_completion_list_1): New wrapper function
 6816 	for Fdisplay_completion_list.
 6817 	(Fminibuffer_completion_help): Use it.
 6818 
 6819 	* term.c (encode_terminal_code): Remove unused var src_start.
 6820 
 6821 	* window.c (Fwindow_tree): Remove unused var alist.
 6822 
 6823 	* xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
 6824 
 6825 2005-10-20  Aubrey Jaffer  <agj@alum.mit.edu>  (tiny change)
 6826 
 6827 	* unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
 6828 
 6829 2005-10-20  Olli Savia  <ops@iki.fi>  (tiny change)
 6830 
 6831 	* syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
 6832 
 6833 2005-10-20  Andreas Schwab  <schwab@suse.de>
 6834 
 6835 	* minibuf.c (Fdisplay_completion_list): Doc fix.
 6836 
 6837 2005-10-19  Kim F. Storm  <storm@cua.dk>
 6838 
 6839 	* image.c (check_image_size): Handle integer Vmax_image_size value
 6840 	directly as max pixel value.  Use default frame size for null frame.
 6841 	(syms_of_image) <max-image-size>: Describe integer value.
 6842 
 6843 2005-10-19  Romain Francoise  <romain@orebokech.com>
 6844 
 6845 	* emacs.c (main): Update copyright year.
 6846 
 6847 2005-10-18  Chong Yidong  <cyd@stupidchicken.com>
 6848 
 6849 	* image.c (Vmax_image_size): New variable.
 6850 	(check_image_size): New function.
 6851 	(xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
 6852 	(gif_load, gs_load): Use it.
 6853 	(lookup_image): Try loading again if previous load failed.
 6854 	(xbm_read_bitmap_data): Add a new argument, a pointer to the frame
 6855 	to display in, NULL if none.
 6856 	(xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
 6857 	argument.
 6858 
 6859 2005-10-18  Richard M. Stallman  <rms@gnu.org>
 6860 
 6861 	* search.c (Fstring_match): Doc fix.
 6862 
 6863 2005-10-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 6864 
 6865 	* macterm.c (note_mouse_movement): Use PtInRect.
 6866 	(XTread_socket): Also ignore mouse motion just before a button
 6867 	release event.  Don't process button release event when mouse is
 6868 	not grabbed.
 6869 
 6870 2005-10-16  Masatake YAMATO  <jet@gyve.org>
 6871 
 6872 	* minibuf.c (Fdisplay_completion_list): Add new optional
 6873 	argument COMMON_SUBSTRING.  Bind `completion-common-substring'
 6874 	to the optional argument during running `completion-setup-hook'.
 6875 
 6876 2005-10-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 6877 
 6878 	* mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
 6879 	Allow nil as argument.
 6880 	[TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
 6881 	for encoding arguments as UTF-16 in native byte order, no BOM.
 6882 
 6883 	* macfns.c (Fx_create_frame): Add debugging code.
 6884 	(Fx_show_tip): Set frame pixel width and height.
 6885 
 6886 	* macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
 6887 	(FRAME_NORMAL_GC): New macro.
 6888 	(mac_draw_line, mac_clear_area, mac_clear_window)
 6889 	(mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
 6890 	(mac_draw_image_string, mac_draw_image_string_16): Rename from
 6891 	XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
 6892 	XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
 6893 	All uses changed.
 6894 	(mac_draw_line, mac_erase_rectangle, mac_clear_area)
 6895 	(mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
 6896 	(mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
 6897 	(mac_draw_string_16, mac_draw_image_string)
 6898 	(mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
 6899 	(mac_scroll_area): Drawing functions now take frame as destination.
 6900 	All uses changed.
 6901 	(mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
 6902 	(x_draw_fringe_bitmap): Set clipping area in face->gc.
 6903 
 6904 	* macterm.h (mac_clear_area): Add extern.
 6905 
 6906 2005-10-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 6907 
 6908 	* macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
 6909 	changes for xterm.c.
 6910 
 6911 	* w32term.c (note_mouse_movement, w32_read_socket): Likewise.
 6912 
 6913 2005-10-14  Kenichi Handa  <handa@m17n.org>
 6914 
 6915 	* search.c (search_buffer): Give up BM search on case-fold-search
 6916 	if one of a target character has a case-equivalence of different
 6917 	charset even if that target character is an ASCII.
 6918 
 6919 	* casefiddle.c (casify_object): Fix for the case that case
 6920 	conversion change the byte length.
 6921 
 6922 2005-10-14  Kim F. Storm  <storm@cua.dk>
 6923 
 6924 	* xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
 6925 	(handle_one_xevent): Only clear help_echo_string; restore it if
 6926 	note_mouse_movement didn't record any mouse movement.
 6927 
 6928 	* xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
 6929 	(remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
 6930 
 6931 	* keyboard.c (make_lispy_position): Adjust wx for left margin if
 6932 	ON_TEXT.
 6933 	(Fposn_at_x_y): Fix calculation of x coordinate.
 6934 	(Fposn_at_point): Return nil if point is hscrolled out of view.
 6935 
 6936 2005-10-13  Andreas Schwab  <schwab@suse.de>
 6937 
 6938 	* sysdep.c (request_sigio, unrequest_sigio): Do nothing in
 6939 	non-interactive mode.
 6940 
 6941 2005-10-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 6942 
 6943 	* xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
 6944 
 6945 2005-10-12  Kim F. Storm  <storm@cua.dk>
 6946 
 6947 	* xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
 6948 
 6949 2005-10-12  Romain Francoise  <romain@orebokech.com>
 6950 
 6951 	* buffer.c (init_buffer): Rename `rc' to `len' for clarity.
 6952 
 6953 2005-10-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 6954 
 6955 	* xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
 6956 	get end of text rows.  Obtain header-line/mode-line rows directly.
 6957 
 6958 	* xterm.c, w32term.c, macterm.c (note_mouse_movement):
 6959 	Restore help_echo_string if mouse is moved inside last_mouse_glyph.
 6960 
 6961 2005-10-12  Kim F. Storm  <storm@cua.dk>
 6962 
 6963 	* xdisp.c (remember_mouse_glyph): New generic version based on
 6964 	glyph_rect and remember_mouse_glyph from xterm.c enhanced to
 6965 	properly handle all different window areas.
 6966 
 6967 	* dispextern.h (remember_mouse_glyph): Add prototype.
 6968 
 6969 	* xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
 6970 	(note_mouse_movement, XTmouse_position): Use generic
 6971 	remember_mouse_glyph, add last_mouse_glyph arg.
 6972 
 6973 	* w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
 6974 	(glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
 6975 	(note_mouse_movement, w32_mouse_position): Use generic
 6976 	remember_mouse_glyph, add last_mouse_glyph arg.
 6977 
 6978 	* macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
 6979 	(glyph_rect, remember_mouse_glyph): Remove mac specific versions.
 6980 	(XTmouse_position): Adapt to use generic remember_mouse_glyph
 6981 	instead of pixel_to_glyph_coords.
 6982 
 6983 	* window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
 6984 	Fix x position for ON_TEXT when left margin width > 0.
 6985 
 6986 2005-10-11  Kim F. Storm  <storm@cua.dk>
 6987 
 6988 	* window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
 6989 
 6990 	* keyboard.c (make_lispy_position): Fix buffer calculations for
 6991 	mouse click or movement in right fringe and the margins.
 6992 
 6993 2005-10-11  Juanma Barranquero  <lekktu@gmail.com>
 6994 
 6995 	* image.c (fn_jpeg_stdio_src): Don't define it.
 6996 	(init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
 6997 	(our_common_init_source): Rename from `our_init_source'.
 6998 	(our_common_term_source): Rename from `our_term_source'.
 6999 	(our_memory_fill_input_buffer): Rename from
 7000 	`our_fill_input_buffer'.
 7001 	(our_memory_skip_input_data): Rename from `our_skip_input_data'.
 7002 	(jpeg_memory_src): Use the new names.
 7003 	(struct jpeg_stdio_mgr): New struct.
 7004 	(JPEG_STDIO_BUFFER_SIZE): New constant.
 7005 	(our_stdio_fill_input_buffer, our_stdio_skip_input_data)
 7006 	(jpeg_file_src): New functions.
 7007 	(jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
 7008 
 7009 2005-10-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 7010 
 7011 	* macterm.c (PER_CHAR_METRIC): Remove unused macro.
 7012 	(fm_font_family_alist): New variable.
 7013 	(syms_of_macterm): Initialize and staticpro it.
 7014 	(decode_mac_font_name): Replace '-' in family name with '_' if it
 7015 	occurs just once.  Lower family name.
 7016 	(parse_x_font_name): Rename from x_font_name_to_mac_font_name.
 7017 	All uses changed.  Remove argument MF and code conversion for it.
 7018 	Add argument SIZE.  Rename argument MF_DECODED to FAMILY, and CS
 7019 	to CHARSET.  Parse font size.  Lower family name.  Return integer
 7020 	value for status of parsing.
 7021 	(init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
 7022 	Don't use Fdowncase because family name is already lowered by
 7023 	decode_mac_font_name.
 7024 	(init_font_name_table): Always call decode_mac_font_name.
 7025 	Add pair of family name and its reference to fm_font_family_alist.
 7026 	(mac_clear_font_name_table): Clear fm_font_family_alist.
 7027 	(XLoadQueryFont): Move font size parsing part to parse_x_font_name.
 7028 	Lookup fm_font_family_alist to get font family reference.
 7029 	(XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
 7030 	name is already lowered by parse_x_font_name.
 7031 
 7032 2005-10-11  Kim F. Storm  <storm@cua.dk>
 7033 
 7034 	* xterm.c (glyph_rect): Return 0 if position is outside text area.
 7035 
 7036 	* keyboard.c (make_lispy_position): Fix buffer position calculation for
 7037 	mouse click or movement in fringe.
 7038 
 7039 2005-10-10  Jason Rumney  <jasonr@gnu.org>
 7040 
 7041 	* xterm.c (remember_mouse_glyph): New function.
 7042 	(note_mouse_movement): Use it to remember the current glyph if changed.
 7043 	(XTmouse_position): Fix calculation of fake glyph under mouse.
 7044 	Move code to calculate glyph under mouse into remember_mouse_glyph.
 7045 
 7046 2005-10-10  Jan Djärv  <jan.h.d@swipnet.se>
 7047 
 7048 	* emacs.c (USAGE3, standard_args): -nb => -nbi.
 7049 
 7050 2005-10-10  Juanma Barranquero  <lekktu@gmail.com>
 7051 
 7052 	* frame.c (Fredirect_frame_focus): Fix typos in docstring.
 7053 	(next_frame, prev_frame, set_term_frame_name): Make static.
 7054 
 7055 	* window.c (Fwindow_tree): Fix spelling.
 7056 
 7057 2005-10-09  Romain Francoise  <romain@orebokech.com>
 7058 
 7059 	* window.c (Fwindow_end): Don't try to redisplay if non-interactive.
 7060 
 7061 2005-10-09  Jan Djärv  <jan.h.d@swipnet.se>
 7062 
 7063 	* emacs.c (standard_args): Remove options -i, -itype, --icon-type.
 7064 	Add options -nb, --no-bitmap-icon.
 7065 
 7066 	* xfns.c (Fx_create_frame): Make bitmapIcon have default on.
 7067 
 7068 2005-10-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 7069 
 7070 	* macgui.h (MAX_CLIP_RECTS): New define.
 7071 	(struct _XGC): New member clip_region.
 7072 	(struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
 7073 	clip_rects.
 7074 
 7075 	* macterm.c (GC_CLIP_REGION): New macro.
 7076 	(saved_port_clip_region): New variable.
 7077 	(mac_begin_clip, mac_end_clip): New functions.
 7078 	(XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
 7079 	(mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
 7080 	(mac_copy_area_with_mask, mac_scroll_area): Use them.
 7081 	(mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
 7082 	[USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
 7083 	[MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
 7084 	(mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
 7085 	rectangles stored in gc.
 7086 	(XFreeGC): Dispose of clipping region.
 7087 	(mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
 7088 	(x_draw_fringe_bitmap, x_set_glyph_string_clipping)
 7089 	(x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
 7090 	(x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
 7091 	(x_draw_bar_cursor): Use them.
 7092 	(x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
 7093 	get multiple clipping rectangles.
 7094 
 7095 	* macterm.h (mac_term_init): Add types to extern.
 7096 	(struct mac_output): Remove members mWP and pending_menu_activation.
 7097 	Put members scroll_bar_foreground_pixel and
 7098 	scroll_bar_background_pixel in #if 0.
 7099 	(FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
 7100 
 7101 	* xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
 7102 	Add debugging code.
 7103 
 7104 2005-10-08  Kim F. Storm  <storm@cua.dk>
 7105 
 7106 	* window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
 7107 
 7108 2005-10-07  Kim F. Storm  <storm@cua.dk>
 7109 
 7110 	* dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
 7111 	[!HAVE_WINDOW_SYSTEM]: Don't declare them...
 7112 	(update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
 7113 
 7114 2005-10-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 7115 
 7116 	* dispextern.h (struct glyph_string): Rename member for_overlaps_p
 7117 	to for_overlaps.  Now occupy 3 bits.
 7118 	(OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
 7119 	(OVERLAPS_ERASED_CURSOR): New defines.
 7120 	(struct redisplay_interface): Add new OVERLAPS arg to member
 7121 	fix_overlapping_area.
 7122 	(x_fix_overlapping_area): Add new OVERLAPS arg.
 7123 	(get_glyph_string_clip_rects): Add extern.
 7124 
 7125 	* dispnew.c (redraw_overlapping_rows):
 7126 	Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
 7127 
 7128 	* xdisp.c: Rename member for_overlaps_p in struct glyph_string to
 7129 	for_overlaps.
 7130 	(get_glyph_string_clip_rects): New function created from
 7131 	get_glyph_string_clip_rect.  Set clipping rectangles according to the
 7132 	value of for_overlaps.  Enable to store multiple clipping rectangles.
 7133 	(get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
 7134 	(fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
 7135 	Rename argument OVERLAPS_P to OVERLAPS.  All uses in macros changed.
 7136 	(x_fix_overlapping_area): Add OVERLAPS arg.  Pass it to draw_glyphs.
 7137 	(draw_phys_cursor_glyph): Set width of erased cursor to use it for
 7138 	calculating clipping rectangles later.  Call x_fix_overlapping_area
 7139 	with new OVERLAPS arg to draw only erased cursor area.
 7140 	(expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
 7141 	to draw overlaps in both preceding and succeeding rows.
 7142 
 7143 	* xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
 7144 	struct glyph_string to for_overlaps.
 7145 
 7146 2005-10-04  Richard M. Stallman  <rms@gnu.org>
 7147 
 7148 	* alloc.c (refill_memory_reserve): Conditionalize the body,
 7149 	not the function's existence.
 7150 
 7151 2005-10-04  Kim F. Storm  <storm@cua.dk>
 7152 
 7153 	* window.c (window_split_tree): New function.
 7154 	(Fwindow_split_tree): New defun.
 7155 	(syms_of_window): Defsubr it.
 7156 
 7157 2005-10-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 7158 
 7159 	* macterm.c (mac_invert_rectangle): New function.
 7160 	(XTflash): Use it.
 7161 
 7162 2005-10-04  Stefan Monnier  <monnier@iro.umontreal.ca>
 7163 
 7164 	* regex.h (re_char): Don't expose it in the interface.
 7165 	(re_set_whitespace_regexp): Adjust the arg's type to not use it.
 7166 
 7167 	* regex.c (re_char): Move it back here.
 7168 	(re_set_whitespace_regexp): Change the arg's type to not use it.
 7169 
 7170 	* keyboard.c (make_lispy_event): If point has moved between down and up
 7171 	event, make it a drag, not a click, to mirror what
 7172 	mouse-drag-region expects.
 7173 
 7174 2005-10-02  Dan Nicolaescu  <dann@ics.uci.edu>
 7175 
 7176 	* lisp.h (fatal): Undo previous change.
 7177 	* term.c (fatal): Undo previous change.
 7178 
 7179 2005-10-01  Richard M. Stallman  <rms@gnu.org>
 7180 
 7181 	* xfaces.c (face_color_gray_p): Colors close to black count as gray.
 7182 
 7183 2005-10-01  Kim F. Storm  <storm@cua.dk>
 7184 
 7185 	* xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
 7186 
 7187 2005-10-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 7188 
 7189 	* keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
 7190 
 7191 	* macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
 7192 	(x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
 7193 	(Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
 7194 	Try ATSUI-compatible 12pt Monaco font first.
 7195 
 7196 	* macgui.h (struct _XCharStruct): New member valid_p.
 7197 	(STORE_XCHARSTRUCT): Set valid_p.
 7198 	(struct MacFontStruct) [USE_ATSUI]: New member mac_style.
 7199 
 7200 	* macterm.c (mac_draw_string_common, x_per_char_metric)
 7201 	(mac_compute_glyph_string_overhangs, init_font_name_table)
 7202 	(XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
 7203 	(atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
 7204 	(x_draw_glyph_string_background)
 7205 	(x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
 7206 	XDrawImageString.  Always draw background and foreground separately.
 7207 	(x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
 7208 	functions for one-byte chars when using ATSUI-compatible fonts.
 7209 	(atsu_font_id_hash) [USE_ATSUI]: New variable.
 7210 	(syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
 7211 	(XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
 7212 	max_char_or_byte2 more in detail.
 7213 	(quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
 7214 
 7215 2005-09-30  Dan Nicolaescu  <dann@ics.uci.edu>
 7216 
 7217 	* image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
 7218 	* xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
 7219 
 7220 	* unexelf.c (fatal): Fix prototype.
 7221 
 7222 	* term.c (fatal): Implement using varargs.
 7223 
 7224 	* regex.c (re_char): Move typedef ...
 7225 	* regex.h (re_char): ... here.
 7226 	(re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
 7227 
 7228 	* emacs.c (malloc_set_state): Fix return type.
 7229 	(endif): Fix type.
 7230 
 7231 	* lisp.h (fatal): Add argument types.
 7232 
 7233 	* dispextern.h (fatal): Delete prototype.
 7234 
 7235 	* systime.h (make_time): Prototype moved from ...
 7236 	* editfns.c (make_time): ... here.
 7237 
 7238 	* editfns.c: Move systime.h include after lisp.h.
 7239 	* dired.c:
 7240 	* xsmfns.c:
 7241 	* process.c: Likewise.
 7242 
 7243 	* alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
 7244 	Add parameter types.
 7245 	(__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
 7246 	(emacs_blocked_free): Change definition to match __free_hook.
 7247 	(emacs_blocked_malloc): Change definition to match __malloc_hook.
 7248 	(emacs_blocked_realloc): Change definition to match __realloc_hook.
 7249 
 7250 2005-09-30  Romain Francoise  <romain@orebokech.com>
 7251 
 7252 	* minibuf.c (Fread_buffer): Follow convention for reading from the
 7253 	minibuffer with a default value.  Doc fix.
 7254 
 7255 2005-09-29  Juri Linkov  <juri@jurta.org>
 7256 
 7257 	* editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
 7258 	Rename argument name `string' to `format-string'.
 7259 	(Fformat): Doc fix.
 7260 
 7261 2005-09-28  Kim F. Storm  <storm@cua.dk>
 7262 
 7263 	* image.c (gif_load): Fix size of allocated image buffer
 7264 	for images where a sub-image may be larger than the image's
 7265 	total height/width specifications.
 7266 
 7267 2005-09-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 7268 
 7269 	* macgui.h (struct _XCharStruct): Each member now takes short value.
 7270 
 7271 2005-09-27  Dan Nicolaescu  <dann@ics.uci.edu>
 7272 
 7273 	* xfaces.c (lookup_derived_face): Add parameter type.
 7274 
 7275 	* xdisp.c (cursor_row_fully_visible_p): Add parameter type.
 7276 
 7277 	* marker.c (verify_bytepos): Add parameter type.
 7278 
 7279 	* process.c (get_operating_system_release): Move prototype ...
 7280 
 7281 	* systime.h (get_operating_system_release): ... here.
 7282 
 7283 	* xterm.c (handle_one_xevent): Refer to union field to match the
 7284 	type required by the function definition.
 7285 	(set_vertical_scroll_bar): Move prototype ...
 7286 
 7287 	* xterm.h: ... here.
 7288 
 7289 	* fns.c (internal_equal, seed_random): Fix prototypes.
 7290 	(internal_equal): Add missing parameter.
 7291 
 7292 2005-09-25  Richard M. Stallman  <rms@gnu.org>
 7293 
 7294 	* keyboard.c (update_menu_bindings): Variable deleted.
 7295 	(syms_of_keyboard): Don't defvar it.
 7296 	(parse_menu_item): Don't test it.
 7297 
 7298 2005-09-23  Richard M. Stallman  <rms@gnu.org>
 7299 
 7300 	* editfns.c (Fformat): Explicitly test for end of format string
 7301 	and don't use `index'.
 7302 
 7303 2005-09-23  Dan Nicolaescu  <dann@ics.uci.edu>
 7304 
 7305 	* s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
 7306 	Define BROKEN_GET_CURRENT_DIR_NAME.
 7307 
 7308 	* sysdep.c (get_current_dir_name): Also define if
 7309 	BROKEN_GET_CURRENT_DIR_NAME.
 7310 
 7311 	* m/ibmrs6000.h: Test for USG5, not USG5_4.
 7312 
 7313 2005-09-22  Kim F. Storm  <storm@cua.dk>
 7314 
 7315 	* xdisp.c (message_dolog): Add warning about GC and Lisp strings.
 7316 	(message2): Fix commentary.  Ok to use alloca'ed memory.
 7317 	Still not ok to use Lisp string data (because of GC).
 7318 	(set_message): Add comment why GC cannot happen.
 7319 
 7320 2005-09-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 7321 
 7322 	* macterm.c (xlfdpat_block_match_1): Fix assertion.
 7323 	(init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
 7324 	variants for a scalable font multiple times.
 7325 
 7326 2005-09-21  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 7327 
 7328 	* process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
 7329 	Setup slave tty options before forking.
 7330 
 7331 2005-09-20  Jan Djärv  <jan.h.d@swipnet.se>
 7332 
 7333 	* gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
 7334 	positions have been set for the frame (as is done for frames in
 7335 	special-display-buffer-names).
 7336 
 7337 2005-09-19  Kim F. Storm  <storm@cua.dk>
 7338 
 7339 	* editfns.c (Fformat): Don't scan past end of format string that
 7340 	ends in %.  Reported by Johan Bockgård.
 7341 
 7342 2005-09-18  Andreas Schwab  <schwab@suse.de>
 7343 
 7344 	* window.h (struct window): Remove height_fixed_p, no longer set.
 7345 
 7346 	* window.c (make_window): Don't initialize height_fixed_p.
 7347 	(window_fixed_size_p): Don't use it.
 7348 
 7349 2005-09-18  John Paul Wallington  <jpw@pobox.com>
 7350 
 7351 	* data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
 7352 
 7353 2005-09-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 7354 
 7355 	* Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
 7356 
 7357 	* macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
 7358 	New variables.
 7359 	[TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
 7360 	file selection.
 7361 
 7362 	* sysdep.c [MAC_OS8]: Don't include stdlib.h.  Include sys/param.h.
 7363 
 7364 2005-09-17  Eli Zaretskii  <eliz@gnu.org>
 7365 
 7366 	* Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
 7367 	(obj): Use XMENU_OBJ, not a literal xmenu.o.
 7368 
 7369 2005-09-16  Romain Francoise  <romain@orebokech.com>
 7370 
 7371 	* fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
 7372 
 7373 2005-09-15  Richard M. Stallman  <rms@gnu.org>
 7374 
 7375 	* xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
 7376 	(display_mode_element): Instead of `lisp_string' and `this',
 7377 	record `offset' and increment that.
 7378 	`last_offset' replaces `last'.
 7379 
 7380 	* Makefile.in (XMENU_OBJ): Variable deleted.
 7381 	(obj): Use xmenu.o unconditionally.
 7382 	(SOME_MACHINE_OBJECTS): Delete xmenu.o.
 7383 
 7384 	* emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
 7385 
 7386 2005-09-15  Kim F. Storm  <storm@cua.dk>
 7387 
 7388 	* xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
 7389 	(reseat_at_next_visible_line_start): Likewise (in xassert).
 7390 
 7391 2005-09-14  Romain Francoise  <romain@orebokech.com>
 7392 
 7393 	* fileio.c (write_region_inhibit_fsync): New variable.
 7394 	(Fwrite_region): Use it to skip call to fsync.
 7395 	(syms_of_fileio): Initialize it.
 7396 
 7397 2005-09-14  Kenichi Handa  <handa@m17n.org>
 7398 
 7399 	* coding.c (code_convert_region_unwind): Argument format changed.
 7400 	(run_pre_post_conversion_on_str): If pre-write-conversion function
 7401 	changed the current buffer, delete the new buffer.
 7402 	(run_pre_write_conversin_on_c_str): Likewise.
 7403 
 7404 	* fileio.c (Fexpand_file_name): Check multibyteness of
 7405 	default_directory.
 7406 
 7407 2005-09-13  Kenichi Handa  <handa@m17n.org>
 7408 
 7409 	* composite.c (compose_chars_in_text): Delete it.
 7410 
 7411 	* composite.h (compose_chars_in_text): Delete extern.
 7412 
 7413 2005-09-13  Kim F. Storm  <storm@cua.dk>
 7414 
 7415 	* print.c (print_error_message): Fix last change.
 7416 
 7417 2005-09-12  Kim F. Storm  <storm@cua.dk>
 7418 
 7419 	* composite.c (compose_chars_in_text): Fix setup of `pend'.
 7420 	Unconditionally reload `ptr' and `pend' after eval.
 7421 
 7422 	* xdisp.c (message3): Pass copy of lisp string to message_dolog.
 7423 
 7424 	* print.c (print_error_message): Pass copy of caller name to
 7425 	message_dolog.
 7426 
 7427 	* fileio.c (auto_save_error): Pass copy of lisp string to message2.
 7428 
 7429 2005-09-12  Kenichi Handa  <handa@m17n.org>
 7430 
 7431 	* xdisp.c (display_mode_element): Be sure to make variables THIS
 7432 	and LISP_STRING point into a string data of ELT.
 7433 
 7434 2005-09-12  Kim F. Storm  <storm@cua.dk>
 7435 
 7436 	* editfns.c (Ftranslate_region_internal): Reload `tt' after
 7437 	signal_after_change that may have GC'ed.
 7438 	(Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
 7439 
 7440 	* keymap.c (Fdescribe_buffer_bindings): Reload `translate'
 7441 	after insert while runs signal_after_change.
 7442 
 7443 	* minibuf.c (Fminibuffer_complete_word): Move `completion_string'
 7444 	declaration to where it is used.
 7445 
 7446 	* w32.c (check_windows_init_file): Fix allocation of error buffer.
 7447 
 7448 	* xfns.c (x_encode_text): Declare static.  Add FREEP arg.
 7449 	(x_set_name_internal): Call x_encode_text with new FREEP arg to
 7450 	know if xfree is needed instead of guessing.
 7451 
 7452 	* xterm.h (x_encode_text): Remove prototype.
 7453 
 7454 2005-09-11  Chris Prince  <cprince@gmail.com>  (tiny change)
 7455 
 7456 	* w32term.c (x_bitmap_icon): Load small icons too.
 7457 
 7458 2005-09-10  Romain Francoise  <romain@orebokech.com>
 7459 
 7460 	* buffer.c (init_buffer): Grow buffer to add directory separator
 7461 	and terminal zero.  Fix typos.
 7462 
 7463 2005-09-10  Eli Zaretskii  <eliz@gnu.org>
 7464 
 7465 	* buffer.c (init_buffer): Fix error message for failed call to
 7466 	get_current_dir_name.
 7467 	(get_current_dir_name): Remove prototype.
 7468 
 7469 	* xsmfns.c (get_current_dir_name): Remove prototype.
 7470 
 7471 	* lisp.h (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
 7472 	Add prototype.
 7473 
 7474 	* sysdep.c [WINDOWSNT]: Add prototype for getwd.
 7475 	Don't #undef NULL after including blockinput.h.
 7476 
 7477 	* config.in: Regenerated.
 7478 
 7479 2005-09-10  Giuseppe Scrivano  <gscrivano@gmail.com>
 7480 
 7481 	Remove the MAXPATHLEN limitations:
 7482 
 7483 	* sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
 7484 	New function.
 7485 
 7486 	* buffer.c (init_buffer): Use it.
 7487 
 7488 	* xsmfns.c (smc_save_yourself_CB): Ditto.
 7489 
 7490 2005-09-09  Kim F. Storm  <storm@cua.dk>
 7491 
 7492 	* doc.c (Fsubstitute_command_keys): Lookup key binding for
 7493 	commands that are remapped from some other command.
 7494 
 7495 	* xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
 7496 	flag in disabled rows below the window.
 7497 
 7498 	* frame.h (struct frame): New member updated_p.
 7499 
 7500 	* xdisp.c (redisplay_internal): Mark updated frames in new updated_p
 7501 	member.  Remove local `updated' array and associated variables.
 7502 
 7503 2005-09-07  Kim F. Storm  <storm@cua.dk>
 7504 
 7505 	* xdisp.c (handle_display_prop): Respect overlay window property.
 7506 
 7507 	* xdisp.c (try_window): Remove superfluous cursor_height calculation.
 7508 	Fixes crash reported by YAMAMOTO Mitsuharu.
 7509 
 7510 2005-09-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 7511 
 7512 	* macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
 7513 	(xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
 7514 	(xlfdpat_block_match_1, xlfdpat_match): New functions.
 7515 	(xlfdpat_block_match): New macro.
 7516 	(mac_to_x_fontname): Don't use tolower for non-ASCII characters.
 7517 	(x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
 7518 	(add_font_name_table_entry): Increase font_name_table_size more
 7519 	rapidly.
 7520 	(mac_c_string_match): Remove function.
 7521 	(mac_do_list_fonts): Use XLFD pattern match instead of regular
 7522 	expression match.
 7523 
 7524 	* xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
 7525 
 7526 2005-09-03  Richard M. Stallman  <rms@gnu.org>
 7527 
 7528 	* xdisp.c (redisplay_internal): Make UPDATED as long as needed.
 7529 	(move_it_in_display_line_to): Stop after last char on line even
 7530 	on a windowing terminal, if that's the specified stop position.
 7531 
 7532 	* fns.c (Fsort): Doc fix.
 7533 
 7534 	* editfns.c (Fpropertize): Don't insist that properties be symbols.
 7535 
 7536 2005-09-02  Stefan Monnier  <monnier@iro.umontreal.ca>
 7537 
 7538 	* dired.c (directory_files_internal_unwind, directory_files_internal)
 7539 	(file_name_completion): Use a Save_Value object rather than a cons of
 7540 	two 16bit ints to store the DIR*.
 7541 	(directory_files_internal, file_name_completion): Handle both EINTR and
 7542 	EAGAIN consistently after `readdir'.
 7543 
 7544 2005-09-01  Stefan Monnier  <monnier@iro.umontreal.ca>
 7545 
 7546 	* intervals.c (update_interval): Add position info in error.
 7547 
 7548 	* dispnew.c (window_to_frame_hpos, update_window):
 7549 	Avoid gcc warning about unused variable `f'.
 7550 
 7551 2005-08-31  Jason Rumney  <jasonr@gnu.org>
 7552 
 7553 	* w32menu.c (add_menu_item): If unicode_append_menu returns an
 7554 	error, revert to using AppendMenu.
 7555 
 7556 2005-08-31  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 7557 
 7558 	* image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
 7559 	All uses changed.
 7560 	[MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
 7561 	cases.
 7562 	(x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
 7563 	[MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
 7564 	Use posix_pathname_to_fsspec.
 7565 	[MAC_OS] (xpm_load_image): Fill in background_transparent field
 7566 	while we have mask.
 7567 
 7568 	* macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
 7569 
 7570 	* macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
 7571 
 7572 2005-08-29  Stefan Monnier  <monnier@iro.umontreal.ca>
 7573 
 7574 	* syntax.c (update_syntax_table): Properly reproduce the special +1
 7575 	setting of e_property at the end of the buffer when bumping into the
 7576 	INTERVALS_AT_ONCE limit.
 7577 
 7578 2005-08-27  Eli Zaretskii  <eliz@gnu.org>
 7579 
 7580 	* emacs.c (USAGE1): Fix the description of the -Q option.
 7581 
 7582 2005-08-26  Stefan Monnier  <monnier@iro.umontreal.ca>
 7583 
 7584 	* xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
 7585 
 7586 2005-08-26  Kim F. Storm  <storm@cua.dk>
 7587 
 7588 	* xdisp.c (resize_mini_window): Fix 2005-08-20 change.
 7589 	Don't move PT to new window start.
 7590 
 7591 2005-08-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 7592 
 7593 	* keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
 7594 	ICONIFY/DEICONIFY_EVENT.
 7595 
 7596 	* macterm.c (mac_copy_area, mac_copy_area_with_mask):
 7597 	Restore background color.
 7598 	(mac_handle_visibility_change): New function.
 7599 	(x_make_frame_invisible, x_iconify_frame)
 7600 	(XTread_socket) [!USE_CARBON_EVENTS]: Use it.
 7601 	[USE_CARBON_EVENTS] (mac_handle_window_event)
 7602 	(install_window_handler): Handle visibility change events.
 7603 	(x_make_frame_visible): Don't reposition window if it is iconified
 7604 	or asked for visible before.  Select and uncollapse window when it
 7605 	is made visible.
 7606 	(x_make_frame_invisible): Don't reset x_highlight_frame.
 7607 	(x_iconify_frame): Likewise.  Make invisible frame visible before
 7608 	it is iconified.
 7609 	(read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
 7610 	(do_window_update): Don't change visibility of invisible frame.
 7611 
 7612 2005-08-22  Juri Linkov  <juri@jurta.org>
 7613 
 7614 	* term.c (turn_on_face): Check for TS_set_foreground and
 7615 	TS_set_background depending on standout_mode.  Simplify.
 7616 
 7617 2005-08-21  Kim F. Storm  <storm@cua.dk>
 7618 
 7619 	* fringe.c (update_window_fringes): Only put TOP and BOTTOM
 7620 	bitmaps on fully visible rows.
 7621 
 7622 	* fringe.c (update_window_fringes): Replace FORCE_P arg with
 7623 	KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
 7624 	and return 0.
 7625 
 7626 	* xdisp.c (redisplay_window): Call update_window_fringes with
 7627 	KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
 7628 
 7629 2005-08-20  Richard M. Stallman  <rms@gnu.org>
 7630 
 7631 	* xdisp.c (display_echo_area_1): Get display start pos from w->start.
 7632 	(resize_mini_window): Set w->start, and PT, so as to display the tail
 7633 	end of the buffer, if it doesn't all fit.
 7634 
 7635 2005-08-18  Kim F. Storm  <storm@cua.dk>
 7636 
 7637 	* xdisp.c (calc_pixel_width_or_height): Use actual display
 7638 	resolution when available instead of Vdisplay_pixels_per_inch.
 7639 
 7640 2005-08-17  Kim F. Storm  <storm@cua.dk>
 7641 
 7642 	* xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
 7643 
 7644 	* dispnew.c (buffer_posn_from_coords): Check that target row is
 7645 	within matrix.
 7646 
 7647 2005-08-16  Jan Djärv  <jan.h.d@swipnet.se>
 7648 
 7649 	* xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
 7650 	xg_set_frame_icon and call it.
 7651 
 7652 	* gtkutil.c (xg_set_frame_icon): New function.
 7653 
 7654 	* gtkutil.h (xg_set_frame_icon): Declare it.
 7655 
 7656 2005-08-16  Kim F. Storm  <storm@cua.dk>
 7657 
 7658 	* dispnew.c (increment_row_positions): Skip non-enabled rows.
 7659 
 7660 	* window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
 7661 	(Fcurrent_window_configuration): Use VECSIZE macro instead.
 7662 
 7663 2005-08-15  Richard M. Stallman  <rms@gnu.org>
 7664 
 7665 	* xdisp.c (message3_nolog): Clear echo_message_buffer.
 7666 
 7667 2005-08-15  Kim F. Storm  <storm@cua.dk>
 7668 
 7669 	* lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
 7670 
 7671 	* process.c (deactivate_process, status_notify, read_process_output)
 7672 	(update_status, status_convert, decode_status, allocate_pty)
 7673 	(make_process, remove_process, list_processes_1)
 7674 	(create_process_1, unwind_request_sigio, read_process_output)
 7675 	(send_process, keyboard_bit_set): Declare static.
 7676 	(Fdelete_process): Simplify.  Pass process to status_notify, so we
 7677 	don't try to read output from it.
 7678 	(status_notify): New arg deleting_process--don't try to read
 7679 	output from that process.
 7680 
 7681 	* lisp.h (deactivate_process, status_notify, read_process_output):
 7682 	Remove prototypes.
 7683 
 7684 2005-08-14  Richard M. Stallman  <rms@gnu.org>
 7685 
 7686 	* image.c (syms_of_image): Init Qxbm, Qpbm before calling
 7687 	define_image_type.
 7688 
 7689 2005-08-13  Jan Djärv  <jan.h.d@swipnet.se>
 7690 
 7691 	* gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
 7692 	(xg_get_image_for_pixmap): Move some code to
 7693 	xg_get_pixbuf_from_pix_and_mask, and call it.
 7694 
 7695 	* gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
 7696 
 7697 	* xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
 7698 	to get an GTK icon and set it with GTK functions to avoid having GTK
 7699 	override an icon set with just X functions.
 7700 
 7701 2005-08-11  Richard M. Stallman  <rms@gnu.org>
 7702 
 7703 	* image.c (syms_of_image): Init image_types here, and call
 7704 	define_image_type.
 7705 	(init_image): Not here.
 7706 
 7707 2005-08-09  Richard M. Stallman  <rms@gnu.org>
 7708 
 7709 	* bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
 7710 
 7711 	* lisp.h (QUIT): Throw t to Vthrow_on_input.
 7712 
 7713 2005-08-09  Thien-Thi Nguyen  <ttn@gnu.org>
 7714 
 7715 	* floatfns.c (Fexpt): Use floats for negative exponent.
 7716 
 7717 2005-08-08  Jan Djärv  <jan.h.d@swipnet.se>
 7718 
 7719 	* gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
 7720 	should not be there, causing menu display errors with GTK 2.6.9.
 7721 
 7722 2005-08-07  Richard M. Stallman  <rms@gnu.org>
 7723 
 7724 	* floatfns.c (Fexpt): Undo previous change.
 7725 
 7726 	* dispnew.c (Fframe_or_buffer_changed_p): Take an arg
 7727 	so it can be used with various state vectors.
 7728 
 7729 	* emacs.c (endif): Convert -script into -scriptload.
 7730 	(standard_args): Add -scriptload.  Allow -basic-display with one dash.
 7731 
 7732 	* fns.c (syms_of_fns): Add `emacs' to features.
 7733 
 7734 	* term.c (set_terminal_modes): If no TS_termcap_modes string,
 7735 	output newlines to scroll the old screen contents off the screen.
 7736 
 7737 2005-08-06  Thien-Thi Nguyen  <ttn@gnu.org>
 7738 
 7739 	* floatfns.c (Fexpt): Use floats for negative exponent.
 7740 	Reported by D Goel.
 7741 
 7742 2005-08-02  Richard M. Stallman  <rms@gnu.org>
 7743 
 7744 	* frame.c (Fframe_char_width): Doc fix.
 7745 
 7746 2005-07-30  Juanma Barranquero  <lekktu@gmail.com>
 7747 
 7748 	* xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
 7749 	Defvar it.
 7750 
 7751 2005-07-28  Juanma Barranquero  <lekktu@gmail.com>
 7752 
 7753 	* w32fns.c (my_set_window_pos, my_show_window): Don't declare.
 7754 	(my_create_window, my_create_tip_window): Make static.
 7755 
 7756 	* w32term.c (my_show_window, my_set_window_pos, my_set_focus)
 7757 	(my_set_foreground_window, my_destroy_window): Make static.
 7758 
 7759 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
 7760 
 7761 	Merge gnulib getopt implementation into Emacs.
 7762 
 7763 	* s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
 7764 	now part of lib-src.
 7765 
 7766 2005-07-26  Stefan Monnier  <monnier@iro.umontreal.ca>
 7767 
 7768 	* eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
 7769 
 7770 2005-07-25  Jason Rumney  <jasonr@gnu.org>
 7771 
 7772 	* w32menu.c (w32_menu_display_help): Suppress tooltip when
 7773 	navigating menus with the keyboard.
 7774 
 7775 2005-07-23  Richard M. Stallman  <rms@gnu.org>
 7776 
 7777 	* insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
 7778 
 7779 	* bytecode.c (MAYBE_GC): Test gc_cons_threshold and
 7780 	gc_relative_threshold, one by one.
 7781 
 7782 	* keyboard.c (read_char): Test gc_cons_threshold.
 7783 	(syms_of_keyboard): staticpro Qecho_area_clear_hook.
 7784 
 7785 	* eval.c (Feval, Ffuncall): Test gc_cons_threshold and
 7786 	gc_relative_threshold, one by one.
 7787 
 7788 	* alloc.c (gc_cons_threshold): Not static.
 7789 	(gc_cons_combined_threshold): Var deleted.
 7790 	(gc_relative_threshold): New variable.
 7791 	(Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
 7792 	instead of gc_cons_combined_threshold.
 7793 
 7794 	* lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
 7795 	(gc_cons_combined_threshold): Declaration deleted.
 7796 
 7797 2005-07-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 7798 
 7799 	* mac.c: Don't include stdlib.h or string.h.
 7800 	(Fdo_applescript, Fmac_file_name_to_posix)
 7801 	(Fmac_file_name_to_posix): Doc fixes.
 7802 	[TARGET_API_MAC_CARBON] (Fmac_get_preference)
 7803 	(Fmac_code_convert_string): Likewise.
 7804 	[MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
 7805 	if the executable is not contained in a bundle.
 7806 
 7807 	* macfns.c: Don't include stdlib.h or string.h.  Include atimer.h.
 7808 	(gray_width, gray_height): Remove defines.
 7809 	(gray_bits, gray_bitmap_width, gray_bitmap_height)
 7810 	(gray_bitmap_bits): Remove variables.
 7811 	(lispy_function_keys): Remove extern.
 7812 	(free_frame_menubar): Add extern.
 7813 	(x_window_to_frame): Remove function.
 7814 	(unwind_create_tip_frame): Add declaration.
 7815 	(x_set_name_internal): New function.
 7816 	(x_set_name, x_set_title): Use it.
 7817 	(Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
 7818 	(Fx_display_pixel_height, Fx_display_planes)
 7819 	(Fx_display_color_cells, Fx_server_max_request_size)
 7820 	(Fx_server_vendor, Fx_server_version, Fx_display_screens)
 7821 	(Fx_display_mm_height, Fx_display_mm_width)
 7822 	(Fx_display_backing_store, Fx_display_visual_class)
 7823 	(Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
 7824 
 7825 	* macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
 7826 
 7827 	* macselect.c (Fx_own_selection_internal): Follow error conventions.
 7828 	(Fx_get_selection_internal, Fx_selection_owner_p)
 7829 	(Fx_selection_exists_p): Doc fixes.
 7830 	(syms_of_macselect) <selection-converter-alist>: Likewise.
 7831 
 7832 2005-07-21  Juanma Barranquero  <lekktu@gmail.com>
 7833 
 7834 	* buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
 7835 
 7836 	* ccl.c (Fregister_ccl_program): Fix typos in docstring.
 7837 	(Fccl_execute_on_string): Likewise; add usage info.
 7838 
 7839 	* composite.c (Fcompose_region_internal)
 7840 	(Fcompose_string_internal):
 7841 	Improve argument/docstring consistency.
 7842 
 7843 	* minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
 7844 	Fix typos in docstrings.
 7845 
 7846 	* textprop.c (Fnext_char_property_change)
 7847 	(Fprevious_char_property_change): Doc fixes.
 7848 
 7849 	* window.c (Fset_window_margins, Fset_window_fringes):
 7850 	Improve argument/docstring consistency.
 7851 
 7852 	* xfaces.c (Finternal_lisp_face_p): Doc fix.
 7853 
 7854 2005-07-21  Andreas Schwab  <schwab@suse.de>
 7855 
 7856 	* eval.c (restore_stack_limits): Return a value.
 7857 
 7858 2005-07-20  Juanma Barranquero  <lekktu@gmail.com>
 7859 
 7860 	* eval.c (Fdefvar): Doc fix.
 7861 
 7862 2005-07-20  Kim F. Storm  <storm@cua.dk>
 7863 
 7864 	* fileio.c (Fdo_auto_save, do_auto_save_unwind):
 7865 	Use make_save_value to unwind protect stream.
 7866 
 7867 	* lread.c (Fload, load_unwind):
 7868 	Use make_save_value to unwind protect stream.
 7869 
 7870 2005-07-19  Juanma Barranquero  <lekktu@gmail.com>
 7871 
 7872 	* eval.c (Fprog2, Fcalled_interactively_p)
 7873 	(syms_of_eval) <debug-on-quit>: Doc fixes.
 7874 	(syms_of_eval) <max-specpdl-size>:
 7875 	(Finteractive_p): Fix typos in docstrings.
 7876 
 7877 2005-07-19  Kim F. Storm  <storm@cua.dk>
 7878 
 7879 	* w32fns.c (Vx_hand_shape): Variable removed.
 7880 	(syms_of_w32fns): Intern and staticpro Qw32_charset_default.
 7881 
 7882 2005-07-19  Kenichi Handa  <handa@m17n.org>
 7883 
 7884 	* fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
 7885 
 7886 2005-07-18  Stefan Monnier  <monnier@iro.umontreal.ca>
 7887 
 7888 	* buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
 7889 
 7890 2005-07-18  Kim F. Storm  <storm@cua.dk>
 7891 
 7892 	* frame.h (struct frame): New member already_hscrolled_p.
 7893 
 7894 	* xdisp.c (redisplay_internal): Only try to hscroll each frame once
 7895 	to avoid redisplay looping hscrolling back and forth ad infinitum.
 7896 
 7897 2005-07-18  Juri Linkov  <juri@jurta.org>
 7898 
 7899 	* buffer.c (scroll-up-aggressively, scroll-down-aggressively):
 7900 	* keymap.c (Fminor_mode_key_binding):
 7901 	* macterm.c (mac-emulate-three-button-mouse):
 7902 	Delete duplicate duplicate words.
 7903 
 7904 2005-07-18  Ken Raeburn  <raeburn@gnu.org>
 7905 
 7906 	* minibuf.c (Ftest_completion): Fix odd syntax in test.
 7907 
 7908 2005-07-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 7909 
 7910 	* macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
 7911 
 7912 	* macgui.h (struct _XGC): New struct.
 7913 	(GC): Use it.
 7914 	(GCForeground, GCBackground, GCFont): Use X11 mask values.
 7915 	(XCreateGC, XParseGeometry): Move externs to macterm.h.
 7916 
 7917 	* macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
 7918 	(XSetFont): Add declaration.
 7919 	(mac_set_forecolor, mac_set_backcolor, mac_set_colors):
 7920 	Remove functions.
 7921 	(GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
 7922 	New defines.
 7923 	(XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
 7924 	(mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
 7925 	(mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
 7926 	Use them.
 7927 	(mac_erase_rectangle): New function.
 7928 	(XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
 7929 	(x_draw_stretch_glyph_string): Use it.
 7930 	(XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
 7931 	(XSetBackground, XSetFont): Adjust for new GC implementation.
 7932 	(x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
 7933 	(XTset_vertical_scroll_bar): Clear area under scroll bar.
 7934 
 7935 	* macterm.h (struct mac_display_info): Change types of
 7936 	scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
 7937 	(XCreateGC, XParseGeometry): Move externs from macgui.h.
 7938 
 7939 	* xfaces.c [MAC_OS] (XCreateGC): Remove extern.
 7940 
 7941 2005-07-16  Richard M. Stallman  <rms@gnu.org>
 7942 
 7943 	* buffer.c (Fmake_overlay): Doc fix.
 7944 
 7945 2005-07-16  Eli Zaretskii  <eliz@gnu.org>
 7946 
 7947 	* w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
 7948 	Vw32_valid_locale_ids, and Vw32_valid_codepages.
 7949 
 7950 2005-07-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 7951 
 7952 	* mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
 7953 	Use Fstring_as_unibyte instead of string_make_unibyte.
 7954 
 7955 2005-07-15  Richard M. Stallman  <rms@gnu.org>
 7956 
 7957 	* xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
 7958 
 7959 2005-07-15  Kim F. Storm  <storm@cua.dk>
 7960 
 7961 	* xdisp.c: Fix redisplay loop in last change.
 7962 	(IT_POS_VALID_AFTER_MOVE_P): New macro.
 7963 	(move_it_vertically_backward, move_it_by_lines): Use it.
 7964 
 7965 2005-07-14  Jason Rumney  <jasonr@gnu.org>
 7966 
 7967 	* w32.c (init_environment): Default HOME directory to user's
 7968 	appdata directory if possible.
 7969 
 7970 2005-07-14  Kim F. Storm  <storm@cua.dk>
 7971 
 7972 	* .gdbinit (pitx): Fix output format.  Print string charpos.
 7973 
 7974 	* lread.c (syms_of_lread): Initialize seen_list.
 7975 
 7976 	* search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
 7977 
 7978 	* syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
 7979 	Staticpro re_match_object.
 7980 
 7981 2005-07-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 7982 
 7983 	* macselect.c (get_scrap_target_type_list): Avoid NULL pointer
 7984 	dereference.
 7985 
 7986 	* macterm.c (mac_window_to_frame): Remove duplicate define.
 7987 
 7988 2005-07-14  Kenichi Handa  <handa@m17n.org>
 7989 
 7990 	* coding.c (code_convert_region_unwind): ARG is changed to a cons.
 7991 	(code_convert_region): Adjust for the above change.
 7992 	(set_conversion_work_buffer): If the work buffer is already in
 7993 	use, generate a new buffer and return it.  Otherwise return Qnil.
 7994 	(run_pre_post_conversion_on_str): Adjust for the above change.
 7995 	(run_pre_write_conversin_on_c_str): Likewise.
 7996 
 7997 2005-07-13  Kim F. Storm  <storm@cua.dk>
 7998 
 7999 	* xdisp.c (start_display): Don't reseat to next visible line start
 8000 	if current start position is in a string or image.
 8001 	(move_it_vertically_backward): Be sure to move out of strings and
 8002 	images when moving it2 forward.
 8003 	(move_it_by_lines): When moving forward, move to next buffer
 8004 	position if we end up in a string or image.  When moving backward,
 8005 	count rows moved over when moving to start of current row in case
 8006 	row starts in middle of a string or image.  Also move further
 8007 	backward if we end up in a string or image.
 8008 	(try_cursor_movement): If overlay string spans multiple lines,
 8009 	move backward to set cursor on start of an overlay string.
 8010 	(cursor_row_p): Row is ok if cursor is at newline from string, but
 8011 	string starts on this line (so we always position cursor at start
 8012 	of string).
 8013 
 8014 	* indent.c (Fvertical_motion): If start position is on an image,
 8015 	don't move back if we move too far (that's almost certain to happen).
 8016 
 8017 	* xdisp.c (cursor_row_fully_visible_p): Allow partially visible
 8018 	row in minibuffer windows.
 8019 	(try_window): Don't check margins in minibuffer windows.
 8020 
 8021 2005-07-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 8022 
 8023 	* macterm.c: Don't include stdlib.h or composite.h.
 8024 	(x_use_underline_position_properties, last_mouse_press_frame)
 8025 	(x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
 8026 	(syms_of_macterm, mac_initialize): Don't initialize them.
 8027 	(waiting_for_input, initial_argv, initial_argc)
 8028 	(Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
 8029 	(set_frame_menubar, path_from_vol_dir_name): Remove externs.
 8030 	(extra_keyboard_modifiers): Fix type in extern.
 8031 	(x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
 8032 	(x_scroll_bar_report_motion): Add argument types to declaration.
 8033 	(mac_compute_glyph_string_overhangs): Add declaration.
 8034 	(disable_mouse_highlight): Remove unused variable.
 8035 	[USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
 8036 	(x_scroll_bar_handle_press, x_scroll_bar_handle_release)
 8037 	(x_scroll_bar_handle_drag): Remove argument `timestamp'.
 8038 	All callers changed.
 8039 	[USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
 8040 	timestamp.
 8041 	[USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
 8042 	(x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
 8043 	only when its width is less than the height.
 8044 	(XTredeem_scroll_bar): Sync with xterm.c.
 8045 	(font_name_table, font_name_table_size, font_name_count):
 8046 	Make static.
 8047 	(drag_and_drop_file_list): Remove variable.  Previous use is now
 8048 	local to function.
 8049 	(do_ae_open_documents): Move DRAG_N_DROP event construction part
 8050 	from XTread_socket.
 8051 	(XTread_socket): Consolidate setting of event timestamp.
 8052 	Move DRAG_N_DROP event construction part to do_ae_open_documents.
 8053 	Support extra_keyboard_modifiers.
 8054 
 8055 	* xfaces.c (try_font_list) [MAC_OS]: Try font family name
 8056 	beginning with that for ASCII.
 8057 
 8058 2005-07-13  Stefan Monnier  <monnier@iro.umontreal.ca>
 8059 
 8060 	* alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
 8061 	(Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
 8062 	(syms_of_alloc): Declare gc-cons-percentage.
 8063 
 8064 	* eval.c (Feval, Ffuncall):
 8065 	* keyboard.c (read_char):
 8066 	* bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
 8067 
 8068 	* lisp.h (gc_cons_combined_threshold): Declare.
 8069 
 8070 2005-07-12  Kim F. Storm  <storm@cua.dk>
 8071 
 8072 	* coding.c (Qprocess_argument):
 8073 	* coding.h (Qprocess_argument): Remove unused var.
 8074 
 8075 	* xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
 8076 
 8077 2005-07-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 8078 
 8079 	* mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
 8080 	Endian.h.
 8081 	[!MAC_OSX] (fchmod, fchown): New functions.
 8082 	(mac_get_code_from_arg): Don't accept Lisp integer as argument.
 8083 	Use SBYTES and EndianU32_BtoN.
 8084 	(mac_get_object_from_code): Return 4 byte string even if argument
 8085 	is 0.  Use make_unibyte_string and EndianU32_NtoB.
 8086 	(Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
 8087 	(Fmac_set_file_type): Fix documents and argument declarations.
 8088 	Don't specify kFSCatInfoNodeFlags.  Support Mac OS Classic.
 8089 
 8090 2005-07-11  Stefan Monnier  <monnier@iro.umontreal.ca>
 8091 
 8092 	* window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
 8093 
 8094 2005-07-11  Jan Djärv  <jan.h.d@swipnet.se>
 8095 
 8096 	* xfaces.c (x_update_menu_appearance): Use fontSet resource for
 8097 	Lucid if X_I18N, font otherwise.
 8098 
 8099 2005-07-10  Steven Tamm  <steventamm@mac.com>
 8100 
 8101 	* mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
 8102 	(Fmac_set_file_type, Fmac_set_file_creator): Add.
 8103 	(mac_get_object_from_code, mac_get_code_from_arg): Add.
 8104 
 8105 2005-07-10  Richard M. Stallman  <rms@gnu.org>
 8106 
 8107 	* lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
 8108 	(syms_of_lread): Set up eval-buffer-list.
 8109 	(Feval_buffer, Feval_region): Bind eval-buffer-list.
 8110 
 8111 2005-07-08  Richard M. Stallman  <rms@gnu.org>
 8112 
 8113 	* eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
 8114 
 8115 2005-07-08  Kim F. Storm  <storm@cua.dk>
 8116 
 8117 	* keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
 8118 	(syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
 8119 
 8120 2005-07-07  Kim F. Storm  <storm@cua.dk>
 8121 
 8122 	* window.c (Frecenter): Fix last change (set iarg before use).
 8123 
 8124 2005-07-06  Richard M. Stallman  <rms@gnu.org>
 8125 
 8126 	* window.c (Frecenter): When arg is inside the scroll margin,
 8127 	move it out of the margin.
 8128 
 8129 2005-07-06  Jason Rumney  <jasonr@gnu.org>
 8130 
 8131 	* w32console.c (initialize_w32_display): Detect when the console
 8132 	dimensions are insane, and default to 80x25 instead.
 8133 	(w32_use_full_screen_buffer): Default to nil.
 8134 
 8135 2005-07-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 8136 
 8137 	* macterm.c (mac_draw_vertical_window_border): Use foreground of
 8138 	VERTICAL_BORDER_FACE_ID for vertical border line.
 8139 	(mac_encode_char): Call check_ccl_update in advance.
 8140 	(mac_to_x_fontname, x_font_name_to_mac_font_name)
 8141 	(init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
 8142 	Don't assume that font family length is less than 32.
 8143 	(x_compute_min_glyph_bounds): Make static.
 8144 	(x_load_font): Never set fonts_changed_p to zero.
 8145 
 8146 2005-07-04  Lute Kamstra  <lute@gnu.org>
 8147 
 8148 	* Update FSF's address in GPL notices.
 8149 
 8150 2005-07-03  Richard M. Stallman  <rms@gnu.org>
 8151 
 8152 	* xdisp.c (try_window): Fix previous change in how it handles
 8153 	a partially-visible line or one only partly past the margin.
 8154 
 8155 	* window.c (window_scroll_pixel_based): Take account
 8156 	of this_scroll_margin when finding point when scrolling up.
 8157 
 8158 2005-06-29  Ralf Angeli  <angeli@iwi.uni-sb.de>
 8159 
 8160 	* window.c (window_scroll_pixel_based, window_scroll_line_based):
 8161 	Handle `scroll-preserve-screen-position' non-nil, non-t specially.
 8162 	(syms_of_window) <scroll-preserve-screen-position>: Doc fix.
 8163 
 8164 2005-07-02  Juri Linkov  <juri@jurta.org>
 8165 
 8166 	* w32term.c (w32_draw_vertical_window_border): Use foreground of
 8167 	VERTICAL_BORDER_FACE_ID for vertical border line.
 8168 
 8169 2005-07-02  Eli Zaretskii  <eliz@gnu.org>
 8170 
 8171 	* fileio.c (Fcopy_file): Rearrange the code that calls fchown and
 8172 	fchmod so that chmod doesn't get called on MSDOS before the file
 8173 	is closed.
 8174 
 8175 2005-07-01  Jason Rumney  <jasonr@gnu.org>
 8176 
 8177 	* w32term.c (cleartype_active): New flag for enabling sub-pixel
 8178 	workaround.
 8179 	(w32_initialize): Initialize it.
 8180 	(w32_native_per_char_metric): Allow a couple of extra pixels when
 8181 	Cleartype is active.
 8182 
 8183 	* w32term.c (w32_initialize): Move check for screen reader here
 8184 	from syms_of_w32term.
 8185 
 8186 2005-06-30  Jan Djärv  <jan.h.d@swipnet.se>
 8187 
 8188 	* xterm.c (handle_one_xevent): bzero compose_status when nbytes
 8189 	is not zero.
 8190 
 8191 2005-07-01  Masatake YAMATO  <jet@gyve.org>
 8192 
 8193 	* emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
 8194 
 8195 2005-06-30  Juri Linkov  <juri@jurta.org>
 8196 
 8197 	* xdisp.c (x_draw_vertical_border): If left fringe is not present
 8198 	decrease x coord of vertical border by 1 pixel to not occupy text
 8199 	area of the right window.
 8200 
 8201 	* xterm.c (x_draw_vertical_window_border): Use foreground of
 8202 	VERTICAL_BORDER_FACE_ID for vertical border line.
 8203 
 8204 	* term.c (turn_on_face): In standout mode apply specified
 8205 	fg to bg, and specified bg to fg (this makes the logic of
 8206 	inversion on terminal consistent with X).
 8207 
 8208 2005-06-29  Juanma Barranquero  <lekktu@gmail.com>
 8209 
 8210 	* eval.c (user_variable_p_eh): New function.
 8211 	(Fuser_variable_p): Use it.  Clarify docstring.
 8212 	Return t for aliases of user options, nil for alias loops.
 8213 
 8214 2005-06-27  Richard M. Stallman  <rms@gnu.org>
 8215 
 8216 	* eval.c (Fdefvar): Improve error message.
 8217 
 8218 2005-06-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 8219 
 8220 	* macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
 8221 	change.
 8222 
 8223 2005-06-27  Juanma Barranquero  <lekktu@gmail.com>
 8224 
 8225 	* eval.c (Fdefvar): Don't try to set constant symbols.
 8226 
 8227 2005-06-25  Richard M. Stallman  <rms@gnu.org>
 8228 
 8229 	* macfns.c (Fx_show_tip): Pass new arg to try_window.
 8230 
 8231 	* w32fns.c (Fx_show_tip): Pass new arg to try_window.
 8232 
 8233 	* xfns.c (Fx_show_tip): Pass new arg to try_window.
 8234 
 8235 	* xdisp.c (try_window): New arg CHECK_MARGINS.  Calls changed.
 8236 	(redisplay_window): Handle try_window reporting point in scroll margin.
 8237 
 8238 	* dispextern.h (try_window): Declare new arg.
 8239 
 8240 	* fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
 8241 	Use fchmod to copy the file modes.
 8242 	(Frename_file): Don't copy UID and GID here;
 8243 	instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
 8244 
 8245 	* eval.c (call_debugger): Take full care of extending stack limits
 8246 	to make space for the debugger, and restore the change afterward.
 8247 	Bind debug-on-error to nil.
 8248 	(restore_stack_limits): New subroutine.
 8249 	(Fsignal): Extend specpdl bound along with eval depth bound,
 8250 	for calling edebug.  Don't do either one, for calling debugger.
 8251 	(find_handler_clause): Don't bind debug-on-error here.
 8252 	Don't unbind anything either.
 8253 	Temporarily advance max_specpdl_size for calling
 8254 	internal_with_output_to_temp_buffer.
 8255 	(grow_specpdl): Don't alter max_specpdl_size before signaling
 8256 	an error.
 8257 	(syms_of_eval) <max-specpdl-size>: Doc fix.
 8258 
 8259 	* lread.c (read1): 0.0e+NaN should make a "positive" NaN.
 8260 
 8261 2005-06-24  Eli Zaretskii  <eliz@gnu.org>
 8262 
 8263 	* fileio.c (Frename_file): Undo last change: no need to ifdef away
 8264 	chown on DOS_NT platforms.
 8265 
 8266 	* w32.c (sys_chown): New function.
 8267 
 8268 	* s/ms-w32.h (chown): New; define to sys_chown.
 8269 
 8270 2005-06-24  Juanma Barranquero  <lekktu@gmail.com>
 8271 
 8272 	* xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
 8273 	(syms_of_xdisp) <void-text-area-pointer>: Doc fix.
 8274 
 8275 	* fileio.c (Frename_file) [!DOS_NT]: Don't call chown on MSDOS/Windows.
 8276 
 8277 2005-06-23  Richard M. Stallman  <rms@gnu.org>
 8278 
 8279 	* xdisp.c (get_next_display_element): Finish reversing the tests of
 8280 	Vnobreak_char_display.
 8281 
 8282 	* xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
 8283 	All uses changed.
 8284 	(Qnobreak_space): Rename from Qno_break_space.  All uses changed.
 8285 	(syms_of_xdisp): Define nobreak-char-display and nobreak-space.
 8286 
 8287 	* fileio.c (Frename_file): Preserve owner and group, if possible,
 8288 	when copying.
 8289 
 8290 2005-06-23  Juanma Barranquero  <lekktu@gmail.com>
 8291 
 8292 	* abbrev.c (Funexpand_abbrev):
 8293 	* category.c (Fmake_category_set):
 8294 	* dispnew.c (Fsleep_for, Fsit_for):
 8295 	* editfns.c (Fsubst_char_in_region):
 8296 	* eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
 8297 	* frame.c (make_frame_without_minibuffer):
 8298 	* lread.c (read_vector):
 8299 	* macfns.c (check_x_frame):
 8300 	* process.c (Fstop_process, Fcontinue_process):
 8301 	* search.c (Freplace_match):
 8302 	* syntax.c (Fstring_to_syntax):
 8303 	* w32fns.c (check_x_frame, check_x_display_info):
 8304 	* xfaces.c (x_supports_face_attributes_p):
 8305 	* xselect.c (Fx_own_selection_internal): Follow error conventions.
 8306 
 8307 	* image.c (fn_png_init_io): Don't define it.
 8308 	(init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
 8309 	(png_read_from_file): New function, based on png_read_from_memory.
 8310 	(png_load): Use it, instead of fn_png_init_io.
 8311 
 8312 2005-06-23  Kim F. Storm  <storm@cua.dk>
 8313 
 8314 	* search.c (Fmatch_data): Remove evaporate option.
 8315 	(Fset_match_data): Do not mention evaporate option in doc string.
 8316 	Add commentary explaining evaporate arg (for internal use only).
 8317 	(unwind_set_match_data): Add comment on evaporate use.
 8318 
 8319 2005-06-22  Miles Bader  <miles@gnu.org>
 8320 
 8321 	* xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
 8322 	(realize_basic_faces, syms_of_xfaces): Update references to it.
 8323 	* dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
 8324 	to `VERTICAL_BORDER_FACE_ID'.
 8325 	* dispnew.c (build_frame_matrix_from_leaf_window): Update references.
 8326 
 8327 2005-06-21  Juri Linkov  <juri@jurta.org>
 8328 
 8329 	* dispextern.h: Add extern Qframe_set_background_mode.
 8330 
 8331 	* xfaces.c: Rename obsolete function Qframe_update_face_colors to
 8332 	Qframe_set_background_mode.
 8333 
 8334 	* frame.c (Fmodify_frame_parameters):
 8335 	Call frame-set-background-mode after changing the background color
 8336 	on non-window non-dos branch.
 8337 
 8338 2005-06-21  Juanma Barranquero  <lekktu@gmail.com>
 8339 
 8340 	* fns.c (Fchar_table_range):
 8341 	* process.c (Fmake_network_process): Fix spellings.
 8342 
 8343 2005-06-20  Kim F. Storm  <storm@cua.dk>
 8344 
 8345 	* fns.c (Fsort): Doc fix.
 8346 
 8347 2005-06-20  Miles Bader  <miles@gnu.org>
 8348 
 8349 	* xfaces.c (Qvertical_divider): New variable.
 8350 	(realize_basic_faces): Realize its face.
 8351 	(syms_of_xfaces): Initialize it.
 8352 
 8353 	* dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
 8354 
 8355 	* dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
 8356 	window-separator on ttys using `vertical-divider' face by default.
 8357 
 8358 2005-06-17  Richard M. Stallman  <rms@gnu.org>
 8359 
 8360 	* xdisp.c (get_next_display_element):
 8361 	Reverse test of Vshow_nonbreak_escape.
 8362 
 8363 	* term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
 8364 	(Ftty_no_underline): New function.
 8365 	(syms_of_term): defsubr it.
 8366 
 8367 	* keyboard.c (read_char): Call restore_getcjmp after jump occurs.
 8368 
 8369 	* dispnew.c (spec_glyph_lookup_face): New function.
 8370 	(build_frame_matrix_from_leaf_window): Use it.
 8371 
 8372 	* dispextern.h (spec_glyph_lookup_face): Add declaration.
 8373 
 8374 	* buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
 8375 
 8376 2005-06-12  Richard M. Stallman  <rms@gnu.org>
 8377 
 8378 	* keyboard.c (read_char): After catching a longjmp,
 8379 	call restore_getcjmp.
 8380 
 8381 2005-06-17  Juanma Barranquero  <lekktu@gmail.com>
 8382 
 8383 	* xselect.c (lisp_data_to_selection_data): Fix spelling.
 8384 
 8385 2005-06-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 8386 
 8387 	* macterm.c (mac_compute_glyph_string_overhangs): Don't set
 8388 	overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
 8389 	[USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
 8390 	events.
 8391 	(XTread_socket): Don't pass keyboard events with the option
 8392 	modifier to the system when Vmac_command_key_is_meta is nil or
 8393 	Vmac_option_modifier is non-nil.
 8394 	[USE_CARBON_EVENTS] (read_socket_inev): New variable.
 8395 	[USE_CARBON_EVENTS] (init_command_handler): Fix argument.
 8396 	[USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
 8397 	handler function.
 8398 	(install_window_handler) [USE_CARBON_EVENTS]: Install it.
 8399 	(XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
 8400 	handler part to mac_handle_mouse_event.
 8401 
 8402 2005-06-14  Juanma Barranquero  <lekktu@gmail.com>
 8403 
 8404 	* eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
 8405 	NEW-ALIAS and BASE-VARIABLE, respectively.
 8406 
 8407 2005-06-13  Stefan Monnier  <monnier@iro.umontreal.ca>
 8408 
 8409 	* xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
 8410 	(get_phys_cursor_geometry, format_mode_line_unwind_data)
 8411 	(get_line_height_property, x_produce_glyphs): Remove unused vars.
 8412 
 8413 	* coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
 8414 
 8415 2005-06-13  Eli Zaretskii  <eliz@gnu.org>
 8416 
 8417 	* w32term.c (x_use_underline_position_properties): New variable.
 8418 	(x_draw_glyph_string): Remind in a comment to change doc string of
 8419 	x-use-underline-position-properties if/when underline positioning
 8420 	is implemented.
 8421 	(syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
 8422 	and initialize it to nil.
 8423 
 8424 2005-06-12  Jason Rumney  <jasonr@gnu.org>
 8425 
 8426 	* w32fns.c (NEWOPENFILENAME): New struct.
 8427 	(Fx_file_dialog): Use it to trick the system into giving us up to
 8428 	date dialogs on systems that are documented to support it.
 8429 	Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
 8430 
 8431 2005-06-12  Eli Zaretskii  <eliz@gnu.org>
 8432 
 8433 	* w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
 8434 	MB_ABORTRETRYIGNORE.  Never return, even if DebugBreak does.
 8435 
 8436 2005-06-11  Eli Zaretskii  <eliz@gnu.org>
 8437 
 8438 	* image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
 8439 	to CreateDIBSection to avoid a compiler warning.
 8440 	(pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
 8441 	warning.
 8442 	(png_load): Cast return values of fn_png_create_read_struct and
 8443 	fn_png_create_info_struct, to avoid compiler warnings on W32.
 8444 	Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
 8445 	to avoid compiler warnings.
 8446 	(jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
 8447 	compiler warning on W32.  Cast 3rd arg to IMAGE_BACKGROUND to
 8448 	avoid a compiler warning.
 8449 	(tiff_load): Cast return values of fn_TIFFOpen and
 8450 	fn_TIFFClientOpen to avoid compiler warning on W32.  Cast 3rd arg
 8451 	to IMAGE_BACKGROUND to avoid a compiler warning.
 8452 	(gif_load): Cast return values of fn_DGifOpenFileName and
 8453 	fn_DGifOpen to avoid compiler warnings on W32.  Cast 3rd arg to
 8454 	IMAGE_BACKGROUND to avoid a compiler warning.
 8455 	(DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
 8456 	before redefining.
 8457 
 8458 	* w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
 8459 	the call to CreateDIBSection, to avoid a compiler warning.
 8460 
 8461 2005-06-11  Jason Rumney  <jasonr@gnu.org>
 8462 
 8463 	* w32fns.c (Fx_file_dialog): Unblock input before falling back to
 8464 	minibuffer.
 8465 	* macfns.c (Fx_file_dialog): Likewise.
 8466 
 8467 2005-06-10  Eli Zaretskii  <eliz@gnu.org>
 8468 
 8469 	* makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
 8470 
 8471 2005-06-10  Juanma Barranquero  <lekktu@gmail.com>
 8472 
 8473 	* process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
 8474 	* w32fns.c (syms_of_w32fns): Fix spellings.
 8475 
 8476 2005-06-10  Eli Zaretskii  <eliz@gnu.org>
 8477 
 8478 	* unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
 8479 	`verbose'; print diagnostic messages only if it is non-zero.
 8480 	All callers changed to pass a zero value unless DEBUG_DUMP is defined
 8481 	in the environment.
 8482 	(copy_executable_and_dump_data): Print section names with %.8s.
 8483 
 8484 2005-06-10  Masatake YAMATO  <jet@gyve.org>
 8485 
 8486 	* xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
 8487 	when mouse_face is not given.
 8488 
 8489 2005-06-09  Luc Teirlinck  <teirllm@auburn.edu>
 8490 
 8491 	* window.c (Fselect_window): Adapt call to Fselect_frame.
 8492 
 8493 	* lisp.h: Update EXFUN of Fselect_frame.
 8494 
 8495 	* keyboard.c (command_loop_1): Adapt call to Fselect_frame.
 8496 
 8497 	* frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
 8498 	no_enter.
 8499 	(Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
 8500 	Adapt to above change.
 8501 
 8502 2005-06-10  Juanma Barranquero  <lekktu@gmail.com>
 8503 
 8504 	* fns.c (Fmemq, Fmaphash): Doc fixes.
 8505 
 8506 2005-06-09  Juanma Barranquero  <lekktu@gmail.com>
 8507 
 8508 	* xfaces.c (Fdisplay_supports_face_attributes_p):
 8509 	Fix typo in docstring.
 8510 
 8511 2005-06-08  Steven Tamm  <steventamm@mac.com>
 8512 
 8513 	* unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
 8514 	used by gcc4 on intel mac.
 8515 
 8516 2005-06-09  Kim F. Storm  <storm@cua.dk>
 8517 
 8518 	* search.c (Fmatch_data): Add optional RESEAT arg.  Unchain markers
 8519 	in REUSE list if non-nil; free them if equal to evaporate.
 8520 	(Fset_match_data): Add optional RESEAT arg.  Unchain markers in LIST
 8521 	if non-nil; free them if equal to evaporate.  Use XCAR/XCDR.
 8522 	(restore_search_regs): Rename from restore_match_data.  Uses changed.
 8523 	(unwind_set_match_data): New function.
 8524 	(record_unwind_save_match_data): New function like save-match-data.
 8525 
 8526 	* lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
 8527 	(record_unwind_save_match_data): Add prototype.
 8528 	(restore_search_regs): Rename from restore_match_data.
 8529 
 8530 	* composite.c (compose_chars_in_text):
 8531 	* eval.c (do_autoload):
 8532 	* macmenu.c (set_frame_menubar):
 8533 	* process.c (read_process_output, exec_sentinel):
 8534 	* xmenu.c (set_frame_menubar):
 8535 	* xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
 8536 	* w32menu.c (set_frame_menubar):
 8537 	Use record_unwind_save_match_data.
 8538 
 8539 2005-06-08  Richard M. Stallman  <rms@gnu.org>
 8540 
 8541 	* xdisp.c (get_next_display_element): Alter previous change:
 8542 	Distinguish Vshow_nonbreak_escape = t or not t.
 8543 	For t, use escape_glyph once again, as before previous change.
 8544 	Use space or hyphen for display, instead of the non-ASCII char.
 8545 	(syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
 8546 
 8547 	* process.c (Fstart_process): Don't touch command_channel_p slot.
 8548 
 8549 	* process.h (struct process): Delete command_channel_p.
 8550 
 8551 2005-06-07  Masatake YAMATO  <jet@gyve.org>
 8552 
 8553 	* xdisp.c (note_mode_line_or_margin_highlight):
 8554 	Check the overlapping of re-rendering area to avoid flickering.
 8555 	(note_mouse_highlight): Call clear_mouse_face if PART
 8556 	is not ON_MODE_LINE nor ON_HEADER_LINE.
 8557 
 8558 2005-06-07  Kim F. Storm  <storm@cua.dk>
 8559 
 8560 	* process.c: Improve commentary for adaptive read buffering.
 8561 
 8562 2005-06-06  Stefan Monnier  <monnier@iro.umontreal.ca>
 8563 
 8564 	* xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
 8565 	if available.
 8566 
 8567 2005-06-06  Jan Djärv  <jan.h.d@swipnet.se>
 8568 
 8569 	* macmenu.c (menu_quit_handler, install_menu_quit_handler):
 8570 	New functions for popping down menus on C-g.
 8571 	(set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
 8572 
 8573 	* macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
 8574 	non-static.
 8575 
 8576 	* config.in: Add HAVE_CANCELMENUTRACKING.
 8577 
 8578 2005-06-06  Eli Zaretskii  <eliz@gnu.org>
 8579 
 8580 	* w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
 8581 
 8582 	* unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
 8583 
 8584 	* w32proc.c (RVA_TO_PTR): New macro.
 8585 
 8586 	* w32heap.c (RVA_TO_PTR): No need to #undef now.
 8587 
 8588 	* makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
 8589 	Depend on w32heap.h.
 8590 
 8591 2005-06-06  Luc Teirlinck  <teirllm@auburn.edu>
 8592 
 8593 	* keyboard.c (command_loop_1): Update Vthis_original_command.
 8594 
 8595 2005-06-06  Richard M. Stallman  <rms@gnu.org>
 8596 
 8597 	* xmenu.c (popup_get_selection): Undo previous change.
 8598 
 8599 2005-06-06  Juri Linkov  <juri@jurta.org>
 8600 
 8601 	* xdisp.c (Qno_break_space): New variable.
 8602 	(syms_of_xdisp): Initialize it.
 8603 	(get_next_display_element): Add no-break space and soft hyphen
 8604 	codes for iso8859-2 and iso8859-5.  Don't add `\' for them.
 8605 	Use `no-break-space' face for no-break spaces.
 8606 
 8607 2005-06-06  Jan Djärv  <jan.h.d@swipnet.se>
 8608 
 8609 	* window.c (delete_window): Handle the case where a h/vchild has
 8610 	a h/vchild.
 8611 
 8612 2005-06-05  Eli Zaretskii  <eliz@gnu.org>
 8613 
 8614 	* w32.c (sys_setsockopt): Change arg 4 to `const void *'.  In the
 8615 	call to pfn_setsockopt, cast optval to `const char *'.
 8616 
 8617 2005-06-04  Eli Zaretskii  <eliz@gnu.org>
 8618 
 8619 	* w32.c (gettimeofday): Use struct _timeb, not struct timeb.
 8620 	(open_unc_volume): Cast return value of map_w32_filename, to avoid
 8621 	compiler warnings.
 8622 
 8623 	* s/ms-w32.h (fileno): Don't define if already defined.
 8624 
 8625 	* emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
 8626 
 8627 	* makefile.w32-in (DOC): Define to point to the generated DOC-X.
 8628 
 8629 2005-06-04  Richard M. Stallman  <rms@gnu.org>
 8630 
 8631 	* xmenu.c (popup_get_selection): Click not in menu deactivates menu.
 8632 
 8633 2005-06-04  Jan Djärv  <jan.h.d@swipnet.se>
 8634 
 8635 	* macmenu.c (cleanup_popup_menu): New function.
 8636 	(Fx_popup_menu): Unwind protect cleanup_popup_menu in case
 8637 	mac_menu_show Quit:s.
 8638 	(mac_menu_show): Quit on cancel if not popped up on click (i.e.
 8639 	a dialog).
 8640 
 8641 2005-06-04  Kim F. Storm  <storm@cua.dk>
 8642 
 8643 	* coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
 8644 
 8645 	* callproc.c (Fcall_process): Don't use alloca to gradually
 8646 	increase size of buf, as it effectively uses twice the necessary
 8647 	space on the stack.  Instead, pre-allocate buf of full size, and
 8648 	gradually increase the read size.
 8649 
 8650 	* bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
 8651 
 8652 	* eval.c (unbind_to): Preserve value of Vquit_flag.
 8653 
 8654 	* xterm.c (handle_one_xevent): Also ignore mouse motion just
 8655 	before a button release event.
 8656 
 8657 2005-06-03  Juanma Barranquero  <lekktu@gmail.com>
 8658 
 8659 	* xfaces.c (Finternal_lisp_face_equal_p): Really report
 8660 	on faces in a frame, if the argument FRAME is non-nil.
 8661 	Improve argument/docstring consistency.
 8662 
 8663 2005-06-02  Kim F. Storm  <storm@cua.dk>
 8664 
 8665 	* xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
 8666 	(x_consider_frame_title, Fformat_mode_line): Save offset into
 8667 	mode_line_noprop_buf rather than pointer, in case buffer is relocated.
 8668 
 8669 2005-06-01  Kim F. Storm  <storm@cua.dk>
 8670 
 8671 	* fns.c (mapcar1): Maybe exit loop if original sequence was modified.
 8672 
 8673 2005-06-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 8674 
 8675 	* macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
 8676 	resolution fields for scalable fonts to 0.
 8677 
 8678 	* xfaces.c (build_scalable_font_name): Round pixel size to the
 8679 	nearest integer.
 8680 
 8681 2005-06-01  Kim F. Storm  <storm@cua.dk>
 8682 
 8683 	* xdisp.c (display_mode_line): Support nested calls to redisplay
 8684 	and format-mode-line.  Set mode_line_target to MODE_LINE_DISPLAY.
 8685 
 8686 2005-05-31  Stefan Monnier  <monnier@iro.umontreal.ca>
 8687 
 8688 	* fileio.c (Finsert_file_contents):
 8689 	* xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
 8690 
 8691 2005-05-31  Kim F. Storm  <storm@cua.dk>
 8692 
 8693 	* xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
 8694 	(mode_line_noprop_ptr): Rename from frame_title_*.
 8695 	(store_mode_line_noprop_char): Rename from store_frame_title_char.
 8696 	(store_mode_line_noprop): Rename from store_frame_title.
 8697 	(mode_line_target): New enum to specify current output target
 8698 	for mode line formatting.
 8699 	(display_mode_element): Test it rather than frame_title_ptr and
 8700 	mode_line_string_list to determine where output should go.
 8701 	(mode_line_proptrans_alist, mode_line_string_alist): Make static.
 8702 	(Vmode_line_unwind_vector): New variable.
 8703 	(format_mode_line_unwind_data, unwind_format_mode_line):
 8704 	New functions for unwind protection in mode line formatting.
 8705 	(x_consider_frame_title): Use them and new local var 'title_start'
 8706 	to support nested calls to format-mode-line and redisplay.
 8707 	Set mode_line_target to MODE_LINE_TITLE.
 8708 	(Fformat_mode_line): Use them and new local var 'string_start' to
 8709 	support nested calls to format-mode-line and redisplay.
 8710 	Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
 8711 	Don't trim trailing dashes.
 8712 	(decode_mode_spec): Don't make infinite number of trailing dashes
 8713 	for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
 8714 	(syms_of_xdisp): Initialize and staticpro mode_line_string_face,
 8715 	mode_line_string_face_prop, and Vmode_line_unwind_vector.
 8716 	(init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
 8717 	Initialize mode_line_target to MODE_LINE_DISPLAY.
 8718 
 8719 2005-05-29  Richard M. Stallman  <rms@gnu.org>
 8720 
 8721 	* buffer.c (Fbuffer_local_value): Call indirect_variable.
 8722 
 8723 2005-05-28  Masatake YAMATO  <jet@gyve.org>
 8724 
 8725 	* xdisp.c (note_mode_line_or_margin_highlight): Change the
 8726 	pointer to a hand cursor when hovering over a mouse-face.
 8727 
 8728 2005-05-27  Kenichi Handa  <handa@m17n.org>
 8729 
 8730 	* xterm.c (x_encode_char): Call check_ccl_update in advance.
 8731 
 8732 	* ccl.c: Now an element of Vccl_program_table is a vector of
 8733 	length 4, not 3.
 8734 	(ccl_get_compiled_code): New arg idx.  Caller changed.
 8735 	Adjust for the change of Vccl_program_table.
 8736 	(setup_ccl_program): Adjust for the change of Vccl_program_table.
 8737 	(check_ccl_update): New function.
 8738 	(Fregister_ccl_program): Use ASET to set an element of a vector.
 8739 	Adjusted for the change of Vccl_program_table.
 8740 
 8741 	* ccl.h (struct ccl_program): New member idx.
 8742 	(check_ccl_update): Extern it.
 8743 
 8744 2005-05-27  Juanma Barranquero  <lekktu@gmail.com>
 8745 
 8746 	* image.c (Vimage_library_alist): Move from image.el.
 8747 	(syms_of_image): Defvar it.
 8748 	(lookup_image_type): Use it.
 8749 
 8750 	* buffer.c (Fbuffer_local_value): Make argument name match its use
 8751 	in docstring.
 8752 
 8753 2005-05-26  Juanma Barranquero  <lekktu@gmail.com>
 8754 
 8755 	* keyboard.c (Frecursive_edit): Fix typo in docstring.
 8756 	(Fposn_at_x_y): Make argument name match its use in docstring.
 8757 
 8758 2005-05-26  Lute Kamstra  <lute@gnu.org>
 8759 
 8760 	* eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
 8761 
 8762 2005-05-24  Masatake YAMATO  <jet@gyve.org>
 8763 
 8764 	* xdisp.c (note_mode_line_or_margin_highlight): Use b and e
 8765 	as loop sentinels.
 8766 
 8767 2005-05-24  Nick Roberts  <nickrob@snap.net.nz>
 8768 
 8769 	* xmenu.c (Fx_popup_dialog): Add a third boolean argument to
 8770 	select frame title ("Question"/"Information").
 8771 	(xdialog_show): Use it.
 8772 
 8773 	* macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
 8774 
 8775 	* w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
 8776 
 8777 	* fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
 8778 	a third argument (Qnil).
 8779 
 8780 	* lisp.h: x-popup-dialog can have three arguments.
 8781 
 8782 	* editfns.c (Fmessage_box): Use "Information" for frame title.
 8783 
 8784 2005-05-23  Thien-Thi Nguyen  <ttn@gnu.org>
 8785 
 8786 	* termcap.c [VMS]: Include <starlet.h>.
 8787 
 8788 2005-05-23  Masatake YAMATO  <jet@gyve.org>
 8789 
 8790 	* xdisp.c (note_mode_line_or_margin_highlight): Add code
 8791 	for mouse-face.  Change the type of the first argument from `window'
 8792 	to `Lisp_Object'.
 8793 	(note_mouse_highlight): Call note_mode_line_or_margin_highlight with
 8794 	window instead of w.
 8795 
 8796 2005-05-22  Andreas Schwab  <schwab@suse.de>
 8797 
 8798 	* process.c (send_process): Move misplaced volatile.
 8799 
 8800 2005-05-21  Richard M. Stallman  <rms@gnu.org>
 8801 
 8802 	* xdisp.c (display_mode_element): If we're processing a list and
 8803 	padding is specified, put it after the last element.
 8804 
 8805 2005-05-21  Eli Zaretskii  <eliz@gnu.org>
 8806 
 8807 	* fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
 8808 	"superroot" on DOS_NT systems.
 8809 
 8810 2005-05-21  David Hunter  <hunterd42@comcast.net>  (tiny change)
 8811 
 8812 	* process.c (send_process): Restore the SIGPIPE handler if we
 8813 	catch a SIGPIPE.
 8814 
 8815 2005-05-20  Juanma Barranquero  <lekktu@gmail.com>
 8816 
 8817 	* image.c (lookup_image, png_read_from_memory): Remove hacks (and
 8818 	misleading comments).
 8819 	(DEF_IMGLIB_FN): Use C calling convention for image libraries.
 8820 
 8821 2005-05-20  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
 8822 
 8823 	* window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
 8824 	Correct the right value.
 8825 
 8826 2005-05-19  Nick Roberts  <nickrob@snap.net.nz>
 8827 
 8828 	* keyboard.c (syms_of_keyboard): Remove Lisp variables
 8829 	post-command-idle-hook and post-command-idle-delay.
 8830 	(command_loop_1): Don't try to execute post-command-idle-hook.
 8831 
 8832 2005-05-16  Kim F. Storm  <storm@cua.dk>
 8833 
 8834 	* xdisp.c (handle_display_prop): Handle empty replacement.
 8835 	(handle_single_display_spec): Return -1 for empty replacement.
 8836 
 8837 	* keyboard.c (adjust_point_for_property): Skip empty overlay string.
 8838 
 8839 	* .gdbinit (pitx): Print more info about iterator.
 8840 
 8841 2005-05-16  Andreas Schwab  <schwab@suse.de>
 8842 
 8843 	* unexmacosx.c (unexec_realloc): Move declarations before statements.
 8844 
 8845 2005-05-14  Richard M. Stallman  <rms@gnu.org>
 8846 
 8847 	* xdisp.c (message3): Call cancel_echoing.
 8848 
 8849 	* alloc.c (Fmemory_full_p): New function.
 8850 	(syms_of_alloc): defsubr it.
 8851 
 8852 	* process.c (send_process_trap): Unblock SIGPIPE.
 8853 	(send_process): Reset SIGPIPE handler before reporting error.
 8854 
 8855 2005-05-14  Nick Roberts  <nickrob@snap.net.nz>
 8856 
 8857 	* emacs.c (syms_of_emacs): Fix doc string for system-type.
 8858 
 8859 2005-05-13  Richard M. Stallman  <rms@gnu.org>
 8860 
 8861 	* fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
 8862 	(Finsert_file_contents): If we read 0 bytes from a special file,
 8863 	unlock the visited file if we locked it.
 8864 	(Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
 8865 	(Ffile_exists_p, Ffile_symlink_p): Doc fixes.
 8866 
 8867 2005-05-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 8868 
 8869 	* emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
 8870 
 8871 	* keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
 8872 	Regard toolkit scroll bar thumb drag events as squeezable and prevent
 8873 	redisplay from being paused by them.
 8874 
 8875 	* mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
 8876 	[!MAC_OSX] (target_ticks): Remove variable.
 8877 	[!MAC_OSX] (check_alarm, pause, index): Remove functions.
 8878 	[!MAC_OSX && __MRC__] (sys_strftime): Likewise.
 8879 	[!MAC_OSX] (select): If fd 0 is not set in rfds and some input
 8880 	event occurs before timeout, behave as if the function were interrupted.
 8881 	[!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
 8882 	handling using Time Manager routines.
 8883 	[!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
 8884 	New variables.
 8885 	[!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
 8886 	(setitimer): New functions.
 8887 
 8888 	* macfns.c, macmenu.c: Don't include signal.h.
 8889 
 8890 	* macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
 8891 	Rename from get_control_part_bound.  All callers changed.
 8892 	(x_scroll_bar_clear): New function.
 8893 	(x_clear_frame): Use it.
 8894 	(XTset_vertical_scroll_bar): Don't call Draw1Control.
 8895 	(x_scroll_bar_handle_click): Change type of second argument from
 8896 	int to ControlPartCode.
 8897 	(check_alarm): Remove declaration.
 8898 	(XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
 8899 	(XTread_socket): Use ControlPartCode instead of SInt16.
 8900 
 8901 2005-05-13  Nozomu Ando  <nand@mac.com>
 8902 
 8903 	* unexmacosx.c: Include assert.h.
 8904 	(MACOSX_MALLOC_MULT16): New define.
 8905 	[MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
 8906 	ptr is in unexec regions by checking it is multiple of 16.
 8907 	(unexec_malloc_header_t): New typedef.
 8908 	(unexec_malloc, unexec_realloc, unexec_free): Store and use
 8909 	allocated size information in unexec_malloc_header.
 8910 
 8911 2005-05-10  Richard M. Stallman  <rms@gnu.org>
 8912 
 8913 	* xterm.c (noinclude): Add #undef.
 8914 
 8915 	* image.c, xfns.c, xmenu.c: Don't include signal.h.
 8916 
 8917 2005-05-09  Juanma Barranquero  <lekktu@gmail.com>
 8918 
 8919 	* fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
 8920 	(Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
 8921 	Doc fixes.
 8922 
 8923 	* dired.c (Ffile_name_completion): Make argument name
 8924 	match its use in docstring.
 8925 
 8926 2005-05-08  Luc Teirlinck  <teirllm@auburn.edu>
 8927 
 8928 	* eval.c (Fdefvaralias): Remove any pre-existing
 8929 	variable-documentation property of the alias.
 8930 
 8931 2005-05-07  Thien-Thi Nguyen  <ttn@gnu.org>
 8932 
 8933 	* xfns.c (start_hourglass): Do nothing when running on a tty.
 8934 
 8935 2005-05-07  Juanma Barranquero  <lekktu@gmail.com>
 8936 
 8937 	* fns.c (Fchar_table_range): Fix typos in docstring.
 8938 
 8939 2005-05-06  Stefan Monnier  <monnier@iro.umontreal.ca>
 8940 
 8941 	* fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
 8942 
 8943 2005-05-06  Eli Zaretskii  <eliz@gnu.org>
 8944 
 8945 	* lread.c (Flocate_file_internal): Doc fix.
 8946 
 8947 	* Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
 8948 
 8949 2005-05-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 8950 
 8951 	* macselect.c (x_own_selection): Accept Lisp string as result of
 8952 	selection converter function.
 8953 	(x_clear_frame_selections): Don't call x-lost-selection-functions
 8954 	if Emacs is not owner of the selection.
 8955 	(Vmac_services_selection): Put variable and initialization in
 8956 	#ifdef MAC_OSX.
 8957 	(syms_of_macselect) [MAC_OSX]: Set default value of
 8958 	Vmac_services_selection to PRIMARY.
 8959 
 8960 	* macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
 8961 	(mac_handle_tool_bar_click): Remove unused function and declaration.
 8962 	[USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
 8963 	(install_scroll_bar_timer, set_scroll_bar_timer)
 8964 	(control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
 8965 	(get_control_part_bound, x_scroll_bar_handle_press)
 8966 	(x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
 8967 	(x_set_toolkit_scroll_bar_thumb): New functions and declarations.
 8968 	[USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
 8969 	(scroll_bar_timer_event_posted_p): New variables.
 8970 	[USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
 8971 	(SCROLL_BAR_CONTINUOUS_DELAY): New macros.
 8972 	(x_scroll_bar_create): Set control reference with NewControl.
 8973 	(x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
 8974 	Initialize track_top and track_height to nil.
 8975 	(x_scroll_bar_set_handle, x_scroll_bar_note_movement):
 8976 	Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
 8977 	(XTset_vertical_scroll_bar): Don't make space between scroll bar
 8978 	and associated window.
 8979 	(XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
 8980 	from window config.
 8981 	(XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
 8982 	Set track_top and track_height to nil when scroll bar size is changed.
 8983 	Recalculate them if they are nil.
 8984 	(XTread_socket) [MAC_OSX]: Use control kind to determine if the
 8985 	clicked control is a scroll bar.
 8986 	(XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
 8987 	event handler functions.  Don't add modifiers to scroll bar click
 8988 	events.  Call scroll bar release handler when window is deactivated.
 8989 	(mac_initialize): Remove unused code for X toolkit.
 8990 	(syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
 8991 	Initialize Vx_toolkit_scroll_bars to nil.
 8992 
 8993 	* macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
 8994 	New members track_top and track_height.
 8995 
 8996 	* sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
 8997 	init_process when including sys/select.h.
 8998 
 8999 2005-05-05  Luc Teirlinck  <teirllm@auburn.edu>
 9000 
 9001 	* eval.c (Fdefvaralias): Doc fix.
 9002 
 9003 	* xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
 9004 
 9005 2005-05-05  Kim F. Storm  <storm@cua.dk>
 9006 
 9007 	* buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
 9008 	default value.
 9009 	(syms_of_buffer): Add default-cursor-in-non-selected-windows.
 9010 	Fix type of cursor-in-non-selected-windows.
 9011 
 9012 2005-05-03  Jan Djärv  <jan.h.d@swipnet.se>
 9013 
 9014 	* mac.c: #undef init_process so not to conflict with system headers.
 9015 
 9016 2005-05-02  Richard M. Stallman  <rms@gnu.org>
 9017 
 9018 	* buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
 9019 
 9020 	* buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
 9021 
 9022 	* xdisp.c (Vcursor_in_non_selected_windows)
 9023 	(Qcursor_in_non_selected_windows): Vars deleted.
 9024 	(syms_of_xdisp): Don't initialize them.
 9025 	(get_window_cursor_type): Use cursor_in_non_selected_windows
 9026 	buffer slot.
 9027 
 9028 2005-05-02  Kim F. Storm  <storm@cua.dk>
 9029 
 9030 	* macros.c (executing_kbd_macro_index): Rename from
 9031 	executing_macro_index.  All uses changed.
 9032 	(executing_kbd_macro_iterations): Rename from
 9033 	executing_macro_iterations.  All uses changed.
 9034 	(executing_kbd_macro): Rename from executing_macro.
 9035 	All uses changed.
 9036 	(syms_of_macros): Rename Lisp var executing-macro-index to
 9037 	executing-kbd-macro-index.
 9038 
 9039 	* xdisp.c (move_it_in_display_line_to): Fix last change.
 9040 
 9041 2005-05-01  Luc Teirlinck  <teirllm@auburn.edu>
 9042 
 9043 	* xmenu.c (Fx_popup_menu): Doc fix.
 9044 
 9045 	* charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
 9046 
 9047 2005-05-02  Jason Rumney  <jasonr@gnu.org>
 9048 
 9049 	* emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
 9050 
 9051 2005-05-02  Nozomu Ando  <nand@mac.com>
 9052 
 9053 	* sysselect.h: Fix typo.
 9054 
 9055 2005-05-02  Nick Roberts  <nickrob@snap.net.nz>
 9056 
 9057 	* charset.c (Fchars_in_region): Remove as obsolete.
 9058 
 9059 2005-05-01  Kim F. Storm  <storm@cua.dk>
 9060 
 9061 	* xdisp.c (move_it_in_display_line_to): Stop if we move beyond
 9062 	TO_CHARPOS.  This may happen if last glyphs was an image or stretch
 9063 	glyph.
 9064 
 9065 2005-05-01  Luc Teirlinck  <teirllm@auburn.edu>
 9066 
 9067 	* dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
 9068 
 9069 2005-05-01  Richard M. Stallman  <rms@gnu.org>
 9070 
 9071 	* xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
 9072 	If user cancels the menu, quit unless FOR_CLICK.
 9073 
 9074 	* macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
 9075 	All uses changed.
 9076 	(syms_of_macros): Define only executing-kbd-macro, not executing-macro.
 9077 	* keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
 9078 	* macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
 9079 	* commands.h (Vexecuting_kbd_macro): Likewise.
 9080 
 9081 2005-05-01  Thien-Thi Nguyen  <ttn@gnu.org>
 9082 
 9083 	* sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
 9084 
 9085 2005-04-30  Richard M. Stallman  <rms@gnu.org>
 9086 
 9087 	* fileio.c (Ffind_file_name_handler): Handle the `operations'
 9088 	property of the file name handler.
 9089 	(Qoperations): New variable.
 9090 	(syms_of_fileio): Initialize and staticpro it.
 9091 
 9092 	* xdisp.c (set_message_1): Delete xassert.
 9093 
 9094 2005-04-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 9095 
 9096 	* mac.c: Don't include time.h.  Include sysselect.h after systime.h.
 9097 
 9098 	* macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
 9099 
 9100 	* macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
 9101 	before/after including Carbon.h if there is a working mktime.
 9102 
 9103 2005-04-28  Kim F. Storm  <storm@cua.dk>
 9104 
 9105 	* xfaces.c (resolve_face_name): Add arg SIGNAL_P.  Calls changed.
 9106 	Fix cyclic alias check.  If alias loop is detected, signal
 9107 	circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
 9108 
 9109 2005-04-28  Lute Kamstra  <lute@gnu.org>
 9110 
 9111 	* eval.c (do_autoload): Record only autoloads in the autoload
 9112 	property of symbols.
 9113 
 9114 2005-04-28  Nick Roberts  <nickrob@snap.net.nz>
 9115 
 9116 	* emacs.c (USAGE1): Add --basic-display and --quick options.
 9117 
 9118 2005-04-27  Kim F. Storm  <storm@cua.dk>
 9119 
 9120 	* data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
 9121 
 9122 2005-04-26  Richard M. Stallman  <rms@gnu.org>
 9123 
 9124 	* window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
 9125 	(syms_of_window): Doc fixes.
 9126 
 9127 	* indent.c (Fvertical_motion): Undo previous change.
 9128 
 9129 2005-04-26  Kenichi Handa  <handa@m17n.org>
 9130 
 9131 	* fns.c (char_table_range): New function.
 9132 	(Fchar_table_range): Signal an error if characters in the range
 9133 	have inconsistent values.  Don't check the parent.
 9134 
 9135 2005-04-25  Kenichi Handa  <handa@m17n.org>
 9136 
 9137 	* fontset.c (fontset_set): Fix previous change.
 9138 
 9139 2005-04-24  Richard M. Stallman  <rms@gnu.org>
 9140 
 9141 	* indent.c (Fvertical_motion): Bind fontification-functions to nil.
 9142 
 9143 2005-04-24  Eli Zaretskii  <eliz@gnu.org>
 9144 
 9145 	* regex.c (re_search_2, re_match_2_internal): Convert second arg
 9146 	of RE_TRANSLATE to int, to shut up GCC warnings.
 9147 
 9148 	* fileio.c (Fcopy_file): Doc fix.
 9149 	[MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
 9150 	not needed.
 9151 
 9152 2005-04-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 9153 
 9154 	* Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
 9155 	(SOME_MACHINE_OBJECTS): Likewise.
 9156 	(mac.o): Depend on ccl.h.
 9157 	(macselect.o): New target.
 9158 
 9159 	* emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
 9160 	Call syms_of_macselect.
 9161 
 9162 	* frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
 9163 
 9164 	* mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
 9165 	(QCLIPBOARD): Remove variable.
 9166 	(syms_of_mac): Don't initialize it.
 9167 	(Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
 9168 	Remove functions.
 9169 	(syms_of_mac): Don't defsubr them.
 9170 	[TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
 9171 	(QHFS_plus_D, QHFS_plus_C): New variables.
 9172 	(syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
 9173 	[TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
 9174 	(cfstring_create_normalized): New functions.
 9175 	[TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
 9176 	(syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
 9177 
 9178 	* macterm.c (handling_window_update, terminate_flag):
 9179 	Remove variables.
 9180 	(do_window_update, do_ae_quit_application, XTread_socket):
 9181 	Don't use them.
 9182 	(WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
 9183 	[USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
 9184 	(init_service_handler): Move to macselect.c.  Remove declarations.
 9185 	[USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
 9186 	(Qapplication, Qabout): New variables.
 9187 	(syms_of_mac): Initialize them.
 9188 	[USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
 9189 	(Qperform): New variables.
 9190 	(syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
 9191 	(do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
 9192 	(do_menu_choice): Unhighlight menu bar also when menu_id is 0.
 9193 	(mac_store_application_menu_event, init_menu_bar): New functions.
 9194 	[USE_CARBON_EVENTS] (mac_handle_command_event)
 9195 	(init_command_handler): New functions.
 9196 	(mac_handle_window_event): Return noErr on window update event.
 9197 	(do_ae_quit_application): Call mac_store_application_menu_event.
 9198 	(mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
 9199 	and init_menu_bar.
 9200 
 9201 	* macterm.h (x_clear_frame_selections): Add extern.
 9202 
 9203 	* macselect.c: New file for selection processing on Mac OS.
 9204 
 9205 2005-04-23  Richard M. Stallman  <rms@gnu.org>
 9206 
 9207 	* fileio.c (Fcopy_file): New arg MUSTBENEW.
 9208 	(Frename_file): Pass new arg to Fcopy_file.
 9209 
 9210 	* window.c (window_size_fixed): Variable deleted.
 9211 	(syms_of_window): Initialize window-size-fixed to nil.
 9212 	But don't DEFVAR window_size_fixed.
 9213 
 9214 2005-04-23  Andreas Schwab  <schwab@suse.de>
 9215 
 9216 	* m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
 9217 	(START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
 9218 	use lib64 instead of lib.
 9219 	(_LP64) [_ARCH_PPC64]: Define if not defined.
 9220 
 9221 2005-04-23  David Hunter  <hunterd42@comcast.net>  (tiny change)
 9222 
 9223 	* s/ms-w32.h (HAVE_PWD_H): Define.
 9224 
 9225 2005-04-22  Kenichi Handa  <handa@m17n.org>
 9226 
 9227 	* fns.c (copy_sub_char_table): Explicitly copy the default value
 9228 	of the sub-chartable.
 9229 
 9230 	* fontset.c (fontset_set): When a sub-chartable is created,
 9231 	explicitly sets the defalt value.
 9232 
 9233 2005-04-22  Kim F. Storm  <storm@cua.dk>
 9234 
 9235 	* fns.c (Fplist_get): Replace by Fsafe_plist_get.
 9236 	(Fsafe_plist_get): Rename to Fplist_get.
 9237 	(Fsafe_get): Remove, as Fget now uses safe Fplist_get.
 9238 	(defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
 9239 
 9240 	* lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
 9241 
 9242 	* xdisp.c (store_mode_line_string, produce_stretch_glyph)
 9243 	(note_mode_line_or_margin_highlight, note_mouse_highlight):
 9244 	Use Fplist_get instead of Fsafe_plist_get.
 9245 
 9246 	* xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
 9247 
 9248 2005-04-21  Miles Bader  <miles@gnu.org>
 9249 
 9250 	* xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
 9251 
 9252 2005-04-20  Thien-Thi Nguyen  <ttn@gnu.org>
 9253 
 9254 	* sysdep.c: Remove reference to defunct vms-pwd.h.
 9255 	* dired.c: Likewise.  Also, for pwd.h, use HAVE_PWD_H, not !VMS.
 9256 	* editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
 9257 
 9258 	* config.in: Regenerate.
 9259 
 9260 2005-04-20  Kenichi Handa  <handa@m17n.org>
 9261 
 9262 	* lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
 9263 	(CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
 9264 	(CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
 9265 
 9266 	* alloc.c (make_sub_char_table): Argument changed to initial
 9267 	value of the slots.
 9268 
 9269 	* data.c (Faref): Handle special slots used as default values of
 9270 	ascii, eight-bit-control, eight-bit-control.  Don't ignore a
 9271 	default value set for a group of characters.
 9272 	(Faset): Signal an error if IDXVAL is not a valid character code.
 9273 	Make a sub-chartable with correct initial value.
 9274 
 9275 	* fns.c (Fset_char_table_range): Don't set slots used as default
 9276 	values for ascii, eight-bit-control, eight-bit-graphic.
 9277 	Don't call Faref with charset-id.
 9278 	(Fset_char_table_default): Document how to treat normal character
 9279 	argument.  Handle special slots used as default values of ascii,
 9280 	eight-bit-control, eight-bit-control.  Make a sub chartable if
 9281 	necessary.
 9282 
 9283 2005-04-20  Kenichi Handa  <handa@m17n.org>
 9284 
 9285 	* search.c (boyer_moore): Fix previous change.
 9286 
 9287 2005-04-19  Kim F. Storm  <storm@cua.dk>
 9288 
 9289 	* xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
 9290 	face unless last visible char and first invisible char have the
 9291 	same face.  Also use default face if saved_face_id is undefined.
 9292 
 9293 2005-04-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 9294 
 9295 	* macgui.h (MacFontStruct): Remove member `fontname'.  Add member
 9296 	`full_name'.
 9297 	[TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
 9298 	mac_scriptcode member.
 9299 
 9300 	* macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
 9301 	(syms_of_mac): Don't initialize them.
 9302 	(Vmac_charset_info_alist): New variable.
 9303 	(syms_of_mac): Defvar it.
 9304 	(create_text_encoding_info_alist): New function.
 9305 	(decode_mac_font_name, mac_to_x_fontname)
 9306 	(x_font_name_to_mac_font_name, init_font_name_table): Don't hard
 9307 	code the correspondence among XLFD charsets, Mac script codes, and
 9308 	Emacs coding systems.  Use Vmac_charset_info_alist and result of
 9309 	create_text_encoding_info_alist instead.
 9310 	(init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
 9311 	routines also on Mac OS Classic.
 9312 	(init_font_name_table) [!TARGET_API_MAC_CARBON]:
 9313 	Use add_font_name_table_entry.
 9314 	(mac_do_list_fonts): Regard 0 in XLFD scalable fields as
 9315 	specified.  Derive unspecified scalable fields from specified one.
 9316 	(x_list_fonts): Consider Valternate_fontname_alist.
 9317 	(kDefaultFontSize): Change value from 9 to 12.
 9318 	(XLoadQueryFont): Get decoded font family, font face, and charset
 9319 	from x_font_name_to_mac_font_name.  Set full name of loaded font.
 9320 	(mac_unload_font): Free `full_name' member.
 9321 	(x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
 9322 	NULL.  Copy full_name member of struct MacFontStruct to that of
 9323 	struct font_info.
 9324 
 9325 2005-04-19  Kim F. Storm  <storm@cua.dk>
 9326 
 9327 	* xdisp.c (handle_stop): Set saved_face_id to current face if
 9328 	selective_display_ellipsis_p so ellipsis will be shown in same
 9329 	face as preceding text.
 9330 	(setup_for_ellipsis): Don't set saved_face_id here.
 9331 	(next_element_from_display_vector): Default to saved_face_id.
 9332 
 9333 	* fns.c (Fsafe_get): New function.
 9334 	(syms_of_fns): Defsubr it.
 9335 
 9336 	* lisp.h (Fsafe_get): EXFUN it.
 9337 
 9338 	* xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
 9339 	loops in case of bad face property lists.  Limit number of face
 9340 	alias lookups to 10 (in case of face alias loops).
 9341 
 9342 2005-04-18  Kim F. Storm  <storm@cua.dk>
 9343 
 9344 	* dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
 9345 	It replaces the corresponding member from struct window, as a
 9346 	window may now show multiple overlay arrows.
 9347 	Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
 9348 
 9349 	* dispnew.c (row_equal_p, update_window_line, scrolling_window):
 9350 	Compare overlay_arrow_bitmap than overlay_arrow_p members.
 9351 
 9352 	* fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
 9353 	rather than from window.
 9354 	(update_window_fringes): Compare overlay_arrow_bitmap rather than
 9355 	overlay_arrow_p members.
 9356 	(Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
 9357 	if not default.
 9358 
 9359 	* window.h (struct window): Remove member overlay_arrow_bitmap.
 9360 
 9361 	* window.c (make_window): Don't initialize overlay_arrow_bitmap.
 9362 
 9363 	* xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
 9364 	Calls changed.  Don't check for overlay-arrow-bitmap property here.
 9365 	(overlay_arrow_at_row): Remove PBITMAP arg.  Instead, if left
 9366 	fringe is present, return Lisp integer for bitmap (or -1 for default).
 9367 	Fix value of overlay-arrow-bitmap property to be a symbol, use
 9368 	lookup_fringe_bitmap to parse it.
 9369 	(display_line): Change call to overlay_arrow_at_row.  Store integer
 9370 	return value as overlay bitmap in row rather than window.
 9371 	Only show overlay arrow if row displays text, or if no other overlay
 9372 	arrow is seen in window (if overlay marker is at point-max).
 9373 
 9374 2005-04-18  Thien-Thi Nguyen  <ttn@gnu.org>
 9375 
 9376 	* xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
 9377 
 9378 2005-04-18  Lute Kamstra  <lute@gnu.org>
 9379 
 9380 	* lread.c (Vloads_in_progress): Static.
 9381 	* fns.c (Vloads_in_progress): Remove extern.
 9382 	(load_in_progress): Add extern.
 9383 	(Frequire): Use load_in_progress instead of Vloads_in_progress.
 9384 
 9385 2005-04-18  Thien-Thi Nguyen  <ttn@gnu.org>
 9386 
 9387 	* xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
 9388 
 9389 2005-04-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 9390 
 9391 	* macterm.c (XTread_socket): Don't beep on keyboard input even if
 9392 	no frame is visible.
 9393 
 9394 2005-04-16  Dan Nicolaescu  <dann@ics.uci.edu>
 9395 
 9396 	* term.c (struct keys): Add support for shifted keys.
 9397 
 9398 2005-04-16  Richard M. Stallman  <rms@gnu.org>
 9399 
 9400 	* xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
 9401 	(set_message): Call with_echo_area_buffer with WHICH = 0.
 9402 	(set_message_1): Erase the echo area buffer first thing.
 9403 	(echo_area_display): Don't clear echo_message_buffer.
 9404 
 9405 2005-04-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 9406 
 9407 	* Makefile.in (mac.o): Depend on charset.h and coding.h.
 9408 
 9409 	* mac.c: Include charset.h and coding.h.
 9410 	[TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
 9411 	[TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
 9412 	[TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
 9413 
 9414 	* macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
 9415 
 9416 	* image.c [MAC_OSX] (image_load_quartz2d): Likewise.
 9417 
 9418 	* macterm.c (x_autoselect_window_p): Remove variable.
 9419 	(last_window): New variable.
 9420 	(XTreassert_line_highlight, x_change_line_highlight):
 9421 	Remove declarations.
 9422 	(mac_focus_changed, x_detect_focus_change): New functions and
 9423 	declarations.
 9424 	(XTextExtents16, front_emacs_window): Remove function.
 9425 	(mac_focus_frame): New function.
 9426 	(XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
 9427 	(mac_check_for_quit_char): Use it instead of front_emacs_window.
 9428 	(x_scroll_bar_report_motion): Obtain window from control owner.
 9429 	(x_make_frame_invisible): Set window manager size hint.
 9430 	(do_mouse_moved): Remove function.
 9431 	(XTread_socket): Move its contents here.  Generate select-window
 9432 	event on mouse movement if needed.  Use x_detect_focus_change on
 9433 	activate/deactivate events.  Don't deiconify frame or invalidate
 9434 	window rectangle when dnd items are dropped.
 9435 	Don't activate/deactivate root control.
 9436 	(frame_highlight, frame_unhighlight): Activate/deactivate root
 9437 	control here.
 9438 	(syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
 9439 
 9440 	* macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
 9441 	New extern.
 9442 
 9443 2005-04-15  Luc Teirlinck  <teirllm@auburn.edu>
 9444 
 9445 	* Makefile.in: Define new macro TOOLTIP_SUPPORT.
 9446 	(lisp): Use it.
 9447 	(SOME_MACHINE_LISP): Add tooltip.
 9448 
 9449 2005-04-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 9450 
 9451 	* mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
 9452 	Don't include TextEncodingConverter.h.
 9453 	(mac_system_script_code, Vmac_system_locale): New variables.
 9454 	(syms_of_mac): Defvar them.
 9455 	(mac_get_system_locale): New function.
 9456 
 9457 	* macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
 9458 	Use ENCODE_SYSTEM to encode title bar string.
 9459 	(x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
 9460 	(Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
 9461 	Use CFStringGetSystemEncoding to get system default string encoding.
 9462 
 9463 	* macterm.c [!TARGET_API_MAC_CARBON]: Don't include
 9464 	TextEncodingConverter.h.
 9465 
 9466 2005-04-13  Steven Tamm  <steventamm@mac.com>
 9467 
 9468 	* macterm.c (syms_of_macterm): Remove redundant definition of
 9469 	mac-pass-control-to-system.
 9470 
 9471 2005-04-12  Stefan Monnier  <monnier@iro.umontreal.ca>
 9472 
 9473 	* window.c (Fset_window_configuration): Be careful when you choose
 9474 	among several possible points for the new_current_buffer.
 9475 
 9476 2005-04-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 9477 
 9478 	* keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
 9479 	poll_for_input_1.  Set interrupt_input_pending to 1 instead.
 9480 	(Qlanguage_change) [MAC_OS]: New variable.
 9481 	(syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
 9482 	(kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
 9483 
 9484 	* macterm.c (mac_keyboard_text_encoding)
 9485 	(current_mac_keyboard_text_encoding): Remove variables.
 9486 	(XTread_socket): Store language-change event if keyboard script change
 9487 	is detected.  Don't convert input to `mac_keyboard_text_encoding'.
 9488 	(syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
 9489 
 9490 	* termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
 9491 
 9492 2005-04-10  Richard M. Stallman  <rms@gnu.org>
 9493 
 9494 	* emacs.c (standard_args): Rename --bare-bones to --quick.
 9495 	Add -D aka --basic-display.
 9496 
 9497 	* buffer.c (Fmake_indirect_buffer): Clear out some local variables.
 9498 
 9499 2005-04-09  Richard M. Stallman  <rms@gnu.org>
 9500 
 9501 	* keymap.c (where_is_internal): Convert a string used as event type
 9502 	into "(any string)".
 9503 
 9504 	* lread.c (Vloads_in_progress): Not static.
 9505 	* fns.c (Vloads_in_progress): Add extern.
 9506 	(Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
 9507 
 9508 2005-04-09  Thien-Thi Nguyen  <ttn@surf.glug.org>
 9509 
 9510 	* dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
 9511 
 9512 2005-04-09  Lute Kamstra  <lute@gnu.org>
 9513 
 9514 	* print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
 9515 	within the accessible part of the buffer.
 9516 
 9517 2005-04-09  Kim F. Storm  <storm@cua.dk>
 9518 
 9519 	* lread.c (readevalloop): Add args START and END as region in
 9520 	current buffer to read.  Callers changed.
 9521 	When specified, narrow to this region only when reading,
 9522 	not during eval.  Track next point to read from during eval.
 9523 	Also restore point to "real" buffer position before eval.
 9524 	(Feval_region): Don't save excursion and restriction here, and
 9525 	don't narrow to region.  Just pass region to readevalloop.
 9526 	Note: Point is now preserved even when PRINTFLAG is nil.
 9527 
 9528 2005-04-08  Kim F. Storm  <storm@cua.dk>
 9529 
 9530 	* xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
 9531 
 9532 2005-04-06  Kim F. Storm  <storm@cua.dk>
 9533 
 9534 	* emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
 9535 
 9536 2005-04-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 9537 
 9538 	* mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
 9539 	(Fmac_get_preference): Doc fix.
 9540 
 9541 	* macfns.c (Fx_create_frame, x_create_tip_frame):
 9542 	Add "fontset-mac" to fallback font/fontsets.
 9543 
 9544 2005-04-04  Kim F. Storm  <storm@cua.dk>
 9545 
 9546 	* alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
 9547 
 9548 	* eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
 9549 	Call it again after autoload.
 9550 
 9551 2005-04-02  Jan Djärv  <jan.h.d@swipnet.se>
 9552 
 9553 	* alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
 9554 	mallopt.
 9555 
 9556 	* ralloc.c (r_alloc_init): Ditto.
 9557 
 9558 2005-04-01  Kenichi Handa  <handa@m17n.org>
 9559 
 9560 	* lisp.h (Vascii_upcase_table, Vascii_canon_table)
 9561 	(Vascii_eqv_table): Extern them.
 9562 
 9563 	* casetab.c (set_case_table): If standard is nonzero, setup
 9564 	Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
 9565 
 9566 	* search.c (looking_at_1): Use current_buffer->case_canon_table,
 9567 	not DOWNCASE_TABLE.
 9568 	(string_match_1): Likewise.
 9569 	(fast_c_string_match_ignore_case): Use Vascii_canon_table, not
 9570 	Vascii_downcase_table.
 9571 	(fast_string_match_ignore_case): Likewise.
 9572 	(search_buffer): Fix checking of boyer-moore usability.
 9573 	(boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
 9574 	No need of translating characters in PAT.  Fix calculation of
 9575 	simple_translate.
 9576 
 9577 2005-03-31  Stefan Monnier  <monnier@iro.umontreal.ca>
 9578 
 9579 	* xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
 9580 	(x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
 9581 	Use XtNtopShadowPixel and XtNbottomShadowPixel.
 9582 	(x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
 9583 	really work and that breaks with some versions of Xaw3d.
 9584 
 9585 2005-03-31  Kenichi Handa  <handa@m17n.org>
 9586 
 9587 	* coding.c (syms_of_coding): Fix previous change.
 9588 
 9589 2005-03-30  Stefan Monnier  <monnier@iro.umontreal.ca>
 9590 
 9591 	* fileio.c (search_embedded_absfilename): Fix last change.
 9592 
 9593 2005-03-25  Kenichi Handa  <handa@m17n.org>
 9594 
 9595 	* coding.c (syms_of_coding): Suggest to use set-coding-category in
 9596 	the docstring of coding-category-list.
 9597 
 9598 2005-03-31  Kim F. Storm  <storm@cua.dk>
 9599 
 9600 	* keyboard.c (Qmouse_fixup_help_message): New var.
 9601 	(syms_of_keyboard): Intern and staticpro it.
 9602 	(show_help_echo): Apply mouse-fixup-help-message to help string.
 9603 
 9604 2005-03-30  Kim F. Storm  <storm@cua.dk>
 9605 
 9606 	* xdisp.c (display_line): Allow multiple overlay arrows in window.
 9607 
 9608 2005-03-28  Stefan Monnier  <monnier@iro.umontreal.ca>
 9609 
 9610 	* fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
 9611 	(file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
 9612 	(Ffile_name_absolute_p): Use it.
 9613 	(search_embedded_absfilename): New fun, extracted from
 9614 	Fsubstitute_in_file_name.  Use file_name_absolute_p.
 9615 	Free the pw data after use.
 9616 	(Fsubstitute_in_file_name): Use it.
 9617 	After cutting a prefix, re-check file-name-handler.
 9618 
 9619 2005-03-26  Lennart Borgman  <lennart.borgman.073@student.lu.se>
 9620 
 9621 	* w32term.h (x_output): Add focus_state.
 9622 
 9623 	* w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
 9624 	(w32_read_socket) <WM_SETFOCUS>: Call w32_detect_focus_change.
 9625 
 9626 2005-03-25  Stefan Monnier  <monnier@iro.umontreal.ca>
 9627 
 9628 	* minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
 9629 	Use Fexit_minibuffer.
 9630 	(Fexit_minibuffer): Mark it as no-return, deactivate the mark.
 9631 
 9632 2005-03-24  Stefan Monnier  <monnier@iro.umontreal.ca>
 9633 
 9634 	* dired.c (Ffile_attributes): Add a missing gcpro.
 9635 
 9636 	* alloc.c (make_number): The arg can be bigger than `int'.
 9637 	* lisp.h (make_number): Make prototype more precise.
 9638 
 9639 	* process.c, dired.c (Vfile_name_coding_system)
 9640 	(Vdefault_file_name_coding_system):
 9641 	* callproc.c (Vdoc_file_name, Vfile_name_coding_system)
 9642 	(Vdefault_file_name_coding_system): Remove unused declarations.
 9643 
 9644 2005-03-24  Jan Djärv  <jan.h.d@swipnet.se>
 9645 
 9646 	* xmenu.c (create_and_show_popup_menu): Just remove menu and return
 9647 	if it failed to pop up (Gnome "show pointer on ctrl" option makes
 9648 	menus fail to pop up).
 9649 
 9650 2005-03-24  Stefan Monnier  <monnier@iro.umontreal.ca>
 9651 
 9652 	* xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
 9653 	Just prepend a backslash without replacing the NBSP by an SPC.
 9654 
 9655 2005-03-22  Kim F. Storm  <storm@cua.dk>
 9656 
 9657 	* xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
 9658 	* dispextern.h (lookup_derived_face): Fix prototype.
 9659 	* msdos.c (XMenuActivate): Fix call to lookup_derived_face.
 9660 
 9661 	* xdisp.c (handle_single_display_spec): Derive left-fringe and
 9662 	right-fringe face from fringe face.
 9663 
 9664 	* fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
 9665 	Derive face from fringe face.
 9666 
 9667 2005-03-22  Jan Djärv  <jan.h.d@swipnet.se>
 9668 
 9669 	* xrdb.c (x_load_resources): Undo previous change (2005-03-18).
 9670 
 9671 2005-03-22  David Kastrup  <dak@gnu.org>
 9672 
 9673 	* textprop.c (Fnext_char_property_change)
 9674 	(Fprevious_char_property_change): Allow marker as limit.
 9675 	(Fnext_single_char_property_change)
 9676 	(Fprevious_single_char_property_change): Check that limit is a
 9677 	number in strings.
 9678 	(Fnext_single_char_property_change): Coerce position to integer.
 9679 	(Fprevious_single_char_property_change): Same here.
 9680 
 9681 2005-03-21  Thien-Thi Nguyen  <ttn@gnu.org>
 9682 
 9683 	* s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
 9684 
 9685 2005-03-19  Stefan Monnier  <monnier@iro.umontreal.ca>
 9686 
 9687 	* frame.c (Fignore_event): Remove.
 9688 	(syms_of_frame): Don't defsubr it.
 9689 
 9690 	* keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
 9691 	redundant `ignore-event'.
 9692 
 9693 2005-03-19  Eli Zaretskii  <eliz@gnu.org>
 9694 
 9695 	* unexec.c (write_segment, unexec): Move these functions to avoid
 9696 	forward references (which cause errors with "gcc -gcoff").
 9697 
 9698 2005-03-18  Jan Djärv  <jan.h.d@swipnet.se>
 9699 
 9700 	* xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
 9701 	that it doesn't become "tooltip".  The specbind is enough.
 9702 
 9703 	* xrdb.c (x_load_resources): Use different char *helv when I18N
 9704 	is present.
 9705 
 9706 2005-03-17  Kenichi Handa  <handa@m17n.org>
 9707 
 9708 	* coding.c (syms_of_coding): Docstring of coding-category-list fixed.
 9709 
 9710 2005-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
 9711 
 9712 	* xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
 9713 	Use xic_create_fontsetname even for non-Motif menus.
 9714 	Don't forget to free the fontsetname.
 9715 
 9716 	* xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
 9717 
 9718 2005-03-17  Richard M. Stallman  <rms@gnu.org>
 9719 
 9720 	* dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
 9721 
 9722 	* fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
 9723 	(Fmake_symbolic_link): Use G to read the new file name.
 9724 
 9725 	* callint.c (Finteractive): Document G option.
 9726 	(Fcall_interactively): Implement G option.
 9727 
 9728 	* buffer.c (buffer_lisp_local_variables): New function,
 9729 	broken out from Fbuffer_local_variables.
 9730 	(clone_per_buffer_values): Use buffer_lisp_local_variables.
 9731 
 9732 2005-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
 9733 
 9734 	* xfns.c (xic_create_fontsetname): Add `motif' argument.
 9735 	Always return a freshly allocated string.
 9736 	(xic_create_xfontset): Adjust call.
 9737 
 9738 	* xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
 9739 	Use xic_create_fontsetname to create a fontset so utf-8 locales work.
 9740 	(dump_realized_face): Fix warning.
 9741 
 9742 	* emacs.c (Fkill_emacs): YAILOM.
 9743 
 9744 	* frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
 9745 
 9746 2005-03-17  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 9747 
 9748 	* mac.c (HASHKEY_TERMINAL): Remove.
 9749 	(HASHKEY_MAX_NID): New macro.
 9750 	(xrm_q_get_resource_1): Rename from xrm_q_get_resource.  Add extra
 9751 	argument.
 9752 	(xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
 9753 	(xrm_create_database, xrm_q_put_resource)
 9754 	(xrm_merge_string_database, xrm_q_get_resource_1)
 9755 	(xrm_q_get_resource): Change resource database representation so
 9756 	that it may not use multiple hash tables for a single database.
 9757 	[TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
 9758 
 9759 2005-03-16  Stefan Monnier  <monnier@iro.umontreal.ca>
 9760 
 9761 	* xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
 9762 
 9763 	* coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
 9764 	locale-coding-system, as was already done for WINDOWSNT.
 9765 
 9766 	* keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
 9767 	translation for chars in the 0-255 range.
 9768 
 9769 2005-03-16  Lute Kamstra  <lute@gnu.org>
 9770 
 9771 	* floatfns.c (Ffloor): Doc fix.
 9772 
 9773 2005-03-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 9774 
 9775 	* mac.c: Include macterm.h instead of directly including Carbon.h.
 9776 	[TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
 9777 	(Qarray, Qdictionary): New variables.
 9778 	(syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
 9779 	[TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
 9780 	[TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
 9781 	[TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
 9782 	in callback for CFDictionaryApplyFunction.
 9783 	[TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
 9784 	(cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
 9785 	(cfobject_desc_to_lisp, cfdictionary_add_to_list)
 9786 	(cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
 9787 	[TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
 9788 	(syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
 9789 	(P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
 9790 	(skip_white_space, parse_comment, parse_include_file)
 9791 	(parse_binding, parse_component, parse_resource_name, parse_value)
 9792 	(parse_resource_line, xrm_create_database, xrm_q_put_resource)
 9793 	(xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
 9794 	(xrm_cfproperty_list_to_value, xrm_get_preference_database):
 9795 	New functions.
 9796 
 9797 	* macfns.c (mac_get_rdb_resource): Remove function.
 9798 	(x_get_string_resource): Use xrm_get_resource.
 9799 
 9800 	* macgui.h (XrmDatabase): Typedef to Lisp_Object.
 9801 
 9802 	* macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
 9803 	name_list_element.
 9804 	(mac_make_rdb): Create resource database from preferences and
 9805 	argument string.
 9806 	(mac_term_init): Save resource database to cddr part of
 9807 	name_list_element.
 9808 
 9809 	* macterm.h (xrm_merge_string_database, xrm_get_resource)
 9810 	(xrm_get_preference_database): Add externs.
 9811 	[TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
 9812 	(cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
 9813 	(cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
 9814 
 9815 	* process.c (init_process): Change `#ifdef DARWIN' to `#if
 9816 	defined (DARWIN) || defined (MAC_OSX)'.
 9817 
 9818 	* s/darwin.h (DARWIN): Don't define.
 9819 
 9820 2005-03-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 9821 
 9822 	* macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
 9823 	Remove unused variables.
 9824 	(syms_of_macfns): Don't initialize them.  Likewise for
 9825 	Qface_set_after_frame_default.  Defvar and initialize
 9826 	Vx_window_horizontal_drag_shape.
 9827 	(x_set_mouse_color): Change mouse pointer shape.
 9828 	(mac_window) [!MAC_OSX]: Create root control.
 9829 	(Fx_create_frame): Remove initializations of mouse pointer shapes.
 9830 	(hourglass_started): New function (from xfns.c).
 9831 	(start_hourglass, cancel_hourglass): Put function body in #ifdef
 9832 	MAC_OSX.
 9833 	(show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
 9834 	indicator for each non-tooltip frame if needed, and show it.
 9835 	(hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
 9836 
 9837 	* macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
 9838 	Controls.h.  Use ThemeCursor instead of CursHandle.
 9839 
 9840 	* macterm.c (activate_scroll_bars, deactivate_scroll_bars):
 9841 	Remove functions and declarations.
 9842 	(mac_set_colors): Take argument for saving background color.
 9843 	All callers changed.
 9844 	(XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
 9845 	(mac_draw_rectangle, mac_draw_string_common): Save and Restore
 9846 	background color.
 9847 	(x_update_end, mac_do_track_drag): Don't reset background color.
 9848 	(mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
 9849 	Use SetThemeCursor.
 9850 	(x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
 9851 	indicator control to the upper-right corner of the window.
 9852 	(arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
 9853 	(do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
 9854 	(do_window_update): Update controls after updating content area.
 9855 	(mac_handle_window_event): Remove unused extern.
 9856 	(XTread_socket): Check both control handle and control part code
 9857 	to determine whether a scroll bar is clicked.  Activate/deactivate
 9858 	root control instead of contained scroll bar controls.
 9859 	(make_mac_terminal_frame): Use ThemeCursor constants.
 9860 
 9861 	* macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
 9862 	New member hourglass_control.
 9863 	(HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
 9864 	(activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
 9865 
 9866 2005-03-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 9867 
 9868 	* macterm.c (keycode_to_xkeysym_table): Change mapping so that it
 9869 	coincides with that in Apple X11 except `clear', `enter' on
 9870 	laptops, and fn + `enter' on laptops.
 9871 
 9872 2005-03-12  Stefan Monnier  <monnier@iro.umontreal.ca>
 9873 
 9874 	* xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
 9875 	(list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
 9876 	(digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
 9877 
 9878 	* xfns.c (xic_defaut_fontset): New constant.
 9879 	(xic_create_fontsetname): New function.
 9880 	Extracted from create_frame_xic.  Try to generate a slightly
 9881 	better fontset.
 9882 	(xic_create_xfontset): Use it.
 9883 	(create_frame_xic): Simplify.
 9884 
 9885 2005-03-11  Stefan Monnier  <monnier@iro.umontreal.ca>
 9886 
 9887 	* fileio.c (Fmake_symbolic_link): Fix last change.
 9888 
 9889 2005-03-11  Richard M. Stallman  <rms@gnu.org>
 9890 
 9891 	* fileio.c (Frename_file, Fadd_name_to_file)
 9892 	(Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
 9893 	expand the basename of FILE relative to it.
 9894 
 9895 2005-03-11  Kenichi Handa  <handa@m17n.org>
 9896 
 9897 	* fileio.c (Finsert_file_contents): Call Fcheck_coding_system
 9898 	before calling setup_coding_system so that autoloading of a coding
 9899 	system work.
 9900 
 9901 2005-03-10  Jan Djärv  <jan.h.d@swipnet.se>
 9902 
 9903 	* xfns.c (hourglass_started): New function.
 9904 
 9905 	* dispextern.h: Declare hourglass_started.
 9906 
 9907 	* keyboard.c (Fexecute_extended_command): Restart hourglass
 9908 	after call to Fcompleting_read if already started.
 9909 
 9910 	* gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
 9911 	GTK main loop is entered in xterm.c, thus doing the redraw.
 9912 
 9913 2005-03-10  Kim F. Storm  <storm@cua.dk>
 9914 
 9915 	* xdisp.c (pos_visible_p): Fix X value in last line of buffer.
 9916 
 9917 2005-03-08  Kenichi Handa  <handa@m17n.org>
 9918 
 9919 	* frame.c (x_set_font): Call set_default_ascii_font if an
 9920 	available font is found.
 9921 
 9922 	* fontset.c (set_default_ascii_font): New function.
 9923 	(syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
 9924 
 9925 	* fontset.h (set_default_ascii_font): Extern it.
 9926 
 9927 2005-03-07  Kim F. Storm  <storm@cua.dk>
 9928 
 9929 	* xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
 9930 	(clear_image_cache_count): New var.
 9931 	(redisplay_internal): Don't clear face and image caches in the
 9932 	middle of redisplay; do it afterwards.
 9933 
 9934 	* blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
 9935 
 9936 	* xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
 9937 	is valid.  If not, clear phys_cursor_on_p and return.
 9938 
 9939 2005-03-07  Andreas Schwab  <schwab@suse.de>
 9940 
 9941 	* blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
 9942 
 9943 2005-03-06  Richard M. Stallman  <rms@gnu.org>
 9944 
 9945 	* keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
 9946 
 9947 	* eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
 9948 	(Feval, Ffuncall): Use CHECK_CONS_LIST.
 9949 
 9950 	* lisp.h (CHECK_CONS_LIST): New macro (two definitions).
 9951 
 9952 	* blockinput.h (UNBLOCK_INPUT_TO): New macro.
 9953 	(TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
 9954 
 9955 2005-03-05  Juri Linkov  <juri@jurta.org>
 9956 
 9957 	* emacs.c (USAGE1): Replace Info node name "command arguments"
 9958 	with "emacs invocation".
 9959 	(USAGE3): Fix usage of `--color=MODE' which actually doesn't
 9960 	allow arguments `--color' and `MODE' to be separated by space.
 9961 	Add --no-blinking-cursor, -nbc.
 9962 	(standard_args): Add -nbc, --no-blinking-cursor.
 9963 
 9964 2005-03-04  Thien-Thi Nguyen  <ttn@gnu.org>
 9965 
 9966 	* s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
 9967 	* s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
 9968 	* fileio.c (Fexpand_file_name) [VMS]:
 9969 	Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
 9970 	* doc.c (munge_doc_file_name) [VMS]: Likewise.
 9971 	(Fsnarf_documentation): Call munge_doc_file_name.
 9972 
 9973 2005-03-04  Thien-Thi Nguyen  <ttn@gnu.org>
 9974 
 9975 	* s/vms.h (FILE_SYSTEM_CASE): New macro.
 9976 	* fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
 9977 	"manually"; this is now handled generally via FILE_SYSTEM_CASE.
 9978 
 9979 2005-03-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 9980 
 9981 	* emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
 9982 	defined (MAC_OSX) && defined (HAVE_CARBON)'.
 9983 
 9984 	* image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
 9985 
 9986 	* mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
 9987 	[!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
 9988 	(posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
 9989 	(mac_clear_font_name_table): Move extern to macterm.h.
 9990 
 9991 	* macfns.c (install_window_handler): Move extern to macterm.h.
 9992 	(Fx_file_dialog): Check STRINGP (default_filename) to see it is
 9993 	valid.  Don't check !NILP (dir) because it is already checked with
 9994 	CHECK_STRING.
 9995 	(Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
 9996 	specifying the default location and obtaining the selected filename.
 9997 
 9998 	* macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
 9999 
10000 	* macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
10001 	are included via Carbon.h.
10002 
10003 	* macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
10004 	Define USE_CARBON_EVENTS to 1.
10005 	(qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
10006 	(x_free_frame_resources): Call remove_window_handler for
10007 	non-tooltip windows.
10008 	[TARGET_API_MAC_CARBON]: Don't include headers that are included
10009 	via Carbon.h.
10010 	[TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
10011 	(mac_do_receive_dragUPP): New variables.
10012 	(mac_handle_service_event, init_service_handler): Put declarations
10013 	and definitions in #ifdef MAC_OSX.
10014 	(install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
10015 	drag-and-drop handler functions and register them.
10016 	(remove_window_handler): New function.
10017 	(do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
10018 	Use fsspec_to_posix_pathname.
10019 	(main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
10020 	(XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
10021 	[MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
10022 	Set default cursors.
10023 	(mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX]: Don't call
10024 	init_service_handler or init_quit_char_handler.
10025 	(mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
10026 
10027 	* macterm.h (install_window_handler, remove_window_handler)
10028 	(posix_pathname_to_fsspec, fsspec_to_posix_pathname)
10029 	(mac_clear_font_name_table): New externs.
10030 
10031 2005-03-03  Thien-Thi Nguyen  <ttn@gnu.org>
10032 
10033 	* fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
10034 	(Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
10035 	(Fexpand_file_name): Likewise.
10036 
10037 2005-03-03  Thien-Thi Nguyen  <ttn@gnu.org>
10038 
10039 	* emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
10040 	no longer special-case VMS.  Add bogus return value.
10041 
10042 2005-03-02  Kim F. Storm  <storm@cua.dk>
10043 
10044 	* dispextern.h (XASSERTS): Define to 0 if not already defined.
10045 	(xassert) [!XASSERTS]: Define dummy version.
10046 
10047 2005-03-02  Kim F. Storm  <storm@cua.dk>
10048 
10049 	* xdisp.c (redisplay_window): YABX (yet another bogus xassert).
10050 	Reported by David Kastrup.
10051 
10052 2005-03-01  Ehud Karni  <ehud@unix.mvs.co.il>
10053 
10054 	* xdisp.c (get_next_display_element): Fix control and escape
10055 	glyph from display vector.
10056 
10057 2005-03-01  Stefan Monnier  <monnier@iro.umontreal.ca>
10058 
10059 	* keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
10060 
10061 2005-02-27  Richard M. Stallman  <rms@gnu.org>
10062 
10063 	* xdisp.c (fast_find_position): Rename END to BEG.
10064 	(syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
10065 
10066 2005-02-27  Jan Djärv  <jan.h.d@swipnet.se>
10067 
10068 	* gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
10069 	gtk_window_resize and x_wm_set_size_hint.
10070 
10071 2005-02-25  Kim F. Storm  <storm@cua.dk>
10072 
10073 	* dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
10074 
10075 	* xdisp.c (init_from_display_pos): Don't read past end of
10076 	it->overlay_strings array.
10077 
10078 2005-02-25  Stephan Stahl  <stahl@eos.franken.de>  (tiny change)
10079 
10080 	* buffer.c (syms_of_buffer): Fix typo.
10081 
10082 2005-02-23  Lute Kamstra  <lute@gnu.org>
10083 
10084 	* buffer.c (Foverlay_buffer): Doc fix.
10085 
10086 2005-02-22  Kim F. Storm  <storm@cua.dk>
10087 
10088 	* minibuf.c (Ftry_completion, Fall_completions): Allow both string
10089 	and symbol keys in alists and hash tables.
10090 
10091 	* xdisp.c (fast_find_position): Fix search for start of overlay.
10092 
10093 2005-02-21  Kim F. Storm  <storm@cua.dk>
10094 
10095 	* window.c (window_scroll_pixel_based): When scrolling backwards,
10096 	handle partial visible line at end of window even when we hit PT.
10097 
10098 2005-02-21  Stefan Monnier  <monnier@iro.umontreal.ca>
10099 
10100 	* keymap.h: Declare Fcurrent_active_maps, used in doc.c.
10101 
10102 2005-02-21  Kim F. Storm  <storm@cua.dk>
10103 
10104 	* xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
10105 	I think those asserts are bogus if buffer contains invisible text
10106 	or images.
10107 
10108 2005-02-21  David Kastrup  <dak@gnu.org>
10109 
10110 	* gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
10111 
10112 2005-02-20  Kim F. Storm  <storm@cua.dk>
10113 
10114 	* xdisp.c (pos_visible_p): Be sure to move to the specified
10115 	position.  Always get the full ascent / descent of the
10116 	corresponding row, to return reliable rtop and rbot values.
10117 	(back_to_previous_visible_line_start): Fix 2005-01-18 change.
10118 	Must look one character back, as back_to_previous_line_start
10119 	returns position after the newline.
10120 	(move_it_vertically_backward): Fix heuristic for when to move further
10121 	back in case line_height * 2/3 is larger than window height.
10122 	(cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
10123 	as it does not do anything anymore.  Add arg current_matrix_p to
10124 	use current matrix rather than desired matrix when set.
10125 	(try_cursor_movement): Don't scroll to make cursor row fully
10126 	visible if cursor didn't move.  This avoids unexpected recentering
10127 	in case of blinking cursor or accepting process output.
10128 	Use current matrix to check cursor row visibility.
10129 	(redisplay_window): Fix whether to recenter or move to top in case
10130 	cursor line is taller than window height.
10131 	(find_first_unchanged_at_end_row): Stop search if we reach a row
10132 	which not enabled (instead of abort).
10133 
10134 2005-02-18  Kim F. Storm  <storm@cua.dk>
10135 
10136 	* xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
10137 	to be nil in a :box attribute value list; customize prints that
10138 	as lisp value when no box color is specified.
10139 
10140 	* .gdbinit (pitx, pit): Pretty print display iterator.
10141 	(prowx, prow): Pretty print glyph row.
10142 	(pcursorx, pcursor): Pretty print a window cursor.
10143 	(pwinx, pwin): Pretty print struct window.
10144 
10145 2005-02-18  Stefan Monnier  <monnier@iro.umontreal.ca>
10146 
10147 	* alloc.c (BLOCK_BYTES): Harmless typo.
10148 
10149 2005-02-17  Andreas Schwab  <schwab@suse.de>
10150 
10151 	* xfns.c (hack_wm_protocols): Use correct type for last parameter
10152 	of XGetWindowProperty to avoid aliasing issues.
10153 	(Fx_window_property): Likewise.
10154 
10155 	* xselect.c (Fx_disown_selection_internal): Use union of struct
10156 	input_event and struct selection_input_event to avoid aliasing issues.
10157 
10158 	* xterm.c (handle_one_xevent): Use union of struct input_event and
10159 	struct selection_input_event to avoid aliasing issues.
10160 	(SET_SAVED_MENU_EVENT): Adapt reference to inev.
10161 
10162 2005-02-17  Kim F. Storm  <storm@cua.dk>
10163 
10164 	* dispextern.h (enum it_method): New enum.
10165 	(GET_FROM_*): Its members.
10166 	(struct it): Change member method from function pointer to enum.
10167 
10168 	* xdisp.c (check_it, init_from_display_pos, handle_stop)
10169 	(setup_for_ellipsis, handle_single_display_spec)
10170 	(handle_composition_prop, next_overlay_string)
10171 	(get_overlay_strings, reseat_1, reseat_to_string)
10172 	(next_element_from_ellipsis, BUFFER_POS_REACHED_P)
10173 	(in_display_vector_p, display_line, get_next_display_element):
10174 	Change it->method from function pointer to enum.
10175 	(get_next_element): New array to map it->method to function.
10176 	(get_next_display_element): Use it.
10177 	(set_iterator_to_next): Use switch instead of if/else chain.
10178 
10179 2005-02-15  Benjamin Riefenstahl  <Benjamin.Riefenstahl@epost.de>
10180 
10181 	* w32select.c: Summary: Thorough rework to implement Unicode
10182 	clipboard operations and delayed rendering.
10183 
10184 	Drop last_clipboard_text and related code, keep track of
10185 	ownership via clipboard_owner instead.  Drop old #if0 sections.
10186 
10187 	(DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
10188 	(clipboard_owner, modifying_clipboard, cfg_coding_system)
10189 	(cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
10190 	(current_coding_system, current_requires_encoding)
10191 	(current_num_nls, current_clipboard_type, current_lcid):
10192 	New static variables.
10193 
10194 	(convert_to_handle_as_ascii, convert_to_handle_as_coded)
10195 	(render, render_all, run_protected, lisp_error_handler)
10196 	(owner_callback, create_owner, setup_config)
10197 	(enum_locale_callback, cp_from_locale, coding_from_cp):
10198 	New local functions.
10199 
10200 	(term_w32select, globals_of_w32select): New global functions.
10201 
10202 	(Fw32_set_clipboard_data): Ignore parameter FRAME, use
10203 	clipboard_owner instead.  Use delayed rendering and provide
10204 	all text formats.  Provide CF_LOCALE if necessary.
10205 
10206 	(Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
10207 	CF_LOCALE.  Fall back to CF_TEXT, if CF_UNICODETEXT is not
10208 	available.  Force DOS line-ends for decoding.
10209 
10210 	(Fx_selection_exists_p): Handle CF_UNICODETEXT.
10211 
10212 	(syms_of_w32select): Init and register new variables.
10213 
10214 	* w32.h: Add prototypes for globals_of_w32select and
10215 	term_w32select.  Make the neighboring K&R declarations into
10216 	prototypes, too.
10217 
10218 	* emacs.c: Include w32.h to get function prototypes.
10219 	(main): Call globals_of_w32select.
10220 
10221 	* w32.c (term_ntproc): Call term_w32select.
10222 
10223 	* s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
10224 
10225 2005-02-16  Kim F. Storm  <storm@cua.dk>
10226 
10227 	* xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
10228 	at end of display vector.
10229 
10230 2005-02-15  Richard M. Stallman  <rms@gnu.org>
10231 
10232 	* xdisp.c (get_next_display_element): Fix escape-glyph criterion
10233 	for mode and header lines.
10234 
10235 	* lread.c (syms_of_lread) <user-init-file>: Doc fix.
10236 
10237 	* keymap.h (describe_map_tree): Change decl.
10238 
10239 	* keyboard.c (command_loop_1): Always use safe_run_hooks
10240 	to run Qdeferred_action_function.
10241 
10242 	* keymap.c (describe_map_tree): New arg MENTION_SHADOW.  Calls changed.
10243 	(describe_map, describe_vector): Likewise.  When it's 1,
10244 	don't omit shadowed bindings, instead mark them as shadowed.
10245 
10246 	* doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
10247 	for describe_map_tree.  Pass 1 for MENTION_SHADOW.
10248 
10249 	* data.c (Fsetq_default): Allow no arg case.
10250 
10251 2005-02-14  Kenichi Handa  <handa@m17n.org>
10252 
10253 	* coding.c (encode_coding_string): Always return a unibyte string.
10254 	If NOCOPY is nonzero and there's no need of encoding, make STR
10255 	unibyte directly.
10256 
10257 	* xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
10258 	multibyte string, signal an error instead of aborting.
10259 
10260 2005-02-12  Dan Nicolaescu  <dann@ics.uci.edu>
10261 
10262 	* keyboard.c: If HAVE_FCNTL_H include fcntl.h.
10263 
10264 2005-02-12  Kim F. Storm  <storm@cua.dk>
10265 
10266 	* xdisp.c (expose_window): Don't fix overlaps for mode lines.
10267 
10268 2005-02-10  Kim F. Storm  <storm@cua.dk>
10269 
10270 	* xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
10271 	if it moves outside window or it doesn't display text.
10272 
10273 2005-02-09  Kim F. Storm  <storm@cua.dk>
10274 
10275 	* undo.c (Fprimitive_undo): Check that undo function does not
10276 	switch buffer.
10277 
10278 2005-02-08  Jan Djärv  <jan.h.d@swipnet.se>
10279 
10280 	* xselect.c (selection_data_to_lisp_data): For the special case
10281 	type == XA_ATOM, data contains array of int, not array of Atom.
10282 	(x_property_data_to_lisp, selection_data_to_lisp_data):
10283 	Comment update: data must be array of int for format == 32.
10284 
10285 2005-02-08  Stefan Monnier  <monnier@iro.umontreal.ca>
10286 
10287 	* undo.c (Fprimitive_undo): Check veracity of delta,start,end.
10288 
10289 2005-02-07  Jan Djärv  <jan.h.d@swipnet.se>
10290 
10291 	* xfns.c (Fx_change_window_property): Use long array when format is 32.
10292 	(Fx_window_property): If format is 32 and long is bigger than 32 bits,
10293 	convert long array returned from XGetWindowProperty to an int array.
10294 	(x_set_tool_bar_lines): Check that width and height is greater than
10295 	zero before clearing area.
10296 
10297 	* xselect.c (x_reply_selection_request): Pass long array to
10298 	XChangeProperty so that 64 bit longs are handled correctly.
10299 	(x_get_window_property): If format is 32 and long is bigger than 32
10300 	bits convert data from XGetWindowProperty from long array to int array.
10301 	(lisp_data_to_selection_data): When the input is a vector and the
10302 	format is 32, allocate a long array even if long is bigger than 32 bits.
10303 	(x_fill_property_data): Use char, short and long as the man page
10304 	for XChangeProperty specifies.  This way the data returned is OK for
10305 	both 32 and 64 bit machines.
10306 	(x_handle_dnd_message): Calculate size correctly even for 64 bit
10307 	machines.
10308 	(Fx_send_client_event): Undo change from 2005-02-05,
10309 	x_fill_property_data now handles that case.
10310 
10311 	* xfns.c (Fx_backspace_delete_keys_p): Add comment about the
10312 	reason for the approach in the code.
10313 
10314 2005-02-07  Kim F. Storm  <storm@cua.dk>
10315 
10316 	* undo.c (Fprimitive_undo): Record max one dummy apply element.
10317 
10318 2005-02-06  Richard M. Stallman  <rms@gnu.org>
10319 
10320 	* eval.c (Frun_hook_with_args)
10321 	(Frun_hook_with_args_until_success)
10322 	(Frun_hook_with_args_until_failure): Doc fixes.
10323 
10324 2005-02-05  Andreas Schwab  <schwab@suse.de>
10325 
10326 	* sysdep.c (sys_subshell): Properly terminate execlp argument list.
10327 
10328 2005-02-05  Jan Djärv  <jan.h.d@swipnet.se>
10329 
10330 	* xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
10331 	the longs in a XClientMessageEvent correctly when long is 64 bits.
10332 
10333 2005-02-05  Eli Zaretskii  <eliz@gnu.org>
10334 
10335 	* xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
10336 	instead of HAVE_X_WINDOWS, for non-X windowed sessions.
10337 
10338 2005-02-03  Jan Djärv  <jan.h.d@swipnet.se>
10339 
10340 	* xmenu.c (menubar_selection_callback): Force out GTK buffered
10341 	events so the menu event comes after them.  This is to prevent sit-for
10342 	from exiting on buffered events directly after a menu selection,
10343 	lisp code for Help => About Emacs uses sit-for.
10344 
10345 	* gtkutil.c (create_menus): Connect selection-done event instead of
10346 	the deactivate event to deactivate_cb.  This will make the last
10347 	leave event come before the call to deactivate_cb, so the leave
10348 	event does not make sit-for exit after a menu selection.
10349 
10350 2005-02-03  Kim F. Storm  <storm@cua.dk>
10351 
10352 	* dispnew.c (build_frame_matrix_from_leaf_window)
10353 	[!GLYPH_DEBUG]: Fix xassert.
10354 
10355 	* xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
10356 
10357 	* xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10358 
10359 2005-02-03  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10360 
10361 	* mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
10362 	the compiling OS version.
10363 
10364 	* macfns.c (x_create_tip_frame): Likewise.
10365 
10366 	* macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
10367 
10368 2005-02-03  Richard M. Stallman  <rms@gnu.org>
10369 
10370 	* xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
10371 
10372 	* xdisp.c (echo_area_display): Clear echo_message_buffer.
10373 
10374 	* buffer.c (Fbury_buffer): Doc fix.
10375 
10376 2005-02-02  Steven Tamm  <steventamm@mac.com>
10377 
10378 	* macfns.c (unwind_create_frame): Fix compile error due to
10379 	xassert being uncondition, but predicate is.
10380 	* dispnew.c (update_window): Fix compile error due to
10381 	xassert being uncondition, but predicate is.
10382 
10383 2005-02-02  Miles Bader  <miles@gnu.org>
10384 
10385 	* dispextern.h (xassert): Enable unconditionally.
10386 
10387 2005-02-02  Kim F. Storm  <storm@cua.dk>
10388 
10389 	* undo.c (Fprimitive_undo): Fix dummy apply undo entry.
10390 
10391 2005-02-02  Kenichi Handa  <handa@m17n.org>
10392 
10393 	* casefiddle.c (casify_object): Enable changing characters of
10394 	different byte length.
10395 	(casify_region): Fix loop condition, args to replace_range_2, and
10396 	update opoint_byte.
10397 
10398 	* insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
10399 
10400 2005-02-01  Kim F. Storm  <storm@cua.dk>
10401 
10402 	* xdisp.c (back_to_previous_visible_line_start): Reset iterator
10403 	stack before calling handle_display_prop.
10404 
10405 2005-01-31  Kim F. Storm  <storm@cua.dk>
10406 
10407 	* undo.c (Qapply): New lisp var.
10408 	(syms_of_undo): Intern and staticpro it.
10409 	(Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
10410 	(apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
10411 
10412 	* buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
10413 
10414 2005-01-30  Jesper Harder  <harder@phys.au.dk>
10415 
10416 	* macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
10417 	<mac-emulate-three-button-mouse>: Fix docstring indentation.
10418 
10419 2005-01-29  Luc Teirlinck  <teirllm@auburn.edu>
10420 
10421 	* undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
10422 	Increase value to 3 Meg.
10423 
10424 2005-01-29  Jan Djärv  <jan.h.d@swipnet.se>
10425 
10426 	* xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
10427 	button events are not received otherwise.
10428 
10429 2005-01-29  Richard M. Stallman  <rms@gnu.org>
10430 
10431 	* buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
10432 
10433 	* undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
10434 
10435 2005-01-28  Stefan Monnier  <monnier@iro.umontreal.ca>
10436 
10437 	* keymap.c (access_keymap): YAILOM.
10438 
10439 2005-01-27  Kim F. Storm  <storm@cua.dk>
10440 
10441 	* xdisp.c (get_phys_cursor_geometry): New function to calculate
10442 	phys cursor position and size for hollow cursor.  Position is
10443 	aligned with get_glyph_string_clip_rect and ensures that a hollow
10444 	cursor is shown, even when the actual glyph is not visible.
10445 
10446 	* dispextern.h (get_phys_cursor_geometry): Add prototype.
10447 
10448 	* xterm.c (x_clip_to_row): Ensure y >= 0.
10449 	(x_draw_hollow_cursor): Use get_phys_cursor_geometry.
10450 
10451 	* w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
10452 
10453 	* macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
10454 
10455 2005-01-27  Stefan Monnier  <monnier@iro.umontreal.ca>
10456 
10457 	* xterm.c (x_error_quitter): Add a prototype.  Make it static again.
10458 
10459 2005-01-27  Kim F. Storm  <storm@cua.dk>
10460 
10461 	* xdisp.c (get_glyph_string_clip_rect): Always show a cursor
10462 	glyph, even when row is only partially visible and actual cursor
10463 	position is not visible.
10464 
10465 2005-01-24  Richard M. Stallman  <rms@gnu.org>
10466 
10467 	* xterm.c (x_error_quitter): No longer static, and moved after
10468 	x_error_handler.
10469 
10470 2005-01-24  Kim F. Storm  <storm@cua.dk>
10471 
10472 	* xdisp.c (move_it_by_lines): If we move forward after going too
10473 	far back, cancel move if end position is same as start position.
10474 
10475 2005-01-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10476 
10477 	* dispextern.h (struct glyph_string): New members clip_head and
10478 	clip_tail.
10479 
10480 	* xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
10481 	region to the area between clip_head and clip_tail.
10482 	(draw_glyphs): Record the area that need to be actually redrawn to
10483 	the new variables clip_head and clip_tail when there are
10484 	overhangs.  Set values of these variables to the corresponding
10485 	members in struct glyph_string.  Refine x coordinates for
10486 	notice_overwritten_cursor using clip_head and clip_tail.
10487 
10488 	* macgui.h (STORE_XCHARSETSTRUCT): New macro.
10489 
10490 	* macterm.c (mac_compute_glyph_string_overhangs): Implement with
10491 	QDTextBounds.
10492 	(x_draw_glyph_string): Don't fill the background of the successor
10493 	of a glyph with a right overhang if the successor will draw a cursor.
10494 	(XLoadQueryFont): Obtain font metrics using QDTextBounds.
10495 	(x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
10496 
10497 2005-01-24  Kim F. Storm  <storm@cua.dk>
10498 
10499 	* window.c (window_scroll_pixel_based): Fix scrolling in the wrong
10500 	direction if window height was smaller than next-screen-context-lines.
10501 	Now always scroll at least one line in the requested direction.
10502 	Ensure that we actually do scroll backwards when requested to do so.
10503 
10504 	* xdisp.c (redisplay_window): Only try to make cursor line fully
10505 	visible once (to avoid redisplay loop).
10506 
10507 2005-01-23  Kim F. Storm  <storm@cua.dk>
10508 
10509 	* window.c (Fpos_visible_in_window_p): Simplify return value for
10510 	partially visible rows.
10511 	(window_scroll_pixel_based): Adapt to that change.
10512 
10513 	* window.c (window_scroll_pixel_based): Force moving to next line
10514 	if scrolling doesn't move start point, e.g. if looking at tall image.
10515 
10516 	* xdisp.c (pos_visible_p): Return 0 if non-interactive.
10517 	Clear last_height before calling line_bottom_y to get real height.
10518 	Fix calculation of y.
10519 
10520 2005-01-22  Steven Tamm  <steventamm@mac.com>
10521 
10522 	* s/darwin.h: Removed PTY_ITERATION from here.
10523 	(DARWIN): Define.
10524 
10525 	* process.c (init_process): Default process-connection-type to
10526 	nil on darwin 6 or less, t if it is 7 or higher.  This way the
10527 	broken pty behavior is still allowed on darwin 6 for interactive
10528 	processes for people that know what they are doing.
10529 
10530 2005-01-22  Kim F. Storm  <storm@cua.dk>
10531 
10532 	* window.c (auto_window_vscroll_p): New boolean.
10533 	(syms_of_window): DEFVAR_BOOL it.
10534 	(Fpos_visible_in_window_p): Extend return value to include RTOP
10535 	and RBOT values if FULLY is nil.
10536 	(window_scroll_pixel_based): Adjust vscroll for partially visible
10537 	rows if auto_window_vscroll_p is set.
10538 	(Fset_window_vscroll): Do nothing if vscroll is not modified.
10539 
10540 	* xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
10541 	to return number of partially invisible pixels at top and bottom
10542 	of the display row at POS.
10543 
10544 	* lisp.h (pos_visible_p): Fix prototype.
10545 
10546 2005-01-21  Richard M. Stallman  <rms@gnu.org>
10547 
10548 	* fileio.c (Fcopy_file): Doc fix.
10549 
10550 2005-01-21  Jan Djärv  <jan.h.d@swipnet.se>
10551 
10552 	* gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
10553 	(xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
10554 	start of function for older compilers.
10555 
10556 2005-01-20  Richard M. Stallman  <rms@gnu.org>
10557 
10558 	* editfns.c (Fmessage): If arg is "", return "" (as before).
10559 
10560 	* keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
10561 
10562 	* .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
10563 	variable.
10564 
10565 2005-01-20  Steven Tamm  <steventamm@mac.com>
10566 
10567 	* editfns.c (Voperating_system_release): Add.
10568 	(init_editfns): Assign new variable operating-system-release
10569 	based on call to uname if available.
10570 	(get_operating_system_release): Add function to
10571 	allow c-level access to operating system release.
10572 
10573 	* config.h: Regenerated.
10574 
10575 	* s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
10576 	(MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
10577 	using ptys as '7'.
10578 
10579 2005-01-20  Kim F. Storm  <storm@cua.dk>
10580 
10581 	* alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
10582 
10583 	* xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
10584 	Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
10585 
10586 	* macterm.c (x_draw_glyph_string_box): Likewise.
10587 
10588 	* w32term.c (x_draw_glyph_string_box): Likewise.
10589 
10590 	* indent.c (Fvertical_motion): Temporarily disable selective display.
10591 
10592 2005-01-19  Kim F. Storm  <storm@cua.dk>
10593 
10594 	* xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
10595 	image property.
10596 
10597 	* fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
10598 
10599 2005-01-18  Kim F. Storm  <storm@cua.dk>
10600 
10601 	* xdisp.c (fast_find_position): Backtrack to find first row if
10602 	charpos is inside a display overlay that spans multiple lines.
10603 
10604 2005-01-18  Kenichi Handa  <handa@m17n.org>
10605 
10606 	* coding.c (decode_coding_iso2022): Translate invalid codes if
10607 	translation-table is specified.
10608 
10609 2005-01-18  Kim F. Storm  <storm@cua.dk>
10610 
10611 	* xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
10612 	change.  If handle_display_prop indicates newline is replaced by
10613 	image or text, move back to start of relevant overlay or interval
10614 	and continue scan from there.  Simplify.
10615 
10616 2005-01-17  Kim F. Storm  <storm@cua.dk>
10617 
10618 	* dispnew.c (mode_line_string, marginal_area_string):
10619 	Fix off-by-one error in search for glyph.
10620 
10621 2005-01-16  Kim F. Storm  <storm@cua.dk>
10622 
10623 	* macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
10624 
10625 2005-01-16  Steven Tamm  <steventamm@mac.com>
10626 
10627 	* macterm.c (mac_to_x_fontname): Remove spurious argument.
10628 
10629 2005-01-16  Andreas Schwab  <schwab@suse.de>
10630 
10631 	* macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
10632 
10633 2005-01-16  Jan Djärv  <jan.h.d@swipnet.se>
10634 
10635 	* fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
10636 	fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
10637 
10638 2005-01-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10639 
10640 	* keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
10641 	(READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
10642 	New flags for readable_events.
10643 	(get_filtered_input_pending, readable_filtered_events): Remove.
10644 	(tracking_off): Call readable_events and get_input_pending with
10645 	flag READABLE_EVENTS_DO_TIMERS_NOW.
10646 	(readable_events): Move code from old readable_filtered_events here,
10647 	but check new READABLE_EVENTS_* in argument flags instead of previous
10648 	two boolean arguments do_timers_now and filter_events.
10649 	If we are doing mouse tracking and the mouse moved, return only if
10650 	READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
10651 	(swallow_events): Call get_input_pending with flag
10652 	READABLE_EVENTS_DO_TIMERS_NOW.
10653 	(get_input_pending): Move code from old get_filtered_input_pending
10654 	here.  Replace boolean arguments do_timers_now, filter_events with
10655 	flags, and pass flags to readable_events.  Document new
10656 	READABLE_EVENTS_* flags.
10657 	(detect_input_pending_ignore_squeezables): New function.
10658 	(detect_input_pending_run_timers): Call get_input_pending with flag
10659 	READABLE_EVENTS_DO_TIMERS_NOW.
10660 	(Finput_pending_p): Call get_input_pending with flags
10661 	READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
10662 
10663 	* dispnew.c (update_window, update_frame_1): Replace calls to
10664 	detect_input_pending with detect_input_pending_ignore_squeezables
10665 	so that redisplay is not paused if the event queue contains only
10666 	mouse movements.
10667 
10668 	* lisp.h: Declare detect_input_pending_ignore_squeezables.
10669 
10670 2005-01-15  Steven Tamm  <steventamm@mac.com>
10671 
10672 	* macterm.c (Vmac_use_core_graphics): Declare variable for
10673 	mac-allow-anti-aliasing.
10674 	(syms_of_macterm): DEFVAR_LISP and initialize it.
10675 	(mac_draw_string_common): Use core graphics text rendering if
10676 	mac-allow-anti-aliasing is enabled.
10677 
10678 	* macfns.c (Fx_file_dialog): Save As dialog includes only the
10679 	file name in the text box.
10680 
10681 2005-01-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10682 
10683 	* macfns.c (x_set_foreground_color, x_set_background_color):
10684 	Sync with xfns.c.
10685 	(mac_window, x_create_tip_frame): Use XSetWindowBackground.
10686 	* macterm.c (XSetBackground, XSetWindowBackground): New functions.
10687 	* macterm.h (XSetBackground, XSetWindowBackground): Add externs.
10688 
10689 2005-01-14  Kim F. Storm  <storm@cua.dk>
10690 
10691 	* keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
10692 
10693 2005-01-13  Richard M. Stallman  <rms@gnu.org>
10694 
10695 	* keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
10696 	if Voverriding_terminal_local_map is non-nil.
10697 
10698 	* keyboard.c (syms_of_keyboard): Doc fix.
10699 
10700 2005-01-13  Kim F. Storm  <storm@cua.dk>
10701 
10702 	* xdisp.c (Fformat_mode_line): Fix last change.  Remove NO_PROPS arg
10703 	(specify 0 for FACE instead).  Reorder arg list.  Doc fix.
10704 
10705 2005-01-12  Richard M. Stallman  <rms@gnu.org>
10706 
10707 	* xdisp.c (Fformat_mode_line): New arg FACE specifies a default
10708 	face property for characters that don't specify one.
10709 
10710 	* fns.c (Frequire): Record in load-history unconditionally.
10711 
10712 2005-01-10  Kim F. Storm  <storm@cua.dk>
10713 
10714 	* dispextern.h (merge_faces): Rename from merge_into_realized_face.
10715 
10716 	* xfaces.c (merge_faces): Rename from merge_into_realized_face.
10717 	Callers changed.
10718 	Add support to merge with lisp face id too (if face_name is t).
10719 
10720 	* xdisp.c (get_next_display_element, next_element_from_display_vector):
10721 	Don't lookup lface_id from display table glyphs here; instead use
10722 	merge_faces to merge the lisp face id into current face.
10723 
10724 2005-01-09  Kim F. Storm  <storm@cua.dk>
10725 
10726 	* dispextern.h (struct it): New member dpvec_face_id.
10727 	(merge_into_realized_face): Add prototype.
10728 
10729 	* xfaces.c (merge_into_realized_face): New function.  Used to
10730 	merge escape-glyph face or face from display table into current face.
10731 
10732 	* xdisp.c (Vshow_nonbreak_escape): New lisp var.
10733 	(syms_of_xdisp): DEFVAR_LISP it.
10734 	(escape_glyph_face): Remove var.
10735 	(redisplay_window): Don't initialize it.
10736 	(setup_for_ellipsis, get_next_display_element):
10737 	Set it->dpvec_face_id to -1.
10738 	(get_next_display_element): Test Vshow_nonbreak_escape.
10739 	Do not setup escape_glyph_face.
10740 	Properly merge escape-glyph face or face from display table with
10741 	current face for escape and control characters.
10742 	Set it->dpvec_face_id to relevant face id instead of adding it to each
10743 	element of display vector.
10744 	(next_element_from_display_vector): If it->dpvec_face_id is set,
10745 	use that instead of lface_id from glyph itself.
10746 
10747 2005-01-08  Jan Djärv  <jan.h.d@swipnet.se>
10748 
10749 	* xterm.h (struct x_output): New member, toolbar_detached.
10750 
10751 	* gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
10752 	38.
10753 	(xg_tool_bar_detach_callback): Set toolbar_detached to 1.
10754 	(xg_tool_bar_attach_callback): Set toolbar_detached to 0.
10755 	(xg_create_tool_bar): Initialize toolbar_detached.
10756 	(update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
10757 	toolbar_detached is zero.
10758 
10759 2005-01-07  Jan Djärv  <jan.h.d@swipnet.se>
10760 
10761 	* xmenu.c (create_and_show_popup_menu): Pass zero as button to
10762 	gtk_menu_popup if not for_click, so callbacks for the menu are called.
10763 
10764 	* gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
10765 	(xg_tool_bar_callback, xg_tool_bar_help_callback)
10766 	(update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
10767 
10768 	* xselect.c (x_get_foreign_selection, x_fill_property_data)
10769 	(Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
10770 	XFLOAT_DATA to get extract number from Lisp object.
10771 
10772 2005-01-07  Kim F. Storm  <storm@cua.dk>
10773 
10774 	* xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
10775 	Set stop_charpos to current charpos instead of 0.
10776 
10777 2005-01-06  Nick Roberts  <nickrob@snap.net.nz>
10778 
10779 	* xdisp.c (Fformat_mode_line): First arg now required.
10780 
10781 2005-01-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10782 
10783 	* macterm.c (XLoadQueryFont): Correctly handle 0 size
10784 	font widths that are returned from some Japanese fonts.
10785 
10786 2005-01-06  Kim F. Storm  <storm@cua.dk>
10787 
10788 	* fringe.c (fringe_faces): Change to Lisp_Object pointer.
10789 	(draw_fringe_bitmap_1): Lookup user defined fringe faces here.
10790 	(destroy_fringe_bitmap): Set fringe_faces element to nil.
10791 	(Fdefine_fringe_bitmap, init_fringe): Change allocation of
10792 	fringe_faces array and init elements to nil.
10793 	(Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
10794 	non-persistent face id.
10795 	(mark_fringe_data): New function for GC.
10796 
10797 	* alloc.c (mark_fringe_data): Declare extern.
10798 	(Fgarbage_collect): Call mark_fringe_data.
10799 
10800 	* alloc.c (overrun_check_free): Invalidate freed memory if
10801 	XMALLOC_CLEAR_FREE_MEMORY is defined.
10802 
10803 2005-01-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10804 
10805 	* macfns.c: Include sys/param.h.
10806 	[TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
10807 	and function.
10808 	[TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
10809 	of filename string.  Set event callback function when creating
10810 	dialog boxes.  Add code conversions for filenames.  Don't dispose
10811 	of apple event descriptor record if failed to create it.
10812 
10813 	* macterm.c: Include sys/param.h.
10814 	[USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
10815 	kEventWindowUpdate.
10816 	(install_window_handler) [USE_CARBON_EVENTS]: Register it.
10817 	(do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
10818 	of FSSpec from apple event descriptor record.
10819 	(do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
10820 	size of filename string.
10821 	[TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
10822 	[TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
10823 	file dialog is in action.
10824 	[TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
10825 	Reject only when there are no filename items.  Set background color
10826 	before (un)highlighting the window below the dragged items.
10827 	(XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
10828 
10829 2005-01-05  Romain Francoise  <romain@orebokech.com>
10830 
10831 	* term.c (encode_terminal_code): Fix buffer size computation.
10832 
10833 2005-01-04  Richard M. Stallman  <rms@gnu.org>
10834 
10835 	* xdisp.c (Fformat_mode_line): Doc fix.
10836 
10837 2005-01-04  Stefan Monnier  <monnier@iro.umontreal.ca>
10838 
10839 	* alloc.c (refill_memory_reserve): Move.
10840 	(emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
10841 	(reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
10842 
10843 2005-01-03  Richard M. Stallman  <rms@gnu.org>
10844 
10845 	* window.c (window_scroll_pixel_based): Don't correct preserve_y
10846 	for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
10847 
10848 2005-01-03  Jason Rumney  <jasonr@gnu.org>
10849 
10850 	* w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
10851 	fontp->space_width to FONT_WIDTH so they are valid.
10852 
10853 	* w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
10854 	average width.  Set fontp->average_width and fontp->space_width to
10855 	their appropriate values.
10856 
10857 	* w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
10858 	fontp->average_width, not FONT_WIDTH.  Set FRAME_SPACE_WIDTH to
10859 	fontp->space_width.
10860 
10861 2005-01-03  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10862 
10863 	* macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
10864 	(x_font_min_bounds, XLoadQueryFont): Use the correct font width
10865 	metrics for max and min bounds.
10866 	(x_load_font): Correctly calculate average font width metrics.
10867 
10868 2005-01-02  Richard M. Stallman  <rms@gnu.org>
10869 
10870 	* alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
10871 
10872 2004-12-31  Jan Djärv  <jan.h.d@swipnet.se>
10873 
10874 	* xterm.c (handle_one_xevent): Clear area in expose event for GTK.
10875 
10876 2004-12-31  Richard M. Stallman  <rms@gnu.org>
10877 
10878 	* xdisp.c (setup_for_ellipsis, get_next_display_element):
10879 	Set it->ellipsis_p to 1 or 0.
10880 	(display_line): Record whether row ends in mid-ellipsis.
10881 	(set_cursor_from_row): If ends in ellipsis, find start of it.
10882 	(cursor_row_p): If PT's at the end of the ellipsis the row
10883 	ends within, don't display cursor on this row.
10884 
10885 	* dispextern.h (struct it): New element ellipsis_p.
10886 	(struct glyph_row): New element ends_in_ellipsis_p.
10887 
10888 	* xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
10889 	position if we're reading from something other than the buffer.
10890 
10891 	* window.c (window_scroll_pixel_based): Only look at
10892 	Vscroll_preserve_screen_position if the old PT can't be kept.
10893 	(syms_of_window) <scroll-preserve-screen-position>: Doc fix.
10894 
10895 2004-12-30  Kim F. Storm  <storm@cua.dk>
10896 
10897 	* xdisp.c (get_line_height_property): New function extracted from
10898 	original calc_line_height_property.
10899 	(calc_line_height_property): Rework.  Handle t and (nil . ratio).
10900 	(x_produce_glyphs): Use them to handle line-height and
10901 	line-spacing according to new height spec.
10902 	(Qtotal): Remove.
10903 	(syms_of_xdisp): Remove intern and staticpro for Qtotal.
10904 
10905 2004-12-30  Kenichi Handa  <handa@m17n.org>
10906 
10907 	* fileio.c (Finsert_file_contents): Don't use
10908 	current_buffer->buffer_file_coding_system even if REPLACE is
10909 	non-nil.  Call Qafter_insert_file_set_coding with the second arg VISIT.
10910 
10911 	* fontset.h (struct font_info): New members space_width and
10912 	average_width.
10913 
10914 	* frame.h (struct frame): New member space_width.
10915 	(FRAME_SPACE_WIDTH): New macro.
10916 
10917 	* xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
10918 
10919 	* xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
10920 	fontp->average_width, not FONT_WIDTH.  Set FRAME_SPACE_WIDTH to
10921 	fontp->space_width.
10922 	(x_load_font): Calculate fontp->space_width and fontp->average_width.
10923 	(x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
10924 
10925 	* xdisp.c (x_produce_glyphs): Calculate tab width by
10926 	FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
10927 
10928 2004-12-29  Sanghyuk Suh  <han9kin@mac.com>
10929 
10930 	* macterm.c (SelectionRange): Add Xcode position apple event struct.
10931 	(do_ae_open_documents): Handle Xcode-style file position open events.
10932 
10933 2004-12-29  Luc Teirlinck  <teirllm@auburn.edu>
10934 
10935 	* buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
10936 
10937 2004-12-29  Richard M. Stallman  <rms@gnu.org>
10938 
10939 	* buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
10940 
10941 2004-12-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10942 
10943 	* macfns.c (install_window_handler): Modify extern to return OSErr
10944 	value.
10945 	(mac_window): Handle return value of install_window_handler.
10946 
10947 	* macterm.c (reflect_byte): Remove function.
10948 	(mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
10949 	Lookup table instead.
10950 	(mac_do_font_lists): Simplify calculation of the longest
10951 	nonspecial string.
10952 	(init_mac_drag_n_drop): Remove function and declaration.
10953 	(mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
10954 	init_mac_drag_n_drop.
10955 	(mac_do_track_drag): New function and declaration.
10956 	(install_window_handler): Return OSErr value.
10957 	(install_window_handler) [TARGET_API_MAC_CARBON]:
10958 	Register handlers for tracking/receiving drag-and-drop items.
10959 	(do_ae_open_documents): Generate unibyte strings for filenames.
10960 	(mac_do_receive_drag) [TARGET_API_MAC_CARBON]: Likewise.
10961 	Reject only non-filename items.  Set event modifiers, and return value.
10962 
10963 2004-12-28  Dan Nicolaescu  <dann@ics.uci.edu>
10964 
10965 	* coding.c (decode_coding): Fix previous change.
10966 
10967 2004-12-28  Richard M. Stallman  <rms@gnu.org>
10968 
10969 	* xdisp.c (back_to_previous_visible_line_start):
10970 	Don't call handle_display_prop.
10971 
10972 2004-12-28  Dan Nicolaescu  <dann@ics.uci.edu>
10973 
10974 	* coding.c (decode_coding_XXX, decode_composition_emacs_mule)
10975 	(decode_coding_emacs_mule, encode_coding_emacs_mule)
10976 	(decode_coding_iso2022, encode_designation_at_bol)
10977 	(encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
10978 	(decode_coding): Constify arguments and local vars.
10979 
10980 2004-12-27  Jan Djärv  <jan.h.d@swipnet.se>
10981 
10982 	* xmenu.c (popup_get_selection): Only pop down dialogs
10983 	on C-g and Escape.
10984 	(popup_get_selection): Remove parameter down_on_keypress.
10985 	(create_and_show_popup_menu, create_and_show_dialog):
10986 	Remove parameter down_on_keypress to popup_get_selection.
10987 
10988 2004-12-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10989 
10990 	* dispextern.h: Change HAVE_CARBON to MAC_OS.
10991 	(struct glyph_string): Likewise.
10992 
10993 	* emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
10994 	mac_initialize.
10995 
10996 	* fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
10997 	Change TARGET_API_MAC_CARBON to HAVE_CARBON.
10998 
10999 	* fns.c (vector): Change MAC_OSX to MAC_OS.
11000 
11001 	* frame.c (x_set_frame_parameters, x_report_frame_params)
11002 	(x_set_fullscreen): Remove #ifndef HAVE_CARBON.
11003 	(x_set_border_width, Vdefault_frame_scroll_bars):
11004 	Change HAVE_CARBON to MAC_OS.
11005 
11006 	* image.c [MAC_OS]: Include sys/stat.h.
11007 	[MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
11008 	QuickTimeComponents.h.
11009 
11010 	* mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
11011 	[!MAC_OSX] (select): Use mac_wait_next_event.
11012 	[!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
11013 	[!MAC_OSX] (select, run_mac_command): Change `#ifdef
11014 	TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
11015 	(mac_clear_font_name_table): Add extern.
11016 	(Fmac_clear_font_name_table): New defun.
11017 	(syms_of_mac): Defsubr it.
11018 	[MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
11019 	[MAC_OSX] (select_and_poll_event): New function.
11020 	[MAC_OSX] (sys_select): Use it.
11021 	[MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
11022 	[MAC_OSX && SELECT_USE_CFSOCKET]
11023 	(SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
11024 	[MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
11025 	RunLoop for simultaneously monitoring two kinds of inputs, window
11026 	events and process outputs, without periodically polling.
11027 
11028 	* macfns.c (mac_initialized): Remove extern.
11029 	(stricmp): Put in #if 0.  All callers changed to use xstricmp in
11030 	xfaces.c.
11031 	(strnicmp): Decrement `n' at the end of each loop, not the beginning.
11032 	(check_mac): Use the term "Mac native windows" instead of "Mac OS".
11033 	(check_x_display_info, x_display_info_for_name): Sync with xfns.c.
11034 	(mac_get_rdb_resource): New function (from w32reg.c).
11035 	(x_get_string_resource): Use it.
11036 	(install_window_handler): Add extern.
11037 	(mac_window): New function.
11038 	(Fx_create_frame): Use it instead of make_mac_frame.
11039 	Set parameter for Qfullscreen.  Call x_wm_set_size_hint.
11040 	(Fx_open_connection, Fx_close_connection): New defuns.
11041 	(syms_of_macfns): Defsubr them.
11042 	(x_create_tip_frame) [TARGET_API_MAC_CARBON]:
11043 	Add kWindowNoUpdatesAttribute to the window attribute.
11044 	(x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
11045 	(x_create_tip_frame): Don't call ShowWindow.
11046 	(Fx_show_tip): Call ShowWindow.
11047 	(Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
11048 	TARGET_API_MAC_CARBON'.
11049 	(mac_frame_parm_handlers): Set handlers for Qfullscreen.
11050 	(syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
11051 
11052 	* macgui.h [!MAC_OSX]: Don't include Controls.h.  Include Windows.h.
11053 	(Window): Typedef to WindowPtr and move outside `#if
11054 	TARGET_API_MAC_CARBON'.
11055 	(XSizeHints): New struct.
11056 
11057 	* macterm.c (x_update_begin, x_update_end)
11058 	[TARGET_API_MAC_CARBON]: Disable screen updates during update of a
11059 	frame.
11060 	(x_draw_glyph_string_background, x_draw_glyph_string_foreground)
11061 	[MAC_OS8]: Use XDrawImageString/XDrawImageString16.
11062 	(construct_mouse_click): Put in #if 0.
11063 	(x_check_fullscreen, x_check_fullscreen_move): Remove decls.
11064 	(x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
11065 	TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
11066 	(activate_scroll_bars, deactivate_scroll_bars)
11067 	[!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
11068 	(x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
11069 	if the position is neither user-specified nor program-specified.
11070 	(x_free_frame_resources): Free size_hints.
11071 	(x_wm_set_size_hint): Allocate size_hints if needed.  Set size_hints.
11072 	(mac_clear_font_name_table): New function.
11073 	(mac_do_list_fonts): Initialize font_name_table if needed.
11074 	(x_list_fonts): Don't initialize font_name_table.  Add BLOCK_INPUT
11075 	around mac_do_list_fonts.
11076 	(mac_unload_font): New function.
11077 	(x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
11078 	(init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
11079 	and definitions with #if TARGET_API_MAC_CARBON.
11080 	[USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
11081 	(install_window_handler): Add decl.
11082 	(do_window_update): Add BeginUpdate/EndUpdate for the tooltip
11083 	window.  Use UpdateControls.  Get the rectangle that should be
11084 	updated and restrict the target of expose_frame to it.
11085 	(do_grow_window): Set minimum height/width according to size_hints.
11086 	(do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
11087 	(do_zoom_window): Don't use x_set_window_size.
11088 	[USE_CARBON_EVENTS] (mac_handle_window_event): New function.
11089 	(install_window_handler): New function.
11090 	[!USE_CARBON_EVENTS] (mouse_region): New variable.
11091 	[!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
11092 	(XTread_socket) [USE_CARBON_EVENTS]: Move call to
11093 	GetEventDispatcherTarget inside BLOCK_INPUT.
11094 	(XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
11095 	Update mouse_region when mouse is moved.
11096 	(make_mac_frame): Remove.
11097 	(make_mac_terminal_frame): Put in #ifdef MAC_OS8.
11098 	Initialize mouse pointer shapes.  Change values of f->left_pos and
11099 	f->top_pos.  Don't use make_mac_frame.  Use NewCWindow.
11100 	Don't call ShowWindow.
11101 	(mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
11102 	Vinvocation_name and Vsystem_name.
11103 	(mac_make_rdb): New function (from w32term.c).
11104 	(mac_term_init): Use it.  Add BLOCK_INPUT.  Error if display has
11105 	already been opened.  Don't pass argument to
11106 	mac_initialize_display_info.  Don't set dpyinfo->height/width.
11107 	Add entries to x_display_list and x_display_name_list.
11108 	(x_delete_display): New function.
11109 	(mac_initialize): Don't call mac_initialize_display_info.
11110 	(syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
11111 
11112 	* macterm.h (check_mac): Add extern.
11113 	(struct mac_output): New member size_hints.
11114 	(FRAME_SIZE_HINTS): New macro.
11115 	(mac_unload_font): Add extern.
11116 
11117 	* xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
11118 
11119 	* xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
11120 
11121 2004-12-27  Richard M. Stallman  <rms@gnu.org>
11122 
11123 	* buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
11124 	(syms_of_buffer): Don't defsubr it.
11125 
11126 	* process.c (list_processes_1): Set undo_list instead
11127 	of calling Fbuffer_disable_undo.
11128 
11129 	* xdisp.c (single_display_spec_string_p): Rename from
11130 	single_display_prop_string_p.
11131 	(single_display_spec_intangible_p): Rename from
11132 	single_display_prop_intangible_p.
11133 	(handle_single_display_spec): Rename from handle_single_display_prop.
11134 	Rewritten to be easier to understand.
11135 
11136 	Change in load-history format.  Functions now get (defun . NAME),
11137 	and variables get just NAME.
11138 
11139 	* data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
11140 
11141 	* eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
11142 	(Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
11143 	(Qdefvar): Var deleted.
11144 	(syms_of_eval): Don't initialze it.
11145 
11146 	* lread.c (syms_of_lread) <load-history>: Doc fix.
11147 
11148 2004-12-27  Jan Djärv  <jan.h.d@swipnet.se>
11149 
11150 	* xmenu.c (popup_get_selection): Pop down on C-g.
11151 	(set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
11152 	pops down menu on C-g.
11153 	(xdialog_show): If dialog popped down and no button in the dialog was
11154 	pushed, call Fsignal to quit.
11155 	(xmenu_show): In no toolkit version, if menu returns NO_SELECT call
11156 	Fsignal to quit.
11157 
11158 	* xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
11159 
11160 	* gtkutil.c (xg_initialize): Install bindings for C-g so that
11161 	dialogs and menus pop down.
11162 
11163 2004-12-27  Kenichi Handa  <handa@m17n.org>
11164 
11165 	* coding.c (code_convert_region): Fix calculation of `ratio'.
11166 
11167 2004-12-25  Jan Djärv  <jan.h.d@swipnet.se>
11168 
11169 	* gtkutil.c (update_frame_tool_bar): Make the value of
11170 	tool-bar-button-margin control margins of images in tool bar.
11171 
11172 	* alloc.c (check_depth): New variable.
11173 	(overrun_check_malloc, overrun_check_realloc): Only add
11174 	overhead and write check pattern if check_depth is 1 (to handle
11175 	recursive calls).  Increase/decrease check_depth in entry/exit.
11176 	(overrun_check_free): Only check for overhead if check_depth is 1.
11177 	Increase/decrease check_depth in entry/exit.
11178 
11179 2004-12-23  Jan Djärv  <jan.h.d@swipnet.se>
11180 
11181 	* keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
11182 	before touching input_available_clear_time, to avoid accessing it
11183 	from multiple threads.
11184 
11185 2004-12-23  Jason Rumney  <jasonr@gnu.org>
11186 
11187 	* image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behavior
11188 	of JPEG library.
11189 
11190 2004-12-22  Richard M. Stallman  <rms@gnu.org>
11191 
11192 	* emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
11193 
11194 	* lisp.h (Vundo_outer_limit): Fix decl.
11195 
11196 	* undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
11197 	Uses changed.
11198 	(syms_of_undo): Initialize appropriately.
11199 	(truncate_undo_list): If it's nil, there's no limit.
11200 
11201 2004-12-22  Kenichi Handa  <handa@m17n.org>
11202 
11203 	* xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
11204 
11205 2004-12-21  Richard M. Stallman  <rms@gnu.org>
11206 
11207 	* eval.c (unwind_to_catch): Clear immediate_quit.
11208 
11209 	* xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
11210 	specially as `\ ' and `\-'.
11211 
11212 	* keyboard.c (kbd_buffer_store_event_hold):
11213 	In the code for while-no-input, handle immediate_quit.
11214 
11215 	* alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
11216 	Call that at the very start.
11217 	(undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
11218 	(syms_of_alloc): Don't define undo-limit,
11219 	undo-strong-limit and undo-outer-limit here.
11220 
11221 	* undo.c (truncate_undo_list): Return void.
11222 	Take just one argument, the buffer.
11223 	Make it current, and inhibit recursive GC.
11224 	Access and update the undo list directly; return void.
11225 	Refer to the undo...limit variables directly.
11226 	Test undo_outer_limit only after counting the whole current command.
11227 	When it's exceeded, call the function in undo-outer-limit-function.
11228 	(undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
11229 	(Vundo_outer_limit_function): New variable.
11230 	(syms_of_undo): Define undo-limit, undo-strong-limit
11231 	and undo-outer-limit here, and undo-outer-limit-function.
11232 	Doc fixes.
11233 
11234 	* lisp.h (truncate_undo_list): Update decl.
11235 
11236 2004-12-21  Piet van Oostrum  <piet@cs.uu.nl>
11237 
11238 	* fileio.c (Fread_file_name): Delete duplicates in
11239 	file-name-history when history_delete_duplicates is true.
11240 
11241 2004-12-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11242 
11243 	* macterm.c (mac_do_list_fonts): Fix memory leak.
11244 
11245 2004-12-20  Richard M. Stallman  <rms@gnu.org>
11246 
11247 	* regex.c (re_match_2_internal) <symend, wordend>:
11248 	Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
11249 
11250 2004-12-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11251 
11252 	* macterm.c (endif, x_font_name_to_mac_font_name):
11253 	Use maccentraleurroman instead of maccentraleuropean.
11254 	(mac_c_string_match, mac_do_list_fonts): Speed up font search by
11255 	quickly finding a specific font without needing regexps.
11256 
11257 2004-12-15  Jan Djärv  <jan.h.d@swipnet.se>
11258 
11259 	* syssignal.h: Declare main_thread.
11260 	(SIGNAL_THREAD_CHECK): New macro.
11261 
11262 	* keyboard.c (input_available_signal): Move thread checking code
11263 	to macro SIGNAL_THREAD_CHECK and call that macro.
11264 	(interrupt_signal): Call SIGNAL_THREAD_CHECK.
11265 
11266 	* alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
11267 
11268 	* emacs.c: Define main_thread.
11269 	(main): Initialize main_thread.
11270 	(handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
11271 	(memory_warning_signal): Call SIGNAL_THREAD_CHECK.
11272 
11273 	* floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
11274 
11275 	* dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
11276 
11277 	* sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
11278 
11279 	* process.c (send_process_trap, sigchld_handler):
11280 	Call SIGNAL_THREAD_CHECK.
11281 
11282 	* data.c (arith_error): Call SIGNAL_THREAD_CHECK.
11283 
11284 	* atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
11285 
11286 	* xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
11287 	returning when xg_ignore_gtk_scrollbar is true.
11288 
11289 2004-12-14  Kim F. Storm  <storm@cua.dk>
11290 
11291 	* keyboard.c (read_char): Save and restore echo_string when
11292 	handling input method.
11293 
11294 2004-12-13  Richard M. Stallman  <rms@gnu.org>
11295 
11296 	* eval.c (syms_of_eval) <quit-flag>: Doc fix.
11297 
11298 	* keyboard.c (Vthrow_on_input): New variable.
11299 	(syms_of_keyboard): Defvar and initialize it.
11300 	(kbd_buffer_store_event_hold): Handle Vthrow_on_input.
11301 
11302 	* lisp.h (QUIT): Check for Vthrow_on_input.
11303 	(Vthrow_on_input): Declare it.
11304 
11305 2004-12-13  Kim F. Storm  <storm@cua.dk>
11306 
11307 	* xdisp.c (set_iterator_to_next): Reset stop_charpos after display
11308 	vector.
11309 
11310 2004-12-12  Richard M. Stallman  <rms@gnu.org>
11311 
11312 	* indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
11313 
11314 	* minibuf.c (Fall_completions): Add var `zero' and use it in loop.
11315 	(Ftry_completion): Really use outer `zero'; eliminate inner one.
11316 
11317 2004-12-12  Kenichi Handa  <handa@m17n.org>
11318 
11319 	* term.c (encode_terminal_code): Fix previous change.
11320 
11321 2004-12-11  Stefan Monnier  <monnier@iro.umontreal.ca>
11322 
11323 	* keyboard.c (handle_async_input): Remove pthread mutex handling.
11324 	(input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
11325 
11326 	* syntax.c (Fforward_word): Avoid non-idempotent side-effects
11327 	in macro arguments.
11328 
11329 	* minibuf.c (Ftry_completion, Fall_completions): Don't use
11330 	XFASTINT blindly.
11331 
11332 	* emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
11333 
11334 2004-12-11  Jan Djärv  <jan.h.d@swipnet.se>
11335 
11336 	* w32term.c (x_calc_absolute_position): Remove calculation of
11337 	difference between inner and outer window.  Don't subtract difference
11338 	for left and top calculations.
11339 
11340 	* xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
11341 	for left and top calculations.  Remove call to x_real_positions.
11342 	[Bug report by Drew Adams in November.]
11343 	(x_check_expected_move): Do not set change_gravity to 1 when calling
11344 	x_set_offset.
11345 
11346 2004-12-08  Richard M. Stallman  <rms@gnu.org>
11347 
11348 	* xdisp.c (get_next_display_element): Use `escape-glyph' for
11349 	control chars and escaped octal codes.
11350 	(Qescape_glyph): New variable.
11351 	(syms_of_xdisp): Initialize it.
11352 	(escape_glyph_face): New variable.
11353 	(redisplay_window): Initialize it.
11354 
11355 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
11356 
11357 	* image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
11358 	(init_image): Use 1 rather than TRUE.  TRUE's not always defined.
11359 
11360 2004-12-07  Jan Djärv  <jan.h.d@swipnet.se>
11361 
11362 	* emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
11363 	reset_malloc_hooks.
11364 
11365 	* keyboard.c (handle_async_input, input_available_signal):
11366 	Add ! defined (SYSTEM_MALLOC) around thread code.
11367 
11368 	* alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
11369 
11370 2004-12-07  Stefan Monnier  <monnier@iro.umontreal.ca>
11371 
11372 	* eval.c (init_eval_once): Increase max_specpdl_size to 1000.
11373 
11374 	* config.in: Regenerate.
11375 
11376 2004-12-07  Jan Djärv  <jan.h.d@swipnet.se>
11377 
11378 	* xmenu.c (Fx_popup_menu): Correct documentation about position.
11379 	(xmenu_show): Do not call XTranslateCoordinates.  Adjust position
11380 	if not given by a mouse click to correspond with x-popup-menu
11381 	documentation.
11382 
11383 	* config.in: Regenerate.
11384 
11385 	* gtkutil.c: Include signal.h and syssignal.h.
11386 	(xg_get_file_name): Block and unblock __SIGRTMIN if defined.
11387 
11388 	* alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
11389 	new variables main_thread and alloc_mutex,
11390 	define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
11391 	emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
11392 	If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same
11393 	as (UN)BLOCK_INPUT.
11394 	(emacs_blocked_free, emacs_blocked_malloc)
11395 	(emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
11396 	(uninterrupt_malloc): Initialize main_thread and alloc_mutex.
11397 	(reset_malloc_hooks): New function.
11398 
11399 	* lisp.h: Declare reset_malloc_hooks.
11400 
11401 	* emacs.c (Fdump_emacs): Call reset_malloc_hooks.
11402 
11403 	* keyboard.c: Conditionally include pthread.h.
11404 	(handle_async_input, input_available_signalt): If not in the main
11405 	thread, block signal, send signal to main thread and return.
11406 
11407 	* gtkutil.c (xg_get_file_with_chooser): Handle local files only.
11408 	Set current folder in file chooser if default_filename is a directory.
11409 
11410 2004-12-05  Stefan Monnier  <monnier@iro.umontreal.ca>
11411 
11412 	* regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
11413 	Remove redundant correctness checks.
11414 	(regex_compile): Fix up error codes for \{..\} expressions.
11415 
11416 2004-12-05  Richard M. Stallman  <rms@gnu.org>
11417 
11418 	* regex.c (regex_compile): Fix end-of-pattern case for space.
11419 
11420 2004-12-03  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11421 
11422 	* macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
11423 	* mac.c (cfstring_create_with_utf8_cstring): Add to prevent
11424 	crashes with invalid characters.
11425 	* macmenu.c (add_menu_item): Use it.
11426 	* image.c (image_load_quartz2d): Likewise.
11427 	* macfns.c (x_set_name, x_set_title): Likewise.
11428 	(Fx_file_dialog): Likewise.  Use constant CFRefs instead of
11429 	creating them each time for labels.
11430 
11431 2004-12-02  Richard M. Stallman  <rms@gnu.org>
11432 
11433 	* config.in (RE_TRANSLATE_P): If make_number is not a macro,
11434 	don't use it here.
11435 
11436 	* eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
11437 	(interactive_p): Skip Scalled_interactively_p frames
11438 	like Sinteractive_p frames.
11439 	(unwind_to_catch): Clear handling_signal.
11440 
11441 	* data.c (Fmake_variable_buffer_local): Doc fix.
11442 	(Fmake_local_variable): Doc fix.
11443 
11444 	* insdel.c (insert_from_string_before_markers)
11445 	(insert_from_string): Don't modify buffer on empty insertion.
11446 
11447 	* window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
11448 
11449 2004-12-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11450 
11451 	* macmenu.c (add_menu_item): Fallback on MacRoman if encoding
11452 	menu text as UTF8 fails.
11453 
11454 2004-12-01  Kim F. Storm  <storm@cua.dk>
11455 
11456 	* alloc.c: Add commentary for last change.
11457 	(XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
11458 	sizeof(size_t) != 4.
11459 	(overrun_check_malloc, overrun_check_realloc, overrun_check_free):
11460 	Use them.  Also clear header and trailer of freed memory.
11461 	(GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
11462 	(string_overrun_cookie): Rename from string_overrun_pattern.
11463 	(GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
11464 
11465 2004-12-01  Andreas Schwab  <schwab@suse.de>
11466 
11467 	* lisp.h: Declare string_to_multibyte.
11468 
11469 2004-12-01  Kenichi Handa  <handa@m17n.org>
11470 
11471 	* w32console.c (w32con_write_glyphs): Decide coding here.
11472 	Adjusted for the change of encode_terminal_code.
11473 
11474 	* term.c (encode_terminal_code): Don't make it "static".
11475 
11476 2004-11-30  Kenichi Handa  <handa@m17n.org>
11477 
11478 	* term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
11479 	(encode_terminal_code): Argument changed.  Encode all
11480 	characters at once, and return a pointer to the result of encoding.
11481 	(write_glyphs): Decide coding here.  Adjusted for the above change.
11482 	(insert_glyphs): Likewise.
11483 	(term_init): Initialize encode_terminal_bufsize to 0.
11484 
11485 	* coding.c (Vcode_conversion_workbuf_name): New variable.
11486 	(syms_of_coding): Initialize and staticpro it.
11487 	(set_conversion_work_buffer): New function.
11488 	(run_pre_post_conversion_on_str): Use it.
11489 	(run_pre_write_conversin_on_c_str): New function.
11490 
11491 	* coding.h (run_pre_write_conversin_on_c_str): Extern it.
11492 
11493 2004-11-30  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11494 
11495 	* keyboard.c: Don't undef SIGIO
11496 	* s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
11497 	* Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
11498 	(macfns.o): Don't depend on ccl.h.
11499 	* macfns.c (mac_frame_parm_handlers): Set handlers for
11500 	Qleft_fringe and Qright_fringe.
11501 	* macterm.c (mac_fill_rectangle_to_pixmap)
11502 	(mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
11503 	(mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
11504 	Put in #if 0.
11505 	(mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
11506 	(x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
11507 	(XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
11508 	(x_draw_glyph_string_background, x_draw_glyph_string_foreground)
11509 	[!MAC_OS8]: Added ifdef'd out code for os8.  Don't use
11510 	XDrawImageString.  Always draw background and foreground separately.
11511 	(x_draw_image_foreground): Use clipping instead of computing the
11512 	intersection rectangle.
11513 	(x_draw_image_glyph_string): Don't draw an image with mask to a
11514 	pixmap.
11515 	(x_redisplay_interface): Set flush_display_optional member to 0.
11516 	(XTread_socket): Correctly reset the TEConverter
11517 	object.
11518 
11519 2004-11-30  Kim F. Storm  <storm@cua.dk>
11520 
11521 	* lisp.h: New defines to enable buffer overrun checking.
11522 	(GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
11523 	(XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
11524 
11525 	* alloc.c: Add more checks for buffer overruns.
11526 	(XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
11527 	xmalloc_overrun_check_trailer, overrun_check_malloc)
11528 	overrun_check_realloc, overrun_check_free): Add.
11529 	(GC_STRING_EXTRA, string_overrun_pattern): Add.
11530 	(check_sblock, allocate_string_data, compact_small_strings):
11531 	Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
11532 	(check_cons_list): Condition on GC_CHECK_CONS_LIST.
11533 	(check_string_free_list): Add.
11534 	(allocate_string, sweep_strings): Call check_string_free_list.
11535 
11536 	* emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
11537 	XMALLOC_OVERRUN_CHECK to avoid crash during load.
11538 
11539 2004-11-29  Kim F. Storm  <storm@cua.dk>
11540 
11541 	* fns.c (concat): Use SAFE_ALLOCA.
11542 
11543 2004-11-29  Stefan Monnier  <monnier@iro.umontreal.ca>
11544 
11545 	* sysdep.c (emacs_write): Don't use QUIT.
11546 
11547 2004-11-29  Kenichi Handa  <handa@m17n.org>
11548 
11549 	* buffer.c (init_buffer): Set current_buffer->directory to a
11550 	multibyte string made by string_to_multibyte.
11551 
11552 	* emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
11553 
11554 2004-11-27  Andreas Schwab  <schwab@suse.de>
11555 
11556 	* alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
11557 
11558 	* s/gnu-linux.h: Enable no-op gcpros on ia64.
11559 	(GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
11560 
11561 	* filelock.c (lock_file_1): Call get_boot_time early.
11562 	Increase buffer size.
11563 
11564 2004-11-27  Eli Zaretskii  <eliz@gnu.org>
11565 
11566 	* lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
11567 	is not defined.
11568 
11569 2004-11-27  Kim F. Storm  <storm@cua.dk>
11570 
11571 	* search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
11572 	marker out of doc string.
11573 
11574 2004-11-26  Stefan Monnier  <monnier@iro.umontreal.ca>
11575 
11576 	* s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
11577 	which was not mentioned in the log.
11578 
11579 2004-11-26  Kim F. Storm  <storm@cua.dk>
11580 
11581 	* fringe.c (update_window_fringes): Prefer truncation bitmaps over
11582 	angle bitmaps at top/bottom line.
11583 
11584 	* xdisp.c: Undo recent changes for restoring saved_face_id.  Instead,
11585 	set it when it->method is set to next_element_from_display_vector.
11586 	(setup_for_ellipsis): Add LEN argument.  Callers changed.
11587 	Set it->saved_face_id.
11588 	(get_next_display_element): Use loop instead of recursion.
11589 	Set it->saved_face_id.  Combine duplicate code for ctr chars.
11590 	(next_element_from_display_vector): Do not set it->saved_face_id.
11591 	(next_element_from_ellipsis): Use setup_for_ellipsis.
11592 
11593 2004-11-26  Eli Zaretskii  <eliz@gnu.org>
11594 
11595 	* eval.c (Fdefvar): Declare pdl from last change as `volatile' to
11596 	prevent compiler warnings.
11597 
11598 2004-11-25  Stefan Monnier  <monnier@iro.umontreal.ca>
11599 
11600 	* keyboard.c (command_loop_1): Print a message describing the key
11601 	the user just pressed when this key has no binding.
11602 
11603 	* sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
11604 	(emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
11605 
11606 	* lread.c (readchar): Check QUIT when `getc' is interrupted.
11607 
11608 2004-11-24  Richard M. Stallman  <rms@gnu.org>
11609 
11610 	* coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
11611 
11612 	* buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
11613 
11614 2004-11-24  Kim F. Storm  <storm@cua.dk>
11615 
11616 	* xdisp.c (move_it_in_display_line_to, display_line):
11617 	Restore saved_face_id also when truncate-lines or hscrolled.
11618 
11619 2004-11-23  Jan Djärv  <jan.h.d@swipnet.se>
11620 
11621 	* gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
11622 	x-use-old-gtk-file-dialog.
11623 
11624 	* xfns.c: Define x_use_old_gtk_file_dialog.
11625 	(syms_of_xfns): Rename use-old-gtk-file-dialog to x-...  Move it
11626 	outside ifdef USE_GTK.
11627 
11628 2004-11-23  Stefan Monnier  <monnier@iro.umontreal.ca>
11629 
11630 	* coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
11631 	Don't use XFASTINT blindly.
11632 
11633 	* config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
11634 
11635 	* indent.c (skip_invisible): Avoid non-idempotent side-effects
11636 	in macro arguments.
11637 
11638 	* keymap.c (Flookup_key): Check INTEGERP before XINT.
11639 
11640 	* lread.c (oblookup): Don't use XFASTINT blindly.
11641 
11642 	* window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
11643 	(decode_next_window_args, window_loop): Don't use XFASTINT blindly.
11644 
11645 2004-11-23  Kim F. Storm  <storm@cua.dk>
11646 
11647 	* dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
11648 	(MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
11649 
11650 	* xfaces.c (lookup_named_face): Add signal_p arg.  Return -1 if
11651 	signal_p is zero and face name is unknown.
11652 	(Fx_list_fonts): Don't signal error in lookup_named_face.
11653 	(Fface_font): Signal error in lookup_named_face.
11654 	(ascii_face_of_lisp_face): Likewise.
11655 
11656 	* dispextern.h (lookup_named_face): Fix prototype.
11657 
11658 	* xdisp.c (handle_single_display_prop): Don't signal error in
11659 	lookup_named_face for unknown fringe face name.
11660 	(highlight_trailing_whitespace): Don't signal error in
11661 	lookup_named_face if trailing-whitespace face unknown.
11662 	(calc_line_height_property): Don't signal error in
11663 	lookup_named_face if specified face name is unknown.
11664 
11665 	* fringe.c (update_window_fringes): Show top row indicator if
11666 	window has header-line.  Don't show arrow at bob and eob
11667 	if the boundary indicators are not used.
11668 	(Fset_fringe_bitmap_face): Signal error in lookup_named_face.
11669 
11670 	* window.c (set_window_buffer): Clear display_error_modiff.
11671 
11672 2004-11-22  Kim F. Storm  <storm@cua.dk>
11673 
11674 	* fringe.c (update_window_fringes): Provide sensible fall-back
11675 	value for non-nil indicate-buffer-boundaries setting.
11676 
11677 2004-11-22  Markus Rost  <rost@ias.edu>
11678 
11679 	* minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
11680 
11681 2004-11-22  Stefan Monnier  <monnier@iro.umontreal.ca>
11682 
11683 	* eval.c (Fdefvar): Warn when var is let-bound but globally void.
11684 
11685 2004-11-21  Kim F. Storm  <storm@cua.dk>
11686 
11687 	* xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
11688 
11689 	* xterm.c (x_clip_to_row): Add area arg.  Callers changed.
11690 	(x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
11691 
11692 	* w32term.c (w32_clip_to_row): Add area arg.  Callers changed.
11693 	(x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
11694 
11695 	* macterm.c (x_clip_to_row): Add area arg.  Callers changed.
11696 	(x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
11697 
11698 	* xdisp.c (move_it_in_display_line_to, display_line):
11699 	Restore saved_face_id if overflow-newline-into-fringe is enabled and
11700 	line is continued before or in middle of element from display vector.
11701 
11702 	* indent.c (Fvertical_motion): Fix last change.  Use another
11703 	method to detect if iterator moved too far ahead after reseat.
11704 
11705 	* xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro.  Do not
11706 	expand matrix width for overflow in zero-width area.
11707 	(append_glyph, append_composite_glyph, produce_image_glyph)
11708 	(append_stretch_glyph): Use it to avoid loop in redisplay.
11709 	(note_mode_line_or_margin_highlight): Don't let help-echo from
11710 	string override help-echo from image map.
11711 
11712 2004-11-20  Luc Teirlinck  <teirllm@auburn.edu>
11713 
11714 	* fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
11715 	* callint.c (Fcall_interactively): Ditto.
11716 
11717 2004-11-20  Stefan Monnier  <monnier@iro.umontreal.ca>
11718 
11719 	* minibuf.c (Fminibuffer_complete_and_exit):
11720 	Fixup the case of the completed value, for case-indep completion.
11721 
11722 2004-11-20  Richard M. Stallman  <rms@gnu.org>
11723 
11724 	* lisp.h (Fread_from_minibuffer): Add arg in decl.
11725 
11726 	* minibuf.c (read_minibuf): New arg KEEP_ALL.  Callers changed.
11727 	(Fread_from_minibuffer): New arg KEEP_ALL.  Callers changed.
11728 
11729 	* search.c (Vsearch_spaces_regexp):
11730 	Rename from Vsearch_whitespace_regexp.  All uses changed.
11731 
11732 2004-11-20  Thien-Thi Nguyen  <ttn@gnu.org>
11733 
11734 	* eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
11735 
11736 2004-11-19  Richard M. Stallman  <rms@gnu.org>
11737 
11738 	* search.c (Vsearch_whitespace_regexp): New variable.
11739 	(syms_of_search): Defvar it.
11740 	(compile_pattern_1): Call re_set_whitespace_regexp with it.
11741 	(search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
11742 	is non-nil.
11743 	(struct regexp_cache): New element whitespace_regexp.
11744 	(syms_of_search): Initialize whitespace_regexp elements.
11745 	(compile_pattern): Compare whitespace_regexp elements.
11746 	(compile_pattern_1): Set whitespace_regexp elements.
11747 
11748 	* regex.c (regex_compile): Substitute whitespace_regexp
11749 	for spaces, if it is nonzero.
11750 	(whitespace_regexp): New variable.
11751 	(re_set_whitespace_regexp): New function.
11752 
11753 2004-11-19  Kim F. Storm  <storm@cua.dk>
11754 
11755 	* indent.c (Fvertical_motion): Fix last change.
11756 
11757 2004-11-18  Kim F. Storm  <storm@cua.dk>
11758 
11759 	* indent.c (Fvertical_motion): Undo 2004-11-16 change.
11760 	Instead, move back again if reseating moves too far ahead.
11761 
11762 2004-11-17  Luc Teirlinck  <teirllm@auburn.edu>
11763 
11764 	* xdisp.c (message3): Call clear_message.
11765 
11766 2004-11-17  Kim F. Storm  <storm@cua.dk>
11767 
11768 	* xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
11769 
11770 2004-11-16  Jan Djärv  <jan.h.d@swipnet.se>
11771 
11772 	* gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
11773 
11774 	* xmenu.c (x_menu_in_use): Remove.
11775 	(x_menu_set_in_use): Also set popup_activated_flag.
11776 
11777 	* xfns.c (Fx_file_dialog): Call popup_activated instead of
11778 	x_menu_in_use.  Call x_menu_set_in_use in Motif version also.
11779 
11780 	* xterm.h (x_menu_in_use): Remove.
11781 
11782 2004-11-16  Richard M. Stallman  <rms@gnu.org>
11783 
11784 	* keymap.c (Fmap_keymap): New arg SORT-FIRST.
11785 	Use map-keymap-internal to implement that.
11786 
11787 	* indent.c (Fvertical_motion): In batch mode, use vmotion directly.
11788 
11789 2004-11-16  Stefan Monnier  <monnier@iro.umontreal.ca>
11790 
11791 	* xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
11792 	a window before using XWINDOW.
11793 
11794 	* window.c (make_window, Fselect_window, make_dummy_parent)
11795 	(save_window_save):
11796 	* frame.c (make_frame):
11797 	* fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
11798 
11799 	* lisp.h (NILP): Use EQ rather than XFASTINT.
11800 
11801 2004-11-16  Kim F. Storm  <storm@cua.dk>
11802 
11803 	* fringe.c (Fdefine_fringe_bitmap): Always set 'h'.  Simplify.
11804 
11805 	* indent.c (Fvertical_motion): Fix last change.  Only reseat when
11806 	moving backwards.
11807 
11808 2004-11-16  Luc Teirlinck  <teirllm@auburn.edu>
11809 
11810 	* dispextern.h: Extern reseat_at_previous_visible_line_start.
11811 
11812 2004-11-16  Kenichi Handa  <handa@m17n.org>
11813 
11814 	* xdisp.c (display_mode_element): Fix previous change (calculate
11815 	end position of substring to display correctly).
11816 
11817 2004-11-16  Kim F. Storm  <storm@cua.dk>
11818 
11819 	* keyboard.c (Fposn_at_point): Remove extra */ after doc string.
11820 	Reported by Andrew M. Scott.
11821 
11822 2004-11-15  Kim F. Storm  <storm@cua.dk>
11823 
11824 	* fns.c (Fsafe_plist_get): New defun.
11825 	(syms_of_fns): Defsubr it.
11826 
11827 	* lisp.h (Fsafe_plist_get): Add EXFUN.
11828 
11829 	* xdisp.c (store_mode_line_string, produce_stretch_glyph):
11830 	Use Fsafe_plist_get.
11831 	(note_mode_line_or_margin_highlight, note_mouse_highlight):
11832 	Fix image map element parsing.  Use Fsafe_plist_get.
11833 
11834 2004-11-15  Richard M. Stallman  <rms@gnu.org>
11835 
11836 	* xdisp.c (get_next_display_element): Fix previous change.
11837 
11838 2004-11-14  Jan Djärv  <jan.h.d@swipnet.se>
11839 
11840 	* window.c (shrink_windows): Handle special case of one window left
11841 	when trying to shrink the final reminder.  Grow windows if
11842 	total_removed is less than total_shrink.
11843 
11844 	* xmenu.c (pop_down_menu): Remove global variable current_menu,
11845 	extract pointer from arg with XSAVE_VALUE.
11846 	(create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
11847 	Construct arg to record_unwind_protect with make_save_value.
11848 
11849 2004-11-13  Richard M. Stallman  <rms@gnu.org>
11850 
11851 	* xdisp.c (reseat_at_previous_visible_line_start): No longer static.
11852 	(get_next_display_element): Fix previous change to apply only to \n.
11853 
11854 	* indent.c (Fvertical_motion): Scan to PT from start of line to
11855 	make iterator consistent.
11856 
11857 	* minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
11858 
11859 2004-11-14  Jan Djärv  <jan.h.d@swipnet.se>
11860 
11861 	* gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
11862 
11863 	* xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
11864 	Record unwind with clean_up_file_dialog.
11865 
11866 	* xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
11867 	Declare.
11868 
11869 	* xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
11870 
11871 2004-11-13  Jan Djärv  <jan.h.d@swipnet.se>
11872 
11873 	* gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
11874 	(xg_file_sel_destroy): Remove.
11875 	(xg_file_response_cb, pop_down_file_dialog)
11876 	(xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
11877 	New functions.
11878 	(xg_get_file_with_chooser, xg_get_file_with_selection):
11879 	Take new arg func, set it to xg_get_file_name_from_chooser/selector.
11880 	Move common code to xg_get_file_name.  Return widget created.
11881 	(xg_get_file_name): Set name, transient for, modal and destroy
11882 	with parent here.  Connect response signal to xg_file_response_cb,
11883 	connect delete-event to gtk_true.  Record pop_down_file_dialog
11884 	for unwind.  Do event loop and call x_menu_wait_for_event in loop.
11885 	(xg_create_widget): Make dialogs modal.
11886 
11887 	* xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
11888 	Lisp_Object.
11889 	(popup_get_selection): Move unwind protect ...
11890 	(create_and_show_popup_menu, create_and_show_dialog): ... to here.
11891 	Move destroy of widget to pop_down_menu.
11892 	(popup_widget_loop): Move unwind protect ...
11893 	(create_and_show_popup_menu, create_and_show_dialog): ... to here.
11894 	Move destroy of widget to pop_down_menu.
11895 	(pop_down_menu): BLOCK_INPUT and destroy widget/window.
11896 	(xmenu_show): Record unwind pop_down_menu.  Move XMenuDestroy,
11897 	x_mouse_leave and grabbed = 0 to pop_down_menu.
11898 
11899 2004-11-13  Kim F. Storm  <storm@cua.dk>
11900 
11901 	* xdisp.c (make_cursor_line_fully_visible_p): New variable.
11902 	(syms_of_xdisp): DEFVAR_BOOL it.
11903 	(make_cursor_line_fully_visible, try_cursor_movement)
11904 	(try_window_id): Use it.
11905 
11906 2004-11-12  Kim F. Storm  <storm@cua.dk>
11907 
11908 	* dispextern.h (struct glyph_row): New member extra_line_spacing.
11909 	(struct it): New member max_extra_line_spacing.
11910 	(MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
11911 	(MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
11912 	(MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
11913 	part of last line is only extra line spacing (so the text on the
11914 	line is fully visible).  Use helper macros.
11915 	Add W arg (to use them).  All callers changed.
11916 	(MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
11917 	(MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
11918 
11919 	* window.c (window_scroll_pixel_based, Frecenter):
11920 	Use move_it_vertically_backward directly.
11921 	(Frecenter): Fix calculation of new start pos for negative arg.
11922 	Before, the new start pos was sometimes chosen too far back, so
11923 	the last line became only partially visible, and thus would be
11924 	either only semi-visible or automatically scrolled to the middle
11925 	of the window by redisplay.
11926 
11927 	* xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
11928 	(move_it_vertically_backward): Don't recurse to move further back.
11929 	(move_it_vertically): Remove superfluous condition.
11930 	(move_it_by_lines): Clear last_height when moved 0 lines.
11931 	(resize_mini_window): Use it.max_extra_line_spacing.
11932 	(display_tool_bar_line): Clear row->extra_line_spacing.
11933 	(try_scrolling): Use move_it_vertically_backward directly.
11934 	(redisplay_window): Likewise.
11935 	(compute_line_metrics): Set row->extra_line_spacing.
11936 	(display_line, display_string): Likewise.
11937 	(x_produce_glyphs): Update it->max_extra_line_spacing.
11938 
11939 	* xmenu.c (pop_down_menu): Return nil.
11940 
11941 2004-11-12  Jan Djärv  <jan.h.d@swipnet.se>
11942 
11943 	* xmenu.c (x_menu_wait_for_event): New function.
11944 	(popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
11945 	to handle timers.
11946 	(popup_widget_loop): Add argument do_timers.
11947 	(create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
11948 	do_timers to popup_widget_loop.
11949 	(xmenu_show): Call XMenuActivateSetWaitFunction so that
11950 	x_menu_wait_for_event is called by XMenuActivate.
11951 	(create_and_show_popup_menu): Pass 1 for do_timers to
11952 	popup_get_selection.
11953 	(pop_down_menu): New function.
11954 	(popup_get_selection, popup_widget_loop): Unwind protect to
11955 	pop_down_menu.
11956 	(popup_widget_loop): Add argument widget.
11957 	(create_and_show_popup_menu, create_and_show_dialog): Pass new
11958 	argument widget to popup_widget_loop.
11959 
11960 2004-11-10  Stefan Monnier  <monnier@iro.umontreal.ca>
11961 
11962 	* keymap.c (Fkeymap_prompt): Accept symbol keymaps.
11963 
11964 2004-11-09  Kim F. Storm  <storm@cua.dk>
11965 
11966 	* xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
11967 	Fix various comments referring to XEvents instead of input events.
11968 	(x_queue_event): Fix format strings.
11969 	(x_stop_queuing_selection_requests): Likewise.
11970 
11971 	* xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
11972 	(pint2hrstr): Add extra braces to silence compiler.
11973 
11974 	* print.c (print_object): Fix format string.
11975 
11976 	* lread.c (read1): Fix next_char matching.
11977 
11978 	* lisp.h (Fdelete): Add EXFUN.
11979 	(replace_range_2): Add prototype.
11980 
11981 	* keyboard.c (read_avail_input): Remove unused variable 'discard'.
11982 
11983 	* intervals.h (NULL_INTERVAL_P): Add separate version when
11984 	ENABLE_CHECKING is not defined to silence compiler.
11985 	(compare_string_intervals): Add prototype.
11986 
11987 	* fringe.c (destroy_fringe_bitmap): Fix return type.
11988 	(Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
11989 
11990 	* emacs.c (Fdump_emacs): Fix format string.
11991 
11992 	* doc.c: Include <ctype.h>.
11993 	(Fsubstitute_command_keys): Remove unused variable 'firstkey'.
11994 
11995 	* data.c (store_symval_forwarding): Remove unused variables.
11996 
11997 	* callint.c (Fcall_interactively): Remove unused variable 'funcar'.
11998 
11999 2004-11-09  Jan Djärv  <jan.h.d@swipnet.se>
12000 
12001 	* Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
12002 	to ${OLDXMENU}.
12003 
12004 2004-11-09  Kim F. Storm  <storm@cua.dk>
12005 
12006 	* process.c (Fmake_network_process): Remove kludge for interrupted
12007 	connects on BSD.  If connect is interrupted, just close socket and
12008 	start over rather than sleeping and retry with same socket.
12009 
12010 2004-11-09  Jan Djärv  <jan.h.d@swipnet.se>
12011 
12012 	* .cvsignore: Add buildobj.lst.
12013 
12014 	* doc.c: New variable Vbuild_files.
12015 	(Fsnarf_documentation): If Vbuild_files is nil, populate it with
12016 	file names from buildobj.lst.  Only attach docstrings from files
12017 	that are in Vbuild_files.
12018 	(syms_of_doc): Defvar Vbuild_files.
12019 
12020 	* Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
12021 	and w32*.o.
12022 	(temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
12023 	(mostlyclean): Rm buildobj.lst.
12024 
12025 	* makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
12026 	is linked.
12027 
12028 2004-11-09  Kim F. Storm  <storm@cua.dk>
12029 
12030 	* fringe.c (update_window_fringes): Update fringe bitmaps if
12031 	cur and row ends_at_zv_p differs.  If bitmaps of a row is updated,
12032 	also update previous row to get rid of misc. artifacts.
12033 
12034 2004-11-08  Kim F. Storm  <storm@cua.dk>
12035 
12036 	* xdisp.c (fast_find_position): Fix start pos if header line present.
12037 	(note_mouse_highlight): Clear mouse face if we move out of text area.
12038 
12039 2004-11-08  Eli Zaretskii  <eliz@gnu.org>
12040 
12041 	* editfns.c: Move #include "systime.h" before <sys/resource.h>.
12042 	Don't include <sys/time.h> explicitly.
12043 	Include <stdio.h> unconditionally, not just on MacOS.
12044 
12045 2004-11-08  Kenichi Handa  <handa@m17n.org>
12046 
12047 	* fontset.c (fontset_pattern_regexp): Cancel my previous change;
12048 	don't pay attention to '\' before '*'.
12049 	(fontset_pattern_regexp): Change the meaning of the second arg.
12050 	(Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
12051 	(check_fontset_name): Try NAME as literal at first, and if it
12052 	fails, try NAME as pattern.
12053 
12054 2004-11-07  Jan Djärv  <jan.h.d@swipnet.se>
12055 
12056 	* emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
12057 
12058 2004-11-07  Andreas Schwab  <schwab@suse.de>
12059 
12060 	* lisp.h (Fmsdos_downcase_filename): Declare.
12061 	* dired.c (Fmsdos_downcase_filename): Don't declare here.
12062 	* fileio.c: Likewise.
12063 
12064 2004-11-07  Jan Djärv  <jan.h.d@swipnet.se>
12065 
12066 	* dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
12067 	comparisons with integers instead of Lisp_Object address.
12068 	(Fmsdos_set_keyboard): Declare argument allkeys.
12069 
12070 	* msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
12071 
12072 	* dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
12073 	int/Lisp_Object mixup.
12074 
12075 	* fileio.c: Ditto.
12076 
12077 2004-11-06  Steven Tamm  <steventamm@mac.com>
12078 
12079 	* editfns.c: Need to include sys/time.h before resource.h on darwin.
12080 
12081 2004-11-06  Richard M. Stallman  <rms@gnu.org>
12082 
12083 	* callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
12084 
12085 	* xfaces.c (merge_named_face): GCPRO the face_name in the
12086 	named_merge_point struct that we make.
12087 	(merge_face_heights): Eliminate GCPRO arg.  All callers changed.
12088 
12089 	* keyboard.c (command_loop_1): Change Vtransient_mark_mode
12090 	before deciding whether to deactivate mark.
12091 
12092 2004-11-06  Lars Brinkhoff  <lars@nocrew.org>
12093 
12094 	* config.in: Regenerate (add HAVE_GETRUSAGE).
12095 	* editfns.c (Fget_internal_run_time): New function.
12096 	(syms_of_data): Defsubr it.
12097 	* fns.c (sxhash): As far as possible, merge calculation of
12098 	hash code for symbols and strings.
12099 
12100 2004-11-06  Eli Zaretskii  <eliz@gnu.org>
12101 
12102 	* frame.c (syms_of_frame): Fix the example in the doc string.
12103 
12104 2004-11-06  Jan Djärv  <jan.h.d@swipnet.se>
12105 
12106 	* eval.c (Feval): Remove check for INPUT_BLOCKED_P.
12107 
12108 	* xmenu.c (popup_get_selection, create_and_show_popup_menu)
12109 	(create_and_show_dialog): Revert change from 2004-10-31.
12110 
12111 2004-11-05  Luc Teirlinck  <teirllm@auburn.edu>
12112 
12113 	* macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
12114 
12115 2004-11-05  Kim F. Storm  <storm@cua.dk>
12116 
12117 	* print.c (print_object): Print Lisp_Misc_Save_Value objects.
12118 
12119 	* fileio.c (Ffile_modes): Doc fix.
12120 	(auto_save_1): Check for Ffile_modes nil value.
12121 
12122 2004-11-05  Kim F. Storm  <storm@cua.dk>
12123 
12124 	* xselect.c (struct selection_event_queue, selection_queue)
12125 	(x_queue_selection_requests, x_queue_event)
12126 	(x_start_queuing_selection_requests)
12127 	(x_stop_queuing_selection_requests): Add new queue for selection
12128 	input events to replace previous XEvent queue in xterm.c.
12129 	(queue_selection_requests_unwind): Adapt to new queue.
12130 	(x_reply_selection_request): Adapt to new queue.
12131 	Unexpect wait_object in case of x errors (memory leak).
12132 	(x_handle_selection_request, x_handle_selection_clear): Make static.
12133 	(x_handle_selection_event): New function.  May queue selection events.
12134 	(wait_for_property_change_unwind): Use save_value instead of cons.
12135 	Clear property_change_reply_object.
12136 	(wait_for_property_change): Abort if already waiting.
12137 	Use save_value instead of cons for unwind data.
12138 	(x_handle_property_notify): Skip events already arrived, but don't
12139 	free them, as "arrived" field is checked by wait_for_property_change,
12140 	and it will be freed by unwind or explicit unexpect_property_change.
12141 	(x_get_foreign_selection): Add to new queue.
12142 	(receive_incremental_selection): Don't unexpect wait_object when done
12143 	as it has already been freed by previous wait_for_property_change.
12144 
12145 	* xterm.h (x_start_queuing_selection_requests)
12146 	(x_stop_queuing_selection_requests, x_handle_selection_request)
12147 	(x_handle_selection_clear): Remove prototypes.
12148 	(x_handle_selection_event): Add prototype.
12149 
12150 	* xterm.c (handle_one_xevent): Don't queue X selection events
12151 	here, it may be too late if we start queuing after we have already
12152 	stored some selection events into the kbd buffer.
12153 	(struct selection_event_queue, queue, x_queue_selection_requests)
12154 	(x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
12155 	(x_stop_queuing_selection_requests): Remove/move to xselect.c.
12156 	(x_catch_errors_unwind): Block input around final XSync.
12157 
12158 	* keyboard.h (kbd_buffer_unget_event): Add prototype.
12159 
12160 	* keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
12161 	(kbd_buffer_unget_event): New function.
12162 	(kbd_buffer_get_event, swallow_events): Combine SELECTION events
12163 	and use x_handle_selection_event.
12164 	(mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
12165 
12166 2004-11-05  Jan Djärv  <jan.h.d@swipnet.se>
12167 
12168 	* xselect.c (TRACE3): New debug macro.
12169 	(x_reply_selection_request): Use it.
12170 	(receive_incremental_selection): In call to TRACE0, the name of
12171 	a symbol is in xname.
12172 
12173 2004-11-05  Kim F. Storm  <storm@cua.dk>
12174 
12175 	* fontset.c (fontset_pattern_regexp): Use unsigned char.
12176 
12177 2004-11-04  Jan Djärv  <jan.h.d@swipnet.se>
12178 
12179 	* fileio.c (Fnext_read_file_uses_dialog_p): New function.
12180 
12181 	* gtkutil.h (use_old_gtk_file_dialog): Declare.
12182 
12183 	* gtkutil.c: Make use_old_gtk_file_dialog non-static.
12184 	(xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
12185 	* xfns.c (syms_of_xfns): ... to here.
12186 
12187 	* gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
12188 	it doesn't start with /.
12189 
12190 2004-11-04  Kenichi Handa  <handa@m17n.org>
12191 
12192 	* fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
12193 	treat it as a literal character.
12194 
12195 2004-11-03  Kim F. Storm  <storm@cua.dk>
12196 
12197 	* .gdbinit (ppt): New function.
12198 
12199 2004-11-02  Jan Djärv  <jan.h.d@swipnet.se>
12200 
12201 	* xterm.c (x_window_to_scroll_bar): Only call
12202 	xg_get_scroll_id_for_window if toolkit scroll bars are used.
12203 
12204 	* gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
12205 	of save.
12206 
12207 2004-11-02  Andreas Schwab  <schwab@suse.de>
12208 
12209 	* window.c (Fscroll_right): Fix last change.
12210 
12211 2004-11-02  Kim F. Storm  <storm@cua.dk>
12212 
12213 	* Makefile.in (callproc.o): Depend on blockinput.h, atimer.h, systime.h.
12214 
12215 2004-11-02  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12216 
12217 	* callproc.c (Fcall_process): Block input around vfork.
12218 
12219 2004-11-02  Kim F. Storm  <storm@cua.dk>
12220 
12221 	* eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
12222 	(syms_of_eval): Defsubr it.
12223 
12224 2004-11-02  Richard M. Stallman  <rms@gnu.org>
12225 
12226 	* insdel.c (replace_range_2): New function.
12227 
12228 	* casefiddle.c (casify_region): Handle changes in byte-length
12229 	using replace_range_2.
12230 
12231 	* emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
12232 
12233 	* xdisp.c (back_to_previous_visible_line_start):
12234 	Subtract 1 from pos when checking previous newline for invisibility.
12235 
12236 	* window.c (window_scroll_pixel_based): Update preserve_y
12237 	for header line if any.
12238 	(Fscroll_left, Fscroll_right): Don't call interactive_p;
12239 	use a new second argument instead.
12240 
12241 	* eval.c (Fcall_interactive_p): New function.
12242 	(interactive_p): Don't test INTERACTIVE here.
12243 	(Finteractive_p): Doc fix.
12244 
12245 	* eval.c (Feval): Abort if INPUT_BLOCKED_P.
12246 
12247 2004-11-02  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
12248 
12249 	* w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
12250 	comparing font names.
12251 
12252 2004-11-02  Jan Djärv  <jan.h.d@swipnet.se>
12253 
12254 	* fileio.c (Fread_file_name): Pass Qt as fifth parameter to
12255 	Fx_file_dialog if only directories should be read.
12256 
12257 	* lisp.h: Fx_file_dialog takes 5 parameters.
12258 
12259 	* xfns.c (Fx_file_dialog): Both Motif and GTK version:
12260 	Add parameter only_dir_p.
12261 	In Motif version, don't put DEFAULT_FILENAME in filter part of the
12262 	dialog, just text field part.  Do not add DEFAULT_FILENAME
12263 	to list of files if it isn't there.
12264 	In GTK version, pass only_dir_p parameter to xg_get_file_name.
12265 
12266 	* macfns.c (Fx_file_dialog): Add parameter only_dir_p.
12267 	Check only_dir_p instead of comparing prompt to "Dired".  When using
12268 	a save dialog, add option kNavDontConfirmReplacement, change title
12269 	to "Enter name", change text for save button to "Ok".
12270 
12271 	* w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
12272 	Check only_dir_p instead of comparing prompt to "Dired".
12273 
12274 	* gtkutil.c (xg_get_file_with_chooser, xg_get_file_with_selection):
12275 	New functions, only defined ifdef HAVE_GTK_FILE_CHOOSER_DIALOG_NEW
12276 	and HAVE_GTK_FILE_SELECTION_NEW respectively.
12277 	(xg_get_file_name): Add parameter only_dir_p.
12278 	Call xg_get_file_with_chooser or xg_get_file_with_selection
12279 	depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
12280 	(xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
12281 
12282 	* gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
12283 
12284 	* config.in: Rebuild (added HAVE_GTK_FILE_*).
12285 
12286 2004-11-01  Kim F. Storm  <storm@cua.dk>
12287 
12288 	* process.c (connect_wait_mask, num_pending_connects):
12289 	Only declare and use them if NON_BLOCKING_CONNECT is defined.
12290 	(init_process): Initialize them if NON_BLOCKING_CONNECT defined.
12291 	(IF_NON_BLOCKING_CONNECT): New helper macro.
12292 	(wait_reading_process_output): Only declare and use local vars
12293 	Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
12294 
12295 2004-11-01  Andy Petrusenco  <Igrek@star-sw.com>  (tiny change)
12296 
12297 	* w32term.c (x_scroll_run): Delete region objects after use.
12298 
12299 2004-10-31  Jan Djärv  <jan.h.d@swipnet.se>
12300 
12301 	* xmenu.c: Add prototypes for forward function declarations.
12302 	(popup_get_selection): Remove parameter do_timers, remove call to
12303 	timer_check.
12304 	(create_and_show_popup_menu, create_and_show_dialog):
12305 	Remove parameter do_timers from call to popup_get_selection.
12306 
12307 	* xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
12308 	tool_bar_items and assign the result to f->tool_bar_items if
12309 	not equal.  Move BLOCK/UNBLOCK_INPUT from around call to
12310 	tool_bar_items to assignment of result.
12311 
12312 	* atimer.c (alarm_signal_handler): Do not call set_alarm if
12313 	pending_atimers is non-zero.
12314 
12315 2004-10-31  Kim F. Storm  <storm@cua.dk>
12316 
12317 	* dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
12318 
12319 2004-10-28  Will Glozer  <will@glozer.net>
12320 
12321 	* macterm.c: Allow user to assign key modifiers to the Mac Option
12322 	key via a 'mac-option-modifier' variable.
12323 
12324 2004-10-28  Stefan Monnier  <monnier@iro.umontreal.ca>
12325 
12326 	* xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
12327 	Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
12328 	(x_handle_selection_request, x_handle_selection_clear)
12329 	(x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
12330 
12331 2004-10-28  Richard M. Stallman  <rms@gnu.org>
12332 
12333 	* w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
12334 
12335 	* xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
12336 
12337 2004-10-27  Stefan Monnier  <monnier@iro.umontreal.ca>
12338 
12339 	* syntax.c (scan_sexps_forward): Give precedence to a 2-char
12340 	comment-starter over a 1-char one.
12341 
12342 2004-10-27  Richard M. Stallman  <rms@gnu.org>
12343 
12344 	* xdisp.c (get_next_display_element): In mode lines,
12345 	treat newline and tab like other control characters.
12346 
12347 	* editfns.c (Fmessage): Doc fix.
12348 
12349 	* indent.c (vmotion): When moving up, check the newline before.
12350 	Make prevline an int, not a Lisp_Object.
12351 
12352 2004-10-27  Kim F. Storm  <storm@cua.dk>
12353 
12354 	* editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
12355 	Only allocate info and discarded tables once.
12356 
12357 	* lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
12358 	(SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
12359 	(SAFE_FREE): Test it to determine if we need to unwind to free.
12360 	Remove size arg.  All users changed.
12361 	(SAFE_FREE_LISP): Remove.  All users changed to use SAFE_FREE.
12362 
12363 2004-10-26  Jan Djärv  <jan.h.d@swipnet.se>
12364 
12365 	* gtkutil.c: Put empty line between comment and function body.
12366 	(xg_destroy_widgets): Rename from remove_from_container.
12367 	Just destroy all widgets in list.  Argument wcont removed.
12368 	(xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
12369 	instead of remove_from_container.
12370 	(xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
12371 	(free_frame_tool_bar): Add comment.
12372 
12373 	* xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
12374 	is not NULL before strcmp.
12375 
12376 2004-10-26  Kim F. Storm  <storm@cua.dk>
12377 
12378 	* callint.c (Fcall_interactively): Add 'U' code to get the
12379 	up-event discarded by a previous 'k' or 'K' argument.
12380 
12381 2004-10-26  David Kastrup  <dak@gnu.org>
12382 
12383 	* buffer.c (syms_of_buffer): Fix a few typos.
12384 
12385 2004-10-26  Jan Djärv  <jan.h.d@swipnet.se>
12386 
12387 	* xsmfns.c: Put empty line between comment and function body.
12388 	Use two spaces before comment end.
12389 
12390 2004-10-25  Kenichi Handa  <handa@m17n.org>
12391 
12392 	* fontset.c (fontset_pattern_regexp): Optimize for the case that
12393 	PATTERN is full XLFD.
12394 
12395 2004-10-24  Kenichi Handa  <handa@m17n.org>
12396 
12397 	* regex.h (enum reg_errcode_t): New value REG_ERANGEX.
12398 
12399 	* regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
12400 	(regex_compile): Return REG_ERANGEX if appropriate.
12401 
12402 2004-10-22  Kenichi Handa  <handa@m17n.org>
12403 
12404 	* editfns.c (Ftranslate_region_internal): New function.
12405 	(syms_of_editfns): Defsubr it.
12406 
12407 2004-10-22  Jan Djärv  <jan.h.d@swipnet.se>
12408 
12409 	* xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
12410 
12411 2004-10-21  Károly Lőrentey  <lorentey@elte.hu>
12412 
12413 	* xterm.h (x_output): New member `xic_base_fontname'.
12414 	(FRAME_XIC_BASE_FONTNAME): New macro.
12415 	(xic_free_xfontset): Declare.
12416 
12417 	* xfns.c (xic_create_xfontset): Share fontsets between frames
12418 	based on base_fontname.
12419 	(xic_free_xfontset): New function.
12420 	(free_frame_xic): Use it.
12421 	(xic_set_xfontset): Ditto.
12422 
12423 	* xterm.c (xim_destroy_callback): Ditto.
12424 
12425 2004-10-20  B. Anyos  <banyos@freemail.hu>  (tiny change)
12426 
12427 	* w32term.c (x_draw_glyph_string): Use overline_color for overlines.
12428 
12429 2004-10-20  Jan Djärv  <jan.h.d@swipnet.se>
12430 
12431 	* xterm.h (XSync): If USE_GTK, define XSync as process_all and then
12432 	XSync.
12433 
12434 	* emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
12435 	New variables and constant.
12436 	(main): Calculate heap_bss_diff.  If we are dumping and the
12437 	heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
12438 	and exec ourself again.
12439 	(Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
12440 	print a warning.
12441 
12442 	* lastfile.c: Make my_endbss and my_endbss_static available on all
12443 	platforms.
12444 
12445 	* Makefile.in (RUN_TEMACS): Remove @SETARCH@.
12446 	* config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
12447 
12448 2004-10-19  Luc Teirlinck  <teirllm@auburn.edu>
12449 
12450 	* data.c (Flocal_variable_if_set_p): Doc fix.
12451 
12452 2004-10-19  Jason Rumney  <jasonr@gnu.org>
12453 
12454 	* w32.c (init_environment): Set emacs_dir correctly when running
12455 	emacs from the build directory.
12456 
12457 2004-10-19  Richard M. Stallman  <rms@gnu.org>
12458 
12459 	* editfns.c (Fdelete_and_extract_region):
12460 	If region is empty, return null string.
12461 
12462 2004-10-19  Jan Djärv  <jan.h.d@swipnet.se>
12463 
12464 	* gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
12465 	and canon_width.
12466 	(xg_frame_cleared): Remove.
12467 
12468 	* gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
12469 	(xg_find_top_left_in_fixed): Remove.
12470 	(xg_create_scroll_bar): Put an event box widget between
12471 	the scroll bar widget and the edit widget.
12472 	(xg_show_scroll_bar): Show the parent widget (the event box).
12473 	(xg_remove_scroll_bar): Destroy parent (the event box) also.
12474 	(xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
12475 	Move the parent (the event box) widget inside the fixed widget.
12476 	Move window clear to xterm.c.
12477 
12478 	* gtkutil.h (xg_frame_cleared): Remove.
12479 
12480 	* xterm.c (x_clear_frame): Remove call to xg_frame_cleared.
12481 	(x_scroll_bar_create, XTset_vertical_scroll_bar):
12482 	Remove arguments left and width to xg_update_scrollbar_pos.
12483 	(XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
12484 
12485 2004-10-19  Kenichi Handa  <handa@m17n.org>
12486 
12487 	* xdisp.c (display_mode_element): Fix display of wide chars.
12488 
12489 2004-10-18  Jan Djärv  <jan.h.d@swipnet.se>
12490 
12491 	* gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
12492 	gdk_window_clear and move gdk_window_process_all_updates after
12493 	clear so events are sent to the X server in correct order.
12494 
12495 2004-10-18  Kenichi Handa  <handa@m17n.org>
12496 
12497 	* fontset.c (fs_load_font): Use fast_string_match_ignore_case for
12498 	comparing font names.
12499 	(fs_query_fontset): Use fast_string_match for comparing fontset names.
12500 	(list_fontsets): Likewise.
12501 
12502 	* search.c (fast_string_match_ignore_case): New function.
12503 
12504 	* lisp.h (fast_string_match_ignore_case): Extern it.
12505 
12506 2004-10-17  Kim F. Storm  <storm@cua.dk>
12507 
12508 	* xdisp.c (overlay_arrow_at_row): Return overlay string rather
12509 	than bitmap if there is not left fringe.
12510 	(get_overlay_arrow_glyph_row): Also used on windows system.
12511 	(display_line): Display overlay string if no left fringe.
12512 
12513 2004-10-16  Jason Rumney  <jasonr@gnu.org>
12514 
12515 	* w32fns.c (w32_font_match): Encode font name being matched.
12516 
12517 2004-10-16  Richard M. Stallman  <rms@gnu.org>
12518 
12519 	* window.c (Fspecial_display_p): Doc fix.
12520 
12521 2004-10-15  Stefan Monnier  <monnier@iro.umontreal.ca>
12522 
12523 	* doc.c (Fsubstitute_command_keys): Fix remap-handling.
12524 	Don't ignore menus, because where-is-internal already does it for us.
12525 
12526 2004-10-15  Kim F. Storm  <storm@cua.dk>
12527 
12528 	* xdisp.c (redisplay_window): Only update fringes and vertical
12529 	border on window frames.
12530 
12531 2004-10-14  Andreas Schwab  <schwab@suse.de>
12532 
12533 	* m/ia64.h (DATA_SEG_BITS): Don't define.
12534 
12535 2004-10-14  Kim F. Storm  <storm@cua.dk>
12536 
12537 	* xterm.h: Include Xutil.h after keysym.h to work around bug
12538 	in some X versions.