bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#33840: electric-pair-mode breaks self-insert-command


From: Lars Ingebrigtsen
Subject: bug#33840: electric-pair-mode breaks self-insert-command
Date: Wed, 10 Jul 2019 00:39:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Alan Mackenzie <address@hidden> writes:

> In the master branch, put the following into *scratch* and evaluate it:
>
>     (defun s-i-c ()
>       (interactive)
>       (self-insert-command 1))
>     (local-set-key "(" 's-i-c))
>
> On typing "(", it will be seen that the self-insert-command does its
> job, correctly entering "(" into *scratch*.
>
> Now do M-x electric-pair-mode.
>
> If you now type "(", self-insert-command wrongly enters "()" into the
> buffer.  This is a bug, and is the root cause of bug #33794.

I must be misunderstanding something -- isn't the entire point of
electric-pair-mode that it inserts the corresponding parenthesis when
self-insert-command is called on one of the magical characters?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]