lispy icon indicating copy to clipboard operation
lispy copied to clipboard

Lispy does not work in lfe-inferior-mode

Open pierre-rouleau opened this issue 3 years ago • 1 comments

I tried using using lisp-mode in several REPL including emacs-lisp-inferior-mode, lisp-inferior-mode, sly-mrepl-mode and that works fine.

I also tried to us emit in lfe-inferior-mode (for the LFE - Lisp Flavoured Erlang - repl) but that fails. It reports unbalanced parens and the REPL no longer works until the lisp-mode is turned off.

Tested on:

  • Emacs 26.3
  • Emacs 27.2
  • Both with LFE 1.3

LFE displays ASCII art when it starts. I wonder if that is part of the problem. It shows the following:

Erlang/OTP 23 [erts-11.1.3] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe] [dtrace]

   ..-~.~_~---..
  (      \\     )    |   A Lisp-2+ on the Erlang VM
  |`-.._/_\\_.-':    |   Type (help) for usage info.
  |         g |_ \   |
  |        n    | |  |   Docs: http://docs.lfe.io/
  |       a    / /   |   Source: http://github.com/rvirding/lfe
   \     l    |_/    |
    \   r     /      |   LFE v1.3 (abort with ^G)
     `-E___.-'

lfe> 

The failure reports: Scan error: "Unbalanced parentheses", 408, 462 The location 408 is the last | just before the LFE v1.3 (abort with ^G) and location 462 is the opening paren of the first lisp form entered.

Unfortunately LFE has no option to disable the ASCII art. I'll have to get the source and try disabling that.

Any idea what else I could try?

pierre-rouleau avatar Apr 25 '21 16:04 pierre-rouleau

I have been able to prevent the banner to be printed (the latest LFE development version has a -nobanner switch). The problem remains. Lispy also does not work in lisp-inferior-mode, even though it works in emacs-lisp-inferior-mode (ielm) and in SLY (have not yet tested in Slime). More investigation is needed.

pierre-rouleau avatar Apr 27 '21 01:04 pierre-rouleau