all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: emacs-devel@gnu.org
Subject: Re: trunk r115265: * lisp/vc/vc-dispatcher.el (vc-log-edit): Setup the Summary&Author headers.
Date: Fri, 29 Nov 2013 21:29:29 -0500	[thread overview]
Message-ID: <jwvpppi8wym.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <52991737.9000904@yandex.ru> (Dmitry Gutov's message of "Sat, 30 Nov 2013 00:37:43 +0200")

>> I think of this "reminding" as a process rather than a one-time event,
>> so I'm not too worried about it being "too late".
>> It's not perfect, but it's better than nothing, I think.
> If people not mentioning actual authors of contributed patches in ChangeLog
> is a real problem (I'm not sure it is), how about augmenting the ChangeLog
> font-locking instead, to highlight this field more prominently, prepend it
> with ephemeral text "Author:", and/or add help echo that would remind them
> that this field is for the actual author and their email.

Note that a solution that applies only to ChangeLog wouldn't help for
the `elpa' branch.  And hopefully at some point it won't help for
`emacs' either because we'll have finally rid ourselves of the
ChangeLog files.

> I've seen many times people include several entirely unrelated changes in
> one commit.  How does one write a summary line for them?

That's the problem of the committer.  The notion of "summary" is not
my invention.  It was there in GNU Arch, is there is Bzr, and is probably
present in several other VCSes.

> As long as point is after ":" when the buffer is created and `C-a' is bound
> to `messge-beginning-of-line', I think the main drawback would be that it's
> different from the other Git commit message edit interfaces I know (and
> people might be used to), namely Vim and Magit.

> Both of them implicitly consider the first line to be the summary, and they
> indicate with highlighting when it exceeds 50 characters.

We still also support the "first line is summary", for the sake of grumpy
users, but that doesn't extend naturally to Author, Fixes, Amend, ...

> Adding special, summary-header-targeted highlighting would improve
> the situation.

We could easily highlight Summary specially after the Nth character.
[ Not sure why it should be 50, and that number might need to
  depend on the backend, but other than that, I don't see
  any particular difficulty.  ]

> Actually, now that I've checked, `C-c C-k' in both `message-mode' and
> git-commit-mode' that Magit uses kill the buffer after doing some cleanup,
> not bury it. Would you be fine with that?

Seems a bit pointless since C-x k (and kill-this-buffer) works as well
for *VC-Log*, AFAIK.

> I think it can look better than using a separate window.  But then again,
> it's how other editors do it, so it might just be more familiar.

I used a separate window because it seemed easier, avoiding the usual
problems with display-only-text or with text-that-will-disappear, which
both can lead to surprising behaviors for the unsuspecting user.


        Stefan



  reply	other threads:[~2013-11-30  2:29 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1VlqjS-0006O3-Fn@vcs.savannah.gnu.org>
2013-11-29  4:39 ` trunk r115265: * lisp/vc/vc-dispatcher.el (vc-log-edit): Setup the Summary&Author headers Dmitry Gutov
2013-11-29 13:33   ` Stefan Monnier
2013-11-29 14:53     ` Dmitry Gutov
2013-11-29 17:04       ` Stefan Monnier
2013-11-29 22:37         ` Dmitry Gutov
2013-11-30  2:29           ` Stefan Monnier [this message]
2013-11-30 16:02             ` Dmitry Gutov
2013-12-01 21:10               ` Stefan Monnier
2013-12-02  2:40                 ` Dmitry Gutov
2013-12-02 13:53                   ` Stefan Monnier
2013-12-02 23:02                     ` Dmitry Gutov
2013-12-03  0:56                       ` Leo Liu
2013-12-03  3:06                       ` Stefan Monnier
2013-12-04  0:38                         ` Dmitry Gutov
2013-12-03  2:17                     ` Dmitry Gutov
2013-12-03  3:09                       ` Stefan Monnier
2013-12-04  0:43                         ` Dmitry Gutov

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

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

  git send-email \
    --in-reply-to=jwvpppi8wym.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=dgutov@yandex.ru \
    --cc=emacs-devel@gnu.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.