aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * insdel.c (adjust_after_replace, replace_range, del_range_2):Dmitry Antipov2013-08-022-17/+16
| | | | | Do not check whether undo is enabled because record_insert and record_delete does that themselves.
* * w32term.c (x_unfocus_frame): Remove unused dummy function.Dmitry Antipov2013-08-022-5/+1
|
* * xterm.h (struct x_output) [HAVE_X_I18N]: Remove xic_base_fontnameDmitry Antipov2013-08-024-29/+23
| | | | | | | | | | member which is not really used any more. (FRAME_XIC_BASE_FONTNAME): Remove. * xfns.c (xic_free_fontset): Adjust user. * xmenu.c (mouse_position_for_popup, x_activate_menubar) (update_frame_menubar, set_frame_menubar, free_frame_menubar) (create_and_show_popup_menu, xmenu_show, create_and_show_dialog) (xdialog_show): Use eassert for debugging check.
* Fix typos in ChangeLogs.Juanma Barranquero2013-08-021-4/+4
|
* * fileio.c, fns.c (merge): Move extern decl from here ...Paul Eggert2013-08-014-4/+6
| | | | * lisp.h (merge): ... to here.
* Fix last font-related change.Dmitry Antipov2013-08-013-8/+17
| | | | | | | | | * w32font.h (w32font_list_internal, w32font_match_internal): Fix prototype. * w32uniscribe.c (uniscribe_list, uniscribe_match): (uniscribe_list_family): Adjust to match font API change. MS-Windows breakage reported by Juanma Barranquero <lekktu@gmail.com> at http://lists.gnu.org/archive/html/emacs-devel/2013-08/msg00006.html.
* * frame.h (FRAME_MOUSE_UPDATE):Dmitry Antipov2013-08-013-8/+12
| | | | | * nsterm.m (ns_frame_up_to_date): Omit redundant check whether hlinfo->mouse_face_mouse_frame is non-NULL.
* Avoid redundant Lisp_Object <-> struct frame conversions in font API.Dmitry Antipov2013-08-0110-84/+80
| | | | | | | | | | | | | | | | | | * font.h (struct font_driver): Change list, match, and list_family functions to accept struct frame * as first arg. * font.c (font_score, font_compare, font_sort_entities): Remove prototypes. (font_sort_entities, font_list_entities, font_select_entity): (font_find_for_lface, Flist_fonts, Ffont_family_list): Adjust to match font API change. * xfont.c (xfont_list, xfont_match, xfont_list_family): * ftfont.c (ftfont_list, ftfont_match, ftfont_list_family): * ftxfont.c (ftxfont_list, ftxfont_match): * xftfont.c (xftfont_list, xftfont_match): * nsfont.m (nsfont_list, nsfont_match, nsfont_list_family): * w32font.c (w32font_list, w32font_match, w32font_list): (w32font_list_internal, w32_font_match_internal): Likewise. * xfaces.c (Fx_family_fonts): Adjust user.
* * xterm.c (any_help_event_p, x_draw_glyph_string_background):Dmitry Antipov2013-08-013-20/+11
| | | | | | | (x_display_ok): Use bool for booleans. (x_draw_glyph_string_background, cvt_string_to_pixel): (cvt_pixel_dtor): Drop unnecessary prototypes. * xterm.h (x_display_ok): Adjust prototype.
* Do not use pure Xism x_wm_set_icon_position in non-X ports.Dmitry Antipov2013-08-016-31/+16
| | | | | | | | | * frame.c (x_set_frame_parameters): Call to x_wm_set_icon_position only if HAVE_X_WINDOWS is in use. * frame.h (x_set_frame_parameters): Move under HAVE_X_WINDOWS. * nsterm.m (x_wm_set_icon_position): Remove no-op. * w32term.c (x_wm_set_icon_position): Likewise. * w32fns.c (x_icon): Adjust user.
* * xterm.c (x_flush): Call XFlush once per each X display, notDmitry Antipov2013-08-012-9/+14
| | | | | | frame. This is better because this code always unconditionally skips non-X frames in Vframe_list and issues the only XFlush if we have more than one X frame on the same X display.
* * xterm.c (last_mouse_press_frame): Remove theDmitry Antipov2013-08-012-10/+6
| | | | | leftover which is not really used any more. (handle_one_xevent, syms_of_xterm): Adjust users.
* Drop unnecessary functions that deals with frame pixel size.Dmitry Antipov2013-07-3112-67/+19
| | | | | | | | | | | | * frame.h, msdos.h, w32term.h, xterm.h (x_pixel_width) (x_pixel_height): Drop prototypes. * msdos.c, nsfns.m, w32fns.c, xfns.c (x_pixel_width) (x_pixel_height): Drop implementations. * frame.c (Fframe_pixel_height): Use FRAME_PIXEL_HEIGHT which should be always valid for window frame. (Frame_pixel_width): Likewise with FRAME_PIXEL_WIDTH. * w32menu.c (Fx_popup_dialog): * xmenu.c (Fx_popup_dialog): Likewise for both.
* * frame.c (Fset_frame_height, Fset_frame_width): Mention nil frame in docstring.Dmitry Antipov2013-07-312-14/+17
| | | | | (Fset_frame_size, Fset_frame_position): Use decode_live_frame and mention nil frame in docstring.
* * frame.c (Fmake_terminal_frame): Use store_in_alist to setupDmitry Antipov2013-07-312-9/+11
| | | | frame parameters and call to Fmodify_frame_parameters just once.
* * frame.c (make_frame, x_set_frame_parameters): Use bool for boolean.Dmitry Antipov2013-07-315-12/+26
| | | | | | | | | | | (x_figure_window_size): Likewise. Adjust to return long. (syms_of_frame): Do not DEFSYM Qterminal_live_p. (toplevel): Move Qterminal_live_p to... * terminal.c (toplevel): ...here, make it static, and... (syms_of_terminal): ...DEFSYM here. * frame.h (Qterminal_live_p): Remove declaration. (make_frame, x_figure_window_size): Adjust prototype. * nsfns.m (Fx_create_frame): Use long for window flags.
* Fix tempfile bug on platforms lacking mkostemp and mkstemp.Paul Eggert2013-07-302-2/+9
| | | | | | | * callproc.c (create_temp_file) [! (HAVE_MKOSTEMP || HAVE_MKSTEMP)]: Do not assume that emacs_close (INT_MAX) is a no-op. Fixes: debbugs:14986
* * xfaces.c (make_face_cache): For struct face_cache, preferDmitry Antipov2013-07-302-9/+12
| | | | | xmalloc to xzalloc and so avoid redundant call to memset. (Finternal_set_lisp_face_attribute): Fix comment typo and style.
* * fringe.c (draw_window_fringes, update_window_fringes)Dmitry Antipov2013-07-3012-62/+82
| | | | | | | | | | | | | | | | | | | (compute_fringe_widths): * w32term.c (x_draw_glyph_string): * window.c (candidate_window_p, Frecenter): * xfaces.c (realize_basic_faces, realize_default_face) (Fbitmap_space_p, Finternal_set_lisp_face_attribute) (x_update_menu_appearance, face_attr_equal_p, lface_equal_p): * xfns.c (x_set_cursor_color, xic_free_xfontset): * xmenu.c (Fx_menu_bar_open_internal): * xselect.c (x_reply_selection_request, Fx_get_atom_name): * xsettings.c (xft_settings_event): * xterm.c (x_draw_glyph_string, x_had_errors_p): Use bool for booleans. Adjust style and comments where appropriate. * dispextern.h (draw_window_fringes, update_window_fringes) (compute_fringe_widths): * xterm.h (x_had_errors_p): Adjust prototype.
* * frame.c (Fmodify_frame_parameters): Always check 2nd arg withDmitry Antipov2013-07-302-4/+10
| | | | CHECK_LIST. Rewrite the loop to avoid useless local variable.
* * fns.c (toplevel): Remove comment before Fsafe_length becauseDmitry Antipov2013-07-292-2/+5
| | | | it checks for QUIT.
* * frame.c (delete_frame): Avoid unnecessary 'this_f' test.Paul Eggert2013-07-282-5/+10
| | | | Fixes: debbugs:14970
* Fix bug #14970 with crashes when deleting many frames on MS-Windows.Eli Zaretskii2013-07-283-3/+17
| | | | | | | | src/w32fns.c (w32_wnd_proc) <WM_IME_STARTCOMPOSITION>: Make sure the frame which got the message is still alive, before dereferencing its pointer. src/frame.c (delete_frame): Test "this" frame's minibuffer window to be a live window, before using it as such.
* Spelling fixes.Paul Eggert2013-07-283-4/+4
|
* Fix focus-out events on MS-Windows.Eli Zaretskii2013-07-272-6/+8
| | | | | | | src/w32term.c (w32_read_socket) <WM_KILLFOCUS>: Call w32_detect_focus_change instead of doing part of its job by hand. This fixes the problem whereby FOCUS_OUT events were not sent to the event queue.
* Fix documentation of list-processes and process-list.Eli Zaretskii2013-07-262-1/+3
| | | | | | src/process.c (Fprocess_list): Doc fix. lisp/simple.el (list-processes): Doc fix.
* Fix typos in ChangeLogs.Juanma Barranquero2013-07-261-3/+3
|
* Fix bug #14841 with invisible frames on MS-Windows.Eli Zaretskii2013-07-262-3/+16
| | | | | | | | src/w32term.c (w32_read_socket) <WM_EMACS_PAINT>: Warn about frame being re-exposed only if it didn't ask to become visible. <WM_SIZE>: Under SIZE_RESTORED, only set the frame visible if it was previously iconified. (x_iconify_frame): Mark the frame iconified.
* Fix minor problems found by static checking.Paul Eggert2013-07-262-6/+13
| | | | | * eval.c (get_backtrace_frame, backtrace_eval_unrewind): Now static. (backtrace_eval_unrewind): ';' -> '{}' to pacify GCC.
* Add support for lexical variables to the debugger's `e' command.Stefan Monnier2013-07-263-34/+160
| | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/debug.el (debug): Don't let-bind the debugger-outer-* vars, except for debugger-outer-match-data. (debugger-frame-number): Move check for "on a function call" from callers into it. Add `skip-base' argument. (debugger-frame, debugger-frame-clear): Simplify accordingly. (debugger-env-macro): Only reset the state stored in non-variables, i.e. current-buffer and match-data. (debugger-eval-expression): Rewrite using backtrace-eval. * lisp/subr.el (internal--called-interactively-p--get-frame): Remove. (called-interactively-p): * lisp/emacs-lisp/edebug.el (edebug--called-interactively-skip): Use the new `base' arg of backtrace-frame instead. * src/eval.c (set_specpdl_old_value): New function. (unbind_to): Minor simplification. (get_backtrace_frame): New function. (Fbacktrace_frame): Use it. Add `base' argument. (backtrace_eval_unrewind, Fbacktrace_eval): New functions. (syms_of_eval): Export backtrace-eval. * src/xterm.c (x_focus_changed): Simplify.
* * fileio.c (Finsert_file_contents): Use a more-conservative fix.Paul Eggert2013-07-251-4/+1
| | | | Fixes: debbugs:14936
* * fileio.c (Finsert_file_contents): Avoid double-close.Paul Eggert2013-07-252-1/+9
| | | | Fixes: debbugs:14936
* Fix bug #14780 with unreachable lines near end of buffer.Eli Zaretskii2013-07-242-5/+16
| | | | | src/xdisp.c (redisplay_window): Instead of moving point out of scroll margin, reject the force_start method, and try scrolling.
* * src/alloc.c (make_save_ptr): Define if HAVE_NTGUI is defined (Bug#14944).Ken Brown2013-07-242-1/+6
|
* * src/eval.c (Fprogn): Do not check that BODY is a proper list.Paul Eggert2013-07-242-6/+7
| | | | | | | | | This undoes the previous change. The check slows down the interpreter, and is not needed to prevent a crash. See <http://lists.gnu.org/archive/html/emacs-devel/2013-07/msg00693.html>. * doc/lispref/eval.texi (Special Forms): Mention 'lambda'. Also, say that non-well-formed expressions result in unspecified behavior, though Emacs will not crash.
* No need for configure to create etc/ and lisp/ any moreGlenn Morris2013-07-232-0/+10
| | | | | | | | * configure.ac (etc, lisp): No need to create specially. Configure already creates lisp when generating lisp/Makefile; src/Makefile now creates etc when needed. * src/Makefile.in ($(etc)/DOC, temacs$(EXEEXT)): Ensure etc/ exists.
* Use a @configure_input@ comment at the start of generated MakefilesGlenn Morris2013-07-231-1/+1
|
* Port to GNU/Linux systems with tinfo but not ncurses.Paul Eggert2013-07-232-1/+7
| | | | | | | | * configure.ac (USE_NCURSES): New symbol. * src/dispnew.c (init_display): Depend on USE_NCURSES, not GNU_LINUX, to decide whether ncurses is being used. Without this change, GCC complains about tgetent not being declared, on a system that has tinfo installed but ncurses not installed.
* * eval.c (Fprogn): Check that BODY is a proper list.Paul Eggert2013-07-232-0/+8
|
* Tune UNEVALLED functions by using XCAR instead of Fcar, etc.Paul Eggert2013-07-233-75/+80
| | | | | | | | | * data.c (Fsetq_default): * eval.c (Fif, Fcond, Fprog1, Fsetq, Fquote, Ffunction, Fdefvar) (Fdefconst, FletX, Flet, Fwhile, Fcatch, Funwind_protect) (Fcondition_case): Tune by taking advantage of the fact that ARGS is always a list when a function is declared to have UNEVALLED args.
* * emacsgtkfixed.c: Port to GCC 4.6.Paul Eggert2013-07-232-1/+6
| | | | GCC 4.6 complains about -Wunused-local-typedefs, introduced in 4.7.
* src/callproc.c (child_setup): Silence compiler warnings.Juanma Barranquero2013-07-232-2/+8
|
* * sysdep.c (frame) [__FreeBSD__]: #define to freebsd_framePaul Eggert2013-07-222-3/+14
| | | | | | | when including <sys/user.h>, to prevent Sparc/ARM machine/frame.h from messing up Emacs's 'struct frame'. Fixes: debbugs:14923
* * alloc.c (make_save_ptr_ptr): Define this function.Paul Eggert2013-07-212-0/+19
| | | | | It was inadvertently omitted. It's needed only if HAVE_MENUS && ! (USE_X_TOOLKIT || USE_GTK).
* * nsterm.m (sendEvent:): Skip mouse moved if no dialog and no EmacsJan Djärv2013-07-212-0/+23
| | | | | | frame have focus. Fixes: debbugs:14895
* Avoid vfork-related deadlock more cleanly.Paul Eggert2013-07-203-38/+25
| | | | | | | | | * callproc.c (child_setup): When the child's exec fails, output the program name, as that's more useful. Use O_NONBLOCK to avoid deadlock. * process.c (create_process_1): Remove; no longer needed. (create_process): Remove timer hack; no longer needed, now that the child avoids deadlock.
* Spelling fixes.Paul Eggert2013-07-201-1/+1
|
* lisp/ChangeLog, src/ChangeLog: Fix typos.Juanma Barranquero2013-07-211-3/+3
|
* Merge from emacs-24; up to 2012-12-31T11:35:13Z!rudalics@gmx.atGlenn Morris2013-07-202-1/+5
|\
| * * src/image.c (Fimage_flush): Fix doc typo.Glenn Morris2013-07-152-1/+5
| |