emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 87bc518: * test/lisp/eshell/eshell-tests.el (with-t


From: Glenn Morris
Subject: [Emacs-diffs] master 87bc518: * test/lisp/eshell/eshell-tests.el (with-temp-eshell):
Date: Sun, 9 Dec 2018 18:57:00 -0500 (EST)

branch: master
commit 87bc518afcc3adc23762944ef49f89d375f90260
Author: Glenn Morris <address@hidden>
Commit: Glenn Morris <address@hidden>

    * test/lisp/eshell/eshell-tests.el (with-temp-eshell):
    Avoid permanently changing HISTFILE.
---
 test/lisp/eshell/eshell-tests.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/lisp/eshell/eshell-tests.el b/test/lisp/eshell/eshell-tests.el
index cefbeef..330dd87 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]