diff options
author | Thanos Apollo <[email protected]> | 2024-02-18 09:41:23 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-02-18 09:41:23 +0200 |
commit | 60f61953655005fac6efd5d1732208be931a6623 (patch) | |
tree | 7e4c90de9ff6965a286509d4d7fc602561704064 /gnosis.el | |
parent | fbc7fcc9b4d42652dbf26d21312f9243e51a6810 (diff) |
[fix] gnosis-git--process: Use process-buffer
- If no buffer is specified emacs hangs, not sure if this a bug with my
emacs version or not.
- 'set-process-sentinel' does not delete the process.
Diffstat (limited to 'gnosis.el')
-rw-r--r-- | gnosis.el | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1027,12 +1027,12 @@ Used to reveal all clozes left with `gnosis-face-cloze-unanswered' face." (defun gnosis-git--process (command) "Start a git process with COMMAND." - (let ((proc (start-process "*git-gnosis*" nil "git" command))) + (let ((proc (start-process "*git-gnosis*" "*git-gnosis*" "git" command))) ;; Filter for password prompt (set-process-filter proc (lambda (proc string) (when (string-match "Password\\|password\\|passphrase" string) (process-send-string proc (read-passwd "Password: "))))) - ;; Set sentinel to delete process when done + ;; FIXME: Set sentinel to delete process when done (set-process-sentinel proc (lambda (proc event) (when (eq 'exit (process-status proc)) (unless (process-live-p proc) |