]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix typo in ert-with-temp-file
authorStefan Kangas <stefankangas@gmail.com>
Fri, 13 Jan 2023 01:44:44 +0000 (02:44 +0100)
committerStefan Kangas <stefankangas@gmail.com>
Fri, 13 Jan 2023 01:50:39 +0000 (02:50 +0100)
* lisp/emacs-lisp/ert-x.el (ert-with-temp-file): Fix typo.
Reported by F. Jason Park <jp@neverwas.me>.  (Bug#60730)

lisp/emacs-lisp/ert-x.el

index 83705ca5b89f25a93191087c2143794d2b622dbc..98a017c8a8ebd447f0968646cb643776ad03d27d 100644 (file)
@@ -496,7 +496,7 @@ See also `ert-with-temp-directory'."
              (progn ,@body)
            (ignore-errors
              ,@(when buffer
-                 (list `(with-current-buffer buf
+                 (list `(with-current-buffer ,buffer
                           (set-buffer-modified-p nil))
                        `(kill-buffer ,buffer))))
            (ignore-errors