From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: C-x t N Date: Mon, 06 Sep 2021 20:27:45 +0300 Message-ID: <83r1e1r4vi.fsf@gnu.org> References: <83k0jurtj5.fsf@gnu.org> <87lf49j0ww.fsf@mail.linkov.net> <83v93dr909.fsf@gnu.org> <87bl55ejvz.fsf@igel.home> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32259"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, juri@linkov.net To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 06 19:28:41 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mNIQD-0008CC-14 for ged-emacs-devel@m.gmane-mx.org; Mon, 06 Sep 2021 19:28:41 +0200 Original-Received: from localhost ([::1]:44286 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNIQA-0006qo-Kg for ged-emacs-devel@m.gmane-mx.org; Mon, 06 Sep 2021 13:28:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52690) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNIPC-00062M-Ud for emacs-devel@gnu.org; Mon, 06 Sep 2021 13:27:38 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46962) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNIPC-0006OX-90; Mon, 06 Sep 2021 13:27:38 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4486 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNIPB-0006Yq-Qr; Mon, 06 Sep 2021 13:27:38 -0400 In-Reply-To: <87bl55ejvz.fsf@igel.home> (message from Andreas Schwab on Mon, 06 Sep 2021 18:41:52 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:274153 Archived-At: > From: Andreas Schwab > Cc: Juri Linkov , 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.