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: problem of define-minor-mode while bootstrapping Date: Mon, 23 Sep 2002 14:27:47 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200209231827.g8NIRl430076@rum.cs.yale.edu> References: <200209210157.KAA05776@etlken.m17n.org> <200209222254.g8MMs8I26785@rum.cs.yale.edu> <200209230208.LAA07889@etlken.m17n.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1032805758 16527 127.0.0.1 (23 Sep 2002 18:29:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 23 Sep 2002 18:29:18 +0000 (UTC) Cc: monnier+gnu/emacs@rum.cs.yale.edu, emacs-devel@gnu.org, d.love@dl.ac.uk Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17tXxM-0004IR-00 for ; Mon, 23 Sep 2002 20:29: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 17tYdl-0007O4-00 for ; Mon, 23 Sep 2002 21:13:05 +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 17tXxO-0003tT-00; Mon, 23 Sep 2002 14:29:18 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17tXw7-0003sA-00 for emacs-devel@gnu.org; Mon, 23 Sep 2002 14:27:59 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17tXw3-0003rx-00 for emacs-devel@gnu.org; Mon, 23 Sep 2002 14:27:58 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17tXw3-0003rt-00 for emacs-devel@gnu.org; Mon, 23 Sep 2002 14:27:55 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g8NIRl430076; Mon, 23 Sep 2002 14:27:47 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Kenichi Handa 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:8125 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:8125 > In article <200209222254.g8MMs8I26785@rum.cs.yale.edu>, "Stefan Monnier" writes: > >> What I want is to make this work well at bootstrapping time > >> because now ucs-tables.el is preloaded. > > > Does it not work right now ? > > Yes, but it works right just because > (ucs-unify-8859 'encode-only) > is explicitly called after loading ucs-tables.el. > > > Why is it worse ? It's the programmer's responsability to > > make sure that the init-value is consistent with the state > > of Emacs when the file is loaded. > > That's what I didn't know. When I see the previous code of > define-minor-mode, I thought that it's the responsibility of > define-minor-mode to synchronize the Emacs's status with > :init-value. So, it appears to me that your change just > gives it up. Well, it's just that I'm not sure which way it should work, I guess. > If it's the programmer's responsibility, it is cleaner that > we have this line: > (ucs-unify-8859 'encode-only) > just after (define-minor-mode unify-8859-on-encoding-mode > ...) in ucs-tables.el than having it in loadup.el. Maybe. I have no opinion on that one. > > If you want it to be automatic, then what's wrong with the code > > suggested above to which you said "No" ? > > Because it doesn't solve the original problem, i.e., > eval-after-load doesn't work at bootstrapping time. Doesn't it ? Why not ? Stefan