[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Copying URLs to X-clipboard [PATCH]]
In [emacs-w3m:12820]
On Sun, 19 Nov 2017 23:53:45 -0500, Boruch Baum wrote:
> That looks like it should also work, but what I did with a shell "here
> variable", the "<<<" may be more cpu efficient, because it doesn't need
> 'echo' or the pipe.
Ok, here it is:
(defun my-nox-select-text (text)
"Send TEXT to `xsel -i'."
(call-process-region text nil "xsel" nil nil nil "-i"))
This works even on my shell that doesn't support "<<<". ;-)