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

| 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.

Who told you that you should be able to edit preferences manually at
all?

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

No. "DO NOT EDIT THIS FILE"

would be better.

>
| Intermediate solution: Add a bind-section to preferences?

yes. with gui.

>
| 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.

no.

-- 
        Lgb

Reply via email to