>> This introduces a new LFUN LFUN_INSET_COPY_AS, which copies a certain

>> Inset to the clipboard. For InsetInfo this is the text that is 
>> visible, but this could also replace LFUN_LABEL_COPY_AS_REF, by 
>> copying the INSET to the clipboard as a reference, and also a Math 
>> inset to copy to the clipboard as latex (including $'s or \[..\]).
>
>I fear that the semantics of the function becomes very vague with time.

Time is evil.

>Is inset info supposed to check the argument?

No, I only wanted to copy the text to the clipboard.

>Note that you could define generic implementations for
>copying to text and latex with little effort.

I thought I did so.

>Or do we really want to copy more than a text string?

In case of a label, you can copy it as a reference; in case of math, you
can copy it as the latex representation; etc.

I didn't want to have a LFUN_LABEL_COPY_AS_REF, LFUN_INFO_COPY_AS_TEXT
etc., and I thought this would be a nice and useful generalization and
extension.

>Jmarc

Vincent

Reply via email to