From: Masatsugu Nagata (nagata@KURIMS.KYOTO-U.AC.JP)
Date: 20 Oct 00, 08:00 EST
From: Masatsugu Nagata <nagata@KURIMS.KYOTO-U.AC.JP>
Subject: "Tabs to Spaces" beneath Text menu
Jon,
> If what you want is for Alpha to insert some number of space
> characters each time you hit the tab key, then I'm not sure if there
> is presently a way to do that. It certainly is feasible to make Alpha
> act this way.
>
How about:
proc crazyTab {} {insertText " "}
proc ordTab {} {insertText "\t"}
Bind '\t' crazyTab
Bind '\t' <s> ordTab
Bob, if you add the above four lines into your 'prefs.tcl' file,
then, pressing Tab (resp. shift-Tab) would insert four spaces
(resp. a tab character).
Bob Batson wrote:
>Yes, the menu item seems to be disabled. Instead of 'turn-on', I
>should have written either 'activate' or 'enable'.
>
>In order to convert tabs to spaces in any document I've written with
>Alpha 7.3, I have to select the "Tabs to Spaces" item to convert my
>document.
I have no idea why the menu item could be disabled, but anyway,
you can ALWAYS execute the 'tabsToSpaces' command (or any other command)
without using the menu -- you can press the Escape Key, then release
the Escape Key, and then press the "x" key, then release the "x" key,
(at this time, you should see "M-x" appearing on the StatusWin)
and then type "tabsToSpaces", then press the Return Key. Then, the
'tabsToSpaces' command is executed (onto the current selection of text).
Hope this helps.
Mark
--
Mark Nagata
mailto:nagata@kurims.kyoto-u.ac.jp