1. 02 Oct, 2014 1 commit
    • Stefan Monnier's avatar
      Consolidate management/ownership of selections. · 31300bee
      Stefan Monnier authored
      * lisp/select.el (gui-get-selection-alist): New method.
      (gui-get-selection): Use it.  Rename from x-get-selection.
      (x-get-selection): Define as obsolete alias.
      (x-get-clipboard): Mark obsolete.
      (gui-get-primary-selection): New function.
      (x-get-selection-value): Mark obsolete.
      (gui-own-selection-alist, gui-disown-selection-alist)
      (gui-selection-owner-p-alist): New methods.
      (gui-set-selection): Use them.  Rename from x-set-selection.
      (x-set-selection): Define as obsolete alias.
      (gui--valid-simple-selection-p): Rename from
      x-valid-simple-selection-p.
      * lisp/w32-common-fns.el (gui-own-selection, gui-disown-selection)
      (gui-selection-owner-p, gui-get-selection): Define for w32.
      (w32-get-selection-value): Rename from x-get-selection-value.
      Use the new gui-last-selected-text.
      * lisp/term/x-win.el (x-get-selection-value): Remove.
      (x-clipboard-yank): Declare obsolete.
      (gui-own-selection, gui-disown-selection, gui-get-selection)
      (gui-selection-owner-p): Define for x.
      * lisp/term/w32-win.el (w32-win-suspend-error): Rename from
      x-win-suspend-error.
      * lisp/term/pc-win.el (w16-get-selection-value): Rename from
      x-get-selection-value.
      (w16-selection-owner-p): Rename from x-selection-owner-p.
      (gui-own-selection, gui-disown-selection, gui-get-selection)
      (gui-selection-owner-p): Define for pc.
      (w16--select-text): New function.
      * lisp/term/ns-win.el (gui-own-selection, gui-disown-selection)
      (gui-get-selection, gui-selection-owner-p): Define for ns.
      * lisp/term.el (term-mouse-paste):
      * lisp/mouse.el (mouse-yank-primary): Use gui-get-primary-selection.
      * src/nsselect.m (ns-own-selection-internal, ns-disown-selection-internal):
      Rename from the "x-" prefix.
      31300bee
  2. 01 Oct, 2014 1 commit
    • Stefan Monnier's avatar
      Consolidate x-select-text. · a8b36b95
      Stefan Monnier authored
      * lisp/frame.el (gui-method, gui-method-define, gui-method-declare)
      (gui-call): New macros.
      (gui-method--name): New function.
      (frame-creation-function-alist): Use gui-method-declare.
      (make-frame): Use gui-method.
      * lisp/select.el (gui-select-enable-clipboard): Rename from
      x-select-enable-clipboard and move here.
      (x-select-enable-clipboard): Define as obsolete alias.
      (gui-last-selected-text): New var, to replace x-last-selected-text.
      (gui-select-text): New GUI method.
      (gui-select-text): New function.
      (x-select-text): Define as obsolete alias.
      * lisp/term/common-win.el (x-select-enable-clipboard, x-select-text):
      Move to select.el.
      * lisp/simple.el (interprogram-cut-function): Change default to
      x-select-text.
      (interprogram-paste-function): Change default to `ignore'.
      * lisp/w32-common-fns.el (interprogram-cut-function): Don't modify.
      * lisp/term/x-win.el (interprogram-cut-function): Don't modify.
      (gui-select-text): Add method for x.
      * lisp/term/w32-win.el (gui-select-text): Add method for w32.
      * lisp/term/pc-win.el (x-last-selected-text): Remove, use
      gui-last-selected-text instead.
      (msdos-initialize-window-system): Don't set interprogram-cut-function.
      (gui-select-text): Add method for pc.
      * lisp/term/ns-win.el (ns-last-selected-text): Remove, use
      gui-last-selected-text instead.
      (gui-select-text): Add method for ns.
      (x-setup-function-keys): Don't change interprogram-cut-function.
      * lisp/loadup.el ("startup"): Load after "frame".
      * lisp/subr.el (package--builtin-versions, package--description-file):
      Move from startup.el.
      * lisp/startup.el (package--builtin-versions, package--description-file):
      Move to subr.el.
      (handle-args-function-alist, window-system-initialization-alist):
      Use gui-method-declare.
      (command-line): Use gui-method.
      * src/xselect.c (selection-converter-alist): Fix docstring.
      a8b36b95
  3. 11 Apr, 2014 1 commit
  4. 01 Jan, 2014 1 commit
  5. 30 Dec, 2013 1 commit
  6. 18 Sep, 2013 1 commit
  7. 08 Aug, 2013 1 commit
  8. 20 Jun, 2013 1 commit
  9. 06 Apr, 2013 1 commit
  10. 18 Mar, 2013 1 commit
    • Paul Eggert's avatar
      iso-2022-7bit commentary fixes · 2aa2157b
      Paul Eggert authored
      * notes/unicode: Mention some more iso-2022-7bit files.
      * lisp/term/x-win.el (x-keysym-pair): Add a Fixme.
      
      Fixes: debbugs:13936
      2aa2157b
  11. 01 Jan, 2013 1 commit
  12. 17 Sep, 2012 1 commit
  13. 10 Aug, 2012 2 commits
  14. 20 Jul, 2012 1 commit
  15. 27 Apr, 2012 1 commit
    • Chong Yidong's avatar
      Fix application of menu-bar-mode etc. by X resources. · 15cd8efd
      Chong Yidong authored
      * lisp/startup.el (x-apply-session-resources): New function.
      
      * lisp/term/ns-win.el (ns-initialize-window-system):
      * lisp/term/w32-win.el (w32-initialize-window-system):
      * lisp/term/x-win.el (x-initialize-window-system): Use it to properly
      set menu-bar-mode and other vars from X resources, even if the initial
      frame is not a window-system frame (Bug#2299).
      15cd8efd
  16. 25 Feb, 2012 1 commit
  17. 11 Jan, 2012 1 commit
  18. 05 Jan, 2012 1 commit
  19. 04 Dec, 2011 1 commit
  20. 14 Nov, 2011 1 commit
  21. 17 Feb, 2011 1 commit
    • Glenn Morris's avatar
      Convert some defvars to defcustoms. · 53ef76c7
      Glenn Morris authored
      * lisp/speedbar.el (speedbar-ignored-modes, speedbar-file-unshown-regexp)
      (speedbar-update-flag, speedbar-fetch-etags-command)
      (speedbar-fetch-etags-arguments):
      * lisp/term.el (term-buffer-maximum-size, term-input-chunk-size)
      (term-completion-autolist, term-completion-addsuffix)
      (term-completion-recexact, term-completion-fignore):
      * lisp/term/sup-mouse.el (sup-mouse-fast-select-window):
      * lisp/term/x-win.el (x-select-request-type):
      Convert some defvars with "*" to defcustoms.
      53ef76c7
  22. 01 Feb, 2011 2 commits
  23. 25 Jan, 2011 1 commit
  24. 02 Jan, 2011 1 commit
  25. 31 Oct, 2010 1 commit
  26. 24 Oct, 2010 2 commits
    • Glenn Morris's avatar
      Move some more shared x-, w32- things to common-win. · a44d921f
      Glenn Morris authored
      * term/ns-win.el (x-select-text): Doc fix.
      * w32-fns.el (x-alternatives-map, x-setup-function-keys)
      (x-select-text): Move to term/common-win.
      * term/w32-win.el (xw-defined-colors): Move to common-win.
      * term/x-win.el (xw-defined-colors, x-alternatives-map)
      (x-setup-function-keys, x-select-text): Move to common-win.
      * term/common-win.el (x-select-text, x-alternatives-map)
      (x-setup-function-keys, xw-defined-colors): Merge x- and w32-
      definitions here.
      a44d921f
    • Glenn Morris's avatar
      Reduce duplicate definitions of x-select-enable-clipboard from 3 to 2. · 8aa0f263
      Glenn Morris authored
      * lisp/w32-vars.el (x-select-enable-clipboard):
      * lisp/term/x-win.el (x-select-enable-clipboard): Move to common-win.
      * lisp/term/common-win.el (x-select-enable-clipboard): Move here.
      8aa0f263
  27. 23 Oct, 2010 2 commits
  28. 16 Sep, 2010 1 commit
  29. 02 Sep, 2010 2 commits
    • Jan Djärv's avatar
      Remove cut buffer from documentation. · 45240125
      Jan Djärv authored
      * doc/emacs/frames.texi (Cut/Paste Other App): Remove vut-buffer text.
      
      * doc/lispref/text.texi (Low-Level Kill Ring):
      * doc/lispref/frames.texi (Window System Selections): Remove cut buffer
      documentation.
      
      * doc/misc/cl.texi (Basic Setf): Remove x-get-cut-buffer and x-get-cutbuffer.
      
      * lisp/term/x-win.el (x-select-text):
      * lisp/term/pc-win.el (x-selection-value):
      * lisp/term/ns-win.el (x-selection-value):
      * lisp/eshell/em-term.el:
      * lisp/w32-fns.el (x-get-selection-value):
      * lisp/mouse-sel.el (mouse-sel-set-selection-function):
      * lisp/frame.el (display-selections-p): Remove cut-buffer in documentation.
      
      * lisp/term.el (term-mouse-paste): Don't call x-get-cutbuffer.
      Remove cut buffer from error message.
      45240125
    • Jan Djärv's avatar
      Removed cut-buffer code. · 6d7cc563
      Jan Djärv authored
      * lisp/mouse-sel.el (mouse-sel-get-selection-function):
      x-cut-buffer-or-selection-value renamed to x-selection-value.
      (x-select-text): Optional push removed.
      
      * lisp/select.el (x-get-cut-buffer, x-set-cut-buffer): Remove.
      
      * lisp/simple.el (interprogram-cut-function): Remove mention of PUSH.
      
      * lisp/w32-fns.el (x-last-selected-text):
      x-cut-buffer-or-selection-value renamed to x-selection-value.
      (x-cut-buffer-max): Remove.
      (x-select-text): Remove argument PUSH, update documentation.
      
      * lisp/emacs-lisp/cl-macs.el (x-get-cutbuffer, x-get-cut-buffer): Remove.
      
      * lisp/term/ns-win.el (x-setup-function-keys, ns-last-selected-text):
      x-cut-buffer-or-selection-value renamed to x-selection-value
      (x-selection-value): Renamed from x-cut-buffer-or-selection-value.
      (x-select-text): Remove argument PUSH, update documentation.
      
      * lisp/term/pc-win.el (x-last-selected-text):
      x-cut-buffer-or-selection-value renamed to x-selection-value
      (x-select-text): Remove argument PUSH, update documentation.
      
      * lisp/term/x-win.el: Update documentation for x-last-selected-text-*.
      (x-last-selected-text-cut, x-last-selected-text-cut-encoded)
      (x-last-cut-buffer-coding, x-cut-buffer-max): Remove.
      (x-select-text): Remove argument PUSH, update documentation.  Remove
      cut-buffer code.
      (x-selection-value-internal): Was previously x-selection-value.
      (x-selection-value): Renamed from x-cut-buffer-or-selection-value.
      Update documentation, remove cut-buffer code.  Call
      x-selection-value-internal.
      (x-clipboard-yank): Call x-selection-value-internal.
      (x-initialize-window-system): Remove setting of x-cut-buffer-max.
      
      * src/xselect.c: Remove declaration of cut-buffer objects and functions.
      (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
      (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
      (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
      (Fx_rotate_cut_buffers_internal): Remove.
      (syms_of_xselect): Remove defsubr of above.
      Remove intern of QCUT_BUFFERn.
      
      * src/xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
      
      * src/xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
      6d7cc563
  30. 31 Jul, 2010 1 commit
  31. 17 Jul, 2010 1 commit
    • Chong Yidong's avatar
      Change x-select-enable-primary to nil. · 2490cbbc
      Chong Yidong authored
      * lisp/mouse.el (mouse-drag-copy-region):
      * lisp/simple.el (select-active-regions): Likewise.
      
      * lisp/term/x-win.el (x-select-enable-primary): Change default to nil.
      (x-select-enable-clipboard): Add :version keyword.
      2490cbbc
  32. 14 Jul, 2010 1 commit
    • Chong Yidong's avatar
      Change clipboard/primary selection to X application standards. · f9d71b42
      Chong Yidong authored
      * lisp/menu-bar.el (menu-bar-enable-clipboard): Don't overwrite
      Cut/Copy/Paste menu bar items.
      
      * lisp/mouse.el: Bind mouse-2 to mouse-yank-primary.
      (mouse-drag-copy-region): Default to nil.
      
      * lisp/simple.el (select-active-regions): Default to t.
      (push-mark-command): Don't overwrite primary with empty string.
      
      * lisp/term/x-win.el (x-select-enable-clipboard): Default to t.
      (x-initialize-window-system): Don't overwrite Paste menu item.
      f9d71b42
  33. 18 Jan, 2010 1 commit
  34. 14 Jan, 2010 1 commit
  35. 13 Jan, 2010 1 commit