ChangeLog 638 KB
Newer Older
1 2
2015-01-08  Eli Zaretskii  <eliz@gnu.org>

3 4 5 6 7
	* dispnew.c (buffer_posn_from_coords): Fix the value of the column
	returned for right-to-left screen lines.  (Before the change on
	2014-12-30, the incorrectly-computed X pixel coordinate concealed
	this bug.)

8 9 10 11 12
	* .gdbinit (xsymname): New subroutine.
	(xprintsym, initial-tbreak): Use it to access the name of a symbol
	in a way that doesn't cause GDB to barf when it tries to
	dereference a NULL pointer.

13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
	* xdisp.c (next_element_from_c_string): Use Lisp integer zero as
	the object.
	(set_cursor_from_row, try_cursor_movement, dump_glyph)
	(insert_left_trunc_glyphs, append_space_for_newline)
	(extend_face_to_end_of_line, highlight_trailing_whitespace)
	(find_row_edges, ROW_GLYPH_NEWLINE_P, Fmove_point_visually)
	(Fbidi_resolved_levels, produce_special_glyphs)
	(rows_from_pos_range, mouse_face_from_buffer_pos)
	(note_mouse_highlight): Use nil as the object for glyphs inserted
	by the display engine, and test with NILP instead of INTEGERP.
	(Bug#19535)

	* w32fns.c (Fx_show_tip): Use NILP to test for glyphs inserted by
	the display engine.

	* xfns.c (Fx_show_tip): Use NILP to test for glyphs inserted by
	the display engine.

	* dispextern.h (struct glyph, struct it): Update comments for the
	OBJECT members.

34 35
2015-01-08  Paul Eggert  <eggert@cs.ucla.edu>

36 37 38 39 40 41
	Port new Lisp symbol init to x86 --with-wide-int
	* lisp.h (DEFINE_LISP_SYMBOL_BEGIN, DEFINE_LISP_SYMBOL_END):
	Define to empty on platforms where EMACS_INT_MAX != INTPTR_MAX, as
	GCC (at least) does not allow a constant initializer to widen an
	address constant.

42 43 44 45 46
	* lisp.h (TAG_SYMPTR): Don't do arithmetic on NULL.
	This is a followup to the "Port Qnil==0 XUNTAG to clang" patch.
	Although clang doesn't need it, some other compiler might, and
	it's easy enough to be safe.

47 48 49
	* conf_post.h (ATTRIBUTE_ALLOC_SIZE): Port to clang 3.5.0.
	Apparently clang removed support for the alloc_size attribute.

Paul Eggert's avatar
Paul Eggert committed
50 51 52 53 54 55 56
	Port Qnil==0 XUNTAG to clang
	clang has undefined behavior if the program subtracts an integer
	from (char *) 0.  Problem reported by YAMAMOTO Mitsuharu in:
	http://lists.gnu.org/archive/html/emacs-devel/2015-01/msg00132.html
	* lisp.h (lisp_h_XUNTAG) [USE_LSB_TAG]:
	(XUNTAG) [!USE_LSB_TAG]: Port to clang 3.5.0.

57 58 59 60 61
	Port GFileMonitor * hack to Qnil==0 platforms
	Reported by Glenn Morris in: http://bugs.gnu.org/15880#112
	* gfilenotify.c (monitor_to_lisp, lisp_to_monitor): New functions.
	(dir_monitor_callback, Fgfile_add_watch, Fgfile_rm_watch): Use them.

62 63 64 65 66
2015-01-06  Jan Djärv  <jan.h.d@swipnet.se>

	* nsterm.m (x_set_window_size): Call updateFrameSize to get real
	size instead of using widht/height.  The frame may be constrained.

67 68 69 70 71 72
2015-01-05  Paul Eggert  <eggert@cs.ucla.edu>

	* lisp.h (XSYMBOL): Parenthesize id in forward decl.
	Needed when neither optimizing nor inlining.
	Also, sort decls alphabetically.

73 74 75 76 77 78
2015-01-05  Eli Zaretskii  <eliz@gnu.org>

	* w32proc.c, w32.h, w32fns.c, w32font.c, w32menu.c, w32notify.c:
	* w32proc.c, w32select.c, w32term.c, w32uniscribe.c: Remove
	declarations of Q* variables that represent symbols.

79 80
2015-01-05  Paul Eggert  <eggert@cs.ucla.edu>

Paul Eggert's avatar
Paul Eggert committed
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
	Use 0 for Qnil
	Fixes Bug#15880.
	If USE_LSB_TAG, arrange for the representation of Qnil to be zero so
	that NILP (x) is equivalent to testing whether x is 0 at the
	machine level.  The overall effects of this and the previous patch
	shrink the size of the text segment by 2.3% and speeds up
	compilation of all the .elc files by about 0.5% on my platform,
	which is Fedora 20 x86-64.
	* lisp.h (lisp_h_XPNTR, lisp_h_XSYMBOL, lisp_h_XUNTAG)
	(make_lisp_symbol) [USE_LSB_TAG]:
	Symbols now tag the difference from lispsym, not the pointer.
	(lisp_h_XUNTAGBASE, TAG_SYMPTR): New macros.
	(Lisp_Int0, Lisp_Int1, Lisp_Symbol, Lisp_Misc, Lisp_String, Lisp_Cons):
	Renumber so that Lisp_Symbol is 0, so that Qnil is zero.
	(XSYMBOL): New forward decl.
	(XUNTAGBASE): New function.
	(XUNTAG): Use it.

99 100 101 102
	Compute C decls for DEFSYMs automatically
	Fixes Bug#15880.
	This patch also makes Q constants (e.g., Qnil) constant addresses
	from the C point of view.
Glenn Morris's avatar
Glenn Morris committed
103
	* alloc.c, bidi.c, buffer.c, bytecode.c, callint.c, casefiddle.c:
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
	* casetab.c, category.c, ccl.c, charset.c, chartab.c, cmds.c, coding.c:
	* composite.c, data.c, dbusbind.c, decompress.c, dired.c, dispnew.c:
	* doc.c, editfns.c, emacs.c, eval.c, fileio.c, fns.c, font.c, fontset.c:
	* frame.c, fringe.c, ftfont.c, ftxfont.c, gfilenotify.c, gnutls.c:
	* image.c, inotify.c, insdel.c, keyboard.c, keymap.c, lread.c:
	* macfont.m, macros.c, minibuf.c, nsfns.m, nsfont.m, nsimage.m:
	* nsmenu.m, nsselect.m, nsterm.m, print.c, process.c, profiler.c:
	* search.c, sound.c, syntax.c, term.c, terminal.c, textprop.c, undo.c:
	* window.c, xdisp.c, xfaces.c, xfns.c, xftfont.c, xmenu.c, xml.c:
	* xselect.c, xsettings.c, xterm.c:
	Remove Q vars that represent symbols (e.g., Qnil, Qt, Qemacs).
	These names are now defined automatically by make-docfile.
	* alloc.c (init_symbol): New function.
	(Fmake_symbol): Use it.
	(c_symbol_p): New function.
	(valid_lisp_object_p, purecopy): Use it.
	* alloc.c (marked_pinned_symbols):
	Use make_lisp_symbol instead of make_lisp_ptr.
	(garbage_collect_1): Mark lispsym symbols.
	(CHECK_ALLOCATED_AND_LIVE_SYMBOL): New macro.
	(mark_object): Use it.
	(sweep_symbols): Sweep lispsym symbols.
	(symbol_uses_obj): New function.
	(which_symbols): Use it.  Work for lispsym symbols, too.
	(init_alloc_once): Initialize Vpurify_flag here; no need to wait,
	since Qt's address is already known now.
	(syms_of_alloc): Add lispsym count to symbols_consed.
	* buffer.c (init_buffer_once): Compare to Qnil, not to make_number (0),
	when testing whether storage is all bits zero.
Glenn Morris's avatar
Glenn Morris committed
133
	* dispextern.h (struct image_type):
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
	* font.c (font_property_table):
	* frame.c (struct frame_parm_table, frame_parms):
	* keyboard.c (scroll_bar_parts, struct event_head):
	* xdisp.c (struct props):
	Use XSYMBOL_INIT (Qfoo) and struct Lisp_Symbol * rather than &Qfoo and
	Lisp_Object *, since Qfoo is no longer an object whose address can be
	taken.  All uses changed.
	* eval.c (run_hook): New function.  Most uses of Frun_hooks changed to
	use it, so that they no longer need to take the address of a Lisp sym.
	(syms_of_eval): Don't use DEFSYM on Vrun_hooks, as it's a variable.
	* frame.c (syms_of_frame): Add defsyms for the frame_parms table.
	* keyboard.c (syms_of_keyboard): Don't DEFSYM Qmenu_bar here.
	DEFSYM Qdeactivate_mark before the corresponding var.
	* keymap.c (syms_of_keymap): Use DEFSYM for Qmenu_bar and Qmode_line
	instead of interning their symbols; this avoids duplicates.
	(LISP_INITIALLY, TAG_PTR)
	(DEFINE_LISP_SYMBOL_BEGIN, DEFINE_LISP_SYMBOL_END, XSYMBOL_INIT):
	New macros.
	(LISP_INITIALLY_ZERO): Use it.
	(enum symbol_interned, enum symbol_redirect, struct Lisp_Symbol)
	(EXFUN, DEFUN_ARGS_MANY, DEFUN_ARGS_UNEVALLED, DEFUN_ARGS_*):
	Move decls up, to avoid forward uses.  Include globals.h earlier, too.
	(make_lisp_symbol): New function.
	(XSETSYMBOL): Use it.
	(DEFSYM): Now just a placeholder for make-docfile.
	* lread.c (DEFINE_SYMBOLS): Define, for globals.h.
	(intern_sym): New function, with body taken from old intern_driver.
	(intern_driver): Use it.  Last arg is now Lisp integer, not ptrdiff_t.
	All uses changed.
	(define_symbol): New function.
	(init_obarray): Define the C symbols taken from lispsym.
	Use plain DEFSYM for Qt and Qnil.
	* syntax.c (init_syntax_once): No need to worry about
	Qchar_table_extra_slots.

169 170
2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>

171 172 173 174 175 176 177 178 179
	'temacs -nw' should not call missing functions
	Without this patch, "temacs -nw" fails with the diagnostic
	"emacs: Symbol's function definition is void: frame-windows-min-size"
	and messes up the tty's state.
	* frame.c (Fframe_windows_min_size): New placeholder function.
	(syms_of_frame): Define it.
	* window.c (Fwindow__sanitize_window_sizes): New placeholder.
	(syms_of_window): Define it.

Paul Eggert's avatar
Paul Eggert committed
180 181 182 183
	Less 'make' chatter for lisp dir
	* Makefile.in (%.elc): Adjust to compile-onefile change in
	../lisp/Makefile.in.

184 185 186 187 188
	batch write-region no longer says "Wrote FOO"
	This cuts down on 'make' chatter a bit.
	* fileio.c (Fwrite_region):
	Don't output "Wrote /whatever/foo.elc" if noninteractive.

Paul Eggert's avatar
Paul Eggert committed
189 190
2015-01-03  Paul Eggert  <eggert@cs.ucla.edu>

191 192 193
	Revert previous change to produce_composite_glyph
	* term.c (produce_composite_glyph): Revert previous change (Bug#19496).

Paul Eggert's avatar
Paul Eggert committed
194 195 196
	Pacify gcc -Wparentheses
	* frame.c (x_set_frame_parameters): Add parens (Bug#19428).

197 198 199 200 201 202 203
2015-01-03  Martin Rudalics  <rudalics@gmx.at>

	* frame.c (x_set_frame_parameters): Call Fset_frame_size only if
	f->can_x_set_window_size is true.
	* xterm.c (x_set_window_size_1): Call change_frame_size with
	text sizes instead of pixel sizes (Bug#19428).

Paul Eggert's avatar
Paul Eggert committed
204
2015-01-01  Eli Zaretskii  <eliz@gnu.org>
205 206 207 208

	* xdisp.c (pos_visible_p): Fix up the X coordinate for
	right-to-left screen lines.  (Bug#19473)

Paul Eggert's avatar
Paul Eggert committed
209
2015-01-01  Eli Zaretskii  <eliz@gnu.org>
210 211 212

	* w32proc.c (Fw32_get_codepage_charset): Doc fix.  (Bug#19458)

213 214 215 216 217 218 219 220 221
2014-12-31  Paul Eggert  <eggert@cs.ucla.edu>

	Simplify setfattr use by assuming GNU make
	* Makefile.in (PAXCTL_if_present, SETFATTR_if_present): New macros.
	(emacs$(EXEEXT), temacs$(EXEEXT), bootstrap-emacs$(EXEEXT)): Use them.
	Simplify by using GNU make rather than shell conditionals,
	by using ln -f rather than rm -f followed by ln,
	and by preferring $@ to spelling out the destination.

Eli Zaretskii's avatar
Eli Zaretskii committed
222 223 224 225 226
2014-12-29  Eli Zaretskii  <eliz@gnu.org>

	* sysdep.c [WINDOWSNT]: Include sys/socket.h, without which this
	file doesn't compile on MS-Windows.

Glenn Morris's avatar
Glenn Morris committed
227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244
2014-12-29  Paul Eggert  <eggert@cs.ucla.edu>

	Allow return value of system-name to vary.  (Bug#19438)
	* filelock.c (current_lock_owner):
	* xrdb.c (get_environ_db):
	* xterm.c (same_x_server):
	* xterm.c (x_term_init):
	Prefer (system-name) to system-name, and avoid naming
	locals 'system-name'.
	* editfns.c (cached_system_name): New static var.
	(init_and_cache_system_name): New function.
	(init_editfns, Fsystem_name): Use it.
	(syms_of_editfns): Initialize it and Vsystem_name to the same value.
	* sysdep.c [HAVE_SOCKETS]: Don't include <sys/socket.h>, <netdb.h>.
	(h_errno) [TRY_AGAIN && !HAVE_H_ERRNO]: Remove decl.
	(init_system_name) [HAVE_SOCKETS]: Don't canonicalize the name.
	Don't create a new string if the current value is already correct.

Paul Eggert's avatar
Paul Eggert committed
245 246 247 248 249 250
2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>

	Fix produce_composite_width typo
	* term.c (produce_composite_glyph):
	Fix typo that confused number of columns for pixel width.

251 252
2014-12-28  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>

Paul Eggert's avatar
Paul Eggert committed
253 254 255 256 257 258 259 260 261 262 263 264 265 266
	Wrap dll functions more simply
	* decompress.c, gnutls.c, image.c, xml.c:
	If WINDOWSNT, use '#define FOO fn_FOO' to wrap dll functions,
	rather than the inverse when not WINDOWSNT.  This isolates the
	fn_* business into the WINDOWSNT-specific section of the code,
	which makes it easier to maintain the generic code.
	* decompress.c (DEF_ZLIB_FN, LOAD_ZLIB_FN):
	* gnutls.c (DEF_GNUTLS_FN, LOAD_GNUTLS_FN):
	* image.c (DEF_IMGLIB_FN, LOAD_IMGLIB_FN):
	* xml.c (DEF_XML2_FN, LOAD_XML2_FN):
	Remove.  All uses replaced by DEF_DLL_FN.
	* decompress.c (inflateInit2): Remove; no longer needed.
	* w32.h (DEF_DLL_FN, LOAD_DLL_FN): New macros.

267 268 269 270 271 272 273 274 275 276 277
	Port memory-full checking to GnuTLS 3.3
	Instead of using gnutls_global_set_mem_functions, check every call
	to a GnuTLS function that might return an indication of memory
	exhaustion.  Suggested by Dmitry Antipov in:
	http://lists.gnu.org/archive/html/emacs-devel/2014-12/msg02056.html
	* gnutls.c (gnutls_global_set_mem_functions) [WINDOWSNT]: Remove.
	(init_gnutls_functions): Do not load gnutls_global_set_mem_functions.
	(fn_gnutls_global_set_mem_functions) [!WINDOWSNT]: Remove.
	All uses removed.
	(check_memory_full): New function.
	(emacs_gnutls_handshake, emacs_gnutls_handle_error)
Paul Eggert's avatar
Paul Eggert committed
278 279
	(gnutls_make_error, gnutls_certificate_details, Fgnutls_peer_status)
	(Fgnutls_boot): Use it.
280 281
	(emacs_gnutls_global_init): Avoid gnutls_global_set_mem_functions.

282 283 284 285 286 287 288 289
2014-12-27  Paul Eggert  <eggert@cs.ucla.edu>

	Fix parse_settings to match internal documentation
	* xsettings.c (parse_settings): Return the number of settings seen.
	Count the settings changes accurately.
	(read_settings): Don't confuse number of settings changes with
	the return code from XGetWindowProperty.

290
2014-12-27  Eli Zaretskii  <eliz@gnu.org>
291 292 293 294 295 296 297 298 299 300 301 302

	* xdisp.c (set_iterator_to_next) <GET_FROM_STRING>: Limit search in
	composition_compute_stop_pos to the number of characters in the
	string.  (Bug#19435)
	<GET_FROM_BUFFER, GET_FROM_STRING>: Simplify code.

	* composite.c (composition_compute_stop_pos): If no composition
	was found in a string before ENDPOS, and ENDPOS is the string end,
	no need to back up to a safe point.

	* dispextern.h (struct it) <end_charpos>: Improve commentary.

303
2014-12-27  Jan Djärv  <jan.h.d@swipnet.se>
304 305 306 307 308

	* nsimage.m (allocInitFromFile:): Initialize bmRep.
	(dealloc): Release bmRep.
        (setPixmapData): Make bmRep local so class member is not
        set (Bug#19133).
Jan D's avatar
Jan D committed
309 310
	(setPixmapData): Rename local variable bmRep to avoid compiler
	warning.
311

312
2014-12-27  Jan Djärv  <jan.h.d@swipnet.se>
Jan D's avatar
Jan D committed
313 314 315

	* xterm.c (do_ewmh_fullscreen): Don't remove maximized_horz/vert
	when going to fullscreen (Bug#0x180004f).
316

317 318 319 320
2014-12-27  Eli Zaretskii  <eliz@gnu.org>

	* window.c (Fwindow_body_width): Doc fix.  (Bug#19395)

321
2014-12-27  Stefan Monnier  <monnier@iro.umontreal.ca>
322 323 324

	* buffer.c (syms_of_buffer) <Vafter_change_functions>: fix docstring.

325
2014-12-27  Eli Zaretskii  <eliz@gnu.org>
326 327 328

	* gnutls.c (gnutls_init): Fix deprecation warning from GCC.

329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352
2014-12-26  Paul Eggert  <eggert@cs.ucla.edu>

	Use bool for boolean in xselect.c, xsettings.c
	* xselect.c (x_get_local_selection, struct selection_data)
	(x_selection_request_lisp_error, struct prop_location)
	(x_handle_selection_request, x_convert_selection)
	(waiting_for_other_props_on_window, expect_property_change)
	(wait_for_property_change, x_handle_property_notify)
	(x_get_foreign_selection, x_get_window_property)
	(receive_incremental_selection)
	(x_get_window_property_as_lisp_data)
	(lisp_data_to_selection_data, Fx_get_selection_internal)
	(x_send_client_event):
	* xselect.c, xterm.h (x_handle_dnd_message):
	* xsettings.c (dpyinfo_valid, parse_settings, read_settings)
	(apply_xft_settings, read_and_apply_settings)
	(xft_settings_event, init_gsettings, init_xsettings)
	(syms_of_xsettings):
	Use bool for boolean.
	* xselect.c (x_get_window_property): Omit last arg, which was an
	unused boolean.
	* xsettings.c (apply_xft_settings): Remove 2nd arg, which was
	always true.  All callers changed.

353 354 355 356 357 358 359 360 361 362
2014-12-26  Eli Zaretskii  <eliz@gnu.org>

	* w32proc.c (sys_spawnve, get_lcid_callback): Use strcpy instead
	of strcat.

	* w32menu.c (add_menu_item): Use stpcpy instead of strcat.

	* w32.c (sys_readdir, stat_worker, symlink): Use strcpy instead of
	strcat.

Paul Eggert's avatar
Paul Eggert committed
363 364 365 366 367 368 369 370 371
2014-12-26  Paul Eggert  <eggert@cs.ucla.edu>

	Use bool for boolean in xsmfns.c
	* xsmfns.c, xterm.h (x_session_have_connection):
	* xsmfns.c (doing_interact, smc_interact_CB, Fhandle_save_session):
	Use bool for boolean.
	(x_session_initialize, Fhandle_save_session):
	Prefer NILP (x) to EQ (x, Qnil).

Glenn Morris's avatar
Glenn Morris committed
372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389
2014-12-25  Paul Eggert  <eggert@cs.ucla.edu>

	* callproc.c (child_setup):
	* dbusbind.c (xd_signature_cat):
	* doc.c (get_doc_string, Fsnarf_documentation):
	* editfns.c (Fuser_full_name):
	* frame.c (xrdb_get_resource):
	* gtkutil.c (xg_get_file_with_chooser):
	* tparam.c (tparam1):
	* xfns.c (xic_create_fontsetname):
	* xrdb.c (gethomedir, get_user_db, get_environ_db):
	* xsmfns.c (smc_save_yourself_CB):
	Rewrite to avoid the need for strcat, typically by using stpcpy
	and/or lispstpcpy.  strcat tends to be part of O(N**2) algorithms.
	* doc.c (sibling_etc):
	* xrdb.c (xdefaults):
	Now a top-level static constant.

Didier Verna's avatar
Didier Verna committed
390 391 392 393 394
2014-12-23  Didier Verna  <didier@didierverna.net> (tiny change).

	* nsselect.m (Fns_selection_owner_p): Return a Lisp boolean, not a
	C one (Bug#19396).

395 396 397 398 399
2014-12-22  Jan Djärv  <jan.h.d@swipnet.se>

	* xterm.c (x_bitmap_icon): Partly revert change from 2014-03-21 which
	breaks icon setting for Gtk+ except for initial frame (Bug#19403).

Paul Eggert's avatar
Paul Eggert committed
400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446
2014-12-22  Paul Eggert  <eggert@cs.ucla.edu>

	Use bool for boolean in xterm.c
	* frame.h, nsterm.m, w32term.c, w32term.h, xterm.c:
	(x_set_window_size, x_bitmap_icon):
	* nsterm.m (ns_frame_raise_lower, x_new_font):
	* termhooks.h (struct terminal.toggle_invisible_pointer_hook)
	(struct terminal.frame_raise_lower_hook):
	* w32term.c (w32_frame_raise_lower):
	* xterm.c, xterm.h (x_text_icon):
	* xterm.c (x_update_window_begin, x_update_window_end)
	(x_update_end, x_after_update_window_line)
	(x_set_glyph_string_gc, x_draw_glyph_string_background)
	(x_draw_glyph_string_foreground)
	(x_draw_composite_glyph_string_foreground)
	(x_alloc_lighter_color, x_draw_relief_rect)
	(x_draw_glyph_string_box, x_draw_image_relief)
	(x_draw_image_glyph_string, x_draw_stretch_glyph_string)
	(x_draw_underwave, x_draw_glyph_string, x_show_hourglass)
	(x_hide_hourglass):
	(XFillRectangle) [HAVE_GTK3]:
	(XTtoggle_invisible_pointer, frame_highlight, frame_unhighlight)
	(x_focus_changed, x_find_modifier_meanings, note_mouse_movement)
	(XTmouse_position, xt_action_hook, xt_horizontal_action_hook)
	(x_send_scroll_bar_event, xm_scroll_callback)
	(xg_scroll_callback, xaw_jump_callback, xaw_scroll_callback)
	(x_create_toolkit_scroll_bar)
	(x_create_horizontal_toolkit_scroll_bar)
	(x_set_toolkit_horizontal_scroll_bar_thumb, x_scroll_bar_create)
	(x_scroll_bar_set_handle, XTset_vertical_scroll_bar)
	(XTset_horizontal_scroll_bar, x_scroll_bar_expose)
	(x_scroll_bar_handle_click, x_scroll_bar_note_movement)
	(x_scroll_bar_report_motion)
	(x_horizontal_scroll_bar_report_motion, x_net_wm_state)
	(handle_one_xevent, XTread_socket, x_draw_bar_cursor)
	(x_draw_window_cursor, x_clear_errors)
	(x_trace_wire, x_new_font, x_set_offset, wm_supports)
	(set_wm_state, x_set_sticky, get_current_wm_state)
	(do_ewmh_fullscreen, x_handle_net_wm_state)
	(x_check_expected_move, x_sync_with_move, x_wait_for_event)
	(x_set_window_size_1, XTframe_raise_lower)
	(x_make_frame_visible, x_iconify_frame)
	(x_timeout_atimer_activated_flag, same_x_server, x_display_ok)
	(x_term_init, x_process_timeouts, x_activate_timeout_atimer)
	(x_delete_terminal, x_initialize, syms_of_xterm):
	Use bool for boolean.

447 448
2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>

449 450 451
	* composite.h (struct composition.width): Now int
	instead of unsigned short, as we prefer signed integers.

452 453 454 455 456 457
	Let charset tick grow past USHRT_MAX
	* charset.c, charset.h (charset_ordered_list_tick):
	Now EMACS_UINT, not unsigned short.
	* fontset.c (reorder_font_vector): Allow the tick to grow to the
	maximum representable Emacs integer value before wrapping it around.

458 459 460 461 462 463 464 465 466
	Simplify unexec file mode setting
	* unexaix.c, unexcoff.c, unexelf.c, unexmacosx.c:
	Don't include <sys/stat.h> when no longer needed.
	(unexec): Create file with correct mode in the first place,
	rather than overwriting the mode later and fiddling with the
	global umask in the mean time.  Avoid bogus usage like
	'umask (777)', which should have been 'umask (0777)'.
	(mark_x): Remove. All callers removed.

467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482
2014-12-19  Paul Eggert  <eggert@cs.ucla.edu>

	Minor cleanups for Lisp objects and symbols
	* alloc.c (next_vector, set_next_vector):
	* lisp.h (lisp_h_INTEGERP, make_number, XFASTINT, make_natnum):
	(lisp_h_make_number) [USE_LSB_TAG]:
	Use Lisp_Int0 instead of the mystery constant 0.
	* alloc.c (mark_object): Always set and use po; that's simpler.
	(CHECK_LIVE, CHECK_ALLOCATED_AND_LIVE):
	Properly parenthesize definientia.
	* bidi.c (bidi_initialize):
	* buffer.c (init_buffer_once):
	* nsfns.m (syms_of_nsfns):
	* nsmenu.m (syms_of_nsmenu):
	* nsselect.m (syms_of_nsselect):
	Prefer DEFSYM to defining by hand.
483
	* buffer.c (syms_of_buffer): Omit unneeded staticpros.
484 485 486 487 488 489 490 491
	* data.c: Fix too-long line.
	* lisp.h (DECLARE_GDB_SYM): New macro.
	(DEFINE_GDB_SYMBOL_BEGIN): Use it.
	(DEFINE_GDB_SYMBOL_BEGIN, DEFINE_GDB_SYMBOL_END) [!MAIN_PROGRAM]:
	Declare the symbol, so it's visible to everywhere lisp.h is included.
	Move forward decls as far forward as they can go,
	to allow future changes to use them.

492 493
2014-12-18  Paul Eggert  <eggert@cs.ucla.edu>

Paul Eggert's avatar
Paul Eggert committed
494 495
	* gnutls.c: Include gnutls.h.
	This to check syms_of_gnutls's API even when !HAVE_GNUTLS.
496 497
	* image.c (svg_load): Fix pointer signedness.

498 499 500 501 502 503 504
2014-12-18  Martin Rudalics  <rudalics@gmx.at>

	* frame.c (frame_windows_min_size): New argument IGNORE.
	(adjust_frame_size): When called from change_frame_size call
	frame_windows_min_size with IGNORE Qt so we can ignore size
	restrictions.

505 506 507 508 509 510
2014-12-18  Eli Zaretskii  <eliz@gnu.org>

	* font.c (Ffont_info): Add more font information to the vector
	returned by the function, inspired by query-font.  Doc fix.
	(Bug#19395)

511 512 513 514 515 516
2014-12-18  Stefan Monnier  <monnier@iro.umontreal.ca>

	* keyboard.c (input_was_pending): New var.
	(read_char): Use it to make sure we only skip redisplay when we can't
	keep up with the repeat rate.

517 518 519 520
2014-12-17  Stefan Monnier  <monnier@iro.umontreal.ca>

	* keyboard.c (swallow_events): Don't redisplay if there's input pending.

521 522 523 524 525
2014-12-17  Ulf Jasper  <ulf.jasper@web.de>

	* image.c (svg_load): Watch out for nil value of current buffer's
	filename.  Re-enable filename thing for not-a-file case.

526 527 528 529 530 531 532
2014-12-17  Ulf Jasper  <ulf.jasper@web.de>

	Partially disabled previous change.

	* image.c (svg_load): Temporarily disabled filename thing for
	not-a-file case as it can cause crashs.

533 534 535 536 537 538 539 540 541 542 543 544 545 546
2014-12-17  Ulf Jasper  <ulf.jasper@web.de>

	Fix problem with images referenced within svg files. (bug#19373)

	* image.c: Additional parameter 'filename' for
	svg_load_image. Include "buffer.h".  Define library function
	rsvg_handle_set_base_uri for WINDOWSNT.
	(init_svg_functions): Initialize rsvg_handle_set_base_uri.
	(fn_rsvg_handle_set_base_uri): Define fn_rsvg_handle_set_base_uri.
	(svg_load): Pass a filename to svg_load_image: either name of
	actual file or of current buffer's file.
	(svg_load_image): New parameter 'filename', used for setting
	base_uri, necessary for loading referenced images. (bug#19373)

547 548 549 550 551 552
2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>

	* lread.c (init_obarray): Declare Qt as special.
	This fixes a typo in the 2012-05-15 patch that
	tried to declare Qt as special.

553 554 555 556 557 558 559
2014-12-15  Stefan Monnier  <monnier@iro.umontreal.ca>

	Various fixes to use bool type and constants.
	* dispnew.c (update_single_window): Remove arg `force_p' since it's
	always true.
	* xfaces.c (clear_face_cache): Use bool for the argument type.

560 561 562 563 564 565 566 567
2014-12-15  Paul Eggert  <eggert@cs.ucla.edu>

	Correct same_at_end when restoring window points
	* fileio.c (Finsert_file_contents): Compute same_at_end character
	position using the old buffer size, not the new one, since
	restore_window_points wants the old size.
	Fixes: debbugs:19161

568 569 570 571
2014-12-14  Alan Mackenzie  <acm@muc.de>

	New feature optionally to accelerate auto-repeated scrolling.

572
	* xdisp.c: Remove "static" from declaration of Qfontification_functions.
573

574
	* window.c (window_scroll): Bind fontification-functions to nil
575 576
	when scrolling by whole screens and
	fast-but-imprecise-scrolling is non-nil.
577
	(syms_of_window): New DEFVAR_BOOL fast-but-imprecise-scrolling.
578 579 580

	* lisp.h (bool): Declare Qfontification_functions extern.

581 582 583 584 585 586 587
2014-12-14  Eli Zaretskii  <eliz@gnu.org>

	Load system's default trusted Certificate Authorities if available.
	* gnutls.c (gnutls_certificate_set_x509_system_trust)
	[GNUTLS >= 3.0.20]: Declare for WINDOWSNT.
	(init_gnutls_functions)(gnutls_certificate_set_x509_system_trust)
	[GNUTLS >= 3.0.20]: Load from shared library for WINDOWSNT.
588 589 590 591
	(fn_gnutls_certificate_set_x509_system_trust) [!WINDOWSNT]:
	Define new macro.
	(Fgnutls_boot) [GNUTLS >= 3.0.20]:
	Call gnutls_certificate_set_x509_system_trust.  Log an error message if
592 593
	it fails.

Glenn Morris's avatar
Glenn Morris committed
594 595 596 597
2014-12-14  Paul Eggert  <eggert@cs.ucla.edu>

	* regex.c (analyze_first): Rename from analyze_first.

598 599 600 601 602
2014-12-13  Paul Eggert  <eggert@cs.ucla.edu>

	* alloc.c (XMALLOC_BASE_ALIGNMENT): Use max_align_t instead of
	a hack involving a union.

603
2014-12-13  Eli Zaretskii  <eliz@gnu.org>
Ted Zlatanov's avatar
Ted Zlatanov committed
604

605 606
	* gnutls.c (Fgnutls_available_p, syms_of_gnutls):
	Move gnutls-available-p out of the HAVE_GNUTLS conditional, and define
Ted Zlatanov's avatar
Ted Zlatanov committed
607 608
	them only once.

609
2014-12-13  Teodor Zlatanov  <tzz@lifelogs.com>
Ted Zlatanov's avatar
Ted Zlatanov committed
610 611 612 613 614 615 616 617 618 619

	* emacs.c (main): Always include gnutls.h and run syms_of_gnutls.

	* gnutls.h: Always declare syms_of_gnutls.

	* gnutls.c (Fgnutls_available_p syms_of_gnutls): Move later for
	clarity.  Let the availability check return Qnil when the GnuTLS
	integration is not available, instead of erroring out.
	(Bug#19346)

620
2014-12-13  Eli Zaretskii  <eliz@gnu.org>
Ted Zlatanov's avatar
Ted Zlatanov committed
621

622 623
	* xdisp.c (move_it_in_display_line_to, display_line):
	Don't disallow overflow-newline-into-fringe when word-wrap is in
Ted Zlatanov's avatar
Ted Zlatanov committed
624 625
	effect.  (Bug#19300)

Stefan Monnier's avatar
Stefan Monnier committed
626 627 628 629 630 631 632
2014-12-11  Stefan Monnier  <monnier@iro.umontreal.ca>

	* fileio.c: Better preserve window-points during revert (bug#19161).
	(Qget_buffer_window_list): New var.
	(get_window_points_and_markers, restore_window_points): New functions.
	(Finsert_file_contents): Use them to save and restore window-points.

633 634 635 636 637 638
2014-12-11  Dmitry Antipov  <dmantipov@yandex.ru>

	* xterm.c (x_delete_terminal): Call emacs_close for X connection
	descriptor if called from x_connection_closed and always delete
	this descriptor from keyboard waiting set (Bug#19147).

639 640 641 642 643 644 645 646 647
2014-12-10  Eli Zaretskii  <eliz@gnu.org>

	* bidi.c (BIDI_CACHE_MAX_ELTS_PER_SLOT): New macro.
	(bidi_cache_max_elts): New global variable.
	(bidi_shelve_header_size): Add the sizeof bidi_cache_max_elts.
	(bidi_cache_shrink, bidi_initialize): Reset bidi_cache_max_elts to
	its initial value.
	(bidi_cache_search): Handle overflown cache.  Improve commentary.
	(bidi_cache_ensure_space): Limit allocations to the current value
Stefan Monnier's avatar
Stefan Monnier committed
648 649
	of bidi_cache_max_elts.  Force xpalloc not to over-allocate.
	If less than a full BIDI_CACHE_CHUNK is left to the limit, decrease
650 651 652 653 654
	the increment to not exceed the limit.
	(bidi_cache_iterator_state): Now returns non-zero if succeeded to
	cache, zero otherwise (meaning the cache overflowed).  In the
	latter case, set bidi_cache_last_idx to -1.
	(bidi_peek_at_next_level): Handle overflown cache.
Stefan Monnier's avatar
Stefan Monnier committed
655
	(bidi_push_it): Increase the cache limit for iterating the new object.
656 657 658 659 660 661 662 663 664 665 666 667
	(bidi_pop_it): Decrease the cache limit back to previous value.
	(bidi_shelve_cache): Shelve the current value of the cache limit.
	(bidi_unshelve_cache): Restore the value of cache limit.
	(bidi_find_bracket_pairs): If the cache overflows while looking
	for the paired bracket, give up and let bidi_resolve_neutrals
	process the bracket as a simple neutral.  (Bug#19322)
	(bidi_find_other_level_edge): If the cache overflows, fall back on
	Plan B, which effectively stops the reordering and restarts it on
	the next character (after resetting the cache).
	(bidi_move_to_visually_next): When the cache overflows, reset it
	after processing the last cached character.

668 669 670 671 672 673 674 675 676 677 678 679 680 681
2014-12-10  Paul Eggert  <eggert@cs.ucla.edu>

	Fix glitches in gnutls.c, mostly memory-related
	* gnutls.c: Sort macro definitions by name.
	(fn_gnutls_transport_set_errno): Omit unreachable definition.
	(fn_gnutls_x509_crt_get_signature): Omit unused symbol.
	(gnutls_hex_string): Arg is now unsigned char *, to avoid a cast.
	Prefer ptrdiff_t for sizes.  Check for arithmetic overflow when
	calculating string length.  Use make_uninit_string, to avoid
	copying the string.  Cast the char, not the pointer.
	(gnutls_certificate_details): Use xmalloc and xfree, not malloc
	and free.  Work even for dates past the year 9999.  Use void *
	for buffers, to avoid casts.

682 683 684 685
2014-12-09  Andy Moreton  <andrewjmoreton@gmail.com>  (tiny change)

	* gnutls.c (gnutls_protocol_get_name): Fix a copy/paste typo.

686 687 688 689 690
2014-12-08  Lars Magne Ingebrigtsen  <larsi@gnus.org>

	* gnutls.c (Fgnutls_peer_status): Return the key exchange, cipher
	and MAC algorithms.

691 692 693 694
2014-12-08  Stefan Monnier  <monnier@iro.umontreal.ca>

	* process.c: Whitespace and line-break nitpicks.

695 696 697 698
2014-12-08  Lars Magne Ingebrigtsen  <larsi@gnus.org>

	* gnutls.c (gnutls_certificate_details): The :signature isn't
	that useful, so remove it.
699
	(gnutls_certificate_details): Clean up whitespace slightly.
700 701
	(Fgnutls_peer_status): Return the Diffie-Hellman prime bits for
	the connection.
702 703
	(gnutls_certificate_details): Put :signature-algorithm back again,
	which was removed by mistake.
704 705
	(emacs_gnutls_handle_error): Fatal errors should be on level 1, so
	that they are not messaged by default (bug#16253).
706
	(Fgnutls_error_fatalp): Doc fix (bug#18210).
707

708 709
	* gnutls.c: Add Windows specs for gnutls_dh_get_prime_bits.

Jan D's avatar
Jan D committed
710 711 712 713 714
2014-12-07  Jan Djärv  <jan.h.d@swipnet.se>

	* nsimage.m (setPixmapData): Make bmRep local so class member is not
	set (Bug#19133).

Stefan Monnier's avatar
Stefan Monnier committed
715
2014-12-05  Lee Duhem  <lee.duhem@gmail.com>  (tiny change)
716 717 718 719

	* eval.c (Fsignal): Remove duplicate test.
	(Fautoload_do_load): Fix up docstring.

Stefan Monnier's avatar
Stefan Monnier committed
720
2014-12-05  Jan Djärv  <jan.h.d@swipnet.se>
721 722 723 724 725 726 727 728 729 730 731

	* nsterm.m (represented_filename, represented_frame): New variables.
	(ns_set_represented_filename): New function.
	(sendEvent:): Set represented filename here to avoid flicker,
	related to Bug#18757.

	* nsterm.h: Declare ns_set_represented_filename.

	* nsfns.m (ns_set_name_as_filename): Don't set represented filename
	at once, call ns_set_represented_filename instead.

732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749
2014-12-05  Eli Zaretskii  <eliz@gnu.org>

	* dispextern.h (enum bidi_dir_t): Force NEUTRAL_DIR to be zero.
	(struct bidi_stack): Reduce size by using bit fields and by
	packing sos, override, and isolate_status into a single 8-bit
	byte called 'flags'.

	* bidi.c (ISOLATE_STATUS, OVERRIDE): New macros.
	(bidi_push_embedding_level): Construct flags from individual
	bits.  Adapt to changes in prev_for_neutral and next_for_neutral
	members.
	(bidi_pop_embedding_level): Use ISOLATE_STATUS.  Extract 'sos'
	from flags.  Adapt to changes in prev_for_neutral,
	next_for_neutral, and last_strong members.
	(bidi_line_init): Initialize flags to zero.
	(bidi_resolve_explicit, bidi_resolve_weak, bidi_resolve_brackets)
	(bidi_resolve_neutral): Use ISOLATE_STATUS and OVERRIDE.

750 751 752 753 754
2014-12-04  Stefan Monnier  <monnier@iro.umontreal.ca>

	* eval.c (backtrace_eval_unrewind): Rewind also the excursions.
	(Fapply): Try and simplify the control flow.

Chris Zheng's avatar
Chris Zheng committed
755 756 757 758 759 760 761
2014-12-03  Chris Zheng  <chriszheng99@gmail.com>  (tiny change)

	* gnutls.c (init_gnutls_functions, gnutls_certificate_details):
	Use gnutls_sign_get_name directly because
	gnutls_sign_algorithm_get_name is a macro on MinGW (bug#19231).
	(init_gnutls_functions): Load missing gnutls_server_name_set.

762 763 764 765 766 767 768 769 770
2014-12-02  Eli Zaretskii  <eliz@gnu.org>

	* bidi.c (bidi_find_first_overridden): New function.

	* xdisp.c (Fbidi_find_overridden_directionality): New function.
	(syms_of_xdisp): Defsubr it.

	* dispextern.h (bidi_find_first_overridden): Add prototype.

Jan Djärv's avatar
Jan Djärv committed
771 772 773 774 775
2014-12-02  Jan Djärv  <jan.h.d@swipnet.se>

	* nsimage.m (initFromSkipXBM:width:height:flip:length:): Set bmRep
	to nil after release (Bug#9133).

Paul Eggert's avatar
Paul Eggert committed
776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793
2014-11-30  Paul Eggert  <eggert@cs.ucla.edu>

	Port better to AddressSanitizer.
	These changes suffice for temacs on x86-64 with GCC 4.9.2 and
	-fsanitize=address.
	* alloc.c (valid_pointer_p) [ADDRESS_SANITIZER]:
	Return -1 or 0, as the pipe trick doesn't work.
	* alloc.c (relocatable_string_data_p, mark_object, sweep_symbols):
	* data.c (Ffset):
	* print.c (print_object):
	When a pointer-check primitive returns -1, do not assume this
	means the pointer is valid or that the underlying system has failed.
	It could just be that addresses are being sanitized so Emacs can't
	test for pointer validity.
	* lisp.h (defined_GC_CHECK_STRING_BYTES): New constant.
	(USE_STACK_STRING) [GC_CHECK_STRING_BYTES]: Now false, since the
	string validity checker doesn't work on stack-based strings.

794 795 796
2014-11-29  Paul Eggert  <eggert@cs.ucla.edu>

	Improve clarity of USE_LSB_TAG definition.
Glenn Morris's avatar
Glenn Morris committed
797
	Reported by Lee Duhem.  Suggested by Andreas Schwab in:
798 799 800 801 802
	http://lists.gnu.org/archive/html/emacs-devel/2014-11/msg02222.html
	* lisp.h (USE_LSB_TAG): Define in terms of the (simpler)
	VAL_MAX / 2 rather than in terms of the (more complicated)
	EMACS_INT_MAX >> GCTYPEBITS, and adjust commentary to match.

Paul Eggert's avatar
Paul Eggert committed
803
2014-11-29  Eli Zaretskii  <eliz@gnu.org>
804 805 806 807 808 809

	* xdisp.c (handle_single_display_spec): When ignoring a fringe
	bitmap display, reset the ignore_overlay_strings_at_pos_p flag.
	(next_element_from_buffer): When done with overlays, reset the
	ignore_overlay_strings_at_pos_p flag.  (Bug#19201)

Paul Eggert's avatar
Paul Eggert committed
810
2014-11-29  Eli Zaretskii  <eliz@gnu.org>
811 812 813 814

	* w32fns.c (Fw32_shell_execute): Convert forward slashes in
	DOCUMENT to backslashes, if DOCUMENT is a file.  (Bug#19141)

Paul Eggert's avatar
Paul Eggert committed
815
2014-11-29  Ulrich Müller  <ulm@gentoo.org>
816 817 818 819 820

	* Makefile.in (temacs$(EXEEXT)): Use consistent flag settings
	for paxctl and setfattr. Fixes temacs startup failure with
	grsecurity/PaX enabled Linux kernel (bug#19067).

821 822
2014-11-27  Oscar Fuentes  <ofv@wanadoo.es>

Glenn Morris's avatar
Glenn Morris committed
823
	* w32.c, w32heap.c, w32term.c:
824
	Use MINGW_W64 instead of _W64.
825

826
2014-11-27  Stefan Monnier  <monnier@iro.umontreal.ca>
827 828 829

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

830 831 832 833 834
2014-11-26  Lars Magne Ingebrigtsen  <larsi@gnus.org>

	* gnutls.c (gnutls_ip_address_p): New function.
	(Fgnutls_boot): Only send SNI if the host name is not an IP address.

835 836 837 838
2014-11-26  Toke Høiland-Jørgensen  <toke@toke.dk>  (tiny change)

	* gnutls.c (Fgnutls_boot): Send the server name over (bug#18208).

839 840 841 842 843 844
2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>

	Fix gnutls problems caught by static checking.
	* gnutls.c (Fgnutls_boot): Remove unused local.
	(Fgnutls_boot): Fix pointer signedness.

845 846 847 848 849
2014-11-25  Lars Magne Ingebrigtsen  <larsi@gnus.org>

	* gnutls.c (gnutls_certificate_details): Don't include certain
	certificate details on older gnutls versions (bug#19168).
	(syms_of_gnutls): Export gnutls_peer_status_warning_describe.
850
	(gnutls_certificate_details): Reversed check in last checkin.
851

852 853 854
2014-11-25  Teodor Zlatanov  <tzz@lifelogs.com>

	* gnutls.c (Fgnutls_peer_status): Check GNUTLS_INITSTAGE, not gnutls_p.
855 856 857
	(Fgnutls_peer_status_warning_describe): Add function to describe a
	peer verification warning symbol.
	(Fgnutls_peer_status): Use it.
858
	(Fgnutls_boot): Use it.  Minor logging fixes.
859

860 861 862 863
2014-11-24  Lars Magne Ingebrigtsen  <larsi@gnus.org>

	* gnutls.c: Fix compilation warnings given fix --enable-gcc-warnings.

864 865
2014-11-24  Glenn Morris  <rgm@gnu.org>

866 867
	* emacs.c (main) <--version>: Make use of PACKAGE_NAME.

868 869 870
	* Makefile.in (emacs.res): Use ../nt rule, rather than duplicating it.
	(ntsource, WINDRES, EMACS_MANIFEST): Remove, now unused.

871 872
2014-11-23  Lars Magne Ingebrigtsen  <larsi@gnus.org>

873
	* gnutls.c: Fix Windows function definition of
874 875
	gnutls_x509_crt_get_fingerprint.

876 877
	* gnutls.c: Fix Windows return value for gnutls_pk_algorithm_get_name.

878 879 880 881 882 883 884 885 886
	* gnutls.c (Fgnutls_boot): Save certificate for later inspection.

	* process.h: Added more fields to Lisp_Process to track
	certificate details.

	* gnutls.c (gnutls_hex_string, gnutls_certificate_details)
	(Fgnutls_peer_status): New functions to export TLS certificate
	details to Emacs Lisp.

Jan D's avatar
Jan D committed
887 888 889 890 891
2014-11-23  Jan Djärv  <jan.h.d@swipnet.se>

	* gtkutil.c (gtk_adjustment_configure): Define for Gtk+ < 2.14.
	(xg_set_toolkit_horizontal_scroll_bar_thumb): Remove wrong version
	check for gtk_adjustment_configure (Bug#19149).
Jan D's avatar
Jan D committed
892
	(gtk_adjustment_configure): Don't use 2.14 functions (Bug#19149).
Jan D's avatar
Jan D committed
893

894 895 896 897
2014-11-22  Glenn Morris  <rgm@gnu.org>

	* Makefile.in (emacs.res): Add dependency on icons/hand.cur.  Use $<.

898 899 900 901 902 903 904 905 906 907 908 909
2014-11-22  Martin Rudalics  <rudalics@gmx.at>

	Don't shrink frame when using desktop-save-mode (Bug#19048).
	* w32fns.c (x_set_tool_bar_lines): Always call
	x_change_tool_bar_height (Bug#19048).
	(x_change_tool_bar_height): Mark frame as garbaged since
	adjust_frame_size might not have done that.
	* xfns.c (x_set_tool_bar_lines): Always call
	x_change_tool_bar_height (Bug#19048).
	(x_change_tool_bar_height): Mark frame as garbaged since
	adjust_frame_size might not have done that.

910 911 912 913
2014-11-21  Ulf Jasper  <ulf.jasper@web.de>

	* xml.c (parse_region): Take care of new optional parameter
	'discard-comments' of 'libxml-parse(html|xml)-region'.
Stefan Monnier's avatar
Stefan Monnier committed
914 915
	(Flibxml_parse_html_region, Flibxml_parse_xml_region):
	New optional parameter 'discard-comments'.
916

917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944
2014-11-17  Paul Eggert  <eggert@cs.ucla.edu>

	Improve time stamp handling, and be more consistent about it.
	* editfns.c (invalid_time): New function.
	Use it instead of 'error ("Invalid time specification")'.
	(time_add, time_subtract, time_arith, Ftime_add, Ftime_less_p)
	(decode_float_time, lisp_to_timespec, lisp_time_struct):
	New functions.
	(make_time_tail, make_time): Remove.  All uses changed to use
	new functions or plain list4i.
	(disassemble_lisp_time): Return effective length if successful.
	Check that LOW is an integer, if it's combined with other components.
	(decode_time_components): Decode into struct lisp_time, not
	struct timespec, so that we can support a wide set of times
	regardless of whether time_t is signed.  Decode plain numbers
	as seconds since the Epoch, and nil as the current time.
	(lisp_time_argument, lisp_seconds_argument, Ffloat_time):
	Reimplement in terms of new functions.
	(Fencode_time): Just use list2i.
	(syms_of_editfns): Add time-add, time-subtract, time-less-p.
	* keyboard.c (decode_timer): Don't allow the new formats (floating
	point or nil) in timers.
	* systime.h (LO_TIME_BITS): New constant.  Use it everywhere in
	place of the magic number '16'.
	(struct lisp_time): New type.
	(decode_time_components): Use it.
	(lisp_to_timespec): New decl.

945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963
2014-11-16  Lars Magne Ingebrigtsen  <larsi@gnus.org>

	* intervals.h (INTERVAL_WRITABLE_P): Check the `inhibit-read-only'
	text property.

	* callint.c (Fcall_interactively): Pass in nil as argument to
	Fbarf_if_buffer_read_only.

	* fileio.c (Finsert_file_contents): Ditto.

	* insdel.c (prepare_to_modify_buffer_1): Pass start region in.

	* textprop.c (verify_interval_modification): Check buffer
	readedness after the last interval.

	* buffer.c (Fbarf_if_buffer_read_only): Don't raise an error if
	the text at POSITION (new optional argument) has the
	`inhibit-read-only' text property set.

Stefan Monnier's avatar
Stefan Monnier committed
964
2014-11-16  Eli Zaretskii  <eliz@gnu.org>
965 966

	* window.c (window_scroll_pixel_based): Avoid truncation/rounding
Stefan Monnier's avatar
Stefan Monnier committed
967 968
	errors in computing the number of pixels to scroll.
	Suggested by Kelly Dean <kelly@prtime.org>.  (Bug#19060)
969

Stefan Monnier's avatar
Stefan Monnier committed
970
2014-11-16  Jan Djärv  <jan.h.d@swipnet.se>
Jan D's avatar
Jan D committed
971

972 973 974
	* nsmenu.m (update_frame_tool_bar): If tool bar changes height,
	call updateFrameSize.

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

Stefan Monnier's avatar
Stefan Monnier committed
977
2014-11-16  Jan Djärv  <jan.h.d@swipnet.se>
Jan Djärv's avatar
Jan Djärv committed
978 979 980 981 982

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

983 984 985 986 987 988
2014-11-15  Jan Djärv  <jan.h.d@swipnet.se>

	* nsterm.m (ns_send_appdefined): Check for application defined
	event on Cocoa (Bug#18993).
	(run): Restore code before the previous 18993 fix.

David Reitter's avatar
David Reitter committed
989 990
2014-11-14  David Reitter  <david.reitter@gmail.com>

Stefan Monnier's avatar
Stefan Monnier committed
991
	* nsterm.m (run): Set timeout for event loop to prevent hang.
David Reitter's avatar
David Reitter committed
992 993
	(Bug#18993)

994 995 996 997
2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>

	* .gitignore: Add emacs-[1-9]*, to ignore files like emacs-25.0.50.1.

998 999 1000 1001 1002 1003
2014-11-14  Dmitry Antipov  <dmantipov@yandex.ru>

	* xfont.c (xfont_list_pattern): Do not allocate font entity object
	for each candidate font but attempt to reuse it from previous improper
	candidate, if any.

1004 1005 1006 1007 1008 1009 1010
2014-11-13  Paul Eggert  <eggert@cs.ucla.edu>

	Avoid undefined behavior in color table hashing.
	* image.c (CT_HASH_RGB) [COLOR_TABLE_SUPPORT]: Remove, replacing with ...
	(ct_hash_rgb) [COLOR_TABLE_SUPPORT]: New function.  All uses changed.
	This function avoids undefined behavior with signed shift overflow.

1011
2014-11-10  Eli Zaretskii  <eliz@gnu.org>
1012

1013 1014 1015
	* fileio.c (Finsert_file_contents): Invalidate buffer caches also
	when the inserted text does not need decoding.  (Bug#18982)

1016
2014-11-10  Jan Djärv  <jan.h.d@swipnet.se>
1017 1018 1019 1020 1021 1022 1023 1024

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

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

1025 1026 1027 1028 1029
2014-11-10  Stefan Monnier  <monnier@iro.umontreal.ca>

	* keyboard.c (command_loop_1): Record this-command in recent-keys.
	(Frecent_keys): Rewrite. and add optional `include-cmds' arg.

Jan Djärv's avatar
Jan Djärv committed
1030 1031 1032 1033 1034
2014-11-09  Jan Djärv  <jan.h.d@swipnet.se>

	* nsterm.m (ns_set_vertical_scroll_bar)
	(ns_set_horizontal_scroll_bar): Cleanup merge error.

1035 1036
2014-11-09  Paul Eggert  <eggert@cs.ucla.edu>

1037 1038 1039 1040
	* xgselect.c (xg_select): Don't assume n_gfds is nonnegative
	merely because tmo_in_millisec is nonnegative.  The 1st call
	to g_main_context_query could succeed while the 2nd one fails.

1041 1042
	* frame.c (Fcan_run_window_configuration_change_hook): Return a value.

1043 1044
2014-11-08  Jan Djärv  <jan.h.d@swipnet.se>

1045
	* nsterm.m (run): Only use non-system event loop if OSX version is
1046
	exactly 10.9 (Bug#18993).
1047 1048
	(ns_set_vertical_scroll_bar): Don't call bar setPosition: unless
	needed (Bug#18757).
1049

1050
2014-11-08  Michael Albinus  <michael.albinus@gmx.de>
1051 1052 1053 1054

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

1055
2014-11-08  Alan Mackenzie  <acm@muc.de>
1056 1057 1058

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

1059
2014-11-08  Dima Kogan  <dima@secretsauce.net>
1060 1061 1062

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

1063
2014-11-08  Michael Albinus  <michael.albinus@gmx.de>
1064 1065 1066 1067

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

1068 1069 1070 1071 1072 1073 1074 1075 1076 1077
2014-11-08  Martin Rudalics  <rudalics@gmx.at>

	* frame.c (adjust_frame_size): Call x_set_window_size only if
	f->can_x_set_window_size is set.
	(make_frame): Initialize f->can_x_set_window_size and
	f->can_run_window_configuration_change_hook.
	(Fcan_run_window_configuration_change_hook): New function.
	* frame.h (frame): Split `official' into `can_x_set_window_size'
	and `can_run_window_configuration_change_hook'.
	* nsfns.m (Fx_create_frame): Set f->can_x_set_window_size.
Stefan Monnier's avatar
Stefan Monnier committed
1078 1079 1080 1081
	* w32fns.c (Fx_create_frame, x_create_tip_frame):
	Set f->can_x_set_window_size.
	* window.c (run_window_configuration_change_hook):
	Return immediately if either f->can_x_set_window_size or
1082 1083 1084
	f->can_run_window_configuration_change_hook are false.
	(Fset_window_configuration): Instead of f->official set
	f->can_x_set_window_size.
Stefan Monnier's avatar
Stefan Monnier committed
1085 1086
	* xfns.c (Fx_create_frame, x_create_tip_frame):
	Set f->can_x_set_window_size.
1087

1088 1089 1090 1091 1092
2014-11-08  Jan Djärv  <jan.h.d@swipnet.se>

	* nsterm.m (EmacsScroller.dealloc): Reinstate, removed at merge
	cleanup from 2014-11-01 (Bug#18972).

1093 1094 1095 1096 1097
2014-11-07  Stefan Monnier  <monnier@iro.umontreal.ca>

	* keyboard.c: Call gui-set-selection instead of x-set-selection.
	* xdisp.c (window-scroll-functions): Improve docstring.

Paul Eggert's avatar
Paul Eggert committed
1098 1099 1100 1101 1102 1103 1104 1105 1106
2014-11-07  Paul Eggert  <eggert@cs.ucla.edu>

	Uniquify the 'size' symbol.
	* frame.c (Qsize):
	* w32notify.c (Qsize): Remove.
	* lisp.h (Qsize): New decl.
	* lread.c (Qsize): Now extern.
	* w32notify.c (syms_of_w32notify): No need to defsym.

1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120
2014-11-07  Martin Rudalics  <rudalics@gmx.at>

	* dispnew.c (change_frame_size_1): Fix call of
	adjust_frame_size.
	* frame.c (Qsize, Qframe_position, Qframe_outer_size)
	(Qframe_inner_size, Qexternal_border_size, Qtitle_height)
	(Qmenu_bar_external, Qmenu_bar_size, Qtool_bar_external)
	(Qtool_bar_size): New constants.
	(frame_inhibit_resize, adjust_frame_size): New argument to
	handle case where frame_inhibit_implied_resize is a list.
	(Fmake_terminal_frame, Fset_frame_height, Fset_frame_width)
	(Fset_frame_size, x_set_left_fringe, x_set_right_fringe)
	(x_set_right_divider_width, x_set_bottom_divider_width)
	(x_set_vertical_scroll_bars, x_set_horizontal_scroll_bars)
1121 1122
	(x_set_scroll_bar_width, x_set_scroll_bar_height):
	Update callers.
1123
	(frame-inhibit-implied-resize): Rewrite doc-string.
1124 1125
	* frame.h (frame_inhibit_resize, adjust_frame_size):
	Fix external declarations.
1126 1127 1128 1129 1130 1131 1132 1133 1134 1135
	(Qframe_position, Qframe_outer_size)
	(Qframe_inner_size, Qexternal_border_size, Qtitle_height)
	(Qmenu_bar_external, Qmenu_bar_size, Qtool_bar_external)
	(Qtool_bar_size): Extern them.
	* gtkutil.c (FRAME_TOTAL_PIXEL_HEIGHT, FRAME_TOTAL_PIXEL_WIDTH)
	(xg_height_or_width_changed): Remove.
	(xg_frame_set_char_size): Adjust adjust_frame_size calls.
	(menubar_map_cb, xg_update_frame_menubar, free_frame_menubar)
	(tb_size_cb, update_frame_tool_bar, free_frame_tool_bar)
	(xg_change_toolbar_position): Call adjust_frame_size directly.
1136 1137
	* nsfns.m (x_set_internal_border_width, Fx_create_frame):
	Fix calls of adjust_frame_size.
1138
	* w32fns.c (x_set_internal_border_width, x_set_menu_bar_lines)
1139
	(Fx_create_frame, x_create_tip_frame): Adjust adjust_frame_size calls.
1140 1141 1142 1143 1144 1145 1146 1147
	(x_set_tool_bar_lines, x_change_tool_bar_height): Make sure that
	frame can get resized when tool-bar-lines parameter changes from
	or to zero.
	(Fw32_frame_menu_bar_size): Return fourth value.
	(Fw32_frame_rect): Block input around system calls
	(Fx_frame_geometry): New function.
	* w32menu.c (set_frame_menubar): Adjust adjust_frame_size call.
	* w32term.c (x_new_font): Adjust adjust_frame_size call.
1148 1149
	* widget.c (EmacsFrameSetCharSize): Adjust frame_inhibit_resize call.
	* window.c (Fset_window_configuration): Adjust adjust_frame_size call.
1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162
	* xfns.c (x_set_menu_bar_lines, x_set_internal_border_width)
	(Fx_create_frame): Adjust adjust_frame_size calls.
	(x_set_tool_bar_lines, x_change_tool_bar_height): Make sure that
	frame can get resized when tool-bar-lines parameter changes from
	or to zero.
	(Fx_frame_geometry): New function.
	* xmenu.c (update_frame_menubar): On Lucid call
	adjust_frame_size with one pixel less height to avoid that
	repeatedly adding/removing the menu bar grows the frame.
	(free_frame_menubar): On Motif arrange to optionally preserve
	the old frame height when removing the menu bar.
	* xterm.c (x_new_font): Adjust adjust_frame_size call.

1163 1164 1165 1166 1167 1168
2014-11-03  Eli Zaretskii  <eliz@gnu.org>

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

1169 1170 1171 1172
2014-11-03  Jan Djärv  <jan.h.d@swipnet.se>

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

1173 1174
2014-11-02  Jan Djärv  <jan.h.d@swipnet.se>

Jan Djärv's avatar
Jan Djärv committed
1175 1176 1177
	* nsimage.m (allocInitFromFile:): Initialize bmRep.
	(dealloc): Release bmRep.

1178 1179 1180 1181 1182 1183 1184 1185 1186
	* nsterm.h (EmacsImage): Remove imageListNext, refCount, reference,
	imageListSetNext, imageListNext.

	* nsimage.m (ImageList, imageListNext, imageListSetNext:)
	(reference): Remove.
	(allocInitFromFile:): Remove searching ImageList and calling
	reference (Bug#18918).
	(dealloc): Remove handling if ImageList.

Andreas Schwab's avatar
Andreas Schwab committed
1187 1188 1189 1190
2014-11-02  Andreas Schwab  <schwab@linux-m68k.org>

	* process.c (catch_child_signal): Fix incorrect assertion.

1191
2014-11-01  Jan Djärv  <jan.h.d@swipnet.se>
1192

Jan Djärv's avatar
Jan Djärv committed
1193 1194 1195
	* macfont.m (macfont_draw):
	* nsterm.m (ns_mouse_position, judge): Clean up merge conflict.

1196
	* macfont.m (macfont_glyph_extents): Turn off synthetic bold
1197
	if force_integral_p (i.e. no antialias).
1198
	(macfont_draw): Check ns_antialias_text, also turn off synthetic
1199 1200
	bold if no antialias (Bug#18876).

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

1204 1205 1206 1207 1208 1209 1210 1211
	* nsterm.h (ns_set_doc_edited): Declare taking no args.

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

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

1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223
	* nsterm.h (EmacsScroller): Replace Lisp_Object win with
	struct window* (Bug#18889).
	Remove getMouseMotionPart.
	(ns_output): Make icon_top/left int.

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

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

1224 1225 1226 1227 1228 1229 1230
2014-11-01  Eli Zaretskii  <eliz@gnu.org>

	* keyboard.c (readable_events): When FLAGS include
	READABLE_EVENTS_FILTER_EVENTS, ignore BUFFER_SWITCH_EVENT events.
	This avoids returning non-nil from input-pending-p when only such
	events are in the queue.  (Bug#18856)

1231 1232
2014-11-01  Jan Djärv  <jan.h.d@swipnet.se>

1233 1234 1235 1236 1237 1238
	* nsselect.m (QCLIPBOARD, QSECONDARY, QTEXT, QFILE_NAME)
	(NXPrimaryPboard, NXSecondaryPboard): Declare static.
	(Qforeign_selection): Remove.
	(ns_get_local_selection): Identation fix.
	(syms_of_nsselect): Remove Qforeign_selection, ns-lost-selection-hooks

1239 1240 1241 1242
	* nsselect.m (ns_get_local_selection): Remove calling of
	functions in Vselection_converter_alist (Bug#18911).
	(syms_of_nsselect): Remove Vselection_converter_alist.

1243
2014-10-31  Dmitry Antipov  <dmantipov@yandex.ru>
1244 1245 1246 1247

	* font.c (copy_font_spec): Redesign to avoid Fcopy_alist
	and unnecessary initialization.  Adjust comments.

1248 1249 1250 1251 1252 1253 1254
2014-10-30  Eli Zaretskii  <eliz@gnu.org>

	* bidi.c (bidi_cache_reset_to): Invalidate bidi_cache_last_idx by
	setting it to -1.
	(bidi_find_bracket_pairs): Pass to bidi_cache_reset_to a relative
	index, not an absolute one, as that's what the function expects.

1255 1256 1257 1258 1259
2014-10-30  Dmitry Antipov  <dmantipov@yandex.ru>

	* xfaces.c (Finternal_set_lisp_face_attribute): Don't try to realize
	font on an initial frame when running as a daemon (Bug#18869).

1260 1261
	* fontset.c (toplevel): Adjust comment to match 2014-06-19 change.

1262
2014-10-30  Eli Zaretskii  <eliz@gnu.org>
1263 1264 1265 1266

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

1267
2014-12-27  Eli Zaretskii  <eliz@gnu.org>
1268

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

1273 1274 1275 1276
2014-10-28  Ulf Jasper  <ulf.jasper@web.de>

	* xml.c (parse_region): Do not forget the first document child.

1277 1278 1279 1280 1281 1282 1283 1284
2014-10-25  Jan Djärv  <jan.h.d@swipnet.se>

	* nsselect.m: pasteboard_changecount is new.
	(ns_store_pb_change_count, ns_get_pb_change_count)
	(ns_get_our_change_count_for): New functions.
	(ns_string_to_pasteboard_internal): Correct comment.
	type => gtype in eassert, Call ns_store_pb_change_count.
	(Fns_own_selection_internal): Remove data, use value (Bug#18799).
1285 1286
	(Fns_disown_selection_internal, Fns_selection_owner_p):
	Replace Vselection_alist check, with change count check.
1287 1288 1289 1290
	(Fns_get_selection): Initialize val to Qnil.  Only get local
	selection if change counts match (Bug#18799).
	(nxatoms_of_nsselect): Initialize pasteboard_changecount.

1291 1292
2014-10-25  Noam Postavsky  <npostavs@users.sourceforget.net>

Glenn Morris's avatar
Glenn Morris committed
1293
	* w32proc.c (create_child): If calling a quoted batch file,
1294 1295
	pass NULL for exe.  (Bug#18745)

1296 1297 1298 1299 1300 1301
2014-10-24  Eli Zaretskii  <eliz@gnu.org>

	* bidi.c (bidi_resolve_explicit, bidi_find_bracket_pairs)
	(bidi_resolve_brackets): Use end of string position rather than ZV
	when iterating over a string.  (Bug#18815)

1302 1303 1304 1305 1306 1307 1308
2014-10-24  Martin Rudalics  <rudalics@gmx.at>

	* keyboard.c (make_lispy_position): Return coordinates also when
	on scroll bars, fringes, margins or not in a window.
	* xdisp.c (show_mouse_face): Don't change cursor face during
	mouse tracking.

1309 1310 1311
2014-10-23  Martin Rudalics  <rudalics@gmx.at>

	* frame.c (Fset_frame_height, Fset_frame_width, Fset_frame_size)
1312 1313
	(frame_resize_pixelwise, frame_inhibit_implied_resize):
	Fix doc-strings (Bug#18789).
1314

1315 1316 1317 1318
2014-10-23  Paul Eggert  <eggert@cs.ucla.edu>

	* Makefile.in (ACLOCAL_INPUTS): Omit unnecessary use of 'wildcard'.

1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339
2014-10-22  Eli Zaretskii  <eliz@gnu.org>

	Optimize redisplay of simple bracketed text.
	* bidi.c (bidi_cache_reset_to): New function.
	(bidi_cache_reset): Call it.
	(bidi_init_it, bidi_line_init): Initialize the bracket_pairing_pos
	member to -1.
	(bidi_resolve_explicit): Reset bracket_pairing_pos and
	bracket_enclosed_type only if bracket_pairing_pos's value is not
	ZV.
	(MAX_BPA_STACK): Make sure the value is signed.
	(PUSH_BPA_STACK): If the BPA stack overflows, don't bail out, but
	stop pushing values onto the stack.
	(bidi_find_bracket_pairs): If the bracketed text is only on the
	base embedding level, remove all the states cached by this
	function from the cache, and return zero, so that the brackets in
	this segment of text are processed as normal neutrals.
	(bidi_resolve_brackets): Detect the brackets that are to be
	processed as neutrals, and don't call bidi_find_bracket_pairs on
	them.  (Bug#18778)

1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357
2014-10-21  Stefan Monnier  <monnier@iro.umontreal.ca>

	* w32select.c (Fw32_selection_exists_p): Rename from
	Fx_selection_exists_p.
	(syms_of_w32select): Adjust accordingly.

	* w16select.c (Fw16_selection_exists_p): Rename from
	Fx_selection_exists_p.
	(syms_of_win16select): Adjust accordingly.

	* nsselect.m (ns_get_local_selection): Signal error rather than `quit'.
	(Fns_own_selection_internal): Tighten scoping.
	(Fns_selection_exists_p): Rename from Fx_selection_exists_p.
	(Fns_get_selection): Rename from Fx_get_selection_internal.
	(Fns_get_selection_internal, Fns_store_selection_internal):
	Remove functions.
	(syms_of_nsselect): Adjust accordingly.

1358 1359 1360 1361 1362 1363 1364
2014-10-21  Martin Rudalics  <rudalics@gmx.at>

	* w32fns.c (Fw32_frame_menu_bar_size): New function.
	* w32term.c (x_set_window_size): Account for wrapped menu bar
	lines when setting up frame height (Bug#15174 and Bug#18720).
	(w32_add_wrapped_menu_bar_lines): New variable.

Stefan Monnier's avatar
Stefan Monnier committed
1365
2014-10-21  Stefan Monnier  <monnier@iro.umontreal.ca>
1366 1367 1368 1369

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

1370 1371
2014-10-20  Glenn Morris  <rgm@gnu.org>

1372 1373
	* Merge in all changes up to 24.4 release.

1374 1375
2014-10-19  Jan Djärv  <jan.h.d@swipnet.se>

1376 1377 1378
	* gtkutil.c (xg_update_menubar, xg_update_menu_item): Only call
	g_object_notify for label if Gtk+ >= 2.16 (Bug#16522).

1379 1380 1381 1382 1383 1384
	* xterm.h (x_output): Remove net_wm_state_hidden_seen.

	* xterm.c (handle_one_xevent): Check return value from
	x_handle_net_wm_state, remove net_wm_state_hidden_seen (Bug#18722).
	(get_current_wm_state): Remove net_wm_state_hidden_seen setting.

1385 1386 1387 1388 1389 1390 1391
	* gtkutil.c (create_dialog): Don't use gtk_dialog_get_action_area on
	Gt+ >= 3.12, or gtk_misc_set_alignment on Gtk+ >= 3.14 (Bug#18674).
	(make_widget_for_menu_item): Don't use gtk_misc_set_alignment on
	Gtk+ >= 3.14 (Bug#18674).
	(update_frame_tool_bar): Don't use  gtk_misc_set_padding on
	Gtk+ >= 3.14 (Bug#18674).

1392 1393 1394 1395 1396 1397 1398 1399 1400
2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>

	* gtkutil.c: Remove no-longer-used code.
	(xg_update_menubar): Remove unused local and unnecessary call to
	gtk_menu_item_get_submenu.
	(XG_TOOL_BAR_PROXY_BUTTON, xg_tool_bar_proxy_callback)
	(xg_get_tool_bar_widgets, xg_tool_bar_proxy_help_callback)
	(TOOLBAR_TOP_WIDGET): Remove; no longer used.

1401 1402
2014-10-18  Jan Djärv  <jan.h.d@swipnet.se>

1403 1404
	* xfns.c (syms_of_xfns): Remove x-gtk-whole-detached-tool-bar.

1405 1406 1407 1408 1409 1410 1411 1412 1413 1414
	* xterm.h (handlebox_widget): Remove.

	* xmenu.c (set_frame_menubar): Remove GTK block that calls
	xg_have_tear_offs.

	* gtkutil.h (xg_have_tear_offs): Remove declaration.

	* gtkutil.c (XG_TEXT_CANCEL, XG_TEXT_OPEN, XG_TEXT_OK): New defines
	to handle Gtk versions.
	(xg_get_file_with_chooser): Use them.
Stefan Monnier's avatar
Stefan Monnier committed
1415 1416
	(xg_have_tear_offs, tearoff_remove, tearoff_activate):
	Remove (create_menus): Remove teroff argument and code.
1417
	Remove call to gtk_menu_set_title.
Stefan Monnier's avatar
Stefan Monnier committed
1418 1419
	(xg_update_menubar, xg_update_submenu): Remove tearoff code.
	Adjust args to create_menus.
1420 1421 1422 1423 1424 1425 1426 1427 1428 1429
	(xg_tool_bar_menu_proxy, xg_tool_bar_detach_callback)
	(xg_tool_bar_attach_callback, TOOLBAR_TOP_WIDGET): Remove.
	(xg_pack_tool_bar): Replace TOOLBAR_TOP_WIDGET, remove detach code.
	(xg_make_tool_item): Remove detach code.
	(xg_update_tool_bar_sizes): Replace TOOLBAR_TOP_WIDGET.
	(find_icon_from_name): New function.
	(update_frame_tool_bar): Remove GtkStockItem code, move to
	find_icon_from_name.  Let stock be a list of icon names to try.
	Only use gtk_image_new_from_stock on Gtk+ < 3.10.
	Replace TOOLBAR_TOP_WIDGET.
Stefan Monnier's avatar
Stefan Monnier committed
1430 1431
	(free_frame_tool_bar, xg_change_toolbar_position ):
	Replace TOOLBAR_TOP_WIDGET.
1432 1433
	(xg_initialize): Remove tearoff code.

1434 1435
2014-10-18  Eli Zaretskii  <eliz@gnu.org>

Eli Zaretskii's avatar