all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: is it possible to pass shell variables to emacs?
Date: Sun, 09 Dec 2007 17:10:26 +1100	[thread overview]
Message-ID: <87aboks8j1.fsf@lion.rapttech.com.au> (raw)
In-Reply-To: 44a8858b-32d1-4b14-803f-4cded782b968@a39g2000pre.googlegroups.com

"stuart.tett@gmail.com" <stuart.tett@gmail.com> writes:

> Subject: is it possible to pass shell variables to emacs?
>
> is there any possible way to do this? I would like to avoid making
> them environment variables. I have a command-line script that when
> called, sets all of these variables. I would like to use these
> variables for example when finding a file.
>
> Maybe there's some custom code I could put in my .emacs file. or I
> could write a wrapper around emacs.

Yep, either way would work. 

,----[ C-h f setenv RET ]
| setenv is an interactive compiled Lisp function in `env.el'.
| (setenv VARIABLE &optional VALUE SUBSTITUTE-ENV-VARS)
| 
| Set the value of the environment variable named VARIABLE to VALUE.
| VARIABLE should be a string.  VALUE is optional; if not provided or
| nil, the environment variable VARIABLE will be removed.
| 
| Interactively, a prefix argument means to unset the variable.
| Interactively, the current value (if any) of the variable
| appears at the front of the history list when you type in the new value.
| Interactively, always replace environment variables in the new value.
| 
| SUBSTITUTE-ENV-VARS, if non-nil, means to substitute environment
| variables in VALUE with `substitute-env-vars', which see.
| This is normally used only for interactive calls.
| 
| The return value is the new value of VARIABLE, or nil if
| it was removed from the environment.
| 
| This function works by modifying `process-environment'.
| 
| As a special case, setting variable `TZ' calls `set-time-zone-rule' as
| a side-effect.
| 
| [back]
`----

-- 
tcross (at) rapttech dot com dot au

      parent reply	other threads:[~2007-12-09  6:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-06 19:38 is it possible to pass shell variables to emacs? stuart.tett
2007-12-06 22:35 ` David Kastrup
2007-12-07 17:13   ` stuart.tett
2007-12-07 17:18     ` David Kastrup
2007-12-07 17:59     ` Joel J. Adamson
2007-12-09  6:19     ` Tim X
2007-12-09  6:10 ` Tim X [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=87aboks8j1.fsf@lion.rapttech.com.au \
    --to=timx@nospam.dev.null \
    --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.