From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#69993: Wrap window buffers while cycling Date: Thu, 11 Apr 2024 11:18:12 +0200 Message-ID: <28a8149b-283a-4b08-9df5-f1139a0fccbe@gmx.at> References: <86h6gug41x.fsf@mail.linkov.net> <86v855ggkv.fsf@mail.linkov.net> <91327e7b-d0a5-4f3a-a1f8-218d118608d6@gmx.at> <86sf07bnl4.fsf@mail.linkov.net> <86v850jmmo.fsf@mail.linkov.net> <0d2fdebf-2149-4f92-89b8-45a8b6a7d272@gmx.at> <86plv8hz2v.fsf@mail.linkov.net> <8a131d8b-1330-4d82-92f6-309f499e9c15@gmx.at> <86h6gi49zw.fsf@mail.linkov.net> <1e50bd70-8cbb-46f9-9078-dd0e6226da63@gmx.at> <861q7k8gms.fsf@mail.linkov.net> <2d3f0d14-e39b-4399-be30-03f11725c505@gmx.at> <86ttkf6a8r.fsf@mail.linkov.net> <86jzlajpqq.fsf@mail.linkov.net> <85109880-3370-47e0-b7c9-6c5a32cfaafa@gmx.at> <86le5nhwqy.fsf@mail.linkov.net> <864jcajzxi.fsf@mail.linkov.net> <86o7ahglre.fsf@mail.linkov.net> Reply-To: martin rudalics Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36543"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 69993@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 11 11:19:05 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1ruqaF-0009H2-HB for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Apr 2024 11:19:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ruqa7-0000yZ-1p; Thu, 11 Apr 2024 05:18:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ruqa5-0000yN-FW for bug-gnu-emacs@gnu.org; Thu, 11 Apr 2024 05:18:53 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ruqa5-0006l4-7C for bug-gnu-emacs@gnu.org; Thu, 11 Apr 2024 05:18:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ruqaE-0000qW-AQ for bug-gnu-emacs@gnu.org; Thu, 11 Apr 2024 05:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Apr 2024 09:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69993 X-GNU-PR-Package: emacs Original-Received: via spool by 69993-submit@debbugs.gnu.org id=B69993.17128271133074 (code B ref 69993); Thu, 11 Apr 2024 09:19:02 +0000 Original-Received: (at 69993) by debbugs.gnu.org; 11 Apr 2024 09:18:33 +0000 Original-Received: from localhost ([127.0.0.1]:54948 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruqZk-0000nP-GP for submit@debbugs.gnu.org; Thu, 11 Apr 2024 05:18:33 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:54645) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruqZi-0000mU-DT for 69993@debbugs.gnu.org; Thu, 11 Apr 2024 05:18:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1712827095; x=1713431895; i=rudalics@gmx.at; bh=7ynXX73L+GQ8r9wJgpjM5pFrgKB9ALD31UMaa75ZJVA=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=UJgJETKNY5XQlIovfcwHzYlXWA3881gtK6glcXJgOH0GQRwXFhlFKmhH7uEY9IeP bd1CKUz49wm4Ze8q8wAREI5JbsSMm8+9V/+C/RqB/yN8n5YLxYi0I8KkaZTHObw5E ucWaHBfhHzSbgRMhjc24595j0RLImJEkV5A/6HzKG3cOnEPcjsyNLNQPFDhW5l70E rFDSycdhmiDKfaHNtun+pRlkyGUnQV96zYatm0HdgOt2EpwQkfMJcR56kn1tnQo2S 2XlhNcGXNtyOu0nRzjk3GBTeKakHjtG87HotSJRpItTiWQWbLfYeC1w+FCaY4nutu deS4F7tfncZ9s6reUA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.31.113] ([213.142.96.248]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MeCpb-1sRz851i7j-00bKLi; Thu, 11 Apr 2024 11:18:15 +0200 Content-Language: en-US In-Reply-To: <86o7ahglre.fsf@mail.linkov.net> X-Provags-ID: V03:K1:qbt6hlmEx9zUt/8lVBM89cXU0ng7kSVVxV0Jv7V6MqG8ryxLhZc t7ZXS1ipnGweOH5QWUJb3meySI3LVU4C/dIgkJGgjv5cSj0Hy9SeoxcQSm96O5kBxGaCZDZ u3pP8TSJ0mVFoKldL7oz3ZiVwXnscjKJ4jgxMm9qkGPp7iASP5i/fCdeBybymwVmIsNa7BP Hqs1LEQbxur/wbYZMyi1w== UI-OutboundReport: notjunk:1;M01:P0:q7XONXziItE=;n1l1WUlRibuRr9klSNfXkzug5FN 03aCrwc8gQTRONbJBa0ammmICTP9AwIu241S7ClXxRhg7OFysQ15PyMm2FsFo7PgcDIZFqas9 8YgIZ6aIayIgxA+vJrvPGZwhwWHhO+QB3Z4dimSR5bA/JUc5HmvKJYCxjV4QmAE5GyOnQE3uK li3m00y/ugEW/4GBZVADfkSU/V+oGX+QHGxqiaGqxEHahhp7insVpVE/sFmeR1WBKn+XulZxj vLDFHB1ZiOL/BRdQKISqZnW2LJbShsWQ+9iUBOVZVVGxhndmSxSNamNE6xbTUb7+QOZnqeLPE jOaJLxZya0W0HtelD9tGBbxthcTGceoJ5Du0y5i/wGffyDxXXyU5E0ZUNJ71Vo477GWr89zJz 0Fd/Cro7PZgSVSLmlvTgI0g9S+uQqpFfTNWTNoYxg/K2VrdlGx/pI5H28VqSSUhH4Us9qMV4K CsNfV5W/O2d2aHRKMpwqEVd44roKUSR3pI0XJeZdP+Vgfv/t8xAfuDuq2w5sCr88I2LW16ZKc uYgB9cWXXEpKP2NaGQAW6heYA5ZVSfb32TxNA3O8kZ/q1DQjGhp3jPLyCL1zI30GZxG34m8aq Mz+sIP0NZsYNL+Ixsjtgy4OOlMCvRqY4xbMUr1OLXwl4MzsUFH7HsUFGmMQ8gn8WBRJujnG5I NoIDyz6+uWdBPc9XgBL7gItJDWYc/dE0i66sIP8gTb8ME9v3jR6+5sBzgsevcHhNO5zfdxDIK yM22vCPRh8rF8oX1fg5HDN6Uy6/IsqAhAyva2tPOz5Br5LQynpQ4C0TDUlLYg7qZrap9EwQ6 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:283089 Archived-At: >> Suppose I'm at the first element of a tab list. With wrapping/cycling >> 'switch-to-prev-buffer' will select some buffer and that buffer will be >> shown as current in the tab list. > > The selected buffer will be the first element of a tab list, not the last > as wrapping should do. So currently 'switch-to-prev-buffer' doesn't do > wrapping. Before 'switch-to-prev-buffer' the leftmost tab is selected, > and after 'switch-to-prev-buffer' the leftmost tab will remain selected. > Whereas the proper wrapping should select the rightmost tab/buffer. I meant 'switch-to-prev-buffer' which must be allowed to switch to the previous buffer it finds and that could be _any_ buffer on the tab line and, without "restricting", a buffer that is not even on the tab line. >> Since 'tab-line-switch-to-prev-tab' restricts by default, it will >> always select the last buffer on the tab list. What am I missing? > > Unfortunately 'tab-line-switch-to-prev-tab' doesn't restrict by default. I thought we agreed that it should do so with an appropriate binding. > This is a big problem for users that needs to be fixed. Therefore > the wrapping option was proposed either for 'switch-to-prev-buffer' > or for 'tab-line-switch-to-prev-tab'. Once it uses the binding it can either wrap or not. I see no problem here. > By default the tab-line uses the order of window prev/next buffers. > So maybe it would be easier to keep the order in tab-line.el. But this would mean to change the ordering of elements on the tab line whenever C-x b switches to a buffer already present on the tab line. >> The order of tabs is one thing, that of buffers on the buffer list >> another and that of buffers to be visited by 'switch-to-prev-buffer' and >> 'switch-to-next-buffer' a third one. > > Currently the first thing is the same as the third thing, > and this works fine. IIUC it isn't, given the C-x b example. martin