const_iterator end() const;
/// create a new buffer
+ /// \return 0 if the Buffer creation is not possible for whatever reason.
Buffer * newBuffer(std::string const & s, bool ronly = false);
/// delete a buffer
/// emergency save for all buffers
void emergencyWriteAll();
+ /// save emergency file for the given buffer
+ /**
+ * \return a status message towards the user.
+ */
+ docstring emergencyWrite(Buffer * buf);
+
/// return true if no buffers loaded
bool empty() const;
/// storage of all buffers
BufferStorage bstore;
-
- /// save emergency file for the given buffer
- void emergencyWrite(Buffer * buf);
};
/// Implementation is in LyX.cpp