GNU bug report logs -
#20359
Indentation bug in newest version of AUCTeX
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 20359 in the body.
You can then email your comments to 20359 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-auctex <at> gnu.org
:
bug#20359
; Package
auctex
.
(Fri, 17 Apr 2015 15:32:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Peter Harpending <peter <at> harpending.org>
:
New bug report received and forwarded. Copy sent to
bug-auctex <at> gnu.org
.
(Fri, 17 Apr 2015 15:32:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hello there,
I have the newest version of AUCTeX available on Melpa/Elpa/online,
which is 11.88.4. I just updated it yesterday; I'm not sure what version
I had before.
Before, running fill-paragraph on my various paragraphs would indent my
file like so: http://ix.io/hWy
Now, it's doing this: http://ix.io/hWz. Notice the lack of indentation
following the \item, and such. I haven't changed any of the LaTeX
variables. My LaTeX-indent-level is 2.
Thank you,
Peter Harpending
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCgAGBQJVMSNcAAoJEMl2w1bBwRCrw8EP/RUI/Xrmc+xd1fW9yxvtd79D
DaYT0/9eQZ+8oPy2g908R/wsGYt1Dzfdn4xS8Yx5EGcKShrRF4CXWl+2WKvRdiSf
h6Zrdf1eQ0W+YGEFQsGBJRs5I6dlY51BzUxPF1eMD6YDO9eC+fr4W8GyUW9kjMjS
DlDpzsBPp+Z72MYQZM0B2lVChhCg5xJvSZJech93fIv5eUClPv2ENI+ykM/NMoXn
5wF+uxWO22LxvSIL4niT5JGq6zfzQ6++LBqsIOA1zSyGXoK5zB7fvDY9nUtB4gRD
jjIM91mrDDfP0zgwdnPbLd9RD62TgIpq5UD0XbodVBNjWum0Q52nOieH6sLkuerD
br7a6xs/mER1lY6Ck1WbDmZgvTa5XrQrVnabf5qUYkasJjqGgu83YymK2OzUThjP
Sox8/c0FBkW407EoPOMnt1+J9OOBKvKkt6GLbbT+I8X+OxxxSQynQfqDFlgwOYAI
cXmIsVJEscWkyL+2uJihoh7PzjKjyNvjq5JoefRxlD7evSZ5DnCuLBtUpgEwiaFR
JrfePBG/D0qMv8l4/Cu/TNXLJRQLTcaEwQJWZBNFg5ev+ZSIEzVecL0PCGdXhSE5
aWN+hGt8TSfHhQBCqCD7JPhetLHcq5idxfaIkJAaCtNwAD3AxqlD5UUNBERZVwFs
H+KquYmqG+wmkvAWFSwq
=J7ce
-----END PGP SIGNATURE-----
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#20359
; Package
auctex
.
(Fri, 17 Apr 2015 16:41:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 20359 <at> debbugs.gnu.org (full text, mbox):
Hi Peter,
2015-04-17 17:14 GMT+02:00 Peter Harpending <peter <at> harpending.org>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> Hello there,
>
> I have the newest version of AUCTeX available on Melpa/Elpa/online,
> which is 11.88.4. I just updated it yesterday; I'm not sure what version
> I had before.
>
> Before, running fill-paragraph on my various paragraphs would indent my
> file like so: http://ix.io/hWy
>
> Now, it's doing this: http://ix.io/hWz. Notice the lack of indentation
> following the \item, and such. I haven't changed any of the LaTeX
> variables. My LaTeX-indent-level is 2.
>
> Thank you,
>
> Peter Harpending
How do you fill your paragraphs? Do you select all of them at once
and then issue M-q or do you do it one by one? I can reproduce your
problem if I try to fill all the paragraphs together, but works as
expected when I fill just one paragraph (which is what I usually do).
I can reproduce this behavior also in AUCTeX 11.87, so it's not even
so new.
Bye,
Mosè
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#20359
; Package
auctex
.
(Sun, 19 Apr 2015 02:46:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 20359 <at> debbugs.gnu.org (full text, mbox):
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Another example:
Before this bug: http://ix.io/hYH
After this bug: http://ix.io/hYI
I should have mentioned, I'm on GNU Emacs 24.4.1 on Arch Linux.
> How do you fill your paragraphs? Do you select all of them at once
> and then issue M-q or do you do it one by one?
I discovered this by running M-q on individual paragraphs, but I observe
the same behavior with LaTeX-fill-buffer.
* I get similar behavior after uninstalling AUCTeX. The same issue
occurs with \item's, but Emacs is no longer unindenting in other
environments.
* I get the same behavior after installing AUCTeX 11.88 manually.
* I get the same behavior after installing AUCTeX 11.88 through the
Arch Linux package system.
* I get the same behavior after installing AUCTeX 11.87 manually.
* I get the same behavior after installing AUCTeX 11.86 manually.
I would be inclined to think that this is an Emacs bug, but I haven't
updated Emacs since January 27, and this bug showed up yesterday (April
17).
However:
I know this is not a problem with GNU Emacs, because I last updated that
in January, and this problem showed up yesterday after I updated my ELPA
packages.
Peter Harpending
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCgAGBQJVMxXXAAoJEMl2w1bBwRCrHhQQAKs+SvvfYKyCe6R1lk3ALAVm
muY0zawM3/lZ4Tr5DejuFLC4HBDudWXGNqkFGXoR9Pc5tgTxscXKssODrfGBN4gn
knv6R/Y00xybH6wmIh+lGvy5X0G2r66tZKRjQ2IyjPtm1g/872O9dK5/Wy9ORirg
JOdjZ/n52x+jrK0HeehbE940OtKuQX6lTgvR29s54OjePPMjX9LiL3RKPyzH7NTs
HnaYR4MgmDOgnpckQ7CD9dPrBvQyY55KYA03oiIko5dGFp0eFIkgaJEoljfn++02
VIgN/v/4+uhWMBJmwiArPhBwRf4UKqquQHA/tbcdjcCiuLduu3JvEQndL2+0QxkB
9+uXS2o187zccG6l5V9GJmdELmlU9VXdGokIK+oZwx37jFTqaQU79gyvIk9YETwd
UOY6+Wiusep0sNRRGaHgivF5vbxa3eDDfuG3JcAccb96+2cwBCQAxEqDKBVhTLpY
gVWJ32GeK0kMSVhbaTnGiGrDaZaRpAz/pxkQ4/260R7aKapImB5CSe1yVr79UFch
IDeNB5B37eXmVcy31qtF1Ow+3YBv1DlS2bQjqCNVcBMiu+nJTOV55Fa60Mtwp88+
AA+9mbLItbRRdPhbwWy4wdb6FBHmq2iGphtVSqADOeL+lRyrayhn74Bp/Wjpmhi6
LPKXdm6/ZwiRGLWOD9nb
=dNR1
-----END PGP SIGNATURE-----
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#20359
; Package
auctex
.
(Fri, 24 Apr 2015 01:16:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 20359 <at> debbugs.gnu.org (full text, mbox):
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
I did some more testing.
Input
\begin{itemize}
\item If you tap your finger against a bridge at exactly the right
frequency, the bridge will collapse. (Resonance)
\item The formula used to calculate the interest rate on your mortgage
is actually just a fancy form of the ratios of angles in a
triangle. (Euler's formula)
\end{itemize}
AUCTeX
\begin{itemize}
\item If you tap your finger against a bridge at exactly the right
frequency, the bridge will collapse. (Resonance)
\item The formula used to calculate the interest rate on your mortgage
is actually just a fancy form of the ratios of angles in a
triangle. (Euler's formula)
\end{itemize}
plain latex-mode
\begin{itemize}
\item If you tap your finger against a bridge at exactly the right
frequency, the bridge will collapse. (Resonance)
\item The formula used to calculate the interest rate on your mortgage
is actually just a fancy form of the ratios of angles in a
triangle. (Euler's formula)
\end{itemize}
Input
\begin{enumerate}
\item First item
\begin{itemize}
\item If you tap your finger against a bridge at exactly the right
frequency, the bridge will collapse. (Resonance)
\item The formula used to calculate the interest rate on your mortgage
is actually just a fancy form of the ratios of angles in a
triangle. (Euler's formula)
\end{itemize}
\end{enumerate}
AUCTeX
\begin{enumerate}
\item First item
\begin{itemize}
\item If you tap your finger against a bridge at exactly the right
frequency, the bridge will collapse. (Resonance)
\item The formula used to calculate the interest rate on your mortgage
is actually just a fancy form of the ratios of angles in a
triangle. (Euler's formula)
\end{itemize}
\end{enumerate}
plain latex-mode
\begin{enumerate}
\item First item
\begin{itemize}
\item If you tap your finger against a bridge at exactly the right
frequency, the bridge will collapse. (Resonance)
\item The formula used to calculate the interest rate on your mortgage
is actually just a fancy form of the ratios of angles in a
triangle. (Euler's formula)
\end{itemize}
\end{enumerate}
The value of `fill-paragraph-function` is `LaTeX-fill-paragraph`, which
is an AUCTeX function. I'm not an expert on the code base, but, I think
LaTeX-fill-paragraph is forgetting to do its indentation job.
Peter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCgAGBQJVOZgZAAoJEMl2w1bBwRCrIXUQAN0s1tcth4M3WOXvWWx3G6eQ
uXZ8nulBgJxTKMRiSXlw9O6X2DHQiBke4qV6WQeR7g7x2cDDKabW9PxsGr7pOh2n
FcMCoNHpjQqS39KKkY2LHB1DOBpnwltHpvY1qkvpzO+bs+ZA1LlQNPQinp6pJRfT
nvf3BT5xyDrgSzFFdK0mDWktS1crN+h8zw/o5Ce47l4opN+g45HIFvEFZxTPwP8G
cHeRljvsLWAUQpzURjF/3ul+q9+DAMAzx0qd5MhMwuGUwr43GW0iKWpVQYg9pEH+
EyTb9LoOVtNcoab/Gj9WZf+uh4Aosf5XWQWrMAcFkvAJaLZrDXUr669vqE4TL0qR
WxJSDYHem4vhRmJxoqAKG45fXkwhtiucfz/Rz1D7oHnccN9imw8fvzsKcQwc7z02
OYXY4hL40NzgDOq6cH1rXGguMc3kMSrBSWVnucNxKuGFi8mcNR94mJ59ASV97ri1
P6xLr6cXQf/6/Wq2uOPJ1aNSrsi7SGHMq1KF/y5vHwxsnt8clG1DrKK8cB5aImFE
D2fEOfeDWoE4F6e3Fve9rILAXcBlO6MdJk3UjErIAUc179pXWQCyzaaQF+O6sIZp
BVDNZ6f7XfvZxKX7O0W07DRa38ZVjA4c2S9uRVeneK5vo8oQvD9WEHDgzGMF5Qgq
z3F4lc3Qdx/hmrpseQXq
=y0Vo
-----END PGP SIGNATURE-----
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#20359
; Package
auctex
.
(Fri, 24 Apr 2015 06:31:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 20359 <at> debbugs.gnu.org (full text, mbox):
Peter Harpending <peter <at> harpending.org> writes:
> AUCTeX
>
> \begin{itemize}
> \item If you tap your finger against a bridge at exactly the right
> frequency, the bridge will collapse. (Resonance)
>
> \item The formula used to calculate the interest rate on your mortgage
> is actually just a fancy form of the ratios of angles in a
> triangle. (Euler's formula)
> \end{itemize}
What happens if you call Emacs with
emacs -debug-init
? This kind of not-working features is what I remember seeing for
incomplete loads.
--
David Kastrup
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#20359
; Package
auctex
.
(Fri, 24 Apr 2015 08:49:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 20359 <at> debbugs.gnu.org (full text, mbox):
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
> What happens if you call Emacs with
>
> emacs -debug-init
>
> ? This kind of not-working features is what I remember seeing for
> incomplete loads.
I assume you mean "emacs --debug-init"?
Nothing of pops up. Emacs does its thing, and eventually the *scratch*
buffer materializes.
https://a.pomf.se/lfvbxe.png
Peter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJVOgO6AAoJEMl2w1bBwRCrxl4QAIt3Hd85BeOfII+atynES0iX
nZbnUMgxHFsiUOH5vo6lEBCXGecaXtoZPahzQ2XsUgNGq+sCdC3vc04Wu84lW6Db
squrkhCfyJTgjNnuto7PjEouobze3wS/c1pqU7+Z7S+DjfmUDeJpfe/w2DtyBJI1
raRb6hf+KdqSUBbfKGhs7gfRebiF7AaQeraCnpaU7BL4nruIhMJGeumeYPsj28d0
Q07QQh3J6ii5+KDEE7+jb+/UB01YsaNWMxcFtAd9wa7HKEU/yMkiWeIxpTDXKiKL
p6n3XXp21HOobeuUOz/6VoSt7Cu2CKRWxBFJSCnkOdssliveT06qyybd6VMwCAU+
TAbRzUMNDaEyl9U4nYYITGHQwoyt5N971UOWucLkUTQ4hzsGyx03idJZ9uHuCQV7
ZRMv3TlPomURCFafx2zmTZylVKKLIOiQNdUyWz0mLIneV0L+dXuJ31PonHjiIlR4
89W6X/HWdeb4crwBmu2qz8PqRSwJACe00YqNlAg/E+D+ZERPagP7xapACvXWNq3a
UfR/ZcPQpZoBZHgQZuNSCa0yzMho56hGkHLD+GSyUCdbZoF+boQ14z7Ors9uRemi
WRogzmu7wOKwMnmzXIYPY2XulB/TSBGK1If9s6/paX2N0PWbIyDesHVybtg9EySX
wHhwgT1KqxZdT73H6e51
=gNoV
-----END PGP SIGNATURE-----
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#20359
; Package
auctex
.
(Fri, 24 Apr 2015 18:59:01 GMT)
Full text and
rfc822 format available.
Message #23 received at 20359 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Peter Harpending <peter <at> harpending.org> writes:
Hi Peter,
> I did some more testing.
I've tried to reproduce the issue with Emacs 24.5.1 and AUCTeX 11.88.4
From ELPA but I failed.
> Input
>
> \begin{itemize}
> \item If you tap your finger against a bridge at exactly the right
> frequency, the bridge will collapse. (Resonance)
>
> \item The formula used to calculate the interest rate on your mortgage
> is actually just a fancy form of the ratios of angles in a
> triangle. (Euler's formula)
> \end{itemize}
>
> AUCTeX
>
> \begin{itemize}
> \item If you tap your finger against a bridge at exactly the right
> frequency, the bridge will collapse. (Resonance)
>
> \item The formula used to calculate the interest rate on your mortgage
> is actually just a fancy form of the ratios of angles in a
> triangle. (Euler's formula)
> \end{itemize}
This is what I get.
\begin{itemize}
\item If you tap your finger against a bridge at exactly the right frequency,
the bridge will collapse. (Resonance)
\item The formula used to calculate the interest rate on your mortgage is
actually just a fancy form of the ratios of angles in a triangle. (Euler's
formula)
\end{itemize}
> Input
>
> \begin{enumerate}
> \item First item
> \begin{itemize}
> \item If you tap your finger against a bridge at exactly the right
> frequency, the bridge will collapse. (Resonance)
>
> \item The formula used to calculate the interest rate on your mortgage
> is actually just a fancy form of the ratios of angles in a
> triangle. (Euler's formula)
> \end{itemize}
> \end{enumerate}
>
> AUCTeX
>
> \begin{enumerate}
> \item First item
> \begin{itemize}
> \item If you tap your finger against a bridge at exactly the right
> frequency, the bridge will collapse. (Resonance)
>
> \item The formula used to calculate the interest rate on your mortgage
> is actually just a fancy form of the ratios of angles in a
> triangle. (Euler's formula)
> \end{itemize}
> \end{enumerate}
And here I get this.
\begin{enumerate}
\item First item
\begin{itemize}
\item If you tap your finger against a bridge at exactly the right frequency,
the bridge will collapse. (Resonance)
\item The formula used to calculate the interest rate on your mortgage is
actually just a fancy form of the ratios of angles in a triangle. (Euler's
formula)
\end{itemize}
\end{enumerate}
> The value of `fill-paragraph-function` is `LaTeX-fill-paragraph`,
Here, too.
> which is an AUCTeX function.
Yes.
> I'm not an expert on the code base, but, I think LaTeX-fill-paragraph
> is forgetting to do its indentation job.
Did you try without your AUCTeX configuration? The filling you get
looks like you have added an entry '("enumerate" current-indentation) to
`LaTeX-indent-environment-list'. It's possible that you had a broken
configuration before that didn't cause the issue because of an AUCTeX
bug which got fixed lately.
Bye,
Tassilo
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#20359
; Package
auctex
.
(Fri, 24 Apr 2015 22:24:02 GMT)
Full text and
rfc822 format available.
Message #26 received at 20359 <at> debbugs.gnu.org (full text, mbox):
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
> Did you try without your AUCTeX configuration? The filling you get
> looks like you have added an entry '("enumerate" current-indentation) to
> `LaTeX-indent-environment-list'. It's possible that you had a broken
> configuration before that didn't cause the issue because of an AUCTeX
> bug which got fixed lately.
I commented out my LaTeX-mode-hook, and I got the same, undesired
result.
However, when I ran "emacs -q", not loading my ~/.emacs file, I got the
desired result.
So, it is apparently a problem with my emacs configuration.
My configuration can be found here:
https://github.com/pharpend/dotfiles
if anyone wants to help me find the problem
Peter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCgAGBQJVOsFdAAoJEMl2w1bBwRCrPzoQALKANRTQxRznaHXbcQ7rzAgG
NFSTQCCmuHqsNd2Kj+NZz2CZYflWk7YzIONWKb97vhb4803lX+X9W96e4Mcf2pUJ
3ToPb6LtI7i5/DykASnkE9U+pU9z/vu3cT+g5a3zDspq/RfiJYN5m1JlZnJkxcCS
VjLGHDDiHgRY70iLaOsI/717CfxVTc/3jVzCxU7zKIGmyGUQWmPHJkm0MtSv3CUT
Bc3ZktmR5WmSGppfSF7Eg1R+eeISxebUcduNYfTDEM/P2lrSincnumeEuM1cl3Rz
0zt5G3jR403E2kAYGKDDC31plmlblNfwuik0cLPHRc7KfxpYxTeGjWmm6ShlT2WO
ISQMZsKKyxA4vZV9j1NzGfBg0AF8ywVtj6/9Wfy1bH5RehQM8eOtQ/azUxTGZoYA
R/cCzixmjyKe7oy7kIX7BCQRxgBaH5dgRKSvuKkI0LH7HGxul3GdHg5PByCvRExY
fhUrcUmGbw9L6Dn+tAptV+b8tf2UYYEZyA7FUclw4Ovoxu3nF4YeTAyQgRExu1J/
hIDMXSuNzVLBeuT8i2AHSL6mI4dOrNJOzrajQvB1/KjuKPSzSFguZ09Qbaa3GInT
WTgiHSVMuOrgbUmOo0scSt+zkfFtRWVMs8cCLQW37/Y9sVA2MoYr8BAFG4vFsokk
eKcmx0v1LQN7KoIFgczn
=FiX2
-----END PGP SIGNATURE-----
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#20359
; Package
auctex
.
(Sat, 25 Apr 2015 06:38:02 GMT)
Full text and
rfc822 format available.
Message #29 received at 20359 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Peter Harpending <peter <at> harpending.org> writes:
>> Did you try without your AUCTeX configuration? The filling you get
>> looks like you have added an entry '("enumerate" current-indentation) to
>> `LaTeX-indent-environment-list'. It's possible that you had a broken
>> configuration before that didn't cause the issue because of an AUCTeX
>> bug which got fixed lately.
>
> I commented out my LaTeX-mode-hook, and I got the same, undesired
> result.
>
> However, when I ran "emacs -q", not loading my ~/.emacs file, I got
> the desired result.
>
> So, it is apparently a problem with my emacs configuration.
>
> My configuration can be found here:
>
> https://github.com/pharpend/dotfiles
Oh, well, that's a huge config distributed along dozens of files. By
searching for "TeX" or "LaTeX" I only found out that you're using
smartparens-latex...
Could you please point us to the actual file where you put your AUCTeX
configs, or are they all splattered across files, or do you really have
none as the search seems to suggest?
Bye,
Tassilo
[signature.asc (application/pgp-signature, inline)]
Reply sent
to
Tassilo Horn <tsdh <at> gnu.org>
:
You have taken responsibility.
(Sat, 25 Apr 2015 18:23:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
Peter Harpending <peter <at> harpending.org>
:
bug acknowledged by developer.
(Sat, 25 Apr 2015 18:23:03 GMT)
Full text and
rfc822 format available.
Message #34 received at 20359-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Closing because Peter found the problem, and it hasn't been an AUCTeX
one.
[signature.asc (application/pgp-signature, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 24 May 2015 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 10 years and 89 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.