aboutsummaryrefslogtreecommitdiff
path: root/src/interp/msgdb.boot
diff options
context:
space:
mode:
Diffstat (limited to 'src/interp/msgdb.boot')
-rw-r--r--src/interp/msgdb.boot69
1 files changed, 1 insertions, 68 deletions
diff --git a/src/interp/msgdb.boot b/src/interp/msgdb.boot
index 4d26fe71..a0adc6f7 100644
--- a/src/interp/msgdb.boot
+++ b/src/interp/msgdb.boot
@@ -340,19 +340,6 @@ throwKeyedMsgSP(key,args,atree) ==
throwKeyedMsg(key,args)
throwKeyedMsg(key,args) ==
- $saturn => saturnThrowKeyedMsg(key, args)
- throwKeyedMsg1(key, args)
-
-saturnThrowKeyedMsg(key,args) ==
- SETQ($OutputStream, $texOutputStream)
- last := pushSatOutput("line")
- sayString '"\bgroup\color{red}\begin{list}\item{} "
- sayKeyedMsgAsTeX(key,args)
- sayString '"\end{list}\egroup"
- popSatOutput(last)
- spadThrow()
-
-throwKeyedMsg1(key,args) ==
SETQ($OutputStream, $texOutputStream)
sayMSG '" "
if $testingSystem then sayMSG $testingErrorPrefix
@@ -384,53 +371,9 @@ breakKeyedMsg(key,args) ==
handleLispBreakLoop($BreakMode)
keyedSystemError(key,args) ==
- $saturn => saturnKeyedSystemError(key, args)
- keyedSystemError1(key, args)
-
-saturnKeyedSystemError(key, args) ==
- SETQ($OutputStream, $texOutputStream)
- sayString '"\bgroup\color{red}"
- sayString '"\begin{verbatim}"
- sayKeyedMsg("S2GE0000",NIL)
- BUMPERRORCOUNT "semantic"
- sayKeyedMsgAsTeX(key,args)
- sayString '"\end{verbatim}"
- sayString '"\egroup"
- handleLispBreakLoop($BreakMode)
-
-keyedSystemError1(key,args) ==
sayKeyedMsg("S2GE0000",NIL)
breakKeyedMsg(key,args)
--- these 2 functions control the mode of saturn output.
--- having the stream writing functions control this would
--- be better (eg. sayText, sayCommands)
-
-pushSatOutput(arg) ==
- $saturnMode = arg => arg
- was := $saturnMode
- arg = "verb" =>
- $saturnMode := "verb"
- sayString '"\begin{verbatim}"
- was
- arg = "line" =>
- $saturnMode := "line"
- sayString '"\end{verbatim}"
- was
- sayString FORMAT(nil, '"What is: ~a", $saturnMode)
- $saturnMode
-
-popSatOutput(newmode) ==
- newmode = $saturnMode => nil
- newmode = "verb" =>
- $saturnMode := "verb"
- sayString '"\begin{verbatim}"
- newmode = "line" =>
- $saturnMode := "line"
- sayString '"\end{verbatim}"
- sayString FORMAT(nil, '"What is: ~a", $saturnMode)
- $saturnMode
-
systemErrorHere what ==
if cons? what then
what := [first what, " with: ", :rest what]
@@ -1028,14 +971,4 @@ $htCharAlist == '(
escapeSpecialChars s ==
u := LASSOC(s,$htCharAlist) => u
member(s, $htSpecialChars) => strconc('"_\", s)
- null $saturn => s
- alphabetic? (s.0) => s
- not (or/[dbSpecialDisplayOpChar? s.i for i in 0..MAXINDEX s]) => s
- buf := '""
- for i in 0..MAXINDEX s repeat buf :=
- dbSpecialDisplayOpChar?(s.i) => strconc(buf,'"\verb!",s.i,'"!")
- strconc(buf,s.i)
- buf
-
-dbSpecialDisplayOpChar? c == (c = char '_~)
-
+ s