GNU bug report logs - #33840
electric-pair-mode breaks self-insert-command

Previous Next

Package: emacs;

Reported by: Alan Mackenzie <acm <at> muc.de>

Date: Sun, 23 Dec 2018 02:46:01 UTC

Severity: normal

Tags: wontfix

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Alan Mackenzie <acm <at> muc.de>
To: 33840 <at> debbugs.gnu.org
Subject: bug#33840: electric-pair-mode breaks self-insert-command
Date: Sun, 23 Dec 2018 02:38:41 +0000
Hello, Emacs.

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.

-- 
Alan Mackenzie (Nuremberg, Germany).




This bug report was last modified 5 years and 316 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.