all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: A couple of lisp questions
Date: Wed, 12 Nov 2003 14:11:38 GMT	[thread overview]
Message-ID: <jwvfzgufxal.fsf-monnier+gnu.emacs.help@vor.iro.umontreal.ca> (raw)
In-Reply-To: vfu15bgg3z.fsf@rpc71.cs.man.ac.uk

> First, I want to call a function everytime a new word has been typed
> into a buffer. The only way that I can think of doing this at the

As you can imagine there's no perfect answer here, since words can be typed
piecemeal, or backwards, or split into two, or joined, or modified in some
other way.  So it's not even clear what you mean by "everytime a new word
has been typed".

> This does not work in all cases, so better ideas would be welcome. 

Take a look at how flyspell does it.  Or maybe auto-fill.

> Second, my data structures are current using a hashtable, and a set of
> lists. The hashtable has a nice feature which is key/value weakness. I
> would really like to use this feature, but over an ordered list
> structure rather than a hash. As far as I can tell the only way I can
> use a weak reference is through the hashtable. There are no other weak
> data structures? 

> Third, is there a good way of serializing hashtables, so that I can
> load them again next time from a file? To get my system to work I need
> multiple hashtables sharing the same objects not just objects with the
> same values, so its fairly complicated. 

As you probably know, the answer to both is "no can do".
But if you provide more info about what you're trying to do (rather than
how you're trying to do it), maybe there's a good answer that does not
involve the usual "patches welcome".


        Stefan

  reply	other threads:[~2003-11-12 14:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-11 14:00 A couple of lisp questions Phillip Lord
2003-11-12 14:11 ` Stefan Monnier [this message]
2003-11-12 16:29   ` Phillip Lord
2003-11-12 18:28     ` Stefan Monnier
2003-11-12 19:00       ` Phillip Lord
2003-11-13 16:31         ` Stefan Monnier

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=jwvfzgufxal.fsf-monnier+gnu.emacs.help@vor.iro.umontreal.ca \
    --to=monnier@iro.umontreal.ca \
    /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.