From mboxrd@z Thu Jan 1 00:00:00 1970 From: drymer Subject: Re: Bug: org-export-as Date: Wed, 8 Mar 2017 10:19:32 +0000 Message-ID: <20170308101932.lc6k34o7ssllykk3@laptop> References: <20170307185019.b7tzqlssrpab7gr6@laptop> <87bmtc3c21.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="hj32wgbiimn5nxgf" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40762) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clXiQ-00038V-4p for emacs-orgmode@gnu.org; Wed, 08 Mar 2017 04:17:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1clXiL-0002ea-Mg for emacs-orgmode@gnu.org; Wed, 08 Mar 2017 04:17:01 -0500 Received: from perdizione.investici.org ([94.23.50.208]:34031) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1clXiL-0002eQ-9n for emacs-orgmode@gnu.org; Wed, 08 Mar 2017 04:16:57 -0500 Content-Disposition: inline In-Reply-To: <87bmtc3c21.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: lista de correo de org-mode --hj32wgbiimn5nxgf Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Hi, Thanks for your time. Could you please retry and evaluate this: ,---- | (defun test-org-export () | (interactive) | (save-excursion | (org-mark-element) | (forward-line) ;; donot export title | (setq b (region-beginning)) | (setq e (region-end))) | (message (org-export-as 'html t nil t))) `---- And execute `M-x test-org-export RET' on the example header: ,--- | * 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. `--- And see if it happens? I see it clearly different when using different versions of emacs, and I know I'm not the only one[1]. On >emacs25 it does not execute `forward-line' for some reason and it includes the header. If you still see the expected behaviour, what would you recommend me to do? Regards 1 - https://github.com/redguardtoo/org2nikola/issues/5 On Wed, Mar 08, 2017 at 12:24:38AM +0100, Nicolas Goaziou wrote: >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 --hj32wgbiimn5nxgf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABCAAGBQJYv9q0AAoJEKMH1k1d39qt3O0QAI92c1VsNLxUS0V5OruWmtgU gGwtHo2okh0uMbBB+oqVi+Z+jlrj70xmBf0pd0CKYn8SuMSsf97XjfdgYyMtR//T vuJMdiWCSoSWY4OqPIgRgMnKwzhS28TVaxdyqhs9NWXHSSBxoCdwlAS+AlGh4w1O fCnSIh3zat8I8sCDEGqkTANwRHr1KSlYtoj6KQWRahSdNXzEBSQy38jW7eI3CozI yL11EejdCvK4X+PbpTB043bykRbVnDbjbQJ4vGMZNo0h+m7ge4V5IOmjuCVWLUmZ a5trxHj9YbeyGvw6l3fOC1w/0rFRd4StZN1Uw7skJ0zoLGdNmpsVJT2qMNuzYW8p +HGKFE6QF7Foxz3dp/Vwd/IU6DURYOZ7WPFJnytTstvMLYIziaRHBVsfMbzU0vBJ kDEDswrSOn80ir7JpGyvAP2bRQV3/TRw//8FECuAYKvg8BeZXOuiAePbGR5Nsdki 8mUj3x6ldBnxceJ9VPzSPCmkQd3BEn0JItmkigkNkB5IUruqS+nAAfHzOB+Ov5BB +Aj2XrOfePH9ol9NCGB7S1nux3O+ke7uJhhSSXK4HfArouQvO+cJhSmKuPgkAUlc dKjYvPDMC6ntqB3caeWnGXTi2YKcr99oiTn4C+WeBrNFl/xRORpXdQHxmtn1cppD 7mYX9/PbfJDna3abqnqn =vasj -----END PGP SIGNATURE----- --hj32wgbiimn5nxgf--