unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: jfbu <jfbu@free.fr>, Stefan Merten <stefan@merten-home.de>
Cc: 72523@debbugs.gnu.org
Subject: 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	[thread overview]
Message-ID: <86h6bskdjd.fsf@gnu.org> (raw)
In-Reply-To: <8AE41FA1-FD5F-4457-B2DB-00FE7728A037@free.fr> (message from jfbu on Thu, 8 Aug 2024 14:53:13 +0200)

> From: jfbu <jfbu@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?





      parent reply	other threads:[~2024-08-10  8:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-08 12:53 bug#72523: 28.1; rst.el: indentation from TAB key in rst mode (ReST) is wrong when directive as an option jfbu
2024-08-09  9:50 ` Stefan Kangas
2024-08-10  8:36   ` Stefan Merten
2024-08-10  9:41     ` jfbu
2024-08-15  8:34       ` Eli Zaretskii
2024-08-10  8:06 ` Eli Zaretskii [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86h6bskdjd.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=72523@debbugs.gnu.org \
    --cc=jfbu@free.fr \
    --cc=stefan@merten-home.de \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).