GNU bug report logs - #20301
11.88.3; mathtools.el: multlined environment inserts a spurious newline

Previous Next

Package: auctex;

Reported by: gojjoe <at> gmail.com

Date: Sat, 11 Apr 2015 09:51:02 UTC

Severity: normal

Found in version 11.88.3

Done: Tassilo Horn <tsdh <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Tassilo Horn <tsdh <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#20301: closed (11.88.3; mathtools.el: multlined environment
 inserts a spurious newline)
Date: Sat, 11 Apr 2015 19:51:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 11 Apr 2015 21:50:29 +0200
with message-id <87mw2ewika.fsf <at> gnu.org>
and subject line Re: bug#20301: 11.88.3; mathtools.el: multlined environment inserts a spurious newline
has caused the debbugs.gnu.org bug report #20301,
regarding 11.88.3; mathtools.el: multlined environment inserts a spurious newline
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
20301: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20301
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: gojjoe <at> gmail.com
To: bug-auctex <at> gnu.org
Subject: 11.88.3;
 mathtools.el: multlined environment inserts a spurious newline
Date: Sat, 11 Apr 2015 11:49:41 +0200
Dear All,

Inserting a multlined (note the final 'd') environment via 
LaTeX-environment, a spurious newline is inserted. Example: 
call C-c C-e multlined [ret]. The result is:

\begin{multlined}


\end{multlined}

with a spurious newline and the cursor in the second empty 
line. Insertion of all other math environments I tried 
behaves correctly instead, eg

\begin{equation}

\end{equation}

The same happens also inserting multlined when a region is 
selected. For example, marking the expression

a + b

(or its whole line) and calling C-c C-e multlined [ret] gives

\begin{multlined}
a + b

\end{multlined}

again with a spurious newline.

I think the problem is in mathtools.el: @line 198, maybe 
"newline-and-indent" is causing the problem?

Cheers!
J



Emacs  : GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601)
 of 2013-03-17 on MARVIN
Package: 11.88.3

current state:
==============
(setq
 AUCTeX-date "2015-03-22"
 window-system 'w32
 LaTeX-version "2e"
 TeX-style-path '("~/.emacs.d/auctex"
		  "c:/Users/***/work/.emacs.d/elpa/auctex-11.88.3/style"
		  "c:/Users/***/work/.emacs.d/auctex/auctex-auto"
		  "c:/Users/***/work/.emacs.d/auctex/auctex-style"
		  "auctex-auto" "auctex-style")
 TeX-auto-save t
 TeX-parse-self t
 TeX-master t
 )


[Message part 3 (message/rfc822, inline)]
From: Tassilo Horn <tsdh <at> gnu.org>
To: gojjoe <at> gmail.com
Cc: 20301-done <at> debbugs.gnu.org
Subject: Re: bug#20301: 11.88.3;
 mathtools.el: multlined environment inserts a spurious newline
Date: Sat, 11 Apr 2015 21:50:29 +0200
gojjoe <at> gmail.com writes:

Hi!

> Inserting a multlined (note the final 'd') environment via
> LaTeX-environment, a spurious newline is inserted. Example: call C-c
> C-e multlined [ret]. The result is:
>
> \begin{multlined}
>
>
> \end{multlined}
>
> I think the problem is in mathtools.el: @line 198, maybe
> "newline-and-indent" is causing the problem?

Yes, exactly.  It's now fixed in Git.

Thanks for reporting!
Tassilo


This bug report was last modified 10 years and 103 days ago.

Previous Next


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