ChangeLog 874 KB
Newer Older
1 2 3 4
2006-07-07  Stefan Monnier  <monnier@iro.umontreal.ca>

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

8 9 10 11 12
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
13 14 15 16
2006-07-07  Kim F. Storm  <storm@cua.dk>

	* fringe.c (Fdefine_fringe_bitmap): Doc fix.

17 18
2006-07-05  Chong Yidong  <cyd@stupidchicken.com>

19 20 21
	* insdel.c (prepare_to_modify_buffer): For an indirect buffer, do
	clash detection using the base buffer.

22 23
	* puresize.h (BASE_PURESIZE): Increment to 1210500.

Kim F. Storm's avatar
Kim F. Storm committed
24 25 26 27
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
28 29 30 31 32
2006-07-04  Kenichi Handa  <handa@m17n.org>

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

33 34 35 36 37 38 39 40 41 42
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
43 44 45 46
2006-07-03  Kim F. Storm  <storm@cua.dk>

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

47 48 49 50 51
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
52 53 54 55 56 57 58 59 60 61
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
62 63 64 65 66 67 68 69 70 71 72 73
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.

74 75 76 77 78
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
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
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.

104 105 106 107 108 109
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
110 111 112 113
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
114 115 116 117 118
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.

119 120 121 122 123
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
124 125 126 127 128
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
129 130 131 132 133
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
134 135
2006-06-23  Kim F. Storm  <storm@cua.dk>

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

Kim F. Storm's avatar
Kim F. Storm committed
138 139 140
	* 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
141 142 143 144 145 146
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
147 148 149 150 151 152 153 154 155 156 157
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.

158 159 160 161 162 163 164
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
165

166 167
	* syntax.c (init_syntax_once): Give most control chars' syntax Spunct.

Kim F. Storm's avatar
Kim F. Storm committed
168 169 170 171 172
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.

173 174 175 176 177 178 179 180 181
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
182 183
2006-06-16  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
	* 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
200 201 202 203 204
	* .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
205 206 207 208 209 210 211 212 213 214 215 216 217 218
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.

219 220 221 222 223
2006-06-14  Chong Yidong  <cyd@stupidchicken.com>

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

224 225 226 227 228 229 230 231 232
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
233

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

Kim F. Storm's avatar
Kim F. Storm committed
236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261
	* 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
262 263 264 265
	* 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
266 267 268 269 270 271 272 273 274 275 276 277 278
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
279 280 281 282 283 284 285
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.

286 287 288 289 290
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.

291 292 293 294 295
2006-06-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

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

Jason Rumney's avatar
Jason Rumney committed
296 297 298 299 300 301 302 303 304 305
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.

306 307 308 309 310
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
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 338
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.

339 340 341 342 343 344
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.

345 346 347 348 349
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.

350 351 352 353 354
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.

355 356 357 358 359 360 361
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
362

363 364 365 366
2006-06-02  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

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

367 368 369 370
2006-06-01  Richard Stallman  <rms@gnu.org>

	* window.c (Fsplit_window): Doc fix.

Kim F. Storm's avatar
Kim F. Storm committed
371 372 373 374 375 376 377 378 379 380 381 382 383
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
384 385 386 387 388
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.

389 390 391 392 393
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.

394 395 396 397 398
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.

399 400 401 402 403 404 405
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
406 407 408 409 410 411 412
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
413 414 415 416 417 418
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
419 420 421 422
2006-05-30  Andreas Schwab  <schwab@suse.de>

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

423 424 425 426
2006-05-30  Richard Stallman  <rms@gnu.org>

	* coding.c (Ffind_operation_coding_system): Doc fix.

Eli Zaretskii's avatar
Eli Zaretskii committed
427 428 429 430
2006-05-30  Eli Zaretskii  <eliz@gnu.org>

	* w32term.c (x_draw_hollow_cursor): Fix last change.

Kim F. Storm's avatar
Kim F. Storm committed
431 432 433 434 435
2006-05-29  Kim F. Storm  <storm@cua.dk>

	* w32term.c (x_draw_stretch_glyph_string): Fix last change.

2006-05-29  Eli Zaretskii  <eliz@gnu.org>
436 437 438

	* coding.c (Ffind_operation_coding_system): Doc fix.

439 440 441 442 443 444 445 446 447 448 449 450 451 452
2006-05-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macfns.c [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility):
	Call mac_set_font_info_for_selection if font panel is made visible.

	* macterm.c (font_panel_shown_p) [USE_MAC_FONT_PANEL]: New variable.
	(mac_font_panel_visible_p, mac_show_hide_font_panel)
	[USE_MAC_FONT_PANEL]: New functions.
	[USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Return
	immediately if font panel is not visible.

	* macterm.h (mac_font_panel_visible_p, mac_show_hide_font_panel):
	Add externs.

453 454 455 456 457 458 459 460 461 462 463 464
2006-05-29  Dan Nicolaescu  <dann@ics.uci.edu>

	* search.c (matcher_overflow): Mark as NO_RETURN.

	* xterm.c (x_connection_closed): Likewise.

	* sysdep.c (croak): Likewise.

	* sound.c (sound_perror, alsa_sound_perror): Likewise.

	* lisp.h (die, nsberror): Likewise.

465 466
2006-05-29  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

467 468 469
	* sound.c (alsa_open, alsa_configure, alsa_write): Move
	assignment to err out of if-statement.

470 471 472 473 474 475
	* gtkutil.c (menu_nav_ended): New function.
	(create_menus): Connect menu_nav_ended to "selection-done" to fix
	grabs.

	* xmenu.c (Fmenu_bar_start): New function for USE_GTK and USE_X_TOOLKIT.

476 477 478 479
2006-05-28  Dan Nicolaescu  <dann@ics.uci.edu>

	* charset.h (invalid_character): Mark as NO_RETURN.

480 481 482 483 484
2006-05-29  Kenichi Handa  <handa@m17n.org>

	* coding.c (Ffind_operation_coding_system): Call a function by
	safe_call1 instead of call1.

485 486 487 488 489 490
2006-05-28  Stefan Monnier  <monnier@iro.umontreal.ca>

	* window.c (struct saved_window): Add `dedicated'.
	(Fset_window_configuration, save_window_save): Save/restore the
	`dedicated' flag.

Kim F. Storm's avatar
Kim F. Storm committed
491 492 493 494 495 496 497 498 499
2006-05-28  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (set_cursor_from_row): If cursor cannot be set in row,
	don't update w->cursor and return 0.  Return 1 on success.
	(try_cursor_movement): Repeat set_cursor_from_row on successive rows
	until it succeeds.

	* dispextern.h (set_cursor_from_row): Update prototype.

Kim F. Storm's avatar
Kim F. Storm committed
500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517
2006-05-28  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (get_phys_cursor_geometry): Return computed x and y through
	parameters.  Adjust x and width in case cursor in on a partially
	visible stretch glyph on the left edge.
	(erase_phys_cursor): Don't erase into left fringe/margin in case
	previous cursor glyph is a partially visible stretch glyph on left.

	* dispextern.h (get_phys_cursor_geometry): Update prototype.

	* xterm.c (x_draw_stretch_glyph_string): Fix problems with invisible
	cursor and erasing cursor on partially visible stretch glyph on left.
	(x_draw_hollow_cursor): Compute x via get_phys_cursor_geometry.

	* macterm.c: Likewise.

	* w32term.c: Likewise.

518 519
2006-05-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

520 521
	* macselect.c (mac_handle_apple_event):
	Return errAEEventNotHandled if key binding is not found.
522

Eli Zaretskii's avatar
Eli Zaretskii committed
523 524 525 526 527 528 529
2006-05-26  Eli Zaretskii  <eliz@gnu.org>

	* emacs.c (main) [PROFILING]: Enable also for __MINGW32__.
	[__MINGW32__]: MinGW-specific declaration of `etext'.

	* w32heap.c (etext, edata): Remove unused definitions.

530 531
2006-05-26  Chong Yidong  <cyd@stupidchicken.com>

532 533 534
	* fileio.c (Fcopy_file): Delete argument MUSTBENEW.
	Incorporate the exclusive file-opening functionality into the behavior
	when OK-IF-ALREADY-EXISTS is nil.
535 536
	(Frename_file): Call Fcopy_file without MUSTBENEW argument.

537 538 539 540 541
2006-05-26  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* sound.c (alsa_configure): Move get period/buffer_size after
	setting hwparams.

Kenichi Handa's avatar
Kenichi Handa committed
542 543 544 545 546
2006-05-26  Kenichi Handa  <handa@m17n.org>

	* coding.c (Ffind_operation_coding_system): Allow (FILENAME
	. BUFFER) in TARGET.

547 548 549 550
2006-05-25  Chong Yidong  <cyd@stupidchicken.com>

	* image.c (png_load): Don't call fclose on NULL.

Luc Teirlinck's avatar
Luc Teirlinck committed
551 552 553 554 555 556
2006-05-25  Luc Teirlinck  <teirllm@auburn.edu>

	* fns.c (Fyes_or_no_p):
	* callint.c (Fcall_interactively): Fread_from_minibuffer now takes
	only seven args.

Juri Linkov's avatar
Juri Linkov committed
557 558 559 560 561 562 563 564 565
2006-05-25  Juri Linkov  <juri@jurta.org>

	* lisp.h (Fread_from_minibuffer): Decrement number of args.

	* minibuf.c (read_minibuf): Remove arg KEEP_ALL.  Callers changed.
	(Fread_from_minibuffer): Remove arg KEEP_ALL.  Callers changed.

	* buffer.c (mode-line-format): Fix docstring.

566 567 568 569
2006-05-25  Richard Stallman  <rms@gnu.org>

	* emacs.c (main, Fdump_emacs): Don't test __linux or __linux__.

Luc Teirlinck's avatar
Luc Teirlinck committed
570 571 572 573
2006-05-24  Luc Teirlinck  <teirllm@auburn.edu>

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

Alan Mackenzie's avatar
Alan Mackenzie committed
574 575 576 577 578 579 580 581 582 583 584 585
2006-05-24  Alan Mackenzie  <acm@muc.de>

	* lread.c (Vload_history): Enhance doc-string to say that the file
	is the absolute truename of the loaded file.

	* lread.c (Vafter_load_alist): doc-string: state that an element
	now has a regexp to match file names, not a file name as such.

	* lread.c (readevalloop): Call file-truename on the name for
	load-history, except at preloading time.

	* lread.c (Fload): At preloading time, preserve the extension of
586
	the filename which goes into load-history.  New var hist_file_name.
Alan Mackenzie's avatar
Alan Mackenzie committed
587 588 589 590

	* lread.c (Fload): Do eval-after-load stuff by calling the lisp
	function do-after-load-evaluation.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609
2006-05-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* mac.c (ae_attr_table): New variable.
	(syms_of_mac): Intern and staticpro its elements.
	(mac_aelist_to_lisp): Also convert Apple event attributes.
	(mac_ae_put_lisp): New function.
	(create_apple_event_from_event_ref) [MAC_OSX]: Use typeUTF8Text.

	* macfns.c (Fx_server_version): Use gestaltSystemVersionMajor etc.

	* macselect.c (Qemacs_suspension_id): New variable.
	(syms_of_macselect): Intern and staticpro it.
	(struct suspended_ae_info): New struct.
	(deferred_apple_events, defer_apple_events)
	(Fmac_process_deferred_apple_events): Use it.
	(suspended_apple_events): New variable.
	(mac_handle_apple_event_1): New function.
	(mac_handle_apple_event): Use it.  Don't process previously
	suspended events.
610
	(cleanup_suspended_apple_events, get_suspension_id)
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630
	(cleanup_all_suspended_apple_events): New functions.
	(init_apple_event_handler): Call cleanup_all_suspended_apple_events
	at exit.
	(Fmac_cleanup_expired_apple_events, Fmac_ae_set_reply_parameter)
	(Fmac_resume_apple_event): New defuns.
	(syms_of_macselect): Defsubr them.

	* macterm.c (fn_keycode_to_keycode_table, XTread_socket) [MAC_OSX]:
	Fix last change.  Don't map `fn' modifier if pressed with F1 ... F12.

	* macterm.h (TYPE_FILE_NAME): Change from macro to enumerator.
	(KEY_EMACS_SUSPENSION_ID_ATTR): New enumerator.
	(keyReplyRequestedAttr) [MAC_OS_X_VERSION_MAX_ALLOWED < 1030]: Likewise.
	(gestaltSystemVersionMajor, gestaltSystemVersionMinor)
	(gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
	Likewise.
	(typeUTF8Text, kEventParamWindowMouseLocation)
	[MAC_OSX && MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Likewise.
	(x_get_focus_frame, mac_ae_put_lisp): Add externs.

631 632 633 634 635 636 637 638 639 640
2006-05-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c (fn_keycode_to_xkeysym_table, convert_fn_keycode): Remove.
	(fn_keycode_to_keycode_table) [MAC_OSX]: New variable.
	(mac_set_unicode_keystroke_event) [TARGET_API_MAC_CARBON]: New function.
	(XTread_socket) [TARGET_API_MAC_CARBON]: Use it.
	(XTread_socket) [MAC_OSX]: Try 'uchr' Unicode keyboard-layout
	resource to backtranslate key with modifiers.
	(XTread_socket): Don't set read_socket_inev around AEProcessAppleEvent.

641 642 643 644 645
2006-05-23  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xterm.c: Remove declarations already in xterm.h

	* xterm.h: Add extern declarations for x_clear_errors,
Kim F. Storm's avatar
Kim F. Storm committed
646
	x_fully_uncatch_errors, x_catching_errors and
647 648
	x_alloc_lighter_color_for_widget.  Remove duplicated declarations.

649 650
2006-05-21  Richard Stallman  <rms@gnu.org>

651 652 653
	* xfaces.c (best_matching_font): Abort for best == NULL
	before we start to use it.

654 655
	* buffer.c (syms_of_buffer, Fmake_overlay): Doc fixes.

Kim F. Storm's avatar
Kim F. Storm committed
656 657 658 659
2006-05-20  Kim F. Storm  <storm@cua.dk>

	* xfaces.c (best_matching_font): Fix crash in 2006-05-17 change.

660 661 662 663
2006-05-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c (convert_fn_keycode): Fix last change.

664 665 666 667
2006-05-19  Eli Zaretskii  <eliz@gnu.org>

	* w32.c (init_environment): Perform the processing of environment
	variables on a copy of default variables and their values, not on
Eli Zaretskii's avatar
Eli Zaretskii committed
668 669
	the original.  Simplify code that calls ExpandEnvironmentStrings
	and make buf1[] and buf2[] more visible for easier debugging.
670

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
671 672 673 674 675 676 677 678 679 680 681 682 683
2006-05-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* frame.c (x_set_border_width): Remove #ifndef MAC_OS.

	* image.c [MAC_OS] (gif_load): Allocate Lisp string first.

	* macfns.c (Fx_focus_frame): Don't check dpyinfo->x_focus_frame.

	* macterm.c (XTread_socket) [TARGET_API_MAC_CARBON && MAC_OSX]:
	Forward keyUp events to toolbox_dispatcher.

	* window.c (foreach_window): Check WINDOWP (FRAME_ROOT_WINDOW (f)).

684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699
2006-05-18  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* config.in: Regenerated (HAVE_ALSA).

	* sound.c (alsa_sound_perror, alsa_open, alsa_period_size)
	(alsa_configure, alsa_close, alsa_choose_format, alsa_write)
	(snd_error_quiet, alsa_init): New functions.
	(vox_init): Return 0 if unable to open device.
	(Fplay_sound_internal): Test for alsa first and use vox (oss) as
	a fallback.
	(struct sound_device): Add period_size.
	(wav_play, au_play): Use period_size if set.

	* Makefile.in (CFLAGS_SOUND): New flags for ALSA
	(ALL_CFLAGS): Add CFLAGS_SOUND

700 701 702 703 704 705 706 707 708 709 710 711
2006-05-18  Kenichi Handa  <handa@m17n.org>

	* callproc.c (Fcall_process): Reject encoding arguments by
	ascii-incompatible coding systems (e.g. utf-16).

	* coding.c (Qascii_incompatible): New variable.
	(syms_of_coding): Setup Qascii_incompatible.
	(setup_coding_system): Be sure to initialize coding->common_flags.
	Check `ascii-incompatible' property of the coding system.

	* coding.h (CODING_ASCII_INCOMPATIBLE_MASK): New macro.

Kim F. Storm's avatar
Kim F. Storm committed
712 713 714 715 716 717 718 719 720 721
2006-05-18  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (display_tool_bar_line): Restore entire tool-bar geometry when
	backtracking in case last image doesn't fit on line.

2006-05-18  MIYOSHI Masanori <miyoshi@meadowy.org>  (tiny change)

	* xdisp.c (display_tool_bar_line): Don't adjust tool-bar height by more than
	height of one frame default line.

Kim F. Storm's avatar
Kim F. Storm committed
722 723 724 725
2006-05-17  Richard Stallman  <rms@gnu.org>

	* xfaces.c (better_font_p): Any font beats no font.
	(best_matching_font): Simplify based on above change.
Kim F. Storm's avatar
Kim F. Storm committed
726

727
	* buffer.c (Fprevious_overlay_change, Fnext_overlay_change): Doc fixes.
Kim F. Storm's avatar
Kim F. Storm committed
728

Kim F. Storm's avatar
Kim F. Storm committed
729 730 731 732 733
2006-05-16  Kim F. Storm  <storm@cua.dk>

	* xterm.c (handle_one_xevent): Check that f is not NULL before
	calling x_kill_gs_process.

734 735 736 737 738 739
2006-05-14  Richard Stallman  <rms@gnu.org>

	* textprop.c (Fnext_single_char_property_change)
	(Fprevious_single_char_property_change): Don't allow returning
	value beyond LIMIT in any cases.
	(Fnext_char_property_change, Fprevious_char_property_change): Doc fix.
Kim F. Storm's avatar
Kim F. Storm committed
740

741 742
	* intervals.c (get_local_map): Abort if POSITION outside BEGV, ZV.

743 744 745 746 747
2006-05-14  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xterm.c (handle_one_xevent): Check that f is not NULL before
	calling _XEditResCheckMessages.

Kim F. Storm's avatar
Kim F. Storm committed
748 749 750 751
2006-05-14  Kim F. Storm  <storm@cua.dk>

	* xterm.c (handle_one_xevent): Fix crash in 2006-03-24 change.

Eli Zaretskii's avatar
Eli Zaretskii committed
752 753
2006-05-13  Eli Zaretskii  <eliz@gnu.org>

754 755 756
	* frame.c (x_set_border_width): Fix error message to say "frame",
	not "window".

Eli Zaretskii's avatar
Eli Zaretskii committed
757 758
	* Makefile.in (SOME_MACHINE_LISP): Add fringe.elc.

759 760 761 762 763 764 765 766
2006-05-12  Chong Yidong  <cyd@stupidchicken.com>

	* intervals.c (set_point_both): Fix mixup before before and after
	in variable names.

	* editfns.c (Fline_beginning_position): Inhibit point-motion hooks
	while setting point temporarily.

767 768 769 770
2006-05-11  Richard Stallman  <rms@gnu.org>

	* lread.c (readevalloop): Abort if START non-nil for non-buffer input.

Kim F. Storm's avatar
Kim F. Storm committed
771 772 773 774
2006-05-11  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (redisplay_tool_bar): Handle large tool-bar-border values.

775 776 777 778 779
2006-05-11  Kenichi Handa  <handa@m17n.org>

	* fileio.c (Finsert_file_contents): Fix for the case of IO error
	while handling replace operation.

780 781 782 783 784 785
2006-05-10  Kenichi Handa  <handa@m17n.org>

	* xfaces.c (realize_default_face) [HAVE_X_WINDOWS]: If the font
	chosen for the default face was different from the frame font,
	adjust the frame font.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
786 787 788 789 790 791 792
2006-05-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* image.c (Qduration) [MAC_OS]: Undo previous change.
	(syms_of_image) [MAC_OS]: Likewise.
	[MAC_OS] (gif_load): Emulate Graphic Control Extension block.

	* macfns.c (x_to_mac_color): Fix shift amount change.
793
	(mac_set_font) [USE_MAC_FONT_PANEL]: Use x_get_focus_frame.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813
	[USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): Doc fix.

	* macselect.c (Vmac_service_selection) [MAC_OSX]: Rename from
	Vmac_services_selection.  All uses changed.
	(mac_store_service_event): Rename from mac_store_services_event in
	extern and calls.

	* macterm.c (Qservice) [MAC_OSX]: Rename from Qservices.  All uses
	changed.
	[MAC_OSX] (mac_store_service_event): Rename from
	mac_store_services_event.  All callers changed.
	[USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Add args
	FACE_ID and C.  All callers changed.
	(x_free_frame_resources) [USE_MAC_FONT_PANEL]: Call
	mac_set_font_info_for_selection when focus frame is destroyed.
	(XTread_socket): Revert to FrontNonFloatingWindow/FrontWindow.

	* macterm.h (mac_set_font_info_for_selection): Add 2nd and 3rd
	args in extern.

814 815 816 817 818
2006-05-09  Chong Yidong  <cyd@stupidchicken.com>

	* keymap.c (describe_map): Avoid generating duplicate entries if
	the shadowed binding has the same definition.

819 820 821 822
2006-05-09  Kenichi Handa  <handa@m17n.org>

	* keymap.c (push_key_description): Handle invalid character key.

823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845
2006-05-08  Kenichi Handa  <handa@m17n.org>

	* callproc.c (Fcall_process): Use system_eol_type for encoding
	arguments if eol_type is not yet decided.

	* coding.h (system_eol_type): Extern it.

	* coding.c (setup_coding_system): For invalid coding-system, set
	coding->eol_type to CODING_EOL_UNDECIDED.
	(encode_coding): Cancel previous change.
	(shrink_encoding_region): Likewise.
	(code_convert_region1): Likewise.
	(code_convert_string1): Likewise.
	(code_convert_string_norecord): Likewise.

	* fileio.c (choose_write_coding_system): Use system_eol_type for
	encoding if eol_type is not yet decided.

	* process.c (setup_process_coding_systems): Use system_eol_type
	for encoding if eol_type is not yet decided.
	(read_process_output): Likewise.
	(send_process): Likewise.

846 847 848 849
2006-05-07  Juanma Barranquero  <lekktu@gmail.com>

	* minibuf.c (syms_of_minibuf) <history-length>: Fix typo in doc.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869
2006-05-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* mac.c (Fmac_clear_font_name_table): Move defun to macfns.c.
	(syms_of_mac): Likewise for defsubr.

	* macfns.c (mac_set_font): New function.
	(mac_frame_parm_handlers, syms_of_macfns): Replace x_set_font with it.
	(mac_window) [TARGET_API_MAC_CARBON && MAC_OSX]: Specify
	kWindowToolbarButtonAttribute when creating window.
	(Fmac_clear_font_name_table): Move from macfns.c.
	(syms_of_macfns): Likewise for defsubr.
	[USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): New defun.
	(syms_of_macfns) [USE_MAC_FONT_PANEL]: Defsubr it.

	* macgui.h (USE_MAC_FONT_PANEL): Define to 1 if USE_ATSUI is set
	and build is done on Mac OS X 10.2 and later.

	* macselect.c (mac_do_receive_drag): Remove unused variable `index'.
	(mac_store_services_event): Change return type in extern.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
870 871
	* macterm.c (XLoadQueryFont) [USE_ATSUI]: Set font->mac_fontnum to
	FMFontFamily value.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
872 873 874 875 876 877 878 879 880 881
	[USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): New function.
	(x_new_focus_frame) [USE_MAC_FONT_PANEL]: Use it.
	(QCfamily, QCweight, QCslant, Qnormal, Qbold, Qitalic): Add extern.
	(QWindow) [MAC_OSX]: Likewise.
	(Qfont) [USE_MAC_FONT_PANEL]: Likewise.
	(Vmac_atsu_font_table) [USE_ATSUI]: New variable.
	(syms_of_macterm) [USE_ATSUI]: Defvar it.
	(Qtoolbar_switch_mode) [MAC_OSX]: New variable.
	(Qpanel_closed, Qselection) [USE_MAC_FONT_PANEL]: Likewise.
	(syms_of_macterm): Intern and staticpro them.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
882
	(init_font_name_table) [USE_ATSUI]: Add data to Vmac_atsu_font_table.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
883 884 885 886 887 888 889 890 891 892 893 894 895 896
	[TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event): New
	function.
	[USE_CARBON_EVENTS] (mac_handle_command_event): Use it.
	[MAC_OSX] (mac_store_services_event): Likewise.
	[USE_CARBON_EVENTS] (mac_handle_window_event) [MAC_OSX]: Handle
	kEventWindowToolbarSwitchMode event.
	(install_window_handler) [USE_CARBON_EVENTS && MAC_OSX]: Register it.
	[MAC_OSX] (mac_store_services_event): Change return type to OSStatus.
	[USE_MAC_FONT_PANEL] (mac_handle_font_event): New function.
	(install_window_handler) [USE_MAC_FONT_PANEL]: Install it.
	(XTread_socket): Select window on mouse click if x_focus_frame is NULL.

	* macterm.h (mac_set_font_info_for_selection): Add extern.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
897 898 899 900 901 902 903 904
2006-05-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* image.c (Qduration) [MAC_OS]: New variable.
	(syms_of_image) [MAC_OS]: Intern and staticpro it.
	[MAC_OS] (gif_load): Save image extension data in img->data.lisp_val.
	[MAC_OSX] (image_load_quartz2d): Use cfstring_create_with_utf8_cstring
	instead of cfstring_create_with_string.

Kim F. Storm's avatar
Kim F. Storm committed
905 906 907 908 909 910 911
2006-05-06  Kim F. Storm  <storm@cua.dk>

	* .gdbinit (xframe): Print frame name.
	(xlist): New command to print a list (max 10 elements).
	(xpr): Print lisp object of any type.
	(pitx): Print it->pixel_width.

Kenichi Handa's avatar
Kenichi Handa committed
912 913 914 915 916
2006-05-05  Kenichi Handa  <handa@m17n.org>

	* xdisp.c (handle_composition_prop): Fix for the case of empty
	composition component.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
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 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970
2006-05-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* keyboard.c (make_lispy_event) [MAC_OS]: Get Apple event info
	from event->arg.

	* termhooks.h (enum event_kind) [MAC_OS]: Update comment for
	MAC_APPLE_EVENT.

	* macterm.h (mac_make_lispy_event_code): Remove extern.
	(mac_post_mouse_moved_event): Add extern.
	(mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
	`const AEDesc *' in externs.
	(create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: New extern.

	* mac.c (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
	`const AEDesc *'.
	[TARGET_API_MAC_CARBON] (create_apple_event): New function.
	[TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): Use it.
	Use xrealloc instead of repeated xmalloc/xfree.
	[TARGET_API_MAC_CARBON] (create_apple_event_from_drag_ref): New
	function.

	* macmenu.c (restore_menu_items, cleanup_popup_menu): Return a value.

	* macselect.c: Update copyright year.
	(mac_store_apple_event): Change return type to void in extern.
	(mac_handle_apple_event): Don't get return value from
	mac_store_apple_event.
	[TARGET_API_MAC_CARBON] (Vmac_dnd_known_types): New variable.
	(syms_of_macselect) [TARGET_API_MAC_CARBON]: Defvar it.
	[TARGET_API_MAC_CARBON] (mac_do_track_drag): Move function from
	macterm.c.  Use Vmac_dnd_known_types as acceptable flavors.
	[TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.  New
	implementation using create_apple_event_from_drag_ref.
	[TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
	(mac_do_receive_dragUPP): Move variables from macterm.c.
	(install_drag_handler, remove_drag_handler): New functions.

	* macterm.c (XTread_socket) [TARGET_API_MAC_CARBON]: Try window
	path select also for proxy icon click.
	[TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event): New function.
	[USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback): Use it.
	(xlfdpat_create): Remove unused label `error' and trailing sentences.
	(mac_do_track_drag, mac_do_receive_drag): Move functions to macselect.c.
	(mac_do_track_dragUPP, mac_do_receive_dragUPP): Move variables to
	macselect.c.
	(install_drag_handler, remove_drag_handler): Add extern.
	(mac_store_apple_event): Change return type to void.  All uses changed.
	Create Lisp object from Apple event and store it into input event.
	(mac_make_lispy_event_code): Remove function.
	[TARGET_API_MAC_CARBON] (mac_store_drag_event): New function.
	(install_window_handler): Call install_drag_handler.
	(remove_window_handler): Call remove_drag_handler.

971 972
2006-05-03  Richard Stallman  <rms@gnu.org>

973 974 975 976
	* sound.c (Fplay_sound_internal): Dynamically allocate
	current_sound_device and current_sound.
	(sound_cleanup): Free them.

977 978 979
	* minibuf.c (read_minibuf): Don't use read_minibuf_noninteractive
	when inside a keyboard macro.

980 981 982 983
2006-05-02  Andreas Schwab  <schwab@suse.de>

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

984 985 986 987 988
2006-05-01  Martin Rudalics  <rudalics@gmx.at>

	* syntax.c (Fforward_comment): Detect generic comment at beginning of
	buffer when moving backwards.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
989 990 991 992 993 994
2006-05-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* dispnew.c (update_window): Don't set changed_p when mode/header
	line is updated.

	* xdisp.c (prepare_menu_bars) [MAC_OS]: Call mac_update_title_bar.
995 996
	(get_glyph_face_and_encoding, get_char_face_and_encoding):
	Don't distinguish known faces from others.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
997 998 999 1000 1001 1002

	* mac.c (mac_coerce_file_name_ptr): Try typeFSRef if coercion
	through typeFileURL failed.

	* macfns.c (mac_update_title_bar): New function.
	[TARGET_API_MAC_CARBON] (mac_update_proxy_icon): New function.
1003 1004
	(show_hourglass, hide_hourglass) [USE_CG_DRAWING]:
	Call mac_prepare_for_quickdraw.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
1005 1006 1007 1008 1009 1010 1011 1012 1013 1014

	* macgui.h (USE_ATSUI): Set default to 1 if MAC_OSX is defined.
	(USE_CG_DRAWING): Don't define if compiled on Mac OS X 10.1.
	(enum pcm_status): New enum.
	(XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID)
	(XCharStructRow): Remove.  Now validity is represented by
	non-negativeness of sum of ascent and descent.
	(struct MacFontStruct): Change type of member `rows'.
	(struct _XGC) [USE_CG_DRAWING]: Add member `clip_rects'.

1015 1016
	* macterm.c (mac_draw_line, mac_draw_line_to_pixmap):
	Adjust endpoints of strictly horizontal/vertical lines.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032
	(mac_set_clip_rectangles) [USE_CG_DRAWING]: Set clip_rects.
	(pcm_init, pcm_get_status): New functions.
	(x_per_char_metric, XLoadQueryFont): Use them instead of
	XCharStructRow and related macros.
	(x_draw_relief_rect): Don't adjust arguments of mac_draw_line.
	(x_free_frame_resources) [TARGET_API_MAC_CARBON]: Free FRAME_FILE_NAME.
	(XTread_socket) [TARGET_API_MAC_CARBON]: Handle proxy icon drag
	and window path pop-up menu on title bar.
	(mac_use_core_graphics) [USE_CG_DRAWING]: Set default to 1.

	* macterm.h (mac_update_title_bar): Add extern.
	(struct mac_output) [TARGET_API_MAC_CARBON]: New member `file_name'.
	(FRAME_FILE_NAME): New macro.

	* unexmacosx.c (unexec): Error if trying unexec from dumped executable.

1033 1034 1035 1036 1037
2006-04-30  Richard Stallman  <rms@gnu.org>

	* keymap.c (Fdefine_key): Improve error message
	when KEY begins with a non-prefix key.

Kim F. Storm's avatar
Kim F. Storm committed
1038
2006-04-30  Martin Rudalics  <rudalics@gmx.at>
1039 1040 1041 1042

	* syntax.c (Fforward_comment): Don't forget to break out of the loop
	when we skipped backward over a generic comment.

Nick Roberts's avatar
Nick Roberts committed
1043 1044 1045 1046 1047 1048
2006-04-27  Nick Roberts  <nickrob@snap.net.nz>

	* .gdbinit (pp1, pv1): Only print value as expression is now
	printed out by gud-print.
	(pv1): Correct doc string.

1049 1050 1051 1052 1053 1054
2006-04-26  Stefan Monnier  <monnier@iro.umontreal.ca>

	* keymap.c (store_in_keymap): Change `def' arg to not be `register'.
	Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8):
	keymap.c:895: error: address of register variable `def' requested.

Jason Rumney's avatar
Jason Rumney committed
1055 1056
2006-04-26  Jason Rumney  <jasonr@gnu.org>

1057 1058
	* w32term.c (construct_mouse_wheel): Handle negative coordinates.

Jason Rumney's avatar
Jason Rumney committed
1059 1060 1061 1062
	* w32fns.c (w32_wnd_proc) <WM_LBUTTONDOWN, WM_RBUTTONDOWN>:
	<WM_LBUTTONUP, WM_RBUTTONUP>: Call signal_user_input in the cases
	where we preempt mouse_button_timer.

1063 1064 1065 1066
2006-04-25  Miles Bader  <miles@gnu.org>

	* editfns.c (Ffield_beginning, find_field): Undo change of 2006-04-23.

Stefan Monnier's avatar
Stefan Monnier committed
1067 1068 1069 1070
2006-04-24  Stefan Monnier  <monnier@iro.umontreal.ca>

	* process.h: Include headers for pid_t.

Kim F. Storm's avatar
Kim F. Storm committed
1071 1072
2006-04-24  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
1073 1074
	* xdisp.c (fill_stretch_glyph_string): Set s->nchars = 1 for code which
	does last_glyph=s->first_glyph+s->nchars-1, e.g. if stretch has relief.
Kim F. Storm's avatar
Kim F. Storm committed
1075
	(produce_stretch_glyph): Assume that face box height and width is
Kim F. Storm's avatar
Kim F. Storm committed
1076
	already	included in stretch glyph size so caller doesn't have to
Kim F. Storm's avatar
Kim F. Storm committed
1077
	consider the extra space otherwise added (fixes problem in ses.el).
Kim F. Storm's avatar
Kim F. Storm committed
1078

Kim F. Storm's avatar
Kim F. Storm committed
1079 1080 1081 1082
	* frame.c (x_set_font): Clear f->n_tool_bar_rows and current frame
	matrices to force recalculation of tool-bar height after font change.

	* xdisp.c (tool_bar_lines_needed): New local `temp_row' for clarity.
1083 1084
	Clear it when done, so we don't accidentally draw a second copy of
	the tool-bar after resetting f->n_tool_bar_rows.
Kim F. Storm's avatar
Kim F. Storm committed
1085 1086 1087
	(redisplay_tool_bar): Update tool-bar-lines frame parameter whenever
	we recalculate f->n_tool_bar_rows.

Romain Francoise's avatar
Romain Francoise committed
1088 1089
2006-04-23  Lars Hansen  <larsh@soem.dk>

Lars Hansen's avatar
Lars Hansen committed
1090 1091 1092
	* editfns.c (find_field): Fix comment.
	(Ffield_beginning): Fix bug when POS is at field beginning.

1093 1094 1095 1096
2006-04-22  Eli Zaretskii  <eliz@gnu.org>

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

Kim F. Storm's avatar
Kim F. Storm committed
1097 1098
2006-04-21  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
1099 1100 1101
	* xdisp.c (redisplay_window): Fix last change.  Don't recenter if
	window start is at BEGV.

Kim F. Storm's avatar
Kim F. Storm committed
1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117
	* dispextern.h (struct image): New member `corners'.
	(TOP_CORNER, LEFT_CORNER, BOT_CORNER, RIGHT_CORNER): New macros.

	* image.c (four_corners_best): New arg CORNERS specifies what pixels
	to look at in case image has margin.
	(x_create_bitmap_mask): Pass NULL for CORNERS to four_corners_best.
	(image_background, image_background_transparent)
	(x_build_heuristic_mask): Pass img->corners to four_corners_best.
	(gif_load): Set img->corners according to image's margin spec.
	Use img->corners values directly where applicable.
	Save image extension data in img->data.lisp_val.
	(gif_clear_image): New function to free img->data.lisp_val.
	(gif_type): Use it instead of generic x_clear_image.
	(Fimage_extension_data): New defun.
	(syms_of_image): Defsubr it.

Eli Zaretskii's avatar
Eli Zaretskii committed
1118 1119 1120 1121
2006-04-21  John Sullivan  <john@wjsullivan.net>  (tiny change)

	* window.c (Fdisplay_buffer): Doc fix.

1122 1123 1124 1125
2006-04-21  Eli Zaretskii  <eliz@gnu.org>

	* s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Increase to 25000.

1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140
2006-04-21  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* image.c [MAC_OS] (xpm_load_image): Fill in background field
	while we have ximg handy.

	* macmenu.c (restore_menu_items, save_menu_items): New functions
	from xmenu.c.
	(set_frame_menubar, digest_single_submenu): Apply 2006-04-18
	changes for xmenu.c.

	* macterm.c (x_per_char_metric): Return NULL if glyph width is 0.
	(add_mac_font_name): New function.
	(init_font_name_table): Use it.  Adopt the first found font from
	those having the same family name.

Nick Roberts's avatar
Nick Roberts committed
1141 1142 1143 1144
2006-04-21  Nick Roberts  <nickrob@snap.net.nz>

	* xdisp.c (note_mouse_highlight): Use build_string.

1145 1146
2006-04-20  Lars Hansen  <larsh@soem.dk>

Stefan Monnier's avatar
Stefan Monnier committed
1147 1148
	* textprop.c (Fremove_list_of_text_properties):
	Ensure modify_region is called only when buffer is modified and that
1149 1150 1151 1152
	signal_after_change is allways called in that case.

	* print.c (PRINTFINISH): Call signal_after_change.

Kim F. Storm's avatar
Kim F. Storm committed
1153 1154
2006-04-20  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
1155 1156
	* xdisp.c (redisplay_window): Fix last change.

Kim F. Storm's avatar
Kim F. Storm committed
1157 1158 1159 1160 1161
	* xdisp.c (redisplay_window): If current window start is not at	the
	beginning of a line, select a new window start if buffer is modified
	and window start is in the modified region, but the first change is
	before window start.

1162 1163 1164 1165
2006-04-18  Richard Stallman  <rms@gnu.org>

	* xmenu.c (restore_menu_items, save_menu_items): New fns.
	(set_frame_menubar): Use save_menu_items.  Save updated vector in
Stefan Monnier's avatar
Stefan Monnier committed
1166 1167
	the frame before unwinding it.  Don't use unuse_menu_items.
	Don't use discard_menu_items.
1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178
	(digest_single_submenu): Abort if an item is not in a pane.
	(init_menu_items): Put the error check at the top.

	* keymap.c (describe_map): Make "shadowed" warning more verbose.

	* window.c (adjust_window_trailing_edge): Correctly distinguish
	series vs parallel cases, even when window has no parent.

	* abbrev.c (record_symbol): New function.
	(Finsert_abbrev_table_description): Sort the abbrevs alphabetically.

1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193
2006-04-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* image.c (x_create_bitmap_from_data) [MAC_OS]: Don't check return
	value of xmalloc.

	* mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
	(create_apple_event_from_event_ref, xrm_get_preference_database)
	(cfstring_create_normalized): Don't check return value of xmalloc.

	* macselect.c (get_scrap_target_type_list, defer_apple_events)
	(copy_scrap_flavor_data, mac_handle_service_event): Don't check
	return value of xmalloc/xrealloc.

	* macterm.c (XCreateGC, x_per_char_metric, xlfdpat_create)
	(init_font_name_table, init_font_name_table, mac_do_list_fonts)
1194 1195
	(XLoadQueryFont, mac_store_apple_event): Don't check return value
	of xmalloc.
1196

Nick Roberts's avatar
Nick Roberts committed
1197 1198 1199 1200 1201
2006-04-17  Kim F. Storm  <storm@cua.dk>

	* window.c (coordinates_in_window): On the vertical border,
	calculate the row number measured from the top of the window, not
	the top of the frame.
Kim F. Storm's avatar
Kim F. Storm committed
1202 1203
	(window_loop): Test w->dedicated with !NILP instead of EQ Qt.
	(window_scroll_pixel_based): Fix off-by-one bug in 2002-12-23 change.
Nick Roberts's avatar
Nick Roberts committed
1204

1205 1206 1207 1208
2006-04-16  Eli Zaretskii  <eliz@gnu.org>

	* s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Reduce to 24000.

1209 1210 1211 1212
2006-04-16  Romain Francoise  <romain@orebokech.com>

	* puresize.h (BASE_PURESIZE): Decrement back to 1200000.

1213 1214 1215 1216
2006-04-16  Andreas Schwab  <schwab@suse.de>

	* puresize.h (PURESIZE_RATIO): Reduce to 10/6.

1217 1218 1219 1220
2006-04-15  Romain Francoise  <romain@orebokech.com>

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

1221
2006-04-13  Micha,Ak(Bl Cadilhac  <michael.cadilhac@lrde.org>
Eli Zaretskii's avatar
Eli Zaretskii committed
1222 1223 1224 1225

	* print.c (Fprin1_to_string): Mention in the `doc' that the
	behavior is modified by `print-level' and `print-length'.

1226 1227 1228 1229 1230 1231 1232 1233 1234 1235
2006-04-13  Kenichi Handa  <handa@m17n.org>

	* coding.c (setup_coding_system): If eol-type is not yet decided
	and system_eol_type is not LF, set CODING_REQUIRE_ENCODING_MASK.
	If coding_system is nil, return 0.
	(code_convert_region1): Even if coding_system is nil, don't skip
	conversion if system_eol_type is not LF.
	(code_convert_string1): Likewise.
	(code_convert_string_norecord): Likewise.

1236 1237 1238
2006-04-13  Kenichi Handa  <handa@m17n.org>

	* coding.c (setup_coding_system): Fix previous change.
Stefan Monnier's avatar
Stefan Monnier committed
1239
	(encode_coding): If eol_type is not yet decided, use system_eol_type.
1240 1241
	(shrink_encoding_region): If eol_type is not yet decided and
	system_eol_type is not LF, don't shrink.
1242

Nick Roberts's avatar
Nick Roberts committed
1243 1244 1245 1246 1247
2006-04-13  Nick Roberts  <nickrob@snap.net.nz>

	* xdisp.c (note_mouse_highlight): Add help echo for dragging vertical
	line.

1248 1249
2006-04-12  Richard Stallman  <rms@gnu.org>

1250 1251
	* keyboard.c (read_key_sequence): Explicitly avoid keybuf[-1].

1252 1253 1254
	* process.c (conv_lisp_to_sockaddr): If FAMILY unknown, just return.
	(Fprocess_send_eof): Abort if fail to open null device.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 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 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338
2006-04-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* fns.c [HAVE_MENUS && MAC_OS]: Include macterm.h.

	* image.c [MAC_OS] (xpm_load_image): Add parentheses around
	assignment used as truth value.  Add explicit braces to avoid
	ambiguous `else'.
	[MAC_OS] (gif_load): Remove unused variable `gcpro1'.

	* lisp.h (syms_of_fontset, Fset_fontset_font): Put extern and
	EXFUN in #ifdef HAVE_WINDOW_SYSTEM.
	(syms_of_xfns, syms_of_xsmfns, syms_of_xselect, syms_of_xterm):
	Put externs in #ifdef HAVE_X_WINDOWS.
	(syms_of_macfns, syms_of_macselect, syms_of_macterm)
	(syms_of_macmenu, syms_of_mac) [MAC_OS]: Add externs.
	(init_mac_osx_environment) [MAC_OSX]: Add extern.

	* mac.c (init_process): Remove undef.
	(select) [MAC_OSX]: Undefine before including sysselect.h.
	(posix_pathname_to_fsspec, fsspec_to_posix_pathname) [MAC_OSX]:
	Remove functions and prototypes.
	(parse_value): Add parentheses around + inside shift.
	(path_from_vol_dir_name): Make static.
	(get_temp_dir_name): Remove unused variables `cpb' and `dir_name'.
	[!MAC_OSX] (get_path_to_system_folder): Likewise.
	(Fmac_get_file_creator, Fmac_get_file_type): Remove unused
	variable `cCode'.
	(Fmac_coerce_ae_data): Remove unused variables `fref' and `fs'.
	(Fmac_get_preference): Add explicit braces to avoid ambiguous `else'.

	* macfns.c (x_to_mac_color): Remove unused variable `tail'.
	(x_set_mouse_color): Remove unused variable `dpy'.
	(Fx_create_frame): Remove unused variable `x_frame_count'.
	(Fx_server_version): Add explicit braces to avoid ambiguous `else'.
	(x_sync): Move from macterm.c.
	(Fx_file_dialog): Remove unused variable `default_filter_index'.

	* macmenu.c (min_menu_id): Make element type explicit.

	* macselect.c (get_flavor_type_from_symbol): Remove unused
	variable `val'.
	(get_scrap_private_timestamp, x_get_foreign_selection)
	(copy_scrap_flavor_data): Add explicit braces to avoid ambiguous `else'.
	(Fmac_process_deferred_apple_events): Remove unused variables
	`keyword', `reply', `apple_event', `count', and `err'.

	* macterm.c: Don't include gnu.h.
	(x_io_error_quitter, x_draw_image_foreground_1): Remove prototypes.
	(x_sync): Move to macfns.c.
	[USE_CG_DRAWING] (mac_define_fringe_bitmap): Remove unused
	variable `mask_bits'.
	(mac_compute_glyph_string_overhangs): Avoid ambiguous `else'.
	(x_draw_image_glyph_string): Remove unused variable `pixmap'.
	(x_mac_to_emacs_modifiers): Remove function.
	(XTset_vertical_scroll_bar, mac_handle_visibility_change)
	(x_make_frame_visible, xlfdpat_create, mac_handle_command_event):
	Add explicit braces to avoid ambiguous `else'.
	(x_make_frame_visible): Remove unused variables `type',
	`original_top', and `original_left'.
	(mac_do_list_fonts, XTread_socket): Add parentheses around && within ||.
	(x_load_font): Remove unused variables `full_name', and `value'.
	(do_get_menus, do_init_managers, do_check_ram_size) [!MAC_OS8]:
	Remove functions.
	(do_zoom_window): Reorganize variables with respect to conditionals.
	(init_command_handler): Remove unused variable `err'.
	[MAC_OSX] (mac_check_bundle): Remove unused variable `child'.

	* macterm.h (x_set_mouse_position, x_set_mouse_pixel_position)
	(x_make_frame_invisible, x_iconify_frame, x_free_frame_resources)
	(x_destroy_window, x_wm_set_size_hint, x_delete_display, XFreeGC)
	(do_menu_choice, have_menus_p, x_real_positions)
	(x_set_menu_bar_lines, x_pixel_width, x_pixel_height, x_char_width)
	(x_char_height, x_sync, x_set_tool_bar_lines, x_activate_menubar)
	(free_frame_menubar): Add externs.

	* unexmacosx.c: Include config.h before using HAVE_MALLOC_MALLOC_H.
	(malloc, realloc, free): Add undefs.
	(read_load_commands): Remove unused variable `n' and `j'.
	(copy_data_segment): Remove unused variable `r'.

	* xdisp.c (get_glyph_string_clip_rects): Add parentheses around &&
	within ||.  Add explicit braces to avoid ambiguous `else'.
	(dump_glyph_row): Remove label for `inverse_p' from legend.

Stefan Monnier's avatar
Stefan Monnier committed
1339 1340
	* xfaces.c (Finternal_merge_in_global_face, try_font_list):
	Add explicit braces to avoid ambiguous `else'.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
1341

1342
2006-04-11  Micha,Ak(Bl Cadilhac  <michael.cadilhac@lrde.org>
1343 1344 1345

	* dispnew.c (init_display): Don't init X display if the user asked
	for a non-X display.
Romain Francoise's avatar
Romain Francoise committed
1346

1347 1348 1349 1350 1351
2006-04-12  Kenichi Handa  <handa@m17n.org>

	* coding.c (setup_coding_system): Use system_eol_type for default
	coding->eol_type.

1352 1353 1354 1355 1356 1357 1358
2006-04-11  Dan Nicolaescu  <dann@ics.uci.edu>

	* lisp.h (wrong_type_argument): Mark as NO_RETURN.

	* data.c (wrong_type_argument): Try to avoid compiler warnings due
	to the fact the function is now marked as NO_RETURN.

Eli Zaretskii's avatar
Eli Zaretskii committed
1359 1360 1361 1362
2006-04-10  Eli Zaretskii  <eliz@gnu.org>

	* s/ms-w32.h (pid_t) [_MSC_VER]: New typedef.

Romain Francoise's avatar
Romain Francoise committed
1363 1364 1365 1366
2006-04-10  Romain Francoise  <romain@orebokech.com>

	* xrdb.c (gethomedir): Use xstrdup.

1367 1368 1369 1370 1371
2006-04-10  Andreas Schwab  <schwab@suse.de>

	* xrdb.c (gethomedir): Make sure to always return a pointer that
	can be passed to free.

Richard M. Stallman's avatar
Richard M. Stallman committed
1372 1373 1374 1375 1376 1377 1378 1379
2006-04-09  Richard Stallman  <rms@gnu.org>

	* lisp.h (Fkill_emacs): Undo previous change.

2006-04-08  Richard Stallman  <rms@gnu.org>

	* search.c (boyer_moore): Test ch >= 0400, not >.

1380 1381 1382 1383
2006-04-09  Dan Nicolaescu  <dann@ics.uci.edu>

	* puresize.h (pure_write_error): Mark as NO_RETURN.

1384
	* lisp.h (args_out_of_range, args_out_of_range_3)
1385

1386 1387 1388 1389 1390
2006-04-08  Eli Zaretskii  <eliz@gnu.org>

	* w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements
	if a menu is active on this frame.

1391 1392 1393 1394
2006-04-08  Dan Nicolaescu  <dann@ics.uci.edu>

	* lisp.h (report_file_error): Mark as NO_RETURN.

1395 1396
2006-04-08  Eli Zaretskii  <eliz@gnu.org>

1397 1398
	* alloc.c [STDC_HEADERS]: Include stddef.h.

1399 1400
	* lisp.h (PSEUDOVECSIZE): Fix last change.

1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423
2006-04-08  Stefan Monnier  <monnier@iro.umontreal.ca>

	* process.h (struct Lisp_Process): Replace Lisp_Objects `pid',
	`raw_status_high', and `raw_status_low' with plain integers, and move
	them to the end of the structure.

	* alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the
	pseudovector's size field so only the Lisp_Object fields get GC'd.

	* process.c (update_status, make_process, Fdelete_process)
	(Fprocess_status, list_processes_1, start_process_unwind)
	(create_process, Fmake_network_process, server_accept_connection)
	(wait_reading_process_output, send_process, Fprocess_running_child_p)
	(process_send_signal, proc_encode_coding_system, Fprocess_send_eof)
	(sigchld_handler, status_notify): Adjust to new non-Lisp fields for
	`pid' and `raw_status'.
	(Fprocess_id, Fsignal_process): Same, and additionally use floats when
	representing PIDs that are larger than most-positive-fixnum.

	* keymap.c (describe_map): Only use XINT if we checked INTEGERP.

	* lisp.h (OFFSETOF, PSEUDOVECSIZE): New macros.

1424 1425 1426 1427
2006-04-08  Eli Zaretskii  <eliz@gnu.org>

	* w32fns.c (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos.

1428 1429 1430 1431 1432 1433 1434 1435 1436 1437
2006-04-03  Paul Eggert  <eggert@cs.ucla.edu>

	* editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
	../lib-src/b2m.c and ../lib-src/editfns.c.
	(Fcurrent_time_string): Use it.
	Document that the year might not consume 4 columns if it's outside
	the range 1000-9999.
	Check for asctime failure.
	Don't assume that the output string length is always exactly 24.

1438 1439 1440 1441
2006-04-03  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c (XTread_socket): Initialize variable `f' before its use.

1442 1443 1444 1445 1446
2006-04-03  Kenichi Handa  <handa@m17n.org>

	* image.c: Include "charset.h" and "coding.h".
	(x_find_image_file): Return an encoded file name.

Eli Zaretskii's avatar
Eli Zaretskii committed
1447 1448 1449 1450
2006-04-01  Eli Zaretskii  <eliz@gnu.org>

	* configure: Regenerated.

1451 1452 1453 1454
2006-03-31  Kenichi Handa  <handa@m17n.org>

	* xfns.c (xg_set_icon): Delete superfluous UNGCPRO.

1455 1456 1457 1458
2006-03-30  Dan Nicolaescu  <dann@ics.uci.edu>

	* xdisp.c (syms_of_xdisp): Fix variable name.

1459 1460 1461 1462
2006-03-30  Kenichi Handa  <handa@m17n.org>

	* xterm.c (x_term_init): Delete superfluous UNGCPRO.

Juanma Barranquero's avatar
Juanma Barranquero committed
1463 1464 1465 1466
2006-03-29  Juanma Barranquero  <lekktu@gmail.com>

	* keyboard.c (process_tool_bar_item): Reorder dummy args.

1467 1468 1469 1470 1471
2006-03-29  Stefan Monnier  <monnier@iro.umontreal.ca>

	* keyboard.c (tool_bar_items): Use map_keymap.
	(process_tool_bar_item): Add dummy args to fit the required interface.

1472 1473 1474 1475 1476 1477 1478 1479 1480
2006-03-25  Eli Zaretskii  <eliz@gnu.org>

	* .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag
	to zero before calling debug_print or safe_debug_print.

	* print.c (print_output_debug_flag): New global variable.
	(Fexternal_debugging_output) [WINDOWSNT]: Don't call
	OutputDebugString if print_output_debug_flag is zero.

1481 1482
2006-03-24  Paul Eggert  <eggert@cs.ucla.edu>

1483
	* editfns.c (TM_YEAR_BASE): Move up, so the changes below can use it.
1484
	(Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900.
1485 1486
	(Fdecode_time): Cast tm_year to EMACS_INT.
	(Fcurrent_time_string): Report an invalid time specification if
1487
	the argument is invalid.  Also, check for out-of-range time stamps.
1488

Kim F. Storm's avatar
Kim F. Storm committed
1489 1490
2006-03-24  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
1491 1492 1493 1494 1495
	* xterm.c (handle_one_xevent):
	* w32term.c (w32_read_socket):
	* macterm.c (XTread_socket): Don't let key-press clear mouse face
	on in toolbar window if mouse-highlight is an integer.

Kim F. Storm's avatar
Kim F. Storm committed
1496 1497
	* fns.c (sxhash_list): Include last non-nil CDR in hash.

1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512
2006-03-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macmenu.c (enum mac_menu_kind): New enum.
	(min_menu_id): New variable.
	(POPUP_SUBMENU_ID, MIN_POPUP_SUBMENU_ID, MIN_MENU_ID)
	(MIN_SUBMENU_ID): Remove defines.  All uses are replaced with
	min_menu_id and enumerators in enum mac_menu_kind.
	(fill_menu, dispose_menus, install_menu_quit_handler): New arg KIND.
	All uses changed.  Add range check for menu ID.
	(fill_menubar): Add range check for menu ID.
	[HAVE_CANCELMENUTRACKING] (menu_quit_handler): Check error code of
	GetEventParameter.
	(set_frame_menubar, mac_menu_show): Call install_menu_quit_handler
	for each menu kind.

Kim F. Storm's avatar
Kim F. Storm committed
1513 1514
2006-03-22  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
1515 1516 1517 1518 1519
	* xdisp.c: Undo 2006-03-21 change.

	* term.c: Define aliases for append_glyph and produce_stretch_glyph
	when `static' is defined to avoid name clash with those in xdisp.c.

Kim F. Storm's avatar
Kim F. Storm committed
1520 1521 1522 1523 1524
	* process.c (Faccept_process_output): Fix to comply with lisp reference.
	Change arg "timeout" to "seconds" and allow both integer and float value.
	Change arg "timeout-msec" to "millisec" and interpret" as milliseconds
	rather than microseconds.  Fix doc string accordingly.

1525 1526
2006-03-21  Ken Raeburn  <raeburn@raeburn.org>

1527 1528
	* xdisp.c (store_next_glyph): Rename from append_glyph.
	(generate_stretch_glyph): Rename from produce_stretch_glyph.
1529 1530
	All callers changed accordingly.

1531 1532 1533 1534 1535 1536 1537
2006-03-21  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xterm.c: x_session_initialized new variable.
	(x_term_init): Use x_session_initialized to check if
	x_session_initialize should be called.
	(x_initialize): Initialize x_session_initialized.

Kim F. Storm's avatar
Kim F. Storm committed
1538 1539 1540 1541 1542 1543
2006-03-21  Kim F. Storm  <storm@cua.dk>

	* fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow
	bitmap here, but ...
	(update_window_fringes): ... here, so we can test if it has changed.

1544 1545 1546 1547 1548 1549 1550 1551
2006-03-20  Andreas Schwab  <schwab@suse.de>

	* dispnew.c (init_display): Check DISPLAY here.

	* emacs.c (main): Don't check here.

	* xterm.c (x_display_ok): Don't use DISPLAY env var.

1552 1553 1554 1555 1556
2006-03-20  Stefan Monnier  <monnier@iro.umontreal.ca>

	* window.c (window_scroll_pixel_based): Yet another int/Lisp_Object
	mixup (YAILOM).

Eli Zaretskii's avatar
Eli Zaretskii committed
1557 1558 1559 1560
2006-03-20  Eli Zaretskii  <eliz@gnu.org>

	* emacs.c (main): Fix last change.

1561 1562
2006-03-20  Kenichi Handa  <handa@m17n.org>

1563
	* fileio.c (Fwrite_region): Set visit_file to Qnil before GCPRO it.
1564 1565 1566 1567