Hi Tassilo, 2013/6/7 Tassilo Horn <t...@gnu.org>: > Mosè Giordano <giordano.m...@libero.it> writes: >> I didn't consider your second alternative, but I still think the first >> is better or at least equivalent. Counting the keystrokes of the >> first alternative they are: >> 1. press $ >> 2. move right >> 3. enter formula >> 4. press $ >> For the second: >> 1. press $ twice, but the second pressure will insert only one dollar sign > > Uh, why that? IMO, pressing $$ should insert $$|$$ with | being > (point). Because that's the current behavior of `TeX-insert-dollar' :-)
> Well, I consider the $$ gives $$|$ a bug, or at least unexpected > behavior. The attached patch finally removes `TeX-math-close-double-dollar'. I changed the behavior of `TeX-insert-dollar' in the texmathp case: if point is right between a couple of dollars and `TeX-math-electric' is non-nil (whatever its value), another couple of dollars is inserted and point is placed between them. Now I agree that your alternative is preferable ;-) Bye, Mosè
tex-insert-dollar.patch
Description: Binary data
_______________________________________________ auctex-devel mailing list auctex-devel@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-devel