unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Angelina Carlton <brat@magma.ca>
Subject: Re: setting email and name for Changelogs in vc mode
Date: Wed, 01 Mar 2006 04:51:16 -0500	[thread overview]
Message-ID: <87veuyjxwr.fsf@magma.ca> (raw)
In-Reply-To: <7eek1rugi0.fsf@ada2.unipv.it> (Thien-Thi Nguyen's message of "Sun, 26 Feb 2006 01:10:31 +0100")

Thien-Thi Nguyen <ttn@glug.org> writes:

>   (setq add-log-full-name "J.R.Hacker")
>   (defun user-full-name () "J.R.Hacker")
>   (defun user-login-name () "J.R.Hacker")
>   (defun user-id () 42) ;; assuming J.R.Hacker has uid 42
>
> likewise w/ the other temporary variables.  the thing to
> remember is that `or' stops when it finds a form that
> evaluates to non-nil.  so if you defun both `user-full-name'
> and `user-login-name', the former takes precedence.  (so what
> happens if `user-full-name' returns nil? <-- bonus question)

I think in your example if user-full-name returned nil the function
would use the value of user-login-name, and if it thought that was nil I
suppose it would use some coded default like "author" which is what I am
seeing currently.

> anyway, these are my thoughts browsing the source.

Thanks, I actually understand that snippet of source now :-) 

Sadly though using your method still gives me
2006-03-01  author  <author@morcheeba>

(defun user-full-name() "Angelina Carlton")
(defun user-mail-address() "brat@magma.ca")
(setq add-log-full-name "Angelina Carlton")
(setq add-log-mailing-address "brat@maga.ca")

either pair of these should work according to the code.
I have checked my custom file to make sure nothing is being reset after
my .emacs is loaded and it looks OK to me. 

-- 
-----Angelina Carlton-----
orchid on irc.freenode.net
     brat@magma.ca
web:bzgirl.bakadigital.com
--------------------------

  reply	other threads:[~2006-03-01  9:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.0.1140907218.18076.help-gnu-emacs@gnu.org>
2006-02-26  0:10 ` setting email and name for Changelogs in vc mode Thien-Thi Nguyen
2006-03-01  9:51   ` Angelina Carlton [this message]
2006-03-02 21:59     ` Peter Dyballa
2006-03-03  5:41     ` Ian Zimmerman
2006-03-06  1:54       ` Angelina Carlton
2006-02-25 22:39 Angelina Carlton
2006-02-26 10:17 ` Reiner Steib
2006-03-01  9:09   ` Angelina Carlton
2006-02-27 15:39 ` David Hansen

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=87veuyjxwr.fsf@magma.ca \
    --to=brat@magma.ca \
    /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.
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).