jwiegley / emacs-async

Simple library for asynchronous processing in Emacs
GNU General Public License v3.0
829 stars 68 forks source link

feat: automatically close error buffer when process finishes #174

Closed Fuco1 closed 1 year ago

Fuco1 commented 1 year ago

Always create the error buffer but kill it when the process exits #173

Also added tests that with debug they stay around.

thierryvolpiatto commented 1 year ago

Merged! Thanks.

thierryvolpiatto commented 1 year ago

"Basil L. Contovounesios" @.***> writes:

  1. ( ) text/plain (*) text/html

@basil-conto commented on this pull request.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

In async.el:

      (proc (let ((process-connection-type nil))

(make-process :name name :buffer buf :stderr buf-err :command (cons program program-args)))))

  • (set-process-sentinel
  • (get-buffer-process buf-err)
  • (lambda (proc _change)
  • (unless (or async-debug (buffer-live-p proc))

Did you mean (buffer-live-p (process-buffer proc))?

Or (buffer-live-p (get-buffer buf-err))?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you modified the open/close state.*Message ID: @.***>

-- Thierry

Fuco1 commented 1 year ago

Damn it I wanted process-live-p :D