From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: git history tracking across renames (and emacs support) Date: Thu, 12 Jul 2018 17:40:44 +0100 Message-ID: <87wou0xv8z.fsf@gmail.com> References: <86608msw0h.fsf@dod.no> <838tdiet25.fsf@gnu.org> <87y3li4vh7.fsf@telefonica.net> <87efnan46u.fsf@linux-m68k.org> <86wp12qtgo.fsf@dod.no> <83tvw6chqv.fsf@gnu.org> <86shbprix7.fsf_-_@dod.no> <838t6jgl1k.fsf@gnu.org> <601m6cc6.fsf@lifelogs.com> <83o9fefnv9.fsf@gnu.org> <83in5lg4ol.fsf@gnu.org> <83efg9fxnj.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1531413665 14619 195.159.176.226 (12 Jul 2018 16:41:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 12 Jul 2018 16:41:05 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: larsi@gnus.org, Eli Zaretskii , =?utf-8?Q?Cl=C3=A9ment?= Pit-Claudel , Ted Zlatanov , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 12 18:41:00 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdeeK-0003he-GI for ged-emacs-devel@m.gmane.org; Thu, 12 Jul 2018 18:41:00 +0200 Original-Received: from localhost ([::1]:33062 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdegQ-0004Y2-Md for ged-emacs-devel@m.gmane.org; Thu, 12 Jul 2018 12:43:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdeeC-00031g-Bq for emacs-devel@gnu.org; Thu, 12 Jul 2018 12:40:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdee9-000335-64 for emacs-devel@gnu.org; Thu, 12 Jul 2018 12:40:52 -0400 Original-Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:43028) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fdee8-00031B-V1; Thu, 12 Jul 2018 12:40:49 -0400 Original-Received: by mail-wr1-x42d.google.com with SMTP id b15-v6so22401316wrv.10; Thu, 12 Jul 2018 09:40:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=AfHesD4bNJcYwYo7HtG73QG3KIgXLuX0n/o/fUy3eLA=; b=sJuB3pdEcVgWrhGznMm+ochLeVJEku41EvtanLkDAN+PbQr5VrpIAqvIP1jUsSZJvE PlEnYLXVKPEEa4iQ5g9luPTvv8AbDlYvQ+zDSOF/KwpIaHHD4CyiheApYWqFnUooNZ3y 4H3JFigCXPtrm1lpECKMoDipVUFmAub2jOl2vVPzjq3um4j5s7sMZYuuJYNzhIgbFKxe pPdnUZFMNtyBePMU5hOJXqo6nKMo7KjYW0UrTqKGrGJnuFflnoPG26t4p1xSEYPQNkK4 ae93xOjZlej7rfoZ0r2efYXr194NkQC9jCTsx0TU+TNakA+fClVvHLXFlgDYaT//BUbD FN2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=AfHesD4bNJcYwYo7HtG73QG3KIgXLuX0n/o/fUy3eLA=; b=cqlhKI1pCqahZRUDQY2xxgaNsnIZfDJXUb6bkNoj8O/7q/IuH0+WuXeDPcuZ7RTIFi xYQVGMkG/mQlreCPPF/xoZOuP8Ij/smsm0g4ch1qliTShy2y123mI5f8PHpXJ4IblL02 a4nGh9PvuGxa/i4ntPTpVJsdwFv09UnLhHQGeHMn15n/JPEZ9ccrrDeSaAio/O+MzSm+ UZ8VhAwKsvcsR3fWJ73kxqokWPJFHccGb5GBW157G6LHJQx4gCX8pH5nsOPYfx/BeDNq HpDACr3wIpzxrCxfYtLX1mwtvpc8Wa2s6RTb7xJFSXlei+C2ThbXCHcHfl6RuwCg9H9m 3Byg== X-Gm-Message-State: AOUpUlFUh6DzFeQiW9iiNs48ScsQJyKIqi6NJkE+x5NCm1bRw/pMZP6W flpJrYBGFmYvH6KDmlpBSVC7terP X-Google-Smtp-Source: AAOMgpfRIIfb+rmk1soX8QYClRn2cDdQWKSPa+8o/7iYUOeE0MVlIoKz5+lZhsuLenD6x0C/R5f2Jw== X-Received: by 2002:adf:b69c:: with SMTP id j28-v6mr2423812wre.200.1531413647485; Thu, 12 Jul 2018 09:40:47 -0700 (PDT) Original-Received: from lolita.yourcompany.com (188.139.62.94.rev.vodafone.pt. [94.62.139.188]) by smtp.gmail.com with ESMTPSA id j3-v6sm6895570wrt.70.2018.07.12.09.40.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Jul 2018 09:40:46 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Thu, 12 Jul 2018 09:36:56 -0400") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42d 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:227283 Archived-At: Stefan Monnier writes: >> I wish there was a way to make these buffers without buffer-file-name and >> still have vc collect the entries from them. Also, after committing, the >> entries would actually be removed. > > How 'bout making C-x 4 a add entries directly to the *vc-log* buffer > when there's one and there's no ChangeLog? I though about that too, but how exactly you deal with multi-file commits? The current ChangeLog file, akward as it is, solves this problem: when you M-x vc-next-action from the *vc-dir*, only the entries pertaining to the marked files are fetched into the log buffer by `log-edit-insert-changelog'. > Maybe another take on it is to use a "hidden" ChangeLog file, saved > somewhere in ~/.emacs.d, indexed by the project location and with some > way to recover some earlier commit message you worked on and had > to abandon? A single ChangeLog for all my C-x 4 a needs? Doesn't sound bad, too. All that would be needed, I think, is to make log-edit-insert-changelog fix the paths and refill the "paragraphs" when collecting entries. It leaves me with the multiple-commit-per-day-per-file problem. I think the entries copied to the vc-log buffer by `log-edit-insert-changelog' could be deleted from that file when you C-c C-c (log-edit-done). Jo=C3=A3o