From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: [BUG] Two problems with defcustom of org-structure-template-alist Date: Wed, 03 Jul 2013 11:50:39 -0400 Message-ID: <87bo6jzlps.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuPKb-0004ph-MP for emacs-orgmode@gnu.org; Wed, 03 Jul 2013 11:50:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UuPKa-0006Ik-DT for emacs-orgmode@gnu.org; Wed, 03 Jul 2013 11:50:57 -0400 Received: from plane.gmane.org ([80.91.229.3]:60779) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuPKa-0006Gp-65 for emacs-orgmode@gnu.org; Wed, 03 Jul 2013 11:50:56 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UuPKU-0006aI-Ld for emacs-orgmode@gnu.org; Wed, 03 Jul 2013 17:50:50 +0200 Received: from pool-108-7-96-134.bstnma.fios.verizon.net ([108.7.96.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Jul 2013 17:50:50 +0200 Received: from ndokos by pool-108-7-96-134.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Jul 2013 17:50:50 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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