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: Sat, 12 Dec 2015 18:24:24 +0000 Message-ID: <877fkj1q5j.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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1449944701 18272 80.91.229.3 (12 Dec 2015 18:25:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Dec 2015 18:25:01 +0000 (UTC) Cc: Glenn Morris , Eli Zaretskii , emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 12 19:24:53 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 1a7oqf-0003HI-VX for ged-emacs-devel@m.gmane.org; Sat, 12 Dec 2015 19:24:50 +0100 Original-Received: from localhost ([::1]:52669 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7oqf-0000XK-49 for ged-emacs-devel@m.gmane.org; Sat, 12 Dec 2015 13:24:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33756) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7oqX-0000Wl-9C for emacs-devel@gnu.org; Sat, 12 Dec 2015 13:24:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a7oqS-0001EI-IU for emacs-devel@gnu.org; Sat, 12 Dec 2015 13:24:41 -0500 Original-Received: from cheviot22.ncl.ac.uk ([128.240.234.22]:56164) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7oqL-0001Bn-Iq; Sat, 12 Dec 2015 13:24:29 -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 1a7oqI-0002q9-DY; Sat, 12 Dec 2015 18:24:26 +0000 Original-Received: from cpc6-benw10-2-0-cust45.gate.cable.virginm.net ([92.238.179.46] helo=localhost) by smtpauth.ncl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1a7oqH-0004BH-R5; Sat, 12 Dec 2015 18:24:25 +0000 In-Reply-To: <566B2BFC.1070802@cs.ucla.edu> (Paul Eggert's message of "Fri, 11 Dec 2015 12:03:08 -0800") 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:196171 Archived-At: Paul Eggert writes: > On 12/11/2015 09:46 AM, Glenn Morris wrote: >> I don't see a need to change something that works. >> > > But it doesn't work. At least, not for me. Too often I deal with spurious > autoloads-related diffs that get in the way of real work. I often see them in > 'git diff' output and have to remember that they're not real diffs. Once or > twice I even committed them by accident to my own repository. > > This problem has been a nagging low-level build hassle for some time. It's not > urgent to fix. But if someone has the time, it'd be nice to fix it. I am reticent to change things which I don't fully understand, so here is my understanding of the world at the moment. AFAICT, the use of autoloads in reftex.el started with 41116c5a in 2014-03, which was Glenn's commit. The idea is, I think, that reftex defines a number of "global" autoloads, as well as a set of internal autoloads. Loading reftex runs the internal autoloads which then load the rest of reftex lazily. If this is the case, I can see no reason why the autoloads cannot be redirected to reftex-loaddefs.el which is not versioned, and have reftex.el require this (I have tried this and it seems to work). I'm also a little uncertain why the "internal" and "global" autoloads is necessary. Is is just for performance? On my machine, reftex and associated files load in somewhat less than a tenth of a second. Why not put all autoloads into loaddefs.el? Phil