1. 29 May, 2011 3 commits
    • Paul Eggert's avatar
      Minor fixes prompted by GCC 4.6.0 warnings. · 0196f88a
      Paul Eggert authored
      * xselect.c (converted_selections, conversion_fail_tag): Now static.
    • Paul Eggert's avatar
      * emacs.c [HAVE_X_WINDOWS]: Include "xterm.h". · 5fbc2025
      Paul Eggert authored
      (x_clipboard_manager_save_all): Move extern decl to ...
      * xterm.h: ... here, so that it can be checked for consistency.
    • Chong Yidong's avatar
      Move clipboard-manager functionality out of hooks. · 1dd3c2d9
      Chong Yidong authored
      * lisp/select.el: Don't perform clipboard-manager saving in hooks;
      leave the hooks empty.
      * src/emacs.c (Fkill_emacs): Call x_clipboard_manager_save_all.
      * src/frame.c (delete_frame): Call x_clipboard_manager_save_frame.
      * src/xselect.c (x_clipboard_manager_save_frame)
      (x_clipboard_manager_save_all): New functions.
      (Fx_clipboard_manager_save): Lisp function deleted.
      * src/xterm.h: Update prototype.
  2. 28 May, 2011 3 commits
  3. 27 May, 2011 7 commits
    • Eli Zaretskii's avatar
      src/ccl.c: Fix last commit. · 61838453
      Eli Zaretskii authored
    • Paul Eggert's avatar
      Fix order of ChangeLog entries after merge. · 2ff916cb
      Paul Eggert authored
    • Paul Eggert's avatar
    • Stefan Monnier's avatar
    • Paul Eggert's avatar
      * xselect.c: Fix minor problems prompted by GCC 4.6.0 warnings. · fb1ac845
      Paul Eggert authored
      (x_handle_selection_request, frame_for_x_selection): Remove unused vars.
      (x_clipboard_manager_save): Now static.
      (Fx_clipboard_manager_save): Rename local to avoid shadowing.
    • Paul Eggert's avatar
      * fns.c: Fix minor problems prompted by GCC 4.6.0 warnings. · f1b54466
      Paul Eggert authored
      (crypto_hash_function): Now static.
      Fix pointer signedness problems.  Avoid unnecessary initializations.
    • Chong Yidong's avatar
      Support X clipboard managers. · a9f737ee
      Chong Yidong authored
      * lisp/select.el (xselect-convert-to-targets): Add MULTIPLE target to list.
      (xselect-convert-to-save-targets): New function.
      * src/xselect.c: Support for clipboard managers.
      (Vselection_alist): Move to termhooks.h as terminal-local var.
      (LOCAL_SELECTION): New macro.
      (x_atom_to_symbol): Handle x_display_info_for_display fail case.
      (symbol_to_x_atom): Remove gratuitous arg.
      (x_handle_selection_request, lisp_data_to_selection_data)
      (x_get_foreign_selection, Fx_register_dnd_atom): Callers changed.
      (x_own_selection, x_get_local_selection, x_convert_selection): New
      arg, specifying work frame.  Use terminal-local Vselection_alist.
      (some_frame_on_display): Delete unused function.
      (Fx_own_selection_internal, Fx_get_selection_internal)
      (Fx_disown_selection_internal, Fx_selection_owner_p)
      (Fx_selection_exists_p): New optional frame arg.
      (frame_for_x_selection, Fx_clipboard_manager_save): New functions.
      (x_handle_selection_clear): Don't treat other terminals with the
      same keyboard specially.  Use the terminal-local Vselection_alist.
      (x_clear_frame_selections): Use Frun_hook_with_args.
      * src/termhooks.h (Vselection_alist): Make it terminal-local.
      * src/terminal.c (create_terminal): Initialize it.
      * src/xterm.c (x_term_init): Intern ATOM and CLIPBOARD_MANAGER atoms.
      * src/xterm.h: Add support for those atoms.
  4. 26 May, 2011 3 commits
  5. 25 May, 2011 2 commits
  6. 24 May, 2011 7 commits
  7. 23 May, 2011 6 commits
  8. 22 May, 2011 5 commits
    • Chong Yidong's avatar
      Remove var mistakenly introduced in 2011-05-22T19:46:47Z!cyd@stupidchicken.com. · abb71cf4
      Chong Yidong authored
      * src/xselect.c (syms_of_xselect): Remove unused symbol SAVE_TARGETS.
      (Fx_get_selection_internal): Minor cleanup.
      (Fx_own_selection_internal): Rename arguments for consistency with
    • Paul Eggert's avatar
    • Paul Eggert's avatar
      Rework Fformat to avoid integer overflow issues. · 37910ab2
      Paul Eggert authored
      * editfns.c: Include <float.h> unconditionally, as it's everywhere
      now (part of C89).  Include <verify.h>.
      (MAX_10_EXP, CONVERTED_BYTE_SIZE): Remove; no longer needed.
      (pWIDE, pWIDElen, signed_wide, unsigned_wide): New defns.
      (Fformat): Avoid the prepass trying to compute sizes; it was only
      approximate and thus did not catch overflow reliably.  Instead, walk
      through the format just once, formatting and computing sizes as we go,
      checking for integer overflow at every step, and allocating a larger
      buffer as needed.  Keep track separately whether the format is
      multibyte.  Keep only the most-recently calculated precision, rather
      than them all.  Record whether each argument has been converted to
      string.  Use EMACS_INT, not int, for byte and char and arg counts.
      Support field widths and precisions larger than INT_MAX.  Avoid
      sprintf's undefined behavior with conversion specifications such as %#d
      and %.0c.  Fix bug with strchr succeeding on '\0' when looking for
      flags.  Fix bug with (format "%c" 256.0).  Avoid integer overflow when
      formatting out-of-range floating point numbers with int
      formats. (Bug#8668)
    • Chong Yidong's avatar
    • Paul Eggert's avatar
  9. 21 May, 2011 4 commits