From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#49518: 28.0.50; electric-pair-mode skip-self fails for single-quotes in python-mode Date: Sun, 19 Sep 2021 00:43:48 +0100 Message-ID: <87zgs9bgaz.fsf@gmail.com> References: <877dhxp8wn.fsf@gmx.net> <58515d93-dbca-4cd1-e820-ad9d5bb6d462@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31371"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 49518@debbugs.gnu.org, Stephen Berman , Daniel Fleischer To: Jim Porter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 19 01:44:20 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 1mRk0K-0007vX-Bw for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Sep 2021 01:44:20 +0200 Original-Received: from localhost ([::1]:42088 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRk0I-0001zI-1Z for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Sep 2021 19:44:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRk02-0001z8-Ks for bug-gnu-emacs@gnu.org; Sat, 18 Sep 2021 19:44:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53843) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRk02-0007hB-Cs for bug-gnu-emacs@gnu.org; Sat, 18 Sep 2021 19:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mRk02-000158-5K for bug-gnu-emacs@gnu.org; Sat, 18 Sep 2021 19:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Sep 2021 23:44:02 +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.16320086374140 (code B ref 49518); Sat, 18 Sep 2021 23:44:02 +0000 Original-Received: (at 49518) by debbugs.gnu.org; 18 Sep 2021 23:43:57 +0000 Original-Received: from localhost ([127.0.0.1]:37156 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRjzw-00014i-Tn for submit@debbugs.gnu.org; Sat, 18 Sep 2021 19:43:57 -0400 Original-Received: from mail-wr1-f41.google.com ([209.85.221.41]:34730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRjzv-00014T-3m for 49518@debbugs.gnu.org; Sat, 18 Sep 2021 19:43:55 -0400 Original-Received: by mail-wr1-f41.google.com with SMTP id t8so14599335wri.1 for <49518@debbugs.gnu.org>; Sat, 18 Sep 2021 16:43:55 -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:content-transfer-encoding; bh=yfmmaiPXMxkapOLlDLUVcJDNgeDdC66y+PqGw2LwRmI=; b=ZXgXi6ib9jtdsBYO79/w+Piyy65+uPKJPdpPI0OU05hgfTtw/imWascBkIEMqUGEb7 9htj5y+bWCWm5yPE9NkF2UMEsSvCiQpLx9418tWK1C3VlohmjzzQlYhBMCI7+rLqk63w tQySXu4y272kEAd6oWrNc0LIUbqDeGhmyk9w7qmV3UA/icM6w7I2jn3YDy2BJrtJn1au wf4a9kxKgqp9We89qSkkH+cVAKBdFHhKvQX/8S7r3YTDSS5RCvDJ1riWW1MgQ/jgZFGK XKSoV4cAGQFQRq8XdkYB6s/ptcw1cN5m+yOfYNFG0gpkyWA/YbALiuTuoKDFZ71/3EZz N79g== 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:content-transfer-encoding; bh=yfmmaiPXMxkapOLlDLUVcJDNgeDdC66y+PqGw2LwRmI=; b=0tmtvgCnF3w0QtST1g6rZux+7pItsgpGmbXHe3FfwH5koY5ZlxvpIONoqzr/jcMXKW HLv6fZNiZQQO8NSEEQ7uFtWdx/PFwS+yOrou3G7aUYaswfxrVl96fKhLl+l2gTjfjhi5 +1Gk6oZlhR91Kj+yHmlmTCdgkktO/l7T2t6VPJOgbIyHWJliExthJVhadbzJGLrnrEwn /17jgDoYhlu5UcgOUv6847LtD3nOp67WMMJaOqECzk/GnSlsyMa5F9a9IkqCq0YZxYaJ ICW0an7jfuW6Pm2ffbO+pjU8Y5wKHmLEtZP5iuzZioOru5eQCShlmffZtkQ5Ru4ci21I ciHA== X-Gm-Message-State: AOAM533EwRwRRwon313b8xmfIYDwpHe43iyuOzwRgIlzPR6DDObyRZTX 3pu+7AeCc8AZZ7Qwg36QR2U= X-Google-Smtp-Source: ABdhPJxdQmieswrs34/YPu6RMJKk9pNQW5ruSEnTv17WsQi/kHdXoD/dZXfeIUZqv1z5ABrxruwRmQ== X-Received: by 2002:adf:f3ce:: with SMTP id g14mr19822681wrp.95.1632008629047; Sat, 18 Sep 2021 16:43:49 -0700 (PDT) Original-Received: from krug (a83-132-177-247.cpe.netcabo.pt. [83.132.177.247]) by smtp.gmail.com with ESMTPSA id o24sm14406900wmm.11.2021.09.18.16.43.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Sep 2021 16:43:48 -0700 (PDT) In-Reply-To: <58515d93-dbca-4cd1-e820-ad9d5bb6d462@gmail.com> (Jim Porter's message of "Sat, 18 Sep 2021 09:56:17 -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:214666 Archived-At: Jim Porter writes: > (CCing Jo=C3=A3o since he wanted to hear about `electric-pair-mode' issue= s[1].) Thanks you Jim, I've read your original bug report. It is very clear in reproduction and also the analysis seems mostly correct. I'll see what I can do. The solution will probably go into python.el in terms of customization of electric-pair-mode's variables. The only question is whether it can be made to serve Stephen's and your requirements. In the meantime, if you're curious: this was one of the first things I worked in with autopair.el. See https://github.com/joaotavora/autopair/issues/6. Jo=C3=A3o