help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: write-region, auto-compression-mode, file endings


From: Eli Zaretskii
Subject: Re: write-region, auto-compression-mode, file endings
Date: Mon, 09 Sep 2024 20:42:49 +0300

> From: Christopher Howard <christopher@librehacker.com>
> Date: Mon, 09 Sep 2024 08:53:20 -0800
> 
> Hi, in some code for a scripting project I use `write-region' calls to 
> (over)write data into files, from a temp buffer. This works fine, except that 
> for reasons I won't go into, the file names involved have unusual file ending 
> like "..Z", which causes auto-complete-mode to kick in, which is not good in 
> my case.
> 
> I'm wonder what is a minimal code change I should make to ensure this doesn't 
> happen, regardless of whether auto-complete-mode is set or not. Ideally (for 
> this code) I don't want anything special happening regardless of what the 
> file ending is.

You could disable auto-compression-mode around the call to
write-region.

Or you could remove jka-compr-handler from file-name-handler-alist,
while write-region runs.



reply via email to

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