[1146] autosave 实现迁移至 autosave 插件(启动 586ms → 434ms)#4030
Merged
Conversation
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tm-files.scm迁至 autosave 插件:新增(plugin autosave)入口模块 +(plugin autosave-impl)实现模块,插件 init(事件循环后 ~3s)加载,退出启动关键路径(delayed (:pause 120000) (autosave-delayed))从init-research.scm移入init-autosave.scm;(liii json)/(liii uuid)/(liii path)导入一并迁出(when (defined? 'xxx) ...)兜底;退出/重启的save-all-buffers按需use-modules(generic-edit 模式)autosave-impl补(:use (utils library cursor))(with-buffer未绑定曾导致 doc-id 绑定静默失败、备份不落盘);tm-autosave.scm日志string-append传 path 对象的 wrong-type-arg 改为path->stringTest plan
Loaded plugin autosave无报错,事件循环 434ms(regtest-tm-files)2 correct, 0 failedauto-backup-trig→$TEXMACS_HOME_PATH/system/backup/<doc-id>/<时间戳>.tmu落盘🤖 Generated with Claude Code