On 05/27/2018 08:43 AM, Kornel Benko wrote: > > Normally it is possible to use more than one execute-string. I would > expect > > that the following > > lyx -x 'command-sequence buffer-new;buffer-import latex > ams-import.tex;buffer-write;buffer-export pdf2;lyx-quit' > > would be equivalent to > > lyx -x buffer-new -x 'buffer-import latex ams-import.tex' -x > buffer-write -x 'buffer-export pdf2' -x lyx-quit > > But, the call never ends, because the function 'lyx-quit' is not > executed due to buffer-export still being busy. > > Changing the last two commands into a command-sequence cures it. >
This is because command-sequence now disables background export, i.e., cloning, so we do wait for the command to finish. We don't do that when just given the simple command. A "buffer-wait" command after the buffer-export command would therefore come too late. What would work would be buffer-export-wait or, perhaps, some kind of global "background-disable" command that would do precisely that. Riki