diff options
Diffstat (limited to 'src/core-commands.c')
| -rw-r--r-- | src/core-commands.c | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/src/core-commands.c b/src/core-commands.c index 47809e2..e756eab 100644 --- a/src/core-commands.c +++ b/src/core-commands.c @@ -2149,13 +2149,20 @@ teco_state_ecommand_flags(teco_machine_main_t *ctx, GError **error) * Unlike most other settings, this is on purpose not restored on rubout, * so it \(lqsurvives\(rq command line replacements. * .IP 5: - * Height of the command line view in lines. + * Height of the command line view in lines (1 by default). * Must not be smaller than 1. * .IP 6: - * Backup interval in seconds or 0 if backups are disabled. + * .SCITECO_TOPIC recovery + * Interval in seconds for the creation of recovery files + * or 0 if those dumps are disabled (the default is 300 seconds). + * When enabled all dirty buffers are dumped to files with hash + * signs around the original basename (\fB#\fIfilename\fB#\fR). + * They are removed automatically when no longer required, + * but may be left around when the \*(ST crashes or terminates + * unexpectedly. * After changing the interval, the new value may become * active only after the previous interval expires. - * Backups are not created in batch mode. + * Recovery files are not dumped in batch mode. * . * .IP -1: * Type of the last mouse event (\fBread-only\fP). @@ -2210,7 +2217,7 @@ teco_state_ecommand_properties(teco_machine_main_t *ctx, GError **error) EJ_INIT_COLOR, EJ_CARETX, EJ_CMDLINE_HEIGHT, - EJ_BACKUP_INTERVAL + EJ_RECOVERY_INTERVAL }; static teco_int_t caret_x = 0; @@ -2261,14 +2268,14 @@ teco_state_ecommand_properties(teco_machine_main_t *ctx, GError **error) teco_undo_guint(teco_cmdline.height) = value; break; - case EJ_BACKUP_INTERVAL: + case EJ_RECOVERY_INTERVAL: if (value < 0 || value > G_MAXUINT) { g_set_error(error, TECO_ERROR, TECO_ERROR_FAILED, - "Invalid backup interval %" TECO_INT_FORMAT "s " + "Invalid recovery interval %" TECO_INT_FORMAT "s " "for <EJ>", value); return; } - teco_undo_guint(teco_ring_backup_interval) = value; + teco_undo_guint(teco_ring_recovery_interval) = value; /* FIXME: Perhaps signal the interface to reprogram timers */ break; @@ -2331,8 +2338,8 @@ teco_state_ecommand_properties(teco_machine_main_t *ctx, GError **error) teco_expressions_push(teco_cmdline.height); break; - case EJ_BACKUP_INTERVAL: - teco_expressions_push(teco_ring_backup_interval); + case EJ_RECOVERY_INTERVAL: + teco_expressions_push(teco_ring_recovery_interval); break; default: |
