Hi Tassilo,

2013/6/6 Tassilo Horn <[email protected]>:
> Well, after typing the initial dollar above, the inserted text with |
> being (point) is $|$.  Why should a user prefer to type <right> or C-f
> to jump over the second $ instead of quickly typing $$ resulting in
> $$|$$?
>
> I mean, the alternatives are
>
>   1. $ <right> formula $
>   2. $$ formula
>
> and the first takes 3 special key presses of 2 different keys whereas
> the second only takes 2 $-key presses.  So IMHO, the first approach
> seems even worse than typing $$ formula $$ without electricity.
>
> Ok, one benefit of alternative 1 is that point is after the math
> afterwards whereas it is $$|$$ in alternative 2.  But then, such
> formulas are usually written on their own line, so that doesn't make a
> difference.
>
>> Can I keep `TeX-math-close-double-dollar'?
>
> I don't have strong opinions, I just don't like having several quite
> similar features that might confuse more than help.  But if you feel
> that it's important, then we'll just keep it.
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
  2. enter formula
  3. press $
  4. move right
Thus, I'm inclined to keep `TeX-math-close-double-dollar'.  That said,
I've a reason to suspect there are really few AUCTeX users writing
regularly in plain TeX, if I'm right not many people will worry about
all this :-)

I'm submitting the (hopefully) definitive patch.  If there are no
objections I'll install it.

Bye,
Mosè

Attachment: tex-insert-dollar.patch
Description: Binary data

_______________________________________________
auctex-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to