[Top][All Lists]

[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 10:29:22 +0100
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)

Tassilo Horn <address@hidden> 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>,


reply via email to

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