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

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Eli Zaretskii <eliz@gnu.org>,  Thien-Thi Nguyen <ttn@gnuvola.org>,
>   emacs-devel@gnu.org
> Date: Wed, 01 Dec 2021 17:21:57 -0500
> 
>     * filenames: Short description
> 
>     Explanation.
> 
>     * file1 (func1): desc1.
>     (func2): desc2.
>     * file2 (func3): desc3.
> 
> where "filenames" is a summary of the files.

This is okay, and doesn't violate our conventions.  (It does waste
precious space on the summary line to mention the file names, which
IME isn't necessary when the summary is well written.  But that's me.)
My problem is not with the above format, my problem is with log
messages that don't really follow it.  Like this one:

    * 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.)

    * 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".

    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.

All in all, it looks like you arbitrarily put one of the log entries
on the first line to save repetition.  But some of the repetition is
due to your self-imposed conventions: there's no need to state the
full file name, with leading directories, on the summary line.  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

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).

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.

I hope this clarifies why I'm unhappy with your log messages.  And if
this is still not convincing, I don't intend to keep arguing, because
I have very little faith that it will lead anywhere useful.  I just
share the frustration expressed by Stefan Kangas (which in his case
came after he invested a lot of efforts fixing that).



  parent reply	other threads:[~2021-12-02  7:12 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 [this message]
2021-12-02  7:34                           ` Stefan Monnier
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=837dcnqy3q.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --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).