From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#69993: Wrap window buffers while cycling Date: Fri, 05 Apr 2024 09:45:46 +0300 Organization: LINKOV.NET Message-ID: <861q7k8gms.fsf@mail.linkov.net> References: <86h6gug41x.fsf@mail.linkov.net> <3419df35-1b96-4a64-8ed7-722a05c58742@gmx.at> <86le66ckhj.fsf@mail.linkov.net> <86h6gs2lk7.fsf@mail.linkov.net> <5c71ea64-0f97-4b90-af61-1156fe33f1ea@gmx.at> <86cyreu78w.fsf@mail.linkov.net> <463c9242-56ef-4c99-9fe6-4b70be2071b2@gmx.at> <86sf0abeg3.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16210"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 69993@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 05 08:50:18 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 1rsdOz-00043v-G4 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 Apr 2024 08:50:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rsdOl-0006BY-Os; Fri, 05 Apr 2024 02:50:03 -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 1rsdOf-0006Az-HV for bug-gnu-emacs@gnu.org; Fri, 05 Apr 2024 02:49:59 -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 1rsdOf-00078v-7w for bug-gnu-emacs@gnu.org; Fri, 05 Apr 2024 02:49:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rsdOk-0003WR-JW for bug-gnu-emacs@gnu.org; Fri, 05 Apr 2024 02:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 Apr 2024 06:50: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.171229977613415 (code B ref 69993); Fri, 05 Apr 2024 06:50:02 +0000 Original-Received: (at 69993) by debbugs.gnu.org; 5 Apr 2024 06:49:36 +0000 Original-Received: from localhost ([127.0.0.1]:35125 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rsdOK-0003UJ-7r for submit@debbugs.gnu.org; Fri, 05 Apr 2024 02:49:36 -0400 Original-Received: from relay1-d.mail.gandi.net ([2001:4b98:dc4:8::221]:48101) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rsdOF-0003TR-52 for 69993@debbugs.gnu.org; Fri, 05 Apr 2024 02:49:34 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 169D1240005; Fri, 5 Apr 2024 06:49:17 +0000 (UTC) In-Reply-To: <1e50bd70-8cbb-46f9-9078-dd0e6226da63@gmx.at> (martin rudalics's message of "Thu, 4 Apr 2024 10:03:28 +0200") X-GND-Sasl: juri@linkov.net 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:282691 Archived-At: >>> (defcustom switch-to-prev-buffer-wrap nil >> >> The only problem is that this doesn't mention wrapping. > > Isn't the paragraph starting with "If this is t, ..." enough? No, because this feature is about wrapping buffers visible on the tab-line. >>> But I still think that the '-wrap' postfix creates a misnomer. The >>> primary intention of this option is to restrict the set of candidate >>> buffers ... >> >> The real misnomer is 'tab-line-switch-cycling'. >> It should be renamed 'tab-line-switch-wrap'. > > For me "cycling" and "wrapping" stand for the same effect. The major > difference is that when the above option is made non-nil, the set of > candidate buffers changes. OTOH, when it's nil, Emacs wraps/cycles > while when it's 'stop' it doesn't. That's confusing. Ok, since this feature is intended for the users of the tab-line, who intuitively understand what it's doing, so it's not confusing for them, here is what I'm going to do: I'll rebind 'C-x C-left' and 'C-x C-right' in 'tab-line-mode' and will use tab-line functions to implement wrapping of visible tabs/buffers. Basically this means just adding a new map: (defvar-keymap tab-line-mode-map "C-x " #'tab-line-switch-to-prev-tab "C-x C-" #'tab-line-switch-to-prev-tab "C-x " #'tab-line-switch-to-next-tab "C-x C-" #'tab-line-switch-to-next-tab) So no problem, tab-line.el is the right place since later I could also implement drag'n'drop of tabs to allow manually changing the order of buffers in the window buffers list.