GNU bug report logs - #69521
29.1; Adding a DECLARE spec equivalent to DECLARE-FUNCTION

Previous Next

Package: emacs;

Reported by: Adam Porter <adam <at> alphapapa.net>

Date: Sun, 3 Mar 2024 10:50:01 UTC

Severity: wishlist

Merged with 74765

Found in versions 29.1, 30.0.92

Full log


Message #22 received at control <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.




This bug report was last modified 105 days ago.

Previous Next


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