emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Samuel Wales <samologist@gmail.com>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: ascii fill column ignored
Date: Thu, 17 Oct 2013 13:44:58 -0700	[thread overview]
Message-ID: <CAJcAo8t0uLPpFxMWRoHkag7Qz8GMu8Ht-RvYzh-c0yVNb-FvuA@mail.gmail.com> (raw)
In-Reply-To: <CAJcAo8uc-8JGYE8C4VSr_+sPKCy9XfED5GppyZE3mEW2UqHzRA@mail.gmail.com>

I narrowed it down to this, so it isn't in default Org.

I rely on being able to put paragraphs in inline footnotes as they
were in Org 7.  This implements that (and I rely on the fact that it
works well with font lock too).  However, for some reason it triggers
the bug.

      ;; from author of new exporter, with extra \
      ;; (setq org-export-before-parsing-hook nil)
      (add-hook 'org-export-before-parsing-hook
'hoka-org-export-par-in-inline-fn)
      ;; (remove-hook 'org-export-before-parsing-hook
'hoka-org-export-par-in-inline-fn)
      (defun hoka-org-export-par-in-inline-fn (backend)
        "Fix inline footnote paragraphs to work."
        (unless (org-export-derived-backend-p backend 'latex)
          (org-footnote-normalize)
          ;; =alpha i guess it sticks \par in there for you
          (while (re-search-forward "\\\\par\\s-*" nil t)
            (replace-match "\n\n"))))

      reply	other threads:[~2013-10-17 20:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-17  3:05 ascii fill column ignored Samuel Wales
2013-10-17 10:06 ` Nicolas Goaziou
2013-10-17 19:36   ` Samuel Wales
2013-10-17 19:40     ` Samuel Wales
2013-10-17 20:01       ` Nicolas Goaziou
2013-10-17 20:25         ` Samuel Wales
2013-10-17 20:44           ` Samuel Wales [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=CAJcAo8t0uLPpFxMWRoHkag7Qz8GMu8Ht-RvYzh-c0yVNb-FvuA@mail.gmail.com \
    --to=samologist@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=n.goaziou@gmail.com \
    /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).