aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge from emacs-24; up to 2014-07-02T00:57:53Z!juri@jurta.orgGlenn Morris2014-08-271-0/+17
|\
| * Fix unoptimized build on MSDOS.Eli Zaretskii2014-08-251-0/+4
| | | | | | | | | | | | | | msdos/sedlibmk.inp (gl_LIBOBJS): Add execinfo.o. Reported by Juan Manuel Guerrero <juan.guerrero@gmx.de>. src/conf_post.h (_GL_EXECINFO_INLINE) [MSDOS]: Don't define.
| * src/xdisp.c (handle_stop): Improve commentary.Eli Zaretskii2014-08-181-0/+2
| |
| * Fix bug #18276 with vertical motion through a display property.Eli Zaretskii2014-08-181-0/+5
| | | | | | | | | | src/indent.c (Fvertical_motion): Fix vertical motion up through a display property after a newline.
| * Avoid inflooping in redisplay caused by hscrolled R2L lines.Eli Zaretskii2014-08-171-0/+7
| | | | | | | | | | | | | | | | | | src/xdisp.c (display_line): Don't assume that the call to reseat_at_next_visible_line_start ends up at a character immediately following the newline on the previous line. Avoids setting the ends_at_zv_p flag on screen lines that are not at or beyond ZV, which causes infloop in redisplay. For the details, see http://lists.gnu.org/archive/html/emacs-devel/2014-08/msg00368.html.
| * Fix bug #18277 with mouse clicks on R2L lines.Eli Zaretskii2014-08-171-0/+5
| | | | | | | | | | src/dispnew.c (buffer_posn_from_coords): Fix mirroring of X coordinate for hscrolled R2L screen lines.
* | * sysdep.c (LC_COLLATE, LC_COLLATE_MASK): Give individual defaults.Paul Eggert2014-08-271-0/+5
| | | | | | | | Fixes: debbugs:18051
* | Fix bug #18339 with segfault when $ is typed into empty LaTeX buffer.Eli Zaretskii2014-08-271-0/+5
| | | | | | | | src/syntax.c (scan_lists): Don't examine positions before BEGV.
* | Improve robustness of new string-collation code.Paul Eggert2014-08-271-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac (newlocale): Check for this, not for uselocale. * src/sysdep.c (LC_COLLATE, LC_COLLATE_MASK, freelocale, locale_t) (newlocale, wcscoll_l): Define substitutes for platforms that lack them, so as to simplify the mainline code. (str_collate): Simplify the code by assuming the above definitions. Use wcscoll_l, not uselocale, as uselocale is too fragile. For example, the old version left the Emacs in the wrong locale if wcscoll reported an error. Use 'int', not ptrdiff_t, for the int result. Report an error if newlocale fails. Fixes: debbugs:18051
* | * lisp.h (str_collate):Michael Albinus2014-08-271-0/+6
| | | | | | | | | | * sysdep.c (str_collate): Return int. (str_collate) [__STDC_ISO_10646__]: Propagate error of wcscoll.
* | * src/keyboard.c (Vtop_level_message): Rename toDmitry Antipov2014-08-271-0/+4
| | | | | | | | | | | | | | | | Vinternal__top_level_message, as suggested by Stefan Monnier in http://lists.gnu.org/archive/html/emacs-devel/2014-08/msg00493.html All related users changed. * lisp/startup.el (normal-top-level): Now use internal--top-level-message. * doc/lispref/eval.texi (Eval): Mention possible recovery from stack overflow.
* | Fix some glitches in previous change.Dmitry Antipov2014-08-271-0/+9
| | | | | | | | | | | | | | | | * sysdep.c (stack_direction): Replace stack_grows_down to simplify calculation of stack boundaries. (handle_sigsegv): Check whether we really crash somewhere near to stack boundary, and handle fatal signal as usual if not. (init_sigsegv): Adjust accordingly.
* | ChangeLog fixesGlenn Morris2014-08-261-3/+4
| |
* | Handle C stack overflow caused by too nested Lisp evaluation.Dmitry Antipov2014-08-261-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac: Check for sigaltstack and related sigaction support. Unconditionally check for sigsetjmp and siglongjmp. (HAVE_STACK_OVERFLOW_HANDLING): Define if we can support it. * src/lisp.h (toplevel) [HAVE_STACK_OVERFLOW_HANDLING]: Declare siglongjmp point to transfer control from SIGSEGV handler. * src/keyboard.c (return_to_command_loop, recover_top_level_message) [HAVE_STACK_OVERFLOW_HANDLING]: New variables. (regular_top_level_message): New variable. (command_loop) [HAVE_STACK_OVERFLOW_HANDLING]: Handle non-local exit from SIGSEGV handler and adjust message displayed by Vtop_level if appropriate. (syms_of_keyboard): DEFVAR Vtop_level_message and initialize new variables described above. * src/sysdep.c [HAVE_SYS_RESOURCE_H]: Include sys/resource.h as such. (stack_grows_down, sigsegv_stack, handle_sigsegv) [HAVE_STACK_OVERFLOW_HANDLING]: New variables and function. (init_sigsegv): New function. (init_signals): Use it. * lisp/startup.el (normal-top-level): Use top-level-message.
* | * configure.ac (G_SLICE_ALWAYS_MALLOC): Remove obsolete macro.Ken Brown2014-08-251-0/+5
| | | | | | | | | | * src/emacs.c (main): Remove use of obsolete macro G_SLICE_ALWAYS_MALLOC.
* | Implement locale-sensitive string collation for MS-Windows. (Bug#18051)Eli Zaretskii2014-08-251-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | src/w32proc.c (get_lcid_callback, get_lcid, w32_compare_strings): New functions. src/w32.h (w32_compare_strings): Add prototype. src/w32.c <g_b_init_compare_string_w>: New global flag. (globals_of_w32): Initialize it. src/sysdep.c (str_collate) [WINDOWSNT]: Implementation for MS-Windows. src/fns.c (Fstring_collate_lessp, Fstring_collate_equalp) [WINDOWSNT]: Call str_collate on MS-Windows. etc/NEWS: Mention that string-collate-* functions are supported on MS-Windows as well.
* | One more minor cleanup of font subsystem.Dmitry Antipov2014-08-251-0/+12
| | | | | | | | | | | | | | | | | | | | | | * font.h (struct font_driver): Convert text_extents to return void because returned value is never actually used. * macfont.c (macfont_text_extents): * w32font.c (w32font_text_extents): * xftfont.c (xftfont_text_extents): Adjust to return void and assume that 'metrics' argument is always non-NULL. * ftfont.c (ftfont_text_extents): * xfont.c (xfont_text_extents): Likewise. Avoid redundant memset.
* | Minor cleanups of str_collate fix.Paul Eggert2014-08-241-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | * fns.c (str_collate): Move decl from here ... * lisp.h (str_collate): ... to here. * sysdep.c (str_collate): Prune away some of the forest of ifdefs. Remove unnecessary casts. Use SAFE_NALLOCA to avoid potential problems with integer overflow. Don't assume setlocale succeeds. Remove unnecessary test before restoring locale via setlocale, and free the copied setlocale string when done with it. Fixes: debbugs:18051
* | Add string collation.Michael Albinus2014-08-241-0/+6
| | | | | | | | | | | | | | | | * configure.ac: Check also for the uselocale function. * src/fns.c (Fstring_collate_lessp, Fstring_collate_equalp): New DEFUNs. * src/sysdep.c (str_collate): New function. (Bug#18051)
* | Fix bug #18302 with minor issues in the MSYS2/MinGW64 build.Karol Ostrovsky2014-08-231-0/+7
| | | | | | | | | | | | | | | | | | | | | | configure.ac: Accept "*-mingw*", not just "*-mingw32", as canonical name of a MinGW build, because using MSYS2 'uname' produces "MINGW64". src/Makefile.in (emacs$(EXEEXT)): Retry deletion of bootstrap-emacs if the initial "rm -f" fails. This is for MinGW builds, where MS-Windows will not allow deleting the executable file of a running program.
* | Remove 16-bit limitations in scroll bar position reporting on MS-Windows.Eli Zaretskii2014-08-201-0/+10
| | | | | | | | | | | | | | | | | | | | src/w32term.c (w32_scroll_bar_handle_click) (w32_horizontal_scroll_bar_handle_click) (x_scroll_bar_report_motion) (x_horizontal_scroll_bar_report_motion): For SB_THUMBPOSITION and SB_THUMBTRACK, use the 32-bit position information returned by GetScrollInfo, not the 16-bit information returned in the Windows message sent to us.
* | Fix horizontal scroll bar dragging in R2L paragraphs.Eli Zaretskii2014-08-191-0/+6
| | | | | | | | | | | | src/w32term.c (w32_horizontal_scroll_bar_handle_click): Fix the second coordinate ('y') reported for dragging the horizontal scroll bar thumb.
* | * xdisp.c (erase_phys_cursor): Fix confusion between window-relativeYAMAMOTO Mitsuharu2014-08-191-0/+5
| | | | | | | | and text area-relative x-coordinates.
* | Avoid overwriting the reversed_p flags in the glyph matrices.Eli Zaretskii2014-08-171-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | Avoid overwriting the reversed_p flags in the glyph matrices when init_iterator or start_display are called. src/xdisp.c (init_iterator): Don't initialize the reversed_p flag of the glyph row here. (tool_bar_height, redisplay_tool_bar, try_window) (try_window_reusing_current_matrix, try_window_id) (get_overlay_arrow_glyph_row, display_menu_bar): Initialize the reversed_p flag of the iterator's glyph row where the glyph row is going to be redrawn.
* | * xdisp.c (set_horizontal_scroll_bar): Don't use uninitialized local.Paul Eggert2014-08-161-0/+4
| |
* | Preliminary attempt to fix horizontal scroll bar dragging with bidi text.Martin Rudalics2014-08-161-0/+7
| | | | | | | | | | | | | | | | | | * w32term.c (w32_horizontal_scroll_bar_handle_click): In y part of emacs_event return length from si.nPage to si.nMax. * xdisp.c (set_horizontal_scroll_bar): For right-to-left text interchange start and end of thumb. * scroll-bar.el (scroll-bar-horizontal-drag-1): Use cdr of portion-whole for scrolling right-to-left text.
* | Merge from emacs-24; up to 2014-06-29T18:32:35Z!michael.albinus@gmx.deGlenn Morris2014-08-141-0/+5
|\ \ | |/
| * * src/gmalloc.c (_malloc_mutex, _aligned_blocks_mutex) [CYGWIN]: Use ↵Ken Brown2014-08-111-0/+5
| | | | | | | | ERRORCHECK mutexes. (Bug#18222)
* | In set_menu_bar_lines call change_frame_size instead of set_menu_bar_lines_1.Martin Rudalics2014-08-121-0/+6
| | | | | | | | | | | | * frame.c (set_menu_bar_lines_1): Remove. (set_menu_bar_lines): Call change_frame_size instead of set_menu_bar_lines_1.
* | Fix default width not being 80, but 77.Jan Djärv2014-08-111-0/+5
| | | | | | | | | | * nsfns.m (Fx_create_frame): Call adjust_frame_size, set f->official.
* | Merge from emacs-24; up to 2014-06-28T23:35:17Z!rgm@gnu.orgGlenn Morris2014-08-101-0/+30
|\ \ | |/
| * Revert 2013-01-31 change that decides coding system before backing upGlenn Morris2014-08-101-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It causes a more serious problem than the one it solves. This closes bug#18141, and reopens bug#13522. * lisp/files.el (basic-save-buffer-2): Revert 2013-01-31 change. * src/fileio.c: Revert 2013-01-31 change. (choose_write_coding_system): No longer callable from Lisp. Move last piece back here from Fwrite_region. (Fwrite_region, syms_of_fileio): Update for above changes. * test/automated/data/files-bug18141.el.gz: New file. * test/automated/files.el (files-test-bug-18141-file): New variable and test.
| * Second attempt to fix some doc-strings in window.c.Martin Rudalics2014-08-091-0/+8
| | | | | | | | | | | | | | | | * window.c (Fwindow_new_total, Fwindow_new_normal) (Fwindow_new_pixel, Fset_window_new_pixel) (Fset_window_new_total, Fset_window_new_normal): Second attempt to fix the doc-strings of these functions. See: http://lists.gnu.org/archive/html/bug-gnu-emacs/2014-08/msg00287.html
| * Fix some doc-strings in window.c (Bug#18112) (Bug#18194).Martin Rudalics2014-08-081-0/+8
| | | | | | | | | | | | | | | | * window.c (Fwindow_valid_p): Fix doc-string (Bug#18194). (Fwindow_new_total, Fwindow_normal_size, Fwindow_new_normal) (Fwindow_new_pixel, Fset_window_new_pixel) (Fset_window_new_total, Fset_window_new_normal) (Fwindow_resize_apply): Fix doc-strings (see Bug#18112).
| * Fix bug #18162 with assertion violations due to empty face cache.Eli Zaretskii2014-08-071-0/+5
| | | | | | | | | | src/fontset.c (Finternal_char_font): Recompute basic faces if the frame's face cache was cleared.
| * Fix bug with uninitialized undo list of an indirect buffer (Bug#18180).Dmitry Antipov2014-08-051-0/+6
| | | | | | | | | | * buffer.c (Fmake_indirect_buffer): Initialize undo list with the base buffer's undo list.
* | Fix a couple of recent inadvertent breaks of the MSDOS port.Reuben Thomas2014-08-101-0/+6
| | | | | | | | | | src/msdos.c: include required menu.h src/term.c: set correct menu_show_hook on MSDOS.
* | Fix handling of menu bar line on TTY frames (Bug#18136) (Bug#18196).Martin Rudalics2014-08-101-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * dispnew.c (handle_window_change_signal): * keyboard.c (Fsuspend_emacs): Call change_frame_size with frame's menu bar lines subtracted from height. * frame.c (frame_inhibit_resize): Inhibit resizing of TTY frames. (adjust_frame_size): Count in menu bar when setting FrameRows. (make_terminal_frame): When setting up the frame's lines and text height don't count in the menu bar. (Fmake_terminal_frame): Call adjust_frame_size with menu bar lines subtracted from height. (do_switch_frame): Set tty's FrameRows to number of total lines of frame. (Fframe_pixel_height, Fframe_pixel_width): If no window system is used, return total number of lines and columns. * menu.c (emulate_dialog_with_menu): Use FRAME_TOTAL_LINES instead of FRAME_LINES. * term.c (OUTPUT, tty_set_terminal_modes) (tty_set_terminal_window, tty_set_scroll_region) (tty_clear_to_end, tty_write_glyphs, tty_write_glyphs_with_face) (tty_ins_del_lines, tty_menu_display, tty_menu_activate): Use FRAME_TOTAL_LINES instead of FRAME_LINES. (Fresume_tty): Use FRAME_TOTAL_LINES instead of FRAME_LINES. Call change_frame_size with frame's menu bar lines subtracted from height. * w32console.c (w32con_clear_to_end, w32con_clear_frame) (w32con_ins_del_lines): Use FRAME_TOTAL_LINES instead of FRAME_LINES.
* | src/alloc.c: remove a stray braceReuben Thomas2014-08-091-0/+1
| |
* | Add changelog entry missing from previous commitReuben Thomas2014-08-091-0/+1
| |
* | Remove support for DJGPP < 2.02Reuben Thomas2014-08-091-0/+5
| | | | | | | | | | This also removes some specially-licensed files and lots of accompanying explanation.
* | * widget.c (DEFAULT_FACE_FONT, EmacsFrameSetValues, setup_frame_gcs)Jan Djärv2014-08-091-0/+8
| | | | | | | | | | | | | | | | | | (resources, setup_frame_cursor_bits): Remove unused variables and functions, esp. wrt. font. * widgetprv.h (EmacsFramePart): Remove font. Fixes: debbugs:18227
* | * xterm.c (x_delete_terminal): Plug file descriptor leak.Paul Eggert2014-08-071-0/+4
| | | | | | | | Fixes: debbugs:17691
* | Fix a few ``MS-DOG''s overlooked in the previous commit.Reuben Thomas2014-08-071-0/+8
| | | | | | | | | | | | | | | | | | * README: ``MSDOG'' becomes ``MS-DOS''. * lisp/arc-mode.el: Fix a couple of ``MS-DOG''s missed in the previous commit. * lisp/file-mode.el: ditto. * src/editfns.c: Fix a couple of ``MS-DOG''s missed in the previous commit. * src/xfaces.c: ditto.
* | Don't redeem scroll bars that have been turned off.Martin Rudalics2014-08-051-0/+6
| | | | | | | | | | | | * w32term.c (w32_redeem_scroll_bar): * xterm.c (XTredeem_scroll_bar): Revert part of last change by not redeeming scroll bars that have been turned off.
* | * keyboard.c (safe_run_hooks): Follow the convenient style to bindDmitry Antipov2014-08-051-0/+7
| | | | | | | | | | | | inhibit-quit to t and pass 2 args to safe_run_hook_funcall. See <http://lists.gnu.org/archive/html/emacs-devel/2014-08/msg00077.html>. (safe_run_hook_funcall): Adjust accordingly.
* | Fix scroll bar handling for non-toolkit builds.Martin Rudalics2014-08-041-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * frame.h (FRAME_HAS_HORIZONTAL_SCROLL_BARS): Condition correctly according to toolkit used. * frame.c (make_initial_frame, make_terminal_frame) (x_set_horizontal_scroll_bars, x_set_scroll_bar_height) (Vdefault_frame_horizontal_scroll_bars): Correctly condition assignments according to presence of toolkit scrollbars. * window.h (WINDOW_HAS_HORIZONTAL_SCROLL_BAR): Condition correctly according to toolkit used. * window.c (set_window_scroll_bars): Set horizontal scroll bar only if toolkit supports it. * w32term.c (w32_redeem_scroll_bar): Always redeem scroll bar if present. * xterm.c (x_scroll_bar_create): Initialize horizontal slot for non-toolkit builds. (XTredeem_scroll_bar): Always redeem scroll bar if present.
* | * keyboard.c (safe_run_hook_funcall): Avoid consing aroundDmitry Antipov2014-08-041-0/+7
| | | | | | | | | | | | Vinhibit_quit and prefer internal_condition_case_n to pass args. (safe_run_hooks_error, safe_run_hooks_1): Adjust accordingly. (safe_run_hooks): Remove comment which is not relevant any more.
* | Don't let big frames overrun the stack.Paul Eggert2014-08-031-0/+4
| | | | | | | | | | * dispnew.c (mirrored_line_dance, mirror_line_dance, scrolling): Use SAFE_NALLOCA, not alloca.
* | Merge from emacs-24; up to 2014-06-27T16:27:08Z!rgm@gnu.orgGlenn Morris2014-08-031-0/+11
|\ \ | |/