From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: IRC client for Emacs Date: Sat, 24 Aug 2002 23:27:23 -0600 (MDT) Sender: emacs-devel-admin@gnu.org Message-ID: <200208250527.g7P5RNm12107@wijiji.santafe.edu> References: <873ctot40n.fsf@emacswiki.org> <20020809223753.955308.FMU31823@piglet.prv.splode.com> <200208110355.g7B3tOo06247@wijiji.santafe.edu> <877kixtg8w.fsf@emacswiki.org> <20020811160610.424772.FMU9022@piglet.prv.splode.com> <87fzxhs1ia.fsf@emacswiki.org> <200208151954.g7FJsut07968@wijiji.santafe.edu> <20020820143817.816033.FMU965@piglet.prv.splode.com> <200208210153.g7L1r4W10188@wijiji.santafe.edu> <20020820190744.375246.FMU965@piglet.prv.splode.com> <200208220156.g7M1uvx10414@wijiji.santafe.edu> <20020821193900.557945.FMU965@piglet.prv.splode.com> <200208240233.g7O2XW011692@wijiji.santafe.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1030254034 18598 127.0.0.1 (25 Aug 2002 05:40:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 25 Aug 2002 05:40:34 +0000 (UTC) Cc: friedman@splode.com, alex@emacswiki.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 17iq8X-0004pl-00 for ; Sun, 25 Aug 2002 07:40:33 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17iqcj-0001ic-00 for ; Sun, 25 Aug 2002 08:11:45 +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 17iq9n-0000fB-00; Sun, 25 Aug 2002 01:41:51 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17ipw8-0007CT-00 for emacs-devel@gnu.org; Sun, 25 Aug 2002 01:27:44 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17ipvr-00076p-00 for emacs-devel@gnu.org; Sun, 25 Aug 2002 01:27:37 -0400 Original-Received: from pele.santafe.edu ([192.12.12.119]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17ipvq-00075Z-00; Sun, 25 Aug 2002 01:27:26 -0400 Original-Received: from wijiji.santafe.edu (wijiji [192.12.12.5]) by pele.santafe.edu (8.11.6+Sun/8.11.6) with ESMTP id g7P5Rm527193; Sat, 24 Aug 2002 23:27:48 -0600 (MDT) Original-Received: (from rms@localhost) by wijiji.santafe.edu (8.11.6+Sun/8.9.3) id g7P5RNm12107; Sat, 24 Aug 2002 23:27:23 -0600 (MDT) X-Authentication-Warning: wijiji.santafe.edu: rms set sender to rms@wijiji using -f Original-To: ueno@unixuser.org In-Reply-To: (message from Daiki Ueno on Sat, 24 Aug 2002 13:03:40 +0900) 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:6861 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6861 An MO file has its own internal hash table which is used to relate an original string to the file position. However, the hashing algorithm is dependent on gettext internals (See "(gettext)MO Files" for details). This suggests another approach: keep the MO file as text in a buffer, and write Lisp code to do the lookup using the MO file hash table. The function to do a lookup could recreate the buffer (reading the file into it) if the buffer does not exist. This way, we could delete these buffers occasionally (such as, when they have not been used for 10 minutes), and they would be recreated when needed. The buffer would serve as a cache for the file. What do you think? One interesting consequence of this approach is that we could delete that buffer