-
Notifications
You must be signed in to change notification settings - Fork 7
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
"SET-DISPATCH-MACRO-CHARACTER would modify the standard readtable." on SBCL 2.0.8 #12
Comments
Here is the full stack trace:
|
Also, why do we need the code for keeping and restoring sharp-space and sharp-plus if we can always copy the readable and the previous version will be restored after the |
Probably, it will be better to use named-readtables like this: CL-USER> (named-readtables:defreadtable literate-lisp::syntax
(:merge :standard)
(:dispatch-macro-char #\# #\space #'literate-lisp::sharp-space)
(:dispatch-macro-char #\# #\+ #'literate-lisp::sharp-plus))
#<NAMED-READTABLE LITERATE-LISP::SYNTAX {1001AD8413}>
CL-USER> (named-readtables:find-readtable 'literate-lisp::syntax)
#<NAMED-READTABLE LITERATE-LISP::SYNTAX {1001AD8413}>
CL-USER> (let ((*readtable* (named-readtables:find-readtable 'literate-lisp::syntax)))
(read-from-string "
# -*- encoding:utf-8 Mode: POLY-ORG; -*- ---
This is the literate code:
#+BEGIN_SRC lisp
(defun foo ()
:bar)
#+END_SRC
Now examples ends.
"))
(DEFUN FOO () :BAR)
115 |
I have updated the codes to use a new readtable anyway. |
Thanks. |
Great! Thank you! |
I constantly get this error when loading :poftheday system (https://github.com/40ants/lisp-project-of-the-day).
The problem is in this method:
I see that
with-literate-syntax
macro copies*readtable*
only for Allegro:Why it modifies existing readtable for all other lisps?
The text was updated successfully, but these errors were encountered: