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

Previous Next

Package: emacs;

Reported by: Daniel Mendler <mail <at> daniel-mendler.de>

Date: Tue, 10 Dec 2024 13:11:02 UTC

Severity: wishlist

Merged with 69521

Found in versions 29.1, 30.0.92

To reply to this bug, email your comments to 74765 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 monnier <at> iro.umontreal.ca, bug-gnu-emacs <at> gnu.org:
bug#74765; Package emacs. (Tue, 10 Dec 2024 13:11:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Daniel Mendler <mail <at> daniel-mendler.de>:
New bug report received and forwarded. Copy sent to monnier <at> iro.umontreal.ca, bug-gnu-emacs <at> gnu.org. (Tue, 10 Dec 2024 13:11:02 GMT) Full text and rfc822 format available.

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

From: Daniel Mendler <mail <at> daniel-mendler.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.92; declare-function should respect defun/lambda scope
Date: Tue, 10 Dec 2024 14:10:42 +0100
`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)




Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 02 Jan 2025 01:53:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#74765; Package emacs. (Sun, 02 Mar 2025 04:33:02 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Daniel Mendler <mail <at> daniel-mendler.de>
Cc: 74765 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#74765: 30.0.92;
 declare-function should respect defun/lambda scope
Date: Sat, 1 Mar 2025 20:31:56 -0800
forcemerge 69521 74765
thanks

Daniel Mendler <mail <at> daniel-mendler.de> 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.




Forcibly Merged 69521 74765. Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Sun, 02 Mar 2025 04:33:03 GMT) Full text and rfc822 format available.

This bug report was last modified 104 days ago.

Previous Next


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