-
-
Notifications
You must be signed in to change notification settings - Fork 645
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
Print representation of structs in Emacs 26 breaks tests #2133
Comments
I'm curious about this.
It doesn't look like the reader supports Would you be okay with constructing the match on the fly, as in
I don't like mixing tests (the nrepl-decode and the constructors for those structures) but it does work. |
The Emacs 26 reader should support |
I may be mistaken. I saw documentation somewhere that said that #s notation was supported only for hash-tables. I didn’t understand why that would be the case, but the way it was written it seemed like they were going out of their way to make the point.
… On Dec 15, 2017, at 12:58 AM, Tianxiang Xiong ***@***.***> wrote:
The Emacs 26 reader_should_ support #s for structs. Is that not the case?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Funny you should mention it--I actually asked about this on Ultimately I think Stefan made the right choice--closer alignment w/ CL is a good thing. |
Ok this works in emacs 26.0.90
But it’s not valid code for older versions of emacs, so presumably a macro or something is needed to conditionally compile this new test canonical only when the emacs version is 26 or greater. |
Building structs on-the-fly seems to be the best way to avoid this problem. |
Fixes clojure-emacs#2133 In Emacs 26, the print representations of structs changed from `[cl-struct ...]` to `#s(...)`. This broke tests that compare structs against print representations. Building structs dynamically resolves this.
Fixes #2133 In Emacs 26, the print representations of structs changed from `[cl-struct ...]` to `#s(...)`. This broke tests that compare structs against print representations. Building structs dynamically resolves this.
Some tests are failing when run against Emacs 26 due to the new
#s
struct print syntax, which seems to be due to the use of records to represent structs.The text was updated successfully, but these errors were encountered: