GNU bug report logs - #74765
30.0.92; declare-function should respect defun/lambda scope

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Daniel Mendler <mail@HIDDEN>; merged with #69521; dated Tue, 10 Dec 2024 13:11:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Forcibly Merged 69521 74765. Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 74765 <at> debbugs.gnu.org:


Received: (at 74765) by debbugs.gnu.org; 2 Mar 2025 04:32:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 01 23:32:07 2025
Received: from localhost ([127.0.0.1]:49995 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1toazm-0004WQ-MW
	for submit <at> debbugs.gnu.org; Sat, 01 Mar 2025 23:32:06 -0500
Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]:54692)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>)
 id 1toazj-0004V3-5g
 for 74765 <at> debbugs.gnu.org; Sat, 01 Mar 2025 23:32:04 -0500
Received: by mail-ed1-x534.google.com with SMTP id
 4fb4d7f45d1cf-5dca468c5e4so5926542a12.1
 for <74765 <at> debbugs.gnu.org>; Sat, 01 Mar 2025 20:32:03 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1740889917; x=1741494717; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=kjtV4tbztN27RY6OGClP8SVctiFlxU5B8Rti8Yuma9o=;
 b=amMpK1/+/8VOoPmIDR3Hx1fNniRfl4hL1P2A4i5AspGVWetqqkBgEG01hWlsMX9lvj
 Y/SavWw3Ja9WlWoJq556Z7xkl3Qnr0QRWiyCoazijh4/AP0narQ/26n12RJJZC/0DdXh
 ukmR6BLJKS1A4VzpdX6xB0ijSlFeXnbkC4hrLtomWj3Q/AEcZZH4KNrpzVJ/+pG407qV
 bafrBmV0cQUX+j6kNXqMnTRCUGKlGvqV+oX1A7KmVAiaWXcbuUld+6M8u7JTTj2W+E3n
 ElpZYQyQtKIsqs/Jp/ZzsF6YWl+l2Q8ITMKYId1SlaHRbF8F14SaIGBxJ20L3r+t/9z6
 UdAg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1740889917; x=1741494717;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=kjtV4tbztN27RY6OGClP8SVctiFlxU5B8Rti8Yuma9o=;
 b=D1bqeavp+7ERf4+mtN11gS8DwfXoZ87uzi5Uf0UpyLJvcBAENOgOnSFLTWtrZa3twm
 SW6d4PNBeCbqQz5sFv2J+RC6YVo4oIpONPsx1JaUSuN6hKpaDFEfxtC77iPH+K0zI+Di
 Iuyieq1SebmjGK2ry2tVE62yIUB5wZVKxuaNteKjeMxSpnPVnT71NUa6Wsw85bIIOmGP
 XA7tX8t7OcizNO+/sZapsUCbydopzq9akNNAdhKqd5lFy3dA087CnJm4b+oPmcWKp/f4
 fae8sLiLFmyyVroKHBcdYw7MXgh7J320QhyLUH7HpP6AibRwteofKE/kEbRp1ruY8jNt
 gaIw==
X-Gm-Message-State: AOJu0YzvRPKG7FknVdnj+aK9j0wxHbaK8YIE0ikzW6ISNdLzhhHQ8XPq
 3tjjRTwUxzLbUi6OIV05ld+nqxjceYXaIr9mB4l8N/YKXsys3vgvcLCILZQIehjVcvvp9I7cbI9
 CX6RRfaDWE1wbWnU2O1MNStHhvLo=
X-Gm-Gg: ASbGncvV2MOUfx59URo4qwfYdHOyH1yBA1+WmxiM40rlEZ5xM35TOe6Lkzse3suui/D
 CRawXXqVMr8ErqdGm5qzOUCnOOlI32CpNuY1Ulk7Zqa/Tq+u7R90AHLtSx4oiYfApTwbVyzh5jg
 hmcIkosUx07eUkZIk5TGMvN+DBLg==
X-Google-Smtp-Source: AGHT+IEAMYYockCTMtX0C4dWMzUpO5E0C0hJ/jzhSwJoRgcDGSJOvhwIgBDBIZZchFULrAfWP5DazqZSetO+Y10TaEM=
X-Received: by 2002:a05:6402:2790:b0:5e4:d229:ad3d with SMTP id
 4fb4d7f45d1cf-5e4d6afa4c4mr10480962a12.16.1740889916761; Sat, 01 Mar 2025
 20:31:56 -0800 (PST)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Sat, 1 Mar 2025 20:31:56 -0800
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <87msh3vg31.fsf@HIDDEN>
References: <87msh3vg31.fsf@HIDDEN>
MIME-Version: 1.0
Date: Sat, 1 Mar 2025 20:31:56 -0800
X-Gm-Features: AQ5f1JrKtdmL8QxYmi7usN4R4UWJUd2AYgFhpH_njrSekQg-vLclY0Fglfi_vBg
Message-ID: <CADwFkmkeJTY1ioGBX6aQA8=d=kDC1r7Gk1GcZJnZjD7CsX+NYQ@HIDDEN>
Subject: Re: bug#74765: 30.0.92;
 declare-function should respect defun/lambda scope
To: Daniel Mendler <mail@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 74765
Cc: 74765 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

forcemerge 69521 74765
thanks

Daniel Mendler <mail@HIDDEN> writes:

> `declare-function' can be used inside of `defun' or `lambda', but the
> declaration still applies to the entire file. The declaration should
> only apply to the scope where it is defined.
>
> (I've seen this problem mentioned multiple times, but I am not sure if
> there is already an issue to track the problem. Feel free to close/merge
> the issues if I missed this.)

This is Bug#69521 I think, so I'm merging them now.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#74765; Package emacs. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 Dec 2024 13:10:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 10 08:10:54 2024
Received: from localhost ([127.0.0.1]:57314 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tL00r-0004DK-PG
	for submit <at> debbugs.gnu.org; Tue, 10 Dec 2024 08:10:54 -0500
Received: from lists.gnu.org ([209.51.188.17]:47160)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1tL00p-0004DA-6c
 for submit <at> debbugs.gnu.org; Tue, 10 Dec 2024 08:10:51 -0500
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 <mail@HIDDEN>)
 id 1tL00n-0002e7-AY
 for bug-gnu-emacs@HIDDEN; Tue, 10 Dec 2024 08:10:49 -0500
Received: from server.qxqx.de ([2a01:4f8:c012:9177::1] helo=mail.qxqx.de)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <mail@HIDDEN>)
 id 1tL00j-0008IF-Jt
 for bug-gnu-emacs@HIDDEN; Tue, 10 Dec 2024 08:10:47 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=daniel-mendler.de; s=key; h=Content-Type:MIME-Version:Message-ID:Date:
 Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=Y+5iLaodEP5ExoES48QFxYKgE2anKu34B4yuD4XHpeA=; b=b7hB60LK7TSKxEq8fN3YtQ3QiV
 vpbz4lRtbcZRalsixWgsM2NhzXmlIQwL+A5M52FGax8jVrPun6gBFy2Xiw80Pgc+zl1YSUFL6HSoq
 aWLSwWK88iaFolysbKxp+Umpw9cH4GqPuAUNk+6MfpRDsfJOtLltPXXNKdYiYKufKCWs=;
From: Daniel Mendler <mail@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 30.0.92; declare-function should respect defun/lambda scope
X-Debbugs-Cc: Stefan Monnier <monnier@HIDDEN>
Date: Tue, 10 Dec 2024 14:10:42 +0100
Message-ID: <87msh3vg31.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2a01:4f8:c012:9177::1;
 envelope-from=mail@HIDDEN; helo=mail.qxqx.de
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 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,
 RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

`declare-function' can be used inside of `defun' or `lambda', but the
declaration still applies to the entire file. The declaration should
only apply to the scope where it is defined.

(I've seen this problem mentioned multiple times, but I am not sure if
there is already an issue to track the problem. Feel free to close/merge
the issues if I missed this.)

In GNU Emacs 30.0.92 (build 2, x86_64-pc-linux-gnu, X toolkit, cairo
 version 1.18.2, Xaw scroll bars)




Acknowledgement sent to Daniel Mendler <mail@HIDDEN>:
New bug report received and forwarded. Copy sent to monnier@HIDDEN, bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to monnier@HIDDEN, bug-gnu-emacs@HIDDEN:
bug#74765; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 2 Mar 2025 04:45:04 UTC

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