emacs-devel
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]