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: Wed, 20 Sep 2017 07:52:16 -0700 Message-ID: References: <5358b04b-70cb-bbaf-1887-bd83613e9c2b@gmail.com> <00b0c4e4-a02f-8c9f-ef52-7ad5a65798d1@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1505921884 26668 195.159.176.226 (20 Sep 2017 15:38:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 20 Sep 2017 15:38:04 +0000 (UTC) User-Agent: Gnus/5.130016 (Ma Gnus v0.16) Emacs/25.2.50 (darwin) Cc: emacs-devel@gnu.org To: =?utf-8?Q?Cl=C3=A9ment?= Pit-Claudel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 20 17:38:00 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 1duh4Z-0006dt-Od for ged-emacs-devel@m.gmane.org; Wed, 20 Sep 2017 17:37:59 +0200 Original-Received: from localhost ([::1]:48950 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duh4h-00066H-4L for ged-emacs-devel@m.gmane.org; Wed, 20 Sep 2017 11:38:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dugMR-0004vJ-7O for emacs-devel@gnu.org; Wed, 20 Sep 2017 10:52:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dugMO-00032e-5q for emacs-devel@gnu.org; Wed, 20 Sep 2017 10:52:23 -0400 Original-Received: from mail-pg0-x234.google.com ([2607:f8b0:400e:c05::234]:48800) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dugMO-00032Q-0l for emacs-devel@gnu.org; Wed, 20 Sep 2017 10:52:20 -0400 Original-Received: by mail-pg0-x234.google.com with SMTP id v23so1806148pgc.5 for ; Wed, 20 Sep 2017 07:52:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:mail-followup-to:mime-version:content-transfer-encoding; bh=vxHpI3qoC+hGtQKa593G8Pt0/8i0iCf0PQtROL7PEk8=; b=YDCN/I1HEior9OUncLdIxS6+ZPVnVDUwO6M5k4S+mZgJEoj13iDvzN4FUSGAo60jwt pIL5ojLSUxhp0R/lPdOrKRK9lBw8ozIcQpCYsk60HOMLNig53+H7c2Kw92/ZQ5nbfoGz 2rdwbBHLX2/9ea3b+h2j3Vdh4VBks9rQu/VJhZA5nJD+5zLabZOrfjlDOYmHOmGxrYvK fud7LmF0NBiIdAUlP6FDCB3WZU1932cPxSlIKQrjJvcfZPUTgR2JRjMP/vZjq9FvA7iX e9wc9vvk6ywfsQoW1+NaI4Yb28Y3DTpp/I+ECh0RtRYN/Cc4ZmuY5nvpOAsa0tJqRCy/ IxNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id :references:user-agent:mail-followup-to:mime-version :content-transfer-encoding; bh=vxHpI3qoC+hGtQKa593G8Pt0/8i0iCf0PQtROL7PEk8=; b=c1i6duu34E7m0z5Ze4kgldSKkDfkH+e0bzwPxMA1ZLFE+544Ywgo5ejZh9PpyF61jT 1w5BqqiatgLHP8pStyD0zSOO8YIFbWP5SFgbMn/r+7eU1DutUDNoU5if55JR9KjuCwmJ BLS2Dg8tP9KokpigWoLMAOICRATSN2okJVsyt8PFOb/czs+H5O6x14GTG0maE0WPiqiF 6x8luNQ2+eoy13r+/rjgPQ5gyqb8skdIbRXwWCYO0YhnN+QmLR11krCVau9btiJjnvLf 5tEZGPq/u8b2pftoGmENjyB4oNCMn0hWbbg5sZk+PcJHtLPfZWFmdTeecYo7fzIKp6xN F0kQ== X-Gm-Message-State: AHPjjUiaiWuTv5bAyiddYuTxcHJjq4CG5HDshxQ2NcZGHpx/f6e97iru 85RDG1voL19fjd3ihOM2tm0= X-Google-Smtp-Source: AOwi7QB/qLUcy5Svu+UNVnVJiJzB40iD0nJIuyZ0M5L36ekyTxuBBUkauYVfNBEaynP3YOqpV2g6LQ== X-Received: by 10.99.96.10 with SMTP id u10mr2493030pgb.70.1505919139033; Wed, 20 Sep 2017 07:52:19 -0700 (PDT) Original-Received: from Vulcan.local (76-234-69-149.lightspeed.frokca.sbcglobal.net. [76.234.69.149]) by smtp.gmail.com with ESMTPSA id i3sm7791800pgs.23.2017.09.20.07.52.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Sep 2017 07:52:18 -0700 (PDT) X-Google-Original-From: "John Wiegley" Original-Received: by Vulcan.local (Postfix, from userid 501) id 92C118DE9AB4; Wed, 20 Sep 2017 07:52:17 -0700 (PDT) In-Reply-To: <00b0c4e4-a02f-8c9f-ef52-7ad5a65798d1@gmail.com> (=?utf-8?Q?=22Cl=C3=A9ment?= Pit-Claudel"'s message of "Wed, 20 Sep 2017 09:24:11 +0200") Mail-Followup-To: =?utf-8?Q?Cl=C3=A9ment?= Pit-Claudel , emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::234 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:218580 Archived-At: >>>>> "CP" =3D=3D Cl=C3=A9ment Pit-Claudel writes: CP> I'm not too sure: take the example of visual-line-mode: how do you make CP> that idempotent without explicitly checking whether the mode has already CP> been activated? Also, is there a motivation for introducing this new requirement, seeing as how we've never had such a restriction in the past? --=20 John Wiegley GPG fingerprint =3D 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2