I fixed this by applying the following patch. TBH, I didn't check that everything is still working as expected, but the compilation succeeds.

---
 emacs/notmuch.el | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index d8d3afe..ab58fcb 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -411,13 +411,13 @@ the region between points BEG and END.  As a special case, if (=
 BEG END), FUNCTION will be applied to the result containing point
 BEG."
 
-  (lexical-let ((pos (notmuch-search-result-<wbr>beginning beg))
- ;; End must be a marker in case function changes the
- ;; text.
- (end (copy-marker end))
- ;; Make sure we examine at least one result, even if
- ;; (= beg end).
- (first t))
+  (let ((pos (notmuch-search-result-<wbr>beginning beg))
+ ;; End must be a marker in case function changes the
+ ;; text.
+ (end (copy-marker end))
+ ;; Make sure we examine at least one result, even if
+ ;; (= beg end).
+ (first t))
     ;; We have to be careful if the region extends beyond the results.
     ;; In this case, pos could be null or there could be no result at
     ;; pos.
-- 
2.9.3

On Thu, Apr 6, 2017 at 1:12 PM, <aaermolov@gmail.com> wrote:
Hi,

in 23.7+ version of notmuch, when building notmuch emacs part against
Emacs master, the following error pops up:

In toplevel form:
emacs/notmuch.el:405:1:Error: Wrong type argument: listp, cl--function-convert

The same error reveals in all mentioned versions, ranging only in line
numbers.

Is there any way to work it around? Or fix it in some easy way?

regards,
Alex

______________________________<wbr>_________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/<wbr>mailman/listinfo/notmuch