GNU bug report logs - #28517
25.3; Bad indentation in LaTeX-mode with unmatched square brackets.

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: emacs; Reported by: Harvey Stein <hjstein@HIDDEN>; Keywords: confirmed; dated Tue, 19 Sep 2017 17:52:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
bug Marked as found in versions 28.0.50. Request was from Stefan Kangas <stefan@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Added tag(s) confirmed. Request was from Stefan Kangas <stefan@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 19 Sep 2017 17:51:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 19 13:51:19 2017
Received: from localhost ([127.0.0.1]:48577 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1duMg2-00005D-MI
	for submit <at> debbugs.gnu.org; Tue, 19 Sep 2017 13:51:19 -0400
Received: from eggs.gnu.org ([208.118.235.92]:45975)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <hjstein@HIDDEN>) id 1duMAF-0007lb-Ht
 for submit <at> debbugs.gnu.org; Tue, 19 Sep 2017 13:18:28 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <hjstein@HIDDEN>) id 1duMA3-0003mw-76
 for submit <at> debbugs.gnu.org; Tue, 19 Sep 2017 13:18:22 -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,
 HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:58902)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <hjstein@HIDDEN>) id 1duMA3-0003mh-1h
 for submit <at> debbugs.gnu.org; Tue, 19 Sep 2017 13:18:15 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:36750)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <hjstein@HIDDEN>) id 1duM9z-0002dL-LV
 for bug-gnu-emacs@HIDDEN; Tue, 19 Sep 2017 13:18:14 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <hjstein@HIDDEN>) id 1duM9w-0003gG-Qv
 for bug-gnu-emacs@HIDDEN; Tue, 19 Sep 2017 13:18:11 -0400
Received: from mail-qk0-x22a.google.com ([2607:f8b0:400d:c09::22a]:46494)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <hjstein@HIDDEN>) id 1duM9w-0003ea-JD
 for bug-gnu-emacs@HIDDEN; Tue, 19 Sep 2017 13:18:08 -0400
Received: by mail-qk0-x22a.google.com with SMTP id z143so311206qkb.3
 for <bug-gnu-emacs@HIDDEN>; Tue, 19 Sep 2017 10:18:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:from:date:message-id:subject:to;
 bh=kz8a2yv/ACsLRjrjeyUEZDcejY5+g+0XQzykp04BZy8=;
 b=WMY0+9MLxyFyH/dG9vfx8Zx6FRhgBkq4F6mahYdLvffpdXYi+t9YP6cho7hoY4MAHj
 iIlqkb6nZSFE9ZvEXFXsKUGxOxgTuvvUmgDhFBl9tSKG8s5DNLwKvTJKdIy9OHFEDafP
 AbPm60qtTCAGYGNIOhdybtu7fO6Gmc6Fsh7Bdb1NSkkrE/KYZbfGVv7uWCMNXz89uj9b
 IXUenEiy67MpAXQDtULwl6s3PoEX0wKmCnPKtAzYicTjFo9Gtv3fwnjQYP7Pbs6uwZGp
 i9eQmzMerXHThiSqJwsqjks0xhGR8E2QiTDqX1oFXkLi9ztzxUm7cPIDFRllaeO5vFt/
 N/EA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=kz8a2yv/ACsLRjrjeyUEZDcejY5+g+0XQzykp04BZy8=;
 b=befYUPbCqjasebpFCgdjQk8yf0qycmpC5+tZ/t68KdxEwA77YRMyLGfcIU5Fteo7De
 xNwn0apzOsqwFAte/pc6SlV6qb8BTPI5ChhWOVeHtTPN88jo1aqX1meiM89t0gXh8ubq
 iCPwwuWO9IYnS2u96GPFTshXgrRVBKZXPP+r4OuQTIt64lMAyaMcoOCaz1ouIdYerAVg
 LOnrjEY2v79m+ZWNvBelEwZJmdO7wAU2abtg0CENLZffx7S+2E9rEz1vu0HKxkLC3IHj
 yeDn7o2ioJGg13T0hkNtoumGXEwQyxTW+mCGrQ3VEzlWOq/G6VN8ozJ8EAhRU+vtoQ5P
 NZwg==
X-Gm-Message-State: AHPjjUhp9igdCsrnQOiMYnHeeWGmlRxSnmAvLUkbPbjNLAdengjAi+mn
 6g6yVu/Y23rslgaLavssDDpkfbzxmwDZSZGpax+4hQ==
X-Google-Smtp-Source: AOwi7QCIhW4TY2zrlMeuPYFqwh9HNN1/i+s9AXk+0R3yX1gbrE588jPb3Q8OYTU620Jzcs8cmYOnC6zKZNDw+UuXylc=
X-Received: by 10.55.167.144 with SMTP id q138mr3101048qke.74.1505841486346;
 Tue, 19 Sep 2017 10:18:06 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.12.128.100 with HTTP; Tue, 19 Sep 2017 10:18:05 -0700 (PDT)
From: Harvey Stein <hjstein@HIDDEN>
Date: Tue, 19 Sep 2017 13:18:05 -0400
Message-ID: <CAP0YnMtmdd6yEqj6N_2mSz2j54TGZ_FpzcCYFtcXrLZ5RFzH5w@HIDDEN>
Subject: 25.3; Bad indentation in LaTeX-mode with unmatched square brackets.
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/alternative; boundary="94eb2c06c862e1c08b05598e0a84"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Tue, 19 Sep 2017 13:51:18 -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: -4.0 (----)

--94eb2c06c862e1c08b05598e0a84
Content-Type: text/plain; charset="UTF-8"

This bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at debbugs.gnu.org.  Please check that
the From: line contains a valid email address.  After a delay of up
to one day, you should receive an acknowledgment at that address.

Please write in English if possible, as the Emacs maintainers
usually do not have translators for other languages.

Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug.  If you can, give a recipe
starting from 'emacs -Q':

Start emacs.

Edit a new LaTeX file, like foo.tex

When you type the following, you get the indentation as shown:

This is an example of bad indentation in LaTeX-mode when half open
intervals are used in mathematics, such as $[-3, 5)$.

  LaTeX-mode insists on indenting everything after the above text.

  It doesn't stop indenting until seeing a closing square bracket, or
  until an unindented line is forcibly added.

  % Commenting out a closing bracket doesn't help]

  Hitting return on an unindented line causes it to get indented.


If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    'bt full' and 'xbacktrace'.
For information about debugging Emacs, please read the file
/usr/share/emacs/25.3/etc/DEBUG.


In GNU Emacs 25.3.1 (x86_64-unknown-cygwin)
 of 2017-09-11 built on desktop-new
Configured using:
 'configure
 --srcdir=/home/kbrown/src/cygemacs/emacs-25.3-1.x86_64/src/emacs-25.3
 --prefix=/usr --exec-prefix=/usr --localstatedir=/var --sysconfdir=/etc
 --docdir=/usr/share/doc/emacs --htmldir=/usr/share/doc/emacs/html -C
 --with-x=no 'CFLAGS=-ggdb -O2 -pipe -Wimplicit-function-declaration
 -fdebug-prefix-map=/home/kbrown/src/cygemacs/emacs-25.3-1.x86_64/build=/usr/sr\
c/debug/emacs-25.3-1
 -fdebug-prefix-map=/home/kbrown/src/cygemacs/emacs-25.3-1.x86_64/src/emacs-25.\
3=/usr/src/debug/emacs-25.3-1'
 CPPFLAGS= LDFLAGS='

Configured features:
JPEG SOUND DBUS NOTIFY ACL GNUTLS LIBXML2 ZLIB

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: LaTeX

Minor modes in effect:
  shell-dirtrack-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t


Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Mark set
C-x C-g is undefined
foo.tex has auto save data; consider M-x recover-this-file
(New file)
Mark set
Auto-saving...done
completing-read-default: Command attempted to use minibuffer while in
minibuffe\
r
No docstring slot for tex-start-shell

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message dired format-spec rfc822 mml
mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu
cl-loaddefs pcase cl-lib mail-prsvr mail-utils tex-mode compile tool-bar
shell pcomplete comint regexp-opt ansi-color ring latexenc term/xterm
xterm time-date mule-util tooltip eldoc electric uniquify ediff-hook
vc-hooks lisp-float-type tabulated-list newcomment elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow timer select mouse jit-lock
font-lock syntax facemenu font-core frame cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese charscript case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote dbusbind gfilenotify multi-tty
make-network-process emacs)

Memory information:
((conses 16 95831 4033)
 (symbols 48 19729 0)
 (miscs 40 50 110)
 (strings 32 17693 5402)
 (string-bytes 1 515296)
 (vectors 16 11041)
 (vector-slots 8 391743 6251)
 (floats 8 156 123)
 (intervals 56 223 0)
 (buffers 976 20))

--94eb2c06c862e1c08b05598e0a84
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">This bug report will be sent to the Bug-GNU-Emacs mailing =
list<br>and the GNU bug tracker at <a href=3D"http://debbugs.gnu.org">debbu=
gs.gnu.org</a>.=C2=A0 Please check that<br>the From: line contains a valid =
email address.=C2=A0 After a delay of up<br>to one day, you should receive =
an acknowledgment at that address.<br><br>Please write in English if possib=
le, as the Emacs maintainers<br>usually do not have translators for other l=
anguages.<br><br>Please describe exactly what actions triggered the bug, an=
d<br>the precise symptoms of the bug.=C2=A0 If you can, give a recipe<br>st=
arting from &#39;emacs -Q&#39;:<br><br>Start emacs.<br><br>Edit a new LaTeX=
 file, like foo.tex<br><br>When you type the following, you get the indenta=
tion as shown:<br><br>This is an example of bad indentation in LaTeX-mode w=
hen half open<br>intervals are used in mathematics, such as $[-3, 5)$.<br><=
br>=C2=A0 LaTeX-mode insists on indenting everything after the above text.<=
br><br>=C2=A0 It doesn&#39;t stop indenting until seeing a closing square b=
racket, or<br>=C2=A0 until an unindented line is forcibly added.<br><br>=C2=
=A0 % Commenting out a closing bracket doesn&#39;t help]<br><br>=C2=A0 Hitt=
ing return on an unindented line causes it to get indented.<br><br><br>If E=
macs crashed, and you have the Emacs process in the gdb debugger,<br>please=
 include the output from the following gdb commands:<br>=C2=A0=C2=A0=C2=A0 =
&#39;bt full&#39; and &#39;xbacktrace&#39;.<br>For information about debugg=
ing Emacs, please read the file<br>/usr/share/emacs/25.3/etc/DEBUG.<br><br>=
<br>In GNU Emacs 25.3.1 (x86_64-unknown-cygwin)<br>=C2=A0of 2017-09-11 buil=
t on desktop-new<br>Configured using:<br>=C2=A0&#39;configure<br>=C2=A0--sr=
cdir=3D/home/kbrown/src/cygemacs/emacs-25.3-1.x86_64/src/emacs-25.3<br>=C2=
=A0--prefix=3D/usr --exec-prefix=3D/usr --localstatedir=3D/var --sysconfdir=
=3D/etc<br>=C2=A0--docdir=3D/usr/share/doc/emacs --htmldir=3D/usr/share/doc=
/emacs/html -C<br>=C2=A0--with-x=3Dno &#39;CFLAGS=3D-ggdb -O2 -pipe -Wimpli=
cit-function-declaration<br>=C2=A0-fdebug-prefix-map=3D/home/kbrown/src/cyg=
emacs/emacs-25.3-1.x86_64/build=3D/usr/sr\<br>c/debug/emacs-25.3-1<br>=C2=
=A0-fdebug-prefix-map=3D/home/kbrown/src/cygemacs/emacs-25.3-1.x86_64/src/e=
macs-25.\<br>3=3D/usr/src/debug/emacs-25.3-1&#39;<br>=C2=A0CPPFLAGS=3D LDFL=
AGS=3D&#39;<br><br>Configured features:<br>JPEG SOUND DBUS NOTIFY ACL GNUTL=
S LIBXML2 ZLIB<br><br>Important settings:<br>=C2=A0 value of $LANG: en_US.U=
TF-8<br>=C2=A0 locale-coding-system: utf-8-unix<br><br>Major mode: LaTeX<br=
><br>Minor modes in effect:<br>=C2=A0 shell-dirtrack-mode: t<br>=C2=A0 tool=
tip-mode: t<br>=C2=A0 global-eldoc-mode: t<br>=C2=A0 electric-indent-mode: =
t<br>=C2=A0 menu-bar-mode: t<br>=C2=A0 file-name-shadow-mode: t<br>=C2=A0 g=
lobal-font-lock-mode: t<br>=C2=A0 font-lock-mode: t<br>=C2=A0 auto-composit=
ion-mode: t<br>=C2=A0 auto-encryption-mode: t<br>=C2=A0 auto-compression-mo=
de: t<br>=C2=A0 line-number-mode: t<br>=C2=A0 transient-mark-mode: t<br><br=
><br>Recent messages:<br>For information about GNU Emacs and the GNU system=
, type C-h C-a.<br>Mark set<br>C-x C-g is undefined<br>foo.tex has auto sav=
e data; consider M-x recover-this-file<br>(New file)<br>Mark set<br>Auto-sa=
ving...done<br>completing-read-default: Command attempted to use minibuffer=
 while in minibuffe\<br>r<br>No docstring slot for tex-start-shell<br><br>L=
oad-path shadows:<br>None found.<br><br>Features:<br>(shadow sort mail-extr=
 emacsbug message dired format-spec rfc822 mml<br>mml-sec password-cache ep=
g epg-config gnus-util mm-decode mm-bodies<br>mm-encode mail-parse rfc2231 =
mailabbrev gmm-utils mailheader sendmail<br>rfc2047 rfc2045 ietf-drums mm-u=
til help-fns help-mode easymenu<br>cl-loaddefs pcase cl-lib mail-prsvr mail=
-utils tex-mode compile tool-bar<br>shell pcomplete comint regexp-opt ansi-=
color ring latexenc term/xterm<br>xterm time-date mule-util tooltip eldoc e=
lectric uniquify ediff-hook<br>vc-hooks lisp-float-type tabulated-list newc=
omment elisp-mode lisp-mode<br>prog-mode register page menu-bar rfn-eshadow=
 timer select mouse jit-lock<br>font-lock syntax facemenu font-core frame c=
l-generic cham georgian<br>utf-8-lang misc-lang vietnamese tibetan thai tai=
-viet lao korean<br>japanese eucjp-ms cp51932 hebrew greek romanian slovak =
czech european<br>ethiopic indian cyrillic chinese charscript case-table ep=
a-hook<br>jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice<=
br>loaddefs button faces cus-face macroexp files text-properties overlay<br=
>sha1 md5 base64 format env code-pages mule custom widget<br>hashtable-prin=
t-readable backquote dbusbind gfilenotify multi-tty<br>make-network-process=
 emacs)<br><br>Memory information:<br>((conses 16 95831 4033)<br>=C2=A0(sym=
bols 48 19729 0)<br>=C2=A0(miscs 40 50 110)<br>=C2=A0(strings 32 17693 5402=
)<br>=C2=A0(string-bytes 1 515296)<br>=C2=A0(vectors 16 11041)<br>=C2=A0(ve=
ctor-slots 8 391743 6251)<br>=C2=A0(floats 8 156 123)<br>=C2=A0(intervals 5=
6 223 0)<br>=C2=A0(buffers 976 20))<br><br></div>

--94eb2c06c862e1c08b05598e0a84--




Acknowledgement sent to Harvey Stein <hjstein@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#28517; Package emacs. 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, 10 Aug 2020 17:00:02 UTC

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