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: Fri, 11 Dec 2015 15:35:09 +0000 Message-ID: <87d1udxaky.fsf@russet.org.uk> References: <87h9jqo9a5.fsf@russet.org.uk> <83wpsm9skk.fsf@gnu.org> <87y4d22c7f.fsf@russet.org.uk> <831tata1mg.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1449848136 28821 80.91.229.3 (11 Dec 2015 15:35:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Dec 2015 15:35:36 +0000 (UTC) Cc: Glenn Morris , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 11 16:35:32 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 1a7PjB-0003VV-RR for ged-emacs-devel@m.gmane.org; Fri, 11 Dec 2015 16:35:25 +0100 Original-Received: from localhost ([::1]:48185 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7PjA-0005Qz-Vu for ged-emacs-devel@m.gmane.org; Fri, 11 Dec 2015 10:35:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7Pj6-0005Qj-DM for emacs-devel@gnu.org; Fri, 11 Dec 2015 10:35:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a7Pj5-0005n2-9X for emacs-devel@gnu.org; Fri, 11 Dec 2015 10:35:20 -0500 Original-Received: from cheviot12.ncl.ac.uk ([128.240.234.12]:60653) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7Piz-0005lA-Tf; Fri, 11 Dec 2015 10:35:14 -0500 Original-Received: from smtpauth-vm.ncl.ac.uk ([10.8.233.129] helo=smtpauth.ncl.ac.uk) by cheviot12.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1a7Piv-0008JI-C3; Fri, 11 Dec 2015 15:35:09 +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 1a7Piv-0000P0-Jt; Fri, 11 Dec 2015 15:35:09 +0000 In-Reply-To: <831tata1mg.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 11 Dec 2015 09:24:55 +0200") 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.12 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:196115 Archived-At: Eli Zaretskii writes: >> From: phillip.lord@russet.org.uk (Phillip Lord) >> Cc: >> Date: Thu, 10 Dec 2015 22:03:32 +0000 >> >> So, quite a lot of files seem to set generated-autoload-file to >> loaddefs.el which seems a bit odd (since it's the default). > > Only in lisp/cedet/, I think. I'm guessing this is the result of > integrating CEDET. If you want the details, maybe the CEDET people > and/or Chong (which did most of the work) could tell you the reasons > for that. I suggest to look at Git logs and maybe ask them Or maybe > Glenn (CC'ed) remembers. It's not a disaster either way. >> I am not sure why only reftex.el causes me problems -- why not the >> others, I wonder? > > Probably because the range of versions you tried to bisect didn't > touch the others. It obviously depends on which files whose autoloads > are there are modified by the commits you are bisecting. Yes, I guess that is true. >> Also, the changed line is actually this... >> >> >> +;;;### (autoloads nil "reftex-auc" "reftex-auc.el" "7c0e0b46919f4ceefe1026e31e73ebcd") >> >> which is a comment. I don't know what this line does in the autoload >> process. > > It's documented in the ELisp manual. Which parts are unclear? I did re-read the elisp manual, of course, and I can't find anything which documents this; it describes comments in files to be autoloaded, but not the autoloads. I tracked the source code, and it's inserted by `autoload-insert-section-header'. Deep in the bowels of autoload.el, there is a call to this which is documented like this: ;; MD5 checksums are much better because they do not ;; change unless the file changes (so they'll be ;; equal on two different systems and will change ;; less often than time-stamps, thus leading to fewer ;; unneeded changes causing spurious conflicts), but ;; using time-stamps is a very useful optimization, ;; so we use time-stamps for the main autoloads file ;; (loaddefs.el) where we have special ways to ;; circumvent the "random change problem", and MD5 ;; checksum in secondary autoload files where we do ;; not need the time-stamp optimization because it is ;; already provided by the primary autoloads file. So, it's a checksum (not a git commit which was my first thought) of the file contents (except in loaddefs.el when it's a timestamp). So it will update whenever reftex-auc changes whether the autoloads need to change or not. Phil