unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* defcustom help requested
@ 2002-11-08 18:06 Peter S Galbraith
  0 siblings, 0 replies; only message in thread
From: Peter S Galbraith @ 2002-11-08 18:06 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 2632 bytes --]

[Sorry for double-posting.  I sent this to help-gnu-emacs@gnu.org 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 <john@work.com>
            Organisation
            Value: Acme Inc.
   Keyword name: home
            From
            Value: John Doe <johndoe@home.net>

This would produce the equivalent of:
 (setq mh-identity-list
      '((\"work\"
         ((\"From\" . \"John Doe <john@work.com>\")
          (\"Organization\" . \"Acme Inc.\")))
        (\"home\"
         ((\"From\" . \"John Doe <johndoe@home.net>\")))))"
  :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  <p.galbraith@globetrotter.net>
GPG key 1024/D2A913A1 - 97CE 866F F579 96EE  6E68 8170 35FF 799E
6623'rd GNU/Linux user at the Counter - http://counter.li.org/


[-- Attachment #2: Screen shotshowing customize error --]
[-- Type: image/png, Size: 3444 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-11-08 18:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-08 18:06 defcustom help requested Peter S Galbraith

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).