Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread stiv. djobz.
It's new. I was using emacs shortcuts by checking this checkbox in 2.0.1.
I noticed this problem immediately after I updated to 2.0.2.
Checking and unchecking the box does not affect the keys in 2.0.2.

Thanks,
stiv.

On Tue, Jan 31, 2012 at 4:30 AM, Stephan Witt st.w...@gmx.net wrote:

 Am 30.01.2012 um 20:07 schrieb stiv. djobz.:

  The checkbox of
  Do not swap Apple and Control keys
  in
  LyXPreferencesEditingKeyboard/Mouse
  does not work in 2.0.2.

 Is it new in 2.0.2? And what does not work?

  I'm using emacs shortcuts, so this problem is serious for me.
  Is there any solution for this problem ?
  To compensate the swapping with another swapping in System Preferences
 is not a realistic choice.
  It would affect the shortcuts in all the other softwares.

 Of course. It should work.

 Stephan


Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread stiv. djobz.
I made sure my keybindings are set properly as yours.
For example,
in 2.0.1,
I could move the cursor backwards by typing ctrl + b with the checkbox
ticked
and by typing command +b with the checkbox unticked,
and in 2.0.2,
I have to type command + b in both the cases.

I'm thinking of going back to 2.0.1 and waiting for a bugfix
instead of using additional softwares or macros.
But thanks for your advice.

stiv.

On Tue, Jan 31, 2012 at 4:48 AM, Christopher Menzel cmen...@tamu.eduwrote:

 Am Jan 30, 2012 um 8:07 PM schrieb stiv. djobz.:
  The checkbox of
  Do not swap Apple and Control keys
  in
  LyXPreferencesEditingKeyboard/Mouse
  does not work in 2.0.2.

 Hm, it doesn't seem to make any difference for me either, but fortunately,
 the Ctrl key is behaving for me as it ought vis-á-vis Emacs keybinding.

  I'm using emacs shortcuts, so this problem is serious for me.
  Is there any solution for this problem ?

 Have you checked to make sure the keybindings are set properly in LyX -
 Preferences - Editor?  Relevant Ctrl key combos like Ctrl-F and Ctrl-X
 S are set in my preferences with ^F, ^X S, etc.

  To compensate the swapping with another swapping in System Preferences
 is not a realistic choice.
  It would affect the shortcuts in all the other softwares.

 For a time I used a macros (called with a global hotkey) that would toggle
 the Capslock key between Ctrl and Cmd that I would invoke going into and
 coming out of LyX. That was of course less than ideal but it was fast and
 worked pretty well. Hasn't been necessary for a quite a long time, though.

 Chris Menzel




Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread Stephan Witt
Am 31.01.2012 um 14:46 schrieb stiv. djobz.:

 I made sure my keybindings are set properly as yours.
 For example, 
 in 2.0.1, 
 I could move the cursor backwards by typing ctrl + b with the checkbox ticked
 and by typing command +b with the checkbox unticked, 
 and in 2.0.2, 
 I have to type command + b in both the cases. 
 
 I'm thinking of going back to 2.0.1 and waiting for a bugfix
 instead of using additional softwares or macros.

But the bugfix will never arise if it's not possible to find the cause for your 
problem.

Here I'm using LyX-2.0.2 and have no user defined key bindings and set 
shortcuts to emacs and the checkbox don't swap enabled.

When typing ctrl+b LyX's key debug output is:
.../GuiApplication.cpp(1705):  Key [action=][Kontroll-B]
and the cursor is moving one character backwards.

When typing command+b I can see:
.../GuiApplication.cpp(1705):  Key [action=][Befehl-B]
.../GuiApplication.cpp(1728): isText() is true, inserting.
.../GuiApplication.cpp(1746): SelfInsert arg[`b']
and the letter b is inserted.

Please, check the contents of the file $HOME/Library/Application 
Support/LyX-2.0/bind/user.bind if it's empty.

Stephan

 But thanks for your advice.
 
 stiv. 
 
 On Tue, Jan 31, 2012 at 4:48 AM, Christopher Menzel cmen...@tamu.edu wrote:
 Am Jan 30, 2012 um 8:07 PM schrieb stiv. djobz.:
  The checkbox of
  Do not swap Apple and Control keys
  in
  LyXPreferencesEditingKeyboard/Mouse
  does not work in 2.0.2.
 
 Hm, it doesn't seem to make any difference for me either, but fortunately, 
 the Ctrl key is behaving for me as it ought vis-á-vis Emacs keybinding.
 
  I'm using emacs shortcuts, so this problem is serious for me.
  Is there any solution for this problem ?
 
 Have you checked to make sure the keybindings are set properly in LyX - 
 Preferences - Editor?  Relevant Ctrl key combos like Ctrl-F and Ctrl-X S 
 are set in my preferences with ^F, ^X S, etc.
 
  To compensate the swapping with another swapping in System Preferences is 
  not a realistic choice.
  It would affect the shortcuts in all the other softwares.
 
 For a time I used a macros (called with a global hotkey) that would toggle 
 the Capslock key between Ctrl and Cmd that I would invoke going into and 
 coming out of LyX. That was of course less than ideal but it was fast and 
 worked pretty well. Hasn't been necessary for a quite a long time, though.
 
 Chris Menzel
 
 



Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread stiv. djobz.
Thanks.

This is my first time to see the progress/debug messages...

The responses seems to be different.


I moved the .bind files in /Library/Application Support/LyX-2.0/bind/

to another place and restart lyx 2.0.2 with the same settings as yours.


When I type ctrl+b, nothing appears on the document.

The message is:


/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count:
1 text: isAutoRepeat: 0 key: 16777250 keyState: Meta-

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621):
Getting key 16777250, with text ''

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627):
Setting key to 16777250,

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
is 1

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663):
KeySym is Alt_L

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
is 1

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650):
isModifier is 1

23:16:35.603: Unknown
function./Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):
count: 1 text: isAutoRepeat: 0 key: 66 keyState: Meta-

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616):
keyevent has isNull() text !

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
is 1

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663):
KeySym is b

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
is 1

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650):
isModifier is 0

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686):
action first set to []

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694):
action now set to []

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705): Key
[action=][Command-B]

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(726): text_
empty, isText() == false

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1732):
Unknown, !isText() - giving up


When I type command + b, the cursor moves backwards by one character.
The message is:



/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count:
1 text: isAutoRepeat: 0 key: 16777249 keyState: Control-

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621):
Getting key 16777249, with text ''

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627):
Setting key to 16777249,

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
is 1

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663):
KeySym is Control_L

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
is 1

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650):
isModifier is 1

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count:
1 text: isAutoRepeat: 0 key: 66 keyState: Control-

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616):
keyevent has isNull() text !

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
is 1

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663):
KeySym is b

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
is 1

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650):
isModifier is 0

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686):
action first set to []

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694):
action now set to []

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705): Key
[action=][Control-B]



On Tue, Jan 31, 2012 at 10:04 PM, Stephan Witt st.w...@gmx.net wrote:

 Am 31.01.2012 um 14:46 schrieb stiv. djobz.:

  I made sure my keybindings are set properly as yours.
  For example,
  in 2.0.1,
  I could move the cursor backwards by typing ctrl + b with the checkbox
 ticked
  and by typing command +b with the checkbox unticked,
  and in 2.0.2,
  I have to type command + b in both the cases.
 
  I'm thinking of going back to 2.0.1 and waiting for a bugfix
  instead of using additional softwares or macros.

 But the bugfix will never arise if it's not possible to find the cause for
 your problem.

 Here I'm using LyX-2.0.2 and have no user defined key bindings and set
 shortcuts to emacs and the checkbox don't swap enabled.

 When typing ctrl+b LyX's key debug output is:
 .../GuiApplication.cpp(1705):  Key [action=][Kontroll-B]
 and the cursor is moving one character backwards.

 When typing command+b I can see:
 .../GuiApplication.cpp(1705):  Key [action=][Befehl-B]
 .../GuiApplication.cpp(1728): isText() is true, inserting.
 .../GuiApplication.cpp(1746): SelfInsert arg[`b']
 and the letter b is inserted.

 Please, check the contents of the file $HOME/Library/Application
 Support/LyX-2.0/bind/user.bind if it's empty.

 Stephan

  But thanks for your advice.
 
  stiv.
 
  On Tue, Jan 31, 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread Stephan Witt
Am 31.01.2012 um 16:36 schrieb stiv. djobz.:

 Thanks.
 This is my first time to see the progress/debug messages...

You're very clever ;-)

 The responses seems to be different.

Yes, unfortunately. I suppose you have saved you preferences and LyX was 
restarted.
So, it should work. But indeed it seems to ignore the don't swap option.
Interestingly there is an additional line in your output I don't have:

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616): keyevent 
has isNull() text !

The complete output I get for ctrl-b is:
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):  count: 1 
text:  isAutoRepeat: 0 key: 16777250 keyState: Meta-
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting 
key 16777250, with text ''
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting 
key to 16777250, 
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): KeySym 
is Alt_L
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): isModifier 
is 1
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):  count: 1 
text:  isAutoRepeat: 0 key: 66 keyState: Control-
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting 
key 66, with text ''
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting 
key to 66, 
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): KeySym 
is b
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): isModifier 
is 0
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686): action 
first set to []
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694): action 
now set to []
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705):  Key 
[action=][Kontroll-B]

I can see two possible explanations:
1. We are using different LyX-2.0.2 software packages (I use the package from 
www.lyx.org)
2. We have different environments and there is some critical setting I don't 
have
I have a german desktop and no special settings made to the system keyboard 
mappings.

Do you have another idea? Do you have your own keyboard tables assigned?

Stephan

 I moved the .bind files in /Library/Application Support/LyX-2.0/bind/
 to another place and restart lyx 2.0.2 with the same settings as yours.
 
 When I type ctrl+b, nothing appears on the document.
 The message is:
 
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count: 1 
 text: isAutoRepeat: 0 key: 16777250 keyState: Meta-
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting 
 key 16777250, with text ''
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting 
 key to 16777250,
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
 KeySym is Alt_L
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): 
 isModifier is 1
 23:16:35.603: Unknown 
 function./Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): 
 count: 1 text: isAutoRepeat: 0 key: 66 keyState: Meta-
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616): keyevent 
 has isNull() text !
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
 KeySym is b
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): 
 isModifier is 0
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686): 
 action first set to []
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694): 
 action now set to []
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705): Key 
 [action=][Command-B]
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(726): text_ 
 empty, isText() == false
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1732): 
 Unknown, !isText() - giving up
 
 
 When I type command + b, the cursor moves backwards by one character.
 The message is:
 
 
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count: 1 
 text: isAutoRepeat: 0 key: 16777249 keyState: Control-
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting 
 key 16777249, with text ''
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting 
 key to 16777249,
 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread stiv. djobz.
For confirmation, I downloaded lyx-2.0.2 from www.lyx.org. (I had been
using the one from a mirror.)
But the behavior did not change and I got the same messages.

I have no special setting to the system either.
The only difference I notice is that I use white Macbook with a Japanese
keyboard.
But I can not deduce anything from this.

stiv.


On Wed, Feb 1, 2012 at 12:25 AM, Stephan Witt st.w...@gmx.net wrote:

 Am 31.01.2012 um 16:36 schrieb stiv. djobz.:

  Thanks.
  This is my first time to see the progress/debug messages...

 You're very clever ;-)

  The responses seems to be different.

 Yes, unfortunately. I suppose you have saved you preferences and LyX was
 restarted.
 So, it should work. But indeed it seems to ignore the don't swap option.
 Interestingly there is an additional line in your output I don't have:

 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616):
 keyevent has isNull() text !

 The complete output I get for ctrl-b is:
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):
  count: 1 text:  isAutoRepeat: 0 key: 16777250 keyState: Meta-
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621):
 Getting key 16777250, with text ''
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627):
 Setting key to 16777250,
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
 is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663):
 KeySym is Alt_L
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
 is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650):
 isModifier is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):
  count: 1 text:   isAutoRepeat: 0 key: 66 keyState: Control-
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621):
 Getting key 66, with text ' '
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627):
 Setting key to 66,
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
 is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663):
 KeySym is b
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
 is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650):
 isModifier is 0
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686):
 action first set to []
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694):
 action now set to []
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705):
  Key [action=][Kontroll-B]

 I can see two possible explanations:
 1. We are using different LyX-2.0.2 software packages (I use the package
 from www.lyx.org)
 2. We have different environments and there is some critical setting I
 don't have
 I have a german desktop and no special settings made to the system
 keyboard mappings.

 Do you have another idea? Do you have your own keyboard tables assigned?

 Stephan

  I moved the .bind files in /Library/Application Support/LyX-2.0/bind/
  to another place and restart lyx 2.0.2 with the same settings as yours.
 
  When I type ctrl+b, nothing appears on the document.
  The message is:
 
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):
 count: 1 text: isAutoRepeat: 0 key: 16777250 keyState: Meta-
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621):
 Getting key 16777250, with text ''
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627):
 Setting key to 16777250,
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642):
 isOK is 1
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663):
 KeySym is Alt_L
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642):
 isOK is 1
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650):
 isModifier is 1
  23:16:35.603: Unknown
 function./Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):
 count: 1 text: isAutoRepeat: 0 key: 66 keyState: Meta-
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616):
 keyevent has isNull() text !
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642):
 isOK is 1
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663):
 KeySym is b
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642):
 isOK is 1
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650):
 isModifier is 0
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686):
 action first set to []
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694):
 action now set to []
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705):
 Key [action=][Command-B]
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(726):
 text_ empty, isText() == false
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1732):
 Unknown, !isText() - giving up
 
 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread Jens Nöckel
Hi, 
since I don't see the problem on either OS X 10.6.8 or 10.7.2, I just tried the 
following steps on my OS X 10.6.8 machine:
1)
Move ~/Library/Application Support/LyX-2.0 to the Desktop.

2)
Fresh download of 
LyX-2.0.2+qt4-cocoa.dmg
from www.lyx.org

3)
Move old LyX out of Application folder

4)
Install downloaded LyX and launch it

5)
In an unrelated note, I noticed that the default screen font wasn't correctly 
displayed: should be Times but is Helvetica. So I chnaged that font to Times 
New Roman and the display worked again.

6)
In Preferences, I then chose the xemacs bind file, and checked the box Do not 
swap Apple and Control Keys

7)
I restarted LyX and opened a new document with Control-d (it worked as 
expected). I then started a new math display formula with Apple-d and it worked 
as expected. 

8)
To double check, I went to the Terminal and navigated to 
~/Library/Application Support/LyX-2.0
then issued the command:
grep dontswap *
with the expected result:
preferences:\mac_dontswap_ctrl_meta true

The last point is something you should definitely check, too. If you do the 
same things (including step 1) but still have the problem, then one has to 
start worrying that perhaps Qt is doing something wrong. Essentially what the 
don't swap check box does is to set a Qt flag that gets updated when LyX 
starts up.  I can't really see how anything on the LyX side should fail in that 
process.

Jens

On Jan 31, 2012, at 8:25 AM, Stephan Witt wrote:

 Am 31.01.2012 um 16:36 schrieb stiv. djobz.:
 
 Thanks.
 This is my first time to see the progress/debug messages...
 
 You're very clever ;-)
 
 The responses seems to be different.
 
 Yes, unfortunately. I suppose you have saved you preferences and LyX was 
 restarted.
 So, it should work. But indeed it seems to ignore the don't swap option.
 Interestingly there is an additional line in your output I don't have:
 
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616): keyevent 
 has isNull() text !
 
 The complete output I get for ctrl-b is:
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):  count: 
 1 text:  isAutoRepeat: 0 key: 16777250 keyState: Meta-
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting 
 key 16777250, with text ''
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting 
 key to 16777250, 
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
 KeySym is Alt_L
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): 
 isModifier is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):  count: 
 1 text:  isAutoRepeat: 0 key: 66 keyState: Control-
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting 
 key 66, with text ''
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting 
 key to 66, 
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
 KeySym is b
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): 
 isModifier is 0
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686): 
 action first set to []
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694): 
 action now set to []
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705):  Key 
 [action=][Kontroll-B]
 
 I can see two possible explanations:
 1. We are using different LyX-2.0.2 software packages (I use the package from 
 www.lyx.org)
 2. We have different environments and there is some critical setting I don't 
 have
 I have a german desktop and no special settings made to the system keyboard 
 mappings.
 
 Do you have another idea? Do you have your own keyboard tables assigned?
 
 Stephan
 
 I moved the .bind files in /Library/Application Support/LyX-2.0/bind/
 to another place and restart lyx 2.0.2 with the same settings as yours.
 
 When I type ctrl+b, nothing appears on the document.
 The message is:
 
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count: 
 1 text: isAutoRepeat: 0 key: 16777250 keyState: Meta-
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting 
 key 16777250, with text ''
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting 
 key to 16777250,
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 
 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
 KeySym is Alt_L
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 
 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): 
 isModifier is 1
 23:16:35.603: 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread Stephan Witt
Am 31.01.2012 um 19:16 schrieb Jens Nöckel:

 Hi, 
 since I don't see the problem on either OS X 10.6.8 or 10.7.2, I just tried 
 the following steps on my OS X 10.6.8 machine:
 
...
Thanks for the good recipe.

 The last point is something you should definitely check, too. If you do the 
 same things (including step 1) but still have the problem, then one has to 
 start worrying that perhaps Qt is doing something wrong. Essentially what the 
 don't swap check box does is to set a Qt flag that gets updated when LyX 
 starts up.  I can't really see how anything on the LyX side should fail in 
 that process.

Regarding Qt the difference between LyX-2.0.1 and LyX-2.0.2 is the version of 
the framework.
* LyX-2.0.1 comes with Qt-4.6.3 and
* LyX-2.0.2 comes with Qt-4.7.2

Moving backwards to Qt-4.6.3 has it's own problems - we'll get crashes with 
tools like Divvy again.

Stephan

 
 Jens
 
 On Jan 31, 2012, at 8:25 AM, Stephan Witt wrote:
 
 Am 31.01.2012 um 16:36 schrieb stiv. djobz.:
 
 Thanks.
 This is my first time to see the progress/debug messages...
 
 You're very clever ;-)
 
 The responses seems to be different.
 
 Yes, unfortunately. I suppose you have saved you preferences and LyX was 
 restarted.
 So, it should work. But indeed it seems to ignore the don't swap option.
 Interestingly there is an additional line in your output I don't have:
 
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616): 
 keyevent has isNull() text !
 
 The complete output I get for ctrl-b is:
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):  count: 
 1 text:  isAutoRepeat: 0 key: 16777250 keyState: Meta-
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting 
 key 16777250, with text ''
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting 
 key to 16777250, 
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 
 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
 KeySym is Alt_L
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 
 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): 
 isModifier is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):  count: 
 1 text:  isAutoRepeat: 0 key: 66 keyState: Control-
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting 
 key 66, with text ''
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting 
 key to 66, 
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 
 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
 KeySym is b
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 
 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): 
 isModifier is 0
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686): 
 action first set to []
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694): 
 action now set to []
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705):  Key 
 [action=][Kontroll-B]
 
 I can see two possible explanations:
 1. We are using different LyX-2.0.2 software packages (I use the package 
 from www.lyx.org)
 2. We have different environments and there is some critical setting I don't 
 have
 I have a german desktop and no special settings made to the system keyboard 
 mappings.
 
 Do you have another idea? Do you have your own keyboard tables assigned?
 
 Stephan
 
 I moved the .bind files in /Library/Application Support/LyX-2.0/bind/
 to another place and restart lyx 2.0.2 with the same settings as yours.
 
 When I type ctrl+b, nothing appears on the document.
 The message is:
 
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count: 
 1 text: isAutoRepeat: 0 key: 16777250 keyState: Meta-
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): 
 Getting key 16777250, with text ''
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): 
 Setting key to 16777250,
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK 
 is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
 KeySym is Alt_L
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK 
 is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): 
 isModifier is 1
 23:16:35.603: Unknown 
 function./Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):
  count: 1 text: isAutoRepeat: 0 key: 66 keyState: Meta-
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616): 
 keyevent has isNull() text !
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK 
 is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
 KeySym is b
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK 
 is 1
 

install not finding classes in miktek

2012-01-31 Thread d c
I just installed version 2.0.2 Friday nov. 25 2011

When I open files, if I look under settings, document class,
all my document classes are reported as missing.

The following info may or may not be relevant:
when I go to tool tex information it seems to have the various class files in 
various places, such as 
C:\Program Files\MiKTeX 2.9\tex\latex
C:\ProgramData\MiKTeX\2.9\tex\latex
C:\Users\HP_User\AppData\Roaming\MiKTeX\2.9\tex\latex

First I installed, encountered the error, uninstalled, manually removed the 
folder in program files and in C:\Users\my user\AppData\Roaming, and then 
reinstalled as administrator

I have tried various solutions from the mailing list, e.g.
I have tried reconfiguring restarting
I have tried setting my install packages on the fly both to yes and to no
I ahve tried updating my file name database

clues?

thx in advance




Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread stiv. djobz.
It's new. I was using emacs shortcuts by checking this checkbox in 2.0.1.
I noticed this problem immediately after I updated to 2.0.2.
Checking and unchecking the box does not affect the keys in 2.0.2.

Thanks,
stiv.

On Tue, Jan 31, 2012 at 4:30 AM, Stephan Witt st.w...@gmx.net wrote:

 Am 30.01.2012 um 20:07 schrieb stiv. djobz.:

  The checkbox of
  Do not swap Apple and Control keys
  in
  LyXPreferencesEditingKeyboard/Mouse
  does not work in 2.0.2.

 Is it new in 2.0.2? And what does not work?

  I'm using emacs shortcuts, so this problem is serious for me.
  Is there any solution for this problem ?
  To compensate the swapping with another swapping in System Preferences
 is not a realistic choice.
  It would affect the shortcuts in all the other softwares.

 Of course. It should work.

 Stephan


Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread stiv. djobz.
I made sure my keybindings are set properly as yours.
For example,
in 2.0.1,
I could move the cursor backwards by typing ctrl + b with the checkbox
ticked
and by typing command +b with the checkbox unticked,
and in 2.0.2,
I have to type command + b in both the cases.

I'm thinking of going back to 2.0.1 and waiting for a bugfix
instead of using additional softwares or macros.
But thanks for your advice.

stiv.

On Tue, Jan 31, 2012 at 4:48 AM, Christopher Menzel cmen...@tamu.eduwrote:

 Am Jan 30, 2012 um 8:07 PM schrieb stiv. djobz.:
  The checkbox of
  Do not swap Apple and Control keys
  in
  LyXPreferencesEditingKeyboard/Mouse
  does not work in 2.0.2.

 Hm, it doesn't seem to make any difference for me either, but fortunately,
 the Ctrl key is behaving for me as it ought vis-á-vis Emacs keybinding.

  I'm using emacs shortcuts, so this problem is serious for me.
  Is there any solution for this problem ?

 Have you checked to make sure the keybindings are set properly in LyX -
 Preferences - Editor?  Relevant Ctrl key combos like Ctrl-F and Ctrl-X
 S are set in my preferences with ^F, ^X S, etc.

  To compensate the swapping with another swapping in System Preferences
 is not a realistic choice.
  It would affect the shortcuts in all the other softwares.

 For a time I used a macros (called with a global hotkey) that would toggle
 the Capslock key between Ctrl and Cmd that I would invoke going into and
 coming out of LyX. That was of course less than ideal but it was fast and
 worked pretty well. Hasn't been necessary for a quite a long time, though.

 Chris Menzel




Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread Stephan Witt
Am 31.01.2012 um 14:46 schrieb stiv. djobz.:

 I made sure my keybindings are set properly as yours.
 For example, 
 in 2.0.1, 
 I could move the cursor backwards by typing ctrl + b with the checkbox ticked
 and by typing command +b with the checkbox unticked, 
 and in 2.0.2, 
 I have to type command + b in both the cases. 
 
 I'm thinking of going back to 2.0.1 and waiting for a bugfix
 instead of using additional softwares or macros.

But the bugfix will never arise if it's not possible to find the cause for your 
problem.

Here I'm using LyX-2.0.2 and have no user defined key bindings and set 
shortcuts to emacs and the checkbox don't swap enabled.

When typing ctrl+b LyX's key debug output is:
.../GuiApplication.cpp(1705):  Key [action=][Kontroll-B]
and the cursor is moving one character backwards.

When typing command+b I can see:
.../GuiApplication.cpp(1705):  Key [action=][Befehl-B]
.../GuiApplication.cpp(1728): isText() is true, inserting.
.../GuiApplication.cpp(1746): SelfInsert arg[`b']
and the letter b is inserted.

Please, check the contents of the file $HOME/Library/Application 
Support/LyX-2.0/bind/user.bind if it's empty.

Stephan

 But thanks for your advice.
 
 stiv. 
 
 On Tue, Jan 31, 2012 at 4:48 AM, Christopher Menzel cmen...@tamu.edu wrote:
 Am Jan 30, 2012 um 8:07 PM schrieb stiv. djobz.:
  The checkbox of
  Do not swap Apple and Control keys
  in
  LyXPreferencesEditingKeyboard/Mouse
  does not work in 2.0.2.
 
 Hm, it doesn't seem to make any difference for me either, but fortunately, 
 the Ctrl key is behaving for me as it ought vis-á-vis Emacs keybinding.
 
  I'm using emacs shortcuts, so this problem is serious for me.
  Is there any solution for this problem ?
 
 Have you checked to make sure the keybindings are set properly in LyX - 
 Preferences - Editor?  Relevant Ctrl key combos like Ctrl-F and Ctrl-X S 
 are set in my preferences with ^F, ^X S, etc.
 
  To compensate the swapping with another swapping in System Preferences is 
  not a realistic choice.
  It would affect the shortcuts in all the other softwares.
 
 For a time I used a macros (called with a global hotkey) that would toggle 
 the Capslock key between Ctrl and Cmd that I would invoke going into and 
 coming out of LyX. That was of course less than ideal but it was fast and 
 worked pretty well. Hasn't been necessary for a quite a long time, though.
 
 Chris Menzel
 
 



Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread stiv. djobz.
Thanks.

This is my first time to see the progress/debug messages...

The responses seems to be different.


I moved the .bind files in /Library/Application Support/LyX-2.0/bind/

to another place and restart lyx 2.0.2 with the same settings as yours.


When I type ctrl+b, nothing appears on the document.

The message is:


/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count:
1 text: isAutoRepeat: 0 key: 16777250 keyState: Meta-

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621):
Getting key 16777250, with text ''

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627):
Setting key to 16777250,

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
is 1

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663):
KeySym is Alt_L

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
is 1

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650):
isModifier is 1

23:16:35.603: Unknown
function./Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):
count: 1 text: isAutoRepeat: 0 key: 66 keyState: Meta-

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616):
keyevent has isNull() text !

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
is 1

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663):
KeySym is b

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
is 1

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650):
isModifier is 0

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686):
action first set to []

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694):
action now set to []

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705): Key
[action=][Command-B]

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(726): text_
empty, isText() == false

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1732):
Unknown, !isText() - giving up


When I type command + b, the cursor moves backwards by one character.
The message is:



/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count:
1 text: isAutoRepeat: 0 key: 16777249 keyState: Control-

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621):
Getting key 16777249, with text ''

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627):
Setting key to 16777249,

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
is 1

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663):
KeySym is Control_L

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
is 1

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650):
isModifier is 1

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count:
1 text: isAutoRepeat: 0 key: 66 keyState: Control-

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616):
keyevent has isNull() text !

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
is 1

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663):
KeySym is b

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
is 1

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650):
isModifier is 0

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686):
action first set to []

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694):
action now set to []

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705): Key
[action=][Control-B]



On Tue, Jan 31, 2012 at 10:04 PM, Stephan Witt st.w...@gmx.net wrote:

 Am 31.01.2012 um 14:46 schrieb stiv. djobz.:

  I made sure my keybindings are set properly as yours.
  For example,
  in 2.0.1,
  I could move the cursor backwards by typing ctrl + b with the checkbox
 ticked
  and by typing command +b with the checkbox unticked,
  and in 2.0.2,
  I have to type command + b in both the cases.
 
  I'm thinking of going back to 2.0.1 and waiting for a bugfix
  instead of using additional softwares or macros.

 But the bugfix will never arise if it's not possible to find the cause for
 your problem.

 Here I'm using LyX-2.0.2 and have no user defined key bindings and set
 shortcuts to emacs and the checkbox don't swap enabled.

 When typing ctrl+b LyX's key debug output is:
 .../GuiApplication.cpp(1705):  Key [action=][Kontroll-B]
 and the cursor is moving one character backwards.

 When typing command+b I can see:
 .../GuiApplication.cpp(1705):  Key [action=][Befehl-B]
 .../GuiApplication.cpp(1728): isText() is true, inserting.
 .../GuiApplication.cpp(1746): SelfInsert arg[`b']
 and the letter b is inserted.

 Please, check the contents of the file $HOME/Library/Application
 Support/LyX-2.0/bind/user.bind if it's empty.

 Stephan

  But thanks for your advice.
 
  stiv.
 
  On Tue, Jan 31, 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread Stephan Witt
Am 31.01.2012 um 16:36 schrieb stiv. djobz.:

 Thanks.
 This is my first time to see the progress/debug messages...

You're very clever ;-)

 The responses seems to be different.

Yes, unfortunately. I suppose you have saved you preferences and LyX was 
restarted.
So, it should work. But indeed it seems to ignore the don't swap option.
Interestingly there is an additional line in your output I don't have:

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616): keyevent 
has isNull() text !

The complete output I get for ctrl-b is:
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):  count: 1 
text:  isAutoRepeat: 0 key: 16777250 keyState: Meta-
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting 
key 16777250, with text ''
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting 
key to 16777250, 
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): KeySym 
is Alt_L
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): isModifier 
is 1
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):  count: 1 
text:  isAutoRepeat: 0 key: 66 keyState: Control-
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting 
key 66, with text ''
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting 
key to 66, 
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): KeySym 
is b
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): isModifier 
is 0
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686): action 
first set to []
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694): action 
now set to []
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705):  Key 
[action=][Kontroll-B]

I can see two possible explanations:
1. We are using different LyX-2.0.2 software packages (I use the package from 
www.lyx.org)
2. We have different environments and there is some critical setting I don't 
have
I have a german desktop and no special settings made to the system keyboard 
mappings.

Do you have another idea? Do you have your own keyboard tables assigned?

Stephan

 I moved the .bind files in /Library/Application Support/LyX-2.0/bind/
 to another place and restart lyx 2.0.2 with the same settings as yours.
 
 When I type ctrl+b, nothing appears on the document.
 The message is:
 
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count: 1 
 text: isAutoRepeat: 0 key: 16777250 keyState: Meta-
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting 
 key 16777250, with text ''
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting 
 key to 16777250,
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
 KeySym is Alt_L
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): 
 isModifier is 1
 23:16:35.603: Unknown 
 function./Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): 
 count: 1 text: isAutoRepeat: 0 key: 66 keyState: Meta-
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616): keyevent 
 has isNull() text !
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
 KeySym is b
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): 
 isModifier is 0
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686): 
 action first set to []
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694): 
 action now set to []
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705): Key 
 [action=][Command-B]
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(726): text_ 
 empty, isText() == false
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1732): 
 Unknown, !isText() - giving up
 
 
 When I type command + b, the cursor moves backwards by one character.
 The message is:
 
 
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count: 1 
 text: isAutoRepeat: 0 key: 16777249 keyState: Control-
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting 
 key 16777249, with text ''
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting 
 key to 16777249,
 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread stiv. djobz.
For confirmation, I downloaded lyx-2.0.2 from www.lyx.org. (I had been
using the one from a mirror.)
But the behavior did not change and I got the same messages.

I have no special setting to the system either.
The only difference I notice is that I use white Macbook with a Japanese
keyboard.
But I can not deduce anything from this.

stiv.


On Wed, Feb 1, 2012 at 12:25 AM, Stephan Witt st.w...@gmx.net wrote:

 Am 31.01.2012 um 16:36 schrieb stiv. djobz.:

  Thanks.
  This is my first time to see the progress/debug messages...

 You're very clever ;-)

  The responses seems to be different.

 Yes, unfortunately. I suppose you have saved you preferences and LyX was
 restarted.
 So, it should work. But indeed it seems to ignore the don't swap option.
 Interestingly there is an additional line in your output I don't have:

 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616):
 keyevent has isNull() text !

 The complete output I get for ctrl-b is:
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):
  count: 1 text:  isAutoRepeat: 0 key: 16777250 keyState: Meta-
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621):
 Getting key 16777250, with text ''
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627):
 Setting key to 16777250,
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
 is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663):
 KeySym is Alt_L
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
 is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650):
 isModifier is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):
  count: 1 text:   isAutoRepeat: 0 key: 66 keyState: Control-
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621):
 Getting key 66, with text ' '
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627):
 Setting key to 66,
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
 is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663):
 KeySym is b
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
 is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650):
 isModifier is 0
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686):
 action first set to []
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694):
 action now set to []
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705):
  Key [action=][Kontroll-B]

 I can see two possible explanations:
 1. We are using different LyX-2.0.2 software packages (I use the package
 from www.lyx.org)
 2. We have different environments and there is some critical setting I
 don't have
 I have a german desktop and no special settings made to the system
 keyboard mappings.

 Do you have another idea? Do you have your own keyboard tables assigned?

 Stephan

  I moved the .bind files in /Library/Application Support/LyX-2.0/bind/
  to another place and restart lyx 2.0.2 with the same settings as yours.
 
  When I type ctrl+b, nothing appears on the document.
  The message is:
 
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):
 count: 1 text: isAutoRepeat: 0 key: 16777250 keyState: Meta-
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621):
 Getting key 16777250, with text ''
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627):
 Setting key to 16777250,
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642):
 isOK is 1
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663):
 KeySym is Alt_L
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642):
 isOK is 1
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650):
 isModifier is 1
  23:16:35.603: Unknown
 function./Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):
 count: 1 text: isAutoRepeat: 0 key: 66 keyState: Meta-
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616):
 keyevent has isNull() text !
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642):
 isOK is 1
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663):
 KeySym is b
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642):
 isOK is 1
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650):
 isModifier is 0
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686):
 action first set to []
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694):
 action now set to []
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705):
 Key [action=][Command-B]
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(726):
 text_ empty, isText() == false
  /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1732):
 Unknown, !isText() - giving up
 
 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread Jens Nöckel
Hi, 
since I don't see the problem on either OS X 10.6.8 or 10.7.2, I just tried the 
following steps on my OS X 10.6.8 machine:
1)
Move ~/Library/Application Support/LyX-2.0 to the Desktop.

2)
Fresh download of 
LyX-2.0.2+qt4-cocoa.dmg
from www.lyx.org

3)
Move old LyX out of Application folder

4)
Install downloaded LyX and launch it

5)
In an unrelated note, I noticed that the default screen font wasn't correctly 
displayed: should be Times but is Helvetica. So I chnaged that font to Times 
New Roman and the display worked again.

6)
In Preferences, I then chose the xemacs bind file, and checked the box Do not 
swap Apple and Control Keys

7)
I restarted LyX and opened a new document with Control-d (it worked as 
expected). I then started a new math display formula with Apple-d and it worked 
as expected. 

8)
To double check, I went to the Terminal and navigated to 
~/Library/Application Support/LyX-2.0
then issued the command:
grep dontswap *
with the expected result:
preferences:\mac_dontswap_ctrl_meta true

The last point is something you should definitely check, too. If you do the 
same things (including step 1) but still have the problem, then one has to 
start worrying that perhaps Qt is doing something wrong. Essentially what the 
don't swap check box does is to set a Qt flag that gets updated when LyX 
starts up.  I can't really see how anything on the LyX side should fail in that 
process.

Jens

On Jan 31, 2012, at 8:25 AM, Stephan Witt wrote:

 Am 31.01.2012 um 16:36 schrieb stiv. djobz.:
 
 Thanks.
 This is my first time to see the progress/debug messages...
 
 You're very clever ;-)
 
 The responses seems to be different.
 
 Yes, unfortunately. I suppose you have saved you preferences and LyX was 
 restarted.
 So, it should work. But indeed it seems to ignore the don't swap option.
 Interestingly there is an additional line in your output I don't have:
 
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616): keyevent 
 has isNull() text !
 
 The complete output I get for ctrl-b is:
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):  count: 
 1 text:  isAutoRepeat: 0 key: 16777250 keyState: Meta-
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting 
 key 16777250, with text ''
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting 
 key to 16777250, 
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
 KeySym is Alt_L
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): 
 isModifier is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):  count: 
 1 text:  isAutoRepeat: 0 key: 66 keyState: Control-
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting 
 key 66, with text ''
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting 
 key to 66, 
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
 KeySym is b
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): 
 isModifier is 0
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686): 
 action first set to []
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694): 
 action now set to []
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705):  Key 
 [action=][Kontroll-B]
 
 I can see two possible explanations:
 1. We are using different LyX-2.0.2 software packages (I use the package from 
 www.lyx.org)
 2. We have different environments and there is some critical setting I don't 
 have
 I have a german desktop and no special settings made to the system keyboard 
 mappings.
 
 Do you have another idea? Do you have your own keyboard tables assigned?
 
 Stephan
 
 I moved the .bind files in /Library/Application Support/LyX-2.0/bind/
 to another place and restart lyx 2.0.2 with the same settings as yours.
 
 When I type ctrl+b, nothing appears on the document.
 The message is:
 
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count: 
 1 text: isAutoRepeat: 0 key: 16777250 keyState: Meta-
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting 
 key 16777250, with text ''
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting 
 key to 16777250,
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 
 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
 KeySym is Alt_L
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 
 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): 
 isModifier is 1
 23:16:35.603: 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread Stephan Witt
Am 31.01.2012 um 19:16 schrieb Jens Nöckel:

 Hi, 
 since I don't see the problem on either OS X 10.6.8 or 10.7.2, I just tried 
 the following steps on my OS X 10.6.8 machine:
 
...
Thanks for the good recipe.

 The last point is something you should definitely check, too. If you do the 
 same things (including step 1) but still have the problem, then one has to 
 start worrying that perhaps Qt is doing something wrong. Essentially what the 
 don't swap check box does is to set a Qt flag that gets updated when LyX 
 starts up.  I can't really see how anything on the LyX side should fail in 
 that process.

Regarding Qt the difference between LyX-2.0.1 and LyX-2.0.2 is the version of 
the framework.
* LyX-2.0.1 comes with Qt-4.6.3 and
* LyX-2.0.2 comes with Qt-4.7.2

Moving backwards to Qt-4.6.3 has it's own problems - we'll get crashes with 
tools like Divvy again.

Stephan

 
 Jens
 
 On Jan 31, 2012, at 8:25 AM, Stephan Witt wrote:
 
 Am 31.01.2012 um 16:36 schrieb stiv. djobz.:
 
 Thanks.
 This is my first time to see the progress/debug messages...
 
 You're very clever ;-)
 
 The responses seems to be different.
 
 Yes, unfortunately. I suppose you have saved you preferences and LyX was 
 restarted.
 So, it should work. But indeed it seems to ignore the don't swap option.
 Interestingly there is an additional line in your output I don't have:
 
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616): 
 keyevent has isNull() text !
 
 The complete output I get for ctrl-b is:
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):  count: 
 1 text:  isAutoRepeat: 0 key: 16777250 keyState: Meta-
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting 
 key 16777250, with text ''
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting 
 key to 16777250, 
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 
 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
 KeySym is Alt_L
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 
 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): 
 isModifier is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):  count: 
 1 text:  isAutoRepeat: 0 key: 66 keyState: Control-
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting 
 key 66, with text ''
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting 
 key to 66, 
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 
 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
 KeySym is b
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 
 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): 
 isModifier is 0
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686): 
 action first set to []
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694): 
 action now set to []
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705):  Key 
 [action=][Kontroll-B]
 
 I can see two possible explanations:
 1. We are using different LyX-2.0.2 software packages (I use the package 
 from www.lyx.org)
 2. We have different environments and there is some critical setting I don't 
 have
 I have a german desktop and no special settings made to the system keyboard 
 mappings.
 
 Do you have another idea? Do you have your own keyboard tables assigned?
 
 Stephan
 
 I moved the .bind files in /Library/Application Support/LyX-2.0/bind/
 to another place and restart lyx 2.0.2 with the same settings as yours.
 
 When I type ctrl+b, nothing appears on the document.
 The message is:
 
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count: 
 1 text: isAutoRepeat: 0 key: 16777250 keyState: Meta-
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): 
 Getting key 16777250, with text ''
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): 
 Setting key to 16777250,
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK 
 is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
 KeySym is Alt_L
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK 
 is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): 
 isModifier is 1
 23:16:35.603: Unknown 
 function./Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):
  count: 1 text: isAutoRepeat: 0 key: 66 keyState: Meta-
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616): 
 keyevent has isNull() text !
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK 
 is 1
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
 KeySym is b
 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK 
 is 1
 

install not finding classes in miktek

2012-01-31 Thread d c
I just installed version 2.0.2 Friday nov. 25 2011

When I open files, if I look under settings, document class,
all my document classes are reported as missing.

The following info may or may not be relevant:
when I go to tool tex information it seems to have the various class files in 
various places, such as 
C:\Program Files\MiKTeX 2.9\tex\latex
C:\ProgramData\MiKTeX\2.9\tex\latex
C:\Users\HP_User\AppData\Roaming\MiKTeX\2.9\tex\latex

First I installed, encountered the error, uninstalled, manually removed the 
folder in program files and in C:\Users\my user\AppData\Roaming, and then 
reinstalled as administrator

I have tried various solutions from the mailing list, e.g.
I have tried reconfiguring restarting
I have tried setting my install packages on the fly both to yes and to no
I ahve tried updating my file name database

clues?

thx in advance




Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread stiv. djobz.
It's new. I was using emacs shortcuts by checking this checkbox in 2.0.1.
I noticed this problem immediately after I updated to 2.0.2.
Checking and unchecking the box does not affect the keys in 2.0.2.

Thanks,
stiv.

On Tue, Jan 31, 2012 at 4:30 AM, Stephan Witt  wrote:

> Am 30.01.2012 um 20:07 schrieb stiv. djobz.:
>
> > The checkbox of
> > "Do not swap Apple and Control keys"
> > in
> > LyX>Preferences>Editing>Keyboard/Mouse
> > does not work in 2.0.2.
>
> Is it new in 2.0.2? And what does not work?
>
> > I'm using emacs shortcuts, so this problem is serious for me.
> > Is there any solution for this problem ?
> > To compensate the swapping with another swapping in System Preferences
> is not a realistic choice.
> > It would affect the shortcuts in all the other softwares.
>
> Of course. It should work.
>
> Stephan


Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread stiv. djobz.
I made sure my keybindings are set properly as yours.
For example,
in 2.0.1,
I could move the cursor backwards by typing ctrl + b with the checkbox
ticked
and by typing command +b with the checkbox unticked,
and in 2.0.2,
I have to type command + b in both the cases.

I'm thinking of going back to 2.0.1 and waiting for a bugfix
instead of using additional softwares or macros.
But thanks for your advice.

stiv.

On Tue, Jan 31, 2012 at 4:48 AM, Christopher Menzel wrote:

> Am Jan 30, 2012 um 8:07 PM schrieb stiv. djobz.:
> > The checkbox of
> > "Do not swap Apple and Control keys"
> > in
> > LyX>Preferences>Editing>Keyboard/Mouse
> > does not work in 2.0.2.
>
> Hm, it doesn't seem to make any difference for me either, but fortunately,
> the Ctrl key is behaving for me as it ought vis-á-vis Emacs keybinding.
>
> > I'm using emacs shortcuts, so this problem is serious for me.
> > Is there any solution for this problem ?
>
> Have you checked to make sure the keybindings are set properly in LyX ->
> Preferences -> Editor?  Relevant Ctrl key combos like "Ctrl-F" and "Ctrl-X
> S" are set in my preferences with ^F, "^X S", etc.
>
> > To compensate the swapping with another swapping in System Preferences
> is not a realistic choice.
> > It would affect the shortcuts in all the other softwares.
>
> For a time I used a macros (called with a global hotkey) that would toggle
> the Capslock key between Ctrl and Cmd that I would invoke going into and
> coming out of LyX. That was of course less than ideal but it was fast and
> worked pretty well. Hasn't been necessary for a quite a long time, though.
>
> Chris Menzel
>
>


Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread Stephan Witt
Am 31.01.2012 um 14:46 schrieb stiv. djobz.:

> I made sure my keybindings are set properly as yours.
> For example, 
> in 2.0.1, 
> I could move the cursor backwards by typing ctrl + b with the checkbox ticked
> and by typing command +b with the checkbox unticked, 
> and in 2.0.2, 
> I have to type command + b in both the cases. 
> 
> I'm thinking of going back to 2.0.1 and waiting for a bugfix
> instead of using additional softwares or macros.

But the bugfix will never arise if it's not possible to find the cause for your 
problem.

Here I'm using LyX-2.0.2 and have no user defined key bindings and set 
shortcuts to "emacs" and the checkbox "don't swap" enabled.

When typing ctrl+b LyX's key debug output is:
.../GuiApplication.cpp(1705):  Key [action=][Kontroll-B]
and the cursor is moving one character backwards.

When typing command+b I can see:
.../GuiApplication.cpp(1705):  Key [action=][Befehl-B]
.../GuiApplication.cpp(1728): isText() is true, inserting.
.../GuiApplication.cpp(1746): SelfInsert arg[`b']
and the letter "b" is inserted.

Please, check the contents of the file "$HOME/Library/Application 
Support/LyX-2.0/bind/user.bind" if it's empty.

Stephan

> But thanks for your advice.
> 
> stiv. 
> 
> On Tue, Jan 31, 2012 at 4:48 AM, Christopher Menzel  wrote:
> Am Jan 30, 2012 um 8:07 PM schrieb stiv. djobz.:
> > The checkbox of
> > "Do not swap Apple and Control keys"
> > in
> > LyX>Preferences>Editing>Keyboard/Mouse
> > does not work in 2.0.2.
> 
> Hm, it doesn't seem to make any difference for me either, but fortunately, 
> the Ctrl key is behaving for me as it ought vis-á-vis Emacs keybinding.
> 
> > I'm using emacs shortcuts, so this problem is serious for me.
> > Is there any solution for this problem ?
> 
> Have you checked to make sure the keybindings are set properly in LyX -> 
> Preferences -> Editor?  Relevant Ctrl key combos like "Ctrl-F" and "Ctrl-X S" 
> are set in my preferences with ^F, "^X S", etc.
> 
> > To compensate the swapping with another swapping in System Preferences is 
> > not a realistic choice.
> > It would affect the shortcuts in all the other softwares.
> 
> For a time I used a macros (called with a global hotkey) that would toggle 
> the Capslock key between Ctrl and Cmd that I would invoke going into and 
> coming out of LyX. That was of course less than ideal but it was fast and 
> worked pretty well. Hasn't been necessary for a quite a long time, though.
> 
> Chris Menzel
> 
> 



Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread stiv. djobz.
Thanks.

This is my first time to see the progress/debug messages...

The responses seems to be different.


I moved the .bind files in /Library/Application Support/LyX-2.0/bind/

to another place and restart lyx 2.0.2 with the same settings as yours.


When I type ctrl+b, nothing appears on the document.

The message is:


/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count:
1 text: isAutoRepeat: 0 key: 16777250 keyState: Meta-

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621):
Getting key 16777250, with text ''

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627):
Setting key to 16777250,

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
is 1

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663):
KeySym is Alt_L

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
is 1

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650):
isModifier is 1

23:16:35.603: Unknown
function./Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):
count: 1 text: isAutoRepeat: 0 key: 66 keyState: Meta-

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616):
keyevent has isNull() text !

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
is 1

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663):
KeySym is b

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
is 1

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650):
isModifier is 0

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686):
action first set to []

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694):
action now set to []

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705): Key
[action=][Command-B]

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(726): text_
empty, isText() == false

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1732):
Unknown, !isText() - giving up


When I type command + b, the cursor moves backwards by one character.
The message is:



/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count:
1 text: isAutoRepeat: 0 key: 16777249 keyState: Control-

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621):
Getting key 16777249, with text ''

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627):
Setting key to 16777249,

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
is 1

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663):
KeySym is Control_L

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
is 1

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650):
isModifier is 1

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count:
1 text: isAutoRepeat: 0 key: 66 keyState: Control-

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616):
keyevent has isNull() text !

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
is 1

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663):
KeySym is b

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
is 1

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650):
isModifier is 0

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686):
action first set to []

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694):
action now set to []

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705): Key
[action=][Control-B]



On Tue, Jan 31, 2012 at 10:04 PM, Stephan Witt  wrote:

> Am 31.01.2012 um 14:46 schrieb stiv. djobz.:
>
> > I made sure my keybindings are set properly as yours.
> > For example,
> > in 2.0.1,
> > I could move the cursor backwards by typing ctrl + b with the checkbox
> ticked
> > and by typing command +b with the checkbox unticked,
> > and in 2.0.2,
> > I have to type command + b in both the cases.
> >
> > I'm thinking of going back to 2.0.1 and waiting for a bugfix
> > instead of using additional softwares or macros.
>
> But the bugfix will never arise if it's not possible to find the cause for
> your problem.
>
> Here I'm using LyX-2.0.2 and have no user defined key bindings and set
> shortcuts to "emacs" and the checkbox "don't swap" enabled.
>
> When typing ctrl+b LyX's key debug output is:
> .../GuiApplication.cpp(1705):  Key [action=][Kontroll-B]
> and the cursor is moving one character backwards.
>
> When typing command+b I can see:
> .../GuiApplication.cpp(1705):  Key [action=][Befehl-B]
> .../GuiApplication.cpp(1728): isText() is true, inserting.
> .../GuiApplication.cpp(1746): SelfInsert arg[`b']
> and the letter "b" is inserted.
>
> Please, check the contents of the file "$HOME/Library/Application
> Support/LyX-2.0/bind/user.bind" if it's empty.
>
> Stephan
>
> > But 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread Stephan Witt
Am 31.01.2012 um 16:36 schrieb stiv. djobz.:

> Thanks.
> This is my first time to see the progress/debug messages...

You're very clever ;-)

> The responses seems to be different.

Yes, unfortunately. I suppose you have saved you preferences and LyX was 
restarted.
So, it should work. But indeed it seems to ignore the don't swap option.
Interestingly there is an additional line in your output I don't have:

/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616): keyevent 
has isNull() text !

The complete output I get for ctrl-b is:
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):  count: 1 
text:  isAutoRepeat: 0 key: 16777250 keyState: Meta-
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting 
key 16777250, with text ''
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting 
key to 16777250, 
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): KeySym 
is Alt_L
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): isModifier 
is 1
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):  count: 1 
text:  isAutoRepeat: 0 key: 66 keyState: Control-
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting 
key 66, with text ''
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting 
key to 66, 
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): KeySym 
is b
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): isModifier 
is 0
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686): action 
first set to []
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694): action 
now set to []
/Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705):  Key 
[action=][Kontroll-B]

I can see two possible explanations:
1. We are using different LyX-2.0.2 software packages (I use the package from 
www.lyx.org)
2. We have different environments and there is some critical setting I don't 
have
I have a german desktop and no special settings made to the system keyboard 
mappings.

Do you have another idea? Do you have your own keyboard tables assigned?

Stephan

> I moved the .bind files in /Library/Application Support/LyX-2.0/bind/
> to another place and restart lyx 2.0.2 with the same settings as yours.
> 
> When I type ctrl+b, nothing appears on the document.
> The message is:
> 
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count: 1 
> text: isAutoRepeat: 0 key: 16777250 keyState: Meta-
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting 
> key 16777250, with text ''
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting 
> key to 16777250,
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
> KeySym is Alt_L
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): 
> isModifier is 1
> 23:16:35.603: Unknown 
> function./Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): 
> count: 1 text: isAutoRepeat: 0 key: 66 keyState: Meta-
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616): keyevent 
> has isNull() text !
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
> KeySym is b
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): 
> isModifier is 0
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686): 
> action first set to []
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694): 
> action now set to []
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705): Key 
> [action=][Command-B]
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(726): text_ 
> empty, isText() == false
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1732): 
> Unknown, !isText() - giving up
> 
> 
> When I type command + b, the cursor moves backwards by one character.
> The message is:
> 
> 
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count: 1 
> text: isAutoRepeat: 0 key: 16777249 keyState: Control-
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting 
> key 16777249, with text ''
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread stiv. djobz.
For confirmation, I downloaded lyx-2.0.2 from www.lyx.org. (I had been
using the one from a mirror.)
But the behavior did not change and I got the same messages.

I have no special setting to the system either.
The only difference I notice is that I use white Macbook with a Japanese
keyboard.
But I can not deduce anything from this.

stiv.


On Wed, Feb 1, 2012 at 12:25 AM, Stephan Witt  wrote:

> Am 31.01.2012 um 16:36 schrieb stiv. djobz.:
>
> > Thanks.
> > This is my first time to see the progress/debug messages...
>
> You're very clever ;-)
>
> > The responses seems to be different.
>
> Yes, unfortunately. I suppose you have saved you preferences and LyX was
> restarted.
> So, it should work. But indeed it seems to ignore the don't swap option.
> Interestingly there is an additional line in your output I don't have:
>
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616):
> keyevent has isNull() text !
>
> The complete output I get for ctrl-b is:
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):
>  count: 1 text:  isAutoRepeat: 0 key: 16777250 keyState: Meta-
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621):
> Getting key 16777250, with text ''
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627):
> Setting key to 16777250,
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
> is 1
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663):
> KeySym is Alt_L
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
> is 1
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650):
> isModifier is 1
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):
>  count: 1 text:   isAutoRepeat: 0 key: 66 keyState: Control-
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621):
> Getting key 66, with text ' '
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627):
> Setting key to 66,
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
> is 1
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663):
> KeySym is b
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK
> is 1
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650):
> isModifier is 0
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686):
> action first set to []
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694):
> action now set to []
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705):
>  Key [action=][Kontroll-B]
>
> I can see two possible explanations:
> 1. We are using different LyX-2.0.2 software packages (I use the package
> from www.lyx.org)
> 2. We have different environments and there is some critical setting I
> don't have
> I have a german desktop and no special settings made to the system
> keyboard mappings.
>
> Do you have another idea? Do you have your own keyboard tables assigned?
>
> Stephan
>
> > I moved the .bind files in /Library/Application Support/LyX-2.0/bind/
> > to another place and restart lyx 2.0.2 with the same settings as yours.
> >
> > When I type ctrl+b, nothing appears on the document.
> > The message is:
> >
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):
> count: 1 text: isAutoRepeat: 0 key: 16777250 keyState: Meta-
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621):
> Getting key 16777250, with text ''
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627):
> Setting key to 16777250,
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642):
> isOK is 1
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663):
> KeySym is Alt_L
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642):
> isOK is 1
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650):
> isModifier is 1
> > 23:16:35.603: Unknown
> function./Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):
> count: 1 text: isAutoRepeat: 0 key: 66 keyState: Meta-
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616):
> keyevent has isNull() text !
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642):
> isOK is 1
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663):
> KeySym is b
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642):
> isOK is 1
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650):
> isModifier is 0
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686):
> action first set to []
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694):
> action now set to []
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705):
> Key [action=][Command-B]
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(726):
> text_ 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread Jens Nöckel
Hi, 
since I don't see the problem on either OS X 10.6.8 or 10.7.2, I just tried the 
following steps on my OS X 10.6.8 machine:
1)
Move ~/Library/Application Support/LyX-2.0 to the Desktop.

2)
Fresh download of 
LyX-2.0.2+qt4-cocoa.dmg
from www.lyx.org

3)
Move old LyX out of Application folder

4)
Install downloaded LyX and launch it

5)
In an unrelated note, I noticed that the default screen font wasn't correctly 
displayed: should be Times but is Helvetica. So I chnaged that font to Times 
New Roman and the display worked again.

6)
In Preferences, I then chose the xemacs bind file, and checked the box "Do not 
swap Apple and Control Keys"

7)
I restarted LyX and opened a new document with Control-d (it worked as 
expected). I then started a new math display formula with Apple-d and it worked 
as expected. 

8)
To double check, I went to the Terminal and navigated to 
~/Library/Application Support/LyX-2.0
then issued the command:
grep dontswap *
with the expected result:
preferences:\mac_dontswap_ctrl_meta true

The last point is something you should definitely check, too. If you do the 
same things (including step 1) but still have the problem, then one has to 
start worrying that perhaps Qt is doing something wrong. Essentially what the 
"don't swap" check box does is to set a Qt flag that gets updated when LyX 
starts up.  I can't really see how anything on the LyX side should fail in that 
process.

Jens

On Jan 31, 2012, at 8:25 AM, Stephan Witt wrote:

> Am 31.01.2012 um 16:36 schrieb stiv. djobz.:
> 
>> Thanks.
>> This is my first time to see the progress/debug messages...
> 
> You're very clever ;-)
> 
>> The responses seems to be different.
> 
> Yes, unfortunately. I suppose you have saved you preferences and LyX was 
> restarted.
> So, it should work. But indeed it seems to ignore the don't swap option.
> Interestingly there is an additional line in your output I don't have:
> 
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616): keyevent 
> has isNull() text !
> 
> The complete output I get for ctrl-b is:
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):  count: 
> 1 text:  isAutoRepeat: 0 key: 16777250 keyState: Meta-
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting 
> key 16777250, with text ''
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting 
> key to 16777250, 
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
> KeySym is Alt_L
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): 
> isModifier is 1
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):  count: 
> 1 text:  isAutoRepeat: 0 key: 66 keyState: Control-
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting 
> key 66, with text ''
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting 
> key to 66, 
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
> KeySym is b
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): 
> isModifier is 0
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686): 
> action first set to []
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694): 
> action now set to []
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705):  Key 
> [action=][Kontroll-B]
> 
> I can see two possible explanations:
> 1. We are using different LyX-2.0.2 software packages (I use the package from 
> www.lyx.org)
> 2. We have different environments and there is some critical setting I don't 
> have
> I have a german desktop and no special settings made to the system keyboard 
> mappings.
> 
> Do you have another idea? Do you have your own keyboard tables assigned?
> 
> Stephan
> 
>> I moved the .bind files in /Library/Application Support/LyX-2.0/bind/
>> to another place and restart lyx 2.0.2 with the same settings as yours.
>> 
>> When I type ctrl+b, nothing appears on the document.
>> The message is:
>> 
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count: 
>> 1 text: isAutoRepeat: 0 key: 16777250 keyState: Meta-
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting 
>> key 16777250, with text ''
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting 
>> key to 16777250,
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 
>> 1
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
>> KeySym is Alt_L
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 
>> 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread Stephan Witt
Am 31.01.2012 um 19:16 schrieb Jens Nöckel:

> Hi, 
> since I don't see the problem on either OS X 10.6.8 or 10.7.2, I just tried 
> the following steps on my OS X 10.6.8 machine:
> 
...
Thanks for the good recipe.

> The last point is something you should definitely check, too. If you do the 
> same things (including step 1) but still have the problem, then one has to 
> start worrying that perhaps Qt is doing something wrong. Essentially what the 
> "don't swap" check box does is to set a Qt flag that gets updated when LyX 
> starts up.  I can't really see how anything on the LyX side should fail in 
> that process.

Regarding Qt the difference between LyX-2.0.1 and LyX-2.0.2 is the version of 
the framework.
* LyX-2.0.1 comes with Qt-4.6.3 and
* LyX-2.0.2 comes with Qt-4.7.2

Moving backwards to Qt-4.6.3 has it's own problems - we'll get crashes with 
tools like Divvy again.

Stephan

> 
> Jens
> 
> On Jan 31, 2012, at 8:25 AM, Stephan Witt wrote:
> 
>> Am 31.01.2012 um 16:36 schrieb stiv. djobz.:
>> 
>>> Thanks.
>>> This is my first time to see the progress/debug messages...
>> 
>> You're very clever ;-)
>> 
>>> The responses seems to be different.
>> 
>> Yes, unfortunately. I suppose you have saved you preferences and LyX was 
>> restarted.
>> So, it should work. But indeed it seems to ignore the don't swap option.
>> Interestingly there is an additional line in your output I don't have:
>> 
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616): 
>> keyevent has isNull() text !
>> 
>> The complete output I get for ctrl-b is:
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):  count: 
>> 1 text:  isAutoRepeat: 0 key: 16777250 keyState: Meta-
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting 
>> key 16777250, with text ''
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting 
>> key to 16777250, 
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 
>> 1
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
>> KeySym is Alt_L
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 
>> 1
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): 
>> isModifier is 1
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):  count: 
>> 1 text:  isAutoRepeat: 0 key: 66 keyState: Control-
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting 
>> key 66, with text ''
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting 
>> key to 66, 
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 
>> 1
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
>> KeySym is b
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 
>> 1
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): 
>> isModifier is 0
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686): 
>> action first set to []
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694): 
>> action now set to []
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705):  Key 
>> [action=][Kontroll-B]
>> 
>> I can see two possible explanations:
>> 1. We are using different LyX-2.0.2 software packages (I use the package 
>> from www.lyx.org)
>> 2. We have different environments and there is some critical setting I don't 
>> have
>> I have a german desktop and no special settings made to the system keyboard 
>> mappings.
>> 
>> Do you have another idea? Do you have your own keyboard tables assigned?
>> 
>> Stephan
>> 
>>> I moved the .bind files in /Library/Application Support/LyX-2.0/bind/
>>> to another place and restart lyx 2.0.2 with the same settings as yours.
>>> 
>>> When I type ctrl+b, nothing appears on the document.
>>> The message is:
>>> 
>>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count: 
>>> 1 text: isAutoRepeat: 0 key: 16777250 keyState: Meta-
>>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): 
>>> Getting key 16777250, with text ''
>>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): 
>>> Setting key to 16777250,
>>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK 
>>> is 1
>>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
>>> KeySym is Alt_L
>>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK 
>>> is 1
>>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): 
>>> isModifier is 1
>>> 23:16:35.603: Unknown 
>>> function./Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):
>>>  count: 1 text: isAutoRepeat: 0 key: 66 keyState: Meta-
>>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616): 
>>> keyevent has isNull() text !
>>> 

install not finding classes in miktek

2012-01-31 Thread d c
I just installed version 2.0.2 Friday nov. 25 2011

When I open files, if I look under settings, document class,
all my document classes are reported as missing.

The following info may or may not be relevant:
when I go to tool tex information it seems to have the various class files in 
various places, such as 
C:\Program Files\MiKTeX 2.9\tex\latex
C:\ProgramData\MiKTeX\2.9\tex\latex
C:\Users\HP_User\AppData\Roaming\MiKTeX\2.9\tex\latex

First I installed, encountered the error, uninstalled, manually removed the 
folder in program files and in C:\Users\my user\AppData\Roaming, and then 
reinstalled as administrator

I have tried various solutions from the mailing list, e.g.
I have tried reconfiguring restarting
I have tried setting my install packages on the fly both to yes and to no
I ahve tried updating my file name database

clues?

thx in advance