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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ license = "GPL-3.0"
edition = "2024"
keywords = ["lisp", "scripting", "emacs-lisp"]
categories = ["compilers", "config"]
rust-version = "1.88.0"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ already familiar with Emacs Lisp, there's no need to learn an extra language.

## Getting started

Tulisp requires `rustc` version 1.70 or higher.
Tulisp requires `rustc` version 1.88 or higher.

It is very easy to get started. Here's an example:

Expand Down
6 changes: 5 additions & 1 deletion src/builtin/functions/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ mod tests {
#[test]
fn test_error_handling() {
let mut ctx = TulispContext::new();
eval_assert_equal(&mut ctx, "(catch 'my-tag (throw 'my-tag 42))", "42");
eval_assert_equal(
&mut ctx,
"(catch 'my-tag (setq x 42) (throw 'my-tag x))",
"42",
);
eval_assert_error(
&mut ctx,
"(catch 'my-tag (throw 'other-tag 42))",
Expand Down
8 changes: 8 additions & 0 deletions src/builtin/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,14 @@ the unix epoch.
| `sqrt` | ☑️ | |
| `abs` | ☑️ | |

## Error handling

| Name | Status | Details |
|--------------------------------------------------------------------------------------------------------|--------|---------|
| [`error`](https://www.gnu.org/software/emacs/manual/html_node/elisp/Signaling-Errors.html#index-error) | ☑️ | |
| [`throw`](https://www.gnu.org/software/emacs/manual/html_node/elisp/Catch-and-Throw.html#index-throw) | ☑️ | |
| [`catch`](https://www.gnu.org/software/emacs/manual/html_node/elisp/Catch-and-Throw.html#index-catch) | ☑️ | |

## Others

These functions need to be organized into categories. They are grouped here for now.
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ already familiar with Emacs Lisp, there's no need to learn an extra language.

## Getting started

Tulisp requires `rustc` version 1.70 or higher.
Tulisp requires `rustc` version 1.88 or higher.

It is very easy to get started. Here's an example:
*/
Expand Down