From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ethan Ligon Subject: Problem with org-export--delete-comments Date: Thu, 17 Dec 2015 18:27:27 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40481) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9dOQ-0001BI-DZ for emacs-orgmode@gnu.org; Thu, 17 Dec 2015 13:35:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9dON-0003bt-8B for emacs-orgmode@gnu.org; Thu, 17 Dec 2015 13:35:10 -0500 Received: from plane.gmane.org ([80.91.229.3]:49710) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9dON-0003aR-1h for emacs-orgmode@gnu.org; Thu, 17 Dec 2015 13:35:07 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1a9dOJ-0007WQ-Qc for emacs-orgmode@gnu.org; Thu, 17 Dec 2015 19:35:04 +0100 Received: from 108-74-161-76.lightspeed.sntcca.sbcglobal.net ([108.74.161.76]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Dec 2015 19:35:03 +0100 Received: from ligon by 108-74-161-76.lightspeed.sntcca.sbcglobal.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Dec 2015 19:35:03 +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: emacs-orgmode@gnu.org I've long used the following construction for displayed equations in org # \[ u_i(c)=p_i\lambda \] # which (i) gives nice space for reading equations in the org-source, and (ii) nicely protects the display equation from (fill-paragraph) and friends. However, exporting with this construction *stopped* working after commit 53a4209; what happens now is that ox.el replaces the # with a blank line, breaking my single paragraph into three. A related problem: one can no longer have commented lines in (at least some) property drawers. It seems to me that the correct solution would have org-export--delete- comments actually delete a single line comment, not replace it with \n, as was the case prior to the indicated commit. I gather that the change was introduced to deal with a bug observed by Samuel Wales (http://article.gmane.org/gmane.emacs.orgmode/102860; see also below). His problem example involved incorrectly truncated footnotes (these are deemed to end after two blank lines). But it seems to me that the correct solution to his example is to delete *both* the commented line and the following blank line. I regard this as a bug, but if it's not how do others deal with similar issues? Thanks, -Ethan Ligon * Sam Wales' example: commenting a paragraph will truncate footnotes in xanadu[fn:b3e0f07] um # comment [fn:b3e0f07] did kublai khan # was it "seemly"? a stately pleasure dome decree