diff options
author | Glenn Morris <rgm@gnu.org> | 2018-12-09 15:54:35 -0800 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2018-12-09 15:56:48 -0800 |
commit | 87bc518afcc3adc23762944ef49f89d375f90260 (patch) | |
tree | 07e0e07139b89c66331885f2e2c0bb067679f388 /test/lisp/eshell/eshell-tests.el | |
parent | f8179cd366664484e849849027cdf6ecd55dbae9 (diff) | |
download | emacs-87bc518afcc3adc23762944ef49f89d375f90260.tar.gz |
* test/lisp/eshell/eshell-tests.el (with-temp-eshell):
Avoid permanently changing HISTFILE.
Diffstat (limited to 'test/lisp/eshell/eshell-tests.el')
-rw-r--r-- | test/lisp/eshell/eshell-tests.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lisp/eshell/eshell-tests.el b/test/lisp/eshell/eshell-tests.el index cefbeef5677..330dd87ae4c 100644 --- a/test/lisp/eshell/eshell-tests.el +++ b/test/lisp/eshell/eshell-tests.el @@ -33,7 +33,7 @@ `(let* ((eshell-directory-name (make-temp-file "eshell" t)) ;; We want no history file, so prevent Eshell from falling ;; back on $HISTFILE. - (_ (setenv "HISTFILE")) + (process-environment (cons "HISTFILE" process-environment)) (eshell-history-file-name nil) (eshell-buffer (eshell t))) (unwind-protect |