From: Peter S Galbraith <GalbraithP@dfo-mpo.gc.ca>
Subject: defcustom help requested
Date: Fri, 08 Nov 2002 13:06:02 -0500 [thread overview]
Message-ID: <20021108180602.E2724295BD@mixing.qc.dfo.ca> (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 --]
next reply other threads:[~2002-11-08 18:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-08 18:06 Peter S Galbraith [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-11-01 15:17 defcustom help requested Peter S Galbraith
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021108180602.E2724295BD@mixing.qc.dfo.ca \
--to=galbraithp@dfo-mpo.gc.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.