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: Richard Stallman
Subject: Re: Should mode commands be idempotent?
Date: Mon, 25 Sep 2017 18:06:35 -0400

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > But I think at least some here are talking about a
  > convention for Emacs _users_ to follow, e.g., for
  > 3rd-party code, not just for code distributed with Emacs.

Yes.

  > In that case, I don't see it as appropriate for an Emacs
  > convention to call out what constitutes a bug.

Sure it is.

We can't force anyone to follow our conventions.
We don't want to try to force anyone.

So we need not hesitate to state technical design conventions.
We can say that a non-idempotent mode is a bug.

  > 2. Beyond that, just what kind of "idempotence" is in
  > view?  What program state do we expect must be identical
  > if a mode is turned on more than once?  And what do we
  > mean by "identical" here?

That question sounds like a wild-goose chase.
I don't think we need to give it a precise answer.
"Enabling a mode should be idempotent" is enough to say.

-- 
Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.




reply via email to

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