From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.emacs.devel Subject: Re: po file charset via auto-coding-functions Date: Sun, 23 Oct 2005 08:51:06 +1000 Message-ID: <87zmp1f9np.fsf@zip.com.au> References: <87zmp399ue.fsf@zip.com.au> <87ll0ma3ow.fsf@zip.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1130021531 9320 80.91.229.2 (22 Oct 2005 22:52:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 22 Oct 2005 22:52:11 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 23 00:52:10 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ETSCz-0007Gt-E8 for ged-emacs-devel@m.gmane.org; Sun, 23 Oct 2005 00:51:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ETSCy-0005DC-On for ged-emacs-devel@m.gmane.org; Sat, 22 Oct 2005 18:51:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ETSCq-0005Cx-99 for emacs-devel@gnu.org; Sat, 22 Oct 2005 18:51:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ETSCo-0005Ck-Qs for emacs-devel@gnu.org; Sat, 22 Oct 2005 18:51:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ETSCo-0005Ch-Ng for emacs-devel@gnu.org; Sat, 22 Oct 2005 18:51:14 -0400 Original-Received: from [61.8.0.115] (helo=mailout2.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ETSCo-0005Rg-GQ for emacs-devel@gnu.org; Sat, 22 Oct 2005 18:51:15 -0400 Original-Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.0.86]) by mailout2.pacific.net.au (8.13.4/8.13.4/Debian-3) with ESMTP id j9MMpCQd001078 for ; Sun, 23 Oct 2005 08:51:12 +1000 Original-Received: from localhost (ppp29A7.dyn.pacific.net.au [61.8.41.167]) by mailproxy1.pacific.net.au (8.13.4/8.13.4/Debian-3) with ESMTP id j9MMpBG1001206 for ; Sun, 23 Oct 2005 08:51:12 +1000 Original-Received: from gg by localhost with local (Exim 3.36 #1 (Debian)) id 1ETSCg-0000do-00; Sun, 23 Oct 2005 08:51:06 +1000 Original-To: emacs-devel@gnu.org In-Reply-To: (Kenichi Handa's message of "Sat, 22 Oct 2005 10:43:48 +0900") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) 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 Xref: news.gmane.org gmane.emacs.devel:44586 Archived-At: Kenichi Handa writes: > > And, functions in auto-coding-functions is called on any > file, but currently, po-find-file-coding-system is called > only on *.po file. I'm not sure which is better, but at > least there's a difference. I guess if the file contents are unambiguous, or near enough so, then it may actually be a good thing to ignore the filename. Maybe the auto-coding-functions could be called with the filename too, so they could restrict themselves if they felt the need. find-auto-coding has that available for the calls, or document that `filename' is bound, or whatever.