ChangeLog 115 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
2007-12-02  Michael Albinus  <michael.albinus@gmx.de>

	* config.in (HAVE_DBUS): Add.

	* Makefile.in: (HAVE_DBUS): Add D-Bus definitions if defined.
	(ALL_CFLAGS): Add ${DBUS_CFLAGS}.
	(obj): Add $(DBUS_OBJ).
	(LIBES): Add $(DBUS_LIBS).
	(dbusbind.o): New target.

	* dbusbind.c: New file.

	* emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.

	* keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
	(Qdbus_event) New Lisp symbol.
	(kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
	(gobble_input): Call xd_read_queued_messages, reading D-Bus
	messages.
	(keys_of_keyboard ): Define dbus-event.

	* termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.

24 25 26 27
2007-12-01  Richard Stallman  <rms@gnu.org>

	* search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.

Jason Rumney's avatar
Jason Rumney committed
28 29 30 31
2007-11-30  Jason Rumney  <jasonr@gnu.org>

	* w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
	(w32con_reset_terminal_modes): Clear screen buffer.
Jason Rumney's avatar
Jason Rumney committed
32 33
	(w32_face_attributes): Don't use color indexes that are out of range.
	Only reverse the default colors.
Jason Rumney's avatar
Jason Rumney committed
34 35 36 37 38 39

	* xfaces.c (map_tty_color, tty_color_name): Remove special case for
	WINDOWSNT.

	* w32console.c, w32term.h (vga_stdcolor_name): Remove.

40 41 42 43 44 45 46
2007-11-29  Jason Rumney  <jasonr@gnu.org>

	* w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
	(w32_face_attributes): Use Vtty_defined_color_alist to determine
	if the terminal colors are initialized.
	(unspecified_fg, unspecified_bg): Remove unused declarations.

Andreas Schwab's avatar
Andreas Schwab committed
47 48 49 50
2007-11-29  Andreas Schwab  <schwab@suse.de>

	* keyboard.c (apply_modifiers): Fix typo.

51 52 53 54
2007-11-29  Richard Stallman  <rms@gnu.org>

	* keymap.c (Fcurrent_local_map): Doc fix.

55 56 57 58
2007-11-28  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)

	* s/gnu-kfreebsd.h: New file.

Stefan Monnier's avatar
Stefan Monnier committed
59 60
2007-11-28  Stefan Monnier  <monnier@iro.umontreal.ca>

61 62 63
	* buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
	Don't cast redundantly.

Stefan Monnier's avatar
Stefan Monnier committed
64 65 66 67 68 69
	* keyboard.c (KEY_TO_CHAR): New macro.
	(parse_modifiers, apply_modifiers): Accept integer arguments.
	(read_key_sequence): Use them to unify the "shift->unshift" mapping
	for chars and symbol keys.
	After doing such remapping, apply function-key-map again.

70 71 72 73 74
2007-11-27  Dan Nicolaescu  <dann@ics.uci.edu>

	* Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
	compiled anymore.

Andreas Schwab's avatar
Andreas Schwab committed
75 76 77 78 79
2007-11-26  Andreas Schwab  <schwab@suse.de>

	* process.c (list_processes_1): Fix indentation level of the
	command column.

80 81 82 83 84
2007-11-23  Andreas Schwab  <schwab@suse.de>

	* editfns.c (Fformat): Handle %c specially since it requires the
	argument to be of type int.

85 86 87 88 89
2007-11-23  Markus Triska  <markus.triska@gmx.at>

	* emacs.c (main): Call init_editfns before init_process, since
	init_process sets Vprocess_connection_type depending on OS release

90 91
2007-11-22  Stefan Monnier  <monnier@iro.umontreal.ca>

92 93 94
	* data.c (do_symval_forwarding): Use same code as in find_symbol_value.
	(find_symbol_value): Use do_symval_forwarding.

95 96 97
	* data.c (set_internal): Set the value in the `cons-cell' (for
	Buffer_Local_values) not only for frame-local variables.

98 99 100 101 102 103 104
2007-11-22  Andreas Schwab  <schwab@suse.de>

	* data.c (Fnumber_to_string): Add cast when passing EMACS_INT
	values to sprintf.
	* keymap.c (Fsingle_key_description): Likewise.
	* print.c (print_object): Likewise.

105 106 107 108 109
2007-11-22  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
	file for image is nil.

Dan Nicolaescu's avatar
Dan Nicolaescu committed
110 111 112
2007-11-22  Dan Nicolaescu  <dann@ics.uci.edu>

	* term.c: Include stdarg.h.
113
	(fatal): Implement using varargs.
Dan Nicolaescu's avatar
Dan Nicolaescu committed
114 115
	* lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).

116 117 118 119 120 121 122 123 124 125 126
2007-11-21  Stefan Monnier  <monnier@iro.umontreal.ca>

	* lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
	* data.c (store_symval_forwarding): Get type from buffer_objfwd.
	Update call to buffer_slot_type_mismatch.
	* buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
	(buffer_slot_type_mismatch): Update.
	* buffer.c (buffer_local_types): Remove.
	(buffer_slot_type_mismatch): Get the symbol and type as arguments.
	(defvar_per_buffer): Set the type in the buffer_objfwd.

Miles Bader's avatar
Miles Bader committed
127
2007-11-21  Jason Rumney  <jasonr@gnu.org>
128

129 130
	* w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
	CreateFileMapping returns NULL on failure.
131

Miles Bader's avatar
Miles Bader committed
132
2007-11-21  Stefan Monnier  <monnier@iro.umontreal.ca>
133

Miles Bader's avatar
Miles Bader committed
134 135
	* search.c (Fset_match_data): Remove the `evaporate' feature.
	(unwind_set_match_data): Don't use the `evaporate' feature.
136

137 138 139 140 141 142
2007-11-21  Jason Rumney  <jasonr@gnu.org>

	* dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.

	* w32console.c (w32con_write_glyphs): Remove unused variables.

143 144
2007-11-20  Dan Nicolaescu  <dann@ics.uci.edu>

145 146
	* macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.

147 148 149 150 151
	* s/darwin.h (MULTI_KBOARD): Remove.

	* macfns.c (x_create_tip_frame, Fx_create_frame)
	(x_create_tip_frame): Don't deal with MULTI_KBOARD.

152 153
2007-11-19  Stefan Monnier  <monnier@iro.umontreal.ca>

154 155 156 157 158
	* buffer.c (Fbuffer_local_value): Remove redundant test.
	(swap_out_buffer_local_variables): Swap out binding in `buffer' rather
	than in `current-buffer' to match the comment.
	Do the swap using swap_in_global_binding.

159 160 161
	* data.c (store_symval_forwarding, set_internal):
	* eval.c (specbind): Remove dead code.

162 163 164 165
	* coding.c (detect_coding, Fupdate_coding_systems_internal):
	* fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
	Since we do not want to see internal Lisp_*fwd objects here.

166 167
2007-11-18  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

168 169
	* sysdep.c (init_system_name): Use getaddrinfo if available.

170 171 172 173
	* xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
	(x_scroll_bar_note_movement): start, end, with, height in struct
	scroll_bar are integers and not Lisp_Object, so remove XINT for them.

174 175 176 177
2007-11-17  Dan Nicolaescu  <dann@ics.uci.edu>

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

178 179
2007-11-16  Stefan Monnier  <monnier@iro.umontreal.ca>

180 181 182
	* buffer.h (struct buffer): Move `undo_list' back to before `name'.
	This undoes Richard's change of 14-Oct-2002.

183 184 185
	* alloc.c (allocate_other_vector):
	* lisp.h (allocate_other_vector): Remove.

186 187 188 189 190 191 192
	* window.c (struct save_window_data): Move non-lisp data to the end
	and make it `int' rather than Lisp_Object.
	(Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
	Done wrap/unwrap integer values.
	(Fset_window_configuration, compare_window_configurations):
	Update use of fields to their new types.

193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212
	* xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
	Turn integer fields into `int'.  Merge x_window_low and x_window_high.
	(SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
	(SET_SCROLL_BAR_X_WINDOW): Remove.
	(SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
	Access the new x_window field directly.
	* xterm.c (x_scroll_bar_create): Use a pseudovector.
	Don't wrap/unwrap integers into Lisp_Objects.
	(XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
	(x_scroll_bar_report_motion):
	Don't wrap/unwrap integers into Lisp_Objects.
	(x_term_init): Use SDATA.
	(x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
	(x_scroll_bar_set_handle, x_scroll_bar_remove)
	(XTset_vertical_scroll_bar, x_scroll_bar_expose)
	(x_scroll_bar_report_motion, x_scroll_bar_clear):
	* xfns.c (x_set_background_color):
	* gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
	Access the new x_window field directly.

213 214
	* alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
	(allocate_pseudovector): Make non-static.
215

216 217 218 219
	* lisp.h (enum pvec_type): New tag PVEC_OTHER.
	(allocate_pseudovector): Declare.
	(ALLOCATE_PSEUDOVECTOR): Move from alloc.c

220 221
2007-11-15  Andreas Schwab  <schwab@suse.de>

222 223
	* editfns.c (Fformat): Correctly format EMACS_INT values.
	Also take precision into account when formatting an integer.
224

225 226
	* keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.

227 228
2007-11-15  Stefan Monnier  <monnier@iro.umontreal.ca>

229 230 231
	* keyboard.c (Fevent_symbol_parse_modifiers): New function.
	(syms_of_keyboard): Defsubr it.

232 233 234 235
	* data.c (swap_in_global_binding): Fix longstanding bug where
	store_symval_forwarding was not called with the right second argument,
	thus causing objfwd-ing from being dropped.

236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255
2007-11-14  Juanma Barranquero  <lekktu@gmail.com>

	* macfns.c (Fx_create_frame, Fx_display_pixel_width)
	(Fx_display_pixel_height, Fx_display_planes)
	(Fx_display_color_cells, Fx_server_max_request_size)
	(Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
	(Fx_display_visual_class, Fx_display_save_under):
	* w32fns.c (Fx_create_frame, Fx_display_pixel_width)
	(Fx_display_pixel_height, Fx_display_planes)
	(Fx_display_color_cells, Fx_server_max_request_size)
	(Fx_server_vendor, Fx_server_version, Fx_display_screens)
	(Fx_display_mm_height, Fx_display_mm_width)
	(Fx_display_backing_store, Fx_display_visual_class)
	(Fw32_select_font, Fx_display_save_under):
	* xfns.c (Fx_create_frame, Fx_display_pixel_width)
	(Fx_display_pixel_height, Fx_display_planes)
	(Fx_display_color_cells, Fx_server_max_request_size)
	(Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
	(Fx_display_save_under): Fix typos in docstrings.

256 257 258 259 260 261 262 263 264 265 266
2007-11-14  Juanma Barranquero  <lekktu@gmail.com>

	* w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
	corresponding to deleted entries; they are an implementation detail.
	(gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
	Remove variables.
	(w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
	(w32_pass_multimedia_buttons_to_system, w32_strict_painting)
	(Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
	(w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
	(w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
267
	(Fw32_define_rgb_color, Fw32_load_color_file)
268
	(syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
269 270 271
	Fix typos in docstrings.
	(Fx_server_version): Reflow docstring.
	(Fw32_shell_execute): Doc fixes.
272

273 274 275 276 277
2007-11-13  Juanma Barranquero  <lekktu@gmail.com>

	* w32fns.c (Fw32_register_hot_key): Don't try to register hot key
	if w32_parse_hot_key returned nil.

Miles Bader's avatar
Miles Bader committed
278
2007-11-10  Stefan Monnier  <monnier@iro.umontreal.ca>
Kim F. Storm's avatar
Kim F. Storm committed
279

Miles Bader's avatar
Miles Bader committed
280
	* xdisp.c (load_overlay_strings): Fix copy&paste typo.
Kim F. Storm's avatar
Kim F. Storm committed
281

282 283 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
2007-11-09  Jason Rumney  <jasonr@gnu.org>

	* s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.

	* w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.

	* keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
	Remove W32_SCROLL_BAR_CLICK_EVENT.

	* termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
	Add MULTIMEDIA_KEY_EVENT.

	* keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
	(lispy_multimedia_keys) [WINDOWSNT]: New array.
	(make_lispy_event) [WINDOWSNT]: Use it to translate
	MULTIMEDIA_KEY_EVENT.

	* w32term.h (WM_APPCOMMAND): Define if not already.
	(GET_APPCOMMAND_LPARAM): Likewise.

	* w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
	WM_APPCOMMAND.

	* w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
	(syms_of_w32fns): Export and initialize it.
	(w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.

Miles Bader's avatar
Miles Bader committed
309
2007-11-09  Chong Yidong  <cyd@stupidchicken.com>
310 311 312 313 314 315

	* dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
	twice.

	* xdisp.c (handle_face_prop): Fix last change.

Miles Bader's avatar
Miles Bader committed
316
2007-11-09  Richard Stallman  <rms@gnu.org>
317

Miles Bader's avatar
Miles Bader committed
318 319 320 321 322 323 324 325
	* xdisp.c (handle_face_prop): Test for strings that came from overlays,
	not just for after-strings and before-strings.
	Call face_for_overlay_string and pass the overlay to it.
	(handle_display_prop): Determine whether property came from an overlay.
	Pass OVERLAY arg to handle_single_display_spec.
	(handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
	(load_overlay_strings): Fill in it->string_overlays.
	(get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
326

Miles Bader's avatar
Miles Bader committed
327 328
	* xfaces.c (face_for_overlay_string): Function renamed from
	face_at_buffer_position_no_overlays, and add arg OVERLAY.
329

Miles Bader's avatar
Miles Bader committed
330 331 332 333 334
	* dispextern.h (struct it): New elt string_overlays.
	New elt from_overlay, also in stack.
	Rearrange a few elements.
	(face_for_overlay_string): Decl renamed from
	face_at_buffer_position_no_overlays, and add argument.
335

Miles Bader's avatar
Miles Bader committed
336
2007-11-09  Richard Stallman  <rms@gnu.org>
337

Miles Bader's avatar
Miles Bader committed
338 339
	* xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
	to get the base face for an overlay string.
340

Miles Bader's avatar
Miles Bader committed
341
	* dispextern.h (face_at_buffer_position_no_overlays): Add decl.
342

Miles Bader's avatar
Miles Bader committed
343
	* xfaces.c (face_at_buffer_position_no_overlays): New function.
344

Miles Bader's avatar
Miles Bader committed
345
	* xdisp.c (handle_stop): Move some code out of loop.
346

Miles Bader's avatar
Miles Bader committed
347
2007-11-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
348

Miles Bader's avatar
Miles Bader committed
349 350
	* macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
	Fix conversion from Lisp object to ATSUFontID.
351

Miles Bader's avatar
Miles Bader committed
352
2007-11-09  Jason Rumney  <jasonr@gnu.org>
353

Miles Bader's avatar
Miles Bader committed
354
	* xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
355

Miles Bader's avatar
Miles Bader committed
356
2007-11-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
357

Miles Bader's avatar
Miles Bader committed
358 359 360
	* unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
	Don't assume regions are aligned to page boundary.
	(print_load_command_name): Add LC_UUID if defined.
361

Miles Bader's avatar
Miles Bader committed
362
2007-11-09  Richard Stallman  <rms@gnu.org>
363

Miles Bader's avatar
Miles Bader committed
364
	* emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
365

Jason Rumney's avatar
Jason Rumney committed
366 367 368 369
2007-11-07  Jason Rumney  <jasonr@gnu.org>

	* s/windows95.h: Remove.

370 371 372 373 374
2007-11-06  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
	abort with a message on unhandled store_type values.

Jan Djärv's avatar
Jan Djärv committed
375 376 377 378 379
2007-11-01  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
	Remove HAVE_X11R5 and HAVE_X11R4.

380 381 382 383
2007-11-01  Dan Nicolaescu  <dann@ics.uci.edu>

	* Makefile.in: Remove references to sunfns.c and sunfns.o.

384 385 386
2007-11-01  Johan Bockg,Ae(Brd  <bojohan@gnu.org>

	* macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
387
	Don't set s->stippled_p here, since it has already been set by
388 389
	x_set_glyph_string_gc from x_draw_glyph_string.

390 391 392 393 394 395 396 397
2007-11-01  Dan Nicolaescu  <dann@ics.uci.edu>

	* sunfns.c: Remove file

	* m/sun386.h:
	* m/sun2.h:
	* m/sparc.h: Remove Sun windows code.

398 399 400 401 402 403 404
2007-10-31  Stefan Monnier  <monnier@iro.umontreal.ca>

	* keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
	(init_keyboard): Set current_kboard's window-system to nil.
	(tty_read_avail_input): Typo.
	* frame.c (make_initial_frame): Don't initialize the initial_kboard.

Dan Nicolaescu's avatar
Dan Nicolaescu committed
405 406 407 408 409 410 411 412 413 414 415
2007-10-31  Dan Nicolaescu  <dann@ics.uci.edu>

	* s/usg5-4.h:
	* s/usg5-3.h:
	* s/ptx.h:
	* m/is386.h:
	* m/ibmps2-aix.h:
	* Makefile.in: Remove all mentions of X10

	* dispnew.c (syms_of_display): Don't mention version 10.

416 417 418 419 420
2007-10-28  Juanma Barranquero  <lekktu@gmail.com>

	* makefile.w32-in (OBJ1): Remove abbrev.$(O).
	($(BLD)/abbrev.$(O)): Remove.

Stefan Monnier's avatar
Stefan Monnier committed
421 422 423 424 425 426 427 428 429 430 431
2007-10-28  Stefan Monnier  <monnier@iro.umontreal.ca>

	Rewrite abbrev.c in Elisp.
	* image.c (Qcount): Don't declare as extern.
	(syms_of_image): Initialize and staticpro `Qcount'.
	* puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
	* emacs.c (main): Don't call syms_of_abbrev.
	* Makefile.in (obj): Remove abbrev.o.
	(abbrev.o): Remove.
	* abbrev.c: Remove.

432 433 434 435
2007-10-26  Martin Rudalics  <rudalics@gmx.at>

	* window.c (window_min_size_2): Don't count header-line.

436 437 438
2007-10-26  Dan Nicolaescu  <dann@ics.uci.edu>

	* frame.h (struct frame): Move all bit fields after the first bit
439
	field to take advantage of the available space.  Group all the
440 441
	chars together to reduce wasted space due to padding.

442 443
2007-10-26  Juanma Barranquero  <lekktu@gmail.com>

444 445
	* minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.

446 447 448 449 450 451 452 453 454
	* alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
	(Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
	(n_interval_blocks, init_strings, check_string_bytes, check_sblock)
	(init_float, free_float, n_cons_blocks, init_cons, all_vectors)
	(n_vectors, symbol_block, symbol_block_index, symbol_free_list)
	(n_symbol_blocks, init_symbol, marker_block, marker_free_list)
	(n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
	(last_marked, mark_object_loop_halt): Make static.

455 456 457
	* frame.c (syms_of_frame) <delete-frame-functions>:
	Fix typo in docstring.

458 459 460
2007-10-25  Juanma Barranquero  <lekktu@gmail.com>

	* w32.c (init_environment): Fix tiny memory leak.
461
	(w32_get_resource): Remove unused variable `ok'.
462

463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489
2007-10-25  Stefan Monnier  <monnier@iro.umontreal.ca>

	Make `window-system' into a keyboard-local variable (rather than
	frame-local as done originally by multi-tty).

	* keyboard.h (struct kboard): Add Vwindow_system.
	* keyboard.c (init_kboard): Set a default for Vwindow_system.
	(mark_kboards): Mark Vwindow_system.

	* dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
	(init_display): Don't set the obsolete `window-system' frame-param.

	* xterm.c (x_term_init):
	* w32term.c (w32_create_terminal):
	* term.c (init_tty): Set Vwindow_system.
	* macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
	multi-tty merge maybe?), copied from w32term.c.  Set Vwindow_system.

	* xfns.c (Fx_create_frame, x_create_tip_frame):
	* w32fns.c (Fx_create_frame, x_create_tip_frame):
	* macfns.c (Fx_create_frame):
	Don't set the obsolete `window-system' frame-param.

	* frame.h (Qwindow_system): Remove.
	* frame.c (Qwindow_system): Remove.  In `syms_of_frame' as well.
	(Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.

Miles Bader's avatar
Miles Bader committed
490
2007-10-24  Richard Stallman  <rms@gnu.org>
Pavel Janík's avatar
Pavel Janík committed
491

Miles Bader's avatar
Miles Bader committed
492 493
	* frame.c (x_figure_window_size): For fullscreen case,
	set USPosition | PPosition without clobbering rest of window_prompting.
494

Miles Bader's avatar
Miles Bader committed
495
	* keyboard.c (Fcurrent_idle_time): Doc fix.
Pavel Janík's avatar
Pavel Janík committed
496

Miles Bader's avatar
Miles Bader committed
497
	* print.c (Fwith_output_to_temp_buffer): Doc fix.
Pavel Janík's avatar
Pavel Janík committed
498

499 500
2007-10-23  Stefan Monnier  <monnier@iro.umontreal.ca>

501 502
	* process.c (unwind_request_sigio): Only define if __ultrix__.

503 504
	* callproc.c (child_setup): Remove spurious *.

505 506 507 508 509 510
	* lisp.h (Fget_text_property): Declare.
	(have_menus_p): Declare it here rather than in sys-dep header files.
	* macterm.h (have_menus_p):
	* msdos.h (have_menus_p):
	* xterm.h (have_menus_p): Remove.

511 512 513 514
	* data.c (Fmake_variable_buffer_local, Fmake_local_variable)
	(Fmake_variable_frame_local): Just check the variable's const-ness
	rather than checking nil or t.

515 516
2007-10-22  Jason Rumney  <jasonr@gnu.org>

Jason Rumney's avatar
Jason Rumney committed
517 518
	* w32fns.c: Include math.h.
	(w32_abort): Declaration moved to nt/config.nt.
Juanma Barranquero's avatar
Juanma Barranquero committed
519

Jason Rumney's avatar
Jason Rumney committed
520 521 522
	* s/ms-w32.h (HAVE_STDLIB_H): Define.
	(abort): Redefinition moved to nt/config.nt.

523 524
	* m/windowsnt.h: Remove.

525 526 527 528 529 530
2007-10-22  Juanma Barranquero  <lekktu@gmail.com>

	* emacs.c (Fdump_emacs): Fix typo in message.
	(syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
	<installation-directory>: Reflow docstring.

531 532 533 534
2007-10-22  Juri Linkov  <juri@jurta.org>

	* minibuf.c: Allow minibuffer default to be a list of default values.
	With empty input use the first element of this list as returned default.
535
	(string_to_object)
Juanma Barranquero's avatar
Juanma Barranquero committed
536
	(read_minibuf_noninteractive): If defalt is cons, set val to its car.
537 538 539 540 541
	(read_minibuf): If defalt is cons, set histstring to its car.
	(Fread_string): If default_value is cons, set val to its car.
	(Fread_buffer): If def is cons, use its car.
	(Fcompleting_read): If defalt is cons, set val to its car.

542 543 544 545
2007-10-21  Michael Albinus  <michael.albinus@gmx.de>

	* fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.

546 547 548 549
2007-10-20  Juanma Barranquero  <lekktu@gmail.com>

	* doc.c (Fdocumentation): Check for advice in all cases.

550 551 552 553
2007-10-19  Chong Yidong  <cyd@stupidchicken.com>

	* Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.

554 555 556 557
2007-10-19  Richard Stallman  <rms@gnu.org>

	* doc.c (Fdocumentation): Check for and handle an advised function.

558 559 560 561
2007-10-19  Juanma Barranquero  <lekktu@gmail.com>

	* process.c (Fset_process_filter): Doc fix.

562 563 564 565 566 567
2007-10-18  Stefan Monnier  <monnier@iro.umontreal.ca>

	* keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
	which caused key-translation-map to applied repeatedly (thus breaking
	double-mode).

568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583
2007-10-17  Stefan Monnier  <monnier@iro.umontreal.ca>

	* xselect.c (x_own_selection, x_handle_selection_clear)
	(x_clear_frame_selections):
	* w32menu.c (list_of_panes, list_of_items):
	* w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
	* textprop.c (validate_plist, interval_has_all_properties)
	(interval_has_some_properties, interval_has_some_properties_list)
	(add_properties, text_property_list):
	* process.c (Fget_buffer_process, list_processes_1, status_notify):
	* minibuf.c (Fassoc_string):
	* macselect.c (x_own_selection, x_clear_frame_selections)
	(Fx_disown_selection_internal):
	* keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
	Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.

584 585 586 587 588 589
2007-10-17  Chong Yidong  <cyd@stupidchicken.com>

	* process.c: Link to libs for calling res_init() if available.
	(Fmake_network_process): Call res_init() before getaddrinfo or
	gethostbyname, if possible.

Stefan Monnier's avatar
Stefan Monnier committed
590 591
2007-10-17  Stefan Monnier  <monnier@iro.umontreal.ca>

592 593
	* lread.c (read1): Set pvectype for char_tables.

594 595 596 597 598
	* lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
	(XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
	Add type checks.
	(SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.

Stefan Monnier's avatar
Stefan Monnier committed
599 600 601
	* alloc.c (free_misc): Use XMISCTYPE.
	(live_misc_p, gc_sweep): Use Lisp_Misc_Any.

602 603 604 605 606 607 608 609 610 611 612 613
2007-10-17  Glenn Morris  <rgm@gnu.org>

	* minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
	(syms_of_minibuf): Add Qcompletion_ignore_case.
	* dired.c (Qcompletion_ignore_case): Change to external.
	(syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
	* fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
	(Fread_file_name): Use it rather than intern'ing.

	* coding.c (Qcompletion_ignore_case): New external Lisp_Object.
	(Fread_coding_system): Ignore case of user input.

614 615 616 617 618 619 620
2007-10-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* xdisp.c (handle_display_prop): Ignore display specs after
	replacing one when string text is being replaced.
	(handle_single_display_spec): Pretend as if characters with display
	property haven't been consumed only when buffer text is being replaced.

621 622
2007-10-16  Stefan Monnier  <monnier@iro.umontreal.ca>

623 624 625 626 627 628 629 630 631 632 633
	* xfns.c (Fx_create_frame, Fx_display_list):
	* window.c (window_fixed_size_p, enlarge_window)
	(shrink_window_lowest_first):
	* macterm.c (init_font_name_table):
	* macfns.c (Fx_create_frame, Fx_display_list):
	* lread.c (close_load_descs):
	* keyboard.c (read_char_x_menu_prompt):
	* fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
	* coding.c (code_convert_region_unwind): Test the type of an object
	rather than just !NILP before extracting data from it.

634 635
	* alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.

636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659
	* lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
	(XMISCANY): New macro.
	(XMISCTYPE): Use it.
	(struct Lisp_Misc_Any): New type.
	(union Lisp_Misc): Use it.
	(struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
	* data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
	(find_symbol_value, set_internal, default_value, Fset_default)
	(Fmake_variable_buffer_local, Fmake_local_variable)
	(Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
	(Flocal_variable_if_set_p, Fvariable_binding_locus):
	The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
	* alloc.c (allocate_buffer): Set the size and tag.
	(allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
	Use XMISCANY.
	(die): Follow the GNU convention for error messages.
	* print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
	* buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
	tag any more.
	(set_buffer_internal_1):
	* frame.c (store_frame_param):
	* eval.c (specbind):
	* xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.

660 661
	* doc.c (Fsnarf_documentation): Simplify.

662 663 664 665 666
2007-10-14  Juanma Barranquero  <lekktu@gmail.com>

	* w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
	(syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.

667 668 669 670
2007-10-14  Stefan Monnier  <monnier@iro.umontreal.ca>

	* buffer.c (Fmake_indirect_buffer): Set the buffer's tag.

Juanma Barranquero's avatar
Juanma Barranquero committed
671 672 673 674 675 676
2007-10-14  Juanma Barranquero  <lekktu@gmail.com>

	* eval.c (do_autoload): Don't save autoloads.

	* data.c (Ffset): Save autoload of the function being set.

677 678 679 680 681
2007-10-07  John Paul Wallington  <jpw@pobox.com>

	* xfns.c (x_create_tip_frame): Set the `display-type' frame
	parameter before setting up faces.

Eli Zaretskii's avatar
Eli Zaretskii committed
682 683
2007-10-13  Eli Zaretskii  <eliz@gnu.org>

684
	* ccl.c (Fregister_code_conversion_map):
685 686
	* keyboard.c (append_tool_bar_item): Reformat last change.

Eli Zaretskii's avatar
Eli Zaretskii committed
687 688
	* lisp.h (eabs): Rename from `abs'.  All callers changed.

Juanma Barranquero's avatar
Juanma Barranquero committed
689
2007-10-05  Dmitry Antipov  <dmantipov@yandex.ru>
690 691 692 693 694 695 696

	* buffer.c (add_overlay_mod_hooklist):
	* ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
	* fontset.c (make_fontset):
	* keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
	(append_tool_bar_item):
	* macmenu.c (grow_menu_items):
697
	* w32menu.c (grow_menu_items):
698
	* xmenu.c (grow_menu_items): Use larger_vector.
699

700 701 702 703 704
2007-10-13  Eli Zaretskii  <eliz@gnu.org>

	* msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
	selected frame'' on MSDOS).

Juanma Barranquero's avatar
Juanma Barranquero committed
705
2007-10-10  Patrick Mahan  <mahan@mahan.org>  (tiny change)
706 707 708

	* macfns.c (x_create_tip_frame): Set terminal for frame.

709 710
2007-10-10  Stefan Monnier  <monnier@iro.umontreal.ca>

711 712 713 714 715 716
	* frame.c (Qenvironment): Remove.
	(syms_of_frame) <Qenvironment>: Don't initialize.
	(Fdelete_frame): Don't treat the `environment' param specially.
	* frame.h (Qenvironment): Don't declare.
	* callproc.c (set_initial_environment): Don't set unused frame param.

717 718
	* frame.c (Fframe_with_environment): Remove.
	(syms_of_frame) <Sframe_with_environment>: Don't declare.
719

720 721
	* lisp.h (Fframe_with_environment): Don't declare.

722 723 724 725 726 727
2007-10-10  Juanma Barranquero  <lekktu@gmail.com>

	* indent.c (indent_tabs_mode, last_known_column)
	(last_known_column_modified): Make static.
	(syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.

728 729 730 731
2007-10-10  Katsumi Yamaoka  <yamaoka@jpl.org>

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

Miles Bader's avatar
Miles Bader committed
732
2007-10-09  Richard Stallman  <rms@gnu.org>
Kim F. Storm's avatar
Kim F. Storm committed
733

Miles Bader's avatar
Miles Bader committed
734 735
	* xdisp.c (handle_invisible_prop): After setting up an ellipsis,
	return HANDLED_RETURN.
Kim F. Storm's avatar
Kim F. Storm committed
736

Miles Bader's avatar
Miles Bader committed
737
2007-10-08  Martin Rudalics  <rudalics@gmx.at>
Jason Rumney's avatar
Jason Rumney committed
738

Miles Bader's avatar
Miles Bader committed
739 740
	* keyboard.c (kbd_buffer_get_event): Break loop waiting for input
	when there's an unread command event.
741

742
	* frame.c (focus_follows_mouse): Move here from frame.el to allow
Miles Bader's avatar
Miles Bader committed
743 744 745 746
	window autoselection act appropriately when leaving selected frame.
	(syms_of_frame): Initialize focus_follows_mouse.
	* frame.h (focus_follows_mouse): Extern it.
	* macterm.c (XTread_socket): When focus_follows_mouse is nil
747
	make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
Miles Bader's avatar
Miles Bader committed
748 749 750 751 752
	* msdos.c (dos_rawgetc): Likewise.
	* w32term.c (w32_read_socket): Likewise.
	* xterm.c (handle_one_xevent): Likewise.
	* xdisp.c (syms_of_xdisp): In doc-string of
	mouse-autoselect-window mention focus-follows-mouse.
753

Miles Bader's avatar
Miles Bader committed
754
2007-10-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
755

Miles Bader's avatar
Miles Bader committed
756 757 758
	* macterm.c (mac_load_query_font): Fix missing return value.
	[USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
	Add BLOCK_INPUT.
Stefan Monnier's avatar
Stefan Monnier committed
759

Miles Bader's avatar
Miles Bader committed
760
2007-10-08  Richard Stallman  <rms@gnu.org>
Stefan Monnier's avatar
Stefan Monnier committed
761

Miles Bader's avatar
Miles Bader committed
762 763
	* xdisp.c (get_window_cursor_type): Implement documented behavior
	for cursor-in-non-selected-windows = t.
Stefan Monnier's avatar
Stefan Monnier committed
764

Miles Bader's avatar
Miles Bader committed
765
2007-10-08  Jason Rumney  <jasonr@gnu.org>
Stefan Monnier's avatar
Stefan Monnier committed
766

Miles Bader's avatar
Miles Bader committed
767
	* w32.c (w32_get_resource): Always close registry keys.
Pavel Janík's avatar
Pavel Janík committed
768

Miles Bader's avatar
Miles Bader committed
769
2007-10-08  Jason Rumney  <jasonr@gnu.org>
Pavel Janík's avatar
Pavel Janík committed
770

Miles Bader's avatar
Miles Bader committed
771
	* makefile.w32-in (LIBS): Add COMCTL32.
772

Miles Bader's avatar
Miles Bader committed
773
	* w32fns.c (globals_of_w32fns): Init common controls.
774

Miles Bader's avatar
Miles Bader committed
775
2007-10-08  Richard Stallman  <rms@gnu.org>
776

777
	* image.c (our_memory_buffer): Rename from omfib_buffer.
778

Miles Bader's avatar
Miles Bader committed
779
2007-10-08  Richard Stallman  <rms@gnu.org>
780

Miles Bader's avatar
Miles Bader committed
781
	* buffer.c (Foverlays_at): Doc fix.
Stefan Monnier's avatar
Stefan Monnier committed
782

Miles Bader's avatar
Miles Bader committed
783
2007-10-08  Stefan Monnier  <monnier@iro.umontreal.ca>
Stefan Monnier's avatar
Stefan Monnier committed
784

Miles Bader's avatar
Miles Bader committed
785
	* fns.c (Fplist_put): Preserve uneven tail data.
Gerd Moellmann's avatar
Gerd Moellmann committed
786

Miles Bader's avatar
Miles Bader committed
787
2007-10-08  Peter O'Gorman  <bug-gnu-emacs@mlists.thewrittenword.com>  (tiny change)
Gerd Moellmann's avatar
Gerd Moellmann committed
788

Miles Bader's avatar
Miles Bader committed
789
	* termhooks.h (enum event_kind): Remove trailing comma.
790

Miles Bader's avatar
Miles Bader committed
791
	* frame.h (enum): Remove trailing comma.
792

Miles Bader's avatar
Miles Bader committed
793
2007-10-08  Dhuvra Krishnamurthy  <dhuvrakm@gmail.com>  (tiny change)
794

Miles Bader's avatar
Miles Bader committed
795
	* w32proc.c (delete_child): Don't terminate threads of zombies.
796

Miles Bader's avatar
Miles Bader committed
797
2007-10-08  Martin Rudalics  <rudalics@gmx.at>
798

Miles Bader's avatar
Miles Bader committed
799
	* keyboard.h (struct kboard): New elt Vlast_repeatable_command.
800

Miles Bader's avatar
Miles Bader committed
801 802 803 804 805 806
	* keyboard.c (syms_of_keyboard): Set up new Lisp variable
	last-repeatable-command.
	(init_kboard): Initialize Vlast_repeatable_command.
	(command_loop_1): Set it to real_this_command unless that was
	bound to an input event.
	(mark_kboards): Mark it.
Kim F. Storm's avatar
Kim F. Storm committed
807

Miles Bader's avatar
Miles Bader committed
808
2007-10-08  Richard Stallman  <rms@gnu.org>
Stefan Monnier's avatar
Stefan Monnier committed
809

Miles Bader's avatar
Miles Bader committed
810
	* eval.c (condition-case): Doc fix.
Kim F. Storm's avatar
Kim F. Storm committed
811

Miles Bader's avatar
Miles Bader committed
812
2007-10-08  Masatake YAMATO  <jet@gyve.org>
Kim F. Storm's avatar
Kim F. Storm committed
813

Miles Bader's avatar
Miles Bader committed
814 815 816
	* xfaces.c (tty_supports_face_attributes_p): Fix code
	for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
	was copied and not edited.
Kim F. Storm's avatar
Kim F. Storm committed
817

818 819
2007-10-09  Stefan Monnier  <monnier@iro.umontreal.ca>

820
	Add new `input-decode-map' keymap and use it for terminal
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835
	escape sequences.
	* keyboard.h (struct kboard): Add Vinput_decode_map.
	Remove Vlocal_key_translation_map.
	* keyboard.c (read_key_sequence): Add support for input-decode-map.
	(init_kboard): Init input-decode-map.
	Replace local-key-translation-map back with key-translation-map.
	(syms_of_keyboard): Declare input-decode-map.
	Remove local-key-translation-map.  Update docstrings.
	(mark_kboards): Mark Vinput_decode_map.
	Don't mark Vlocal_key_translation_map.
	* keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
	Replace local-key-translation-map back with key-translation-map.
	* term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
	Bind in input-decode-map rather than function-key-map.

836 837 838
	* lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
	This was made redundant by the previous introduction of XSETPVECTYPE.

839 840
2007-10-09  Richard Stallman  <rms@gnu.org>

841
	* image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
842 843 844 845 846 847 848

2007-09-29  Richard Stallman  <rms@gnu.org>

	* eval.c (internal_condition_case_2, internal_condition_case_1)
	(internal_condition_case): Reenable abort if x_catching_errors ()
	to see if that really happens and why.

849 850 851 852
2007-10-06  Andreas Schwab  <schwab@suse.de>

	* fileio.c (Fwrite_region): Ignore EINVAL error from fsync.

853 854 855 856
2007-10-04  Juanma Barranquero  <lekktu@gmail.com>

	* image.c (syms_of_image) <image-types>: Fix typo in docstring.

857 858 859 860
2007-10-03  Stefan Monnier  <monnier@iro.umontreal.ca>

	* frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.

861 862
2007-10-02  Stefan Monnier  <monnier@iro.umontreal.ca>

Stefan Monnier's avatar
Stefan Monnier committed
863 864 865 866 867 868 869 870 871 872 873
	* window.h (struct window):
	* window.c (struct save_window_data, struct saved_window):
	* termhooks.h (struct terminal):
	* process.h (struct Lisp_Process):
	* frame.h (struct frame):
	* buffer.h (struct buffer):
	* lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
	(struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
	The size field of (pseudo)vectors is now unsigned.
	(ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.

874 875
	* lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
	Turn `count' into an integer.
Stefan Monnier's avatar
Stefan Monnier committed
876

877 878 879 880 881 882
	* fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
	(sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
	* print.c (print_object) <HASH_TABLE_P>: `count' is an int.
	* alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
	(mark_object) <HASH_TABLE_P>: Use mark_vectorlike.

883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908
	* alloc.c (allocate_pseudovector): New fun.
	(ALLOCATE_PSEUDOVECTOR): New macro.
	(allocate_window, allocate_terminal, allocate_frame)
	(allocate_process): Use it.
	(mark_vectorlike): New function.
	(mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
	(mark_terminals): Use it.
	(Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
	(Fmake_byte_code): Use XSETPVECTYPE.

	* frame.c (Fframe_parameters): Minor simplification.

	* insdel.c (adjust_markers_for_insert): Generalize assertion checks.

	* marker.c (Fmarker_buffer): Make test for odd case into a failure.

	* buffer.c (Fget_buffer_create, init_buffer_once):
	* lread.c (defsubr):
	* window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.

	* lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
	defined differently in the m/*.h files.
	(XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
	(XSETPVECTYPE): New macro.
	(XSETPSEUDOVECTOR): Use it.

909 910
	* buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
	(DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
911

912 913 914 915 916 917 918 919 920
	* lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
	* lread.c (defvar_per_buffer):
	* abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.

	* window.c (candidate_window_p): Only consider as visible frames that
	are on the same terminal.

	* m/ibms390x.h (MARKBIT): Remove unused macro.

921 922 923 924
2007-10-01  Juanma Barranquero  <lekktu@gmail.com>

	* lread.c (Fload): Fix typo in docstring.

925 926 927 928 929
2007-10-01  Micha,Ak(Bl Cadilhac  <michael@cadilhac.name>

	* floatfns.c (Fexpt): Manually check for overflows, so that a power
	of a non-zero value can't yield zero.

930 931
2007-09-29  Stefan Monnier  <monnier@iro.umontreal.ca>

932 933 934
	* term.c (term_clear_mouse_face, term_mouse_highlight)
	(tty_write_glyphs_with_face): Only define is HAVE_GPM.

935 936
	* print.c (safe_debug_print): Use XHASH.

937 938 939 940 941 942 943
	* lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
	Lisp elements such as tags.
	(XHASH): New macro.
	(EQ): Use it.
	(SREF, SSET, STRING_COPYIN): Use SDATA.
	(VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.

944 945 946 947 948 949
	* alloc.c (mark_terminal): Remove left-over declaration.
	(enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
	(allocate_vectorlike): Remove type argument.  Adjust callers.
	(live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
	Only handle the one remaining MEM_TYPE_VECTORLIKE.

950 951 952 953 954 955 956
	* alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
	to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
	(xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
	(lisp_align_free, make_interval, allocate_string, allocate_string_data)
	(make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
	Use them.

957 958 959 960
	* xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
	Don't let signal handlers run when a GC is freed but not yet NULL'ed.
	(x_free_gc): Remove BLOCK_INPUT since it's now redundant.

961 962 963 964 965
2007-09-28  Dan Nicolaescu  <dann@ics.uci.edu>

	* Makefile.in (lisp, shortlisp): Delete server.elc, it is not
	loaded by default.

966 967
2007-09-28  Stefan Monnier  <monnier@iro.umontreal.ca>

968 969 970 971
	* term.c (Fgpm_mouse_start): Don't signal an error if already activated
	on this tty.
	(Fgpm_mouse_stop): Only deactivate if it was activated on this tty.

972 973 974 975 976 977 978 979 980
	* term.c (mouse_face_window): Rename from Qmouse_face_window.
	Update all users.
	(handle_one_term_event): Use Gpm_DrawPointer.
	(Fgpm_mouse_start): Rename from Fterm_open_connection.
	Signal errors instead of returning nil.  Always return nil.
	(Fgpm_mouse_stop): Rename from Fterm_close_connection.
	Make it a noop if gpm-mouse was not activated.
	(syms_of_term): Update names.

981 982
2007-09-27  Stefan Monnier  <monnier@iro.umontreal.ca>

983 984 985
	* sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
	(init_sys_modes): Check that gpm_tty is the current tty.

986 987 988 989 990 991
	* alloc.c (allocate_terminal): Set the vector size to only count the
	lisp fields.  Initialize those to nil.
	(mark_object): Don't treat terminals specially.
	(mark_terminal): Remove.
	(mark_terminals): Use mark_object instead.

992 993 994
	* termhooks.h (struct terminal): Move all Lisp_Object fields traced by
	the GC to the beginning.

Stefan Monnier's avatar
Stefan Monnier committed
995 996 997
	* indent.h:
	* indent.c: Use EMACS_INT for ints coming from Elisp data.

998 999
	* indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.

1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010
2007-09-25  Jason Rumney  <jasonr@gnu.org>

	* frame.c (make_terminal_frame): Remove special case for WINDOWSNT.

	* w32console.c (create_w32cons_output): Remove.

	* term.c (init_tty): Call init_sys_modes on WINDOWSNT also.

	* sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
	(reset_sys_modes): Use reset_terminal_modes_hook.

1011 1012 1013 1014
2007-09-24  Stefan Monnier  <monnier@iro.umontreal.ca>

	* eval.c (do_autoload): Don't output any message.

1015 1016 1017 1018 1019
2007-09-24  Juri Linkov  <juri@jurta.org>

	* emacs.c (standard_args): Change priority of "--no-splash"
	from 40 to 3.  Add "--no-desktop" with the same priority.

1020 1021 1022 1023 1024
2007-09-23  Dmitry Antipov  <dmantipov@yandex.ru>

	* alloc.c (gc_sweep): Check cons cell mark bits word by word
	and optimize the case where they are all 1.

1025 1026
2007-09-23  Johannes Weiner  <hannes@saeurebad.de>

1027 1028 1029
	* lisp.h (abs): Define if not defined.
	* keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
	Don't define `abs', since it's defined in lisp.h.
1030

1031 1032
2007-09-22  Eli Zaretskii  <eliz@gnu.org>

1033
	* term.c (DEV_TTY): New macro.  Provide a definition for MS-Windows.
1034 1035 1036 1037 1038
	(FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
	(Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
	(init_tty): Use DEV_TTY instead of "/dev/tty".
	[WINDOWSNT]: No need to protect from NAME arg being null.

1039 1040 1041 1042 1043
2007-09-21  Dan Nicolaescu  <dann@ics.uci.edu>

	* term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
	up the tty state.

1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055
2007-09-21  Stefan Monnier  <monnier@iro.umontreal.ca>

	* termhooks.h (term_gpm): Delete.  Use gpm_tty's NULLness instead.
	(gpm_tty): Change its type.
	* term.c (term_gpm): Delete.  Use gpm_tty's NULLness instead.
	(gpm_tty): Change its type and initialize it.
	(Fterm_open_connection): Check the frame is indeed a tty.
	Use the new gpm_tty.
	(Fterm_close_connection): Use the new gpm_tty.
	* keyboard.c (tty_read_avail_input): Use the new gpm_tty.
	* sysdep.c (init_sys_modes): term_gpm -> gpm_tty.

1056 1057 1058 1059 1060
2007-09-21  Juanma Barranquero  <lekktu@gmail.com>

	* w32term.c (x_draw_glyph_string): Use strike_through_color, not
	underline_color, to draw strike-through.

1061 1062
2007-09-21  Stefan Monnier  <monnier@iro.umontreal.ca>

Stefan Monnier's avatar
Stefan Monnier committed
1063 1064
	* lisp.h (allocate_terminal): Declare.

1065 1066 1067 1068 1069 1070
	* window.c (candidate_window_p): Consider frames that are being placed
	by the user as somewhere between visible and iconified.
	(window_loop): Prefer windows on the current frame.
	(Fselect_window): Move the use of select-frame to the beginning so we
	can just delegate all the work (it'll call us back anyway).

1071 1072 1073
	* frame.c (Qdisplay_environment_variable):
	* frame.h (Qdisplay_environment_variable): Delete.

1074 1075 1076
	* .gdbinit (xbacktrace): Print the arg's address rather than the value
	of the first arg, since that value may be a union.

1077 1078 1079 1080
	* callproc.c (child_setup, getenv_internal): Use the frame's `display'
	parameter rather than Qdisplay_environment_variable.  If all else
	fails, look for DISPLAY in initial-environment.

Glenn Morris's avatar
Glenn Morris committed
1081 1082 1083
2007-09-21  Glenn Morris  <rgm@gnu.org>

	* Makefile.in (emacstool): Remove target.
Glenn Morris's avatar
Glenn Morris committed
1084
	(lisp, shortlisp): Remove termdev.elc.
Glenn Morris's avatar
Glenn Morris committed
1085

1086 1087
2007-09-21  Markus Triska  <markus.triska@gmx.at>

1088
	* xterm.c (x_delete_display): Compile session management conditionally.
1089

1090 1091
2007-09-20  Stefan Monnier  <monnier@iro.umontreal.ca>

1092 1093 1094 1095
	* callproc.c (getenv_internal_1): New function.
	(getenv_internal): Use it.
	(Fgetenv_internal): Use it.  Accept an env-list as optional arg.

1096
	* terminal.c (get_terminal): Don't accept ints to represent terminals.
1097 1098 1099 1100
	(Fterminal_name, Fterminal_parameters, Fterminal_parameter)
	(Fset_terminal_parameter): Work with dead terminals as well.
	(Fmodify_terminal_parameters): Remove.

1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114
	* terminal.c (get_terminal): Handle terminals.
	Make sure the terminal returned is live.
	(create_terminal): Use allocate_terminal.
	(mark_terminals): Move to alloc.c.
	(delete_terminal): Use terminal->name as liveness status.
	NULL out fields after freeing their contents.
	Don't deallocate the object.
	(Fframe_terminal): Use FRAME_TERMINAL.  Return the terminal object
	rather than an int.
	(Fterminal_live_p): Accept non-integer arguments.
	(Fterminal_list): Return terminal objects rather than an ints.

	* alloc.c (enum mem_type): New member for `terminal' objects.
	(allocate_terminal): New function.
1115 1116
	(mark_maybe_pointer, valid_lisp_object_p, mark_object):
	Handle terminals.
1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137
	(mark_terminal): New fun.
	(mark_terminals): Move from terminal.c.

	* term.c (get_tty_terminal): Don't treat output_initial specially.
	(Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
	(delete_tty): Use terminal->name as liveness status.

	* termhooks.h (struct terminal): Make it into a pseudovector.
	Remove `deleted' replaced by checking `name's nullness.

	* print.c (print_object): Handle terminals.

	* lisp.h (enum pvec_type): New `terminal' pseudovector.
	(XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.

	* frame.c (make_terminal_frame):
	* keyboard.c (tty_read_avail_input):
	* w32term.c (x_delete_terminal):
	* xfns.c (Fx_create_frame, x_create_tip_frame):
	* xterm.c (x_delete_terminal): Use terminal->name as liveness status.

1138 1139 1140 1141
2007-09-20  Glenn Morris  <rgm@gnu.org>

	* process.c (Fmake_network_process): Doc fix.

1142 1143 1144 1145
2007-09-19  Jason Rumney  <jasonr@gnu.org>

	* dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.

1146 1147 1148 1149 1150 1151 1152
2007-09-19  Micha,Ak(Bl Cadilhac  <michael@cadilhac.name>

	* coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
	Fix a C warning regarding variable constness.

	* xterm.c (handle_one_xevent): Fix a C warning.

1153 1154 1155 1156
2007-09-18  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.

Jan Djärv's avatar
Jan Djärv committed
1157 1158 1159 1160 1161 1162 1163
2007-09-17  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c (gdpy_def): New variable.
	(xg_initialize): Initialize gdpy_def.
	(xg_display_close): If no other display exists, set gdpy_def to a
	new connection.

1164 1165 1166 1167 1168 1169 1170 1171 1172
2007-09-16  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
	when we have no file name for the icon.
	(xg_tool_bar_expose_callback): Remove.
	(xg_create_tool_bar): Don't connect expose signal to
	xg_tool_bar_expose_callback.
	(xg_get_file_with_chooser): Move GCPRO1 after declarations.

1173 1174 1175 1176 1177
2007-09-16  Andreas Schwab  <schwab@suse.de>

	* alloc.c (reset_malloc_hooks): Set the hooks to the previous
	values instead of zapping them.

1178 1179 1180 1181 1182 1183 1184 1185
2007-09-14  Glenn Morris  <rgm@gnu.org>

	* fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
	* gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
	* image.c (our_memory_fill_input_buffer) <buffer>: Move to file
	scope and rename to omfib_buffer for clarity.
	(gif_load) <interlace_start, interlace_increment>: Move to file scope.

1186 1187 1188 1189
2007-09-14  Kenichi Handa  <handa@m17n.org>

	* xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.

1190 1191 1192 1193 1194 1195 1196 1197 1198
2007-09-13  Jason Rumney  <jasonr@gnu.org>

	* fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.

	* w32term.c (w32_term_init): Pass rif to w32_init_fringe.

	* macterm.c (mac_initialize): Don't call mac_init_fringe here.
	(mac_term_init): Call here instead, passing rif.

Glenn Morris's avatar
Glenn Morris committed
1199 1200 1201 1202
2007-09-13  Glenn Morris  <rgm@gnu.org>

	* s/hpux.h: No longer define `static' as nothing.

Glenn Morris's avatar
Glenn Morris committed
1203 1204 1205 1206
2007-09-13  Johan Bockg,Ae(Brd  <bojohan@gnu.org>

	* callint.c (Fcall_interactively): Remove unused var `fun'.

1207 1208 1209 1210 1211
2007-09-12  Romain Francoise  <romain@orebokech.com>

	* window.c (prefer_window_split_horizontally, display_buffer):
	Revert 2007-09-08 change.

Glenn Morris's avatar
Glenn Morris committed
1212 1213
2007-09-12  Glenn Morris  <rgm@gnu.org>

Glenn Morris's avatar
Glenn Morris committed
1214
	* alloca.c: Remove file.
1215 1216 1217 1218 1219 1220 1221 1222
	* Makefile.in (alloca): Do not undef.
	(allocaobj, alloca.o): Remove.
	(otherobj): Remove allocaobj.
	* keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
	* regex.c (C_ALLOCA): Remove all references and code that was only
	used when this was defined.
	* search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
	* xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
1223 1224
	* m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.

Glenn Morris's avatar
Glenn Morris committed
1225
	* Makefile.in (SOURCES, unlock, relock): Delete.
1226 1227 1228 1229