#include "Lexer.h"
#include "LyXAction.h"
#include "LyX.h"
+#include "LyXFunc.h"
#include "LyXRC.h"
#include "LyXVC.h"
#include "output_docbook.h"
string const argument = to_utf8(func.argument());
// We'll set this back to false if need be.
bool dispatched = true;
+ undo().beginUndoGroup();
switch (func.action) {
case LFUN_BUFFER_TOGGLE_READ_ONLY:
break;
}
dr.dispatched(dispatched);
+ undo().endUndoGroup();
}
str = _("Document was successfully recovered.");
else
str = _("Document was NOT successfully recovered.");
- str += "\n\n" + _("Remove emergency file now?");
+ str += "\n\n" + bformat(_("Remove emergency file now?\n(%1$s)"),
+ from_utf8(e.absFilename()));
if (!Alert::prompt(_("Delete emergency file?"), str, 1, 1,
_("&Remove"), _("&Keep it"))) {