Questions tagged [clipboard]
62 questions
6
votes
1 answer
How can I clear the contents of the clipboard before calling clipboard-kill-region?
I use clipboard-kill-region to copy contents from Emacs to other programs. But sometimes, it copies the same content twice into the clipboard.
It looks like,
/home/user/.emacs/home/user/.emacs
when I copy the filename
/home/user/.emacs
Is there…

Saravana
- 2,071
- 13
- 32
3
votes
1 answer
Clipboard manager will not work in terminal Emacs
Emacs 25.1.50, GTK+ version 3.18.9 on GNU/Linux, version 4.4.
Gnome-terminal as xterm terminal emulator.
When using clipboard (as in, I copy some text from my operating system/browser), and paste it in Emacs GUI version, it works fine. The GUI Emacs…

ReneFroger
- 3,850
- 23
- 66
2
votes
1 answer
"File error" when using xclip
To enable copy and paste between X11 and emacs in terminal, I installed xclip via M-x package-install. There is xclip-1.4 in ~/.emacs.d/ with the following files:
xclip-autoloads.el xclip.el xclip.elc xclip-pkg.el xclip-pkg.elc
I also checked…

purplezzh
- 75
- 6
1
vote
1 answer
Handle long lines while pasting from clipboard without freezing emacs
I have a lengthy xml output from a rest endpoint, I copied if from chrome dev tools to clipboard and on pasting it into an org mode buffer inside an xml source block freezes emacs for a while.
I guess this is because of emacs trying to syntax…

tutysara
- 33
- 5
0
votes
1 answer
Get MIME file-type of current temporary buffer without using a temporary file
I have this function:
(defun save-binary-content (binary path)
(let ((coding-system-for-write 'no-conversion))
(with-temp-buffer
(toggle-enable-multibyte-characters)
(set-buffer-file-coding-system 'raw-text)
(insert binary)
(write-file path…

cidra
- 139
- 5