Subject: Re: bug#78006: Improving `TeX-electric-math' behavior

From: Ikumi Keita <[email-masked]>
Date: Sat, 03 May 2025 13:27:13 +0900

Hi Arash,

>>>>> Arash Esbati <[email-masked]> writes:
> Using $$...$$ in LaTeX is discouraged, so I think AUCTeX shouldn't
> promote this as well, so I suggest this change to
> `TeX-insert-dollar-electric-region':

I have one minor comment about your proposal.

> +    (replace-match (if (memq major-mode '(LaTeX-mode docTeX-mode))

I think we should use `derived-mode-p' here instead of comparing
`major-mode' directly.

Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine
#Gaza #StopMassiveKilling #CeasefireNOW