help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: is it possible to pass shell variables to emacs?


From: Tim X
Subject: Re: is it possible to pass shell variables to emacs?
Date: Sun, 09 Dec 2007 17:10:26 +1100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

"address@hidden" <address@hidden> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]