>>>>> "Christian" == Christian Ridderström <[EMAIL PROTECTED]> writes:

Christian> Hi While testing other stuff I noticed a behaviour about
Christian> .lyx/preferences that means it (at least) should get a
Christian> small warning text in the beginning.

Christian> Here's an example of the "problem":

Christian> 1. Add \bind "C-o" "self-insert Oops" to .lyx/preferences
Christian> 2. Start lyx and verify that C-o inserts "Oops;", so far so
Christian> good... 3. Edit->Preferences and choose "Save" (you can
Christian> toggle something twice to activate the Save-button) 4. Exit
Christian> lyx 5. Start lyx and verify that C-o no longer works.

Christian> Why? Well I guess lyx isn't expecting a \bind-statement in
Christian> preferences and has no code for handling unexpected
Christian> statements. Then when the preferences are saved, unexpected
Christian> statements are simply ignored and hence lost.

Actually, this is probably my doing. At chemnitz, I remove all parsing
of \bind commands (so this is only for 1.4.0cvs, right?) from lyxrc.
The bindings should now be defined in a bind file. 

The old scheme was just too weird, and did not fit very well with
prefs.

I have probably forgotten to adjust documentation and the various FAQ
entries, though :)

Christian> (I find it quite convenient to define temporary
Christian> bindings/command-sequences in prefereces, since I'd
Christian> otherwise have to modify one of the standard .bind-files).

You can always have a file mybindings.bind that reads

\bind_file "cua"
\bind "foo" "bar"

If we get a bindings editor, it would just create such a file (like
for menus and toolbar).

JMarc

Reply via email to