eliscript 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/COPYING.RUNTIME +93 -0
- package/README.md +15 -3
- package/bin/eliscript-test +29 -0
- package/bootstrap/backends/README.md +5 -4
- package/bootstrap/backends/binary.eli +89 -22
- package/bootstrap/backends/capabilities.eli +9 -4
- package/bootstrap/backends/managed-layout.eli +93 -81
- package/bootstrap/backends/managed.eli +651 -125
- package/bootstrap/backends/native.eli +1791 -324
- package/bootstrap/backends/numeric.eli +71 -7
- package/bootstrap/backends/sha256.eli +165 -68
- package/bootstrap/backends/wasm.eli +461 -52
- package/bootstrap/compiler/analyzer.eli +692 -2
- package/bootstrap/compiler/compiler.eli +16 -3
- package/bootstrap/compiler/emitter.eli +80 -35
- package/bootstrap/compiler/project.eli +175 -1
- package/bootstrap/compiler/transient-analysis.eli +2 -2
- package/bootstrap/host/build.eli +1 -0
- package/bootstrap/host/build.mjs +1 -1
- package/bootstrap/host/build.mjs.map +1 -1
- package/bootstrap/host/bun.mjs +7 -9
- package/bootstrap/host/bun.mjs.map +1 -1
- package/bootstrap/host/check-cli-ground.eli +47 -5
- package/bootstrap/host/check-cli-ground.mjs +60 -19
- package/bootstrap/host/check-cli-ground.mjs.map +1 -1
- package/bootstrap/host/check-cli.mjs +41 -1
- package/bootstrap/host/check-cli.mjs.map +1 -1
- package/bootstrap/host/compiler-session.eli +136 -22
- package/bootstrap/host/eliscript-cli.mjs +1 -1
- package/bootstrap/host/eliscript-cli.mjs.map +1 -1
- package/bootstrap/host/evaluation-cli.eli +33 -1
- package/bootstrap/host/evaluation-cli.mjs +65 -28
- package/bootstrap/host/evaluation-cli.mjs.map +1 -1
- package/bootstrap/host/evaluation.eli +651 -42
- package/bootstrap/host/evaluation.mjs +884 -72
- package/bootstrap/host/evaluation.mjs.map +1 -1
- package/bootstrap/host/project-cli-ground.eli +6 -1
- package/bootstrap/host/project-cli-ground.mjs +33 -32
- package/bootstrap/host/project-cli-ground.mjs.map +1 -1
- package/bootstrap/host/project-cli.mjs +1 -1
- package/bootstrap/host/project-cli.mjs.map +1 -1
- package/bootstrap/host/project-ground.eli +266 -45
- package/bootstrap/host/project-ground.mjs +429 -159
- package/bootstrap/host/project-ground.mjs.map +1 -1
- package/bootstrap/host/project.mjs +30 -40
- package/bootstrap/host/project.mjs.map +1 -1
- package/bootstrap/host/test-cli.eli +379 -0
- package/bootstrap/host/test-cli.mjs +494 -0
- package/bootstrap/host/test-cli.mjs.map +1 -0
- package/browser/README.md +7 -0
- package/browser/host.mjs +21 -29
- package/browser/host.mjs.map +1 -1
- package/browser/worker.mjs +7 -9
- package/browser/worker.mjs.map +1 -1
- package/compiler/eliscript-analyzer.el +694 -0
- package/compiler/eliscript-cli.el +66 -22
- package/compiler/eliscript-emitter.el +67 -43
- package/compiler/eliscript-ir-emitter.el +71 -36
- package/compiler/eliscript-project.el +360 -80
- package/compiler/eliscript-transient-analysis.el +5 -5
- package/compiler/eliscript.el +6 -0
- package/dist/backends/binary.mjs +148 -26
- package/dist/backends/binary.mjs.map +1 -1
- package/dist/backends/capabilities.mjs +11 -4
- package/dist/backends/capabilities.mjs.map +1 -1
- package/dist/backends/elf.mjs +4 -4
- package/dist/backends/elf.mjs.map +1 -1
- package/dist/backends/managed-layout.mjs +53 -56
- package/dist/backends/managed-layout.mjs.map +1 -1
- package/dist/backends/managed.mjs +1116 -375
- package/dist/backends/managed.mjs.map +1 -1
- package/dist/backends/memory.mjs +24 -26
- package/dist/backends/memory.mjs.map +1 -1
- package/dist/backends/native.mjs +2529 -434
- package/dist/backends/native.mjs.map +1 -1
- package/dist/backends/numeric.mjs +140 -33
- package/dist/backends/numeric.mjs.map +1 -1
- package/dist/backends/optimize.mjs +2 -2
- package/dist/backends/optimize.mjs.map +1 -1
- package/dist/backends/regexp.mjs +33 -35
- package/dist/backends/regexp.mjs.map +1 -1
- package/dist/backends/sha256.mjs +159 -59
- package/dist/backends/sha256.mjs.map +1 -1
- package/dist/backends/wasm.mjs +609 -73
- package/dist/backends/wasm.mjs.map +1 -1
- package/dist/bootstrap/analyzer.mjs +1018 -2
- package/dist/bootstrap/analyzer.mjs.map +1 -1
- package/dist/bootstrap/compiler.mjs +30 -23
- package/dist/bootstrap/compiler.mjs.map +1 -1
- package/dist/bootstrap/emitter.mjs +206 -161
- package/dist/bootstrap/emitter.mjs.macro-origins.json +16 -16
- package/dist/bootstrap/emitter.mjs.map +1 -1
- package/dist/bootstrap/expander.mjs +27 -31
- package/dist/bootstrap/expander.mjs.map +1 -1
- package/dist/bootstrap/ir.mjs +22 -24
- package/dist/bootstrap/ir.mjs.map +1 -1
- package/dist/bootstrap/project.mjs +246 -1
- package/dist/bootstrap/project.mjs.map +1 -1
- package/dist/bootstrap/reader.mjs +2 -2
- package/dist/bootstrap/reader.mjs.map +1 -1
- package/dist/bootstrap/source-map.mjs +34 -48
- package/dist/bootstrap/source-map.mjs.map +1 -1
- package/dist/bootstrap/transient-analysis.mjs +2 -2
- package/dist/bootstrap/transient-analysis.mjs.map +1 -1
- package/dist/browser/compiler.js +106 -106
- package/dist/browser/host.mjs +21 -29
- package/dist/browser/loader.js +1 -1
- package/dist/browser/worker.mjs +95 -95
- package/dist/compiler-artifact.json +1 -1
- package/dist/host/compiler-session.mjs +405 -228
- package/dist/host/compiler-session.mjs.map +1 -1
- package/dist/host/compiler-tools.mjs +44 -46
- package/dist/host/compiler-tools.mjs.map +1 -1
- package/dist/literal-sources/runtime/core/array-map.eli +45 -0
- package/dist/literal-sources/runtime/core/collection-internals.eli +22 -2
- package/dist/literal-sources/runtime/core/collection.eli +282 -23
- package/dist/literal-sources/runtime/core/data-text.eli +196 -13
- package/dist/literal-sources/runtime/core/data.eli +1 -1
- package/dist/literal-sources/runtime/core/identifier.eli +1 -1
- package/dist/literal-sources/runtime/core/lazy-sequence.eli +822 -44
- package/dist/literal-sources/runtime/core/list.eli +1 -1
- package/dist/literal-sources/runtime/core/map.eli +1 -1
- package/dist/literal-sources/runtime/core/metadata-internals.eli +2 -2
- package/dist/literal-sources/runtime/core/metadata.eli +2 -2
- package/dist/literal-sources/{stdlib/core/object.eli → runtime/core/object-impl.eli} +6 -6
- package/dist/literal-sources/runtime/core/object.eli +1 -1
- package/dist/literal-sources/runtime/core/order.eli +3 -3
- package/dist/literal-sources/runtime/core/persistent-kind.eli +1 -1
- package/dist/literal-sources/{stdlib/core/protocol.eli → runtime/core/protocol-impl.eli} +2 -2
- package/dist/literal-sources/runtime/core/protocol.eli +5 -3
- package/dist/literal-sources/runtime/core/queue.eli +1 -1
- package/dist/literal-sources/runtime/core/record.eli +3 -3
- package/dist/literal-sources/runtime/core/regex.eli +2 -2
- package/dist/literal-sources/runtime/core/sequence.eli +1 -1
- package/dist/literal-sources/runtime/core/set-algebra.eli +1 -1
- package/dist/literal-sources/runtime/core/set.eli +1 -1
- package/dist/literal-sources/runtime/core/sorted.eli +4 -4
- package/dist/literal-sources/{stdlib/core/text.eli → runtime/core/text-impl.eli} +2 -2
- package/dist/literal-sources/runtime/core/text.eli +1 -1
- package/dist/literal-sources/runtime/core/transducer.eli +24 -2
- package/dist/literal-sources/runtime/core/transient.eli +7 -5
- package/dist/literal-sources/runtime/core/type.eli +1 -1
- package/dist/literal-sources/runtime/core/value-internals.eli +3 -3
- package/dist/literal-sources/runtime/core/value.eli +2 -2
- package/dist/literal-sources/runtime/core/vector.eli +5 -2
- package/dist/literal-sources/{stdlib → runtime/managed}/managed-literal-protocols.eli +100 -34
- package/dist/literal-sources/{stdlib → runtime/managed}/managed-literals.eli +406 -81
- package/{stdlib → dist/literal-sources/runtime/managed}/managed-queue-state.eli +1 -1
- package/{stdlib → dist/literal-sources/runtime/managed}/managed-sorted-state.eli +1 -1
- package/dist/literal-sources/runtime/managed/managed-transient-state.eli +1206 -0
- package/{stdlib → dist/literal-sources/runtime/managed}/managed-value-state.eli +30 -6
- package/dist/literal-sources/{stdlib → runtime/managed}/managed-vector-view-state.eli +1 -1
- package/dist/literal-sources/runtime/wire/http-rpc.eli +1 -1
- package/dist/literal-sources/runtime/wire/markdown.eli +1 -1
- package/dist/literal-sources/runtime/wire/schema.eli +1 -1
- package/dist/literal-sources/stdlib/bit.eli +89 -1
- package/dist/literal-sources/stdlib/data.eli +522 -0
- package/dist/literal-sources/stdlib/interop/object.eli +39 -0
- package/dist/literal-sources/stdlib/persistent-list.eli +60 -21
- package/dist/literal-sources/stdlib/persistent-map.eli +335 -324
- package/dist/literal-sources/stdlib/persistent-set.eli +8 -6
- package/dist/literal-sources/stdlib/persistent-vector.eli +18 -18
- package/dist/literal-sources/stdlib/protocol.eli +63 -0
- package/{stdlib/core → dist/literal-sources/stdlib}/set.eli +8 -8
- package/dist/literal-sources/stdlib/string.eli +362 -0
- package/dist/runtime/lisp/async-runtime.mjs +55 -59
- package/dist/runtime/lisp/async-runtime.mjs.map +1 -1
- package/dist/runtime/lisp/builtins.mjs +232 -280
- package/dist/runtime/lisp/builtins.mjs.map +1 -1
- package/dist/runtime/lisp/cli.mjs +159 -167
- package/dist/runtime/lisp/cli.mjs.map +1 -1
- package/dist/runtime/lisp/compiler.mjs +359 -419
- package/dist/runtime/lisp/compiler.mjs.map +1 -1
- package/dist/runtime/lisp/core.mjs +24 -24
- package/dist/runtime/lisp/core.mjs.map +1 -1
- package/dist/runtime/lisp/evaluator.mjs +315 -385
- package/dist/runtime/lisp/evaluator.mjs.map +1 -1
- package/dist/runtime/lisp/extensions.mjs +85 -103
- package/dist/runtime/lisp/extensions.mjs.map +1 -1
- package/dist/runtime/lisp/host-io.mjs +106 -122
- package/dist/runtime/lisp/host-io.mjs.map +1 -1
- package/dist/runtime/lisp/io-worker.mjs +117 -135
- package/dist/runtime/lisp/io-worker.mjs.map +1 -1
- package/dist/runtime/lisp/keymap.mjs +5 -5
- package/dist/runtime/lisp/keymap.mjs.map +1 -1
- package/dist/runtime/lisp/macros-forms.mjs +49 -51
- package/dist/runtime/lisp/macros-forms.mjs.map +1 -1
- package/dist/runtime/lisp/reader-format.mjs +31 -31
- package/dist/runtime/lisp/reader-format.mjs.map +1 -1
- package/dist/runtime/lisp/regexp-buffer.mjs +9 -9
- package/dist/runtime/lisp/regexp-buffer.mjs.map +1 -1
- package/dist/runtime/math.mjs +32 -38
- package/dist/runtime/math.mjs.map +1 -1
- package/dist/runtime/number-radix.mjs +5 -7
- package/dist/runtime/number-radix.mjs.map +1 -1
- package/dist/runtime/primitives.mjs +81 -46
- package/dist/runtime/primitives.mjs.macro-origins.json +294 -44
- package/dist/runtime/primitives.mjs.map +1 -1
- package/dist/runtime/unicode-case.mjs +6 -6
- package/dist/runtime/unicode-case.mjs.map +1 -1
- package/dist/runtime.eli +3068 -1882
- package/dist/stage3-release.json +1 -1
- package/dist/stdlib/async.mjs +1838 -0
- package/dist/stdlib/bit.mjs +116 -0
- package/dist/stdlib/collection.mjs +193 -0
- package/dist/stdlib/core.mjs +28 -0
- package/dist/stdlib/data-text.mjs +54 -0
- package/dist/stdlib/data.mjs +601 -0
- package/dist/stdlib/devtools.mjs +565 -0
- package/dist/stdlib/diff.mjs +180 -0
- package/dist/stdlib/fn.mjs +164 -0
- package/dist/stdlib/hierarchy.mjs +189 -0
- package/dist/stdlib/identifier.mjs +33 -0
- package/dist/stdlib/interop/js.mjs +706 -0
- package/dist/stdlib/interop/object.mjs +40 -0
- package/dist/stdlib/json.mjs +843 -0
- package/dist/stdlib/lazy-sequence.mjs +117 -0
- package/dist/stdlib/math.mjs +386 -0
- package/dist/stdlib/meta.mjs +21 -0
- package/dist/stdlib/multimethod.mjs +345 -0
- package/dist/stdlib/numeric.mjs +327 -0
- package/dist/stdlib/order.mjs +194 -0
- package/dist/stdlib/persistent-list.mjs +171 -0
- package/dist/stdlib/persistent-map.mjs +781 -0
- package/dist/stdlib/persistent-queue.mjs +44 -0
- package/dist/stdlib/persistent-set.mjs +225 -0
- package/dist/stdlib/persistent-vector.mjs +316 -0
- package/dist/stdlib/portable/data-text.mjs +1094 -0
- package/dist/stdlib/portable/data.mjs +62 -0
- package/dist/stdlib/portable/identifier.mjs +179 -0
- package/dist/stdlib/portable/metadata.mjs +63 -0
- package/dist/stdlib/portable/object.mjs +140 -0
- package/dist/stdlib/portable/sequence.mjs +142 -0
- package/dist/stdlib/portable/text.mjs +111 -0
- package/dist/stdlib/pprint.mjs +807 -0
- package/dist/stdlib/protocol.mjs +61 -0
- package/dist/stdlib/record.mjs +25 -0
- package/dist/stdlib/regex.mjs +115 -0
- package/dist/stdlib/result.mjs +198 -0
- package/dist/stdlib/schema.mjs +2828 -0
- package/dist/stdlib/seq.mjs +913 -0
- package/dist/stdlib/set.mjs +317 -0
- package/dist/stdlib/sorted.mjs +56 -0
- package/dist/stdlib/state.mjs +451 -0
- package/dist/stdlib/string.mjs +494 -0
- package/dist/stdlib/tap.mjs +187 -0
- package/dist/stdlib/test.mjs +669 -0
- package/dist/stdlib/time.mjs +522 -0
- package/dist/stdlib/transducer.mjs +85 -0
- package/dist/stdlib/transient.mjs +32 -0
- package/dist/stdlib/type.mjs +28 -0
- package/dist/stdlib/uuid.mjs +377 -0
- package/dist/stdlib/value.mjs +334 -0
- package/dist/stdlib/walk.mjs +243 -0
- package/dist/stdlib/wire/gepo.mjs +28 -0
- package/dist/stdlib/wire/mdp.mjs +13 -0
- package/dist/stdlib/wire/mds.mjs +10 -0
- package/dist/stdlib/zipper.mjs +1025 -0
- package/editor/README.md +15 -0
- package/editor/eliscript-data.el +221 -8
- package/editor/eliscript-mode.el +207 -48
- package/editor/eliscript-runtime.el +6 -3
- package/package.json +49 -15
- package/platform/README.md +6 -0
- package/platform/browser.mjs +10 -12
- package/platform/browser.mjs.map +1 -1
- package/runtime/README.md +12 -5
- package/runtime/core/array-map.eli +538 -0
- package/runtime/core/array-map.mjs +651 -0
- package/runtime/core/array-map.mjs.map +1 -0
- package/runtime/core/collection-internals.eli +85 -33
- package/runtime/core/collection-internals.mjs +245 -193
- package/runtime/core/collection-internals.mjs.map +1 -1
- package/runtime/core/collection.eli +105 -3
- package/runtime/core/collection.mjs +190 -53
- package/runtime/core/collection.mjs.map +1 -1
- package/runtime/core/data-text.eli +224 -16
- package/runtime/core/data-text.mjs +345 -83
- package/runtime/core/data-text.mjs.map +1 -1
- package/runtime/core/data.eli +50 -33
- package/runtime/core/data.mjs +72 -36
- package/runtime/core/data.mjs.map +1 -1
- package/runtime/core/identifier.mjs +15 -19
- package/runtime/core/identifier.mjs.map +1 -1
- package/runtime/core/lazy-sequence.eli +885 -15
- package/runtime/core/lazy-sequence.mjs +1265 -38
- package/runtime/core/lazy-sequence.mjs.map +1 -1
- package/runtime/core/map-internals.eli +209 -1
- package/runtime/core/map-internals.mjs +359 -71
- package/runtime/core/map-internals.mjs.map +1 -1
- package/runtime/core/map.eli +75 -7
- package/runtime/core/map.mjs +122 -47
- package/runtime/core/map.mjs.map +1 -1
- package/{stdlib/core/object.eli → runtime/core/object-impl.eli} +6 -6
- package/runtime/core/object-impl.mjs +5 -5
- package/runtime/core/object-impl.mjs.map +1 -1
- package/runtime/core/order.eli +15 -3
- package/runtime/core/order.mjs +23 -8
- package/runtime/core/order.mjs.map +1 -1
- package/runtime/core/persistent-kind.mjs +9 -13
- package/runtime/core/persistent-kind.mjs.map +1 -1
- package/runtime/core/protocol-error.mjs +9 -11
- package/runtime/core/protocol-error.mjs.map +1 -1
- package/{stdlib/core/protocol.eli → runtime/core/protocol-impl.eli} +2 -2
- package/runtime/core/protocol-impl.mjs +10 -10
- package/runtime/core/protocol-impl.mjs.map +1 -1
- package/runtime/core/queue.mjs +14 -16
- package/runtime/core/queue.mjs.map +1 -1
- package/runtime/core/record.eli +2 -2
- package/runtime/core/record.mjs +13 -17
- package/runtime/core/record.mjs.map +1 -1
- package/runtime/core/regex.mjs +18 -22
- package/runtime/core/regex.mjs.map +1 -1
- package/runtime/core/sequence.eli +33 -31
- package/runtime/core/sequence.mjs +60 -93
- package/runtime/core/sequence.mjs.map +1 -1
- package/runtime/core/set.eli +53 -27
- package/runtime/core/set.mjs +113 -82
- package/runtime/core/set.mjs.map +1 -1
- package/runtime/core/sorted.mjs +91 -108
- package/runtime/core/sorted.mjs.map +1 -1
- package/{stdlib/core/text.eli → runtime/core/text-impl.eli} +2 -2
- package/runtime/core/text-impl.mjs +1 -1
- package/runtime/core/text-impl.mjs.map +1 -1
- package/runtime/core/transducer.eli +24 -0
- package/runtime/core/transducer.mjs +27 -1
- package/runtime/core/transducer.mjs.map +1 -1
- package/runtime/core/transient-internals.eli +12 -4
- package/runtime/core/transient-internals.mjs +19 -6
- package/runtime/core/transient-internals.mjs.map +1 -1
- package/runtime/core/transient.eli +31 -0
- package/runtime/core/transient.mjs +33 -2
- package/runtime/core/transient.mjs.map +1 -1
- package/runtime/core/value-internals.mjs +29 -35
- package/runtime/core/value-internals.mjs.map +1 -1
- package/runtime/core/vector.eli +73 -20
- package/runtime/core/vector.mjs +159 -156
- package/runtime/core/vector.mjs.map +1 -1
- package/runtime/literals.eli +16 -9
- package/runtime/literals.mjs +25 -9
- package/runtime/literals.mjs.map +1 -1
- package/{stdlib → runtime/managed}/managed-literal-protocols.eli +100 -34
- package/{stdlib → runtime/managed}/managed-literals.eli +406 -81
- package/{dist/literal-sources/stdlib → runtime/managed}/managed-queue-state.eli +1 -1
- package/runtime/managed/managed-runtime-array-map.eli +45 -0
- package/{stdlib → runtime/managed}/managed-runtime-collection-internals.eli +22 -2
- package/{stdlib → runtime/managed}/managed-runtime-collection.eli +282 -23
- package/{stdlib → runtime/managed}/managed-runtime-data-text.eli +196 -13
- package/{stdlib → runtime/managed}/managed-runtime-data.eli +1 -1
- package/{stdlib → runtime/managed}/managed-runtime-identifier.eli +1 -1
- package/runtime/managed/managed-runtime-lazy-sequence.eli +935 -0
- package/{stdlib → runtime/managed}/managed-runtime-list.eli +1 -1
- package/{stdlib → runtime/managed}/managed-runtime-map.eli +1 -1
- package/{stdlib → runtime/managed}/managed-runtime-metadata-internals.eli +2 -2
- package/{stdlib → runtime/managed}/managed-runtime-metadata.eli +2 -2
- package/{stdlib → runtime/managed}/managed-runtime-object.eli +1 -1
- package/{stdlib → runtime/managed}/managed-runtime-order.eli +3 -3
- package/{stdlib → runtime/managed}/managed-runtime-persistent-kind.eli +1 -1
- package/{stdlib → runtime/managed}/managed-runtime-protocol.eli +5 -3
- package/{stdlib → runtime/managed}/managed-runtime-queue.eli +1 -1
- package/{stdlib → runtime/managed}/managed-runtime-record.eli +3 -3
- package/{stdlib → runtime/managed}/managed-runtime-regex.eli +2 -2
- package/{stdlib → runtime/managed}/managed-runtime-sequence.eli +1 -1
- package/{stdlib → runtime/managed}/managed-runtime-set-algebra.eli +1 -1
- package/{stdlib → runtime/managed}/managed-runtime-set.eli +1 -1
- package/{stdlib → runtime/managed}/managed-runtime-sorted.eli +4 -4
- package/{stdlib → runtime/managed}/managed-runtime-text.eli +1 -1
- package/{stdlib → runtime/managed}/managed-runtime-transducer.eli +24 -2
- package/{stdlib → runtime/managed}/managed-runtime-transient.eli +7 -5
- package/{stdlib → runtime/managed}/managed-runtime-type.eli +1 -1
- package/{stdlib → runtime/managed}/managed-runtime-value-internals.eli +3 -3
- package/{stdlib → runtime/managed}/managed-runtime-value.eli +2 -2
- package/{stdlib → runtime/managed}/managed-runtime-vector.eli +5 -2
- package/{dist/literal-sources/stdlib → runtime/managed}/managed-sorted-state.eli +1 -1
- package/runtime/managed/managed-transient-state.eli +1206 -0
- package/{dist/literal-sources/stdlib → runtime/managed}/managed-value-state.eli +30 -6
- package/{stdlib → runtime/managed}/managed-vector-view-state.eli +1 -1
- package/{stdlib → runtime/managed}/managed-wire-http-rpc.eli +1 -1
- package/{stdlib → runtime/managed}/managed-wire-markdown.eli +1 -1
- package/{stdlib → runtime/managed}/managed-wire-schema.eli +1 -1
- package/runtime/math.mjs +32 -38
- package/runtime/math.mjs.map +1 -1
- package/runtime/number-radix.mjs +5 -7
- package/runtime/number-radix.mjs.map +1 -1
- package/runtime/primitives.eli +19 -6
- package/runtime/primitives.mjs +81 -46
- package/runtime/primitives.mjs.map +1 -1
- package/runtime/source-mapping.mjs +17 -23
- package/runtime/source-mapping.mjs.map +1 -1
- package/runtime/testing/map.eli +70 -41
- package/runtime/testing/map.mjs +57 -34
- package/runtime/testing/map.mjs.map +1 -1
- package/runtime/unicode-case.mjs +6 -6
- package/runtime/unicode-case.mjs.map +1 -1
- package/runtime/wire/http-rpc.mjs +12 -18
- package/runtime/wire/http-rpc.mjs.map +1 -1
- package/runtime/wire/markdown.mjs +42 -42
- package/runtime/wire/markdown.mjs.map +1 -1
- package/runtime/wire/schema.mjs +13 -13
- package/runtime/wire/schema.mjs.map +1 -1
- package/runtime/worker-value-codec.mjs +5 -7
- package/runtime/worker-value-codec.mjs.map +1 -1
- package/runtime/worker-value-stream.mjs +128 -135
- package/runtime/worker-value-stream.mjs.map +1 -1
- package/runtime/worker.mjs +75 -89
- package/runtime/worker.mjs.map +1 -1
- package/stdlib/README.md +25 -18
- package/stdlib/async.eli +1245 -0
- package/stdlib/bit.eli +89 -1
- package/stdlib/bit.mjs +89 -2
- package/stdlib/bit.mjs.map +1 -1
- package/stdlib/{core/collection.eli → collection.eli} +39 -4
- package/stdlib/core.eli +956 -0
- package/stdlib/data-text.eli +62 -1091
- package/stdlib/data.eli +517 -37
- package/stdlib/devtools.eli +399 -0
- package/stdlib/diff.eli +134 -0
- package/stdlib/{function.eli → fn.eli} +1 -1
- package/stdlib/identifier.eli +21 -136
- package/stdlib/interop/object.eli +39 -0
- package/stdlib/{core/lazy-sequence.eli → lazy-sequence.eli} +28 -2
- package/stdlib/math.eli +267 -0
- package/stdlib/{core/metadata.eli → meta.eli} +2 -2
- package/stdlib/{core/order.eli → order.eli} +6 -6
- package/stdlib/persistent-list.eli +60 -21
- package/stdlib/persistent-map.eli +335 -324
- package/stdlib/persistent-set.eli +8 -6
- package/stdlib/persistent-vector.eli +18 -18
- package/stdlib/portable/data-text.eli +1092 -0
- package/stdlib/portable/data.eli +42 -0
- package/stdlib/portable/identifier.eli +147 -0
- package/stdlib/{metadata.eli → portable/metadata.eli} +5 -5
- package/stdlib/{object.eli → portable/object.eli} +1 -1
- package/stdlib/{sequence.eli → portable/sequence.eli} +1 -1
- package/stdlib/{text.eli → portable/text.eli} +1 -1
- package/stdlib/pprint.eli +588 -0
- package/stdlib/protocol.eli +63 -0
- package/stdlib/{core/record.eli → record.eli} +2 -2
- package/stdlib/regex.eli +70 -0
- package/stdlib/result.eli +53 -44
- package/stdlib/schema.eli +1886 -0
- package/stdlib/{core/seq.eli → seq.eli} +97 -90
- package/{dist/literal-sources/stdlib/core → stdlib}/set.eli +8 -8
- package/stdlib/{core/sorted.eli → sorted.eli} +2 -2
- package/stdlib/{state/atom.eli → state.eli} +137 -7
- package/stdlib/string.eli +362 -0
- package/stdlib/tap.eli +135 -0
- package/stdlib/test.eli +566 -0
- package/stdlib/time.eli +419 -0
- package/stdlib/{core/transducer.eli → transducer.eli} +4 -2
- package/stdlib/{core/transient.eli → transient.eli} +11 -5
- package/stdlib/{core/type.eli → type.eli} +2 -2
- package/stdlib/uuid.eli +288 -0
- package/stdlib/{core/walk.eli → walk.eli} +6 -6
- package/stdlib/{gepo.eli → wire/gepo.eli} +2 -2
- package/stdlib/{mdp.eli → wire/mdp.eli} +2 -2
- package/stdlib/{mds.eli → wire/mds.eli} +2 -2
- package/stdlib/{core/zipper.eli → zipper.eli} +179 -138
- package/tests/helpers/wasm-managed-math-node.mjs +495 -582
- package/tools/acceptance/check-ground.mjs +106 -132
- package/tools/acceptance/check.mjs +16 -16
- package/tools/acceptance/retained-performance-snapshot.mjs +265 -149
- package/tools/acceptance/retained-soak.mjs +5 -7
- package/tools/acceptance/retained-transient.mjs +5 -7
- package/tools/backends/build.mjs +373 -95
- package/tools/backends/compiler-bootstrap.mjs +271 -317
- package/tools/backends/compiler-browser.mjs +7 -9
- package/tools/backends/compiler-build.mjs +77 -97
- package/tools/backends/compiler-cli-ground.mjs +47 -47
- package/tools/backends/compiler-data-transport.mjs +27 -31
- package/tools/backends/compiler-host-iteration.mjs +13 -21
- package/tools/backends/compiler-host-record.mjs +28 -34
- package/tools/backends/compiler-metadata.mjs +145 -53
- package/tools/backends/compiler-package-ground.mjs +39 -47
- package/tools/backends/compiler-package-loader.mjs +164 -206
- package/tools/backends/compiler-session.mjs +432 -324
- package/tools/backends/compiler-worker.mjs +79 -89
- package/tools/backends/dist/bootstrap-js-stages.mjs +17 -19
- package/tools/backends/dist/bootstrap-js-stages.mjs.map +1 -1
- package/tools/backends/dist/managed-ir-inventory.mjs +1 -1
- package/tools/backends/dist/managed-ir-inventory.mjs.map +1 -1
- package/tools/backends/dist/release-cli.mjs +151 -22
- package/tools/backends/dist/release-cli.mjs.map +1 -1
- package/tools/backends/dist/run-artifact.mjs +54 -76
- package/tools/backends/dist/run-artifact.mjs.map +1 -1
- package/tools/backends/managed-foreign-binding.mjs +370 -114
- package/tools/backends/managed-host-ground.mjs +14 -17
- package/tools/backends/managed-host-lifecycle.mjs +42 -53
- package/tools/backends/managed-host-object-realm.mjs +121 -111
- package/tools/backends/managed-host-proxy.mjs +5 -7
- package/tools/backends/managed-host-runtime.mjs +6295 -4350
- package/tools/backends/managed-host.mjs +234 -188
- package/tools/backends/managed-layout.mjs +53 -56
- package/tools/backends/managed-module-graph-ground.mjs +488 -568
- package/tools/backends/managed-module-graph.mjs +62 -76
- package/tools/backends/managed-runtime-host-ground.mjs +352 -400
- package/tools/backends/managed-runtime.mjs +227 -266
- package/tools/backends/managed-source-view-ground.mjs +165 -161
- package/tools/backends/managed-source-view.mjs +415 -154
- package/tools/backends/native-managed-runtime.mjs +96 -138
- package/tools/backends/native-memory.mjs +1122 -742
- package/tools/backends/native-node-ffi.mjs +2439 -0
- package/tools/backends/native-node-memory.mjs +793 -383
- package/tools/backends/native-node-runner.mjs +1458 -579
- package/tools/backends/native-node-watchdog.mjs +12 -14
- package/tools/backends/native-node-worker.mjs +46 -50
- package/tools/backends/stage3-targets.mjs +2 -2
- package/tools/bootstrap-runtime.el +4 -4
- package/tools/collections/transient-builder-benchmark.mjs +17 -17
- package/tools/project/check-cli.eli +27 -3
- package/tools/project/project-cli.eli +1 -1
- package/tools/testing/maintained-suite-source.mjs +5 -7
- package/tools/testing/maintained-suite-source.mjs.map +1 -1
- package/dist/literal-sources/stdlib/core/data.eli +0 -306
- package/dist/literal-sources/stdlib/managed-transient-state.eli +0 -353
- package/stdlib/core/data-text.eli +0 -16
- package/stdlib/core/data.eli +0 -306
- package/stdlib/core/identifier.eli +0 -32
- package/stdlib/core/regex.eli +0 -17
- package/stdlib/deferred.eli +0 -70
- package/stdlib/managed-runtime-lazy-sequence.eli +0 -157
- package/stdlib/managed-transient-state.eli +0 -353
- /package/{stdlib → runtime/managed}/managed-protocol-error.eli +0 -0
- /package/{stdlib → runtime/managed}/managed-runtime-literals.eli +0 -0
- /package/{stdlib → runtime/managed}/managed-runtime-truth.eli +0 -0
- /package/{stdlib → runtime/managed}/managed-testing-value.eli +0 -0
|
@@ -92,7 +92,7 @@ function el_install_kernel(session) {
|
|
|
92
92
|
return el_compare_chain(">=", xs);
|
|
93
93
|
}));
|
|
94
94
|
d("/=", ((a, b) => {
|
|
95
|
-
return el_bool(((
|
|
95
|
+
return el_bool((el_num(a) !== el_num(b)));
|
|
96
96
|
}));
|
|
97
97
|
d("max", ((a, b = null, ...xs) => {
|
|
98
98
|
if ((b == null)) {
|
|
@@ -118,7 +118,7 @@ function el_install_kernel(session) {
|
|
|
118
118
|
} else {
|
|
119
119
|
{
|
|
120
120
|
let best = (__eliscript_numeric_relation(">", el_num(b), el_num(a)) ? b : a);
|
|
121
|
-
let fl = ((
|
|
121
|
+
let fl = ((__eliscript_value_1) => (__eliscript_truthy(__eliscript_value_1) ? __eliscript_value_1 : ((__eliscript_value_2) => (__eliscript_truthy(__eliscript_value_2) ? __eliscript_value_2 : (xs)["some"](((x) => {
|
|
122
122
|
return el_float_QMARK_(x);
|
|
123
123
|
}))))(el_float_QMARK_(b))))(el_float_QMARK_(a));
|
|
124
124
|
(xs)["forEach"](((x) => {
|
|
@@ -161,7 +161,7 @@ function el_install_kernel(session) {
|
|
|
161
161
|
} else {
|
|
162
162
|
{
|
|
163
163
|
let best = (__eliscript_numeric_relation("<", el_num(b), el_num(a)) ? b : a);
|
|
164
|
-
let fl = ((
|
|
164
|
+
let fl = ((__eliscript_value_3) => (__eliscript_truthy(__eliscript_value_3) ? __eliscript_value_3 : ((__eliscript_value_4) => (__eliscript_truthy(__eliscript_value_4) ? __eliscript_value_4 : (xs)["some"](((x) => {
|
|
165
165
|
return el_float_QMARK_(x);
|
|
166
166
|
}))))(el_float_QMARK_(b))))(el_float_QMARK_(a));
|
|
167
167
|
(xs)["forEach"](((x) => {
|
|
@@ -288,7 +288,7 @@ function el_install_kernel(session) {
|
|
|
288
288
|
return el_bool(el_cons_QMARK_(x));
|
|
289
289
|
}));
|
|
290
290
|
d1("listp", ((x) => {
|
|
291
|
-
return el_bool(((
|
|
291
|
+
return el_bool(((__eliscript_value_5) => (__eliscript_truthy(__eliscript_value_5) ? __eliscript_value_5 : el_cons_QMARK_(x)))((x === null)));
|
|
292
292
|
}));
|
|
293
293
|
d1("nlistp", ((x) => {
|
|
294
294
|
return el_bool((!((x === null) || __eliscript_truthy(el_cons_QMARK_(x)))));
|
|
@@ -299,7 +299,7 @@ function el_install_kernel(session) {
|
|
|
299
299
|
d("plistp", ((x) => {
|
|
300
300
|
{
|
|
301
301
|
let len = el_proper_list_length(x);
|
|
302
|
-
return el_bool(((
|
|
302
|
+
return el_bool(((__eliscript_value_6) => (__eliscript_truthy(__eliscript_value_6) ? (el_mod_int(len, 2) === 0) : __eliscript_value_6))(el_integer_QMARK_(len)));
|
|
303
303
|
}
|
|
304
304
|
}));
|
|
305
305
|
d1("symbolp", ((x) => {
|
|
@@ -327,7 +327,7 @@ function el_install_kernel(session) {
|
|
|
327
327
|
return null;
|
|
328
328
|
}));
|
|
329
329
|
d1("natnump", ((x) => {
|
|
330
|
-
return el_bool(((
|
|
330
|
+
return el_bool(((__eliscript_value_7) => (__eliscript_truthy(__eliscript_value_7) ? __eliscript_numeric_relation(">=", x, 0) : __eliscript_value_7))(el_integer_QMARK_(x)));
|
|
331
331
|
}));
|
|
332
332
|
d1("floatp", ((x) => {
|
|
333
333
|
return el_bool(el_float_QMARK_(x));
|
|
@@ -348,22 +348,22 @@ function el_install_kernel(session) {
|
|
|
348
348
|
return el_bool((el_mod_int(el_num(x), 2) === 1));
|
|
349
349
|
}));
|
|
350
350
|
d1("characterp", ((x) => {
|
|
351
|
-
return el_bool(((
|
|
351
|
+
return el_bool(((__eliscript_value_8) => (__eliscript_truthy(__eliscript_value_8) ? (__eliscript_numeric_relation(">=", x, 0) && __eliscript_numeric_relation("<=", x, 4194303)) : __eliscript_value_8))(el_integer_QMARK_(x)));
|
|
352
352
|
}));
|
|
353
353
|
d1("vectorp", ((x) => {
|
|
354
354
|
return el_bool(el_vector_QMARK_(x));
|
|
355
355
|
}));
|
|
356
356
|
d1("arrayp", ((x) => {
|
|
357
|
-
return el_bool(((
|
|
357
|
+
return el_bool(((__eliscript_value_9) => (__eliscript_truthy(__eliscript_value_9) ? __eliscript_value_9 : el_string_QMARK_(x)))(el_vector_QMARK_(x)));
|
|
358
358
|
}));
|
|
359
359
|
d1("sequencep", ((x) => {
|
|
360
|
-
return el_bool(((
|
|
360
|
+
return el_bool(((__eliscript_value_10) => (__eliscript_truthy(__eliscript_value_10) ? __eliscript_value_10 : ((__eliscript_value_11) => (__eliscript_truthy(__eliscript_value_11) ? __eliscript_value_11 : ((__eliscript_value_12) => (__eliscript_truthy(__eliscript_value_12) ? __eliscript_value_12 : el_string_QMARK_(x)))(el_vector_QMARK_(x))))(el_cons_QMARK_(x))))((x === null)));
|
|
361
361
|
}));
|
|
362
362
|
d1("recordp", ((x) => {
|
|
363
363
|
return el_bool(el_record_QMARK_(x));
|
|
364
364
|
}));
|
|
365
365
|
d("functionp", ((x) => {
|
|
366
|
-
return el_bool(((
|
|
366
|
+
return el_bool(((__eliscript_value_13) => (__eliscript_truthy(__eliscript_value_13) ? __eliscript_value_13 : ((__eliscript_value_14) => (__eliscript_truthy(__eliscript_value_14) ? __eliscript_value_14 : ((__eliscript_value_16) => (__eliscript_truthy(__eliscript_value_16) ? ((x)["car"] === s_lambda) : __eliscript_value_16))(el_cons_QMARK_(x))))(((__eliscript_value_15) => (__eliscript_truthy(__eliscript_value_15) ? ((!__eliscript_truthy(el_keyword_QMARK_(x))) && (!(el_symbol_function(session, x) === null)) && (!__eliscript_truthy(((session)["macros"])["has"](x)))) : __eliscript_value_15))(el_symobj_QMARK_(x)))))(el_function_QMARK_(x)));
|
|
367
367
|
}));
|
|
368
368
|
d1("subrp", ((x) => {
|
|
369
369
|
return el_bool(el_function_QMARK_(x));
|
|
@@ -378,7 +378,7 @@ function el_install_kernel(session) {
|
|
|
378
378
|
return el_bool(((x === null) || (x === true)));
|
|
379
379
|
}));
|
|
380
380
|
d1("char-or-string-p", ((x) => {
|
|
381
|
-
return el_bool(((
|
|
381
|
+
return el_bool(((__eliscript_value_17) => (__eliscript_truthy(__eliscript_value_17) ? __eliscript_value_17 : el_integer_QMARK_(x)))(el_string_QMARK_(x)));
|
|
382
382
|
}));
|
|
383
383
|
d1("type-of", ((x) => {
|
|
384
384
|
return el_intern(el_type_of(x));
|
|
@@ -615,7 +615,7 @@ function el_install_kernel(session) {
|
|
|
615
615
|
}));
|
|
616
616
|
d("assoc-string", ((k, l, fold = null) => {
|
|
617
617
|
return el_assoc_with(el_symbol_name_or_string(k), l, ((a, b) => {
|
|
618
|
-
return ((
|
|
618
|
+
return ((__eliscript_value_18) => (__eliscript_truthy(__eliscript_value_18) ? ((!((fold == null)) && !((fold === null))) ? ((a)["toLowerCase"]() === (el_symbol_name_or_string(b))["toLowerCase"]()) : (a === el_symbol_name_or_string(b))) : __eliscript_value_18))(((__eliscript_value_19) => (__eliscript_truthy(__eliscript_value_19) ? __eliscript_value_19 : el_symobj_QMARK_(b)))(el_string_QMARK_(b)));
|
|
619
619
|
}));
|
|
620
620
|
}));
|
|
621
621
|
d("rassq", ((k, l) => {
|
|
@@ -871,7 +871,7 @@ function el_install_kernel(session) {
|
|
|
871
871
|
}));
|
|
872
872
|
d("substring", ((s, from = null, to = null) => {
|
|
873
873
|
if (__eliscript_truthy(el_vector_QMARK_(s))) {
|
|
874
|
-
return el_vector(((s)["items"])["slice"](((
|
|
874
|
+
return el_vector(((s)["items"])["slice"](((__eliscript_value_20) => (__eliscript_truthy(__eliscript_value_20) ? __eliscript_value_20 : 0))(el_opt(from)), el_opt(to)));
|
|
875
875
|
} else {
|
|
876
876
|
return el_substring(s, el_opt(from), el_opt(to));
|
|
877
877
|
}
|
|
@@ -986,7 +986,7 @@ function el_install_kernel(session) {
|
|
|
986
986
|
}));
|
|
987
987
|
d("string-lines", ((s, omit_nulls = null, keep_newlines = null) => {
|
|
988
988
|
{
|
|
989
|
-
let raw = ((!((keep_newlines == null)) && !((keep_newlines === null))) ? ((
|
|
989
|
+
let raw = ((!((keep_newlines == null)) && !((keep_newlines === null))) ? ((__eliscript_value_21) => (__eliscript_truthy(__eliscript_value_21) ? __eliscript_value_21 : []))((s)["match"](new (globalThis.RegExp)("[^\\n]*\\n|[^\\n]+$", "g"))) : (s)["split"](new (globalThis.RegExp)("\\r?\\n")));
|
|
990
990
|
let filtered = ((!((omit_nulls == null)) && !((omit_nulls === null))) ? (raw)["filter"](((line) => {
|
|
991
991
|
return (__eliscript_numeric_relation(">", ((line) ?? []).length, 0) && (!(line === "\n")) && (!(line === "\r\n")));
|
|
992
992
|
})) : raw);
|
|
@@ -1005,7 +1005,7 @@ function el_install_kernel(session) {
|
|
|
1005
1005
|
let s_sep = ((sep == null) ? "" : sep);
|
|
1006
1006
|
let joined = __eliscript_at(items, "join")(s_sep);
|
|
1007
1007
|
if ((__eliscript_numeric_relation(">", (unibyte_strings)["size"], 0) && ((__eliscript_truthy(el_string_QMARK_(s_sep)) && __eliscript_truthy((unibyte_strings)["has"](s_sep))) || __eliscript_truthy((items)["some"](((x) => {
|
|
1008
|
-
return ((
|
|
1008
|
+
return ((__eliscript_value_22) => (__eliscript_truthy(__eliscript_value_22) ? (unibyte_strings)["has"](x) : __eliscript_value_22))(el_string_QMARK_(x));
|
|
1009
1009
|
})))))) {
|
|
1010
1010
|
return el_mark_unibyte(joined);
|
|
1011
1011
|
} else {
|
|
@@ -1076,7 +1076,7 @@ function el_install_kernel(session) {
|
|
|
1076
1076
|
}
|
|
1077
1077
|
}));
|
|
1078
1078
|
d("multibyte-string-p", ((s) => {
|
|
1079
|
-
return el_bool(((
|
|
1079
|
+
return el_bool(((__eliscript_value_23) => (__eliscript_truthy(__eliscript_value_23) ? el_multibyte_QMARK_(s) : __eliscript_value_23))(el_string_QMARK_(s)));
|
|
1080
1080
|
}));
|
|
1081
1081
|
d("unibyte-string", ((...bytes) => {
|
|
1082
1082
|
return el_bytes_string(bytes);
|
|
@@ -1308,7 +1308,7 @@ function el_install_kernel(session) {
|
|
|
1308
1308
|
d("local-variable-p", ((s, buffer = null) => {
|
|
1309
1309
|
{
|
|
1310
1310
|
let b = (((buffer == null) || (buffer === null)) ? el_current_buffer(session) : buffer);
|
|
1311
|
-
return el_bool(((
|
|
1311
|
+
return el_bool(((__eliscript_value_24) => (__eliscript_truthy(__eliscript_value_24) ? ((b)["locals"])["has"](s) : __eliscript_value_24))((el_kind(b) === "buffer")));
|
|
1312
1312
|
}
|
|
1313
1313
|
}));
|
|
1314
1314
|
d("kill-local-variable", ((s) => {
|
|
@@ -1348,14 +1348,14 @@ function el_install_kernel(session) {
|
|
|
1348
1348
|
d("boundp", ((s) => {
|
|
1349
1349
|
{
|
|
1350
1350
|
let buf = (session)["currentBuffer"];
|
|
1351
|
-
return el_bool(((
|
|
1351
|
+
return el_bool(((__eliscript_value_25) => (__eliscript_truthy(__eliscript_value_25) ? __eliscript_value_25 : ((__eliscript_value_26) => (__eliscript_truthy(__eliscript_value_26) ? __eliscript_value_26 : ((__eliscript_value_27) => (__eliscript_truthy(__eliscript_value_27) ? __eliscript_value_27 : ((__eliscript_value_28) => (__eliscript_truthy(__eliscript_value_28) ? __eliscript_value_28 : ((__eliscript_value_29) => (__eliscript_truthy(__eliscript_value_29) ? ((__eliscript_value_30) => (__eliscript_truthy(__eliscript_value_30) ? ((buf)["locals"])["has"](s) : __eliscript_value_30))((buf)["live"]) : __eliscript_value_29))((!(buf == null)))))(((session)["values"])["has"](s))))(el_keyword_QMARK_(s))))((s === true))))((s === null)));
|
|
1352
1352
|
}
|
|
1353
1353
|
}));
|
|
1354
1354
|
d("default-boundp", ((s) => {
|
|
1355
1355
|
return el_bool(((session)["values"])["has"](s));
|
|
1356
1356
|
}));
|
|
1357
1357
|
d("fboundp", ((s) => {
|
|
1358
|
-
return el_bool(((
|
|
1358
|
+
return el_bool(((__eliscript_value_31) => (__eliscript_truthy(__eliscript_value_31) ? __eliscript_value_31 : ((__eliscript_value_32) => (__eliscript_truthy(__eliscript_value_32) ? __eliscript_value_32 : ((__eliscript_value_33) => (__eliscript_truthy(__eliscript_value_33) ? __eliscript_value_33 : ((session)["extSpecialForms"])["has"](s)))((special_forms)["has"](s))))(((session)["macros"])["has"](s))))(((session)["functions"])["has"](s)));
|
|
1359
1359
|
}));
|
|
1360
1360
|
d("special-variable-p", ((s) => {
|
|
1361
1361
|
return el_bool(((session)["specials"])["has"](s));
|
|
@@ -1485,10 +1485,10 @@ function el_install_kernel(session) {
|
|
|
1485
1485
|
}));
|
|
1486
1486
|
d("advice-add", ((symbol, where, function$, props = null) => {
|
|
1487
1487
|
{
|
|
1488
|
-
let orig = ((
|
|
1488
|
+
let orig = ((__eliscript_value_34) => (__eliscript_truthy(__eliscript_value_34) ? __eliscript_value_34 : ((__eliscript_value_35) => (__eliscript_truthy(__eliscript_value_35) ? __eliscript_value_35 : ((...ignored) => {
|
|
1489
1489
|
return null;
|
|
1490
1490
|
})))(el_symbol_function(session, symbol))))(((session)["adviceOrig"])["get"](symbol));
|
|
1491
|
-
let stack = ((
|
|
1491
|
+
let stack = ((__eliscript_value_36) => (__eliscript_truthy(__eliscript_value_36) ? __eliscript_value_36 : []))(((session)["adviceStack"])["get"](symbol));
|
|
1492
1492
|
if ((!__eliscript_truthy(((session)["adviceOrig"])["has"](symbol)))) {
|
|
1493
1493
|
((session)["adviceOrig"])["set"](symbol, orig);
|
|
1494
1494
|
}
|
|
@@ -1533,7 +1533,7 @@ function el_install_kernel(session) {
|
|
|
1533
1533
|
if (__eliscript_truthy(((session)["adviceOrig"])["has"](symbol))) {
|
|
1534
1534
|
{
|
|
1535
1535
|
let orig = ((session)["adviceOrig"])["get"](symbol);
|
|
1536
|
-
let stack = (((
|
|
1536
|
+
let stack = (((__eliscript_value_37) => (__eliscript_truthy(__eliscript_value_37) ? __eliscript_value_37 : []))(((session)["adviceStack"])["get"](symbol)))["filter"](((item) => {
|
|
1537
1537
|
return (!__eliscript_truthy(el_equal_p((item)[1], function$, 0)));
|
|
1538
1538
|
}));
|
|
1539
1539
|
((session)["adviceStack"])["set"](symbol, stack);
|
|
@@ -1605,13 +1605,13 @@ function el_install_kernel(session) {
|
|
|
1605
1605
|
return el_load_file(session, file, el_opt(noerror), el_opt(nomessage), el_opt(nosuffix), el_opt(must_suffix));
|
|
1606
1606
|
}));
|
|
1607
1607
|
d("signal", ((condition, data) => {
|
|
1608
|
-
return ((
|
|
1608
|
+
return ((__eliscript_value_38) => { throw __eliscript_value_38; })(el_make_signal(el_symbol_name(condition), el_seq_items(data)));
|
|
1609
1609
|
}));
|
|
1610
1610
|
d("error", ((template, ...args) => {
|
|
1611
|
-
return ((
|
|
1611
|
+
return ((__eliscript_value_39) => { throw __eliscript_value_39; })(el_make_signal("error", [el_format(session, template, args)]));
|
|
1612
1612
|
}));
|
|
1613
1613
|
d("user-error", ((template, ...args) => {
|
|
1614
|
-
return ((
|
|
1614
|
+
return ((__eliscript_value_40) => { throw __eliscript_value_40; })(el_make_signal("user-error", [el_format(session, template, args)]));
|
|
1615
1615
|
}));
|
|
1616
1616
|
d("throw", ((tag, value) => {
|
|
1617
1617
|
return el_throw(tag, value);
|
|
@@ -1765,10 +1765,10 @@ function el_install_kernel(session) {
|
|
|
1765
1765
|
}
|
|
1766
1766
|
}));
|
|
1767
1767
|
d("json-alist-p", ((x) => {
|
|
1768
|
-
return el_bool(((
|
|
1768
|
+
return el_bool(((__eliscript_value_41) => (__eliscript_truthy(__eliscript_value_41) ? __eliscript_value_41 : el_alist_QMARK_(x)))((x === null)));
|
|
1769
1769
|
}));
|
|
1770
1770
|
d("json-plist-p", ((x) => {
|
|
1771
|
-
return el_bool(((
|
|
1771
|
+
return el_bool(((__eliscript_value_42) => (__eliscript_truthy(__eliscript_value_42) ? __eliscript_value_42 : el_plist_of_keywords_QMARK_(x)))((x === null)));
|
|
1772
1772
|
}));
|
|
1773
1773
|
d("base64-encode-string", ((s, no_line_break = null) => {
|
|
1774
1774
|
{
|
|
@@ -2013,7 +2013,7 @@ function el_install_kernel(session) {
|
|
|
2013
2013
|
}));
|
|
2014
2014
|
d("mailcap-extension-to-mime", ((ext) => {
|
|
2015
2015
|
{
|
|
2016
|
-
let clean = (((String(((
|
|
2016
|
+
let clean = (((String(((__eliscript_value_43) => (__eliscript_truthy(__eliscript_value_43) ? __eliscript_value_43 : ""))(ext))))["toLowerCase"]())["replace"](new (globalThis.RegExp)("^\\."), "");
|
|
2017
2017
|
if (((clean === "jpg") || (clean === "jpeg"))) {
|
|
2018
2018
|
return "image/jpeg";
|
|
2019
2019
|
} else {
|
|
@@ -2077,7 +2077,7 @@ function el_install_kernel(session) {
|
|
|
2077
2077
|
{
|
|
2078
2078
|
let ext = el_call(session, el_intern("file-name-extension"), [file_name]);
|
|
2079
2079
|
if (__eliscript_truthy(el_string_QMARK_(ext))) {
|
|
2080
|
-
return ((
|
|
2080
|
+
return ((__eliscript_value_44) => (__eliscript_truthy(__eliscript_value_44) ? __eliscript_value_44 : "application/octet-stream"))(el_call(session, el_intern("mailcap-extension-to-mime"), [ext]));
|
|
2081
2081
|
} else {
|
|
2082
2082
|
return "application/octet-stream";
|
|
2083
2083
|
}
|
|
@@ -2121,7 +2121,7 @@ function el_install_kernel(session) {
|
|
|
2121
2121
|
return el_kill_buffer(session, ((b == null) ? el_current_buffer(session) : b));
|
|
2122
2122
|
}));
|
|
2123
2123
|
d("buffer-live-p", ((b) => {
|
|
2124
|
-
return el_bool(((
|
|
2124
|
+
return el_bool(((__eliscript_value_45) => (__eliscript_truthy(__eliscript_value_45) ? (b)["live"] : __eliscript_value_45))((el_kind(b) === "buffer")));
|
|
2125
2125
|
}));
|
|
2126
2126
|
d("buffer-name", ((b = null) => {
|
|
2127
2127
|
return (((b == null) ? el_current_buffer(session) : b))["name"];
|
|
@@ -2361,7 +2361,7 @@ function el_install_kernel(session) {
|
|
|
2361
2361
|
}
|
|
2362
2362
|
((i = (i + 1)));
|
|
2363
2363
|
}
|
|
2364
|
-
if ((__eliscript_numeric_relation(">", ((sub) ?? []).length, 0) && ((
|
|
2364
|
+
if ((__eliscript_numeric_relation(">", ((sub) ?? []).length, 0) && ((sub)["charAt"](__eliscript_numeric_decrement(((sub) ?? []).length)) !== "\n"))) {
|
|
2365
2365
|
return (lines + 1);
|
|
2366
2366
|
} else {
|
|
2367
2367
|
return lines;
|
|
@@ -2412,15 +2412,13 @@ function el_install_kernel(session) {
|
|
|
2412
2412
|
{
|
|
2413
2413
|
let p = el_expand_file_name(session, filename, null);
|
|
2414
2414
|
let raw = null;
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
}
|
|
2421
|
-
})();
|
|
2415
|
+
try {
|
|
2416
|
+
((raw = (fs)["readFileSync"](p)));
|
|
2417
|
+
} catch (e) {
|
|
2418
|
+
el_signal("file-error", "Opening input file", (e)["message"], filename);
|
|
2419
|
+
}
|
|
2422
2420
|
{
|
|
2423
|
-
let slice = ((!((beg === null)) || !((end === null))) ? (raw)["subarray"](((
|
|
2421
|
+
let slice = ((!((beg === null)) || !((end === null))) ? (raw)["subarray"](((__eliscript_value_46) => (__eliscript_truthy(__eliscript_value_46) ? __eliscript_value_46 : 0))(beg), ((end === null) ? (raw)["length"] : end)) : raw);
|
|
2424
2422
|
let b = el_current_buffer(session);
|
|
2425
2423
|
let text = ((__eliscript_truthy(literally) || !(__eliscript_truthy((b)["multibyte"]))) ? el_bytes_string(Array.from(slice)) : __eliscript_at_direct(slice, "toString", "utf8"));
|
|
2426
2424
|
let saved_pt = (b)["point"];
|
|
@@ -2467,17 +2465,15 @@ function el_install_kernel(session) {
|
|
|
2467
2465
|
if ((!((mustbenew == null)) && !((mustbenew === null)) && __eliscript_truthy((fs)["existsSync"](p)))) {
|
|
2468
2466
|
el_signal("file-already-exists", "File already exists", p);
|
|
2469
2467
|
}
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
return (fs)["writeFileSync"](p, data);
|
|
2476
|
-
}
|
|
2477
|
-
} catch (e) {
|
|
2478
|
-
return el_signal("file-error", "Writing to file", (e)["message"], p);
|
|
2468
|
+
try {
|
|
2469
|
+
if ((!((append == null)) && !((append === null)))) {
|
|
2470
|
+
(fs)["appendFileSync"](p, data);
|
|
2471
|
+
} else {
|
|
2472
|
+
(fs)["writeFileSync"](p, data);
|
|
2479
2473
|
}
|
|
2480
|
-
}
|
|
2474
|
+
} catch (e) {
|
|
2475
|
+
el_signal("file-error", "Writing to file", (e)["message"], p);
|
|
2476
|
+
}
|
|
2481
2477
|
if (((visit === true) || __eliscript_truthy(el_string_QMARK_(visit)))) {
|
|
2482
2478
|
{
|
|
2483
2479
|
let vp = (__eliscript_truthy(el_string_QMARK_(visit)) ? el_expand_file_name(session, visit, null) : p);
|
|
@@ -2617,17 +2613,15 @@ function el_install_kernel(session) {
|
|
|
2617
2613
|
} else {
|
|
2618
2614
|
{
|
|
2619
2615
|
let p = el_expand_file_name(session, f, null);
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
} else {
|
|
2625
|
-
return null;
|
|
2626
|
-
}
|
|
2627
|
-
} catch (e) {
|
|
2616
|
+
try {
|
|
2617
|
+
if (__eliscript_truthy(((fs)["lstatSync"](p))["isSymbolicLink"]())) {
|
|
2618
|
+
return (fs)["readlinkSync"](p);
|
|
2619
|
+
} else {
|
|
2628
2620
|
return null;
|
|
2629
2621
|
}
|
|
2630
|
-
}
|
|
2622
|
+
} catch (e) {
|
|
2623
|
+
return null;
|
|
2624
|
+
}
|
|
2631
2625
|
}
|
|
2632
2626
|
}
|
|
2633
2627
|
}
|
|
@@ -2642,7 +2636,7 @@ function el_install_kernel(session) {
|
|
|
2642
2636
|
{
|
|
2643
2637
|
let tf = (el_file_truename(session, file))["replace"](new (globalThis.RegExp)("/+$"), "");
|
|
2644
2638
|
let td = (el_file_truename(session, dir))["replace"](new (globalThis.RegExp)("/+$"), "");
|
|
2645
|
-
return el_bool(((
|
|
2639
|
+
return el_bool(((__eliscript_value_47) => (__eliscript_truthy(__eliscript_value_47) ? __eliscript_value_47 : ((__eliscript_value_48) => (__eliscript_truthy(__eliscript_value_48) ? __eliscript_value_48 : (tf)["startsWith"]((String(td) + String("/")))))((td === ""))))((tf === td)));
|
|
2646
2640
|
}
|
|
2647
2641
|
}));
|
|
2648
2642
|
d("file-newer-than-file-p", ((f1, f2) => {
|
|
@@ -2687,17 +2681,15 @@ function el_install_kernel(session) {
|
|
|
2687
2681
|
} else {
|
|
2688
2682
|
{
|
|
2689
2683
|
let p = el_expand_file_name(session, filename, null);
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
return el_list(ftype, ((__eliscript_value_53) => (__eliscript_truthy(__eliscript_value_53) ? __eliscript_value_53 : 1))((st)["nlink"]), ((__eliscript_value_54) => (__eliscript_truthy(__eliscript_value_54) ? __eliscript_value_54 : 0))((st)["uid"]), ((__eliscript_value_55) => (__eliscript_truthy(__eliscript_value_55) ? __eliscript_value_55 : 0))((st)["gid"]), el_ms_to_time((st)["atimeMs"]), el_ms_to_time((st)["mtimeMs"]), el_ms_to_time((st)["ctimeMs"]), ((__eliscript_value_56) => (__eliscript_truthy(__eliscript_value_56) ? __eliscript_value_56 : 0))((st)["size"]), (String(__eliscript_at_direct(__eliscript_numeric_and(((__eliscript_value_57) => (__eliscript_truthy(__eliscript_value_57) ? __eliscript_value_57 : 0))((st)["mode"]), 4095), "toString", 8))), null, ((__eliscript_value_58) => (__eliscript_truthy(__eliscript_value_58) ? __eliscript_value_58 : 0))((st)["ino"]), ((__eliscript_value_59) => (__eliscript_truthy(__eliscript_value_59) ? __eliscript_value_59 : 0))((st)["dev"]));
|
|
2696
|
-
}
|
|
2697
|
-
} catch (e) {
|
|
2698
|
-
return null;
|
|
2684
|
+
try {
|
|
2685
|
+
{
|
|
2686
|
+
let st = (fs)["lstatSync"](p);
|
|
2687
|
+
let ftype = (__eliscript_truthy((st)["isDirectory"]()) ? true : (__eliscript_truthy((st)["isSymbolicLink"]()) ? (fs)["readlinkSync"](p) : null));
|
|
2688
|
+
return el_list(ftype, ((__eliscript_value_49) => (__eliscript_truthy(__eliscript_value_49) ? __eliscript_value_49 : 1))((st)["nlink"]), ((__eliscript_value_50) => (__eliscript_truthy(__eliscript_value_50) ? __eliscript_value_50 : 0))((st)["uid"]), ((__eliscript_value_51) => (__eliscript_truthy(__eliscript_value_51) ? __eliscript_value_51 : 0))((st)["gid"]), el_ms_to_time((st)["atimeMs"]), el_ms_to_time((st)["mtimeMs"]), el_ms_to_time((st)["ctimeMs"]), ((__eliscript_value_52) => (__eliscript_truthy(__eliscript_value_52) ? __eliscript_value_52 : 0))((st)["size"]), (String(__eliscript_at_direct(__eliscript_numeric_and(((__eliscript_value_53) => (__eliscript_truthy(__eliscript_value_53) ? __eliscript_value_53 : 0))((st)["mode"]), 4095), "toString", 8))), null, ((__eliscript_value_54) => (__eliscript_truthy(__eliscript_value_54) ? __eliscript_value_54 : 0))((st)["ino"]), ((__eliscript_value_55) => (__eliscript_truthy(__eliscript_value_55) ? __eliscript_value_55 : 0))((st)["dev"]));
|
|
2699
2689
|
}
|
|
2700
|
-
}
|
|
2690
|
+
} catch (e) {
|
|
2691
|
+
return null;
|
|
2692
|
+
}
|
|
2701
2693
|
}
|
|
2702
2694
|
}
|
|
2703
2695
|
}
|
|
@@ -2741,13 +2733,11 @@ function el_install_kernel(session) {
|
|
|
2741
2733
|
if ((fs == null)) {
|
|
2742
2734
|
return null;
|
|
2743
2735
|
} else {
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
}
|
|
2750
|
-
})();
|
|
2736
|
+
try {
|
|
2737
|
+
return __eliscript_numeric_and(((fs)["statSync"](el_expand_file_name(session, f, null)))["mode"], 4095);
|
|
2738
|
+
} catch (e) {
|
|
2739
|
+
return null;
|
|
2740
|
+
}
|
|
2751
2741
|
}
|
|
2752
2742
|
}
|
|
2753
2743
|
}));
|
|
@@ -2755,19 +2745,17 @@ function el_install_kernel(session) {
|
|
|
2755
2745
|
{
|
|
2756
2746
|
let fs = el_fs();
|
|
2757
2747
|
if ((!(fs == null))) {
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
}
|
|
2764
|
-
})();
|
|
2748
|
+
try {
|
|
2749
|
+
(fs)["chmodSync"](el_expand_file_name(session, f, null), el_num(mode));
|
|
2750
|
+
} catch (e) {
|
|
2751
|
+
null;
|
|
2752
|
+
}
|
|
2765
2753
|
}
|
|
2766
2754
|
return null;
|
|
2767
2755
|
}
|
|
2768
2756
|
}));
|
|
2769
2757
|
d("default-file-modes", (() => {
|
|
2770
|
-
return ((
|
|
2758
|
+
return ((__eliscript_value_56) => (__eliscript_truthy(__eliscript_value_56) ? __eliscript_value_56 : 493))((session)["defaultFileModes"]);
|
|
2771
2759
|
}));
|
|
2772
2760
|
d("set-default-file-modes", ((mode) => {
|
|
2773
2761
|
((session)["defaultFileModes"] = el_num(mode));
|
|
@@ -2778,23 +2766,19 @@ function el_install_kernel(session) {
|
|
|
2778
2766
|
let fs = el_fs();
|
|
2779
2767
|
let p = el_expand_file_name(session, dir, null);
|
|
2780
2768
|
if ((!(fs == null))) {
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
return false;
|
|
2790
|
-
}
|
|
2791
|
-
})())))) {
|
|
2792
|
-
return el_signal("file-error", "Creating directory", (e)["message"], p);
|
|
2793
|
-
} else {
|
|
2794
|
-
return null;
|
|
2769
|
+
try {
|
|
2770
|
+
(fs)["mkdirSync"](p, ({"recursive": ((!(parents == null)) && (!(parents === null)))}));
|
|
2771
|
+
} catch (e) {
|
|
2772
|
+
if ((!(!((parents == null)) && !((parents === null)) && __eliscript_truthy((() => {
|
|
2773
|
+
try {
|
|
2774
|
+
return ((fs)["statSync"](p))["isDirectory"]();
|
|
2775
|
+
} catch (e2) {
|
|
2776
|
+
return false;
|
|
2795
2777
|
}
|
|
2778
|
+
})())))) {
|
|
2779
|
+
el_signal("file-error", "Creating directory", (e)["message"], p);
|
|
2796
2780
|
}
|
|
2797
|
-
}
|
|
2781
|
+
}
|
|
2798
2782
|
}
|
|
2799
2783
|
return null;
|
|
2800
2784
|
}
|
|
@@ -2818,13 +2802,11 @@ function el_install_kernel(session) {
|
|
|
2818
2802
|
let fs = el_fs();
|
|
2819
2803
|
let p = el_expand_file_name(session, f, null);
|
|
2820
2804
|
if ((!(fs == null))) {
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
}
|
|
2827
|
-
})();
|
|
2805
|
+
try {
|
|
2806
|
+
(fs)["unlinkSync"](p);
|
|
2807
|
+
} catch (e) {
|
|
2808
|
+
null;
|
|
2809
|
+
}
|
|
2828
2810
|
}
|
|
2829
2811
|
return null;
|
|
2830
2812
|
}
|
|
@@ -2854,14 +2836,12 @@ function el_install_kernel(session) {
|
|
|
2854
2836
|
})()))) {
|
|
2855
2837
|
el_signal("file-already-exists", "File already exists", dst);
|
|
2856
2838
|
}
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
}
|
|
2864
|
-
})();
|
|
2839
|
+
try {
|
|
2840
|
+
(fs)["renameSync"](src, dst);
|
|
2841
|
+
} catch (e) {
|
|
2842
|
+
(fs)["copyFileSync"](src, dst);
|
|
2843
|
+
(fs)["unlinkSync"](src);
|
|
2844
|
+
}
|
|
2865
2845
|
return null;
|
|
2866
2846
|
}
|
|
2867
2847
|
}
|
|
@@ -2952,10 +2932,10 @@ function el_install_kernel(session) {
|
|
|
2952
2932
|
let p = el_expand_file_name(session, command, null);
|
|
2953
2933
|
if (__eliscript_truthy((() => {
|
|
2954
2934
|
try {
|
|
2955
|
-
return ((
|
|
2935
|
+
return ((__eliscript_value_57) => (__eliscript_truthy(__eliscript_value_57) ? (() => {
|
|
2956
2936
|
(fs)["accessSync"](p, ((fs)["constants"])["X_OK"]);
|
|
2957
2937
|
return true;
|
|
2958
|
-
})() :
|
|
2938
|
+
})() : __eliscript_value_57))(((fs)["statSync"](p))["isFile"]());
|
|
2959
2939
|
} catch (e) {
|
|
2960
2940
|
return false;
|
|
2961
2941
|
}
|
|
@@ -2986,10 +2966,10 @@ function el_install_kernel(session) {
|
|
|
2986
2966
|
let cand = el_expand_file_name(session, command, dir);
|
|
2987
2967
|
if (__eliscript_truthy((() => {
|
|
2988
2968
|
try {
|
|
2989
|
-
return ((
|
|
2969
|
+
return ((__eliscript_value_58) => (__eliscript_truthy(__eliscript_value_58) ? (() => {
|
|
2990
2970
|
(fs)["accessSync"](cand, ((fs)["constants"])["X_OK"]);
|
|
2991
2971
|
return true;
|
|
2992
|
-
})() :
|
|
2972
|
+
})() : __eliscript_value_58))(((fs)["statSync"](cand))["isFile"]());
|
|
2993
2973
|
} catch (e) {
|
|
2994
2974
|
return false;
|
|
2995
2975
|
}
|
|
@@ -3088,7 +3068,7 @@ function el_install_kernel(session) {
|
|
|
3088
3068
|
if ((!__eliscript_truthy(el_string_QMARK_(f)))) {
|
|
3089
3069
|
el_signal("wrong-type-argument", el_intern("stringp"), f);
|
|
3090
3070
|
}
|
|
3091
|
-
return el_bool(((
|
|
3071
|
+
return el_bool(((__eliscript_value_59) => (__eliscript_truthy(__eliscript_value_59) ? __eliscript_value_59 : (f)["startsWith"]("~")))((f)["startsWith"]("/")));
|
|
3092
3072
|
}));
|
|
3093
3073
|
d("file-relative-name", ((filename, directory = null) => {
|
|
3094
3074
|
return el_file_relative_name(session, filename, el_opt(directory));
|
|
@@ -3097,7 +3077,7 @@ function el_install_kernel(session) {
|
|
|
3097
3077
|
return el_file_truename(session, filename);
|
|
3098
3078
|
}));
|
|
3099
3079
|
d("temporary-file-directory", (() => {
|
|
3100
|
-
return ((
|
|
3080
|
+
return ((__eliscript_value_60) => (__eliscript_truthy(__eliscript_value_60) ? __eliscript_value_60 : ((os) => {
|
|
3101
3081
|
if ((os == null)) {
|
|
3102
3082
|
return el_global_value(session, el_intern("default-directory"));
|
|
3103
3083
|
} else {
|
|
@@ -3113,7 +3093,7 @@ function el_install_kernel(session) {
|
|
|
3113
3093
|
if (__eliscript_truthy(el_cons_QMARK_(pe))) {
|
|
3114
3094
|
{
|
|
3115
3095
|
let entry = (el_list_to_array(pe))["find"](((s) => {
|
|
3116
|
-
return ((
|
|
3096
|
+
return ((__eliscript_value_61) => (__eliscript_truthy(__eliscript_value_61) ? ((__eliscript_value_62) => (__eliscript_truthy(__eliscript_value_62) ? __eliscript_value_62 : (s)["startsWith"](prefix)))((s === name)) : __eliscript_value_61))(el_string_QMARK_(s));
|
|
3117
3097
|
}));
|
|
3118
3098
|
if ((!(entry === undefined))) {
|
|
3119
3099
|
((found = ((entry === name) ? null : (entry)["slice"](((prefix) ?? []).length))));
|
|
@@ -3214,13 +3194,11 @@ function el_install_kernel(session) {
|
|
|
3214
3194
|
if ((os_mod == null)) {
|
|
3215
3195
|
return "localhost";
|
|
3216
3196
|
} else {
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
}
|
|
3223
|
-
})();
|
|
3197
|
+
try {
|
|
3198
|
+
return (os_mod)["hostname"]();
|
|
3199
|
+
} catch (e) {
|
|
3200
|
+
return "localhost";
|
|
3201
|
+
}
|
|
3224
3202
|
}
|
|
3225
3203
|
}
|
|
3226
3204
|
}));
|
|
@@ -3250,13 +3228,11 @@ function el_install_kernel(session) {
|
|
|
3250
3228
|
if ((os_mod == null)) {
|
|
3251
3229
|
return "user";
|
|
3252
3230
|
} else {
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
}
|
|
3259
|
-
})();
|
|
3231
|
+
try {
|
|
3232
|
+
return ((os_mod)["userInfo"]())["username"];
|
|
3233
|
+
} catch (e) {
|
|
3234
|
+
return "user";
|
|
3235
|
+
}
|
|
3260
3236
|
}
|
|
3261
3237
|
}
|
|
3262
3238
|
}));
|
|
@@ -3296,7 +3272,7 @@ function el_install_kernel(session) {
|
|
|
3296
3272
|
}));
|
|
3297
3273
|
d("keymap-parent", ((map) => {
|
|
3298
3274
|
el_ensure_keymap(map);
|
|
3299
|
-
return ((
|
|
3275
|
+
return ((__eliscript_value_63) => (__eliscript_truthy(__eliscript_value_63) ? __eliscript_value_63 : null))((map)["_parent"]);
|
|
3300
3276
|
}));
|
|
3301
3277
|
d("define-key", ((map, key, definition, remove = null) => {
|
|
3302
3278
|
return el_define_key(map, key, definition, ((!(remove == null)) && (!(remove === null))));
|
|
@@ -3320,7 +3296,7 @@ function el_install_kernel(session) {
|
|
|
3320
3296
|
return null;
|
|
3321
3297
|
} else {
|
|
3322
3298
|
{
|
|
3323
|
-
let is_macro = ((
|
|
3299
|
+
let is_macro = ((__eliscript_value_64) => (__eliscript_truthy(__eliscript_value_64) ? __eliscript_value_64 : el_sym_is(type, "macro")))((type === true));
|
|
3324
3300
|
let afn = ((...args) => {
|
|
3325
3301
|
((session)["functions"])["delete"](fn);
|
|
3326
3302
|
((fn)["_cachedFn"] = undefined);
|
|
@@ -3379,7 +3355,7 @@ function el_install_kernel(session) {
|
|
|
3379
3355
|
if ((el_call(session, el_intern("controlling-tty-p"), []) === null)) {
|
|
3380
3356
|
return null;
|
|
3381
3357
|
} else {
|
|
3382
|
-
return ((
|
|
3358
|
+
return ((__eliscript_value_65) => (__eliscript_truthy(__eliscript_value_65) ? __eliscript_value_65 : "xterm-256color"))(el_call(session, el_intern("getenv"), ["TERM"]));
|
|
3383
3359
|
}
|
|
3384
3360
|
}));
|
|
3385
3361
|
d("send-string-to-terminal", ((str_val, terminal = null) => {
|
|
@@ -3397,10 +3373,10 @@ function el_install_kernel(session) {
|
|
|
3397
3373
|
} else {
|
|
3398
3374
|
{
|
|
3399
3375
|
let p = globalThis.process;
|
|
3400
|
-
let c1 = ((
|
|
3401
|
-
let c2 = ((
|
|
3402
|
-
let c3 = ((
|
|
3403
|
-
let cols = ((
|
|
3376
|
+
let c1 = ((__eliscript_value_66) => (__eliscript_truthy(__eliscript_value_66) ? ((__eliscript_value_67) => (__eliscript_truthy(__eliscript_value_67) ? ((p)["stdout"])["columns"] : __eliscript_value_67))((!((p)["stdout"] == null))) : __eliscript_value_66))((!(p == null)));
|
|
3377
|
+
let c2 = ((__eliscript_value_68) => (__eliscript_truthy(__eliscript_value_68) ? ((__eliscript_value_69) => (__eliscript_truthy(__eliscript_value_69) ? ((p)["stderr"])["columns"] : __eliscript_value_69))((!((p)["stderr"] == null))) : __eliscript_value_68))((!(p == null)));
|
|
3378
|
+
let c3 = ((__eliscript_value_70) => (__eliscript_truthy(__eliscript_value_70) ? ((__eliscript_value_71) => (__eliscript_truthy(__eliscript_value_71) ? ((p)["stdin"])["columns"] : __eliscript_value_71))((!((p)["stdin"] == null))) : __eliscript_value_70))((!(p == null)));
|
|
3379
|
+
let cols = ((__eliscript_value_72) => (__eliscript_truthy(__eliscript_value_72) ? __eliscript_value_72 : ((__eliscript_value_75) => (__eliscript_truthy(__eliscript_value_75) ? __eliscript_value_75 : ((__eliscript_value_78) => (__eliscript_truthy(__eliscript_value_78) ? ((__eliscript_value_79) => (__eliscript_truthy(__eliscript_value_79) ? c3 : __eliscript_value_79))(__eliscript_numeric_relation(">", c3, 0)) : __eliscript_value_78))(el_integer_QMARK_(c3))))(((__eliscript_value_76) => (__eliscript_truthy(__eliscript_value_76) ? ((__eliscript_value_77) => (__eliscript_truthy(__eliscript_value_77) ? c2 : __eliscript_value_77))(__eliscript_numeric_relation(">", c2, 0)) : __eliscript_value_76))(el_integer_QMARK_(c2)))))(((__eliscript_value_73) => (__eliscript_truthy(__eliscript_value_73) ? ((__eliscript_value_74) => (__eliscript_truthy(__eliscript_value_74) ? c1 : __eliscript_value_74))(__eliscript_numeric_relation(">", c1, 0)) : __eliscript_value_73))(el_integer_QMARK_(c1)));
|
|
3404
3380
|
if (__eliscript_truthy(cols)) {
|
|
3405
3381
|
return cols;
|
|
3406
3382
|
} else {
|
|
@@ -3419,10 +3395,10 @@ function el_install_kernel(session) {
|
|
|
3419
3395
|
} else {
|
|
3420
3396
|
{
|
|
3421
3397
|
let p = globalThis.process;
|
|
3422
|
-
let r1 = ((
|
|
3423
|
-
let r2 = ((
|
|
3424
|
-
let r3 = ((
|
|
3425
|
-
let rows = ((
|
|
3398
|
+
let r1 = ((__eliscript_value_80) => (__eliscript_truthy(__eliscript_value_80) ? ((__eliscript_value_81) => (__eliscript_truthy(__eliscript_value_81) ? ((p)["stdout"])["rows"] : __eliscript_value_81))((!((p)["stdout"] == null))) : __eliscript_value_80))((!(p == null)));
|
|
3399
|
+
let r2 = ((__eliscript_value_82) => (__eliscript_truthy(__eliscript_value_82) ? ((__eliscript_value_83) => (__eliscript_truthy(__eliscript_value_83) ? ((p)["stderr"])["rows"] : __eliscript_value_83))((!((p)["stderr"] == null))) : __eliscript_value_82))((!(p == null)));
|
|
3400
|
+
let r3 = ((__eliscript_value_84) => (__eliscript_truthy(__eliscript_value_84) ? ((__eliscript_value_85) => (__eliscript_truthy(__eliscript_value_85) ? ((p)["stdin"])["rows"] : __eliscript_value_85))((!((p)["stdin"] == null))) : __eliscript_value_84))((!(p == null)));
|
|
3401
|
+
let rows = ((__eliscript_value_86) => (__eliscript_truthy(__eliscript_value_86) ? __eliscript_value_86 : ((__eliscript_value_89) => (__eliscript_truthy(__eliscript_value_89) ? __eliscript_value_89 : ((__eliscript_value_92) => (__eliscript_truthy(__eliscript_value_92) ? ((__eliscript_value_93) => (__eliscript_truthy(__eliscript_value_93) ? r3 : __eliscript_value_93))(__eliscript_numeric_relation(">", r3, 0)) : __eliscript_value_92))(el_integer_QMARK_(r3))))(((__eliscript_value_90) => (__eliscript_truthy(__eliscript_value_90) ? ((__eliscript_value_91) => (__eliscript_truthy(__eliscript_value_91) ? r2 : __eliscript_value_91))(__eliscript_numeric_relation(">", r2, 0)) : __eliscript_value_90))(el_integer_QMARK_(r2)))))(((__eliscript_value_87) => (__eliscript_truthy(__eliscript_value_87) ? ((__eliscript_value_88) => (__eliscript_truthy(__eliscript_value_88) ? r1 : __eliscript_value_88))(__eliscript_numeric_relation(">", r1, 0)) : __eliscript_value_87))(el_integer_QMARK_(r1)));
|
|
3426
3402
|
if (__eliscript_truthy(rows)) {
|
|
3427
3403
|
return rows;
|
|
3428
3404
|
} else {
|
|
@@ -3494,7 +3470,7 @@ function el_install_kernel(session) {
|
|
|
3494
3470
|
let pass = el_call(session, el_intern("url-password"), [u]);
|
|
3495
3471
|
let host = el_call(session, el_intern("url-host"), [u]);
|
|
3496
3472
|
let port = el_call(session, el_intern("url-portsitory"), [u]);
|
|
3497
|
-
let file = ((
|
|
3473
|
+
let file = ((__eliscript_value_94) => (__eliscript_truthy(__eliscript_value_94) ? __eliscript_value_94 : ""))(el_call(session, el_intern("url-filename"), [u]));
|
|
3498
3474
|
let targ = el_call(session, el_intern("url-target"), [u]);
|
|
3499
3475
|
return (String((__eliscript_truthy(el_string_QMARK_(scheme)) ? (String(scheme) + String(":")) : "")) + String((__eliscript_truthy(el_string_QMARK_(host)) ? (String("//") + String((__eliscript_truthy(el_string_QMARK_(user)) ? (String(user) + String((__eliscript_truthy(el_string_QMARK_(pass)) ? (String(":") + String(pass)) : "")) + String("@")) : "")) + String(host) + String((__eliscript_truthy(el_integer_QMARK_(port)) ? (String(":") + String(port)) : ""))) : "")) + String(file) + String((__eliscript_truthy(el_string_QMARK_(targ)) ? (String("#") + String(targ)) : "")));
|
|
3500
3476
|
}
|
|
@@ -3511,24 +3487,20 @@ function el_install_kernel(session) {
|
|
|
3511
3487
|
if (!(__eliscript_truthy(el_string_QMARK_(s)))) {
|
|
3512
3488
|
return "";
|
|
3513
3489
|
} else {
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
}
|
|
3520
|
-
})();
|
|
3490
|
+
try {
|
|
3491
|
+
return globalThis.decodeURIComponent(s);
|
|
3492
|
+
} catch (e) {
|
|
3493
|
+
return s;
|
|
3494
|
+
}
|
|
3521
3495
|
}
|
|
3522
3496
|
}));
|
|
3523
3497
|
d("url-expand-file-name", ((url, default_url = null) => {
|
|
3524
3498
|
if ((__eliscript_truthy(el_string_QMARK_(default_url)) && __eliscript_numeric_relation(">", ((default_url) ?? []).length, 0))) {
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
}
|
|
3531
|
-
})();
|
|
3499
|
+
try {
|
|
3500
|
+
return __eliscript_at_direct(new (globalThis.URL)((String(url)), (String(default_url))), "toString");
|
|
3501
|
+
} catch (e) {
|
|
3502
|
+
return (String(url));
|
|
3503
|
+
}
|
|
3532
3504
|
} else {
|
|
3533
3505
|
return (String(url));
|
|
3534
3506
|
}
|
|
@@ -3552,14 +3524,12 @@ function el_install_kernel(session) {
|
|
|
3552
3524
|
d("shell-command-to-string", ((cmd) => {
|
|
3553
3525
|
{
|
|
3554
3526
|
let buf = el_generate_new_buffer(session, " *shell-cmd*");
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
}
|
|
3562
|
-
})();
|
|
3527
|
+
try {
|
|
3528
|
+
el_call_process(session, ((__eliscript_value_95) => (__eliscript_truthy(__eliscript_value_95) ? __eliscript_value_95 : "sh"))(el_call(session, el_intern("getenv"), ["SHELL"])), null, buf, null, "-c", cmd);
|
|
3529
|
+
return (buf)["text"];
|
|
3530
|
+
} finally {
|
|
3531
|
+
el_kill_buffer(session, buf);
|
|
3532
|
+
}
|
|
3563
3533
|
}
|
|
3564
3534
|
}));
|
|
3565
3535
|
d("make-process", ((...args) => {
|
|
@@ -3582,7 +3552,7 @@ function el_install_kernel(session) {
|
|
|
3582
3552
|
return null;
|
|
3583
3553
|
} else {
|
|
3584
3554
|
{
|
|
3585
|
-
let contact = ((
|
|
3555
|
+
let contact = ((__eliscript_value_96) => (__eliscript_truthy(__eliscript_value_96) ? __eliscript_value_96 : el_list("127.0.0.1", 0)))((proc)["contact"]);
|
|
3586
3556
|
if (((key == null) || (key === null) || __eliscript_truthy(el_sym_is(key, ":local")) || __eliscript_truthy(el_sym_is(key, ":remote")))) {
|
|
3587
3557
|
return contact;
|
|
3588
3558
|
} else {
|
|
@@ -3611,7 +3581,7 @@ function el_install_kernel(session) {
|
|
|
3611
3581
|
}));
|
|
3612
3582
|
d("process-live-p", ((p) => {
|
|
3613
3583
|
el_drain_io_events(session);
|
|
3614
|
-
return el_bool(((
|
|
3584
|
+
return el_bool(((__eliscript_value_97) => (__eliscript_truthy(__eliscript_value_97) ? (p)["live"] : __eliscript_value_97))((el_kind(p) === "process")));
|
|
3615
3585
|
}));
|
|
3616
3586
|
d("process-status", ((p) => {
|
|
3617
3587
|
el_drain_io_events(session);
|
|
@@ -3624,7 +3594,7 @@ function el_install_kernel(session) {
|
|
|
3624
3594
|
d("process-exit-status", ((p) => {
|
|
3625
3595
|
el_drain_io_events(session);
|
|
3626
3596
|
if ((el_kind(p) === "process")) {
|
|
3627
|
-
return ((
|
|
3597
|
+
return ((__eliscript_value_98) => (__eliscript_truthy(__eliscript_value_98) ? __eliscript_value_98 : 0))((p)["exitStatus"]);
|
|
3628
3598
|
} else {
|
|
3629
3599
|
return 0;
|
|
3630
3600
|
}
|
|
@@ -3661,7 +3631,7 @@ function el_install_kernel(session) {
|
|
|
3661
3631
|
let buf = (__eliscript_truthy(el_string_QMARK_(b)) ? el_call(session, el_intern("get-buffer"), [b]) : b);
|
|
3662
3632
|
let procs = (session)["processes"];
|
|
3663
3633
|
let found = (procs)["find"](((p) => {
|
|
3664
|
-
return ((
|
|
3634
|
+
return ((__eliscript_value_99) => (__eliscript_truthy(__eliscript_value_99) ? ((p)["buffer"] === buf) : __eliscript_value_99))((p)["live"]);
|
|
3665
3635
|
}));
|
|
3666
3636
|
if ((found === undefined)) {
|
|
3667
3637
|
return null;
|
|
@@ -3763,7 +3733,7 @@ function el_install_kernel(session) {
|
|
|
3763
3733
|
}));
|
|
3764
3734
|
d("process-coding-system", ((p) => {
|
|
3765
3735
|
if ((el_kind(p) === "process")) {
|
|
3766
|
-
return ((
|
|
3736
|
+
return ((__eliscript_value_100) => (__eliscript_truthy(__eliscript_value_100) ? __eliscript_value_100 : el_cons(el_intern("utf-8"), el_intern("utf-8"))))((p)["codingSystem"]);
|
|
3767
3737
|
} else {
|
|
3768
3738
|
return null;
|
|
3769
3739
|
}
|
|
@@ -3828,24 +3798,22 @@ function el_install_kernel(session) {
|
|
|
3828
3798
|
}));
|
|
3829
3799
|
d("kill-emacs", ((exit_data = null, do_not_run_hooks = null) => {
|
|
3830
3800
|
if ((!(!((do_not_run_hooks == null)) && !((do_not_run_hooks === null))))) {
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
}
|
|
3837
|
-
})();
|
|
3801
|
+
try {
|
|
3802
|
+
el_call(session, el_intern("run-hooks"), [el_intern("kill-emacs-hook")]);
|
|
3803
|
+
} catch (e) {
|
|
3804
|
+
null;
|
|
3805
|
+
}
|
|
3838
3806
|
}
|
|
3839
3807
|
{
|
|
3840
3808
|
let code = (__eliscript_truthy(el_integer_QMARK_(exit_data)) ? exit_data : 0);
|
|
3841
|
-
return ((
|
|
3809
|
+
return ((__eliscript_value_101) => { throw __eliscript_value_101; })(({"eliscriptBatchExit": true, "code": code, "conditionSymbol": "error", "data": ["kill-emacs", code]}));
|
|
3842
3810
|
}
|
|
3843
3811
|
}));
|
|
3844
3812
|
d("ert-fail", ((data) => {
|
|
3845
|
-
return ((
|
|
3813
|
+
return ((__eliscript_value_102) => { throw __eliscript_value_102; })(el_make_signal("ert-test-failed", (__eliscript_truthy(el_string_QMARK_(data)) ? [data] : el_seq_items(data))));
|
|
3846
3814
|
}));
|
|
3847
3815
|
d("ert-skip", ((data) => {
|
|
3848
|
-
return ((
|
|
3816
|
+
return ((__eliscript_value_103) => { throw __eliscript_value_103; })(el_make_signal("ert-test-skipped", (__eliscript_truthy(el_string_QMARK_(data)) ? [data] : el_seq_items(data))));
|
|
3849
3817
|
}));
|
|
3850
3818
|
d("ert-get-test", ((sym) => {
|
|
3851
3819
|
{
|
|
@@ -4379,10 +4347,10 @@ function el_install_kernel(session) {
|
|
|
4379
4347
|
return null;
|
|
4380
4348
|
}));
|
|
4381
4349
|
d("ert-fail", ((data) => {
|
|
4382
|
-
return ((
|
|
4350
|
+
return ((__eliscript_value_104) => { throw __eliscript_value_104; })(el_make_signal("ert-test-failed", [data]));
|
|
4383
4351
|
}));
|
|
4384
4352
|
d("ert-get-test", ((sym) => {
|
|
4385
|
-
return ((
|
|
4353
|
+
return ((__eliscript_value_105) => (__eliscript_truthy(__eliscript_value_105) ? __eliscript_value_105 : null))(((session)["ertTests"])["get"](sym));
|
|
4386
4354
|
}));
|
|
4387
4355
|
d("ert-test-most-recent-result", ((test) => {
|
|
4388
4356
|
if ((el_kind(test) === "ert-test")) {
|
|
@@ -4486,26 +4454,26 @@ function el_install_kernel(session) {
|
|
|
4486
4454
|
return ((a)["toLowerCase"]() === (b)["toLowerCase"]());
|
|
4487
4455
|
} else {
|
|
4488
4456
|
if ((__eliscript_truthy(el_cons_QMARK_(a)) && __eliscript_truthy(el_cons_QMARK_(b)))) {
|
|
4489
|
-
return ((
|
|
4457
|
+
return ((__eliscript_value_106) => (__eliscript_truthy(__eliscript_value_106) ? eqp((a)["cdr"], (b)["cdr"], (depth + 1)) : __eliscript_value_106))(eqp((a)["car"], (b)["car"], (depth + 1)));
|
|
4490
4458
|
} else {
|
|
4491
4459
|
if (((__eliscript_truthy(el_vector_QMARK_(a)) || __eliscript_truthy(el_record_QMARK_(a))) && (__eliscript_truthy(el_vector_QMARK_(b)) || __eliscript_truthy(el_record_QMARK_(b))) && ((a)["kind"] === (b)["kind"]))) {
|
|
4492
4460
|
{
|
|
4493
4461
|
let ia = (a)["items"];
|
|
4494
4462
|
let ib = (b)["items"];
|
|
4495
|
-
return ((
|
|
4463
|
+
return ((__eliscript_value_107) => (__eliscript_truthy(__eliscript_value_107) ? (ia)["every"](((x, idx) => {
|
|
4496
4464
|
return eqp(x, (ib)[idx], (depth + 1));
|
|
4497
|
-
})) :
|
|
4465
|
+
})) : __eliscript_value_107))((((ia) ?? []).length === ((ib) ?? []).length));
|
|
4498
4466
|
}
|
|
4499
4467
|
} else {
|
|
4500
4468
|
if ((__eliscript_truthy(el_hash_table_QMARK_(a)) && __eliscript_truthy(el_hash_table_QMARK_(b)))) {
|
|
4501
4469
|
{
|
|
4502
4470
|
let ea = Array.from(((a)["entries"])["values"]());
|
|
4503
4471
|
let eb = Array.from(((b)["entries"])["values"]());
|
|
4504
|
-
return ((
|
|
4472
|
+
return ((__eliscript_value_108) => (__eliscript_truthy(__eliscript_value_108) ? (ea)["every"](((pa) => {
|
|
4505
4473
|
return (eb)["some"](((pb) => {
|
|
4506
|
-
return ((
|
|
4474
|
+
return ((__eliscript_value_109) => (__eliscript_truthy(__eliscript_value_109) ? eqp((pa)[1], (pb)[1], (depth + 1)) : __eliscript_value_109))(eqp((pa)[0], (pb)[0], (depth + 1)));
|
|
4507
4475
|
}));
|
|
4508
|
-
})) :
|
|
4476
|
+
})) : __eliscript_value_108))((((ea) ?? []).length === ((eb) ?? []).length));
|
|
4509
4477
|
}
|
|
4510
4478
|
} else {
|
|
4511
4479
|
return el_equal_p(a, b, depth);
|
|
@@ -4527,13 +4495,13 @@ function el_install_kernel(session) {
|
|
|
4527
4495
|
let fs = el_fs();
|
|
4528
4496
|
let path_mod = el_path();
|
|
4529
4497
|
let expanded = el_expand_file_name(session, file, null);
|
|
4530
|
-
let is_dir = ((
|
|
4498
|
+
let is_dir = ((__eliscript_value_110) => (__eliscript_truthy(__eliscript_value_110) ? (() => {
|
|
4531
4499
|
try {
|
|
4532
4500
|
return ((fs)["statSync"](expanded))["isDirectory"]();
|
|
4533
4501
|
} catch (e) {
|
|
4534
4502
|
return false;
|
|
4535
4503
|
}
|
|
4536
|
-
})() :
|
|
4504
|
+
})() : __eliscript_value_110))((!(fs == null)));
|
|
4537
4505
|
let cur = (__eliscript_truthy(is_dir) ? (expanded)["replace"](new (globalThis.RegExp)("/+$"), "") : (!((path_mod == null)) ? (path_mod)["dirname"]((expanded)["replace"](new (globalThis.RegExp)("/+$"), "")) : "/"));
|
|
4538
4506
|
let found = null;
|
|
4539
4507
|
let done = false;
|
|
@@ -4543,13 +4511,13 @@ function el_install_kernel(session) {
|
|
|
4543
4511
|
while (!(__eliscript_truthy(done))) {
|
|
4544
4512
|
{
|
|
4545
4513
|
let dir_slash = (__eliscript_truthy((cur)["endsWith"]("/")) ? cur : (String(cur) + String("/")));
|
|
4546
|
-
let ok = (__eliscript_truthy(el_string_QMARK_(name)) ? ((
|
|
4514
|
+
let ok = (__eliscript_truthy(el_string_QMARK_(name)) ? ((__eliscript_value_111) => (__eliscript_truthy(__eliscript_value_111) ? (() => {
|
|
4547
4515
|
try {
|
|
4548
4516
|
return (fs)["existsSync"](el_expand_file_name(session, name, dir_slash));
|
|
4549
4517
|
} catch (e) {
|
|
4550
4518
|
return false;
|
|
4551
4519
|
}
|
|
4552
|
-
})() :
|
|
4520
|
+
})() : __eliscript_value_111))((!(fs == null))) : (!(el_call(session, name, [dir_slash]) === null)));
|
|
4553
4521
|
if (__eliscript_truthy(ok)) {
|
|
4554
4522
|
((found = dir_slash));
|
|
4555
4523
|
((done = true));
|
|
@@ -4724,24 +4692,20 @@ function el_install_kernel(session) {
|
|
|
4724
4692
|
})();
|
|
4725
4693
|
if (__eliscript_truthy(exists)) {
|
|
4726
4694
|
if ((!((ok_if_already_exists == null)) && !((ok_if_already_exists === null)))) {
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
}
|
|
4733
|
-
})();
|
|
4695
|
+
try {
|
|
4696
|
+
(fs)["unlinkSync"](link_path);
|
|
4697
|
+
} catch (e) {
|
|
4698
|
+
null;
|
|
4699
|
+
}
|
|
4734
4700
|
} else {
|
|
4735
4701
|
el_signal("file-already-exists", "File already exists", link_path);
|
|
4736
4702
|
}
|
|
4737
4703
|
}
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
}
|
|
4744
|
-
})();
|
|
4704
|
+
try {
|
|
4705
|
+
(fs)["symlinkSync"]((String(target)), link_path);
|
|
4706
|
+
} catch (e) {
|
|
4707
|
+
el_signal("file-error", "Making symbolic link", (e)["message"], target, link_path);
|
|
4708
|
+
}
|
|
4745
4709
|
return null;
|
|
4746
4710
|
}
|
|
4747
4711
|
}
|
|
@@ -4764,24 +4728,20 @@ function el_install_kernel(session) {
|
|
|
4764
4728
|
})();
|
|
4765
4729
|
if (__eliscript_truthy(exists)) {
|
|
4766
4730
|
if ((!((ok_if_already_exists == null)) && !((ok_if_already_exists === null)))) {
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
}
|
|
4773
|
-
})();
|
|
4731
|
+
try {
|
|
4732
|
+
(fs)["unlinkSync"](dst);
|
|
4733
|
+
} catch (e) {
|
|
4734
|
+
null;
|
|
4735
|
+
}
|
|
4774
4736
|
} else {
|
|
4775
4737
|
el_signal("file-already-exists", "File already exists", dst);
|
|
4776
4738
|
}
|
|
4777
4739
|
}
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
}
|
|
4784
|
-
})();
|
|
4740
|
+
try {
|
|
4741
|
+
(fs)["linkSync"](src, dst);
|
|
4742
|
+
} catch (e) {
|
|
4743
|
+
el_signal("file-error", "Adding name to file", (e)["message"], src, dst);
|
|
4744
|
+
}
|
|
4785
4745
|
return null;
|
|
4786
4746
|
}
|
|
4787
4747
|
}
|
|
@@ -4802,13 +4762,11 @@ function el_install_kernel(session) {
|
|
|
4802
4762
|
return false;
|
|
4803
4763
|
}
|
|
4804
4764
|
})())) ? el_expand_file_name(session, ((src)["replace"](new (globalThis.RegExp)("/+$"), ""))["slice"]((((src)["replace"](new (globalThis.RegExp)("/+$"), ""))["lastIndexOf"]("/") + 1)), dst_raw) : dst_raw);
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
}
|
|
4811
|
-
})();
|
|
4765
|
+
try {
|
|
4766
|
+
(fs)["cpSync"](src, dst, ({"recursive": true}));
|
|
4767
|
+
} catch (e) {
|
|
4768
|
+
el_signal("file-error", "Copying directory", (e)["message"], src, dst);
|
|
4769
|
+
}
|
|
4812
4770
|
return null;
|
|
4813
4771
|
}
|
|
4814
4772
|
}
|
|
@@ -4828,13 +4786,13 @@ function el_install_kernel(session) {
|
|
|
4828
4786
|
{
|
|
4829
4787
|
let p1 = el_expand_file_name(session, f1, null);
|
|
4830
4788
|
let p2 = el_expand_file_name(session, f2, null);
|
|
4831
|
-
return el_bool(((
|
|
4789
|
+
return el_bool(((__eliscript_value_112) => (__eliscript_truthy(__eliscript_value_112) ? ((__eliscript_value_113) => (__eliscript_truthy(__eliscript_value_113) ? (el_file_truename(session, p1) === el_file_truename(session, p2)) : __eliscript_value_113))((() => {
|
|
4832
4790
|
try {
|
|
4833
4791
|
return (fs)["existsSync"](p2);
|
|
4834
4792
|
} catch (e) {
|
|
4835
4793
|
return false;
|
|
4836
4794
|
}
|
|
4837
|
-
})()) :
|
|
4795
|
+
})()) : __eliscript_value_112))((() => {
|
|
4838
4796
|
try {
|
|
4839
4797
|
return (fs)["existsSync"](p1);
|
|
4840
4798
|
} catch (e) {
|
|
@@ -4852,13 +4810,11 @@ function el_install_kernel(session) {
|
|
|
4852
4810
|
{
|
|
4853
4811
|
let p = el_expand_file_name(session, filename, null);
|
|
4854
4812
|
let sec = __eliscript_numeric_div(el_time_to_ms(el_opt(timestamp)), 1000);
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
}
|
|
4861
|
-
})();
|
|
4813
|
+
try {
|
|
4814
|
+
(fs)["utimesSync"](p, sec, sec);
|
|
4815
|
+
} catch (e) {
|
|
4816
|
+
null;
|
|
4817
|
+
}
|
|
4862
4818
|
}
|
|
4863
4819
|
}
|
|
4864
4820
|
return true;
|
|
@@ -4886,7 +4842,7 @@ function el_install_kernel(session) {
|
|
|
4886
4842
|
}));
|
|
4887
4843
|
d("project-current", ((maybe_prompt = null, directory = null) => {
|
|
4888
4844
|
{
|
|
4889
|
-
let dir = ((
|
|
4845
|
+
let dir = ((__eliscript_value_114) => (__eliscript_truthy(__eliscript_value_114) ? __eliscript_value_114 : ((__eliscript_value_115) => (__eliscript_truthy(__eliscript_value_115) ? __eliscript_value_115 : "/"))(el_global_value(session, el_intern("default-directory")))))(el_opt(directory));
|
|
4890
4846
|
let root = el_call(session, el_intern("locate-dominating-file"), [dir, ".git"]);
|
|
4891
4847
|
if (__eliscript_truthy(el_string_QMARK_(root))) {
|
|
4892
4848
|
return el_list(el_intern("vc"), el_intern("Git"), root);
|
|
@@ -4937,9 +4893,9 @@ function el_install_kernel(session) {
|
|
|
4937
4893
|
let true_root = el_call(session, el_intern("file-name-as-directory"), [el_file_truename(session, root)]);
|
|
4938
4894
|
let bufs = Array.from(((session)["buffers"])["values"]());
|
|
4939
4895
|
let matched = (bufs)["filter"](((b) => {
|
|
4940
|
-
return ((
|
|
4941
|
-
return ((
|
|
4942
|
-
})(((
|
|
4896
|
+
return ((__eliscript_value_116) => (__eliscript_truthy(__eliscript_value_116) ? ((bf) => {
|
|
4897
|
+
return ((__eliscript_value_118) => (__eliscript_truthy(__eliscript_value_118) ? (el_file_truename(session, bf))["startsWith"](true_root) : __eliscript_value_118))(el_string_QMARK_(bf));
|
|
4898
|
+
})(((__eliscript_value_117) => (__eliscript_truthy(__eliscript_value_117) ? __eliscript_value_117 : ((b)["locals"])["get"](el_intern("default-directory"))))(((b)["locals"])["get"](el_intern("buffer-file-name")))) : __eliscript_value_116))((b)["live"]);
|
|
4943
4899
|
}));
|
|
4944
4900
|
return el_list_from(matched);
|
|
4945
4901
|
}
|
|
@@ -4970,14 +4926,12 @@ function el_install_kernel(session) {
|
|
|
4970
4926
|
})((el_symbol_name_or_string(sigcode))["toUpperCase"]()) : "SIGTERM"));
|
|
4971
4927
|
let p = globalThis.process;
|
|
4972
4928
|
if ((__eliscript_truthy(el_integer_QMARK_(pid)) && !((p == null)))) {
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
}
|
|
4980
|
-
})();
|
|
4929
|
+
try {
|
|
4930
|
+
(p)["kill"](pid, sig);
|
|
4931
|
+
return 0;
|
|
4932
|
+
} catch (e) {
|
|
4933
|
+
return -1;
|
|
4934
|
+
}
|
|
4981
4935
|
} else {
|
|
4982
4936
|
if (((el_kind(proc) === "process") && __eliscript_truthy((proc)["live"]) && !((io_hub === null)) && __eliscript_numeric_relation(">", (proc)["id"], 0))) {
|
|
4983
4937
|
((io_hub)["worker"])["postMessage"](({"type": "kill", "id": (proc)["id"], "sig": sig}));
|
|
@@ -5000,7 +4954,7 @@ function el_install_kernel(session) {
|
|
|
5000
4954
|
}));
|
|
5001
4955
|
d("split-string-and-unquote", ((string, separator = null) => {
|
|
5002
4956
|
{
|
|
5003
|
-
let s = (String(((
|
|
4957
|
+
let s = (String(((__eliscript_value_119) => (__eliscript_truthy(__eliscript_value_119) ? __eliscript_value_119 : ""))(string)));
|
|
5004
4958
|
let out = [];
|
|
5005
4959
|
let cur = "";
|
|
5006
4960
|
let in_quote = false;
|
|
@@ -5292,7 +5246,7 @@ function el_install_kernel(session) {
|
|
|
5292
5246
|
((pt = (pt + 1)));
|
|
5293
5247
|
}
|
|
5294
5248
|
if ((__eliscript_numeric_relation("<=", pt, len) && (el_string_ref(text, __eliscript_numeric_decrement(pt)) === 59))) {
|
|
5295
|
-
while ((__eliscript_numeric_relation("<=", pt, len) && (
|
|
5249
|
+
while ((__eliscript_numeric_relation("<=", pt, len) && (el_string_ref(text, __eliscript_numeric_decrement(pt)) !== 10))) {
|
|
5296
5250
|
((pt = (pt + 1)));
|
|
5297
5251
|
}
|
|
5298
5252
|
if (__eliscript_numeric_relation("<=", pt, len)) {
|
|
@@ -5319,7 +5273,7 @@ function el_install_kernel(session) {
|
|
|
5319
5273
|
return ((ch === 32) || (ch === 9) || (ch === 10) || (ch === 13) || (ch === 12) || (ch === 59));
|
|
5320
5274
|
})(el_string_ref(text, __eliscript_numeric_decrement(pt)))))) {
|
|
5321
5275
|
if ((el_string_ref(text, __eliscript_numeric_decrement(pt)) === 59)) {
|
|
5322
|
-
while ((__eliscript_numeric_relation("<=", pt, len) && (
|
|
5276
|
+
while ((__eliscript_numeric_relation("<=", pt, len) && (el_string_ref(text, __eliscript_numeric_decrement(pt)) !== 10))) {
|
|
5323
5277
|
((pt = (pt + 1)));
|
|
5324
5278
|
}
|
|
5325
5279
|
} else {
|
|
@@ -5354,7 +5308,7 @@ function el_install_kernel(session) {
|
|
|
5354
5308
|
((in_str = true));
|
|
5355
5309
|
} else {
|
|
5356
5310
|
if ((c === 59)) {
|
|
5357
|
-
while ((__eliscript_numeric_relation("<=", pt, len) && (
|
|
5311
|
+
while ((__eliscript_numeric_relation("<=", pt, len) && (el_string_ref(text, __eliscript_numeric_decrement(pt)) !== 10))) {
|
|
5358
5312
|
((pt = (pt + 1)));
|
|
5359
5313
|
}
|
|
5360
5314
|
} else {
|
|
@@ -5508,7 +5462,7 @@ function el_install_kernel(session) {
|
|
|
5508
5462
|
let p = el_expand_file_name(session, filename, null);
|
|
5509
5463
|
let bufs = Array.from(((session)["buffers"])["values"]());
|
|
5510
5464
|
let found = (bufs)["find"](((b) => {
|
|
5511
|
-
return ((
|
|
5465
|
+
return ((__eliscript_value_120) => (__eliscript_truthy(__eliscript_value_120) ? (((b)["locals"])["get"](el_intern("buffer-file-name")) === p) : __eliscript_value_120))((b)["live"]);
|
|
5512
5466
|
}));
|
|
5513
5467
|
if ((found === undefined)) {
|
|
5514
5468
|
return null;
|
|
@@ -5522,9 +5476,9 @@ function el_install_kernel(session) {
|
|
|
5522
5476
|
let tp = el_file_truename(session, filename);
|
|
5523
5477
|
let bufs = Array.from(((session)["buffers"])["values"]());
|
|
5524
5478
|
let found = (bufs)["find"](((b) => {
|
|
5525
|
-
return ((
|
|
5526
|
-
return ((
|
|
5527
|
-
})(((b)["locals"])["get"](el_intern("buffer-file-name"))) :
|
|
5479
|
+
return ((__eliscript_value_121) => (__eliscript_truthy(__eliscript_value_121) ? ((bf) => {
|
|
5480
|
+
return ((__eliscript_value_122) => (__eliscript_truthy(__eliscript_value_122) ? (el_file_truename(session, bf) === tp) : __eliscript_value_122))(el_string_QMARK_(bf));
|
|
5481
|
+
})(((b)["locals"])["get"](el_intern("buffer-file-name"))) : __eliscript_value_121))((b)["live"]);
|
|
5528
5482
|
}));
|
|
5529
5483
|
if ((found === undefined)) {
|
|
5530
5484
|
return null;
|
|
@@ -5543,7 +5497,7 @@ function el_install_kernel(session) {
|
|
|
5543
5497
|
let p = el_expand_file_name(session, filename, null);
|
|
5544
5498
|
let name = el_call(session, el_intern("file-name-nondirectory"), [p]);
|
|
5545
5499
|
let buf = el_get_buffer_create(session, ((name === "") ? p : name));
|
|
5546
|
-
let dir = ((
|
|
5500
|
+
let dir = ((__eliscript_value_123) => (__eliscript_truthy(__eliscript_value_123) ? __eliscript_value_123 : "/"))(el_call(session, el_intern("file-name-directory"), [p]));
|
|
5547
5501
|
let fs = el_fs();
|
|
5548
5502
|
let prev = (session)["currentBuffer"];
|
|
5549
5503
|
((buf)["locals"])["set"](el_intern("buffer-file-name"), p);
|
|
@@ -5556,16 +5510,14 @@ function el_install_kernel(session) {
|
|
|
5556
5510
|
}
|
|
5557
5511
|
})()))) {
|
|
5558
5512
|
((session)["currentBuffer"] = buf);
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
}
|
|
5568
|
-
})();
|
|
5513
|
+
try {
|
|
5514
|
+
((buf)["text"] = "");
|
|
5515
|
+
((buf)["point"] = 1);
|
|
5516
|
+
el_call(session, el_intern("insert-file-contents"), [p, true]);
|
|
5517
|
+
((buf)["modified"] = false);
|
|
5518
|
+
} finally {
|
|
5519
|
+
((session)["currentBuffer"] = prev);
|
|
5520
|
+
}
|
|
5569
5521
|
}
|
|
5570
5522
|
return buf;
|
|
5571
5523
|
}
|
|
@@ -5575,7 +5527,7 @@ function el_install_kernel(session) {
|
|
|
5575
5527
|
d("save-buffer", ((arg = null) => {
|
|
5576
5528
|
{
|
|
5577
5529
|
let b = el_current_buffer(session);
|
|
5578
|
-
let bf = ((
|
|
5530
|
+
let bf = ((__eliscript_value_124) => (__eliscript_truthy(__eliscript_value_124) ? __eliscript_value_124 : el_global_value(session, el_intern("buffer-file-name"))))(((b)["locals"])["get"](el_intern("buffer-file-name")));
|
|
5579
5531
|
if (__eliscript_truthy(el_string_QMARK_(bf))) {
|
|
5580
5532
|
el_call(session, el_intern("write-region"), [1, el_point_max(b), bf, null, el_intern("silent")]);
|
|
5581
5533
|
((b)["modified"] = false);
|
|
@@ -5586,7 +5538,7 @@ function el_install_kernel(session) {
|
|
|
5586
5538
|
d("revert-buffer", ((ignore_auto = null, noconfirm = null, preserve_modes = null) => {
|
|
5587
5539
|
{
|
|
5588
5540
|
let b = el_current_buffer(session);
|
|
5589
|
-
let bf = ((
|
|
5541
|
+
let bf = ((__eliscript_value_125) => (__eliscript_truthy(__eliscript_value_125) ? __eliscript_value_125 : el_global_value(session, el_intern("buffer-file-name"))))(((b)["locals"])["get"](el_intern("buffer-file-name")));
|
|
5590
5542
|
if (__eliscript_truthy(el_string_QMARK_(bf))) {
|
|
5591
5543
|
el_call(session, el_intern("insert-file-contents"), [bf, null, null, null, true]);
|
|
5592
5544
|
((b)["modified"] = false);
|
|
@@ -5607,8 +5559,8 @@ function el_install_kernel(session) {
|
|
|
5607
5559
|
d("verify-visited-file-modtime", ((buf = null) => {
|
|
5608
5560
|
{
|
|
5609
5561
|
let b = (((buf == null) || (buf === null)) ? el_current_buffer(session) : (__eliscript_truthy(el_string_QMARK_(buf)) ? el_get_buffer_create(session, buf) : buf));
|
|
5610
|
-
let bf = ((
|
|
5611
|
-
let rec_mtime = ((
|
|
5562
|
+
let bf = ((__eliscript_value_126) => (__eliscript_truthy(__eliscript_value_126) ? ((b)["locals"])["get"](el_intern("buffer-file-name")) : __eliscript_value_126))((el_kind(b) === "buffer"));
|
|
5563
|
+
let rec_mtime = ((__eliscript_value_127) => (__eliscript_truthy(__eliscript_value_127) ? (b)["visitedFileModtime"] : __eliscript_value_127))((el_kind(b) === "buffer"));
|
|
5612
5564
|
let fs = el_fs();
|
|
5613
5565
|
if ((!(__eliscript_truthy(el_string_QMARK_(bf))) || (fs == null))) {
|
|
5614
5566
|
return true;
|
|
@@ -5663,7 +5615,7 @@ function el_install_kernel(session) {
|
|
|
5663
5615
|
} else {
|
|
5664
5616
|
{
|
|
5665
5617
|
let u = (p)["cpuUsage"]();
|
|
5666
|
-
return el_cons((((
|
|
5618
|
+
return el_cons((((__eliscript_value_128) => (__eliscript_truthy(__eliscript_value_128) ? __eliscript_value_128 : 0))((u)["user"]) + ((__eliscript_value_129) => (__eliscript_truthy(__eliscript_value_129) ? __eliscript_value_129 : 0))((u)["system"])), 1000000);
|
|
5667
5619
|
}
|
|
5668
5620
|
}
|
|
5669
5621
|
}
|
|
@@ -5689,7 +5641,7 @@ function el_install_kernel(session) {
|
|
|
5689
5641
|
if (__eliscript_truthy((e)["startsWith"](prefix))) {
|
|
5690
5642
|
{
|
|
5691
5643
|
let full = (String((dir)["replace"](new (globalThis.RegExp)("/+$"), "")) + String("/") + String(e));
|
|
5692
|
-
let is_dir = ((
|
|
5644
|
+
let is_dir = ((__eliscript_value_130) => (__eliscript_truthy(__eliscript_value_130) ? __eliscript_value_130 : ((__eliscript_value_131) => (__eliscript_truthy(__eliscript_value_131) ? __eliscript_value_131 : (() => {
|
|
5693
5645
|
try {
|
|
5694
5646
|
return ((fs)["statSync"](full))["isDirectory"]();
|
|
5695
5647
|
} catch (err) {
|
|
@@ -5758,7 +5710,7 @@ function el_install_kernel(session) {
|
|
|
5758
5710
|
return null;
|
|
5759
5711
|
}));
|
|
5760
5712
|
d("autoloadp", ((object) => {
|
|
5761
|
-
return el_bool(((
|
|
5713
|
+
return el_bool(((__eliscript_value_132) => (__eliscript_truthy(__eliscript_value_132) ? __eliscript_value_132 : ((__eliscript_value_134) => (__eliscript_truthy(__eliscript_value_134) ? el_sym_is((object)["car"], "autoload") : __eliscript_value_134))(el_cons_QMARK_(object))))(((__eliscript_value_133) => (__eliscript_truthy(__eliscript_value_133) ? (object)["isAutoload"] : __eliscript_value_133))(el_function_QMARK_(object))));
|
|
5762
5714
|
}));
|
|
5763
5715
|
d("derived-mode-p", ((...modes) => {
|
|
5764
5716
|
{
|
|
@@ -5845,7 +5797,7 @@ function createSession() {
|
|
|
5845
5797
|
return (String((kv)[0]) + String("=") + String((kv)[1]));
|
|
5846
5798
|
}));
|
|
5847
5799
|
let delim = ((!((path_mod == null)) && __eliscript_truthy(el_string_QMARK_((path_mod)["delimiter"]))) ? (path_mod)["delimiter"] : ":");
|
|
5848
|
-
let path_dirs = (((String(((
|
|
5800
|
+
let path_dirs = (((String(((__eliscript_value_135) => (__eliscript_truthy(__eliscript_value_135) ? __eliscript_value_135 : ""))((env_obj)["PATH"]))))["split"](delim))["filter"](((s) => {
|
|
5849
5801
|
return __eliscript_numeric_relation(">", ((s) ?? []).length, 0);
|
|
5850
5802
|
}));
|
|
5851
5803
|
let session = ({"values": new (globalThis.Map)(), "functions": new (globalThis.Map)(), "macros": new (globalThis.Map)(), "specials": new (globalThis.Set)(), "localVars": new (globalThis.Set)(), "plists": new (globalThis.Map)(), "features": new (globalThis.Set)(), "conditionParents": new (globalThis.Map)(), "conditionMessages": new (globalThis.Map)(), "matchData": null, "buffers": new (globalThis.Map)(), "currentBuffer": null, "structs": new (globalThis.Map)(), "accessors": new (globalThis.Map)(), "gvSetters": new (globalThis.Map)(), "moduleSources": new (globalThis.Map)(), "loadingFeatures": new (globalThis.Set)(), "userDefinedFns": new (globalThis.Set)(), "activeLibs": new (globalThis.Set)(), "extSpecialForms": new (globalThis.Map)(), "afterLoad": new (globalThis.Map)(), "loadedFiles": new (globalThis.Set)(), "loadStack": [], "dynamicMode": false, "initialized": false, "structSchemas": new (globalThis.Map)(), "protocols": new (globalThis.Map)(), "multimethods": new (globalThis.Map)(), "modules": new (globalThis.Map)(), "liveValueGetters": new (globalThis.Map)(), "engineSlots": new (globalThis.Map)(), "adviceOrig": new (globalThis.Map)(), "adviceStack": new (globalThis.Map)(), "processes": [], "timers": [], "ertTests": new (globalThis.Map)(), "ertTestOrder": [], "timeoutDeadline": null, "defaultFileModes": 493, "batchOutput": true, "nextSlotId": 0, "gensymCounter": 0, "inAsyncContext": false, "abiMemory": null, "output": null});
|
|
@@ -5855,7 +5807,7 @@ function createSession() {
|
|
|
5855
5807
|
(base_condition_messages)["forEach"](((pair) => {
|
|
5856
5808
|
return ((session)["conditionMessages"])["set"]((pair)[0], (pair)[1]);
|
|
5857
5809
|
}));
|
|
5858
|
-
([["case-fold-search", true], ["noninteractive", true], ["json-null", null], ["json-false", el_intern(":json-false")], ["json-object-type", el_intern("alist")], ["json-array-type", el_intern("vector")], ["json-key-type", null], ["json-encoding-pretty-print", null], ["json-encoding-separator", ","], ["json-encoding-object-sort-predicate", null], ["float-output-format", null], ["inhibit-read-only", null], ["load-path", null], ["most-positive-fixnum", 2305843009213694000], ["most-negative-fixnum", -2305843009213694000], ["print-length", null], ["print-level", null], ["print-escape-newlines", null], ["print-circle", null], ["emacs-major-version", 31], ["emacs-minor-version", 1], ["emacs-version", "31.1"], ["system-type", el_intern(sys_type)], ["system-configuration", "aarch64-apple-darwin"], ["null-device", ((os_mod == null) ? null : (os_mod)["devNull"])], ["path-separator", delim], ["default-directory", cwd], ["temporary-file-directory", tmp_dir], ["directory-files-no-dot-files-regexp", "\\`\\([^.]\\|\\.\\([^.]\\|\\..\\)\\).*"], ["shell-file-name", ((
|
|
5810
|
+
([["case-fold-search", true], ["noninteractive", true], ["json-null", null], ["json-false", el_intern(":json-false")], ["json-object-type", el_intern("alist")], ["json-array-type", el_intern("vector")], ["json-key-type", null], ["json-encoding-pretty-print", null], ["json-encoding-separator", ","], ["json-encoding-object-sort-predicate", null], ["float-output-format", null], ["inhibit-read-only", null], ["load-path", null], ["most-positive-fixnum", 2305843009213694000], ["most-negative-fixnum", -2305843009213694000], ["print-length", null], ["print-level", null], ["print-escape-newlines", null], ["print-circle", null], ["emacs-major-version", 31], ["emacs-minor-version", 1], ["emacs-version", "31.1"], ["system-type", el_intern(sys_type)], ["system-configuration", "aarch64-apple-darwin"], ["null-device", ((os_mod == null) ? null : (os_mod)["devNull"])], ["path-separator", delim], ["default-directory", cwd], ["temporary-file-directory", tmp_dir], ["directory-files-no-dot-files-regexp", "\\`\\([^.]\\|\\.\\([^.]\\|\\..\\)\\).*"], ["shell-file-name", ((__eliscript_value_136) => (__eliscript_truthy(__eliscript_value_136) ? __eliscript_value_136 : "sh"))((env_obj)["SHELL"])], ["shell-command-switch", "-c"], ["process-connection-type", true], ["file-name-handler-alist", null], ["write-region-inhibit-fsync", null], ["inhibit-modification-hooks", null], ["after-change-functions", null], ["buffer-read-only", null], ["buffer-invisibility-spec", true], ["bidi-paragraph-direction", null], ["current-prefix-arg", null], ["delay-mode-hooks", null], ["header-line-format", null], ["imenu-create-index-function", null], ["last-nonmenu-event", null], ["require-final-newline", null], ["tabulated-list-entries", null], ["tabulated-list-format", null], ["tabulated-list-padding", 0], ["truncate-lines", null], ["view-mode", null], ["word-wrap", null], ["buffer-undo-list", null], ["version-control", null], ["major-mode", el_intern("fundamental-mode")], ["current-language-environment", "UTF-8"], ["auth-sources", el_list("~/.authinfo", "~/.authinfo.gpg", "~/.netrc")], ["diary-file", "~/.emacs.d/diary"], ["completion-at-point-functions", null], ["command-line-args", el_list_from((["eliscript"])["concat"](args))], ["command-line-args-left", el_list_from(args)], ["process-environment", el_list_from(env_entries)], ["exec-path", el_list_from(path_dirs)], ["invocation-name", "eliscript"], ["invocation-directory", ((!((path_mod == null)) && !((p == null)) && __eliscript_truthy(el_string_QMARK_((p)["execPath"]))) ? (String((path_mod)["dirname"]((p)["execPath"])) + String("/")) : cwd)], ["kill-emacs-hook", null], ["lexical-binding", true], ["buffer-file-name", null], ["load-file-name", null], ["load-true-file-name", null], ["standard-output", true], ["url-request-method", null], ["url-request-extra-headers", null], ["url-request-data", null], ["url-http-end-of-headers", null], ["url-http-response-status", null], ["url-proxy-services", null], ["url-user-agent", "Emacs"], ["url-mime-encoding-string", "gzip"], ["url-max-redirections", 30], ["url-privacy-level", el_list(el_intern("email"))], ["url-cookie-storage", null], ["url-cookie-secure-storage", null], ["url-cookie-file", null], ["coding-system-for-read", null], ["coding-system-for-write", null], ["inhibit-message", null], ["system-time-locale", null], ["defun-declarations-alist", null], ["emacs-lisp-mode-syntax-table", ({"kind": "syntax-table", "entries": new (globalThis.Map)()})], ["standard-syntax-table", ({"kind": "syntax-table", "entries": new (globalThis.Map)()})], ["gcs-done", 0], ["gc-elapsed", el_make_float(0)], ["gc-cons-threshold", 800000], ["pi", el_make_float(3.141592653589793)], ["global-map", el_list(el_intern("keymap"))], ["special-mode-map", el_list(el_intern("keymap"))], ["text-mode-map", el_list(el_intern("keymap"))], ["prog-mode-map", el_list(el_intern("keymap"))], ["diff-mode-map", el_list(el_intern("keymap"))], ["tabulated-list-mode-map", el_list(el_intern("keymap"))], ["button-map", el_list(el_intern("keymap"))], ["widget-keymap", el_list(el_intern("keymap"))], ["minibuffer-local-map", el_list(el_intern("keymap"))]])["forEach"](((pair) => {
|
|
5859
5811
|
el_add_special_var(session, el_intern((pair)[0]));
|
|
5860
5812
|
return ((session)["values"])["set"](el_intern((pair)[0]), (pair)[1]);
|
|
5861
5813
|
}));
|