From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Harvey Stein Newsgroups: gmane.emacs.bugs Subject: bug#28517: 25.3; Bad indentation in LaTeX-mode with unmatched square brackets. Date: Tue, 19 Sep 2017 13:18:05 -0400 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c06c862e1c08b05598e0a84" X-Trace: blaine.gmane.org 1505843739 24190 195.159.176.226 (19 Sep 2017 17:55:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 19 Sep 2017 17:55:39 +0000 (UTC) To: 28517@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 19 19:55:32 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duMk5-0005md-MG for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Sep 2017 19:55:30 +0200 Original-Received: from localhost ([::1]:44590 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duMkD-0001kB-3R for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Sep 2017 13:55:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59398) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duMgl-0007AF-Uv for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 13:52:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duMgk-0004Zd-Ax for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 13:52:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39896) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1duMgk-0004Z9-72 for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 13:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1duMgj-00006R-Pm for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 13:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Harvey Stein Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Sep 2017 17:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28517 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.1505843479330 (code B ref -1); Tue, 19 Sep 2017 17:52:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Sep 2017 17:51:19 +0000 Original-Received: from localhost ([127.0.0.1]:48577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duMg2-00005D-MI for submit@debbugs.gnu.org; Tue, 19 Sep 2017 13:51:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45975) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duMAF-0007lb-Ht for submit@debbugs.gnu.org; Tue, 19 Sep 2017 13:18:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duMA3-0003mw-76 for submit@debbugs.gnu.org; Tue, 19 Sep 2017 13:18:22 -0400 Original-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 ) id 1duMA3-0003mh-1h for submit@debbugs.gnu.org; Tue, 19 Sep 2017 13:18:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duM9z-0002dL-LV for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 13:18:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duM9w-0003gG-Qv for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 13:18:11 -0400 Original-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 ) id 1duM9w-0003ea-JD for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 13:18:08 -0400 Original-Received: by mail-qk0-x22a.google.com with SMTP id z143so311206qkb.3 for ; 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) Original-Received: by 10.12.128.100 with HTTP; Tue, 19 Sep 2017 10:18:05 -0700 (PDT) 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-Mailman-Approved-At: Tue, 19 Sep 2017 13:51:18 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:137139 Archived-At: --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
This bug report will be sent to the Bug-GNU-Emacs mailing = list
and the GNU bug tracker at debbu= gs.gnu.org.=C2=A0 Please check that
the From: line contains a valid = email address.=C2=A0 After a delay of up
to one day, you should receive = an acknowledgment at that address.

Please write in English if possib= le, as the Emacs maintainers
usually do not have translators for other l= anguages.

Please describe exactly what actions triggered the bug, an= d
the precise symptoms of the bug.=C2=A0 If you can, give a recipe
st= arting from 'emacs -Q':

Start emacs.

Edit a new LaTeX= file, like foo.tex

When you type the following, you get the indenta= tion as shown:

This is an example of bad indentation in LaTeX-mode w= hen half open
intervals are used in mathematics, such as $[-3, 5)$.
<= br>=C2=A0 LaTeX-mode insists on indenting everything after the above text.<= br>
=C2=A0 It doesn't stop indenting until seeing a closing square b= racket, or
=C2=A0 until an unindented line is forcibly added.

=C2= =A0 % Commenting out a closing bracket doesn't help]

=C2=A0 Hitt= ing return on an unindented line causes it to get indented.


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

=
In GNU Emacs 25.3.1 (x86_64-unknown-cygwin)
=C2=A0of 2017-09-11 buil= t on desktop-new
Configured using:
=C2=A0'configure
=C2=A0--sr= cdir=3D/home/kbrown/src/cygemacs/emacs-25.3-1.x86_64/src/emacs-25.3
=C2= =A0--prefix=3D/usr --exec-prefix=3D/usr --localstatedir=3D/var --sysconfdir= =3D/etc
=C2=A0--docdir=3D/usr/share/doc/emacs --htmldir=3D/usr/share/doc= /emacs/html -C
=C2=A0--with-x=3Dno 'CFLAGS=3D-ggdb -O2 -pipe -Wimpli= cit-function-declaration
=C2=A0-fdebug-prefix-map=3D/home/kbrown/src/cyg= emacs/emacs-25.3-1.x86_64/build=3D/usr/sr\
c/debug/emacs-25.3-1
=C2= =A0-fdebug-prefix-map=3D/home/kbrown/src/cygemacs/emacs-25.3-1.x86_64/src/e= macs-25.\
3=3D/usr/src/debug/emacs-25.3-1'
=C2=A0CPPFLAGS=3D LDFL= AGS=3D'

Configured features:
JPEG SOUND DBUS NOTIFY ACL GNUTL= S LIBXML2 ZLIB

Important settings:
=C2=A0 value of $LANG: en_US.U= TF-8
=C2=A0 locale-coding-system: utf-8-unix

Major mode: LaTeX
Minor modes in effect:
=C2=A0 shell-dirtrack-mode: t
=C2=A0 tool= tip-mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 electric-indent-mode: = t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 g= lobal-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 auto-composit= ion-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-mo= de: t
=C2=A0 line-number-mode: t
=C2=A0 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 sav= e data; consider M-x recover-this-file
(New file)
Mark set
Auto-sa= ving...done
completing-read-default: Command attempted to use minibuffer= while in minibuffe\
r
No docstring slot for tex-start-shell

L= oad-path shadows:
None found.

Features:
(shadow sort mail-extr= emacsbug message dired format-spec rfc822 mml
mml-sec password-cache ep= g epg-config gnus-util mm-decode mm-bodies
mm-encode mail-parse rfc2231 = mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-u= til 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 e= lectric uniquify ediff-hook
vc-hooks lisp-float-type tabulated-list newc= omment elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow= timer select mouse jit-lock
font-lock syntax facemenu font-core frame c= l-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 ep= a-hook
jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice<= br>loaddefs button faces cus-face macroexp files text-properties overlaysha1 md5 base64 format env code-pages mule custom widget
hashtable-prin= t-readable backquote dbusbind gfilenotify multi-tty
make-network-process= emacs)

Memory information:
((conses 16 95831 4033)
=C2=A0(sym= bols 48 19729 0)
=C2=A0(miscs 40 50 110)
=C2=A0(strings 32 17693 5402= )
=C2=A0(string-bytes 1 515296)
=C2=A0(vectors 16 11041)
=C2=A0(ve= ctor-slots 8 391743 6251)
=C2=A0(floats 8 156 123)
=C2=A0(intervals 5= 6 223 0)
=C2=A0(buffers 976 20))

--94eb2c06c862e1c08b05598e0a84--