From: Alan Mackenzie <acm@muc.de>
To: gnu-emacs-bug@moderators.isc.org
Subject: bug#16763: 24.3.50; electric-indent annoyance: C-j doesn't indent
Date: Sat, 15 Feb 2014 22:18:57 +0000 (UTC) [thread overview]
Message-ID: <ldop4h$1rt9$1@colin.muc.de> (raw)
In-Reply-To: <87fvnkbbqx.fsf@gmail.com>
Hi, Drew.
Drew Adams <drew.adams@oracle.com> wrote:
>> This has been bothering me for a while when writing lisp code --
>> started happening roughly a few months ago.
> Yup.
>> I always hit C-j for newline, and a couple of months ago, this
>> stopped indenting -- by default C-j runs control j runs the
>> command electric-indent-just-newline when electric-indent-mode
>> is on.
>>
>> The documentation for electric-mode indicates that indentation
>> will be invoked when you type any of the chars in
>> electric-indent-chars -- and that variable is set to a list
>> containing ?\n which is ascii 10; yet, C-j invokes a command
>> that explicitly only inserts a newline? (feeling very confused)
> It is not yet reflected in NEWS or the manuals, but `C-j' and
> `RET' have been effectively swapped: `RET' now indents and `C-j'
> does not indent.
No, it's a lot worse than that. What you say only applies when
electric-indent-mode is active (which is currently is, by default).
If you enable e-i-mode in a single buffer using
electric-indent-local-mode, then that binding reversal will apply in all
buffers. (That's assuming that function works, which I strongly suspect
isn't the case.) If you then disable e-i-m, whether the bindings stay
swapped depends on how you do the disabling.
If you advise `newline-and-indent', the results will be unexpected and
suboptimal when e-i-mode is enabled.
> The new behavior was apparently adopted to make Emacs correspond
> better with what newbie users expect, based on their experience
> with other editors and IDEs.
Sort of. I suspect the newbie users who don't like e-i-mode would also
like to have these bindings reversed. Or maybe not. Who can say?
> You are not alone in "feeling very confused". Hopefully, the
> NEWS entry covering this, and perhaps the manuals, will explain
> the best and simplest way to restore the previous, longstanding
> behavior for those who might prefer it. Otherwise, you can
> just retrain your fingers. ;-)
I'm not confused about this issue. Just very, very unhappy.
--
Alan Mackenzie (Nuremberg, Germany).
next prev parent reply other threads:[~2014-02-15 22:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <<87fvnkbbqx.fsf@gmail.com>
[not found] ` <mailman.15193.1392492502.10748.bug-gnu-emacs@gnu.org>
2014-02-15 16:07 ` bug#16763: 24.3.50; electric-indent annoyance: C-j doesn't indent raman
2014-02-15 22:18 ` Alan Mackenzie [this message]
2014-02-17 3:16 ` Stefan Monnier
2014-02-15 19:27 ` Drew Adams
2014-02-15 19:50 ` Andreas Röhler
2014-02-15 21:48 ` T. V. Raman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='ldop4h$1rt9$1@colin.muc.de' \
--to=acm@muc.de \
--cc=gnu-emacs-bug@moderators.isc.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.