ChangeLog 437 KB
Newer Older
1 2 3 4 5 6
2014-11-17  Oscar Fuentes  <ofv@wanadoo.es>

	* src/w32.c: Use MINGW_W64 instead of _W64.

	* src/w32term.c: Likewise.

7 8 9 10
2014-11-16  Stefan Monnier  <monnier@iro.umontreal.ca>

	* frame.c (Fhandle_switch_frame): Deactivate shift-region (bug#19003).

Jan D's avatar
Jan D committed
11 12 13 14 15
2014-11-15  Jan Djärv  <jan.h.d@swipnet.se>

        * nsterm.m (ns_send_appdefined): Check for application defined
        event on Cocoa (Bug#18993).  Backport from trunk.

16 17 18 19 20 21
2014-11-15  Eli Zaretskii  <eliz@gnu.org>

	* window.c (window_scroll_pixel_based): Avoid truncation/rounding
	errors in computing the number of pixels to scroll.  Suggested by
	Kelly Dean <kelly@prtime.org>.  (Bug#19060)

Jan D's avatar
Jan D committed
22 23
2014-11-15  Jan Djärv  <jan.h.d@swipnet.se>

24 25 26
	* nsmenu.m (update_frame_tool_bar): If tool bar changes height,
	call updateFrameSize.

Jan D's avatar
Jan D committed
27 28
	* nsterm.m (setFrame:): Remove call to display (Bug#18757).

Jan Djärv's avatar
Jan Djärv committed
29 30 31 32 33 34
2014-11-14  Jan Djärv  <jan.h.d@swipnet.se>

	* nsfns.m (x_set_foreground_color, x_set_background_color)
	(x_set_cursor_color, Fxw_color_values): Block/unblock input,
	use SET_FRAME_GARBAGED instead of redraw_frame (Bug#19036).

35 36
2014-11-09  Eli Zaretskii  <eliz@gnu.org>

37 38 39
	* fileio.c (Finsert_file_contents): Invalidate buffer caches also
	when the inserted text does not need decoding.  (Bug#18982)

40 41 42
	* w32heap.c (allocate_heap): Set the lower limit of heap at 8MB.
	(Bug#18995)

43 44 45 46 47 48 49 50 51
2014-11-09  Jan Djärv  <jan.h.d@swipnet.se>

	* nsterm.h (EmacsScroller): judge returns bool.

	* nsterm.m (ns_set_vertical_scroll_bar): Release bar.
	(ns_judge_scroll_bars): Only set removed if judge returns true.
	(judge): Returns bool == condemned.  Remove self from window.
	(setPosition:portion:whole:): Remove raise SIGIO (Bug#18757).

52 53 54 55 56
2014-11-08  Jan Djärv  <jan.h.d@swipnet.se>

	* nsterm.m (init): Replace OSX 10.9 check with IMPL_COCOA.
	(run): Ditto.  Only use non-system event loop if OSX version is
	exactly 10.9 (Bug#18993).
57 58
	(ns_set_vertical_scroll_bar): Don't call bar setPosition: unless
	needed (Bug#18757).
59

60 61 62 63 64
2014-11-07  Michael Albinus  <michael.albinus@gmx.de>

	* callproc.c (encode_current_directory): Support handling of file
	names prepended by "/:".  (Bug#18891)

65 66 67 68
2014-11-06  Alan Mackenzie  <acm@muc.de>

	* syntax.c (back_comment): Fix off-by-one error (bug#18022).

69 70 71 72
2014-11-06  Dima Kogan  <dima@secretsauce.net>

	* xgselect.c (xg_select): Use g_main_context_acquire (bug#18861).

73 74 75 76 77
2014-11-05  Michael Albinus  <michael.albinus@gmx.de>

	* dired.c (Ffile_attributes): Return Qnil, if Fexpand_file_name
	raises an error.  (Bug#18891)

78 79 80 81 82 83
2014-11-03  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (Fdump_glyph_matrix, Fdump_frame_glyph_matrix): Doc fix.
	(Fdump_frame_glyph_matrix): Don't segfault if invoked on a GUI
	frame; instead, print an error message.

84 85 86 87
2014-11-03  Jan Djärv  <jan.h.d@swipnet.se>

	* nsfns.m (ns_set_doc_edited): Check for FRAME_NS (Bug#18925).

88 89
2014-10-31  Jan Djärv  <jan.h.d@swipnet.se>

90 91 92 93 94
	* macfont.m (macfont_glyph_extents): Turn off syntetic bold
	if force_integral_p (i.e. no antialias).
	(macfont_draw): Check ns_antialias_text, also turn off syntetic
	bold if no antialias (Bug#18876).

95 96 97
	* emacs.c (main): Don't chdir to $HOME on Cocoa if --chdir
	was given (Bug#18846).

98 99
2014-10-30  Jan Djärv  <jan.h.d@swipnet.se>

100 101 102 103 104 105 106 107
	* nsterm.h (ns_set_doc_edited): Declare taking no args.

	* nsfns.m (ns_set_doc_edited): Do all logic (check frames) here
	instead of in xdisp.c, function now takes void. (Bug#18884).

	* xdisp.c (prepare_menu_bars): Remove HAVE_NS code.
	(redisplay_internal): Call ns_set_doc_edited if HAVE_NS (Bug#18884).

108 109 110 111 112 113 114 115 116 117 118 119
	* nsterm.h (EmacsScroller): Replace Lisp_Object win with
	struct window* (Bug#18889).
	Remove getMouseMotionPart.
	(ns_output): Make icon_top/left int.

	* nsfns.m (x_icon): icon_top/left is int.

	* nsterm.m (ns_mouse_position): Remove unused code.
	(initFrame:window:, dealloc): Use window instead of win.
	(getMouseMotionPart:window:x:y:): Remove, unused.
	(sendScrollEventAtLoc:fromEvent:): Make Lisp_Object win from window.

120 121 122 123
2014-10-30  Samuel Bronson  <naesten@gmail.com>

	* unexmacosx.c (copy_data_segment): Port to GCC 4.6+ (Bug#9927).

124 125 126 127 128
2014-10-28  Eli Zaretskii  <eliz@gnu.org>

	* fileio.c (Fexpand_file_name): Use make_unibyte_string, not
	build_string, when importing a home directory.  (Bug#18873)

129 130 131 132 133 134
2014-10-26  Eli Zaretskii  <eliz@gnu.org>

	* dispnew.c (buffer_posn_from_coords): Use
	WINDOW_WANTS_HEADER_LINE_P, not WINDOW_WANTS_MODELINE_P, to
	account for the header-line height.  (Bug#18839)

135 136 137 138
2014-10-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* xdisp.c (draw_glyphs): Set clipping to highlight boundaries.
	[Backport]
139 140
	(erase_phys_cursor): Fix confusion between window-relative and
	text area-relative x-coordinates.  [Backport]
141

142 143 144 145 146
2014-10-20  Glenn Morris  <rgm@gnu.org>

	* minibuf.c (history-length): Increase default from 30 to 100.
	[Backport]

147 148 149 150 151
2014-10-20  Stefan Monnier  <monnier@iro.umontreal.ca>

	* xdisp.c (redisplay_window): Re-run pre-redisplay-function after we
	move point.

152 153 154 155
2014-10-20  Glenn Morris  <rgm@gnu.org>

	* Version 24.4 released.

156 157 158 159 160 161 162
2014-10-17  Eli Zaretskii  <eliz@gnu.org>

	* xterm.c (x_draw_hollow_cursor): Fix display of hollow cursor on
	1-pixel R2L characters.
	Reported by Dmitry Antipov <dmantipov@yandex.ru>, see
	http://lists.gnu.org/archive/html/emacs-devel/2014-10/msg00518.html.

163 164 165 166 167
2014-10-10  Paul Eggert  <eggert@cs.ucla.edu>

	Fix port to Debian GNU/kFreeBSD 7 (wheezy) (Bug#18666).
	* process.c (accept4) [!HAVE_ACCEPT4]: New macro.

168 169 170 171 172
2014-10-09  Stefan Monnier  <monnier@iro.umontreal.ca>

	* frame.c (Fmouse_pixel_position): Call Vmouse_position_function
	(bug#18638).

173 174 175 176 177
2014-10-08  K. Handa  <handa@gnu.org>

	* coding.c (detect_coding_iso_2022): Set coding->rejected
	correctly when an invalid escape sequence is found (Bug#18610).

178 179 180 181 182 183
2014-10-03  Dmitry Antipov  <dmantipov@yandex.ru>

	* font.c (font_list_entities): Do not add empty vector to font cache.
	(font_matching_entity): Likewise.  If matching entity is found, insert
	1-item vector with this entity instead of an entity itself (Bug#17125).

184 185 186 187 188
2014-10-02  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (move_it_by_lines): Call reseat_1 after moving the
	iterator backwards, to resync the bidi iterator.  (Bug#18584)

189 190 191 192
2014-10-01  Jan Djärv  <jan.h.d@swipnet.se>

	* xfaces.c (Finternal_set_lisp_face_attribute): Don't try to
	make a font_object from a tty frame (Bug#18573).
193
	(Finternal_set_lisp_face_attribute): Add FIXME comment.
194

195 196 197 198 199 200
2014-09-30  Eli Zaretskii  <eliz@gnu.org>

	* w32fns.c (w32_createwindow): Accept an additional argument, an
	array of 2 values specifying the coordinates of the frame's
	top-left corner.  Use these values instead of calling x_get_arg,
	which can cons Lisp objects, and therefore cannot be called except
201
	from the main thread.  Remove redundant tests for the default values.
202 203
	(my_create_window): Move the calculation of the coordinates of the
	frame's top-left edge here.  Pass them to the input thread via the
204 205
	second parameter of the WM_EMACS_CREATEWINDOW message.
	See http://lists.gnu.org/archive/html/emacs-devel/2014-09/msg00892.html
206 207
	for the details.

208 209 210 211 212 213 214 215
2014-09-29  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (cursor_row_fully_visible_p): Update commentary.
	(redisplay_window): Treat the frame's frozen_window_starts flag
	the same way as the optional_new_start flag for the window: only
	obey it if the glyph row showing point will be fully visible.
	Likewise when the window start is in a continuation line.  If,
	after trying everything under the 'force_start' label, point is
216 217
	still not fully visible, give up and scroll the window.
	Add debugging traces.  (Bug#18545)
218 219 220

	* window.c (Frecenter): Set the window's redisplay flag.

221 222 223 224 225 226 227 228 229 230 231 232 233
2014-09-24  Eli Zaretskii  <eliz@gnu.org>

	* w32term.c (w32_read_socket): Don't use frame dimensions for
	resizing if GetClientRect returned an empty (0, 0, 0, 0)
	rectangle.  Check the return value of GetClientRect, and don't use
	the results if it didn't succeed.

	* dispnew.c (change_frame_size_1): Recompute the frame dimensions
	in columns and lines after correcting the pixel dimensions in
	check_frame_size.
	(adjust_decode_mode_spec_buffer): Add assertion to avoid passing
	negative values to xrealloc.  (Bug#18528)

234 235 236 237 238 239
2014-09-22  Dmitry Antipov  <dmantipov@yandex.ru>

	On OSX, do not free font-specific data more than once (Bug#18501).
	* macfont.m (macfont_close): Release and free font-specific data
	only if it wasn't previously freed.

Glenn Morris's avatar
Glenn Morris committed
240
2014-09-21  David Caldwell <david@porkrind.org>  (tiny change)
241 242 243

	* unexmacosx.c (dump_it): Improve error message.

244 245 246 247 248
2014-09-18  Juri Linkov  <juri@jurta.org>

	* image.c (imagemagick_load_image): Add delay to imagemagick metadata.
	(Bug#10747, bug#18334)

249 250
2014-09-18  Eli Zaretskii  <eliz@gnu.org>

251 252 253
	* frame.c (Fmouse_position, Fset_mouse_position): Clarify the
	units in which the position is measured.  (Bug#18493)

254 255 256
	* xdisp.c (redisplay_internal): Force redisplay of all windows
	that show a buffer whose narrowing has changed.  (Bug#18490)

257 258
2014-09-16  Eli Zaretskii  <eliz@gnu.org>

259 260 261 262 263 264
	* xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor):
	* w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor): In R2L
	lines, draw the hollow-box and hbar cursors on the right side of
	cursor-glyph.  Thanks to martin rudalics <rudalics@gmx.at> for
	testing on X.

265 266 267 268 269 270
	* xterm.c (x_draw_stretch_glyph_string):
	* w32term.c (x_draw_stretch_glyph_string): Fix a thinko that
	caused the block cursor to disappear on a TAB in R2L lines in
	every window except the leftmost one.  Reported by Martin Rudalics
	<rudalics@gmx.at>.

271 272 273 274 275 276 277 278 279 280 281
2014-09-16  Dmitry Antipov  <dmantipov@yandex.ru>

	Always use matched specpdl entry to record call arguments (Bug#18473).
	* lisp.h (record_in_backtrace): Adjust prototype.
	* eval.c (record_in_backtrace): Return current specpdl level.
	(set_backtrace_args, set_backtrace_nargs): Merge.  Adjust all users.
	(eval_sub, Ffuncall): Record call arguments in matched specpdl
	entry and use that entry in call to backtrace_debug_on_exit.
	(apply_lambda): Likewise.  Get current specpdl level as 3rd arg.
	(do_debug_on_call): Get current specpdl level as 2nd arg.

282 283 284 285 286 287
	Prefer ptrdiff_t to int and avoid integer overflows.
	* fileio.c (make_temp_name):
	* font.c (font_parse_family_registry): Avoid integer
	overflow on string size calculation.
	* data.c (Faset): Likewise for byte index.

288 289 290 291 292 293 294 295 296 297 298 299 300 301
2014-09-15  Eli Zaretskii  <eliz@gnu.org>

	Fix display of R2L lines in partial-width windows.
	* xdisp.c (init_iterator): Don't use it->bidi_p before it is
	assigned the correct value.
	(extend_face_to_end_of_line): Account for truncation and
	continuation glyphs in R2L rows when one of the fringes is not
	displayed.
	(display_line): Don't assign negative X offset to a row if we are
	going to produce a truncation glyph for it.  When handling
	truncated R2L rows, consider the width of the left fringe instead
	of the right one.
	(produce_special_glyphs): Fix bogus assignments.

302 303 304 305 306 307 308 309 310
2014-09-14  Eli Zaretskii  <eliz@gnu.org>

	* w32.c (fcntl): Support O_NONBLOCK fcntl on the write side of
	pipes.
	(sys_write): When a write to a non-blocking pipe returns ENOSPC,
	set errno to EAGAIN instead, to allow the caller to retry the
	write after some waiting.  Fixes deadlocks when Emacs exchanges a
	lot of data through the pipe.  (Bug#18420)

311 312 313 314 315 316 317 318 319 320 321 322 323
2014-09-13  Eli Zaretskii  <eliz@gnu.org>

	* sound.c (Fplay_sound_internal): Encode the sound file name in
	the ANSI codepage.  Expand it against data-directory, as per docs,
	not against the current directory.  No need to make a local copy
	of the file name; pass the encoded file name directly to
	do_play_sound.  (Bug#18463)

	* w32.c (ansi_encode_filename): If w32_get_short_filename returns
	NULL, and the file name is not encodable in ANSI codepage, return
	the string with "?" replacement characters, which will fail the
	caller.  This avoids returning a random value in that case.

324 325 326 327 328
2014-09-11  Martin Rudalics  <rudalics@gmx.at>

	* window.c (Fresize_mini_window_internal): Set w->total_lines
	from w->pixel_height (Bug#18422).

329 330 331 332 333 334
2014-09-09  Jan Djärv  <jan.h.d@swipnet.se>

	* nsterm.m (updateFrameSize:, initFrameFromEmacs:)
	(toggleFullScreen:): Take frame_resize_pixelwise into account when
	setting resize increments (Bug#18435).

335 336 337 338 339 340 341
2014-09-09  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (pos_visible_p): Properly save and restore the iterator
	state around the call to line_bottom, since it can move the
	iterator to another screen line.  This fixes off-by-one errors in
	the reported row in some rare cases.

342 343 344 345 346 347
2014-09-07  Eli Zaretskii  <eliz@gnu.org>

	* dispnew.c (prepare_desired_row): When MODE_LINE_P is zero,
	always make sure the marginal areas of the row are in sync with
	what the window wants.  (Bug#18419)

348 349 350 351 352 353
2014-09-04  Eli Zaretskii  <eliz@gnu.org>

	* data.c (set_internal): Use assq_no_quit, not Fassq, to find an
	existing binding of a variable, to avoid silently aborting
	commands that use specbind.  (Bug#18331)

354 355 356 357 358 359 360
2014-09-02  Eli Zaretskii  <eliz@gnu.org>

	* dispnew.c (buffer_posn_from_coords): Fix an off-by-one error in
	the reported row in the case of a window with a header line, by
	improving on the fix committed in 2011-10-08T10:58:50Z!eliz@gnu.org
	eliz@gnu.org-20111008105850-ht4tvsayohvr1kjc.  (Bug#18384)

361 362 363 364 365
2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>

	* eval.c (internal_lisp_condition_case): Don't overrun the stack
	when configured --with-wide-int on typical 32-bit platforms.

366 367 368 369 370 371
2014-08-31  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (display_and_set_cursor): Call erase_phys_cursor also
	when HPOS is negative, for the benefit of R2L glyph rows whose
	newline overflows into the fringe.

372 373 374 375 376
2014-08-30  Ken Brown  <kbrown@cornell.edu>

	* conf_post.h (strnicmp) [CYGWIN && HAVE_NTGUI]: Define.
	(Bug#18366)

377 378 379 380 381
2014-08-28  Eli Zaretskii  <eliz@gnu.org>

	* syntax.c (scan_lists): Don't examine positions before BEGV.
	(Bug#18339)

382 383 384 385
2014-08-25  Eli Zaretskii  <eliz@gnu.org>

	* conf_post.h (_GL_EXECINFO_INLINE) [MSDOS]: Don't define.

386 387
2014-08-18  Eli Zaretskii  <eliz@gnu.org>

388 389
	* xdisp.c (handle_stop): Improve commentary.

390 391 392
	* indent.c (Fvertical_motion): Fix vertical motion up through a
	display property after a newline.  (Bug#18276)

393 394
2014-08-17  Eli Zaretskii  <eliz@gnu.org>

395 396
	* xdisp.c (display_line): Don't assume that the call to
	reseat_at_next_visible_line_start ends up at a character
397 398
	immediately following the newline on the previous line.
	Avoids setting the ends_at_zv_p flag on screen lines that are not at or
399 400 401
	beyond ZV, which causes infloop in redisplay.  For the details, see
	http://lists.gnu.org/archive/html/emacs-devel/2014-08/msg00368.html.

402 403 404
	* dispnew.c (buffer_posn_from_coords): Fix mirroring of X
	coordinate for hscrolled R2L screen lines.  (Bug#18277)

405 406 407 408 409
2014-08-11  Ken Brown  <kbrown@cornell.edu>

	* gmalloc.c (_malloc_mutex, _aligned_blocks_mutex) [CYGWIN]: Use
	ERRORCHECK mutexes.  (Bug#18222)

410 411 412 413 414 415 416 417 418
2014-08-11  Glenn Morris  <rgm@gnu.org>

	* fileio.c: Revert 2013-01-31 change, which chose coding system for
	writing before backing up, since it causes a more serious problem
	than the one it solves.  (Closes Bug#18141, reopens Bug#13522.)
	(choose_write_coding_system): No longer callable from Lisp.
	Move last piece back here from Fwrite_region.
	(Fwrite_region, syms_of_fileio): Update for above changes.

419 420 421 422 423 424 425 426
2014-08-09  Martin Rudalics  <rudalics@gmx.at>

	* window.c (Fwindow_new_total, Fwindow_new_normal)
	(Fwindow_new_pixel, Fset_window_new_pixel)
	(Fset_window_new_total, Fset_window_new_normal): Second attempt
	to fix the doc-strings of these functions.  See:
	http://lists.gnu.org/archive/html/bug-gnu-emacs/2014-08/msg00287.html

427 428 429 430 431 432 433 434
2014-08-08  Martin Rudalics  <rudalics@gmx.at>

	* window.c (Fwindow_valid_p): Fix doc-string (Bug#18194).
	(Fwindow_new_total, Fwindow_normal_size, Fwindow_new_normal)
	(Fwindow_new_pixel, Fset_window_new_pixel)
	(Fset_window_new_total, Fset_window_new_normal)
	(Fwindow_resize_apply): Fix doc-strings (see Bug#18112).

435 436 437 438 439
2014-08-07  Eli Zaretskii  <eliz@gnu.org>

	* fontset.c (Finternal_char_font): Recompute basic faces if the
	frame's face cache was cleared.  (Bug#18162)

440 441 442 443 444 445
2014-08-05  Dmitry Antipov  <dmantipov@yandex.ru>

	Fix bug with uninitialized undo list of an indirect buffer (Bug#18180).
	* buffer.c (Fmake_indirect_buffer): Initialize undo list with the
	base buffer's undo list.

446 447 448 449 450 451 452 453
2014-08-03  Dmitry Antipov  <dmantipov@yandex.ru>

	Fix bug with an attempt to select uninitialized frame (Bug#18161).
	* xfns.c (Fx_create_frame): Move call to change_frame_size to
	a section where Lisp evaluation is disabled.  This way a pointer
	to uninitialized frame is not accessible from Lisp, which becomes
	critical if following call to x_figure_window_size throws an error.

454 455
2014-08-02  Paul Eggert  <eggert@cs.ucla.edu>

456 457 458 459 460
	Fix bug with clang + directory_files_internal + GC (Bug#16986).
	* dired.c (directory_files_internal): Use a volatile variable
	to prevent the compiler from optimizing away all copies of a local.
	I wonder how many other GC-related bugs like this lurk elsewhere?

461 462 463 464 465 466
	Avoid 100% CPU utilization on ssh session exit (Bug#17691).
	* xterm.h (struct x_display_info): New member 'connection'.
	* xterm.c (x_term_init, x_delete_terminal): Set and use it,
	so that x_delete_terminal has a file descriptor to pass to
	delete_keyboard_wait_descriptor.

467 468 469 470 471 472 473 474 475 476 477 478 479
2014-08-01  Eli Zaretskii  <eliz@gnu.org>

	Fix display of R2L lines when the last character fits only partially.
	See http://lists.gnu.org/archive/html/emacs-devel/2014-07/msg00476.html
	for the details.
	* xdisp.c (extend_face_to_end_of_line): If the last glyph of an
	R2L row is visible only partially, give the row a negative x
	offset.
	(display_line): Fix the calculation of the glyph whose pixel width
	is used to decide whether the last produced glyph fits on the
	line.  When the last glyph fits only partially, give the row a
	negative x offset.

480 481 482 483 484 485 486 487
2014-07-29  Eli Zaretskii  <eliz@gnu.org>

	Fix hscroll of R2L lines that begin with a TAB or another wide glyph.
	* xdisp.c (append_stretch_glyph): In a R2L glyph row, decrease the
	pixel width of the first glyph that is hscrolled from display.
	(display_line): In R2L glyph rows, don't give a negative offset to
	row->x when the first glyph begins before first_visible_x.

Andreas Schwab's avatar
Andreas Schwab committed
488 489 490 491 492
2014-07-29  Andreas Schwab  <schwab@suse.de>

	* macros.c (Fstart_kbd_macro): Initialize kbd_macro_ptr and
	kbd_macro_end together with kbd_macro_buffer.  (Bug#18140)

Eli Zaretskii's avatar
Eli Zaretskii committed
493 494
2014-07-28  Eli Zaretskii  <eliz@gnu.org>

495 496 497 498
	* xdisp.c (display_line): If called with iterator set up to write
	to a marginal area, delay the call to handle_line_prefix until we
	switch back to the text area.  (Bug#18035)

Eli Zaretskii's avatar
Eli Zaretskii committed
499 500 501 502
	* .gdbinit (xwindow): The members total_cols, total_lines,
	left_col, and top_line are C integers (and has been so for the
	last 1.5 years).

503 504 505 506 507 508 509 510 511 512 513 514
2014-07-20  Jan Djärv  <jan.h.d@swipnet.se>

	* nsterm.m (applicationDidFinishLaunching:): Call
	antialiasThresholdDidChange, register for antialias changes (Bug#17534).
	(antialiasThresholdDidChange:): New method for EmacsApp.

	* nsterm.h (EmacsApp): Add antialiasThresholdDidChange.

	* macfont.m (macfont_update_antialias_threshold): Remove static.

	* macfont.h (macfont_update_antialias_threshold): Declare.

515 516
2014-07-17  Eli Zaretskii  <eliz@gnu.org>

517 518
	* w32select.c (setup_windows_coding_system):
	Apply CODING_ANNOTATION_MASK to the common_flags member of struct
519 520
	coding_system.  Reported by martin rudalics <rudalics@gmx.at>.

521 522
	* w16select.c (Fw16_get_clipboard_data):
	Apply CODING_ANNOTATION_MASK to the common_flags member of struct
523 524
	coding_system.

525 526 527 528
	* xdisp.c (init_iterator): Initialize it->stop_charpos to the
	buffer position where we are to start the iteration.
	(handle_invisible_prop): Record in it->stop_charpos the position
	where the invisible text ends.  (Bug#18035)
529
	(hscroll_window_tree): Don't try hscrolling windows whose cursor
530 531
	row has zero buffer position as their start position.
	Reported by martin rudalics <rudalics@gmx.at>.
532

533 534 535 536 537 538
2014-07-16  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (move_it_vertically_backward, move_it_by_lines): Prevent
	infinite looping in redisplay when display lines don't have enough
	space to display even a single character.  (Bug#18036)

539 540 541 542 543
2014-07-13  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (decode_mode_spec): Call file-remote-p on the current
	buffer's default-directory only if it is a string.  (Bug#17986)

544 545
2014-07-12  Eli Zaretskii  <eliz@gnu.org>

546 547 548
	* xdisp.c (display_line): Don't call FETCH_BYTE with argument less
	than 1.  (Bug#17962)

549 550 551 552 553 554 555
	* w32fns.c (Fx_file_dialog): Mention in the doc string the
	behavior on Windows 7 and later when the function is repeatedly
	invoked with the same value of DIR.  (Bug#17950)

	* xfns.c (Fx_file_dialog) [USE_MOTIF, USE_GTK]: Update the doc
	string to match the one in w32fns.c.

556 557 558 559 560 561
2014-07-08  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (move_it_to): Adjust calculation of line_start_x to what
	x_produce_glyphs does when it generates a stretch glyph that
	represents a TAB.  (Bug#17969)

562 563
2014-07-05  Eli Zaretskii  <eliz@gnu.org>

Eli Zaretskii's avatar
Eli Zaretskii committed
564 565 566
	* xdisp.c (pos_visible_p): If CHARPOS is at beginning of window,
	and there is a display property at that position, don't call
	move_it_to to move to a position before window start.  (Bug#17942)
567 568
	Fix condition for finding CHARPOS by the first call to move_it_to.
	(Bug#17944)
569

570 571 572 573 574 575 576
2014-07-05  Stefan Monnier  <monnier@iro.umontreal.ca>

	* syntax.c (find_defun_start): Try the cache even
	if !open_paren_in_column_0_is_defun_start.
	(back_comment): If find_defun_start was pessimistic, use the
	scan_sexps_forward result to improve the cache (bug#16526).

Jan Djärv's avatar
Jan Djärv committed
577 578 579 580 581 582 583 584 585
2014-07-04  Daniel Colascione  <dancol@dancol.org>

	Backport from trunk.
	* xfns.c (create_frame_xic): Pass XNStatusAttributes to XCreateIC
	only if xic_style calls for it.  This change allows Emacs to work
	with ibus.  Also, don't leak resources if create_frame_xic fails,
	and stop caching xic_style across different displays (Bug#17928).
	(supported_xim_styles): Make const.
	(best_xim_style): Remove first parameter: it's always just
586
	supported_xim_styles.  Change to look at supported_xim_styles directly.
Jan Djärv's avatar
Jan Djärv committed
587

588 589
2014-07-04  Eli Zaretskii  <eliz@gnu.org>

590 591 592 593 594 595 596 597 598 599
	* xdisp.c (redisplay_window): If redisplay of a window ends up
	with point in a partially visible line at end of the window, make
	sure the amended position of point actually has smaller Y
	coordinate; if not, give up and scroll the display.  (Bug#17905)

	* window.c (window_scroll_pixel_based): When point ends up at the
	last fully visible line, don't let move_it_to stop at the left
	edge of the line and dupe us into thinking point is inside the
	scroll margin.

600 601 602
	* w32.c (network_interface_info): Make sure the argument is a
	Lisp string.

603 604 605 606 607 608 609 610
2014-07-01  Eli Zaretskii  <eliz@gnu.org>

	* dispnew.c (prepare_desired_row): Accept 2 additional arguments:
	the window whose glyph row is being prepared and a flag whether it
	is for mode/header line.  Make sure the glyph row's marginal areas
	are in sync with what the window wants.
	(Bug#17892)

611 612
	* xdisp.c (display_line, display_mode_line):
	Call prepare_desired_row with additional arguments, as appropriate.
613 614 615

	* dispextern.h (prepare_desired_row): Adjust prototype.

616 617
2014-07-01  Dmitry Antipov  <dmantipov@yandex.ru>

Dmitry Antipov's avatar
Dmitry Antipov committed
618
	* xfaces.c (init_frame_faces): Always realize basic faces (Bug#17889).
619 620
	* menu.c (Fx_popup_dialog): Set Vmenu_updating_frame to avoid crash
	caused by xw_popup_dialog in daemon mode (Bug#17891).
621

622 623 624 625 626 627
2014-06-30  Eli Zaretskii  <eliz@gnu.org>

	* frame.c (do_switch_frame): When switching to another TTY frame,
	make sure FrameCols and FrameRows are in sync with the new frame's
	data.  (Bug#17875)

Andreas Schwab's avatar
Andreas Schwab committed
628 629 630 631 632
2014-06-28  Andreas Schwab  <schwab@linux-m68k.org>

	* coding.c (encode_coding_utf_8): Correctly count produced_chars
	also in unibyte case.  (Bug#17865)

633 634
2014-06-25  Glenn Morris  <rgm@gnu.org>

Glenn Morris's avatar
Glenn Morris committed
635
	* puresize.h (BASE_PURESIZE): Increase a bit.  (Bug#17846)
636

637 638 639
2014-06-21  Eli Zaretskii  <eliz@gnu.org>

	* indent.c (Fvertical_motion): Doc fix.
640 641 642 643
	Move to the goal column, if any, with a single call to
	move_it_in_display_line, not in two calls.  Doing this with two
	calls causes move_it_in_display_line apply the line-prefix
	handling twice instead of just once.  (Bug#17823)
644

Paul Eggert's avatar
Paul Eggert committed
645 646 647 648 649 650
2014-06-21  Paul Eggert  <eggert@cs.ucla.edu>

	Port to OS X ACLs (Bug#17810).
	* fileio.c (Ffile_acl): Port to OS X, where acl_get_file (...,
	ACL_TYPE_ACCESS) doesn't work.

651 652 653 654 655
2014-06-19  Stefan Monnier  <monnier@iro.umontreal.ca>

	* keyboard.c (read_key_sequence): Don't invoke Vprefix_help_command
	before checking key-translation-map (bug#17659).

656 657 658 659 660
2014-06-19  Dmitry Antipov  <dmantipov@yandex.ru>

	* font.c (font_make_object): Avoid dangling pointer which may
	crash GC (Bug#17771).

661 662 663 664 665 666 667 668 669 670
2014-06-18  Eli Zaretskii  <eliz@gnu.org>

	* image.c [5 < GIFLIB_MAJOR + (1 <= GIFLIB_MINOR)]: Declare the
	prototype of DGifCloseFile as appropriate for older and newer
	versions of giflib.
	(gif_close): New function, encapsulates the differences in the
	calling sequence of DGifCloseFile before v5.1.0 and after it.
	(gif_load): Call gif_close instead of DGifCloseFile.  Divulge the
	error string where appropriate.  (Bug#17790)

671 672 673 674 675 676 677
2014-06-16  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (Fmove_point_visually): Instead of testing for keyboard
	macro execution, make sure point didn't move since last complete
	redisplay, as the condition for using the glyph matrix
	information.  (Bug#17777)

678 679 680 681 682 683 684
2014-06-14  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (Fmove_point_visually): Don't use the glyph matrix
	information if we are in the middle of executing a keyboard macro,
	since redisplay doesn't update the screen until the macro is
	finished.  (Bug#17777)

685 686 687 688 689
2014-06-13  Eli Zaretskii  <eliz@gnu.org>

	* alloc.c (cleanup_vector): Don't dereference a font driver
	pointer if it is NULL.  (Bug#17771)

690 691 692 693 694 695
2014-06-11  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (set_cursor_from_row): Fix an off-by-one error when
	matching overlay strings with 'cursor' property against buffer
	positions traversed in the glyph row.  (Bug#17744)

Glenn Morris's avatar
Glenn Morris committed
696 697
2014-06-08  Glenn Morris  <rgm@gnu.org>

698 699
	* fileio.c (write-region-inhibit-fsync): Doc tweak.

Glenn Morris's avatar
Glenn Morris committed
700 701
	* data.c (Flss, Fgtr, Fleq, Fgeq): Doc tweaks.

702 703
2014-06-04  Eli Zaretskii  <eliz@gnu.org>

704 705 706 707
	* sysdep.c (reset_sys_modes): Use cursorX, not curX, as the latter
	contains garbage on WINDOWSNT (which could potentially infloop at
	exit).

708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725
	Minimize cursor motion during TTY menu updates.
	* term.c (tty_menu_display): Don't position cursor here.  Instead,
	pass the cursor coordinates to update_frame_with_menu.
	(tty_menu_activate): Send the hide cursor command only once in an
	iteration through the outer 'while' loop.

	* dispnew.c (update_frame_1): Accept an additional argument
	SET_CURSOR_P, and position the cursor at the end of the frame
	update only if that argument is non-zero.  All callers changed to
	provide the additional argument as non-zero, except for
	update_frame_with_menu.
	(update_frame_with_menu): Accept 2 additional arguments ROW and
	COL; if they are non-negative, instruct update_frame_1 not to
	position the cursor, and instead position it according to ROW and
	COL.

	* dispextern.h (update_frame_with_menu): Update prototype.

726 727 728 729 730
2014-06-02  Stefan Monnier  <monnier@iro.umontreal.ca>

	* callproc.c (call_process): Don't check read-only if we don't insert
	anything (bug#17666).

731 732 733 734
2014-06-02  Eli Zaretskii  <eliz@gnu.org>

	* dispnew.c (update_frame_with_menu): Set display_completed.

735 736 737 738
2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>

	* frame.c (x_set_frame_parameters): Don't read uninitialized storage.

Jan Djärv's avatar
Jan Djärv committed
739 740 741 742 743
2014-06-01  Jan Djärv  <jan.h.d@swipnet.se>

	* xterm.c (xg_scroll_callback): Remove position, for jump set portion
	to min(value, whole).

744 745 746 747 748 749 750 751 752
2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>

	Bring back the changes to GDB-visible symbols, but only on AIX.
	And only if it's not pre-4.2 GCC.
	* lisp.h (ENUMABLE, DEFINE_GDB_SYMBOL_ENUM): New macros.
	(ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG, VALMASK): Use them.
	(ARRAY_MARK_FLAG_val, PSEUDOVECTOR_FLAG_val, VALMASK_val):
	New macros.

753 754
2014-05-31  Eli Zaretskii  <eliz@gnu.org>

755 756 757
	* fileio.c (Finsert_file_contents): Call prepare_to_modify_buffer
	with PT, not GPT.  (Bug#16433)

758 759 760 761 762 763
	Revert last changes to GDB-visible symbols.
	* lisp.h (ENUMABLE, DEFINE_GDB_SYMBOL_ENUM): Delete macros.
	(ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG, VALMASK): Don't use them.
	(ARRAY_MARK_FLAG_val, PSEUDOVECTOR_FLAG_val, VALMASK_val):
	Delete macros.

764 765 766 767
2014-05-31  Glenn Morris  <rgm@gnu.org>

	* cmds.c (Fself_insert_command): Allow zero repeat count.  (Bug#17649)

Paul Eggert's avatar
Paul Eggert committed
768 769 770 771 772 773 774 775
2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>

	Fix port to 32-bit AIX with xlc (Bug#17598).
	* alloc.c (gdb_make_enums_visible): Remove FLOAT_TO_STRING_BUFSIZE.
	* conf_post.h (FLEXIBLE_ARRAY_MEMBER) [__IBMC__]: Don't define to empty.
	* lisp.h (FLOAT_TO_STRING_BUFSIZE): Make it a macro, instead of an enum,
	to work around a compiler bug in IBM xlc 12.1.

776 777 778 779 780 781
2014-05-29  Eli Zaretskii  <eliz@gnu.org>

	* xterm.c (x_update_window_end): Don't invalidate the entire
	mouse-highlight info, just signal frame_up_to_date_hook that mouse
	highlight needs to be redisplayed.  (Bug#17588)

782 783 784 785 786 787 788 789 790 791 792
2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>

	Port the GDB-visible symbols to AIX.
	Without them, GDB doesn't work to debug Emacs, since the AIX linker
	optimizes away the relevant external symbols.  Use enums instead;
	this suffices for the AIX port, which is 32-bit-only anyway.
	* lisp.h (ENUMABLE, DEFINE_GDB_SYMBOL_ENUM): New macros.
	(ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG, VALMASK): Use them.
	(ARRAY_MARK_FLAG_val, PSEUDOVECTOR_FLAG_val, VALMASK_val):
	New macros.

793 794 795 796 797 798
2014-05-26  Paul Eggert  <eggert@cs.ucla.edu>

	Include sources used to create macuvs.h.
	* Makefile.in ($(srcdir)/macuvs.h): New rule.
	* macuvs.h: Use automatically-generated header.

799 800 801 802 803 804
2014-05-25  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (move_it_in_display_line_to): Don't record wrap position
	if we are iterating over an object that generates glyphs for
	marginal areas.  (Bug#17585)

805 806 807 808
2014-05-24  Paul Eggert  <eggert@cs.ucla.edu>

	* xdisp.c (safe__call1, safe__eval): Now static.

809 810 811 812 813 814
2014-05-24  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (safe__call): Accept va_list argument instead of '...'.
	(safe_call, safe__call1): Construct a va_list argument for safe_call.
	(safe_call1): Call safe_call instead of safe__call directly.

815 816 817 818 819 820
2014-05-24  Ken Brown  <kbrown@cornell.edu>

	* w32term.c (x_delete_display) [CYGWIN]: Don't free
	dpyinfo->w32_id_name, to make sure it doesn't get freed more than
	once.  (Bug#17510)

821 822 823 824 825 826 827 828
2014-05-24  Stefan Monnier  <monnier@iro.umontreal.ca>

	* xdisp.c: Bind inhibit-quit during pre-redisplay-function.
	(safe__call, safe__call1, safe__eval): New functions.
	(safe_call): Use it.
	(prepare_menu_bars): Use it for pre-redisplay-function (bug#17577).
	(display_mode_element): Same for `:eval'.

Paul Eggert's avatar
Paul Eggert committed
829 830 831 832 833 834 835
2014-05-22  Paul Eggert  <eggert@cs.ucla.edu>

	Fix port to 32-bit AIX (Bug#17540).
	* unexaix.c (copy_text_and_data): Don't add text_scnptr to ptr
	twice.  _text already includes this offset.
	(unrelocate_symbols): Don't cast 64-bit integer to pointer.

836 837 838 839 840 841
2014-05-21  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (move_it_in_display_line_to): Avoid infinite recursion:
	when closest_pos is identical to to_charpos, don't recurse, since
	we already tried that, and failed.  (Bug#17539)

842 843 844 845 846 847 848 849
2014-05-20  Eli Zaretskii  <eliz@gnu.org>

	* w32fns.c (unwind_create_frame) [GLYPH_DEBUG]: If we are
	unwinding when frame's faces were not initialized yet, increment
	the frame's image-cache reference count before calling
	x_free_frame_resources.  Don't dereference
	dpyinfo->terminal->image_cache if it is NULL.  (Bug#17524)

850 851 852 853
2014-05-11  Glenn Morris  <rgm@gnu.org>

	* fileio.c (Ffile_executable_p): Doc tweak.

854 855 856 857 858
2014-05-10  Jan Djärv  <jan.h.d@swipnet.se>

	* xsettings.c (init_gsettings): Use g_settings_schema_source_lookup
	instead of deprecated g_settings_list_schemas if possible (Bug#17434).

859 860 861 862
2014-05-07  Paul Eggert  <eggert@cs.ucla.edu>

	* minibuf.c (read_minibuf): Avoid C99ism in previous patch (Bug#17430).

863 864 865 866 867 868
2014-05-07  Jarek Czekalski  <jarekczek@poczta.onet.pl>

	Fix initialization of minibuffer history variable (Bug#17430).
	* minibuf.c (read_minibuf): Initialize histval to Qnil if unbound.
	Move the initialization up to prevent any "value void" message.

869 870 871 872 873
2014-05-06  Samuel Bronson  <naesten@gmail.com>

	* keyboard.c (Frecursive_edit): Ensure inc&dec of command_loop_level
	are matched (bug#17413).

874 875 876 877 878 879
2014-05-06  Jarek Czekalski  <jarekczek@poczta.onet.pl>

	Stop tooltips pulling Emacs window to front (Bug#17408).
	* w32fns.c (Fx_show_tip): Add SWP_NOOWNERZORDER flag to
	SetWindowPos invocations.

880 881 882 883 884
2014-05-05  Jan Djärv  <jan.h.d@swipnet.se>

	* nsselect.m (Fx_selection_exists_p): Just return Qnil if window system
	not initialized (Bug#17398).

Paul Eggert's avatar
Paul Eggert committed
885 886 887 888 889 890
2014-05-04  Paul Eggert  <eggert@cs.ucla.edu>

	Revert recent libpng changes (Bug#17339).
	* Makefile.in (PNG_CFLAGS): Remove; all uses removed.
	* image.c [HAVE_LIBPNG_PNG_H]: Include <libpng/png.h>, not <png.h>.

891 892 893 894 895 896 897
2014-05-03  Paul Eggert  <eggert@cs.ucla.edu>

	Handle systems without WCONTINUED consistently.  (Bug#15110, 17339)
	* process.c (handle_child_signal): Remove WCONTINUED ifdef,
	because WCONTINUED is always defined now.
	* syswait.h (WCONTINUED): Move here from ../lib-src/emacsclient.c.

Eli Zaretskii's avatar
Eli Zaretskii committed
898 899 900 901
2014-05-03  Eli Zaretskii  <eliz@gnu.org>

	* buffer.c (overlay_strings): Fix the wording of the commentary.

902 903 904 905 906 907 908 909
2014-05-02  Paul Eggert  <eggert@cs.ucla.edu>

	Consult libpng-config more consistently (Bug#17339).
	* Makefile.in (PNG_CFLAGS): New var.
	(ALL_CFLAGS): Use it.
	* image.c [HAVE_PNG]: Don't worry about <libpng/png.h>, as
	CFLAGS now handles this.

Glenn Morris's avatar
Glenn Morris committed
910 911 912 913 914
2014-05-01  Glenn Morris  <rgm@gnu.org>

	* floatfns.c (Fisnan):
	* profiler.c (Fprofiler_cpu_running_p): Doc fix (replace `iff').

915 916 917 918 919
2014-05-01  Eli Zaretskii  <eliz@gnu.org>

	* term.c (tty_menu_activate): A better initialization for cursor
	coordinates.

920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935
2014-05-01  Stefan Monnier  <monnier@iro.umontreal.ca>

	* intervals.c: Tighten assertions.
	(create_root_interval): Make sure the interval is not empty.
	(intervals_equal): Use booleans.
	(rotate_right, rotate_left): Check LENGTHs rather than TOTAL_LENGTH.
	(balance_an_interval): Sanity check LENGTHs and TOTAL_LENGTHs.
	(balance_possible_root_interval): Simplify and use booleans.
	(split_interval_right, split_interval_left): Check LENGTH, and remove
	now redundant assertion.
	(adjust_intervals_for_insertion): Remove now redundant assertions.
	(delete_node, interval_deletion_adjustment)
	(adjust_intervals_for_deletion, merge_interval_right)
	(merge_interval_left): Check LENGTH rather than TOTAL_LENGTH.
	(reproduce_interval): Make sure the interval is not empty.

936 937 938 939 940 941
2014-04-30  Paul Eggert  <eggert@cs.ucla.edu>

	* term.c (tty_menu_activate): Don't assume row and col are initialized.
	GCC 4.9.0 warned about this, and I couldn't easily prove to my own
	satisfaction that they would always be initialized.

942 943
2014-04-29  Eli Zaretskii  <eliz@gnu.org>

944
	* term.c (tty_menu_display): Move the cursor to the active menu item.
945
	(tty_menu_activate): Return the cursor to the active menu item
946 947
	after displaying the menu and after displaying help-echo.
	See http://lists.gnu.org/archive/html/emacs-devel/2014-04/msg00402.html
948 949 950
	for the details of why this is needed by screen readers and
	Braille displays.

951 952 953 954 955
2014-04-29  Glenn Morris  <rgm@gnu.org>

	* process.c (handle_child_signal):
	Handle systems without WCONTINUED.  (Bug#15110, 17339)

956 957 958
2014-04-23  Eli Zaretskii  <eliz@gnu.org>

	* search.c (Fnewline_cache_check): Don't try to count newlines
959
	outside the buffer's restriction, as find_newline doesn't support that.
960

961 962
2014-04-22  Paul Eggert  <eggert@cs.ucla.edu>

963 964 965 966 967 968
	Port to GCC 4.9.0 with --enable-gcc-warnings.
	* image.c (struct my_jpeg_error_mgr) [lint]: Remove member fp.
	All uses removed.
	(jpeg_load_body) [lint]: Add a 'volatile' to pacify a buggy GCC in
	a way that also works with GCC 4.9.0.

969 970
	* search.c (Fnewline_cache_check): Remove unused locals.

971 972 973 974 975 976
2014-04-22  Eli Zaretskii  <eliz@gnu.org>

	* search.c (find_newline1): New subroutine.
	(Fnewline_cache_check): New function.
	(syms_of_search): Defsubr it.

977 978 979 980 981 982
2014-04-21  Jarek Czekalski  <jarekczek@poczta.onet.pl>

	Fix freezing with scroll bars of GTK3 Toolkit (bug#15801).
	* keyboard.c (unblock_input): Add comment.
	* xgselect.c (xg_select): Prevent Glib main loop recursion.

983 984 985 986 987 988
2014-04-19  Stefan Monnier  <monnier@iro.umontreal.ca>

	* intervals.c (rotate_right, rotate_left): Fix up length computation.
	Also change identifiers to match the comments, and add more assertions
	(bug#16234).

989 990 991 992 993 994
2014-04-18  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (insert_left_trunc_glyphs): Ensure the left truncation
	glyph is written to TEXT_AREA of the temporary glyph_row.
	(Bug#17288)

995 996 997 998
2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>

	* emacs.c (close_output_streams): Don't clear and restore errno.

999 1000 1001 1002 1003
2014-04-17  Jan Djärv  <jan.h.d@swipnet.se>

	* xterm.c (x_make_frame_visible): Prevent endless loop when frame
	never becomes visible, i.e. using XMonad  (Bug#17237).

1004 1005
2014-04-17  Eli Zaretskii  <eliz@gnu.org>

1006 1007 1008 1009
	* xdisp.c (Fline_pixel_height): Don't assume that the current
	buffer and the selected window's buffer are one and the same.
	(Bug#17281)

1010 1011 1012
	* insdel.c (invalidate_buffer_caches): Invalidate the bidi
	paragraph-start cache before the newline cache.  (Bug#17269)

1013 1014 1015 1016 1017 1018 1019
2014-04-16  Stefan Monnier  <monnier@iro.umontreal.ca>

	* window.c (save_window_save): Lookup window_point_insertion_type in
	the right buffer (bug#15457).
	(Qwindow_point_insertion_type): New var.
	(syms_of_window): Initialize it.

Eli Zaretskii's avatar
Eli Zaretskii committed
1020 1021
2014-04-16  Eli Zaretskii  <eliz@gnu.org>

1022
	Fix the MSDOS build.
Eli Zaretskii's avatar
Eli Zaretskii committed
1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048
	* unexcoff.c [MSDOS]: Include libc/atexit.h.
	(copy_text_and_data): Zero out the atexit chain pointer before
	dumping Emacs.

	* termhooks.h (encode_terminal_code): Update prototype.

	* term.c (encode_terminal_code) [DOS_NT]: Make it externally
	visible for all DOS_NT ports, not just WINDOWSNT.
	(syms_of_term) [!MSDOS]: Don't define 'tty-menu-*' symbols on MSDOS.

	* sysdep.c (emacs_sigaction_init, init_signals): Don't use SIGCHLD
	unless it is defined.
	(emacs_pipe) [MSDOS]: Redirect to 'pipe'.

	* process.c (close_on_exec, accept4, process_socket): Move into
	the "ifdef subprocesses" part.
	(catch_child_signal): Condition by "ifdef subprocesses".
	(syms_of_process) <Qinternal_default_process_sentinel>
	<Qinternal_default_process_filter>: Condition by "ifdef subprocesses".

	* msdos.h: Add prototypes for new functions.
	(EINPROGRESS): Define.
	(O_CLOEXEC): Define to zero.

	* msdos.c (check_window_system): Remove unnecessary an
	incompatible duplicate function.
1049 1050
	(sys_opendir, readlinkat, faccessat, fstatat, unsetenv):
	New functions in support of new functionality.
Eli Zaretskii's avatar
Eli Zaretskii committed
1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079

	* menu.c (single_menu_item): Add visual indication  of submenu
	also for menus on MSDOS frames.
	(Fx_popup_menu) [!MSDOS]: Do not call tty_menu_show on MSDOS.

	* lisp.h (CHECK_PROCESS) [!subprocesses]: Do not define
	when async subprocesses aren't supported.

	* font.h (FONT_WIDTH) [MSDOS]: MSDOS-specific definition.

	* emacs.c (close_output_streams): Zero out errno before calling
	close_stream.

	* dired.c [MSDOS]: Include msdos.h.

	* conf_post.h (opendir) [MSDOS]: Redirect to sys_opendir.
	(DATA_START) [MSDOS]: Define.
	(SYSTEM_PURESIZE_EXTRA) [MSDOS]: Enlarge by 25K.

	* callproc.c (block_child_signal, unblock_child_signal) [MSDOS]:
	Ifdef away for MSDOS.
	(record_kill_process) [MSDOS]: Ifdef away the entire body for MSDOS.
	(call_process_cleanup) [MSDOS]: Ifdef away portions not relevant
	for MSDOS.
	(call_process) [MSDOS]: Fix call sequence of dostounix_filename.
	Use temporary file template that is compatible with mkostemp.
	Move vfork-related portions under #ifndef MSDOS.
	(syms_of_callproc): Unify templates of MSDOS and WINDOWSNT.

1080 1081 1082 1083 1084 1085 1086 1087 1088 1089
2014-04-15  Stefan Monnier  <monnier@iro.umontreal.ca>

	* buffer.c (Foverlays_at): Add argument `sorted'.

2014-04-14  Eli Zaretskii  <eliz@gnu.org>

	* insdel.c (invalidate_buffer_caches): When deleting or replacing
	text, invalidate the bidi_paragraph_cache upto and including the
	preceding newline.

Paul Eggert's avatar
Paul Eggert committed
1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101
2014-04-13  Paul Eggert  <eggert@cs.ucla.edu>

	Port to IRIX 6.5 (Bug#9684).
	* alloc.c (TAGGABLE_NULL): New constant,
	for porting to hosts with nontrivial DATA_SEG_BITS settings.
	(next_vector, set_next_vector): Use it.
	* conf_post.h (INET6) [IRIX6_5]: Define.
	(HAVE_GETADDRINFO) [IRIX6_5]: Undef.
	* data.c (BITS_PER_ULL): Don't assume ULLONG_MAX is defined.
	* lisp.h (lisp_h_XPNTR): Don't OR in bits that aren't masked out,
	for consistency with how TAGGABLE_NULL is computed.

1102 1103
2014-04-13  Eli Zaretskii  <eliz@gnu.org>

1104 1105 1106
	* keyboard.c (Fopen_dribble_file): Encode the dribble file-name
	before passing it to system APIs.

1107 1108
	* puresize.h (BASE_PURESIZE): Bump by 1K.  (Bug#17255)

1109 1110 1111 1112 1113
2014-04-13  Stefan Monnier  <monnier@iro.umontreal.ca>

	* bytecode.c (exec_byte_code): Rework the volatiles.  Most importantly,
	make sure stack.byte_string_start is not de-adjusted by pushhandler.

1114 1115 1116 1117
2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>

	* keyboard.c (Fopen_dribble_file): Avoid some races.  (Bug#17187)

1118 1119 1120 1121 1122 1123 1124 1125 1126 1127
2014-04-12  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (move_it_by_lines): If a large portion of buffer text is
	covered by a display string that ends in a newline, and that cases
	going back by DVPOS lines to hit the search limit, lift the limit
	and go back until DVPOS is reached.  (Bug#17244)

	* indent.c (Fvertical_motion): Handle correctly the case when the
	display string is preceded by an empty line.

1128 1129 1130 1131 1132
2014-04-11  Eli Zaretskii  <eliz@gnu.org>

	* w32.c (sys_umask) <WRITE_USER>: Remove redundant constant, and
	use S_IWRITE instead.

1133 1134 1135 1136
2014-04-11  Glenn Morris  <rgm@gnu.org>

	* keyboard.c (Fopen_dribble_file): Make file private.  (Bug#17187)

1137 1138 1139 1140
2014-04-09  Ken Brown  <kbrown@cornell.edu>

	* Makefile.in (EMACS_MANIFEST): Revert last change.

1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155
2014-04-07  Stefan Monnier  <monnier@iro.umontreal.ca>

	* lisp.h (struct Lisp_Symbol): New bitfield `pinned'.

	* alloc.c: Keep track of symbols referenced from pure space (bug#17168).
	(symbol_block_pinned): New var.
	(Fmake_symbol): Initialize `pinned'.
	(purecopy): New function, extracted from Fpurecopy.  Mark symbols as
	pinned and signal an error for un-purifiable objects.
	(pure_cons): Use it.
	(Fpurecopy): Use it, except for objects that can't be purified.
	(mark_pinned_symbols): New function.
	(Fgarbage_collect): Use it.
	(gc_sweep): Remove hack made unnecessary.

1156 1157 1158 1159
2014-04-05  Glenn Morris  <rgm@gnu.org>

	* keyboard.c (Fopen_dribble_file): Doc tweak.

Jan Djärv's avatar
Jan Djärv committed
1160 1161 1162 1163
2014-04-04  Jan Djärv  <jan.h.d@swipnet.se>

	Backport from trunk.
	* nsterm.m (updateFrameSize:): If waiting for the tool bar and tool
1164 1165 1166 1167
	bar is zero height, just return (Bug#16976).
	(initFrameFromEmacs:): Initialize wait_for_tool_bar.
	* nsterm.h (EmacsView): Add wait_for_tool_bar.
	* nsmenu.m (update_frame_tool_bar): Return early if view or toolbar
Jan Djärv's avatar
Jan Djärv committed
1168
	is nil.  If waiting for toolbar to complete, force a redraw.
1169
	(free_frame_tool_bar): Set wait_for_tool_bar = NO (Bug#16976).
Jan Djärv's avatar
Jan Djärv committed
1170

1171 1172 1173 1174
2014-04-03  Ken Brown  <kbrown@cornell.edu>

	* Makefile.in (EMACS_MANIFEST): Update comment.  (Bug#17176)

1175 1176 1177 1178 1179
2014-04-02  Martin Rudalics  <rudalics@gmx.at>

	* xterm.c (x_new_font): Don't calculate non-toolkit scrollbar
	width from font width (Bug#17163).

1180 1181 1182 1183 1184 1185
2014-03-30  Martin Rudalics  <rudalics@gmx.at>

	* frame.c (x_set_frame_parameters): Calculate default values of
	new frame sizes only after all other frame parameters have been
	processed (Bug#17142).

1186 1187 1188 1189 1190
2014-03-28  Ken Brown  <kbrown@cornell.edu>

	* conf_post.h (SYSTEM_PURESIZE_EXTRA) [CYGWIN]: Set to 10000.
	(Bug#17112)

1191 1192 1193 1194 1195
2014-03-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* xterm.c (x_draw_image_glyph_string): Adjust image background
	width accordingly when its x position is adjusted.  (Bug#17115)

1196 1197 1198 1199 1200 1201
2014-03-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* w32term.c (x_draw_image_glyph_string): Fix computation of height
	and width of image background when it is displayed with a 'box'
	face.  (Bug#17115)

1202 1203 1204 1205 1206
2014-03-26  Paul Eggert  <eggert@penguin.cs.ucla.edu>

	More backward-compatible fix to char-equal core dump (Bug#17011).
	* editfns.c (Fchar_equal): In unibyte buffers, assume values in
	range 128-255 are raw bytes.  Suggested by Eli Zaretskii.
1207

Paul Eggert's avatar
Paul Eggert committed
1208 1209 1210 1211 1212
	Fix core dump in char-equal (Bug#17011).
	* editfns.c (Fchar_equal): Do not use MAKE_CHAR_MULTIBYTE in
	unibyte buffers, as we can't tell whether the characters are
	actually unibyte.

1213 1214
	* insdel.c (adjust_markers_for_delete): Remove unused local.

1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233
2014-03-24  Barry O'Reilly  <gundaetiapo@gmail.com>

	Have (MARKER . ADJUSTMENT) undo records always be immediately
	after their corresponding (TEXT . POS) record in undo list.
	(Bug#16818)
	* lisp.h (record-delete): New arg record_markers.
	(record_marker_adjustment): No longer needed outside undo.c.
	* insdel.c (adjust_markers_for_delete): Move calculation of marker
	adjustments to undo.c's record_marker_adjustments.  Note that
	fileio.c's decide_coding_unwind is another caller to
	adjust_markers_for_delete.  Because it has undo list bound to t,
	it does not rely on adjust_markers_for_delete to record marker
	adjustments.
	(del_range_2): Swap call to record_delete and
	adjust_markers_for_delete so as undo marker adjustments are
	recorded before current deletion's adjustments, as before.
	(adjust_after_replace):
	(replace_range): Pass value for new record_markers arg to
	delete_record.
1234
	* undo.c (record_marker_adjustment): Rename to
1235 1236 1237 1238 1239 1240 1241 1242
	record_marker_adjustments and made static.
	(record_delete): Check record_markers arg and call
	record_marker_adjustments.
	(record_change): Pass value for new record_markers arg to
	delete_record.
	(record_point): at_boundary calculation no longer needs to account
	for marker adjustments.

1243 1244 1245 1246 1247
2014-03-24  Martin Rudalics  <rudalics@gmx.at>

	* w32term.c (x_set_window_size): Refine fix from 2014-03-14
	(Bug#17077).

1248 1249 1250 1251
2014-03-23  Glenn Morris  <rgm@gnu.org>

	* fileio.c (Ffile_symlink_p): Doc fix. (Bug#17073)

1252 1253 1254 1255 1256 1257
2014-03-23  Stefan Monnier  <monnier@iro.umontreal.ca>

	* buffer.c (struct sortvec): Add field `spriority'.
	(compare_overlays): Use it.
	(sort_overlays): Set it.

1258 1259 1260 1261
2014-03-23  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (redisplay_window): If all previous attempts to find the
	cursor row failed, try a few alternatives before falling back to
1262
	the top-most row of the window.  Use row_containing_pos.  (Bug#17047)
1263

1264 1265 1266 1267 1268 1269
2014-03-22  Daniel Colascione  <dancol@dancol.org>

	* process.c (conv_sockaddr_to_lisp): When extracting the string
	names of AF_LOCAL sockets, stop before reading uninitialized
	memory.

1270 1271 1272 1273 1274
2014-03-23  Daniel Colascione  <dancol@dancol.org>

	* process.c (DATAGRAM_CONN_P): Don't underflow datagram_address
	array.  (ASAN caught.)

1275 1276 1277 1278 1279 1280
2014-03-21  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	Fix regression introduced by patch for Bug#10500.
	* xterm.c (x_draw_image_relief): Respect Vtool_bar_button_margin.
	* w32term.c (x_draw_image_relief): Likewise.

1281 1282 1283 1284 1285 1286
2014-03-21  Martin Rudalics  <rudalics@gmx.at>

	* w32fns.c (w32_wnd_proc): For WM_WINDOWPOSCHANGING don't
	constrain frame size in SW_SHOWMAXIMIZED case so we can truly
	maximize a frame for odd default fonts.

Paul Eggert's avatar
Paul Eggert committed
1287 1288 1289 1290
2014-03-20  Paul Eggert  <eggert@cs.ucla.edu>

	* doc.c (store_function_docstring): Fix pointer signedness mismatch.

1291 1292
2014-03-20  Stefan Monnier  <monnier@iro.umontreal.ca>

1293 1294 1295 1296 1297 1298
	* doc.c (store_function_docstring): Warn when we don't know where to
	put a docstring.
	(Fsubstitute_command_keys): Don't advertise the fact that
	text-properties are dropped, since we think it's a bug that we'll fix
	in 24.5.

1299 1300 1301 1302
	* frame.h (SET_FRAME_VISIBLE): Keep frame_garbaged up to date.
	* xterm.c (handle_one_xevent) <MapNotify>: Don't garbage the frame.
	* frame.c (frame_garbaged): Make "docstring" more precise.

1303 1304 1305 1306 1307
2014-03-20  Glenn Morris  <rgm@gnu.org>

	* charset.c (init_charset): When we cannot find the charsets directory,
	mention if EMACSDATA is set.

1308 1309
2014-03-19  Paul Eggert  <eggert@cs.ucla.edu>

1310 1311
	* fns.c (Frandom): Fix rare bug where the result isn't random.

1312 1313 1314 1315 1316
	Fix porting inconsistency about rounding to even.
	* floatfns.c (emacs_rint) [!HAVE_RINT]: Round to even.
	This way, the unusual !HAVE_RINT case acts like the usual
	HAVE_RINT case, and we can fix the documentation accordingly.

1317 1318 1319 1320 1321 1322
2014-03-19  Eli Zaretskii  <eliz@gnu.org>

	* w32fns.c (reset_modifiers): Zero out keystate[] before using it.
	(w32_wnd_proc): Initialize the dwHoverTime member of
	TRACKMOUSEEVENT structure.

1323 1324 1325 1326
2014-03-17  Teodor Zlatanov  <tzz@lifelogs.com>

	* gnutls.c (Fgnutls_boot): Fix case of :verify-error = t.

1327 1328 1329
2014-03-16  Eli Zaretskii  <eliz@gnu.org>

	* search.c (find_newline): Speed up the function when using the
1330
	newline cache, by halving the number of calls to
1331 1332
	region_cache_forward and region_cache_backward.  (Bug#16830)

1333 1334 1335 1336
2014-03-15  Juanma Barranquero  <lekktu@gmail.com>

	* buffer.c (Fset_buffer): Document return value (bug#17015).

1337 1338 1339 1340 1341 1342
2014-03-14  Martin Rudalics  <rudalics@gmx.at>

	* w32term.c (x_set_window_size): When frame-resize-pixelwise is
	nil, always resize character wise to avoid potential loss of the
	mode line (Bug#16923 related).

1343 1344 1345 1346 1347
2014-03-12  Martin Rudalics  <rudalics@gmx.at>

	* frame.c (x_set_frame_parameters): Always calculate new sizes
	pixelwise to avoid potential loss when rounding.

1348 1349 1350 1351 1352
2014-03-11  Dmitry Antipov  <dmantipov@yandex.ru>

	* xfns.c (x_set_mouse_color): Recolor vertical_drag_cursor.
	* xterm.c (x_free_frame_resources): Free all allocated cursors.

1353 1354 1355 1356 1357 1358
2014-03-10  Eli Zaretskii  <eliz@gnu.org>

	* w32.c (fstatat): Don't add an extra slash if the argument ends
	with a slash: this fails the subsequent call to stat_worker on
	Windows 9X.  Reported by oslsachem <oslsachem@gmail.com>.

1359 1360 1361 1362
2014-03-09  Martin Rudalics  <rudalics@gmx.at>

	* xdisp.c (Fwindow_text_pixel_size): Adjust doc-string.

1363 1364 1365 1366
2014-03-08  Jan Djärv  <jan.h.d@swipnet.se>

	* nsterm.h (MAC_OS_X_VERSION_10_9): Add.

1367 1368
	* nsterm.m (constrainFrameRect:toScreen:): Constrain normally
	when frame is only on one screen (Bug#14713).
1369

1370 1371 1372 1373 1374 1375 1376 1377 1378
2014-03-08  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (move_it_in_display_line_to): If word-wrap is ON, and
	there's a valid wrap point in the display line, the last glyph
	cannot "just barely fit" on this row, because display_line doesn't
	let it.  Instead, proceed as if the last glyph didn't fit, so that
	we eventually back up the iterator to the wrap point.  This avoids
	delusional behavior of move_it_to, whereby it proceeds to the next
	display line, but sets current_x to zero for all the glyphs that
1379 1380
	without word-wrap would fit on the previous display line.
	One result was that visual-order cursor movement behaved erratically
1381 1382 1383 1384
	under word-wrap.
	(Fmove_point_visually): Add code to find the x coordinate of the
	last character before wrap point, under word-wrap on a TTY.

1385 1386 1387 1388 1389 1390 1391
2014-03-07  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (Fmove_point_visually): When under word-wrap, accept
	also return value of MOVE_POS_MATCH_OR_ZV from
	move_it_in_display_line_to, when moving from beginning of line to
	point's position.  (Bug#16961)

1392 1393 1394 1395 1396 1397
2014-03-07  Martin Rudalics  <rudalics@gmx.at>

	* buffer.c (Vbuffer_list_update_hook): Doc-string fix.
	* window.c (Fselect_window): Explain NORECORD and
	`buffer-list-update-hook' in doc-string.

1398 1399 1400 1401 1402
2014-03-06  Martin Rudalics  <rudalics@gmx.at>

	* window.c (Fother_window_for_scrolling): Check that
	Vother_window_scroll_buffer is a buffer.

1403 1404 1405 1406 1407 1408 1409 1410 1411
2014-03-06  Dmitry Antipov  <dmantipov@yandex.ru>

	* xterm.c (xim_initialize): Always pass a copy of resource name
	to XRegisterIMInstantiateCallback and eassert whether return
	value is True.  Passing copy is important because Xlib doesn't
	make its own copy and resource name argument usually points to
	SSDATA (Vx_resource_name), which may be changed from Lisp.
	(xim_close_display): For XUnregisterIMInstantiateCallback,
	always eassert return value and pass exactly the same values
1412 1413
	as were used for XRegisterIMInstantiateCallback.
	Otherwise XUnregisterIMInstantiateCallback will always fail.  See Xlib
1414 1415
	sources to check why if you are interested.

1416 1417 1418 1419 1420 1421 1422
2014-03-05  Martin Rudalics  <rudalics@gmx.at>

	* dispnew.c (change_frame_size_1): Add new_lines instead of
	new_height, the latter may be still zero if passed as such.
	* window.c (Fwindow_pixel_height): Mention bottom divider in
	doc-string.