Hi Tassilo,

2013/6/6 Tassilo Horn <[email protected]>:
> Mosè Giordano <[email protected]> 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è

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

Reply via email to