unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* A couple of lisp questions
@ 2003-11-11 14:00 Phillip Lord
  2003-11-12 14:11 ` Stefan Monnier
  0 siblings, 1 reply; 6+ messages in thread
From: Phillip Lord @ 2003-11-11 14:00 UTC (permalink / raw)






I have a couple of questions which will help me with a package that I
am writing. 


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
moment is:-

add to post-command-hook, 

check whether self-insert-command was last-command

if so check whether the char before point is not a word constituent.

if not then the word before that has probably just been entered. 

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



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. 

Cheers

Phil

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-11-13 16:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-11 14:00 A couple of lisp questions Phillip Lord
2003-11-12 14:11 ` Stefan Monnier
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).