[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/xclip 84b363d 15/18: * xclip.el (xclip-get-selection):
From: |
Stefan Monnier |
Subject: |
[elpa] externals/xclip 84b363d 15/18: * xclip.el (xclip-get-selection): Tell wl-paste not to add a newline |
Date: |
Sat, 28 Nov 2020 14:27:57 -0500 (EST) |
branch: externals/xclip
commit 84b363d8857de0c279bf84313143ec8c65ce411d
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
* xclip.el (xclip-get-selection): Tell wl-paste not to add a newline
Suggested by Nolan Wright <nolan@nolanwright.dev>.
---
xclip.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/xclip.el b/xclip.el
index 1713bf7..ead5111 100644
--- a/xclip.el
+++ b/xclip.el
@@ -185,7 +185,12 @@ See also `x-set-selection'."
(replace-regexp-in-string "\\(.*\\)copy" "\\1paste"
xclip-program 'fixedcase)
nil standard-output nil
- (if (memq type '(primary PRIMARY)) '("-p")))))
+ ;; From wl-paste's doc:
+ ;; -n, --no-newline Do not append a newline character
+ ;; after the pasted clipboard content. This option is
+ ;; automatically enabled for non-text content types and
+ ;; when using the --watch mode.
+ "-n" (if (memq type '(primary PRIMARY)) '("-p")))))
(`termux-clipboard-get
(when (memq type '(clipboard CLIPBOARD))
(call-process xclip-program nil standard-output nil)))
- [elpa] externals/xclip 7b7b6d2 13/18: xclip.el: Add support for termux-clipboard-get/set, (continued)
- [elpa] externals/xclip 7b7b6d2 13/18: xclip.el: Add support for termux-clipboard-get/set, Stefan Monnier, 2020/11/28
- [elpa] externals/xclip 0029bde 16/18: * packages/xclip/xclip.el: Fix it when loaded before term/xterm.el, Stefan Monnier, 2020/11/28
- [elpa] externals/xclip 0118d7a 18/18: * .gitignore: New file, Stefan Monnier, 2020/11/28
- [elpa] externals/xclip 89e061e 14/18: * packages/xclip/xclip.el: Tweak last patch, Stefan Monnier, 2020/11/28
- [elpa] externals/xclip a5e0330 02/18: * xclip.el: Better follow conventions., Stefan Monnier, 2020/11/28
- [elpa] externals/xclip ef584a0 11/18: * xclip/xclip.el: Don't use remote processes to get selection, Stefan Monnier, 2020/11/28
- [elpa] externals/xclip 9407231 12/18: * packages/xclip/xclip.el: Add tentative support for wl-clipboard, Stefan Monnier, 2020/11/28
- [elpa] externals/xclip 9ced2ac 17/18: * packages/xclip/xclip.el: Add tentative WSL support, Stefan Monnier, 2020/11/28
- [elpa] externals/xclip f7b69fa 07/18: * xclip/xclip.el: Add support for `xsel` and Cygwin's `getclip`, Stefan Monnier, 2020/11/28
- [elpa] externals/xclip aed39ef 09/18: * xclip/xclip.el: Make it work again on Emacs<25, Stefan Monnier, 2020/11/28
- [elpa] externals/xclip 84b363d 15/18: * xclip.el (xclip-get-selection): Tell wl-paste not to add a newline,
Stefan Monnier <=