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 14:19:11 -0400	[thread overview]
Message-ID: <jwvhafaoaqx.fsf-monnier+gmane.emacs.help@gnu.org> (raw)
In-Reply-To: 86ehaepx9d.fsf@free.fr

> When problem occured I looked at default-directory and if I'm not
> mistaken it was not set to y:/

Maybe you looked in a different buffer: each buffer has its own notion
of default-directory.

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

> Is that not what is supposed to do start-process?

It could, but that would be risky, if you do (start-process "rm -rf
foo") and Emacs decides "oh I can't find the current directory, let's
run this from $HOME instead".
So you have to do it by hand, explicitly.


        Stefan




  reply	other threads:[~2013-07-31 18:19 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
     [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 [this message]
     [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=jwvhafaoaqx.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.