GNU bug report logs - #24481
11.89.5; Wrong indentation in tabular environment

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: auctex; Reported by: dbitouze@HIDDEN (Bitouzé Denis); dated Tue, 20 Sep 2016 16:05:01 UTC; Maintainer for auctex is bug-auctex@HIDDEN.

Message received at 24481 <at> debbugs.gnu.org:


Received: (at 24481) by debbugs.gnu.org; 8 Oct 2016 15:15:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 08 11:15:16 2016
Received: from localhost ([127.0.0.1]:48860 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bstLI-0003Tt-Em
	for submit <at> debbugs.gnu.org; Sat, 08 Oct 2016 11:15:16 -0400
Received: from eggs.gnu.org ([208.118.235.92]:38934)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mose@HIDDEN>) id 1bstLG-0003TY-EP
 for 24481 <at> debbugs.gnu.org; Sat, 08 Oct 2016 11:15:14 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <mose@HIDDEN>) id 1bstL7-0002yQ-9y
 for 24481 <at> debbugs.gnu.org; Sat, 08 Oct 2016 11:15:09 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48154)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <mose@HIDDEN>)
 id 1bstL7-0002x6-7B
 for 24481 <at> debbugs.gnu.org; Sat, 08 Oct 2016 11:15:05 -0400
Received: from mail-wm0-f52.google.com ([74.125.82.52]:38437)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <mose@HIDDEN>) id 1bstL5-0001J4-Lz
 for 24481 <at> debbugs.gnu.org; Sat, 08 Oct 2016 11:15:03 -0400
Received: by mail-wm0-f52.google.com with SMTP id i130so94111318wmg.1
 for <24481 <at> debbugs.gnu.org>; Sat, 08 Oct 2016 08:15:03 -0700 (PDT)
X-Gm-Message-State: AA6/9Rml/lwKVi48VZ6fUG2xRm/x18e2qGuX47by8ZxCeoSWLwx/lRjqA+1Aes8WRVOtdQD+kfExdG193wCybw==
X-Received: by 10.28.128.86 with SMTP id b83mr3521937wmd.40.1475939702604;
 Sat, 08 Oct 2016 08:15:02 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.194.93.198 with HTTP; Sat, 8 Oct 2016 08:14:22 -0700 (PDT)
In-Reply-To: <CAKtYQqTZ8XoK4aeFSnhNztktupt-pi1X+PmbWt-OTxfzZXe_aA@HIDDEN>
References: <m3k2e6pnrq.fsf@HIDDEN>
 <CAKtYQqTZ8XoK4aeFSnhNztktupt-pi1X+PmbWt-OTxfzZXe_aA@HIDDEN>
From: =?UTF-8?Q?Mos=C3=A8_Giordano?= <mose@HIDDEN>
Date: Sat, 8 Oct 2016 17:14:22 +0200
X-Gmail-Original-Message-ID: <CAKtYQqQFeQW6m35n87nHmYUDXMuV7V2PavHf8RatNAAx_raj8w@HIDDEN>
Message-ID: <CAKtYQqQFeQW6m35n87nHmYUDXMuV7V2PavHf8RatNAAx_raj8w@HIDDEN>
Subject: Re: bug#24481: 11.89.5; Wrong indentation in tabular environment
To: =?UTF-8?Q?Bitouz=C3=A9_Denis?= <dbitouze@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -7.7 (-------)
X-Debbugs-Envelope-To: 24481
Cc: 24481 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -7.7 (-------)

Quick follow-up.  Functions listed in `LaTeX-indent-environment-list'
should take care of the indentation in all possible cases.
Apparently, `LaTeX-indent-tabular' does not take care of all these
possible cases.  It could take advantage of
`LaTeX-indent-calculate-last'.  I'm sorry but I can't do this right
now, if someone is willing to dig further into this, please go ahead.

Bye,
Mos=C3=A8

2016-09-28 22:21 GMT+02:00 Mos=C3=A8 Giordano <mose@HIDDEN>:
> Hi Denis,
>
> I cannot work on this right now, but I'm writing to acknowledge I can
> reproduce the problem you reported.  I hope to be able to find some
> time to look into it.
>
> Bye,
> Mos=C3=A8




Information forwarded to bug-auctex@HIDDEN:
bug#24481; Package auctex. Full text available.

Message received at 24481 <at> debbugs.gnu.org:


Received: (at 24481) by debbugs.gnu.org; 28 Sep 2016 20:22:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 28 16:22:16 2016
Received: from localhost ([127.0.0.1]:38212 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bpLMu-0006iK-HM
	for submit <at> debbugs.gnu.org; Wed, 28 Sep 2016 16:22:16 -0400
Received: from eggs.gnu.org ([208.118.235.92]:39980)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mose@HIDDEN>) id 1bpLMs-0006i7-TN
 for 24481 <at> debbugs.gnu.org; Wed, 28 Sep 2016 16:22:15 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <mose@HIDDEN>) id 1bpLMk-0004Fv-Ps
 for 24481 <at> debbugs.gnu.org; Wed, 28 Sep 2016 16:22:09 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_50, RCVD_IN_SORBS_SPAM, 
 RP_MATCHES_RCVD autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36002)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <mose@HIDDEN>)
 id 1bpLMk-0004Fk-M1
 for 24481 <at> debbugs.gnu.org; Wed, 28 Sep 2016 16:22:06 -0400
Received: from mail-wm0-f42.google.com ([74.125.82.42]:36511)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <mose@HIDDEN>) id 1bpLMk-00064J-3S
 for 24481 <at> debbugs.gnu.org; Wed, 28 Sep 2016 16:22:06 -0400
Received: by mail-wm0-f42.google.com with SMTP id w84so256674368wmg.1
 for <24481 <at> debbugs.gnu.org>; Wed, 28 Sep 2016 13:22:06 -0700 (PDT)
X-Gm-Message-State: AA6/9Rl5ruBMhhY+gtuaTGx/EVh3vCUVhyE5k9MkCce4pYDVpuy+Y1AITQqut+HOq8tF/u3xBoLda5XURKjEKw==
X-Received: by 10.28.170.197 with SMTP id t188mr10283802wme.42.1475094125149; 
 Wed, 28 Sep 2016 13:22:05 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.194.55.168 with HTTP; Wed, 28 Sep 2016 13:21:24 -0700 (PDT)
In-Reply-To: <m3k2e6pnrq.fsf@HIDDEN>
References: <m3k2e6pnrq.fsf@HIDDEN>
From: =?UTF-8?Q?Mos=C3=A8_Giordano?= <mose@HIDDEN>
Date: Wed, 28 Sep 2016 22:21:24 +0200
X-Gmail-Original-Message-ID: <CAKtYQqTZ8XoK4aeFSnhNztktupt-pi1X+PmbWt-OTxfzZXe_aA@HIDDEN>
Message-ID: <CAKtYQqTZ8XoK4aeFSnhNztktupt-pi1X+PmbWt-OTxfzZXe_aA@HIDDEN>
Subject: Re: bug#24481: 11.89.5; Wrong indentation in tabular environment
To: =?UTF-8?Q?Bitouz=C3=A9_Denis?= <dbitouze@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -7.5 (-------)
X-Debbugs-Envelope-To: 24481
Cc: 24481 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -7.5 (-------)

Hi Denis,

I cannot work on this right now, but I'm writing to acknowledge I can
reproduce the problem you reported.  I hope to be able to find some
time to look into it.

Bye,
Mos=C3=A8




Information forwarded to bug-auctex@HIDDEN:
bug#24481; Package auctex. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 20 Sep 2016 16:04:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 20 12:04:25 2016
Received: from localhost ([127.0.0.1]:58388 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bmNWv-0004ZJ-Q7
	for submit <at> debbugs.gnu.org; Tue, 20 Sep 2016 12:04:25 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60288)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dbitouze@HIDDEN>) id 1bmNQy-0004P0-Da
 for submit <at> debbugs.gnu.org; Tue, 20 Sep 2016 11:58:12 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <dbitouze@HIDDEN>) id 1bmNQr-00014q-Hp
 for submit <at> debbugs.gnu.org; Tue, 20 Sep 2016 11:58:07 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:44228)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <dbitouze@HIDDEN>) id 1bmNQr-00014j-Eo
 for submit <at> debbugs.gnu.org; Tue, 20 Sep 2016 11:58:05 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:51190)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <dbitouze@HIDDEN>) id 1bmNQp-0003JB-JO
 for bug-auctex@HIDDEN; Tue, 20 Sep 2016 11:58:05 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <dbitouze@HIDDEN>) id 1bmNQl-000127-Do
 for bug-auctex@HIDDEN; Tue, 20 Sep 2016 11:58:02 -0400
Received: from mail-3y.bbox.fr ([194.158.98.45]:33138)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <dbitouze@HIDDEN>) id 1bmNQl-00011C-2U
 for bug-auctex@HIDDEN; Tue, 20 Sep 2016 11:57:59 -0400
Received: from drums.chezmoi.fr (128-79-224-164.hfc.dyn.abo.bbox.fr
 [128.79.224.164]) by mail-3y.bbox.fr (Postfix) with ESMTP id C6D17C2
 for <bug-auctex@HIDDEN>; Tue, 20 Sep 2016 17:57:53 +0200 (CEST)
From: dbitouze@HIDDEN (=?utf-8?Q?Bitouz=C3=A9?= Denis)
To: bug-auctex@HIDDEN
Subject: 11.89.5; Wrong indentation in tabular environment
Date: Tue, 20 Sep 2016 17:57:29 +0200
Message-ID: <m3k2e6pnrq.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Solaris 10
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Tue, 20 Sep 2016 12:04:19 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)



Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.

Be sure to consult the FAQ section in the manual before submitting
a bug report.  In addition check if the bug is reproducable with an
up-to-date version of AUCTeX.  So please upgrade to the version
available from http://www.gnu.org/software/auctex/ if your
installation is older than the one available from the web site.

If the bug is triggered by a specific (La)TeX file, you should try
to produce a minimal sample file showing the problem and include it
in your report.

Your report will be posted for the auctex package at the GNU bug
tracker.  Visit http://debbugs.gnu.org/cgi/pkgreport.cgi?pkg=3Dauctex
to browse existing AUCTeX bugs.
------------------------------------------------------------------------

Consider the following 'my-init.el' file:
--8<---------------cut here---------------start------------->8---
(require 'package)
(setq package-load-list
      '(
	(auctex "11.89.5")
	)
      )
(package-initialize)
--8<---------------cut here---------------end--------------->8---

and the following 'test.tex' file:

--8<---------------cut here---------------start------------->8---
\documentclass{article}
\begin{document}
\begin{tabular}{l}
  \textbf{%
  Foo%
  }
\end{tabular}
\end{document}
--8<---------------cut here---------------end--------------->8---

Open them with:

--8<---------------cut here---------------start------------->8---
emacs -q my-init.el test.tex &
--8<---------------cut here---------------end--------------->8---

The '.tex' file is open with default emacs' TeX mode and its line "Foo"
can be indented as expected with TAB:

  =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80
  =E2=94=82   \textbf{%
  =E2=94=82     Foo%
  =E2=94=82   }
  =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80

Then, go to 'my-init.el' buffer and load AUCTeX with 'M-x
eval-buffer'. Now, go to 'test.tex' buffer and load "AUCTeX mode" on it
with 'M-x latex-mode': the "Foo" line is wrongly indented when TAB is
used on it:

  =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80
  =E2=94=82   \textbf{%
  =E2=94=82   Foo%
  =E2=94=82   }
  =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80

This bug doesn't arise if the 'tabular' environment is replaced by
another one, e.g. 'center'.

Emacs  : GNU Emacs 25.1.1 (i686-pc-linux-gnu, GTK+ Version 3.14.8, cairo ve=
rsion 1.14.0)
 of 2016-09-17
Package: 11.89.5

current state:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
(setq
 AUCTeX-date "2016-09-01"
 window-system 'x
 LaTeX-version "2e"
 TeX-style-path '("~/.emacs.d/auctex"
		  "/home/bitouze/.emacs.d/elpa/auctex-11.89.5/style"
		  "/home/bitouze/.emacs.d/auctex/auto"
		  "/home/bitouze/.emacs.d/auctex/style" "auto" "style")
 TeX-auto-save nil
 TeX-parse-self nil
 TeX-master t
 TeX-command-list '(("TeX"
		     "%(PDF)%(tex) %(file-line-error) %(extraopts) %`%S%(PDFout)%(mode)%'=
 %t"
		     TeX-run-TeX nil
		     (plain-tex-mode ams-tex-mode texinfo-mode) :help
		     "Run plain TeX")
		    ("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil
		     (latex-mode doctex-mode) :help "Run LaTeX")
		    ("Makeinfo" "makeinfo %(extraopts) %t" TeX-run-compile nil
		     (texinfo-mode) :help "Run Makeinfo with Info output")
		    ("Makeinfo HTML" "makeinfo %(extraopts) --html %t"
		     TeX-run-compile nil (texinfo-mode) :help
		     "Run Makeinfo with HTML output")
		    ("AmSTeX" "amstex %(PDFout) %(extraopts) %`%S%(mode)%' %t"
		     TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX")
		    ("ConTeXt"
		     "%(cntxcom) --once --texutil %(extraopts) %(execopts)%t"
		     TeX-run-TeX nil (context-mode) :help "Run ConTeXt once")
		    ("ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t"
		     TeX-run-TeX nil (context-mode) :help
		     "Run ConTeXt until completion")
		    ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help
		     "Run BibTeX")
		    ("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber")
		    ("View" "%V" TeX-run-discard-or-function t t :help
		     "Run Viewer")
		    ("Print" "%p" TeX-run-command t t :help "Print the file")
		    ("Queue" "%q" TeX-run-background nil t :help
		     "View the printer queue" :visible TeX-queue-command)
		    ("File" "%(o?)dvips %d -o %f " TeX-run-dvips t t :help
		     "Generate PostScript file")
		    ("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil t :help
		     "Convert DVI file to PostScript")
		    ("Dvipdfmx" "dvipdfmx %d" TeX-run-dvipdfmx nil t :help
		     "Convert DVI file to PDF with dvipdfmx")
		    ("Ps2pdf" "ps2pdf %f" TeX-run-ps2pdf nil t :help
		     "Convert PostScript file to PDF")
		    ("Index" "makeindex %s" TeX-run-index nil t :help
		     "Run makeindex to create index file")
		    ("Xindy" "texindy %s" TeX-run-command nil t :help
		     "Run xindy to create index file")
		    ("Check" "lacheck %s" TeX-run-compile nil (latex-mode)
		     :help "Check LaTeX file for correctness")
		    ("ChkTeX" "chktex -v6 %s" TeX-run-compile nil (latex-mode)
		     :help "Check LaTeX file for common mistakes")
		    ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil
		     t :help "Spell-check the document")
		    ("Clean" "TeX-clean" TeX-run-function nil t :help
		     "Delete generated intermediate files")
		    ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help
		     "Delete generated intermediate and output files")
		    ("Other" "" TeX-run-command t t :help
		     "Run an arbitrary command")
		    )
 )
--=20
Denis




Acknowledgement sent to dbitouze@HIDDEN (Bitouzé Denis):
New bug report received and forwarded. Copy sent to bug-auctex@HIDDEN. Full text available.
Report forwarded to bug-auctex@HIDDEN:
bug#24481; Package auctex. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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