Commit 5765a3a586
Verified · cmc
Layout: unified · split
Sources/OrgCore/Commands/Table.swift +3 −2
| @@ -1,8 +1,9 @@ | |||
| 1 | import Foundation | 1 | import 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 | ||
| 7 | extension EmacsBuffer { | 8 | extension 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. |
| 9 | public enum RemoteTables { | 10 | public enum RemoteTables { |