[0130] 移除 LaTeX 相关 C++ 死代码和 LaTeX_Preview 插件#3376
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- 移除 try_latex_export 及所有辅助函数(number_latex_errors、 get_latex_errors、latex_error_*、texmacs_error_find、 get_line_number、get_column_number) - 移除 src/Plugins/LaTeX_Preview 插件及其所有引用 - 移除 pdflatex binary plugin - 更新 glue_tex.lua、xmake.lua、config.h.xmake Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- 移除 glue_tex.lua 中的 set-latex-command(其实现在 LaTeX_Preview 插件中已删除) - 移除 tm-server.scm 中的 notify-latex-command 和 latex command 首选项 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- fromtex.cpp:彻底移除 LaTeX_Preview 引用,将 latex_fallback_on_pictures 改为空实现 - latex_recover.cpp:移除未使用的 using namespace moebius 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.
摘要
在移除工具菜单 LaTeX 子菜单的 scheme 入口后,进一步清理对应的 C++ glue 实现和
LaTeX_Preview插件。修改内容
C++ 死代码清理
src/Plugins/Tex/latex_recover.cpp:移除try_latex_export及所有辅助函数number_latex_errors、get_latex_errorslatex_error_head、latex_error_tail、latex_error_message等latex_error_find、texmacs_error_findget_line_number、get_column_numbersrc/Plugins/Tex/tex.hpp:移除对应声明src/Scheme/Plugins/glue_tex.lua:移除try-latex-export、number-latex-errors、get-line-number、get-column-number的 glue 定义LaTeX_Preview 插件移除
src/Plugins/LaTeX_Preview/latex_preview.cpp和.hppTeXmacs/plugins/latex/progs/binary/pdflatex.scmxmake.lua:移除编译规则和USE_PLUGIN_LATEX_PREVIEW宏src/System/config.h.xmake:移除宏定义src/Scheme/Plugins/init_glue_plugins.cpp:移除头文件引用src/Data/Convert/Verbatim/verbatim.cpp:移除latex_preview类型检查src/Plugins/Tex/fromtex.cpp:将latex_fallback_on_pictures改为空实现,移除内部辅助函数src/Plugins/Tex/fromtex_post.cpp:移除调用和声明测试
xmake b mogan)