[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Timeout for reading file across network
From: |
Stefan Monnier |
Subject: |
Re: Timeout for reading file across network |
Date: |
Wed, 08 Dec 2010 15:27:12 -0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> (if (with-timeout (4)
> (file-exists-p remote-.emacs))
> (load remote-.emacs))
Emacs is not too good at non-blocking operations, timeouts, or
threading. The only support for it is basically through asynchronous
processes. So your best bet is to call start-process to run a separate
program that will try and access the file.
You can then wait with a sleep-for (or with some with-timeout maybe).
Stefan
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Timeout for reading file across network,
Stefan Monnier <=