From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Unicode branch version updates Date: Mon, 14 Feb 2005 11:26:33 +0900 (JST) Message-ID: <200502140226.LAA29700@etlken.m17n.org> References: <61brapi34t.fsf@fencepost.gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1108348793 22704 80.91.229.2 (14 Feb 2005 02:39:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 14 Feb 2005 02:39:53 +0000 (UTC) Cc: emacs-unicode@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 14 03:39:53 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D0W9J-0001Gd-Fr for ged-emacs-devel@m.gmane.org; Mon, 14 Feb 2005 03:39:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D0WOl-0006Ai-Cn for ged-emacs-devel@m.gmane.org; Sun, 13 Feb 2005 21:55:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D0WNG-0005jt-DP for emacs-devel@gnu.org; Sun, 13 Feb 2005 21:54:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D0WN7-0005fE-Tk for emacs-devel@gnu.org; Sun, 13 Feb 2005 21:54:03 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D0WN5-0005Tp-V4 for emacs-devel@gnu.org; Sun, 13 Feb 2005 21:54:00 -0500 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1D0VwZ-0000RA-Tv; Sun, 13 Feb 2005 21:26:36 -0500 Original-Received: from nfs.m17n.org (nfs.m17n.org [192.47.44.7]) by tsukuba.m17n.org (8.12.3/8.12.3/Debian-7.1) with ESMTP id j1E2QXXD031869; Mon, 14 Feb 2005 11:26:33 +0900 Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) by nfs.m17n.org (8.12.3/8.12.3/Debian-7.1) with ESMTP id j1E2QXPN002120; Mon, 14 Feb 2005 11:26:33 +0900 Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id LAA29700; Mon, 14 Feb 2005 11:26:33 +0900 (JST) Original-To: Miles Bader In-reply-to: <61brapi34t.fsf@fencepost.gnu.org> (message from Miles Bader on Sat, 12 Feb 2005 21:51:14 -0500) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.3.50 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: main.gmane.org gmane.emacs.devel:33360 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33360 In article <61brapi34t.fsf@fencepost.gnu.org>, Miles Bader writes: > I'd like to commit the following patch to the Emacs unicode branch. > It changes unicode-branch version references from "22" to "23", and renames > the unicode-branch-specific ChangeLog files to "ChangeLog.unicode" (from > "ChangeLog.22"). Thank you for taking care of this matter. But, I vaguely remember that the reason I changed ChangeLog.unicode (I was using it when I was working on it locally) to ChangeLog.22 was that if the extention of ChangeLog file is not digits, something wrong happened. I'm not sure now. Could you please commit the changes after you confirm that your or Dave's method for automatically selecting a correct ChangeLog file name still works? --- Ken'ichi HANDA handa@m17n.org To: Kenichi Handa Subject: Re: ChangeLog filenames From: Miles Bader Reply-To: Miles Bader System-Type: i686-pc-linux-gnu Blat: Foop Date: Thu, 08 Jul 2004 15:41:44 +0900 In-Reply-To: <200407080614.PAA22974@etlken.m17n.org> (Kenichi Handa's message of "Thu, 8 Jul 2004 15:14:54 +0900 (JST)") > Dave suggested this; it seems better. > > (add-hook 'find-file-hooks > (lambda () > (if (and (buffer-file-name) > (string-match "emacs-unicode-2" (buffer-file-name))) > (set (make-local-variable 'change-log-default-name) > "ChangeLog.22")))) Hmmm, that looks good; I often edit one branch of emacs using an emacs executable from a different branch, so switching on the file name seems best. Based on the above, I wrote this: (defvar change-log-default-name-alist nil "Alist used to set `change-log-default-name' locally, based on the buffer filename. Each element's car is a regexp; if the regexp matches the buffer's filename, the cdr of the element is used as the value of `change-log-default-name'.") (defun change-log-set-local-default-name () "Maybe set `change-log-default-name', based `change-log-default-name-alist'." (let ((clauses change-log-default-name-alist)) (when (stringp (buffer-file-name)) (while clauses (let ((clause (pop clauses))) (when (string-match (car clause) (buffer-file-name)) (set (make-local-variable 'change-log-default-name) (cdr clause)) (setq clauses nil))))))) (add-hook 'find-file-hook 'change-log-set-local-default-name) Then I can add something like: (setq change-log-default-name-alist '(("emacs[-/]unicode[-/]" . "ChangeLog.22") ("emacs[-/]lexbind[-/]" . "ChangeLog.lexbind") ("emacs[-/]tiling[-/]" . "ChangeLog.tiling"))) [Following my personal directory-naming conventions.] Thanks, -Miles -- [|nurgle|] ddt- demonic? so quake will have an evil kinda setting? one that will make every christian in the world foamm at the mouth? [iddt] nurg, that's the goal