krz/orgstar

A native macOS editor for org-mode files. editor org-mode swift

Commit 5765a3a586

5765a3a586375451c81febecbce842b25d796981

parent: e4003d118e

Verified · cmc

cmc <hello@cleberg.net> · 2026-10-08 03:40 UTC

Fix stale comments on table formulas and shrunk columns

Layout: unified · split

Sources/OrgCore/Commands/Table.swift +3 −2
@@ -1,8 +1,9 @@
1import Foundation 1import Foundation
2 2
3// Org tables (org-table.el, Org 9.8.7): alignment and the editing commands, with 3// Org tables (org-table.el, Org 9.8.7): alignment and the editing commands, with
4// `org-table-automatic-realign` t, `org-table-tab-jumps-over-hlines` t, no shrunk columns, 4// `org-table-automatic-realign` t, `org-table-tab-jumps-over-hlines` t,
5// `org-table-fix-formulas-confirm` nil (formulas are fixed silently). 5// `org-table-fix-formulas-confirm` nil (formulas are fixed silently). Shrunk columns are only
6// drawn (`TableShrink`); these commands see the full text.
6 7
7extension EmacsBuffer { 8extension EmacsBuffer {
8 static let numberPattern = "^([<>]?[-+^.0-9]*[0-9][-+^.0-9eEdDx()%:]*|[<>]?[-+]?0[xX][0-9a-fA-F.]+|[<>]?[-+]?[0-9]+#[0-9a-zA-Z.]+|nan|[-+u]?inf)$" 9 static let numberPattern = "^([<>]?[-+^.0-9]*[0-9][-+^.0-9eEdDx()%:]*|[<>]?[-+]?0[xX][0-9a-fA-F.]+|[<>]?[-+]?[0-9]+#[0-9a-zA-Z.]+|nan|[-+u]?inf)$"
Sources/OrgCore/Compute/TableFormulas.swift +3 −2
@@ -2,8 +2,9 @@ import Foundation
2 2
3// Table formulas (org-table.el, Org 9.8.7): `org-table-recalculate` and 3// Table formulas (org-table.el, Org 9.8.7): `org-table-recalculate` and
4// `org-table-eval-formula` with Calc and Lisp evaluated natively. Symbolic results, Calc 4// `org-table-eval-formula` with Calc and Lisp evaluated natively. Symbolic results, Calc
5// features beyond `Calc`, Lisp beyond `Elisp`, remote tables found by ID and relative field 5// features beyond `Calc` and Lisp beyond `Elisp` throw `Calc.Unsupported`; the caller then
6// targets throw `Calc.Unsupported`; the caller then recalculates the table in Emacs. 6// recalculates the table in Emacs. `remote()` finds tables by name in the file, and by ID
7// here or, through `RemoteTables`, in other files.
7 8
8/// Where `remote()` finds tables by ID in other files. 9/// Where `remote()` finds tables by ID in other files.
9public enum RemoteTables { 10public enum RemoteTables {