Am Mittwoch, 3. Januar 2007 10:22 schrieb Abdelrazak Younes: > Dear all, > > This patch al last unify internal and external pasting. With with patch, > when you press Ctrl-v, LyX will invoke LFUN_PASTE if the clipboard was > set internally and "LFUN_CLIPBOARD_PASTE line" if set externally. The > later default can be changed to "paragraph" in the binding. > > Objection?
Yes. I do agree with the goal, but it should be implemented differently IMO. The different clipboard paste operations we currently have are: 1) internal paste from cut stack number 0: "paste" 2) internal paste from cut stack number n: "paste n" 3) external paste as lines: "clipboard-paste" 4) external paste as paragraphs: "clipboard-paste paragraph" What is missing is this: x) standard paste: from internal or external clipboard (whatever is newer), should be bound to C-v You implemented x) by destroying 3) and 4), while 1) is still possible. Since 1) is currently the same as 2) with an argument of 0, I propose to implement x) like this: 1) internal or external paste (whatever is newer): "paste" 2) internal paste from cut stack number n: "paste n" 3) external paste as lines: "clipboard-paste" 4) external paste as paragraphs: "clipboard-paste paragraph" i.e. changing LFUN_PASTE, not LFUN_CLIPBOARD_PASTE. Then experts are still able to import the external clipboard in a different formatting, or paste from the internal cut stack. People who do not like the external clipboard to be connected to the internal one (although I cannot imagine anybody would like to do that) can still do so by changing "paste" to "paste 0" in their ui files. What do others think? Georg
