From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: po file charset via auto-coding-functions Date: Sun, 20 Nov 2005 21:05:56 +0900 Message-ID: References: <87zmp399ue.fsf@zip.com.au> <87ll0ma3ow.fsf@zip.com.au> <87fyqu9ung.fsf@zip.com.au> <877jbhrwox.fsf-monnier+emacs@gnu.org> <87psp8qrz9.fsf-monnier+emacs@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 1132489787 4472 80.91.229.2 (20 Nov 2005 12:29:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 20 Nov 2005 12:29:47 +0000 (UTC) Cc: user42@zip.com.au, monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 20 13:29:44 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EdoJj-00040U-4z for ged-emacs-devel@m.gmane.org; Sun, 20 Nov 2005 13:29:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EdoJi-0006sw-Jj for ged-emacs-devel@m.gmane.org; Sun, 20 Nov 2005 07:29:10 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EdnxR-00039s-3U for emacs-devel@gnu.org; Sun, 20 Nov 2005 07:06:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EdnxP-00039C-An for emacs-devel@gnu.org; Sun, 20 Nov 2005 07:06:08 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EdnxO-000396-KA for emacs-devel@gnu.org; Sun, 20 Nov 2005 07:06:07 -0500 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EdnxM-0004Fp-Se; Sun, 20 Nov 2005 07:06:05 -0500 Original-Received: from nfs.m17n.org (nfs.m17n.org [192.47.44.7]) by tsukuba.m17n.org (8.13.4/8.13.4/Debian-3) with ESMTP id jAKC60b0001704; Sun, 20 Nov 2005 21:06:01 +0900 Original-Received: from etlken (etlken.m17n.org [192.47.44.125]) by nfs.m17n.org (8.13.4/8.13.4/Debian-3) with ESMTP id jAKC5vlZ032447; Sun, 20 Nov 2005 21:05:58 +0900 Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1EdnxE-00028J-00; Sun, 20 Nov 2005 21:05:56 +0900 Original-To: rms@gnu.org In-reply-to: (rms@gnu.org) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) 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 Xref: news.gmane.org gmane.emacs.devel:46335 Archived-At: In article , "Richard M. Stallman" writes: > Binding buffer-file-name is rather unclean. > And I don't see a reason to do it. > so that find-operation-coding-system (called in > decode-coding-inserted-region) can surely find > po-find-file-coding-system to be called, and it can surely > find the current buffer by get-file-buffer. > decode-coding-inserted-region passes its FILENAME arg to > find-operation-coding-system. So all you need to do is to pass > this funny file name to decode-coding-inserted-region. > There is no need to bind buffer-file-name. > Why are you concerned about whether get-file-buffer can be used with > this funny file name? A function registered in find-operation-coding-system have to find which buffer is pretending to visit FILENAME if FILENAME doesn't exist. And, get-file-buffer is the only (or at least the very natural) way for that. --- Kenichi Handa handa@m17n.org