|
From: Shlomy R. <sre...@gm...> - 2010-10-15 20:02:12
|
Hi,
The second one is not a bug. The concept of elastic tabstops is that each
<tab> should be indented the same in the block of lines. If one line has two
tabs and the other has just one, they don't need to (or even shouldn't) be
aligned.
About the first one, I don't know if it's a bug or not. I think Anshal
should be able to say. It's the same rule as with the 2nd one - if you don't
use the same number of tabs in the various parts, you shouldn't expect them
to be aligned. Possibly the indentation of the padding line before removing
the tab from the other line was calculated according to the first line, and
now that the first line changes, the padding line also changed as it's no
longer a block of lines (wrt elastic tabstops).
Shlomy
On Fri, Oct 15, 2010 at 7:09 PM, Eric Berry <el...@gm...> wrote:
> I think I've experienced a bug, maybe 2.
>
> The first issue is, shift+tab really messes things up. The current line
> get's unindented, but if you keep doing it all lines of the similar indent
> start moving forward.
>
> Eg. If I start off with a piece of code like so:
> [code]
> * {
> margin: 0px;
> padding: 0px;
> }
> [/code]
>
> Then tab between the attributes and values I get:
> [code]
> * {
> margin: 0px;
> padding: 0px;
> }
> [/code]
>
> Cool, very clean. I think there is too much space, and it doesn't exactly
> go along with the documentation - but more on that later.
>
> Now, if I shift+tab on line 2 (the margin line), I get this:
> [code]
> * {
> margin: 0px;[cursor was here]
> padding: 0px;
> }
> [/code]
>
> As you can see, padding line got indented again, and the margin line got
> unindented. It get's worse the larger the code sample is. I think this is a
> bug, unindenting a line shouldn't affect it's context lines.
>
> The second issue has to do with the spacing, and the way multiple tabs
> works.
>
> Again, starting with this code sample:
> [code]
> * {
> margin: 0px;
> padding: 0px;
> }
> [/code]
>
> Adding tabs as expected:
> [code]
> * {
> margin: 0px;
> padding: 0px;
> }
> [/code]
>
> Good so far. However, now if I add another tab between margin and it's
> value, I expect for padding's value to line up, but the tab is only added to
> the margin line.
> Eg
> [code]
> * {
> margin: 0px;
> padding: 0px;
> }
> [/code]
>
> I'm thinking this one is just a my not understanding the nature of elastic
> tab stops, but that is the impression I get from the documentation.
>
> Is this correct?
>
> Thanks,
> Eric
>
>
> On Fri, Oct 15, 2010 at 7:25 AM, Matthieu Casanova <cho...@gm...
> > wrote:
>
>> Finally I found the problem :
>> It happens when using Minitabs plugin, but I don't know why exactly
>>
>> Matthieu
>>
>> On Fri, Oct 15, 2010 at 3:34 PM, Matthieu Casanova
>> <cho...@gm...> wrote:
>> > That's completely incredible, I'm at home with a fresh jEdit install
>> > and it works prefectly now, maybe a plugin made it crash at work, I
>> > have to investigate that, anyway the feature is very nice to use
>> >
>> > Matthieu
>> >
>> > On Fri, Oct 15, 2010 at 2:42 PM, Shlomy Reinstein <sre...@gm...>
>> wrote:
>> >> Hi,
>> >> Can you send the exceptions? I don't get any of this.
>> >> It can be slow if there's a long block with similar tabulation - but
>> that's
>> >> due to nature of this feature, I think. In most source files, the
>> blocks of
>> >> code that go together in this feature are not large.
>> >> Thanks,
>> >> Shlomy
>> >>
>> >> On Fri, Oct 15, 2010 at 12:02 PM, Matthieu Casanova <
>> cho...@gm...>
>> >> wrote:
>> >>>
>> >>> Hi, I tried the elastic tabstops feature, and it seems it is
>> completely
>> >>> broken :
>> >>>
>> >>> If I type <tab> means a tabulation
>> >>>
>> >>> a<tab>b\n
>> >>> c<tab>
>> >>>
>> >>> I get exceptions, this happens everytime. And in a big file it can
>> >>> become very very slow.
>> >>>
>> >>> Matthieu
>> >>>
>> >>>
>> >>>
>> ------------------------------------------------------------------------------
>> >>> Download new Adobe(R) Flash(R) Builder(TM) 4
>> >>> The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
>> >>> Flex(R) Builder(TM)) enable the development of rich applications that
>> run
>> >>> across multiple browsers and platforms. Download your free trials
>> today!
>> >>> http://p.sf.net/sfu/adobe-dev2dev
>> >>> --
>> >>> -----------------------------------------------
>> >>> jEdit Developers' List
>> >>> jEd...@li...
>> >>> https://lists.sourceforge.net/lists/listinfo/jedit-devel
>> >>
>> >>
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> Download new Adobe(R) Flash(R) Builder(TM) 4
>> The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
>> Flex(R) Builder(TM)) enable the development of rich applications that run
>> across multiple browsers and platforms. Download your free trials today!
>> http://p.sf.net/sfu/adobe-dev2dev
>> --
>> -----------------------------------------------
>> jEdit Developers' List
>> jEd...@li...
>> https://lists.sourceforge.net/lists/listinfo/jedit-devel
>>
>
>
>
> --
> Learn from the past. Live in the present. Plan for the future.
> Blog: http://www.townsfolkdesigns.com/blogs/elberry
> jEdit <http://www.jedit.org> - Programmer's Text Editor
> Bazaar <http://bazaar.canonical.com> - Version Control for Humans
>
|