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: unencodable-char-position [Re: Several serious problems] Date: Mon, 19 Aug 2002 14:04:52 +0900 (JST) Sender: emacs-devel-admin@gnu.org Message-ID: <200208190504.OAA14119@etlken.m17n.org> References: <200207221711.g6MHBZo02496@aztec.santafe.edu> <200207231335.WAA25692@etlken.m17n.org> <200207240325.g6O3PdX04898@aztec.santafe.edu> <200207240437.NAA26632@etlken.m17n.org> <200207250312.g6P3C9J06653@aztec.santafe.edu> <200208110159.KAA23419@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=US-ASCII X-Trace: main.gmane.org 1029733602 24745 127.0.0.1 (19 Aug 2002 05:06:42 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 19 Aug 2002 05:06:42 +0000 (UTC) Cc: rms@gnu.org, spiegel@gnu.org, 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 17gekQ-0006Qu-00 for ; Mon, 19 Aug 2002 07:06:39 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17gfBh-0000yq-00 for ; Mon, 19 Aug 2002 07:34:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17gelL-0004YT-00; Mon, 19 Aug 2002 01:07:35 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17gej6-0004UM-00 for emacs-devel@gnu.org; Mon, 19 Aug 2002 01:05:16 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17gej3-0004Tp-00 for emacs-devel@gnu.org; Mon, 19 Aug 2002 01:05:15 -0400 Original-Received: from tsukuba.m17n.org ([192.47.44.130]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17geiv-0004Sk-00; Mon, 19 Aug 2002 01:05:05 -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 g7J54ql21782; Mon, 19 Aug 2002 14:04:52 +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 g7J54q906774; Mon, 19 Aug 2002 14:04:52 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id OAA14119; Mon, 19 Aug 2002 14:04:52 +0900 (JST) Original-To: d.love@dl.ac.uk In-Reply-To: (message from Dave Love on 15 Aug 2002 18:51:41 +0100) 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:6640 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6640 In article , Dave Love writes: >> By the way, I've just noticed that Dave has already >> installed the function `unencodable-char-position' in >> mule-cmds.el and used it in select-safe-coding-system. >> >> That function resembles to check-coding-system-region on >> which we are currently discussing. > I'm sorry if that was wrong. I thought it was supposed to have been > installed months ago, and I was trying to clear out the Mule changes > I've had hanging around after rms was on about it. I thought that was > all stuff you approved of, or `obviously right'. You don't have to be sorry. Perhaps, I've overlooked that part when you asked about various changes long ago. >> But, as the docstring says, it's slow. > [It seemed fast enough for that use since it's only executed > occasionally, when there's actually a problem. It was probably > developed on a P133.] Ah, yes. Currently, it is used only interactively, thus the speed is not that problem. But, I'm thinking about using unencodable-char-position to check if default coding systems can encode the region or not in select-safe-coding-system (not yet done). I think such a change makes select-safe-coding-system runs much faster. > By the way, aborting in select-safe-coding-system can have bad effects > when you're using VC. As far as I remember, it actually loses your > edits in some circumstance. I haven't had time to look at the > problem. I noticed that too. But, I also don't have time to fix it for the moment. I've never read the code of vc. --- Ken'ichi HANDA handa@etl.go.jp