From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philippe M. Coatmeur Newsgroups: gmane.emacs.help Subject: Need Help defining customizable objects Date: Wed, 13 Jun 2012 17:18:30 +0000 Organization: A noiseless patient Spider Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: dough.gmane.org 1339610117 30012 80.91.229.3 (13 Jun 2012 17:55:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 13 Jun 2012 17:55:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 13 19:55:16 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Serml-0005Ee-7K for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Jun 2012 19:55:15 +0200 Original-Received: from localhost ([::1]:51854 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Serml-0003Bg-6z for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Jun 2012 13:55:15 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!news2.euro.net!newsfeed.freenet.ag!newsfeed.kamp.net!newsfeed.kamp.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 54 Injection-Info: mx04.eternal-september.org; posting-host="A6oSOg+il3SSmxoqqCK+JQ"; logging-data="753"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19iDEUFF8AN9AIFjvjimOoF3hCl/e+hn4s=" User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/24.1 Mule/6.0 (HANACHIRUSATO) Cancel-Lock: sha1:aNLbleikNG7Kv3snK8E6uV6siEU= Original-Xref: usenet.stanford.edu gnu.emacs.help:192829 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85231 Archived-At: Hi ; I need to setup a customizable system where the user can insert, delete and set a series of "accounts", one account being a (editable) name, and a fixed-size (5) list of key-values, and only the value would be editable. I did my homework, read the manual and related pages (http://original.jamesthornton.com/emacs/elisp/chapter/elisp_14.html) and been playing with custom definitions all morning but so far I could only muster this : (defcustom mail-bug-accounts '(("host" "") ("port" "") ("box" "") ("icon" "")) "Alist of mail-bug-accounts." :type '(alist :value-type (repeat string)) :group 'mail-bug) But this produces this : Hide Mail Bug Accounts: INS DEL Key: "host" Repeat: INS DEL String: INS INS DEL Key: "port" Repeat: INS DEL String: INS INS DEL Key: "box" Repeat: INS DEL String: INS INS DEL Key: "icon" Repeat: INS DEL String: INS INS State : STANDARD. Alist of mail-bug-accounts Groups: Mail Bug A list where the user can insert, delete and set key-values, but not accounts, so basically it's the opposite of what I want. Also the keys are called "keys", when I'd like to name them. How can I produce a (editable : ins, del, set) list of (non-fully-editable) lists? Bonus question : Once the user sets a few of those "account" objects, how will they be sorted, and is there a way to sort them ? Philippe