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: Sat, 19 Nov 2005 09:30:57 +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> <87sltt98l6.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 1132360502 19658 80.91.229.2 (19 Nov 2005 00:35:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 19 Nov 2005 00:35:02 +0000 (UTC) Cc: user42@zip.com.au, rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 19 01:34:58 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EdGdy-0000Dt-RY for ged-emacs-devel@m.gmane.org; Sat, 19 Nov 2005 01:31:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EdGdx-0008LE-Iu for ged-emacs-devel@m.gmane.org; Fri, 18 Nov 2005 19:31:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EdGdJ-0008L7-Al for emacs-devel@gnu.org; Fri, 18 Nov 2005 19:31:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EdGdG-0008Kn-SN for emacs-devel@gnu.org; Fri, 18 Nov 2005 19:31:08 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EdGdG-0008Kd-AA for emacs-devel@gnu.org; Fri, 18 Nov 2005 19:31:06 -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 1EdGdF-0000RN-0L; Fri, 18 Nov 2005 19:31: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 jAJ0V09x010104; Sat, 19 Nov 2005 09:31:00 +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 jAJ0Uwjv013707; Sat, 19 Nov 2005 09:30:59 +0900 Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1EdGd6-0000sL-00; Sat, 19 Nov 2005 09:30:57 +0900 Original-To: Stefan Monnier In-reply-to: <87sltt98l6.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Fri, 18 Nov 2005 12:21:20 -0500) 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:46246 Archived-At: In article <87sltt98l6.fsf-monnier+emacs@gnu.org>, Stefan Monnier writes: >> As you see, this binds buffer-file-name temporarily to >> something like /home/handa/temp.po.gz!/home/handa/temp.po 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. > Hmm... that's not what I had understood. The above looks fishy. I agree, so I wrote it's more tricky. > Why not pass /home/handa/temp.po to find-operation-coding-system (just as > it is used for auto-mode-alist)? Very unlikely but a user may be visiting that file in a different buffer. --- Kenichi Handa handa@m17n.org