auctex-devel
[Top][All Lists]

## Re: [AUCTeX-devel] Moving across formulas

 From: Marcin Borkowski Subject: Re: [AUCTeX-devel] Moving across formulas Date: Fri, 30 Oct 2015 21:22:53 +0100 User-agent: mu4e 0.9.15; emacs 25.0.50.1

On 2015-10-30, at 08:11, Tassilo Horn <address@hidden> wrote:

>
> Hi Marcin,
>
>> 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?
>
> Only the confirmation that you are correct.  There is no such
> functionality in AUCTeX, AFAICS.

OK, so I'll start working on this tonight.

One question.  What I currently do is a simple

(TeX-re-search-forward-unescaped "\\\\[])]" nil t)

This /mostly/ works.  It doesn't work in cases like this:

-!-$$|x|=x \text{when \(x\ge0$$}\)

but has the advantage of being fast.

So, do we prefer a faster version which is not entirely correct ("worse
is better"), or is it better to have a correct (even if slower) version?

(Since I have now the infrastructure for moving tokenwise,
/implementing/ the correct version is not a problem.  Its speed might
be.)

I'd really like to settle the FSF CA thing ASAP, though I have one more
question to the FSF clerk.  I hope I'll be able to sort it out soon.
(That does not mean that I'm no longer critical about FSF/RMS.  I still
am, though less than earlier.  But this is another story, and I'm going
to write a bit about my stance in a future blog post.)

> Bye,
> Tassilo

Best,

--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science