-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shipping Sly with support for the Common Lisp "community spec" #579
Comments
Hi, For the naming, it is mostly as you said that the symbol name is just the name of the HTML file. However, there are symbols not allowed in the URL which have to be escaped with their ASCII code, e.g. 002abreak_002don_002dsignals_002a.html. For convenience, there is a mapping of all the terms and pages here: https://github.com/fonol/cl-community-spec/blob/main/searchable_terms.json. |
Even just opening the appropriate community spec page in the operating system default browser would be very nice. |
This would be a very nice and convenient feature to have in sly. |
Do you think that this should be a sly contrib package instead and we should close this issue? |
No, and sorry for not replying earlier (there wasn't a question until now, though). I think you should attempt to do as many changes to
BTW, this is unrelated, but Emacs CL emulation package ( |
@joaotavora funny enough, I just finished reading that thread. Thanks for defending us I am going to send an email to the mailing list to see what is the exact plant to document Recently for Common Lisp docs in Emacs, I have been using I think I am going to focus on my efforts on documenting |
@enzuru The hardest part of this project is to create a hash-table that maps the symbols to url. It is done in (mapc (lambda (entry)
(common-lisp-hyperspec--insert (car entry) (cadr entry)))
if common-lisp-hyperspec-symbol-table
(common-lisp-hyperspec--parse-map-file
common-lisp-hyperspec-symbol-table)
'("&allow-other-keys" "03_da.htm")
("&aux" "03_da.htm")
("&body" "03_dd.htm")
("&environment" "03_dd.htm")
("&key" "03_da.htm")
("&optional" "03_da.htm")
("&rest" "03_da.htm")
("&whole" "03_dd.htm")
("*" "a_st.htm")
("**" "v__stst_.htm")
("***" "v__stst_.htm")
("*break-on-signals*" "v_break_.htm")
("*compile-file-pathname*" "v_cmp_fi.htm")
("*compile-file-truename*" "v_cmp_fi.htm")
("*compile-print*" "v_cmp_pr.htm")
("*compile-verbose*" "v_cmp_pr.htm")
("*debug-io*" "v_debug_.htm")
("*debugger-hook*" "v_debugg.htm")
("*default-pathname-defaults*" "v_defaul.htm")
("*error-output*" "v_debug_.htm")
("*features*" "v_featur.htm")
("*gensym-counter*" "v_gensym.htm")
("*load-pathname*" "v_ld_pns.htm")
("*load-print*" "v_ld_prs.htm")
("*load-truename*" "v_ld_pns.htm")
[elided..] A possible and good enough workaround is to send search query to
Either way, we need some insights from @fonol. If I get the relevant information, I can make a PR on this. |
Hey @fonol, you may not remember me, but I responded to your post on Reddit a long time ago, noting for you that the GCL was a Common Lisp spec with a friendlier license than the HyperSpec.
Since then you've done amazing things and for the first time ever perhaps, we have a really good-looking and friendly Common Lisp "community spec" with a friendly license: https://cl-community-spec.github.io/
I would like to now open a ticket with @joaotavora so that we can discuss perhaps shipping Sly with community spec support, and not merely HyperSpec support. Obviously this "community spec" has a license that is more compatible with the GNU operating system.
The code most likely should be easy enough, seems to be
https://cl-community-spec.github.io/pages/${symbol}.html
in the vast majority of cases.The community spec look OK in EWW, although you will always land on a screen filled with the table of contents, and not necessarily the symbol that you are looking for. A lot of Emacs users use EWW, so this will probably be important to address.
But perhaps there are other issues to consider? I suspect there might be some hesitation in swapping out the reliable 90s-esque HyperSpec for a relatively new project.
Although seemingly, as long as GitHub exists, this spec should continue to be online. I suspect LispWorks would sooner shutdown than GitHub.
The text was updated successfully, but these errors were encountered: