From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eshel Yaron via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#73330: 31.0.50; Incorrect completions for 'cond' clauses Date: Thu, 19 Sep 2024 14:25:13 +0200 Message-ID: References: <86wmj87y9a.fsf@gnu.org> Reply-To: Eshel Yaron Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36979"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 73330@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 19 14:26:07 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 1srGEY-0009QO-Mx for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Sep 2024 14:26:06 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1srGEE-0004QJ-Et; Thu, 19 Sep 2024 08:25:46 -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 1srGED-0004QA-0v for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2024 08:25:45 -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 1srGEC-0003KJ-LC for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2024 08:25:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=s4khGCe2XizxfWKgaPA3X63Wj5WfXlInG1GOxjFMWMo=; b=eaUQfVA3uX1o3xXjRpsrHUiXotsk5/E1RBUHzsj4vtlPp7uvvfbPkgi7woe4m1PbdeEKsMtstg7iKtRfUel2+UUCTUFrqr2M1P5Av75HZza0hh0S0ca1hneNZERNyzDaXBdwUHMpce3w9+K05QgG4CvXbSFeZid+iXafFZZAUllOvwpGIxPvQMkySjVYw4Ur2+IvLeQb0h1tK1r9QwDE3jetRZF+3qdizUO7b52IRTIRozIXXofCUUCTqKUmcieiVAeae5sCbNSG/ej/Y5thimhNquYCBLa7poaAEKut4Kzw+4l805LSp0rlhjreWkzJZ2TpzDXnT3nMp5RySuKl7w==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1srGET-0003j1-K1 for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2024 08:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eshel Yaron Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Sep 2024 12:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73330 X-GNU-PR-Package: emacs Original-Received: via spool by 73330-submit@debbugs.gnu.org id=B73330.172674875314302 (code B ref 73330); Thu, 19 Sep 2024 12:26:01 +0000 Original-Received: (at 73330) by debbugs.gnu.org; 19 Sep 2024 12:25:53 +0000 Original-Received: from localhost ([127.0.0.1]:59958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srGEJ-0003ib-9A for submit@debbugs.gnu.org; Thu, 19 Sep 2024 08:25:52 -0400 Original-Received: from mail.eshelyaron.com ([107.175.124.16]:50510 helo=eshelyaron.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srGE2-0003i4-An for 73330@debbugs.gnu.org; Thu, 19 Sep 2024 08:25:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1726748716; bh=8+o4dKnonz6hnylt6QsAuhTaMtyj/FsIWv3FmxbQV78=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=TO2wXF3o2Z9kI5DquS7/RcUQC3Mim+luRu5q9rOEFDI0P2lm5NwHmpIVCWbUyeHGy P40kpexOg93S2f1ra1cTkS1N5qjjtJ2FY/cHeDSxJIUZMxAzkQ5PcPkOPZkNNjGFYY XWiF9Kh397JGSfb09OFAqg3yntVoG9Eukx6RfBilWwEK9a4krUXNUnI5CkplTX9XL3 2/Q948mevtTp4RsStLgmfEx3iDDkSqfe47DmGDmIjhSJFEaihsmnghljc37zHaXIWZ fI3F61JTKIwzMatGrhz7lpgRqsPspwFneBZq2HlU0b3JOFmHhngmaQRCzcwMjThKP8 XGdqdEn24LR3A== In-Reply-To: <86wmj87y9a.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 19 Sep 2024 13:07:13 +0300") 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:292043 Archived-At: Eli Zaretskii writes: >> Date: Wed, 18 Sep 2024 14:36:18 +0200 >> From: Eshel Yaron via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >> >> 1. emacs -Q >> 2. Insert "(cond (current-p >> 3. Hit M-TAB to complete >> >> We're completing a symbol in the condition of a cond clause, so it is >> expected to be completed as a variable, to current-prefix-argument. >> However, Emacs mistakenly thinks that we're completing a function name, >> and completes to current-bidi-paragraph-direction. > > Thanks. Does the patch below give good results? It helps, 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. Thanks, Eshel