-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why not remove the temp file when finished ? #84
Comments
Could you show me how to reproduce this issue ? quickrun.el removes temporary file after command is finished. If some unexpected error occurs then temporary file is left. |
Thanks for your reply. Looking in the code, the file is removed only when has error. |
I also do. How to remove temporary file? When I run the file, it outputs files like qr_*. These termporary files are very noisy to me. |
I think this is the issue. Mark it with |
I was also confused about this issue and found it was derived from quickrun-timeout-seconds. I set nil to turn off the timeout, but the codes to delete the temporal files weren't reached. |
Following code not work, because the command never run again. (setq quickrun-option-default-directory ".quickrun/")
(defun quickrun--create-option-default-directory ()
(unless (file-directory-p quickrun-option-default-directory)
(make-directory quickrun-option-default-directory)))
(advice-add 'quickrun :before #'quickrun--create-option-default-directory)
;; Then other code
(require 'quickrun)
;; ... so, i hack following fun let output tmp file hidden. (require 'quickrun)
(defun quickrun--temp-name (src)
"Not documented."
(let* ((extension (file-name-extension src))
(suffix (or (and extension (concat "." extension)) ""))
(dir (quickrun--default-directory)))
(expand-file-name (concat dir (make-temp-name ".qr_") suffix)))) |
Every time I run
quickrun
, the temp file is left there. Is there any specified reason for keeping these files ?quickrun.el
The text was updated successfully, but these errors were encountered: