Re: [PATCH[ New LFUN: layout-reload

2007-09-11 Thread Jean-Marc Lasgouttes
Richard Heck <[EMAIL PROTECTED]> writes: > Whenever we reload the class, we do the "update layout" routine from > CutAndPaste, which is what is used for any change of classes. So > basically we're treating layout reload like change of class. The same > thing gets done on loading of modules. So, ba

Re: [PATCH[ New LFUN: layout-reload

2007-09-11 Thread Richard Heck
Jean-Marc Lasgouttes wrote: Richard Heck <[EMAIL PROTECTED]> writes: Oh, it's not as bad as that, really. If the layout file can't be read, LyX will switch to something else, like Article (SGML), which is kind of a hassle. But it's not a critical error, and anyone who's editing their layouts

Re: [PATCH[ New LFUN: layout-reload

2007-09-11 Thread Jean-Marc Lasgouttes
Richard Heck <[EMAIL PROTECTED]> writes: > Oh, it's not as bad as that, really. If the layout file can't be read, > LyX will switch to something else, like Article (SGML), which is kind > of a hassle. But it's not a critical error, and anyone who's editing > their layouts shouldn't simultaneously

Re: [PATCH[ New LFUN: layout-reload

2007-09-10 Thread Richard Heck
Jean-Marc Lasgouttes wrote: Richard Heck <[EMAIL PROTECTED]> writes: I'm not sure what you mean here. After what? Save all changed lyx file (after asking?) re-read layout files, re-load lyx files. Oh, it's not as bad as that, really. If the layout file can't be read, LyX will switc

Re: [PATCH[ New LFUN: layout-reload

2007-09-10 Thread Jean-Marc Lasgouttes
Richard Heck <[EMAIL PROTECTED]> writes: > I'm not sure what you mean here. After what? Save all changed lyx file (after asking?) re-read layout files, re-load lyx files. JMarc

Re: [PATCH[ New LFUN: layout-reload

2007-09-10 Thread Richard Heck
Jean-Marc Lasgouttes wrote: Richard Heck <[EMAIL PROTECTED]> writes: This is a very simple patch made possible by the recent changes to how TextClasses are handled. It introduces a layout-reload LFUN that forces the current layout to be reloaded and re-read from disk. I don't propose to put

Re: [PATCH[ New LFUN: layout-reload

2007-09-10 Thread Jean-Marc Lasgouttes
Richard Heck <[EMAIL PROTECTED]> writes: > This is a very simple patch made possible by the recent changes to how > TextClasses are handled. It introduces a layout-reload LFUN that > forces the current layout to be reloaded and re-read from disk. I > don't propose to put this into the GUI. It's so

[PATCH[ New LFUN: layout-reload

2007-09-08 Thread Richard Heck
This is a very simple patch made possible by the recent changes to how TextClasses are handled. It introduces a layout-reload LFUN that forces the current layout to be reloaded and re-read from disk. I don't propose to put this into the GUI. It's something that will be needed only by people w