Re: Problem developing a new mode...

New Message Reply Date view Thread view Subject view Author view

From: Alex Kidd (alexkidd@MAC.COM)
Date: 3 Apr 00, 03:58 EST


From: Alex Kidd <alexkidd@MAC.COM>
Subject:      Re: Problem developing a new mode...

Thanks for helping!

I did not have the preference in my file, and upon adding it, I didn't see
any difference unfortunately.  I also added the electricTab option to the
first mode line.  I continue to Rebuild my indices each time then quit and
reload Alpha.

You are correct in saying that Option-Tab appears to do exactly how I want
the Tab key to work.  The Tab key appears to take me to the beginning of the
line rather than inserting a tab character at the point in my file where the
cursor is.  I understand that Alpha has some automated processes for
tabulating C code and the like, which I don't necessarily want on.  I prefer
to handle those chores on my own.

I will send you privately a copy of the mode as not to clog the mailing
list.  Thanks so much again for your help!

--Chris

> From: Bernard Desgraupes <berdesg@easynet.fr>
> Reply-To: berdesg@easynet.fr
> Date: Sun, 02 Apr 2000 19:23:40 +0000
> To: alexkidd@MAC.COM
> Subject: Re: Problem developing a new mode...
>
> Alex Kidd wrote:
>>
>> I'm working on a mode for Alpha and all of the Syntax Coloring works fine,
>> but for some reason the Tab key doesn't work?  Is it because my mode should
>> specify the number of spaces in a tab, or am I missing something?
>>
>> I can start a plain text new document and it works fine, as well as with
>> other Modes, so I'm sure it's caused by my mode.  If anyone would be
>> interested in helping, I can attach a copy of my code to you personally and
>> some sample source code to go with it.
>>
>> Thanks!
>> --Chris
>
> I have written several modes, so if I can help you ..
>
> Did you put a pref at the beginning of your file like this
>
> newPref f electricTab {1} nameOfYourMode
>
> where nameOfYourMode is the name of your mode
>
>
> If that does not solve the pb, send me your file. BTW what does it mean
> that the tab key does not work : in what circumstances ? Did you try
> opt-tab ?
>
> Cheers
> Bernard


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:51 EST