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: Tue, 10 Sep 2024 14:34:44 +0300

> From: Christopher Howard <christopher@librehacker.com>
> Cc: help-gnu-emacs@gnu.org
> 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".

It's a global mode.  The text you cite is auto-generated.

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

Not that I know of.



reply via email to

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