From: "Drew Adams" <drew.adams@oracle.com>
To: "Stephan Hennig" <mailing_list@arcor.de>, <help-gnu-emacs@gnu.org>
Subject: RE: accessing environment variable
Date: Mon, 10 Sep 2007 08:50:10 -0700 [thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICGEKLDPAA.drew.adams@oracle.com> (raw)
In-Reply-To: <46e54d74$0$30369$9b4e6d93@newsspool4.arcor-online.net>
> what is the preferred way to access an environment variable from within
> the .emacs file?
>
> > (getenv variable)
> > Get the value of environment variable variable.
> > variable should be a string.
>
> (getenv GS_PROG)
1. (getenv "GS_PROG")
See doc above: "Variable should be a string."
> (custom-set-variables '(ps-lpr-command "(getenv GS_PROG)")
2. ps-lpr-command expects a string that names a program. It does not expect
a Lisp sexp.
next prev parent reply other threads:[~2007-09-10 15:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-10 13:57 accessing environment variable Stephan Hennig
2007-09-10 15:50 ` Drew Adams [this message]
[not found] <mailman.640.1189439467.18990.help-gnu-emacs@gnu.org>
2007-09-10 16:54 ` Stephan Hennig
2007-09-10 22:10 ` Harald Hanche-Olsen
2007-09-14 9:46 ` Stephan Hennig
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=DNEMKBNJBGPAOPIJOOICGEKLDPAA.drew.adams@oracle.com \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=mailing_list@arcor.de \
/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.