[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] New tab-bar-detach-tab command
From: |
Adam Porter |
Subject: |
Re: [PATCH] New tab-bar-detach-tab command |
Date: |
Wed, 6 Oct 2021 06:23:59 -0500 |
On Tue, Oct 5, 2021 at 12:01 PM Juri Linkov <juri@linkov.net> wrote:
>
> >> The command was named "duplicate" because web browsers
> >> provide the menu item "Duplicate tab".
> >
> > Of course, that makes sense. But since "clone" seems to already be a
> > term used in Emacs for this sort of thing, maybe we should consider
> > using it, instead.
>
> Maybe there is no problem when the command name will contain the word
> "clone", but its menu item will be like in web browsers:
>
> `(menu-item "Duplicate" (lambda () (interactive)
> (tab-bar-clone-tab
I'd vote for naming the menu item to match the command, but I don't
feel strongly about it. Maybe the menu could be seen as a place to
use terms more common in other software, in which case the disparity
would make sense.
> And wouldn't it be too error-prone when the name 'tab-bar-clone-tab'
> will differ only by one letter from another name 'tab-bar-close-tab'?
Seems okay to me. It's probably not the only case in which two
commands' names differ by a letter.
> > For example, `clone-buffer' and `clone-process' both
> > "Create a twin copy of...".
>
> 'tab-duplicate' is bound to 'C-x t n' and not to 'C-x t c' because
> 'clone-buffer' is bound to 'C-x x n' and not 'C-x x c'.
Hm, "C-x x c" is unbound by default, so I'd vote for moving
`clone-buffer' to it. :) But, again, I don't feel strongly about
this, as these aren't commands I use often.
- Re: [PATCH] New tab-bar-detach-tab command, Juri Linkov, 2021/10/03
- Re: [PATCH] New tab-bar-detach-tab command, Adam Porter, 2021/10/04
- Re: [PATCH] New tab-bar-detach-tab command, Juri Linkov, 2021/10/04
- Re: [PATCH] New tab-bar-detach-tab command, Adam Porter, 2021/10/04
- Re: [PATCH] New tab-bar-detach-tab command, Juri Linkov, 2021/10/05
- Re: [PATCH] New tab-bar-detach-tab command, Adam Porter, 2021/10/05
- RE: [External] : Re: [PATCH] New tab-bar-detach-tab command, Drew Adams, 2021/10/05
- Re: [PATCH] New tab-bar-detach-tab command, Juri Linkov, 2021/10/05
- Re: [PATCH] New tab-bar-detach-tab command,
Adam Porter <=
- Re: [PATCH] New tab-bar-detach-tab command, Juri Linkov, 2021/10/06
- Re: [PATCH] New tab-bar-detach-tab command, Juri Linkov, 2021/10/07
- RE: [External] : Re: [PATCH] New tab-bar-detach-tab command, Drew Adams, 2021/10/07
- RE: [External] : Re: [PATCH] New tab-bar-detach-tab command, Drew Adams, 2021/10/05
- Re: [External] : Re: [PATCH] New tab-bar-detach-tab command, Juri Linkov, 2021/10/05
- RE: [External] : Re: [PATCH] New tab-bar-detach-tab command, Drew Adams, 2021/10/05
- Re: [PATCH] New tab-bar-detach-tab command, Juri Linkov, 2021/10/06
- RE: [External] : Re: [PATCH] New tab-bar-detach-tab command, Drew Adams, 2021/10/06
- Re: [External] : Re: [PATCH] New tab-bar-detach-tab command, Juri Linkov, 2021/10/07
- Re: [External] : Re: [PATCH] New tab-bar-detach-tab command, Eli Zaretskii, 2021/10/07