From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#23692: 25.1.50; Package.el gets confused if file has no autoloads (could be a bug in update-directory-autoloads) Date: Mon, 13 Jun 2016 20:40:24 -0400 Message-ID: References: <5751FEC2.5080807@live.com> <22y46lx4yq.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1465864896 2817 80.91.229.3 (14 Jun 2016 00:41:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Jun 2016 00:41:36 +0000 (UTC) Cc: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel , 23692@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 14 02:41:24 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1bCcPr-0007gp-FI for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Jun 2016 02:41:15 +0200 Original-Received: from localhost ([::1]:60239 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCcPq-0002iQ-SM for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Jun 2016 20:41:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCcPi-0002gs-VT for bug-gnu-emacs@gnu.org; Mon, 13 Jun 2016 20:41:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bCcPd-0006Fk-Vs for bug-gnu-emacs@gnu.org; Mon, 13 Jun 2016 20:41:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55311) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCcPd-0006Fg-Ss for bug-gnu-emacs@gnu.org; Mon, 13 Jun 2016 20:41:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bCcPd-0000iT-O6 for bug-gnu-emacs@gnu.org; Mon, 13 Jun 2016 20:41:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 Jun 2016 00:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23692 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23692-submit@debbugs.gnu.org id=B23692.14658648292521 (code B ref 23692); Tue, 14 Jun 2016 00:41:01 +0000 Original-Received: (at 23692) by debbugs.gnu.org; 14 Jun 2016 00:40:29 +0000 Original-Received: from localhost ([127.0.0.1]:39415 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bCcP7-0000eU-6k for submit@debbugs.gnu.org; Mon, 13 Jun 2016 20:40:29 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:36314) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bCcP5-0000e9-KK for 23692@debbugs.gnu.org; Mon, 13 Jun 2016 20:40:28 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id u5E0eOB5001651; Mon, 13 Jun 2016 20:40:25 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 7E8A3AE580; Mon, 13 Jun 2016 20:40:24 -0400 (EDT) In-Reply-To: (Glenn Morris's message of "Mon, 13 Jun 2016 14:33:49 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5705=0 X-NAI-Spam-Version: 2.3.0.9418 : core <5705> : inlines <4929> : streams <1651552> : uri <2230253> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:119524 Archived-At: > i) I guess now autoload will sometimes not create any output file. I think this shouldn't happen. Both in the sense that it would be a bug, and that my understanding of the code makes me think it won't happen. We create the file before we even try to update it. > ii) I wonder what this means for reproducibility of the loaddefs file. Good question. > iii) Would applying a move-if-change style logic be better? Could be, indeed. My only motivation for the original patch was to avoid repeatedly re-dumping Emacs even when no significant change had happened. I wrote the patch years ago, and at that point the time-stamps were always different, so the buffer's content was definitely changed, tho in ways which had no impact on the dump, so "move-if-changed" was not an option. Now that we avoid time-stamps maybe we can actually compare the buffer's content with the file and skip saving if it's identical. Stefan