Discussion:
[Docutils-users] rst-mode broken indentation with emacs 24.4
Yuri D'Elia
2015-03-22 17:22:02 UTC
Permalink
Hi everyone, hopefully this is the right place to post issues with
`rst-mode'.

With emacs 24.4 `electric-indent-mode' is now globally on by default.
This seems to have broken rst-mode's indentation behavior, since <RET>
will also *cycle* the indentation of the current line; usually breaking
it in frustrating ways.

To have an example, consider:

.. code::<RET>
type anything here<RET>

will result in:

.. code::
type anything here

I currently fixed this by manually changing <RET> in rst-mode-map to
`newline-and-indent', but it would be nicer to actually make rst-mode
cooperate with electric-indent-mode.


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
Stefan Merten
2015-03-24 21:06:01 UTC
Permalink
Hi Yuri!
Post by Yuri D'Elia
Hi everyone, hopefully this is the right place to post issues with
`rst-mode'.
It is one of the options :-) .
Post by Yuri D'Elia
With emacs 24.4 `electric-indent-mode' is now globally on by default.
This seems to have broken rst-mode's indentation behavior, since <RET>
will also *cycle* the indentation of the current line; usually breaking
it in frustrating ways.
.. code::<RET>
type anything here<RET>
type anything here
I currently fixed this by manually changing <RET> in rst-mode-map to
`newline-and-indent', but it would be nicer to actually make rst-mode
cooperate with electric-indent-mode.
Thanks for the report. I'll look into this.


Grüße

Stefan

Loading...