GNU bug report logs - #42243
About a Potential Change/Bug That Might Have Rendered cdlatex Mostly Dysfunctional

Previous Next

Package: auctex;

Reported by: SEMIH KACMAZ <skacmaz13 <at> ku.edu.tr>

Date: Tue, 7 Jul 2020 14:45:02 UTC

Severity: normal

Tags: fixed

Done: Ikumi Keita <ikumi <at> ikumi.que.jp>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 42243 in the body.
You can then email your comments to 42243 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-auctex <at> gnu.org:
bug#42243; Package auctex. (Tue, 07 Jul 2020 14:45:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to SEMIH KACMAZ <skacmaz13 <at> ku.edu.tr>:
New bug report received and forwarded. Copy sent to bug-auctex <at> gnu.org. (Tue, 07 Jul 2020 14:45:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: SEMIH KACMAZ <skacmaz13 <at> ku.edu.tr>
To: bug-auctex <at> gnu.org
Subject: About a Potential Change/Bug That Might Have Rendered cdlatex Mostly
 Dysfunctional
Date: Tue, 7 Jul 2020 13:28:57 +0300
[Message part 1 (text/plain, inline)]
Hello,

For some reason, cdlatex stopped functioning properly today. I have
informed the cdlatex developer about the issue and he suspected a change in
AUCTeX might be responsible for it. Further comments and suggestions would
be much appreciated.

You can find below the detailed description of the issue.

Here is the link to the correspondence below
<https://github.com/cdominik/cdlatex/issues/17>

*Description:*

*"Hello, for some reason, cdlatex stopped functioning properly today. When
I try to insert a math modifier under align, align*, equation* or multline
environments, cdlatex throws the "No such modifier /modifier-symbol/
outside math mode." error. Furthermore, when I try to insert a math symbol
under these environments the symbol is generated between double dollar
signs as if it is called in the text-mode.*

*However, it works flawlessly and as it used to with the "equation"
environment.*

*I am using AucTeX in Emacs 26.3 which was downloaded from
emacsformacosx.com <http://emacsformacosx.com> and my OS is macOS Catalina
10.15.5."*

*His response:*

*"I believe this must be due to a change in AUCTeX. The constant
texmathp-tex-commands-default used to contain the align environments etc,
but no longer does. I am assuming that there is now a procedure in place to
add these commands based on LaTeX package loading. But I am not sure. Can
you please report this to the AUCTeX people and update me on their answer?"*


Many thanks,
Semih
[Message part 2 (text/html, inline)]

Information forwarded to bug-auctex <at> gnu.org:
bug#42243; Package auctex. (Tue, 07 Jul 2020 15:57:01 GMT) Full text and rfc822 format available.

Message #8 received at 42243 <at> debbugs.gnu.org (full text, mbox):

From: Ikumi Keita <ikumi <at> ikumi.que.jp>
To: SEMIH KACMAZ <skacmaz13 <at> ku.edu.tr>
Cc: 42243 <at> debbugs.gnu.org
Subject: Re: bug#42243: About a Potential Change/Bug That Might Have Rendered
 cdlatex Mostly Dysfunctional
Date: Wed, 08 Jul 2020 00:56:46 +0900
Hi Semih,

>>>>> SEMIH KACMAZ <skacmaz13 <at> ku.edu.tr> writes:
> *"I believe this must be due to a change in AUCTeX. The constant
> texmathp-tex-commands-default used to contain the align environments etc,
> but no longer does.

Exactly. Support for highlighting and in-math state detection for
AMS-LaTeX specific environments, such as align, gather and multline, are
refactored and put into style file amsmath.el. So these support are
available only when TeX-parse-self option is enabled.

> I am assuming that there is now a procedure in place to
> add these commands based on LaTeX package loading. But I am not sure.

Could you try to enable the option TeX-parse-self and re-open the LaTeX
file? If that doesn't solve the problem, please report back to us.

Ikumi Keita




Information forwarded to bug-auctex <at> gnu.org:
bug#42243; Package auctex. (Wed, 08 Jul 2020 06:54:02 GMT) Full text and rfc822 format available.

Message #11 received at 42243 <at> debbugs.gnu.org (full text, mbox):

From: Ikumi Keita <ikumi <at> ikumi.que.jp>
To: SEMIH KACMAZ <skacmaz13 <at> ku.edu.tr>
Cc: 42243 <at> debbugs.gnu.org
Subject: Re: bug#42243: About a Potential Change/Bug That Might Have Rendered
 cdlatex Mostly Dysfunctional
Date: Wed, 08 Jul 2020 15:53:02 +0900
Hi Semih,

[ Please keep Cc:42243 <at> debbugs.gnu.org when you reply so that someone
who reads the archived thread later can follow the discussion. ]

>>>>> SEMIH KACMAZ <skacmaz13 <at> ku.edu.tr> writes:
> Hello Ikumi,
> Thanks for the reply and verification of the issue. TeX-parse-self option
> was already enabled in my config file. However, after checking
> "texmathp.el" I figured that customizing the texmathp-tex-commands variable
> should solve my problem. Now everything is back to normal. Yet, your
> response makes me feel that my "solution" was merely a work-around and the
> actual solution might be adding the style folder TeX-style-path or
> something similar. 

I wonder why texmathp-tex-commands-default isn't updated properly even
when TeX-parse-self is enabled. If you provide us sample LaTeX file and
the part of your config file relevant to AUCTeX and CDLaTeX, we can
investigate the issue.

> Of course, this is only a speculation on my part as I did not check
> its viability.

> Thank you again for your time and consideration,

You are welcome.

Regards,
Ikumi Keita




Information forwarded to bug-auctex <at> gnu.org:
bug#42243; Package auctex. (Wed, 08 Jul 2020 20:33:02 GMT) Full text and rfc822 format available.

Message #14 received at 42243 <at> debbugs.gnu.org (full text, mbox):

From: Arash Esbati <arash <at> gnu.org>
To: Ikumi Keita <ikumi <at> ikumi.que.jp>
Cc: 42243 <at> debbugs.gnu.org, SEMIH KACMAZ <skacmaz13 <at> ku.edu.tr>
Subject: Re: bug#42243: About a Potential Change/Bug That Might Have
 Rendered cdlatex Mostly Dysfunctional
Date: Wed, 08 Jul 2020 22:31:48 +0200
Hi Keita,

Ikumi Keita <ikumi <at> ikumi.que.jp> writes:

> I wonder why texmathp-tex-commands-default isn't updated properly even
> when TeX-parse-self is enabled. If you provide us sample LaTeX file and
> the part of your config file relevant to AUCTeX and CDLaTeX, we can
> investigate the issue.

I opened a new file like this:

,----
| \documentclass[10pt]{article}
| 
| \usepackage{amsmath}
| 
| \begin{document}
| 
| Assuming additivity of mass ...
| \begin{gather*}
|   \frac{F_1}{m_1} \leq \frac{F_{12}}{m_{12}} \leq \frac{F_2}{m_2}
| \end{gather*}
| \end{document}
| 
| %%% Local Variables:
| %%% mode: latex
| %%% TeX-master: t
| %%% End:
`----

and this is what I get, looks good to me with latest AUCTeX from git.

,----[ C-h v texmathp-tex-commands-default RET ]
| texmathp-tex-commands-default is a variable defined in ‘texmathp.el’.
| Its value is shown below.
| 
| Documentation:
| The default entries for ‘texmathp-tex-commands’, which see.
| 
| Value:
| (("\\intertext" arg-off)
|  ("\\text" arg-off)
|  ("\\boxed" arg-on)
|  ("xxalignat" env-on)
|  ("xalignat*" env-on)
|  ("xalignat" env-on)
|  ("alignat*" env-on)
|  ("alignat" env-on)
|  ("flalign*" env-on)
|  ("flalign" env-on)
|  ("multline*" env-on)
|  ("multline" env-on)
|  ("gather*" env-on)
|  ("gather" env-on)
|  ("align*" env-on)
|  ("align" env-on)
|  ("equation*" env-on)
|  ("$$" sw-toggle)
|  ("$" sw-toggle)
|  ("\\hbox" arg-off)
|  ("\\vbox" arg-off)
|  ("\\vtop" arg-off)
|  ("\\vcenter" arg-off)
|  ("equation" env-on)
|  ("eqnarray" env-on)
|  ("eqnarray*" env-on)
|  ("math" env-on)
|  ("displaymath" env-on)
|  ("minipage" env-off)
|  ("\\fbox" arg-off)
|  ("\\mbox" arg-off)
|  ("\\framebox" arg-off)
|  ("\\label" arg-off)
|  ("\\textrm" arg-off)
|  ("\\(" sw-on)
|  ("\\)" sw-off)
|  ("\\[" sw-on)
|  ("\\]" sw-off)
|  ("\\ensuremath" arg-on))
`----

Best, Arash




Information forwarded to bug-auctex <at> gnu.org:
bug#42243; Package auctex. (Thu, 09 Jul 2020 10:54:02 GMT) Full text and rfc822 format available.

Message #17 received at 42243 <at> debbugs.gnu.org (full text, mbox):

From: Ikumi Keita <ikumi <at> ikumi.que.jp>
To: Arash Esbati <arash <at> gnu.org>
Cc: 42243 <at> debbugs.gnu.org, SEMIH KACMAZ <skacmaz13 <at> ku.edu.tr>
Subject: Re: bug#42243: About a Potential Change/Bug That Might Have Rendered
 cdlatex Mostly Dysfunctional
Date: Thu, 09 Jul 2020 19:53:37 +0900
Hi Arash,

>>>>> Arash Esbati <arash <at> gnu.org> writes:
> I opened a new file like this:

[...]

> and this is what I get, looks good to me with latest AUCTeX from git.

[...]

Thanks for confirmation, it's just the same on my side and the expected
behavior for current AUCTeX.

Regards,
Ikumi Keita




Information forwarded to bug-auctex <at> gnu.org:
bug#42243; Package auctex. (Sat, 01 Aug 2020 18:29:01 GMT) Full text and rfc822 format available.

Message #20 received at 42243 <at> debbugs.gnu.org (full text, mbox):

From: Ikumi Keita <ikumi <at> ikumi.que.jp>
To: SEMIH KACMAZ <skacmaz13 <at> ku.edu.tr>
Cc: 42243 <at> debbugs.gnu.org
Subject: Re: bug#42243: About a Potential Change/Bug That Might Have Rendered
 cdlatex Mostly Dysfunctional
Date: Sun, 02 Aug 2020 03:27:46 +0900
Hi Semih,

>>>>> SEMIH KACMAZ <skacmaz13 <at> ku.edu.tr> writes:
> Hello Ikumi,
> Thanks for the reply and verification of the issue. TeX-parse-self option
> was already enabled in my config file. However, after checking
> "texmathp.el" I figured that customizing the texmathp-tex-commands variable
> should solve my problem. Now everything is back to normal. Yet, your
> response makes me feel that my "solution" was merely a work-around and the
> actual solution might be adding the style folder TeX-style-path or
> something similar. Of course, this is only a speculation on my part as I
> did not check its viability.

> Thank you again for your time and consideration,
> Semih

Perhaps you don't use AUCTeX when you edit LaTeX documents, and
enable only cdlatex? Then it makes sense that it wasn't effective to
enable TeX-parse-self. I didn't consider cases that texmathp.el is
used outside AUCTeX. When it is used independently, support for
AMS-LaTeX specific environments such as "align" are not loaded.

We hope we can address this problem soon.

Regards,
Ikumi Keita




Added tag(s) fixed. Request was from Ikumi Keita <ikumi <at> ikumi.que.jp> to control <at> debbugs.gnu.org. (Fri, 14 Aug 2020 11:46:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 42243 <at> debbugs.gnu.org and SEMIH KACMAZ <skacmaz13 <at> ku.edu.tr> Request was from Ikumi Keita <ikumi <at> ikumi.que.jp> to control <at> debbugs.gnu.org. (Fri, 14 Aug 2020 11:46:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 12 Sep 2020 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 198 days ago.

Previous Next


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