emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: tsd@tsdye.com (Thomas S. Dye)
To: Org-mode <emacs-orgmode@gnu.org>
Subject: Re: Macros expanded in Org buffer
Date: Sun, 10 Mar 2013 08:35:41 -1000	[thread overview]
Message-ID: <m1ehfnf6gy.fsf@tsdye.com> (raw)
In-Reply-To: <m1r4joezar.fsf@tsdye.com> (Thomas S. Dye's message of "Sat, 09 Mar 2013 16:58:20 -1000")

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

      reply	other threads:[~2013-03-10 18:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-10  2:58 Macros expanded in Org buffer Thomas S. Dye
2013-03-10 18:35 ` Thomas S. Dye [this message]

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1ehfnf6gy.fsf@tsdye.com \
    --to=tsd@tsdye.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).