auctex-devel
[Top][All Lists]
Advanced

[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è

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]