all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: Problem with portable dumper
Date: Sun, 16 Feb 2020 17:24:17 +0200	[thread overview]
Message-ID: <83sgjamu72.fsf@gnu.org> (raw)
In-Reply-To: <8736baygu5.fsf@gmx.de> (message from Michael Albinus on Sun, 16 Feb 2020 11:19:46 +0100)

> From: Michael Albinus <michael.albinus@gmx.de>
> Date: Sun, 16 Feb 2020 11:19:46 +0100
> Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >> The changes in files.el and vc-hooks.el are not related to Tramp. I have
> >> changed the find-file* family of functions as well as vc-refresh-state
> >> to run asynchronously if indicated. Tramp just profits from it.
> >
> > Why can't you make the mutex nil before dumping and restore it at
> > startup?
> 
> That works, thanks!

I'm glad my idea worked.

Btw, on a more general note: I presume that your code has a way to
disable threading in file I/O.  (If it doesn't, it should IMO, for
debugging purposes and also for situations where threading cannot be
allowed for some other reasons.)  Then you could simply arrange for
threading to be disabled during dumping, and enable it in startup.el
when Emacs starts normally.  And when threading is disabled, there
should be no need to have any mutex variables.



  reply	other threads:[~2020-02-16 15:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-15 18:45 Problem with portable dumper Michael Albinus
2020-02-15 19:20 ` Eli Zaretskii
2020-02-15 20:33   ` Michael Albinus
2020-02-15 20:42     ` Stefan Monnier
2020-02-15 20:58       ` Michael Albinus
2020-02-15 21:03         ` Stefan Monnier
2020-02-16  3:28         ` Eli Zaretskii
2020-02-16 10:19           ` Michael Albinus
2020-02-16 15:24             ` Eli Zaretskii [this message]
2020-02-16 16:56               ` Michael Albinus

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83sgjamu72.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=michael.albinus@gmx.de \
    --cc=monnier@iro.umontreal.ca \
    /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 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.