emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/vc-got c819459 077/145: trap c-g during stage operation


From: ELPA Syncer
Subject: [elpa] externals/vc-got c819459 077/145: trap c-g during stage operation
Date: Thu, 9 Sep 2021 15:58:37 -0400 (EDT)

branch: externals/vc-got
commit c819459405eb9febdb67b19d08bfa50c5ec83017
Author: Omar Polo <op@omarpolo.com>
Commit: Omar Polo <op@omarpolo.com>

    trap c-g during stage operation
---
 vc-got-stage.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/vc-got-stage.el b/vc-got-stage.el
index 1caa93d..5f18f70 100644
--- a/vc-got-stage.el
+++ b/vc-got-stage.el
@@ -107,7 +107,10 @@ PROC is the process, STRING part of its output."
               (let ((msg (match-string 1)))
                 (kill-line)             ; kill the question
                 (vc-got-stage--kill-separators)
-                (process-send-string buf (if (y-or-n-p msg) "y\n" "n\n"))
+                (process-send-string buf
+                                     (condition-case nil
+                                         (if (y-or-n-p msg) "y\n" "n\n")
+                                       (quit "q\n")))
                 (erase-buffer)))))))))
 
 (defun vc-got-stage--sentinel (_proc event)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]