Freemat 4.0 editor adds random tabs (Ubuntu)

4 views
Skip to first unread message

Garystar

unread,
Nov 7, 2009, 11:28:34 AM11/7/09
to freemat
I'm using Freemat 4.0 under Ubuntu Karmic (ver 9.10). I've been
working on several, different scripts and functions using the Freemat
Editor. I've noticed an interesting... anomaly. When I'm changing
something inside of parentheses (not adding it for the first time),
the editor will begin tabbing the entire line. With each keystroke,
it adds a tab so that the entire line is moving to the right as I
type.

After a bit of sleuthing, I've figured out that this happens when I'm
typing inside of the parentheses and the cursor is next to the right-
most parenthese and that parenthese is underlined. In 4.0, when the
cursor is next to one of a complete set of parentheses, it puts an
underline under both of them.

Also, this appears to only happen with letters, not with numbers.

Here is one example where I try to add some letters and it adds a tab
(which is set to 4 spaces) for each letter:

while(error_diff>1e-5);

while(error_diff>1e-5k);

while(error_diff>1e-5kk);

Here's another example, but adding numbers, which doesn't have the
same effect:

while(error_diff>1e-5);

while(error_diff>1e-50);

while(error_diff>1e-500);

I hope this is enough information that someone else can check it out
and see if they have the same problem. Thanks!

Timothy Cyders

unread,
Nov 7, 2009, 12:12:56 PM11/7/09
to fre...@googlegroups.com
I see the exact same behavior in both Ubuntu/Windows.

TJ

Chuong

unread,
Nov 8, 2009, 12:27:11 AM11/8/09
to freemat
Hi Gary,

You indeed found an error in autoindent. Please file a bug report at
http://sourceforge.net/tracker/?atid=597446&group_id=91526&func=browse

Thanks,
Chuong

On Nov 8, 4:12 am, Timothy Cyders <t.cyd...@gmail.com> wrote:
> I see the exact same behavior in both Ubuntu/Windows.
>
> TJ
>

Garystar

unread,
Nov 8, 2009, 10:05:37 AM11/8/09
to freemat
Just filed it. Thanks, Chuong.

On Nov 8, 12:27 am, Chuong <chuongr...@gmail.com> wrote:
> Hi Gary,
>
> You indeed found an error in autoindent. Please file a bug report athttp://sourceforge.net/tracker/?atid=597446&group_id=91526&func=browse

Timothy Cyders

unread,
Nov 19, 2009, 8:34:38 AM11/19/09
to fre...@googlegroups.com
Another note, I've been working in the editor in Ubuntu, and notice that tab/shift+tab doesn't do anything. Autotab works fine (with the bug Gary came across), but I can't manually tab my text around. I'll see if it does this in Windows later. Any ideas?

TJ

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "freemat" group.
To post to this group, send email to fre...@googlegroups.com
To unsubscribe from this group, send email to freemat+u...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/freemat?hl=en
-~----------~----~----~----~------~----~------~--~---


Garystar

unread,
Nov 19, 2009, 10:17:02 AM11/19/09
to freemat
Tim,

Same problem in Windows (at least under XP). I'll let Samit or Chuong
decide if this needs a separate bug report.

Gary

Garystar

unread,
Nov 19, 2009, 10:20:25 AM11/19/09
to freemat
Ignore last. The bug has already been filed and Chuong's working on
it.

Gary
Reply all
Reply to author
Forward
0 new messages