all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* add-change-log-entry and add-log-mailing-address
@ 2003-04-09 19:13 Morten Welinder
  2003-04-09 22:25 ` Thien-Thi Nguyen
  2003-04-10 22:47 ` Richard Stallman
  0 siblings, 2 replies; 11+ messages in thread
From: Morten Welinder @ 2003-04-09 19:13 UTC (permalink / raw)



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

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

end of thread, other threads:[~2003-04-16  3:12 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-09 19:13 add-change-log-entry and add-log-mailing-address Morten Welinder
2003-04-09 22:25 ` Thien-Thi Nguyen
2003-04-10 22:47 ` Richard Stallman
2003-04-11 23:37   ` Dan Jacobson
2003-04-14  2:36     ` Richard Stallman
     [not found]     ` <mailman.4534.1050287861.21513.bug-gnu-emacs@gnu.org>
2003-04-14  6:01       ` David Kastrup
2003-04-14 20:34         ` Dan Jacobson
2003-04-15  9:05           ` Alfred M. Szmidt
2003-04-16  3:12             ` Dan Jacobson
     [not found]         ` <mailman.4613.1050363127.21513.bug-gnu-emacs@gnu.org>
2003-04-15 15:08           ` Kevin Rodgers
2003-04-14 12:41     ` Alfred M. Szmidt

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.