unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* vc-next-action RCS vs hg: copies the entry of ChangeLog
@ 2015-10-15  6:48 Uwe Brauer
  2015-10-15 10:54 ` Dmitry Gutov
  0 siblings, 1 reply; 41+ messages in thread
From: Uwe Brauer @ 2015-10-15  6:48 UTC (permalink / raw)
  To: emacs-devel

Hi

Switching from RCS to HG I noted a difference.

If in RCS I run vc-next-action for checking in, Emacs copies into the
vc-log the content of the most recent ChangeLog. Using the HG backend
this behaviour is absent. Any possibility to enable it?

Thanks

Uwe Brauer 




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

* Re: vc-next-action RCS vs hg: copies the entry of ChangeLog
  2015-10-15  6:48 vc-next-action RCS vs hg: copies the entry of ChangeLog Uwe Brauer
@ 2015-10-15 10:54 ` Dmitry Gutov
  2015-10-18  7:02   ` Uwe Brauer
  0 siblings, 1 reply; 41+ messages in thread
From: Dmitry Gutov @ 2015-10-15 10:54 UTC (permalink / raw)
  To: emacs-devel

On 10/15/2015 09:48 AM, Uwe Brauer wrote:

> If in RCS I run vc-next-action for checking in, Emacs copies into the
> vc-log the content of the most recent ChangeLog. Using the HG backend
> this behaviour is absent. Any possibility to enable it?

Works for me. Feel free to file a bug with full repro.



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

* Re: vc-next-action RCS vs hg: copies the entry of ChangeLog
  2015-10-15 10:54 ` Dmitry Gutov
@ 2015-10-18  7:02   ` Uwe Brauer
  2015-10-18  7:58     ` Dmitry Gutov
  0 siblings, 1 reply; 41+ messages in thread
From: Uwe Brauer @ 2015-10-18  7:02 UTC (permalink / raw)
  To: emacs-devel

>>> "Dmitry" == Dmitry Gutov <dgutov@yandex.ru> writes:

   > On 10/15/2015 09:48 AM, Uwe Brauer wrote:
   >> If in RCS I run vc-next-action for checking in, Emacs copies into the
   >> vc-log the content of the most recent ChangeLog. Using the HG backend
   >> this behaviour is absent. Any possibility to enable it?

   > Works for me. Feel free to file a bug with full repro.


Do you mean that if you use vc-log-print you see the content of the ChangeLog?




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

* Re: vc-next-action RCS vs hg: copies the entry of ChangeLog
  2015-10-18  7:02   ` Uwe Brauer
@ 2015-10-18  7:58     ` Dmitry Gutov
  2015-10-18  8:25       ` Uwe Brauer
  0 siblings, 1 reply; 41+ messages in thread
From: Dmitry Gutov @ 2015-10-18  7:58 UTC (permalink / raw)
  To: emacs-devel

On 10/18/2015 10:02 AM, Uwe Brauer wrote:

> Do you mean that if you use vc-log-print you see the content of the ChangeLog?

I mean that when I make changes to a Hg-controlled file, save, add an 
entry to the nearby ChangeLog file, switch back to the source file and 
press `C-x v v', the entry from the ChangeLog file is added to the 
opened buffer (where you edit the commit message).

I haven't actually tried committing and then looking at the log, but why 
wouldn't it be there?



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

* Re: vc-next-action RCS vs hg: copies the entry of ChangeLog
  2015-10-18  7:58     ` Dmitry Gutov
@ 2015-10-18  8:25       ` Uwe Brauer
  2015-10-18  9:50         ` Dmitry Gutov
  0 siblings, 1 reply; 41+ messages in thread
From: Uwe Brauer @ 2015-10-18  8:25 UTC (permalink / raw)
  To: emacs-devel

>>> "Dmitry" == Dmitry Gutov <dgutov@yandex.ru> writes:

    > On 10/18/2015 10:02 AM, Uwe Brauer wrote:
    >> Do you mean that if you use vc-log-print you see the content of the ChangeLog?

    > I mean that when I make changes to a Hg-controlled file, save, add
    > an entry to the nearby ChangeLog file, switch back to the source
    > file and press `C-x v v', the entry from the ChangeLog file is
    > added to the opened buffer (where you edit the commit message).

This is also my case!

> I haven't actually tried committing and then looking at the log, but
> why wouldn't it be there?


Well I just repeated your steps and then run a vc-print-log to see


changeset:   34:8d6c1d9fcc44
branch:      banch-pub
tag:         tip
user:        Uwe Brauer <oub@mat.ucm.es>
date:        Sun Oct 18 11:21:55 2015 +0300
summary:     try out


But the change log contains
2015-10-18  Uwe Brauer  <oub@mat.ucm.es>

	* section-0002.tex (subsection{Weight._Sobol._fract._order_their}
	{} {}):
	test

Which is *not* displayed.

It is displayed if the file is under RCS!






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

* Re: vc-next-action RCS vs hg: copies the entry of ChangeLog
  2015-10-18  8:25       ` Uwe Brauer
@ 2015-10-18  9:50         ` Dmitry Gutov
  2015-10-18 10:22           ` Uwe Brauer
  2015-10-18 13:06           ` Uwe Brauer
  0 siblings, 2 replies; 41+ messages in thread
From: Dmitry Gutov @ 2015-10-18  9:50 UTC (permalink / raw)
  To: emacs-devel

On 10/18/2015 11:25 AM, Uwe Brauer wrote:

> But the change log contains
> 2015-10-18  Uwe Brauer  <oub@mat.ucm.es>
>
> 	* section-0002.tex (subsection{Weight._Sobol._fract._order_their}
> 	{} {}):
> 	test
>
> Which is *not* displayed.
>
> It is displayed if the file is under RCS!

Turns out, the problem is that vc-hg-print-log doesn't display multiline 
messages, just the first line.

Mercurial is weird.

The easiest way to display them is to pass -v to 'hg log'. However, that 
will also display the list of files touched by the commit, which can be 
long, and it's pretty annoying.

To avoid that, https://bz.mercurial-scm.org/show_bug.cgi?id=688 suggests 
using the --template argument, to indicate exactly what to output.

If someone were to look into it and tell us what template format 
corresponds to "current output plus long commit message", that would be 
helpful. Preferably, both for "short" and "long" types of output (see 
vc-hg-print-log).



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

* Re: vc-next-action RCS vs hg: copies the entry of ChangeLog
  2015-10-18  9:50         ` Dmitry Gutov
@ 2015-10-18 10:22           ` Uwe Brauer
  2015-10-18 13:06           ` Uwe Brauer
  1 sibling, 0 replies; 41+ messages in thread
From: Uwe Brauer @ 2015-10-18 10:22 UTC (permalink / raw)
  To: emacs-devel


   > On 10/18/2015 11:25 AM, Uwe Brauer wrote:

   > Turns out, the problem is that vc-hg-print-log doesn't display
   > multiline messages, just the first line.

   > Mercurial is weird.

Right I just found out that git behaves differently and behaves as
expected. Sigh  I just made my up my mind to switch from RCS to hg...

   > The easiest way to display them is to pass -v to 'hg log'. However,
   > that will also display the list of files touched by the commit, which
   > can be long, and it's pretty annoying.

Ok that seems to do it, but is seems to me that from the command line
git log

Has the nicer output than 

 hg log -v

Shrug that cannot be helped.

   > To avoid that, https://bz.mercurial-scm.org/show_bug.cgi?id=688
   > suggests using the --template argument, to indicate exactly what to
   > output.

   > If someone were to look into it and tell us what template format
   > corresponds to "current output plus long commit message", that would
   > be helpful. Preferably, both for "short" and "long" types of output
   > (see vc-hg-print-log).


I am very interested in this and will look it up




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

* Re: vc-next-action RCS vs hg: copies the entry of ChangeLog
  2015-10-18  9:50         ` Dmitry Gutov
  2015-10-18 10:22           ` Uwe Brauer
@ 2015-10-18 13:06           ` Uwe Brauer
  2015-10-18 20:04             ` Dmitry Gutov
  1 sibling, 1 reply; 41+ messages in thread
From: Uwe Brauer @ 2015-10-18 13:06 UTC (permalink / raw)
  To: emacs-devel


   > On 10/18/2015 11:25 AM, Uwe Brauer wrote:

   > Turns out, the problem is that vc-hg-print-log doesn't display
   > multiline messages, just the first line.

   > Mercurial is weird.

   > The easiest way to display them is to pass -v to 'hg log'. However,
   > that will also display the list of files touched by the commit, which
   > can be long, and it's pretty annoying.

   > To avoid that, https://bz.mercurial-scm.org/show_bug.cgi?id=688
   > suggests using the --template argument, to indicate exactly what to
   > output.

   > If someone were to look into it and tell us what template format
   > corresponds to "current output plus long commit message", that would
   > be helpful. Preferably, both for "short" and "long" types of output
   > (see vc-hg-print-log).


Hi it seems that

hg log --template "commit {node}\nAuthor : {author}\nDate: {date|rfc822date}\n\n{desc}\n\n{nofiles}\n" 

Does more or less what
 git log does





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

* Re: vc-next-action RCS vs hg: copies the entry of ChangeLog
  2015-10-18 13:06           ` Uwe Brauer
@ 2015-10-18 20:04             ` Dmitry Gutov
  2015-10-19  6:43               ` Uwe Brauer
  2015-10-19  6:55               ` Uwe Brauer
  0 siblings, 2 replies; 41+ messages in thread
From: Dmitry Gutov @ 2015-10-18 20:04 UTC (permalink / raw)
  To: emacs-devel

On 10/18/2015 04:06 PM, Uwe Brauer wrote:

> hg log --template "commit {node}\nAuthor : {author}\nDate: {date|rfc822date}\n\n{desc}\n\n{nofiles}\n"

Thank you, that's a step in the right direction. But do we really want 
to change Hg's log output beyond showing multiline messages?

Because if it's going to have more changes, at the very least, we'll 
need to adjust the font-lock rules as well (vc-hg-log-view-mode applies 
certain amount of highlighting).

Though if the output as exactly like Git's, we could use those.

The current changeset value format, containing both the numeric revision 
number and its hash, seems like it might be more useful as well.



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

* Re: vc-next-action RCS vs hg: copies the entry of ChangeLog
  2015-10-18 20:04             ` Dmitry Gutov
@ 2015-10-19  6:43               ` Uwe Brauer
  2015-10-19  6:55               ` Uwe Brauer
  1 sibling, 0 replies; 41+ messages in thread
From: Uwe Brauer @ 2015-10-19  6:43 UTC (permalink / raw)
  To: emacs-devel

>>> "Dmitry" == Dmitry Gutov <dgutov@yandex.ru> writes:

> On 10/18/2015 04:06 PM, Uwe Brauer wrote:
>> hg log --template "commit {node}\nAuthor : {author}\nDate: {date|rfc822date}\n\n{desc}\n\n{nofiles}\n"

> Thank you, that's a step in the right direction. But do we really want
> to change Hg's log output beyond showing multiline messages?


You are right. I will dig further and report back.




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

* Re: vc-next-action RCS vs hg: copies the entry of ChangeLog
  2015-10-18 20:04             ` Dmitry Gutov
  2015-10-19  6:43               ` Uwe Brauer
@ 2015-10-19  6:55               ` Uwe Brauer
  2015-10-19  7:07                 ` Eli Zaretskii
  1 sibling, 1 reply; 41+ messages in thread
From: Uwe Brauer @ 2015-10-19  6:55 UTC (permalink / raw)
  To: emacs-devel

>>> "Dmitry" == Dmitry Gutov <dgutov@yandex.ru> writes:

   > On 10/18/2015 04:06 PM, Uwe Brauer wrote:
   >> hg log --template "commit {node}\nAuthor : {author}\nDate: {date|rfc822date}\n\n{desc}\n\n{nofiles}\n"

   > Thank you, that's a step in the right direction. But do we really want
   > to change Hg's log output beyond showing multiline messages?

I am right now confused. I go to the Emacs git trunc, switch into the
lisp directory:
the latest ChangeLog is ChangeLog.17
its most recent entry (this is not the most update git version of emacs) is

,----
| 2015-04-06  Alan Mackenzie  <acm@muc.de>
| 
| 	Fix miscellaneous glitches in cc-mode.el.  (Bug#20245)
| 	* progmodes/cc-mode.el (c-common-init): bind [Snip]
`----

However when I run git log in that directory I see

,----
| commit 09c15856a926eb80106a5c42571660601c2167d6
| Author: Glenn Morris <rgm@gnu.org>
| Date:   Fri Sep 4 06:19:49 2015 -0400
| 
|     ; Auto-commit of loaddefs files.
| 
| commit 2559d6e8dadead055e6b06b04f71b2eca195dae8
| Author: Eli Zaretskii <eliz@gnu.org>
| Date:   Fri Sep 4 09:56:40 2015 +0300
`----


So git log does not show the ChangeLogs neither?!

However when for example run vc-print-log in abbrev.el
is seems to show the ChangeLog but not the git commit message.
Is this correct??

So in order to have the same behavior for hg, what do we need that the

 hg log  format is *exactly* the same as the
 git log format?


Thanks

Uwe 





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

* Re: vc-next-action RCS vs hg: copies the entry of ChangeLog
  2015-10-19  6:55               ` Uwe Brauer
@ 2015-10-19  7:07                 ` Eli Zaretskii
  2015-10-19  7:18                   ` Uwe Brauer
  2015-10-19  8:14                   ` Uwe Brauer
  0 siblings, 2 replies; 41+ messages in thread
From: Eli Zaretskii @ 2015-10-19  7:07 UTC (permalink / raw)
  To: Uwe Brauer; +Cc: emacs-devel

> From: Uwe Brauer <oub@mat.ucm.es>
> Date: Mon, 19 Oct 2015 09:55:50 +0300
> 
> I am right now confused. I go to the Emacs git trunc, switch into the
> lisp directory:
> the latest ChangeLog is ChangeLog.17
> its most recent entry (this is not the most update git version of emacs) is
> 
> ,----
> | 2015-04-06  Alan Mackenzie  <acm@muc.de>
> | 
> | 	Fix miscellaneous glitches in cc-mode.el.  (Bug#20245)
> | 	* progmodes/cc-mode.el (c-common-init): bind [Snip]
> `----
> 
> However when I run git log in that directory I see
> 
> ,----
> | commit 09c15856a926eb80106a5c42571660601c2167d6
> | Author: Glenn Morris <rgm@gnu.org>
> | Date:   Fri Sep 4 06:19:49 2015 -0400
> | 
> |     ; Auto-commit of loaddefs files.
> | 
> | commit 2559d6e8dadead055e6b06b04f71b2eca195dae8
> | Author: Eli Zaretskii <eliz@gnu.org>
> | Date:   Fri Sep 4 09:56:40 2015 +0300
> `----
> 
> 
> So git log does not show the ChangeLogs neither?!

Not in those ones.  Look at ChangeLog.2 at top level, this is the Git
commit log, updated once a week.



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

* Re: vc-next-action RCS vs hg: copies the entry of ChangeLog
  2015-10-19  7:07                 ` Eli Zaretskii
@ 2015-10-19  7:18                   ` Uwe Brauer
  2015-10-19  8:14                   ` Uwe Brauer
  1 sibling, 0 replies; 41+ messages in thread
From: Uwe Brauer @ 2015-10-19  7:18 UTC (permalink / raw)
  To: emacs-devel



   > Not in those ones.  Look at ChangeLog.2 at top level, this is the Git
   > commit log, updated once a week.


Hm not for me, but I have a repository which is some weeks old I first
pull a new one (if my connections allows it) and then report back.

I have to understand how
git log
is connected with vc-print-log

In order to modify hg log 




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

* Re: vc-next-action RCS vs hg: copies the entry of ChangeLog
  2015-10-19  7:07                 ` Eli Zaretskii
  2015-10-19  7:18                   ` Uwe Brauer
@ 2015-10-19  8:14                   ` Uwe Brauer
  2015-10-19  8:30                     ` Eli Zaretskii
  1 sibling, 1 reply; 41+ messages in thread
From: Uwe Brauer @ 2015-10-19  8:14 UTC (permalink / raw)
  To: emacs-devel



   > Not in those ones.  Look at ChangeLog.2 at top level, this is the Git
   > commit log, updated once a week.

I successfully run git pull.

Now
ChangeLog.2 contains the following first lines
,----
| 2015-10-18  Michael Albinus  <michael.albinus@gmx.de>
| 
|         Minor edits in Tramp
| 
|         * lisp/net/tramp-adb.el (directory-listing-before-filename-regexp):
|         Declare it.
| 
|         * lisp/net/tramp-compat.el (directory-listing-before-filename-regexp):
|         Remove declaration.
`----

However git log | more

gives 
,----
| commit f1575763c0d30df9f9e5b730c2f2c68f501cda9c
| Author: Eli Zaretskii <eliz@gnu.org>
| Date:   Mon Oct 19 10:04:50 2015 +0300
| 
|     Fix return value of 'set-file-extended-attributes'
| 
|     * lisp/files.el (set-file-extended-attributes): Return non-nil
|     when setting either ACLs or SELinux context succeeds.  Document
|     the return value.  (Bug#21699)
| 
|     * doc/lispref/files.texi (Changing Files): Document the return
|     value of set-file-extended-attributes.
`----


 of course if in lisp/files.el I run vc-print-log it shows the above
 message.

What I am wondering where is the corresponding ChangeLog file?





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

* Re: vc-next-action RCS vs hg: copies the entry of ChangeLog
  2015-10-19  8:14                   ` Uwe Brauer
@ 2015-10-19  8:30                     ` Eli Zaretskii
  2015-10-19  8:38                       ` Uwe Brauer
  0 siblings, 1 reply; 41+ messages in thread
From: Eli Zaretskii @ 2015-10-19  8:30 UTC (permalink / raw)
  To: Uwe Brauer; +Cc: emacs-devel

> From: Uwe Brauer <oub@mat.ucm.es>
> Date: Mon, 19 Oct 2015 11:14:17 +0300
> 
> 
> 
>    > Not in those ones.  Look at ChangeLog.2 at top level, this is the Git
>    > commit log, updated once a week.
> 
> I successfully run git pull.
> 
> Now
> ChangeLog.2 contains the following first lines
> ,----
> | 2015-10-18  Michael Albinus  <michael.albinus@gmx.de>
> | 
> |         Minor edits in Tramp
> | 
> |         * lisp/net/tramp-adb.el (directory-listing-before-filename-regexp):
> |         Declare it.
> | 
> |         * lisp/net/tramp-compat.el (directory-listing-before-filename-regexp):
> |         Remove declaration.
> `----
> 
> However git log | more
> 
> gives 
> ,----
> | commit f1575763c0d30df9f9e5b730c2f2c68f501cda9c
> | Author: Eli Zaretskii <eliz@gnu.org>
> | Date:   Mon Oct 19 10:04:50 2015 +0300
> | 
> |     Fix return value of 'set-file-extended-attributes'
> | 
> |     * lisp/files.el (set-file-extended-attributes): Return non-nil
> |     when setting either ACLs or SELinux context succeeds.  Document
> |     the return value.  (Bug#21699)
> | 
> |     * doc/lispref/files.texi (Changing Files): Document the return
> |     value of set-file-extended-attributes.
> `----

Of course.  Like I said above:

>    > Look at ChangeLog.2 at top level, this is the Git
>    > commit log, updated once a week.
                   ^^^^^^^^^^^^^^^^^^^

Wait for a few hours, and you will ChangeLog.2 updated in the
repository.



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

* Re: vc-next-action RCS vs hg: copies the entry of ChangeLog
  2015-10-19  8:30                     ` Eli Zaretskii
@ 2015-10-19  8:38                       ` Uwe Brauer
  2015-10-19  8:52                         ` Dmitry Gutov
  2015-10-19  9:04                         ` Eli Zaretskii
  0 siblings, 2 replies; 41+ messages in thread
From: Uwe Brauer @ 2015-10-19  8:38 UTC (permalink / raw)
  To: emacs-devel



   > Of course.  Like I said above:

   >                    ^^^^^^^^^^^^^^^^^^^

   > Wait for a few hours, and you will ChangeLog.2 updated in the
   > repository.


Ok, thanks. Last question, a bit off topic I admit. Where is it
configured that git uses ChangeLog.2.

I did a grep in the .git directory but did not find anything useful.

thanks




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

* Re: vc-next-action RCS vs hg: copies the entry of ChangeLog
  2015-10-19  8:38                       ` Uwe Brauer
@ 2015-10-19  8:52                         ` Dmitry Gutov
  2015-10-19  9:13                           ` Dmitry Gutov
  2015-10-19  9:04                         ` Eli Zaretskii
  1 sibling, 1 reply; 41+ messages in thread
From: Dmitry Gutov @ 2015-10-19  8:52 UTC (permalink / raw)
  To: emacs-devel

On 10/19/2015 11:38 AM, Uwe Brauer wrote:

> Ok, thanks. Last question, a bit off topic I admit. Where is it
> configured that git uses ChangeLog.2.

This thread of discussion is very confused.

Git doesn't use ChangeLog files itself. We copy the most recent 
ChangeLog entry into commit message before making a commit.

Otherwise, Git doesn't know anything about them.



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

* Re: vc-next-action RCS vs hg: copies the entry of ChangeLog
  2015-10-19  8:38                       ` Uwe Brauer
  2015-10-19  8:52                         ` Dmitry Gutov
@ 2015-10-19  9:04                         ` Eli Zaretskii
  2015-10-19  9:15                           ` Uwe Brauer
  1 sibling, 1 reply; 41+ messages in thread
From: Eli Zaretskii @ 2015-10-19  9:04 UTC (permalink / raw)
  To: Uwe Brauer; +Cc: emacs-devel

> From: Uwe Brauer <oub@mat.ucm.es>
> Date: Mon, 19 Oct 2015 11:38:25 +0300
> 
> Ok, thanks. Last question, a bit off topic I admit. Where is it
> configured that git uses ChangeLog.2.

It doesn't.  We produce ChangeLog.2 from "git log".



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

* Re: vc-next-action RCS vs hg: copies the entry of ChangeLog
  2015-10-19  8:52                         ` Dmitry Gutov
@ 2015-10-19  9:13                           ` Dmitry Gutov
  0 siblings, 0 replies; 41+ messages in thread
From: Dmitry Gutov @ 2015-10-19  9:13 UTC (permalink / raw)
  To: emacs-devel

On 10/19/2015 11:52 AM, Dmitry Gutov wrote:

> Otherwise, Git doesn't know anything about them.

Except storing and updating ChangeLog.x when asked, of course.




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

* Re: vc-next-action RCS vs hg: copies the entry of ChangeLog
  2015-10-19  9:04                         ` Eli Zaretskii
@ 2015-10-19  9:15                           ` Uwe Brauer
  2015-10-19  9:20                             ` Dmitry Gutov
  0 siblings, 1 reply; 41+ messages in thread
From: Uwe Brauer @ 2015-10-19  9:15 UTC (permalink / raw)
  To: emacs-devel



> It doesn't.  We produce ChangeLog.2 from "git log".

Ok, but git log
prints the commit msg and the relevant ChangeLog entry
(of that directory I presume.)

 Hg log seems not to have that feature.





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

* Re: vc-next-action RCS vs hg: copies the entry of ChangeLog
  2015-10-19  9:15                           ` Uwe Brauer
@ 2015-10-19  9:20                             ` Dmitry Gutov
  2015-10-19 10:45                               ` Uwe Brauer
  0 siblings, 1 reply; 41+ messages in thread
From: Dmitry Gutov @ 2015-10-19  9:20 UTC (permalink / raw)
  To: emacs-devel

On 10/19/2015 12:15 PM, Uwe Brauer wrote:

> Ok, but git log
> prints the commit msg and the relevant ChangeLog entry
> (of that directory I presume.)
>
>   Hg log seems not to have that feature.

hg log -v.



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

* Re: vc-next-action RCS vs hg: copies the entry of ChangeLog
  2015-10-19  9:20                             ` Dmitry Gutov
@ 2015-10-19 10:45                               ` Uwe Brauer
  2015-10-19 10:51                                 ` Dmitry Gutov
  0 siblings, 1 reply; 41+ messages in thread
From: Uwe Brauer @ 2015-10-19 10:45 UTC (permalink / raw)
  To: emacs-devel

>>> "Dmitry" == Dmitry Gutov <dgutov@yandex.ru> writes:

   > On 10/19/2015 12:15 PM, Uwe Brauer wrote:
   >> Ok, but git log
   >> prints the commit msg and the relevant ChangeLog entry
   >> (of that directory I presume.)
   >> 
   >> Hg log seems not to have that feature.

   > hg log -v.


No, this does not display the content of the ChangeLog!!!

Let me try to resume.

HG
    -  Edit a file and enter a comment "CHLcomment" into the ChangeLog

    -  From the command line: hg commit -m "test msg"

    -  From the command line: hg log -v

*Only* the comment "test msg" is displayed

GIT

    -  Edit a file and enter a comment "CHLcomment" into the ChangeLog

    -  From the command line: git commit -am "test msg"

    -  From the command line: git log 

*Only* the comment "test msg" is displayed!!

Now I use Emacs.

GIT

    -  Edit a file and enter a comment "CHLcommentEmacs" into the ChangeLog

    -  vc-next-action:  "test msgEmacs"

    -  vc-print-log: both comments are shown  "CHLcommentEmacs" and  "test       msgEmacs"

    - from the command line git log shows also *BOTH*

HG
    -  Edit a file and enter a comment "CHLcommentEmacs" into the ChangeLog

    -  vc-next-action:  "test msgEmacs"

    -  vc-print-log: only    "test msgEmacs" is displayed

    -       from the command line hg log only shows  "test msgEmacs"

So it seems the culprit is Emacs, when it commits using git is also
inserts part of the ChangeLog, otherwise I don't understand the
different behavior of

 git log

From the command line.




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

* Re: vc-next-action RCS vs hg: copies the entry of ChangeLog
  2015-10-19 10:45                               ` Uwe Brauer
@ 2015-10-19 10:51                                 ` Dmitry Gutov
  2015-10-19 10:57                                   ` Uwe Brauer
  0 siblings, 1 reply; 41+ messages in thread
From: Dmitry Gutov @ 2015-10-19 10:51 UTC (permalink / raw)
  To: emacs-devel

On 10/19/2015 01:45 PM, Uwe Brauer wrote:

>     > hg log -v.
>
>
> No, this does not display the content of the ChangeLog!!!

Right. It shows the full contents of commit messages. Which should have 
ChangeLog entries in them, if you committed from inside Emacs, using 
vc-next-action.

> Let me try to resume.
>
> HG
>      -  Edit a file and enter a comment "CHLcomment" into the ChangeLog
>
>      -  From the command line: hg commit -m "test msg"
>
>      -  From the command line: hg log -v
>
> *Only* the comment "test msg" is displayed

Indeed.

> Now I use Emacs.
>
> GIT
 > ...
> HG
>      -  Edit a file and enter a comment "CHLcommentEmacs" into the ChangeLog
>
>      -  vc-next-action:  "test msgEmacs"
>
>      -  vc-print-log: only    "test msgEmacs" is displayed

Because, like I explained in this very thread, vc-hg-print-log doesn't 
use the '-v' argument when calling 'hg log'.

>      -       from the command line hg log only shows  "test msgEmacs"

Call 'hg log -v' at this step.

> So it seems the culprit is Emacs, when it commits using git is also
> inserts part of the ChangeLog, otherwise I don't understand the
> different behavior of
>
>   git log
>
>  From the command line.

'git log' doesn't need '-v'.



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

* Re: vc-next-action RCS vs hg: copies the entry of ChangeLog
  2015-10-19 10:51                                 ` Dmitry Gutov
@ 2015-10-19 10:57                                   ` Uwe Brauer
  2015-10-19 11:02                                     ` Dmitry Gutov
  0 siblings, 1 reply; 41+ messages in thread
From: Uwe Brauer @ 2015-10-19 10:57 UTC (permalink / raw)
  To: emacs-devel


   > On 10/19/2015 01:45 PM, Uwe Brauer wrote:

   > Right. It shows the full contents of commit messages. Which should
   > have ChangeLog entries in them, if you committed from inside Emacs,
   > using vc-next-action.


   > Indeed.


   > Because, like I explained in this very thread, vc-hg-print-log doesn't
   > use the '-v' argument when calling 'hg log'.


   > Call 'hg log -v' at this step.


   > 'git log' doesn't need '-v'.


You are right I am wrong.

I send you a possible hg log
hg log --template "commit {node}\nAuthor: {author}\nDate: {date|rfc822date}\n{desc}\n{nofiles}\n"

And for me it looks very much than the one of git, so one could just use
the same code.

However you seem to prefer a different format.

Could you please tell me what you have in mind?

So I could try to play with the templates.

Thanks





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

* Re: vc-next-action RCS vs hg: copies the entry of ChangeLog
  2015-10-19 10:57                                   ` Uwe Brauer
@ 2015-10-19 11:02                                     ` Dmitry Gutov
  2015-10-19 13:20                                       ` Uwe Brauer
  0 siblings, 1 reply; 41+ messages in thread
From: Dmitry Gutov @ 2015-10-19 11:02 UTC (permalink / raw)
  To: emacs-devel

On 10/19/2015 01:57 PM, Uwe Brauer wrote:

> I send you a possible hg log
> hg log --template "commit {node}\nAuthor: {author}\nDate: {date|rfc822date}\n{desc}\n{nofiles}\n"
>
> And for me it looks very much than the one of git, so one could just use
> the same code.
>
> However you seem to prefer a different format.
>
> Could you please tell me what you have in mind?

I don't know which template string that corresponds to, but for 
vc-print-log, we use the normal 'hg log' output.

For vc-print-root-log, we currently use this template:

(concat "{rev}:{ifeq(branch, 'default','', '{branch}')}"
         ":{bookmarks}:{tags}:{author|person}"
         " {date|shortdate} {desc|firstline}\\n")

So we have two of them, and we probably want to modify each of them 
slightly, so that the messages are displayed in full.



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

* Re: vc-next-action RCS vs hg: copies the entry of ChangeLog
  2015-10-19 11:02                                     ` Dmitry Gutov
@ 2015-10-19 13:20                                       ` Uwe Brauer
  2015-10-19 23:46                                         ` Dmitry Gutov
  0 siblings, 1 reply; 41+ messages in thread
From: Uwe Brauer @ 2015-10-19 13:20 UTC (permalink / raw)
  To: emacs-devel

>>> "Dmitry" == Dmitry Gutov <dgutov@yandex.ru> writes:

> On 10/19/2015 01:57 PM, Uwe Brauer wrote:
>> I send you a possible hg log
>> hg log --template "commit {node}\nAuthor: {author}\nDate: {date|rfc822date}\n{desc}\n{nofiles}\n"
>> 
>> And for me it looks very much than the one of git, so one could just use
>> the same code.
>> 
>> However you seem to prefer a different format.
>> 
>> Could you please tell me what you have in mind?

> I don't know which template string that corresponds to, but for
> vc-print-log, we use the normal 'hg log' output.

> For vc-print-root-log, we currently use this template:

> (concat "{rev}:{ifeq(branch, 'default','', '{branch}')}"
>         ":{bookmarks}:{tags}:{author|person}"
>         " {date|shortdate} {desc|firstline}\\n")

> So we have two of them, and we probably want to modify each of them
> slightly, so that the messages are displayed in full.


Ok 

However when I run

hg log --template "changeset: {rev}:{node|short}\ntag: {tags}\nuser:
{author}\nDate: {date|rfc822date}\ndescription: {desc}\n{nofiles}\n"

I obtain
,----
| changeset: 17:5d2e1c5cdb3c
| tag: tip
| user: Uwe Brauer <oub@mat.ucm.es>
| Date: Mon, 19 Oct 2015 13:51:29 +0300
| description: second commit
| 
| * testhg.tex: my first one.
`----

While with
hg log -v

,----
| changeset:   17:5d2e1c5cdb3c
| tag:         tip
| user:        Uwe Brauer <oub@mat.ucm.es>
| date:        Mon Oct 19 13:51:29 2015 +0300
| files:       testhg.tex
| description:
| second commit
| 
| * testhg.tex: my first one.
| 
`----


So I think the new template should be fine or you want to fiddle me the
 newlines?

How to implement that in is not entirely clear to me. Maybe a different
template for hg is needed?







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

* Re: vc-next-action RCS vs hg: copies the entry of ChangeLog
  2015-10-19 13:20                                       ` Uwe Brauer
@ 2015-10-19 23:46                                         ` Dmitry Gutov
  2015-10-20  6:05                                           ` Uwe Brauer
  0 siblings, 1 reply; 41+ messages in thread
From: Dmitry Gutov @ 2015-10-19 23:46 UTC (permalink / raw)
  To: emacs-devel

On 10/19/2015 04:20 PM, Uwe Brauer wrote:

> So I think the new template should be fine or you want to fiddle me the
>   newlines?

Why newlines?

The obvious difference is that the values are not lined up vertically. 
But you can add spaces to fix that, manually. Then:

- No need to replace "summary:" with "description:".
- Even when the commit doesn't have a tag, your template still shows 
that line.
- The date format is slightly different.
- When the commit has multiple parents, the default style shows them 
both, yours doesn't.

> How to implement that in is not entirely clear to me. Maybe a different
> template for hg is needed?

I don't know what you mean by that.

It's okay if this is too much for you. Then please open a bug for this, 
and we'll get back to it later. Maybe someone experienced with Mercurial 
will come and help.



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

* Re: vc-next-action RCS vs hg: copies the entry of ChangeLog
  2015-10-19 23:46                                         ` Dmitry Gutov
@ 2015-10-20  6:05                                           ` Uwe Brauer
  2015-10-20  8:34                                             ` Dmitry Gutov
  0 siblings, 1 reply; 41+ messages in thread
From: Uwe Brauer @ 2015-10-20  6:05 UTC (permalink / raw)
  To: emacs-devel

>>> "Dmitry" == Dmitry Gutov <dgutov@yandex.ru> writes:

> On 10/19/2015 04:20 PM, Uwe Brauer wrote:
>> So I think the new template should be fine or you want to fiddle me the
>> newlines?

> Why newlines?

> The obvious difference is that the values are not lined up vertically.
> But you can add spaces to fix that, manually. Then:

> - No need to replace "summary:" with "description:".
> - Even when the commit doesn't have a tag, your template still shows that line.
> - The date format is slightly different.
> - When the commit has multiple parents, the default style shows them both, yours doesn't.

Ok, I will ask on the mercurial list for more help.

>> How to implement that in is not entirely clear to me. Maybe a different
>> template for hg is needed?

> I don't know what you mean by that.

What I mean is suppose I come up with the hg template which meets all
the requirements, I would leave it to the vc maintainer to implement
that in lisp. For me it is not obvious how to do it.

> It's okay if this is too much for you. Then please open a bug for
> this, and we'll get back to it later. Maybe someone experienced with
> Mercurial will come and help.

If I don't get a useful respond on the Mercurial list, I will do that.







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

* Re: vc-next-action RCS vs hg: copies the entry of ChangeLog
  2015-10-20  6:05                                           ` Uwe Brauer
@ 2015-10-20  8:34                                             ` Dmitry Gutov
  2015-10-26 16:35                                               ` [Solved] (was: vc-next-action RCS vs hg: copies the entry of ChangeLog) Uwe Brauer
  0 siblings, 1 reply; 41+ messages in thread
From: Dmitry Gutov @ 2015-10-20  8:34 UTC (permalink / raw)
  To: emacs-devel

On 10/20/2015 09:05 AM, Uwe Brauer wrote:

> What I mean is suppose I come up with the hg template which meets all
> the requirements, I would leave it to the vc maintainer to implement
> that in lisp. For me it is not obvious how to do it.

You could leave that to me, yes.



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

* [Solved] (was: vc-next-action RCS vs hg: copies the entry of ChangeLog)
  2015-10-20  8:34                                             ` Dmitry Gutov
@ 2015-10-26 16:35                                               ` Uwe Brauer
  2015-10-27 13:15                                                 ` [Solved] Dmitry Gutov
  0 siblings, 1 reply; 41+ messages in thread
From: Uwe Brauer @ 2015-10-26 16:35 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1305 bytes --]

>>> "Dmitry" == Dmitry Gutov <dgutov@yandex.ru> writes:

   > On 10/20/2015 09:05 AM, Uwe Brauer wrote:
   >> What I mean is suppose I come up with the hg template which meets all
   >> the requirements, I would leave it to the vc maintainer to implement
   >> that in lisp. For me it is not obvious how to do it.

   > You could leave that to me, yes.

I finally found a solution which was proposed to me by Simon King on the
mercury mailing list.

It seems impossible to run hg log from the commandline in order to
obtain a output similar/identical to «git  log».

There is however a two step procedure.

    -  write a style file (I attach the correct one below)

    -  then run hg log --style /path/to/hgstyle 

And voila!

,----
| changeset:   32:de9787eefb88
| tag: tip
| user:        Uwe Brauer <oub@mat.ucm.es>
| Date:        Mon Oct 26 16:27:35 2015 +0000
| summary:     A Huge commit
| 
|         * section-1.tex: Here comes an
|         important change
| 
|         * testhg2.tex (section{Nación} {} {}): New long change:
| 
|         * testhg2.tex (section{Introduction} {} {}): Add an
|         introduction
| 
|         * testneuneu.tex (section{Einfuehrung} {} {}): Eine
|         Neue Einfuehrung
`----

How to implement this is lisp I leave to you.

Thanks and regards

Uwe Brauer 


[-- Attachment #2: hgstyle --]
[-- Type: application/octet-stream, Size: 167 bytes --]

changeset = "changeset:   {rev}:{node|short}\n{tags}user:        {author}\nDate:        {date|date}\nsummary:     {tabindent(desc)}\n{nofiles}\n"
tag = "tag: {tag}\n"

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

* Re: [Solved]
  2015-10-26 16:35                                               ` [Solved] (was: vc-next-action RCS vs hg: copies the entry of ChangeLog) Uwe Brauer
@ 2015-10-27 13:15                                                 ` Dmitry Gutov
  2015-10-27 14:23                                                   ` [Solved] Uwe Brauer
                                                                     ` (2 more replies)
  0 siblings, 3 replies; 41+ messages in thread
From: Dmitry Gutov @ 2015-10-27 13:15 UTC (permalink / raw)
  To: emacs-devel

On 10/26/2015 06:35 PM, Uwe Brauer wrote:

> There is however a two step procedure.
>
>      -  write a style file (I attach the correct one below)
>
>      -  then run hg log --style /path/to/hgstyle
>
> And voila!

Thank you the style file. I was able to turn it back into a template 
string, using what the Mercurial documentation calls the "list operator" 
(percent sign).

I've also made some changes:

- Removed 'tabindent', because 8-spaces indentation looks too much, and 
'indent' doesn't work in my version of Mercurial (3.4).

- Added "parents:". I tried to put them on separate lines, but haven't 
managed do to that while retaining their short format.

- Added indentation after "tag:".

- Removed {nofiles}. Any idea what that expansion is supposed to do? It 
didn't seem to have any effect.

Pushed to master as 99ded6b.



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

* Re: [Solved]
  2015-10-27 13:15                                                 ` [Solved] Dmitry Gutov
@ 2015-10-27 14:23                                                   ` Uwe Brauer
  2015-10-27 15:15                                                     ` [Solved] Dmitry Gutov
  2015-10-27 14:30                                                   ` [Solved] Uwe Brauer
  2015-10-27 14:49                                                   ` [prop: change] (was: [Solved]) Uwe Brauer
  2 siblings, 1 reply; 41+ messages in thread
From: Uwe Brauer @ 2015-10-27 14:23 UTC (permalink / raw)
  To: emacs-devel


> On 10/26/2015 06:35 PM, Uwe Brauer wrote:

> Thank you the style file. I was able to turn it back into a template
> string, using what the Mercurial documentation calls the "list
> operator" (percent sign).

> I've also made some changes:

> - Removed 'tabindent', because 8-spaces indentation looks too much,
> and 'indent' doesn't work in my version of Mercurial (3.4).


Nor in mine 3.0.1.
Pitty I liked the tabindentation makes it better readable. Will see
whether tabindent is configurable.

> - Added "parents:". I tried to put them on separate lines, but haven't
> managed do to that while retaining their short format.

> - Added indentation after "tag:".

> - Removed {nofiles}. Any idea what that expansion is supposed to do?
> It didn't seem to have any effect.

Well that is supposed not to show the list of modified files. As far as
I can remember this was one of your concerns about «hg log -v»

> Pushed to master as 99ded6b.

Ok I pulled and, since did not want to recompile my whole emacs, I just
compiled replaced the whole vc directory by a new one. But now how am I
suppose to use the new functionality? Because for me nothing has changed
in the behaviour of vc-print-log

Uwe 






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

* Re: [Solved]
  2015-10-27 13:15                                                 ` [Solved] Dmitry Gutov
  2015-10-27 14:23                                                   ` [Solved] Uwe Brauer
@ 2015-10-27 14:30                                                   ` Uwe Brauer
  2015-10-27 14:49                                                   ` [prop: change] (was: [Solved]) Uwe Brauer
  2 siblings, 0 replies; 41+ messages in thread
From: Uwe Brauer @ 2015-10-27 14:30 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 474 bytes --]


   > On 10/26/2015 06:35 PM, Uwe Brauer wrote:

   > Thank you the style file. I was able to turn it back into a template
   > string, using what the Mercurial documentation calls the "list
   > operator" (percent sign).

   > I've also made some changes:

   > - Removed 'tabindent', because 8-spaces indentation looks too much,
   > and 'indent' doesn't work in my version of Mercurial (3.4).


 The function fill68  might come in handy, I attach a modified style
 file


[-- Attachment #2: hgstyle --]
[-- Type: application/octet-stream, Size: 176 bytes --]

changeset = "changeset:   {rev}:{node|short}\n{tags}user:        {author}\nDate:        {date|date}\nsummary:     {tabindent(fill68(desc)))}\n{nofiles}\n"
tag = "tag: {tag}\n"

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

* [prop: change] (was: [Solved])
  2015-10-27 13:15                                                 ` [Solved] Dmitry Gutov
  2015-10-27 14:23                                                   ` [Solved] Uwe Brauer
  2015-10-27 14:30                                                   ` [Solved] Uwe Brauer
@ 2015-10-27 14:49                                                   ` Uwe Brauer
  2015-10-27 15:16                                                     ` [prop: change] Dmitry Gutov
  2 siblings, 1 reply; 41+ messages in thread
From: Uwe Brauer @ 2015-10-27 14:49 UTC (permalink / raw)
  To: emacs-devel

>>> "Dmitry" == Dmitry Gutov <dgutov@yandex.ru> writes:

> On 10/26/2015 06:35 PM, Uwe Brauer wrote:
>> There is however a two step procedure.
>> 
>> -  write a style file (I attach the correct one below)
>> 
>> -  then run hg log --style /path/to/hgstyle
>> 
>> And voila!

> Thank you the style file. I was able to turn it back into a template
> string, using what the Mercurial documentation calls the "list
> operator" (percent sign).

> I've also made some changes:

> - Removed 'tabindent', because 8-spaces indentation looks too much,
> and 'indent' doesn't work in my version of Mercurial (3.4).

I got it to work, sorry for the noise.


I changed your code to
(defvar vc-hg-log-format (concat "changeset:   {rev}:{node|short}\n"
                                 "{tags % 'tag:         {tag}\n'}"
                                 "{if(parents, 'parents:     {parents}\n')}"
                                 "user:        {author}\n"
                                 "Date:        {date|date}\n"
                                 "summary:     {tabindent(fill68(desc))}\n\n")
  "Mercurial log template for `vc-hg-print-log' long format.")

And it seems to me closer to «git log»




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

* Re: [Solved]
  2015-10-27 14:23                                                   ` [Solved] Uwe Brauer
@ 2015-10-27 15:15                                                     ` Dmitry Gutov
  0 siblings, 0 replies; 41+ messages in thread
From: Dmitry Gutov @ 2015-10-27 15:15 UTC (permalink / raw)
  To: emacs-devel

On 10/27/2015 04:23 PM, Uwe Brauer wrote:

> Pitty I liked the tabindentation makes it better readable. Will see
> whether tabindent is configurable.

I don't know if it makes that much of a difference: everything but the 
message contents is formatted in a distinct way.

> Well that is supposed not to show the list of modified files. As far as
> I can remember this was one of your concerns about «hg log -v»

We don't see the list of modified files without {nofiles} either.

> Ok I pulled and, since did not want to recompile my whole emacs, I just
> compiled replaced the whole vc directory by a new one. But now how am I
> suppose to use the new functionality? Because for me nothing has changed
> in the behaviour of vc-print-log

It should show multiline messages in commits that contain them.



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

* Re: [prop: change]
  2015-10-27 14:49                                                   ` [prop: change] (was: [Solved]) Uwe Brauer
@ 2015-10-27 15:16                                                     ` Dmitry Gutov
  2015-10-27 15:56                                                       ` Uwe Brauer
  2015-10-27 17:18                                                       ` Uwe Brauer
  0 siblings, 2 replies; 41+ messages in thread
From: Dmitry Gutov @ 2015-10-27 15:16 UTC (permalink / raw)
  To: emacs-devel

On 10/27/2015 04:49 PM, Uwe Brauer wrote:

> I got it to work, sorry for the noise.

Good.

> I changed your code to
> (defvar vc-hg-log-format (concat "changeset:   {rev}:{node|short}\n"
>                                   "{tags % 'tag:         {tag}\n'}"
>                                   "{if(parents, 'parents:     {parents}\n')}"
>                                   "user:        {author}\n"
>                                   "Date:        {date|date}\n"
>                                   "summary:     {tabindent(fill68(desc))}\n\n")
>    "Mercurial log template for `vc-hg-print-log' long format.")
>
> And it seems to me closer to «git log»

I don't think 'git log' refills commit messages, or uses 8 spaces to 
indent them. Does it?



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

* Re: [prop: change]
  2015-10-27 15:16                                                     ` [prop: change] Dmitry Gutov
@ 2015-10-27 15:56                                                       ` Uwe Brauer
  2015-10-27 17:18                                                       ` Uwe Brauer
  1 sibling, 0 replies; 41+ messages in thread
From: Uwe Brauer @ 2015-10-27 15:56 UTC (permalink / raw)
  To: emacs-devel


   > On 10/27/2015 04:49 PM, Uwe Brauer wrote:

   > Good.


   > I don't think 'git log' refills commit messages, or uses 8 spaces
   > to indent them. Does it?


Here is a cat:
,----
| commit 99ded6be7afe843d7abc0e255fe36b684435cfd7
| Author: Dmitry Gutov <dgutov@yandex.ru>
| Date:   Tue Oct 27 14:55:06 2015 +0200
| 
|     Show full commit messages in 'hg log' when appropriate
| 
|     * lisp/vc/vc-hg.el (vc-hg-log-format): New variable.
|     (vc-hg-print-log, vc-hg-expanded-log-entry): Use it.
|     (http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg02191.html)
`----

And here is a output with my modified using tabindent.

,----
| changeset:   133:a9f91e0993e9
| user:        Uwe Brauer <oub@mat.ucm.es>
| Date:        Sat Oct 24 09:15:23 2015 +0300
| summary:     Various changes
| 
|         * section-0003.tex (subsection{Properties_solutions} {equation}
|         {eq:gamblin:9}): important change
`----


So the difference is the degree of indentation.





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

* Re: [prop: change]
  2015-10-27 15:16                                                     ` [prop: change] Dmitry Gutov
  2015-10-27 15:56                                                       ` Uwe Brauer
@ 2015-10-27 17:18                                                       ` Uwe Brauer
       [not found]                                                         ` <562FB38A.7060007@yandex.ru>
  1 sibling, 1 reply; 41+ messages in thread
From: Uwe Brauer @ 2015-10-27 17:18 UTC (permalink / raw)
  To: emacs-devel

>>> "Dmitry" == Dmitry Gutov <dgutov@yandex.ru> writes:

> On 10/27/2015 04:49 PM, Uwe Brauer wrote:
>> I got it to work, sorry for the noise.

> Good.

>> I changed your code to
>> (defvar vc-hg-log-format (concat "changeset:   {rev}:{node|short}\n"
>> "{tags % 'tag:         {tag}\n'}"
>> "{if(parents, 'parents:     {parents}\n')}"
>> "user:        {author}\n"
>> "Date:        {date|date}\n"
>> "summary:     {tabindent(fill68(desc))}\n\n")
>> "Mercurial log template for `vc-hg-print-log' long format.")
>> 
>> And it seems to me closer to «git log»

> I don't think 'git log' refills commit messages, or uses 8 spaces to
> indent them. Does it?

 The function tabindent adds a tab, since tab-width is set to 8, this
 looks like 8 spaces, maybe in that case tab-width should be set to 4.





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

* Re: [prop: change]
       [not found]                                                               ` <87twpbfaiv.fsf@mat.ucm.es>
@ 2015-10-28 12:38                                                                 ` Dmitry Gutov
  0 siblings, 0 replies; 41+ messages in thread
From: Dmitry Gutov @ 2015-10-28 12:38 UTC (permalink / raw)
  To: Uwe Brauer; +Cc: emacs-devel

On 10/28/2015 02:22 PM, Uwe Brauer wrote:

>> I think 2 looks a bit better than 4, wastes less space. Hope that's
>> all right with you.
>
> I'd prefer 4, but I leave that to your judgment. One question I also had
> {tabindent(fill68(desc)).
>
> It seems that you don't like it, but I think it could be handy for very
> long lines in the Changelog file?

IMO, it's better to fix any long-line problems in the commit message 
before making the commit.

And if you wrap long lines in vc-hg-log output,

a) You risk not seeing these problems, which is problematic for the 
commits you made yourself (other members of your team will see them 
differently).

b) There's no guarantee that fill68 won't make some text layout worse. 
At least I think so; I've never tried it.



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

* Re: [SOLVED]
  2015-11-08  9:05             ` [SOLVED] (was: emacs hebrew script bidi nikud rendering bugs) Uwe Brauer
@ 2015-11-09 17:52               ` Benjamin Riefenstahl
  0 siblings, 0 replies; 41+ messages in thread
From: Benjamin Riefenstahl @ 2015-11-09 17:52 UTC (permalink / raw)
  To: emacs-devel

Hi Uwe,

Uwe Brauer writes:
> I upgraded libotf 0.9.13, libm17n-flt, and m17n-db to version 1.6.X
> and the niqqud are displayed correctly.

Good!

Just for the record, this is still with "DejaVu Sans" and relatively
standard stuff like alef+qamats and alef+qubuts specifically, right?
Did you try adding dagesh or the yiddish ligatures, like the things that
Mark has?

benny




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

* Re: [SOLVED]
  2023-12-01  5:59     ` Emanuel Berg
@ 2023-12-01  6:56       ` Uwe Brauer
  0 siblings, 0 replies; 41+ messages in thread
From: Uwe Brauer @ 2023-12-01  6:56 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1755 bytes --]

>>> "EB" == Emanuel Berg <incal@dataswamp.org> writes:

> Uwe Brauer wrote:
>>> I asked this already on the emacs help list, but maybe
>>> somebody here, knows about the following feature, namely:
>>> Count all the typos, ispell (flyspell) finds in
>>> given buffer.
>>> 
>>> I posted this solution on gnu.emacs.help several days ago
>>> but it hasn't appeared, anyway here you go.
>> 
>>> ;; this is a region wiht two
>>> ;; worsd spelled incorrectly
>> 
>> Thanks with the latest misc.el from master, it works, great

> Right, I know what caused that, I had my own misc.el not
> knowing there was such a file in Emacs already. Glad you got
> it to work anyway and I renamed that file, so it improved my
> Elisp as well, sweet.

> If one is interested in "spell stats" one could do a more
> integrated solution so it would report after each normal spell
> run with ispell.

I think right now the best strategy is: 

    1. first run ispell/aspell to check for names and expression he does
       not know and which should be inserted in your personal dictionary.

    2. Only then use the counting function.

> But I don't know how much that would be used, really, so maybe
> that little Elisp is enough to just test and play with once in
> a while. Or why did you want this to begin with? I guess there
> are more people like me who just love to count things.

I think I will ask also in the org mailing list, maybe someone there is
interested. 

-- 
I strongly condemn Hamas heinous atrocities on Israel, especially the despicable pogroms.
I strongly condemn Putin's war of aggression against Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the EU and NATO membership of Ukraine. 


[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

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

end of thread, other threads:[~2023-12-01  6:56 UTC | newest]

Thread overview: 41+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-15  6:48 vc-next-action RCS vs hg: copies the entry of ChangeLog Uwe Brauer
2015-10-15 10:54 ` Dmitry Gutov
2015-10-18  7:02   ` Uwe Brauer
2015-10-18  7:58     ` Dmitry Gutov
2015-10-18  8:25       ` Uwe Brauer
2015-10-18  9:50         ` Dmitry Gutov
2015-10-18 10:22           ` Uwe Brauer
2015-10-18 13:06           ` Uwe Brauer
2015-10-18 20:04             ` Dmitry Gutov
2015-10-19  6:43               ` Uwe Brauer
2015-10-19  6:55               ` Uwe Brauer
2015-10-19  7:07                 ` Eli Zaretskii
2015-10-19  7:18                   ` Uwe Brauer
2015-10-19  8:14                   ` Uwe Brauer
2015-10-19  8:30                     ` Eli Zaretskii
2015-10-19  8:38                       ` Uwe Brauer
2015-10-19  8:52                         ` Dmitry Gutov
2015-10-19  9:13                           ` Dmitry Gutov
2015-10-19  9:04                         ` Eli Zaretskii
2015-10-19  9:15                           ` Uwe Brauer
2015-10-19  9:20                             ` Dmitry Gutov
2015-10-19 10:45                               ` Uwe Brauer
2015-10-19 10:51                                 ` Dmitry Gutov
2015-10-19 10:57                                   ` Uwe Brauer
2015-10-19 11:02                                     ` Dmitry Gutov
2015-10-19 13:20                                       ` Uwe Brauer
2015-10-19 23:46                                         ` Dmitry Gutov
2015-10-20  6:05                                           ` Uwe Brauer
2015-10-20  8:34                                             ` Dmitry Gutov
2015-10-26 16:35                                               ` [Solved] (was: vc-next-action RCS vs hg: copies the entry of ChangeLog) Uwe Brauer
2015-10-27 13:15                                                 ` [Solved] Dmitry Gutov
2015-10-27 14:23                                                   ` [Solved] Uwe Brauer
2015-10-27 15:15                                                     ` [Solved] Dmitry Gutov
2015-10-27 14:30                                                   ` [Solved] Uwe Brauer
2015-10-27 14:49                                                   ` [prop: change] (was: [Solved]) Uwe Brauer
2015-10-27 15:16                                                     ` [prop: change] Dmitry Gutov
2015-10-27 15:56                                                       ` Uwe Brauer
2015-10-27 17:18                                                       ` Uwe Brauer
     [not found]                                                         ` <562FB38A.7060007@yandex.ru>
     [not found]                                                           ` <87eggf1lmy.fsf@mat.ucm.es>
     [not found]                                                             ` <5630ABD8.1000408@yandex.ru>
     [not found]                                                               ` <87twpbfaiv.fsf@mat.ucm.es>
2015-10-28 12:38                                                                 ` Dmitry Gutov
  -- strict thread matches above, loose matches on Subject: below --
2015-11-06 19:36 emacs hebrew script bidi nikud rendering bugs Mark David
2015-11-07  9:41 ` Uwe Brauer
2015-11-07 11:36   ` Eli Zaretskii
2015-11-07 17:27     ` Uwe Brauer
2015-11-07 18:00       ` Eli Zaretskii
2015-11-07 18:32         ` Uwe Brauer
2015-11-07 18:52           ` Eli Zaretskii
2015-11-08  9:05             ` [SOLVED] (was: emacs hebrew script bidi nikud rendering bugs) Uwe Brauer
2015-11-09 17:52               ` [SOLVED] Benjamin Riefenstahl
2023-11-29 13:36 count all spelling typos in a given buffer Uwe Brauer
2023-11-29 20:54 ` Emanuel Berg
2023-11-30  9:49   ` [SOLVED] (was: count all spelling typos in a given buffer.) Uwe Brauer
2023-12-01  5:59     ` Emanuel Berg
2023-12-01  6:56       ` [SOLVED] Uwe Brauer

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