ChangeLog 785 KB
Newer Older
1 2 3 4 5 6
2006-01-10  Stefan Monnier  <monnier@iro.umontreal.ca>

	* fileio.c (Fexpand_file_name): Remove redundant tests.
	Fix elimination of // so that it doesn't prevent elimination of an
	immediately following /. or /..

7 8 9 10 11 12 13 14
2006-01-09  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c (xg_toggle_notify_cb): New function.
	(xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
	xg_toggle_notify_cb.
	(xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
	parameter value changes so the toggle button gets updated.

Nick Roberts's avatar
Nick Roberts committed
15 16 17 18
2006-01-06  Nick Roberts  <nickrob@snap.net.nz>

	* .gdbinit: Fix typo.

Eli Zaretskii's avatar
Eli Zaretskii committed
19 20 21 22
2006-01-05  Eli Zaretskii  <eliz@gnu.org>

	* .gdbinit: Fix last change.

Kim F. Storm's avatar
Kim F. Storm committed
23 24 25 26 27
2006-01-05  Kim F. Storm  <storm@cua.dk>

	* process.c (Fmake_network_process): Use AF_INET instead of
	AF_UNSPEC when AF_INET6	is not defined.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
28 29 30 31 32 33 34 35 36
2006-01-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
	Don't check that the other type is known file-related one.

	* macfns.c (Fx_server_version): Use gestaltSystemVersionMajor,
	gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
	OS X 10.4 and later.

37 38 39 40 41 42
2006-01-04  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
	let GTK do all image processing.  Importing Emacs own pixmaps to GTK
	looks bad for inactive tool bar items with some Gnome themes.

43 44
2006-01-04  Eli Zaretskii  <eliz@gnu.org>

45 46 47
	* .gdbinit: Avoid a warning message when x_error_quitter is not
	compiled in.

48 49 50
	* process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support
	for w32.

51 52
2006-01-04  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
	* process.c: Add IPv6 support.
	(Qipv4, Qipv6): New vars.
	(syms_of_process): Intern and staticpro them.
	(Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
	with or without port number.  Handle 4 element vector as IPv4 address
	without port number.
	(conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
	(conv_lisp_to_sockaddr): Handle IPv6 addresses.
	(Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
	request that address family only.  :family nil or omitted means to
	determine address family from the specified :host and :service.
	(ifflag_table): Add missing OpenBSD IFF_ flags.
	(server_accept_connection): Handle IPv6 addresses.
	(init_process): Add (:family ipv4) and (:family ipv6) sub-features.

68 69 70
	* .gdbinit: Undo last change.  Instead, look at Vsystem_type to
	determine which breakpoints to set.

71 72 73 74 75 76
2006-01-03  Stefan Monnier  <monnier@iro.umontreal.ca>

	* keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup.

	* window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c).

77 78 79 80
2006-01-03  Romain Francoise  <romain@orebokech.com>

	* emacs.c (main): Update copyright year.

Ken Raeburn's avatar
Ken Raeburn committed
81
2006-01-03  Ken Raeburn  <raeburn@gnu.org>
82 83 84 85

	* callproc.c (delete_temp_file): Bind file-name-handler-alist to
	nil for the call to internal_delete_file.

86 87 88 89 90
2006-01-01  Ken Raeburn  <raeburn@gnu.org>

	* callproc.c (Fcall_process_region): Bind file-name-handler-alist
	to nil for the call to Fwrite_region.

91 92 93 94
2005-12-31  Richard M. Stallman  <rms@gnu.org>

	* minibuf.c (read_minibuf): Clear out all other minibuffer windows.

Eli Zaretskii's avatar
Eli Zaretskii committed
95 96 97 98
2005-12-31  Eli Zaretskii  <eliz@gnu.org>

	* emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.

Luc Teirlinck's avatar
Luc Teirlinck committed
99 100 101 102 103 104
2005-12-30  Luc Teirlinck  <teirllm@auburn.edu>

	* textprop.c (set_text_properties): Reword description of return value.
	Return Qnil if caller wants to remove all text properties from a
	string and the string already has no intervals.

105 106 107 108 109 110 111
2005-12-30  Stefan Monnier  <monnier@iro.umontreal.ca>

	* term.c (visible_cursor): New boolean var.
	(set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
	visible_cursor.
	(syms_of_term): Export the new var as "visible-cursor".

Eli Zaretskii's avatar
Eli Zaretskii committed
112 113 114 115 116
2005-12-30  Eli Zaretskii  <eliz@gnu.org>

	* .gdbinit: Tell users not to worry about GDB warnings that some
	functions do not exist in the binary.

117 118 119 120 121
2005-12-30  Andreas Schwab  <schwab@suse.de>

	* process.c (Fnetwork_interface_info): Correctly terminate the
	loop over ifflag_table.

122 123
2005-12-29  Richard M. Stallman  <rms@gnu.org>

124 125 126 127 128
	* lread.c (readevalloop): Test for reading a whole buffer
	before actually reading anything.  Handle all cases, including
	START = END = nil and an already-narrowed buffer.
	Convert END to a marker if it is a number.

129 130 131 132 133
	* keymap.c (describe_map): Put sparse map elements into an array,
	sort them, then output a sequence of identical bindings on one line.
	(struct describe_map_elt): New data type.
	(describe_map_compare): New function.

134 135
2005-12-28  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

136
	* gtkutil.c (xg_get_file_with_chooser): Change message shown
137 138
	in file chooser.

139 140
2005-12-27  Richard M. Stallman  <rms@gnu.org>

141 142 143 144 145 146
	* lread.c (readevalloop): Set PT and ZV in the proper buffer,
	not the current one.

	* minibuf.c (Fminibuffer_message): Doc fix.
	(read_minibuf): Set current_buffer->enable_multibyte_characters sooner.

147 148 149
	* eval.c (do_autoload): Ignore elements of Vautoload_queue
	where car is not symbol.

Kenichi Handa's avatar
Kenichi Handa committed
150 151 152 153
2005-12-27  Kenichi Handa  <handa@m17n.org>

	* charset.c (lisp_string_width): Check multibyteness of STRING.

154 155 156 157 158 159 160 161 162 163
2005-12-27  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xfns.c: x_show_hidden_files, new variable.
	(syms_of_xfns): Defvar it.

	* gtkutil.c (xg_toggle_visibility_cb): New function.
	(xg_get_file_with_chooser): Add toggle hidden files and a message
	to the new file chooser dialog.  Show hidden files if
	x_show_hidden_files is non-zero.

164 165 166 167 168 169 170 171
2005-12-26  Richard M. Stallman  <rms@gnu.org>

	* keyboard.h: Undo previous change.

	* Makefile.in (undo.o): Undo previous change.

	* undo.c: Undo previous change.

Luc Teirlinck's avatar
Luc Teirlinck committed
172 173
2005-12-26  Luc Teirlinck  <teirllm@auburn.edu>

Luc Teirlinck's avatar
Luc Teirlinck committed
174 175
	* keyboard.h: extern last_point_position_window.

Luc Teirlinck's avatar
Luc Teirlinck committed
176 177
	* undo.c: include keyboard.h.

Luc Teirlinck's avatar
Luc Teirlinck committed
178
	* Makefile.in (undo.o): Depend on keyboard.h.
Luc Teirlinck's avatar
Luc Teirlinck committed
179

Richard M. Stallman's avatar
Richard M. Stallman committed
180 181
2005-12-26  Richard M. Stallman  <rms@gnu.org>

182 183
	* commands.h (last_point_position_window): Declare.

Richard M. Stallman's avatar
Richard M. Stallman committed
184 185 186 187 188 189 190 191 192
	* undo.c: Depend on window.h.
	(record_point): Save old point from the correct window.

	* keyboard.c (last_point_position_window): New variable.
	(command_loop_1): Set last_point_position_window.
	(syms_of_keyboard): Init it.

	* Makefile.in (undo.o): Depend on window.h.

193 194 195 196 197 198 199
2005-12-25  Richard M. Stallman  <rms@gnu.org>

	* eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
	to undo a `provide'.

	* fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.

Karl Berry's avatar
Karl Berry committed
200 201 202 203 204
2005-12-25  Giorgos Keramidas  <keramida@ceid.upatras.gr>

	* m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
	define for FreeBSD on this platform.

205 206 207 208 209
2005-12-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.h (TYPE_FILE_NAME): New define.
	(posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.

210 211
	* mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname):
	Add prototypes.  Make static.
212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228
	(mac_aedesc_to_lisp): Initialize err to noErr.
	(mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
	(init_coercion_handler): New functions.
	(Fmac_coerce_ae_data): Use coercion of Apple event data for
	translation from/to file names.

	* macterm.c: Don't include sys/param.h.
	(init_coercion_handler): Add extern.
	[MAC_OS8] (main): Call init_coercion_handler.
	(mac_initialize) [MAC_OSX]: Likewise.
	[TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
	Apple event data for translation from/to file names.

	* macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.

	* image.c [MAC_OS] (find_image_fsspec): Likewise.

229 230 231 232 233 234
2005-12-23  Martin Rudalics  <rudalics@gmx.at>  (tiny change)

	* insdel.c (insert, insert_and_inherit, insert_before_markers)
	(insert_before_markers_and_inherit): Make sure FROM is correct
	when `after-change-functions' are called.

235 236 237 238 239 240 241 242 243
2005-12-23  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xfns.c (Fx_uses_old_gtk_dialog): New function.

	* gtkutil.c (xg_uses_old_file_dialog): New function.
	(xg_get_file_name): Use xg_uses_old_file_dialog.

	* gtkutil.h: Declare xg_uses_old_file_dialog.

244 245 246 247
2005-12-22  Richard M. Stallman  <rms@gnu.org>

	* xmenu.c (xmenu_show): Call inhibit_garbage_collection.

248 249 250 251 252 253 254
2005-12-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.

	* macgui.h (XCharStruct): Remove member `valid_p'.
	(STORE_XCHARSTRUCT): Don't set member `valid_p'.
	(XCharStructRow): New typedef.
255 256
	(XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
	New macros.
257 258 259 260 261 262 263 264 265 266 267
	(struct MacFontStruct): Add member `bounds'.  Remove member
	`per_char'.  All uses for QuichDraw Text fonts are changed to
	`bounds.per_char'.  ATSUI font bounds are represented as an array
	`bounds.rows' of XCharStructRow's, each of which consists of a
	bitmap of valid entries and an array of char bounds.

	* macterm.c (mac_per_char_metric): Add prototype.
	(x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
	(mac_query_char_extents): New function.
	(x_per_char_metric): Use it.
	(XLoadQueryFont): Likewise.  Consolidate min/max_bounds calculations.
268 269
	[USE_CG_TEXT_DRAWING] (mac_draw_string_cg):
	Use mac_per_char_metric instead of x_per_char_metric.
270 271 272 273
	(mac_text_extents_16): New function.
	(mac_compute_glyph_string_overhangs): Use it.
	(mac_unload_font): Free member `bounds' in struct MacFontStruct.

274 275 276 277 278
2005-12-21  Stefan Monnier  <monnier@iro.umontreal.ca>

	* minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
	(Fminibuffer_completion_help): Remove duplicates before display.

279 280
2005-12-21  L$,1 q(Brentey K,Aa(Broly  <lorentey@elte.hu>

281
	* print.c (print_preprocess): Don't lose print_depth levels while
282 283
	iterating.

284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314
2005-12-21  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macmenu.c (Qmac_apple_event): Add extern.
	(set_frame_menubar, mac_menu_show keymp_panes)
	(single_keymap_panes, list_of_panes, list_of_item)
	(single_menu_item): Add argument types to prototypes.
	(mac_dialog_show) [HAVE_DIALOGS]: Likewise.
	(struct skp): New struct (from xmenu.c).
	(single_keymap_panes, single_menu_item, list_of_panes)
	(list_of_item): Sync with xmenu.c.
	(Fx_popup_menu, Fx_popup_dialog): Likewise.  Don't get window from
	POSITION if it is mac-apple-event event.
	(menubar_selection_callback): Don't use menu_command_in_progress.
	(set_frame_menubar): First parse all submenus, then make
	widget_value trees from them.  Don't allocate any widget_value
	objects until we are done with the parsing.
	(parse_single_submenu, digest_single_submenu): New functions.
	(single_submenu): Function deleted, replaced by those two.
	(install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't
	create or dispose of EventHandlerUPP.  Install hander to all submenus.
	(mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
	instead of ENCODE_SYSTEM.
	(free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
	integer values.
	[HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
	(add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
	format menu item string.  Don't use NULL for integer value.

	* macterm.h (struct mac_output): Remove unused member
	menu_command_in_progress.

Juri Linkov's avatar
Juri Linkov committed
315 316 317 318 319 320 321 322 323 324 325
2005-12-20  Juri Linkov  <juri@jurta.org>

	* xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
	position is non-nil, else set it to nil.

	* macmenu.c (Fx_popup_menu): Add `else' to set
	Vmenu_updating_frame to nil only if position is nil.

	* w32menu.c (Fx_popup_menu): Add `else' to set
	Vmenu_updating_frame to nil only if position is nil.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341
2005-12-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* keyboard.c (make_lispy_event): Drag-and-drop items are now
	stored in member `args' of struct input_event.

	* termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.

	* xselect.c (x_handle_dnd_message): Drag-and-drop items are now
	stored in member `args' of struct input_event.

	* w32term.c (construct_drag_n_drop): Likewise.

	* macterm.c (mac_do_receive_drag): Likewise.
	(x_use_underline_position_properties): Undo 2005-07-13 change.
	(syms_of_macterm) <x-use-underline-position-properties>: Likewise.
	(mac_use_core_graphics, mac_wheel_button_is_mouse_2)
342 343
	(mac_pass_command_to_system, mac_pass_control_to_system):
	New boolean variables renamed from Lisp_Object ones
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
344
	Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
345 346
	Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
	All uses changed.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
347 348
	(syms_of_macterm): DEFVAR_BOOL them.  Remove previous DEFVAR_LISPs.
	Make them user options.
349 350
	(mac_handle_command_event, mac_store_services_event):
	Call create_apple_event_from_event_ref without 5th argument.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
351 352 353 354 355 356 357
	(backtranslate_modified_keycode): Mask off modifier keys that are
	mapped to some Emacs modifiers before passing it to KeyTranslate.
	(syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
	`mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
	Fix docstrings of `mac-*-modifier'.

	* mac.c (create_apple_event_from_event_ref): Remove arg `types'.
358 359
	(do_applescript): Change argument types to Lisp_Object.
	All uses changed.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
360 361 362 363

	* macterm.h (create_apple_event_from_event_ref): Remove 5th
	argument from extern.

364 365 366 367 368
2005-12-18  Dan Nicolaescu  <dann@ics.uci.edu>

	* xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
	the answer, return `lambda', not nil.

Eli Zaretskii's avatar
Eli Zaretskii committed
369 370 371 372 373 374 375
2005-12-17  Eli Zaretskii  <eliz@gnu.org>

	* makefile.w32-in (bootstrap-temacs): Warn that parts of commands
	enclosed in $(ARGQUOTE)s should not be split between two lines, as
	that will break with GNU Make >3.80, when sh.exe is used and
	arg quoting is with '..'.

376 377 378 379 380
2005-12-17  Chong Yidong  <cyd@stupidchicken.com>

	* print.c (print_preprocess): Just signal an error if print_depth
	is exceeded.

Eli Zaretskii's avatar
Eli Zaretskii committed
381 382 383 384
2005-12-17  Eli Zaretskii  <eliz@gnu.org>

	* .gdbinit: Set a breakpoint on w32_abort.

Juri Linkov's avatar
Juri Linkov committed
385 386 387 388 389 390 391 392 393 394 395 396 397
2005-12-16  Juri Linkov  <juri@jurta.org>

	* minibuf.c (Fminibuffer_completion_contents): New Lisp function
	created from minibuffer_completion_contents.
	(minibuffer_completion_contents): Remove.
	(do_completion, Fminibuffer_complete_word)
	(Fminibuffer_completion_help): Replace minibuffer_completion_contents
	with Fminibuffer_completion_contents.
	(syms_of_minibuf): Add Sminibuffer_completion_contents.
	(Fdisplay_completion_list): Doc fix.
	(display_completion_list_1): Use `nil' for second arg of
	`Fdisplay_completion_list'.

398 399 400 401
2005-12-14  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xfns.c (compute_tip_xy): Handle negative dx and dy.

402
	* w32fns.c (compute_tip_xy): Ditto.
403

404
	* macfns.c (compute_tip_xy): Ditto.
405

406 407 408 409 410
2005-12-14  Chong Yidong  <cyd@stupidchicken.com>

	* print.c (print_preprocess): Go to a deeper print_depth to avoid
	print_object loop.

411 412 413 414
2005-12-14  Kyotaro HORIGUCHI  <horiguti@meadowy.org>  (tiny change)

	* coding.c (code_convert_region_unwind): GCPRO arg.

415 416
2005-12-12  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

417 418 419 420 421 422 423
	* xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
	i.e. dy is offset from top of frame instead of bottom.

	* macfns.c (compute_tip_xy): Ditto.

	* w32fns.c (compute_tip_xy): Ditto.

424 425 426 427 428 429 430
	* gtkutil.c (SSDATA): New macro to remove compiler warnings.
	(xg_get_image_for_pixmap, xg_create_frame_widgets)
	(xg_get_file_with_chooser): Use SSDATA instead of SDATA.

	* xmenu.c (menubar_selection_callback): Do nothing if the callback
	is for an unselected radio menu item.

431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448
2005-12-11  Richard M. Stallman  <rms@gnu.org>

	* xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.

	* lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.

	* keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
	(Flookup_key): Doc fix.
	(syms_of_keymap) <function-key-map>: Doc fix.

	* fns.c (Frequire): Treat evaluating from a source file
	like loading the file.

	* floatfns.c (Flog): Doc fix.

	* fileio.c (Finsert_file_contents): Set Vdeactivate_mark
	when we change the buffer.

Juri Linkov's avatar
Juri Linkov committed
449 450 451 452 453 454 455 456 457
2005-12-11  Juri Linkov  <juri@jurta.org>

	* minibuf.c (display_completion_list_1):
	Call `minibuffer_completion_contents' instead of using `nil' as
	second arg of `Fdisplay_completion_list'.
	(keys_of_minibuf): Unbind SPC in
	Vminibuffer_local_filename_completion_map (see also related
	change on 2005-12-06).

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
458 459 460 461 462 463 464
2005-12-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* emacs.c (main) [MAC_OS8]: Undo previous change.

	* macselect.c (syms_of_macselect) <mac-apple-event-map>:
	Initialize to nil.  Keymap is now created in lisp/term/mac-win.el.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481
2005-12-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* Makefile.in (macselect.o): Depend on keymap.h.

	* emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
	syms_of_macselect.

	* image.c (init_image) [MAC_OS]: Don't call EnterMovies.
	[!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.

	* keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
	(syms_of_keyboard) [MAC_OS]: Initialize it.
	(make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.

	* mac.c (Qundecoded_file_name): New variable.
	(syms_of_mac): Initialize it.
	(mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
482
	[TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522
	(Fmac_coerce_ae_data): New defun.
	(syms_of_mac): Defsubr it.

	* macselect.c: Include keymap.h.
	(mac_ready_for_apple_events): New variable.
	(Vmac_apple_event_map, Qmac_apple_event_class)
	(Qmac_apple_event_id): New variables.
	(syms_of_macselect): Initialize them.
	(Qundefined, mac_store_apple_event): Add externs.
	(struct apple_event_binding): New struct.
	(find_event_binding_fun, find_event_binding)
	(mac_find_apple_event_spec, defer_apple_events)
	(mac_handle_apple_event, init_apple_event_handler)
	(copy_scrap_flavor_data): New functions.
	(Fmac_process_deferred_apple_events): New defun.
	(syms_of_macselect): Defsubr it.
	(mac_store_services_event): Fix extern.
	(mac_handle_service_event): Don't allocate Lisp objects during
	asynchronous input processing.  Use mac_store_services_event
	instead of mac_store_application_menu_event.

	* macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
	(Qpreferences): Remove variables.
	(syms_of_macterm) : Don't initialize them.
	(Qhicommand) [USE_CARBON_EVENTS]: New variable.
	(syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
	(init_required_apple_events, do_ae_open_application)
	(do_ae_print_documents, do_ae_open_documents)
	(do_ae_quit_application): Remove functions and prototypes.
	(mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
	(mac_find_apple_event_spec): Add externs.
	(mac_store_application_menu_event): Remove function.
	(mac_store_apple_event, mac_make_lispy_event_code): New functions.
	(mac_handle_command_event): Create Apple event from Carbon event.
	Use mac_store_apple_event instead of mac_store_application_menu_event.
	[MAC_OSX] (mac_store_services_event): Likewise.
	(struct SelectionRange, SelectionRange): Remove struct and typedef.
	[MAC_OS8] (main): Call init_apple_event_handler instead of
	init_required_apple_events.
	(mac_initialize) [MAC_OSX]: Likewise.
523 524
	[!USE_CARBON_EVENTS] (mac_wait_next_event):
	Use mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
525

526 527
	* macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp):
	Add externs.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
528 529 530 531 532 533
	(create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
	(Fmac_get_preference): Add EXFUN.

	* termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
	event.

534 535 536 537
2005-12-09  Richard M. Stallman  <rms@gnu.org>

	* xfns.c (Fx_create_frame): Reinstate previous change.

Eli Zaretskii's avatar
Eli Zaretskii committed
538 539 540 541 542
2005-12-09  Eli Zaretskii  <eliz@gnu.org>

	* w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
	GDB to the abort dialog.

Kim F. Storm's avatar
Kim F. Storm committed
543 544 545 546 547
2005-12-09  Kyotaro HORIGUCHI <horiguti@meadowy.org>  (tiny change)

	* indent.c (Fvertical_motion): Force move if starting on
	stretch glyph.

548 549
2005-12-08  Richard M. Stallman  <rms@gnu.org>

550 551
	* lread.c (read_escape) <\s>: Don't treat strings specially.

552 553
	* xfns.c (Fx_create_frame): Comment out previous change.

554 555 556 557 558
2005-12-07  L$,1 q(Brentey K,Aa(Broly  <lorentey@elte.hu>

	* xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
	when needed.

559 560 561 562 563 564
2005-12-06  Stefan Monnier  <monnier@iro.umontreal.ca>

	* minibuf.c (keys_of_minibuf): Just unbind SPC in
	Vminibuffer_local_filename_completion_map rather than forcing it
	explicitly to the same binding as the global map.

565 566
2005-12-06  Ken Raeburn  <raeburn@gnu.org>

567
	* buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP args.
568
	* bytecode.c (Fbyte_code): Likewise.
569
	* fileio.c (internal_delete_file, Fread_file_name_internal): Likewise.
570 571 572
	* minibuf.c (Fminibuffer_complete_and_exit): Likewise.
	* undo.c (truncate_undo_list): Likewise.

573 574 575 576 577 578
2005-12-05  Richard M. Stallman  <rms@gnu.org>

	* window.c (enlarge_window): Eliminate arg preserve_before.
	Assume it is 0.  All callers changed.
	(Fenlarge_window, Fshrink_window): Likewise.

579 580 581 582 583
2005-12-02  Eli Zaretskii  <eliz@gnu.org>

	* w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
	fit below.

584 585 586 587 588 589 590 591 592 593
2005-12-02  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xterm.h: Add prototype for xg_set_icon_from_xpm_data.

	* xfns.c (x_real_positions): int ign => unsigned int.
	(xg_set_icon_from_xpm_data): Remove unused variable err.
	(x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
	to remove compiler warning.
	(compute_tip_xy): Put tip above pointer if it doesn't fit below.

Eli Zaretskii's avatar
Eli Zaretskii committed
594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609
2005-12-02  David Reitter  <david.reitter@gmail.com>

	* minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
	non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
	and Vminibuffer_local_must_match_filename_map keymaps.
	(keys_of_minibuf): Bind SPC in the new file-name completion keymaps.

	* keymap.c (Vminibuffer_local_filename_completion_map)
	(Vminibuffer_local_must_match_filename_map): New variables.
	(syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
	parent to be Vminibuffer_local_completion_map and
	Vminibuffer_local_must_match_map, respectively.

	* commands.h (Vminibuffer_local_filename_completion_map)
	(Vminibuffer_local_must_match_filename_map): Declare the new keymaps.

610 611 612 613 614
2005-12-01  Stefan Monnier  <monnier@iro.umontreal.ca>

	* window.c (Fset_window_configuration): Don't accidentally copy the
	window-point of one window to another.

615 616
2005-11-30  L$,1 q(Brentey K,Aa(Broly  <lorentey@elte.hu>

Romain Francoise's avatar
Romain Francoise committed
617
	* buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
618

Kim F. Storm's avatar
Kim F. Storm committed
619 620 621 622 623 624
2005-11-30  Kim F. Storm  <storm@cua.dk>

	* alloc.c: Include fcntl.h.  Define O_WRONLY if not defined.
	(valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
	passing it to `emacs_write'.

625 626 627 628
2005-11-29  Ari Roponen  <arjuropo@cc.jyu.fi>  (tiny change)

	* atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.

629 630 631 632
2005-11-27  Richard M. Stallman  <rms@gnu.org>

	* window.c (adjust_window_trailing_edge): New function.
	(Fadjust_window_trailing_edge): New function.
633
	(syms_of_window): Defsubr it.
634 635 636
	(window_deletion_count): New variable.
	(delete_window): Update window_deletion_count.

Eli Zaretskii's avatar
Eli Zaretskii committed
637 638 639 640 641
2005-11-26  Eli Zaretskii  <eliz@gnu.org>

	* minibuf.c (syms_of_minibuf): Mention the extension of
	`completion-auto-help's meaning by complete.el.

Eli Zaretskii's avatar
Eli Zaretskii committed
642 643
2005-11-26  Henrik Enberg  <henrik.enberg@telia.com>

644
	* xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
Eli Zaretskii's avatar
Eli Zaretskii committed
645 646
	Handle :inherit property as a lisp expression.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
647 648 649 650 651 652 653 654 655 656 657
2005-11-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c (Qcontrol): Rename from Qctrl.  All uses changed.
	(syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
	Qsuper, and Qmodifier_value.
	(Vmac_control_modifier, Vmac_option_modifier)
	(Vmac_command_modifier, Vmac_function_modifier)
	(Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
	(Vmac_pass_command_to_system, Vmac_pass_control_to_system)
	(Vmac_charset_info_alist): Doc fixes.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
658 659 660 661 662 663 664 665 666 667 668 669 670 671
2005-11-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* emacs.c (main) [MAC_OSX]: Change working directory to home
	directory if `-psn_*' option is specified.

	* mac.c (DECODE_UTF_8): Remove macro.
	[TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
	created from cfstring_to_lisp.
	[TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
	(xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.

	* macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
	Add prototype.

672
2005-11-21  Ken Raeburn  <raeburn@gnu.org>
673 674 675 676

	* keymap.c (shadow_lookup): Use make_number to pass a number to
	Fsubstring.

Juri Linkov's avatar
Juri Linkov committed
677 678 679 680
2005-11-21  Juri Linkov  <juri@jurta.org>

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

681 682
2005-11-20  Chong Yidong  <cyd@stupidchicken.com>

683 684
	* xfaces.c (Finternal_set_lisp_face_attribute):
	Use :ignore-defface for new frame defaults when `unspecified' is
685 686
	supplied.
	(Finternal_get_lisp_face_attribute): Hide :ignore-defface.
687 688
	(merge_face_vectors): Don't do :ignore-defface overwriting here.
	(Finternal_merge_in_global_face): Do it here.
689

Juri Linkov's avatar
Juri Linkov committed
690 691 692 693 694
2005-11-20  Juri Linkov  <juri@jurta.org>

	* charset.c (invalid_character): Use Lisp-readable syntax
	for octal and hex.  Reorder decimal, octal and hex values.

Nick Roberts's avatar
Nick Roberts committed
695 696 697 698 699
2005-11-20  Nick Roberts  <nickrob@snap.net.nz>

	* lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
	this type is recognised when debugging.

Andreas Schwab's avatar
Andreas Schwab committed
700 701 702 703 704
2005-11-19  Andreas Schwab  <schwab@suse.de>

	* .gdbinit (nextcons, xcdr, xfloat): Update for changes in
	Lisp_Cons and Lisp_Float.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
705 706 707 708
2005-11-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
	New variable.
709
	[USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
710 711 712 713
	(init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
	[USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
	font size is smaller than or equal to cg_text_anti_aliasing_threshold.

714 715
2005-11-17  Chong Yidong  <cyd@stupidchicken.com>

716
	* image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
717

718 719 720
	* xfaces.c (Qignore_defface): New variable.
	(syms_of_xfaces): Provide `:ignore-defface'.
	(IGNORE_DEFFACE_P): New macro.
721 722
	(check_lface_attrs, lface_fully_specified_p)
	(Finternal_set_lisp_face_attribute)
723 724
	(Fface_attribute_relative_p, Fmerge_face_attribute):
	Handle Qignore_defface as a possible value.
725 726 727
	(merge_face_vectors): The merged face is `unspecified' if the
	mergee specifies `:ignore-defface'.

Stefan Monnier's avatar
Stefan Monnier committed
728 729 730 731
2005-11-16  Stefan Monnier  <monnier@iro.umontreal.ca>

	* lread.c (readevalloop): Add missing GCPROs.

732 733
2005-11-16  Chong Yidong  <cyd@stupidchicken.com>

734 735
	* xfns.c (xg_set_icon_from_xpm_data): New function.

Stefan Monnier's avatar
Stefan Monnier committed
736 737
	* gnu.h (gnu_xpm_bits): Rename from gnu_bits.
	(gnu_xbm_bits): Rename from gnu_bits (xbm version).
738 739 740 741

	* xterm.c (x_bitmap_icon): Use the xpm if available.

	* image.c (x_create_bitmap_from_xpm_data): New function.
Chong Yidong's avatar
Chong Yidong committed
742
	(x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
743

Luc Teirlinck's avatar
Luc Teirlinck committed
744 745 746 747
2005-11-15  Luc Teirlinck  <teirllm@auburn.edu>

	* Makefile.in (lisp, shortlisp): Add rfn-eshadow.

Nick Roberts's avatar
Nick Roberts committed
748 749 750 751
2005-11-16  Nick Roberts  <nickrob@snap.net.nz>

	* .gdbinit: Make SIGTSTP work like SIGINT normally does.

752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768
2005-11-15  Andreas Schwab  <schwab@suse.de>

	* lisp.h (struct Lisp_Cons): Make cdr a union.
	(XCDR_AS_LVALUE): Adjust.
	(struct Lisp_Float): Make data a union.
	(XFLOAT_DATA): Adjust.

	* alloc.c (free_float): Make free list chaining aliasing-safe.
	(make_float): Likewise.
	(free_cons): Likewise.
	(Fcons): Likewise.
	(check_cons_list): Likewise.
	(Fmake_symbol): Likewise.
	(allocate_misc): Likewise.
	(free_misc): Likewise.
	(gc_sweep): Likewise.

769 770
2005-11-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

771 772 773 774
	* mac.c (HASHKEY_QUERY_CACHE): New define.
	(xrm_create_database, xrm_q_put_resource): Empty query cache.
	(xrm_get_resource): Use query cache.

775 776 777
	* image.c (init_image) [MAC_OS]: Don't call EnterMovies if
	inhibit_window_system is set.

778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796
2005-11-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macgui.h (USE_CG_TEXT_DRAWING): New define.
	(struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
	and cg_glyphs.

	* macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
	(x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
	(XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
	cg_glyphs in struct MacFontStruct if synthesized bold or italic is
	not used and font substitution never occurs for ASCII and Latin-1
	characters.
	(XLoadQueryFont): Maximum and minimum metrics are now those among
	ASCII characters.
	(XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
	height adjustments for Courier, Helvetica, and Times.

	* s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.

797 798
2005-11-11  David Reitter <david.reitter@gmail.com>

Steven Tamm's avatar
Steven Tamm committed
799 800 801 802 803 804
	* macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
	macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
	Vmac_control_modifier / mac-control-modifier,
	Vmac_option_modifier / mac-option-modifier,
	Vmac_command_modifier / mac-command-modifier.
	(mac_to_emacs_modifiers): Use the new style modifier
Stefan Monnier's avatar
Stefan Monnier committed
805 806 807 808 809
	variables.  Return UInt32 (modifiers are longs now.)
	(backtranslate_modified_keycode): New function (refactoring).
	(XTread_socket): Use new modifier variables and refactored function.
	(mac_determine_quit_char_modifiers): Remove macMetaKey (there is
	no dedicated meta key.  Not in use anyway.)
810 811 812
	(convert_fn_keycode): Map Fn-keys to their original keycode
	using a table (english keyboard only).

Kim F. Storm's avatar
Kim F. Storm committed
813 814
2005-11-11  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
815 816 817 818
	* .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
	Add post hook to "backtrace" to always dump lisp call stack to
	increase chance of people sending it to us when reporting bugs.

819 820
	* doc.c (Fsubstitute_command_keys): Doc fix.

Kim F. Storm's avatar
Kim F. Storm committed
821 822 823 824 825 826 827 828
	* dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.

	* xdisp.c (handle_stop): Skip overlay string handling if
	ignore_overlay_strings_at_pos_p is set.
	(set_iterator_to_next): At end of display vector, set
	ignore_overlay_strings_at_pos_p if dpvec came from an overlay
	string, so we skip those overlay strings at current pos.

Lars Hansen's avatar
Lars Hansen committed
829 830 831 832
2005-11-10  Lars Hansen <larsh@soem.dk>

	* fileio.c (file-regular-p): Doc fix.

Kim F. Storm's avatar
Kim F. Storm committed
833 834 835 836 837 838 839 840 841 842 843 844 845 846
2005-11-10  Kim F. Storm  <storm@cua.dk>

	* alloc.c (valid_lisp_object_p): New function to validate that
	an object is really a valid Lisp_Object.

	* lisp.h (valid_lisp_object_p): Add prototype.

	* print.c (safe_debug_print): New function to be called from gdb
	to print Lisp objects; use valid_lisp_object_p to avoid crashing
	if user tries to print something which is not a Lisp object.

	* .gdbinit (pp, pp1): Use safe_debug_print.
	(pv, pv1): New commands to print value of a lisp variable.

Nick Roberts's avatar
Nick Roberts committed
847 848 849 850
2005-11-10  Nick Roberts  <nickrob@snap.net.nz>

	* .gdbinit (pp1): New user-defined function.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
851 852 853 854 855 856 857 858 859 860 861 862 863
2005-11-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.

	* mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
	related variables for dumped executable.

	* unexmacosx.c (unexec_write_zero): New function.
	(copy_data_segment): Clear uninitialized local variables in
	statically linked libraries.

	* s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.

Juri Linkov's avatar
Juri Linkov committed
864 865 866 867 868 869
2005-11-09  Juri Linkov  <juri@jurta.org>

	* keymap.c (shadow_lookup): If Flookup_key returns a number,
	call it again with a sub-key-sequence, and if its return value
	is non-nil (sub-key is bound), return nil.

Kim F. Storm's avatar
Kim F. Storm committed
870 871 872 873 874 875 876
2005-11-08  Kim F. Storm  <storm@cua.dk>

	* process.c (Fsignal_process): Recognize signal names with and
	without SIG prefix, e.g. SIGHUP and HUP.

	* search.c (search_buffer): No need to initialize base_pat.

877 878 879 880 881
2005-11-04  Stefan Monnier  <monnier@iro.umontreal.ca>

	* window.c (Fget_lru_window, Fget_largest_window, window_loop):
	Don't abuse the `mini' arg.  Use the `obj' arg instead.

Kim F. Storm's avatar
Kim F. Storm committed
882 883 884 885
2005-11-04  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (show_mouse_face): Clear mouse face to eol.

886 887 888 889 890
2005-11-03  Dan Nicolaescu  <dann@ics.uci.edu>

	* Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
	font-lock.elc and jit-lock.elc.

891 892 893 894 895 896 897 898 899 900
2005-11-03  Richard M. Stallman  <rms@gnu.org>

	* window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
	(enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
	(CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.

	* sheap.c (STATIC_HEAP_SIZE): Increment both definitions.

	* alloc.c (refill_memory_reserve): Move decl out of conditionals.

901 902 903 904 905
2005-11-03  Stefan Monnier  <monnier@iro.umontreal.ca>

	* window.c (Fdisplay_buffer): Fix last change to not use
	a dedicated window.

Kim F. Storm's avatar
Kim F. Storm committed
906 907 908 909 910 911
2005-11-01  Kim F. Storm  <storm@cua.dk>

	* fringe.c (update_window_fringes): Undo 2005-10-27 change.
	Instead, rotate the bottom angle bitmap 180 degrees to indicate
	that the bottom row does not end in a newline.

Andreas Schwab's avatar
Andreas Schwab committed
912 913 914 915
2005-11-01  Andreas Schwab  <schwab@suse.de>

	* unexelf.c (unexec): Handle .plt section in BSS segment.

916 917
2005-11-01  Stefan Monnier  <monnier@iro.umontreal.ca>

Stefan Monnier's avatar
Stefan Monnier committed
918 919
	* lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).

920 921 922 923 924 925 926
	* window.c (window_loop): For LRU and LARGEST, let the `mini' argument
	determine whether to consider dedicated windows as well.
	(Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
	(Fdisplay_buffer): Do consider dedicated windows in those cases where
	we will split the window rather than reuse it.
	Don't try to use windows on other displays.

927 928 929 930
2005-10-31  Dan Nicolaescu  <dann@ics.uci.edu>

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

931 932 933 934 935
2005-10-31  Romain Francoise  <romain@orebokech.com>

	* macfns.c: Update copyright year.
	* m/gould.h: Likewise.

Kim F. Storm's avatar
Kim F. Storm committed
936 937 938 939 940 941 942
2005-10-30  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (display_line): Restore it->current_x and call
	extend_face_to_end_of_line when last glyph doesn't fit on line.
	(set_glyph_string_background_width): Remove specific tests  here
	to see if face background should extend to end of line.  Simplify.

943 944 945 946 947 948
2005-10-30  Richard M. Stallman  <rms@gnu.org>

	* alloc.c (BYTES_USED): Use uordblks, not arena.
	(bytes_used_when_reconsidered): New variable.
	(emacs_blocked_free): Set that.

949 950 951 952
2005-10-29  Chong Yidong  <cyd@stupidchicken.com>

	* alloc.c (emacs_blocked_free): Fix typo.

953 954
2005-10-29  Richard M. Stallman  <rms@gnu.org>

955 956
	* data.c (Fmake_variable_frame_local): Doc fix.

957 958 959 960 961 962 963 964 965 966 967
	* xdisp.c (handle_fontified_prop): Do nothing if memory full.
	(format_mode_line_unwind_data): New arg SAVE_PROPTRANS
	controls whether to save and restore mode_line_proptrans_alist.
	Callers changed.
	(unwind_format_mode_line): Work with that feature.
	(redisplay_internal): Don't call prepare_menu_bars if memory full.
	(move_elt_to_front): New function.
	(display_mode_element): Use move_elt_to_front.
	Don't bother munging text props on a null string.
	Delete obsolete elts from mode_line_proptrans_alist.
	(decode_mode_spec): Test Vmemory_full, not spare_memory.
968
	(Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
969

970 971
	* lisp.h (memory_full_cons_threshold): Declare.
	(internal_lisp_condition_case): Declare.
972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993

	* alloc.c (syms_of_alloc) <memory-full>: Doc fix.
	(Fmemory_full_p): Function deleted.
	(syms_of_alloc): Don't defsubr it.
	(memory_full_cons_threshold): New variable.
	(spare_memory): Now a vector of 7 elts.
	(buffer_memory_full): Don't set Vmemory_full here.
	(xfree): Don't try to refill here.
	(emacs_blocked_free): Record BYTES_USED in local var.
	(memory_full): Now free all the slots in spare_memory.
	(refill_memory_reserve): Allocate each slot in spare_memory.
	(init_alloc_once): Call refill_memory_reserve.

	* keyboard.c (command_loop_1): Don't set Vmemory_full here.

	* eval.c (internal_lisp_condition_case): New function.
	(Fcondition_case): Use internal_lisp_condition_case.
	(Feval): Test Vmemory_full and memory_full_cons_threshold.
	(Ffuncall): Likewise.

	* bytecode.c (Fbyte_code): Use internal_lisp_condition_case.

Stefan Monnier's avatar
Stefan Monnier committed
994 995 996 997
2005-10-29  Stefan Monnier  <monnier@iro.umontreal.ca>

	* syntax.c (Fparse_partial_sexp): Fix docstring.

998 999
2005-10-28  Romain Francoise  <romain@orebokech.com>

Stefan Monnier's avatar
Stefan Monnier committed
1000
	* puresize.h (BASE_PURESIZE): Increment to 1130000.
1001

1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013
2005-10-28  Richard M. Stallman  <rms@gnu.org>

	* xfns.c (syms_of_xfns): Provide `x' as feature.

	* xdisp.c (decode_mode_spec): Define %e to indicate memory full.

	* editfns.c (Fformat): Don't include string padding
	between info[n].start and info[n].end.

	* alloc.c (spare_memory): No longer static.
	(xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.

Stefan Monnier's avatar
Stefan Monnier committed
1014
	* puresize.h (BASE_PURESIZE): Increment to 1120000.
1015

1016 1017
2005-10-27  Chong Yidong  <cyd@stupidchicken.com>

Stefan Monnier's avatar
Stefan Monnier committed
1018
	* data.c (Fmake_variable_frame_local): Add clarification to docstring.
1019

1020 1021 1022
	* fringe.c (update_window_fringes): Handle case where buffer ends
	with a newline.

1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040
2005-10-27  Kenichi Handa  <handa@m17n.org>

	* coding.h (DECODE_SYSTEM): Fix argument name; name->str.

2005-10-24  Kenichi Handa  <handa@m17n.org>

	* charset.h (charset_mule_unicode_0100_24ff)
	(charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
	Extern them.

	* charset.c (charset_mule_unicode_0100_24ff)
	(charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
	New variables.
	(Fsetup_special_charsets): Initialize them.

	* xterm.c (handle_one_xevent): Handle keysyms directly mapped to
	supported Unicode characters.

1041 1042 1043 1044
2005-10-25  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (w32_to_x_font): Avoid forcing font widths.

1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057
2005-10-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* image.c [MAC_OS] (image_load_qt_1): Check image size.
	Use GraphicsImportGetImageDescription instead of
	GraphicsImportGetNaturalBounds.
	[MAC_OSX] (image_load_quartz2d): Check image size.
	[MAC_OS] (xpm_load_image): Likewise.

	* macterm.c (last_mouse_glyph_frame): New var.
	(note_mouse_movement): Say mouse moved if current frame differs
	from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
	(XTmouse_position): Set last_mouse_glyph_frame.
	(XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
1058
	(mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
1059 1060 1061 1062 1063 1064 1065 1066
	Use EndianU16_BtoN.
	(mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
	(x_per_char_metric, XLoadQueryFont)
	[MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
	glyph bounds.
	(mac_to_x_fontname, mac_do_list_fonts)
	(mac_initialize_display_info): Change screen resolutions to 72dpi.

Masatake YAMATO's avatar
Masatake YAMATO committed
1067 1068 1069 1070
2005-10-25  Masatake YAMATO  <jet@gyve.org>

	* minibuf.c (Fdisplay_completion_list): Small doc fix.

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

Kim F. Storm's avatar
Kim F. Storm committed
1073 1074 1075 1076 1077 1078 1079 1080
	* xterm.c: Undo 2005-10-23 change.
	(last_mouse_glyph_frame): New var.
	(note_mouse_movement): Say mouse moved if current frame differs
	from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
	(XTmouse_position): Set last_mouse_glyph_frame.
	(handle_one_xevent): Clear last_mouse_glyph_frame [instead of
	last_mouse_glyph] on mouse up/down event.

Kim F. Storm's avatar
Kim F. Storm committed
1081 1082
	* editfns.c (Fcompare_buffer_substrings): Fix last change.

Stefan Monnier's avatar
Stefan Monnier committed
1083 1084 1085 1086
2005-10-23  Stefan Monnier  <monnier@iro.umontreal.ca>

	* editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.

1087 1088 1089 1090 1091
2005-10-23  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xterm.c (note_mouse_movement): Always call note_mouse_highlight
	so tool tips don't interfere with press on tool bar button.

1092 1093 1094 1095 1096 1097 1098 1099
2005-10-23  Richard M. Stallman  <rms@gnu.org>

	* casetab.c (Fset_case_table): Doc fix.

	* lread.c (build_load_history): Replace STREAM arg with ENTIRE.
	(readevalloop): Compute ENTIRE properly.
	(syms_of_lread) <load-history>: Doc fix.

1100 1101 1102 1103 1104 1105 1106 1107
2005-10-21  Richard M. Stallman  <rms@gnu.org>

	* lread.c (Fload): Simplify gcpro structure.
	Gcpro FOUND as well as FILE, but not EFOUND.
	Unless preloading, record FOUND instead of FILE in Vload_history.
	Rename repeat local FILE to MSG_FILE.
	(syms_of_lread) <load-history>: Doc fix.

Kenichi Handa's avatar
Kenichi Handa committed
1108 1109
2005-10-21  Kenichi Handa  <handa@m17n.org>

Kim F. Storm's avatar
Kim F. Storm committed
1110
	* search.c (boyer_moore): Add parens to fix and/or precedence bug.
Kenichi Handa's avatar
Kenichi Handa committed
1111

Kim F. Storm's avatar
Kim F. Storm committed
1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132
2005-10-20  Kim F. Storm  <storm@cua.dk>

	* buffer.c (clone_per_buffer_values): Remove unused var tem.
	(init_buffer): Remove unused vars dotstat, pwdstat.

	* ccl.c (check_ccl_update): Remove unused var vp.

	* fileio.c (auto_save_error): Call SAFE_FREE.

	* fns.c (Fchar_table_range): Remove unused var i.

	* minibuf.c (display_completion_list_1): New wrapper function
	for Fdisplay_completion_list.
	(Fminibuffer_completion_help): Use it.

	* term.c (encode_terminal_code): Remove unused var src_start.

	* window.c (Fwindow_tree): Remove unused var alist.

	* xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.

Eli Zaretskii's avatar
Eli Zaretskii committed
1133 1134
2005-10-20  Aubrey Jaffer  <agj@alum.mit.edu>  (tiny change)

1135
	* unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
Eli Zaretskii's avatar
Eli Zaretskii committed
1136

Eli Zaretskii's avatar
Eli Zaretskii committed
1137 1138 1139 1140
2005-10-20  Olli Savia  <ops@iki.fi>  (tiny change)

	* syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.

1141 1142 1143 1144
2005-10-20  Andreas Schwab  <schwab@suse.de>

	* minibuf.c (Fdisplay_completion_list): Doc fix.

Kim F. Storm's avatar
Kim F. Storm committed
1145 1146 1147 1148 1149 1150
2005-10-19  Kim F. Storm  <storm@cua.dk>

	* image.c (check_image_size): Handle integer Vmax_image_size value
	directly as max pixel value.  Use default frame size for null frame.
	(syms_of_image) <max-image-size>: Describe integer value.

1151 1152 1153 1154
2005-10-19  Romain Francoise  <romain@orebokech.com>

	* emacs.c (main): Update copyright year.

1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166
2005-10-18  Chong Yidong  <cyd@stupidchicken.com>

	* image.c (Vmax_image_size): New variable.
	(check_image_size): New function.
	(xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
	(gif_load, gs_load): Use it.
	(lookup_image): Try loading again if previous load failed.
	(xbm_read_bitmap_data): Add a new argument, a pointer to the frame
	to display in, NULL if none.
	(xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
	argument.

1167 1168 1169 1170
2005-10-18  Richard M. Stallman  <rms@gnu.org>

	* search.c (Fstring_match): Doc fix.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
1171 1172 1173 1174 1175 1176 1177
2005-10-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c (note_mouse_movement): Use PtInRect.
	(XTread_socket): Also ignore mouse motion just before a button
	release event.  Don't process button release event when mouse is
	not grabbed.

1178 1179 1180
2005-10-16  Masatake YAMATO  <jet@gyve.org>

	* minibuf.c (Fdisplay_completion_list): Add new optional
Stefan Monnier's avatar
Stefan Monnier committed
1181
	argument COMMON_SUBSTRING.  Bind `completion-common-substring'
1182 1183
	to the optional argument during running `completion-setup-hook'.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213
2005-10-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
	Allow nil as argument.
	 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
	for encoding arguments as UTF-16 in native byte order, no BOM.

	* macfns.c (Fx_create_frame): Add debugging code.
	(Fx_show_tip): Set frame pixel width and height.

	* macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
	(FRAME_NORMAL_GC): New macro.
	(mac_draw_line, mac_clear_area, mac_clear_window)
	(mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
	(mac_draw_image_string, mac_draw_image_string_16): Rename from
	XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
	XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
	All uses changed.
	(mac_draw_line, mac_erase_rectangle, mac_clear_area)
	(mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
	(mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
	(mac_draw_string_16, mac_draw_image_string)
	(mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
	(mac_scroll_area): Drawing functions now take frame as destination.
	All uses changed.
	(mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
	(x_draw_fringe_bitmap): Set clipping area in face->gc.

	* macterm.h (mac_clear_area): Add extern.

1214 1215 1216 1217 1218 1219 1220
2005-10-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
	changes for xterm.c.

	* w32term.c (note_mouse_movement, w32_read_socket): Likewise.

1221 1222 1223 1224 1225 1226 1227 1228 1229
2005-10-14  Kenichi Handa  <handa@m17n.org>

	* search.c (search_buffer): Give up BM search on case-fold-search
	if one of a target character has a case-equivalence of different
	charset even if that target charcter is an ASCII.

	* casefiddle.c (casify_object): Fix for the case that case
	conversion change the byte length.

Kim F. Storm's avatar
Kim F. Storm committed
1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242
2005-10-14  Kim F. Storm  <storm@cua.dk>

	* xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
	(handle_one_xevent): Only clear help_echo_string; restore it if
	note_mouse_movement didn't record any mouse movement.

	* xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
	(remember_mouse_glyph): Clear RECT if mouse is over an image glyph.

	* keyboard.c (make_lispy_position): Adjust wx for left margin if ON_TEXT.
	(Fposn_at_x_y): Fix calculation of x coordinate.
	(Fposn_at_point): Return nil if point is hscrolled out of view.

1243 1244 1245 1246 1247
2005-10-13  Andreas Schwab  <schwab@suse.de>

	* sysdep.c (request_sigio, unrequest_sigio): Do nothing in
	non-interactive mode.

1248 1249 1250 1251
2005-10-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.

Kim F. Storm's avatar
Kim F. Storm committed
1252 1253 1254 1255
2005-10-12  Kim F. Storm  <storm@cua.dk>

	* xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.

1256 1257 1258 1259
2005-10-12  Romain Francoise  <romain@orebokech.com>

	* buffer.c (init_buffer): Rename `rc' to `len' for clarity.

1260 1261 1262 1263 1264
2005-10-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
	get end of text rows.  Obtain header-line/mode-line rows directly.

1265 1266
	* xterm.c, w32term.c, macterm.c (note_mouse_movement):
	Restore help_echo_string if mouse is moved inside last_mouse_glyph.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
1267

Kim F. Storm's avatar
Kim F. Storm committed
1268 1269
2005-10-12  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289
	* xdisp.c (remember_mouse_glyph): New generic version based on
	glyph_rect and remember_mouse_glyph from xterm.c enhanced to
	properly handle all different window areas.

	* dispextern.h (remember_mouse_glyph): Add prototype.

	* xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
	(note_mouse_movement, XTmouse_position): Use generic
	remember_mouse_glyph, add last_mouse_glyph arg.

	* w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
	(glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
	(note_mouse_movement, w32_mouse_position): Use generic
	remember_mouse_glyph, add last_mouse_glyph arg.

	* macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
	(glyph_rect, remember_mouse_glyph): Remove mac specific versions.
	(XTmouse_position): Adapt to use generic remember_mouse_glyph
	instead of pixel_to_glyph_coords.

Kim F. Storm's avatar
Kim F. Storm committed
1290 1291 1292
	* window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
	Fix x position for ON_TEXT when left margin width > 0.

Kim F. Storm's avatar
Kim F. Storm committed
1293 1294
2005-10-11  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
1295
	* window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
Kim F. Storm's avatar
Kim F. Storm committed
1296 1297 1298 1299

	* keyboard.c (make_lispy_position): Fix buffer calculations for
	mouse click or movement in right fringe and the margins.

Juanma Barranquero's avatar
Juanma Barranquero committed
1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315
2005-10-11  Juanma Barranquero  <lekktu@gmail.com>

	* image.c (fn_jpeg_stdio_src): Don't define it.
	(init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
	(our_common_init_source): Rename from `our_init_source'.
	(our_common_term_source): Rename from `our_term_source'.
	(our_memory_fill_input_buffer): Rename from
	`our_fill_input_buffer'.
	(our_memory_skip_input_data): Rename from `our_skip_input_data'.
	(jpeg_memory_src): Use the new names.
	(struct jpeg_stdio_mgr): New struct.
	(JPEG_STDIO_BUFFER_SIZE): New constant.
	(our_stdio_fill_input_buffer, our_stdio_skip_input_data)
	(jpeg_file_src): New functions.
	(jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.

1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330
2005-10-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c (PER_CHAR_METRIC): Remove unused macro.
	(fm_font_family_alist): New variable.
	(syms_of_macterm): Initialize and staticpro it.
	(decode_mac_font_name): Replace '-' in family name with '_' if it
	occurs just once.  Lower family name.
	(parse_x_font_name): Rename from x_font_name_to_mac_font_name.
	All uses changed.  Remove argument MF and code conversion for it.
	Add argument SIZE.  Rename argument MF_DECODED to FAMILY, and CS
	to CHARSET.  Parse font size.  Lower family name.  Return integer
	value for status of parsing.
	(init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
	Don't use Fdowncase because family name is already lowered by
	decode_mac_font_name.
1331 1332
	(init_font_name_table): Always call decode_mac_font_name.
	Add pair of family name and its reference to fm_font_family_alist.
1333 1334 1335 1336 1337 1338
	(mac_clear_font_name_table): Clear fm_font_family_alist.
	(XLoadQueryFont): Move font size parsing part to parse_x_font_name.
	Lookup fm_font_family_alist to get font family reference.
	(XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
	name is already lowered by parse_x_font_name.

Kim F. Storm's avatar
Kim F. Storm committed
1339 1340
2005-10-11  Kim F. Storm  <storm@cua.dk>

1341 1342
	* xterm.c (glyph_rect): Return 0 if position is outside text area.

Kim F. Storm's avatar
Kim F. Storm committed
1343 1344 1345
	* keyboard.c (make_lispy_position): Fix buffer position calculation for
	mouse click or movement in fringe.

1346 1347 1348
2005-10-10  Jason Rumney  <jasonr@gnu.org>

	* xterm.c (remember_mouse_glyph): New function.
Kim F. Storm's avatar
Kim F. Storm committed
1349
	(note_mouse_movement): Use it to remember the current glyph if changed.
1350
	(XTmouse_position): Fix calculation of fake glyph under mouse.
Kim F. Storm's avatar
Kim F. Storm committed
1351
	Move code to calculate glyph under mouse into remember_mouse_glyph.
1352

Jan Djärv's avatar
Jan Djärv committed
1353 1354
2005-10-10  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

Kim F. Storm's avatar
Kim F. Storm committed
1355
	* emacs.c (USAGE3, standard_args): -nb => -nbi.
Jan Djärv's avatar
Jan Djärv committed
1356

Juanma Barranquero's avatar
Juanma Barranquero committed
1357 1358 1359 1360 1361 1362 1363
2005-10-10  Juanma Barranquero  <lekktu@gmail.com>

	* frame.c (Fredirect_frame_focus): Fix typos in docstring.
	(next_frame, prev_frame, set_term_frame_name): Make static.

	* window.c (Fwindow_tree): Fix spelling.

1364 1365 1366 1367
2005-10-09  Romain Francoise  <romain@orebokech.com>

	* window.c (Fwindow_end): Don't try to redisplay if non-interactive.

1368 1369
2005-10-09  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

Kim F. Storm's avatar
Kim F. Storm committed
1370 1371
	* emacs.c (standard_args): Remove options -i, -itype, --icon-type.
	Add options -nb, --no-bitmap-icon.
1372 1373 1374

	* xfns.c (Fx_create_frame): Make bitmapIcon have default on.

1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392
2005-10-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macgui.h (MAX_CLIP_RECTS): New define.
	(struct _XGC): New member clip_region.
	(struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
	clip_rects.

	* macterm.c (GC_CLIP_REGION): New macro.
	(saved_port_clip_region): New variable.
	(mac_begin_clip, mac_end_clip): New functions.
	(XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
	(mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
	(mac_copy_area_with_mask, mac_scroll_area): Use them.
	(mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
	[USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
	[MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
	(mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
	rectangles stored in gc.
1393
	(XFreeGC): Dispose of clipping region.
1394 1395 1396 1397 1398 1399 1400 1401 1402 1403
	(mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
	(x_draw_fringe_bitmap, x_set_glyph_string_clipping)
	(x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
	(x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
	(x_draw_bar_cursor): Use them.
	(x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
	get multiple clipping rectangles.

	* macterm.h (mac_term_init): Add types to extern.
	(struct mac_output): Remove members mWP and pending_menu_activation.
Romain Francoise's avatar
Romain Francoise committed
1404
	Put members scroll_bar_foreground_pixel and
1405 1406 1407 1408
	scroll_bar_background_pixel in #if 0.
	(FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.

	* xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
1409
	Add debugging code.
1410

Kim F. Storm's avatar
Kim F. Storm committed
1411 1412 1413 1414
2005-10-08  Kim F. Storm  <storm@cua.dk>

	* window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.

Kim F. Storm's avatar
Kim F. Storm committed
1415 1416 1417 1418 1419 1420
2005-10-07  Kim F. Storm  <storm@cua.dk>

	* dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
	[!HAVE_WINDOW_SYSTEM]: Don't declare them...
	(update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.

1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431
2005-10-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* dispextern.h (struct glyph_string): Rename member for_overlaps_p
	to for_overlaps.  Now occupy 3 bits.
	(OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
	(OVERLAPS_ERASED_CURSOR): New defines.
	(struct redisplay_interface): Add new OVERLAPS arg to member
	fix_overlapping_area.
	(x_fix_overlapping_area): Add new OVERLAPS arg.
	(get_glyph_string_clip_rects): Add extern.

1432 1433
	* dispnew.c (redraw_overlapping_rows):
	Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
1434 1435 1436 1437

	* xdisp.c: Rename member for_overlaps_p in struct glyph_string to
	for_overlaps.
	(get_glyph_string_clip_rects): New function created from
Kim F. Storm's avatar
Kim F. Storm committed
1438 1439
	get_glyph_string_clip_rect.  Set clipping rectangles according to the
	value of for_overlaps.  Enable to store multiple clipping rectangles.
1440 1441 1442
	(get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
	(fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
	Rename argument OVERLAPS_P to OVERLAPS.  All uses in macros changed.
Romain Francoise's avatar
Romain Francoise committed
1443
	(x_fix_overlapping_area): Add OVERLAPS arg.  Pass it to draw_glyphs.
1444
	(draw_phys_cursor_glyph): Set width of erased cursor to use it for
Kim F. Storm's avatar
Kim F. Storm committed
1445 1446
	calculating clipping rectangles later.  Call x_fix_overlapping_area
	with new OVERLAPS arg to draw only erased cursor area.
Romain Francoise's avatar
Romain Francoise committed
1447
	(expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
Kim F. Storm's avatar
Kim F. Storm committed
1448
	to draw overlaps in both preceding and succeeding rows.
1449 1450 1451 1452

	* xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
	struct glyph_string to for_overlaps.

1453 1454 1455 1456 1457
2005-10-04  Richard M. Stallman  <rms@gnu.org>

	* alloc.c (refill_memory_reserve): Conditionalize the body,
	not the function's existence.

Kim F. Storm's avatar
Kim F. Storm committed
1458 1459 1460 1461 1462 1463
2005-10-04  Kim F. Storm  <storm@cua.dk>

	* window.c (window_split_tree): New function.
	(Fwindow_split_tree): New defun.
	(syms_of_window): Defsubr it.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed