From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.devel Subject: Re: Should mode commands be idempotent? Date: Thu, 21 Dec 2017 20:49:49 +0000 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: multipart/alternative; boundary="001a114844d8e7c1880560dfd702" X-Trace: blaine.gmane.org 1513889349 26444 195.159.176.226 (21 Dec 2017 20:49:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 21 Dec 2017 20:49:09 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 21 21:49:04 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 1eS7m2-0006PQ-HV for ged-emacs-devel@m.gmane.org; Thu, 21 Dec 2017 21:49:02 +0100 Original-Received: from localhost ([::1]:40755 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eS7o1-00042l-0h for ged-emacs-devel@m.gmane.org; Thu, 21 Dec 2017 15:51:05 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41919) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eS7mz-0003y1-Gj for emacs-devel@gnu.org; Thu, 21 Dec 2017 15:50:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eS7my-0004SG-MK for emacs-devel@gnu.org; Thu, 21 Dec 2017 15:50:01 -0500 Original-Received: from mail-qt0-x22a.google.com ([2607:f8b0:400d:c0d::22a]:34281) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eS7my-0004Ry-GE for emacs-devel@gnu.org; Thu, 21 Dec 2017 15:50:00 -0500 Original-Received: by mail-qt0-x22a.google.com with SMTP id 33so34042714qtv.1 for ; Thu, 21 Dec 2017 12:50:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MmTZDzZ5rD9npRIu9/W9D7jZLqkaMP/eQaZ4GnFagYQ=; b=udlqO2VJEvNicXcPP5ttGXi6ePoF7O8qvEDkKQkOtfOucA4R7QA06/yltEHfIi4WAZ oLfbLd6I8MHMBWTZhUPJKcIQDmRD202PML2FEGarkTZqHg4asnFofJnSrJG2C/RrJxFj K1jFoDsZL1SSW92aEM3pyYE148r4LOyKoEDN6u5pPxAahTLEF7mk/ALy9ViZ8FXy5PSQ j1XY+a/Fac4Lvx5vZ3AlU/k38aoLvHBhj/5oFzJp1ogMK+W6uaUbGrOunGrIfQMkAeZa wOMcMkYlB9mezyeTszzDmxv+yXEnuSRS/nTsvUqZwln5Q0ZYzCXW8xQHA1QSlPj+luJ0 9yJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MmTZDzZ5rD9npRIu9/W9D7jZLqkaMP/eQaZ4GnFagYQ=; b=NYkcxmTnklaIt5XfnxML8yM/+vVwT9z+ptKifpGfcNn93HxhBUbxp/Mk8TnZU/uWnW Zm9ErVMZiOmJVr2KM3k4WDYIgvuJ3wyw3COJimZHFTJsbLbx3vciWV6oI/7vt5p5x7/w YXZuMHsgb0EB7p59F8oVCh4zpSfJNgAg8C4vohY3Ym9k5JWZgWVSIXvn5ESpN5aCyd95 hRcSoFjDdkSPLNdWDoGXqXYDiHW52HnN05XoE+CIvZyEHZXIK0Q1SUpJqohId0onMAHU 9eIz7mlAV7ftSxFhY9ebw2yuWlvHg4plePJCgRFhAlYbmQXCJwSc+xWS2xsrwK7E/9OG YOvg== X-Gm-Message-State: AKGB3mKOP3lhek0lS45YysE4gzUbemO/0ZiFJHFWzeGMks0eO4ccV0cb Os8/Xia6UURVzxvX5njiA1mRi6KB5JDEj43LN7w= X-Google-Smtp-Source: ACJfBoviIKHknvWr3L2sika4CgXI/9Ys0e9jn8ppkkK9uZuG6SO4fcmNNbzJC3iWRMpMAeimtfanR8kujEHiL8VHb3E= X-Received: by 10.200.28.44 with SMTP id a41mr17768758qtk.340.1513889399815; Thu, 21 Dec 2017 12:49:59 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::22a 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:221318 Archived-At: --001a114844d8e7c1880560dfd702 Content-Type: text/plain; charset="UTF-8" Stefan Monnier schrieb am So., 8. Okt. 2017 um 21:05 Uhr: > > +@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. > > I think I'd prefer it if the word "idempotent" was mentioned (not > *instead* of what you have, but additionally). > > Other than that: LGTM. > > Thanks, added and pushed to emacs-26 as 798f07f150. --001a114844d8e7c1880560dfd702 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Stefan= Monnier <monnier@iro.umontr= eal.ca> schrieb am So., 8. Okt. 2017 um 21:05=C2=A0Uhr:
> +@item
> +Calling the major mode command twice in direct succession should not<= br> > +fail and should do the same thing as calling the command only once.
I think I'd prefer it if the word "idempotent" was mentioned = (not
*instead* of what you have, but additionally).

Other than that: LGTM.


Thanks, added and pushed to emacs-26 a= s 798f07f150.=C2=A0
--001a114844d8e7c1880560dfd702--