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: Thu, 09 Sep 2021 14:51:51 +0300 Message-ID: <834kaukluw.fsf@gnu.org> References: <83k0jurtj5.fsf@gnu.org> <87lf49j0ww.fsf@mail.linkov.net> <83v93dr909.fsf@gnu.org> <87bl55ejvz.fsf@igel.home> <83r1e1r4vi.fsf@gnu.org> <87sfye5joq.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23781"; mail-complaints-to="usenet@ciao.gmane.io" Cc: schwab@linux-m68k.org, emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 09 13:52:20 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 1mOIbM-0005w8-Ij for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Sep 2021 13:52:20 +0200 Original-Received: from localhost ([::1]:51230 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOIbK-0003w8-RT for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Sep 2021 07:52:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46272) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOIaj-0003Gw-RT for emacs-devel@gnu.org; Thu, 09 Sep 2021 07:51:41 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54892) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOIai-0003Dg-Si; Thu, 09 Sep 2021 07:51:40 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4745 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 1mOIai-0005Y0-FU; Thu, 09 Sep 2021 07:51:40 -0400 In-Reply-To: <87sfye5joq.fsf@mail.linkov.net> (message from Juri Linkov on Thu, 09 Sep 2021 10:57:09 +0300) 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:274440 Archived-At: > From: Juri Linkov > Cc: Andreas Schwab , 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.