unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
Cc: emacs-unicode@gnu.org, emacs-devel@gnu.org
Subject: Re: Unicode branch version updates
Date: Mon, 14 Feb 2005 11:26:33 +0900 (JST)	[thread overview]
Message-ID: <200502140226.LAA29700@etlken.m17n.org> (raw)
In-Reply-To: <61brapi34t.fsf@fencepost.gnu.org> (message from Miles Bader on Sat, 12 Feb 2005 21:51:14 -0500)

In article <61brapi34t.fsf@fencepost.gnu.org>, Miles Bader <miles@gnu.org> 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 <handa@m17n.org>
Subject: Re: ChangeLog filenames
From: Miles Bader <miles@lsi.nec.co.jp>
Reply-To: Miles Bader <miles@gnu.org>
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

  reply	other threads:[~2005-02-14  2:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-13  2:51 Unicode branch version updates Miles Bader
2005-02-14  2:26 ` Kenichi Handa [this message]
2005-02-14  2:46   ` Miles Bader
2005-02-14  3:40     ` Miles Bader
2005-02-14 16:02     ` Oliver Scholz
2005-02-14 17:02       ` Stefan Monnier
2005-02-14 20:21         ` Andreas Schwab
2005-02-14 20:33         ` Eli Zaretskii
2005-02-14 20:31       ` Eli Zaretskii

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=200502140226.LAA29700@etlken.m17n.org \
    --to=handa@m17n.org \
    --cc=emacs-devel@gnu.org \
    --cc=emacs-unicode@gnu.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.
Code repositories for project(s) associated with this public inbox

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

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