diff --git a/TeXmacs/progs/math/math-edit.scm b/TeXmacs/progs/math/math-edit.scm index b4f8164277..30b35055ac 100644 --- a/TeXmacs/progs/math/math-edit.scm +++ b/TeXmacs/progs/math/math-edit.scm @@ -40,7 +40,7 @@ (let* ((s (tm->string b)) (last (and (!= s "") (tmstring-reverse-ref s 0))) (type (and last (math-symbol-type last)))) - (nin? type (list "prefix" "infix" "separator" "prefix-infix" + (nin? type (list "prefix" "infix" "prefix-infix" "opening-bracket" "middle-bracket")))))) (tm-define (skip-decorations-leftwards t) diff --git a/devel/201_101.md b/devel/201_101.md new file mode 100644 index 0000000000..bd8ca3c514 --- /dev/null +++ b/devel/201_101.md @@ -0,0 +1,15 @@ +# #3027 Fix: Allow spaces after separator symbols in math mode + +## 2026/03/26 + +## What +Updated `allow-space-after?` in `math-edit.scm` to permit space insertion after symbols classified as `"separator"`. + +## Why +In math mode, spaces could not be inserted after certain symbols such as commas (`,`), while other punctuation like periods (`.`) allowed spacing. This inconsistency was caused by `"separator"` symbols being explicitly excluded from allowing spaces, leading to unintuitive typing behavior. + +## How +Removed `"separator"` from the exclusion list in `allow-space-after?`. This enables normal space insertion after separator symbols, including `,`, `;`, and `:`. + +## Test +- Verified space insertion after `,`, `;`, `:` works correctly.