[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#49518: 28.0.50; electric-pair-mode skip-self fails for single-quotes
From: |
Daniel Fleischer |
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 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) |
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
- bug#49518: 28.0.50; electric-pair-mode skip-self fails for single-quotes in python-mode,
Daniel Fleischer <=
- bug#49518: 28.0.50; electric-pair-mode skip-self fails for single-quotes in python-mode, Jim Porter, 2021/09/18
- bug#49518: 28.0.50; electric-pair-mode skip-self fails for single-quotes in python-mode, João Távora, 2021/09/18
- bug#49518: 28.0.50; electric-pair-mode skip-self fails for single-quotes in python-mode, João Távora, 2021/09/18
- bug#49518: 28.0.50; electric-pair-mode skip-self fails for single-quotes in python-mode, Jim Porter, 2021/09/18
- bug#49518: 28.0.50; electric-pair-mode skip-self fails for single-quotes in python-mode, João Távora, 2021/09/19
- bug#49518: 28.0.50; electric-pair-mode skip-self fails for single-quotes in python-mode, João Távora, 2021/09/19
- bug#49518: 28.0.50; electric-pair-mode skip-self fails for single-quotes in python-mode, João Távora, 2021/09/21
- bug#49518: 28.0.50; electric-pair-mode skip-self fails for single-quotes in python-mode, Jim Porter, 2021/09/22