[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
customising a variable for which no customisation type exists
From: |
Joost Kremers |
Subject: |
customising a variable for which no customisation type exists |
Date: |
Tue, 17 Oct 2006 18:17:27 +0200 |
User-agent: |
Thunderbird 1.5 (X11/20060317) |
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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- customising a variable for which no customisation type exists,
Joost Kremers <=