[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Custom type for "&rest props" style arguments?
From: |
Per Abrahamsen |
Subject: |
Re: Custom type for "&rest props" style arguments? |
Date: |
Sat, 14 Jan 2006 08:19:32 +0100 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux) |
Reiner Steib <reinersteib+gmane@imap.cc> writes:
> On Fri, Jan 13 2006, Hrvoje Niksic wrote:
>
>> Reiner Steib <reinersteib+gmane@imap.cc> writes:
>>
>>> My problem is how to express "the forth and all following arguments"
>>> as a custom type.
>>
>> Have you tried `:type plist'?
>
> Now I tried, but `customize-variable' gives "mismatch". Maybe I'm
> doing something wrong?
>
> (defcustom rs-TEST-direct-plist
> '((message-kill-buffer "close")
> (mml-attach-file "attach" mml-mode-map)
> (ignore "separator" nil :help "")
> )
> "A test variable defined using predefined types including plist."
> :type '(repeat (list (function :tag "Menu Command")
> (string :tag "Icon file")
> (choice (const :tag "Default map" nil)
> ;; We need non-nil attributes if map is t.
> ;; (const :tag "No menu" t)
> (sexp :tag "Other map"))
> plist)))
You still need to mark the plist inline.
Re: Custom type for "&rest props" style arguments?, Hrvoje Niksic, 2006/01/13