From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: org-export-as Date: Wed, 08 Mar 2017 00:24:38 +0100 Message-ID: <87bmtc3c21.fsf@nicolasgoaziou.fr> References: <20170307185019.b7tzqlssrpab7gr6@laptop> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clOTG-00039c-Ds for emacs-orgmode@gnu.org; Tue, 07 Mar 2017 18:24:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1clOTB-0000Jz-OG for emacs-orgmode@gnu.org; Tue, 07 Mar 2017 18:24:46 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:45824) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1clOTB-0000Jl-HZ for emacs-orgmode@gnu.org; Tue, 07 Mar 2017 18:24:41 -0500 In-Reply-To: <20170307185019.b7tzqlssrpab7gr6@laptop> (drymer@autistici.org's message of "Tue, 7 Mar 2017 18:50:19 +0000") 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" To: drymer Cc: lista de correo de org-mode Hello, drymer writes: > I'm trying to debug the package org2nikola, which works on emacs-24.5 > but not on >emacs-25. What I'm trying to see is why the title is > exported when using >emacs-25 but not when prior versions. For what I've > being testing, it doesn't seem related to the package but to org-mode or > emacs. I'll explain why I think this. An example text I want to export would be: > > ,--- > | * TODO Testing :test: > | Nullam eu ante vel est convallis dignissim. Fusce suscipit, wisi nec > | facilisis facilisis, est dui fermentum leo, quis tempor ligula erat > | quis odio. Nunc porta vulputate tellus. Nunc rutrum turpis sed pede. > | Sed bibendum. Aliquam posuere. Nunc aliquet, augue nec adipiscing > | interdum, lacus tellus malesuada massa, quis varius mi purus non odio. > | Pellentesque condimentum, magna ut suscipit hendrerit, ipsum augue > | ornare nulla, non luctus diam neque sit amet urna. Curabitur > | vulputate vestibulum lorem. Fusce sagittis, libero non molestie > | mollis, magna orci ultrices dolor, at vulputate neque nulla lacinia > | eros. Sed id ligula quis est convallis tempor. Curabitur lacinia > | pulvinar nibh. Nam a sapien. > `--- > > I would execute the function `org2nikola-export-subtree' in the > header. More or less, this function would guide us until the next > function with the above text, but not the header, marked as a region: > > ,---- > | (org-export-as 'html t nil t) > `---- > > In emacs-24.5 this function returns: > > ,---- > |

> | Nullam eu ante vel est convallis dignissim. Fusce suscipit, wisi nec facilisis > | facilisis, est dui fermentum leo, quis tempor ligula erat quis odio. Nunc porta > | vulputate tell us. Nunc rutrum turpis sed pede. Sed bibendum. Aliquam posuere. > | Nunc aliquet, augue nec adipiscing interdum, lacus tellus malesuada massa, quis > | varius mi purus non odio. Pellentesque condimentum, magna ut suscipit hendrerit, > | ipsum augue ornare nulla, non luctus diam neque sit amet urna. Curabitur vulputate > | vestibulum lorem. Fusce sagittis, libero non molestie mollis, magna orci ultrices > | dolor, at vulputate neque nulla lacinia eros. Sed id ligula quis est convallis > | tempor. Curabitur lacinia pulvinar nibh. Nam a sapien. > |

> `---- > > In >emacs-25 this function returns: > > ,---- > |
> |

Testing

> |
> |

> | Nullam eu ante vel est convallis dignissim. Fusce suscipit, wisi nec facilisis > | facilisis, est dui fermentum leo, quis tempor ligula erat quis odio. Nunc porta > | vulputate tellus. Nunc rutrum turpis sed pede. Sed bibendum. Aliquam posuere. > | Nunc aliquet, augue nec adipiscing interdum, lacus tellus malesuada massa, quis > | varius mi purus non odio. Pellentesque condimentum, magna ut suscipit hendrerit, > | ipsum augue ornare nulla, non luctus diam neque sit amet urna. Curabitur vulputate > | vestibulum lorem. Fusce sagittis, libero non molestie mollis, magna orci ultrices > | dolor, at vulputate neque nulla lacinia eros. Sed id ligula quis est convallis > | tempor. Curabitur lacinia pulvinar nibh. Nam a sapien. > |

> |
> |
> `---- FWIW, I cannot reproduce it. When calling (org-export-as 'html t nil t) gets me the the first output. However, I get the latter when region includes the heading. Actually you cannot have both a region and subtree export. Pick the one you need. Regards, -- Nicolas Goaziou