Thanks for taking the time to report this bug. It looks like you've managed to pin-point the issue here! Have you considered sending a patch upstream?
I just had a quick peek at lp:emacs trunk and it seems they still use mapcar currently. I don't fully understand what that function is trying to do, but it seems to just result in transforming the list into a list of single-length lists, like so:
ELISP> (mapcar 'list '(1 2 3))
((1)
(2)
(3))
It's not clear to me why this would be desirable though.
Thanks for taking the time to report this bug. It looks like you've managed to pin-point the issue here! Have you considered sending a patch upstream?
I just had a quick peek at lp:emacs trunk and it seems they still use mapcar currently. I don't fully understand what that function is trying to do, but it seems to just result in transforming the list into a list of single-length lists, like so:
ELISP> (mapcar 'list '(1 2 3))
((1)
(2)
(3))
It's not clear to me why this would be desirable though.