We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 59631fc + c00285a commit 7552abfCopy full SHA for 7552abf
1 file changed
exec-path-from-shell.el
@@ -214,10 +214,10 @@ buffer is left undisplayed."
214
(err-buff-name "*exec-path-from-shell: nushell errors*")
215
(err-file (make-temp-file err-buff-name)))
216
(with-temp-buffer
217
- (kill-buffer err-buff-name)
+ (when (get-buffer err-buff-name) (kill-buffer err-buff-name))
218
(exec-path-from-shell--debug "Invoking shell %s with args %S" shell shell-args)
219
(let ((exit-code (exec-path-from-shell--warn-duration
220
- (apply #'call-process shell nil '(t err-file) nil shell-args)))
+ (apply #'call-process shell nil `(t ,err-file) nil shell-args)))
221
(err-buff (generate-new-buffer err-buff-name)))
222
(exec-path-from-shell--debug "Shell printed: %S" (buffer-string))
223
(with-current-buffer err-buff (insert-file-contents err-file))
0 commit comments