[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#16981: 24.3.50; electric-pair-delete-adjacent-pairs broken in c-mode
From: |
João Távora |
Subject: |
bug#16981: 24.3.50; electric-pair-delete-adjacent-pairs broken in c-mode, python-mode, maybe-others |
Date: |
Mon, 10 Mar 2014 19:47:39 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) |
This variable, t by default, acts when `electric-pair-mode' is enabled.
It doesn't work in c-mode, python-mode and maybe other modes in
emacs. In also doesn't work in other modes outside of emacs, such as
markdown-mode.el [1]
All these modes rebind the backspace key to a command that does some
mode-specific action, then calls `backward-delete-char-untabify'.
elec-pair.el does mostly the same through remapping in its
`electric-pair-mode-map' but this binding is overriden by the
major-mode's.
elec-pair.el remaps two other commands similarly. Here's the value of
electric-pair-mode-map
(keymap
(remap keymap
(delete-backward-char . electric-pair-backward-delete-char)
(backward-delete-char . electric-pair-backward-delete-char)
(backward-delete-char-untabify
. electric-pair-backward-delete-char-untabify)))
Perhaps a hook in `backward-delete-char' is in order. Or the other major
modes can find other ways to overload the backspace key.
Thanks,
João
[1]: http://jblevins.org/git/markdown-mode.git/plain/markdown-mode.el
- bug#16981: 24.3.50; electric-pair-delete-adjacent-pairs broken in c-mode, python-mode, maybe-others,
João Távora <=
- bug#16981: 24.3.50; electric-pair-delete-adjacent-pairs broken in c-mode, python-mode, maybe-others, Alan Mackenzie, 2014/03/13
- bug#16959: bug#16981: 24.3.50; electric-pair-delete-adjacent-pairs broken in c-mode, python-mode, maybe-others, Stefan, 2014/03/17
- bug#16959: bug#16981: 24.3.50; electric-pair-delete-adjacent-pairs broken in c-mode, python-mode, maybe-others, Florian Beck, 2014/03/19
- bug#16959: bug#16981: 24.3.50; electric-pair-delete-adjacent-pairs broken in c-mode, python-mode, maybe-others, Stefan, 2014/03/21
- bug#16959: bug#16981: 24.3.50; electric-pair-delete-adjacent-pairs broken in c-mode, python-mode, maybe-others, Florian Beck, 2014/03/25
- bug#16959: bug#16981: 24.3.50; electric-pair-delete-adjacent-pairs broken in c-mode, python-mode, maybe-others, Stefan Monnier, 2014/03/25