[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX-devel] 'race condition' in LaTeX-insert-environment

From: Lars Madsen
Subject: Re: [AUCTeX-devel] 'race condition' in LaTeX-insert-environment
Date: Fri, 26 Sep 2014 09:46:34 +0000


I pulled the git updates and copied LaTeX-insert-environment into my 11.87 setup

That seems to be problematic. I'm using this hook to test

(defun LaTeX-after-test (env start end)
  "This is just a test to see if this is possible"
  (if (string-equal env "brian")
          ;;(narrow-to-region start end)
          (goto-char start)
          (sit-for 2)
          (goto-char end)
          (sit-for 2)

It seems to be off by a character for some reason that I cannot fathom 

If I mark


and do C-c C-e brian

then the end is marked as right before the last 't' in 'test'

Am I missing something, or should I be using the entire devel auctex for this 

/Lars Madsen
Institut for Matematik / Department of Mathematics
Aarhus Universitet / Aarhus University
Mere info: / More information:

From: address@hidden address@hidden on behalf of Tassilo Horn address@hidden
Sent: 25 September 2014 21:53
To: address@hidden
Subject: Re: [AUCTeX-devel] 'race condition' in LaTeX-insert-environment

Lars Madsen <address@hidden> writes:

Hi Lars,

> My guess is this part in  LaTeX-insert-environment:
> ...
> If I read this correctly 'env-end' is stored before any possible
> fill-region might have altered the contents and changed the position
> of the \end part.

You were absolutely correct.  I've committed a fix.


auctex-devel mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]