Mercurial > emacs
changeset 50873:562c854aa190
(setenv): Don't quote nil and t in docstrings.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Tue, 06 May 2003 17:54:41 +0000 |
parents | ba2845537409 |
children | a913973fce44 |
files | lisp/env.el |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/env.el Tue May 06 17:54:12 2003 +0000 +++ b/lisp/env.el Tue May 06 17:54:41 2003 +0000 @@ -89,8 +89,8 @@ (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 +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,7 +126,7 @@ (memq (coding-system-base locale-coding-system) codings)) (error "Can't encode `%s=%s' with `locale-coding-system'" variable (or value ""))))) - (if unset + (if unset (setq value nil) (if substitute-env-vars (setq value (substitute-env-vars value))))