From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#73330: 31.0.50; Incorrect completions for 'cond' clauses Date: Thu, 19 Sep 2024 19:38:12 +0300 Message-ID: <86frpv8uq3.fsf@gnu.org> References: <86wmj87y9a.fsf@gnu.org> <86r09f9437.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13396"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73330-done@debbugs.gnu.org To: Eshel Yaron Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 19 18:39:24 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1srKBf-0003Jh-VD for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Sep 2024 18:39:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1srKB6-0003VT-He; Thu, 19 Sep 2024 12:38:48 -0400 Original-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 ) id 1srKB4-0003U4-GD for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2024 12:38:46 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1srKB4-00018g-70 for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2024 12:38:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=N+ivW/+yk6kM+MSdiGxTUwITJ8rJtRYJs6lhIsN0glU=; b=Tj6TnBLsKVRFr3kG/zjzhUShNreJ7BFZfAModtI5V5Q/J/WjX0iXTc/T/Kwt+3jAJsfwLx2MqEvhkra4Qzi+nle6qN0bh5xVxQSIgYhuo7hF5YhRUuGoMHvLBckhBaU7uo5MJWPoNO1qIoFI51dP0ZQ0VW0hm/O3UE1IXjd5H3cPRBCyIur4jFGtEflkT3KKGjoCh4hBrRJUx3SMR3IZG6Nvjtqy4gYfmJXysah8aBCD9F1vIsAQq1A9Eiy+vDr1EXU1eIRP7zJJG1c7K01oRR6UuccXROZb3TCm4dbYI8S/2onuz5oGV+z7+1YmOCOYWaUHpC2QwbSWZbmHzWzSLg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1srKBL-0001VX-Q6 for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2024 12:39:03 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Sep 2024 16:39:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 73330 X-GNU-PR-Package: emacs Mail-Followup-To: 73330@debbugs.gnu.org, eliz@gnu.org, me@eshelyaron.com Original-Received: via spool by 73330-done@debbugs.gnu.org id=D73330.17267639275727 (code D ref 73330); Thu, 19 Sep 2024 16:39:03 +0000 Original-Received: (at 73330-done) by debbugs.gnu.org; 19 Sep 2024 16:38:47 +0000 Original-Received: from localhost ([127.0.0.1]:33413 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srKB4-0001UJ-IR for submit@debbugs.gnu.org; Thu, 19 Sep 2024 12:38:46 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srKB2-0001U5-Os for 73330-done@debbugs.gnu.org; Thu, 19 Sep 2024 12:38:45 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1srKAf-00016T-K6; Thu, 19 Sep 2024 12:38:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=N+ivW/+yk6kM+MSdiGxTUwITJ8rJtRYJs6lhIsN0glU=; b=rdsFu4pkZLGI cdMp9UTPTtDUInwYuTc3YZFGVUlccVlU6WfrY7QvB1KkZKQtH8jGBompDHldWnt+dp4ug7wzIMK1G B5BuUW9oYpGAKf61xzlER5vlC2wvQ1c7HRwZdeipVhs4TeLXtb62XP3mlfhDvUhq9JCY0sd6BIIXJ aKY1UjO+qm+qj+Rqb15IVKYgiU5bdCQ6ZRqocL+Ub2lP9a0qiW/1wW69fwEAgE/k/KSoi81ggNJtl /eFmFyf0byiE+FjF6KEuRqNv2gUaBqx1SOXg36Wp/zm6whfP/MBKVCKrEnIceLjEXF3qrnhC0TCIs cGpcxUKSCXXbUe9fOLRNrg==; In-Reply-To: (message from Eshel Yaron on Thu, 19 Sep 2024 16:33:11 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:292069 Archived-At: > From: Eshel Yaron > Cc: 73330@debbugs.gnu.org > Date: Thu, 19 Sep 2024 16:33:11 +0200 > > Eli Zaretskii writes: > > > Does "helps" mean the original scenario is fixed? or are there any > > leftovers in that scenario? > > Yes, it fixed the original scenario. > > >> but also seems to cause a regression. With this change I get: > >> > >> 1. emacs -Q > >> 2. Insert "(cond ((current-p" > >> ^note the additional parenthesis > >> 3. Hit M-TAB to complete > >> > >> This shows an opposite bug: Emacs should complete function names (and > >> without the change, it does), but with the change we now get variable > >> name completion. > > > > How about the patch below? > > That works well in both the original scenario and the modified one. Thanks, installed on master, and closing the bug.