From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Should mode commands be idempotent? Date: Thu, 21 Sep 2017 14:28:23 -0400 Message-ID: References: <9f11a3c6-b113-4bf6-9dab-f894b2ad77b5@default> Reply-To: rms@gnu.org NNTP-Posting-Host: blaine.gmane.org Content-Type: text/plain; charset=Utf-8 X-Trace: blaine.gmane.org 1506018584 10041 195.159.176.226 (21 Sep 2017 18:29:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 21 Sep 2017 18:29:44 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 21 20:29:35 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dv6EA-00025c-Uz for ged-emacs-devel@m.gmane.org; Thu, 21 Sep 2017 20:29:35 +0200 Original-Received: from localhost ([::1]:55047 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dv6EI-0006WI-C4 for ged-emacs-devel@m.gmane.org; Thu, 21 Sep 2017 14:29:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dv6D9-0005gr-3C for emacs-devel@gnu.org; Thu, 21 Sep 2017 14:28:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dv6D8-0000p9-9Z for emacs-devel@gnu.org; Thu, 21 Sep 2017 14:28:31 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40235) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dv6D1-0000g6-Vg; Thu, 21 Sep 2017 14:28:23 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1dv6D1-0006Jr-Fl; Thu, 21 Sep 2017 14:28:23 -0400 In-reply-to: <9f11a3c6-b113-4bf6-9dab-f894b2ad77b5@default> (message from Drew Adams on Wed, 20 Sep 2017 22:22:21 -0700 (PDT)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:218646 Archived-At: [[[ 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. ]]] Users expect major modes to be idempotent. Any time one is not, it will cause them surprises. We should treat that as a bug and fix it to be idempotent. As for minor modes, it has been pointed out (by Stefan?) that multiple hooks could enable the same major mode, and the result should be the same as if just one hook did so. -- 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.