summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-02-18 09:41:23 +0200
committerThanos Apollo <[email protected]>2024-02-18 09:41:23 +0200
commit60f61953655005fac6efd5d1732208be931a6623 (patch)
tree7e4c90de9ff6965a286509d4d7fc602561704064 /gnosis.el
parentfbc7fcc9b4d42652dbf26d21312f9243e51a6810 (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.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnosis.el b/gnosis.el
index 0b3cd2d..79df9d8 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -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)