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: Run coding system auto-detection manually? Date: Thu, 8 Aug 2002 10:09:27 +0900 (JST) Sender: emacs-devel-admin@gnu.org Message-ID: <200208080109.KAA18805@etlken.m17n.org> References: <200208070824.RAA17705@etlken.m17n.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1028768962 3751 127.0.0.1 (8 Aug 2002 01:09:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 8 Aug 2002 01:09:22 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17cbnl-0000yO-00 for ; Thu, 08 Aug 2002 03:09:21 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17cc9c-0006cp-00 for ; Thu, 08 Aug 2002 03:31:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17cboS-00031W-00; Wed, 07 Aug 2002 21:10:04 -0400 Original-Received: from tsukuba.m17n.org ([192.47.44.130]) by fencepost.gnu.org with smtp (Exim 3.35 #1 (Debian)) id 17cbny-0002ty-00 for ; Wed, 07 Aug 2002 21:09:34 -0400 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2]) by tsukuba.m17n.org (8.11.6/3.7W-20010518204228) with ESMTP id g7819Sl24094; Thu, 8 Aug 2002 10:09:28 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) by fs.m17n.org (8.11.3/3.7W-20010823150639) with ESMTP id g7819R913686; Thu, 8 Aug 2002 10:09:27 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id KAA18805; Thu, 8 Aug 2002 10:09:27 +0900 (JST) Original-To: Kai.Grossjohann@CS.Uni-Dortmund.DE User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.1.30 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:6350 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6350 In article , Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Gro=EF=BF=BDjohann) writes: > How about, instead of hard-coding the write-region operation, > find-operation-coding-system is extended so that the target-idx > property can express the rule? > If Fget (operation, Qtarget_idx) returns a cons, one could eval it and > assume that the result would be an integer to use. Then the > target-idx property for write-region could be (if (stringp visit) 5 3) > or something like that. > What do you think? (I don't mean the concrete suggestion, it might > well turn out to be rubbish. I mean the idea to make the decision in > find-operation-coding-system configurable from Lisp.) I'm not sure it's worth making find-operation-coding-system configurable in that way. Even if it is, I think the above method is too indirect for the purpose of configuring find-operation-coding-system. If a Lisp program wants find-operation-coding-system to choose a different target from the arguments than normal case, it can call find-operation-coding-system just with different arguments. --- Ken'ichi HANDA handa@etl.go.jp