freenode/#clim - IRC Chatlog
Search
10:31:46
jackdaniel
can you confirm that primary selection paste (nor copy) doesn't work between clim and other applications?
10:32:21
jackdaniel
(as in setting markings and middle clicking somewhere - and other way around - selecting some text and shift+mouse-m
10:33:30
jackdaniel
another question: why pasting requires separate (shift+insert) gesture and can't work fine with yank command?
10:34:14
jackdaniel
yeah, I'm testing it and it doesn't seem to work. I thought that during rewrite I've introduced a regression, but it doesn't work on your branch either
10:36:01
loke
The reason Control-Y doesn't paste from the clipboard is because iin DREI, C-y is pasting from its own internal kill-ring.
10:37:13
ecraven
jackdaniel: for me, pasting in emacs is a definite mess... it seems copy/paste is a mess in general on X :-/
10:37:22
loke
It monitors when the clipboard is taken, and if the most recent global clipboard update happened before the most recent addition to Emacs own internal kill-ring,
10:37:38
jackdaniel
ecraven: thanks to loke's changes peer review I know more about copy/paste on X11 than I would want to ,-)
10:37:48
loke
(and, a paste from the clipboard in Emacs will also cause the kill-ring to be updated)
10:38:42
loke
jackdaniel: Well. I'm not sure. There are two ways: One is to listen for some specific X-event. There is one sent when the ownership changes.
10:39:17
loke
The other would be to check the timestamp of the clipboard object (that takes a roundtrip to the owner though, and would have to be done every time a paste is made, so I doubt that's what happens)
10:40:17
jackdaniel
ecraven: querying wouldn't work without violating abstraction barrier between backend and client code
10:40:55
loke
jackdaniel: Yeah. I'm also not entirely sure you can get the timestamp when the object was placed on the clipboard, so you'd probably have to monitor the clipboard notification events.
10:41:47
loke
Anyway, I didn't feel like trying to get that working, so I settled on implementing an alternative way of pasting.
10:42:32
ecraven
ah, have you thought about the different types of pastes? like firefox supports plain text, html, and multiple others, when you select something?