Grow the Emacs Lisp evaluator; run it when Emacs is missing !414

merged merged by cmc on 2026-11-20 22:41 UTC · krz/orgstar:parity-elisp into main

Discussion

cmc

Milestone M1 of docs/plans/2026-11-20-parity.md.

  • Functions and special forms are looked up before arguments are evaluated, so unknown macros are refused instead of failing on a void variable.
  • Adds float-pi, pi, float-e; math (expt sqrt exp log and trig, isnan random logand logior logxor ash); strings; Emacs regexps translated by ElispRegex (with the Emacs Lisp or Org syntax table as Emacs uses them) for string-match, match-*, replace-match, replace-regexp-in-string, split-string; lists, seq and cl functions; defun defvar defconst let-alist, pcase and cl-loop subsets, cl-incf cl-decf.
  • Shared time functions for capture, diary, table formulas and Babel, including org-time-string-to-time, time-add, days-between, time-to-days.
  • Lexical closures, quoted lambdas, condition-case error data and shared list mutation follow Emacs 31.
  • Developer ID: an Emacs Lisp block runs natively when Emacs isn't installed; a table that needs Emacs reports the native reason.

Everything else is refused. Compared with emacs -Q. swift test passes; macOS (APPSTORE) and iOS builds compile. New table reason strings are not yet in Localizable.xcstrings.