all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#74919: 31.0.50; No warning with set-advertised-calling-convention if function called in same file
@ 2024-12-16 23:36 Stefan Kangas
  0 siblings, 0 replies; only message in thread
From: Stefan Kangas @ 2024-12-16 23:36 UTC (permalink / raw)
  To: 74919

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.





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-12-16 23:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-16 23:36 bug#74919: 31.0.50; No warning with set-advertised-calling-convention if function called in same file Stefan Kangas

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.