From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [Bug] test-org-export/before-parsing-hook Date: Wed, 30 Jan 2013 20:44:58 +0100 Message-ID: <87halyo3ph.fsf@gmail.com> References: <87pq0qydp4.fsf@Rainer.invalid> <8738xi53fg.fsf@bzg.ath.cx> <87ip6eii5m.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52503) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0day-0002eV-Vm for emacs-orgmode@gnu.org; Wed, 30 Jan 2013 14:45:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U0daw-0006jM-TX for emacs-orgmode@gnu.org; Wed, 30 Jan 2013 14:45:20 -0500 Received: from mail-wi0-x229.google.com ([2a00:1450:400c:c05::229]:46007) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0daw-0006jB-OF for emacs-orgmode@gnu.org; Wed, 30 Jan 2013 14:45:18 -0500 Received: by mail-wi0-f169.google.com with SMTP id hq12so4187761wib.2 for ; Wed, 30 Jan 2013 11:45:17 -0800 (PST) In-Reply-To: <87ip6eii5m.fsf@Rainer.invalid> (Achim Gratz's message of "Wed, 30 Jan 2013 20:29:25 +0100") 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: Achim Gratz Cc: emacs-orgmode@gnu.org Hello, Achim Gratz writes: > Aside from the fact that Eric's last commit broke compilation of all of > Org and I had to back it out, yes I can. Here's my config (in other > words the new exporter is active, otherwise that test may not even be > run): > > ========= Additional files from contrib/lisp > org-man.el org-export.el org-e-icalendar.el org-e-latex.el org-e-groff.el org-e-man.el org-e-html.el org-e-texinfo.el org-e-publish.el org-e-beamer.el org-e-odt.el org-e-confluence.el org-e-ascii.el > ========= Org version > make: Org-mode version 7.9.3d (release_7.9.3d-913-gff2d37 => > /usr/local/share/emacs/site-lisp/org) Could you try this test instead? I don't trust `org-map-entries'. #+begin_src emacs-lisp (ert-deftest test-org-export/before-parsing-hook () "Test `org-export-before-parsing-hook'." (should (equal "Body 1\nBody 2\n" (org-test-with-backend test (org-test-with-temp-text "* Headline 1\nBody 1\n* Headline 2\nBody 2" (let ((org-export-before-parsing-hook '((lambda (backend) (goto-char (point-min)) (while (re-search-forward org-outline-regexp-bol nil t) (delete-region (point-at-bol) (progn (forward-line) (point)))))))) (org-export-as 'test))))))) #+end_src Regards, -- Nicolas Goaziou