mooz / js2-mode

Improved JavaScript editing mode for GNU Emacs
GNU General Public License v3.0
1.33k stars 186 forks source link

Fix &rest syntax in cl-destructuring-bind #558

Closed phst closed 4 years ago

phst commented 4 years ago

&rest requires an argument. While ‘cl-destructuring-bind’ is somewhat lenient about this, its edebug specification is not, so functions that contain &rest without argument can’t be edebugged.

dgutov commented 4 years ago

If you insist. :-)

I remember changing this forward and back, when debugging. Because the result is kinda clunky, and the deficiency is in the edebug spec, not necessarily in the code.