Tassilo Horn <[email protected]> writes:

>> 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.

Well, of course that's wrong.  We could also use some plain buffer with
`get-buffer-create' and `insert-file-contents' instead of
`find-file-noselect'.  But when using that,

  1. and setting buffer-file-name to the region file, I get queries
     about the region file changed, and if I really want to save it

  2. and not setting buffer-file-name to the region file and using
     `write-file' instead of `save-buffer', I get one new region buffer
     per changed region, e.g., _region_.tex, _region_<2>,
     _region_.tex<3>...

Bye,
Tassilo

_______________________________________________
bug-auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-auctex

Reply via email to