Skip to content

[1297] 仅对文档缓冲区生成 stem-doc-id - #4546

Open
da-liii wants to merge 3 commits into
mainfrom
da/1297/stem_doc_id
Open

[1297] 仅对文档缓冲区生成 stem-doc-id#4546
da-liii wants to merge 3 commits into
mainfrom
da/1297/stem_doc_id

Conversation

@da-liii

@da-liii da-liii commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

任务简述

仅对文档缓冲区生成 stem-doc-id。对于 .ts 或者实际上是样式的 .stem,不填入 stem-doc-id

主要变动

  1. 判定谓词:在 tm-files.scm 中实现 style-buffer?document-buffer?,结合 .ts 后缀、样式包导出草稿、source 样式特征以及文档树源码标记综合判定;
  2. 自动备份与绑定控制auto-backup-buffer-eligible? 排除样式缓冲区,新增 auto-backup-clear-buffer-doc-id! 在样式缓冲区保存时清理残留的 doc id,避免静默写入源文件;
  3. 数据清理:移除 three-columns.ts 中误写入的 stem-doc-id
  4. 单元测试:在 tm-files-test.scm 中增加对 .ts 样式、.stem 样式包、.stem 文档和 .tmu 文档的判定与 doc id 行为测试。

详见 devel/1297.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants