~technomancy/fennel-mode

Provide a format string for fennel-proto-repl--display-result

Previously, fennel-proto-repl--display-result used MESSAGE directly on
the result string, which caused problems, if Emacs-recognized format
characters appeared in the message.

Updated some proto-repl tests, as these been failing for a while
Update test instructions in readme.
b07a726f — Rudolf Adamkovič 4 months ago
ProtoREPL: Interpret ANSI colors when echoing evaluation results

Reproduction steps:

  1. Open a new file.
  2. Enable the Fennel mode.
  3. Enable the Fennel Proto REPL minor mode.
  4. Type 'nonsense'.
  5. Type 'C-x C-e' to evaluate 'nonsense'.
  6. Answer 'y' when asked whether to start a new REPL.
  7. See the "unknown identifier: nonsense" error in the echo area.

Actual:

  The error contains ANSI color codes.

Expected:

  The error is shown in color, with no ANSI color codes.
Add makefile, improve readme.
Add missing require to tests.
b48b57ad — Rudolf Adamkovič 4 months ago
Treat top-level forms as outline headings

Fennel mode users can use the Outline minor mode to cycle between seeing

  (1) all content and
  (2) section titles as per the ';;;;' comments.

With this patch, they can cycle further to see

  (3) section titles *along with* the first line of
      the top-level forms within each section.

The change is inspired by the built-in Emacs Lisp mode.
Use xref instead of custom function for finding definition.
Remove paragraph function and mention C-c C-z from fennel-repl-mode.
Rearrange some of the bindings in the readme.
ae59727e — Michael Fiano 6 months ago
Document missing keybindings in README.md.

Also separate them to know what is available in `fennel-mode` and `fennel-repl-mode`.
c28ac6ff — Michael Fiano 6 months ago
Add aliases for lisp-mode functions.

This adds some discoverability, and allows us to augment them in the future.
Use shell-command-on-region for antifennel.
Revert "Treat multisym separators as punctuation."

This has very bad effects on indentation logic. Whatever fix we use to
try to make LSP completion work will have to be more focused.

This reverts commit 0997a3853e56bfcd29167687f8ababcf8fd89c36.
Fix calling fennel-reload from non-file buffers.
Add fennel-repl-clear-buffer alias.
6c0e6fe9 — Michael Fiano 6 months ago
Minor documentation fixes
Treat multisym separators as punctuation.

This isn't strictly correct according to the definition of punctuation
in the manual:

> Characters used as punctuation in a human language, or used in a
> programming language to separate symbols from one another.

However, if we interpret "symbols" here as "symbols or fields" then it
makes sense. Without this, eglot doesn't complete correctly on
multisyms, so this is necessary to get that fixed.
handle values from the ,return op
add support for the ,return command
Next