1. 02 Nov, 2014 3 commits
    • Jan Djärv's avatar
      Fix memory leak · 860ae452
      Jan Djärv authored
      * nsimage.m (allocInitFromFile:): Initialize bmRep.
      (dealloc): Release bmRep.
    • Jan Djärv's avatar
      * nsimage.m (ImageList, imageListNext, imageListSetNext:) · 65bb8d05
      Jan Djärv authored
      (reference): Remove.
      (allocInitFromFile:): Remove searching ImageList and calling
      (dealloc): Remove handling if ImageList.
      * nsterm.h (EmacsImage): Remove imageListNext, refCount, reference,
      imageListSetNext, imageListNext.
      Fixes: debbugs:18918
    • Andreas Schwab's avatar
      Fix incorrect assertion · f26d02a6
      Andreas Schwab authored
      * process.c (catch_child_signal): Fix incorrect assertion.
  2. 01 Nov, 2014 4 commits
  3. 31 Oct, 2014 3 commits
  4. 30 Oct, 2014 6 commits
  5. 28 Oct, 2014 2 commits
  6. 26 Oct, 2014 1 commit
  7. 25 Oct, 2014 2 commits
    • Jan Djärv's avatar
      * nsselect.m: pasteboard_changecount is new. · 3abb3168
      Jan Djärv authored
      (ns_store_pb_change_count, ns_get_pb_change_count)
      (ns_get_our_change_count_for): New functions.
      (ns_string_to_pasteboard_internal): Correct comment.
      type => gtype in eassert, Call ns_store_pb_change_count.
      (Fns_own_selection_internal): Remove data, use value.
      (Fns_disown_selection_internal, Fns_selection_owner_p): Replace
      Vselection_alist check, with change count check.
      (Fns_get_selection): Initialize val to Qnil.  Only get local
      selection if change counts match (Bug#18799).
      (nxatoms_of_nsselect): Initialize pasteboard_changecount.
    • Noam Postavsky's avatar
      Fix bug #18745 with invoking Windows batch files with embedded whitespace. · a91ff4f4
      Noam Postavsky authored
       src/w32proc.c (create_child): If calling a quoted batch file,
       pass NULL for exe.
       nt/cmdproxy.c (batch_file_p): New function.
       (spawn): If calling a quoted batch file pass NULL for progname.
       test/automated/process-tests.el (process-test-quoted-batfile): New test.
  8. 24 Oct, 2014 2 commits
    • Eli Zaretskii's avatar
      A possible fix for bug #18815 with assertion violations in bidi.c. · 7026b4d8
      Eli Zaretskii authored
       src/bidi.c (bidi_resolve_explicit, bidi_find_bracket_pairs)
       (bidi_resolve_brackets): Use end of string position rather than ZV
       when iterating over a string.
    • Martin Rudalics's avatar
      Improve mouse dragging of frame edges. · 3110159d
      Martin Rudalics authored
      * keyboard.c (make_lispy_position): Return coordinates also when
      on scroll bars, fringes, margins or not in a window.
      * xdisp.c (show_mouse_face): Don't change cursor face during
      mouse tracking.
      * mouse.el (mouse-drag-line): Don't use mouse-pixel-position.
      Calculate increment from last position instead of window edge.
      Add right- and bottom-divider bindings to transient map.
  9. 23 Oct, 2014 2 commits
  10. 22 Oct, 2014 3 commits
  11. 21 Oct, 2014 2 commits
    • Stefan Monnier's avatar
      Get rid of backend-dependent selection-handling functions for kill/yank · a046b8dd
      Stefan Monnier authored
      and make it generic instead by relying on the lower-level selection
      management functions.
      * select.el (select-enable-clipboard): Rename from
      (select-enable-primary): Move from x-win.el and rename from
      (gui-last-selected-text): Remove.
      (gui--last-selected-text-clipboard, gui--last-selected-text-primary):
      New vars.
      (gui-select-text): Rewrite, based on x-win.el's old x-select-text.
      (gui-select-text-alist, gui-selection-value-alist): Remove.
      (x-select-request-type): Move from x-win.el.
      (gui--selection-value-internal): New function, taken from x-win's
      (gui-selection-value): Rewrite, based on x-win.el's old x-selection-value.
      (gui-set-selection-alist): Rename from gui-own-selection-alist and
      extend it to handle a nil value as a "disown" request.
      (gui-disown-selection-alist): Remove.
      (xselect-convert-to-delete): Adjust accordingly.
      (gui-set-selection): Simplify accordingly as well.  Use dotimes.
      * lisp/frame.el (gui-method): Use window-system rather than framep.
      (gui-method-declare): The tty case is now nil rather than t.
      (make-frame): Adjust accordingly.
      * lisp/term/x-win.el (x-last-selected-text-primary)
      (x-select-enable-primary): Remove (moved to select.el).
      (x-select-request-type): Move to select.el.
      (x-selection-value-internal, x--selection-value): Remove functions.
      (gui-selection-value, gui-select-text): Remove moethods.
      (gui-set-selection): Merge own and disown methods.
      * lisp/startup.el (command-line): Adjust now that `gui-method' expects nil
      for ttys.
      * lisp/term/ns-win.el (ns-get-pasteboard, ns-set-pasteboard)
      (ns-selection-value): Remove functions.
      (gui-select-text, gui-selection-value): Don't define method any more.
      (gui-set-selection): Merge the old own and disown methods.
      (gui-selection-exists-p, gui-get-selection): Adjust to new name of
      underlying C primitive.
      * lisp/term/pc-win.el (w16-get-selection-value): Add dummy argument and drop
      test of gui-select-enable-clipboard, to make it usable as
      a gui-get-selection method.
      (gui-selection-exists-p): Adjust to new name of C primitive.
      (gui-set-selection): Merge own and disown methods.
      (gui-select-text, gui-selection-value): Delete methods.
      (w16--select-text): Delete function.
      * lisp/term/w32-win.el (w32--select-text, w32--get-selection-value):
      Delete function (move functionality into w32--set-selection and
      (gui-select-text, gui-selection-value): Don't define methods.
      (w32--set-selection, w32--get-selection, w32--selection-owner-p):
      New functions.
      (gui-get-selection, gui-selection-owner-p, gui-selection-exists-p):
      Use them.
      (gui-selection-exists-p): Adjust to new name of C primitive.
      * src/nsselect.m (ns_get_local_selection): Signal error rather than `quit'.
      (Fns_own_selection_internal): Tighten scoping.
      (Fns_selection_exists_p): Rename from Fx_selection_exists_p.
      (Fns_get_selection): Rename from Fx_get_selection_internal.
      (Fns_get_selection_internal, Fns_store_selection_internal):
      Remove functions.
      (syms_of_nsselect): Adjust accordingly.
      * src/w16select.c (Fw16_selection_exists_p): Rename from
      (syms_of_win16select): Adjust accordingly.
      * src/w32select.c (Fw32_selection_exists_p): Rename from
      (syms_of_w32select): Adjust accordingly.
    • Martin Rudalics's avatar
      Handle wrapped menu bar lines when resizing frames with Windows API. · e5b3b7d3
      Martin Rudalics authored
      * w32fns.c (Fw32_frame_menu_bar_size): New function.
      * w32term.c (x_set_window_size): Account for wrapped menu bar
      lines when setting up frame height (Bug#15174 and Bug#18720).
      (w32_add_wrapped_menu_bar_lines): New variable.
  12. 20 Oct, 2014 3 commits
  13. 19 Oct, 2014 4 commits
  14. 18 Oct, 2014 3 commits
    • Paul Eggert's avatar
      * gtkutil.c: Remove no-longer-used code. · 4e946894
      Paul Eggert authored
      (xg_update_menubar): Remove unused local and unnecessary call to
      (XG_TOOL_BAR_PROXY_BUTTON, xg_tool_bar_proxy_callback)
      (xg_get_tool_bar_widgets, xg_tool_bar_proxy_help_callback)
      (TOOLBAR_TOP_WIDGET): Remove; no longer used.
    • Jan Djärv's avatar
    • Jan Djärv's avatar
      Handle deprecated Gtk+ stuff for version <= 3.10 · 3f4c6d52
      Jan Djärv authored
      * lisp/term/x-win.el (x-gtk-stock-map): Add icon names suggested as
      replacements to stock names before stock names in a list.
      Cdr may be a list, each name is tried in turn until one is found.
      * src/gtkutil.c (XG_TEXT_CANCEL, XG_TEXT_OPEN, XG_TEXT_OK): New defines
      to handle Gtk versions.
      (xg_get_file_with_chooser): Use them.
      (xg_have_tear_offs, tearoff_remove, tearoff_activate): Remove
      (create_menus): Remove teroff argument and code.
      Remove call to gtk_menu_set_title.
      (xg_update_menubar, xg_update_submenu): Remove tearoff code.  Adjust
      args to create_menus.
      (xg_tool_bar_menu_proxy, xg_tool_bar_detach_callback)
      (xg_tool_bar_attach_callback, TOOLBAR_TOP_WIDGET): Remove.
      (xg_pack_tool_bar): Replace TOOLBAR_TOP_WIDGET, remove detach code.
      (xg_make_tool_item): Remove detach code.
      (xg_update_tool_bar_sizes): Replace TOOLBAR_TOP_WIDGET.
      (find_icon_from_name): New function.
      (update_frame_tool_bar): Remove GtkStockItem code, move to
      find_icon_from_name.  Let stock be a list of icon names to try.
      Only use gtk_image_new_from_stock on Gtk+ < 3.10.
      (free_frame_tool_bar, xg_change_toolbar_position ): Replace
      (xg_initialize): Remove tearoff code.
      * src/gtkutil.h (xg_have_tear_offs): Remove declaration.
      * src/xmenu.c (set_frame_menubar): Remove GTK block that calls
      * src/xterm.h (handlebox_widget): Remove.