Re: lyx 1.1.6pre2 shortcuts
The tiny patch, attached, "fixes" this problem. Don't know if this is the right approach though. Angus On Wednesday 29 November 2000 19:07, Angus Leeming wrote: On Wednesday 29 November 2000 19:59, Herbert Voss wrote: "Lars Gullik Bjønnes" wrote: Herbert Voss [EMAIL PROTECTED] writes: | when i start lyx without any existing ~/.lyx/preferences | i have the shortcuts displayed and i can use them with | the keyboard. if i change any of the options in the | preferences, close lyx and restart, the displayed shortcuts | are gone and i can't use the keybord-shortcuts, too. | deleting the preferences-file and restarting lyx | gives the old situation with the displayed shortcuts | and working keyboard-shortcuts. What is the bind file in preferences set to then? menues.bind i can start preferences, doing nothing, saving and restarting lyx is the same: no shortcuts anyway. Herbert This is wrong. It should be emacs.bind, cua.bind or whatever you prefer. menus.bind is most definitely wrong. Maybe these files should be moved to ui/ rather than bind/ ? Angus patch.diff.bz2
Re: lyx 1.1.6pre2 shortcuts
The tiny patch, attached, "fixes" this problem. Don't know if this is the right approach though. Angus On Wednesday 29 November 2000 19:07, Angus Leeming wrote: On Wednesday 29 November 2000 19:59, Herbert Voss wrote: "Lars Gullik Bjønnes" wrote: Herbert Voss [EMAIL PROTECTED] writes: | when i start lyx without any existing ~/.lyx/preferences | i have the shortcuts displayed and i can use them with | the keyboard. if i change any of the options in the | preferences, close lyx and restart, the displayed shortcuts | are gone and i can't use the keybord-shortcuts, too. | deleting the preferences-file and restarting lyx | gives the old situation with the displayed shortcuts | and working keyboard-shortcuts. What is the bind file in preferences set to then? menues.bind i can start preferences, doing nothing, saving and restarting lyx is the same: no shortcuts anyway. Herbert This is wrong. It should be emacs.bind, cua.bind or whatever you prefer. menus.bind is most definitely wrong. Maybe these files should be moved to ui/ rather than bind/ ? Angus patch.diff.bz2
Re: lyx 1.1.6pre2 shortcuts
The tiny patch, attached, "fixes" this problem. Don't know if this is the right approach though. Angus On Wednesday 29 November 2000 19:07, Angus Leeming wrote: > On Wednesday 29 November 2000 19:59, Herbert Voss wrote: > > "Lars Gullik Bjønnes" wrote: > > > Herbert Voss <[EMAIL PROTECTED]> writes: > > > | when i start lyx without any existing ~/.lyx/preferences > > > | i have the shortcuts displayed and i can use them with > > > | the keyboard. if i change any of the options in the > > > | preferences, close lyx and restart, the displayed shortcuts > > > | are gone and i can't use the keybord-shortcuts, too. > > > | deleting the preferences-file and restarting lyx > > > | gives the old situation with the displayed shortcuts > > > | and working keyboard-shortcuts. > > > > > > What is the bind file in preferences set to then? > > > > menues.bind > > > > i can start preferences, doing nothing, saving and restarting > > lyx is the same: no shortcuts anyway. > > > > Herbert > > This is wrong. It should be emacs.bind, cua.bind or whatever you prefer. > menus.bind is most definitely wrong. Maybe these files should be moved to > ui/ rather than bind/ ? > > Angus patch.diff.bz2
lyx 1.1.6pre2 shortcuts
when i start lyx without any existing ~/.lyx/preferences i have the shortcuts displayed and i can use them with the keyboard. if i change any of the options in the preferences, close lyx and restart, the displayed shortcuts are gone and i can't use the keybord-shortcuts, too. deleting the preferences-file and restarting lyx gives the old situation with the displayed shortcuts and working keyboard-shortcuts. Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: lyx 1.1.6pre2 shortcuts
Herbert Voss [EMAIL PROTECTED] writes: | when i start lyx without any existing ~/.lyx/preferences | i have the shortcuts displayed and i can use them with | the keyboard. if i change any of the options in the | preferences, close lyx and restart, the displayed shortcuts | are gone and i can't use the keybord-shortcuts, too. | deleting the preferences-file and restarting lyx | gives the old situation with the displayed shortcuts | and working keyboard-shortcuts. What is the bind file in preferences set to then? Lgb
Re: lyx 1.1.6pre2 shortcuts
"Lars Gullik Bjønnes" wrote: Herbert Voss [EMAIL PROTECTED] writes: | when i start lyx without any existing ~/.lyx/preferences | i have the shortcuts displayed and i can use them with | the keyboard. if i change any of the options in the | preferences, close lyx and restart, the displayed shortcuts | are gone and i can't use the keybord-shortcuts, too. | deleting the preferences-file and restarting lyx | gives the old situation with the displayed shortcuts | and working keyboard-shortcuts. What is the bind file in preferences set to then? menues.bind i can start preferences, doing nothing, saving and restarting lyx is the same: no shortcuts anyway. Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: lyx 1.1.6pre2 shortcuts
On Wednesday 29 November 2000 19:59, Herbert Voss wrote: "Lars Gullik Bjønnes" wrote: Herbert Voss [EMAIL PROTECTED] writes: | when i start lyx without any existing ~/.lyx/preferences | i have the shortcuts displayed and i can use them with | the keyboard. if i change any of the options in the | preferences, close lyx and restart, the displayed shortcuts | are gone and i can't use the keybord-shortcuts, too. | deleting the preferences-file and restarting lyx | gives the old situation with the displayed shortcuts | and working keyboard-shortcuts. What is the bind file in preferences set to then? menues.bind i can start preferences, doing nothing, saving and restarting lyx is the same: no shortcuts anyway. Herbert This is wrong. It should be emacs.bind, cua.bind or whatever you prefer. menus.bind is most definitely wrong. Maybe these files should be moved to ui/ rather than bind/ ? Angus
Re: lyx 1.1.6pre2 shortcuts
Angus Leeming wrote: On Wednesday 29 November 2000 19:59, Herbert Voss wrote: "Lars Gullik Bjønnes" wrote: Herbert Voss [EMAIL PROTECTED] writes: | when i start lyx without any existing ~/.lyx/preferences | i have the shortcuts displayed and i can use them with | the keyboard. if i change any of the options in the | preferences, close lyx and restart, the displayed shortcuts | are gone and i can't use the keybord-shortcuts, too. | deleting the preferences-file and restarting lyx | gives the old situation with the displayed shortcuts | and working keyboard-shortcuts. What is the bind file in preferences set to then? menues.bind i can start preferences, doing nothing, saving and restarting lyx is the same: no shortcuts anyway. This is wrong. It should be emacs.bind, cua.bind or whatever you prefer. menus.bind is most definitely wrong. Maybe these files should be moved to ui/ rather than bind/ ? ok. that's it. but the problem is, that lyx 1.1.6 starts with this option (menue.bind) by default, if no preferences exists. Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: lyx 1.1.6pre2 shortcuts
Herbert Voss [EMAIL PROTECTED] writes: | "Lars Gullik Bjønnes" wrote: | | Herbert Voss [EMAIL PROTECTED] writes: | | | when i start lyx without any existing ~/.lyx/preferences | | i have the shortcuts displayed and i can use them with | | the keyboard. if i change any of the options in the | | preferences, close lyx and restart, the displayed shortcuts | | are gone and i can't use the keybord-shortcuts, too. | | deleting the preferences-file and restarting lyx | | gives the old situation with the displayed shortcuts | | and working keyboard-shortcuts. | | What is the bind file in preferences set to then? | | menues.bind Hmm... change this to either cua.bind or emacs.bind. I have no idea why preferences set this to menus.bind... Lgb
Re: lyx 1.1.6pre2 shortcuts
Angus Leeming [EMAIL PROTECTED] writes: | menues.bind | | i can start preferences, doing nothing, saving and restarting | lyx is the same: no shortcuts anyway. | | Herbert | | This is wrong. It should be emacs.bind, cua.bind or whatever you prefer. | menus.bind is most definitely wrong. Maybe these files should be moved to ui/ | rather than bind/ ? Or change to use another ending... Lgb
Re: lyx 1.1.6pre2 shortcuts
Herbert Voss [EMAIL PROTECTED] writes: | menues.bind | | i can start preferences, doing nothing, saving and restarting | lyx is the same: no shortcuts anyway. | | This is wrong. It should be emacs.bind, cua.bind or whatever you prefer. | menus.bind is most definitely wrong. Maybe these files should be moved to ui/ | rather than bind/ ? | | ok. that's it. but the problem is, that lyx 1.1.6 starts with | this option (menue.bind) by default, if no preferences exists. Yes, and the question is: "Why is that?" Lgb
Re: lyx 1.1.6pre2 shortcuts
Then try out the patch below. You'll find it illuminating. Run "lyx -dbg 2" and ask why menus.bind, math.bind are read by lyxrc. Also ask why the default cua.bind isn't set to the bind_file. Angus On Wednesday 29 November 2000 19:39, Lars Gullik Bjønnes wrote: Herbert Voss [EMAIL PROTECTED] writes: | "Lars Gullik Bjønnes" wrote: | Herbert Voss [EMAIL PROTECTED] writes: | | when i start lyx without any existing ~/.lyx/preferences | | i have the shortcuts displayed and i can use them with | | the keyboard. if i change any of the options in the | | preferences, close lyx and restart, the displayed shortcuts | | are gone and i can't use the keybord-shortcuts, too. | | deleting the preferences-file and restarting lyx | | gives the old situation with the displayed shortcuts | | and working keyboard-shortcuts. | | What is the bind file in preferences set to then? | | menues.bind Hmm... change this to either cua.bind or emacs.bind. I have no idea why preferences set this to menus.bind... Lgb Index: src/lyxrc.C === RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/lyxrc.C,v retrieving revision 1.74 diff -u -r1.74 lyxrc.C --- src/lyxrc.C 2000/11/29 15:34:56 1.74 +++ src/lyxrc.C 2000/11/29 19:20:49 @@ -261,9 +261,6 @@ int LyXRC::read(string const filename) { - // Default bindfile. - string bindFile = "cua"; - LyXLex lexrc(lyxrcTags, lyxrcCount); if (lyxerr.debugging(Debug::PARSER)) lexrc.printTable(lyxerr); @@ -302,7 +299,7 @@ } break; case RC_BINDFILE: // RVDK_PATCH_5 - if (lexrc.next()) { + if (lexrc.next()) { string tmp(lexrc.GetString()); if (bind_file.empty()) { // we only need the name of the first @@ -311,6 +308,7 @@ bind_file = tmp; } ReadBindFile(tmp); + lyxerr "RC_BINDFILE " tmp std::endl; } break; @@ -677,9 +675,16 @@ // loading a bind file. So, in this case, load // the default bind file. if (!hasBindFile) { - ReadBindFile(); + // Default bindfile. + string bindFile = "cua"; + + ReadBindFile(bindFile); bind_file = bindFile; - } + lyxerr "RC_BIND new bind file " bindFile +std::endl; + + } else + lyxerr "RC_BIND " bind_file std::endl; + // !!!chb, dynamic key binding... int action, res = 0; string seq, cmd;
lyx 1.1.6pre2 shortcuts
when i start lyx without any existing ~/.lyx/preferences i have the shortcuts displayed and i can use them with the keyboard. if i change any of the options in the preferences, close lyx and restart, the displayed shortcuts are gone and i can't use the keybord-shortcuts, too. deleting the preferences-file and restarting lyx gives the old situation with the displayed shortcuts and working keyboard-shortcuts. Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: lyx 1.1.6pre2 shortcuts
Herbert Voss [EMAIL PROTECTED] writes: | when i start lyx without any existing ~/.lyx/preferences | i have the shortcuts displayed and i can use them with | the keyboard. if i change any of the options in the | preferences, close lyx and restart, the displayed shortcuts | are gone and i can't use the keybord-shortcuts, too. | deleting the preferences-file and restarting lyx | gives the old situation with the displayed shortcuts | and working keyboard-shortcuts. What is the bind file in preferences set to then? Lgb
Re: lyx 1.1.6pre2 shortcuts
"Lars Gullik Bjønnes" wrote: Herbert Voss [EMAIL PROTECTED] writes: | when i start lyx without any existing ~/.lyx/preferences | i have the shortcuts displayed and i can use them with | the keyboard. if i change any of the options in the | preferences, close lyx and restart, the displayed shortcuts | are gone and i can't use the keybord-shortcuts, too. | deleting the preferences-file and restarting lyx | gives the old situation with the displayed shortcuts | and working keyboard-shortcuts. What is the bind file in preferences set to then? menues.bind i can start preferences, doing nothing, saving and restarting lyx is the same: no shortcuts anyway. Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: lyx 1.1.6pre2 shortcuts
On Wednesday 29 November 2000 19:59, Herbert Voss wrote: "Lars Gullik Bjønnes" wrote: Herbert Voss [EMAIL PROTECTED] writes: | when i start lyx without any existing ~/.lyx/preferences | i have the shortcuts displayed and i can use them with | the keyboard. if i change any of the options in the | preferences, close lyx and restart, the displayed shortcuts | are gone and i can't use the keybord-shortcuts, too. | deleting the preferences-file and restarting lyx | gives the old situation with the displayed shortcuts | and working keyboard-shortcuts. What is the bind file in preferences set to then? menues.bind i can start preferences, doing nothing, saving and restarting lyx is the same: no shortcuts anyway. Herbert This is wrong. It should be emacs.bind, cua.bind or whatever you prefer. menus.bind is most definitely wrong. Maybe these files should be moved to ui/ rather than bind/ ? Angus
Re: lyx 1.1.6pre2 shortcuts
Angus Leeming wrote: On Wednesday 29 November 2000 19:59, Herbert Voss wrote: "Lars Gullik Bjønnes" wrote: Herbert Voss [EMAIL PROTECTED] writes: | when i start lyx without any existing ~/.lyx/preferences | i have the shortcuts displayed and i can use them with | the keyboard. if i change any of the options in the | preferences, close lyx and restart, the displayed shortcuts | are gone and i can't use the keybord-shortcuts, too. | deleting the preferences-file and restarting lyx | gives the old situation with the displayed shortcuts | and working keyboard-shortcuts. What is the bind file in preferences set to then? menues.bind i can start preferences, doing nothing, saving and restarting lyx is the same: no shortcuts anyway. This is wrong. It should be emacs.bind, cua.bind or whatever you prefer. menus.bind is most definitely wrong. Maybe these files should be moved to ui/ rather than bind/ ? ok. that's it. but the problem is, that lyx 1.1.6 starts with this option (menue.bind) by default, if no preferences exists. Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: lyx 1.1.6pre2 shortcuts
Herbert Voss [EMAIL PROTECTED] writes: | "Lars Gullik Bjønnes" wrote: | | Herbert Voss [EMAIL PROTECTED] writes: | | | when i start lyx without any existing ~/.lyx/preferences | | i have the shortcuts displayed and i can use them with | | the keyboard. if i change any of the options in the | | preferences, close lyx and restart, the displayed shortcuts | | are gone and i can't use the keybord-shortcuts, too. | | deleting the preferences-file and restarting lyx | | gives the old situation with the displayed shortcuts | | and working keyboard-shortcuts. | | What is the bind file in preferences set to then? | | menues.bind Hmm... change this to either cua.bind or emacs.bind. I have no idea why preferences set this to menus.bind... Lgb
Re: lyx 1.1.6pre2 shortcuts
Angus Leeming [EMAIL PROTECTED] writes: | menues.bind | | i can start preferences, doing nothing, saving and restarting | lyx is the same: no shortcuts anyway. | | Herbert | | This is wrong. It should be emacs.bind, cua.bind or whatever you prefer. | menus.bind is most definitely wrong. Maybe these files should be moved to ui/ | rather than bind/ ? Or change to use another ending... Lgb
Re: lyx 1.1.6pre2 shortcuts
Herbert Voss [EMAIL PROTECTED] writes: | menues.bind | | i can start preferences, doing nothing, saving and restarting | lyx is the same: no shortcuts anyway. | | This is wrong. It should be emacs.bind, cua.bind or whatever you prefer. | menus.bind is most definitely wrong. Maybe these files should be moved to ui/ | rather than bind/ ? | | ok. that's it. but the problem is, that lyx 1.1.6 starts with | this option (menue.bind) by default, if no preferences exists. Yes, and the question is: "Why is that?" Lgb
Re: lyx 1.1.6pre2 shortcuts
Then try out the patch below. You'll find it illuminating. Run "lyx -dbg 2" and ask why menus.bind, math.bind are read by lyxrc. Also ask why the default cua.bind isn't set to the bind_file. Angus On Wednesday 29 November 2000 19:39, Lars Gullik Bjønnes wrote: Herbert Voss [EMAIL PROTECTED] writes: | "Lars Gullik Bjønnes" wrote: | Herbert Voss [EMAIL PROTECTED] writes: | | when i start lyx without any existing ~/.lyx/preferences | | i have the shortcuts displayed and i can use them with | | the keyboard. if i change any of the options in the | | preferences, close lyx and restart, the displayed shortcuts | | are gone and i can't use the keybord-shortcuts, too. | | deleting the preferences-file and restarting lyx | | gives the old situation with the displayed shortcuts | | and working keyboard-shortcuts. | | What is the bind file in preferences set to then? | | menues.bind Hmm... change this to either cua.bind or emacs.bind. I have no idea why preferences set this to menus.bind... Lgb Index: src/lyxrc.C === RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/lyxrc.C,v retrieving revision 1.74 diff -u -r1.74 lyxrc.C --- src/lyxrc.C 2000/11/29 15:34:56 1.74 +++ src/lyxrc.C 2000/11/29 19:20:49 @@ -261,9 +261,6 @@ int LyXRC::read(string const filename) { - // Default bindfile. - string bindFile = "cua"; - LyXLex lexrc(lyxrcTags, lyxrcCount); if (lyxerr.debugging(Debug::PARSER)) lexrc.printTable(lyxerr); @@ -302,7 +299,7 @@ } break; case RC_BINDFILE: // RVDK_PATCH_5 - if (lexrc.next()) { + if (lexrc.next()) { string tmp(lexrc.GetString()); if (bind_file.empty()) { // we only need the name of the first @@ -311,6 +308,7 @@ bind_file = tmp; } ReadBindFile(tmp); + lyxerr "RC_BINDFILE " tmp std::endl; } break; @@ -677,9 +675,16 @@ // loading a bind file. So, in this case, load // the default bind file. if (!hasBindFile) { - ReadBindFile(); + // Default bindfile. + string bindFile = "cua"; + + ReadBindFile(bindFile); bind_file = bindFile; - } + lyxerr "RC_BIND new bind file " bindFile +std::endl; + + } else + lyxerr "RC_BIND " bind_file std::endl; + // !!!chb, dynamic key binding... int action, res = 0; string seq, cmd;
lyx 1.1.6pre2 shortcuts
when i start lyx without any existing ~/.lyx/preferences i have the shortcuts displayed and i can use them with the keyboard. if i change any of the options in the preferences, close lyx and restart, the displayed shortcuts are gone and i can't use the keybord-shortcuts, too. deleting the preferences-file and restarting lyx gives the old situation with the displayed shortcuts and working keyboard-shortcuts. Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: lyx 1.1.6pre2 shortcuts
Herbert Voss <[EMAIL PROTECTED]> writes: | when i start lyx without any existing ~/.lyx/preferences | i have the shortcuts displayed and i can use them with | the keyboard. if i change any of the options in the | preferences, close lyx and restart, the displayed shortcuts | are gone and i can't use the keybord-shortcuts, too. | deleting the preferences-file and restarting lyx | gives the old situation with the displayed shortcuts | and working keyboard-shortcuts. What is the bind file in preferences set to then? Lgb
Re: lyx 1.1.6pre2 shortcuts
"Lars Gullik Bjønnes" wrote: > > Herbert Voss <[EMAIL PROTECTED]> writes: > > | when i start lyx without any existing ~/.lyx/preferences > | i have the shortcuts displayed and i can use them with > | the keyboard. if i change any of the options in the > | preferences, close lyx and restart, the displayed shortcuts > | are gone and i can't use the keybord-shortcuts, too. > | deleting the preferences-file and restarting lyx > | gives the old situation with the displayed shortcuts > | and working keyboard-shortcuts. > > What is the bind file in preferences set to then? menues.bind i can start preferences, doing nothing, saving and restarting lyx is the same: no shortcuts anyway. Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: lyx 1.1.6pre2 shortcuts
On Wednesday 29 November 2000 19:59, Herbert Voss wrote: > "Lars Gullik Bjønnes" wrote: > > Herbert Voss <[EMAIL PROTECTED]> writes: > > | when i start lyx without any existing ~/.lyx/preferences > > | i have the shortcuts displayed and i can use them with > > | the keyboard. if i change any of the options in the > > | preferences, close lyx and restart, the displayed shortcuts > > | are gone and i can't use the keybord-shortcuts, too. > > | deleting the preferences-file and restarting lyx > > | gives the old situation with the displayed shortcuts > > | and working keyboard-shortcuts. > > > > What is the bind file in preferences set to then? > > menues.bind > > i can start preferences, doing nothing, saving and restarting > lyx is the same: no shortcuts anyway. > > Herbert This is wrong. It should be emacs.bind, cua.bind or whatever you prefer. menus.bind is most definitely wrong. Maybe these files should be moved to ui/ rather than bind/ ? Angus
Re: lyx 1.1.6pre2 shortcuts
Angus Leeming wrote: > > On Wednesday 29 November 2000 19:59, Herbert Voss wrote: > > "Lars Gullik Bjønnes" wrote: > > > Herbert Voss <[EMAIL PROTECTED]> writes: > > > | when i start lyx without any existing ~/.lyx/preferences > > > | i have the shortcuts displayed and i can use them with > > > | the keyboard. if i change any of the options in the > > > | preferences, close lyx and restart, the displayed shortcuts > > > | are gone and i can't use the keybord-shortcuts, too. > > > | deleting the preferences-file and restarting lyx > > > | gives the old situation with the displayed shortcuts > > > | and working keyboard-shortcuts. > > > > > > What is the bind file in preferences set to then? > > > > menues.bind > > > > i can start preferences, doing nothing, saving and restarting > > lyx is the same: no shortcuts anyway. > > This is wrong. It should be emacs.bind, cua.bind or whatever you prefer. > menus.bind is most definitely wrong. Maybe these files should be moved to ui/ > rather than bind/ ? ok. that's it. but the problem is, that lyx 1.1.6 starts with this option (menue.bind) by default, if no preferences exists. Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: lyx 1.1.6pre2 shortcuts
Herbert Voss <[EMAIL PROTECTED]> writes: | "Lars Gullik Bjønnes" wrote: | > | > Herbert Voss <[EMAIL PROTECTED]> writes: | > | > | when i start lyx without any existing ~/.lyx/preferences | > | i have the shortcuts displayed and i can use them with | > | the keyboard. if i change any of the options in the | > | preferences, close lyx and restart, the displayed shortcuts | > | are gone and i can't use the keybord-shortcuts, too. | > | deleting the preferences-file and restarting lyx | > | gives the old situation with the displayed shortcuts | > | and working keyboard-shortcuts. | > | > What is the bind file in preferences set to then? | | menues.bind Hmm... change this to either cua.bind or emacs.bind. I have no idea why preferences set this to menus.bind... Lgb
Re: lyx 1.1.6pre2 shortcuts
Angus Leeming <[EMAIL PROTECTED]> writes: | > menues.bind | > | > i can start preferences, doing nothing, saving and restarting | > lyx is the same: no shortcuts anyway. | > | > Herbert | | This is wrong. It should be emacs.bind, cua.bind or whatever you prefer. | menus.bind is most definitely wrong. Maybe these files should be moved to ui/ | rather than bind/ ? Or change to use another ending... Lgb
Re: lyx 1.1.6pre2 shortcuts
Herbert Voss <[EMAIL PROTECTED]> writes: | > > menues.bind | > > | > > i can start preferences, doing nothing, saving and restarting | > > lyx is the same: no shortcuts anyway. | > | > This is wrong. It should be emacs.bind, cua.bind or whatever you prefer. | > menus.bind is most definitely wrong. Maybe these files should be moved to ui/ | > rather than bind/ ? | | ok. that's it. but the problem is, that lyx 1.1.6 starts with | this option (menue.bind) by default, if no preferences exists. Yes, and the question is: "Why is that?" Lgb
Re: lyx 1.1.6pre2 shortcuts
Then try out the patch below. You'll find it illuminating. Run "lyx -dbg 2" and ask why menus.bind, math.bind are read by lyxrc. Also ask why the default cua.bind isn't set to the bind_file. Angus On Wednesday 29 November 2000 19:39, Lars Gullik Bjønnes wrote: > Herbert Voss <[EMAIL PROTECTED]> writes: > | "Lars Gullik Bjønnes" wrote: > | > Herbert Voss <[EMAIL PROTECTED]> writes: > | > | when i start lyx without any existing ~/.lyx/preferences > | > | i have the shortcuts displayed and i can use them with > | > | the keyboard. if i change any of the options in the > | > | preferences, close lyx and restart, the displayed shortcuts > | > | are gone and i can't use the keybord-shortcuts, too. > | > | deleting the preferences-file and restarting lyx > | > | gives the old situation with the displayed shortcuts > | > | and working keyboard-shortcuts. > | > > | > What is the bind file in preferences set to then? > | > | menues.bind > > Hmm... change this to either cua.bind or emacs.bind. > > I have no idea why preferences set this to menus.bind... > > Lgb Index: src/lyxrc.C === RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/lyxrc.C,v retrieving revision 1.74 diff -u -r1.74 lyxrc.C --- src/lyxrc.C 2000/11/29 15:34:56 1.74 +++ src/lyxrc.C 2000/11/29 19:20:49 @@ -261,9 +261,6 @@ int LyXRC::read(string const & filename) { - // Default bindfile. - string bindFile = "cua"; - LyXLex lexrc(lyxrcTags, lyxrcCount); if (lyxerr.debugging(Debug::PARSER)) lexrc.printTable(lyxerr); @@ -302,7 +299,7 @@ } break; case RC_BINDFILE: // RVDK_PATCH_5 - if (lexrc.next()) { + if (lexrc.next()) { string tmp(lexrc.GetString()); if (bind_file.empty()) { // we only need the name of the first @@ -311,6 +308,7 @@ bind_file = tmp; } ReadBindFile(tmp); + lyxerr << "RC_BINDFILE " << tmp << std::endl; } break; @@ -677,9 +675,16 @@ // loading a bind file. So, in this case, load // the default bind file. if (!hasBindFile) { - ReadBindFile(); + // Default bindfile. + string bindFile = "cua"; + + ReadBindFile(bindFile); bind_file = bindFile; - } + lyxerr << "RC_BIND new bind file " << bindFile << +std::endl; + + } else + lyxerr << "RC_BIND " << bind_file << std::endl; + // !!!chb, dynamic key binding... int action, res = 0; string seq, cmd;