freenode/#clim - IRC Chatlog
Search
5:13:16
loke
What would be a good way to transfer the selected text to the clipboard? (i.e. what in Windows/GNOME is achieved by pressing Control-C, orin OSX by pressing ⌘-C)
5:15:42
loke
Or something with the mouse? We already steal Shift-Click on the text... So perhaps Shift RIght-Click?
5:16:49
loke
It's something that until now simply hasn't been supported, so except for the interactor command, it's something that doesn't have an analogue in older CLIM applications, I think?
5:18:50
slyrus
I'm a big fan of selecting text and then using the middle button to "paste" said text. Not sure what the magic under the covers is but that sequence just worked for me on thunderbird (to select text from my IRC window) and emacs (to "paste" the text using the middle mouse button).
5:19:50
loke
slyrus: The new stuff is support for the clipboard. C-c (or ⌘-c) copies the content of the selection to the clipboard.
5:22:08
loke
I mean, for anything that supports plain slections (i.e. middle-click) that still works of course.
10:42:14
loke
jackdaniel: Rememebr how the suggestion was to send an event containing the content of the clipboard after it's requested?
10:43:46
loke
The problem is that events are sent to panes, but the requestor may not be a pane. In most cases it's a DREI instance. (there can be many DREI's in a single pane)
10:46:49
loke
Now... The existing implementation does send an event, but it has an event-handler that picks that event up, and rainses a singnal, the condition that is raised contains a slot that holds a reference to the event. Then, inside DREI::READ-GESTURES-AND-ACT, it catches this signal and inserts the text. I tried the same, but it turns out that's not the only place the events are processed.
10:47:34
jackdaniel
that's why I want to get rid of drei, it does not fit well in clim infrastructure with all emacsusms it has
10:47:42
loke
It just so happens that it works in the existing implementation because you're in the middle of clicking the mouse when pasting. When typing, the condition is raised inside a completely different function.