GNU bug report logs - #74919
31.0.50; No warning with set-advertised-calling-convention if function called in same file

Previous Next

Package: emacs;

Reported by: Stefan Kangas <stefankangas <at> gmail.com>

Date: Mon, 16 Dec 2024 23:37:01 UTC

Severity: minor

Found in version 31.0.50

To reply to this bug, email your comments to 74919 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#74919; Package emacs. (Mon, 16 Dec 2024 23:37:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Kangas <stefankangas <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 16 Dec 2024 23:37:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 31.0.50; No warning with set-advertised-calling-convention if
 function called in same file
Date: Mon, 16 Dec 2024 23:36:29 +0000
Severity: minor

Create and byte-compile a file with this content:

    ;; -*- lexical-binding: t; -*-
    (defun foo (&optional a) a)
    (set-advertised-calling-convention 'foo '(a) '"31.1")
    (foo)

Note that there is no warning.

Expected is this warning:

foo.el:4:2: Warning: ‘foo’ called with 0 arguments, but requires 1

The warning is displayed if I move the call to a different file.




This bug report was last modified 280 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.