[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] Minor bug and a few other things
From: |
Marcin Borkowski |
Subject: |
Re: [AUCTeX-devel] Minor bug and a few other things |
Date: |
Wed, 29 Apr 2015 22:21:07 +0200 |
On 2015-04-29, at 08:23, Tassilo Horn <address@hidden> wrote:
> Marcin Borkowski <address@hidden> writes:
>
> Hi Marcin,
>
>> this is a bit nitpicky, but I'm studying tex.el, and I found yet
>> another (very minor) docstring bug. The docstring for
>> TeX-string-divide-number-unit says "Return the number as car and unit
>> as cdr", but in fact it returns a two-element list, not a dotted pair.
>
> Corrected.
Thanks!
>> OTOH, I'm working on my delimiter managing code. I can now find a
>> matching \right or \bigl or \biggl etc., and enlarge or diminish both
>> sides (e.g., go from \bigl .. \bigr to \Bigl .. \Bigr etc.) with a
>> keystroke. Next in the queue is LaTeX-delimiter-aware
>> show-paren-mode, which will highlight matching "\right." when we are
>> at "\left\{" etc.
>
> Do you use SMIE for that (info "(elisp)SMIE")? It would be very cool if
> one could use `forward-sexp'/`backward-sexp' for navigating (La)TeX
> code.
No, but I'll take a look. I'm afraid, though, that it might not be
enough. Consider these cases:
\bigl( .. \bigr)
\bigl[ .. \bigr)
\bigl[ .. bigr[ % this is no mistake, some people use this notation!
\left\{ .. \right.
\bigl\langle .. \bigr)
\bigl[ .. \bigr|
\langle .. )
All the above are valid, paired delimiters. Can SMIE handle that? (I'm
not saying it can't, I just want to know. Reading its docs will take me
some time, and I won't be able to do it until at least Friday. In fact,
I'm just back home from a one-day visit at a TeX conference;-).)
>> And while we are at it, there's an annoying typo in mathtools.el:
>> three times it says "delimeter" instead of "delimiter".
>
> Fixed. Thank you!
You're welcome!
> Bye,
> Tassilo
Best,
--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University