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: Tue, 19 Sep 2017 16:50:50 -0700 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1505865162 4333 195.159.176.226 (19 Sep 2017 23:52:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 19 Sep 2017 23:52:42 +0000 (UTC) User-Agent: Gnus/5.130016 (Ma Gnus v0.16) Emacs/25.2.50 (darwin) Cc: Emacs developers To: Philipp Stephani Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 20 01:52:36 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 1duSJe-0000lz-DR for ged-emacs-devel@m.gmane.org; Wed, 20 Sep 2017 01:52:34 +0200 Original-Received: from localhost ([::1]:45910 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duSJl-0001CR-LO for ged-emacs-devel@m.gmane.org; Tue, 19 Sep 2017 19:52:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36247) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duSJf-0001C1-Gj for emacs-devel@gnu.org; Tue, 19 Sep 2017 19:52:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duSJc-0002v8-Uz for emacs-devel@gnu.org; Tue, 19 Sep 2017 19:52:35 -0400 Original-Received: from mail-it0-x22f.google.com ([2607:f8b0:4001:c0b::22f]:55146) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1duSJc-0002uo-QG for emacs-devel@gnu.org; Tue, 19 Sep 2017 19:52:32 -0400 Original-Received: by mail-it0-x22f.google.com with SMTP id e134so1309115ite.3 for ; Tue, 19 Sep 2017 16:52:32 -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; bh=yGAJYhcvRnUG6pPR9HVJBLItauZ//cjPIJ75mkx0CVk=; b=fm5A8FL0HJym6zWWg9lC0yvKcfFScKo3Uft9irhoB+VENzbe6CUwPIrWpfI4YesyLn M5oZ9DEcf5qtA9QU6Vbg0a9IU4CeVCqZTlSJAQoPJKXXfGftpHd6ucTmhE5fcT5H6c6U wciU3JFu8ijVrfUOqGSneLxVP4jv29SJeon5FjgNwde9EA8IrsbLHFg5wTzqPBXsvUQy 30Q8A20NAMhUVUPZTTqTdlzJekC0sd1UX3dySSsJB6cq/NycSb5t75cKTWJjEG69ABxD izgh6EcWSvct0ML8Yg3kXSVeQIHQjvy4MxTUXUBnkYUFe9KpxncT9MxSaIQcyJwLynVE W9sg== 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; bh=yGAJYhcvRnUG6pPR9HVJBLItauZ//cjPIJ75mkx0CVk=; b=R/GNYAEvepmw+FqX7YJ3iKK3Xcyz5fYw2JpXFYC50msHhv2jwkPslImklCko1KghYe 3Sfh90IZtABgZHV3Cjk4TeKQlm6odhbmsWJ7yCiV/ZncheVLxPXHlS5Q95whhh4yh0f1 61Pvm6PDUtfn0v7SrllFPTJSJI1jAbJ/n8BzRXJoNVXeQL2CbC70z4QwbAtFSN2hFsV6 XEAyfpOvGVSuUdD1E/gyGYHD3bznqIUwgU1RYMJFOzfeSx2sf9hlVQQO1YjNvVbiC0zD gp7/BhQ9XSd2X8BDEaSKQ73i8k8Fumlf9cuUdwvyYh50LQGLUZGDM+5mjrgvTM1gqYTf Ne2A== X-Gm-Message-State: AHPjjUhvphVlLNu98rF5QrZoit/SSwCTU3JQtdagolXDgRDx0FVZ0ZDG Av1tfDOCnQDFvIPgCemAS4g= X-Google-Smtp-Source: AOwi7QArY17ev8eRR/lMows+tebR7uLSe5yqxHGQ+VXp0HVR9W3rJzlE0Fk5rXflrPLzInl+LDTeDg== X-Received: by 10.36.92.133 with SMTP id q127mr428150itb.31.1505865151994; Tue, 19 Sep 2017 16:52:31 -0700 (PDT) Original-Received: from Hermes.local ([12.40.199.14]) by smtp.gmail.com with ESMTPSA id w63sm237511iof.87.2017.09.19.16.52.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Sep 2017 16:52:31 -0700 (PDT) X-Google-Original-From: "John Wiegley" Original-Received: by Hermes.local (Postfix, from userid 501) id 8ECD42F29E01; Tue, 19 Sep 2017 16:52:30 -0700 (PDT) In-Reply-To: (Philipp Stephani's message of "Tue, 19 Sep 2017 19:58:28 +0000") Mail-Followup-To: Philipp Stephani , Emacs developers X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c0b::22f 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:218555 Archived-At: >>>>> "PS" == Philipp Stephani writes: PS> I think it's generally expected that mode commands (both major and minor) PS> are reasonably idempotent, i.e. calling them twice should have the same PS> effects as calling them once (unless using 'toggle, of course). However, I PS> couldn't find this requirement in the manual, should it be added to the PS> "Modes" section? Actually, I'm used to turning off minor modes by just calling their mode function a second time... -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2