unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* customising a variable for which no customisation type exists
@ 2006-10-17 16:17 Joost Kremers
  0 siblings, 0 replies; only message in thread
From: Joost Kremers @ 2006-10-17 16:17 UTC (permalink / raw)


hi group,

i asked this a few days ago on comp.emacs and comp.emacs.xemacs, but
there was no reply. hope you don't mind a reposting here...

in an elisp program that i'm developing, i make use of a hash table to
store certain user-configurable data. (it's data that doesn't normally
change during program execution.) so far, customisation was done through
an rc-file, but now i want to use emacs' customise interface. the
problem is that there is no customisation type for hash tables.

originally, i thought that a defcustom's :set and :get parameters were
meant to handle such a situation, but if they are, i cannot really
figure out how.

so my question: is there a way to handle this, and if so, how?

right now, my solution is to have two variables, one containing the hash
table, and one containing a list. the latter is customisable, and i use
the :set parameter to update the hash table whenever the user makes
customisations to the list. that works, but i can't help but feel that
there should be another way...

TIA

-- 
Joost Kremers <joostkremers@yahoo.com>
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-10-17 16:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-17 16:17 customising a variable for which no customisation type exists Joost Kremers

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).