From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: Re: reftex.el autoloads Date: Tue, 15 Dec 2015 14:33:49 -0500 Message-ID: <0ltwnjbj6q.fsf@fencepost.gnu.org> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1450208184 6450 80.91.229.3 (15 Dec 2015 19:36:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Dec 2015 19:36:24 +0000 (UTC) Cc: Eli Zaretskii , eggert@cs.ucla.edu, emacs-devel@gnu.org To: phillip.lord@russet.org.uk (Phillip Lord) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 15 20:36:10 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 1a8vOJ-0003iA-Cd for ged-emacs-devel@m.gmane.org; Tue, 15 Dec 2015 20:36:07 +0100 Original-Received: from localhost ([::1]:38871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8vOI-0003rU-L5 for ged-emacs-devel@m.gmane.org; Tue, 15 Dec 2015 14:36:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46403) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8vO3-0003rN-3d for emacs-devel@gnu.org; Tue, 15 Dec 2015 14:35:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a8vO2-0007KA-8c for emacs-devel@gnu.org; Tue, 15 Dec 2015 14:35:51 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59585) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8vM6-0006s1-T2; Tue, 15 Dec 2015 14:33:50 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1a8vM5-0005Mb-Qn; Tue, 15 Dec 2015 14:33:49 -0500 X-Spook: Noriega csystems emc Vickie Weaver terrorism industrial X-Ran: (Phillip Lord's message of "Sun, 13 Dec 2015 22:11:14 +0000") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:196328 Archived-At: 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. >> 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.