From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: Macros expanded in Org buffer Date: Sun, 10 Mar 2013 08:35:41 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UEl69-0007A3-S7 for emacs-orgmode@gnu.org; Sun, 10 Mar 2013 14:35:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UEl65-0004IG-TG for emacs-orgmode@gnu.org; Sun, 10 Mar 2013 14:35:53 -0400 Received: from oproxy14-pub.unifiedlayer.com ([67.222.51.224]:35990) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1UEl65-0004Hb-Fu for emacs-orgmode@gnu.org; Sun, 10 Mar 2013 14:35:49 -0400 Received: from [98.155.255.145] (port=51506 helo=poto.local) by box472.bluehost.com with esmtpsa (TLSv1:CAMELLIA128-SHA:128) (Exim 4.80) (envelope-from ) id 1UEl61-0003MJ-Lv for emacs-orgmode@gnu.org; Sun, 10 Mar 2013 12:35:46 -0600 In-Reply-To: (Thomas S. Dye's message of "Sat, 09 Mar 2013 16:58:20 -1000") 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: Org-mode tsd@tsdye.com (Thomas S. Dye) writes: > Aloha all, > > I'm not sure how this happened, but chapter 2 of orgmanual now has all > the macros replaced by their expansions. You can see this here: > > https://github.com/tsdye/orgmanual/blob/master/orgmanual.org Apologies for the brief post earlier. I discovered this an hour before guests arrived for a dinner I was supposed to be cooking ... Here is what I was doing prior to discovering that all the macros in chapter 2 had been replaced by their expansions. I had been working on description lists throughout the document and had inadvertently left two blank lines in the middle of a list. The error this raises is something along the lines of "incorrect argument stringp, nil" and I haven't found an easy way to discover from this where the error occurs in the Org buffer. The method I've been using is a variant of one Nick Dokos suggested some years ago in the context of a different problem, and which he called bisecting. What I do, is export one subtree at a time until I find a subtree that doesn't export, then I do this on subtrees of that subtree until I have isolated a reasonably-sized search space. In this instance, once I discovered that chapter 2 had the error, I used toggle-debug-on-error, turned asynchronous export off, and exported chapter 2 to see the debug information. This pointed me in the right direction and I was able to find the problem and fix it. I don't know where in this sequence of events the macros were replaced by their expansion, but I feel certain that it happened during this work because the problem is confined only to chapter 2. I hope this helps. Let me know if you have questions. All the best, Tom -- Thomas S. Dye http://www.tsdye.com