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 10:04:17 +0100 Message-ID: <87h8l4lt9q.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> <838t6hfa4h.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 1531386231 18897 195.159.176.226 (12 Jul 2018 09:03:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 12 Jul 2018 09:03:51 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: larsi@gnus.org, cpitclaudel@gmail.com, tzz@lifelogs.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 12 11:03:47 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 1fdXVq-0004pt-Qu for ged-emacs-devel@m.gmane.org; Thu, 12 Jul 2018 11:03:47 +0200 Original-Received: from localhost ([::1]:58187 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdXXx-0008Gf-SP for ged-emacs-devel@m.gmane.org; Thu, 12 Jul 2018 05:05:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44137) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdXWW-00089T-HJ for emacs-devel@gnu.org; Thu, 12 Jul 2018 05:04:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdXWQ-0002Q0-ND for emacs-devel@gnu.org; Thu, 12 Jul 2018 05:04:26 -0400 Original-Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:40613) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fdXWQ-0002Ou-G0; Thu, 12 Jul 2018 05:04:22 -0400 Original-Received: by mail-wm0-x243.google.com with SMTP id z13-v6so5199186wma.5; Thu, 12 Jul 2018 02:04:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-transfer-encoding; bh=fb1EUX9AZu4BIOPFxqROx9usi/hZmeascmqWqG2DPJA=; b=d35ZrnBHPcWsxJAqH4bJGTOK93Ikpl451KnGJ/TuEaz/MjjLwR5gYRdbVl1Rsg7X8O x1OfS31pDCvkPRlDcA9PtrPuUCbITce04U9fD1REdbq3odKuYSL1RZIVQLYWbFAm6mKY FO9/5IwSRGQoP2uTQ3S3YplEaCSoTD2RaK7wcbR08O6o1/FAR/8QBoS2GCCUoyd/48Ej qpymLARC3pou+3763HRu0WiLkieaOslkBucm5bfSVgN8DCpacBTYojRT8FZEHlosuaPr OtAOI1Nv27ZfMHFbwyFxgsqn80W65urT5Mxy7CLa2fw2xLD6x7hsZQWuhKsvA9S/ZBXm NzJw== 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:in-reply-to:references :user-agent:date:message-id:mime-version:content-transfer-encoding; bh=fb1EUX9AZu4BIOPFxqROx9usi/hZmeascmqWqG2DPJA=; b=K1+a6vi/Xji+aqtVZ95NGUXr5CgbuUJBvrnKqk97llNhEYG/OOllXcp1JD/65qI7qb lkSodaT5CGAT/tZ1aVSxt8wSkFFcNkKAJoE1NNQTOfFldtHxSc47nU0SRnamzyOfRvxV UfxYyv2rKiovUEB0np3H1JcEDa5dnx6ag5qs6GvWylZVnte659xx/IEl1WJdoPU7o1we YJqxQDCJw8IiK5y3YrzwMS2Q/tFbikaH6df5kVleFZtN/VAO1rSflltFus6Y/nSTqMEV 5dwEx6ck9q39rNhTPuBryPGqJMkF9tBNT2/+2T3ifTds0QNduSrK4JLiMnVmN60jXwV6 Xe9A== X-Gm-Message-State: AOUpUlGuufOaDVq5thtXHkgl9cYs3rxT05H8GUtP6vge6XFUmykxCn3j qmHnXr6MCidDu4qI5ZqcWUM= X-Google-Smtp-Source: AAOMgpcDMzuIcbPhP7Rz9lRWXU40g1A7QfSNF5sry3mRCZPYTGvv+S6jsIEUifPkI09nD241pbkAmg== X-Received: by 2002:a1c:387:: with SMTP id 129-v6mr787471wmd.53.1531386261307; Thu, 12 Jul 2018 02:04:21 -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 35-v6sm5485838wrh.52.2018.07.12.02.04.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Jul 2018 02:04:20 -0700 (PDT) In-Reply-To: <838t6hfa4h.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 12 Jul 2018 05:42:06 +0300") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::243 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:227270 Archived-At: Eli Zaretskii writes: >> From: Jo=C3=A3o T=C3=A1vora >> Date: Wed, 11 Jul 2018 23:36:56 +0100 >> Cc: Ted Zlatanov , Cl=C3=A9ment Pit-Claudel ,=20 >> larsi@gnus.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org >>=20 >> To be fair, there isn't even any copy-paste involved if you use vc-next-= action and such. >>=20 >> But that doesn't mean it's not horribly impractical. I hate the >> ChangeLog buffers, especially how they interact >> with save-some-buffers because invariably I end up saving them inadverte= ntly. > > Why is it a problem to save ChangeLog to its file? Our .gitignore > already ignores such a file. I have a local ChangeLog file full of > log messages I used for commits I pushed. > >> Would a patch for this be welcome? > > I'd need to see the patch, of course. For now, I'm afraid I don't > understand the problem. To be clear, it's a minor annoyance (that's what "horribly impractical" means to me :-)) but it's repeated across all my projects, because I use this format there too. So I typically end up having around 5 ChangeLog files per session. Generally, because the ChangeLog _file_ is now a useless intermediary, any friction it gives me is too much. Now the actual annoyance: 1. save-some-buffers constantly nags me about saving the useless file ChangeLog. I worked around this with a save-some-buffers-default-predicate, but sometimes I like to work from Emacs -Q (typically after reproducing a bug) and I'm still annoyed there. 2. killing the ChangeLog buffer in other situations (when generally cleaning up my buffer list) also prompts me about saving it; =20=20=20=20 3. when performing multiple commits to one project on the same day, vc-next-action blindly copies all entries for the day, duplicating entries in my commit message. So I have to remember to kill the buffer before the first `C-x 4 a' of the commit I'm about to do. Which means I have to find it in my buffer list, and then it asks me if I want to save it ("grrr, no! yes! whatever!"). Alternatively, I can find the buffer and delete its contents, also kind-of impractical. Alternatively, what I've been doing recently, is to issue the first `C-x 4 a' just to find the dang buffer, then delete everything, then `C-x o', then do that same `C-x 4 a' again. It works, but feels kinda silly. 4. When I do need, for whatever reason, to manually copy-paste from the ChangeLog buffer, it annoys me that the indentation is not the same. It also annoys me that fontification and fill-paragraph doesn't work in vc-git-log-edit-mode like it does in change-log-mode. Can it be made to? So the patch I envison would address some or all of these points friction (and would be optional, for those who for some reason really like to have a file-supported ChangeLog buffer around). But perhaps, before spending time on the patch, you or someone else can tell me if you use ChangeLog for more projects than Emacs and/or how you avoid these annoyances. Jo=C3=A3o