[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
add-change-log-entry and add-log-mailing-address
From: |
Morten Welinder |
Subject: |
add-change-log-entry and add-log-mailing-address |
Date: |
Wed, 09 Apr 2003 15:13:57 -0400 |
`M-x add-change-log-entry' is supposed to use add-log-mailing-address
as the email address in new change log entries. It only works partly,
that is to say not at all in the face of local variables. Here's what
it does when activated from foo.c:
1. Set foo.c's add-log-mailing-address to a default, if needed.
2. Use ChangeLog's add-log-mailing-address in the entry.
(And similarly for add-log-full-name, but I change email address more often
than full name.)
I claim that it should really be using foo.c's in (2) also. That way,
you can set it locally in a buffer and have changes done in that buffer
"tagged" as being from a certain email account. Specifically, I want use
(add-hook 'c-mode-hook
(lambda ()
(let ((filename (buffer-file-name)))
(and filename
(string-match "/something/" filename)
(progn
;; ...
(make-local-variable 'add-log-mailing-address)
(setq add-log-mailing-address "terra@gnu.org")
))))
t)
Morten
Observed on 21.1.3 compiled on sparc-sun-solaris2.7.
- add-change-log-entry and add-log-mailing-address,
Morten Welinder <=
- Re: add-change-log-entry and add-log-mailing-address, Thien-Thi Nguyen, 2003/04/09
- Re: add-change-log-entry and add-log-mailing-address, Richard Stallman, 2003/04/10
- Re: add-change-log-entry and add-log-mailing-address, Dan Jacobson, 2003/04/12
- Re: add-change-log-entry and add-log-mailing-address, Richard Stallman, 2003/04/13
- Message not available
- Re: add-change-log-entry and add-log-mailing-address, David Kastrup, 2003/04/14
- Re: add-change-log-entry and add-log-mailing-address, Dan Jacobson, 2003/04/14
- Re: add-change-log-entry and add-log-mailing-address, Alfred M. Szmidt, 2003/04/15
- Re: add-change-log-entry and add-log-mailing-address, Dan Jacobson, 2003/04/16
- Message not available
- Re: add-change-log-entry and add-log-mailing-address, Kevin Rodgers, 2003/04/15
- Re: add-change-log-entry and add-log-mailing-address, Alfred M. Szmidt, 2003/04/14