summaryrefslogtreecommitdiff
path: root/lisp/env.el
diff options
context:
space:
mode:
authorKim F. Storm <storm@cua.dk>2006-05-05 23:36:55 +0000
committerKim F. Storm <storm@cua.dk>2006-05-05 23:36:55 +0000
commit4c5f6185280e155c418568bc6b9844059aa5f992 (patch)
tree6340e21fc1de4c0321545652834375a80013ae6c /lisp/env.el
parent640ad75b3c4549394eec314b3305ca576d185965 (diff)
downloademacs-4c5f6185280e155c418568bc6b9844059aa5f992.tar.gz
(setenv): Use add-to-history.
Diffstat (limited to 'lisp/env.el')
-rw-r--r--lisp/env.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/env.el b/lisp/env.el
index 1b6c038cbea..5a3de0ac712 100644
--- a/lisp/env.el
+++ b/lisp/env.el
@@ -117,7 +117,7 @@ a side-effect."
(let* ((var (read-envvar-name "Set environment variable: " nil))
(value (getenv var)))
(when value
- (push value setenv-history))
+ (add-to-history 'setenv-history value))
;; Here finally we specify the args to give call setenv with.
(list var
(read-from-minibuffer (format "Set %s to value: " var)