[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: |
Thu, 6 Jun 2013 14:44:33 +0200 |
Hi Tassilo,
2013/6/6 Tassilo Horn <address@hidden>:
> Mosè Giordano <address@hidden> writes:
>> After some testing I'm not persuaded it's a good idea to remove
>> `TeX-math-close-double-dollar'. E.g., a plain TeX user probably want
>> to set `TeX-electric-inline-math' to '("$" . "$"), but if point is
>> after the third dollar in the following line
>> $$ a+b=c $
>> pressing another time `$' will insert a couple of dollars because
>> there (texmathp) returns nil. This isn't the expected behavior and
>> `TeX-math-close-double-dollar' does a better job.
>
> If he uses `TeX-electric-inline-math', how could he reach that 3-dollars
> state except with `C-q $'?
No need of `C-q $' at all. This is the `C-h l' log of the keystrokes
needed to write that:
$ <right> SPC a + b = c SPC $
`(texmathp)' returns t before the third dollar and a single dollar is
inserted when `TeX-math-close-double-dollar' is nil, a couple of
dollars otherwise. Can I keep `TeX-math-close-double-dollar'?
>> I'm sending the full patch for `tex.el'. I'll update
>> `doc/auctex.texi' as well.
>
> The patch contains the old + the new diff. Probably a ">> instead of >"
> redirection error. ;-)
Yes, of course that was the error :-)
> Not sure, but we could setup `TeX-electric-inline-math' depending on
> mode, i.e., plain-tex or latex using another defcustom
> `TeX-use-electric-math' with boolean value. But I think it's not worth
> it, if it's properly documented in the manual. You might want to
> document it using the relevant hooks (LaTeX/plain-TeX) and (set
> (make-local-variable 'TeX-electric-inline-math) ...).
I'll probably mention in the manual the possibility to set it using hooks.
> BTW: Isn't `TeX-electric-math' a better name, since it's not restricted
> to inline math?
Ok. I'll rename it.
>> Completely unrelated, can I reference gmane threads in ChangeLog?
>
> Yes, sure. If there was a discussion leading to a commit, it's a good
> thing to do.
Ok, thanks.
Bye,
Mosè
- Re: [AUCTeX-devel] Wrap dollars around active region, (continued)
- Re: [AUCTeX-devel] Wrap dollars around active region, Mosè Giordano, 2013/06/04
- Re: [AUCTeX-devel] Wrap dollars around active region, Mosè Giordano, 2013/06/04
- Re: [AUCTeX-devel] Wrap dollars around active region, Tassilo Horn, 2013/06/05
- Re: [AUCTeX-devel] Wrap dollars around active region, Mosè Giordano, 2013/06/05
- Re: [AUCTeX-devel] Wrap dollars around active region, David Kastrup, 2013/06/05
- Re: [AUCTeX-devel] Wrap dollars around active region, Tassilo Horn, 2013/06/05
- Re: [AUCTeX-devel] Wrap dollars around active region, David Kastrup, 2013/06/05
- Re: [AUCTeX-devel] Wrap dollars around active region, Tassilo Horn, 2013/06/05
- 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 <=
- 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, 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, 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