GNU bug report logs - #57626
13.1.4; cases* environment doesn't let me use $

Previous Next

Package: auctex;

Reported by: Wierdl Máté <wierdlmate <at> gmail.com>

Date: Tue, 6 Sep 2022 14:55:03 UTC

Severity: normal

Found in version 13.1.4

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Ikumi Keita <ikumi <at> ikumi.que.jp>
To: Arash Esbati <arash <at> gnu.org>
Cc: 57626 <at> debbugs.gnu.org, Wierdl Máté <wierdlmate <at> gmail.com>
Subject: bug#57626: 13.1.4; cases* environment doesn't let me use $
Date: Sat, 10 Sep 2022 15:41:39 +0900
Hi Arash,

>>>>> Arash Esbati <arash <at> gnu.org> writes:
> You mean in case a user says: "Dammit AUCTeX, I know what I'm doing,
> insert what I type!"

Rather, "What happened? Not sure, but I type $ again in case I actually
did something wrong instead of typing $ correctly." ;-)

> Now one could argue that " does the same in terms of insert `` first and
> upon second invocation replace that with ", but I'm not sure $ should do
> the same.

Hm, indeed.

>>> ("cases*"   env-off)
>>> ("dcases*"  env-off)
>>> ("rcases*"  env-off) 
>>> ("drcases*" env-off)

> Regardless of this, I think adding the cases entries above to
> `texmathp-tex-commands-default' would make sense and cures the issue at
> hand.  WDYT?

I'm reluctant to take this approach. If `texmathp' regards the first
column of those envs as non-math, it invalidates math-mode aware
features such as automatic switching between \mathrm and \textrm for C-c
C-f C-r, providing {}-pair for "_" and "^" with non-nil
`TeX-electric-sub-and-superscript'.

Then, how about adding supplementary instruction to the message which
`TeX-insert-dollar' shows? For example,
Math mode started with `...' cannot be closed with dollar.  You can
insert it anyway by C-q $.

Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine




This bug report was last modified 2 years and 203 days ago.

Previous Next


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