From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: (aset UNIBYTE-STRING MULTIBYTE-CHAR) Date: Sun, 17 Feb 2008 20:15:47 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203297369 9585 80.91.229.12 (18 Feb 2008 01:16:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Feb 2008 01:16:09 +0000 (UTC) Cc: emacs-devel@gnu.org, handa@m17n.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 18 02:16:32 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JQucQ-00060F-TJ for ged-emacs-devel@m.gmane.org; Mon, 18 Feb 2008 02:16:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQubw-0000wE-9u for ged-emacs-devel@m.gmane.org; Sun, 17 Feb 2008 20:16:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JQubs-0000uF-1b for emacs-devel@gnu.org; Sun, 17 Feb 2008 20:15:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JQubp-0000sV-TI for emacs-devel@gnu.org; Sun, 17 Feb 2008 20:15:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQubp-0000sK-Qc for emacs-devel@gnu.org; Sun, 17 Feb 2008 20:15:53 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JQubm-0007UE-6d; Sun, 17 Feb 2008 20:15:50 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAALZquEfO+KMJdGdsb2JhbACQVQEwmTWBAg X-IronPort-AV: E=Sophos;i="4.25,368,1199682000"; d="scan'208";a="14648544" Original-Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 17 Feb 2008 20:15:48 -0500 Original-Received: from pastel.home ([206.248.163.9]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id YDH93348; Sun, 17 Feb 2008 20:15:48 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 21CC8821B; Sun, 17 Feb 2008 20:15:48 -0500 (EST) In-Reply-To: (Richard Stallman's message of "Sun, 17 Feb 2008 15:29:35 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:89434 Archived-At: >> If we are going to inhibit aset on multibyte strings, I think we >> should inhibit aset on any strings to avoid a further confusion. >> I think someone should try making it work. >> The way I suggested should not be terribly hard. > The problem is the following: while it can be made to work, it will be > inefficient. > That inefficiency may or may not be important in any given context. > Fixing it in casefiddle is definitely desirable. > But is it worth breaking all such packages just so that they > will optimize an operation that might not use much of the time anyway? Why work around the problem in `aset' if it isn't worth fixing in the original code? Especially since implicit conversion of a unibyte-string to multibyte is generally a bug in itself (since there are as many ways to do that as there are coding systems). Stefan