GNU bug report logs -
#55039
[PATCH] Use VC-relative file names in ChangeLog entries
Previous Next
Reported by: Philip Kaludercic <philipk <at> posteo.net>
Date: Wed, 20 Apr 2022 14:20:02 UTC
Severity: normal
Tags: moreinfo, patch
Done: Philip Kaludercic <philipk <at> posteo.net>
Bug is archived. No further changes may be made.
Full log
Message #46 received at 55039 <at> debbugs.gnu.org (full text, mbox):
Robert Pluim <rpluim <at> gmail.com> writes:
>>>>>> On Tue, 06 Sep 2022 14:34:58 +0000, Philip Kaludercic <philipk <at> posteo.net> said:
> Philip> (defun diff-add-log-current-defuns ()
> Philip> "Return an alist of defun names for the current diff.
> Philip> The elements of the alist are of the form (FILE . (DEFUN...)),
> Philip> @@ -2374,9 +2380,11 @@ diff-add-log-current-defuns
> Philip> (re-search-forward diff-hunk-header-re nil t)
> Philip> (setq hunk-end (save-excursion (diff-end-of-hunk)))
> Philip> (pcase-let* ((filename (substring-no-properties
> Philip> - (file-relative-name
> Philip> - (diff-find-file-name)
> Philip> - (vc-root-dir))))
> Philip> + (if diff-relative-names-in-changelog
> Philip> + (file-relative-name
> Philip> + (diff-find-file-name)
> Philip> + (vc-root-dir))
> Philip> + (diff-find-file-name))))
> Philip> (=lines 0)
> Philip> (+lines 0)
> Philip> (-lines 0)
>
> That doesnʼt look like the code thatʼs currently in master. Is this on
> top of your previous patch?
No, these changes would be on top of the previous patch, but I'm of
course going to merge them into a single commit.
> Philip> Assuming nobody objects to the name of the option, should this be
> Philip> documented in NEWS and/or in the Manual? Also, as the entire point of
> Philip> the patch was that emacs.git is using relative path names, should a
> Philip> .dir-locals.el variable be set to ensure this is done?
>
> NEWS and .dir-locals.el definitely. I guess you could add to the "Log
> Buffer" node in the emacs manual if youʼre feeling inspired 😀
I'll consider it.
> Robert
This bug report was last modified 2 years and 313 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.