Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion TeXmacs/progs/math/math-edit.scm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
15 changes: 15 additions & 0 deletions devel/201_101.md
Original file line number Diff line number Diff line change
@@ -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.