* the new string. When \c backwards == false, set anchor before
* cursor; otherwise set cursor before anchor.
*/
-void replaceSelectionWithString(LCursor & cur, std::string const & str,
+void replaceSelectionWithString(LCursor & cur, docstring const & str,
bool backwards);
/// replace selection helper
void replaceSelection(LCursor & cur);
///
void pasteSelection(LCursor & cur, ErrorList &, size_t sel_index = 0);
-///
+/// Paste the paragraph list \p parlist at the position given by \p cur.
+/// Does not handle undo. Does only work in text, not mathed.
void pasteParagraphList(LCursor & cur, ParagraphList const & parlist,
textclass_type textclass, ErrorList & errorList);