From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: pdflatex not found? Date: Wed, 28 Oct 2015 13:40:31 +0100 Message-ID: References: <6sw6c7bnbke8ah.fsf@pfdstudio.com> <562F826B.1080802@gmail.com> <871tcg7272.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41980) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrQ1t-00052s-1e for emacs-orgmode@gnu.org; Wed, 28 Oct 2015 08:40:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrQ1o-0000rz-Fs for emacs-orgmode@gnu.org; Wed, 28 Oct 2015 08:40:36 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:1030) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrQ1o-0000rN-7B for emacs-orgmode@gnu.org; Wed, 28 Oct 2015 08:40:32 -0400 In-Reply-To: (Malcolm Cook's message of "Tue, 27 Oct 2015 16:06:27 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Cook, Malcolm" Cc: Nick Dokos , "emacs-orgmode@gnu.org" , John Kitchin --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2015-10-27 17:06, "Cook, Malcolm" writes: >>=20 > > John Kitchin writes: > >=20 > > > This reminds me that I think I have this problem unless I open Emacs= from a > > > command line. > >=20 > > Yup - this is one way of circumvent the problem: by starting emacs from > > the command line. > > And, just to chime in late in the conversation, if your emacs was install= ed as > an mac application using, say, http://emacsformacosx.com/ then you can st= art > it from the command line as: > > open -a /Applications/path/to/emacs > > and get the environment variables you expect... An alternative, that seems to be cross platform, is to populate variables when emacs start. This is what I do here: #+begin_src emacs-lisp ;; **** fetch env variables from zshrc (let ((vars (split-string-and-unquote (shell-command-to-string ". ~/.zshrc;= export") "\n"))) (mapcar (lambda (X) (let ((var_val (split-string-and-unquote X "=3D"))) (setenv (car var_val) (cadr var_val)))) vars) (setq exec-path=20 (append (split-string-and-unquote (getenv "PATH") ":") exec-path))) #+end_src Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 Athmospheric CO=E2=82=82 (Updated October 26, 2015, Mauna Loa Obs.): 398.51= ppm --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBCgAGBQJWMMI/AAoJEAQNCjtO0uXHyJEIAKNIT5k9ksBwOWFDNs6sla+i AC8qSGDl4cBsmxQuyBg+rDCiZ523xEpVp6VJSPWdVpPa9tt9V7mV1sEaVIa6JERq O1cuWsL4Jezp7YdKyhm0MxyKBX6ayVMr1cncBwOTIOYnm5h3stw+3PtgC3eL0VhO LPCGEFP43jfPDdoXxF6iTcHhCcS6qC6TSqCirsYs0cchmyuj/N9r5qQcBKa7yHnW GnDfnvfC5A/T72SITn/dGxUMLaCHwhtPd9yzsq9X0yXSVjZ7leIsYGazVemmGIhQ OxNYw/lzXG+XUd/ObJ51GWwvP09iVoAUwzsIEf/mXB4niXRJsSWC3vCU/vYEwN4= =YAH9 -----END PGP SIGNATURE----- --=-=-=--