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 with the corresponding delimiter.  Why not drop
TeX-insert-dollar altogether and let $ be bound to
self-insert-command?

Thanks,
F.



On 6/4/13, Tassilo Horn <[email protected]> wrote:
> Florêncio Neves <[email protected]> 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 to fix that...
>
> Sorry, but `electric-pair-mode' and the feature Mosè and I are talking
> about exclude each other.  AUCTeX binds $ to `TeX-insert-dollar' in tex
> buffers which implements a special behavior, and as you've already found
> out, `electric-pair-mode' needs $ bound to `self-insert-command'.
>
> Bye,
> Tassilo
>

_______________________________________________
auctex-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to