From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: Spurious "file errors" when making master Date: Sun, 29 May 2016 10:35:58 -0700 Organization: UCLA Computer Science Department Message-ID: <574B287E.2010200@cs.ucla.edu> References: <5746A61F.3030406@gmx.at> <5746A78B.6050202@cs.ucla.edu> <5746B1B0.6070208@gmx.at> <83h9dk3l76.fsf@gnu.org> <574848EF.9080307@gmx.at> <834m9j1vpf.fsf@gnu.org> <57484CF3.6000709@gmx.at> <8337p31ucx.fsf@gnu.org> <574852C1.7010603@gmx.at> <83y46vziqp.fsf@gnu.org> <574978E1.9010301@cs.ucla.edu> <574AF23F.5050503@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010401040808070706020108" X-Trace: ger.gmane.org 1464543425 32098 80.91.229.3 (29 May 2016 17:37:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 29 May 2016 17:37:05 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 29 19:36:53 2016 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 1b74dw-0001tY-SE for ged-emacs-devel@m.gmane.org; Sun, 29 May 2016 19:36:53 +0200 Original-Received: from localhost ([::1]:56513 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b74dw-0007XG-6t for ged-emacs-devel@m.gmane.org; Sun, 29 May 2016 13:36:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50925) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b74dD-0007WE-7A for emacs-devel@gnu.org; Sun, 29 May 2016 13:36:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b74dB-0004Qx-9i for emacs-devel@gnu.org; Sun, 29 May 2016 13:36:06 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:59213) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b74d6-0004Qb-74; Sun, 29 May 2016 13:36:00 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 2D8AD1613FB; Sun, 29 May 2016 10:35:59 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id ywawYkOUiILJ; Sun, 29 May 2016 10:35:58 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 6944E1613F8; Sun, 29 May 2016 10:35:58 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id K-4JDxTtKfEK; Sun, 29 May 2016 10:35:58 -0700 (PDT) Original-Received: from [192.168.1.9] (unknown [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 47ACC1613F2; Sun, 29 May 2016 10:35:58 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 In-Reply-To: <574AF23F.5050503@gmx.at> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:204133 Archived-At: This is a multi-part message in MIME format. --------------010401040808070706020108 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable martin rudalics wrote: > The messages printed > by your patch are: > > emacs-repository--version-git-1 /home/martin/emacs-git/release/.git/HEA= D > /home/martin/emacs-git/release/.git > emacs-repository--version-git-1 > /home/martin/emacs-git/release/.git/refs/heads/master > /home/martin/emacs-git/release/.git What is the contents of /home/martin/emacs-git/release/.git/refs/heads/ma= ster?=20 What happens if you try the attached patch instead? On my system, it outp= uts this: ... Loading leim/leim-list.el (source)... emacs-repository--version-git-1=20 /home/eggert/src/gnu/emacs/static-checking/.git/HEAD=20 /home/eggert/src/gnu/emacs/static-checking/.git emacs-repository--version-git-1=20 /home/eggert/src/gnu/emacs/static-checking/.git/refs/heads/master=20 /home/eggert/src/gnu/emacs/static-checking/.git emacs-repository--version-git-1 returns 062757dca01cff127583438ae16237af5= 5b6253c emacs-repository--version-git-1 returns 062757dca01cff127583438ae16237af5= 5b6253c Finding pointers to doc strings... Finding pointers to doc strings...done ... --------------010401040808070706020108 Content-Type: text/x-diff; name="version.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="version.patch" diff --git a/lisp/version.el b/lisp/version.el index dc22887..1b18e23 100644 --- a/lisp/version.el +++ b/lisp/version.el @@ -118,6 +118,8 @@ emacs-repository-version-git =20 (defun emacs-repository--version-git-1 (file dir) "Internal subroutine of `emacs-repository-get-version'." + (message "emacs-repository--version-git-1 %s %s" file dir) + (let ((result (when (file-readable-p file) (with-temp-buffer (insert-file-contents file) @@ -127,6 +129,9 @@ emacs-repository--version-git-1 (emacs-repository--version-git-1 (expand-file-name (match-string 1) dir) dir)))))) + ) + (message "emacs-repository--version-git-1 returns %s" result) + result)) =20 (defun emacs-repository-get-version (&optional dir external) "Try to return as a string the repository revision of the Emacs source= s. --------------010401040808070706020108--