Dear all,

I just tried out Mosè's recommendation to set LaTeX-electric-left-right-brace to t, and see some pros and cons with respect to Emacs's electric-pair-mode:

– LaTeX-electric-left-right-brace (only):
pros: typing "\bigl(" produces "\bigl(\bigr)" with point in between;
cons: deleting the left parenthesis of "()" leaves ")";

also, typing "\(" on a region will just add it to the right of the region (or overwrite it, if delete-selection-mode is t) rather than enclosing it.


– electric-pair-mode (only):
pros: deleting the left parenthesis of "()" deletes the full pair;
cons: typing "\bigl(" produces "\bigl()" (understandably).


Unfortunately I see that these electricities don't work well together, because typing "(" will produce "())", or typing "\bigl(", "\bigl(\bigr))"

Would it be possible to add the "delete full pair" option in AucTeX? Also, is there a need to add some "safeguard" if electric-pair-mode is enabled? (There are some old posts by Mosè and Stefan Monnier about the latter point.)

Cheers!
J


_______________________________________________
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to