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

Full log


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.