[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:52:46 +0000 |
my bad, had of course forgotten to byte compile the updated latex.el
/Lars Madsen
Institut for Matematik / Department of Mathematics
Aarhus Universitet / Aarhus University
Mere info: http://au.dk/address@hidden / More information:
http://au.dk/en/address@hidden
________________________________________
From: Lars Madsen
Sent: 26 September 2014 11:46
To: Tassilo Horn; address@hidden
Subject: RE: [AUCTeX-devel] 'race condition' in LaTeX-insert-environment
Thanks
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")
(progn
(save-restriction
;;(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
test
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
test?
/Lars Madsen
Institut for Matematik / Department of Mathematics
Aarhus Universitet / Aarhus University
Mere info: http://au.dk/address@hidden / More information:
http://au.dk/en/address@hidden
________________________________________
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.
Thanks,
Tassilo
_______________________________________________
auctex-devel mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/auctex-devel