Re: Paste as simple unformatted text

2011-10-29 Thread Enrico Forestieri
On Sun, Oct 30, 2011 at 12:23:00AM +0200, Tommaso Cucinotta wrote: > 2) The current "C-S-v" shortcut is bound to the "clipboard-paste" > command, i.e., > the same feature mentioned above, which pastes only the text from the > clipboard along with its format. I'd suggest to change it to the

Re: Paste as simple unformatted text

2011-10-29 Thread Uwe Stöhr
Am 30.10.2011 00:23, schrieb Tommaso Cucinotta: I have a couple of suggestions for menus and shortcuts: 1) The [Edit]->[Paste Special...]->[Plain Text] seems to me somewhat misleading. I would be tempted to invoke it exactly to paste as plain (unformatted text). But, what it does, is actually p

Re: Paste as simple unformatted text

2011-10-29 Thread Uwe Stöhr
Am 30.10.2011 00:10, schrieb Tommaso Cucinotta: If should go to branch can you please give me a short description what the new menu entries do exactly so that I can update the docs? AFAICS, this is a small feature enhancement, not really a bug fixing. Therefore, I'd not reflect it to branch.

Re: Paste as simple unformatted text

2011-10-29 Thread Tommaso Cucinotta
Il 29/10/2011 23:29, Uwe Stöhr ha scritto: If should go to branch can you please give me a short description what the new menu entries do exactly so that I can update the docs? I have a couple of suggestions for menus and shortcuts: 1) The [Edit]->[Paste Special...]->[Plain Text] seems to me s

Re: Paste as simple unformatted text

2011-10-29 Thread Tommaso Cucinotta
Il 29/10/2011 23:29, Uwe Stöhr ha scritto: If this will not be backported to branch, can you please add an entry here: http://wiki.lyx.org/LyX/NewInLyX21 If should go to branch can you please give me a short description what the new menu entries do exactly so that I can update the docs? AFAI

Re: Paste as simple unformatted text

2011-10-29 Thread Uwe Stöhr
Am 29.10.2011 17:43, schrieb Tommaso Cucinotta: I just updated the patch adding the "paste as unformatted text" capability to LyX. It fixes enhancement #7226, and it partially addresses #6731. So I've committed it as r40060. If this will not be backported to branch, can you please add an e

Re: Paste as simple unformatted text

2011-10-29 Thread Tommaso Cucinotta
Il 29/10/2011 03:05, Richard Heck ha scritto: On 10/28/11 6:30 PM, Tommaso Cucinotta wrote: I just updated the patch adding the "paste as unformatted text" capability to LyX. It fixes enhancement #7226, and it partially addresses #6731. It is attached. Comments are very welcome. This seems

Re: Paste as simple unformatted text

2011-10-28 Thread Richard Heck
On 10/28/11 6:30 PM, Tommaso Cucinotta wrote: I just updated the patch adding the "paste as unformatted text" capability to LyX. It fixes enhancement #7226, and it partially addresses #6731. It is attached. Comments are very welcome. This seems OK. rh

Re: Paste as simple unformatted text

2011-01-11 Thread Liviu Andronic
On Wed, Jan 5, 2011 at 5:54 PM, Pavel Sanda wrote: > Tommaso Cucinotta wrote: >> I have to admit that I have no clue about >> whether this impacts other uses of that method and causes misbehaviors. > > i think this is 2.1 stuff. > I didn't follow the entire conversation, but I have a small comment

Re: Paste as simple unformatted text

2011-01-11 Thread Tommaso Cucinotta
Il 10/01/2011 10:13, Vincent van Ravesteijn ha scritto: Hmm, "DocIterator const& dit" and "DocIterator& dit" are both references. "DocIterator dit" would have been passing the cursor by value. sure, I wanted to mean allowing the method to modify the passed object as opposed to not allowing,

Re: Paste as simple unformatted text

2011-01-10 Thread Vincent van Ravesteijn
Hi Tommaso, Some remarks on your "Paste as simple text" patch. First, before introducing new LFUNs and new code I would really like to sort out the existing LFUNs, menuitems and code. What you describe as simple text, would have been my interpretation of "plain text". If this really is something

Re: Paste as simple unformatted text

2011-01-09 Thread Tommaso Cucinotta
Il 05/01/2011 17:54, Pavel Sanda ha scritto: Tommaso Cucinotta wrote: I have to admit that I have no clue about whether this impacts other uses of that method and causes misbehaviors. i think this is 2.1 stuff. I just dropped the patch into #7226, to not forget about it. T.

Re: Paste as simple unformatted text

2011-01-05 Thread Pavel Sanda
Tommaso Cucinotta wrote: > I have to admit that I have no clue about > whether this impacts other uses of that method and causes misbehaviors. i think this is 2.1 stuff. pavel

Re: Paste as simple unformatted text

2011-01-04 Thread Tommaso Cucinotta
Il 04/01/2011 02:12, Pavel Sanda ha scritto: i was almost going to say that its unintrusive enough for 2.0, but then i saw changes in Text::insertStringAsLines. what does it do, why does it do? @@ -796,12 +796,14 @@ space_inserted = (*cit == ' '); }

Re: Paste as simple unformatted text (was: Fwd: Re: Paste as simple text copies format as well)

2011-01-03 Thread Pavel Sanda
Tommaso Cucinotta wrote: >> After a look at the code, I'm puzzled with the purpose and functionality >> of the related LFUNs: >> { LFUN_PASTE, "paste", Noop, Edit }, >> { LFUN_CLIPBOARD_PASTE, "clipboard-paste", Noop, Edit }, >> { LFUN_PRIMARY_SELECTION_PASTE, "primary-