* vc-next-action or vc-dir, optionally allows to change the user?
@ 2022-06-24 13:20 Uwe Brauer
2022-06-24 13:36 ` Dmitry Gutov
0 siblings, 1 reply; 11+ messages in thread
From: Uwe Brauer @ 2022-06-24 13:20 UTC (permalink / raw)
To: help-gnu-emacs
Hi
Recently I have to commit (using hg, but this should be irrelevant here)
changes as another user, so usually I tried
(defun my-set-new-user ()
"Set the user for the commit and ChangLog entries to new user."
(interactive)
(setq user-full-name "James Bond")
(setq add-log-full-name "James Bond")
(setq user-mail-address "007@mi6.co.uk")
(setq add-log-mailing-address "007@mi6.co.uk")
(message "Now changes are registered as JB"))
But it did not help.
Any idea how to change the user and email address for the commit
message?
I can commit explicitly from the command line as a new user, but that is
a bit cumbersome.
Regards
Uwe Brauer
--
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military.
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: vc-next-action or vc-dir, optionally allows to change the user?
2022-06-24 13:20 vc-next-action or vc-dir, optionally allows to change the user? Uwe Brauer
@ 2022-06-24 13:36 ` Dmitry Gutov
2022-06-24 14:26 ` Uwe Brauer
0 siblings, 1 reply; 11+ messages in thread
From: Dmitry Gutov @ 2022-06-24 13:36 UTC (permalink / raw)
To: help-gnu-emacs
On 24.06.2022 16:20, Uwe Brauer wrote:
>
> Hi
>
> Recently I have to commit (using hg, but this should be irrelevant here)
> changes as another user, so usually I tried
>
>
> (defun my-set-new-user ()
> "Set the user for the commit and ChangLog entries to new user."
> (interactive)
> (setq user-full-name "James Bond")
> (setq add-log-full-name "James Bond")
> (setq user-mail-address"007@mi6.co.uk")
> (setq add-log-mailing-address"007@mi6.co.uk")
> (message "Now changes are registered as JB"))
>
> But it did not help.
>
> Any idea how to change the user and email address for the commit
> message?
>
> I can commit explicitly from the command line as a new user, but that is
> a bit cumbersome.
>
> Regards
>
> Uwe Brauer
Try adding the "Author:" header at the top when writing the commit message.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: vc-next-action or vc-dir, optionally allows to change the user?
2022-06-24 13:36 ` Dmitry Gutov
@ 2022-06-24 14:26 ` Uwe Brauer
2022-06-24 15:00 ` Dmitry Gutov
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Uwe Brauer @ 2022-06-24 14:26 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 752 bytes --]
> On 24.06.2022 16:20, Uwe Brauer wrote:
> Try adding the "Author:" header at the top when writing the commit message.
Thanks that works, however if want to say commit three or 4 changes this way, it would be nice to have this a bit more automatised.
I debugged vc-checkin and can see where it grabs the user name and address.
Another approach would be to set the user variable locally for that repository to a different value. But this is not a lisp solution but one that depends on the underlying vc system
Hm...
--
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military.
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine.
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: vc-next-action or vc-dir, optionally allows to change the user?
2022-06-24 14:26 ` Uwe Brauer
@ 2022-06-24 15:00 ` Dmitry Gutov
2022-06-24 15:12 ` [a bug, with log-edit-setup-add-author?] (was: vc-next-action or vc-dir, optionally allows to change the user?) Uwe Brauer
2022-06-24 15:04 ` vc-next-action or vc-dir, optionally allows to change the user? Uwe Brauer
2022-06-24 15:32 ` Jean Louis
2 siblings, 1 reply; 11+ messages in thread
From: Dmitry Gutov @ 2022-06-24 15:00 UTC (permalink / raw)
To: help-gnu-emacs
On 24.06.2022 17:26, Uwe Brauer wrote:
> Thanks that works, however if want to say commit three or 4 changes this way, it would be nice to have this a bit more automatised.
I would suggest using 'M-p' to pre-fill the previous contents of the
Log-Edit buffer when writing the subsequent ones.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: vc-next-action or vc-dir, optionally allows to change the user?
2022-06-24 14:26 ` Uwe Brauer
2022-06-24 15:00 ` Dmitry Gutov
@ 2022-06-24 15:04 ` Uwe Brauer
2022-06-24 15:32 ` Jean Louis
2 siblings, 0 replies; 11+ messages in thread
From: Uwe Brauer @ 2022-06-24 15:04 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 886 bytes --]
>>> "UB" == Uwe Brauer <oub@mat.ucm.es> writes:
>> On 24.06.2022 16:20, Uwe Brauer wrote:
>> Try adding the "Author:" header at the top when writing the commit message.
> Thanks that works, however if want to say commit three or 4 changes
> this way, it would be nice to have this a bit more automatised.
> I debugged vc-checkin and can see where it grabs the user name and address.
> Another approach would be to set the user variable locally for that
> repository to a different value. But this is not a lisp solution but
> one that depends on the underlying vc system
It seems that
(setq log-edit-setup-add-author t)
Is a bit helpful
--
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military.
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine.
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* [a bug, with log-edit-setup-add-author?] (was: vc-next-action or vc-dir, optionally allows to change the user?)
2022-06-24 15:00 ` Dmitry Gutov
@ 2022-06-24 15:12 ` Uwe Brauer
2022-06-24 15:24 ` [culprit found] (was: [a bug, with log-edit-setup-add-author?]) Uwe Brauer
0 siblings, 1 reply; 11+ messages in thread
From: Uwe Brauer @ 2022-06-24 15:12 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 1014 bytes --]
>>> "DG" == Dmitry Gutov <dgutov@yandex.ru> writes:
> On 24.06.2022 17:26, Uwe Brauer wrote:
>> Thanks that works, however if want to say commit three or 4 changes
>> this way, it would be nice to have this a bit more automatised.
> I would suggest using 'M-p' to pre-fill the previous contents of the
> Log-Edit buffer when writing the subsequent ones.
This is cool, thanks I was not aware that I can use M-p actually to
insert an older message I thought this is mainly for displaying.
One last thing so:
When using
(setq log-edit-setup-add-author t)
Then the log-edit-buffer looks like
Summary:
Author:
I find this a bit contra-intuitive and inconvenient.
I think it should be
Author:
Summary:
Not a big deal, but.....
(May this is a bug)?
--
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military.
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine.
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* [culprit found] (was: [a bug, with log-edit-setup-add-author?])
2022-06-24 15:12 ` [a bug, with log-edit-setup-add-author?] (was: vc-next-action or vc-dir, optionally allows to change the user?) Uwe Brauer
@ 2022-06-24 15:24 ` Uwe Brauer
0 siblings, 0 replies; 11+ messages in thread
From: Uwe Brauer @ 2022-06-24 15:24 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 1532 bytes --]
>>> "UB" == Uwe Brauer <oub@mat.ucm.es> writes:
>>> "DG" == Dmitry Gutov <dgutov@yandex.ru> writes:
>> On 24.06.2022 17:26, Uwe Brauer wrote:
>>> Thanks that works, however if want to say commit three or 4 changes
>>> this way, it would be nice to have this a bit more automatised.
>> I would suggest using 'M-p' to pre-fill the previous contents of the
>> Log-Edit buffer when writing the subsequent ones.
> This is cool, thanks I was not aware that I can use M-p actually to
> insert an older message I thought this is mainly for displaying.
> One last thing so:
> When using
> (setq log-edit-setup-add-author t)
> Then the log-edit-buffer looks like
> Summary:
> Author:
> I find this a bit contra-intuitive and inconvenient.
> I think it should be
> Author:
> Summary:
Here is the culprit:
(defun log-edit-insert-message-template ()
"Insert the default VC commit log template with Summary and Author."
(interactive)
(when (or (called-interactively-p 'interactive)
(log-edit-empty-buffer-p))
(insert "Summary: ")
(when log-edit-setup-add-author
(insert "\nAuthor: "))
(insert "\n\n")
(message-position-point)))
I think it should be the other way around I will try to bring this up on the devel list.
--
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military.
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine.
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: vc-next-action or vc-dir, optionally allows to change the user?
2022-06-24 14:26 ` Uwe Brauer
2022-06-24 15:00 ` Dmitry Gutov
2022-06-24 15:04 ` vc-next-action or vc-dir, optionally allows to change the user? Uwe Brauer
@ 2022-06-24 15:32 ` Jean Louis
2022-06-24 15:46 ` Uwe Brauer
2 siblings, 1 reply; 11+ messages in thread
From: Jean Louis @ 2022-06-24 15:32 UTC (permalink / raw)
To: help-gnu-emacs, Uwe Brauer
Referring to your emaič signature I am against that war mongering here, could you abstain please?
On June 24, 2022 2:26:43 PM UTC, Uwe Brauer <oub@mat.ucm.es> wrote:
Jean
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: vc-next-action or vc-dir, optionally allows to change the user?
2022-06-24 15:32 ` Jean Louis
@ 2022-06-24 15:46 ` Uwe Brauer
2022-06-25 6:49 ` Jean Louis
0 siblings, 1 reply; 11+ messages in thread
From: Uwe Brauer @ 2022-06-24 15:46 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 696 bytes --]
>>> "JL" == Jean Louis <bugs@gnu.support> writes:
> Referring to your emaič signature I am against that war mongering
> here, could you abstain please?
1. Unbelievable as it seems but you still seem to support this war
of aggression. However I will not discuss this issue with your here.
2. We have freedom of expression, haven't we? If a you find it
stressful to see that a war of aggression is condemned, that is
your problem.
--
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military.
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine.
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: vc-next-action or vc-dir, optionally allows to change the user?
2022-06-24 15:46 ` Uwe Brauer
@ 2022-06-25 6:49 ` Jean Louis
2022-06-25 9:45 ` Dmitry Gutov
0 siblings, 1 reply; 11+ messages in thread
From: Jean Louis @ 2022-06-25 6:49 UTC (permalink / raw)
To: help-gnu-emacs
* Uwe Brauer <oub@mat.ucm.es> [2022-06-24 19:02]:
> >>> "JL" == Jean Louis <bugs@gnu.support> writes:
>
> > Referring to your emaič signature I am against that war mongering
> > here, could you abstain please?
>
>
> 1. Unbelievable as it seems but you still seem to support this war
> of aggression. However I will not discuss this issue with
> your here.
What a nonsense, I do not support ANY war. This is about Emacs Help
and there are people from many sides of world including our friends
Russian.
Could you abstain of using this mailing list to support delivery of
weapons to any country? There are other mailing lists where you should
do that and where you can express your opinions.
> 2. We have freedom of expression, haven't we? If a you find it
> stressful to see that a war of aggression is condemned, that is
> your problem.
Sure you have. Just that we wish to include Russian in this mailing
list, and Ukrainian, and not foster conflicts with this war mongering
signature of yours. Find better forums for that.
> I strongly condemn Putin's war of aggression against the Ukraine.
> I support to deliver weapons to Ukraine's military.
> I support the ban of Russia from SWIFT.
> I support the EU membership of the Ukraine.
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: vc-next-action or vc-dir, optionally allows to change the user?
2022-06-25 6:49 ` Jean Louis
@ 2022-06-25 9:45 ` Dmitry Gutov
0 siblings, 0 replies; 11+ messages in thread
From: Dmitry Gutov @ 2022-06-25 9:45 UTC (permalink / raw)
To: help-gnu-emacs
On 25.06.2022 09:49, Jean Louis wrote:
> Sure you have. Just that we wish to include Russian in this mailing
> list, and Ukrainian, and not foster conflicts with this war mongering
> signature of yours. Find better forums for that.
I don't mind the signature.
Sincerely,
a Russian.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2022-06-25 9:45 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-24 13:20 vc-next-action or vc-dir, optionally allows to change the user? Uwe Brauer
2022-06-24 13:36 ` Dmitry Gutov
2022-06-24 14:26 ` Uwe Brauer
2022-06-24 15:00 ` Dmitry Gutov
2022-06-24 15:12 ` [a bug, with log-edit-setup-add-author?] (was: vc-next-action or vc-dir, optionally allows to change the user?) Uwe Brauer
2022-06-24 15:24 ` [culprit found] (was: [a bug, with log-edit-setup-add-author?]) Uwe Brauer
2022-06-24 15:04 ` vc-next-action or vc-dir, optionally allows to change the user? Uwe Brauer
2022-06-24 15:32 ` Jean Louis
2022-06-24 15:46 ` Uwe Brauer
2022-06-25 6:49 ` Jean Louis
2022-06-25 9:45 ` Dmitry Gutov
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).