ChangeLog 1000 KB
Newer Older
1 2 3 4 5 6
2007-06-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
	to scroll bar gap also when bitmap fills fringe.  Draw only foreground
	if extended background has already been filled.

7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
2007-06-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
	(USE_MAC_TOOLBAR): Require USE_CG_DRAWING.

	* macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
	Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
	in #if 0 as it is not compatible with y-or-n-p-with-timeout.
	(timer_check) [TARGET_API_MAC_CARBON]: Add extern.
	[TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
	instead of QuitAppModalLoopForWindow.  Consolidate QuitEventLoop calls.
	(pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
	[TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
	Run timers during dialog popup.
	(Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.

23 24 25 26
2007-06-21  Jason Rumney  <jasonr@gnu.org>

	* image.c (convert_mono_to_color_image): Swap fore and background.

27 28 29 30 31
2007-06-20  Jason Rumney  <jasonr@gnu.org>

	* w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
	(w32_free_bdf_font): Unmap memory not handle.

Juanma Barranquero's avatar
Juanma Barranquero committed
32
2007-06-20  Sam Steingold  <sds@gnu.org>
33 34 35 36

	* gmalloc.c (__morecore): Fix the declaration to comply with the
	definition.

37 38 39 40 41 42 43 44 45
2007-06-20  Juanma Barranquero  <lekktu@gmail.com>

	* w32term.c (w32_delete_display): Remove leftover declaration.
	(w32_define_cursor, w32_initialize): Make static.

	* w32.c (_wsa_errlist): Fix typo in error message.
	(init_environment): Ignore any environment variable from the
	registry having a null value.

Glenn Morris's avatar
Glenn Morris committed
46 47 48 49
2007-06-20  Glenn Morris  <rgm@gnu.org>

	* Makefile.in (LIBGIF): Default to -lgif.

50 51 52 53 54
2007-06-17  Jason Rumney  <jasonr@gnu.org>

	* w32menu.c (add_menu_item): Don't use multibyte string functions on
	unicode strings.

55 56 57 58 59
2007-06-16  Juanma Barranquero  <lekktu@gmail.com>

	* xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
	Fix typo in docstring.

60 61 62 63 64
2007-06-16  Eli Zaretskii  <eliz@gnu.org>

	* w32menu.c (add_menu_item): Escape `&' characters in menu items
	and their keybindings.

65 66 67 68
2007-06-15  Chong Yidong  <cyd@stupidchicken.com>

	* composite.c (update_compositions): Fix last fix.

69 70 71 72 73 74 75 76
2007-06-14  Jason Rumney  <jasonr@gnu.org>

	* w32.c (get_process_times_fn): New function pointer.
	(globals_of_w32): Intialize it if present in kernel32.dll.
	(w32_get_internal_run_time): New function.

	* editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.

77 78 79 80 81
2007-06-14  Kenichi Handa  <handa@etlken.m17n.org>

	* composite.c (update_compositions): Check the validness of
	compositions.

82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
2007-06-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
	(FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.

	* macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
	(x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.

	* macgui.h (USE_MAC_TOOLBAR): New define.

	* macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
	Return immediately unless popup is activated.

	* macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
	background to scroll bar gap.
	(x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
	(XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
	scroll bars on frame edge.  Check fringe background extension.
	Don't clear extended fringe background area.
	(TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
	(TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
	(TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
	[USE_MAC_TOOLBAR]: New macros.
	(mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
	(mac_handle_toolbar_event, mac_image_spec_to_cg_image)
	(mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
	(mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
	[USE_MAC_TOOLBAR]: New functions.
	(mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
	manually if previous repositioning has failed.
	(mac_handle_keyboard_event): Use precomputed event kind.
	(XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
	as tool bar item click.  Handle mouse movement over tool bar items.

	* macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
	toolbar_win_gravity.
	(struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
	(update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
	Add externs.

	* xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
	[USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.

125 126 127 128
2007-06-14  Chong Yidong  <cyd@stupidchicken.com>

	* image.c (search_image_cache): Remove unused variable.

129 130 131 132
2007-06-13  Chong Yidong  <cyd@stupidchicken.com>

	* xfns.c, xmenu.c: Link to xaw3d if available.

133 134 135 136 137 138 139 140
2007-06-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
	frame_foreground and frame_background.

	* image.c (lookup_image): Save frame foreground and background colors.
	(search_image_cache): Check if saved and current frame colors match.

141 142 143 144 145
2007-06-12  Stefan Monnier  <monnier@iro.umontreal.ca>

	* regex.c (regex_compile): Remove the `regnum' counter.
	Use bufp->re_nsub instead.  Add support for \(?N:RE\).

146 147 148 149
2007-06-11  Stefan Monnier  <monnier@iro.umontreal.ca>

	* term.c: Include intervals.h to declare Fget_text_property.

150 151 152 153
2007-06-10  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (Fx_file_dialog): Take size from struct not pointer.

Juanma Barranquero's avatar
Juanma Barranquero committed
154
2007-06-08  Juanma Barranquero  <lekktu@gmail.com>
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171

	* callint.c (Fcall_interactively):
	* editfns.c (Fdelete_and_extract_region):
	* fileio.c (Fread_file_name):
	* fns.c (Fmapconcat):
	* keyboard.c (cmd_error_internal):
	* keymap.c (Fkey_description):
	* lread.c (openp):
	* minibuf.c (read_minibuf):
	* search.c (wordify):
	* sunfns.c (sel_read):
	* xdisp.c (Fformat_mode_line, syms_of_xdisp):
	* xfns.c (x_default_scroll_bar_color_parameter):
	* xmenu.c (menu_help_callback):
	* xselect.c (Fx_get_atom_name):
	* xterm.c (x_term_init): Use empty_unibyte_string.

Juanma Barranquero's avatar
Juanma Barranquero committed
172
2007-06-08  Dmitry Antipov  <dmantipov@yandex.ru>  (tiny change)
173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188

	* alloc.c (init_strings): Initialize canonical empty strings.
	(make_uninit_string, make_uninit_multibyte_string): Return appropriate
	canonical empty string when the requested size is 0.

	* emacs.c (empty_unibyte_string): Rename from empty_string.
	(empty_multibyte_string): New canonical empty string.
	(syms_of_emacs): Don't initialize empty_string.

	* lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
	string, if appropriate.
	(empty_unibyte_string, empty_multibyte_string): New externs.
	(empty_string): Remove extern.

	* lread.c (syms_of_lread): Use empty_unibyte_string.

189 190 191 192 193 194
2007-06-07  Jason Rumney  <jasonr@gnu.org>

	* s/ms-w32.h: Don't define HAVE_TZNAME.

	* editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.

195 196 197 198 199 200 201 202 203 204 205 206
2007-06-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.

	* macfns.c (mac_get_window_bounds): Move extern to macterm.h.
	(compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.

	* macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
	Don't call next handler.
	[TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
	Remove argument.  Install handler to application.
	(set_frame_menubar): Don't change deep_p.
Juanma Barranquero's avatar
Juanma Barranquero committed
207
	(mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257
	FRAME_OUTER_TO_INNER_DIFF_Y.
	(DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
	(DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
	[HAVE_DIALOGS]: New macros.
	[HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
	Use them.
	(fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.

	* macselect.c [MAC_OSX] (install_service_handler): Rename from
	init_service_handler.  All callers changed.  Return OSStatus value.

	* macterm.c (mac_begin_cg_clip): New arg F.  Call SetPortWindowPort.
	All callers changed so as not to call SetPortWindowPort.
	(mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
	(mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
	mac_draw_string_common.
	(mac_draw_image_string_qd): Likewise.
	(mac_draw_string_common): Use them.  Add INLINE.
	(XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
	Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
	GetGlobalMouse.
	(x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
	and FRAME_OUTER_TO_INNER_DIFF_Y.
	[TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
	[USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
	(x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
	repositioning window to mac_handle_window_event.
	(x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
	saving window location to mac_handle_window_event
	[USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
	(install_menu_target_item_handler): Remove argument in extern.
	[TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
	Also accept command events.
	(do_keystroke): New function created from XTread_socket.
	(init_command_handler): Remove functions.
	[TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
	and save window location by kEventWindowShowing and kEventWindowHiding
	handlers here.  Don't call next handler for window state change and
	focus events.
	(mac_handle_application_event, mac_handle_keyboard_event)
	[TARGET_API_MAC_CARBON]: New functions.
	(install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
	kEventWindowShowing and kEventWindowHiding events.  Move installation
	of mouse, font, text input and menu target item handlers to
	install_application_handler.
	(install_application_handler) [TARGET_API_MAC_CARBON]: New function.
	(mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
	New function.
	(init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
	Register it.
258 259 260 261 262
	(XTread_socket) [TARGET_API_MAC_CARBON]:
	Consolidate SendEventToEventTarget calls.
	Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
	Move application activation handler to mac_handle_application_event.
	Move keyboard handler to mac_handle_keyboard_event.
263 264 265 266 267 268 269
	(XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
	(mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
	init_command_handler.  Call install_application_handler.

	* macterm.h (mac_get_window_bounds): Move extern from macfns.c.
	(FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.

270 271 272 273
2007-06-07  Glenn Morris  <rgm@gnu.org>

	* emacs.c (main): Use `emacs-copyright' in --version output.

274 275
2007-06-06  Chong Yidong  <cyd@stupidchicken.com>

276
	* image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
277

278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304
2007-06-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macfns.c (mac_window): Replace WindowPtr with WindowRef.

	* macgui.h: Replace WindowPtr with WindowRef.

	* macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
	GetMenuRef, respectively.  Replace WindowPtr with WindowRef.
	Replace ControlHandle with ControlRef.
	(install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.

	* macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
	GetMenuRef, respectively.  Replace WindowPtr with WindowRef.
	Replace ControlHandle with ControlRef.
	(USE_CARBON_EVENTS): Remove.  Use TARGET_API_MAC_CARBON instead.
	[MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.

	* macterm.h (struct scroll_bar): Rename member control_handle_low
	and control_handle_high to control_ref_low and control_ref_high.
	All uses changed.
	(SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
	SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
	respectively.  All uses changed.
	(XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
	(install_window_handler, remove_window_handler): Replace WindowPtr
	with WindowRef in externs.

305 306 307 308
2007-06-05  Juanma Barranquero  <lekktu@gmail.com>

	* xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.

Nick Roberts's avatar
Nick Roberts committed
309 310 311 312
2007-06-03  Nick Roberts  <nickrob@snap.net.nz>

	* keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.

313
	* frame.c (Fmouse_position, Fmouse_pixel_position):
Nick Roberts's avatar
Nick Roberts committed
314 315 316 317 318 319 320 321 322 323
	Condition on HAVE_GPM too.

	* term.c (term_mouse_highlight): Remove unused variables.
	(Fterm_open_connection): Set gpm_zerobased to 1.
	(term_mouse_movement, term_mouse_click, handle_one_term_event):
	Use zero based co-ordinates.
	(handle_one_term_event): Report a drag as mouse movement too.

	* Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.

324 325 326 327 328 329
2007-06-03  Chong Yidong  <cyd@stupidchicken.com>

	* image.c (search_image_cache): New function.  Require background
	color match if background color is unspecified in the image spec.
	(uncache_image, lookup_image): Use it.

330 331 332 333
2007-06-01  Juanma Barranquero  <lekktu@gmail.com>

	* window.c (Fshrink_window): Reflow docstring.

334 335
2007-06-02  Chong Yidong  <cyd@stupidchicken.com>

Chong Yidong's avatar
Chong Yidong committed
336 337
	* Version 22.1 released.

338 339 340 341
2007-06-01  Richard Stallman  <rms@gnu.org>

	* xfns.c (x_encode_text): Add GCPRO.

342 343 344 345 346
2007-06-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* xfns.c (x_set_name_internal): Save encoded name before
	x_encode_text in case string data is relocated.

347 348 349 350
2007-05-31  Richard Stallman  <rms@gnu.org>

	* buffer.c (syms_of_buffer): Doc fix.

Nick Roberts's avatar
Nick Roberts committed
351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369
2007-05-30  Nick Roberts  <nickrob@snap.net.nz>

	* sysdep.c (init_sys_modes): Add rather than replace with
	O_NONBLOCK.

	* frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
	term_mouse_moveto.

	* termhooks.h (term_mouse_moveto): New extern.

	* term.c (mouse_face_window): Rename...
	(Qmouse_face_window): ...to this.
	(term_show_mouse_face, term_clear_mouse_face)
	(term_mouse_highlight): Use Qmouse_face_window.
	(term_mouse_moveto): New function.
	(term_mouse_position): Make it work.
	(syms_of_term): Uncomment assignment to mouse_position_hook.
	Staticpro Qmouse_face_window.

370 371 372 373 374
2007-05-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
	around current_column call.

375 376 377
2007-05-26  Dan Nicolaescu  <dann@ics.uci.edu>

	* xfaces.c (syms_of_xfaces): Delete stray semicolon.
378 379 380 381
	* xdisp.c (next_element_from_buffer):
	* window.c (delete_window):
	* term.c (term_mouse_highlight):
	* msdos.c (getdefdir):
382
	* macterm.c (mac_create_bitmap_from_bitmap_data)
383 384 385
	(init_font_name_table):
	* fns.c (Fsxhash):
	* data.c (Fmake_local_variable):
386 387
	* ccl.c (ccl_driver): Likewise.

Miles Bader's avatar
Miles Bader committed
388 389 390 391 392
2007-05-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
	Call mac_wakeup_from_rne on window size change.

393 394 395 396
2007-05-25  Chong Yidong  <cyd@stupidchicken.com>

	* image.c (uncache_image): Fix typo.

397
2007-05-23  Johannes Weiner  <hannes@saeurebad.de>  (tiny change)
Nick Roberts's avatar
Nick Roberts committed
398 399 400

	* keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.

401 402 403 404
2007-05-22  Richard Stallman  <rms@gnu.org>

	* xterm.c (x_connection_closed): Remove NO_RETURN.

405 406 407 408
2007-05-22  Martin Rudalics  <rudalics@gmx.at>

	* syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.

409 410 411 412 413
2007-05-21  Chong Yidong  <cyd@stupidchicken.com>

	* image.c (uncache_image): New function.
	(Fimage_refresh): New function.

414 415 416 417
2007-05-20  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* Makefile.in: Move GPM check outside HAVE_X_WINDOWS.

Nick Roberts's avatar
Nick Roberts committed
418 419 420 421 422
2007-05-20  Nick Roberts  <nickrob@snap.net.nz>

	* config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
	* termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.

Nick Roberts's avatar
Nick Roberts committed
423 424 425 426 427
2007-05-20  Nick Roberts  <nickrob@snap.net.nz>

	* keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
	conditional on [HAVE_GPM_H].

428 429 430 431 432
2007-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>

	* syntax.c (skip_chars): Update syntax-table only after we checked that
	the new location is valid.

433 434 435 436 437
2007-05-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
	mac_get_window_bounds.

Nick Roberts's avatar
Nick Roberts committed
438 439 440 441 442 443 444 445 446 447 448 449
2007-05-20  Nick Roberts  <nickrob@snap.net.nz>

	* Makefile.in (LIBGPM): Allow it to be set from configure.
	If set then link Emacs with it.

	* config.in: Regenerate.

	* lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
	New externs.

	* termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
	Include gpm.h.
Juanma Barranquero's avatar
Juanma Barranquero committed
450
	(handle_one_term_event, term_gpm): New externs.
Nick Roberts's avatar
Nick Roberts committed
451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479

	* sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
	and allow it to be interrupted by SIGIO.

	* process.c (gpm_wait_mask, max_gpm_desc): New variables.
	(wait_reading_process_output): Wait on gpm_fd too.
	(add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
	(add_gpm_wait_descriptor_called_flag): New variable.
	(delete_keyboard_wait_descriptor): Check gpm_wait_mask.

	* keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
	(make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
	(show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
	Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
	(make_lispy_event): Add case GPM_CLICK_EVENT.
	(read_avail_input): Handle mouse input.

	* term.c (write_glyphs_with_face): New function.
	[HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
	(mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
	(mouse_face_end_col, mouse_face_past_end, mouse_face_window)
	(mouse_face_face_id, term_gpm, pos_x, pos_y)
	(last_mouse_x, last_mouse_y): New variables.
	(term_show_mouse_face, term_clear_mouse_face, fast_find_position)
	(term_mouse_highlight, term_mouse_movement, term_mouse_position)
	(term_mouse_click, handle_one_term_event, Fterm_open_connection)
	(Fterm_close_connection): New functions.
	(term_init): Initialise mouse_face_window.

480 481 482 483 484 485
2007-05-19  Chong Yidong  <cyd@stupidchicken.com>

	* xdisp.c (redisplay_window): If first window line is a
	continuation line, recompute the new window start instead of
	recentering.

Glenn Morris's avatar
Glenn Morris committed
486 487 488 489 490
2007-05-18  Glenn Morris  <rgm@gnu.org>

	* m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
	Suggested by Alfred M. Szmidt <ams@gnu.org>.

491 492 493 494
2007-05-17  Glenn Morris  <rgm@gnu.org>

	* m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.

495 496 497 498 499
2007-05-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
	dead key repeat and up events.

500 501 502 503
2007-05-14  Chong Yidong  <cyd@stupidchicken.com>

	* image.c (pbm_load): Check image size for monochrome pbm.

504 505 506 507
2007-05-13  Chong Yidong  <cyd@stupidchicken.com>

	* xterm.c (XTread_socket): Revert last change.

508 509
2007-05-12  Chong Yidong  <cyd@stupidchicken.com>

510 511
	* image.c (pbm_load): Correctly check image size for greyscale pbm.

512
	* xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
513

514 515
2007-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>

Juanma Barranquero's avatar
Juanma Barranquero committed
516 517
	* editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
	mixup (YAILOM).
518

519 520
2007-05-07  Andreas Schwab  <schwab@suse.de>

521
	* keymap.c (Flookup_key): Fix typo in last change.
522

523 524 525 526 527
2007-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>

	* keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
	mapping for unibyte strings.

528 529 530 531 532
2007-05-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
	(Fx_popup_dialog) [MAC_OSX]: Likewise.

533 534 535 536
2007-04-29  Richard Stallman  <rms@gnu.org>

	* insdel.c (replace_range): For undo, record insertion first.

Andreas Schwab's avatar
Andreas Schwab committed
537 538 539 540
2007-04-29  Andreas Schwab  <schwab@suse.de>

	* lisp.h (VECSIZE): Use OFFSETOF.

541 542 543 544 545
2007-04-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* xdisp.c (try_window_reusing_current_matrix): Fix number of
	disabled lines.

546 547 548 549
2007-04-28  Richard Stallman  <rms@gnu.org>

	* lread.c (read_escape): In a string, \s is always space.

550 551
2007-04-27  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

552 553
	* xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.

554 555 556
	* gtkutil.c (xg_update_menubar, create_menus): Create empty
	submenu for menu bar items.

Nick Roberts's avatar
Nick Roberts committed
557 558 559 560
2007-04-24  Chong Yidong  <cyd@stupidchicken.com>

	* Branch for 22.1.

561 562 563 564 565
2007-04-24  Chong Yidong  <cyd@stupidchicken.com>

	* xdisp.c (redisplay_window): Use BEG_UNCHANGED and END_UNCHANGED
	values of the actual window.

566 567 568 569
2007-04-23  Richard Stallman  <rms@gnu.org>

	* process.c (Fstart_process): Doc fix.

Eli Zaretskii's avatar
Eli Zaretskii committed
570 571 572 573
2007-04-23  Eli Zaretskii  <eliz@gnu.org>

	* process.c (Fstart_process): Doc fix.

574 575 576 577 578 579
2007-04-22  Richard Stallman  <rms@gnu.org>

	* abbrev.c (Fdefine_abbrev): Doc fix.

	* keymap.c (Fdefine_key): Minor doc fix.

Glenn Morris's avatar
Glenn Morris committed
580 581 582 583
2007-04-21  Glenn Morris  <rgm@gnu.org>

	* keymap.c (Fdefine_key): Fix info ref in doc string.

584 585 586 587
2007-04-20  Glenn Morris  <rgm@gnu.org>

	* sysdep.c (init_system_name): Don't accept localhost.localdomain.

588 589 590 591 592 593
2007-04-19  Juanma Barranquero  <lekktu@gmail.com>

	* minibuf.c (Fminibuffer_contents, Fminibuffer_contents_no_properties)
	(Fminibuffer_completion_contents, Fdelete_minibuffer_contents):
	Doc fixes.

594 595
2007-04-16  Chong Yidong  <cyd@stupidchicken.com>

596 597
	* dispnew.c (adjust_frame_glyphs_for_frame_redisplay):
	Set garbaged flag in presence of window margins.
598 599
	(showing_window_margins_p): New function.

600 601 602
	* xdisp.c (cursor_row_p): Only end row on newline if it's a
	display string.  Suggested by Lennart Borgman.

603 604 605 606 607
2007-04-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* alloc.c (mem_insert): Set min_heap_address and max_heap_address
	if they are not yet initialized.

608 609 610 611 612 613
2007-04-15  Chong Yidong  <cyd@stupidchicken.com>

	* xdisp.c (redisplay_window): When deciding whether or not to
	recenter, don't use the reset values of BEG_UNCHANGED and
	END_UNCHANGED.

Kim F. Storm's avatar
Kim F. Storm committed
614 615 616 617 618
2007-04-13  Kim F. Storm  <storm@cua.dk>

	* buffer.c (Fkill_buffer): gcpro BUF during kill_buffer_processes
	and check that buffer is still alive upon return.

619 620 621 622 623 624 625 626 627 628 629
2007-04-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c [!TARGET_API_MAC_CARBON]: Include Displays.h.
	(mac_screen_config_changed): New variable.
	(mac_handle_dm_notification, init_dm_notification_handler)
	(mac_get_screen_info): New functions.
	[MAC_OS8] (main): Call init_dm_notification_handler.
	(mac_initialize) [MAC_OSX]: Likewise.
	(XTread_socket): Call mac_get_screen_info if screen config changed.
	(mac_initialized): Make static.
	(mac_initialize_display_info): Remove function.
Kim F. Storm's avatar
Kim F. Storm committed
630
	(mac_term_init): Call mac_get_screen_info.  Add partial contents of
631 632
	mac_initialize_display_info.

633 634 635 636 637 638 639 640 641 642 643
2007-04-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* mac.c (xrm_get_preference_database, Fmac_get_preference)
	[TARGET_API_MAC_CARBON]: Use CFPreferencesAppSynchronize.

	* macterm.c [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event):
	Use GetGlobalMouse instead of GetMouse and LocalToGlobal.
	(mac_initialize_display_info) [MAC_OSX]: Use CGRectZero.
	(mac_initialize_display_info) [!MAC_OSX]: dpyinfo->height and
	dpyinfo->width are those of whole screen.

644 645 646 647 648
2007-04-10  Chong Yidong  <cyd@stupidchicken.com>

	* xdisp.c (note_mode_line_or_margin_highlight): Don't decrement
	glyph pointer before start of glyph row.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
649 650 651 652 653
2007-04-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* s/darwin.h (__restrict, struct kboard): Remove outdated workarounds.
	(C_SWITCH_SYSTEM): Remove `-I../mac/src'.

654 655 656 657
2007-04-09  Martin Rudalics  <rudalics@gmx.at>

	* indent.c (Fmove_to_column): Set next_boundary with correct start pt.

658 659 660 661
2007-04-08  Richard Stallman  <rms@gnu.org>

	* xdisp.c (syms_of_xdisp) <message-log-max>: Default 100.

662 663 664 665 666
2007-04-07  Chong Yidong  <cyd@stupidchicken.com>

	* editfns.c (Ftranspose_regions): Validate interval before setting
	text properties.

Eli Zaretskii's avatar
Eli Zaretskii committed
667 668 669 670
2007-04-03  Eli Zaretskii  <eliz@gnu.org>

	* emacs.c (main): Fix instructions for building Emacs for profiling.

671 672 673 674 675
2007-04-03  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c (xg_update_menubar): Call g_list_next after moving
	menu bar item.

676 677 678 679
2007-04-02  Juanma Barranquero  <lekktu@gmail.com>

	* print.c (Fprin1_to_string): Use macro SPECPDL_INDEX.

680 681
2007-04-01  Chong Yidong  <cyd@stupidchicken.com>

682 683 684 685 686
	* keymap.c (Fcommand_remapping): New optional argument.
	(where_is_internal): Use new keymaps argument.
	(Fkey_binding): Caller changed.

	* keyboard.c (command_loop_1): Caller changed.
687

Eli Zaretskii's avatar
Eli Zaretskii committed
688 689 690 691
2007-03-31  Eli Zaretskii  <eliz@gnu.org>

	* window.c (Fget_lru_window): Doc fix.

692 693 694 695 696
2007-03-30  Chong Yidong  <cyd@stupidchicken.com>

	* undo.c (Fprimitive_undo): Give clearer error message when trying
	to change text properties outside accessible part of buffer.

Kim F. Storm's avatar
Kim F. Storm committed
697 698 699 700 701 702 703
2007-03-29  Kim F. Storm  <storm@cua.dk>

	* process.c (wait_reading_process_output) [HAVE_PTYS]:
	When EIO happens, clear channel from descriptor masks before raising
	SIGCHLD signal to avoid busy loop between read and sigchld_handler.
	(sigchld_handler): Remove sleep (2007-03-11 & 2007-03-26 changes).

704 705
2007-03-29  Juanma Barranquero  <lekktu@gmail.com>

706 707
	* buffer.c (Fset_buffer_major_mode): Check that BUFFER is valid.

708 709 710
	* process.c (Fformat_network_address): Return nil when the
	argument vector contains invalid values.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
711 712 713 714 715 716 717 718 719 720 721 722
2007-03-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* gmalloc.c [HAVE_GTK_AND_PTHREAD]: Define USE_PTHREAD.
	[USE_PTHREAD]: Include pthread.h.
	(malloc_init_once_control, _malloc_mutex) [USE_PTHREAD]: New variables.
	(malloc_initialize_1): New function created from __malloc_initialize.
	(__malloc_initialize): Use it.
	(LOCK, UNLOCK): New macros to make malloc etc. thread safe.
	(_malloc_internal, _free_internal, _realloc_internal): Use them.

	* lread.c (readchar): Extend BLOCK_INPUT block to ferror/clearerr.

Juanma Barranquero's avatar
Juanma Barranquero committed
723 724 725 726 727
2007-03-27  Juanma Barranquero  <lekktu@gmail.com>

	* process.c (Fformat_network_address): Make args array big enough
	to format IPv6 addresses.

Glenn Morris's avatar
Glenn Morris committed
728 729 730 731
2007-03-27  Glenn Morris  <rgm@gnu.org>

	* m/hp800.h: Restore HP-UX support (removed 2007-01-29).

732 733
2007-03-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

Juanma Barranquero's avatar
Juanma Barranquero committed
734 735
	* macfns.c (Fx_display_mm_height, Fx_display_mm_width): Scale whole
	screen size in pixels by millimeters per pixel of main display.
736

Juanma Barranquero's avatar
Juanma Barranquero committed
737 738
	* macselect.c (get_scrap_target_type_list, x_own_selection):
	Move assignments outside predicate macros.
739 740 741 742 743 744 745
	(Vselection_converter_alist): Doc fix.

	* macterm.c (create_text_encoding_info_alist): Move assignments
	outside predicate macros.
	(mac_initialize_display_info) [MAC_OSX]: dpyinfo->height and
	dpyinfo->width are those of whole screen.

746 747 748 749 750
2007-03-26  Sam Steingold  <sds@gnu.org>

	* process.c (sigchld_handler): Delay by 1ms instead of 1s to
	alleviate sluggishness (the original problem is still fixed).

Kim F. Storm's avatar
Kim F. Storm committed
751 752 753 754 755 756 757
2007-03-25  Kim F. Storm  <storm@cua.dk>

	* intervals.c (merge_properties): Use explicit loop instead of
	Fplist_member to avoid QUIT.  Don't use Fcdr.
	(intervals_equal): Likewise.  Rewrite loop to perform length check
	on the fly rather than calling Flength.  Don't use Fcar.

Eli Zaretskii's avatar
Eli Zaretskii committed
758 759 760 761 762 763
2007-03-24  Eli Zaretskii  <eliz@gnu.org>

	* editfns.c (Fgoto_char): Doc fix.

	* indent.c (Findent_to): Doc fix.

764 765 766 767 768
2007-03-24  Chong Yidong  <cyd@stupidchicken.com>

	* editfns.c (Ftranspose_regions): Use set_text_properties_1
	instead of Fset_text_properties to avoid GC.  Signal after change.

Eli Zaretskii's avatar
Eli Zaretskii committed
769 770 771 772 773 774 775 776
2007-03-24  Eli Zaretskii  <eliz@gnu.org>

	* xfns.c (Fx_show_tip): Doc fix.

	* macfns.c (Fx_show_tip): Doc fix.

	* w32fns.c (Fx_show_tip): Doc fix.

Kim F. Storm's avatar
Kim F. Storm committed
777 778 779 780 781
2007-03-23  Kim F. Storm  <storm@cua.dk>

	* intervals.c (merge_properties, intervals_equal):
	Use Fplist_member instead of Fmemq to find properties.

Glenn Morris's avatar
Glenn Morris committed
782 783 784 785 786
2007-03-23  Glenn Morris  <rgm@gnu.org>

	* unexhp9k800.c: Restore file with clarified legal status.
	* m/sr2k.h: Restore since dependency unexhp9k800.c is restored.

787 788 789 790
2007-03-22  Chong Yidong  <cyd@stupidchicken.com>

	* widget.c (EmacsFrameSetCharSize): Catch X errors.

Kenichi Handa's avatar
Kenichi Handa committed
791 792 793 794 795 796 797 798
2007-03-22  Kenichi Handa  <handa@m17n.org>

	* fileio.c (Fcopy_file): Call barf_or_query_if_file_exists with
	non-encoded file name.
	(Frename_file): Likewise.
	(Fadd_name_to_file): Likewise.
	(Fmake_symbolic_link): Likewise.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825
2007-03-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* Makefile.in (alloca.o, gtkutil.o): Depend on systime.h.
	(dired.o, editfns.o, fileio.o, msdos.o): Depend on atimer.h.
	(dosfns.o, window.o, fns.o, macselect.o): Depend on atimer.h and
	systime.h.
	(term.o, print.o, lread.o): Depend on blockinput.h, atimer.h, and
	systime.h.
	(macfns.o): Remove duplicate dependency on systime.h.

	* dispnew.c (Fopen_termscript): Add BLOCK_INPUT around fclose.
	(Fsend_string_to_terminal): Add BLOCK_INPUT around fwrite.

	* fileio.c (do_auto_save_unwind): Add BLOCK_INPUT around fclose.
	(Fdo_auto_save): Add BLOCK_INPUT around fwrite.

	* keyboard.c (record_char): Add BLOCK_INPUT around fwrite.
	(Fopen_dribble_file): Add BLOCK_INPUT around fclose.

	* lread.c: Include blockinput.h.
	(readchar, Fget_file_char): Add BLOCK_INPUT around getc.
	(unreadchar): Add BLOCK_INPUT around ungetc.
	(load_unwind): Add BLOCK_INPUT around fclose.

	* print.c: Include blockinput.h.
	(Fredirect_debugging_output): Add BLOCK_INPUT around fclose.

Juanma Barranquero's avatar
Juanma Barranquero committed
826 827 828
	* process.c (Fmake_network_process) [HAVE_GETADDRINFO]:
	Clear immediate_quit before calling freeaddrinfo.
	Add BLOCK_INPUT around freeaddrinfo.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
829 830 831 832

	* term.c: Include blockinput.h.
	(write_glyphs, insert_glyphs): Add BLOCK_INPUT around fwrite.

833 834 835 836 837 838
2007-03-19  Richard Stallman  <rms@gnu.org>

	* keyboard.c (NUM_RECENT_KEYS): Bump up to 300.

	* buffer.c (syms_of_buffer): Doc fix.

839 840 841 842
2007-03-18  Chong Yidong  <cyd@stupidchicken.com>

	* image.c (pbm_load): Signal error for invalid image size.

843 844 845 846 847 848 849 850 851
2007-03-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c (note_mouse_movement): Don't return immediately for
	LeaveNotify case.

	* macmenu.c (popup_activated_flag): New variable.
	(x_activate_menubar, mac_menu_show): Set it during menu tracking.
	(popup_activated): New function.

Juanma Barranquero's avatar
Juanma Barranquero committed
852 853
	* xdisp.c (redisplay_internal, note_mouse_highlight):
	Check popup_activated for MAC_OS.
854

855
2007-03-17  Juanma Barranquero  <lekktu@gmail.com>
Kim F. Storm's avatar
Kim F. Storm committed
856

857 858
	* buffer.c (syms_of_buffer) <buffer-display-table>: Doc fix.
	Reported by Nikolaj Schumacher <n_schumacher@web.de>.
859

860 861
2007-03-17  Richard Stallman  <rms@gnu.org>

862
	* dired.c (file_name_completion): gcpro NAME.
863

Kim F. Storm's avatar
Kim F. Storm committed
864 865 866 867 868
2007-03-17  Chong Yidong  <cyd@stupidchicken.com>

	* xdisp.c (try_window_id): Increment matrix positions if the
	buffer's byte count has increased, but not the character count.

869 870 871 872 873 874 875 876
2007-03-12  Andreas Schwab  <schwab@suse.de>

	* lisp.h: Declare check_obarray.

	* process.c (Fdelete_process): Properly handle deletion of first
	element of deleted_pid_list.
	(create_process): Declare pid as pid_t.

877 878 879 880 881 882 883 884 885 886
2007-03-12  Kim F. Storm  <storm@cua.dk>

	* process.c (sigchld_handler): Change type of pid to pid_t.
	Scan deleted_pid_list explicitly to avoid using Fmember which don't
	know about mark bits and make_fixnum_or_float which may malloc.
	Reported by Andreas Schwab.

	* keyboard.c (read_key_sequence): Store original event into keybuf
	when replaying sequence with local keymap(s) from string.

Glenn Morris's avatar
Glenn Morris committed
887 888 889 890 891
2007-03-12  Glenn Morris  <rgm@gnu.org>

	* editfns.c (Fdecode_time, Fencode_time): Doc fix ("daylight
	savings" to "daylight saving").

892 893 894 895
2007-03-11  Sam Steingold  <sds@gnu.org>

	* process.c (sigchld_handler): Sleep before wait3 to avoid a busyloop.

896 897 898 899
2007-03-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macfns.c (Fx_server_vendor): Change vendor string to "Apple Inc.".

900 901
2007-03-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

902 903
	* macterm.c [USE_CARBON_EVENTS] (mac_handle_mouse_event):
	Ignore mouse wheel movement on title bar or tool bar.
904

905 906 907 908 909 910 911
2007-03-10  Chong Yidong  <cyd@stupidchicken.com>

	* keyboard.c (help_form_saved_window_configs): New var.
	(read_char_help_form_unwind): New function.
	(read_char): Don't restore window configuration if a mouse click
	arrives while the help form is being displayed.

Kim F. Storm's avatar
Kim F. Storm committed
912 913 914 915 916
2007-03-10  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (redisplay_window): Don't automatically select a new window
	start for a contination line during mouse-click.

917 918 919 920
2007-03-09  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xterm.c (handle_one_xevent): Ignore buttons > 3 for the tool bar.

Juanma Barranquero's avatar
Juanma Barranquero committed
921 922 923 924
2007-03-09  Juanma Barranquero  <lekktu@gmail.com>

	* keymap.c (Fdescribe_buffer_bindings): Check that BUFFER is valid.

925 926 927 928
2007-03-08  Richard Stallman  <rms@gnu.org>

	* keyboard.c (syms_of_keyboard): Doc fix.

929 930 931 932 933
2007-03-08  Chong Yidong  <cyd@stupidchicken.com>

	* minibuf.c (Ftry_completion): Don't short circuit if
	completion-ignore-case is non-nil.

934 935 936 937 938 939 940 941
2007-03-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macfns.c (mac_set_scroll_bar_width, mac_frame_parm_handlers):
	Undo 2006-03-06 changes.

	* macterm.c (XTset_vertical_scroll_bar) [MAC_OSX]: Don't show scroll
	bar if its width is smaller than that of Aqua small scroll bar.

942 943 944 945 946
2007-03-07  Stefan Monnier  <monnier@iro.umontreal.ca>

	* minibuf.c (read_minibuf): Bind inhibit-read-only a bit longer so as
	to handle correctly prompts with read-only property.

947 948 949 950 951 952 953
2007-03-06  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* sound.c (wav_play): Check header->data_length to see how much we
	shall read.
	(alsa_period_size): Convert ALSA period size in frames to bytes.
	(alsa_write): Return if frames is zero.

Kenichi Handa's avatar
Kenichi Handa committed
954 955 956 957
2007-03-06  Kenichi Handa  <handa@m17n.org>

	* xselect.c (Vselection_coding_system): Documentation improved.

958 959 960 961 962 963 964 965 966
2007-03-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c (x_scroll_bar_create, XTread_socket): Replace #if
	USE_TOOLKIT_SCROLL_BARS with #ifdef USE_TOOLKIT_SCROLL_BARS.
	(x_set_window_size): Call SET_FRAME_GARBAGED.  Clear window if
	internal border width has changed.

	* macterm.h (struct mac_output): New member `internal_border_width'.

967 968 969 970
2007-03-04  Richard Stallman  <rms@gnu.org>

	* window.c (Fdisplay_buffer): Doc fix.

971 972 973 974 975
2007-03-03  Glenn Morris  <rgm@gnu.org>

	* Makefile.in: Don't clear out LIB_X11_LIB, since XFT_LIBS does
	not include -lX11 on Solaris.

Juanma Barranquero's avatar
Juanma Barranquero committed
976
2007-03-02  Stuart D. Herring  <herring@lanl.gov>
David Kastrup's avatar
David Kastrup committed
977

978
	* keymap.c (Fkey_binding): Don't consider one-element lists as events.
David Kastrup's avatar
David Kastrup committed
979

980 981 982 983 984
2007-03-01  Kenichi Handa  <handa@m17n.org>

	* process.c (send_process_object): Check the process status and
	signal an error if something is wrong.

985 986 987 988 989
2007-02-28  Chong Yidong  <cyd@stupidchicken.com>

	* insdel.c (Fcombine_after_change_execute): Return nil if
	combine_after_change_buffer has been invalidated.

Dan Nicolaescu's avatar
Dan Nicolaescu committed
990 991 992 993
2007-02-25  Dan Nicolaescu  <dann@ics.uci.edu>

	* m/xtensa.h: New file.

994 995 996 997 998
2007-02-24  Nick Roberts  <nickrob@snap.net.nz>

	* .gdbinit (xprintstr): Ensure GDB (> 6.6) prints symbol name
	as strings and not character arrays.

999 1000 1001 1002 1003 1004 1005 1006
2007-02-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_drag)
	(x_set_toolkit_scroll_bar_thumb): Add bar->min_handle as margin to
	scroll bar handle size in order to avoid `scroll backward' problem.
	(x_scroll_bar_create, XTset_vertical_scroll_bar)
	[USE_TOOLKIT_SCROLL_BARS]: Initialize bar->min_handle.

1007 1008
	* macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
	New member `min_handle'.
1009

Kim F. Storm's avatar
Kim F. Storm committed
1010 1011 1012 1013 1014
2007-02-23  Kim F. Storm  <storm@cua.dk>

	* print.c (print): Reset print_number_index if Vprint_number_table
	is nil.

Eli Zaretskii's avatar
Eli Zaretskii committed
1015 1016 1017 1018 1019
2007-02-23  Eli Zaretskii  <eliz@gnu.org>

	* w32.c (stat, get_long_basename, is_unc_volume): Use _mbspbrk
	instead of strpbrk.

1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030
2007-02-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macmenu.c (mac_menu_show): Call unbind_to early.  Use variable
	`menu_item_selection' as in W32 version.
	[TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Add explicit
	braces to avoid ambiguous `else'.

	* macterm.c (mac_display_info_for_display): Remove function.
	(mac_flush_display_optional) [USE_CG_DRAWING]: New function.
	(x_redisplay_interface) [USE_CG_DRAWING]: Set it as handler for
	flush_display_optional.
1031 1032
	[USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_press):
	New argument MOUSE_POS.  All uses changed.  Set bar->dragging to
1033
	negative integer if scroll bar handle is pressed.
1034 1035
	[USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_release):
	Negative bar->dragging means scroll bar handle is not dragged.
1036 1037 1038 1039 1040 1041 1042 1043 1044 1045
	[USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_drag): Get initial
	offset of scroll bar handle from negative bar->dragging.
	(XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Modifiers for scroll
	bar click is compared against mapped one.  Set down/up_modifier
	for scroll bar click event with control key.

	* macterm.h (x_display_info_for_display): Remove extern.
	(SCROLL_BAR_UNPACK, SET_SCROLL_BAR_CONTROL_HANDLE): Don't limit
	value to be unpacked to 32-bit on LP64 model.

1046 1047 1048 1049 1050 1051 1052
2007-02-23  Kenichi Handa  <handa@m17n.org>

	* process.c (send_process_object_unwind): New function.
	(send_process_object): New function.
	(Fprocess_send_region): Call send_process_object.
	(Fprocess_send_string): Likewise.

1053 1054
2007-02-22  Jason Rumney  <jasonr@gnu.org>

Jason Rumney's avatar
Jason Rumney committed
1055 1056 1057
	* w32menu.c (w32_menu_show): Mark the frame's menu as inactive
	when popup menu finishes.

1058
	* w32fns.c (menubar_in_use): New flag.
Jason Rumney's avatar
Jason Rumney committed
1059 1060 1061
	(w32_wnd_proc) [WM_INITMENU, WM_EXITMENULOOP, WM_TIMER, WM_COMMAND]:
	Use it.

Jason Rumney's avatar
Jason Rumney committed
1062 1063 1064
	* w32menu.c (Fx_popup_menu): Don't free menu strings here.
	(w32_menu_show): Do it here instead.

1065 1066
	* w32fns.c (w32_wnd_proc) [WM_INITMENU]: Set menubar_active frame
	parameter.
1067

1068 1069
	* w32menu.c (current_popup_menu): Make available globally.
	(menubar_selection_callback): Free menu strings before pushing the
1070
	menu event into the keyboard buffer.  Remove menu_command_in_progress.
1071 1072

	* w32fns.c (current_popup_menu): Use from w32menu.c.
1073 1074 1075
	(w32_wnd_proc) [WM_EXITMENULOOP, WM_TIMER]: Use menubar_active
	and current_popup_menu to determine whether a menubar menu has
	been cancelled.
1076 1077 1078

	* w32term.h (w32_output): Remove menu_command_in_progress.

Kim F. Storm's avatar
Kim F. Storm committed
1079 1080 1081 1082 1083
2007-02-22  Kim F. Storm  <storm@cua.dk>

	* dispnew.c (update_frame, update_single_window): Set force_p here if
	redisplay_dont_pause is set or Vredisplay_preemption_period is nil...
	(update_window, update_frame_1): ... instead of here.
Kim F. Storm's avatar
Kim F. Storm committed
1084
	(update_text_area): Clear mouse face on header lines.
Kim F. Storm's avatar
Kim F. Storm committed
1085

Kim F. Storm's avatar
Kim F. Storm committed
1086 1087 1088 1089
2007-02-21  Kim F. Storm  <storm@cua.dk>

	* minibuf.c (Fassoc_string): Doc fix.  Allow symbol for KEY too.

1090 1091 1092 1093 1094 1095 1096 1097
2007-02-21  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c (WINDOW_RESOURCE, TERM_WINDOW_RESOURCE): Remove macros.
	[USE_MAC_TSM] (mac_handle_text_input_event): Remove unused variable
	`mapped_modifiers'.
	(XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Use Keyboard
	Layout Services routines to get current Unicode keyboard layout.

1098 1099
2007-02-20  Chong Yidong  <cyd@stupidchicken.com>

1100 1101
	* frame.c (x_set_screen_gamma): Apply gamma value to the frame's
	bgcolor.
1102

Kim F. Storm's avatar
Kim F. Storm committed
1103 1104
2007-02-19  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
1105 1106
	* minibuf.c (Fassoc_string): Allow symbols as keys.

Kim F. Storm's avatar
Kim F. Storm committed
1107 1108 1109 1110 1111
	* w32term.c (w32_set_scroll_bar_thumb): Don't resize scroll-bar
	handle while dragging, except when we get close to eob.
	Fix position and size calculations so we don't scroll backwards
	just by clicking on the handle.

1112 1113 1114 1115 1116 1117
2007-02-17  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* Makefile.in (${emacsapp}Contents/Resources/Emacs.rsrc)
	[HAVE_CARBON]: Remove target.
	(macosx-app) [HAVE_CARBON]: Don't depend on it.

1118 1119 1120 1121 1122 1123 1124 1125
2007-02-17  Juanma Barranquero  <lekktu@gmail.com>

	* callproc.c (syms_of_callproc) <doc-directory>:
	<configure-info-directory>:
	(Fgetenv_internal): Fix typos in docstrings.

	* doc.c (Fsubstitute_command_keys): Fix typo in docstring.

Andreas Schwab's avatar
Andreas Schwab committed
1126 1127
2007-02-16  Andreas Schwab  <schwab@suse.de>

1128 1129
	* frame.c (Fmodify_frame_parameters): Return a value.

Andreas Schwab's avatar
Andreas Schwab committed
1130 1131 1132
	* editfns.c (Fformat): Add support for '+' flag.
	* doprnt.c (doprnt1): Likewise.  Fix overflow checking.

1133 1134 1135 1136
2007-02-14  Chong Yidong  <cyd@stupidchicken.com>

	* s/umips.h: Unused file removed.

Juanma Barranquero's avatar
Juanma Barranquero committed
1137 1138 1139 1140 1141
2007-02-14  Juanma Barranquero  <lekktu@gmail.com>

	* xfaces.c (Fcolor_distance): Don't continue checking a color for
	errors after it has been correctly parsed as an RGB list.

1142 1143 1144 1145
2007-02-14  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xterm.c (do_ewmh_fullscreen): Also check for _NET_WM_STATE_FULLSCREEN.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159
2007-02-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macfns.c (Fx_focus_frame): Move current process to foreground if
	it is not.
	[TARGET_API_MAC_CARBON] (Fx_file_dialog): Replace #if MAC_OSX with
	#ifdef MAC_OSX.
	(Fmac_set_font_panel_visible_p) [USE_MAC_FONT_PANEL]: Rename from
	Fmac_set_font_panel_visibility.  All uses changed.  Rename argument
	VISIBLE to FLAG.

	* macterm.c (MakeMeTheFrontProcess) [MAC_OSX]: Remove function.
	(mac_initialize) [MAC_OSX]: Call SetFrontProcess instead of
	MakeMeTheFrontProcess.

1160 1161 1162 1163
2007-02-12  Chong Yidong  <cyd@stupidchicken.com>

	* frame.c (x_set_screen_gamma): Clear face cache.

Juanma Barranquero's avatar
Juanma Barranquero committed
1164 1165 1166 1167 1168
2007-02-11  Juanma Barranquero  <lekktu@gmail.com>

	* buffer.c (Fgenerate_new_buffer_name, Fbuffer_modified_tick):
	Reflow docstrings.

Eli Zaretskii's avatar
Eli Zaretskii committed
1169 1170 1171 1172 1173 1174 1175
2007-02-10  Eli Zaretskii  <eliz@gnu.org>

	* window.c (Fwindow_height, Fwindow_hscroll)
	(Fwindow_redisplay_end_trigger, Fwindow_point, Fwindow_start)
	(Fwindow_end, Fwindow_display_table, Fwindow_text_height):
	Document the effect of WINDOW arg being nil.

Kim F. Storm's avatar
Kim F. Storm committed
1176 1177 1178
2007-02-08  Kim F. Storm  <storm@cua.dk>

	* minibuf.c (read_minibuf): Fix 2007-01-30 change.
Juanma Barranquero's avatar
Juanma Barranquero committed
1179
	Use Qlambda as interim value of Vminibuffer_completing_file_name.
Kim F. Storm's avatar
Kim F. Storm committed
1180
	(Fcompleting_read): Use non-filename maps if value is Qlambda (or Qnil).
Kim F. Storm's avatar
Kim F. Storm committed
1181 1182
	(syms_of_minibuf) <minibuffer-completing-file-name>: Document lambda.

1183 1184 1185 1186 1187
2007-02-07  Juanma Barranquero  <lekktu@gmail.com>

	* makefile.w32-in ($(TRES)): Use literal "../nt/emacs.rc" instead
	of $(ALL_DEPS).

1188 1189 1190 1191 1192
2007-02-07  Eli Zaretskii  <eliz@gnu.org>

	* makefile.w32-in ($(TRES)): Depend on stamp_BLD, since $(TRES) is
	put into $(BLD).

1193 1194 1195 1196 1197 1198
2007-02-06  Chong Yidong  <cyd@stupidchicken.com>

	* frame.c (Fmodify_frame_parameters): Don't bind
	Qinhibit_default_face_x_resources, which has no effect.
	(Qinhibit_default_face_x_resources): Symbol deleted.

Eli Zaretskii's avatar
Eli Zaretskii committed
1199 1200 1201 1202 1203
2007-02-03  Eli Zaretskii  <eliz@gnu.org>

	* indent.c (Fmove_to_column): Document that the argument COLUMN is
	taken from prefix numeric argument.

1204 1205 1206 1207
2007-02-03  Juanma Barranquero  <lekktu@gmail.com>

	* lread.c (syms_of_lread) <load-history>: Doc fix.

Juanma Barranquero's avatar
Juanma Barranquero committed
1208 1209 1210 1211 1212
2007-01-29  Andreas Seltenreich  <uwi7@rz.uni-karlsruhe.de>  (tiny change)

	* xterm.c [!USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_expose):
	Use the foreground color of the scroll-bar face when drawing
	the scroll-bar's border.
1213

1214 1215 1216 1217 1218
2007-02-02  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xterm.c (do_ewmh_fullscreen): Check that what != NULL before
	calling wm_supports.

1219 1220 1221 1222 1223
2007-02-01  Juanma Barranquero  <lekktu@gmail.com>

	* lread.c (syms_of_lread) <user-init-file>: Doc fix.
	Wording by Eli Zaretskii.

Jan Djärv's avatar
Jan Djärv committed
1224 1225 1226 1227
2007-01-31  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c (update_frame_tool_bar): Initialize h/vmargin to 0.

1228 1229 1230 1231 1232 1233 1234 1235 1236 1237
2007-01-30  Richard Stallman  <rms@gnu.org>

	* minibuf.c (read_minibuf):
	Save and clear Vminibuffer_completing_file_name.
	(read_minibuf_unwind): Restore it.
	(Vminibuffer_completion_table, Qminibuffer_completion_table)
	(Vminibuffer_completion_predicate, Qminibuffer_completion_predicate)
	(Vminibuffer_completion_confirm, Qminibuffer_completion_confirm)
	(Vminibuffer_completing_file_name): Definitions moved up.

1238 1239 1240 1241
2007-01-29  Chong Yidong  <cyd@stupidchicken.com>

	* m/hp800.h: Restore, removing HP-UX support.

Jan Djärv's avatar
Jan Djärv committed
1242 1243 1244 1245
2007-01-29  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* Makefile.in: Use a variable, XFT_LIBS, instead #define LIB_X11_LIB.

1246 1247 1248 1249 1250 1251
2007-01-28  Richard Stallman  <rms@gnu.org>

	* minibuf.c (Ftry_completion, Fall_completions)
	(Fcompleting_read, Ftest_completion):
	Rename arg ALIST or TABLE to COLLECTION.

1252 1253 1254 1255 1256 1257
2007-01-27  Chong Yidong  <cyd@stupidchicken.com>

	* unexhp9k800.c: Remove due to lack of legal papers.

	* m/sr2k.h, m/hp800.h: Remove due to dependence on above.

Eli Zaretskii's avatar
Eli Zaretskii committed
1258 1259
2007-01-27  Eli Zaretskii  <eliz@gnu.org>

1260 1261
	* keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Doc fix.

Eli Zaretskii's avatar
Eli Zaretskii committed
1262 1263
	* minibuf.c (Fcompleting_read): Doc fix.

Jan Djärv's avatar
Jan Djärv committed
1264 1265
2007-01-26  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

Jan Djärv's avatar
Jan Djärv committed
1266 1267
	* gtkutil.c (xg_initialize): Call XftInit if HAVE_XFT.

Jan Djärv's avatar
Jan Djärv committed
1268 1269
	* Makefile.in: Use XFT_LIBS if defined.

1270 1271
2007-01-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

1272 1273
	* alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use
	BLOCK_INPUT/UNBLOCK_INPUT.
1274 1275 1276 1277 1278 1279 1280

	* blockinput.h (interrupt_input_blocked): Declare volatile.

	* keyboard.c (interrupt_input_blocked): Declare volatile.

	* syssignal.h (SIGNAL_THREAD_CHECK): Use pthread_equal.

Kim F. Storm's avatar
Kim F. Storm committed
1281 1282 1283 1284
2007-01-24  Kim F. Storm  <storm@cua.dk>

	* keymap.c (describe_map): Don't consider prefix keys to be shadowed.

Juanma Barranquero's avatar
Juanma Barranquero committed
1285 1286 1287 1288 1289
2007-01-23  Juanma Barranquero  <lekktu@gmail.com>

	* editfns.c (Finsert_char): Doc fix.
	(Fget_internal_run_time, Fdecode_time): Fix typos in docstrings.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
1290 1291
2007-01-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

Juanma Barranquero's avatar
Juanma Barranquero committed
1292 1293 1294
	* macselect.c [TARGET_API_MAC_CARBON] (mac_do_receive_drag):
	Don't pass keyboard modifiers to mac_store_drag_event, but put
	them as kEventParamKeyModifiers Apple event parameter.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
1295

1296 1297 1298 1299 1300 1301 1302
2007-01-21  Chong Yidong  <cyd@stupidchicken.com>

	* xdisp.c (try_window): Revert previous change.

	* dispnew.c (update_text_area): Revert 2006-09-17 change.
	Always redraw non-mode-line rows with mouse-face.

1303 1304 1305 1306 1307 1308
2007-01-20  Chong Yidong  <cyd@stupidchicken.com>

	* xdisp.c (try_window): Clear mouse-face highlights first.

	* window.c (set_window_buffer): Revert 2006-11-22 change.

Eli Zaretskii's avatar
Eli Zaretskii committed
1309 1310 1311 1312 1313
2007-01-20  Eli Zaretskii  <eliz@gnu.org>

	* .gdbinit (ppt, xtype, xmisctype, xint, xptr, xmarker, xframe)
	(xbuffer, xcons, xcar, xcdr): Fix doc strings.

1314 1315 1316 1317 1318
2007-01-20  Chong Yidong  <cyd@stupidchicken.com>

	* keyboard.c (read_key_sequence): Extract local map only if the
	given position is in an accessible buffer region.

Nick Roberts's avatar
Nick Roberts committed
1319 1320 1321 1322 1323
2007-01-19  Nick Roberts  <nickrob@snap.net.nz>

	* .gdbinit: Reformat documentation so that first sentence
	displays properly with "help user-defined" (like apropos).

Juanma Barranquero's avatar
Juanma Barranquero committed
1324
2007-01-18  Bruno Haible  <bruno@clisp.org>  (tiny change)
1325 1326 1327

	* epaths.in: Move PATH_DOC from local/info to local/share/info.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
1328 1329
2007-01-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

Eli Zaretskii's avatar
Eli Zaretskii committed
1330
	* macmenu.c (create_and_show_dialog) [TARGET_API_MAC_CARBON]:
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
1331
	Create movable modal window instead of movable alert window.
Eli Zaretskii's avatar
Eli Zaretskii committed
1332 1333
	(create_and_show_dialog) [!MAC_OSX]: Use DeactivateControl instead
	of DisableControl.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
1334 1335 1336 1337

	* macselect.c (Fmac_resume_apple_event): Set error number when
	descriptor type of reply is non-null.

1338 1339
2007-01-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

1340 1341
	* macmenu.c (create_and_show_dialog) [TARGET_API_MAC_CARBON]:
	Use DisableControl for disabled items.  Set default button to first
1342 1343
	enabled one.  Use icon of application in execution.

1344 1345
2007-01-13  Eli Zaretskii  <eliz@gnu.org>

Juanma Barranquero's avatar
Juanma Barranquero committed
1346 1347
	* process.c (Fdelete_process, Fprocess_id, sigchld_handler):
	Copy PID into EMACS_INT to avoid GCC warnings.
1348

1349 1350 1351 1352 1353 1354 1355 1356
	* fns.c (maybe_resize_hash_table): Copy new size of hash table
	into EMACS_INT to avoid GCC warnings.

	* editfns.c (Fuser_uid, Fuser_real_uid): Copy values returned by
	geteuid and getuid into EMACS_INT to avoid GCC warnings.

	* dired.c (Ffile_attributes): Fix last change.

1357 1358 1359 1360 1361 1362
2007-01-12  Eli Zaretskii  <eliz@gnu.org>

	* dired.c (Ffile_attributes): Copy some members of `struct stat'
	into int's to avoid GCC warnings about limited range of short in
	arguments to FIXNUM_OVERFLOW_P.

1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377
2007-01-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macmenu.c (HAVE_DIALOGS): Define if TARGET_API_MAC_CARBON.
	(mac_handle_dialog_event, install_dialog_event_handler)
	(create_and_show_dialog) [TARGET_API_MAC_CARBON]: New functions.
	(DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
	(DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH)
	(DIALOG_MAX_INNER_WIDTH, DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
	(DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
	(DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
	(DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
	(DIALOG_ICON_TOP_MARGIN) [TARGET_API_MAC_CARBON]: New macros.
	(mac_dialog) [TARGET_API_MAC_CARBON]: Remove function.
	(mac_dialog_show) [TARGET_API_MAC_CARBON]: Use create_and_show_dialog.

Juanma Barranquero's avatar
Juanma Barranquero committed
1378 1379
	* macterm.c (x_free_frame_resources) [USE_CG_DRAWING]:
	Call mac_prepare_for_quickdraw.
1380 1381 1382 1383 1384 1385 1386 1387 1388
	(quit_char, make_ctrl_char) [TARGET_API_MAC_CARBON]: Move externs
	outside #ifdef MAC_OSX.
	(mac_quit_char_key_p) [TARGET_API_MAC_CARBON]: Move function
	outside #ifdef MAC_OSX.
	(mac_check_bundle) [MAC_OSX]: Remove unused function.

	* macterm.h (mac_quit_char_key_p): Move extern outside #ifdef MAC_OSX.
	(HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Parenthesize definitions.

1389 1390 1391 1392 1393
2007-01-11  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use pthread_equal,
	block/unblock SIGIO.

1394 1395
2007-01-10  Stefan Monnier  <monnier@iro.umontreal.ca>

1396 1397 1398
	* editfns.c (Fformat): Allow integer-format to work with floats of size
	larger than most-positive-fixnum (but still smaller than MAXINT).

1399 1400
	* dired.c (Ffile_attributes): Use floats for large uids/gids.

1401 1402 1403 1404
2007-01-09  Eli Zaretskii  <eliz@gnu.org>

	* emacs.c (syms_of_emacs) <path-separator>: Doc fix.

1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419
2007-01-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Add BLOCK_INPUT
	around mkstemp.

	* image.c (XDrawLine) [MAC_OS]: Remove macro.
	(XCreateGC_pixmap) [!HAVE_NTGUI]: Likewise.
	(x_disable_image) [!HAVE_NTGUI]: Use XCreateGC instead of
	XCreateGC_pixmap.

	* macgui.h (Display): Typedef to opaque type.

	* macmenu.c (mac_dialog_modal_filter) [MAC_OSX]: New function.
	(Fx_popup_dialog) [MAC_OSX]: Use standard alert if called from
	Fmessage_box, Fyes_or_no_p, or Fy_or_n_p.
1420 1421
	[MAC_OS_X_VERSION_MAX_ALLOWED >= 1030] (menu_quit_handler):
	Use mac_quit_char_key_p.
1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432

	* macterm.c (XDrawLine): Rename from mac_draw_line_to_pixmap.
	(XCreateGC): Change type of 2nd argument to void *.
	(XFreeGC) [USE_CG_DRAWING && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
	Fix last change.
	(mac_to_emacs_modifiers): Change return type to int.
	[USE_CARBON_EVENTS] (mac_event_to_emacs_modifiers): Likewise.
	(mac_mapped_modifiers): New function.
	(XTread_socket): Use it.
	[USE_TSM] (mac_handle_text_input_event): Likewise.
	(do_window_update) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
1433 1434
	(mac_quit_char_modifiers, mac_quit_char_keycode) [MAC_OSX]:
	Remove variables.
1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445
	(mac_determine_quit_char_modifiers, init_quit_char_handler)
	[MAC_OSX]: Remove functions.
	(make_ctrl_char) [MAC_OSX]: Add extern.
	(mac_quit_char_key_p) [MAC_OSX]: New function.
	(mac_initialize) [MAC_OSX]: Don't call init_quit_char_handler.

	* macterm.h (FONT_MAX_WIDTH): Remove unused macro.
	(XCreateGC): Change type in extern.
	(XDrawLine): Rename from mac_draw_line_to_pixmap.
	(mac_quit_char_key_p) [MAC_OSX]: Add extern.

1446 1447