all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [BUG] Two problems with defcustom of org-structure-template-alist
Date: Wed, 03 Jul 2013 11:50:39 -0400	[thread overview]
Message-ID: <87bo6jzlps.fsf@gmail.com> (raw)

There seem to be two problem in the defcustom of
org-structure-template-alist. It looks like this:

--8<---------------cut here---------------start------------->8---
  :type '(repeat
	  (string :tag "Key")
	  (string :tag "Template")
	  (string :tag "Muse Template")))
--8<---------------cut here---------------end--------------->8---

and afaict, this is not well-formed, so when I try to customize it,
I get a (mismatch). I believe it should look like this:

--8<---------------cut here---------------start------------->8---
  :type '(repeat
          (list
 	   (string :tag "Key")
	   (string :tag "Template")
	   (string :tag "Muse Template"))))
--8<---------------cut here---------------end--------------->8---

That's the first problem, but even after doing this, I still get a
(mismatch).

I think the (second) problem now is that the Muse Template is not
optional as far as defcustom is concerned, but there are entries in the
list above with only two elements. If I add a third element (an empty
string) to those entries missing it, I can customize to my heart's
content.

The question is: is the Muse Template optional? If so, how does one
tell defcustom that? I did a cursory reading of the customization
chapter in the elisp manual but my brain refuses to cooperate.

GNU Emacs 24.3.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10) of
2013-06-17 on pierrot
Org-mode version 8.0.3 (release_8.0.3-358-gb0174f @
/home/nick/elisp/org-mode/lisp/)

Thanks!
-- 
Nick

             reply	other threads:[~2013-07-03 15:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-03 15:50 Nick Dokos [this message]
2013-07-03 17:47 ` [BUG] Two problems with defcustom of org-structure-template-alist Bastien

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=87bo6jzlps.fsf@gmail.com \
    --to=ndokos@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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.