| @@ -1006,12 +1006,12 @@ let pgoto opaque pageno x y = · 1005 unmodified lines |
| 1006 | gotopagexy pageno x y | 1006 | gotopagexy pageno x y |
| 1007 | | 1007 | |
| 1008 | let act cmds = | 1008 | let act cmds = |
| 1009 | (* dolog1 "%S" cmds; *) | 1009 | (* dolog "%S" cmds; *) |
| 1010 | let spl = splitatchar cmds ' ' in | 1010 | let spl = splitatchar cmds ' ' in |
| 1011 | let scan s fmt f = | 1011 | let scan s fmt f = |
| 1012 | try Scanf.sscanf s fmt f | 1012 | try Scanf.sscanf s fmt f |
| 1013 | with exn -> | 1013 | with exn -> |
| 1014 | dolog1 "error scanning %S: %s" cmds @@ exntos exn; | 1014 | dolog "error scanning %S: %s" cmds @@ exntos exn; |
| 1015 | exit 1 | 1015 | exit 1 |
| 1016 | in | 1016 | in |
| 1017 | let addoutline outline = | 1017 | let addoutline outline = |
| @@ -1019,7 +1019,7 @@ let act cmds = · 1 unmodified line |
| 1019 | | Outlining outlines -> S.currently := Outlining (outline :: outlines) | 1019 | | Outlining outlines -> S.currently := Outlining (outline :: outlines) |
| 1020 | | Idle -> S.currently := Outlining [outline] | 1020 | | Idle -> S.currently := Outlining [outline] |
| 1021 | | Loading _ | Tiling _ -> | 1021 | | Loading _ | Tiling _ -> |
| 1022 | dolog1 "invalid outlining state"; | 1022 | dolog "Invalid outlining state"; |
| 1023 | logcurrently !S.currently | 1023 | logcurrently !S.currently |
| 1024 | in | 1024 | in |
| 1025 | match spl with | 1025 | match spl with |
| @@ -1168,7 +1168,7 @@ let act cmds = · 142 unmodified lines |
| 1168 | ) | 1168 | ) |
| 1169 | | 1169 | |
| 1170 | | Idle | Tiling _ | Outlining _ -> | 1170 | | Idle | Tiling _ | Outlining _ -> |
| 1171 | dolog1 "Inconsistent loading state"; | 1171 | dolog "Inconsistent loading state"; |
| 1172 | logcurrently !S.currently; | 1172 | logcurrently !S.currently; |
| 1173 | exit 1 | 1173 | exit 1 |
| 1174 | end | 1174 | end |
| @@ -1212,7 +1212,7 @@ let act cmds = · 37 unmodified lines |
| 1212 | ) | 1212 | ) |
| 1213 | | 1213 | |
| 1214 | | Idle | Loading _ | Outlining _ -> | 1214 | | Idle | Loading _ | Outlining _ -> |
| 1215 | dolog1 "Inconsistent tiling state"; | 1215 | dolog "Inconsistent tiling state"; |
| 1216 | logcurrently !S.currently; | 1216 | logcurrently !S.currently; |
| 1217 | exit 1 | 1217 | exit 1 |
| 1218 | end | 1218 | end |
| @@ -4747,7 +4747,8 @@ let () = · 3528 unmodified lines |
| 4747 | let optrfd = | 4747 | let optrfd = |
| 4748 | ref (if nonemptystr !rcmdpath then remoteopen !rcmdpath else None) | 4748 | ref (if nonemptystr !rcmdpath then remoteopen !rcmdpath else None) |
| 4749 | in | 4749 | in |
| 4750 | dologf := (adderrfmt "stderr" "%s\n"); | 4750 | if !S.redirstderr |
| | 4751 | then dologf := (adderrfmt "stderr" "%s\n"); |
| 4751 | | 4752 | |
| 4752 | let fdl = | 4753 | let fdl = |
| 4753 | let l = [!S.ss; !S.wsfd] in if !S.redirstderr then !S.stderr :: l else l | 4754 | let l = [!S.ss; !S.wsfd] in if !S.redirstderr then !S.stderr :: l else l |