emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Allow inhibiting 'auto-save-visited-mode' on a per-buffer ba


From: Stefan Monnier
Subject: Re: [PATCH] Allow inhibiting 'auto-save-visited-mode' on a per-buffer basis.
Date: Wed, 08 Apr 2020 10:58:34 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> How strongly do people feel about having a minor mode for this? If not
> too strongly, I'd go ahead with my original proposal, which is simpler
> implementation-wise.

I don't think you can do much simpler than the patch I sent and it lets
users inhibit the mode in those mode where they don't want it with:

    (add-hook 'foo-mode-hook
              (lambda () (setq-local auto-save-visited-mode nil)))

and it's "compatible" with a future addition of an actual minor mode.
As mentioned, having such "redundant checks" is common practice for
minor modes.


        Stefan




reply via email to

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