GNU bug report logs - #76305
31.0.50; Local variable names missing from 'setq' argument completions

Previous Next

Package: emacs;

Reported by: Eshel Yaron <me <at> eshelyaron.com>

Date: Sat, 15 Feb 2025 16:20:02 UTC

Severity: minor

Found in version 31.0.50

To reply to this bug, email your comments to 76305 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 bug-gnu-emacs <at> gnu.org:
bug#76305; Package emacs. (Sat, 15 Feb 2025 16:20:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Eshel Yaron <me <at> eshelyaron.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 15 Feb 2025 16:20:02 GMT) Full text and rfc822 format available.

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

From: Eshel Yaron <me <at> eshelyaron.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 31.0.50; Local variable names missing from 'setq' argument completions
Date: Sat, 15 Feb 2025 17:19:19 +0100
Hi,

Local variable name completion in ELisp seems to fail at uneven setq
argument positions:

1. emacs -Q
2. Permit local variables analysis in scratch buffer by evaluating
   (setq-local trusted-content :all)
3. Insert:
   (defun foo (barbaz) bar)
4. Place point after "bar" and hit C-M-i
5. See "bar" completed to "barbaz", as expected
6. Now insert instead:
   (defun foo (barbaz) (setq bar))
7. Again with point after "bar", hit C-M-i
8. Emacs reports "no match" instead of completing to "barbaz"

This used to work as expected in Emacs 28, but not in 29, 30 or master.


Regards,

Eshel




Severity set to 'minor' from 'normal' Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 19 Feb 2025 02:10:08 GMT) Full text and rfc822 format available.

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

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

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Eshel Yaron <me <at> eshelyaron.com>
Cc: 76305 <at> debbugs.gnu.org
Subject: Re: bug#76305: 31.0.50; Local variable names missing from 'setq'
 argument completions
Date: Mon, 3 Mar 2025 18:41:48 -0800
Eshel Yaron <me <at> eshelyaron.com> writes:

> Hi,
>
> Local variable name completion in ELisp seems to fail at uneven setq
> argument positions:
>
> 1. emacs -Q
> 2. Permit local variables analysis in scratch buffer by evaluating
>    (setq-local trusted-content :all)
> 3. Insert:
>    (defun foo (barbaz) bar)
> 4. Place point after "bar" and hit C-M-i
> 5. See "bar" completed to "barbaz", as expected
> 6. Now insert instead:
>    (defun foo (barbaz) (setq bar))
> 7. Again with point after "bar", hit C-M-i
> 8. Emacs reports "no match" instead of completing to "barbaz"
>
> This used to work as expected in Emacs 28, but not in 29, 30 or master.

Maybe it's worth bisecting this?

>
>
> Regards,
>
> Eshel




This bug report was last modified 158 days ago.

Previous Next


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