From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: custom-set-variables fails to set variable Date: Fri, 11 Nov 2005 22:38:27 -0500 Message-ID: References: <11859.1131656026@olgas.newt.com> <87lkzwxduk.fsf@olgas.newt.com> <200511110043.jAB0hhc17895@raven.dms.auburn.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1131766820 28028 80.91.229.2 (12 Nov 2005 03:40:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 12 Nov 2005 03:40:20 +0000 (UTC) Cc: p.galbraith@globetrotter.net, wohler@newt.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 12 04:40:18 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EamEX-0001pJ-7T for ged-emacs-devel@m.gmane.org; Sat, 12 Nov 2005 04:39:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EamEW-00023M-9G for ged-emacs-devel@m.gmane.org; Fri, 11 Nov 2005 22:39:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EamDl-0001nJ-7V for emacs-devel@gnu.org; Fri, 11 Nov 2005 22:38:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EamDk-0001mu-Hh for emacs-devel@gnu.org; Fri, 11 Nov 2005 22:38:28 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EamDk-0001mp-B0 for emacs-devel@gnu.org; Fri, 11 Nov 2005 22:38:28 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EamDk-0005nk-Ht for emacs-devel@gnu.org; Fri, 11 Nov 2005 22:38:28 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1EamDj-0002Ne-FD; Fri, 11 Nov 2005 22:38:27 -0500 Original-To: Luc Teirlinck In-reply-to: <200511110043.jAB0hhc17895@raven.dms.auburn.edu> (message from Luc Teirlinck on Thu, 10 Nov 2005 18:43:43 -0600 (CST)) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:45793 Archived-At: Why does define-minor-mode need to defvar the mode hook? There is no need to defvar hooks. `add-hook' can perfectly handle unbound hook variables. I propose that we revert this change in define-derived-mode. I agree, if we can't find a better solution. Another possible solution is to autoload the defcustoms for these particular variables. Would that work? A more automatic solution could be: define-derived-mode could automatically produce an autoload definition of the defvar. That would solve the problem, right? It is not normal for update-file-autoloads to generate an autoload with no autoload cookie, but we could do that.