> > You are right, but the problem is that there are two many opearations:
> > add file, extract file, embed file, dis-embed file, ...
>
> How many exactly? Which of these could be useful from the lyx-server?

If LFUN can only accept one parameter, then

LFUN_EMBED_FILE file
LFUN_UN_EMBED_FILE file
LFUN_UPDATE_EMBEDDED_FILE file

and maybe

LFUN_ENABLE_BUNDLE on/off

I have not really though of this so this is just some rough idea.

> >> What happens when the document is read-only? Do you allow embedding?
> >
> > Currently, yes, and this is a bug.
>
> An lfun would spare this and the mark-dirty code ;)

Yes. I know... I have fixed this in a dirty way. I guess when
embedding is completed, we can talk about how *exactly* embedding
should behave, and better implementations.

Bo

Reply via email to