ChangeLog 914 KB
Newer Older
Kim F. Storm's avatar
Kim F. Storm committed
1 2 3 4 5 6 7 8 9 10
2006-09-20  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (pos_visible_p): CHARPOS < 0 means return info for
	last visible glyph in window.

	* window.c (Fset_window_hscroll, Fpos_visible_in_window_p):
	Doc fix.  Use "off-window" instead of "off-screen".
	(Fpos_visible_in_window_p): Likewise.
	If POS is t, return info for last visible glyph in window.

11 12 13 14 15 16 17 18
2006-09-19  Chong Yidong  <cyd@stupidchicken.com>

	* search.c (struct regexp_cache): New entry syntax_table.
	(compile_pattern_1): Set it.
	(syms_of_search): Initialize it.
	(compile_pattern): Require the syntax_table entry of the cache
	element to match the current syntax table entry.

19 20 21 22
2006-09-19  Stefan Monnier  <monnier@iro.umontreal.ca>

	* window.c (Fwindow_end): Fix recent change.

Kim F. Storm's avatar
Kim F. Storm committed
23 24 25 26 27 28 29 30
2006-09-19  Kim F. Storm  <storm@cua.dk>

	* window.c (Fset_window_hscroll, Fpos_visible_in_window_p):
	Doc fix.  Use "off-screen" instead of "invisible".
	(Fwindow_line_height): Make line numbers 0-based.  Make line arg
	optional; if nil, use current cursor row.  Handle text terminals
	properly.  Return nil if non-interactive or pseudo-window.

31 32 33 34 35 36
2006-09-19  Stefan Monnier  <monnier@iro.umontreal.ca>

	* keymap.c: Include alloca.h if available.
	(Fkey_binding): Only use AREF after checking it's a vector.
	Remove unused var `window'.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
2006-09-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* emacs.c (shut_down_emacs) [!subprocesses]: Don't set
	inhibit_sentinels.

	* mac.c [!MAC_OSX] (select): Fix argument name.

	* macmenu.c (enum mac_menu_kind, min_menu_id): New enumerator and
	menu ID for Apple menu.
	(menubar_selection_callback): Remove function.
	(find_and_call_menu_selection): New function from xmenu.c.
	(x_activate_menubar): Use it.
	(set_frame_menubar): Don't use f->output_data.mac->menubar_active.

	* macterm.c (menubar_selection_callback): Remove extern.
	(M_APPLE): Change to 234.
	(do_apple_menu) [!TARGET_API_MAC_CARBON]: Make non-static.
	(do_menu_choice): Remove function.

	* macterm.h (struct mac_output): Remove member menubar_active.
	(do_menu_choice): Remove extern.
	(do_apple_menu) [!TARGET_API_MAC_CARBON]: Add extern.

60 61
2006-09-18  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

62 63 64
	* xfns.c (syms_of_xfns): Rename x_gtk_show_chooser_help_text to
	x_gtk_file_dialog_help_text.

65 66
	* gtkutil.c (xg_uses_old_file_dialog): Rename x-use-old-gtk-file-dialog
	to x-gtk-use-old-file-dialog.
67 68
	(xg_get_file_with_chooser): Rename x_gtk_show_chooser_help_text to
	x_gtk_file_dialog_help_text.
69 70 71

	* xfns.c (syms_of_xfns): Ditto.

Kim F. Storm's avatar
Kim F. Storm committed
72 73 74 75 76 77
2006-09-18  Kim F. Storm  <storm@cua.dk>

	* window.c (Fwindow_line_visibility): Remove.
	(Fwindow_line_height): New defun replacing it.
	(syms_of_window): Defsubr it.

78 79 80 81 82
2006-09-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* mac.c (SELECT_USE_CFSOCKET) [MAC_OSX]: Set default to 1.
	[MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Fix pointer type.

Jay Belanger's avatar
Jay Belanger committed
83 84 85 86 87 88 89 90
2006-09-17  Jay Belanger  <belanger@truman.edu>

	* gmalloc.c:
	* md5.c:
	* md5.h:
	* strftime.c: Replace "GNU Library General Public License" by "GNU
	General Public License" throughout.

Kim F. Storm's avatar
Kim F. Storm committed
91 92 93 94 95 96
2006-09-17  Kim F. Storm  <storm@cua.dk>

	* dispnew.c (update_text_area): Undo 2000-07-18 change.
	Always redrawing whole row if line has mouse-face in it causes
	excessive flickering of the mode line.

97 98 99 100 101 102
2006-09-17  Chong Yidong  <cyd@stupidchicken.com>

	* search.c (clear_regexp_cache): New function.

	* syntax.c (Fmodify_syntax_entry): Clear regexp cache.

103 104
2006-09-16  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

105 106
	* gtkutil.c (xg_get_file_with_chooser):
	Check x-gtk-show-chooser-help-text before adding the help text.
107 108 109

	* xfns.c (syms_of_xfns): New variable: x-gtk-show-chooser-help-text.

110 111 112
	* gtkutil.c (get_utf8_string): Try harder to convert to UTF8.  Gtk+
	will simply crash if we fail.

113 114 115 116
2006-09-16  Richard Stallman  <rms@gnu.org>

	* regex.c (re_compile_pattern): Set gl_state.current_syntax_table.

Kim F. Storm's avatar
Kim F. Storm committed
117 118 119 120 121 122
2006-09-15  Kim F. Storm  <storm@cua.dk>

	* window.c (Fwindow_line_visibility): New defun for line-move-partial.
	(syms_of_window): Defsubr it.
	(Fwindow_end): Use window's buffer rather than current buffer.

Jay Belanger's avatar
Jay Belanger committed
123 124 125 126 127
2006-09-15  Jay Belanger  <belanger@truman.edu>

	* COPYING: Replace "Library Public License" by "Lesser Public
	License" throughout.

128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
2006-09-15  David Kastrup  <dak@gnu.org>

	* Makefile.in (keymap.o): Add "keymap.h" and "window.h"
	dependencies.

	* keymap.c: include "window.h".
	(Fcommand_remapping): New optional POSITION argument.
	(Fkey_binding): New optional POSITION argument.  Completely rework
	handling of mouse clicks to get the same order of keymaps as
	`read-key-sequence' and heed POSITION.  Also temporarily switch
	buffers to location of mouse click and back.

	* keyboard.c (command_loop_1): Adjust call of `Fcommand_remapping'
	for additional argument.
	(parse_menu_item): Adjust call of `Fkey_binding' for additional
	argument.
	(read_key_sequence): If there are both `local-map' and `keymap'
	text properties at some buffer position, heed both.

	* keymap.h: Declare additional optional arguments of
	`Fcommand_remapping' and `Fkey_binding'.

Juanma Barranquero's avatar
Juanma Barranquero committed
150 151 152 153
2006-09-15  Juanma Barranquero  <lekktu@gmail.com>

	* indent.c (Fcurrent_column, Findent_to): Fix typos in docstring.

Andreas Schwab's avatar
Andreas Schwab committed
154 155 156 157
2006-09-14  Andreas Schwab  <schwab@suse.de>

	* print.c: Whitespace fixup.

Kim F. Storm's avatar
Kim F. Storm committed
158 159 160 161 162 163 164
2006-09-14  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (produce_image_glyph): Automatically crop wide images at
	right window edge so we can draw the cursor on the same row to
	avoid confusing redisplay by placing the cursor outside the visible
	window area.

165 166 167 168 169 170 171 172 173 174
2006-09-13  YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>

	* xterm.c (x_initialize): Don't install Xt event timer here.
	(x_timeout_atimer_activated_flag): New var.
	(x_activate_timeout_atimer): New function to install Xt timer.
	(x_send_scroll_bar_event, x_process_timeouts): Use it.

	* xmenu.c (x_menu_set_in_use, popup_activate_callback)
	(create_and_show_popup_menu, create_and_show_dialog): Use it.

Chong Yidong's avatar
Typo.  
Chong Yidong committed
175
	* xterm.h (x_activate_timeout_atimer): Add prototype.
176

177 178 179 180 181 182 183 184 185 186
2006-09-13  Richard Stallman  <rms@gnu.org>

	* print.c (print_string): When printcharfun is t,
	copy string contents and call strout on the copy.

	* keyboard.c (read_char): If end_time specified, don't put the
	event into this_command_keys.
	(read_key_sequence): If Voverriding_terminal_local_map is specified,
	don't check Voverriding_local_map at all.

Chong Yidong's avatar
Typo.  
Chong Yidong committed
187
2006-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
188 189 190 191 192 193

	* textprop.c (Fnext_property_change, Fnext_single_property_change)
	(Fprevious_property_change, Fprevious_single_property_change):
	Avoid changing limit, so we can correctly catch the case where the
	property is constant up to limit.

194 195 196 197 198 199
2006-09-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
	* macterm.c (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
	Undo 2006-09-08 change.

200 201 202 203
2006-09-11  Chong Yidong  <cyd@stupidchicken.com>

	* keymap.c (Fkey_binding): Use string position for string objects.

Kim F. Storm's avatar
Kim F. Storm committed
204 205
2006-09-11  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
206 207
	* keymap.c (Fkey_binding): Fix last change.

Kim F. Storm's avatar
Kim F. Storm committed
208 209
	* editfns.c (Fmessage): Recommend using (message "%s" ...).

210 211 212 213 214
2006-09-10  Chong Yidong  <cyd@stupidchicken.com>

	* keymap.c (Fkey_binding): Check for local keymap for mouse click
	events.

Kim F. Storm's avatar
Kim F. Storm committed
215 216
2006-09-10  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
217 218 219
	* keyboard.c (Finput_pending_p): Check Vunread_input_method_events
	and Vunread_post_input_method_events.

Kim F. Storm's avatar
Kim F. Storm committed
220 221
	* dispnew.c (Fredisplay): Document return value.

222 223 224 225 226 227 228
2006-09-10  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xfns.c (Fx_close_connection): Call xg_display_close when USE_GTK.

	* gtkutil.c (xg_display_close): Always change default display if needed,
	check for < Gtk+ version 2.10 before calling gdk_display_close.

229 230
2006-09-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

231 232
	* mac.c [MAC_OSX] (sys_select): Check argument `nfds' more rigidly.
	Make variable `ofds' static.  Remove variable `maxfd'.
233

Juanma Barranquero's avatar
Juanma Barranquero committed
234 235
	* macfns.c (Fx_file_dialog): Remove unused variable `f'.
	Call check_mac.
236

237
	* macmenu.c (Vmenu_updating_frame, syms_of_macmenu):
Juanma Barranquero's avatar
Juanma Barranquero committed
238 239
	* w32menu.c (Vmenu_updating_frame, syms_of_w32menu):
	Apply 2006-09-08 change for xmenu.c.
240

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
241
	* xfns.c (Fx_file_dialog): Call check_x.
242

Kim F. Storm's avatar
Kim F. Storm committed
243 244 245 246 247
2006-09-10  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (get_window_cursor_type): Use hollow cursor on
	non-transparent images.

Eli Zaretskii's avatar
Eli Zaretskii committed
248 249 250 251 252
2006-09-09  Eli Zaretskii  <eliz@gnu.org>

	* editfns.c (Fsystem_name): Mention "host" in the doc string.
	(syms_of_editfns) <system-name>: Likewise.

253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269
2006-08-27  Martin Rudalics  <rudalics@gmx.at>

	* xdisp.c (mouse_autoselect_window): Removed.
	(Vmouse_autoselect_window): New variable.  DEFVAR_LISP it.

	* dispextern.h (mouse_autoselect_window): Remove extern.
	(Vmouse_autoselect_window): Add extern.

	* macterm.c (XTread_socket): Test Vmouse_autoselect_window
	instead of mouse_autoselect_window.

	* msdos.c (dos_rawgetc): Likewise.

	* w32term.c (w32_read_socket): Likewise.

	* xterm.c (handle_one_xevent): Likewise.

270 271
2006-09-08  Richard Stallman  <rms@gnu.org>

272 273 274 275
	* xdisp.c (Vmenu_updating_frame): Define here.
	(syms_of_xdisp): DEFVAR it here.
	(update_menu_bar): Always return hooks_run.
	Set Vmenu_updating_frame.
Romain Francoise's avatar
Romain Francoise committed
276

277 278 279 280 281 282 283 284
	* xdisp.c (redisplay_internal): Test Vinhibit_redisplay
	before calculating SELECTED_FRAME.

	* xmenu.c (Vmenu_updating_frame): Don't define here.
	(syms_of_xmenu): Don't DEFVAR it here.

	* xterm.c (x_error_quitter): For BadName error, just return.

285 286 287 288 289 290 291 292 293 294 295 296 297 298 299
	* eval.c (find_handler_clause): Give up on debugger if INPUT_BLOCKED_P.

	* casetab.c (init_casetab_once): Call set_case_table.

	* emacs.c (shut_down_emacs): Set inhibit_sentinels.

	* process.c (inhibit_sentinels): New variable.
	(exec_sentinel): Test inhibit_sentinels.
	(init_process): Initialize it.

	* process.h (inhibit_sentinels): Add decl.

	* search.c (looking_at_1, string_match_1, search_command):
	Make syntax table's canon table point to eqv table.

Andreas Schwab's avatar
Andreas Schwab committed
300 301 302 303
2006-09-08  Andreas Schwab  <schwab@suse.de>

	* print.c (strout): Fix whitespace.

Kim F. Storm's avatar
Kim F. Storm committed
304 305 306 307
2006-09-08  Kim F. Storm  <storm@cua.dk>

	* xterm.c (x_draw_glyph_string): Fix 2006-08-24 change.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337
2006-09-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* mac.c [!MAC_OSX]: Don't include keyboard.h.
	[!MAC_OSX] (select): Try detect_input_pending before ReceiveNextEvent
	in the same BLOCK_INPUT block, in case that some input has already
	been read asynchronously.  Pretend to be interrupted by a signal
	if some input is available.
	[MAC_OSX] (select_and_poll_event, sys_select): Likewise.
	(SELECT_POLLING_PERIOD_USEC) [SELECT_USE_CFSOCKET]: Change to 100000.
	Now used for ReceiveNextEvent timeout instead of select timeout.
	(EVENT_CLASS_SOCK) [SELECT_USE_CFSOCKET]: Remove macro.
	[SELECT_USE_CFSOCKET] (socket_callback): Add non-blocking connect
	support.  Quit event loop.
	[MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Add non-blocking
	connect support.  Reuse previously allocated CFRunLoopSource.
	(Fmac_process_hi_command) [TARGET_API_MAC_CARBON]: New function.
	(syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.

	* macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
	Specify kWindowAsyncDragAttribute.

	* macterm.c (mac_handle_origin_change, mac_handle_size_change)
	(mac_get_ideal_size): New functions.
	(x_set_offset, x_set_window_size, x_make_frame_visible)
	(do_zoom_window, mac_handle_window_event, XTread_socket): Use them.
	(install_window_handler, mac_handle_window_event)
	[USE_CARBON_EVENTS]: Handle kEventWindowGetIdealSize and
	kEventWindowBoundsChanged.
	(XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Don't call
	DragWindow.
Kim F. Storm's avatar
Kim F. Storm committed
338

339 340 341 342 343
2006-09-07  Andreas Schwab  <schwab@suse.de>

	* m/ibms390x.h (START_FILES, LIB_STANDARD): Override to
	use lib64 instead of lib.

344 345 346 347
2006-09-06  Stefan Monnier  <monnier@iro.umontreal.ca>

	* Makefile.in: Avoid double quotes when possible.

348 349 350 351 352
2006-09-06  Kenichi Handa  <handa@m17n.org>

	* editfns.c (Fformat_time_string): Use make_unibyte_string to make
	a Lisp string from the result of emacs_memftimeu call.

Kim F. Storm's avatar
Kim F. Storm committed
353 354 355
2006-09-06  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (pos_visible_p): Remove exact_mode_line_heights_p arg;
Kim F. Storm's avatar
Kim F. Storm committed
356 357 358 359
	so calculate heights even when pos-visible-in-window-p is called
	with partially = t.  Don't overshoot last_visible_y in move_it_to.
	Return row height and row number in new rowh and vpos args.
	(cursor_row_fully_visible_p): First line is always "fully visible".
Kim F. Storm's avatar
Kim F. Storm committed
360 361 362 363 364 365
	(try_window): Don't clear matrix if vscrolled.

	* lisp.h (pos_visible_p): Update prototype.

	* window.c (Fpos_visible_in_window_p): Adapt to new pos_visible_p.
	Return row height and row number for partially visible rows.
366 367
	Modify return value to a 2 element list for fully visible rows and
	6 for partially visible row.
Kim F. Storm's avatar
Kim F. Storm committed
368
	(window_scroll_pixel_based): Use pos_visible_p directly instead of
369 370 371 372 373
	Fpos_visible_in_window_p.  Fix auto vscrolling for partially
	visible lines.  Only vscroll backwards if already vscrolled
	forwards.  Unconditionally vscroll forwards if PT is first (and
	only) line.  Set new window start instead of scrolling at
	start/end of tall line.
Kim F. Storm's avatar
Kim F. Storm committed
374

375 376 377 378 379 380 381
2006-09-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c (install_window_handler, mac_handle_window_event)
	[USE_CARBON_EVENTS]: Handle kEventWindowClose.
	[USE_MAC_TSM] (mac_handle_text_input_event): Set modifiers for
	ASCII keystroke event.

382 383 384 385 386 387
2006-09-04  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c (xg_get_file_with_chooser): Don't mention specific keys in
	the file chooser message.  Only call gtk_file_chooser_set_current_name
	when action is SAVE.

388 389 390 391 392
2006-09-04  Andreas Schwab  <schwab@suse.de>

	* Makefile.in: Double all single and back quotes in C-style
	comments to help fontifier.

Jason Rumney's avatar
Jason Rumney committed
393 394 395 396 397
2006-09-03  Jason Rumney  <jasonr@gnu.org>

	* w32.c (shutdown_handler): New function to exit cleanly on shutdown.
	(globals_of_w32): Register it as a signal handler.

Juri Linkov's avatar
Juri Linkov committed
398 399 400 401
2006-09-02  Juri Linkov  <juri@jurta.org>

	* marker.c (Fmarker_position): Doc fix.

Eli Zaretskii's avatar
Eli Zaretskii committed
402 403 404 405 406
2006-09-03  Eli Zaretskii  <eliz@gnu.org>

	* window.c (syms_of_window) <split-height-threshold>:
	<window-min-height, window-min-width>: Doc fix.

407 408
2006-09-02  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

409 410 411 412
	* gtkutil.c (xg_get_file_with_chooser): Change file chooser message
	for writing files.  Call gtk_file_chooser_set_current_name to keep
	default filename.

413 414
	* minibuf.c (Finternal_complete_buffer): Move after DEFUN:s it calls

Eli Zaretskii's avatar
Eli Zaretskii committed
415 416 417 418 419 420 421 422
2006-09-02  Jindrich Makovicka  <makovick@gmail.com>  (tiny change)

	* fns.c (concat) [__GNUC__]: Declare with
	`__attribute__((noinline))'.

	* eval.c (apply1, call2) [__GNUC__]: Declare with
	`__attribute__((noinline))'.

Eli Zaretskii's avatar
Eli Zaretskii committed
423 424 425 426 427 428
2006-09-02  Stuart D. Herring  <herring@lanl.gov>

	* minibuf.c (Finternal_complete_buffer): New function.
	(syms_of_minibuf): Defsubr it.
	(Fread_buffer): Use it, instead of Vbuffer_alist.

Romain Francoise's avatar
Romain Francoise committed
429
2006-09-01  Martin Rudalics  <rudalics@gmx.at>
430

Romain Francoise's avatar
Romain Francoise committed
431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450
	* buffer.h (struct buffer_text): New field chars_modiff.
	(CHARS_MODIFF, BUF_CHARS_MODIFF): New macros.
	* buffer.c (Fbuffer_chars_modified_tick): New function returning
	value of BUF_CHARS_MODIFF.
	(syms_of_buffer): Defsubr it.
	(Fget_buffer_create): Initialize BUF_CHARS_MODIFF.
	* insdel.c (modify_region): New argument preserve_chars_modiff.
	Set CHARS_MODIFF to MODIFF provided preserve_chars_modiff is zero.
	(insert_1_both, insert_from_string_1, insert_from_buffer_1)
	(adjust_after_replace, adjust_after_replace_noundo)
	(replace_range, replace_range_2, del_range_2): Reset CHARS_MODIFF.
	* lisp.h (modify_region): Add fourth argument in extern.
	* casefiddle.c (casify_region): Call modify_region with fourth
	argument zero to assert that CHARS_MODIFF is updated.
	* editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
	(Ftranspose_regions): Likewise.
	* textprop.c (Fadd_text_properties, Fset_text_properties)
	(Fremove_text_properties, Fremove_list_of_text_properties):
	Call modify_region with fourth argument 1 to avoid that
	CHARS_MODIFF is updated.
451

452 453 454 455
2006-08-31  Richard Stallman  <rms@gnu.org>

	* editfns.c (Fformat): Don't sign-extend for %o or %x.

456 457 458 459 460
2006-08-29  Chong Yidong  <cyd@stupidchicken.com>

	* indent.c (Fvertical_motion): Don't move back if we were
	displaying a Lisp string, either.

Kim F. Storm's avatar
Kim F. Storm committed
461 462 463 464 465
2006-08-28  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (get_window_cursor_type) [!HAVE_WINDOW_SYSTEM]:
	Don't attempt to replace cursor on image glyphs.

Kenichi Handa's avatar
Kenichi Handa committed
466 467 468 469 470
2006-08-28  Kenichi Handa  <handa@m17n.org>

	* coding.c (Fdetect_coding_region, Fdetect_coding_string): Fix
	docstring about ISO-2022 control characters.

Kim F. Storm's avatar
Kim F. Storm committed
471 472 473 474 475 476 477 478
2006-08-28  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (get_window_cursor_type): Replace BOX cursor on images
	with a hollow box cursor if image is larger than 32x32 (or the default
	frame font if that is bigger).  Replace any other cursor on images
	with hollow box cursor, as redisplay doesn't support bar and hbar
	cursors on images.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498
2006-08-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Undo previous
	change.  Move mutex lock/unlock operations inside BLOCK_INPUT.

	* dired.c (directory_files_internal_unwind, directory_files_internal)
	(file_name_completion): Add BLOCK_INPUT around opendir/closedir.

	* image.c [MAC_OS] (image_load_qt_1): Use ComponentResult instead
	of OSErr.

	* keyboard.c (in_sighandler): Remove variable.
	(Fcurrent_idle_time): Add missing `doc:'.
	(input_available_signal, init_keyboard): Undo previous change.

	* keyboard.h (in_sighandler): Remove extern.

	* mac.c (create_apple_event_from_event_ref, select)
	(Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
	(Fmac_set_file_type, cfstring_create_normalized)
Juanma Barranquero's avatar
Juanma Barranquero committed
499 500
	(mac_get_system_locale, select_and_poll_event, sys_select):
	Use OSStatus instead of OSErr.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
501

Juanma Barranquero's avatar
Juanma Barranquero committed
502 503
	* macfns.c [TARGET_API_MAC_CARBON] (mac_update_proxy_icon):
	Don't use FRAME_FILE_NAME.  Use (FS)UpdateAlias.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527
	(Fx_create_frame): Apply 2006-07-03 for xfns.c.

	* macselect.c (get_scrap_from_symbol, clear_scrap, put_scrap_string)
	(put_scrap_private_timestamp, scrap_has_target_type, get_scrap_string)
	(get_scrap_private_timestamp, get_scrap_target_type_list)
	(x_own_selection, x_get_foreign_selection)
	(Fx_disown_selection_internal, Fx_selection_owner_p)
	(Fx_selection_exists_p): Use OSStatus instead of OSErr.

	* macterm.c (mac_draw_string_common, mac_query_char_extents)
	(x_iconify_frame, XLoadQueryFont, install_window_handler)
	(mac_handle_command_event, init_command_handler, init_menu_bar):
	Use OSStatus instead of OSErr.
	(x_free_frame_resources) [TARGET_API_MAC_CARBON]: Don't use
	FRAME_FILE_NAME.
	(x_query_font): Apply 2006-08-04 change for xterm.c.
	(Qhi_command): Rename from Qhicommand.  All uses changed.

	* macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]: Remove member
	file_name.
	(FRAME_FILE_NAME): Remove macro.
	(install_window_handler, create_apple_event_from_event_ref):
	Return OSStatus instead of OSErr.

Kim F. Storm's avatar
Kim F. Storm committed
528 529 530 531 532 533 534 535 536 537 538 539 540
2006-08-26  Kim F. Storm  <storm@cua.dk>

	* buffer.c (Fset_buffer_multibyte):
	* editfns.c (Fcurrent_time, Fget_internal_run_time):
	* macfns.c (Fxw_color_values):
	* w32fns.c (Fxw_color_values):
	* xfns.c (Fxw_color_values): Simplify; use list3.

	* fileio.c (Fmake_directory_internal, Fdelete_directory)
	(Fdelete_file): Simplify; use list1.
	(Frename_file, Fadd_name_to_file, Fmake_symbolic_link):
	Simplify; remove NO_ARG_ARRAY stuff, use list2.

541 542 543 544
2006-08-25  Richard Stallman  <rms@gnu.org>

	* buffer.c (Fswitch_to_buffer): Fix previous change.

Kim F. Storm's avatar
Kim F. Storm committed
545 546 547 548
2006-08-25  Kim F. Storm  <storm@cua.dk>

	* keyboard.c (Fcurrent_idle_time): Simplify.

549 550 551 552
2006-08-25  Richard Stallman  <rms@gnu.org>

	* fns.c (sxhash_string): Rotate properly; don't lose bits.

Kim F. Storm's avatar
Kim F. Storm committed
553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569
2006-08-24  Francesc Rocher  <francesc.rocher@gmail.com>

	* xdisp.c (overline_margin): New variable.
	(x_produce_glyphs): Use it.
	(syms_of_xdisp): DEFVAR_INT it.

	* xterm.c (x_underline_at_descent_line): New variable.
	(syms_of_xterm): DEFVAR_BOOL it.
	(x_draw_glyph_string): Use it.
	Draw underline and overline up to the end of line if the face
	extends to the end of line.

	* macterm.c: Likewise.

	* w32term.c: Likewise.

2006-08-24  Nick Roberts  <nickrob@snap.net.nz>
Nick Roberts's avatar
Nick Roberts committed
570 571 572 573

	* buffer.c (Fswitch_to_buffer): Move buffer to front of
	buffer-alist if necessary.

Kim F. Storm's avatar
Kim F. Storm committed
574 575 576 577 578
2006-08-22  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (update_tool_bar): Redisplay toolbar also when only
	number of items changes.

Kim F. Storm's avatar
Kim F. Storm committed
579 580 581 582
2006-08-22  Stefan Monnier  <monnier@iro.umontreal.ca>

	* buffer.c (Fset_buffer_multibyte): Record proper undo entry.

583 584 585 586 587
2006-08-21  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* keyboard.c: Clarify difference between in_sighandler and
	handling_signal.

Kim F. Storm's avatar
Kim F. Storm committed
588 589 590 591 592 593 594
2006-08-21  Kim F. Storm  <storm@cua.dk>

	* macterm.c (x_draw_stretch_glyph_string):
	* w32term.c (x_draw_stretch_glyph_string):
	* xterm.c (x_draw_stretch_glyph_string): It is ok to draw a
	stretch	glyph in left marginal areas on	header and mode lines.

595 596 597 598 599 600
2006-08-21  Kenichi Handa  <handa@m17n.org>

	* keyboard.c (syms_of_keyboard): Docstring of
	Vunread_post_input_method_events and Vunread_input_method_events
	fixed.

601 602 603 604 605
2006-08-20  Chong Yidong  <cyd@stupidchicken.com>

	* keyboard.c (show_help_echo): Preserve mouse movement flag if
	tracking mouse.

606 607 608 609 610 611 612
2006-08-20  Richard Stallman  <rms@gnu.org>

	* xfaces.c (load_pixmap): Add quotes in error message.

	* keyboard.c (Fcurrent_idle_time): New function.
	(syms_of_keyboard): defsubr it.

Nick Roberts's avatar
Nick Roberts committed
613 614 615 616 617
2006-08-18  Nick Roberts  <nickrob@snap.net.nz>

	* window.c (Fset_window_fringes): Do nothing on a tty.
	(Fwindow_fringes): Put ? operator after the line break.

618 619 620 621
2006-08-16  Andreas Schwab  <schwab@suse.de>

	* print.c (debug_output_compilation_hack): Fix return type.

622 623 624 625
2006-08-16  Richard Stallman  <rms@gnu.org>

	* print.c (debug_output_compilation_hack): New function.

626 627 628 629 630
2006-08-16  Kenichi Handa  <handa@m17n.org>

	* fileio.c (choose_write_coding_system): Use LF for end-of-line
	in auto-saving.

631 632 633 634 635
2006-08-15  Chong Yidong  <cyd@stupidchicken.com>

	* keyboard.c (read_char): Don't change idle timer state at all if
	end_time is supplied.

636 637 638 639 640 641 642 643 644
2006-08-15  Kenichi Handa  <handa@m17n.org>

	* coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New arg RET.  If SRC
	is exhausted, return with RET.
	(detect_coding_emacs_mule, detect_coding_iso2022)
	(detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
	(detect_coding_utf_16, detect_coding_ccl): Adjusted for the above
	change.

645 646 647 648 649
2006-08-14  Chong Yidong  <cyd@stupidchicken.com>

	* keyboard.c (read_char): Don't reset idle timers if a time limit
	is supplied.

Kim F. Storm's avatar
Kim F. Storm committed
650 651 652 653 654
2006-08-14  Kim F. Storm  <storm@cua.dk>

	* .gdbinit (pitx): Print iterator position.
	Limit stack dump in case iterator is not initialized.

Eli Zaretskii's avatar
Eli Zaretskii committed
655 656 657 658 659
2006-08-12  Eli Zaretskii  <eliz@gnu.org>

	* frame.c (Fmouse_position, Fmouse_pixel_position)
	(Fset_mouse_position, Fset_mouse_pixel_position): Doc fix.

660 661 662 663
2006-08-11  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xselect.c (Fx_register_dnd_atom): New function.
	(syms_of_xselect): Defsubr it.
Kim F. Storm's avatar
Kim F. Storm committed
664
	(x_handle_dnd_message): Check that message_type is in
665 666 667 668 669 670 671
	dpyinfo->x_dnd_atoms before generating lisp event.

	* xterm.h (struct x_display_info): Add x_dnd_atoms* to keep track
	of drag and drop Atoms.

	* xterm.c (x_term_init): Initialize dpyinfo->x_dnd_atoms*

672 673 674 675 676 677 678 679 680 681 682
2006-08-10  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* keyboard.c: Define in_sighandler.
	(input_available_signal): Set in_sighandler.
	(init_keyboard): Initialize in_sighandler.

	* keyboard.h: Declare in_sighandler.

	* alloc.c (UNBLOCK_INPUT_ALLOC, BLOCK_INPUT_ALLOC): Use in_sighandler
	to check if mutex should be locked or not.

683 684 685 686 687 688
2006-08-09  Richard Stallman  <rms@gnu.org>

	* keyboard.c (keyremap_step): No-op if fkey->parent = nil.
	(read_key_sequence): Always start fkey.start and fkey.end at 0,
	and likewise for keytran.

Kenichi Handa's avatar
Kenichi Handa committed
689 690 691 692 693
2006-08-09  Kenichi Handa  <handa@m17n.org>

	* coding.c (syms_of_coding): Improve the docstring
	file-coding-system-alist.

694 695 696 697
2006-08-07  Andreas Schwab  <schwab@suse.de>

	* puresize.h (BASE_PURESIZE): Increase to 1120000.

698 699 700 701 702 703
2006-08-06  Chong Yidong  <cyd@stupidchicken.com>

	* buffer.c (Vchange_major_mode_hook, Qchange_major_mode_hook): New vars.
	(Fkill_all_local_variables): Use it.
	(syms_of_buffer): Defvar it.

704 705
2006-08-05  Eli Zaretskii  <eliz@gnu.org>

Eli Zaretskii's avatar
Eli Zaretskii committed
706 707 708 709 710 711 712 713
	* w32.c (w32_valid_pointer_p): New function.

	* w32.h: Add prototype for w32_valid_pointer_p.

	* alloc.c: Include w32.h.
	(valid_lisp_object_p) [WINDOWSNT]: Call w32_valid_pointer_p to do
	the job.

714 715 716
	* keyboard.c (kbd_buffer_get_event): Return Qnil when current time
	is exactly equal to end_time, not only when it is past that.

717 718 719 720 721 722
2006-08-04  Chong Yidong  <cyd@stupidchicken.com>

	* keyboard.c (read_char): Rebalance specpdl after receiving jump.

	* process.c: Reapply 2006-08-01 change.

723 724 725 726
2006-08-04  Eli Zaretskii  <eliz@gnu.org>

	* w32fns.c (w32_query_font): Fix last change: use stricmp.

727 728 729 730 731
2006-08-04  Stefan Monnier  <monnier@iro.umontreal.ca>

	* editfns.c (Fsubst_char_in_region): Redo the setup work after running
	the before-change-functions since they may have altered the buffer.

Eli Zaretskii's avatar
Eli Zaretskii committed
732 733 734 735 736
2006-08-04  Ralf Angeli  <angeli@caeruleus.net>

	* w32fns.c (w32_createwindow): Handle -geometry command line option
	and the geometry settings in the Registry.

Kenichi Handa's avatar
Kenichi Handa committed
737 738
2006-08-04  Kenichi Handa  <handa@m17n.org>

739 740
	* w32fns.c (w32_query_font): Compare names by ignoring case.

Kenichi Handa's avatar
Kenichi Handa committed
741 742
	* xterm.c (x_query_font): Compare names by ignoring case.

743 744 745 746 747
2006-08-03  Jason Rumney  <jasonr@gnu.org>

	* w32menu.c (w32_menu_show, w32_dialog_show): Call Fsignal to quit
	when no option selected.

748 749 750 751
2006-08-03  Chong Yidong  <cyd@stupidchicken.com>

	* process.c: Revert last change.

Kim F. Storm's avatar
Kim F. Storm committed
752 753 754 755 756 757 758
2006-08-01  Kim F. Storm  <storm@cua.dk>

	* process.c (wait_reading_process_output_unwind): New function.
	Restores waiting_for_user_input_p to saved value.
	(wait_reading_process_output): Unwind protect waiting_for_user_input_p
	instead of save/restore old value on stack.

Thien-Thi Nguyen's avatar
Thien-Thi Nguyen committed
759 760 761 762
2006-07-30  Thien-Thi Nguyen  <ttn@gnu.org>

	* editfns.c: Undo 2006-06-27 change.

763 764
2006-07-29  Eli Zaretskii  <eliz@gnu.org>

Eli Zaretskii's avatar
Eli Zaretskii committed
765 766 767
	* coding.c (Ffind_operation_coding_system): Revert the change from
	2006-05-29.

768 769
	* alloc.c [WINDOWSNT]: Include fcntl.h, to fix last change.

770 771
2006-07-28  Richard Stallman  <rms@gnu.org>

Thien-Thi Nguyen's avatar
Thien-Thi Nguyen committed
772
	* xfaces.c (lookup_named_face, Fdisplay_supports_face_attributes_p):
773 774 775 776 777 778 779 780 781
	Add conditional aborts for clarity.

	* xdisp.c (update_menu_bar): New arg HOOKS_RUN.  Callers changed.
	Used to avoid running the hooks over and over for each frame.
	(prepare_menu_bars): Pass value from update_menu_bar
	as HOOKS_RUN of next call.

	* keyboard.c (safe_run_hooks_1): Don't crash if Vrun_hooks is nil.

Kim F. Storm's avatar
Kim F. Storm committed
782 783 784 785 786
2006-07-28  Kim F. Storm  <storm@cua.dk>

	* alloc.c (valid_pointer_p): New function (from valid_lisp_object_p).
	(valid_lisp_object_p): Use it to check for valid SUBRP obj.

787 788 789 790 791 792 793 794 795 796 797 798 799 800
2006-07-26  Chong Yidong  <cyd@stupidchicken.com>

	* keyboard.c (read_char): New arg END_TIME specifying timeout.
	All callers changed.  Turn off echoing if END_TIME is non-NULL.
	(kbd_buffer_get_event): New arg END_TIME.

	* lread.c (read_filtered_event): New arg SECONDS to wait until.
	(Fread_char, Fread_event, Fread_char_exclusive): New arg SECONDS.

	* lisp.h: Update read-char, read-event, and read_filtered_event
	prototypes.

	* keyboard.h: Include systime.h.  Update read_char prototype.

801 802 803 804 805 806 807
2006-07-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* alloc.c (find_string_data_in_pure): New function.
	(make_pure_string): Use it to reuse existing string data if possible.

	* puresize.h (BASE_PURESIZE): Decrease to 1102000.

808 809 810 811 812
2006-07-22  Stefan Monnier  <monnier@iro.umontreal.ca>

	* keymap.c (Fdefine_key): If the key binding definition looks like an
	XEmacs-style key sequence, convert it to Emacs's format.

Eli Zaretskii's avatar
Eli Zaretskii committed
813 814 815 816 817 818
2006-07-22  Ralf Angeli  <angeli@caeruleus.net>

	* w32fns.c (w32_createwindow): If `left' and/or `top' frame
	parameters are bound to some values, use that instead of
	CW_USEDEFAULT.

819 820 821 822 823
2006-07-21  Eli Zaretskii  <eliz@gnu.org>

	* w32.c (convert_time): Use explicit long double constants to
	ensure long double arithmetics is used throughout.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
824 825 826 827 828 829 830 831 832
2006-07-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* alloc.c (pure_bytes_used_lisp, pure_bytes_used_non_lisp): New	vars.
	(init_alloc_once): Initialize them.
	(pure_alloc): Allocate non-Lisp objects from the end of pure storage
	without alignment.

	* puresize.h (BASE_PURESIZE): Decrease to 1141000.

Kim F. Storm's avatar
Kim F. Storm committed
833 834 835 836 837
2006-07-18  Francis Litterio  <franl@world.std.com>

	* w32term.c (x_calc_absolute_position): Fix frame positioning
	with negative X/Y coordinates.

838 839 840 841 842 843 844 845 846 847 848 849 850 851 852
2006-07-18  Dan Nicolaescu  <dann@ics.uci.edu>

	* xterm.c (x_connection_closed, x_error_quitter): Mark as NO_RETURN.

	* textprop.c (text_read_only): Likewise.

	* lread.c (end_of_file_error): Likewise.

	* lisp.h (circular_list_error, memory_full, buffer_memory_full):
	Likewise.

	* eval.c (unwind_to_catch): Likewise.

	* buffer.h (buffer_slot_type_mismatch): Likewise.

Kim F. Storm's avatar
Kim F. Storm committed
853 854 855 856 857 858 859 860 861 862 863 864
2006-07-18  Kim F. Storm  <storm@cua.dk>

	Cleanup Fsignal calls that never returns; now only use it for Qquit.

	* eval.c (xsignal): New func.  Like Fsignal, but marked no-return.
	(xsignal0, xsignal1, xsignal2, xsignal3): New no-return functions.
	(signal_error): New no-return function (from xfaces.c).
	(Fthrow): Use xsignal2 instead of Fsignal + abort.
	(error): Use xsignal1 instead of Fsignal + abort.
	(FletX, Flet, grow_specpdl): Use signal_error.
	(Feval, Ffuncall, funcall_lambda): Use xsignal1, xsignal2.

Juanma Barranquero's avatar
Juanma Barranquero committed
865
	* alloc.c (buffer_memory_full, memory_full): Use xsignal.  Remove loop.
Kim F. Storm's avatar
Kim F. Storm committed
866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951
	(list1): New function.

	* lisp.h (list1): Add EXFUN.
	(xsignal, xsignal0, xsignal1, xsignal2, xsignal3, signal_error):
	Add prototypes.  Mark them as no-return.

	* buffer.c (Fbuffer_local_value, Fbarf_if_buffer_read_only):
	Use xsignal1.

	* callint.c (check_mark): Use xsignal0.

	* casefiddle.c (casify_object): wrong_type_argument is no-return.

	* cmds.c (Fforward_char, Fdelete_char): Use xsignal0.

	* coding.c (Fcheck_coding_system): Use xsignal1.  Remove loop.
	(Fdefine_coding_system_internal): Use xsignal1.

	* data.c (circular_list_error): Use xsignal.
	(wrong_type_argument): Use xsignal2.  Don't care about return value.
	(args_out_of_range, args_out_of_range_3): Use xsignal2, xsignal3.
	Remove loop around Fsignal.
	(indirect_variable, Fsymbol_value, set_internal, Fdefault_value)
	(indirect_function, Findirect_function, Fstring_to_number)
	(Fmakunbound, Ffmakunbound, Fsymbol_function, Ffset): Use xsignal1.
	(arith_driver, float_arith_driver, Frem, Fmod, arith_error):
	Use xsignal0.

	* doc.c (Fdocumentation): Use xsignal1.

	* editfns.c (region_limit, Fget_internal_run_time): Use xsignal0.

	* fileio.c (report_file_error): Use xsignal.
	(barf_or_query_if_file_exists, Fcopy_file, Fdelete_file)
	(Finsert_file_contents): Use xsignal2.
	(syms_of_fileio): Use list2, list3.

	* floatfns.c (arith_error, range_error, domain_error): Use xsignal2.
	(range_error2, domain_error2): Use xsignal3.
	(rounding_driver, fmod_float): Use xsignal0.
	(float_error): Use xsignal1.
	(matherr): Use xsignal.

	* fns.c (Flength): wrong_type_argument is no-return.
	(hashfn_user_defined, Fmake_hash_table): Use signal_error.
	(Fmd5): Use xsignal1.

	* frame.c (x_set_line_spacing, x_set_screen_gamma): Use signal_error.

	* keyboard.c (recursive_edit_1): Use xsignal1.

	* keymap.c (Fmap_keymap): Use xsignal1.

	* lread.c (Fload): Use xsignal2, signal_error.
	(end_of_file_error): Use xsignal0, xsignal1.
	(read0): Use xsignal1.
	(invalid_syntax): New error function marked no-return.
	(read_integer, read1, read_list): Use it.

	* macselect.c (x_get_local_selection): Use signal_error.

	* msdos.c (Fmsdos_set_mouse_buttons): Use xsignal2.

	* search.c (compile_pattern_1): Use xsignal1.
	(signal_failure): Remove (was only called once).
	(search_command): Use xsignal1 instead of signal_failure.

	* syntax.c (scan_lists): Use xsignal3.

	* textprop.c (text_read_only): Use xsignal0, xsignal1.

	* unexsol.c (unexec): Use xsignal.

	* window.c (window_scroll_pixel_based, window_scroll_line_based):
	Use xsignal0.

	* xfaces.c (signal_error): Move to eval.c.
	(resolve_face_name): Use xsignal1.

	* xfns.c (x_decode_color): Use signal_error.

	* xselect.c (x_get_local_selection, copy_multiple_data)
	(x_get_window_property_as_lisp_data)
	(lisp_data_to_selection_data, CHECK_CUT_BUFFER)
	(Fx_get_cut_buffer_internal): Use signal_error.

952 953 954 955
2006-07-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c (XTread_socket): Undo previous change.

956 957 958 959 960 961 962 963 964 965
2006-07-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c (keycode_to_xkeysym): Remove function.  All uses now
	directly lookup keycode_to_xkeysym_table.
	[USE_MAC_TSM] (mac_handle_text_input_event): Don't construct
	ASCII_KEYSTROKE_EVENT for non-zero keycode_to_xkeysym_table entries.
	(XTread_socket): Use character codes to construct keypad key events.
	(mac_initialize_display_info) [MAC_OSX]: Use CGDisplaySamplesPerPixel.
	(x_delete_display): Apply 2006-07-04 change for xterm.c.

966 967 968 969 970 971 972 973
2006-07-17  Richard Stallman  <rms@gnu.org>

	* keyboard.c (Vcommand_error_function): New variable.
	(syms_of_keyboard): Defvar it.
	(cmd_error_internal): Simplify, and handle Vcommand_error_function.

	* dispnew.c (init_display): Mention DISPLAY as well as TERM in err msg.

Kim F. Storm's avatar
Kim F. Storm committed
974 975 976 977 978 979 980 981 982
2006-07-17  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (handle_single_display_spec): Ensure the right value of
	it->position is saved by push_it.
	(pop_it): Restore it->object for GET_FROM_BUFFER and GET_FROM_STRING.
	(reseat_1): Don't setup it->object twice.
	(set_iterator_to_next): No need to set it->object after pop_it.
	(move_it_to): Explicitly check to see if last move reached to_charpos.

983 984 985 986
2006-07-17  Thien-Thi Nguyen  <ttn@gnu.org>

	* xdisp.c (display_mode_line): Preserve match data.

Kim F. Storm's avatar
Kim F. Storm committed
987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002
2006-07-14  Kim F. Storm  <storm@cua.dk>

	* w32.c (pfn_WSACreateEvent, pfn_WSACloseEvent): New func ptrs.
	(init_winsock): Load them.  Use ws2_32.dll.
	(sys_listen): Undo last change.  Just set FILE_LISTEN flag.
	(sys_accept): Undo last change.  Instead, set child status to
	STATUS_READ_ACKNOWLEDGED and reset char_avail event so next
	sys_select will wakeup the reader thread.
	(_sys_wait_accept): New function used by reader thread to wait for
	an incoming connection on a server socket.

	* w32.h (_sys_read_ahead, _sys_wait_accept): Add prototypes.

	* w32proc.c (reader_thread): Use _sys_wait_accept to wait on a
	server socket (FILE_LISTEN flag).

1003 1004 1005 1006
2006-07-14  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* sound.c (alsa_init): Call snd_pcm_close after successful snd_pcm_open.

Kim F. Storm's avatar
Kim F. Storm committed
1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018
2006-07-14  Kim F. Storm  <storm@cua.dk>

	* w32.c: Fix high cpu load for server sockets.
	(pfn_WSAEventSelect): New function ptr.
	(init_winsock): Load it.
	(sys_listen): Set FILE_LISTEN flag. Set event mask for socket's
	char_avail event object to FD_ACCEPT.
	(sys_accept): Check FILE_LISTEN flag.  Set event mask on new
	socket's char_avail event object to FD_READ|FD_CLOSE.

	* w32.h (FILE_LISTEN): New filedesc flag value.

Kim F. Storm's avatar
Kim F. Storm committed
1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032
2006-07-13  Kim F. Storm  <storm@cua.dk>

	* bytecode.c (Fbyte_code): Use CAR, CDR for Bcar, Bcdr.
	Use CAR_SAFE, CDR_SAFE for Bcar_safe, Bcdr_safe.
	Simplify loops and use CAR for Bnth and Belt.

	* data.c (Findirect_function): Optimize for no indirection.

	* eval.c (Fthrow): Remove loop around Fsignal.
	(Feval, Fapply, Ffuncall): Optimize for no function indirection.
	Use original function name in all signaled errors.
	Simplify Fsignal calls (no return).
	(funcall_lambda): Simplify Fsignal calls (no return).

1033 1034 1035 1036 1037
2006-07-13  Andreas Schwab  <schwab@suse.de>

	* syntax.c (scan_sexps_forward): Use EMACS_INT for out_bytepos and
	out_charpos.

1038 1039 1040 1041 1042
2006-07-13  Kenichi Handa  <handa@m17n.org>

	* editfns.c (Fformat): Fix calculation of text property positions
	of format string.

Kim F. Storm's avatar
Kim F. Storm committed
1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099
2006-07-12  Kim F. Storm  <storm@cua.dk>

	* lisp.h (CHECK_TYPE): New macro for generic type checking.
	(CAR_SAFE, CDR_SAFE): New macros.
	(ARRAYP, CHECK_ARRAY): New macros.
	(CHECK_VECTOR_OR_STRING, CHECK_SUBR): New macros.
	(CHECK_WINDOW_CONFIGURATION): New macro.
	(CHECK_LIST_CONS, CHECK_LIST_END): New checks for list traversal.
	(CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
	(CHECK_STRING, CHECK_STRING_CAR, CHECK_CONS, CHECK_SYMBOL)
	(CHECK_CHAR_TABLE, CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE)
	(CHECK_BUFFER, CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS)
	(CHECK_NUMBER, CHECK_NATNUM, CHECK_MARKER, CHECK_OVERLAY)
	(CHECK_NUMBER_COERCE_MARKER, CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
	(CHECK_NUMBER_OR_FLOAT_COERCE_MARKER): Use CHECK_TYPE.

	* category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET):
	* frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Use CHECK_TYPE.

	* callint.c (Fcall_interactively):
	* casefiddle.c (casify_object):
	* editfns.c (general_insert_function):
	* fns.c (Flength, Felt, Ffillarray):
	* data.c (Fcar, Fcdr): Remove loop around wrong_type_argument.

	* data.c (wrong_type_argument): Remove loop around Fsignal.
	(Farrayp, Fsequencep): Use ARRAYP.
	(Fcar): Use CAR.
	(Fcar_safe): Use CAR_SAFE.
	(Fcdr): Use CDR.
	(Fcdr_safe): Use CDR_SAFE.
	(Fsetcar, Fsetcdr): Use CHECK_CONS.
	(Fsubr_arity, Fsubr_name): Use CHECK_SUBR.
	(Faset): Use CHECK_ARRAY.

	* fns.c (Felt): Use CHECK_ARRAY.
	(concat): Use CHECK_NUMBER.
	(Fsubstring, substring_both): Use CHECK_VECTOR_OR_STRING.
	(Fmemq): Use CHECK_LIST.
	(Fassq, Fassoc, Frassq, Frassoc): Use CAR.
	(assq_no_quit): Use CAR_SAFE.
	(Fnthcdr, Fmember, Fdelq, Fdelete, Fnreverse, Fnconc):
	Use CHECK_LIST_CONS.
	(Freverse, Fplist_get, Flax_plist_get): Use CHECK_LIST_END.

	* bytecode.c (Fbyte_code): Use CHECK_VECTOR.

	* casetab.c (check_case_table):
	* category.c (check_category_table):
	* marker.c (Fcopy_marker):
	* syntax.c (check_syntax_table):
	* xfaces.c (load_pixmap): Use CHECK_TYPE.

	* fns.c (Fcopy_sequence, concat):
	* fringe.c (Fdefine_fringe_bitmap):
	* lread.c (check_obarray): Cleanup wrong_type_argument use.

Kim F. Storm's avatar
Kim F. Storm committed
1100 1101
	* keyboard.c (access_keymap_keyremap): Use ARRAYP.

Kim F. Storm's avatar
Kim F. Storm committed
1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113
	* keymap.c (Fdefine_key, Flookup_key):
	* macros.c (Fstart_kbd_macro): Use CHECK_VECTOR_OR_STRING.

	* mac.c (Fmac_get_preference): Use CHECK_LIST_END.

	* search.c (Fset_match_data): Use CHECK_LIST.

	* sunfns.c (sun_item_create): Use CHECK_LIST_CONS.

	* window.c (Fwindow_configuration_frame, Fset_window_configuration):
	(compare_window_configurations): Use CHECK_WINDOW_CONFIGURATION.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129
2006-07-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* Makefile.in (dired.o, editfns.o, fileio.o): Depend on blockinput.h.

	* dired.c: Include blockinput.h.
	(Ffile_attributes): Add BLOCK_INPUT around getpwuid/getgrgid.

	* editfns.c: Include blockinput.h.
	(Fuser_login_name, Fuser_full_name): Add BLOCK_INPUT around
	getpwuid/getpwnam.

	* fileio.c: Include blockinput.h.
	(Fexpand_file_name, search_embedded_absfilename): Add BLOCK_INPUT
	around getpwnam.
	(search_embedded_absfilename): Remove spurious xfree.

Kim F. Storm's avatar
Kim F. Storm committed
1130 1131 1132 1133 1134
2006-07-11  Kim F. Storm  <storm@cua.dk>

	* dispnew.c (sit_for): Reduce number of args from 5 to 3.
	Now just one TIMEOUT arg that can be a Lisp float or Lisp int.
	Combine args DISPLAY and INITIAL_DISPLAY into one arg DO_DISPLAY.
1135
	Signal error if TIMEOUT is not a number.
Kim F. Storm's avatar
Kim F. Storm committed
1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151
	Undo 2006-06-14 change for non-preemptive display if TIMEOUT < 0.
	The rework of sit_for args also fixes several incorrect Qt args
	which should have been 1.
	(Fredisplay): Pass 1 instead of Qt to swallow_events and
	detect_input_pending_run_timers.

	* lisp.h (sit_for): Update prototype.
	(Fredisplay): Add EXFUN.

	* dispextern.h (sit_for): Remove prototype.

	* callint.c (Fcall_interactively):
	* minibuf.c (temp_echo_area_glyphs):
	* keyboard.c (command_loop_1, read_char, Fexecute_extended_command):
	* fileio.c (Fdo_auto_save): Update/simplify sit_for calls.

1152 1153 1154 1155
2006-07-11  Stefan Monnier  <monnier@iro.umontreal.ca>

	* syntax.c (forw_comment): Also use EMACS_INT for buffer positions.

Kim F. Storm's avatar
Kim F. Storm committed
1156 1157
2006-07-11  Kim F. Storm  <storm@cua.dk>

Romain Francoise's avatar
Romain Francoise committed
1158
	* dispnew.c (Fredisplay): Add FORCE argument to force redisplay when
Kim F. Storm's avatar
Kim F. Storm committed
1159 1160 1161
	input is available.  Fix test for redisplay_dont_pause non-nil.
	Specbind redisplay-dont-pause to t if FORCE non-nil.

1162 1163 1164 1165 1166 1167 1168
2006-07-10  Chong Yidong  <cyd@stupidchicken.com>

	* puresize.h (BASE_PURESIZE): Increment to 1211000.

	* dispnew.c (Fredisplay): New function, equivalent to (sit-for 0).
	(Fsit_for): Function deleted.

1169 1170
	* keyboard.c (command_loop_1, Fexecute_extended_command):
	Call sit_for instead of Fsit_for.
1171 1172 1173

	* minibuf.c (temp_echo_area_glyphs): Likewise.

1174 1175 1176
2006-07-09  Stefan Monnier  <monnier@iro.umontreal.ca>

	* syntax.c (Fforward_comment): Revert the reversion.
1177
	(back_comment, scan_lists): Also use EMACS_INT for buffer positions.
1178

1179 1180 1181 1182
2006-07-09  John Paul Wallington  <jpw@pobox.com>

	* syntax.c (Fforward_comment): Revert previous change.

Kim F. Storm's avatar
Kim F. Storm committed
1183 1184 1185 1186
2006-07-09  Kim F. Storm  <storm@cua.dk>

	* window.c (Fforce_window_update): Doc fix.

1187 1188 1189 1190 1191
2006-07-08  Stephen Gildea  <gildea@stop.mail-abuse.org>

	* fileio.c (do_auto_save_make_dir): Make the auto-save-list-file
	directory unreadable for better user privacy.

1192 1193
2006-07-07  Stefan Monnier  <monnier@iro.umontreal.ca>

1194 1195
	* syntax.c (Fforward_comment): Fix int-32 vs EMACS_INT-64 mixup.

1196 1197
	* lread.c (read_filtered_event): Remove `register' qualifier because it
	causes compilation problem with gcc-4.0.2-20051125 on amd64.
1198 1199
	(readevalloop): Remove unused var `bpos'.
	Yet another int/Lisp_Object mixup (YAILOM).
1200

1201 1202 1203 1204 1205
2006-07-07  Eli Zaretskii  <eliz@gnu.org>

	* keyboard.c (Fexecute_extended_command): Mention the argument
	PREFIXARG in the doc string.

Kim F. Storm's avatar
Kim F. Storm committed
1206 1207 1208 1209
2006-07-07  Kim F. Storm  <storm@cua.dk>

	* fringe.c (Fdefine_fringe_bitmap): Doc fix.

1210 1211
2006-07-05  Chong Yidong  <cyd@stupidchicken.com>

1212 1213 1214
	* insdel.c (prepare_to_modify_buffer): For an indirect buffer, do
	clash detection using the base buffer.

1215 1216
	* puresize.h (BASE_PURESIZE): Increment to 1210500.

Kim F. Storm's avatar
Kim F. Storm committed
1217 1218 1219 1220
2006-07-04  Kim F. Storm  <storm@cua.dk>

	* xterm.c (x_delete_display): Don't free or derefence NULL pointers.

Kenichi Handa's avatar
Kenichi Handa committed
1221 1222 1223 1224 1225
2006-07-04  Kenichi Handa  <handa@m17n.org>

	* fontset.c (Fset_overriding_fontspec_internal): Check if we need
	to update Voverriding_fontspec_alist.

1226 1227 1228 1229 1230 1231 1232 1233 1234 1235
2006-07-03  Richard Stallman  <rms@gnu.org>

	* xfns.c (Fx_create_frame): Move unwind_create_frame setup down.

	* xfaces.c (Fface_attribute_relative_p): Doc fix.

	* textprop.c (Fget_char_property_and_overlay): Doc fix.

	* eval.c (Fdefvaralias): Doc fix.

Kim F. Storm's avatar
Kim F. Storm committed
1236 1237 1238 1239
2006-07-03  Kim F. Storm  <storm@cua.dk>

	* dispnew.c (sit_for): Fix preempt condition.

1240 1241 1242 1243 1244
2006-07-02  Stefan Monnier  <monnier@iro.umontreal.ca>

	* lread.c (read_filtered_event): Treat select-window just like
	switch-frame.

Kim F. Storm's avatar
Kim F. Storm committed
1245 1246 1247 1248 1249 1250 1251 1252 1253 1254
2006-07-02  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (display_tool_bar_line): Skip glyphs which are too big
	to ever fit the tool-bar,
	(MAX_FRAME_TOOL_BAR_HEIGHT): New macro.
	(tool_bar_lines_needed): Use unused mode-line row as temp_row.
	(redisplay_tool_bar): Only clear desired matrix if we actually
	change the tool-bar window height.  Only try to make the tool-bar
	window bigger if there is actually room for it.

Eli Zaretskii's avatar
Eli Zaretskii committed
1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266
2006-06-30  Ralf Angeli  <angeli@caeruleus.net>

	* w32term.c (x_make_frame_visible): Use SystemParametersInfo with
	SPI_GETWORKAREA to find the dimensions of the screen work area,
	and adjust vertical position of the frame in order to avoid being
	covered by the task bar.

	* w32fns.c (w32_createwindow): Use CW_USEDEFAULT instead of
	f->left_pos and SH_SHOW instead of f->top_pos in the call to
	CreateWindow.  Record the actual position in f->left_pos and
	f->top_pos.

1267 1268 1269 1270 1271
2006-06-30  John Paul Wallington  <jpw@pobox.com>

	* w32console.c (syms_of_ntterm) <w32-use-full-screen-buffer>:
	Doc fix - default value has changed.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296
2006-06-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* mac.c [!TARGET_API_MAC_CARBON]: Don't include FixMath.h or Scrap.h.

	* macfns.c (Fx_create_frame): Apply 2006-06-24 change for xfns.c.

	* macgui.h (USE_MAC_TSM) [TARGET_API_MAC_CARBON]: Set default to 1.

	* macterm.c (Qeql): Add extern.
	(x_set_mouse_pixel_position) [MAC_OSX]: Use CGWarpMouseCursorPosition.
	(fm_style_face_attributes_alist) [USE_ATSUI]: New variable.
	(syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
	Change keys of Vmac_atsu_font_table from strings to numbers.
	(fm_style_to_face_attributes) [USE_ATSUI]: New function.
	(init_font_name_table) [USE_ATSUI]: Use it.
	(saved_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
	(syms_of_macterm) [USE_MAC_TSM]: Initialize and staticpro it.
	[USE_MAC_TSM] (mac_tsm_resume): Restore script and language codes
	only when saved_ts_script_language_on_focus coincides with
	Vmac_ts_script_language_on_focus.
	[USE_MAC_TSM] (mac_tsm_suspend): Save value of
	Vmac_ts_script_language_on_focus to saved_ts_script_language_on_focus.
	(XTread_socket) [USE_MAC_TSM]: Add Mac OS Classic support.
	[USE_MAC_TSM] (mac_handle_text_input_event, init_tsm): Likewise.

1297 1298 1299 1300 1301 1302
2006-06-27  Chong Yidong  <cyd@stupidchicken.com>

	* editfns.c (Fdelete_field, Ffield_string, Ffield_beginning)
	(Ffield_string_no_properties, Ffield_end): Mention
	args-out-of-range error condition in docstring.

Kim F. Storm's avatar
Kim F. Storm committed
1303 1304 1305 1306
2006-06-27  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (handle_composition_prop): Set stop_charpos before push_it.

Kim F. Storm's avatar
Kim F. Storm committed
1307 1308 1309 1310 1311
2006-06-25  Kim F. Storm  <storm@cua.dk>

	* s/gnu-linux.h (SIGNALS_VIA_CHARACTERS): Define for Linux kernel
	version 2.4 and later.

1312 1313 1314 1315 1316
2006-06-24  Chong Yidong  <cyd@stupidchicken.com>

	* xfns.c (Fx_create_frame): Set font parameter directly instead of
	using x_default_parameter, since x_get_args clears the parm alist.

Eli Zaretskii's avatar
Eli Zaretskii committed
1317 1318 1319 1320 1321
2006-06-24  Eli Zaretskii  <eliz@gnu.org>

	* dired.c (directory_files_internal) [WINDOWSNT]: Find files
	case-insensitively.

Eli Zaretskii's avatar
Eli Zaretskii committed
1322 1323 1324 1325 1326
2006-06-24  Aidan Kehoe  <kehoea@parhasard.net>

	* lread.c (read_escape): When an unknown Unicode code point is
	encountered as a string or character escape, signal an error.

Kim F. Storm's avatar
Kim F. Storm committed
1327 1328
2006-06-23  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
1329 1330
	* .gdbinit (pitx): Dump iterator stack.

Kim F. Storm's avatar
Kim F. Storm committed
1331 1332 1333
	* xdisp.c (handle_composition_prop): Push iterator on stack.
	(set_iterator_to_next): Pop iterator at end of composition.

Eli Zaretskii's avatar
Eli Zaretskii committed
1334 1335 1336 1337 1338 1339
2006-06-23  Martin Rudalics  <rudalics@gmx.at>

	* fileio.c (Frename_file) [DOS_NT]: Don't try to move directory to
	itself on DOS_NT platforms, if the old and new names are identical
	but for the letter-case.

Kim F. Storm's avatar
Kim F. Storm committed
1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350
2006-06-21  Kim F. Storm  <storm@cua.dk>

	* dispextern.h (struct it): Add `position' member to iterator stack.
	Rename `pos' member to `current'.  Rearrange and add comments.

	* xdisp.c (handle_stop): Set it->ignore_overlay_strings_at_pos_p
	if  we get any overlays.
	(set_cursor_from_row): Don't clobber `end' if we rescan from
	start_string.
	(push_it, pop_it): Save it->position.

1351 1352 1353 1354 1355 1356 1357
2006-06-19  Richard Stallman  <rms@gnu.org>

	* window.c (size_window): New arg FIRST_ONLY.  All callers changed.
	(adjust_window_trailing_edge): Specially compute FIRST_PARALLEL
	for the case of a top-level window and the following minibuffer.
	Don't exit because of no `next' when there is a parent.
	Use the FIRST_ONLY feature when resizing following windows.
Romain Francoise's avatar
Romain Francoise committed
1358

1359 1360
	* syntax.c (init_syntax_once): Give most control chars' syntax Spunct.

Kim F. Storm's avatar
Kim F. Storm committed
1361 1362 1363 1364 1365
2006-06-17  Kim F. Storm  <storm@cua.dk>

	* dispnew.c (update_frame): Check for input pending on entry.
	(update_window, update_frame_1): Break loop if input is detected.

1366 1367 1368 1369 1370 1371 1372 1373 1374
2006-06-16  Francis Litterio  <flitterio@gmail.com>

	* xterm.c (x_check_expected_move, handle_one_xevent)
	(x_set_offset, x_check_fullscreen): Extensive changes to make
	frame positioning deterministic under X.

	* xterm.h (x_output): Added members left_before_move and
	top_before_move.  Removed members expected_left and expected_top.

Kim F. Storm's avatar
Kim F. Storm committed
1375 1376
2006-06-16  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392
	* dispextern.h (struct it): Add union to iterator stack to save
	image, composition, and stretch specific paramters.

	* xdisp.c (next_overlay_string): Fix assert.
	(push_it, pop_it): Handle composition and stretch specific values.
	Only handle it->slice in image (for now).
	(back_to_previous_visible_line_start): Continue search if newline is
	part of a compisition.  Simplify.
	(reseat_1): Set it->object to buffer.
	(set_iterator_to_next): Set it->object to string or buffer, when
	setting it->method to GET_FROM_STRING or GET_FROM_BUFFER.
	(next_element_from_composition): Set it->object to buffer if not
	from string.
	(set_cursor_from_row): Only save start of string if not already
	done to handle multiple strings in a row.

Kim F. Storm's avatar
Kim F. Storm committed
1393 1394 1395 1396 1397
	* .gdbinit (pitx): Show composition parameters.
	(pgx, pg): New commands to print a glyph structure.
	(pgi, pgn): New commands to print specific/next glyph.
	(pgrowx, pgrow): New commands to print all glyphs in a row.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411
2006-06-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macfns.c (Fx_display_mm_height, Fx_display_mm_width)
	[MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use CGDisplayScreenSize.

	* macterm.c (do_app_resume, do_app_suspend): Remove functions.
	(mac_tsm_resume, mac_tsm_suspend) [USE_MAC_TSM]: New functions.
	(mac_handle_window_event, XTread_socket) [USE_MAC_TSM]: Use them.
	(Vmac_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
	(syms_of_macterm) [USE_MAC_TSM]: Defvar it.
	(saved_ts_language, saved_ts_component) [USE_MAC_TSM]: New variables.
	(mac_initialize_display_info) [MAC_OSX]: Use Quartz Display
	Services functions to get size of main display in pixels.

1412 1413
2006-06-14  Chong Yidong  <cyd@stupidchicken.com>

1414 1415
	* xdisp.c (back_to_previous_visible_line_start):
	Reset it->continuation_lines_width.
1416

1417 1418 1419 1420 1421 1422 1423 1424 1425
2006-06-14  Richard Stallman  <rms@gnu.org>

	* eval.c (Fdefconst): Mark variable as risky.

	* callproc.c (Fcall_process): Doc fix.

	* window.c (adjust_window_trailing_edge): Don't break out of the loop
	because there's no next window, if there are parallel windows.
	Do break out when WINDOW is nil.
Kim F. Storm's avatar
Kim F. Storm committed
1426

Kim F. Storm's avatar
Kim F. Storm committed
1427 1428
2006-06-14  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454
	* dispextern.h (IT_STACK_SIZE): New macro specifying size of
	iterator stack (instead of hardcoded number).  Increase from 2 to
	4 to make room for propertized overlay strings before and after a
	display string, image or composition.
	(struct it): Add image_id and method members to iterator stack.

	* xdisp.c (init_from_display_pos): Don't set it->method and
	overlay_string_index after pop_it.  Add asserts.
	(handle_stop): Look for overlay strings around a display string,
	image, or composition.  Handle properties on those strings.
	(next_overlay_string): Don't set string, pos or method after pop_it.
	(get_overlay_strings_1): Split from get_overlay_strings; don't
	modify it if no overlay strings are found.
	(get_overlay_strings): Use get_overlay_strings_1.  Always set
	it->string and it->method.
	(push_it): Push it->image_id and it->method.  Push it->object
	instead of it->string if method is GET_FROM_IMAGE.
	(pop_it): Pop it->image_id and it->method.  Ppo it->object
	instead of it->string if method is GET_FROM_IMAGE.
	Reset it->current.string_pos if popped it->string is nil.
	(reseat_1): Remove comment dated 19 May 2003.  It expressed doubt
	whether a given change was correct; but the change is correct.
	Clear it->string_from_display_prop_p.
	(set_iterator_to_next): Rely on it->method and it->image_id from
	iterator stack, instead of setting them explicitly after pop_it.

Kim F. Storm's avatar
Kim F. Storm committed
1455 1456 1457 1458
	* dispnew.c (sit_for): Undo 2006-06-01 change.  Instead, a
	negative time forces redisplay even when input is available.
	(Fsit_for): Doc fix.

Kim F. Storm's avatar
Kim F. Storm committed
1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471
2006-06-13  Kim F. Storm  <storm@cua.dk>

	* dispnew.c: Modify preemptive redisplay to be based on periodic
	checks for input.
	(PERIODIC_PREEMPTION_CHECKING): Define to 1 iff EMACS_HAS_USECS.
	(Vredisplay_preemption_period): New variable.
	(syms_of_display): DEFVAR_LISP and initialize it.
	(preemption_period, preemption_next_check): New variables.
	(update_frame, update_single_window): Initialize them based on
	Vredisplay_preemption_period if !force_p.
	(update_window, update_frame_1): Use them to determine when to
	check for input.

Eli Zaretskii's avatar
Eli Zaretskii committed
1472 1473 1474 1475 1476 1477 1478
2006-06-03  Aidan Kehoe  <kehoea@parhasard.net>

	* lread.c (read_escape): Provide a Unicode character escape
	syntax; \u followed by exactly four or \U followed by exactly
	eight hex digits in a comment or string is read as a Unicode
	character with that code point.

1479 1480 1481 1482 1483
2006-06-09  Eli Zaretskii  <eliz@gnu.org>

	* window.c (window_scroll_pixel_based): Signal "Beginning of
	buffer" when scroll-down at the beginning of an empty buffer.

1484 1485
2006-06-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

1486 1487
	* macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
	Exclude 0x7f from ASCII range.
1488

Jason Rumney's avatar
Jason Rumney committed
1489 1490 1491 1492 1493 1494 1495 1496 1497 1498
2006-06-05  Jason Rumney  <jasonr@gnu.org>

	* w32term.c (w32_set_scroll_bar_thumb, x_scroll_bar_create)
	(w32_set_vertical_scroll_bar, w32_scroll_bar_handle_click)
	(x_scroll_bar_report_motion): Remove workarounds for
	versions of Windows NT < 3.51.
	[!SIF_ALL]: Remove.
	(pfnSetScrollInfo, pfnGetScrollInfo): Remove.
	(w32_initialize): Don't dynamically load Get/SetScrollInfo.

1499 1500 1501 1502 1503
2006-06-04  David Kastrup  <dak@gnu.org>

	* dispnew.c: Mention `redisplay-dont-pause' in doc string of
	`sit-for'.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531
2006-06-03  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macfns.c (x_set_icon_name): Apply 2006-06-02 change for xfns.c.

	* macgui.h (USE_MAC_TSM): Set default to 1 on Mac OS X.

	* macterm.c (tsm_document_id) [USE_MAC_TSM]: New variable.
	(Qtext_input, Qupdate_active_input_area, Qunicode_for_key_event)
	[USE_MAC_TSM]: Likewise.
	(syms_of_macterm) [USE_MAC_TSM]: Intern and staticpro them.
	(Qbefore_string) [USE_MAC_TSM]: Add extern.
	(do_app_resume, do_app_suspend) [USE_MAC_TSM]: Call
	ActivateTSMDocument/DeactivateTSMDocument.
	(mac_store_event_ref_as_apple_event): Call mac_post_mouse_moved_event.
	(mac_handle_window_event) [USE_MAC_TSM]: Handle
	kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
	(mac_handle_text_input_event) [USE_MAC_TSM]: New function.
	(install_window_handler) [USE_MAC_TSM]: Install it.  Register
	kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
	(keycode_to_xkeysym_table): Add entry for f16.
	(XTread_socket) [USE_MAC_TSM]: Set/reset read_socket_inev
	before/after passing keystroke event to toolbox dispatcher.
	(init_tsm) [USE_MAC_TSM]: New function.
	(mac_initialize) [USE_MAC_TSM]: Call it.
	(Vmac_ts_active_input_overlay) [USE_MAC_TSM]: New defvar.

	* macterm.h (EVENT_PARAM_TEXT_INPUT_SEQUENCE_NUMBER): New enumerator.

1532 1533 1534 1535 1536 1537
2006-06-02  John Paul Wallington  <jpw@gnu.org>

	* xfns.c (x_set_name_internal): Set icon to `text', derived from
	name, when frame's icon_name isn't a string rather than only when
	it is nil.

1538 1539 1540 1541 1542
2006-06-03  Eli Zaretskii  <eliz@gnu.org>

	* w32fns.c (x_set_icon_name): Don't use arg if it's not a string
	and not nil.

1543 1544 1545 1546 1547
2006-06-02  Chong Yidong  <cyd@stupidchicken.com>

	* xfns.c (x_set_icon_name): No-op if arg is non-nil and not a
	string.

1548 1549 1550 1551 1552 1553 1554
2006-06-02  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* xdisp.c (next_element_from_composition): Set it->object to
	it->string if composition is coming from string.
	(set_cursor_from_row): Don't return 0 unless row displays a
	continued line.
	(dump_glyph): Dump composite glyph.
Romain Francoise's avatar
Romain Francoise committed
1555

1556 1557 1558 1559
2006-06-02  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c (menu_nav_ended): Check that menubar_widget is not NULL.

1560 1561 1562 1563
2006-06-01  Richard Stallman  <rms@gnu.org>

	* window.c (Fsplit_window): Doc fix.

Kim F. Storm's avatar
Kim F. Storm committed
1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576
2006-06-01  Micha,Ak(Bl Cadilhac  <michael.cadilhac@lrde.org>

	* process.c (deleted_pid_list): New variable to store the pids
	of deleted processes.  Declare it only if SIGCHLD is defined.
	(init_process): Initialize it.
	(syms_of_process): Staticpro it.
	(Fdelete_process): Add pid of the deleted process to it.  Check after
	the addition and before the kill if the process is already stopped,
	in which case it is deleted from the list and not killed.
	(sigchld_handler): Define it only if SIGCHLD is.  Search the process
	that signaled Emacs in `deleted_pid_list' before `Vprocess_alist'.
	Original idea by Stefan Monnier.

Kim F. Storm's avatar
Kim F. Storm committed
1577 1578 1579 1580 1581
2006-06-01  Kim F. Storm  <storm@cua.dk>

	* dispnew.c (sit_for): Perform redisplay even if input is pending
	when redisplay-dont-pause is non-nil.

1582 1583 1584 1585 1586
2006-06-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c (mac_handle_visibility_change): Set buf.arg to Qnil.
	(XTread_socket): Remove obsolete comment.

1587 1588 1589 1590 1591
2006-06-01  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xmenu.c (syms_of_xmenu): Make accelerate-menu an alias for
	menu-bar-open.

1592 1593 1594 1595 1596 1597 1598
2006-06-01  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xmenu.c (Fmenu_bar_open, syms_of_xmenu): Change menu-bar-start to
	menu-bar-open.

	* gtkutil.c (menu_nav_ended): Change x-menu-bar-start to menu-bar-open.

Juri Linkov's avatar
Juri Linkov committed
1599 1600 1601 1602 1603 1604 1605
2006-05-31  Juri Linkov  <juri@jurta.org>

	* minibuf.c (Vhistory_add_new_input): New variable.
	(read_minibuf): Use it.
	(syms_of_minibuf) <history-add-new-input>: New Lisp variable.
	(syms_of_minibuf) <history-delete-duplicates>: Doc fix.

Kim F. Storm's avatar
Kim F. Storm committed
1606 1607 1608 1609 1610 1611
2006-05-31  Kim F. Storm  <storm@cua.dk>

	* process.c (select_wrapper): Add wrapper around select to work around
	"incomplete backtrace" bug in gdb 5.3, when emacs is stopped inside
	select called from wait_reading_process_output.

Andreas Schwab's avatar
.  
Andreas Schwab committed
1612 1613 1614 1615
2006-05-30  Andreas Schwab  <schwab@suse.de>

	* xmenu.c (Fmenu_bar_start): Return a value.

1616 1617 1618 1619
2006-05-30  Richard Sta