[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
- Should mode commands be idempotent?, Philipp Stephani, 2017/09/19
- Re: Should mode commands be idempotent?, Clément Pit-Claudel, 2017/09/19
- Re: Should mode commands be idempotent?,
Stefan Monnier <=
- Re: Should mode commands be idempotent?, Stefan Monnier, 2017/09/20
- Re: Should mode commands be idempotent?, Clément Pit-Claudel, 2017/09/23
- Re: Should mode commands be idempotent?, Stefan Monnier, 2017/09/23
- Re: Should mode commands be idempotent?, Stefan Monnier, 2017/09/23
RE: Should mode commands be idempotent?, Drew Adams, 2017/09/19