From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Re: Need help publishing subdirectories Date: Thu, 14 Oct 2010 02:12:18 -0400 Message-ID: <3596.1287036738@gamaville.dokosmarshall.org> References: <22513.1286897899@gamaville.dokosmarshall.org> <28250.1286904282@gamaville.dokosmarshall.org> <30536.1286907014@gamaville.dokosmarshall.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=34730 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6H3H-0001mj-Ld for emacs-orgmode@gnu.org; Thu, 14 Oct 2010 02:12:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6H3G-00027V-Ls for emacs-orgmode@gnu.org; Thu, 14 Oct 2010 02:12:31 -0400 Received: from vms173013pub.verizon.net ([206.46.173.13]:64669) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6H3G-00027R-Ih for emacs-orgmode@gnu.org; Thu, 14 Oct 2010 02:12:30 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173013.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LA9004V9NWIPP40@vms173013.mailsrvcs.net> for emacs-orgmode@gnu.org; Thu, 14 Oct 2010 01:12:19 -0500 (CDT) In-reply-to: Message from Jeff Horn of "Wed, 13 Oct 2010 14:02:28 EDT." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jeff Horn Cc: nicholas.dokos@hp.com, Org-mode ml Jeff Horn wrote: > I moved ":htmlized-source" to the bottom of the project definition and > it fixed the problem. > > In the examples I've seen, ":htmlized-source" has an empty value. I > hypothesize the key was seeing the next key as a value, and so wasn't > picking up any subsequent keys. I think you are right: the code uses plist-get to get property values and the doc string for plist-get says: ,---- | plist-get is a built-in function in `C source code'. | | (plist-get PLIST PROP) | | Extract a value from a property list. | PLIST is a property list, which is a list of the form | (PROP1 VALUE1 PROP2 VALUE2...). This function returns the value | corresponding to the given PROP, or nil if PROP is not one of the | properties on the list. This function never signals an error. `---- apparently with no provision for a missing value. Which means that org needs some additional error checking to catch situations like this. Maybe we need a wrapper around plist-get to check things. I wonder: is it OK to use the fact that in org, all property names start with a colon, to detect missing values? Probably not, since a value can also start with a colon. > > I just loaded my publishing setup from a few days ago and edited every > line that had ":htmlized-source" to ":htmlized-source t" and my > problem is solved. > > Thanks so much for the help! Even if it didn't help discover the > problem, I learned a good bit about debugging, and I edited my first > source file, so that's something to be proud of! :-) > ... and it wasn't too bad, right? But inspired guessing will beat debugging drudgery any day. Congrats, Nick