Re: Keyboard Shortcuts (fwd)

2009-03-16 Thread Rich Shepard

On Fri, 13 Mar 2009, Rich Shepard wrote:


 I copied /usr/local/share/lyx/bind/emacs.bind to ~/.lyx/bind/my.bind and
tested the key bindings against a document. No difference: when I press
[Del] I get the spade playing card symbol to the left of the point rather
than deleting the character to the right of the point.

 When I grepped my.bind for 'Del' and 'Delete' I found no binding for that
key by itself. There is a C-Delete bound to word-delete-forward, and a
S-KP_Delete bound to cut, but no Delete by itself. As a matter of fact, the
[Del] key is not bound to anything in cua.bind, emacs.bind, or user.bind.
For what it's worth, in the latter file it's explicitly unbound from
char-delete-forward.

 I find this stange. I tend to use the [Del] key and my mini-keyboard
doesn't have a numeric keypad in any case. From my user perspective, this is
a bug.

 How can I make the [Del] key delete the character immediately to the
right?


  Well, I guess all I can do is not use the Delete key since no one seems to
know why it won't work since the upgrade to 1.6.1. So, I'll unsubscribe from
this list.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: Keyboard Shortcuts (fwd)

2009-03-16 Thread Bo Peng
  Well, I guess all I can do is not use the Delete key since no one seems to
 know why it won't work since the upgrade to 1.6.1. So, I'll unsubscribe from
 this list.

I experienced something like this when I developed the new shortcut
dialog with certain combination of os/qt/lyx but I could not repeat it
now. If you could PM me your bind file, and tell me you os and lyx
version, I might be able to help.

Cheers,
Bo, retired lyx developer.


Re: Keyboard Shortcuts (fwd)

2009-03-16 Thread Rich Shepard

On Fri, 13 Mar 2009, Rich Shepard wrote:


 I copied /usr/local/share/lyx/bind/emacs.bind to ~/.lyx/bind/my.bind and
tested the key bindings against a document. No difference: when I press
[Del] I get the spade playing card symbol to the left of the point rather
than deleting the character to the right of the point.

 When I grepped my.bind for 'Del' and 'Delete' I found no binding for that
key by itself. There is a C-Delete bound to word-delete-forward, and a
S-KP_Delete bound to cut, but no Delete by itself. As a matter of fact, the
[Del] key is not bound to anything in cua.bind, emacs.bind, or user.bind.
For what it's worth, in the latter file it's explicitly unbound from
char-delete-forward.

 I find this stange. I tend to use the [Del] key and my mini-keyboard
doesn't have a numeric keypad in any case. From my user perspective, this is
a bug.

 How can I make the [Del] key delete the character immediately to the
right?


  Well, I guess all I can do is not use the Delete key since no one seems to
know why it won't work since the upgrade to 1.6.1. So, I'll unsubscribe from
this list.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
 Voice: 503-667-4517  Fax: 503-667-8863


Re: Keyboard Shortcuts (fwd)

2009-03-16 Thread Bo Peng
>  Well, I guess all I can do is not use the Delete key since no one seems to
> know why it won't work since the upgrade to 1.6.1. So, I'll unsubscribe from
> this list.

I experienced something like this when I developed the new shortcut
dialog with certain combination of os/qt/lyx but I could not repeat it
now. If you could PM me your bind file, and tell me you os and lyx
version, I might be able to help.

Cheers,
Bo, retired lyx developer.


Re: Keyboard Shortcuts (fwd)

2009-03-13 Thread Pavel Sanda
Rich Shepard wrote:
 On Fri, 6 Mar 2009, Rich Shepard wrote:

 On Sat, 7 Mar 2009, Pavel Sanda wrote:

 does it help when your remove your ~/.lyx directory ?

  LyX opens to the introductory document. When I open one of mine, the 
 [Del]
 key works as it should. I'm attaching my bind file (modified from the
 emacs.bind); perhaps I messed it up inadvertently with the name changes 
 for
 key actions.

   Does /usr/local/share/lyx/bind/cua.bind become the default bind file if
 there is no ~/.lyx?

   I've discovered user.bind and changed the binding for C-d Delete (on one
 line) to 'char-delete-forward' as in the user.bind file. It's still not
 working properly.

   I'd greatly appreciate pointers where to look for the source of the
 problem. C-d works properly, but the Delete key doesn't. Hasn't happened
 before, and I've been using the same ~/.lyx/bind/my.bind file since at 

there have been changes in lfuns syntax (documented in RELEASE_NOTES),
probably you need build your binding file step by step starting from the
empty one. also add only bindings which change the default behaviour
so its easy to track the problem down in future versions.
in 1.6 you can even forget about editing binding file and use preferences
shortcut dialog.

pavel


Re: Keyboard Shortcuts (fwd)

2009-03-13 Thread Rich Shepard

On Fri, 13 Mar 2009, Pavel Sanda wrote:


there have been changes in lfuns syntax (documented in RELEASE_NOTES),


Pavel,

  I made those changes after upgrading to 1.6.1.


probably you need build your binding file step by step starting from the
empty one. also add only bindings which change the default behaviour
so its easy to track the problem down in future versions.


  I'm not sure that I follow you here. By empty one you mean to ignore
emacs.bind and start with an empty file? Also, where do I find the default
behavior? What I read in the lyxrc file is that cua.bind is the default.
However, since I do so much writing in emacs and joe (with emacs keybinds) I
prefer to have those same key bindings working in lyx, too.


in 1.6 you can even forget about editing binding file and use preferences
shortcut dialog.


  So I can put everything from emacs.bind in there? Hmmm-m. Anyway, when I
look at it I see duplicate entries. Could this be the reason why the Del key
doesn't work? I've attached a small screenshot.

Thanks,

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863attachment: screenshot.png

Re: Keyboard Shortcuts (fwd)

2009-03-13 Thread Pavel Sanda
Rich Shepard wrote:
   I made those changes after upgrading to 1.6.1.

aha.

 probably you need build your binding file step by step starting from the
 empty one. also add only bindings which change the default behaviour
 so its easy to track the problem down in future versions.

   I'm not sure that I follow you here. By empty one you mean to ignore
 emacs.bind and start with an empty file?

i forgot you use emacs.bind. so lets define empty as emacs.bind delivered
byt the lyx itself. if you use this file and delete does not work, then its
bug of lyx. otherwise i proposed to change your particular shortcuts to the
time del breaks. 

 However, since I do so much writing in emacs and joe (with emacs keybinds) 
 I prefer to have those same key bindings working in lyx, too.

of course, this should be possible.

 in 1.6 you can even forget about editing binding file and use preferences
 shortcut dialog.

   So I can put everything from emacs.bind in there? Hmmm-m. Anyway, when I
 look at it I see duplicate entries. Could this be the reason why the Del 
 key doesn't work? I've attached a small screenshot.

looks strange indeed. wont be on mail for some time, sorry.
pavel


Re: Keyboard Shortcuts (fwd)

2009-03-13 Thread Rich Shepard

On Fri, 13 Mar 2009, Pavel Sanda wrote:


i forgot you use emacs.bind. so lets define empty as emacs.bind
delivered byt the lyx itself. if you use this file and delete does not
work, then its bug of lyx. otherwise i proposed to change your particular
shortcuts to the time del breaks.


Folks,

  I copied /usr/local/share/lyx/bind/emacs.bind to ~/.lyx/bind/my.bind and
tested the key bindings against a document. No difference: when I press
[Del] I get the spade playing card symbol to the left of the point rather
than deleting the character to the right of the point.

  When I grepped my.bind for 'Del' and 'Delete' I found no binding for that
key by itself. There is a C-Delete bound to word-delete-forward, and a
S-KP_Delete bound to cut, but no Delete by itself. As a matter of fact, the
[Del] key is not bound to anything in cua.bind, emacs.bind, or user.bind.
For what it's worth, in the latter file it's explicitly unbound from
char-delete-forward.

  I find this stange. I tend to use the [Del] key and my mini-keyboard
doesn't have a numeric keypad in any case. From my user perspective, this is
a bug.

  How can I make the [Del] key delete the character immediately to the
right?

Thanks,

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: Keyboard Shortcuts (fwd)

2009-03-13 Thread Pavel Sanda
Rich Shepard wrote:
> On Fri, 6 Mar 2009, Rich Shepard wrote:
>
>> On Sat, 7 Mar 2009, Pavel Sanda wrote:
>>
>>> does it help when your remove your ~/.lyx directory ?
>>
>>  LyX opens to the introductory document. When I open one of mine, the 
>> [Del]
>> key works as it should. I'm attaching my bind file (modified from the
>> emacs.bind); perhaps I messed it up inadvertently with the name changes 
>> for
>> key actions.
>
>   Does /usr/local/share/lyx/bind/cua.bind become the default bind file if
> there is no ~/.lyx?
>
>   I've discovered user.bind and changed the binding for C-d Delete (on one
> line) to 'char-delete-forward' as in the user.bind file. It's still not
> working properly.
>
>   I'd greatly appreciate pointers where to look for the source of the
> problem. C-d works properly, but the Delete key doesn't. Hasn't happened
> before, and I've been using the same ~/.lyx/bind/my.bind file since at 

there have been changes in lfuns syntax (documented in RELEASE_NOTES),
probably you need build your binding file step by step starting from the
empty one. also add only bindings which change the default behaviour
so its easy to track the problem down in future versions.
in 1.6 you can even forget about editing binding file and use preferences
shortcut dialog.

pavel


Re: Keyboard Shortcuts (fwd)

2009-03-13 Thread Rich Shepard

On Fri, 13 Mar 2009, Pavel Sanda wrote:


there have been changes in lfuns syntax (documented in RELEASE_NOTES),


Pavel,

  I made those changes after upgrading to 1.6.1.


probably you need build your binding file step by step starting from the
empty one. also add only bindings which change the default behaviour
so its easy to track the problem down in future versions.


  I'm not sure that I follow you here. By "empty one" you mean to ignore
emacs.bind and start with an empty file? Also, where do I find the "default
behavior?" What I read in the lyxrc file is that cua.bind is the default.
However, since I do so much writing in emacs and joe (with emacs keybinds) I
prefer to have those same key bindings working in lyx, too.


in 1.6 you can even forget about editing binding file and use preferences
shortcut dialog.


  So I can put everything from emacs.bind in there? Hmmm-m. Anyway, when I
look at it I see duplicate entries. Could this be the reason why the Del key
doesn't work? I've attached a small screenshot.

Thanks,

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
 Voice: 503-667-4517  Fax: 503-667-8863<>

Re: Keyboard Shortcuts (fwd)

2009-03-13 Thread Pavel Sanda
Rich Shepard wrote:
>   I made those changes after upgrading to 1.6.1.

aha.

>> probably you need build your binding file step by step starting from the
>> empty one. also add only bindings which change the default behaviour
>> so its easy to track the problem down in future versions.
>
>   I'm not sure that I follow you here. By "empty one" you mean to ignore
> emacs.bind and start with an empty file?

i forgot you use emacs.bind. so lets define "empty" as emacs.bind delivered
byt the lyx itself. if you use this file and delete does not work, then its
bug of lyx. otherwise i proposed to change your particular shortcuts to the
time del breaks. 

> However, since I do so much writing in emacs and joe (with emacs keybinds) 
> I prefer to have those same key bindings working in lyx, too.

of course, this should be possible.

>> in 1.6 you can even forget about editing binding file and use preferences
>> shortcut dialog.
>
>   So I can put everything from emacs.bind in there? Hmmm-m. Anyway, when I
> look at it I see duplicate entries. Could this be the reason why the Del 
> key doesn't work? I've attached a small screenshot.

looks strange indeed. wont be on mail for some time, sorry.
pavel


Re: Keyboard Shortcuts (fwd)

2009-03-13 Thread Rich Shepard

On Fri, 13 Mar 2009, Pavel Sanda wrote:


i forgot you use emacs.bind. so lets define "empty" as emacs.bind
delivered byt the lyx itself. if you use this file and delete does not
work, then its bug of lyx. otherwise i proposed to change your particular
shortcuts to the time del breaks.


Folks,

  I copied /usr/local/share/lyx/bind/emacs.bind to ~/.lyx/bind/my.bind and
tested the key bindings against a document. No difference: when I press
[Del] I get the spade playing card symbol to the left of the point rather
than deleting the character to the right of the point.

  When I grepped my.bind for 'Del' and 'Delete' I found no binding for that
key by itself. There is a C-Delete bound to word-delete-forward, and a
S-KP_Delete bound to cut, but no Delete by itself. As a matter of fact, the
[Del] key is not bound to anything in cua.bind, emacs.bind, or user.bind.
For what it's worth, in the latter file it's explicitly unbound from
char-delete-forward.

  I find this stange. I tend to use the [Del] key and my mini-keyboard
doesn't have a numeric keypad in any case. From my user perspective, this is
a bug.

  How can I make the [Del] key delete the character immediately to the
right?

Thanks,

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
 Voice: 503-667-4517  Fax: 503-667-8863


Re: Keyboard Shortcuts (fwd)

2009-03-12 Thread Rich Shepard

On Fri, 6 Mar 2009, Rich Shepard wrote:


On Sat, 7 Mar 2009, Pavel Sanda wrote:


does it help when your remove your ~/.lyx directory ?


 LyX opens to the introductory document. When I open one of mine, the [Del]
key works as it should. I'm attaching my bind file (modified from the
emacs.bind); perhaps I messed it up inadvertently with the name changes for
key actions.


  Does /usr/local/share/lyx/bind/cua.bind become the default bind file if
there is no ~/.lyx?

  I've discovered user.bind and changed the binding for C-d Delete (on one
line) to 'char-delete-forward' as in the user.bind file. It's still not
working properly.

  I'd greatly appreciate pointers where to look for the source of the
problem. C-d works properly, but the Delete key doesn't. Hasn't happened
before, and I've been using the same ~/.lyx/bind/my.bind file since at least
2003.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: Keyboard Shortcuts (fwd)

2009-03-12 Thread Rich Shepard

On Fri, 6 Mar 2009, Rich Shepard wrote:


On Sat, 7 Mar 2009, Pavel Sanda wrote:


does it help when your remove your ~/.lyx directory ?


 LyX opens to the introductory document. When I open one of mine, the [Del]
key works as it should. I'm attaching my bind file (modified from the
emacs.bind); perhaps I messed it up inadvertently with the name changes for
key actions.


  Does /usr/local/share/lyx/bind/cua.bind become the default bind file if
there is no ~/.lyx?

  I've discovered user.bind and changed the binding for C-d Delete (on one
line) to 'char-delete-forward' as in the user.bind file. It's still not
working properly.

  I'd greatly appreciate pointers where to look for the source of the
problem. C-d works properly, but the Delete key doesn't. Hasn't happened
before, and I've been using the same ~/.lyx/bind/my.bind file since at least
2003.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
 Voice: 503-667-4517  Fax: 503-667-8863


Re: Keyboard Shortcuts (fwd)

2009-03-06 Thread Rich Shepard

  Juergen asked me to subscribe to this mail list and pass on to all of you
a strange (and new with 1.6.1) problem with the [Del] key. This is on
Slackware-12.2.

  Despite \bind Delete being defined as 'char-delete-forward' in site.bind
and ~/.lyx/bind/my.bind, it's not working. When I press that key, a playing
card spade suit character is entered (see attached screen shot).
Fortunately, ctrl-d works properly.

  Below is the information I sent to Juergen early this morning with the
results of running 'lyx -dbg 4'. I hope you smart folks can figure out what
broke and provide a fix. I, of course, will test anything you send my way.

Thanks,

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863

-- Forwarded message --

If you start lyx with -dbg key, what is the output if you hit the Del key?


  Upon starting with 'lyx -dbg 4' (with \bind Delete commented out in my
individual bind file), at the end of the output is:

KeyMap.cpp(227): KeyMap::read: error while reading bind
file:/home/rshepard/.lyx/bind/my.bind
GuiKeySymbol.cpp(634): Init key to 16777236, Right
GuiKeySymbol.cpp(641): isOK is 1
GuiKeySymbol.cpp(641): isOK is 1
GuiKeySymbol.cpp(634): Init key to 16777234, Left
GuiKeySymbol.cpp(641): isOK is 1
GuiKeySymbol.cpp(641): isOK is 1
GuiKeySymbol.cpp(634): Init key to 68, d
GuiKeySymbol.cpp(641): isOK is 1
GuiKeySymbol.cpp(634): Init key to 16777223, Delete
GuiKeySymbol.cpp(641): isOK is 1
GuiKeySymbol.cpp(641): isOK is 1
Error: New binding for 'Ctrl+D Del' is overriding old binding...
GuiKeySymbol.cpp(634): Init key to 16777223, Delete
GuiKeySymbol.cpp(641): isOK is 1
GuiKeySymbol.cpp(641): isOK is 1
Menus.cpp(588): Menu warning: menu entries Ordinary Quote|O and
Horizontal Space...|o share the same shortcut.

  As soon as I press the [Del] key, this is displayed:

GuiWorkArea.cpp(863):  count: 1 text:  isAutoRepeat: 0 key: 16777223
GuiKeySymbol.cpp(620): Getting key 16777223, with text ''
GuiKeySymbol.cpp(626): Setting key to 16777223, LyXFunc.cpp(288): KeySym is 
Delete

GuiKeySymbol.cpp(641): isOK is 1
GuiKeySymbol.cpp(649): isModifier is 0
LyXFunc.cpp(315): action first set to []
LyXFunc.cpp(323): action now set to []
LyXFunc.cpp(334):  Key [action=][Del]
LyXFunc.cpp(357): isText() is true, inserting.
LyXFunc.cpp(373): SelfInsert arg[']

... and the attached shows what is displayed (without the character to the
right of the point being deleted).

  Then, when I press the [Backspace] key:

GuiWorkArea.cpp(863):  count: 1 text: isAutoRepeat: 0 key: 16777219
GuiKeySymbol.cpp(620): Getting key 16777219, with text '
GuiKeySymbol.cpp(626): Setting key to 16777219, LyXFunc.cpp(288): KeySym is 
BackSpace

GuiKeySymbol.cpp(641): isOK is 1
GuiKeySymbol.cpp(649): isModifier is 0
LyXFunc.cpp(315): action first set to [char-delete-backward]
LyXFunc.cpp(323): action now set to [char-delete-backward]
LyXFunc.cpp(334):  Key [action=char-delete-backward][Backspace]
GuiWorkArea.cpp(863):  count: 1 text:  isAutoRepeat: 0 key: 16777249
GuiKeySymbol.cpp(620): Getting key 16777249, with text ''
GuiKeySymbol.cpp(626): Setting key to 16777249, LyXFunc.cpp(288): KeySym is 
Control_L

GuiKeySymbol.cpp(641): isOK is 1
GuiKeySymbol.cpp(649): isModifier is 1
LyXFunc.cpp(298): isModifier true

... and I see that with the [Del] key in LyXFunc.cpp(315) and (323) no
action is being set. Strange. Frustrating. Had not happened this way in
every previous version.

Many thanks,

RichATTACHMENT: screenshot.png

Re: Keyboard Shortcuts (fwd)

2009-03-06 Thread Pavel Sanda
Rich Shepard wrote:
   Below is the information I sent to Juergen early this morning with the
 results of running 'lyx -dbg 4'. I hope you smart folks can figure out what
 broke and provide a fix. I, of course, will test anything you send my way.

does it help when your remove your ~/.lyx directory ?
what qt version do you have?
pavel


Re: Keyboard Shortcuts (fwd)

2009-03-06 Thread Rich Shepard

On Sat, 7 Mar 2009, Pavel Sanda wrote:


does it help when your remove your ~/.lyx directory ?


  LyX opens to the introductory document. When I open one of mine, the [Del]
key works as it should. I'm attaching my bind file (modified from the
emacs.bind); perhaps I messed it up inadvertently with the name changes for
key actions.


what qt version do you have?


qt-3.3.8b-i486-2
qt4-4.4.3-i486-1_SBo

Thanks,

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863# This is the EMACS flavour bind file, based on the bindings found 
# in the Emacs editor.

# added by RBS 22 Sept. 2003:
# \bind C-z   self-insert environmental impact assessment
\bind C-S-B   font-bold
\bind C-S-Cfont-typewriter
\bind C-S-E   font-emph
\bind C-S-K   font-noun
\bind C-S-U   font-underline

\bind C-~S-at mark-on
\bind C-a line-begin
\bind C-b char-backward
#bind C-c -- // used as users prefix
\bind C-d char-delete-forward
\bind Delete  char-delete-forward
\bind C-e line-end
\bind C-f char-forward
\bind C-g cancel

# help in emacs
\bind C-hbuffer-export pdf2 
\bind C-ihfill-insert
\bind C-jbreak-paragraph
\bind C-kline-delete-forward
\bind C-lscreen-recenter
\bind C-mmark-toggle
\bind C-ndown
\bind C-oinset-toggle
\bind C-pup

# this is quoted-insert a total different meaning from quote-insert
\bind C-qself-insert \
\bind C-rfind-replace
\bind C-sbuffer-write
\bind C-tchars-transpose

# universal argument in emacs
\bind C-ufont-underline

# better name would be scroll-up as in emacs
\bind C-vscreen-down

\bind C-wcut
#\bind C-x   --
\bind C-ypaste
\bind C-S-Y  layout-paste

#should be lyx-iconify
#bind C-z--

\bind C-~S-slash undo
\bind C-~S-underscoreundo

\bind ~S-C-quotedbl   self-insert \

\bind C-x a  buffer-auto-save
#\bind C-x b buffer-previous
\bind C-x d  buffer-new
\bind C-x g  buffer-view ps
\bind C-x k  buffer-close
\bind C-x l  ert-insert  # 'l' for LaTeX
\bind C-x p  buffer-view dvi
\bind C-x r  buffer-update dvi
\bing C-x f  buffer-view pdf2   
# Should have been buffer-write-some
# \bind C-x s  buffer-write
\bind C-x t  buffer-update dvi
\bind C-x u  undo
\bind C-x v hvc-history
\bind C-x v vvc-check-in
\bind C-x v uvc-revert
\bind C-x v cvc-undo-last
\bind C-x v ivc-register
\bind C-x bracketleftscreen-up
\bind C-x bracketright   screen-down
\bind C-x C-abuffer-auto-save
\bind C-x C-bmenu-open documents
\bind C-x C-clyx-quit
\bind C-x C-dbuffer-new
\bind C-x C-ffile-open
\bind C-x C-gbuffer-view ps
\bind C-x C-pbuffer-view dvi
\bind C-x C-qbuffer-toggle-read-only
#\bind C-x C-rbuffer-update dvi
\bind C-x C-sbuffer-write
\bind C-x C-tbuffer-update dvi

# this is upcase-region in emacs
#\bind C-x C-uundo
\bind C-x C-wbuffer-write-as

#bind C-1--
#bind C-2--
#bind C-3--
#bind C-4--
#bind C-5--
#bind C-6--
#bind C-7--
#bind C-8--
#bind C-9--
#bind C-0--

#bind F1 help  # Not yet 
implemented!
#bind C-F1   help-context  # Not yet 
implemented!
\bind F2 buffer-write
\bind F3 file-open
#bind F4 --
#bind F5 --
#bind F6 --
bind F7  dialog-show spellchecker
#bind F8 --
#bind F9 --
#bind F10--

\bind M-x command-execute


#
# Motion 

Re: Keyboard Shortcuts (fwd)

2009-03-06 Thread Rich Shepard

  Juergen asked me to subscribe to this mail list and pass on to all of you
a strange (and new with 1.6.1) problem with the [Del] key. This is on
Slackware-12.2.

  Despite \bind "Delete" being defined as 'char-delete-forward' in site.bind
and ~/.lyx/bind/my.bind, it's not working. When I press that key, a playing
card spade suit character is entered (see attached screen shot).
Fortunately, ctrl-d works properly.

  Below is the information I sent to Juergen early this morning with the
results of running 'lyx -dbg 4'. I hope you smart folks can figure out what
broke and provide a fix. I, of course, will test anything you send my way.

Thanks,

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
 Voice: 503-667-4517  Fax: 503-667-8863

-- Forwarded message --

If you start lyx with -dbg key, what is the output if you hit the Del key?


  Upon starting with 'lyx -dbg 4' (with \bind "Delete" commented out in my
individual bind file), at the end of the output is:

KeyMap.cpp(227): KeyMap::read: error while reading bind
file:/home/rshepard/.lyx/bind/my.bind
GuiKeySymbol.cpp(634): Init key to 16777236, Right
GuiKeySymbol.cpp(641): isOK is 1
GuiKeySymbol.cpp(641): isOK is 1
GuiKeySymbol.cpp(634): Init key to 16777234, Left
GuiKeySymbol.cpp(641): isOK is 1
GuiKeySymbol.cpp(641): isOK is 1
GuiKeySymbol.cpp(634): Init key to 68, d
GuiKeySymbol.cpp(641): isOK is 1
GuiKeySymbol.cpp(634): Init key to 16777223, Delete
GuiKeySymbol.cpp(641): isOK is 1
GuiKeySymbol.cpp(641): isOK is 1
Error: New binding for 'Ctrl+D Del' is overriding old binding...
GuiKeySymbol.cpp(634): Init key to 16777223, Delete
GuiKeySymbol.cpp(641): isOK is 1
GuiKeySymbol.cpp(641): isOK is 1
Menus.cpp(588): Menu warning: menu entries "Ordinary Quote|O" and
"Horizontal Space...|o" share the same shortcut.

  As soon as I press the [Del] key, this is displayed:

GuiWorkArea.cpp(863):  count: 1 text:  isAutoRepeat: 0 key: 16777223
GuiKeySymbol.cpp(620): Getting key 16777223, with text ''
GuiKeySymbol.cpp(626): Setting key to 16777223, LyXFunc.cpp(288): KeySym is 
Delete

GuiKeySymbol.cpp(641): isOK is 1
GuiKeySymbol.cpp(649): isModifier is 0
LyXFunc.cpp(315): action first set to []
LyXFunc.cpp(323): action now set to []
LyXFunc.cpp(334):  Key [action=][Del]
LyXFunc.cpp(357): isText() is true, inserting.
LyXFunc.cpp(373): SelfInsert arg[']

... and the attached shows what is displayed (without the character to the
right of the point being deleted).

  Then, when I press the [Backspace] key:

GuiWorkArea.cpp(863):  count: 1 text: isAutoRepeat: 0 key: 16777219
GuiKeySymbol.cpp(620): Getting key 16777219, with text '
GuiKeySymbol.cpp(626): Setting key to 16777219, LyXFunc.cpp(288): KeySym is 
BackSpace

GuiKeySymbol.cpp(641): isOK is 1
GuiKeySymbol.cpp(649): isModifier is 0
LyXFunc.cpp(315): action first set to [char-delete-backward]
LyXFunc.cpp(323): action now set to [char-delete-backward]
LyXFunc.cpp(334):  Key [action=char-delete-backward][Backspace]
GuiWorkArea.cpp(863):  count: 1 text:  isAutoRepeat: 0 key: 16777249
GuiKeySymbol.cpp(620): Getting key 16777249, with text ''
GuiKeySymbol.cpp(626): Setting key to 16777249, LyXFunc.cpp(288): KeySym is 
Control_L

GuiKeySymbol.cpp(641): isOK is 1
GuiKeySymbol.cpp(649): isModifier is 1
LyXFunc.cpp(298): isModifier true

... and I see that with the [Del] key in LyXFunc.cpp(315) and (323) no
action is being set. Strange. Frustrating. Had not happened this way in
every previous version.

Many thanks,

Rich<>

Re: Keyboard Shortcuts (fwd)

2009-03-06 Thread Pavel Sanda
Rich Shepard wrote:
>   Below is the information I sent to Juergen early this morning with the
> results of running 'lyx -dbg 4'. I hope you smart folks can figure out what
> broke and provide a fix. I, of course, will test anything you send my way.

does it help when your remove your ~/.lyx directory ?
what qt version do you have?
pavel


Re: Keyboard Shortcuts (fwd)

2009-03-06 Thread Rich Shepard

On Sat, 7 Mar 2009, Pavel Sanda wrote:


does it help when your remove your ~/.lyx directory ?


  LyX opens to the introductory document. When I open one of mine, the [Del]
key works as it should. I'm attaching my bind file (modified from the
emacs.bind); perhaps I messed it up inadvertently with the name changes for
key actions.


what qt version do you have?


qt-3.3.8b-i486-2
qt4-4.4.3-i486-1_SBo

Thanks,

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
 Voice: 503-667-4517  Fax: 503-667-8863# This is the EMACS flavour bind file, based on the bindings found 
# in the Emacs editor.

# added by RBS 22 Sept. 2003:
# \bind "C-z"   "self-insert environmental impact assessment"
\bind "C-S-B"   "font-bold"
\bind "C-S-C"font-typewriter"
\bind "C-S-E"   "font-emph"
\bind "C-S-K"   "font-noun"
\bind "C-S-U"   "font-underline"

\bind "C-~S-at" "mark-on"
\bind "C-a" "line-begin"
\bind "C-b" "char-backward"
#bind "C-c" "--" // used as users prefix
\bind "C-d" "char-delete-forward"
\bind "Delete"  "char-delete-forward"
\bind "C-e" "line-end"
\bind "C-f" "char-forward"
\bind "C-g" "cancel"

# help in emacs
\bind "C-h""buffer-export pdf2" 
\bind "C-i""hfill-insert"
\bind "C-j""break-paragraph"
\bind "C-k""line-delete-forward"
\bind "C-l""screen-recenter"
\bind "C-m""mark-toggle"
\bind "C-n""down"
\bind "C-o""inset-toggle"
\bind "C-p""up"

# this is "quoted-insert" a total different meaning from "quote-insert"
\bind "C-q""self-insert \""
\bind "C-r""find-replace"
\bind "C-s""buffer-write"
\bind "C-t""chars-transpose"

# universal argument in emacs
\bind "C-u""font-underline"

# better name would be "scroll-up" as in emacs
\bind "C-v""screen-down"

\bind "C-w""cut"
#\bind "C-x"   "--"
\bind "C-y""paste"
\bind "C-S-Y"  "layout-paste"

#should be "lyx-iconify"
#bind "C-z""--"

\bind "C-~S-slash" "undo"
\bind "C-~S-underscore""undo"

\bind "~S-C-quotedbl"   "self-insert \""

\bind "C-x a"  "buffer-auto-save"
#\bind "C-x b" "buffer-previous"
\bind "C-x d"  "buffer-new"
\bind "C-x g"  "buffer-view ps"
\bind "C-x k"  "buffer-close"
\bind "C-x l"  "ert-insert"  # 'l' for LaTeX
\bind "C-x p"  "buffer-view dvi"
\bind "C-x r"  "buffer-update dvi"
\bing "C-x f"  "buffer-view pdf2"   
# Should have been "buffer-write-some"
# \bind "C-x s"  "buffer-write"
\bind "C-x t"  "buffer-update dvi"
\bind "C-x u"  "undo"
\bind "C-x v h""vc-history"
\bind "C-x v v""vc-check-in"
\bind "C-x v u""vc-revert"
\bind "C-x v c""vc-undo-last"
\bind "C-x v i""vc-register"
\bind "C-x bracketleft""screen-up"
\bind "C-x bracketright"   "screen-down"
\bind "C-x C-a""buffer-auto-save"
\bind "C-x C-b""menu-open documents"
\bind "C-x C-c""lyx-quit"
\bind "C-x C-d""buffer-new"
\bind "C-x C-f""file-open"
\bind "C-x C-g""buffer-view ps"
\bind "C-x C-p""buffer-view dvi"
\bind "C-x C-q""buffer-toggle-read-only"
#\bind "C-x C-r""buffer-update dvi"
\bind "C-x C-s""buffer-write"
\bind "C-x C-t""buffer-update dvi"

# this is "upcase-region" in emacs
#\bind "C-x C-u""undo"
\bind "C-x C-w""buffer-write-as"

#bind "C-1""--"
#bind "C-2""--"
#bind "C-3""--"
#bind "C-4""--"
#bind "C-5""--"
#bind "C-6""--"
#bind "C-7""--"
#bind "C-8""--"
#bind "C-9""--"
#bind "C-0""--"

#bind "F1" "help"  # Not yet 
implemented!
#bind "C-F1"   "help-context"  # Not yet 
implemented!
\bind "F2" "buffer-write"
\bind "F3"