From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: Should mode commands be idempotent? Date: Sat, 23 Sep 2017 10:05:00 +0200 Message-ID: <55da155a-03b1-d3ed-4036-12e5a60fa26c@gmail.com> References: < <<9f11a3c6-b113-4bf6-9dab-f894b2ad77b5@default> < NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1506159937 20489 195.159.176.226 (23 Sep 2017 09:45:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 23 Sep 2017 09:45:37 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 23 11:45:28 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 1dvh03-0004oA-SQ for ged-emacs-devel@m.gmane.org; Sat, 23 Sep 2017 11:45:27 +0200 Original-Received: from localhost ([::1]:34239 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dvh08-0007rm-Rg for ged-emacs-devel@m.gmane.org; Sat, 23 Sep 2017 05:45:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dvgyv-0007p2-Ex for emacs-devel@gnu.org; Sat, 23 Sep 2017 05:44:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dvgyq-0004CV-KA for emacs-devel@gnu.org; Sat, 23 Sep 2017 05:44:17 -0400 Original-Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]:49412) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dvgyq-0004C7-EN for emacs-devel@gnu.org; Sat, 23 Sep 2017 05:44:12 -0400 Original-Received: by mail-wm0-x233.google.com with SMTP id r74so8992243wme.4 for ; Sat, 23 Sep 2017 02:44:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=a7VciNB0BD991qSGjaGuWR/ZDni/WJa7CNT9tCSLh6o=; b=FhNVTg+ggu4u0v6jlYF/0RvX5ymx3bZ06l9CVOMbqp/89Up3MSdj+mpkYzoIx1qmcS +IRfPqL+KrtKhmrVhw+l/WCl001B9kyeTlzLfHTHfahevSuQj7qAnVr7GC0g7vng40jy fH1beUDZ1Ht/MIseFmtnGxgr8OySzi+rxVvOysucAcEXm52aigtbHulb/JQo1XErgUd9 Obo2Emz8Wpb7ctVprssMbjBxXcP+WLCp5SpvDBEx6Sja9lUDvV5R7UyLvDYn7YU+Bl22 N/GWDbNJA+klg1rrVnU1P8iVThc9Jfp9NBVPje1QGncNKaSIYW7P7fG0+v13OHwFr2SC aJvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=a7VciNB0BD991qSGjaGuWR/ZDni/WJa7CNT9tCSLh6o=; b=so+Agps3LBv8MVj/sFdzgGmKINWh/LEB26xnLGwI1E8iPgM1RetwQdUVJBWPjAWmnD EoX9U/H5d5RTefIuIw7HwRcnkzulSCvwDIjnq6NIda3xhV5pj0vLnVnwz1012GqmtiUZ UakETJnAvDFf63kSOICSlPlnL56i4By94g/qzzrgCZ7mfCRHXbNOdVMrpZ3RLiG1Ih1r Hr0QUAXiQaKghIWO05VbpEkdWXg9y2ImgAlToa2db+4Lx8XlqOun7CJCfuY8SIeriHpf CG4y96wlP8zYJ+dLh00UF+QuXB9lZAQkm6xrLJYwKSdFsendGeSYoC/8uyUdGi9M4ClI O8lQ== X-Gm-Message-State: AHPjjUj+EvzsKcmIHt329nnXbIF78iZm5/eVtvCFC6feWkUgBqTtoshX 5eqiBL5YKfgX2knr5ZgUa+DKlsKL+wY= X-Google-Smtp-Source: AOwi7QDwIuyoVpU+cP+seXHOllz4Fy8OVfrAG6oAGw+2o6OtaozJVZcDuGcIOpYGRN8klz9TAjU/nQ== X-Received: by 10.28.147.199 with SMTP id v190mr5619834wmd.24.1506159850834; Sat, 23 Sep 2017 02:44:10 -0700 (PDT) Original-Received: from [192.168.43.95] ([37.169.175.60]) by smtp.gmail.com with ESMTPSA id o59sm3430994wrc.45.2017.09.23.02.44.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Sep 2017 02:44:10 -0700 (PDT) In-Reply-To: Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::233 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:218720 Archived-At: On 2017-09-22 17:54, Drew Adams wrote: > Has someone actually reported a problem that s?he ran into by > encountering an actual mode function that was not idempotent? I think I mentioned visual-line-mode; the fact that it's not idempotent is a concrete (though minor) problem for me. I enable it in a hook, and a major mode that I use enables it too. Due to the way visual-line-mode works, disabling it after this doesn't restore my original settings. Clément.