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-selection-paste", >> Noop, Edit }, >> { LFUN_SELECTION_PASTE, "selection-paste", Noop, Edit }, > > Also, surprisingly, none of these seems to implement the kind of feature > I usually find very useful in copy'n'pasting in WYSIWYG editors, i.e., > the possibility to paste the clipboard as simple unformatted text. > > So, just to waste time, I've come out with the attached patch, introducing > the PASTE_SIMPLE_TEXT LFUN and associating it with C-S-v. Perhaps this may > be useful to someone else.
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 == ' '); > } > } > + dit.pit() = pit; > + dit.pos() = pos; > } pavel