unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Jochen Küpper" <usenet-W2i0oK7yYu0+t3nig+EZI7NAH6kLmebB@public.gmane.org>
Subject: change-log-mode
Date: Sun, 10 Oct 2004 13:31:09 +0200	[thread overview]
Message-ID: <m3is9in72a.fsf@jochen-kuepper.de> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1438 bytes --]

I have problems with add-change-log-entry using the "wrong"
user-mail-address for new entries.

I have made user-mail-address local using
,----[.emacs]
| (make-variable-buffer-local 'user-mail-address)
`----

When I set it locally in some buffer (i.e. via a local variables
section) that works perfectly, as I can check by C-h k C-h v. 

However, a-c-l-e does seem to cache the value internally. It always
does the right thing [1] when called for the first time in a session,
but the keeps using exactly that mail address for the whole session.

Is there a way to tell it to re-assemble the name/email string every
time? Or can I provide it the string automatically in some way? I have
tried playing around with add-change-log-entry, but I could not find a
way to programatically set the name/email string to use. 

I.e. how could I modify the following to get what I want?
,----
| (defun jk/add-change-log-entry ()
|   "*Add change-log entry without asking for filename."
|   (interactive)
|   (add-change-log-entry nil change-log-default-name))
`----

Thank you for your help in advance.

Greetings,
Jochen

Footnotes: 
[1]  Uses a buffer local value if it exists, the global otherwise.

-- 
Einigkeit und Recht und Freiheit                http://www.Jochen-Kuepper.de
    Liberté, Égalité, Fraternité                GnuPG key: CC1B0B4D
        (Part 3 you find in my messages before fall 2003.)

[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]

[-- Attachment #2: Type: text/plain, Size: 173 bytes --]

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

             reply	other threads:[~2004-10-10 11:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-10 11:31 Jochen Küpper [this message]
2004-10-12 12:07 ` change-log-mode Johan Bockgård
2004-10-12 19:09   ` buffer-local add-log-mailing-address (was: change-log-mode) Jochen Küpper

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=m3is9in72a.fsf@jochen-kuepper.de \
    --to=usenet-w2i0ok7yyu0+t3nig+ezi7nah6klmebb@public.gmane.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.
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).