[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: |
Mon, 06 Sep 2021 20:27:45 +0300 |
> From: Andreas Schwab <schwab@linux-m68k.org>
> Cc: Juri Linkov <juri@linkov.net>, emacs-devel@gnu.org
> Date: Mon, 06 Sep 2021 18:41:52 +0200
>
> On Sep 06 2021, Eli Zaretskii wrote:
>
> > 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.