unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#33840: electric-pair-mode breaks self-insert-command
@ 2018-12-23  2:38 Alan Mackenzie
  2019-07-09 22:39 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Mackenzie @ 2018-12-23  2:38 UTC (permalink / raw)
  To: 33840

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).





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-07-10 17:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-23  2:38 bug#33840: electric-pair-mode breaks self-insert-command Alan Mackenzie
2019-07-09 22:39 ` Lars Ingebrigtsen
2019-07-10  9:39   ` Alan Mackenzie
2019-07-10 11:34     ` Lars Ingebrigtsen
2019-07-10 17:08       ` Noam Postavsky

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).