all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: PJ Weisberg <pj@irregularexpressions.net>
To: Ali Pang <ali_pang@hotmail.com>
Cc: Help-gnu-emacs@gnu.org
Subject: Re: Timeout for reading file across network
Date: Thu, 2 Sep 2010 17:56:53 -0700	[thread overview]
Message-ID: <AANLkTinQgYSw4V9E6rOGAqCitus+LkEs32SHwghDWNqw@mail.gmail.com> (raw)
In-Reply-To: <29604481.post@talk.nabble.com>

[-- Attachment #1: Type: text/plain, Size: 1017 bytes --]

I'm no Emacs expert, but from a quick look at the documentation for
with-timeout it looks like you should use:

(with-timeout (4)
     (load remote-.emacs))

What actually happens when you do that?  Nothing at all?  Waits longer than
four seconds?

On Thu, Sep 2, 2010 at 6:43 AM, Ali Pang <ali_pang@hotmail.com> wrote:

>
> Hi,
>
> I'd like to load my .emacs from a remote location if possible. The problem
> is I'm on windows, and the time-out before recognizing that the file is
> unavailable is ridiculously long (minutes). Thus if the file is
> unavailable,
> emacs blocks for a long time at startup. I've tried basically doing
>
> (if (with-timeout (4)
>      (file-exists-p remote-.emacs))
>  (load remote-.emacs))
>
> but I guess with-timeout does not do what I want. Any ideas about what I
> could use instead?
> --
> View this message in context:
> http://old.nabble.com/Timeout-for-reading-file-across-network-tp29604481p29604481.html
> Sent from the Emacs - Help mailing list archive at Nabble.com.
>
>
>

[-- Attachment #2: Type: text/html, Size: 1517 bytes --]

  reply	other threads:[~2010-09-03  0:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-02 13:43 Timeout for reading file across network Ali Pang
2010-09-03  0:56 ` PJ Weisberg [this message]
     [not found] <mailman.3.1283436363.15631.help-gnu-emacs@gnu.org>
2010-09-02 20:45 ` Stefan Monnier

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=AANLkTinQgYSw4V9E6rOGAqCitus+LkEs32SHwghDWNqw@mail.gmail.com \
    --to=pj@irregularexpressions.net \
    --cc=Help-gnu-emacs@gnu.org \
    --cc=ali_pang@hotmail.com \
    /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.