From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: enhanced select-safe-coding-system Date: Tue, 14 May 2002 15:52:08 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200205141952.g4EJq8k20916@rum.cs.yale.edu> References: <200205010714.g417Eq607434@aztec.santafe.edu> <200205031327.g43DR1014311@rum.cs.yale.edu> <200205052324.g45NOd729789@rum.cs.yale.edu> <200205141941.g4EJfwU15296@aztec.santafe.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1021407799 5452 127.0.0.1 (14 May 2002 20:23:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 14 May 2002 20:23:19 +0000 (UTC) Cc: monnier+gnu/emacs@RUM.cs.yale.edu, d.love@dl.ac.uk, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 177ipL-0001Pp-00 for ; Tue, 14 May 2002 22:23:19 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 177j0X-0006w6-00 for ; Tue, 14 May 2002 22:34:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 177iNC-0004pw-00; Tue, 14 May 2002 15:54:14 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 177iLB-0004Py-00; Tue, 14 May 2002 15:52:09 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g4EJq8k20916; Tue, 14 May 2002 15:52:08 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Richard Stallman Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:3937 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:3937 > Would you please install your patch? I'm surprised it isn't installed yet. It turns out it's not correct and I haven't found the time to fix it yet. The problem is that find-coding-systems-region-internal handles "generic" coding-systems specially, which my patch does not take into account. By "generic" I mean those who `safe-chars' property is t. Maybe we should go ahead and install Dave's code instead. It's O(n log n) rather than O(n), but it has the advantage of being "obviously correct". Stefan