GNU bug report logs - #72523
28.1; rst.el: indentation from TAB key in rst mode (ReST) is wrong when directive as an option

Previous Next

Package: emacs;

Reported by: jfbu <jfbu <at> free.fr>

Date: Thu, 8 Aug 2024 12:54:02 UTC

Severity: normal

Found in version 28.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 72523 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: jfbu <jfbu <at> free.fr>, Stefan Merten <stefan <at> merten-home.de>
Cc: 72523 <at> debbugs.gnu.org
Subject: Re: bug#72523: 28.1;
 rst.el: indentation from TAB key in rst mode (ReST) is wrong when
 directive as an option
Date: Sat, 10 Aug 2024 11:06:14 +0300
> From: jfbu <jfbu <at> free.fr>
> Date: Thu, 8 Aug 2024 14:53:13 +0200
> 
> Consider editing in Emacs a file `test.rst` and having typed so far
> 
> ~~~rest
> .. note::
>    :name: test
> ~~~
> 
> then insert a blank line and hit the TAB key on next one.  The cursor will align with `test`,  not with `:name:`.
> 
> This produces extra space in output when processed either by rst2html or integrated into a Sphinx projet.  For context see [this Sphinx comment](https://github.com/sphinx-doc/sphinx/issues/12742#issuecomment-2275622334).
> 
> I am using a file rst.el.gz integrated to my Emacs 28.1 which contains
> ~~~lisp
> ;; Maintained by the release process.
> (defconst rst-official-version
>   (rst-extract-version "%" "OfficialVersion: " "[0-9]+\\(?:\\.[0-9]+\\)+" " "
> 		       "%OfficialVersion: 1.5.2 %")
>   "Official version of the package.")
> (defconst rst-official-cvs-rev
>   (rst-extract-version "[%$]" "Revision: " "[0-9]+\\(?:\\.[0-9]+\\)+" " "
> 		       "$Revision: 1.1058.2.9 $")
>   "CVS revision of this file in the official version.")
> ~~~
> 
> I tried with electric-indent-mode both on and off.  No change.

Stefan, any comments or suggestions?




This bug report was last modified 281 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.