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: Should mode commands be idempotent? Date: Tue, 19 Sep 2017 19:58:28 +0000 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113dd434138e660559904908" X-Trace: blaine.gmane.org 1505851143 11452 195.159.176.226 (19 Sep 2017 19:59:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 19 Sep 2017 19:59:03 +0000 (UTC) To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 19 21:58:59 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 1duOfZ-0002bJ-0Q for ged-emacs-devel@m.gmane.org; Tue, 19 Sep 2017 21:58:57 +0200 Original-Received: from localhost ([::1]:45128 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duOfe-0005wq-UM for ged-emacs-devel@m.gmane.org; Tue, 19 Sep 2017 15:59:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duOfY-0005wg-GU for emacs-devel@gnu.org; Tue, 19 Sep 2017 15:58:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duOfV-0005r2-Cn for emacs-devel@gnu.org; Tue, 19 Sep 2017 15:58:54 -0400 Original-Received: from mail-io0-x230.google.com ([2607:f8b0:4001:c06::230]:56335) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1duOfV-0005hn-7e for emacs-devel@gnu.org; Tue, 19 Sep 2017 15:58:53 -0400 Original-Received: by mail-io0-x230.google.com with SMTP id m103so1725358iod.13 for ; Tue, 19 Sep 2017 12:58:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=94ACsoFqXVzNt0SCbc8otO0eJMRMGEMFAJpwsMVROt8=; b=dHSCuU8D1PMoKGM9MITSe9oKkt6zP3u5qM+e07ThtkS4ZC4lbwISbAenPTVmz388dT O/lLz4nFcRbqGZ2tr30xmdl1D85UbIvdKhDqYv7j36TrNgCtmgQGkottsC7k82SME501 MO0Oca9vT1wlRx22KE0oMeWXAE2utFW7U1G1n8U6Hdura3t1u83GsnhbjrY4mUjnpptg mGi7FqgW0OqpncFdb1hf43G2dU7xoJaIJvQsiNhF/IZspZb01ipwiHZpIg4llnPGDXa0 pDcAJ3+ypYAEhBoCL+2GKc4dxa71uZ8YvgM2bbDpKOasUZGcduT0Awn/D4vOT1qC+lo9 cQbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=94ACsoFqXVzNt0SCbc8otO0eJMRMGEMFAJpwsMVROt8=; b=ShTqpfmk1Pj43A8j9mS2vVG6VvTt7RDA0OcDNPifrqxEkX+63Hqa5INJWeAlPTvcVi 5UrV4WZLfxKIuecsdAwgPqeqakfBQAIy+xQJuiqQnzSnJmv1dVHTppFEg10LQu+ybqzy RpzSA1zDBDNaH7GpDA1Bk3vzUvtf5eIprU3VNP2ItyTYTSAO4AHbPORlHwe8/kMgKt7n CpHThnK2MjMuwEL5w7KTQGH1t+pgoA3uWSQBfnCdWFKyuX9uR4a5DcNfbCkemRlBSD2W lXmAbnkUSKurixBIDix8NgOuWWcs+UYdsHSILkIpYvs075weA6y/RnZi9Kc6rFy9aZo6 eajg== X-Gm-Message-State: AHPjjUiZ2YaacOH4eC6GVLLw3U24VNMnPzQcoWUxEjfxLm4DW1PfSFOB uj/oUI13kKj4QoPPOuPvdIfpoAAPJVmHulytoQGicg== X-Google-Smtp-Source: AOwi7QBtMDigzg/vp0JjvbB8acnsnuCGQe0//KSSLmkxwq8O3VcMDBPraxRaxIiP0EKOMrob6o9BOqdg1VbTKzsbMK8= X-Received: by 10.202.64.194 with SMTP id n185mr2625415oia.77.1505851119732; Tue, 19 Sep 2017 12:58:39 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c06::230 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:218543 Archived-At: --001a113dd434138e660559904908 Content-Type: text/plain; charset="UTF-8" Hi, I think it's generally expected that mode commands (both major and minor) are reasonably idempotent, i.e. calling them twice should have the same effects as calling them once (unless using 'toggle, of course). However, I couldn't find this requirement in the manual, should it be added to the "Modes" section? Philipp --001a113dd434138e660559904908 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I think it's generally expected= that mode commands (both major and minor) are reasonably idempotent, i.e. = calling them twice should have the same effects as calling them once (unles= s using 'toggle, of course). However, I couldn't find this requirem= ent in the manual, should it be added to the "Modes" section?

Philipp
--001a113dd434138e660559904908--