all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: Tan <ztancs@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: ESS/Matlab Path in Cocoa Emacs
Date: Sat, 16 Jun 2012 11:52:43 +0200	[thread overview]
Message-ID: <F5E099B6-4F3A-473D-9887-0926B5F89789@Web.DE> (raw)
In-Reply-To: <loom.20120616T043334-851@post.gmane.org>


Am 16.06.2012 um 04:42 schrieb Tan:

> (setenv "PATH" (concat "/Applications/MATLAB_R2012a.app/bin/matlab" ":" (getenv
> "PATH")))
> 
> Emacs still shows the "no such file or directory" error message.
> 

Try to use the above statement, a bit altered:

	(setenv "PATH" (concat "/Applications/MATLAB_R2012a.app/bin" ":" (getenv "PATH")))

(I presume the "matlab" file in the "/Applications/MATLAB_R2012a.app/bin" directory is already the executable, so it may not appear in PATH because then the matlab executable would be searched for in the not existing *directory* /Applications/MATLAB_R2012a.app/bin/matlab), maybe plus the following one:

	(setq exec-path (split-string (getenv "PATH") path-separator))

The variable exec-path is responsible for supplying sub-processes in GNU Emacs with a search path for executables. You can also customise this variable, but would need to edit it when it changes when Matlab gets updated – just as with the "(setenv "PATH" ...)" statement.

--
Greetings

  Pete

Almost anything is easier to get into than out of.
				– Allen's Law




      reply	other threads:[~2012-06-16  9:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-24 19:52 ESS/Matlab Path in Cocoa Emacs Harold Pimentel
2010-12-24 20:23 ` Peter Dyballa
2010-12-25  9:46   ` Harold Pimentel
2010-12-25 10:32     ` Peter Dyballa
     [not found]     ` <mailman.18.1293273225.14161.help-gnu-emacs@gnu.org>
2010-12-28  2:40       ` Stefan Monnier
2010-12-28  9:43         ` Peter Dyballa
2010-12-28 14:22           ` Stefan Monnier
2010-12-28 17:24             ` Peter Dyballa
     [not found]           ` <mailman.3.1293546151.18545.help-gnu-emacs@gnu.org>
2010-12-29  0:08             ` Tim X
2012-06-16  2:42   ` Tan
2012-06-16  9:52     ` Peter Dyballa [this message]

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=F5E099B6-4F3A-473D-9887-0926B5F89789@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=ztancs@gmail.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.