aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | * frame.c, frame.h (frame_char_to_pixel_position)Paul Eggert2014-05-281-0/+6
| | | | | | | | | | (frame_set_mouse_position): Now static, and made private in frame.c rather than public in frame.h.
* | Refactor mouse positioning stuff to avoid code duplication.Dmitry Antipov2014-05-281-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | * frame.h (frame_char_to_pixel_position): New function. (x_set_mouse_position): Rename to... (frame_set_mouse_position): ...new function. (frame_set_mouse_pixel_position): Add prototype. * nsterm.m, w32term.c, xterm.c (x_set_mouse_pixel_position): Rename to frame_set_mouse_pixel_position. * frame.c (Fset_mouse_pixel_position, Fset_mouse_position): Adjust users. * xterm.h, w32term.h ( x_set_mouse_position) (x_set_mouse_pixel_position): Remove prototypes.
* | * xterm.c (x_free_frame_resources): Fix last change.Dmitry Antipov2014-05-281-1/+2
| |
* | On X, always make pointer visible when deleting frame (Bug#17609).Dmitry Antipov2014-05-281-0/+12
| | | | | | | | | | | | | | | | | | | | | | * frame.c (frame_make_pointer_visible, frame_make_pointer_invisible): Pass frame as arg. * frame.h (frame_make_pointer_visible, frame_make_pointer_invisible): Adjust prototypes. * cmds.c (Fself_insert_command): Use SELECTED_FRAME. * keyboard.c (gobble_input): If there is no terminal input error, make sure the pointer is visible for all frames on this terminal. * xterm.c (x_free_frame_resources): Always enable pointer visibility.
* | * lisp/subr.el (zerop): Move from C. Add compiler-macro.Stefan Monnier2014-05-271-4/+17
| | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/byte-opt.el (byte-optimize-zerop): Remove. * src/data.c (Fzerop): Move to Elisp. (syms_of_data): Don't defsubr it. * src/keyboard.c (echo_keystrokes_p): New function. (read_char, record_menu_key, read_key_sequence): Use it. Fixes: debbugs:17475
* | * src/bytecode.c (FETCH) [BYTE_CODE_SAFE]: Check the bytecode wasn'tStefan Monnier2014-05-271-0/+5
| | | | | | | | relocated from under us.
* | Use mmap(2) emulation for buffer text on MS-Windows.Fabrice Popineau2014-05-271-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/Makefile.in (C_HEAP_SWITCH): Get the predefined heap size from configure. (ADDSECTION, MINGW_TEMACS_POST_LINK): Remove, no longer used. src/lisp.h (NONPOINTER_BITS): Modify the condition to define to zero for MinGW, since it no longer uses gmalloc. src/buffer.c: Do not define mmap allocations functions for Windows. Remove mmap_find which is unused. Remove mmap_set_vars which does nothing useful. [WINDOWSNT]: Include w32heap.h. (init_buffer): Always allocate new memory for buffers. src/emacs.c: Remove mmap_set_vars calls. src/image.c (free_image): Undef free for Windows because it is redirected to our private version. src/unexw32.c (COPY_PROC_CHUNK): Use %p format for 64bits compatibility. (copy_executable_and_dump_data): Remove dumping the heap section. (unexec): Restore using_dynamic_heap after dumping. src/w32heap.c (dumped_data_commit, malloc_after_dump) (malloc_before_dump, realloc_after_dump, realloc_before_dump) (free_after_dump, free_before_dump, mmap_alloc, mmap_realloc) (mmap_free): New functions. src/w32heap.h: Declare dumped_data and mmap_* function prototypes. nt/inc/ms-w32.h: Switch to the system heap allocation scheme instead of GNU malloc and ralloc. nt/inc/sys/mman.h: New file. nt/INSTALL: Update for the new build requirements. etc/NEWS: Mention build changes on MS-Windows. configure.ac (C_HEAP_SWITCH) define for different values of dumped heap size depending on 32/64bits arch on Windows. Don't check for pthreads.h on MinGW32/64, it gets in the way. Use mmap(2) for buffers and system malloc for MinGW32/64.
* | * image.c (imagemagick_load_image): Use MagickRealType for localPaul Eggert2014-05-261-0/+4
| | | | | | | | | | 'color_scale', instead of double, to avoid a GCC warning about double promotion.
* | * xfns.c (Fx_window_property): Remove unused local.Paul Eggert2014-05-261-0/+2
| |
* | Don't kill already-reaped process.Paul Eggert2014-05-261-0/+9
| | | | | | | | | | | | | | | | | | | | * process.c (process_send_signal): Fix race condition where a subprocess was reaped by a signal handler between the check for liveness and calling 'kill', which meant that Emacs could in theory kill an innocent bystander process. Do the fix by blocking SIGCHLD in a critical section that checks liveness before killing. Fixes: debbugs:17561
* | Minor fixes for MS-Windows MinGW64 build.Eli Zaretskii2014-05-261-0/+5
| | | | | | | | | | | | src/w32.c (_ANONYMOUS_UNION, _ANONYMOUS_STRUCT): Define only if undefined. lib-src/ntlib.h (lseek): Don't redirect to _lseek.
* | * src/w32term.c (x_delete_display): Don't free dpyinfo->w32_id_name (see ↵Ken Brown2014-05-261-0/+5
| | | | | | | | bug#17510).
* | * nsfns.m (Fns_do_applescript): Put code in the wrong place. Here is correct.Jan Djärv2014-05-261-0/+3
| | | | | | | | Fixes: debbugs:17424
* | * nsfns.m (ns_do_applescript): Surround executeAndReturnErrorJan Djärv2014-05-261-0/+10
| | | | | | | | | | | | | | | | | | | | | | with calls to ns_init_events, ns_finish_events. * nsterm.h (ns_init_events, ns_finish_events): Declare. * nsterm.m (ns_init_events, ns_finish_events): New functions. (ns_read_socket, ns_select): Call ns_init_events, ns_finish_events. Fixes: debbugs:17424
* | Merge from emacs-24; up to 2014-05-26T10:21:18Z!rgm@gnu.orgGlenn Morris2014-05-251-0/+49
|\ \ | |/
| * Fix bug #17585 with incorrect vertical motion when linum-mode is on.Eli Zaretskii2014-05-251-0/+6
| | | | | | | | | | | | src/xdisp.c (move_it_in_display_line_to): Don't record wrap position if we are iterating over an object that generates glyphs for marginal areas.
| * * xdisp.c (safe__call1, safe__eval): Now static.Paul Eggert2014-05-241-0/+4
| |
| * Fix last commits in xdisp.c, which caused a crash at startup on w32.Eli Zaretskii2014-05-241-0/+6
| | | | | | | | | | | | | | | | src/xdisp.c (safe__call): Accept va_list argument instead of '...'. (safe_call, safe__call1): Construct a va_list argument for safe_call. (safe_call1): Call safe_call instead of safe__call directly. Fixes: debbugs:17577
| * Fix bug#17510 with a pointer freed more than once (Cygwin-w32-build).Ken Brown2014-05-241-0/+6
| | | | | | | | | | | | * src/w32term.c (x_delete_display) [CYGWIN]: Don't free dpyinfo->w32_id_name, to make sure it doesn't get freed more than once.
| * * src/xdisp.c: Bind inhibit-quit during pre-redisplay-function.Stefan Monnier2014-05-241-0/+8
| | | | | | | | | | | | | | | | | | (safe__call, safe__call1, safe__eval): New functions. (safe_call): Use it. (prepare_menu_bars): Use it for pre-redisplay-function. (display_mode_element): Same for `:eval'. Fixes: debbugs:17577
| * Fix port to 32-bit AIX.Paul Eggert2014-05-211-0/+7
| | | | | | | | | | | | | | | | | | | | * configure.ac (opsys): On Power Architecture, treat release 7 of AIX like releases 5 and 6. * src/unexaix.c (copy_text_and_data): Don't add text_scnptr to ptr twice. _text already includes this offset. (unrelocate_symbols): Don't cast 64-bit integer to pointer. Fixes: debbugs:17540
| * Fix bug #17539 with infinite recursion during scroll commands.Eli Zaretskii2014-05-211-0/+6
| | | | | | | | | | | | src/xdisp.c (move_it_in_display_line_to): Avoid infinite recursion: when closest_pos is identical to to_charpos, don't recurse, since we already tried that, and failed.
| * Fix bug #17524 with crashes in creating a new frame with invalid font.Eli Zaretskii2014-05-201-0/+8
| | | | | | | | | | | | | | | | src/w32fns.c (unwind_create_frame) [GLYPH_DEBUG]: If we are unwinding when frame's faces were not initialized yet, increment the frame's image-cache reference count before calling x_free_frame_resources. Don't dereference dpyinfo->terminal->image_cache if it is NULL.
* | Simplify NS font driver draw, merge from Macport.Jan Djärv2014-05-251-0/+11
| | | | | | | | | | | | | | | | | | | | | | * macfont.m (macfont_draw): Merge changes from Macport. * nsterm.m (ns_draw_glyph_string): Move isComposite and end from macfont.m, call draw with adjusted arguments so font drivers don't need to do that. * nsfont.m (nsfont_draw): Simplify as arguments are adjusted in nsterm.m now.
* | Avoid marking too deep portions of stack in mark_stack.Eli Zaretskii2014-05-241-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/alloc.c (garbage_collect_1): New function, with all of the guts of Fgarbage_collect. (mark_stack): Accept an argument END and don't mark Lisp objects on the stack beyond the address given by END. Calculation of END was moved to Fgarbage_collect. (Fgarbage_collect): Calculate the end address of the stack portion that needs to be examined by mark_stack, and pass that address to garbage_collect_1, which will pass it to mark_stack. See http://lists.gnu.org/archive/html/emacs-devel/2014-05/msg00270.html for more details about the underlying problems. In particular, this avoids dumping Emacs with the large hash-table whose value is held in purify-flag for most of the time loadup.el runs.
* | * xfns.c (x_window_property_intern): New function (code fromJan Djärv2014-05-241-0/+8
| | | | | | | | | | | | | | | | | | x_window_property). (Fx_window_property): Call x_window_property_intern. If property not found and NILP (source) and outer window != inner window, check outer window for property. Fixes: debbugs:17537
* | Supply malloc and alloc_size attributes for extern allocators.Paul Eggert2014-05-221-0/+12
| | | | | | | | | | | | | | | | | | | | | | This documents the C API, and helps GCC generate a bit better code. * conf_post.h (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE) (ATTRIBUTE_MALLOC_SIZE): New macros. * gmalloc.c (malloc, realloc, calloc): * gtkutil.h (malloc_widget_value): * lisp.h (ralloc, r_re_alloc, xmalloc, xzalloc, xrealloc, xnmalloc) (xnrealloc, xstrdup, xlispstrdup, record_xmalloc): Use them.
* | Don't assume that ImageMagick uses a 16-bit quantum.Paul Eggert2014-05-211-0/+6
| | | | | | | | | | | | | | * image.c (imagemagick_load_image): Port to hosts that do not use a 16-bit quantum, i.e., QuantumRange does not equal 65535. Fixes: debbugs:17519
* | * doc/lispref/sequences.texi (Sequence Functions): Update nreverse.Leo Liu2014-05-211-0/+4
| | | | | | | | * src/fns.c (Fnreverse): Accept strings for SEQ and update doc-string.
* | * dbusbind.c (xd_signature): Revert last 2 patches.Michael Albinus2014-05-201-0/+4
| |
* | Allow any non-nil value to count as true in bool-vector.Paul Eggert2014-05-191-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | Likewise for xd_signature in dbusbind.c. This is more consistent with the usual practice in Emacs, which is that any non-nil value counts as true. * doc/lispref/sequences.texi (Bool-Vectors): Coalesce discussion of how to print them. bool-vector's args need not be t or nil. * src/alloc.c (Fbool_vector): Don't require args to be t or nil. * src/dbusbind.c (xd_signature): Likewise, for booleans. * src/data.c, lisp.h (Qbooleanp): * src/lisp.h (CHECK_BOOLEAN): Remove. All uses removed.
* | * font.c (font_matching_entity): Extract font-entity objectDmitry Antipov2014-05-191-0/+3
| | | | | | | | from the vector of matching entities (Bug#17486).
* | * src/lisp.h (CHECK_BOOLEAN): New function.Dmitry Antipov2014-05-191-0/+9
| | | | | | | | | | | | | | | | | | * src/alloc.c (Fbool_vector): New function. (syms_of_alloc): Defsubr it. * src/data.c (Qbooleanp): New symbol. (syms_of_data): DEFSYM it. * src/dbusbind.c (xd_signature): Use CHECK_BOOLEAN. * doc/lispref/sequences.texi (Bool-vectors): Mention bool-vector.
* | Assume C99 or later.Paul Eggert2014-05-171-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/stdarg.in.h, lib/stdbool.in.h, m4/stdarg.m4, m4/stdbool.m4: Remove. * configure.ac (_AC_PROG_CC_C89): Define a dummy, to keep 'configure' smaller. (gl_PROG_CC_C99): Use this to get C99 or later. * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate. * admin/merge-gnulib (GNULIB_MODULES): Remove stdarg, stdbool. (GNULIB_TOOL_FLAGS): Avoid stdarg, stdbool. * doc/lispref/internals.texi (C Dialect): Document this. * etc/NEWS: Document this. * nt/gnulib.mk: Remove stdarg and stdbool modules. * src/bytecode.c (B__dummy__): Remove. * src/conf_post.h (bool_bf) [!NS_IMPL_GNUSTEP]: Use bool. (FLEXIBLE_ARRAY_MEMBER): Now always empty. * src/dbusbind.c (XD_DEBUG_MESSAGE) [!DBUS_DEBUG]: * src/regex.c (DEBUG_PRINT): Assume varargs macros. * src/lisp.h (DEFUN_FUNCTION_INIT): Remove. All uses now assume C99. Fixes: debbugs:17487
* | Always map new memory for buffers after dumping.Fabrice Popineau2014-05-171-0/+5
| | | | | | | | | | src/buffer.c (init_buffer) [USE_MMAP_FOR_BUFFERS]: Always map new memory for every buffer that was dumped.
* | * src/fns.c (Fnreverse): Allow vectors and bool vectors.Dmitry Antipov2014-05-151-0/+1
| | | | | | | | | | | | | | | | * doc/lispref/lists.texi (Building Cons Cells and Lists): Remove description of `nreverse' and generalize it... * doc/lispref/sequences.texi (Sequences): ...for sequences here. * tests/automated/fns-tests.el (fns-tests-nreverse) (fns-tests-nreverse-bool-vector): New tests.
* | * src/fns.c (Freverse): Allow vectors, bool vectors and strings.Dmitry Antipov2014-05-151-0/+4
| | | | | | | | | | | | * doc/lispref/lists.texi (Building Cons Cells and Lists): Remove description of `reverse' and generalize it... * doc/lispref/sequences.texi (Sequences): ...for sequences here.
* | Minor cleanup for terminal setup.Dmitry Antipov2014-05-141-0/+12
| | | | | | | | | | | | | | | | | | | | | | * termhooks.h (create_terminal): Adjust prototype. * terminal.c (create_terminal): Pass output method and RIF as args. (init_initial_terminal): * nsterm.m (ns_create_terminal): * term.c (init_tty): * w32term.c (w32_create_terminal): * xterm.c (x_create_terminal): Adjust users. Avoid redundant NULL initializers and add comments.
* | * keyboard.c (Qdeactivate_mark): Now static.Paul Eggert2014-05-131-0/+4
| |
* | If available, use Xfixes extension to do pointer blanking.Dmitry Antipov2014-05-131-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac (HAVE_XFIXES): Define if available. (XFIXES_CFLAGS, XFIXES_LIBS): New AC_SUBSTs. * src/Makefile.in (XFIXES_CFLAGS, XFIXES_LIBS): New var. * src/xfns.c (x_set_mouse_color): Do not call make_invisible_cursor here. (make_invisible_cursor): Move to... * src/xterm.c (make_invisible_cursor): ...here. (x_probe_xfixes_extension, xfixes_toggle_visible_pointer) (x_toggle_visible_pointer, x_setup_pointer_blanking): New functions. (x_term_init): Call to x_setup_pointer_blanking. (XTtoggle_invisible_pointer): Use blanking specific to this display. * src/xterm.h (struct x_display_info): New member toggle_visible_pointer.
* | * xdisp.c (draw_glyphs): Set clipping to highlight boundaries.YAMAMOTO Mitsuharu2014-05-121-0/+4
| |
* | Merge from emacs-24; up to 2014-05-12T06:15:47Z!rgm@gnu.orgGlenn Morris2014-05-111-0/+9
|\ \ | |/
| * * src/fileio.c (Ffile_executable_p): Doc tweak.Glenn Morris2014-05-101-0/+4
| |
| * * xsettings.c (init_gsettings): Use g_settings_schema_source_lookupJan Djärv2014-05-101-0/+5
| | | | | | | | | | | | instead of deprecated g_settings_list_schemas if possible. Fixes: debbugs:17434
* | Merge from emacs-24; up to 2014-05-08T03:34:20Z!rgm@gnu.orgGlenn Morris2014-05-071-0/+26
|\ \ | |/
| * * minibuf.c (read_minibuf): Avoid C99ism in previous patch.Paul Eggert2014-05-071-0/+4
| | | | | | | | Fixes: debbugs:17430
| * Fix initialization of minibuffer history variable, bug #17430.Jarek Czekalski2014-05-071-0/+6
| | | | | | | | | | * minibuf.c (read_minibuf): Initialize histval to Qnil if unbound. Move the initialization up to prevent any "value void" message.
| * * src/keyboard.c (Frecursive_edit): Ensure inc&dec of command_loop_levelSamuel Bronson2014-05-061-0/+5
| | | | | | | | | | | | are matched. Fixes: debbugs:17413
| * Fix tooltips pulling Emacs window to front on windows-nt, bug #17408.Jarek Czekalski2014-05-061-0/+6
| | | | | | | | | | * w32fns.c (Fx_show_tip): Add SWP_NOOWNERZORDER flag to SetWindowPos invocations.
| * * nsselect.m (Fx_selection_exists_p): Just return Qnil if window systemJan Djärv2014-05-051-0/+5
| | | | | | | | | | | | not initialized. Fixes: debbugs:17398