1. 04 Aug, 2013 1 commit
  2. 03 Aug, 2013 4 commits
    • Paul Eggert's avatar
      * composite.h: Minor fixups. · 98f638d6
      Paul Eggert authored
      (composition_registered_p): Rename from COMPOSITION_REGISTERD_P
      to fix a misspelling, and change it to an inline function while
      we're at it (it need not be a macro).  All uses changed.
      (composition_method, composition_valid_p):
      Rewrite to avoid assignments in if-conditions.
    • Dmitry Antipov's avatar
    • Dmitry Antipov's avatar
      Do not use global Lisp_Object in composition macros. · 75c59fb3
      Dmitry Antipov authored
      * composite.h (composition_temp): Remove declaration.
      (composition_method, composition_valid_p): ...inline functions.
      * composite.c (composition_temp): Remove.
      (run_composition_function, update_compositions)
      (composition_compute_stop_pos, composition_adjust_point)
      * coding.c (handle_composition_annotation):
      * xdisp.c (handle_composition_prop, check_point_in_composition):
      Related users changed.
    • Dmitry Antipov's avatar
      Drop FRAME_PTR typedef. · a10c8269
      Dmitry Antipov authored
      * composite.c, font.c, font.h, fontset.c, fontset.h, frame.c, frame.h:
      * ftfont.c, ftxfont.c, gtkutil.c, gtkutil.h, image.c, keyboard.c:
      * menu.c, menu.h, msdos.c, nsfns.m, nsfont.m, nsmenu.m, nsterm.h:
      * nsterm.m, scroll.c, term.c, w32fns.c, w32font.c, w32font.h:
      * w32inevt.c, w32inevt.h, w32menu.c, w32notify.c, w32term.c, w32term.h:
      * w32uniscribe.c, w32xfns.c, widget.c, window.c, xdisp.c, xfaces.c:
      * xfns.c, xfont.c, xftfont.c, xmenu.c, xselect.c, xterm.c:
      All related users changed.
  3. 02 Aug, 2013 6 commits
    • Stefan Monnier's avatar
      Make defvar affect the default binding outside of any let. · a104f656
      Stefan Monnier authored
      * src/eval.c (default_toplevel_binding): New function.
      (Fdefvar): Use it.
      (unbind_to, backtrace_eval_unrewind): Do a bit of CSE simplification.
      (Fdefault_toplevel_value, Fset_default_toplevel_value): New subrs.
      (syms_of_eval): Export them.
      * src/data.c (Fdefault_value): Micro cleanup.
      * src/term.c (init_tty): Use "false".
      * lisp/custom.el (custom-initialize-default, custom-initialize-set)
      (custom-initialize-reset, custom-initialize-changed): Affect the
      toplevel-default-value (bug#6275, bug#14586).
      * lisp/emacs-lisp/advice.el (ad-compile-function): Undo previous workaround
      for bug#6275.
      * test/automated/core-elisp-tests.el: New file.
    • Dmitry Antipov's avatar
      Fix X GC leak in GTK and raw (no toolkit) X ports. · 4b5c9326
      Dmitry Antipov authored
      * xterm.c (x_free_frame_resources): If white and black relief
      GCs are allocated, always free them here.
      * xfns.c (x_make_gc): Omit redundant initialization.
      * widget.c (create_frame_gcs): Remove the leftover.
      (EmacsFrameDestroy): Do nothing because all GCs are now freed
      in x_free_frame_resources.
    • Jan Djärv's avatar
      * nsterm.h (EmacsView): Add maximizing_resize, put it and old_title · b19aa636
      Jan Djärv authored
      inside NS_IMPL_COCOA.
      * nsterm.m (windowWillResize:toSize:): Only change title if
      ! maximizing_resize && FULLSCREEN_NONE.  strdup title before
      modifying it.
      (viewDidEndLiveResize): New method.
      Fixes: debbugs:15005
    • Dmitry Antipov's avatar
      * insdel.c (adjust_after_replace, replace_range, del_range_2): · af1f7e06
      Dmitry Antipov authored
      Do not check whether undo is enabled because record_insert and
      record_delete does that themselves.
    • Dmitry Antipov's avatar
    • Dmitry Antipov's avatar
      * xterm.h (struct x_output) [HAVE_X_I18N]: Remove xic_base_fontname · 65b02bb9
      Dmitry Antipov authored
      member which is not really used any more.
      * 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.
  4. 01 Aug, 2013 9 commits
  5. 31 Jul, 2013 4 commits
  6. 30 Jul, 2013 4 commits
    • Paul Eggert's avatar
      Fix tempfile bug on platforms lacking mkostemp and mkstemp. · f4b169ce
      Paul Eggert authored
      * callproc.c (create_temp_file) [! (HAVE_MKOSTEMP || HAVE_MKSTEMP)]:
      Do not assume that emacs_close (INT_MAX) is a no-op.
      Fixes: debbugs:14986
    • Dmitry Antipov's avatar
      * xfaces.c (make_face_cache): For struct face_cache, prefer · bee6a2c7
      Dmitry Antipov authored
      xmalloc to xzalloc and so avoid redundant call to memset.
      (Finternal_set_lisp_face_attribute): Fix comment typo and style.
    • Dmitry Antipov's avatar
      * fringe.c (draw_window_fringes, update_window_fringes) · d7e6881a
      Dmitry Antipov authored
      * 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
      * dispextern.h (draw_window_fringes, update_window_fringes)
      * xterm.h (x_had_errors_p): Adjust prototype.
    • Dmitry Antipov's avatar
      * frame.c (Fmodify_frame_parameters): Always check 2nd arg with · ec3058af
      Dmitry Antipov authored
      CHECK_LIST.  Rewrite the loop to avoid useless local variable.
  7. 29 Jul, 2013 1 commit
  8. 28 Jul, 2013 2 commits
  9. 27 Jul, 2013 1 commit
    • Eli Zaretskii's avatar
      Fix focus-out events on MS-Windows. · e95da6d3
      Eli Zaretskii authored
       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.
  10. 26 Jul, 2013 4 commits
    • Eli Zaretskii's avatar
      Fix documentation of list-processes and process-list. · fec92060
      Eli Zaretskii authored
       src/process.c (Fprocess_list): Doc fix.
       lisp/simple.el (list-processes): Doc fix.
    • Eli Zaretskii's avatar
      Fix bug #14841 with invisible frames on MS-Windows. · a8f93651
      Eli Zaretskii authored
       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.
    • Paul Eggert's avatar
      Fix minor problems found by static checking. · d5a7a9d9
      Paul Eggert authored
      * eval.c (get_backtrace_frame, backtrace_eval_unrewind): Now static.
      (backtrace_eval_unrewind): ';' -> '{}' to pacify GCC.
    • Stefan Monnier's avatar
      Add support for lexical variables to the debugger's `e' command. · 56ea7291
      Stefan Monnier authored
      * 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.
      * 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.
  11. 25 Jul, 2013 1 commit
  12. 24 Jul, 2013 3 commits