unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Eli Zaretskii <eliz@gnu.org>
Cc: stefan@marxist.se,  ttn@gnuvola.org,  emacs-devel@gnu.org
Subject: Re: File names in ChangeLog entries
Date: Thu, 02 Dec 2021 02:34:32 -0500	[thread overview]
Message-ID: <jwvk0gncw9d.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <837dcnqy3q.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 02 Dec 2021 09:12:25 +0200")

>     * test/src/comp-tests.el: Rework last patch
>
>     Move `require`s out of `eval-when-compile` if the functions are called
>     at run-time.
>     Don't use #' to quote symbols (i.e. at those places where a lambda
>     expression couldn't be used).
>     Don't pre-load comp-test-45603.el and comp-test-pure.el any more.
>
>     (comp-deftest pure): Use `declare-function` after loading `comp-test-pure.el`
>     to silence the byte-compiler.
>
> This doesn't state the file name after the summary.  (Also, the lines
> are too long, and will produce ugly ChangeLog entries in the tarball.)

Indeed, it seems redundant to mention the file name afterwards since
it's the only file affected and it's already mentioned in the summary.
But I'm fine with adding the repetition here.

>     * lisp/emacs-lisp/subr-x.el (with-memoization): New macro
>
>     Extracted from `cl-generic.el`.
>
>     * lisp/emacs-lisp/cl-generic.el (cl--generic-get-dispatcher)
>     (cl--generic-build-combined-method, cl-generic-generalizers): Use it.
>     (cl--generic-with-memoization): Delete.
>
> This doesn't mention subr-x.el change in the "main part".

Yes, this is a hybrid between the old

    * lisp/emacs-lisp/subr-x.el (with-memoization): New macro
    Extracted from `cl-generic.el`.
    
    * lisp/emacs-lisp/cl-generic.el (cl--generic-get-dispatcher)
    (cl--generic-build-combined-method, cl-generic-generalizers): Use it.
    (cl--generic-with-memoization): Delete.

and the new summary+explanation+changelog format where I tried to be
clever since the `subr-x` part is the core one and the other ones are
just minor sidekicks.
I'm fine with avoiding such cleverness.

>     Change ruby-align-chained-calls indendation
>
>     * lisp/progmodes/ruby-mode.el (ruby-smie-rules): Align with the
>     first sibling on the previous line instead of the last (bug#32496).
>
>     That is, before it used to be
>
>     one.two.three
>            .four
>
>     and now it is
>
>     one.two.three
>        .four
>
> Here, the order is incorrect: the "That is" part should have been
> before the "* file (func): Desc" part, not after.

Not sure what I was smoking back then, indeed.

> due to your self-imposed conventions: there's no need to state the
> full file name, with leading directories, on the summary line.

Agreed.  I just need/want *some* information about which files
are affected.  `ruby-mode` or `subr-x` would be perfectly fine for that.

> For
> example, this summary:
>
>     * lisp/emacs-lisp/subr-x.el (with-memoization): New macro
>
> could have been more economically written as
>
>     New macro 'with-memoization'
>
> or, if you insist on mentioning the file, as
>
>     New macro 'with-memoization' in subr-x.el

I'd prefer

     subr-x (with-memoization): New macro

which is closer to the rest of our conventions.  Having the subsystem
info always at the beginning is important to be able to visually scan
many commits quickly without having to read&parse&understand each and
every summary text.  It's even more important when several commits in
a row affect the same subsystem in which case the scanning is made even
faster when all those commits put the subsystem info at the same place.

> And in this example:
>
>     * lisp/emacs-lisp/cl-generic.el: Try and fix bug#49866
>
>     (cl-generic-generalizers): Remember the specializers that match
>     a given value.
>     (cl--generic-eql-generalizer): Adjust accordingly.
>
>     * test/lisp/emacs-lisp/cl-generic-tests.el (cl-generic-test-01-eql):
>     Add corresponding test.
>
> the file name in the summary is entirely redundant, since fixing a bug
> is not necessarily related to a particular file (as the rest of the
> log message clearly shows).

I don't understand what you mean: the patch basically only touches
`cl-generic.el`.

> And the main problem with your format is that the produced ChangeLog
> is ugly and hard to read, while the format we prefer is carefully
> designed to produce reasonably-readable ChangeLogs.  Which was why
> Stefan Kangas started this discussion in the first place, AFAIU.

Indeed, this discussion is related to the generation of the ChangeLog
and to the fact that I have completely and totally stopped looking at
them, so I'm beginning to doubt the usefulness of
keeping/generating them.  [ I'm curious to know who uses them still.  ]

But I can accommodate a convention where the file names are always
clearly spelled out in the "bottom changelog section", even if that's
redundant with the info in the summary line, for the benefit of
generating those legacy files.

Is there a chance that others might be willing to accommodate my request
to always include some subsystem info in the summary line in return?


        Stefan




  reply	other threads:[~2021-12-02  7:34 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-30 19:19 File names in ChangeLog entries Stefan Kangas
2021-11-30 20:07 ` Philip Kaludercic
2021-11-30 22:01 ` Philipp Stephani
2021-11-30 23:24   ` Stefan Kangas
2021-12-01  3:24     ` Eli Zaretskii
2021-11-30 23:56   ` Andreas Schwab
2021-12-01  3:26     ` Eli Zaretskii
2021-11-30 23:16 ` Stefan Monnier
2021-11-30 23:55   ` Stefan Kangas
2021-12-01  3:32     ` Eli Zaretskii
2021-12-01  3:29   ` Eli Zaretskii
2021-12-01 13:39     ` Stefan Monnier
2021-12-01 13:52       ` Eli Zaretskii
2021-12-01 16:51         ` Stefan Monnier
2021-12-01 17:02           ` Eli Zaretskii
2021-12-01 17:28             ` Karl Fogel
2021-12-01 18:46             ` Stefan Monnier
2021-12-01 19:12               ` Eli Zaretskii
2021-12-01 19:22               ` Thien-Thi Nguyen
2021-12-01 19:32                 ` Eli Zaretskii
2021-12-01 20:49                   ` Thien-Thi Nguyen
2021-12-02  6:37                     ` Eli Zaretskii
2021-12-01 21:03                   ` Stefan Monnier
2021-12-01 21:50                     ` Stefan Kangas
2021-12-01 22:21                       ` Stefan Monnier
2021-12-01 23:14                         ` Stefan Kangas
2021-12-02  6:43                           ` Karl Fogel
2021-12-02  7:10                             ` Stefan Monnier
2021-12-02  9:12                             ` Juri Linkov
2021-12-02 10:08                               ` Eli Zaretskii
2021-12-02 21:09                                 ` Stefan Monnier
2021-12-03  7:36                                   ` Eli Zaretskii
2021-12-03 12:57                                     ` Stefan Monnier
2021-12-03 13:06                                       ` Eli Zaretskii
2021-12-02 22:11                                 ` Karl Fogel
2021-12-02 11:02                             ` Stefan Kangas
2021-12-03  2:43                               ` Karl Fogel
2021-12-02  7:12                         ` Eli Zaretskii
2021-12-02  7:34                           ` Stefan Monnier [this message]
2021-12-02  8:33                             ` Eli Zaretskii
2021-12-02  6:40                       ` Eli Zaretskii
2021-12-02 16:59                     ` Matt Armstrong
2021-12-01  6:11 ` Alfred M. Szmidt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvk0gncw9d.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=stefan@marxist.se \
    --cc=ttn@gnuvola.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).