From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Peter S Galbraith Newsgroups: gmane.emacs.help Subject: Re: Coding Convections - Enabling a feature by loading a file Date: Wed, 04 Jun 2003 20:47:36 -0400 Organization: Debian GNU/Linux - www.debian.org Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <2600.1054774056@mixed.dyndns.org> References: <5lsmqph7g6.fsf@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1054774643 14478 80.91.224.249 (5 Jun 2003 00:57:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 5 Jun 2003 00:57:23 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 05 02:57:21 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Nj4D-0003lM-00 for ; Thu, 05 Jun 2003 02:57:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19NixD-0008TA-Md for gnu-help-gnu-emacs@m.gmane.org; Wed, 04 Jun 2003 20:50:07 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19Nivi-0007Hw-1c for help-gnu-emacs@gnu.org; Wed, 04 Jun 2003 20:48:34 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19NivT-00079c-Vj for help-gnu-emacs@gnu.org; Wed, 04 Jun 2003 20:48:21 -0400 Original-Received: from client-142.169.122-137.globetrotter.net ([142.169.122.137] helo=mixed.dyndns.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19Niun-0006lP-Gx for help-gnu-emacs@gnu.org; Wed, 04 Jun 2003 20:47:37 -0400 Original-Received: by mixed.dyndns.org (Postfix, from userid 1000) id DC96543F00; Wed, 4 Jun 2003 20:47:37 -0400 (EDT) Original-Received: from mixed.dyndns.org (localhost [127.0.0.1]) by mixed.dyndns.org (Postfix) with ESMTP id D708214CC7 for ; Wed, 4 Jun 2003 20:47:37 -0400 (EDT) Original-To: help-gnu-emacs@gnu.org In-Reply-To: Message from Stefan Monnier <5lsmqph7g6.fsf@rum.cs.yale.edu> X-Mailer: MH-E 7.3+cvs; nmh 1.1-RC1; GNU Emacs 21.3.2 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXdqJqlZmK9g3wVCxJy T1bk7/pWGBne5vMHXo54AAACXUlEQVR4nF2TQW/bMAyFVS9brqPr9SypQXcOFORcOap7DYYJ us6wx13XIoL+/h7lZG3KxAfrAx8fKVrFmNLJvQt2j7mUpGKK+Qo4t1unUir4dA2mPmUASB2u AbvvyMgxfVBy+8OvRepKiSc8uyoVPygh5sVVBTwHZp72jOJuV2tUMAci6sIgSgCfpUYG2Hlr LbXWmgHnzj2Xs9RoayilDLsFlCrVW7JWK4lOMp6iijlVgNDNf/KUVC5voJ6rBu/PUeW3DHWO wyQANU4fwK1zv2uDPxegL+ABNcRu+nEFrFotIMbj5HqD7lSjbeetXu0v4OD6TQgBjXc8t3qz n77V+zhCqgthmPtm4NkTMT9lGSKAl/nxaLq5JdLD9CeKq7+TC3LOc+c99NSGn8WudNgNs+94 bHoiuFvNuY49b5wNweOvWiO2b3zM4iqf9hbSFFrV1P6bPkVZn5yCJTJdaHVDdTBtWvYqb6xc rEcGSf/anxcur3CtegOgDB61DrnWiOmlpdbAqzampsyljiTF17buyAyzrW3Uar+AkivAtMia FhlfdrJwsJuPZCTDt9p4rfT9trrCOiRo0yAJw4iM+205F48vhgxmZbsRxfXhcZFCi7CFu2D4 whLZeQ1QJCEfe7KE9dUKwMzriE0sOYFRDVhqMBYOOguI+Eg3/gyUAOavF7BaAGaOGgAsQD7r UwgV1LgA/Mqr9LcAcwEYSYlNJxN5n4FtR8opCBA1wuXyeMfSR0nldivnDGTINjzSXZUqJzfS kiEf4g0zQBSzD7z1Fyl7BugiJZ52JEW8OFYAd/wPmIcEShWCTbsAAAAASUVORK5CYII= X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10648 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10648 Stefan Monnier wrote: > >>>>> "Peter" == Peter S Galbraith writes: > > feature'). But what is the rationale behind the loading of a package > > having no visisble effect? If the only purpose of a package is to > > A package might be loaded implicitly by something like `customize' > just to get the list of groups/variables it offers. You wouldn't > want to turn a feature ON just because you're browsing some of the > related variables (you might even be browsing something that you didn't > know was related). But this is only true if its defcustoms are copied to another file, right? How else could it get loaded? Or do you mean if the user loads it in order to see its customizations? > > (require 'bar-cursor) > > (bar-cursor-mode 1) > > instead of only: > > (require 'bar-cursor) > > It should be only > > (bar-cursor-mode 1) > > because bar-cursor-mode should be autoloaded. But this is only true if autoloads are generated. Is it standard practice to do that for files added to someones site directory or for a user under $HOME? I know I've never done that (I might start now that I think of it). I'm not talking about a file are is part of Emacs, but one distributed separately. How strongly should we adhere to that coding convention? Thanks! -- Peter S. Galbraith, Debian Developer http://people.debian.org/~psg GPG key 1024/D2A913A1 - 97CE 866F F579 96EE 6E68 8170 35FF 799E