[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/env.el
From: |
Juanma Barranquero |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/env.el |
Date: |
Tue, 06 May 2003 13:54:41 -0400 |
Index: emacs/lisp/env.el
diff -c emacs/lisp/env.el:1.29 emacs/lisp/env.el:1.30
*** emacs/lisp/env.el:1.29 Tue Feb 25 01:19:21 2003
--- emacs/lisp/env.el Tue May 6 13:54:41 2003
***************
*** 89,96 ****
(defun setenv (variable &optional value unset 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 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 with `substitute-env-vars', where see.
--- 89,96 ----
(defun setenv (variable &optional value unset 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. UNSET
if non-nil means to remove VARIABLE from the environment.
SUBSTITUTE-ENV-VARS, if non-nil, means to substitute environment
variables in VALUE with `substitute-env-vars', where see.
***************
*** 126,132 ****
(memq (coding-system-base locale-coding-system) codings))
(error "Can't encode `%s=%s' with `locale-coding-system'"
variable (or value "")))))
! (if unset
(setq value nil)
(if substitute-env-vars
(setq value (substitute-env-vars value))))
--- 126,132 ----
(memq (coding-system-base locale-coding-system) codings))
(error "Can't encode `%s=%s' with `locale-coding-system'"
variable (or value "")))))
! (if unset
(setq value nil)
(if substitute-env-vars
(setq value (substitute-env-vars value))))
- [Emacs-diffs] Changes to emacs/lisp/env.el,
Juanma Barranquero <=