From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#50482: Unhelpful error message whilst byte-compiling a function. Date: Thu, 9 Sep 2021 18:12:08 +0000 Message-ID: References: <87k0jpu7xm.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18477"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50482-done@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 09 20:13:21 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mOOY4-0004cL-0B for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Sep 2021 20:13:20 +0200 Original-Received: from localhost ([::1]:58760 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOOY2-0001vg-5Q for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Sep 2021 14:13:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49016) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOOXm-0001v8-Tv for bug-gnu-emacs@gnu.org; Thu, 09 Sep 2021 14:13:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52891) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mOOXm-0007ZN-MM for bug-gnu-emacs@gnu.org; Thu, 09 Sep 2021 14:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mOOXm-00085H-HY for bug-gnu-emacs@gnu.org; Thu, 09 Sep 2021 14:13:02 -0400 Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Sep 2021 18:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 50482 X-GNU-PR-Package: emacs Mail-Followup-To: 50482@debbugs.gnu.org, acm@muc.de, acm@muc.de Original-Received: via spool by 50482-done@debbugs.gnu.org id=D50482.163121114231001 (code D ref 50482); Thu, 09 Sep 2021 18:13:02 +0000 Original-Received: (at 50482-done) by debbugs.gnu.org; 9 Sep 2021 18:12:22 +0000 Original-Received: from localhost ([127.0.0.1]:36200 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOOX8-00083x-7S for submit@debbugs.gnu.org; Thu, 09 Sep 2021 14:12:22 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:39506 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1mOOX1-00083d-J6 for 50482-done@debbugs.gnu.org; Thu, 09 Sep 2021 14:12:21 -0400 Original-Received: (qmail 59414 invoked by uid 3782); 9 Sep 2021 18:12:08 -0000 Original-Received: from acm.muc.de (p4fe15aa8.dip0.t-ipconnect.de [79.225.90.168]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Thu, 09 Sep 2021 20:12:08 +0200 Original-Received: (qmail 7467 invoked by uid 1000); 9 Sep 2021 18:12:08 -0000 Content-Disposition: inline In-Reply-To: <87k0jpu7xm.fsf@gnus.org> X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:213939 Archived-At: Hello again, 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? > > .. 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. The problem was I hadn't compiled macroexp.el for a long time, and in the meantime macroexp--warn-wrap had indeed acquired an extra parameter. The version I have is expecting 2 arguments, but is being supplied with 3. Apologies for sending you on a wild goose chase. I will close the bug as not a bug. > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no -- Alan Mackenzie (Nuremberg, Germany).