auctex-devel
[Top][All Lists]

Re: [AUCTeX-devel] Moving across formulas

 From: Julien Cubizolles Subject: Re: [AUCTeX-devel] Moving across formulas Date: Sat, 07 Nov 2015 10:46:05 +0100 User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux)

Marcin Borkowski <address@hidden> writes:

> On 2015-11-07, at 09:31, Julien Cubizolles <address@hidden> wrote:
>
>>
>>> Hi all,
>>>
>>> I'm slowly (very slowly, I have a lot of other things to do now...)
>>> working on my AUCTeX enhancements.  One thing I'd like to have is to be
>>> able to move to the end (or beginning) of a formula.  I.e., in one of
>>> these situations:
>>>
>>> -!-$...$
>>> -!-$$...$$
>>> -!-$...$
>>>
>>> I want to be able to get to one of these:
>>>
>>> $...$-!-
>>> $$...$$-!-
>>> $...$-!-
>>>
>>> It's hard to believe for me that AUCTeX doesn't support something like
>>> this, but I couldn't find it.  Any hints?
>>
>> sp-forward-sexp from smartparens does it out of the box.
>
> Thanks, but as I have written some time ago, "smartparens" is not smart
> enough to deal with (La)TeX parens anyway.  (And I'm curious whether it
> handles other strange cases I wrote about, like
>   $\bigl( ... \bigr\rangle$

never tried this one, but I wouldn't be surprised if smartparens failed
in this case.

> etc.)  Also, introducing a dependency on smartparens into AUCTeX might
> not be the best idea.

I was not suggesting it should be a dependency, just wanted to point
that, smartparens + AucteX is a working combination for my use.

Julien.