Hmm, what you describe is not exactly what I get.
In the Jess editor, if I type '(' and ')' very quickly, I do indeed get
"()", however the cursor is still in-between the two parens, not after
the closing paren as I would expect. For instance, if I type '(', ')'
then 'DELETE', I would expect the line to contain an opening paren
followed by the blinking cursor. The line actually contains only a
close paren with the cursor at the front of it. This leads to a syntax
error on the line.
I guess that I would expect to be able to type '(' and ')' then 'DELETE'
and have an open paren, followed by the cursor, and no syntax error such
that I could continue typing and eventually close the paren and have
everything be ok.
If I type '(', 'f', 'o', 'o', ')', I guess I expect to see "(foo)"
regardless of what the autocompletion does for me (as it does in the
Java editor). I just think that I should be able to type away if I so
choose and ignore the auto-completion feature. The editor should
respond appropriately to what I do, and not vice-versa.
In a nutshell, it would be nice to have the auto-completion feature
silently step aside if I get on a roll.
Is it possible to have an option I can check/uncheck that controls this
behavior?
Thanks for listening.
-Mitch
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, January 19, 2005 5:13 PM
To: [email protected]
Subject: Re: JESS: JessDE Editor Behavior
OK, I bet I know what's happening. It has to do with typing style. Once
again, I find that I am in the minority.
Try this: in the Jess editor, type the two characters '(' and ')'.
You'll see that you end up with just "()", despite the autocompletion.
Same with the double quotes. Type two double quotes in a row, you end up
with two, even though you also had two as soon as you typed the first
one. All of this behavior is deliberately coded in there, and it's
enough to compensate for any extra parens or quotes I ever type.
If you type '(', 'f', 'o', 'o', ')', though, you end up with "(foo))". I
never do this; my brain is trained to expect the auto-paren-insertion
that so many editors do.
But I just went and fiddled around in the Java editor, and if you type
'(', 'f', 'o', 'o', ')', that last parenthesis actually steps over the
one that was inserted when you typed the open parenthesis. This is
different from what the Jess editor does. That must be what you're
expecting, yes? I can fix the JessDE to do the same thing.
I think Mitch Christensen wrote:
> FWIW, I'm running Jess 7.0a4, Eclipse 3.0.1 on Windows XP Pro.
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> On Behalf Of [EMAIL PROTECTED]
> Sent: Wednesday, January 19, 2005 2:29 PM
> To: [email protected]
> Subject: Re: JESS: JessDE Editor Behavior
>
>
> I think Mitch Christensen wrote:
> >
> > Would it be possible to mimic the Eclipse Java editor's behavior
> > instead of, or as an option/alternative to the current behavior?
> >
>
> Hmmm. It *is* supposed to mimic the Java editor's behavior, actually,
> and it works that way for me. Anybody else?
>
> ---------------------------------------------------------
> Ernest Friedman-Hill
> Advanced Software Research Phone: (925) 294-2154
> Sandia National Labs FAX: (925) 294-2234
> PO Box 969, MS 9012 [EMAIL PROTECTED]
> Livermore, CA 94550 http://herzberg.ca.sandia.gov
>
> --------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users
> [EMAIL PROTECTED]' in the BODY of a message to [EMAIL PROTECTED], NOT
> to the list (use your own address!) List problems? Notify
> [EMAIL PROTECTED]
> --------------------------------------------------------------------
>
> --------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users
> [EMAIL PROTECTED]' in the BODY of a message to [EMAIL PROTECTED], NOT
> to the list (use your own address!) List problems? Notify
> [EMAIL PROTECTED]
> --------------------------------------------------------------------
>
---------------------------------------------------------
Ernest Friedman-Hill
Advanced Software Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://herzberg.ca.sandia.gov
--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list (use
your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------
--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------