Uwe Brauer writes:
>> On Fri, 21 Oct 2011 12:14:57 +0200, Giacomo Boffi
<giacomo.boffi(a)polimi.it> wrote:
> i should have been drunken... no need to go through the shell alias,
> just do
> echo '(setenv "PAGER" "cat")' >>
~/.xemacs/init.el
> once for all
Oops you want to set shell code in the lisp file?
no, i want to modify the environment that xemacs passes to its
subprocesses
----------------------------------------------------------------------
(describe-function 'setenv)
`setenv' is an interactive compiled Lisp function
-- loaded from ".../xemacs/lisp/process.elc"
(setenv VARIABLE &optional VALUE UNSET SUBSTITUTE-ENV-VARS)
Documentation:
Set the value of the environment variable named VARIABLE to VALUE.
VARIABLE should be a string. VALUE is optional; if not provided or is
`nil', the environment variable VARIABLE will be removed.
UNSET, if non-nil, means to remove VARIABLE from the environment.
SUBSTITUTE-ENV-VARS, if non-nil, means to substitute environment
variables in VALUE using `substitute-env-vars'.
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.
This function works by modifying `process-environment'.
As a special case, setting variable `TZ' calls `set-time-zone-rule' as
a side-effect.
Invoked with:
M-x setenv
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta