On Fri, 22 Aug 2003 09:34:14 +0100, Chris Dollin <kers@hpl.hp.com>
wrote:
>Aaron Sloman wrote:
>
>> Chris Glur eas-lab@absamail.co.za writes:
>>
>> [CG]
>>> > >> > I don't even KNOW about <completion>.
>>> > >>
[Chris Dollin]
>>> > >> It's whatever you have to type to do completion in the editor. I
[aaron]
>> It's not as trivial as you might think to produce a nice user interface.
>>
>> Finding all the words in the current dictionary that start with a given
[CD]
>That wasn't what I meant by "completion"; the name was not as well-chosen
>as I'd prefer. I had in mind more
>
> if ESC-Y
>
>completing to
>
> if <cursor ends up here> then else endif
>
>Ditto "until ESC-Y" completing to
>
> until <cursor ends up here> do enduntil
>
>where ESC-Y consults a ESC-Y-specific table of completions. To make
> SPOO-N next slot in current completable thing
> SPOO-P previous slot in current completable thing
> SPOO-E just after the end of current completable thing
> SPOO-B just before the beginning of current completable thing
> SPOO-D delete the current slot in the current completable thing
Just out of curiosity, what did you intend this to do? Delete, e.g.,
everything between "else" and "endif" or delete the "else" as well?
(I.e. the sort of opposite of your SPOO-X ?)
> SPOO-K kill the entire current completable thing
Spooky.
> SPOO-X extend the current completable thing
> [add else/elseif to if, times to repeat, etc]
> SPOO-C complement the current thing [if <-> unless, etc]
>
>But we'd have to try it to see if it would fly in practice.
And the existence of SPOO-D, SPOO-K means you need a SPOO-U (undo)
as well -- the existing ved_y() etc. would not suffice.
I'd quite like a SPOO-Z too, but it might be harder to implement.
SPOO-Z write the current procedure for me :-)
Jonathan
--
(To e-mail me, replace spam by jlc in the e-ddress)
|