From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: customize-mark-as-set for M-x foo-mode Date: Thu, 22 Aug 2002 11:23:47 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200208221523.g7MFNlJ28878@rum.cs.yale.edu> References: <200208192055.g7JKttB15245@rum.cs.yale.edu> <200208210012.g7L0CLQ10068@wijiji.santafe.edu> <200208211529.g7LFT5e24786@rum.cs.yale.edu> <200208220157.g7M1vs110540@wijiji.santafe.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1030029868 32534 127.0.0.1 (22 Aug 2002 15:24:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 22 Aug 2002 15:24:28 +0000 (UTC) Cc: monnier+gnu/emacs@rum.cs.yale.edu, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17htov-0008SX-00 for ; Thu, 22 Aug 2002 17:24:25 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17huHr-00068H-00 for ; Thu, 22 Aug 2002 17:54:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17htq6-0007iK-00; Thu, 22 Aug 2002 11:25:38 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17htoM-0007Xn-00 for emacs-devel@gnu.org; Thu, 22 Aug 2002 11:23:50 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17htoK-0007Wz-00 for emacs-devel@gnu.org; Thu, 22 Aug 2002 11:23:49 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17htoJ-0007Wt-00; Thu, 22 Aug 2002 11:23:47 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g7MFNlJ28878; Thu, 22 Aug 2002 11:23:47 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Richard Stallman Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:6762 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6762 > > For one thing, there are only a few modes you can control with the > > menu bar, but there are dozens, maybe hundreds, you can control > > with commands. Should all of them update your .emacs file? > > Maybe they should, but that is a lot of change. > > AFAIK customize-mark-as-set does not itself update the .emacs file. > It just marks the variable as "changed by customize" rather > than "changed by some external thingy". It might indeed cause the > variable to be saved later on if you custom-save-all. I don't know > how important that is. > > Please excuse my inadequate memory. I see no possible harm in marking > the variable as changed. So the question is simply whether we should try > to change as many minor modes as possible, or only some of them, or none. Indeed. I obviously think that "as many as possible" is the right answer. > If we succeed in changing most minor modes this way, but a few > (perhaps user-implemented) remain unchanged, will the inconsistency be > confusing, or will that be better than nothing? There are already many inconsistencies in the various hand-crafted minor-modes: lack of minor-mode hook, omission of (force-mode-line-update), "wrong" return value, lack of minibuffer message, lack of optional argument, unnecessary requirement that there be an argument, ... Also why should `Options => Show => Tool Bar' change my customize settings but not M-x tool-bar-mode ? That doesn't seem consistent since the two do just the same (it seems). Obviously, I also agree that we should try to switch as many minor modes over to the wonders of `define-minor-mode'. Stefan