On Wed, Jul 25, 2001 at 05:21:18AM +0100, John Levon wrote:
>
> I'm trying to basically fold the relevant parts into the bug tracker. Can people
> hint on which are these are still true ?
>
> btw, why do we not allow X pastes from us when we've not done Edit->Copy ? Aslo
> why does there seem to be a limit on how much is copied ?
IIRC, it is not possible to do the copying at the correct time (the time the
text is pasted into the external application) using XForms.
What can be done, is to copy the text into the clipboard when the LyX window
loses its focus.
There is a problem with this: the copying should be done fast enough so that
the user will not notice it (for example, suppose that the user just wants
to select some menu item, and he just exit the lyx window by accident).
Normally, this should not be a problem (unless the marked region is very
large).
However, there is a problem if you have a an external inset in the
selection that contains, for example, an image:
during the copying of the selection into the clipboard, the gifscii program
will be run in order to convert the image to ascii art, and this
takes a lot of time.
I do think that having the standard behavior of clipboard copying is more
important than having images converted to ascii art (useless gimmick),
so I suggest that when copying the selection to the X clipboard, the
insetexternal::Ascii method will not be called.