On Tue, Jan 28, 2003 at 03:12:09PM +0100, Andre Poenitz wrote: > void LyXText::cutSelection(BufferView * bview, bool doclear, bool realcut) > { > // Stuff what we got on the clipboard. Even if there is no selection. > > // There is a problem with having the stuffing here in that the > // larger the selection the slower LyX will get. This can be > // solved by running the line below only when the selection has > // finished. The solution used currently just works, to make it > // faster we need to be more clever and probably also have more > // calls to stuffClipboard. (Lgb) > bview->stuffClipboard(selectionAsString(bview->buffer(), true)); > > And indeed, it gets _slow_. Up to a few minutes freeze when cutting a few > pages full of formula. > > Why do we have to _stuff_ the clipboard? > And which clipboard?
The xforms clipboard. Things are a bit of a mess because xforms only provides primary support not clipboard support. They are supposed to act differently in a "real" X application (clipboard for control-X, primary for "select region"). I believe this is working as best as it can at the moment. I don't understand the comment above, surely cutClipboard is only called once. regards john -- "What *is* your fascination with my forbidden closet of mystery ?" - Chief Wiggum