Fuco1 / smartparens

Minor mode for Emacs that deals with parens pairs and tries to be smart about it.
GNU General Public License v3.0
1.8k stars 193 forks source link

Fix invalid alias definition for `syntax-class-to-char' #1206

Closed juergenhoetzel closed 2 months ago

juergenhoetzel commented 2 months ago

`eval-when-compile' defines the alias symbol only at compile time and not when the program is loaded and thus results in a void error at runtime.

Fixes #1204

Fuco1 commented 2 months ago

Thanks! I think you are right, I used a similar construction but the thing defined (for compat) was a macro so it was expanded during compile anyway and not necessary in runtime. That's why it worked then but not in this case, good catch.