aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/opener.tes
diff options
context:
space:
mode:
authorRobin Haberkorn <rhaberkorn@fmsbw.de>2026-04-13 16:44:34 +0200
committerRobin Haberkorn <rhaberkorn@fmsbw.de>2026-04-13 16:44:34 +0200
commitcd48ea8f00567f30d9685f96a12b8f123a121f62 (patch)
tree9fb17e4c790683d757e0cfaf1eafaaf5530fcc6b /lib/opener.tes
parent714b953a68b2a90430275f8069fb9d61383420d9 (diff)
opener.check-recovery now checks for and warns about the presence of recovery `#files#`
* This could have been in ring.c, but in the future we may want to script the behavior in case recovery files are detected. * The warnings are currently written as user messages, which looks ugly in interactive mode. Once n^A is supported, we can write them as regular warnings, though (FIXME).
Diffstat (limited to 'lib/opener.tes')
-rw-r--r--lib/opener.tes18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/opener.tes b/lib/opener.tes
index c0183c8..59af79a 100644
--- a/lib/opener.tes
+++ b/lib/opener.tes
@@ -36,3 +36,21 @@
EBN[\.i] Q.c-1,Q.l-1ESFINDCOLUMN:J
>
]* }
+
+!*$
+ * M[opener.check-recovery] -- Warn if there if a recovery file (#filename#) is detected
+ *
+ * This points to a prior crash or unexpected termination.
+ *!
+@[opener.check-recovery]{
+ :Q*"=  '
+ [*
+ EQ.f G* I# R
+ <-A"I 1; ' :R;>
+ I#
+ 1:EN*Q.f"S
+ !* FIXME: log as a true warning once  supports it *!
+ Warning: Detected recovery file "Q.f"^J
+ '
+ ]*
+}