From mboxrd@z Thu Jan 1 00:00:00 1970 From: Seamus Tuohy Subject: Bugs in org-babel "comments org" property blank spaces and links Date: Mon, 10 Aug 2015 09:00:27 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e013d14c8d67c27051cf491f3 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52213) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOmgp-0006OV-D9 for emacs-orgmode@gnu.org; Mon, 10 Aug 2015 09:00:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZOmgn-0002SL-Vh for emacs-orgmode@gnu.org; Mon, 10 Aug 2015 09:00:31 -0400 Received: from mail-la0-x236.google.com ([2a00:1450:4010:c03::236]:35436) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOmgn-0002SB-IN for emacs-orgmode@gnu.org; Mon, 10 Aug 2015 09:00:29 -0400 Received: by lahi9 with SMTP id i9so22690744lah.2 for ; Mon, 10 Aug 2015 06:00:27 -0700 (PDT) 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 --089e013d14c8d67c27051cf491f3 Content-Type: text/plain; charset=UTF-8 Hello All, I have encountered what I believe to be two bugs in the way that org-babel handles exporting using the org based comments. I am running on Org-mode version 8.3.1 ( 8.3.1-elpaplus ) as pulled from Cask. The first is a bug is related to the handling of commenting links. When links are commented the entire link is not commented. Only the text is commented. This creates an uncommented string in the source code. Here is an example. ---source.org--- #+PROPERTY: comments org ** [[http://orgmode.org/][Header links are broken on export]] [[http://orgmode.org/][Inline links are broken on export]] ---output.el--- [[http://orgmode.org/][;; Header links are broken on export]] [[http://orgmode.org/][;; Inline links are broken on export]] ------ The second bug causes an error to occur when exporting source blocks that do not text between them. ---source.org--- #+BEGIN_SRC emacs-lisp (message "Inline blocks that have no text between them are broken as well.") #+END_SRC #+BEGIN_SRC emacs-lisp (message "I am broken.") #+END_SRC ---output.el--- (message "Inline blocks that have no text between them are broken as well.") ------ When toggle-debug-on-error is set the following error occurs. ---*Backtrace*--- Debugger entered--Lisp error: (error "Nothing to comment") signal(error ("Nothing to comment")) error("Nothing to comment") comment-region-default(1 3 nil) comment-region(1 3) .................... org-babel-spec-to-string(( ........................ org-babel-tangle(nil) ---- I have put some files I have used to reproduce the bug at the following gist. https://gist.github.com/elationfoundation/0238ecb4e26730bdbab1 Best, s2e --089e013d14c8d67c27051cf491f3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello All,

I have encountered what I believe t= o be two bugs in the way that org-babel handles exporting using the org bas= ed comments.
I am running on Org-mode version 8.3.1 ( 8.3.1-elpaplus ) a= s pulled from Cask.

The first is a bug is related to the handling of= commenting links. When links are commented the entire link is not commente= d. Only the text is commented. This creates an uncommented string in the so= urce code. Here is an example.

---source.org---

#+PROPERTY: = =C2=A0 =C2=A0comments org

** [[http://orgmode.org/][Header links are broken on export]]
[[http://orgmode.org/][Inline links are= broken on export]]

---output.el---

[[http://orgmode.org/][;; Header links are broken on export]]<= br>[[http://orgmode.org/][;; Inline l= inks are broken on export]]

------

The second bug causes an e= rror to occur when exporting source blocks that do not text between them.

---source.org---

#+BEGIN_SRC emacs-lisp
(message "= Inline blocks that have no text between them are broken as well.")
= #+END_SRC

#+BEGIN_SRC emacs-lisp
(message "I am broken."= ;)
#+END_SRC


---output.el---

(message "Inline blo= cks that have no text between them are broken as well.")

------=

When toggle-debug-on-error is set the following error occurs.=

---*Backtrace*---

Debugger entered--Lisp error: (error= "Nothing to comment")
=C2=A0 signal(error ("Nothing to c= omment"))
=C2=A0 error("Nothing to comment")
=C2=A0 co= mment-region-default(1 3 nil)
=C2=A0 comment-region(1 3)
............= ........
=C2=A0org-babel-spec-to-string((
........................=C2=A0 org-babel-tangle(nil)

----

I have put some= files I have used to reproduce the bug at the following gist.

https= ://gist.github.com/elationfoundation/0238ecb4e26730bdbab1

=

Best,
s2e
--089e013d14c8d67c27051cf491f3--