From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "John Wiegley" Newsgroups: gmane.emacs.devel Subject: Re: Should mode commands be idempotent? Date: Mon, 09 Oct 2017 19:10:37 -0700 Message-ID: References: <9f11a3c6-b113-4bf6-9dab-f894b2ad77b5@default> <55da155a-03b1-d3ed-4036-12e5a60fa26c@gmail.com> <950166e7-2766-8a3e-1bc2-a93a356f652c@gmail.com> <118feee3-5787-43b7-9c9b-06907a16a448@default> <2564c62e-a419-45d8-809f-433a6f7c3808@default> <44241233-0da3-4536-ab64-4071ecbfdac5@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1507601546 4860 195.159.176.226 (10 Oct 2017 02:12:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 10 Oct 2017 02:12:26 +0000 (UTC) User-Agent: Gnus/5.130016 (Ma Gnus v0.16) Emacs/26.0 (darwin) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 10 04:12:18 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 1e1k1m-0007up-0C for ged-emacs-devel@m.gmane.org; Tue, 10 Oct 2017 04:12:14 +0200 Original-Received: from localhost ([::1]:60709 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1k1r-0005Ii-DD for ged-emacs-devel@m.gmane.org; Mon, 09 Oct 2017 22:12:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1k1k-0005IS-BQ for emacs-devel@gnu.org; Mon, 09 Oct 2017 22:12:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1k1h-00047W-53 for emacs-devel@gnu.org; Mon, 09 Oct 2017 22:12:12 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43667) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1k1h-00047R-1v; Mon, 09 Oct 2017 22:12:09 -0400 Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:60415) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1e1k1g-00017o-Oy; Mon, 09 Oct 2017 22:12:08 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id 2A2DA20D41; Mon, 9 Oct 2017 22:12:08 -0400 (EDT) Original-Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Mon, 09 Oct 2017 22:12:08 -0400 X-ME-Sender: X-Sasl-enc: dyu5/qcQo/a5qlZKuUIGsBNKHRv7R+wRz7HKWSNPukH2 1507601527 Original-Received: from Vulcan.local (76-234-69-149.lightspeed.frokca.sbcglobal.net [76.234.69.149]) by mail.messagingengine.com (Postfix) with ESMTPA id DE45A24141; Mon, 9 Oct 2017 22:12:07 -0400 (EDT) Original-Received: by Vulcan.local (Postfix, from userid 501) id C8A269A41BF8; Mon, 9 Oct 2017 19:12:06 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Sun, 08 Oct 2017 15:04:30 -0400") Mail-Followup-To: Stefan Monnier , emacs-devel@gnu.org 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:219323 Archived-At: >>>>> "SM" == Stefan Monnier writes: >> +@item >> +Calling the major mode command twice in direct succession should not >> +fail and should do the same thing as calling the command only once. SM> I think I'd prefer it if the word "idempotent" was mentioned (not SM> *instead* of what you have, but additionally). SM> Other than that: LGTM. Same. -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2