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

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

[elpa] master 3551ab2 1/6: Ignore process send errors


From: Rocky Bernstein
Subject: [elpa] master 3551ab2 1/6: Ignore process send errors
Date: Thu, 4 Aug 2016 13:50:18 +0000 (UTC)

branch: master
commit 3551ab20b46d0cb460c2a4d0c5c2f1c0e107a840
Author: rocky <address@hidden>
Commit: rocky <address@hidden>

    Ignore process send errors
---
 realgud/common/send.el |   13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/realgud/common/send.el b/realgud/common/send.el
index c068c4f..b8b1f7e 100644
--- a/realgud/common/send.el
+++ b/realgud/common/send.el
@@ -1,4 +1,4 @@
-;; Copyright (C) 2015 Free Software Foundation, Inc
+;; Copyright (C) 2015, 2016 Free Software Foundation, Inc
 
 ;; Author: Rocky Bernstein <address@hidden>
 
@@ -31,11 +31,12 @@
   "Sends command buffer line either to comint or eshell"
   (interactive)
   (let ((mode (realgud:canonic-major-mode)))
-    (cond ((eq mode 'eshell)
-          (eshell-send-input))
-         ((eq mode 'comint)
-          (comint-send-input))
-       )))
+    (ignore-errors
+      (cond ((eq mode 'eshell)
+            (eshell-send-input))
+           ((eq mode 'comint)
+            (comint-send-input))
+           ))))
 
 (defun realgud:send-command-common (process command-str)
   "Assume we are in a comint buffer. Insert COMMAND-STR and



reply via email to

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