1. 18 Jun, 2013 6 commits
  2. 17 Jun, 2013 6 commits
    • Paul Eggert's avatar
      * frame.c (x_report_frame_params): Cast parent_desc to uintptr_t. · ec6ecaad
      Paul Eggert authored
      Needed if HAVE_NTGUI.  Reported by Juanma Barranquero.
    • Paul Eggert's avatar
    • Eli Zaretskii's avatar
    • Eli Zaretskii's avatar
      Possible fix for bug #14630, which continues bug #14062. · ca463325
      Eli Zaretskii authored
       src/w32fns.c (w32_wnd_proc): Don't call WINDOW_HEADER_LINE_HEIGHT
       unless we know that the window w's frame is a frame object.
    • Lars Magne Ingebrigtsen's avatar
      Implement new function `add-face-text-property' · 708e05f6
      Lars Magne Ingebrigtsen authored
      * doc/lispref/text.texi (Changing Properties): Document `add-face-text-property'.
      * src/textprop.c (property_set_type): New enum.
      (add_properties): Allow appending/prepending text properties.
      (add_text_properties_1): Factored out of Fadd_text_properties.
      (Fadd_text_properties): Moved all the code into
      (Fadd_face_text_property): New function that calls
    • Paul Eggert's avatar
      Use functions, not macros, for XINT etc. · 84575e67
      Paul Eggert authored
      In lisp.h, prefer functions to function-like macros, and
      constants to object-like macros, when either will do.  This:
       . simplifies use, as there's no more need to worry about
         arguments' side effects being evaluated multiple times.
       . makes the code easier to debug on some platforms.
      However, when using gcc -O0, keep using function-like macros
      for a few critical operations, for performance reasons.
      This sort of thing isn't needed with gcc -Og, but -Og
      is a GCC 4.8 feature and isn't widely-enough available yet.
      Also, move functions from lisp.h to individual modules when possible.
      From a suggestion by Andreas Schwab in <http://bugs.gnu.org/11935#68>.
      * alloc.c (XFLOAT_INIT, set_symbol_name):
      * buffer.c (CHECK_OVERLAY):
      * chartab.c (CHECK_CHAR_TABLE, set_char_table_ascii)
  3. 15 Jun, 2013 2 commits
  4. 13 Jun, 2013 2 commits
  5. 12 Jun, 2013 1 commit
  6. 11 Jun, 2013 2 commits
  7. 10 Jun, 2013 2 commits
  8. 09 Jun, 2013 2 commits
  9. 08 Jun, 2013 3 commits
    • Eli Zaretskii's avatar
      Fix bug #14575 with window-specific overlays with display props. · 5bf97bfc
      Eli Zaretskii authored
       src/bidi.c (bidi_fetch_char): Accept additional argument, the window
       being displayed, and pass it to compute_display_string_pos.
       (bidi_level_of_next_char, bidi_resolve_explicit_1)
       (bidi_paragraph_init): All callers changed.
       src/xdisp.c (init_from_display_pos, init_iterator)
       (handle_single_display_spec, next_overlay_string)
       (get_overlay_strings_1, reseat_1, reseat_to_string)
       (push_prefix_prop, Fcurrent_bidi_paragraph_direction): Set
       bidi_it.w member from it->w.
       (compute_display_string_pos): Accept additional argument, the
       window being displayed, and pass it to Fget_char_property.
       src/dispextern.h (struct bidi_it): New member w, the window being
       (compute_display_string_pos): Adjust prototype.
    • Jan Djärv's avatar
      Fix compilation issues for GNUStep and GLIB conflicts. · b33f93ee
      Jan Djärv authored
      * configure.ac (HAVE_GLIB): Only set XGSELOBJ if HAVE_NS = no.
      (with_file_notification): Don't set to gfile if with_ns = yes.
      * src/process.c (wait_reading_process_output): Check for NS before GLIB.
      GLIB may be linked in due to rsvg, but ns_select must be called.
      * src/xgselect.c (xg_select): Remove call to window_system_available
      and g_main_context_pending at the top, so Gdk events (i.e. file
      notify) are processed when Emacs is started with -nw.
      * src/xgselect.c: Remove unneeded include xterm.h
    • Jan Djärv's avatar
      * xgselect.c (xg_select): Remove call to window_system_available · 5de0e011
      Jan Djärv authored
      and g_main_context_pending at the top, so Gdk events (i.e. file
      notify) are processed when Emacs is started with -nw.
  10. 07 Jun, 2013 3 commits
    • Eli Zaretskii's avatar
      Fix "make TAGS" on MS-Windows. · a822acff
      Eli Zaretskii authored
       lisp/Makefile.in (TAGS TAGS-LISP): Pass the (long) list of *.el files
       through xargs, to avoid failure due to MS-Windows limitations on
       command-line length.
       src/Makefile.in (ctagsfiles1, ctagsfiles2): Don't include *.m files.
       (ctagsfiles3): New variable, includes only *.m files.
       (TAGS): Use an explicit language name in the regular expressions,
       to avoid transformation of '/SOMETHING' by MSYS to
    • Richard Copley's avatar
      Fix bug #14513 with --enable-locallisppath not working on MS-Windows. · 6c0a9ed1
      Richard Copley authored
       Makefile.in (msys_to_w32): Modify to support d:\foo file names.
       (msys_lisppath_to_w32, msys_prefix_subst, msys_sed_sh_escape): New
       (epaths-force-w32): Use them.
       epaths.nt (PATH_SITELOADSEARCH): Fix commentary.
       epaths.in: Fix commentary to PATH_SITELOADSEARCH.
    • Juanma Barranquero's avatar
      Fix typos. · a0eb10b3
      Juanma Barranquero authored
  11. 06 Jun, 2013 2 commits
    • Eli Zaretskii's avatar
      Improve the fix for bug #14558. · 9ef6111b
      Eli Zaretskii authored
       src/xdisp.c (note_mouse_highlight): When mouse-highlight is off,
       still need to set the mouse pointer shape and activate help-echo.
    • Paul Eggert's avatar
      A few porting etc. fixes for the new file monitor code. · 7d300d64
      Paul Eggert authored
      See the thread containing
      * gfilenotify.c (dir_monitor_callback, Fgfile_add_watch)
      (Fgfile_rm_watch): Don't assume EMACS_INT is the same width as a pointer.
      (dir_monitor_callback, Fgfile_rm_watch):
      Use assq_no_quit instead of Fassoc, for speed.
      (dir_monitor_callback, Fgfile_rm_watch):
      eassert that the monitor is a fixnum.
      (dir_monitor_callback): No need for CDR_SAFE.
      Simplify building of lisp with alternative tails.
      (Fgfile_add_watch, Fgfile_rm_watch):
      Do not assume glib functions set errno reliably on failure.
      (Fgfile_add_watch): Check that the monitor survives the XIL trick,
      and signal an error otherwise.
      (Fgfile_rm_watch): Prefer CONSP to !NILP.
      Use Fdelq instead of Fdelete, for speed.
  12. 05 Jun, 2013 5 commits
    • Eli Zaretskii's avatar
      Fix bug #14558 with turning off mouse-highlight during highlight. · 817ebfcf
      Eli Zaretskii authored
       src/xdisp.c (handle_tool_bar_click): When mouse-highlight is off,
       don't insist on being invoked on a highlighted tool-bar button.
       Avoids losing tool-bar functionality when mouse-highlight is nil.
       (note_tool_bar_highlight, note_mode_line_or_margin_highlight):
       Don't highlight when mouse-highlight is nil.
       (note_mouse_highlight): When mouse-highlight is nil, don't return
       right away; instead, run tool-bar and mode-line highlight
       subroutine, clear any existing highlight, and revert the mouse
       pointer to its default shape.
    • Stefan Monnier's avatar
      * lisp/simple.el: Move all the prog-mode code to prog-mode.el. · 55577e7c
      Stefan Monnier authored
      * lisp/progmodes/prog-mode.el: New file.
      * lisp/loadup.el:
      * src/lisp.mk (lisp): Add prog-mode.el.
    • Paul Eggert's avatar
      Chain glib's SIGCHLD handler from Emacs's (Bug#14474). · f019a684
      Paul Eggert authored
      * process.c (dummy_handler): New function.
      (lib_child_handler): New static var.
      (handle_child_signal): Invoke it.
      (catch_child_signal): If a library has set up a signal handler,
      save it into lib_child_handler.
      (init_process_emacs): If using glib and not on Windows, tickle glib's
      child-handling code so that it initializes its private SIGCHLD handler.
      * syssignal.h (SA_SIGINFO): Default to 0.
      * xterm.c (x_term_init): Remove D-bus hack that I installed on May
      31; it should no longer be needed now.
    • Michael Albinus's avatar
      * emacs.c (main) [HAVE_GFILENOTIFY]: Call globals_of_gfilenotify. · 90db8702
      Michael Albinus authored
      * gfilenotify.c (globals_of_gfilenotify): New function.
      (syms_of_gfilenotify): Move global initialization there.
      * lisp.h (globals_of_gfilenotify) [HAVE_GFILENOTIFY]: Add prototype.
    • Stefan Monnier's avatar
      * src/keymap.c (Fcurrent_active_maps, Fdescribe_buffer_bindings): · bfa3acd6
      Stefan Monnier authored
      * src/keyboard.c (menu_bar_items, tool_bar_items):
      * src/doc.c (Fsubstitute_command_keys): Voverriding_terminal_local_map does
      not override local keymaps any more.
  13. 04 Jun, 2013 1 commit
  14. 03 Jun, 2013 3 commits
    • Eli Zaretskii's avatar
      Fix crashes in a text-mode session on Windows. · 9337e206
      Eli Zaretskii authored
       src/w32console.c (initialize_w32_display): Return the dimensions of
       the console window via 2 additional arguments, not via the current
       frame.  This avoids crashes due to overrunning the bounds of
       frame's decode_mode_spec_buffer, which is not resized following
       the change of the frame dimensions from the initial 10x10.
       src/w32term.h (w32_initialize_display_info): Adjust prototype.
       src/term.c (init_tty): Take dimensions of the frame from the values
       returned by initialize_w32_display.
    • Eli Zaretskii's avatar
      * configure.ac (HAVE_GFILENOTIFY): Do not change $LIBS. · 7f203aa1
      Eli Zaretskii authored
      * src/Makefile.in (GFILENOTIFY_CFLAGS, GFILENOTIFY_LIBS): New variables.
      * src/w32inevt.c (handle_file_notifications): Add dummy implementation
      for !HAVE_W32NOTIFY.
      * src/w32term.c: Wrap code with HAVE_W32NOTIFY.
    • Jan Djärv's avatar
      Add HAVE_GLIB check instead of checking individual libraries that use GLib. · 55a87246
      Jan Djärv authored
      * configure.ac (HAVE_GLIB): Add GLib check.  Set XGSELOBJ if GLib is
      used.  Remove xgselect.o from XOBJ.
      * src/Makefile.in (XGSELOBJ): New, xgselect.o if GLib is used, or empty.
      * src/process.c (wait_reading_process_output): Call xg_select if HAVE_GLIB.
      * src/xgselect.c: Replace #if defined ... with #ifdef HAVE_GLIB.