aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond1992-09-21 12:33:27 +0000
committerEric S. Raymond1992-09-21 12:33:27 +0000
commit971571b96c729544d60942ff9541c1e1aeefc521 (patch)
treeb9f699b24dd8560fdff1ab10e2f0fe4069f3ec39
parent35a4d1439f68f77ba05f1d3b57244ebb46c54303 (diff)
downloademacs-971571b96c729544d60942ff9541c1e1aeefc521.tar.gz
emacs-971571b96c729544d60942ff9541c1e1aeefc521.zip
entered into RCS
-rw-r--r--lisp/env.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/env.el b/lisp/env.el
index 21ebad37437..a3933f200da 100644
--- a/lisp/env.el
+++ b/lisp/env.el
@@ -1,11 +1,10 @@
1;;; setenv.el --- functions to manipulate environment variables. 1;;; setenv.el --- functions to manipulate environment variables.
2 2
3;;; Copyright Free Software Foundation 1991
4
3;; Maintainer: FSF 5;; Maintainer: FSF
4;; Last-Modified: 16 Mar 1992
5;; Keywords: extensions 6;; Keywords: extensions
6 7
7;;; Copyright Free Software Foundation 1991
8
9;;; This file is part of GNU Emacs. 8;;; This file is part of GNU Emacs.
10 9
11;;; GNU Emacs is free software; you can redistribute it and/or modify 10;;; GNU Emacs is free software; you can redistribute it and/or modify
@@ -28,9 +27,10 @@
28 "Set the value of the environment variable named VARIABLE to VALUE. 27 "Set the value of the environment variable named VARIABLE to VALUE.
29VARIABLE and VALUE should both be strings. 28VARIABLE and VALUE should both be strings.
30This function works by modifying process-environment." 29This function works by modifying process-environment."
30 (interactive "sSet environment variable: \nsSet %s to value: ")
31 (if (string-match "=" variable) 31 (if (string-match "=" variable)
32 (error "name of environment variable contains an '=' character") 32 (error "Environment variable name contains `='")
33 (let ((pattern (concat "^" (regexp-quote (concat variable "=")))) 33 (let ((pattern (concat "\\`" (regexp-quote (concat variable "="))))
34 (scan process-environment)) 34 (scan process-environment))
35 (while scan 35 (while scan
36 (cond 36 (cond