ChangeLog 776 KB
Newer Older
Paul Eggert's avatar
Paul Eggert committed
1 2 3 4 5 6 7 8 9 10 11 12 13
2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>

	Fix AIX port (Bug#13650).
	* lisp.h (XPNTR) [!USE_LSB_TAG && DATA_SEG_BITS]:
	Fix bug introduced in 2012-07-27 change.  DATA_SEG_BITS, if set,
	was #undeffed earlier, so it cannot be used as a macro here.
	Use the constant and not the macro.
	* unexaix.c: Revert 2013-02-11 and 2013-02-12 changes to this
	file.  They're almost surely OK but we're just before a release so
	we should avoid changes unless they're clearly needed.  Instead,
	make the following minor change:
	(ADDR_CORRECT): New macro.

14 15
2013-02-13  Eli Zaretskii  <eliz@gnu.org>

16 17 18 19
	* w32proc.c (new_child): If no vacant slots are found in
	child_procs[], make another pass looking for slots whose process
	has exited or died.  (Bug#13546)

20 21 22 23 24 25
	* w32.c (sys_pipe): When failing due to file descriptors above
	MAXDESC, set errno to EMFILE.
	(_sys_read_ahead): Update cp->status when failing to read serial
	communications input, so that the status doesn't stay at
	STATUS_READ_IN_PROGRESS.  (Bug#13546)

26 27 28 29
2013-02-13  Glenn Morris  <rgm@gnu.org>

	* keyboard.c (input-decode-map, key-translation-map): Doc fixes.

30 31
2013-02-12  Paul Eggert  <eggert@cs.ucla.edu>

Paul Eggert's avatar
Paul Eggert committed
32 33 34 35 36 37 38 39 40 41 42 43 44 45
	Improve AIX port some more (Bug#13650).
	With this, it should be as good as it was in 23.3, though it's
	still pretty bad: the dumped emacs does not run.  See Mark Fleishman in
	http://lists.gnu.org/archive/html/help-gnu-emacs/2011-04/msg00287.html
	* unexaix.c (start_of_text): Remove.
	(_data, _text): Declare as char[], not int, as AIX manual suggests.
	(bias, lnnoptr, text_scnptr, data_scnptr, load_scnptr)
	(orig_load_scnptr, orig_data_scnptr):
	Now off_t, not long, since they are file offsets.
	(make_hdr): Use _data, not start_of_data ().
	This is the key part of the fix.
	(make_hdr, unrelocate_symbols): Use off_t for file offsets.
	(unrelocate_symbols): Cast pointers to intptr_t, not to ulong.

46 47 48 49
	* pre-crt0.c (data_start): Initialize to 1.
	This ports to compilers that optimize the external declaration
	'int x = 0;' as if it were 'int x;' to shrink the executable.

Paul Eggert's avatar
Paul Eggert committed
50 51 52 53 54 55 56 57 58 59 60 61 62
2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>

	Improve AIX port (Bug#13650).
	This doesn't fix the bug, but it makes progress: Emacs builds now.
	* unexaix.c: Include inttypes.h, stdarg.h.
	(report_error, report_error_1): Mark as _Noreturn.
	(report_error): Don't report the wrong errno.
	(report_error_1): Now varargs.  All callers changed.
	(make_hdr): Use uintptr_t, not unsigned, when converting pointers
	to unsigned.  Don't use ADDR_CORRECT, as it no longer exists.
	(write_ptr): Use %p to print address rather than %lx and a cast
	to unsigned long.  Grow buffer a bit, to be safer.

Eli Zaretskii's avatar
Eli Zaretskii committed
63 64 65 66 67 68 69 70 71 72 73
2013-02-11  Eli Zaretskii  <eliz@gnu.org>

	* bidi.c (bidi_resolve_neutral): After finding the next
	non-neutral character, accept NEUTRAL_ON type as well, because
	directional control characters, such as LRE and RLE, have their
	type converted to that by bidi_resolve_weak.  This avoids aborts
	when LRE/RLE follows a run of neutrals.
	(bidi_move_to_visually_next): Assert that return value of
	bidi_peek_at_next_level is non-negative.  Negative values will
	cause an infloop.

74
2013-02-05  Daniel Colascione  <dancol@dancol.org>
75 76 77 78 79

	* emacs.c: Use execvp, not execv, when DAEMON_MUST_EXEC, so that
	daemon mode works on cygw32 when Emacs is installed and not just
	during development.

80 81
2013-02-01  Eli Zaretskii  <eliz@gnu.org>

82 83 84 85 86
	* callproc.c (Fcall_process): Make sure program name in PATH and
	new_argv[0] is encoded, if needed.  Otherwise, un-encoded string
	is passed to exec/spawnve, which fails unless the file-name
	encoding is UTF-8.

87 88 89
	* w32proc.c (sys_spawnve): Make sure escape_char is initialized,
	even if w32-quote-process-args is nil.

90 91 92 93 94 95
2013-01-27  Eli Zaretskii  <eliz@gnu.org>

	* w32.c (sys_open): Zero out the flags for the new file descriptor.
	(sys_close): Zero out the flags for the file descriptor before
	closing it.  (Bug#13546)

96 97 98 99 100 101 102
2013-01-26  Eli Zaretskii  <eliz@gnu.org>

	* w32.c (parse_root, get_volume_info, readdir, read_unc_volume)
	(logon_network_drive, stat_worker, symlink, chase_symlinks): Use
	CharNextExA and CharPrevExA to iterate over file names encoded in
	DBCS.  (Bug#13553)

103 104 105 106
2013-01-25  Eli Zaretskii  <eliz@gnu.org>

	* w32.c (w32_get_long_filename, init_environment, readlink):
	Support file names encoded in DBCS codepages.
107 108
	(readlink): Use the current file-name-coding-system, not the ANSI
	codepage, to decode and handle targets of symlinks.
109

110 111 112 113 114 115 116 117 118
2013-01-23  Eli Zaretskii  <eliz@gnu.org>

	* w32.c (max_filename_mbslen): New function.
	(normalize_filename, readdir): Use it to detect locales where ANSI
	encoding of file names uses a double-byte character set (DBCS).
	If a DBCS encoding is used, advance by characters using
	CharNextExA, instead of incrementing a 'char *' pointer.  Use
	_mbslwr instead of _strlwr.  (Bug#13515)

119 120 121 122 123
2013-01-22  Eli Zaretskii  <eliz@gnu.org>

	* w32heap.c (allocate_heap) [!_WIN64]: Decrease the initial
	request of memory reservation to 1.7GB.  (Bug#13065)

Andreas Schwab's avatar
Andreas Schwab committed
124 125 126 127 128
2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>

	* coding.c (detect_coding_iso_2022): Move back mis-reordered code
	at check_extra_latin label.  (Bug#13505)

Glenn Morris's avatar
Glenn Morris committed
129 130 131 132
2013-01-17  Glenn Morris  <rgm@gnu.org>

	* fns.c (Frandom): Doc fix.

133 134 135 136 137
2013-01-13  Jan Djärv  <jan.h.d@swipnet.se>

	* nsfont.m (LCD_SMOOTHING_MARGIN): New define.
	(nsfont_draw): Remove disabling of LCD smoothing.
	(ns_glyph_metrics): Add LCD_SMOOTHING_MARGIN to bearings to fix
Jan Djärv's avatar
Jan Djärv committed
138
	Bug#11484 with LCD smoothing on.
139

140
2013-01-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>  (tiny change)
141 142 143 144

	* gtkutil.c (xg_initialize): Backport from trunk.
	Add ifdef HAVE_FREETYPE around x_last_font_name (Bug#13403).

Paul Eggert's avatar
Paul Eggert committed
145 146
2013-01-11  Paul Eggert  <eggert@cs.ucla.edu>

147 148 149 150 151 152
	Backport typo fix from trunk, for AIX (Bug#13408).
	* eval.c (mark_backtrace) [BYTE_MARK_STACK]: Remove stray '*'.
	This follows up on the 2012-09-29 patch that removed indirection
	for the 'function' field.  Reported by Sergey Vinokurov in
	<http://lists.gnu.org/archive/html/emacs-devel/2012-11/msg00263.html>.

Paul Eggert's avatar
Paul Eggert committed
153 154 155 156
	Fix SIGDANGER handlers, for AIX (Bug#13408).
	* sysdep.c.c (handle_danger_signal, deliver_danger_signal) [SIGDANGER]:
	Move handlers here from emacs.c; they were out of place.

157 158 159 160 161 162 163 164 165
2013-01-05  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (dump_glyph): Align glyph data better.  Use "pD" instead
	of a non-portable "t" to print ptrdiff_t values.  Allow up to 9
	digits for buffer positions, before misalignment starts.  Display
	"0" for integer "object" field.
	(dump_glyph_row): Adapt the header line to changes in dump_glyph.
	Display the newline glyph more unambiguously.

166 167 168 169 170 171 172
2013-01-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* nsterm.m (ns_draw_underwave):
	* w32term.c (w32_draw_underwave):
	* xterm.c (x_draw_underwave): Make underwave look more triangular
	and also degrade gracefully for small fonts.  (Bug#13000)

173 174 175 176 177
	* nsterm.m (ns_draw_text_decoration):
	* w32term.c (x_draw_glyph_string):
	* xterm.c (x_draw_glyph_string): Don't use previous underline
	thickness and position if previous underline type is underwave.

178 179 180 181
2012-12-31  Glenn Morris  <rgm@gnu.org>

	* keymap.c (Fkey_description): Doc fix.  (Bug#13323)

182 183 184 185 186 187 188
2012-12-29  Andreas Schwab  <schwab@linux-m68k.org>

	* src/Makefile.in (TEMACS_LDFLAGS2): Remove.
	(LIBS_GNUSTEP): Define.
	(LIBES): Add $(LIBS_GNUSTEP).
	(temacs$(EXEEXT)): Use $(LDFLAGS) instead of $(TEMACS_LDFLAGS2).

189 190 191 192 193 194
2012-12-27  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (set_cursor_from_row): Don't confuse a truncation or
	continuation glyph on a TTY with an indication of an empty line.
	(Bug#13277)

195 196 197 198 199
2012-12-27  Glenn Morris  <rgm@gnu.org>

	* cygw32.c (Fcygwin_convert_file_name_to_windows)
	(Fcygwin_convert_file_name_from_windows): Doc fixes.

200 201 202 203 204 205 206 207 208 209 210 211 212 213 214
2012-12-24  Eli Zaretskii  <eliz@gnu.org>

	* fileio.c (file_name_as_directory, directory_file_name): Accept
	an additional argument MULTIBYTE to indicate whether the input C
	came from a multibyte or a unibyte Lisp string; all callers
	adjusted.  Don't assume the input string is always multibyte.
	(Bug#13262)
	(Ffile_name_directory) [DOS_NT]: Handle unibyte strings correctly:
	don't ENCODE_FILE them, and return a unibyte string if the input
	was unibyte.
	(Fexpand_file_name): Don't mix unibyte with multibyte strings, and
	don't assume the input strings will always be multibyte.  If the
	input strings are multibyte, decode strings obtained from C
	library functions.

215 216 217 218
2012-12-22  Martin Rudalics  <rudalics@gmx.at>

	* window.c (Fselect_window): Reword doc-string (Bug#13248).

219 220
2012-12-21  Eli Zaretskii  <eliz@gnu.org>

221 222
	* fileio.c (Finsert_file_contents): Doc fix.

223 224 225 226 227 228 229 230 231
	* w32proc.c (new_child, delete_child, find_child_pid): For a
	subprocess, consider its slot being in use as long as its process
	handle (procinfo.hProcess) is not NULL.  This avoids reusing the
	slot when a new process is started immediately after killing
	another one, without waiting enough time for the first process to
	be reaped and resources allocated for it be orderly freed.
	(Bug#13086)
	Suggested by Fabrice Popineau <fabrice.popineau@supelec.fr>.

232 233 234 235
2012-12-21  Chong Yidong  <cyd@gnu.org>

	* buffer.c (Fset_buffer_major_mode): Doc fix (Bug#13231).

236 237 238 239
2012-12-15  Chong Yidong  <cyd@gnu.org>

	* fns.c (Fcompare_strings): Doc fix (Bug#13081).

240 241 242 243 244 245 246 247 248
2012-12-14  Eli Zaretskii  <eliz@gnu.org>

	* w32.c (get_name_and_id): Always pass NULL as the first argument
	of lookup_account_sid.  Avoids crashes with UNC file names that
	refer to DFS domains, not to specific machine names.  (Bug#12621)
	Remove now unused argument FNAME; all callers changed.
	(get_file_owner_and_group): Remove now unused argument FNAME; all
	callers changed.

249 250 251 252 253 254
2012-12-11  Eli Zaretskii  <eliz@gnu.org>

	* search.c (search_buffer): Check the inverse translations of each
	character in pattern when the buffer being searched is unibyte.
	(Bug#13084)

255 256 257 258
2012-12-10  Paul Eggert  <eggert@cs.ucla.edu>

	* fileio.c (Fvisited_file_modtime): Return (-1 ...) for nonexistent
	files, fixing a regression from 24.2.
259
	(Fverify_visited_file_modtime): Don't read uninitialized st.st_size.
260

261 262 263 264
2012-12-08  Jan Djärv  <jan.h.d@swipnet.se>

	* nsterm.m (fd_handler:): FD_ZERO fds (Bug#13103).

265 266 267 268 269
2012-12-08  Fabrice Popineau  <fabrice.popineau@gmail.com>

	* w32fns.c (cache_system_info): Cast sysinfo_cache.dwPageSize to
	DWORD_PTR, for compatibility with 64-bit builds.

270
	* w32.c (_PROCESS_MEMORY_COUNTERS_EX):
271 272 273 274
	(GetProcessWorkingSetSize_Proc, get_process_working_set_size)
	(system_process_attributes): Use SIZE_T rather than DWORD, for
	compatibility with 64-bit builds.

275 276 277 278
2012-12-08  Christopher Schmidt  <christopher@ch.ristopher.com>

	* lread.c (Vload_source_file_function): Doc fix (Bug#11647).

279 280 281 282 283 284
2012-12-07  Eli Zaretskii  <eliz@gnu.org>

	* indent.c (Fvertical_motion): If a display string will be
	displayed on the left or the right margin, don't consider it as a
	factor in cursor positioning.  (Bug#13108)

285 286 287 288
2012-12-07  Martin Rudalics  <rudalics@gmx.at>

	* editfns.c (Fcompare_buffer_substrings): Reword doc-string.

289 290 291 292 293
2012-12-05  Eli Zaretskii  <eliz@gnu.org>

	* callproc.c (Fcall_process_region) [!HAVE_MKSTEMP]: If mktemp
	fails, signal an error instead of continuing with an empty
	string.  (Bug#13079)
294 295
	Encode expanded temp file pattern before passing it to mkstemp or
	mktemp.
296

297 298 299 300 301 302 303
2012-12-04  Eli Zaretskii  <eliz@gnu.org>

	* fileio.c (file_name_as_directory, directory_file_name) [DOS_NT]:
	Encode the file name before passing it to dostounix_filename, in
	case it will downcase it (under w32-downcase-file-names).
	(Bug#12933)

304 305 306 307
2012-12-01  Chong Yidong  <cyd@gnu.org>

	* fileio.c (Vauto_save_list_file_name): Doc fix.

308 309 310 311 312 313 314 315 316 317 318 319 320 321
2012-11-30  Fabrice Popineau  <fabrice.popineau@gmail.com>

	* w32fns.c: Remove prototype of atof.
	(syspage_mask): Declared DWORD_PTR, for compatibility with 64-bit
	builds.
	(file_dialog_callback): Declared UINT_PTR.

	* w32common.h (syspage_mask): Declare DWORD_PTR, for compatibility
	with 64-bit builds.

	* w32.c (FILE_DEVICE_FILE_SYSTEM, METHOD_BUFFERED)
	(FILE_ANY_ACCESS, CTL_CODE) [_MSC_VER]: Define only if not already
	defined.

322 323
2012-11-27  Glenn Morris  <rgm@gnu.org>

324
	* data.c (Fboundp, Fsymbol_value): Doc fix re lexical-binding.
325

326 327 328 329 330
2012-11-26  Eli Zaretskii  <eliz@gnu.org>

	* fontset.c (Finternal_char_font): Return nil on non-GUI frames.
	(Bug#11964)

331 332 333 334 335 336 337 338 339
2012-11-24  Paul Eggert  <eggert@cs.ucla.edu>

	Revert recent change for Bug#8855.
	As reported by Harald Hanche-Olsen in
	<http://lists.gnu.org/archive/html/emacs-devel/2012-11/msg00445.html>
	the change introduces a further bug, of creating lots of zombie
	processes in some cases.  Further work is needed to come up with a
	better fix for Bug#8855.

340 341 342 343 344 345 346
2012-11-24  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (draw_glyphs): Don't draw in mouse face if mouse
	highlighting on the frame was cleared.  Prevents assertion
	violations when repeatedly clicking on the "Top" link of the
	"bread-crumbs" in Info buffers.

347
2012-11-23  Paul Eggert  <eggert@cs.ucla.edu>
348
	    Eli Zaretskii  <eliz@gnu.org>
349 350

	Fix a race condition with glib (Bug#8855).
351 352 353 354 355 356 357 358 359
	The symptom is a diagnostic "GLib-WARNING **: In call to
	g_spawn_sync(), exit status of a child process was requested but
	SIGCHLD action was set to SIG_IGN and ECHILD was received by
	waitpid(), so exit status can't be returned."  The diagnostic
	is partly wrong, as the SIGCHLD action is not set to SIG_IGN.
	The real bug is a race condition between Emacs and glib: Emacs
	does a waitpid (-1, ...) and reaps glib's subprocess by mistake,
	so that glib can't find it.  Work around the bug by invoking
	waitpid only on subprocesses that Emacs itself creates.
360

361
	This is a backport from the trunk, consisting of:
362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377

	* w32proc.c (create_child): Don't clip the PID of the child
	process to fit into an Emacs integer, as this is no longer a
	restriction.
	(waitpid): Rename from sys_wait.  Emulate a Posix 'waitpid' by
	reaping only the process specified by PID argument, if that is
	positive.  Use PID instead of dead_child to know which process to
	reap.  Wait for the child to die only if WNOHANG is not in
	OPTIONS.
	(sys_select): Don't set dead_child.

	* sysdep.c (wait_for_termination_1): Remove the WINDOWSNT portion,
	as it is no longer needed.

	* process.c (waitpid, WUNTRACED) [!WNOHANG]: Remove definitions,
	no longer needed.
378 379 380 381
	(create_process, record_child_status_change): Don't use special
	value -1 in pid field, as the caller now must know the pid rather
	than having the callee infer it.  The inference was sometimes
	incorrect anyway, due to another race.
382 383 384 385 386 387 388
	(create_process): Set new 'alive' member if child is created.
	(process_status_retrieved): New function.
	(record_child_status_change): Use it.
	Accept negative 1st argument, which means to wait for the
	processes that Emacs already knows about.  Move special-case code
	for DOS_NT (which lacks WNOHANG) here, from caller.  Keep track of
	processes that have already been waited for, by testing and
389 390
	clearing new 'alive' member. Remove the setting of
	record_at_most_one_child for the !WNOHANG case.
391 392 393 394 395 396 397
	(CAN_HANDLE_MULTIPLE_CHILDREN): Remove, as record_child_status_change
	now does this internally.
	(handle_child_signal): Let record_child_status_change do all
	the work, since we do not want to reap all exited child processes,
	only the child processes that Emacs itself created.
	* process.h (Lisp_Process): New boolean member 'alive'.

398 399
2012-11-23  Eli Zaretskii  <eliz@gnu.org>

400 401 402 403
	* xdisp.c (set_cursor_from_row): Skip step 2 only if point is not
	between bpos_covered and bpos_max.  This fixes cursor display when
	several display strings follow each other.

404 405 406 407
	* .gdbinit (pgx): If the glyph's object is a string, display the
	pointer to string data, rather than the value of the string object
	itself (which barfs under CHECK_LISP_OBJECT_TYPE).

408 409 410 411 412 413
2012-11-21  Eli Zaretskii  <eliz@gnu.org>

	* indent.c (Fvertical_motion): If the starting position is covered
	by a display string, return to one position before that, to avoid
	overshooting it inside move_it_to.  (Bug#12930)

414 415 416 417 418 419 420 421 422
2012-11-20  Daniel Colascione  <dancol@dancol.org>

	* w32fns.c (Fx_file_dialog):
	(Fx_file_dialog): Accomodate rename of cygwin_convert_path* to
	cygwin_convert_file_name*.

	* cygw32.c (Fcygwin_convert_path_to_windows, syms_of_cygw32):
	Rename cygwin_convert_path* to cygwin_convert_file_name*.

Ken Brown's avatar
Ken Brown committed
423 424 425 426 427 428
2012-11-20  Ken Brown  <kbrown@cornell.edu>

	* emacs.c (main): Set the G_SLICE environment variable for all
	Cygwin builds, not just GTK builds.  See
	https://lists.gnu.org/archive/html/emacs-devel/2012-11/msg00368.html.

429 430 431 432 433 434 435 436 437 438 439 440
2012-11-19  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (start_hourglass) [HAVE_NTGUI]: Don't mix declaration of
	w32_note_current_window with code.  (Backport from trunk.)

	* w32.c (FILE_DEVICE_FILE_SYSTEM, METHOD_BUFFERED)
	(FILE_ANY_ACCESS, CTL_CODE, FSCTL_GET_REPARSE_POINT) [_MSC_VER]:
	Define for the MSVC compiler.

	* w32term.h (EnumSystemLocalesW) [_MSC_VER]: Add a missing
	semi-colon.

441 442 443 444 445 446 447 448 449
2012-11-18  Eli Zaretskii  <eliz@gnu.org>

	* fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
	(Fexpand_file_name) [DOS_NT]: Pass encoded file name to
	dostounix_filename.  Prevents crashes down the road, because
	dostounix_filename assumes it gets a unibyte string.  Reported by
	Michel de Ruiter <michel@sentient.nl>, see
	http://lists.gnu.org/archive/html/help-emacs-windows/2012-11/msg00017.html

450 451 452 453 454 455 456 457 458 459 460 461
2012-11-17  Eli Zaretskii  <eliz@gnu.org>

	* w32select.c: Include w32common.h before w32term.h, so that
	windows.h gets included before w32term.h uses some of its
	features, see below.

	* w32term.h (LOCALE_ENUMPROCA, LOCALE_ENUMPROCW) [_MSC_VER]: New
	typedefs.
	(EnumSystemLocalesA, EnumSystemLocalesW) [_MSC_VER]: New
	prototypes.
	(EnumSystemLocales) [_MSC_VER]: Define if undefined.  (Bug#12878)

462 463 464 465 466
2012-11-17  Jan Djärv  <jan.h.d@swipnet.se>

	* nsterm.m (hold_event): Set send_appdefined to YES (Bug#12834).
	(ns_select): Return at once if events are held (Bug#12834).

467 468 469 470 471
2012-11-16  enami tsugutomo  <tsugutomo.enami@jp.sony.com>

	* unexelf.c (ELFSIZE) [__NetBSD__ && _LP64]: Set to 64.
	Needed following 2012-10-20 change.  (Bug#12902)

472 473 474 475
2012-11-16  Glenn Morris  <rgm@gnu.org>

	* editfns.c (Fmessage): Mention message-log-max.  (Bug#12849)

476 477 478 479
2012-11-15  Stefan Monnier  <monnier@iro.umontreal.ca>

	* eval.c (Finteractive_p): Revert lexbind-merge mishap.

480 481 482 483 484 485 486 487 488 489 490 491
2012-11-14  Eli Zaretskii  <eliz@gnu.org>

	* w32proc.c (timer_loop): Make sure SuspendThread and ResumeThread
	use the same value of thread handle.
	(start_timer_thread): If the timer thread exited (due to error),
	clean up by closing the two handles it used.  Duplicate the caller
	thread's handle here, so it gets duplicated only once, when
	launching the timer thread.  Set priority of the timer thread, not
	the caller thread.
	(getitimer): Don't duplicate the caller thread's handle here.
	(Bug#12832)

492 493 494 495 496
2012-11-13  Jan Djärv  <jan.h.d@swipnet.se>

	* nsterm.m (hold_event): Send SIGIO to make sure ns_read_socket is
	called (Bug#12834).

497 498 499 500 501 502 503 504
2012-11-12  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (decode_mode_spec): Limit the value of WIDTH argument
	passed to pint2str and pint2hrstr to be at most the size of the
	frame's decode_mode_spec_buffer.  This avoids crashes with very
	large values of FIELD_WIDTH argument to decode_mode_spec.
	(Bug#12867)

505 506 507 508 509
2012-11-07  Martin Rudalics  <rudalics@gmx.at>

	* window.c (Fsplit_window_internal): Set combination limit of
	new parent window to t iff Vwindow_combination_limit is t;
	fixing a regression introduced with the change from 2012-09-22.
510 511
	(Fwindow_combination_limit, Fset_window_combination_limit):
	Fix doc-strings.
512

513 514 515 516 517
2012-11-06  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (try_scrolling): Fix correction of aggressive-scroll
	amount when the scroll margins are too large.  When scrolling
	backwards in the buffer, give up if cannot reach point or the
518 519
	scroll margin within a reasonable number of screen lines.
	Fixes point position in window under scroll-up/down-aggressively when
520 521 522
	point is positioned many lines beyond the window top/bottom.
	(Bug#12811)

523 524 525 526 527 528
2012-11-05  Eli Zaretskii  <eliz@gnu.org>

	* ralloc.c (relinquish): If real_morecore fails to return memory
	to the system, don't crash; instead, leave the last heap
	unchanged and return.  (Bug#12774)

529
2012-11-03  Eli Zaretskii  <eliz@gnu.org>
Jan Djärv's avatar
Jan Djärv committed
530

531 532
	* lisp.mk: Adjust comments to the fact that term/internal is now
	loaded from loadup.el.
Jan Djärv's avatar
Jan Djärv committed
533

534 535 536 537 538 539 540 541
	* msdos.c (msdos_abort): Rename from emacs_abort, and make static.
	(msdos_fatal_signal): New function.
	(XMenuActivate): Adjust the call to kbd_buffer_events_waiting to
	its argument list.

	* conf_post.h (_GL_EXECINFO_INLINE) [MSDOS]: Define to "inline"
	for GCC versions before 4.
	(emacs_raise): Define to call msdos_fatal_signal.
542 543 544 545 546

	* xdisp.c (init_from_display_pos): Fix initialization of the bidi
	iterator when starting in the middle of a display or overlay
	string.  (Bug#12745)

547 548 549 550 551 552 553
2012-11-03  Jan Djärv  <jan.h.d@swipnet.se>

	* widget.c (resize_cb): New function.
	(EmacsFrameRealize): Add resize_cb as event handler (Bug#12733).
	(EmacsFrameResize): Check if all is up to date before changing frame
	size.

554 555 556 557
2012-11-01  Eli Zaretskii  <eliz@gnu.org>

	* w32proc.c (getpgrp, setpgid): New functions.  (Bug#12776)

558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578
2012-10-31  Paul Eggert  <eggert@cs.ucla.edu>

	Fix crash when using Emacs as commit editor for git (Bug#12697).
	* callproc.c (setpgrp): Remove macro, as we now use setpgid
	and it is configured in conf_post.h.
	(Fcall_process): Don't invoke both setsid and setpgid; the former
	is enough, if it exists.
	* callproc.c (Fcall_process, child_setup):
	* process.c (create_process): Use setpgid.
	* conf_post.h (setpgid) [!HAVE_SETPGID]: New macro, which substitutes
	for the real thing.
	* dispnew.c (init_display): Initialize the foreground group
	if we are running a tty display.
	* emacs.c (main): Do not worry about setpgrp; init_display does it now.
	* lisp.h (init_foreground_group): New decl.
	* sysdep.c (inherited_pgroup): New static var.
	(init_foreground_group, tcsetpgrp_without_stopping)
	(narrow_foreground_group, widen_foreground_group): New functions.
	(init_sys_modes): Narrow foreground group.
	(reset_sys_modes): Widen foreground group.

579 580 581 582
2012-10-31  Michael Albinus  <michael.albinus@gmx.de>

	* dbusbind.c: Fix cut'n'waste error.  Use HAVE_DBUS_VALIDATE_INTERFACE.

583 584 585 586 587 588
2012-10-31  Martin Rudalics  <rudalics@gmx.at>

	* minibuf.c (read_minibuf): Restore current buffer since
	choose_minibuf_frame calling Fset_frame_selected_window may
	change it (Bug#12766).

589 590 591 592
2012-10-30  Jan Djärv  <jan.h.d@swipnet.se>

	* frame.c (Fframe_pixel_height): Fix documentation (Bug#12733).

593 594 595 596 597
2012-10-30  Kenichi Handa  <handa@gnu.org>

	* font.c (Ffont_at): If WINDOW is specified and it is not
	displaying the current buffer, signal an error.

598 599
2012-10-29  Daniel Colascione  <dancol@dancol.org>

600 601
	* cygw32.h, cygw32.c (Qutf_16le, from_unicode, to_unicode):
	In preparation for fixing bug#12739, move these functions from
602 603 604
	here...

	* coding.h, coding.c: ... to here, and compile them only when
605 606
	WINDOWSNT or CYGWIN.  Moving these functions out of cygw32 proper
	lets us write cygw32-agnostic code for the HAVE_NTGUI case.
607

608 609 610 611 612 613 614 615 616
2012-10-28  Eli Zaretskii  <eliz@gnu.org>

	* w32proc.c (TIMER_TICKS_PER_SEC): New macro.
	(timer_loop, getitimer, setitimer): Use it instead of
	CLOCKS_PER_SEC, which is no longer pertinent, since we don't use
	'clock'.
	(w32_get_timer_time): Use 10*TIMER_TICKS_PER_SEC instead of a
	literal 10000.

617 618 619 620 621 622 623 624 625 626
2012-10-28  Jan Djärv  <jan.h.d@swipnet.se>

	* nsterm.m (NO_APPDEFINED_DATA): New define.
	(last_appdefined_event_data): New variable
	(last_appdefined_event): Remove.
	(ns_select): Initialize t from last_appdefined_event_data instead
	of [last_appdefined_event data1].
	(sendEvent:): Save [theEvent data1] to last_appdefined_event_data,
	remove last_appdefined_event (Bug#12698).

627 628 629 630
2012-10-28  Stefan Monnier  <monnier@iro.umontreal.ca>

	* frame.c (x_set_font): Catch internal error.

631 632
2012-10-27  Eli Zaretskii  <eliz@gnu.org>

633 634
	Avoid overflow in w32 implementation of interval timers.
	When possible, for ITIMER_PROF count only times the main thread
635 636
	actually executes.
	* w32proc.c <struct itimer_data>: 'expire' and 'reload' are now
637 638
	'volatile ULONGLONG' types.  All the other data which was
	previously clock_t is now ULONGLONG.  'terminate' is 'volatile int'.
639 640 641 642 643
	(GetThreadTimes_Proc): New typedef.
	(w32_get_timer_time): New function, returns a suitable time value
	for the timer.
	(timer_loop): Enter critical section when accessing ULONGLONG
	values of the itimer_data struct, as these accesses are no longer
644 645
	atomic.  Call 'w32_get_timer_time' instead of 'clock'.
	Remove unused variable.
646 647 648 649
	(init_timers): Initialize s_pfn_Get_Thread_Times.
	(start_timer_thread): Don't assign itimer->caller_thread here.
	(getitimer): Assign itimer->caller_thread here.
	(setitimer): Always call getitimer to get the value of ticks_now.
650
	(sys_spawnve): Avoid compiler warning about format mismatch.
651

652 653 654 655 656 657 658
2012-10-26  Eli Zaretskii  <eliz@gnu.org>

	* w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Don't enable tracking of
	mouse movement events if the menu bar is active.  This avoids
	producing a busy "hour-glass" cursor by Windows if the mouse
	pointer is positioned over a tooltip shown for some menu item.

659 660 661 662 663 664 665 666 667
2012-10-25  Paul Eggert  <eggert@cs.ucla.edu>

	Don't assume process IDs fit in int.
	* emacs.c (shut_down_emacs) [!DOS_NT]:
	* sysdep.c (sys_suspend) [SIGTSTP && !MSDOS]:
	* term.c (dissociate_if_controlling_tty) [!DOS_NT]:
	Use pid_t, not int, to store process IDs, as 'int'
	is not wide enough on a few platforms (e.g., AIX and IRIX).

668 669 670 671 672 673 674 675
2012-10-23  Kenichi Handa  <handa@gnu.org>

	The following change is to make face-font-rescale-alist work
	correctly for non-ASCII fonts.

	* font.c (font_open_entity): Don't handle Vface_font_rescale_alist.
	(font_open_for_lface): Handle Vface_font_rescale_alist.

676 677 678 679
2012-10-23  Chong Yidong  <cyd@gnu.org>

	* xfaces.c (Vfont_list_limit): Move unused variable to faces.el.

680 681
2012-10-21  Jan Djärv  <jan.h.d@swipnet.se>

682 683 684 685
	* nsfont.m (nsfont_open, ns_glyph_metrics): Force integer advancement
	for screen font.
	(nsfont_draw): Turn off LCD-smoothing (Bug#11484).

686 687 688
	* xterm.c (x_focus_changed): Check if daemonp when sending focus in
	event (Bug#12681).

689 690 691 692
2012-10-21  Glenn Morris  <rgm@gnu.org>

	* lisp.mk (lisp): Add cp51932.el and eucjp-ms.el.

Paul Eggert's avatar
Paul Eggert committed
693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714
2012-10-20  Paul Eggert  <eggert@cs.ucla.edu>

	Port to OpenBSD 5.1.
	* frame.c (Fmouse_position, Fmouse_pixel_position):
	* xdisp.c (produce_stretch_glyph):
	Declare local vars only when they're needed.
	This is clearer and avoids a warning on OpenBSD about unused vars.
	* frame.h (FRAME_WINDOW_P): Always evaluate its argument.
	This is safer, and avoids OpenBSD warnings about unused vars.
	* keyboard.c (record_menu_key): Remove unnecessary decl.
	(poll_timer): Define only if POLL_FOR_INPUT is defined.
	* unexelf.c (ELFSIZE) [!ElfW]: Do not define if already defined,
	as our definition clashes with OpenBSD's.
	* xfaces.c (load_face_colors, check_lface_attrs)
	(get_lface_attributes_no_remap, get_lface_attributes)
	(lface_fully_specified_p, x_supports_face_attributes_p)
	(tty_supports_face_attributes_p, face_fontset, realize_face)
	(realize_x_face, realize_tty_face):
	Declare parameters to be Lisp_Object[LFACE_VECTOR_SIZE], not
	merely Lisp_Object *.  This is more informative and avoids
	a warning on OpenBSD about accessing beyond an object's size.

Chong Yidong's avatar
Chong Yidong committed
715 716 717 718
2012-10-20  Chong Yidong  <cyd@gnu.org>

	* lread.c (Fload): Doc fix (Bug#12592).

719
2012-10-19  Kazuhiro Ito  <kzhr@d1.dion.ne.jp>  (tiny change)
720 721 722

	* font.c (Ffont_at): Fix previous change.

Eli Zaretskii's avatar
Eli Zaretskii committed
723 724
2012-10-19  Eli Zaretskii  <eliz@gnu.org>

725 726
	* puresize.h (BASE_PURESIZE): Bump the base value to 1700000.
	See http://lists.gnu.org/archive/html/emacs-devel/2012-10/msg00593.html
727 728
	for the reasons.

Eli Zaretskii's avatar
Eli Zaretskii committed
729 730
	* alloc.c (NSTATICS): Decrease to 0x800.

731 732 733 734 735
2012-10-19  Stefan Monnier  <monnier@iro.umontreal.ca>

	* fns.c (Fnreverse): Include the problem element when signalling an
	error (bug#12677).

736 737 738 739 740
2012-10-18  Jan Djärv  <jan.h.d@swipnet.se>

	* nsterm.m (ns_select): Check writefds before call to
	FD_ISSET (Bug#12668).

741 742 743 744 745 746
2012-10-18  Daniel Colascione  <dancol@dancol.org>

	* alloc.c (NSTATICS): Increase from 0x650 to 0x1000
	(staticpro): If we run out of staticpro slots, die with an
	informative error instead of just calling emacs_abort.

747 748 749 750 751 752 753
2012-10-18  Martin Rudalics  <rudalics@gmx.at>

	Fix two flaws reported by Dmitry Antipov.
	* window.c (Ftemp_output_buffer_show): Remove.
	(Fwindow_vscroll, Fset_window_vscroll): Use decode_live_window.
	(syms_of_window): Remove defsubr for Stemp_output_buffer_show.

754 755
2012-10-17  Eli Zaretskii  <eliz@gnu.org>

756 757 758 759 760
	* makefile.w32-in ($(BLD)/w32.$(O)):
	($(BLD)/vm-limit.$(O)):
	($(BLD)/term.$(O)):
	($(BLD)/unexw32.$(O)):
	($(BLD)/fileio.$(O)):
761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789
	($(BLD)/dispnew.$(O)): Update dependencies.

	* w32term.h (w32_initialize_display_info, initialize_w32_display):
	Add prototypes.

	* w32proc.c: Include ctype.h.

	* w32.h (init_environment, check_windows_init_file)
	(syms_of_ntproc, syms_of_ntterm, dostounix_filename)
	(unixtodos_filename, init_winsock, srandom, random, sys_pipe)
	(set_process_dir, sys_spawnve, register_child, sys_sleep, getwd)
	(sys_link): Add prototypes.

	* w32.c: Include w32select.h.
	(sys_access, e_malloc, sys_select): Add prototypes.
	(emacs_gnutls_pull): 'timeout' is now EMACS_TIME, not struct timeval.

	* vm-limit.c [WINDOWSNT]: Include w32heap.h.

	* unexw32.c: Include lisp.h and w32.h.

	* term.c [WINDOWSNT]: Include w32term.h.

	* process.c [WINDOWSNT]: Add prototype of sys_select.

	* fileio.c [WINDOWSNT]: Include w32.h.

	* dispnew.c [WINDOWSNT]: Include w32.h.

790 791 792 793 794 795 796
	* cygw32.c (Fcygwin_convert_path_to_windows)
	(Fcygwin_convert_path_from_windows): Use EQ to compare 2
	Lisp_Object values.  (Bug#12661)

	* w32fns.c (w32_msg_pump): Use XIL instead of casting an integer
	to Lisp_Object.  (Bug#12661)

797 798 799 800 801
2012-10-17  Kenichi Handa  <handa@gnu.org>

	* xdisp.c (reseat_1): Make the information stored in it->cmp_it
	invalidate.

802 803 804
2012-10-17  Dmitry Antipov  <dmantipov@yandex.ru>

	* buffer.c (Fkill_buffer): When unchaining the marker,
Juanma Barranquero's avatar
Juanma Barranquero committed
805
	reset its buffer pointer to NULL (Bug#12652).
806

807 808 809 810 811 812
2012-10-17  Dmitry Antipov  <dmantipov@yandex.ru>

	Do not verify indirection counters of killed buffers (Bug#12579).
	* buffer.h (BUFFER_CHECK_INDIRECTION): New macro.
	* buffer.c (compact_buffer, set_buffer_internal_1): Use it.

813 814 815 816 817 818 819
2012-10-16  Dmitry Antipov  <dmantipov@yandex.ru>

	* alloc.c (Fmake_byte_code): Fix typo in comment.
	* print.c (print_interval): Define as static to match prototype.
	* indent.c (disptab_matches_widthtab, recompute_width_table):
	Convert to eassert.

820 821 822 823 824 825 826
2012-10-16  Dmitry Antipov  <dmantipov@yandex.ru>

	* editfns.c (get_system_name): Remove.
	* lisp.h (get_system_name): Remove prototype.
	* xrdb.c (getenv, getpwuid, getpwnam): Remove prototypes.
	(get_environ_db): Use Vsystem_name.  Avoid call to strlen.

827 828 829 830
2012-10-15  Daniel Colascione  <dancol@dancol.org>

	* dbusbind.c: Add comment explaining reason for previous change.

831 832 833 834 835 836 837
2012-10-15  Martin Rudalics  <rudalics@gmx.at>

	* window.c (Fwindow_end): Rewrite check whether cached position
	can be used (Bug#12600).
	(resize_frame_windows, grow_mini_window, shrink_mini_window):
	Set windows_or_buffers_changed.

838 839 840 841 842 843
2012-10-15  Daniel Colascione  <dancol@dancol.org>

	* dbusbind.c: Fix cygw32 build break when compiling with dbus
	enabled by undefining the symbol "interface", which the platform
	headers define to something incompatible.

844 845 846 847 848 849
2012-10-14  Daniel Colascione  <dancol@dancol.org>

	* image.c (init_tiff_functions, init_imagemagick_functions)
	(init_svg_functions): Fix cygw32 build break by using these
	functions only when WINDOWSNT _and_ HAVE_NTGUI.

850 851 852 853
2012-10-14  Jan Djärv  <jan.h.d@swipnet.se>

	* nsterm.m (ns_select): Count fd:s in writefs also (Bug#12422).

854 855 856 857
2012-10-13  Jan Djärv  <jan.h.d@swipnet.se>

	* gtkutil.c (xg_set_widget_bg): Divide by 65535 (Bug#12612).

858 859 860 861 862
2012-10-13  HANATAKA, Shinya  <bogytech@gmail.com>  (tiny change)

	* coding.c (detect_coding): Set coding->id before calling
	this->detector.

Andreas Schwab's avatar
Andreas Schwab committed
863 864 865 866
2012-10-13  Andreas Schwab  <schwab@linux-m68k.org>

	* fileio.c: Formatting fixes.

Paul Eggert's avatar
Paul Eggert committed
867 868 869 870 871 872 873 874 875 876 877 878 879
2012-10-13  Paul Eggert  <eggert@cs.ucla.edu>

	Fix some stat-related races.
	* fileio.c (Fwrite_region): Avoid race condition if a file is
	removed or renamed by some other process immediately after Emacs
	writes it but before Emacs stats it.  Do not assume that stat (or
	fstat) succeeds.
	* image.c (slurp_file): Resolve the file name with fopen + fstat
	rather than stat + fopen.
	(pbm_read_file) [0]: Remove unused code with stat race.
	* process.c (allocate_pty) [HAVE_PTYS && !PTY_ITERATION && !PTY_OPEN]:
	Remove ineffective code with stat race.

880 881 882 883
2012-10-12  Stefan Monnier  <monnier@iro.umontreal.ca>

	* doc.c (get_doc_string): Don't signal an error if the file is missing.

884 885 886 887 888 889 890 891 892 893 894
2012-10-12  Jan Djärv  <jan.h.d@swipnet.se>

	* nsterm.m (hold_event_q): New static variable.
	(EV_TRAILER, sendScrollEventAtLoc:fromEvent:): Call hold_event if
	! q_event_ptr.
	(hold_event): New function.
	(ns_read_socket): If hold_event_q have events, store them and
	return (Bug#12384).
	(setPosition:portion:whole:): Send SIGIO to ourselves if apploopnr
	is zero (Bug#12384).

895 896 897 898
2012-10-12  Juanma Barranquero  <lekktu@gmail.com>

	* makefile.w32-in ($(BLD)/w32select.$(O)): Update dependencies.

899 900
2012-10-12  Eli Zaretskii  <eliz@gnu.org>

901 902
	* makefile.w32-in ($(BLD)/fileio.$(O)): Add sys/file.h.

903 904 905 906 907 908
	* fileio.c (check_existing): New function.
	(make_temp_name, Ffile_exists_p, Ffile_writable_p): Call it
	instead of calling 'stat', when what's needed is to check whether
	a file exists.  This avoids expensive system calls on MS-Windows.
	(Bug#12587)

909
	* w32.c (init_environment): Call 'check_existing' instead of 'stat'.
910 911 912 913 914 915

	* lread.c (openp) [WINDOWSNT]: Call 'access' instead of 'stat' to
	determine whether a file exists and is not a directory.

	* lisp.h (check_existing): Add prototype.

916 917 918 919
2012-10-12  Jan Djärv  <jan.h.d@swipnet.se>

	* nsfont.m (nsfont_open): Remove font cache, it is not GC correct.

920 921 922 923
2012-10-12  Glenn Morris  <rgm@gnu.org>

	* buffer.c (Fset_buffer): Doc fix.  (Bug#12624)

924 925
2012-10-11  Stefan Monnier  <monnier@iro.umontreal.ca>

926 927
	* buffer.c (Fkill_buffer): Null out the overlay list(s) as well.

928 929
	* eval.c (Fautoload): Remember previous autoload status in load-history.

930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952
2012-10-11  Paul Eggert  <eggert@cs.ucla.edu>

	lread.c, macros.c, marker.c, menu.c, minibuf.c: Use bool for booleans.
	* lread.c (load_each_byte, new_backquote_flag, readchar)
	(read_filtered_event, lisp_file_lexically_bound_p)
	(safe_to_load_version, Fload, complete_filename_p, openp)
	(build_load_history, readevalloop, read_escape, read1)
	(string_to_number, read_vector, read_list):
	* macros.c (Fstart_kbd_macro):
	* marker.c (CONSIDER):
	* menu.c (parse_single_submenu, digest_single_submenu)
	(find_and_return_menu_selection, Fx_popup_menu):
	* minibuf.c (read_minibuf_noninteractive, read_minibuf)
	(Ftry_completion):
	* nsmenu.m (ns_update_menubar, runMenuAt:forFrame:keymaps:):
	(ns_menu_show):
	* xmenu.c (set_frame_menubar, create_and_show_popup_menu)
	(xmenu_show, xdialog_show):
	Use bool for booleans.
	* lread.c (safe_to_load_version): Rename from safe_to_load_p,
	as it's not a predicate.  All uses changed.  Omit unnecessary
	buffer termination.

953 954 955 956 957
2012-10-11  Dmitry Antipov  <dmantipov@yandex.ru>

	* editfns.c (save_excursion_save): Use nil if mark points to nowhere.
	(save_excursion_restore): Do not restore mark if it was not saved.

958 959
2012-10-11  Paul Eggert  <eggert@cs.ucla.edu>

960 961
	* marker.c (cached_modiff): EMACS_INT, not int.

962 963
	* w32select.c (waiting_for_input): Declare by including "keyboard.h"
	instead of having a wrong decl.
964 965
	* nsmenu.m (waiting_for_input): Remove wrong decl.

966 967
2012-10-10  Paul Eggert  <eggert@cs.ucla.edu>

968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015
	keyboard.c, keymap.c: Use bool for booleans.
	* dispnew.c (sit_for): Distinguish between 3-way display_option
	and boolean do_display.
	* keyboard.c (single_kboard, this_command_key_count_reset)
	(waiting_for_input, echoing, immediate_quit, input_pending)
	(interrupt_input, interrupts_deferred, pop_kboard)
	(temporarily_switch_to_single_kboard, ignore_mouse_drag_p)
	(command_loop_1, adjust_point_for_property)
	(safe_run_hooks_error, input_polling_used, read_char):
	(help_char_p, readable_events, kbd_buffer_events_waiting)
	(kbd_buffer_get_event, timer_check_2, make_lispy_event)
	(lucid_event_type_list_p, get_input_pending):
	(gobble_input, menu_separator_name_p, menu_bar_item)
	(parse_menu_item, parse_tool_bar_item, read_char_x_menu_prompt)
	(read_char_minibuf_menu_prompt, access_keymap_keyremap)
	(keyremap_step, test_undefined, read_key_sequence)
	(detect_input_pending, detect_input_pending_ignore_squeezables)
	(detect_input_pending_run_timers, requeued_events_pending_p)
	(quit_throw_to_read_char, Fset_input_interrupt_mode):
	* keymap.c (get_keymap, keymap_parent, keymap_memberp)
	(access_keymap_1, access_keymap, map_keymap, get_keyelt)
	(Fdefine_key, Flookup_key, struct accessible_keymaps_data)
	(accessible_keymaps_1, Fkey_description, push_key_description):
	(shadow_lookup, struct where_is_internal_data)
	(where_is_internal, Fwhere_is_internal, where_is_internal_1)
	(Fdescribe_buffer_bindings, describe_map_tree, struct describe_map_elt)
	(describe_map, describe_vector):
	* menu.c (single_menu_item):
	* nsmenu.m (ns_update_menubar):
	* process.c (wait_reading_process_output):
	* search.c (scan_buffer, scan_newline):
	Use bool for boolean.
	* keyboard.c (timers_run, swallow_events)
	(detect_input_pending_run_timers):
	* process.c (wait_reading_process_output):
	Use unsigned for counter where wraparound-on-overflow is desired,
	since unsigned is guaranteed to have that behavior and signed is not.
	(read_char): Use ptrdiff_t for string length.
	(get_input_pending): Remove first argument, since it was always
	the same pointer-to-int (now pointer-to-boolean) &input_pending,
	and behave as if it had that value.  Return new value of
	input_pending.  All callers changed.
	* keyboard.h (struct kboard): Use unsigned : 1 for boolean member
	immediate_echo.  Use ptrdiff_t for echo_after_prompt, since it's
	a string length.
	* keymap.c (push_key_description): Omit last arg, which was always 1.
	All callers changed.

1016 1017
	* regex.c (immediate_quit) [emacs]: Remove duplicate decl.

1018 1019 1020 1021 1022
2012-10-10  Juanma Barranquero  <lekktu@gmail.com>

	* makefile.w32-in ($(BLD)/dispnew.$(O), $(BLD)/indent.$(O))
	($(BLD)/term.$(O)): Update dependencies.

1023 1024 1025 1026 1027 1028
2012-10-10  Dmitry Antipov  <dmantipov@yandex.ru>

	* alloc.c (mark_object): Use meaningful PVEC_NORMAL_VECTOR.
	* lisp.h (enum pvec_type): Adjust comments and omit explicit
	initializer for PVEC_NORMAL_VECTOR.

Paul Eggert's avatar
Paul Eggert committed
1029 1030 1031 1032 1033 1034 1035
2012-10-10  Paul Eggert  <eggert@cs.ucla.edu>

	Clean out old termopts cruft.
	* termopts.h (flow_control, meta_key): Remove unused decls.
	* dispnew.c, indent.c, nsterm.m, term.c, xsettings.c, xsmfns.c:
	Don't include termopts.h.

1036 1037 1038 1039
2012-10-10  Dmitry Antipov  <dmantipov@yandex.ru>

	* alloc.c (gc_sweep): Use pointer-to-a-pointer loop for buffers.

1040 1041 1042 1043
2012-10-10  Paul Eggert  <eggert@cs.ucla.edu>

	* commands.h (immediate_quit): Remove duplicate decl.

1044 1045 1046 1047 1048
2012-10-09  Jan Djärv  <jan.h.d@swipnet.se>

	* nsfont.m (Vfonts_in_cache): Remove, not needed as font.c handles
	caching.
	(nsfont_open): Remove setting of Vfonts_in_cache.
Juanma Barranquero's avatar
Juanma Barranquero committed
1049
	(syms_of_nsfont): Remove initialization of Vfonts_in_cache.
1050

1051 1052
2012-10-09  Eli Zaretskii  <eliz@gnu.org>

1053 1054 1055 1056
	* w32fns.c (w32_last_error): Change the return value to DWORD, to
	match what GetLastError returns.  Explain why the function is
	needed.

1057 1058 1059
	* frame.c (delete_frame): Rename local variable 'tooltip_frame' to
	'is_tooltip_frame', to avoid confusion with its global namesake.

1060 1061 1062
2012-10-08  Daniel Colascione  <dancol@dancol.org>

	* xdisp.c (start_hourglass): Call w32_note_current_window when
1063 1064
	HAVE_NTGUI, not just WINDOWSNT, resolving a problem in the cygw32
	build that caused Emacs to display the hourglass cursor forever.
1065

Glenn Morris's avatar
Glenn Morris committed
1066 1067 1068 1069 1070
	* w32fns.c (Fx_display_color_cells): Instead of using NCOLORS,
	which is broken under remote desktop, calculate the number of
	colors available for a display based on the display's number of
	planes and number of bits per pixel per plane.  (bug#10397).

1071
2012-10-08  Jan Djärv  <jan.h.d@swipnet.se>
Glenn Morris's avatar
Glenn Morris committed
1072

1073 1074 1075 1076 1077
	* nsfont.m (Vfonts_in_cache): New variable.
	(nsfont_open): Use unsignedLongLongValue for cache in case wide ints
	are used.  Add cached fonts to Vfonts_in_cache.
	(syms_of_nsfont): Initialize and staticpro Vfonts_in_cache.

1078 1079
2012-10-08  Juanma Barranquero  <lekktu@gmail.com>

1080 1081
	* makefile.w32-in (LOCAL_FLAGS): Don't define HAVE_NTGUI, it's now
	in nt/config.nt.
1082 1083 1084
	(FONT_H): Define after FRAME_H.
	($(BLD)/emacs.$(O), $(BLD)/process.$(O), $(BLD)/w32heap.$(O)):
	Update dependencies.
1085

1086 1087
	* w32term.c: Remove leftover declaration of keyboard_codepage.

1088 1089
2012-10-08  Eli Zaretskii  <eliz@gnu.org>

1090 1091 1092 1093
	* makefile.w32-in (FONT_H): Add $(FRAME_H).
	(W32TERM_H): Add $(ATIMER_H) and $(FRAME_H).
	($(BLD)/emacs.$(O), $(BLD)/w32console.$(O)): Update dependencies.
	(GLOBAL_SOURCES): Add cygw32.c.
Glenn Morris's avatar
Glenn Morris committed
1094 1095 1096 1097 1098 1099
	($(BLD)/unexw32.$(O)):
	($(BLD)/w32.$(O)):
	($(BLD)/w32console.$(O)):
	($(BLD)/w32fns.$(O)):
	($(BLD)/w32heap.$(O)):
	($(BLD)/w32menu.$(O)):
1100
	($(BLD)/w32proc.$(O)): Add w32common.h.
1101

1102 1103 1104 1105
	* w32fns.c (w32_color_map_lookup, x_to_w32_color): Argument is now
	'const char *'.
	(x_to_w32_color): Don't modify the argument, modify a copy instead.

Daniel Colascione's avatar
Daniel Colascione committed
1106 1107 1108 1109 1110 1111 1112 1113 1114 1115
2012-10-08  Daniel Colascione  <dancol@dancol.org>

	* w32term.h (WM_EMACS_BRINGTOTOP, WM_EMACS_INPUT_READY)
	(WM_EMACS_END): Change WM_EMACS_BRINGTOTOP from 22 to 21 to close
	accidental message numbering hole.  Change other messages to
	match.

	* w32select.h (HAVE_W32SELECT): Remove.

	* w32select.c, w32proc.c, w32menu.c, w32console.c, w32.c: Include
Juanma Barranquero's avatar
Juanma Barranquero committed
1116
	w32common.h instead of w32heap.h.
Daniel Colascione's avatar
Daniel Colascione committed
1117 1118 1119 1120 1121 1122 1123 1124 1125 1126

	* w32heap.h (ROUND_UP, ROUND_DOWN, get_page_size)
	(get_allocation_unit, get_processor_type, get_w32_major_version)
	(get_w32_minor_version, sysinfo_cache, osinfo_cache)
	(w32_major_version, w32_minor_version, w32_build_number, OS_9X)
	(OS_NT, os_subtype, cache_system_info): Move declarations to
	w32common.

	* w32heap.c: Include w32common.h.
	(sysinfo_cache, syspage_mask, osinfo_cache, w32_major_version)
1127 1128
	(w32_minor_version, w32_build_number, w32_subtype):
	Remove duplicate definitions.
Daniel Colascione's avatar
Daniel Colascione committed
1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158

	* w32fns.c: Include w32common.h; include w32heap.h only in
	WINDOWSNT.

	(Fx_file_dialog): Clarify comment on GetOpenFileName structure.
	Use `report_file_error' instead of `error' in order to better
	inform users of what went wrong.  Increase NTGUI_UNICODE file
	dialog box file name length to 32k, the maximum allowed by the NT
	kernel.

	* w32common.h: New file.
	(ROUND_UP, ROUND_DOWN, get_page_size)
	(get_allocation_unit, get_processor_type, get_w32_major_version)
	(get_w32_minor_version, sysinfo_cache, osinfo_cache)
	(w32_major_version, w32_minor_version, w32_build_number, OS_9X)
	(OS_NT, os_subtype, cache_system_info): Move here.

	* unexw32.c, unexcw.c: Include w32common.h.

	* emacs.c (main): Use (defined (WINDOWSNT) || defined
	HAVE_NTGUI) instead of removed HAVE_W32SELECT to decide whether
	to call syms_of_w32select.

	* cygw32.h: Remove obsolete EXFUN declarations.

	* cygw32.c (Qutf_16_le): Rename to Qutf_16le.

	* Makefile.in (SOME_MACHINE_OBJECTS): Reverse accidental removal
	of w32inevt.o from SOME_MACHINE_OBJECTS.

1159 1160 1161 1162 1163
2012-10-08  Daniel Colascione  <dancol@dancol.org>

	* image.c: Permanent fix for JPEG compilation issue --- limit
	jpeglib `boolean' redefinition to Cygwin builds.

1164 1165
2012-10-08  Eli Zaretskii  <eliz@gnu.org>

1166 1167
	* image.c (CHECK_LIB_AVAILABLE): Remove, no longer used.

1168 1169 1170
	* emacs.c (DAEMON_MUST_EXEC) [HAVE_NTGUI]: Define this only on
	Cygwin.

1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238
2012-10-08  Daniel Colascione  <dancol@dancol.org>

	* xfaces.c, xdisp.c, window.c, w32xfns.c, w32term.h, w32term.c,
	w32select.h w32select.c, w32proc.c, w32menu.c, w32inevt.c,
	w32help.c, w32font.c, w32font.c, w32fns.c, w32console.c, w32.h,
	w32.c, unexw32.c, termhooks.h, process.c, menu.c, keyboard.h,
	keyboard.c, image.c, frame.h, frame.c, fontset.c, font.h, font.c,
	emacs.c, dispextern.h, cygw32.h, cygw32.c, conf_post.h,
	Makefile.in: use HAVE_NTGUI for W32 GUI and WINDOWSNT for the
	operating system.  defined(HAVE_NTGUI) && !defined(WINDOWSNT) is
	now a supported configuration.

	* Makefile.in: consolidate image variables into LIBIMAGE; add
	W32_OBJ and W32_LIBS. Compile new files.

	* conf_post.h:
	(_DebPrint) declare tracing facility for W32 debugging.  We need
	to unify tracing later.

	(NTGUI_UNICODE) Define when compiling for Cygwin to allow the
	unconditional use of W32 Unicode functions.  Cygwin runs only on
	100% Unicode operating systems.

	* cygw32.c: New file.  Define Cygwin-specific facilities.
	(Fcygwin_convert_path_to_windows)
	(Fcygwin_convert_path_from_windows): New user functions for
	accessing Cygwin path-munging routines.

	* cygw32.h: New file.
	(WCSDATA, to_unicode, from_unicode): Define facilities for storing
	UTF-16LE strings temporarily inside non-Lisp-visible string
	objects.

	(w32_strerror): Just what it says on the tin.

	* emacs.c: Make the NS fork-then-exec code for daemon-launching
	also run for Cygwin; both systems have the same problem with using
	GUI facilities in a forked child.  Also call syms_of_cygw32,
	syms_of_w32select in correct places.

	(DAEMON_MUST_EXEC): new macro defined to signal that a platform
	needs fork-then-exec for daemon launching.

	* font.h: Include frame.h.

	* image.c: Use the image library cache machinery only when we're
	compiling for native WINDOWSNT; Cygwin can use shared libraries
	like any other Unixlike system.

	* keyboard.c: Clarify a comment regarding the input loop.

	* menu.c: When NTGUI_UNICODE is defined, use Unicode menu
	functions directly instead of trying to detect at runtime that our
	host operating system supports them.  We make this change for two
	reasons: Cygwin lacks support for the multibyte character
	conversion functions used by the legacy menu code, and Cygwin
	never needs to rely on non-Unicode APIs.

	* unexw32.c (hinst): Declare extern.

	* w32.c: Change header order;
	(w32_strerror): Move to w32fns.c because we need it for
	non-WINDOWSNT builds.

	* w32.h: Add #error macro to make sure we don't include w32.h for
	Cygwin builds.  Remove w32select declarations.

	* w32console.c (w32_sys_ring_bell, Fset_message_beep): Move to
Juanma Barranquero's avatar
Juanma Barranquero committed
1239
	w32fns.c.  w32console.c is WINDOWSNT-only.
1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308

	* w32fns.c: Include cygw32.h or w32.h depending on CYGWIN; more
	NTGUI_UNICODE tweaks.  (See above.) Change _snprintf to the more
	POSIXy alternative.
	(faked_key, sysinfo_cache, osinfo_cahce, syspage_mask)
	(w32_major_version, w32_minor_version, w32_build_number)
	(os_subtype, sound_type): Define here
	(w32_defined_color): Make color parameter const for consistency
	with other _defined_color functions.
	(w32_createwindow): Unconditionally call w32_init_class instead of
	doing so only when hprevinst is non-NULL.  Plumbing hprevinst
	through the code is complex and unnecessary because class
	registration is practically free.
	(w32_name_of_message): New EMACSDEBUG-only function.
	(Fset_message_beep): Move here
	(Fx_open_connection): Require that the display name for Windows be
	"w32" for consistency, emacsclient disambiguation, and maybe, one
	day, multi-window-system support.
	(file_dialog_callback): NTGUI_UNICODE changes; encode and decode
	Cygwin files for W32 GUI facilities, since these clearly don't
	expect Cygwin names.
	(_DebPrint): Define.
	(w32_strerror, w32_console_toggle_lock_key, w32_kbd_mods_to_emacs)
	(w32_kbd_patch_key, w32_sys_ring_bell): Move here.
	(Ssystem_move_file_to_trash): Define only for native WINDOWSNT.
	(w32_last_error): Remove.

	* w32font.c: Define _strlwr to strlwr for non-WINDOWSNT builds.

	* w32heap.c (syspage_mask): Declare here.
	(cache_system_info): Remove.

	* w32inevt.c (faked_key): Define globally, not statically.
	(w32_kbd_mods_to_emacs, w32_kbd_patch_key, faked_key)
	(w32_console_toggle_lock_key): Move to w32fns.c.

	* w32menu.c: Include setjmp.h.  NTGUI_UNICODE changes throughout.

	* w32proc.c (_DebPrint): Move to w32fns.c.
	* w32select.c: Include string.h, stdio.h for Cygwin.
	* w32select.h: New File.

	* w32term.c: Include io.h for non-CYGWIN builds; needed for
	get_osfhandle.
	(w32_message_fd): New variable.  Under Cygwin, holds the file
	descriptor the system used to tell us about pending thread
	messages.

	(w32_init_term): Remove incorrect calls to fcntl and init_sigio
	that prevented compilation under non-WINDOWSNT systems.

	(w32_initialize): Open /dev/windows and assign it to
	w32_message_fd.  Provide w32 feature.

	* w32term.h: Include frame.h, atimer.h.  Declare various frame functions.
	(WM_EMACS_INPUT_READY): add.
	(prepend_msg, w32_message_fd): Declare globally.

	* w32xfns.c:
	(keyboard_handle): Use only when WINDOWSNT.
	(notify_msg_ready): New function.  Posts a message to the main
	thread's message queue under CYGWIN, which wakes up the main
	thread from select(2) by making the /dev/windows file descriptor
	ready.  Under WINDOWSNT, it sets an event the same way the old
	code did.

	(post, prepend_msg): Actually call notify_msg_ready instead of
	setting the input event directly.

1309 1310 1311 1312 1313 1314
2012-10-07  Eli Zaretskii  <eliz@gnu.org>

	* ralloc.c (relinquish): If a heap is ready to be relinquished,
	but it still has blocs in it, don't return it to the system,
	instead of aborting.  (Bug#12402)

Jan Djärv's avatar
Jan Djärv committed
1315 1316
2012-10-07  Jan Djärv  <jan.h.d@swipnet.se>

1317
	* nsterm.m (ns_dumpglyphs_image): Only draw slice of image (Bug#12506).
1318

1319 1320
	* nsterm.m (ns_update_auto_hide_menu_bar): Remove defintion of
	MAC_OS_X_VERSION_10_6.
1321 1322
	(syms_of_nsterm): Remove comment about Panther and above for
	ns-antialias-text.
1323 1324 1325 1326 1327 1328 1329
	* nsterm.h (MAC_OS_X_VERSION_10_3, onTiger): Remove.
	(EmacsApp): Remove check for >= MAC_OS_X_VERSION_10_4.
	(struct nsfont_info): Remove check for >= MAC_OS_X_VERSION_10_3.

	* nsselect.m (ns_string_from_pasteboard): Remove check for >=
	MAC_OS_X_VERSION_10_4.

1330 1331
	* nsmenu.m (fillWithWidgetValue:): Remove code for <
	MAC_OS_X_VERSION_10_2.
1332 1333 1334 1335 1336 1337

	* nsimage.m (setPixmapData, getPixelAtX, setAlphaAtX): Remove onTiger.

	* nsfns.m (Fns_list_services): Remove comment and check for OSX < 10.4.
	(ns_do_applescript): Remove check for >= MAC_OS_X_VERSION_10_4.

Jan Djärv's avatar
Jan Djärv committed
1338 1339
	* nsterm.m (ns_in_resize): Remove (Bug#12479).
	(ns_resize_handle_rect, mouseDown, mouseUp, mouseDragged): Remove.
1340 1341
	(ns_clear_frame, sendEvent, windowDidResize, drawRect:):
	Remove ns_in_resize check.
Jan Djärv's avatar
Jan Djärv committed
1342 1343 1344
	(ns_clear_frame_area): Remove resize handle code.

	* nsfns.m (ns_in_resize): Remove.
1345 1346
	(x_set_icon_name, ns_set_name, ns_set_name_as_filename):
	Remove ns_in_resize check.
Jan Djärv's avatar
Jan Djärv committed
1347

Paul Eggert's avatar
Paul Eggert committed
1348 1349 1350 1351 1352 1353 1354 1355 1356 1357
2012-10-07  Paul Eggert  <eggert@cs.ucla.edu>

	Improve sys_siglist detection.
	* sysdep.c (sys_siglist, init_signals): Use _sys_siglist if it's
	defined as a macro, as is done in Solaris.
	(sys_siglist_entries): New macro.
	(save_strsignal): Use it.
	* syssignal.h (safe_strsignal): Now ATTRIBUTE_CONST, to pacify
	GCC 4.7.2 on Fedora 17 with the fixed sys_siglist detection.

1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373
2012-10-06  Jan Djärv  <jan.h.d@swipnet.se>

	* nsfns.m (Fx_create_frame): Call x_default_parameter with
	fullscreen/Fullscreen.

	* nsterm.h (EmacsView): Rename tbar_height to tibar_height.
	tobar_height is new.

	* nsterm.m (x_make_frame_visible): Check for fullscreen.
	(ns_fullscreen_hook): Activate old style fullscreen with a timer.
	(ns_term_init): Set activateIgnoringOtherApps if old style fullscreen.
	(windowDidResize:): Check for correct window if old style fullscreen.
	Capitalize word in comment.  Remove incorrect comment.
	(initFrameFromEmacs:): tbar_height renamed tibar_height.
	(windowDidEnterFullScreen:): Toggle toolbar for fullscreen to fix
	error in drawing background.
Juanma Barranquero's avatar
Juanma Barranquero committed
1374
	(toggleFullScreen:): Remove comment.  Rearrange calls.
1375 1376 1377 1378
	Set toolbar values to zero, save old height in tobar_height.
	Restore tool bar height when leaving fullscreen.
	(canBecomeMainWindow): New function.

1379 1380 1381 1382
2012-10-06  Paul Eggert  <eggert@cs.ucla.edu>

	* keyboard.c (read_char): Remove unnecessary 'volatile's and label.

1383 1384
2012-10-05  Eli Zaretskii  <eliz@gnu.org>

1385 1386
	* w32proc.c (stop_timer_thread): Fix declaration of 'err'.

1387
	* w32.c (utime): Open the file with FILE_FLAG_BACKUP_SEMANTICS, so
1388 1389
	that time stamps of directories could also be changed.
	Don't request the too broad GENERIC_WRITE, only the more restrictive
1390 1391 1392 1393 1394
	FILE_WRITE_ATTRIBUTES access rights.

	* fileio.c (Fset_file_times): Special-case ignoring errors for
	directories only on MSDOS, not on MS-Windows.

1395
2012-10-05  Ikumi Keita  <ikumi@ikumi.que.jp>  (tiny change)
1396 1397 1398

	* minibuf.c (Fcompleting_read): Doc fix.  (Bug#12555)

1399 1400 1401 1402 1403
2012-10-04  Eli Zaretskii  <eliz@gnu.org>

	* w32.c (utime): Test for INVALID_HANDLE_VALUE, not for NULL, to
	see whether CreateFile failed.

1404 1405 1406 1407 1408 1409
2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>

	* profiler.c (handle_profiler_signal): Inhibit pending signals too,
	to avoid similar races.
	* keyboard.c (pending_signals): Now bool, not int.

1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420
	Port timers to OpenBSD, plus check for timer failures.
	OpenBSD problem reported by Han Boetes.
	* profiler.c (setup_cpu_timer): Check for failure of timer_settime
	and/or setitimer.
	(Fprofiler_cpu_stop): Don't assume HAVE_SETITIMER.
	* syssignal.h (HAVE_ITIMERSPEC): New macro.  This is for platforms
	like OpenBSD, which has timer_settime but does not declare it.
	OpenBSD does not define SIGEV_SIGNAL, so use that when deciding
	whether to use itimerspec-related primitives.  All uses of
	HAVE_TIMER_SETTIME replaced with HAVE_ITIMERSPEC.

1421 1422 1423 1424 1425
2012-10-02  Paul Eggert  <eggert@cs.ucla.edu>

	* profiler.c (handle_profiler_signal): Fix a malloc race
	that caused Emacs to hang on Fedora 17 when profiling Lisp.

1426 1427 1428 1429
2012-10-02  Jan Djärv  <jan.h.d@swipnet.se>

	* nsterm.m (windowDidEnterFullScreen): Remove fprintf.

1430 1431 1432 1433 1434
2012-10-02  Eli Zaretskii  <eliz@gnu.org>

	* w32proc.c (sys_wait): Declare 'signame' 'const char *', to be
	consistent with the change in return value of 'safe_strsignal'.

1435 1436
2012-10-02  Paul Eggert  <eggert@cs.ucla.edu>

1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448
	Prefer plain 'static' to 'static inline' (Bug#12541).
	* bidi.c (bidi_get_type, bidi_check_type, bidi_get_category)
	(bidi_set_sor_type, bidi_push_embedding_level)
	(bidi_pop_embedding_level, bidi_remember_char, bidi_copy_it)
	(bidi_cache_reset, bidi_cache_shrink, bidi_cache_fetch_state)
	(bidi_cache_search, bidi_cache_ensure_space)
	(bidi_cache_iterator_state, bidi_cache_find)
	(bidi_peek_at_next_level, bidi_set_paragraph_end)
	(bidi_count_bytes, bidi_char_at_pos, bidi_fetch_char)
	(bidi_explicit_dir_char, bidi_resolve_neutral_1):
	Now 'static', not 'static inline'.

1449 1450 1451 1452 1453 1454 1455 1456 1457
	Count overruns when profiling; change units to ns.
	* profiler.c (handle_profiler_signal): Count sampling intervals, not ms.
	Give extra weight to samples after overruns, to attempt to count
	the time more accurately.
	(setup_cpu_timer): Change sampling interval units from ms to ns, since
	the underlying primitives nominally do ns.
	(Fprofiler_cpu_start): Document the change.  Mention that
	the sampling intervals are only approximate.

1458 1459 1460 1461 1462 1463 1464 1465 1466
2012-10-02  Stefan Monnier  <monnier@iro.umontreal.ca>

	* frame.c (Fmake_terminal_frame): Prefer safer CONSP over !NILP.

	* coding.h (ENCODE_FILE, DECODE_FILE, DECODE_SYSTEM): Remove special
	case for the special 0 coding-system.

	* buffer.c (Fset_buffer_multibyte): Signal an error instead of widening.
	(Fmake_overlay): Remove redundant tests.
1467
	(fix_start_end_in_overlays): Remove redundant recentering.
1468

1469 1470 1471 1472 1473
2012-10-02  Juanma Barranquero  <lekktu@gmail.com>

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

1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492
2012-10-01  Paul Eggert  <eggert@cs.ucla.edu>

	Fix a malloc race condition involving strsignal.
	A signal can arrive in the middle of a malloc, and Emacs's signal
	handler can invoke strsignal, which can invoke malloc, which is
	not portable.  This race condition bug makes Emacs hang on GNU/Linux.
	Fix it by altering the signal handler so that it does not invoke
	strsignal.
	* emacs.c (shut_down_emacs): Use safe_strsignal, not strsignal.
	* process.c (status_message): Use const pointer, in case strsignal
	is #defined to safe_strsignal.
	* sysdep.c (sys_siglist, init_signals): Always define and
	initialize a substitute sys_siglist if the system does not define
	one, even if HAVE_STRSIGNAL.
	(safe_strsignal): Rename from strsignal.  Always define,
	using sys_siglist.  Return a const pointer.
	* syssignal.h (safe_strsignal): New decl.
	(strsignal) [!HAVE_STRSIGNAL]: Define in terms of safe_strsignal.

1493 1494 1495 1496 1497
2012-10-01  Eli Zaretskii  <eliz@gnu.org>

	* w32proc.c (timer_loop): Fix code that waits for timer
	expiration, to avoid high CPU usage.

1498 1499 1500 1501 1502
2012-10-01  Stefan Monnier  <monnier@iro.umontreal.ca>

	* fns.c (check_hash_table, get_key_arg, maybe_resize_hash_table)
	(sweep_weak_table): Remove redundant prototypes.

1503 1504 1505 1506 1507 1508
2012-10-01  Fabrice Popineau  <fabrice.popineau@gmail.com>

	* emacs.c: Move the inclusion of TERM_HEADER after including
	windows.h on WINDOWSNT.  This avoids compilation problems with
	MSVC.

1509 1510
2012-10-01  Eli Zaretskii  <eliz@gnu.org>

1511 1512 1513 1514 1515 1516 1517 1518 1519
	* unexw32.c (OFFSET_TO_RVA, RVA_TO_OFFSET)
	(RVA_TO_SECTION_OFFSET): Encode all macro arguments in parentheses.
	(RVA_TO_PTR): Cast the result of RVA_TO_OFFSET to 'unsigned char *',
	as the previous version used 'void *'.

	* ralloc.c (ROUNDUP): Fix last change.
	(MEM_ROUNDUP): Don't cast MEM_ALIGN, it is already of type
	'size_t'.