ChangeLog 402 KB
Newer Older
1 2 3 4 5 6 7
2012-05-17  Juri Linkov  <juri@jurta.org>

	* search.c (Fword_search_regexp, Fword_search_backward)
	(Fword_search_forward, Fword_search_backward_lax)
	(Fword_search_forward_lax): Move functions to isearch.el
	(bug#10145, bug#11381).

8 9 10 11
2012-05-16  Paul Eggert  <eggert@cs.ucla.edu>

	* xgselect.c (xg_select): Just invoke 'select' if -nw (Bug#9754).

12 13 14 15
2012-05-15  Stefan Monnier  <monnier@iro.umontreal.ca>

	* lread.c (init_obarray): Declare Qt and Qnil as special.

16 17 18
2012-05-14  Glenn Morris  <rgm@gnu.org>

	* nsterm.m (ns_init_paths): Fix typo ("libexec" not "lib-exec").
19
	Put "libexec" before "bin", for the sake of init_callproc_1.
20

21 22
2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>

23 24
	* keyboard.c (kbd_buffer_get_event) [!HAVE_DBUS]: Omit unused local.

25 26 27 28 29 30
	* unexaix.c: Port to more-recent AIX compilers.
	(report_error, report_error_1, make_hdr, copy_sym)
	(mark_x, adjust_lnnoptrs, unrelocate_symbols):
	Make arguments const char *, not char *, to avoid violations of C
	standard and to fix some AIX warnings reported by Gilles Pion.

31
2012-05-14  Eli Zaretskii  <eliz@gnu.org>
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46

	* xdisp.c (handle_stop): Don't call get_overlay_strings_1 if we
	already have overlays loaded.
	(handle_single_display_spec): Before returning without displaying
	fringe bitmap, synchronize the bidi iterator with the main display
	iterator, by calling iterate_out_of_display_property.
	(iterate_out_of_display_property): Detect buffer iteration by
	testing that it->string is a Lisp string.
	(get_next_display_element): When the current object is exhausted,
	and there's something on it->stack, call set_iterator_to_next to
	proceed with what's on the stack, instead of returning zero.
	(set_iterator_to_next): If called at the end of a Lisp string,
	proceed to consider_string_end without incrementing string
	position.  Don't increment display vector index past the end of
	the display vector.  (Bug#11417)
47 48 49
	(pos_visible_p): Don't report a position visible when move_it_to
	stopped at the last line of window, which happens to be scanned
	backwards by the bidi iteration.  (Bug#11464)
50

51
2012-05-14  Eli Zaretskii  <eliz@gnu.org>
52 53 54 55 56 57 58 59 60

	* xdisp.c (handle_single_display_spec): Return 1 for left-margin
	and right-margin display specs even if the spec is invalid or we
	are on a TTY, and thus unable to display on the fringes.  That's
	because the text with the property will not be displayed anyway,
	so we need to signal to the caller that this is a "replacing"
	display spec.  This fixes display when the spec is invalid or we
	are on a TTY.

61
2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62 63 64 65

	* unexaix.c (make_hdr): Fix typo in prototype.
	This bug broke the build on AIX.  Problem reported by Gilles Pion.

66 67 68 69 70
2012-05-14  Michael Albinus  <michael.albinus@gmx.de>

	* keyboard.c (kbd_buffer_get_event): Read special events also in
	batch mode.  (Bug#11415)

71 72 73 74
2012-05-12  Glenn Morris  <rgm@gnu.org>

	* ns.mk: Update for ns_appbindir no longer having trailing "/".

75 76 77 78
2012-05-12  Eli Zaretskii  <eliz@gnu.org>

	* lisp.mk (lisp): Add newcomment.elc.

79 80 81 82 83
2012-05-12  Glenn Morris  <rgm@gnu.org>

	* Makefile.in (MKDIR_P): New, set by configure.
	* ns.mk (${ns_appdir}, ${ns_appbindir}Emacs): Use $MKDIR_P.

84 85 86 87 88 89 90
2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>

	Remove unused function hourglass_started.
	* dispextern.h (hourglass_started):
	* w32fns.c (hourglass_started):
	* xdisp.c (hourglass_started): Remove.

91 92 93 94 95
2012-05-10  Juanma Barranquero  <lekktu@gmail.com>

	* makefile.w32-in ($(BLD)/gmalloc.$(O), $(BLD)/w32menu.$(O)):
	Update dependencies.

96 97
2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>

98 99 100
	* xgselect.c (xg_select): Put maxfds+1 into a var.
	This is slightly clearer, and pacifies Ubuntu 12.04 gcc.

101 102
	* sound.c (DEFAULT_ALSA_SOUND_DEVICE): Define only if HAVE_ALSA.

103 104 105 106 107
2012-05-10  Dave Abrahams  <dave@boostpro.com>

	* filelock.c (syms_of_filelock): New boolean create-lockfiles.
	(lock_file): If create_lockfiles is 0, do nothing.  (Bug#11227)

108 109 110 111 112 113 114
2012-05-09  Michael Albinus  <michael.albinus@gmx.de>

	* dbusbind.c (xd_registered_buses): New internal Lisp object.
	Rename all occurences of Vdbus_registered_buses to xd_registered_buses.
	(syms_of_dbusbind): Remove declaration of Vdbus_registered_buses.
	Initialize xd_registered_buses.

115 116
2012-05-09  Paul Eggert  <eggert@cs.ucla.edu>

117 118 119 120 121 122 123 124 125 126 127 128 129 130
	Untag more efficiently if USE_LSB_TAG.
	This is based on a proposal by YAMAMOTO Mitsuharu in
	<http://lists.gnu.org/archive/html/emacs-devel/2008-01/msg01876.html>.
	For an admittedly artificial (nth 8000 longlist) benchmark on
	Fedora 15 x86-64, this yields a 25% CPU speedup.  Also, it shrinks
	Emacs's overall text size by 1%.
	* lisp.h (XUNTAG): New macro.
	(XCONS, XVECTOR, XSTRING, XSYMBOL, XFLOAT, XMISC, XPROCESS, XWINDOW)
	(XTERMINAL, XSUBR, XBUFFER, XCHAR_TABLE, XSUB_CHAR_TABLE, XBOOL_VECTOR)
	(XSETTYPED_PSEUDOVECTOR, XHASH_TABLE, TYPED_PSEUDOVECTORP): Use it.
	* eval.c (Fautoload):
	* font.h (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT):
	* frame.h (XFRAME): Use XUNTAG.

131 132 133 134 135 136 137 138
	Port recent dbusbind.c changes to 32-bit --with-wide-int.
	* dbusbind.c (xd_append_arg, xd_retrieve_arg, Fdbus_message_internal):
	Remove unportable assumptions about print widths of types like
	dbus_uint32_t.
	(xd_get_connection_address, Fdbus_init_bus): Cast Emacs integer to
	intptr_t when converting between pointer and integer, to avoid GCC
	warnings about wrong width.

139
2012-05-09  Eli Zaretskii  <eliz@gnu.org>
140 141 142 143 144 145 146

	* w32proc.c (new_child): Force Windows to reserve only 64KB of
	stack for each reader_thread, instead of defaulting to 8MB
	determined by the linker.  This avoids failures in creating
	subprocesses on Windows 7, see the discussion in this thread:
	http://lists.gnu.org/archive/html/emacs-devel/2012-03/msg00119.html.

147 148 149 150 151 152
2012-05-07  Jérémy Compostella  <jeremy.compostella@gmail.com>

	Fix up display of the *Minibuf-0* buffer in the mini window.
	* keyboard.c (read_char): Don't clear the echo area if there's no
	message to clear.
	* xdisp.c (redisplay_internal): Redisplay the mini window (with the
153
	contents of *Minibuf-0*) if there's no message displayed in its stead.
154

155 156 157 158 159
2012-05-07  Michael Albinus  <michael.albinus@gmx.de>

	* dbusbind.c (XD_DEBUG_MESSAGE): Don't print message twice in
	batch mode.

160 161 162 163
2012-05-06  Chong Yidong  <cyd@gnu.org>

	* lisp.mk (lisp): Update.

164
2012-05-05  Jim Meyering  <meyering@redhat.com>
165 166 167

	* w32font.c (fill_in_logfont): NUL-terminate a string (Bug#11372).

168 169 170 171 172 173 174 175 176 177
2012-05-04  Stefan Monnier  <monnier@iro.umontreal.ca>

	* data.c (PUT_ERROR): New macro.
	(syms_of_data): Use it.  Add new error type `user-error'.
	* undo.c (user_error): New function.
	(Fprimitive_undo): Use it.
	* print.c (print_error_message): Adjust print style for `user-error'.
	* keyboard.c (user_error): New function.
	(Fexit_recursive_edit, Fabort_recursive_edit): Use it.

178 179 180 181 182 183 184 185
2012-05-03  Paul Eggert  <eggert@cs.ucla.edu>

	Do not limit current-time-string to years 1000..9999.
	* editfns.c (TM_YEAR_IN_ASCTIME_RANGE): Remove.
	(Fcurrent_time_string): Support any year that is supported by the
	underlying localtime representation.  Don't use asctime, as it
	has undefined behavior for years outside the range -999..9999.

186 187 188 189 190 191 192 193 194 195 196 197 198
2012-05-02  Paul Eggert  <eggert@cs.ucla.edu>

	Fix race conditions involving setenv, gmtime, localtime, asctime.
	Without this fix, interrupts could mess up code that uses these
	nonreentrant functions, since setting TZ invalidates existing
	tm_zone or tzname values, and since most of these functions return
	pointers to static storage.
	* editfns.c (format_time_string, Fdecode_time, Fencode_time)
	(Fcurrent_time_string, Fcurrent_time_zone, Fset_time_zone_rule):
	Grow the critical sections to include not just invoking
	localtime/gmtime, but also accessing these functions' results
	including their tm_zone values if any, and any related TZ setting.
	(format_time_string): Last arg is now struct tm *, not struct tm **,
199 200
	so that the struct tm is saved in the critical section.
	All callers changed.  Simplify allocation of initial buffer, partly
201 202 203
	motivated by the fact that memory allocation needs to be outside
	the critical section.

204 205 206 207 208 209 210 211
2012-05-02  Dmitry Antipov  <dmantipov@yandex.ru>

	* intervals.c (adjust_intervals_for_insertion): Initialize `newi'
	with RESET_INTERVAL.

	* buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
	Remove duplicated buffer name initialization.

212 213 214 215
2012-05-02  Jim Meyering  <jim@meyering.net>

	* xterm.c (x_term_init): Use memcpy instead of strncpy (Bug#11373).

216 217
	* xfns.c (x_window): Use xstrdup (Bug#11375).

218
2012-05-02  Eli Zaretskii  <eliz@gnu.org>
219 220 221 222 223 224

	* xdisp.c (pos_visible_p): If already at a newline from the
	display string before the 'while' loop, don't walk back the glyphs
	from it3.glyph_row.  Solves assertion violation when the display
	string begins with a newline (egg.el).  (Bug#11367)

225 226 227 228 229
2012-05-01  Stefan Monnier  <monnier@iro.umontreal.ca>

	* keyboard.c (Fexecute_extended_command, Vsuggest_key_bindings):
	Move to simple.el.

230 231
2012-05-01  Glenn Morris  <rgm@gnu.org>

232 233 234 235 236
	* syssignal.h: Remove reference to BROKEN_SIGINFO (last used in
	s/ptx4.h), BROKEN_SIGTSTP (last used in m/ustation.h, m/dpx2.h),
	and BROKEN_SIGURG (was in s/gnu-linux.h prior to 2008-02-10).
	All were removed before 23.1.

237 238 239
	* dispnew.c: Remove HAVE_LIBNCURSES test;
	it is always true on relevant platforms.

240 241 242
	* Makefile.in (LD_SWITCH_X_SITE_RPATH):
	Rename from LD_SWITCH_X_SITE_AUX_RPATH.

243 244
	* Makefile.in (LD_SWITCH_X_SITE_AUX): Remove; no longer used.

245 246 247 248 249 250
2012-04-30  Andreas Schwab  <schwab@linux-m68k.org>

	* .gdbinit (xpr): Remove checks for no longer existing misc types.
	(xintfwd, xboolfwd, xobjfwd, xbufobjfwd, xkbobjfwd, xbuflocal):
	Remove.

251 252 253 254 255 256 257 258 259
2012-04-28  Paul Eggert  <eggert@cs.ucla.edu>

	Do not avoid creating empty evaporating overlays (Bug#9642).
	* buffer.c (Fmove_overlay): Revert the change of 2012-04-23.
	That is, do not delete an evaporating overlay if it becomes
	empty after its bounds are adjusted to fit within its buffer.
	This fix caused other problems, and I'm reverting it until we get
	to the bottom of them.

260
2012-04-27  Chong Yidong  <cyd@gnu.org>
261 262 263

	* xselect.c (x_convert_selection): Initialize a pointer (Bug#11315).

264
2012-04-27  Eli Zaretskii  <eliz@gnu.org>
265 266 267 268 269 270 271 272

	* xdisp.c (pos_visible_p): If the window start position is beyond
	ZV, start the display from buffer beginning.  Prevents assertion
	violation in init_iterator when the minibuffer window is scrolled
	via the scroll bar.

	* window.c (window_scroll_pixel_based): Likewise.

273
2012-04-27  Chong Yidong  <cyd@gnu.org>
274 275 276

	* keymap.c (where_is_internal): Doc fix (Bug#10872).

277
2012-04-27  Glenn Morris  <rgm@gnu.org>
Glenn Morris's avatar
Glenn Morris committed
278 279 280 281

	* fileio.c (Fcopy_file, Fset_file_selinux_context):
	Ignore ENOTSUP failures from setfilecon functions.  (Bug#11245)

282
2012-04-27  Eli Zaretskii  <eliz@gnu.org>
283

284 285
	* dispnew.c (swap_glyph_pointers, copy_row_except_pointers):
	Don't overrun array limits of glyph row's used[] array.  (Bug#11288)
286

287 288
2012-04-26  Eli Zaretskii  <eliz@gnu.org>

289 290 291 292
	* xdisp.c (IT_DISPLAYING_WHITESPACE): In addition to the loaded
	display element, check also the underlying string or buffer
	character.  (Bug#11341)

293 294 295 296 297
	* w32menu.c: Include w32heap.h.
	(add_menu_item): If the call to AppendMenuW (via
	unicode_append_menu) fails, disable Unicode menus only if we are
	running on Windows 9X/Me.

298 299 300 301 302
2012-04-24  Andreas Schwab  <schwab@linux-m68k.org>

	* .gdbinit (xpr): Handle USE_2_TAGS_FOR_INTS.
	(xgetint): Add missing shift for LSB tags.

303 304 305 306 307 308
2012-04-24  Martin Rudalics  <rudalics@gmx.at>

	* keyboard.c (read_char): Don't wipe echo area for select window
	events: These might get delayed via `mouse-autoselect-window'
	(Bug#11304).

309 310 311 312 313
2012-04-24  Juanma Barranquero  <lekktu@gmail.com>

	* gnutls.c (init_gnutls_functions): Protect against (unlikely)
	manipulation of :loaded-from data.

314 315 316 317 318
2012-04-23  Juanma Barranquero  <lekktu@gmail.com>

	* gnutls.c (init_gnutls_functions): The value of :loaded-from is
	now a cons (bug#11311).

319 320
2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>

321 322 323 324 325 326 327 328
	Do not create empty overlays with the evaporate property (Bug#9642).
	* buffer.c (Fmove_overlay): Delete an evaporating overlay
	if it becomes empty after its bounds are adjusted to fit within
	its buffer.  Without this fix, in a nonempty buffer (let ((o
	(make-overlay 1 2))) (overlay-put o 'evaporate t) (move-overlay o 0 1))
	yields an empty overlay that has the evaporate property, which is
	not supposed to happen.

329 330 331 332 333 334 335 336 337 338 339 340 341 342 343
	Fix minor GTK3 problems found by static checking.
	* emacsgtkfixed.c (EMACS_TYPE_FIXED, EMACS_FIXED, EmacsFixed)
	(EmacsFixedPrivate, EmacsFixedClass, struct _EmacsFixed)
	(struct _EmacsFixedClass, emacs_fixed_get_type):
	Move decls here from emacsgtkfixed.h, since they needn't be public.
	(emacs_fixed_get_type): Now static.
	(emacs_fixed_class_init): Omit unused local.
	(emacs_fixed_child_type): Remove; unused.
	* emacsgtkfixed.h (EMACS_TYPE_FIXED, EMACS_FIXED, EmacsFixed)
	(EmacsFixedPrivate, EmacsFixedClass, struct _EmacsFixed)
	(struct _EmacsFixedClass): Move to emacsgtkfixed.c.
	(EMACS_FIXED_CLASS, EMACS_IS_FIXED, EMACS_IS_FIXED_CLASS)
	(EMACS_FIXED_GET_CLASS): Remove; unused.
	* gtkutil.c (xg_create_frame_widgets) [!HAVE_GTK3]: Omit unused local.

344 345 346
	* keyboard.c (handle_async_input): Define only if SYNC_INPUT || SIGIO.
	Problem reported by Juanma Barranquero for Windows -Wunused-function.

347 348
2012-04-22  Paul Eggert  <eggert@cs.ucla.edu>

349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375
	Modernize and clean up gmalloc.c to assume C89 (Bug#9119).
	* gmalloc.c: (_MALLOC_INTERNAL, _MALLOC_H, _PP, __ptr_t)
	(__malloc_size_t, __malloc_ptrdiff_t):
	Remove.  All uses removed, replaced by the definiens if needed,
	since we can assume C89 or better now.
	Include <stdint.h>, for PTRDIFF_MAX, uintptr_t.
	(protect_malloc_state, align, get_contiguous_space)
	(malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
	(malloc_atfork_handler_child, malloc_enable_thread)
	(malloc_initialize_1, __malloc_initialize, morecore_nolock)
	(_malloc_internal_nolock, _malloc_internal, malloc, _malloc)
	(_free, _realloc, _free_internal_nolock, _free_internal, free, cfree)
	(special_realloc, _realloc_internal_nolock, _realloc_internal)
	(realloc, calloc, __default_morecore, memalign, valloc, checkhdr)
	(freehook, mallochook, reallochook, mabort, mcheck, mprobe):
	Define using prototypes, not old style.
	(align, _malloc_internal_nolock, _free_internal_nolock, memalign):
	Don't assume ptrdiff_t and uintptr_t are no wider than unsigned long.
	(align): Don't assume that signed integer overflow wraps around.
	Omit unused local var.
	(malloc_initialize_1, morecore_nolock, _malloc_internal_nolock)
	(_free_internal_nolock, memalign, mallochook, reallochook):
	Omit no-longer-needed casts.
	(valloc): Use getpagesize, not __getpagesize.
	(MAGICWORD, MAGICFREE): Now randomish size_t values, not 32-bit.
	(struct hdr): The 'magic' member is now size_t, not unsigned long.

376 377
	* dbusbind.c (XD_DBUS_VALIDATE_OBJECT): Define only if needed.

378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400
2012-04-22  Michael Albinus  <michael.albinus@gmx.de>

	Move functions from C to Lisp.  Make non-blocking method calls
	the default.  Implement further D-Bus standard interfaces.

	* dbusbind.c (DBUS_NUM_MESSAGE_TYPES): Declare.
	(QCdbus_request_name_allow_replacement)
	(QCdbus_request_name_replace_existing)
	(QCdbus_request_name_do_not_queue)
	(QCdbus_request_name_reply_primary_owner)
	(QCdbus_request_name_reply_in_queue)
	(QCdbus_request_name_reply_exists)
	(QCdbus_request_name_reply_already_owner): Move to dbus.el.
	(QCdbus_registered_serial, QCdbus_registered_method)
	(QCdbus_registered_signal): New Lisp objects.
	(XD_DEBUG_MESSAGE): Use sizeof.
	(XD_MESSAGE_TYPE_TO_STRING, XD_OBJECT_TO_STRING)
	(XD_DBUS_VALIDATE_BUS_ADDRESS, XD_DBUS_VALIDATE_OBJECT)
	(XD_DBUS_VALIDATE_BUS_NAME, XD_DBUS_VALIDATE_PATH)
	(XD_DBUS_VALIDATE_INTERFACE, XD_DBUS_VALIDATE_MEMBER): New macros.
	(XD_CHECK_DBUS_SERIAL): Rename from CHECK_DBUS_SERIAL_GET_SERIAL.
	(xd_signature, xd_append_arg): Allow float for integer types.
	(xd_get_connection_references): New function.
401 402
	(xd_get_connection_address): Rename from xd_initialize.
	Return cached address.
403 404 405 406
	(xd_remove_watch): Do not unset $DBUS_SESSION_BUS_ADDRESS.
	(xd_close_bus): Rename from Fdbus_close_bus.  Not needed on Lisp
	level.
	(Fdbus_init_bus): New optional arg PRIVATE.  Cache address.
407
	Return number of refcounts.
408 409 410 411 412 413 414 415 416 417 418 419
	(Fdbus_get_unique_name): Make stronger parameter check.
	(Fdbus_message_internal): New defun.
	(Fdbus_call_method, Fdbus_call_method_asynchronously)
	(Fdbus_method_return_internal, Fdbus_method_error_internal)
	(Fdbus_send_signal, Fdbus_register_service)
	(Fdbus_register_signal, Fdbus_register_method): Move to dbus.el.
	(xd_read_message_1): Obey new structure of Vdbus_registered_objects.
	(xd_read_queued_messages): Obey new structure of Vdbus_registered_buses.
	(Vdbus_compiled_version, Vdbus_runtime_version)
	(Vdbus_message_type_invalid, Vdbus_message_type_method_call)
	(Vdbus_message_type_method_return, Vdbus_message_type_error)
	(Vdbus_message_type_signal): New defvars.
420 421
	(Vdbus_registered_buses, Vdbus_registered_objects_table):
	Adapt docstring.
422

423 424
2012-04-22  Paul Eggert  <eggert@cs.ucla.edu>

425 426 427 428
	Fix GC_MALLOC_CHECK debugging output on 64-bit hosts.
	* alloc.c (emacs_blocked_malloc) [GC_MALLOC_CHECK]:
	Do not assume ptrdiff_t is the same width as 'int'.

429 430 431 432 433 434 435 436 437
	* alloc.c: Handle unusual debugging option combinations.
	(GC_CHECK_MARKED_OBJECTS): Undef if ! GC_MARK_STACK,
	since the two debugging options are incompatible.
	(GC_MALLOC_CHECK): Similarly, undef if GC_CHECK_MARKED_OBJECTS
	is defined.
	(mem_init, mem_insert, mem_insert_fixup):
	Define if GC_MARK_STACK || GC_MALLOC_CHECK.
	(NEED_MEM_INSERT): Remove; no longer needed.

438 439 440 441
2012-04-22  Leo Liu  <sdl.web@gmail.com>

	* sysdep.c (list_system_processes): Support Darwin (Bug#5725).

442 443 444 445 446 447 448
2012-04-22  Paul Eggert  <eggert@cs.ucla.edu>

	* sysdep.c [__FreeBSD__]: Minor cleanups.
	(list_system_processes, system_process_attributes) [__FreeBSD__]:
	Use Emacs indenting style more consistently.  Avoid some casts.
	Use 'double' consistently rather than mixing 'float' and 'double'.

449 450
2012-04-21  Eduard Wiebe  <usenet@pusto.de>

451 452
	* sysdep.c (list_system_processes, system_process_attributes):
	Add implementation for FreeBSD (Bug#5243).
453

Andreas Schwab's avatar
Andreas Schwab committed
454 455 456 457
2012-04-21  Andreas Schwab  <schwab@linux-m68k.org>

	* lisp.mk (lisp): Update.

458 459 460 461 462
2012-04-20  Paul Eggert  <eggert@cs.ucla.edu>

	* keyboard.c (process_pending_signals): Define only if SYNC_INPUT.
	It is never used otherwise.

463 464 465 466 467 468 469
2012-04-20  Stefan Monnier  <monnier@iro.umontreal.ca>

	* print.c (print_preprocess): Only check print_depth if print-circle
	is nil.
	(print_object): Check for cycles even when print-circle is nil and
	print-gensym is t, but only check print_depth if print-circle is nil.

470 471 472 473 474
2012-04-20  Chong Yidong  <cyd@gnu.org>

	* process.c (wait_reading_process_output): If EIO occurs on a pty,
	set the status to "failed" and ensure that sentinel is run.

Chong Yidong's avatar
Chong Yidong committed
475
2012-04-20  Glenn Morris  <rgm@gnu.org>
476 477 478

	* process.c (Fset_process_inherit_coding_system_flag)
	(Fset_process_query_on_exit_flag): Doc fix (mention return value).
479
	(Fmake_network_process, Fmake_serial_process): Doc fix.
480

Chong Yidong's avatar
Chong Yidong committed
481
2012-04-20  Eli Zaretskii  <eliz@gnu.org>
482 483 484 485 486 487

	* xdisp.c (string_buffer_position_lim): Limit starting position to
	BEGV.
	(set_cursor_from_row): If called for a mode-line or header-line
	row, return zero immediately.
	(try_cursor_movement): If inside continuation line, don't back up
488 489
	farther than the first row after the header line, if any.
	Don't consider the header-line row as "partially visible", even if
490 491
	MATRIX_ROW_PARTIALLY_VISIBLE_P returns non-zero.  (Bug#11261)

Chong Yidong's avatar
Chong Yidong committed
492
2012-04-20  Atsuo Ohki  <ohki@gssm.otsuka.tsukuba.ac.jp>  (tiny change)
493

494 495
	* lread.c (lisp_file_lexically_bound_p): Fix hang at ";-*-\n"
	(bug#11238).
496

Chong Yidong's avatar
Chong Yidong committed
497
2012-04-20  Teodor Zlatanov  <tzz@lifelogs.com>
Paul Eggert's avatar
Paul Eggert committed
498
2012-04-18  Paul Eggert  <eggert@cs.ucla.edu>
Paul Eggert's avatar
Paul Eggert committed
499 500 501 502 503 504 505 506 507 508 509 510

	configure: new option --enable-gcc-warnings (Bug#11207)
	* Makefile.in (C_WARNINGS_SWITCH): Remove.
	(WARN_CFLAGS, WERROR_CFLAGS): New macros.
	(ALL_CFLAGS): Use new macros rather than old.
	* process.c: Ignore -Wstrict-overflow to work around GCC bug 52904.
	* regex.c: Ignore -Wstrict-overflow.  If !emacs, also ignore
	-Wunused-but-set-variable, -Wunused-function, -Wunused-macros,
	-Wunused-result, -Wunused-variable.  This should go away once
	the Emacs and Gnulib regex code is merged.
	(xmalloc, xrealloc): Now static.

511 512 513 514
2012-04-17  Paul Eggert  <eggert@cs.ucla.edu>

	* dired.c (Fsystem_groups): Remove unused local.

515 516 517 518
2012-04-17  Glenn Morris  <rgm@gnu.org>

	* dired.c (Fsystem_users): Doc fix.

519 520 521 522 523
2012-04-17  Dmitry Antipov  <dmantipov@yandex.ru>

	* dired.c (Fsystem_users, Fsystem_groups): New functions.  (Bug#7900)
	(syms_of_dired): Add them.

524 525
2012-04-16  Paul Eggert  <eggert@cs.ucla.edu>

526 527 528 529 530 531 532 533
	Fix minor alloc.c problems found by static checking.
	* alloc.c (_malloc_internal, _free_internal) [!DOUG_LEA_MALLOC]:
	New extern decls, to avoid calling undeclared functions.
	(dont_register_blocks): Define if ((!SYSTEM_MALLOC && !SYNC_INPUT)
	&& GC_MALLOC_CHECK), not if ((GC_MARK_STACK || defined
	GC_MALLOC_CHECK) && GC_MALLOC_CHECK), to match when it's used.
	(NEED_MEM_INSERT): New macro.
	(mem_insert, mem_insert_fixup) [!NEED_MEM_INSERT]: Remove; unused.
534
	Remove one incorrect comment and fix another.
535

536 537 538 539 540 541
	Fix minor ralloc.c problems found by static checking.
	See http://lists.gnu.org/archive/html/emacs-devel/2011-12/msg00720.html
	* ralloc.c (ALIGNED, ROUND_TO_PAGE, HEAP_PTR_SIZE)
	(r_alloc_size_in_use, r_alloc_freeze, r_alloc_thaw): Remove; unused.
	(r_alloc_sbrk): Now static.

542 543 544 545 546 547 548 549 550
	Improve ralloc.c interface checking.
	See http://lists.gnu.org/archive/html/emacs-devel/2011-12/msg00720.html
	* buffer.c (ralloc_reset_variable, r_alloc, r_re_alloc)
	(r_alloc_free) [REL_ALLOC]: Move decls from here ...
	* lisp.h (r_alloc, r_alloc_free, r_re_alloc, r_alloc_reset_variable)
	[REL_ALLOC]: ... to here, to check interface.
	* m/ia64.h (r_alloc, r_alloc_free) [REL_ALLOC && !_MALLOC_INTERNAL]:
	Remove decls.  This fixes an "It stinks!".

551 552
	* alloc.c (which_symbols): Fix alignment issue / type clash.

553 554 555 556 557 558 559 560 561 562 563
2012-04-15  Andreas Schwab  <schwab@linux-m68k.org>

	* lisp.h (struct Lisp_Symbol): Remove explicit padding.
	(struct Lisp_Misc_Any): Likewise.
	(struct Lisp_Free): Likewise.
	* alloc.c (union aligned_Lisp_Symbol): Define.
	(SYMBOL_BLOCK_SIZE, struct symbol_block): Use union
	aligned_Lisp_Symbol instead of struct Lisp_Symbol.
	(union aligned_Lisp_Misc): Define.
	(MARKER_BLOCK_SIZE, struct marker_block): Use union
	aligned_Lisp_Misc instead of union Lisp_Misc.
564
	(Fmake_symbol, allocate_misc, gc_sweep): Adjust.
565

566 567 568 569 570 571 572 573 574 575 576 577
2012-04-14  Paul Eggert  <eggert@cs.ucla.edu>

	Make GC_MAKE_GCPROS_NOOPS the default (Bug#9926).
	* lisp.h (GC_MARK_STACK): Default to GC_MAKE_GCPROS_NOOPS.
	* s/cygwin.h, s/darwin.h, s/freebsd.h, s/gnu.h, s/irix6-5.h, s/msdos.h:
	* s/netbsd.h, s/sol2-6.h:
	Remove definition of GC_MARK_STACK, since the default now works.
	* s/aix4-2.h, s/hpux10-20.h, s/unixware.h:
	Define GC_MARK_STACK to GC_USE_GCPROS_AS_BEFORE, since that's
	no longer the default.
	* s/gnu-linux.h (GC_MARK_STACK): Adjust to change in default.

578
2012-04-14  Atsuo Ohki  <ohki@gssm.otsuka.tsukuba.ac.jp>  (tiny change)
579

580 581
	* lread.c (lisp_file_lexically_bound_p):
	Fix hang at ";-*-\n" (bug#11238).
582

583 584 585 586 587 588 589 590 591 592
2012-04-14  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (find_last_unchanged_at_beg_row): Don't consider a row
	"unchanged" if its end.pos is beyond ZV.  (Bug#11199)

2012-04-14  Jan Djärv  <jan.h.d@swipnet.se>

	* nsterm.m (constrainFrameRect): Always constrain when there is only
	one screen (Bug#10962).

593 594 595 596
2012-04-13  Ken Brown  <kbrown@cornell.edu>

	* s/cygwin.h (PTY_OPEN): Don't try to close a bogus file descriptor.

597 598 599 600
2012-04-13  Reuben Thomas  <rrt@sc3d.org>

	* indent.c (Fmove_to_column): Change interactive spec (Bug#739).

601 602 603 604 605 606
2012-04-11  Daniel Colascione  <dancol@dancol.org>

	* s/cygwin.h: The vfork the #define in cygwin.h was protecting
	against is gone.  It's better to use vfork now so that when Cygwin
	gains a new, working vfork, we use it automatically (bug#10398).

607 608 609 610
2012-04-11  Stefan Monnier  <monnier@iro.umontreal.ca>

	* window.c (save_window_save): Obey window-point-insertion-type.

611 612 613 614
2012-04-11  Glenn Morris  <rgm@gnu.org>

	* Makefile.in (GNUSTEP_CFLAGS): Rename from C_SWITCH_X_SYSTEM.

615 616 617 618
2012-04-11  Stefan Monnier  <monnier@iro.umontreal.ca>

	* alloc.c (lisp_align_malloc): Remove unneeded prototype.

Juanma Barranquero's avatar
Juanma Barranquero committed
619
2012-04-10  Jason S. Cornez  <jcornez@ravenpack.com>  (tiny change)
620 621 622 623 624

	* keyboard.c: Override inhibit-quit after the third C-g (bug#6585).
	(force_quit_count): New var.
	(handle_interrupt): Use it.

625 626 627 628 629
2012-04-10  Juanma Barranquero  <lekktu@gmail.com>

	* w32.c (w32_delayed_load): Record the full path of the library
	being loaded (bug#10424).

630 631
2012-04-09  Glenn Morris  <rgm@gnu.org>

Glenn Morris's avatar
Glenn Morris committed
632 633 634
	* doc.c (Fsnarf_documentation): Check variables, functions are bound,
	not just in the obarray, before snarfing them.  (Bug#11036)

635 636 637
	* Makefile.in ($(leimdir)/leim-list.el):
	Pass EMACS rather than BUILT_EMACS.

638 639 640 641 642 643
2012-04-09  Teodor Zlatanov  <tzz@lifelogs.com>

	* process.c (make_process):
	* process.h: Add integer `gnutls_handshakes_tried' member to
	process struct.

644 645
	* gnutls.h: Add `GNUTLS_EMACS_HANDSHAKES_LIMIT' upper limit.
	Add convenience `GNUTLS_LOG2i' macro.
646 647 648 649 650 651 652

	* gnutls.c (gnutls_log_function2i): Convenience log function.
	(emacs_gnutls_read): Use new log functions,
	`gnutls_handshakes_tried' process member, and
	`GNUTLS_EMACS_HANDSHAKES_LIMIT' to limit the number of handshake
	attempts per process (connection).

653 654 655 656 657 658 659 660 661
2012-04-09  Chong Yidong  <cyd@gnu.org>

	* eval.c (Fuser_variable_p, user_variable_p_eh)
	(lisp_indirect_variable): Functions deleted.
	(Fdefvar): Caller changed.

	* callint.c (Finteractive, Fcall_interactively):
	* minibuf.c (Fread_variable): Callers changed.

662 663 664 665 666 667 668 669
2012-04-09  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (set_cursor_from_row): If the display string appears in
	the buffer at position that is closer to point than the position
	after the display string, display the cursor on the first glyph of
	the display string.  Fixes cursor display when a 'display' text
	property immediately follows invisible text.  (Bug#11094)

670 671 672 673 674 675 676
2012-04-09  Paul Eggert  <eggert@cs.ucla.edu>

	composite.c: use 'double' consistently
	* composite.c (get_composition_id): Use 'double' consistently
	instead of converting 'float' to 'double' and vice versa; this is
	easier to understand and avoids a GCC warning.

677 678
2012-04-09  Glenn Morris  <rgm@gnu.org>

679 680 681 682 683 684
	* Makefile.in: Generate leim-list with bootstrap-emacs, in
	preparation for dumping it with emacs.  (Bug#4789)
	(leimdir): New variable.
	($(leimdir)/leim-list.el): New rule.
	(emacs$(EXEEXT)): Depend on leim-list.el.

685 686 687 688
	* buffer.c (Qucs_set_table_for_input): Remove.  (Bug#9821)
	(Fget_buffer_create): Don't call Qucs_set_table_for_input.
	(init_buffer_once, syms_of_buffer): Remove Qucs_set_table_for_input.

689 690 691 692 693
2012-04-08  Andreas Schwab  <schwab@linux-m68k.org>

	* lisp.h (struct Lisp_Symbol): Add explicit padding to ensure
	proper alignment.

694 695 696 697 698
2012-04-07  Juanma Barranquero  <lekktu@gmail.com>

	* xml.c (init_libxml2_functions) [WINDOWSNT]:
	Remove unused local variable.

699 700 701 702 703 704 705 706 707
2012-04-07  Paul Eggert  <eggert@cs.ucla.edu>

	Avoid unnecessary pointer scanning in garbage collection (Bug#10780).
	* alloc.c (POINTERS_MIGHT_HIDE_IN_OBJECTS): New macro.
	(mark_memory): Mark Lisp_Objects only if pointers might hide in
	objects, as mark_maybe_pointer will catch them otherwise.
	(GC_LISP_OBJECT_ALIGNMENT): Remove; no longer needed.
	* s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT) [__mc68000__]: Likewise.

708 709 710 711 712
2012-04-07  Paul Eggert  <eggert@cs.ucla.edu>

	Fix typo that broke non-Windows builds.
	* xml.c (libxml2_loaded_p) [!!WINDOWSNT]: 'inine' -> 'inline'.

713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730
2012-04-07  Eli Zaretskii  <eliz@gnu.org>

	Support building on MS-Windows with libxml2.

	* makefile.w32-in (OBJ2): Add xml.$(O).
	(GLOBAL_SOURCES): Add xml.c.
	($(BLD)/xml.$(O)): New dependency list.

	* xml.c (DEF_XML2_FN, LOAD_XML2_FN) [WINDOWSNT]: New macros.
	(fn_htmlReadMemory, fn_xmlReadMemory, fn_xmlDocGetRootElement)
	(fn_xmlFreeDoc, fn_xmlCleanupParser, fn_xmlCheckVersion)
	[!WINDOWSNT]: New macros.
	(init_libxml2_functions, libxml2_loaded_p): New functions.
	(parse_region): Call fn_xmlCheckVersion instead of using the macro
	LIBXML_TEST_VERSION.  Call libxml2 functions via the fn_* macros.
	(xml_cleanup_parser): New function, export for fn_xmlCleanupParser.
	Calls xmlCleanupParser only if libxml2 was loaded (or statically
	linked in).
731 732
	(Flibxml_parse_html_region, Flibxml_parse_xml_region):
	Call init_libxml2_functions before calling libxml2 functions.
733 734 735 736 737 738 739 740
	(syms_of_xml) <Qlibxml2_dll>: DEFSYM it.

	* emacs.c: Don't include libxml/parser.h.
	(shut_down_emacs): Call xml_cleanup_parser, instead of calling
	xmlCleanupParser directly.

	* lisp.h [HAVE_LIBXML2]: Add prototype for xml_cleanup_parser.

741 742 743 744 745 746
2012-04-07  Eli Zaretskii  <eliz@gnu.org>

	* indent.c (Fvertical_motion): If there is a display string at
	point, use it.vpos to compute how many lines to backtrack after
	move_it_to point.  (Bug#11133)

747 748 749 750 751 752 753 754 755
2012-04-06  Eli Zaretskii  <eliz@gnu.org>

	* buffer.h (FETCH_CHAR, FETCH_MULTIBYTE_CHAR):
	* character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH): Add comments
	about subtle differences between FETCH_CHAR* and STRING_CHAR*
	macros related to unification of CJK characters.  For the details,
	see the discussion following the message here:
	http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11073#14.

756 757 758 759
2012-04-04  Chong Yidong  <cyd@gnu.org>

	* keyboard.c (Vdelayed_warnings_list): Doc fix.

760 761 762 763 764
2012-04-01  Eli Zaretskii  <eliz@gnu.org>

	* w32menu.c (simple_dialog_show, add_menu_item): Use SAFE_ALLOCA
	instead of alloca.  (Bug#11138)

Andreas Schwab's avatar
Andreas Schwab committed
765 766 767 768 769
2012-04-01  Andreas Schwab  <schwab@linux-m68k.org>

	* w32menu.c (is_simple_dialog): Properly check lisp types.
	(Bug#11141)

770 771
2012-03-31  Eli Zaretskii  <eliz@gnu.org>

772 773 774 775 776
	* xdisp.c (move_it_by_lines): When DVPOS is positive, and the
	position we get to after a call to move_it_to fails the
	IS_POS_VALID_AFTER_MOVE_P test, move to the next buffer position
	only if we wind up in a string from display property.  (Bug#11063)

777 778 779 780
	* window.c (Fdelete_other_windows_internal): Invalidate the row
	and column information about mouse highlight, so that redisplay
	restores it after reallocating the glyph matrices.  (Bug#7464)

781 782 783 784
	* xdisp.c (set_cursor_from_row): If `cursor' property on a display
	string comes from a `display' text property, use the buffer
	position of that property as if we actually saw that position in
	the row's glyphs.
785 786 787 788
	(move_it_by_lines): Remove the assertion that
	"it->current_x == 0 && it->hpos == 0" which can be legitimately
	violated when there's a before-string at the beginning of a line.
	(Bug#11063)
789

790 791 792 793 794 795 796 797 798
2012-03-30  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (append_space_for_newline): If the default face was
	remapped, use the remapped face for the appended newline.
	(extend_face_to_end_of_line): Use the remapped default face for
	extending the face to the end of the line.
	(display_line): Call extend_face_to_end_of_line when the default
	face was remapped.  (Bug#11068)

799 800 801 802
2012-03-29  Eli Zaretskii  <eliz@gnu.org>

	* s/ms-w32.h: Discourage from defining HAVE_GETCWD.

803 804 805 806
2012-03-28  Stefan Monnier  <monnier@iro.umontreal.ca>

	* keyboard.c (safe_run_hooks_error): Don't unquote strings.

807 808 809 810 811
2012-03-27  Glenn Morris  <rgm@gnu.org>

	* search.c (Fword_search_backward_lax, Fword_search_forward_lax):
	Doc fixes.

812 813 814 815 816
2012-03-26  Kenichi Handa  <handa@m17n.org>

	* dispextern.h (struct glyph): Fix previous change.  Change the
	bit length of glyphless.ch to 25 (Bug#11082).

817 818 819 820 821 822
2012-03-26  Chong Yidong  <cyd@gnu.org>

	* keyboard.c (Vselection_inhibit_update_commands): New variable.
	(command_loop_1): Use it; inhibit selection update for
	handle-select-window too (Bug#8996).

823 824
2012-03-25  Fabrice Popineau  <fabrice.popineau@supelec.fr>

825
	* w32heap.c (_heap_init, _heap_term): Remove dead MSVC-specific code.
826

827 828 829 830 831
2012-03-25  Kenichi Handa  <handa@m17n.org>

	* dispextern.h (struct glyph): Change the bit length of
	glyphless.ch to 22 to make the member glyphless fit in 32 bits.

832 833 834 835 836
2012-03-24  Eli Zaretskii  <eliz@gnu.org>

	* s/ms-w32.h (tzname): Include time.h before redirecting to
	_tzname.  Fixes the MSVC build.  (Bug#9960)

Andreas Schwab's avatar
Andreas Schwab committed
837 838
2012-03-24  Andreas Schwab  <schwab@linux-m68k.org>

839 840 841
	* xdisp.c (produce_glyphless_glyph): Limit length of acronym to 6
	characters.

Andreas Schwab's avatar
Andreas Schwab committed
842 843 844
	* xterm.c (XTread_socket): Only modify handling_signal if
	!SYNC_INPUT.  (Bug#11080)

845 846 847 848 849 850 851 852
2012-03-23  Eli Zaretskii  <eliz@gnu.org>

	* bidi.c (bidi_fetch_char): Use STRING_CHAR_AND_LENGTH instead of
	FETCH_MULTIBYTE_CHAR followed by CHAR_BYTES.  Prevents crashes
	when fetching a multibyte character consumes more bytes than
	CHAR_BYTES returns, due to unification of CJK characters in
	string_char.  (Bug#11073)

853 854 855 856 857
2012-03-23  Troels Nielsen  <bn.troels@gmail.com>  (tiny change)

	* process.c (wait_reading_process_output): Handle pty disconnect
	by refraining from sending oneself a SIGCHLD (bug#10933).

858 859 860 861
2012-03-22  Chong Yidong  <cyd@gnu.org>

	* dispextern.h (struct it): New member string_from_prefix_prop_p.

862
	* xdisp.c (push_prefix_prop): Rename from push_display_prop.
863 864 865 866
	Mark string as coming from a prefix property.
	(handle_face_prop): Use default face for prefix strings (Bug#4281).
	(pop_it, reseat_1): Save and restore string_from_prefix_prop_p.

867 868 869 870
2012-03-21  Chong Yidong  <cyd@gnu.org>

	* xfaces.c (Vface_remapping_alist): Doc fix.

871 872 873
2012-03-20  Eli Zaretskii  <eliz@gnu.org>

	* w32proc.c (Fw32_set_console_codepage)
874 875
	(Fw32_set_console_output_codepage, Fw32_get_codepage_charset):
	Doc fixes.
876

877 878 879 880 881
2012-03-20  Chong Yidong  <cyd@gnu.org>

	* dispnew.c (Fredisplay, Vredisplay_preemption_period): Update doc
	to reflect default non-nil value of redisplay-dont-pause.

882 883 884 885 886
2012-03-19  Kenichi Handa  <handa@m17n.org>

	* ftfont.c (ftfont_drive_otf): Mask bits of character code to make
	it fit in a valid range (Bug#11003).

887 888 889 890 891 892 893 894
2012-03-18  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (cursor_row_p): Even if the glyph row ends in a string
	that is not from display property, accept the row as a "cursor
	row" if one of the string's character has a non-nil `cursor'
	property.  Fixes cursor positioning when there are newlines in
	overlay strings, e.g. in icomplete.el.  (Bug#11035)

895 896 897 898
2012-03-12  Paul Eggert  <eggert@cs.ucla.edu>

	* buffer.c (compare_overlays): Don't assume args differ (Bug#6830).

899 900 901 902 903 904 905 906 907
2012-03-12  Chong Yidong  <cyd@gnu.org>

	* eval.c (inhibit_lisp_code): Rename from
	inhibit_window_configuration_change_hook; move from window.c.

	* xfns.c (unwind_create_frame_1, Fx_create_frame):
	* window.c (run_window_configuration_change_hook)
	(syms_of_window): Callers changed.

908 909
2012-03-11  Chong Yidong  <cyd@gnu.org>

910 911
	* keymap.c (Fkey_description): Doc fix (Bug#9700).

912 913
	* editfns.c (Fconstrain_to_field): Doc fix (Bug#9452).

914 915 916 917 918
2012-03-10  Chong Yidong  <cyd@gnu.org>

	* frame.c (other_visible_frames): Don't assume the selected frame
	is visible (Bug#10955).

919 920 921 922
2012-03-09  Stefan Monnier  <monnier@iro.umontreal.ca>

	* buffer.c (compare_overlays): Avoid qsort's instability (bug#6830).

923 924 925 926 927 928
2012-03-08  Jan Djärv  <jan.h.d@swipnet.se>

	* gtkutil.c (x_wm_set_size_hint): Use one row in call to
	FRAME_TEXT_LINES_TO_PIXEL_HEIGHT so base_height is greater than
	zero (Bug#10954).

929 930
2012-03-03  Glenn Morris  <rgm@gnu.org>

931
	* alloc.c (Fgarbage_collect, misc-objects-consed): Doc fixes.
932

933 934 935 936
2012-03-02  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (try_window_reusing_current_matrix): Don't move cursor
	position past the first glyph_row that ends at ZV.  (Bug#10902)
Eli Zaretskii's avatar
Eli Zaretskii committed
937 938
	(redisplay_window, next_element_from_string): Fix typos in
	comments.
939 940
	(redisplay_window): Pass to move_it_vertically the margin in
	pixels, not in screen lines.
941

942 943 944 945
2012-03-02  Glenn Morris  <rgm@gnu.org>

	* buffer.c (buffer-list-update-hook): Doc fix.

946 947 948 949 950 951 952 953
2012-02-29  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (get_overlay_strings_1): Under bidi redisplay, call
	push_it before setting up the iterator for the first overlay
	string, even if we have an empty string loaded.
	(next_overlay_string): If there's an empty string on the iterator
	stack, pop the stack.  (Bug#10903)

954 955 956 957 958 959 960 961 962 963 964
2012-02-25  Paul Eggert  <eggert@cs.ucla.edu>

	Generalize fix for crash due to non-contiguous EMACS_INT (Bug#10780).
	Suggested by Stefan Monnier in
	<http://lists.gnu.org/archive/html/emacs-devel/2012-02/msg00692.html>.
	* alloc.c (widen_to_Lisp_Object): New static function.
	(mark_memory): Also mark Lisp_Objects by fetching pointer words
	and widening them to Lisp_Objects.  This would work even if
	USE_LSB_TAG is defined and wide integers are used, which might
	happen in a future version of Emacs.

965 966
2012-02-25  Chong Yidong  <cyd@gnu.org>

967 968 969
	* fileio.c (Ffile_selinux_context, Fset_file_selinux_context):
	Doc fix.

970 971 972 973
	* xselect.c (Fx_selection_exists_p): Doc fix.
	(x_clipboard_manager_save_all): Print an informative message
	before saving to clipboard manager.

974 975 976 977 978
2012-02-24  Chong Yidong  <cyd@gnu.org>

	* keyboard.c (process_special_events): Handle all X selection
	requests in kbd_buffer, not just the next one (Bug#8869).

979 980 981 982 983 984 985 986
2012-02-23  Chong Yidong  <cyd@gnu.org>

	* xfns.c (Fx_create_frame): Avoid window-configuration-change-hook
	call when setting menu-bar-lines and tool-bar-lines parameters.
	(unwind_create_frame_1): New helper function.

	* window.c (inhibit_window_configuration_change_hook): New var.
	(run_window_configuration_change_hook): Obey it.
Chong Yidong's avatar
Chong Yidong committed
987
	(syms_of_window): Initialize it.
988

989 990 991 992 993
2012-02-22  Chong Yidong  <cyd@gnu.org>

	* xterm.c (x_draw_image_relief): Add missing type check for
	Vtool_bar_button_margin (Bug#10743).

994 995 996 997 998 999 1000
2012-02-21  Chong Yidong  <cyd@gnu.org>

	* fileio.c (Vfile_name_handler_alist): Doc fix.

	* buffer.c (Fget_file_buffer): Protect against invalid file
	handler return value.

1001 1002
2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>

1003 1004 1005
	* .gdbinit (xreload): Don't assume EMACS_INT fits in 'long'
	when computing $valmask.

1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017
	Fix crash due to non-contiguous EMACS_INT (Bug#10780).
	* lisp.h (VALBITS): Move definition up, so that USE_LSB_TAG can use it.
	(USE_LSB_TAG): Do not define if UINTPTR_MAX >> VALBITS == 0.
	It's useless in that case, and it can cause problems on hosts
	that allocate halves of EMACS_INT values separately.
	Reported by Dan Horák.  Diagnosed by Andreas Schwab in
	<http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10780#30>.
	* mem-limits.h (EXCEEDS_LISP_PTR): Define to 0 on hosts where
	UINTPTR_MAX >> VALBITS == 0.  This is required by the above change;
	it avoids undefined behavior on hosts where shifting right by more
	than the word width has undefined behavior.

1018 1019 1020 1021 1022 1023 1024 1025
2012-02-19  Chong Yidong  <cyd@gnu.org>

	* fileio.c (Ffile_name_directory, Ffile_name_nondirectory)
	(Funhandled_file_name_directory, Ffile_name_as_directory)
	(Fdirectory_file_name, Fexpand_file_name)
	(Fsubstitute_in_file_name): Protect against invalid file handler
	return values (Bug#10845).

1026 1027 1028 1029 1030
2012-02-18  Eli Zaretskii  <eliz@gnu.org>

	* .gdbinit (pitx): Fix incorrect references to fields of the
	iterator stack.

Chong Yidong's avatar
Chong Yidong committed
1031 1032 1033 1034
2012-02-17  Chong Yidong  <cyd@gnu.org>

	* syntax.c (Fscan_lists): Doc fix (Bug#10833).

1035 1036 1037 1038 1039
2012-02-15  Paul Eggert  <eggert@cs.ucla.edu>

	* image.c (MAX_IMAGE_SIZE): Increase from 6.0 to 10.0; see
	<http://lists.gnu.org/archive/html/emacs-devel/2012-02/msg00540.html>.

1040 1041 1042 1043 1044
2012-02-15  Chong Yidong  <cyd@gnu.org>

	* eval.c (Fdefvar, Fdefconst): Doc fix; note that the variable is
	marked as special.  Also, starting docstrings with * is obsolete.

1045 1046 1047 1048
2012-02-13  Andreas Schwab  <schwab@linux-m68k.org>

	* gnutls.c (emacs_gnutls_write): Fix last change.

1049 1050 1051 1052 1053
2012-02-13  Lars Ingebrigtsen  <larsi@gnus.org>

	* gnutls.c (emacs_gnutls_write): Set errno appropriately for
	send_process.

1054 1055 1056 1057
2012-02-13  Stefan Monnier  <monnier@iro.umontreal.ca>

	* keymap.c (Fsingle_key_description): Handle char ranges.

1058 1059
2012-02-12  Chong Yidong  <cyd@gnu.org>

1060 1061 1062
	* xdisp.c (handle_stop): Avoid assigning -1 to it->face_id here,
	as that creates a dangerous corner case.

1063 1064 1065
	* window.c (Fdelete_window_internal): Invalidate the mouse
	highlight (Bug#9904).

1066 1067 1068 1069 1070 1071 1072 1073 1074 1075
2012-02-12  Glenn Morris  <rgm@gnu.org>

	* xselect.c (Fx_own_selection_internal)
	(Fx_get_selection_internal, Fx_disown_selection_internal)
	(Fx_selection_owner_p, Fx_selection_exists_p): Doc fixes.
	* nsselect.m (Fx_own_selection_internal)
	(Fx_disown_selection_internal, Fx_selection_exists_p)
	(Fx_selection_owner_p, Fx_get_selection_internal):
	Sync docs and argument specs with the xselect.c versions.

1076 1077 1078 1079
2012-02-11  Lars Ingebrigtsen  <larsi@gnus.org>

	* gnutls.c (emacs_gnutls_write): Don't infloop if sendto fails.

1080 1081
2012-02-11  Eli Zaretskii  <eliz@gnu.org>

1082 1083 1084 1085 1086
	* w32select.c (Fx_selection_exists_p): Sync doc string and
	argument list with xselect.c.  (Bug#10783)

	* w16select.c (Fx_selection_exists_p): Sync doc string and
	argument list with xselect.c.  (Bug#10783)
1087

1088 1089 1090 1091
2012-02-10  Glenn Morris  <rgm@gnu.org>

	* fns.c (Fsecure_hash): Doc fix.

1092
2012-02-09  Kenichi Handa  <handa@m17n.org>
1093 1094 1095

	* coding.c (produce_chars): Fix updating of src_end (Bug#10701).

1096 1097 1098 1099 1100 1101
2012-02-07  Chong Yidong  <cyd@gnu.org>

	* buffer.c (Fbuffer_local_variables)
	(buffer_lisp_local_variables): Handle unbound vars correctly;
	don't let Qunbound leak into Lisp.

Glenn Morris's avatar
Glenn Morris committed
1102 1103
2012-02-07  Glenn Morris  <rgm@gnu.org>

Glenn Morris's avatar
Glenn Morris committed
1104 1105
	* image.c (Fimagemagick_types): Doc fix.

Glenn Morris's avatar
Glenn Morris committed
1106 1107 1108 1109
	* image.c (imagemagick-render-type): Change it from a lisp object
	to an integer.  Move the doc here from the lisp manual.
	Treat all values not equal to 0 the same.

1110 1111 1112 1113 1114
2012-02-06  Chong Yidong  <cyd@gnu.org>

	* doc.c (store_function_docstring): Avoid applying docstring of
	alias to base function (Bug#2603).

1115 1116 1117 1118 1119
2012-02-04  Andreas Schwab  <schwab@linux-m68k.org>

	* .gdbinit (pp1, pv1): Remove redundant defines.
	(pr): Use pp.

1120 1121 1122 1123
2012-02-04  Chong Yidong  <cyd@gnu.org>

	* nsterm.m: Declare a global (Bug#10694).

1124 1125
2012-02-04  Eli Zaretskii  <eliz@gnu.org>

1126 1127
	* w32.c (get_emacs_configuration_options):
	Include --enable-checking, if specified, in the return value.
1128

1129 1130 1131 1132 1133
2012-02-04  Martin Rudalics  <rudalics@gmx.at>

	* dispnew.c (change_frame_size_1): Calculate new_frame_total_cols
	after rounding frame sizes.  (Bug#9723)

1134 1135 1136 1137 1138
2012-02-04  Eli Zaretskii  <eliz@gnu.org>

	* keyboard.c (adjust_point_for_property): Don't position point
	before BEGV.  (Bug#10696)

1139 1140 1141 1142 1143 1144 1145 1146 1147
2012-02-03  Paul Eggert  <eggert@cs.ucla.edu>

	Handle overflow when computing char display width (Bug#9496).
	* character.c (char_width): Return EMACS_INT, not int.
	(char_width, c_string_width): Check for overflow when
	computing the width; this is possible now that individual
	characters can have unbounded width.  Problem introduced
	by merge from Emacs 23 on 2012-01-19.

1148 1149 1150 1151 1152
2012-02-02  Michael Albinus  <michael.albinus@gmx.de>

	* dbusbind.c (Fdbus_register_method): Mention the return value
	:ignore in the docstring.

1153 1154
2012-02-02  Glenn Morris  <rgm@gnu.org>

1155 1156
	* callproc.c (Fcall_process, Fcall_process_region): Doc fix.

1157 1158 1159 1160 1161 1162
	* nsterm.m (syms_of_nsterm) <x-toolkit-scroll-bars>:
	Unconditionally set to t.  (Bug#10673)
	* nsterm.m (syms_of_nsterm) <x-toolkit-scroll-bars>:
	* w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
	* xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Doc fix.

1163 1164 1165 1166 1167
2012-02-02  Kenichi Handa  <handa@m17n.org>

	(x_produce_glyphs): Cancel previous change.  If cmp->glyph_len is
	0, do not call append_composite_glyph.

Kenichi Handa's avatar
Kenichi Handa committed
1168
2012-02-02  Kenichi Handa  <handa@m17n.org>
1169 1170 1171 1172 1173 1174

	* xdisp.c (BUILD_COMPOSITE_GLYPH_STRING): Initialize first_s to
	NULL (Bug#6988).
	(x_produce_glyphs): If the component of a composition is a null
	string, set it->pixel_width to 1 to avoid zero-width glyph.

1175 1176 1177 1178 1179 1180 1181
2012-02-01  Eli Zaretskii  <eliz@gnu.org>

	* ralloc.c (resize_bloc, r_alloc_sbrk): Don't call memmove if its
	first 2 arguments are identical.  This makes inserting large
	output from a subprocess an order of magnitude faster on
	MS-Windows, where all sbrk'ed memory is always contiguous.

Glenn Morris's avatar
Glenn Morris committed
1182 1183 1184
2012-01-31  Glenn Morris  <rgm@gnu.org>

	* nsterm.m (syms_of_nsterm) <x-toolkit-scroll-bars>:
1185
	* w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
Glenn Morris's avatar
Glenn Morris committed
1186 1187
	* xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.

1188 1189 1190 1191
2012-01-29  Glenn Morris  <rgm@gnu.org>

	* gnutls.c (syms_of_gnutls): More doc (from etc/NEWS).

1192 1193 1194 1195
2012-01-28  Samuel Thibault  <sthibault@debian.org>  (tiny change)

	* s/gnu.h: Define POSIX_SIGNALS (Bug#10552).

1196 1197 1198 1199
2012-01-28  Chong Yidong  <cyd@gnu.org>

	* minibuf.c (syms_of_minibuf): Doc fix (Bug#10550).

1200 1201
2012-01-26  Chong Yidong  <cyd@gnu.org>

1202 1203
	* keyboard.c (Vecho_keystrokes): Document zero value (Bug#10503).

1204 1205 1206
	* search.c (Fsearch_forward, Fsearch_backward): Document negative
	repeat counts (Bug#10507).

1207 1208 1209 1210
2012-01-26  Glenn Morris  <rgm@gnu.org>

	* lread.c (syms_of_lread): Doc fix.

Chong Yidong's avatar
Chong Yidong committed
1211 1212 1213 1214 1215
2012-01-25  HIROSHI OOTA  <nil@mad.dog.cx>  (tiny change)

	* coding.c (encode_designation_at_bol): Change return value to
	EMACS_INT.

1216 1217 1218 1219
2012-01-25  Chong Yidong  <cyd@gnu.org>

	* eval.c (Fuser_variable_p): Doc fix; mention custom-variable-p.

1220 1221 1222 1223 1224
2012-01-21  Chong Yidong  <cyd@gnu.org>

	* floatfns.c (Fcopysign): Make the second argument non-optional,
	since nil is not allowed anyway.

1225 1226 1227 1228 1229
2012-01-21  Andreas Schwab  <schwab@linux-m68k.org>

	* process.c (read_process_output): Use p instead of XPROCESS (proc).
	(send_process): Likewise.

1230 1231 1232
2012-01-19  Martin Rudalics  <rudalics@gmx.at>

	* window.c (save_window_save, Fcurrent_window_configuration)
1233 1234
	(Vwindow_persistent_parameters): Do not use Qstate.
	Rewrite doc-strings.
1235

1236
2012-01-19  Kenichi Handa  <handa@m17n.org>
1237 1238

	* character.c (char_width): New function.
1239 1240
	(Fchar_width, c_string_width, lisp_string_width):
	Use char_width (Bug#9496).
1241

1242 1243 1244 1245 1246 1247
2012-01-16  Martin Rudalics  <rudalics@gmx.at>

	* window.c (Vwindow_persistent_parameters): New variable.
	(Fset_window_configuration, save_window_save): Handle persistent
	window parameters.

1248 1249 1250 1251 1252
2012-01-14  Eli Zaretskii  <eliz@gnu.org>

	* w32fns.c (signal_user_input): Don't do a QUIT, to avoid
	thrashing the stack of the thread.  (Bug#9087)

1253 1254 1255 1256
2012-01-12  Paul Eggert  <eggert@cs.ucla.edu>

	* xdisp.c (rows_from_pos_range): Add parens as per gcc -Wparentheses.

1257 1258 1259 1260 1261 1262 1263 1264
2012-01-11  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (rows_from_pos_range): Handle the case where the
	highlight ends on a newline.  (Bug#10464)
	(mouse_face_from_buffer_pos): Fix off-by-one error in calculating
	he end column for display of highlight that ends on a newline
	before a R2L line.

Glenn Morris's avatar
Glenn Morris committed
1265 1266 1267 1268 1269
2012-01-11  Glenn Morris  <rgm@gnu.org>

	* lread.c (init_lread): If no-site-lisp, remove site-lisp dirs
	from load-path also when installation-directory is nil.  (Bug#10208)

1270 1271
2012-01-10  Glenn Morris  <rgm@gnu.org>

1272 1273
	* emacs.c (syms_of_emacs) <installation-directory>: Doc fix.

1274 1275
	* epaths.in (PATH_LOADSEARCH, PATH_EXEC, PATH_DATA, PATH_DOC):
	Update template values to be closer to their typical values these days.
1276

1277 1278 1279 1280 1281 1282 1283
2012-01-09  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (rows_from_pos_range): Accept additional argument
	DISP_STRING, and accept any glyph in a row whose object is that
	string as eligible for mouse highlight.  Fixes mouse highlight of
	display strings from overlays.  (Bug#10464)

Paul Eggert's avatar
Paul Eggert committed
1284
2012-01-07  Paul Eggert  <eggert@cs.ucla.edu>
1285

Paul Eggert's avatar
Paul Eggert committed
1286
	emacs: fix an auto-save permissions race condition (Bug#10400)
1287 1288 1289 1290 1291 1292
	* fileio.c (auto_saving_dir_umask): New static var.
	(Fmake_directory_internal): Use it.
	(do_auto_save_make_dir): Set it, instead of invoking chmod after
	creating the directory.  The old code temporarily assigns
	too-generous permissions to the directory.
	(do_auto_save_eh): Clear it.
Paul Eggert's avatar
Paul Eggert committed
1293
	(Fdo_auto_save): Catch all errors, not just file errors, so
1294 1295
	that the var is always cleared.

1296 1297 1298 1299 1300
2012-01-07  Eli Zaretskii  <eliz@gnu.org>

	* search.c (scan_buffer): Pass character positions to
	know_region_cache, not byte positions.  (Bug#6540)

1301 1302 1303 1304 1305
2012-01-07  LynX  <_LynX@bk.ru>  (tiny change)

	* w32.c (sys_rename): Report EXDEV when rename of a directory
	fails because the target is on another logical disk.  (Bug#10284)

1306 1307 1308 1309 1310 1311 1312 1313
2012-01-07  David Benjamin  <davidben@mit.edu>  (tiny change)

	* xterm.c (x_embed_request_focus): New function.

	* xterm.h: Add prototype.

	* xfns.c (Fx_focus_frame): Use it for embedded frames (Bug#9977).

1314 1315 1316 1317
2012-01-05  Glenn Morris  <rgm@gnu.org>

	* emacs.c (emacs_copyright): Update short copyright year to 2012.

1318 1319 1320 1321 1322 1323 1324 1325
2012-01-01  Eli Zaretskii  <eliz@gnu.org>

	* gnutls.c (init_gnutls_functions): Load gnutls_check_version.
	Load gnutls_transport_set_lowat only if GnuTLS version is below
	2.11.1.
	(emacs_gnutls_handshake): Call gnutls_transport_set_lowat only for
	GnuTLS versions below 2.11.1.

1326 1327 1328 1329 1330 1331
2011-12-31  Antoine Levitt  <antoine.levitt@gmail.com>

	* xdisp.c (syms_of_xdisp) <window-scroll-functions>: Add warning
	to the doc string advising against its use for altering the way
	windows are scrolled.

1332 1333 1334 1335 1336 1337
2011-12-28  Kenichi Handa  <handa@m17n.org>

	* coding.c (Fdefine_coding_system_internal): Make an utf-8 base
	coding-system ASCII compatible only when it does not produce BOM
	on encoding (Bug#10383).

1338 1339 1340 1341 1342 1343 1344
2011-12-26  Jan Djärv  <jan.h.d@swipnet.se>

	* xmenu.c (x_menu_wait_for_event): Use xg_select for Gtk3 so menus
	can scroll.
	(create_and_show_popup_menu): Always use menu_position_func for
	Gtk3 (Bug#10361).

1345 1346 1347 1348
2011-12-24  Andreas Schwab  <schwab@linux-m68k.org>

	* callint.c (Fcall_interactively): Don't truncate prompt string.

1349 1350