From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Morten Welinder Newsgroups: gmane.emacs.bugs Subject: add-change-log-entry and add-log-mailing-address Date: Wed, 09 Apr 2003 15:13:57 -0400 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1049915909 10515 80.91.224.249 (9 Apr 2003 19:18:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 9 Apr 2003 19:18:29 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 09 21:18:27 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 193L5X-0002jL-00 for ; Wed, 09 Apr 2003 21:18:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 193L3R-0000Eu-05 for gnu-bug-gnu-emacs@m.gmane.org; Wed, 09 Apr 2003 15:16:17 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 193L32-0000A9-00 for bug-gnu-emacs@gnu.org; Wed, 09 Apr 2003 15:15:52 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 193L2z-00008i-00 for bug-gnu-emacs@gnu.org; Wed, 09 Apr 2003 15:15:51 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 193L1D-000866-00 for bug-gnu-emacs@gnu.org; Wed, 09 Apr 2003 15:13:59 -0400 Original-Received: from terra by fencepost.gnu.org with local (Exim 4.10) id 193L1B-0008Ly-00 for bug-gnu-emacs@gnu.org; Wed, 09 Apr 2003 15:13:57 -0400 Original-To: bug-gnu-emacs@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4751 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4751 `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.