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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Eshel Yaron <me@HIDDEN>; dated Sat, 15 Feb 2025 16:20:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'minor' from 'normal' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 15 Feb 2025 16:19:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 15 11:19:41 2025
Received: from localhost ([127.0.0.1]:57491 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tjKtJ-0001Re-3J
	for submit <at> debbugs.gnu.org; Sat, 15 Feb 2025 11:19:41 -0500
Received: from lists.gnu.org ([2001:470:142::17]:57558)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <me@HIDDEN>) id 1tjKtC-0001RG-G3
 for submit <at> debbugs.gnu.org; Sat, 15 Feb 2025 11:19:38 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <me@HIDDEN>) id 1tjKt4-0004Sw-J7
 for bug-gnu-emacs@HIDDEN; Sat, 15 Feb 2025 11:19:28 -0500
Received: from mail.eshelyaron.com ([107.175.124.16] helo=eshelyaron.com)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <me@HIDDEN>) id 1tjKt2-0004rS-11
 for bug-gnu-emacs@HIDDEN; Sat, 15 Feb 2025 11:19:25 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com;
 s=mail; t=1739636361;
 bh=njPvPOYMtK7j3lNOF5aoQzN+lreT0lYIs3JQRYxg09k=;
 h=From:To:Subject:Date:From;
 b=EQLSPtiZYw72Hlg6r5EVHgPdxD+UH+2nYkjz78rBDN1B97csrD7Sra1V/uQOFEcKb
 XMlUYCUvMe36BdeLHSeQFET8L3CXkQe5zB5k7sZIH2xg6NsYbEeIIH0gx/bThjhzLf
 vLwCfbmfT/me9IefHUvw9dEFEZk6V/a2m63hPp7SNiEyFGyAj0DAUaxV9/aQrxa7a0
 Ec3Mmtd6yN12q7KRK1eF/HZQE/aP2gTnFK+WHOc18XGSml0AmDX1zdkR4258YPq5um
 uyIqZgKqSYrB2Cx6Yj9aweeL7x77T77QaXlGfGHvtped+/IL4aj0cF7a7qeGbhhAJW
 FI1Tf3S5hvjTA==
From: Eshel Yaron <me@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 31.0.50; Local variable names missing from 'setq' argument completions
X-Debbugs-Cc: 
Date: Sat, 15 Feb 2025 17:19:19 +0100
Message-ID: <m1msenmb94.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=107.175.124.16; envelope-from=me@HIDDEN;
 helo=eshelyaron.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.1 (/)


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




Acknowledgement sent to Eshel Yaron <me@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#76305; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 19 Feb 2025 02:15:03 UTC

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