Hello, Lars. On Thu, Sep 09, 2021 at 16:42:29 +0200, Lars Ingebrigtsen wrote: > Alan Mackenzie writes: > > I'm working on a function which begins thus: > > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; > > (defun jit-lock--run-functions-new (beg end &optional last-fun) > > (let ((tight-beg nil) (tight-end nil) ; The region we have fully fontified. > > (loose-beg beg) (loose-end end)) ; The maximum region we have fontified > > ; with at least some of > > ; `jit-lock-functions'. > > (run-hook-wrapped > > 'jit-lock-functions > > ...... > > ...... > > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; > > On doing M-x compile-defun on this function, I get as sum total of the > > output in *Compile-Log* this: > > Buffer jit-lock.el:416:1: Error: Wrong number of arguments: # > macroexp--warn-wrap>, 3 > If I just put that in a buffer (and add some closing parentheses), I > don't get that warning. Is there something else needed? It would appear so. On putting the entire function into *scratch*, compile-defun gives the same error in scratch, so I'm attaching the file. Note that lexical-binding was t in my *scratch*. > > .. I don't know what this means. Line 416 is the line where the defun > > starts. I don't have `macroexp--warn-wrap' anywhere in my source code, > > it's not clear to what form 3 arguments are being wrongly passed, or > > where. > The warn-wrap stuff comes from `with-suppressed-warnings', I think. Just to be entirely clear, I'm not asking for help in debugging this error message (although that wouldn't go amiss) - I'm asking that Emacs be amended such that this unhelpful message cannot appear any more. > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no -- Alan Mackenzie (Nuremberg, Germany).