My bad, I wrote:
> if the point is at the beginning of a headline cdlatex-tab advances to the
> next word rather than leaving it alone.
because I evidently didn't read your email closely enough
2011/11/13 Nicolas Goaziou :
> ... (I had forgotten to take care of headlines case).
Sorry for the
2011/11/13 Nicolas Goaziou :
>>> I've slightly modified your patch to repair that. Could you test it and
>>> report back the result?
>>
>> From what i can tell it works flawlessly.
I'm sorry, but I just caught a flaw. I actually remember it being the reason
why I chose to test if the point is in
Maik Beckmann writes:
>> I've slightly modified your patch to repair that. Could you test it and
>> report back the result?
>
> From what i can tell it works flawlessly.
I've pushed a close patch into master (I had forgotten to take care of
headlines case).
Thank you for your work.
Regards,
2011/11/12 Nicolas Goaziou :
> Your patch prevents cdlatex expansion for LaTeX environments, since
> point must be in a LaTeX fragment to trigger `cdlatex-tab'.
That actually bit me yesterday :P
> I've slightly modified your patch to repair that. Could you test it and
> report back the result?
Hello,
Maik Beckmann writes:
> The attached patch what works for me.
Your patch prevents cdlatex expansion for LaTeX environments, since
point must be in a LaTeX fragment to trigger `cdlatex-tab'.
I've slightly modified your patch to repair that. Could you test it and
report back the result?
The attached patch what works for me. It is however the result
of a short trail'n'error session, since I'm by no means an
experienced lisp/elisp programmer.
With the patch the behavior is slightly different than usual with
lists. Before TAB cycles the list, the cursor jumps out of the
Latex frag
* The observed behavior
Inside a list item cdlatex-tab isn't considered. An example:
To circumvent emacs' fill-paragrah issue with \[ \] I prefer using a
inline math environment in a single item list. Unfortunately cdlatex
isn't considered when hitting TAB then
- $y = a_0 + a_{1[TAB]}$