emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/reformatter 45c0add950 57/81: Move conditional input file


From: ELPA Syncer
Subject: [nongnu] elpa/reformatter 45c0add950 57/81: Move conditional input file path to compile time
Date: Tue, 5 Sep 2023 04:03:37 -0400 (EDT)

branch: elpa/reformatter
commit 45c0add95025f53ca644a6c8b9afa05b2da3c474
Author: Steve Purcell <steve@sanityinc.com>
Commit: Steve Purcell <steve@sanityinc.com>

    Move conditional input file path to compile time
---
 reformatter.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/reformatter.el b/reformatter.el
index 20bf45d6dd..0718edbf8d 100644
--- a/reformatter.el
+++ b/reformatter.el
@@ -264,7 +264,7 @@ might use:
 When called interactively, or with prefix argument
 DISPLAY-ERRORS, shows a buffer if the formatting fails."
          (interactive "rp")
-         (let ((input-file (or ,input-file (make-temp-file ,(symbol-name 
name)))))
+         (let ((input-file ,(if input-file input-file `(make-temp-file 
,(symbol-name name)))))
            ;; Evaluate args with input-file bound
            (unwind-protect
                (progn



reply via email to

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