unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* 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
* Introducing thread-safe Tramp
@ 2018-07-23 15:58 Michael Albinus
  2018-07-27 19:42 ` Michael Albinus
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Albinus @ 2018-07-23 15:58 UTC (permalink / raw)
  To: emacs-devel; +Cc: Dmitry Gutov

Hi,

I have created a new branch feature/tramp-thread-safe. The major change
is making Tramp thread-safe, that means, several basic file operations
can run concurrently now.

Being a library, Tramp does not create new threads on its own. This must
be performed by the callers.

I have changed the `find-file' family of commands to raise their
underlying file operations asynchronously if indicated. Every visiting
of a file happens in its own thread then. If wildcards are used, one
thread per involved file is created.

In order to enable this, the respective command must be called with a
prefix argument, like "C-u C-x C-f ...".  Emacs will remain responsive,
you can continue with whatever operation. This will be best seen with
remote files, because they need more time to load into a buffer. Emacs
is not as responsive yet as I hoped to achieve; further optimization is
needed.

As second change, I have modified `vc-refresh-state' to run always in
its own thread. This is because I have observed, that for git
repositories, loading a remote file is often much faster than the
following update of its state in the modeline. For the time being this
behaviour is hard-coded, I haven't seen any drawback for this even for
local files. But we could trigger it also via a user option.

@Dmitry?

Please give it as much testing as possible. I cannot promise Emacs won't
crash ever with these changes, so it is not time for production
systems. But all bug reports and feedbacks will help to improve this new
feature.

And, if there are not too serious complaints, I will merge it into
master after a while :-) You are warned!

Best regards, Michael.



^ 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 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).