emacs-devel
[Top][All Lists]
Advanced

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

Re: Should mode commands be idempotent?


From: Stefan Monnier
Subject: Re: Should mode commands be idempotent?
Date: Tue, 19 Sep 2017 18:29:09 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

> Is there a way inside of a minor mode to check if it was already
> enabled before the current call, short of having a second variable
> for that?

It shouldn't be needed: the idempotence should emerge naturally from the
way the code is written, rather than being the result of special tests
to detect that particular situation.


        Stefan




reply via email to

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