Re: [AUCTeX-devel] Wrap dollars around active region

2013-06-04 Thread Tassilo Horn
Mosè Giordano giordano.m...@libero.it writes: 2013/6/3 Tassilo Horn t...@gnu.org: I think it's a good change, but since it's incompatible, users should get some warning message. That is, `TeX-insert-dollar' should check if the value is a cons, and if not, issue a warning and treat t as ($ .

Re: [AUCTeX-devel] Wrap dollars around active region

2013-06-04 Thread Florêncio Neves
A slightly unrelated comment: currently the dollar sign does not play well with electric-pair-mode. Only if you bind $ to self-insert-command will it insert a pair of dollar signs and place the point between them. This might be the right time to fix that... F. On 6/4/13, Tassilo Horn

Re: [AUCTeX-devel] Wrap dollars around active region

2013-06-04 Thread Tassilo Horn
Florêncio Neves florencione...@gmail.com writes: A slightly unrelated comment: currently the dollar sign does not play well with electric-pair-mode. Only if you bind $ to self-insert-command will it insert a pair of dollar signs and place the point between them. This might be the right time

Re: [AUCTeX-devel] Wrap dollars around active region

2013-06-04 Thread Florêncio Neves
I am trying to say that whoever uses electric-pair-mode probably wants electric dollar signs and this should work automatically out-of-the-box, instead of requiring rebinding $ or setting one extra AUCTeX option. I now realize that when the region is active, electric-pair-mode wraps the region

Re: [AUCTeX-devel] Wrap dollars around active region

2013-06-04 Thread Mosè Giordano
Hi Tassilo, 2013/6/4 Tassilo Horn t...@gnu.org: Mosè Giordano giordano.m...@libero.it writes: BTW, I don't see why we need 2 variables. Shouldn't `TeX-electric-dollar' with no active region make the behavior you get with `TeX-math-close-single-dollar' and the same customization. Good