ChangeLog 532 KB
Newer Older
Glenn Morris's avatar
Glenn Morris committed
1
2012-07-13  BT Templeton  <bpt@hcoop.net>  (tiny change)
2 3 4

	* nsfont.m (ns_charset_covers): Don't abort if no bitmap (Bug#11853).

5 6
2012-07-13  Glenn Morris  <rgm@gnu.org>

7 8
	* s/usg5-4-common.h (NSIG_MINIMUM): Let configure set it.

9 10
	* s/gnu-linux.h, s/irix6-5.h: Let configure set ULIMIT_BREAK_VALUE.

11 12 13
	* process.c (init_process_emacs): Replace MIN_PTY_KERNEL_VERSION.
	* s/darwin.h (MIN_PTY_KERNEL_VERSION): Remove single-use macro.

14 15
2012-07-12  Glenn Morris  <rgm@gnu.org>

16
	* s/darwin.h (SYSTEM_PURESIZE_EXTRA): Move to configure.
17 18 19 20 21 22 23

	* process.c (init_process_emacs): Rename from init_process.
	The old name is also the name of a Mach system call.
	* lisp.h, emacs.c: Update for this name change.
	* nsgui.h, sysselect.h, s/darwin.h: Remove workaround that is no
	longer needed.

24 25 26 27 28 29 30 31 32 33 34 35 36 37
2012-07-12  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (insert_left_trunc_glyphs): Fix incorrect size in
	memmove call that removes glyphs covered by the left truncation
	glyph.  Improve commentary.
	(display_line): Fix display of continuation glyphs on GUI frames
	when the right fringe is turned off and variable-size fonts are
	used in the window.  Move the code that appends a stretch glyph to
	produce_special_glyphs, so that it could be used for truncation
	and continuation glyphs alike.
	(produce_special_glyphs) [HAVE_WINDOW_SYSTEM]: Produce a stretch
	glyph of a suitably computed width, to align the special glyphs at
	the window margin.  Code moved from display_line.  (Bug#11832)

38 39
2012-07-12  Glenn Morris  <rgm@gnu.org>

40 41 42 43 44
	* s/aix4-2.h, s/hpux10-20.h: Let configure set NO_EDITRES.

	* s/gnu-linux.h, s/hpux10-20.h:
	Do not unconditionally define HAVE_XRMSETDATABASE.

45 46
	* s/gnu-linux.h (UNIX98_PTYS): Let configure set it.

Paul Eggert's avatar
Paul Eggert committed
47 48 49 50 51 52 53 54
2012-07-12  Paul Eggert  <eggert@cs.ucla.edu>

	Fix typos that broke OS X build.
	Reported by Randal L. Schwartz in
	<http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00225.html>.
	* nsterm.m (ns_timeout): Add missing local decl.
	(ns_get_color): snprintf -> sprintf, to fix typo.

55 56
2012-07-12  Glenn Morris  <rgm@gnu.org>

57 58 59 60 61
	* src/s/aix4-2.h, src/s/cygwin.h, src/s/darwin.h:
	* src/s/gnu-linux.h, src/s/hpux10-20.h, src/s/irix6-5.h:
	* src/s/sol2-6.h, src/s/unixware.h, src/s/usg5-4-common.h:
	Move PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF to configure.

62 63 64
	* s/cygwin.h, s/darwin.h, s/gnu-linux.h, s/irix6-5.h:
	Move PTY_OPEN to configure.

65 66 67 68
	* s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/darwin.h:
	* s/gnu-linux.h, s/hpux10-20.h, s/irix6-5.h, s/template.h:
	* s/usg5-4-common.h: Move FIRST_PTY_LETTER, PTY_ITERATION to configure.

69 70 71 72 73 74 75
2012-07-12  Dmitry Antipov  <dmantipov@yandex.ru>

	Use empty_unibyte_string where applicable.
	* keyboard.c (parse_tool_bar_item): Use empty_unibyte_string.
	* lread.c (read1): Likewise.
	* xsettings.c (syms_of_xsettings): Likewise.

76 77
2012-07-12  Glenn Morris  <rgm@gnu.org>

78 79
	* s/cygwin.h (G_SLICE_ALWAYS_MALLOC):
	* s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN):
80 81 82 83 84 85 86 87
	* s/irix6-5.h (SETPGRP_RELEASES_CTTY, PREFER_VSUSP):
	* s/hpux10-20.h (RUN_TIME_REMAP):
	* s/bsd-common.h (TABDLY): Move to configure.

	* s/hpux10-20.h, s/sol2-6.h: Move XOS_NEEDS_TIME_H to configure.

	* s/bsd-common.h, s/darwin.h: Move TAB3 to configure.

88
	* s/aix4-2.h (BROKEN_FIONREAD, BROKEN_SIGAIO, BROKEN_SIGPTY)
89
	(BROKEN_SIGPOLL, BROKEN_GET_CURRENT_DIR_NAME): Let configure set them.
90 91

	* s/darwin.h (NO_ABORT, NO_MATHERR): Let configure set them.
92

93 94 95
	* s/bsd-common.h, s/cygwin.h, s/gnu-linux.h, s/irix6-5.h:
	* s/template.h: Move NARROWPROTO to configure.

96 97
2012-07-11  Glenn Morris  <rgm@gnu.org>

Glenn Morris's avatar
Glenn Morris committed
98 99 100
	* s/gnu-linux.h, s/sol2-6.h: No longer define POSIX,
	unused since 2011-01-17 change to systty.h.

101 102 103 104
	* s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/darwin.h, s/gnu-linux.h:
	* s/hpux10-20.h, s/template.h, s/usg5-4-common.h:
	Move HAVE_PTYS and HAVE_SOCKETS to configure.

105 106 107 108
2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>

	* s/sol2-6.h (HAVE_LIBKSTAT): Remove.  (Bug#11914)

109 110 111 112 113
2012-07-11  Glenn Morris  <rgm@gnu.org>

	* s/darwin.h, s/gnu-linux.h, s/template.h:
	Move INTERRUPT_INPUT to configure.

114 115 116 117 118 119
2012-07-11  Dmitry Antipov  <dmantipov@yandex.ru>

	Minor adjustments to interning code.
	* lisp.h (intern, intern_c_string): Redefine as static inline
	wrappers for intern_1 and intern_c_string_1, respectively.
	(intern_1, intern_c_string_1): Rename prototypes.
120 121
	* lread.c (intern_1, intern_c_string_1, oblookup): Simplify
	Vobarray checking.
122 123 124
	* font.c (font_intern_prop): Likewise.  Adjust comment.
	* w32font.c (intern_font_name): Likewise.

125 126
2012-07-11  Andreas Schwab  <schwab@linux-m68k.org>

127 128
	* gnutls.c (Fgnutls_boot): Properly parse :keylist argument.

129 130 131 132 133 134 135 136 137 138
	* coding.c (Fdefine_coding_system_internal): Use XCAR/XCDR instead
	of Fcar/Fcdr if possible.
	* font.c (check_otf_features): Likewise.
	* fontset.c (Fnew_fontset): Likewise.
	* gnutls.c (Fgnutls_boot): Likewise.
	* minibuf.c (read_minibuf): Likewise.
	* msdos.c (IT_set_frame_parameters): Likewise.
	* xmenu.c (Fx_popup_dialog): Likewise.
	* w32menu.c (Fx_popup_dialog): Likewise.

139 140
2012-07-11  Glenn Morris  <rgm@gnu.org>

141 142 143
	* s/bsd-common.h, s/cygwin.h: No need to undefine INTERRUPT_INPUT,
	since nothing has defined it on these platforms.

144 145 146
	* s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h:
	* s/irix6-5.h: Move SIGNALS_VIA_CHARACTERS to configure.

147 148 149 150
	* s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/darwin.h:
	* s/gnu-linux.h, s/hpux10-20.h, s/template.h, s/usg5-4-common.h:
	Move CLASH_DETECTION to configure.

Glenn Morris's avatar
Glenn Morris committed
151 152
	* s/gnu.h: Remove file, which is now empty.

153 154 155
	* s/gnu.h, s/gnu-linux.h:
	Move GNU_LIBRARY_PENDING_OUTPUT_COUNT to configure.

156 157 158 159 160 161
2012-07-11  John Wiegley  <johnw@newartisans.com>

	* alloc.c (mark_memory): Guard the "no_address_safety_analysis"
	function attribute, so we only use it if it exists in the
	compiler.

162 163 164 165 166 167 168
2012-07-11  Dmitry Antipov  <dmantipov@yandex.ru>

	Avoid call to strlen in fast_c_string_match_ignore_case.
	* search.c (fast_c_string_match_ignore_case): Change to use
	length argument.  Adjust users accordingly.
	* lisp.h (fast_c_string_match_ignore_case): Adjust prototype.

Paul Eggert's avatar
Paul Eggert committed
169 170
2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>

Paul Eggert's avatar
Paul Eggert committed
171 172 173 174
	Assume mkdir, rmdir.
	* sysdep.c (mkdir) [!HAVE_MKDIR]: Remove.
	* sysdep.c (rmdir) [!HAVE_RMDIR]: Remove.

Paul Eggert's avatar
Paul Eggert committed
175 176 177
	Assume rename.
	* sysdep.c (rename) [!HAVE_RENAME]: Remove.

Paul Eggert's avatar
Paul Eggert committed
178 179 180 181 182
	Assume perror.
	* s/hpux10-20.h (HAVE_PERROR): Remove.
	* sysdep.c (perror) [HPUX && !HAVE_PERROR]:
	Remove dummy definition, as this problem was obsolete long ago.

Paul Eggert's avatar
Paul Eggert committed
183 184 185
	Assume strerror.
	* sysdep.c (strerror) [!HAVE_STRERROR && !WINDOWSNT]: Remove.

186 187 188 189
2012-07-11  Dmitry Antipov  <dmantipov@yandex.ru>

	Avoid calls to strlen in font processing functions.
	* font.c (font_parse_name, font_parse_xlfd, font_parse_fcname)
190
	(font_open_by_name): Change to use length argument.  Adjust
191
	users accordingly.
192 193 194 195
	* font.h (font_open_by_name, font_parse_xlfd, font_unparse_xlfd):
	Adjust prototypes.
	* xfont.c (xfont_decode_coding_xlfd, font_unparse_xlfd):
	Change to return ptrdiff_t.
196 197 198 199
	(xfont_list_pattern, xfont_match): Use length returned by
	xfont_decode_coding_xlfd.
	* xfns.c (x_default_font_parameter): Omit useless xstrdup.

200 201
2012-07-11  Glenn Morris  <rgm@gnu.org>

202 203 204
	* s/darwin.h, s/freebsd.h, s/netbsd.h:
	Move DONT_REOPEN_PTY to configure.

205 206 207
	* sound.c (DEFAULT_SOUND_DEVICE) [!WINDOWSNT]:
	* s/netbsd.h (DEFAULT_SOUND_DEVICE): Let configure set it.

208 209
2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>

210 211 212
	Remove "#define unix" that is no longer needed (Bug#11905).
	* s/aix4-2.h (unix): Remove; no longer needed.

213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239
	EMACS_TIME simplification (Bug#11875).
	This replaces macros (which typically do not work in GDB)
	with functions, typedefs and enums, making the code easier to debug.
	The functional style also makes code easier to read and maintain.
	* systime.h: Include <sys/time.h> on all hosts, not just if
	WINDOWSNT, since 'struct timeval' is needed in general.
	(EMACS_TIME): Now a typedef, not a macro.
	(EMACS_TIME_RESOLUTION, LOG10_EMACS_TIME_RESOLUTION): Now constants,
	not macros.
	(EMACS_SECS, EMACS_NSECS, EMACS_TIME_SIGN, EMACS_TIME_VALID_P)
	(EMACS_TIME_FROM_DOUBLE, EMACS_TIME_TO_DOUBLE, EMACS_TIME_EQ)
	(EMACS_TIME_NE, EMACS_TIME_GT, EMACS_TIME_GE, EMACS_TIME_LT)
	(EMACS_TIME_LE): Now functions, not macros.
	(EMACS_SET_SECS, EMACS_SET_NSECS, EMACS_SET_SECS_NSECS)
	(EMACS_SET_USECS, EMACS_SET_SECS_USECS): Remove these macros,
	which are not functions.  All uses rewritten to use:
	(make_emacs_time): New function.
	(EMACS_SECS_ADDR, EMACS_SET_INVALID_TIME, EMACS_GET_TIME)
	(EMACS_ADD_TIME, EMACS_SUB_TIME): Remove these macros, which are
	not functions.  All uses rewritten to use the following, respectively:
	(emacs_secs_addr, invalid_emacs_time, get_emacs_time)
	(add_emacs_time, sub_emacs_time): New functions.
	* atimer.c: Don't include <sys/time.h>,	as "systime.h" does this.
	* fileio.c (Fcopy_file):
	* xterm.c (XTflash): Get the current time closer to when it's used.
	* makefile.w32-in ($(BLD)/atimer.$(O)): Update dependencies.

240 241
	* bytecode.c (targets): Suppress -Woverride-init warnings.

242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273
	Simplify by avoiding confusing use of strncpy etc.
	* doc.c (Fsnarf_documentation):
	* fileio.c (Ffile_name_directory, Fsubstitute_in_file_name):
	* frame.c (Fmake_terminal_frame):
	* gtkutil.c (get_utf8_string):
	* lread.c (openp):
	* nsmenu.m (ns_update_menubar):
	* regex.c (regerror):
	Prefer memcpy to strncpy and strncat when either will do.
	* fileio.c (Fsubstitute_in_file_name):
	* keyboard.c (MULTI_LETTER_MOD, parse_modifiers_uncached)
	(menu_separator_name_p):
	* nsmenu.m (ns_update_menubar):
	Prefer memcmp to strncmp when either will do.
	* nsterm.m: Include <ftoastr.h>.
	(ns_get_color):
	* s/gnu-linux.h, s/sol2-6.h, s/unixware.h (PTY_TTY_NAME_SPRINTF):
	Prefer snprintf to strncpy.
	* nsterm.m (ns_term_init):
	* widget.c (set_frame_size) [0]: Prefer xstrdup to xmalloc + strncpy.
	* nsterm.m (ns_term_init):
	Avoid the need for strncpy, by using build_string or
	make_unibyte_string directly.  Use dtoastr, not snprintf.
	* process.c (Fmake_network_process): Diagnose service names that
	are too long, rather than silently truncating them or creating
	non-null-terminated names.
	(Fnetwork_interface_info): Likewise, for interface names.
	* sysdep.c (system_process_attributes) [GNU_LINUX]:
	Prefer sprintf to strncat.
	* xdisp.c (debug_method_add) [GLYPH_DEBUG]:
	Prefer vsnprintf to vsprintf + strncpy.

274 275 276 277 278
2012-07-10  Glenn Morris  <rgm@gnu.org>

	* dispnew.c (PENDING_OUTPUT_COUNT) [!__GNU_LIBRARY__]:
	Clarify fallback case.

279 280 281 282 283
2012-07-10  Dmitry Antipov  <dmantipov@yandex.ru>

	Use XCAR and XCDR instead of Fcar and Fcdr where possible.
	* callint.c, coding.c, doc.c, editfns.c, eval.c, font.c, fontset.c,
	* frame.c, gnutls.c, minibuf.c, msdos.c, textprop.c, w32fns.c,
284
	* w32menu.c, window.c, xmenu.c: Change to use XCAR and XCDR
285 286
	where argument type is known to be a Lisp_Cons.

Tom Tromey's avatar
Tom Tromey committed
287 288 289 290 291 292 293 294
2012-07-10  Tom Tromey  <tromey@redhat.com>

	* bytecode.c (BYTE_CODE_THREADED): New macro.
	(BYTE_CODES): New macro.  Replaces all old byte-code defines.
	(enum byte_code_op): New type.
	(CASE, NEXT, FIRST, CASE_DEFAULT, CASE_ABORT): New macros.
	(exec_byte_code): Use them.  Use token threading when applicable.

295 296 297 298 299 300 301 302 303 304 305 306 307 308
2012-07-10  Dmitry Antipov  <dmantipov@yandex.ru>

	Optimize pure C strings initialization.
	* lisp.h (make_pure_string): Fix prototype.
	(build_pure_c_string): New function, defined as static inline.  This
	provides a better opportunity to optimize away calls to strlen when
	the function is called with compile-time constant argument.
	* alloc.c (make_pure_c_string): Fix comment.  Change to add nchars
	argument, adjust users accordingly.  Use build_pure_c_string where
	appropriate.
	* buffer.c, coding.c, data.c, dbusbind.c, fileio.c, fontset.c, frame.c,
	* keyboard.c, keymap.c, lread.c, search.c, syntax.c, w32fns.c, xdisp.c,
	* xfaces.c, xfns.c, xterm.c: Use build_pure_c_string where appropriate.

309 310 311 312 313 314 315
2012-07-10  Dmitry Antipov  <dmantipov@yandex.ru>

	Avoid calls to strlen in miscellaneous functions.
	* buffer.c (init_buffer): Use precalculated len, adjust if needed.
	* font.c (Ffont_xlfd_name): Likewise.  Change to call make_string.
	* lread.c (openp): Likewise.

316 317 318 319 320 321 322
2012-07-10  Dmitry Antipov  <dmantipov@yandex.ru>

	Avoid calls to strlen in path processing functions.
	* fileio.c (file_name_as_directory): Add comment.  Change to add
	srclen argument and return the length of result.  Adjust users
	accordingly.
	(directory_file_name): Fix comment.  Change to add srclen argument,
323
	swap 1st and 2nd arguments to obey the common convention.  Adjust
324 325 326
	users accordingly.
	* filelock.c (fill_in_lock_file_name): Avoid calls to strlen.

327 328
2012-07-10  Glenn Morris  <rgm@gnu.org>

329 330 331
	* s/cygwin.h, s/darwin.h, s/freebsd.h, s/netbsd.h, s/unixware.h:
	Move PENDING_OUTPUT_COUNT definition to configure.

332 333 334 335
	* s/irix6-5.h (DATA_START, DATA_SEG_BITS):
	* s/hpux10-20.h (DATA_SEG_BITS, DATA_START):
	* s/gnu.h (DATA_START): Move definitions to configure.

336 337 338
	* s/irix6-5.h (SETUP_SLAVE_PTY, PTY_NAME_SPRINTF): Drop ifdef guards.
	We include usg5-4-common.h, which defines them both.

339 340 341
	* s/gnu.h: Don't include fcntl.h (every file in Emacs that uses
	O_RDONLY already includes it).

342 343 344 345 346 347 348 349
	Stop ns builds setting the EMACSLOADPATH environment variable.
	* nsterm.m (ns_load_path): Rename from ns_init_paths.
	Now it does not set EMACSLOADPATH, just returns the load-path string.
	* nsterm.h: Update accordingly.
	* lread.c [HAVE_NS]: Include nsterm.h.
	(init_lread) [HAVE_NS]: Use ns_load_path.
	* emacs.c (main) [HAVE_NS]: No longer call ns_init_paths.

350 351
2012-07-09  Glenn Morris  <rgm@gnu.org>

352 353 354
	* s/gnu.h (SIGNALS_VIA_CHARACTERS): No need to define it here,
	since the included bsd-common.h does so.

355 356 357 358 359 360 361
	Stop ns builds setting the EMACSPATH environment variable.
	* nsterm.m (ns_exec_path): New function, split from ns_init_paths.
	(ns_init_paths): Do not set EMACSPATH.
	* nsterm.h (ns_exec_path): Add it.
	* callproc.c (init_callproc_1, init_callproc) [HAVE_NS]:
	Use ns_exec_path.

362 363
	* nsterm.m, nsterm.h (ns_etc_directory): Fix type, empty return.

364 365
2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>

366 367 368
	* process.c (wait_reading_process_output): 'waitchannels' was unset
	when read_kbd || !NILP (wait_for_cell); fix this.

369 370 371 372 373 374 375 376 377 378 379 380 381 382
	Add GCC-style 'const' attribute to functions that can use it.
	* character.h (char_resolve_modifier_mask):
	* keyboard.h (make_ctrl_char):
	* lisp.h (multibyte_char_to_unibyte, multibyte_char_to_unibyte_safe)
	(init_character_once, next_almost_prime, init_fns, init_image)
	(flush_pending_output, init_sound):
	* mem-limits.h (start_of_data):
	* menu.h (finish_menu_items):
	Add ATTRIBUTE_CONST.
	* emacs.c (DEFINE_DUMMY_FUNCTION):
	Declare the dummy function with ATTRIBUTE_CONST.
	* lisp.h (Fbyteorder, Fmax_char, Fidentity):
	Add decls with ATTRIBUTE_CONST.

383 384 385 386 387
	Minor improvements to make_formatted_string.
	* alloc.c (make_formatted_string): Prefer int to ptrdiff_t
	where int is good enough, as vsprintf returns an int.
	* lisp.h (make_formatted_string): Add ATTRIBUTE_FORMAT_PRINTF.

388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405
2012-07-09  Dmitry Antipov  <dmantipov@yandex.ru>

	Use make_formatted_string to avoid double length calculation.
	* lisp.h (make_formatted_string): New prototype.
	* alloc.c (make_formatted_string): New function.
	* buffer.c (Fgenerate_new_buffer_name): Use it.
	* dbus.c (syms_of_dbusbind): Likewise.
	* editfns.c (Fcurrent_time_zone): Likewise.
	* filelock.c (get_boot_time): Likewise.
	* frame.c (make_terminal_frame, set_term_frame_name)
	(x_report_frame_params): Likewise.
	* image.c (gs_load): Likewise.
	* minibuf.c (get_minibuffer): Likewise.
	* msdos.c (dos_set_window_size): Likewise.
	* process.c (make_process): Likewise.
	* xdisp.c (ensure_echo_area_buffers): Likewise.
	* xsettings.c (apply_xft_settings): Likewise.

406 407 408 409 410 411 412 413 414
2012-07-09  Glenn Morris  <rgm@gnu.org>

	Stop ns builds polluting the environment with EMACSDATA, EMACSDOC.
	* nsterm.m (ns_etc_directory): New function, split from ns_init_paths.
	(ns_init_paths): Do not set EMACSDATA, EMACSDOC.
	* nsterm.h (ns_etc_directory): Add it.
	* callproc.c [HAVE_NS]: Include nsterm.h.
	(init_callproc_1, init_callproc) [HAVE_NS]: Use ns_etc_directory.

415 416 417 418 419 420 421 422 423
2012-07-09  Dmitry Antipov  <dmantipov@yandex.ru>

	Move marker debugging code under MARKER_DEBUG.
	* marker.c (MARKER_DEBUG): Move marker debugging code under
	#ifdef MARKER_DEBUG because byte_char_debug_check is too slow
	for bootstrap with --enable-checking (~3x slowdown reported
	by Juanma Barranquero <lekktu@gmail.com>).
	(verify_bytepos): Move under #ifdef MARKER_DEBUG.

424 425 426 427 428
2012-07-08  Paul Eggert  <eggert@cs.ucla.edu>

	* systime.h (EMACS_SUB_TIME): Clarify behavior with unsigned time_t.
	See <http://bugs.gnu.org/11825#29>.

429 430 431 432
2012-07-08  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (fill_glyphless_glyph_string): If the face of the glyph
	has no font, use the frame's font.  (Bug#11813)
433 434 435 436 437 438 439 440
	(display_line): Add commentary about displaying truncation glyphs
	on GUI frames.
	(produce_special_glyphs): Move here from term.c.

	* term.c (produce_special_glyphs): Move to xdisp.c.

	* dispextern.h (produce_special_glyphs): Move prototype to xdisp.c
	section.
441

442 443
2012-07-07  Andreas Schwab  <schwab@linux-m68k.org>

444 445 446
	* xdisp.c (display_line): Avoid warning about implicit declaration
	of FRAME_FONT.

447 448
	* frame.c (get_frame_param): Define only if HAVE_WINDOW_SYSTEM.

449 450
	* lisp.h: Remove empty conditional.

451 452
2012-07-07  Paul Eggert  <eggert@cs.ucla.edu>

453 454
	* lread.c (load_path_check): Now static.

455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471
	Fix some minor --with-ns problems found by static checking.
	* frame.c (Ftool_bar_pixel_width) [!FRAME_TOOLBAR_WIDTH]:
	(x_set_font) [!HAVE_X_WINDOWS]:
	* image.c (xpm_load_image) [HAVE_NS]:
	(x_to_xcolors) [!HAVE_X_WINDOWS && !HAVE_NTGUI]:
	(x_disable_image) [!HAVE_NS && !HAVE_NTGUI]:
	Remove unused local.
	(Fx_parse_geometry) [HAVE_NS]: Don't return garbage.
	(xpm_load_image) [HAVE_NS && !HAVE_XPM]: Remove unused label.
	* image.c (x_create_bitmap_from_file) [HAVE_NS]:
	(xpm_load_image, xpm_load) [HAVE_NS && !HAVE_XPM]:
	* nsselect.m (symbol_to_nsstring, ns_string_to_pasteboard_internal):
	* xfaces.c (Fx_load_color_file) [!HAVE_X_WINDOWS]:
	Fix pointer signedness problem.
	* xfaces.c (FRAME_X_FONT_TABLE):
	* xterm.h (FRAME_X_FONT_TABLE): Remove unused, incompatible macros.

472 473 474 475 476 477 478 479 480 481 482
2012-07-07  Glenn Morris  <rgm@gnu.org>

	* lread.c (load_path_check): New function, split from init_lread.
	(init_lread): Reorganize.  Motivation:
	If EMACSLOADPATH is set, check/warn about that rather than the
	defaults, which we are not going to use.  Hence we can remove
	the turn_off_warning and WINDOWSNT || HAVE_NS tests.
	Don't warn if site-lisp directories are missing.
	If not installed, start from a blank load-path, since
	PATH_LOADSEARCH refers to the eventual installation directories.

483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504
2012-07-07  Eli Zaretskii  <eliz@gnu.org>

	Support truncation and continuation glyphs on GUI frames, when
	fringes are disabled.  (Bug#11832)
	* xdisp.c (init_iterator): Get dimensions of truncation and
	continuation glyphs even if on GUI frames.  Adjust
	it->last_visible_x on GUI frames when the left or right fringes,
	or both, are absent.
	(start_display, move_it_in_display_line_to): Handle the case of a
	GUI frame without a fringe to display continuation or truncation
	glyphs.
	(insert_left_trunc_glyphs): Support GUI frames: make sure
	truncation glyphs overwrite enough glyphs from the current line to
	have sufficient space in pixels.
	(display_line): Support truncation and continuation glyphs on GUI
	frames.  If some spare pixels are left on the line after inserting
	the truncation glyphs, fill that space with a stretch glyph of a
	suitably computed width.

	* term.c (produce_special_glyphs): Call PRODUCE_GLYPHS, not
	produce_glyphs, to support GUI sessions.

505 506
2012-07-07  Paul Eggert  <eggert@cs.ucla.edu>

507 508
	* sysdep.c (ULLONG_MAX): Define if not already defined (Bug#11781).

509 510
	* sysdep.c (list_system_processes): Port to NetBSD-current (Bug#11797).

511 512 513 514 515 516 517 518 519 520 521 522
	Do not require float-time's arg to fit in time_t (Bug#11825).
	This works better on hosts where time_t is unsigned, and where
	float-time is applied to the (negative) difference between two times.
	* editfns.c (decode_time_components): Last arg is now double *,
	not int *, and means to store all the result as a double, without
	worrying about whether the seconds part fits in time_t.
	All callers changed.
	(lisp_time_argument): Remove last int * arg, as it's no longer needed.
	All callers changed.
	(Ffloat_time): Do not fail merely because the specified time falls
	outside of time_t range.

523 524 525 526 527 528
2012-07-07  Glenn Morris  <rgm@gnu.org>

	* s/darwin.h (HAVE_RES_INIT, HAVE_LIBRESOLV):
	* s/hpux10-20.h (HAVE_RINT, HAVE_RANDOM):
	* s/unixware.h (HAVE_GETWD): Move undefs to configure (effectively).

529 530 531 532 533 534 535
2012-07-07  Juanma Barranquero  <lekktu@gmail.com>

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

	* s/ms-w32.h [_MSC_VER]: Remove strcasecmp, strncasecmp.

536 537
2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>

538 539 540 541 542 543 544
	Use c_strcasecmp for ASCII case-insensitive comparison (Bug#11786).
	* dispextern.h, nsfns.m, nsterm.m: Include <c-strcase.h>.
	* dispextern.h (xstrcasecmp): Rewrite using c_strcasecmp.
	* nsfns.m (x_get_string_resource): Use c_strncasecmp, not strncasecmp.
	* nsterm.m (ns_default): Use c_strcasecmp, not strcasecmp.
	* xfaces.c (xstrcasecmp) [!HAVE_STRCASECMP]: Remove.

545 546
	* xfont.c (compare_font_names): Redo to omit the need for casts.

Andreas Schwab's avatar
Andreas Schwab committed
547 548
2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>

549 550 551
	* xfns.c (Fx_change_window_property): Doc fix.
	* w32fns.c (Fx_change_window_property): Doc fix.

Andreas Schwab's avatar
Andreas Schwab committed
552 553 554 555
	* w32fns.c (Fx_window_property): Accept the same arguments as the
	X Windows version.  Doc fix.
	* xfns.c (Fx_window_property): Doc fix.  (Bug#11870)

556 557 558 559 560 561 562
2012-07-06  Juanma Barranquero	<lekktu@gmail.com>
	    Eli Zaretskii  <eliz@gnu.org>

	* s/ms-w32.h: Settings not specific to Windows moved to nt/config.nt.
	Windows-specific code from nt/config.nt moved here.
	Obsolete settings removed.

563 564 565 566 567 568 569
2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>

	* process.c: Avoid unnecessary calls to gettime.
	(wait_reading_process_output): Don't get the time of day
	when gobbling data immediately and not waiting, as there's no need
	for it in that case.  This removes a FIXME.

570 571 572 573 574
2012-07-06  Jan Djärv  <jan.h.d@swipnet.se>

	* gtkutil.c (xg_event_is_for_scrollbar): Assign gwin when HAVE_GTK3
	is defined (Bug#11768).

Dmitry Antipov's avatar
Dmitry Antipov committed
575 576 577 578 579
2012-07-06  Dmitry Antipov  <dmantipov@yandex.ru>

	Fix marker debugging code.
	* marker.c (byte_char_debug_check): Do not perform the check
	if buffer is not multibyte.
Juanma Barranquero's avatar
Juanma Barranquero committed
580 581
	(buf_charpos_to_bytepos, buf_bytepos_to_charpos):
	Call byte_char_debug_check with correct arguments.
Dmitry Antipov's avatar
Dmitry Antipov committed
582

583 584 585
2012-07-06  Dmitry Antipov  <dmantipov@yandex.ru>

	Compile marker debugging code only if ENABLE_CHECKING is defined.
Juanma Barranquero's avatar
Juanma Barranquero committed
586 587
	* marker.c (byte_char_debug_check, count_markers):
	Use only if ENABLE_CHECKING is defined.
588 589 590 591
	(byte_debug_flag): Remove.
	(CONSIDER, buf_charpos_to_bytepos, buf_bytepos_to_charpos):
	Always call byte_char_debug_check if ENABLE_CHECKING is defined.

592 593
2012-07-06  Dmitry Antipov  <dmantipov@yandex.ru>

594 595 596 597 598 599 600 601 602 603 604 605
	Avoid code repetition in marker-related functions.
	* marker.c (attach_marker): New function.
	(Fset_marker, set_marker_restricted, set_marker_both)
	(set_marker_restricted_both): Use it.
	(Fset_marker, set_marker_restricted, Fbuffer_has_markers_at):
	Consistently rename charno to charpos.
	(marker_position): Add eassert.
	(marker_byte_position): Convert to eassert.

2012-07-06  Dmitry Antipov  <dmantipov@yandex.ru>

	Simplify list operations in unchain_overlay and unchain_marker.
606
	* buffer.c (unchain_overlay): Simplify.  Add comment.
607
	* marker.c (unchain_marker): Simplify.  Fix comments.
608

609 610 611 612 613 614 615 616 617 618 619 620 621
2012-07-06  Dmitry Antipov  <dmantipov@yandex.ru>

	Introduce fast path for the widely used marker operation.
	* alloc.c (build_marker): New function.
	* lisp.h (build_marker): New prototype.
	* buffer.c (clone_per_buffer_values, Fmake_indirect_buffer): Use it.
	* composite.c (autocmp_chars): Likewise.
	* editfns.c (buildmark): Remove.
	(Fpoint_marker, Fpoint_min_marker, Fpoint_max_marker)
	(save_restriction_save): Use build_marker.
	* marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos): Likewise.
	* window.c (save_window_save): Likewise.

622 623 624 625 626 627 628 629
2012-07-06  Dmitry Antipov  <dmantipov@yandex.ru>

	Do not use Fdelete_overlay in delete_all_overlays
	to avoid redundant calls to unchain_overlay.
	* buffer.c (drop_overlay): New function.
	(delete_all_overlays, Fdelete_overlay): Use it.
	* minibuf.c (get_minibuffer): Fix comment.

Paul Eggert's avatar
Paul Eggert committed
630 631 632 633 634 635 636 637 638 639
2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>

	Port to OpenBSD 5.1 amd64.
	* sysdep.c [BSD_SYSTEM]: Include <sys/param.h> before <sys/sysctl.h>.
	This is needed for OpenBSD, and should be harmless on all BSD systems.
	Also, include <sys/sysctl.h>, as it should be available on all
	BSD_SYSTEM hosts given that we're already calling sysctl in that case.
	(list_system_processes) [__OpenBSD__]: Use DARWIN_OS style mib, but
	use p_pid member, not kp_proc.pid.

640 641 642 643
2012-07-06  Glenn Morris  <rgm@gnu.org>

	* Makefile.in (emacs$(EXEEXT)): Don't check for load-path shadows.

644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668
2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>

	More xmalloc and related cleanup.
	* alloc.c, bidi.c, buffer.c, buffer.h, bytecode.c, callint.c:
	* callproc.c, charset.c, coding.c, composite.c, data.c, dispnew.c:
	* doc.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fns.c:
	* font.c, fontset.c, frame.c, fringe.c, ftfont.c, ftxfont.c, gmalloc.c:
	* gtkutil.c, image.c, keyboard.c, keymap.c, lread.c, macros.c, menu.c:
	* nsfns.m, nsfont.m, nsmenu.m, nsterm.m, print.c, process.c, ralloc.c:
	* regex.c, region-cache.c, scroll.c, search.c, sound.c, syntax.c:
	* sysdep.c, term.c, termcap.c, unexmacosx.c, window.c, xdisp.c:
	* xfaces.c, xfns.c, xftfont.c, xgselect.c, xmenu.c, xrdb.c, xselect.c:
	* xterm.c:
	Omit needless casts involving void * pointers and allocation.
	Prefer "P = xmalloc (sizeof *P)" to "P = xmalloc (sizeof (TYPE_OF_P))",
	as the former is more robust if P's type is changed.
	Prefer xzalloc to xmalloc + memset 0.
	Simplify malloc-or-realloc to realloc.
	Don't worry about xmalloc returning a null pointer.
	Prefer xstrdup to xmalloc + strcpy.
	* editfns.c (Fmessage_box): Grow message_text by at least 80 when
	growing it.
	* keyboard.c (apply_modifiers_uncached): Prefer local array to
	alloca of a constant.

669 670 671 672 673 674 675
2012-07-05  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (display_line): Fix horizontal pixel coordinates when
	hscroll is larger than the line width.  Fixes long and futile
	looping inside extend_face_to_end_of_line (on a TTY) producing
	glyphs that are not needed and thrown away.

676 677 678 679 680
2012-07-05  Dmitry Antipov  <dmantipov@yandex.ru>

	* marker.c (set_marker_restricted_both): Simplify by using
	clip_to_bounds.

681 682 683 684
2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>

	* editfns.c (region_limit): Simplify by using clip_to_bounds.

685 686 687 688 689 690 691 692 693
2012-07-05  Jan Djärv  <jan.h.d@swipnet.se>

	* gtkutil.c (gtk_scrollbar_new, gtk_box_new): Define when HAVE_GTK3 is
	not defined (Bug#11768).
	(xg_create_frame_widgets): Use gtk_plug_new_for_display (Bug#11768).
	(xg_create_frame_widgets, create_dialog, xg_get_file_with_chooser)
	(make_widget_for_menu_item, xg_make_tool_item): Use gtk_box_new
	followed by gtk_box_set_homogeneous (Bug#11768).
	(xg_update_menu_item): Use GTK_IS_BOX (Bug#11768).
Juanma Barranquero's avatar
Juanma Barranquero committed
694 695
	(update_theme_scrollbar_width, xg_create_scroll_bar):
	Use gtk_scrollbar_new (Bug#11768).
696 697 698
	(xg_event_is_for_scrollbar): Use Gdk Device functions for HAVE_GTK3.
	(is_box_type): New function (Bug#11768).
	(xg_tool_item_stale_p): Call is_box_type.
Paul Eggert's avatar
Paul Eggert committed
699
	(xg_initialize): Get settings by calling gtk_settings_get_for_screen
700 701
	with default display (Bug#11768).

702 703 704 705 706 707 708
2012-07-05  Eli Zaretskii  <eliz@gnu.org>

	* xdisp.c (window_hscroll_limited): New function.
	(pos_visible_p, init_iterator): Use it to avoid overflow of pixel
	coordinates when window's hscroll is set to insanely large
	values.  (Bug#11857)

709 710 711 712 713
2012-07-05  Juanma Barranquero  <lekktu@gmail.com>

	* makefile.w32-in ($(BLD)/dired.$(O), $(BLD)/fileio.$(O)): Fix typo.
	($(BLD)/terminal.$(O), $(BLD)/syntax.$(O)): Update dependencies.

Dmitry Antipov's avatar
Dmitry Antipov committed
714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769
2012-07-05  Dmitry Antipov  <dmantipov@yandex.ru>

	Cleanup xmalloc.
	* lisp.h (xzalloc): New prototype.  Omit needless casts.
	* alloc.c (xzalloc): New function.  Omit needless casts.
	* charset.c: Omit needless casts.  Convert all calls to
	xmalloc with following memset to xzalloc.
	* dispnew.c: Likewise.
	* fringe.c: Likewise.
	* image.c: Likewise.
	* sound.c: Likewise.
	* term.c: Likewise.
	* w32fns.c: Likewise.
	* w32font.c: Likewise.
	* w32term.c: Likewise.
	* xfaces.c: Likewise.
	* xfns.c: Likewise.
	* xterm.c: Likewise.
	* atimer.c: Omit needless casts.
	* buffer.c: Likewise.
	* callproc.c: Likewise.
	* ccl.c: Likewise.
	* coding.c: Likewise.
	* composite.c: Likewise.
	* doc.c: Likewise.
	* doprnt.c: Likewise.
	* editfns.c: Likewise.
	* emacs.c: Likewise.
	* eval.c: Likewise.
	* filelock.c: Likewise.
	* fns.c: Likewise.
	* gtkutil.c: Likewise.
	* keyboard.c: Likewise.
	* lisp.h: Likewise.
	* lread.c: Likewise.
	* minibuf.c: Likewise.
	* msdos.c: Likewise.
	* print.c: Likewise.
	* process.c: Likewise.
	* region-cache.c: Likewise.
	* search.c: Likewise.
	* sysdep.c: Likewise.
	* termcap.c: Likewise.
	* terminal.c: Likewise.
	* tparam.c: Likewise.
	* w16select.c: Likewise.
	* w32.c: Likewise.
	* w32reg.c: Likewise.
	* w32select.c: Likewise.
	* w32uniscribe.c: Likewise.
	* widget.c: Likewise.
	* xdisp.c: Likewise.
	* xmenu.c: Likewise.
	* xrdb.c: Likewise.
	* xselect.c: Likewise.

770 771 772 773 774 775
2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>

	* fileio.c (time_error_value): Check the right error number.
	Problem reported by Troels Nielsen in
	<http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00095.html>.

776 777
2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>

778 779 780 781 782
	* window.c (set_window_hscroll): Revert the 100000 hscroll limit.
	This should be fixed in a better way; see Eli Zaretskii in
	<http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00088.html>.
	(HSCROLL_MAX): Remove; this is now internal to set_window_hscroll.

783 784 785 786
	* fileio.c (time_error_value): Rename from special_mtime.
	The old name's problems were noted by Eli Zaretskii in
	<http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00087.html>.

787 788 789 790 791
	* emacs.c (gdb_pvec_type): Change it back to enum pvec_type.
	This variable's comment says Emacs needs at least one GDB-visible
	symbol of type enum pvec_type, to work around GDB problems.
	The symbol's value doesn't matter.

792 793 794
	* alloc.c (PSEUDOVECTOR_NBYTES): Remove stray ';'
	that causes compilation to fail on pre-C99 compilers.

795 796 797 798 799
2012-07-04  Juanma Barranquero	<lekktu@gmail.com>

	* s/ms-w32.h (LISP_FLOAT_TYPE, HAVE_MEMCMP, HAVE_MEMCPY)
	(HAVE_MEMMOVE, HAVE_MEMSET): Don't set, obsolete.

800 801
2012-07-04  Dmitry Antipov  <dmantipov@yandex.ru>

Juanma Barranquero's avatar
Juanma Barranquero committed
802
	* buffer.c (init_buffer_once): Fix initialization of
803 804 805
	headers for buffer_defaults and buffer_local_symbols.
	Reported by Juanma Barranquero <lekktu@gmail.com>.

806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826
2012-07-04  Stefan Monnier  <monnier@iro.umontreal.ca>

	Turn VECTOR_FREE_LIST_FLAG into PVEC_FREE.
	* lisp.h (enum pvec_type): Use fewer bits.
	(PSEUDOVECTOR_SIZE_BITS): New constant.
	(PSEUDOVECTOR_SIZE_MASK, PVEC_TYPE_MASK): Use it.
	(XSETPVECTYPESIZE, XSETTYPED_PSEUDOVECTOR, DEFUN): Adapt code to
	change in pvec_type.
	(PSEUDOVECTOR_TYPEP): New macro.
	(TYPED_PSEUDOVECTORP): Use it.
	* fns.c (internal_equal): Adapt code to extract pvectype.
	* emacs.c (gdb_pvec_type): Update type.
	* alloc.c (PSEUDOVECTOR_NBYTES): New macro.
	(VECTOR_FREE_LIST_SIZE_MASK): Remove (=> PSEUDOVECTOR_SIZE_MASK).
	(VECTOR_FREE_LIST_FLAG): Remove (=> PVEC_FREE).
	(SETUP_ON_FREE_LIST): Use XSETPVECTYPESIZE.
	(sweep_vectors): Use it.  Use local var `total_bytes' instead of
	abusing vector->header.next.nbytes.
	(live_vector_p): Use PVEC_TYPE.
	(mark_object): Adapt code to extract pvectype.  Use switch.

827 828 829 830 831
2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>

	* doprnt.c (doprnt): Don't assume string length fits in 'int'.
	Tighten new eassert a bit.

832 833 834 835 836 837 838 839 840
2012-07-04  Dmitry Antipov  <dmantipov@yandex.ru>

	Fix compilation with --enable-gcc-warnings and -O1
	optimization level.
	* doprnt.c (doprnt): Change type of tem to int, initialize
	to avoid compiler warning.  Add eassert.
	* search.c (simple_search): Initialize match_byte to avoid
	compiler warning.  Add eassert.

841 842
2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>

843 844 845 846 847 848 849 850 851 852 853
	Avoid weird behavior with large horizontal scrolls.
	Without this change, for example, large hscroll values would
	mess up Emacs's display on Fedora 15 x86, presumably due to
	overflows in int calculations in the display code.
	Also, if buffers had long lines, Emacs would freeze.
	* window.c (HSCROLL_MAX): Reduce to 100000, and make it visible to GDB.
	(set_window_hscroll): New function, containing the old guts of
	Fset_window_hscroll.  Return the clipped value.
	(Fset_window_hscroll, Fscroll_left, Fscroll_right): Use it.
	This avoids the need to check against PTRDIFF_MAX.

854 855
	* buffer.c (Fgenerate_new_buffer_name): Fix sprintf format mismatch.

856 857 858 859
2012-07-04  Dmitry Antipov  <dmantipov@yandex.ru>

	* buffer.c (Fgenerate_new_buffer_name): Fix type mismatch.

860 861
2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>

862 863 864 865
	* regex.c: Suppress GCC warning on RHEL 6.  (Bug#11207)
	Conditionalize the pragmas on GCC 4.5 or later, not GCC 4.3 or later,
	since GCC 4.4.6 issues a bogus warning for them.

866 867 868 869 870 871 872 873
	Fix bugs in file timestamp newness comparisons.
	* fileio.c (Ffile_newer_than_file_p):
	* lread.c (Fload): Use full timestamp resolution of files,
	not just the 1-second resolution, so that files that are only
	slightly newer still count as newer.
	* fileio.c (Ffile_newer_than_file_p): Don't assume file
	timestamps fit in 'int'; this fixes a Y2038 bug on most hosts.

874 875 876 877 878 879 880
2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>

	* fileio.c: Improve handling of file time marker.  (Bug#11852)
	(special_mtime): New function.
	(Finsert_file_contents, Fverify_visited_file_modtime):
	Use it to set special mtime values consistently.

881 882 883 884 885
2012-07-03  Andreas Schwab  <schwab@linux-m68k.org>

	* fileio.c (Finsert_file_contents): Properly handle st_mtime
	marker for non-existing file.  (Bug#11852)

886 887 888 889 890
2012-07-03  Glenn Morris  <rgm@gnu.org>

	* lisp.h (Fread_file_name): Restore EXFUN (it's not a normal DEFUN
	and did not make it into globals.h).

891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906
2012-07-03  Tom Tromey  <tromey@redhat.com>

	* window.c (Fset_window_margins, Fset_window_fringes)
	(Fset_window_scroll_bars, Fset_window_vscroll): No longer static.
	* textprop.c (Fprevious_property_change): No longer static.
	* syntax.c (Fsyntax_table_p): No longer static.
	* process.c (Fget_process, Fprocess_datagram_address): No longer
	static.
	* keymap.c (Flookup_key, Fcopy_keymap): No longer static.
	* keyboard.c (Fcommand_execute): No longer static.
	Remove EXFUN.
	* insdel.c (Fcombine_after_change_execute): No longer static.
	* image.c (Finit_image_library): No longer static.
	* fileio.c (Fmake_symbolic_link): No longer static.
	* eval.c (Ffetch_bytecode): No longer static.
	* editfns.c (Fuser_full_name): No longer static.
Juanma Barranquero's avatar
Juanma Barranquero committed
907 908
	* doc.c (Fdocumentation_property, Fsnarf_documentation):
	No longer static.
909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928
	* buffer.c (Fset_buffer_major_mode, Fdelete_overlay): No longer
	static.
	* dired.c (Ffile_attributes): No longer static.
	* composite.c (Fcomposition_get_gstring): No longer static.
	* callproc.c (Fgetenv_internal): No longer static.

	* ccl.h: Remove EXFUNs.
	* buffer.h: Remove EXFUNs.
	* dispextern.h: Remove EXFUNs.
	* intervals.h: Remove EXFUNs.
	* fontset.h: Remove EXFUN.
	* font.h: Remove EXFUNs.
	* dosfns.c (system_process_attributes): Remove EXFUN.
	* keymap.h: Remove EXFUNs.
	* lisp.h: Remove EXFUNs.
	* w32term.h: Remove EXFUNs.
	* window.h: Remove EXFUNs.
	* xsettings.h: Remove EXFUN.
	* xterm.h: Remove EXFUN.

929 930 931 932 933 934
2012-07-03  Glenn Morris  <rgm@gnu.org>

	* lisp.h (Frandom): Make it visible to C.
	* buffer.c (Fgenerate_new_buffer_name): Speed up finding a new
	buffer for invisible buffers.  (Bug#1229)

935 936 937 938 939 940 941 942
2012-07-03  Dmitry Antipov  <dmantipov@yandex.ru>

	Fix block vector allocation code to allow VECTOR_BLOCK_SIZE
	values which aren't power of 2.
	* alloc.c (VECTOR_FREE_LIST_SIZE_MASK): New macro.  Verify
	it's value and the value of VECTOR_BLOCK_SIZE.  Adjust users
	accordingly.

943 944 945 946 947 948
2012-07-03  Stefan Monnier  <monnier@iro.umontreal.ca>

	* lisp.h (Lisp_Misc, Lisp_Fwd): Move around to group better.

	* alloc.c (mark_object): Revert part of last patch to use `switch'.

949 950 951 952 953 954 955
2012-07-03  Dmitry Antipov  <dmantipov@yandex.ru>

	* alloc.c (allocate_vector_block): Remove redundant
	calls to mallopt if DOUG_LEA_MALLOC is defined.
	(allocate_vectorlike): If DOUG_LEA_MALLOC is defined,
	avoid calls to mallopt if zero_vector is returned.

956 957 958 959 960 961
2012-07-03  Dmitry Antipov  <dmantipov@yandex.ru>

	* alloc.c (check_string_bytes): If GC_CHECK_STRING_BYTES
	is enabled, avoid dereferencing NULL current_sblock if
	running undumped.

962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981
2012-07-03  Dmitry Antipov  <dmantipov@yandex.ru>

	Cleanup basic buffer management.
	* buffer.h (struct buffer): Change layout to use generic vector
	marking code.  Fix some comments.  Change type of 'clip_changed'
	to bitfield.  Remove unused #ifndef old.
	(FIRST_FIELD_PER_BUFFER, LAST_FIELD_PER_BUFFER): Remove.
	(GET_OVERLAYS_AT): Fix indentation.
	(for_each_per_buffer_object_at): New macro.
	* buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
	(Fbuffer_local_variables): Use it.
	(init_buffer_once, syms_of_buffer): Remove unused #ifndef old.
	* alloc.c (allocate_buffer): Adjust to match new layout of
	struct buffer.  Fix comment.
	(mark_overlay): New function.
	(mark_buffer): Use it.  Use mark_vectorlike to mark normal
	Lisp area of struct buffer.
	(mark_object): Use it.  Adjust marking of misc objects
	and related comments.

982 983 984 985 986 987 988
2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>

	* alloc.c (mark_object): Remove "#ifdef GC_CHECK_MARKED_OBJECTS"
	wrapper that is not needed because the wrapped code is a no-op (zero
	machine instructions) when GC_CHECK_MARKED_OBJECTS is not defined.
	This avoids a -Wunused-macros diagnostic with GCC 4.7.1 x86-64.

989 990 991 992
2012-07-02  Dmitry Antipov  <dmantipov@yandex.ru>

	* alloc.c (mark_buffer): Simplify.  Remove prototype.
	(mark_object): Add comment.  Reorganize marking of vector-like
Dmitry Antipov's avatar
Dmitry Antipov committed
993
	objects.  Use CHECK_LIVE for all vector-like objects except buffers
994 995 996
	and subroutines when GC_CHECK_MARKED_OBJECTS is defined.  Avoid
	redundant calls to mark_vectorlike for bool vectors.

997 998
2012-06-30  Glenn Morris  <rgm@gnu.org>

999 1000
	* nsterm.m (ns_init_paths): Ignore site-lisp if --no-site-lisp.

1001 1002 1003 1004 1005
	* epaths.in (PATH_SITELOADSEARCH): New.
	* lread.c (init_lread): Use PATH_SITELOADSEARCH.
	This is rather than relying on --enable-locallisppath elements
	having "site-lisp" in their names.  (Bug#10208#25, 11658)

1006 1007
2012-06-30  Eli Zaretskii  <eliz@gnu.org>

1008 1009 1010 1011
	* w32proc.c (sys_select): Accept and ignore one more argument.

	* w32.c (emacs_gnutls_pull): Call select with one more argument.

1012
	* sysselect.h [DOS_NT]: Don't include sys/select.h.
1013
	(pselect) [!MS_DOS]: Redirect to sys_select.
1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026

	* sysdep.c: Don't include dos.h and dosfns.h.

	* process.c (sys_select):
	* msdos.c (sys_select): Accept one more argument and ignore it.

	* msdos.c (event_timestamp, sys_select): Use gnulib's gettime;
	adapt data types and code to that.

	* dosfns.c:
	* msdos.c (gettime, settime): Define away the prototypes in dos.h,
	which clashes with the gnulib function of the same name.

1027 1028
2012-06-30  Andreas Schwab  <schwab@linux-m68k.org>

1029 1030 1031 1032
	* font.c (font_style_to_value, font_style_symbolic)
	(font_prop_validate_style): Add type checks for values in
	font_style_table.

1033 1034 1035 1036 1037
	* lisp.h (CHECK_RANGED_INTEGER): Make value to check the first
	argument.
	* character.c, charset.c, menu.c, process.c, window.c: Adjust all
	uses.

1038 1039
2012-06-29  Eli Zaretskii  <eliz@gnu.org>

1040 1041
	* xdisp.c (try_window_id): Undo last change.

1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052
	* w32.c (getwd): Adjust commentary about startup_dir.
	(init_environment): Always call sys_access, even in non-MSVC
	builds.  Don't chdir to the directory of the Emacs executable.
	This undoes code from 1997 which was justified by the need to
	"avoid conflicts when removing and renaming directories".  But its
	downside was that every relative file name was being interpreted
	relative to the directory of the Emacs executable, which can never
	be TRT.  In particular, it broke sys_access when called with
	relative file names.
	(sys_access): Map GetLastError to errno.

1053 1054 1055 1056
2012-06-29  Dmitry Antipov  <dmantipov@yandex.ru>

	* window.h (struct window): Change type of 'fringes_outside_margins'
	to bitfield.  Fix comment.  Adjust users accordingly.
1057
	(struct window): Change type of 'window_end_bytepos' to ptrdiff_t.
1058 1059 1060 1061
	Adjust comment.
	* xdisp.c (try_window_id): Change type of 'first_vpos' and 'vpos'
	to ptrdiff_t.

1062
2012-06-29  Andreas Schwab  <schwab@linux-m68k.org>
1063

1064 1065
	* gnutls.c (emacs_gnutls_handshake):
	Add QUIT to make the loop interruptible.
1066

1067
2012-06-29  Glenn Morris  <rgm@gnu.org>
1068

1069 1070
	* charset.c (init_charset): Make lack of etc/charsets fatal.

1071 1072 1073 1074
2012-06-29  Dmitry Antipov  <dmantipov@yandex.ru>

	* editfns.c (region_limit): Fix type mismatch.

1075 1076 1077 1078 1079 1080 1081
2012-06-29  Dmitry Antipov  <dmantipov@yandex.ru>

	* nsfns.m: Fix GLYPH_DEBUG usage assuming that it may be
	undefined.  Convert from xassert to eassert.
	* nsmenu.m: Convert from xassert to eassert.
	* nsterm.m: Likewise.

1082 1083 1084 1085
2012-06-28  Stefan Monnier  <monnier@iro.umontreal.ca>

	* editfns.c (region_limit): Clip to narrowing (bug#11770).

1086 1087 1088 1089 1090 1091 1092
2012-06-28  Paul Eggert  <eggert@cs.ucla.edu>

	Avoid integer overflow on scroll-left and scroll-right.
	* window.c (HSCROLL_MAX): New macro.
	(Fscroll_left, Fscroll_right): Avoid undefined behavior on integer
	overflow when requested scroll falls outside ptrdiff_t range.

1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103
2012-06-28  Dmitry Antipov  <dmantipov@yandex.ru>

	* window.h (struct window): Change type of 'hscroll',
	'min_hscroll' and 'last_point' from Lisp_Object to ptrdiff_t,
	'last_modified' and 'last_overlay_modified' to EMACS_INT.
	Adjust users accordingly.
	* xdisp.c (try_cursor_movement): Replace type check with eassert.
	* window.c (Fscroll_left, Fscroll_right): Change type of 'hscroll'
	from EMACS_INT to ptrdiff_t.
	(make_window): Omit redundant initialization.

1104 1105 1106 1107
2012-06-28  Juanma Barranquero  <lekktu@gmail.com>

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

1108 1109 1110 1111 1112 1113 1114 1115 1116
2012-06-28  Dmitry Antipov  <dmantipov@yandex.ru>

	* window.h (struct window): Change type of 'use_time' and
	'sequence_number' from Lisp_Object to int.
	* frame.c (make_frame): Adjust users accordingly.
	* print.c (print_object): Likewise.
	* window.c (select_window, Fwindow_use_time, make_parent_window)
	(make_window): Likewise.

1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133
2012-06-28  Dmitry Antipov  <dmantipov@yandex.ru>

	* dispextern.h (GLYPH_DEBUG): Now defined in config.h if
	enabled with --enable-checking=[all,glyphs] configure option.
	Fix GLYPH_DEBUG usage assuming that it may be undefined,
	adjust comments accordingly.
	* dispnew.c: Fix GLYPH_DEBUG usage assuming that it may be
	undefined, adjust comments accordingly.
	* image.c: Likewise.
	* scroll.c: Likewise.
	* w32fns.c: Likewise.
	* w32term.c: Likewise.
	* xdisp.c: Likewise.
	* xfaces.c: Likewise.
	* xfns.c: Likewise.
	* xterm.c: Likewise.

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 1159 1160 1161 1162 1163
2012-06-28  Dmitry Antipov  <dmantipov@yandex.ru>

	Generalize run-time debugging checks.
	* dispextern.h (XASSERTS): Remove.
	* fontset.c (xassert): Remove.
	Convert from xassert to eassert.
	* alloc.c: Convert from xassert to eassert.
	* bidi.c: Likewise.
	* dispnew.c: Likewise.
	* fns.c: Likewise.
	* fringe.c: Likewise.
	* ftfont.c: Likewise.
	* gtkutil.c: Likewise.
	* image.c: Likewise.
	* keyboard.c: Likewise.
	* menu.c: Likewise.
	* process.c: Likewise.
	* scroll.c: Likewise.
	* sound.c: Likewise.
	* term.c: Likewise.
	* w32console.c: Likewise.
	* w32fns.c: Likewise.
	* w32term.c: Likewise.
	* window.c: Likewise.
	* xdisp.c: Likewise.
	* xfaces.c: Likewise.
	* xfns.c: Likewise.
	* xselect.c: Likewise.
	* xterm.c: Likewise.

1164 1165 1166 1167 1168
2012-06-27  Stefan Monnier  <monnier@iro.umontreal.ca>

	* fns.c (maybe_resize_hash_table): Output message when growing the
	purify-hashtable.

1169 1170 1171 1172 1173 1174
2012-06-27  Dmitry Antipov  <dmantipov@yandex.ru>

	* alloc.c (allocate_string_data): Remove dead code.
	* xsettings.c (XSETTINGS_FONT_NAME): Move under HAVE_XFT to
	avoid GCC warning about unused macro.

1175 1176 1177 1178 1179 1180
2012-06-27  Dmitry Antipov  <dmantipov@yandex.ru>

	* alloc.c (allocate_string): Omit intervals initialization.
	* alloc.c (make_uninit_multibyte_string): Initialize intervals
	as in make_pure_string and make_pure_c_string.

1181 1182
2012-06-27  Dmitry Antipov  <dmantipov@yandex.ru>

Juanma Barranquero's avatar
Juanma Barranquero committed
1183
	* alloc.c (allocate_string): Fix last change.
1184

1185 1186
2012-06-27  Dmitry Antipov  <dmantipov@yandex.ru>

Juanma Barranquero's avatar
Juanma Barranquero committed
1187
	* alloc.c (allocate_string): Remove two redundant calls
1188 1189
	to memset, add explicit initialization where appropriate.

Glenn Morris's avatar
Glenn Morris committed
1190 1191 1192 1193
2012-06-27  Glenn Morris  <rgm@gnu.org>

	* lisp.mk (lisp): Remove paths.elc.

1194 1195 1196 1197
2012-06-27  Chong Yidong  <cyd@gnu.org>

	* doc.c (Fsubstitute_command_keys): Fix punctuation.

1198 1199
2012-06-26  John Wiegley  <johnw@newartisans.com>

1200
	* unexmacosx.c (copy_data_segment): Add two section names used
1201 1202
	on Mac OS X Lion: __mod_init_func and __mod_term_func.

1203 1204 1205
	* alloc.c (mark_memory): Do not check with -faddress-sanitizer
	when building with Clang.

1206 1207 1208 1209
2012-06-26  Stefan Monnier  <monnier@iro.umontreal.ca>

	* eval.c (Fapply): Allow calling it with a single argument.

1210 1211 1212 1213 1214 1215
2012-06-26  Eli Zaretskii  <eliz@gnu.org>

	* s/ms-w32.h (strcasecmp, strncasecmp) [_MSC_VER]: Redirect to
	_stricmp and _strnicmp.
	(HAVE_STRCASECMP, HAVE_STRNCASECMP): Define to 1.

1216 1217 1218 1219 1220
2012-06-26  Dmitry Antipov  <dmantipov@yandex.ru>

	* alloc.c (allocate_window): Zero out non-Lisp part of newly
	allocated window.
	(allocate_process): Likewise for new process.
1221
	(allocate_terminal): Change to use offsetof.
1222 1223 1224 1225 1226 1227 1228
	(allocate_frame): Likewise.
	* frame.c (make_frame): Omit redundant initialization.
	* window.c (make_parent_window): Use memset.
	(make_window): Omit redundant initialization.
	* process.c (make_process): Omit redundant initialization.
	* terminal.c (create_terminal): Likewise.

1229 1230 1231 1232
2012-06-26  Dmitry Antipov  <dmantipov@yandex.ru>

	* term.c (delete_tty): Remove redundant call to memset.

1233 1234 1235 1236 1237 1238 1239 1240 1241 1242
2012-06-26  Dmitry Antipov  <dmantipov@yandex.ru>

	* alloc.c: Remove build_string.
	* lisp.h: Define build_string as static inline.  This provides
	a better opportunity to optimize away calls to strlen when the
	function is called with compile-time constant argument.
	* image.c (imagemagick_error): Convert to build_string.
	* w32proc.c (sys_spawnve): Likewise.
	* xterm.c (x_term_init): Likewise.

1243 1244
2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>

1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264
	Use sprintf return value instead of invoking strlen on result.
	In the old days this wasn't portable, since some sprintf
	implementations returned char *.  But they died out years ago and
	Emacs already assumes sprintf returns int.
	Similarly for float_to_string.
	This patch speeds up (number-to-string 1000) by 3% on Fedora 15 x86-64.
	* ccl.c (ccl_driver):
	* character.c (string_escape_byte8):
	* data.c (Fnumber_to_string):
	* doprnt.c (doprnt):
	* print.c (print_object):
	* xdisp.c (message_dolog):
	* xfns.c (syms_of_xfns):
	Use sprintf or float_to_string result to avoid need to call strlen.
	* data.c (Fnumber_to_string):
	Use make_unibyte_string, since the string must be ASCII.
	* lisp.h, print.c (float_to_string): Now returns int length.
	* term.c (produce_glyphless_glyph):
	Use sprintf result rather than recomputing it.

1265 1266 1267 1268 1269
	Clean out last vestiges of the old HAVE_CONFIG_H stuff.
	* Makefile.in (ALL_CFLAGS):
	* makefile.w32-in (LOCAL_FLAGS): Remove -DHAVE_CONFIG_H.
	* gmalloc.c, regex.c: Include <config.h> unconditionally.

1270 1271
2012-06-25  Dmitry Antipov  <dmantipov@yandex.ru>

1272
	* dispextern.h (xstrcasecmp): Define to library function
1273 1274 1275
	strcasecmp if available.
	* xfaces.c: Do not use xstrcasecmp if strcasecmp is available.

1276 1277 1278 1279 1280 1281 1282 1283
2012-06-25  Andreas Schwab  <schwab@linux-m68k.org>

	* keyboard.c (menu_bar_items, menu_bar_item, read_key_sequence):
	Avoid comma operator.
	* menu.c (push_submenu_start, push_submenu_end)
	(push_left_right_boundary, push_menu_pane): Likewise.
	* msdos.c (dos_rawgetc): Likewise.

1284 1285 1286 1287 1288
2012-06-25  Dmitry Antipov  <dmantipov@yandex.ru>

	* xfns.c (xic_create_fontsetname): Remove redundant calls
	to memset.

1289 1290
2012-06-25  Paul Eggert  <eggert@cs.ucla.edu>

1291 1292 1293
	* gtkutil.c (get_utf8_string): Remove redundant assignment.
	sprintf already null-terminates its output.

1294 1295
	* xfns.c (x_window): Remove redundant cast.

1296 1297 1298 1299 1300
2012-06-25  Dmitry Antipov  <dmantipov@yandex.ru>

	* xmenu.c (xmenu_show, xdialog_show): Explicit cast from
	`const char *' to `char *' to avoid compiler warning.

1301 1302
2012-06-24  Paul Eggert  <eggert@cs.ucla.edu>

1303 1304 1305
	* xterm.c (x_term_init): Build proper-sized _XSETTINGS_Snnn string
	instead of truncating it to 63 (admittedly a generous limit).

1306 1307
	* process.c: Fix spelling and caps in comments.

1308 1309
2012-06-24  Dan Nicolaescu  <dann@ics.uci.edu>

1310
	* emacs.c (setpgrp): Remove definition, unused.
1311 1312
	* sysdep.c (setpgrp): Remove definition, not used in this file.

1313 1314 1315 1316
2012-06-24  Juanma Barranquero  <lekktu@gmail.com>

	* makefile.w32-in: Update dependencies.

1317 1318 1319 1320 1321 1322 1323 1324 1325 1326
2012-06-24  Eli Zaretskii  <eliz@gnu.org>

	* makefile.w32-in (TIMESPEC_H): Remove nt/inc/sys/time.h.
	(SYSTIME_H): Add nt/inc/sys/time.h.

	* systime.h [WINDOWSNT]: Include sys/time.h.

	* s/ms-w32.h (struct timespec): Definition moved from
	nt/inc/sys/time.h.  Suggested by Paul Eggert <eggert@cs.ucla.edu>.

1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358
2012-06-24  Paul Eggert  <eggert@cs.ucla.edu>

	Switch from NO_RETURN to C11's _Noreturn (Bug#11750).
	* buffer.h (buffer_slot_type_mismatch):
	* data.c (arith_error) [!FORWARD_SIGNAL_TO_MAIN_THREAD]:
	* eval.c (unwind_to_catch):
	* image.c (my_png_error, my_error_exit):
	* keyboard.c (quit_throw_to_read_char, user_error)
	(Fexit_recursive_edit, Fabort_recursive_edit):
	* lisp.h (die, args_out_of_range, args_out_of_range_3)
	(wrong_type_argument, buffer_overflow, __executable_start)
	(memory_full, buffer_memory_full, string_overflow, Fthrow)
	(xsignal, xsignal0, xsignal1, xsignal2, xsignal3, signal_error)
	(error, verror, nsberror, report_file_error, Ftop_level, Fkill_emacs)
	(fatal):
	(child_setup) [!DOS_NT]:
	* lread.c (end_of_file_error, invalid_syntax):
	* process.c (send_process_trap) [!FORWARD_SIGNAL_TO_MAIN_THREAD]:
	* puresize.h (pure_write_error):
	* search.c (matcher_overflow):
	* sound.c (sound_perror, alsa_sound_perror):
	* sysdep.c, syssignal.h (croak):
	* term.c (maybe_fatal, vfatal):
	* textprop.c (text_read_only):
	* undo.c (user_error):
	* unexmacosx.c (unexec_error):
	* xterm.c (x_ins_del_lines, x_delete_glyphs):
	Use _Noreturn rather than NO_RETURN.
	No need for separate decl merely because of _Noreturn.
	* sound.c (sound_warning, parse_sound):
	Remove unnecessary forward decls.

1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370
2012-06-24  Paul Eggert  <eggert@cs.ucla.edu>

	Fix bug when time_t is unsigned and as wide as intmax_t (Bug#9000).
	* lisp.h (WAIT_READING_MAX): New macro.
	* dispnew.c (Fsleep_for, sit_for):
	* keyboard.c (kbd_buffer_get_event):
	* process.c (Faccept_process_output):
	Use it to avoid bogus compiler warnings with obsolescent GCC versions.
	This improves on the previous patch, which introduced a bug
	when time_t is unsigned and as wide as intmax_t.
	See <http://bugs.gnu.org/9000#51>.

1371 1372 1373 1374 1375 1376 1377
2012-06-23  Eli Zaretskii  <eliz@gnu.org>

	* dispnew.c (sit_for, Fsleep_for):
	* keyboard.c (kbd_buffer_get_event):
	* process.c (Faccept_process_output): Avoid compiler warnings when
	comparing a 32-bit time_t with a 64-bit INTMAX_MAX.

1378 1379
2012-06-23  Juanma Barranquero  <lekktu@gmail.com>

1380 1381
	* makefile.w32-in: Update dependencies.

1382 1383 1384
	* w32.c (ltime): Add return type and declare static.
	(w32_get_internal_run_time): Remove usused variable `time_100ns'.

1385 1386 1387 1388 1389 1390 1391 1392 1393
2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>

	* sysdep.c [__FreeBSD__]: Fix more recently-introduced typos.
	Privately reported by Herbert J. Skuhra.
	(make_lisp_timeval) [__FreeBSD__]: Rename from TIMELIST.
	All uses changed.
	(system_process_attributes) [__FreeBSD__]: Invoke make_lisp_time,
	not make_lisp_timeval, when the argument is of type EMACS_TIME.

1394 1395
2012-06-23  Eli Zaretskii  <eliz@gnu.org>

1396 1397 1398
	* w32proc.c (Fw32_get_locale_info): Fix an off-by-one error in
	last argument of make_unibyte_string.

1399 1400 1401 1402 1403 1404
	* keyboard.c (kbd_buffer_get_event): Include the codepage and the
	language ID in the event parameters.

	* w32term.c (w32_read_socket): Put the new keyboard codepage into
	event.code, not the obscure "character set ID".

1405 1406 1407 1408
2012-06-23  Chong Yidong  <cyd@gnu.org>

	* xmenu.c (x_menu_wait_for_event): Adapt GTK3 to new xg_select.

1409 1410
2012-06-23  Eli Zaretskii  <eliz@gnu.org>

1411 1412 1413 1414 1415 1416 1417 1418 1419
	Fix the MS-Windows build broken by 2012-06-22T21:17:42Z!eggert@cs.ucla.edu.
	* w32.c (fdutimens): New function.

	* w32proc.c (sys_select): Adapt to change in the EMACS_TIME type.

	* s/ms-w32.h (pselect): Redirect to sys_select.

	* sysselect.h [WINDOWSNT]: Don't include sys/select.h.

1420 1421 1422 1423
	* ralloc.c (r_alloc_inhibit_buffer_relocation): Fix stupid thinko
	in the logic of incrementing and decrementing the value of
	use_relocatable_buffers.

1424 1425 1426 1427 1428 1429 1430 1431 1432 1433
2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>

	* sysdep.c [__FreeBSD__]: Fix recently-introduced typos.
	Privately reported by Herbert J. Skuhra.
	[__FreeBSD__]: Remove "*/" typo after "#include".
	(timeval_to_EMACS_TIME) [__FreeBSD__]: New static function.
	(TIMEVAL) [__FreeBSD__]: Now a static function rather than a macro.
	(TIMEVAL, system_process_attributes) [__FreeBSD__]:
	Don't assume EMACS_TIME and struct timeval are the same type.

1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602
2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>

	Support higher-resolution time stamps (Bug#9000).
	The time stamps are only nanosecond-resolution at the C level,
	since that's the best that any real-world system supports now.
	But they are picosecond-resolution at the Lisp level, as that's
	easy, and leaves room for future OS improvements.

	* Makefile.in (LIB_CLOCK_GETTIME): New macro.
	(LIBES): Use it.