From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#40248: 27.0.90; Failure open .authinfo.gpg from Gnus Date: Thu, 23 Jul 2020 03:20:44 +0300 Organization: LINKOV.NET Message-ID: <87v9ifdqub.fsf@mail.linkov.net> References: <86bloi1zrj.fsf@csic.es> <83lfnm8b30.fsf@gnu.org> <83ftdt9b1d.fsf@gnu.org> <86sght3h1s.fsf@csic.es> <834ku89anf.fsf@gnu.org> <87zhbzsis4.fsf@gnus.org> <83h7y75kvh.fsf@gnu.org> <83bloe3s5k.fsf@gnu.org> <83y2rh3ob9.fsf@gnu.org> <87wo6ym9b4.fsf@gnus.org> <83r1x4x0tc.fsf@gnu.org> <87o8octe6w.fsf@gnus.org> <83wo2zh9cj.fsf@gnu.org> <875zajr31j.fsf@gnus.org> <83v9ijh8ez.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4356"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: juanjose.garcia.ripoll@csic.es, Lars Ingebrigtsen , rpluim@gmail.com, 40248@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 23 02:37:11 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jyPEU-00010j-Tw for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 Jul 2020 02:37:10 +0200 Original-Received: from localhost ([::1]:54664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jyPET-00057n-E0 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 Jul 2020 20:37:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33806) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jyPEM-00057S-Al for bug-gnu-emacs@gnu.org; Wed, 22 Jul 2020 20:37:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60082) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jyPEL-0004MH-So for bug-gnu-emacs@gnu.org; Wed, 22 Jul 2020 20:37:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jyPEL-0002bd-Nf for bug-gnu-emacs@gnu.org; Wed, 22 Jul 2020 20:37:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Jul 2020 00:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40248 X-GNU-PR-Package: emacs Original-Received: via spool by 40248-submit@debbugs.gnu.org id=B40248.15954646099974 (code B ref 40248); Thu, 23 Jul 2020 00:37:01 +0000 Original-Received: (at 40248) by debbugs.gnu.org; 23 Jul 2020 00:36:49 +0000 Original-Received: from localhost ([127.0.0.1]:43390 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jyPE9-0002ao-5D for submit@debbugs.gnu.org; Wed, 22 Jul 2020 20:36:49 -0400 Original-Received: from relay8-d.mail.gandi.net ([217.70.183.201]:32877) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jyPE7-0002aW-9Z for 40248@debbugs.gnu.org; Wed, 22 Jul 2020 20:36:48 -0400 X-Originating-IP: 91.129.108.250 Original-Received: from mail.gandi.net (m91-129-108-250.cust.tele2.ee [91.129.108.250]) (Authenticated sender: juri@linkov.net) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id A1BFE1BF204; Thu, 23 Jul 2020 00:36:38 +0000 (UTC) In-Reply-To: <83v9ijh8ez.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 19 Jul 2020 17:43:48 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:183393 Archived-At: >> That sounds like a very useful thing to have. How do you make vc-mode >> (etc) show both dates? > > You don't need to tell VC anything, just say in your ~/.gitconfig > > [format] > pretty = fuller This setting breaks vc-git-log-view-mode: typing 'D' in the log buffer with "CommitDate" throws the error: fatal: bad revision 'Date' This is because it searches for the commit number and finds "CommitDate" as in this example: commit 365e01cc9f64ce6ca947ccfd8612d60763280a37 CommitDate: 2020-01-01 00:59:52 +0000 The problem is that 'vc-git-log-view-mode' sets 'log-view-message-re' to this regexp: "^commit *\\([0-9a-z]+\\)" where "\\([0-9a-z]+\\)" matches "Date" in "CommitDate". This patch fixes it, but I'm not sure if this is the correct regexp for git commits: diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el index 9b8151705f..2220a33188 100644 --- a/lisp/vc/vc-git.el +++ b/lisp/vc/vc-git.el @@ -1241,7 +1241,7 @@ vc-git-log-view-mode (set (make-local-variable 'log-view-message-re) (if (not (memq vc-log-view-type '(long log-search with-diff))) (cadr vc-git-root-log-format) - "^commit *\\([0-9a-z]+\\)")) + "^commit +\\([0-9a-z]+\\)")) ;; Allow expanding short log entries. (when (memq vc-log-view-type '(short log-outgoing log-incoming mergebase)) (setq truncate-lines t)