unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: [Emacs-diffs] emacs-25 5152b21 1/2: ; ChangeLog fixes
       [not found] ` <E1aNJpn-0002dI-SH@vcs.savannah.gnu.org>
@ 2016-01-24 12:35   ` Dmitry Gutov
  2016-01-24 14:38     ` martin rudalics
                       ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Dmitry Gutov @ 2016-01-24 12:35 UTC (permalink / raw)
  To: emacs-devel, Nicolas Petton

On 01/24/2016 03:32 PM, Nicolas Petton wrote:
> branch: emacs-25
> commit 5152b211e81f969ac7cf31e7be6564a8be3299c5
> Author: Nicolas Petton <nicolas@petton.fr>
> Commit: Nicolas Petton <nicolas@petton.fr>
>
>      ; ChangeLog fixes

Thanks!

> -	* nsterm.m (windowDidResize:, toggleFullScreen:):
> +	* src/nsterm.m (windowDidResize:, toggleFullScreen:):

Any idea how we get this problem? Do people type out file names 
manually, instead of using C-x 4 a?



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Emacs-diffs] emacs-25 5152b21 1/2: ; ChangeLog fixes
  2016-01-24 12:35   ` [Emacs-diffs] emacs-25 5152b21 1/2: ; ChangeLog fixes Dmitry Gutov
@ 2016-01-24 14:38     ` martin rudalics
  2016-01-24 15:05       ` Dmitry Gutov
  2016-01-24 14:54     ` Eli Zaretskii
  2016-01-25  2:21     ` Stefan Monnier
  2 siblings, 1 reply; 14+ messages in thread
From: martin rudalics @ 2016-01-24 14:38 UTC (permalink / raw)
  To: Dmitry Gutov, emacs-devel, Nicolas Petton

 > Any idea how we get this problem? Do people type out file names
 > manually, instead of using C-x 4 a?

I can make it happen by doing ‘add-change-log-entry-other-window’ from
another instance of Emacs than the one that gets changed.

martin




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Emacs-diffs] emacs-25 5152b21 1/2: ; ChangeLog fixes
  2016-01-24 12:35   ` [Emacs-diffs] emacs-25 5152b21 1/2: ; ChangeLog fixes Dmitry Gutov
  2016-01-24 14:38     ` martin rudalics
@ 2016-01-24 14:54     ` Eli Zaretskii
  2016-01-24 15:07       ` Dmitry Gutov
  2016-01-25  2:21     ` Stefan Monnier
  2 siblings, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2016-01-24 14:54 UTC (permalink / raw)
  To: Dmitry Gutov; +Cc: nicolas, emacs-devel

> From: Dmitry Gutov <dgutov@yandex.ru>
> Date: Sun, 24 Jan 2016 15:35:38 +0300
> 
> > -	* nsterm.m (windowDidResize:, toggleFullScreen:):
> > +	* src/nsterm.m (windowDidResize:, toggleFullScreen:):
> 
> Any idea how we get this problem? Do people type out file names 
> manually, instead of using C-x 4 a?

Most probably, yes.



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Emacs-diffs] emacs-25 5152b21 1/2: ; ChangeLog fixes
  2016-01-24 14:38     ` martin rudalics
@ 2016-01-24 15:05       ` Dmitry Gutov
  2016-01-24 16:21         ` martin rudalics
  0 siblings, 1 reply; 14+ messages in thread
From: Dmitry Gutov @ 2016-01-24 15:05 UTC (permalink / raw)
  To: martin rudalics, emacs-devel, Nicolas Petton

On 01/24/2016 05:38 PM, martin rudalics wrote:

> I can make it happen by doing ‘add-change-log-entry-other-window’ from
> another instance of Emacs than the one that gets changed.

Why does it matter? Does another instance run an older version of Emacs?



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Emacs-diffs] emacs-25 5152b21 1/2: ; ChangeLog fixes
  2016-01-24 14:54     ` Eli Zaretskii
@ 2016-01-24 15:07       ` Dmitry Gutov
  2016-01-24 16:08         ` Eli Zaretskii
  2016-01-24 19:52         ` Paul Eggert
  0 siblings, 2 replies; 14+ messages in thread
From: Dmitry Gutov @ 2016-01-24 15:07 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: nicolas, emacs-devel

On 01/24/2016 05:54 PM, Eli Zaretskii wrote:

>> Any idea how we get this problem? Do people type out file names
>> manually, instead of using C-x 4 a?
>
> Most probably, yes.

Maybe we could add another linter step to the pre-commit-hook that would 
check the existence of file names mentioned in the message.

That does sound more complex than what we're checking currently, but if 
we're serious about ChangeLog entries, having to review and fix the 
problems manually seems a bigger problem.



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Emacs-diffs] emacs-25 5152b21 1/2: ; ChangeLog fixes
  2016-01-24 15:07       ` Dmitry Gutov
@ 2016-01-24 16:08         ` Eli Zaretskii
  2016-01-24 19:52         ` Paul Eggert
  1 sibling, 0 replies; 14+ messages in thread
From: Eli Zaretskii @ 2016-01-24 16:08 UTC (permalink / raw)
  To: Dmitry Gutov; +Cc: nicolas, emacs-devel

> Cc: emacs-devel@gnu.org, nicolas@petton.fr
> From: Dmitry Gutov <dgutov@yandex.ru>
> Date: Sun, 24 Jan 2016 18:07:51 +0300
> 
> Maybe we could add another linter step to the pre-commit-hook that would 
> check the existence of file names mentioned in the message.

Could be a good idea, yes.



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Emacs-diffs] emacs-25 5152b21 1/2: ; ChangeLog fixes
  2016-01-24 15:05       ` Dmitry Gutov
@ 2016-01-24 16:21         ` martin rudalics
  2016-01-24 17:54           ` Dmitry Gutov
  0 siblings, 1 reply; 14+ messages in thread
From: martin rudalics @ 2016-01-24 16:21 UTC (permalink / raw)
  To: Dmitry Gutov, emacs-devel, Nicolas Petton

 >> I can make it happen by doing ‘add-change-log-entry-other-window’ from
 >> another instance of Emacs than the one that gets changed.
 >
 > Why does it matter? Does another instance run an older version of Emacs?

I misread the diff.  When I do ‘add-change-log-entry-other-window’ for a
file in another Emacs instance, it inserts the path relative to the
source directory of the current instance.  So instead of something like

* src/nsterm.m (windowDidResize:, toggleFullScreen:):

I get, for example, something like

* ../trunk/src/nsterm.m (windowDidResize:, toggleFullScreen:):

in the ChangeLog file of my current instance.  Which is implicitly
correct but hardly useful for the commit message.

martin




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Emacs-diffs] emacs-25 5152b21 1/2: ; ChangeLog fixes
  2016-01-24 16:21         ` martin rudalics
@ 2016-01-24 17:54           ` Dmitry Gutov
  2016-01-24 18:25             ` martin rudalics
  0 siblings, 1 reply; 14+ messages in thread
From: Dmitry Gutov @ 2016-01-24 17:54 UTC (permalink / raw)
  To: martin rudalics, emacs-devel, Nicolas Petton

On 01/24/2016 07:21 PM, martin rudalics wrote:

> I misread the diff.  When I do ‘add-change-log-entry-other-window’ for a
> file in another Emacs instance, it inserts the path relative to the
> source directory of the current instance.  So instead of something like
>
> * src/nsterm.m (windowDidResize:, toggleFullScreen:):
>
> I get, for example, something like
>
> * ../trunk/src/nsterm.m (windowDidResize:, toggleFullScreen:):
>
> in the ChangeLog file of my current instance.  Which is implicitly
> correct but hardly useful for the commit message.

Any idea how that happens? There are no references to source-directory 
inside lisp/vc/.

Maybe you've edited files in both branches (residing in different 
directories) in that session, and still keep the ChangeLog file from the 
other branch open?



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Emacs-diffs] emacs-25 5152b21 1/2: ; ChangeLog fixes
  2016-01-24 17:54           ` Dmitry Gutov
@ 2016-01-24 18:25             ` martin rudalics
  0 siblings, 0 replies; 14+ messages in thread
From: martin rudalics @ 2016-01-24 18:25 UTC (permalink / raw)
  To: Dmitry Gutov, emacs-devel, Nicolas Petton

 > Any idea how that happens? There are no references to source-directory inside lisp/vc/.

Maybe some ‘default-directory’ vs ‘expand-file-name’ snafu.

 > Maybe you've edited files in both branches (residing in different
 > directories) in that session, and still keep the ChangeLog file from
 > the other branch open?

Possible but unlikely.

I have a special wrapper for ‘add-change-log-entry-other-window’ so I
can call it from the ediff control panel and it still uses the right
buffer.  I just would have to step through it with the debugger ...

martin




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Emacs-diffs] emacs-25 5152b21 1/2: ; ChangeLog fixes
  2016-01-24 15:07       ` Dmitry Gutov
  2016-01-24 16:08         ` Eli Zaretskii
@ 2016-01-24 19:52         ` Paul Eggert
  2016-01-24 20:02           ` Dmitry Gutov
  1 sibling, 1 reply; 14+ messages in thread
From: Paul Eggert @ 2016-01-24 19:52 UTC (permalink / raw)
  To: Dmitry Gutov, Eli Zaretskii; +Cc: nicolas, emacs-devel

Dmitry Gutov wrote:
> Maybe we could add another linter step to the pre-commit-hook that would check
> the existence of file names mentioned in the message.

I typically use vc-dwim, which does that already. That is partly why I haven't 
bothered adding a separate linter step to build-aux/git-hooks/commit-msg. It'd 
be nice if the check were there for everybody.

vc-dwim also has the converse check. That is, it checks that every file affected 
by the commit is mentioned in the commit message. I prefer this check too, 
though I'm not sure everyone else would.



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Emacs-diffs] emacs-25 5152b21 1/2: ; ChangeLog fixes
  2016-01-24 19:52         ` Paul Eggert
@ 2016-01-24 20:02           ` Dmitry Gutov
  2016-01-24 20:08             ` Paul Eggert
  0 siblings, 1 reply; 14+ messages in thread
From: Dmitry Gutov @ 2016-01-24 20:02 UTC (permalink / raw)
  To: Paul Eggert, Eli Zaretskii; +Cc: nicolas, emacs-devel

On 01/24/2016 10:52 PM, Paul Eggert wrote:

> I typically use vc-dwim, which does that already. That is partly why I
> haven't bothered adding a separate linter step to
> build-aux/git-hooks/commit-msg. It'd be nice if the check were there for
> everybody.

Hmm. I'm definitely not asking for this for my own benefit (you can see 
my log messages weren't in this list of fixes).

> vc-dwim also has the converse check. That is, it checks that every file
> affected by the commit is mentioned in the commit message. I prefer this
> check too, though I'm not sure everyone else would.

Why not? I think we have a clearly-defined set of files which can go 
without log entries. I'd say it's a question of policy and not just 
personal preference.



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Emacs-diffs] emacs-25 5152b21 1/2: ; ChangeLog fixes
  2016-01-24 20:02           ` Dmitry Gutov
@ 2016-01-24 20:08             ` Paul Eggert
  0 siblings, 0 replies; 14+ messages in thread
From: Paul Eggert @ 2016-01-24 20:08 UTC (permalink / raw)
  To: Dmitry Gutov, Eli Zaretskii; +Cc: nicolas, emacs-devel

Dmitry Gutov wrote:
>> vc-dwim also has the converse check. That is, it checks that every file
>> affected by the commit is mentioned in the commit message. I prefer this
>> check too, though I'm not sure everyone else would.
>
> Why not? I think we have a clearly-defined set of files which can go without log
> entries.

vc-dwim doesn't know about that set, and so insists on every file being 
mentioned in the commit message. I prefer this style but the guidelines do not 
require it. But you're right, build-aux/git-hooks/commit-msg could know about 
that file set and complain only about the files not in the set.



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Emacs-diffs] emacs-25 5152b21 1/2: ; ChangeLog fixes
  2016-01-24 12:35   ` [Emacs-diffs] emacs-25 5152b21 1/2: ; ChangeLog fixes Dmitry Gutov
  2016-01-24 14:38     ` martin rudalics
  2016-01-24 14:54     ` Eli Zaretskii
@ 2016-01-25  2:21     ` Stefan Monnier
  2016-01-25  3:10       ` Dmitry Gutov
  2 siblings, 1 reply; 14+ messages in thread
From: Stefan Monnier @ 2016-01-25  2:21 UTC (permalink / raw)
  To: emacs-devel

>> -	* nsterm.m (windowDidResize:, toggleFullScreen:):
>> +	* src/nsterm.m (windowDidResize:, toggleFullScreen:):
> Any idea how we get this problem? Do people type out file names manually,
> instead of using C-x 4 a?

Why do we care?  nsterm.m is unambiguous.


        Stefan




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Emacs-diffs] emacs-25 5152b21 1/2: ; ChangeLog fixes
  2016-01-25  2:21     ` Stefan Monnier
@ 2016-01-25  3:10       ` Dmitry Gutov
  0 siblings, 0 replies; 14+ messages in thread
From: Dmitry Gutov @ 2016-01-25  3:10 UTC (permalink / raw)
  To: Stefan Monnier, emacs-devel

On 01/25/2016 05:21 AM, Stefan Monnier wrote:
>>> -	* nsterm.m (windowDidResize:, toggleFullScreen:):
>>> +	* src/nsterm.m (windowDidResize:, toggleFullScreen:):
>> Any idea how we get this problem? Do people type out file names manually,
>> instead of using C-x 4 a?
>
> Why do we care?  nsterm.m is unambiguous.

Wrong format?

Anyway, the same commit I was referring to also fixed actual problems in 
file names (wrong name, missing or wrong extension, etc).



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2016-01-25  3:10 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20160124123159.10057.13168@vcs.savannah.gnu.org>
     [not found] ` <E1aNJpn-0002dI-SH@vcs.savannah.gnu.org>
2016-01-24 12:35   ` [Emacs-diffs] emacs-25 5152b21 1/2: ; ChangeLog fixes Dmitry Gutov
2016-01-24 14:38     ` martin rudalics
2016-01-24 15:05       ` Dmitry Gutov
2016-01-24 16:21         ` martin rudalics
2016-01-24 17:54           ` Dmitry Gutov
2016-01-24 18:25             ` martin rudalics
2016-01-24 14:54     ` Eli Zaretskii
2016-01-24 15:07       ` Dmitry Gutov
2016-01-24 16:08         ` Eli Zaretskii
2016-01-24 19:52         ` Paul Eggert
2016-01-24 20:02           ` Dmitry Gutov
2016-01-24 20:08             ` Paul Eggert
2016-01-25  2:21     ` Stefan Monnier
2016-01-25  3:10       ` Dmitry Gutov

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