Dear developers, trying to use the lyxserver for a kind of scripting support, I came accross some troublespots.
Sending a non existing LFUN will show Unknown Function in the status bar, but the server returns "INFO:cname:fun" while it should IMHO return an "ERROR:cname:fun:function doesnot exist" response problematic LFUNS ----------------- "server-char-after" This is a strange exception to the above bug: it doesnot result in an ERROR, however in some debug output: 'A truly unknown func [server-char-after]!' "server-get-font" always returns '0' "server-get-tip" always returns 'Keine Beschreibung vorhanden!' "server-goto-file-row" Doesnot seem to go to row It can serve to open a file or goto associated buffer (if the file is already open), however * With a read-only buffer as current buffer: LyXError: 'Document is read-only' * With a fresh lyx LyXError: 'Command not allowed without any document open' "buffer-reload" Is actually a "buffer-restore": it will do nothing if the buffer is unchanged (but the source file is, so reloading still makes sense). Asks for "save buffer" before reloading: If I have unwanted changes and want to reload for a clean restart, the default choice (Yes) will overwrite the file I intend to load! A dialog "discard changes since last save: Yes|Abort" would be more clear. "menu-open" Seems not to do anything (what kind of argument is needed?) LFUNS breaking the serverpipes: ------------------------------- The following functions work fine but break the serverpipe when called via the lyxserver. This is bad for a client listening at the outpipe for a notice. No problem if they are called via M-x (as then no reply will be sent to the outpipe "buffer-export", 'text' The command succedes, a reply is sent (and received) LyXComm: Sending 'INFO:pyClient1076141868:buffer-export: ' but after that comes LyXComm: Ungültiger Link über Gerätegrenzen hinweg LyXComm: Closing connection LyXComm: Opening connection LyXComm: Connection established "buffer-write" Here we get (after a successfull write): LyXComm: Datei oder Verzeichnis nicht gefunden LyXComm: Closing connection LyXComm: Opening connection LyXComm: Connection established Other culprits: "buffer-write-as" "buffer-view" sincerely Günter -- G.Milde web.de