Mercurial > emacs
changeset 1185:4ec50a934e54
entered into RCS
author | Eric S. Raymond <esr@snark.thyrsus.com> |
---|---|
date | Mon, 21 Sep 1992 12:33:27 +0000 |
parents | 5f4300ccc93f |
children | 24f248525608 |
files | lisp/env.el |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/env.el Mon Sep 21 08:28:43 1992 +0000 +++ b/lisp/env.el Mon Sep 21 12:33:27 1992 +0000 @@ -1,11 +1,10 @@ ;;; setenv.el --- functions to manipulate environment variables. +;;; Copyright Free Software Foundation 1991 + ;; Maintainer: FSF -;; Last-Modified: 16 Mar 1992 ;; Keywords: extensions -;;; Copyright Free Software Foundation 1991 - ;;; This file is part of GNU Emacs. ;;; GNU Emacs is free software; you can redistribute it and/or modify @@ -28,9 +27,10 @@ "Set the value of the environment variable named VARIABLE to VALUE. VARIABLE and VALUE should both be strings. This function works by modifying process-environment." + (interactive "sSet environment variable: \nsSet %s to value: ") (if (string-match "=" variable) - (error "name of environment variable contains an '=' character") - (let ((pattern (concat "^" (regexp-quote (concat variable "=")))) + (error "Environment variable name contains `='") + (let ((pattern (concat "\\`" (regexp-quote (concat variable "=")))) (scan process-environment)) (while scan (cond