bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#74919: 31.0.50; No warning with set-advertised-calling-convention if


From: Stefan Kangas
Subject: bug#74919: 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]