Subject: Re: bug#26406: 26.0.50; 'function' fails as variable name inside lexical-let

From: Tino Calancha <[email-masked]>
Date: Sun, 09 Apr 2017 17:52:30 +0900

David Bremner <[email-masked]> writes:

> 0) Put the following elisp in a file called e.g. test.el
> (eval-when-compile (require 'cl))
> (defun my-fun (function)
>   (lexical-let ((x 1))
>     (funcall function)))
>
> 1) run "emacs -Q --batch -f batch-byte-compile test.el"
>
> 2) Observe the following unhelpful error message
>
> In toplevel form:
> test.el:2:1:Error: Wrong type argument: listp, cl--function-convert
Confirmed.
This is similar as Bug#26325.  Both are caused by commit
0d112c00ba0ec14bd3014efcd3430b9ddcfe1fc1