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: Christopher Howard
Subject: Re: write-region, auto-compression-mode, file endings
Date: Mon, 09 Sep 2024 11:55:46 -0800

Eli Zaretskii <eliz@gnu.org> writes:

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

This seems like the most simple idea.

One point of clarification: is auto-compression-mode something buffer-local in 
some sense? The docstring indicates that it is a global-minor-mode but 
mentioned checking to see if "the minor mode is enabled in the current buffer".

I'm curious also if there is some elegant macro for temporarily disabling a 
minor mode, and then reenabling it — or not — according to previous settings.

-- 
Christopher Howard



reply via email to

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