emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] trunk r116461: Connect electric-indent-mode up with CC


From: João Távora
Subject: Re: [Emacs-diffs] trunk r116461: Connect electric-indent-mode up with CC Mode. Bug #15478.
Date: Mon, 10 Mar 2014 12:24:44 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt)

Stefan Monnier <address@hidden> writes:

> No, I can't, sorry: if it were up to me, c-electric-flag would not even
> exist any more.

FWIW, I've just noticed that when `electric-pair-mode' is enabled in
c-mode, it's `electric-pair-backward-delete-char' command it not
working, since c-mode rebinds it to `c-electric-backspace'.

It works when I unbind `c-electric-backspace' from
`c-mode-base-map'. All other autopairing/autoskipping works well.

Perhaps a lesser problem since `electric-pair-mode' is not enabled by
default.

There might also be non-intrusive solutions on elec-pair.el's
side. Other modes like python-mode also like to redefine the backspace
key. They all seem to call backward-delete-char-untabify eventually, so
maybe somehow transferring `electric-pair-mode's behaviour there is a
good idea.

Should I open a bug report?

João





reply via email to

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