all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* C-x & (was: Introducing thread-safe Tramp)
  2018-08-06 14:55                                       ` Drew Adams
@ 2018-08-06 15:25                                         ` Michael Albinus
  2018-08-06 17:59                                           ` Drew Adams
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Albinus @ 2018-08-06 15:25 UTC (permalink / raw)
  To: Drew Adams; +Cc: Eli Zaretskii, fgunbin, emacs-devel

Drew Adams <drew.adams@oracle.com> writes:

Hi Drew,

>> This needs to be documented better in the Elisp manual, but first we
>> shall agree how to call this technique. "Prefix argument" is out of the
>> game. Maybe "prefix command"? Or "prefix sequence", as proposed in this
>> thread?
>
> As Richard suggested, don't call it anything. At least do not call it
> any of those things (it's not a command or a prefix key (sequence)).

I'm all for an agreement. But until now I hear only how to NOT call
it. I'd prefer to see a counter proposal.

And of course, "C-x &" invokes a command. This is equivalent to "M-x
universal-async-argument". So I don't see what's wrong with "prefix
command" - it is a command which precedes another command.

> We can, if you want, have a separate discussion, taking our time, to
> decide whether and what to name this.

Subject adapted.

Best regards, Michael.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* C-x & (was: Introducing thread-safe Tramp)
  2018-08-06 15:24                                       ` Introducing thread-safe Tramp Eli Zaretskii
@ 2018-08-06 15:29                                         ` Michael Albinus
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Albinus @ 2018-08-06 15:29 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: fgunbin, drew.adams, emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

>> This needs to be documented better in the Elisp manual, but first we
>> shall agree how to call this technique. "Prefix argument" is out of the
>> game. Maybe "prefix command"? Or "prefix sequence", as proposed in this
>> thread?
>
> My favorite so far is "prefix command".

So we are two - see my other message I've just sent, before reading your
message.

> Thanks.

Best regards, Michael.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: C-x & (was: Introducing thread-safe Tramp)
  2018-08-06 15:25                                         ` C-x & (was: Introducing thread-safe Tramp) Michael Albinus
@ 2018-08-06 17:59                                           ` Drew Adams
  0 siblings, 0 replies; 4+ messages in thread
From: Drew Adams @ 2018-08-06 17:59 UTC (permalink / raw)
  To: Michael Albinus; +Cc: Eli Zaretskii, fgunbin, emacs-devel

> And of course, "C-x &" invokes a command. 

Yes. But invoking a command is not being a command.

> This is equivalent to "M-x universal-async-argument". 

Presumably you mean that using key sequence `C-x &' is equivalent to using `M-x universal-async-argument'. That's another way of saying that `C-x &' invokes command `universal-async-argument'.

If you wanted to call command `universal-async-argument' a "prefix command" you could do so. But `C-x &' is not a prefix command or any other kind of command.

> So I don't see what's wrong with "prefix command" - it is a command which precedes another command.

Command `universal-async-argument', when invoked, precedes invocation of the command bound to the key sequence read by `universal-asyn-argument'. Yes.

And using `C-x &' precedes reading of that second key sequence. But neither of those things make `C-x &' into a command, prefix, postfix, or *fix.

> > We can, if you want, have a separate discussion, taking our time, to
> > decide whether and what to name this.
> 
> Subject adapted.

Thx.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* C-x & (was: Introducing thread-safe Tramp)
@ 2018-08-06 17:59 Drew Adams
  0 siblings, 0 replies; 4+ messages in thread
From: Drew Adams @ 2018-08-06 17:59 UTC (permalink / raw)
  To: Stefan Monnier, emacs-devel

> > As Richard suggested, don't call it anything. At least do not call it any of
> > those things (it's not a command or a prefix key (sequence)).
> 
> It's definitely a command and it is used before another, so "prefix
> command" sounds about right.

`C-x &' is definitely _not_ a command.

If you want to call the command it's bound to (by default) a "prefix command", that's a different story. But a key sequence is not a command. It might be bound to a command, but it's not a command.

And if a user replaces that key binding by a different one then the command continues to have the same behavior ("prefix command" behavior, if you like), but the key sequence no longer has that behavior.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-08-06 17:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-06 17:59 C-x & (was: Introducing thread-safe Tramp) Drew Adams
  -- strict thread matches above, loose matches on Subject: below --
2018-07-23 15:58 Introducing thread-safe Tramp Michael Albinus
2018-07-27 19:42 ` Michael Albinus
2018-07-28  9:48   ` Michael Albinus
2018-07-29 18:29     ` Drew Adams
2018-07-30  8:44       ` Michael Albinus
2018-07-30 14:23         ` Eli Zaretskii
2018-08-04 12:47           ` Michael Albinus
2018-08-04 12:49             ` Michael Albinus
2018-08-04 15:00               ` Eli Zaretskii
2018-08-04 15:12                 ` Michael Albinus
2018-08-04 15:43                   ` Eli Zaretskii
2018-08-04 15:58                     ` Michael Albinus
2018-08-04 16:11                       ` Eli Zaretskii
2018-08-04 16:18                         ` Michael Albinus
2018-08-04 16:58                           ` Eli Zaretskii
2018-08-04 17:29                             ` Michael Albinus
2018-08-04 18:34                               ` Eli Zaretskii
2018-08-05  9:51                                 ` Michael Albinus
2018-08-05 15:06                                   ` Eli Zaretskii
2018-08-06 10:54                                     ` Michael Albinus
2018-08-06 14:55                                       ` Drew Adams
2018-08-06 15:25                                         ` C-x & (was: Introducing thread-safe Tramp) Michael Albinus
2018-08-06 17:59                                           ` Drew Adams
2018-08-06 15:24                                       ` Introducing thread-safe Tramp Eli Zaretskii
2018-08-06 15:29                                         ` C-x & (was: Introducing thread-safe Tramp) Michael Albinus

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.