ArchiveOrangemail archive

Users list for the GNU Emacs text editor


help-gnu-emacs.gnu.org
(List home) (Recent threads) (394 other GNU lists)

Subscription Options

  • RSS or Atom: Read-only subscription using a browser or aggregator. This is the recommended way if you don't need to send messages to the list. You can learn more about feed syndication and clients here.
  • Conventional: All messages are delivered to your mail address, and you can reply. To subscribe, send an email to the list's subscribe address with "subscribe" in the subject line, or visit the list's homepage here.
  • Moderate traffic list: up to 30 messages per day
  • This list contains about 26,940 messages, beginning Mar 2010
  • 45 messages added yesterday
Report the Spam
This button sends a spam report to the moderator. Please use it sparingly. For other removal requests, read this.
Are you sure? yes no

Timeout for reading file across network

Ad
Ali Pang 1283436438Thu, 02 Sep 2010 14:07:18 +0000 (UTC)
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?
PJ Weisberg 1283519147Fri, 03 Sep 2010 13:05:47 +0000 (UTC)
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  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-fil...
> Sent from the Emacs - Help mailing list archive at Nabble.com.
>
>
>
Home | About | Privacy