Fuco1 / smartparens

Minor mode for Emacs that deals with parens pairs and tries to be smart about it.
GNU General Public License v3.0
1.83k stars 194 forks source link

TeX-electric-math and smartparens in auctex #1064

Open slyfr opened 3 years ago

slyfr commented 3 years ago

Expected behavior

When setting the variable TeX-electric-math to (cons "\\(" "\\)")) in auctex modifies the behavior of $. When hitting $, \(\) should be inserted.

Actual behavior

When typing $ \(\)\) is inserted.

Steps to reproduce the problem

Backtraces if necessary (M-x toggle-debug-on-error)

Environment & version information

In recent enough smartparens you can call M-x sp-describe-system to generate this report. Please fill manually what we could not detect automatically. Edit the output as you see fit to protect your privacy.

vqhuy commented 2 months ago

With the new update of Auctex (version >= 14), I believe it should work correctly if we remove TeX-insert-dollar from sp--special-self-insert-commands. @Fuco1 any thoughts?