Am 09.12.2010 um 12:38 schrieb Enrico Forestieri:

> On Thu, Dec 09, 2010 at 07:58:45AM +0100, Stephan Witt wrote:
>> Am 09.12.2010 um 02:04 schrieb Enrico Forestieri:
>> 
>>> On Wed, Dec 08, 2010 at 11:52:10PM +0100, Stephan Witt wrote:
>>>> 
>>>> I don't know if there are any drawbacks - it works!
>>> 
>>> It may have drawbacks.
>>> For example, are you able to paste between different LyX instances?
>> 
>> No. If I copy in instance A and paste into B - command disabled.
>> Copy in B and paste into A - first (unrelated) copy is pasted.
>> That's to be expected.
>> 
>> The ways to get 2 instances are:
>> * start two different versions of LyX (beta1 and beta2)
>> * start from terminal again
>> * start from Application and start from debugger
>> 
>> I'm not sure how to rate the patch. 
>> Somehow it does not look 100% correct.
> 
> Only pasting beween different LyX instances is not possible, though.
> 
>> Shouldn't it possible to get more infos about the selection from Qt?
>> It would help - as I see it - if one can decide if the current
>> selection is owned by the same instance of LyX or not.
> 
> I tackled the problem in a different way. Please test the attached patch.
> It should be possible pasting between different LyX instances even on
> Mac and, at the same time, avoid the absolute path bug when pasting
> in the same LyX instance. Note that when pasting between different LyX
> instances, an absolute path is always used. This is so also on *nix and
> Windows. Moreover, on *nix and Windows no change of behavior is entailed.
> Please, test it thoroughly.

I can confirm - it works, at least partly. The internal copy has relative path 
and the inter-instance copy has absolute path.

But copying text from terminal window to LyX isn't possible anymore after I
copied an image. Succeeding pastes insert the image again.

Stephan

Reply via email to