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: Tassilo Horn
Subject: Re: [AUCTeX-devel] Wrap dollars around active region
Date: Fri, 07 Jun 2013 21:13:50 +0200
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux)

Mosè Giordano <address@hidden> writes:

>>> 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' :-)

Let's see if there's someone relying on that behavior. :-)

  http://xkcd.com/1172/

>> 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 ;-)

Ahh, finally. :-)

Commit, push, and have a nice weekend!

Bye,
Tassilo



reply via email to

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