File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 525525(lazy-format (data image) postscript pdf svg gif jpeg png ppm tif webp xpm)
526526
527527(lazy-format (convert rewrite init-rewrite) texmacs verbatim)
528- (lazy-format (data mgs) mgs)
529528(lazy-format (data stm) stm)
530529(lazy-format (data stem) stem)
531530(lazy-format (data tmu) tmu)
Original file line number Diff line number Diff line change 2323 (with l
2424 (filter (lambda (x )
2525 (or (with-developer-tool?)
26- (and (not (string=? x " mgs" ))
27- (not (string=? x " stm" ))
28- (not (string=? x " stem" ))
29- ) ; and
26+ (and (not (string=? x " stm" )) (not (string=? x " stem" )))
3027 ) ; or
3128 ) ; lambda
3229 (cvs " texmacs-snippet" " -snippet" #t )
Original file line number Diff line number Diff line change 175175 (filter (lambda (x )
176176 (and (not (in? x (image-formats)))
177177 (or (with-developer-tool?)
178- (and (not (string=? x " mgs" ))
179- (not (string=? x " stm" ))
180- (not (string=? x " stem" ))
181- ) ; and
178+ (and (not (string=? x " stm" )) (not (string=? x " stem" )))
182179 ) ; or
183180 ) ; and
184181 ) ; lambda
221218 (not (string=? x " latex" ))
222219 (not (string=? x " latex-class" ))
223220 (or (with-developer-tool?)
224- (and (not (string=? x " mgs" ))
225- (not (string=? x " stm" ))
226- (not (string=? x " stem" ))
227- ) ; and
221+ (and (not (string=? x " stm" )) (not (string=? x " stem" )))
228222 ) ; or
229223 ) ; and
230224 ) ; lambda
Original file line number Diff line number Diff line change 243243 (" 1.4" " 1.4" )
244244 (" 1.5" " 1.5" )
245245 (" 1.6" " 1.6" )
246- (" 1.7" " 1.7" ))))
247- (-> " TeXmacs -> Mogan Scheme"
248- (toggle " Formatted Mogan Scheme" " texmacs->mgs:formatted" )))
246+ (" 1.7" " 1.7" )))))
249247 (-> " Mathematics"
250248 (-> " Keyboard"
251249 (item (" Enforce brackets to match" (toggle-matching-brackets)))
Original file line number Diff line number Diff line change 856856
857857;; Mogan Scheme ----------
858858
859- (tm-widget (mogan-scheme-preferences-widget)
860- ======
861- (bold (text "TeXmacs -> Mogan Scheme"))
862- ===
863- (aligned (meti (hlist // (text "Use the Formatted Mogan Scheme"))
864- (toggle (set-boolean-preference "texmacs->mgs: formatted" answer)
865- (get-boolean-preference "texmacs->mgs: formatted")
866- ) ;toggle
867- ) ;meti
868- ) ;aligned
869- ) ;tm-widget
870-
871859;; All converters ----------
872860
873861(tm-widget (conversion-preferences-widget)
880868 (tab (text "Pdf") (centered (dynamic (pdf-preferences-widget))))
881869 ) ;assuming
882870 (tab (text "Image") (centered (dynamic (image-preferences-widget))))
883- (tab (text "Mogan Scheme")
884- (centered (dynamic (mogan-scheme-preferences-widget)))
885- ) ;tab
886871 ) ;tabs
887872 ) ;padded
888873 ===
Original file line number Diff line number Diff line change 740740;;
741741;; 逻辑
742742;; ----
743- ;; 只允许本地、非 tmfs、非 web 且格式为 texmacs/stm/mgs/ tmu 的文档备份;
743+ ;; 只允许本地、非 tmfs、非 web 且格式为 texmacs/stm/tmu 的文档备份;
744744;; 位于 get-texmacs-path 目录或子目录下的内置只读文件直接跳过。
745745;;
746746;; 注意
752752 (not (url-rooted-web? name))
753753 (not (url-rooted-tmfs? name))
754754 (not (auto-backup-texmacs-path-buffer? name))
755- (in? (auto-backup-format name) '("texmacs" "stm" "mgs" " tmu" "stem"))
755+ (in? (auto-backup-format name) '("texmacs" "stm" "tmu" "stem"))
756756 ) ;and
757757) ;tm-define
758758
Original file line number Diff line number Diff line change @@ -80,3 +80,32 @@ S-expression 解析器 `moebius/moebius/data/scheme_der.cpp` 中的 `string_to_s
8080- ` moebius/moebius/data/scheme_der.cpp `
8181- ` TeXmacs/plugins/python/packages/code/python.stem `
8282- ` TeXmacs/tests/stem_python_equiv.scm ` (新增等价性测试)
83+
84+ ## 2026/06/29 移除 mgs 格式
85+
86+ ### What
87+ 彻底移除 ` mgs ` 文件格式及相关 UI 配置,` stem ` 作为继任格式继续保留。
88+
89+ ### Why
90+ - ` stem ` 已完全替代 ` mgs ` ,两者功能重叠。
91+ - ` mgs ` 的格式化转换逻辑不成熟,且已在 ` stem ` 中去除。
92+ - 减少菜单、偏好设置和格式白名单中的冗余条目。
93+
94+ ### How
95+ - 删除 ` TeXmacs/plugins/mgs/progs/data/mgs.scm ` 及空目录 ` TeXmacs/plugins/mgs ` 。
96+ - 在 ` TeXmacs/progs/init-research.scm ` 中移除 ` (lazy-format (data mgs) mgs) ` 。
97+ - 在 ` src/Texmacs/Data/new_buffer.cpp ` 的 ` attach_subformat ` 中移除 ` "mgs" ` 判断。
98+ - 在 ` TeXmacs/progs/texmacs/texmacs/tm-files.scm ` 的自动备份白名单与注释中移除 ` mgs ` 。
99+ - 在 ` TeXmacs/progs/texmacs/menus/file-menu.scm ` 、` edit-menu.scm ` 的开发者工具隐藏列表中移除 ` "mgs" ` 。
100+ - 在 ` TeXmacs/progs/texmacs/menus/preferences-menu.scm ` 中移除 "TeXmacs -> Mogan Scheme" 子菜单。
101+ - 在 ` TeXmacs/progs/texmacs/menus/preferences-widgets.scm ` 中移除 ` mogan-scheme-preferences-widget ` 及其在 Conversion 标签页中的 Tab。
102+
103+ ### 涉及文件
104+ - ` TeXmacs/plugins/mgs/progs/data/mgs.scm ` (删除)
105+ - ` TeXmacs/progs/init-research.scm `
106+ - ` src/Texmacs/Data/new_buffer.cpp `
107+ - ` TeXmacs/progs/texmacs/texmacs/tm-files.scm `
108+ - ` TeXmacs/progs/texmacs/menus/file-menu.scm `
109+ - ` TeXmacs/progs/texmacs/menus/edit-menu.scm `
110+ - ` TeXmacs/progs/texmacs/menus/preferences-menu.scm `
111+ - ` TeXmacs/progs/texmacs/menus/preferences-widgets.scm `
Original file line number Diff line number Diff line change @@ -460,8 +460,7 @@ attach_buffer_notifier (url name) {
460460
461461tree
462462attach_subformat (tree t, url u, string fm) {
463- if ((fm == " texmacs" ) || (fm == " stm" ) || (fm == " mgs" ) || (fm == " stem" ))
464- return t;
463+ if ((fm == " texmacs" ) || (fm == " stm" ) || (fm == " stem" )) return t;
465464 if (!format_exists (fm)) return t;
466465
467466 string s = suffix (u);
You can’t perform that action at this time.
0 commit comments