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: faster unicode character name completion Date: Mon, 07 Dec 2009 16:42:30 -0500 Message-ID: References: <87einfbxdw.fsf@red-bean.com> <87fx7r68s4.fsf@stupidchicken.com> <87ws0yttoj.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1260226044 21816 80.91.229.12 (7 Dec 2009 22:47:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Dec 2009 22:47:24 +0000 (UTC) Cc: emacs-devel@gnu.org, Kenichi Handa To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 07 23:47:16 2009 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 1NHmMO-0005X5-55 for ged-emacs-devel@m.gmane.org; Mon, 07 Dec 2009 23:47:16 +0100 Original-Received: from localhost ([127.0.0.1]:50015 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHmMO-0000tf-17 for ged-emacs-devel@m.gmane.org; Mon, 07 Dec 2009 17:47:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHlNH-0002vC-TU for emacs-devel@gnu.org; Mon, 07 Dec 2009 16:44:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHlNC-0002tQ-VT for emacs-devel@gnu.org; Mon, 07 Dec 2009 16:44:07 -0500 Original-Received: from [199.232.76.173] (port=45542 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHlNC-0002tK-Pz for emacs-devel@gnu.org; Mon, 07 Dec 2009 16:44:02 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:42237) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NHlNC-0008Vw-HR for emacs-devel@gnu.org; Mon, 07 Dec 2009 16:44:02 -0500 Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id nB7LgUGG004929; Mon, 7 Dec 2009 16:42:30 -0500 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 638833A122; Mon, 7 Dec 2009 16:42:30 -0500 (EST) In-Reply-To: <87ws0yttoj.fsf@mail.jurta.org> (Juri Linkov's message of "Mon, 07 Dec 2009 22:28:44 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3422=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:118374 Archived-At: >> So the patch below seems to be a good compromise: it uses up just about >> 1000K cons cells (i.e. 16KB on 64bit systems) to keep the precomputed ^^^^^ should be 1000 or 1K, of course. > BTW, a related problem: it would be better to hide old obsolete Unicode > names to not advertise them, but still allow completions on them. > For instance, duplicate names such as > name: LATIN CAPITAL LETTER A WITH ACUTE > old-name: LATIN CAPITAL LETTER A ACUTE > add too much noise. Note that for the code 0-31, it seems that the oldname is more useful than the new one (which ssems to just be "" for all of them). Not sure if there are others in the same situation. > Maybe to use the same approach as used for > `completion-ignored-extensions', i.e. to ignore old names, but don't > ignore if all possible completions end in one of them. It'd be easy to do, but I'm not sure it's worth the trouble. Stefan