On Tue, Oct 23, 2001 at 01:55:03PM +0200, Jean-Marc Lasgouttes wrote: > Andre> LyX crashes when C-<Del> (bound to LFUN_DELETE_WORD_FORWARD) is > Andre> pressed in mathed. > > Andre> The backtrace contains no reference to math stuff, and I am a > Andre> bit lost... > > It happens because mathed does not intercept it and it probably > deletes the math inset while it is active. I guess you should handle > it to do something useful. An alternative would be something like:
Mathed should not have to know about "uninteresting LFUNs" at all. This break encapsulation... [Urm... maybe I should put that into my .sig, shouldn't I? ;-}] > if(lfun is not handled by locking inset > && lfun cannot be used with read-only documents) { > do_not_execute_lfun; > } If this makes sense in the outside world, I'd definitely prefer it... Andre' -- André Pönitz .............................................. [EMAIL PROTECTED]