I'd like to do
(destructuring-bind (start end) (bounds-of-thing-at-point 'symbol))
But bounds-of-thing-at-point
returns a cons cell and not a list, so
destructuring-bind
doesn't work.
What could work for this case?
I'd use
(pcase-let ((`(,start . ,end) (bounds-of-thing-at-point 'symbol)))
...)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With