From: Noah Friedman <friedman@splode.com>
Cc: ueno@unixuser.org, alex@emacswiki.org, emacs-devel@gnu.org
Subject: Re: IRC client for Emacs
Date: Mon, 26 Aug 2002 11:29:12 -0700 (PDT) [thread overview]
Message-ID: <20020826112912.937066.FMU965@piglet.prv.splode.com> (raw)
In-Reply-To: <200208250527.g7P5RNm12107@wijiji.santafe.edu> (rms@gnu.org Saturday, 24 Aug 2002 23:27:23 -0600)
> 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?
I think this might be ok, but I'm uncertain whether implementing the hash
function in elisp is worth the computation time vs. just using C
hashtables, or whether it's better to memoize results parsed out of the MO
file into a hashtable for all future references. I'd like to try it and
see. Are there any existing tools for extracting strings from elisp source
to help build MO files? I'm not very familiar with the format.
Regardless, I do like the idea of using gettext's API; the implementation
details of gettext.el are a secondary issue.
next prev parent reply other threads:[~2002-08-26 18:29 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-09 16:01 IRC client for Emacs Alex Schroeder
2002-08-09 20:25 ` John Wiegley
2002-08-10 5:37 ` Noah Friedman
2002-08-11 3:55 ` Richard Stallman
2002-08-11 18:14 ` Alex Schroeder
2002-08-11 23:06 ` Noah Friedman
2002-08-14 16:50 ` Mario Lang
2002-08-14 17:11 ` Karl Eichwalder
2002-08-14 19:07 ` Alex Schroeder
[not found] ` <m2sn1ht4sq.fsf@primate.xs4all.nl>
2002-08-15 8:49 ` Mario Lang
2002-08-15 19:24 ` Karl Eichwalder
2002-08-15 19:54 ` Richard Stallman
2002-08-20 21:38 ` Noah Friedman
2002-08-21 1:53 ` Richard Stallman
2002-08-21 2:07 ` Noah Friedman
2002-08-22 1:56 ` Richard Stallman
2002-08-22 2:39 ` Noah Friedman
2002-08-22 7:13 ` Daiki Ueno
2002-08-24 2:33 ` Richard Stallman
2002-08-24 4:03 ` Daiki Ueno
2002-08-25 5:27 ` Richard Stallman
2002-08-26 18:29 ` Noah Friedman [this message]
2002-08-27 19:05 ` Richard Stallman
2002-08-21 6:51 ` Eli Zaretskii
2002-08-22 0:14 ` Karl Eichwalder
2002-08-13 1:47 ` Richard Stallman
2002-08-13 2:10 ` Noah Friedman
2002-08-13 2:18 ` Mark Ayers
2002-08-14 5:14 ` Richard Stallman
2002-08-13 6:57 ` John Wiegley
2002-08-13 20:47 ` Alex Schroeder
2002-08-14 5:15 ` Richard Stallman
2002-08-12 14:30 ` Steve Youngs
2002-08-10 17:17 ` Richard Stallman
2002-08-10 19:34 ` Alex Schroeder
-- strict thread matches above, loose matches on Subject: below --
2002-08-24 4:32 IRC Client " Jonathan Walther
2002-08-24 5:11 ` Damien Elmes
2002-08-25 5:27 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020826112912.937066.FMU965@piglet.prv.splode.com \
--to=friedman@splode.com \
--cc=alex@emacswiki.org \
--cc=emacs-devel@gnu.org \
--cc=ueno@unixuser.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.