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: Wed, 21 Aug 2002 11:29:04 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200208211529.g7LFT5e24786@rum.cs.yale.edu> References: <200208192055.g7JKttB15245@rum.cs.yale.edu> <200208210012.g7L0CLQ10068@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 1029944057 17239 127.0.0.1 (21 Aug 2002 15:34:17 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 21 Aug 2002 15:34:17 +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 17hXUu-0004Tv-00 for ; Wed, 21 Aug 2002 17:34:16 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17hXxM-0006cQ-00 for ; Wed, 21 Aug 2002 18:03:40 +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 17hXW3-0005Mk-00; Wed, 21 Aug 2002 11:35:27 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17hXPx-0004W8-00 for emacs-devel@gnu.org; Wed, 21 Aug 2002 11:29:09 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17hXPt-0004VA-00 for emacs-devel@gnu.org; Wed, 21 Aug 2002 11:29:08 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17hXPt-0004Uu-00; Wed, 21 Aug 2002 11:29:05 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g7LFT5e24786; Wed, 21 Aug 2002 11:29:05 -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:6733 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6733 > I see that all the minor-mode-like things in the menu-bar > do (customize-mark-as-set 'foo). I also saw Per's comment > that this should only be done when the command is executed > interactively. > > Is there any reason why it's only executed when run from the > menu-bar rather than from M-x ? > > It might be the right thing to do, and I was thinking about it, > but it calls for a lot of thought. > > 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. > Users have written plenty of such minor mode commands. Actually very few of them use `define-minor-mode' and even fewer of them use `:global t'. But the point of the change is indeed to make it apply to many more places, so I don't want to minimize its impact. > Maybe it would be better if none of these commands updated .emacs > itself, and instead there were another command in the Options menu to > save the options that you can (or that you have) set with the Options > menu. I don't understand. It's already the current behavior AFAIU. Stefan