all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: apply start-process fails because of invalid current directory
Date: Wed, 31 Jul 2013 10:47:24 -0400	[thread overview]
Message-ID: <jwvr4eepz4a.fsf-monnier+gmane.emacs.help@gnu.org> (raw)
In-Reply-To: 86zjt3p3x6.fsf@free.fr

> From time to time i encounter problems with commands running
> start-process for ex. eimp-start-process. Trace follows:

> --8<---------------cut here---------------start------------->8---
> Debugger entered--Lisp error: (file-error "Setting current directory"
>   "no such file or directory" "y:/")

That's a common problem: start-process runs an external process and for
that it needs to decide what the "current working directory" of that
process should be.  Elisp says that this should be the directory
specified by `default-directory'.

If your process doesn't use the current directory, then the Elisp code
that runs it should explicitly rebind `default-directory' to some "safe"
choice (e.g. (expand-file-name "~/")) around the call to start-process.


        Stefan




  parent reply	other threads:[~2013-07-31 14:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-31  7:46 apply start-process fails because of invalid current directory Pascal Quesseveur
2013-07-31 10:38 ` Juanma Barranquero
2013-07-31 12:37   ` Pascal Quesseveur
2013-07-31 14:10     ` Juanma Barranquero
2013-07-31 13:05 ` Pascal Quesseveur
2013-07-31 14:42   ` Juanma Barranquero
2013-07-31 15:18     ` Pascal Quesseveur
2013-07-31 15:21       ` Juanma Barranquero
2013-07-31 14:47 ` Stefan Monnier [this message]
     [not found] ` <mailman.2237.1375282221.12400.help-gnu-emacs@gnu.org>
2013-07-31 15:25   ` Pascal Quesseveur
2013-07-31 18:19     ` Stefan Monnier
     [not found]     ` <mailman.2253.1375306429.12400.help-gnu-emacs@gnu.org>
2013-08-01  6:22       ` Pascal Quesseveur

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=jwvr4eepz4a.fsf-monnier+gmane.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=help-gnu-emacs@gnu.org \
    /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.