Am 31.07.2015 um 20:03 schrieb aparsloe: > A hackish way is to insert and then delete a space character, to 'dirty' > the document, which should enable the buffer-write: > > command-sequence space-insert normal; char-delete-backward; > buffer-write; master-buffer-update; > > but I suspect "buffer-write; master-buffer-update" is incompatible with > "command-sequence" as it presently exists. As I understand it, the > buffer-write operation is a threaded process and so the > master-buffer-update command will be started generally before the > buffer-write is complete so that the overall effect won't be what you > want. (I'm ignorant of LyX internals but I've tried command sequences > involving saving/exporting operations before and this is what happens. > See bug #8346.)
In this case the order of commands does not matter, because Lyx takes the current state of the file from the editor, not from disk. So your suggestion works perferctly for me. Thank you, Andrew!