From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs 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 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11404"; mail-complaints-to="usenet@ciao.gmane.io" To: 74919@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 17 00:37:30 2024 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 1tNKeX-0002mo-SV for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 Dec 2024 00:37:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNKe9-0005v7-3G; Mon, 16 Dec 2024 18:37:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tNKe7-0005ut-6t for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 18:37:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNKe6-0000TE-JJ for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 18:37:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:MIME-Version:From:To:Subject; bh=YtnqvNUgTM/akW1Yj84/k8u2k9UlzjEWmAl96K3kDMA=; b=YpjOf4ax5AdYcEW3h64icBZCXkVs2YEFDGTRaYNYWgawIHADCz9yCmMTXqBlJ0KWLB2u5LOILyyiWkIvgBZ6SlqHUHdKcPiSKdM0+qE4xNDwDdY5iIdqoxBAp1DhoTr+rgoDZ9g7IqYmczedudBh5s6jz4x2IeFnS74vQYv9MZ1MjJ4LovO7xK4JrCbnocWyfbFayqSyzvmc7q3Em9G89RmN5l0hUMPpQsnI4pioTpZyEyYEdomUb3NmP5y1HCrA3VqTf7a7pSGG3/HIj/VckbzuDYtFiMLI6Q+isxgdbrXhDUXpBh1VKixF/giRbQGAJXq0jr0z0mVg8BASBd0xOg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tNKe6-0000uZ-4U for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 18:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Dec 2024 23:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74919 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17343921963460 (code B ref -1); Mon, 16 Dec 2024 23:37:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Dec 2024 23:36:36 +0000 Original-Received: from localhost ([127.0.0.1]:56691 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNKdg-0000tk-EB for submit@debbugs.gnu.org; Mon, 16 Dec 2024 18:36:36 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:42516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNKdf-0000tc-2Z for submit@debbugs.gnu.org; Mon, 16 Dec 2024 18:36:35 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tNKde-0005to-Pd for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 18:36:34 -0500 Original-Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNKdd-0000Ql-1S for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 18:36:34 -0500 Original-Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-5d65b4ae632so4548410a12.2 for ; Mon, 16 Dec 2024 15:36:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734392191; x=1734996991; darn=gnu.org; h=content-transfer-encoding:to:subject:message-id:date:mime-version :from:from:to:cc:subject:date:message-id:reply-to; bh=YtnqvNUgTM/akW1Yj84/k8u2k9UlzjEWmAl96K3kDMA=; b=lvmXkxV4i1GpCEK0uLI+WqYC84/Ayess3l0ypqCHaAACC/4x0qm35dPocvbYpRJjQo trJK+IWQkW5P+iBQAXs6xuhFqU0Y9W0tucO+zGwODC0uv4Es73pekaMpDdGwQDqCk7HR kH5dkqUCT+RqUxVQ2cIBh4xKW5fZJvPguWqzZe07Kjo2SymLiqKoNHpXalBymwjN940/ Oc2WnDyBVkTJ48r7yObgemkeQOaLgfVM6vEOL5pIoATyg2AB9E8k6rDzPM5eL+0X1+/H WlpijROPp82ybpu5tOcHYpMIU3SCuNPCVIduAkBHX6fWPlH/GWEKLzPviFS5IJxP3MdY NKEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734392191; x=1734996991; h=content-transfer-encoding:to:subject:message-id:date:mime-version :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=YtnqvNUgTM/akW1Yj84/k8u2k9UlzjEWmAl96K3kDMA=; b=MwSukBs9+vXPwabXiYT8jYVDGEEelwcNTAK53vk8C/aLVTZWxMMvdKRrmwkQ2pL2e6 Cre2Qha0ctiMbGpUYW5o3ecj4pT4+vOQ2qPUk7zAHS8S/rQJeR3NDDoR/fNeYvhv43fA 1C0IujHZtxQbUvF5TDvzSNZzc9Uw+JpBPLeuNncz79cP2uuaugvTR2RBbRO1+h+oh4Lz wiwQeva6q8+thfWJk8mmcIr7Z6HL7qMxN+NnC37/Nc6MxSU++b8Al0SZdxRAES33X7Hn BJlKiBSZBxwTNyv9u1LB5poZ0yXBplp8peYiPniu6R865nRjpllCNGbHdj452Yib18Jv H+rA== X-Gm-Message-State: AOJu0Yzx1BZXrs5Dw5RtaaPYswAD2G1W2e/Ox5kg4bC0H+qX/jZPoMA9 DavxbEDTclo4Mw+1ljAfVFL9jxk9Ber0GETPuQWZc9C/6z/pmaNwCHN8N8aQCNOqgMZycTnqT4s 3tq/AAo5DxfzCc01BZZzywExInXUW/any X-Gm-Gg: ASbGncuqP6wVvHXxjt69Igl0STmVxkHiWl/pC4W5IDaY7lvPbvZ1741FG9TQnU8YL93 vELxgNBV1fAQl0oFvYpotO6v8JaqucXW2cH9O+f8= X-Google-Smtp-Source: AGHT+IHoAoXMe04s7aa85n2+44Vn+ePTB/VbFo9E0Y+X/wCu/cX+nrHT0B4du6/qU2EP0OWY1HZfW4jR27ZZn6ktoA0= X-Received: by 2002:a05:6402:35c2:b0:5d0:ea2a:726c with SMTP id 4fb4d7f45d1cf-5d63c307086mr12348258a12.8.1734392190809; Mon, 16 Dec 2024 15:36:30 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 16 Dec 2024 23:36:29 +0000 Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=stefankangas@gmail.com; helo=mail-ed1-x534.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:297238 Archived-At: 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: =E2=80=98foo=E2=80=99 called with 0 arguments, but req= uires 1 The warning is displayed if I move the call to a different file.