[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C-x t N
From: |
Eli Zaretskii |
Subject: |
Re: C-x t N |
Date: |
Thu, 09 Sep 2021 14:51:51 +0300 |
> From: Juri Linkov <juri@linkov.net>
> Cc: Andreas Schwab <schwab@linux-m68k.org>, emacs-devel@gnu.org
> Date: Thu, 09 Sep 2021 10:57:09 +0300
>
> >> > Here's the problem: if index = 1 means "the first tab", then -1 which
> >> > "counts from the end" is not the last one, it's one before that.
> >>
> >> If indexes are one-based, then -1 is the last.
> >
> > It's the last existing one, but we are adding one more. And adding a
> > tab at index IDX means all those at IDX and after it move to the right
> > to free a slot for the new one. But that's not what we do with tabs
> > in this case.
>
> -1 defines the position that the moved tab will have after moving.
And that is the problem, see above.
I get it that you are unconvinced, and will stop arguing, but I still
think this is not a good semantics, if my opinion on these matters
means anything to you.