* Request: add cl-font-lock to Emacs or Elpa
@ 2020-03-15 6:58 Spenser Truex
2020-03-15 14:31 ` Eli Zaretskii
[not found] ` <jwvpnddmx7i.fsf-monnier+emacs@gnu.org>
0 siblings, 2 replies; 18+ messages in thread
From: Spenser Truex @ 2020-03-15 6:58 UTC (permalink / raw)
To: emacs-devel
cl-font-lock is a package that does richer syntax highlighting for
Common Lisp. I'm the co-maintainer on it. We are interested in having it
included in Emacs or on Elpa. It is already on Melpa.
https://github.com/cl-font-lock/cl-font-lock
How can we move that along?
--
Spenser Truex
spensertruex.com
SFSU Computer Science
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Request: add cl-font-lock to Emacs or Elpa
2020-03-15 6:58 Request: add cl-font-lock to Emacs or Elpa Spenser Truex
@ 2020-03-15 14:31 ` Eli Zaretskii
2020-03-15 16:12 ` Stefan Monnier
[not found] ` <jwvpnddmx7i.fsf-monnier+emacs@gnu.org>
1 sibling, 1 reply; 18+ messages in thread
From: Eli Zaretskii @ 2020-03-15 14:31 UTC (permalink / raw)
To: Spenser Truex; +Cc: emacs-devel
> From: Spenser Truex <lists@spensertruex.com>
> Date: Sat, 14 Mar 2020 23:58:05 -0700
>
> cl-font-lock is a package that does richer syntax highlighting for
> Common Lisp. I'm the co-maintainer on it. We are interested in having it
> included in Emacs or on Elpa. It is already on Melpa.
>
> https://github.com/cl-font-lock/cl-font-lock
>
> How can we move that along?
Is it possible to add this to lisp-mode.el?
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Request: add cl-font-lock to Emacs or Elpa
2020-03-15 14:31 ` Eli Zaretskii
@ 2020-03-15 16:12 ` Stefan Monnier
0 siblings, 0 replies; 18+ messages in thread
From: Stefan Monnier @ 2020-03-15 16:12 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Spenser Truex, emacs-devel
> Is it possible to add this to lisp-mode.el?
Indeed, it seems it would make a lot of sense there, tho maybe we don't
want to preload it, so it might make sense to keep it in a separate file
(actually, I think it would also make sense to move some of the
definition of the `lisp-mode` major mode to such a separate file, since
`lisp-mode` (the major-mode) is used only by the a small subset of Emacs
users).
I also wonder how you made those lists? Have you extracted them from
the CLHS? If so, it would be good to include (e.g. as comments) the
code&steps that was used.
[ I'm also curious why things like make-method and next-method-p are in
built-in--symbols rather than in built-in--functions. ]
Finally, of course, there's the issue of copyright. I don't see your
name in the copyright.list so it appears you haven't yet signed any
copyright paperwork. I see Yue Daian as author, but the git log doesn't
mention him. How does your work relate to his? Who else contributed?
Stefan
^ permalink raw reply [flat|nested] 18+ messages in thread
[parent not found: <jwvpnddmx7i.fsf-monnier+emacs@gnu.org>]
* Re: Request: add cl-font-lock to Emacs or Elpa
[not found] ` <jwvpnddmx7i.fsf-monnier+emacs@gnu.org>
@ 2020-03-15 20:28 ` Spenser Truex
2020-03-15 20:57 ` Drew Adams
0 siblings, 1 reply; 18+ messages in thread
From: Spenser Truex @ 2020-03-15 20:28 UTC (permalink / raw)
To: Stefan Monnier, emacs-devel
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> cl-font-lock is a package that does richer syntax highlighting for
>> Common Lisp. I'm the co-maintainer on it. We are interested in having it
>> included in Emacs or on Elpa. It is already on Melpa.
>>
>> https://github.com/cl-font-lock/cl-font-lock
>>
>> How can we move that along?
>
> Sorry, I saw the (title of the) message you sent a few weeks ago and put
> it into my "todo" but later removed it from my todo because I thought it
> had been handled by someone else (there was some commit soon afterwards
> that seemed related).
Thank you. I hope the package is simple enough to see what it is doing,
so that it can be added without issue.
I think it should be an opt-in feature, not a replacement for the
current syntax highlighting in lisp-mode because many users prefer the
old syntax highlighting. Also, it is not very sophisticated (it is just
regular expressions) and sometimes doesn't highlight right based on the
context.
The other issue with it is that it can't really be unloaded.
So if these issues are too great for it to be added then we will have to
fix them first.
> Stefan
--
Spenser Truex
spensertruex.com
San Francisco, USA
^ permalink raw reply [flat|nested] 18+ messages in thread
* RE: Request: add cl-font-lock to Emacs or Elpa
2020-03-15 20:28 ` Spenser Truex
@ 2020-03-15 20:57 ` Drew Adams
2020-03-17 17:32 ` Spenser
0 siblings, 1 reply; 18+ messages in thread
From: Drew Adams @ 2020-03-15 20:57 UTC (permalink / raw)
To: Spenser Truex, Stefan Monnier, emacs-devel
> I think it should be an opt-in feature, not a replacement for the
> current syntax highlighting in lisp-mode because many users prefer the
> old syntax highlighting. Also, it is not very sophisticated (it is just
> regular expressions) and sometimes doesn't highlight right based on the
> context.
Even without looking at the proposed feature/change,
those statements sound right, to me.
> The other issue with it is that it can't really be unloaded.
>
> So if these issues are too great for it to be added then we will have to
> fix them first.
I'd also suggest changing the file name from
`cl-font-lock.el' to `font-lock-cl.el'. This
isn't really part of Common Lisp or its
emulation, and if we get other such code for
other languages then that would naturally use
the same convention: `font-lock-<LANG>.el'.
(No, I don't feel strongly about this. It's
just something that occurred to me. Perhaps
there are good counter-arguments.)
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Request: add cl-font-lock to Emacs or Elpa
2020-03-15 20:57 ` Drew Adams
@ 2020-03-17 17:32 ` Spenser
2020-03-17 17:43 ` Drew Adams
2020-03-17 18:13 ` Stefan Monnier
0 siblings, 2 replies; 18+ messages in thread
From: Spenser @ 2020-03-17 17:32 UTC (permalink / raw)
To: Drew Adams; +Cc: Spenser Truex, Stefan Monnier, emacs-devel
I’m glad to see no philosophical complaints about this package being added. I will do my best to send updates on development, and I want to make it as elpa-friendly as possible.
> Em 15 de mar de 2020, à(s) 14:01, Drew Adams <drew.adams@oracle.com> escreveu:
>
>>
>> I think it should be an opt-in feature, not a replacement for the
>> current syntax highlighting in lisp-mode because many users prefer the
>> old syntax highlighting. Also, it is not very sophisticated (it is just
>> regular expressions) and sometimes doesn't highlight right based on the
>> context.
>
> Even without looking at the proposed feature/change,
> those statements sound right, to me.
>
>> The other issue with it is that it can't really be unloaded.
>>
>> So if these issues are too great for it to be added then we will have to
>> fix them first.
>
> I'd also suggest changing the file name from
> `cl-font-lock.el' to `font-lock-cl.el'. This
> isn't really part of Common Lisp or its
> emulation, and if we get other such code for
> other languages then that would naturally use
> the same convention: `font-lock-<LANG>.el'.
We were also asked by Melpa to name change. We are currently doing this. Currently the Github organization and the package have been renamed. Thanks!
>
> (No, I don't feel strongly about this. It's
> just something that occurred to me. Perhaps
> there are good counter-arguments.)
^ permalink raw reply [flat|nested] 18+ messages in thread
* RE: Request: add cl-font-lock to Emacs or Elpa
2020-03-17 17:32 ` Spenser
@ 2020-03-17 17:43 ` Drew Adams
2020-03-17 18:13 ` Stefan Monnier
1 sibling, 0 replies; 18+ messages in thread
From: Drew Adams @ 2020-03-17 17:43 UTC (permalink / raw)
To: Spenser; +Cc: Spenser Truex, Stefan Monnier, emacs-devel
> > I'd also suggest changing the file name from
> > `cl-font-lock.el' to `font-lock-cl.el'. This
> > isn't really part of Common Lisp or its
> > emulation, and if we get other such code for
> > other languages then that would naturally use
> > the same convention: `font-lock-<LANG>.el'.
>
> We were also asked by Melpa to name change. We are currently doing this.
> Currently the Github organization and the package have been renamed. Thanks!
I guess you're saying, by "name change", that the
name will become font-lock-cl.el?
Another reason not to use prefix `cl-', IMO, is
that this is not about emulating Common Lisp
features. Font-locking is an Emacs feature.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Request: add cl-font-lock to Emacs or Elpa
2020-03-17 17:32 ` Spenser
2020-03-17 17:43 ` Drew Adams
@ 2020-03-17 18:13 ` Stefan Monnier
2020-03-17 18:25 ` Drew Adams
[not found] ` <87y2rtech3.fsf@spensertruex.com>
1 sibling, 2 replies; 18+ messages in thread
From: Stefan Monnier @ 2020-03-17 18:13 UTC (permalink / raw)
To: Spenser; +Cc: Spenser Truex, Drew Adams, emacs-devel
>> I'd also suggest changing the file name from
>> `cl-font-lock.el' to `font-lock-cl.el'.
This is a file that affects `lisp-mode` and not `font-lock` (it's partly
a philosophical choice, but support for "font-lock in mode foo-mode"
traditionally resides in the definition of foo-mode rather than in the
definition of font-lock).
So "cl-<bla>" is preferable to "font-lock-<bla>".
IOW maybe there's a better choice than `cl-font-lock`, but
`font-lock-cl` is definitely not it.
Stefan
^ permalink raw reply [flat|nested] 18+ messages in thread
* RE: Request: add cl-font-lock to Emacs or Elpa
2020-03-17 18:13 ` Stefan Monnier
@ 2020-03-17 18:25 ` Drew Adams
2020-03-17 18:42 ` Stefan Monnier
[not found] ` <87y2rtech3.fsf@spensertruex.com>
1 sibling, 1 reply; 18+ messages in thread
From: Drew Adams @ 2020-03-17 18:25 UTC (permalink / raw)
To: Stefan Monnier, Spenser; +Cc: Spenser Truex, emacs-devel
> >> I'd also suggest changing the file name from
> >> `cl-font-lock.el' to `font-lock-cl.el'.
>
> This is a file that affects `lisp-mode` and not `font-lock` (it's partly
> a philosophical choice, but support for "font-lock in mode foo-mode"
> traditionally resides in the definition of foo-mode rather than in the
> definition of font-lock).
Ah, yes. I agree with that.
> So "cl-<bla>" is preferable to "font-lock-<bla>".
Neither looks right to me, now, given your point.
Why isn't this just in lisp-mode.el? I see your
reply to Eli about that. In that case, how about
something like lisp-mode-fl.el or lisp-fl.el?
Or if, as you suggested in your reply to Eli, we
moved some of lisp-mode.el to a separate file,
and if it made sense for that moved stuff to be
in the same file as the font-lock stuff, maybe
lisp-extra.el, lisp-misc.el, or something else?
> IOW maybe there's a better choice than `cl-font-lock`, but
> `font-lock-cl` is definitely not it.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Request: add cl-font-lock to Emacs or Elpa
2020-03-17 18:25 ` Drew Adams
@ 2020-03-17 18:42 ` Stefan Monnier
2020-03-19 13:56 ` YUE Daian
0 siblings, 1 reply; 18+ messages in thread
From: Stefan Monnier @ 2020-03-17 18:42 UTC (permalink / raw)
To: Drew Adams; +Cc: Spenser Truex, Spenser, emacs-devel
> lisp-extra.el, lisp-misc.el, or something else?
In an ideal world, I think the current `lisp/emacs-lisp/lisp-mode.el`
should be called `lisp-misc.el` or some such and we should have a new
`lisp/progmodes/lisp-mode.el` which contains the definition of
`lisp-mode`.
Maybe we can get a bit closer to this ideal by using `lisp/emacs-lisp/lisp.el`
in the role of "lisp-misc.el" (i.e. moving the code that's not specific
to `lisp-mode` to `lisp.el`).
Stefan
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Request: add cl-font-lock to Emacs or Elpa
2020-03-17 18:42 ` Stefan Monnier
@ 2020-03-19 13:56 ` YUE Daian
2020-03-19 14:19 ` Stefan Monnier
0 siblings, 1 reply; 18+ messages in thread
From: YUE Daian @ 2020-03-19 13:56 UTC (permalink / raw)
To: Stefan Monnier, Drew Adams; +Cc: Spenser, Spenser Truex, emacs-devel
On 2020-03-17 14:42, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>> lisp-extra.el, lisp-misc.el, or something else?
>
> In an ideal world, I think the current `lisp/emacs-lisp/lisp-mode.el`
> should be called `lisp-misc.el` or some such and we should have a new
> `lisp/progmodes/lisp-mode.el` which contains the definition of
> `lisp-mode`.
>
> Maybe we can get a bit closer to this ideal by using `lisp/emacs-lisp/lisp.el`
> in the role of "lisp-misc.el" (i.e. moving the code that's not specific
> to `lisp-mode` to `lisp.el`).
>
>
> Stefan
>
Hi folks,
Here comes the author of it.
IMHO this should have been part of lisp-mode, since lisp-mode is really
for Common Lisp and this just complements the lacking piece of its font
lock.
Because I was not in this mail list, could anyone please sync with me
the current status?
Are we going to make it into Elpa, or built-in with Emacs?
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Request: add cl-font-lock to Emacs or Elpa
2020-03-19 13:56 ` YUE Daian
@ 2020-03-19 14:19 ` Stefan Monnier
2020-03-19 14:41 ` YUE Daian
0 siblings, 1 reply; 18+ messages in thread
From: Stefan Monnier @ 2020-03-19 14:19 UTC (permalink / raw)
To: YUE Daian; +Cc: Spenser, Spenser Truex, Drew Adams, emacs-devel
> IMHO this should have been part of lisp-mode, since lisp-mode is
> really for Common Lisp and this just complements the lacking piece of
> its font lock.
Agreed.
> Because I was not in this mail list, could anyone please sync with me
> the current status?
>
> Are we going to make it into Elpa, or built-in with Emacs?
I think the intention is to add it to Emacs's core.
It will require some tweaks, of course. But before that there are some
questions which have remained unanswered so far:
On Sun, 15 Mar 202, Stefan Monnier wrote:
> I also wonder how you made those lists? Have you extracted them from
> the CLHS? If so, it would be good to include (e.g. as comments) the
> code&steps that was used.
> [ I'm also curious why things like make-method and next-method-p are in
> built-in--symbols rather than in built-in--functions. ]
>
> Finally, of course, there's the issue of copyright. I don't see your
> name in the copyright.list so it appears you haven't yet signed any
> copyright paperwork. I see Yue Daian as author, but the git log doesn't
> mention him. How does your work relate to his? Who else contributed?
The more important ones are in the second paragraph, and the main one
is missing: would the authors be willing to sign the needed
copyright paperwork (AFAIK neither you nor Spenser have signed that
paperwork yet)?
Stefan
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Request: add cl-font-lock to Emacs or Elpa
2020-03-19 14:19 ` Stefan Monnier
@ 2020-03-19 14:41 ` YUE Daian
2020-03-19 17:15 ` Stefan Monnier
0 siblings, 1 reply; 18+ messages in thread
From: YUE Daian @ 2020-03-19 14:41 UTC (permalink / raw)
To: Stefan Monnier; +Cc: Spenser, Spenser Truex, Drew Adams, emacs-devel
>> I also wonder how you made those lists? Have you extracted them from
>> the CLHS? If so, it would be good to include (e.g. as comments) the
>> code&steps that was used.
>> [ I'm also curious why things like make-method and next-method-p are in
>> built-in--symbols rather than in built-in--functions. ]
>>
They are not extracted from CLHS. They are extracted from a SBCL image.
As for the 2 functions...it is because they are "local function/macro",
which was not recognized as "function".
>> Finally, of course, there's the issue of copyright. I don't see your
>> name in the copyright.list so it appears you haven't yet signed any
>> copyright paperwork. I see Yue Daian as author, but the git log doesn't
>> mention him. How does your work relate to his? Who else contributed?
>
> The more important ones are in the second paragraph, and the main one
> is missing: would the authors be willing to sign the needed
> copyright paperwork (AFAIK neither you nor Spenser have signed that
> paperwork yet)?
>
>
> Stefan
Spenser suggested me to sign the copyright paperwork.
And I am more than willing to do so.
So...where do we start now? ;-)
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Request: add cl-font-lock to Emacs or Elpa
2020-03-19 14:41 ` YUE Daian
@ 2020-03-19 17:15 ` Stefan Monnier
2020-03-21 6:59 ` YUE Daian
0 siblings, 1 reply; 18+ messages in thread
From: Stefan Monnier @ 2020-03-19 17:15 UTC (permalink / raw)
To: YUE Daian; +Cc: Spenser, Spenser Truex, Drew Adams, emacs-devel
>>> I also wonder how you made those lists? Have you extracted them from
>>> the CLHS? If so, it would be good to include (e.g. as comments) the
>>> code&steps that was used.
>>> [ I'm also curious why things like make-method and next-method-p are in
>>> built-in--symbols rather than in built-in--functions. ]
> They are not extracted from CLHS. They are extracted from a SBCL image.
Works as well ;-)
Do you still have the code you used to extract it, so we can keep it
around (e.g. to update the list at some point, or just as documentation)?
> As for the 2 functions...it is because they are "local function/macro",
> which was not recognized as "function".
Doesn't this apply to `call-next-method` as well, then?
> Spenser suggested me to sign the copyright paperwork.
> And I am more than willing to do so.
> So...where do we start now? ;-)
Sent off-list,
Stefan
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Request: add cl-font-lock to Emacs or Elpa
2020-03-19 17:15 ` Stefan Monnier
@ 2020-03-21 6:59 ` YUE Daian
0 siblings, 0 replies; 18+ messages in thread
From: YUE Daian @ 2020-03-21 6:59 UTC (permalink / raw)
To: Stefan Monnier; +Cc: Spenser, Spenser Truex, Drew Adams, emacs-devel
>>>> I also wonder how you made those lists? Have you extracted them from
>>>> the CLHS? If so, it would be good to include (e.g. as comments) the
>>>> code&steps that was used.
>>>> [ I'm also curious why things like make-method and next-method-p are in
>>>> built-in--symbols rather than in built-in--functions. ]
>> They are not extracted from CLHS. They are extracted from a SBCL image.
>
> Works as well ;-)
> Do you still have the code you used to extract it, so we can keep it
> around (e.g. to update the list at some point, or just as documentation)?
>
I lost the original source, so I wrote a new one ;-)
I have added it to the README file, here is the snippet:
#+BEGIN_SRC common-lisp
(defvar *functions* nil)
(defvar *symbols* nil)
(defvar *types* nil)
(let ((pack (find-package :common-lisp)))
(do-all-symbols (sym)
(cond
((not (eql pack (symbol-package sym))) nil)
((fboundp sym) (pushnew sym *functions*))
((find-class sym nil) (pushnew sym *types*))
(t (pushnew sym *symbols*)))))
#+END_SRC
Some manual work was done to tune the result.
>> As for the 2 functions...it is because they are "local function/macro",
>> which was not recognized as "function".
>
> Doesn't this apply to `call-next-method` as well, then?
>
Added. Thanks.
^ permalink raw reply [flat|nested] 18+ messages in thread
[parent not found: <87y2rtech3.fsf@spensertruex.com>]
[parent not found: <1F8693F6-6DD1-4D5A-A1B1-C38BCAD4977F@spensertruex.com>]
* Request: add cl-font-lock to Emacs or Elpa
[not found] <1F8693F6-6DD1-4D5A-A1B1-C38BCAD4977F@spensertruex.com>
@ 2020-03-17 18:02 ` Spenser
0 siblings, 0 replies; 18+ messages in thread
From: Spenser @ 2020-03-17 18:02 UTC (permalink / raw)
To: Mattias Engdegård; +Cc: emacs-devel
>>
>> Em 15 de mar de 2020, à(s) 02:47, Mattias Engdegård <mattiase@acm.org> escreveu:
>>
>>>> 15 mars 2020 kl. 07.58 skrev Spenser Truex <lists@spensertruex.com>:
>>>
>>> cl-font-lock is a package that does richer syntax highlighting for
>>> Common Lisp. I'm the co-maintainer on it. We are interested in having it
>>> included in Emacs or on Elpa. It is already on Melpa.
>>>
>>> https://github.com/cl-font-lock/cl-font-lock
>>
>> Did you check that the highlighting actually works for all those identifiers?
>>
> I have been using it for months to develop CL code, and I think it works quite nicely. I prefer it over the default, and it helps me to notice misspelt symbols that are not highlighted.
>
> I'm open to tests, and would be interested in adding such a test as suggested to a CI system if it could be automatically done in some way.
>
> Do you have a suggestion for how this can be done? If so, can you spell that out and/or submit code for it?
>
> Much appreciation to you,
> —
> Spenser Truex
> spensertruex.com
> San Francisco State University, Computer Science
^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2020-03-22 17:54 UTC | newest]
Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-15 6:58 Request: add cl-font-lock to Emacs or Elpa Spenser Truex
2020-03-15 14:31 ` Eli Zaretskii
2020-03-15 16:12 ` Stefan Monnier
[not found] ` <jwvpnddmx7i.fsf-monnier+emacs@gnu.org>
2020-03-15 20:28 ` Spenser Truex
2020-03-15 20:57 ` Drew Adams
2020-03-17 17:32 ` Spenser
2020-03-17 17:43 ` Drew Adams
2020-03-17 18:13 ` Stefan Monnier
2020-03-17 18:25 ` Drew Adams
2020-03-17 18:42 ` Stefan Monnier
2020-03-19 13:56 ` YUE Daian
2020-03-19 14:19 ` Stefan Monnier
2020-03-19 14:41 ` YUE Daian
2020-03-19 17:15 ` Stefan Monnier
2020-03-21 6:59 ` YUE Daian
[not found] ` <87y2rtech3.fsf@spensertruex.com>
[not found] ` <jwvtv2hfm7a.fsf-monnier+emacs@gnu.org>
2020-03-21 22:40 ` Spenser Truex
2020-03-22 17:54 ` Stefan Monnier
[not found] <1F8693F6-6DD1-4D5A-A1B1-C38BCAD4977F@spensertruex.com>
2020-03-17 18:02 ` Spenser
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.