[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 21:06:25 +0200 |
Hi Tassilo,
2013/6/7 Tassilo Horn <address@hidden>:
> Mosè Giordano <address@hidden> 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
- Re: [AUCTeX-devel] Wrap dollars around active region, (continued)
- 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, 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 <=
- 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