From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@russet.org.uk (Phillip Lord) Newsgroups: gmane.emacs.devel Subject: Re: reftex.el autoloads Date: Wed, 16 Dec 2015 17:15:07 +0000 Message-ID: <87zixagvs4.fsf@russet.org.uk> References: <87h9jqo9a5.fsf@russet.org.uk> <83wpsm9skk.fsf@gnu.org> <87y4d22c7f.fsf@russet.org.uk> <831tata1mg.fsf@gnu.org> <87d1udxaky.fsf@russet.org.uk> <83mvth6jsa.fsf@gnu.org> <87poycvrp7.fsf@russet.org.uk> <566B2BFC.1070802@cs.ucla.edu> <877fkj1q5j.fsf@russet.org.uk> <83si375x03.fsf@gnu.org> <8737v71oo0.fsf@russet.org.uk> <83r3ir5vrb.fsf@gnu.org> <87y4czz7ul.fsf@russet.org.uk> <83oadv58fm.fsf@gnu.org> <87h9jmks0u.fsf@russet.org.uk> <87zixexam5.fsf@russet.org.uk> <0ltwnjbj6q.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1450286203 21486 80.91.229.3 (16 Dec 2015 17:16:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Dec 2015 17:16:43 +0000 (UTC) Cc: Eli Zaretskii , eggert@cs.ucla.edu, emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 16 18:16:38 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a9Fgq-0004zV-U7 for ged-emacs-devel@m.gmane.org; Wed, 16 Dec 2015 18:16:37 +0100 Original-Received: from localhost ([::1]:48505 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9Fgp-0002Rp-SU for ged-emacs-devel@m.gmane.org; Wed, 16 Dec 2015 12:16:35 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9Ffb-0001t9-LZ for emacs-devel@gnu.org; Wed, 16 Dec 2015 12:15:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9FfV-0003LO-V8 for emacs-devel@gnu.org; Wed, 16 Dec 2015 12:15:19 -0500 Original-Received: from cheviot22.ncl.ac.uk ([128.240.234.22]:49608) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9FfQ-0003CU-MQ; Wed, 16 Dec 2015 12:15:08 -0500 Original-Received: from smtpauth-vm.ncl.ac.uk ([10.8.233.129] helo=smtpauth.ncl.ac.uk) by cheviot22.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1a9FfP-0004jF-G0; Wed, 16 Dec 2015 17:15:08 +0000 Original-Received: from jangai.ncl.ac.uk ([10.66.67.223] helo=localhost) by smtpauth.ncl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1a9FfP-0007GZ-Pl; Wed, 16 Dec 2015 17:15:07 +0000 In-Reply-To: <0ltwnjbj6q.fsf@fencepost.gnu.org> (Glenn Morris's message of "Tue, 15 Dec 2015 14:33:49 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 128.240.234.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:196391 Archived-At: Glenn Morris writes: > Phillip Lord wrote: > >>>> 2) Just putting the autoloads into loaddefs.el. >>> >>> That's just plain wrong. Please don't do that. >> >> It may be wrong, but it's not plain. I assumed that there was a reason >> for not doing this. But I still do not understand what that reason is. >> Can you please tell me what is wrong with it, because I cannot figure it >> out? > > I don't know if I can explain it well. > Basically, code should be loaded where it needs to be loaded, not at the > global level to work around some perceived problem with the toolchain. Yep, well that is the point of autoloads, and that would be true where ever the autoloads are. In this case, you mean "autoloads should be loaded only when the functions that they load might need to be loaded, as opposed to a global when they might need to be loaded, but less might". Still, it's not worth arguing about that much. I can maintain the status quo in this respect, so I will do, even if I think it should be simplified further. > >>> to load foo-loadefs.el (which in many cases will be tiny files). >> >> Yes, some of them are pretty small. > > That was the traditional deciding criterion. > > http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00264.html > > The reftex example is surely on the wrong side of that, but as the > commit message says, it was replacing prevous hand-written autoloads > that were in reftex.el. There's actually a bionomial distribution -- about half the files are under 10, and the other half average around 50 (starting at 20). But I see no point in moving half, and will just do them all. Phil