1. 22 Jun, 2019 2 commits
  2. 25 May, 2019 1 commit
    • Paul Eggert's avatar
      Go back to "Maintainer: emacs-devel@gnu.org" · f744797a
      Paul Eggert authored
      Restore lines saying "Maintainer: emacs-devel@gnu.org" when there is
      no special maintainer for a file.  Although this wasn't documented
      it was common practice and removing the lines didn't have consensus.
      f744797a
  3. 20 May, 2019 1 commit
  4. 17 May, 2019 2 commits
    • Eli Zaretskii's avatar
      Fix a recent commit in select.el · 53e18401
      Eli Zaretskii authored
      * lisp/select.el (gui-get-selection): Revert a recent
      incorrect change.  Add a comment explaining what we are trying
      to do with C_STRING and why.
      (xselect--encode-string): Add a comment explaining what we are
      trying to do with C_STRING and why.
      53e18401
    • Lars Ingebrigtsen's avatar
      (gui-get-selection): Avoid using `string-to-multibyte' · ab263a79
      Lars Ingebrigtsen authored
      * lisp/select.el (gui-get-selection): Avoid using
      `string-to-multibyte' -- instead encode as `eight-bit' if the
      string is unibyte.
      ab263a79
  5. 01 Jan, 2019 1 commit
  6. 20 Apr, 2018 1 commit
    • Glenn Morris's avatar
      The tedious game of whack-a-mole with compiler warnings continues · 9c3eeba4
      Glenn Morris authored
      * lisp/abbrev.el (edit-abbrevs-map):
      * lisp/emacs-lock.el (emacs-lock-from-exiting):
      * lisp/htmlfontify.el (hfy-optimisations):
      * lisp/ielm.el (inferior-emacs-lisp-mode-hook)
      (inferior-emacs-lisp-mode-map):
      * lisp/isearch.el (isearch-lazy-highlight-word):
      * lisp/select.el (x-select-enable-clipboard, x-select-enable-primary):
      * lisp/shell.el (shell-dirtrack-mode):
      * lisp/skeleton.el (skeleton-transformation, skeleton-filter):
      * lisp/startup.el (inhibit-splash-screen, inhibit-startup-message):
      * lisp/window.el (even-window-heights):
      * lisp/calendar/timeclock.el (timeclock-modeline-display):
      * lisp/cedet/semantic/db-mode.el (semanticdb-mode-hook)
      (semanticdb-global-mode):
      * lisp/emacs-lisp/edebug.el (gud-inhibit-global-bindings):
      * lisp/emacs-lisp/warnings.el (display-warning-minimum-level)
      (log-warning-minimum-level):
      * lisp/erc/erc-dcc.el (erc-dcc-chat-filter-hook):
      * lisp/gnus/nnspool.el (news-path):
      * lisp/org/org-agenda.el (org-agenda-search-view-search-words-only)
      (org-agenda-remove-tags-when-in-prefix)
      (org-agenda-align-tags-to-column, org-agenda-keymap):
      * lisp/org/org.el (org-special-ctrl-a)
      (org-log-state-notes-into-drawer)
      (org-agenda-multi-occur-extra-files):
      * lisp/progmodes/flymake-proc.el (flymake-err-line-patterns)
      (flymake-check-file-limit):
      * lisp/progmodes/make-mode.el (makefile-query-one-target-method):
      * lisp/progmodes/octave.el (inferior-octave-startup-hook):
      * lisp/progmodes/python.el (python-buffer)
      (python-preoutput-result):
      * lisp/progmodes/sql.el (sql-dialect):
      * lisp/textmodes/artist.el (artist-text-renderer):
      * lisp/textmodes/bibtex.el (bibtex-autokey-name-case-convert)
      (bibtex-autokey-titleword-case-convert):
      * lisp/textmodes/flyspell.el (flyspell-generic-check-word-p):
      * lisp/textmodes/ispell.el (ispell-format-word):
      * lisp/textmodes/rst.el (rst-preferred-decorations):
      * lisp/textmodes/sgml-mode.el (sgml-transformation):
      Move aliases before targets, to silence new compiler warning.
      * lisp/term/ns-win.el (ns-option-modifier, ns-right-option-modifier):
      Silence warning.
      9c3eeba4
  7. 14 Apr, 2018 1 commit
  8. 01 Jan, 2018 1 commit
  9. 29 Oct, 2017 1 commit
  10. 13 Sep, 2017 1 commit
    • Paul Eggert's avatar
      Prefer HTTPS to FTP and HTTP in documentation · bc511a64
      Paul Eggert authored
      Most of this change is to boilerplate commentary such as license URLs.
      This change was prompted by ftp://ftp.gnu.org's going-away party,
      planned for November.  Change these FTP URLs to https://ftp.gnu.org
      instead.  Make similar changes for URLs to other organizations moving
      away from FTP.  Also, change HTTP to HTTPS for URLs to gnu.org and
      fsf.org when this works, as this will further help defend against
      man-in-the-middle attacks (for this part I omitted the MS-DOS and
      MS-Windows sources and the test tarballs to keep the workload down).
      HTTPS is not fully working to lists.gnu.org so I left those URLs alone
      for now.
      bc511a64
  11. 29 Jun, 2017 1 commit
    • Noam Postavsky's avatar
      Escape NUL bytes in X selections (Bug#6991) · c87c87fc
      Noam Postavsky authored
      * lisp/term/w32-win.el (w32--set-selection):
      * lisp/select.el (xselect--encode-string): Replace NUL bytes with
      "\0".
      * doc/emacs/killing.texi: Document new behavior.
      * etc/NEWS (times): Announce it.
      c87c87fc
  12. 06 Jan, 2017 1 commit
  13. 01 Jan, 2017 1 commit
  14. 01 Jan, 2016 1 commit
  15. 12 Oct, 2015 1 commit
  16. 23 May, 2015 1 commit
    • Stefan Monnier's avatar
      Replace gui-method macros with cl-generic with &context · 919281dd
      Stefan Monnier authored
      * lisp/frame.el (gui-method--name, gui-method, gui-method-define)
      (gui-method-declare, gui-call): Remove.
      (frame-creation-function): Use cl-defgeneric.
      (make-frame): Adjust callers.
      
      * lisp/menu-bar.el (menu-bar-edit-menu):
      Use gui-backend-selection-exists-p.
      
      * lisp/select.el (x-get-clipboard): Use gui-backend-get-selection.
      (gui-backend-get-selection): New cl-generic to replace
      gui-get-selection method.
      (gui-backend-set-selection): New cl-generic to replace
      gui-set-selection method.
      (gui-selection-owner-p): New cl-generic to replace
      gui-selection-owner-p method.
      (gui-backend-selection-exists-p): New cl-generic to replace
      gui-selection-exists-p method.  Adjust all callers.
      
      * lisp/server.el (server-create-window-system-frame): Don't ignore
      window-system spec even when unsupported.
      
      * lisp/simple.el (deactivate-mark): Use new gui-backend-* functions.
      
      * lisp/startup.el (handle-args-function, window-system-initialization):
      Use cl-defgeneric.
      (command-line): Adjust calls accordingly.
      
      * lisp/term/ns-win.el (ns-window-system-initialization): Turn into
      a window-system-initialization method.
      (handle-args-function, frame-creation-function): Use cl-defmethod.
      (gui-set-selection, gui-selection-owner-p, gui-selection-exists-p)
      (gui-get-selection): Use cl-defmethod on the new functions instead.
      
      * lisp/term/pc-win.el (w16-get-selection-value): Turn into
      a gui-backend-get-selection method.
      (gui-selection-exists-p, gui-selection-owner-p, gui-set-selection):
      Use cl-defmethod on the new functions instead.
      (msdos-window-system-initialization): Turn into
      a window-system-initialization method.
      (frame-creation-function, handle-args-function): Use cl-defmethod.
      
      * lisp/term/w32-win.el (w32-window-system-initialization): Turn into
      a window-system-initialization method.
      (handle-args-function, frame-creation-function): Use cl-defmethod.
      (gui-set-selection, gui-selection-owner-p, gui-selection-exists-p)
      (gui-get-selection): Use cl-defmethod on the new functions instead.
      
      * lisp/term/x-win.el (x-window-system-initialization): Turn into
      a window-system-initialization method.
      (handle-args-function, frame-creation-function): Use cl-defmethod.
      (gui-set-selection, gui-selection-owner-p, gui-selection-exists-p)
      (gui-get-selection): Use cl-defmethod on the new functions instead.
      
      * lisp/term/xterm.el (xterm--set-selection): Turn into
      a gui-backend-set-selection method.
      
      * src/nsselect.m (Fns_selection_exists_p): Remove unused arg `terminal'.
      (Fns_selection_owner_p): Remove unused arg `terminal'.
      (Fns_get_selection): Remove unused args `time_stamp' and `terminal'.
      919281dd
  17. 01 Jan, 2015 2 commits
  18. 01 Nov, 2014 1 commit
  19. 23 Oct, 2014 1 commit
    • Stefan Monnier's avatar
      * lisp/select.el: Use lexical-binding. · d361bcfb
      Stefan Monnier authored
      (gui-set-selection): Provide an implementation for non-GUI frames.
      * lisp/term/x-win.el: Use lexical-binding.
      (x-clipboard-yank): Fix up missed renamings.
      * lisp/term/w32-win.el (libgif-version, libjpeg-version): Silence compiler.
      (w32--set-selection): Fix up var names.
      * lisp/term/pc-win.el: Use lexical-binding.
      (w16-selection-exists-p): Silence compiler warning.
      (w16-selection-owner-p): Fix up missed renamings.
      
      * lisp/emacs-lisp/bytecomp.el (byte-compile-form): Remove left-over debug.
      
      * lisp/frame.el (frame-notice-user-settings): Fix excessive quoting.
      
      Fixes: debbugs:18791
      d361bcfb
  20. 21 Oct, 2014 1 commit
    • 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
      gui-select-enable-clipboard.
      (select-enable-primary): Move from x-win.el and rename from
      x-select-enable-primary.
      (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
      x-selection-value-internal.
      (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
      w32--get-selection).
      (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
      Fx_selection_exists_p.
      (syms_of_win16select): Adjust accordingly.
      
      * src/w32select.c (Fw32_selection_exists_p): Rename from
      Fx_selection_exists_p.
      (syms_of_w32select): Adjust accordingly.
      a046b8dd
  21. 10 Oct, 2014 1 commit
    • Stefan Monnier's avatar
      * lisp/select.el (gui-selection-exists-p-alist): New method. · a27cd28f
      Stefan Monnier authored
      * lisp/menu-bar.el (menu-bar-edit-menu, clipboard-yank):
      * lisp/simple.el (deactivate-mark): Use it.
      * lisp/term/x-win.el (gui-selection-exists-p):
      * lisp/term/w32-win.el (gui-selection-exists-p):
      * lisp/term/pc-win.el (gui-selection-exists-p):
      * lisp/term/ns-win.el (gui-selection-exists-p): Provide a backend instance.
      a27cd28f
  22. 03 Oct, 2014 2 commits
    • Stefan Monnier's avatar
      71188224
    • Stefan Monnier's avatar
      New gui-selection-value consolidating x-selection-value. · d6f8fef3
      Stefan Monnier authored
      * lisp/select.el (gui-selection-value-alist): New method.
      (gui-selection-value): New function.
      (x-selection-value): Make it an obsolete alias.
      * lisp/simple.el (interprogram-paste-function): Default to gui-selection-value.
      * lisp/w32-common-fns.el (w32-get-selection-value): Simplify.
      (x-selection-value): Remove alias.
      (interprogram-paste-function): Don't set.
      (gui-selection-value): Define for w32.
      * lisp/term/x-win.el (gui-selection-value): Define for x.
      (x--selection-value): Rename from x--selection-value.
      (interprogram-paste-function): Don't set.
      * lisp/term/pc-win.el (w16-get-selection-value): Simplify.
      (msdos-initialize-window-system): Don't set interprogram-paste-function.
      (gui-selection-value): Define for pc.
      * lisp/term/ns-win.el (x-selection-value): Remove.
      (gui-selection-value): Define for ns, instead.
      * lisp/term/common-win.el (x-setup-function-keys): Don't set
      interprogram-paste-function.
      * lisp/obsolete/mouse-sel.el (mouse-sel-get-selection-function):
      Use gui-selection-value.
      d6f8fef3
  23. 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
  24. 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
  25. 10 Feb, 2014 2 commits
  26. 01 Jan, 2014 1 commit
  27. 01 Jan, 2013 1 commit
  28. 10 Oct, 2012 1 commit
  29. 04 May, 2012 1 commit
  30. 24 Apr, 2012 1 commit
    • Chong Yidong's avatar
      Ensure that X selection convertors properly encode returned strings. · acb71f1d
      Chong Yidong authored
      Though not itself a regression, this bug was exposed by the support
      for MULTIPLE selections, which is new to Emacs 24 (see Bug#11315).
      
      * lisp/select.el (xselect--encode-string): New function, split from
      xselect-convert-to-string.
      (xselect-convert-to-string): Use it.
      (xselect-convert-to-filename, xselect-convert-to-os)
      (xselect-convert-to-host, xselect-convert-to-user): Ensure that
      returned strings are properly encoded.
      acb71f1d
  31. 11 Feb, 2012 1 commit
    • Glenn Morris's avatar
      Update some function declarations · cfecdf09
      Glenn Morris authored
      * lisp/select.el (x-get-selection-internal, x-own-selection-internal)
      (x-disown-selection-internal):
      * lisp/x-dnd.el (x-get-selection-internal): Update declarations.
      cfecdf09
  32. 11 Jan, 2012 1 commit
  33. 05 Jan, 2012 1 commit
  34. 31 Dec, 2011 1 commit
  35. 29 May, 2011 1 commit
    • 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.
      1dd3c2d9