aboutsummaryrefslogtreecommitdiff
path: root/evil-test-helpers.el
diff options
context:
space:
mode:
Diffstat (limited to 'evil-test-helpers.el')
-rw-r--r--evil-test-helpers.el6
1 files changed, 1 insertions, 5 deletions
diff --git a/evil-test-helpers.el b/evil-test-helpers.el
index c70ea21..03e5cf3 100644
--- a/evil-test-helpers.el
+++ b/evil-test-helpers.el
@@ -383,10 +383,6 @@ is executed at the end."
(goto-char (overlay-end ,overlay))
(evil-test-text (or ,end-string ,string) nil nil ,after-predicate))))
-(defun evil-temp-filename ()
- "Return an appropriate temporary filename."
- (make-temp-file "evil-test"))
-
(defmacro evil-with-temp-file (file-var content &rest body)
"Create a temp file with CONTENT and bind its name to FILE-VAR within BODY.
FILE-VAR must be a symbol which contains the name of the
@@ -398,7 +394,7 @@ while the temporary file exists. The temporary file is deleted at
the end of the execution of BODY."
(declare (indent 2)
(debug (symbolp form body)))
- `(let ((,file-var (evil-temp-filename)))
+ `(let ((,file-var (make-temp-file "evil-test")))
(with-temp-file ,file-var
,(if (stringp content)
`(insert ,content)