From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Need help publishing subdirectories Date: Thu, 14 Oct 2010 09:30:01 +0200 Message-ID: <2A6CD09A-261E-4F98-9BB7-960448AD169F@gmail.com> References: <22513.1286897899@gamaville.dokosmarshall.org> <28250.1286904282@gamaville.dokosmarshall.org> <30536.1286907014@gamaville.dokosmarshall.org> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=54736 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6IGR-0004jg-EN for emacs-orgmode@gnu.org; Thu, 14 Oct 2010 03:30:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6IGM-0005tb-SZ for emacs-orgmode@gnu.org; Thu, 14 Oct 2010 03:30:08 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:53519) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6IGM-0005sZ-JL for emacs-orgmode@gnu.org; Thu, 14 Oct 2010 03:30:06 -0400 Received: by ewy5 with SMTP id 5so2511418ewy.0 for ; Thu, 14 Oct 2010 00:30:05 -0700 (PDT) In-Reply-To: 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 On Oct 13, 2010, at 8:02 PM, 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 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. Indeed. Looking back on your example, your property list was indeed ill-formed. It must have an even number of elements, so every key needs a value. It is hard to protect against this problem. Maybe I could build a better customize interface to this variable, so that its value could be safely built in this way. Thanks to both you and Nick for the persistence to resolve this. - Carsten > > 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! :-) > > Jeff > > On Wed, Oct 13, 2010 at 11:23 AM, Jeff Horn > wrote: >> (We had a bit of discussion off list. I had a fresh crack at the >> problem this morning, so I'm copying the list on this message.) >> >>> (setq tmp-pub-dir >>> (file-name-directory >>> (concat pub-dir >>> (and (string-match (regexp-quote base-dir) ftname) >>> (substring ftname (match-end 0)))))) >>> >>> ;;;VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV >>> ;;; add a debug call, reeavaluate the function, do the publish and >>> when >>> ;;; you are dumped into the debugger, say e project-plist >>> and see >>> ;;; what :table-of-contents is set to. If it's what it's supposed >>> to be, >>> ;;; continue execution with c and look at the html file, both >>> contents >>> ;;; and modification time. If it's still wrong in terms of >>> contents but >>> ;;; right in terms of modification time, there is something wrong >>> with >>> ;;; the publishing function: you might want to step through it with >>> ;;; edebug, checking things along the way. >>> >>> (debug) >>> >>> ;;;^ >>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> >> I was stopping the debug process after pressing "R project-plist >> RET". >> I've finished stepping through the project with "c" and the >> project-plist contains the right project at every step, with the >> right >> settings, ":table-of-contents nil" and ":section-numbers nil". The >> file modification times are correct, but the content is wrong. There >> are section numbers, a table of contents, and the file lacks my >> defined linked style sheet. >> >> Could you walk me through "edebug"? Simply replace "(debug)" above >> with "(edebug)" didn't do the trick. >> >> Thanks! >> Jeff >> >> >> >> -- >> Jeffrey Horn >> Graduate Lecturer and PhD Student in Economics >> George Mason University >> >> (704) 271-4797 >> jhorn@gmu.edu >> jrhorn424@gmail.com >> > > > > -- > Jeffrey Horn > Graduate Lecturer and PhD Student in Economics > George Mason University > > (704) 271-4797 > jhorn@gmu.edu > jrhorn424@gmail.com > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten