Skip to content

Commit

Permalink
Add straight--delete-stderr-file (#940)
Browse files Browse the repository at this point in the history
Removes session-specific temp file used to temporarily store
processes' stderr stream.

See: #939
  • Loading branch information
progfolio committed Apr 13, 2022
1 parent e2de88e commit 4517e11
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions straight.el
Expand Up @@ -902,6 +902,14 @@ eaten by a grue.")
"Name of buffer used for process output."
:type 'string)

(defun straight--delete-stderr-file ()
"Remove `straight--process-stderr' file."
(when (and (boundp 'straight--process-stderr)
(file-exists-p straight--process-stderr))
(delete-file straight--process-stderr)))

(add-hook 'kill-emacs-hook #'straight--delete-stderr-file)

(defun straight--process-buffer ()
"Return `straight-process-buffer' in `special-mode'."
(with-current-buffer (get-buffer-create straight-process-buffer)
Expand Down

0 comments on commit 4517e11

Please sign in to comment.