From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#68514: 30.0.50; minibuffer-choose-completion + elisp-c-a-p delete next sexp when completing after open paren Date: Wed, 17 Jan 2024 18:42:38 +0200 Organization: LINKOV.NET Message-ID: <86zfx329oh.fsf@mail.linkov.net> References: <86ply1npno.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22942"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: dmitry@gutov.dev, 68514@debbugs.gnu.org, monnier@iro.umontreal.ca To: Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 17 17:46:39 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 1rQ93n-0005kZ-6k for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Jan 2024 17:46:39 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQ93W-0004wD-O3; Wed, 17 Jan 2024 11:46:25 -0500 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 1rQ93C-0004l0-Bw for bug-gnu-emacs@gnu.org; Wed, 17 Jan 2024 11:46:04 -0500 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 1rQ93B-0001Gy-H8 for bug-gnu-emacs@gnu.org; Wed, 17 Jan 2024 11:46:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rQ93C-0005Z6-IM for bug-gnu-emacs@gnu.org; Wed, 17 Jan 2024 11:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Jan 2024 16:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68514 X-GNU-PR-Package: emacs Original-Received: via spool by 68514-submit@debbugs.gnu.org id=B68514.170550993018103 (code B ref 68514); Wed, 17 Jan 2024 16:46:02 +0000 Original-Received: (at 68514) by debbugs.gnu.org; 17 Jan 2024 16:45:30 +0000 Original-Received: from localhost ([127.0.0.1]:53145 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQ92f-0004gm-9S for submit@debbugs.gnu.org; Wed, 17 Jan 2024 11:45:29 -0500 Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:51795) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQ92Y-0004Ez-E2 for 68514@debbugs.gnu.org; Wed, 17 Jan 2024 11:45:22 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 5CD34E000A; Wed, 17 Jan 2024 16:45:13 +0000 (UTC) In-Reply-To: (Spencer Baugh's message of "Tue, 16 Jan 2024 14:43:35 -0500") X-GND-Sasl: juri@linkov.net 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:278393 Archived-At: >> This is a known bug without a known fix: >> https://debbugs.gnu.org/64903#18 > > Alright, how about this patch? Should fix most of the issue without > changing the code too much. > > diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el > @@ -668,6 +668,9 @@ elisp-completion-at-point > (goto-char beg) > (forward-sexp 1) > (skip-chars-backward "'’") > + (when (member (char-syntax (char-before (point))) > + '(?\" ?\))) > + (goto-char beg)) > (when (>= (point) pos) > (point))) Thanks. I tried this patch, but it doesn't seem to have any effect.