On 11 Oct 2000, Lars Gullik Bjønnes wrote:

> "Garst R. Reese" <[EMAIL PROTECTED]> writes:
> | Once preferences gets saved
> | then the lyxrc is not read anymore, but preferences got the wrong bind
> | file.
> 
> From lyxrc.defaults or lyxrc or inputed in the FormPreferences.

Preferences only saves the differences between the system lyxrc
(for example, /usr/local/share/lyx/lyxrc) and user changes in ~/.lyx/lyxrc
or ~/.lyx/preferences if one existed and whatever changes a user made in
the Preferences dialog.

Somewhere along the line the global variable lyxrc had its bind_file
member set to "menus".  So the question is how did this happen?

It would seem to me that somewhere along the line Garst has a line like:
        \bind_file menus.bind

in either ~/.lyx/lyxrc or added it to Preferences dialog.  I certainly
don't see any problem here using the xemacs bind -- it includes other
bind files within it but they don't change the value of lyxrc.bind_file.
Does anyone else use cua.bind like Garst does?  Do you see anything like
this?

Lars, wrt editing bindings this is something I have also considered and
think we'll probably need a similar scheme to what I do with lyxrc -- keep
both a system and a user binding global variable and only save the
difference to preferences otherwise we have to introduce some way of
storing _all_ the users bindings to a single file and set \bind_file in
preferences to refer to that file.  Anyway editing bindings isn't
difficult since the function names are available in the source in a
convenient array.  This is something I was considering adding in the
longer term.

The hard part may be to add editing for \converter and \viewer commands.  
I've only skimmed over the headers for that and am unsure of how it all
works.

Allan. (ARRae)

Reply via email to