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

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

defcustom help requested


From: Peter S Galbraith
Subject: defcustom help requested
Date: Fri, 08 Nov 2002 13:06:02 -0500

[Sorry for double-posting.  I sent this to address@hidden a
 while back and got no takers.  Perhaps this is a better suited forum.]

Hi all,

I'm tweaking a defcustom for MH-E and need a bit of help from someone
more knowledgeable than me.

The defcustom works well, producing a list structure the way I want it,
but I see the error message "invalid ((From ))" after clicking the first
two [INS] buttons (See attachment).  As soon as I click on the "Value
Menu" and select something, the message goes away and doesn't hamper
customization.

Am I doing something wrong that leads to this message?
Thanks.

Here's the code:

(defcustom mh-identity-list nil
  "*List holding mh-e personalities.
Omit the colon and trailing space from the field names.
The keyword name \"none\" is reversed for internal use.
Use the keyname name \"signature\" to specify either a signature file or a
function to call to insert a signature at point.

Example entries using the customize interface:  
   Keyword name: work
            From
            Value: John Doe <address@hidden>
            Organisation
            Value: Acme Inc.
   Keyword name: home
            From
            Value: John Doe <address@hidden>

This would produce the equivalent of:
 (setq mh-identity-list
      '((\"work\"
         ((\"From\" . \"John Doe <address@hidden>\")
          (\"Organization\" . \"Acme Inc.\")))
        (\"home\"
         ((\"From\" . \"John Doe <address@hidden>\")))))"
  :type '(repeat (list :tag ""
                       (string :tag "Keyword name")
                       (repeat :tag "At least one pair from below"
                               (choice (cons :tag "From field"
                                             (const "From")
                                             (string :tag "Value"))
                                       (cons :tag "Organization field"
                                             (const "Organization")
                                             (string :tag "Value"))
                                       (cons :tag "Signature"
                                             (const "signature")
                                             (choice (file) (function)))
                                       (cons :tag "Other field & value pair"
                                             (string :tag "Field")
                                             (string :tag "Value")))))))
-- 
Peter S. Galbraith, mh-e developer  <address@hidden>
GPG key 1024/D2A913A1 - 97CE 866F F579 96EE  6E68 8170 35FF 799E
6623'rd GNU/Linux user at the Counter - http://counter.li.org/

PNG image


reply via email to

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