in reply to Re^7: How would you indent this?
in thread How would you indent this?

> <RET> ... also per default, indents the current and the new (empty) line.

do you happen to know since which version?

It would be nice if the GNU folks published the emacs info with a version number.

> That's electric-indent-mode, which isn't actually overdocumented right now

I welcome freeing up TAB for completion, but this makes my setups even more complicated if they are supposed to work with different emacs versions.

Which is why I'm still stuck on 24 btw :)

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^9: How would you indent this?
by haj (Vicar) on Mar 19, 2021 at 16:07 UTC
    It would be nice if the GNU folks published the emacs info with a version number.

    Actually, they do, sort of, since Emacs 27:

    electric-indent-mode is an interactive compiled Lisp function in ‘electric.el’. (electric-indent-mode &optional ARG) Probably introduced at or before Emacs version 24.1. ...

    Note, however, that Probably indicates that this is based on guesswork (grepping NEWS files). We had cases where it was off by two versions, and the Emacs maintainers made clear that it is extremely unlikely that they'll spend the effort to make that exact.