abo-abo / lispy

Short and sweet LISP editing
http://oremacs.com/lispy/
1.21k stars 133 forks source link

lispy unexpectedly expands shorthands in elisp #659

Open RuijieYu opened 1 year ago

RuijieYu commented 1 year ago

Should probably let-bind read-symbol-shorthands to nil when calling read.

RuijieYu commented 1 year ago

I guess I never explained the context.

When I try to format this code:

( kabb-foo )

where the variable read-symbol-shorthands is set buffer-locally as (("kabb" . "kill-all-buffers-below")), lispy would expand the kabb prefix into kill-all-buffers-below, invalidating the whole purpose of setting this variable buffer-locally in the first place.