|
From: | Lars Ingebrigtsen |
Subject: | bug#50236: 27.2; electric-pair-mode is inconvenient in comint |
Date: | Mon, 22 Aug 2022 17:37:27 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Augusto Stoffel <arstoffel@gmail.com> writes: > The following quick fix works for me: > > (defun electric-pair-skip-in-field (char) > (save-restriction > (narrow-to-region (field-beginning) (field-end)) > (electric-pair-default-skip-self char))) > > (add-hook 'comint-mode-hook (lambda () (setq-local electric-pair-skip-self > > 'electric-pair-skip-in-field))) > > Perhaps `electric-pair-default-skip-self' should always narrow to the > current field? That would make sense in this case... I'm trying to think of instances where it wouldn't make sense, and I can't think of any. So perhaps we should make this change in general? Anybody have any opinions here?
[Prev in Thread] | Current Thread | [Next in Thread] |