help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom type for "&rest props" style arguments?


From: Reiner Steib
Subject: Re: Custom type for "&rest props" style arguments?
Date: Fri, 13 Jan 2006 23:50:12 +0100
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

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

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]