bug-auctex
[Top][All Lists]
Advanced

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

Re: [Bug-AUCTeX] 11.88; TeX-region-create uses `find-file-noselect'


From: Tassilo Horn
Subject: Re: [Bug-AUCTeX] 11.88; TeX-region-create uses `find-file-noselect'
Date: Tue, 18 Nov 2014 09:36:18 +0100
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)

Massimo Lauria <address@hidden> writes:

Hi Massimo,

> When AUCTeX creates LaTeX buffers anhd files with `TeX-region-create'
> it uses the function `find-file-noselect', which is wrong since it
> triggers all modes and hooks that should not be triggered in such a
> case.

What's the alternative?  Since it compares the contents of the old
region file with the new region, there's no way not to find the old
region file.

But hooks and stuff could be omitted by using the RAWFILE argument of
`find-file-noselect'.  Oh, but then the buffer is unibyte and you run
into problems if you region contains multibyte chars...

Ok, so now I disabled the major-mode search, local variables, and
find-file hooks when finding the region file.  That should hopefully
work for you.

Bye,
Tassilo



reply via email to

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