From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#72523: 28.1; rst.el: indentation from TAB key in rst mode (ReST) is wrong when directive as an option Date: Fri, 9 Aug 2024 09:50:47 +0000 Message-ID: References: <8AE41FA1-FD5F-4457-B2DB-00FE7728A037@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3285"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Merten To: jfbu , 72523@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 09 11:53:01 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1scMIt-0000fV-Pe for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 09 Aug 2024 11:52:59 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1scMIW-0001ea-B4; Fri, 09 Aug 2024 05:52:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1scMIU-0001eM-Hu for bug-gnu-emacs@gnu.org; Fri, 09 Aug 2024 05:52:34 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1scMIU-000387-8L for bug-gnu-emacs@gnu.org; Fri, 09 Aug 2024 05:52:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:MIME-Version:References:In-Reply-To:From:To:Subject; bh=ccRdHcZx97zxOD2Bf+TVr9YRKN/lOdBg37M+PN3Qg98=; b=hZT8blbJRhGE1Xhgzyn0PlsR7HAT49nUGv19UanbZjMT6mhQXg8HlAZebvUbf3RSk5slo6keDQwoeH1Exz95/4hCxgzMHfmoy6rHkMzv8wZaNBrGJHXaeGL+V88opETvKwxcFnpyocK1oBpen6nReP5hJLxMVEGFrmD/ZIPvzh3K6j9h5Slizgb0j/WZSDZwIm/DJCvrTbixQQCeJSN7R4grWpyP1Ilo9WQ3EjsaaL7QPbvGmy3+3E8k1M8nZez74CUdCAla7voDbOer5jFYWUbJ87d/lnXP7pDIEKnhOcBoUr7OEZ6VpRHjnHJGQGCgdQQyapWzRQj17c/Pw95CpA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1scMIv-00021X-Tr for bug-gnu-emacs@gnu.org; Fri, 09 Aug 2024 05:53:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Aug 2024 09:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72523 X-GNU-PR-Package: emacs Original-Received: via spool by 72523-submit@debbugs.gnu.org id=B72523.17231971447733 (code B ref 72523); Fri, 09 Aug 2024 09:53:01 +0000 Original-Received: (at 72523) by debbugs.gnu.org; 9 Aug 2024 09:52:24 +0000 Original-Received: from localhost ([127.0.0.1]:37705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1scMIK-00020f-Fx for submit@debbugs.gnu.org; Fri, 09 Aug 2024 05:52:24 -0400 Original-Received: from mail-lf1-f42.google.com ([209.85.167.42]:61800) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1scMII-00020R-Vv for 72523@debbugs.gnu.org; Fri, 09 Aug 2024 05:52:23 -0400 Original-Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-530e2235688so2022807e87.3 for <72523@debbugs.gnu.org>; Fri, 09 Aug 2024 02:51:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723197049; x=1723801849; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=ccRdHcZx97zxOD2Bf+TVr9YRKN/lOdBg37M+PN3Qg98=; b=JFnpJRnJO5YfHonbAeSU6RtInjfFJlIBkOjGfUsVIUFQZw0XSnioqHXfOFkLAPgbje NdVo8VUuS2esvEZ2cp2c0PRO5ZS223gdbKUPA6zJGII5QNQkc5HMDORSOAR5puWejoeH rgy0EjxkCBZUwIssmghK5YCACStb+SSyhcY0j/07ajk9Xwj7pTBu0mvF69wvjZ9gHyhL ak4mJeokMV7SyNMWCBEM0Lykx/W+T7pbwSbE+9LKm5NRAcq7h06ntY22tXQS+6vPNBRS wIv1IoWyiEKaVXd7TAytY8/ey7cTyv9OvGBZxGBxo0iNKaiSgWeh+SlA3z8tJSCuCM8s xFPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723197049; x=1723801849; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ccRdHcZx97zxOD2Bf+TVr9YRKN/lOdBg37M+PN3Qg98=; b=FwH0KFzxcxLFmEa4pM/KKiSzP61ubtMucMvixfV7U1A/gGzyXqi0/uu+VAGea5d895 IbRcUAjih344Llltncn/9MC6yUYlAQMBhQ1tNx8Xt/XarWiaR6A2hY1iR6gnMuqfATFl DmstlmGHb9b/E4hE7mLtyMswRo6fbfi+hc5R2LTyTVc0vQrLEzUJgsfDrr2OxQIgebbr lQKfxIkyUhK9OXdyHnmqib6CCYaYib25EqAFxsVBHDypwaKYJMKDaFYUC9vNsLGntgla MHs1ukmKuViYZg1jlI4ymMWXPAbDpzsZDxMhVK3It5pjPoCiGGoXPXx/eUyLuOED8swM RkvA== X-Forwarded-Encrypted: i=1; AJvYcCV1MhTbyVBOmMa9Vd+X08xbvWLFPRoBvVAq324cuFgEdzdHCtZnlcMUkHXT6blA2CXtk1CQBqEOQ4FqM2K8Apq/YusrpMI= X-Gm-Message-State: AOJu0Yy4Kbtp+cruPvEbVMzPWxTvJNtdyXXN5BaSuUNnWNLU2nXSja2d 9GmzmUzi8Q01WM9lShPB0dgzPUYzqKlYYTNuNNGqcI1K5sIzGnMA58LilbXssUqs3DDE9W6kDwC Q2Xuv7RMPnMEYypOTToRrnsdTpeA= X-Google-Smtp-Source: AGHT+IHyw3d3JKW41N0oG/E2a797guxf6HkQhynUCSODxTa+AAsAEr6A/xwyd4EuLfMZhVzWFd9/5QI8IEcTEQBuiN8= X-Received: by 2002:a05:6512:15a7:b0:52f:df:db40 with SMTP id 2adb3069b0e04-530eea6ae82mr645728e87.56.1723197048812; Fri, 09 Aug 2024 02:50:48 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 9 Aug 2024 09:50:47 +0000 In-Reply-To: <8AE41FA1-FD5F-4457-B2DB-00FE7728A037@free.fr> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:289964 Archived-At: jfbu writes: > Hi, > > I could not find a bug tracker restricted to rst.el (reStructured Text mode). I was told rst.el is now maintained as part of Emacs, not at [Docutils](https://sourceforge.net/projects/docutils/). > > Here is my report: > > 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. > Regards, > jfbu I'm copying in Stefan Merten, in case he has any comments or suggestions.