From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Fleischer Newsgroups: gmane.emacs.bugs Subject: bug#49518: 28.0.50; electric-pair-mode skip-self fails for single-quotes in python-mode Date: Sat, 18 Sep 2021 15:55:35 +0300 Message-ID: References: <877dhxp8wn.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31807"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) Cc: 49518@debbugs.gnu.org, Stephen Berman To: Jim Porter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 18 14:56:12 2021 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 1mRZt5-00087S-RY for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Sep 2021 14:56:11 +0200 Original-Received: from localhost ([::1]:58962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRZt4-0005bO-8I for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Sep 2021 08:56:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40212) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRZsw-0005Zr-Fd for bug-gnu-emacs@gnu.org; Sat, 18 Sep 2021 08:56:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50514) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRZsw-000533-4W for bug-gnu-emacs@gnu.org; Sat, 18 Sep 2021 08:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mRZsv-0000TT-TI for bug-gnu-emacs@gnu.org; Sat, 18 Sep 2021 08:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Fleischer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Sep 2021 12:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49518 X-GNU-PR-Package: emacs Original-Received: via spool by 49518-submit@debbugs.gnu.org id=B49518.16319697461801 (code B ref 49518); Sat, 18 Sep 2021 12:56:01 +0000 Original-Received: (at 49518) by debbugs.gnu.org; 18 Sep 2021 12:55:46 +0000 Original-Received: from localhost ([127.0.0.1]:33827 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRZsf-0000Sz-OZ for submit@debbugs.gnu.org; Sat, 18 Sep 2021 08:55:45 -0400 Original-Received: from mail-wr1-f50.google.com ([209.85.221.50]:43974) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRZsd-0000Sk-Ox for 49518@debbugs.gnu.org; Sat, 18 Sep 2021 08:55:44 -0400 Original-Received: by mail-wr1-f50.google.com with SMTP id w17so11593953wrv.10 for <49518@debbugs.gnu.org>; Sat, 18 Sep 2021 05:55:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=oVkG1JlcW9OOosx/DvUslD5YxdJzRjeTsmSPj/dzVFU=; b=DgaJ3AGCIZgVQMmD+dqFjHIlfYmrhLhyLEKWFTWZPrQb/u3OVsl2TrCxB5mokkaogV xSsHQ3JVdm9pcjcPjhOOL+kBB1EW0NXJtR9xz04boP0sBi2h/J1otsyBGRzj1LdfRMvB k2v3eo3zIrv3nv9IXWfKqSsBJhRzPCmesgNa5p2AiqJweGhfYw4m3Fb0UPc4naSoqQWk 5nBmOKLDochNdAWiWfwbpIaJV+Gq4y/SPwP0qrJ3D+KQ3CJ8JxjwEKVq88YiEVc+VnCB 8Fph58sfp2q7J0syLgn0F2ZJDxhIoyugORIWVy3wC6QAPI1rHttKz0vKNcFhZmgifVr2 EjkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=oVkG1JlcW9OOosx/DvUslD5YxdJzRjeTsmSPj/dzVFU=; b=2izc/h6b0hVkYWRHAoAZwQN6hFfU0dKpH4bzvbnbC9sB5mYpTaeD50jvtyHKGqVUjs IYI97rQ8kZ0b2Ex+j0DE18OIkhYFj22Kb0K8TEiKDsjuvn9eBLRKAOT5/12DoMfaoHW2 NaSVntaCVMQJd6T9fR5KilEeOqAHGn9HF907m8eVAKYEjcgFp7wCj+sXHaVEtu6yKO5V njH0TFU72Zlx5PTEKRqeLVxR3y5ogEP8hxzikmqblT7RgRxR5cYLj3O7j/hwi7szdEff FxmNqth+ZXjuFnvQ9BYs9kqfyc2IHNu3tVONPmI0HVlwGNpB21OOPN92o34knQSLNuz+ 61ZQ== X-Gm-Message-State: AOAM532+RLVqVvTju/1gdwc6bzd13LuX7kL4tQG2VTS+1f0hfPmvZTcv uVA9JTb3SbqVeVgan3qHL/DkzFER6x0= X-Google-Smtp-Source: ABdhPJysuNOjZY5GCinAVAI/86KtfJSHEffoM1cAksa98shT3txdI3I7FRV3oOBW5WFv6hon1WBC9g== X-Received: by 2002:a5d:6343:: with SMTP id b3mr17177288wrw.124.1631969737641; Sat, 18 Sep 2021 05:55:37 -0700 (PDT) Original-Received: from Home-Mac ([141.226.13.159]) by smtp.gmail.com with ESMTPSA id j27sm8566044wms.6.2021.09.18.05.55.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Sep 2021 05:55:37 -0700 (PDT) In-Reply-To: (Jim Porter's message of "Sun, 11 Jul 2021 10:34:19 -0700") 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" Xref: news.gmane.io gmane.emacs.bugs:214625 Archived-At: Jim Porter [2021-07-11 Sun 10:34] wrote: > That's true, and I've been working on a patch to make that behavior > more robust. The code for that is in > `python-electric-pair-string-delimiter', but I think an improved > implementation of that would depend on how this bug is fixed. I have a > local patch that works for me, but it depends on the other > electric-pair settings I use, so it couldn't merge as-is. As I'm also bothered by this, is there some resolution? BTW, my solution is hooking this code in 'inferior-python-mode': (setq-local electric-pair-pairs (append electric-pair-pairs '((?' . ?')))) -- Daniel Fleischer