Hi

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

Here's an example of the "problem":

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

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

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

Simple solution: Add a message to the beginning of .lyx/preferences 
saying something like "edit at your own risk".

Intermediate solution: Add a bind-section to preferences?

Advanced solution: Change how lyx handles configuration statements that 
don't belong to one of the categories in preferences, i.e. let them either 
stay where they are, or move them to an 'unknown'-section.

Thoughts? 
Should I bugzilla this?


/Christian

-- 
Christian Ridderström                           http://www.md.kth.se/~chr


Reply via email to