]> git.lyx.org Git - lyx.git/blobdiff - src/bufferlist.C
remove noload/don't typeset
[lyx.git] / src / bufferlist.C
index d8226677a1876c084eed5b46f617db6455eef9fb..51e042724c84f111cb0fb1aa807cdd7589a420dc 100644 (file)
@@ -41,6 +41,8 @@
 #include "support/lyxfunctional.h"
 #include "support/LAssert.h"
 
+#include <boost/bind.hpp>
+
 #include <cassert>
 #include <algorithm>
 #include <functional>
@@ -289,7 +291,7 @@ void BufferList::updateIncludedTeXfiles(string const & mastertmpdir)
 void BufferList::emergencyWriteAll()
 {
        for_each(bstore.begin(), bstore.end(),
-                lyx::void_class_fun(*this, &BufferList::emergencyWrite));
+                boost::bind(&BufferList::emergencyWrite, this, _1));
 }
 
 
@@ -304,10 +306,10 @@ void BufferList::emergencyWrite(Buffer * buf)
        if (buf->isClean())
                return;
 
-       lyxerr << _("lyx: Attempting to save document ")
-              << (buf->isUnnamed() ? OnlyFilename(buf->fileName())
-                  : buf->fileName())
-              <<  _(" as...") << endl;
+       string const doc = buf->isUnnamed()
+               ? OnlyFilename(buf->fileName()) : buf->fileName();
+       lyxerr << _("LyX: Attempting to save document ") << doc << endl;
 
        // We try to save three places: