On Wed, Dec 12, 2001 at 10:17:16AM +0100, Lars Gullik Bjønnes wrote:
> John Levon <[EMAIL PROTECTED]> writes:
> 
> | On Wed, Dec 12, 2001 at 08:50:04AM +0000, Jules Bean wrote:
> >
> >> IMO every dialog should, when OK or Apply has been clicked, call
> >> one or several LyXFuncs.
> >> 
> >> So clicking OK in paragraph might trigger:
> >> 
> >> (paragraph-general-set-alignment left)
> >> (paragraph-general-set-pagebreaks above)
> >> 
> >> or some rather less verbose equivalent.
> >
> | well we should have those (or similar) but I don't think formpara
> | should use them - they would need to redraw on each thing set etc.
> 
> Well... I really think the dialogs should use lyxfuncs directly. _but_
> we could add a "transaction-begin" "transaction-end" lyxfunc, so that
> several lyxfuncs could be grouped and lyx would not "do the stuff"
> until transaction ends.

Or just allow lyxfunc grouping.  In emacs, it would look something
like this:

( (paragraph-general-set-alignment left)
  (paragraph-general-set-pagebreaks above) )

and lyx knows not to do any screen updates until I gets to the end of
the (compound) command.

I recall sequences of commands like this being discussed a while back
and people didn't like them, though..

Jules



Reply via email to