unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: Juri Linkov <juri@linkov.net>
Cc: emacs-devel@gnu.org
Subject: Re: emacs-28 d9b0b73 1/2: * doc/emacs/frames.texi (Tab Bars): Describe tab-last.
Date: Mon, 15 Nov 2021 18:44:41 +0100	[thread overview]
Message-ID: <87h7cdnwja.fsf@gmail.com> (raw)
In-Reply-To: <86czn1cqrs.fsf@mail.linkov.net> (Juri Linkov's message of "Mon,  15 Nov 2021 19:20:39 +0200")

>>>>> On Mon, 15 Nov 2021 19:20:39 +0200, Juri Linkov <juri@linkov.net> said:

    >>> *** New optional key binding for 'tab-last'.
    >>> If you customize the user option 'tab-bar-select-tab-modifiers' to
    >>> allow selecting tabs using their index numbers, the '<MODIFIER>-9' key
    >>> is bound to 'tab-last', and switches to the last tab.  Here <MODIFIER>
    >>> is any of the modifiers in the list that is the value of
    >>> +'tab-bar-select-tab-modifiers'.  You can also use positive indices,
    >>> +which count from the last tab: 1 is the last tab, 2 the one before
    >>> that, etc.
    >> 
    >> Hi Juri, this contradicts what the docstring for
    >> `tab-bar-select-tab-modifiers' says about indices.

    Juri> Please try to type 'C-u 2 <MODIFIER>-9'.
    Juri> It selects the tab before the last tab.
    Juri> Maybe 'C-u -2 <MODIFIER>-9' should do the same?
    Juri> E.g. by using '(abs)' on the argument?

Hmm, ok. I got confused by the 'tab-bar-select-tab-modifiers'
docstring, which says

    List of modifier keys for selecting tab-bar tabs by their numbers.
    Possible modifier keys are `control', `meta', `shift', `hyper', `super' and
    `alt'.  Pressing one of the modifiers in the list and a digit selects
    the tab whose number equals the digit.  Negative numbers count from
    the end of the tab bar.  The digit 9 selects the last (rightmost) tab.
    For easier selection of tabs by their numbers, consider customizing
    `tab-bar-tab-hints', which will show tab numbers alongside the tab name.

Perhaps the option of doing C-u <digit> <MODIFIER>-9 should be
mentioned there as well?

Robert
-- 



  reply	other threads:[~2021-11-15 17:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20211107180130.21860.30228@vcs0.savannah.gnu.org>
     [not found] ` <20211107180132.53DC620536@vcs0.savannah.gnu.org>
2021-11-15 14:45   ` emacs-28 d9b0b73 1/2: * doc/emacs/frames.texi (Tab Bars): Describe tab-last Robert Pluim
2021-11-15 17:20     ` Juri Linkov
2021-11-15 17:44       ` Robert Pluim [this message]
2021-11-15 18:11         ` Juri Linkov

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=87h7cdnwja.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=juri@linkov.net \
    /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).