unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Pankaj Jangid <pankaj.jangid@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Should tab-next cycle instead of stopping?
Date: Sun, 13 Oct 2019 00:53:04 +0300	[thread overview]
Message-ID: <87o8yl7hrz.fsf@mail.linkov.net> (raw)
In-Reply-To: <m2y2xskmqv.fsf@gmail.com> (Pankaj Jangid's message of "Fri, 11 Oct 2019 08:32:48 +0530")

>> If you have two tabs in the current frame, and you're in the first tab,
>> C-tab moves to the second tab. At that pointthe next C-tab appears to do
>> nothing, a subsequent C-tab moves to the first tab.
>>
>> Is that a bug or a feature?
>>
>> Would be nice if C-tab just treated the tabs in the current frame as a
>> ring that it cycles through ...
>
> I don't know if that is a feature or not but your email got me thinking.
>
> It would be a good idea if C-tab beeps at the last tab and a subsequent
> C-tab moves to the first tab. When there are lots of tabs open, this
> will give an indication that the user has reached the last tab.

IOW, should it be like isearch wrapping?  This has one problem:
when used with a numeric argument it stops at the end, e.g.
‘C-u 3 C-s’ doesn't jump to the third match from the beginning
of the buffer.  Instead, it stops at the end of the buffer and beeps.

Currently ‘C-u 3 C-TAB’ silently wraps to the next third tab
even from the beginning of the tab-bar with predictable outcome.

Signaling at the end of the tab-bar won't allow to visually calculate
and predict on what tab ‘C-u 3 C-TAB’ will arrive.

> And of course this is Emacs. This behaviour should be configurable.

Maybe configurable like multi-isearch-pause?

But before implementing this, I'd like to understand
if such overshooting is a real problem.  Isn't easy
in this case to go back with C-S-TAB?



  reply	other threads:[~2019-10-12 21:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-10 21:46 Should tab-next cycle instead of stopping? T.V Raman
2019-10-10 22:09 ` Juri Linkov
2019-10-11  3:02 ` Pankaj Jangid
2019-10-12 21:53   ` Juri Linkov [this message]
2019-10-13  1:50     ` T.V Raman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o8yl7hrz.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=emacs-devel@gnu.org \
    --cc=pankaj.jangid@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).