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

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

[nongnu] elpa/scad-mode e1af74735a: Revert "Generate temporary files for


From: ELPA Syncer
Subject: [nongnu] elpa/scad-mode e1af74735a: Revert "Generate temporary files for flymake and preview in default-directory (Fix #3)"
Date: Wed, 15 Mar 2023 16:01:37 -0400 (EDT)

branch: elpa/scad-mode
commit e1af74735ad6113448c99b3ab128a665e6adaaca
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Revert "Generate temporary files for flymake and preview in 
default-directory (Fix #3)"
    
    This reverts commit e45793d20c2c8cbce0817c51d26a6d281a2bcc52.
    
    See the discussion in https://github.com/openscad/emacs-scad-mode/pull/3. 
It is
    better to use an environment variable to specify the search path.
---
 scad-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scad-mode.el b/scad-mode.el
index 58f0439f92..7f08fe2d02 100644
--- a/scad-mode.el
+++ b/scad-mode.el
@@ -296,7 +296,7 @@ Options are .stl, .off, .amf, .3mf, .csg, .dxf, .svg, .pdf, 
.png,
       (scad--preview-status "Dead")
     (scad--preview-kill)
     (scad--preview-status "Render")
-    (let* ((infile (make-temp-file (expand-file-name "#emacs-scad-preview#")))
+    (let* ((infile (make-temp-file "scad-preview-" nil ".scad"))
            (outfile (concat infile ".png"))
            (buffer (current-buffer)))
       (with-current-buffer scad--preview-buffer
@@ -435,7 +435,7 @@ Options are .stl, .off, .amf, .3mf, .csg, .dxf, .svg, .pdf, 
.png,
   (when (process-live-p scad--flymake-proc)
     (delete-process scad--flymake-proc))
   (let* ((buffer (current-buffer))
-         (infile (make-temp-file (expand-file-name "#emacs-scad-flymake#")))
+         (infile (make-temp-file "scad-flymake-" nil ".scad"))
          (outfile (concat infile ".ast")))
     (save-restriction
       (widen)



reply via email to

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