[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#33794: 26.1; electric-pair-mode breaks auto-newline minor mode of cc
From: |
João Távora |
Subject: |
bug#33794: 26.1; electric-pair-mode breaks auto-newline minor mode of cc-mode |
Date: |
Sat, 22 Dec 2018 21:19:22 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Beatrix Klebe <beeuhtricks@gmail.com> writes:
> Well, in that case, I am flattered that my opinion is given much
> weight in this.
It's supposed to work like that everyday in the Emacs bug tracker. If
it flatters you, so much the better :-)
> Things such as c-toggle-auto-newline, for example, almost seem in this
> case that they might be better delegated to electric-layout-mode, with
> cc-mode specifying different electric-layout constraints for its
> different formatting styles. It seems this is close to what João was
> suggesting?
Yes, that is precisely what I am suggesting. I am happy that this point
made it across.
Though there is not any need to give up on c-toggle-auto-newline if you
don't use electric-pair-mode, or if you use some other tool like
smartparens, or perhaps even my older tool autopair.el (tho those tools
might have other drawbacks that I don't known)
> And I suspect what Alan disagrees with? I apologize for any
> misunderstanding.
Yes, Alan disagrees with this. In his view, electric- modes are abusing
the semantics of post-self-insert-hook. Well, at least in my view of
his views :-)
João
PS: I'm cleaning up the implementation of the more powerful
electric-layout mode in branch
scratch/fix-33794-extend-electric-layout-mode. I'll let you know
if/when it is merged.
- bug#33794: 26.1; electric-pair-mode breaks auto-newline minor mode of cc-mode, (continued)
- bug#33794: 26.1; electric-pair-mode breaks auto-newline minor mode of cc-mode, Alan Mackenzie, 2018/12/22
- bug#33794: 26.1; electric-pair-mode breaks auto-newline minor mode of cc-mode, Alan Mackenzie, 2018/12/21
- bug#33794: 26.1; electric-pair-mode breaks auto-newline minor mode of cc-mode, João Távora, 2018/12/21
- bug#33794: 26.1; electric-pair-mode breaks auto-newline minor mode of cc-mode, Alan Mackenzie, 2018/12/22
- bug#33794: 26.1; electric-pair-mode breaks auto-newline minor mode of cc-mode, João Távora, 2018/12/22
- bug#33794: 26.1; electric-pair-mode breaks auto-newline minor mode of cc-mode, Alan Mackenzie, 2018/12/21
- bug#33794: 26.1; electric-pair-mode breaks auto-newline minor mode of cc-mode, Stefan Monnier, 2018/12/22
- bug#33794: 26.1; electric-pair-mode breaks auto-newline minor mode of cc-mode, Beatrix Klebe, 2018/12/22
- bug#33794: 26.1; electric-pair-mode breaks auto-newline minor mode of cc-mode, Stefan Monnier, 2018/12/22
- bug#33794: 26.1; electric-pair-mode breaks auto-newline minor mode of cc-mode, Beatrix Klebe, 2018/12/22
- bug#33794: 26.1; electric-pair-mode breaks auto-newline minor mode of cc-mode,
João Távora <=
- bug#33794: 26.1; electric-pair-mode breaks auto-newline minor mode of cc-mode, Alan Mackenzie, 2018/12/22
- bug#33794: 26.1; electric-pair-mode breaks auto-newline minor mode of cc-mode, João Távora, 2018/12/22
- bug#33794: 26.1; electric-pair-mode breaks auto-newline minor mode of cc-mode, Alan Mackenzie, 2018/12/23
- bug#33794: 26.1; electric-pair-mode breaks auto-newline minor mode of cc-mode, João Távora, 2018/12/23
- bug#33794: 26.1; electric-pair-mode breaks auto-newline minor mode of cc-mode, Alan Mackenzie, 2018/12/23
- bug#33794: 26.1; electric-pair-mode breaks auto-newline minor mode of cc-mode, Alan Mackenzie, 2018/12/28
- bug#33794: 26.1; electric-pair-mode breaks auto-newline minor mode of cc-mode, Stefan Monnier, 2018/12/23
Message not available