'Bind' strangeness in Alpha 7.2b1

New Message Reply Date view Thread view Subject view Author view

From: Masatsugu Nagata (nagata@KURIMS.KYOTO-U.AC.JP)
Date: 23 Feb 99, 18:51 EST


From: Masatsugu Nagata <nagata@KURIMS.KYOTO-U.AC.JP>
Subject: 'Bind' strangeness in Alpha 7.2b1

Please help.  I am trying to bind the following custom proc of mine:

proc ordTab {} {insertText "\t"}

(which simply inserts the Tab character (ascii $09) into the document)
to the <shift-Tab> key combination, but I cannot seem to be able to do it.

I tried putting one of the following lines:

Bind  0x09 <s>    ordTab
ascii  0x9 <s>    ordTab
Bind  '\t' <s>    ordTab

into my 'prefs.tcl', but none of them works.  They are all ignored, when
loaded.  If I run 'describeBinding' and press shift-Tab, then Alpha 7.2b1
says:  "Bound to "ring::-"" !!

I don't need, and I don't know anything about, anything like "ring::-".
I just want to be able to insert a normal Tab character into the document!

Why does 7.2b1 ingore my loading "Bind '\t' <s> ordTab" and insists on the
"Bound to "ring::-"" state?


Could anyone tell me where in the Tcl directory hierarchy this binding to
"ring::-" defined, so that I can modify it?
(I know that "ring::-" proc is defined in ":Tcl:SystemCode:templates.tcl",
 but that file doesn't seem to contain the binding definition.)

...and also why 7.2b1 ignores my try of "Bind '\t' <s> ordTab"?
(This latter question is the more important one to me...)

Just in case:  I cannot use the option-Tab combination, which I use for
some other system-wide function via a System Extension.  I cannot switch
that one to shift-Tab, because the shift-Tab combination has a very
important usage in Finder.


For now, I have bound option-"T":

Bind  't' <o>    ordTab

which works fine, but having to press option-T to insert a Tab character
feels weird -- I want to use the Tab key for the Tab character insertion!

Thanks in advance for any help,

Mark
--
Mark Nagata
mailto:nagata@kurims.kyoto-u.ac.jp


New Message Reply Date view Thread view Subject view Author view

This archive was generated by das@users.sourceforge.net with hypermail 2b29 on 31 Mar 01, 11:50 EST