aboutsummaryrefslogtreecommitdiffhomepage
path: root/isa
diff options
context:
space:
mode:
authorGravatar David Aspinall <da@inf.ed.ac.uk>2000-07-03 15:01:58 +0000
committerGravatar David Aspinall <da@inf.ed.ac.uk>2000-07-03 15:01:58 +0000
commit1de79b1080b1f1be9bac5ca4ecc299b9597bbc87 (patch)
tree3799b60a4594af1b2438a8bd8417c3c9d5d8ecb3 /isa
parent9a27188d2b7c9261ceebbb756cc94930c700f933 (diff)
Note about trapping errors
Diffstat (limited to 'isa')
-rw-r--r--isa/isabelle-system.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/isa/isabelle-system.el b/isa/isabelle-system.el
index 632bbee5..13d7d065 100644
--- a/isa/isabelle-system.el
+++ b/isa/isabelle-system.el
@@ -74,6 +74,10 @@ Returns non-nil if isa-isatool-command is valid."
(defun isa-shell-command-to-string (command)
"Like shell-command-to-string except the last character is stripped."
+ ;; FIXME: sometimes the command may fail. This will usually cause PG
+ ;; to break. Bit of an effort to trap errors here, we would need
+ ;; to provide some advice to shell-command-to-string to retain result
+ ;; of call to call-process, and raise and error in case it failed.
(substring (shell-command-to-string command) 0 -1))
(defun isa-getenv (envvar &optional default)