[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] Wrap dollars around active region
From: |
Mosè Giordano |
Subject: |
Re: [AUCTeX-devel] Wrap dollars around active region |
Date: |
Fri, 7 Jun 2013 15:57:39 +0200 |
Hi Tassilo,
2013/6/6 Tassilo Horn <address@hidden>:
> 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è
tex-insert-dollar.patch
Description: Binary data
- Re: [AUCTeX-devel] Wrap dollars around active region, (continued)
- Re: [AUCTeX-devel] Wrap dollars around active region, Tassilo Horn, 2013/06/05
- Re: [AUCTeX-devel] Wrap dollars around active region, Mosè Giordano, 2013/06/05
- Re: [AUCTeX-devel] Wrap dollars around active region, David Kastrup, 2013/06/05
- Re: [AUCTeX-devel] Wrap dollars around active region, Tassilo Horn, 2013/06/05
- Re: [AUCTeX-devel] Wrap dollars around active region, David Kastrup, 2013/06/05
- Re: [AUCTeX-devel] Wrap dollars around active region, Tassilo Horn, 2013/06/05
- Re: [AUCTeX-devel] Wrap dollars around active region, Mosè Giordano, 2013/06/05
- Re: [AUCTeX-devel] Wrap dollars around active region, Tassilo Horn, 2013/06/06
- Re: [AUCTeX-devel] Wrap dollars around active region, Mosè Giordano, 2013/06/06
- Re: [AUCTeX-devel] Wrap dollars around active region, Tassilo Horn, 2013/06/06
- Re: [AUCTeX-devel] Wrap dollars around active region,
Mosè Giordano <=
- Re: [AUCTeX-devel] Wrap dollars around active region, Tassilo Horn, 2013/06/07
- Re: [AUCTeX-devel] Wrap dollars around active region, Mosè Giordano, 2013/06/07
- Re: [AUCTeX-devel] Wrap dollars around active region, Tassilo Horn, 2013/06/07
- Re: [AUCTeX-devel] Wrap dollars around active region, Mosè Giordano, 2013/06/07
- Re: [AUCTeX-devel] Wrap dollars around active region, David Kastrup, 2013/06/06
- Re: [AUCTeX-devel] Wrap dollars around active region, Mosè Giordano, 2013/06/06