[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Common Lisp in Emacs (lisp-mode, font-lock, SLIME, SLY, ...)

From: Luke Gorrie
Subject: Re: Common Lisp in Emacs (lisp-mode, font-lock, SLIME, SLY, ...)
Date: Sat, 11 Apr 2020 06:58:29 +0200

I'm the one most out of the loop so I rely on someone to correct my misinformation :) but the way I remember it at least from the early days is

SLIME is a minor-mode below lisp-mode that reuses the lisp-mode functionality like navigating by sexp, font-lock, indentation, etc. The dynamic indentation stuff in SLIME, like detecting &body in macros, is used to configure property lists that lisp-mode will see. So really relying on and heavily using lisp-mode.

That could well be wrong and/or out of date though. Just answering due to the novelty of being asked something about that code :)

On Sat, 11 Apr 2020 at 01:00, Stefan Monnier <address@hidden> wrote:
Sorry to spam here a little, but I was looking into how we should
integrate something like cl-font-lock
(https://github.com/cl-font-lock/cl-font-lock) into Emacs and then
I started to wonder...

Who uses `lisp-mode`?  IIUC neither SLY nor SLIME actually use
`lisp-mode` itself, they use some other major mode with its
fontification function, right?

So do they already highlight built-in functions, types, and variables in
a special way (presumably by querying the underlying Lisp process)?

Do they actually use a proper child-mode of `lisp-mode`?

Do they (re)use the font-lock keywords of `lisp-mode` at all, or do they
use something completely independent?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]