GNU bug report logs - #18481
vc/vc-git.el: use `with-demoted-errors' instead of `ignore-errors'.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Emilio Lopes <eclig@HIDDEN>; dated Mon, 15 Sep 2014 13:43:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 15 Sep 2014 13:43:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 15 09:43:01 2014
Received: from localhost ([127.0.0.1]:41277 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XTWYV-0004Va-S5
	for submit <at> debbugs.gnu.org; Mon, 15 Sep 2014 09:43:00 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58839)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <lopes.emilio@HIDDEN>) id 1XTWYR-0004VP-G8
 for submit <at> debbugs.gnu.org; Mon, 15 Sep 2014 09:42:56 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <lopes.emilio@HIDDEN>) id 1XTWYP-00063G-O4
 for submit <at> debbugs.gnu.org; Mon, 15 Sep 2014 09:42:55 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:44919)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <lopes.emilio@HIDDEN>) id 1XTWYP-00063C-Kd
 for submit <at> debbugs.gnu.org; Mon, 15 Sep 2014 09:42:53 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:60527)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <lopes.emilio@HIDDEN>) id 1XTWYN-0003KW-SU
 for bug-gnu-emacs@HIDDEN; Mon, 15 Sep 2014 09:42:53 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <lopes.emilio@HIDDEN>) id 1XTWYJ-00061W-4m
 for bug-gnu-emacs@HIDDEN; Mon, 15 Sep 2014 09:42:51 -0400
Received: from mail-vc0-x233.google.com ([2607:f8b0:400c:c03::233]:50950)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <lopes.emilio@HIDDEN>) id 1XTWYJ-00061P-00
 for bug-gnu-emacs@HIDDEN; Mon, 15 Sep 2014 09:42:47 -0400
Received: by mail-vc0-f179.google.com with SMTP id im17so3392107vcb.38
 for <bug-gnu-emacs@HIDDEN>; Mon, 15 Sep 2014 06:42:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:sender:from:date:message-id:subject:to:content-type;
 bh=KCQ1julm54mFGB/plaV3Ex6VWpud32P4U9z9bNFvY10=;
 b=HygyPD2yGfjp/eXU2Dq1fCpd30Qd6GyLo+kjkudecEpSGcJ6/NvKZFCIlIkyG+ndoa
 Tb47XjNcQdbndWPw6t/afVYy9bFRhRtpgGBem9BmogziJcFKPTfS50xuulPjQ6/iazvg
 TPo0lRw/f4zR3Whqz4nLyI686nB8uCMoVCUf4b95HLFTyIoTzjHXkYcF2BIgMY98PJIA
 Wka4Evx0/isj2mWJSbPa8/9+bHegPX5/Om+lSkOtHDKGD349QguqQuyQnxuG+DwWAMAX
 BvNge6Qy2d+DhatBPN02481VZKNe4/+uKDaz0SAW7UJAGoxHVlMeaRfE+quZfxqoNvEY
 TgDA==
X-Received: by 10.221.64.142 with SMTP id xi14mr23688905vcb.31.1410788565281; 
 Mon, 15 Sep 2014 06:42:45 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.220.239.7 with HTTP; Mon, 15 Sep 2014 06:42:25 -0700 (PDT)
From: Emilio Lopes <eclig@HIDDEN>
Date: Mon, 15 Sep 2014 15:42:25 +0200
X-Google-Sender-Auth: DYNRzo4LAw92E2zDsf9sksneKiA
Message-ID: <CANiPZaApzJU90eQs2LApYPXLpEce94W45FcdhXMpZEU+u_SDsA@HIDDEN>
Subject: vc/vc-git.el: use `with-demoted-errors' instead of `ignore-errors'.
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset=UTF-8
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

cf. http://lists.gnu.org/archive/html/bug-gnu-emacs/2014-09/msg00394.html

--- lisp/ChangeLog    2014-09-15 00:20:21 +0000
+++ lisp/ChangeLog    2014-09-15 13:36:10 +0000
@@ -1,3 +1,14 @@
+2014-09-15  Emilio C. Lopes  <eclig@HIDDEN>
+
+    * vc/vc-git.el (vc-git-registered): use `with-demoted-errors'
+    instead of `ignore-errors' so that the user is informed if
+    something unexpected happens.
+
 2014-09-15  Glenn Morris  <rgm@HIDDEN>

     * image.el (image-multi-frame-p): Fix thinko - do not force

=== modified file 'lisp/vc/vc-git.el'
--- lisp/vc/vc-git.el    2014-09-04 16:34:45 +0000
+++ lisp/vc/vc-git.el    2014-09-15 13:36:10 +0000
@@ -185,7 +185,7 @@
                ;; path specs.
                ;; See also: http://marc.info/?l=git&m=125787684318129&w=2
                (name (file-relative-name file dir))
-               (str (ignore-errors
+               (str (with-demoted-errors "Error: %S"
                       (cd dir)
                       (vc-git--out-ok "ls-files" "-c" "-z" "--" name)
                       ;; If result is empty, use ls-tree to check for deleted




Acknowledgement sent to Emilio Lopes <eclig@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#18481; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.