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.


如何测试
在 Mogan 中插入:
将鼠标悬浮到代码区域,右上角:
点击「复制」:
使用语言菜单切换标签:
cpp-code→python-code移开鼠标:
测试文档
TeXmacs/tests/tmu/209_13.tmu2026/02/04 代码悬浮菜单高度与 package 自动加载修复
What
code-menu的 Inline / Block / Listing 创建入口统一接入code-popup-make。code-popup-make在创建 code tag 前自动确保对应 package 已加载,避免“函数已定义但未生效”。How
src/Plugins/Qt/QTMCodePopup.cpp的QTMCodePopup::autoSize():magf的外框放大逻辑;sizeHint+ 布局边距计算弹窗尺寸;TeXmacs/progs/prog/prog-menu.scm:(prog prog-edit)依赖;make/make*改为code-popup-make,统一走自动 package 确保逻辑。2026/01/29 代码悬浮菜单-语言切换
What
cpp-code→python-code)自动补齐所需宏包。How
src/Edit/Interface/edit_mouse.cppsrc/Plugins/Qt/QTMCodePopup.cppsrc/Plugins/Qt/QTMCodePopup.hppTeXmacs/progs/prog/prog-edit.scm2026/01/28 代码悬浮菜单-复制
What
verbatim。How
QTMCodePopup,并在qt_simple_widget/QTMWidget接入显示与滚动同步。edit_mouse.cpp中沿祖先路径查找代码节点,使用is_verbatim()判断。code-popup-copy,使用clipboard-copy-export "verbatim"实现纯文本复制。#code_popup与#code-popup-button样式。is_verbatim()补齐python-code等标签,与 Scheme 侧定义对齐。