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 #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




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.